diff --git a/.circleci/config.yml b/.circleci/config.yml index edd9666c..283ef054 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -90,7 +90,7 @@ executors: openjdk: working_directory: ~/repo docker: - - image: circleci/openjdk:8-jdk + - image: circleci/openjdk:11-jdk auth: username: ${DOCKER_USER} password: ${DOCKER_PASS} @@ -98,7 +98,7 @@ executors: virtuoso_environment_executor: working_directory: ~/repo docker: - - image: circleci/openjdk:8-jdk + - image: circleci/openjdk:11-jdk auth: username: ${DOCKER_USER} password: ${DOCKER_PASS} @@ -211,6 +211,8 @@ jobs: - run: name: Test TypeScript command: | + ## bug with Node 17 -> https://github.com/webpack/webpack/issues/14532 + export NODE_OPTIONS=--openssl-legacy-provider sbt "discoveryJS / Compile / fastOptJS / webpack" sbt npmPackageJson npm i diff --git a/README.md b/README.md index accf51d9..0f2fd674 100644 --- a/README.md +++ b/README.md @@ -81,7 +81,7 @@ further information and documentation, visit https://p2m2.github.io/discovery/ ## Import discovery with SBT ``` -libraryDependencies += "com.github.p2m2" %%% "discovery" % "0.2.0" +libraryDependencies += "com.github.p2m2" %%% "discovery" % "0.3.1" ``` diff --git a/build.sbt b/build.sbt index 42c7d911..4b5a12c5 100644 --- a/build.sbt +++ b/build.sbt @@ -2,14 +2,16 @@ import sbt.Keys.scalacOptions import sbtcrossproject.CrossPlugin.autoImport.crossProject /* scala libs */ -lazy val utestVersion = "0.7.10" -lazy val upickleVersion = "1.4.0" -lazy val airframeLogVersion = "21.6.0" -lazy val scalaJsDOMVersion = "1.1.0" -lazy val scalaStubVersion = "1.0.0" -lazy val scalatagVersion = "0.9.4" -lazy val rdf4jVersion = "3.7.2" -lazy val slf4j_version = "1.7.31" +lazy val utestVersion = "0.7.11" +lazy val upickleVersion = "1.5.0" +lazy val airframeLogVersion = "21.12.1" +lazy val sttpClient3Version = "3.4.1" +lazy val scalaStubVersion = "1.1.0" +lazy val scalatagVersion = "0.11.1" +lazy val rdf4jVersion = "3.7.4" +lazy val slf4j_version = "1.7.32" +lazy val scalaUriVersion = "3.6.0" +lazy val scalajsDom = "1.2.0" /* p2m2 libs */ lazy val comunica_actor_init_sparql_rdfjs_version = "1.21.1" @@ -18,18 +20,19 @@ lazy val n3js_facade_version = "1.11.1" lazy val rdfxml_streaming_parser_version = "1.5.0" /* npm libs */ -lazy val npm_axios_version = "0.21.1" -lazy val npm_qs_version = "6.10.1" +lazy val npm_axios_version = "0.25.0" +lazy val npm_qs_version = "6.10.3" lazy val npm_showdown_version = "1.9.1" -lazy val npm_comunica_version_datasource = "1.21.1" +lazy val npm_comunica_version_datasource = "1.22.2" -lazy val types_jest = "27.0.1" -lazy val jest = "27.0.6" -lazy val tsjest = "27.0.5" +lazy val types_jest = "27.4.0" +lazy val type_sax = "1.2.4" +lazy val jest = "27.4.7" +lazy val tsjest = "27.1.3" releaseIgnoreUntrackedFiles := true -val static_version_build = "0.3.0-alpha.6" +val static_version_build = "0.3.2" val version_build = scala.util.Properties.envOrElse("DISCOVERY_VERSION", static_version_build ) val SWDiscoveryVersionAtBuildTimeFile = "./shared/src/main/scala/inrae/semantic_web/SWDiscoveryVersionAtBuildTime.scala" @@ -49,7 +52,7 @@ ThisBuild / name := "discovery" ThisBuild / organizationName := "p2m2" ThisBuild / name := "discovery" ThisBuild / version := version_build -ThisBuild / scalaVersion := "2.13.5" +ThisBuild / scalaVersion := "2.13.7" ThisBuild / organization := "com.github.p2m2" ThisBuild / organizationName := "p2m2" ThisBuild / organizationHomepage := Some(url("https://www6.inrae.fr/p2m2")) @@ -105,16 +108,16 @@ lazy val root = (project in file(".")) lazy val discovery=crossProject(JSPlatform, JVMPlatform).in(file(".")) .settings( libraryDependencies ++= Seq( - "com.softwaremill.sttp.client3" %% "core" % "3.3.4" % Test, + "com.softwaremill.sttp.client3" %% "core" % sttpClient3Version % Test, "com.lihaoyi" %%% "utest" % utestVersion % Test, "com.lihaoyi" %%% "upickle" % upickleVersion, "org.wvlet.airframe" %%% "airframe-log" % airframeLogVersion, - "io.lemonlabs" %%% "scala-uri" % "3.5.0" + "io.lemonlabs" %%% "scala-uri" % scalaUriVersion ), testFrameworks += new TestFramework("utest.runner.Framework"), scalacOptions ++= Seq("-deprecation", "-feature"), classLoaderLayeringStrategy := ClassLoaderLayeringStrategy.AllLibraryJars, - coverageMinimumStmtTotal := 70, + coverageMinimumStmtTotal := 86, coverageFailOnMinimum := false, coverageHighlighting := true, Test / parallelExecution := false @@ -133,7 +136,7 @@ lazy val discovery=crossProject(JSPlatform, JVMPlatform).in(file(".")) "qs" -> npm_qs_version, "showdown" -> npm_showdown_version, "@comunica/utils-datasource" -> npm_comunica_version_datasource, - "@types/sax" -> "1.2.1" + "@types/sax" -> type_sax ), Compile / fastOptJS / scalaJSLinkerConfig ~= { @@ -146,7 +149,7 @@ lazy val discovery=crossProject(JSPlatform, JVMPlatform).in(file(".")) .withModuleKind(ModuleKind.CommonJSModule) }, libraryDependencies ++= Seq( - "org.scala-js" %%% "scalajs-dom" % "1.1.0" + "org.scala-js" %%% "scalajs-dom" % scalajsDom ) ) .jvmSettings( diff --git a/dist/checksum b/dist/checksum index cbf1cc1d..2ee4fb3a 100644 --- a/dist/checksum +++ b/dist/checksum @@ -1 +1 @@ -757050151db1317a2002e50f435bc086 - +9b095401d7dc1faa6a12ed1d9e02c44b - diff --git a/dist/discovery-web-dev.js b/dist/discovery-web-dev.js index 8344fc60..5e6cf02d 100644 --- a/dist/discovery-web-dev.js +++ b/dist/discovery-web-dev.js @@ -624,8 +624,9 @@ __exportStar(__webpack_require__(/*! ./lib/ActorContextPreprocessSourceToDestina "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -exports.KEY_CONTEXT_DESTINATION = exports.KEY_CONTEXT_SOURCES = exports.ActorContextPreprocessSourceToDestination = void 0; +exports.ActorContextPreprocessSourceToDestination = void 0; const bus_context_preprocess_1 = __webpack_require__(/*! @comunica/bus-context-preprocess */ "./node_modules/@comunica/bus-context-preprocess/index.js"); +const context_entries_1 = __webpack_require__(/*! @comunica/context-entries */ "./node_modules/@comunica/context-entries/index.js"); /** * A comunica Source To Destination Context Preprocess Actor. */ @@ -637,18 +638,17 @@ class ActorContextPreprocessSourceToDestination extends bus_context_preprocess_1 return true; } async run(action) { - if (action.context && action.context.get(exports.KEY_CONTEXT_SOURCES) && !action.context.get(exports.KEY_CONTEXT_DESTINATION)) { - const sources = action.context.get(exports.KEY_CONTEXT_SOURCES); + if (action.context && action.context.get(context_entries_1.KeysRdfResolveQuadPattern.sources) && + !action.context.get(context_entries_1.KeysRdfUpdateQuads.destination)) { + const sources = action.context.get(context_entries_1.KeysRdfResolveQuadPattern.sources); if (sources.length === 1) { - return { context: action.context.set(exports.KEY_CONTEXT_DESTINATION, sources[0]) }; + return { context: action.context.set(context_entries_1.KeysRdfUpdateQuads.destination, sources[0]) }; } } return action; } } exports.ActorContextPreprocessSourceToDestination = ActorContextPreprocessSourceToDestination; -exports.KEY_CONTEXT_SOURCES = '@comunica/bus-rdf-resolve-quad-pattern:sources'; -exports.KEY_CONTEXT_DESTINATION = '@comunica/bus-rdf-update-quads:destination'; //# sourceMappingURL=ActorContextPreprocessSourceToDestination.js.map /***/ }), @@ -748,10 +748,10 @@ exports.KEY_CONTEXT_DATETIME = context_entries_1.KeysHttpMemento.datetime; /***/ }), -/***/ "./node_modules/@comunica/actor-http-native/index.js": -/*!***********************************************************!*\ - !*** ./node_modules/@comunica/actor-http-native/index.js ***! - \***********************************************************/ +/***/ "./node_modules/@comunica/actor-http-node-fetch/index.js": +/*!***************************************************************!*\ + !*** ./node_modules/@comunica/actor-http-node-fetch/index.js ***! + \***************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { @@ -768,381 +768,118 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) { for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); }; Object.defineProperty(exports, "__esModule", { value: true }); -__exportStar(__webpack_require__(/*! ./lib/ActorHttpNative */ "./node_modules/@comunica/actor-http-native/lib/ActorHttpNative.js"), exports); +__exportStar(__webpack_require__(/*! ./lib/ActorHttpNodeFetch */ "./node_modules/@comunica/actor-http-node-fetch/lib/ActorHttpNodeFetch.js"), exports); //# sourceMappingURL=index.js.map /***/ }), -/***/ "./node_modules/@comunica/actor-http-native/lib/ActorHttpNative.js": -/*!*************************************************************************!*\ - !*** ./node_modules/@comunica/actor-http-native/lib/ActorHttpNative.js ***! - \*************************************************************************/ +/***/ "./node_modules/@comunica/actor-http-node-fetch/lib/ActorHttpNodeFetch.js": +/*!********************************************************************************!*\ + !*** ./node_modules/@comunica/actor-http-node-fetch/lib/ActorHttpNodeFetch.js ***! + \********************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -/* WEBPACK VAR INJECTION */(function(global, process, setImmediate) { +/* WEBPACK VAR INJECTION */(function(global, process, Buffer) { Object.defineProperty(exports, "__esModule", { value: true }); -exports.ActorHttpNative = void 0; +exports.ActorHttpNodeFetch = void 0; const bus_http_1 = __webpack_require__(/*! @comunica/bus-http */ "./node_modules/@comunica/bus-http/index.js"); const context_entries_1 = __webpack_require__(/*! @comunica/context-entries */ "./node_modules/@comunica/context-entries/index.js"); __webpack_require__(/*! cross-fetch/polyfill */ "./node_modules/cross-fetch/dist/browser-polyfill.js"); -const Requester_1 = __webpack_require__(/*! ./Requester */ "./node_modules/@comunica/actor-http-native/lib/Requester-browser.js"); +const FetchInitPreprocessor_1 = __webpack_require__(/*! ./FetchInitPreprocessor */ "./node_modules/@comunica/actor-http-node-fetch/lib/FetchInitPreprocessor-browser.js"); /** - * A comunica Follow Redirects Http Actor. + * A node-fetch actor that listens on the 'init' bus. + * + * It will call `fetch` with either action.input or action.url. */ -class ActorHttpNative extends bus_http_1.ActorHttp { +class ActorHttpNodeFetch extends bus_http_1.ActorHttp { constructor(args) { super(args); - this.userAgent = ActorHttpNative.createUserAgent(); - this.requester = new Requester_1.default(args.agentOptions ? JSON.parse(args.agentOptions) : undefined); + this.userAgent = ActorHttpNodeFetch.createUserAgent(); + this.fetchInitPreprocessor = new FetchInitPreprocessor_1.FetchInitPreprocessor(args.agentOptions ? + JSON.parse(args.agentOptions) : + undefined); } static createUserAgent() { - return `Comunica/actor-http-native (${typeof global.navigator === 'undefined' ? + return `Comunica/actor-http-node-fetch (${typeof global.navigator === 'undefined' ? `Node.js ${process.version}; ${process.platform}` : `Browser-${global.navigator.userAgent}`})`; } async test(action) { - // TODO: check for unsupported fetch features return { time: Number.POSITIVE_INFINITY }; } - async run(action) { - const options = {}; - // Input can be a Request object or a string - // if it is a Request object it can contain the same settings as the init object - if (action.input.url) { - options.url = action.input.url; - Object.assign(options, action.input); - } - else { - options.url = action.input; - } - if (action.init) { - Object.assign(options, action.init); - options.headers = new Headers(action.init.headers); - options.body = action.init.body; - } - else { - options.headers = action.input.headers; - if (action.input.body) { - throw new Error(`ActorHttpNative does not support passing body via input, use init instead.`); - } - } - if (!options.headers) { - options.headers = new Headers(); - } - if (!options.headers.has('user-agent')) { - options.headers.append('user-agent', this.userAgent); - } - options.method = options.method || 'GET'; - if (action.context && action.context.get(context_entries_1.KeysHttp.includeCredentials)) { - options.withCredentials = true; + run(action) { + var _a, _b; + // Prepare headers + const initHeaders = action.init ? action.init.headers || {} : {}; + action.init = action.init ? action.init : {}; + action.init.headers = new Headers(initHeaders); + if (!action.init.headers.has('user-agent')) { + action.init.headers.append('user-agent', this.userAgent); } if (action.context && action.context.get(context_entries_1.KeysHttp.auth)) { - options.auth = action.context.get(context_entries_1.KeysHttp.auth); - } - this.logInfo(action.context, `Requesting ${options.url}`, () => ({ - headers: bus_http_1.ActorHttp.headersToHash(options.headers), - method: options.method, + action.init.headers.append('Authorization', `Basic ${Buffer.from(action.context.get(context_entries_1.KeysHttp.auth)).toString('base64')}`); + } + // Log request + this.logInfo(action.context, `Requesting ${typeof action.input === 'string' ? + action.input : + action.input.url}`, () => ({ + headers: bus_http_1.ActorHttp.headersToHash(new Headers(action.init.headers)), + method: action.init.method || 'GET', })); - // Not all options are supported - return new Promise((resolve, reject) => { - const req = this.requester.createRequest(options); - req.on('error', reject); - req.on('response', httpResponse => { - httpResponse.on('error', (error) => { - httpResponse = null; - reject(error); - }); - // Avoid memory leak on HEAD requests - if (options.method === 'HEAD') { - httpResponse.destroy(); - } - // Using setImmediate so error can be caught should it be thrown - setImmediate(() => { - if (httpResponse) { - // Expose fetch cancel promise - httpResponse.cancel = () => { - httpResponse.destroy(); - return Promise.resolve(); - }; - // Missing several of the required fetch fields - const headers = httpResponse.headers; - const result = { - body: httpResponse, - headers, - ok: httpResponse.statusCode < 300, - redirected: options.url !== httpResponse.responseUrl, - status: httpResponse.statusCode, - // When the content came from another resource because of conneg, let Content-Location deliver the url - url: headers.has('content-location') ? headers.get('content-location') : httpResponse.responseUrl, - }; - resolve(result); - } - }); - }); - }); - } -} -exports.ActorHttpNative = ActorHttpNative; -//# sourceMappingURL=ActorHttpNative.js.map -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../webpack/buildin/global.js */ "./node_modules/webpack/buildin/global.js"), __webpack_require__(/*! ./../../../process/browser.js */ "./node_modules/process/browser.js"), __webpack_require__(/*! ./../../../timers-browserify/main.js */ "./node_modules/timers-browserify/main.js").setImmediate)) - -/***/ }), - -/***/ "./node_modules/@comunica/actor-http-native/lib/Requester-browser.js": -/*!***************************************************************************!*\ - !*** ./node_modules/@comunica/actor-http-native/lib/Requester-browser.js ***! - \***************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -/* eslint-disable unicorn/filename-case */ -/* ! @license MIT ©2013-2016 Ruben Verborgh, Ghent University - imec */ -/* Single-function HTTP(S) request module for browsers */ -/* Translated from https://github.com/LinkedDataFragments/Client.js/blob/master/lib/browser/Request.js */ -Object.defineProperty(exports, "__esModule", { value: true }); -const events_1 = __webpack_require__(/*! events */ "./node_modules/events/events.js"); -const stream_1 = __webpack_require__(/*! stream */ "./node_modules/stream-browserify/index.js"); -const parseLink = __webpack_require__(/*! parse-link-header */ "./node_modules/parse-link-header/index.js"); -// Headers we cannot send (see https://www.w3.org/TR/XMLHttpRequest/#the-setrequestheader()-method) -const UNSAFE_REQUEST_HEADERS = { 'accept-encoding': true, 'user-agent': true, referer: true }; -class Requester { - constructor() { - this.negotiatedResources = {}; - } - // Creates an HTTP request with the given settings - createRequest(settings) { - // PERFORMANCE HACK: - // Reduce OPTIONS preflight requests by removing the Accept-Datetime header - // on requests for resources that are presumed to have been time-negotiated - if (this.negotiatedResources[this.removeQuery(settings.url)]) { - settings.headers.delete('accept-datetime'); - } - // Create the actual XMLHttpRequest - const request = new XMLHttpRequest(); - const reqHeaders = settings.headers; - request.open(settings.method, settings.url, true); - request.timeout = settings.timeout; - request.withCredentials = settings.withCredentials; - reqHeaders.forEach((value, key) => { - if (!(key in UNSAFE_REQUEST_HEADERS) && value) { - request.setRequestHeader(key, value); + // TODO: remove this workaround once this has a fix: https://github.com/inrupt/solid-client-authn-js/issues/1708 + if (action.init && action.init.headers && 'append' in action.init.headers && ((_a = action.context) === null || _a === void 0 ? void 0 : _a.has(context_entries_1.KeysHttp.fetch))) { + action.init.headers = bus_http_1.ActorHttp.headersToHash(action.init.headers); + } + // Perform request + const customFetch = (_b = action + .context) === null || _b === void 0 ? void 0 : _b.get(context_entries_1.KeysHttp.fetch); + return (customFetch || fetch)(action.input, this.fetchInitPreprocessor.handle(Object.assign(Object.assign({}, action.init), action.context && action.context.get(context_entries_1.KeysHttp.includeCredentials) ? { credentials: 'include' } : {}))).then(response => { + // Node-fetch does not support body.cancel, while it is mandatory according to the fetch and readablestream api. + // If it doesn't exist, we monkey-patch it. + if (response.body && !response.body.cancel) { + response.body.cancel = async (error) => response.body.destroy(error); } + return response; }); - // Create a proxy for the XMLHttpRequest - const requestProxy = new events_1.EventEmitter(); - requestProxy.abort = () => { - request.abort(); - }; - // Handle the arrival of a response - request.onload = () => { - var _a, _b; - // Convert the response into an iterator - const response = new stream_1.Readable(); - response.push(request.responseText || ''); - response.push(null); - response.statusCode = request.status; - response.responseUrl = request.responseURL; - // Parse the response headers - const resHeaders = this.convertRequestHeadersToFetchHeaders(response.headers); - response.headers = resHeaders; - const rawHeaders = request.getAllResponseHeaders() || ''; - const headerMatcher = /^([^\n\r:]+):[\t ]*([^\n\r]*)$/gmu; - let match = headerMatcher.exec(rawHeaders); - while (match) { - resHeaders.set(match[1].toLowerCase(), match[2]); - match = headerMatcher.exec(rawHeaders); - } - // Emit the response - requestProxy.emit('response', response); - // If the resource was time-negotiated, store its queryless URI - // to enable the PERFORMANCE HACK explained above - if (reqHeaders.has('accept-datetime') && resHeaders.has('memento-datetime')) { - const resource = this.removeQuery((_a = resHeaders.get('content-location')) !== null && _a !== void 0 ? _a : settings.url); - if (!this.negotiatedResources[resource]) { - // Ensure the resource is not a timegate - const links = (_b = (resHeaders.get('link') && parseLink(resHeaders.get('link')))) !== null && _b !== void 0 ? _b : undefined; - const timegate = this.removeQuery(links && links.timegate && links.timegate.url); - if (resource !== timegate) { - this.negotiatedResources[resource] = true; - } - } - } - }; - // Report errors and timeouts - request.onerror = () => { - requestProxy.emit('error', new Error(`Error requesting ${settings.url}`)); - }; - request.ontimeout = () => { - requestProxy.emit('error', new Error(`Timeout requesting ${settings.url}`)); - }; - // Execute the request - if (settings.body) { - if (settings.body instanceof URLSearchParams) { - request.send(settings.body.toString()); - } - else { - settings.body.blob() - .then((blob) => request.send(blob)) - .catch((error) => requestProxy.emit('error', error)); - } - } - else { - request.send(); - } - return requestProxy; - } - // Wrap headers into an header object type - convertRequestHeadersToFetchHeaders(headers) { - const responseHeaders = new Headers(); - for (const key in headers) { - responseHeaders.append(key, headers[key]); - } - return responseHeaders; - } - // Removes the query string from a URL - removeQuery(url) { - return url ? url.replace(/\?.*$/u, '') : ''; - } -} -exports.default = Requester; -//# sourceMappingURL=Requester-browser.js.map - -/***/ }), - -/***/ "./node_modules/@comunica/actor-http-proxy/index.js": -/*!**********************************************************!*\ - !*** ./node_modules/@comunica/actor-http-proxy/index.js ***! - \**********************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __exportStar = (this && this.__exportStar) || function(m, exports) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -__exportStar(__webpack_require__(/*! ./lib/ActorHttpProxy */ "./node_modules/@comunica/actor-http-proxy/lib/ActorHttpProxy.js"), exports); -__exportStar(__webpack_require__(/*! ./lib/IProxyHandler */ "./node_modules/@comunica/actor-http-proxy/lib/IProxyHandler.js"), exports); -__exportStar(__webpack_require__(/*! ./lib/ProxyHandlerStatic */ "./node_modules/@comunica/actor-http-proxy/lib/ProxyHandlerStatic.js"), exports); -//# sourceMappingURL=index.js.map - -/***/ }), - -/***/ "./node_modules/@comunica/actor-http-proxy/lib/ActorHttpProxy.js": -/*!***********************************************************************!*\ - !*** ./node_modules/@comunica/actor-http-proxy/lib/ActorHttpProxy.js ***! - \***********************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -Object.defineProperty(exports, "__esModule", { value: true }); -exports.KEY_CONTEXT_HTTPPROXYHANDLER = exports.ActorHttpProxy = void 0; -const bus_http_1 = __webpack_require__(/*! @comunica/bus-http */ "./node_modules/@comunica/bus-http/index.js"); -const context_entries_1 = __webpack_require__(/*! @comunica/context-entries */ "./node_modules/@comunica/context-entries/index.js"); -/** - * A comunica Proxy Http Actor. - */ -class ActorHttpProxy extends bus_http_1.ActorHttp { - constructor(args) { - super(args); - } - async test(action) { - if (!action.context) { - throw new Error(`Actor ${this.name} could not find a context.`); - } - const proxyHandler = action.context.get(context_entries_1.KeysHttpProxy.httpProxyHandler); - if (!proxyHandler) { - throw new Error(`Actor ${this.name} could not find a proxy handler in the context.`); - } - if (!await proxyHandler.getProxy(action)) { - throw new Error(`Actor ${this.name} could not determine a proxy for the given request.`); - } - return { time: Number.POSITIVE_INFINITY }; - } - async run(action) { - var _a; - const requestedUrl = typeof action.input === 'string' ? action.input : action.input.url; - if (!action.context) { - throw new Error('Illegal state: missing context'); - } - const proxyHandler = action.context.get(context_entries_1.KeysHttpProxy.httpProxyHandler); - // Send a request for the modified request - const output = await this.mediatorHttp.mediate(Object.assign(Object.assign({}, await proxyHandler.getProxy(action)), { context: action.context.delete(context_entries_1.KeysHttpProxy.httpProxyHandler) })); - // Modify the response URL - output.url = (_a = output.headers.get('x-final-url')) !== null && _a !== void 0 ? _a : requestedUrl; - return output; } } -exports.ActorHttpProxy = ActorHttpProxy; -/** - * @deprecated Import this constant from @comunica/context-entries. - */ -exports.KEY_CONTEXT_HTTPPROXYHANDLER = context_entries_1.KeysHttpProxy.httpProxyHandler; -//# sourceMappingURL=ActorHttpProxy.js.map - -/***/ }), - -/***/ "./node_modules/@comunica/actor-http-proxy/lib/IProxyHandler.js": -/*!**********************************************************************!*\ - !*** ./node_modules/@comunica/actor-http-proxy/lib/IProxyHandler.js ***! - \**********************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=IProxyHandler.js.map +exports.ActorHttpNodeFetch = ActorHttpNodeFetch; +//# sourceMappingURL=ActorHttpNodeFetch.js.map +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../../webpack/buildin/global.js */ "./node_modules/webpack/buildin/global.js"), __webpack_require__(/*! ./../../../process/browser.js */ "./node_modules/process/browser.js"), __webpack_require__(/*! ./../../../buffer/index.js */ "./node_modules/buffer/index.js").Buffer)) /***/ }), -/***/ "./node_modules/@comunica/actor-http-proxy/lib/ProxyHandlerStatic.js": -/*!***************************************************************************!*\ - !*** ./node_modules/@comunica/actor-http-proxy/lib/ProxyHandlerStatic.js ***! - \***************************************************************************/ +/***/ "./node_modules/@comunica/actor-http-node-fetch/lib/FetchInitPreprocessor-browser.js": +/*!*******************************************************************************************!*\ + !*** ./node_modules/@comunica/actor-http-node-fetch/lib/FetchInitPreprocessor-browser.js ***! + \*******************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -exports.ProxyHandlerStatic = void 0; +exports.FetchInitPreprocessor = void 0; /** - * A proxy handler that prefixes all URLs with a given string. + * Does nothing in browsers */ -class ProxyHandlerStatic { - constructor(prefixUrl) { - this.prefixUrl = prefixUrl; - } - async getProxy(request) { - return { - init: request.init, - input: this.modifyInput(request.input), - }; - } - modifyInput(input) { - if (typeof input === 'string') { - return this.prefixUrl + input; +class FetchInitPreprocessor { + handle(init) { + // Remove overridden user-agent header within browsers to avoid CORS issues + if (init.headers) { + const headers = new Headers(init.headers); + if (headers.has('user-agent')) { + headers.delete('user-agent'); + } + init.headers = headers; } - return new Request(this.prefixUrl + input.url, input); + return Object.assign({ keepalive: true }, init); } } -exports.ProxyHandlerStatic = ProxyHandlerStatic; -//# sourceMappingURL=ProxyHandlerStatic.js.map +exports.FetchInitPreprocessor = FetchInitPreprocessor; +//# sourceMappingURL=FetchInitPreprocessor-browser.js.map /***/ }), @@ -1153,7 +890,7 @@ exports.ProxyHandlerStatic = ProxyHandlerStatic; /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { -const df_307_0 = new (__webpack_require__(/*! @comunica/logger-void */ "./node_modules/@comunica/logger-void/index.js").LoggerVoid)(undefined); +const df_317_0 = new (__webpack_require__(/*! @comunica/logger-void */ "./node_modules/@comunica/logger-void/index.js").LoggerVoid)(undefined); const https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_init_Bus_Init = new (__webpack_require__(/*! @comunica/core */ "./node_modules/@comunica/core/index.js").Bus)({ 'name': 'https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-init/Bus/Init' }); @@ -1169,12 +906,12 @@ const https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_rdf_parse const https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_rdf_dereference_Bus_RdfDereference = new (__webpack_require__(/*! @comunica/core */ "./node_modules/@comunica/core/index.js").Bus)({ 'name': 'https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-rdf-dereference/Bus/RdfDereference' }); -const https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_rdf_serialize_Bus_RdfSerialize = new (__webpack_require__(/*! @comunica/core */ "./node_modules/@comunica/core/index.js").Bus)({ - 'name': 'https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-rdf-serialize/Bus/RdfSerialize' -}); const https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_rdf_parse_html_Bus_RdfParseHtml = new (__webpack_require__(/*! @comunica/core */ "./node_modules/@comunica/core/index.js").Bus)({ 'name': 'https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-rdf-parse-html/Bus/RdfParseHtml' }); +const https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_rdf_serialize_Bus_RdfSerialize = new (__webpack_require__(/*! @comunica/core */ "./node_modules/@comunica/core/index.js").Bus)({ + 'name': 'https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-rdf-serialize/Bus/RdfSerialize' +}); const https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_rdf_metadata_Bus_RdfMetadata = new (__webpack_require__(/*! @comunica/core */ "./node_modules/@comunica/core/index.js").Bus)({ 'name': 'https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-rdf-metadata/Bus/RdfMetadata' }); @@ -1202,12 +939,12 @@ const https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_rdf_resol const https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_rdf_resolve_hypermedia_links_queue_Bus_RdfResolveHypermediaLinksQueue = new (__webpack_require__(/*! @comunica/core */ "./node_modules/@comunica/core/index.js").Bus)({ 'name': 'https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-rdf-resolve-hypermedia-links-queue/Bus/RdfResolveHypermediaLinksQueue' }); -const https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_sparql_parse_Bus_SparqlParse = new (__webpack_require__(/*! @comunica/core */ "./node_modules/@comunica/core/index.js").Bus)({ - 'name': 'https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-sparql-parse/Bus/SparqlParse' -}); const https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_optimize_query_operation_Bus_OptimizeQueryOperation = new (__webpack_require__(/*! @comunica/core */ "./node_modules/@comunica/core/index.js").Bus)({ 'name': 'https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-optimize-query-operation/Bus/OptimizeQueryOperation' }); +const https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_sparql_parse_Bus_SparqlParse = new (__webpack_require__(/*! @comunica/core */ "./node_modules/@comunica/core/index.js").Bus)({ + 'name': 'https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-sparql-parse/Bus/SparqlParse' +}); const https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_sparql_serialize_Bus_SparqlSerialize = new (__webpack_require__(/*! @comunica/core */ "./node_modules/@comunica/core/index.js").Bus)({ 'name': 'https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-sparql-serialize/Bus/SparqlSerialize' }); @@ -1231,7 +968,7 @@ const https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_init_sp 'name': 'https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/http.json#mediatorHttp', 'bus': https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_http_Bus_Http }); -const https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_init_sparql__1_0_0_config_sets_http_json_myHttpFetcher = new (__webpack_require__(/*! @comunica/actor-http-native */ "./node_modules/@comunica/actor-http-native/index.js").ActorHttpNative)({ +const https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_init_sparql__1_0_0_config_sets_http_json_myHttpFetcher = new (__webpack_require__(/*! @comunica/actor-http-node-fetch */ "./node_modules/@comunica/actor-http-node-fetch/index.js").ActorHttpNodeFetch)({ 'agentOptions': '{ "keepAlive": true, "maxSockets": 5 }', 'name': 'https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/http.json#myHttpFetcher', 'bus': https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_http_Bus_Http @@ -1323,6 +1060,28 @@ const https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_init_sp 'name': 'https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/resolve-hypermedia.json#mediatorRdfDereference', 'bus': https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_rdf_dereference_Bus_RdfDereference }); +const https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_init_sparql__1_0_0_config_sets_rdf_parsers_json_myRdfParserHtml = new (__webpack_require__(/*! @comunica/actor-rdf-parse-html */ "./node_modules/@comunica/actor-rdf-parse-html/index.js").ActorRdfParseHtml)({ + 'busRdfParseHtml': https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_rdf_parse_html_Bus_RdfParseHtml, + 'mediaTypes': { + 'text/html': '1.0', + 'application/xhtml+xml': '0.9' +}, + 'mediaTypeFormats': { + 'text/html': 'http://www.w3.org/ns/formats/HTML', + 'application/xhtml+xml': 'http://www.w3.org/ns/formats/HTML' +}, + 'priorityScale': '2.0E-1', + 'name': 'https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/rdf-parsers.json#myRdfParserHtml', + 'bus': https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_rdf_parse_Bus_RdfParse +}); +const https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_init_sparql__1_0_0_config_sets_rdf_parsers_json_myRdfParserHtmlMicrodata = new (__webpack_require__(/*! @comunica/actor-rdf-parse-html-microdata */ "./node_modules/@comunica/actor-rdf-parse-html-microdata/index.js").ActorRdfParseHtmlMicrodata)({ + 'name': 'https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/rdf-parsers.json#myRdfParserHtmlMicrodata', + 'bus': https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_rdf_parse_html_Bus_RdfParseHtml +}); +const https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_init_sparql__1_0_0_config_sets_rdf_parsers_json_myRdfParserHtmlRdfa = new (__webpack_require__(/*! @comunica/actor-rdf-parse-html-rdfa */ "./node_modules/@comunica/actor-rdf-parse-html-rdfa/index.js").ActorRdfParseHtmlRdfa)({ + 'name': 'https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/rdf-parsers.json#myRdfParserHtmlRdfa', + 'bus': https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_rdf_parse_html_Bus_RdfParseHtml +}); const https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_init_sparql__1_0_0_config_sets_rdf_serializers_json_myRdfSerializerN3 = new (__webpack_require__(/*! @comunica/actor-rdf-serialize-n3 */ "./node_modules/@comunica/actor-rdf-serialize-n3/index.js").ActorRdfSerializeN3)({ 'mediaTypes': { 'application/trig': '1.0', @@ -1353,42 +1112,20 @@ const https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_init_sp 'name': 'https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/rdf-serializers.json#myRdfSerializeJsonLd', 'bus': https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_rdf_serialize_Bus_RdfSerialize }); -const https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_init_sparql__1_0_0_config_sets_sparql_serializers_json_mediatorRdfSerialize = new (__webpack_require__(/*! @comunica/mediator-race */ "./node_modules/@comunica/mediator-race/index.js").MediatorRace)({ - 'name': 'https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/sparql-serializers.json#mediatorRdfSerialize', +const https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_init_sparql__1_0_0_config_sets_sparql_serializers_json_mediatorRdfSerializeMediatypes = new (__webpack_require__(/*! @comunica/mediator-combine-union */ "./node_modules/@comunica/mediator-combine-union/index.js").MediatorCombineUnion)({ + 'field': 'mediaTypes', + 'name': 'https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/sparql-serializers.json#mediatorRdfSerializeMediatypes', 'bus': https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_rdf_serialize_Bus_RdfSerialize }); -const df_737_0 = new (__webpack_require__(/*! @comunica/mediator-combine-union */ "./node_modules/@comunica/mediator-combine-union/index.js").MediatorCombineUnion)({ - 'field': 'mediaTypes', - 'name': 'df_737_0', +const https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_init_sparql__1_0_0_config_sets_sparql_serializers_json_mediatorRdfSerialize = new (__webpack_require__(/*! @comunica/mediator-race */ "./node_modules/@comunica/mediator-race/index.js").MediatorRace)({ + 'name': 'https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/sparql-serializers.json#mediatorRdfSerialize', 'bus': https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_rdf_serialize_Bus_RdfSerialize }); -const df_737_1 = new (__webpack_require__(/*! @comunica/mediator-combine-union */ "./node_modules/@comunica/mediator-combine-union/index.js").MediatorCombineUnion)({ +const df_757_0 = new (__webpack_require__(/*! @comunica/mediator-combine-union */ "./node_modules/@comunica/mediator-combine-union/index.js").MediatorCombineUnion)({ 'field': 'mediaTypeFormats', - 'name': 'df_737_1', + 'name': 'df_757_0', 'bus': https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_rdf_serialize_Bus_RdfSerialize }); -const https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_init_sparql__1_0_0_config_sets_rdf_parsers_json_myRdfParserHtml = new (__webpack_require__(/*! @comunica/actor-rdf-parse-html */ "./node_modules/@comunica/actor-rdf-parse-html/index.js").ActorRdfParseHtml)({ - 'busRdfParseHtml': https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_rdf_parse_html_Bus_RdfParseHtml, - 'mediaTypes': { - 'text/html': '1.0', - 'application/xhtml+xml': '0.9' -}, - 'mediaTypeFormats': { - 'text/html': 'http://www.w3.org/ns/formats/HTML', - 'application/xhtml+xml': 'http://www.w3.org/ns/formats/HTML' -}, - 'priorityScale': '2.0E-1', - 'name': 'https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/rdf-parsers.json#myRdfParserHtml', - 'bus': https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_rdf_parse_Bus_RdfParse -}); -const https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_init_sparql__1_0_0_config_sets_rdf_parsers_json_myRdfParserHtmlMicrodata = new (__webpack_require__(/*! @comunica/actor-rdf-parse-html-microdata */ "./node_modules/@comunica/actor-rdf-parse-html-microdata/index.js").ActorRdfParseHtmlMicrodata)({ - 'name': 'https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/rdf-parsers.json#myRdfParserHtmlMicrodata', - 'bus': https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_rdf_parse_html_Bus_RdfParseHtml -}); -const https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_init_sparql__1_0_0_config_sets_rdf_parsers_json_myRdfParserHtmlRdfa = new (__webpack_require__(/*! @comunica/actor-rdf-parse-html-rdfa */ "./node_modules/@comunica/actor-rdf-parse-html-rdfa/index.js").ActorRdfParseHtmlRdfa)({ - 'name': 'https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/rdf-parsers.json#myRdfParserHtmlRdfa', - 'bus': https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_rdf_parse_html_Bus_RdfParseHtml -}); const https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_init_sparql__1_0_0_config_sets_resolve_hypermedia_json_mediatorMetadata = new (__webpack_require__(/*! @comunica/mediator-race */ "./node_modules/@comunica/mediator-race/index.js").MediatorRace)({ 'name': 'https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/resolve-hypermedia.json#mediatorMetadata', 'bus': https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_rdf_metadata_Bus_RdfMetadata @@ -1412,9 +1149,12 @@ const https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_init_sp 'name': 'https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/resolve-hypermedia.json#myRdfMetadataExtractPatchSparqlUpdate', 'bus': https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_rdf_metadata_extract_Bus_RdfMetadataExtract }); -const https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_init_sparql__1_0_0_config_sets_resolve_sparql_json_myRdfMetadataExtractSparqlService = new (__webpack_require__(/*! @comunica/actor-rdf-metadata-extract-sparql-service */ "./node_modules/@comunica/actor-rdf-metadata-extract-sparql-service/index.js").ActorRdfMetadataExtractSparqlService)({ - 'inferHttpsEndpoint': true, - 'name': 'https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/resolve-sparql.json#myRdfMetadataExtractSparqlService', +const https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_init_sparql__1_0_0_config_sets_resolve_hypermedia_json_myRdfMetadataExtractAllowHttpMethods = new (__webpack_require__(/*! @comunica/actor-rdf-metadata-extract-allow-http-methods */ "./node_modules/@comunica/actor-rdf-metadata-extract-allow-http-methods/index.js").ActorRdfMetadataExtractAllowHttpMethods)({ + 'name': 'https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/resolve-hypermedia.json#myRdfMetadataExtractAllowHttpMethods', + 'bus': https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_rdf_metadata_extract_Bus_RdfMetadataExtract +}); +const https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_init_sparql__1_0_0_config_sets_resolve_hypermedia_json_myRdfMetadataExtractPutAccepted = new (__webpack_require__(/*! @comunica/actor-rdf-metadata-extract-put-accepted */ "./node_modules/@comunica/actor-rdf-metadata-extract-put-accepted/index.js").ActorRdfMetadataExtractPutAccepted)({ + 'name': 'https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/resolve-hypermedia.json#myRdfMetadataExtractPutAccepted', 'bus': https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_rdf_metadata_extract_Bus_RdfMetadataExtract }); const https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_init_sparql__1_0_0_config_sets_resolve_hypermedia_json_myRdfMetadataExtractHydraControls = new (__webpack_require__(/*! @comunica/actor-rdf-metadata-extract-hydra-controls */ "./node_modules/@comunica/actor-rdf-metadata-extract-hydra-controls/index.js").ActorRdfMetadataExtractHydraControls)({ @@ -1429,6 +1169,11 @@ const https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_init_sp 'name': 'https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/resolve-hypermedia.json#myRdfMetadataExtractHydraCount', 'bus': https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_rdf_metadata_extract_Bus_RdfMetadataExtract }); +const https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_init_sparql__1_0_0_config_sets_resolve_sparql_json_myRdfMetadataExtractSparqlService = new (__webpack_require__(/*! @comunica/actor-rdf-metadata-extract-sparql-service */ "./node_modules/@comunica/actor-rdf-metadata-extract-sparql-service/index.js").ActorRdfMetadataExtractSparqlService)({ + 'inferHttpsEndpoint': true, + 'name': 'https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/resolve-sparql.json#myRdfMetadataExtractSparqlService', + 'bus': https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_rdf_metadata_extract_Bus_RdfMetadataExtract +}); const https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_init_sparql__1_0_0_config_sets_rdf_update_rdfjs_json_mediatorRdfUpdateHypermedia = new (__webpack_require__(/*! @comunica/mediator-race */ "./node_modules/@comunica/mediator-race/index.js").MediatorRace)({ 'name': 'https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/rdf-update-rdfjs.json#mediatorRdfUpdateHypermedia', 'bus': https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_rdf_update_hypermedia_Bus_RdfUpdateHypermedia @@ -1488,14 +1233,22 @@ const https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_init_sp 'name': 'https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/resolve-hypermedia.json#myHypermediaLinksQueue', 'bus': https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_rdf_resolve_hypermedia_links_queue_Bus_RdfResolveHypermediaLinksQueue }); -const https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_init_sparql__1_0_0_config_sets_graphql_parsers_json_myGraphqlParser = new (__webpack_require__(/*! @comunica/actor-sparql-parse-graphql */ "./node_modules/@comunica/actor-sparql-parse-graphql/index.js").ActorSparqlParseGraphql)({ - 'name': 'https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/graphql-parsers.json#myGraphqlParser', - 'bus': https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_sparql_parse_Bus_SparqlParse +const https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_init_sparql__1_0_0_config_sets_sparql_init_json_mediatorOptimizeQueryOperation = new (__webpack_require__(/*! @comunica/mediator-combine-pipeline */ "./node_modules/@comunica/mediator-combine-pipeline/index.js").MediatorCombinePipeline)({ + 'name': 'https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/sparql-init.json#mediatorOptimizeQueryOperation', + 'bus': https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_optimize_query_operation_Bus_OptimizeQueryOperation +}); +const https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_init_sparql__1_0_0_config_sets_sparql_optimize_json_myJoinBgpOptimizer = new (__webpack_require__(/*! @comunica/actor-optimize-query-operation-join-bgp */ "./node_modules/@comunica/actor-optimize-query-operation-join-bgp/index.js").ActorOptimizeQueryOperationJoinBgp)({ + 'name': 'https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/sparql-optimize.json#myJoinBgpOptimizer', + 'bus': https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_optimize_query_operation_Bus_OptimizeQueryOperation }); const https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_init_sparql__1_0_0_config_sets_sparql_init_json_mediatorSparqlParse = new (__webpack_require__(/*! @comunica/mediator-race */ "./node_modules/@comunica/mediator-race/index.js").MediatorRace)({ 'name': 'https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/sparql-init.json#mediatorSparqlParse', 'bus': https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_sparql_parse_Bus_SparqlParse }); +const https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_init_sparql__1_0_0_config_sets_graphql_parsers_json_myGraphqlParser = new (__webpack_require__(/*! @comunica/actor-sparql-parse-graphql */ "./node_modules/@comunica/actor-sparql-parse-graphql/index.js").ActorSparqlParseGraphql)({ + 'name': 'https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/graphql-parsers.json#myGraphqlParser', + 'bus': https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_sparql_parse_Bus_SparqlParse +}); const https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_init_sparql__1_0_0_config_sets_sparql_parsers_json_mySparqlParser = new (__webpack_require__(/*! @comunica/actor-sparql-parse-algebra */ "./node_modules/@comunica/actor-sparql-parse-algebra/index.js").ActorSparqlParseAlgebra)({ 'prefixes': { 'rdf': 'http://www.w3.org/1999/02/22-rdf-syntax-ns#', @@ -1516,26 +1269,18 @@ const https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_init_sp 'name': 'https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/sparql-parsers.json#mySparqlParser', 'bus': https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_sparql_parse_Bus_SparqlParse }); -const https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_init_sparql__1_0_0_config_sets_sparql_init_json_mediatorOptimizeQueryOperation = new (__webpack_require__(/*! @comunica/mediator-combine-pipeline */ "./node_modules/@comunica/mediator-combine-pipeline/index.js").MediatorCombinePipeline)({ - 'name': 'https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/sparql-init.json#mediatorOptimizeQueryOperation', - 'bus': https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_optimize_query_operation_Bus_OptimizeQueryOperation -}); -const https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_init_sparql__1_0_0_config_sets_sparql_optimize_json_myJoinBgpOptimizer = new (__webpack_require__(/*! @comunica/actor-optimize-query-operation-join-bgp */ "./node_modules/@comunica/actor-optimize-query-operation-join-bgp/index.js").ActorOptimizeQueryOperationJoinBgp)({ - 'name': 'https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/sparql-optimize.json#myJoinBgpOptimizer', - 'bus': https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_optimize_query_operation_Bus_OptimizeQueryOperation -}); const https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_init_sparql__1_0_0_config_sets_sparql_init_json_mediatorSparqlSerialize = new (__webpack_require__(/*! @comunica/mediator-race */ "./node_modules/@comunica/mediator-race/index.js").MediatorRace)({ 'name': 'https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/sparql-init.json#mediatorSparqlSerialize', 'bus': https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_sparql_serialize_Bus_SparqlSerialize }); -const df_723_0 = new (__webpack_require__(/*! @comunica/mediator-combine-union */ "./node_modules/@comunica/mediator-combine-union/index.js").MediatorCombineUnion)({ +const df_743_0 = new (__webpack_require__(/*! @comunica/mediator-combine-union */ "./node_modules/@comunica/mediator-combine-union/index.js").MediatorCombineUnion)({ 'field': 'mediaTypes', - 'name': 'df_723_0', + 'name': 'df_743_0', 'bus': https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_sparql_serialize_Bus_SparqlSerialize }); -const df_723_1 = new (__webpack_require__(/*! @comunica/mediator-combine-union */ "./node_modules/@comunica/mediator-combine-union/index.js").MediatorCombineUnion)({ +const df_743_1 = new (__webpack_require__(/*! @comunica/mediator-combine-union */ "./node_modules/@comunica/mediator-combine-union/index.js").MediatorCombineUnion)({ 'field': 'mediaTypeFormats', - 'name': 'df_723_1', + 'name': 'df_743_1', 'bus': https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_sparql_serialize_Bus_SparqlSerialize }); const https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_init_sparql__1_0_0_config_sets_sparql_serializers_json_myJsonSparqlSerializer = new (__webpack_require__(/*! @comunica/actor-sparql-serialize-json */ "./node_modules/@comunica/actor-sparql-serialize-json/index.js").ActorSparqlSerializeJson)({ @@ -1656,6 +1401,18 @@ const https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_init_sp 'name': 'https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/rdf-parsers.json#myRdfParserJsonLd', 'bus': https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_rdf_parse_Bus_RdfParse }); +const https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_init_sparql__1_0_0_config_sets_rdf_update_rdfjs_json_myRdfUpdateHypermediaPatchSparqlUpdate = new (__webpack_require__(/*! @comunica/actor-rdf-update-hypermedia-patch-sparql-update */ "./node_modules/@comunica/actor-rdf-update-hypermedia-patch-sparql-update/index.js").ActorRdfUpdateHypermediaPatchSparqlUpdate)({ + 'mediatorHttp': https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_init_sparql__1_0_0_config_sets_http_json_mediatorHttp, + 'name': 'https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/rdf-update-rdfjs.json#myRdfUpdateHypermediaPatchSparqlUpdate', + 'bus': https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_rdf_update_hypermedia_Bus_RdfUpdateHypermedia +}); +const https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_init_sparql__1_0_0_config_sets_rdf_update_rdfjs_json_myRdfUpdateHypermediaSparql = new (__webpack_require__(/*! @comunica/actor-rdf-update-hypermedia-sparql */ "./node_modules/@comunica/actor-rdf-update-hypermedia-sparql/index.js").ActorRdfUpdateHypermediaSparql)({ + 'mediatorHttp': https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_init_sparql__1_0_0_config_sets_http_json_mediatorHttp, + 'checkUrlSuffixSparql': true, + 'checkUrlSuffixUpdate': true, + 'name': 'https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/rdf-update-rdfjs.json#myRdfUpdateHypermediaSparql', + 'bus': https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_rdf_update_hypermedia_Bus_RdfUpdateHypermedia +}); const https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_init_sparql__1_0_0_config_sets_resolve_sparql_json_mySparqlQuadPatternResolver = new (__webpack_require__(/*! @comunica/actor-rdf-resolve-hypermedia-sparql */ "./node_modules/@comunica/actor-rdf-resolve-hypermedia-sparql/index.js").ActorRdfResolveHypermediaSparql)({ 'mediatorHttp': https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_init_sparql__1_0_0_config_sets_http_json_mediatorHttp, 'checkUrlSuffix': true, @@ -1666,6 +1423,8 @@ const https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_init_sp const https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_init_sparql__1_0_0_config_sets_resolve_sparql_json_mySparqlEndpointResolver = new (__webpack_require__(/*! @comunica/actor-query-operation-sparql-endpoint */ "./node_modules/@comunica/actor-query-operation-sparql-endpoint/index.js").ActorQueryOperationSparqlEndpoint)({ 'mediatorHttp': https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_init_sparql__1_0_0_config_sets_http_json_mediatorHttp, 'forceHttpGet': false, + 'checkUrlSuffixSparql': true, + 'checkUrlSuffixUpdate': true, 'name': 'https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/resolve-sparql.json#mySparqlEndpointResolver', 'bus': https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_query_operation_Bus_QueryOperation }); @@ -1691,16 +1450,17 @@ const https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_init_sp 'name': 'https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/rdf-parsers.json#myRdfParserHtmlScript', 'bus': https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_rdf_parse_html_Bus_RdfParseHtml }); -const https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_init_sparql__1_0_0_config_sets_rdf_update_rdfjs_json_myRdfUpdateHypermediaPatchSparqlUpdate = new (__webpack_require__(/*! @comunica/actor-rdf-update-hypermedia-patch-sparql-update */ "./node_modules/@comunica/actor-rdf-update-hypermedia-patch-sparql-update/index.js").ActorRdfUpdateHypermediaPatchSparqlUpdate)({ +const https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_init_sparql__1_0_0_config_sets_rdf_update_rdfjs_json_myRdfUpdateHypermediaPutLdp = new (__webpack_require__(/*! @comunica/actor-rdf-update-hypermedia-put-ldp */ "./node_modules/@comunica/actor-rdf-update-hypermedia-put-ldp/index.js").ActorRdfUpdateHypermediaPutLdp)({ 'mediatorHttp': https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_init_sparql__1_0_0_config_sets_http_json_mediatorHttp, + 'mediatorRdfSerializeMediatypes': https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_init_sparql__1_0_0_config_sets_sparql_serializers_json_mediatorRdfSerializeMediatypes, 'mediatorRdfSerialize': https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_init_sparql__1_0_0_config_sets_sparql_serializers_json_mediatorRdfSerialize, - 'name': 'https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/rdf-update-rdfjs.json#myRdfUpdateHypermediaPatchSparqlUpdate', + 'name': 'https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/rdf-update-rdfjs.json#myRdfUpdateHypermediaPutLdp', 'bus': https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_rdf_update_hypermedia_Bus_RdfUpdateHypermedia }); const https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_init_sparql__1_0_0_config_sets_sparql_serializers_json_myRdfSparqlSerializer = new (__webpack_require__(/*! @comunica/actor-sparql-serialize-rdf */ "./node_modules/@comunica/actor-sparql-serialize-rdf/index.js").ActorSparqlSerializeRdf)({ 'mediatorRdfSerialize': https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_init_sparql__1_0_0_config_sets_sparql_serializers_json_mediatorRdfSerialize, - 'mediatorMediaTypeCombiner': df_737_0, - 'mediatorMediaTypeFormatCombiner': df_737_1, + 'mediatorMediaTypeCombiner': https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_init_sparql__1_0_0_config_sets_sparql_serializers_json_mediatorRdfSerializeMediatypes, + 'mediatorMediaTypeFormatCombiner': df_757_0, 'name': 'https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/sparql-serializers.json#myRdfSparqlSerializer', 'bus': https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_sparql_serialize_Bus_SparqlSerialize }); @@ -1748,7 +1508,7 @@ const https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_init_sp 'name': 'https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/resolve-hypermedia.json#myQuadPatternHypermediaResolver', 'bus': https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_rdf_resolve_quad_pattern_Bus_RdfResolveQuadPattern }); -const https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_init_sparql__1_0_0_config_sets_http_json_myHttpProxy = new (__webpack_require__(/*! @comunica/actor-http-proxy */ "./node_modules/@comunica/actor-http-proxy/index.js").ActorHttpProxy)({ +const https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_init_sparql__1_0_0_config_sets_http_json_myHttpProxy = new (__webpack_require__(/*! @comunica/actor-http-proxy */ "./node_modules/@comunica/actor-init-sparql/node_modules/@comunica/actor-http-proxy/index.js").ActorHttpProxy)({ 'mediatorHttp': https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_init_sparql__1_0_0_config_sets_http_json_mediatorHttp, 'name': 'https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/http.json#myHttpProxy', 'bus': https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_http_Bus_Http, @@ -1803,11 +1563,11 @@ const urn_comunica_sparqlinit = new (__webpack_require__(/*! ./index.js */ "./no 'mediatorQueryOperation': https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_init_sparql__1_0_0_config_sets_sparql_queryoperators_json_mediatorQueryOperation, 'mediatorSparqlParse': https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_init_sparql__1_0_0_config_sets_sparql_init_json_mediatorSparqlParse, 'mediatorSparqlSerialize': https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_init_sparql__1_0_0_config_sets_sparql_init_json_mediatorSparqlSerialize, - 'mediatorSparqlSerializeMediaTypeCombiner': df_723_0, - 'mediatorSparqlSerializeMediaTypeFormatCombiner': df_723_1, + 'mediatorSparqlSerializeMediaTypeCombiner': df_743_0, + 'mediatorSparqlSerializeMediaTypeFormatCombiner': df_743_1, 'mediatorContextPreprocess': https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_init_sparql__1_0_0_config_sets_sparql_init_json_mediatorContextPreprocess, 'mediatorHttpInvalidate': https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_init_sparql__1_0_0_config_sets_sparql_init_json_mediatorHttpInvalidate, - 'logger': df_307_0, + 'logger': df_317_0, 'contextKeyShortcuts': { 'source': '@comunica/bus-rdf-resolve-quad-pattern:source', 'sources': '@comunica/bus-rdf-resolve-quad-pattern:sources', @@ -1822,7 +1582,10 @@ const urn_comunica_sparqlinit = new (__webpack_require__(/*! ./index.js */ "./no 'lenient': '@comunica/actor-init-sparql:lenient', 'httpIncludeCredentials': '@comunica/bus-http:include-credentials', 'httpAuth': '@comunica/bus-http:auth', - 'readOnly': '@comunica/bus-query-operation:readOnly' + 'fetch': '@comunica/bus-http:fetch', + 'readOnly': '@comunica/bus-query-operation:readOnly', + 'extensionFunctions': '@comunica/actor-init-sparql:extensionFunctions', + 'extensionFunctionCreator': '@comunica/actor-init-sparql:extensionFunctionCreator' }, 'name': 'urn:comunica:sparqlinit', 'bus': https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_init_Bus_Init @@ -1925,6 +1688,11 @@ const https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_init_sp 'name': 'https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/sparql-queryoperators.json#myMinusQueryOperator', 'bus': https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_query_operation_Bus_QueryOperation }); +const https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_init_sparql__1_0_0_config_sets_sparql_queryoperators_json_myNopQueryOperator = new (__webpack_require__(/*! @comunica/actor-query-operation-nop */ "./node_modules/@comunica/actor-query-operation-nop/index.js").ActorQueryOperationNop)({ + 'mediatorQueryOperation': https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_init_sparql__1_0_0_config_sets_sparql_queryoperators_json_mediatorQueryOperation, + 'name': 'https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/sparql-queryoperators.json#myNopQueryOperator', + 'bus': https___linkedsoftwaredependencies_org_bundles_npm__comunica_bus_query_operation_Bus_QueryOperation +}); const https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_init_sparql__1_0_0_config_sets_sparql_queryoperator_path_json_myAltPathOperator = new (__webpack_require__(/*! @comunica/actor-query-operation-path-alt */ "./node_modules/@comunica/actor-query-operation-path-alt/index.js").ActorQueryOperationPathAlt)({ 'mediatorQueryOperation': https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_init_sparql__1_0_0_config_sets_sparql_queryoperators_json_mediatorQueryOperation, 'name': 'https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/sparql-queryoperator-path.json#myAltPathOperator', @@ -2027,8 +1795,6 @@ const urn_comunica_my = ({ https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_init_sparql__1_0_0_config_sets_join_json_myRdfJoinActorNestedLoop, https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_init_sparql__1_0_0_config_sets_rdf_dereference_json_myRdfDereferencer, https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_init_sparql__1_0_0_config_sets_rdf_dereference_json_myRdfDereferencerFallback, - https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_init_sparql__1_0_0_config_sets_rdf_serializers_json_myRdfSerializerN3, - https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_init_sparql__1_0_0_config_sets_rdf_serializers_json_myRdfSerializeJsonLd, https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_init_sparql__1_0_0_config_sets_rdf_parsers_json_myRdfParserN3, https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_init_sparql__1_0_0_config_sets_rdf_parsers_json_myRdfParserJsonLd, https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_init_sparql__1_0_0_config_sets_rdf_parsers_json_myRdfParserRdfXml, @@ -2037,15 +1803,17 @@ const urn_comunica_my = ({ https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_init_sparql__1_0_0_config_sets_rdf_parsers_json_myRdfParserHtmlMicrodata, https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_init_sparql__1_0_0_config_sets_rdf_parsers_json_myRdfParserHtmlRdfa, https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_init_sparql__1_0_0_config_sets_rdf_parsers_json_myRdfParserHtmlScript, + https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_init_sparql__1_0_0_config_sets_rdf_serializers_json_myRdfSerializerN3, + https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_init_sparql__1_0_0_config_sets_rdf_serializers_json_myRdfSerializeJsonLd, https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_init_sparql__1_0_0_config_sets_rdf_update_rdfjs_json_myRdfUpdateQuadsHypermedia, https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_init_sparql__1_0_0_config_sets_resolve_hypermedia_json_myRdfMetadataExtractPatchSparqlUpdate, https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_init_sparql__1_0_0_config_sets_rdf_update_rdfjs_json_myRdfUpdateHypermediaPatchSparqlUpdate, + https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_init_sparql__1_0_0_config_sets_resolve_hypermedia_json_myRdfMetadataExtractAllowHttpMethods, + https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_init_sparql__1_0_0_config_sets_resolve_hypermedia_json_myRdfMetadataExtractPutAccepted, + https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_init_sparql__1_0_0_config_sets_rdf_update_rdfjs_json_myRdfUpdateHypermediaPutLdp, + https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_init_sparql__1_0_0_config_sets_rdf_update_rdfjs_json_myRdfUpdateHypermediaSparql, https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_init_sparql__1_0_0_config_sets_rdf_update_rdfjs_json_myRdfUpdateQuadsRdfJsStore, https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_init_sparql__1_0_0_config_sets_resolve_federated_json_myFederatedQuadPatternResolver, - https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_init_sparql__1_0_0_config_sets_resolve_rdfjs_json_myRdfRdfJsSourceQuadPatternResolver, - https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_init_sparql__1_0_0_config_sets_resolve_sparql_json_mySparqlQuadPatternResolver, - https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_init_sparql__1_0_0_config_sets_resolve_sparql_json_myRdfMetadataExtractSparqlService, - https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_init_sparql__1_0_0_config_sets_resolve_sparql_json_mySparqlEndpointResolver, https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_init_sparql__1_0_0_config_sets_resolve_hypermedia_json_myHypermediaQpfResolver, https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_init_sparql__1_0_0_config_sets_resolve_hypermedia_json_myHypermediaNoneResolver, https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_init_sparql__1_0_0_config_sets_resolve_hypermedia_json_myQuadPatternHypermediaResolver, @@ -2055,8 +1823,12 @@ const urn_comunica_my = ({ https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_init_sparql__1_0_0_config_sets_resolve_hypermedia_json_myRdfMetadataAll, https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_init_sparql__1_0_0_config_sets_resolve_hypermedia_json_myRdfMetadataExtractHydraControls, https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_init_sparql__1_0_0_config_sets_resolve_hypermedia_json_myRdfMetadataExtractHydraCount, - https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_init_sparql__1_0_0_config_sets_graphql_parsers_json_myGraphqlParser, + https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_init_sparql__1_0_0_config_sets_resolve_rdfjs_json_myRdfRdfJsSourceQuadPatternResolver, + https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_init_sparql__1_0_0_config_sets_resolve_sparql_json_mySparqlQuadPatternResolver, + https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_init_sparql__1_0_0_config_sets_resolve_sparql_json_myRdfMetadataExtractSparqlService, + https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_init_sparql__1_0_0_config_sets_resolve_sparql_json_mySparqlEndpointResolver, urn_comunica_sparqlinit, + https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_init_sparql__1_0_0_config_sets_graphql_parsers_json_myGraphqlParser, https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_init_sparql__1_0_0_config_sets_sparql_optimize_json_myJoinBgpOptimizer, https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_init_sparql__1_0_0_config_sets_sparql_parsers_json_mySparqlParser, https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_init_sparql__1_0_0_config_sets_sparql_queryoperators_json_myAskQueryOperator, @@ -2079,6 +1851,7 @@ const urn_comunica_my = ({ https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_init_sparql__1_0_0_config_sets_sparql_queryoperators_json_myProjectQueryOperator, https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_init_sparql__1_0_0_config_sets_sparql_queryoperators_json_myUnionQueryOperator, https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_init_sparql__1_0_0_config_sets_sparql_queryoperators_json_myMinusQueryOperator, + https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_init_sparql__1_0_0_config_sets_sparql_queryoperators_json_myNopQueryOperator, https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_init_sparql__1_0_0_config_sets_sparql_queryoperators_json_myValuesQueryOperator, https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_init_sparql__1_0_0_config_sets_sparql_queryoperators_json_myQuadPatternQueryOperator, https___linkedsoftwaredependencies_org_bundles_npm__comunica_actor_init_sparql__1_0_0_config_sets_sparql_queryoperator_path_json_myAltPathOperator, @@ -2171,7 +1944,7 @@ exports.evaluateQuery = evaluateQuery; Object.defineProperty(exports, "__esModule", { value: true }); exports.KEY_CONTEXT_QUERY = exports.KEY_CONTEXT_LENIENT = exports.KEY_CONTEXT_GRAPHQL_SINGULARIZEVARIABLES = exports.KEY_CONTEXT_QUERYFORMAT = exports.KEY_CONTEXT_INITIALBINDINGS = exports.ActorInitSparql = void 0; const bus_init_1 = __webpack_require__(/*! @comunica/bus-init */ "./node_modules/@comunica/bus-init/index.js"); -const bus_query_operation_1 = __webpack_require__(/*! @comunica/bus-query-operation */ "./node_modules/@comunica/bus-query-operation/index.js"); +const bus_query_operation_1 = __webpack_require__(/*! @comunica/bus-query-operation */ "./node_modules/@comunica/actor-init-sparql/node_modules/@comunica/bus-query-operation/index.js"); const bus_rdf_resolve_quad_pattern_1 = __webpack_require__(/*! @comunica/bus-rdf-resolve-quad-pattern */ "./node_modules/@comunica/bus-rdf-resolve-quad-pattern/index.js"); const context_entries_1 = __webpack_require__(/*! @comunica/context-entries */ "./node_modules/@comunica/context-entries/index.js"); const core_1 = __webpack_require__(/*! @comunica/core */ "./node_modules/@comunica/core/index.js"); @@ -2382,6 +2155,708 @@ exports.KEY_CONTEXT_QUERY = context_entries_1.KeysInitSparql.query; /***/ }), +/***/ "./node_modules/@comunica/actor-init-sparql/node_modules/@comunica/actor-http-proxy/index.js": +/*!***************************************************************************************************!*\ + !*** ./node_modules/@comunica/actor-init-sparql/node_modules/@comunica/actor-http-proxy/index.js ***! + \***************************************************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +__exportStar(__webpack_require__(/*! ./lib/ActorHttpProxy */ "./node_modules/@comunica/actor-init-sparql/node_modules/@comunica/actor-http-proxy/lib/ActorHttpProxy.js"), exports); +__exportStar(__webpack_require__(/*! ./lib/IProxyHandler */ "./node_modules/@comunica/actor-init-sparql/node_modules/@comunica/actor-http-proxy/lib/IProxyHandler.js"), exports); +__exportStar(__webpack_require__(/*! ./lib/ProxyHandlerStatic */ "./node_modules/@comunica/actor-init-sparql/node_modules/@comunica/actor-http-proxy/lib/ProxyHandlerStatic.js"), exports); +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ "./node_modules/@comunica/actor-init-sparql/node_modules/@comunica/actor-http-proxy/lib/ActorHttpProxy.js": +/*!****************************************************************************************************************!*\ + !*** ./node_modules/@comunica/actor-init-sparql/node_modules/@comunica/actor-http-proxy/lib/ActorHttpProxy.js ***! + \****************************************************************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +exports.KEY_CONTEXT_HTTPPROXYHANDLER = exports.ActorHttpProxy = void 0; +const bus_http_1 = __webpack_require__(/*! @comunica/bus-http */ "./node_modules/@comunica/bus-http/index.js"); +const context_entries_1 = __webpack_require__(/*! @comunica/context-entries */ "./node_modules/@comunica/context-entries/index.js"); +/** + * A comunica Proxy Http Actor. + */ +class ActorHttpProxy extends bus_http_1.ActorHttp { + constructor(args) { + super(args); + } + async test(action) { + if (!action.context) { + throw new Error(`Actor ${this.name} could not find a context.`); + } + const proxyHandler = action.context.get(context_entries_1.KeysHttpProxy.httpProxyHandler); + if (!proxyHandler) { + throw new Error(`Actor ${this.name} could not find a proxy handler in the context.`); + } + if (!await proxyHandler.getProxy(action)) { + throw new Error(`Actor ${this.name} could not determine a proxy for the given request.`); + } + return { time: Number.POSITIVE_INFINITY }; + } + async run(action) { + const requestedUrl = typeof action.input === 'string' ? action.input : action.input.url; + if (!action.context) { + throw new Error('Illegal state: missing context'); + } + const proxyHandler = action.context.get(context_entries_1.KeysHttpProxy.httpProxyHandler); + // Send a request for the modified request + const output = await this.mediatorHttp.mediate(Object.assign(Object.assign({}, await proxyHandler.getProxy(action)), { context: action.context.delete(context_entries_1.KeysHttpProxy.httpProxyHandler) })); + // Modify the response URL + // use defineProperty to allow modification of unmodifiable objects + Object.defineProperty(output, 'url', { + configurable: true, + enumerable: true, + get: () => { var _a; return (_a = output.headers.get('x-final-url')) !== null && _a !== void 0 ? _a : requestedUrl; }, + }); + return output; + } +} +exports.ActorHttpProxy = ActorHttpProxy; +/** + * @deprecated Import this constant from @comunica/context-entries. + */ +exports.KEY_CONTEXT_HTTPPROXYHANDLER = context_entries_1.KeysHttpProxy.httpProxyHandler; +//# sourceMappingURL=ActorHttpProxy.js.map + +/***/ }), + +/***/ "./node_modules/@comunica/actor-init-sparql/node_modules/@comunica/actor-http-proxy/lib/IProxyHandler.js": +/*!***************************************************************************************************************!*\ + !*** ./node_modules/@comunica/actor-init-sparql/node_modules/@comunica/actor-http-proxy/lib/IProxyHandler.js ***! + \***************************************************************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=IProxyHandler.js.map + +/***/ }), + +/***/ "./node_modules/@comunica/actor-init-sparql/node_modules/@comunica/actor-http-proxy/lib/ProxyHandlerStatic.js": +/*!********************************************************************************************************************!*\ + !*** ./node_modules/@comunica/actor-init-sparql/node_modules/@comunica/actor-http-proxy/lib/ProxyHandlerStatic.js ***! + \********************************************************************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ProxyHandlerStatic = void 0; +/** + * A proxy handler that prefixes all URLs with a given string. + */ +class ProxyHandlerStatic { + constructor(prefixUrl) { + this.prefixUrl = prefixUrl; + } + async getProxy(request) { + return { + init: request.init, + input: this.modifyInput(request.input), + }; + } + modifyInput(input) { + if (typeof input === 'string') { + return this.prefixUrl + input; + } + return new Request(this.prefixUrl + input.url, input); + } +} +exports.ProxyHandlerStatic = ProxyHandlerStatic; +//# sourceMappingURL=ProxyHandlerStatic.js.map + +/***/ }), + +/***/ "./node_modules/@comunica/actor-init-sparql/node_modules/@comunica/bus-query-operation/index.js": +/*!******************************************************************************************************!*\ + !*** ./node_modules/@comunica/actor-init-sparql/node_modules/@comunica/bus-query-operation/index.js ***! + \******************************************************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +__exportStar(__webpack_require__(/*! ./lib/ActorQueryOperation */ "./node_modules/@comunica/actor-init-sparql/node_modules/@comunica/bus-query-operation/lib/ActorQueryOperation.js"), exports); +__exportStar(__webpack_require__(/*! ./lib/ActorQueryOperationTyped */ "./node_modules/@comunica/actor-init-sparql/node_modules/@comunica/bus-query-operation/lib/ActorQueryOperationTyped.js"), exports); +__exportStar(__webpack_require__(/*! ./lib/ActorQueryOperationTypedMediated */ "./node_modules/@comunica/actor-init-sparql/node_modules/@comunica/bus-query-operation/lib/ActorQueryOperationTypedMediated.js"), exports); +__exportStar(__webpack_require__(/*! ./lib/Bindings */ "./node_modules/@comunica/actor-init-sparql/node_modules/@comunica/bus-query-operation/lib/Bindings.js"), exports); +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ "./node_modules/@comunica/actor-init-sparql/node_modules/@comunica/bus-query-operation/lib/ActorQueryOperation.js": +/*!************************************************************************************************************************!*\ + !*** ./node_modules/@comunica/actor-init-sparql/node_modules/@comunica/bus-query-operation/lib/ActorQueryOperation.js ***! + \************************************************************************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +exports.getMetadata = exports.ActorQueryOperation = exports.KEY_CONTEXT_READONLY = exports.KEY_CONTEXT_QUERY_TIMESTAMP = exports.KEY_CONTEXT_BASEIRI = exports.KEY_CONTEXT_PATTERN_PARENTMETADATA = exports.KEY_CONTEXT_BGP_PATTERNBINDINGS = exports.KEY_CONTEXT_BGP_PARENTMETADATA = exports.KEY_CONTEXT_BGP_CURRENTMETADATA = void 0; +const context_entries_1 = __webpack_require__(/*! @comunica/context-entries */ "./node_modules/@comunica/context-entries/index.js"); +const core_1 = __webpack_require__(/*! @comunica/core */ "./node_modules/@comunica/core/index.js"); +const data_factory_1 = __webpack_require__(/*! @comunica/data-factory */ "./node_modules/@comunica/data-factory/index.js"); +const Bindings_1 = __webpack_require__(/*! ./Bindings */ "./node_modules/@comunica/actor-init-sparql/node_modules/@comunica/bus-query-operation/lib/Bindings.js"); +/** + * @type {string} Context entry for current metadata. + * I.e., the metadata that was used to determine the next BGP operation. + * @value {any} A metadata hash. + * @deprecated Import this constant from @comunica/context-entries. + */ +exports.KEY_CONTEXT_BGP_CURRENTMETADATA = context_entries_1.KeysQueryOperation.bgpCurrentMetadata; +/** + * @type {string} Context entry for an array of parent metadata. + * I.e., an array of the metadata that was present before materializing the current BGP operations. + * This can be passed in 'bgp' actions. + * The array entries should correspond to the pattern entries in the BGP. + * @value {any} An array of metadata hashes. + * @deprecated Import this constant from @comunica/context-entries. + */ +exports.KEY_CONTEXT_BGP_PARENTMETADATA = context_entries_1.KeysQueryOperation.bgpParentMetadata; +/** + * @type {string} Context entry for indicating which patterns were bound from variables. + * I.e., an array of the same length as the value of KeysQueryOperation.patternParentMetadata, + * where each array value corresponds to the pattern bindings for the corresponding pattern. + * @value {any} An array of {@link PatternBindings}. + * @deprecated Import this constant from @comunica/context-entries. + */ +exports.KEY_CONTEXT_BGP_PATTERNBINDINGS = context_entries_1.KeysQueryOperation.bgpPatternBindings; +/** + * @type {string} Context entry for parent metadata. + * I.e., the metadata that was present before materializing the current operation. + * This can be passed in 'pattern' actions. + * @value {any} A metadata hash. + * @deprecated Import this constant from @comunica/context-entries. + */ +exports.KEY_CONTEXT_PATTERN_PARENTMETADATA = context_entries_1.KeysQueryOperation.patternParentMetadata; +/** + * @type {string} Context entry for query's base IRI. + * @value {any} A string. + * @deprecated Import this constant from @comunica/context-entries. + */ +exports.KEY_CONTEXT_BASEIRI = context_entries_1.KeysInitSparql.baseIRI; +/** + * @type {string} A timestamp representing the current time. + * This is required for certain SPARQL operations such as NOW(). + * @value {any} a date. + * @deprecated Import this constant from @comunica/context-entries. + */ +exports.KEY_CONTEXT_QUERY_TIMESTAMP = context_entries_1.KeysInitSparql.queryTimestamp; +/** + * @type {string} Context entry for indicating that only read operations are allowed, defaults to false. + * @value {any} A boolean. + * @deprecated Import this constant from @comunica/context-entries. + */ +exports.KEY_CONTEXT_READONLY = context_entries_1.KeysQueryOperation.readOnly; +/** + * A counter that keeps track blank node generated through BNODE() SPARQL + * expressions. + * + * @type {number} + */ +let bnodeCounter = 0; +/** + * A comunica actor for query-operation events. + * + * Actor types: + * * Input: IActionQueryOperation: A SPARQL Algebra operation. + * * Test: + * * Output: IActorQueryOperationOutput: A bindings stream. + * + * @see IActionQueryOperation + * @see IActorQueryOperationOutput + */ +class ActorQueryOperation extends core_1.Actor { + constructor(args) { + super(args); + } + /** + * Safely cast a query operation output to a bindings output. + * This will throw a runtime error if the output is of the incorrect type. + * @param {IActorQueryOperationOutput} output A query operation output. + * @return {IActorQueryOperationOutputBindings} A bindings query operation output. + */ + static getSafeBindings(output) { + ActorQueryOperation.validateQueryOutput(output, 'bindings'); + return output; + } + /** + * Safely cast a query operation output to a quads output. + * This will throw a runtime error if the output is of the incorrect type. + * @param {IActorQueryOperationOutput} output A query operation output. + * @return {IActorQueryOperationOutputQuads} A quads query operation output. + */ + static getSafeQuads(output) { + ActorQueryOperation.validateQueryOutput(output, 'quads'); + return output; + } + /** + * Safely cast a query operation output to a boolean output. + * This will throw a runtime error if the output is of the incorrect type. + * @param {IActorQueryOperationOutput} output A query operation output. + * @return {IActorQueryOperationOutputBoolean} A boolean query operation output. + */ + static getSafeBoolean(output) { + ActorQueryOperation.validateQueryOutput(output, 'boolean'); + return output; + } + /** + * Safely cast a query operation output to an update output. + * This will throw a runtime error if the output is of the incorrect type. + * @param {IActorQueryOperationOutput} output A query operation output. + * @return {IActorQueryOperationOutputUpdate} An update query operation output. + */ + static getSafeUpdate(output) { + ActorQueryOperation.validateQueryOutput(output, 'update'); + return output; + } + /** + * Convert a metadata callback to a lazy callback where the response value is cached. + * @param {() => Promise<{[p: string]: any}>} metadata A metadata callback + * @return {() => Promise<{[p: string]: any}>} The callback where the response will be cached. + */ + static cachifyMetadata(metadata) { + let lastReturn; + // eslint-disable-next-line no-return-assign,@typescript-eslint/no-misused-promises + return (metadata && (() => (lastReturn || (lastReturn = metadata())))); + } + /** + * Throw an error if the output type does not match the expected type. + * @param {IActorQueryOperationOutput} output A query operation output. + * @param {string} expectedType The expected output type. + */ + static validateQueryOutput(output, expectedType) { + if (output.type !== expectedType) { + throw new Error(`Invalid query output type: Expected '${expectedType}' but got '${output.type}'`); + } + } + static getBaseExpressionContext(context) { + if (context) { + const now = context.get(context_entries_1.KeysInitSparql.queryTimestamp); + const baseIRI = context.get(context_entries_1.KeysInitSparql.baseIRI); + // Handle two variants of providing extension functions + if (context.has(context_entries_1.KeysInitSparql.extensionFunctionCreator) && context.has(context_entries_1.KeysInitSparql.extensionFunctions)) { + throw new Error('Illegal simultaneous usage of extensionFunctionCreator and extensionFunctions in context'); + } + let extensionFunctionCreator = context.get(context_entries_1.KeysInitSparql.extensionFunctionCreator); + // Convert dictionary-based variant to callback + const extensionFunctions = context + .get(context_entries_1.KeysInitSparql.extensionFunctions); + if (extensionFunctions) { + extensionFunctionCreator = functionNamedNode => extensionFunctions[functionNamedNode.value]; + } + return { now, baseIRI, extensionFunctionCreator }; + } + return {}; + } + /** + * Create an options object that can be used to construct a sparqlee synchronous evaluator. + * @param context An action context. + * @param mediatorQueryOperation An optional query query operation mediator. + * If defined, the existence resolver will be defined as `exists`. + */ + static getExpressionContext(context, mediatorQueryOperation) { + return Object.assign(Object.assign({}, this.getBaseExpressionContext(context)), { bnode: (input) => new data_factory_1.BlankNodeBindingsScoped(input || `BNODE_${bnodeCounter++}`) }); + } + /** + * Create an options object that can be used to construct a sparqlee asynchronous evaluator. + * @param context An action context. + * @param mediatorQueryOperation An optional query query operation mediator. + * If defined, the existence resolver will be defined as `exists`. + */ + static getAsyncExpressionContext(context, mediatorQueryOperation) { + const expressionContext = Object.assign(Object.assign({}, this.getBaseExpressionContext(context)), { bnode: (input) => Promise.resolve(new data_factory_1.BlankNodeBindingsScoped(input || `BNODE_${bnodeCounter++}`)) }); + if (context && mediatorQueryOperation) { + expressionContext.exists = ActorQueryOperation.createExistenceResolver(context, mediatorQueryOperation); + } + return expressionContext; + } + /** + * Create an existence resolver for usage within an expression context. + * @param context An action context. + * @param mediatorQueryOperation A query operation mediator. + */ + static createExistenceResolver(context, mediatorQueryOperation) { + return async (expr, bindings) => { + const operation = Bindings_1.materializeOperation(expr.input, bindings); + const outputRaw = await mediatorQueryOperation.mediate({ operation, context }); + const output = ActorQueryOperation.getSafeBindings(outputRaw); + return new Promise((resolve, reject) => { + output.bindingsStream.on('end', () => { + resolve(false); + }); + output.bindingsStream.on('error', reject); + output.bindingsStream.on('data', () => { + output.bindingsStream.close(); + resolve(true); + }); + }) + .then((exists) => expr.not ? !exists : exists); + }; + } + /** + * Throw an error if the context contains the readOnly flag. + * @param context An action context. + */ + static throwOnReadOnly(context) { + if (context && context.get(exports.KEY_CONTEXT_READONLY)) { + throw new Error(`Attempted a write operation in read-only mode`); + } + } +} +exports.ActorQueryOperation = ActorQueryOperation; +/** + * Helper function to get the metadata of an action output. + * @param actionOutput An action output, with an optional metadata function. + * @return The metadata. + */ +function getMetadata(actionOutput) { + if (!actionOutput.metadata) { + return Promise.resolve({}); + } + return actionOutput.metadata(); +} +exports.getMetadata = getMetadata; +//# sourceMappingURL=ActorQueryOperation.js.map + +/***/ }), + +/***/ "./node_modules/@comunica/actor-init-sparql/node_modules/@comunica/bus-query-operation/lib/ActorQueryOperationTyped.js": +/*!*****************************************************************************************************************************!*\ + !*** ./node_modules/@comunica/actor-init-sparql/node_modules/@comunica/bus-query-operation/lib/ActorQueryOperationTyped.js ***! + \*****************************************************************************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ActorQueryOperationTyped = exports.KEY_CONTEXT_QUERYOPERATION = void 0; +const context_entries_1 = __webpack_require__(/*! @comunica/context-entries */ "./node_modules/@comunica/context-entries/index.js"); +const ActorQueryOperation_1 = __webpack_require__(/*! ./ActorQueryOperation */ "./node_modules/@comunica/actor-init-sparql/node_modules/@comunica/bus-query-operation/lib/ActorQueryOperation.js"); +/** + * @type {string} Context entry for the current query operation. + * @deprecated Import this constant from @comunica/context-entries. + */ +exports.KEY_CONTEXT_QUERYOPERATION = context_entries_1.KeysQueryOperation.operation; +/** + * A base implementation for query operation actors for a specific operation type. + */ +class ActorQueryOperationTyped extends ActorQueryOperation_1.ActorQueryOperation { + constructor(args, operationName) { + super(Object.assign(Object.assign({}, args), { operationName })); + if (!this.operationName) { + throw new Error('A valid "operationName" argument must be provided.'); + } + } + async test(action) { + if (!action.operation) { + throw new Error('Missing field \'operation\' in a query operation action.'); + } + if (action.operation.type !== this.operationName) { + throw new Error(`Actor ${this.name} only supports ${this.operationName} operations, but got ${action.operation.type}`); + } + const operation = action.operation; + return this.testOperation(operation, action.context); + } + async run(action) { + const operation = action.operation; + const subContext = action.context && action.context.set(context_entries_1.KeysQueryOperation.operation, operation); + const output = await this.runOperation(operation, subContext); + if (output.metadata) { + output.metadata = + ActorQueryOperation_1.ActorQueryOperation.cachifyMetadata(output.metadata); + } + return output; + } +} +exports.ActorQueryOperationTyped = ActorQueryOperationTyped; +//# sourceMappingURL=ActorQueryOperationTyped.js.map + +/***/ }), + +/***/ "./node_modules/@comunica/actor-init-sparql/node_modules/@comunica/bus-query-operation/lib/ActorQueryOperationTypedMediated.js": +/*!*************************************************************************************************************************************!*\ + !*** ./node_modules/@comunica/actor-init-sparql/node_modules/@comunica/bus-query-operation/lib/ActorQueryOperationTypedMediated.js ***! + \*************************************************************************************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ActorQueryOperationTypedMediated = void 0; +const ActorQueryOperationTyped_1 = __webpack_require__(/*! ./ActorQueryOperationTyped */ "./node_modules/@comunica/actor-init-sparql/node_modules/@comunica/bus-query-operation/lib/ActorQueryOperationTyped.js"); +/** + * A base implementation for query operation actors for a specific operation type that have a query operation mediator. + */ +class ActorQueryOperationTypedMediated extends ActorQueryOperationTyped_1.ActorQueryOperationTyped { + constructor(args, operationName) { + super(args, operationName); + } +} +exports.ActorQueryOperationTypedMediated = ActorQueryOperationTypedMediated; +//# sourceMappingURL=ActorQueryOperationTypedMediated.js.map + +/***/ }), + +/***/ "./node_modules/@comunica/actor-init-sparql/node_modules/@comunica/bus-query-operation/lib/Bindings.js": +/*!*************************************************************************************************************!*\ + !*** ./node_modules/@comunica/actor-init-sparql/node_modules/@comunica/bus-query-operation/lib/Bindings.js ***! + \*************************************************************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +exports.materializeOperation = exports.materializeTerm = exports.ensureBindings = exports.isBindings = exports.Bindings = void 0; +const immutable_1 = __webpack_require__(/*! immutable */ "./node_modules/immutable/dist/immutable.js"); +const rdf_string_1 = __webpack_require__(/*! rdf-string */ "./node_modules/rdf-string/index.js"); +const sparqlalgebrajs_1 = __webpack_require__(/*! sparqlalgebrajs */ "./node_modules/sparqlalgebrajs/index.js"); +/** + * A convenience constructor for bindings based on a given hash. + * @param {{[p: string]: RDF.Term}} hash A hash that maps variable names to terms. + * @return {Bindings} The immutable bindings from the hash. + * @constructor + */ +// eslint-disable-next-line no-redeclare +function Bindings(hash) { + return immutable_1.Map(hash); +} +exports.Bindings = Bindings; +/** + * Check if the given object is a bindings object. + * @param maybeBindings Any object. + * @return {boolean} If the object is a bindings object. + */ +function isBindings(maybeBindings) { + return immutable_1.Map.isMap(maybeBindings); +} +exports.isBindings = isBindings; +/** + * Convert the given object to a bindings object if it is not a bindings object yet. + * If it already is a bindings object, return the object as-is. + * @param maybeBindings Any object. + * @return {Bindings} A bindings object. + */ +function ensureBindings(maybeBindings) { + return isBindings(maybeBindings) ? maybeBindings : Bindings(maybeBindings); +} +exports.ensureBindings = ensureBindings; +/** + * Materialize a term with the given binding. + * + * If the given term is a variable, + * and that variable exist in the given bindings object, + * the value of that binding is returned. + * In all other cases, the term itself is returned. + * + * @param {RDF.Term} term A term. + * @param {Bindings} bindings A bindings object. + * @return {RDF.Term} The materialized term. + */ +function materializeTerm(term, bindings) { + if (term.termType === 'Variable') { + const value = bindings.get(rdf_string_1.termToString(term)); + if (value) { + return value; + } + } + return term; +} +exports.materializeTerm = materializeTerm; +/** + * Materialize the given operation (recursively) with the given bindings. + * Essentially, all variables in the given operation will be replaced + * by the terms bound to the variables in the given bindings. + * @param {Operation} operation SPARQL algebra operation. + * @param {Bindings} bindings A bindings object. + * @param {boolean} strictTargetVariables If target variable bindings (such as on SELECT or BIND) should not be allowed. + * @return Algebra.Operation A new operation materialized with the given bindings. + */ +function materializeOperation(operation, bindings, strictTargetVariables = false) { + return sparqlalgebrajs_1.Util.mapOperation(operation, { + path(op, factory) { + // Materialize variables in a path expression. + // The predicate expression will be recursed. + return { + recurse: false, + result: factory.createPath(materializeTerm(op.subject, bindings), op.predicate, materializeTerm(op.object, bindings), materializeTerm(op.graph, bindings)), + }; + }, + pattern(op, factory) { + // Materialize variables in the quad pattern. + return { + recurse: false, + result: factory.createPattern(materializeTerm(op.subject, bindings), materializeTerm(op.predicate, bindings), materializeTerm(op.object, bindings), materializeTerm(op.graph, bindings)), + }; + }, + extend(op) { + // Materialize an extend operation. + // If strictTargetVariables is true, we throw if the extension target variable is attempted to be bound. + // Otherwise, we remove the extend operation. + if (bindings.has(rdf_string_1.termToString(op.variable))) { + if (strictTargetVariables) { + throw new Error(`Tried to bind variable ${rdf_string_1.termToString(op.variable)} in a BIND operator.`); + } + else { + return { + recurse: true, + result: materializeOperation(op.input, bindings, strictTargetVariables), + }; + } + } + return { + recurse: true, + result: op, + }; + }, + group(op, factory) { + // Materialize a group operation. + // If strictTargetVariables is true, we throw if the group target variable is attempted to be bound. + // Otherwise, we just filter out the bound variables. + if (strictTargetVariables) { + for (const variable of op.variables) { + if (bindings.has(rdf_string_1.termToString(variable))) { + throw new Error(`Tried to bind variable ${rdf_string_1.termToString(variable)} in a GROUP BY operator.`); + } + } + return { + recurse: true, + result: op, + }; + } + const variables = op.variables.filter(variable => !bindings.has(rdf_string_1.termToString(variable))); + return { + recurse: true, + result: factory.createGroup(op.input, variables, op.aggregates), + }; + }, + project(op, factory) { + // Materialize a project operation. + // If strictTargetVariables is true, we throw if the project target variable is attempted to be bound. + // Otherwise, we just filter out the bound variables. + if (strictTargetVariables) { + for (const variable of op.variables) { + if (variable.termType !== 'Wildcard' && bindings.has(rdf_string_1.termToString(variable))) { + throw new Error(`Tried to bind variable ${rdf_string_1.termToString(variable)} in a SELECT operator.`); + } + } + return { + recurse: true, + result: op, + }; + } + const variables = op.variables.filter(variable => variable.termType !== 'Wildcard' && + !bindings.has(rdf_string_1.termToString(variable))); + return { + recurse: true, + result: factory.createProject(op.input, variables), + }; + }, + values(op, factory) { + // Materialize a values operation. + // If strictTargetVariables is true, we throw if the values target variable is attempted to be bound. + // Otherwise, we just filter out the bound variables and their bindings. + if (strictTargetVariables) { + for (const variable of op.variables) { + if (bindings.has(rdf_string_1.termToString(variable))) { + throw new Error(`Tried to bind variable ${rdf_string_1.termToString(variable)} in a VALUES operator.`); + } + } + } + else { + const variables = op.variables.filter(variable => !bindings.has(rdf_string_1.termToString(variable))); + const valueBindings = op.bindings.map(binding => { + const newBinding = Object.assign({}, binding); + bindings.forEach((value, key) => delete newBinding[key]); + return newBinding; + }); + return { + recurse: true, + result: factory.createValues(variables, valueBindings), + }; + } + return { + recurse: false, + result: op, + }; + }, + expression(op, factory) { + if (op.expressionType === 'term') { + // Materialize a term expression + return { + recurse: false, + result: factory.createTermExpression(materializeTerm(op.term, bindings)), + }; + } + if (op.expressionType === 'aggregate' && + 'variable' in op && + bindings.has(rdf_string_1.termToString(op.variable))) { + // Materialize a bound aggregate operation. + // If strictTargetVariables is true, we throw if the expression target variable is attempted to be bound. + // Otherwise, we ignore this operation. + if (strictTargetVariables) { + throw new Error(`Tried to bind ${rdf_string_1.termToString(op.variable)} in a ${op.aggregator} aggregate.`); + } + else { + return { + recurse: true, + result: op, + }; + } + } + return { + recurse: true, + result: op, + }; + }, + }); +} +exports.materializeOperation = materializeOperation; +//# sourceMappingURL=Bindings.js.map + +/***/ }), + /***/ "./node_modules/@comunica/actor-optimize-query-operation-join-bgp/index.js": /*!*********************************************************************************!*\ !*** ./node_modules/@comunica/actor-optimize-query-operation-join-bgp/index.js ***! @@ -3344,7 +3819,7 @@ class ActorQueryOperationExtend extends bus_query_operation_1.ActorQueryOperatio } async testOperation(pattern, context) { // Will throw error for unsupported opperations - const _ = Boolean(new sparqlee_1.AsyncEvaluator(pattern.expression)); + const _ = Boolean(new sparqlee_1.AsyncEvaluator(pattern.expression, bus_query_operation_1.ActorQueryOperation.getAsyncExpressionContext(context, this.mediatorQueryOperation))); return true; } async runOperation(pattern, context) { @@ -3461,7 +3936,12 @@ class ActorQueryOperationFilterSparqlee extends bus_query_operation_1.ActorQuery // > ... // > These errors have no effect outside of FILTER evaluation. // https://www.w3.org/TR/sparql11-query/#expressions - if (!sparqlee_1.isExpressionError(error)) { + if (sparqlee_1.isExpressionError(error)) { + // In many cases, this is a user error, where the user should manually cast the variable to a string. + // In order to help users debug this, we should report these errors via the logger as warnings. + this.logWarn(context, 'Error occurred while filtering.', () => ({ error, bindings: item.toJS() })); + } + else { bindingsStream.emit('error', error); } } @@ -3745,7 +4225,7 @@ class ActorQueryOperationGroup extends bus_query_operation_1.ActorQueryOperation async testOperation(pattern, context) { for (const aggregate of pattern.aggregates) { // Will throw for unsupported expressions - const _ = new sparqlee_1.SyncEvaluator(aggregate.expression); + const _ = new sparqlee_1.AsyncEvaluator(aggregate.expression, bus_query_operation_1.ActorQueryOperation.getAsyncExpressionContext(context)); } return true; } @@ -3761,7 +4241,7 @@ class ActorQueryOperationGroup extends bus_query_operation_1.ActorQueryOperation ...pattern.variables.map(x => rdf_string_1.termToString(x)), ...aggregates.map(agg => rdf_string_1.termToString(agg.variable)), ]; - const sparqleeConfig = Object.assign({}, bus_query_operation_1.ActorQueryOperation.getExpressionContext(context)); + const sparqleeConfig = bus_query_operation_1.ActorQueryOperation.getAsyncExpressionContext(context); // Return a new promise that completes when the stream has ended or when // an error occurs return new Promise((resolve, reject) => { @@ -3770,9 +4250,9 @@ class ActorQueryOperationGroup extends bus_query_operation_1.ActorQueryOperation // We can only return when the binding stream ends, when that happens // we return the identified groups. Which are nothing more than Bindings // of the grouping variables merged with the aggregate variables - output.bindingsStream.on('end', () => { + output.bindingsStream.on('end', async () => { try { - const bindingsStream = new asynciterator_1.ArrayIterator(groups.collectResults(), { autoStart: false }); + const bindingsStream = new asynciterator_1.ArrayIterator(await groups.collectResults(), { autoStart: false }); const { metadata } = output; resolve({ type: 'bindings', bindingsStream, metadata, variables, canContainUndefs: output.canContainUndefs }); } @@ -3786,12 +4266,7 @@ class ActorQueryOperationGroup extends bus_query_operation_1.ActorQueryOperation // We need to bind this after the 'error' and 'end' listeners to avoid the // stream having ended before those listeners are bound. output.bindingsStream.on('data', bindings => { - try { - groups.consumeBindings(bindings); - } - catch (error) { - reject(error); - } + groups.consumeBindings(bindings).catch(reject); }); }); } @@ -3824,10 +4299,13 @@ class GroupsState { this.pattern = pattern; this.sparqleeConfig = sparqleeConfig; this.groups = new Map(); + this.groupsInitializer = new Map(); this.groupVariables = new Set(this.pattern.variables.map(x => rdf_string_1.termToString(x))); this.distinctHashes = pattern.aggregates.some(({ distinct }) => distinct) ? new Map() : null; + this.waitCounter = 1; + this.resultHasBeenCalled = false; } /** * - Consumes a stream binding @@ -3837,52 +4315,69 @@ class GroupsState { * @param {Bindings} bindings - The Bindings to consume */ consumeBindings(bindings) { + const check = this.resultCheck(); + if (check) { + return check; + } + // We increment the counter and decrement him when put action is performed. + this.waitCounter++; // Select the bindings on which we group const grouper = bindings .filter((_, variable) => this.groupVariables.has(variable)) .toMap(); const groupHash = this.hashBindings(grouper); // First member of group -> create new group - let group = this.groups.get(groupHash); - if (!group) { + let groupInitializer = this.groupsInitializer.get(groupHash); + let res; + if (!groupInitializer) { // Initialize state for all aggregators for new group - const aggregators = {}; - for (const aggregate of this.pattern.aggregates) { - const key = rdf_string_1.termToString(aggregate.variable); - aggregators[key] = new sparqlee_1.AggregateEvaluator(aggregate, this.sparqleeConfig); - aggregators[key].put(bindings); - } - group = { aggregators, bindings: grouper }; - this.groups.set(groupHash, group); - if (this.distinctHashes) { - const bindingsHash = this.hashBindings(bindings); - this.distinctHashes.set(groupHash, new Set([bindingsHash])); - } + groupInitializer = (async () => { + const aggregators = {}; + await Promise.all(this.pattern.aggregates.map(async (aggregate) => { + const key = rdf_string_1.termToString(aggregate.variable); + aggregators[key] = new sparqlee_1.AsyncAggregateEvaluator(aggregate, this.sparqleeConfig); + await aggregators[key].put(bindings); + })); + if (this.distinctHashes) { + const bindingsHash = this.hashBindings(bindings); + this.distinctHashes.set(groupHash, new Set([bindingsHash])); + } + const group = { aggregators, bindings: grouper }; + this.groups.set(groupHash, group); + this.subtractWaitCounterAndCollect(); + return group; + })(); + this.groupsInitializer.set(groupHash, groupInitializer); + res = groupInitializer; } else { - // Group already exists - // Update all the aggregators with the input binding - for (const aggregate of this.pattern.aggregates) { - // If distinct, check first wether we have inserted these values already - if (aggregate.distinct) { - const hash = this.hashBindings(bindings); - if (this.distinctHashes.get(groupHash).has(hash)) { - continue; - } - else { + const groupInitializerDefined = groupInitializer; + res = (async () => { + const group = await groupInitializerDefined; + await Promise.all(this.pattern.aggregates.map(async (aggregate) => { + // If distinct, check first whether we have inserted these values already + if (aggregate.distinct) { + const hash = this.hashBindings(bindings); + if (this.distinctHashes.get(groupHash).has(hash)) { + return; + } this.distinctHashes.get(groupHash).add(hash); } - } - const variable = rdf_string_1.termToString(aggregate.variable); - group.aggregators[variable].put(bindings); - } + const variable = rdf_string_1.termToString(aggregate.variable); + await group.aggregators[variable].put(bindings); + })); + })().then(() => { + this.subtractWaitCounterAndCollect(); + }); } + return res; } - /** - * Collect the result of the current state. This returns a Bindings per group, - * and a (possibly empty) Bindings in case the no Bindings have been consumed yet. - */ - collectResults() { + subtractWaitCounterAndCollect() { + if (--this.waitCounter === 0) { + this.handleResultCollection(); + } + } + handleResultCollection() { // Collect groups let rows = [...this.groups].map(([_, group]) => { const { bindings: groupBindings, aggregators } = group; @@ -3906,14 +4401,37 @@ class GroupsState { const single = {}; for (const aggregate of this.pattern.aggregates) { const key = rdf_string_1.termToString(aggregate.variable); - const value = sparqlee_1.AggregateEvaluator.emptyValue(aggregate); + const value = sparqlee_1.AsyncAggregateEvaluator.emptyValue(aggregate); if (value !== undefined) { single[key] = value; } } rows = [bus_query_operation_1.Bindings(single)]; } - return rows; + this.waitResolver(rows); + } + resultCheck() { + if (this.resultHasBeenCalled) { + return Promise.reject(new Error('Calling any function after calling collectResult is invalid.')); + } + } + /** + * Collect the result of the final state. This returns a Bindings per group, + * and a (possibly empty) Bindings in case no Bindings have been consumed yet. + * You can only call this method once, after calling this method, + * calling any function on this will result in an error being thrown. + */ + collectResults() { + const check = this.resultCheck(); + if (check) { + return check; + } + this.resultHasBeenCalled = true; + const res = new Promise(resolve => { + this.waitResolver = resolve; + }); + this.subtractWaitCounterAndCollect(); + return res; } /** * @param {Bindings} bindings - Bindings to hash @@ -4286,6 +4804,70 @@ exports.BindingsIndex = BindingsIndex; /***/ }), +/***/ "./node_modules/@comunica/actor-query-operation-nop/index.js": +/*!*******************************************************************!*\ + !*** ./node_modules/@comunica/actor-query-operation-nop/index.js ***! + \*******************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +__exportStar(__webpack_require__(/*! ./lib/ActorQueryOperationNop */ "./node_modules/@comunica/actor-query-operation-nop/lib/ActorQueryOperationNop.js"), exports); +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ "./node_modules/@comunica/actor-query-operation-nop/lib/ActorQueryOperationNop.js": +/*!****************************************************************************************!*\ + !*** ./node_modules/@comunica/actor-query-operation-nop/lib/ActorQueryOperationNop.js ***! + \****************************************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ActorQueryOperationNop = void 0; +const bus_query_operation_1 = __webpack_require__(/*! @comunica/bus-query-operation */ "./node_modules/@comunica/bus-query-operation/index.js"); +const asynciterator_1 = __webpack_require__(/*! asynciterator */ "./node_modules/asynciterator/dist/asynciterator.js"); +/** + * A [Query Operation](https://github.com/comunica/comunica/tree/master/packages/bus-query-operation) + * actor that handles SPARQL nop operations. + */ +class ActorQueryOperationNop extends bus_query_operation_1.ActorQueryOperationTypedMediated { + constructor(args) { + super(args, 'nop'); + } + async testOperation(pattern, context) { + return true; + } + async runOperation(pattern, context) { + return { + bindingsStream: new asynciterator_1.SingletonIterator(bus_query_operation_1.Bindings({})), + metadata: () => Promise.resolve({ totalItems: 1 }), + type: 'bindings', + variables: [], + canContainUndefs: false, + }; + } +} +exports.ActorQueryOperationNop = ActorQueryOperationNop; +//# sourceMappingURL=ActorQueryOperationNop.js.map + +/***/ }), + /***/ "./node_modules/@comunica/actor-query-operation-orderby-sparqlee/index.js": /*!********************************************************************************!*\ !*** ./node_modules/@comunica/actor-query-operation-orderby-sparqlee/index.js ***! @@ -4339,7 +4921,7 @@ class ActorQueryOperationOrderBySparqlee extends bus_query_operation_1.ActorQuer // Will throw error for unsupported operators for (let expr of pattern.expressions) { expr = this.extractSortExpression(expr); - const _ = new sparqlee_1.AsyncEvaluator(expr); + const _ = new sparqlee_1.AsyncEvaluator(expr, bus_query_operation_1.ActorQueryOperation.getAsyncExpressionContext(context)); } return true; } @@ -5272,10 +5854,11 @@ class ActorQueryOperationProject extends bus_query_operation_1.ActorQueryOperati // Resolve the input const output = bus_query_operation_1.ActorQueryOperation.getSafeBindings(await this.mediatorQueryOperation.mediate({ operation: pattern.input, context })); // Find all variables that should be deleted from the input stream. - const variables = pattern.variables.map(x => rdf_string_1.termToString(x)); + const variables = pattern.variables.map(x => x.termType === 'Wildcard' ? '*' : rdf_string_1.termToString(x)); const deleteVariables = output.variables.filter(variable => !variables.includes(variable)); // Error if there are variables that are not bound in the input stream. - const missingVariables = variables.filter(variable => !output.variables.includes(variable)); + const missingVariables = variables.filter(variable => !output.variables.includes(variable) && + variable !== '*'); if (missingVariables.length > 0) { throw new Error(`Variables '${missingVariables}' are used in the projection result, but are not assigned.`); } @@ -5633,7 +6216,7 @@ class ActorQueryOperationService extends bus_query_operation_1.ActorQueryOperati let subContext = context .delete(context_entries_1.KeysRdfResolveQuadPattern.source) .delete(context_entries_1.KeysRdfResolveQuadPattern.sources); - const sourceType = this.forceSparqlEndpoint ? 'sparql' : 'auto'; + const sourceType = this.forceSparqlEndpoint ? 'sparql' : undefined; subContext = subContext.set(context_entries_1.KeysRdfResolveQuadPattern.sources, [{ type: sourceType, value: endpoint }]); // Query the source let output; @@ -5802,6 +6385,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); exports.ActorQueryOperationSparqlEndpoint = void 0; const bus_query_operation_1 = __webpack_require__(/*! @comunica/bus-query-operation */ "./node_modules/@comunica/bus-query-operation/index.js"); const bus_rdf_resolve_quad_pattern_1 = __webpack_require__(/*! @comunica/bus-rdf-resolve-quad-pattern */ "./node_modules/@comunica/bus-rdf-resolve-quad-pattern/index.js"); +const bus_rdf_update_quads_1 = __webpack_require__(/*! @comunica/bus-rdf-update-quads */ "./node_modules/@comunica/bus-rdf-update-quads/index.js"); const utils_datasource_1 = __webpack_require__(/*! @comunica/utils-datasource */ "./node_modules/@comunica/utils-datasource/index.js"); const asynciterator_1 = __webpack_require__(/*! asynciterator */ "./node_modules/asynciterator/dist/asynciterator.js"); const fetch_sparql_endpoint_1 = __webpack_require__(/*! fetch-sparql-endpoint */ "./node_modules/fetch-sparql-endpoint/index.js"); @@ -5824,10 +6408,19 @@ class ActorQueryOperationSparqlEndpoint extends bus_query_operation_1.ActorQuery throw new Error('Missing field \'operation\' in a query operation action.'); } const source = await utils_datasource_1.DataSourceUtils.getSingleSource(action.context); - if (source && bus_rdf_resolve_quad_pattern_1.getDataSourceType(source) === 'sparql') { + const destination = await utils_datasource_1.DataSourceUtils.getSingleDestination(action.context); + const sourceType = source ? bus_rdf_resolve_quad_pattern_1.getDataSourceType(source) : undefined; + const destinationType = destination ? bus_rdf_update_quads_1.getDataDestinationType(destination) : undefined; + const sourceValue = source ? bus_rdf_resolve_quad_pattern_1.getDataSourceValue(source) : undefined; + const destinationValue = destination ? bus_rdf_update_quads_1.getDataDestinationValue(destination) : undefined; + if ((source && sourceType === 'sparql' && + (!destination || (destinationType === 'sparql' && destinationValue === sourceValue))) || + (source && !sourceType && (!destination || (!destinationType && destinationValue === sourceValue)) && + typeof sourceValue === 'string' && ((this.checkUrlSuffixSparql && sourceValue.endsWith('/sparql')) || + (this.checkUrlSuffixUpdate && sourceValue.endsWith('/update'))))) { return { httpRequests: 1 }; } - throw new Error(`${this.name} requires a single source with a 'sparql' endpoint to be present in the context.`); + throw new Error(`${this.name} requires a single source with a 'sparql' endpoint to be present in the context or URL ending on /sparql or /update.`); } async run(action) { const source = await utils_datasource_1.DataSourceUtils.getSingleSource(action.context); @@ -5845,6 +6438,10 @@ class ActorQueryOperationSparqlEndpoint extends bus_query_operation_1.ActorQuery query = sparqlalgebrajs_1.toSparql(action.operation); // This will throw an error in case the result is an invalid SPARQL query type = this.endpointFetcher.getQueryType(query); + // Also check if this is an update query + if (type === 'UNKNOWN') { + type = this.endpointFetcher.getUpdateTypes(query); + } } catch (_a) { // Ignore errors @@ -5869,6 +6466,11 @@ class ActorQueryOperationSparqlEndpoint extends bus_query_operation_1.ActorQuery type: 'boolean', booleanResult: this.endpointFetcher.fetchAsk(endpoint, query), }; + default: + return { + type: 'update', + updateResult: this.endpointFetcher.fetchUpdate(endpoint, query), + }; } } /** @@ -6900,10 +7502,12 @@ exports.ActorRdfDereferenceHttpParse = ActorRdfDereferenceHttpParse; Object.defineProperty(exports, "__esModule", { value: true }); exports.ActorRdfDereferenceHttpParseBase = void 0; +const stream_1 = __webpack_require__(/*! stream */ "./node_modules/stream-browserify/index.js"); const bus_http_1 = __webpack_require__(/*! @comunica/bus-http */ "./node_modules/@comunica/bus-http/index.js"); const bus_rdf_dereference_1 = __webpack_require__(/*! @comunica/bus-rdf-dereference */ "./node_modules/@comunica/bus-rdf-dereference/index.js"); const cross_fetch_1 = __webpack_require__(/*! cross-fetch */ "./node_modules/cross-fetch/dist/browser-ponyfill.js"); const relative_to_absolute_iri_1 = __webpack_require__(/*! relative-to-absolute-iri */ "./node_modules/relative-to-absolute-iri/index.js"); +const stringifyStream = __webpack_require__(/*! stream-to-string */ "./node_modules/stream-to-string/index.js"); /** * An actor that listens on the 'rdf-dereference' bus. * @@ -6923,6 +7527,7 @@ class ActorRdfDereferenceHttpParseBase extends bus_rdf_dereference_1.ActorRdfDer } async run(action) { var _a; + let exists = true; // Define accept header based on available media types. const { mediaTypes } = await this.mediatorRdfParseMediatypes.mediate({ context: action.context, mediaTypes: true }); const acceptHeader = this.mediaTypesToAcceptString(mediaTypes, this.getMaxAcceptHeaderLength()); @@ -6952,23 +7557,36 @@ class ActorRdfDereferenceHttpParseBase extends bus_rdf_dereference_1.ActorRdfDer httpResponse.headers.forEach((value, key) => outputHeaders[key] = value); // Only parse if retrieval was successful if (httpResponse.status !== 200) { - const error = new Error(`Could not retrieve ${action.url} (${httpResponse.status}: ${httpResponse.statusText || 'unknown error'})`); - // Close the body if we have one, to avoid process to hang + exists = false; + // Consume the body, to avoid process to hang + let bodyString = 'empty response'; if (httpResponse.body) { - await httpResponse.body.cancel(); + const responseStream = bus_http_1.ActorHttp.toNodeReadable(httpResponse.body); + bodyString = await stringifyStream(responseStream); } - return this.handleDereferenceError(action, error); + if (!action.acceptErrors) { + const error = new Error(`Could not retrieve ${action.url} (HTTP status ${httpResponse.status}):\n${bodyString}`); + return this.handleDereferenceError(action, error, outputHeaders); + } + } + // Create Node quad response stream; + let responseStream; + if (exists) { + // Wrap WhatWG readable stream into a Node.js readable stream + // If the body already is a Node.js stream (in the case of node-fetch), don't do explicit conversion. + responseStream = bus_http_1.ActorHttp.toNodeReadable(httpResponse.body); + } + else { + responseStream = new stream_1.Readable(); + responseStream.push(null); } - // Wrap WhatWG readable stream into a Node.js readable stream - // If the body already is a Node.js stream (in the case of node-fetch), don't do explicit conversion. - const responseStream = bus_http_1.ActorHttp.toNodeReadable(httpResponse.body); // Parse the resulting response const match = ActorRdfDereferenceHttpParseBase.REGEX_MEDIATYPE .exec((_a = httpResponse.headers.get('content-type')) !== null && _a !== void 0 ? _a : ''); let mediaType = match[0]; // If no media type could be found, try to determine it via the file extension if (!mediaType || mediaType === 'text/plain') { - mediaType = this.getMediaTypeFromExtension(httpResponse.url); + mediaType = action.mediaType || this.getMediaTypeFromExtension(httpResponse.url); } const parseAction = { baseIRI: url, @@ -6982,18 +7600,23 @@ class ActorRdfDereferenceHttpParseBase extends bus_rdf_dereference_1.ActorRdfDer catch (error) { // Close the body, to avoid process to hang await httpResponse.body.cancel(); - return this.handleDereferenceError(action, error); + return this.handleDereferenceError(action, error, outputHeaders); } const quads = this.handleDereferenceStreamErrors(action, parseOutput.quads); // Return the parsed quad stream and whether or not only triples are supported - return { url, quads, triples: parseOutput.triples, headers: outputHeaders }; + return { url, quads, exists, triples: parseOutput.triples, headers: outputHeaders }; } mediaTypesToAcceptString(mediaTypes, maxLength) { const wildcard = '*/*;q=0.1'; const parts = []; const sortedMediaTypes = Object.keys(mediaTypes) .map(mediaType => ({ mediaType, priority: mediaTypes[mediaType] })) - .sort((left, right) => right.priority - left.priority); + .sort((left, right) => { + if (right.priority === left.priority) { + return left.mediaType.localeCompare(right.mediaType); + } + return right.priority - left.priority; + }); // Take into account the ',' characters joining each type const separatorLength = sortedMediaTypes.length - 1; let partsLength = separatorLength; @@ -7061,7 +7684,7 @@ __exportStar(__webpack_require__(/*! ./lib/ActorRdfJoinMultiSmallest */ "./node_ Object.defineProperty(exports, "__esModule", { value: true }); exports.ActorRdfJoinMultiSmallest = void 0; -const bus_query_operation_1 = __webpack_require__(/*! @comunica/bus-query-operation */ "./node_modules/@comunica/bus-query-operation/index.js"); +const bus_query_operation_1 = __webpack_require__(/*! @comunica/bus-query-operation */ "./node_modules/@comunica/actor-rdf-join-multi-smallest/node_modules/@comunica/bus-query-operation/index.js"); const bus_rdf_join_1 = __webpack_require__(/*! @comunica/bus-rdf-join */ "./node_modules/@comunica/bus-rdf-join/index.js"); /** * A Multi Smallest RDF Join Actor. @@ -7108,6 +7731,571 @@ exports.ActorRdfJoinMultiSmallest = ActorRdfJoinMultiSmallest; /***/ }), +/***/ "./node_modules/@comunica/actor-rdf-join-multi-smallest/node_modules/@comunica/bus-query-operation/index.js": +/*!******************************************************************************************************************!*\ + !*** ./node_modules/@comunica/actor-rdf-join-multi-smallest/node_modules/@comunica/bus-query-operation/index.js ***! + \******************************************************************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +__exportStar(__webpack_require__(/*! ./lib/ActorQueryOperation */ "./node_modules/@comunica/actor-rdf-join-multi-smallest/node_modules/@comunica/bus-query-operation/lib/ActorQueryOperation.js"), exports); +__exportStar(__webpack_require__(/*! ./lib/ActorQueryOperationTyped */ "./node_modules/@comunica/actor-rdf-join-multi-smallest/node_modules/@comunica/bus-query-operation/lib/ActorQueryOperationTyped.js"), exports); +__exportStar(__webpack_require__(/*! ./lib/ActorQueryOperationTypedMediated */ "./node_modules/@comunica/actor-rdf-join-multi-smallest/node_modules/@comunica/bus-query-operation/lib/ActorQueryOperationTypedMediated.js"), exports); +__exportStar(__webpack_require__(/*! ./lib/Bindings */ "./node_modules/@comunica/actor-rdf-join-multi-smallest/node_modules/@comunica/bus-query-operation/lib/Bindings.js"), exports); +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ "./node_modules/@comunica/actor-rdf-join-multi-smallest/node_modules/@comunica/bus-query-operation/lib/ActorQueryOperation.js": +/*!************************************************************************************************************************************!*\ + !*** ./node_modules/@comunica/actor-rdf-join-multi-smallest/node_modules/@comunica/bus-query-operation/lib/ActorQueryOperation.js ***! + \************************************************************************************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +exports.getMetadata = exports.ActorQueryOperation = exports.KEY_CONTEXT_READONLY = exports.KEY_CONTEXT_QUERY_TIMESTAMP = exports.KEY_CONTEXT_BASEIRI = exports.KEY_CONTEXT_PATTERN_PARENTMETADATA = exports.KEY_CONTEXT_BGP_PATTERNBINDINGS = exports.KEY_CONTEXT_BGP_PARENTMETADATA = exports.KEY_CONTEXT_BGP_CURRENTMETADATA = void 0; +const context_entries_1 = __webpack_require__(/*! @comunica/context-entries */ "./node_modules/@comunica/context-entries/index.js"); +const core_1 = __webpack_require__(/*! @comunica/core */ "./node_modules/@comunica/core/index.js"); +const data_factory_1 = __webpack_require__(/*! @comunica/data-factory */ "./node_modules/@comunica/data-factory/index.js"); +const Bindings_1 = __webpack_require__(/*! ./Bindings */ "./node_modules/@comunica/actor-rdf-join-multi-smallest/node_modules/@comunica/bus-query-operation/lib/Bindings.js"); +/** + * @type {string} Context entry for current metadata. + * I.e., the metadata that was used to determine the next BGP operation. + * @value {any} A metadata hash. + * @deprecated Import this constant from @comunica/context-entries. + */ +exports.KEY_CONTEXT_BGP_CURRENTMETADATA = context_entries_1.KeysQueryOperation.bgpCurrentMetadata; +/** + * @type {string} Context entry for an array of parent metadata. + * I.e., an array of the metadata that was present before materializing the current BGP operations. + * This can be passed in 'bgp' actions. + * The array entries should correspond to the pattern entries in the BGP. + * @value {any} An array of metadata hashes. + * @deprecated Import this constant from @comunica/context-entries. + */ +exports.KEY_CONTEXT_BGP_PARENTMETADATA = context_entries_1.KeysQueryOperation.bgpParentMetadata; +/** + * @type {string} Context entry for indicating which patterns were bound from variables. + * I.e., an array of the same length as the value of KeysQueryOperation.patternParentMetadata, + * where each array value corresponds to the pattern bindings for the corresponding pattern. + * @value {any} An array of {@link PatternBindings}. + * @deprecated Import this constant from @comunica/context-entries. + */ +exports.KEY_CONTEXT_BGP_PATTERNBINDINGS = context_entries_1.KeysQueryOperation.bgpPatternBindings; +/** + * @type {string} Context entry for parent metadata. + * I.e., the metadata that was present before materializing the current operation. + * This can be passed in 'pattern' actions. + * @value {any} A metadata hash. + * @deprecated Import this constant from @comunica/context-entries. + */ +exports.KEY_CONTEXT_PATTERN_PARENTMETADATA = context_entries_1.KeysQueryOperation.patternParentMetadata; +/** + * @type {string} Context entry for query's base IRI. + * @value {any} A string. + * @deprecated Import this constant from @comunica/context-entries. + */ +exports.KEY_CONTEXT_BASEIRI = context_entries_1.KeysInitSparql.baseIRI; +/** + * @type {string} A timestamp representing the current time. + * This is required for certain SPARQL operations such as NOW(). + * @value {any} a date. + * @deprecated Import this constant from @comunica/context-entries. + */ +exports.KEY_CONTEXT_QUERY_TIMESTAMP = context_entries_1.KeysInitSparql.queryTimestamp; +/** + * @type {string} Context entry for indicating that only read operations are allowed, defaults to false. + * @value {any} A boolean. + * @deprecated Import this constant from @comunica/context-entries. + */ +exports.KEY_CONTEXT_READONLY = context_entries_1.KeysQueryOperation.readOnly; +/** + * A counter that keeps track blank node generated through BNODE() SPARQL + * expressions. + * + * @type {number} + */ +let bnodeCounter = 0; +/** + * A comunica actor for query-operation events. + * + * Actor types: + * * Input: IActionQueryOperation: A SPARQL Algebra operation. + * * Test: + * * Output: IActorQueryOperationOutput: A bindings stream. + * + * @see IActionQueryOperation + * @see IActorQueryOperationOutput + */ +class ActorQueryOperation extends core_1.Actor { + constructor(args) { + super(args); + } + /** + * Safely cast a query operation output to a bindings output. + * This will throw a runtime error if the output is of the incorrect type. + * @param {IActorQueryOperationOutput} output A query operation output. + * @return {IActorQueryOperationOutputBindings} A bindings query operation output. + */ + static getSafeBindings(output) { + ActorQueryOperation.validateQueryOutput(output, 'bindings'); + return output; + } + /** + * Safely cast a query operation output to a quads output. + * This will throw a runtime error if the output is of the incorrect type. + * @param {IActorQueryOperationOutput} output A query operation output. + * @return {IActorQueryOperationOutputQuads} A quads query operation output. + */ + static getSafeQuads(output) { + ActorQueryOperation.validateQueryOutput(output, 'quads'); + return output; + } + /** + * Safely cast a query operation output to a boolean output. + * This will throw a runtime error if the output is of the incorrect type. + * @param {IActorQueryOperationOutput} output A query operation output. + * @return {IActorQueryOperationOutputBoolean} A boolean query operation output. + */ + static getSafeBoolean(output) { + ActorQueryOperation.validateQueryOutput(output, 'boolean'); + return output; + } + /** + * Safely cast a query operation output to an update output. + * This will throw a runtime error if the output is of the incorrect type. + * @param {IActorQueryOperationOutput} output A query operation output. + * @return {IActorQueryOperationOutputUpdate} An update query operation output. + */ + static getSafeUpdate(output) { + ActorQueryOperation.validateQueryOutput(output, 'update'); + return output; + } + /** + * Convert a metadata callback to a lazy callback where the response value is cached. + * @param {() => Promise<{[p: string]: any}>} metadata A metadata callback + * @return {() => Promise<{[p: string]: any}>} The callback where the response will be cached. + */ + static cachifyMetadata(metadata) { + let lastReturn; + // eslint-disable-next-line no-return-assign,@typescript-eslint/no-misused-promises + return (metadata && (() => (lastReturn || (lastReturn = metadata())))); + } + /** + * Throw an error if the output type does not match the expected type. + * @param {IActorQueryOperationOutput} output A query operation output. + * @param {string} expectedType The expected output type. + */ + static validateQueryOutput(output, expectedType) { + if (output.type !== expectedType) { + throw new Error(`Invalid query output type: Expected '${expectedType}' but got '${output.type}'`); + } + } + static getBaseExpressionContext(context) { + if (context) { + const now = context.get(context_entries_1.KeysInitSparql.queryTimestamp); + const baseIRI = context.get(context_entries_1.KeysInitSparql.baseIRI); + // Handle two variants of providing extension functions + if (context.has(context_entries_1.KeysInitSparql.extensionFunctionCreator) && context.has(context_entries_1.KeysInitSparql.extensionFunctions)) { + throw new Error('Illegal simultaneous usage of extensionFunctionCreator and extensionFunctions in context'); + } + let extensionFunctionCreator = context.get(context_entries_1.KeysInitSparql.extensionFunctionCreator); + // Convert dictionary-based variant to callback + const extensionFunctions = context + .get(context_entries_1.KeysInitSparql.extensionFunctions); + if (extensionFunctions) { + extensionFunctionCreator = functionNamedNode => extensionFunctions[functionNamedNode.value]; + } + return { now, baseIRI, extensionFunctionCreator }; + } + return {}; + } + /** + * Create an options object that can be used to construct a sparqlee synchronous evaluator. + * @param context An action context. + * @param mediatorQueryOperation An optional query query operation mediator. + * If defined, the existence resolver will be defined as `exists`. + */ + static getExpressionContext(context, mediatorQueryOperation) { + return Object.assign(Object.assign({}, this.getBaseExpressionContext(context)), { bnode: (input) => new data_factory_1.BlankNodeBindingsScoped(input || `BNODE_${bnodeCounter++}`) }); + } + /** + * Create an options object that can be used to construct a sparqlee asynchronous evaluator. + * @param context An action context. + * @param mediatorQueryOperation An optional query query operation mediator. + * If defined, the existence resolver will be defined as `exists`. + */ + static getAsyncExpressionContext(context, mediatorQueryOperation) { + const expressionContext = Object.assign(Object.assign({}, this.getBaseExpressionContext(context)), { bnode: (input) => Promise.resolve(new data_factory_1.BlankNodeBindingsScoped(input || `BNODE_${bnodeCounter++}`)) }); + if (context && mediatorQueryOperation) { + expressionContext.exists = ActorQueryOperation.createExistenceResolver(context, mediatorQueryOperation); + } + return expressionContext; + } + /** + * Create an existence resolver for usage within an expression context. + * @param context An action context. + * @param mediatorQueryOperation A query operation mediator. + */ + static createExistenceResolver(context, mediatorQueryOperation) { + return async (expr, bindings) => { + const operation = Bindings_1.materializeOperation(expr.input, bindings); + const outputRaw = await mediatorQueryOperation.mediate({ operation, context }); + const output = ActorQueryOperation.getSafeBindings(outputRaw); + return new Promise((resolve, reject) => { + output.bindingsStream.on('end', () => { + resolve(false); + }); + output.bindingsStream.on('error', reject); + output.bindingsStream.on('data', () => { + output.bindingsStream.close(); + resolve(true); + }); + }) + .then((exists) => expr.not ? !exists : exists); + }; + } + /** + * Throw an error if the context contains the readOnly flag. + * @param context An action context. + */ + static throwOnReadOnly(context) { + if (context && context.get(exports.KEY_CONTEXT_READONLY)) { + throw new Error(`Attempted a write operation in read-only mode`); + } + } +} +exports.ActorQueryOperation = ActorQueryOperation; +/** + * Helper function to get the metadata of an action output. + * @param actionOutput An action output, with an optional metadata function. + * @return The metadata. + */ +function getMetadata(actionOutput) { + if (!actionOutput.metadata) { + return Promise.resolve({}); + } + return actionOutput.metadata(); +} +exports.getMetadata = getMetadata; +//# sourceMappingURL=ActorQueryOperation.js.map + +/***/ }), + +/***/ "./node_modules/@comunica/actor-rdf-join-multi-smallest/node_modules/@comunica/bus-query-operation/lib/ActorQueryOperationTyped.js": +/*!*****************************************************************************************************************************************!*\ + !*** ./node_modules/@comunica/actor-rdf-join-multi-smallest/node_modules/@comunica/bus-query-operation/lib/ActorQueryOperationTyped.js ***! + \*****************************************************************************************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ActorQueryOperationTyped = exports.KEY_CONTEXT_QUERYOPERATION = void 0; +const context_entries_1 = __webpack_require__(/*! @comunica/context-entries */ "./node_modules/@comunica/context-entries/index.js"); +const ActorQueryOperation_1 = __webpack_require__(/*! ./ActorQueryOperation */ "./node_modules/@comunica/actor-rdf-join-multi-smallest/node_modules/@comunica/bus-query-operation/lib/ActorQueryOperation.js"); +/** + * @type {string} Context entry for the current query operation. + * @deprecated Import this constant from @comunica/context-entries. + */ +exports.KEY_CONTEXT_QUERYOPERATION = context_entries_1.KeysQueryOperation.operation; +/** + * A base implementation for query operation actors for a specific operation type. + */ +class ActorQueryOperationTyped extends ActorQueryOperation_1.ActorQueryOperation { + constructor(args, operationName) { + super(Object.assign(Object.assign({}, args), { operationName })); + if (!this.operationName) { + throw new Error('A valid "operationName" argument must be provided.'); + } + } + async test(action) { + if (!action.operation) { + throw new Error('Missing field \'operation\' in a query operation action.'); + } + if (action.operation.type !== this.operationName) { + throw new Error(`Actor ${this.name} only supports ${this.operationName} operations, but got ${action.operation.type}`); + } + const operation = action.operation; + return this.testOperation(operation, action.context); + } + async run(action) { + const operation = action.operation; + const subContext = action.context && action.context.set(context_entries_1.KeysQueryOperation.operation, operation); + const output = await this.runOperation(operation, subContext); + if (output.metadata) { + output.metadata = + ActorQueryOperation_1.ActorQueryOperation.cachifyMetadata(output.metadata); + } + return output; + } +} +exports.ActorQueryOperationTyped = ActorQueryOperationTyped; +//# sourceMappingURL=ActorQueryOperationTyped.js.map + +/***/ }), + +/***/ "./node_modules/@comunica/actor-rdf-join-multi-smallest/node_modules/@comunica/bus-query-operation/lib/ActorQueryOperationTypedMediated.js": +/*!*************************************************************************************************************************************************!*\ + !*** ./node_modules/@comunica/actor-rdf-join-multi-smallest/node_modules/@comunica/bus-query-operation/lib/ActorQueryOperationTypedMediated.js ***! + \*************************************************************************************************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ActorQueryOperationTypedMediated = void 0; +const ActorQueryOperationTyped_1 = __webpack_require__(/*! ./ActorQueryOperationTyped */ "./node_modules/@comunica/actor-rdf-join-multi-smallest/node_modules/@comunica/bus-query-operation/lib/ActorQueryOperationTyped.js"); +/** + * A base implementation for query operation actors for a specific operation type that have a query operation mediator. + */ +class ActorQueryOperationTypedMediated extends ActorQueryOperationTyped_1.ActorQueryOperationTyped { + constructor(args, operationName) { + super(args, operationName); + } +} +exports.ActorQueryOperationTypedMediated = ActorQueryOperationTypedMediated; +//# sourceMappingURL=ActorQueryOperationTypedMediated.js.map + +/***/ }), + +/***/ "./node_modules/@comunica/actor-rdf-join-multi-smallest/node_modules/@comunica/bus-query-operation/lib/Bindings.js": +/*!*************************************************************************************************************************!*\ + !*** ./node_modules/@comunica/actor-rdf-join-multi-smallest/node_modules/@comunica/bus-query-operation/lib/Bindings.js ***! + \*************************************************************************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +exports.materializeOperation = exports.materializeTerm = exports.ensureBindings = exports.isBindings = exports.Bindings = void 0; +const immutable_1 = __webpack_require__(/*! immutable */ "./node_modules/immutable/dist/immutable.js"); +const rdf_string_1 = __webpack_require__(/*! rdf-string */ "./node_modules/rdf-string/index.js"); +const sparqlalgebrajs_1 = __webpack_require__(/*! sparqlalgebrajs */ "./node_modules/sparqlalgebrajs/index.js"); +/** + * A convenience constructor for bindings based on a given hash. + * @param {{[p: string]: RDF.Term}} hash A hash that maps variable names to terms. + * @return {Bindings} The immutable bindings from the hash. + * @constructor + */ +// eslint-disable-next-line no-redeclare +function Bindings(hash) { + return immutable_1.Map(hash); +} +exports.Bindings = Bindings; +/** + * Check if the given object is a bindings object. + * @param maybeBindings Any object. + * @return {boolean} If the object is a bindings object. + */ +function isBindings(maybeBindings) { + return immutable_1.Map.isMap(maybeBindings); +} +exports.isBindings = isBindings; +/** + * Convert the given object to a bindings object if it is not a bindings object yet. + * If it already is a bindings object, return the object as-is. + * @param maybeBindings Any object. + * @return {Bindings} A bindings object. + */ +function ensureBindings(maybeBindings) { + return isBindings(maybeBindings) ? maybeBindings : Bindings(maybeBindings); +} +exports.ensureBindings = ensureBindings; +/** + * Materialize a term with the given binding. + * + * If the given term is a variable, + * and that variable exist in the given bindings object, + * the value of that binding is returned. + * In all other cases, the term itself is returned. + * + * @param {RDF.Term} term A term. + * @param {Bindings} bindings A bindings object. + * @return {RDF.Term} The materialized term. + */ +function materializeTerm(term, bindings) { + if (term.termType === 'Variable') { + const value = bindings.get(rdf_string_1.termToString(term)); + if (value) { + return value; + } + } + return term; +} +exports.materializeTerm = materializeTerm; +/** + * Materialize the given operation (recursively) with the given bindings. + * Essentially, all variables in the given operation will be replaced + * by the terms bound to the variables in the given bindings. + * @param {Operation} operation SPARQL algebra operation. + * @param {Bindings} bindings A bindings object. + * @param {boolean} strictTargetVariables If target variable bindings (such as on SELECT or BIND) should not be allowed. + * @return Algebra.Operation A new operation materialized with the given bindings. + */ +function materializeOperation(operation, bindings, strictTargetVariables = false) { + return sparqlalgebrajs_1.Util.mapOperation(operation, { + path(op, factory) { + // Materialize variables in a path expression. + // The predicate expression will be recursed. + return { + recurse: false, + result: factory.createPath(materializeTerm(op.subject, bindings), op.predicate, materializeTerm(op.object, bindings), materializeTerm(op.graph, bindings)), + }; + }, + pattern(op, factory) { + // Materialize variables in the quad pattern. + return { + recurse: false, + result: factory.createPattern(materializeTerm(op.subject, bindings), materializeTerm(op.predicate, bindings), materializeTerm(op.object, bindings), materializeTerm(op.graph, bindings)), + }; + }, + extend(op) { + // Materialize an extend operation. + // If strictTargetVariables is true, we throw if the extension target variable is attempted to be bound. + // Otherwise, we remove the extend operation. + if (bindings.has(rdf_string_1.termToString(op.variable))) { + if (strictTargetVariables) { + throw new Error(`Tried to bind variable ${rdf_string_1.termToString(op.variable)} in a BIND operator.`); + } + else { + return { + recurse: true, + result: materializeOperation(op.input, bindings, strictTargetVariables), + }; + } + } + return { + recurse: true, + result: op, + }; + }, + group(op, factory) { + // Materialize a group operation. + // If strictTargetVariables is true, we throw if the group target variable is attempted to be bound. + // Otherwise, we just filter out the bound variables. + if (strictTargetVariables) { + for (const variable of op.variables) { + if (bindings.has(rdf_string_1.termToString(variable))) { + throw new Error(`Tried to bind variable ${rdf_string_1.termToString(variable)} in a GROUP BY operator.`); + } + } + return { + recurse: true, + result: op, + }; + } + const variables = op.variables.filter(variable => !bindings.has(rdf_string_1.termToString(variable))); + return { + recurse: true, + result: factory.createGroup(op.input, variables, op.aggregates), + }; + }, + project(op, factory) { + // Materialize a project operation. + // If strictTargetVariables is true, we throw if the project target variable is attempted to be bound. + // Otherwise, we just filter out the bound variables. + if (strictTargetVariables) { + for (const variable of op.variables) { + if (variable.termType !== 'Wildcard' && bindings.has(rdf_string_1.termToString(variable))) { + throw new Error(`Tried to bind variable ${rdf_string_1.termToString(variable)} in a SELECT operator.`); + } + } + return { + recurse: true, + result: op, + }; + } + const variables = op.variables.filter(variable => variable.termType !== 'Wildcard' && + !bindings.has(rdf_string_1.termToString(variable))); + return { + recurse: true, + result: factory.createProject(op.input, variables), + }; + }, + values(op, factory) { + // Materialize a values operation. + // If strictTargetVariables is true, we throw if the values target variable is attempted to be bound. + // Otherwise, we just filter out the bound variables and their bindings. + if (strictTargetVariables) { + for (const variable of op.variables) { + if (bindings.has(rdf_string_1.termToString(variable))) { + throw new Error(`Tried to bind variable ${rdf_string_1.termToString(variable)} in a VALUES operator.`); + } + } + } + else { + const variables = op.variables.filter(variable => !bindings.has(rdf_string_1.termToString(variable))); + const valueBindings = op.bindings.map(binding => { + const newBinding = Object.assign({}, binding); + bindings.forEach((value, key) => delete newBinding[key]); + return newBinding; + }); + return { + recurse: true, + result: factory.createValues(variables, valueBindings), + }; + } + return { + recurse: false, + result: op, + }; + }, + expression(op, factory) { + if (op.expressionType === 'term') { + // Materialize a term expression + return { + recurse: false, + result: factory.createTermExpression(materializeTerm(op.term, bindings)), + }; + } + if (op.expressionType === 'aggregate' && + 'variable' in op && + bindings.has(rdf_string_1.termToString(op.variable))) { + // Materialize a bound aggregate operation. + // If strictTargetVariables is true, we throw if the expression target variable is attempted to be bound. + // Otherwise, we ignore this operation. + if (strictTargetVariables) { + throw new Error(`Tried to bind ${rdf_string_1.termToString(op.variable)} in a ${op.aggregator} aggregate.`); + } + else { + return { + recurse: true, + result: op, + }; + } + } + return { + recurse: true, + result: op, + }; + }, + }); +} +exports.materializeOperation = materializeOperation; +//# sourceMappingURL=Bindings.js.map + +/***/ }), + /***/ "./node_modules/@comunica/actor-rdf-join-nestedloop/index.js": /*!*******************************************************************!*\ !*** ./node_modules/@comunica/actor-rdf-join-nestedloop/index.js ***! @@ -7332,6 +8520,66 @@ exports.ActorRdfMetadataAll = ActorRdfMetadataAll; /***/ }), +/***/ "./node_modules/@comunica/actor-rdf-metadata-extract-allow-http-methods/index.js": +/*!***************************************************************************************!*\ + !*** ./node_modules/@comunica/actor-rdf-metadata-extract-allow-http-methods/index.js ***! + \***************************************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +__exportStar(__webpack_require__(/*! ./lib/ActorRdfMetadataExtractAllowHttpMethods */ "./node_modules/@comunica/actor-rdf-metadata-extract-allow-http-methods/lib/ActorRdfMetadataExtractAllowHttpMethods.js"), exports); +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ "./node_modules/@comunica/actor-rdf-metadata-extract-allow-http-methods/lib/ActorRdfMetadataExtractAllowHttpMethods.js": +/*!*****************************************************************************************************************************!*\ + !*** ./node_modules/@comunica/actor-rdf-metadata-extract-allow-http-methods/lib/ActorRdfMetadataExtractAllowHttpMethods.js ***! + \*****************************************************************************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ActorRdfMetadataExtractAllowHttpMethods = void 0; +const bus_rdf_metadata_extract_1 = __webpack_require__(/*! @comunica/bus-rdf-metadata-extract */ "./node_modules/@comunica/bus-rdf-metadata-extract/index.js"); +/** + * A comunica Allow HTTP Methods RDF Metadata Extract Actor. + */ +class ActorRdfMetadataExtractAllowHttpMethods extends bus_rdf_metadata_extract_1.ActorRdfMetadataExtract { + constructor(args) { + super(args); + } + async test(action) { + return true; + } + async run(action) { + const metadata = {}; + if (action.headers && action.headers.allow) { + metadata.allowHttpMethods = action.headers.allow.split(/, */u); + } + return { metadata }; + } +} +exports.ActorRdfMetadataExtractAllowHttpMethods = ActorRdfMetadataExtractAllowHttpMethods; +//# sourceMappingURL=ActorRdfMetadataExtractAllowHttpMethods.js.map + +/***/ }), + /***/ "./node_modules/@comunica/actor-rdf-metadata-extract-hydra-controls/index.js": /*!***********************************************************************************!*\ !*** ./node_modules/@comunica/actor-rdf-metadata-extract-hydra-controls/index.js ***! @@ -7608,8 +8856,10 @@ class ActorRdfMetadataExtractPatchSparqlUpdate extends bus_rdf_metadata_extract_ } async run(action) { const metadata = {}; - if (action.headers && action.headers['accept-patch'] && - action.headers['accept-patch'].includes('application/sparql-update')) { + // The ms-author-via header is added for backwards-compatibility with old Solid servers + if (action.headers && + ((action.headers['accept-patch'] && action.headers['accept-patch'].includes('application/sparql-update')) || + (action.headers['ms-author-via'] && action.headers['ms-author-via'].includes('SPARQL')))) { metadata.patchSparqlUpdate = true; } return { metadata }; @@ -7620,6 +8870,66 @@ exports.ActorRdfMetadataExtractPatchSparqlUpdate = ActorRdfMetadataExtractPatchS /***/ }), +/***/ "./node_modules/@comunica/actor-rdf-metadata-extract-put-accepted/index.js": +/*!*********************************************************************************!*\ + !*** ./node_modules/@comunica/actor-rdf-metadata-extract-put-accepted/index.js ***! + \*********************************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +__exportStar(__webpack_require__(/*! ./lib/ActorRdfMetadataExtractPutAccepted */ "./node_modules/@comunica/actor-rdf-metadata-extract-put-accepted/lib/ActorRdfMetadataExtractPutAccepted.js"), exports); +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ "./node_modules/@comunica/actor-rdf-metadata-extract-put-accepted/lib/ActorRdfMetadataExtractPutAccepted.js": +/*!******************************************************************************************************************!*\ + !*** ./node_modules/@comunica/actor-rdf-metadata-extract-put-accepted/lib/ActorRdfMetadataExtractPutAccepted.js ***! + \******************************************************************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ActorRdfMetadataExtractPutAccepted = void 0; +const bus_rdf_metadata_extract_1 = __webpack_require__(/*! @comunica/bus-rdf-metadata-extract */ "./node_modules/@comunica/bus-rdf-metadata-extract/index.js"); +/** + * A comunica PUT Accepted RDF Metadata Extract Actor. + */ +class ActorRdfMetadataExtractPutAccepted extends bus_rdf_metadata_extract_1.ActorRdfMetadataExtract { + constructor(args) { + super(args); + } + async test(action) { + return true; + } + async run(action) { + const metadata = {}; + if (action.headers && action.headers['accept-put']) { + metadata.putAccepted = action.headers['accept-put'].split(/, */u); + } + return { metadata }; + } +} +exports.ActorRdfMetadataExtractPutAccepted = ActorRdfMetadataExtractPutAccepted; +//# sourceMappingURL=ActorRdfMetadataExtractPutAccepted.js.map + +/***/ }), + /***/ "./node_modules/@comunica/actor-rdf-metadata-extract-sparql-service/index.js": /*!***********************************************************************************!*\ !*** ./node_modules/@comunica/actor-rdf-metadata-extract-sparql-service/index.js ***! @@ -9188,7 +10498,7 @@ exports.ActorRdfResolveHypermediaSparql = ActorRdfResolveHypermediaSparql; Object.defineProperty(exports, "__esModule", { value: true }); exports.RdfSourceSparql = void 0; -const bus_query_operation_1 = __webpack_require__(/*! @comunica/bus-query-operation */ "./node_modules/@comunica/bus-query-operation/index.js"); +const bus_query_operation_1 = __webpack_require__(/*! @comunica/bus-query-operation */ "./node_modules/@comunica/actor-rdf-resolve-hypermedia-sparql/node_modules/@comunica/bus-query-operation/index.js"); const asynciterator_1 = __webpack_require__(/*! asynciterator */ "./node_modules/asynciterator/dist/asynciterator.js"); const fetch_sparql_endpoint_1 = __webpack_require__(/*! fetch-sparql-endpoint */ "./node_modules/fetch-sparql-endpoint/index.js"); const rdf_data_factory_1 = __webpack_require__(/*! rdf-data-factory */ "./node_modules/rdf-data-factory/index.js"); @@ -9324,6 +10634,571 @@ RdfSourceSparql.FACTORY = new sparqlalgebrajs_1.Factory(); /***/ }), +/***/ "./node_modules/@comunica/actor-rdf-resolve-hypermedia-sparql/node_modules/@comunica/bus-query-operation/index.js": +/*!************************************************************************************************************************!*\ + !*** ./node_modules/@comunica/actor-rdf-resolve-hypermedia-sparql/node_modules/@comunica/bus-query-operation/index.js ***! + \************************************************************************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +__exportStar(__webpack_require__(/*! ./lib/ActorQueryOperation */ "./node_modules/@comunica/actor-rdf-resolve-hypermedia-sparql/node_modules/@comunica/bus-query-operation/lib/ActorQueryOperation.js"), exports); +__exportStar(__webpack_require__(/*! ./lib/ActorQueryOperationTyped */ "./node_modules/@comunica/actor-rdf-resolve-hypermedia-sparql/node_modules/@comunica/bus-query-operation/lib/ActorQueryOperationTyped.js"), exports); +__exportStar(__webpack_require__(/*! ./lib/ActorQueryOperationTypedMediated */ "./node_modules/@comunica/actor-rdf-resolve-hypermedia-sparql/node_modules/@comunica/bus-query-operation/lib/ActorQueryOperationTypedMediated.js"), exports); +__exportStar(__webpack_require__(/*! ./lib/Bindings */ "./node_modules/@comunica/actor-rdf-resolve-hypermedia-sparql/node_modules/@comunica/bus-query-operation/lib/Bindings.js"), exports); +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ "./node_modules/@comunica/actor-rdf-resolve-hypermedia-sparql/node_modules/@comunica/bus-query-operation/lib/ActorQueryOperation.js": +/*!******************************************************************************************************************************************!*\ + !*** ./node_modules/@comunica/actor-rdf-resolve-hypermedia-sparql/node_modules/@comunica/bus-query-operation/lib/ActorQueryOperation.js ***! + \******************************************************************************************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +exports.getMetadata = exports.ActorQueryOperation = exports.KEY_CONTEXT_READONLY = exports.KEY_CONTEXT_QUERY_TIMESTAMP = exports.KEY_CONTEXT_BASEIRI = exports.KEY_CONTEXT_PATTERN_PARENTMETADATA = exports.KEY_CONTEXT_BGP_PATTERNBINDINGS = exports.KEY_CONTEXT_BGP_PARENTMETADATA = exports.KEY_CONTEXT_BGP_CURRENTMETADATA = void 0; +const context_entries_1 = __webpack_require__(/*! @comunica/context-entries */ "./node_modules/@comunica/context-entries/index.js"); +const core_1 = __webpack_require__(/*! @comunica/core */ "./node_modules/@comunica/core/index.js"); +const data_factory_1 = __webpack_require__(/*! @comunica/data-factory */ "./node_modules/@comunica/data-factory/index.js"); +const Bindings_1 = __webpack_require__(/*! ./Bindings */ "./node_modules/@comunica/actor-rdf-resolve-hypermedia-sparql/node_modules/@comunica/bus-query-operation/lib/Bindings.js"); +/** + * @type {string} Context entry for current metadata. + * I.e., the metadata that was used to determine the next BGP operation. + * @value {any} A metadata hash. + * @deprecated Import this constant from @comunica/context-entries. + */ +exports.KEY_CONTEXT_BGP_CURRENTMETADATA = context_entries_1.KeysQueryOperation.bgpCurrentMetadata; +/** + * @type {string} Context entry for an array of parent metadata. + * I.e., an array of the metadata that was present before materializing the current BGP operations. + * This can be passed in 'bgp' actions. + * The array entries should correspond to the pattern entries in the BGP. + * @value {any} An array of metadata hashes. + * @deprecated Import this constant from @comunica/context-entries. + */ +exports.KEY_CONTEXT_BGP_PARENTMETADATA = context_entries_1.KeysQueryOperation.bgpParentMetadata; +/** + * @type {string} Context entry for indicating which patterns were bound from variables. + * I.e., an array of the same length as the value of KeysQueryOperation.patternParentMetadata, + * where each array value corresponds to the pattern bindings for the corresponding pattern. + * @value {any} An array of {@link PatternBindings}. + * @deprecated Import this constant from @comunica/context-entries. + */ +exports.KEY_CONTEXT_BGP_PATTERNBINDINGS = context_entries_1.KeysQueryOperation.bgpPatternBindings; +/** + * @type {string} Context entry for parent metadata. + * I.e., the metadata that was present before materializing the current operation. + * This can be passed in 'pattern' actions. + * @value {any} A metadata hash. + * @deprecated Import this constant from @comunica/context-entries. + */ +exports.KEY_CONTEXT_PATTERN_PARENTMETADATA = context_entries_1.KeysQueryOperation.patternParentMetadata; +/** + * @type {string} Context entry for query's base IRI. + * @value {any} A string. + * @deprecated Import this constant from @comunica/context-entries. + */ +exports.KEY_CONTEXT_BASEIRI = context_entries_1.KeysInitSparql.baseIRI; +/** + * @type {string} A timestamp representing the current time. + * This is required for certain SPARQL operations such as NOW(). + * @value {any} a date. + * @deprecated Import this constant from @comunica/context-entries. + */ +exports.KEY_CONTEXT_QUERY_TIMESTAMP = context_entries_1.KeysInitSparql.queryTimestamp; +/** + * @type {string} Context entry for indicating that only read operations are allowed, defaults to false. + * @value {any} A boolean. + * @deprecated Import this constant from @comunica/context-entries. + */ +exports.KEY_CONTEXT_READONLY = context_entries_1.KeysQueryOperation.readOnly; +/** + * A counter that keeps track blank node generated through BNODE() SPARQL + * expressions. + * + * @type {number} + */ +let bnodeCounter = 0; +/** + * A comunica actor for query-operation events. + * + * Actor types: + * * Input: IActionQueryOperation: A SPARQL Algebra operation. + * * Test: + * * Output: IActorQueryOperationOutput: A bindings stream. + * + * @see IActionQueryOperation + * @see IActorQueryOperationOutput + */ +class ActorQueryOperation extends core_1.Actor { + constructor(args) { + super(args); + } + /** + * Safely cast a query operation output to a bindings output. + * This will throw a runtime error if the output is of the incorrect type. + * @param {IActorQueryOperationOutput} output A query operation output. + * @return {IActorQueryOperationOutputBindings} A bindings query operation output. + */ + static getSafeBindings(output) { + ActorQueryOperation.validateQueryOutput(output, 'bindings'); + return output; + } + /** + * Safely cast a query operation output to a quads output. + * This will throw a runtime error if the output is of the incorrect type. + * @param {IActorQueryOperationOutput} output A query operation output. + * @return {IActorQueryOperationOutputQuads} A quads query operation output. + */ + static getSafeQuads(output) { + ActorQueryOperation.validateQueryOutput(output, 'quads'); + return output; + } + /** + * Safely cast a query operation output to a boolean output. + * This will throw a runtime error if the output is of the incorrect type. + * @param {IActorQueryOperationOutput} output A query operation output. + * @return {IActorQueryOperationOutputBoolean} A boolean query operation output. + */ + static getSafeBoolean(output) { + ActorQueryOperation.validateQueryOutput(output, 'boolean'); + return output; + } + /** + * Safely cast a query operation output to an update output. + * This will throw a runtime error if the output is of the incorrect type. + * @param {IActorQueryOperationOutput} output A query operation output. + * @return {IActorQueryOperationOutputUpdate} An update query operation output. + */ + static getSafeUpdate(output) { + ActorQueryOperation.validateQueryOutput(output, 'update'); + return output; + } + /** + * Convert a metadata callback to a lazy callback where the response value is cached. + * @param {() => Promise<{[p: string]: any}>} metadata A metadata callback + * @return {() => Promise<{[p: string]: any}>} The callback where the response will be cached. + */ + static cachifyMetadata(metadata) { + let lastReturn; + // eslint-disable-next-line no-return-assign,@typescript-eslint/no-misused-promises + return (metadata && (() => (lastReturn || (lastReturn = metadata())))); + } + /** + * Throw an error if the output type does not match the expected type. + * @param {IActorQueryOperationOutput} output A query operation output. + * @param {string} expectedType The expected output type. + */ + static validateQueryOutput(output, expectedType) { + if (output.type !== expectedType) { + throw new Error(`Invalid query output type: Expected '${expectedType}' but got '${output.type}'`); + } + } + static getBaseExpressionContext(context) { + if (context) { + const now = context.get(context_entries_1.KeysInitSparql.queryTimestamp); + const baseIRI = context.get(context_entries_1.KeysInitSparql.baseIRI); + // Handle two variants of providing extension functions + if (context.has(context_entries_1.KeysInitSparql.extensionFunctionCreator) && context.has(context_entries_1.KeysInitSparql.extensionFunctions)) { + throw new Error('Illegal simultaneous usage of extensionFunctionCreator and extensionFunctions in context'); + } + let extensionFunctionCreator = context.get(context_entries_1.KeysInitSparql.extensionFunctionCreator); + // Convert dictionary-based variant to callback + const extensionFunctions = context + .get(context_entries_1.KeysInitSparql.extensionFunctions); + if (extensionFunctions) { + extensionFunctionCreator = functionNamedNode => extensionFunctions[functionNamedNode.value]; + } + return { now, baseIRI, extensionFunctionCreator }; + } + return {}; + } + /** + * Create an options object that can be used to construct a sparqlee synchronous evaluator. + * @param context An action context. + * @param mediatorQueryOperation An optional query query operation mediator. + * If defined, the existence resolver will be defined as `exists`. + */ + static getExpressionContext(context, mediatorQueryOperation) { + return Object.assign(Object.assign({}, this.getBaseExpressionContext(context)), { bnode: (input) => new data_factory_1.BlankNodeBindingsScoped(input || `BNODE_${bnodeCounter++}`) }); + } + /** + * Create an options object that can be used to construct a sparqlee asynchronous evaluator. + * @param context An action context. + * @param mediatorQueryOperation An optional query query operation mediator. + * If defined, the existence resolver will be defined as `exists`. + */ + static getAsyncExpressionContext(context, mediatorQueryOperation) { + const expressionContext = Object.assign(Object.assign({}, this.getBaseExpressionContext(context)), { bnode: (input) => Promise.resolve(new data_factory_1.BlankNodeBindingsScoped(input || `BNODE_${bnodeCounter++}`)) }); + if (context && mediatorQueryOperation) { + expressionContext.exists = ActorQueryOperation.createExistenceResolver(context, mediatorQueryOperation); + } + return expressionContext; + } + /** + * Create an existence resolver for usage within an expression context. + * @param context An action context. + * @param mediatorQueryOperation A query operation mediator. + */ + static createExistenceResolver(context, mediatorQueryOperation) { + return async (expr, bindings) => { + const operation = Bindings_1.materializeOperation(expr.input, bindings); + const outputRaw = await mediatorQueryOperation.mediate({ operation, context }); + const output = ActorQueryOperation.getSafeBindings(outputRaw); + return new Promise((resolve, reject) => { + output.bindingsStream.on('end', () => { + resolve(false); + }); + output.bindingsStream.on('error', reject); + output.bindingsStream.on('data', () => { + output.bindingsStream.close(); + resolve(true); + }); + }) + .then((exists) => expr.not ? !exists : exists); + }; + } + /** + * Throw an error if the context contains the readOnly flag. + * @param context An action context. + */ + static throwOnReadOnly(context) { + if (context && context.get(exports.KEY_CONTEXT_READONLY)) { + throw new Error(`Attempted a write operation in read-only mode`); + } + } +} +exports.ActorQueryOperation = ActorQueryOperation; +/** + * Helper function to get the metadata of an action output. + * @param actionOutput An action output, with an optional metadata function. + * @return The metadata. + */ +function getMetadata(actionOutput) { + if (!actionOutput.metadata) { + return Promise.resolve({}); + } + return actionOutput.metadata(); +} +exports.getMetadata = getMetadata; +//# sourceMappingURL=ActorQueryOperation.js.map + +/***/ }), + +/***/ "./node_modules/@comunica/actor-rdf-resolve-hypermedia-sparql/node_modules/@comunica/bus-query-operation/lib/ActorQueryOperationTyped.js": +/*!***********************************************************************************************************************************************!*\ + !*** ./node_modules/@comunica/actor-rdf-resolve-hypermedia-sparql/node_modules/@comunica/bus-query-operation/lib/ActorQueryOperationTyped.js ***! + \***********************************************************************************************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ActorQueryOperationTyped = exports.KEY_CONTEXT_QUERYOPERATION = void 0; +const context_entries_1 = __webpack_require__(/*! @comunica/context-entries */ "./node_modules/@comunica/context-entries/index.js"); +const ActorQueryOperation_1 = __webpack_require__(/*! ./ActorQueryOperation */ "./node_modules/@comunica/actor-rdf-resolve-hypermedia-sparql/node_modules/@comunica/bus-query-operation/lib/ActorQueryOperation.js"); +/** + * @type {string} Context entry for the current query operation. + * @deprecated Import this constant from @comunica/context-entries. + */ +exports.KEY_CONTEXT_QUERYOPERATION = context_entries_1.KeysQueryOperation.operation; +/** + * A base implementation for query operation actors for a specific operation type. + */ +class ActorQueryOperationTyped extends ActorQueryOperation_1.ActorQueryOperation { + constructor(args, operationName) { + super(Object.assign(Object.assign({}, args), { operationName })); + if (!this.operationName) { + throw new Error('A valid "operationName" argument must be provided.'); + } + } + async test(action) { + if (!action.operation) { + throw new Error('Missing field \'operation\' in a query operation action.'); + } + if (action.operation.type !== this.operationName) { + throw new Error(`Actor ${this.name} only supports ${this.operationName} operations, but got ${action.operation.type}`); + } + const operation = action.operation; + return this.testOperation(operation, action.context); + } + async run(action) { + const operation = action.operation; + const subContext = action.context && action.context.set(context_entries_1.KeysQueryOperation.operation, operation); + const output = await this.runOperation(operation, subContext); + if (output.metadata) { + output.metadata = + ActorQueryOperation_1.ActorQueryOperation.cachifyMetadata(output.metadata); + } + return output; + } +} +exports.ActorQueryOperationTyped = ActorQueryOperationTyped; +//# sourceMappingURL=ActorQueryOperationTyped.js.map + +/***/ }), + +/***/ "./node_modules/@comunica/actor-rdf-resolve-hypermedia-sparql/node_modules/@comunica/bus-query-operation/lib/ActorQueryOperationTypedMediated.js": +/*!*******************************************************************************************************************************************************!*\ + !*** ./node_modules/@comunica/actor-rdf-resolve-hypermedia-sparql/node_modules/@comunica/bus-query-operation/lib/ActorQueryOperationTypedMediated.js ***! + \*******************************************************************************************************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ActorQueryOperationTypedMediated = void 0; +const ActorQueryOperationTyped_1 = __webpack_require__(/*! ./ActorQueryOperationTyped */ "./node_modules/@comunica/actor-rdf-resolve-hypermedia-sparql/node_modules/@comunica/bus-query-operation/lib/ActorQueryOperationTyped.js"); +/** + * A base implementation for query operation actors for a specific operation type that have a query operation mediator. + */ +class ActorQueryOperationTypedMediated extends ActorQueryOperationTyped_1.ActorQueryOperationTyped { + constructor(args, operationName) { + super(args, operationName); + } +} +exports.ActorQueryOperationTypedMediated = ActorQueryOperationTypedMediated; +//# sourceMappingURL=ActorQueryOperationTypedMediated.js.map + +/***/ }), + +/***/ "./node_modules/@comunica/actor-rdf-resolve-hypermedia-sparql/node_modules/@comunica/bus-query-operation/lib/Bindings.js": +/*!*******************************************************************************************************************************!*\ + !*** ./node_modules/@comunica/actor-rdf-resolve-hypermedia-sparql/node_modules/@comunica/bus-query-operation/lib/Bindings.js ***! + \*******************************************************************************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +exports.materializeOperation = exports.materializeTerm = exports.ensureBindings = exports.isBindings = exports.Bindings = void 0; +const immutable_1 = __webpack_require__(/*! immutable */ "./node_modules/immutable/dist/immutable.js"); +const rdf_string_1 = __webpack_require__(/*! rdf-string */ "./node_modules/rdf-string/index.js"); +const sparqlalgebrajs_1 = __webpack_require__(/*! sparqlalgebrajs */ "./node_modules/sparqlalgebrajs/index.js"); +/** + * A convenience constructor for bindings based on a given hash. + * @param {{[p: string]: RDF.Term}} hash A hash that maps variable names to terms. + * @return {Bindings} The immutable bindings from the hash. + * @constructor + */ +// eslint-disable-next-line no-redeclare +function Bindings(hash) { + return immutable_1.Map(hash); +} +exports.Bindings = Bindings; +/** + * Check if the given object is a bindings object. + * @param maybeBindings Any object. + * @return {boolean} If the object is a bindings object. + */ +function isBindings(maybeBindings) { + return immutable_1.Map.isMap(maybeBindings); +} +exports.isBindings = isBindings; +/** + * Convert the given object to a bindings object if it is not a bindings object yet. + * If it already is a bindings object, return the object as-is. + * @param maybeBindings Any object. + * @return {Bindings} A bindings object. + */ +function ensureBindings(maybeBindings) { + return isBindings(maybeBindings) ? maybeBindings : Bindings(maybeBindings); +} +exports.ensureBindings = ensureBindings; +/** + * Materialize a term with the given binding. + * + * If the given term is a variable, + * and that variable exist in the given bindings object, + * the value of that binding is returned. + * In all other cases, the term itself is returned. + * + * @param {RDF.Term} term A term. + * @param {Bindings} bindings A bindings object. + * @return {RDF.Term} The materialized term. + */ +function materializeTerm(term, bindings) { + if (term.termType === 'Variable') { + const value = bindings.get(rdf_string_1.termToString(term)); + if (value) { + return value; + } + } + return term; +} +exports.materializeTerm = materializeTerm; +/** + * Materialize the given operation (recursively) with the given bindings. + * Essentially, all variables in the given operation will be replaced + * by the terms bound to the variables in the given bindings. + * @param {Operation} operation SPARQL algebra operation. + * @param {Bindings} bindings A bindings object. + * @param {boolean} strictTargetVariables If target variable bindings (such as on SELECT or BIND) should not be allowed. + * @return Algebra.Operation A new operation materialized with the given bindings. + */ +function materializeOperation(operation, bindings, strictTargetVariables = false) { + return sparqlalgebrajs_1.Util.mapOperation(operation, { + path(op, factory) { + // Materialize variables in a path expression. + // The predicate expression will be recursed. + return { + recurse: false, + result: factory.createPath(materializeTerm(op.subject, bindings), op.predicate, materializeTerm(op.object, bindings), materializeTerm(op.graph, bindings)), + }; + }, + pattern(op, factory) { + // Materialize variables in the quad pattern. + return { + recurse: false, + result: factory.createPattern(materializeTerm(op.subject, bindings), materializeTerm(op.predicate, bindings), materializeTerm(op.object, bindings), materializeTerm(op.graph, bindings)), + }; + }, + extend(op) { + // Materialize an extend operation. + // If strictTargetVariables is true, we throw if the extension target variable is attempted to be bound. + // Otherwise, we remove the extend operation. + if (bindings.has(rdf_string_1.termToString(op.variable))) { + if (strictTargetVariables) { + throw new Error(`Tried to bind variable ${rdf_string_1.termToString(op.variable)} in a BIND operator.`); + } + else { + return { + recurse: true, + result: materializeOperation(op.input, bindings, strictTargetVariables), + }; + } + } + return { + recurse: true, + result: op, + }; + }, + group(op, factory) { + // Materialize a group operation. + // If strictTargetVariables is true, we throw if the group target variable is attempted to be bound. + // Otherwise, we just filter out the bound variables. + if (strictTargetVariables) { + for (const variable of op.variables) { + if (bindings.has(rdf_string_1.termToString(variable))) { + throw new Error(`Tried to bind variable ${rdf_string_1.termToString(variable)} in a GROUP BY operator.`); + } + } + return { + recurse: true, + result: op, + }; + } + const variables = op.variables.filter(variable => !bindings.has(rdf_string_1.termToString(variable))); + return { + recurse: true, + result: factory.createGroup(op.input, variables, op.aggregates), + }; + }, + project(op, factory) { + // Materialize a project operation. + // If strictTargetVariables is true, we throw if the project target variable is attempted to be bound. + // Otherwise, we just filter out the bound variables. + if (strictTargetVariables) { + for (const variable of op.variables) { + if (variable.termType !== 'Wildcard' && bindings.has(rdf_string_1.termToString(variable))) { + throw new Error(`Tried to bind variable ${rdf_string_1.termToString(variable)} in a SELECT operator.`); + } + } + return { + recurse: true, + result: op, + }; + } + const variables = op.variables.filter(variable => variable.termType !== 'Wildcard' && + !bindings.has(rdf_string_1.termToString(variable))); + return { + recurse: true, + result: factory.createProject(op.input, variables), + }; + }, + values(op, factory) { + // Materialize a values operation. + // If strictTargetVariables is true, we throw if the values target variable is attempted to be bound. + // Otherwise, we just filter out the bound variables and their bindings. + if (strictTargetVariables) { + for (const variable of op.variables) { + if (bindings.has(rdf_string_1.termToString(variable))) { + throw new Error(`Tried to bind variable ${rdf_string_1.termToString(variable)} in a VALUES operator.`); + } + } + } + else { + const variables = op.variables.filter(variable => !bindings.has(rdf_string_1.termToString(variable))); + const valueBindings = op.bindings.map(binding => { + const newBinding = Object.assign({}, binding); + bindings.forEach((value, key) => delete newBinding[key]); + return newBinding; + }); + return { + recurse: true, + result: factory.createValues(variables, valueBindings), + }; + } + return { + recurse: false, + result: op, + }; + }, + expression(op, factory) { + if (op.expressionType === 'term') { + // Materialize a term expression + return { + recurse: false, + result: factory.createTermExpression(materializeTerm(op.term, bindings)), + }; + } + if (op.expressionType === 'aggregate' && + 'variable' in op && + bindings.has(rdf_string_1.termToString(op.variable))) { + // Materialize a bound aggregate operation. + // If strictTargetVariables is true, we throw if the expression target variable is attempted to be bound. + // Otherwise, we ignore this operation. + if (strictTargetVariables) { + throw new Error(`Tried to bind ${rdf_string_1.termToString(op.variable)} in a ${op.aggregator} aggregate.`); + } + else { + return { + recurse: true, + result: op, + }; + } + } + return { + recurse: true, + result: op, + }; + }, + }); +} +exports.materializeOperation = materializeOperation; +//# sourceMappingURL=Bindings.js.map + +/***/ }), + /***/ "./node_modules/@comunica/actor-rdf-resolve-quad-pattern-federated/index.js": /*!**********************************************************************************!*\ !*** ./node_modules/@comunica/actor-rdf-resolve-quad-pattern-federated/index.js ***! @@ -10325,6 +12200,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) { }; Object.defineProperty(exports, "__esModule", { value: true }); __exportStar(__webpack_require__(/*! ./lib/ActorRdfUpdateHypermediaPatchSparqlUpdate */ "./node_modules/@comunica/actor-rdf-update-hypermedia-patch-sparql-update/lib/ActorRdfUpdateHypermediaPatchSparqlUpdate.js"), exports); +__exportStar(__webpack_require__(/*! ./lib/QuadDestinationPatchSparqlUpdate */ "./node_modules/@comunica/actor-rdf-update-hypermedia-patch-sparql-update/lib/QuadDestinationPatchSparqlUpdate.js"), exports); //# sourceMappingURL=index.js.map /***/ }), @@ -10353,12 +12229,15 @@ class ActorRdfUpdateHypermediaPatchSparqlUpdate extends bus_rdf_update_hypermedi if (!action.forceDestinationType && !action.metadata.patchSparqlUpdate) { throw new Error(`Actor ${this.name} could not detect a destination with 'application/sparql-update' as 'Accept-Patch' header.`); } + if (!action.forceDestinationType && !action.exists) { + throw new Error(`Actor ${this.name} can only patch a destination that already exists.`); + } return true; } async run(action) { this.logInfo(action.context, `Identified as patchSparqlUpdate destination: ${action.url}`); return { - destination: new QuadDestinationPatchSparqlUpdate_1.QuadDestinationPatchSparqlUpdate(action.url, action.context, this.mediatorHttp, this.mediatorRdfSerialize), + destination: new QuadDestinationPatchSparqlUpdate_1.QuadDestinationPatchSparqlUpdate(action.url, action.context, this.mediatorHttp), }; } } @@ -10380,16 +12259,17 @@ Object.defineProperty(exports, "__esModule", { value: true }); exports.QuadDestinationPatchSparqlUpdate = void 0; const stream_1 = __webpack_require__(/*! stream */ "./node_modules/stream-browserify/index.js"); const bus_http_1 = __webpack_require__(/*! @comunica/bus-http */ "./node_modules/@comunica/bus-http/index.js"); +const bus_rdf_update_quads_1 = __webpack_require__(/*! @comunica/bus-rdf-update-quads */ "./node_modules/@comunica/bus-rdf-update-quads/index.js"); const cross_fetch_1 = __webpack_require__(/*! cross-fetch */ "./node_modules/cross-fetch/dist/browser-ponyfill.js"); +const rdf_string_ttl_1 = __webpack_require__(/*! rdf-string-ttl */ "./node_modules/rdf-string-ttl/index.js"); /** - * A quad destination that represents an LDP resource. + * A quad destination that represents a resource that is patchable via SPARQL Update. */ class QuadDestinationPatchSparqlUpdate { - constructor(url, context, mediatorHttp, mediatorRdfSerialize) { + constructor(url, context, mediatorHttp) { this.url = url; this.context = context; this.mediatorHttp = mediatorHttp; - this.mediatorRdfSerialize = mediatorRdfSerialize; } insert(quads) { return this.wrapSparqlUpdateRequest('INSERT', quads); @@ -10398,20 +12278,24 @@ class QuadDestinationPatchSparqlUpdate { return this.wrapSparqlUpdateRequest('DELETE', quads); } async wrapSparqlUpdateRequest(type, quads) { - var _a; - // Serialize quads - const { handle: { data } } = await this.mediatorRdfSerialize.mediate({ - handle: { quadStream: quads }, - handleMediaType: 'text/turtle', - }); - // Wrap triples in INSERT DATA block - const dataWrapped = new stream_1.PassThrough(); - dataWrapped.push(`${type} DATA {`); - data.pipe(dataWrapped, { end: false }); - data.on('end', () => { - dataWrapped.push('}'); - dataWrapped.push(null); - }); + // Wrap triples in DATA block + const dataWrapped = quads + .map((quad) => { + let stringQuad = `${rdf_string_ttl_1.termToString(quad.subject)} ${rdf_string_ttl_1.termToString(quad.predicate)} ${rdf_string_ttl_1.termToString(quad.object)} .`; + if (quad.graph.termType !== 'DefaultGraph') { + stringQuad = ` GRAPH ${rdf_string_ttl_1.termToString(quad.graph)} { ${stringQuad} }\n`; + } + else { + stringQuad = ` ${stringQuad}\n`; + } + return stringQuad; + }) + .prepend([`${type} DATA {\n`]) + .append(['}']); + const readable = new stream_1.Readable(); + readable._read = () => true; + dataWrapped.on('data', (quad) => readable.push(quad)); + dataWrapped.on('end', () => readable.push(null)); // Send data in PUT request const headers = new cross_fetch_1.Headers({ 'content-type': 'application/sparql-update' }); const httpResponse = await this.mediatorHttp.mediate({ @@ -10419,16 +12303,11 @@ class QuadDestinationPatchSparqlUpdate { init: { headers, method: 'PATCH', - body: bus_http_1.ActorHttp.toWebReadableStream(dataWrapped), + body: bus_http_1.ActorHttp.toWebReadableStream(readable), }, input: this.url, }); - // Check if update was successful - if (httpResponse.status >= 400) { - throw new Error(`Could not retrieve ${this.url} (${httpResponse.status}: ${httpResponse.statusText || 'unknown error'})`); - } - // Close response body, as we don't need it - await ((_a = httpResponse.body) === null || _a === void 0 ? void 0 : _a.cancel()); + await bus_rdf_update_quads_1.validateHttpResponse(this.url, httpResponse); } async deleteGraphs(graphs, requireExistence, dropGraphs) { throw new Error(`Patch-based SPARQL Update destinations don't support named graphs`); @@ -10442,6 +12321,298 @@ exports.QuadDestinationPatchSparqlUpdate = QuadDestinationPatchSparqlUpdate; /***/ }), +/***/ "./node_modules/@comunica/actor-rdf-update-hypermedia-put-ldp/index.js": +/*!*****************************************************************************!*\ + !*** ./node_modules/@comunica/actor-rdf-update-hypermedia-put-ldp/index.js ***! + \*****************************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +__exportStar(__webpack_require__(/*! ./lib/ActorRdfUpdateHypermediaPutLdp */ "./node_modules/@comunica/actor-rdf-update-hypermedia-put-ldp/lib/ActorRdfUpdateHypermediaPutLdp.js"), exports); +__exportStar(__webpack_require__(/*! ./lib/QuadDestinationPutLdp */ "./node_modules/@comunica/actor-rdf-update-hypermedia-put-ldp/lib/QuadDestinationPutLdp.js"), exports); +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ "./node_modules/@comunica/actor-rdf-update-hypermedia-put-ldp/lib/ActorRdfUpdateHypermediaPutLdp.js": +/*!**********************************************************************************************************!*\ + !*** ./node_modules/@comunica/actor-rdf-update-hypermedia-put-ldp/lib/ActorRdfUpdateHypermediaPutLdp.js ***! + \**********************************************************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ActorRdfUpdateHypermediaPutLdp = void 0; +const bus_rdf_update_hypermedia_1 = __webpack_require__(/*! @comunica/bus-rdf-update-hypermedia */ "./node_modules/@comunica/bus-rdf-update-hypermedia/index.js"); +const QuadDestinationPutLdp_1 = __webpack_require__(/*! ./QuadDestinationPutLdp */ "./node_modules/@comunica/actor-rdf-update-hypermedia-put-ldp/lib/QuadDestinationPutLdp.js"); +/** + * A comunica Post LDP RDF Update Hypermedia Actor. + */ +class ActorRdfUpdateHypermediaPutLdp extends bus_rdf_update_hypermedia_1.ActorRdfUpdateHypermedia { + constructor(args) { + super(args, 'putLdp'); + } + async testMetadata(action) { + if (!action.forceDestinationType) { + if (!action.metadata.allowHttpMethods || !action.metadata.allowHttpMethods.includes('PUT')) { + throw new Error(`Actor ${this.name} could not detect a destination with 'Allow: PUT' header.`); + } + if (action.exists) { + throw new Error(`Actor ${this.name} can only put on a destination that does not already exists.`); + } + } + return true; + } + async run(action) { + this.logInfo(action.context, `Identified as putLdp destination: ${action.url}`); + return { + destination: new QuadDestinationPutLdp_1.QuadDestinationPutLdp(action.url, action.context, action.metadata.putAccepted || [], this.mediatorHttp, this.mediatorRdfSerializeMediatypes, this.mediatorRdfSerialize), + }; + } +} +exports.ActorRdfUpdateHypermediaPutLdp = ActorRdfUpdateHypermediaPutLdp; +//# sourceMappingURL=ActorRdfUpdateHypermediaPutLdp.js.map + +/***/ }), + +/***/ "./node_modules/@comunica/actor-rdf-update-hypermedia-put-ldp/lib/QuadDestinationPutLdp.js": +/*!*************************************************************************************************!*\ + !*** ./node_modules/@comunica/actor-rdf-update-hypermedia-put-ldp/lib/QuadDestinationPutLdp.js ***! + \*************************************************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +exports.QuadDestinationPutLdp = void 0; +const bus_http_1 = __webpack_require__(/*! @comunica/bus-http */ "./node_modules/@comunica/bus-http/index.js"); +const bus_rdf_update_quads_1 = __webpack_require__(/*! @comunica/bus-rdf-update-quads */ "./node_modules/@comunica/bus-rdf-update-quads/index.js"); +const cross_fetch_1 = __webpack_require__(/*! cross-fetch */ "./node_modules/cross-fetch/dist/browser-ponyfill.js"); +/** + * A quad destination that represents a resource that can be PUT. + */ +class QuadDestinationPutLdp { + constructor(url, context, mediaTypes, mediatorHttp, mediatorRdfSerializeMediatypes, mediatorRdfSerialize) { + this.url = url; + this.context = context; + this.mediaTypes = mediaTypes; + this.mediatorHttp = mediatorHttp; + this.mediatorRdfSerializeMediatypes = mediatorRdfSerializeMediatypes; + this.mediatorRdfSerialize = mediatorRdfSerialize; + } + insert(quads) { + return this.wrapRdfUpdateRequest('INSERT', quads); + } + async delete(quads) { + throw new Error(`Put-based LDP destinations don't support deletions`); + } + async wrapRdfUpdateRequest(type, quads) { + // Determine media type for serialization + const { mediaTypes } = await this.mediatorRdfSerializeMediatypes.mediate({ context: this.context, mediaTypes: true }); + const availableMediaTypes = this.mediaTypes + .filter(mediaType => mediaType in mediaTypes); + // Fallback to our own preferred media type + const mediaType = availableMediaTypes.length > 0 ? + availableMediaTypes[0] : + Object.keys(mediaTypes).sort((typeA, typeB) => mediaTypes[typeB] - mediaTypes[typeA])[0]; + // Serialize quads + const { handle: { data } } = await this.mediatorRdfSerialize.mediate({ + handle: { quadStream: quads }, + handleMediaType: mediaType, + }); + // Send data in (LDP) PUT request + const headers = new cross_fetch_1.Headers({ 'content-type': mediaType }); + const httpResponse = await this.mediatorHttp.mediate({ + context: this.context, + init: { + headers, + method: 'PUT', + body: bus_http_1.ActorHttp.toWebReadableStream(data), + }, + input: this.url, + }); + await bus_rdf_update_quads_1.validateHttpResponse(this.url, httpResponse); + } + async deleteGraphs(graphs, requireExistence, dropGraphs) { + throw new Error(`Put-based LDP destinations don't support named graphs`); + } + async createGraphs(graphs, requireNonExistence) { + throw new Error(`Put-based LDP destinations don't support named graphs`); + } +} +exports.QuadDestinationPutLdp = QuadDestinationPutLdp; +//# sourceMappingURL=QuadDestinationPutLdp.js.map + +/***/ }), + +/***/ "./node_modules/@comunica/actor-rdf-update-hypermedia-sparql/index.js": +/*!****************************************************************************!*\ + !*** ./node_modules/@comunica/actor-rdf-update-hypermedia-sparql/index.js ***! + \****************************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +__exportStar(__webpack_require__(/*! ./lib/ActorRdfUpdateHypermediaSparql */ "./node_modules/@comunica/actor-rdf-update-hypermedia-sparql/lib/ActorRdfUpdateHypermediaSparql.js"), exports); +__exportStar(__webpack_require__(/*! ./lib/QuadDestinationSparql */ "./node_modules/@comunica/actor-rdf-update-hypermedia-sparql/lib/QuadDestinationSparql.js"), exports); +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ "./node_modules/@comunica/actor-rdf-update-hypermedia-sparql/lib/ActorRdfUpdateHypermediaSparql.js": +/*!*********************************************************************************************************!*\ + !*** ./node_modules/@comunica/actor-rdf-update-hypermedia-sparql/lib/ActorRdfUpdateHypermediaSparql.js ***! + \*********************************************************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ActorRdfUpdateHypermediaSparql = void 0; +const bus_rdf_update_hypermedia_1 = __webpack_require__(/*! @comunica/bus-rdf-update-hypermedia */ "./node_modules/@comunica/bus-rdf-update-hypermedia/index.js"); +const QuadDestinationSparql_1 = __webpack_require__(/*! ./QuadDestinationSparql */ "./node_modules/@comunica/actor-rdf-update-hypermedia-sparql/lib/QuadDestinationSparql.js"); +/** + * A comunica SPARQL RDF Update Hypermedia Actor. + */ +class ActorRdfUpdateHypermediaSparql extends bus_rdf_update_hypermedia_1.ActorRdfUpdateHypermedia { + constructor(args) { + super(args, 'sparql'); + } + async testMetadata(action) { + if (!action.forceDestinationType && !action.metadata.sparqlService && + !(this.checkUrlSuffixSparql && action.url.endsWith('/sparql')) && + !(this.checkUrlSuffixUpdate && action.url.endsWith('/update'))) { + throw new Error(`Actor ${this.name} could not detect a SPARQL service description or URL ending on /sparql or /update.`); + } + return true; + } + async run(action) { + this.logInfo(action.context, `Identified as sparql destination: ${action.url}`); + return { + destination: new QuadDestinationSparql_1.QuadDestinationSparql(action.metadata.sparqlService || action.url, action.context, this.mediatorHttp), + }; + } +} +exports.ActorRdfUpdateHypermediaSparql = ActorRdfUpdateHypermediaSparql; +//# sourceMappingURL=ActorRdfUpdateHypermediaSparql.js.map + +/***/ }), + +/***/ "./node_modules/@comunica/actor-rdf-update-hypermedia-sparql/lib/QuadDestinationSparql.js": +/*!************************************************************************************************!*\ + !*** ./node_modules/@comunica/actor-rdf-update-hypermedia-sparql/lib/QuadDestinationSparql.js ***! + \************************************************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +exports.QuadDestinationSparql = void 0; +const fetch_sparql_endpoint_1 = __webpack_require__(/*! fetch-sparql-endpoint */ "./node_modules/fetch-sparql-endpoint/index.js"); +const rdf_string_ttl_1 = __webpack_require__(/*! rdf-string-ttl */ "./node_modules/rdf-string-ttl/index.js"); +const stringifyStream = __webpack_require__(/*! stream-to-string */ "./node_modules/stream-to-string/index.js"); +/** + * A quad destination that represents an LDP resource. + */ +class QuadDestinationSparql { + constructor(url, context, mediatorHttp) { + this.url = url; + this.context = context; + this.mediatorHttp = mediatorHttp; + this.endpointFetcher = new fetch_sparql_endpoint_1.SparqlEndpointFetcher({ + fetch: (input, init) => this.mediatorHttp.mediate({ input, init, context: this.context }), + prefixVariableQuestionMark: true, + }); + } + insert(quads) { + return this.wrapSparqlUpdateRequest('INSERT', quads); + } + async delete(quads) { + return this.wrapSparqlUpdateRequest('DELETE', quads); + } + async wrapSparqlUpdateRequest(type, quads) { + // Wrap triples in DATA block + const dataWrapped = quads + .map((quad) => { + let stringQuad = `${rdf_string_ttl_1.termToString(quad.subject)} ${rdf_string_ttl_1.termToString(quad.predicate)} ${rdf_string_ttl_1.termToString(quad.object)} .`; + if (quad.graph.termType !== 'DefaultGraph') { + stringQuad = ` GRAPH ${rdf_string_ttl_1.termToString(quad.graph)} { ${stringQuad} }\n`; + } + else { + stringQuad = ` ${stringQuad}\n`; + } + return stringQuad; + }) + .prepend([`${type} DATA {\n`]) + .append(['}']); + // Serialize query stream to string + const query = await stringifyStream(dataWrapped); + // Send update query to endpoint + await this.endpointFetcher.fetchUpdate(this.url, query); + } + async deleteGraphs(graphsIn, requireExistence, dropGraphs) { + const graphs = Array.isArray(graphsIn) ? + graphsIn : + [graphsIn]; + const queries = []; + for (const graph of graphs) { + let graphValue; + if (typeof graph === 'string') { + graphValue = graph; + } + else if (graph.termType === 'DefaultGraph') { + graphValue = 'DEFAULT'; + } + else { + graphValue = `GRAPH <${graph.value}>`; + } + queries.push(`${dropGraphs ? 'DROP' : 'CLEAR'} ${requireExistence ? '' : 'SILENT '}${graphValue}`); + } + await this.endpointFetcher.fetchUpdate(this.url, queries.join('; ')); + } + async createGraphs(graphs, requireNonExistence) { + const queries = []; + for (const graph of graphs) { + queries.push(`CREATE${requireNonExistence ? '' : ' SILENT'} GRAPH <${graph.value}>`); + } + await this.endpointFetcher.fetchUpdate(this.url, queries.join('; ')); + } +} +exports.QuadDestinationSparql = QuadDestinationSparql; +//# sourceMappingURL=QuadDestinationSparql.js.map + +/***/ }), + /***/ "./node_modules/@comunica/actor-rdf-update-quads-hypermedia/index.js": /*!***************************************************************************!*\ !*** ./node_modules/@comunica/actor-rdf-update-quads-hypermedia/index.js ***! @@ -10513,7 +12684,8 @@ class ActorRdfUpdateQuadsHypermedia extends bus_rdf_update_quads_1.ActorRdfUpdat try { // Dereference destination URL const rdfDereferenceOutput = await this.mediatorRdfDereference - .mediate({ context, url }); + .mediate({ context, url, acceptErrors: true }); + exists = rdfDereferenceOutput.exists; url = rdfDereferenceOutput.url; // Determine the metadata const rdfMetadataOuput = await this.mediatorMetadata.mediate({ context, url, quads: rdfDereferenceOutput.quads, triples: rdfDereferenceOutput.triples }); @@ -10523,7 +12695,6 @@ class ActorRdfUpdateQuadsHypermedia extends bus_rdf_update_quads_1.ActorRdfUpdat metadata: rdfMetadataOuput.metadata, headers: rdfDereferenceOutput.headers, })).metadata; - exists = true; } catch (_a) { metadata = {}; @@ -10753,9 +12924,6 @@ class ActorSparqlParseAlgebra extends bus_sparql_parse_1.ActorSparqlParse { } async run(action) { const parser = new sparqljs_1.Parser({ prefixes: this.prefixes, baseIRI: action.baseIRI }); - // Resets the identifier counter used for blank nodes - // provides nicer and more consistent output if there are multiple calls - parser._resetBlanks(); const parsedSyntax = parser.parse(action.query); const baseIRI = parsedSyntax.type === 'query' ? parsedSyntax.base : undefined; return { @@ -12121,8 +14289,8 @@ Object.defineProperty(exports, "__esModule", { value: true }); exports.KEY_CONTEXT_AUTH = exports.KEY_CONTEXT_INCLUDE_CREDENTIALS = exports.ActorHttp = void 0; const context_entries_1 = __webpack_require__(/*! @comunica/context-entries */ "./node_modules/@comunica/context-entries/index.js"); const core_1 = __webpack_require__(/*! @comunica/core */ "./node_modules/@comunica/core/index.js"); +const readable_web_to_node_stream_1 = __webpack_require__(/*! readable-web-to-node-stream */ "./node_modules/readable-web-to-node-stream/lib/index.js"); const isStream = __webpack_require__(/*! is-stream */ "./node_modules/is-stream/index.js"); -const toNodeReadable = __webpack_require__(/*! web-streams-node */ "./node_modules/web-streams-node/index.js").toNodeReadable; const toWebReadableStream = __webpack_require__(/*! web-streams-node */ "./node_modules/web-streams-node/index.js").toWebReadableStream; /** * A base actor for listening to HTTP events. @@ -12147,7 +14315,9 @@ class ActorHttp extends core_1.Actor { * @returns {NodeJS.ReadableStream} */ static toNodeReadable(body) { - return isStream(body) ? body : toNodeReadable(body); + return isStream(body) || body === null ? + body : + new readable_web_to_node_stream_1.ReadableWebToNodeStream(body); } /** * Converts Node streams to WhatWG streams. @@ -12650,7 +14820,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); exports.materializeOperation = exports.materializeTerm = exports.ensureBindings = exports.isBindings = exports.Bindings = void 0; const immutable_1 = __webpack_require__(/*! immutable */ "./node_modules/immutable/dist/immutable.js"); const rdf_string_1 = __webpack_require__(/*! rdf-string */ "./node_modules/rdf-string/index.js"); -const sparqlalgebrajs_1 = __webpack_require__(/*! sparqlalgebrajs */ "./node_modules/sparqlalgebrajs/index.js"); +const sparqlalgebrajs_1 = __webpack_require__(/*! sparqlalgebrajs */ "./node_modules/@comunica/bus-query-operation/node_modules/sparqlalgebrajs/index.js"); /** * A convenience constructor for bindings based on a given hash. * @param {{[p: string]: RDF.Term}} hash A hash that maps variable names to terms. @@ -12855,1550 +15025,2150 @@ exports.materializeOperation = materializeOperation; /***/ }), -/***/ "./node_modules/@comunica/bus-rdf-dereference/index.js": -/*!*************************************************************!*\ - !*** ./node_modules/@comunica/bus-rdf-dereference/index.js ***! - \*************************************************************/ +/***/ "./node_modules/@comunica/bus-query-operation/node_modules/sparqlalgebrajs/index.js": +/*!******************************************************************************************!*\ + !*** ./node_modules/@comunica/bus-query-operation/node_modules/sparqlalgebrajs/index.js ***! + \******************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __exportStar = (this && this.__exportStar) || function(m, exports) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); -}; Object.defineProperty(exports, "__esModule", { value: true }); -__exportStar(__webpack_require__(/*! ./lib/ActorRdfDereference */ "./node_modules/@comunica/bus-rdf-dereference/lib/ActorRdfDereference.js"), exports); -__exportStar(__webpack_require__(/*! ./lib/ActorRdfDereferenceMediaMappings */ "./node_modules/@comunica/bus-rdf-dereference/lib/ActorRdfDereferenceMediaMappings.js"), exports); +exports.Util = exports.toSparqlJs = exports.toSparql = exports.Factory = exports.Algebra = exports.translate = void 0; +const sparqlAlgebra_1 = __webpack_require__(/*! ./lib/sparqlAlgebra */ "./node_modules/@comunica/bus-query-operation/node_modules/sparqlalgebrajs/lib/sparqlAlgebra.js"); +exports.translate = sparqlAlgebra_1.default; +const Algebra = __webpack_require__(/*! ./lib/algebra */ "./node_modules/@comunica/bus-query-operation/node_modules/sparqlalgebrajs/lib/algebra.js"); +exports.Algebra = Algebra; +const factory_1 = __webpack_require__(/*! ./lib/factory */ "./node_modules/@comunica/bus-query-operation/node_modules/sparqlalgebrajs/lib/factory.js"); +exports.Factory = factory_1.default; +const sparql_1 = __webpack_require__(/*! ./lib/sparql */ "./node_modules/@comunica/bus-query-operation/node_modules/sparqlalgebrajs/lib/sparql.js"); +Object.defineProperty(exports, "toSparql", { enumerable: true, get: function () { return sparql_1.toSparql; } }); +Object.defineProperty(exports, "toSparqlJs", { enumerable: true, get: function () { return sparql_1.toSparqlJs; } }); +const util_1 = __webpack_require__(/*! ./lib/util */ "./node_modules/@comunica/bus-query-operation/node_modules/sparqlalgebrajs/lib/util.js"); +exports.Util = util_1.default; //# sourceMappingURL=index.js.map /***/ }), -/***/ "./node_modules/@comunica/bus-rdf-dereference/lib/ActorRdfDereference.js": -/*!*******************************************************************************!*\ - !*** ./node_modules/@comunica/bus-rdf-dereference/lib/ActorRdfDereference.js ***! - \*******************************************************************************/ +/***/ "./node_modules/@comunica/bus-query-operation/node_modules/sparqlalgebrajs/lib/algebra.js": +/*!************************************************************************************************!*\ + !*** ./node_modules/@comunica/bus-query-operation/node_modules/sparqlalgebrajs/lib/algebra.js ***! + \************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -exports.ActorRdfDereference = exports.KEY_CONTEXT_LENIENT = void 0; -const stream_1 = __webpack_require__(/*! stream */ "./node_modules/stream-browserify/index.js"); -const context_entries_1 = __webpack_require__(/*! @comunica/context-entries */ "./node_modules/@comunica/context-entries/index.js"); -const core_1 = __webpack_require__(/*! @comunica/core */ "./node_modules/@comunica/core/index.js"); -/** - * @deprecated Import this constant from @comunica/context-entries. - */ -exports.KEY_CONTEXT_LENIENT = context_entries_1.KeysInitSparql.lenient; -/** - * A base actor for dereferencing URLs to quad streams. - * - * Actor types: - * * Input: IActionRdfDereference: A URL. - * * Test: - * * Output: IActorRdfDereferenceOutput: A quad stream. - * - * @see IActionRdfDereference - * @see IActorRdfDereferenceOutput - */ -class ActorRdfDereference extends core_1.Actor { - constructor(args) { - super(args); - } - /** - * Check if hard errors should occur on HTTP or parse errors. - * @param {IActionRdfDereference} action An RDF dereference action. - * @return {boolean} If hard errors are enabled. - */ - isHardError(action) { - return !action.context || !action.context.get(context_entries_1.KeysInitSparql.lenient); - } - /** - * If hard errors are disabled, modify the given stream so that errors are delegated to the logger. - * @param {IActionRdfDereference} action An RDF dereference action. - * @param {Stream} quads A quad stream. - * @return {Stream} The resulting quad stream. - */ - handleDereferenceStreamErrors(action, quads) { - // If we don't emit hard errors, make parsing error events log instead, and silence them downstream. - if (!this.isHardError(action)) { - quads.on('error', error => { - this.logError(action.context, error.message, () => ({ url: action.url })); - // Make sure the errored stream is ended. - quads.push(null); - }); - quads = quads.pipe(new stream_1.PassThrough({ objectMode: true })); - } - return quads; - } - /** - * Handle the given error as a rejection or delegate it to the logger, - * depending on whether or not hard errors are enabled. - * @param {IActionRdfDereference} action An RDF dereference action. - * @param {Error} error An error that has occured. - * @return {Promise} A promise that rejects or resolves to an empty output. - */ - async handleDereferenceError(action, error) { - if (this.isHardError(action)) { - throw error; - } - else { - this.logError(action.context, error.message); - const quads = new stream_1.Readable(); - quads.push(null); - return { url: action.url, quads }; - } - } -} -exports.ActorRdfDereference = ActorRdfDereference; -//# sourceMappingURL=ActorRdfDereference.js.map +exports.expressionTypes = exports.types = void 0; +// TODO: add aggregates? +// TODO: can't find a way to use these values as string types in the interfaces +exports.types = Object.freeze({ + ALT: 'alt', + ASK: 'ask', + BGP: 'bgp', + CONSTRUCT: 'construct', + DESC: 'desc', + DESCRIBE: 'describe', + DISTINCT: 'distinct', + EXPRESSION: 'expression', + EXTEND: 'extend', + FILTER: 'filter', + FROM: 'from', + GRAPH: 'graph', + GROUP: 'group', + INV: 'inv', + JOIN: 'join', + LEFT_JOIN: 'leftjoin', + LINK: 'link', + MINUS: 'minus', + NPS: 'nps', + ONE_OR_MORE_PATH: 'OneOrMorePath', + ORDER_BY: 'orderby', + PATH: 'path', + PATTERN: 'pattern', + PROJECT: 'project', + REDUCED: 'reduced', + SEQ: 'seq', + SERVICE: 'service', + SLICE: 'slice', + UNION: 'union', + VALUES: 'values', + ZERO_OR_MORE_PATH: 'ZeroOrMorePath', + ZERO_OR_ONE_PATH: 'ZeroOrOnePath', + COMPOSITE_UPDATE: 'compositeupdate', + DELETE_INSERT: 'deleteinsert', + LOAD: 'load', + CLEAR: 'clear', + CREATE: 'create', + DROP: 'drop', + ADD: 'add', + MOVE: 'move', + COPY: 'copy', +}); +exports.expressionTypes = Object.freeze({ + AGGREGATE: 'aggregate', + EXISTENCE: 'existence', + NAMED: 'named', + OPERATOR: 'operator', + TERM: 'term', + WILDCARD: 'wildcard', +}); +//# sourceMappingURL=algebra.js.map /***/ }), -/***/ "./node_modules/@comunica/bus-rdf-dereference/lib/ActorRdfDereferenceMediaMappings.js": -/*!********************************************************************************************!*\ - !*** ./node_modules/@comunica/bus-rdf-dereference/lib/ActorRdfDereferenceMediaMappings.js ***! - \********************************************************************************************/ +/***/ "./node_modules/@comunica/bus-query-operation/node_modules/sparqlalgebrajs/lib/factory.js": +/*!************************************************************************************************!*\ + !*** ./node_modules/@comunica/bus-query-operation/node_modules/sparqlalgebrajs/lib/factory.js ***! + \************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -exports.ActorRdfDereferenceMediaMappings = void 0; -const ActorRdfDereference_1 = __webpack_require__(/*! ./ActorRdfDereference */ "./node_modules/@comunica/bus-rdf-dereference/lib/ActorRdfDereference.js"); -/** - * A base actor for dereferencing URLs to quad streams. - * - * Actor types: - * * Input: IActionRdfDereference: A URL. - * * Test: - * * Output: IActorRdfDereferenceOutput: A quad stream. - * - * @see IActionRdfDereference - * @see IActorRdfDereferenceOutput - */ -class ActorRdfDereferenceMediaMappings extends ActorRdfDereference_1.ActorRdfDereference { - constructor(args) { - super(args); +const rdf_data_factory_1 = __webpack_require__(/*! rdf-data-factory */ "./node_modules/rdf-data-factory/index.js"); +const rdf_string_1 = __webpack_require__(/*! rdf-string */ "./node_modules/rdf-string/index.js"); +const Wildcard = __webpack_require__(/*! sparqljs */ "./node_modules/sparqljs/sparql.js").Wildcard; +class Factory { + constructor(dataFactory) { + this.dataFactory = dataFactory || new rdf_data_factory_1.DataFactory(); + this.stringType = this.createTerm('http://www.w3.org/2001/XMLSchema#string'); } - /** - * Get the media type based on the extension of the given path, - * which can be an URL or file path. - * @param {string} path A path. - * @return {string} A media type or the empty string. - */ - getMediaTypeFromExtension(path) { - const dotIndex = path.lastIndexOf('.'); - if (dotIndex >= 0) { - const ext = path.slice(dotIndex); - // Ignore dot - return this.mediaMappings[ext.slice(1)] || ''; - } - return ''; + createAlt(left, right) { return { type: 'alt', left, right }; } + createAsk(input) { return { type: 'ask', input }; } + createBoundAggregate(variable, aggregate, expression, distinct, separator) { + let result = this.createAggregateExpression(aggregate, expression, distinct, separator); + result.variable = variable; + return result; } -} -exports.ActorRdfDereferenceMediaMappings = ActorRdfDereferenceMediaMappings; -//# sourceMappingURL=ActorRdfDereferenceMediaMappings.js.map - -/***/ }), - -/***/ "./node_modules/@comunica/bus-rdf-join/index.js": -/*!******************************************************!*\ - !*** ./node_modules/@comunica/bus-rdf-join/index.js ***! - \******************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __exportStar = (this && this.__exportStar) || function(m, exports) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -__exportStar(__webpack_require__(/*! ./lib/ActorRdfJoin */ "./node_modules/@comunica/bus-rdf-join/lib/ActorRdfJoin.js"), exports); -//# sourceMappingURL=index.js.map - -/***/ }), - -/***/ "./node_modules/@comunica/bus-rdf-join/lib/ActorRdfJoin.js": -/*!*****************************************************************!*\ - !*** ./node_modules/@comunica/bus-rdf-join/lib/ActorRdfJoin.js ***! - \*****************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ActorRdfJoin = void 0; -const core_1 = __webpack_require__(/*! @comunica/core */ "./node_modules/@comunica/core/index.js"); -const asynciterator_1 = __webpack_require__(/*! asynciterator */ "./node_modules/asynciterator/dist/asynciterator.js"); -/** - * A comunica actor for joining 2 binding streams. - * - * Actor types: - * * Input: IActionRdfJoin: The streams that need to be joined. - * * Test: - * * Output: IActorRdfJoinOutput: The resulting joined stream. - * - * @see IActionRdfJoin - * @see IActorQueryOperationOutput - */ -class ActorRdfJoin extends core_1.Actor { - constructor(args, limitEntries, limitEntriesMin, canHandleUndefs) { - super(args); - this.limitEntries = limitEntries !== null && limitEntries !== void 0 ? limitEntries : Number.POSITIVE_INFINITY; - this.limitEntriesMin = limitEntriesMin !== null && limitEntriesMin !== void 0 ? limitEntriesMin : false; - this.canHandleUndefs = canHandleUndefs !== null && canHandleUndefs !== void 0 ? canHandleUndefs : false; + createBgp(patterns) { return { type: 'bgp', patterns }; } + createConstruct(input, template) { return { type: 'construct', input, template }; } + createDescribe(input, terms) { return { type: 'describe', input, terms }; } + createDistinct(input) { return { type: 'distinct', input }; } + createExtend(input, variable, expression) { return { type: 'extend', input, variable, expression }; } + createFrom(input, def, named) { return { type: 'from', input, default: def, named }; } + createFilter(input, expression) { return { type: 'filter', input, expression }; } + createGraph(input, name) { return { type: 'graph', input, name }; } + createGroup(input, variables, aggregates) { return { type: 'group', input, variables, aggregates }; } + createInv(path) { return { type: 'inv', path }; } + createJoin(left, right) { return { type: 'join', left, right }; } + createLeftJoin(left, right, expression) { + if (expression) + return { type: 'leftjoin', left, right, expression }; + return { type: 'leftjoin', left, right }; } - /** - * Returns an array containing all the variable names that occur in all bindings streams. - * @param {IActionRdfJoin} action - * @returns {string[]} - */ - static overlappingVariables(action) { - const variables = action.entries.map(entry => entry.variables); - let baseArray = variables[0]; - for (const array of variables.slice(1)) { - baseArray = baseArray.filter(el => array.includes(el)); - } - return baseArray; + createLink(iri) { return { type: 'link', iri }; } + createMinus(left, right) { return { type: 'minus', left, right }; } + createNps(iris) { return { type: 'nps', iris }; } + createOneOrMorePath(path) { return { type: 'OneOrMorePath', path }; } + createOrderBy(input, expressions) { return { type: 'orderby', input, expressions }; } + createPath(subject, predicate, object, graph) { + if (graph) + return { type: 'path', subject, predicate, object, graph }; + return { type: 'path', subject, predicate, object, graph: this.dataFactory.defaultGraph() }; } - /** - * Returns the variables that will occur in the joined bindings. - * @param {IActionRdfJoin} action - * @returns {string[]} - */ - static joinVariables(action) { - const variables = action.entries.map(entry => entry.variables); - const withDuplicates = variables.reduce((acc, it) => [...acc, ...it], []); - return [...new Set(withDuplicates)]; + createPattern(subject, predicate, object, graph) { + let pattern = this.dataFactory.quad(subject, predicate, object, graph); + pattern.type = 'pattern'; + return pattern; } - /** - * Returns the result of joining bindings, or `null` if no join is possible. - * @param {Bindings[]} bindings - * @returns {Bindings} - */ - static join(...bindings) { - try { - return bindings.reduce((acc, val) => acc.mergeWith((left, right) => { - if (!left.equals(right)) { - throw new Error('Join failure'); - } - return left; - }, val)); - } - catch (_a) { - return null; - } + createProject(input, variables) { return { type: 'project', input, variables }; } + createReduced(input) { return { type: 'reduced', input }; } + createSeq(left, right) { return { type: 'seq', left, right }; } + createService(input, name, silent) { return { type: 'service', input, name, silent }; } + createSlice(input, start, length) { + if (start === undefined) + start = 0; + if (length !== undefined) + return { type: 'slice', input, start, length }; + return { type: 'slice', input, start }; } - /** - * Checks if all metadata objects are present in the action, and if they have the specified key. - * @param {IActionRdfJoin} action - * @param {string} key - * @returns {boolean} - */ - static async iteratorsHaveMetadata(action, key) { - return Promise.all(action.entries.map(async (entry) => { - if (!entry.metadata) { - throw new Error('Missing metadata'); - } - const metadata = await entry.metadata(); - if (!(key in metadata)) { - throw new Error('Missing metadata value'); - } - })).then(() => true).catch(() => false); + createUnion(left, right) { return { type: 'union', left, right }; } + createValues(variables, bindings) { return { type: 'values', variables, bindings }; } + createZeroOrMorePath(path) { return { type: 'ZeroOrMorePath', path }; } + createZeroOrOnePath(path) { return { type: 'ZeroOrOnePath', path }; } + createAggregateExpression(aggregator, expression, distinct, separator) { + if (separator) + return { type: 'expression', expressionType: 'aggregate', aggregator: aggregator, expression, separator, distinct }; + return { type: 'expression', expressionType: 'aggregate', aggregator: aggregator, expression, distinct }; } - /** - * Default test function for join actors. - * Checks whether all iterators have metadata. - * If yes: call the abstract getIterations method, if not: return Infinity. - * @param {IActionRdfJoin} action The input action containing the relevant iterators - * @returns {Promise} The calculated estime. - */ - async test(action) { - // Allow joining of one or zero streams - if (action.entries.length <= 1) { - return { iterations: 0 }; - } - // Check if this actor can handle the given number of streams - if (this.limitEntriesMin ? action.entries.length < this.limitEntries : action.entries.length > this.limitEntries) { - throw new Error(`${this.name} requires ${this.limitEntries} sources at ${this.limitEntriesMin ? 'least' : 'most'}. The input contained ${action.entries.length}.`); - } - // Check if all streams are bindings streams - for (const entry of action.entries) { - if (entry.type !== 'bindings') { - throw new Error(`Invalid type of a join entry: Expected 'bindings' but got '${entry.type}'`); - } - } - // Check if this actor can handle undefs - if (!this.canHandleUndefs) { - for (const entry of action.entries) { - if (entry.canContainUndefs) { - throw new Error(`Actor ${this.name} can not join streams containing undefs`); - } - } - } - if (!await ActorRdfJoin.iteratorsHaveMetadata(action, 'totalItems')) { - return { iterations: Number.POSITIVE_INFINITY }; - } - return { iterations: await this.getIterations(action) }; + createExistenceExpression(not, input) { return { type: 'expression', expressionType: 'existence', not, input }; } + createNamedExpression(name, args) { return { type: 'expression', expressionType: 'named', name, args }; } + createOperatorExpression(operator, args) { return { type: 'expression', expressionType: 'operator', operator, args }; } + createTermExpression(term) { return { type: 'expression', expressionType: 'term', term }; } + createWildcardExpression() { return { type: 'expression', expressionType: 'wildcard', wildcard: new Wildcard() }; } + createTerm(str) { + return rdf_string_1.stringToTerm(str, this.dataFactory); } - /** - * Returns default input for 0 or 1 entries. Calls the getOutput function otherwise - * @param {IActionRdfJoin} action - * @returns {Promise} - */ - async run(action) { - if (action.entries.length === 0) { - return { - bindingsStream: new asynciterator_1.ArrayIterator([], { autoStart: false }), - metadata: () => Promise.resolve({ totalItems: 0 }), - type: 'bindings', - variables: [], - canContainUndefs: false, - }; - } - if (action.entries.length === 1) { - return action.entries[0]; - } - const result = this.getOutput(action); - function totalItems() { - return Promise.all(action.entries - .map(entry => entry.metadata())) - .then(metadatas => metadatas.reduce((acc, val) => acc * val.totalItems, 1)); - } - if (await ActorRdfJoin.iteratorsHaveMetadata(action, 'totalItems')) { - // Update the result promise to also add the estimated total items - const unwrapped = await result; - if (unwrapped.metadata) { - const oldMetadata = unwrapped.metadata; - unwrapped.metadata = () => oldMetadata().then(async (metadata) => { - // Don't overwrite metadata if it was generated by implementation - if (!('totalItems' in metadata)) { - metadata.totalItems = await totalItems(); - } - return metadata; - }); - } - else { - unwrapped.metadata = () => totalItems().then(totalItemsValue => ({ totalItems: totalItemsValue })); - } - return unwrapped; - } + // Update functions + createCompositeUpdate(updates) { return { type: 'compositeupdate', updates }; } + createDeleteInsert(deleteQuads, insertQuads, where) { + const result = { type: 'deleteinsert' }; + if (deleteQuads) + result.delete = deleteQuads; + if (insertQuads) + result.insert = insertQuads; + if (where) + result.where = where; return result; } -} -exports.ActorRdfJoin = ActorRdfJoin; -//# sourceMappingURL=ActorRdfJoin.js.map - -/***/ }), - -/***/ "./node_modules/@comunica/bus-rdf-metadata-extract/index.js": -/*!******************************************************************!*\ - !*** ./node_modules/@comunica/bus-rdf-metadata-extract/index.js ***! - \******************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __exportStar = (this && this.__exportStar) || function(m, exports) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -__exportStar(__webpack_require__(/*! ./lib/ActorRdfMetadataExtract */ "./node_modules/@comunica/bus-rdf-metadata-extract/lib/ActorRdfMetadataExtract.js"), exports); -__exportStar(__webpack_require__(/*! ./lib/ActorRdfMetadataExtractQuery */ "./node_modules/@comunica/bus-rdf-metadata-extract/lib/ActorRdfMetadataExtractQuery.js"), exports); -__exportStar(__webpack_require__(/*! ./lib/GraphQlQueryEngine */ "./node_modules/@comunica/bus-rdf-metadata-extract/lib/GraphQlQueryEngine.js"), exports); -//# sourceMappingURL=index.js.map - -/***/ }), - -/***/ "./node_modules/@comunica/bus-rdf-metadata-extract/lib/ActorRdfMetadataExtract.js": -/*!****************************************************************************************!*\ - !*** ./node_modules/@comunica/bus-rdf-metadata-extract/lib/ActorRdfMetadataExtract.js ***! - \****************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ActorRdfMetadataExtract = void 0; -const core_1 = __webpack_require__(/*! @comunica/core */ "./node_modules/@comunica/core/index.js"); -/** - * A comunica actor for rdf-metadata-extract events. - * - * Actor types: - * * Input: IActionRdfMetadataExtract: A metadata quad stream - * * Test: - * * Output: IActorRdfMetadataExtractOutput: A metadata hash. - * - * @see IActionRdfDereference - * @see IActorRdfDereferenceOutput - */ -class ActorRdfMetadataExtract extends core_1.Actor { - constructor(args) { - super(args); + createLoad(source, destination, silent) { + const result = { type: 'load', source }; + if (destination) + result.destination = destination; + return this.addSilent(result, silent); } -} -exports.ActorRdfMetadataExtract = ActorRdfMetadataExtract; -//# sourceMappingURL=ActorRdfMetadataExtract.js.map - -/***/ }), - -/***/ "./node_modules/@comunica/bus-rdf-metadata-extract/lib/ActorRdfMetadataExtractQuery.js": -/*!*********************************************************************************************!*\ - !*** ./node_modules/@comunica/bus-rdf-metadata-extract/lib/ActorRdfMetadataExtractQuery.js ***! - \*********************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ActorRdfMetadataExtractQuery = void 0; -const graphql_ld_1 = __webpack_require__(/*! graphql-ld */ "./node_modules/graphql-ld/index.js"); -const rdf_store_stream_1 = __webpack_require__(/*! rdf-store-stream */ "./node_modules/rdf-store-stream/index.js"); -const ActorRdfMetadataExtract_1 = __webpack_require__(/*! ./ActorRdfMetadataExtract */ "./node_modules/@comunica/bus-rdf-metadata-extract/lib/ActorRdfMetadataExtract.js"); -const GraphQlQueryEngine_1 = __webpack_require__(/*! ./GraphQlQueryEngine */ "./node_modules/@comunica/bus-rdf-metadata-extract/lib/GraphQlQueryEngine.js"); -/** - * An {@link ActorRdfMetadataExtract} that extracts metadata based on a GraphQL-LD query. - * - * It exposes the {@link #queryData} method using which a query can be applied over the metadata stream. - * For efficiency reasons, the query (and JSON-LD context) must be passed via the actor constructor - * so that these can be pre-compiled. - * - * @see ActorRdfMetadataExtract - */ -class ActorRdfMetadataExtractQuery extends ActorRdfMetadataExtract_1.ActorRdfMetadataExtract { - constructor(context, query, args) { - super(args); - // Pre-parse GraphQL-LD query - this.graphqlClient = new graphql_ld_1.Client({ - context, - queryEngine: new GraphQlQueryEngine_1.GraphQlQueryEngine(this.queryEngine), - }); - this.sparqlOperation = this.graphqlClient.graphQlToSparql({ query }); + createClear(source, silent) { + return this.addSilent({ type: 'clear', source }, silent); } - /** - * Execute the configured query on the given metadata stream. - * @param {RDF.Stream} dataStream A quad stream to query on. - * @return The GraphQL query results. - */ - async queryData(dataStream, initialBindings) { - // Load metadata quads into store - const store = await rdf_store_stream_1.storeStream(dataStream); - // Execute query against out in-memory store - const { data } = await this.graphqlClient.query(Object.assign(Object.assign({}, await this.sparqlOperation), { queryEngineOptions: { source: { type: 'rdfjsSource', value: store }, initialBindings } })); - return data; + createCreate(source, silent) { + return this.addSilent({ type: 'create', source }, silent); } -} -exports.ActorRdfMetadataExtractQuery = ActorRdfMetadataExtractQuery; -//# sourceMappingURL=ActorRdfMetadataExtractQuery.js.map - -/***/ }), - -/***/ "./node_modules/@comunica/bus-rdf-metadata-extract/lib/GraphQlQueryEngine.js": -/*!***********************************************************************************!*\ - !*** ./node_modules/@comunica/bus-rdf-metadata-extract/lib/GraphQlQueryEngine.js ***! - \***********************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -Object.defineProperty(exports, "__esModule", { value: true }); -exports.GraphQlQueryEngine = void 0; -const stringifyStream = __webpack_require__(/*! stream-to-string */ "./node_modules/stream-to-string/index.js"); -/** - * A comunica-based GraphQL-LD query engine. - */ -class GraphQlQueryEngine { - constructor(comunicaEngine) { - this.comunicaEngine = comunicaEngine; + createDrop(source, silent) { + return this.addSilent({ type: 'drop', source }, silent); } - async query(query, options) { - const { data } = await this.comunicaEngine.resultToString(await this.comunicaEngine.query(query, options), 'application/sparql-results+json'); - return JSON.parse(await stringifyStream(data)); + createAdd(source, destination, silent) { + return this.addSilent({ type: 'add', source, destination }, silent); + } + createMove(source, destination, silent) { + return this.addSilent({ type: 'move', source, destination }, silent); + } + createCopy(source, destination, silent) { + return this.addSilent({ type: 'copy', source, destination }, silent); + } + addSilent(input, silent) { + if (silent) + input.silent = silent; + return input; } } -exports.GraphQlQueryEngine = GraphQlQueryEngine; -//# sourceMappingURL=GraphQlQueryEngine.js.map - -/***/ }), - -/***/ "./node_modules/@comunica/bus-rdf-metadata/index.js": -/*!**********************************************************!*\ - !*** ./node_modules/@comunica/bus-rdf-metadata/index.js ***! - \**********************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __exportStar = (this && this.__exportStar) || function(m, exports) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -__exportStar(__webpack_require__(/*! ./lib/ActorRdfMetadata */ "./node_modules/@comunica/bus-rdf-metadata/lib/ActorRdfMetadata.js"), exports); -__exportStar(__webpack_require__(/*! ./lib/ActorRdfMetadataQuadPredicate */ "./node_modules/@comunica/bus-rdf-metadata/lib/ActorRdfMetadataQuadPredicate.js"), exports); -//# sourceMappingURL=index.js.map +exports.default = Factory; +//# sourceMappingURL=factory.js.map /***/ }), -/***/ "./node_modules/@comunica/bus-rdf-metadata/lib/ActorRdfMetadata.js": -/*!*************************************************************************!*\ - !*** ./node_modules/@comunica/bus-rdf-metadata/lib/ActorRdfMetadata.js ***! - \*************************************************************************/ +/***/ "./node_modules/@comunica/bus-query-operation/node_modules/sparqlalgebrajs/lib/sparql.js": +/*!***********************************************************************************************!*\ + !*** ./node_modules/@comunica/bus-query-operation/node_modules/sparqlalgebrajs/lib/sparql.js ***! + \***********************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -exports.ActorRdfMetadata = void 0; -const core_1 = __webpack_require__(/*! @comunica/core */ "./node_modules/@comunica/core/index.js"); -/** - * A comunica actor for rdf-metadata events. - * - * Actor types: - * * Input: IActionRdfMetadata: An RDF quad stream. - * * Test: - * * Output: IActorRdfMetadataOutput: An RDF quad data stream and RDF quad metadata stream. - * - * @see IActionRdfDereference - * @see IActorRdfDereferenceOutput - */ -class ActorRdfMetadata extends core_1.Actor { - constructor(args) { - super(args); +exports.toSparqlJs = exports.toSparql = void 0; +const rdf_isomorphic_1 = __webpack_require__(/*! rdf-isomorphic */ "./node_modules/rdf-isomorphic/index.js"); +const Algebra = __webpack_require__(/*! ./algebra */ "./node_modules/@comunica/bus-query-operation/node_modules/sparqlalgebrajs/lib/algebra.js"); +const factory_1 = __webpack_require__(/*! ./factory */ "./node_modules/@comunica/bus-query-operation/node_modules/sparqlalgebrajs/lib/factory.js"); +const util_1 = __webpack_require__(/*! ./util */ "./node_modules/@comunica/bus-query-operation/node_modules/sparqlalgebrajs/lib/util.js"); +const rdf_string_1 = __webpack_require__(/*! rdf-string */ "./node_modules/rdf-string/index.js"); +const SparqlGenerator = __webpack_require__(/*! sparqljs */ "./node_modules/sparqljs/sparql.js").Generator; +const Wildcard = __webpack_require__(/*! sparqljs */ "./node_modules/sparqljs/sparql.js").Wildcard; +const types = Algebra.types; +const eTypes = Algebra.expressionTypes; +let context; +const factory = new factory_1.default(); +function toSparql(op, options = {}) { + let generator = new SparqlGenerator(options); + return generator.stringify(toSparqlJs(op)); +} +exports.toSparql = toSparql; +function toSparqlJs(op) { + resetContext(); + op = removeQuads(op); + let result = translateOperation(op); + if (result.type === 'group') + return result.patterns[0]; + return result; +} +exports.toSparqlJs = toSparqlJs; +function resetContext() { + context = { project: false, extend: [], group: [], aggregates: [], order: [] }; +} +function translateOperation(op) { + // this allows us to differentiate between BIND and SELECT when translating EXTEND + // GRAPH was added because the way graphs get added back here is not the same as how they get added in the future + // ^ seems fine but might have to be changed if problems get detected in the future + if (op.type !== types.EXTEND && op.type !== types.ORDER_BY && op.type !== types.GRAPH) + context.project = false; + switch (op.type) { + case types.EXPRESSION: return translateExpression(op); + case types.ASK: return translateProject(op, types.ASK); + case types.BGP: return translateBgp(op); + case types.CONSTRUCT: return translateConstruct(op); + case types.DESCRIBE: return translateProject(op, types.DESCRIBE); + case types.DISTINCT: return translateDistinct(op); + case types.EXTEND: return translateExtend(op); + case types.FROM: return translateFrom(op); + case types.FILTER: return translateFilter(op); + case types.GRAPH: return translateGraph(op); + case types.GROUP: return translateGroup(op); + case types.JOIN: return translateJoin(op); + case types.LEFT_JOIN: return translateLeftJoin(op); + case types.MINUS: return translateMinus(op); + case types.ORDER_BY: return translateOrderBy(op); + case types.PATH: return translatePath(op); + case types.PATTERN: return translatePattern(op); + case types.PROJECT: return translateProject(op, types.PROJECT); + case types.REDUCED: return translateReduced(op); + case types.SERVICE: return translateService(op); + case types.SLICE: return translateSlice(op); + case types.UNION: return translateUnion(op); + case types.VALUES: return translateValues(op); + // UPDATE operations + case types.COMPOSITE_UPDATE: return translateCompositeUpdate(op); + case types.DELETE_INSERT: return translateDeleteInsert(op); + case types.LOAD: return translateLoad(op); + case types.CLEAR: return translateClear(op); + case types.CREATE: return translateCreate(op); + case types.DROP: return translateDrop(op); + case types.ADD: return translateAdd(op); + case types.MOVE: return translateMove(op); + case types.COPY: return translateCopy(op); } + throw new Error('Unknown Operation type ' + op.type); } -exports.ActorRdfMetadata = ActorRdfMetadata; -//# sourceMappingURL=ActorRdfMetadata.js.map - -/***/ }), - -/***/ "./node_modules/@comunica/bus-rdf-metadata/lib/ActorRdfMetadataQuadPredicate.js": -/*!**************************************************************************************!*\ - !*** ./node_modules/@comunica/bus-rdf-metadata/lib/ActorRdfMetadataQuadPredicate.js ***! - \**************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ActorRdfMetadataQuadPredicate = void 0; -const stream_1 = __webpack_require__(/*! stream */ "./node_modules/stream-browserify/index.js"); -const ActorRdfMetadata_1 = __webpack_require__(/*! ./ActorRdfMetadata */ "./node_modules/@comunica/bus-rdf-metadata/lib/ActorRdfMetadata.js"); -/** - * An abstract implementation of {@link ActorRdfMetadata} that - * only requires the quad test {@link ActorRdfMetadata#isMetadata} method to be overridden. - */ -class ActorRdfMetadataQuadPredicate extends ActorRdfMetadata_1.ActorRdfMetadata { - constructor(args) { - super(args); +function translateExpression(expr) { + switch (expr.expressionType) { + case eTypes.AGGREGATE: return translateAggregateExpression(expr); + case eTypes.EXISTENCE: return translateExistenceExpression(expr); + case eTypes.NAMED: return translateNamedExpression(expr); + case eTypes.OPERATOR: return translateOperatorExpression(expr); + case eTypes.TERM: return translateTermExpression(expr); + case eTypes.WILDCARD: return translateWildcardExpression(expr); } - async run(action) { - const data = new stream_1.Readable({ objectMode: true }); - const metadata = new stream_1.Readable({ objectMode: true }); - // Delay attachment of listeners until the data or metadata stream is being read. - // eslint-disable-next-line func-style - const attachListeners = () => { - // Attach listeners only once - data._read = metadata._read = () => { - // Do nothing - }; - // Forward errors - action.quads.on('error', error => { - data.emit('error', error); - metadata.emit('error', error); - }); - const context = {}; - action.quads.on('data', quad => { - if (this.isMetadata(quad, action.url, context)) { - metadata.push(quad); - } - else { - data.push(quad); - } - }); - action.quads.on('end', () => { - data.push(null); - metadata.push(null); - }); - }; - data._read = metadata._read = () => { - attachListeners(); - }; - return { data, metadata }; + throw new Error('Unknown Expression Operation type ' + expr.expressionType); +} +function translatePathComponent(path) { + switch (path.type) { + case types.ALT: return translateAlt(path); + case types.INV: return translateInv(path); + case types.LINK: return translateLink(path); + case types.NPS: return translateNps(path); + case types.ONE_OR_MORE_PATH: return translateOneOrMorePath(path); + case types.SEQ: return translateSeq(path); + case types.ZERO_OR_MORE_PATH: return translateZeroOrMorePath(path); + case types.ZERO_OR_ONE_PATH: return translateZeroOrOnePath(path); } + throw new Error('Unknown Path type ' + path.type); } -exports.ActorRdfMetadataQuadPredicate = ActorRdfMetadataQuadPredicate; -//# sourceMappingURL=ActorRdfMetadataQuadPredicate.js.map - -/***/ }), - -/***/ "./node_modules/@comunica/bus-rdf-parse-html/index.js": -/*!************************************************************!*\ - !*** ./node_modules/@comunica/bus-rdf-parse-html/index.js ***! - \************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __exportStar = (this && this.__exportStar) || function(m, exports) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -__exportStar(__webpack_require__(/*! ./lib/ActorRdfParseHtml */ "./node_modules/@comunica/bus-rdf-parse-html/lib/ActorRdfParseHtml.js"), exports); -//# sourceMappingURL=index.js.map - -/***/ }), - -/***/ "./node_modules/@comunica/bus-rdf-parse-html/lib/ActorRdfParseHtml.js": -/*!****************************************************************************!*\ - !*** ./node_modules/@comunica/bus-rdf-parse-html/lib/ActorRdfParseHtml.js ***! - \****************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ActorRdfParseHtml = void 0; -const core_1 = __webpack_require__(/*! @comunica/core */ "./node_modules/@comunica/core/index.js"); -/** - * A comunica actor for rdf-parse-html events. - * - * Actor types: - * * Input: IActionRdfParseHtml: Callbacks for parsing results. - * * Test: - * * Output: IActorRdfParseHtmlOutput: An HTML event listeners. - * - * @see IActionRdfParseHtml - * @see IActorRdfParseHtmlOutput - */ -class ActorRdfParseHtml extends core_1.Actor { - constructor(args) { - super(args); +function translateTerm(term) { + return rdf_string_1.termToString(term); +} +// ------------------------- EXPRESSIONS ------------------------- +function translateAggregateExpression(expr) { + let result = { + expression: translateExpression(expr.expression), + type: 'aggregate', + aggregation: expr.aggregator, + distinct: expr.distinct + }; + if (expr.separator) + result.separator = expr.separator; + return result; +} +function translateExistenceExpression(expr) { + return { + type: 'operation', + operator: expr.not ? 'notexists' : 'exists', + args: util_1.default.flatten([ + translateOperation(expr.input) + ]) + }; +} +function translateNamedExpression(expr) { + return { + type: 'functionCall', + function: expr.name, + args: expr.args.map(translateExpression) + }; +} +function translateOperatorExpression(expr) { + if (expr.operator === 'desc') { + let result = { expression: translateExpression(expr.args[0]) }; + result.descending = true; + return result; } + let result = { + type: 'operation', + operator: expr.operator, + args: expr.args.map(translateExpression) + }; + if (result.operator === 'in' || result.operator === 'notin') + result.args = [result.args[0]].concat([result.args.slice(1)]); + return result; } -exports.ActorRdfParseHtml = ActorRdfParseHtml; -//# sourceMappingURL=ActorRdfParseHtml.js.map - -/***/ }), - -/***/ "./node_modules/@comunica/bus-rdf-parse/index.js": -/*!*******************************************************!*\ - !*** ./node_modules/@comunica/bus-rdf-parse/index.js ***! - \*******************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __exportStar = (this && this.__exportStar) || function(m, exports) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -__exportStar(__webpack_require__(/*! ./lib/ActorRdfParse */ "./node_modules/@comunica/bus-rdf-parse/lib/ActorRdfParse.js"), exports); -__exportStar(__webpack_require__(/*! ./lib/ActorRdfParseFixedMediaTypes */ "./node_modules/@comunica/bus-rdf-parse/lib/ActorRdfParseFixedMediaTypes.js"), exports); -//# sourceMappingURL=index.js.map - -/***/ }), - -/***/ "./node_modules/@comunica/bus-rdf-parse/lib/ActorRdfParse.js": -/*!*******************************************************************!*\ - !*** ./node_modules/@comunica/bus-rdf-parse/lib/ActorRdfParse.js ***! - \*******************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ActorRdfParse = void 0; -const actor_abstract_mediatyped_1 = __webpack_require__(/*! @comunica/actor-abstract-mediatyped */ "./node_modules/@comunica/actor-abstract-mediatyped/index.js"); -/** - * A base actor for listening to RDF parse events. - * - * Actor types: - * * Input: IActionRdfParseOrMediaType: A parse input or a media type input. - * * Test: - * * Output: IActorOutputRdfParseOrMediaType: The parsed quads. - * - * @see IActionInit - */ -class ActorRdfParse extends actor_abstract_mediatyped_1.ActorAbstractMediaTyped { - constructor(args) { - super(args); +function translateTermExpression(expr) { + return expr.term; +} +function translateWildcardExpression(expr) { + return expr.wildcard; +} +// ------------------------- OPERATIONS ------------------------- +// these get translated in the project function +function translateBoundAggregate(op) { + return op; +} +function translateBgp(op) { + let patterns = op.patterns.map(translatePattern); + if (patterns.length === 0) + return null; + return { + type: 'bgp', + triples: patterns + }; +} +function translateConstruct(op) { + return { + type: 'query', + prefixes: {}, + queryType: "CONSTRUCT", + template: op.template.map(translatePattern), + where: util_1.default.flatten([ + translateOperation(op.input) + ]) + }; +} +function translateDistinct(op) { + let result = translateOperation(op.input); + // project is nested in group object + result.patterns[0].distinct = true; + return result; +} +function translateExtend(op) { + if (context.project) { + context.extend.push(op); + return translateOperation(op.input); } + return util_1.default.flatten([ + translateOperation(op.input), + { + type: 'bind', + variable: op.variable, + expression: translateExpression(op.expression) + } + ]); } -exports.ActorRdfParse = ActorRdfParse; -//# sourceMappingURL=ActorRdfParse.js.map - -/***/ }), - -/***/ "./node_modules/@comunica/bus-rdf-parse/lib/ActorRdfParseFixedMediaTypes.js": -/*!**********************************************************************************!*\ - !*** ./node_modules/@comunica/bus-rdf-parse/lib/ActorRdfParseFixedMediaTypes.js ***! - \**********************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ActorRdfParseFixedMediaTypes = void 0; -const actor_abstract_mediatyped_1 = __webpack_require__(/*! @comunica/actor-abstract-mediatyped */ "./node_modules/@comunica/actor-abstract-mediatyped/index.js"); -/** - * A base actor for listening to RDF parse events that has fixed media types. - * - * Actor types: - * * Input: IActionRdfParseOrMediaType: A parse input or a media type input. - * * Test: - * * Output: IActorOutputRdfParseOrMediaType: The parsed quads. - * - * @see IActionInit - */ -class ActorRdfParseFixedMediaTypes extends actor_abstract_mediatyped_1.ActorAbstractMediaTypedFixed { - constructor(args) { - super(args); +function translateFrom(op) { + let result = translateOperation(op.input); + // project is nested in group object + let obj = result.patterns[0]; + obj.from = { + default: op.default, + named: op.named + }; + return result; +} +function translateFilter(op) { + return { + type: 'group', + patterns: util_1.default.flatten([ + translateOperation(op.input), + { type: 'filter', expression: translateExpression(op.expression) } + ]) + }; +} +function translateGraph(op) { + return { + type: 'graph', + patterns: util_1.default.flatten([translateOperation(op.input)]), + name: op.name + }; +} +function translateGroup(op) { + let input = translateOperation(op.input); + let aggs = op.aggregates.map(translateBoundAggregate); + context.aggregates.push(...aggs); + // TODO: apply possible extends + context.group.push(...op.variables); + return input; +} +function translateJoin(op) { + const arr = util_1.default.flatten([ + translateOperation(op.left), + translateOperation(op.right) + ]); + // Merge bgps + // This is possible if one side was a path and the other a bgp for example + return arr.reduce((result, val) => { + if (val.type !== 'bgp' || result.length == 0 || result[result.length - 1].type !== 'bgp') { + result.push(val); + } + else { + result[result.length - 1].triples.push(...val.triples); + } + return result; + }, []); +} +function translateLeftJoin(op) { + let leftjoin = { + type: 'optional', + patterns: [ + translateOperation(op.right) + ] + }; + if (op.expression) { + leftjoin.patterns.push({ + type: 'filter', + expression: translateExpression(op.expression) + }); } - async testHandleChecked(action) { - return true; + leftjoin.patterns = util_1.default.flatten(leftjoin.patterns); + return util_1.default.flatten([ + translateOperation(op.left), + leftjoin + ]); +} +function translateMinus(op) { + let patterns = translateOperation(op.right); + if (patterns.type === 'group') + patterns = patterns.patterns; + if (!Array.isArray(patterns)) + patterns = [patterns]; + return util_1.default.flatten([ + translateOperation(op.left), + { + type: 'minus', + patterns: patterns + } + ]); +} +function translateOrderBy(op) { + context.order.push(...op.expressions); + return translateOperation(op.input); +} +function translatePath(op) { + // TODO: quads back to graph statement + return { + type: 'bgp', + triples: [{ + subject: op.subject, + predicate: translatePathComponent(op.predicate), + object: op.object + }] + }; +} +function translatePattern(op) { + return { + subject: op.subject, + predicate: op.predicate, + object: op.object + }; +} +function replaceAggregatorVariables(s, map) { + let st = util_1.default.isTerm(s) ? translateTerm(s) : s; + if (typeof st === 'string') { + if (map[st]) + return map[st]; + } + else if (Array.isArray(s)) { + s = s.map(e => replaceAggregatorVariables(e, map)); } + else { + for (let key of Object.keys(s)) + s[key] = replaceAggregatorVariables(s[key], map); + } + return s; } -exports.ActorRdfParseFixedMediaTypes = ActorRdfParseFixedMediaTypes; -//# sourceMappingURL=ActorRdfParseFixedMediaTypes.js.map - -/***/ }), - -/***/ "./node_modules/@comunica/bus-rdf-resolve-hypermedia-links-queue/index.js": -/*!********************************************************************************!*\ - !*** ./node_modules/@comunica/bus-rdf-resolve-hypermedia-links-queue/index.js ***! - \********************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __exportStar = (this && this.__exportStar) || function(m, exports) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -__exportStar(__webpack_require__(/*! ./lib/ActorRdfResolveHypermediaLinksQueue */ "./node_modules/@comunica/bus-rdf-resolve-hypermedia-links-queue/lib/ActorRdfResolveHypermediaLinksQueue.js"), exports); -__exportStar(__webpack_require__(/*! ./lib/ILinkQueue */ "./node_modules/@comunica/bus-rdf-resolve-hypermedia-links-queue/lib/ILinkQueue.js"), exports); -__exportStar(__webpack_require__(/*! ./lib/LinkQueueWrapper */ "./node_modules/@comunica/bus-rdf-resolve-hypermedia-links-queue/lib/LinkQueueWrapper.js"), exports); -//# sourceMappingURL=index.js.map - -/***/ }), - -/***/ "./node_modules/@comunica/bus-rdf-resolve-hypermedia-links-queue/lib/ActorRdfResolveHypermediaLinksQueue.js": -/*!******************************************************************************************************************!*\ - !*** ./node_modules/@comunica/bus-rdf-resolve-hypermedia-links-queue/lib/ActorRdfResolveHypermediaLinksQueue.js ***! - \******************************************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ActorRdfResolveHypermediaLinksQueue = void 0; -const core_1 = __webpack_require__(/*! @comunica/core */ "./node_modules/@comunica/core/index.js"); -/** - * A comunica actor for rdf-resolve-hypermedia-links-queue events. - * - * Actor types: - * * Input: IActionRdfResolveHypermediaLinksQueue: Creates a new {@link ILinkQueue} for the given seed URL. - * * Test: - * * Output: IActorRdfResolveHypermediaLinksQueueOutput: The created {@link ILinkQueue}. - * - * @see IActionRdfResolveHypermediaLinksQueue - * @see IActorRdfResolveHypermediaLinksQueueOutput - */ -class ActorRdfResolveHypermediaLinksQueue extends core_1.Actor { - constructor(args) { - super(args); +function translateProject(op, type) { + let result = { + type: 'query', + prefixes: {} + }; + if (type === types.PROJECT) { + result.queryType = 'SELECT'; + result.variables = op.variables; + } + else if (type === types.ASK) { + result.queryType = 'ASK'; + } + else if (type === types.DESCRIBE) { + result.queryType = 'DESCRIBE'; + result.variables = op.terms; + } + // backup values in case of nested queries + // everything in extend, group, etc. is irrelevant for this project call + let extend = context.extend; + let group = context.group; + let aggregates = context.aggregates; + let order = context.order; + resetContext(); + context.project = true; + let input = util_1.default.flatten([translateOperation(op.input)]); + if (input.length === 1 && input[0].type === 'group') + input = input[0].patterns; + result.where = input; + let aggregators = {}; + // these can not reference each other + for (let agg of context.aggregates) + aggregators[translateTerm(agg.variable)] = translateExpression(agg); + // do these in reverse order since variables in one extend might apply to an expression in an other extend + let extensions = {}; + for (let i = context.extend.length - 1; i >= 0; --i) { + let e = context.extend[i]; + extensions[translateTerm(e.variable)] = replaceAggregatorVariables(translateExpression(e.expression), aggregators); + } + if (context.group.length > 0) + result.group = context.group.map(variable => { + let v = translateTerm(variable); + if (extensions[v]) { + let result = extensions[v]; + delete extensions[v]; // make sure there is only 1 'AS' statement + return { + variable, + expression: result + }; + } + return { expression: variable }; + }); + // descending expressions will already be in the correct format due to the structure of those + if (context.order.length > 0) + result.order = context.order.map(translateOperation).map(o => o.descending ? o : ({ expression: o })); + // this needs to happen after the group because it might depend on variables generated there + if (result.variables) { + result.variables = result.variables.map((term) => { + let v = translateTerm(term); + if (extensions[v]) + return { + variable: term, + expression: extensions[v] + }; + return term; + }); + // if the * didn't match any variables this would be empty + if (result.variables.length === 0) + result.variables = [new Wildcard()]; + } + // convert filter to 'having' if it contains an aggregator variable + // could always convert, but is nicer to use filter when possible + if (result.where.length > 0 && result.where[result.where.length - 1].type === 'filter') { + let filter = result.where[result.where.length - 1]; + if (objectContainsValues(filter, Object.keys(aggregators))) { + result.having = util_1.default.flatten([replaceAggregatorVariables(filter.expression, aggregators)]); + result.where.splice(-1); + } } + context.extend = extend; + context.group = group; + context.aggregates = aggregates; + context.order = order; + // subqueries need to be in a group + result = { type: 'group', patterns: [result] }; + return result; } -exports.ActorRdfResolveHypermediaLinksQueue = ActorRdfResolveHypermediaLinksQueue; -//# sourceMappingURL=ActorRdfResolveHypermediaLinksQueue.js.map - -/***/ }), - -/***/ "./node_modules/@comunica/bus-rdf-resolve-hypermedia-links-queue/lib/ILinkQueue.js": -/*!*****************************************************************************************!*\ - !*** ./node_modules/@comunica/bus-rdf-resolve-hypermedia-links-queue/lib/ILinkQueue.js ***! - \*****************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=ILinkQueue.js.map - -/***/ }), - -/***/ "./node_modules/@comunica/bus-rdf-resolve-hypermedia-links-queue/lib/LinkQueueWrapper.js": -/*!***********************************************************************************************!*\ - !*** ./node_modules/@comunica/bus-rdf-resolve-hypermedia-links-queue/lib/LinkQueueWrapper.js ***! - \***********************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -Object.defineProperty(exports, "__esModule", { value: true }); -exports.LinkQueueWrapper = void 0; -/** - * A link queue that wraps a given link queue. - */ -class LinkQueueWrapper { - constructor(linkQueue) { - this.linkQueue = linkQueue; +function objectContainsValues(o, vals) { + if (util_1.default.isTerm(o)) + return vals.indexOf(translateTerm(o)) >= 0; + if (Array.isArray(o)) + return o.some(e => objectContainsValues(e, vals)); + if (o === Object(o)) + return Object.keys(o).some(key => objectContainsValues(o[key], vals)); + return vals.indexOf(o) >= 0; +} +function translateReduced(op) { + let result = translateOperation(op.input); + // project is nested in group object + result.patterns[0].reduced = true; + return result; +} +function translateService(op) { + let patterns = translateOperation(op.input); + if (patterns.type === 'group') + patterns = patterns.patterns; + if (!Array.isArray(patterns)) + patterns = [patterns]; + return { + type: 'service', + name: op.name, + silent: op.silent, + patterns + }; +} +function translateSlice(op) { + let result = translateOperation(op.input); + // results can be nested in a group object + let obj = result; + if (result.type && result.type === 'group') + obj = result.patterns[0]; + if (op.start !== 0) + obj.offset = op.start; + if (op.length !== undefined) + obj.limit = op.length; + return result; +} +function translateUnion(op) { + return { + type: 'union', + patterns: util_1.default.flatten([ + translateOperation(op.left), + translateOperation(op.right) + ]) + }; +} +function translateValues(op) { + // TODO: check if handled correctly when outside of select block + return { + type: 'values', + values: op.bindings.map(binding => { + let result = {}; + for (let v of op.variables) { + let s = '?' + v.value; + if (binding[s]) + result[s] = binding[s]; + else + result[s] = undefined; + } + return result; + }) + }; +} +// PATH COMPONENTS +function translateAlt(path) { + let left = translatePathComponent(path.left); + let right = translatePathComponent(path.right); + if (left.pathType === '!' && right.pathType === '!') { + return { + type: 'path', + pathType: '!', + items: [{ + type: 'path', + pathType: '|', + items: [].concat(left.items, right.items) + }] + }; } - push(link, parent) { - return this.linkQueue.push(link, parent); + return { + type: 'path', + pathType: '|', + items: [left, right] + }; +} +function translateInv(path) { + if (path.path.type === types.NPS) { + let npsPath = path.path; + let inv = npsPath.iris.map((iri) => { + return { + type: 'path', + pathType: '^', + items: [iri] + }; + }); + if (inv.length <= 1) + return { + type: 'path', + pathType: '!', + items: inv + }; + return { + type: 'path', + pathType: '!', + items: [{ + type: 'path', + pathType: '|', + items: inv + }] + }; } - getSize() { - return this.linkQueue.getSize(); + return { + type: 'path', + pathType: '^', + items: [translatePathComponent(path.path)] + }; +} +function translateLink(path) { + return path.iri; +} +function translateNps(path) { + if (path.iris.length <= 1) + return { + type: 'path', + pathType: '!', + items: path.iris + }; + return { + type: 'path', + pathType: '!', + items: [{ + type: 'path', + pathType: '|', + items: path.iris + }] + }; +} +function translateOneOrMorePath(path) { + return { + type: 'path', + pathType: '+', + items: [translatePathComponent(path.path)] + }; +} +function translateSeq(path) { + return { + type: 'path', + pathType: '/', + items: [translatePathComponent(path.left), translatePathComponent(path.right)] + }; +} +function translateZeroOrMorePath(path) { + return { + type: 'path', + pathType: '*', + items: [translatePathComponent(path.path)] + }; +} +function translateZeroOrOnePath(path) { + return { + type: 'path', + pathType: '?', + items: [translatePathComponent(path.path)] + }; +} +// UPDATE OPERATIONS +function translateCompositeUpdate(op) { + const updates = op.updates.map(update => { + const result = translateOperation(update); + return result.updates[0]; + }); + return { prefixes: {}, type: 'update', updates }; +} +function translateDeleteInsert(op) { + let where = op.where; + let using = undefined; + if (where && where.type === types.FROM) { + let from = op.where; + where = from.input; + using = { default: from.default, named: from.named }; } - isEmpty() { - return this.linkQueue.isEmpty(); + const updates = [{ + updateType: 'insertdelete', + delete: convertUpdatePatterns(op.delete), + insert: convertUpdatePatterns(op.insert), + }]; + if (using) + updates[0].using = using; + // corresponds to empty array in SPARQL.js + if (!where || (where.type === types.BGP && where.patterns.length === 0)) + updates[0].where = []; + else { + const graphs = {}; + let result = translateOperation(removeQuadsRecursive(where, graphs)); + if (result.type === 'group') + updates[0].where = result.patterns; + else + updates[0].where = [result]; + // graph might not be applied yet since there was no project + // this can only happen if there was a single graph + const graphNames = Object.keys(graphs); + if (graphNames.length > 0) { + if (graphNames.length !== 1) + throw new Error('This is unexpected and might indicate an error in graph handling for updates.'); + // ignore if default graph + if (graphs[graphNames[0]].graph.value !== '') + updates[0].where = [{ type: 'graph', patterns: updates[0].where, name: graphs[graphNames[0]].graph }]; + } } - pop() { - return this.linkQueue.pop(); + // not really necessary but can give cleaner looking queries + if (!op.delete && !op.where) { + updates[0].updateType = 'insert'; + delete updates[0].delete; + delete updates[0].where; } - peek() { - return this.linkQueue.peek(); + else if (!op.insert && !op.where) { + delete updates[0].insert; + delete updates[0].where; + if (op.delete.some(pattern => pattern.subject.termType === 'Variable' || + pattern.predicate.termType === 'Variable' || + pattern.object.termType === 'Variable')) + updates[0].updateType = 'deletewhere'; + else + updates[0].updateType = 'delete'; + } + else if (!op.insert && op.where && op.where.type === 'bgp') { + if (rdf_isomorphic_1.isomorphic(op.delete, op.where.patterns)) { + delete updates[0].where; + updates[0].updateType = 'deletewhere'; + } } + return { prefixes: {}, type: 'update', updates }; } -exports.LinkQueueWrapper = LinkQueueWrapper; -//# sourceMappingURL=LinkQueueWrapper.js.map - -/***/ }), - -/***/ "./node_modules/@comunica/bus-rdf-resolve-hypermedia-links/index.js": -/*!**************************************************************************!*\ - !*** ./node_modules/@comunica/bus-rdf-resolve-hypermedia-links/index.js ***! - \**************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __exportStar = (this && this.__exportStar) || function(m, exports) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -__exportStar(__webpack_require__(/*! ./lib/ActorRdfResolveHypermediaLinks */ "./node_modules/@comunica/bus-rdf-resolve-hypermedia-links/lib/ActorRdfResolveHypermediaLinks.js"), exports); -//# sourceMappingURL=index.js.map - -/***/ }), - -/***/ "./node_modules/@comunica/bus-rdf-resolve-hypermedia-links/lib/ActorRdfResolveHypermediaLinks.js": -/*!*******************************************************************************************************!*\ - !*** ./node_modules/@comunica/bus-rdf-resolve-hypermedia-links/lib/ActorRdfResolveHypermediaLinks.js ***! - \*******************************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ActorRdfResolveHypermediaLinks = void 0; -const core_1 = __webpack_require__(/*! @comunica/core */ "./node_modules/@comunica/core/index.js"); -/** - * A comunica actor for rdf-resolve-hypermedia-links events. - * - * Actor types: - * * Input: IActionRdfResolveHypermediaLinks: The metadata from which the links should be extracted. - * * Test: - * * Output: IActorRdfResolveHypermediaLinksOutput: The URLs that were detected. - * - * @see IActionRdfResolveHypermediaLinks - * @see IActorRdfResolveHypermediaLinksOutput - */ -class ActorRdfResolveHypermediaLinks extends core_1.Actor { - constructor(args) { - super(args); +function translateLoad(op) { + const updates = [{ type: 'load', silent: Boolean(op.silent), source: op.source }]; + if (op.destination) + updates[0].destination = op.destination; + return { prefixes: {}, type: 'update', updates }; +} +function translateClear(op) { + return translateClearCreateDrop(op, 'clear'); +} +function translateCreate(op) { + return translateClearCreateDrop(op, 'create'); +} +function translateDrop(op) { + return translateClearCreateDrop(op, 'drop'); +} +function translateClearCreateDrop(op, type) { + const updates = [{ type, silent: Boolean(op.silent) }]; + if (op.source === 'DEFAULT') + updates[0].graph = { default: true }; + else if (op.source === 'NAMED') + updates[0].graph = { named: true }; + else if (op.source === 'ALL') + updates[0].graph = { all: true }; + else + updates[0].graph = { type: 'graph', name: op.source }; + return { prefixes: {}, type: 'update', updates }; +} +function translateAdd(op) { + return translateUpdateGraphShortcut(op, 'add'); +} +function translateMove(op) { + return translateUpdateGraphShortcut(op, 'move'); +} +function translateCopy(op) { + return translateUpdateGraphShortcut(op, 'copy'); +} +function translateUpdateGraphShortcut(op, type) { + const updates = [{ type, silent: Boolean(op.silent) }]; + updates[0].source = op.source === 'DEFAULT' ? { type: 'graph', default: true } : { type: 'graph', name: op.source }; + updates[0].destination = op.destination === 'DEFAULT' ? { type: 'graph', default: true } : { type: 'graph', name: op.destination }; + return { prefixes: {}, type: 'update', updates }; +} +// similar to removeQuads but more simplified for UPDATEs +function convertUpdatePatterns(patterns) { + if (!patterns) + return []; + const graphs = {}; + patterns.forEach(pattern => { + const graph = pattern.graph.value; + if (!graphs[graph]) + graphs[graph] = []; + graphs[graph].push(pattern); + }); + return Object.keys(graphs).map(graph => { + if (graph === '') + return { type: 'bgp', triples: graphs[graph].map(translatePattern) }; + return { type: 'graph', triples: graphs[graph].map(translatePattern), name: graphs[graph][0].graph }; + }); +} +function removeQuads(op) { + return removeQuadsRecursive(op, {}); +} +// remove quads +function removeQuadsRecursive(op, graphs) { + if (Array.isArray(op)) + return op.map(sub => removeQuadsRecursive(sub, graphs)); + if (!op.type) + return op; + // UPDATE operations with Patterns handle graphs a bit differently + if (op.type === types.DELETE_INSERT) + return op; + if ((op.type === types.PATTERN || op.type === types.PATH) && op.graph) { + if (!graphs[op.graph.value]) + graphs[op.graph.value] = { graph: op.graph, values: [] }; + graphs[op.graph.value].values.push(op); + return op; + } + const result = {}; + const keyGraphs = {}; // unique graph per key + const globalNames = {}; // track all the unique graph names for the entire Operation + for (let key of Object.keys(op)) { + const newGraphs = {}; + result[key] = removeQuadsRecursive(op[key], newGraphs); + const graphNames = Object.keys(newGraphs); + // create graph statements if multiple graphs are found + if (graphNames.length > 1) { + // nest joins + let left = potentialGraphFromPatterns(newGraphs[graphNames[0]].values); + for (let i = 1; i < graphNames.length; ++i) { + const right = potentialGraphFromPatterns(newGraphs[graphNames[i]].values); + left = factory.createJoin(left, right); + } + graphNames.map(name => delete newGraphs[name]); + // this ignores the result object that is being generated, but should not be a problem + // is only an issue for objects that have 2 keys where this can occur, which is none + return left; + } + else if (graphNames.length === 1) { + const graph = newGraphs[graphNames[0]].graph; + keyGraphs[key] = graph; + globalNames[graph.value] = graph; + } + } + const graphNameSet = Object.keys(globalNames); + if (graphNameSet.length > 0) { + // also need to create graph statement if we are at the edge of the query + if (graphNameSet.length === 1 && op.type !== types.PROJECT) + graphs[graphNameSet[0]] = { graph: globalNames[graphNameSet[0]], values: [result] }; + else { + // multiple graphs (or project), need to create graph objects for them + for (let key of Object.keys(keyGraphs)) + if (keyGraphs[key].value.length > 0) + result[key] = factory.createGraph(result[key], keyGraphs[key]); + } } + return result; } -exports.ActorRdfResolveHypermediaLinks = ActorRdfResolveHypermediaLinks; -//# sourceMappingURL=ActorRdfResolveHypermediaLinks.js.map - -/***/ }), - -/***/ "./node_modules/@comunica/bus-rdf-resolve-hypermedia/index.js": -/*!********************************************************************!*\ - !*** ./node_modules/@comunica/bus-rdf-resolve-hypermedia/index.js ***! - \********************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __exportStar = (this && this.__exportStar) || function(m, exports) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -__exportStar(__webpack_require__(/*! ./lib/ActorRdfResolveHypermedia */ "./node_modules/@comunica/bus-rdf-resolve-hypermedia/lib/ActorRdfResolveHypermedia.js"), exports); -//# sourceMappingURL=index.js.map +function potentialGraphFromPatterns(patterns) { + const bgp = factory.createBgp(patterns); + const name = patterns[0].graph; + if (name.value.length === 0) + return bgp; + return factory.createGraph(bgp, name); +} +//# sourceMappingURL=sparql.js.map /***/ }), -/***/ "./node_modules/@comunica/bus-rdf-resolve-hypermedia/lib/ActorRdfResolveHypermedia.js": -/*!********************************************************************************************!*\ - !*** ./node_modules/@comunica/bus-rdf-resolve-hypermedia/lib/ActorRdfResolveHypermedia.js ***! - \********************************************************************************************/ +/***/ "./node_modules/@comunica/bus-query-operation/node_modules/sparqlalgebrajs/lib/sparqlAlgebra.js": +/*!******************************************************************************************************!*\ + !*** ./node_modules/@comunica/bus-query-operation/node_modules/sparqlalgebrajs/lib/sparqlAlgebra.js ***! + \******************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -exports.ActorRdfResolveHypermedia = void 0; -const core_1 = __webpack_require__(/*! @comunica/core */ "./node_modules/@comunica/core/index.js"); +const Algebra = __webpack_require__(/*! ./algebra */ "./node_modules/@comunica/bus-query-operation/node_modules/sparqlalgebrajs/lib/algebra.js"); +const factory_1 = __webpack_require__(/*! ./factory */ "./node_modules/@comunica/bus-query-operation/node_modules/sparqlalgebrajs/lib/factory.js"); +const util_1 = __webpack_require__(/*! ./util */ "./node_modules/@comunica/bus-query-operation/node_modules/sparqlalgebrajs/lib/util.js"); +const equal = __webpack_require__(/*! fast-deep-equal */ "./node_modules/fast-deep-equal/index.js"); +const rdf_string_1 = __webpack_require__(/*! rdf-string */ "./node_modules/rdf-string/index.js"); +const Parser = __webpack_require__(/*! sparqljs */ "./node_modules/sparqljs/sparql.js").Parser; +const types = Algebra.types; +let variables = new Set(); +let varCount = 0; +let useQuads = false; +let factory; /** - * A comunica actor for rdf-resolve-hypermedia bus. - * - * Actor types: - * * Input: IActionRdfResolveHypermedia: The metadata in the document and a query operation. - * * Test: - * * Output: IActorRdfResolveHypermediaOutput: An RDF source. - * - * @see IActionRdfResolveQuadPattern - * @see IActorRdfResolveQuadPatternOutput + * Translates the given SPARQL query to SPARQL Algebra. + * @param sparql - Either a SPARQL string or an object generated by sparql.js + * @param options - Optional options object. Current options: + * * dataFactory: The Datafactory used to generate terms. Default @rdfjs/data-model. + * * quads: Boolean indicating whether triples should be converted to Quads (consumes GRAPH statements). Default false. + * * prefixes: Pre-defined prefixes for the given query. Default empty. + * * baseIRI: Base IRI that should be used for the query. Default undefined (throws error if required). + * @returns {Operation} */ -class ActorRdfResolveHypermedia extends core_1.Actor { - constructor(args, sourceType) { - super(args); - this.sourceType = sourceType; - } - async test(action) { - if (action.forceSourceType && this.sourceType !== action.forceSourceType) { - throw new Error(`Actor ${this.name} is not able to handle source type ${action.forceSourceType}.`); - } - return this.testMetadata(action); +function translate(sparql, options) { + options = options || {}; + factory = new factory_1.default(options.dataFactory); + if (isString(sparql)) { + let parser = new Parser(options); + // resets the identifier counter used for blank nodes + // provides nicer and more consistent output if there are multiple calls + parser._resetBlanks(); + sparql = parser.parse(sparql); } + return translateQuery(sparql, options.quads, options.blankToVariable); } -exports.ActorRdfResolveHypermedia = ActorRdfResolveHypermedia; -//# sourceMappingURL=ActorRdfResolveHypermedia.js.map - -/***/ }), - -/***/ "./node_modules/@comunica/bus-rdf-resolve-quad-pattern/index.js": -/*!**********************************************************************!*\ - !*** ./node_modules/@comunica/bus-rdf-resolve-quad-pattern/index.js ***! - \**********************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __exportStar = (this && this.__exportStar) || function(m, exports) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -__exportStar(__webpack_require__(/*! ./lib/ActorRdfResolveQuadPattern */ "./node_modules/@comunica/bus-rdf-resolve-quad-pattern/lib/ActorRdfResolveQuadPattern.js"), exports); -__exportStar(__webpack_require__(/*! ./lib/ActorRdfResolveQuadPatternSource */ "./node_modules/@comunica/bus-rdf-resolve-quad-pattern/lib/ActorRdfResolveQuadPatternSource.js"), exports); -//# sourceMappingURL=index.js.map - -/***/ }), - -/***/ "./node_modules/@comunica/bus-rdf-resolve-quad-pattern/lib/ActorRdfResolveQuadPattern.js": -/*!***********************************************************************************************!*\ - !*** ./node_modules/@comunica/bus-rdf-resolve-quad-pattern/lib/ActorRdfResolveQuadPattern.js ***! - \***********************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ActorRdfResolveQuadPattern = exports.getDataSourceContext = exports.getDataSourceValue = exports.getDataSourceType = exports.isDataSourceRawType = exports.KEY_CONTEXT_SOURCE = exports.KEY_CONTEXT_SOURCES = void 0; -const context_entries_1 = __webpack_require__(/*! @comunica/context-entries */ "./node_modules/@comunica/context-entries/index.js"); -const core_1 = __webpack_require__(/*! @comunica/core */ "./node_modules/@comunica/core/index.js"); -/** - * @type {string} Context entry for data sources. - * @value {DataSources} An array of sources. - * @deprecated Import this constant from @comunica/context-entries. - */ -exports.KEY_CONTEXT_SOURCES = context_entries_1.KeysRdfResolveQuadPattern.sources; -/** - * @type {string} Context entry for a data source. - * @value {IDataSource} A source. - * @deprecated Import this constant from @comunica/context-entries. - */ -exports.KEY_CONTEXT_SOURCE = context_entries_1.KeysRdfResolveQuadPattern.source; -function isDataSourceRawType(dataSource) { - return typeof dataSource === 'string' || 'match' in dataSource; -} -exports.isDataSourceRawType = isDataSourceRawType; -function getDataSourceType(dataSource) { - if (typeof dataSource === 'string') { - return ''; +exports.default = translate; +function translateQuery(sparql, quads, blankToVariable) { + // this set is filled in during the inScopeVariables call + variables = new Set(); + varCount = 0; + useQuads = quads; + // Assume this is an empty query + if (!sparql.type) + return factory.createProject(factory.createBgp([]), []); + if (sparql.type !== 'query' && sparql.type !== 'update') + throw new Error('Translate only works on complete query or update objects.'); + let vars = new Set(Object.keys(inScopeVariables(sparql)).map(factory.createTerm.bind(factory))); + let res; + if (sparql.type === 'query') { + // group and where are identical, having only 1 makes parsing easier, can be undefined in DESCRIBE + let group = { type: 'group', patterns: sparql.where || [] }; + res = translateGroupGraphPattern(group); + res = translateAggregates(sparql, res, vars); } - return 'match' in dataSource ? 'rdfjsSource' : dataSource.type; + else if (sparql.type === 'update') { + res = translateUpdate(sparql); + } + if (blankToVariable) { + res = translateBlankNodesToVariables(res, vars); + } + return res; } -exports.getDataSourceType = getDataSourceType; -function getDataSourceValue(dataSource) { - return isDataSourceRawType(dataSource) ? dataSource : dataSource.value; +function isString(str) { + return typeof str === 'string'; } -exports.getDataSourceValue = getDataSourceValue; -function getDataSourceContext(dataSource, context) { - if (typeof dataSource === 'string' || 'match' in dataSource || !dataSource.context) { - return context; - } - return context.merge(dataSource.context); +function isObject(o) { + return o !== null && typeof o === 'object'; } -exports.getDataSourceContext = getDataSourceContext; -/** - * A comunica actor for rdf-resolve-quad-pattern events. - * - * Actor types: - * * Input: IActionRdfResolveQuadPattern: A quad pattern and an optional context. - * * Test: - * * Output: IActorRdfResolveQuadPatternOutput: The resulting quad stream and optional metadata. - * - * @see IActionRdfResolveQuadPattern - * @see IActorRdfResolveQuadPatternOutput - */ -class ActorRdfResolveQuadPattern extends core_1.Actor { - constructor(args) { - super(args); +function isVariable(term) { + return term && term.termType === "Variable"; +} +// 18.2.1 +function inScopeVariables(thingy) { + let inScope = {}; + if (isVariable(thingy)) { + inScope[rdf_string_1.termToString(thingy)] = true; + variables.add(thingy); // keep track of all variables so we don't generate duplicates } - /** - * Get the sources from the given context. - * @param {ActionContext} context An optional context. - * @return {IDataSource[]} The array of sources or undefined. - */ - getContextSources(context) { - return context ? context.get(context_entries_1.KeysRdfResolveQuadPattern.sources) : undefined; + else if (isObject(thingy)) { + if (thingy.type === 'bind') { + inScopeVariables(thingy.expression); // to fill `variables` + Object.assign(inScope, inScopeVariables(thingy.variable)); + } + else if (thingy.queryType === 'SELECT') { + let all = inScopeVariables(thingy.where); // always executing this makes sure `variables` gets filled correctly + for (let v of thingy.variables) { + if (util_1.default.isWildcard(v)) + Object.assign(inScope, all); + else if (v.variable) // aggregates + Object.assign(inScope, inScopeVariables(v.variable)); + else + Object.assign(inScope, inScopeVariables(v)); + } + // TODO: I'm not 100% sure if you always add these or only when '*' was selected + if (thingy.group) + for (let v of thingy.group) + Object.assign(inScope, inScopeVariables(v)); + } + else + for (let key of Object.keys(thingy)) + Object.assign(inScope, inScopeVariables(thingy[key])); } - /** - * Get the source from the given context. - * @param {ActionContext} context An optional context. - * @return {IDataSource} The source or undefined. - */ - getContextSource(context) { - return context ? context.get(context_entries_1.KeysRdfResolveQuadPattern.source) : undefined; + return inScope; +} +function translateGroupGraphPattern(thingy) { + // 18.2.2.1 + // already done by sparql parser + // 18.2.2.2 + let filters = []; + let nonfilters = []; + if (thingy.patterns) + for (let pattern of thingy.patterns) + (pattern.type === 'filter' ? filters : nonfilters).push(pattern); + // 18.2.2.3 + // 18.2.2.4 + // 18.2.2.5 + if (thingy.type === 'bgp') + return translateBgp(thingy); + // 18.2.2.6 + let result; + if (thingy.type === 'union') + result = nonfilters.map((p) => { + // sparqljs doesn't always indicate the children are groups + if (p.type !== 'group') + p = { type: 'group', patterns: [p] }; + return translateGroupGraphPattern(p); + }).reduce((acc, item) => factory.createUnion(acc, item)); + else if (thingy.type === 'graph') + // need to handle this separately since the filters need to be in the graph + return translateGraph(thingy); + else if (thingy.type === 'group') + result = nonfilters.reduce(accumulateGroupGraphPattern, factory.createBgp([])); + // custom values operation + else if (thingy.type === 'values') + result = translateInlineData(thingy); + else if (thingy.type === 'query') + result = translateQuery(thingy, useQuads, false); + else + throw new Error('Unexpected type: ' + thingy.type); + if (filters.length > 0) { + let expressions = filters.map(filter => translateExpression(filter.expression)); + if (expressions.length > 0) + result = factory.createFilter(result, expressions.reduce((acc, exp) => factory.createOperatorExpression('&&', [acc, exp]))); } - /** - * Get the source's raw URL value from the given context. - * @param {IDataSource} source A source. - * @return {string} The URL or null. - */ - getContextSourceUrl(source) { - if (source) { - let fileUrl = getDataSourceValue(source); - if (typeof fileUrl === 'string') { - // Remove hashes from source - const hashPosition = fileUrl.indexOf('#'); - if (hashPosition >= 0) { - fileUrl = fileUrl.slice(0, hashPosition); + return result; +} +function translateExpression(exp) { + if (util_1.default.isTerm(exp) || exp.termType === 'Quad') + return factory.createTermExpression(exp); + if (util_1.default.isWildcard(exp)) + return factory.createWildcardExpression(); + if (exp.aggregation) + return factory.createAggregateExpression(exp.aggregation, translateExpression(exp.expression), exp.distinct, exp.separator); + if (exp.function) + return factory.createNamedExpression(exp.function, exp.args.map(translateExpression)); + if (exp.operator) { + if (exp.operator === 'exists' || exp.operator === 'notexists') + return factory.createExistenceExpression(exp.operator === 'notexists', translateGroupGraphPattern(exp.args[0])); + if (exp.operator === 'in' || exp.operator === 'notin') + exp.args = [exp.args[0]].concat(exp.args[1]); // sparql.js uses 2 arguments with the second one being a list + return factory.createOperatorExpression(exp.operator, exp.args.map(translateExpression)); + } + throw new Error('Unknown expression: ' + JSON.stringify(exp)); +} +function translateBgp(thingy) { + let patterns = []; + let joins = []; + for (let t of thingy.triples) { + if (t.predicate.type === 'path') { + // translatePath returns a mix of Quads and Paths + let path = translatePath(t); + for (let p of path) { + if (p.type === types.PATH) { + if (patterns.length > 0) + joins.push(factory.createBgp(patterns)); + patterns = []; + joins.push(p); } - return fileUrl; + else + patterns.push(p); } } + else + patterns.push(translateQuad(t)); } - /** - * Check if the given context has a single source. - * @param {ActionContext} context An optional context. - * @return {boolean} If the given context has a single source of the given type. - */ - hasContextSingleSource(context) { - const source = this.getContextSource(context); - return Boolean(source && (isDataSourceRawType(source) || source.value)); + if (patterns.length > 0) + joins.push(factory.createBgp(patterns)); + if (joins.length === 1) + return joins[0]; + return joins.reduce((acc, item) => factory.createJoin(acc, item)); +} +function translatePath(triple) { + let sub = triple.subject; + let pred = translatePathPredicate(triple.predicate); + let obj = triple.object; + return simplifyPath(sub, pred, obj); +} +function translatePathPredicate(predicate) { + if (util_1.default.isTerm(predicate) && predicate.termType === "NamedNode") + return factory.createLink(predicate); + if (predicate.pathType === '^') + return factory.createInv(translatePathPredicate(predicate.items[0])); + if (predicate.pathType === '!') { + // negation is either over a single predicate or a list of disjuncted properties + let normals = []; + let inverted = []; + let items; + if (predicate.items[0].type === 'path' && predicate.items[0].pathType === '|') + items = predicate.items[0].items; // the | element + else + items = predicate.items; + for (let item of items) { + if (util_1.default.isTerm(item)) + normals.push(item); + else if (item.pathType === '^') + inverted.push(item.items[0]); + else + throw new Error('Unexpected item: ' + JSON.stringify(item)); + } + // NPS elements do not have the LINK function + let normalElement = factory.createNps(normals); + let invertedElement = factory.createInv(factory.createNps(inverted)); + if (inverted.length === 0) + return normalElement; + if (normals.length === 0) + return invertedElement; + return factory.createAlt(normalElement, invertedElement); } - /** - * Check if the given context has a single source of the given type. - * @param {string} requiredType The required source type name. - * @param {ActionContext} context An optional context. - * @return {boolean} If the given context has a single source of the given type. - */ - hasContextSingleSourceOfType(requiredType, context) { - const source = this.getContextSource(context); - return Boolean(source && getDataSourceType(source) === requiredType && getDataSourceValue(source)); + if (predicate.pathType === '/') + return predicate.items.map(translatePathPredicate).reduce((acc, p) => factory.createSeq(acc, p)); + if (predicate.pathType === '|') + return predicate.items.map(translatePathPredicate).reduce((acc, p) => factory.createAlt(acc, p)); + if (predicate.pathType === '*') + return factory.createZeroOrMorePath(translatePathPredicate(predicate.items[0])); + if (predicate.pathType === '+') + return factory.createOneOrMorePath(translatePathPredicate(predicate.items[0])); + if (predicate.pathType === '?') + return factory.createZeroOrOnePath(translatePathPredicate(predicate.items[0])); + throw new Error('Unable to translate path expression ' + JSON.stringify(predicate)); +} +function simplifyPath(subject, predicate, object) { + if (predicate.type === types.LINK) + return [factory.createPattern(subject, predicate.iri, object)]; + if (predicate.type === types.INV) + return simplifyPath(object, predicate.path, subject); + if (predicate.type === types.SEQ) { + let v = generateFreshVar(); + let left = simplifyPath(subject, predicate.left, v); + let right = simplifyPath(v, predicate.right, object); + return left.concat(right); } + return [factory.createPath(subject, predicate, object)]; } -exports.ActorRdfResolveQuadPattern = ActorRdfResolveQuadPattern; -//# sourceMappingURL=ActorRdfResolveQuadPattern.js.map - -/***/ }), - -/***/ "./node_modules/@comunica/bus-rdf-resolve-quad-pattern/lib/ActorRdfResolveQuadPatternSource.js": -/*!*****************************************************************************************************!*\ - !*** ./node_modules/@comunica/bus-rdf-resolve-quad-pattern/lib/ActorRdfResolveQuadPatternSource.js ***! - \*****************************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ActorRdfResolveQuadPatternSource = void 0; -const ActorRdfResolveQuadPattern_1 = __webpack_require__(/*! ./ActorRdfResolveQuadPattern */ "./node_modules/@comunica/bus-rdf-resolve-quad-pattern/lib/ActorRdfResolveQuadPattern.js"); -/** - * A base implementation for rdf-resolve-quad-pattern events - * that wraps around an {@link IQuadSource}. - * - * @see IQuadSource - */ -class ActorRdfResolveQuadPatternSource extends ActorRdfResolveQuadPattern_1.ActorRdfResolveQuadPattern { - constructor(args) { - super(args); +function generateFreshVar() { + let v = '?var' + varCount++; + if (variables.has(v)) + return generateFreshVar(); + variables.add(v); + return factory.createTerm(v); +} +function translateQuad(quad) { + return factory.createPattern(quad.subject, quad.predicate, quad.object, quad.graph); +} +function translateGraph(graph) { + graph.type = 'group'; + let result = translateGroupGraphPattern(graph); + if (useQuads) + result = recurseGraph(result, graph.name); + else + result = factory.createGraph(result, graph.name); + return result; +} +let typeVals = Object.keys(types).map(key => types[key]); +function recurseGraph(thingy, graph, replacement) { + if (thingy.type === types.GRAPH) { + if (replacement) { + // At this point we would lose track of the replacement which would result in incorrect results + // This would indicate the library is not being used as intended though + throw new Error('Recursing through nested GRAPH statements with a replacement is impossible.'); + } + const graph = thingy; + // In case there were nested GRAPH statements that were not recursed yet for some reason + thingy = recurseGraph(graph.input, graph.name); } - async test(action) { - return true; + else if (thingy.type === types.BGP) + thingy.patterns = thingy.patterns.map(quad => { + if (replacement) { + if (quad.subject.equals(graph)) + quad.subject = replacement; + if (quad.predicate.equals(graph)) + quad.predicate = replacement; + if (quad.object.equals(graph)) + quad.object = replacement; + } + if (quad.graph.termType === 'DefaultGraph') + quad.graph = graph; + return quad; + }); + else if (thingy.type === types.PATH) { + const p = thingy; + if (replacement) { + if (p.subject.equals(graph)) + p.subject = replacement; + if (p.object.equals(graph)) + p.object = replacement; + } + if (thingy.graph.termType === 'DefaultGraph') + thingy.graph = graph; } - async run(action) { - const source = await this.getSource(action.context, action.pattern); - return await this.getOutput(source, action.pattern, action.context); + // need to replace variables in subqueries should the graph also be a variable of the same name + // unless the subquery projects that variable + else if (thingy.type === types.PROJECT && !replacement) { + const proj = thingy; + if (!proj.variables.some(v => v.equals(graph))) + replacement = generateFreshVar(); + proj.input = recurseGraph(proj.input, graph, replacement); } - /** - * Get the output of the given action on a source. - * @param {IQuadSource} source A quad source, possibly lazy. - * @param {Algebra.Operation} operation The operation to apply. - * @param ActionContext context Optional context data. - * @return {Promise} A promise that resolves to a hash containing - * a data RDFJS stream. - */ - async getOutput(source, pattern, context) { - // Create data stream - const data = source.match(pattern.subject, pattern.predicate, pattern.object, pattern.graph); - return { data }; + // this can happen if the query extends an expression to the name of the graph + // since the extend happens here there should be no further occurrences of this name + // if there are it's the same situation as above + else if (thingy.type === types.EXTEND && !replacement) { + const ext = thingy; + if (ext.variable.equals(graph)) + replacement = generateFreshVar(); + ext.input = recurseGraph(ext.input, graph, replacement); } -} -exports.ActorRdfResolveQuadPatternSource = ActorRdfResolveQuadPatternSource; -//# sourceMappingURL=ActorRdfResolveQuadPatternSource.js.map - -/***/ }), - -/***/ "./node_modules/@comunica/bus-rdf-serialize/index.js": -/*!***********************************************************!*\ - !*** ./node_modules/@comunica/bus-rdf-serialize/index.js ***! - \***********************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __exportStar = (this && this.__exportStar) || function(m, exports) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -__exportStar(__webpack_require__(/*! ./lib/ActorRdfSerialize */ "./node_modules/@comunica/bus-rdf-serialize/lib/ActorRdfSerialize.js"), exports); -__exportStar(__webpack_require__(/*! ./lib/ActorRdfSerializeFixedMediaTypes */ "./node_modules/@comunica/bus-rdf-serialize/lib/ActorRdfSerializeFixedMediaTypes.js"), exports); -//# sourceMappingURL=index.js.map - -/***/ }), - -/***/ "./node_modules/@comunica/bus-rdf-serialize/lib/ActorRdfSerialize.js": -/*!***************************************************************************!*\ - !*** ./node_modules/@comunica/bus-rdf-serialize/lib/ActorRdfSerialize.js ***! - \***************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ActorRdfSerialize = void 0; -const actor_abstract_mediatyped_1 = __webpack_require__(/*! @comunica/actor-abstract-mediatyped */ "./node_modules/@comunica/actor-abstract-mediatyped/index.js"); -/** - * A comunica actor for RDF parse events. - * - * Actor types: - * * Input: IActionRdfSerialize: A serialize input or a media type input. - * * Test: - * * Output: IActorRdfSerializeOutput: The serialized quads. - * - * @see IActionRdfSerialize - * @see IActorRdfSerializeOutput - */ -class ActorRdfSerialize extends actor_abstract_mediatyped_1.ActorAbstractMediaTyped { - constructor(args) { - super(args); + else { + for (let key of Object.keys(thingy)) { + if (Array.isArray(thingy[key])) + thingy[key] = thingy[key].map((x) => recurseGraph(x, graph, replacement)); + else if (typeVals.indexOf(thingy[key].type) >= 0) // can't do instanceof on an interface + thingy[key] = recurseGraph(thingy[key], graph, replacement); + else if (replacement && isVariable(thingy[key]) && thingy[key].equals(graph)) + thingy[key] = replacement; + } } + return thingy; } -exports.ActorRdfSerialize = ActorRdfSerialize; -//# sourceMappingURL=ActorRdfSerialize.js.map - -/***/ }), - -/***/ "./node_modules/@comunica/bus-rdf-serialize/lib/ActorRdfSerializeFixedMediaTypes.js": -/*!******************************************************************************************!*\ - !*** ./node_modules/@comunica/bus-rdf-serialize/lib/ActorRdfSerializeFixedMediaTypes.js ***! - \******************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ActorRdfSerializeFixedMediaTypes = void 0; -const actor_abstract_mediatyped_1 = __webpack_require__(/*! @comunica/actor-abstract-mediatyped */ "./node_modules/@comunica/actor-abstract-mediatyped/index.js"); -/** - * A base actor for listening to RDF serialize events that has fixed media types. - * - * Actor types: - * * Input: IActionRdfSerializeOrMediaType: A serialize input or a media type input. - * * Test: - * * Output: IActorRdfSerializeOutputOrMediaType: The serialized quads. - * - * @see IActionInit - */ -class ActorRdfSerializeFixedMediaTypes extends actor_abstract_mediatyped_1.ActorAbstractMediaTypedFixed { - constructor(args) { - super(args); +function accumulateGroupGraphPattern(G, E) { + if (E.type === 'optional') { + // optional input needs to be interpreted as a group + let A = translateGroupGraphPattern({ type: 'group', patterns: E.patterns }); + if (A.type === types.FILTER) { + let filter = A; + G = factory.createLeftJoin(G, filter.input, filter.expression); + } + else + G = factory.createLeftJoin(G, A); } - async testHandleChecked(action) { - return true; + else if (E.type === 'minus') { + // minus input needs to be interpreted as a group + let A = translateGroupGraphPattern({ type: 'group', patterns: E.patterns }); + G = factory.createMinus(G, A); + } + else if (E.type === 'bind') + G = factory.createExtend(G, E.variable, translateExpression(E.expression)); + else if (E.type === 'service') { + // transform to group so childnodes get parsed correctly + E.type = 'group'; + let A = factory.createService(translateGroupGraphPattern(E), E.name, E.silent); + G = simplifiedJoin(G, A); + } + else { + let A = translateGroupGraphPattern(E); + G = simplifiedJoin(G, A); } + return G; } -exports.ActorRdfSerializeFixedMediaTypes = ActorRdfSerializeFixedMediaTypes; -//# sourceMappingURL=ActorRdfSerializeFixedMediaTypes.js.map - -/***/ }), - -/***/ "./node_modules/@comunica/bus-rdf-update-hypermedia/index.js": -/*!*******************************************************************!*\ - !*** ./node_modules/@comunica/bus-rdf-update-hypermedia/index.js ***! - \*******************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __exportStar = (this && this.__exportStar) || function(m, exports) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -__exportStar(__webpack_require__(/*! ./lib/ActorRdfUpdateHypermedia */ "./node_modules/@comunica/bus-rdf-update-hypermedia/lib/ActorRdfUpdateHypermedia.js"), exports); -//# sourceMappingURL=index.js.map - -/***/ }), - -/***/ "./node_modules/@comunica/bus-rdf-update-hypermedia/lib/ActorRdfUpdateHypermedia.js": -/*!******************************************************************************************!*\ - !*** ./node_modules/@comunica/bus-rdf-update-hypermedia/lib/ActorRdfUpdateHypermedia.js ***! - \******************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ActorRdfUpdateHypermedia = void 0; -const core_1 = __webpack_require__(/*! @comunica/core */ "./node_modules/@comunica/core/index.js"); -/** - * A comunica actor for rdf-update-hypermedia events. - * - * Actor types: - * * Input: IActionRdfUpdateHypermedia: The metadata in the document. - * * Test: - * * Output: IActorRdfUpdateHypermediaOutput: An RDF destination. - * - * @see IActionRdfUpdateHypermedia - * @see IActorRdfUpdateHypermediaOutput - */ -class ActorRdfUpdateHypermedia extends core_1.Actor { - constructor(args, destinationType) { - super(args); - this.destinationType = destinationType; +function simplifiedJoin(G, A) { + // Note: this is more simplification than requested in 18.2.2.8, but no reason not to do it. + if (G.type === types.BGP && A.type === types.BGP) + G = factory.createBgp([].concat(G.patterns, A.patterns)); + // 18.2.2.8 (simplification) + else if (G.type === types.BGP && G.patterns.length === 0) + G = A; + else if (A.type === types.BGP && A.patterns.length === 0) { } // do nothing + else + G = factory.createJoin(G, A); + return G; +} +function translateInlineData(values) { + let variables = (values.values.length === 0 ? [] : Object.keys(values.values[0])).map(factory.createTerm.bind(factory)); + let bindings = values.values.map((binding) => { + let keys = Object.keys(binding); + keys = keys.filter(k => binding[k] !== undefined); + let map = {}; + for (let key of keys) + map[key] = binding[key]; + return map; + }); + return factory.createValues(variables, bindings); +} +// --------------------------------------- AGGREGATES +function translateAggregates(query, res, variables) { + // 18.2.4.1 + let E = []; + let A = {}; + query.variables = mapAggregates(query.variables, A); + query.having = mapAggregates(query.having, A); + query.order = mapAggregates(query.order, A); + // if there are any aggregates or if we have a groupBy (both result in a GROUP) + if (query.group || Object.keys(A).length > 0) { + let aggregates = Object.keys(A).map(v => translateBoundAggregate(A[v], factory.createTerm(v))); + let vars = []; + if (query.group) { + for (let e of query.group) { + if (e.expression.type) { + const v = e.variable ? e.variable : generateFreshVar(); + res = factory.createExtend(res, v, translateExpression(e.expression)); + vars.push(v); + } + else + vars.push(e.expression); // this will always be a var, otherwise sparql would be invalid + } + } + res = factory.createGroup(res, vars, aggregates); } - async test(action) { - if (action.forceDestinationType && this.destinationType !== action.forceDestinationType) { - throw new Error(`Actor ${this.name} is not able to handle destination type ${action.forceDestinationType}.`); + // 18.2.4.2 + if (query.having) + for (let filter of query.having) + res = factory.createFilter(res, translateExpression(filter)); + // 18.2.4.3 + if (query.values) + res = factory.createJoin(res, translateInlineData(query)); + // 18.2.4.4 + let PV = new Set(); + if (query.queryType === 'SELECT' || query.queryType === 'DESCRIBE') { + if (query.variables.some((e) => e && util_1.default.isWildcard(e))) + PV = variables; + else { + for (let v of query.variables) { + // can have non-variables with DESCRIBE + if (isVariable(v) || !v.variable) + PV.add(v); + else if (v.variable) // ... AS ?x + { + PV.add(v.variable); + E.push(v); + } + } } - return this.testMetadata(action); } + // TODO: Jena simplifies by having a list of extends + for (let v of E) + res = factory.createExtend(res, v.variable, translateExpression(v.expression)); + // 18.2.5 + // not using toList and toMultiset + // 18.2.5.1 + if (query.order) + res = factory.createOrderBy(res, query.order.map((exp) => { + let result = translateExpression(exp.expression); + if (exp.descending) + result = factory.createOperatorExpression(types.DESC, [result]); // TODO: should this really be an expression? + return result; + })); + // 18.2.5.2 + // construct does not need a project (select, ask and describe do) + if (query.queryType === 'SELECT') + res = factory.createProject(res, Array.from(PV)); + // 18.2.5.3 + if (query.distinct) + res = factory.createDistinct(res); + // 18.2.5.4 + if (query.reduced) + res = factory.createReduced(res); + // NEW: support for ask/construct/describe queries + if (query.queryType === 'CONSTRUCT') + res = factory.createConstruct(res, query.template.map(translateQuad)); + else if (query.queryType === 'ASK') + res = factory.createAsk(res); + else if (query.queryType === 'DESCRIBE') + res = factory.createDescribe(res, Array.from(PV)); + // Slicing needs to happen after construct/describe + // 18.2.5.5 + if (query.offset || query.limit) + res = factory.createSlice(res, query.offset, query.limit); + if (query.from) + res = factory.createFrom(res, query.from.default, query.from.named); + return res; } -exports.ActorRdfUpdateHypermedia = ActorRdfUpdateHypermedia; -//# sourceMappingURL=ActorRdfUpdateHypermedia.js.map - -/***/ }), - -/***/ "./node_modules/@comunica/bus-rdf-update-quads/index.js": -/*!**************************************************************!*\ - !*** ./node_modules/@comunica/bus-rdf-update-quads/index.js ***! - \**************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __exportStar = (this && this.__exportStar) || function(m, exports) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -__exportStar(__webpack_require__(/*! ./lib/ActorRdfUpdateQuads */ "./node_modules/@comunica/bus-rdf-update-quads/lib/ActorRdfUpdateQuads.js"), exports); -__exportStar(__webpack_require__(/*! ./lib/ActorRdfUpdateQuadsDestination */ "./node_modules/@comunica/bus-rdf-update-quads/lib/ActorRdfUpdateQuadsDestination.js"), exports); -__exportStar(__webpack_require__(/*! ./lib/IQuadDestination */ "./node_modules/@comunica/bus-rdf-update-quads/lib/IQuadDestination.js"), exports); -//# sourceMappingURL=index.js.map - -/***/ }), - -/***/ "./node_modules/@comunica/bus-rdf-update-quads/lib/ActorRdfUpdateQuads.js": -/*!********************************************************************************!*\ - !*** ./node_modules/@comunica/bus-rdf-update-quads/lib/ActorRdfUpdateQuads.js ***! - \********************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ActorRdfUpdateQuads = exports.getDataDestinationContext = exports.getDataDestinationValue = exports.getDataDestinationType = exports.isDataDestinationRawType = exports.KEY_CONTEXT_DESTINATION = void 0; -const context_entries_1 = __webpack_require__(/*! @comunica/context-entries */ "./node_modules/@comunica/context-entries/index.js"); -const core_1 = __webpack_require__(/*! @comunica/core */ "./node_modules/@comunica/core/index.js"); -/** - * @type {string} Context entry for a data destination. - * @value {IDataDestination} A destination. - * @deprecated Import this constant from @comunica/context-entries. - */ -exports.KEY_CONTEXT_DESTINATION = context_entries_1.KeysRdfUpdateQuads.destination; -function isDataDestinationRawType(dataDestination) { - return typeof dataDestination === 'string' || 'remove' in dataDestination; -} -exports.isDataDestinationRawType = isDataDestinationRawType; -function getDataDestinationType(dataDestination) { - if (typeof dataDestination === 'string') { - return ''; +// rewrites some of the input sparql object to make use of aggregate variables +function mapAggregates(thingy, aggregates) { + if (!thingy) + return thingy; + if (thingy.type === 'aggregate') { + let found = false; + let v; + for (let key of Object.keys(aggregates)) { + if (equal(aggregates[key], thingy)) { + v = factory.createTerm(key); + found = true; + break; + } + } + if (!found) { + v = generateFreshVar(); + aggregates[rdf_string_1.termToString(v)] = thingy; + } + return v; } - return 'remove' in dataDestination ? 'rdfjsStore' : dataDestination.type; + // non-aggregate expression + if (thingy.expression) + thingy.expression = mapAggregates(thingy.expression, aggregates); + else if (thingy.args) + mapAggregates(thingy.args, aggregates); + else if (Array.isArray(thingy)) + thingy.forEach((subthingy, idx) => thingy[idx] = mapAggregates(subthingy, aggregates)); + return thingy; } -exports.getDataDestinationType = getDataDestinationType; -function getDataDestinationValue(dataDestination) { - return isDataDestinationRawType(dataDestination) ? dataDestination : dataDestination.value; +function translateBoundAggregate(thingy, v) { + if (thingy.type !== 'aggregate' || !thingy.aggregation) + throw new Error('Unexpected input: ' + JSON.stringify(thingy)); + let A = translateExpression(thingy); + A.variable = v; + return A; } -exports.getDataDestinationValue = getDataDestinationValue; -function getDataDestinationContext(dataDestination, context) { - if (typeof dataDestination === 'string' || 'remove' in dataDestination || !dataDestination.context) { - return context; +function translateUpdate(thingy) { + if (thingy.updates.length === 1) + return translateSingleUpdate(thingy.updates[0]); + return factory.createCompositeUpdate(thingy.updates.map(translateSingleUpdate)); +} +function translateSingleUpdate(thingy) { + if (thingy.updateType === 'insertdelete' || thingy.updateType === 'deletewhere' || thingy.updateType === 'delete' || thingy.updateType === 'insert') + return translateInsertDelete(thingy); + if (thingy.type === 'load') + return translateUpdateGraphLoad(thingy); + if (thingy.type === 'clear' || thingy.type === 'create' || thingy.type === 'drop') + return translateUpdateGraph(thingy); + if (thingy.type === 'add' || thingy.type === 'copy' || thingy.type === 'move') + return translateUpdateGraphShortcut(thingy); + throw new Error(`Unknown update type ${thingy.updateType}`); +} +function translateInsertDelete(thingy) { + if (!useQuads) + throw new Error('INSERT/DELETE operations are only supported with quads option enabled'); + let deleteTriples = []; + let insertTriples = []; + let where; + if (thingy.delete) + deleteTriples = util_1.default.flatten(thingy.delete.map(input => translateUpdateTriplesBlock(input, thingy.graph))); + if (thingy.insert) + insertTriples = util_1.default.flatten(thingy.insert.map(input => translateUpdateTriplesBlock(input, thingy.graph))); + if (thingy.where && thingy.where.length > 0) { + where = translateGroupGraphPattern({ type: 'group', patterns: thingy.where }); + if (thingy.using) + where = factory.createFrom(where, thingy.using.default, thingy.using.named); + else if (thingy.graph) + // This is equivalent + where = recurseGraph(where, thingy.graph); } - return context.merge(dataDestination.context); + else if (thingy.updateType === 'deletewhere' && deleteTriples.length > 0) { + where = factory.createBgp(deleteTriples); + } + return factory.createDeleteInsert(deleteTriples.length > 0 ? deleteTriples : undefined, insertTriples.length > 0 ? insertTriples : undefined, where); } -exports.getDataDestinationContext = getDataDestinationContext; -/** - * A comunica actor for rdf-update-quads events. - * - * Actor types: - * * Input: IActionRdfUpdateQuads: Quad insertion and deletion streams. - * * Test: - * * Output: IActorRdfUpdateQuadsOutput: A promise resolving when the update operation is done. - * - * @see IActionRdfUpdateQuads - * @see IActorRdfUpdateQuadsOutput - */ -class ActorRdfUpdateQuads extends core_1.Actor { - constructor(args) { - super(args); +// UPDATE parsing will always return quads and have no GRAPH elements +function translateUpdateTriplesBlock(thingy, graph) { + let currentGraph = graph; + if (thingy.type === 'graph') + currentGraph = thingy.name; + let currentTriples = thingy.triples; + if (currentGraph) + currentTriples = currentTriples.map(triple => Object.assign(triple, { graph: currentGraph })); + return currentTriples.map(translateQuad); +} +function translateUpdateGraph(thingy) { + let source; + if (thingy.graph.all) + source = 'ALL'; + else if (thingy.graph.default) + source = 'DEFAULT'; + else if (thingy.graph.named) + source = 'NAMED'; + else + source = thingy.graph.name; + switch (thingy.type) { + case 'clear': return factory.createClear(source, thingy.silent); + case 'create': return factory.createCreate(source, thingy.silent); + case 'drop': return factory.createDrop(source, thingy.silent); } - /** - * Get the destination from the given context. - * @param {ActionContext} context An optional context. - * @return {IDataDestination} The destination or undefined. - */ - getContextDestination(context) { - return context ? context.get(exports.KEY_CONTEXT_DESTINATION) : undefined; +} +function translateUpdateGraphLoad(thingy) { + return factory.createLoad(thingy.source, thingy.destination, thingy.silent); +} +function translateUpdateGraphShortcut(thingy) { + const source = thingy.source.default ? 'DEFAULT' : thingy.source.name; + const destination = thingy.destination.default ? 'DEFAULT' : thingy.destination.name; + switch (thingy.type) { + case 'copy': return factory.createCopy(source, destination, thingy.silent); + case 'move': return factory.createMove(source, destination, thingy.silent); + case 'add': return factory.createAdd(source, destination, thingy.silent); } - /** - * Get the destination's raw URL value from the given context. - * @param {IDataDestination} destination A destination. - * @return {string} The URL or undefined. - */ - getContextDestinationUrl(destination) { - if (destination) { - let fileUrl = getDataDestinationValue(destination); - if (typeof fileUrl === 'string') { - // Remove hashes from source - const hashPosition = fileUrl.indexOf('#'); - if (hashPosition >= 0) { - fileUrl = fileUrl.slice(0, hashPosition); - } - return fileUrl; +} +function translateBlankNodesToVariables(res, variables) { + const blankToVariableMapping = {}; + const variablesRaw = Array.from(variables).reduce((acc, variable) => { + acc[variable.value] = true; + return acc; + }, {}); + return util_1.default.mapOperation(res, { + 'deleteinsert': (op) => { + // Only relevant for INSERT operations as others should never contain blank nodes + return { result: op, recurse: false }; + }, + 'path': (op, factory) => { + return { + result: factory.createPath(blankToVariable(op.subject), op.predicate, blankToVariable(op.object), blankToVariable(op.graph)), + recurse: false, + }; + }, + 'pattern': (op, factory) => { + return { + result: factory.createPattern(blankToVariable(op.subject), blankToVariable(op.predicate), blankToVariable(op.object), blankToVariable(op.graph)), + recurse: false, + }; + }, + 'construct': (op) => { + // Blank nodes in CONSTRUCT templates must be maintained + return { + result: factory.createConstruct(translateBlankNodesToVariables(op.input, variables), op.template), + recurse: false, + }; + }, + }); + function blankToVariable(term) { + if (term.termType === 'BlankNode') { + let variable = blankToVariableMapping[term.value]; + if (!variable) { + variable = util_1.default.createUniqueVariable(term.value, variablesRaw, factory.dataFactory); + variablesRaw[variable.value] = true; + blankToVariableMapping[term.value] = variable; } + return variable; } + return term; } } -exports.ActorRdfUpdateQuads = ActorRdfUpdateQuads; -//# sourceMappingURL=ActorRdfUpdateQuads.js.map +//# sourceMappingURL=sparqlAlgebra.js.map /***/ }), -/***/ "./node_modules/@comunica/bus-rdf-update-quads/lib/ActorRdfUpdateQuadsDestination.js": -/*!*******************************************************************************************!*\ - !*** ./node_modules/@comunica/bus-rdf-update-quads/lib/ActorRdfUpdateQuadsDestination.js ***! - \*******************************************************************************************/ +/***/ "./node_modules/@comunica/bus-query-operation/node_modules/sparqlalgebrajs/lib/util.js": +/*!*********************************************************************************************!*\ + !*** ./node_modules/@comunica/bus-query-operation/node_modules/sparqlalgebrajs/lib/util.js ***! + \*********************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -exports.ActorRdfUpdateQuadsDestination = void 0; -const ActorRdfUpdateQuads_1 = __webpack_require__(/*! ./ActorRdfUpdateQuads */ "./node_modules/@comunica/bus-rdf-update-quads/lib/ActorRdfUpdateQuads.js"); -/** - * A base implementation for rdf-update-quads events - * that wraps around an {@link IQuadDestination}. - * - * @see IQuadDestination - */ -class ActorRdfUpdateQuadsDestination extends ActorRdfUpdateQuads_1.ActorRdfUpdateQuads { - async test(action) { - return true; - } - async run(action) { - const destination = await this.getDestination(action.context); - return await this.getOutput(destination, action, action.context); - } +const algebra_1 = __webpack_require__(/*! ./algebra */ "./node_modules/@comunica/bus-query-operation/node_modules/sparqlalgebrajs/lib/algebra.js"); +const factory_1 = __webpack_require__(/*! ./factory */ "./node_modules/@comunica/bus-query-operation/node_modules/sparqlalgebrajs/lib/factory.js"); +class Util { /** - * Get the output of the given action on a destination. - * @param {IQuadDestination} destination A quad destination, possibly lazy. - * @param {IActionRdfUpdateQuads} action The action. - * @param {ActionContext} context Optional context data. + * Flattens an array of arrays to an array. + * @param arr - Array of arrays */ - async getOutput(destination, action, context) { - const updateResult = Promise.all([ - action.quadStreamInsert ? destination.insert(action.quadStreamInsert) : Promise.resolve(), - action.quadStreamDelete ? destination.delete(action.quadStreamDelete) : Promise.resolve(), - action.deleteGraphs ? - destination.deleteGraphs(action.deleteGraphs.graphs, action.deleteGraphs.requireExistence, action.deleteGraphs.dropGraphs) : - Promise.resolve(), - action.createGraphs ? - destination.createGraphs(action.createGraphs.graphs, action.createGraphs.requireNonExistence) : - Promise.resolve(), - ]).then(() => { - // Return void + static flatten(arr) { + return Array.prototype.concat(...arr).filter(x => x); + } + /** + * Detects all in-scope variables. + * In practice this means iterating through the entire algebra tree, finding all variables, + * and stopping when a project function is found. + * @param {Operation} op - Input algebra tree. + * @returns {Variable[]} - List of unique in-scope variables. + */ + static inScopeVariables(op) { + const variables = []; + function addVariable(v) { + if (!variables.find(v2 => v.value === v2.value)) + variables.push(v); + } + function recurseTerm(quad) { + if (quad.subject.termType === 'Variable') + addVariable(quad.subject); + if (quad.predicate.termType === 'Variable') + addVariable(quad.predicate); + if (quad.object.termType === 'Variable') + addVariable(quad.object); + if (quad.graph.termType === 'Variable') + addVariable(quad.graph); + if (quad.subject.termType === 'Quad') + recurseTerm(quad.subject); + if (quad.predicate.termType === 'Quad') + recurseTerm(quad.predicate); + if (quad.object.termType === 'Quad') + recurseTerm(quad.object); + if (quad.graph.termType === 'Quad') + recurseTerm(quad.graph); + } + // https://www.w3.org/TR/sparql11-query/#variableScope + Util.recurseOperation(op, { + [algebra_1.types.EXPRESSION]: (op) => { + let expr = op; + if (expr.expressionType === 'aggregate' && expr.variable) { + let agg = expr; + addVariable(agg.variable); + } + return true; + }, + [algebra_1.types.EXTEND]: (op) => { + let extend = op; + addVariable(extend.variable); + return true; + }, + [algebra_1.types.GRAPH]: (op) => { + let graph = op; + if (graph.name.termType === 'Variable') + addVariable(graph.name); + return true; + }, + [algebra_1.types.GROUP]: (op) => { + let group = op; + group.variables.forEach(addVariable); + return true; + }, + [algebra_1.types.PATH]: (op) => { + let path = op; + if (path.subject.termType === 'Variable') + addVariable(path.subject); + if (path.object.termType === 'Variable') + addVariable(path.object); + if (path.graph.termType === 'Variable') + addVariable(path.graph); + if (path.subject.termType === 'Quad') + recurseTerm(path.subject); + if (path.object.termType === 'Quad') + recurseTerm(path.object); + if (path.graph.termType === 'Quad') + recurseTerm(path.graph); + return true; + }, + [algebra_1.types.PATTERN]: (op) => { + let pattern = op; + recurseTerm(pattern); + return true; + }, + [algebra_1.types.PROJECT]: (op) => { + let project = op; + project.variables.forEach(addVariable); + return false; + }, + [algebra_1.types.SERVICE]: (op) => { + let service = op; + if (service.name.termType === 'Variable') + addVariable(service.name); + return true; + }, + [algebra_1.types.VALUES]: (op) => { + let values = op; + values.variables.forEach(addVariable); + return true; + }, }); - return { updateResult }; + return variables; + } + /** + * Recurses through the given algebra tree + * A map of callback functions can be provided for individual Operation types to gather data. + * The return value of those callbacks should indicate whether recursion should be applied or not. + * Making modifications will change the original input object. + * @param {Operation} op - The Operation to recurse on. + * @param { [type: string]: (op: Operation) => boolean } callbacks - A map of required callback Operations. + */ + static recurseOperation(op, callbacks) { + let result = op; + let doRecursion = true; + if (callbacks[op.type]) + doRecursion = callbacks[op.type](op); + if (!doRecursion) + return; + let recurseOp = (op) => Util.recurseOperation(op, callbacks); + switch (result.type) { + case algebra_1.types.ALT: + const alt = result; + recurseOp(alt.left); + recurseOp(alt.right); + break; + case algebra_1.types.ASK: + const ask = result; + recurseOp(ask.input); + break; + case algebra_1.types.BGP: + const bgp = result; + bgp.patterns.forEach(recurseOp); + break; + case algebra_1.types.CONSTRUCT: + const construct = result; + recurseOp(construct.input); + construct.template.map(recurseOp); + break; + case algebra_1.types.DESCRIBE: + const describe = result; + recurseOp(describe.input); + break; + case algebra_1.types.DISTINCT: + const distinct = result; + recurseOp(distinct.input); + break; + case algebra_1.types.EXPRESSION: + const expr = result; + if (expr.expressionType === algebra_1.expressionTypes.EXISTENCE) { + const exist = expr; + recurseOp(exist.input); + } + break; + case algebra_1.types.EXTEND: + const extend = result; + recurseOp(extend.input); + recurseOp(extend.expression); + break; + case algebra_1.types.FILTER: + const filter = result; + recurseOp(filter.input); + recurseOp(filter.expression); + break; + case algebra_1.types.FROM: + const from = result; + recurseOp(from.input); + break; + case algebra_1.types.GRAPH: + const graph = result; + recurseOp(graph.input); + break; + case algebra_1.types.GROUP: + const group = result; + recurseOp(group.input); + group.aggregates.forEach(recurseOp); + break; + case algebra_1.types.INV: + const inv = result; + recurseOp(inv.path); + break; + case algebra_1.types.JOIN: + const join = result; + recurseOp(join.left); + recurseOp(join.right); + break; + case algebra_1.types.LEFT_JOIN: + const leftJoin = result; + recurseOp(leftJoin.left); + recurseOp(leftJoin.right); + if (leftJoin.expression) + recurseOp(leftJoin.expression); + break; + case algebra_1.types.LINK: + break; + case algebra_1.types.MINUS: + const minus = result; + recurseOp(minus.left); + recurseOp(minus.right); + break; + case algebra_1.types.NPS: + break; + case algebra_1.types.ONE_OR_MORE_PATH: + const oom = result; + recurseOp(oom.path); + break; + case algebra_1.types.ORDER_BY: + const order = result; + recurseOp(order.input); + order.expressions.forEach(recurseOp); + break; + case algebra_1.types.PATH: + const path = result; + recurseOp(path.predicate); + break; + case algebra_1.types.PATTERN: + break; + case algebra_1.types.PROJECT: + const project = result; + recurseOp(project.input); + break; + case algebra_1.types.REDUCED: + const reduced = result; + recurseOp(reduced.input); + break; + case algebra_1.types.SEQ: + const seq = result; + recurseOp(seq.left); + recurseOp(seq.right); + break; + case algebra_1.types.SERVICE: + const service = result; + recurseOp(service.input); + break; + case algebra_1.types.SLICE: + const slice = result; + recurseOp(slice.input); + break; + case algebra_1.types.UNION: + const union = result; + recurseOp(union.left); + recurseOp(union.right); + break; + case algebra_1.types.VALUES: + break; + case algebra_1.types.ZERO_OR_MORE_PATH: + const zom = result; + recurseOp(zom.path); + break; + case algebra_1.types.ZERO_OR_ONE_PATH: + const zoo = result; + recurseOp(zoo.path); + break; + // UPDATE operations + case algebra_1.types.COMPOSITE_UPDATE: + const cu = result; + cu.updates.forEach(update => recurseOp(update)); + break; + case algebra_1.types.DELETE_INSERT: + const di = result; + if (di.delete) + di.delete.forEach(pattern => recurseOp(pattern)); + if (di.insert) + di.insert.forEach(pattern => recurseOp(pattern)); + if (di.where) + recurseOp(di.where); + break; + // all of these only have graph IDs as values + case algebra_1.types.LOAD: break; + case algebra_1.types.CLEAR: break; + case algebra_1.types.CREATE: break; + case algebra_1.types.DROP: break; + case algebra_1.types.ADD: break; + case algebra_1.types.MOVE: break; + case algebra_1.types.COPY: break; + default: throw new Error('Unknown Operation type ' + result.type); + } + } + /** + * Creates a deep copy of the given Operation. + * Creates shallow copies of the non-Operation values. + * A map of callback functions can be provided for individual Operation types + * to specifically modify the given objects before triggering recursion. + * The return value of those callbacks should indicate whether recursion should be applied to this returned object or not. + * @param {Operation} op - The Operation to recurse on. + * @param { [type: string]: (op: Operation, factory: Factory) => RecurseResult } callbacks - A map of required callback Operations. + * @param {Factory} factory - Factory used to create new Operations. Will use default factory if none is provided. + * @returns {Operation} - The copied result. + */ + static mapOperation(op, callbacks, factory) { + let result = op; + let doRecursion = true; + factory = factory || new factory_1.default(); + if (callbacks[op.type]) + ({ result, recurse: doRecursion } = callbacks[op.type](op, factory)); + if (!doRecursion) + return result; + let mapOp = (op) => Util.mapOperation(op, callbacks, factory); + switch (result.type) { + case algebra_1.types.ALT: + const alt = result; + return factory.createAlt(mapOp(alt.left), mapOp(alt.right)); + case algebra_1.types.ASK: + const ask = result; + return factory.createAsk(mapOp(ask.input)); + case algebra_1.types.BGP: + const bgp = result; + return factory.createBgp(bgp.patterns.map(mapOp)); + case algebra_1.types.CONSTRUCT: + const construct = result; + return factory.createConstruct(mapOp(construct.input), construct.template.map(mapOp)); + case algebra_1.types.DESCRIBE: + const describe = result; + return factory.createDescribe(mapOp(describe.input), describe.terms); + case algebra_1.types.DISTINCT: + const distinct = result; + return factory.createDistinct(mapOp(distinct.input)); + case algebra_1.types.EXPRESSION: + const expr = result; + return Util.mapExpression(expr, callbacks, factory); + case algebra_1.types.EXTEND: + const extend = result; + return factory.createExtend(mapOp(extend.input), extend.variable, mapOp(extend.expression)); + case algebra_1.types.FILTER: + const filter = result; + return factory.createFilter(mapOp(filter.input), mapOp(filter.expression)); + case algebra_1.types.FROM: + const from = result; + return factory.createFrom(mapOp(from.input), [].concat(from.default), [].concat(from.named)); + case algebra_1.types.GRAPH: + const graph = result; + return factory.createGraph(mapOp(graph.input), graph.name); + case algebra_1.types.GROUP: + const group = result; + return factory.createGroup(mapOp(group.input), [].concat(group.variables), group.aggregates.map(mapOp)); + case algebra_1.types.INV: + const inv = result; + return factory.createInv(mapOp(inv.path)); + case algebra_1.types.JOIN: + const join = result; + return factory.createJoin(mapOp(join.left), mapOp(join.right)); + case algebra_1.types.LEFT_JOIN: + const leftJoin = result; + return factory.createLeftJoin(mapOp(leftJoin.left), mapOp(leftJoin.right), leftJoin.expression ? mapOp(leftJoin.expression) : undefined); + case algebra_1.types.LINK: + const link = result; + return factory.createLink(link.iri); + case algebra_1.types.MINUS: + const minus = result; + return factory.createMinus(mapOp(minus.left), mapOp(minus.right)); + case algebra_1.types.NPS: + const nps = result; + return factory.createNps([].concat(nps.iris)); + case algebra_1.types.ONE_OR_MORE_PATH: + const oom = result; + return factory.createOneOrMorePath(mapOp(oom.path)); + case algebra_1.types.ORDER_BY: + const order = result; + return factory.createOrderBy(mapOp(order.input), order.expressions.map(mapOp)); + case algebra_1.types.PATH: + const path = result; + return factory.createPath(path.subject, mapOp(path.predicate), path.object, path.graph); + case algebra_1.types.PATTERN: + const pattern = result; + return factory.createPattern(pattern.subject, pattern.predicate, pattern.object, pattern.graph); + case algebra_1.types.PROJECT: + const project = result; + return factory.createProject(mapOp(project.input), [].concat(project.variables)); + case algebra_1.types.REDUCED: + const reduced = result; + return factory.createReduced(mapOp(reduced.input)); + case algebra_1.types.SEQ: + const seq = result; + return factory.createSeq(mapOp(seq.left), mapOp(seq.right)); + case algebra_1.types.SERVICE: + const service = result; + return factory.createService(mapOp(service.input), service.name, service.silent); + case algebra_1.types.SLICE: + const slice = result; + return factory.createSlice(mapOp(slice.input), slice.start, slice.length); + case algebra_1.types.UNION: + const union = result; + return factory.createUnion(mapOp(union.left), mapOp(union.right)); + case algebra_1.types.VALUES: + const values = result; + return factory.createValues([].concat(values.variables), values.bindings.map(b => Object.assign({}, b))); + case algebra_1.types.ZERO_OR_MORE_PATH: + const zom = result; + return factory.createZeroOrMorePath(mapOp(zom.path)); + case algebra_1.types.ZERO_OR_ONE_PATH: + const zoo = result; + return factory.createZeroOrOnePath(mapOp(zoo.path)); + // UPDATE operations + case algebra_1.types.COMPOSITE_UPDATE: + const cu = result; + return factory.createCompositeUpdate(cu.updates.map(mapOp)); + case algebra_1.types.DELETE_INSERT: + const di = result; + return factory.createDeleteInsert(di.delete ? di.delete.map(mapOp) : undefined, di.insert ? di.insert.map(mapOp) : undefined, di.where ? mapOp(di.where) : undefined); + case algebra_1.types.LOAD: + const load = result; + return factory.createLoad(load.source, load.destination, load.silent); + case algebra_1.types.CLEAR: + const clear = result; + return factory.createClear(clear.source, clear.silent); + case algebra_1.types.CREATE: + const create = result; + return factory.createCreate(create.source, create.silent); + case algebra_1.types.DROP: + const drop = result; + return factory.createDrop(drop.source, drop.silent); + case algebra_1.types.ADD: + const add = result; + return factory.createAdd(add.source, add.destination); + case algebra_1.types.MOVE: + const move = result; + return factory.createMove(move.source, move.destination); + case algebra_1.types.COPY: + const copy = result; + return factory.createCopy(copy.source, copy.destination); + default: throw new Error('Unknown Operation type ' + result); + } + } + /** + * Similar to the {@link mapOperation} function but specifically for expressions. + * Both functions call each other while copying. + * Should not be called directly since it does not execute the callbacks, these happen in {@link mapOperation}. + * @param {Expression} expr - The Operation to recurse on. + * @param { [type: string]: (op: Operation, factory: Factory) => RecurseResult } callbacks - A map of required callback Operations. + * @param {Factory} factory - Factory used to create new Operations. Will use default factory if none is provided. + * @returns {Operation} - The copied result. + */ + static mapExpression(expr, callbacks, factory) { + let recurse = (op) => Util.mapOperation(op, callbacks, factory); + switch (expr.expressionType) { + case algebra_1.expressionTypes.AGGREGATE: + if (expr.variable) { + const bound = expr; + return factory.createBoundAggregate(bound.variable, bound.aggregator, recurse(bound.expression), bound.distinct, bound.separator); + } + const aggregate = expr; + return factory.createAggregateExpression(aggregate.aggregator, recurse(aggregate.expression), aggregate.distinct, aggregate.separator); + case algebra_1.expressionTypes.EXISTENCE: + const exist = expr; + return factory.createExistenceExpression(exist.not, recurse(exist.input)); + case algebra_1.expressionTypes.NAMED: + const named = expr; + return factory.createNamedExpression(named.name, named.args.map(recurse)); + case algebra_1.expressionTypes.OPERATOR: + const op = expr; + return factory.createOperatorExpression(op.operator, op.args.map(recurse)); + case algebra_1.expressionTypes.TERM: + const term = expr; + return factory.createTermExpression(term.term); + case algebra_1.expressionTypes.WILDCARD: + return factory.createWildcardExpression(); + default: throw new Error('Unknown Expression type ' + expr.expressionType); + } + } + static createUniqueVariable(label, variables, dataFactory) { + let counter = 0; + let labelLoop = label; + while (variables[labelLoop]) { + labelLoop = label + counter++; + } + return dataFactory.variable(labelLoop); + } + // separate terms from wildcard since we handle them differently + static isTerm(term) { + return term.termType !== undefined && term.termType !== 'Quad' && term.termType !== 'Wildcard'; + } + static isWildcard(term) { + return term.termType === 'Wildcard'; } } -exports.ActorRdfUpdateQuadsDestination = ActorRdfUpdateQuadsDestination; -//# sourceMappingURL=ActorRdfUpdateQuadsDestination.js.map - -/***/ }), - -/***/ "./node_modules/@comunica/bus-rdf-update-quads/lib/IQuadDestination.js": -/*!*****************************************************************************!*\ - !*** ./node_modules/@comunica/bus-rdf-update-quads/lib/IQuadDestination.js ***! - \*****************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=IQuadDestination.js.map +exports.default = Util; +//# sourceMappingURL=util.js.map /***/ }), -/***/ "./node_modules/@comunica/bus-sparql-parse/index.js": -/*!**********************************************************!*\ - !*** ./node_modules/@comunica/bus-sparql-parse/index.js ***! - \**********************************************************/ +/***/ "./node_modules/@comunica/bus-rdf-dereference/index.js": +/*!*************************************************************!*\ + !*** ./node_modules/@comunica/bus-rdf-dereference/index.js ***! + \*************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { @@ -14415,142 +17185,148 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) { for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); }; Object.defineProperty(exports, "__esModule", { value: true }); -__exportStar(__webpack_require__(/*! ./lib/ActorSparqlParse */ "./node_modules/@comunica/bus-sparql-parse/lib/ActorSparqlParse.js"), exports); +__exportStar(__webpack_require__(/*! ./lib/ActorRdfDereference */ "./node_modules/@comunica/bus-rdf-dereference/lib/ActorRdfDereference.js"), exports); +__exportStar(__webpack_require__(/*! ./lib/ActorRdfDereferenceMediaMappings */ "./node_modules/@comunica/bus-rdf-dereference/lib/ActorRdfDereferenceMediaMappings.js"), exports); //# sourceMappingURL=index.js.map /***/ }), -/***/ "./node_modules/@comunica/bus-sparql-parse/lib/ActorSparqlParse.js": -/*!*************************************************************************!*\ - !*** ./node_modules/@comunica/bus-sparql-parse/lib/ActorSparqlParse.js ***! - \*************************************************************************/ +/***/ "./node_modules/@comunica/bus-rdf-dereference/lib/ActorRdfDereference.js": +/*!*******************************************************************************!*\ + !*** ./node_modules/@comunica/bus-rdf-dereference/lib/ActorRdfDereference.js ***! + \*******************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -exports.ActorSparqlParse = void 0; +exports.ActorRdfDereference = exports.KEY_CONTEXT_LENIENT = void 0; +const stream_1 = __webpack_require__(/*! stream */ "./node_modules/stream-browserify/index.js"); +const context_entries_1 = __webpack_require__(/*! @comunica/context-entries */ "./node_modules/@comunica/context-entries/index.js"); const core_1 = __webpack_require__(/*! @comunica/core */ "./node_modules/@comunica/core/index.js"); /** - * A comunica actor for sparql-parse events. - * - * Actor types: - * * Input: IActionSparqlParse: A SPARQL query string. - * * Test: - * * Output: IActorSparqlParseOutput: A parsed query in SPARQL query algebra. - * - * @see IActionSparqlParse - * @see IActorSparqlParseOutput + * @deprecated Import this constant from @comunica/context-entries. */ -class ActorSparqlParse extends core_1.Actor { - constructor(args) { - super(args); - } -} -exports.ActorSparqlParse = ActorSparqlParse; -//# sourceMappingURL=ActorSparqlParse.js.map - -/***/ }), - -/***/ "./node_modules/@comunica/bus-sparql-serialize/index.js": -/*!**************************************************************!*\ - !*** ./node_modules/@comunica/bus-sparql-serialize/index.js ***! - \**************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __exportStar = (this && this.__exportStar) || function(m, exports) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -__exportStar(__webpack_require__(/*! ./lib/ActorSparqlSerialize */ "./node_modules/@comunica/bus-sparql-serialize/lib/ActorSparqlSerialize.js"), exports); -__exportStar(__webpack_require__(/*! ./lib/ActorSparqlSerializeFixedMediaTypes */ "./node_modules/@comunica/bus-sparql-serialize/lib/ActorSparqlSerializeFixedMediaTypes.js"), exports); -//# sourceMappingURL=index.js.map - -/***/ }), - -/***/ "./node_modules/@comunica/bus-sparql-serialize/lib/ActorSparqlSerialize.js": -/*!*********************************************************************************!*\ - !*** ./node_modules/@comunica/bus-sparql-serialize/lib/ActorSparqlSerialize.js ***! - \*********************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ActorSparqlSerialize = void 0; -const actor_abstract_mediatyped_1 = __webpack_require__(/*! @comunica/actor-abstract-mediatyped */ "./node_modules/@comunica/actor-abstract-mediatyped/index.js"); +exports.KEY_CONTEXT_LENIENT = context_entries_1.KeysInitSparql.lenient; /** - * A comunica actor for sparql-serialize events. + * A base actor for dereferencing URLs to quad streams. * * Actor types: - * * Input: IActionSparqlSerialize: SPARQL bindings or a quad stream. + * * Input: IActionRdfDereference: A URL. * * Test: - * * Output: IActorSparqlSerializeOutput: A text stream. + * * Output: IActorRdfDereferenceOutput: A quad stream. * - * @see IActionSparqlSerialize - * @see IActorSparqlSerializeOutput + * @see IActionRdfDereference + * @see IActorRdfDereferenceOutput */ -class ActorSparqlSerialize extends actor_abstract_mediatyped_1.ActorAbstractMediaTyped { +class ActorRdfDereference extends core_1.Actor { constructor(args) { super(args); } + /** + * Check if hard errors should occur on HTTP or parse errors. + * @param {IActionRdfDereference} action An RDF dereference action. + * @return {boolean} If hard errors are enabled. + */ + isHardError(action) { + return !action.context || !action.context.get(context_entries_1.KeysInitSparql.lenient); + } + /** + * If hard errors are disabled, modify the given stream so that errors are delegated to the logger. + * @param {IActionRdfDereference} action An RDF dereference action. + * @param {Stream} quads A quad stream. + * @return {Stream} The resulting quad stream. + */ + handleDereferenceStreamErrors(action, quads) { + // If we don't emit hard errors, make parsing error events log instead, and silence them downstream. + if (!this.isHardError(action)) { + quads.on('error', error => { + this.logError(action.context, error.message, () => ({ url: action.url })); + // Make sure the errored stream is ended. + quads.push(null); + }); + quads = quads.pipe(new stream_1.PassThrough({ objectMode: true })); + } + return quads; + } + /** + * Handle the given error as a rejection or delegate it to the logger, + * depending on whether or not hard errors are enabled. + * @param {IActionRdfDereference} action An RDF dereference action. + * @param {Error} error An error that has occured. + * @param headers Optional HTTP headers to pass. + * @return {Promise} A promise that rejects or resolves to an empty output. + */ + async handleDereferenceError(action, error, headers) { + if (this.isHardError(action)) { + throw error; + } + else { + this.logError(action.context, error.message); + const quads = new stream_1.Readable(); + quads.push(null); + return { url: action.url, quads, exists: false, headers }; + } + } } -exports.ActorSparqlSerialize = ActorSparqlSerialize; -//# sourceMappingURL=ActorSparqlSerialize.js.map +exports.ActorRdfDereference = ActorRdfDereference; +//# sourceMappingURL=ActorRdfDereference.js.map /***/ }), -/***/ "./node_modules/@comunica/bus-sparql-serialize/lib/ActorSparqlSerializeFixedMediaTypes.js": -/*!************************************************************************************************!*\ - !*** ./node_modules/@comunica/bus-sparql-serialize/lib/ActorSparqlSerializeFixedMediaTypes.js ***! - \************************************************************************************************/ +/***/ "./node_modules/@comunica/bus-rdf-dereference/lib/ActorRdfDereferenceMediaMappings.js": +/*!********************************************************************************************!*\ + !*** ./node_modules/@comunica/bus-rdf-dereference/lib/ActorRdfDereferenceMediaMappings.js ***! + \********************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -exports.ActorSparqlSerializeFixedMediaTypes = void 0; -const actor_abstract_mediatyped_1 = __webpack_require__(/*! @comunica/actor-abstract-mediatyped */ "./node_modules/@comunica/actor-abstract-mediatyped/index.js"); +exports.ActorRdfDereferenceMediaMappings = void 0; +const ActorRdfDereference_1 = __webpack_require__(/*! ./ActorRdfDereference */ "./node_modules/@comunica/bus-rdf-dereference/lib/ActorRdfDereference.js"); /** - * A base actor for listening to SPARQL serialize events that has fixed media types. + * A base actor for dereferencing URLs to quad streams. * * Actor types: - * * Input: IActionSparqlSerializeOrMediaType: A serialize input or a media type input. + * * Input: IActionRdfDereference: A URL. * * Test: - * * Output: IActorSparqlSerializeOutputOrMediaType: The serialized quads. + * * Output: IActorRdfDereferenceOutput: A quad stream. * - * @see IActionInit + * @see IActionRdfDereference + * @see IActorRdfDereferenceOutput */ -class ActorSparqlSerializeFixedMediaTypes extends actor_abstract_mediatyped_1.ActorAbstractMediaTypedFixed { +class ActorRdfDereferenceMediaMappings extends ActorRdfDereference_1.ActorRdfDereference { constructor(args) { super(args); } - async testHandleChecked(action, context) { - return true; + /** + * Get the media type based on the extension of the given path, + * which can be an URL or file path. + * @param {string} path A path. + * @return {string} A media type or the empty string. + */ + getMediaTypeFromExtension(path) { + const dotIndex = path.lastIndexOf('.'); + if (dotIndex >= 0) { + const ext = path.slice(dotIndex); + // Ignore dot + return this.mediaMappings[ext.slice(1)] || ''; + } + return ''; } } -exports.ActorSparqlSerializeFixedMediaTypes = ActorSparqlSerializeFixedMediaTypes; -//# sourceMappingURL=ActorSparqlSerializeFixedMediaTypes.js.map +exports.ActorRdfDereferenceMediaMappings = ActorRdfDereferenceMediaMappings; +//# sourceMappingURL=ActorRdfDereferenceMediaMappings.js.map /***/ }), -/***/ "./node_modules/@comunica/context-entries/index.js": -/*!*********************************************************!*\ - !*** ./node_modules/@comunica/context-entries/index.js ***! - \*********************************************************/ +/***/ "./node_modules/@comunica/bus-rdf-join/index.js": +/*!******************************************************!*\ + !*** ./node_modules/@comunica/bus-rdf-join/index.js ***! + \******************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { @@ -14567,164 +17343,189 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) { for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); }; Object.defineProperty(exports, "__esModule", { value: true }); -__exportStar(__webpack_require__(/*! ./lib/Keys */ "./node_modules/@comunica/context-entries/lib/Keys.js"), exports); +__exportStar(__webpack_require__(/*! ./lib/ActorRdfJoin */ "./node_modules/@comunica/bus-rdf-join/lib/ActorRdfJoin.js"), exports); //# sourceMappingURL=index.js.map /***/ }), -/***/ "./node_modules/@comunica/context-entries/lib/Keys.js": -/*!************************************************************!*\ - !*** ./node_modules/@comunica/context-entries/lib/Keys.js ***! - \************************************************************/ +/***/ "./node_modules/@comunica/bus-rdf-join/lib/ActorRdfJoin.js": +/*!*****************************************************************!*\ + !*** ./node_modules/@comunica/bus-rdf-join/lib/ActorRdfJoin.js ***! + \*****************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -exports.KeysRdfUpdateQuads = exports.KeysRdfResolveQuadPattern = exports.KeysRdfParseJsonLd = exports.KeysQueryOperation = exports.KeysInitSparql = exports.KeysHttpProxy = exports.KeysHttpMemento = exports.KeysHttp = exports.KeysCore = void 0; -var KeysCore; -(function (KeysCore) { - /** - * @range {Logger} A logger instance. - */ - KeysCore["log"] = "@comunica/core:log"; -})(KeysCore = exports.KeysCore || (exports.KeysCore = {})); -var KeysHttp; -(function (KeysHttp) { - /** - * @range {boolean} Include credentials flags. - */ - KeysHttp["includeCredentials"] = "@comunica/bus-http:include-credentials"; - /** - * @range {string} Authentication for a source as a "username:password"-pair. - */ - KeysHttp["auth"] = "@comunica/bus-http:auth"; -})(KeysHttp = exports.KeysHttp || (exports.KeysHttp = {})); -var KeysHttpMemento; -(function (KeysHttpMemento) { - /** - * @range {string} The desired datetime for Memento datetime-negotiation. - */ - KeysHttpMemento["datetime"] = "@comunica/actor-http-memento:datetime"; -})(KeysHttpMemento = exports.KeysHttpMemento || (exports.KeysHttpMemento = {})); -var KeysHttpProxy; -(function (KeysHttpProxy) { - /** - * @range {IProxyHandler} A handler implementing the {@link IProxyHandler} interface. - */ - KeysHttpProxy["httpProxyHandler"] = "@comunica/actor-http-proxy:httpProxyHandler"; -})(KeysHttpProxy = exports.KeysHttpProxy || (exports.KeysHttpProxy = {})); -var KeysInitSparql; -(function (KeysInitSparql) { - /** - * @range {Bindings} Variables that have to be pre-bound to values in the query. - */ - KeysInitSparql["initialBindings"] = "@comunica/actor-init-sparql:initialBindings"; - /** - * @range {string} Name of the provided query's format. - */ - KeysInitSparql["queryFormat"] = "@comunica/actor-init-sparql:queryFormat"; - /** - * @range {any} Which GraphQL bindings should be singularized. - */ - KeysInitSparql["graphqlSingularizeVariables"] = "@comunica/actor-init-sparql:singularizeVariables"; - /** - * @range {boolean} If HTTP and parsing failures are ignored. - */ - KeysInitSparql["lenient"] = "@comunica/actor-init-sparql:lenient"; - /** - * @range {Algebra.Operation} The original parsed query. - */ - KeysInitSparql["query"] = "@comunica/actor-init-sparql:query"; - /** - * @range {string} The query's base IRI. - */ - KeysInitSparql["baseIRI"] = "@comunica/actor-init-sparql:baseIRI"; - /** - * @range {Date} A timestamp representing the current time. - * This is required for certain SPARQL operations such as NOW(). - */ - KeysInitSparql["queryTimestamp"] = "@comunica/actor-init-sparql:queryTimestamp"; -})(KeysInitSparql = exports.KeysInitSparql || (exports.KeysInitSparql = {})); -var KeysQueryOperation; -(function (KeysQueryOperation) { - /** - * @range {string} Context entry for the current query operation. - */ - KeysQueryOperation["operation"] = "@comunica/bus-query-operation:operation"; - /** - * @type {any} The current metadata. - * I.e., the metadata that was used to determine the next BGP operation. - */ - KeysQueryOperation["bgpCurrentMetadata"] = "@comunica/bus-query-operation:bgpCurrentMetadata"; - /** - * @range {any[]} An array of parent metadata. - * I.e., an array of the metadata that was present before materializing the current BGP operations. - * This can be passed in 'bgp' actions. - * The array entries should correspond to the pattern entries in the BGP. - */ - KeysQueryOperation["bgpParentMetadata"] = "@comunica/bus-query-operation:bgpParentMetadata"; - /** - * @range {IPatternBindings[]} Indicating which patterns were bound from variables. - * I.e., an array of the same length as the value of - * KeysQueryOperation.patternParentMetadata, - * where each array value corresponds to the pattern bindings - * for the corresponding pattern. - */ - KeysQueryOperation["bgpPatternBindings"] = "@comunica/bus-query-operation:bgpPatternBindings"; - /** - * @range {any} Parent metadata hash. - * I.e., the metadata that was present before materializing the current operation. - * This can be passed in 'pattern' actions. - */ - KeysQueryOperation["patternParentMetadata"] = "@comunica/bus-query-operation:patternParentMetadata"; - /** - * @range {boolean} Flag for indicating that only read operations are allowed, defaults to false. - */ - KeysQueryOperation["readOnly"] = "@comunica/bus-query-operation:readOnly"; -})(KeysQueryOperation = exports.KeysQueryOperation || (exports.KeysQueryOperation = {})); -var KeysRdfParseJsonLd; -(function (KeysRdfParseJsonLd) { +exports.ActorRdfJoin = void 0; +const core_1 = __webpack_require__(/*! @comunica/core */ "./node_modules/@comunica/core/index.js"); +const asynciterator_1 = __webpack_require__(/*! asynciterator */ "./node_modules/asynciterator/dist/asynciterator.js"); +/** + * A comunica actor for joining 2 binding streams. + * + * Actor types: + * * Input: IActionRdfJoin: The streams that need to be joined. + * * Test: + * * Output: IActorRdfJoinOutput: The resulting joined stream. + * + * @see IActionRdfJoin + * @see IActorQueryOperationOutput + */ +class ActorRdfJoin extends core_1.Actor { + constructor(args, limitEntries, limitEntriesMin, canHandleUndefs) { + super(args); + this.limitEntries = limitEntries !== null && limitEntries !== void 0 ? limitEntries : Number.POSITIVE_INFINITY; + this.limitEntriesMin = limitEntriesMin !== null && limitEntriesMin !== void 0 ? limitEntriesMin : false; + this.canHandleUndefs = canHandleUndefs !== null && canHandleUndefs !== void 0 ? canHandleUndefs : false; + } /** - * @range {IDocumentLoader} + * Returns an array containing all the variable names that occur in all bindings streams. + * @param {IActionRdfJoin} action + * @returns {string[]} */ - KeysRdfParseJsonLd["documentLoader"] = "@comunica/actor-rdf-parse-jsonld:documentLoader"; + static overlappingVariables(action) { + const variables = action.entries.map(entry => entry.variables); + let baseArray = variables[0]; + for (const array of variables.slice(1)) { + baseArray = baseArray.filter(el => array.includes(el)); + } + return baseArray; + } /** - * @range {boolean} + * Returns the variables that will occur in the joined bindings. + * @param {IActionRdfJoin} action + * @returns {string[]} */ - KeysRdfParseJsonLd["strictValues"] = "@comunica/actor-rdf-parse-jsonld:strictValues"; + static joinVariables(action) { + const variables = action.entries.map(entry => entry.variables); + const withDuplicates = variables.reduce((acc, it) => [...acc, ...it], []); + return [...new Set(withDuplicates)]; + } /** - * @range {Record} + * Returns the result of joining bindings, or `null` if no join is possible. + * @param {Bindings[]} bindings + * @returns {Bindings} */ - KeysRdfParseJsonLd["parserOptions"] = "@comunica/actor-rdf-parse-jsonld:parserOptions"; -})(KeysRdfParseJsonLd = exports.KeysRdfParseJsonLd || (exports.KeysRdfParseJsonLd = {})); -var KeysRdfResolveQuadPattern; -(function (KeysRdfResolveQuadPattern) { + static join(...bindings) { + try { + return bindings.reduce((acc, val) => acc.mergeWith((left, right) => { + if (!left.equals(right)) { + throw new Error('Join failure'); + } + return left; + }, val)); + } + catch (_a) { + return null; + } + } /** - * @range {DataSources} Data sources. + * Checks if all metadata objects are present in the action, and if they have the specified key. + * @param {IActionRdfJoin} action + * @param {string} key + * @returns {boolean} */ - KeysRdfResolveQuadPattern["sources"] = "@comunica/bus-rdf-resolve-quad-pattern:sources"; + static async iteratorsHaveMetadata(action, key) { + return Promise.all(action.entries.map(async (entry) => { + if (!entry.metadata) { + throw new Error('Missing metadata'); + } + const metadata = await entry.metadata(); + if (!(key in metadata)) { + throw new Error('Missing metadata value'); + } + })).then(() => true).catch(() => false); + } /** - * @range {IDataSource} A data source. + * Default test function for join actors. + * Checks whether all iterators have metadata. + * If yes: call the abstract getIterations method, if not: return Infinity. + * @param {IActionRdfJoin} action The input action containing the relevant iterators + * @returns {Promise} The calculated estime. */ - KeysRdfResolveQuadPattern["source"] = "@comunica/bus-rdf-resolve-quad-pattern:source"; -})(KeysRdfResolveQuadPattern = exports.KeysRdfResolveQuadPattern || (exports.KeysRdfResolveQuadPattern = {})); -var KeysRdfUpdateQuads; -(function (KeysRdfUpdateQuads) { + async test(action) { + // Allow joining of one or zero streams + if (action.entries.length <= 1) { + return { iterations: 0 }; + } + // Check if this actor can handle the given number of streams + if (this.limitEntriesMin ? action.entries.length < this.limitEntries : action.entries.length > this.limitEntries) { + throw new Error(`${this.name} requires ${this.limitEntries} sources at ${this.limitEntriesMin ? 'least' : 'most'}. The input contained ${action.entries.length}.`); + } + // Check if all streams are bindings streams + for (const entry of action.entries) { + if (entry.type !== 'bindings') { + throw new Error(`Invalid type of a join entry: Expected 'bindings' but got '${entry.type}'`); + } + } + // Check if this actor can handle undefs + if (!this.canHandleUndefs) { + for (const entry of action.entries) { + if (entry.canContainUndefs) { + throw new Error(`Actor ${this.name} can not join streams containing undefs`); + } + } + } + if (!await ActorRdfJoin.iteratorsHaveMetadata(action, 'totalItems')) { + return { iterations: Number.POSITIVE_INFINITY }; + } + return { iterations: await this.getIterations(action) }; + } /** - * @range {IDataDestination} A data destination. + * Returns default input for 0 or 1 entries. Calls the getOutput function otherwise + * @param {IActionRdfJoin} action + * @returns {Promise} */ - KeysRdfUpdateQuads["destination"] = "@comunica/bus-rdf-update-quads:destination"; -})(KeysRdfUpdateQuads = exports.KeysRdfUpdateQuads || (exports.KeysRdfUpdateQuads = {})); -//# sourceMappingURL=Keys.js.map + async run(action) { + if (action.entries.length === 0) { + return { + bindingsStream: new asynciterator_1.ArrayIterator([], { autoStart: false }), + metadata: () => Promise.resolve({ totalItems: 0 }), + type: 'bindings', + variables: [], + canContainUndefs: false, + }; + } + if (action.entries.length === 1) { + return action.entries[0]; + } + const result = this.getOutput(action); + function totalItems() { + return Promise.all(action.entries + .map(entry => entry.metadata())) + .then(metadatas => metadatas.reduce((acc, val) => acc * val.totalItems, 1)); + } + if (await ActorRdfJoin.iteratorsHaveMetadata(action, 'totalItems')) { + // Update the result promise to also add the estimated total items + const unwrapped = await result; + if (unwrapped.metadata) { + const oldMetadata = unwrapped.metadata; + unwrapped.metadata = () => oldMetadata().then(async (metadata) => { + // Don't overwrite metadata if it was generated by implementation + if (!('totalItems' in metadata)) { + metadata.totalItems = await totalItems(); + } + return metadata; + }); + } + else { + unwrapped.metadata = () => totalItems().then(totalItemsValue => ({ totalItems: totalItemsValue })); + } + return unwrapped; + } + return result; + } +} +exports.ActorRdfJoin = ActorRdfJoin; +//# sourceMappingURL=ActorRdfJoin.js.map /***/ }), -/***/ "./node_modules/@comunica/core/index.js": -/*!**********************************************!*\ - !*** ./node_modules/@comunica/core/index.js ***! - \**********************************************/ +/***/ "./node_modules/@comunica/bus-rdf-metadata-extract/index.js": +/*!******************************************************************!*\ + !*** ./node_modules/@comunica/bus-rdf-metadata-extract/index.js ***! + \******************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { @@ -14741,634 +17542,309 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) { for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); }; Object.defineProperty(exports, "__esModule", { value: true }); -__exportStar(__webpack_require__(/*! ./lib/Bus */ "./node_modules/@comunica/core/lib/Bus.js"), exports); -__exportStar(__webpack_require__(/*! ./lib/BusIndexed */ "./node_modules/@comunica/core/lib/BusIndexed.js"), exports); -__exportStar(__webpack_require__(/*! ./lib/ActionObserver */ "./node_modules/@comunica/core/lib/ActionObserver.js"), exports); -__exportStar(__webpack_require__(/*! ./lib/Actor */ "./node_modules/@comunica/core/lib/Actor.js"), exports); -__exportStar(__webpack_require__(/*! ./lib/Logger */ "./node_modules/@comunica/core/lib/Logger.js"), exports); -__exportStar(__webpack_require__(/*! ./lib/Mediator */ "./node_modules/@comunica/core/lib/Mediator.js"), exports); +__exportStar(__webpack_require__(/*! ./lib/ActorRdfMetadataExtract */ "./node_modules/@comunica/bus-rdf-metadata-extract/lib/ActorRdfMetadataExtract.js"), exports); +__exportStar(__webpack_require__(/*! ./lib/ActorRdfMetadataExtractQuery */ "./node_modules/@comunica/bus-rdf-metadata-extract/lib/ActorRdfMetadataExtractQuery.js"), exports); +__exportStar(__webpack_require__(/*! ./lib/GraphQlQueryEngine */ "./node_modules/@comunica/bus-rdf-metadata-extract/lib/GraphQlQueryEngine.js"), exports); //# sourceMappingURL=index.js.map /***/ }), -/***/ "./node_modules/@comunica/core/lib/ActionObserver.js": -/*!***********************************************************!*\ - !*** ./node_modules/@comunica/core/lib/ActionObserver.js ***! - \***********************************************************/ +/***/ "./node_modules/@comunica/bus-rdf-metadata-extract/lib/ActorRdfMetadataExtract.js": +/*!****************************************************************************************!*\ + !*** ./node_modules/@comunica/bus-rdf-metadata-extract/lib/ActorRdfMetadataExtract.js ***! + \****************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -exports.ActionObserver = void 0; +exports.ActorRdfMetadataExtract = void 0; +const core_1 = __webpack_require__(/*! @comunica/core */ "./node_modules/@comunica/core/index.js"); /** - * An ActionObserver can passively listen to {@link Actor#run} inputs and outputs for all actors on a certain bus. - * - * ActionObserver should not edit inputs and outputs, - * they should be considered immutable. + * A comunica actor for rdf-metadata-extract events. * - * @see Actor - * @see Bus + * Actor types: + * * Input: IActionRdfMetadataExtract: A metadata quad stream + * * Test: + * * Output: IActorRdfMetadataExtractOutput: A metadata hash. * - * @template I The input type of an actor. - * @template O The output type of an actor. + * @see IActionRdfDereference + * @see IActorRdfDereferenceOutput */ -class ActionObserver { - /** - * All enumerable properties from the `args` object are inherited to this observer. - * - * The observer will NOT automatically subscribe to the given bus when this constructor is called. - * - * @param {IActionObserverArgs} args Arguments object - * @throws When required arguments are missing. - */ +class ActorRdfMetadataExtract extends core_1.Actor { constructor(args) { - Object.assign(this, args); + super(args); } } -exports.ActionObserver = ActionObserver; -//# sourceMappingURL=ActionObserver.js.map +exports.ActorRdfMetadataExtract = ActorRdfMetadataExtract; +//# sourceMappingURL=ActorRdfMetadataExtract.js.map /***/ }), -/***/ "./node_modules/@comunica/core/lib/Actor.js": -/*!**************************************************!*\ - !*** ./node_modules/@comunica/core/lib/Actor.js ***! - \**************************************************/ +/***/ "./node_modules/@comunica/bus-rdf-metadata-extract/lib/ActorRdfMetadataExtractQuery.js": +/*!*********************************************************************************************!*\ + !*** ./node_modules/@comunica/bus-rdf-metadata-extract/lib/ActorRdfMetadataExtractQuery.js ***! + \*********************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -exports.ensureActionContext = exports.ActionContext = exports.Actor = void 0; -const context_entries_1 = __webpack_require__(/*! @comunica/context-entries */ "./node_modules/@comunica/context-entries/index.js"); -const immutable_1 = __webpack_require__(/*! immutable */ "./node_modules/immutable/dist/immutable.js"); +exports.ActorRdfMetadataExtractQuery = void 0; +const graphql_ld_1 = __webpack_require__(/*! graphql-ld */ "./node_modules/graphql-ld/index.js"); +const rdf_store_stream_1 = __webpack_require__(/*! rdf-store-stream */ "./node_modules/rdf-store-stream/index.js"); +const ActorRdfMetadataExtract_1 = __webpack_require__(/*! ./ActorRdfMetadataExtract */ "./node_modules/@comunica/bus-rdf-metadata-extract/lib/ActorRdfMetadataExtract.js"); +const GraphQlQueryEngine_1 = __webpack_require__(/*! ./GraphQlQueryEngine */ "./node_modules/@comunica/bus-rdf-metadata-extract/lib/GraphQlQueryEngine.js"); /** - * An actor can act on messages of certain types and provide output of a certain type. - * - * The flow of an actor is as follows: - * 1. Send a message to {@link Actor#test} to test if an actor can run that action. - * 2. If the actor can reply to the message, let the actor run the action using {@link Actor#run}. - * - * An actor is typically subscribed to a bus, - * using which the applicability to an action can be tested. + * An {@link ActorRdfMetadataExtract} that extracts metadata based on a GraphQL-LD query. * - * @see Bus + * It exposes the {@link #queryData} method using which a query can be applied over the metadata stream. + * For efficiency reasons, the query (and JSON-LD context) must be passed via the actor constructor + * so that these can be pre-compiled. * - * @template I The input type of an actor. - * @template T The test type of an actor. - * @template O The output type of an actor. + * @see ActorRdfMetadataExtract */ -class Actor { - /** - * All enumerable properties from the `args` object are inherited to this actor. - * - * The actor will subscribe to the given bus when this constructor is called. - * - * @param {IActorArgs} args Arguments object - * @param {string} args.name The name for this actor. - * @param {Bus, I extends IAction, T extends IActorTest, O extends IActorOutput>} args.bus - * The bus this actor subscribes to. - * @throws When required arguments are missing. - */ - constructor(args) { - this.beforeActors = []; - Object.assign(this, args); - this.bus.subscribe(this); - if (this.beforeActors.length > 0) { - this.bus.addDependencies(this, this.beforeActors); - } - } - /** - * Get the logger from the given context. - * @param {ActionContext} context An optional context. - * @return {Logger} The logger or undefined. - */ - static getContextLogger(context) { - return context && context.get(context_entries_1.KeysCore.log); - } - /** - * Run the given action on this actor - * AND invokes the {@link Bus#onRun} method. - * - * @param {I} action The action to run. - * @return {Promise} A promise that resolves to the run result. - */ - runObservable(action) { - const output = this.run(action); - this.bus.onRun(this, action, output); - return output; - } - /** - * Initialize this actor. - * This should be used for doing things that take a while, - * such as opening files. - * - * @return {Promise} A promise that resolves when the actor has been initialized. - */ - async initialize() { - return true; +class ActorRdfMetadataExtractQuery extends ActorRdfMetadataExtract_1.ActorRdfMetadataExtract { + constructor(context, query, args) { + super(args); + // Pre-parse GraphQL-LD query + this.graphqlClient = new graphql_ld_1.Client({ + context, + queryEngine: new GraphQlQueryEngine_1.GraphQlQueryEngine(this.queryEngine), + }); + this.sparqlOperation = this.graphqlClient.graphQlToSparql({ query }); } /** - * Deinitialize this actor. - * This should be used for cleaning up things when the application is shut down, - * such as closing files and removing temporary files. - * - * @return {Promise} A promise that resolves when the actor has been deinitialized. + * Execute the configured query on the given metadata stream. + * @param {RDF.Stream} dataStream A quad stream to query on. + * @return The GraphQL query results. */ - async deinitialize() { - return true; - } - /* Proxy methods for the (optional) logger that is defined in the context */ - getDefaultLogData(context, data) { - const dataActual = data ? data() : {}; - dataActual.actor = this.name; - return dataActual; - } - logTrace(context, message, data) { - const logger = Actor.getContextLogger(context); - if (logger) { - logger.trace(message, this.getDefaultLogData(context, data)); - } - } - logDebug(context, message, data) { - const logger = Actor.getContextLogger(context); - if (logger) { - logger.debug(message, this.getDefaultLogData(context, data)); - } - } - logInfo(context, message, data) { - const logger = Actor.getContextLogger(context); - if (logger) { - logger.info(message, this.getDefaultLogData(context, data)); - } - } - logWarn(context, message, data) { - const logger = Actor.getContextLogger(context); - if (logger) { - logger.warn(message, this.getDefaultLogData(context, data)); - } - } - logError(context, message, data) { - const logger = Actor.getContextLogger(context); - if (logger) { - logger.error(message, this.getDefaultLogData(context, data)); - } - } - logFatal(context, message, data) { - const logger = Actor.getContextLogger(context); - if (logger) { - logger.fatal(message, this.getDefaultLogData(context, data)); - } + async queryData(dataStream, initialBindings) { + // Load metadata quads into store + const store = await rdf_store_stream_1.storeStream(dataStream); + // Execute query against out in-memory store + const { data } = await this.graphqlClient.query(Object.assign(Object.assign({}, await this.sparqlOperation), { queryEngineOptions: { source: { type: 'rdfjsSource', value: store }, initialBindings } })); + return data; } } -exports.Actor = Actor; -/** - * A convenience constructor for {@link ActionContext} based on a given hash. - * @param {{[p: string]: any}} hash A hash that maps keys to values. - * @return {ActionContext} The immutable action context from the hash. - * @constructor - */ -// eslint-disable-next-line no-redeclare -function ActionContext(hash) { - return immutable_1.Map(hash); -} -exports.ActionContext = ActionContext; -/** - * Convert the given object to an action context object if it is not an action context object yet. - * If it already is an action context object, return the object as-is. - * @param maybeActionContext Any object. - * @return {ActionContext} An action context object. - */ -function ensureActionContext(maybeActionContext) { - return immutable_1.Map.isMap(maybeActionContext) ? maybeActionContext : ActionContext(maybeActionContext); -} -exports.ensureActionContext = ensureActionContext; -//# sourceMappingURL=Actor.js.map +exports.ActorRdfMetadataExtractQuery = ActorRdfMetadataExtractQuery; +//# sourceMappingURL=ActorRdfMetadataExtractQuery.js.map /***/ }), -/***/ "./node_modules/@comunica/core/lib/Bus.js": -/*!************************************************!*\ - !*** ./node_modules/@comunica/core/lib/Bus.js ***! - \************************************************/ +/***/ "./node_modules/@comunica/bus-rdf-metadata-extract/lib/GraphQlQueryEngine.js": +/*!***********************************************************************************!*\ + !*** ./node_modules/@comunica/bus-rdf-metadata-extract/lib/GraphQlQueryEngine.js ***! + \***********************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -exports.Bus = void 0; +exports.GraphQlQueryEngine = void 0; +const stringifyStream = __webpack_require__(/*! stream-to-string */ "./node_modules/stream-to-string/index.js"); /** - * A publish-subscribe bus for sending actions to actors - * to test whether or not they can run an action. - * - * This bus does not run the action itself, - * for that a {@link Mediator} can be used. - * - * @see Actor - * @see Mediator - * - * @template A The actor type that can subscribe to the sub. - * @template I The input type of an actor. - * @template T The test type of an actor. - * @template O The output type of an actor. + * A comunica-based GraphQL-LD query engine. */ -class Bus { - /** - * All enumerable properties from the `args` object are inherited to this bus. - * - * @param {IBusArgs} args Arguments object - * @param {string} args.name The name for the bus - * @throws When required arguments are missing. - */ - constructor(args) { - this.actors = []; - this.observers = []; - // Mapping from dependency (after) to dependents (before) - this.dependencyLinks = new Map(); - Object.assign(this, args); - } - /** - * Subscribe the given actor to the bus. - * After this, the given actor can be unsubscribed from the bus by calling {@link Bus#unsubscribe}. - * - * An actor that is subscribed multiple times will exist that amount of times in the bus. - * - * @param {A} actor The actor to subscribe. - */ - subscribe(actor) { - this.actors.push(actor); - this.reorderForDependencies(); - } - /** - * Subscribe the given observer to the bus. - * After this, the given observer can be unsubscribed from the bus by calling {@link Bus#unsubscribeObserver}. - * - * An observer that is subscribed multiple times will exist that amount of times in the bus. - * - * @param {ActionObserver} observer The observer to subscribe. - */ - subscribeObserver(observer) { - this.observers.push(observer); - } - /** - * Unsubscribe the given actor from the bus. - * - * An actor that is subscribed multiple times will be unsubscribed only once. - * - * @param {A} actor The actor to unsubscribe - * @return {boolean} If the given actor was successfully unsubscribed, - * otherwise it was not subscribed before. - */ - unsubscribe(actor) { - const index = this.actors.indexOf(actor); - if (index >= 0) { - this.actors.splice(index, 1); - return true; - } - return false; - } - /** - * Unsubscribe the given observer from the bus. - * - * An observer that is subscribed multiple times will be unsubscribed only once. - * - * @param {ActionObserver} observer The observer to unsubscribe. - * @return {boolean} If the given observer was successfully unsubscribed, - * otherwise it was not subscribed before. - */ - unsubscribeObserver(observer) { - const index = this.observers.indexOf(observer); - if (index >= 0) { - this.observers.splice(index, 1); - return true; - } - return false; - } - /** - * Publish an action to all actors in the bus to test if they can run the action. - * - * @param {I} action An action to publish - * @return {IActorReply, I extends IAction, T extends IActorTest, - * O extends IActorOutput>[]} - * An array of reply objects. Each object contains a reference to the actor, - * and a promise to its {@link Actor#test} result. - */ - publish(action) { - return this.actors.map((actor) => ({ actor, reply: actor.test(action) })); - } - /** - * Invoked when an action was run by an actor. - * - * @param actor The action on which the {@link Actor#run} method was invoked. - * @param {I} action The original action input. - * @param {Promise} output A promise resolving to the final action output. - */ - onRun(actor, action, output) { - for (const observer of this.observers) { - observer.onRun(actor, action, output); - } - } - /** - * Indicate that the given actor has the given actor dependencies. - * - * This will ensure that the given actor will be present in the bus *before* the given dependencies. - * - * @param {A} dependent A dependent actor that will be placed before the given actors. - * @param {A[]} dependencies Actor dependencies that will be placed after the given actor. - */ - addDependencies(dependent, dependencies) { - for (const dependency of dependencies) { - let existingDependencies = this.dependencyLinks.get(dependency); - if (!existingDependencies) { - existingDependencies = []; - this.dependencyLinks.set(dependency, existingDependencies); - } - existingDependencies.push(dependent); - } - this.reorderForDependencies(); +class GraphQlQueryEngine { + constructor(comunicaEngine) { + this.comunicaEngine = comunicaEngine; } - /** - * Reorder the bus based on all present dependencies. - */ - reorderForDependencies() { - if (this.dependencyLinks.size > 0) { - const actorsAfter = []; - // Temporarily remove all actors that have dependencies - for (const actorAfter of this.dependencyLinks.keys()) { - const dependentPos = this.actors.indexOf(actorAfter); - if (dependentPos >= 0) { - this.actors.splice(dependentPos, 1); - actorsAfter.push(actorAfter); - } - } - // Iteratively append actors based on the first dependency link - // that has all of its dependencies available in the array - while (actorsAfter.length > 0) { - // Find the first actor that has all of its dependencies available. - let activeActorAfterId = -1; - for (let i = 0; i < actorsAfter.length; i++) { - let validLink = true; - for (const dependency of this.dependencyLinks.get(actorsAfter[i])) { - if (!this.actors.includes(dependency) && actorsAfter.includes(dependency)) { - validLink = false; - break; - } - } - if (validLink) { - activeActorAfterId = i; - break; - } - } - // If none of the pending links are possible, there must be a cyclic dependency - if (activeActorAfterId < 0) { - throw new Error(`Cyclic dependency links detected in bus ${this.name}`); - } - // The dependent may not be available (yet), so we don't add it to the array (yet). - const activeActorAfter = actorsAfter.splice(activeActorAfterId, 1)[0]; - this.actors.push(activeActorAfter); - } - } + async query(query, options) { + const { data } = await this.comunicaEngine.resultToString(await this.comunicaEngine.query(query, options), 'application/sparql-results+json'); + return JSON.parse(await stringifyStream(data)); } } -exports.Bus = Bus; -//# sourceMappingURL=Bus.js.map +exports.GraphQlQueryEngine = GraphQlQueryEngine; +//# sourceMappingURL=GraphQlQueryEngine.js.map /***/ }), -/***/ "./node_modules/@comunica/core/lib/BusIndexed.js": -/*!*******************************************************!*\ - !*** ./node_modules/@comunica/core/lib/BusIndexed.js ***! - \*******************************************************/ +/***/ "./node_modules/@comunica/bus-rdf-metadata/index.js": +/*!**********************************************************!*\ + !*** ./node_modules/@comunica/bus-rdf-metadata/index.js ***! + \**********************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +__exportStar(__webpack_require__(/*! ./lib/ActorRdfMetadata */ "./node_modules/@comunica/bus-rdf-metadata/lib/ActorRdfMetadata.js"), exports); +__exportStar(__webpack_require__(/*! ./lib/ActorRdfMetadataQuadPredicate */ "./node_modules/@comunica/bus-rdf-metadata/lib/ActorRdfMetadataQuadPredicate.js"), exports); +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ "./node_modules/@comunica/bus-rdf-metadata/lib/ActorRdfMetadata.js": +/*!*************************************************************************!*\ + !*** ./node_modules/@comunica/bus-rdf-metadata/lib/ActorRdfMetadata.js ***! + \*************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -exports.BusIndexed = void 0; -const Bus_1 = __webpack_require__(/*! ./Bus */ "./node_modules/@comunica/core/lib/Bus.js"); +exports.ActorRdfMetadata = void 0; +const core_1 = __webpack_require__(/*! @comunica/core */ "./node_modules/@comunica/core/index.js"); /** - * A bus that indexes identified actors, - * so that actions with a corresponding identifier can be published more efficiently. - * - * Multiple actors with the same identifier can be subscribed. - * - * If actors or actions do not have a valid identifier, - * then this will fallback to the normal bus behaviour. + * A comunica actor for rdf-metadata events. * - * @see Bus + * Actor types: + * * Input: IActionRdfMetadata: An RDF quad stream. + * * Test: + * * Output: IActorRdfMetadataOutput: An RDF quad data stream and RDF quad metadata stream. * - * @template A The actor type that can subscribe to the sub. - * @template I The input type of an actor. - * @template T The test type of an actor. - * @template O The output type of an actor. + * @see IActionRdfDereference + * @see IActorRdfDereferenceOutput */ -class BusIndexed extends Bus_1.Bus { - /** - * All enumerable properties from the `args` object are inherited to this bus. - * - * @param {IBusIndexedArgs} args Arguments object - * @param {string} args.name The name for the bus - * @throws When required arguments are missing. - */ +class ActorRdfMetadata extends core_1.Actor { constructor(args) { super(args); - this.actorsIndex = {}; - } - subscribe(actor) { - const actorId = this.getActorIdentifier(actor) || '_undefined_'; - let actors = this.actorsIndex[actorId]; - if (!actors) { - actors = this.actorsIndex[actorId] = []; - } - actors.push(actor); - super.subscribe(actor); - } - unsubscribe(actor) { - const actorId = this.getActorIdentifier(actor) || '_undefined_'; - const actors = this.actorsIndex[actorId]; - if (actors) { - const i = actors.indexOf(actor); - if (i >= 0) { - actors.splice(i, 1); - } - if (actors.length === 0) { - delete this.actorsIndex[actorId]; - } - } - return super.unsubscribe(actor); - } - publish(action) { - const actionId = this.getActionIdentifier(action); - if (actionId) { - const actors = [...this.actorsIndex[actionId] || [], ...this.actorsIndex._undefined_ || []]; - return actors.map((actor) => ({ actor, reply: actor.test(action) })); - } - return super.publish(action); - } - getActorIdentifier(actor) { - return this.actorIdentifierFields.reduce((object, field) => object[field], actor); - } - getActionIdentifier(action) { - return this.actionIdentifierFields.reduce((object, field) => object[field], action); } } -exports.BusIndexed = BusIndexed; -//# sourceMappingURL=BusIndexed.js.map +exports.ActorRdfMetadata = ActorRdfMetadata; +//# sourceMappingURL=ActorRdfMetadata.js.map /***/ }), -/***/ "./node_modules/@comunica/core/lib/Logger.js": -/*!***************************************************!*\ - !*** ./node_modules/@comunica/core/lib/Logger.js ***! - \***************************************************/ +/***/ "./node_modules/@comunica/bus-rdf-metadata/lib/ActorRdfMetadataQuadPredicate.js": +/*!**************************************************************************************!*\ + !*** ./node_modules/@comunica/bus-rdf-metadata/lib/ActorRdfMetadataQuadPredicate.js ***! + \**************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -exports.KEY_CONTEXT_LOG = exports.Logger = void 0; -const context_entries_1 = __webpack_require__(/*! @comunica/context-entries */ "./node_modules/@comunica/context-entries/index.js"); +exports.ActorRdfMetadataQuadPredicate = void 0; +const stream_1 = __webpack_require__(/*! stream */ "./node_modules/stream-browserify/index.js"); +const ActorRdfMetadata_1 = __webpack_require__(/*! ./ActorRdfMetadata */ "./node_modules/@comunica/bus-rdf-metadata/lib/ActorRdfMetadata.js"); /** - * A logger accepts messages from different levels - * and emits them in a certain way. + * An abstract implementation of {@link ActorRdfMetadata} that + * only requires the quad test {@link ActorRdfMetadata#isMetadata} method to be overridden. */ -class Logger { - /** - * Convert a string-based logging level to a numerical logging level. - * @param level A string-based logging level - * @return The numerical logging level, or undefined. - */ - static getLevelOrdinal(level) { - return Logger.LEVELS[level]; +class ActorRdfMetadataQuadPredicate extends ActorRdfMetadata_1.ActorRdfMetadata { + constructor(args) { + super(args); + } + async run(action) { + const data = new stream_1.Readable({ objectMode: true }); + const metadata = new stream_1.Readable({ objectMode: true }); + // Delay attachment of listeners until the data or metadata stream is being read. + // eslint-disable-next-line func-style + const attachListeners = () => { + // Attach listeners only once + data._read = metadata._read = () => { + // Do nothing + }; + // Forward errors + action.quads.on('error', error => { + data.emit('error', error); + metadata.emit('error', error); + }); + const context = {}; + action.quads.on('data', quad => { + if (this.isMetadata(quad, action.url, context)) { + metadata.push(quad); + } + else { + data.push(quad); + } + }); + action.quads.on('end', () => { + data.push(null); + metadata.push(null); + }); + }; + data._read = metadata._read = () => { + attachListeners(); + }; + return { data, metadata }; } } -exports.Logger = Logger; -/** - * All available logging levels. - * @type {{trace: number; debug: number; info: number; warn: number; error: number; fatal: number}} - */ -Logger.LEVELS = { - trace: 0, - debug: 1, - info: 2, - warn: 3, - error: 4, - fatal: 5, +exports.ActorRdfMetadataQuadPredicate = ActorRdfMetadataQuadPredicate; +//# sourceMappingURL=ActorRdfMetadataQuadPredicate.js.map + +/***/ }), + +/***/ "./node_modules/@comunica/bus-rdf-parse-html/index.js": +/*!************************************************************!*\ + !*** ./node_modules/@comunica/bus-rdf-parse-html/index.js ***! + \************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); }; -/** - * @type {string} Context entry for a logger instance. - * @value {Logger} A logger. - * @deprecated Import this constant from @comunica/context-entries. - */ -exports.KEY_CONTEXT_LOG = context_entries_1.KeysCore.log; -//# sourceMappingURL=Logger.js.map +Object.defineProperty(exports, "__esModule", { value: true }); +__exportStar(__webpack_require__(/*! ./lib/ActorRdfParseHtml */ "./node_modules/@comunica/bus-rdf-parse-html/lib/ActorRdfParseHtml.js"), exports); +//# sourceMappingURL=index.js.map /***/ }), -/***/ "./node_modules/@comunica/core/lib/Mediator.js": -/*!*****************************************************!*\ - !*** ./node_modules/@comunica/core/lib/Mediator.js ***! - \*****************************************************/ +/***/ "./node_modules/@comunica/bus-rdf-parse-html/lib/ActorRdfParseHtml.js": +/*!****************************************************************************!*\ + !*** ./node_modules/@comunica/bus-rdf-parse-html/lib/ActorRdfParseHtml.js ***! + \****************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -exports.Mediator = void 0; +exports.ActorRdfParseHtml = void 0; +const core_1 = __webpack_require__(/*! @comunica/core */ "./node_modules/@comunica/core/index.js"); /** - * A mediator can mediate an action over a bus of actors. - * - * It does the following: - * 1. Accepts an action in {@link Mediator#mediate}. - * 2. Sends the action to the bus to test its applicability on all actors. - * 3. It _mediates_ over these test results. - * 4. It selects the _best_ actor. - * 5. The action is run by the _best_ actor, and the result if returned. + * A comunica actor for rdf-parse-html events. * - * The _mediates_ and _best_ parts are filled in by subclasses of this abstract Mediator class. + * Actor types: + * * Input: IActionRdfParseHtml: Callbacks for parsing results. + * * Test: + * * Output: IActorRdfParseHtmlOutput: An HTML event listeners. * - * @template A The type of actor to mediator over. - * @template I The input type of an actor. - * @template T The test type of an actor. - * @template O The output type of an actor. + * @see IActionRdfParseHtml + * @see IActorRdfParseHtmlOutput */ -class Mediator { - /** - * All enumerable properties from the `args` object are inherited to this mediator. - * - * @param {IMediatorArgs, I extends IAction, T extends IActorTest, - * O extends IActorOutput>} args Arguments object - * @param {string} args.name The name for this mediator. - * @param {Bus, I extends IAction, T extends IActorTest, O extends IActorOutput>} args.bus - * The bus this mediator will mediate over. - * @throws When required arguments are missing. - */ +class ActorRdfParseHtml extends core_1.Actor { constructor(args) { - Object.assign(this, args); - } - /** - * Publish the given action in the bus. - * - * This will send the test action on all actors in the bus. - * All actor replies will be returned. - * - * @param {I} action The action to mediate for. - * @return {IActorReply, I extends IAction, T extends IActorTest, O extends IActorOutput>[]} - * The list of actor replies. - */ - publish(action) { - // Test all actors in the bus - const actors = this.bus.publish(action); - if (actors.length === 0) { - throw new Error(`No actors are able to reply to a message in the bus ${this.bus.name}`); - } - return actors; - } - /** - * Mediate for the given action to get an actor. - * - * This will send the test action on all actors in the bus. - * The actor that tests _best_ will be returned. - * - * @param {I} action The action to mediate for. - * @return {Promise} A promise that resolves to the _best_ actor. - */ - async mediateActor(action) { - // Mediate to one actor and run that actor. - return await this.mediateWith(action, this.publish(action)); - } - /** - * Mediate for the given action. - * - * This will send the test action on all actors in the bus. - * The action will be run on the actor that tests _best_, - * of which the result will be returned. - * - * @param {I} action The action to mediate for. - * @return {Promise} A promise that resolves to the mediation result. - */ - async mediate(action) { - // Mediate to one actor and run the action on it - const actor = await this.mediateActor(action); - return actor.runObservable(action); + super(args); } } -exports.Mediator = Mediator; -//# sourceMappingURL=Mediator.js.map +exports.ActorRdfParseHtml = ActorRdfParseHtml; +//# sourceMappingURL=ActorRdfParseHtml.js.map /***/ }), -/***/ "./node_modules/@comunica/data-factory/index.js": -/*!******************************************************!*\ - !*** ./node_modules/@comunica/data-factory/index.js ***! - \******************************************************/ +/***/ "./node_modules/@comunica/bus-rdf-parse/index.js": +/*!*******************************************************!*\ + !*** ./node_modules/@comunica/bus-rdf-parse/index.js ***! + \*******************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { @@ -15385,76 +17861,83 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) { for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); }; Object.defineProperty(exports, "__esModule", { value: true }); -__exportStar(__webpack_require__(/*! ./lib/BlankNodeScoped */ "./node_modules/@comunica/data-factory/lib/BlankNodeScoped.js"), exports); -__exportStar(__webpack_require__(/*! ./lib/BlankNodeBindingsScoped */ "./node_modules/@comunica/data-factory/lib/BlankNodeBindingsScoped.js"), exports); +__exportStar(__webpack_require__(/*! ./lib/ActorRdfParse */ "./node_modules/@comunica/bus-rdf-parse/lib/ActorRdfParse.js"), exports); +__exportStar(__webpack_require__(/*! ./lib/ActorRdfParseFixedMediaTypes */ "./node_modules/@comunica/bus-rdf-parse/lib/ActorRdfParseFixedMediaTypes.js"), exports); //# sourceMappingURL=index.js.map /***/ }), -/***/ "./node_modules/@comunica/data-factory/lib/BlankNodeBindingsScoped.js": -/*!****************************************************************************!*\ - !*** ./node_modules/@comunica/data-factory/lib/BlankNodeBindingsScoped.js ***! - \****************************************************************************/ +/***/ "./node_modules/@comunica/bus-rdf-parse/lib/ActorRdfParse.js": +/*!*******************************************************************!*\ + !*** ./node_modules/@comunica/bus-rdf-parse/lib/ActorRdfParse.js ***! + \*******************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -exports.BlankNodeBindingsScoped = void 0; +exports.ActorRdfParse = void 0; +const actor_abstract_mediatyped_1 = __webpack_require__(/*! @comunica/actor-abstract-mediatyped */ "./node_modules/@comunica/actor-abstract-mediatyped/index.js"); /** - * A blank node that is scoped to a set of bindings. + * A base actor for listening to RDF parse events. + * + * Actor types: + * * Input: IActionRdfParseOrMediaType: A parse input or a media type input. + * * Test: + * * Output: IActorOutputRdfParseOrMediaType: The parsed quads. + * + * @see IActionInit */ -class BlankNodeBindingsScoped { - constructor(value) { - this.termType = 'BlankNode'; - this.singleBindingsScope = true; - this.value = value; - } - equals(other) { - // eslint-disable-next-line no-implicit-coercion - return !!other && other.termType === 'BlankNode' && other.value === this.value; +class ActorRdfParse extends actor_abstract_mediatyped_1.ActorAbstractMediaTyped { + constructor(args) { + super(args); } } -exports.BlankNodeBindingsScoped = BlankNodeBindingsScoped; -//# sourceMappingURL=BlankNodeBindingsScoped.js.map +exports.ActorRdfParse = ActorRdfParse; +//# sourceMappingURL=ActorRdfParse.js.map /***/ }), -/***/ "./node_modules/@comunica/data-factory/lib/BlankNodeScoped.js": -/*!********************************************************************!*\ - !*** ./node_modules/@comunica/data-factory/lib/BlankNodeScoped.js ***! - \********************************************************************/ +/***/ "./node_modules/@comunica/bus-rdf-parse/lib/ActorRdfParseFixedMediaTypes.js": +/*!**********************************************************************************!*\ + !*** ./node_modules/@comunica/bus-rdf-parse/lib/ActorRdfParseFixedMediaTypes.js ***! + \**********************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -exports.BlankNodeScoped = void 0; +exports.ActorRdfParseFixedMediaTypes = void 0; +const actor_abstract_mediatyped_1 = __webpack_require__(/*! @comunica/actor-abstract-mediatyped */ "./node_modules/@comunica/actor-abstract-mediatyped/index.js"); /** - * A blank node that is scoped to a certain source. + * A base actor for listening to RDF parse events that has fixed media types. + * + * Actor types: + * * Input: IActionRdfParseOrMediaType: A parse input or a media type input. + * * Test: + * * Output: IActorOutputRdfParseOrMediaType: The parsed quads. + * + * @see IActionInit */ -class BlankNodeScoped { - constructor(value, skolemized) { - this.termType = 'BlankNode'; - this.value = value; - this.skolemized = skolemized; +class ActorRdfParseFixedMediaTypes extends actor_abstract_mediatyped_1.ActorAbstractMediaTypedFixed { + constructor(args) { + super(args); } - equals(other) { - // eslint-disable-next-line no-implicit-coercion - return !!other && other.termType === 'BlankNode' && other.value === this.value; + async testHandleChecked(action) { + return true; } } -exports.BlankNodeScoped = BlankNodeScoped; -//# sourceMappingURL=BlankNodeScoped.js.map +exports.ActorRdfParseFixedMediaTypes = ActorRdfParseFixedMediaTypes; +//# sourceMappingURL=ActorRdfParseFixedMediaTypes.js.map /***/ }), -/***/ "./node_modules/@comunica/logger-void/index.js": -/*!*****************************************************!*\ - !*** ./node_modules/@comunica/logger-void/index.js ***! - \*****************************************************/ +/***/ "./node_modules/@comunica/bus-rdf-resolve-hypermedia-links-queue/index.js": +/*!********************************************************************************!*\ + !*** ./node_modules/@comunica/bus-rdf-resolve-hypermedia-links-queue/index.js ***! + \********************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { @@ -15471,55 +17954,103 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) { for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); }; Object.defineProperty(exports, "__esModule", { value: true }); -__exportStar(__webpack_require__(/*! ./lib/LoggerVoid */ "./node_modules/@comunica/logger-void/lib/LoggerVoid.js"), exports); +__exportStar(__webpack_require__(/*! ./lib/ActorRdfResolveHypermediaLinksQueue */ "./node_modules/@comunica/bus-rdf-resolve-hypermedia-links-queue/lib/ActorRdfResolveHypermediaLinksQueue.js"), exports); +__exportStar(__webpack_require__(/*! ./lib/ILinkQueue */ "./node_modules/@comunica/bus-rdf-resolve-hypermedia-links-queue/lib/ILinkQueue.js"), exports); +__exportStar(__webpack_require__(/*! ./lib/LinkQueueWrapper */ "./node_modules/@comunica/bus-rdf-resolve-hypermedia-links-queue/lib/LinkQueueWrapper.js"), exports); //# sourceMappingURL=index.js.map /***/ }), -/***/ "./node_modules/@comunica/logger-void/lib/LoggerVoid.js": -/*!**************************************************************!*\ - !*** ./node_modules/@comunica/logger-void/lib/LoggerVoid.js ***! - \**************************************************************/ +/***/ "./node_modules/@comunica/bus-rdf-resolve-hypermedia-links-queue/lib/ActorRdfResolveHypermediaLinksQueue.js": +/*!******************************************************************************************************************!*\ + !*** ./node_modules/@comunica/bus-rdf-resolve-hypermedia-links-queue/lib/ActorRdfResolveHypermediaLinksQueue.js ***! + \******************************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -exports.LoggerVoid = void 0; +exports.ActorRdfResolveHypermediaLinksQueue = void 0; const core_1 = __webpack_require__(/*! @comunica/core */ "./node_modules/@comunica/core/index.js"); /** - * A logger that voids everything. + * A comunica actor for rdf-resolve-hypermedia-links-queue events. + * + * Actor types: + * * Input: IActionRdfResolveHypermediaLinksQueue: Creates a new {@link ILinkQueue} for the given seed URL. + * * Test: + * * Output: IActorRdfResolveHypermediaLinksQueueOutput: The created {@link ILinkQueue}. + * + * @see IActionRdfResolveHypermediaLinksQueue + * @see IActorRdfResolveHypermediaLinksQueueOutput */ -class LoggerVoid extends core_1.Logger { - debug() { - // Void +class ActorRdfResolveHypermediaLinksQueue extends core_1.Actor { + constructor(args) { + super(args); } - error() { - // Void +} +exports.ActorRdfResolveHypermediaLinksQueue = ActorRdfResolveHypermediaLinksQueue; +//# sourceMappingURL=ActorRdfResolveHypermediaLinksQueue.js.map + +/***/ }), + +/***/ "./node_modules/@comunica/bus-rdf-resolve-hypermedia-links-queue/lib/ILinkQueue.js": +/*!*****************************************************************************************!*\ + !*** ./node_modules/@comunica/bus-rdf-resolve-hypermedia-links-queue/lib/ILinkQueue.js ***! + \*****************************************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=ILinkQueue.js.map + +/***/ }), + +/***/ "./node_modules/@comunica/bus-rdf-resolve-hypermedia-links-queue/lib/LinkQueueWrapper.js": +/*!***********************************************************************************************!*\ + !*** ./node_modules/@comunica/bus-rdf-resolve-hypermedia-links-queue/lib/LinkQueueWrapper.js ***! + \***********************************************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +exports.LinkQueueWrapper = void 0; +/** + * A link queue that wraps a given link queue. + */ +class LinkQueueWrapper { + constructor(linkQueue) { + this.linkQueue = linkQueue; } - fatal() { - // Void + push(link, parent) { + return this.linkQueue.push(link, parent); } - info() { - // Void + getSize() { + return this.linkQueue.getSize(); } - trace() { - // Void + isEmpty() { + return this.linkQueue.isEmpty(); } - warn() { - // Void + pop() { + return this.linkQueue.pop(); + } + peek() { + return this.linkQueue.peek(); } } -exports.LoggerVoid = LoggerVoid; -//# sourceMappingURL=LoggerVoid.js.map +exports.LinkQueueWrapper = LinkQueueWrapper; +//# sourceMappingURL=LinkQueueWrapper.js.map /***/ }), -/***/ "./node_modules/@comunica/mediator-all/index.js": -/*!******************************************************!*\ - !*** ./node_modules/@comunica/mediator-all/index.js ***! - \******************************************************/ +/***/ "./node_modules/@comunica/bus-rdf-resolve-hypermedia-links/index.js": +/*!**************************************************************************!*\ + !*** ./node_modules/@comunica/bus-rdf-resolve-hypermedia-links/index.js ***! + \**************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { @@ -15536,67 +18067,48 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) { for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); }; Object.defineProperty(exports, "__esModule", { value: true }); -__exportStar(__webpack_require__(/*! ./lib/MediatorAll */ "./node_modules/@comunica/mediator-all/lib/MediatorAll.js"), exports); +__exportStar(__webpack_require__(/*! ./lib/ActorRdfResolveHypermediaLinks */ "./node_modules/@comunica/bus-rdf-resolve-hypermedia-links/lib/ActorRdfResolveHypermediaLinks.js"), exports); //# sourceMappingURL=index.js.map /***/ }), -/***/ "./node_modules/@comunica/mediator-all/lib/MediatorAll.js": -/*!****************************************************************!*\ - !*** ./node_modules/@comunica/mediator-all/lib/MediatorAll.js ***! - \****************************************************************/ +/***/ "./node_modules/@comunica/bus-rdf-resolve-hypermedia-links/lib/ActorRdfResolveHypermediaLinks.js": +/*!*******************************************************************************************************!*\ + !*** ./node_modules/@comunica/bus-rdf-resolve-hypermedia-links/lib/ActorRdfResolveHypermediaLinks.js ***! + \*******************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -exports.MediatorAll = void 0; +exports.ActorRdfResolveHypermediaLinks = void 0; const core_1 = __webpack_require__(/*! @comunica/core */ "./node_modules/@comunica/core/index.js"); /** - * A comunica mediator that runs all actors that resolve their test. - * This mediator will always resolve to the first actor's output. + * A comunica actor for rdf-resolve-hypermedia-links events. + * + * Actor types: + * * Input: IActionRdfResolveHypermediaLinks: The metadata from which the links should be extracted. + * * Test: + * * Output: IActorRdfResolveHypermediaLinksOutput: The URLs that were detected. + * + * @see IActionRdfResolveHypermediaLinks + * @see IActorRdfResolveHypermediaLinksOutput */ -class MediatorAll extends core_1.Mediator { +class ActorRdfResolveHypermediaLinks extends core_1.Actor { constructor(args) { super(args); } - async mediate(action) { - // Collect all actors that resolve their test - const validActors = []; - let testResults; - try { - testResults = this.publish(action); - } - catch (_a) { - testResults = []; - } - for (const testResult of testResults) { - try { - await testResult.reply; - validActors.push(testResult.actor); - } - catch (_b) { - // Ignore errors - } - } - // Send action to all valid actors - const outputs = await Promise.all(validActors.map(actor => actor.runObservable(action))); - return outputs[0]; - } - async mediateWith() { - throw new Error('Unsupported operation: MediatorAll#mediateWith'); - } } -exports.MediatorAll = MediatorAll; -//# sourceMappingURL=MediatorAll.js.map +exports.ActorRdfResolveHypermediaLinks = ActorRdfResolveHypermediaLinks; +//# sourceMappingURL=ActorRdfResolveHypermediaLinks.js.map /***/ }), -/***/ "./node_modules/@comunica/mediator-combine-pipeline/index.js": -/*!*******************************************************************!*\ - !*** ./node_modules/@comunica/mediator-combine-pipeline/index.js ***! - \*******************************************************************/ +/***/ "./node_modules/@comunica/bus-rdf-resolve-hypermedia/index.js": +/*!********************************************************************!*\ + !*** ./node_modules/@comunica/bus-rdf-resolve-hypermedia/index.js ***! + \********************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { @@ -15613,64 +18125,55 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) { for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); }; Object.defineProperty(exports, "__esModule", { value: true }); -__exportStar(__webpack_require__(/*! ./lib/MediatorCombinePipeline */ "./node_modules/@comunica/mediator-combine-pipeline/lib/MediatorCombinePipeline.js"), exports); +__exportStar(__webpack_require__(/*! ./lib/ActorRdfResolveHypermedia */ "./node_modules/@comunica/bus-rdf-resolve-hypermedia/lib/ActorRdfResolveHypermedia.js"), exports); //# sourceMappingURL=index.js.map /***/ }), -/***/ "./node_modules/@comunica/mediator-combine-pipeline/lib/MediatorCombinePipeline.js": -/*!*****************************************************************************************!*\ - !*** ./node_modules/@comunica/mediator-combine-pipeline/lib/MediatorCombinePipeline.js ***! - \*****************************************************************************************/ +/***/ "./node_modules/@comunica/bus-rdf-resolve-hypermedia/lib/ActorRdfResolveHypermedia.js": +/*!********************************************************************************************!*\ + !*** ./node_modules/@comunica/bus-rdf-resolve-hypermedia/lib/ActorRdfResolveHypermedia.js ***! + \********************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -exports.MediatorCombinePipeline = void 0; +exports.ActorRdfResolveHypermedia = void 0; const core_1 = __webpack_require__(/*! @comunica/core */ "./node_modules/@comunica/core/index.js"); /** - * A comunica mediator that goes over all actors in sequence and forwards I/O. - * This required the action input and the actor output to be of the same type. + * A comunica actor for rdf-resolve-hypermedia bus. + * + * Actor types: + * * Input: IActionRdfResolveHypermedia: The metadata in the document and a query operation. + * * Test: + * * Output: IActorRdfResolveHypermediaOutput: An RDF source. + * + * @see IActionRdfResolveQuadPattern + * @see IActorRdfResolveQuadPatternOutput */ -class MediatorCombinePipeline extends core_1.Mediator { - constructor(args) { +class ActorRdfResolveHypermedia extends core_1.Actor { + constructor(args, sourceType) { super(args); + this.sourceType = sourceType; } - async mediate(action) { - let testResults; - try { - testResults = this.publish(action); - } - catch (_a) { - // If no actors are available, just return the input as output - return action; - } - // Delegate test errors. - await Promise.all(testResults.map(({ reply }) => reply)); - // Pass action to first actor, - // and each actor output as input to the following actor. - let handle = action; - for (const actor of testResults.map(result => result.actor)) { - handle = Object.assign(Object.assign({}, handle), await actor.runObservable(handle)); + async test(action) { + if (action.forceSourceType && this.sourceType !== action.forceSourceType) { + throw new Error(`Actor ${this.name} is not able to handle source type ${action.forceSourceType}.`); } - // Return the final actor output - return handle; - } - mediateWith() { - throw new Error('Method not supported.'); + return this.testMetadata(action); } } -exports.MediatorCombinePipeline = MediatorCombinePipeline; -//# sourceMappingURL=MediatorCombinePipeline.js.map +exports.ActorRdfResolveHypermedia = ActorRdfResolveHypermedia; +//# sourceMappingURL=ActorRdfResolveHypermedia.js.map /***/ }), -/***/ "./node_modules/@comunica/mediator-combine-union/index.js": -/*!****************************************************************!*\ - !*** ./node_modules/@comunica/mediator-combine-union/index.js ***! - \****************************************************************/ +/***/ "./node_modules/@comunica/bus-rdf-resolve-quad-pattern/index.js": +/*!**********************************************************************!*\ + !*** ./node_modules/@comunica/bus-rdf-resolve-quad-pattern/index.js ***! + \**********************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { @@ -15687,73 +18190,185 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) { for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); }; Object.defineProperty(exports, "__esModule", { value: true }); -__exportStar(__webpack_require__(/*! ./lib/MediatorCombineUnion */ "./node_modules/@comunica/mediator-combine-union/lib/MediatorCombineUnion.js"), exports); +__exportStar(__webpack_require__(/*! ./lib/ActorRdfResolveQuadPattern */ "./node_modules/@comunica/bus-rdf-resolve-quad-pattern/lib/ActorRdfResolveQuadPattern.js"), exports); +__exportStar(__webpack_require__(/*! ./lib/ActorRdfResolveQuadPatternSource */ "./node_modules/@comunica/bus-rdf-resolve-quad-pattern/lib/ActorRdfResolveQuadPatternSource.js"), exports); //# sourceMappingURL=index.js.map /***/ }), -/***/ "./node_modules/@comunica/mediator-combine-union/lib/MediatorCombineUnion.js": -/*!***********************************************************************************!*\ - !*** ./node_modules/@comunica/mediator-combine-union/lib/MediatorCombineUnion.js ***! - \***********************************************************************************/ +/***/ "./node_modules/@comunica/bus-rdf-resolve-quad-pattern/lib/ActorRdfResolveQuadPattern.js": +/*!***********************************************************************************************!*\ + !*** ./node_modules/@comunica/bus-rdf-resolve-quad-pattern/lib/ActorRdfResolveQuadPattern.js ***! + \***********************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -exports.MediatorCombineUnion = void 0; +exports.ActorRdfResolveQuadPattern = exports.getDataSourceContext = exports.getDataSourceValue = exports.getDataSourceType = exports.isDataSourceRawType = exports.KEY_CONTEXT_SOURCE = exports.KEY_CONTEXT_SOURCES = void 0; +const context_entries_1 = __webpack_require__(/*! @comunica/context-entries */ "./node_modules/@comunica/context-entries/index.js"); const core_1 = __webpack_require__(/*! @comunica/core */ "./node_modules/@comunica/core/index.js"); /** - * A comunica mediator that takes the union of all actor results. - * - * The actors that are registered first will have priority on setting overlapping fields. - */ -class MediatorCombineUnion extends core_1.Mediator { + * @type {string} Context entry for data sources. + * @value {DataSources} An array of sources. + * @deprecated Import this constant from @comunica/context-entries. + */ +exports.KEY_CONTEXT_SOURCES = context_entries_1.KeysRdfResolveQuadPattern.sources; +/** + * @type {string} Context entry for a data source. + * @value {IDataSource} A source. + * @deprecated Import this constant from @comunica/context-entries. + */ +exports.KEY_CONTEXT_SOURCE = context_entries_1.KeysRdfResolveQuadPattern.source; +function isDataSourceRawType(dataSource) { + return typeof dataSource === 'string' || 'match' in dataSource; +} +exports.isDataSourceRawType = isDataSourceRawType; +function getDataSourceType(dataSource) { + if (typeof dataSource === 'string') { + return ''; + } + return 'match' in dataSource ? 'rdfjsSource' : dataSource.type; +} +exports.getDataSourceType = getDataSourceType; +function getDataSourceValue(dataSource) { + return isDataSourceRawType(dataSource) ? dataSource : dataSource.value; +} +exports.getDataSourceValue = getDataSourceValue; +function getDataSourceContext(dataSource, context) { + if (typeof dataSource === 'string' || 'match' in dataSource || !dataSource.context) { + return context; + } + return context.merge(dataSource.context); +} +exports.getDataSourceContext = getDataSourceContext; +/** + * A comunica actor for rdf-resolve-quad-pattern events. + * + * Actor types: + * * Input: IActionRdfResolveQuadPattern: A quad pattern and an optional context. + * * Test: + * * Output: IActorRdfResolveQuadPatternOutput: The resulting quad stream and optional metadata. + * + * @see IActionRdfResolveQuadPattern + * @see IActorRdfResolveQuadPatternOutput + */ +class ActorRdfResolveQuadPattern extends core_1.Actor { constructor(args) { super(args); - this.combiner = this.createCombiner(); } - async mediate(action) { - let testResults; - try { - testResults = this.publish(action); - } - catch (_a) { - testResults = []; + /** + * Get the sources from the given context. + * @param {ActionContext} context An optional context. + * @return {IDataSource[]} The array of sources or undefined. + */ + getContextSources(context) { + return context ? context.get(context_entries_1.KeysRdfResolveQuadPattern.sources) : undefined; + } + /** + * Get the source from the given context. + * @param {ActionContext} context An optional context. + * @return {IDataSource} The source or undefined. + */ + getContextSource(context) { + return context ? context.get(context_entries_1.KeysRdfResolveQuadPattern.source) : undefined; + } + /** + * Get the source's raw URL value from the given context. + * @param {IDataSource} source A source. + * @return {string} The URL or null. + */ + getContextSourceUrl(source) { + if (source) { + let fileUrl = getDataSourceValue(source); + if (typeof fileUrl === 'string') { + // Remove hashes from source + const hashPosition = fileUrl.indexOf('#'); + if (hashPosition >= 0) { + fileUrl = fileUrl.slice(0, hashPosition); + } + return fileUrl; + } } - // Delegate test errors. - await Promise.all(testResults.map(({ reply }) => reply)); - // Run action on all actors. - const results = await Promise.all(testResults.map(result => result.actor.runObservable(action))); - // Return the combined results. - return this.combiner(results); } - mediateWith() { - throw new Error('Method not supported.'); + /** + * Check if the given context has a single source. + * @param {ActionContext} context An optional context. + * @return {boolean} If the given context has a single source of the given type. + */ + hasContextSingleSource(context) { + const source = this.getContextSource(context); + return Boolean(source && (isDataSourceRawType(source) || source.value)); } - createCombiner() { - return (results) => { - const data = {}; - data[this.field] = {}; - // eslint-disable-next-line unicorn/prefer-spread - [{}].concat(results.map((result) => result[this.field])) - .forEach((value, index, arr) => { - data[this.field] = Object.assign(Object.assign({}, value), data[this.field]); - }); - return data; - }; + /** + * Check if the given context has a single source of the given type. + * @param {string} requiredType The required source type name. + * @param {ActionContext} context An optional context. + * @return {boolean} If the given context has a single source of the given type. + */ + hasContextSingleSourceOfType(requiredType, context) { + const source = this.getContextSource(context); + return Boolean(source && getDataSourceType(source) === requiredType && getDataSourceValue(source)); } } -exports.MediatorCombineUnion = MediatorCombineUnion; -//# sourceMappingURL=MediatorCombineUnion.js.map +exports.ActorRdfResolveQuadPattern = ActorRdfResolveQuadPattern; +//# sourceMappingURL=ActorRdfResolveQuadPattern.js.map /***/ }), -/***/ "./node_modules/@comunica/mediator-number/index.js": -/*!*********************************************************!*\ - !*** ./node_modules/@comunica/mediator-number/index.js ***! - \*********************************************************/ +/***/ "./node_modules/@comunica/bus-rdf-resolve-quad-pattern/lib/ActorRdfResolveQuadPatternSource.js": +/*!*****************************************************************************************************!*\ + !*** ./node_modules/@comunica/bus-rdf-resolve-quad-pattern/lib/ActorRdfResolveQuadPatternSource.js ***! + \*****************************************************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ActorRdfResolveQuadPatternSource = void 0; +const ActorRdfResolveQuadPattern_1 = __webpack_require__(/*! ./ActorRdfResolveQuadPattern */ "./node_modules/@comunica/bus-rdf-resolve-quad-pattern/lib/ActorRdfResolveQuadPattern.js"); +/** + * A base implementation for rdf-resolve-quad-pattern events + * that wraps around an {@link IQuadSource}. + * + * @see IQuadSource + */ +class ActorRdfResolveQuadPatternSource extends ActorRdfResolveQuadPattern_1.ActorRdfResolveQuadPattern { + constructor(args) { + super(args); + } + async test(action) { + return true; + } + async run(action) { + const source = await this.getSource(action.context, action.pattern); + return await this.getOutput(source, action.pattern, action.context); + } + /** + * Get the output of the given action on a source. + * @param {IQuadSource} source A quad source, possibly lazy. + * @param {Algebra.Operation} operation The operation to apply. + * @param ActionContext context Optional context data. + * @return {Promise} A promise that resolves to a hash containing + * a data RDFJS stream. + */ + async getOutput(source, pattern, context) { + // Create data stream + const data = source.match(pattern.subject, pattern.predicate, pattern.object, pattern.graph); + return { data }; + } +} +exports.ActorRdfResolveQuadPatternSource = ActorRdfResolveQuadPatternSource; +//# sourceMappingURL=ActorRdfResolveQuadPatternSource.js.map + +/***/ }), + +/***/ "./node_modules/@comunica/bus-rdf-serialize/index.js": +/*!***********************************************************!*\ + !*** ./node_modules/@comunica/bus-rdf-serialize/index.js ***! + \***********************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { @@ -15770,90 +18385,84 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) { for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); }; Object.defineProperty(exports, "__esModule", { value: true }); -__exportStar(__webpack_require__(/*! ./lib/MediatorNumber */ "./node_modules/@comunica/mediator-number/lib/MediatorNumber.js"), exports); +__exportStar(__webpack_require__(/*! ./lib/ActorRdfSerialize */ "./node_modules/@comunica/bus-rdf-serialize/lib/ActorRdfSerialize.js"), exports); +__exportStar(__webpack_require__(/*! ./lib/ActorRdfSerializeFixedMediaTypes */ "./node_modules/@comunica/bus-rdf-serialize/lib/ActorRdfSerializeFixedMediaTypes.js"), exports); //# sourceMappingURL=index.js.map /***/ }), -/***/ "./node_modules/@comunica/mediator-number/lib/MediatorNumber.js": -/*!**********************************************************************!*\ - !*** ./node_modules/@comunica/mediator-number/lib/MediatorNumber.js ***! - \**********************************************************************/ +/***/ "./node_modules/@comunica/bus-rdf-serialize/lib/ActorRdfSerialize.js": +/*!***************************************************************************!*\ + !*** ./node_modules/@comunica/bus-rdf-serialize/lib/ActorRdfSerialize.js ***! + \***************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -exports.MediatorNumber = void 0; -const core_1 = __webpack_require__(/*! @comunica/core */ "./node_modules/@comunica/core/index.js"); +exports.ActorRdfSerialize = void 0; +const actor_abstract_mediatyped_1 = __webpack_require__(/*! @comunica/actor-abstract-mediatyped */ "./node_modules/@comunica/actor-abstract-mediatyped/index.js"); /** - * A mediator that can mediate over a single number field. + * A comunica actor for RDF parse events. * - * It takes the required 'field' and 'type' parameters. - * The 'field' parameter represents the field name of the test result field over which must be mediated. - * The 'type' parameter + * Actor types: + * * Input: IActionRdfSerialize: A serialize input or a media type input. + * * Test: + * * Output: IActorRdfSerializeOutput: The serialized quads. + * + * @see IActionRdfSerialize + * @see IActorRdfSerializeOutput */ -class MediatorNumber extends core_1.Mediator { +class ActorRdfSerialize extends actor_abstract_mediatyped_1.ActorAbstractMediaTyped { constructor(args) { super(args); - this.indexPicker = this.createIndexPicker(); - } - /** - * @return {(tests: T[]) => number} A function that returns the index of the test result - * that has been chosen by this mediator. - */ - createIndexPicker() { - switch (this.type) { - case MediatorNumber.MIN: - return (tests) => tests.reduce((prev, curr, i) => { - const val = this.getOrDefault(curr[this.field], Number.POSITIVE_INFINITY); - return val !== null && (Number.isNaN(prev[0]) || prev[0] > val) ? [val, i] : prev; - }, [Number.NaN, -1])[1]; - case MediatorNumber.MAX: - return (tests) => tests.reduce((prev, curr, i) => { - const val = this.getOrDefault(curr[this.field], Number.NEGATIVE_INFINITY); - return val !== null && (Number.isNaN(prev[0]) || prev[0] < val) ? [val, i] : prev; - }, [Number.NaN, -1])[1]; - default: - throw new Error(`No valid "type" value was given, must be either ${MediatorNumber.MIN} or ${MediatorNumber.MAX}, but got: ${this.type}`); - } } - getOrDefault(value, defaultValue) { - return value === undefined ? defaultValue : value; +} +exports.ActorRdfSerialize = ActorRdfSerialize; +//# sourceMappingURL=ActorRdfSerialize.js.map + +/***/ }), + +/***/ "./node_modules/@comunica/bus-rdf-serialize/lib/ActorRdfSerializeFixedMediaTypes.js": +/*!******************************************************************************************!*\ + !*** ./node_modules/@comunica/bus-rdf-serialize/lib/ActorRdfSerializeFixedMediaTypes.js ***! + \******************************************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ActorRdfSerializeFixedMediaTypes = void 0; +const actor_abstract_mediatyped_1 = __webpack_require__(/*! @comunica/actor-abstract-mediatyped */ "./node_modules/@comunica/actor-abstract-mediatyped/index.js"); +/** + * A base actor for listening to RDF serialize events that has fixed media types. + * + * Actor types: + * * Input: IActionRdfSerializeOrMediaType: A serialize input or a media type input. + * * Test: + * * Output: IActorRdfSerializeOutputOrMediaType: The serialized quads. + * + * @see IActionInit + */ +class ActorRdfSerializeFixedMediaTypes extends actor_abstract_mediatyped_1.ActorAbstractMediaTypedFixed { + constructor(args) { + super(args); } - async mediateWith(action, testResults) { - let promises = testResults.map(({ reply }) => reply); - const errors = []; - if (this.ignoreErrors) { - const dummy = {}; - dummy[this.field] = null; - promises = promises.map(promise => promise.catch(error => { - errors.push(error); - return dummy; - })); - } - const results = await Promise.all(promises); - const index = this.indexPicker(results); - if (index < 0) { - throw new Error(`All actors rejected their test in ${this.name}\n${errors.map(error => error.message).join('\n')}`); - } - return testResults[index].actor; + async testHandleChecked(action) { + return true; } } -exports.MediatorNumber = MediatorNumber; -MediatorNumber.MIN = 'https://linkedsoftwaredependencies.org/bundles/npm/@comunica/mediator-number/' + - 'Mediator/Number/type/TypeMin'; -MediatorNumber.MAX = 'https://linkedsoftwaredependencies.org/bundles/npm/@comunica/mediator-number/' + - 'Mediator/Number/type/TypeMax'; -//# sourceMappingURL=MediatorNumber.js.map +exports.ActorRdfSerializeFixedMediaTypes = ActorRdfSerializeFixedMediaTypes; +//# sourceMappingURL=ActorRdfSerializeFixedMediaTypes.js.map /***/ }), -/***/ "./node_modules/@comunica/mediator-race/index.js": -/*!*******************************************************!*\ - !*** ./node_modules/@comunica/mediator-race/index.js ***! - \*******************************************************/ +/***/ "./node_modules/@comunica/bus-rdf-update-hypermedia/index.js": +/*!*******************************************************************!*\ + !*** ./node_modules/@comunica/bus-rdf-update-hypermedia/index.js ***! + \*******************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { @@ -15870,56 +18479,55 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) { for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); }; Object.defineProperty(exports, "__esModule", { value: true }); -__exportStar(__webpack_require__(/*! ./lib/MediatorRace */ "./node_modules/@comunica/mediator-race/lib/MediatorRace.js"), exports); +__exportStar(__webpack_require__(/*! ./lib/ActorRdfUpdateHypermedia */ "./node_modules/@comunica/bus-rdf-update-hypermedia/lib/ActorRdfUpdateHypermedia.js"), exports); //# sourceMappingURL=index.js.map /***/ }), -/***/ "./node_modules/@comunica/mediator-race/lib/MediatorRace.js": -/*!******************************************************************!*\ - !*** ./node_modules/@comunica/mediator-race/lib/MediatorRace.js ***! - \******************************************************************/ +/***/ "./node_modules/@comunica/bus-rdf-update-hypermedia/lib/ActorRdfUpdateHypermedia.js": +/*!******************************************************************************************!*\ + !*** ./node_modules/@comunica/bus-rdf-update-hypermedia/lib/ActorRdfUpdateHypermedia.js ***! + \******************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -exports.MediatorRace = void 0; +exports.ActorRdfUpdateHypermedia = void 0; const core_1 = __webpack_require__(/*! @comunica/core */ "./node_modules/@comunica/core/index.js"); /** - * A mediator that picks the first actor that resolves its test. + * A comunica actor for rdf-update-hypermedia events. + * + * Actor types: + * * Input: IActionRdfUpdateHypermedia: The metadata in the document. + * * Test: + * * Output: IActorRdfUpdateHypermediaOutput: An RDF destination. + * + * @see IActionRdfUpdateHypermedia + * @see IActorRdfUpdateHypermediaOutput */ -class MediatorRace extends core_1.Mediator { - constructor(args) { +class ActorRdfUpdateHypermedia extends core_1.Actor { + constructor(args, destinationType) { super(args); + this.destinationType = destinationType; } - mediateWith(action, testResults) { - return new Promise((resolve, reject) => { - const errors = []; - for (const testResult of testResults) { - testResult.reply.then(() => { - resolve(testResult.actor); - }).catch(error => { - // Reject if all replies were rejected - errors.push(error); - if (errors.length === testResults.length) { - reject(new Error(`${this.name} mediated over all rejecting actors:\n${errors.map(subError => subError.message).join('\n')}`)); - } - }); - } - }); + async test(action) { + if (action.forceDestinationType && this.destinationType !== action.forceDestinationType) { + throw new Error(`Actor ${this.name} is not able to handle destination type ${action.forceDestinationType}.`); + } + return this.testMetadata(action); } } -exports.MediatorRace = MediatorRace; -//# sourceMappingURL=MediatorRace.js.map +exports.ActorRdfUpdateHypermedia = ActorRdfUpdateHypermedia; +//# sourceMappingURL=ActorRdfUpdateHypermedia.js.map /***/ }), -/***/ "./node_modules/@comunica/utils-datasource/index.js": -/*!**********************************************************!*\ - !*** ./node_modules/@comunica/utils-datasource/index.js ***! - \**********************************************************/ +/***/ "./node_modules/@comunica/bus-rdf-update-quads/index.js": +/*!**************************************************************!*\ + !*** ./node_modules/@comunica/bus-rdf-update-quads/index.js ***! + \**************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { @@ -15936,15771 +18544,15247 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) { for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); }; Object.defineProperty(exports, "__esModule", { value: true }); -__exportStar(__webpack_require__(/*! ./lib/DataSourceUtils */ "./node_modules/@comunica/utils-datasource/lib/DataSourceUtils.js"), exports); +__exportStar(__webpack_require__(/*! ./lib/ActorRdfUpdateQuads */ "./node_modules/@comunica/bus-rdf-update-quads/lib/ActorRdfUpdateQuads.js"), exports); +__exportStar(__webpack_require__(/*! ./lib/ActorRdfUpdateQuadsDestination */ "./node_modules/@comunica/bus-rdf-update-quads/lib/ActorRdfUpdateQuadsDestination.js"), exports); +__exportStar(__webpack_require__(/*! ./lib/IQuadDestination */ "./node_modules/@comunica/bus-rdf-update-quads/lib/IQuadDestination.js"), exports); //# sourceMappingURL=index.js.map /***/ }), -/***/ "./node_modules/@comunica/utils-datasource/lib/DataSourceUtils.js": -/*!************************************************************************!*\ - !*** ./node_modules/@comunica/utils-datasource/lib/DataSourceUtils.js ***! - \************************************************************************/ +/***/ "./node_modules/@comunica/bus-rdf-update-quads/lib/ActorRdfUpdateQuads.js": +/*!********************************************************************************!*\ + !*** ./node_modules/@comunica/bus-rdf-update-quads/lib/ActorRdfUpdateQuads.js ***! + \********************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -exports.DataSourceUtils = void 0; -const bus_rdf_resolve_quad_pattern_1 = __webpack_require__(/*! @comunica/bus-rdf-resolve-quad-pattern */ "./node_modules/@comunica/bus-rdf-resolve-quad-pattern/index.js"); +exports.ActorRdfUpdateQuads = exports.getDataDestinationContext = exports.getDataDestinationValue = exports.getDataDestinationType = exports.isDataDestinationRawType = exports.KEY_CONTEXT_DESTINATION = void 0; const context_entries_1 = __webpack_require__(/*! @comunica/context-entries */ "./node_modules/@comunica/context-entries/index.js"); +const core_1 = __webpack_require__(/*! @comunica/core */ "./node_modules/@comunica/core/index.js"); /** - * Comunica datasource utilities + * @type {string} Context entry for a data destination. + * @value {IDataDestination} A destination. + * @deprecated Import this constant from @comunica/context-entries. */ -exports.DataSourceUtils = { - /** - * Get the single source if the context contains just a single source. - * @param {ActionContext} context A context, can be null. - * @return {Promise} A promise resolving to the single datasource or undefined. - */ - async getSingleSource(context) { - if (context && context.has(context_entries_1.KeysRdfResolveQuadPattern.source)) { - // If the single source is set - return context.get(context_entries_1.KeysRdfResolveQuadPattern.source); - } - if (context && context.has(context_entries_1.KeysRdfResolveQuadPattern.sources)) { - // If multiple sources are set - const datasources = context.get(context_entries_1.KeysRdfResolveQuadPattern.sources); - if (datasources.length === 1) { - return datasources[0]; - } - } - }, +exports.KEY_CONTEXT_DESTINATION = context_entries_1.KeysRdfUpdateQuads.destination; +function isDataDestinationRawType(dataDestination) { + return typeof dataDestination === 'string' || 'remove' in dataDestination; +} +exports.isDataDestinationRawType = isDataDestinationRawType; +function getDataDestinationType(dataDestination) { + if (typeof dataDestination === 'string') { + return ''; + } + return 'remove' in dataDestination ? 'rdfjsStore' : dataDestination.type; +} +exports.getDataDestinationType = getDataDestinationType; +function getDataDestinationValue(dataDestination) { + return isDataDestinationRawType(dataDestination) ? dataDestination : dataDestination.value; +} +exports.getDataDestinationValue = getDataDestinationValue; +function getDataDestinationContext(dataDestination, context) { + if (typeof dataDestination === 'string' || 'remove' in dataDestination || !dataDestination.context) { + return context; + } + return context.merge(dataDestination.context); +} +exports.getDataDestinationContext = getDataDestinationContext; +/** + * A comunica actor for rdf-update-quads events. + * + * Actor types: + * * Input: IActionRdfUpdateQuads: Quad insertion and deletion streams. + * * Test: + * * Output: IActorRdfUpdateQuadsOutput: A promise resolving when the update operation is done. + * + * @see IActionRdfUpdateQuads + * @see IActorRdfUpdateQuadsOutput + */ +class ActorRdfUpdateQuads extends core_1.Actor { + constructor(args) { + super(args); + } /** - * Get the type of a single source - * @param {ActionContext} context A context, can be undefined. - * @return {Promise} A promise resolving to the type of the source, can be undefined if source is undefined. + * Get the destination from the given context. + * @param {ActionContext} context An optional context. + * @return {IDataDestination} The destination or undefined. */ - async getSingleSourceType(context) { - const source = await this.getSingleSource(context); - return source ? bus_rdf_resolve_quad_pattern_1.getDataSourceType(source) : undefined; - }, + getContextDestination(context) { + return context ? context.get(exports.KEY_CONTEXT_DESTINATION) : undefined; + } /** - * Check if the given context has a single source of the given type. - * @param {ActionContext} context An optional context. - * @param {string} requiredType The required source type name. - * @return {boolean} If the given context has a single source of the given type. + * Get the destination's raw URL value from the given context. + * @param {IDataDestination} destination A destination. + * @return {string} The URL or undefined. */ - async singleSourceHasType(context, requiredType) { - const actualType = await this.getSingleSourceType(context); - return actualType ? actualType === requiredType : false; - }, -}; -//# sourceMappingURL=DataSourceUtils.js.map + getContextDestinationUrl(destination) { + if (destination) { + let fileUrl = getDataDestinationValue(destination); + if (typeof fileUrl === 'string') { + // Remove hashes from source + const hashPosition = fileUrl.indexOf('#'); + if (hashPosition >= 0) { + fileUrl = fileUrl.slice(0, hashPosition); + } + return fileUrl; + } + } + } +} +exports.ActorRdfUpdateQuads = ActorRdfUpdateQuads; +//# sourceMappingURL=ActorRdfUpdateQuads.js.map /***/ }), -/***/ "./node_modules/JSONStream/index.js": -/*!******************************************!*\ - !*** ./node_modules/JSONStream/index.js ***! - \******************************************/ +/***/ "./node_modules/@comunica/bus-rdf-update-quads/lib/ActorRdfUpdateQuadsDestination.js": +/*!*******************************************************************************************!*\ + !*** ./node_modules/@comunica/bus-rdf-update-quads/lib/ActorRdfUpdateQuadsDestination.js ***! + \*******************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -/* WEBPACK VAR INJECTION */(function(Buffer) { - -var Parser = __webpack_require__(/*! jsonparse */ "./node_modules/jsonparse/jsonparse.js") - , through = __webpack_require__(/*! through */ "./node_modules/through/index.js") - -var bufferFrom = Buffer.from && Buffer.from !== Uint8Array.from - -/* - - the value of this.stack that creationix's jsonparse has is weird. - - it makes this code ugly, but his problem is way harder that mine, - so i'll forgive him. - -*/ - -exports.parse = function (path, map) { - var header, footer - var parser = new Parser() - var stream = through(function (chunk) { - if('string' === typeof chunk) - chunk = bufferFrom ? Buffer.from(chunk) : new Buffer(chunk) - parser.write(chunk) - }, - function (data) { - if(data) - stream.write(data) - if (header) - stream.emit('header', header) - if (footer) - stream.emit('footer', footer) - stream.queue(null) - }) - - if('string' === typeof path) - path = path.split('.').map(function (e) { - if (e === '$*') - return {emitKey: true} - else if (e === '*') - return true - else if (e === '') // '..'.split('.') returns an empty string - return {recurse: true} - else - return e - }) - - var count = 0, _key - if(!path || !path.length) - path = null +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ActorRdfUpdateQuadsDestination = void 0; +const ActorRdfUpdateQuads_1 = __webpack_require__(/*! ./ActorRdfUpdateQuads */ "./node_modules/@comunica/bus-rdf-update-quads/lib/ActorRdfUpdateQuads.js"); +/** + * A base implementation for rdf-update-quads events + * that wraps around an {@link IQuadDestination}. + * + * @see IQuadDestination + */ +class ActorRdfUpdateQuadsDestination extends ActorRdfUpdateQuads_1.ActorRdfUpdateQuads { + async test(action) { + return true; + } + async run(action) { + const destination = await this.getDestination(action.context); + return await this.getOutput(destination, action, action.context); + } + /** + * Get the output of the given action on a destination. + * @param {IQuadDestination} destination A quad destination, possibly lazy. + * @param {IActionRdfUpdateQuads} action The action. + * @param {ActionContext} context Optional context data. + */ + async getOutput(destination, action, context) { + const updateResult = Promise.all([ + action.quadStreamInsert ? destination.insert(action.quadStreamInsert) : Promise.resolve(), + action.quadStreamDelete ? destination.delete(action.quadStreamDelete) : Promise.resolve(), + action.deleteGraphs ? + destination.deleteGraphs(action.deleteGraphs.graphs, action.deleteGraphs.requireExistence, action.deleteGraphs.dropGraphs) : + Promise.resolve(), + action.createGraphs ? + destination.createGraphs(action.createGraphs.graphs, action.createGraphs.requireNonExistence) : + Promise.resolve(), + ]).then(() => { + // Return void + }); + return { updateResult }; + } +} +exports.ActorRdfUpdateQuadsDestination = ActorRdfUpdateQuadsDestination; +//# sourceMappingURL=ActorRdfUpdateQuadsDestination.js.map - parser.onValue = function (value) { - if (!this.root) - stream.root = value +/***/ }), - if(! path) return +/***/ "./node_modules/@comunica/bus-rdf-update-quads/lib/IQuadDestination.js": +/*!*****************************************************************************!*\ + !*** ./node_modules/@comunica/bus-rdf-update-quads/lib/IQuadDestination.js ***! + \*****************************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { - var i = 0 // iterates on path - var j = 0 // iterates on stack - var emitKey = false; - var emitPath = false; - while (i < path.length) { - var key = path[i] - var c - j++ +"use strict"; - if (key && !key.recurse) { - c = (j === this.stack.length) ? this : this.stack[j] - if (!c) return - if (! check(key, c.key)) { - setHeaderFooter(c.key, value) - return - } - emitKey = !!key.emitKey; - emitPath = !!key.emitPath; - i++ - } else { - i++ - var nextKey = path[i] - if (! nextKey) return - while (true) { - c = (j === this.stack.length) ? this : this.stack[j] - if (!c) return - if (check(nextKey, c.key)) { - i++; - if (!Object.isFrozen(this.stack[j])) - this.stack[j].value = null - break - } else { - setHeaderFooter(c.key, value) - } - j++ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.validateHttpResponse = void 0; +const bus_http_1 = __webpack_require__(/*! @comunica/bus-http */ "./node_modules/@comunica/bus-http/index.js"); +const stringifyStream = __webpack_require__(/*! stream-to-string */ "./node_modules/stream-to-string/index.js"); +/** + * Check if the http response is valid, and throw an error if not. + * @param url The original URL that was to be updated. + * @param httpResponse The update response. + */ +async function validateHttpResponse(url, httpResponse) { + var _a; + // Check if update was successful + if (httpResponse.status >= 400) { + // Consume the body, to avoid process to hang + let bodyString = 'empty response'; + if (httpResponse.body) { + const responseStream = bus_http_1.ActorHttp.toNodeReadable(httpResponse.body); + bodyString = await stringifyStream(responseStream); } - } - + throw new Error(`Could not update ${url} (HTTP status ${httpResponse.status}):\n${bodyString}`); } + // Close response body, as we don't need it + await ((_a = httpResponse.body) === null || _a === void 0 ? void 0 : _a.cancel()); +} +exports.validateHttpResponse = validateHttpResponse; +//# sourceMappingURL=IQuadDestination.js.map - // emit header - if (header) { - stream.emit('header', header); - header = false; - } - if (j !== this.stack.length) return +/***/ }), - count ++ - var actualPath = this.stack.slice(1).map(function(element) { return element.key }).concat([this.key]) - var data = value - if(null != data) - if(null != (data = map ? map(data, actualPath) : data)) { - if (emitKey || emitPath) { - data = { value: data }; - if (emitKey) - data["key"] = this.key; - if (emitPath) - data["path"] = actualPath; - } +/***/ "./node_modules/@comunica/bus-sparql-parse/index.js": +/*!**********************************************************!*\ + !*** ./node_modules/@comunica/bus-sparql-parse/index.js ***! + \**********************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { - stream.queue(data) - } - if (this.value) delete this.value[this.key] - for(var k in this.stack) - if (!Object.isFrozen(this.stack[k])) - this.stack[k].value = null - } - parser._onToken = parser.onToken; +"use strict"; - parser.onToken = function (token, value) { - parser._onToken(token, value); - if (this.stack.length === 0) { - if (stream.root) { - if(!path) - stream.queue(stream.root) - count = 0; - stream.root = null; - } - } - } +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +__exportStar(__webpack_require__(/*! ./lib/ActorSparqlParse */ "./node_modules/@comunica/bus-sparql-parse/lib/ActorSparqlParse.js"), exports); +//# sourceMappingURL=index.js.map - parser.onError = function (err) { - if(err.message.indexOf("at position") > -1) - err.message = "Invalid JSON (" + err.message + ")"; - stream.emit('error', err) - } +/***/ }), - return stream +/***/ "./node_modules/@comunica/bus-sparql-parse/lib/ActorSparqlParse.js": +/*!*************************************************************************!*\ + !*** ./node_modules/@comunica/bus-sparql-parse/lib/ActorSparqlParse.js ***! + \*************************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { - function setHeaderFooter(key, value) { - // header has not been emitted yet - if (header !== false) { - header = header || {} - header[key] = value - } +"use strict"; - // footer has not been emitted yet but header has - if (footer !== false && header === false) { - footer = footer || {} - footer[key] = value +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ActorSparqlParse = void 0; +const core_1 = __webpack_require__(/*! @comunica/core */ "./node_modules/@comunica/core/index.js"); +/** + * A comunica actor for sparql-parse events. + * + * Actor types: + * * Input: IActionSparqlParse: A SPARQL query string. + * * Test: + * * Output: IActorSparqlParseOutput: A parsed query in SPARQL query algebra. + * + * @see IActionSparqlParse + * @see IActorSparqlParseOutput + */ +class ActorSparqlParse extends core_1.Actor { + constructor(args) { + super(args); } - } -} - -function check (x, y) { - if ('string' === typeof x) - return y == x - else if (x && 'function' === typeof x.exec) - return x.exec(y) - else if ('boolean' === typeof x || 'object' === typeof x) - return x - else if ('function' === typeof x) - return x(y) - return false } +exports.ActorSparqlParse = ActorSparqlParse; +//# sourceMappingURL=ActorSparqlParse.js.map -exports.stringify = function (op, sep, cl, indent) { - indent = indent || 0 - if (op === false){ - op = '' - sep = '\n' - cl = '' - } else if (op == null) { - - op = '[\n' - sep = '\n,\n' - cl = '\n]\n' +/***/ }), - } +/***/ "./node_modules/@comunica/bus-sparql-serialize/index.js": +/*!**************************************************************!*\ + !*** ./node_modules/@comunica/bus-sparql-serialize/index.js ***! + \**************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { - //else, what ever you like +"use strict"; - var stream - , first = true - , anyData = false - stream = through(function (data) { - anyData = true - try { - var json = JSON.stringify(data, null, indent) - } catch (err) { - return stream.emit('error', err) - } - if(first) { first = false ; stream.queue(op + json)} - else stream.queue(sep + json) - }, - function (data) { - if(!anyData) - stream.queue(op) - stream.queue(cl) - stream.queue(null) - }) +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +__exportStar(__webpack_require__(/*! ./lib/ActorSparqlSerialize */ "./node_modules/@comunica/bus-sparql-serialize/lib/ActorSparqlSerialize.js"), exports); +__exportStar(__webpack_require__(/*! ./lib/ActorSparqlSerializeFixedMediaTypes */ "./node_modules/@comunica/bus-sparql-serialize/lib/ActorSparqlSerializeFixedMediaTypes.js"), exports); +//# sourceMappingURL=index.js.map - return stream -} +/***/ }), -exports.stringifyObject = function (op, sep, cl, indent) { - indent = indent || 0 - if (op === false){ - op = '' - sep = '\n' - cl = '' - } else if (op == null) { +/***/ "./node_modules/@comunica/bus-sparql-serialize/lib/ActorSparqlSerialize.js": +/*!*********************************************************************************!*\ + !*** ./node_modules/@comunica/bus-sparql-serialize/lib/ActorSparqlSerialize.js ***! + \*********************************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { - op = '{\n' - sep = '\n,\n' - cl = '\n}\n' +"use strict"; - } +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ActorSparqlSerialize = void 0; +const actor_abstract_mediatyped_1 = __webpack_require__(/*! @comunica/actor-abstract-mediatyped */ "./node_modules/@comunica/actor-abstract-mediatyped/index.js"); +/** + * A comunica actor for sparql-serialize events. + * + * Actor types: + * * Input: IActionSparqlSerialize: SPARQL bindings or a quad stream. + * * Test: + * * Output: IActorSparqlSerializeOutput: A text stream. + * + * @see IActionSparqlSerialize + * @see IActorSparqlSerializeOutput + */ +class ActorSparqlSerialize extends actor_abstract_mediatyped_1.ActorAbstractMediaTyped { + constructor(args) { + super(args); + } +} +exports.ActorSparqlSerialize = ActorSparqlSerialize; +//# sourceMappingURL=ActorSparqlSerialize.js.map - //else, what ever you like +/***/ }), - var first = true - var anyData = false - var stream = through(function (data) { - anyData = true - var json = JSON.stringify(data[0]) + ':' + JSON.stringify(data[1], null, indent) - if(first) { first = false ; this.queue(op + json)} - else this.queue(sep + json) - }, - function (data) { - if(!anyData) this.queue(op) - this.queue(cl) +/***/ "./node_modules/@comunica/bus-sparql-serialize/lib/ActorSparqlSerializeFixedMediaTypes.js": +/*!************************************************************************************************!*\ + !*** ./node_modules/@comunica/bus-sparql-serialize/lib/ActorSparqlSerializeFixedMediaTypes.js ***! + \************************************************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { - this.queue(null) - }) +"use strict"; - return stream +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ActorSparqlSerializeFixedMediaTypes = void 0; +const actor_abstract_mediatyped_1 = __webpack_require__(/*! @comunica/actor-abstract-mediatyped */ "./node_modules/@comunica/actor-abstract-mediatyped/index.js"); +/** + * A base actor for listening to SPARQL serialize events that has fixed media types. + * + * Actor types: + * * Input: IActionSparqlSerializeOrMediaType: A serialize input or a media type input. + * * Test: + * * Output: IActorSparqlSerializeOutputOrMediaType: The serialized quads. + * + * @see IActionInit + */ +class ActorSparqlSerializeFixedMediaTypes extends actor_abstract_mediatyped_1.ActorAbstractMediaTypedFixed { + constructor(args) { + super(args); + } + async testHandleChecked(action, context) { + return true; + } } - - - -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../buffer/index.js */ "./node_modules/buffer/index.js").Buffer)) +exports.ActorSparqlSerializeFixedMediaTypes = ActorSparqlSerializeFixedMediaTypes; +//# sourceMappingURL=ActorSparqlSerializeFixedMediaTypes.js.map /***/ }), -/***/ "./node_modules/abort-controller/browser.js": -/*!**************************************************!*\ - !*** ./node_modules/abort-controller/browser.js ***! - \**************************************************/ +/***/ "./node_modules/@comunica/context-entries/index.js": +/*!*********************************************************!*\ + !*** ./node_modules/@comunica/context-entries/index.js ***! + \*********************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -/*globals self, window */ - - -/*eslint-disable @mysticatea/prettier */ -const { AbortController, AbortSignal } = - typeof self !== "undefined" ? self : - typeof window !== "undefined" ? window : - /* otherwise */ undefined -/*eslint-enable @mysticatea/prettier */ - -module.exports = AbortController -module.exports.AbortSignal = AbortSignal -module.exports.default = AbortController +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +__exportStar(__webpack_require__(/*! ./lib/Keys */ "./node_modules/@comunica/context-entries/lib/Keys.js"), exports); +//# sourceMappingURL=index.js.map /***/ }), -/***/ "./node_modules/asynciterator/dist/asynciterator.js": -/*!**********************************************************!*\ - !*** ./node_modules/asynciterator/dist/asynciterator.js ***! - \**********************************************************/ -/*! exports provided: scheduleTask, getTaskScheduler, setTaskScheduler, INIT, OPEN, CLOSING, CLOSED, ENDED, DESTROYED, AsyncIterator, EmptyIterator, SingletonIterator, ArrayIterator, IntegerIterator, BufferedIterator, TransformIterator, SimpleTransformIterator, MultiTransformIterator, UnionIterator, ClonedIterator, wrap, empty, single, fromArray, union, range */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { +/***/ "./node_modules/@comunica/context-entries/lib/Keys.js": +/*!************************************************************!*\ + !*** ./node_modules/@comunica/context-entries/lib/Keys.js ***! + \************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { "use strict"; -__webpack_require__.r(__webpack_exports__); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "scheduleTask", function() { return scheduleTask; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getTaskScheduler", function() { return getTaskScheduler; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setTaskScheduler", function() { return setTaskScheduler; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "INIT", function() { return INIT; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OPEN", function() { return OPEN; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CLOSING", function() { return CLOSING; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CLOSED", function() { return CLOSED; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ENDED", function() { return ENDED; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DESTROYED", function() { return DESTROYED; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AsyncIterator", function() { return AsyncIterator; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EmptyIterator", function() { return EmptyIterator; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SingletonIterator", function() { return SingletonIterator; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ArrayIterator", function() { return ArrayIterator; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "IntegerIterator", function() { return IntegerIterator; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BufferedIterator", function() { return BufferedIterator; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TransformIterator", function() { return TransformIterator; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SimpleTransformIterator", function() { return SimpleTransformIterator; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MultiTransformIterator", function() { return MultiTransformIterator; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UnionIterator", function() { return UnionIterator; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ClonedIterator", function() { return ClonedIterator; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wrap", function() { return wrap; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "empty", function() { return empty; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "single", function() { return single; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fromArray", function() { return fromArray; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "union", function() { return union; }); -/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "range", function() { return range; }); -/* harmony import */ var events__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! events */ "./node_modules/events/events.js"); -/* harmony import */ var events__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(events__WEBPACK_IMPORTED_MODULE_0__); -/* harmony import */ var _taskscheduler_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./taskscheduler.js */ "./node_modules/asynciterator/dist/taskscheduler.js"); -/** - * An asynchronous iterator library for advanced object pipelines - * @module asynciterator - */ - -let taskScheduler = Object(_taskscheduler_js__WEBPACK_IMPORTED_MODULE_1__["default"])(); -/** Schedules the given ask for asynchronous execution. */ -function scheduleTask(task) { - taskScheduler(task); -} -/** Returns the asynchronous task scheduler. */ -function getTaskScheduler() { - return taskScheduler; -} -/** Sets the asynchronous task scheduler. */ -function setTaskScheduler(scheduler) { - taskScheduler = scheduler; -} -/** - ID of the INIT state. - An iterator is initializing if it is preparing main item generation. - It can already produce items. - @type integer -*/ -const INIT = 1 << 0; -/** - ID of the OPEN state. - An iterator is open if it can generate new items. - @type integer -*/ -const OPEN = 1 << 1; -/** - ID of the CLOSING state. - An iterator is closing if item generation is pending but will not be scheduled again. - @type integer -*/ -const CLOSING = 1 << 2; -/** - ID of the CLOSED state. - An iterator is closed if it no longer actively generates new items. - Items might still be available. - @type integer -*/ -const CLOSED = 1 << 3; -/** - ID of the ENDED state. - An iterator has ended if no further items will become available. - The 'end' event is guaranteed to have been called when in this state. - @type integer -*/ -const ENDED = 1 << 4; -/** - ID of the DESTROYED state. - An iterator has been destroyed - after calling {@link module:asynciterator.AsyncIterator#destroy}. - The 'end' event has not been called, as pending elements were voided. - @type integer -*/ -const DESTROYED = 1 << 5; -/** - An asynchronous iterator provides pull-based access to a stream of objects. - @extends module:asynciterator.EventEmitter -*/ -class AsyncIterator extends events__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"] { - /** Creates a new `AsyncIterator`. */ - constructor(initialState = OPEN) { - super(); - this._readable = false; - this._state = initialState; - this.on('newListener', waitForDataListener); - } +Object.defineProperty(exports, "__esModule", { value: true }); +exports.KeysRdfUpdateQuads = exports.KeysRdfResolveQuadPattern = exports.KeysRdfParseJsonLd = exports.KeysQueryOperation = exports.KeysInitSparql = exports.KeysHttpProxy = exports.KeysHttpMemento = exports.KeysHttp = exports.KeysCore = void 0; +var KeysCore; +(function (KeysCore) { /** - Changes the iterator to the given state if possible and necessary, - possibly emitting events to signal that change. - @protected - @param {integer} newState The ID of the new state - @param {boolean} [eventAsync=false] Whether resulting events should be emitted asynchronously - @returns {boolean} Whether the state was changed - @emits module:asynciterator.AsyncIterator.end - */ - _changeState(newState, eventAsync = false) { - // Validate the state change - const valid = newState > this._state && this._state < ENDED; - if (valid) { - this._state = newState; - // Emit the `end` event when changing to ENDED - if (newState === ENDED) { - if (!eventAsync) - this.emit('end'); - else - taskScheduler(() => this.emit('end')); - } - } - return valid; - } + * @range {Logger} A logger instance. + */ + KeysCore["log"] = "@comunica/core:log"; +})(KeysCore = exports.KeysCore || (exports.KeysCore = {})); +var KeysHttp; +(function (KeysHttp) { /** - Tries to read the next item from the iterator. - This is the main method for reading the iterator in _on-demand mode_, - where new items are only created when needed by consumers. - If no items are currently available, this methods returns `null`. - The {@link module:asynciterator.event:readable} event - will then signal when new items might be ready. - To read all items from the iterator, - switch to _flow mode_ by subscribing - to the {@link module:asynciterator.event:data} event. - When in flow mode, do not use the `read` method. - @returns {object?} The next item, or `null` if none is available - */ - read() { - return null; - } + * @range {boolean} Include credentials flags. + */ + KeysHttp["includeCredentials"] = "@comunica/bus-http:include-credentials"; /** - The iterator emits a `readable` event when it might have new items available - after having had no items available right before this event. - If the iterator is not in flow mode, items can be retrieved - by calling {@link module:asynciterator.AsyncIterator#read}. - @event module:asynciterator.readable - */ + * @range {string} Authentication for a source as a "username:password"-pair. + */ + KeysHttp["auth"] = "@comunica/bus-http:auth"; /** - The iterator emits a `data` event with a new item as soon as it becomes available. - When one or more listeners are attached to the `data` event, - the iterator switches to _flow mode_, - generating and emitting new items as fast as possible. - This drains the source and might create backpressure on the consumers, - so only subscribe to this event if this behavior is intended. - In flow mode, don't use {@link module:asynciterator.AsyncIterator#read}. - To switch back to _on-demand mode_, remove all listeners from the `data` event. - You can then obtain items through `read` again. - @event module:asynciterator.data - @param {object} item The new item - */ + * @range {(input: RequestInfo, init?: RequestInit) => Promise} Fetch function implementation. + */ + KeysHttp["fetch"] = "@comunica/bus-http:fetch"; +})(KeysHttp = exports.KeysHttp || (exports.KeysHttp = {})); +var KeysHttpMemento; +(function (KeysHttpMemento) { /** - Invokes the callback for each remaining item in the iterator. - Switches the iterator to flow mode. - @param {Function} callback A function that will be called with each item - @param {object?} self The `this` pointer for the callback - */ - forEach(callback, self) { - this.on('data', self ? callback.bind(self) : callback); - } + * @range {string} The desired datetime for Memento datetime-negotiation. + */ + KeysHttpMemento["datetime"] = "@comunica/actor-http-memento:datetime"; +})(KeysHttpMemento = exports.KeysHttpMemento || (exports.KeysHttpMemento = {})); +var KeysHttpProxy; +(function (KeysHttpProxy) { /** - Stops the iterator from generating new items. - Already generated items or terminating items can still be emitted. - After this, the iterator will end asynchronously. - @emits module:asynciterator.AsyncIterator.end - */ - close() { - if (this._changeState(CLOSED)) - this._endAsync(); - } + * @range {IProxyHandler} A handler implementing the {@link IProxyHandler} interface. + */ + KeysHttpProxy["httpProxyHandler"] = "@comunica/actor-http-proxy:httpProxyHandler"; +})(KeysHttpProxy = exports.KeysHttpProxy || (exports.KeysHttpProxy = {})); +var KeysInitSparql; +(function (KeysInitSparql) { /** - Destroy the iterator and stop it from generating new items. - This will not do anything if the iterator was already ended or destroyed. - All internal resources will be released an no new items will be emitted, - even not already generated items. - Implementors should not override this method, - but instead implement {@link module:asynciterator.AsyncIterator#_destroy}. - @param {Error} [cause] An optional error to emit. - @emits module:asynciterator.AsyncIterator.end - @emits module:asynciterator.AsyncIterator.error Only if an error is passed. - */ - destroy(cause) { - if (!this.done) { - this._destroy(cause, error => { - cause = cause || error; - if (cause) - this.emit('error', cause); - this._end(true); - }); - } - } + * @range {Bindings} Variables that have to be pre-bound to values in the query. + */ + KeysInitSparql["initialBindings"] = "@comunica/actor-init-sparql:initialBindings"; /** - Called by {@link module:asynciterator.AsyncIterator#destroy}. - Implementers can override this, but this should not be called directly. - @param {?Error} cause The reason why the iterator is destroyed. - @param {Function} callback A callback function with an optional error argument. - */ - _destroy(cause, callback) { - callback(); - } + * @range {string} Name of the provided query's format. + */ + KeysInitSparql["queryFormat"] = "@comunica/actor-init-sparql:queryFormat"; /** - Ends the iterator and cleans up. - Should never be called before {@link module:asynciterator.AsyncIterator#close}; - typically, `close` is responsible for calling `_end`. - @param {boolean} [destroy] If the iterator should be forcefully destroyed. - @protected - @emits module:asynciterator.AsyncIterator.end - */ - _end(destroy = false) { - if (this._changeState(destroy ? DESTROYED : ENDED)) { - this._readable = false; - this.removeAllListeners('readable'); - this.removeAllListeners('data'); - this.removeAllListeners('end'); - } - } + * @range {any} Which GraphQL bindings should be singularized. + */ + KeysInitSparql["graphqlSingularizeVariables"] = "@comunica/actor-init-sparql:singularizeVariables"; /** - Asynchronously calls `_end`. - @protected - */ - _endAsync() { - taskScheduler(() => this._end()); - } + * @range {boolean} If HTTP and parsing failures are ignored. + */ + KeysInitSparql["lenient"] = "@comunica/actor-init-sparql:lenient"; /** - The `end` event is emitted after the last item of the iterator has been read. - @event module:asynciterator.end - */ + * @range {Algebra.Operation} The original parsed query. + */ + KeysInitSparql["query"] = "@comunica/actor-init-sparql:query"; /** - Gets or sets whether this iterator might have items available for read. - A value of `false` means there are _definitely_ no items available; - a value of `true` means items _might_ be available. - @type boolean - @emits module:asynciterator.AsyncIterator.readable - */ - get readable() { - return this._readable; - } - set readable(readable) { - readable = Boolean(readable) && !this.done; - // Set the readable value only if it has changed - if (this._readable !== readable) { - this._readable = readable; - // If the iterator became readable, emit the `readable` event - if (readable) - taskScheduler(() => this.emit('readable')); - } - } + * @range {string} The query's base IRI. + */ + KeysInitSparql["baseIRI"] = "@comunica/actor-init-sparql:baseIRI"; /** - Gets whether the iterator has stopped generating new items. - @type boolean - @readonly - */ - get closed() { - return this._state >= CLOSING; - } + * @range {Date} A timestamp representing the current time. + * This is required for certain SPARQL operations such as NOW(). + */ + KeysInitSparql["queryTimestamp"] = "@comunica/actor-init-sparql:queryTimestamp"; /** - Gets whether the iterator has finished emitting items. - @type boolean - @readonly - */ - get ended() { - return this._state === ENDED; - } + * @range {functionNamedNode: RDF.NamedNode) => ((args: RDF.Term[]) => Promise) | undefined} + * Extension function creator for a given function IRI. + * Returned value should be an async function implementation. + * Undefined may be returned if no implementation exists for the given function IRI. + * + * The dictionary-based extensionFunctions context entry may be used instead, but not simultaneously. + */ + KeysInitSparql["extensionFunctionCreator"] = "@comunica/actor-init-sparql:extensionFunctionCreator"; /** - Gets whether the iterator has been destroyed. - @type boolean - @readonly - */ - get destroyed() { - return this._state === DESTROYED; - } + * @range {Record Promise>} Dictionary of extension functions. + * Key is the IRI of the function, and value is the async function implementation. + * + * The callback-based extensionFunctionCreator context entry may be used instead, but not simultaneously. + */ + KeysInitSparql["extensionFunctions"] = "@comunica/actor-init-sparql:extensionFunctions"; /** - Gets whether the iterator will not emit anymore items, - either due to being closed or due to being destroyed. - @type boolean - @readonly - */ - get done() { - return this._state >= ENDED; - } - /* Generates a textual representation of the iterator. */ - toString() { - const details = this._toStringDetails(); - return `[${this.constructor.name}${details ? ` ${details}` : ''}]`; - } + * @range {ICliArgsHandler[]} Enables manipulation of the CLI arguments and their processing. + */ + KeysInitSparql["cliArgsHandlers"] = "@comunica/actor-init-sparql:cliArgsHandlers"; +})(KeysInitSparql = exports.KeysInitSparql || (exports.KeysInitSparql = {})); +var KeysQueryOperation; +(function (KeysQueryOperation) { /** - Generates details for a textual representation of the iterator. - @protected - */ - _toStringDetails() { - return ''; - } + * @range {string} Context entry for the current query operation. + */ + KeysQueryOperation["operation"] = "@comunica/bus-query-operation:operation"; /** - Retrieves the property with the given name from the iterator. - If no callback is passed, it returns the value of the property - or `undefined` if the property is not set. - If a callback is passed, it returns `undefined` - and calls the callback with the property the moment it is set. - @param {string} propertyName The name of the property to retrieve - @param {Function?} [callback] A one-argument callback to receive the property value - @returns {object?} The value of the property (if set and no callback is given) - */ - getProperty(propertyName, callback) { - const properties = this._properties; - // If no callback was passed, return the property value - if (!callback) - return properties && properties[propertyName]; - // If the value has been set, send it through the callback - if (properties && (propertyName in properties)) { - taskScheduler(() => callback(properties[propertyName])); - } - // If the value was not set, store the callback for when the value will be set - else { - let propertyCallbacks; - if (!(propertyCallbacks = this._propertyCallbacks)) - this._propertyCallbacks = propertyCallbacks = Object.create(null); - if (propertyName in propertyCallbacks) - propertyCallbacks[propertyName].push(callback); - else - propertyCallbacks[propertyName] = [callback]; - } - return undefined; - } + * @type {any} The current metadata. + * I.e., the metadata that was used to determine the next BGP operation. + */ + KeysQueryOperation["bgpCurrentMetadata"] = "@comunica/bus-query-operation:bgpCurrentMetadata"; /** - Sets the property with the given name to the value. - @param {string} propertyName The name of the property to set - @param {object?} value The new value of the property - */ - setProperty(propertyName, value) { - const properties = this._properties || (this._properties = Object.create(null)); - properties[propertyName] = value; - // Execute getter callbacks that were waiting for this property to be set - const propertyCallbacks = this._propertyCallbacks || {}; - const callbacks = propertyCallbacks[propertyName]; - if (callbacks) { - delete propertyCallbacks[propertyName]; - taskScheduler(() => { - for (const callback of callbacks) - callback(value); - }); - // Remove _propertyCallbacks if no pending callbacks are left - for (propertyName in propertyCallbacks) - return; - delete this._propertyCallbacks; - } - } + * @range {any[]} An array of parent metadata. + * I.e., an array of the metadata that was present before materializing the current BGP operations. + * This can be passed in 'bgp' actions. + * The array entries should correspond to the pattern entries in the BGP. + */ + KeysQueryOperation["bgpParentMetadata"] = "@comunica/bus-query-operation:bgpParentMetadata"; /** - Retrieves all properties of the iterator. - @returns {object} An object with property names as keys. - */ - getProperties() { - const properties = this._properties; - const copy = {}; - for (const name in properties) - copy[name] = properties[name]; - return copy; - } + * @range {IPatternBindings[]} Indicating which patterns were bound from variables. + * I.e., an array of the same length as the value of + * KeysQueryOperation.patternParentMetadata, + * where each array value corresponds to the pattern bindings + * for the corresponding pattern. + */ + KeysQueryOperation["bgpPatternBindings"] = "@comunica/bus-query-operation:bgpPatternBindings"; /** - Sets all of the given properties. - @param {object} properties Key/value pairs of properties to set - */ - setProperties(properties) { - for (const propertyName in properties) - this.setProperty(propertyName, properties[propertyName]); - } + * @range {any} Parent metadata hash. + * I.e., the metadata that was present before materializing the current operation. + * This can be passed in 'pattern' actions. + */ + KeysQueryOperation["patternParentMetadata"] = "@comunica/bus-query-operation:patternParentMetadata"; /** - Copies the given properties from the source iterator. - @param {module:asynciterator.AsyncIterator} source The iterator to copy from - @param {Array} propertyNames List of property names to copy - */ - copyProperties(source, propertyNames) { - for (const propertyName of propertyNames) { - source.getProperty(propertyName, value => this.setProperty(propertyName, value)); - } - } + * @range {boolean} Flag for indicating that only read operations are allowed, defaults to false. + */ + KeysQueryOperation["readOnly"] = "@comunica/bus-query-operation:readOnly"; +})(KeysQueryOperation = exports.KeysQueryOperation || (exports.KeysQueryOperation = {})); +var KeysRdfParseJsonLd; +(function (KeysRdfParseJsonLd) { /** - Transforms items from this iterator. - After this operation, only read the returned iterator instead of the current one. - @param {object|Function} [options] Settings of the iterator, or the transformation function - @param {integer} [options.maxbufferSize=4] The maximum number of items to keep in the buffer - @param {boolean} [options.autoStart=true] Whether buffering starts directly after construction - @param {integer} [options.offset] The number of items to skip - @param {integer} [options.limit] The maximum number of items - @param {Function} [options.filter] A function to synchronously filter items from the source - @param {Function} [options.map] A function to synchronously transform items from the source - @param {Function} [options.transform] A function to asynchronously transform items from the source - @param {boolean} [options.optional=false] If transforming is optional, the original item is pushed when its mapping yields `null` or its transformation yields no items - @param {Array|module:asynciterator.AsyncIterator} [options.prepend] Items to insert before the source items - @param {Array|module:asynciterator.AsyncIterator} [options.append] Items to insert after the source items - @returns {module:asynciterator.AsyncIterator} A new iterator that maps the items from this iterator - */ - transform(options) { - return new SimpleTransformIterator(this, options); - } + * @range {IDocumentLoader} + */ + KeysRdfParseJsonLd["documentLoader"] = "@comunica/actor-rdf-parse-jsonld:documentLoader"; /** - Maps items from this iterator using the given function. - After this operation, only read the returned iterator instead of the current one. - @param {Function} map A mapping function to call on this iterator's (remaining) items - @param {object?} self The `this` pointer for the mapping function - @returns {module:asynciterator.AsyncIterator} A new iterator that maps the items from this iterator - */ - map(map, self) { - return this.transform({ map: self ? map.bind(self) : map }); - } - filter(filter, self) { - return this.transform({ filter: self ? filter.bind(self) : filter }); - } + * @range {boolean} + */ + KeysRdfParseJsonLd["strictValues"] = "@comunica/actor-rdf-parse-jsonld:strictValues"; /** - Prepends the items after those of the current iterator. - After this operation, only read the returned iterator instead of the current one. - @param {Array|module:asynciterator.AsyncIterator} items Items to insert before this iterator's (remaining) items - @returns {module:asynciterator.AsyncIterator} A new iterator that prepends items to this iterator - */ - prepend(items) { - return this.transform({ prepend: items }); - } + * @range {Record} + */ + KeysRdfParseJsonLd["parserOptions"] = "@comunica/actor-rdf-parse-jsonld:parserOptions"; +})(KeysRdfParseJsonLd = exports.KeysRdfParseJsonLd || (exports.KeysRdfParseJsonLd = {})); +var KeysRdfResolveQuadPattern; +(function (KeysRdfResolveQuadPattern) { /** - Appends the items after those of the current iterator. - After this operation, only read the returned iterator instead of the current one. - @param {Array|module:asynciterator.AsyncIterator} items Items to insert after this iterator's (remaining) items - @returns {module:asynciterator.AsyncIterator} A new iterator that appends items to this iterator - */ - append(items) { - return this.transform({ append: items }); - } + * @range {DataSources} Data sources. + */ + KeysRdfResolveQuadPattern["sources"] = "@comunica/bus-rdf-resolve-quad-pattern:sources"; /** - Surrounds items of the current iterator with the given items. - After this operation, only read the returned iterator instead of the current one. - @param {Array|module:asynciterator.AsyncIterator} prepend Items to insert before this iterator's (remaining) items - @param {Array|module:asynciterator.AsyncIterator} append Items to insert after this iterator's (remaining) items - @returns {module:asynciterator.AsyncIterator} A new iterator that appends and prepends items to this iterator - */ - surround(prepend, append) { - return this.transform({ prepend, append }); - } + * @range {IDataSource} A data source. + */ + KeysRdfResolveQuadPattern["source"] = "@comunica/bus-rdf-resolve-quad-pattern:source"; +})(KeysRdfResolveQuadPattern = exports.KeysRdfResolveQuadPattern || (exports.KeysRdfResolveQuadPattern = {})); +var KeysRdfUpdateQuads; +(function (KeysRdfUpdateQuads) { /** - Skips the given number of items from the current iterator. - The current iterator may not be read anymore until the returned iterator ends. - @param {integer} offset The number of items to skip - @returns {module:asynciterator.AsyncIterator} A new iterator that skips the given number of items - */ - skip(offset) { - return this.transform({ offset }); - } + * @range {IDataDestination} A data destination. + */ + KeysRdfUpdateQuads["destination"] = "@comunica/bus-rdf-update-quads:destination"; +})(KeysRdfUpdateQuads = exports.KeysRdfUpdateQuads || (exports.KeysRdfUpdateQuads = {})); +//# sourceMappingURL=Keys.js.map + +/***/ }), + +/***/ "./node_modules/@comunica/core/index.js": +/*!**********************************************!*\ + !*** ./node_modules/@comunica/core/index.js ***! + \**********************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +__exportStar(__webpack_require__(/*! ./lib/Bus */ "./node_modules/@comunica/core/lib/Bus.js"), exports); +__exportStar(__webpack_require__(/*! ./lib/BusIndexed */ "./node_modules/@comunica/core/lib/BusIndexed.js"), exports); +__exportStar(__webpack_require__(/*! ./lib/ActionObserver */ "./node_modules/@comunica/core/lib/ActionObserver.js"), exports); +__exportStar(__webpack_require__(/*! ./lib/Actor */ "./node_modules/@comunica/core/lib/Actor.js"), exports); +__exportStar(__webpack_require__(/*! ./lib/Logger */ "./node_modules/@comunica/core/lib/Logger.js"), exports); +__exportStar(__webpack_require__(/*! ./lib/Mediator */ "./node_modules/@comunica/core/lib/Mediator.js"), exports); +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ "./node_modules/@comunica/core/lib/ActionObserver.js": +/*!***********************************************************!*\ + !*** ./node_modules/@comunica/core/lib/ActionObserver.js ***! + \***********************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ActionObserver = void 0; +/** + * An ActionObserver can passively listen to {@link Actor#run} inputs and outputs for all actors on a certain bus. + * + * ActionObserver should not edit inputs and outputs, + * they should be considered immutable. + * + * @see Actor + * @see Bus + * + * @template I The input type of an actor. + * @template O The output type of an actor. + */ +class ActionObserver { /** - Limits the current iterator to the given number of items. - The current iterator may not be read anymore until the returned iterator ends. - @param {integer} limit The maximum number of items - @returns {module:asynciterator.AsyncIterator} A new iterator with at most the given number of items - */ - take(limit) { - return this.transform({ limit }); + * All enumerable properties from the `args` object are inherited to this observer. + * + * The observer will NOT automatically subscribe to the given bus when this constructor is called. + * + * @param {IActionObserverArgs} args Arguments object + * @throws When required arguments are missing. + */ + constructor(args) { + Object.assign(this, args); } +} +exports.ActionObserver = ActionObserver; +//# sourceMappingURL=ActionObserver.js.map + +/***/ }), + +/***/ "./node_modules/@comunica/core/lib/Actor.js": +/*!**************************************************!*\ + !*** ./node_modules/@comunica/core/lib/Actor.js ***! + \**************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ensureActionContext = exports.ActionContext = exports.Actor = void 0; +const context_entries_1 = __webpack_require__(/*! @comunica/context-entries */ "./node_modules/@comunica/context-entries/index.js"); +const immutable_1 = __webpack_require__(/*! immutable */ "./node_modules/immutable/dist/immutable.js"); +/** + * An actor can act on messages of certain types and provide output of a certain type. + * + * The flow of an actor is as follows: + * 1. Send a message to {@link Actor#test} to test if an actor can run that action. + * 2. If the actor can reply to the message, let the actor run the action using {@link Actor#run}. + * + * An actor is typically subscribed to a bus, + * using which the applicability to an action can be tested. + * + * @see Bus + * + * @template I The input type of an actor. + * @template T The test type of an actor. + * @template O The output type of an actor. + */ +class Actor { /** - Limits the current iterator to the given range. - The current iterator may not be read anymore until the returned iterator ends. - @param {integer} start Index of the first item to return - @param {integer} end Index of the last item to return - @returns {module:asynciterator.AsyncIterator} A new iterator with items in the given range - */ - range(start, end) { - return this.transform({ offset: start, limit: Math.max(end - start + 1, 0) }); + * All enumerable properties from the `args` object are inherited to this actor. + * + * The actor will subscribe to the given bus when this constructor is called. + * + * @param {IActorArgs} args Arguments object + * @param {string} args.name The name for this actor. + * @param {Bus, I extends IAction, T extends IActorTest, O extends IActorOutput>} args.bus + * The bus this actor subscribes to. + * @throws When required arguments are missing. + */ + constructor(args) { + this.beforeActors = []; + Object.assign(this, args); + this.bus.subscribe(this); + if (this.beforeActors.length > 0) { + this.bus.addDependencies(this, this.beforeActors); + } } /** - Creates a copy of the current iterator, - containing all items emitted from this point onward. - Further copies can be created; they will all start from this same point. - After this operation, only read the returned copies instead of the original iterator. - @returns {module:asynciterator.AsyncIterator} A new iterator that contains all future items of this iterator - */ - clone() { - return new ClonedIterator(this); - } -} -// Starts emitting `data` events when `data` listeners are added -function waitForDataListener(eventName) { - if (eventName === 'data') { - this.removeListener('newListener', waitForDataListener); - addSingleListener(this, 'readable', emitData); - if (this.readable) - taskScheduler(() => emitData.call(this)); + * Get the logger from the given context. + * @param {ActionContext} context An optional context. + * @return {Logger} The logger or undefined. + */ + static getContextLogger(context) { + return context && context.get(context_entries_1.KeysCore.log); } -} -// Emits new items though `data` events as long as there are `data` listeners -function emitData() { - // While there are `data` listeners and items, emit them - let item; - while (this.listenerCount('data') !== 0 && (item = this.read()) !== null) - this.emit('data', item); - // Stop draining the source if there are no more `data` listeners - if (this.listenerCount('data') === 0 && !this.done) { - this.removeListener('readable', emitData); - addSingleListener(this, 'newListener', waitForDataListener); + /** + * Run the given action on this actor + * AND invokes the {@link Bus#onRun} method. + * + * @param {I} action The action to run. + * @return {Promise} A promise that resolves to the run result. + */ + runObservable(action) { + const output = this.run(action); + this.bus.onRun(this, action, output); + return output; } -} -// Adds the listener to the event, if it has not been added previously. -function addSingleListener(source, eventName, listener) { - if (!source.listeners(eventName).includes(listener)) - source.on(eventName, listener); -} -/** - An iterator that doesn't emit any items. - @extends module:asynciterator.AsyncIterator -*/ -class EmptyIterator extends AsyncIterator { - /** Creates a new `EmptyIterator`. */ - constructor() { - super(); - this._changeState(ENDED, true); + /** + * Initialize this actor. + * This should be used for doing things that take a while, + * such as opening files. + * + * @return {Promise} A promise that resolves when the actor has been initialized. + */ + async initialize() { + return true; } -} -/** - An iterator that emits a single item. - @extends module:asynciterator.AsyncIterator -*/ -class SingletonIterator extends AsyncIterator { /** - Creates a new `SingletonIterator`. - @param {object} item The item that will be emitted. - */ - constructor(item) { - super(); - this._item = item; - if (item === null) - this.close(); - else - this.readable = true; + * Deinitialize this actor. + * This should be used for cleaning up things when the application is shut down, + * such as closing files and removing temporary files. + * + * @return {Promise} A promise that resolves when the actor has been deinitialized. + */ + async deinitialize() { + return true; } - /* Reads the item from the iterator. */ - read() { - const item = this._item; - this._item = null; - this.close(); - return item; + /* Proxy methods for the (optional) logger that is defined in the context */ + getDefaultLogData(context, data) { + const dataActual = data ? data() : {}; + dataActual.actor = this.name; + return dataActual; } - /* Generates details for a textual representation of the iterator. */ - _toStringDetails() { - return this._item === null ? '' : `(${this._item})`; + logTrace(context, message, data) { + const logger = Actor.getContextLogger(context); + if (logger) { + logger.trace(message, this.getDefaultLogData(context, data)); + } } -} -/** - An iterator that emits the items of a given array. - @extends module:asynciterator.AsyncIterator -*/ -class ArrayIterator extends AsyncIterator { - /** - Creates a new `ArrayIterator`. - @param {Array} items The items that will be emitted. - */ - constructor(items, { autoStart = true } = {}) { - super(); - const buffer = items ? [...items] : []; - this._sourceStarted = autoStart !== false; - if (this._sourceStarted && buffer.length === 0) - this.close(); - else - this._buffer = buffer; - this.readable = true; + logDebug(context, message, data) { + const logger = Actor.getContextLogger(context); + if (logger) { + logger.debug(message, this.getDefaultLogData(context, data)); + } } - /* Reads an item from the iterator. */ - read() { - if (!this._sourceStarted) - this._sourceStarted = true; - let item = null; - const buffer = this._buffer; - if (buffer) { - if (buffer.length !== 0) - item = buffer.shift(); - if (buffer.length === 0) { - delete this._buffer; - this.close(); - } + logInfo(context, message, data) { + const logger = Actor.getContextLogger(context); + if (logger) { + logger.info(message, this.getDefaultLogData(context, data)); } - return item; } - /* Generates details for a textual representation of the iterator. */ - _toStringDetails() { - return `(${this._buffer && this._buffer.length || 0})`; + logWarn(context, message, data) { + const logger = Actor.getContextLogger(context); + if (logger) { + logger.warn(message, this.getDefaultLogData(context, data)); + } } - /* Called by {@link module:asynciterator.AsyncIterator#destroy} */ - _destroy(cause, callback) { - delete this._buffer; - callback(); + logError(context, message, data) { + const logger = Actor.getContextLogger(context); + if (logger) { + logger.error(message, this.getDefaultLogData(context, data)); + } + } + logFatal(context, message, data) { + const logger = Actor.getContextLogger(context); + if (logger) { + logger.fatal(message, this.getDefaultLogData(context, data)); + } } } +exports.Actor = Actor; /** - An iterator that enumerates integers in a certain range. - @extends module:asynciterator.AsyncIterator -*/ -class IntegerIterator extends AsyncIterator { - /** - Creates a new `IntegerIterator`. - @param {object} [options] Settings of the iterator - @param {integer} [options.start=0] The first number to emit - @param {integer} [options.end=Infinity] The last number to emit - @param {integer} [options.step=1] The increment between two numbers - */ - constructor({ start = 0, step = 1, end } = {}) { - super(); - // Determine the first number - if (Number.isFinite(start)) - start = Math.trunc(start); - this._next = start; - // Determine step size - if (Number.isFinite(step)) - step = Math.trunc(step); - this._step = step; - // Determine the last number - const ascending = step >= 0; - const direction = ascending ? Infinity : -Infinity; - if (Number.isFinite(end)) - end = Math.trunc(end); - else if (end !== -direction) - end = direction; - this._last = end; - // Start iteration if there is at least one item; close otherwise - if (!Number.isFinite(start) || (ascending ? start > end : start < end)) - this.close(); - else - this.readable = true; - } - /* Reads an item from the iterator. */ - read() { - if (this.closed) - return null; - const current = this._next, step = this._step, last = this._last, next = this._next += step; - if (step >= 0 ? next > last : next < last) - this.close(); - return current; - } - /* Generates details for a textual representation of the iterator. */ - _toStringDetails() { - return `(${this._next}...${this._last})`; - } + * A convenience constructor for {@link ActionContext} based on a given hash. + * @param {{[p: string]: any}} hash A hash that maps keys to values. + * @return {ActionContext} The immutable action context from the hash. + * @constructor + */ +// eslint-disable-next-line no-redeclare +function ActionContext(hash) { + return immutable_1.Map(hash); } +exports.ActionContext = ActionContext; /** - A iterator that maintains an internal buffer of items. - This class serves as a base class for other iterators - with a typically complex item generation process. - @extends module:asynciterator.AsyncIterator -*/ -class BufferedIterator extends AsyncIterator { + * Convert the given object to an action context object if it is not an action context object yet. + * If it already is an action context object, return the object as-is. + * @param maybeActionContext Any object. + * @return {ActionContext} An action context object. + */ +function ensureActionContext(maybeActionContext) { + return immutable_1.Map.isMap(maybeActionContext) ? maybeActionContext : ActionContext(maybeActionContext); +} +exports.ensureActionContext = ensureActionContext; +//# sourceMappingURL=Actor.js.map + +/***/ }), + +/***/ "./node_modules/@comunica/core/lib/Bus.js": +/*!************************************************!*\ + !*** ./node_modules/@comunica/core/lib/Bus.js ***! + \************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Bus = void 0; +/** + * A publish-subscribe bus for sending actions to actors + * to test whether or not they can run an action. + * + * This bus does not run the action itself, + * for that a {@link Mediator} can be used. + * + * @see Actor + * @see Mediator + * + * @template A The actor type that can subscribe to the sub. + * @template I The input type of an actor. + * @template T The test type of an actor. + * @template O The output type of an actor. + */ +class Bus { /** - Creates a new `BufferedIterator`. - @param {object} [options] Settings of the iterator - @param {integer} [options.maxBufferSize=4] The number of items to preload in the internal buffer - @param {boolean} [options.autoStart=true] Whether buffering starts directly after construction - */ - constructor({ maxBufferSize = 4, autoStart = true } = {}) { - super(INIT); - this._buffer = []; - this._maxBufferSize = 4; - this._reading = true; - this._pushedCount = 0; - this.maxBufferSize = maxBufferSize; - taskScheduler(() => this._init(autoStart)); - this._sourceStarted = autoStart !== false; + * All enumerable properties from the `args` object are inherited to this bus. + * + * @param {IBusArgs} args Arguments object + * @param {string} args.name The name for the bus + * @throws When required arguments are missing. + */ + constructor(args) { + this.actors = []; + this.observers = []; + // Mapping from dependency (after) to dependents (before) + this.dependencyLinks = new Map(); + Object.assign(this, args); } /** - The maximum number of items to preload in the internal buffer. - A `BufferedIterator` tries to fill its buffer as far as possible. - Set to `Infinity` to fully drain the source. - @type number - */ - get maxBufferSize() { - return this._maxBufferSize; + * Subscribe the given actor to the bus. + * After this, the given actor can be unsubscribed from the bus by calling {@link Bus#unsubscribe}. + * + * An actor that is subscribed multiple times will exist that amount of times in the bus. + * + * @param {A} actor The actor to subscribe. + */ + subscribe(actor) { + this.actors.push(actor); + this.reorderForDependencies(); } - set maxBufferSize(maxBufferSize) { - // Allow only positive integers and infinity - if (maxBufferSize !== Infinity) { - maxBufferSize = !Number.isFinite(maxBufferSize) ? 4 : - Math.max(Math.trunc(maxBufferSize), 1); + /** + * Subscribe the given observer to the bus. + * After this, the given observer can be unsubscribed from the bus by calling {@link Bus#unsubscribeObserver}. + * + * An observer that is subscribed multiple times will exist that amount of times in the bus. + * + * @param {ActionObserver} observer The observer to subscribe. + */ + subscribeObserver(observer) { + this.observers.push(observer); + } + /** + * Unsubscribe the given actor from the bus. + * + * An actor that is subscribed multiple times will be unsubscribed only once. + * + * @param {A} actor The actor to unsubscribe + * @return {boolean} If the given actor was successfully unsubscribed, + * otherwise it was not subscribed before. + */ + unsubscribe(actor) { + const index = this.actors.indexOf(actor); + if (index >= 0) { + this.actors.splice(index, 1); + return true; } - // Only set the maximum buffer size if it changes - if (this._maxBufferSize !== maxBufferSize) { - this._maxBufferSize = maxBufferSize; - // Ensure sufficient elements are buffered - if (this._state === OPEN) - this._fillBuffer(); + return false; + } + /** + * Unsubscribe the given observer from the bus. + * + * An observer that is subscribed multiple times will be unsubscribed only once. + * + * @param {ActionObserver} observer The observer to unsubscribe. + * @return {boolean} If the given observer was successfully unsubscribed, + * otherwise it was not subscribed before. + */ + unsubscribeObserver(observer) { + const index = this.observers.indexOf(observer); + if (index >= 0) { + this.observers.splice(index, 1); + return true; } + return false; } /** - Initializing the iterator by calling {@link BufferedIterator#_begin} - and changing state from INIT to OPEN. - @protected - @param {boolean} autoStart Whether reading of items should immediately start after OPEN. - */ - _init(autoStart) { - // Perform initialization tasks - let doneCalled = false; - this._reading = true; - this._begin(() => { - if (doneCalled) - throw new Error('done callback called multiple times'); - doneCalled = true; - // Open the iterator and start buffering - this._reading = false; - this._changeState(OPEN); - if (autoStart) - this._fillBufferAsync(); - // If reading should not start automatically, the iterator doesn't become readable. - // Therefore, mark the iterator as (potentially) readable so consumers know it might be read. - else - this.readable = true; - }); + * Publish an action to all actors in the bus to test if they can run the action. + * + * @param {I} action An action to publish + * @return {IActorReply, I extends IAction, T extends IActorTest, + * O extends IActorOutput>[]} + * An array of reply objects. Each object contains a reference to the actor, + * and a promise to its {@link Actor#test} result. + */ + publish(action) { + return this.actors.map((actor) => ({ actor, reply: actor.test(action) })); } /** - Writes beginning items and opens iterator resources. - Should never be called before {@link BufferedIterator#_init}; - typically, `_init` is responsible for calling `_begin`. - @protected - @param {function} done To be called when initialization is complete - */ - _begin(done) { - done(); + * Invoked when an action was run by an actor. + * + * @param actor The action on which the {@link Actor#run} method was invoked. + * @param {I} action The original action input. + * @param {Promise} output A promise resolving to the final action output. + */ + onRun(actor, action, output) { + for (const observer of this.observers) { + observer.onRun(actor, action, output); + } } /** - Tries to read the next item from the iterator. - If the buffer is empty, - this method calls {@link BufferedIterator#_read} to fetch items. - @returns {object?} The next item, or `null` if none is available - */ - read() { - if (this.done) - return null; - // An explicit read kickstarts the source - if (!this._sourceStarted) - this._sourceStarted = true; - // Try to retrieve an item from the buffer - const buffer = this._buffer; - let item; - if (buffer.length !== 0) { - item = buffer.shift(); - } - else { - item = null; - this.readable = false; - } - // If the buffer is becoming empty, either fill it or end the iterator - if (!this._reading && buffer.length < this._maxBufferSize) { - // If the iterator is not closed and thus may still generate new items, fill the buffer - if (!this.closed) - this._fillBufferAsync(); - // No new items will be generated, so if none are buffered, the iterator ends here - else if (!buffer.length) - this._endAsync(); - } - return item; - } - /** - Tries to generate the given number of items. - Implementers should add `count` items through {@link BufferedIterator#_push}. - @protected - @param {integer} count The number of items to generate - @param {function} done To be called when reading is complete - */ - _read(count, done) { - done(); - } - /** - Adds an item to the internal buffer. - @protected - @param {object} item The item to add - @emits module:asynciterator.AsyncIterator.readable - */ - _push(item) { - if (!this.done) { - this._pushedCount++; - this._buffer.push(item); - this.readable = true; + * Indicate that the given actor has the given actor dependencies. + * + * This will ensure that the given actor will be present in the bus *before* the given dependencies. + * + * @param {A} dependent A dependent actor that will be placed before the given actors. + * @param {A[]} dependencies Actor dependencies that will be placed after the given actor. + */ + addDependencies(dependent, dependencies) { + for (const dependency of dependencies) { + let existingDependencies = this.dependencyLinks.get(dependency); + if (!existingDependencies) { + existingDependencies = []; + this.dependencyLinks.set(dependency, existingDependencies); + } + existingDependencies.push(dependent); } + this.reorderForDependencies(); } /** - Fills the internal buffer until `this._maxBufferSize` items are present. - This method calls {@link BufferedIterator#_read} to fetch items. - @protected - @emits module:asynciterator.AsyncIterator.readable - */ - _fillBuffer() { - let neededItems; - // Avoid recursive reads - if (this._reading) { - // Do nothing - } - // If iterator closing started in the meantime, don't generate new items anymore - else if (this.closed) { - this._completeClose(); - } - // Otherwise, try to fill empty spaces in the buffer by generating new items - else if ((neededItems = Math.min(this._maxBufferSize - this._buffer.length, 128)) > 0) { - // Acquire reading lock and start reading, counting pushed items - this._pushedCount = 0; - this._reading = true; - this._read(neededItems, () => { - // Verify the callback is only called once - if (!neededItems) - throw new Error('done callback called multiple times'); - neededItems = 0; - // Release reading lock - this._reading = false; - // If the iterator was closed while reading, complete closing - if (this.closed) { - this._completeClose(); + * Reorder the bus based on all present dependencies. + */ + reorderForDependencies() { + if (this.dependencyLinks.size > 0) { + const actorsAfter = []; + // Temporarily remove all actors that have dependencies + for (const actorAfter of this.dependencyLinks.keys()) { + const dependentPos = this.actors.indexOf(actorAfter); + if (dependentPos >= 0) { + this.actors.splice(dependentPos, 1); + actorsAfter.push(actorAfter); } - // If the iterator pushed one or more items, - // it might currently be able to generate additional items - // (even though all pushed items might already have been read) - else if (this._pushedCount) { - this.readable = true; - // If the buffer is insufficiently full, continue filling - if (this._buffer.length < this._maxBufferSize / 2) - this._fillBufferAsync(); + } + // Iteratively append actors based on the first dependency link + // that has all of its dependencies available in the array + while (actorsAfter.length > 0) { + // Find the first actor that has all of its dependencies available. + let activeActorAfterId = -1; + for (let i = 0; i < actorsAfter.length; i++) { + let validLink = true; + for (const dependency of this.dependencyLinks.get(actorsAfter[i])) { + if (!this.actors.includes(dependency) && actorsAfter.includes(dependency)) { + validLink = false; + break; + } + } + if (validLink) { + activeActorAfterId = i; + break; + } } - }); + // If none of the pending links are possible, there must be a cyclic dependency + if (activeActorAfterId < 0) { + throw new Error(`Cyclic dependency links detected in bus ${this.name}`); + } + // The dependent may not be available (yet), so we don't add it to the array (yet). + const activeActorAfter = actorsAfter.splice(activeActorAfterId, 1)[0]; + this.actors.push(activeActorAfter); + } } } +} +exports.Bus = Bus; +//# sourceMappingURL=Bus.js.map + +/***/ }), + +/***/ "./node_modules/@comunica/core/lib/BusIndexed.js": +/*!*******************************************************!*\ + !*** ./node_modules/@comunica/core/lib/BusIndexed.js ***! + \*******************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +exports.BusIndexed = void 0; +const Bus_1 = __webpack_require__(/*! ./Bus */ "./node_modules/@comunica/core/lib/Bus.js"); +/** + * A bus that indexes identified actors, + * so that actions with a corresponding identifier can be published more efficiently. + * + * Multiple actors with the same identifier can be subscribed. + * + * If actors or actions do not have a valid identifier, + * then this will fallback to the normal bus behaviour. + * + * @see Bus + * + * @template A The actor type that can subscribe to the sub. + * @template I The input type of an actor. + * @template T The test type of an actor. + * @template O The output type of an actor. + */ +class BusIndexed extends Bus_1.Bus { /** - Schedules `_fillBuffer` asynchronously. - */ - _fillBufferAsync() { - // Acquire reading lock to avoid recursive reads - if (!this._reading) { - this._reading = true; - taskScheduler(() => { - // Release reading lock so _fillBuffer` can take it - this._reading = false; - this._fillBuffer(); - }); + * All enumerable properties from the `args` object are inherited to this bus. + * + * @param {IBusIndexedArgs} args Arguments object + * @param {string} args.name The name for the bus + * @throws When required arguments are missing. + */ + constructor(args) { + super(args); + this.actorsIndex = {}; + } + subscribe(actor) { + const actorId = this.getActorIdentifier(actor) || '_undefined_'; + let actors = this.actorsIndex[actorId]; + if (!actors) { + actors = this.actorsIndex[actorId] = []; } + actors.push(actor); + super.subscribe(actor); } - /** - Stops the iterator from generating new items - after a possible pending read operation has finished. - Already generated, pending, or terminating items can still be emitted. - After this, the iterator will end asynchronously. - @emits module:asynciterator.AsyncIterator.end - */ - close() { - // If the iterator is not currently reading, we can close immediately - if (!this._reading) - this._completeClose(); - // Closing cannot complete when reading, so temporarily assume CLOSING state - // `_fillBuffer` becomes responsible for calling `_completeClose` - else - this._changeState(CLOSING); + unsubscribe(actor) { + const actorId = this.getActorIdentifier(actor) || '_undefined_'; + const actors = this.actorsIndex[actorId]; + if (actors) { + const i = actors.indexOf(actor); + if (i >= 0) { + actors.splice(i, 1); + } + if (actors.length === 0) { + delete this.actorsIndex[actorId]; + } + } + return super.unsubscribe(actor); } - /** - Stops the iterator from generating new items, - switching from `CLOSING` state into `CLOSED` state. - @protected - @emits module:asynciterator.AsyncIterator.end - */ - _completeClose() { - if (this._changeState(CLOSED)) { - // Write possible terminating items - this._reading = true; - this._flush(() => { - if (!this._reading) - throw new Error('done callback called multiple times'); - this._reading = false; - // If no items are left, end the iterator - // Otherwise, `read` becomes responsible for ending the iterator - if (!this._buffer.length) - this._endAsync(); - }); + publish(action) { + const actionId = this.getActionIdentifier(action); + if (actionId) { + const actors = [...this.actorsIndex[actionId] || [], ...this.actorsIndex._undefined_ || []]; + return actors.map((actor) => ({ actor, reply: actor.test(action) })); } + return super.publish(action); } - /* Called by {@link module:asynciterator.AsyncIterator#destroy} */ - _destroy(cause, callback) { - this._buffer = []; - callback(); + getActorIdentifier(actor) { + return this.actorIdentifierFields.reduce((object, field) => object[field], actor); } - /** - Writes terminating items and closes iterator resources. - Should never be called before {@link BufferedIterator#close}; - typically, `close` is responsible for calling `_flush`. - @protected - @param {function} done To be called when termination is complete - */ - _flush(done) { - done(); + getActionIdentifier(action) { + return this.actionIdentifierFields.reduce((object, field) => object[field], action); } +} +exports.BusIndexed = BusIndexed; +//# sourceMappingURL=BusIndexed.js.map + +/***/ }), + +/***/ "./node_modules/@comunica/core/lib/Logger.js": +/*!***************************************************!*\ + !*** ./node_modules/@comunica/core/lib/Logger.js ***! + \***************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +exports.KEY_CONTEXT_LOG = exports.Logger = void 0; +const context_entries_1 = __webpack_require__(/*! @comunica/context-entries */ "./node_modules/@comunica/context-entries/index.js"); +/** + * A logger accepts messages from different levels + * and emits them in a certain way. + */ +class Logger { /** - Generates details for a textual representation of the iterator. - @protected + * Convert a string-based logging level to a numerical logging level. + * @param level A string-based logging level + * @return The numerical logging level, or undefined. */ - _toStringDetails() { - const buffer = this._buffer, { length } = buffer; - return `{${length ? `next: ${buffer[0]}, ` : ''}buffer: ${length}}`; + static getLevelOrdinal(level) { + return Logger.LEVELS[level]; } } +exports.Logger = Logger; /** - An iterator that generates items based on a source iterator. - This class serves as a base class for other iterators. - @extends module:asynciterator.BufferedIterator -*/ -class TransformIterator extends BufferedIterator { + * All available logging levels. + * @type {{trace: number; debug: number; info: number; warn: number; error: number; fatal: number}} + */ +Logger.LEVELS = { + trace: 0, + debug: 1, + info: 2, + warn: 3, + error: 4, + fatal: 5, +}; +/** + * @type {string} Context entry for a logger instance. + * @value {Logger} A logger. + * @deprecated Import this constant from @comunica/context-entries. + */ +exports.KEY_CONTEXT_LOG = context_entries_1.KeysCore.log; +//# sourceMappingURL=Logger.js.map + +/***/ }), + +/***/ "./node_modules/@comunica/core/lib/Mediator.js": +/*!*****************************************************!*\ + !*** ./node_modules/@comunica/core/lib/Mediator.js ***! + \*****************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Mediator = void 0; +/** + * A mediator can mediate an action over a bus of actors. + * + * It does the following: + * 1. Accepts an action in {@link Mediator#mediate}. + * 2. Sends the action to the bus to test its applicability on all actors. + * 3. It _mediates_ over these test results. + * 4. It selects the _best_ actor. + * 5. The action is run by the _best_ actor, and the result if returned. + * + * The _mediates_ and _best_ parts are filled in by subclasses of this abstract Mediator class. + * + * @template A The type of actor to mediator over. + * @template I The input type of an actor. + * @template T The test type of an actor. + * @template O The output type of an actor. + */ +class Mediator { /** - Creates a new `TransformIterator`. - @param {module:asynciterator.AsyncIterator|Readable} [source] The source this iterator generates items from - @param {object} [options] Settings of the iterator - @param {integer} [options.maxBufferSize=4] The maximum number of items to keep in the buffer - @param {boolean} [options.autoStart=true] Whether buffering starts directly after construction - @param {boolean} [options.optional=false] If transforming is optional, the original item is pushed when its transformation yields no items - @param {boolean} [options.destroySource=true] Whether the source should be destroyed when this transformed iterator is closed or destroyed - @param {module:asynciterator.AsyncIterator} [options.source] The source this iterator generates items from - */ - constructor(source, options = source || {}) { - super(options); - this._boundPush = (item) => this._push(item); - // Shift parameters if needed - if (!isSourceExpression(source)) - source = options.source; - // The passed source is an AsyncIterator or readable stream - if (isEventEmitter(source)) { - this.source = source; - } - // The passed value is a promise or source creation function - else if (source) { - this._createSource = isPromise(source) ? () => source : source; - if (this._sourceStarted) - this._loadSourceAsync(); - } - // Set other options - this._optional = Boolean(options.optional); - this._destroySource = options.destroySource !== false; + * All enumerable properties from the `args` object are inherited to this mediator. + * + * @param {IMediatorArgs, I extends IAction, T extends IActorTest, + * O extends IActorOutput>} args Arguments object + * @param {string} args.name The name for this mediator. + * @param {Bus, I extends IAction, T extends IActorTest, O extends IActorOutput>} args.bus + * The bus this mediator will mediate over. + * @throws When required arguments are missing. + */ + constructor(args) { + Object.assign(this, args); } /** - The source this iterator generates items from. - @type module:asynciterator.AsyncIterator - */ - get source() { - if (isFunction(this._createSource)) - this._loadSourceAsync(); - return this._source; - } - set source(value) { - // Validate and set source - const source = this._source = this._validateSource(value); - source._destination = this; - // Close this iterator if the source has already ended - if (source.done) { - this.close(); - } - // Otherwise, react to source events - else { - source.on('end', destinationCloseWhenDone); - source.on('readable', destinationFillBuffer); - source.on('error', destinationEmitError); + * Publish the given action in the bus. + * + * This will send the test action on all actors in the bus. + * All actor replies will be returned. + * + * @param {I} action The action to mediate for. + * @return {IActorReply, I extends IAction, T extends IActorTest, O extends IActorOutput>[]} + * The list of actor replies. + */ + publish(action) { + // Test all actors in the bus + const actors = this.bus.publish(action); + if (actors.length === 0) { + throw new Error(`No actors are able to reply to a message in the bus ${this.bus.name}`); } + return actors; } /** - Initializes a source that was set through a promise - @protected - */ - _loadSourceAsync() { - if (isFunction(this._createSource)) { - // Assign the source after resolving - Promise.resolve(this._createSource()).then(source => { - delete this._createSource; - this.source = source; - this._fillBuffer(); - }, error => this.emit('error', error)); - // Signal that source creation is pending - this._createSource = null; - } + * Mediate for the given action to get an actor. + * + * This will send the test action on all actors in the bus. + * The actor that tests _best_ will be returned. + * + * @param {I} action The action to mediate for. + * @return {Promise} A promise that resolves to the _best_ actor. + */ + async mediateActor(action) { + // Mediate to one actor and run that actor. + return await this.mediateWith(action, this.publish(action)); } /** - Validates whether the given iterator can be used as a source. - @protected - @param {object} source The source to validate - @param {boolean} allowDestination Whether the source can already have a destination - */ - _validateSource(source, allowDestination = false) { - if (this._source || typeof this._createSource !== 'undefined') - throw new Error('The source cannot be changed after it has been set'); - if (!source || !isFunction(source.read) || !isFunction(source.on)) - throw new Error(`Invalid source: ${source}`); - if (!allowDestination && source._destination) - throw new Error('The source already has a destination'); - return source; + * Mediate for the given action. + * + * This will send the test action on all actors in the bus. + * The action will be run on the actor that tests _best_, + * of which the result will be returned. + * + * @param {I} action The action to mediate for. + * @return {Promise} A promise that resolves to the mediation result. + */ + async mediate(action) { + // Mediate to one actor and run the action on it + const actor = await this.mediateActor(action); + return actor.runObservable(action); } - /** - Tries to read transformed items. - */ - _read(count, done) { - const next = () => { - // Continue transforming until at least `count` items have been pushed - if (this._pushedCount < count && !this.closed) - taskScheduler(() => this._readAndTransform(next, done)); - else - done(); - }; - this._readAndTransform(next, done); +} +exports.Mediator = Mediator; +//# sourceMappingURL=Mediator.js.map + +/***/ }), + +/***/ "./node_modules/@comunica/data-factory/index.js": +/*!******************************************************!*\ + !*** ./node_modules/@comunica/data-factory/index.js ***! + \******************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +__exportStar(__webpack_require__(/*! ./lib/BlankNodeScoped */ "./node_modules/@comunica/data-factory/lib/BlankNodeScoped.js"), exports); +__exportStar(__webpack_require__(/*! ./lib/BlankNodeBindingsScoped */ "./node_modules/@comunica/data-factory/lib/BlankNodeBindingsScoped.js"), exports); +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ "./node_modules/@comunica/data-factory/lib/BlankNodeBindingsScoped.js": +/*!****************************************************************************!*\ + !*** ./node_modules/@comunica/data-factory/lib/BlankNodeBindingsScoped.js ***! + \****************************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +exports.BlankNodeBindingsScoped = void 0; +/** + * A blank node that is scoped to a set of bindings. + */ +class BlankNodeBindingsScoped { + constructor(value) { + this.termType = 'BlankNode'; + this.singleBindingsScope = true; + this.value = value; } - /** - Reads a transforms an item - */ - _readAndTransform(next, done) { - // If the source exists and still can read items, - // try to read and transform the next item. - let item; - const source = this.source; - if (!source || source.done || (item = source.read()) === null) - done(); - else if (!this._optional) - this._transform(item, next, this._boundPush); - else - this._optionalTransform(item, next); + equals(other) { + // eslint-disable-next-line no-implicit-coercion + return !!other && other.termType === 'BlankNode' && other.value === this.value; } - /** - Tries to transform the item; - if the transformation yields no items, pushes the original item. - */ - _optionalTransform(item, done) { - const pushedCount = this._pushedCount; - this._transform(item, () => { - if (pushedCount === this._pushedCount) - this._push(item); - done(); - }, this._boundPush); +} +exports.BlankNodeBindingsScoped = BlankNodeBindingsScoped; +//# sourceMappingURL=BlankNodeBindingsScoped.js.map + +/***/ }), + +/***/ "./node_modules/@comunica/data-factory/lib/BlankNodeScoped.js": +/*!********************************************************************!*\ + !*** ./node_modules/@comunica/data-factory/lib/BlankNodeScoped.js ***! + \********************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +exports.BlankNodeScoped = void 0; +/** + * A blank node that is scoped to a certain source. + */ +class BlankNodeScoped { + constructor(value, skolemized) { + this.termType = 'BlankNode'; + this.value = value; + this.skolemized = skolemized; } - /** - Generates items based on the item from the source. - Implementers should add items through {@link BufferedIterator#_push}. - The default implementation pushes the source item as-is. - @protected - @param {object} item The last read item from the source - @param {function} done To be called when reading is complete - @param {function} push A callback to push zero or more transformation results. - */ - _transform(item, done, push) { - push(item); - done(); + equals(other) { + // eslint-disable-next-line no-implicit-coercion + return !!other && other.termType === 'BlankNode' && other.value === this.value; } - /** - Closes the iterator when pending items are transformed. - @protected - */ - _closeWhenDone() { - this.close(); +} +exports.BlankNodeScoped = BlankNodeScoped; +//# sourceMappingURL=BlankNodeScoped.js.map + +/***/ }), + +/***/ "./node_modules/@comunica/logger-void/index.js": +/*!*****************************************************!*\ + !*** ./node_modules/@comunica/logger-void/index.js ***! + \*****************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +__exportStar(__webpack_require__(/*! ./lib/LoggerVoid */ "./node_modules/@comunica/logger-void/lib/LoggerVoid.js"), exports); +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ "./node_modules/@comunica/logger-void/lib/LoggerVoid.js": +/*!**************************************************************!*\ + !*** ./node_modules/@comunica/logger-void/lib/LoggerVoid.js ***! + \**************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +exports.LoggerVoid = void 0; +const core_1 = __webpack_require__(/*! @comunica/core */ "./node_modules/@comunica/core/index.js"); +/** + * A logger that voids everything. + */ +class LoggerVoid extends core_1.Logger { + debug() { + // Void } - /* Cleans up the source iterator and ends. */ - _end(destroy) { - const source = this._source; - if (source) { - source.removeListener('end', destinationCloseWhenDone); - source.removeListener('error', destinationEmitError); - source.removeListener('readable', destinationFillBuffer); - delete source._destination; - if (this._destroySource) - source.destroy(); - } - super._end(destroy); + error() { + // Void + } + fatal() { + // Void + } + info() { + // Void + } + trace() { + // Void + } + warn() { + // Void } } -function destinationEmitError(error) { - this._destination.emit('error', error); -} -function destinationCloseWhenDone() { - this._destination._closeWhenDone(); -} -function destinationFillBuffer() { - if (this._destination._sourceStarted !== false) - this._destination._fillBuffer(); -} +exports.LoggerVoid = LoggerVoid; +//# sourceMappingURL=LoggerVoid.js.map + +/***/ }), + +/***/ "./node_modules/@comunica/mediator-all/index.js": +/*!******************************************************!*\ + !*** ./node_modules/@comunica/mediator-all/index.js ***! + \******************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +__exportStar(__webpack_require__(/*! ./lib/MediatorAll */ "./node_modules/@comunica/mediator-all/lib/MediatorAll.js"), exports); +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ "./node_modules/@comunica/mediator-all/lib/MediatorAll.js": +/*!****************************************************************!*\ + !*** ./node_modules/@comunica/mediator-all/lib/MediatorAll.js ***! + \****************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +exports.MediatorAll = void 0; +const core_1 = __webpack_require__(/*! @comunica/core */ "./node_modules/@comunica/core/index.js"); /** - An iterator that generates items based on a source iterator - and simple transformation steps passed as arguments. - @extends module:asynciterator.TransformIterator -*/ -class SimpleTransformIterator extends TransformIterator { - /** - Creates a new `SimpleTransformIterator`. - @param {module:asynciterator.AsyncIterator|Readable} [source] The source this iterator generates items from - @param {object|Function} [options] Settings of the iterator, or the transformation function - @param {integer} [options.maxbufferSize=4] The maximum number of items to keep in the buffer - @param {boolean} [options.autoStart=true] Whether buffering starts directly after construction - @param {module:asynciterator.AsyncIterator} [options.source] The source this iterator generates items from - @param {integer} [options.offset] The number of items to skip - @param {integer} [options.limit] The maximum number of items - @param {Function} [options.filter] A function to synchronously filter items from the source - @param {Function} [options.map] A function to synchronously transform items from the source - @param {Function} [options.transform] A function to asynchronously transform items from the source - @param {boolean} [options.optional=false] If transforming is optional, the original item is pushed when its mapping yields `null` or its transformation yields no items - @param {Array|module:asynciterator.AsyncIterator} [options.prepend] Items to insert before the source items - @param {Array|module:asynciterator.AsyncIterator} [options.append] Items to insert after the source items - */ - constructor(source, options) { - super(source, options); - this._offset = 0; - this._limit = Infinity; - this._filter = (item) => true; - // Set transformation steps from the options - options = options || (!isSourceExpression(source) ? source : null); - if (options) { - const transform = isFunction(options) ? options : options.transform; - const { limit, offset, filter, map, prepend, append } = options; - // Don't emit any items when bounds are unreachable - if (offset === Infinity || limit === -Infinity) { - this._limit = 0; - } - else { - if (Number.isFinite(offset)) - this._offset = Math.max(Math.trunc(offset), 0); - if (Number.isFinite(limit)) - this._limit = Math.max(Math.trunc(limit), 0); - if (isFunction(filter)) - this._filter = filter; - if (isFunction(map)) - this._map = map; - this._transform = isFunction(transform) ? transform : null; - } - if (prepend) - this._prepender = isEventEmitter(prepend) ? prepend : fromArray(prepend); - if (append) - this._appender = isEventEmitter(append) ? append : fromArray(append); - } + * A comunica mediator that runs all actors that resolve their test. + * This mediator will always resolve to the first actor's output. + */ +class MediatorAll extends core_1.Mediator { + constructor(args) { + super(args); } - /* Tries to read and transform items */ - _read(count, done) { - const next = () => this._readAndTransformSimple(count, nextAsync, done); - this._readAndTransformSimple(count, nextAsync, done); - function nextAsync() { - taskScheduler(next); + async mediate(action) { + // Collect all actors that resolve their test + const validActors = []; + let testResults; + try { + testResults = this.publish(action); } - } - /* Reads and transform items */ - _readAndTransformSimple(count, next, done) { - // Verify we have a readable source - let item; - const { source } = this; - if (!source || source.done) { - done(); - return; + catch (_a) { + testResults = []; } - // Verify we are still below the limit - if (this._limit === 0) - this.close(); - // Try to read the next item until at least `count` items have been pushed - while (!this.closed && this._pushedCount < count && (item = source.read()) !== null) { - // Verify the item passes the filter and we've reached the offset - if (!this._filter(item) || this._offset !== 0 && this._offset--) - continue; - // Synchronously map the item - const mappedItem = typeof this._map === 'undefined' ? item : this._map(item); - // Skip `null` items, pushing the original item if the mapping was optional - if (mappedItem === null) { - if (this._optional) - this._push(item); - } - // Skip the asynchronous phase if no transformation was specified - else if (!isFunction(this._transform)) { - this._push(mappedItem); + for (const testResult of testResults) { + try { + await testResult.reply; + validActors.push(testResult.actor); } - // Asynchronously transform the item, and wait for `next` to call back - else { - if (!this._optional) - this._transform(mappedItem, next, this._boundPush); - else - this._optionalTransform(mappedItem, next); - return; + catch (_b) { + // Ignore errors } - // Stop when we've reached the limit - if (--this._limit === 0) - this.close(); } - done(); + // Send action to all valid actors + const outputs = await Promise.all(validActors.map(actor => actor.runObservable(action))); + return outputs[0]; } - // Prepends items to the iterator - _begin(done) { - this._insert(this._prepender, done); - delete this._prepender; + async mediateWith() { + throw new Error('Unsupported operation: MediatorAll#mediateWith'); } - // Appends items to the iterator - _flush(done) { - this._insert(this._appender, done); - delete this._appender; +} +exports.MediatorAll = MediatorAll; +//# sourceMappingURL=MediatorAll.js.map + +/***/ }), + +/***/ "./node_modules/@comunica/mediator-combine-pipeline/index.js": +/*!*******************************************************************!*\ + !*** ./node_modules/@comunica/mediator-combine-pipeline/index.js ***! + \*******************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +__exportStar(__webpack_require__(/*! ./lib/MediatorCombinePipeline */ "./node_modules/@comunica/mediator-combine-pipeline/lib/MediatorCombinePipeline.js"), exports); +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ "./node_modules/@comunica/mediator-combine-pipeline/lib/MediatorCombinePipeline.js": +/*!*****************************************************************************************!*\ + !*** ./node_modules/@comunica/mediator-combine-pipeline/lib/MediatorCombinePipeline.js ***! + \*****************************************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +exports.MediatorCombinePipeline = void 0; +const core_1 = __webpack_require__(/*! @comunica/core */ "./node_modules/@comunica/core/index.js"); +/** + * A comunica mediator that goes over all actors in sequence and forwards I/O. + * This required the action input and the actor output to be of the same type. + */ +class MediatorCombinePipeline extends core_1.Mediator { + constructor(args) { + super(args); } - // Inserts items in the iterator - _insert(inserter, done) { - const push = (item) => this._push(item); - if (!inserter || inserter.done) { - done(); + async mediate(action) { + let testResults; + try { + testResults = this.publish(action); } - else { - inserter.on('data', push); - inserter.on('end', end); + catch (_a) { + // If no actors are available, just return the input as output + return action; } - function end() { - inserter.removeListener('data', push); - inserter.removeListener('end', end); - done(); + // Delegate test errors. + await Promise.all(testResults.map(({ reply }) => reply)); + // Pass action to first actor, + // and each actor output as input to the following actor. + let handle = action; + for (const actor of testResults.map(result => result.actor)) { + handle = Object.assign(Object.assign({}, handle), await actor.runObservable(handle)); } + // Return the final actor output + return handle; + } + mediateWith() { + throw new Error('Method not supported.'); } } +exports.MediatorCombinePipeline = MediatorCombinePipeline; +//# sourceMappingURL=MediatorCombinePipeline.js.map + +/***/ }), + +/***/ "./node_modules/@comunica/mediator-combine-union/index.js": +/*!****************************************************************!*\ + !*** ./node_modules/@comunica/mediator-combine-union/index.js ***! + \****************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +__exportStar(__webpack_require__(/*! ./lib/MediatorCombineUnion */ "./node_modules/@comunica/mediator-combine-union/lib/MediatorCombineUnion.js"), exports); +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ "./node_modules/@comunica/mediator-combine-union/lib/MediatorCombineUnion.js": +/*!***********************************************************************************!*\ + !*** ./node_modules/@comunica/mediator-combine-union/lib/MediatorCombineUnion.js ***! + \***********************************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +exports.MediatorCombineUnion = void 0; +const core_1 = __webpack_require__(/*! @comunica/core */ "./node_modules/@comunica/core/index.js"); /** - An iterator that generates items by transforming each item of a source - with a different iterator. - @extends module:asynciterator.TransformIterator -*/ -class MultiTransformIterator extends TransformIterator { - /** - Creates a new `MultiTransformIterator`. - @param {module:asynciterator.AsyncIterator|Readable} [source] The source this iterator generates items from - @param {object|Function} [options] Settings of the iterator, or the transformation function - @param {integer} [options.maxbufferSize=4] The maximum number of items to keep in the buffer - @param {boolean} [options.autoStart=true] Whether buffering starts directly after construction - @param {module:asynciterator.AsyncIterator} [options.source] The source this iterator generates items from - @param {integer} [options.offset] The number of items to skip - @param {integer} [options.limit] The maximum number of items - @param {Function} [options.filter] A function to synchronously filter items from the source - @param {Function} [options.map] A function to synchronously transform items from the source - @param {Function} [options.transform] A function to asynchronously transform items from the source - @param {boolean} [options.optional=false] If transforming is optional, the original item is pushed when its mapping yields `null` or its transformation yields no items - @param {Function} [options.multiTransform] A function to asynchronously transform items to iterators from the source - @param {Array|module:asynciterator.AsyncIterator} [options.prepend] Items to insert before the source items - @param {Array|module:asynciterator.AsyncIterator} [options.append] Items to insert after the source items - */ - constructor(source, options) { - super(source, options); - this._transformerQueue = []; - // Set transformation steps from the options - if (options) { - const multiTransform = isFunction(options) ? options : options.multiTransform; - if (multiTransform) - this._createTransformer = multiTransform; - } + * A comunica mediator that takes the union of all actor results. + * + * The actors that are registered first will have priority on setting overlapping fields. + */ +class MediatorCombineUnion extends core_1.Mediator { + constructor(args) { + super(args); + this.combiner = this.createCombiner(); } - /* Tries to read and transform items */ - _read(count, done) { - // Remove transformers that have ended - const transformerQueue = this._transformerQueue, optional = this._optional; - let head, item; - while ((head = transformerQueue[0]) && head.transformer.done) { - // If transforming is optional, push the original item if none was pushed - if (optional && head.item !== null) { - count--; - this._push(head.item); - } - // Remove listeners from the transformer - transformerQueue.shift(); - const { transformer } = head; - transformer.removeListener('end', destinationFillBuffer); - transformer.removeListener('readable', destinationFillBuffer); - transformer.removeListener('error', destinationEmitError); - } - // Create new transformers if there are less than the maximum buffer size - const { source } = this; - while (source && !source.done && transformerQueue.length < this.maxBufferSize) { - // Read an item to create the next transformer - item = source.read(); - if (item === null) - break; - // Create the transformer and listen to its events - const transformer = (this._createTransformer(item) || - new EmptyIterator()); - transformer._destination = this; - transformer.on('end', destinationFillBuffer); - transformer.on('readable', destinationFillBuffer); - transformer.on('error', destinationEmitError); - transformerQueue.push({ transformer, item }); - } - // Try to read `count` items from the transformer - head = transformerQueue[0]; - if (head) { - const { transformer } = head; - while (count-- > 0 && (item = transformer.read()) !== null) { - this._push(item); - // If a transformed item was pushed, no need to push the original anymore - if (optional) - head.item = null; - } + async mediate(action) { + let testResults; + try { + testResults = this.publish(action); } - // End the iterator if the source has ended - else if (source && source.done) { - this.close(); + catch (_a) { + testResults = []; } - done(); - } - /** - Creates a transformer for the given item. - @param {object} item The last read item from the source - @returns {module:asynciterator.AsyncIterator} An iterator that transforms the given item - */ - _createTransformer(item) { - return new SingletonIterator(item); - } - /* Closes the iterator when pending items are transformed. */ - _closeWhenDone() { - // Only close if all transformers are read - if (!this._transformerQueue.length) - this.close(); + // Delegate test errors. + await Promise.all(testResults.map(({ reply }) => reply)); + // Run action on all actors. + const results = await Promise.all(testResults.map(result => result.actor.runObservable(action))); + // Return the combined results. + return this.combiner(results); } -} -/** - An iterator that generates items by reading from multiple other iterators. - @extends module:asynciterator.BufferedIterator -*/ -class UnionIterator extends BufferedIterator { - /** - Creates a new `UnionIterator`. - @param {module:asynciterator.AsyncIterator|Array} [sources] The sources to read from - @param {object} [options] Settings of the iterator - */ - constructor(sources, options = {}) { - super(options); - this._sources = []; - this._currentSource = -1; - const autoStart = options.autoStart !== false; - // Sources have been passed as an iterator - if (isEventEmitter(sources)) { - sources.on('error', error => this.emit('error', error)); - this._pending = { sources }; - if (autoStart) - this._loadSources(); - } - // Sources have been passed as a non-empty array - else if (Array.isArray(sources) && sources.length > 0) { - for (const source of sources) - this._addSource(source); - } - // Sources are an empty list - else if (autoStart) { - this.close(); - } + mediateWith() { + throw new Error('Method not supported.'); } - // Loads sources passed as an iterator - _loadSources() { - // Obtain sources iterator - const sources = this._pending.sources; - delete this._pending.sources; - // Close immediately if done - if (sources.done) { - delete this._pending; - this.close(); - } - // Otherwise, set up source reading - else { - sources.on('data', source => { - this._addSource(source); - this._fillBufferAsync(); - }); - sources.on('end', () => { - delete this._pending; - this._fillBuffer(); + createCombiner() { + return (results) => { + const data = {}; + data[this.field] = {}; + // eslint-disable-next-line unicorn/prefer-spread + [{}].concat(results.map((result) => result[this.field])) + .forEach((value, index, arr) => { + data[this.field] = Object.assign(Object.assign({}, value), data[this.field]); }); - } - } - // Adds the given source to the internal sources array - _addSource(source) { - if (!source.done) { - this._sources.push(source); - source._destination = this; - source.on('error', destinationEmitError); - source.on('readable', destinationFillBuffer); - source.on('end', destinationRemoveEmptySources); - } - } - // Removes sources that will no longer emit items - _removeEmptySources() { - this._sources = this._sources.filter((source, index) => { - // Adjust the index of the current source if needed - if (source.done && index <= this._currentSource) - this._currentSource--; - return !source.done; - }); - this._fillBuffer(); - } - // Reads items from the next sources - _read(count, done) { - var _a; - // Start source loading if needed - if ((_a = this._pending) === null || _a === void 0 ? void 0 : _a.sources) - this._loadSources(); - // Try to read `count` items - let lastCount = 0, item; - while (lastCount !== (lastCount = count)) { - // Try every source at least once - for (let i = 0; i < this._sources.length && count > 0; i++) { - // Pick the next source - this._currentSource = (this._currentSource + 1) % this._sources.length; - const source = this._sources[this._currentSource]; - // Attempt to read an item from that source - if ((item = source.read()) !== null) { - count--; - this._push(item); - } - } - } - // Close this iterator if all of its sources have been read - if (!this._pending && this._sources.length === 0) - this.close(); - done(); + return data; + }; } } -function destinationRemoveEmptySources() { - this._destination._removeEmptySources(); -} +exports.MediatorCombineUnion = MediatorCombineUnion; +//# sourceMappingURL=MediatorCombineUnion.js.map + +/***/ }), + +/***/ "./node_modules/@comunica/mediator-number/index.js": +/*!*********************************************************!*\ + !*** ./node_modules/@comunica/mediator-number/index.js ***! + \*********************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +__exportStar(__webpack_require__(/*! ./lib/MediatorNumber */ "./node_modules/@comunica/mediator-number/lib/MediatorNumber.js"), exports); +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ "./node_modules/@comunica/mediator-number/lib/MediatorNumber.js": +/*!**********************************************************************!*\ + !*** ./node_modules/@comunica/mediator-number/lib/MediatorNumber.js ***! + \**********************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +exports.MediatorNumber = void 0; +const core_1 = __webpack_require__(/*! @comunica/core */ "./node_modules/@comunica/core/index.js"); /** - An iterator that copies items from another iterator. - @extends module:asynciterator.TransformIterator -*/ -class ClonedIterator extends TransformIterator { - /** - Creates a new `ClonedIterator`. - @param {module:asynciterator.AsyncIterator|Readable} [source] The source this iterator copies items from - */ - constructor(source) { - super(source, { autoStart: false }); - this._readPosition = 0; - this._reading = false; - } - _init() { - // skip buffered iterator initialization, since we read from history - } - close() { - // skip buffered iterator cleanup - AsyncIterator.prototype.close.call(this); - } - // The source this iterator copies items from - get source() { - return super.source; - } - set source(value) { - // Validate and set the source - const source = this._source = this._validateSource(value); - // Create a history reader for the source if none already existed - const history = (source && source._destination) || - (source._destination = new HistoryReader(source)); - // Close this clone if history is empty and the source has ended - if (history.endsAt(0)) { - this.close(); - } - else { - // Subscribe to history events - history.register(this); - // If there are already items in history, this clone is readable - // If the source has a lazy start, always mark this iterator as readable without eagerly triggering a read. - if (source._sourceStarted === false || history.readAt(0) !== null) - this.readable = true; - } - // Hook pending property callbacks to the source - const propertyCallbacks = this._propertyCallbacks; - for (const propertyName in propertyCallbacks) { - const callbacks = propertyCallbacks[propertyName]; - for (const callback of callbacks) - this._getSourceProperty(propertyName, callback); - } + * A mediator that can mediate over a single number field. + * + * It takes the required 'field' and 'type' parameters. + * The 'field' parameter represents the field name of the test result field over which must be mediated. + * The 'type' parameter + */ +class MediatorNumber extends core_1.Mediator { + constructor(args) { + super(args); + this.indexPicker = this.createIndexPicker(); } /** - Validates whether the given iterator can be used as a source. - @protected - @param {object} source The source to validate - @param {boolean} allowDestination Whether the source can already have a destination - */ - _validateSource(source, allowDestination = false) { - const history = (source && source._destination); - return super._validateSource(source, !history || history instanceof HistoryReader); - } - // Retrieves the property with the given name from the clone or its source. - getProperty(propertyName, callback) { - const { source } = this, properties = this._properties, hasProperty = properties && (propertyName in properties); - // If no callback was passed, return the property value - if (!callback) { - return hasProperty ? properties && properties[propertyName] : - source && source.getProperty(propertyName); + * @return {(tests: T[]) => number} A function that returns the index of the test result + * that has been chosen by this mediator. + */ + createIndexPicker() { + switch (this.type) { + case MediatorNumber.MIN: + return (tests) => tests.reduce((prev, curr, i) => { + const val = this.getOrDefault(curr[this.field], Number.POSITIVE_INFINITY); + return val !== null && (Number.isNaN(prev[0]) || prev[0] > val) ? [val, i] : prev; + }, [Number.NaN, -1])[1]; + case MediatorNumber.MAX: + return (tests) => tests.reduce((prev, curr, i) => { + const val = this.getOrDefault(curr[this.field], Number.NEGATIVE_INFINITY); + return val !== null && (Number.isNaN(prev[0]) || prev[0] < val) ? [val, i] : prev; + }, [Number.NaN, -1])[1]; + default: + throw new Error(`No valid "type" value was given, must be either ${MediatorNumber.MIN} or ${MediatorNumber.MAX}, but got: ${this.type}`); } - // Try to look up the property in this clone - super.getProperty(propertyName, callback); - // If the property is not set on this clone, it might become set on the source first - if (source && !hasProperty) - this._getSourceProperty(propertyName, callback); - return undefined; - } - // Retrieves the property with the given name from the source - _getSourceProperty(propertyName, callback) { - this.source.getProperty(propertyName, value => { - // Only send the source's property if it was not set on the clone in the meantime - if (!this._properties || !(propertyName in this._properties)) - callback(value); - }); - } - // Retrieves all properties of the iterator and its source. - getProperties() { - const base = this.source ? this.source.getProperties() : {}, properties = this._properties; - for (const name in properties) - base[name] = properties[name]; - return base; } - /* Generates details for a textual representation of the iterator. */ - _toStringDetails() { - return `{source: ${this.source ? this.source.toString() : 'none'}}`; + getOrDefault(value, defaultValue) { + return value === undefined ? defaultValue : value; } - /* Tries to read an item */ - read() { - // An explicit read kickstarts the source - if (!this._sourceStarted) - this._sourceStarted = true; - const source = this.source; - let item = null; - if (!this.done && source) { - // Try to read an item at the current point in history - const history = source._destination; - if ((item = history.readAt(this._readPosition)) !== null) - this._readPosition++; - else - this.readable = false; - // Close the iterator if we are at the end of the source - if (history.endsAt(this._readPosition)) - this.close(); + async mediateWith(action, testResults) { + let promises = testResults.map(({ reply }) => reply); + const errors = []; + if (this.ignoreErrors) { + const dummy = {}; + dummy[this.field] = null; + promises = promises.map(promise => promise.catch(error => { + errors.push(error); + return dummy; + })); } - return item; - } - /* End the iterator and cleans up. */ - _end(destroy) { - // Unregister from a possible history reader - const source = this.source; - const history = source === null || source === void 0 ? void 0 : source._destination; - if (history) - history.unregister(this); - // Don't call TransformIterator#_end, - // as it would make the source inaccessible for other clones - BufferedIterator.prototype._end.call(this, destroy); - } -} -// Stores the history of a source, so it can be cloned -class HistoryReader { - constructor(source) { - this._clones = null; - this._history = []; - // If the source can still emit items, set up cloning - this._source = source; - if (!source.done) { - // When the source becomes readable, makes all clones readable - const setReadable = () => { - for (const clone of this._clones) - clone.readable = true; - }; - // When the source errors, re-emits the error - const emitError = (error) => { - for (const clone of this._clones) - clone.emit('error', error); - }; - // When the source ends, closes all clones that are fully read - const end = () => { - // Close the clone if all items had been emitted - for (const clone of this._clones) { - if (clone._sourceStarted !== false && - clone._readPosition === this._history.length) - clone.close(); - } - this._clones = null; - // Remove source listeners, since no further events will be emitted - source.removeListener('end', end); - source.removeListener('error', emitError); - source.removeListener('readable', setReadable); - }; - // Listen to source events to trigger events in subscribed clones - this._clones = []; - source.on('end', end); - source.on('error', emitError); - source.on('readable', setReadable); + const results = await Promise.all(promises); + const index = this.indexPicker(results); + if (index < 0) { + throw new Error(`All actors rejected their test in ${this.name}\n${errors.map(error => error.message).join('\n')}`); } + return testResults[index].actor; } - // Registers a clone for history updates - register(clone) { - if (this._clones !== null) - this._clones.push(clone); - } - // Unregisters a clone for history updates - unregister(clone) { - if (this._clones !== null) - this._clones = this._clones.filter(c => c !== clone); - } - // Tries to read the item at the given history position - readAt(pos) { - let item = null; - // Retrieve an item from history when available - if (pos < this._history.length) - item = this._history[pos]; - // Read a new item from the source when possible - else if (!this._source.done && (item = this._source.read()) !== null) - this._history[pos] = item; - return item; - } - // Determines whether the given position is the end of the source - endsAt(pos) { - return this._source.done && this._history.length === pos; - } -} -/** - Creates an iterator that wraps around a given iterator or readable stream. - Use this to convert an iterator-like object into a full-featured AsyncIterator. - After this operation, only read the returned iterator instead of the given one. - @function - @param {module:asynciterator.AsyncIterator|Readable} [source] The source this iterator generates items from - @param {object} [options] Settings of the iterator - @returns {module:asynciterator.AsyncIterator} A new iterator with the items from the given iterator -*/ -function wrap(source, options) { - return new TransformIterator(source, options); -} -/** - Creates an empty iterator. - */ -function empty() { - return new EmptyIterator(); -} -/** - Creates an iterator with a single item. - @param {object} item the item - */ -function single(item) { - return new SingletonIterator(item); -} -/** - Creates an iterator for the given array. - @param {Array} items the items - */ -function fromArray(items) { - return new ArrayIterator(items); -} -/** - Creates an iterator containing all items from the given iterators. - @param {Array} items the items - */ -function union(sources) { - return new UnionIterator(sources); -} -/** - Creates an iterator of integers for the given numeric range. - @param {Array} items the items - */ -function range(start, end, step) { - return new IntegerIterator({ start, end, step }); -} -// Determines whether the given object is a function -function isFunction(object) { - return typeof object === 'function'; -} -// Determines whether the given object is an EventEmitter -function isEventEmitter(object) { - return object && typeof object.on === 'function'; -} -// Determines whether the given object is a promise -function isPromise(object) { - return object && typeof object.then === 'function'; -} -// Determines whether the given object is a source expression -function isSourceExpression(object) { - return object && (isEventEmitter(object) || isPromise(object) || isFunction(object)); -} - - -/***/ }), - -/***/ "./node_modules/asynciterator/dist/taskscheduler.js": -/*!**********************************************************!*\ - !*** ./node_modules/asynciterator/dist/taskscheduler.js ***! - \**********************************************************/ -/*! exports provided: default */ -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -__webpack_require__.r(__webpack_exports__); -/* WEBPACK VAR INJECTION */(function(setImmediate) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return createTaskScheduler; }); -const resolved = Promise.resolve(undefined); -// Returns a function that asynchronously schedules a task -function createTaskScheduler() { - // Use or create a microtask scheduler - const scheduleMicrotask = typeof queueMicrotask === 'function' ? - queueMicrotask : (task) => resolved.then(task); - // Use or create a macrotask scheduler - const scheduleMacrotask = typeof setImmediate === 'function' ? - setImmediate : (task) => setTimeout(task, 0); - // Interrupt with a macrotask every once in a while to avoid freezing - let i = 0; - let queue = null; - return (task) => { - // Tasks are currently being queued to avoid freezing - if (queue !== null) - queue.push(task); - // Tasks are being scheduled normally as microtasks - else if (++i < 100) - scheduleMicrotask(task); - // A macrotask interruption is needed - else { - // Hold all tasks in a queue, and reschedule them after a macrotask - queue = [task]; - scheduleMacrotask(() => { - // Work through the queue - for (const queued of queue) - scheduleMicrotask(queued); - queue = null; - // Reset the interruption schedule - i = 0; - }); - } - }; } - -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../timers-browserify/main.js */ "./node_modules/timers-browserify/main.js").setImmediate)) +exports.MediatorNumber = MediatorNumber; +MediatorNumber.MIN = 'https://linkedsoftwaredependencies.org/bundles/npm/@comunica/mediator-number/' + + 'Mediator/Number/type/TypeMin'; +MediatorNumber.MAX = 'https://linkedsoftwaredependencies.org/bundles/npm/@comunica/mediator-number/' + + 'Mediator/Number/type/TypeMax'; +//# sourceMappingURL=MediatorNumber.js.map /***/ }), -/***/ "./node_modules/asyncjoin/index.js": -/*!*****************************************!*\ - !*** ./node_modules/asyncjoin/index.js ***! - \*****************************************/ +/***/ "./node_modules/@comunica/mediator-race/index.js": +/*!*******************************************************!*\ + !*** ./node_modules/@comunica/mediator-race/index.js ***! + \*******************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { +"use strict"; -const DynamicNestedLoopJoin = __webpack_require__(/*! ./join/DynamicNestedLoopJoin */ "./node_modules/asyncjoin/join/DynamicNestedLoopJoin.js"); -const HashJoin = __webpack_require__(/*! ./join/HashJoin */ "./node_modules/asyncjoin/join/HashJoin.js"); -const NestedLoopJoin = __webpack_require__(/*! ./join/NestedLoopJoin */ "./node_modules/asyncjoin/join/NestedLoopJoin.js"); -const SymmetricHashJoin = __webpack_require__(/*! ./join/SymmetricHashJoin */ "./node_modules/asyncjoin/join/SymmetricHashJoin.js"); - -const MergeStream = __webpack_require__(/*! ./util/MergeIterator */ "./node_modules/asyncjoin/util/MergeIterator.js"); - -module.exports = { - DynamicNestedLoopJoin, - HashJoin, - NestedLoopJoin, - SymmetricHashJoin, - - MergeStream +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); }; +Object.defineProperty(exports, "__esModule", { value: true }); +__exportStar(__webpack_require__(/*! ./lib/MediatorRace */ "./node_modules/@comunica/mediator-race/lib/MediatorRace.js"), exports); +//# sourceMappingURL=index.js.map /***/ }), -/***/ "./node_modules/asyncjoin/join/DynamicNestedLoopJoin.js": -/*!**************************************************************!*\ - !*** ./node_modules/asyncjoin/join/DynamicNestedLoopJoin.js ***! - \**************************************************************/ +/***/ "./node_modules/@comunica/mediator-race/lib/MediatorRace.js": +/*!******************************************************************!*\ + !*** ./node_modules/@comunica/mediator-race/lib/MediatorRace.js ***! + \******************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { +"use strict"; -let AsyncIterator = __webpack_require__(/*! asynciterator */ "./node_modules/asynciterator/dist/asynciterator.js"); -let MultiTransformIterator = AsyncIterator.MultiTransformIterator; -let SimpleTransformIterator = AsyncIterator.SimpleTransformIterator; - -// Nested Loop Join, but the values of the inner loop are determined by each value of the outer loop, possibly reducing the number of necessary checks -class DynamicNestedLoopJoin extends MultiTransformIterator -{ - constructor (left, funRight, funJoin) - { - super(left); - - this.funRight = funRight; - this.funJoin = funJoin; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.MediatorRace = void 0; +const core_1 = __webpack_require__(/*! @comunica/core */ "./node_modules/@comunica/core/index.js"); +/** + * A mediator that picks the first actor that resolves its test. + */ +class MediatorRace extends core_1.Mediator { + constructor(args) { + super(args); } - - _createTransformer (leftItem) - { - return new SimpleTransformIterator(this.funRight(leftItem), { transform: (rightItem, done) => - { - let result = this.funJoin(leftItem, rightItem); - if (result !== null) - this._push(result); - done(); - }}); + mediateWith(action, testResults) { + return new Promise((resolve, reject) => { + const errors = []; + for (const testResult of testResults) { + testResult.reply.then(() => { + resolve(testResult.actor); + }).catch(error => { + // Reject if all replies were rejected + errors.push(error); + if (errors.length === testResults.length) { + reject(new Error(`${this.name} mediated over all rejecting actors:\n${errors.map(subError => subError.message).join('\n')}`)); + } + }); + } + }); } } - -module.exports = DynamicNestedLoopJoin; +exports.MediatorRace = MediatorRace; +//# sourceMappingURL=MediatorRace.js.map /***/ }), -/***/ "./node_modules/asyncjoin/join/HashJoin.js": -/*!*************************************************!*\ - !*** ./node_modules/asyncjoin/join/HashJoin.js ***! - \*************************************************/ +/***/ "./node_modules/@comunica/utils-datasource/index.js": +/*!**********************************************************!*\ + !*** ./node_modules/@comunica/utils-datasource/index.js ***! + \**********************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { +"use strict"; -let AsyncIterator = __webpack_require__(/*! asynciterator */ "./node_modules/asynciterator/dist/asynciterator.js").AsyncIterator; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +__exportStar(__webpack_require__(/*! ./lib/DataSourceUtils */ "./node_modules/@comunica/utils-datasource/lib/DataSourceUtils.js"), exports); +//# sourceMappingURL=index.js.map -// https://en.wikipedia.org/wiki/Hash_join -class HashJoin extends AsyncIterator -{ - constructor (left, right, funHash, funJoin) - { - super(); +/***/ }), - this.addedDataListener = false; - this.left = left; - this.right = right; - this.funHash = funHash; - this.funJoin = funJoin; - - this.leftMap = new Map(); - - this.match = null; - this.matches = []; - this.matchIdx = 0; - - - this.readable = false; +/***/ "./node_modules/@comunica/utils-datasource/lib/DataSourceUtils.js": +/*!************************************************************************!*\ + !*** ./node_modules/@comunica/utils-datasource/lib/DataSourceUtils.js ***! + \************************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { - this.left.on('end', allowJoining.bind(this)); +"use strict"; - function allowJoining () - { - if (this.leftMap.size <= 0) - return this.close(); - this.readable = true; - this.right.on('readable', () => this.readable = true); - this.right.on('end', () => { if (!this.hasResults()) this._end(); }); +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DataSourceUtils = void 0; +const bus_rdf_resolve_quad_pattern_1 = __webpack_require__(/*! @comunica/bus-rdf-resolve-quad-pattern */ "./node_modules/@comunica/bus-rdf-resolve-quad-pattern/index.js"); +const context_entries_1 = __webpack_require__(/*! @comunica/context-entries */ "./node_modules/@comunica/context-entries/index.js"); +/** + * Comunica datasource utilities + */ +exports.DataSourceUtils = { + /** + * Get the single source if the context contains just a single source. + * @param {ActionContext} context A context, can be null. + * @return {Promise} A promise resolving to the single datasource or undefined. + */ + async getSingleSource(context) { + if (context && context.has(context_entries_1.KeysRdfResolveQuadPattern.source)) { + // If the single source is set + return context.get(context_entries_1.KeysRdfResolveQuadPattern.source); } - - this.on('newListener', (eventName) => - { - if (eventName === 'data' && !this.addedDataListener) - { - this.addedDataListener = true; - this._addDataListener(); + if (context && context.has(context_entries_1.KeysRdfResolveQuadPattern.sources)) { + // If multiple sources are set + const datasources = context.get(context_entries_1.KeysRdfResolveQuadPattern.sources); + if (datasources.length === 1) { + return datasources[0]; } - }) - } - - hasResults () - { - return !this.right.ended || this.matchIdx < this.matches.length; - } - - close () - { - super.close(); - this.left.close(); - this.right.close(); - } - - read () - { - if (!this.addedDataListener) - { - this.addedDataListener = true; - this._addDataListener(); - } - - if (this.ended || !this.readable) - return null; - - while (this.matchIdx < this.matches.length) - { - let item = this.matches[this.matchIdx++]; - let result = this.funJoin(item, this.match); - if (result !== null) - return result; - } - - if (!this.hasResults()) - this._end(); - - this.match = this.right.read(); - - if (this.match === null) - { - this.readable = false; - return null; } - - let hash = this.funHash(this.match); - this.matches = this.leftMap.get(hash) || []; - this.matchIdx = 0; - - // array is filled again so recursive call can have results - return this.read(); - } - - _addDataListener() - { - this.left.on('data', addItem.bind(this)); - - function addItem(item) - { - let hash = this.funHash(item); - if (!this.leftMap.has(hash)) - this.leftMap.set(hash, []); - let arr = this.leftMap.get(hash); - arr.push(item); + }, + /** + * Get the type of a single source + * @param {ActionContext} context A context, can be undefined. + * @return {Promise} A promise resolving to the type of the source, can be undefined if source is undefined. + */ + async getSingleSourceType(context) { + const source = await this.getSingleSource(context); + return source ? bus_rdf_resolve_quad_pattern_1.getDataSourceType(source) : undefined; + }, + /** + * Check if the given context has a single source of the given type. + * @param {ActionContext} context An optional context. + * @param {string} requiredType The required source type name. + * @return {boolean} If the given context has a single source of the given type. + */ + async singleSourceHasType(context, requiredType) { + const actualType = await this.getSingleSourceType(context); + return actualType ? actualType === requiredType : false; + }, + /** + * Get the single destination if the context contains just a single destination. + * @param {ActionContext} context A context, can be null. + * @return {Promise} A promise resolving to the single datadestination or undefined. + */ + async getSingleDestination(context) { + if (context && context.has(context_entries_1.KeysRdfUpdateQuads.destination)) { + // If the single destination is set + return context.get(context_entries_1.KeysRdfUpdateQuads.destination); } - } -} - -module.exports = HashJoin; + }, +}; +//# sourceMappingURL=DataSourceUtils.js.map /***/ }), -/***/ "./node_modules/asyncjoin/join/NestedLoopJoin.js": -/*!*******************************************************!*\ - !*** ./node_modules/asyncjoin/join/NestedLoopJoin.js ***! - \*******************************************************/ +/***/ "./node_modules/JSONStream/index.js": +/*!******************************************!*\ + !*** ./node_modules/JSONStream/index.js ***! + \******************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { +"use strict"; +/* WEBPACK VAR INJECTION */(function(Buffer) { -const { MultiTransformIterator, SimpleTransformIterator, scheduleTask } = __webpack_require__(/*! asynciterator */ "./node_modules/asynciterator/dist/asynciterator.js"); +var Parser = __webpack_require__(/*! jsonparse */ "./node_modules/jsonparse/jsonparse.js") + , through = __webpack_require__(/*! through */ "./node_modules/through/index.js") -// https://en.wikipedia.org/wiki/Nested_loop_join -class NestedLoopJoin extends MultiTransformIterator -{ - constructor (left, right, funJoin, options) - { - super(left, options); +var bufferFrom = Buffer.from && Buffer.from !== Uint8Array.from - this.right = right; - this.funJoin = funJoin; // function that joins 2 elements or returns null if join is not possible - this.on('end', () => this.right.close()); - } +/* - close () - { - super.close(); - scheduleTask(() => this.right.close()); - } + the value of this.stack that creationix's jsonparse has is weird. - _createTransformer (leftItem) - { - return new SimpleTransformIterator(this.right.clone(), { transform: (rightItem, done) => - { - let result = this.funJoin(leftItem, rightItem); - if (result !== null) - this._push(result); - done(); - }}); - } -} + it makes this code ugly, but his problem is way harder that mine, + so i'll forgive him. -module.exports = NestedLoopJoin; +*/ +exports.parse = function (path, map) { + var header, footer + var parser = new Parser() + var stream = through(function (chunk) { + if('string' === typeof chunk) + chunk = bufferFrom ? Buffer.from(chunk) : new Buffer(chunk) + parser.write(chunk) + }, + function (data) { + if(data) + stream.write(data) + if (header) + stream.emit('header', header) + if (footer) + stream.emit('footer', footer) + stream.queue(null) + }) -/***/ }), + if('string' === typeof path) + path = path.split('.').map(function (e) { + if (e === '$*') + return {emitKey: true} + else if (e === '*') + return true + else if (e === '') // '..'.split('.') returns an empty string + return {recurse: true} + else + return e + }) -/***/ "./node_modules/asyncjoin/join/SymmetricHashJoin.js": -/*!**********************************************************!*\ - !*** ./node_modules/asyncjoin/join/SymmetricHashJoin.js ***! - \**********************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { + var count = 0, _key + if(!path || !path.length) + path = null -let AsyncIterator = __webpack_require__(/*! asynciterator */ "./node_modules/asynciterator/dist/asynciterator.js").AsyncIterator; + parser.onValue = function (value) { + if (!this.root) + stream.root = value -// https://en.wikipedia.org/wiki/Symmetric_Hash_Join -class SymmetricHashJoin extends AsyncIterator -{ - constructor (left, right, funHash, funJoin) - { - super(); - - this.left = left; - this.right = right; - - this.funHash = funHash; - this.funJoin = funJoin; - - this.usedLeft = false; - this.leftMap = new Map(); - this.rightMap = new Map(); - - this.on('end', () => this._cleanup() ); - - this.match = null; - this.matches = []; - this.matchIdx = 0; + if(! path) return - if (this.left.readable || this.right.readable) - { - this.readable = true; + var i = 0 // iterates on path + var j = 0 // iterates on stack + var emitKey = false; + var emitPath = false; + while (i < path.length) { + var key = path[i] + var c + j++ + + if (key && !key.recurse) { + c = (j === this.stack.length) ? this : this.stack[j] + if (!c) return + if (! check(key, c.key)) { + setHeaderFooter(c.key, value) + return } - - this.left.on('readable', () => this.readable = true); - this.right.on('readable', () => this.readable = true); - - // this needs to be here since it's possible the left/right streams only get ended after there are no more results left - this.left.on ('end', () => { if (!this.hasResults()) this._end(); }); - this.right.on('end', () => { if (!this.hasResults()) this._end(); }); + emitKey = !!key.emitKey; + emitPath = !!key.emitPath; + i++ + } else { + i++ + var nextKey = path[i] + if (! nextKey) return + while (true) { + c = (j === this.stack.length) ? this : this.stack[j] + if (!c) return + if (check(nextKey, c.key)) { + i++; + if (!Object.isFrozen(this.stack[j])) + this.stack[j].value = null + break + } else { + setHeaderFooter(c.key, value) + } + j++ + } + } + } - - hasResults() - { - // The "!!this.match" condition was added as a workaround to race - // conditions and/or duplicate "end" events that may lead to premature - // cleanups of the "this.matches" array. - // See https://github.com/joachimvh/asyncjoin/issues/7 - return !this.left.ended || !this.right.ended || (!!this.matches && this.matchIdx < this.matches.length); - } - - _cleanup () - { - // motivate garbage collector to remove these - this.leftMap = null; - this.rightMap = null; - this.matches = null; - } - - close () - { - super.close(); - this.left.close(); - this.right.close(); - } - - read () - { - if (this.ended) - return null; - - while (this.matchIdx < this.matches.length) - { - let item = this.matches[this.matchIdx++]; - let result = this.usedLeft ? this.funJoin(this.match, item) : this.funJoin(item, this.match); - if (result !== null) - return result; - } - - if (!this.hasResults()) - this._end(); - - let item = null; - // try both streams if the first one has no value - for (let i = 0; i < 2; ++i) - { - item = this.usedLeft ? this.right.read() : this.left.read(); - this.usedLeft = !this.usedLeft; // try other stream next time - - // found a result, no need to check the other stream this run - if (item !== null) - break; - } - - if (item === null) - { - this.readable = false; - return null; - } - - let hash = this.funHash(item); - let map = this.usedLeft ? this.leftMap : this.rightMap; - if (!map.has(hash)) - map.set(hash, []); - let arr = map.get(hash); - arr.push(item); - - this.match = item; - this.matches = (this.usedLeft ? this.rightMap : this.leftMap).get(hash) || []; - this.matchIdx = 0; - - // array is filled again so recursive call can have results - return this.read(); - } -} - -module.exports = SymmetricHashJoin; - -/***/ }), - -/***/ "./node_modules/asyncjoin/util/MergeIterator.js": -/*!******************************************************!*\ - !*** ./node_modules/asyncjoin/util/MergeIterator.js ***! - \******************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - - -let AsyncIterator = __webpack_require__(/*! asynciterator */ "./node_modules/asynciterator/dist/asynciterator.js").AsyncIterator; - -// merges the contents of multiple streams -class MergeIterator extends AsyncIterator -{ - constructor (streams) - { - super(); - - if (!Array.isArray(streams)) - streams = Array.prototype.slice.call(arguments); - - this.streams = streams; - - for (let stream of streams) - { - stream.on('readable', () => this.emit('readable')); - stream.on('end', () => this._removeStream(stream)); - } - - if (this.streams.length === 0) - this.close(); - - this.idx = this.streams.length-1; - } - - _removeStream (stream) - { - let idx = this.streams.indexOf(stream); - if (idx < 0) - return; - - this.streams.splice(idx, 1); - if (this.idx >= this.streams.length) - --this.idx; - - if (this.streams.length === 0) - this._end(); - } - - close () - { - super.close(); - for (let stream of this.streams) - stream.close(); - } - - read () - { - for (let attempts = 0; attempts < this.streams.length; ++attempts) - { - this.idx = (this.idx + 1) % this.streams.length; - let item = this.streams[this.idx].read(); - if (item !== null) - return item; - } - - return null; - } -} - -module.exports = MergeIterator; - -/***/ }), - -/***/ "./node_modules/axios/index.js": -/*!*************************************!*\ - !*** ./node_modules/axios/index.js ***! - \*************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -module.exports = __webpack_require__(/*! ./lib/axios */ "./node_modules/axios/lib/axios.js"); - -/***/ }), - -/***/ "./node_modules/axios/lib/adapters/xhr.js": -/*!************************************************!*\ - !*** ./node_modules/axios/lib/adapters/xhr.js ***! - \************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js"); -var settle = __webpack_require__(/*! ./../core/settle */ "./node_modules/axios/lib/core/settle.js"); -var cookies = __webpack_require__(/*! ./../helpers/cookies */ "./node_modules/axios/lib/helpers/cookies.js"); -var buildURL = __webpack_require__(/*! ./../helpers/buildURL */ "./node_modules/axios/lib/helpers/buildURL.js"); -var buildFullPath = __webpack_require__(/*! ../core/buildFullPath */ "./node_modules/axios/lib/core/buildFullPath.js"); -var parseHeaders = __webpack_require__(/*! ./../helpers/parseHeaders */ "./node_modules/axios/lib/helpers/parseHeaders.js"); -var isURLSameOrigin = __webpack_require__(/*! ./../helpers/isURLSameOrigin */ "./node_modules/axios/lib/helpers/isURLSameOrigin.js"); -var createError = __webpack_require__(/*! ../core/createError */ "./node_modules/axios/lib/core/createError.js"); - -module.exports = function xhrAdapter(config) { - return new Promise(function dispatchXhrRequest(resolve, reject) { - var requestData = config.data; - var requestHeaders = config.headers; - - if (utils.isFormData(requestData)) { - delete requestHeaders['Content-Type']; // Let the browser set it - } - - var request = new XMLHttpRequest(); - - // HTTP basic authentication - if (config.auth) { - var username = config.auth.username || ''; - var password = config.auth.password ? unescape(encodeURIComponent(config.auth.password)) : ''; - requestHeaders.Authorization = 'Basic ' + btoa(username + ':' + password); - } - - var fullPath = buildFullPath(config.baseURL, config.url); - request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), true); - - // Set the request timeout in MS - request.timeout = config.timeout; - - // Listen for ready state - request.onreadystatechange = function handleLoad() { - if (!request || request.readyState !== 4) { - return; - } - - // The request errored out and we didn't get a response, this will be - // handled by onerror instead - // With one exception: request that using file: protocol, most browsers - // will return status as 0 even though it's a successful request - if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) { - return; - } - - // Prepare the response - var responseHeaders = 'getAllResponseHeaders' in request ? parseHeaders(request.getAllResponseHeaders()) : null; - var responseData = !config.responseType || config.responseType === 'text' ? request.responseText : request.response; - var response = { - data: responseData, - status: request.status, - statusText: request.statusText, - headers: responseHeaders, - config: config, - request: request - }; - - settle(resolve, reject, response); - - // Clean up request - request = null; - }; - - // Handle browser request cancellation (as opposed to a manual cancellation) - request.onabort = function handleAbort() { - if (!request) { - return; - } - - reject(createError('Request aborted', config, 'ECONNABORTED', request)); - - // Clean up request - request = null; - }; - - // Handle low level network errors - request.onerror = function handleError() { - // Real errors are hidden from us by the browser - // onerror should only fire if it's a network error - reject(createError('Network Error', config, null, request)); - - // Clean up request - request = null; - }; - - // Handle timeout - request.ontimeout = function handleTimeout() { - var timeoutErrorMessage = 'timeout of ' + config.timeout + 'ms exceeded'; - if (config.timeoutErrorMessage) { - timeoutErrorMessage = config.timeoutErrorMessage; - } - reject(createError(timeoutErrorMessage, config, 'ECONNABORTED', - request)); - - // Clean up request - request = null; - }; - - // Add xsrf header - // This is only done if running in a standard browser environment. - // Specifically not if we're in a web worker, or react-native. - if (utils.isStandardBrowserEnv()) { - // Add xsrf header - var xsrfValue = (config.withCredentials || isURLSameOrigin(fullPath)) && config.xsrfCookieName ? - cookies.read(config.xsrfCookieName) : - undefined; - if (xsrfValue) { - requestHeaders[config.xsrfHeaderName] = xsrfValue; - } + // emit header + if (header) { + stream.emit('header', header); + header = false; } + if (j !== this.stack.length) return - // Add headers to the request - if ('setRequestHeader' in request) { - utils.forEach(requestHeaders, function setRequestHeader(val, key) { - if (typeof requestData === 'undefined' && key.toLowerCase() === 'content-type') { - // Remove Content-Type if data is undefined - delete requestHeaders[key]; - } else { - // Otherwise add header to the request - request.setRequestHeader(key, val); + count ++ + var actualPath = this.stack.slice(1).map(function(element) { return element.key }).concat([this.key]) + var data = value + if(null != data) + if(null != (data = map ? map(data, actualPath) : data)) { + if (emitKey || emitPath) { + data = { value: data }; + if (emitKey) + data["key"] = this.key; + if (emitPath) + data["path"] = actualPath; } - }); - } - - // Add withCredentials to request if needed - if (!utils.isUndefined(config.withCredentials)) { - request.withCredentials = !!config.withCredentials; - } - // Add responseType to request if needed - if (config.responseType) { - try { - request.responseType = config.responseType; - } catch (e) { - // Expected DOMException thrown by browsers not compatible XMLHttpRequest Level 2. - // But, this can be suppressed for 'json' type as it can be parsed by default 'transformResponse' function. - if (config.responseType !== 'json') { - throw e; - } + stream.queue(data) } - } + if (this.value) delete this.value[this.key] + for(var k in this.stack) + if (!Object.isFrozen(this.stack[k])) + this.stack[k].value = null + } + parser._onToken = parser.onToken; - // Handle progress if needed - if (typeof config.onDownloadProgress === 'function') { - request.addEventListener('progress', config.onDownloadProgress); + parser.onToken = function (token, value) { + parser._onToken(token, value); + if (this.stack.length === 0) { + if (stream.root) { + if(!path) + stream.queue(stream.root) + count = 0; + stream.root = null; + } } + } - // Not all browsers support upload events - if (typeof config.onUploadProgress === 'function' && request.upload) { - request.upload.addEventListener('progress', config.onUploadProgress); - } + parser.onError = function (err) { + if(err.message.indexOf("at position") > -1) + err.message = "Invalid JSON (" + err.message + ")"; + stream.emit('error', err) + } - if (config.cancelToken) { - // Handle cancellation - config.cancelToken.promise.then(function onCanceled(cancel) { - if (!request) { - return; - } + return stream - request.abort(); - reject(cancel); - // Clean up request - request = null; - }); + function setHeaderFooter(key, value) { + // header has not been emitted yet + if (header !== false) { + header = header || {} + header[key] = value } - if (!requestData) { - requestData = null; + // footer has not been emitted yet but header has + if (footer !== false && header === false) { + footer = footer || {} + footer[key] = value } - - // Send the request - request.send(requestData); - }); -}; - - -/***/ }), - -/***/ "./node_modules/axios/lib/axios.js": -/*!*****************************************!*\ - !*** ./node_modules/axios/lib/axios.js ***! - \*****************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -var utils = __webpack_require__(/*! ./utils */ "./node_modules/axios/lib/utils.js"); -var bind = __webpack_require__(/*! ./helpers/bind */ "./node_modules/axios/lib/helpers/bind.js"); -var Axios = __webpack_require__(/*! ./core/Axios */ "./node_modules/axios/lib/core/Axios.js"); -var mergeConfig = __webpack_require__(/*! ./core/mergeConfig */ "./node_modules/axios/lib/core/mergeConfig.js"); -var defaults = __webpack_require__(/*! ./defaults */ "./node_modules/axios/lib/defaults.js"); - -/** - * Create an instance of Axios - * - * @param {Object} defaultConfig The default config for the instance - * @return {Axios} A new instance of Axios - */ -function createInstance(defaultConfig) { - var context = new Axios(defaultConfig); - var instance = bind(Axios.prototype.request, context); - - // Copy axios.prototype to instance - utils.extend(instance, Axios.prototype, context); - - // Copy context to instance - utils.extend(instance, context); - - return instance; + } } -// Create the default instance to be exported -var axios = createInstance(defaults); - -// Expose Axios class to allow class inheritance -axios.Axios = Axios; - -// Factory for creating new instances -axios.create = function create(instanceConfig) { - return createInstance(mergeConfig(axios.defaults, instanceConfig)); -}; - -// Expose Cancel & CancelToken -axios.Cancel = __webpack_require__(/*! ./cancel/Cancel */ "./node_modules/axios/lib/cancel/Cancel.js"); -axios.CancelToken = __webpack_require__(/*! ./cancel/CancelToken */ "./node_modules/axios/lib/cancel/CancelToken.js"); -axios.isCancel = __webpack_require__(/*! ./cancel/isCancel */ "./node_modules/axios/lib/cancel/isCancel.js"); - -// Expose all/spread -axios.all = function all(promises) { - return Promise.all(promises); -}; -axios.spread = __webpack_require__(/*! ./helpers/spread */ "./node_modules/axios/lib/helpers/spread.js"); - -// Expose isAxiosError -axios.isAxiosError = __webpack_require__(/*! ./helpers/isAxiosError */ "./node_modules/axios/lib/helpers/isAxiosError.js"); - -module.exports = axios; - -// Allow use of default import syntax in TypeScript -module.exports.default = axios; - - -/***/ }), - -/***/ "./node_modules/axios/lib/cancel/Cancel.js": -/*!*************************************************!*\ - !*** ./node_modules/axios/lib/cancel/Cancel.js ***! - \*************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -/** - * A `Cancel` is an object that is thrown when an operation is canceled. - * - * @class - * @param {string=} message The message. - */ -function Cancel(message) { - this.message = message; +function check (x, y) { + if ('string' === typeof x) + return y == x + else if (x && 'function' === typeof x.exec) + return x.exec(y) + else if ('boolean' === typeof x || 'object' === typeof x) + return x + else if ('function' === typeof x) + return x(y) + return false } -Cancel.prototype.toString = function toString() { - return 'Cancel' + (this.message ? ': ' + this.message : ''); -}; - -Cancel.prototype.__CANCEL__ = true; - -module.exports = Cancel; - - -/***/ }), - -/***/ "./node_modules/axios/lib/cancel/CancelToken.js": -/*!******************************************************!*\ - !*** ./node_modules/axios/lib/cancel/CancelToken.js ***! - \******************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - +exports.stringify = function (op, sep, cl, indent) { + indent = indent || 0 + if (op === false){ + op = '' + sep = '\n' + cl = '' + } else if (op == null) { -var Cancel = __webpack_require__(/*! ./Cancel */ "./node_modules/axios/lib/cancel/Cancel.js"); + op = '[\n' + sep = '\n,\n' + cl = '\n]\n' -/** - * A `CancelToken` is an object that can be used to request cancellation of an operation. - * - * @class - * @param {Function} executor The executor function. - */ -function CancelToken(executor) { - if (typeof executor !== 'function') { - throw new TypeError('executor must be a function.'); } - var resolvePromise; - this.promise = new Promise(function promiseExecutor(resolve) { - resolvePromise = resolve; - }); + //else, what ever you like - var token = this; - executor(function cancel(message) { - if (token.reason) { - // Cancellation has already been requested - return; + var stream + , first = true + , anyData = false + stream = through(function (data) { + anyData = true + try { + var json = JSON.stringify(data, null, indent) + } catch (err) { + return stream.emit('error', err) } + if(first) { first = false ; stream.queue(op + json)} + else stream.queue(sep + json) + }, + function (data) { + if(!anyData) + stream.queue(op) + stream.queue(cl) + stream.queue(null) + }) - token.reason = new Cancel(message); - resolvePromise(token.reason); - }); + return stream } -/** - * Throws a `Cancel` if cancellation has been requested. - */ -CancelToken.prototype.throwIfRequested = function throwIfRequested() { - if (this.reason) { - throw this.reason; - } -}; +exports.stringifyObject = function (op, sep, cl, indent) { + indent = indent || 0 + if (op === false){ + op = '' + sep = '\n' + cl = '' + } else if (op == null) { -/** - * Returns an object that contains a new `CancelToken` and a function that, when called, - * cancels the `CancelToken`. - */ -CancelToken.source = function source() { - var cancel; - var token = new CancelToken(function executor(c) { - cancel = c; - }); - return { - token: token, - cancel: cancel - }; -}; + op = '{\n' + sep = '\n,\n' + cl = '\n}\n' -module.exports = CancelToken; + } + //else, what ever you like -/***/ }), + var first = true + var anyData = false + var stream = through(function (data) { + anyData = true + var json = JSON.stringify(data[0]) + ':' + JSON.stringify(data[1], null, indent) + if(first) { first = false ; this.queue(op + json)} + else this.queue(sep + json) + }, + function (data) { + if(!anyData) this.queue(op) + this.queue(cl) -/***/ "./node_modules/axios/lib/cancel/isCancel.js": -/*!***************************************************!*\ - !*** ./node_modules/axios/lib/cancel/isCancel.js ***! - \***************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { + this.queue(null) + }) -"use strict"; + return stream +} -module.exports = function isCancel(value) { - return !!(value && value.__CANCEL__); -}; +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../buffer/index.js */ "./node_modules/buffer/index.js").Buffer)) /***/ }), -/***/ "./node_modules/axios/lib/core/Axios.js": -/*!**********************************************!*\ - !*** ./node_modules/axios/lib/core/Axios.js ***! - \**********************************************/ +/***/ "./node_modules/abort-controller/browser.js": +/*!**************************************************!*\ + !*** ./node_modules/abort-controller/browser.js ***! + \**************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; +/*globals self, window */ -var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js"); -var buildURL = __webpack_require__(/*! ../helpers/buildURL */ "./node_modules/axios/lib/helpers/buildURL.js"); -var InterceptorManager = __webpack_require__(/*! ./InterceptorManager */ "./node_modules/axios/lib/core/InterceptorManager.js"); -var dispatchRequest = __webpack_require__(/*! ./dispatchRequest */ "./node_modules/axios/lib/core/dispatchRequest.js"); -var mergeConfig = __webpack_require__(/*! ./mergeConfig */ "./node_modules/axios/lib/core/mergeConfig.js"); - -/** - * Create a new instance of Axios - * - * @param {Object} instanceConfig The default config for the instance - */ -function Axios(instanceConfig) { - this.defaults = instanceConfig; - this.interceptors = { - request: new InterceptorManager(), - response: new InterceptorManager() - }; -} - -/** - * Dispatch a request - * - * @param {Object} config The config specific for this request (merged with this.defaults) - */ -Axios.prototype.request = function request(config) { - /*eslint no-param-reassign:0*/ - // Allow for axios('example/url'[, config]) a la fetch API - if (typeof config === 'string') { - config = arguments[1] || {}; - config.url = arguments[0]; - } else { - config = config || {}; - } - - config = mergeConfig(this.defaults, config); - - // Set config.method - if (config.method) { - config.method = config.method.toLowerCase(); - } else if (this.defaults.method) { - config.method = this.defaults.method.toLowerCase(); - } else { - config.method = 'get'; - } - - // Hook up interceptors middleware - var chain = [dispatchRequest, undefined]; - var promise = Promise.resolve(config); - - this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) { - chain.unshift(interceptor.fulfilled, interceptor.rejected); - }); - - this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) { - chain.push(interceptor.fulfilled, interceptor.rejected); - }); - - while (chain.length) { - promise = promise.then(chain.shift(), chain.shift()); - } - - return promise; -}; - -Axios.prototype.getUri = function getUri(config) { - config = mergeConfig(this.defaults, config); - return buildURL(config.url, config.params, config.paramsSerializer).replace(/^\?/, ''); -}; - -// Provide aliases for supported request methods -utils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) { - /*eslint func-names:0*/ - Axios.prototype[method] = function(url, config) { - return this.request(mergeConfig(config || {}, { - method: method, - url: url, - data: (config || {}).data - })); - }; -}); - -utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) { - /*eslint func-names:0*/ - Axios.prototype[method] = function(url, data, config) { - return this.request(mergeConfig(config || {}, { - method: method, - url: url, - data: data - })); - }; -}); +/*eslint-disable @mysticatea/prettier */ +const { AbortController, AbortSignal } = + typeof self !== "undefined" ? self : + typeof window !== "undefined" ? window : + /* otherwise */ undefined +/*eslint-enable @mysticatea/prettier */ -module.exports = Axios; +module.exports = AbortController +module.exports.AbortSignal = AbortSignal +module.exports.default = AbortController /***/ }), -/***/ "./node_modules/axios/lib/core/InterceptorManager.js": -/*!***********************************************************!*\ - !*** ./node_modules/axios/lib/core/InterceptorManager.js ***! - \***********************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { +/***/ "./node_modules/asynciterator/dist/asynciterator.js": +/*!**********************************************************!*\ + !*** ./node_modules/asynciterator/dist/asynciterator.js ***! + \**********************************************************/ +/*! exports provided: scheduleTask, getTaskScheduler, setTaskScheduler, INIT, OPEN, CLOSING, CLOSED, ENDED, DESTROYED, AsyncIterator, EmptyIterator, SingletonIterator, ArrayIterator, IntegerIterator, BufferedIterator, TransformIterator, SimpleTransformIterator, MultiTransformIterator, UnionIterator, ClonedIterator, wrap, empty, single, fromArray, union, range */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; +__webpack_require__.r(__webpack_exports__); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "scheduleTask", function() { return scheduleTask; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getTaskScheduler", function() { return getTaskScheduler; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setTaskScheduler", function() { return setTaskScheduler; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "INIT", function() { return INIT; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "OPEN", function() { return OPEN; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CLOSING", function() { return CLOSING; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "CLOSED", function() { return CLOSED; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ENDED", function() { return ENDED; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DESTROYED", function() { return DESTROYED; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AsyncIterator", function() { return AsyncIterator; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EmptyIterator", function() { return EmptyIterator; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SingletonIterator", function() { return SingletonIterator; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ArrayIterator", function() { return ArrayIterator; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "IntegerIterator", function() { return IntegerIterator; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BufferedIterator", function() { return BufferedIterator; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TransformIterator", function() { return TransformIterator; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SimpleTransformIterator", function() { return SimpleTransformIterator; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MultiTransformIterator", function() { return MultiTransformIterator; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UnionIterator", function() { return UnionIterator; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ClonedIterator", function() { return ClonedIterator; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wrap", function() { return wrap; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "empty", function() { return empty; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "single", function() { return single; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fromArray", function() { return fromArray; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "union", function() { return union; }); +/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "range", function() { return range; }); +/* harmony import */ var events__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! events */ "./node_modules/events/events.js"); +/* harmony import */ var events__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(events__WEBPACK_IMPORTED_MODULE_0__); +/* harmony import */ var _taskscheduler_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./taskscheduler.js */ "./node_modules/asynciterator/dist/taskscheduler.js"); +/** + * An asynchronous iterator library for advanced object pipelines + * @module asynciterator + */ -var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js"); - -function InterceptorManager() { - this.handlers = []; +let taskScheduler = Object(_taskscheduler_js__WEBPACK_IMPORTED_MODULE_1__["default"])(); +/** Schedules the given ask for asynchronous execution. */ +function scheduleTask(task) { + taskScheduler(task); +} +/** Returns the asynchronous task scheduler. */ +function getTaskScheduler() { + return taskScheduler; +} +/** Sets the asynchronous task scheduler. */ +function setTaskScheduler(scheduler) { + taskScheduler = scheduler; } - /** - * Add a new interceptor to the stack - * - * @param {Function} fulfilled The function to handle `then` for a `Promise` - * @param {Function} rejected The function to handle `reject` for a `Promise` - * - * @return {Number} An ID used to remove interceptor later - */ -InterceptorManager.prototype.use = function use(fulfilled, rejected) { - this.handlers.push({ - fulfilled: fulfilled, - rejected: rejected - }); - return this.handlers.length - 1; -}; - + ID of the INIT state. + An iterator is initializing if it is preparing main item generation. + It can already produce items. + @type integer +*/ +const INIT = 1 << 0; /** - * Remove an interceptor from the stack - * - * @param {Number} id The ID that was returned by `use` - */ -InterceptorManager.prototype.eject = function eject(id) { - if (this.handlers[id]) { - this.handlers[id] = null; - } -}; - + ID of the OPEN state. + An iterator is open if it can generate new items. + @type integer +*/ +const OPEN = 1 << 1; /** - * Iterate over all the registered interceptors - * - * This method is particularly useful for skipping over any - * interceptors that may have become `null` calling `eject`. - * - * @param {Function} fn The function to call for each interceptor - */ -InterceptorManager.prototype.forEach = function forEach(fn) { - utils.forEach(this.handlers, function forEachHandler(h) { - if (h !== null) { - fn(h); - } - }); -}; - -module.exports = InterceptorManager; - - -/***/ }), - -/***/ "./node_modules/axios/lib/core/buildFullPath.js": -/*!******************************************************!*\ - !*** ./node_modules/axios/lib/core/buildFullPath.js ***! - \******************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -var isAbsoluteURL = __webpack_require__(/*! ../helpers/isAbsoluteURL */ "./node_modules/axios/lib/helpers/isAbsoluteURL.js"); -var combineURLs = __webpack_require__(/*! ../helpers/combineURLs */ "./node_modules/axios/lib/helpers/combineURLs.js"); - + ID of the CLOSING state. + An iterator is closing if item generation is pending but will not be scheduled again. + @type integer +*/ +const CLOSING = 1 << 2; /** - * Creates a new URL by combining the baseURL with the requestedURL, - * only when the requestedURL is not already an absolute URL. - * If the requestURL is absolute, this function returns the requestedURL untouched. - * - * @param {string} baseURL The base URL - * @param {string} requestedURL Absolute or relative URL to combine - * @returns {string} The combined full path - */ -module.exports = function buildFullPath(baseURL, requestedURL) { - if (baseURL && !isAbsoluteURL(requestedURL)) { - return combineURLs(baseURL, requestedURL); - } - return requestedURL; -}; - - -/***/ }), - -/***/ "./node_modules/axios/lib/core/createError.js": -/*!****************************************************!*\ - !*** ./node_modules/axios/lib/core/createError.js ***! - \****************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -var enhanceError = __webpack_require__(/*! ./enhanceError */ "./node_modules/axios/lib/core/enhanceError.js"); - + ID of the CLOSED state. + An iterator is closed if it no longer actively generates new items. + Items might still be available. + @type integer +*/ +const CLOSED = 1 << 3; /** - * Create an Error with the specified message, config, error code, request and response. - * - * @param {string} message The error message. - * @param {Object} config The config. - * @param {string} [code] The error code (for example, 'ECONNABORTED'). - * @param {Object} [request] The request. - * @param {Object} [response] The response. - * @returns {Error} The created error. - */ -module.exports = function createError(message, config, code, request, response) { - var error = new Error(message); - return enhanceError(error, config, code, request, response); -}; - - -/***/ }), - -/***/ "./node_modules/axios/lib/core/dispatchRequest.js": -/*!********************************************************!*\ - !*** ./node_modules/axios/lib/core/dispatchRequest.js ***! - \********************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js"); -var transformData = __webpack_require__(/*! ./transformData */ "./node_modules/axios/lib/core/transformData.js"); -var isCancel = __webpack_require__(/*! ../cancel/isCancel */ "./node_modules/axios/lib/cancel/isCancel.js"); -var defaults = __webpack_require__(/*! ../defaults */ "./node_modules/axios/lib/defaults.js"); - + ID of the ENDED state. + An iterator has ended if no further items will become available. + The 'end' event is guaranteed to have been called when in this state. + @type integer +*/ +const ENDED = 1 << 4; /** - * Throws a `Cancel` if cancellation has been requested. - */ -function throwIfCancellationRequested(config) { - if (config.cancelToken) { - config.cancelToken.throwIfRequested(); - } -} - + ID of the DESTROYED state. + An iterator has been destroyed + after calling {@link module:asynciterator.AsyncIterator#destroy}. + The 'end' event has not been called, as pending elements were voided. + @type integer +*/ +const DESTROYED = 1 << 5; /** - * Dispatch a request to the server using the configured adapter. - * - * @param {object} config The config that is to be used for the request - * @returns {Promise} The Promise to be fulfilled - */ -module.exports = function dispatchRequest(config) { - throwIfCancellationRequested(config); - - // Ensure headers exist - config.headers = config.headers || {}; - - // Transform request data - config.data = transformData( - config.data, - config.headers, - config.transformRequest - ); - - // Flatten headers - config.headers = utils.merge( - config.headers.common || {}, - config.headers[config.method] || {}, - config.headers - ); - - utils.forEach( - ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'], - function cleanHeaderConfig(method) { - delete config.headers[method]; + An asynchronous iterator provides pull-based access to a stream of objects. + @extends module:asynciterator.EventEmitter +*/ +class AsyncIterator extends events__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"] { + /** Creates a new `AsyncIterator`. */ + constructor(initialState = OPEN) { + super(); + this._readable = false; + this._state = initialState; + this.on('newListener', waitForDataListener); } - ); - - var adapter = config.adapter || defaults.adapter; - - return adapter(config).then(function onAdapterResolution(response) { - throwIfCancellationRequested(config); - - // Transform response data - response.data = transformData( - response.data, - response.headers, - config.transformResponse - ); - - return response; - }, function onAdapterRejection(reason) { - if (!isCancel(reason)) { - throwIfCancellationRequested(config); - - // Transform response data - if (reason && reason.response) { - reason.response.data = transformData( - reason.response.data, - reason.response.headers, - config.transformResponse - ); - } + /** + Changes the iterator to the given state if possible and necessary, + possibly emitting events to signal that change. + @protected + @param {integer} newState The ID of the new state + @param {boolean} [eventAsync=false] Whether resulting events should be emitted asynchronously + @returns {boolean} Whether the state was changed + @emits module:asynciterator.AsyncIterator.end + */ + _changeState(newState, eventAsync = false) { + // Validate the state change + const valid = newState > this._state && this._state < ENDED; + if (valid) { + this._state = newState; + // Emit the `end` event when changing to ENDED + if (newState === ENDED) { + if (!eventAsync) + this.emit('end'); + else + taskScheduler(() => this.emit('end')); + } + } + return valid; } - - return Promise.reject(reason); - }); -}; - - -/***/ }), - -/***/ "./node_modules/axios/lib/core/enhanceError.js": -/*!*****************************************************!*\ - !*** ./node_modules/axios/lib/core/enhanceError.js ***! - \*****************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -/** - * Update an Error with the specified config, error code, and response. - * - * @param {Error} error The error to update. - * @param {Object} config The config. - * @param {string} [code] The error code (for example, 'ECONNABORTED'). - * @param {Object} [request] The request. - * @param {Object} [response] The response. - * @returns {Error} The error. - */ -module.exports = function enhanceError(error, config, code, request, response) { - error.config = config; - if (code) { - error.code = code; - } - - error.request = request; - error.response = response; - error.isAxiosError = true; - - error.toJSON = function toJSON() { - return { - // Standard - message: this.message, - name: this.name, - // Microsoft - description: this.description, - number: this.number, - // Mozilla - fileName: this.fileName, - lineNumber: this.lineNumber, - columnNumber: this.columnNumber, - stack: this.stack, - // Axios - config: this.config, - code: this.code - }; - }; - return error; -}; - - -/***/ }), - -/***/ "./node_modules/axios/lib/core/mergeConfig.js": -/*!****************************************************!*\ - !*** ./node_modules/axios/lib/core/mergeConfig.js ***! - \****************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -var utils = __webpack_require__(/*! ../utils */ "./node_modules/axios/lib/utils.js"); - -/** - * Config-specific merge-function which creates a new config-object - * by merging two configuration objects together. - * - * @param {Object} config1 - * @param {Object} config2 - * @returns {Object} New object resulting from merging config2 to config1 - */ -module.exports = function mergeConfig(config1, config2) { - // eslint-disable-next-line no-param-reassign - config2 = config2 || {}; - var config = {}; - - var valueFromConfig2Keys = ['url', 'method', 'data']; - var mergeDeepPropertiesKeys = ['headers', 'auth', 'proxy', 'params']; - var defaultToConfig2Keys = [ - 'baseURL', 'transformRequest', 'transformResponse', 'paramsSerializer', - 'timeout', 'timeoutMessage', 'withCredentials', 'adapter', 'responseType', 'xsrfCookieName', - 'xsrfHeaderName', 'onUploadProgress', 'onDownloadProgress', 'decompress', - 'maxContentLength', 'maxBodyLength', 'maxRedirects', 'transport', 'httpAgent', - 'httpsAgent', 'cancelToken', 'socketPath', 'responseEncoding' - ]; - var directMergeKeys = ['validateStatus']; - - function getMergedValue(target, source) { - if (utils.isPlainObject(target) && utils.isPlainObject(source)) { - return utils.merge(target, source); - } else if (utils.isPlainObject(source)) { - return utils.merge({}, source); - } else if (utils.isArray(source)) { - return source.slice(); + /** + Tries to read the next item from the iterator. + This is the main method for reading the iterator in _on-demand mode_, + where new items are only created when needed by consumers. + If no items are currently available, this methods returns `null`. + The {@link module:asynciterator.event:readable} event + will then signal when new items might be ready. + To read all items from the iterator, + switch to _flow mode_ by subscribing + to the {@link module:asynciterator.event:data} event. + When in flow mode, do not use the `read` method. + @returns {object?} The next item, or `null` if none is available + */ + read() { + return null; } - return source; - } - - function mergeDeepProperties(prop) { - if (!utils.isUndefined(config2[prop])) { - config[prop] = getMergedValue(config1[prop], config2[prop]); - } else if (!utils.isUndefined(config1[prop])) { - config[prop] = getMergedValue(undefined, config1[prop]); + /** + The iterator emits a `readable` event when it might have new items available + after having had no items available right before this event. + If the iterator is not in flow mode, items can be retrieved + by calling {@link module:asynciterator.AsyncIterator#read}. + @event module:asynciterator.readable + */ + /** + The iterator emits a `data` event with a new item as soon as it becomes available. + When one or more listeners are attached to the `data` event, + the iterator switches to _flow mode_, + generating and emitting new items as fast as possible. + This drains the source and might create backpressure on the consumers, + so only subscribe to this event if this behavior is intended. + In flow mode, don't use {@link module:asynciterator.AsyncIterator#read}. + To switch back to _on-demand mode_, remove all listeners from the `data` event. + You can then obtain items through `read` again. + @event module:asynciterator.data + @param {object} item The new item + */ + /** + Invokes the callback for each remaining item in the iterator. + Switches the iterator to flow mode. + @param {Function} callback A function that will be called with each item + @param {object?} self The `this` pointer for the callback + */ + forEach(callback, self) { + this.on('data', self ? callback.bind(self) : callback); } - } - - utils.forEach(valueFromConfig2Keys, function valueFromConfig2(prop) { - if (!utils.isUndefined(config2[prop])) { - config[prop] = getMergedValue(undefined, config2[prop]); + /** + Stops the iterator from generating new items. + Already generated items or terminating items can still be emitted. + After this, the iterator will end asynchronously. + @emits module:asynciterator.AsyncIterator.end + */ + close() { + if (this._changeState(CLOSED)) + this._endAsync(); } - }); - - utils.forEach(mergeDeepPropertiesKeys, mergeDeepProperties); - - utils.forEach(defaultToConfig2Keys, function defaultToConfig2(prop) { - if (!utils.isUndefined(config2[prop])) { - config[prop] = getMergedValue(undefined, config2[prop]); - } else if (!utils.isUndefined(config1[prop])) { - config[prop] = getMergedValue(undefined, config1[prop]); + /** + Destroy the iterator and stop it from generating new items. + This will not do anything if the iterator was already ended or destroyed. + All internal resources will be released an no new items will be emitted, + even not already generated items. + Implementors should not override this method, + but instead implement {@link module:asynciterator.AsyncIterator#_destroy}. + @param {Error} [cause] An optional error to emit. + @emits module:asynciterator.AsyncIterator.end + @emits module:asynciterator.AsyncIterator.error Only if an error is passed. + */ + destroy(cause) { + if (!this.done) { + this._destroy(cause, error => { + cause = cause || error; + if (cause) + this.emit('error', cause); + this._end(true); + }); + } } - }); - - utils.forEach(directMergeKeys, function merge(prop) { - if (prop in config2) { - config[prop] = getMergedValue(config1[prop], config2[prop]); - } else if (prop in config1) { - config[prop] = getMergedValue(undefined, config1[prop]); + /** + Called by {@link module:asynciterator.AsyncIterator#destroy}. + Implementers can override this, but this should not be called directly. + @param {?Error} cause The reason why the iterator is destroyed. + @param {Function} callback A callback function with an optional error argument. + */ + _destroy(cause, callback) { + callback(); } - }); - - var axiosKeys = valueFromConfig2Keys - .concat(mergeDeepPropertiesKeys) - .concat(defaultToConfig2Keys) - .concat(directMergeKeys); - - var otherKeys = Object - .keys(config1) - .concat(Object.keys(config2)) - .filter(function filterAxiosKeys(key) { - return axiosKeys.indexOf(key) === -1; - }); - - utils.forEach(otherKeys, mergeDeepProperties); - - return config; -}; - - -/***/ }), - -/***/ "./node_modules/axios/lib/core/settle.js": -/*!***********************************************!*\ - !*** ./node_modules/axios/lib/core/settle.js ***! - \***********************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -var createError = __webpack_require__(/*! ./createError */ "./node_modules/axios/lib/core/createError.js"); - -/** - * Resolve or reject a Promise based on response status. - * - * @param {Function} resolve A function that resolves the promise. - * @param {Function} reject A function that rejects the promise. - * @param {object} response The response. - */ -module.exports = function settle(resolve, reject, response) { - var validateStatus = response.config.validateStatus; - if (!response.status || !validateStatus || validateStatus(response.status)) { - resolve(response); - } else { - reject(createError( - 'Request failed with status code ' + response.status, - response.config, - null, - response.request, - response - )); - } -}; - - -/***/ }), - -/***/ "./node_modules/axios/lib/core/transformData.js": -/*!******************************************************!*\ - !*** ./node_modules/axios/lib/core/transformData.js ***! - \******************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js"); - -/** - * Transform the data for a request or a response - * - * @param {Object|String} data The data to be transformed - * @param {Array} headers The headers for the request or response - * @param {Array|Function} fns A single function or Array of functions - * @returns {*} The resulting transformed data - */ -module.exports = function transformData(data, headers, fns) { - /*eslint no-param-reassign:0*/ - utils.forEach(fns, function transform(fn) { - data = fn(data, headers); - }); - - return data; -}; - - -/***/ }), - -/***/ "./node_modules/axios/lib/defaults.js": -/*!********************************************!*\ - !*** ./node_modules/axios/lib/defaults.js ***! - \********************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; -/* WEBPACK VAR INJECTION */(function(process) { - -var utils = __webpack_require__(/*! ./utils */ "./node_modules/axios/lib/utils.js"); -var normalizeHeaderName = __webpack_require__(/*! ./helpers/normalizeHeaderName */ "./node_modules/axios/lib/helpers/normalizeHeaderName.js"); - -var DEFAULT_CONTENT_TYPE = { - 'Content-Type': 'application/x-www-form-urlencoded' -}; - -function setContentTypeIfUnset(headers, value) { - if (!utils.isUndefined(headers) && utils.isUndefined(headers['Content-Type'])) { - headers['Content-Type'] = value; - } -} - -function getDefaultAdapter() { - var adapter; - if (typeof XMLHttpRequest !== 'undefined') { - // For browsers use XHR adapter - adapter = __webpack_require__(/*! ./adapters/xhr */ "./node_modules/axios/lib/adapters/xhr.js"); - } else if (typeof process !== 'undefined' && Object.prototype.toString.call(process) === '[object process]') { - // For node use HTTP adapter - adapter = __webpack_require__(/*! ./adapters/http */ "./node_modules/axios/lib/adapters/xhr.js"); - } - return adapter; -} - -var defaults = { - adapter: getDefaultAdapter(), - - transformRequest: [function transformRequest(data, headers) { - normalizeHeaderName(headers, 'Accept'); - normalizeHeaderName(headers, 'Content-Type'); - if (utils.isFormData(data) || - utils.isArrayBuffer(data) || - utils.isBuffer(data) || - utils.isStream(data) || - utils.isFile(data) || - utils.isBlob(data) - ) { - return data; + /** + Ends the iterator and cleans up. + Should never be called before {@link module:asynciterator.AsyncIterator#close}; + typically, `close` is responsible for calling `_end`. + @param {boolean} [destroy] If the iterator should be forcefully destroyed. + @protected + @emits module:asynciterator.AsyncIterator.end + */ + _end(destroy = false) { + if (this._changeState(destroy ? DESTROYED : ENDED)) { + this._readable = false; + this.removeAllListeners('readable'); + this.removeAllListeners('data'); + this.removeAllListeners('end'); + } } - if (utils.isArrayBufferView(data)) { - return data.buffer; + /** + Asynchronously calls `_end`. + @protected + */ + _endAsync() { + taskScheduler(() => this._end()); } - if (utils.isURLSearchParams(data)) { - setContentTypeIfUnset(headers, 'application/x-www-form-urlencoded;charset=utf-8'); - return data.toString(); + /** + The `end` event is emitted after the last item of the iterator has been read. + @event module:asynciterator.end + */ + /** + Gets or sets whether this iterator might have items available for read. + A value of `false` means there are _definitely_ no items available; + a value of `true` means items _might_ be available. + @type boolean + @emits module:asynciterator.AsyncIterator.readable + */ + get readable() { + return this._readable; } - if (utils.isObject(data)) { - setContentTypeIfUnset(headers, 'application/json;charset=utf-8'); - return JSON.stringify(data); + set readable(readable) { + readable = Boolean(readable) && !this.done; + // Set the readable value only if it has changed + if (this._readable !== readable) { + this._readable = readable; + // If the iterator became readable, emit the `readable` event + if (readable) + taskScheduler(() => this.emit('readable')); + } } - return data; - }], - - transformResponse: [function transformResponse(data) { - /*eslint no-param-reassign:0*/ - if (typeof data === 'string') { - try { - data = JSON.parse(data); - } catch (e) { /* Ignore */ } + /** + Gets whether the iterator has stopped generating new items. + @type boolean + @readonly + */ + get closed() { + return this._state >= CLOSING; } - return data; - }], - - /** - * A timeout in milliseconds to abort a request. If set to 0 (default) a - * timeout is not created. - */ - timeout: 0, - - xsrfCookieName: 'XSRF-TOKEN', - xsrfHeaderName: 'X-XSRF-TOKEN', - - maxContentLength: -1, - maxBodyLength: -1, - - validateStatus: function validateStatus(status) { - return status >= 200 && status < 300; - } -}; - -defaults.headers = { - common: { - 'Accept': 'application/json, text/plain, */*' - } -}; - -utils.forEach(['delete', 'get', 'head'], function forEachMethodNoData(method) { - defaults.headers[method] = {}; -}); - -utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) { - defaults.headers[method] = utils.merge(DEFAULT_CONTENT_TYPE); -}); - -module.exports = defaults; - -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../process/browser.js */ "./node_modules/process/browser.js"))) - -/***/ }), - -/***/ "./node_modules/axios/lib/helpers/bind.js": -/*!************************************************!*\ - !*** ./node_modules/axios/lib/helpers/bind.js ***! - \************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -module.exports = function bind(fn, thisArg) { - return function wrap() { - var args = new Array(arguments.length); - for (var i = 0; i < args.length; i++) { - args[i] = arguments[i]; + /** + Gets whether the iterator has finished emitting items. + @type boolean + @readonly + */ + get ended() { + return this._state === ENDED; } - return fn.apply(thisArg, args); - }; -}; - - -/***/ }), - -/***/ "./node_modules/axios/lib/helpers/buildURL.js": -/*!****************************************************!*\ - !*** ./node_modules/axios/lib/helpers/buildURL.js ***! - \****************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js"); - -function encode(val) { - return encodeURIComponent(val). - replace(/%3A/gi, ':'). - replace(/%24/g, '$'). - replace(/%2C/gi, ','). - replace(/%20/g, '+'). - replace(/%5B/gi, '['). - replace(/%5D/gi, ']'); -} - -/** - * Build a URL by appending params to the end - * - * @param {string} url The base of the url (e.g., http://www.google.com) - * @param {object} [params] The params to be appended - * @returns {string} The formatted url - */ -module.exports = function buildURL(url, params, paramsSerializer) { - /*eslint no-param-reassign:0*/ - if (!params) { - return url; - } - - var serializedParams; - if (paramsSerializer) { - serializedParams = paramsSerializer(params); - } else if (utils.isURLSearchParams(params)) { - serializedParams = params.toString(); - } else { - var parts = []; - - utils.forEach(params, function serialize(val, key) { - if (val === null || typeof val === 'undefined') { - return; - } - - if (utils.isArray(val)) { - key = key + '[]'; - } else { - val = [val]; - } - - utils.forEach(val, function parseValue(v) { - if (utils.isDate(v)) { - v = v.toISOString(); - } else if (utils.isObject(v)) { - v = JSON.stringify(v); + /** + Gets whether the iterator has been destroyed. + @type boolean + @readonly + */ + get destroyed() { + return this._state === DESTROYED; + } + /** + Gets whether the iterator will not emit anymore items, + either due to being closed or due to being destroyed. + @type boolean + @readonly + */ + get done() { + return this._state >= ENDED; + } + /* Generates a textual representation of the iterator. */ + toString() { + const details = this._toStringDetails(); + return `[${this.constructor.name}${details ? ` ${details}` : ''}]`; + } + /** + Generates details for a textual representation of the iterator. + @protected + */ + _toStringDetails() { + return ''; + } + /** + Retrieves the property with the given name from the iterator. + If no callback is passed, it returns the value of the property + or `undefined` if the property is not set. + If a callback is passed, it returns `undefined` + and calls the callback with the property the moment it is set. + @param {string} propertyName The name of the property to retrieve + @param {Function?} [callback] A one-argument callback to receive the property value + @returns {object?} The value of the property (if set and no callback is given) + */ + getProperty(propertyName, callback) { + const properties = this._properties; + // If no callback was passed, return the property value + if (!callback) + return properties && properties[propertyName]; + // If the value has been set, send it through the callback + if (properties && (propertyName in properties)) { + taskScheduler(() => callback(properties[propertyName])); } - parts.push(encode(key) + '=' + encode(v)); - }); - }); - - serializedParams = parts.join('&'); - } - - if (serializedParams) { - var hashmarkIndex = url.indexOf('#'); - if (hashmarkIndex !== -1) { - url = url.slice(0, hashmarkIndex); + // If the value was not set, store the callback for when the value will be set + else { + let propertyCallbacks; + if (!(propertyCallbacks = this._propertyCallbacks)) + this._propertyCallbacks = propertyCallbacks = Object.create(null); + if (propertyName in propertyCallbacks) + propertyCallbacks[propertyName].push(callback); + else + propertyCallbacks[propertyName] = [callback]; + } + return undefined; } - - url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams; - } - - return url; -}; - - -/***/ }), - -/***/ "./node_modules/axios/lib/helpers/combineURLs.js": -/*!*******************************************************!*\ - !*** ./node_modules/axios/lib/helpers/combineURLs.js ***! - \*******************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -/** - * Creates a new URL by combining the specified URLs - * - * @param {string} baseURL The base URL - * @param {string} relativeURL The relative URL - * @returns {string} The combined URL - */ -module.exports = function combineURLs(baseURL, relativeURL) { - return relativeURL - ? baseURL.replace(/\/+$/, '') + '/' + relativeURL.replace(/^\/+/, '') - : baseURL; -}; - - -/***/ }), - -/***/ "./node_modules/axios/lib/helpers/cookies.js": -/*!***************************************************!*\ - !*** ./node_modules/axios/lib/helpers/cookies.js ***! - \***************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js"); - -module.exports = ( - utils.isStandardBrowserEnv() ? - - // Standard browser envs support document.cookie - (function standardBrowserEnv() { - return { - write: function write(name, value, expires, path, domain, secure) { - var cookie = []; - cookie.push(name + '=' + encodeURIComponent(value)); - - if (utils.isNumber(expires)) { - cookie.push('expires=' + new Date(expires).toGMTString()); - } - - if (utils.isString(path)) { - cookie.push('path=' + path); - } - - if (utils.isString(domain)) { - cookie.push('domain=' + domain); - } - - if (secure === true) { - cookie.push('secure'); - } - - document.cookie = cookie.join('; '); - }, - - read: function read(name) { - var match = document.cookie.match(new RegExp('(^|;\\s*)(' + name + ')=([^;]*)')); - return (match ? decodeURIComponent(match[3]) : null); - }, - - remove: function remove(name) { - this.write(name, '', Date.now() - 86400000); + /** + Sets the property with the given name to the value. + @param {string} propertyName The name of the property to set + @param {object?} value The new value of the property + */ + setProperty(propertyName, value) { + const properties = this._properties || (this._properties = Object.create(null)); + properties[propertyName] = value; + // Execute getter callbacks that were waiting for this property to be set + const propertyCallbacks = this._propertyCallbacks || {}; + const callbacks = propertyCallbacks[propertyName]; + if (callbacks) { + delete propertyCallbacks[propertyName]; + taskScheduler(() => { + for (const callback of callbacks) + callback(value); + }); + // Remove _propertyCallbacks if no pending callbacks are left + for (propertyName in propertyCallbacks) + return; + delete this._propertyCallbacks; } - }; - })() : - - // Non standard browser env (web workers, react-native) lack needed support. - (function nonStandardBrowserEnv() { - return { - write: function write() {}, - read: function read() { return null; }, - remove: function remove() {} - }; - })() -); - - -/***/ }), - -/***/ "./node_modules/axios/lib/helpers/isAbsoluteURL.js": -/*!*********************************************************!*\ - !*** ./node_modules/axios/lib/helpers/isAbsoluteURL.js ***! - \*********************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -/** - * Determines whether the specified URL is absolute - * - * @param {string} url The URL to test - * @returns {boolean} True if the specified URL is absolute, otherwise false - */ -module.exports = function isAbsoluteURL(url) { - // A URL is considered absolute if it begins with "://" or "//" (protocol-relative URL). - // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed - // by any combination of letters, digits, plus, period, or hyphen. - return /^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(url); -}; - - -/***/ }), - -/***/ "./node_modules/axios/lib/helpers/isAxiosError.js": -/*!********************************************************!*\ - !*** ./node_modules/axios/lib/helpers/isAxiosError.js ***! - \********************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -/** - * Determines whether the payload is an error thrown by Axios - * - * @param {*} payload The value to test - * @returns {boolean} True if the payload is an error thrown by Axios, otherwise false - */ -module.exports = function isAxiosError(payload) { - return (typeof payload === 'object') && (payload.isAxiosError === true); -}; - - -/***/ }), - -/***/ "./node_modules/axios/lib/helpers/isURLSameOrigin.js": -/*!***********************************************************!*\ - !*** ./node_modules/axios/lib/helpers/isURLSameOrigin.js ***! - \***********************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js"); - -module.exports = ( - utils.isStandardBrowserEnv() ? - - // Standard browser envs have full support of the APIs needed to test - // whether the request URL is of the same origin as current location. - (function standardBrowserEnv() { - var msie = /(msie|trident)/i.test(navigator.userAgent); - var urlParsingNode = document.createElement('a'); - var originURL; - - /** - * Parse a URL to discover it's components - * - * @param {String} url The URL to be parsed - * @returns {Object} + } + /** + Retrieves all properties of the iterator. + @returns {object} An object with property names as keys. */ - function resolveURL(url) { - var href = url; - - if (msie) { - // IE needs attribute set twice to normalize properties - urlParsingNode.setAttribute('href', href); - href = urlParsingNode.href; + getProperties() { + const properties = this._properties; + const copy = {}; + for (const name in properties) + copy[name] = properties[name]; + return copy; + } + /** + Sets all of the given properties. + @param {object} properties Key/value pairs of properties to set + */ + setProperties(properties) { + for (const propertyName in properties) + this.setProperty(propertyName, properties[propertyName]); + } + /** + Copies the given properties from the source iterator. + @param {module:asynciterator.AsyncIterator} source The iterator to copy from + @param {Array} propertyNames List of property names to copy + */ + copyProperties(source, propertyNames) { + for (const propertyName of propertyNames) { + source.getProperty(propertyName, value => this.setProperty(propertyName, value)); } - - urlParsingNode.setAttribute('href', href); - - // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils - return { - href: urlParsingNode.href, - protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '', - host: urlParsingNode.host, - search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, '') : '', - hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '', - hostname: urlParsingNode.hostname, - port: urlParsingNode.port, - pathname: (urlParsingNode.pathname.charAt(0) === '/') ? - urlParsingNode.pathname : - '/' + urlParsingNode.pathname - }; - } - - originURL = resolveURL(window.location.href); - - /** - * Determine if a URL shares the same origin as the current location - * - * @param {String} requestURL The URL to test - * @returns {boolean} True if URL shares the same origin, otherwise false + } + /** + Transforms items from this iterator. + After this operation, only read the returned iterator instead of the current one. + @param {object|Function} [options] Settings of the iterator, or the transformation function + @param {integer} [options.maxbufferSize=4] The maximum number of items to keep in the buffer + @param {boolean} [options.autoStart=true] Whether buffering starts directly after construction + @param {integer} [options.offset] The number of items to skip + @param {integer} [options.limit] The maximum number of items + @param {Function} [options.filter] A function to synchronously filter items from the source + @param {Function} [options.map] A function to synchronously transform items from the source + @param {Function} [options.transform] A function to asynchronously transform items from the source + @param {boolean} [options.optional=false] If transforming is optional, the original item is pushed when its mapping yields `null` or its transformation yields no items + @param {Array|module:asynciterator.AsyncIterator} [options.prepend] Items to insert before the source items + @param {Array|module:asynciterator.AsyncIterator} [options.append] Items to insert after the source items + @returns {module:asynciterator.AsyncIterator} A new iterator that maps the items from this iterator */ - return function isURLSameOrigin(requestURL) { - var parsed = (utils.isString(requestURL)) ? resolveURL(requestURL) : requestURL; - return (parsed.protocol === originURL.protocol && - parsed.host === originURL.host); - }; - })() : - - // Non standard browser envs (web workers, react-native) lack needed support. - (function nonStandardBrowserEnv() { - return function isURLSameOrigin() { - return true; - }; - })() -); - - -/***/ }), - -/***/ "./node_modules/axios/lib/helpers/normalizeHeaderName.js": -/*!***************************************************************!*\ - !*** ./node_modules/axios/lib/helpers/normalizeHeaderName.js ***! - \***************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -var utils = __webpack_require__(/*! ../utils */ "./node_modules/axios/lib/utils.js"); - -module.exports = function normalizeHeaderName(headers, normalizedName) { - utils.forEach(headers, function processHeader(value, name) { - if (name !== normalizedName && name.toUpperCase() === normalizedName.toUpperCase()) { - headers[normalizedName] = value; - delete headers[name]; + transform(options) { + return new SimpleTransformIterator(this, options); } - }); -}; - - -/***/ }), - -/***/ "./node_modules/axios/lib/helpers/parseHeaders.js": -/*!********************************************************!*\ - !*** ./node_modules/axios/lib/helpers/parseHeaders.js ***! - \********************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js"); - -// Headers whose duplicates are ignored by node -// c.f. https://nodejs.org/api/http.html#http_message_headers -var ignoreDuplicateOf = [ - 'age', 'authorization', 'content-length', 'content-type', 'etag', - 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since', - 'last-modified', 'location', 'max-forwards', 'proxy-authorization', - 'referer', 'retry-after', 'user-agent' -]; - -/** - * Parse headers into an object - * - * ``` - * Date: Wed, 27 Aug 2014 08:58:49 GMT - * Content-Type: application/json - * Connection: keep-alive - * Transfer-Encoding: chunked - * ``` - * - * @param {String} headers Headers needing to be parsed - * @returns {Object} Headers parsed into an object - */ -module.exports = function parseHeaders(headers) { - var parsed = {}; - var key; - var val; - var i; - - if (!headers) { return parsed; } - - utils.forEach(headers.split('\n'), function parser(line) { - i = line.indexOf(':'); - key = utils.trim(line.substr(0, i)).toLowerCase(); - val = utils.trim(line.substr(i + 1)); - - if (key) { - if (parsed[key] && ignoreDuplicateOf.indexOf(key) >= 0) { - return; - } - if (key === 'set-cookie') { - parsed[key] = (parsed[key] ? parsed[key] : []).concat([val]); - } else { - parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val; - } + /** + Maps items from this iterator using the given function. + After this operation, only read the returned iterator instead of the current one. + @param {Function} map A mapping function to call on this iterator's (remaining) items + @param {object?} self The `this` pointer for the mapping function + @returns {module:asynciterator.AsyncIterator} A new iterator that maps the items from this iterator + */ + map(map, self) { + return this.transform({ map: self ? map.bind(self) : map }); + } + filter(filter, self) { + return this.transform({ filter: self ? filter.bind(self) : filter }); + } + /** + Prepends the items after those of the current iterator. + After this operation, only read the returned iterator instead of the current one. + @param {Array|module:asynciterator.AsyncIterator} items Items to insert before this iterator's (remaining) items + @returns {module:asynciterator.AsyncIterator} A new iterator that prepends items to this iterator + */ + prepend(items) { + return this.transform({ prepend: items }); + } + /** + Appends the items after those of the current iterator. + After this operation, only read the returned iterator instead of the current one. + @param {Array|module:asynciterator.AsyncIterator} items Items to insert after this iterator's (remaining) items + @returns {module:asynciterator.AsyncIterator} A new iterator that appends items to this iterator + */ + append(items) { + return this.transform({ append: items }); + } + /** + Surrounds items of the current iterator with the given items. + After this operation, only read the returned iterator instead of the current one. + @param {Array|module:asynciterator.AsyncIterator} prepend Items to insert before this iterator's (remaining) items + @param {Array|module:asynciterator.AsyncIterator} append Items to insert after this iterator's (remaining) items + @returns {module:asynciterator.AsyncIterator} A new iterator that appends and prepends items to this iterator + */ + surround(prepend, append) { + return this.transform({ prepend, append }); + } + /** + Skips the given number of items from the current iterator. + The current iterator may not be read anymore until the returned iterator ends. + @param {integer} offset The number of items to skip + @returns {module:asynciterator.AsyncIterator} A new iterator that skips the given number of items + */ + skip(offset) { + return this.transform({ offset }); + } + /** + Limits the current iterator to the given number of items. + The current iterator may not be read anymore until the returned iterator ends. + @param {integer} limit The maximum number of items + @returns {module:asynciterator.AsyncIterator} A new iterator with at most the given number of items + */ + take(limit) { + return this.transform({ limit }); + } + /** + Limits the current iterator to the given range. + The current iterator may not be read anymore until the returned iterator ends. + @param {integer} start Index of the first item to return + @param {integer} end Index of the last item to return + @returns {module:asynciterator.AsyncIterator} A new iterator with items in the given range + */ + range(start, end) { + return this.transform({ offset: start, limit: Math.max(end - start + 1, 0) }); + } + /** + Creates a copy of the current iterator, + containing all items emitted from this point onward. + Further copies can be created; they will all start from this same point. + After this operation, only read the returned copies instead of the original iterator. + @returns {module:asynciterator.AsyncIterator} A new iterator that contains all future items of this iterator + */ + clone() { + return new ClonedIterator(this); } - }); - - return parsed; -}; - - -/***/ }), - -/***/ "./node_modules/axios/lib/helpers/spread.js": -/*!**************************************************!*\ - !*** ./node_modules/axios/lib/helpers/spread.js ***! - \**************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -/** - * Syntactic sugar for invoking a function and expanding an array for arguments. - * - * Common use case would be to use `Function.prototype.apply`. - * - * ```js - * function f(x, y, z) {} - * var args = [1, 2, 3]; - * f.apply(null, args); - * ``` - * - * With `spread` this example can be re-written. - * - * ```js - * spread(function(x, y, z) {})([1, 2, 3]); - * ``` - * - * @param {Function} callback - * @returns {Function} - */ -module.exports = function spread(callback) { - return function wrap(arr) { - return callback.apply(null, arr); - }; -}; - - -/***/ }), - -/***/ "./node_modules/axios/lib/utils.js": -/*!*****************************************!*\ - !*** ./node_modules/axios/lib/utils.js ***! - \*****************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -var bind = __webpack_require__(/*! ./helpers/bind */ "./node_modules/axios/lib/helpers/bind.js"); - -/*global toString:true*/ - -// utils is a library of generic helper functions non-specific to axios - -var toString = Object.prototype.toString; - -/** - * Determine if a value is an Array - * - * @param {Object} val The value to test - * @returns {boolean} True if value is an Array, otherwise false - */ -function isArray(val) { - return toString.call(val) === '[object Array]'; -} - -/** - * Determine if a value is undefined - * - * @param {Object} val The value to test - * @returns {boolean} True if the value is undefined, otherwise false - */ -function isUndefined(val) { - return typeof val === 'undefined'; -} - -/** - * Determine if a value is a Buffer - * - * @param {Object} val The value to test - * @returns {boolean} True if value is a Buffer, otherwise false - */ -function isBuffer(val) { - return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor) - && typeof val.constructor.isBuffer === 'function' && val.constructor.isBuffer(val); -} - -/** - * Determine if a value is an ArrayBuffer - * - * @param {Object} val The value to test - * @returns {boolean} True if value is an ArrayBuffer, otherwise false - */ -function isArrayBuffer(val) { - return toString.call(val) === '[object ArrayBuffer]'; -} - -/** - * Determine if a value is a FormData - * - * @param {Object} val The value to test - * @returns {boolean} True if value is an FormData, otherwise false - */ -function isFormData(val) { - return (typeof FormData !== 'undefined') && (val instanceof FormData); -} - -/** - * Determine if a value is a view on an ArrayBuffer - * - * @param {Object} val The value to test - * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false - */ -function isArrayBufferView(val) { - var result; - if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) { - result = ArrayBuffer.isView(val); - } else { - result = (val) && (val.buffer) && (val.buffer instanceof ArrayBuffer); - } - return result; } - -/** - * Determine if a value is a String - * - * @param {Object} val The value to test - * @returns {boolean} True if value is a String, otherwise false - */ -function isString(val) { - return typeof val === 'string'; +// Starts emitting `data` events when `data` listeners are added +function waitForDataListener(eventName) { + if (eventName === 'data') { + this.removeListener('newListener', waitForDataListener); + addSingleListener(this, 'readable', emitData); + if (this.readable) + taskScheduler(() => emitData.call(this)); + } } - -/** - * Determine if a value is a Number - * - * @param {Object} val The value to test - * @returns {boolean} True if value is a Number, otherwise false - */ -function isNumber(val) { - return typeof val === 'number'; +// Emits new items though `data` events as long as there are `data` listeners +function emitData() { + // While there are `data` listeners and items, emit them + let item; + while (this.listenerCount('data') !== 0 && (item = this.read()) !== null) + this.emit('data', item); + // Stop draining the source if there are no more `data` listeners + if (this.listenerCount('data') === 0 && !this.done) { + this.removeListener('readable', emitData); + addSingleListener(this, 'newListener', waitForDataListener); + } } - -/** - * Determine if a value is an Object - * - * @param {Object} val The value to test - * @returns {boolean} True if value is an Object, otherwise false - */ -function isObject(val) { - return val !== null && typeof val === 'object'; +// Adds the listener to the event, if it has not been added previously. +function addSingleListener(source, eventName, listener) { + if (!source.listeners(eventName).includes(listener)) + source.on(eventName, listener); } - /** - * Determine if a value is a plain Object - * - * @param {Object} val The value to test - * @return {boolean} True if value is a plain Object, otherwise false - */ -function isPlainObject(val) { - if (toString.call(val) !== '[object Object]') { - return false; - } - - var prototype = Object.getPrototypeOf(val); - return prototype === null || prototype === Object.prototype; + An iterator that doesn't emit any items. + @extends module:asynciterator.AsyncIterator +*/ +class EmptyIterator extends AsyncIterator { + /** Creates a new `EmptyIterator`. */ + constructor() { + super(); + this._changeState(ENDED, true); + } } - /** - * Determine if a value is a Date - * - * @param {Object} val The value to test - * @returns {boolean} True if value is a Date, otherwise false - */ -function isDate(val) { - return toString.call(val) === '[object Date]'; + An iterator that emits a single item. + @extends module:asynciterator.AsyncIterator +*/ +class SingletonIterator extends AsyncIterator { + /** + Creates a new `SingletonIterator`. + @param {object} item The item that will be emitted. + */ + constructor(item) { + super(); + this._item = item; + if (item === null) + this.close(); + else + this.readable = true; + } + /* Reads the item from the iterator. */ + read() { + const item = this._item; + this._item = null; + this.close(); + return item; + } + /* Generates details for a textual representation of the iterator. */ + _toStringDetails() { + return this._item === null ? '' : `(${this._item})`; + } } - /** - * Determine if a value is a File - * - * @param {Object} val The value to test - * @returns {boolean} True if value is a File, otherwise false - */ -function isFile(val) { - return toString.call(val) === '[object File]'; + An iterator that emits the items of a given array. + @extends module:asynciterator.AsyncIterator +*/ +class ArrayIterator extends AsyncIterator { + /** + Creates a new `ArrayIterator`. + @param {Array} items The items that will be emitted. + */ + constructor(items, { autoStart = true } = {}) { + super(); + const buffer = items ? [...items] : []; + this._sourceStarted = autoStart !== false; + if (this._sourceStarted && buffer.length === 0) + this.close(); + else + this._buffer = buffer; + this.readable = true; + } + /* Reads an item from the iterator. */ + read() { + if (!this._sourceStarted) + this._sourceStarted = true; + let item = null; + const buffer = this._buffer; + if (buffer) { + if (buffer.length !== 0) + item = buffer.shift(); + if (buffer.length === 0) { + delete this._buffer; + this.close(); + } + } + return item; + } + /* Generates details for a textual representation of the iterator. */ + _toStringDetails() { + return `(${this._buffer && this._buffer.length || 0})`; + } + /* Called by {@link module:asynciterator.AsyncIterator#destroy} */ + _destroy(cause, callback) { + delete this._buffer; + callback(); + } } - /** - * Determine if a value is a Blob - * - * @param {Object} val The value to test - * @returns {boolean} True if value is a Blob, otherwise false - */ -function isBlob(val) { - return toString.call(val) === '[object Blob]'; + An iterator that enumerates integers in a certain range. + @extends module:asynciterator.AsyncIterator +*/ +class IntegerIterator extends AsyncIterator { + /** + Creates a new `IntegerIterator`. + @param {object} [options] Settings of the iterator + @param {integer} [options.start=0] The first number to emit + @param {integer} [options.end=Infinity] The last number to emit + @param {integer} [options.step=1] The increment between two numbers + */ + constructor({ start = 0, step = 1, end } = {}) { + super(); + // Determine the first number + if (Number.isFinite(start)) + start = Math.trunc(start); + this._next = start; + // Determine step size + if (Number.isFinite(step)) + step = Math.trunc(step); + this._step = step; + // Determine the last number + const ascending = step >= 0; + const direction = ascending ? Infinity : -Infinity; + if (Number.isFinite(end)) + end = Math.trunc(end); + else if (end !== -direction) + end = direction; + this._last = end; + // Start iteration if there is at least one item; close otherwise + if (!Number.isFinite(start) || (ascending ? start > end : start < end)) + this.close(); + else + this.readable = true; + } + /* Reads an item from the iterator. */ + read() { + if (this.closed) + return null; + const current = this._next, step = this._step, last = this._last, next = this._next += step; + if (step >= 0 ? next > last : next < last) + this.close(); + return current; + } + /* Generates details for a textual representation of the iterator. */ + _toStringDetails() { + return `(${this._next}...${this._last})`; + } } - /** - * Determine if a value is a Function - * - * @param {Object} val The value to test - * @returns {boolean} True if value is a Function, otherwise false - */ -function isFunction(val) { - return toString.call(val) === '[object Function]'; + A iterator that maintains an internal buffer of items. + This class serves as a base class for other iterators + with a typically complex item generation process. + @extends module:asynciterator.AsyncIterator +*/ +class BufferedIterator extends AsyncIterator { + /** + Creates a new `BufferedIterator`. + @param {object} [options] Settings of the iterator + @param {integer} [options.maxBufferSize=4] The number of items to preload in the internal buffer + @param {boolean} [options.autoStart=true] Whether buffering starts directly after construction + */ + constructor({ maxBufferSize = 4, autoStart = true } = {}) { + super(INIT); + this._buffer = []; + this._maxBufferSize = 4; + this._reading = true; + this._pushedCount = 0; + this.maxBufferSize = maxBufferSize; + taskScheduler(() => this._init(autoStart)); + this._sourceStarted = autoStart !== false; + } + /** + The maximum number of items to preload in the internal buffer. + A `BufferedIterator` tries to fill its buffer as far as possible. + Set to `Infinity` to fully drain the source. + @type number + */ + get maxBufferSize() { + return this._maxBufferSize; + } + set maxBufferSize(maxBufferSize) { + // Allow only positive integers and infinity + if (maxBufferSize !== Infinity) { + maxBufferSize = !Number.isFinite(maxBufferSize) ? 4 : + Math.max(Math.trunc(maxBufferSize), 1); + } + // Only set the maximum buffer size if it changes + if (this._maxBufferSize !== maxBufferSize) { + this._maxBufferSize = maxBufferSize; + // Ensure sufficient elements are buffered + if (this._state === OPEN) + this._fillBuffer(); + } + } + /** + Initializing the iterator by calling {@link BufferedIterator#_begin} + and changing state from INIT to OPEN. + @protected + @param {boolean} autoStart Whether reading of items should immediately start after OPEN. + */ + _init(autoStart) { + // Perform initialization tasks + let doneCalled = false; + this._reading = true; + this._begin(() => { + if (doneCalled) + throw new Error('done callback called multiple times'); + doneCalled = true; + // Open the iterator and start buffering + this._reading = false; + this._changeState(OPEN); + if (autoStart) + this._fillBufferAsync(); + // If reading should not start automatically, the iterator doesn't become readable. + // Therefore, mark the iterator as (potentially) readable so consumers know it might be read. + else + this.readable = true; + }); + } + /** + Writes beginning items and opens iterator resources. + Should never be called before {@link BufferedIterator#_init}; + typically, `_init` is responsible for calling `_begin`. + @protected + @param {function} done To be called when initialization is complete + */ + _begin(done) { + done(); + } + /** + Tries to read the next item from the iterator. + If the buffer is empty, + this method calls {@link BufferedIterator#_read} to fetch items. + @returns {object?} The next item, or `null` if none is available + */ + read() { + if (this.done) + return null; + // An explicit read kickstarts the source + if (!this._sourceStarted) + this._sourceStarted = true; + // Try to retrieve an item from the buffer + const buffer = this._buffer; + let item; + if (buffer.length !== 0) { + item = buffer.shift(); + } + else { + item = null; + this.readable = false; + } + // If the buffer is becoming empty, either fill it or end the iterator + if (!this._reading && buffer.length < this._maxBufferSize) { + // If the iterator is not closed and thus may still generate new items, fill the buffer + if (!this.closed) + this._fillBufferAsync(); + // No new items will be generated, so if none are buffered, the iterator ends here + else if (!buffer.length) + this._endAsync(); + } + return item; + } + /** + Tries to generate the given number of items. + Implementers should add `count` items through {@link BufferedIterator#_push}. + @protected + @param {integer} count The number of items to generate + @param {function} done To be called when reading is complete + */ + _read(count, done) { + done(); + } + /** + Adds an item to the internal buffer. + @protected + @param {object} item The item to add + @emits module:asynciterator.AsyncIterator.readable + */ + _push(item) { + if (!this.done) { + this._pushedCount++; + this._buffer.push(item); + this.readable = true; + } + } + /** + Fills the internal buffer until `this._maxBufferSize` items are present. + This method calls {@link BufferedIterator#_read} to fetch items. + @protected + @emits module:asynciterator.AsyncIterator.readable + */ + _fillBuffer() { + let neededItems; + // Avoid recursive reads + if (this._reading) { + // Do nothing + } + // If iterator closing started in the meantime, don't generate new items anymore + else if (this.closed) { + this._completeClose(); + } + // Otherwise, try to fill empty spaces in the buffer by generating new items + else if ((neededItems = Math.min(this._maxBufferSize - this._buffer.length, 128)) > 0) { + // Acquire reading lock and start reading, counting pushed items + this._pushedCount = 0; + this._reading = true; + this._read(neededItems, () => { + // Verify the callback is only called once + if (!neededItems) + throw new Error('done callback called multiple times'); + neededItems = 0; + // Release reading lock + this._reading = false; + // If the iterator was closed while reading, complete closing + if (this.closed) { + this._completeClose(); + } + // If the iterator pushed one or more items, + // it might currently be able to generate additional items + // (even though all pushed items might already have been read) + else if (this._pushedCount) { + this.readable = true; + // If the buffer is insufficiently full, continue filling + if (this._buffer.length < this._maxBufferSize / 2) + this._fillBufferAsync(); + } + }); + } + } + /** + Schedules `_fillBuffer` asynchronously. + */ + _fillBufferAsync() { + // Acquire reading lock to avoid recursive reads + if (!this._reading) { + this._reading = true; + taskScheduler(() => { + // Release reading lock so _fillBuffer` can take it + this._reading = false; + this._fillBuffer(); + }); + } + } + /** + Stops the iterator from generating new items + after a possible pending read operation has finished. + Already generated, pending, or terminating items can still be emitted. + After this, the iterator will end asynchronously. + @emits module:asynciterator.AsyncIterator.end + */ + close() { + // If the iterator is not currently reading, we can close immediately + if (!this._reading) + this._completeClose(); + // Closing cannot complete when reading, so temporarily assume CLOSING state + // `_fillBuffer` becomes responsible for calling `_completeClose` + else + this._changeState(CLOSING); + } + /** + Stops the iterator from generating new items, + switching from `CLOSING` state into `CLOSED` state. + @protected + @emits module:asynciterator.AsyncIterator.end + */ + _completeClose() { + if (this._changeState(CLOSED)) { + // Write possible terminating items + this._reading = true; + this._flush(() => { + if (!this._reading) + throw new Error('done callback called multiple times'); + this._reading = false; + // If no items are left, end the iterator + // Otherwise, `read` becomes responsible for ending the iterator + if (!this._buffer.length) + this._endAsync(); + }); + } + } + /* Called by {@link module:asynciterator.AsyncIterator#destroy} */ + _destroy(cause, callback) { + this._buffer = []; + callback(); + } + /** + Writes terminating items and closes iterator resources. + Should never be called before {@link BufferedIterator#close}; + typically, `close` is responsible for calling `_flush`. + @protected + @param {function} done To be called when termination is complete + */ + _flush(done) { + done(); + } + /** + Generates details for a textual representation of the iterator. + @protected + */ + _toStringDetails() { + const buffer = this._buffer, { length } = buffer; + return `{${length ? `next: ${buffer[0]}, ` : ''}buffer: ${length}}`; + } } - /** - * Determine if a value is a Stream - * - * @param {Object} val The value to test - * @returns {boolean} True if value is a Stream, otherwise false - */ -function isStream(val) { - return isObject(val) && isFunction(val.pipe); + An iterator that generates items based on a source iterator. + This class serves as a base class for other iterators. + @extends module:asynciterator.BufferedIterator +*/ +class TransformIterator extends BufferedIterator { + /** + Creates a new `TransformIterator`. + @param {module:asynciterator.AsyncIterator|Readable} [source] The source this iterator generates items from + @param {object} [options] Settings of the iterator + @param {integer} [options.maxBufferSize=4] The maximum number of items to keep in the buffer + @param {boolean} [options.autoStart=true] Whether buffering starts directly after construction + @param {boolean} [options.optional=false] If transforming is optional, the original item is pushed when its transformation yields no items + @param {boolean} [options.destroySource=true] Whether the source should be destroyed when this transformed iterator is closed or destroyed + @param {module:asynciterator.AsyncIterator} [options.source] The source this iterator generates items from + */ + constructor(source, options = source || {}) { + super(options); + this._boundPush = (item) => this._push(item); + // Shift parameters if needed + if (!isSourceExpression(source)) + source = options.source; + // The passed source is an AsyncIterator or readable stream + if (isEventEmitter(source)) { + this.source = source; + } + // The passed value is a promise or source creation function + else if (source) { + this._createSource = isPromise(source) ? () => source : source; + if (this._sourceStarted) + this._loadSourceAsync(); + } + // Set other options + this._optional = Boolean(options.optional); + this._destroySource = options.destroySource !== false; + } + /** + The source this iterator generates items from. + @type module:asynciterator.AsyncIterator + */ + get source() { + if (isFunction(this._createSource)) + this._loadSourceAsync(); + return this._source; + } + set source(value) { + // Validate and set source + const source = this._source = this._validateSource(value); + source._destination = this; + // Close this iterator if the source has already ended + if (source.done) { + this.close(); + } + // Otherwise, react to source events + else { + source.on('end', destinationCloseWhenDone); + source.on('readable', destinationFillBuffer); + source.on('error', destinationEmitError); + } + } + /** + Initializes a source that was set through a promise + @protected + */ + _loadSourceAsync() { + if (isFunction(this._createSource)) { + // Assign the source after resolving + Promise.resolve(this._createSource()).then(source => { + delete this._createSource; + this.source = source; + this._fillBuffer(); + }, error => this.emit('error', error)); + // Signal that source creation is pending + this._createSource = null; + } + } + /** + Validates whether the given iterator can be used as a source. + @protected + @param {object} source The source to validate + @param {boolean} allowDestination Whether the source can already have a destination + */ + _validateSource(source, allowDestination = false) { + if (this._source || typeof this._createSource !== 'undefined') + throw new Error('The source cannot be changed after it has been set'); + if (!source || !isFunction(source.read) || !isFunction(source.on)) + throw new Error(`Invalid source: ${source}`); + if (!allowDestination && source._destination) + throw new Error('The source already has a destination'); + return source; + } + /** + Tries to read transformed items. + */ + _read(count, done) { + const next = () => { + // Continue transforming until at least `count` items have been pushed + if (this._pushedCount < count && !this.closed) + taskScheduler(() => this._readAndTransform(next, done)); + else + done(); + }; + this._readAndTransform(next, done); + } + /** + Reads a transforms an item + */ + _readAndTransform(next, done) { + // If the source exists and still can read items, + // try to read and transform the next item. + let item; + const source = this.source; + if (!source || source.done || (item = source.read()) === null) + done(); + else if (!this._optional) + this._transform(item, next, this._boundPush); + else + this._optionalTransform(item, next); + } + /** + Tries to transform the item; + if the transformation yields no items, pushes the original item. + */ + _optionalTransform(item, done) { + const pushedCount = this._pushedCount; + this._transform(item, () => { + if (pushedCount === this._pushedCount) + this._push(item); + done(); + }, this._boundPush); + } + /** + Generates items based on the item from the source. + Implementers should add items through {@link BufferedIterator#_push}. + The default implementation pushes the source item as-is. + @protected + @param {object} item The last read item from the source + @param {function} done To be called when reading is complete + @param {function} push A callback to push zero or more transformation results. + */ + _transform(item, done, push) { + push(item); + done(); + } + /** + Closes the iterator when pending items are transformed. + @protected + */ + _closeWhenDone() { + this.close(); + } + /* Cleans up the source iterator and ends. */ + _end(destroy) { + const source = this._source; + if (source) { + source.removeListener('end', destinationCloseWhenDone); + source.removeListener('error', destinationEmitError); + source.removeListener('readable', destinationFillBuffer); + delete source._destination; + if (this._destroySource) + source.destroy(); + } + super._end(destroy); + } } - -/** - * Determine if a value is a URLSearchParams object - * - * @param {Object} val The value to test - * @returns {boolean} True if value is a URLSearchParams object, otherwise false - */ -function isURLSearchParams(val) { - return typeof URLSearchParams !== 'undefined' && val instanceof URLSearchParams; +function destinationEmitError(error) { + this._destination.emit('error', error); } - -/** - * Trim excess whitespace off the beginning and end of a string - * - * @param {String} str The String to trim - * @returns {String} The String freed of excess whitespace - */ -function trim(str) { - return str.replace(/^\s*/, '').replace(/\s*$/, ''); +function destinationCloseWhenDone() { + this._destination._closeWhenDone(); } - -/** - * Determine if we're running in a standard browser environment - * - * This allows axios to run in a web worker, and react-native. - * Both environments support XMLHttpRequest, but not fully standard globals. - * - * web workers: - * typeof window -> undefined - * typeof document -> undefined - * - * react-native: - * navigator.product -> 'ReactNative' - * nativescript - * navigator.product -> 'NativeScript' or 'NS' - */ -function isStandardBrowserEnv() { - if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' || - navigator.product === 'NativeScript' || - navigator.product === 'NS')) { - return false; - } - return ( - typeof window !== 'undefined' && - typeof document !== 'undefined' - ); +function destinationFillBuffer() { + if (this._destination._sourceStarted !== false) + this._destination._fillBuffer(); } - /** - * Iterate over an Array or an Object invoking a function for each item. - * - * If `obj` is an Array callback will be called passing - * the value, index, and complete array for each item. - * - * If 'obj' is an Object callback will be called passing - * the value, key, and complete object for each property. - * - * @param {Object|Array} obj The object to iterate - * @param {Function} fn The callback to invoke for each item - */ -function forEach(obj, fn) { - // Don't bother if no value provided - if (obj === null || typeof obj === 'undefined') { - return; - } - - // Force an array if not already something iterable - if (typeof obj !== 'object') { - /*eslint no-param-reassign:0*/ - obj = [obj]; - } - - if (isArray(obj)) { - // Iterate over array values - for (var i = 0, l = obj.length; i < l; i++) { - fn.call(null, obj[i], i, obj); + An iterator that generates items based on a source iterator + and simple transformation steps passed as arguments. + @extends module:asynciterator.TransformIterator +*/ +class SimpleTransformIterator extends TransformIterator { + /** + Creates a new `SimpleTransformIterator`. + @param {module:asynciterator.AsyncIterator|Readable} [source] The source this iterator generates items from + @param {object|Function} [options] Settings of the iterator, or the transformation function + @param {integer} [options.maxbufferSize=4] The maximum number of items to keep in the buffer + @param {boolean} [options.autoStart=true] Whether buffering starts directly after construction + @param {module:asynciterator.AsyncIterator} [options.source] The source this iterator generates items from + @param {integer} [options.offset] The number of items to skip + @param {integer} [options.limit] The maximum number of items + @param {Function} [options.filter] A function to synchronously filter items from the source + @param {Function} [options.map] A function to synchronously transform items from the source + @param {Function} [options.transform] A function to asynchronously transform items from the source + @param {boolean} [options.optional=false] If transforming is optional, the original item is pushed when its mapping yields `null` or its transformation yields no items + @param {Array|module:asynciterator.AsyncIterator} [options.prepend] Items to insert before the source items + @param {Array|module:asynciterator.AsyncIterator} [options.append] Items to insert after the source items + */ + constructor(source, options) { + super(source, options); + this._offset = 0; + this._limit = Infinity; + this._filter = (item) => true; + // Set transformation steps from the options + options = options || (!isSourceExpression(source) ? source : null); + if (options) { + const transform = isFunction(options) ? options : options.transform; + const { limit, offset, filter, map, prepend, append } = options; + // Don't emit any items when bounds are unreachable + if (offset === Infinity || limit === -Infinity) { + this._limit = 0; + } + else { + if (Number.isFinite(offset)) + this._offset = Math.max(Math.trunc(offset), 0); + if (Number.isFinite(limit)) + this._limit = Math.max(Math.trunc(limit), 0); + if (isFunction(filter)) + this._filter = filter; + if (isFunction(map)) + this._map = map; + this._transform = isFunction(transform) ? transform : null; + } + if (prepend) + this._prepender = isEventEmitter(prepend) ? prepend : fromArray(prepend); + if (append) + this._appender = isEventEmitter(append) ? append : fromArray(append); + } } - } else { - // Iterate over object keys - for (var key in obj) { - if (Object.prototype.hasOwnProperty.call(obj, key)) { - fn.call(null, obj[key], key, obj); - } + /* Tries to read and transform items */ + _read(count, done) { + const next = () => this._readAndTransformSimple(count, nextAsync, done); + this._readAndTransformSimple(count, nextAsync, done); + function nextAsync() { + taskScheduler(next); + } } - } -} - -/** - * Accepts varargs expecting each argument to be an object, then - * immutably merges the properties of each object and returns result. - * - * When multiple objects contain the same key the later object in - * the arguments list will take precedence. - * - * Example: - * - * ```js - * var result = merge({foo: 123}, {foo: 456}); - * console.log(result.foo); // outputs 456 - * ``` - * - * @param {Object} obj1 Object to merge - * @returns {Object} Result of all merge properties - */ -function merge(/* obj1, obj2, obj3, ... */) { - var result = {}; - function assignValue(val, key) { - if (isPlainObject(result[key]) && isPlainObject(val)) { - result[key] = merge(result[key], val); - } else if (isPlainObject(val)) { - result[key] = merge({}, val); - } else if (isArray(val)) { - result[key] = val.slice(); - } else { - result[key] = val; + /* Reads and transform items */ + _readAndTransformSimple(count, next, done) { + // Verify we have a readable source + let item; + const { source } = this; + if (!source || source.done) { + done(); + return; + } + // Verify we are still below the limit + if (this._limit === 0) + this.close(); + // Try to read the next item until at least `count` items have been pushed + while (!this.closed && this._pushedCount < count && (item = source.read()) !== null) { + // Verify the item passes the filter and we've reached the offset + if (!this._filter(item) || this._offset !== 0 && this._offset--) + continue; + // Synchronously map the item + const mappedItem = typeof this._map === 'undefined' ? item : this._map(item); + // Skip `null` items, pushing the original item if the mapping was optional + if (mappedItem === null) { + if (this._optional) + this._push(item); + } + // Skip the asynchronous phase if no transformation was specified + else if (!isFunction(this._transform)) { + this._push(mappedItem); + } + // Asynchronously transform the item, and wait for `next` to call back + else { + if (!this._optional) + this._transform(mappedItem, next, this._boundPush); + else + this._optionalTransform(mappedItem, next); + return; + } + // Stop when we've reached the limit + if (--this._limit === 0) + this.close(); + } + done(); } - } - - for (var i = 0, l = arguments.length; i < l; i++) { - forEach(arguments[i], assignValue); - } - return result; -} - -/** - * Extends object a by mutably adding to it the properties of object b. - * - * @param {Object} a The object to be extended - * @param {Object} b The object to copy properties from - * @param {Object} thisArg The object to bind function to - * @return {Object} The resulting value of object a - */ -function extend(a, b, thisArg) { - forEach(b, function assignValue(val, key) { - if (thisArg && typeof val === 'function') { - a[key] = bind(val, thisArg); - } else { - a[key] = val; + // Prepends items to the iterator + _begin(done) { + this._insert(this._prepender, done); + delete this._prepender; + } + // Appends items to the iterator + _flush(done) { + this._insert(this._appender, done); + delete this._appender; + } + // Inserts items in the iterator + _insert(inserter, done) { + const push = (item) => this._push(item); + if (!inserter || inserter.done) { + done(); + } + else { + inserter.on('data', push); + inserter.on('end', end); + } + function end() { + inserter.removeListener('data', push); + inserter.removeListener('end', end); + done(); + } } - }); - return a; } - /** - * Remove byte order marker. This catches EF BB BF (the UTF-8 BOM) - * - * @param {string} content with BOM - * @return {string} content value without BOM - */ -function stripBOM(content) { - if (content.charCodeAt(0) === 0xFEFF) { - content = content.slice(1); - } - return content; -} - -module.exports = { - isArray: isArray, - isArrayBuffer: isArrayBuffer, - isBuffer: isBuffer, - isFormData: isFormData, - isArrayBufferView: isArrayBufferView, - isString: isString, - isNumber: isNumber, - isObject: isObject, - isPlainObject: isPlainObject, - isUndefined: isUndefined, - isDate: isDate, - isFile: isFile, - isBlob: isBlob, - isFunction: isFunction, - isStream: isStream, - isURLSearchParams: isURLSearchParams, - isStandardBrowserEnv: isStandardBrowserEnv, - forEach: forEach, - merge: merge, - extend: extend, - trim: trim, - stripBOM: stripBOM -}; + An iterator that generates items by transforming each item of a source + with a different iterator. + @extends module:asynciterator.TransformIterator +*/ +class MultiTransformIterator extends TransformIterator { + /** + Creates a new `MultiTransformIterator`. + @param {module:asynciterator.AsyncIterator|Readable} [source] The source this iterator generates items from + @param {object|Function} [options] Settings of the iterator, or the transformation function + @param {integer} [options.maxbufferSize=4] The maximum number of items to keep in the buffer + @param {boolean} [options.autoStart=true] Whether buffering starts directly after construction + @param {module:asynciterator.AsyncIterator} [options.source] The source this iterator generates items from + @param {integer} [options.offset] The number of items to skip + @param {integer} [options.limit] The maximum number of items + @param {Function} [options.filter] A function to synchronously filter items from the source + @param {Function} [options.map] A function to synchronously transform items from the source + @param {Function} [options.transform] A function to asynchronously transform items from the source + @param {boolean} [options.optional=false] If transforming is optional, the original item is pushed when its mapping yields `null` or its transformation yields no items + @param {Function} [options.multiTransform] A function to asynchronously transform items to iterators from the source + @param {Array|module:asynciterator.AsyncIterator} [options.prepend] Items to insert before the source items + @param {Array|module:asynciterator.AsyncIterator} [options.append] Items to insert after the source items + */ + constructor(source, options) { + super(source, options); + this._transformerQueue = []; + // Set transformation steps from the options + if (options) { + const multiTransform = isFunction(options) ? options : options.multiTransform; + if (multiTransform) + this._createTransformer = multiTransform; + } + } + /* Tries to read and transform items */ + _read(count, done) { + // Remove transformers that have ended + const transformerQueue = this._transformerQueue, optional = this._optional; + let head, item; + while ((head = transformerQueue[0]) && head.transformer.done) { + // If transforming is optional, push the original item if none was pushed + if (optional && head.item !== null) { + count--; + this._push(head.item); + } + // Remove listeners from the transformer + transformerQueue.shift(); + const { transformer } = head; + transformer.removeListener('end', destinationFillBuffer); + transformer.removeListener('readable', destinationFillBuffer); + transformer.removeListener('error', destinationEmitError); + } + // Create new transformers if there are less than the maximum buffer size + const { source } = this; + while (source && !source.done && transformerQueue.length < this.maxBufferSize) { + // Read an item to create the next transformer + item = source.read(); + if (item === null) + break; + // Create the transformer and listen to its events + const transformer = (this._createTransformer(item) || + new EmptyIterator()); + transformer._destination = this; + transformer.on('end', destinationFillBuffer); + transformer.on('readable', destinationFillBuffer); + transformer.on('error', destinationEmitError); + transformerQueue.push({ transformer, item }); + } + // Try to read `count` items from the transformer + head = transformerQueue[0]; + if (head) { + const { transformer } = head; + while (count-- > 0 && (item = transformer.read()) !== null) { + this._push(item); + // If a transformed item was pushed, no need to push the original anymore + if (optional) + head.item = null; + } + } + // End the iterator if the source has ended + else if (source && source.done) { + this.close(); + } + done(); + } + /** + Creates a transformer for the given item. + @param {object} item The last read item from the source + @returns {module:asynciterator.AsyncIterator} An iterator that transforms the given item + */ + _createTransformer(item) { + return new SingletonIterator(item); + } + /* Closes the iterator when pending items are transformed. */ + _closeWhenDone() { + // Only close if all transformers are read + if (!this._transformerQueue.length) + this.close(); + } +} +/** + An iterator that generates items by reading from multiple other iterators. + @extends module:asynciterator.BufferedIterator +*/ +class UnionIterator extends BufferedIterator { + /** + Creates a new `UnionIterator`. + @param {module:asynciterator.AsyncIterator|Array} [sources] The sources to read from + @param {object} [options] Settings of the iterator + */ + constructor(sources, options = {}) { + super(options); + this._sources = []; + this._currentSource = -1; + const autoStart = options.autoStart !== false; + // Sources have been passed as an iterator + if (isEventEmitter(sources)) { + sources.on('error', error => this.emit('error', error)); + this._pending = { sources }; + if (autoStart) + this._loadSources(); + } + // Sources have been passed as a non-empty array + else if (Array.isArray(sources) && sources.length > 0) { + for (const source of sources) + this._addSource(source); + } + // Sources are an empty list + else if (autoStart) { + this.close(); + } + } + // Loads sources passed as an iterator + _loadSources() { + // Obtain sources iterator + const sources = this._pending.sources; + delete this._pending.sources; + // Close immediately if done + if (sources.done) { + delete this._pending; + this.close(); + } + // Otherwise, set up source reading + else { + sources.on('data', source => { + this._addSource(source); + this._fillBufferAsync(); + }); + sources.on('end', () => { + delete this._pending; + this._fillBuffer(); + }); + } + } + // Adds the given source to the internal sources array + _addSource(source) { + if (!source.done) { + this._sources.push(source); + source._destination = this; + source.on('error', destinationEmitError); + source.on('readable', destinationFillBuffer); + source.on('end', destinationRemoveEmptySources); + } + } + // Removes sources that will no longer emit items + _removeEmptySources() { + this._sources = this._sources.filter((source, index) => { + // Adjust the index of the current source if needed + if (source.done && index <= this._currentSource) + this._currentSource--; + return !source.done; + }); + this._fillBuffer(); + } + // Reads items from the next sources + _read(count, done) { + var _a; + // Start source loading if needed + if ((_a = this._pending) === null || _a === void 0 ? void 0 : _a.sources) + this._loadSources(); + // Try to read `count` items + let lastCount = 0, item; + while (lastCount !== (lastCount = count)) { + // Try every source at least once + for (let i = 0; i < this._sources.length && count > 0; i++) { + // Pick the next source + this._currentSource = (this._currentSource + 1) % this._sources.length; + const source = this._sources[this._currentSource]; + // Attempt to read an item from that source + if ((item = source.read()) !== null) { + count--; + this._push(item); + } + } + } + // Close this iterator if all of its sources have been read + if (!this._pending && this._sources.length === 0) + this.close(); + done(); + } +} +function destinationRemoveEmptySources() { + this._destination._removeEmptySources(); +} +/** + An iterator that copies items from another iterator. + @extends module:asynciterator.TransformIterator +*/ +class ClonedIterator extends TransformIterator { + /** + Creates a new `ClonedIterator`. + @param {module:asynciterator.AsyncIterator|Readable} [source] The source this iterator copies items from + */ + constructor(source) { + super(source, { autoStart: false }); + this._readPosition = 0; + this._reading = false; + } + _init() { + // skip buffered iterator initialization, since we read from history + } + close() { + // skip buffered iterator cleanup + AsyncIterator.prototype.close.call(this); + } + // The source this iterator copies items from + get source() { + return super.source; + } + set source(value) { + // Validate and set the source + const source = this._source = this._validateSource(value); + // Create a history reader for the source if none already existed + const history = (source && source._destination) || + (source._destination = new HistoryReader(source)); + // Close this clone if history is empty and the source has ended + if (history.endsAt(0)) { + this.close(); + } + else { + // Subscribe to history events + history.register(this); + // If there are already items in history, this clone is readable + // If the source has a lazy start, always mark this iterator as readable without eagerly triggering a read. + if (source._sourceStarted === false || history.readAt(0) !== null) + this.readable = true; + } + // Hook pending property callbacks to the source + const propertyCallbacks = this._propertyCallbacks; + for (const propertyName in propertyCallbacks) { + const callbacks = propertyCallbacks[propertyName]; + for (const callback of callbacks) + this._getSourceProperty(propertyName, callback); + } + } + /** + Validates whether the given iterator can be used as a source. + @protected + @param {object} source The source to validate + @param {boolean} allowDestination Whether the source can already have a destination + */ + _validateSource(source, allowDestination = false) { + const history = (source && source._destination); + return super._validateSource(source, !history || history instanceof HistoryReader); + } + // Retrieves the property with the given name from the clone or its source. + getProperty(propertyName, callback) { + const { source } = this, properties = this._properties, hasProperty = properties && (propertyName in properties); + // If no callback was passed, return the property value + if (!callback) { + return hasProperty ? properties && properties[propertyName] : + source && source.getProperty(propertyName); + } + // Try to look up the property in this clone + super.getProperty(propertyName, callback); + // If the property is not set on this clone, it might become set on the source first + if (source && !hasProperty) + this._getSourceProperty(propertyName, callback); + return undefined; + } + // Retrieves the property with the given name from the source + _getSourceProperty(propertyName, callback) { + this.source.getProperty(propertyName, value => { + // Only send the source's property if it was not set on the clone in the meantime + if (!this._properties || !(propertyName in this._properties)) + callback(value); + }); + } + // Retrieves all properties of the iterator and its source. + getProperties() { + const base = this.source ? this.source.getProperties() : {}, properties = this._properties; + for (const name in properties) + base[name] = properties[name]; + return base; + } + /* Generates details for a textual representation of the iterator. */ + _toStringDetails() { + return `{source: ${this.source ? this.source.toString() : 'none'}}`; + } + /* Tries to read an item */ + read() { + // An explicit read kickstarts the source + if (!this._sourceStarted) + this._sourceStarted = true; + const source = this.source; + let item = null; + if (!this.done && source) { + // Try to read an item at the current point in history + const history = source._destination; + if ((item = history.readAt(this._readPosition)) !== null) + this._readPosition++; + else + this.readable = false; + // Close the iterator if we are at the end of the source + if (history.endsAt(this._readPosition)) + this.close(); + } + return item; + } + /* End the iterator and cleans up. */ + _end(destroy) { + // Unregister from a possible history reader + const source = this.source; + const history = source === null || source === void 0 ? void 0 : source._destination; + if (history) + history.unregister(this); + // Don't call TransformIterator#_end, + // as it would make the source inaccessible for other clones + BufferedIterator.prototype._end.call(this, destroy); + } +} +// Stores the history of a source, so it can be cloned +class HistoryReader { + constructor(source) { + this._clones = null; + this._history = []; + // If the source can still emit items, set up cloning + this._source = source; + if (!source.done) { + // When the source becomes readable, makes all clones readable + const setReadable = () => { + for (const clone of this._clones) + clone.readable = true; + }; + // When the source errors, re-emits the error + const emitError = (error) => { + for (const clone of this._clones) + clone.emit('error', error); + }; + // When the source ends, closes all clones that are fully read + const end = () => { + // Close the clone if all items had been emitted + for (const clone of this._clones) { + if (clone._sourceStarted !== false && + clone._readPosition === this._history.length) + clone.close(); + } + this._clones = null; + // Remove source listeners, since no further events will be emitted + source.removeListener('end', end); + source.removeListener('error', emitError); + source.removeListener('readable', setReadable); + }; + // Listen to source events to trigger events in subscribed clones + this._clones = []; + source.on('end', end); + source.on('error', emitError); + source.on('readable', setReadable); + } + } + // Registers a clone for history updates + register(clone) { + if (this._clones !== null) + this._clones.push(clone); + } + // Unregisters a clone for history updates + unregister(clone) { + if (this._clones !== null) + this._clones = this._clones.filter(c => c !== clone); + } + // Tries to read the item at the given history position + readAt(pos) { + let item = null; + // Retrieve an item from history when available + if (pos < this._history.length) + item = this._history[pos]; + // Read a new item from the source when possible + else if (!this._source.done && (item = this._source.read()) !== null) + this._history[pos] = item; + return item; + } + // Determines whether the given position is the end of the source + endsAt(pos) { + return this._source.done && this._history.length === pos; + } +} +/** + Creates an iterator that wraps around a given iterator or readable stream. + Use this to convert an iterator-like object into a full-featured AsyncIterator. + After this operation, only read the returned iterator instead of the given one. + @function + @param {module:asynciterator.AsyncIterator|Readable} [source] The source this iterator generates items from + @param {object} [options] Settings of the iterator + @returns {module:asynciterator.AsyncIterator} A new iterator with the items from the given iterator +*/ +function wrap(source, options) { + return new TransformIterator(source, options); +} +/** + Creates an empty iterator. + */ +function empty() { + return new EmptyIterator(); +} +/** + Creates an iterator with a single item. + @param {object} item the item + */ +function single(item) { + return new SingletonIterator(item); +} +/** + Creates an iterator for the given array. + @param {Array} items the items + */ +function fromArray(items) { + return new ArrayIterator(items); +} +/** + Creates an iterator containing all items from the given iterators. + @param {Array} items the items + */ +function union(sources) { + return new UnionIterator(sources); +} +/** + Creates an iterator of integers for the given numeric range. + @param {Array} items the items + */ +function range(start, end, step) { + return new IntegerIterator({ start, end, step }); +} +// Determines whether the given object is a function +function isFunction(object) { + return typeof object === 'function'; +} +// Determines whether the given object is an EventEmitter +function isEventEmitter(object) { + return object && typeof object.on === 'function'; +} +// Determines whether the given object is a promise +function isPromise(object) { + return object && typeof object.then === 'function'; +} +// Determines whether the given object is a source expression +function isSourceExpression(object) { + return object && (isEventEmitter(object) || isPromise(object) || isFunction(object)); +} /***/ }), -/***/ "./node_modules/base64-js/index.js": +/***/ "./node_modules/asynciterator/dist/taskscheduler.js": +/*!**********************************************************!*\ + !*** ./node_modules/asynciterator/dist/taskscheduler.js ***! + \**********************************************************/ +/*! exports provided: default */ +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +__webpack_require__.r(__webpack_exports__); +/* WEBPACK VAR INJECTION */(function(setImmediate) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return createTaskScheduler; }); +const resolved = Promise.resolve(undefined); +// Returns a function that asynchronously schedules a task +function createTaskScheduler() { + // Use or create a microtask scheduler + const scheduleMicrotask = typeof queueMicrotask === 'function' ? + queueMicrotask : (task) => resolved.then(task); + // Use or create a macrotask scheduler + const scheduleMacrotask = typeof setImmediate === 'function' ? + setImmediate : (task) => setTimeout(task, 0); + // Interrupt with a macrotask every once in a while to avoid freezing + let i = 0; + let queue = null; + return (task) => { + // Tasks are currently being queued to avoid freezing + if (queue !== null) + queue.push(task); + // Tasks are being scheduled normally as microtasks + else if (++i < 100) + scheduleMicrotask(task); + // A macrotask interruption is needed + else { + // Hold all tasks in a queue, and reschedule them after a macrotask + queue = [task]; + scheduleMacrotask(() => { + // Work through the queue + for (const queued of queue) + scheduleMicrotask(queued); + queue = null; + // Reset the interruption schedule + i = 0; + }); + } + }; +} + +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../timers-browserify/main.js */ "./node_modules/timers-browserify/main.js").setImmediate)) + +/***/ }), + +/***/ "./node_modules/asyncjoin/index.js": /*!*****************************************!*\ - !*** ./node_modules/base64-js/index.js ***! + !*** ./node_modules/asyncjoin/index.js ***! \*****************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { -"use strict"; +const DynamicNestedLoopJoin = __webpack_require__(/*! ./join/DynamicNestedLoopJoin */ "./node_modules/asyncjoin/join/DynamicNestedLoopJoin.js"); +const HashJoin = __webpack_require__(/*! ./join/HashJoin */ "./node_modules/asyncjoin/join/HashJoin.js"); +const NestedLoopJoin = __webpack_require__(/*! ./join/NestedLoopJoin */ "./node_modules/asyncjoin/join/NestedLoopJoin.js"); +const SymmetricHashJoin = __webpack_require__(/*! ./join/SymmetricHashJoin */ "./node_modules/asyncjoin/join/SymmetricHashJoin.js"); -exports.byteLength = byteLength -exports.toByteArray = toByteArray -exports.fromByteArray = fromByteArray +const MergeStream = __webpack_require__(/*! ./util/MergeIterator */ "./node_modules/asyncjoin/util/MergeIterator.js"); -var lookup = [] -var revLookup = [] -var Arr = typeof Uint8Array !== 'undefined' ? Uint8Array : Array +module.exports = { + DynamicNestedLoopJoin, + HashJoin, + NestedLoopJoin, + SymmetricHashJoin, -var code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/' -for (var i = 0, len = code.length; i < len; ++i) { - lookup[i] = code[i] - revLookup[code.charCodeAt(i)] = i -} + MergeStream +}; -// 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 +/***/ "./node_modules/asyncjoin/join/DynamicNestedLoopJoin.js": +/*!**************************************************************!*\ + !*** ./node_modules/asyncjoin/join/DynamicNestedLoopJoin.js ***! + \**************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { - 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 +let AsyncIterator = __webpack_require__(/*! asynciterator */ "./node_modules/asynciterator/dist/asynciterator.js"); +let MultiTransformIterator = AsyncIterator.MultiTransformIterator; +let SimpleTransformIterator = AsyncIterator.SimpleTransformIterator; - var placeHoldersLen = validLen === len - ? 0 - : 4 - (validLen % 4) +// Nested Loop Join, but the values of the inner loop are determined by each value of the outer loop, possibly reducing the number of necessary checks +class DynamicNestedLoopJoin extends MultiTransformIterator +{ + constructor (left, funRight, funJoin, options) + { + super(left, options); - return [validLen, placeHoldersLen] -} + this.funRight = funRight; + this.funJoin = funJoin; + } -// 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 + _createTransformer (leftItem) + { + return new SimpleTransformIterator(this.funRight(leftItem), { transform: (rightItem, done, push) => + { + let result = this.funJoin(leftItem, rightItem); + if (result !== null) + push(result); + done(); + }}); + } } -function _byteLength (b64, validLen, placeHoldersLen) { - return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen -} +module.exports = DynamicNestedLoopJoin; -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 +/***/ "./node_modules/asyncjoin/join/HashJoin.js": +/*!*************************************************!*\ + !*** ./node_modules/asyncjoin/join/HashJoin.js ***! + \*************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { - // 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 - } +let AsyncIterator = __webpack_require__(/*! asynciterator */ "./node_modules/asynciterator/dist/asynciterator.js").AsyncIterator; - if (placeHoldersLen === 2) { - tmp = - (revLookup[b64.charCodeAt(i)] << 2) | - (revLookup[b64.charCodeAt(i + 1)] >> 4) - arr[curByte++] = tmp & 0xFF - } +// https://en.wikipedia.org/wiki/Hash_join +class HashJoin extends AsyncIterator +{ + constructor (left, right, funHash, funJoin) + { + super(); - 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 - } + this.addedDataListener = false; + this.left = left; + this.right = right; + this.funHash = funHash; + this.funJoin = funJoin; - return arr -} + this.leftMap = new Map(); -function tripletToBase64 (num) { - return lookup[num >> 18 & 0x3F] + - lookup[num >> 12 & 0x3F] + - lookup[num >> 6 & 0x3F] + - lookup[num & 0x3F] -} + this.match = null; + this.matches = []; + this.matchIdx = 0; -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('') -} + this.left.on('error', (error) => this.destroy(error)); + this.right.on('error', (error) => this.destroy(error)); -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 + this.readable = false; - // 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))) - } + this.left.on('end', allowJoining.bind(this)); - // 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] + - '=' - ) - } + function allowJoining () + { + if (this.leftMap.size <= 0) + return this.close(); + this.readable = true; + this.right.on('readable', () => this.readable = true); + this.right.on('end', () => { if (!this.hasResults()) this._end(); }); + } - return parts.join('') -} + this.on('newListener', (eventName) => + { + if (eventName === 'data' && !this.addedDataListener) + { + this.addedDataListener = true; + this._addDataListener(); + } + }) + } + hasResults () + { + return !this.right.ended || this.matchIdx < this.matches.length; + } -/***/ }), + close () + { + super.close(); + this.left.close(); + this.right.close(); + } -/***/ "./node_modules/buffer/index.js": -/*!**************************************!*\ - !*** ./node_modules/buffer/index.js ***! - \**************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { + read () + { + if (!this.addedDataListener) + { + this.addedDataListener = true; + this._addDataListener(); + } -"use strict"; -/* WEBPACK VAR INJECTION */(function(global) {/*! - * The buffer module from node.js, for the browser. - * - * @author Feross Aboukhadijeh - * @license MIT - */ -/* eslint-disable no-proto */ + if (this.ended || !this.readable) + return null; + while (this.matchIdx < this.matches.length) + { + let item = this.matches[this.matchIdx++]; + let result = this.funJoin(item, this.match); + if (result !== null) + return result; + } + if (!this.hasResults()) + this._end(); -var base64 = __webpack_require__(/*! base64-js */ "./node_modules/base64-js/index.js") -var ieee754 = __webpack_require__(/*! ieee754 */ "./node_modules/ieee754/index.js") -var isArray = __webpack_require__(/*! isarray */ "./node_modules/isarray/index.js") + this.match = this.right.read(); -exports.Buffer = Buffer -exports.SlowBuffer = SlowBuffer -exports.INSPECT_MAX_BYTES = 50 + if (this.match === null) + { + this.readable = false; + return null; + } -/** - * If `Buffer.TYPED_ARRAY_SUPPORT`: - * === true Use Uint8Array implementation (fastest) - * === false Use Object implementation (most compatible, even IE6) - * - * Browsers that support typed arrays are IE 10+, Firefox 4+, Chrome 7+, Safari 5.1+, - * Opera 11.6+, iOS 4.2+. - * - * Due to various browser bugs, sometimes the Object implementation will be used even - * when the browser supports typed arrays. - * - * Note: - * - * - Firefox 4-29 lacks support for adding new properties to `Uint8Array` instances, - * See: https://bugzilla.mozilla.org/show_bug.cgi?id=695438. - * - * - Chrome 9-10 is missing the `TypedArray.prototype.subarray` function. - * - * - IE10 has a broken `TypedArray.prototype.subarray` function which returns arrays of - * incorrect length in some situations. + let hash = this.funHash(this.match); + this.matches = this.leftMap.get(hash) || []; + this.matchIdx = 0; - * We detect these buggy browsers and set `Buffer.TYPED_ARRAY_SUPPORT` to `false` so they - * get the Object implementation, which is slower but behaves correctly. - */ -Buffer.TYPED_ARRAY_SUPPORT = global.TYPED_ARRAY_SUPPORT !== undefined - ? global.TYPED_ARRAY_SUPPORT - : typedArraySupport() + // array is filled again so recursive call can have results + return this.read(); + } -/* - * Export kMaxLength after typed array support is determined. - */ -exports.kMaxLength = kMaxLength() + _addDataListener() + { + this.left.on('data', addItem.bind(this)); -function typedArraySupport () { - try { - var arr = new Uint8Array(1) - arr.__proto__ = {__proto__: Uint8Array.prototype, foo: function () { return 42 }} - return arr.foo() === 42 && // typed array instances can be augmented - typeof arr.subarray === 'function' && // chrome 9-10 lack `subarray` - arr.subarray(1, 1).byteLength === 0 // ie10 has broken `subarray` - } catch (e) { - return false - } + function addItem(item) + { + let hash = this.funHash(item); + if (!this.leftMap.has(hash)) + this.leftMap.set(hash, []); + let arr = this.leftMap.get(hash); + arr.push(item); + } + } } -function kMaxLength () { - return Buffer.TYPED_ARRAY_SUPPORT - ? 0x7fffffff - : 0x3fffffff -} +module.exports = HashJoin; -function createBuffer (that, length) { - if (kMaxLength() < length) { - throw new RangeError('Invalid typed array length') - } - if (Buffer.TYPED_ARRAY_SUPPORT) { - // Return an augmented `Uint8Array` instance, for best performance - that = new Uint8Array(length) - that.__proto__ = Buffer.prototype - } else { - // Fallback: Return an object instance of the Buffer class - if (that === null) { - that = new Buffer(length) - } - that.length = length - } - return that -} +/***/ }), -/** - * The Buffer constructor returns instances of `Uint8Array` that have their - * prototype changed to `Buffer.prototype`. Furthermore, `Buffer` is a subclass of - * `Uint8Array`, so the returned instances will have all the node `Buffer` methods - * and the `Uint8Array` methods. Square bracket notation works as expected -- it - * returns a single octet. - * - * The `Uint8Array` prototype remains unmodified. - */ +/***/ "./node_modules/asyncjoin/join/NestedLoopJoin.js": +/*!*******************************************************!*\ + !*** ./node_modules/asyncjoin/join/NestedLoopJoin.js ***! + \*******************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { -function Buffer (arg, encodingOrOffset, length) { - if (!Buffer.TYPED_ARRAY_SUPPORT && !(this instanceof Buffer)) { - return new Buffer(arg, encodingOrOffset, length) - } - // Common case. - if (typeof arg === 'number') { - if (typeof encodingOrOffset === 'string') { - throw new Error( - 'If encoding is specified then the first argument must be a string' - ) +const { MultiTransformIterator, SimpleTransformIterator, scheduleTask } = __webpack_require__(/*! asynciterator */ "./node_modules/asynciterator/dist/asynciterator.js"); + +// https://en.wikipedia.org/wiki/Nested_loop_join +class NestedLoopJoin extends MultiTransformIterator +{ + constructor (left, right, funJoin, options) + { + super(left, options); + + this.right = right; + this.funJoin = funJoin; // function that joins 2 elements or returns null if join is not possible + this.on('end', () => this.right.close()); } - return allocUnsafe(this, arg) - } - return from(this, arg, encodingOrOffset, length) -} -Buffer.poolSize = 8192 // not used by this implementation + close () + { + super.close(); + scheduleTask(() => this.right.close()); + } -// TODO: Legacy, not needed anymore. Remove in next major version. -Buffer._augment = function (arr) { - arr.__proto__ = Buffer.prototype - return arr + _createTransformer (leftItem) + { + return new SimpleTransformIterator(this.right.clone(), { transform: (rightItem, done, push) => + { + let result = this.funJoin(leftItem, rightItem); + if (result !== null) + push(result); + done(); + }}); + } } -function from (that, value, encodingOrOffset, length) { - if (typeof value === 'number') { - throw new TypeError('"value" argument must not be a number') - } +module.exports = NestedLoopJoin; - if (typeof ArrayBuffer !== 'undefined' && value instanceof ArrayBuffer) { - return fromArrayBuffer(that, value, encodingOrOffset, length) - } - if (typeof value === 'string') { - return fromString(that, value, encodingOrOffset) - } +/***/ }), - return fromObject(that, value) -} +/***/ "./node_modules/asyncjoin/join/SymmetricHashJoin.js": +/*!**********************************************************!*\ + !*** ./node_modules/asyncjoin/join/SymmetricHashJoin.js ***! + \**********************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { -/** - * Functionally equivalent to Buffer(arg, encoding) but throws a TypeError - * if value is a number. - * Buffer.from(str[, encoding]) - * Buffer.from(array) - * Buffer.from(buffer) - * Buffer.from(arrayBuffer[, byteOffset[, length]]) - **/ -Buffer.from = function (value, encodingOrOffset, length) { - return from(null, value, encodingOrOffset, length) -} -if (Buffer.TYPED_ARRAY_SUPPORT) { - Buffer.prototype.__proto__ = Uint8Array.prototype - Buffer.__proto__ = Uint8Array - if (typeof Symbol !== 'undefined' && Symbol.species && - Buffer[Symbol.species] === Buffer) { - // Fix subarray() in ES2016. See: https://github.com/feross/buffer/pull/97 - Object.defineProperty(Buffer, Symbol.species, { - value: null, - configurable: true - }) - } -} +let AsyncIterator = __webpack_require__(/*! asynciterator */ "./node_modules/asynciterator/dist/asynciterator.js").AsyncIterator; -function assertSize (size) { - if (typeof size !== 'number') { - throw new TypeError('"size" argument must be a number') - } else if (size < 0) { - throw new RangeError('"size" argument must not be negative') - } -} +// https://en.wikipedia.org/wiki/Symmetric_Hash_Join +class SymmetricHashJoin extends AsyncIterator +{ + constructor (left, right, funHash, funJoin) + { + super(); -function alloc (that, size, fill, encoding) { - assertSize(size) - if (size <= 0) { - return createBuffer(that, size) - } - if (fill !== undefined) { - // Only pay attention to encoding if it's a string. This - // prevents accidentally sending in a number that would - // be interpretted as a start offset. - return typeof encoding === 'string' - ? createBuffer(that, size).fill(fill, encoding) - : createBuffer(that, size).fill(fill) - } - return createBuffer(that, size) -} + this.left = left; + this.right = right; -/** - * Creates a new filled Buffer instance. - * alloc(size[, fill[, encoding]]) - **/ -Buffer.alloc = function (size, fill, encoding) { - return alloc(null, size, fill, encoding) -} + this.funHash = funHash; + this.funJoin = funJoin; -function allocUnsafe (that, size) { - assertSize(size) - that = createBuffer(that, size < 0 ? 0 : checked(size) | 0) - if (!Buffer.TYPED_ARRAY_SUPPORT) { - for (var i = 0; i < size; ++i) { - that[i] = 0 - } - } - return that -} + this.usedLeft = false; + this.leftMap = new Map(); + this.rightMap = new Map(); -/** - * Equivalent to Buffer(num), by default creates a non-zero-filled Buffer instance. - * */ -Buffer.allocUnsafe = function (size) { - return allocUnsafe(null, size) -} -/** - * Equivalent to SlowBuffer(num), by default creates a non-zero-filled Buffer instance. - */ -Buffer.allocUnsafeSlow = function (size) { - return allocUnsafe(null, size) -} + this.on('end', () => this._cleanup() ); -function fromString (that, string, encoding) { - if (typeof encoding !== 'string' || encoding === '') { - encoding = 'utf8' - } + this.match = null; + this.matches = []; + this.matchIdx = 0; - if (!Buffer.isEncoding(encoding)) { - throw new TypeError('"encoding" must be a valid string encoding') - } + if (this.left.readable || this.right.readable) + { + this.readable = true; + } - var length = byteLength(string, encoding) | 0 - that = createBuffer(that, length) + this.left.on('error', (error) => this.destroy(error)); + this.right.on('error', (error) => this.destroy(error)); - var actual = that.write(string, encoding) + this.left.on('readable', () => this.readable = true); + this.right.on('readable', () => this.readable = true); - if (actual !== length) { - // Writing a hex string, for example, that contains invalid characters will - // cause everything after the first invalid character to be ignored. (e.g. - // 'abxxcd' will be treated as 'ab') - that = that.slice(0, actual) - } + // this needs to be here since it's possible the left/right streams only get ended after there are no more results left + this.left.on ('end', () => { if (!this.hasResults()) this._end(); }); + this.right.on('end', () => { if (!this.hasResults()) this._end(); }); + } - return that -} + hasResults() + { + // The "!!this.match" condition was added as a workaround to race + // conditions and/or duplicate "end" events that may lead to premature + // cleanups of the "this.matches" array. + // See https://github.com/joachimvh/asyncjoin/issues/7 + return !this.left.ended || !this.right.ended || (!!this.matches && this.matchIdx < this.matches.length); + } -function fromArrayLike (that, array) { - var length = array.length < 0 ? 0 : checked(array.length) | 0 - that = createBuffer(that, length) - for (var i = 0; i < length; i += 1) { - that[i] = array[i] & 255 - } - return that -} + _cleanup () + { + // motivate garbage collector to remove these + this.leftMap = null; + this.rightMap = null; + this.matches = null; + } -function fromArrayBuffer (that, array, byteOffset, length) { - array.byteLength // this throws if `array` is not a valid ArrayBuffer + close () + { + super.close(); + this.left.close(); + this.right.close(); + } - if (byteOffset < 0 || array.byteLength < byteOffset) { - throw new RangeError('\'offset\' is out of bounds') - } + read () + { + if (this.ended) + return null; - if (array.byteLength < byteOffset + (length || 0)) { - throw new RangeError('\'length\' is out of bounds') - } + while (this.matchIdx < this.matches.length) + { + let item = this.matches[this.matchIdx++]; + let result = this.usedLeft ? this.funJoin(this.match, item) : this.funJoin(item, this.match); + if (result !== null) + return result; + } - if (byteOffset === undefined && length === undefined) { - array = new Uint8Array(array) - } else if (length === undefined) { - array = new Uint8Array(array, byteOffset) - } else { - array = new Uint8Array(array, byteOffset, length) - } + if (!this.hasResults()) + this._end(); - if (Buffer.TYPED_ARRAY_SUPPORT) { - // Return an augmented `Uint8Array` instance, for best performance - that = array - that.__proto__ = Buffer.prototype - } else { - // Fallback: Return an object instance of the Buffer class - that = fromArrayLike(that, array) - } - return that -} + let item = null; + // try both streams if the first one has no value + for (let i = 0; i < 2; ++i) + { + item = this.usedLeft ? this.right.read() : this.left.read(); + this.usedLeft = !this.usedLeft; // try other stream next time -function fromObject (that, obj) { - if (Buffer.isBuffer(obj)) { - var len = checked(obj.length) | 0 - that = createBuffer(that, len) + // found a result, no need to check the other stream this run + if (item !== null) + break; + } - if (that.length === 0) { - return that - } + if (item === null) + { + this.readable = false; + return null; + } - obj.copy(that, 0, 0, len) - return that - } + let hash = this.funHash(item); + let map = this.usedLeft ? this.leftMap : this.rightMap; + if (!map.has(hash)) + map.set(hash, []); + let arr = map.get(hash); + arr.push(item); - if (obj) { - if ((typeof ArrayBuffer !== 'undefined' && - obj.buffer instanceof ArrayBuffer) || 'length' in obj) { - if (typeof obj.length !== 'number' || isnan(obj.length)) { - return createBuffer(that, 0) - } - return fromArrayLike(that, obj) - } + this.match = item; + this.matches = (this.usedLeft ? this.rightMap : this.leftMap).get(hash) || []; + this.matchIdx = 0; - if (obj.type === 'Buffer' && isArray(obj.data)) { - return fromArrayLike(that, obj.data) + // array is filled again so recursive call can have results + return this.read(); } - } - - throw new TypeError('First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.') } -function checked (length) { - // Note: cannot use `length < kMaxLength()` here because that fails when - // length is NaN (which is otherwise coerced to zero.) - if (length >= kMaxLength()) { - throw new RangeError('Attempt to allocate Buffer larger than maximum ' + - 'size: 0x' + kMaxLength().toString(16) + ' bytes') - } - return length | 0 -} +module.exports = SymmetricHashJoin; -function SlowBuffer (length) { - if (+length != length) { // eslint-disable-line eqeqeq - length = 0 - } - return Buffer.alloc(+length) -} -Buffer.isBuffer = function isBuffer (b) { - return !!(b != null && b._isBuffer) -} +/***/ }), -Buffer.compare = function compare (a, b) { - if (!Buffer.isBuffer(a) || !Buffer.isBuffer(b)) { - throw new TypeError('Arguments must be Buffers') - } +/***/ "./node_modules/asyncjoin/util/MergeIterator.js": +/*!******************************************************!*\ + !*** ./node_modules/asyncjoin/util/MergeIterator.js ***! + \******************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { - if (a === b) return 0 - var x = a.length - var y = b.length +let AsyncIterator = __webpack_require__(/*! asynciterator */ "./node_modules/asynciterator/dist/asynciterator.js").AsyncIterator; - for (var i = 0, len = Math.min(x, y); i < len; ++i) { - if (a[i] !== b[i]) { - x = a[i] - y = b[i] - break +// merges the contents of multiple streams +class MergeIterator extends AsyncIterator +{ + constructor (streams) + { + super(); + + if (!Array.isArray(streams)) + streams = Array.prototype.slice.call(arguments); + + this.streams = streams; + + for (let stream of streams) + { + stream.on('readable', () => this.emit('readable')); + stream.on('end', () => this._removeStream(stream)); + } + + if (this.streams.length === 0) + this.close(); + + this.idx = this.streams.length-1; + } + + _removeStream (stream) + { + let idx = this.streams.indexOf(stream); + if (idx < 0) + return; + + this.streams.splice(idx, 1); + if (this.idx >= this.streams.length) + --this.idx; + + if (this.streams.length === 0) + this._end(); + } + + close () + { + super.close(); + for (let stream of this.streams) + stream.close(); + } + + read () + { + for (let attempts = 0; attempts < this.streams.length; ++attempts) + { + this.idx = (this.idx + 1) % this.streams.length; + let item = this.streams[this.idx].read(); + if (item !== null) + return item; + } + + return null; } - } - - 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 - } -} +module.exports = MergeIterator; -Buffer.concat = function concat (list, length) { - if (!isArray(list)) { - throw new TypeError('"list" argument must be an Array of Buffers') - } +/***/ }), - if (list.length === 0) { - return Buffer.alloc(0) - } +/***/ "./node_modules/axios/index.js": +/*!*************************************!*\ + !*** ./node_modules/axios/index.js ***! + \*************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { - var i - if (length === undefined) { - length = 0 - for (i = 0; i < list.length; ++i) { - length += list[i].length - } - } +module.exports = __webpack_require__(/*! ./lib/axios */ "./node_modules/axios/lib/axios.js"); - var buffer = Buffer.allocUnsafe(length) - var pos = 0 - for (i = 0; i < list.length; ++i) { - var buf = list[i] - if (!Buffer.isBuffer(buf)) { - throw new TypeError('"list" argument must be an Array of Buffers') +/***/ }), + +/***/ "./node_modules/axios/lib/adapters/xhr.js": +/*!************************************************!*\ + !*** ./node_modules/axios/lib/adapters/xhr.js ***! + \************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + + +var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js"); +var settle = __webpack_require__(/*! ./../core/settle */ "./node_modules/axios/lib/core/settle.js"); +var cookies = __webpack_require__(/*! ./../helpers/cookies */ "./node_modules/axios/lib/helpers/cookies.js"); +var buildURL = __webpack_require__(/*! ./../helpers/buildURL */ "./node_modules/axios/lib/helpers/buildURL.js"); +var buildFullPath = __webpack_require__(/*! ../core/buildFullPath */ "./node_modules/axios/lib/core/buildFullPath.js"); +var parseHeaders = __webpack_require__(/*! ./../helpers/parseHeaders */ "./node_modules/axios/lib/helpers/parseHeaders.js"); +var isURLSameOrigin = __webpack_require__(/*! ./../helpers/isURLSameOrigin */ "./node_modules/axios/lib/helpers/isURLSameOrigin.js"); +var createError = __webpack_require__(/*! ../core/createError */ "./node_modules/axios/lib/core/createError.js"); +var defaults = __webpack_require__(/*! ../defaults */ "./node_modules/axios/lib/defaults.js"); +var Cancel = __webpack_require__(/*! ../cancel/Cancel */ "./node_modules/axios/lib/cancel/Cancel.js"); + +module.exports = function xhrAdapter(config) { + return new Promise(function dispatchXhrRequest(resolve, reject) { + var requestData = config.data; + var requestHeaders = config.headers; + var responseType = config.responseType; + var onCanceled; + function done() { + if (config.cancelToken) { + config.cancelToken.unsubscribe(onCanceled); + } + + if (config.signal) { + config.signal.removeEventListener('abort', onCanceled); + } } - buf.copy(buffer, pos) - pos += buf.length - } - return buffer -} -function byteLength (string, encoding) { - if (Buffer.isBuffer(string)) { - return string.length - } - if (typeof ArrayBuffer !== 'undefined' && typeof ArrayBuffer.isView === 'function' && - (ArrayBuffer.isView(string) || string instanceof ArrayBuffer)) { - return string.byteLength - } - if (typeof string !== 'string') { - string = '' + string - } + if (utils.isFormData(requestData)) { + delete requestHeaders['Content-Type']; // Let the browser set it + } - var len = string.length - if (len === 0) return 0 + var request = new XMLHttpRequest(); - // Use a for loop to avoid recursion - var loweredCase = false - for (;;) { - switch (encoding) { - case 'ascii': - case 'latin1': - case 'binary': - return len - case 'utf8': - case 'utf-8': - case undefined: - return utf8ToBytes(string).length - case 'ucs2': - case 'ucs-2': - case 'utf16le': - case 'utf-16le': - return len * 2 - case 'hex': - return len >>> 1 - case 'base64': - return base64ToBytes(string).length - default: - if (loweredCase) return utf8ToBytes(string).length // assume utf8 - encoding = ('' + encoding).toLowerCase() - loweredCase = true + // HTTP basic authentication + if (config.auth) { + var username = config.auth.username || ''; + var password = config.auth.password ? unescape(encodeURIComponent(config.auth.password)) : ''; + requestHeaders.Authorization = 'Basic ' + btoa(username + ':' + password); } - } -} -Buffer.byteLength = byteLength -function slowToString (encoding, start, end) { - var loweredCase = false + var fullPath = buildFullPath(config.baseURL, config.url); + request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), true); - // No need to verify that "this.length <= MAX_UINT32" since it's a read-only - // property of a typed array. + // Set the request timeout in MS + request.timeout = config.timeout; - // 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 '' - } + function onloadend() { + if (!request) { + return; + } + // Prepare the response + var responseHeaders = 'getAllResponseHeaders' in request ? parseHeaders(request.getAllResponseHeaders()) : null; + var responseData = !responseType || responseType === 'text' || responseType === 'json' ? + request.responseText : request.response; + var response = { + data: responseData, + status: request.status, + statusText: request.statusText, + headers: responseHeaders, + config: config, + request: request + }; - if (end === undefined || end > this.length) { - end = this.length - } + settle(function _resolve(value) { + resolve(value); + done(); + }, function _reject(err) { + reject(err); + done(); + }, response); - if (end <= 0) { - return '' - } + // Clean up request + request = null; + } - // Force coersion to uint32. This will also coerce falsey/NaN values to 0. - end >>>= 0 - start >>>= 0 + if ('onloadend' in request) { + // Use onloadend if available + request.onloadend = onloadend; + } else { + // Listen for ready state to emulate onloadend + request.onreadystatechange = function handleLoad() { + if (!request || request.readyState !== 4) { + return; + } - if (end <= start) { - return '' - } + // The request errored out and we didn't get a response, this will be + // handled by onerror instead + // With one exception: request that using file: protocol, most browsers + // will return status as 0 even though it's a successful request + if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) { + return; + } + // readystate handler is calling before onerror or ontimeout handlers, + // so we should call onloadend on the next 'tick' + setTimeout(onloadend); + }; + } - if (!encoding) encoding = 'utf8' + // Handle browser request cancellation (as opposed to a manual cancellation) + request.onabort = function handleAbort() { + if (!request) { + return; + } - while (true) { - switch (encoding) { - case 'hex': - return hexSlice(this, start, end) + reject(createError('Request aborted', config, 'ECONNABORTED', request)); - case 'utf8': - case 'utf-8': - return utf8Slice(this, start, end) + // Clean up request + request = null; + }; - case 'ascii': - return asciiSlice(this, start, end) + // Handle low level network errors + request.onerror = function handleError() { + // Real errors are hidden from us by the browser + // onerror should only fire if it's a network error + reject(createError('Network Error', config, null, request)); - case 'latin1': - case 'binary': - return latin1Slice(this, start, end) + // Clean up request + request = null; + }; - case 'base64': - return base64Slice(this, start, end) + // Handle timeout + request.ontimeout = function handleTimeout() { + var timeoutErrorMessage = config.timeout ? 'timeout of ' + config.timeout + 'ms exceeded' : 'timeout exceeded'; + var transitional = config.transitional || defaults.transitional; + if (config.timeoutErrorMessage) { + timeoutErrorMessage = config.timeoutErrorMessage; + } + reject(createError( + timeoutErrorMessage, + config, + transitional.clarifyTimeoutError ? 'ETIMEDOUT' : 'ECONNABORTED', + request)); - case 'ucs2': - case 'ucs-2': - case 'utf16le': - case 'utf-16le': - return utf16leSlice(this, start, end) + // Clean up request + request = null; + }; - default: - if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding) - encoding = (encoding + '').toLowerCase() - loweredCase = true + // Add xsrf header + // This is only done if running in a standard browser environment. + // Specifically not if we're in a web worker, or react-native. + if (utils.isStandardBrowserEnv()) { + // Add xsrf header + var xsrfValue = (config.withCredentials || isURLSameOrigin(fullPath)) && config.xsrfCookieName ? + cookies.read(config.xsrfCookieName) : + undefined; + + if (xsrfValue) { + requestHeaders[config.xsrfHeaderName] = xsrfValue; + } } - } -} -// The property is used by `Buffer.isBuffer` and `is-buffer` (in Safari 5-7) to detect -// Buffer instances. -Buffer.prototype._isBuffer = true + // Add headers to the request + if ('setRequestHeader' in request) { + utils.forEach(requestHeaders, function setRequestHeader(val, key) { + if (typeof requestData === 'undefined' && key.toLowerCase() === 'content-type') { + // Remove Content-Type if data is undefined + delete requestHeaders[key]; + } else { + // Otherwise add header to the request + request.setRequestHeader(key, val); + } + }); + } -function swap (b, n, m) { - var i = b[n] - b[n] = b[m] - b[m] = i -} + // Add withCredentials to request if needed + if (!utils.isUndefined(config.withCredentials)) { + request.withCredentials = !!config.withCredentials; + } -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 -} + // Add responseType to request if needed + if (responseType && responseType !== 'json') { + request.responseType = config.responseType; + } -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 -} + // Handle progress if needed + if (typeof config.onDownloadProgress === 'function') { + request.addEventListener('progress', config.onDownloadProgress); + } -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 -} + // Not all browsers support upload events + if (typeof config.onUploadProgress === 'function' && request.upload) { + request.upload.addEventListener('progress', config.onUploadProgress); + } -Buffer.prototype.toString = function toString () { - var length = this.length | 0 - if (length === 0) return '' - if (arguments.length === 0) return utf8Slice(this, 0, length) - return slowToString.apply(this, arguments) -} + if (config.cancelToken || config.signal) { + // Handle cancellation + // eslint-disable-next-line func-names + onCanceled = function(cancel) { + if (!request) { + return; + } + reject(!cancel || (cancel && cancel.type) ? new Cancel('canceled') : cancel); + request.abort(); + request = null; + }; -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 -} + config.cancelToken && config.cancelToken.subscribe(onCanceled); + if (config.signal) { + config.signal.aborted ? onCanceled() : config.signal.addEventListener('abort', onCanceled); + } + } -Buffer.prototype.inspect = function inspect () { - var str = '' - var max = exports.INSPECT_MAX_BYTES - if (this.length > 0) { - str = this.toString('hex', 0, max).match(/.{2}/g).join(' ') - if (this.length > max) str += ' ... ' - } - return '' -} + if (!requestData) { + requestData = null; + } -Buffer.prototype.compare = function compare (target, start, end, thisStart, thisEnd) { - if (!Buffer.isBuffer(target)) { - throw new TypeError('Argument must be a Buffer') - } + // Send the request + request.send(requestData); + }); +}; - 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 - } +/***/ "./node_modules/axios/lib/axios.js": +/*!*****************************************!*\ + !*** ./node_modules/axios/lib/axios.js ***! + \*****************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { - start >>>= 0 - end >>>= 0 - thisStart >>>= 0 - thisEnd >>>= 0 +"use strict"; - if (this === target) return 0 - var x = thisEnd - thisStart - var y = end - start - var len = Math.min(x, y) +var utils = __webpack_require__(/*! ./utils */ "./node_modules/axios/lib/utils.js"); +var bind = __webpack_require__(/*! ./helpers/bind */ "./node_modules/axios/lib/helpers/bind.js"); +var Axios = __webpack_require__(/*! ./core/Axios */ "./node_modules/axios/lib/core/Axios.js"); +var mergeConfig = __webpack_require__(/*! ./core/mergeConfig */ "./node_modules/axios/lib/core/mergeConfig.js"); +var defaults = __webpack_require__(/*! ./defaults */ "./node_modules/axios/lib/defaults.js"); - var thisCopy = this.slice(thisStart, thisEnd) - var targetCopy = target.slice(start, end) +/** + * Create an instance of Axios + * + * @param {Object} defaultConfig The default config for the instance + * @return {Axios} A new instance of Axios + */ +function createInstance(defaultConfig) { + var context = new Axios(defaultConfig); + var instance = bind(Axios.prototype.request, context); - for (var i = 0; i < len; ++i) { - if (thisCopy[i] !== targetCopy[i]) { - x = thisCopy[i] - y = targetCopy[i] - break - } - } + // Copy axios.prototype to instance + utils.extend(instance, Axios.prototype, context); - if (x < y) return -1 - if (y < x) return 1 - return 0 + // Copy context to instance + utils.extend(instance, context); + + // Factory for creating new instances + instance.create = function create(instanceConfig) { + return createInstance(mergeConfig(defaultConfig, instanceConfig)); + }; + + return instance; } -// 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 +// Create the default instance to be exported +var axios = createInstance(defaults); - // Normalize byteOffset - if (typeof byteOffset === 'string') { - encoding = byteOffset - byteOffset = 0 - } else if (byteOffset > 0x7fffffff) { - byteOffset = 0x7fffffff - } else if (byteOffset < -0x80000000) { - byteOffset = -0x80000000 - } - byteOffset = +byteOffset // Coerce to Number. - if (isNaN(byteOffset)) { - // byteOffset: it it's undefined, null, NaN, "foo", etc, search whole buffer - byteOffset = dir ? 0 : (buffer.length - 1) - } +// Expose Axios class to allow class inheritance +axios.Axios = Axios; - // 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 - } +// Expose Cancel & CancelToken +axios.Cancel = __webpack_require__(/*! ./cancel/Cancel */ "./node_modules/axios/lib/cancel/Cancel.js"); +axios.CancelToken = __webpack_require__(/*! ./cancel/CancelToken */ "./node_modules/axios/lib/cancel/CancelToken.js"); +axios.isCancel = __webpack_require__(/*! ./cancel/isCancel */ "./node_modules/axios/lib/cancel/isCancel.js"); +axios.VERSION = __webpack_require__(/*! ./env/data */ "./node_modules/axios/lib/env/data.js").version; - // Normalize val - if (typeof val === 'string') { - val = Buffer.from(val, encoding) - } +// Expose all/spread +axios.all = function all(promises) { + return Promise.all(promises); +}; +axios.spread = __webpack_require__(/*! ./helpers/spread */ "./node_modules/axios/lib/helpers/spread.js"); - // Finally, search either indexOf (if dir is true) or lastIndexOf - if (Buffer.isBuffer(val)) { - // Special case: looking for empty string/buffer always fails - if (val.length === 0) { - return -1 - } - return arrayIndexOf(buffer, val, byteOffset, encoding, dir) - } else if (typeof val === 'number') { - val = val & 0xFF // Search for a byte value [0-255] - if (Buffer.TYPED_ARRAY_SUPPORT && - typeof Uint8Array.prototype.indexOf === 'function') { - if (dir) { - return Uint8Array.prototype.indexOf.call(buffer, val, byteOffset) - } else { - return Uint8Array.prototype.lastIndexOf.call(buffer, val, byteOffset) - } - } - return arrayIndexOf(buffer, [ val ], byteOffset, encoding, dir) - } +// Expose isAxiosError +axios.isAxiosError = __webpack_require__(/*! ./helpers/isAxiosError */ "./node_modules/axios/lib/helpers/isAxiosError.js"); - throw new TypeError('val must be string, number or Buffer') -} +module.exports = axios; -function arrayIndexOf (arr, val, byteOffset, encoding, dir) { - var indexSize = 1 - var arrLength = arr.length - var valLength = val.length +// Allow use of default import syntax in TypeScript +module.exports.default = axios; - 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 - } - } +/***/ "./node_modules/axios/lib/cancel/Cancel.js": +/*!*************************************************!*\ + !*** ./node_modules/axios/lib/cancel/Cancel.js ***! + \*************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { - return -1 -} +"use strict"; -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) +/** + * A `Cancel` is an object that is thrown when an operation is canceled. + * + * @class + * @param {string=} message The message. + */ +function Cancel(message) { + this.message = message; } -Buffer.prototype.lastIndexOf = function lastIndexOf (val, byteOffset, encoding) { - return bidirectionalIndexOf(this, val, byteOffset, encoding, false) -} +Cancel.prototype.toString = function toString() { + return 'Cancel' + (this.message ? ': ' + this.message : ''); +}; -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 - } - } +Cancel.prototype.__CANCEL__ = true; - // must be an even number of digits - var strLen = string.length - if (strLen % 2 !== 0) throw new TypeError('Invalid hex string') +module.exports = Cancel; - if (length > strLen / 2) { - length = strLen / 2 - } - for (var i = 0; i < length; ++i) { - var parsed = parseInt(string.substr(i * 2, 2), 16) - if (isNaN(parsed)) return i - buf[offset + i] = parsed - } - return i -} -function utf8Write (buf, string, offset, length) { - return blitBuffer(utf8ToBytes(string, buf.length - offset), buf, offset, length) -} +/***/ }), -function asciiWrite (buf, string, offset, length) { - return blitBuffer(asciiToBytes(string), buf, offset, length) -} +/***/ "./node_modules/axios/lib/cancel/CancelToken.js": +/*!******************************************************!*\ + !*** ./node_modules/axios/lib/cancel/CancelToken.js ***! + \******************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { -function latin1Write (buf, string, offset, length) { - return asciiWrite(buf, string, offset, length) -} +"use strict"; -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) -} +var Cancel = __webpack_require__(/*! ./Cancel */ "./node_modules/axios/lib/cancel/Cancel.js"); -Buffer.prototype.write = function write (string, offset, length, encoding) { - // Buffer#write(string) - if (offset === undefined) { - encoding = 'utf8' - length = this.length - offset = 0 - // Buffer#write(string, encoding) - } else if (length === undefined && typeof offset === 'string') { - encoding = offset - length = this.length - offset = 0 - // Buffer#write(string, offset[, length][, encoding]) - } else if (isFinite(offset)) { - offset = offset | 0 - if (isFinite(length)) { - length = length | 0 - if (encoding === undefined) encoding = 'utf8' - } else { - encoding = length - length = undefined - } - // legacy write(string, encoding, offset, length) - remove in v0.13 - } else { - throw new Error( - 'Buffer.write(string, encoding, offset[, length]) is no longer supported' - ) +/** + * A `CancelToken` is an object that can be used to request cancellation of an operation. + * + * @class + * @param {Function} executor The executor function. + */ +function CancelToken(executor) { + if (typeof executor !== 'function') { + throw new TypeError('executor must be a function.'); } - var remaining = this.length - offset - if (length === undefined || length > remaining) length = remaining + var resolvePromise; - if ((string.length > 0 && (length < 0 || offset < 0)) || offset > this.length) { - throw new RangeError('Attempt to write outside buffer bounds') - } + this.promise = new Promise(function promiseExecutor(resolve) { + resolvePromise = resolve; + }); - if (!encoding) encoding = 'utf8' + var token = this; - var loweredCase = false - for (;;) { - switch (encoding) { - case 'hex': - return hexWrite(this, string, offset, length) + // eslint-disable-next-line func-names + this.promise.then(function(cancel) { + if (!token._listeners) return; - case 'utf8': - case 'utf-8': - return utf8Write(this, string, offset, length) + var i; + var l = token._listeners.length; - case 'ascii': - return asciiWrite(this, string, offset, length) + for (i = 0; i < l; i++) { + token._listeners[i](cancel); + } + token._listeners = null; + }); - case 'latin1': - case 'binary': - return latin1Write(this, string, offset, length) + // eslint-disable-next-line func-names + this.promise.then = function(onfulfilled) { + var _resolve; + // eslint-disable-next-line func-names + var promise = new Promise(function(resolve) { + token.subscribe(resolve); + _resolve = resolve; + }).then(onfulfilled); - case 'base64': - // Warning: maxLength not taken into account in base64Write - return base64Write(this, string, offset, length) + promise.cancel = function reject() { + token.unsubscribe(_resolve); + }; - case 'ucs2': - case 'ucs-2': - case 'utf16le': - case 'utf-16le': - return ucs2Write(this, string, offset, length) + return promise; + }; - default: - if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding) - encoding = ('' + encoding).toLowerCase() - loweredCase = true + executor(function cancel(message) { + if (token.reason) { + // Cancellation has already been requested + return; } - } + + token.reason = new Cancel(message); + resolvePromise(token.reason); + }); } -Buffer.prototype.toJSON = function toJSON () { - return { - type: 'Buffer', - data: Array.prototype.slice.call(this._arr || this, 0) +/** + * Throws a `Cancel` if cancellation has been requested. + */ +CancelToken.prototype.throwIfRequested = function throwIfRequested() { + if (this.reason) { + throw this.reason; } -} +}; -function base64Slice (buf, start, end) { - if (start === 0 && end === buf.length) { - return base64.fromByteArray(buf) +/** + * Subscribe to the cancel signal + */ + +CancelToken.prototype.subscribe = function subscribe(listener) { + if (this.reason) { + listener(this.reason); + return; + } + + if (this._listeners) { + this._listeners.push(listener); } else { - return base64.fromByteArray(buf.slice(start, end)) + this._listeners = [listener]; } -} +}; -function utf8Slice (buf, start, end) { - end = Math.min(buf.length, end) - var res = [] +/** + * Unsubscribe from the cancel signal + */ - 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 +CancelToken.prototype.unsubscribe = function unsubscribe(listener) { + if (!this._listeners) { + return; + } + var index = this._listeners.indexOf(listener); + if (index !== -1) { + this._listeners.splice(index, 1); + } +}; - if (i + bytesPerSequence <= end) { - var secondByte, thirdByte, fourthByte, tempCodePoint +/** + * Returns an object that contains a new `CancelToken` and a function that, when called, + * cancels the `CancelToken`. + */ +CancelToken.source = function source() { + var cancel; + var token = new CancelToken(function executor(c) { + cancel = c; + }); + return { + token: token, + cancel: cancel + }; +}; - 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 - } - } - } - } +module.exports = CancelToken; - 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) -} +/***/ "./node_modules/axios/lib/cancel/isCancel.js": +/*!***************************************************!*\ + !*** ./node_modules/axios/lib/cancel/isCancel.js ***! + \***************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { -// 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 +"use strict"; -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 -} +module.exports = function isCancel(value) { + return !!(value && value.__CANCEL__); +}; -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) +/***/ "./node_modules/axios/lib/core/Axios.js": +/*!**********************************************!*\ + !*** ./node_modules/axios/lib/core/Axios.js ***! + \**********************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { - for (var i = start; i < end; ++i) { - ret += String.fromCharCode(buf[i]) - } - return ret -} +"use strict"; -function hexSlice (buf, start, end) { - var len = buf.length - if (!start || start < 0) start = 0 - if (!end || end < 0 || end > len) end = len +var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js"); +var buildURL = __webpack_require__(/*! ../helpers/buildURL */ "./node_modules/axios/lib/helpers/buildURL.js"); +var InterceptorManager = __webpack_require__(/*! ./InterceptorManager */ "./node_modules/axios/lib/core/InterceptorManager.js"); +var dispatchRequest = __webpack_require__(/*! ./dispatchRequest */ "./node_modules/axios/lib/core/dispatchRequest.js"); +var mergeConfig = __webpack_require__(/*! ./mergeConfig */ "./node_modules/axios/lib/core/mergeConfig.js"); +var validator = __webpack_require__(/*! ../helpers/validator */ "./node_modules/axios/lib/helpers/validator.js"); - var out = '' - for (var i = start; i < end; ++i) { - out += toHex(buf[i]) - } - return out +var validators = validator.validators; +/** + * Create a new instance of Axios + * + * @param {Object} instanceConfig The default config for the instance + */ +function Axios(instanceConfig) { + this.defaults = instanceConfig; + this.interceptors = { + request: new InterceptorManager(), + response: new InterceptorManager() + }; } -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) +/** + * Dispatch a request + * + * @param {Object} config The config specific for this request (merged with this.defaults) + */ +Axios.prototype.request = function request(configOrUrl, config) { + /*eslint no-param-reassign:0*/ + // Allow for axios('example/url'[, config]) a la fetch API + if (typeof configOrUrl === 'string') { + config = config || {}; + config.url = configOrUrl; + } else { + config = configOrUrl || {}; } - 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 (!config.url) { + throw new Error('Provided config url is not valid'); } - if (end < 0) { - end += len - if (end < 0) end = 0 - } else if (end > len) { - end = len + config = mergeConfig(this.defaults, config); + + // Set config.method + if (config.method) { + config.method = config.method.toLowerCase(); + } else if (this.defaults.method) { + config.method = this.defaults.method.toLowerCase(); + } else { + config.method = 'get'; } - if (end < start) end = start + var transitional = config.transitional; - var newBuf - if (Buffer.TYPED_ARRAY_SUPPORT) { - newBuf = this.subarray(start, end) - newBuf.__proto__ = Buffer.prototype - } else { - var sliceLen = end - start - newBuf = new Buffer(sliceLen, undefined) - for (var i = 0; i < sliceLen; ++i) { - newBuf[i] = this[i + start] - } + if (transitional !== undefined) { + validator.assertOptions(transitional, { + silentJSONParsing: validators.transitional(validators.boolean), + forcedJSONParsing: validators.transitional(validators.boolean), + clarifyTimeoutError: validators.transitional(validators.boolean) + }, false); } - return newBuf -} + // filter out skipped interceptors + var requestInterceptorChain = []; + var synchronousRequestInterceptors = true; + this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) { + if (typeof interceptor.runWhen === 'function' && interceptor.runWhen(config) === false) { + return; + } -/* - * 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') -} + synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous; -Buffer.prototype.readUIntLE = function readUIntLE (offset, byteLength, noAssert) { - offset = offset | 0 - byteLength = byteLength | 0 - if (!noAssert) checkOffset(offset, byteLength, this.length) + requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected); + }); - var val = this[offset] - var mul = 1 - var i = 0 - while (++i < byteLength && (mul *= 0x100)) { - val += this[offset + i] * mul + var responseInterceptorChain = []; + this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) { + responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected); + }); + + var promise; + + if (!synchronousRequestInterceptors) { + var chain = [dispatchRequest, undefined]; + + Array.prototype.unshift.apply(chain, requestInterceptorChain); + chain = chain.concat(responseInterceptorChain); + + promise = Promise.resolve(config); + while (chain.length) { + promise = promise.then(chain.shift(), chain.shift()); + } + + return promise; } - return val -} -Buffer.prototype.readUIntBE = function readUIntBE (offset, byteLength, noAssert) { - offset = offset | 0 - byteLength = byteLength | 0 - if (!noAssert) { - checkOffset(offset, byteLength, this.length) + var newConfig = config; + while (requestInterceptorChain.length) { + var onFulfilled = requestInterceptorChain.shift(); + var onRejected = requestInterceptorChain.shift(); + try { + newConfig = onFulfilled(newConfig); + } catch (error) { + onRejected(error); + break; + } } - var val = this[offset + --byteLength] - var mul = 1 - while (byteLength > 0 && (mul *= 0x100)) { - val += this[offset + --byteLength] * mul + try { + promise = dispatchRequest(newConfig); + } catch (error) { + return Promise.reject(error); } - return val -} + while (responseInterceptorChain.length) { + promise = promise.then(responseInterceptorChain.shift(), responseInterceptorChain.shift()); + } -Buffer.prototype.readUInt8 = function readUInt8 (offset, noAssert) { - if (!noAssert) checkOffset(offset, 1, this.length) - return this[offset] -} + return promise; +}; -Buffer.prototype.readUInt16LE = function readUInt16LE (offset, noAssert) { - if (!noAssert) checkOffset(offset, 2, this.length) - return this[offset] | (this[offset + 1] << 8) -} +Axios.prototype.getUri = function getUri(config) { + if (!config.url) { + throw new Error('Provided config url is not valid'); + } + config = mergeConfig(this.defaults, config); + return buildURL(config.url, config.params, config.paramsSerializer).replace(/^\?/, ''); +}; -Buffer.prototype.readUInt16BE = function readUInt16BE (offset, noAssert) { - if (!noAssert) checkOffset(offset, 2, this.length) - return (this[offset] << 8) | this[offset + 1] -} +// Provide aliases for supported request methods +utils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) { + /*eslint func-names:0*/ + Axios.prototype[method] = function(url, config) { + return this.request(mergeConfig(config || {}, { + method: method, + url: url, + data: (config || {}).data + })); + }; +}); -Buffer.prototype.readUInt32LE = function readUInt32LE (offset, noAssert) { - if (!noAssert) checkOffset(offset, 4, this.length) +utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) { + /*eslint func-names:0*/ + Axios.prototype[method] = function(url, data, config) { + return this.request(mergeConfig(config || {}, { + method: method, + url: url, + data: data + })); + }; +}); - return ((this[offset]) | - (this[offset + 1] << 8) | - (this[offset + 2] << 16)) + - (this[offset + 3] * 0x1000000) -} +module.exports = Axios; -Buffer.prototype.readUInt32BE = function readUInt32BE (offset, noAssert) { - if (!noAssert) checkOffset(offset, 4, this.length) - return (this[offset] * 0x1000000) + - ((this[offset + 1] << 16) | - (this[offset + 2] << 8) | - this[offset + 3]) -} +/***/ }), -Buffer.prototype.readIntLE = function readIntLE (offset, byteLength, noAssert) { - offset = offset | 0 - byteLength = byteLength | 0 - if (!noAssert) checkOffset(offset, byteLength, this.length) +/***/ "./node_modules/axios/lib/core/InterceptorManager.js": +/*!***********************************************************!*\ + !*** ./node_modules/axios/lib/core/InterceptorManager.js ***! + \***********************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { - var val = this[offset] - var mul = 1 - var i = 0 - while (++i < byteLength && (mul *= 0x100)) { - val += this[offset + i] * mul - } - mul *= 0x80 +"use strict"; - if (val >= mul) val -= Math.pow(2, 8 * byteLength) - return val +var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js"); + +function InterceptorManager() { + this.handlers = []; } -Buffer.prototype.readIntBE = function readIntBE (offset, byteLength, noAssert) { - offset = offset | 0 - byteLength = byteLength | 0 - if (!noAssert) checkOffset(offset, byteLength, this.length) +/** + * Add a new interceptor to the stack + * + * @param {Function} fulfilled The function to handle `then` for a `Promise` + * @param {Function} rejected The function to handle `reject` for a `Promise` + * + * @return {Number} An ID used to remove interceptor later + */ +InterceptorManager.prototype.use = function use(fulfilled, rejected, options) { + this.handlers.push({ + fulfilled: fulfilled, + rejected: rejected, + synchronous: options ? options.synchronous : false, + runWhen: options ? options.runWhen : null + }); + return this.handlers.length - 1; +}; - var i = byteLength - var mul = 1 - var val = this[offset + --i] - while (i > 0 && (mul *= 0x100)) { - val += this[offset + --i] * mul +/** + * Remove an interceptor from the stack + * + * @param {Number} id The ID that was returned by `use` + */ +InterceptorManager.prototype.eject = function eject(id) { + if (this.handlers[id]) { + this.handlers[id] = null; } - mul *= 0x80 - - if (val >= mul) val -= Math.pow(2, 8 * byteLength) +}; - return val -} +/** + * Iterate over all the registered interceptors + * + * This method is particularly useful for skipping over any + * interceptors that may have become `null` calling `eject`. + * + * @param {Function} fn The function to call for each interceptor + */ +InterceptorManager.prototype.forEach = function forEach(fn) { + utils.forEach(this.handlers, function forEachHandler(h) { + if (h !== null) { + fn(h); + } + }); +}; -Buffer.prototype.readInt8 = function readInt8 (offset, noAssert) { - if (!noAssert) checkOffset(offset, 1, this.length) - if (!(this[offset] & 0x80)) return (this[offset]) - return ((0xff - this[offset] + 1) * -1) -} +module.exports = InterceptorManager; -Buffer.prototype.readInt16LE = function readInt16LE (offset, noAssert) { - if (!noAssert) checkOffset(offset, 2, this.length) - var val = this[offset] | (this[offset + 1] << 8) - return (val & 0x8000) ? val | 0xFFFF0000 : val -} -Buffer.prototype.readInt16BE = function readInt16BE (offset, noAssert) { - if (!noAssert) checkOffset(offset, 2, this.length) - var val = this[offset + 1] | (this[offset] << 8) - return (val & 0x8000) ? val | 0xFFFF0000 : val -} +/***/ }), -Buffer.prototype.readInt32LE = function readInt32LE (offset, noAssert) { - if (!noAssert) checkOffset(offset, 4, this.length) +/***/ "./node_modules/axios/lib/core/buildFullPath.js": +/*!******************************************************!*\ + !*** ./node_modules/axios/lib/core/buildFullPath.js ***! + \******************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { - return (this[offset]) | - (this[offset + 1] << 8) | - (this[offset + 2] << 16) | - (this[offset + 3] << 24) -} +"use strict"; -Buffer.prototype.readInt32BE = function readInt32BE (offset, noAssert) { - if (!noAssert) checkOffset(offset, 4, this.length) - return (this[offset] << 24) | - (this[offset + 1] << 16) | - (this[offset + 2] << 8) | - (this[offset + 3]) -} +var isAbsoluteURL = __webpack_require__(/*! ../helpers/isAbsoluteURL */ "./node_modules/axios/lib/helpers/isAbsoluteURL.js"); +var combineURLs = __webpack_require__(/*! ../helpers/combineURLs */ "./node_modules/axios/lib/helpers/combineURLs.js"); -Buffer.prototype.readFloatLE = function readFloatLE (offset, noAssert) { - if (!noAssert) checkOffset(offset, 4, this.length) - return ieee754.read(this, offset, true, 23, 4) -} +/** + * Creates a new URL by combining the baseURL with the requestedURL, + * only when the requestedURL is not already an absolute URL. + * If the requestURL is absolute, this function returns the requestedURL untouched. + * + * @param {string} baseURL The base URL + * @param {string} requestedURL Absolute or relative URL to combine + * @returns {string} The combined full path + */ +module.exports = function buildFullPath(baseURL, requestedURL) { + if (baseURL && !isAbsoluteURL(requestedURL)) { + return combineURLs(baseURL, requestedURL); + } + return requestedURL; +}; -Buffer.prototype.readFloatBE = function readFloatBE (offset, noAssert) { - if (!noAssert) checkOffset(offset, 4, this.length) - return ieee754.read(this, offset, false, 23, 4) -} -Buffer.prototype.readDoubleLE = function readDoubleLE (offset, noAssert) { - if (!noAssert) checkOffset(offset, 8, this.length) - return ieee754.read(this, offset, true, 52, 8) -} +/***/ }), -Buffer.prototype.readDoubleBE = function readDoubleBE (offset, noAssert) { - if (!noAssert) checkOffset(offset, 8, this.length) - return ieee754.read(this, offset, false, 52, 8) -} +/***/ "./node_modules/axios/lib/core/createError.js": +/*!****************************************************!*\ + !*** ./node_modules/axios/lib/core/createError.js ***! + \****************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { -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') -} +"use strict"; -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 - } +var enhanceError = __webpack_require__(/*! ./enhanceError */ "./node_modules/axios/lib/core/enhanceError.js"); - return offset + byteLength -} +/** + * Create an Error with the specified message, config, error code, request and response. + * + * @param {string} message The error message. + * @param {Object} config The config. + * @param {string} [code] The error code (for example, 'ECONNABORTED'). + * @param {Object} [request] The request. + * @param {Object} [response] The response. + * @returns {Error} The created error. + */ +module.exports = function createError(message, config, code, request, response) { + var error = new Error(message); + return enhanceError(error, config, code, request, response); +}; -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 -} +/***/ "./node_modules/axios/lib/core/dispatchRequest.js": +/*!********************************************************!*\ + !*** ./node_modules/axios/lib/core/dispatchRequest.js ***! + \********************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { -Buffer.prototype.writeUInt8 = function writeUInt8 (value, offset, noAssert) { - value = +value - offset = offset | 0 - if (!noAssert) checkInt(this, value, offset, 1, 0xff, 0) - if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value) - this[offset] = (value & 0xff) - return offset + 1 -} +"use strict"; -function objectWriteUInt16 (buf, value, offset, littleEndian) { - if (value < 0) value = 0xffff + value + 1 - for (var i = 0, j = Math.min(buf.length - offset, 2); i < j; ++i) { - buf[offset + i] = (value & (0xff << (8 * (littleEndian ? i : 1 - i)))) >>> - (littleEndian ? i : 1 - i) * 8 - } -} -Buffer.prototype.writeUInt16LE = function writeUInt16LE (value, offset, noAssert) { - value = +value - offset = offset | 0 - if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0) - if (Buffer.TYPED_ARRAY_SUPPORT) { - this[offset] = (value & 0xff) - this[offset + 1] = (value >>> 8) - } else { - objectWriteUInt16(this, value, offset, true) - } - return offset + 2 -} +var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js"); +var transformData = __webpack_require__(/*! ./transformData */ "./node_modules/axios/lib/core/transformData.js"); +var isCancel = __webpack_require__(/*! ../cancel/isCancel */ "./node_modules/axios/lib/cancel/isCancel.js"); +var defaults = __webpack_require__(/*! ../defaults */ "./node_modules/axios/lib/defaults.js"); +var Cancel = __webpack_require__(/*! ../cancel/Cancel */ "./node_modules/axios/lib/cancel/Cancel.js"); -Buffer.prototype.writeUInt16BE = function writeUInt16BE (value, offset, noAssert) { - value = +value - offset = offset | 0 - if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0) - if (Buffer.TYPED_ARRAY_SUPPORT) { - this[offset] = (value >>> 8) - this[offset + 1] = (value & 0xff) - } else { - objectWriteUInt16(this, value, offset, false) +/** + * Throws a `Cancel` if cancellation has been requested. + */ +function throwIfCancellationRequested(config) { + if (config.cancelToken) { + config.cancelToken.throwIfRequested(); } - return offset + 2 -} -function objectWriteUInt32 (buf, value, offset, littleEndian) { - if (value < 0) value = 0xffffffff + value + 1 - for (var i = 0, j = Math.min(buf.length - offset, 4); i < j; ++i) { - buf[offset + i] = (value >>> (littleEndian ? i : 3 - i) * 8) & 0xff + if (config.signal && config.signal.aborted) { + throw new Cancel('canceled'); } } -Buffer.prototype.writeUInt32LE = function writeUInt32LE (value, offset, noAssert) { - value = +value - offset = offset | 0 - if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0) - if (Buffer.TYPED_ARRAY_SUPPORT) { - this[offset + 3] = (value >>> 24) - this[offset + 2] = (value >>> 16) - this[offset + 1] = (value >>> 8) - this[offset] = (value & 0xff) - } else { - objectWriteUInt32(this, value, offset, true) - } - return offset + 4 -} +/** + * Dispatch a request to the server using the configured adapter. + * + * @param {object} config The config that is to be used for the request + * @returns {Promise} The Promise to be fulfilled + */ +module.exports = function dispatchRequest(config) { + throwIfCancellationRequested(config); -Buffer.prototype.writeUInt32BE = function writeUInt32BE (value, offset, noAssert) { - value = +value - offset = offset | 0 - if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0) - if (Buffer.TYPED_ARRAY_SUPPORT) { - this[offset] = (value >>> 24) - this[offset + 1] = (value >>> 16) - this[offset + 2] = (value >>> 8) - this[offset + 3] = (value & 0xff) - } else { - objectWriteUInt32(this, value, offset, false) - } - return offset + 4 -} + // Ensure headers exist + config.headers = config.headers || {}; -Buffer.prototype.writeIntLE = function writeIntLE (value, offset, byteLength, noAssert) { - value = +value - offset = offset | 0 - if (!noAssert) { - var limit = Math.pow(2, 8 * byteLength - 1) + // Transform request data + config.data = transformData.call( + config, + config.data, + config.headers, + config.transformRequest + ); - checkInt(this, value, offset, byteLength, limit - 1, -limit) - } + // Flatten headers + config.headers = utils.merge( + config.headers.common || {}, + config.headers[config.method] || {}, + config.headers + ); - 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 + utils.forEach( + ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'], + function cleanHeaderConfig(method) { + delete config.headers[method]; } - this[offset + i] = ((value / mul) >> 0) - sub & 0xFF - } + ); - return offset + byteLength -} + var adapter = config.adapter || defaults.adapter; -Buffer.prototype.writeIntBE = function writeIntBE (value, offset, byteLength, noAssert) { - value = +value - offset = offset | 0 - if (!noAssert) { - var limit = Math.pow(2, 8 * byteLength - 1) + return adapter(config).then(function onAdapterResolution(response) { + throwIfCancellationRequested(config); - checkInt(this, value, offset, byteLength, limit - 1, -limit) - } + // Transform response data + response.data = transformData.call( + config, + response.data, + response.headers, + config.transformResponse + ); - 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 + return response; + }, function onAdapterRejection(reason) { + if (!isCancel(reason)) { + throwIfCancellationRequested(config); + + // Transform response data + if (reason && reason.response) { + reason.response.data = transformData.call( + config, + reason.response.data, + reason.response.headers, + config.transformResponse + ); + } } - this[offset + i] = ((value / mul) >> 0) - sub & 0xFF - } - return offset + byteLength -} + return Promise.reject(reason); + }); +}; -Buffer.prototype.writeInt8 = function writeInt8 (value, offset, noAssert) { - value = +value - offset = offset | 0 - if (!noAssert) checkInt(this, value, offset, 1, 0x7f, -0x80) - if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value) - if (value < 0) value = 0xff + value + 1 - this[offset] = (value & 0xff) - return offset + 1 -} -Buffer.prototype.writeInt16LE = function writeInt16LE (value, offset, noAssert) { - value = +value - offset = offset | 0 - if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000) - if (Buffer.TYPED_ARRAY_SUPPORT) { - this[offset] = (value & 0xff) - this[offset + 1] = (value >>> 8) - } else { - objectWriteUInt16(this, value, offset, true) - } - return offset + 2 -} +/***/ }), -Buffer.prototype.writeInt16BE = function writeInt16BE (value, offset, noAssert) { - value = +value - offset = offset | 0 - if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000) - if (Buffer.TYPED_ARRAY_SUPPORT) { - this[offset] = (value >>> 8) - this[offset + 1] = (value & 0xff) - } else { - objectWriteUInt16(this, value, offset, false) - } - return offset + 2 -} +/***/ "./node_modules/axios/lib/core/enhanceError.js": +/*!*****************************************************!*\ + !*** ./node_modules/axios/lib/core/enhanceError.js ***! + \*****************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { -Buffer.prototype.writeInt32LE = function writeInt32LE (value, offset, noAssert) { - value = +value - offset = offset | 0 - if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000) - if (Buffer.TYPED_ARRAY_SUPPORT) { - this[offset] = (value & 0xff) - this[offset + 1] = (value >>> 8) - this[offset + 2] = (value >>> 16) - this[offset + 3] = (value >>> 24) - } else { - objectWriteUInt32(this, value, offset, true) - } - return offset + 4 -} +"use strict"; -Buffer.prototype.writeInt32BE = function writeInt32BE (value, offset, noAssert) { - value = +value - offset = offset | 0 - if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000) - if (value < 0) value = 0xffffffff + value + 1 - if (Buffer.TYPED_ARRAY_SUPPORT) { - this[offset] = (value >>> 24) - this[offset + 1] = (value >>> 16) - this[offset + 2] = (value >>> 8) - this[offset + 3] = (value & 0xff) - } else { - objectWriteUInt32(this, value, offset, false) + +/** + * Update an Error with the specified config, error code, and response. + * + * @param {Error} error The error to update. + * @param {Object} config The config. + * @param {string} [code] The error code (for example, 'ECONNABORTED'). + * @param {Object} [request] The request. + * @param {Object} [response] The response. + * @returns {Error} The error. + */ +module.exports = function enhanceError(error, config, code, request, response) { + error.config = config; + if (code) { + error.code = code; } - 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') -} + error.request = request; + error.response = response; + error.isAxiosError = true; -function writeFloat (buf, value, offset, littleEndian, noAssert) { - if (!noAssert) { - checkIEEE754(buf, value, offset, 4, 3.4028234663852886e+38, -3.4028234663852886e+38) - } - ieee754.write(buf, value, offset, littleEndian, 23, 4) - return offset + 4 -} + error.toJSON = function toJSON() { + return { + // Standard + message: this.message, + name: this.name, + // Microsoft + description: this.description, + number: this.number, + // Mozilla + fileName: this.fileName, + lineNumber: this.lineNumber, + columnNumber: this.columnNumber, + stack: this.stack, + // Axios + config: this.config, + code: this.code, + status: this.response && this.response.status ? this.response.status : null + }; + }; + return error; +}; -Buffer.prototype.writeFloatLE = function writeFloatLE (value, offset, noAssert) { - return writeFloat(this, value, offset, true, noAssert) -} -Buffer.prototype.writeFloatBE = function writeFloatBE (value, offset, noAssert) { - return writeFloat(this, value, offset, false, noAssert) -} +/***/ }), -function writeDouble (buf, value, offset, littleEndian, noAssert) { - if (!noAssert) { - checkIEEE754(buf, value, offset, 8, 1.7976931348623157E+308, -1.7976931348623157E+308) - } - ieee754.write(buf, value, offset, littleEndian, 52, 8) - return offset + 8 -} +/***/ "./node_modules/axios/lib/core/mergeConfig.js": +/*!****************************************************!*\ + !*** ./node_modules/axios/lib/core/mergeConfig.js ***! + \****************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { -Buffer.prototype.writeDoubleLE = function writeDoubleLE (value, offset, noAssert) { - return writeDouble(this, value, offset, true, noAssert) -} +"use strict"; -Buffer.prototype.writeDoubleBE = function writeDoubleBE (value, offset, noAssert) { - return writeDouble(this, value, offset, false, noAssert) -} -// copy(targetBuffer, targetStart=0, sourceStart=0, sourceEnd=buffer.length) -Buffer.prototype.copy = function copy (target, targetStart, start, end) { - if (!start) start = 0 - if (!end && end !== 0) end = this.length - if (targetStart >= target.length) targetStart = target.length - if (!targetStart) targetStart = 0 - if (end > 0 && end < start) end = start +var utils = __webpack_require__(/*! ../utils */ "./node_modules/axios/lib/utils.js"); - // Copy 0 bytes; we're done - if (end === start) return 0 - if (target.length === 0 || this.length === 0) return 0 +/** + * Config-specific merge-function which creates a new config-object + * by merging two configuration objects together. + * + * @param {Object} config1 + * @param {Object} config2 + * @returns {Object} New object resulting from merging config2 to config1 + */ +module.exports = function mergeConfig(config1, config2) { + // eslint-disable-next-line no-param-reassign + config2 = config2 || {}; + var config = {}; - // Fatal error conditions - if (targetStart < 0) { - throw new RangeError('targetStart out of bounds') + function getMergedValue(target, source) { + if (utils.isPlainObject(target) && utils.isPlainObject(source)) { + return utils.merge(target, source); + } else if (utils.isPlainObject(source)) { + return utils.merge({}, source); + } else if (utils.isArray(source)) { + return source.slice(); + } + return source; } - if (start < 0 || start >= this.length) throw new RangeError('sourceStart out of bounds') - if (end < 0) throw new RangeError('sourceEnd out of bounds') - // Are we oob? - if (end > this.length) end = this.length - if (target.length - targetStart < end - start) { - end = target.length - targetStart + start + // eslint-disable-next-line consistent-return + function mergeDeepProperties(prop) { + if (!utils.isUndefined(config2[prop])) { + return getMergedValue(config1[prop], config2[prop]); + } else if (!utils.isUndefined(config1[prop])) { + return getMergedValue(undefined, config1[prop]); + } } - var len = end - start - var i - - if (this === target && start < targetStart && targetStart < end) { - // descending copy from end - for (i = len - 1; i >= 0; --i) { - target[i + targetStart] = this[i + start] - } - } else if (len < 1000 || !Buffer.TYPED_ARRAY_SUPPORT) { - // ascending copy from start - for (i = 0; i < len; ++i) { - target[i + targetStart] = this[i + start] + // eslint-disable-next-line consistent-return + function valueFromConfig2(prop) { + if (!utils.isUndefined(config2[prop])) { + return getMergedValue(undefined, config2[prop]); } - } else { - Uint8Array.prototype.set.call( - target, - this.subarray(start, start + len), - targetStart - ) } - return len -} - -// Usage: -// buffer.fill(number[, offset[, end]]) -// buffer.fill(buffer[, offset[, end]]) -// buffer.fill(string[, offset[, end]][, encoding]) -Buffer.prototype.fill = function fill (val, start, end, encoding) { - // Handle string cases: - if (typeof val === 'string') { - if (typeof start === 'string') { - encoding = start - start = 0 - end = this.length - } else if (typeof end === 'string') { - encoding = end - end = this.length - } - if (val.length === 1) { - var code = val.charCodeAt(0) - if (code < 256) { - val = code - } - } - if (encoding !== undefined && typeof encoding !== 'string') { - throw new TypeError('encoding must be a string') - } - if (typeof encoding === 'string' && !Buffer.isEncoding(encoding)) { - throw new TypeError('Unknown encoding: ' + encoding) + // eslint-disable-next-line consistent-return + function defaultToConfig2(prop) { + if (!utils.isUndefined(config2[prop])) { + return getMergedValue(undefined, config2[prop]); + } else if (!utils.isUndefined(config1[prop])) { + return getMergedValue(undefined, config1[prop]); } - } else if (typeof val === 'number') { - val = val & 255 } - // Invalid ranges are not set to a default, so can range check early. - if (start < 0 || this.length < start || this.length < end) { - throw new RangeError('Out of range index') - } + // eslint-disable-next-line consistent-return + function mergeDirectKeys(prop) { + if (prop in config2) { + return getMergedValue(config1[prop], config2[prop]); + } else if (prop in config1) { + return getMergedValue(undefined, config1[prop]); + } + } + + var mergeMap = { + 'url': valueFromConfig2, + 'method': valueFromConfig2, + 'data': valueFromConfig2, + 'baseURL': defaultToConfig2, + 'transformRequest': defaultToConfig2, + 'transformResponse': defaultToConfig2, + 'paramsSerializer': defaultToConfig2, + 'timeout': defaultToConfig2, + 'timeoutMessage': defaultToConfig2, + 'withCredentials': defaultToConfig2, + 'adapter': defaultToConfig2, + 'responseType': defaultToConfig2, + 'xsrfCookieName': defaultToConfig2, + 'xsrfHeaderName': defaultToConfig2, + 'onUploadProgress': defaultToConfig2, + 'onDownloadProgress': defaultToConfig2, + 'decompress': defaultToConfig2, + 'maxContentLength': defaultToConfig2, + 'maxBodyLength': defaultToConfig2, + 'transport': defaultToConfig2, + 'httpAgent': defaultToConfig2, + 'httpsAgent': defaultToConfig2, + 'cancelToken': defaultToConfig2, + 'socketPath': defaultToConfig2, + 'responseEncoding': defaultToConfig2, + 'validateStatus': mergeDirectKeys + }; + + utils.forEach(Object.keys(config1).concat(Object.keys(config2)), function computeConfigValue(prop) { + var merge = mergeMap[prop] || mergeDeepProperties; + var configValue = merge(prop); + (utils.isUndefined(configValue) && merge !== mergeDirectKeys) || (config[prop] = configValue); + }); - if (end <= start) { - return this - } + return config; +}; - start = start >>> 0 - end = end === undefined ? this.length : end >>> 0 - if (!val) val = 0 +/***/ }), - var i - if (typeof val === 'number') { - for (i = start; i < end; ++i) { - this[i] = val - } - } else { - var bytes = Buffer.isBuffer(val) - ? val - : utf8ToBytes(new Buffer(val, encoding).toString()) - var len = bytes.length - for (i = 0; i < end - start; ++i) { - this[i + start] = bytes[i % len] - } - } +/***/ "./node_modules/axios/lib/core/settle.js": +/*!***********************************************!*\ + !*** ./node_modules/axios/lib/core/settle.js ***! + \***********************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { - return this -} +"use strict"; -// HELPER FUNCTIONS -// ================ -var INVALID_BASE64_RE = /[^+\/0-9A-Za-z-_]/g +var createError = __webpack_require__(/*! ./createError */ "./node_modules/axios/lib/core/createError.js"); -function base64clean (str) { - // Node strips out invalid characters like \n and \t from the string, base64-js does not - str = stringtrim(str).replace(INVALID_BASE64_RE, '') - // Node converts strings with length < 2 to '' - if (str.length < 2) return '' - // Node allows for non-padded base64 strings (missing trailing ===), base64-js does not - while (str.length % 4 !== 0) { - str = str + '=' +/** + * Resolve or reject a Promise based on response status. + * + * @param {Function} resolve A function that resolves the promise. + * @param {Function} reject A function that rejects the promise. + * @param {object} response The response. + */ +module.exports = function settle(resolve, reject, response) { + var validateStatus = response.config.validateStatus; + if (!response.status || !validateStatus || validateStatus(response.status)) { + resolve(response); + } else { + reject(createError( + 'Request failed with status code ' + response.status, + response.config, + null, + response.request, + response + )); } - return str -} - -function stringtrim (str) { - if (str.trim) return str.trim() - return str.replace(/^\s+|\s+$/g, '') -} +}; -function toHex (n) { - if (n < 16) return '0' + n.toString(16) - return n.toString(16) -} -function utf8ToBytes (string, units) { - units = units || Infinity - var codePoint - var length = string.length - var leadSurrogate = null - var bytes = [] +/***/ }), - for (var i = 0; i < length; ++i) { - codePoint = string.charCodeAt(i) +/***/ "./node_modules/axios/lib/core/transformData.js": +/*!******************************************************!*\ + !*** ./node_modules/axios/lib/core/transformData.js ***! + \******************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { - // 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 - } +"use strict"; - // valid lead - leadSurrogate = codePoint - continue - } +var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js"); +var defaults = __webpack_require__(/*! ./../defaults */ "./node_modules/axios/lib/defaults.js"); - // 2 leads in a row - if (codePoint < 0xDC00) { - if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD) - leadSurrogate = codePoint - continue - } +/** + * Transform the data for a request or a response + * + * @param {Object|String} data The data to be transformed + * @param {Array} headers The headers for the request or response + * @param {Array|Function} fns A single function or Array of functions + * @returns {*} The resulting transformed data + */ +module.exports = function transformData(data, headers, fns) { + var context = this || defaults; + /*eslint no-param-reassign:0*/ + utils.forEach(fns, function transform(fn) { + data = fn.call(context, data, headers); + }); - // 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) - } + return data; +}; - 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 -} +/***/ "./node_modules/axios/lib/defaults.js": +/*!********************************************!*\ + !*** ./node_modules/axios/lib/defaults.js ***! + \********************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { -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 -} +"use strict"; +/* WEBPACK VAR INJECTION */(function(process) { -function utf16leToBytes (str, units) { - var c, hi, lo - var byteArray = [] - for (var i = 0; i < str.length; ++i) { - if ((units -= 2) < 0) break +var utils = __webpack_require__(/*! ./utils */ "./node_modules/axios/lib/utils.js"); +var normalizeHeaderName = __webpack_require__(/*! ./helpers/normalizeHeaderName */ "./node_modules/axios/lib/helpers/normalizeHeaderName.js"); +var enhanceError = __webpack_require__(/*! ./core/enhanceError */ "./node_modules/axios/lib/core/enhanceError.js"); - c = str.charCodeAt(i) - hi = c >> 8 - lo = c % 256 - byteArray.push(lo) - byteArray.push(hi) - } +var DEFAULT_CONTENT_TYPE = { + 'Content-Type': 'application/x-www-form-urlencoded' +}; - return byteArray +function setContentTypeIfUnset(headers, value) { + if (!utils.isUndefined(headers) && utils.isUndefined(headers['Content-Type'])) { + headers['Content-Type'] = value; + } } -function base64ToBytes (str) { - return base64.toByteArray(base64clean(str)) +function getDefaultAdapter() { + var adapter; + if (typeof XMLHttpRequest !== 'undefined') { + // For browsers use XHR adapter + adapter = __webpack_require__(/*! ./adapters/xhr */ "./node_modules/axios/lib/adapters/xhr.js"); + } else if (typeof process !== 'undefined' && Object.prototype.toString.call(process) === '[object process]') { + // For node use HTTP adapter + adapter = __webpack_require__(/*! ./adapters/http */ "./node_modules/axios/lib/adapters/xhr.js"); + } + return adapter; } -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] +function stringifySafely(rawValue, parser, encoder) { + if (utils.isString(rawValue)) { + try { + (parser || JSON.parse)(rawValue); + return utils.trim(rawValue); + } catch (e) { + if (e.name !== 'SyntaxError') { + throw e; + } + } } - return i -} -function isnan (val) { - return val !== val // eslint-disable-line no-self-compare + return (encoder || JSON.stringify)(rawValue); } -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ "./node_modules/webpack/buildin/global.js"))) +var defaults = { -/***/ }), + transitional: { + silentJSONParsing: true, + forcedJSONParsing: true, + clarifyTimeoutError: false + }, -/***/ "./node_modules/call-bind/callBound.js": -/*!*********************************************!*\ - !*** ./node_modules/call-bind/callBound.js ***! - \*********************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { + adapter: getDefaultAdapter(), -"use strict"; + transformRequest: [function transformRequest(data, headers) { + normalizeHeaderName(headers, 'Accept'); + normalizeHeaderName(headers, 'Content-Type'); + if (utils.isFormData(data) || + utils.isArrayBuffer(data) || + utils.isBuffer(data) || + utils.isStream(data) || + utils.isFile(data) || + utils.isBlob(data) + ) { + return data; + } + if (utils.isArrayBufferView(data)) { + return data.buffer; + } + if (utils.isURLSearchParams(data)) { + setContentTypeIfUnset(headers, 'application/x-www-form-urlencoded;charset=utf-8'); + return data.toString(); + } + if (utils.isObject(data) || (headers && headers['Content-Type'] === 'application/json')) { + setContentTypeIfUnset(headers, 'application/json'); + return stringifySafely(data); + } + return data; + }], -var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ "./node_modules/get-intrinsic/index.js"); + transformResponse: [function transformResponse(data) { + var transitional = this.transitional || defaults.transitional; + var silentJSONParsing = transitional && transitional.silentJSONParsing; + var forcedJSONParsing = transitional && transitional.forcedJSONParsing; + var strictJSONParsing = !silentJSONParsing && this.responseType === 'json'; -var callBind = __webpack_require__(/*! ./ */ "./node_modules/call-bind/index.js"); + if (strictJSONParsing || (forcedJSONParsing && utils.isString(data) && data.length)) { + try { + return JSON.parse(data); + } catch (e) { + if (strictJSONParsing) { + if (e.name === 'SyntaxError') { + throw enhanceError(e, this, 'E_JSON_PARSE'); + } + throw e; + } + } + } -var $indexOf = callBind(GetIntrinsic('String.prototype.indexOf')); + return data; + }], -module.exports = function callBoundIntrinsic(name, allowMissing) { - var intrinsic = GetIntrinsic(name, !!allowMissing); - if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) { - return callBind(intrinsic); - } - return intrinsic; -}; + /** + * A timeout in milliseconds to abort a request. If set to 0 (default) a + * timeout is not created. + */ + timeout: 0, + xsrfCookieName: 'XSRF-TOKEN', + xsrfHeaderName: 'X-XSRF-TOKEN', -/***/ }), + maxContentLength: -1, + maxBodyLength: -1, -/***/ "./node_modules/call-bind/index.js": -/*!*****************************************!*\ - !*** ./node_modules/call-bind/index.js ***! - \*****************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { + validateStatus: function validateStatus(status) { + return status >= 200 && status < 300; + }, -"use strict"; + headers: { + common: { + 'Accept': 'application/json, text/plain, */*' + } + } +}; +utils.forEach(['delete', 'get', 'head'], function forEachMethodNoData(method) { + defaults.headers[method] = {}; +}); -var bind = __webpack_require__(/*! function-bind */ "./node_modules/function-bind/index.js"); -var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ "./node_modules/get-intrinsic/index.js"); +utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) { + defaults.headers[method] = utils.merge(DEFAULT_CONTENT_TYPE); +}); -var $apply = GetIntrinsic('%Function.prototype.apply%'); -var $call = GetIntrinsic('%Function.prototype.call%'); -var $reflectApply = GetIntrinsic('%Reflect.apply%', true) || bind.call($call, $apply); +module.exports = defaults; -var $gOPD = GetIntrinsic('%Object.getOwnPropertyDescriptor%', true); -var $defineProperty = GetIntrinsic('%Object.defineProperty%', true); -var $max = GetIntrinsic('%Math.max%'); +/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../process/browser.js */ "./node_modules/process/browser.js"))) -if ($defineProperty) { - try { - $defineProperty({}, 'a', { value: 1 }); - } catch (e) { - // IE 8 has a broken defineProperty - $defineProperty = null; - } -} +/***/ }), -module.exports = function callBind(originalFunction) { - var func = $reflectApply(bind, $call, arguments); - if ($gOPD && $defineProperty) { - var desc = $gOPD(func, 'length'); - if (desc.configurable) { - // original length, plus the receiver, minus any additional arguments (after the receiver) - $defineProperty( - func, - 'length', - { value: 1 + $max(0, originalFunction.length - (arguments.length - 1)) } - ); - } - } - return func; -}; +/***/ "./node_modules/axios/lib/env/data.js": +/*!********************************************!*\ + !*** ./node_modules/axios/lib/env/data.js ***! + \********************************************/ +/*! no static exports found */ +/***/ (function(module, exports) { -var applyBind = function applyBind() { - return $reflectApply(bind, $apply, arguments); +module.exports = { + "version": "0.25.0" }; -if ($defineProperty) { - $defineProperty(module.exports, 'apply', { value: applyBind }); -} else { - module.exports.apply = applyBind; -} - - /***/ }), -/***/ "./node_modules/canonicalize/lib/canonicalize.js": -/*!*******************************************************!*\ - !*** ./node_modules/canonicalize/lib/canonicalize.js ***! - \*******************************************************/ +/***/ "./node_modules/axios/lib/helpers/bind.js": +/*!************************************************!*\ + !*** ./node_modules/axios/lib/helpers/bind.js ***! + \************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; -/* jshint esversion: 6 */ -/* jslint node: true */ - - -module.exports = function serialize (object) { - if (object === null || typeof object !== 'object' || object.toJSON != null) { - return JSON.stringify(object); - } - if (Array.isArray(object)) { - return '[' + object.reduce((t, cv, ci) => { - const comma = ci === 0 ? '' : ','; - const value = cv === undefined || typeof cv === 'symbol' ? null : cv; - return t + comma + serialize(value); - }, '') + ']'; - } - return '{' + Object.keys(object).sort().reduce((t, cv, ci) => { - if (object[cv] === undefined || - typeof object[cv] === 'symbol') { - return t; +module.exports = function bind(fn, thisArg) { + return function wrap() { + var args = new Array(arguments.length); + for (var i = 0; i < args.length; i++) { + args[i] = arguments[i]; } - const comma = t.length === 0 ? '' : ','; - return t + comma + serialize(cv) + ':' + serialize(object[cv]); - }, '') + '}'; + return fn.apply(thisArg, args); + }; }; /***/ }), -/***/ "./node_modules/core-util-is/lib/util.js": -/*!***********************************************!*\ - !*** ./node_modules/core-util-is/lib/util.js ***! - \***********************************************/ +/***/ "./node_modules/axios/lib/helpers/buildURL.js": +/*!****************************************************!*\ + !*** ./node_modules/axios/lib/helpers/buildURL.js ***! + \****************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { -/* WEBPACK VAR INJECTION */(function(Buffer) {// 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"; -// NOTE: These type checking functions intentionally don't use `instanceof` -// because it is fragile and can be easily faked with `Object.create()`. -function isArray(arg) { - if (Array.isArray) { - return Array.isArray(arg); - } - return objectToString(arg) === '[object Array]'; -} -exports.isArray = isArray; +var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js"); -function isBoolean(arg) { - return typeof arg === 'boolean'; +function encode(val) { + return encodeURIComponent(val). + replace(/%3A/gi, ':'). + replace(/%24/g, '$'). + replace(/%2C/gi, ','). + replace(/%20/g, '+'). + replace(/%5B/gi, '['). + replace(/%5D/gi, ']'); } -exports.isBoolean = isBoolean; -function isNull(arg) { - return arg === null; -} -exports.isNull = isNull; +/** + * Build a URL by appending params to the end + * + * @param {string} url The base of the url (e.g., http://www.google.com) + * @param {object} [params] The params to be appended + * @returns {string} The formatted url + */ +module.exports = function buildURL(url, params, paramsSerializer) { + /*eslint no-param-reassign:0*/ + if (!params) { + return url; + } -function isNullOrUndefined(arg) { - return arg == null; -} -exports.isNullOrUndefined = isNullOrUndefined; + var serializedParams; + if (paramsSerializer) { + serializedParams = paramsSerializer(params); + } else if (utils.isURLSearchParams(params)) { + serializedParams = params.toString(); + } else { + var parts = []; -function isNumber(arg) { - return typeof arg === 'number'; -} -exports.isNumber = isNumber; + utils.forEach(params, function serialize(val, key) { + if (val === null || typeof val === 'undefined') { + return; + } -function isString(arg) { - return typeof arg === 'string'; -} -exports.isString = isString; + if (utils.isArray(val)) { + key = key + '[]'; + } else { + val = [val]; + } -function isSymbol(arg) { - return typeof arg === 'symbol'; -} -exports.isSymbol = isSymbol; + utils.forEach(val, function parseValue(v) { + if (utils.isDate(v)) { + v = v.toISOString(); + } else if (utils.isObject(v)) { + v = JSON.stringify(v); + } + parts.push(encode(key) + '=' + encode(v)); + }); + }); -function isUndefined(arg) { - return arg === void 0; -} -exports.isUndefined = isUndefined; + serializedParams = parts.join('&'); + } -function isRegExp(re) { - return objectToString(re) === '[object RegExp]'; -} -exports.isRegExp = isRegExp; + if (serializedParams) { + var hashmarkIndex = url.indexOf('#'); + if (hashmarkIndex !== -1) { + url = url.slice(0, hashmarkIndex); + } -function isObject(arg) { - return typeof arg === 'object' && arg !== null; -} -exports.isObject = isObject; + url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams; + } -function isDate(d) { - return objectToString(d) === '[object Date]'; -} -exports.isDate = isDate; + return url; +}; -function isError(e) { - return (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; +/***/ "./node_modules/axios/lib/helpers/combineURLs.js": +/*!*******************************************************!*\ + !*** ./node_modules/axios/lib/helpers/combineURLs.js ***! + \*******************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { -exports.isBuffer = Buffer.isBuffer; +"use strict"; -function objectToString(o) { - return Object.prototype.toString.call(o); -} -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../buffer/index.js */ "./node_modules/buffer/index.js").Buffer)) +/** + * Creates a new URL by combining the specified URLs + * + * @param {string} baseURL The base URL + * @param {string} relativeURL The relative URL + * @returns {string} The combined URL + */ +module.exports = function combineURLs(baseURL, relativeURL) { + return relativeURL + ? baseURL.replace(/\/+$/, '') + '/' + relativeURL.replace(/^\/+/, '') + : baseURL; +}; + /***/ }), -/***/ "./node_modules/cross-fetch/dist/browser-polyfill.js": -/*!***********************************************************!*\ - !*** ./node_modules/cross-fetch/dist/browser-polyfill.js ***! - \***********************************************************/ +/***/ "./node_modules/axios/lib/helpers/cookies.js": +/*!***************************************************!*\ + !*** ./node_modules/axios/lib/helpers/cookies.js ***! + \***************************************************/ /*! no static exports found */ -/***/ (function(module, exports) { +/***/ (function(module, exports, __webpack_require__) { -(function(self) { +"use strict"; -var irrelevant = (function (exports) { - var support = { - searchParams: 'URLSearchParams' in self, - iterable: 'Symbol' in self && 'iterator' in Symbol, - blob: - 'FileReader' in self && - 'Blob' in self && - (function() { - try { - new Blob(); - return true - } catch (e) { - return false - } - })(), - formData: 'FormData' in self, - arrayBuffer: 'ArrayBuffer' in self - }; +var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js"); - function isDataView(obj) { - return obj && DataView.prototype.isPrototypeOf(obj) - } +module.exports = ( + utils.isStandardBrowserEnv() ? - if (support.arrayBuffer) { - var viewClasses = [ - '[object Int8Array]', - '[object Uint8Array]', - '[object Uint8ClampedArray]', - '[object Int16Array]', - '[object Uint16Array]', - '[object Int32Array]', - '[object Uint32Array]', - '[object Float32Array]', - '[object Float64Array]' - ]; + // Standard browser envs support document.cookie + (function standardBrowserEnv() { + return { + write: function write(name, value, expires, path, domain, secure) { + var cookie = []; + cookie.push(name + '=' + encodeURIComponent(value)); - var isArrayBufferView = - ArrayBuffer.isView || - function(obj) { - return obj && viewClasses.indexOf(Object.prototype.toString.call(obj)) > -1 - }; - } + if (utils.isNumber(expires)) { + cookie.push('expires=' + new Date(expires).toGMTString()); + } - function normalizeName(name) { - if (typeof name !== 'string') { - name = String(name); - } - if (/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(name)) { - throw new TypeError('Invalid character in header field name') - } - return name.toLowerCase() - } + if (utils.isString(path)) { + cookie.push('path=' + path); + } - function normalizeValue(value) { - if (typeof value !== 'string') { - value = String(value); - } - return value - } + if (utils.isString(domain)) { + cookie.push('domain=' + domain); + } - // Build a destructive iterator for the value list - function iteratorFor(items) { - var iterator = { - next: function() { - var value = items.shift(); - return {done: value === undefined, value: value} - } - }; + if (secure === true) { + cookie.push('secure'); + } - if (support.iterable) { - iterator[Symbol.iterator] = function() { - return iterator - }; - } + document.cookie = cookie.join('; '); + }, - return iterator - } + read: function read(name) { + var match = document.cookie.match(new RegExp('(^|;\\s*)(' + name + ')=([^;]*)')); + return (match ? decodeURIComponent(match[3]) : null); + }, - function Headers(headers) { - this.map = {}; + remove: function remove(name) { + this.write(name, '', Date.now() - 86400000); + } + }; + })() : - if (headers instanceof Headers) { - headers.forEach(function(value, name) { - this.append(name, value); - }, this); - } else if (Array.isArray(headers)) { - headers.forEach(function(header) { - this.append(header[0], header[1]); - }, this); - } else if (headers) { - Object.getOwnPropertyNames(headers).forEach(function(name) { - this.append(name, headers[name]); - }, this); - } - } + // Non standard browser env (web workers, react-native) lack needed support. + (function nonStandardBrowserEnv() { + return { + write: function write() {}, + read: function read() { return null; }, + remove: function remove() {} + }; + })() +); - Headers.prototype.append = function(name, value) { - name = normalizeName(name); - value = normalizeValue(value); - var oldValue = this.map[name]; - this.map[name] = oldValue ? oldValue + ', ' + value : value; - }; - Headers.prototype['delete'] = function(name) { - delete this.map[normalizeName(name)]; - }; +/***/ }), - Headers.prototype.get = function(name) { - name = normalizeName(name); - return this.has(name) ? this.map[name] : null - }; +/***/ "./node_modules/axios/lib/helpers/isAbsoluteURL.js": +/*!*********************************************************!*\ + !*** ./node_modules/axios/lib/helpers/isAbsoluteURL.js ***! + \*********************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { - Headers.prototype.has = function(name) { - return this.map.hasOwnProperty(normalizeName(name)) - }; +"use strict"; - Headers.prototype.set = function(name, value) { - this.map[normalizeName(name)] = normalizeValue(value); - }; - Headers.prototype.forEach = function(callback, thisArg) { - for (var name in this.map) { - if (this.map.hasOwnProperty(name)) { - callback.call(thisArg, this.map[name], name, this); - } - } - }; +/** + * Determines whether the specified URL is absolute + * + * @param {string} url The URL to test + * @returns {boolean} True if the specified URL is absolute, otherwise false + */ +module.exports = function isAbsoluteURL(url) { + // A URL is considered absolute if it begins with "://" or "//" (protocol-relative URL). + // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed + // by any combination of letters, digits, plus, period, or hyphen. + return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url); +}; - Headers.prototype.keys = function() { - var items = []; - this.forEach(function(value, name) { - items.push(name); - }); - return iteratorFor(items) - }; - Headers.prototype.values = function() { - var items = []; - this.forEach(function(value) { - items.push(value); - }); - return iteratorFor(items) - }; +/***/ }), - Headers.prototype.entries = function() { - var items = []; - this.forEach(function(value, name) { - items.push([name, value]); - }); - return iteratorFor(items) - }; +/***/ "./node_modules/axios/lib/helpers/isAxiosError.js": +/*!********************************************************!*\ + !*** ./node_modules/axios/lib/helpers/isAxiosError.js ***! + \********************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { - if (support.iterable) { - Headers.prototype[Symbol.iterator] = Headers.prototype.entries; - } +"use strict"; - function consumed(body) { - if (body.bodyUsed) { - return Promise.reject(new TypeError('Already read')) - } - body.bodyUsed = true; - } - function fileReaderReady(reader) { - return new Promise(function(resolve, reject) { - reader.onload = function() { - resolve(reader.result); - }; - reader.onerror = function() { - reject(reader.error); - }; - }) - } +var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js"); - function readBlobAsArrayBuffer(blob) { - var reader = new FileReader(); - var promise = fileReaderReady(reader); - reader.readAsArrayBuffer(blob); - return promise - } +/** + * Determines whether the payload is an error thrown by Axios + * + * @param {*} payload The value to test + * @returns {boolean} True if the payload is an error thrown by Axios, otherwise false + */ +module.exports = function isAxiosError(payload) { + return utils.isObject(payload) && (payload.isAxiosError === true); +}; - function readBlobAsText(blob) { - var reader = new FileReader(); - var promise = fileReaderReady(reader); - reader.readAsText(blob); - return promise - } - function readArrayBufferAsText(buf) { - var view = new Uint8Array(buf); - var chars = new Array(view.length); +/***/ }), - for (var i = 0; i < view.length; i++) { - chars[i] = String.fromCharCode(view[i]); - } - return chars.join('') - } +/***/ "./node_modules/axios/lib/helpers/isURLSameOrigin.js": +/*!***********************************************************!*\ + !*** ./node_modules/axios/lib/helpers/isURLSameOrigin.js ***! + \***********************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { - function bufferClone(buf) { - if (buf.slice) { - return buf.slice(0) - } else { - var view = new Uint8Array(buf.byteLength); - view.set(new Uint8Array(buf)); - return view.buffer - } - } +"use strict"; - function Body() { - this.bodyUsed = false; - this._initBody = function(body) { - this._bodyInit = body; - if (!body) { - this._bodyText = ''; - } else if (typeof body === 'string') { - this._bodyText = body; - } else if (support.blob && Blob.prototype.isPrototypeOf(body)) { - this._bodyBlob = body; - } else if (support.formData && FormData.prototype.isPrototypeOf(body)) { - this._bodyFormData = body; - } else if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body)) { - this._bodyText = body.toString(); - } else if (support.arrayBuffer && support.blob && isDataView(body)) { - this._bodyArrayBuffer = bufferClone(body.buffer); - // IE 10-11 can't handle a DataView body. - this._bodyInit = new Blob([this._bodyArrayBuffer]); - } else if (support.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(body) || isArrayBufferView(body))) { - this._bodyArrayBuffer = bufferClone(body); - } else { - this._bodyText = body = Object.prototype.toString.call(body); - } +var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js"); - if (!this.headers.get('content-type')) { - if (typeof body === 'string') { - this.headers.set('content-type', 'text/plain;charset=UTF-8'); - } else if (this._bodyBlob && this._bodyBlob.type) { - this.headers.set('content-type', this._bodyBlob.type); - } else if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body)) { - this.headers.set('content-type', 'application/x-www-form-urlencoded;charset=UTF-8'); - } - } - }; +module.exports = ( + utils.isStandardBrowserEnv() ? - if (support.blob) { - this.blob = function() { - var rejected = consumed(this); - if (rejected) { - return rejected - } + // Standard browser envs have full support of the APIs needed to test + // whether the request URL is of the same origin as current location. + (function standardBrowserEnv() { + var msie = /(msie|trident)/i.test(navigator.userAgent); + var urlParsingNode = document.createElement('a'); + var originURL; - if (this._bodyBlob) { - return Promise.resolve(this._bodyBlob) - } else if (this._bodyArrayBuffer) { - return Promise.resolve(new Blob([this._bodyArrayBuffer])) - } else if (this._bodyFormData) { - throw new Error('could not read FormData body as blob') - } else { - return Promise.resolve(new Blob([this._bodyText])) - } - }; + /** + * Parse a URL to discover it's components + * + * @param {String} url The URL to be parsed + * @returns {Object} + */ + function resolveURL(url) { + var href = url; - this.arrayBuffer = function() { - if (this._bodyArrayBuffer) { - return consumed(this) || Promise.resolve(this._bodyArrayBuffer) - } else { - return this.blob().then(readBlobAsArrayBuffer) + if (msie) { + // IE needs attribute set twice to normalize properties + urlParsingNode.setAttribute('href', href); + href = urlParsingNode.href; } - }; - } - this.text = function() { - var rejected = consumed(this); - if (rejected) { - return rejected - } + urlParsingNode.setAttribute('href', href); - if (this._bodyBlob) { - return readBlobAsText(this._bodyBlob) - } else if (this._bodyArrayBuffer) { - return Promise.resolve(readArrayBufferAsText(this._bodyArrayBuffer)) - } else if (this._bodyFormData) { - throw new Error('could not read FormData body as text') - } else { - return Promise.resolve(this._bodyText) + // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils + return { + href: urlParsingNode.href, + protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '', + host: urlParsingNode.host, + search: urlParsingNode.search ? urlParsingNode.search.replace(/^\?/, '') : '', + hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '', + hostname: urlParsingNode.hostname, + port: urlParsingNode.port, + pathname: (urlParsingNode.pathname.charAt(0) === '/') ? + urlParsingNode.pathname : + '/' + urlParsingNode.pathname + }; } - }; - if (support.formData) { - this.formData = function() { - return this.text().then(decode) + originURL = resolveURL(window.location.href); + + /** + * Determine if a URL shares the same origin as the current location + * + * @param {String} requestURL The URL to test + * @returns {boolean} True if URL shares the same origin, otherwise false + */ + return function isURLSameOrigin(requestURL) { + var parsed = (utils.isString(requestURL)) ? resolveURL(requestURL) : requestURL; + return (parsed.protocol === originURL.protocol && + parsed.host === originURL.host); }; - } + })() : - this.json = function() { - return this.text().then(JSON.parse) - }; + // Non standard browser envs (web workers, react-native) lack needed support. + (function nonStandardBrowserEnv() { + return function isURLSameOrigin() { + return true; + }; + })() +); - return this - } - // HTTP methods whose capitalization should be normalized - var methods = ['DELETE', 'GET', 'HEAD', 'OPTIONS', 'POST', 'PUT']; +/***/ }), - function normalizeMethod(method) { - var upcased = method.toUpperCase(); - return methods.indexOf(upcased) > -1 ? upcased : method - } +/***/ "./node_modules/axios/lib/helpers/normalizeHeaderName.js": +/*!***************************************************************!*\ + !*** ./node_modules/axios/lib/helpers/normalizeHeaderName.js ***! + \***************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { - function Request(input, options) { - options = options || {}; - var body = options.body; +"use strict"; - if (input instanceof Request) { - if (input.bodyUsed) { - throw new TypeError('Already read') - } - this.url = input.url; - this.credentials = input.credentials; - if (!options.headers) { - this.headers = new Headers(input.headers); - } - this.method = input.method; - this.mode = input.mode; - this.signal = input.signal; - if (!body && input._bodyInit != null) { - body = input._bodyInit; - input.bodyUsed = true; - } - } else { - this.url = String(input); - } - this.credentials = options.credentials || this.credentials || 'same-origin'; - if (options.headers || !this.headers) { - this.headers = new Headers(options.headers); - } - this.method = normalizeMethod(options.method || this.method || 'GET'); - this.mode = options.mode || this.mode || null; - this.signal = options.signal || this.signal; - this.referrer = null; +var utils = __webpack_require__(/*! ../utils */ "./node_modules/axios/lib/utils.js"); - if ((this.method === 'GET' || this.method === 'HEAD') && body) { - throw new TypeError('Body not allowed for GET or HEAD requests') +module.exports = function normalizeHeaderName(headers, normalizedName) { + utils.forEach(headers, function processHeader(value, name) { + if (name !== normalizedName && name.toUpperCase() === normalizedName.toUpperCase()) { + headers[normalizedName] = value; + delete headers[name]; } - this._initBody(body); - } + }); +}; - Request.prototype.clone = function() { - return new Request(this, {body: this._bodyInit}) - }; - function decode(body) { - var form = new FormData(); - body - .trim() - .split('&') - .forEach(function(bytes) { - if (bytes) { - var split = bytes.split('='); - var name = split.shift().replace(/\+/g, ' '); - var value = split.join('=').replace(/\+/g, ' '); - form.append(decodeURIComponent(name), decodeURIComponent(value)); - } - }); - return form - } +/***/ }), - function parseHeaders(rawHeaders) { - var headers = new Headers(); - // Replace instances of \r\n and \n followed by at least one space or horizontal tab with a space - // https://tools.ietf.org/html/rfc7230#section-3.2 - var preProcessedHeaders = rawHeaders.replace(/\r?\n[\t ]+/g, ' '); - preProcessedHeaders.split(/\r?\n/).forEach(function(line) { - var parts = line.split(':'); - var key = parts.shift().trim(); - if (key) { - var value = parts.join(':').trim(); - headers.append(key, value); - } - }); - return headers - } +/***/ "./node_modules/axios/lib/helpers/parseHeaders.js": +/*!********************************************************!*\ + !*** ./node_modules/axios/lib/helpers/parseHeaders.js ***! + \********************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { - Body.call(Request.prototype); +"use strict"; - function Response(bodyInit, options) { - if (!options) { - options = {}; - } - this.type = 'default'; - this.status = options.status === undefined ? 200 : options.status; - this.ok = this.status >= 200 && this.status < 300; - this.statusText = 'statusText' in options ? options.statusText : 'OK'; - this.headers = new Headers(options.headers); - this.url = options.url || ''; - this._initBody(bodyInit); - } +var utils = __webpack_require__(/*! ./../utils */ "./node_modules/axios/lib/utils.js"); - Body.call(Response.prototype); +// Headers whose duplicates are ignored by node +// c.f. https://nodejs.org/api/http.html#http_message_headers +var ignoreDuplicateOf = [ + 'age', 'authorization', 'content-length', 'content-type', 'etag', + 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since', + 'last-modified', 'location', 'max-forwards', 'proxy-authorization', + 'referer', 'retry-after', 'user-agent' +]; - Response.prototype.clone = function() { - return new Response(this._bodyInit, { - status: this.status, - statusText: this.statusText, - headers: new Headers(this.headers), - url: this.url - }) - }; - - Response.error = function() { - var response = new Response(null, {status: 0, statusText: ''}); - response.type = 'error'; - return response - }; - - var redirectStatuses = [301, 302, 303, 307, 308]; - - Response.redirect = function(url, status) { - if (redirectStatuses.indexOf(status) === -1) { - throw new RangeError('Invalid status code') - } - - return new Response(null, {status: status, headers: {location: url}}) - }; - - exports.DOMException = self.DOMException; - try { - new exports.DOMException(); - } catch (err) { - exports.DOMException = function(message, name) { - this.message = message; - this.name = name; - var error = Error(message); - this.stack = error.stack; - }; - exports.DOMException.prototype = Object.create(Error.prototype); - exports.DOMException.prototype.constructor = exports.DOMException; - } - - function fetch(input, init) { - return new Promise(function(resolve, reject) { - var request = new Request(input, init); - - if (request.signal && request.signal.aborted) { - return reject(new exports.DOMException('Aborted', 'AbortError')) - } - - var xhr = new XMLHttpRequest(); - - function abortXhr() { - xhr.abort(); - } - - xhr.onload = function() { - var options = { - status: xhr.status, - statusText: xhr.statusText, - headers: parseHeaders(xhr.getAllResponseHeaders() || '') - }; - options.url = 'responseURL' in xhr ? xhr.responseURL : options.headers.get('X-Request-URL'); - var body = 'response' in xhr ? xhr.response : xhr.responseText; - resolve(new Response(body, options)); - }; - - xhr.onerror = function() { - reject(new TypeError('Network request failed')); - }; - - xhr.ontimeout = function() { - reject(new TypeError('Network request failed')); - }; - - xhr.onabort = function() { - reject(new exports.DOMException('Aborted', 'AbortError')); - }; +/** + * Parse headers into an object + * + * ``` + * Date: Wed, 27 Aug 2014 08:58:49 GMT + * Content-Type: application/json + * Connection: keep-alive + * Transfer-Encoding: chunked + * ``` + * + * @param {String} headers Headers needing to be parsed + * @returns {Object} Headers parsed into an object + */ +module.exports = function parseHeaders(headers) { + var parsed = {}; + var key; + var val; + var i; - xhr.open(request.method, request.url, true); + if (!headers) { return parsed; } - if (request.credentials === 'include') { - xhr.withCredentials = true; - } else if (request.credentials === 'omit') { - xhr.withCredentials = false; - } + utils.forEach(headers.split('\n'), function parser(line) { + i = line.indexOf(':'); + key = utils.trim(line.substr(0, i)).toLowerCase(); + val = utils.trim(line.substr(i + 1)); - if ('responseType' in xhr && support.blob) { - xhr.responseType = 'blob'; + if (key) { + if (parsed[key] && ignoreDuplicateOf.indexOf(key) >= 0) { + return; } - - request.headers.forEach(function(value, name) { - xhr.setRequestHeader(name, value); - }); - - if (request.signal) { - request.signal.addEventListener('abort', abortXhr); - - xhr.onreadystatechange = function() { - // DONE (success or failure) - if (xhr.readyState === 4) { - request.signal.removeEventListener('abort', abortXhr); - } - }; + if (key === 'set-cookie') { + parsed[key] = (parsed[key] ? parsed[key] : []).concat([val]); + } else { + parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val; } + } + }); - xhr.send(typeof request._bodyInit === 'undefined' ? null : request._bodyInit); - }) - } - - fetch.polyfill = true; - - if (!self.fetch) { - self.fetch = fetch; - self.Headers = Headers; - self.Request = Request; - self.Response = Response; - } - - exports.Headers = Headers; - exports.Request = Request; - exports.Response = Response; - exports.fetch = fetch; - - Object.defineProperty(exports, '__esModule', { value: true }); - - return exports; - -}({})); -})(typeof self !== 'undefined' ? self : this); + return parsed; +}; /***/ }), -/***/ "./node_modules/cross-fetch/dist/browser-ponyfill.js": -/*!***********************************************************!*\ - !*** ./node_modules/cross-fetch/dist/browser-ponyfill.js ***! - \***********************************************************/ +/***/ "./node_modules/axios/lib/helpers/spread.js": +/*!**************************************************!*\ + !*** ./node_modules/axios/lib/helpers/spread.js ***! + \**************************************************/ /*! no static exports found */ -/***/ (function(module, exports) { - -var global = typeof self !== 'undefined' ? self : this; -var __self__ = (function () { -function F() { -this.fetch = false; -this.DOMException = global.DOMException -} -F.prototype = global; -return new F(); -})(); -(function(self) { - -var irrelevant = (function (exports) { - - var support = { - searchParams: 'URLSearchParams' in self, - iterable: 'Symbol' in self && 'iterator' in Symbol, - blob: - 'FileReader' in self && - 'Blob' in self && - (function() { - try { - new Blob(); - return true - } catch (e) { - return false - } - })(), - formData: 'FormData' in self, - arrayBuffer: 'ArrayBuffer' in self - }; - - function isDataView(obj) { - return obj && DataView.prototype.isPrototypeOf(obj) - } - - if (support.arrayBuffer) { - var viewClasses = [ - '[object Int8Array]', - '[object Uint8Array]', - '[object Uint8ClampedArray]', - '[object Int16Array]', - '[object Uint16Array]', - '[object Int32Array]', - '[object Uint32Array]', - '[object Float32Array]', - '[object Float64Array]' - ]; - - var isArrayBufferView = - ArrayBuffer.isView || - function(obj) { - return obj && viewClasses.indexOf(Object.prototype.toString.call(obj)) > -1 - }; - } - - function normalizeName(name) { - if (typeof name !== 'string') { - name = String(name); - } - if (/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(name)) { - throw new TypeError('Invalid character in header field name') - } - return name.toLowerCase() - } - - function normalizeValue(value) { - if (typeof value !== 'string') { - value = String(value); - } - return value - } - - // Build a destructive iterator for the value list - function iteratorFor(items) { - var iterator = { - next: function() { - var value = items.shift(); - return {done: value === undefined, value: value} - } - }; - - if (support.iterable) { - iterator[Symbol.iterator] = function() { - return iterator - }; - } - - return iterator - } +/***/ (function(module, exports, __webpack_require__) { - function Headers(headers) { - this.map = {}; +"use strict"; - if (headers instanceof Headers) { - headers.forEach(function(value, name) { - this.append(name, value); - }, this); - } else if (Array.isArray(headers)) { - headers.forEach(function(header) { - this.append(header[0], header[1]); - }, this); - } else if (headers) { - Object.getOwnPropertyNames(headers).forEach(function(name) { - this.append(name, headers[name]); - }, this); - } - } - Headers.prototype.append = function(name, value) { - name = normalizeName(name); - value = normalizeValue(value); - var oldValue = this.map[name]; - this.map[name] = oldValue ? oldValue + ', ' + value : value; +/** + * Syntactic sugar for invoking a function and expanding an array for arguments. + * + * Common use case would be to use `Function.prototype.apply`. + * + * ```js + * function f(x, y, z) {} + * var args = [1, 2, 3]; + * f.apply(null, args); + * ``` + * + * With `spread` this example can be re-written. + * + * ```js + * spread(function(x, y, z) {})([1, 2, 3]); + * ``` + * + * @param {Function} callback + * @returns {Function} + */ +module.exports = function spread(callback) { + return function wrap(arr) { + return callback.apply(null, arr); }; +}; - Headers.prototype['delete'] = function(name) { - delete this.map[normalizeName(name)]; - }; - Headers.prototype.get = function(name) { - name = normalizeName(name); - return this.has(name) ? this.map[name] : null - }; +/***/ }), - Headers.prototype.has = function(name) { - return this.map.hasOwnProperty(normalizeName(name)) - }; +/***/ "./node_modules/axios/lib/helpers/validator.js": +/*!*****************************************************!*\ + !*** ./node_modules/axios/lib/helpers/validator.js ***! + \*****************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { - Headers.prototype.set = function(name, value) { - this.map[normalizeName(name)] = normalizeValue(value); - }; +"use strict"; - Headers.prototype.forEach = function(callback, thisArg) { - for (var name in this.map) { - if (this.map.hasOwnProperty(name)) { - callback.call(thisArg, this.map[name], name, this); - } - } - }; - Headers.prototype.keys = function() { - var items = []; - this.forEach(function(value, name) { - items.push(name); - }); - return iteratorFor(items) - }; +var VERSION = __webpack_require__(/*! ../env/data */ "./node_modules/axios/lib/env/data.js").version; - Headers.prototype.values = function() { - var items = []; - this.forEach(function(value) { - items.push(value); - }); - return iteratorFor(items) - }; +var validators = {}; - Headers.prototype.entries = function() { - var items = []; - this.forEach(function(value, name) { - items.push([name, value]); - }); - return iteratorFor(items) +// eslint-disable-next-line func-names +['object', 'boolean', 'number', 'function', 'string', 'symbol'].forEach(function(type, i) { + validators[type] = function validator(thing) { + return typeof thing === type || 'a' + (i < 1 ? 'n ' : ' ') + type; }; +}); - if (support.iterable) { - Headers.prototype[Symbol.iterator] = Headers.prototype.entries; - } - - function consumed(body) { - if (body.bodyUsed) { - return Promise.reject(new TypeError('Already read')) - } - body.bodyUsed = true; - } - - function fileReaderReady(reader) { - return new Promise(function(resolve, reject) { - reader.onload = function() { - resolve(reader.result); - }; - reader.onerror = function() { - reject(reader.error); - }; - }) - } - - function readBlobAsArrayBuffer(blob) { - var reader = new FileReader(); - var promise = fileReaderReady(reader); - reader.readAsArrayBuffer(blob); - return promise - } - - function readBlobAsText(blob) { - var reader = new FileReader(); - var promise = fileReaderReady(reader); - reader.readAsText(blob); - return promise - } - - function readArrayBufferAsText(buf) { - var view = new Uint8Array(buf); - var chars = new Array(view.length); - - for (var i = 0; i < view.length; i++) { - chars[i] = String.fromCharCode(view[i]); - } - return chars.join('') - } - - function bufferClone(buf) { - if (buf.slice) { - return buf.slice(0) - } else { - var view = new Uint8Array(buf.byteLength); - view.set(new Uint8Array(buf)); - return view.buffer - } - } - - function Body() { - this.bodyUsed = false; - - this._initBody = function(body) { - this._bodyInit = body; - if (!body) { - this._bodyText = ''; - } else if (typeof body === 'string') { - this._bodyText = body; - } else if (support.blob && Blob.prototype.isPrototypeOf(body)) { - this._bodyBlob = body; - } else if (support.formData && FormData.prototype.isPrototypeOf(body)) { - this._bodyFormData = body; - } else if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body)) { - this._bodyText = body.toString(); - } else if (support.arrayBuffer && support.blob && isDataView(body)) { - this._bodyArrayBuffer = bufferClone(body.buffer); - // IE 10-11 can't handle a DataView body. - this._bodyInit = new Blob([this._bodyArrayBuffer]); - } else if (support.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(body) || isArrayBufferView(body))) { - this._bodyArrayBuffer = bufferClone(body); - } else { - this._bodyText = body = Object.prototype.toString.call(body); - } - - if (!this.headers.get('content-type')) { - if (typeof body === 'string') { - this.headers.set('content-type', 'text/plain;charset=UTF-8'); - } else if (this._bodyBlob && this._bodyBlob.type) { - this.headers.set('content-type', this._bodyBlob.type); - } else if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body)) { - this.headers.set('content-type', 'application/x-www-form-urlencoded;charset=UTF-8'); - } - } - }; - - if (support.blob) { - this.blob = function() { - var rejected = consumed(this); - if (rejected) { - return rejected - } - - if (this._bodyBlob) { - return Promise.resolve(this._bodyBlob) - } else if (this._bodyArrayBuffer) { - return Promise.resolve(new Blob([this._bodyArrayBuffer])) - } else if (this._bodyFormData) { - throw new Error('could not read FormData body as blob') - } else { - return Promise.resolve(new Blob([this._bodyText])) - } - }; - - this.arrayBuffer = function() { - if (this._bodyArrayBuffer) { - return consumed(this) || Promise.resolve(this._bodyArrayBuffer) - } else { - return this.blob().then(readBlobAsArrayBuffer) - } - }; - } - - this.text = function() { - var rejected = consumed(this); - if (rejected) { - return rejected - } - - if (this._bodyBlob) { - return readBlobAsText(this._bodyBlob) - } else if (this._bodyArrayBuffer) { - return Promise.resolve(readArrayBufferAsText(this._bodyArrayBuffer)) - } else if (this._bodyFormData) { - throw new Error('could not read FormData body as text') - } else { - return Promise.resolve(this._bodyText) - } - }; - - if (support.formData) { - this.formData = function() { - return this.text().then(decode) - }; - } - - this.json = function() { - return this.text().then(JSON.parse) - }; - - return this - } - - // HTTP methods whose capitalization should be normalized - var methods = ['DELETE', 'GET', 'HEAD', 'OPTIONS', 'POST', 'PUT']; +var deprecatedWarnings = {}; - function normalizeMethod(method) { - var upcased = method.toUpperCase(); - return methods.indexOf(upcased) > -1 ? upcased : method +/** + * Transitional option validator + * @param {function|boolean?} validator - set to false if the transitional option has been removed + * @param {string?} version - deprecated version / removed since version + * @param {string?} message - some message with additional info + * @returns {function} + */ +validators.transitional = function transitional(validator, version, message) { + function formatMessage(opt, desc) { + return '[Axios v' + VERSION + '] Transitional option \'' + opt + '\'' + desc + (message ? '. ' + message : ''); } - function Request(input, options) { - options = options || {}; - var body = options.body; - - if (input instanceof Request) { - if (input.bodyUsed) { - throw new TypeError('Already read') - } - this.url = input.url; - this.credentials = input.credentials; - if (!options.headers) { - this.headers = new Headers(input.headers); - } - this.method = input.method; - this.mode = input.mode; - this.signal = input.signal; - if (!body && input._bodyInit != null) { - body = input._bodyInit; - input.bodyUsed = true; - } - } else { - this.url = String(input); - } - - this.credentials = options.credentials || this.credentials || 'same-origin'; - if (options.headers || !this.headers) { - this.headers = new Headers(options.headers); + // eslint-disable-next-line func-names + return function(value, opt, opts) { + if (validator === false) { + throw new Error(formatMessage(opt, ' has been removed' + (version ? ' in ' + version : ''))); } - this.method = normalizeMethod(options.method || this.method || 'GET'); - this.mode = options.mode || this.mode || null; - this.signal = options.signal || this.signal; - this.referrer = null; - if ((this.method === 'GET' || this.method === 'HEAD') && body) { - throw new TypeError('Body not allowed for GET or HEAD requests') + if (version && !deprecatedWarnings[opt]) { + deprecatedWarnings[opt] = true; + // eslint-disable-next-line no-console + console.warn( + formatMessage( + opt, + ' has been deprecated since v' + version + ' and will be removed in the near future' + ) + ); } - this._initBody(body); - } - Request.prototype.clone = function() { - return new Request(this, {body: this._bodyInit}) + return validator ? validator(value, opt, opts) : true; }; +}; - function decode(body) { - var form = new FormData(); - body - .trim() - .split('&') - .forEach(function(bytes) { - if (bytes) { - var split = bytes.split('='); - var name = split.shift().replace(/\+/g, ' '); - var value = split.join('=').replace(/\+/g, ' '); - form.append(decodeURIComponent(name), decodeURIComponent(value)); - } - }); - return form - } +/** + * Assert object's properties type + * @param {object} options + * @param {object} schema + * @param {boolean?} allowUnknown + */ - function parseHeaders(rawHeaders) { - var headers = new Headers(); - // Replace instances of \r\n and \n followed by at least one space or horizontal tab with a space - // https://tools.ietf.org/html/rfc7230#section-3.2 - var preProcessedHeaders = rawHeaders.replace(/\r?\n[\t ]+/g, ' '); - preProcessedHeaders.split(/\r?\n/).forEach(function(line) { - var parts = line.split(':'); - var key = parts.shift().trim(); - if (key) { - var value = parts.join(':').trim(); - headers.append(key, value); - } - }); - return headers +function assertOptions(options, schema, allowUnknown) { + if (typeof options !== 'object') { + throw new TypeError('options must be an object'); } - - Body.call(Request.prototype); - - function Response(bodyInit, options) { - if (!options) { - options = {}; + var keys = Object.keys(options); + var i = keys.length; + while (i-- > 0) { + var opt = keys[i]; + var validator = schema[opt]; + if (validator) { + var value = options[opt]; + var result = value === undefined || validator(value, opt, options); + if (result !== true) { + throw new TypeError('option ' + opt + ' must be ' + result); + } + continue; } - - this.type = 'default'; - this.status = options.status === undefined ? 200 : options.status; - this.ok = this.status >= 200 && this.status < 300; - this.statusText = 'statusText' in options ? options.statusText : 'OK'; - this.headers = new Headers(options.headers); - this.url = options.url || ''; - this._initBody(bodyInit); - } - - Body.call(Response.prototype); - - Response.prototype.clone = function() { - return new Response(this._bodyInit, { - status: this.status, - statusText: this.statusText, - headers: new Headers(this.headers), - url: this.url - }) - }; - - Response.error = function() { - var response = new Response(null, {status: 0, statusText: ''}); - response.type = 'error'; - return response - }; - - var redirectStatuses = [301, 302, 303, 307, 308]; - - Response.redirect = function(url, status) { - if (redirectStatuses.indexOf(status) === -1) { - throw new RangeError('Invalid status code') + if (allowUnknown !== true) { + throw Error('Unknown option ' + opt); } - - return new Response(null, {status: status, headers: {location: url}}) - }; - - exports.DOMException = self.DOMException; - try { - new exports.DOMException(); - } catch (err) { - exports.DOMException = function(message, name) { - this.message = message; - this.name = name; - var error = Error(message); - this.stack = error.stack; - }; - exports.DOMException.prototype = Object.create(Error.prototype); - exports.DOMException.prototype.constructor = exports.DOMException; - } - - function fetch(input, init) { - return new Promise(function(resolve, reject) { - var request = new Request(input, init); - - if (request.signal && request.signal.aborted) { - return reject(new exports.DOMException('Aborted', 'AbortError')) - } - - var xhr = new XMLHttpRequest(); - - function abortXhr() { - xhr.abort(); - } - - xhr.onload = function() { - var options = { - status: xhr.status, - statusText: xhr.statusText, - headers: parseHeaders(xhr.getAllResponseHeaders() || '') - }; - options.url = 'responseURL' in xhr ? xhr.responseURL : options.headers.get('X-Request-URL'); - var body = 'response' in xhr ? xhr.response : xhr.responseText; - resolve(new Response(body, options)); - }; - - xhr.onerror = function() { - reject(new TypeError('Network request failed')); - }; - - xhr.ontimeout = function() { - reject(new TypeError('Network request failed')); - }; - - xhr.onabort = function() { - reject(new exports.DOMException('Aborted', 'AbortError')); - }; - - xhr.open(request.method, request.url, true); - - if (request.credentials === 'include') { - xhr.withCredentials = true; - } else if (request.credentials === 'omit') { - xhr.withCredentials = false; - } - - if ('responseType' in xhr && support.blob) { - xhr.responseType = 'blob'; - } - - request.headers.forEach(function(value, name) { - xhr.setRequestHeader(name, value); - }); - - if (request.signal) { - request.signal.addEventListener('abort', abortXhr); - - xhr.onreadystatechange = function() { - // DONE (success or failure) - if (xhr.readyState === 4) { - request.signal.removeEventListener('abort', abortXhr); - } - }; - } - - xhr.send(typeof request._bodyInit === 'undefined' ? null : request._bodyInit); - }) } +} - fetch.polyfill = true; +module.exports = { + assertOptions: assertOptions, + validators: validators +}; - if (!self.fetch) { - self.fetch = fetch; - self.Headers = Headers; - self.Request = Request; - self.Response = Response; - } - exports.Headers = Headers; - exports.Request = Request; - exports.Response = Response; - exports.fetch = fetch; +/***/ }), - Object.defineProperty(exports, '__esModule', { value: true }); +/***/ "./node_modules/axios/lib/utils.js": +/*!*****************************************!*\ + !*** ./node_modules/axios/lib/utils.js ***! + \*****************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { - return exports; +"use strict"; -}({})); -})(__self__); -__self__.fetch.ponyfill = true; -// Remove "polyfill" property added by whatwg-fetch -delete __self__.fetch.polyfill; -// Choose between native implementation (global) or custom implementation (__self__) -// var ctx = global.fetch ? global : __self__; -var ctx = __self__; // this line disable service worker support temporarily -exports = ctx.fetch // To enable: import fetch from 'cross-fetch' -exports.default = ctx.fetch // For TypeScript consumers without esModuleInterop. -exports.fetch = ctx.fetch // To enable: import {fetch} from 'cross-fetch' -exports.Headers = ctx.Headers -exports.Request = ctx.Request -exports.Response = ctx.Response -module.exports = exports +var bind = __webpack_require__(/*! ./helpers/bind */ "./node_modules/axios/lib/helpers/bind.js"); -/***/ }), +// utils is a library of generic helper functions non-specific to axios -/***/ "./node_modules/debug/src/browser.js": -/*!*******************************************!*\ - !*** ./node_modules/debug/src/browser.js ***! - \*******************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { +var toString = Object.prototype.toString; -/* WEBPACK VAR INJECTION */(function(process) {/** - * This is the web browser implementation of `debug()`. +/** + * Determine if a value is an Array * - * Expose `debug()` as the module. + * @param {Object} val The value to test + * @returns {boolean} True if value is an Array, otherwise false */ - -exports = module.exports = __webpack_require__(/*! ./debug */ "./node_modules/debug/src/debug.js"); -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(); +function isArray(val) { + return Array.isArray(val); +} /** - * Colors. + * Determine if a value is undefined + * + * @param {Object} val The value to test + * @returns {boolean} True if the value is undefined, otherwise false */ - -exports.colors = [ - 'lightseagreen', - 'forestgreen', - 'goldenrod', - 'dodgerblue', - 'darkorchid', - 'crimson' -]; +function isUndefined(val) { + return typeof val === 'undefined'; +} /** - * Currently only WebKit-based Web Inspectors, Firefox >= v31, - * and the Firebug extension (any Firefox version) are known - * to support "%c" CSS customizations. + * Determine if a value is a Buffer * - * TODO: add a `localStorage` variable to explicitly enable/disable colors + * @param {Object} val The value to test + * @returns {boolean} True if value is a Buffer, otherwise false */ +function isBuffer(val) { + return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor) + && typeof val.constructor.isBuffer === 'function' && val.constructor.isBuffer(val); +} -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+)/)); +/** + * Determine if a value is an ArrayBuffer + * + * @param {Object} val The value to test + * @returns {boolean} True if value is an ArrayBuffer, otherwise false + */ +function isArrayBuffer(val) { + return toString.call(val) === '[object ArrayBuffer]'; } /** - * Map %j to `JSON.stringify()`, since no Web Inspectors do that by default. + * Determine if a value is a FormData + * + * @param {Object} val The value to test + * @returns {boolean} True if value is an FormData, otherwise false */ +function isFormData(val) { + return toString.call(val) === '[object FormData]'; +} -exports.formatters.j = function(v) { - try { - return JSON.stringify(v); - } catch (err) { - return '[UnexpectedJSONParseError]: ' + err.message; +/** + * Determine if a value is a view on an ArrayBuffer + * + * @param {Object} val The value to test + * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false + */ +function isArrayBufferView(val) { + var result; + if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) { + result = ArrayBuffer.isView(val); + } else { + result = (val) && (val.buffer) && (isArrayBuffer(val.buffer)); } -}; - + return result; +} /** - * Colorize log arguments if enabled. + * Determine if a value is a String * - * @api public + * @param {Object} val The value to test + * @returns {boolean} True if value is a String, otherwise false */ - -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); +function isString(val) { + return typeof val === 'string'; } /** - * Invokes `console.log()` when available. - * No-op when `console.log` is not a "function". + * Determine if a value is a Number * - * @api public + * @param {Object} val The value to test + * @returns {boolean} True if value is a Number, otherwise false */ - -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); +function isNumber(val) { + return typeof val === 'number'; } /** - * Save `namespaces`. + * Determine if a value is an Object * - * @param {String} namespaces - * @api private + * @param {Object} val The value to test + * @returns {boolean} True if value is an Object, otherwise false */ - -function save(namespaces) { - try { - if (null == namespaces) { - exports.storage.removeItem('debug'); - } else { - exports.storage.debug = namespaces; - } - } catch(e) {} +function isObject(val) { + return val !== null && typeof val === 'object'; } /** - * Load `namespaces`. + * Determine if a value is a plain Object * - * @return {String} returns the previously persisted debug modes - * @api private + * @param {Object} val The value to test + * @return {boolean} True if value is a plain Object, otherwise false */ - -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; +function isPlainObject(val) { + if (toString.call(val) !== '[object Object]') { + return false; } - return r; + var prototype = Object.getPrototypeOf(val); + return prototype === null || prototype === Object.prototype; } /** - * Enable namespaces listed in `localStorage.debug` initially. + * Determine if a value is a Date + * + * @param {Object} val The value to test + * @returns {boolean} True if value is a Date, otherwise false */ - -exports.enable(load()); +function isDate(val) { + return toString.call(val) === '[object Date]'; +} /** - * Localstorage attempts to return the localstorage. - * - * This is necessary because safari throws - * when a user disables cookies/localstorage - * and you attempt to access it. + * Determine if a value is a File * - * @return {LocalStorage} - * @api private + * @param {Object} val The value to test + * @returns {boolean} True if value is a File, otherwise false */ - -function localstorage() { - try { - return window.localStorage; - } catch (e) {} +function isFile(val) { + return toString.call(val) === '[object File]'; } -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../process/browser.js */ "./node_modules/process/browser.js"))) - -/***/ }), - -/***/ "./node_modules/debug/src/debug.js": -/*!*****************************************!*\ - !*** ./node_modules/debug/src/debug.js ***! - \*****************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - - /** - * This is the common logic for both the Node.js and web browser - * implementations of `debug()`. + * Determine if a value is a Blob * - * Expose `debug()` as the module. + * @param {Object} val The value to test + * @returns {boolean} True if value is a Blob, otherwise false */ - -exports = module.exports = createDebug.debug = createDebug['default'] = createDebug; -exports.coerce = coerce; -exports.disable = disable; -exports.enable = enable; -exports.enabled = enabled; -exports.humanize = __webpack_require__(/*! ms */ "./node_modules/ms/index.js"); +function isBlob(val) { + return toString.call(val) === '[object Blob]'; +} /** - * The currently active debug mode names, and names to skip. + * Determine if a value is a Function + * + * @param {Object} val The value to test + * @returns {boolean} True if value is a Function, otherwise false */ - -exports.names = []; -exports.skips = []; +function isFunction(val) { + return toString.call(val) === '[object Function]'; +} /** - * Map of special "%n" handling functions, for the debug "format" argument. + * Determine if a value is a Stream * - * Valid key names are a single, lower or upper-case letter, i.e. "n" and "N". + * @param {Object} val The value to test + * @returns {boolean} True if value is a Stream, otherwise false */ - -exports.formatters = {}; +function isStream(val) { + return isObject(val) && isFunction(val.pipe); +} /** - * Previous log timestamp. + * Determine if a value is a URLSearchParams object + * + * @param {Object} val The value to test + * @returns {boolean} True if value is a URLSearchParams object, otherwise false */ - -var prevTime; +function isURLSearchParams(val) { + return toString.call(val) === '[object URLSearchParams]'; +} /** - * Select a color. - * @param {String} namespace - * @return {Number} - * @api private + * Trim excess whitespace off the beginning and end of a string + * + * @param {String} str The String to trim + * @returns {String} The String freed of excess whitespace */ +function trim(str) { + return str.trim ? str.trim() : str.replace(/^\s+|\s+$/g, ''); +} -function selectColor(namespace) { - var hash = 0, i; +/** + * Determine if we're running in a standard browser environment + * + * This allows axios to run in a web worker, and react-native. + * Both environments support XMLHttpRequest, but not fully standard globals. + * + * web workers: + * typeof window -> undefined + * typeof document -> undefined + * + * react-native: + * navigator.product -> 'ReactNative' + * nativescript + * navigator.product -> 'NativeScript' or 'NS' + */ +function isStandardBrowserEnv() { + if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' || + navigator.product === 'NativeScript' || + navigator.product === 'NS')) { + return false; + } + return ( + typeof window !== 'undefined' && + typeof document !== 'undefined' + ); +} - for (i in namespace) { - hash = ((hash << 5) - hash) + namespace.charCodeAt(i); - hash |= 0; // Convert to 32bit integer +/** + * Iterate over an Array or an Object invoking a function for each item. + * + * If `obj` is an Array callback will be called passing + * the value, index, and complete array for each item. + * + * If 'obj' is an Object callback will be called passing + * the value, key, and complete object for each property. + * + * @param {Object|Array} obj The object to iterate + * @param {Function} fn The callback to invoke for each item + */ +function forEach(obj, fn) { + // Don't bother if no value provided + if (obj === null || typeof obj === 'undefined') { + return; } - return exports.colors[Math.abs(hash) % exports.colors.length]; + // Force an array if not already something iterable + if (typeof obj !== 'object') { + /*eslint no-param-reassign:0*/ + obj = [obj]; + } + + if (isArray(obj)) { + // Iterate over array values + for (var i = 0, l = obj.length; i < l; i++) { + fn.call(null, obj[i], i, obj); + } + } else { + // Iterate over object keys + for (var key in obj) { + if (Object.prototype.hasOwnProperty.call(obj, key)) { + fn.call(null, obj[key], key, obj); + } + } + } } /** - * Create a debugger with the given `namespace`. + * Accepts varargs expecting each argument to be an object, then + * immutably merges the properties of each object and returns result. * - * @param {String} namespace - * @return {Function} - * @api public + * When multiple objects contain the same key the later object in + * the arguments list will take precedence. + * + * Example: + * + * ```js + * var result = merge({foo: 123}, {foo: 456}); + * console.log(result.foo); // outputs 456 + * ``` + * + * @param {Object} obj1 Object to merge + * @returns {Object} Result of all merge properties */ +function merge(/* obj1, obj2, obj3, ... */) { + var result = {}; + function assignValue(val, key) { + if (isPlainObject(result[key]) && isPlainObject(val)) { + result[key] = merge(result[key], val); + } else if (isPlainObject(val)) { + result[key] = merge({}, val); + } else if (isArray(val)) { + result[key] = val.slice(); + } else { + result[key] = val; + } + } -function createDebug(namespace) { + for (var i = 0, l = arguments.length; i < l; i++) { + forEach(arguments[i], assignValue); + } + return result; +} - function debug() { - // disabled? - if (!debug.enabled) return; +/** + * Extends object a by mutably adding to it the properties of object b. + * + * @param {Object} a The object to be extended + * @param {Object} b The object to copy properties from + * @param {Object} thisArg The object to bind function to + * @return {Object} The resulting value of object a + */ +function extend(a, b, thisArg) { + forEach(b, function assignValue(val, key) { + if (thisArg && typeof val === 'function') { + a[key] = bind(val, thisArg); + } else { + a[key] = val; + } + }); + return a; +} - var self = debug; +/** + * Remove byte order marker. This catches EF BB BF (the UTF-8 BOM) + * + * @param {string} content with BOM + * @return {string} content value without BOM + */ +function stripBOM(content) { + if (content.charCodeAt(0) === 0xFEFF) { + content = content.slice(1); + } + return content; +} - // set `diff` timestamp - var curr = +new Date(); - var ms = curr - (prevTime || curr); - self.diff = ms; - self.prev = prevTime; - self.curr = curr; - prevTime = curr; +module.exports = { + isArray: isArray, + isArrayBuffer: isArrayBuffer, + isBuffer: isBuffer, + isFormData: isFormData, + isArrayBufferView: isArrayBufferView, + isString: isString, + isNumber: isNumber, + isObject: isObject, + isPlainObject: isPlainObject, + isUndefined: isUndefined, + isDate: isDate, + isFile: isFile, + isBlob: isBlob, + isFunction: isFunction, + isStream: isStream, + isURLSearchParams: isURLSearchParams, + isStandardBrowserEnv: isStandardBrowserEnv, + forEach: forEach, + merge: merge, + extend: extend, + trim: trim, + stripBOM: stripBOM +}; - // 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'); - } +/***/ "./node_modules/base64-js/index.js": +/*!*****************************************!*\ + !*** ./node_modules/base64-js/index.js ***! + \*****************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { - // 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); +"use strict"; - // 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); +exports.byteLength = byteLength +exports.toByteArray = toByteArray +exports.fromByteArray = fromByteArray - var logFn = debug.log || exports.log || console.log.bind(console); - logFn.apply(self, args); +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') } - debug.namespace = namespace; - debug.enabled = exports.enabled(namespace); - debug.useColors = exports.useColors(); - debug.color = selectColor(namespace); + // 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 - // env-specific initialization logic for debug instances - if ('function' === typeof exports.init) { - exports.init(debug); + 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 } - return debug; + 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('') +} + + +/***/ }), + +/***/ "./node_modules/buffer/index.js": +/*!**************************************!*\ + !*** ./node_modules/buffer/index.js ***! + \**************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; +/* WEBPACK VAR INJECTION */(function(global) {/*! + * The buffer module from node.js, for the browser. + * + * @author Feross Aboukhadijeh + * @license MIT + */ +/* eslint-disable no-proto */ + + + +var base64 = __webpack_require__(/*! base64-js */ "./node_modules/base64-js/index.js") +var ieee754 = __webpack_require__(/*! ieee754 */ "./node_modules/ieee754/index.js") +var isArray = __webpack_require__(/*! isarray */ "./node_modules/isarray/index.js") + +exports.Buffer = Buffer +exports.SlowBuffer = SlowBuffer +exports.INSPECT_MAX_BYTES = 50 + /** - * Enables a debug mode by namespaces. This can include modes - * separated by a colon and wildcards. + * If `Buffer.TYPED_ARRAY_SUPPORT`: + * === true Use Uint8Array implementation (fastest) + * === false Use Object implementation (most compatible, even IE6) * - * @param {String} namespaces - * @api public + * Browsers that support typed arrays are IE 10+, Firefox 4+, Chrome 7+, Safari 5.1+, + * Opera 11.6+, iOS 4.2+. + * + * Due to various browser bugs, sometimes the Object implementation will be used even + * when the browser supports typed arrays. + * + * Note: + * + * - Firefox 4-29 lacks support for adding new properties to `Uint8Array` instances, + * See: https://bugzilla.mozilla.org/show_bug.cgi?id=695438. + * + * - Chrome 9-10 is missing the `TypedArray.prototype.subarray` function. + * + * - IE10 has a broken `TypedArray.prototype.subarray` function which returns arrays of + * incorrect length in some situations. + + * We detect these buggy browsers and set `Buffer.TYPED_ARRAY_SUPPORT` to `false` so they + * get the Object implementation, which is slower but behaves correctly. */ +Buffer.TYPED_ARRAY_SUPPORT = global.TYPED_ARRAY_SUPPORT !== undefined + ? global.TYPED_ARRAY_SUPPORT + : typedArraySupport() -function enable(namespaces) { - exports.save(namespaces); +/* + * Export kMaxLength after typed array support is determined. + */ +exports.kMaxLength = kMaxLength() - exports.names = []; - exports.skips = []; +function typedArraySupport () { + try { + var arr = new Uint8Array(1) + arr.__proto__ = {__proto__: Uint8Array.prototype, foo: function () { return 42 }} + return arr.foo() === 42 && // typed array instances can be augmented + typeof arr.subarray === 'function' && // chrome 9-10 lack `subarray` + arr.subarray(1, 1).byteLength === 0 // ie10 has broken `subarray` + } catch (e) { + return false + } +} - var split = (typeof namespaces === 'string' ? namespaces : '').split(/[\s,]+/); - var len = split.length; +function kMaxLength () { + return Buffer.TYPED_ARRAY_SUPPORT + ? 0x7fffffff + : 0x3fffffff +} - 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 + '$')); +function createBuffer (that, length) { + if (kMaxLength() < length) { + throw new RangeError('Invalid typed array length') + } + if (Buffer.TYPED_ARRAY_SUPPORT) { + // Return an augmented `Uint8Array` instance, for best performance + that = new Uint8Array(length) + that.__proto__ = Buffer.prototype + } else { + // Fallback: Return an object instance of the Buffer class + if (that === null) { + that = new Buffer(length) } + that.length = length } + + return that } /** - * Disable debug output. + * 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. * - * @api public + * The `Uint8Array` prototype remains unmodified. */ -function disable() { - exports.enable(''); +function Buffer (arg, encodingOrOffset, length) { + if (!Buffer.TYPED_ARRAY_SUPPORT && !(this instanceof Buffer)) { + return new Buffer(arg, encodingOrOffset, length) + } + + // Common case. + if (typeof arg === 'number') { + if (typeof encodingOrOffset === 'string') { + throw new Error( + 'If encoding is specified then the first argument must be a string' + ) + } + return allocUnsafe(this, arg) + } + return from(this, arg, encodingOrOffset, length) +} + +Buffer.poolSize = 8192 // not used by this implementation + +// TODO: Legacy, not needed anymore. Remove in next major version. +Buffer._augment = function (arr) { + arr.__proto__ = Buffer.prototype + return arr +} + +function from (that, value, encodingOrOffset, length) { + if (typeof value === 'number') { + throw new TypeError('"value" argument must not be a number') + } + + if (typeof ArrayBuffer !== 'undefined' && value instanceof ArrayBuffer) { + return fromArrayBuffer(that, value, encodingOrOffset, length) + } + + if (typeof value === 'string') { + return fromString(that, value, encodingOrOffset) + } + + return fromObject(that, value) } /** - * Returns true if the given mode name is enabled, false otherwise. - * - * @param {String} name - * @return {Boolean} - * @api public - */ + * Functionally equivalent to Buffer(arg, encoding) but throws a TypeError + * if value is a number. + * Buffer.from(str[, encoding]) + * Buffer.from(array) + * Buffer.from(buffer) + * Buffer.from(arrayBuffer[, byteOffset[, length]]) + **/ +Buffer.from = function (value, encodingOrOffset, length) { + return from(null, value, encodingOrOffset, length) +} -function enabled(name) { - var i, len; - for (i = 0, len = exports.skips.length; i < len; i++) { - if (exports.skips[i].test(name)) { - return false; - } +if (Buffer.TYPED_ARRAY_SUPPORT) { + Buffer.prototype.__proto__ = Uint8Array.prototype + Buffer.__proto__ = Uint8Array + if (typeof Symbol !== 'undefined' && Symbol.species && + Buffer[Symbol.species] === Buffer) { + // Fix subarray() in ES2016. See: https://github.com/feross/buffer/pull/97 + Object.defineProperty(Buffer, Symbol.species, { + value: null, + configurable: true + }) } - for (i = 0, len = exports.names.length; i < len; i++) { - if (exports.names[i].test(name)) { - return true; +} + +function assertSize (size) { + if (typeof size !== 'number') { + throw new TypeError('"size" argument must be a number') + } else if (size < 0) { + throw new RangeError('"size" argument must not be negative') + } +} + +function alloc (that, size, fill, encoding) { + assertSize(size) + if (size <= 0) { + return createBuffer(that, size) + } + if (fill !== undefined) { + // Only pay attention to encoding if it's a string. This + // prevents accidentally sending in a number that would + // be interpretted as a start offset. + return typeof encoding === 'string' + ? createBuffer(that, size).fill(fill, encoding) + : createBuffer(that, size).fill(fill) + } + return createBuffer(that, size) +} + +/** + * Creates a new filled Buffer instance. + * alloc(size[, fill[, encoding]]) + **/ +Buffer.alloc = function (size, fill, encoding) { + return alloc(null, size, fill, encoding) +} + +function allocUnsafe (that, size) { + assertSize(size) + that = createBuffer(that, size < 0 ? 0 : checked(size) | 0) + if (!Buffer.TYPED_ARRAY_SUPPORT) { + for (var i = 0; i < size; ++i) { + that[i] = 0 } } - return false; + return that } /** - * Coerce `val`. - * - * @param {Mixed} val - * @return {Mixed} - * @api private + * Equivalent to Buffer(num), by default creates a non-zero-filled Buffer instance. + * */ +Buffer.allocUnsafe = function (size) { + return allocUnsafe(null, size) +} +/** + * Equivalent to SlowBuffer(num), by default creates a non-zero-filled Buffer instance. */ +Buffer.allocUnsafeSlow = function (size) { + return allocUnsafe(null, size) +} -function coerce(val) { - if (val instanceof Error) return val.stack || val.message; - return val; +function fromString (that, string, encoding) { + if (typeof encoding !== 'string' || encoding === '') { + encoding = 'utf8' + } + + if (!Buffer.isEncoding(encoding)) { + throw new TypeError('"encoding" must be a valid string encoding') + } + + var length = byteLength(string, encoding) | 0 + that = createBuffer(that, length) + + var actual = that.write(string, encoding) + + if (actual !== length) { + // Writing a hex string, for example, that contains invalid characters will + // cause everything after the first invalid character to be ignored. (e.g. + // 'abxxcd' will be treated as 'ab') + that = that.slice(0, actual) + } + + return that } +function fromArrayLike (that, array) { + var length = array.length < 0 ? 0 : checked(array.length) | 0 + that = createBuffer(that, length) + for (var i = 0; i < length; i += 1) { + that[i] = array[i] & 255 + } + return that +} -/***/ }), +function fromArrayBuffer (that, array, byteOffset, length) { + array.byteLength // this throws if `array` is not a valid ArrayBuffer -/***/ "./node_modules/decimal.js/decimal.js": -/*!********************************************!*\ - !*** ./node_modules/decimal.js/decimal.js ***! - \********************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { + if (byteOffset < 0 || array.byteLength < byteOffset) { + throw new RangeError('\'offset\' is out of bounds') + } -var __WEBPACK_AMD_DEFINE_RESULT__;;(function (globalScope) { - 'use strict'; - - - /* - * decimal.js v10.3.1 - * An arbitrary-precision Decimal type for JavaScript. - * https://github.com/MikeMcl/decimal.js - * Copyright (c) 2021 Michael Mclaughlin - * MIT Licence - */ - - - // ----------------------------------- EDITABLE DEFAULTS ------------------------------------ // - - - // The maximum exponent magnitude. - // The limit on the value of `toExpNeg`, `toExpPos`, `minE` and `maxE`. - var EXP_LIMIT = 9e15, // 0 to 9e15 - - // The limit on the value of `precision`, and on the value of the first argument to - // `toDecimalPlaces`, `toExponential`, `toFixed`, `toPrecision` and `toSignificantDigits`. - MAX_DIGITS = 1e9, // 0 to 1e9 - - // Base conversion alphabet. - NUMERALS = '0123456789abcdef', - - // The natural logarithm of 10 (1025 digits). - LN10 = '2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058', - - // Pi (1025 digits). - PI = '3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789', - - - // The initial configuration properties of the Decimal constructor. - DEFAULTS = { - - // These values must be integers within the stated ranges (inclusive). - // Most of these values can be changed at run-time using the `Decimal.config` method. - - // The maximum number of significant digits of the result of a calculation or base conversion. - // E.g. `Decimal.config({ precision: 20 });` - precision: 20, // 1 to MAX_DIGITS - - // The rounding mode used when rounding to `precision`. - // - // ROUND_UP 0 Away from zero. - // ROUND_DOWN 1 Towards zero. - // ROUND_CEIL 2 Towards +Infinity. - // ROUND_FLOOR 3 Towards -Infinity. - // ROUND_HALF_UP 4 Towards nearest neighbour. If equidistant, up. - // ROUND_HALF_DOWN 5 Towards nearest neighbour. If equidistant, down. - // ROUND_HALF_EVEN 6 Towards nearest neighbour. If equidistant, towards even neighbour. - // ROUND_HALF_CEIL 7 Towards nearest neighbour. If equidistant, towards +Infinity. - // ROUND_HALF_FLOOR 8 Towards nearest neighbour. If equidistant, towards -Infinity. - // - // E.g. - // `Decimal.rounding = 4;` - // `Decimal.rounding = Decimal.ROUND_HALF_UP;` - rounding: 4, // 0 to 8 - - // The modulo mode used when calculating the modulus: a mod n. - // The quotient (q = a / n) is calculated according to the corresponding rounding mode. - // The remainder (r) is calculated as: r = a - n * q. - // - // UP 0 The remainder is positive if the dividend is negative, else is negative. - // DOWN 1 The remainder has the same sign as the dividend (JavaScript %). - // FLOOR 3 The remainder has the same sign as the divisor (Python %). - // HALF_EVEN 6 The IEEE 754 remainder function. - // EUCLID 9 Euclidian division. q = sign(n) * floor(a / abs(n)). Always positive. - // - // Truncated division (1), floored division (3), the IEEE 754 remainder (6), and Euclidian - // division (9) are commonly used for the modulus operation. The other rounding modes can also - // be used, but they may not give useful results. - modulo: 1, // 0 to 9 - - // The exponent value at and beneath which `toString` returns exponential notation. - // JavaScript numbers: -7 - toExpNeg: -7, // 0 to -EXP_LIMIT - - // The exponent value at and above which `toString` returns exponential notation. - // JavaScript numbers: 21 - toExpPos: 21, // 0 to EXP_LIMIT - - // The minimum exponent value, beneath which underflow to zero occurs. - // JavaScript numbers: -324 (5e-324) - minE: -EXP_LIMIT, // -1 to -EXP_LIMIT - - // The maximum exponent value, above which overflow to Infinity occurs. - // JavaScript numbers: 308 (1.7976931348623157e+308) - maxE: EXP_LIMIT, // 1 to EXP_LIMIT - - // Whether to use cryptographically-secure random number generation, if available. - crypto: false // true/false - }, - - - // ----------------------------------- END OF EDITABLE DEFAULTS ------------------------------- // - - - Decimal, inexact, noConflict, quadrant, - external = true, - - decimalError = '[DecimalError] ', - invalidArgument = decimalError + 'Invalid argument: ', - precisionLimitExceeded = decimalError + 'Precision limit exceeded', - cryptoUnavailable = decimalError + 'crypto unavailable', - tag = '[object Decimal]', - - mathfloor = Math.floor, - mathpow = Math.pow, - - isBinary = /^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i, - isHex = /^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i, - isOctal = /^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i, - isDecimal = /^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i, - - BASE = 1e7, - LOG_BASE = 7, - MAX_SAFE_INTEGER = 9007199254740991, - - LN10_PRECISION = LN10.length - 1, - PI_PRECISION = PI.length - 1, - - // Decimal.prototype object - P = { toStringTag: tag }; - - - // Decimal prototype methods - - - /* - * absoluteValue abs - * ceil - * clampedTo clamp - * comparedTo cmp - * cosine cos - * cubeRoot cbrt - * decimalPlaces dp - * dividedBy div - * dividedToIntegerBy divToInt - * equals eq - * floor - * greaterThan gt - * greaterThanOrEqualTo gte - * hyperbolicCosine cosh - * hyperbolicSine sinh - * hyperbolicTangent tanh - * inverseCosine acos - * inverseHyperbolicCosine acosh - * inverseHyperbolicSine asinh - * inverseHyperbolicTangent atanh - * inverseSine asin - * inverseTangent atan - * isFinite - * isInteger isInt - * isNaN - * isNegative isNeg - * isPositive isPos - * isZero - * lessThan lt - * lessThanOrEqualTo lte - * logarithm log - * [maximum] [max] - * [minimum] [min] - * minus sub - * modulo mod - * naturalExponential exp - * naturalLogarithm ln - * negated neg - * plus add - * precision sd - * round - * sine sin - * squareRoot sqrt - * tangent tan - * times mul - * toBinary - * toDecimalPlaces toDP - * toExponential - * toFixed - * toFraction - * toHexadecimal toHex - * toNearest - * toNumber - * toOctal - * toPower pow - * toPrecision - * toSignificantDigits toSD - * toString - * truncated trunc - * valueOf toJSON - */ - - - /* - * Return a new Decimal whose value is the absolute value of this Decimal. - * - */ - P.absoluteValue = P.abs = function () { - var x = new this.constructor(this); - if (x.s < 0) x.s = 1; - return finalise(x); - }; - - - /* - * Return a new Decimal whose value is the value of this Decimal rounded to a whole number in the - * direction of positive Infinity. - * - */ - P.ceil = function () { - return finalise(new this.constructor(this), this.e + 1, 2); - }; - - - /* - * Return a new Decimal whose value is the value of this Decimal clamped to the range - * delineated by `min` and `max`. - * - * min {number|string|Decimal} - * max {number|string|Decimal} - * - */ - P.clampedTo = P.clamp = function (min, max) { - var k, - x = this, - Ctor = x.constructor; - min = new Ctor(min); - max = new Ctor(max); - if (!min.s || !max.s) return new Ctor(NaN); - if (min.gt(max)) throw Error(invalidArgument + max); - k = x.cmp(min); - return k < 0 ? min : x.cmp(max) > 0 ? max : new Ctor(x); - }; - - - /* - * Return - * 1 if the value of this Decimal is greater than the value of `y`, - * -1 if the value of this Decimal is less than the value of `y`, - * 0 if they have the same value, - * NaN if the value of either Decimal is NaN. - * - */ - P.comparedTo = P.cmp = function (y) { - var i, j, xdL, ydL, - x = this, - xd = x.d, - yd = (y = new x.constructor(y)).d, - xs = x.s, - ys = y.s; - - // Either NaN or ±Infinity? - if (!xd || !yd) { - return !xs || !ys ? NaN : xs !== ys ? xs : xd === yd ? 0 : !xd ^ xs < 0 ? 1 : -1; - } - - // Either zero? - if (!xd[0] || !yd[0]) return xd[0] ? xs : yd[0] ? -ys : 0; - - // Signs differ? - if (xs !== ys) return xs; - - // Compare exponents. - if (x.e !== y.e) return x.e > y.e ^ xs < 0 ? 1 : -1; - - xdL = xd.length; - ydL = yd.length; - - // Compare digit by digit. - for (i = 0, j = xdL < ydL ? xdL : ydL; i < j; ++i) { - if (xd[i] !== yd[i]) return xd[i] > yd[i] ^ xs < 0 ? 1 : -1; - } - - // Compare lengths. - return xdL === ydL ? 0 : xdL > ydL ^ xs < 0 ? 1 : -1; - }; - - - /* - * Return a new Decimal whose value is the cosine of the value in radians of this Decimal. - * - * Domain: [-Infinity, Infinity] - * Range: [-1, 1] - * - * cos(0) = 1 - * cos(-0) = 1 - * cos(Infinity) = NaN - * cos(-Infinity) = NaN - * cos(NaN) = NaN - * - */ - P.cosine = P.cos = function () { - var pr, rm, - x = this, - Ctor = x.constructor; - - if (!x.d) return new Ctor(NaN); - - // cos(0) = cos(-0) = 1 - if (!x.d[0]) return new Ctor(1); - - pr = Ctor.precision; - rm = Ctor.rounding; - Ctor.precision = pr + Math.max(x.e, x.sd()) + LOG_BASE; - Ctor.rounding = 1; - - x = cosine(Ctor, toLessThanHalfPi(Ctor, x)); - - Ctor.precision = pr; - Ctor.rounding = rm; - - return finalise(quadrant == 2 || quadrant == 3 ? x.neg() : x, pr, rm, true); - }; - - - /* - * - * Return a new Decimal whose value is the cube root of the value of this Decimal, rounded to - * `precision` significant digits using rounding mode `rounding`. - * - * cbrt(0) = 0 - * cbrt(-0) = -0 - * cbrt(1) = 1 - * cbrt(-1) = -1 - * cbrt(N) = N - * cbrt(-I) = -I - * cbrt(I) = I - * - * Math.cbrt(x) = (x < 0 ? -Math.pow(-x, 1/3) : Math.pow(x, 1/3)) - * - */ - P.cubeRoot = P.cbrt = function () { - var e, m, n, r, rep, s, sd, t, t3, t3plusx, - x = this, - Ctor = x.constructor; - - if (!x.isFinite() || x.isZero()) return new Ctor(x); - external = false; - - // Initial estimate. - s = x.s * mathpow(x.s * x, 1 / 3); - - // Math.cbrt underflow/overflow? - // Pass x to Math.pow as integer, then adjust the exponent of the result. - if (!s || Math.abs(s) == 1 / 0) { - n = digitsToString(x.d); - e = x.e; - - // Adjust n exponent so it is a multiple of 3 away from x exponent. - if (s = (e - n.length + 1) % 3) n += (s == 1 || s == -2 ? '0' : '00'); - s = mathpow(n, 1 / 3); - - // Rarely, e may be one less than the result exponent value. - e = mathfloor((e + 1) / 3) - (e % 3 == (e < 0 ? -1 : 2)); - - if (s == 1 / 0) { - n = '5e' + e; - } else { - n = s.toExponential(); - n = n.slice(0, n.indexOf('e') + 1) + e; - } - - r = new Ctor(n); - r.s = x.s; - } else { - r = new Ctor(s.toString()); - } - - sd = (e = Ctor.precision) + 3; - - // Halley's method. - // TODO? Compare Newton's method. - for (;;) { - t = r; - t3 = t.times(t).times(t); - t3plusx = t3.plus(x); - r = divide(t3plusx.plus(x).times(t), t3plusx.plus(t3), sd + 2, 1); - - // TODO? Replace with for-loop and checkRoundingDigits. - if (digitsToString(t.d).slice(0, sd) === (n = digitsToString(r.d)).slice(0, sd)) { - n = n.slice(sd - 3, sd + 1); - - // The 4th rounding digit may be in error by -1 so if the 4 rounding digits are 9999 or 4999 - // , i.e. approaching a rounding boundary, continue the iteration. - if (n == '9999' || !rep && n == '4999') { - - // On the first iteration only, check to see if rounding up gives the exact result as the - // nines may infinitely repeat. - if (!rep) { - finalise(t, e + 1, 0); - - if (t.times(t).times(t).eq(x)) { - r = t; - break; - } - } - - sd += 4; - rep = 1; - } else { - - // If the rounding digits are null, 0{0,4} or 50{0,3}, check for an exact result. - // If not, then there are further digits and m will be truthy. - if (!+n || !+n.slice(1) && n.charAt(0) == '5') { - - // Truncate to the first rounding digit. - finalise(r, e + 1, 1); - m = !r.times(r).times(r).eq(x); - } - - break; - } - } - } - - external = true; - - return finalise(r, e, Ctor.rounding, m); - }; - - - /* - * Return the number of decimal places of the value of this Decimal. - * - */ - P.decimalPlaces = P.dp = function () { - var w, - d = this.d, - n = NaN; - - if (d) { - w = d.length - 1; - n = (w - mathfloor(this.e / LOG_BASE)) * LOG_BASE; - - // Subtract the number of trailing zeros of the last word. - w = d[w]; - if (w) for (; w % 10 == 0; w /= 10) n--; - if (n < 0) n = 0; - } - - return n; - }; - - - /* - * n / 0 = I - * n / N = N - * n / I = 0 - * 0 / n = 0 - * 0 / 0 = N - * 0 / N = N - * 0 / I = 0 - * N / n = N - * N / 0 = N - * N / N = N - * N / I = N - * I / n = I - * I / 0 = I - * I / N = N - * I / I = N - * - * Return a new Decimal whose value is the value of this Decimal divided by `y`, rounded to - * `precision` significant digits using rounding mode `rounding`. - * - */ - P.dividedBy = P.div = function (y) { - return divide(this, new this.constructor(y)); - }; - - - /* - * Return a new Decimal whose value is the integer part of dividing the value of this Decimal - * by the value of `y`, rounded to `precision` significant digits using rounding mode `rounding`. - * - */ - P.dividedToIntegerBy = P.divToInt = function (y) { - var x = this, - Ctor = x.constructor; - return finalise(divide(x, new Ctor(y), 0, 1, 1), Ctor.precision, Ctor.rounding); - }; - - - /* - * Return true if the value of this Decimal is equal to the value of `y`, otherwise return false. - * - */ - P.equals = P.eq = function (y) { - return this.cmp(y) === 0; - }; - - - /* - * Return a new Decimal whose value is the value of this Decimal rounded to a whole number in the - * direction of negative Infinity. - * - */ - P.floor = function () { - return finalise(new this.constructor(this), this.e + 1, 3); - }; - - - /* - * Return true if the value of this Decimal is greater than the value of `y`, otherwise return - * false. - * - */ - P.greaterThan = P.gt = function (y) { - return this.cmp(y) > 0; - }; - - - /* - * Return true if the value of this Decimal is greater than or equal to the value of `y`, - * otherwise return false. - * - */ - P.greaterThanOrEqualTo = P.gte = function (y) { - var k = this.cmp(y); - return k == 1 || k === 0; - }; - - - /* - * Return a new Decimal whose value is the hyperbolic cosine of the value in radians of this - * Decimal. - * - * Domain: [-Infinity, Infinity] - * Range: [1, Infinity] - * - * cosh(x) = 1 + x^2/2! + x^4/4! + x^6/6! + ... - * - * cosh(0) = 1 - * cosh(-0) = 1 - * cosh(Infinity) = Infinity - * cosh(-Infinity) = Infinity - * cosh(NaN) = NaN - * - * x time taken (ms) result - * 1000 9 9.8503555700852349694e+433 - * 10000 25 4.4034091128314607936e+4342 - * 100000 171 1.4033316802130615897e+43429 - * 1000000 3817 1.5166076984010437725e+434294 - * 10000000 abandoned after 2 minute wait - * - * TODO? Compare performance of cosh(x) = 0.5 * (exp(x) + exp(-x)) - * - */ - P.hyperbolicCosine = P.cosh = function () { - var k, n, pr, rm, len, - x = this, - Ctor = x.constructor, - one = new Ctor(1); - - if (!x.isFinite()) return new Ctor(x.s ? 1 / 0 : NaN); - if (x.isZero()) return one; - - pr = Ctor.precision; - rm = Ctor.rounding; - Ctor.precision = pr + Math.max(x.e, x.sd()) + 4; - Ctor.rounding = 1; - len = x.d.length; - - // Argument reduction: cos(4x) = 1 - 8cos^2(x) + 8cos^4(x) + 1 - // i.e. cos(x) = 1 - cos^2(x/4)(8 - 8cos^2(x/4)) - - // Estimate the optimum number of times to use the argument reduction. - // TODO? Estimation reused from cosine() and may not be optimal here. - if (len < 32) { - k = Math.ceil(len / 3); - n = (1 / tinyPow(4, k)).toString(); - } else { - k = 16; - n = '2.3283064365386962890625e-10'; - } - - x = taylorSeries(Ctor, 1, x.times(n), new Ctor(1), true); - - // Reverse argument reduction - var cosh2_x, - i = k, - d8 = new Ctor(8); - for (; i--;) { - cosh2_x = x.times(x); - x = one.minus(cosh2_x.times(d8.minus(cosh2_x.times(d8)))); - } - - return finalise(x, Ctor.precision = pr, Ctor.rounding = rm, true); - }; - - - /* - * Return a new Decimal whose value is the hyperbolic sine of the value in radians of this - * Decimal. - * - * Domain: [-Infinity, Infinity] - * Range: [-Infinity, Infinity] - * - * sinh(x) = x + x^3/3! + x^5/5! + x^7/7! + ... - * - * sinh(0) = 0 - * sinh(-0) = -0 - * sinh(Infinity) = Infinity - * sinh(-Infinity) = -Infinity - * sinh(NaN) = NaN - * - * x time taken (ms) - * 10 2 ms - * 100 5 ms - * 1000 14 ms - * 10000 82 ms - * 100000 886 ms 1.4033316802130615897e+43429 - * 200000 2613 ms - * 300000 5407 ms - * 400000 8824 ms - * 500000 13026 ms 8.7080643612718084129e+217146 - * 1000000 48543 ms - * - * TODO? Compare performance of sinh(x) = 0.5 * (exp(x) - exp(-x)) - * - */ - P.hyperbolicSine = P.sinh = function () { - var k, pr, rm, len, - x = this, - Ctor = x.constructor; - - if (!x.isFinite() || x.isZero()) return new Ctor(x); - - pr = Ctor.precision; - rm = Ctor.rounding; - Ctor.precision = pr + Math.max(x.e, x.sd()) + 4; - Ctor.rounding = 1; - len = x.d.length; - - if (len < 3) { - x = taylorSeries(Ctor, 2, x, x, true); - } else { - - // Alternative argument reduction: sinh(3x) = sinh(x)(3 + 4sinh^2(x)) - // i.e. sinh(x) = sinh(x/3)(3 + 4sinh^2(x/3)) - // 3 multiplications and 1 addition - - // Argument reduction: sinh(5x) = sinh(x)(5 + sinh^2(x)(20 + 16sinh^2(x))) - // i.e. sinh(x) = sinh(x/5)(5 + sinh^2(x/5)(20 + 16sinh^2(x/5))) - // 4 multiplications and 2 additions - - // Estimate the optimum number of times to use the argument reduction. - k = 1.4 * Math.sqrt(len); - k = k > 16 ? 16 : k | 0; - - x = x.times(1 / tinyPow(5, k)); - x = taylorSeries(Ctor, 2, x, x, true); - - // Reverse argument reduction - var sinh2_x, - d5 = new Ctor(5), - d16 = new Ctor(16), - d20 = new Ctor(20); - for (; k--;) { - sinh2_x = x.times(x); - x = x.times(d5.plus(sinh2_x.times(d16.times(sinh2_x).plus(d20)))); - } - } - - Ctor.precision = pr; - Ctor.rounding = rm; - - return finalise(x, pr, rm, true); - }; - - - /* - * Return a new Decimal whose value is the hyperbolic tangent of the value in radians of this - * Decimal. - * - * Domain: [-Infinity, Infinity] - * Range: [-1, 1] - * - * tanh(x) = sinh(x) / cosh(x) - * - * tanh(0) = 0 - * tanh(-0) = -0 - * tanh(Infinity) = 1 - * tanh(-Infinity) = -1 - * tanh(NaN) = NaN - * - */ - P.hyperbolicTangent = P.tanh = function () { - var pr, rm, - x = this, - Ctor = x.constructor; - - if (!x.isFinite()) return new Ctor(x.s); - if (x.isZero()) return new Ctor(x); - - pr = Ctor.precision; - rm = Ctor.rounding; - Ctor.precision = pr + 7; - Ctor.rounding = 1; - - return divide(x.sinh(), x.cosh(), Ctor.precision = pr, Ctor.rounding = rm); - }; - - - /* - * Return a new Decimal whose value is the arccosine (inverse cosine) in radians of the value of - * this Decimal. - * - * Domain: [-1, 1] - * Range: [0, pi] - * - * acos(x) = pi/2 - asin(x) - * - * acos(0) = pi/2 - * acos(-0) = pi/2 - * acos(1) = 0 - * acos(-1) = pi - * acos(1/2) = pi/3 - * acos(-1/2) = 2*pi/3 - * acos(|x| > 1) = NaN - * acos(NaN) = NaN - * - */ - P.inverseCosine = P.acos = function () { - var halfPi, - x = this, - Ctor = x.constructor, - k = x.abs().cmp(1), - pr = Ctor.precision, - rm = Ctor.rounding; - - if (k !== -1) { - return k === 0 - // |x| is 1 - ? x.isNeg() ? getPi(Ctor, pr, rm) : new Ctor(0) - // |x| > 1 or x is NaN - : new Ctor(NaN); - } - - if (x.isZero()) return getPi(Ctor, pr + 4, rm).times(0.5); - - // TODO? Special case acos(0.5) = pi/3 and acos(-0.5) = 2*pi/3 - - Ctor.precision = pr + 6; - Ctor.rounding = 1; - - x = x.asin(); - halfPi = getPi(Ctor, pr + 4, rm).times(0.5); - - Ctor.precision = pr; - Ctor.rounding = rm; - - return halfPi.minus(x); - }; - - - /* - * Return a new Decimal whose value is the inverse of the hyperbolic cosine in radians of the - * value of this Decimal. - * - * Domain: [1, Infinity] - * Range: [0, Infinity] - * - * acosh(x) = ln(x + sqrt(x^2 - 1)) - * - * acosh(x < 1) = NaN - * acosh(NaN) = NaN - * acosh(Infinity) = Infinity - * acosh(-Infinity) = NaN - * acosh(0) = NaN - * acosh(-0) = NaN - * acosh(1) = 0 - * acosh(-1) = NaN - * - */ - P.inverseHyperbolicCosine = P.acosh = function () { - var pr, rm, - x = this, - Ctor = x.constructor; - - if (x.lte(1)) return new Ctor(x.eq(1) ? 0 : NaN); - if (!x.isFinite()) return new Ctor(x); - - pr = Ctor.precision; - rm = Ctor.rounding; - Ctor.precision = pr + Math.max(Math.abs(x.e), x.sd()) + 4; - Ctor.rounding = 1; - external = false; - - x = x.times(x).minus(1).sqrt().plus(x); - - external = true; - Ctor.precision = pr; - Ctor.rounding = rm; - - return x.ln(); - }; - - - /* - * Return a new Decimal whose value is the inverse of the hyperbolic sine in radians of the value - * of this Decimal. - * - * Domain: [-Infinity, Infinity] - * Range: [-Infinity, Infinity] - * - * asinh(x) = ln(x + sqrt(x^2 + 1)) - * - * asinh(NaN) = NaN - * asinh(Infinity) = Infinity - * asinh(-Infinity) = -Infinity - * asinh(0) = 0 - * asinh(-0) = -0 - * - */ - P.inverseHyperbolicSine = P.asinh = function () { - var pr, rm, - x = this, - Ctor = x.constructor; - - if (!x.isFinite() || x.isZero()) return new Ctor(x); - - pr = Ctor.precision; - rm = Ctor.rounding; - Ctor.precision = pr + 2 * Math.max(Math.abs(x.e), x.sd()) + 6; - Ctor.rounding = 1; - external = false; - - x = x.times(x).plus(1).sqrt().plus(x); - - external = true; - Ctor.precision = pr; - Ctor.rounding = rm; - - return x.ln(); - }; - - - /* - * Return a new Decimal whose value is the inverse of the hyperbolic tangent in radians of the - * value of this Decimal. - * - * Domain: [-1, 1] - * Range: [-Infinity, Infinity] - * - * atanh(x) = 0.5 * ln((1 + x) / (1 - x)) - * - * atanh(|x| > 1) = NaN - * atanh(NaN) = NaN - * atanh(Infinity) = NaN - * atanh(-Infinity) = NaN - * atanh(0) = 0 - * atanh(-0) = -0 - * atanh(1) = Infinity - * atanh(-1) = -Infinity - * - */ - P.inverseHyperbolicTangent = P.atanh = function () { - var pr, rm, wpr, xsd, - x = this, - Ctor = x.constructor; - - if (!x.isFinite()) return new Ctor(NaN); - if (x.e >= 0) return new Ctor(x.abs().eq(1) ? x.s / 0 : x.isZero() ? x : NaN); - - pr = Ctor.precision; - rm = Ctor.rounding; - xsd = x.sd(); - - if (Math.max(xsd, pr) < 2 * -x.e - 1) return finalise(new Ctor(x), pr, rm, true); - - Ctor.precision = wpr = xsd - x.e; - - x = divide(x.plus(1), new Ctor(1).minus(x), wpr + pr, 1); - - Ctor.precision = pr + 4; - Ctor.rounding = 1; - - x = x.ln(); - - Ctor.precision = pr; - Ctor.rounding = rm; - - return x.times(0.5); - }; - - - /* - * Return a new Decimal whose value is the arcsine (inverse sine) in radians of the value of this - * Decimal. - * - * Domain: [-Infinity, Infinity] - * Range: [-pi/2, pi/2] - * - * asin(x) = 2*atan(x/(1 + sqrt(1 - x^2))) - * - * asin(0) = 0 - * asin(-0) = -0 - * asin(1/2) = pi/6 - * asin(-1/2) = -pi/6 - * asin(1) = pi/2 - * asin(-1) = -pi/2 - * asin(|x| > 1) = NaN - * asin(NaN) = NaN - * - * TODO? Compare performance of Taylor series. - * - */ - P.inverseSine = P.asin = function () { - var halfPi, k, - pr, rm, - x = this, - Ctor = x.constructor; - - if (x.isZero()) return new Ctor(x); - - k = x.abs().cmp(1); - pr = Ctor.precision; - rm = Ctor.rounding; - - if (k !== -1) { - - // |x| is 1 - if (k === 0) { - halfPi = getPi(Ctor, pr + 4, rm).times(0.5); - halfPi.s = x.s; - return halfPi; - } - - // |x| > 1 or x is NaN - return new Ctor(NaN); - } - - // TODO? Special case asin(1/2) = pi/6 and asin(-1/2) = -pi/6 - - Ctor.precision = pr + 6; - Ctor.rounding = 1; - - x = x.div(new Ctor(1).minus(x.times(x)).sqrt().plus(1)).atan(); - - Ctor.precision = pr; - Ctor.rounding = rm; - - return x.times(2); - }; - - - /* - * Return a new Decimal whose value is the arctangent (inverse tangent) in radians of the value - * of this Decimal. - * - * Domain: [-Infinity, Infinity] - * Range: [-pi/2, pi/2] - * - * atan(x) = x - x^3/3 + x^5/5 - x^7/7 + ... - * - * atan(0) = 0 - * atan(-0) = -0 - * atan(1) = pi/4 - * atan(-1) = -pi/4 - * atan(Infinity) = pi/2 - * atan(-Infinity) = -pi/2 - * atan(NaN) = NaN - * - */ - P.inverseTangent = P.atan = function () { - var i, j, k, n, px, t, r, wpr, x2, - x = this, - Ctor = x.constructor, - pr = Ctor.precision, - rm = Ctor.rounding; - - if (!x.isFinite()) { - if (!x.s) return new Ctor(NaN); - if (pr + 4 <= PI_PRECISION) { - r = getPi(Ctor, pr + 4, rm).times(0.5); - r.s = x.s; - return r; - } - } else if (x.isZero()) { - return new Ctor(x); - } else if (x.abs().eq(1) && pr + 4 <= PI_PRECISION) { - r = getPi(Ctor, pr + 4, rm).times(0.25); - r.s = x.s; - return r; - } - - Ctor.precision = wpr = pr + 10; - Ctor.rounding = 1; - - // TODO? if (x >= 1 && pr <= PI_PRECISION) atan(x) = halfPi * x.s - atan(1 / x); - - // Argument reduction - // Ensure |x| < 0.42 - // atan(x) = 2 * atan(x / (1 + sqrt(1 + x^2))) - - k = Math.min(28, wpr / LOG_BASE + 2 | 0); - - for (i = k; i; --i) x = x.div(x.times(x).plus(1).sqrt().plus(1)); - - external = false; - - j = Math.ceil(wpr / LOG_BASE); - n = 1; - x2 = x.times(x); - r = new Ctor(x); - px = x; - - // atan(x) = x - x^3/3 + x^5/5 - x^7/7 + ... - for (; i !== -1;) { - px = px.times(x2); - t = r.minus(px.div(n += 2)); - - px = px.times(x2); - r = t.plus(px.div(n += 2)); - - if (r.d[j] !== void 0) for (i = j; r.d[i] === t.d[i] && i--;); - } - - if (k) r = r.times(2 << (k - 1)); - - external = true; - - return finalise(r, Ctor.precision = pr, Ctor.rounding = rm, true); - }; - - - /* - * Return true if the value of this Decimal is a finite number, otherwise return false. - * - */ - P.isFinite = function () { - return !!this.d; - }; - - - /* - * Return true if the value of this Decimal is an integer, otherwise return false. - * - */ - P.isInteger = P.isInt = function () { - return !!this.d && mathfloor(this.e / LOG_BASE) > this.d.length - 2; - }; - - - /* - * Return true if the value of this Decimal is NaN, otherwise return false. - * - */ - P.isNaN = function () { - return !this.s; - }; - - - /* - * Return true if the value of this Decimal is negative, otherwise return false. - * - */ - P.isNegative = P.isNeg = function () { - return this.s < 0; - }; - - - /* - * Return true if the value of this Decimal is positive, otherwise return false. - * - */ - P.isPositive = P.isPos = function () { - return this.s > 0; - }; - - - /* - * Return true if the value of this Decimal is 0 or -0, otherwise return false. - * - */ - P.isZero = function () { - return !!this.d && this.d[0] === 0; - }; - - - /* - * Return true if the value of this Decimal is less than `y`, otherwise return false. - * - */ - P.lessThan = P.lt = function (y) { - return this.cmp(y) < 0; - }; - - - /* - * Return true if the value of this Decimal is less than or equal to `y`, otherwise return false. - * - */ - P.lessThanOrEqualTo = P.lte = function (y) { - return this.cmp(y) < 1; - }; - - - /* - * Return the logarithm of the value of this Decimal to the specified base, rounded to `precision` - * significant digits using rounding mode `rounding`. - * - * If no base is specified, return log[10](arg). - * - * log[base](arg) = ln(arg) / ln(base) - * - * The result will always be correctly rounded if the base of the log is 10, and 'almost always' - * otherwise: - * - * Depending on the rounding mode, the result may be incorrectly rounded if the first fifteen - * rounding digits are [49]99999999999999 or [50]00000000000000. In that case, the maximum error - * between the result and the correctly rounded result will be one ulp (unit in the last place). - * - * log[-b](a) = NaN - * log[0](a) = NaN - * log[1](a) = NaN - * log[NaN](a) = NaN - * log[Infinity](a) = NaN - * log[b](0) = -Infinity - * log[b](-0) = -Infinity - * log[b](-a) = NaN - * log[b](1) = 0 - * log[b](Infinity) = Infinity - * log[b](NaN) = NaN - * - * [base] {number|string|Decimal} The base of the logarithm. - * - */ - P.logarithm = P.log = function (base) { - var isBase10, d, denominator, k, inf, num, sd, r, - arg = this, - Ctor = arg.constructor, - pr = Ctor.precision, - rm = Ctor.rounding, - guard = 5; - - // Default base is 10. - if (base == null) { - base = new Ctor(10); - isBase10 = true; - } else { - base = new Ctor(base); - d = base.d; - - // Return NaN if base is negative, or non-finite, or is 0 or 1. - if (base.s < 0 || !d || !d[0] || base.eq(1)) return new Ctor(NaN); - - isBase10 = base.eq(10); - } - - d = arg.d; - - // Is arg negative, non-finite, 0 or 1? - if (arg.s < 0 || !d || !d[0] || arg.eq(1)) { - return new Ctor(d && !d[0] ? -1 / 0 : arg.s != 1 ? NaN : d ? 0 : 1 / 0); - } - - // The result will have a non-terminating decimal expansion if base is 10 and arg is not an - // integer power of 10. - if (isBase10) { - if (d.length > 1) { - inf = true; - } else { - for (k = d[0]; k % 10 === 0;) k /= 10; - inf = k !== 1; - } - } - - external = false; - sd = pr + guard; - num = naturalLogarithm(arg, sd); - denominator = isBase10 ? getLn10(Ctor, sd + 10) : naturalLogarithm(base, sd); - - // The result will have 5 rounding digits. - r = divide(num, denominator, sd, 1); - - // If at a rounding boundary, i.e. the result's rounding digits are [49]9999 or [50]0000, - // calculate 10 further digits. - // - // If the result is known to have an infinite decimal expansion, repeat this until it is clear - // that the result is above or below the boundary. Otherwise, if after calculating the 10 - // further digits, the last 14 are nines, round up and assume the result is exact. - // Also assume the result is exact if the last 14 are zero. - // - // Example of a result that will be incorrectly rounded: - // log[1048576](4503599627370502) = 2.60000000000000009610279511444746... - // The above result correctly rounded using ROUND_CEIL to 1 decimal place should be 2.7, but it - // will be given as 2.6 as there are 15 zeros immediately after the requested decimal place, so - // the exact result would be assumed to be 2.6, which rounded using ROUND_CEIL to 1 decimal - // place is still 2.6. - if (checkRoundingDigits(r.d, k = pr, rm)) { - - do { - sd += 10; - num = naturalLogarithm(arg, sd); - denominator = isBase10 ? getLn10(Ctor, sd + 10) : naturalLogarithm(base, sd); - r = divide(num, denominator, sd, 1); - - if (!inf) { - - // Check for 14 nines from the 2nd rounding digit, as the first may be 4. - if (+digitsToString(r.d).slice(k + 1, k + 15) + 1 == 1e14) { - r = finalise(r, pr + 1, 0); - } - - break; - } - } while (checkRoundingDigits(r.d, k += 10, rm)); - } - - external = true; - - return finalise(r, pr, rm); - }; - - - /* - * Return a new Decimal whose value is the maximum of the arguments and the value of this Decimal. - * - * arguments {number|string|Decimal} - * - P.max = function () { - Array.prototype.push.call(arguments, this); - return maxOrMin(this.constructor, arguments, 'lt'); - }; - */ - - - /* - * Return a new Decimal whose value is the minimum of the arguments and the value of this Decimal. - * - * arguments {number|string|Decimal} - * - P.min = function () { - Array.prototype.push.call(arguments, this); - return maxOrMin(this.constructor, arguments, 'gt'); - }; - */ - - - /* - * n - 0 = n - * n - N = N - * n - I = -I - * 0 - n = -n - * 0 - 0 = 0 - * 0 - N = N - * 0 - I = -I - * N - n = N - * N - 0 = N - * N - N = N - * N - I = N - * I - n = I - * I - 0 = I - * I - N = N - * I - I = N - * - * Return a new Decimal whose value is the value of this Decimal minus `y`, rounded to `precision` - * significant digits using rounding mode `rounding`. - * - */ - P.minus = P.sub = function (y) { - var d, e, i, j, k, len, pr, rm, xd, xe, xLTy, yd, - x = this, - Ctor = x.constructor; - - y = new Ctor(y); - - // If either is not finite... - if (!x.d || !y.d) { - - // Return NaN if either is NaN. - if (!x.s || !y.s) y = new Ctor(NaN); - - // Return y negated if x is finite and y is ±Infinity. - else if (x.d) y.s = -y.s; - - // Return x if y is finite and x is ±Infinity. - // Return x if both are ±Infinity with different signs. - // Return NaN if both are ±Infinity with the same sign. - else y = new Ctor(y.d || x.s !== y.s ? x : NaN); - - return y; - } - - // If signs differ... - if (x.s != y.s) { - y.s = -y.s; - return x.plus(y); - } - - xd = x.d; - yd = y.d; - pr = Ctor.precision; - rm = Ctor.rounding; - - // If either is zero... - if (!xd[0] || !yd[0]) { - - // Return y negated if x is zero and y is non-zero. - if (yd[0]) y.s = -y.s; - - // Return x if y is zero and x is non-zero. - else if (xd[0]) y = new Ctor(x); - - // Return zero if both are zero. - // From IEEE 754 (2008) 6.3: 0 - 0 = -0 - -0 = -0 when rounding to -Infinity. - else return new Ctor(rm === 3 ? -0 : 0); - - return external ? finalise(y, pr, rm) : y; - } - - // x and y are finite, non-zero numbers with the same sign. - - // Calculate base 1e7 exponents. - e = mathfloor(y.e / LOG_BASE); - xe = mathfloor(x.e / LOG_BASE); - - xd = xd.slice(); - k = xe - e; - - // If base 1e7 exponents differ... - if (k) { - xLTy = k < 0; - - if (xLTy) { - d = xd; - k = -k; - len = yd.length; - } else { - d = yd; - e = xe; - len = xd.length; - } - - // Numbers with massively different exponents would result in a very high number of - // zeros needing to be prepended, but this can be avoided while still ensuring correct - // rounding by limiting the number of zeros to `Math.ceil(pr / LOG_BASE) + 2`. - i = Math.max(Math.ceil(pr / LOG_BASE), len) + 2; - - if (k > i) { - k = i; - d.length = 1; - } - - // Prepend zeros to equalise exponents. - d.reverse(); - for (i = k; i--;) d.push(0); - d.reverse(); - - // Base 1e7 exponents equal. - } else { - - // Check digits to determine which is the bigger number. - - i = xd.length; - len = yd.length; - xLTy = i < len; - if (xLTy) len = i; - - for (i = 0; i < len; i++) { - if (xd[i] != yd[i]) { - xLTy = xd[i] < yd[i]; - break; - } - } - - k = 0; - } - - if (xLTy) { - d = xd; - xd = yd; - yd = d; - y.s = -y.s; - } - - len = xd.length; - - // Append zeros to `xd` if shorter. - // Don't add zeros to `yd` if shorter as subtraction only needs to start at `yd` length. - for (i = yd.length - len; i > 0; --i) xd[len++] = 0; - - // Subtract yd from xd. - for (i = yd.length; i > k;) { - - if (xd[--i] < yd[i]) { - for (j = i; j && xd[--j] === 0;) xd[j] = BASE - 1; - --xd[j]; - xd[i] += BASE; - } - - xd[i] -= yd[i]; - } - - // Remove trailing zeros. - for (; xd[--len] === 0;) xd.pop(); - - // Remove leading zeros and adjust exponent accordingly. - for (; xd[0] === 0; xd.shift()) --e; - - // Zero? - if (!xd[0]) return new Ctor(rm === 3 ? -0 : 0); - - y.d = xd; - y.e = getBase10Exponent(xd, e); - - return external ? finalise(y, pr, rm) : y; - }; - - - /* - * n % 0 = N - * n % N = N - * n % I = n - * 0 % n = 0 - * -0 % n = -0 - * 0 % 0 = N - * 0 % N = N - * 0 % I = 0 - * N % n = N - * N % 0 = N - * N % N = N - * N % I = N - * I % n = N - * I % 0 = N - * I % N = N - * I % I = N - * - * Return a new Decimal whose value is the value of this Decimal modulo `y`, rounded to - * `precision` significant digits using rounding mode `rounding`. - * - * The result depends on the modulo mode. - * - */ - P.modulo = P.mod = function (y) { - var q, - x = this, - Ctor = x.constructor; - - y = new Ctor(y); - - // Return NaN if x is ±Infinity or NaN, or y is NaN or ±0. - if (!x.d || !y.s || y.d && !y.d[0]) return new Ctor(NaN); - - // Return x if y is ±Infinity or x is ±0. - if (!y.d || x.d && !x.d[0]) { - return finalise(new Ctor(x), Ctor.precision, Ctor.rounding); - } - - // Prevent rounding of intermediate calculations. - external = false; - - if (Ctor.modulo == 9) { - - // Euclidian division: q = sign(y) * floor(x / abs(y)) - // result = x - q * y where 0 <= result < abs(y) - q = divide(x, y.abs(), 0, 3, 1); - q.s *= y.s; - } else { - q = divide(x, y, 0, Ctor.modulo, 1); - } - - q = q.times(y); - - external = true; - - return x.minus(q); - }; - - - /* - * Return a new Decimal whose value is the natural exponential of the value of this Decimal, - * i.e. the base e raised to the power the value of this Decimal, rounded to `precision` - * significant digits using rounding mode `rounding`. - * - */ - P.naturalExponential = P.exp = function () { - return naturalExponential(this); - }; - - - /* - * Return a new Decimal whose value is the natural logarithm of the value of this Decimal, - * rounded to `precision` significant digits using rounding mode `rounding`. - * - */ - P.naturalLogarithm = P.ln = function () { - return naturalLogarithm(this); - }; - - - /* - * Return a new Decimal whose value is the value of this Decimal negated, i.e. as if multiplied by - * -1. - * - */ - P.negated = P.neg = function () { - var x = new this.constructor(this); - x.s = -x.s; - return finalise(x); - }; - - - /* - * n + 0 = n - * n + N = N - * n + I = I - * 0 + n = n - * 0 + 0 = 0 - * 0 + N = N - * 0 + I = I - * N + n = N - * N + 0 = N - * N + N = N - * N + I = N - * I + n = I - * I + 0 = I - * I + N = N - * I + I = I - * - * Return a new Decimal whose value is the value of this Decimal plus `y`, rounded to `precision` - * significant digits using rounding mode `rounding`. - * - */ - P.plus = P.add = function (y) { - var carry, d, e, i, k, len, pr, rm, xd, yd, - x = this, - Ctor = x.constructor; - - y = new Ctor(y); - - // If either is not finite... - if (!x.d || !y.d) { - - // Return NaN if either is NaN. - if (!x.s || !y.s) y = new Ctor(NaN); - - // Return x if y is finite and x is ±Infinity. - // Return x if both are ±Infinity with the same sign. - // Return NaN if both are ±Infinity with different signs. - // Return y if x is finite and y is ±Infinity. - else if (!x.d) y = new Ctor(y.d || x.s === y.s ? x : NaN); - - return y; - } - - // If signs differ... - if (x.s != y.s) { - y.s = -y.s; - return x.minus(y); - } - - xd = x.d; - yd = y.d; - pr = Ctor.precision; - rm = Ctor.rounding; - - // If either is zero... - if (!xd[0] || !yd[0]) { - - // Return x if y is zero. - // Return y if y is non-zero. - if (!yd[0]) y = new Ctor(x); - - return external ? finalise(y, pr, rm) : y; - } - - // x and y are finite, non-zero numbers with the same sign. - - // Calculate base 1e7 exponents. - k = mathfloor(x.e / LOG_BASE); - e = mathfloor(y.e / LOG_BASE); - - xd = xd.slice(); - i = k - e; - - // If base 1e7 exponents differ... - if (i) { - - if (i < 0) { - d = xd; - i = -i; - len = yd.length; - } else { - d = yd; - e = k; - len = xd.length; - } - - // Limit number of zeros prepended to max(ceil(pr / LOG_BASE), len) + 1. - k = Math.ceil(pr / LOG_BASE); - len = k > len ? k + 1 : len + 1; - - if (i > len) { - i = len; - d.length = 1; - } - - // Prepend zeros to equalise exponents. Note: Faster to use reverse then do unshifts. - d.reverse(); - for (; i--;) d.push(0); - d.reverse(); - } - - len = xd.length; - i = yd.length; - - // If yd is longer than xd, swap xd and yd so xd points to the longer array. - if (len - i < 0) { - i = len; - d = yd; - yd = xd; - xd = d; - } - - // Only start adding at yd.length - 1 as the further digits of xd can be left as they are. - for (carry = 0; i;) { - carry = (xd[--i] = xd[i] + yd[i] + carry) / BASE | 0; - xd[i] %= BASE; - } - - if (carry) { - xd.unshift(carry); - ++e; - } - - // Remove trailing zeros. - // No need to check for zero, as +x + +y != 0 && -x + -y != 0 - for (len = xd.length; xd[--len] == 0;) xd.pop(); - - y.d = xd; - y.e = getBase10Exponent(xd, e); - - return external ? finalise(y, pr, rm) : y; - }; - - - /* - * Return the number of significant digits of the value of this Decimal. - * - * [z] {boolean|number} Whether to count integer-part trailing zeros: true, false, 1 or 0. - * - */ - P.precision = P.sd = function (z) { - var k, - x = this; - - if (z !== void 0 && z !== !!z && z !== 1 && z !== 0) throw Error(invalidArgument + z); - - if (x.d) { - k = getPrecision(x.d); - if (z && x.e + 1 > k) k = x.e + 1; - } else { - k = NaN; - } - - return k; - }; - - - /* - * Return a new Decimal whose value is the value of this Decimal rounded to a whole number using - * rounding mode `rounding`. - * - */ - P.round = function () { - var x = this, - Ctor = x.constructor; - - return finalise(new Ctor(x), x.e + 1, Ctor.rounding); - }; - - - /* - * Return a new Decimal whose value is the sine of the value in radians of this Decimal. - * - * Domain: [-Infinity, Infinity] - * Range: [-1, 1] - * - * sin(x) = x - x^3/3! + x^5/5! - ... - * - * sin(0) = 0 - * sin(-0) = -0 - * sin(Infinity) = NaN - * sin(-Infinity) = NaN - * sin(NaN) = NaN - * - */ - P.sine = P.sin = function () { - var pr, rm, - x = this, - Ctor = x.constructor; - - if (!x.isFinite()) return new Ctor(NaN); - if (x.isZero()) return new Ctor(x); - - pr = Ctor.precision; - rm = Ctor.rounding; - Ctor.precision = pr + Math.max(x.e, x.sd()) + LOG_BASE; - Ctor.rounding = 1; - - x = sine(Ctor, toLessThanHalfPi(Ctor, x)); - - Ctor.precision = pr; - Ctor.rounding = rm; - - return finalise(quadrant > 2 ? x.neg() : x, pr, rm, true); - }; - - - /* - * Return a new Decimal whose value is the square root of this Decimal, rounded to `precision` - * significant digits using rounding mode `rounding`. - * - * sqrt(-n) = N - * sqrt(N) = N - * sqrt(-I) = N - * sqrt(I) = I - * sqrt(0) = 0 - * sqrt(-0) = -0 - * - */ - P.squareRoot = P.sqrt = function () { - var m, n, sd, r, rep, t, - x = this, - d = x.d, - e = x.e, - s = x.s, - Ctor = x.constructor; - - // Negative/NaN/Infinity/zero? - if (s !== 1 || !d || !d[0]) { - return new Ctor(!s || s < 0 && (!d || d[0]) ? NaN : d ? x : 1 / 0); - } - - external = false; - - // Initial estimate. - s = Math.sqrt(+x); - - // Math.sqrt underflow/overflow? - // Pass x to Math.sqrt as integer, then adjust the exponent of the result. - if (s == 0 || s == 1 / 0) { - n = digitsToString(d); - - if ((n.length + e) % 2 == 0) n += '0'; - s = Math.sqrt(n); - e = mathfloor((e + 1) / 2) - (e < 0 || e % 2); - - if (s == 1 / 0) { - n = '5e' + e; - } else { - n = s.toExponential(); - n = n.slice(0, n.indexOf('e') + 1) + e; - } - - r = new Ctor(n); - } else { - r = new Ctor(s.toString()); - } - - sd = (e = Ctor.precision) + 3; - - // Newton-Raphson iteration. - for (;;) { - t = r; - r = t.plus(divide(x, t, sd + 2, 1)).times(0.5); - - // TODO? Replace with for-loop and checkRoundingDigits. - if (digitsToString(t.d).slice(0, sd) === (n = digitsToString(r.d)).slice(0, sd)) { - n = n.slice(sd - 3, sd + 1); - - // The 4th rounding digit may be in error by -1 so if the 4 rounding digits are 9999 or - // 4999, i.e. approaching a rounding boundary, continue the iteration. - if (n == '9999' || !rep && n == '4999') { - - // On the first iteration only, check to see if rounding up gives the exact result as the - // nines may infinitely repeat. - if (!rep) { - finalise(t, e + 1, 0); - - if (t.times(t).eq(x)) { - r = t; - break; - } - } - - sd += 4; - rep = 1; - } else { - - // If the rounding digits are null, 0{0,4} or 50{0,3}, check for an exact result. - // If not, then there are further digits and m will be truthy. - if (!+n || !+n.slice(1) && n.charAt(0) == '5') { - - // Truncate to the first rounding digit. - finalise(r, e + 1, 1); - m = !r.times(r).eq(x); - } - - break; - } - } - } - - external = true; - - return finalise(r, e, Ctor.rounding, m); - }; - - - /* - * Return a new Decimal whose value is the tangent of the value in radians of this Decimal. - * - * Domain: [-Infinity, Infinity] - * Range: [-Infinity, Infinity] - * - * tan(0) = 0 - * tan(-0) = -0 - * tan(Infinity) = NaN - * tan(-Infinity) = NaN - * tan(NaN) = NaN - * - */ - P.tangent = P.tan = function () { - var pr, rm, - x = this, - Ctor = x.constructor; - - if (!x.isFinite()) return new Ctor(NaN); - if (x.isZero()) return new Ctor(x); - - pr = Ctor.precision; - rm = Ctor.rounding; - Ctor.precision = pr + 10; - Ctor.rounding = 1; - - x = x.sin(); - x.s = 1; - x = divide(x, new Ctor(1).minus(x.times(x)).sqrt(), pr + 10, 0); - - Ctor.precision = pr; - Ctor.rounding = rm; - - return finalise(quadrant == 2 || quadrant == 4 ? x.neg() : x, pr, rm, true); - }; - - - /* - * n * 0 = 0 - * n * N = N - * n * I = I - * 0 * n = 0 - * 0 * 0 = 0 - * 0 * N = N - * 0 * I = N - * N * n = N - * N * 0 = N - * N * N = N - * N * I = N - * I * n = I - * I * 0 = N - * I * N = N - * I * I = I - * - * Return a new Decimal whose value is this Decimal times `y`, rounded to `precision` significant - * digits using rounding mode `rounding`. - * - */ - P.times = P.mul = function (y) { - var carry, e, i, k, r, rL, t, xdL, ydL, - x = this, - Ctor = x.constructor, - xd = x.d, - yd = (y = new Ctor(y)).d; - - y.s *= x.s; - - // If either is NaN, ±Infinity or ±0... - if (!xd || !xd[0] || !yd || !yd[0]) { - - return new Ctor(!y.s || xd && !xd[0] && !yd || yd && !yd[0] && !xd - - // Return NaN if either is NaN. - // Return NaN if x is ±0 and y is ±Infinity, or y is ±0 and x is ±Infinity. - ? NaN - - // Return ±Infinity if either is ±Infinity. - // Return ±0 if either is ±0. - : !xd || !yd ? y.s / 0 : y.s * 0); - } - - e = mathfloor(x.e / LOG_BASE) + mathfloor(y.e / LOG_BASE); - xdL = xd.length; - ydL = yd.length; - - // Ensure xd points to the longer array. - if (xdL < ydL) { - r = xd; - xd = yd; - yd = r; - rL = xdL; - xdL = ydL; - ydL = rL; - } - - // Initialise the result array with zeros. - r = []; - rL = xdL + ydL; - for (i = rL; i--;) r.push(0); - - // Multiply! - for (i = ydL; --i >= 0;) { - carry = 0; - for (k = xdL + i; k > i;) { - t = r[k] + yd[i] * xd[k - i - 1] + carry; - r[k--] = t % BASE | 0; - carry = t / BASE | 0; - } - - r[k] = (r[k] + carry) % BASE | 0; - } - - // Remove trailing zeros. - for (; !r[--rL];) r.pop(); - - if (carry) ++e; - else r.shift(); - - y.d = r; - y.e = getBase10Exponent(r, e); - - return external ? finalise(y, Ctor.precision, Ctor.rounding) : y; - }; - - - /* - * Return a string representing the value of this Decimal in base 2, round to `sd` significant - * digits using rounding mode `rm`. - * - * If the optional `sd` argument is present then return binary exponential notation. - * - * [sd] {number} Significant digits. Integer, 1 to MAX_DIGITS inclusive. - * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive. - * - */ - P.toBinary = function (sd, rm) { - return toStringBinary(this, 2, sd, rm); - }; - - - /* - * Return a new Decimal whose value is the value of this Decimal rounded to a maximum of `dp` - * decimal places using rounding mode `rm` or `rounding` if `rm` is omitted. - * - * If `dp` is omitted, return a new Decimal whose value is the value of this Decimal. - * - * [dp] {number} Decimal places. Integer, 0 to MAX_DIGITS inclusive. - * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive. - * - */ - P.toDecimalPlaces = P.toDP = function (dp, rm) { - var x = this, - Ctor = x.constructor; - - x = new Ctor(x); - if (dp === void 0) return x; - - checkInt32(dp, 0, MAX_DIGITS); - - if (rm === void 0) rm = Ctor.rounding; - else checkInt32(rm, 0, 8); - - return finalise(x, dp + x.e + 1, rm); - }; - - - /* - * Return a string representing the value of this Decimal in exponential notation rounded to - * `dp` fixed decimal places using rounding mode `rounding`. - * - * [dp] {number} Decimal places. Integer, 0 to MAX_DIGITS inclusive. - * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive. - * - */ - P.toExponential = function (dp, rm) { - var str, - x = this, - Ctor = x.constructor; - - if (dp === void 0) { - str = finiteToString(x, true); - } else { - checkInt32(dp, 0, MAX_DIGITS); - - if (rm === void 0) rm = Ctor.rounding; - else checkInt32(rm, 0, 8); - - x = finalise(new Ctor(x), dp + 1, rm); - str = finiteToString(x, true, dp + 1); - } - - return x.isNeg() && !x.isZero() ? '-' + str : str; - }; - - - /* - * Return a string representing the value of this Decimal in normal (fixed-point) notation to - * `dp` fixed decimal places and rounded using rounding mode `rm` or `rounding` if `rm` is - * omitted. - * - * As with JavaScript numbers, (-0).toFixed(0) is '0', but e.g. (-0.00001).toFixed(0) is '-0'. - * - * [dp] {number} Decimal places. Integer, 0 to MAX_DIGITS inclusive. - * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive. - * - * (-0).toFixed(0) is '0', but (-0.1).toFixed(0) is '-0'. - * (-0).toFixed(1) is '0.0', but (-0.01).toFixed(1) is '-0.0'. - * (-0).toFixed(3) is '0.000'. - * (-0.5).toFixed(0) is '-0'. - * - */ - P.toFixed = function (dp, rm) { - var str, y, - x = this, - Ctor = x.constructor; - - if (dp === void 0) { - str = finiteToString(x); - } else { - checkInt32(dp, 0, MAX_DIGITS); - - if (rm === void 0) rm = Ctor.rounding; - else checkInt32(rm, 0, 8); - - y = finalise(new Ctor(x), dp + x.e + 1, rm); - str = finiteToString(y, false, dp + y.e + 1); - } - - // To determine whether to add the minus sign look at the value before it was rounded, - // i.e. look at `x` rather than `y`. - return x.isNeg() && !x.isZero() ? '-' + str : str; - }; - - - /* - * Return an array representing the value of this Decimal as a simple fraction with an integer - * numerator and an integer denominator. - * - * The denominator will be a positive non-zero value less than or equal to the specified maximum - * denominator. If a maximum denominator is not specified, the denominator will be the lowest - * value necessary to represent the number exactly. - * - * [maxD] {number|string|Decimal} Maximum denominator. Integer >= 1 and < Infinity. - * - */ - P.toFraction = function (maxD) { - var d, d0, d1, d2, e, k, n, n0, n1, pr, q, r, - x = this, - xd = x.d, - Ctor = x.constructor; - - if (!xd) return new Ctor(x); - - n1 = d0 = new Ctor(1); - d1 = n0 = new Ctor(0); - - d = new Ctor(d1); - e = d.e = getPrecision(xd) - x.e - 1; - k = e % LOG_BASE; - d.d[0] = mathpow(10, k < 0 ? LOG_BASE + k : k); - - if (maxD == null) { - - // d is 10**e, the minimum max-denominator needed. - maxD = e > 0 ? d : n1; - } else { - n = new Ctor(maxD); - if (!n.isInt() || n.lt(n1)) throw Error(invalidArgument + n); - maxD = n.gt(d) ? (e > 0 ? d : n1) : n; - } - - external = false; - n = new Ctor(digitsToString(xd)); - pr = Ctor.precision; - Ctor.precision = e = xd.length * LOG_BASE * 2; - - for (;;) { - q = divide(n, d, 0, 1, 1); - d2 = d0.plus(q.times(d1)); - if (d2.cmp(maxD) == 1) break; - d0 = d1; - d1 = d2; - d2 = n1; - n1 = n0.plus(q.times(d2)); - n0 = d2; - d2 = d; - d = n.minus(q.times(d2)); - n = d2; - } - - d2 = divide(maxD.minus(d0), d1, 0, 1, 1); - n0 = n0.plus(d2.times(n1)); - d0 = d0.plus(d2.times(d1)); - n0.s = n1.s = x.s; - - // Determine which fraction is closer to x, n0/d0 or n1/d1? - r = divide(n1, d1, e, 1).minus(x).abs().cmp(divide(n0, d0, e, 1).minus(x).abs()) < 1 - ? [n1, d1] : [n0, d0]; - - Ctor.precision = pr; - external = true; - - return r; - }; - - - /* - * Return a string representing the value of this Decimal in base 16, round to `sd` significant - * digits using rounding mode `rm`. - * - * If the optional `sd` argument is present then return binary exponential notation. - * - * [sd] {number} Significant digits. Integer, 1 to MAX_DIGITS inclusive. - * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive. - * - */ - P.toHexadecimal = P.toHex = function (sd, rm) { - return toStringBinary(this, 16, sd, rm); - }; - - - /* - * Returns a new Decimal whose value is the nearest multiple of `y` in the direction of rounding - * mode `rm`, or `Decimal.rounding` if `rm` is omitted, to the value of this Decimal. - * - * The return value will always have the same sign as this Decimal, unless either this Decimal - * or `y` is NaN, in which case the return value will be also be NaN. - * - * The return value is not affected by the value of `precision`. - * - * y {number|string|Decimal} The magnitude to round to a multiple of. - * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive. - * - * 'toNearest() rounding mode not an integer: {rm}' - * 'toNearest() rounding mode out of range: {rm}' - * - */ - P.toNearest = function (y, rm) { - var x = this, - Ctor = x.constructor; - - x = new Ctor(x); - - if (y == null) { - - // If x is not finite, return x. - if (!x.d) return x; - - y = new Ctor(1); - rm = Ctor.rounding; - } else { - y = new Ctor(y); - if (rm === void 0) { - rm = Ctor.rounding; - } else { - checkInt32(rm, 0, 8); - } - - // If x is not finite, return x if y is not NaN, else NaN. - if (!x.d) return y.s ? x : y; - - // If y is not finite, return Infinity with the sign of x if y is Infinity, else NaN. - if (!y.d) { - if (y.s) y.s = x.s; - return y; - } - } - - // If y is not zero, calculate the nearest multiple of y to x. - if (y.d[0]) { - external = false; - x = divide(x, y, 0, rm, 1).times(y); - external = true; - finalise(x); - - // If y is zero, return zero with the sign of x. - } else { - y.s = x.s; - x = y; - } - - return x; - }; - - - /* - * Return the value of this Decimal converted to a number primitive. - * Zero keeps its sign. - * - */ - P.toNumber = function () { - return +this; - }; - - - /* - * Return a string representing the value of this Decimal in base 8, round to `sd` significant - * digits using rounding mode `rm`. - * - * If the optional `sd` argument is present then return binary exponential notation. - * - * [sd] {number} Significant digits. Integer, 1 to MAX_DIGITS inclusive. - * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive. - * - */ - P.toOctal = function (sd, rm) { - return toStringBinary(this, 8, sd, rm); - }; - - - /* - * Return a new Decimal whose value is the value of this Decimal raised to the power `y`, rounded - * to `precision` significant digits using rounding mode `rounding`. - * - * ECMAScript compliant. - * - * pow(x, NaN) = NaN - * pow(x, ±0) = 1 - - * pow(NaN, non-zero) = NaN - * pow(abs(x) > 1, +Infinity) = +Infinity - * pow(abs(x) > 1, -Infinity) = +0 - * pow(abs(x) == 1, ±Infinity) = NaN - * pow(abs(x) < 1, +Infinity) = +0 - * pow(abs(x) < 1, -Infinity) = +Infinity - * pow(+Infinity, y > 0) = +Infinity - * pow(+Infinity, y < 0) = +0 - * pow(-Infinity, odd integer > 0) = -Infinity - * pow(-Infinity, even integer > 0) = +Infinity - * pow(-Infinity, odd integer < 0) = -0 - * pow(-Infinity, even integer < 0) = +0 - * pow(+0, y > 0) = +0 - * pow(+0, y < 0) = +Infinity - * pow(-0, odd integer > 0) = -0 - * pow(-0, even integer > 0) = +0 - * pow(-0, odd integer < 0) = -Infinity - * pow(-0, even integer < 0) = +Infinity - * pow(finite x < 0, finite non-integer) = NaN - * - * For non-integer or very large exponents pow(x, y) is calculated using - * - * x^y = exp(y*ln(x)) - * - * Assuming the first 15 rounding digits are each equally likely to be any digit 0-9, the - * probability of an incorrectly rounded result - * P([49]9{14} | [50]0{14}) = 2 * 0.2 * 10^-14 = 4e-15 = 1/2.5e+14 - * i.e. 1 in 250,000,000,000,000 - * - * If a result is incorrectly rounded the maximum error will be 1 ulp (unit in last place). - * - * y {number|string|Decimal} The power to which to raise this Decimal. - * - */ - P.toPower = P.pow = function (y) { - var e, k, pr, r, rm, s, - x = this, - Ctor = x.constructor, - yn = +(y = new Ctor(y)); - - // Either ±Infinity, NaN or ±0? - if (!x.d || !y.d || !x.d[0] || !y.d[0]) return new Ctor(mathpow(+x, yn)); - - x = new Ctor(x); - - if (x.eq(1)) return x; - - pr = Ctor.precision; - rm = Ctor.rounding; - - if (y.eq(1)) return finalise(x, pr, rm); - - // y exponent - e = mathfloor(y.e / LOG_BASE); - - // If y is a small integer use the 'exponentiation by squaring' algorithm. - if (e >= y.d.length - 1 && (k = yn < 0 ? -yn : yn) <= MAX_SAFE_INTEGER) { - r = intPow(Ctor, x, k, pr); - return y.s < 0 ? new Ctor(1).div(r) : finalise(r, pr, rm); - } - - s = x.s; - - // if x is negative - if (s < 0) { - - // if y is not an integer - if (e < y.d.length - 1) return new Ctor(NaN); - - // Result is positive if x is negative and the last digit of integer y is even. - if ((y.d[e] & 1) == 0) s = 1; - - // if x.eq(-1) - if (x.e == 0 && x.d[0] == 1 && x.d.length == 1) { - x.s = s; - return x; - } - } - - // Estimate result exponent. - // x^y = 10^e, where e = y * log10(x) - // log10(x) = log10(x_significand) + x_exponent - // log10(x_significand) = ln(x_significand) / ln(10) - k = mathpow(+x, yn); - e = k == 0 || !isFinite(k) - ? mathfloor(yn * (Math.log('0.' + digitsToString(x.d)) / Math.LN10 + x.e + 1)) - : new Ctor(k + '').e; - - // Exponent estimate may be incorrect e.g. x: 0.999999999999999999, y: 2.29, e: 0, r.e: -1. - - // Overflow/underflow? - if (e > Ctor.maxE + 1 || e < Ctor.minE - 1) return new Ctor(e > 0 ? s / 0 : 0); - - external = false; - Ctor.rounding = x.s = 1; - - // Estimate the extra guard digits needed to ensure five correct rounding digits from - // naturalLogarithm(x). Example of failure without these extra digits (precision: 10): - // new Decimal(2.32456).pow('2087987436534566.46411') - // should be 1.162377823e+764914905173815, but is 1.162355823e+764914905173815 - k = Math.min(12, (e + '').length); - - // r = x^y = exp(y*ln(x)) - r = naturalExponential(y.times(naturalLogarithm(x, pr + k)), pr); - - // r may be Infinity, e.g. (0.9999999999999999).pow(-1e+40) - if (r.d) { - - // Truncate to the required precision plus five rounding digits. - r = finalise(r, pr + 5, 1); - - // If the rounding digits are [49]9999 or [50]0000 increase the precision by 10 and recalculate - // the result. - if (checkRoundingDigits(r.d, pr, rm)) { - e = pr + 10; - - // Truncate to the increased precision plus five rounding digits. - r = finalise(naturalExponential(y.times(naturalLogarithm(x, e + k)), e), e + 5, 1); - - // Check for 14 nines from the 2nd rounding digit (the first rounding digit may be 4 or 9). - if (+digitsToString(r.d).slice(pr + 1, pr + 15) + 1 == 1e14) { - r = finalise(r, pr + 1, 0); - } - } - } - - r.s = s; - external = true; - Ctor.rounding = rm; - - return finalise(r, pr, rm); - }; - - - /* - * Return a string representing the value of this Decimal rounded to `sd` significant digits - * using rounding mode `rounding`. - * - * Return exponential notation if `sd` is less than the number of digits necessary to represent - * the integer part of the value in normal notation. - * - * [sd] {number} Significant digits. Integer, 1 to MAX_DIGITS inclusive. - * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive. - * - */ - P.toPrecision = function (sd, rm) { - var str, - x = this, - Ctor = x.constructor; - - if (sd === void 0) { - str = finiteToString(x, x.e <= Ctor.toExpNeg || x.e >= Ctor.toExpPos); - } else { - checkInt32(sd, 1, MAX_DIGITS); - - if (rm === void 0) rm = Ctor.rounding; - else checkInt32(rm, 0, 8); - - x = finalise(new Ctor(x), sd, rm); - str = finiteToString(x, sd <= x.e || x.e <= Ctor.toExpNeg, sd); - } - - return x.isNeg() && !x.isZero() ? '-' + str : str; - }; - - - /* - * Return a new Decimal whose value is the value of this Decimal rounded to a maximum of `sd` - * significant digits using rounding mode `rm`, or to `precision` and `rounding` respectively if - * omitted. - * - * [sd] {number} Significant digits. Integer, 1 to MAX_DIGITS inclusive. - * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive. - * - * 'toSD() digits out of range: {sd}' - * 'toSD() digits not an integer: {sd}' - * 'toSD() rounding mode not an integer: {rm}' - * 'toSD() rounding mode out of range: {rm}' - * - */ - P.toSignificantDigits = P.toSD = function (sd, rm) { - var x = this, - Ctor = x.constructor; - - if (sd === void 0) { - sd = Ctor.precision; - rm = Ctor.rounding; - } else { - checkInt32(sd, 1, MAX_DIGITS); - - if (rm === void 0) rm = Ctor.rounding; - else checkInt32(rm, 0, 8); - } - - return finalise(new Ctor(x), sd, rm); - }; - - - /* - * Return a string representing the value of this Decimal. - * - * Return exponential notation if this Decimal has a positive exponent equal to or greater than - * `toExpPos`, or a negative exponent equal to or less than `toExpNeg`. - * - */ - P.toString = function () { - var x = this, - Ctor = x.constructor, - str = finiteToString(x, x.e <= Ctor.toExpNeg || x.e >= Ctor.toExpPos); - - return x.isNeg() && !x.isZero() ? '-' + str : str; - }; - - - /* - * Return a new Decimal whose value is the value of this Decimal truncated to a whole number. - * - */ - P.truncated = P.trunc = function () { - return finalise(new this.constructor(this), this.e + 1, 1); - }; - - - /* - * Return a string representing the value of this Decimal. - * Unlike `toString`, negative zero will include the minus sign. - * - */ - P.valueOf = P.toJSON = function () { - var x = this, - Ctor = x.constructor, - str = finiteToString(x, x.e <= Ctor.toExpNeg || x.e >= Ctor.toExpPos); - - return x.isNeg() ? '-' + str : str; - }; - - - // Helper functions for Decimal.prototype (P) and/or Decimal methods, and their callers. - - - /* - * digitsToString P.cubeRoot, P.logarithm, P.squareRoot, P.toFraction, P.toPower, - * finiteToString, naturalExponential, naturalLogarithm - * checkInt32 P.toDecimalPlaces, P.toExponential, P.toFixed, P.toNearest, - * P.toPrecision, P.toSignificantDigits, toStringBinary, random - * checkRoundingDigits P.logarithm, P.toPower, naturalExponential, naturalLogarithm - * convertBase toStringBinary, parseOther - * cos P.cos - * divide P.atanh, P.cubeRoot, P.dividedBy, P.dividedToIntegerBy, - * P.logarithm, P.modulo, P.squareRoot, P.tan, P.tanh, P.toFraction, - * P.toNearest, toStringBinary, naturalExponential, naturalLogarithm, - * taylorSeries, atan2, parseOther - * finalise P.absoluteValue, P.atan, P.atanh, P.ceil, P.cos, P.cosh, - * P.cubeRoot, P.dividedToIntegerBy, P.floor, P.logarithm, P.minus, - * P.modulo, P.negated, P.plus, P.round, P.sin, P.sinh, P.squareRoot, - * P.tan, P.times, P.toDecimalPlaces, P.toExponential, P.toFixed, - * P.toNearest, P.toPower, P.toPrecision, P.toSignificantDigits, - * P.truncated, divide, getLn10, getPi, naturalExponential, - * naturalLogarithm, ceil, floor, round, trunc - * finiteToString P.toExponential, P.toFixed, P.toPrecision, P.toString, P.valueOf, - * toStringBinary - * getBase10Exponent P.minus, P.plus, P.times, parseOther - * getLn10 P.logarithm, naturalLogarithm - * getPi P.acos, P.asin, P.atan, toLessThanHalfPi, atan2 - * getPrecision P.precision, P.toFraction - * getZeroString digitsToString, finiteToString - * intPow P.toPower, parseOther - * isOdd toLessThanHalfPi - * maxOrMin max, min - * naturalExponential P.naturalExponential, P.toPower - * naturalLogarithm P.acosh, P.asinh, P.atanh, P.logarithm, P.naturalLogarithm, - * P.toPower, naturalExponential - * nonFiniteToString finiteToString, toStringBinary - * parseDecimal Decimal - * parseOther Decimal - * sin P.sin - * taylorSeries P.cosh, P.sinh, cos, sin - * toLessThanHalfPi P.cos, P.sin - * toStringBinary P.toBinary, P.toHexadecimal, P.toOctal - * truncate intPow - * - * Throws: P.logarithm, P.precision, P.toFraction, checkInt32, getLn10, getPi, - * naturalLogarithm, config, parseOther, random, Decimal - */ - - - function digitsToString(d) { - var i, k, ws, - indexOfLastWord = d.length - 1, - str = '', - w = d[0]; - - if (indexOfLastWord > 0) { - str += w; - for (i = 1; i < indexOfLastWord; i++) { - ws = d[i] + ''; - k = LOG_BASE - ws.length; - if (k) str += getZeroString(k); - str += ws; - } - - w = d[i]; - ws = w + ''; - k = LOG_BASE - ws.length; - if (k) str += getZeroString(k); - } else if (w === 0) { - return '0'; - } - - // Remove trailing zeros of last w. - for (; w % 10 === 0;) w /= 10; - - return str + w; - } - - - function checkInt32(i, min, max) { - if (i !== ~~i || i < min || i > max) { - throw Error(invalidArgument + i); - } - } - - - /* - * Check 5 rounding digits if `repeating` is null, 4 otherwise. - * `repeating == null` if caller is `log` or `pow`, - * `repeating != null` if caller is `naturalLogarithm` or `naturalExponential`. - */ - function checkRoundingDigits(d, i, rm, repeating) { - var di, k, r, rd; - - // Get the length of the first word of the array d. - for (k = d[0]; k >= 10; k /= 10) --i; - - // Is the rounding digit in the first word of d? - if (--i < 0) { - i += LOG_BASE; - di = 0; - } else { - di = Math.ceil((i + 1) / LOG_BASE); - i %= LOG_BASE; - } - - // i is the index (0 - 6) of the rounding digit. - // E.g. if within the word 3487563 the first rounding digit is 5, - // then i = 4, k = 1000, rd = 3487563 % 1000 = 563 - k = mathpow(10, LOG_BASE - i); - rd = d[di] % k | 0; - - if (repeating == null) { - if (i < 3) { - if (i == 0) rd = rd / 100 | 0; - else if (i == 1) rd = rd / 10 | 0; - r = rm < 4 && rd == 99999 || rm > 3 && rd == 49999 || rd == 50000 || rd == 0; - } else { - r = (rm < 4 && rd + 1 == k || rm > 3 && rd + 1 == k / 2) && - (d[di + 1] / k / 100 | 0) == mathpow(10, i - 2) - 1 || - (rd == k / 2 || rd == 0) && (d[di + 1] / k / 100 | 0) == 0; - } - } else { - if (i < 4) { - if (i == 0) rd = rd / 1000 | 0; - else if (i == 1) rd = rd / 100 | 0; - else if (i == 2) rd = rd / 10 | 0; - r = (repeating || rm < 4) && rd == 9999 || !repeating && rm > 3 && rd == 4999; - } else { - r = ((repeating || rm < 4) && rd + 1 == k || - (!repeating && rm > 3) && rd + 1 == k / 2) && - (d[di + 1] / k / 1000 | 0) == mathpow(10, i - 3) - 1; - } - } - - return r; - } - - - // Convert string of `baseIn` to an array of numbers of `baseOut`. - // Eg. convertBase('255', 10, 16) returns [15, 15]. - // Eg. convertBase('ff', 16, 10) returns [2, 5, 5]. - function convertBase(str, baseIn, baseOut) { - var j, - arr = [0], - arrL, - i = 0, - strL = str.length; - - for (; i < strL;) { - for (arrL = arr.length; arrL--;) arr[arrL] *= baseIn; - arr[0] += NUMERALS.indexOf(str.charAt(i++)); - for (j = 0; j < arr.length; j++) { - if (arr[j] > baseOut - 1) { - if (arr[j + 1] === void 0) arr[j + 1] = 0; - arr[j + 1] += arr[j] / baseOut | 0; - arr[j] %= baseOut; - } - } - } - - return arr.reverse(); - } - - - /* - * cos(x) = 1 - x^2/2! + x^4/4! - ... - * |x| < pi/2 - * - */ - function cosine(Ctor, x) { - var k, len, y; - - if (x.isZero()) return x; - - // Argument reduction: cos(4x) = 8*(cos^4(x) - cos^2(x)) + 1 - // i.e. cos(x) = 8*(cos^4(x/4) - cos^2(x/4)) + 1 - - // Estimate the optimum number of times to use the argument reduction. - len = x.d.length; - if (len < 32) { - k = Math.ceil(len / 3); - y = (1 / tinyPow(4, k)).toString(); - } else { - k = 16; - y = '2.3283064365386962890625e-10'; - } - - Ctor.precision += k; - - x = taylorSeries(Ctor, 1, x.times(y), new Ctor(1)); - - // Reverse argument reduction - for (var i = k; i--;) { - var cos2x = x.times(x); - x = cos2x.times(cos2x).minus(cos2x).times(8).plus(1); - } - - Ctor.precision -= k; - - return x; - } - - - /* - * Perform division in the specified base. - */ - var divide = (function () { - - // Assumes non-zero x and k, and hence non-zero result. - function multiplyInteger(x, k, base) { - var temp, - carry = 0, - i = x.length; - - for (x = x.slice(); i--;) { - temp = x[i] * k + carry; - x[i] = temp % base | 0; - carry = temp / base | 0; - } - - if (carry) x.unshift(carry); - - return x; - } - - function compare(a, b, aL, bL) { - var i, r; - - if (aL != bL) { - r = aL > bL ? 1 : -1; - } else { - for (i = r = 0; i < aL; i++) { - if (a[i] != b[i]) { - r = a[i] > b[i] ? 1 : -1; - break; - } - } - } - - return r; - } - - function subtract(a, b, aL, base) { - var i = 0; - - // Subtract b from a. - for (; aL--;) { - a[aL] -= i; - i = a[aL] < b[aL] ? 1 : 0; - a[aL] = i * base + a[aL] - b[aL]; - } - - // Remove leading zeros. - for (; !a[0] && a.length > 1;) a.shift(); - } - - return function (x, y, pr, rm, dp, base) { - var cmp, e, i, k, logBase, more, prod, prodL, q, qd, rem, remL, rem0, sd, t, xi, xL, yd0, - yL, yz, - Ctor = x.constructor, - sign = x.s == y.s ? 1 : -1, - xd = x.d, - yd = y.d; - - // Either NaN, Infinity or 0? - if (!xd || !xd[0] || !yd || !yd[0]) { - - return new Ctor(// Return NaN if either NaN, or both Infinity or 0. - !x.s || !y.s || (xd ? yd && xd[0] == yd[0] : !yd) ? NaN : - - // Return ±0 if x is 0 or y is ±Infinity, or return ±Infinity as y is 0. - xd && xd[0] == 0 || !yd ? sign * 0 : sign / 0); - } - - if (base) { - logBase = 1; - e = x.e - y.e; - } else { - base = BASE; - logBase = LOG_BASE; - e = mathfloor(x.e / logBase) - mathfloor(y.e / logBase); - } - - yL = yd.length; - xL = xd.length; - q = new Ctor(sign); - qd = q.d = []; - - // Result exponent may be one less than e. - // The digit array of a Decimal from toStringBinary may have trailing zeros. - for (i = 0; yd[i] == (xd[i] || 0); i++); - - if (yd[i] > (xd[i] || 0)) e--; - - if (pr == null) { - sd = pr = Ctor.precision; - rm = Ctor.rounding; - } else if (dp) { - sd = pr + (x.e - y.e) + 1; - } else { - sd = pr; - } - - if (sd < 0) { - qd.push(1); - more = true; - } else { - - // Convert precision in number of base 10 digits to base 1e7 digits. - sd = sd / logBase + 2 | 0; - i = 0; - - // divisor < 1e7 - if (yL == 1) { - k = 0; - yd = yd[0]; - sd++; - - // k is the carry. - for (; (i < xL || k) && sd--; i++) { - t = k * base + (xd[i] || 0); - qd[i] = t / yd | 0; - k = t % yd | 0; - } - - more = k || i < xL; - - // divisor >= 1e7 - } else { - - // Normalise xd and yd so highest order digit of yd is >= base/2 - k = base / (yd[0] + 1) | 0; - - if (k > 1) { - yd = multiplyInteger(yd, k, base); - xd = multiplyInteger(xd, k, base); - yL = yd.length; - xL = xd.length; - } - - xi = yL; - rem = xd.slice(0, yL); - remL = rem.length; - - // Add zeros to make remainder as long as divisor. - for (; remL < yL;) rem[remL++] = 0; - - yz = yd.slice(); - yz.unshift(0); - yd0 = yd[0]; - - if (yd[1] >= base / 2) ++yd0; - - do { - k = 0; - - // Compare divisor and remainder. - cmp = compare(yd, rem, yL, remL); - - // If divisor < remainder. - if (cmp < 0) { - - // Calculate trial digit, k. - rem0 = rem[0]; - if (yL != remL) rem0 = rem0 * base + (rem[1] || 0); - - // k will be how many times the divisor goes into the current remainder. - k = rem0 / yd0 | 0; - - // Algorithm: - // 1. product = divisor * trial digit (k) - // 2. if product > remainder: product -= divisor, k-- - // 3. remainder -= product - // 4. if product was < remainder at 2: - // 5. compare new remainder and divisor - // 6. If remainder > divisor: remainder -= divisor, k++ - - if (k > 1) { - if (k >= base) k = base - 1; - - // product = divisor * trial digit. - prod = multiplyInteger(yd, k, base); - prodL = prod.length; - remL = rem.length; - - // Compare product and remainder. - cmp = compare(prod, rem, prodL, remL); - - // product > remainder. - if (cmp == 1) { - k--; - - // Subtract divisor from product. - subtract(prod, yL < prodL ? yz : yd, prodL, base); - } - } else { - - // cmp is -1. - // If k is 0, there is no need to compare yd and rem again below, so change cmp to 1 - // to avoid it. If k is 1 there is a need to compare yd and rem again below. - if (k == 0) cmp = k = 1; - prod = yd.slice(); - } - - prodL = prod.length; - if (prodL < remL) prod.unshift(0); - - // Subtract product from remainder. - subtract(rem, prod, remL, base); - - // If product was < previous remainder. - if (cmp == -1) { - remL = rem.length; - - // Compare divisor and new remainder. - cmp = compare(yd, rem, yL, remL); - - // If divisor < new remainder, subtract divisor from remainder. - if (cmp < 1) { - k++; - - // Subtract divisor from remainder. - subtract(rem, yL < remL ? yz : yd, remL, base); - } - } - - remL = rem.length; - } else if (cmp === 0) { - k++; - rem = [0]; - } // if cmp === 1, k will be 0 - - // Add the next digit, k, to the result array. - qd[i++] = k; - - // Update the remainder. - if (cmp && rem[0]) { - rem[remL++] = xd[xi] || 0; - } else { - rem = [xd[xi]]; - remL = 1; - } - - } while ((xi++ < xL || rem[0] !== void 0) && sd--); - - more = rem[0] !== void 0; - } - - // Leading zero? - if (!qd[0]) qd.shift(); - } - - // logBase is 1 when divide is being used for base conversion. - if (logBase == 1) { - q.e = e; - inexact = more; - } else { - - // To calculate q.e, first get the number of digits of qd[0]. - for (i = 1, k = qd[0]; k >= 10; k /= 10) i++; - q.e = i + e * logBase - 1; - - finalise(q, dp ? pr + q.e + 1 : pr, rm, more); - } - - return q; - }; - })(); - - - /* - * Round `x` to `sd` significant digits using rounding mode `rm`. - * Check for over/under-flow. - */ - function finalise(x, sd, rm, isTruncated) { - var digits, i, j, k, rd, roundUp, w, xd, xdi, - Ctor = x.constructor; - - // Don't round if sd is null or undefined. - out: if (sd != null) { - xd = x.d; - - // Infinity/NaN. - if (!xd) return x; - - // rd: the rounding digit, i.e. the digit after the digit that may be rounded up. - // w: the word of xd containing rd, a base 1e7 number. - // xdi: the index of w within xd. - // digits: the number of digits of w. - // i: what would be the index of rd within w if all the numbers were 7 digits long (i.e. if - // they had leading zeros) - // j: if > 0, the actual index of rd within w (if < 0, rd is a leading zero). - - // Get the length of the first word of the digits array xd. - for (digits = 1, k = xd[0]; k >= 10; k /= 10) digits++; - i = sd - digits; - - // Is the rounding digit in the first word of xd? - if (i < 0) { - i += LOG_BASE; - j = sd; - w = xd[xdi = 0]; - - // Get the rounding digit at index j of w. - rd = w / mathpow(10, digits - j - 1) % 10 | 0; - } else { - xdi = Math.ceil((i + 1) / LOG_BASE); - k = xd.length; - if (xdi >= k) { - if (isTruncated) { - - // Needed by `naturalExponential`, `naturalLogarithm` and `squareRoot`. - for (; k++ <= xdi;) xd.push(0); - w = rd = 0; - digits = 1; - i %= LOG_BASE; - j = i - LOG_BASE + 1; - } else { - break out; - } - } else { - w = k = xd[xdi]; - - // Get the number of digits of w. - for (digits = 1; k >= 10; k /= 10) digits++; - - // Get the index of rd within w. - i %= LOG_BASE; - - // Get the index of rd within w, adjusted for leading zeros. - // The number of leading zeros of w is given by LOG_BASE - digits. - j = i - LOG_BASE + digits; - - // Get the rounding digit at index j of w. - rd = j < 0 ? 0 : w / mathpow(10, digits - j - 1) % 10 | 0; - } - } - - // Are there any non-zero digits after the rounding digit? - isTruncated = isTruncated || sd < 0 || - xd[xdi + 1] !== void 0 || (j < 0 ? w : w % mathpow(10, digits - j - 1)); - - // The expression `w % mathpow(10, digits - j - 1)` returns all the digits of w to the right - // of the digit at (left-to-right) index j, e.g. if w is 908714 and j is 2, the expression - // will give 714. - - roundUp = rm < 4 - ? (rd || isTruncated) && (rm == 0 || rm == (x.s < 0 ? 3 : 2)) - : rd > 5 || rd == 5 && (rm == 4 || isTruncated || rm == 6 && - - // Check whether the digit to the left of the rounding digit is odd. - ((i > 0 ? j > 0 ? w / mathpow(10, digits - j) : 0 : xd[xdi - 1]) % 10) & 1 || - rm == (x.s < 0 ? 8 : 7)); - - if (sd < 1 || !xd[0]) { - xd.length = 0; - if (roundUp) { - - // Convert sd to decimal places. - sd -= x.e + 1; - - // 1, 0.1, 0.01, 0.001, 0.0001 etc. - xd[0] = mathpow(10, (LOG_BASE - sd % LOG_BASE) % LOG_BASE); - x.e = -sd || 0; - } else { - - // Zero. - xd[0] = x.e = 0; - } - - return x; - } - - // Remove excess digits. - if (i == 0) { - xd.length = xdi; - k = 1; - xdi--; - } else { - xd.length = xdi + 1; - k = mathpow(10, LOG_BASE - i); - - // E.g. 56700 becomes 56000 if 7 is the rounding digit. - // j > 0 means i > number of leading zeros of w. - xd[xdi] = j > 0 ? (w / mathpow(10, digits - j) % mathpow(10, j) | 0) * k : 0; - } - - if (roundUp) { - for (;;) { - - // Is the digit to be rounded up in the first word of xd? - if (xdi == 0) { - - // i will be the length of xd[0] before k is added. - for (i = 1, j = xd[0]; j >= 10; j /= 10) i++; - j = xd[0] += k; - for (k = 1; j >= 10; j /= 10) k++; - - // if i != k the length has increased. - if (i != k) { - x.e++; - if (xd[0] == BASE) xd[0] = 1; - } - - break; - } else { - xd[xdi] += k; - if (xd[xdi] != BASE) break; - xd[xdi--] = 0; - k = 1; - } - } - } - - // Remove trailing zeros. - for (i = xd.length; xd[--i] === 0;) xd.pop(); - } - - if (external) { - - // Overflow? - if (x.e > Ctor.maxE) { - - // Infinity. - x.d = null; - x.e = NaN; - - // Underflow? - } else if (x.e < Ctor.minE) { - - // Zero. - x.e = 0; - x.d = [0]; - // Ctor.underflow = true; - } // else Ctor.underflow = false; - } - - return x; - } - - - function finiteToString(x, isExp, sd) { - if (!x.isFinite()) return nonFiniteToString(x); - var k, - e = x.e, - str = digitsToString(x.d), - len = str.length; - - if (isExp) { - if (sd && (k = sd - len) > 0) { - str = str.charAt(0) + '.' + str.slice(1) + getZeroString(k); - } else if (len > 1) { - str = str.charAt(0) + '.' + str.slice(1); - } - - str = str + (x.e < 0 ? 'e' : 'e+') + x.e; - } else if (e < 0) { - str = '0.' + getZeroString(-e - 1) + str; - if (sd && (k = sd - len) > 0) str += getZeroString(k); - } else if (e >= len) { - str += getZeroString(e + 1 - len); - if (sd && (k = sd - e - 1) > 0) str = str + '.' + getZeroString(k); - } else { - if ((k = e + 1) < len) str = str.slice(0, k) + '.' + str.slice(k); - if (sd && (k = sd - len) > 0) { - if (e + 1 === len) str += '.'; - str += getZeroString(k); - } - } - - return str; - } - - - // Calculate the base 10 exponent from the base 1e7 exponent. - function getBase10Exponent(digits, e) { - var w = digits[0]; - - // Add the number of digits of the first word of the digits array. - for ( e *= LOG_BASE; w >= 10; w /= 10) e++; - return e; - } - - - function getLn10(Ctor, sd, pr) { - if (sd > LN10_PRECISION) { - - // Reset global state in case the exception is caught. - external = true; - if (pr) Ctor.precision = pr; - throw Error(precisionLimitExceeded); - } - return finalise(new Ctor(LN10), sd, 1, true); - } - - - function getPi(Ctor, sd, rm) { - if (sd > PI_PRECISION) throw Error(precisionLimitExceeded); - return finalise(new Ctor(PI), sd, rm, true); - } - - - function getPrecision(digits) { - var w = digits.length - 1, - len = w * LOG_BASE + 1; - - w = digits[w]; - - // If non-zero... - if (w) { - - // Subtract the number of trailing zeros of the last word. - for (; w % 10 == 0; w /= 10) len--; - - // Add the number of digits of the first word. - for (w = digits[0]; w >= 10; w /= 10) len++; - } - - return len; - } - - - function getZeroString(k) { - var zs = ''; - for (; k--;) zs += '0'; - return zs; - } - - - /* - * Return a new Decimal whose value is the value of Decimal `x` to the power `n`, where `n` is an - * integer of type number. - * - * Implements 'exponentiation by squaring'. Called by `pow` and `parseOther`. - * - */ - function intPow(Ctor, x, n, pr) { - var isTruncated, - r = new Ctor(1), - - // Max n of 9007199254740991 takes 53 loop iterations. - // Maximum digits array length; leaves [28, 34] guard digits. - k = Math.ceil(pr / LOG_BASE + 4); - - external = false; - - for (;;) { - if (n % 2) { - r = r.times(x); - if (truncate(r.d, k)) isTruncated = true; - } - - n = mathfloor(n / 2); - if (n === 0) { - - // To ensure correct rounding when r.d is truncated, increment the last word if it is zero. - n = r.d.length - 1; - if (isTruncated && r.d[n] === 0) ++r.d[n]; - break; - } - - x = x.times(x); - truncate(x.d, k); - } - - external = true; - - return r; - } - - - function isOdd(n) { - return n.d[n.d.length - 1] & 1; - } - - - /* - * Handle `max` and `min`. `ltgt` is 'lt' or 'gt'. - */ - function maxOrMin(Ctor, args, ltgt) { - var y, - x = new Ctor(args[0]), - i = 0; - - for (; ++i < args.length;) { - y = new Ctor(args[i]); - if (!y.s) { - x = y; - break; - } else if (x[ltgt](y)) { - x = y; - } - } - - return x; - } - - - /* - * Return a new Decimal whose value is the natural exponential of `x` rounded to `sd` significant - * digits. - * - * Taylor/Maclaurin series. - * - * exp(x) = x^0/0! + x^1/1! + x^2/2! + x^3/3! + ... - * - * Argument reduction: - * Repeat x = x / 32, k += 5, until |x| < 0.1 - * exp(x) = exp(x / 2^k)^(2^k) - * - * Previously, the argument was initially reduced by - * exp(x) = exp(r) * 10^k where r = x - k * ln10, k = floor(x / ln10) - * to first put r in the range [0, ln10], before dividing by 32 until |x| < 0.1, but this was - * found to be slower than just dividing repeatedly by 32 as above. - * - * Max integer argument: exp('20723265836946413') = 6.3e+9000000000000000 - * Min integer argument: exp('-20723265836946411') = 1.2e-9000000000000000 - * (Math object integer min/max: Math.exp(709) = 8.2e+307, Math.exp(-745) = 5e-324) - * - * exp(Infinity) = Infinity - * exp(-Infinity) = 0 - * exp(NaN) = NaN - * exp(±0) = 1 - * - * exp(x) is non-terminating for any finite, non-zero x. - * - * The result will always be correctly rounded. - * - */ - function naturalExponential(x, sd) { - var denominator, guard, j, pow, sum, t, wpr, - rep = 0, - i = 0, - k = 0, - Ctor = x.constructor, - rm = Ctor.rounding, - pr = Ctor.precision; - - // 0/NaN/Infinity? - if (!x.d || !x.d[0] || x.e > 17) { - - return new Ctor(x.d - ? !x.d[0] ? 1 : x.s < 0 ? 0 : 1 / 0 - : x.s ? x.s < 0 ? 0 : x : 0 / 0); - } - - if (sd == null) { - external = false; - wpr = pr; - } else { - wpr = sd; - } - - t = new Ctor(0.03125); - - // while abs(x) >= 0.1 - while (x.e > -2) { - - // x = x / 2^5 - x = x.times(t); - k += 5; - } - - // Use 2 * log10(2^k) + 5 (empirically derived) to estimate the increase in precision - // necessary to ensure the first 4 rounding digits are correct. - guard = Math.log(mathpow(2, k)) / Math.LN10 * 2 + 5 | 0; - wpr += guard; - denominator = pow = sum = new Ctor(1); - Ctor.precision = wpr; - - for (;;) { - pow = finalise(pow.times(x), wpr, 1); - denominator = denominator.times(++i); - t = sum.plus(divide(pow, denominator, wpr, 1)); - - if (digitsToString(t.d).slice(0, wpr) === digitsToString(sum.d).slice(0, wpr)) { - j = k; - while (j--) sum = finalise(sum.times(sum), wpr, 1); - - // Check to see if the first 4 rounding digits are [49]999. - // If so, repeat the summation with a higher precision, otherwise - // e.g. with precision: 18, rounding: 1 - // exp(18.404272462595034083567793919843761) = 98372560.1229999999 (should be 98372560.123) - // `wpr - guard` is the index of first rounding digit. - if (sd == null) { - - if (rep < 3 && checkRoundingDigits(sum.d, wpr - guard, rm, rep)) { - Ctor.precision = wpr += 10; - denominator = pow = t = new Ctor(1); - i = 0; - rep++; - } else { - return finalise(sum, Ctor.precision = pr, rm, external = true); - } - } else { - Ctor.precision = pr; - return sum; - } - } - - sum = t; - } - } - - - /* - * Return a new Decimal whose value is the natural logarithm of `x` rounded to `sd` significant - * digits. - * - * ln(-n) = NaN - * ln(0) = -Infinity - * ln(-0) = -Infinity - * ln(1) = 0 - * ln(Infinity) = Infinity - * ln(-Infinity) = NaN - * ln(NaN) = NaN - * - * ln(n) (n != 1) is non-terminating. - * - */ - function naturalLogarithm(y, sd) { - var c, c0, denominator, e, numerator, rep, sum, t, wpr, x1, x2, - n = 1, - guard = 10, - x = y, - xd = x.d, - Ctor = x.constructor, - rm = Ctor.rounding, - pr = Ctor.precision; - - // Is x negative or Infinity, NaN, 0 or 1? - if (x.s < 0 || !xd || !xd[0] || !x.e && xd[0] == 1 && xd.length == 1) { - return new Ctor(xd && !xd[0] ? -1 / 0 : x.s != 1 ? NaN : xd ? 0 : x); - } - - if (sd == null) { - external = false; - wpr = pr; - } else { - wpr = sd; - } - - Ctor.precision = wpr += guard; - c = digitsToString(xd); - c0 = c.charAt(0); - - if (Math.abs(e = x.e) < 1.5e15) { - - // Argument reduction. - // The series converges faster the closer the argument is to 1, so using - // ln(a^b) = b * ln(a), ln(a) = ln(a^b) / b - // multiply the argument by itself until the leading digits of the significand are 7, 8, 9, - // 10, 11, 12 or 13, recording the number of multiplications so the sum of the series can - // later be divided by this number, then separate out the power of 10 using - // ln(a*10^b) = ln(a) + b*ln(10). - - // max n is 21 (gives 0.9, 1.0 or 1.1) (9e15 / 21 = 4.2e14). - //while (c0 < 9 && c0 != 1 || c0 == 1 && c.charAt(1) > 1) { - // max n is 6 (gives 0.7 - 1.3) - while (c0 < 7 && c0 != 1 || c0 == 1 && c.charAt(1) > 3) { - x = x.times(y); - c = digitsToString(x.d); - c0 = c.charAt(0); - n++; - } - - e = x.e; - - if (c0 > 1) { - x = new Ctor('0.' + c); - e++; - } else { - x = new Ctor(c0 + '.' + c.slice(1)); - } - } else { - - // The argument reduction method above may result in overflow if the argument y is a massive - // number with exponent >= 1500000000000000 (9e15 / 6 = 1.5e15), so instead recall this - // function using ln(x*10^e) = ln(x) + e*ln(10). - t = getLn10(Ctor, wpr + 2, pr).times(e + ''); - x = naturalLogarithm(new Ctor(c0 + '.' + c.slice(1)), wpr - guard).plus(t); - Ctor.precision = pr; - - return sd == null ? finalise(x, pr, rm, external = true) : x; - } - - // x1 is x reduced to a value near 1. - x1 = x; - - // Taylor series. - // ln(y) = ln((1 + x)/(1 - x)) = 2(x + x^3/3 + x^5/5 + x^7/7 + ...) - // where x = (y - 1)/(y + 1) (|x| < 1) - sum = numerator = x = divide(x.minus(1), x.plus(1), wpr, 1); - x2 = finalise(x.times(x), wpr, 1); - denominator = 3; - - for (;;) { - numerator = finalise(numerator.times(x2), wpr, 1); - t = sum.plus(divide(numerator, new Ctor(denominator), wpr, 1)); - - if (digitsToString(t.d).slice(0, wpr) === digitsToString(sum.d).slice(0, wpr)) { - sum = sum.times(2); - - // Reverse the argument reduction. Check that e is not 0 because, besides preventing an - // unnecessary calculation, -0 + 0 = +0 and to ensure correct rounding -0 needs to stay -0. - if (e !== 0) sum = sum.plus(getLn10(Ctor, wpr + 2, pr).times(e + '')); - sum = divide(sum, new Ctor(n), wpr, 1); - - // Is rm > 3 and the first 4 rounding digits 4999, or rm < 4 (or the summation has - // been repeated previously) and the first 4 rounding digits 9999? - // If so, restart the summation with a higher precision, otherwise - // e.g. with precision: 12, rounding: 1 - // ln(135520028.6126091714265381533) = 18.7246299999 when it should be 18.72463. - // `wpr - guard` is the index of first rounding digit. - if (sd == null) { - if (checkRoundingDigits(sum.d, wpr - guard, rm, rep)) { - Ctor.precision = wpr += guard; - t = numerator = x = divide(x1.minus(1), x1.plus(1), wpr, 1); - x2 = finalise(x.times(x), wpr, 1); - denominator = rep = 1; - } else { - return finalise(sum, Ctor.precision = pr, rm, external = true); - } - } else { - Ctor.precision = pr; - return sum; - } - } - - sum = t; - denominator += 2; - } - } - - - // ±Infinity, NaN. - function nonFiniteToString(x) { - // Unsigned. - return String(x.s * x.s / 0); - } - - - /* - * Parse the value of a new Decimal `x` from string `str`. - */ - function parseDecimal(x, str) { - var e, i, len; - - // Decimal point? - if ((e = str.indexOf('.')) > -1) str = str.replace('.', ''); - - // Exponential form? - if ((i = str.search(/e/i)) > 0) { - - // Determine exponent. - if (e < 0) e = i; - e += +str.slice(i + 1); - str = str.substring(0, i); - } else if (e < 0) { - - // Integer. - e = str.length; - } - - // Determine leading zeros. - for (i = 0; str.charCodeAt(i) === 48; i++); - - // Determine trailing zeros. - for (len = str.length; str.charCodeAt(len - 1) === 48; --len); - str = str.slice(i, len); - - if (str) { - len -= i; - x.e = e = e - i - 1; - x.d = []; - - // Transform base - - // e is the base 10 exponent. - // i is where to slice str to get the first word of the digits array. - i = (e + 1) % LOG_BASE; - if (e < 0) i += LOG_BASE; - - if (i < len) { - if (i) x.d.push(+str.slice(0, i)); - for (len -= LOG_BASE; i < len;) x.d.push(+str.slice(i, i += LOG_BASE)); - str = str.slice(i); - i = LOG_BASE - str.length; - } else { - i -= len; - } - - for (; i--;) str += '0'; - x.d.push(+str); - - if (external) { - - // Overflow? - if (x.e > x.constructor.maxE) { - - // Infinity. - x.d = null; - x.e = NaN; - - // Underflow? - } else if (x.e < x.constructor.minE) { - - // Zero. - x.e = 0; - x.d = [0]; - // x.constructor.underflow = true; - } // else x.constructor.underflow = false; - } - } else { - - // Zero. - x.e = 0; - x.d = [0]; - } - - return x; - } - - - /* - * Parse the value of a new Decimal `x` from a string `str`, which is not a decimal value. - */ - function parseOther(x, str) { - var base, Ctor, divisor, i, isFloat, len, p, xd, xe; - - if (str.indexOf('_') > -1) { - str = str.replace(/(\d)_(?=\d)/g, '$1'); - if (isDecimal.test(str)) return parseDecimal(x, str); - } else if (str === 'Infinity' || str === 'NaN') { - if (!+str) x.s = NaN; - x.e = NaN; - x.d = null; - return x; - } - - if (isHex.test(str)) { - base = 16; - str = str.toLowerCase(); - } else if (isBinary.test(str)) { - base = 2; - } else if (isOctal.test(str)) { - base = 8; - } else { - throw Error(invalidArgument + str); - } - - // Is there a binary exponent part? - i = str.search(/p/i); - - if (i > 0) { - p = +str.slice(i + 1); - str = str.substring(2, i); - } else { - str = str.slice(2); - } - - // Convert `str` as an integer then divide the result by `base` raised to a power such that the - // fraction part will be restored. - i = str.indexOf('.'); - isFloat = i >= 0; - Ctor = x.constructor; - - if (isFloat) { - str = str.replace('.', ''); - len = str.length; - i = len - i; - - // log[10](16) = 1.2041... , log[10](88) = 1.9444.... - divisor = intPow(Ctor, new Ctor(base), i, i * 2); - } - - xd = convertBase(str, base, BASE); - xe = xd.length - 1; - - // Remove trailing zeros. - for (i = xe; xd[i] === 0; --i) xd.pop(); - if (i < 0) return new Ctor(x.s * 0); - x.e = getBase10Exponent(xd, xe); - x.d = xd; - external = false; - - // At what precision to perform the division to ensure exact conversion? - // maxDecimalIntegerPartDigitCount = ceil(log[10](b) * otherBaseIntegerPartDigitCount) - // log[10](2) = 0.30103, log[10](8) = 0.90309, log[10](16) = 1.20412 - // E.g. ceil(1.2 * 3) = 4, so up to 4 decimal digits are needed to represent 3 hex int digits. - // maxDecimalFractionPartDigitCount = {Hex:4|Oct:3|Bin:1} * otherBaseFractionPartDigitCount - // Therefore using 4 * the number of digits of str will always be enough. - if (isFloat) x = divide(x, divisor, len * 4); - - // Multiply by the binary exponent part if present. - if (p) x = x.times(Math.abs(p) < 54 ? mathpow(2, p) : Decimal.pow(2, p)); - external = true; - - return x; - } - - - /* - * sin(x) = x - x^3/3! + x^5/5! - ... - * |x| < pi/2 - * - */ - function sine(Ctor, x) { - var k, - len = x.d.length; - - if (len < 3) { - return x.isZero() ? x : taylorSeries(Ctor, 2, x, x); - } - - // Argument reduction: sin(5x) = 16*sin^5(x) - 20*sin^3(x) + 5*sin(x) - // i.e. sin(x) = 16*sin^5(x/5) - 20*sin^3(x/5) + 5*sin(x/5) - // and sin(x) = sin(x/5)(5 + sin^2(x/5)(16sin^2(x/5) - 20)) - - // Estimate the optimum number of times to use the argument reduction. - k = 1.4 * Math.sqrt(len); - k = k > 16 ? 16 : k | 0; - - x = x.times(1 / tinyPow(5, k)); - x = taylorSeries(Ctor, 2, x, x); - - // Reverse argument reduction - var sin2_x, - d5 = new Ctor(5), - d16 = new Ctor(16), - d20 = new Ctor(20); - for (; k--;) { - sin2_x = x.times(x); - x = x.times(d5.plus(sin2_x.times(d16.times(sin2_x).minus(d20)))); - } - - return x; - } - - - // Calculate Taylor series for `cos`, `cosh`, `sin` and `sinh`. - function taylorSeries(Ctor, n, x, y, isHyperbolic) { - var j, t, u, x2, - i = 1, - pr = Ctor.precision, - k = Math.ceil(pr / LOG_BASE); - - external = false; - x2 = x.times(x); - u = new Ctor(y); - - for (;;) { - t = divide(u.times(x2), new Ctor(n++ * n++), pr, 1); - u = isHyperbolic ? y.plus(t) : y.minus(t); - y = divide(t.times(x2), new Ctor(n++ * n++), pr, 1); - t = u.plus(y); - - if (t.d[k] !== void 0) { - for (j = k; t.d[j] === u.d[j] && j--;); - if (j == -1) break; - } - - j = u; - u = y; - y = t; - t = j; - i++; - } - - external = true; - t.d.length = k + 1; - - return t; - } - - - // Exponent e must be positive and non-zero. - function tinyPow(b, e) { - var n = b; - while (--e) n *= b; - return n; - } - - - // Return the absolute value of `x` reduced to less than or equal to half pi. - function toLessThanHalfPi(Ctor, x) { - var t, - isNeg = x.s < 0, - pi = getPi(Ctor, Ctor.precision, 1), - halfPi = pi.times(0.5); - - x = x.abs(); - - if (x.lte(halfPi)) { - quadrant = isNeg ? 4 : 1; - return x; - } - - t = x.divToInt(pi); - - if (t.isZero()) { - quadrant = isNeg ? 3 : 2; - } else { - x = x.minus(t.times(pi)); - - // 0 <= x < pi - if (x.lte(halfPi)) { - quadrant = isOdd(t) ? (isNeg ? 2 : 3) : (isNeg ? 4 : 1); - return x; - } - - quadrant = isOdd(t) ? (isNeg ? 1 : 4) : (isNeg ? 3 : 2); - } - - return x.minus(pi).abs(); - } - - - /* - * Return the value of Decimal `x` as a string in base `baseOut`. - * - * If the optional `sd` argument is present include a binary exponent suffix. - */ - function toStringBinary(x, baseOut, sd, rm) { - var base, e, i, k, len, roundUp, str, xd, y, - Ctor = x.constructor, - isExp = sd !== void 0; - - if (isExp) { - checkInt32(sd, 1, MAX_DIGITS); - if (rm === void 0) rm = Ctor.rounding; - else checkInt32(rm, 0, 8); - } else { - sd = Ctor.precision; - rm = Ctor.rounding; - } - - if (!x.isFinite()) { - str = nonFiniteToString(x); - } else { - str = finiteToString(x); - i = str.indexOf('.'); - - // Use exponential notation according to `toExpPos` and `toExpNeg`? No, but if required: - // maxBinaryExponent = floor((decimalExponent + 1) * log[2](10)) - // minBinaryExponent = floor(decimalExponent * log[2](10)) - // log[2](10) = 3.321928094887362347870319429489390175864 - - if (isExp) { - base = 2; - if (baseOut == 16) { - sd = sd * 4 - 3; - } else if (baseOut == 8) { - sd = sd * 3 - 2; - } - } else { - base = baseOut; - } - - // Convert the number as an integer then divide the result by its base raised to a power such - // that the fraction part will be restored. - - // Non-integer. - if (i >= 0) { - str = str.replace('.', ''); - y = new Ctor(1); - y.e = str.length - i; - y.d = convertBase(finiteToString(y), 10, base); - y.e = y.d.length; - } - - xd = convertBase(str, 10, base); - e = len = xd.length; - - // Remove trailing zeros. - for (; xd[--len] == 0;) xd.pop(); - - if (!xd[0]) { - str = isExp ? '0p+0' : '0'; - } else { - if (i < 0) { - e--; - } else { - x = new Ctor(x); - x.d = xd; - x.e = e; - x = divide(x, y, sd, rm, 0, base); - xd = x.d; - e = x.e; - roundUp = inexact; - } - - // The rounding digit, i.e. the digit after the digit that may be rounded up. - i = xd[sd]; - k = base / 2; - roundUp = roundUp || xd[sd + 1] !== void 0; - - roundUp = rm < 4 - ? (i !== void 0 || roundUp) && (rm === 0 || rm === (x.s < 0 ? 3 : 2)) - : i > k || i === k && (rm === 4 || roundUp || rm === 6 && xd[sd - 1] & 1 || - rm === (x.s < 0 ? 8 : 7)); - - xd.length = sd; - - if (roundUp) { - - // Rounding up may mean the previous digit has to be rounded up and so on. - for (; ++xd[--sd] > base - 1;) { - xd[sd] = 0; - if (!sd) { - ++e; - xd.unshift(1); - } - } - } - - // Determine trailing zeros. - for (len = xd.length; !xd[len - 1]; --len); - - // E.g. [4, 11, 15] becomes 4bf. - for (i = 0, str = ''; i < len; i++) str += NUMERALS.charAt(xd[i]); - - // Add binary exponent suffix? - if (isExp) { - if (len > 1) { - if (baseOut == 16 || baseOut == 8) { - i = baseOut == 16 ? 4 : 3; - for (--len; len % i; len++) str += '0'; - xd = convertBase(str, base, baseOut); - for (len = xd.length; !xd[len - 1]; --len); - - // xd[0] will always be be 1 - for (i = 1, str = '1.'; i < len; i++) str += NUMERALS.charAt(xd[i]); - } else { - str = str.charAt(0) + '.' + str.slice(1); - } - } - - str = str + (e < 0 ? 'p' : 'p+') + e; - } else if (e < 0) { - for (; ++e;) str = '0' + str; - str = '0.' + str; - } else { - if (++e > len) for (e -= len; e-- ;) str += '0'; - else if (e < len) str = str.slice(0, e) + '.' + str.slice(e); - } - } - - str = (baseOut == 16 ? '0x' : baseOut == 2 ? '0b' : baseOut == 8 ? '0o' : '') + str; - } - - return x.s < 0 ? '-' + str : str; - } - - - // Does not strip trailing zeros. - function truncate(arr, len) { - if (arr.length > len) { - arr.length = len; - return true; - } - } - - - // Decimal methods - - - /* - * abs - * acos - * acosh - * add - * asin - * asinh - * atan - * atanh - * atan2 - * cbrt - * ceil - * clamp - * clone - * config - * cos - * cosh - * div - * exp - * floor - * hypot - * ln - * log - * log2 - * log10 - * max - * min - * mod - * mul - * pow - * random - * round - * set - * sign - * sin - * sinh - * sqrt - * sub - * sum - * tan - * tanh - * trunc - */ - - - /* - * Return a new Decimal whose value is the absolute value of `x`. - * - * x {number|string|Decimal} - * - */ - function abs(x) { - return new this(x).abs(); - } - - - /* - * Return a new Decimal whose value is the arccosine in radians of `x`. - * - * x {number|string|Decimal} - * - */ - function acos(x) { - return new this(x).acos(); - } - - - /* - * Return a new Decimal whose value is the inverse of the hyperbolic cosine of `x`, rounded to - * `precision` significant digits using rounding mode `rounding`. - * - * x {number|string|Decimal} A value in radians. - * - */ - function acosh(x) { - return new this(x).acosh(); - } - - - /* - * Return a new Decimal whose value is the sum of `x` and `y`, rounded to `precision` significant - * digits using rounding mode `rounding`. - * - * x {number|string|Decimal} - * y {number|string|Decimal} - * - */ - function add(x, y) { - return new this(x).plus(y); - } - - - /* - * Return a new Decimal whose value is the arcsine in radians of `x`, rounded to `precision` - * significant digits using rounding mode `rounding`. - * - * x {number|string|Decimal} - * - */ - function asin(x) { - return new this(x).asin(); - } - - - /* - * Return a new Decimal whose value is the inverse of the hyperbolic sine of `x`, rounded to - * `precision` significant digits using rounding mode `rounding`. - * - * x {number|string|Decimal} A value in radians. - * - */ - function asinh(x) { - return new this(x).asinh(); - } - - - /* - * Return a new Decimal whose value is the arctangent in radians of `x`, rounded to `precision` - * significant digits using rounding mode `rounding`. - * - * x {number|string|Decimal} - * - */ - function atan(x) { - return new this(x).atan(); - } - - - /* - * Return a new Decimal whose value is the inverse of the hyperbolic tangent of `x`, rounded to - * `precision` significant digits using rounding mode `rounding`. - * - * x {number|string|Decimal} A value in radians. - * - */ - function atanh(x) { - return new this(x).atanh(); - } - - - /* - * Return a new Decimal whose value is the arctangent in radians of `y/x` in the range -pi to pi - * (inclusive), rounded to `precision` significant digits using rounding mode `rounding`. - * - * Domain: [-Infinity, Infinity] - * Range: [-pi, pi] - * - * y {number|string|Decimal} The y-coordinate. - * x {number|string|Decimal} The x-coordinate. - * - * atan2(±0, -0) = ±pi - * atan2(±0, +0) = ±0 - * atan2(±0, -x) = ±pi for x > 0 - * atan2(±0, x) = ±0 for x > 0 - * atan2(-y, ±0) = -pi/2 for y > 0 - * atan2(y, ±0) = pi/2 for y > 0 - * atan2(±y, -Infinity) = ±pi for finite y > 0 - * atan2(±y, +Infinity) = ±0 for finite y > 0 - * atan2(±Infinity, x) = ±pi/2 for finite x - * atan2(±Infinity, -Infinity) = ±3*pi/4 - * atan2(±Infinity, +Infinity) = ±pi/4 - * atan2(NaN, x) = NaN - * atan2(y, NaN) = NaN - * - */ - function atan2(y, x) { - y = new this(y); - x = new this(x); - var r, - pr = this.precision, - rm = this.rounding, - wpr = pr + 4; - - // Either NaN - if (!y.s || !x.s) { - r = new this(NaN); - - // Both ±Infinity - } else if (!y.d && !x.d) { - r = getPi(this, wpr, 1).times(x.s > 0 ? 0.25 : 0.75); - r.s = y.s; - - // x is ±Infinity or y is ±0 - } else if (!x.d || y.isZero()) { - r = x.s < 0 ? getPi(this, pr, rm) : new this(0); - r.s = y.s; - - // y is ±Infinity or x is ±0 - } else if (!y.d || x.isZero()) { - r = getPi(this, wpr, 1).times(0.5); - r.s = y.s; - - // Both non-zero and finite - } else if (x.s < 0) { - this.precision = wpr; - this.rounding = 1; - r = this.atan(divide(y, x, wpr, 1)); - x = getPi(this, wpr, 1); - this.precision = pr; - this.rounding = rm; - r = y.s < 0 ? r.minus(x) : r.plus(x); - } else { - r = this.atan(divide(y, x, wpr, 1)); - } - - return r; - } - - - /* - * Return a new Decimal whose value is the cube root of `x`, rounded to `precision` significant - * digits using rounding mode `rounding`. - * - * x {number|string|Decimal} - * - */ - function cbrt(x) { - return new this(x).cbrt(); - } - - - /* - * Return a new Decimal whose value is `x` rounded to an integer using `ROUND_CEIL`. - * - * x {number|string|Decimal} - * - */ - function ceil(x) { - return finalise(x = new this(x), x.e + 1, 2); - } - - - /* - * Return a new Decimal whose value is `x` clamped to the range delineated by `min` and `max`. - * - * x {number|string|Decimal} - * min {number|string|Decimal} - * max {number|string|Decimal} - * - */ - function clamp(x, min, max) { - return new this(x).clamp(min, max); - } - - - /* - * Configure global settings for a Decimal constructor. - * - * `obj` is an object with one or more of the following properties, - * - * precision {number} - * rounding {number} - * toExpNeg {number} - * toExpPos {number} - * maxE {number} - * minE {number} - * modulo {number} - * crypto {boolean|number} - * defaults {true} - * - * E.g. Decimal.config({ precision: 20, rounding: 4 }) - * - */ - function config(obj) { - if (!obj || typeof obj !== 'object') throw Error(decimalError + 'Object expected'); - var i, p, v, - useDefaults = obj.defaults === true, - ps = [ - 'precision', 1, MAX_DIGITS, - 'rounding', 0, 8, - 'toExpNeg', -EXP_LIMIT, 0, - 'toExpPos', 0, EXP_LIMIT, - 'maxE', 0, EXP_LIMIT, - 'minE', -EXP_LIMIT, 0, - 'modulo', 0, 9 - ]; - - for (i = 0; i < ps.length; i += 3) { - if (p = ps[i], useDefaults) this[p] = DEFAULTS[p]; - if ((v = obj[p]) !== void 0) { - if (mathfloor(v) === v && v >= ps[i + 1] && v <= ps[i + 2]) this[p] = v; - else throw Error(invalidArgument + p + ': ' + v); - } - } - - if (p = 'crypto', useDefaults) this[p] = DEFAULTS[p]; - if ((v = obj[p]) !== void 0) { - if (v === true || v === false || v === 0 || v === 1) { - if (v) { - if (typeof crypto != 'undefined' && crypto && - (crypto.getRandomValues || crypto.randomBytes)) { - this[p] = true; - } else { - throw Error(cryptoUnavailable); - } - } else { - this[p] = false; - } - } else { - throw Error(invalidArgument + p + ': ' + v); - } - } - - return this; - } - - - /* - * Return a new Decimal whose value is the cosine of `x`, rounded to `precision` significant - * digits using rounding mode `rounding`. - * - * x {number|string|Decimal} A value in radians. - * - */ - function cos(x) { - return new this(x).cos(); - } - - - /* - * Return a new Decimal whose value is the hyperbolic cosine of `x`, rounded to precision - * significant digits using rounding mode `rounding`. - * - * x {number|string|Decimal} A value in radians. - * - */ - function cosh(x) { - return new this(x).cosh(); - } - - - /* - * Create and return a Decimal constructor with the same configuration properties as this Decimal - * constructor. - * - */ - function clone(obj) { - var i, p, ps; - - /* - * The Decimal constructor and exported function. - * Return a new Decimal instance. - * - * v {number|string|Decimal} A numeric value. - * - */ - function Decimal(v) { - var e, i, t, - x = this; - - // Decimal called without new. - if (!(x instanceof Decimal)) return new Decimal(v); - - // Retain a reference to this Decimal constructor, and shadow Decimal.prototype.constructor - // which points to Object. - x.constructor = Decimal; - - // Duplicate. - if (isDecimalInstance(v)) { - x.s = v.s; - - if (external) { - if (!v.d || v.e > Decimal.maxE) { - - // Infinity. - x.e = NaN; - x.d = null; - } else if (v.e < Decimal.minE) { - - // Zero. - x.e = 0; - x.d = [0]; - } else { - x.e = v.e; - x.d = v.d.slice(); - } - } else { - x.e = v.e; - x.d = v.d ? v.d.slice() : v.d; - } - - return; - } - - t = typeof v; - - if (t === 'number') { - if (v === 0) { - x.s = 1 / v < 0 ? -1 : 1; - x.e = 0; - x.d = [0]; - return; - } - - if (v < 0) { - v = -v; - x.s = -1; - } else { - x.s = 1; - } - - // Fast path for small integers. - if (v === ~~v && v < 1e7) { - for (e = 0, i = v; i >= 10; i /= 10) e++; - - if (external) { - if (e > Decimal.maxE) { - x.e = NaN; - x.d = null; - } else if (e < Decimal.minE) { - x.e = 0; - x.d = [0]; - } else { - x.e = e; - x.d = [v]; - } - } else { - x.e = e; - x.d = [v]; - } - - return; - - // Infinity, NaN. - } else if (v * 0 !== 0) { - if (!v) x.s = NaN; - x.e = NaN; - x.d = null; - return; - } - - return parseDecimal(x, v.toString()); - - } else if (t !== 'string') { - throw Error(invalidArgument + v); - } - - // Minus sign? - if ((i = v.charCodeAt(0)) === 45) { - v = v.slice(1); - x.s = -1; - } else { - // Plus sign? - if (i === 43) v = v.slice(1); - x.s = 1; - } - - return isDecimal.test(v) ? parseDecimal(x, v) : parseOther(x, v); - } - - Decimal.prototype = P; - - Decimal.ROUND_UP = 0; - Decimal.ROUND_DOWN = 1; - Decimal.ROUND_CEIL = 2; - Decimal.ROUND_FLOOR = 3; - Decimal.ROUND_HALF_UP = 4; - Decimal.ROUND_HALF_DOWN = 5; - Decimal.ROUND_HALF_EVEN = 6; - Decimal.ROUND_HALF_CEIL = 7; - Decimal.ROUND_HALF_FLOOR = 8; - Decimal.EUCLID = 9; - - Decimal.config = Decimal.set = config; - Decimal.clone = clone; - Decimal.isDecimal = isDecimalInstance; - - Decimal.abs = abs; - Decimal.acos = acos; - Decimal.acosh = acosh; // ES6 - Decimal.add = add; - Decimal.asin = asin; - Decimal.asinh = asinh; // ES6 - Decimal.atan = atan; - Decimal.atanh = atanh; // ES6 - Decimal.atan2 = atan2; - Decimal.cbrt = cbrt; // ES6 - Decimal.ceil = ceil; - Decimal.clamp = clamp; - Decimal.cos = cos; - Decimal.cosh = cosh; // ES6 - Decimal.div = div; - Decimal.exp = exp; - Decimal.floor = floor; - Decimal.hypot = hypot; // ES6 - Decimal.ln = ln; - Decimal.log = log; - Decimal.log10 = log10; // ES6 - Decimal.log2 = log2; // ES6 - Decimal.max = max; - Decimal.min = min; - Decimal.mod = mod; - Decimal.mul = mul; - Decimal.pow = pow; - Decimal.random = random; - Decimal.round = round; - Decimal.sign = sign; // ES6 - Decimal.sin = sin; - Decimal.sinh = sinh; // ES6 - Decimal.sqrt = sqrt; - Decimal.sub = sub; - Decimal.sum = sum; - Decimal.tan = tan; - Decimal.tanh = tanh; // ES6 - Decimal.trunc = trunc; // ES6 - - if (obj === void 0) obj = {}; - if (obj) { - if (obj.defaults !== true) { - ps = ['precision', 'rounding', 'toExpNeg', 'toExpPos', 'maxE', 'minE', 'modulo', 'crypto']; - for (i = 0; i < ps.length;) if (!obj.hasOwnProperty(p = ps[i++])) obj[p] = this[p]; - } - } - - Decimal.config(obj); - - return Decimal; - } - - - /* - * Return a new Decimal whose value is `x` divided by `y`, rounded to `precision` significant - * digits using rounding mode `rounding`. - * - * x {number|string|Decimal} - * y {number|string|Decimal} - * - */ - function div(x, y) { - return new this(x).div(y); - } - - - /* - * Return a new Decimal whose value is the natural exponential of `x`, rounded to `precision` - * significant digits using rounding mode `rounding`. - * - * x {number|string|Decimal} The power to which to raise the base of the natural log. - * - */ - function exp(x) { - return new this(x).exp(); - } - - - /* - * Return a new Decimal whose value is `x` round to an integer using `ROUND_FLOOR`. - * - * x {number|string|Decimal} - * - */ - function floor(x) { - return finalise(x = new this(x), x.e + 1, 3); - } - - - /* - * Return a new Decimal whose value is the square root of the sum of the squares of the arguments, - * rounded to `precision` significant digits using rounding mode `rounding`. - * - * hypot(a, b, ...) = sqrt(a^2 + b^2 + ...) - * - * arguments {number|string|Decimal} - * - */ - function hypot() { - var i, n, - t = new this(0); - - external = false; - - for (i = 0; i < arguments.length;) { - n = new this(arguments[i++]); - if (!n.d) { - if (n.s) { - external = true; - return new this(1 / 0); - } - t = n; - } else if (t.d) { - t = t.plus(n.times(n)); - } - } - - external = true; - - return t.sqrt(); - } - - - /* - * Return true if object is a Decimal instance (where Decimal is any Decimal constructor), - * otherwise return false. - * - */ - function isDecimalInstance(obj) { - return obj instanceof Decimal || obj && obj.toStringTag === tag || false; - } - - - /* - * Return a new Decimal whose value is the natural logarithm of `x`, rounded to `precision` - * significant digits using rounding mode `rounding`. - * - * x {number|string|Decimal} - * - */ - function ln(x) { - return new this(x).ln(); - } - - - /* - * Return a new Decimal whose value is the log of `x` to the base `y`, or to base 10 if no base - * is specified, rounded to `precision` significant digits using rounding mode `rounding`. - * - * log[y](x) - * - * x {number|string|Decimal} The argument of the logarithm. - * y {number|string|Decimal} The base of the logarithm. - * - */ - function log(x, y) { - return new this(x).log(y); - } - - - /* - * Return a new Decimal whose value is the base 2 logarithm of `x`, rounded to `precision` - * significant digits using rounding mode `rounding`. - * - * x {number|string|Decimal} - * - */ - function log2(x) { - return new this(x).log(2); - } - - - /* - * Return a new Decimal whose value is the base 10 logarithm of `x`, rounded to `precision` - * significant digits using rounding mode `rounding`. - * - * x {number|string|Decimal} - * - */ - function log10(x) { - return new this(x).log(10); - } - - - /* - * Return a new Decimal whose value is the maximum of the arguments. - * - * arguments {number|string|Decimal} - * - */ - function max() { - return maxOrMin(this, arguments, 'lt'); - } - - - /* - * Return a new Decimal whose value is the minimum of the arguments. - * - * arguments {number|string|Decimal} - * - */ - function min() { - return maxOrMin(this, arguments, 'gt'); - } - - - /* - * Return a new Decimal whose value is `x` modulo `y`, rounded to `precision` significant digits - * using rounding mode `rounding`. - * - * x {number|string|Decimal} - * y {number|string|Decimal} - * - */ - function mod(x, y) { - return new this(x).mod(y); - } - - - /* - * Return a new Decimal whose value is `x` multiplied by `y`, rounded to `precision` significant - * digits using rounding mode `rounding`. - * - * x {number|string|Decimal} - * y {number|string|Decimal} - * - */ - function mul(x, y) { - return new this(x).mul(y); - } - - - /* - * Return a new Decimal whose value is `x` raised to the power `y`, rounded to precision - * significant digits using rounding mode `rounding`. - * - * x {number|string|Decimal} The base. - * y {number|string|Decimal} The exponent. - * - */ - function pow(x, y) { - return new this(x).pow(y); - } - - - /* - * Returns a new Decimal with a random value equal to or greater than 0 and less than 1, and with - * `sd`, or `Decimal.precision` if `sd` is omitted, significant digits (or less if trailing zeros - * are produced). - * - * [sd] {number} Significant digits. Integer, 0 to MAX_DIGITS inclusive. - * - */ - function random(sd) { - var d, e, k, n, - i = 0, - r = new this(1), - rd = []; - - if (sd === void 0) sd = this.precision; - else checkInt32(sd, 1, MAX_DIGITS); - - k = Math.ceil(sd / LOG_BASE); - - if (!this.crypto) { - for (; i < k;) rd[i++] = Math.random() * 1e7 | 0; - - // Browsers supporting crypto.getRandomValues. - } else if (crypto.getRandomValues) { - d = crypto.getRandomValues(new Uint32Array(k)); - - for (; i < k;) { - n = d[i]; - - // 0 <= n < 4294967296 - // Probability n >= 4.29e9, is 4967296 / 4294967296 = 0.00116 (1 in 865). - if (n >= 4.29e9) { - d[i] = crypto.getRandomValues(new Uint32Array(1))[0]; - } else { - - // 0 <= n <= 4289999999 - // 0 <= (n % 1e7) <= 9999999 - rd[i++] = n % 1e7; - } - } - - // Node.js supporting crypto.randomBytes. - } else if (crypto.randomBytes) { - - // buffer - d = crypto.randomBytes(k *= 4); - - for (; i < k;) { - - // 0 <= n < 2147483648 - n = d[i] + (d[i + 1] << 8) + (d[i + 2] << 16) + ((d[i + 3] & 0x7f) << 24); - - // Probability n >= 2.14e9, is 7483648 / 2147483648 = 0.0035 (1 in 286). - if (n >= 2.14e9) { - crypto.randomBytes(4).copy(d, i); - } else { - - // 0 <= n <= 2139999999 - // 0 <= (n % 1e7) <= 9999999 - rd.push(n % 1e7); - i += 4; - } - } - - i = k / 4; - } else { - throw Error(cryptoUnavailable); - } - - k = rd[--i]; - sd %= LOG_BASE; - - // Convert trailing digits to zeros according to sd. - if (k && sd) { - n = mathpow(10, LOG_BASE - sd); - rd[i] = (k / n | 0) * n; - } - - // Remove trailing words which are zero. - for (; rd[i] === 0; i--) rd.pop(); - - // Zero? - if (i < 0) { - e = 0; - rd = [0]; - } else { - e = -1; - - // Remove leading words which are zero and adjust exponent accordingly. - for (; rd[0] === 0; e -= LOG_BASE) rd.shift(); - - // Count the digits of the first word of rd to determine leading zeros. - for (k = 1, n = rd[0]; n >= 10; n /= 10) k++; - - // Adjust the exponent for leading zeros of the first word of rd. - if (k < LOG_BASE) e -= LOG_BASE - k; - } - - r.e = e; - r.d = rd; - - return r; - } - - - /* - * Return a new Decimal whose value is `x` rounded to an integer using rounding mode `rounding`. - * - * To emulate `Math.round`, set rounding to 7 (ROUND_HALF_CEIL). - * - * x {number|string|Decimal} - * - */ - function round(x) { - return finalise(x = new this(x), x.e + 1, this.rounding); - } - - - /* - * Return - * 1 if x > 0, - * -1 if x < 0, - * 0 if x is 0, - * -0 if x is -0, - * NaN otherwise - * - * x {number|string|Decimal} - * - */ - function sign(x) { - x = new this(x); - return x.d ? (x.d[0] ? x.s : 0 * x.s) : x.s || NaN; - } - - - /* - * Return a new Decimal whose value is the sine of `x`, rounded to `precision` significant digits - * using rounding mode `rounding`. - * - * x {number|string|Decimal} A value in radians. - * - */ - function sin(x) { - return new this(x).sin(); - } - - - /* - * Return a new Decimal whose value is the hyperbolic sine of `x`, rounded to `precision` - * significant digits using rounding mode `rounding`. - * - * x {number|string|Decimal} A value in radians. - * - */ - function sinh(x) { - return new this(x).sinh(); - } - - - /* - * Return a new Decimal whose value is the square root of `x`, rounded to `precision` significant - * digits using rounding mode `rounding`. - * - * x {number|string|Decimal} - * - */ - function sqrt(x) { - return new this(x).sqrt(); - } - - - /* - * Return a new Decimal whose value is `x` minus `y`, rounded to `precision` significant digits - * using rounding mode `rounding`. - * - * x {number|string|Decimal} - * y {number|string|Decimal} - * - */ - function sub(x, y) { - return new this(x).sub(y); - } - - - /* - * Return a new Decimal whose value is the sum of the arguments, rounded to `precision` - * significant digits using rounding mode `rounding`. - * - * Only the result is rounded, not the intermediate calculations. - * - * arguments {number|string|Decimal} - * - */ - function sum() { - var i = 0, - args = arguments, - x = new this(args[i]); - - external = false; - for (; x.s && ++i < args.length;) x = x.plus(args[i]); - external = true; - - return finalise(x, this.precision, this.rounding); - } - - - /* - * Return a new Decimal whose value is the tangent of `x`, rounded to `precision` significant - * digits using rounding mode `rounding`. - * - * x {number|string|Decimal} A value in radians. - * - */ - function tan(x) { - return new this(x).tan(); - } - - - /* - * Return a new Decimal whose value is the hyperbolic tangent of `x`, rounded to `precision` - * significant digits using rounding mode `rounding`. - * - * x {number|string|Decimal} A value in radians. - * - */ - function tanh(x) { - return new this(x).tanh(); - } - - - /* - * Return a new Decimal whose value is `x` truncated to an integer. - * - * x {number|string|Decimal} - * - */ - function trunc(x) { - return finalise(x = new this(x), x.e + 1, 1); - } - - - // Create and configure initial Decimal constructor. - Decimal = clone(DEFAULTS); - Decimal.prototype.constructor = Decimal; - Decimal['default'] = Decimal.Decimal = Decimal; - - // Create the internal constants from their string values. - LN10 = new Decimal(LN10); - PI = new Decimal(PI); - - - // Export. - - - // AMD. - if (true) { - !(__WEBPACK_AMD_DEFINE_RESULT__ = (function () { - return Decimal; - }).call(exports, __webpack_require__, exports, module), - __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); - - // Node and other environments that support module.exports. - } else {} -})(this); + if (array.byteLength < byteOffset + (length || 0)) { + throw new RangeError('\'length\' is out of bounds') + } + + if (byteOffset === undefined && length === undefined) { + array = new Uint8Array(array) + } else if (length === undefined) { + array = new Uint8Array(array, byteOffset) + } else { + array = new Uint8Array(array, byteOffset, length) + } + + if (Buffer.TYPED_ARRAY_SUPPORT) { + // Return an augmented `Uint8Array` instance, for best performance + that = array + that.__proto__ = Buffer.prototype + } else { + // Fallback: Return an object instance of the Buffer class + that = fromArrayLike(that, array) + } + return that +} + +function fromObject (that, obj) { + if (Buffer.isBuffer(obj)) { + var len = checked(obj.length) | 0 + that = createBuffer(that, len) + + if (that.length === 0) { + return that + } + + obj.copy(that, 0, 0, len) + return that + } + + if (obj) { + if ((typeof ArrayBuffer !== 'undefined' && + obj.buffer instanceof ArrayBuffer) || 'length' in obj) { + if (typeof obj.length !== 'number' || isnan(obj.length)) { + return createBuffer(that, 0) + } + return fromArrayLike(that, obj) + } + + if (obj.type === 'Buffer' && isArray(obj.data)) { + return fromArrayLike(that, obj.data) + } + } + throw new TypeError('First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.') +} -/***/ }), +function checked (length) { + // Note: cannot use `length < kMaxLength()` here because that fails when + // length is NaN (which is otherwise coerced to zero.) + if (length >= kMaxLength()) { + throw new RangeError('Attempt to allocate Buffer larger than maximum ' + + 'size: 0x' + kMaxLength().toString(16) + ' bytes') + } + return length | 0 +} -/***/ "./node_modules/dom-serializer/lib/foreignNames.js": -/*!*********************************************************!*\ - !*** ./node_modules/dom-serializer/lib/foreignNames.js ***! - \*********************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { +function SlowBuffer (length) { + if (+length != length) { // eslint-disable-line eqeqeq + length = 0 + } + return Buffer.alloc(+length) +} -"use strict"; +Buffer.isBuffer = function isBuffer (b) { + return !!(b != null && b._isBuffer) +} -Object.defineProperty(exports, "__esModule", { value: true }); -exports.attributeNames = exports.elementNames = void 0; -exports.elementNames = new Map([ - ["altglyph", "altGlyph"], - ["altglyphdef", "altGlyphDef"], - ["altglyphitem", "altGlyphItem"], - ["animatecolor", "animateColor"], - ["animatemotion", "animateMotion"], - ["animatetransform", "animateTransform"], - ["clippath", "clipPath"], - ["feblend", "feBlend"], - ["fecolormatrix", "feColorMatrix"], - ["fecomponenttransfer", "feComponentTransfer"], - ["fecomposite", "feComposite"], - ["feconvolvematrix", "feConvolveMatrix"], - ["fediffuselighting", "feDiffuseLighting"], - ["fedisplacementmap", "feDisplacementMap"], - ["fedistantlight", "feDistantLight"], - ["fedropshadow", "feDropShadow"], - ["feflood", "feFlood"], - ["fefunca", "feFuncA"], - ["fefuncb", "feFuncB"], - ["fefuncg", "feFuncG"], - ["fefuncr", "feFuncR"], - ["fegaussianblur", "feGaussianBlur"], - ["feimage", "feImage"], - ["femerge", "feMerge"], - ["femergenode", "feMergeNode"], - ["femorphology", "feMorphology"], - ["feoffset", "feOffset"], - ["fepointlight", "fePointLight"], - ["fespecularlighting", "feSpecularLighting"], - ["fespotlight", "feSpotLight"], - ["fetile", "feTile"], - ["feturbulence", "feTurbulence"], - ["foreignobject", "foreignObject"], - ["glyphref", "glyphRef"], - ["lineargradient", "linearGradient"], - ["radialgradient", "radialGradient"], - ["textpath", "textPath"], -]); -exports.attributeNames = new Map([ - ["definitionurl", "definitionURL"], - ["attributename", "attributeName"], - ["attributetype", "attributeType"], - ["basefrequency", "baseFrequency"], - ["baseprofile", "baseProfile"], - ["calcmode", "calcMode"], - ["clippathunits", "clipPathUnits"], - ["diffuseconstant", "diffuseConstant"], - ["edgemode", "edgeMode"], - ["filterunits", "filterUnits"], - ["glyphref", "glyphRef"], - ["gradienttransform", "gradientTransform"], - ["gradientunits", "gradientUnits"], - ["kernelmatrix", "kernelMatrix"], - ["kernelunitlength", "kernelUnitLength"], - ["keypoints", "keyPoints"], - ["keysplines", "keySplines"], - ["keytimes", "keyTimes"], - ["lengthadjust", "lengthAdjust"], - ["limitingconeangle", "limitingConeAngle"], - ["markerheight", "markerHeight"], - ["markerunits", "markerUnits"], - ["markerwidth", "markerWidth"], - ["maskcontentunits", "maskContentUnits"], - ["maskunits", "maskUnits"], - ["numoctaves", "numOctaves"], - ["pathlength", "pathLength"], - ["patterncontentunits", "patternContentUnits"], - ["patterntransform", "patternTransform"], - ["patternunits", "patternUnits"], - ["pointsatx", "pointsAtX"], - ["pointsaty", "pointsAtY"], - ["pointsatz", "pointsAtZ"], - ["preservealpha", "preserveAlpha"], - ["preserveaspectratio", "preserveAspectRatio"], - ["primitiveunits", "primitiveUnits"], - ["refx", "refX"], - ["refy", "refY"], - ["repeatcount", "repeatCount"], - ["repeatdur", "repeatDur"], - ["requiredextensions", "requiredExtensions"], - ["requiredfeatures", "requiredFeatures"], - ["specularconstant", "specularConstant"], - ["specularexponent", "specularExponent"], - ["spreadmethod", "spreadMethod"], - ["startoffset", "startOffset"], - ["stddeviation", "stdDeviation"], - ["stitchtiles", "stitchTiles"], - ["surfacescale", "surfaceScale"], - ["systemlanguage", "systemLanguage"], - ["tablevalues", "tableValues"], - ["targetx", "targetX"], - ["targety", "targetY"], - ["textlength", "textLength"], - ["viewbox", "viewBox"], - ["viewtarget", "viewTarget"], - ["xchannelselector", "xChannelSelector"], - ["ychannelselector", "yChannelSelector"], - ["zoomandpan", "zoomAndPan"], -]); +Buffer.compare = function compare (a, b) { + if (!Buffer.isBuffer(a) || !Buffer.isBuffer(b)) { + throw new TypeError('Arguments must be Buffers') + } + + if (a === b) return 0 + + var x = a.length + var y = b.length + + for (var i = 0, len = Math.min(x, y); i < len; ++i) { + if (a[i] !== b[i]) { + x = a[i] + y = b[i] + break + } + } + + if (x < y) return -1 + if (y < x) return 1 + return 0 +} + +Buffer.isEncoding = function isEncoding (encoding) { + switch (String(encoding).toLowerCase()) { + case 'hex': + case 'utf8': + case 'utf-8': + case 'ascii': + case 'latin1': + case 'binary': + case 'base64': + case 'ucs2': + case 'ucs-2': + case 'utf16le': + case 'utf-16le': + return true + default: + return false + } +} + +Buffer.concat = function concat (list, length) { + if (!isArray(list)) { + throw new TypeError('"list" argument must be an Array of Buffers') + } + + if (list.length === 0) { + return Buffer.alloc(0) + } + + var i + if (length === undefined) { + length = 0 + for (i = 0; i < list.length; ++i) { + length += list[i].length + } + } + + var buffer = Buffer.allocUnsafe(length) + var pos = 0 + for (i = 0; i < list.length; ++i) { + var buf = list[i] + if (!Buffer.isBuffer(buf)) { + throw new TypeError('"list" argument must be an Array of Buffers') + } + buf.copy(buffer, pos) + pos += buf.length + } + return buffer +} + +function byteLength (string, encoding) { + if (Buffer.isBuffer(string)) { + return string.length + } + if (typeof ArrayBuffer !== 'undefined' && typeof ArrayBuffer.isView === 'function' && + (ArrayBuffer.isView(string) || string instanceof ArrayBuffer)) { + return string.byteLength + } + if (typeof string !== 'string') { + string = '' + string + } + + var len = string.length + if (len === 0) return 0 + + // Use a for loop to avoid recursion + var loweredCase = false + for (;;) { + switch (encoding) { + case 'ascii': + case 'latin1': + case 'binary': + return len + case 'utf8': + case 'utf-8': + case undefined: + return utf8ToBytes(string).length + case 'ucs2': + case 'ucs-2': + case 'utf16le': + case 'utf-16le': + return len * 2 + case 'hex': + return len >>> 1 + case 'base64': + return base64ToBytes(string).length + default: + if (loweredCase) return utf8ToBytes(string).length // assume utf8 + encoding = ('' + encoding).toLowerCase() + loweredCase = true + } + } +} +Buffer.byteLength = byteLength + +function slowToString (encoding, start, end) { + var loweredCase = false + + // No need to verify that "this.length <= MAX_UINT32" since it's a read-only + // property of a typed array. + + // This behaves neither like String nor Uint8Array in that we set start/end + // to their upper/lower bounds if the value passed is out of range. + // undefined is handled specially as per ECMA-262 6th Edition, + // Section 13.3.3.7 Runtime Semantics: KeyedBindingInitialization. + if (start === undefined || start < 0) { + start = 0 + } + // Return early if start > this.length. Done here to prevent potential uint32 + // coercion fail below. + if (start > this.length) { + return '' + } + + if (end === undefined || end > this.length) { + end = this.length + } + + if (end <= 0) { + return '' + } + + // Force coersion to uint32. This will also coerce falsey/NaN values to 0. + end >>>= 0 + start >>>= 0 + + if (end <= start) { + return '' + } + + if (!encoding) encoding = 'utf8' + + while (true) { + switch (encoding) { + case 'hex': + return hexSlice(this, start, end) + + case 'utf8': + case 'utf-8': + return utf8Slice(this, start, end) + + case 'ascii': + return asciiSlice(this, start, end) + + case 'latin1': + case 'binary': + return latin1Slice(this, start, end) + + case 'base64': + return base64Slice(this, start, end) + + case 'ucs2': + case 'ucs-2': + case 'utf16le': + case 'utf-16le': + return utf16leSlice(this, start, end) + + default: + if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding) + encoding = (encoding + '').toLowerCase() + loweredCase = true + } + } +} + +// The property is used by `Buffer.isBuffer` and `is-buffer` (in Safari 5-7) to detect +// Buffer instances. +Buffer.prototype._isBuffer = true + +function swap (b, n, m) { + var i = b[n] + b[n] = b[m] + b[m] = i +} + +Buffer.prototype.swap16 = function swap16 () { + var len = this.length + if (len % 2 !== 0) { + throw new RangeError('Buffer size must be a multiple of 16-bits') + } + for (var i = 0; i < len; i += 2) { + swap(this, i, i + 1) + } + return this +} + +Buffer.prototype.swap32 = function swap32 () { + var len = this.length + if (len % 4 !== 0) { + throw new RangeError('Buffer size must be a multiple of 32-bits') + } + for (var i = 0; i < len; i += 4) { + swap(this, i, i + 3) + swap(this, i + 1, i + 2) + } + return this +} + +Buffer.prototype.swap64 = function swap64 () { + var len = this.length + if (len % 8 !== 0) { + throw new RangeError('Buffer size must be a multiple of 64-bits') + } + for (var i = 0; i < len; i += 8) { + swap(this, i, i + 7) + swap(this, i + 1, i + 6) + swap(this, i + 2, i + 5) + swap(this, i + 3, i + 4) + } + return this +} + +Buffer.prototype.toString = function toString () { + var length = this.length | 0 + if (length === 0) return '' + if (arguments.length === 0) return utf8Slice(this, 0, length) + return slowToString.apply(this, arguments) +} + +Buffer.prototype.equals = function equals (b) { + if (!Buffer.isBuffer(b)) throw new TypeError('Argument must be a Buffer') + if (this === b) return true + return Buffer.compare(this, b) === 0 +} + +Buffer.prototype.inspect = function inspect () { + var str = '' + var max = exports.INSPECT_MAX_BYTES + if (this.length > 0) { + str = this.toString('hex', 0, max).match(/.{2}/g).join(' ') + if (this.length > max) str += ' ... ' + } + return '' +} + +Buffer.prototype.compare = function compare (target, start, end, thisStart, thisEnd) { + if (!Buffer.isBuffer(target)) { + throw new TypeError('Argument must be a Buffer') + } + + if (start === undefined) { + start = 0 + } + if (end === undefined) { + end = target ? target.length : 0 + } + if (thisStart === undefined) { + thisStart = 0 + } + if (thisEnd === undefined) { + thisEnd = this.length + } + + if (start < 0 || end > target.length || thisStart < 0 || thisEnd > this.length) { + throw new RangeError('out of range index') + } + + if (thisStart >= thisEnd && start >= end) { + return 0 + } + if (thisStart >= thisEnd) { + return -1 + } + if (start >= end) { + return 1 + } + + start >>>= 0 + end >>>= 0 + thisStart >>>= 0 + thisEnd >>>= 0 + + if (this === target) return 0 + + var x = thisEnd - thisStart + var y = end - start + var len = Math.min(x, y) + + var thisCopy = this.slice(thisStart, thisEnd) + var targetCopy = target.slice(start, end) + + for (var i = 0; i < len; ++i) { + if (thisCopy[i] !== targetCopy[i]) { + x = thisCopy[i] + y = targetCopy[i] + break + } + } + + if (x < y) return -1 + if (y < x) return 1 + return 0 +} + +// Finds either the first index of `val` in `buffer` at offset >= `byteOffset`, +// OR the last index of `val` in `buffer` at offset <= `byteOffset`. +// +// Arguments: +// - buffer - a Buffer to search +// - val - a string, Buffer, or number +// - byteOffset - an index into `buffer`; will be clamped to an int32 +// - encoding - an optional encoding, relevant is val is a string +// - dir - true for indexOf, false for lastIndexOf +function bidirectionalIndexOf (buffer, val, byteOffset, encoding, dir) { + // Empty buffer means no match + if (buffer.length === 0) return -1 + + // Normalize byteOffset + if (typeof byteOffset === 'string') { + encoding = byteOffset + byteOffset = 0 + } else if (byteOffset > 0x7fffffff) { + byteOffset = 0x7fffffff + } else if (byteOffset < -0x80000000) { + byteOffset = -0x80000000 + } + byteOffset = +byteOffset // Coerce to Number. + if (isNaN(byteOffset)) { + // byteOffset: it it's undefined, null, NaN, "foo", etc, search whole buffer + byteOffset = dir ? 0 : (buffer.length - 1) + } + + // Normalize byteOffset: negative offsets start from the end of the buffer + if (byteOffset < 0) byteOffset = buffer.length + byteOffset + if (byteOffset >= buffer.length) { + if (dir) return -1 + else byteOffset = buffer.length - 1 + } else if (byteOffset < 0) { + if (dir) byteOffset = 0 + else return -1 + } + + // Normalize val + if (typeof val === 'string') { + val = Buffer.from(val, encoding) + } + + // Finally, search either indexOf (if dir is true) or lastIndexOf + if (Buffer.isBuffer(val)) { + // Special case: looking for empty string/buffer always fails + if (val.length === 0) { + return -1 + } + return arrayIndexOf(buffer, val, byteOffset, encoding, dir) + } else if (typeof val === 'number') { + val = val & 0xFF // Search for a byte value [0-255] + if (Buffer.TYPED_ARRAY_SUPPORT && + typeof Uint8Array.prototype.indexOf === 'function') { + if (dir) { + return Uint8Array.prototype.indexOf.call(buffer, val, byteOffset) + } else { + return Uint8Array.prototype.lastIndexOf.call(buffer, val, byteOffset) + } + } + return arrayIndexOf(buffer, [ val ], byteOffset, encoding, dir) + } + + throw new TypeError('val must be string, number or Buffer') +} + +function arrayIndexOf (arr, val, byteOffset, encoding, dir) { + var indexSize = 1 + var arrLength = arr.length + var valLength = val.length + + if (encoding !== undefined) { + encoding = String(encoding).toLowerCase() + if (encoding === 'ucs2' || encoding === 'ucs-2' || + encoding === 'utf16le' || encoding === 'utf-16le') { + if (arr.length < 2 || val.length < 2) { + return -1 + } + indexSize = 2 + arrLength /= 2 + valLength /= 2 + byteOffset /= 2 + } + } + + function read (buf, i) { + if (indexSize === 1) { + return buf[i] + } else { + return buf.readUInt16BE(i * indexSize) + } + } + + var i + if (dir) { + var foundIndex = -1 + for (i = byteOffset; i < arrLength; i++) { + if (read(arr, i) === read(val, foundIndex === -1 ? 0 : i - foundIndex)) { + if (foundIndex === -1) foundIndex = i + if (i - foundIndex + 1 === valLength) return foundIndex * indexSize + } else { + if (foundIndex !== -1) i -= i - foundIndex + foundIndex = -1 + } + } + } else { + if (byteOffset + valLength > arrLength) byteOffset = arrLength - valLength + for (i = byteOffset; i >= 0; i--) { + var found = true + for (var j = 0; j < valLength; j++) { + if (read(arr, i + j) !== read(val, j)) { + found = false + break + } + } + if (found) return i + } + } + + return -1 +} + +Buffer.prototype.includes = function includes (val, byteOffset, encoding) { + return this.indexOf(val, byteOffset, encoding) !== -1 +} + +Buffer.prototype.indexOf = function indexOf (val, byteOffset, encoding) { + return bidirectionalIndexOf(this, val, byteOffset, encoding, true) +} + +Buffer.prototype.lastIndexOf = function lastIndexOf (val, byteOffset, encoding) { + return bidirectionalIndexOf(this, val, byteOffset, encoding, false) +} + +function hexWrite (buf, string, offset, length) { + offset = Number(offset) || 0 + var remaining = buf.length - offset + if (!length) { + length = remaining + } else { + length = Number(length) + if (length > remaining) { + length = remaining + } + } + + // must be an even number of digits + var strLen = string.length + if (strLen % 2 !== 0) throw new TypeError('Invalid hex string') + + if (length > strLen / 2) { + length = strLen / 2 + } + for (var i = 0; i < length; ++i) { + var parsed = parseInt(string.substr(i * 2, 2), 16) + if (isNaN(parsed)) return i + buf[offset + i] = parsed + } + return i +} + +function utf8Write (buf, string, offset, length) { + return blitBuffer(utf8ToBytes(string, buf.length - offset), buf, offset, length) +} + +function asciiWrite (buf, string, offset, length) { + return blitBuffer(asciiToBytes(string), buf, offset, length) +} + +function latin1Write (buf, string, offset, length) { + return asciiWrite(buf, string, offset, length) +} + +function base64Write (buf, string, offset, length) { + return blitBuffer(base64ToBytes(string), buf, offset, length) +} + +function ucs2Write (buf, string, offset, length) { + return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length) +} + +Buffer.prototype.write = function write (string, offset, length, encoding) { + // Buffer#write(string) + if (offset === undefined) { + encoding = 'utf8' + length = this.length + offset = 0 + // Buffer#write(string, encoding) + } else if (length === undefined && typeof offset === 'string') { + encoding = offset + length = this.length + offset = 0 + // Buffer#write(string, offset[, length][, encoding]) + } else if (isFinite(offset)) { + offset = offset | 0 + if (isFinite(length)) { + length = length | 0 + if (encoding === undefined) encoding = 'utf8' + } else { + encoding = length + length = undefined + } + // legacy write(string, encoding, offset, length) - remove in v0.13 + } else { + throw new Error( + 'Buffer.write(string, encoding, offset[, length]) is no longer supported' + ) + } + + var remaining = this.length - offset + if (length === undefined || length > remaining) length = remaining + + if ((string.length > 0 && (length < 0 || offset < 0)) || offset > this.length) { + throw new RangeError('Attempt to write outside buffer bounds') + } + + if (!encoding) encoding = 'utf8' + + var loweredCase = false + for (;;) { + switch (encoding) { + case 'hex': + return hexWrite(this, string, offset, length) + + case 'utf8': + case 'utf-8': + return utf8Write(this, string, offset, length) + + case 'ascii': + return asciiWrite(this, string, offset, length) + + case 'latin1': + case 'binary': + return latin1Write(this, string, offset, length) + + case 'base64': + // Warning: maxLength not taken into account in base64Write + return base64Write(this, string, offset, length) + + case 'ucs2': + case 'ucs-2': + case 'utf16le': + case 'utf-16le': + return ucs2Write(this, string, offset, length) + + default: + if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding) + encoding = ('' + encoding).toLowerCase() + loweredCase = true + } + } +} + +Buffer.prototype.toJSON = function toJSON () { + return { + type: 'Buffer', + data: Array.prototype.slice.call(this._arr || this, 0) + } +} + +function base64Slice (buf, start, end) { + if (start === 0 && end === buf.length) { + return base64.fromByteArray(buf) + } else { + return base64.fromByteArray(buf.slice(start, end)) + } +} + +function utf8Slice (buf, start, end) { + end = Math.min(buf.length, end) + var res = [] + + var i = start + while (i < end) { + var firstByte = buf[i] + var codePoint = null + var bytesPerSequence = (firstByte > 0xEF) ? 4 + : (firstByte > 0xDF) ? 3 + : (firstByte > 0xBF) ? 2 + : 1 + + if (i + bytesPerSequence <= end) { + var secondByte, thirdByte, fourthByte, tempCodePoint + + switch (bytesPerSequence) { + case 1: + if (firstByte < 0x80) { + codePoint = firstByte + } + break + case 2: + secondByte = buf[i + 1] + if ((secondByte & 0xC0) === 0x80) { + tempCodePoint = (firstByte & 0x1F) << 0x6 | (secondByte & 0x3F) + if (tempCodePoint > 0x7F) { + codePoint = tempCodePoint + } + } + break + case 3: + secondByte = buf[i + 1] + thirdByte = buf[i + 2] + if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80) { + tempCodePoint = (firstByte & 0xF) << 0xC | (secondByte & 0x3F) << 0x6 | (thirdByte & 0x3F) + if (tempCodePoint > 0x7FF && (tempCodePoint < 0xD800 || tempCodePoint > 0xDFFF)) { + codePoint = tempCodePoint + } + } + break + case 4: + secondByte = buf[i + 1] + thirdByte = buf[i + 2] + fourthByte = buf[i + 3] + if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80 && (fourthByte & 0xC0) === 0x80) { + tempCodePoint = (firstByte & 0xF) << 0x12 | (secondByte & 0x3F) << 0xC | (thirdByte & 0x3F) << 0x6 | (fourthByte & 0x3F) + if (tempCodePoint > 0xFFFF && tempCodePoint < 0x110000) { + codePoint = tempCodePoint + } + } + } + } + + if (codePoint === null) { + // we did not generate a valid codePoint so insert a + // replacement char (U+FFFD) and advance only 1 byte + codePoint = 0xFFFD + bytesPerSequence = 1 + } else if (codePoint > 0xFFFF) { + // encode to utf16 (surrogate pair dance) + codePoint -= 0x10000 + res.push(codePoint >>> 10 & 0x3FF | 0xD800) + codePoint = 0xDC00 | codePoint & 0x3FF + } + + res.push(codePoint) + i += bytesPerSequence + } + + return decodeCodePointsArray(res) +} + +// Based on http://stackoverflow.com/a/22747272/680742, the browser with +// the lowest limit is Chrome, with 0x10000 args. +// We go 1 magnitude less, for safety +var MAX_ARGUMENTS_LENGTH = 0x1000 + +function decodeCodePointsArray (codePoints) { + var len = codePoints.length + if (len <= MAX_ARGUMENTS_LENGTH) { + return String.fromCharCode.apply(String, codePoints) // avoid extra slice() + } + + // Decode in chunks to avoid "call stack size exceeded". + var res = '' + var i = 0 + while (i < len) { + res += String.fromCharCode.apply( + String, + codePoints.slice(i, i += MAX_ARGUMENTS_LENGTH) + ) + } + return res +} + +function asciiSlice (buf, start, end) { + var ret = '' + end = Math.min(buf.length, end) + + for (var i = start; i < end; ++i) { + ret += String.fromCharCode(buf[i] & 0x7F) + } + return ret +} + +function latin1Slice (buf, start, end) { + var ret = '' + end = Math.min(buf.length, end) + + for (var i = start; i < end; ++i) { + ret += String.fromCharCode(buf[i]) + } + return ret +} + +function hexSlice (buf, start, end) { + var len = buf.length + + if (!start || start < 0) start = 0 + if (!end || end < 0 || end > len) end = len + + var out = '' + for (var i = start; i < end; ++i) { + out += toHex(buf[i]) + } + return out +} + +function utf16leSlice (buf, start, end) { + var bytes = buf.slice(start, end) + var res = '' + for (var i = 0; i < bytes.length; i += 2) { + res += String.fromCharCode(bytes[i] + bytes[i + 1] * 256) + } + return res +} + +Buffer.prototype.slice = function slice (start, end) { + var len = this.length + start = ~~start + end = end === undefined ? len : ~~end + + if (start < 0) { + start += len + if (start < 0) start = 0 + } else if (start > len) { + start = len + } + + if (end < 0) { + end += len + if (end < 0) end = 0 + } else if (end > len) { + end = len + } + + if (end < start) end = start + + var newBuf + if (Buffer.TYPED_ARRAY_SUPPORT) { + newBuf = this.subarray(start, end) + newBuf.__proto__ = Buffer.prototype + } else { + var sliceLen = end - start + newBuf = new Buffer(sliceLen, undefined) + for (var i = 0; i < sliceLen; ++i) { + newBuf[i] = this[i + start] + } + } + + return newBuf +} + +/* + * Need to make sure that buffer isn't trying to write out of bounds. + */ +function checkOffset (offset, ext, length) { + if ((offset % 1) !== 0 || offset < 0) throw new RangeError('offset is not uint') + if (offset + ext > length) throw new RangeError('Trying to access beyond buffer length') +} + +Buffer.prototype.readUIntLE = function readUIntLE (offset, byteLength, noAssert) { + offset = offset | 0 + byteLength = byteLength | 0 + if (!noAssert) checkOffset(offset, byteLength, this.length) + + var val = this[offset] + var mul = 1 + var i = 0 + while (++i < byteLength && (mul *= 0x100)) { + val += this[offset + i] * mul + } + + return val +} + +Buffer.prototype.readUIntBE = function readUIntBE (offset, byteLength, noAssert) { + offset = offset | 0 + byteLength = byteLength | 0 + if (!noAssert) { + checkOffset(offset, byteLength, this.length) + } + + var val = this[offset + --byteLength] + var mul = 1 + while (byteLength > 0 && (mul *= 0x100)) { + val += this[offset + --byteLength] * mul + } + + return val +} + +Buffer.prototype.readUInt8 = function readUInt8 (offset, noAssert) { + if (!noAssert) checkOffset(offset, 1, this.length) + return this[offset] +} + +Buffer.prototype.readUInt16LE = function readUInt16LE (offset, noAssert) { + if (!noAssert) checkOffset(offset, 2, this.length) + return this[offset] | (this[offset + 1] << 8) +} + +Buffer.prototype.readUInt16BE = function readUInt16BE (offset, noAssert) { + if (!noAssert) checkOffset(offset, 2, this.length) + return (this[offset] << 8) | this[offset + 1] +} + +Buffer.prototype.readUInt32LE = function readUInt32LE (offset, noAssert) { + if (!noAssert) checkOffset(offset, 4, this.length) + + return ((this[offset]) | + (this[offset + 1] << 8) | + (this[offset + 2] << 16)) + + (this[offset + 3] * 0x1000000) +} + +Buffer.prototype.readUInt32BE = function readUInt32BE (offset, noAssert) { + if (!noAssert) checkOffset(offset, 4, this.length) + + return (this[offset] * 0x1000000) + + ((this[offset + 1] << 16) | + (this[offset + 2] << 8) | + this[offset + 3]) +} + +Buffer.prototype.readIntLE = function readIntLE (offset, byteLength, noAssert) { + offset = offset | 0 + byteLength = byteLength | 0 + if (!noAssert) checkOffset(offset, byteLength, this.length) + + var val = this[offset] + var mul = 1 + var i = 0 + while (++i < byteLength && (mul *= 0x100)) { + val += this[offset + i] * mul + } + mul *= 0x80 + + if (val >= mul) val -= Math.pow(2, 8 * byteLength) + + return val +} + +Buffer.prototype.readIntBE = function readIntBE (offset, byteLength, noAssert) { + offset = offset | 0 + byteLength = byteLength | 0 + if (!noAssert) checkOffset(offset, byteLength, this.length) + + var i = byteLength + var mul = 1 + var val = this[offset + --i] + while (i > 0 && (mul *= 0x100)) { + val += this[offset + --i] * mul + } + mul *= 0x80 + + if (val >= mul) val -= Math.pow(2, 8 * byteLength) + + return val +} + +Buffer.prototype.readInt8 = function readInt8 (offset, noAssert) { + if (!noAssert) checkOffset(offset, 1, this.length) + if (!(this[offset] & 0x80)) return (this[offset]) + return ((0xff - this[offset] + 1) * -1) +} + +Buffer.prototype.readInt16LE = function readInt16LE (offset, noAssert) { + if (!noAssert) checkOffset(offset, 2, this.length) + var val = this[offset] | (this[offset + 1] << 8) + return (val & 0x8000) ? val | 0xFFFF0000 : val +} + +Buffer.prototype.readInt16BE = function readInt16BE (offset, noAssert) { + if (!noAssert) checkOffset(offset, 2, this.length) + var val = this[offset + 1] | (this[offset] << 8) + return (val & 0x8000) ? val | 0xFFFF0000 : val +} + +Buffer.prototype.readInt32LE = function readInt32LE (offset, noAssert) { + if (!noAssert) checkOffset(offset, 4, this.length) + + return (this[offset]) | + (this[offset + 1] << 8) | + (this[offset + 2] << 16) | + (this[offset + 3] << 24) +} + +Buffer.prototype.readInt32BE = function readInt32BE (offset, noAssert) { + if (!noAssert) checkOffset(offset, 4, this.length) + return (this[offset] << 24) | + (this[offset + 1] << 16) | + (this[offset + 2] << 8) | + (this[offset + 3]) +} -/***/ }), +Buffer.prototype.readFloatLE = function readFloatLE (offset, noAssert) { + if (!noAssert) checkOffset(offset, 4, this.length) + return ieee754.read(this, offset, true, 23, 4) +} -/***/ "./node_modules/dom-serializer/lib/index.js": -/*!**************************************************!*\ - !*** ./node_modules/dom-serializer/lib/index.js ***! - \**************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { +Buffer.prototype.readFloatBE = function readFloatBE (offset, noAssert) { + if (!noAssert) checkOffset(offset, 4, this.length) + return ieee754.read(this, offset, false, 23, 4) +} -"use strict"; +Buffer.prototype.readDoubleLE = function readDoubleLE (offset, noAssert) { + if (!noAssert) checkOffset(offset, 8, this.length) + return ieee754.read(this, offset, true, 52, 8) +} -var __assign = (this && this.__assign) || function () { - __assign = Object.assign || function(t) { - for (var s, i = 1, n = arguments.length; i < n; i++) { - s = arguments[i]; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) - t[p] = s[p]; - } - return t; - }; - return __assign.apply(this, arguments); -}; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -/* - * Module dependencies - */ -var ElementType = __importStar(__webpack_require__(/*! domelementtype */ "./node_modules/domelementtype/lib/index.js")); -var entities_1 = __webpack_require__(/*! entities */ "./node_modules/entities/lib/index.js"); -/** - * Mixed-case SVG and MathML tags & attributes - * recognized by the HTML parser. - * - * @see https://html.spec.whatwg.org/multipage/parsing.html#parsing-main-inforeign - */ -var foreignNames_1 = __webpack_require__(/*! ./foreignNames */ "./node_modules/dom-serializer/lib/foreignNames.js"); -var unencodedElements = new Set([ - "style", - "script", - "xmp", - "iframe", - "noembed", - "noframes", - "plaintext", - "noscript", -]); -/** - * Format attributes - */ -function formatAttributes(attributes, opts) { - if (!attributes) - return; - return Object.keys(attributes) - .map(function (key) { - var _a, _b; - var value = (_a = attributes[key]) !== null && _a !== void 0 ? _a : ""; - if (opts.xmlMode === "foreign") { - /* Fix up mixed-case attribute names */ - key = (_b = foreignNames_1.attributeNames.get(key)) !== null && _b !== void 0 ? _b : key; - } - if (!opts.emptyAttrs && !opts.xmlMode && value === "") { - return key; - } - return key + "=\"" + (opts.decodeEntities !== false - ? entities_1.encodeXML(value) - : value.replace(/"/g, """)) + "\""; - }) - .join(" "); +Buffer.prototype.readDoubleBE = function readDoubleBE (offset, noAssert) { + if (!noAssert) checkOffset(offset, 8, this.length) + return ieee754.read(this, offset, false, 52, 8) } -/** - * Self-enclosing tags - */ -var singleTag = new Set([ - "area", - "base", - "basefont", - "br", - "col", - "command", - "embed", - "frame", - "hr", - "img", - "input", - "isindex", - "keygen", - "link", - "meta", - "param", - "source", - "track", - "wbr", -]); -/** - * Renders a DOM node or an array of DOM nodes to a string. - * - * Can be thought of as the equivalent of the `outerHTML` of the passed node(s). - * - * @param node Node to be rendered. - * @param options Changes serialization behavior - */ -function render(node, options) { - if (options === void 0) { options = {}; } - var nodes = "length" in node ? node : [node]; - var output = ""; - for (var i = 0; i < nodes.length; i++) { - output += renderNode(nodes[i], options); - } - return output; + +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') } -exports.default = render; -function renderNode(node, options) { - switch (node.type) { - case ElementType.Root: - return render(node.children, options); - case ElementType.Directive: - case ElementType.Doctype: - return renderDirective(node); - case ElementType.Comment: - return renderComment(node); - case ElementType.CDATA: - return renderCdata(node); - case ElementType.Script: - case ElementType.Style: - case ElementType.Tag: - return renderTag(node, options); - case ElementType.Text: - return renderText(node, options); - } + +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 } -var foreignModeIntegrationPoints = new Set([ - "mi", - "mo", - "mn", - "ms", - "mtext", - "annotation-xml", - "foreignObject", - "desc", - "title", -]); -var foreignElements = new Set(["svg", "math"]); -function renderTag(elem, opts) { - var _a; - // Handle SVG / MathML in HTML - if (opts.xmlMode === "foreign") { - /* Fix up mixed-case element names */ - elem.name = (_a = foreignNames_1.elementNames.get(elem.name)) !== null && _a !== void 0 ? _a : elem.name; - /* Exit foreign mode at integration points */ - if (elem.parent && - foreignModeIntegrationPoints.has(elem.parent.name)) { - opts = __assign(__assign({}, opts), { xmlMode: false }); - } - } - if (!opts.xmlMode && foreignElements.has(elem.name)) { - opts = __assign(__assign({}, opts), { xmlMode: "foreign" }); - } - var tag = "<" + elem.name; - var attribs = formatAttributes(elem.attribs, opts); - if (attribs) { - tag += " " + attribs; - } - if (elem.children.length === 0 && - (opts.xmlMode - ? // In XML mode or foreign mode, and user hasn't explicitly turned off self-closing tags - opts.selfClosingTags !== false - : // User explicitly asked for self-closing tags, even in HTML mode - opts.selfClosingTags && singleTag.has(elem.name))) { - if (!opts.xmlMode) - tag += " "; - tag += "/>"; - } - else { - tag += ">"; - if (elem.children.length > 0) { - tag += render(elem.children, opts); - } - if (opts.xmlMode || !singleTag.has(elem.name)) { - tag += ""; - } - } - return tag; + +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 } -function renderDirective(elem) { - return "<" + elem.data + ">"; + +Buffer.prototype.writeUInt8 = function writeUInt8 (value, offset, noAssert) { + value = +value + offset = offset | 0 + if (!noAssert) checkInt(this, value, offset, 1, 0xff, 0) + if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value) + this[offset] = (value & 0xff) + return offset + 1 } -function renderText(elem, opts) { - var data = elem.data || ""; - // If entities weren't decoded, no need to encode them back - if (opts.decodeEntities !== false && - !(!opts.xmlMode && - elem.parent && - unencodedElements.has(elem.parent.name))) { - data = entities_1.encodeXML(data); - } - return data; + +function objectWriteUInt16 (buf, value, offset, littleEndian) { + if (value < 0) value = 0xffff + value + 1 + for (var i = 0, j = Math.min(buf.length - offset, 2); i < j; ++i) { + buf[offset + i] = (value & (0xff << (8 * (littleEndian ? i : 1 - i)))) >>> + (littleEndian ? i : 1 - i) * 8 + } } -function renderCdata(elem) { - return ""; + +Buffer.prototype.writeUInt16LE = function writeUInt16LE (value, offset, noAssert) { + value = +value + offset = offset | 0 + if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0) + if (Buffer.TYPED_ARRAY_SUPPORT) { + this[offset] = (value & 0xff) + this[offset + 1] = (value >>> 8) + } else { + objectWriteUInt16(this, value, offset, true) + } + return offset + 2 } -function renderComment(elem) { - return ""; + +Buffer.prototype.writeUInt16BE = function writeUInt16BE (value, offset, noAssert) { + value = +value + offset = offset | 0 + if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0) + if (Buffer.TYPED_ARRAY_SUPPORT) { + this[offset] = (value >>> 8) + this[offset + 1] = (value & 0xff) + } else { + objectWriteUInt16(this, value, offset, false) + } + return offset + 2 } +function objectWriteUInt32 (buf, value, offset, littleEndian) { + if (value < 0) value = 0xffffffff + value + 1 + for (var i = 0, j = Math.min(buf.length - offset, 4); i < j; ++i) { + buf[offset + i] = (value >>> (littleEndian ? i : 3 - i) * 8) & 0xff + } +} -/***/ }), +Buffer.prototype.writeUInt32LE = function writeUInt32LE (value, offset, noAssert) { + value = +value + offset = offset | 0 + if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0) + if (Buffer.TYPED_ARRAY_SUPPORT) { + this[offset + 3] = (value >>> 24) + this[offset + 2] = (value >>> 16) + this[offset + 1] = (value >>> 8) + this[offset] = (value & 0xff) + } else { + objectWriteUInt32(this, value, offset, true) + } + return offset + 4 +} -/***/ "./node_modules/domelementtype/lib/index.js": -/*!**************************************************!*\ - !*** ./node_modules/domelementtype/lib/index.js ***! - \**************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { +Buffer.prototype.writeUInt32BE = function writeUInt32BE (value, offset, noAssert) { + value = +value + offset = offset | 0 + if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0) + if (Buffer.TYPED_ARRAY_SUPPORT) { + this[offset] = (value >>> 24) + this[offset + 1] = (value >>> 16) + this[offset + 2] = (value >>> 8) + this[offset + 3] = (value & 0xff) + } else { + objectWriteUInt32(this, value, offset, false) + } + return offset + 4 +} -"use strict"; +Buffer.prototype.writeIntLE = function writeIntLE (value, offset, byteLength, noAssert) { + value = +value + offset = offset | 0 + if (!noAssert) { + var limit = Math.pow(2, 8 * byteLength - 1) -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Doctype = exports.CDATA = exports.Tag = exports.Style = exports.Script = exports.Comment = exports.Directive = exports.Text = exports.Root = exports.isTag = exports.ElementType = void 0; -/** Types of elements found in htmlparser2's DOM */ -var ElementType; -(function (ElementType) { - /** Type for the root element of a document */ - ElementType["Root"] = "root"; - /** Type for Text */ - ElementType["Text"] = "text"; - /** Type for */ - ElementType["Directive"] = "directive"; - /** Type for */ - ElementType["Comment"] = "comment"; - /** Type for `. + this.sequenceIndex = Number(c === 60 /* Lt */); + } + }; + Tokenizer.prototype.stateCDATASequence = function (c) { + if (c === Sequences.Cdata[this.sequenceIndex]) { + if (++this.sequenceIndex === Sequences.Cdata.length) { + this._state = 21 /* InCommentLike */; + this.currentSequence = Sequences.CdataEnd; + this.sequenceIndex = 0; + this.sectionStart = this._index + 1; + } + } + else { + this.sequenceIndex = 0; + this._state = 16 /* InDeclaration */; + this.stateInDeclaration(c); // Reconsume the character + } + }; + /** + * When we wait for one specific character, we can speed things up + * by skipping through the buffer until we find it. + * + * @returns Whether the character was found. + */ + Tokenizer.prototype.fastForwardTo = function (c) { + while (++this._index < this.buffer.length) { + if (this.buffer.charCodeAt(this._index) === c) { + return true; } - this.baseState = 1 /* Text */; - this._state = 62 /* BeforeEntity */; - this.sectionStart = this._index; + } + /* + * We increment the index at the end of the `parse` loop, + * so set it to `buffer.length - 1` here. + * + * TODO: Refactor `parse` to increment index before calling states. + */ + this._index = this.buffer.length - 1; + return false; + }; + /** + * Comments and CDATA end with `-->` and `]]>`. + * + * Their common qualities are: + * - Their end sequences have a distinct character they start with. + * - That character is then repeated, so we have to check multiple repeats. + * - All characters but the start character of the sequence can be skipped. + */ + Tokenizer.prototype.stateInCommentLike = function (c) { + if (c === this.currentSequence[this.sequenceIndex]) { + if (++this.sequenceIndex === this.currentSequence.length) { + // Remove 2 trailing chars + var section = this.buffer.slice(this.sectionStart, this._index - 2); + if (this.currentSequence === Sequences.CdataEnd) { + this.cbs.oncdata(section); + } + else { + this.cbs.oncomment(section); + } + this.sequenceIndex = 0; + this.sectionStart = this._index + 1; + this._state = 1 /* Text */; + } + } + else if (this.sequenceIndex === 0) { + // Fast-forward to the first character of the sequence + if (this.fastForwardTo(this.currentSequence[0])) { + this.sequenceIndex = 1; + } + } + else if (c !== this.currentSequence[this.sequenceIndex - 1]) { + // Allow long sequences, eg. --->, ]]]> + this.sequenceIndex = 0; } }; /** @@ -43239,469 +46109,419 @@ var Tokenizer = /** @class */ (function () { * We allow anything that wouldn't end the tag. */ Tokenizer.prototype.isTagStartChar = function (c) { - return (isASCIIAlpha(c) || - (this.xmlMode && !whitespace(c) && c !== "/" && c !== ">")); + return this.xmlMode ? !isEndOfTagSection(c) : isASCIIAlpha(c); + }; + Tokenizer.prototype.startSpecial = function (sequence, offset) { + this.isSpecial = true; + this.currentSequence = sequence; + this.sequenceIndex = offset; + this._state = 23 /* SpecialStartSequence */; }; Tokenizer.prototype.stateBeforeTagName = function (c) { - if (c === "/") { - this._state = 5 /* BeforeClosingTagName */; - } - else if (c === "<") { - this.cbs.ontext(this.getSection()); - this.sectionStart = this._index; - } - else if (c === ">" || - this.special !== 1 /* None */ || - whitespace(c)) { - this._state = 1 /* Text */; - } - else if (c === "!") { + if (c === 33 /* ExclamationMark */) { this._state = 15 /* BeforeDeclaration */; this.sectionStart = this._index + 1; } - else if (c === "?") { + else if (c === 63 /* Questionmark */) { this._state = 17 /* InProcessingInstruction */; this.sectionStart = this._index + 1; } - else if (!this.isTagStartChar(c)) { - this._state = 1 /* Text */; + else if (this.isTagStartChar(c)) { + var lower = c | 0x20; + this.sectionStart = this._index; + if (!this.xmlMode && lower === Sequences.TitleEnd[2]) { + this.startSpecial(Sequences.TitleEnd, 3); + } + else { + this._state = + !this.xmlMode && lower === Sequences.ScriptEnd[2] + ? 22 /* BeforeSpecialS */ + : 3 /* InTagName */; + } + } + else if (c === 47 /* Slash */) { + this._state = 5 /* BeforeClosingTagName */; } else { - this._state = - !this.xmlMode && (c === "s" || c === "S") - ? 32 /* BeforeSpecialS */ - : !this.xmlMode && (c === "t" || c === "T") - ? 52 /* BeforeSpecialT */ - : 3 /* InTagName */; - this.sectionStart = this._index; + this._state = 1 /* Text */; + this.stateText(c); } }; Tokenizer.prototype.stateInTagName = function (c) { - if (c === "/" || c === ">" || whitespace(c)) { - this.emitToken("onopentagname"); + if (isEndOfTagSection(c)) { + this.cbs.onopentagname(this.getSection()); + this.sectionStart = -1; this._state = 8 /* BeforeAttributeName */; - this._index--; + this.stateBeforeAttributeName(c); } }; Tokenizer.prototype.stateBeforeClosingTagName = function (c) { - if (whitespace(c)) { + if (isWhitespace(c)) { // Ignore } - else if (c === ">") { + else if (c === 62 /* Gt */) { this._state = 1 /* Text */; } - else if (this.special !== 1 /* None */) { - if (this.special !== 4 /* Title */ && (c === "s" || c === "S")) { - this._state = 33 /* BeforeSpecialSEnd */; - } - else if (this.special === 4 /* Title */ && - (c === "t" || c === "T")) { - this._state = 53 /* BeforeSpecialTEnd */; - } - else { - this._state = 1 /* Text */; - this._index--; - } - } - else if (!this.isTagStartChar(c)) { - this._state = 20 /* InSpecialComment */; - this.sectionStart = this._index; - } else { - this._state = 6 /* InClosingTagName */; + this._state = this.isTagStartChar(c) + ? 6 /* InClosingTagName */ + : 20 /* InSpecialComment */; this.sectionStart = this._index; } }; Tokenizer.prototype.stateInClosingTagName = function (c) { - if (c === ">" || whitespace(c)) { - this.emitToken("onclosetag"); + if (c === 62 /* Gt */ || isWhitespace(c)) { + this.cbs.onclosetag(this.getSection()); + this.sectionStart = -1; this._state = 7 /* AfterClosingTagName */; - this._index--; + this.stateAfterClosingTagName(c); } }; Tokenizer.prototype.stateAfterClosingTagName = function (c) { // Skip everything until ">" - if (c === ">") { + if (c === 62 /* Gt */ || this.fastForwardTo(62 /* Gt */)) { this._state = 1 /* Text */; this.sectionStart = this._index + 1; } }; Tokenizer.prototype.stateBeforeAttributeName = function (c) { - if (c === ">") { + if (c === 62 /* Gt */) { this.cbs.onopentagend(); - this._state = 1 /* Text */; + if (this.isSpecial) { + this._state = 24 /* InSpecialTag */; + this.sequenceIndex = 0; + } + else { + this._state = 1 /* Text */; + } + this.baseState = this._state; this.sectionStart = this._index + 1; } - else if (c === "/") { + else if (c === 47 /* Slash */) { this._state = 4 /* InSelfClosingTag */; } - else if (!whitespace(c)) { + else if (!isWhitespace(c)) { this._state = 9 /* InAttributeName */; this.sectionStart = this._index; } }; Tokenizer.prototype.stateInSelfClosingTag = function (c) { - if (c === ">") { + if (c === 62 /* Gt */) { this.cbs.onselfclosingtag(); this._state = 1 /* Text */; + this.baseState = 1 /* Text */; this.sectionStart = this._index + 1; - this.special = 1 /* None */; // Reset special state, in case of self-closing special tags + this.isSpecial = false; // Reset special state, in case of self-closing special tags } - else if (!whitespace(c)) { + else if (!isWhitespace(c)) { this._state = 8 /* BeforeAttributeName */; - this._index--; + this.stateBeforeAttributeName(c); } }; Tokenizer.prototype.stateInAttributeName = function (c) { - if (c === "=" || c === "/" || c === ">" || whitespace(c)) { + if (c === 61 /* Eq */ || isEndOfTagSection(c)) { this.cbs.onattribname(this.getSection()); this.sectionStart = -1; this._state = 10 /* AfterAttributeName */; - this._index--; + this.stateAfterAttributeName(c); } }; Tokenizer.prototype.stateAfterAttributeName = function (c) { - if (c === "=") { + if (c === 61 /* Eq */) { this._state = 11 /* BeforeAttributeValue */; } - else if (c === "/" || c === ">") { + else if (c === 47 /* Slash */ || c === 62 /* Gt */) { this.cbs.onattribend(undefined); this._state = 8 /* BeforeAttributeName */; - this._index--; + this.stateBeforeAttributeName(c); } - else if (!whitespace(c)) { + else if (!isWhitespace(c)) { this.cbs.onattribend(undefined); this._state = 9 /* InAttributeName */; this.sectionStart = this._index; } }; Tokenizer.prototype.stateBeforeAttributeValue = function (c) { - if (c === '"') { + if (c === 34 /* DoubleQuote */) { this._state = 12 /* InAttributeValueDq */; this.sectionStart = this._index + 1; } - else if (c === "'") { + else if (c === 39 /* SingleQuote */) { this._state = 13 /* InAttributeValueSq */; this.sectionStart = this._index + 1; } - else if (!whitespace(c)) { - this._state = 14 /* InAttributeValueNq */; + else if (!isWhitespace(c)) { this.sectionStart = this._index; - this._index--; // Reconsume token + this._state = 14 /* InAttributeValueNq */; + this.stateInAttributeValueNoQuotes(c); // Reconsume token } }; Tokenizer.prototype.handleInAttributeValue = function (c, quote) { - if (c === quote) { - this.emitToken("onattribdata"); - this.cbs.onattribend(quote); + if (c === quote || + (!this.decodeEntities && this.fastForwardTo(quote))) { + this.cbs.onattribdata(this.getSection()); + this.sectionStart = -1; + this.cbs.onattribend(String.fromCharCode(quote)); this._state = 8 /* BeforeAttributeName */; } - else if (this.decodeEntities && c === "&") { - this.emitToken("onattribdata"); + else if (this.decodeEntities && c === 38 /* Amp */) { this.baseState = this._state; - this._state = 62 /* BeforeEntity */; - this.sectionStart = this._index; + this._state = 25 /* BeforeEntity */; } }; Tokenizer.prototype.stateInAttributeValueDoubleQuotes = function (c) { - this.handleInAttributeValue(c, '"'); + this.handleInAttributeValue(c, 34 /* DoubleQuote */); }; Tokenizer.prototype.stateInAttributeValueSingleQuotes = function (c) { - this.handleInAttributeValue(c, "'"); + this.handleInAttributeValue(c, 39 /* SingleQuote */); }; Tokenizer.prototype.stateInAttributeValueNoQuotes = function (c) { - if (whitespace(c) || c === ">") { - this.emitToken("onattribdata"); + if (isWhitespace(c) || c === 62 /* Gt */) { + this.cbs.onattribdata(this.getSection()); + this.sectionStart = -1; this.cbs.onattribend(null); this._state = 8 /* BeforeAttributeName */; - this._index--; + this.stateBeforeAttributeName(c); } - else if (this.decodeEntities && c === "&") { - this.emitToken("onattribdata"); + else if (this.decodeEntities && c === 38 /* Amp */) { this.baseState = this._state; - this._state = 62 /* BeforeEntity */; - this.sectionStart = this._index; + this._state = 25 /* BeforeEntity */; } }; Tokenizer.prototype.stateBeforeDeclaration = function (c) { - this._state = - c === "[" - ? 23 /* BeforeCdata1 */ - : c === "-" + if (c === 91 /* OpeningSquareBracket */) { + this._state = 19 /* CDATASequence */; + this.sequenceIndex = 0; + } + else { + this._state = + c === 45 /* Dash */ ? 18 /* BeforeComment */ : 16 /* InDeclaration */; + } }; Tokenizer.prototype.stateInDeclaration = function (c) { - if (c === ">") { + if (c === 62 /* Gt */ || this.fastForwardTo(62 /* Gt */)) { this.cbs.ondeclaration(this.getSection()); this._state = 1 /* Text */; this.sectionStart = this._index + 1; } }; Tokenizer.prototype.stateInProcessingInstruction = function (c) { - if (c === ">") { + if (c === 62 /* Gt */ || this.fastForwardTo(62 /* Gt */)) { this.cbs.onprocessinginstruction(this.getSection()); this._state = 1 /* Text */; this.sectionStart = this._index + 1; } }; Tokenizer.prototype.stateBeforeComment = function (c) { - if (c === "-") { - this._state = 19 /* InComment */; + if (c === 45 /* Dash */) { + this._state = 21 /* InCommentLike */; + this.currentSequence = Sequences.CommentEnd; + // Allow short comments (eg. ) + this.sequenceIndex = 2; this.sectionStart = this._index + 1; } else { this._state = 16 /* InDeclaration */; } }; - Tokenizer.prototype.stateInComment = function (c) { - if (c === "-") - this._state = 21 /* AfterComment1 */; - }; Tokenizer.prototype.stateInSpecialComment = function (c) { - if (c === ">") { - this.cbs.oncomment(this.buffer.substring(this.sectionStart, this._index)); - this._state = 1 /* Text */; - this.sectionStart = this._index + 1; - } - }; - Tokenizer.prototype.stateAfterComment1 = function (c) { - if (c === "-") { - this._state = 22 /* AfterComment2 */; - } - else { - this._state = 19 /* InComment */; - } - }; - Tokenizer.prototype.stateAfterComment2 = function (c) { - if (c === ">") { - // Remove 2 trailing chars - this.cbs.oncomment(this.buffer.substring(this.sectionStart, this._index - 2)); - this._state = 1 /* Text */; - this.sectionStart = this._index + 1; - } - else if (c !== "-") { - this._state = 19 /* InComment */; - } - // Else: stay in AFTER_COMMENT_2 (`--->`) - }; - Tokenizer.prototype.stateBeforeCdata6 = function (c) { - if (c === "[") { - this._state = 29 /* InCdata */; - this.sectionStart = this._index + 1; - } - else { - this._state = 16 /* InDeclaration */; - this._index--; - } - }; - Tokenizer.prototype.stateInCdata = function (c) { - if (c === "]") - this._state = 30 /* AfterCdata1 */; - }; - Tokenizer.prototype.stateAfterCdata1 = function (c) { - if (c === "]") - this._state = 31 /* AfterCdata2 */; - else - this._state = 29 /* InCdata */; - }; - Tokenizer.prototype.stateAfterCdata2 = function (c) { - if (c === ">") { - // Remove 2 trailing chars - this.cbs.oncdata(this.buffer.substring(this.sectionStart, this._index - 2)); + if (c === 62 /* Gt */ || this.fastForwardTo(62 /* Gt */)) { + this.cbs.oncomment(this.getSection()); this._state = 1 /* Text */; this.sectionStart = this._index + 1; } - else if (c !== "]") { - this._state = 29 /* InCdata */; - } - // Else: stay in AFTER_CDATA_2 (`]]]>`) }; Tokenizer.prototype.stateBeforeSpecialS = function (c) { - if (c === "c" || c === "C") { - this._state = 34 /* BeforeScript1 */; + var lower = c | 0x20; + if (lower === Sequences.ScriptEnd[3]) { + this.startSpecial(Sequences.ScriptEnd, 4); } - else if (c === "t" || c === "T") { - this._state = 44 /* BeforeStyle1 */; + else if (lower === Sequences.StyleEnd[3]) { + this.startSpecial(Sequences.StyleEnd, 4); } else { this._state = 3 /* InTagName */; - this._index--; // Consume the token again + this.stateInTagName(c); // Consume the token again } }; - Tokenizer.prototype.stateBeforeSpecialSEnd = function (c) { - if (this.special === 2 /* Script */ && (c === "c" || c === "C")) { - this._state = 39 /* AfterScript1 */; + Tokenizer.prototype.stateBeforeEntity = function (c) { + // Start excess with 1 to include the '&' + this.entityExcess = 1; + if (c === 35 /* Num */) { + this._state = 26 /* BeforeNumericEntity */; } - else if (this.special === 3 /* Style */ && (c === "t" || c === "T")) { - this._state = 48 /* AfterStyle1 */; + else if (c === 38 /* Amp */) { + // We have two `&` characters in a row. Stay in the current state. } - else - this._state = 1 /* Text */; - }; - Tokenizer.prototype.stateBeforeSpecialLast = function (c, special) { - if (c === "/" || c === ">" || whitespace(c)) { - this.special = special; + else { + this.trieIndex = 0; + this.trieCurrent = this.entityTrie[0]; + this.trieResult = null; + this._state = 27 /* InNamedEntity */; + this.stateInNamedEntity(c); } - this._state = 3 /* InTagName */; - this._index--; // Consume the token again }; - Tokenizer.prototype.stateAfterSpecialLast = function (c, sectionStartOffset) { - if (c === ">" || whitespace(c)) { - this.special = 1 /* None */; - this._state = 6 /* InClosingTagName */; - this.sectionStart = this._index - sectionStartOffset; - this._index--; // Reconsume the token + Tokenizer.prototype.stateInNamedEntity = function (c) { + this.entityExcess += 1; + this.trieIndex = (0, decode_1.determineBranch)(this.entityTrie, this.trieCurrent, this.trieIndex + 1, c); + if (this.trieIndex < 0) { + this.emitNamedEntity(); + this._index--; + return; } - else - this._state = 1 /* Text */; - }; - // For entities terminated with a semicolon - Tokenizer.prototype.parseFixedEntity = function (map) { - if (map === void 0) { map = this.xmlMode ? xml_json_1.default : entities_json_1.default; } - // Offset = 1 - if (this.sectionStart + 1 < this._index) { - var entity = this.buffer.substring(this.sectionStart + 1, this._index); - if (Object.prototype.hasOwnProperty.call(map, entity)) { - this.emitPartial(map[entity]); + this.trieCurrent = this.entityTrie[this.trieIndex]; + // If the branch is a value, store it and continue + if (this.trieCurrent & decode_1.BinTrieFlags.HAS_VALUE) { + // If we have a legacy entity while parsing strictly, just skip the number of bytes + if (!this.allowLegacyEntity() && c !== 59 /* Semi */) { + // No need to consider multi-byte values, as the legacy entity is always a single byte + this.trieIndex += 1; + } + else { + // Add 1 as we have already incremented the excess + var entityStart = this._index - this.entityExcess + 1; + if (entityStart > this.sectionStart) { + this.emitPartial(this.buffer.substring(this.sectionStart, entityStart)); + } + // If this is a surrogate pair, combine the higher bits from the node with the next byte + this.trieResult = + this.trieCurrent & decode_1.BinTrieFlags.MULTI_BYTE + ? String.fromCharCode(this.entityTrie[++this.trieIndex], this.entityTrie[++this.trieIndex]) + : String.fromCharCode(this.entityTrie[++this.trieIndex]); + this.entityExcess = 0; this.sectionStart = this._index + 1; } } }; - // Parses legacy entities (without trailing semicolon) - Tokenizer.prototype.parseLegacyEntity = function () { - var start = this.sectionStart + 1; - // The max length of legacy entities is 6 - var limit = Math.min(this._index - start, 6); - while (limit >= 2) { - // The min length of legacy entities is 2 - var entity = this.buffer.substr(start, limit); - if (Object.prototype.hasOwnProperty.call(legacy_json_1.default, entity)) { - this.emitPartial(legacy_json_1.default[entity]); - this.sectionStart += limit + 1; - return; - } - limit--; + Tokenizer.prototype.emitNamedEntity = function () { + if (this.trieResult) { + this.emitPartial(this.trieResult); } + this._state = this.baseState; }; - Tokenizer.prototype.stateInNamedEntity = function (c) { - if (c === ";") { - this.parseFixedEntity(); - // Retry as legacy entity if entity wasn't parsed - if (this.baseState === 1 /* Text */ && - this.sectionStart + 1 < this._index && - !this.xmlMode) { - this.parseLegacyEntity(); - } - this._state = this.baseState; + Tokenizer.prototype.stateBeforeNumericEntity = function (c) { + if ((c | 0x20) === 120 /* LowerX */) { + this.entityExcess++; + this._state = 29 /* InHexEntity */; } - else if ((c < "0" || c > "9") && !isASCIIAlpha(c)) { - if (this.xmlMode || this.sectionStart + 1 === this._index) { - // Ignore - } - else if (this.baseState !== 1 /* Text */) { - if (c !== "=") { - // Parse as legacy entity, without allowing additional characters. - this.parseFixedEntity(legacy_json_1.default); - } - } - else { - this.parseLegacyEntity(); - } - this._state = this.baseState; - this._index--; + else { + this._state = 28 /* InNumericEntity */; + this.stateInNumericEntity(c); } }; - Tokenizer.prototype.decodeNumericEntity = function (offset, base, strict) { - var sectionStart = this.sectionStart + offset; - if (sectionStart !== this._index) { + Tokenizer.prototype.decodeNumericEntity = function (base, strict) { + var entityStart = this._index - this.entityExcess - 1; + var numberStart = entityStart + 2 + (base >> 4); + if (numberStart !== this._index) { + // Emit leading data if any + if (entityStart > this.sectionStart) { + this.emitPartial(this.buffer.substring(this.sectionStart, entityStart)); + } // Parse entity - var entity = this.buffer.substring(sectionStart, this._index); + var entity = this.buffer.substring(numberStart, this._index); var parsed = parseInt(entity, base); - this.emitPartial(decode_codepoint_1.default(parsed)); - this.sectionStart = strict ? this._index + 1 : this._index; + this.emitPartial((0, decode_codepoint_1.default)(parsed)); + this.sectionStart = this._index + Number(strict); } this._state = this.baseState; }; Tokenizer.prototype.stateInNumericEntity = function (c) { - if (c === ";") { - this.decodeNumericEntity(2, 10, true); + if (c === 59 /* Semi */) { + this.decodeNumericEntity(10, true); } - else if (c < "0" || c > "9") { - if (!this.xmlMode) { - this.decodeNumericEntity(2, 10, false); + else if (!isNumber(c)) { + if (this.allowLegacyEntity()) { + this.decodeNumericEntity(10, false); } else { this._state = this.baseState; } this._index--; } + else { + this.entityExcess++; + } }; Tokenizer.prototype.stateInHexEntity = function (c) { - if (c === ";") { - this.decodeNumericEntity(3, 16, true); + if (c === 59 /* Semi */) { + this.decodeNumericEntity(16, true); } - else if ((c < "a" || c > "f") && - (c < "A" || c > "F") && - (c < "0" || c > "9")) { - if (!this.xmlMode) { - this.decodeNumericEntity(3, 16, false); + else if ((c < 97 /* LowerA */ || c > 102 /* LowerF */) && + (c < 65 /* UpperA */ || c > 70 /* UpperF */) && + !isNumber(c)) { + if (this.allowLegacyEntity()) { + this.decodeNumericEntity(16, false); } else { this._state = this.baseState; } this._index--; } + else { + this.entityExcess++; + } + }; + Tokenizer.prototype.allowLegacyEntity = function () { + return (!this.xmlMode && + (this.baseState === 1 /* Text */ || + this.baseState === 24 /* InSpecialTag */)); }; + /** + * Remove data that has already been consumed from the buffer. + */ Tokenizer.prototype.cleanup = function () { - if (this.sectionStart < 0) { - this.buffer = ""; - this.bufferOffset += this._index; - this._index = 0; + // If we are inside of text, emit what we already have. + if (this.running && + this.sectionStart !== this._index && + (this._state === 1 /* Text */ || + (this._state === 24 /* InSpecialTag */ && + this.sequenceIndex === 0))) { + // TODO: We could emit attribute data here as well. + this.cbs.ontext(this.buffer.substr(this.sectionStart)); + this.sectionStart = this._index; } - else if (this.running) { - if (this._state === 1 /* Text */) { - if (this.sectionStart !== this._index) { - this.cbs.ontext(this.buffer.substr(this.sectionStart)); - } - this.buffer = ""; - this.bufferOffset += this._index; - this._index = 0; - } - else if (this.sectionStart === this._index) { - // The section just started - this.buffer = ""; - this.bufferOffset += this._index; - this._index = 0; - } - else { - // Remove everything unnecessary - this.buffer = this.buffer.substr(this.sectionStart); - this._index -= this.sectionStart; - this.bufferOffset += this.sectionStart; - } + var start = this.sectionStart < 0 ? this._index : this.sectionStart; + this.buffer = + start === this.buffer.length ? "" : this.buffer.substr(start); + this._index -= start; + this.bufferOffset += start; + if (this.sectionStart > 0) { this.sectionStart = 0; } }; + Tokenizer.prototype.shouldContinue = function () { + return this._index < this.buffer.length && this.running; + }; /** * Iterates through the buffer, calling the function corresponding to the current state. * * States that are more likely to be hit are higher up, as a performance improvement. */ Tokenizer.prototype.parse = function () { - while (this._index < this.buffer.length && this.running) { - var c = this.buffer.charAt(this._index); + while (this.shouldContinue()) { + var c = this.buffer.charCodeAt(this._index); if (this._state === 1 /* Text */) { this.stateText(c); } + else if (this._state === 23 /* SpecialStartSequence */) { + this.stateSpecialStartSequence(c); + } + else if (this._state === 24 /* InSpecialTag */) { + this.stateInSpecialTag(c); + } + else if (this._state === 19 /* CDATASequence */) { + this.stateCDATASequence(c); + } else if (this._state === 12 /* InAttributeValueDq */) { this.stateInAttributeValueDoubleQuotes(c); } else if (this._state === 9 /* InAttributeName */) { this.stateInAttributeName(c); } - else if (this._state === 19 /* InComment */) { - this.stateInComment(c); + else if (this._state === 21 /* InCommentLike */) { + this.stateInCommentLike(c); } else if (this._state === 20 /* InSpecialComment */) { this.stateInSpecialComment(c); @@ -43733,12 +46553,9 @@ var Tokenizer = /** @class */ (function () { else if (this._state === 7 /* AfterClosingTagName */) { this.stateAfterClosingTagName(c); } - else if (this._state === 32 /* BeforeSpecialS */) { + else if (this._state === 22 /* BeforeSpecialS */) { this.stateBeforeSpecialS(c); } - else if (this._state === 21 /* AfterComment1 */) { - this.stateAfterComment1(c); - } else if (this._state === 14 /* InAttributeValueNq */) { this.stateInAttributeValueNoQuotes(c); } @@ -43751,218 +46568,88 @@ var Tokenizer = /** @class */ (function () { else if (this._state === 15 /* BeforeDeclaration */) { this.stateBeforeDeclaration(c); } - else if (this._state === 22 /* AfterComment2 */) { - this.stateAfterComment2(c); - } else if (this._state === 18 /* BeforeComment */) { this.stateBeforeComment(c); } - else if (this._state === 33 /* BeforeSpecialSEnd */) { - this.stateBeforeSpecialSEnd(c); - } - else if (this._state === 53 /* BeforeSpecialTEnd */) { - stateAfterSpecialTEnd(this, c); - } - else if (this._state === 39 /* AfterScript1 */) { - stateAfterScript1(this, c); - } - else if (this._state === 40 /* AfterScript2 */) { - stateAfterScript2(this, c); - } - else if (this._state === 41 /* AfterScript3 */) { - stateAfterScript3(this, c); - } - else if (this._state === 34 /* BeforeScript1 */) { - stateBeforeScript1(this, c); - } - else if (this._state === 35 /* BeforeScript2 */) { - stateBeforeScript2(this, c); - } - else if (this._state === 36 /* BeforeScript3 */) { - stateBeforeScript3(this, c); - } - else if (this._state === 37 /* BeforeScript4 */) { - stateBeforeScript4(this, c); - } - else if (this._state === 38 /* BeforeScript5 */) { - this.stateBeforeSpecialLast(c, 2 /* Script */); - } - else if (this._state === 42 /* AfterScript4 */) { - stateAfterScript4(this, c); - } - else if (this._state === 43 /* AfterScript5 */) { - this.stateAfterSpecialLast(c, 6); - } - else if (this._state === 44 /* BeforeStyle1 */) { - stateBeforeStyle1(this, c); - } - else if (this._state === 29 /* InCdata */) { - this.stateInCdata(c); - } - else if (this._state === 45 /* BeforeStyle2 */) { - stateBeforeStyle2(this, c); - } - else if (this._state === 46 /* BeforeStyle3 */) { - stateBeforeStyle3(this, c); - } - else if (this._state === 47 /* BeforeStyle4 */) { - this.stateBeforeSpecialLast(c, 3 /* Style */); - } - else if (this._state === 48 /* AfterStyle1 */) { - stateAfterStyle1(this, c); - } - else if (this._state === 49 /* AfterStyle2 */) { - stateAfterStyle2(this, c); - } - else if (this._state === 50 /* AfterStyle3 */) { - stateAfterStyle3(this, c); - } - else if (this._state === 51 /* AfterStyle4 */) { - this.stateAfterSpecialLast(c, 5); - } - else if (this._state === 52 /* BeforeSpecialT */) { - stateBeforeSpecialT(this, c); - } - else if (this._state === 54 /* BeforeTitle1 */) { - stateBeforeTitle1(this, c); - } - else if (this._state === 55 /* BeforeTitle2 */) { - stateBeforeTitle2(this, c); - } - else if (this._state === 56 /* BeforeTitle3 */) { - stateBeforeTitle3(this, c); - } - else if (this._state === 57 /* BeforeTitle4 */) { - this.stateBeforeSpecialLast(c, 4 /* Title */); - } - else if (this._state === 58 /* AfterTitle1 */) { - stateAfterTitle1(this, c); - } - else if (this._state === 59 /* AfterTitle2 */) { - stateAfterTitle2(this, c); - } - else if (this._state === 60 /* AfterTitle3 */) { - stateAfterTitle3(this, c); - } - else if (this._state === 61 /* AfterTitle4 */) { - this.stateAfterSpecialLast(c, 5); - } else if (this._state === 17 /* InProcessingInstruction */) { this.stateInProcessingInstruction(c); } - else if (this._state === 64 /* InNamedEntity */) { + else if (this._state === 27 /* InNamedEntity */) { this.stateInNamedEntity(c); } - else if (this._state === 23 /* BeforeCdata1 */) { - stateBeforeCdata1(this, c); - } - else if (this._state === 62 /* BeforeEntity */) { - stateBeforeEntity(this, c); + else if (this._state === 25 /* BeforeEntity */) { + this.stateBeforeEntity(c); } - else if (this._state === 24 /* BeforeCdata2 */) { - stateBeforeCdata2(this, c); - } - else if (this._state === 25 /* BeforeCdata3 */) { - stateBeforeCdata3(this, c); - } - else if (this._state === 30 /* AfterCdata1 */) { - this.stateAfterCdata1(c); - } - else if (this._state === 31 /* AfterCdata2 */) { - this.stateAfterCdata2(c); - } - else if (this._state === 26 /* BeforeCdata4 */) { - stateBeforeCdata4(this, c); - } - else if (this._state === 27 /* BeforeCdata5 */) { - stateBeforeCdata5(this, c); - } - else if (this._state === 28 /* BeforeCdata6 */) { - this.stateBeforeCdata6(c); - } - else if (this._state === 66 /* InHexEntity */) { + else if (this._state === 29 /* InHexEntity */) { this.stateInHexEntity(c); } - else if (this._state === 65 /* InNumericEntity */) { + else if (this._state === 28 /* InNumericEntity */) { this.stateInNumericEntity(c); - // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition - } - else if (this._state === 63 /* BeforeNumericEntity */) { - stateBeforeNumericEntity(this, c); } else { - this.cbs.onerror(Error("unknown _state"), this._state); + // `this._state === State.BeforeNumericEntity` + this.stateBeforeNumericEntity(c); } this._index++; } this.cleanup(); }; Tokenizer.prototype.finish = function () { + if (this._state === 27 /* InNamedEntity */) { + this.emitNamedEntity(); + } // If there is remaining data, emit it in a reasonable way if (this.sectionStart < this._index) { this.handleTrailingData(); } this.cbs.onend(); }; + /** Handle any trailing data. */ Tokenizer.prototype.handleTrailingData = function () { var data = this.buffer.substr(this.sectionStart); - if (this._state === 29 /* InCdata */ || - this._state === 30 /* AfterCdata1 */ || - this._state === 31 /* AfterCdata2 */) { - this.cbs.oncdata(data); - } - else if (this._state === 19 /* InComment */ || - this._state === 21 /* AfterComment1 */ || - this._state === 22 /* AfterComment2 */) { - this.cbs.oncomment(data); - } - else if (this._state === 64 /* InNamedEntity */ && !this.xmlMode) { - this.parseLegacyEntity(); - if (this.sectionStart < this._index) { - this._state = this.baseState; - this.handleTrailingData(); - } - } - else if (this._state === 65 /* InNumericEntity */ && !this.xmlMode) { - this.decodeNumericEntity(2, 10, false); - if (this.sectionStart < this._index) { - this._state = this.baseState; - this.handleTrailingData(); - } - } - else if (this._state === 66 /* InHexEntity */ && !this.xmlMode) { - this.decodeNumericEntity(3, 16, false); - if (this.sectionStart < this._index) { - this._state = this.baseState; - this.handleTrailingData(); + if (this._state === 21 /* InCommentLike */) { + if (this.currentSequence === Sequences.CdataEnd) { + this.cbs.oncdata(data); } + else { + this.cbs.oncomment(data); + } + } + else if (this._state === 28 /* InNumericEntity */ && + this.allowLegacyEntity()) { + this.decodeNumericEntity(10, false); + // All trailing data will have been consumed + } + else if (this._state === 29 /* InHexEntity */ && + this.allowLegacyEntity()) { + this.decodeNumericEntity(16, false); + // All trailing data will have been consumed + } + else if (this._state === 3 /* InTagName */ || + this._state === 8 /* BeforeAttributeName */ || + this._state === 11 /* BeforeAttributeValue */ || + this._state === 10 /* AfterAttributeName */ || + this._state === 9 /* InAttributeName */ || + this._state === 13 /* InAttributeValueSq */ || + this._state === 12 /* InAttributeValueDq */ || + this._state === 14 /* InAttributeValueNq */ || + this._state === 6 /* InClosingTagName */) { + /* + * If we are currently in an opening or closing tag, us not calling the + * respective callback signals that the tag should be ignored. + */ } - else if (this._state !== 3 /* InTagName */ && - this._state !== 8 /* BeforeAttributeName */ && - this._state !== 11 /* BeforeAttributeValue */ && - this._state !== 10 /* AfterAttributeName */ && - this._state !== 9 /* InAttributeName */ && - this._state !== 13 /* InAttributeValueSq */ && - this._state !== 12 /* InAttributeValueDq */ && - this._state !== 14 /* InAttributeValueNq */ && - this._state !== 6 /* InClosingTagName */) { + else { this.cbs.ontext(data); } - /* - * Else, ignore remaining data - * TODO add a way to remove current tag - */ }; Tokenizer.prototype.getSection = function () { return this.buffer.substring(this.sectionStart, this._index); }; - Tokenizer.prototype.emitToken = function (name) { - this.cbs[name](this.getSection()); - this.sectionStart = -1; - }; Tokenizer.prototype.emitPartial = function (value) { - if (this.baseState !== 1 /* Text */) { - this.cbs.onattribdata(value); // TODO implement the new event + if (this.baseState !== 1 /* Text */ && + this.baseState !== 24 /* InSpecialTag */) { + this.cbs.onattribdata(value); } else { this.cbs.ontext(value); @@ -44038,102 +46725,6 @@ var WritableStream = /** @class */ (function (_super) { exports.WritableStream = WritableStream; -/***/ }), - -/***/ "./node_modules/htmlparser2/lib/index.js": -/*!***********************************************!*\ - !*** ./node_modules/htmlparser2/lib/index.js ***! - \***********************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -var __exportStar = (this && this.__exportStar) || function(m, exports) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); -}; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.RssHandler = exports.DefaultHandler = exports.DomUtils = exports.ElementType = exports.Tokenizer = exports.createDomStream = exports.parseDOM = exports.parseDocument = exports.DomHandler = exports.Parser = void 0; -var Parser_1 = __webpack_require__(/*! ./Parser */ "./node_modules/htmlparser2/lib/Parser.js"); -Object.defineProperty(exports, "Parser", { enumerable: true, get: function () { return Parser_1.Parser; } }); -var domhandler_1 = __webpack_require__(/*! domhandler */ "./node_modules/domhandler/lib/index.js"); -Object.defineProperty(exports, "DomHandler", { enumerable: true, get: function () { return domhandler_1.DomHandler; } }); -Object.defineProperty(exports, "DefaultHandler", { enumerable: true, get: function () { return domhandler_1.DomHandler; } }); -// Helper methods -/** - * Parses the data, returns the resulting document. - * - * @param data The data that should be parsed. - * @param options Optional options for the parser and DOM builder. - */ -function parseDocument(data, options) { - var handler = new domhandler_1.DomHandler(undefined, options); - new Parser_1.Parser(handler, options).end(data); - return handler.root; -} -exports.parseDocument = parseDocument; -/** - * Parses data, returns an array of the root nodes. - * - * Note that the root nodes still have a `Document` node as their parent. - * Use `parseDocument` to get the `Document` node instead. - * - * @param data The data that should be parsed. - * @param options Optional options for the parser and DOM builder. - * @deprecated Use `parseDocument` instead. - */ -function parseDOM(data, options) { - return parseDocument(data, options).children; -} -exports.parseDOM = parseDOM; -/** - * Creates a parser instance, with an attached DOM handler. - * - * @param cb A callback that will be called once parsing has been completed. - * @param options Optional options for the parser and DOM builder. - * @param elementCb An optional callback that will be called every time a tag has been completed inside of the DOM. - */ -function createDomStream(cb, options, elementCb) { - var handler = new domhandler_1.DomHandler(cb, options, elementCb); - return new Parser_1.Parser(handler, options); -} -exports.createDomStream = createDomStream; -var Tokenizer_1 = __webpack_require__(/*! ./Tokenizer */ "./node_modules/htmlparser2/lib/Tokenizer.js"); -Object.defineProperty(exports, "Tokenizer", { enumerable: true, get: function () { return __importDefault(Tokenizer_1).default; } }); -var ElementType = __importStar(__webpack_require__(/*! domelementtype */ "./node_modules/domelementtype/lib/index.js")); -exports.ElementType = ElementType; -/* - * All of the following exports exist for backwards-compatibility. - * They should probably be removed eventually. - */ -__exportStar(__webpack_require__(/*! ./FeedHandler */ "./node_modules/htmlparser2/lib/FeedHandler.js"), exports); -exports.DomUtils = __importStar(__webpack_require__(/*! domutils */ "./node_modules/domutils/lib/index.js")); -var FeedHandler_1 = __webpack_require__(/*! ./FeedHandler */ "./node_modules/htmlparser2/lib/FeedHandler.js"); -Object.defineProperty(exports, "RssHandler", { enumerable: true, get: function () { return FeedHandler_1.FeedHandler; } }); - - /***/ }), /***/ "./node_modules/http-link-header/lib/link.js": @@ -44465,7 +47056,7 @@ Link.parseExtendedValue = function( value ) { */ Link.formatExtendedAttribute = function( attr, data ) { - var encoding = ( data.encoding || 'utf-8' ).toUpperCase() + var encoding = ( data.encoding || 'utf-8' ).toUpperCase() var language = data.language || 'en' var encodedValue = '' @@ -51360,8 +53951,8 @@ class JsonLdParser extends stream_1.Transform { const parentKey = await this.util.unaliasKeywordParent(keys, depth); this.parsingContext.emittedStack[depth] = true; let handleKey = true; - // Keywords inside @reverse is not allowed - if (jsonld_context_parser_1.Util.isValidKeyword(key) && parentKey === '@reverse') { + // Keywords inside @reverse is not allowed apart from @context + if (jsonld_context_parser_1.Util.isValidKeyword(key) && parentKey === '@reverse' && key !== '@context') { this.emit('error', new jsonld_context_parser_1.ErrorCoded(`Found the @id '${value}' inside an @reverse property`, jsonld_context_parser_1.ERROR_CODES.INVALID_REVERSE_PROPERTY_MAP)); } // Skip further processing if one of the parent nodes are invalid. @@ -52481,7 +55072,7 @@ class Util { expanded = context.expandTerm(key, false, expandOptions); } if (!Util.isValidIri(expanded)) { - if (expanded && this.parsingContext.strictValues) { + if (expanded && this.parsingContext.strictValues && !expanded.startsWith('@')) { this.parsingContext.emitError(new Error(`Invalid term IRI: ${expanded}`)); } else { @@ -53990,6 +56581,14 @@ class EntryHandlerKeywordValue extends EntryHandlerKeyword_1.EntryHandlerKeyword constructor() { super('@value'); } + async validate(parsingContext, util, keys, depth, inProperty) { + // If this is @value, mark it so in the stack so that no deeper handling of nodes occurs. + const key = keys[depth]; + if (key && !parsingContext.literalStack[depth] && await this.test(parsingContext, util, key, keys, depth)) { + parsingContext.literalStack[depth] = true; + } + return super.validate(parsingContext, util, keys, depth, inProperty); + } async test(parsingContext, util, key, keys, depth) { return await util.unaliasKeyword(keys[depth], keys.slice(0, keys.length - 1), depth - 1, true) === '@value'; } @@ -54958,1271 +57557,1305 @@ module.exports = Parser; /***/ }), -/***/ "./node_modules/lodash.uniqwith/index.js": -/*!***********************************************!*\ - !*** ./node_modules/lodash.uniqwith/index.js ***! - \***********************************************/ +/***/ "./node_modules/lru-cache/index.js": +/*!*****************************************!*\ + !*** ./node_modules/lru-cache/index.js ***! + \*****************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { -/* WEBPACK VAR INJECTION */(function(global) {/** - * lodash (Custom Build) - * Build: `lodash modularize exports="npm" -o ./` - * Copyright jQuery Foundation and other contributors - * Released under MIT license - * Based on Underscore.js 1.8.3 - * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */ +"use strict"; -/** Used as the size to enable large array optimizations. */ -var LARGE_ARRAY_SIZE = 200; -/** Used to stand-in for `undefined` hash values. */ -var HASH_UNDEFINED = '__lodash_hash_undefined__'; +// A linked list to keep track of recently-used-ness +const Yallist = __webpack_require__(/*! yallist */ "./node_modules/yallist/yallist.js") -/** Used as references for various `Number` constants. */ -var INFINITY = 1 / 0; +const MAX = Symbol('max') +const LENGTH = Symbol('length') +const LENGTH_CALCULATOR = Symbol('lengthCalculator') +const ALLOW_STALE = Symbol('allowStale') +const MAX_AGE = Symbol('maxAge') +const DISPOSE = Symbol('dispose') +const NO_DISPOSE_ON_SET = Symbol('noDisposeOnSet') +const LRU_LIST = Symbol('lruList') +const CACHE = Symbol('cache') +const UPDATE_AGE_ON_GET = Symbol('updateAgeOnGet') -/** `Object#toString` result references. */ -var funcTag = '[object Function]', - genTag = '[object GeneratorFunction]'; +const naiveLength = () => 1 -/** - * Used to match `RegExp` - * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns). - */ -var reRegExpChar = /[\\^$.*+?()[\]{}|]/g; +// lruList is a yallist where the head is the youngest +// item, and the tail is the oldest. the list contains the Hit +// objects as the entries. +// Each Hit object has a reference to its Yallist.Node. This +// never changes. +// +// cache is a Map (or PseudoMap) that matches the keys to +// the Yallist.Node object. +class LRUCache { + constructor (options) { + if (typeof options === 'number') + options = { max: options } -/** Used to detect host constructors (Safari). */ -var reIsHostCtor = /^\[object .+?Constructor\]$/; + if (!options) + options = {} -/** Detect free variable `global` from Node.js. */ -var freeGlobal = typeof global == 'object' && global && global.Object === Object && global; + if (options.max && (typeof options.max !== 'number' || options.max < 0)) + throw new TypeError('max must be a non-negative number') + // Kind of weird to have a default max of Infinity, but oh well. + const max = this[MAX] = options.max || Infinity -/** Detect free variable `self`. */ -var freeSelf = typeof self == 'object' && self && self.Object === Object && self; + const lc = options.length || naiveLength + this[LENGTH_CALCULATOR] = (typeof lc !== 'function') ? naiveLength : lc + this[ALLOW_STALE] = options.stale || false + if (options.maxAge && typeof options.maxAge !== 'number') + throw new TypeError('maxAge must be a number') + this[MAX_AGE] = options.maxAge || 0 + this[DISPOSE] = options.dispose + this[NO_DISPOSE_ON_SET] = options.noDisposeOnSet || false + this[UPDATE_AGE_ON_GET] = options.updateAgeOnGet || false + this.reset() + } -/** Used as a reference to the global object. */ -var root = freeGlobal || freeSelf || Function('return this')(); + // resize the cache when the max changes. + set max (mL) { + if (typeof mL !== 'number' || mL < 0) + throw new TypeError('max must be a non-negative number') -/** - * A specialized version of `_.includes` for arrays without support for - * specifying an index to search from. - * - * @private - * @param {Array} [array] The array to inspect. - * @param {*} target The value to search for. - * @returns {boolean} Returns `true` if `target` is found, else `false`. - */ -function arrayIncludes(array, value) { - var length = array ? array.length : 0; - return !!length && baseIndexOf(array, value, 0) > -1; -} + this[MAX] = mL || Infinity + trim(this) + } + get max () { + return this[MAX] + } -/** - * This function is like `arrayIncludes` except that it accepts a comparator. - * - * @private - * @param {Array} [array] The array to inspect. - * @param {*} target The value to search for. - * @param {Function} comparator The comparator invoked per element. - * @returns {boolean} Returns `true` if `target` is found, else `false`. - */ -function arrayIncludesWith(array, value, comparator) { - var index = -1, - length = array ? array.length : 0; - - while (++index < length) { - if (comparator(value, array[index])) { - return true; - } + set allowStale (allowStale) { + this[ALLOW_STALE] = !!allowStale + } + get allowStale () { + return this[ALLOW_STALE] } - return false; -} -/** - * The base implementation of `_.findIndex` and `_.findLastIndex` without - * support for iteratee shorthands. - * - * @private - * @param {Array} array The array to inspect. - * @param {Function} predicate The function invoked per iteration. - * @param {number} fromIndex The index to search from. - * @param {boolean} [fromRight] Specify iterating from right to left. - * @returns {number} Returns the index of the matched value, else `-1`. - */ -function baseFindIndex(array, predicate, fromIndex, fromRight) { - var length = array.length, - index = fromIndex + (fromRight ? 1 : -1); - - while ((fromRight ? index-- : ++index < length)) { - if (predicate(array[index], index, array)) { - return index; + set maxAge (mA) { + if (typeof mA !== 'number') + throw new TypeError('maxAge must be a non-negative number') + + this[MAX_AGE] = mA + trim(this) + } + get maxAge () { + return this[MAX_AGE] + } + + // resize the cache when the lengthCalculator changes. + set lengthCalculator (lC) { + if (typeof lC !== 'function') + lC = naiveLength + + if (lC !== this[LENGTH_CALCULATOR]) { + this[LENGTH_CALCULATOR] = lC + this[LENGTH] = 0 + this[LRU_LIST].forEach(hit => { + hit.length = this[LENGTH_CALCULATOR](hit.value, hit.key) + this[LENGTH] += hit.length + }) } + trim(this) } - return -1; -} + get lengthCalculator () { return this[LENGTH_CALCULATOR] } -/** - * The base implementation of `_.indexOf` without `fromIndex` bounds checks. - * - * @private - * @param {Array} array The array to inspect. - * @param {*} value The value to search for. - * @param {number} fromIndex The index to search from. - * @returns {number} Returns the index of the matched value, else `-1`. - */ -function baseIndexOf(array, value, fromIndex) { - if (value !== value) { - return baseFindIndex(array, baseIsNaN, fromIndex); + get length () { return this[LENGTH] } + get itemCount () { return this[LRU_LIST].length } + + rforEach (fn, thisp) { + thisp = thisp || this + for (let walker = this[LRU_LIST].tail; walker !== null;) { + const prev = walker.prev + forEachStep(this, fn, walker, thisp) + walker = prev + } } - var index = fromIndex - 1, - length = array.length; - while (++index < length) { - if (array[index] === value) { - return index; + forEach (fn, thisp) { + thisp = thisp || this + for (let walker = this[LRU_LIST].head; walker !== null;) { + const next = walker.next + forEachStep(this, fn, walker, thisp) + walker = next } } - return -1; -} -/** - * The base implementation of `_.isNaN` without support for number objects. - * - * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`. - */ -function baseIsNaN(value) { - return value !== value; -} + keys () { + return this[LRU_LIST].toArray().map(k => k.key) + } -/** - * Checks if a cache value for `key` exists. - * - * @private - * @param {Object} cache The cache to query. - * @param {string} key The key of the entry to check. - * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. - */ -function cacheHas(cache, key) { - return cache.has(key); -} + values () { + return this[LRU_LIST].toArray().map(k => k.value) + } -/** - * Gets the value at `key` of `object`. - * - * @private - * @param {Object} [object] The object to query. - * @param {string} key The key of the property to get. - * @returns {*} Returns the property value. - */ -function getValue(object, key) { - return object == null ? undefined : object[key]; -} + reset () { + if (this[DISPOSE] && + this[LRU_LIST] && + this[LRU_LIST].length) { + this[LRU_LIST].forEach(hit => this[DISPOSE](hit.key, hit.value)) + } -/** - * Checks if `value` is a host object in IE < 9. - * - * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a host object, else `false`. - */ -function isHostObject(value) { - // Many host objects are `Object` objects that can coerce to strings - // despite having improperly defined `toString` methods. - var result = false; - if (value != null && typeof value.toString != 'function') { - try { - result = !!(value + ''); - } catch (e) {} + this[CACHE] = new Map() // hash of items by key + this[LRU_LIST] = new Yallist() // list of items in order of use recency + this[LENGTH] = 0 // length of items in the list } - return result; -} -/** - * Converts `set` to an array of its values. - * - * @private - * @param {Object} set The set to convert. - * @returns {Array} Returns the values. - */ -function setToArray(set) { - var index = -1, - result = Array(set.size); + dump () { + return this[LRU_LIST].map(hit => + isStale(this, hit) ? false : { + k: hit.key, + v: hit.value, + e: hit.now + (hit.maxAge || 0) + }).toArray().filter(h => h) + } - set.forEach(function(value) { - result[++index] = value; - }); - return result; -} + dumpLru () { + return this[LRU_LIST] + } -/** Used for built-in method references. */ -var arrayProto = Array.prototype, - funcProto = Function.prototype, - objectProto = Object.prototype; + set (key, value, maxAge) { + maxAge = maxAge || this[MAX_AGE] -/** Used to detect overreaching core-js shims. */ -var coreJsData = root['__core-js_shared__']; + if (maxAge && typeof maxAge !== 'number') + throw new TypeError('maxAge must be a number') -/** Used to detect methods masquerading as native. */ -var maskSrcKey = (function() { - var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || ''); - return uid ? ('Symbol(src)_1.' + uid) : ''; -}()); + const now = maxAge ? Date.now() : 0 + const len = this[LENGTH_CALCULATOR](value, key) -/** Used to resolve the decompiled source of functions. */ -var funcToString = funcProto.toString; + if (this[CACHE].has(key)) { + if (len > this[MAX]) { + del(this, this[CACHE].get(key)) + return false + } -/** Used to check objects for own properties. */ -var hasOwnProperty = objectProto.hasOwnProperty; + const node = this[CACHE].get(key) + const item = node.value -/** - * Used to resolve the - * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) - * of values. - */ -var objectToString = objectProto.toString; + // dispose of the old one before overwriting + // split out into 2 ifs for better coverage tracking + if (this[DISPOSE]) { + if (!this[NO_DISPOSE_ON_SET]) + this[DISPOSE](key, item.value) + } -/** Used to detect if a method is native. */ -var reIsNative = RegExp('^' + - funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&') - .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$' -); + item.now = now + item.maxAge = maxAge + item.value = value + this[LENGTH] += len - item.length + item.length = len + this.get(key) + trim(this) + return true + } -/** Built-in value references. */ -var splice = arrayProto.splice; + const hit = new Entry(key, value, len, now, maxAge) -/* Built-in method references that are verified to be native. */ -var Map = getNative(root, 'Map'), - Set = getNative(root, 'Set'), - nativeCreate = getNative(Object, 'create'); + // oversized objects fall out of cache automatically. + if (hit.length > this[MAX]) { + if (this[DISPOSE]) + this[DISPOSE](key, value) -/** - * Creates a hash object. - * - * @private - * @constructor - * @param {Array} [entries] The key-value pairs to cache. - */ -function Hash(entries) { - var index = -1, - length = entries ? entries.length : 0; + return false + } - this.clear(); - while (++index < length) { - var entry = entries[index]; - this.set(entry[0], entry[1]); + this[LENGTH] += hit.length + this[LRU_LIST].unshift(hit) + this[CACHE].set(key, this[LRU_LIST].head) + trim(this) + return true } -} -/** - * Removes all key-value entries from the hash. - * - * @private - * @name clear - * @memberOf Hash - */ -function hashClear() { - this.__data__ = nativeCreate ? nativeCreate(null) : {}; -} + has (key) { + if (!this[CACHE].has(key)) return false + const hit = this[CACHE].get(key).value + return !isStale(this, hit) + } -/** - * Removes `key` and its value from the hash. - * - * @private - * @name delete - * @memberOf Hash - * @param {Object} hash The hash to modify. - * @param {string} key The key of the value to remove. - * @returns {boolean} Returns `true` if the entry was removed, else `false`. - */ -function hashDelete(key) { - return this.has(key) && delete this.__data__[key]; -} + get (key) { + return get(this, key, true) + } -/** - * Gets the hash value for `key`. - * - * @private - * @name get - * @memberOf Hash - * @param {string} key The key of the value to get. - * @returns {*} Returns the entry value. - */ -function hashGet(key) { - var data = this.__data__; - if (nativeCreate) { - var result = data[key]; - return result === HASH_UNDEFINED ? undefined : result; + peek (key) { + return get(this, key, false) } - return hasOwnProperty.call(data, key) ? data[key] : undefined; -} -/** - * Checks if a hash value for `key` exists. - * - * @private - * @name has - * @memberOf Hash - * @param {string} key The key of the entry to check. - * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. - */ -function hashHas(key) { - var data = this.__data__; - return nativeCreate ? data[key] !== undefined : hasOwnProperty.call(data, key); -} + pop () { + const node = this[LRU_LIST].tail + if (!node) + return null -/** - * Sets the hash `key` to `value`. - * - * @private - * @name set - * @memberOf Hash - * @param {string} key The key of the value to set. - * @param {*} value The value to set. - * @returns {Object} Returns the hash instance. - */ -function hashSet(key, value) { - var data = this.__data__; - data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value; - return this; -} + del(this, node) + return node.value + } -// Add methods to `Hash`. -Hash.prototype.clear = hashClear; -Hash.prototype['delete'] = hashDelete; -Hash.prototype.get = hashGet; -Hash.prototype.has = hashHas; -Hash.prototype.set = hashSet; + del (key) { + del(this, this[CACHE].get(key)) + } -/** - * Creates an list cache object. - * - * @private - * @constructor - * @param {Array} [entries] The key-value pairs to cache. - */ -function ListCache(entries) { - var index = -1, - length = entries ? entries.length : 0; + load (arr) { + // reset the cache + this.reset() + + const now = Date.now() + // A previous serialized cache has the most recent items first + for (let l = arr.length - 1; l >= 0; l--) { + const hit = arr[l] + const expiresAt = hit.e || 0 + if (expiresAt === 0) + // the item was created without expiration in a non aged cache + this.set(hit.k, hit.v) + else { + const maxAge = expiresAt - now + // dont add already expired items + if (maxAge > 0) { + this.set(hit.k, hit.v, maxAge) + } + } + } + } - this.clear(); - while (++index < length) { - var entry = entries[index]; - this.set(entry[0], entry[1]); + prune () { + this[CACHE].forEach((value, key) => get(this, key, false)) } } -/** - * Removes all key-value entries from the list cache. - * - * @private - * @name clear - * @memberOf ListCache - */ -function listCacheClear() { - this.__data__ = []; +const get = (self, key, doUse) => { + const node = self[CACHE].get(key) + if (node) { + const hit = node.value + if (isStale(self, hit)) { + del(self, node) + if (!self[ALLOW_STALE]) + return undefined + } else { + if (doUse) { + if (self[UPDATE_AGE_ON_GET]) + node.value.now = Date.now() + self[LRU_LIST].unshiftNode(node) + } + } + return hit.value + } } -/** - * Removes `key` and its value from the list cache. - * - * @private - * @name delete - * @memberOf ListCache - * @param {string} key The key of the value to remove. - * @returns {boolean} Returns `true` if the entry was removed, else `false`. - */ -function listCacheDelete(key) { - var data = this.__data__, - index = assocIndexOf(data, key); +const isStale = (self, hit) => { + if (!hit || (!hit.maxAge && !self[MAX_AGE])) + return false - if (index < 0) { - return false; - } - var lastIndex = data.length - 1; - if (index == lastIndex) { - data.pop(); - } else { - splice.call(data, index, 1); + const diff = Date.now() - hit.now + return hit.maxAge ? diff > hit.maxAge + : self[MAX_AGE] && (diff > self[MAX_AGE]) +} + +const trim = self => { + if (self[LENGTH] > self[MAX]) { + for (let walker = self[LRU_LIST].tail; + self[LENGTH] > self[MAX] && walker !== null;) { + // We know that we're about to delete this one, and also + // what the next least recently used key will be, so just + // go ahead and set it now. + const prev = walker.prev + del(self, walker) + walker = prev + } } - return true; } -/** - * Gets the list cache value for `key`. - * - * @private - * @name get - * @memberOf ListCache - * @param {string} key The key of the value to get. - * @returns {*} Returns the entry value. - */ -function listCacheGet(key) { - var data = this.__data__, - index = assocIndexOf(data, key); +const del = (self, node) => { + if (node) { + const hit = node.value + if (self[DISPOSE]) + self[DISPOSE](hit.key, hit.value) - return index < 0 ? undefined : data[index][1]; + self[LENGTH] -= hit.length + self[CACHE].delete(hit.key) + self[LRU_LIST].removeNode(node) + } } -/** - * Checks if a list cache value for `key` exists. - * - * @private - * @name has - * @memberOf ListCache - * @param {string} key The key of the entry to check. - * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. - */ -function listCacheHas(key) { - return assocIndexOf(this.__data__, key) > -1; +class Entry { + constructor (key, value, length, now, maxAge) { + this.key = key + this.value = value + this.length = length + this.now = now + this.maxAge = maxAge || 0 + } } -/** - * Sets the list cache `key` to `value`. - * - * @private - * @name set - * @memberOf ListCache - * @param {string} key The key of the value to set. - * @param {*} value The value to set. - * @returns {Object} Returns the list cache instance. - */ -function listCacheSet(key, value) { - var data = this.__data__, - index = assocIndexOf(data, key); - - if (index < 0) { - data.push([key, value]); - } else { - data[index][1] = value; +const forEachStep = (self, fn, node, thisp) => { + let hit = node.value + if (isStale(self, hit)) { + del(self, node) + if (!self[ALLOW_STALE]) + hit = undefined } - return this; + if (hit) + fn.call(thisp, hit.value, hit.key, self) } -// Add methods to `ListCache`. -ListCache.prototype.clear = listCacheClear; -ListCache.prototype['delete'] = listCacheDelete; -ListCache.prototype.get = listCacheGet; -ListCache.prototype.has = listCacheHas; -ListCache.prototype.set = listCacheSet; +module.exports = LRUCache + +/***/ }), + +/***/ "./node_modules/microdata-rdf-streaming-parser/index.js": +/*!**************************************************************!*\ + !*** ./node_modules/microdata-rdf-streaming-parser/index.js ***! + \**************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +__exportStar(__webpack_require__(/*! ./lib/propertyhandler/IItemPropertyHandler */ "./node_modules/microdata-rdf-streaming-parser/lib/propertyhandler/IItemPropertyHandler.js"), exports); +__exportStar(__webpack_require__(/*! ./lib/propertyhandler/ItemPropertyHandlerContent */ "./node_modules/microdata-rdf-streaming-parser/lib/propertyhandler/ItemPropertyHandlerContent.js"), exports); +__exportStar(__webpack_require__(/*! ./lib/propertyhandler/ItemPropertyHandlerNumber */ "./node_modules/microdata-rdf-streaming-parser/lib/propertyhandler/ItemPropertyHandlerNumber.js"), exports); +__exportStar(__webpack_require__(/*! ./lib/propertyhandler/ItemPropertyHandlerTime */ "./node_modules/microdata-rdf-streaming-parser/lib/propertyhandler/ItemPropertyHandlerTime.js"), exports); +__exportStar(__webpack_require__(/*! ./lib/propertyhandler/ItemPropertyHandlerUrl */ "./node_modules/microdata-rdf-streaming-parser/lib/propertyhandler/ItemPropertyHandlerUrl.js"), exports); +__exportStar(__webpack_require__(/*! ./lib/IHtmlParseListener */ "./node_modules/microdata-rdf-streaming-parser/lib/IHtmlParseListener.js"), exports); +__exportStar(__webpack_require__(/*! ./lib/IItemScope */ "./node_modules/microdata-rdf-streaming-parser/lib/IItemScope.js"), exports); +__exportStar(__webpack_require__(/*! ./lib/IVocabRegistry */ "./node_modules/microdata-rdf-streaming-parser/lib/IVocabRegistry.js"), exports); +__exportStar(__webpack_require__(/*! ./lib/MicrodataRdfParser */ "./node_modules/microdata-rdf-streaming-parser/lib/MicrodataRdfParser.js"), exports); +__exportStar(__webpack_require__(/*! ./lib/Util */ "./node_modules/microdata-rdf-streaming-parser/lib/Util.js"), exports); +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ "./node_modules/microdata-rdf-streaming-parser/lib/IHtmlParseListener.js": +/*!*******************************************************************************!*\ + !*** ./node_modules/microdata-rdf-streaming-parser/lib/IHtmlParseListener.js ***! + \*******************************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=IHtmlParseListener.js.map + +/***/ }), + +/***/ "./node_modules/microdata-rdf-streaming-parser/lib/IItemScope.js": +/*!***********************************************************************!*\ + !*** ./node_modules/microdata-rdf-streaming-parser/lib/IItemScope.js ***! + \***********************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=IItemScope.js.map + +/***/ }), + +/***/ "./node_modules/microdata-rdf-streaming-parser/lib/IVocabRegistry.js": +/*!***************************************************************************!*\ + !*** ./node_modules/microdata-rdf-streaming-parser/lib/IVocabRegistry.js ***! + \***************************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=IVocabRegistry.js.map + +/***/ }), + +/***/ "./node_modules/microdata-rdf-streaming-parser/lib/MicrodataRdfParser.js": +/*!*******************************************************************************!*\ + !*** ./node_modules/microdata-rdf-streaming-parser/lib/MicrodataRdfParser.js ***! + \*******************************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +exports.MicrodataRdfParser = void 0; +const stream_1 = __webpack_require__(/*! stream */ "./node_modules/stream-browserify/index.js"); +const htmlparser2_1 = __webpack_require__(/*! htmlparser2 */ "./node_modules/microdata-rdf-streaming-parser/node_modules/htmlparser2/lib/index.js"); +const ItemPropertyHandlerContent_1 = __webpack_require__(/*! ./propertyhandler/ItemPropertyHandlerContent */ "./node_modules/microdata-rdf-streaming-parser/lib/propertyhandler/ItemPropertyHandlerContent.js"); +const ItemPropertyHandlerNumber_1 = __webpack_require__(/*! ./propertyhandler/ItemPropertyHandlerNumber */ "./node_modules/microdata-rdf-streaming-parser/lib/propertyhandler/ItemPropertyHandlerNumber.js"); +const ItemPropertyHandlerTime_1 = __webpack_require__(/*! ./propertyhandler/ItemPropertyHandlerTime */ "./node_modules/microdata-rdf-streaming-parser/lib/propertyhandler/ItemPropertyHandlerTime.js"); +const ItemPropertyHandlerUrl_1 = __webpack_require__(/*! ./propertyhandler/ItemPropertyHandlerUrl */ "./node_modules/microdata-rdf-streaming-parser/lib/propertyhandler/ItemPropertyHandlerUrl.js"); +const Util_1 = __webpack_require__(/*! ./Util */ "./node_modules/microdata-rdf-streaming-parser/lib/Util.js"); +const VOCAB_REGISTRY_DEFAULT = __webpack_require__(/*! ./vocab-registry-default.json */ "./node_modules/microdata-rdf-streaming-parser/lib/vocab-registry-default.json"); /** - * Creates a map cache object to store key-value pairs. - * - * @private - * @constructor - * @param {Array} [entries] The key-value pairs to cache. + * A stream transformer that parses Microdata (text) streams to an {@link RDF.Stream}. */ -function MapCache(entries) { - var index = -1, - length = entries ? entries.length : 0; - - this.clear(); - while (++index < length) { - var entry = entries[index]; - this.set(entry[0], entry[1]); - } +class MicrodataRdfParser extends stream_1.Transform { + constructor(options) { + super({ readableObjectMode: true }); + // Stacks, where the key is the current depth. + this.itemScopeStack = []; + this.textBufferStack = []; + // Variables for managing itemrefs. + this.isEmittingReferences = false; + this.pendingItemRefsDomain = {}; + this.pendingItemRefsRangeFinalized = {}; + // eslint-disable-next-line lines-between-class-members + this.pendingItemRefsRangeCollecting = {}; + options = options || {}; + this.options = options; + this.util = new Util_1.Util(options.dataFactory, options.baseIRI); + this.defaultGraph = options.defaultGraph || this.util.dataFactory.defaultGraph(); + this.htmlParseListener = options.htmlParseListener; + this.vocabRegistry = options.vocabRegistry || VOCAB_REGISTRY_DEFAULT; + this.parser = this.initializeParser(!!options.xmlMode); + } + /** + * Parses the given text stream into a quad stream. + * @param {NodeJS.EventEmitter} stream A text stream. + * @return {RDF.Stream} A quad stream. + */ + import(stream) { + const output = new stream_1.PassThrough({ readableObjectMode: true }); + stream.on('error', (error) => parsed.emit('error', error)); + stream.on('data', (data) => output.push(data)); + stream.on('end', () => output.push(null)); + const parsed = output.pipe(new MicrodataRdfParser(this.options)); + return parsed; + } + _transform(chunk, encoding, callback) { + this.parser.write(chunk); + callback(); + } + _flush(callback) { + this.parser.end(); + callback(); + } + /** + * Get the current item scope for the current depth. + * This will skip all undefined item scopes. + * @param parent If we should start looking one level higher in the stack. + */ + getItemScope(parent) { + let parentTagI = this.itemScopeStack.length - (parent ? 2 : 1); + while (parentTagI > 0 && !this.itemScopeStack[parentTagI]) { + parentTagI--; + } + return this.itemScopeStack[parentTagI]; + } + /** + * Get the current stack depth. + */ + getDepth() { + return this.itemScopeStack.length; + } + onTagOpen(name, attributes) { + if (!this.isEmittingReferences) { + // If the tag has an 'id', start collecting the whole stack in the item reference buffer + if ('id' in attributes) { + const id = attributes.id; + this.pendingItemRefsRangeCollecting[id] = { + events: [], + counter: 0, + ids: [], + }; + } + // Store this event in all collecting item reference buffers + for (const buffer of Object.values(this.pendingItemRefsRangeCollecting)) { + buffer.counter++; + buffer.events.push({ type: 'open', name, attributes }); + } + } + // Ensure the text buffer stack is in line with the stack depth + // eslint-disable-next-line unicorn/no-useless-undefined + this.textBufferStack.push(undefined); + // Processing steps based on https://w3c.github.io/microdata-rdf/#rdf-conversion-algorithm + // 1. Determine the current item scope + let itemScope; + if ('itemscope' in attributes) { + // Create a new item scope + let subject; + if (this.emittingReferencesItemScopeIdGenerator) { + subject = this.emittingReferencesItemScopeIdGenerator(); + } + else { + subject = 'itemid' in attributes && this.util.createSubject(attributes.itemid) || + this.util.dataFactory.blankNode(); + // Store the genererated id in all collecting item reference buffers + for (const buffer of Object.values(this.pendingItemRefsRangeCollecting)) { + buffer.ids.push(subject); + } + } + itemScope = { subject }; + // If the id was reused from a reference, block any new triples to be generated from it + if (this.isEmittingReferences) { + itemScope.blockEmission = true; + } + // Inherit vocab from parent item scope + const parentItemScope = this.getItemScope(); + if (parentItemScope && parentItemScope.vocab) { + itemScope.vocab = parentItemScope.vocab; + } + // 2. Push any changes to the item scope to the stack + this.itemScopeStack.push(itemScope); + } + else { + // Determine the parent item scope + itemScope = this.getItemScope(); + // 2. Push any changes to the item scope to the stack + // eslint-disable-next-line unicorn/no-useless-undefined + this.itemScopeStack.push(undefined); + } + // If we have a valid item scope, process the current node + if (itemScope) { + // 3. Handle item types + if ('itemtype' in attributes) { + for (const type of this.util.createVocabIris(attributes.itemtype, itemScope, false)) { + // 4. Vocab identifier is the first valid item + if (!itemScope.vocab) { + // 5. Modify vocab based on registry + itemScope.vocab = this.util.deriveVocab(type.value, this.vocabRegistry); + } + // Emit item type + if (!itemScope.blockEmission) { + this.emitTriple(itemScope.subject, this.util.dataFactory.namedNode(`${Util_1.Util.RDF}type`), type); + } + } + } + // Save language in item scope + if ('lang' in attributes) { + itemScope.language = attributes.lang; + } + if ('xml:lang' in attributes) { + itemScope.language = attributes['xml:lang']; + } + // Handle itemrefs (only if we also had an itemscope) + if ('itemscope' in attributes) { + // If we have an itemref, store it in our domain buffer. + if (!this.isEmittingReferences && 'itemref' in attributes) { + for (const reference of attributes.itemref.split(/\s+/u)) { + if (!(reference in this.pendingItemRefsDomain)) { + this.pendingItemRefsDomain[reference] = []; + } + this.pendingItemRefsDomain[reference].push(itemScope); + this.tryToEmitReferences(reference, itemScope); + } + } + } + } + // 6. Handle item properties + if ('itemprop' in attributes) { + this.handleItemProperties(attributes.itemprop, false, itemScope, name, attributes); + } + // Handle reverse item properties + // https://w3c.github.io/microdata-rdf/#reverse-itemprop + if ('itemprop-reverse' in attributes) { + this.handleItemProperties(attributes['itemprop-reverse'], true, itemScope, name, attributes); + } + } + onText(data) { + // Store this event in all collecting item reference buffers + if (!this.isEmittingReferences) { + for (const buffer of Object.values(this.pendingItemRefsRangeCollecting)) { + buffer.events.push({ type: 'text', data }); + } + } + // Save the text inside all item scopes that need to collect text + for (const textBuffer of this.textBufferStack) { + if (textBuffer) { + textBuffer.push(data); + } + } + } + onTagClose() { + // Store this event in all collecting item reference buffers + if (!this.isEmittingReferences) { + for (const [reference, buffer] of Object.entries(this.pendingItemRefsRangeCollecting)) { + buffer.counter--; + buffer.events.push({ type: 'close' }); + // Once the counter becomes zero, the tag is fully buffered, so we finalize it. + if (buffer.counter === 0) { + this.pendingItemRefsRangeFinalized[reference] = buffer; + delete this.pendingItemRefsRangeCollecting[reference]; + // Try to emit this reference with buffered domain items + this.tryToEmitReferences(reference); + } + } + } + // Emit all triples that were determined in the active tag + const itemScope = this.getItemScope(true); + if (itemScope) { + const depth = this.getDepth(); + if (itemScope.predicates && depth in itemScope.predicates) { + for (const [predicateKey, predicates] of Object.entries(itemScope.predicates[depth])) { + // First check if we have a child item scope, otherwise get the text content + // Safely cast textBufferStack, as it is always defined when itemScope.predicates is defined. + const object = this.util.createLiteral(this.textBufferStack[depth].join(''), itemScope); + this.emitPredicateTriples(itemScope, predicates, object, predicateKey === 'reverse'); + delete itemScope.predicates[depth][predicateKey]; + } + } + } + // Remove the active tag from the stack + this.itemScopeStack.pop(); + this.textBufferStack.pop(); + } + onEnd() { + // Nothing important should happen here. + } + /** + * Initialize a new HtmlParser. + * @param xmlMode If the parser should be setup in strict mode. + */ + initializeParser(xmlMode) { + return new htmlparser2_1.Parser({ + onclosetag: () => { + try { + this.onTagClose(); + if (this.htmlParseListener) { + this.htmlParseListener.onTagClose(); + } + } + catch (error) { + this.emit('error', error); + } + }, + onend: () => { + try { + this.onEnd(); + if (this.htmlParseListener) { + this.htmlParseListener.onEnd(); + } + } + catch (error) { + this.emit('error', error); + } + }, + onopentag: (name, attributes) => { + try { + this.onTagOpen(name, attributes); + if (this.htmlParseListener) { + this.htmlParseListener.onTagOpen(name, attributes); + } + } + catch (error) { + this.emit('error', error); + } + }, + ontext: (data) => { + try { + this.onText(data); + if (this.htmlParseListener) { + this.htmlParseListener.onText(data); + } + } + catch (error) { + this.emit('error', error); + } + }, + }, { + decodeEntities: true, + recognizeSelfClosing: true, + xmlMode, + }); + } + /** + * Handle the given item properties. + * @param itempropValue The value of itemprop or itemprop-reverse. + * @param reverse If the item properties are reversed (itemprop-reverse). + * @param itemScope The current item scope. + * @param tagName The current tag name. + * @param tagAttributes The current tag attributes. + */ + handleItemProperties(itempropValue, reverse, itemScope, tagName, tagAttributes) { + const parentItemScope = this.getItemScope(true); + if (parentItemScope) { + // Set predicates in the scope, and handle them on tag close. + const depth = this.getDepth(); + const predicates = this.util.createVocabIris(itempropValue, parentItemScope, true); + if (!parentItemScope.predicates) { + parentItemScope.predicates = {}; + } + if (!parentItemScope.predicates[depth]) { + parentItemScope.predicates[depth] = {}; + } + const predicatesKey = reverse ? 'reverse' : 'forward'; + parentItemScope.predicates[depth][predicatesKey] = predicates; + // Append rdf:type predicate if vocabulary expansion applies + for (const vocabularyExpansionType of this.util.getVocabularyExpansionType(itempropValue, parentItemScope, this.vocabRegistry)) { + predicates.push(vocabularyExpansionType); + } + // Check if a property handler that applies, forcefully use that as predicate value. + // But DON'T call handlers in this prop is a direct (nested) itemscope. + if (itemScope && 'itemscope' in tagAttributes) { + this.emitPredicateTriples(parentItemScope, predicates, itemScope.subject, reverse); + // Finalize the predicates, so text values do not apply to them. + delete parentItemScope.predicates[depth][predicatesKey]; + } + else { + for (const handler of MicrodataRdfParser.ITEM_PROPERTY_HANDLERS) { + if (handler.canHandle(tagName, tagAttributes)) { + const object = handler.getObject(tagAttributes, this.util, parentItemScope); + this.emitPredicateTriples(parentItemScope, predicates, object, reverse); + // Finalize the predicates, so text values do not apply to them. + delete parentItemScope.predicates[depth][predicatesKey]; + } + } + } + // If no valid handler was found, indicate that we should collect text at this depth. + if (parentItemScope.predicates[depth][predicatesKey]) { + this.textBufferStack[depth] = []; + } + } + } + /** + * Emit the given object for the given predicates. + * @param itemScope The current item scope. + * @param predicates An array of predicates. + * @param object An object. + * @param reverse If the triples should be reversed. + */ + emitPredicateTriples(itemScope, predicates, object, reverse) { + if (!itemScope.blockEmission) { + for (const predicate of predicates) { + if (reverse) { + // Literals can not exist in subject position, so they must be ignored. + if (object.termType !== 'Literal') { + this.emitTriple(object, predicate, itemScope.subject); + } + } + else { + this.emitTriple(itemScope.subject, predicate, object); + } + } + } + } + /** + * Emit the given triple to the stream. + * @param {Quad_Subject} subject A subject term. + * @param {Quad_Predicate} predicate A predicate term. + * @param {Quad_Object} object An object term. + */ + emitTriple(subject, predicate, object) { + this.push(this.util.dataFactory.quad(subject, predicate, object, this.defaultGraph)); + } + /** + * Attempt to emit all pending itemrefs for the given reference. + * @param reference An item reference id. + * @param itemScopeDomain An optional item scope. If defined, only refs from this scope will be emitted. + */ + tryToEmitReferences(reference, itemScopeDomain) { + const range = this.pendingItemRefsRangeFinalized[reference]; + if (range) { + // Determine the item scope domains to emit + let applicableItemScopes; + if (itemScopeDomain) { + applicableItemScopes = [itemScopeDomain]; + // Remove the item from the pending array + // Element is guaranteed to exist in buffer + const itemScopeDomainIndex = this.pendingItemRefsDomain[reference].indexOf(itemScopeDomain); + this.pendingItemRefsDomain[reference].splice(itemScopeDomainIndex, 1); + } + else { + applicableItemScopes = this.pendingItemRefsDomain[reference]; + // Remove all items from the pending array + delete this.pendingItemRefsDomain[reference]; + } + if (applicableItemScopes) { + // Save the stack state + const itemScopeStackOld = this.itemScopeStack; + const textBufferStackOld = this.textBufferStack; + this.isEmittingReferences = true; + // For all applicable item scopes, emit the buffered events. + for (const itemScope of applicableItemScopes) { + this.itemScopeStack = [itemScope]; + this.textBufferStack = [undefined]; + const pendingIds = range.ids.slice(); + this.emittingReferencesItemScopeIdGenerator = () => pendingIds.shift(); + for (const event of range.events) { + switch (event.type) { + case 'open': + this.onTagOpen(event.name, event.attributes); + break; + case 'text': + this.onText(event.data); + break; + case 'close': + this.onTagClose(); + break; + } + } + } + // Restore the stack state + this.emittingReferencesItemScopeIdGenerator = undefined; + this.itemScopeStack = itemScopeStackOld; + this.textBufferStack = textBufferStackOld; + this.isEmittingReferences = false; + } + } + } } +exports.MicrodataRdfParser = MicrodataRdfParser; +MicrodataRdfParser.ITEM_PROPERTY_HANDLERS = [ + new ItemPropertyHandlerContent_1.ItemPropertyHandlerContent(), + new ItemPropertyHandlerUrl_1.ItemPropertyHandlerUrl('a', 'href'), + new ItemPropertyHandlerUrl_1.ItemPropertyHandlerUrl('area', 'href'), + new ItemPropertyHandlerUrl_1.ItemPropertyHandlerUrl('audio', 'src'), + new ItemPropertyHandlerUrl_1.ItemPropertyHandlerUrl('embed', 'src'), + new ItemPropertyHandlerUrl_1.ItemPropertyHandlerUrl('iframe', 'src'), + new ItemPropertyHandlerUrl_1.ItemPropertyHandlerUrl('img', 'src'), + new ItemPropertyHandlerUrl_1.ItemPropertyHandlerUrl('link', 'href'), + new ItemPropertyHandlerUrl_1.ItemPropertyHandlerUrl('object', 'data'), + new ItemPropertyHandlerUrl_1.ItemPropertyHandlerUrl('source', 'src'), + new ItemPropertyHandlerUrl_1.ItemPropertyHandlerUrl('track', 'src'), + new ItemPropertyHandlerUrl_1.ItemPropertyHandlerUrl('video', 'src'), + new ItemPropertyHandlerNumber_1.ItemPropertyHandlerNumber('data', 'value'), + new ItemPropertyHandlerNumber_1.ItemPropertyHandlerNumber('meter', 'value'), + new ItemPropertyHandlerTime_1.ItemPropertyHandlerTime(), +]; +//# sourceMappingURL=MicrodataRdfParser.js.map -/** - * Removes all key-value entries from the map. - * - * @private - * @name clear - * @memberOf MapCache - */ -function mapCacheClear() { - this.__data__ = { - 'hash': new Hash, - 'map': new (Map || ListCache), - 'string': new Hash - }; -} +/***/ }), -/** - * Removes `key` and its value from the map. - * - * @private - * @name delete - * @memberOf MapCache - * @param {string} key The key of the value to remove. - * @returns {boolean} Returns `true` if the entry was removed, else `false`. - */ -function mapCacheDelete(key) { - return getMapData(this, key)['delete'](key); -} +/***/ "./node_modules/microdata-rdf-streaming-parser/lib/Util.js": +/*!*****************************************************************!*\ + !*** ./node_modules/microdata-rdf-streaming-parser/lib/Util.js ***! + \*****************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { -/** - * Gets the map value for `key`. - * - * @private - * @name get - * @memberOf MapCache - * @param {string} key The key of the value to get. - * @returns {*} Returns the entry value. - */ -function mapCacheGet(key) { - return getMapData(this, key).get(key); -} +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Util = void 0; +const rdf_data_factory_1 = __webpack_require__(/*! rdf-data-factory */ "./node_modules/rdf-data-factory/index.js"); +const relative_to_absolute_iri_1 = __webpack_require__(/*! relative-to-absolute-iri */ "./node_modules/relative-to-absolute-iri/index.js"); /** - * Checks if a map value for `key` exists. - * - * @private - * @name has - * @memberOf MapCache - * @param {string} key The key of the entry to check. - * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. + * A collection of utility functions. */ -function mapCacheHas(key) { - return getMapData(this, key).has(key); -} - -/** - * Sets the map `key` to `value`. - * - * @private - * @name set - * @memberOf MapCache - * @param {string} key The key of the value to set. - * @param {*} value The value to set. - * @returns {Object} Returns the map cache instance. - */ -function mapCacheSet(key, value) { - getMapData(this, key).set(key, value); - return this; +class Util { + constructor(dataFactory, baseIRI) { + this.dataFactory = dataFactory || new rdf_data_factory_1.DataFactory(); + this.baseIRI = baseIRI || ''; + } + /** + * Check if the given IRI is valid. + * @param {string} iri A potential IRI. + * @return {boolean} If the given IRI is valid. + */ + static isValidIri(iri) { + return Util.IRI_REGEX.test(iri); + } + /** + * Create vocab terms for the given terms attribute. + * + * Relative IRIs will be based on the active vocab or baseIRI if `allowRelativeIris` is true. + * + * @param {string} terms An attribute value. + * @param {IItemScope} itemScope The active item scope. + * @param {boolean} allowRelativeIris If relative IRIs are allowed. + * @return {Term[]} The IRI terms. + */ + createVocabIris(terms, itemScope, allowRelativeIris) { + return terms.split(/\s+/u) + .filter(term => !!term) + .map(property => { + if (!Util.isValidIri(property)) { + if (!allowRelativeIris) { + return; + } + property = `${itemScope.vocab || `${this.baseIRI}#`}${property}`; + } + return this.dataFactory.namedNode(property); + }) + .filter(term => !!term); + } + /** + * Get the predicates for which the given itemprop value should cause vocabulary expansion. + * @param terms An attribute value. + * @param itemScope The active item scope. + * @param vocabRegistry The active vocabulary registry. + */ + getVocabularyExpansionType(terms, itemScope, vocabRegistry) { + // Check the presence of subPropertyOf or equivalentProperty + const parts = terms.split(/\s+/u); + if (parts.includes('subPropertyOf') || parts.includes('equivalentProperty')) { + return [this.dataFactory.namedNode(`${Util.RDF}type`)]; + } + // Check in the item scope's vocab + if (itemScope.vocab && itemScope.vocab in vocabRegistry && vocabRegistry[itemScope.vocab].properties) { + let predicates = []; + for (const [property, expansions] of Object + .entries(vocabRegistry[itemScope.vocab].properties)) { + if (parts.includes(property)) { + predicates = predicates.concat(Object.values(expansions).map(iri => this.dataFactory.namedNode(iri))); + } + } + return predicates; + } + return []; + } + /** + * Create a named node for the given term, which can be relative to the document base. + * @param {string} iri A term string. + * @return {Term} An RDF term, or undefined if invalid. + */ + createSubject(iri) { + if (!Util.isValidIri(iri)) { + try { + iri = relative_to_absolute_iri_1.resolve(iri, this.baseIRI); + } + catch (_a) { + return; + } + } + return this.dataFactory.namedNode(iri); + } + /** + * Create a new literal node. + * @param {string} literal The literal value. + * @param {IActiveTag} activeTag The current active tag. + * @return {Literal} A new literal node. + */ + createLiteral(literal, activeTag) { + return this.dataFactory.literal(literal, activeTag.language); + } + /** + * Determine the vocab IRI from a given type IRI. + * @link https://w3c.github.io/microdata-rdf/#property-uri-generation + * @param typeIri A type IRI. + * @param vocabRegistry The active vocabulary registry. + */ + deriveVocab(typeIri, vocabRegistry) { + let vocab; + // First check if we find a prefix in the vocab registry + for (const uriPrefix in vocabRegistry) { + if (typeIri.startsWith(uriPrefix)) { + vocab = uriPrefix; + // Append fragment if prefix does not end with a slash + if (!vocab.endsWith('/')) { + vocab += '#'; + } + break; + } + } + // If no match was found, remove the last path segment from the URI + if (!vocab) { + const hashPos = typeIri.indexOf('#'); + if (hashPos > 0) { + vocab = typeIri.slice(0, hashPos + 1); + } + else { + vocab = relative_to_absolute_iri_1.resolve('.', typeIri); + } + } + return vocab; + } } +exports.Util = Util; +Util.RDF = 'http://www.w3.org/1999/02/22-rdf-syntax-ns#'; +Util.XSD = 'http://www.w3.org/2001/XMLSchema#'; +Util.RDFA = 'http://www.w3.org/ns/rdfa#'; +Util.IRI_REGEX = /^([A-Za-z][\d+-.A-Za-z]*|_):[^ "<>[\\\]`{|}]*$/u; +//# sourceMappingURL=Util.js.map -// Add methods to `MapCache`. -MapCache.prototype.clear = mapCacheClear; -MapCache.prototype['delete'] = mapCacheDelete; -MapCache.prototype.get = mapCacheGet; -MapCache.prototype.has = mapCacheHas; -MapCache.prototype.set = mapCacheSet; +/***/ }), -/** - * - * Creates an array cache object to store unique values. - * - * @private - * @constructor - * @param {Array} [values] The values to cache. - */ -function SetCache(values) { - var index = -1, - length = values ? values.length : 0; +/***/ "./node_modules/microdata-rdf-streaming-parser/lib/propertyhandler/IItemPropertyHandler.js": +/*!*************************************************************************************************!*\ + !*** ./node_modules/microdata-rdf-streaming-parser/lib/propertyhandler/IItemPropertyHandler.js ***! + \*************************************************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { - this.__data__ = new MapCache; - while (++index < length) { - this.add(values[index]); - } -} +"use strict"; -/** - * Adds `value` to the array cache. - * - * @private - * @name add - * @memberOf SetCache - * @alias push - * @param {*} value The value to cache. - * @returns {Object} Returns the cache instance. - */ -function setCacheAdd(value) { - this.__data__.set(value, HASH_UNDEFINED); - return this; -} +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=IItemPropertyHandler.js.map -/** - * Checks if `value` is in the array cache. - * - * @private - * @name has - * @memberOf SetCache - * @param {*} value The value to search for. - * @returns {number} Returns `true` if `value` is found, else `false`. - */ -function setCacheHas(value) { - return this.__data__.has(value); -} +/***/ }), -// Add methods to `SetCache`. -SetCache.prototype.add = SetCache.prototype.push = setCacheAdd; -SetCache.prototype.has = setCacheHas; +/***/ "./node_modules/microdata-rdf-streaming-parser/lib/propertyhandler/ItemPropertyHandlerContent.js": +/*!*******************************************************************************************************!*\ + !*** ./node_modules/microdata-rdf-streaming-parser/lib/propertyhandler/ItemPropertyHandlerContent.js ***! + \*******************************************************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { -/** - * Gets the index at which the `key` is found in `array` of key-value pairs. - * - * @private - * @param {Array} array The array to inspect. - * @param {*} key The key to search for. - * @returns {number} Returns the index of the matched value, else `-1`. - */ -function assocIndexOf(array, key) { - var length = array.length; - while (length--) { - if (eq(array[length][0], key)) { - return length; - } - } - return -1; -} +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ItemPropertyHandlerContent = void 0; /** - * The base implementation of `_.isNative` without bad shim checks. - * - * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a native function, - * else `false`. + * Handler for an item property with the 'content' attribute. */ -function baseIsNative(value) { - if (!isObject(value) || isMasked(value)) { - return false; - } - var pattern = (isFunction(value) || isHostObject(value)) ? reIsNative : reIsHostCtor; - return pattern.test(toSource(value)); -} - -/** - * The base implementation of `_.uniqBy` without support for iteratee shorthands. - * - * @private - * @param {Array} array The array to inspect. - * @param {Function} [iteratee] The iteratee invoked per element. - * @param {Function} [comparator] The comparator invoked per element. - * @returns {Array} Returns the new duplicate free array. - */ -function baseUniq(array, iteratee, comparator) { - var index = -1, - includes = arrayIncludes, - length = array.length, - isCommon = true, - result = [], - seen = result; - - if (comparator) { - isCommon = false; - includes = arrayIncludesWith; - } - else if (length >= LARGE_ARRAY_SIZE) { - var set = iteratee ? null : createSet(array); - if (set) { - return setToArray(set); - } - isCommon = false; - includes = cacheHas; - seen = new SetCache; - } - else { - seen = iteratee ? [] : result; - } - outer: - while (++index < length) { - var value = array[index], - computed = iteratee ? iteratee(value) : value; - - value = (comparator || value !== 0) ? value : 0; - if (isCommon && computed === computed) { - var seenIndex = seen.length; - while (seenIndex--) { - if (seen[seenIndex] === computed) { - continue outer; - } - } - if (iteratee) { - seen.push(computed); - } - result.push(value); +class ItemPropertyHandlerContent { + canHandle(tagName, attributes) { + return 'content' in attributes; } - else if (!includes(seen, computed, comparator)) { - if (seen !== result) { - seen.push(computed); - } - result.push(value); + getObject(attributes, util, itemScope) { + return util.createLiteral(attributes.content, itemScope); } - } - return result; -} - -/** - * Creates a set object of `values`. - * - * @private - * @param {Array} values The values to add to the set. - * @returns {Object} Returns the new set. - */ -var createSet = !(Set && (1 / setToArray(new Set([,-0]))[1]) == INFINITY) ? noop : function(values) { - return new Set(values); -}; - -/** - * Gets the data for `map`. - * - * @private - * @param {Object} map The map to query. - * @param {string} key The reference key. - * @returns {*} Returns the map data. - */ -function getMapData(map, key) { - var data = map.__data__; - return isKeyable(key) - ? data[typeof key == 'string' ? 'string' : 'hash'] - : data.map; -} - -/** - * Gets the native function at `key` of `object`. - * - * @private - * @param {Object} object The object to query. - * @param {string} key The key of the method to get. - * @returns {*} Returns the function if it's native, else `undefined`. - */ -function getNative(object, key) { - var value = getValue(object, key); - return baseIsNative(value) ? value : undefined; } +exports.ItemPropertyHandlerContent = ItemPropertyHandlerContent; +//# sourceMappingURL=ItemPropertyHandlerContent.js.map -/** - * Checks if `value` is suitable for use as unique object key. - * - * @private - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is suitable, else `false`. - */ -function isKeyable(value) { - var type = typeof value; - return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean') - ? (value !== '__proto__') - : (value === null); -} +/***/ }), -/** - * Checks if `func` has its source masked. - * - * @private - * @param {Function} func The function to check. - * @returns {boolean} Returns `true` if `func` is masked, else `false`. - */ -function isMasked(func) { - return !!maskSrcKey && (maskSrcKey in func); -} +/***/ "./node_modules/microdata-rdf-streaming-parser/lib/propertyhandler/ItemPropertyHandlerNumber.js": +/*!******************************************************************************************************!*\ + !*** ./node_modules/microdata-rdf-streaming-parser/lib/propertyhandler/ItemPropertyHandlerNumber.js ***! + \******************************************************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { -/** - * Converts `func` to its source code. - * - * @private - * @param {Function} func The function to process. - * @returns {string} Returns the source code. - */ -function toSource(func) { - if (func != null) { - try { - return funcToString.call(func); - } catch (e) {} - try { - return (func + ''); - } catch (e) {} - } - return ''; -} +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ItemPropertyHandlerNumber = void 0; +const Util_1 = __webpack_require__(/*! ../Util */ "./node_modules/microdata-rdf-streaming-parser/lib/Util.js"); /** - * This method is like `_.uniq` except that it accepts `comparator` which - * is invoked to compare elements of `array`. The comparator is invoked with - * two arguments: (arrVal, othVal). - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Array - * @param {Array} array The array to inspect. - * @param {Function} [comparator] The comparator invoked per element. - * @returns {Array} Returns the new duplicate free array. - * @example - * - * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }, { 'x': 1, 'y': 2 }]; - * - * _.uniqWith(objects, _.isEqual); - * // => [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }] + * Handler for an item property with a number attribute. */ -function uniqWith(array, comparator) { - return (array && array.length) - ? baseUniq(array, undefined, comparator) - : []; +class ItemPropertyHandlerNumber { + constructor(tagName, attributeName) { + this.tagName = tagName; + this.attributeName = attributeName; + } + canHandle(tagName, attributes) { + return this.tagName === tagName && this.attributeName in attributes; + } + getObject(attributes, util, itemScope) { + const value = attributes[this.attributeName]; + let datatype; + if (!Number.isNaN(Number.parseInt(value, 10)) && !value.includes('.')) { + datatype = `${Util_1.Util.XSD}integer`; + } + else if (!Number.isNaN(Number.parseFloat(value))) { + datatype = `${Util_1.Util.XSD}double`; + } + return util.dataFactory.literal(value, datatype && util.dataFactory.namedNode(datatype)); + } } +exports.ItemPropertyHandlerNumber = ItemPropertyHandlerNumber; +//# sourceMappingURL=ItemPropertyHandlerNumber.js.map -/** - * Performs a - * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) - * comparison between two values to determine if they are equivalent. - * - * @static - * @memberOf _ - * @since 4.0.0 - * @category Lang - * @param {*} value The value to compare. - * @param {*} other The other value to compare. - * @returns {boolean} Returns `true` if the values are equivalent, else `false`. - * @example - * - * var object = { 'a': 1 }; - * var other = { 'a': 1 }; - * - * _.eq(object, object); - * // => true - * - * _.eq(object, other); - * // => false - * - * _.eq('a', 'a'); - * // => true - * - * _.eq('a', Object('a')); - * // => false - * - * _.eq(NaN, NaN); - * // => true - */ -function eq(value, other) { - return value === other || (value !== value && other !== other); -} +/***/ }), -/** - * Checks if `value` is classified as a `Function` object. - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is a function, else `false`. - * @example - * - * _.isFunction(_); - * // => true - * - * _.isFunction(/abc/); - * // => false - */ -function isFunction(value) { - // The use of `Object#toString` avoids issues with the `typeof` operator - // in Safari 8-9 which returns 'object' for typed array and other constructors. - var tag = isObject(value) ? objectToString.call(value) : ''; - return tag == funcTag || tag == genTag; -} +/***/ "./node_modules/microdata-rdf-streaming-parser/lib/propertyhandler/ItemPropertyHandlerTime.js": +/*!****************************************************************************************************!*\ + !*** ./node_modules/microdata-rdf-streaming-parser/lib/propertyhandler/ItemPropertyHandlerTime.js ***! + \****************************************************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { -/** - * Checks if `value` is the - * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types) - * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`) - * - * @static - * @memberOf _ - * @since 0.1.0 - * @category Lang - * @param {*} value The value to check. - * @returns {boolean} Returns `true` if `value` is an object, else `false`. - * @example - * - * _.isObject({}); - * // => true - * - * _.isObject([1, 2, 3]); - * // => true - * - * _.isObject(_.noop); - * // => true - * - * _.isObject(null); - * // => false - */ -function isObject(value) { - var type = typeof value; - return !!value && (type == 'object' || type == 'function'); -} +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ItemPropertyHandlerTime = void 0; +const Util_1 = __webpack_require__(/*! ../Util */ "./node_modules/microdata-rdf-streaming-parser/lib/Util.js"); /** - * This method returns `undefined`. - * - * @static - * @memberOf _ - * @since 2.3.0 - * @category Util - * @example - * - * _.times(2, _.noop); - * // => [undefined, undefined] + * Handler for an item property for time tags. */ -function noop() { - // No operation performed. +class ItemPropertyHandlerTime { + canHandle(tagName, attributes) { + return tagName === 'time' && 'datetime' in attributes; + } + getObject(attributes, util, itemScope) { + const value = attributes.datetime; + let datatype; + for (const entry of ItemPropertyHandlerTime.TIME_REGEXES) { + if (entry.regex.exec(value)) { + datatype = util.dataFactory.namedNode(Util_1.Util.XSD + entry.type); + break; + } + } + return util.dataFactory.literal(value, datatype); + } } - -module.exports = uniqWith; - -/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ "./node_modules/webpack/buildin/global.js"))) +exports.ItemPropertyHandlerTime = ItemPropertyHandlerTime; +ItemPropertyHandlerTime.TIME_REGEXES = [ + { + regex: /^-?P(\d+Y)?(\d+M)?(\d+D)?(T(\d+H)?(\d+M)?(\d+(\.\d)?S)?)?$/u, + type: 'duration', + }, + { + regex: /^\d+-\d\d-\d\dT\d\d:\d\d:\d\d((Z?)|([+-]\d\d:\d\d))$/u, + type: 'dateTime', + }, + { regex: /^\d+-\d\d-\d\dZ?$/u, type: 'date' }, + { regex: /^\d\d:\d\d:\d\d((Z?)|([+-]\d\d:\d\d))$/u, type: 'time' }, + { regex: /^\d+-\d\d$/u, type: 'gYearMonth' }, + { regex: /^\d+$/u, type: 'gYear' }, +]; +//# sourceMappingURL=ItemPropertyHandlerTime.js.map /***/ }), -/***/ "./node_modules/lru-cache/index.js": -/*!*****************************************!*\ - !*** ./node_modules/lru-cache/index.js ***! - \*****************************************/ +/***/ "./node_modules/microdata-rdf-streaming-parser/lib/propertyhandler/ItemPropertyHandlerUrl.js": +/*!***************************************************************************************************!*\ + !*** ./node_modules/microdata-rdf-streaming-parser/lib/propertyhandler/ItemPropertyHandlerUrl.js ***! + \***************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; - -// A linked list to keep track of recently-used-ness -const Yallist = __webpack_require__(/*! yallist */ "./node_modules/yallist/yallist.js") - -const MAX = Symbol('max') -const LENGTH = Symbol('length') -const LENGTH_CALCULATOR = Symbol('lengthCalculator') -const ALLOW_STALE = Symbol('allowStale') -const MAX_AGE = Symbol('maxAge') -const DISPOSE = Symbol('dispose') -const NO_DISPOSE_ON_SET = Symbol('noDisposeOnSet') -const LRU_LIST = Symbol('lruList') -const CACHE = Symbol('cache') -const UPDATE_AGE_ON_GET = Symbol('updateAgeOnGet') - -const naiveLength = () => 1 - -// lruList is a yallist where the head is the youngest -// item, and the tail is the oldest. the list contains the Hit -// objects as the entries. -// Each Hit object has a reference to its Yallist.Node. This -// never changes. -// -// cache is a Map (or PseudoMap) that matches the keys to -// the Yallist.Node object. -class LRUCache { - constructor (options) { - if (typeof options === 'number') - options = { max: options } - - if (!options) - options = {} - - if (options.max && (typeof options.max !== 'number' || options.max < 0)) - throw new TypeError('max must be a non-negative number') - // Kind of weird to have a default max of Infinity, but oh well. - const max = this[MAX] = options.max || Infinity - - const lc = options.length || naiveLength - this[LENGTH_CALCULATOR] = (typeof lc !== 'function') ? naiveLength : lc - this[ALLOW_STALE] = options.stale || false - if (options.maxAge && typeof options.maxAge !== 'number') - throw new TypeError('maxAge must be a number') - this[MAX_AGE] = options.maxAge || 0 - this[DISPOSE] = options.dispose - this[NO_DISPOSE_ON_SET] = options.noDisposeOnSet || false - this[UPDATE_AGE_ON_GET] = options.updateAgeOnGet || false - this.reset() - } - - // resize the cache when the max changes. - set max (mL) { - if (typeof mL !== 'number' || mL < 0) - throw new TypeError('max must be a non-negative number') - - this[MAX] = mL || Infinity - trim(this) - } - get max () { - return this[MAX] - } - - set allowStale (allowStale) { - this[ALLOW_STALE] = !!allowStale - } - get allowStale () { - return this[ALLOW_STALE] - } - - set maxAge (mA) { - if (typeof mA !== 'number') - throw new TypeError('maxAge must be a non-negative number') - - this[MAX_AGE] = mA - trim(this) - } - get maxAge () { - return this[MAX_AGE] - } - - // resize the cache when the lengthCalculator changes. - set lengthCalculator (lC) { - if (typeof lC !== 'function') - lC = naiveLength - - if (lC !== this[LENGTH_CALCULATOR]) { - this[LENGTH_CALCULATOR] = lC - this[LENGTH] = 0 - this[LRU_LIST].forEach(hit => { - hit.length = this[LENGTH_CALCULATOR](hit.value, hit.key) - this[LENGTH] += hit.length - }) - } - trim(this) - } - get lengthCalculator () { return this[LENGTH_CALCULATOR] } - - get length () { return this[LENGTH] } - get itemCount () { return this[LRU_LIST].length } - - rforEach (fn, thisp) { - thisp = thisp || this - for (let walker = this[LRU_LIST].tail; walker !== null;) { - const prev = walker.prev - forEachStep(this, fn, walker, thisp) - walker = prev +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ItemPropertyHandlerUrl = void 0; +const relative_to_absolute_iri_1 = __webpack_require__(/*! relative-to-absolute-iri */ "./node_modules/relative-to-absolute-iri/index.js"); +/** + * Handler for an item property with a URL attribute. + */ +class ItemPropertyHandlerUrl { + constructor(tagName, attributeName) { + this.tagName = tagName; + this.attributeName = attributeName; } - } - - forEach (fn, thisp) { - thisp = thisp || this - for (let walker = this[LRU_LIST].head; walker !== null;) { - const next = walker.next - forEachStep(this, fn, walker, thisp) - walker = next + canHandle(tagName, attributes) { + return this.tagName === tagName && this.attributeName in attributes; } - } - - keys () { - return this[LRU_LIST].toArray().map(k => k.key) - } - - values () { - return this[LRU_LIST].toArray().map(k => k.value) - } - - reset () { - if (this[DISPOSE] && - this[LRU_LIST] && - this[LRU_LIST].length) { - this[LRU_LIST].forEach(hit => this[DISPOSE](hit.key, hit.value)) + getObject(attributes, util, itemScope) { + return util.dataFactory.namedNode(relative_to_absolute_iri_1.resolve(attributes[this.attributeName], util.baseIRI)); } +} +exports.ItemPropertyHandlerUrl = ItemPropertyHandlerUrl; +//# sourceMappingURL=ItemPropertyHandlerUrl.js.map - this[CACHE] = new Map() // hash of items by key - this[LRU_LIST] = new Yallist() // list of items in order of use recency - this[LENGTH] = 0 // length of items in the list - } - - dump () { - return this[LRU_LIST].map(hit => - isStale(this, hit) ? false : { - k: hit.key, - v: hit.value, - e: hit.now + (hit.maxAge || 0) - }).toArray().filter(h => h) - } - - dumpLru () { - return this[LRU_LIST] - } - - set (key, value, maxAge) { - maxAge = maxAge || this[MAX_AGE] +/***/ }), - if (maxAge && typeof maxAge !== 'number') - throw new TypeError('maxAge must be a number') +/***/ "./node_modules/microdata-rdf-streaming-parser/lib/vocab-registry-default.json": +/*!*************************************************************************************!*\ + !*** ./node_modules/microdata-rdf-streaming-parser/lib/vocab-registry-default.json ***! + \*************************************************************************************/ +/*! exports provided: http://schema.org/, http://microformats.org/profile/hcard, default */ +/***/ (function(module) { - const now = maxAge ? Date.now() : 0 - const len = this[LENGTH_CALCULATOR](value, key) +module.exports = {"http://schema.org/":{"properties":{"additionalType":{"subPropertyOf":"http://www.w3.org/1999/02/22-rdf-syntax-ns#type"}}},"http://microformats.org/profile/hcard":{}}; - if (this[CACHE].has(key)) { - if (len > this[MAX]) { - del(this, this[CACHE].get(key)) - return false - } +/***/ }), - const node = this[CACHE].get(key) - const item = node.value +/***/ "./node_modules/microdata-rdf-streaming-parser/node_modules/entities/lib/decode_codepoint.js": +/*!***************************************************************************************************!*\ + !*** ./node_modules/microdata-rdf-streaming-parser/node_modules/entities/lib/decode_codepoint.js ***! + \***************************************************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { - // dispose of the old one before overwriting - // split out into 2 ifs for better coverage tracking - if (this[DISPOSE]) { - if (!this[NO_DISPOSE_ON_SET]) - this[DISPOSE](key, item.value) - } +"use strict"; - item.now = now - item.maxAge = maxAge - item.value = value - this[LENGTH] += len - item.length - item.length = len - this.get(key) - trim(this) - return true +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +var decode_json_1 = __importDefault(__webpack_require__(/*! ./maps/decode.json */ "./node_modules/microdata-rdf-streaming-parser/node_modules/entities/lib/maps/decode.json")); +// Adapted from https://github.com/mathiasbynens/he/blob/master/src/he.js#L94-L119 +var fromCodePoint = +// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition +String.fromCodePoint || + function (codePoint) { + var output = ""; + if (codePoint > 0xffff) { + codePoint -= 0x10000; + output += String.fromCharCode(((codePoint >>> 10) & 0x3ff) | 0xd800); + codePoint = 0xdc00 | (codePoint & 0x3ff); + } + output += String.fromCharCode(codePoint); + return output; + }; +function decodeCodePoint(codePoint) { + if ((codePoint >= 0xd800 && codePoint <= 0xdfff) || codePoint > 0x10ffff) { + return "\uFFFD"; } - - const hit = new Entry(key, value, len, now, maxAge) - - // oversized objects fall out of cache automatically. - if (hit.length > this[MAX]) { - if (this[DISPOSE]) - this[DISPOSE](key, value) - - return false + if (codePoint in decode_json_1.default) { + codePoint = decode_json_1.default[codePoint]; } + return fromCodePoint(codePoint); +} +exports.default = decodeCodePoint; - this[LENGTH] += hit.length - this[LRU_LIST].unshift(hit) - this[CACHE].set(key, this[LRU_LIST].head) - trim(this) - return true - } - - has (key) { - if (!this[CACHE].has(key)) return false - const hit = this[CACHE].get(key).value - return !isStale(this, hit) - } - - get (key) { - return get(this, key, true) - } - - peek (key) { - return get(this, key, false) - } - - pop () { - const node = this[LRU_LIST].tail - if (!node) - return null - - del(this, node) - return node.value - } - - del (key) { - del(this, this[CACHE].get(key)) - } - - load (arr) { - // reset the cache - this.reset() - const now = Date.now() - // A previous serialized cache has the most recent items first - for (let l = arr.length - 1; l >= 0; l--) { - const hit = arr[l] - const expiresAt = hit.e || 0 - if (expiresAt === 0) - // the item was created without expiration in a non aged cache - this.set(hit.k, hit.v) - else { - const maxAge = expiresAt - now - // dont add already expired items - if (maxAge > 0) { - this.set(hit.k, hit.v, maxAge) - } - } - } - } +/***/ }), - prune () { - this[CACHE].forEach((value, key) => get(this, key, false)) - } -} +/***/ "./node_modules/microdata-rdf-streaming-parser/node_modules/entities/lib/maps/decode.json": +/*!************************************************************************************************!*\ + !*** ./node_modules/microdata-rdf-streaming-parser/node_modules/entities/lib/maps/decode.json ***! + \************************************************************************************************/ +/*! exports provided: 0, 128, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 142, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 158, 159, default */ +/***/ (function(module) { -const get = (self, key, doUse) => { - const node = self[CACHE].get(key) - if (node) { - const hit = node.value - if (isStale(self, hit)) { - del(self, node) - if (!self[ALLOW_STALE]) - return undefined - } else { - if (doUse) { - if (self[UPDATE_AGE_ON_GET]) - node.value.now = Date.now() - self[LRU_LIST].unshiftNode(node) - } - } - return hit.value - } -} +module.exports = {"0":65533,"128":8364,"130":8218,"131":402,"132":8222,"133":8230,"134":8224,"135":8225,"136":710,"137":8240,"138":352,"139":8249,"140":338,"142":381,"145":8216,"146":8217,"147":8220,"148":8221,"149":8226,"150":8211,"151":8212,"152":732,"153":8482,"154":353,"155":8250,"156":339,"158":382,"159":376}; -const isStale = (self, hit) => { - if (!hit || (!hit.maxAge && !self[MAX_AGE])) - return false +/***/ }), - const diff = Date.now() - hit.now - return hit.maxAge ? diff > hit.maxAge - : self[MAX_AGE] && (diff > self[MAX_AGE]) -} +/***/ "./node_modules/microdata-rdf-streaming-parser/node_modules/entities/lib/maps/entities.json": +/*!**************************************************************************************************!*\ + !*** ./node_modules/microdata-rdf-streaming-parser/node_modules/entities/lib/maps/entities.json ***! + \**************************************************************************************************/ +/*! exports provided: Aacute, aacute, Abreve, abreve, ac, acd, acE, Acirc, acirc, acute, Acy, acy, AElig, aelig, af, Afr, afr, Agrave, agrave, alefsym, aleph, Alpha, alpha, Amacr, amacr, amalg, amp, AMP, andand, And, and, andd, andslope, andv, ang, ange, angle, angmsdaa, angmsdab, angmsdac, angmsdad, angmsdae, angmsdaf, angmsdag, angmsdah, angmsd, angrt, angrtvb, angrtvbd, angsph, angst, angzarr, Aogon, aogon, Aopf, aopf, apacir, ap, apE, ape, apid, apos, ApplyFunction, approx, approxeq, Aring, aring, Ascr, ascr, Assign, ast, asymp, asympeq, Atilde, atilde, Auml, auml, awconint, awint, backcong, backepsilon, backprime, backsim, backsimeq, Backslash, Barv, barvee, barwed, Barwed, barwedge, bbrk, bbrktbrk, bcong, Bcy, bcy, bdquo, becaus, because, Because, bemptyv, bepsi, bernou, Bernoullis, Beta, beta, beth, between, Bfr, bfr, bigcap, bigcirc, bigcup, bigodot, bigoplus, bigotimes, bigsqcup, bigstar, bigtriangledown, bigtriangleup, biguplus, bigvee, bigwedge, bkarow, blacklozenge, blacksquare, blacktriangle, blacktriangledown, blacktriangleleft, blacktriangleright, blank, blk12, blk14, blk34, block, bne, bnequiv, bNot, bnot, Bopf, bopf, bot, bottom, bowtie, boxbox, boxdl, boxdL, boxDl, boxDL, boxdr, boxdR, boxDr, boxDR, boxh, boxH, boxhd, boxHd, boxhD, boxHD, boxhu, boxHu, boxhU, boxHU, boxminus, boxplus, boxtimes, boxul, boxuL, boxUl, boxUL, boxur, boxuR, boxUr, boxUR, boxv, boxV, boxvh, boxvH, boxVh, boxVH, boxvl, boxvL, boxVl, boxVL, boxvr, boxvR, boxVr, boxVR, bprime, breve, Breve, brvbar, bscr, Bscr, bsemi, bsim, bsime, bsolb, bsol, bsolhsub, bull, bullet, bump, bumpE, bumpe, Bumpeq, bumpeq, Cacute, cacute, capand, capbrcup, capcap, cap, Cap, capcup, capdot, CapitalDifferentialD, caps, caret, caron, Cayleys, ccaps, Ccaron, ccaron, Ccedil, ccedil, Ccirc, ccirc, Cconint, ccups, ccupssm, Cdot, cdot, cedil, Cedilla, cemptyv, cent, centerdot, CenterDot, cfr, Cfr, CHcy, chcy, check, checkmark, Chi, chi, circ, circeq, circlearrowleft, circlearrowright, circledast, circledcirc, circleddash, CircleDot, circledR, circledS, CircleMinus, CirclePlus, CircleTimes, cir, cirE, cire, cirfnint, cirmid, cirscir, ClockwiseContourIntegral, CloseCurlyDoubleQuote, CloseCurlyQuote, clubs, clubsuit, colon, Colon, Colone, colone, coloneq, comma, commat, comp, compfn, complement, complexes, cong, congdot, Congruent, conint, Conint, ContourIntegral, copf, Copf, coprod, Coproduct, copy, COPY, copysr, CounterClockwiseContourIntegral, crarr, cross, Cross, Cscr, cscr, csub, csube, csup, csupe, ctdot, cudarrl, cudarrr, cuepr, cuesc, cularr, cularrp, cupbrcap, cupcap, CupCap, cup, Cup, cupcup, cupdot, cupor, cups, curarr, curarrm, curlyeqprec, curlyeqsucc, curlyvee, curlywedge, curren, curvearrowleft, curvearrowright, cuvee, cuwed, cwconint, cwint, cylcty, dagger, Dagger, daleth, darr, Darr, dArr, dash, Dashv, dashv, dbkarow, dblac, Dcaron, dcaron, Dcy, dcy, ddagger, ddarr, DD, dd, DDotrahd, ddotseq, deg, Del, Delta, delta, demptyv, dfisht, Dfr, dfr, dHar, dharl, dharr, DiacriticalAcute, DiacriticalDot, DiacriticalDoubleAcute, DiacriticalGrave, DiacriticalTilde, diam, diamond, Diamond, diamondsuit, diams, die, DifferentialD, digamma, disin, div, divide, divideontimes, divonx, DJcy, djcy, dlcorn, dlcrop, dollar, Dopf, dopf, Dot, dot, DotDot, doteq, doteqdot, DotEqual, dotminus, dotplus, dotsquare, doublebarwedge, DoubleContourIntegral, DoubleDot, DoubleDownArrow, DoubleLeftArrow, DoubleLeftRightArrow, DoubleLeftTee, DoubleLongLeftArrow, DoubleLongLeftRightArrow, DoubleLongRightArrow, DoubleRightArrow, DoubleRightTee, DoubleUpArrow, DoubleUpDownArrow, DoubleVerticalBar, DownArrowBar, downarrow, DownArrow, Downarrow, DownArrowUpArrow, DownBreve, downdownarrows, downharpoonleft, downharpoonright, DownLeftRightVector, DownLeftTeeVector, DownLeftVectorBar, DownLeftVector, DownRightTeeVector, DownRightVectorBar, DownRightVector, DownTeeArrow, DownTee, drbkarow, drcorn, drcrop, Dscr, dscr, DScy, dscy, dsol, Dstrok, dstrok, dtdot, dtri, dtrif, duarr, duhar, dwangle, DZcy, dzcy, dzigrarr, Eacute, eacute, easter, Ecaron, ecaron, Ecirc, ecirc, ecir, ecolon, Ecy, ecy, eDDot, Edot, edot, eDot, ee, efDot, Efr, efr, eg, Egrave, egrave, egs, egsdot, el, Element, elinters, ell, els, elsdot, Emacr, emacr, empty, emptyset, EmptySmallSquare, emptyv, EmptyVerySmallSquare, emsp13, emsp14, emsp, ENG, eng, ensp, Eogon, eogon, Eopf, eopf, epar, eparsl, eplus, epsi, Epsilon, epsilon, epsiv, eqcirc, eqcolon, eqsim, eqslantgtr, eqslantless, Equal, equals, EqualTilde, equest, Equilibrium, equiv, equivDD, eqvparsl, erarr, erDot, escr, Escr, esdot, Esim, esim, Eta, eta, ETH, eth, Euml, euml, euro, excl, exist, Exists, expectation, exponentiale, ExponentialE, fallingdotseq, Fcy, fcy, female, ffilig, fflig, ffllig, Ffr, ffr, filig, FilledSmallSquare, FilledVerySmallSquare, fjlig, flat, fllig, fltns, fnof, Fopf, fopf, forall, ForAll, fork, forkv, Fouriertrf, fpartint, frac12, frac13, frac14, frac15, frac16, frac18, frac23, frac25, frac34, frac35, frac38, frac45, frac56, frac58, frac78, frasl, frown, fscr, Fscr, gacute, Gamma, gamma, Gammad, gammad, gap, Gbreve, gbreve, Gcedil, Gcirc, gcirc, Gcy, gcy, Gdot, gdot, ge, gE, gEl, gel, geq, geqq, geqslant, gescc, ges, gesdot, gesdoto, gesdotol, gesl, gesles, Gfr, gfr, gg, Gg, ggg, gimel, GJcy, gjcy, gla, gl, glE, glj, gnap, gnapprox, gne, gnE, gneq, gneqq, gnsim, Gopf, gopf, grave, GreaterEqual, GreaterEqualLess, GreaterFullEqual, GreaterGreater, GreaterLess, GreaterSlantEqual, GreaterTilde, Gscr, gscr, gsim, gsime, gsiml, gtcc, gtcir, gt, GT, Gt, gtdot, gtlPar, gtquest, gtrapprox, gtrarr, gtrdot, gtreqless, gtreqqless, gtrless, gtrsim, gvertneqq, gvnE, Hacek, hairsp, half, hamilt, HARDcy, hardcy, harrcir, harr, hArr, harrw, Hat, hbar, Hcirc, hcirc, hearts, heartsuit, hellip, hercon, hfr, Hfr, HilbertSpace, hksearow, hkswarow, hoarr, homtht, hookleftarrow, hookrightarrow, hopf, Hopf, horbar, HorizontalLine, hscr, Hscr, hslash, Hstrok, hstrok, HumpDownHump, HumpEqual, hybull, hyphen, Iacute, iacute, ic, Icirc, icirc, Icy, icy, Idot, IEcy, iecy, iexcl, iff, ifr, Ifr, Igrave, igrave, ii, iiiint, iiint, iinfin, iiota, IJlig, ijlig, Imacr, imacr, image, ImaginaryI, imagline, imagpart, imath, Im, imof, imped, Implies, incare, in, infin, infintie, inodot, intcal, int, Int, integers, Integral, intercal, Intersection, intlarhk, intprod, InvisibleComma, InvisibleTimes, IOcy, iocy, Iogon, iogon, Iopf, iopf, Iota, iota, iprod, iquest, iscr, Iscr, isin, isindot, isinE, isins, isinsv, isinv, it, Itilde, itilde, Iukcy, iukcy, Iuml, iuml, Jcirc, jcirc, Jcy, jcy, Jfr, jfr, jmath, Jopf, jopf, Jscr, jscr, Jsercy, jsercy, Jukcy, jukcy, Kappa, kappa, kappav, Kcedil, kcedil, Kcy, kcy, Kfr, kfr, kgreen, KHcy, khcy, KJcy, kjcy, Kopf, kopf, Kscr, kscr, lAarr, Lacute, lacute, laemptyv, lagran, Lambda, lambda, lang, Lang, langd, langle, lap, Laplacetrf, laquo, larrb, larrbfs, larr, Larr, lArr, larrfs, larrhk, larrlp, larrpl, larrsim, larrtl, latail, lAtail, lat, late, lates, lbarr, lBarr, lbbrk, lbrace, lbrack, lbrke, lbrksld, lbrkslu, Lcaron, lcaron, Lcedil, lcedil, lceil, lcub, Lcy, lcy, ldca, ldquo, ldquor, ldrdhar, ldrushar, ldsh, le, lE, LeftAngleBracket, LeftArrowBar, leftarrow, LeftArrow, Leftarrow, LeftArrowRightArrow, leftarrowtail, LeftCeiling, LeftDoubleBracket, LeftDownTeeVector, LeftDownVectorBar, LeftDownVector, LeftFloor, leftharpoondown, leftharpoonup, leftleftarrows, leftrightarrow, LeftRightArrow, Leftrightarrow, leftrightarrows, leftrightharpoons, leftrightsquigarrow, LeftRightVector, LeftTeeArrow, LeftTee, LeftTeeVector, leftthreetimes, LeftTriangleBar, LeftTriangle, LeftTriangleEqual, LeftUpDownVector, LeftUpTeeVector, LeftUpVectorBar, LeftUpVector, LeftVectorBar, LeftVector, lEg, leg, leq, leqq, leqslant, lescc, les, lesdot, lesdoto, lesdotor, lesg, lesges, lessapprox, lessdot, lesseqgtr, lesseqqgtr, LessEqualGreater, LessFullEqual, LessGreater, lessgtr, LessLess, lesssim, LessSlantEqual, LessTilde, lfisht, lfloor, Lfr, lfr, lg, lgE, lHar, lhard, lharu, lharul, lhblk, LJcy, ljcy, llarr, ll, Ll, llcorner, Lleftarrow, llhard, lltri, Lmidot, lmidot, lmoustache, lmoust, lnap, lnapprox, lne, lnE, lneq, lneqq, lnsim, loang, loarr, lobrk, longleftarrow, LongLeftArrow, Longleftarrow, longleftrightarrow, LongLeftRightArrow, Longleftrightarrow, longmapsto, longrightarrow, LongRightArrow, Longrightarrow, looparrowleft, looparrowright, lopar, Lopf, lopf, loplus, lotimes, lowast, lowbar, LowerLeftArrow, LowerRightArrow, loz, lozenge, lozf, lpar, lparlt, lrarr, lrcorner, lrhar, lrhard, lrm, lrtri, lsaquo, lscr, Lscr, lsh, Lsh, lsim, lsime, lsimg, lsqb, lsquo, lsquor, Lstrok, lstrok, ltcc, ltcir, lt, LT, Lt, ltdot, lthree, ltimes, ltlarr, ltquest, ltri, ltrie, ltrif, ltrPar, lurdshar, luruhar, lvertneqq, lvnE, macr, male, malt, maltese, Map, map, mapsto, mapstodown, mapstoleft, mapstoup, marker, mcomma, Mcy, mcy, mdash, mDDot, measuredangle, MediumSpace, Mellintrf, Mfr, mfr, mho, micro, midast, midcir, mid, middot, minusb, minus, minusd, minusdu, MinusPlus, mlcp, mldr, mnplus, models, Mopf, mopf, mp, mscr, Mscr, mstpos, Mu, mu, multimap, mumap, nabla, Nacute, nacute, nang, nap, napE, napid, napos, napprox, natural, naturals, natur, nbsp, nbump, nbumpe, ncap, Ncaron, ncaron, Ncedil, ncedil, ncong, ncongdot, ncup, Ncy, ncy, ndash, nearhk, nearr, neArr, nearrow, ne, nedot, NegativeMediumSpace, NegativeThickSpace, NegativeThinSpace, NegativeVeryThinSpace, nequiv, nesear, nesim, NestedGreaterGreater, NestedLessLess, NewLine, nexist, nexists, Nfr, nfr, ngE, nge, ngeq, ngeqq, ngeqslant, nges, nGg, ngsim, nGt, ngt, ngtr, nGtv, nharr, nhArr, nhpar, ni, nis, nisd, niv, NJcy, njcy, nlarr, nlArr, nldr, nlE, nle, nleftarrow, nLeftarrow, nleftrightarrow, nLeftrightarrow, nleq, nleqq, nleqslant, nles, nless, nLl, nlsim, nLt, nlt, nltri, nltrie, nLtv, nmid, NoBreak, NonBreakingSpace, nopf, Nopf, Not, not, NotCongruent, NotCupCap, NotDoubleVerticalBar, NotElement, NotEqual, NotEqualTilde, NotExists, NotGreater, NotGreaterEqual, NotGreaterFullEqual, NotGreaterGreater, NotGreaterLess, NotGreaterSlantEqual, NotGreaterTilde, NotHumpDownHump, NotHumpEqual, notin, notindot, notinE, notinva, notinvb, notinvc, NotLeftTriangleBar, NotLeftTriangle, NotLeftTriangleEqual, NotLess, NotLessEqual, NotLessGreater, NotLessLess, NotLessSlantEqual, NotLessTilde, NotNestedGreaterGreater, NotNestedLessLess, notni, notniva, notnivb, notnivc, NotPrecedes, NotPrecedesEqual, NotPrecedesSlantEqual, NotReverseElement, NotRightTriangleBar, NotRightTriangle, NotRightTriangleEqual, NotSquareSubset, NotSquareSubsetEqual, NotSquareSuperset, NotSquareSupersetEqual, NotSubset, NotSubsetEqual, NotSucceeds, NotSucceedsEqual, NotSucceedsSlantEqual, NotSucceedsTilde, NotSuperset, NotSupersetEqual, NotTilde, NotTildeEqual, NotTildeFullEqual, NotTildeTilde, NotVerticalBar, nparallel, npar, nparsl, npart, npolint, npr, nprcue, nprec, npreceq, npre, nrarrc, nrarr, nrArr, nrarrw, nrightarrow, nRightarrow, nrtri, nrtrie, nsc, nsccue, nsce, Nscr, nscr, nshortmid, nshortparallel, nsim, nsime, nsimeq, nsmid, nspar, nsqsube, nsqsupe, nsub, nsubE, nsube, nsubset, nsubseteq, nsubseteqq, nsucc, nsucceq, nsup, nsupE, nsupe, nsupset, nsupseteq, nsupseteqq, ntgl, Ntilde, ntilde, ntlg, ntriangleleft, ntrianglelefteq, ntriangleright, ntrianglerighteq, Nu, nu, num, numero, numsp, nvap, nvdash, nvDash, nVdash, nVDash, nvge, nvgt, nvHarr, nvinfin, nvlArr, nvle, nvlt, nvltrie, nvrArr, nvrtrie, nvsim, nwarhk, nwarr, nwArr, nwarrow, nwnear, Oacute, oacute, oast, Ocirc, ocirc, ocir, Ocy, ocy, odash, Odblac, odblac, odiv, odot, odsold, OElig, oelig, ofcir, Ofr, ofr, ogon, Ograve, ograve, ogt, ohbar, ohm, oint, olarr, olcir, olcross, oline, olt, Omacr, omacr, Omega, omega, Omicron, omicron, omid, ominus, Oopf, oopf, opar, OpenCurlyDoubleQuote, OpenCurlyQuote, operp, oplus, orarr, Or, or, ord, order, orderof, ordf, ordm, origof, oror, orslope, orv, oS, Oscr, oscr, Oslash, oslash, osol, Otilde, otilde, otimesas, Otimes, otimes, Ouml, ouml, ovbar, OverBar, OverBrace, OverBracket, OverParenthesis, para, parallel, par, parsim, parsl, part, PartialD, Pcy, pcy, percnt, period, permil, perp, pertenk, Pfr, pfr, Phi, phi, phiv, phmmat, phone, Pi, pi, pitchfork, piv, planck, planckh, plankv, plusacir, plusb, pluscir, plus, plusdo, plusdu, pluse, PlusMinus, plusmn, plussim, plustwo, pm, Poincareplane, pointint, popf, Popf, pound, prap, Pr, pr, prcue, precapprox, prec, preccurlyeq, Precedes, PrecedesEqual, PrecedesSlantEqual, PrecedesTilde, preceq, precnapprox, precneqq, precnsim, pre, prE, precsim, prime, Prime, primes, prnap, prnE, prnsim, prod, Product, profalar, profline, profsurf, prop, Proportional, Proportion, propto, prsim, prurel, Pscr, pscr, Psi, psi, puncsp, Qfr, qfr, qint, qopf, Qopf, qprime, Qscr, qscr, quaternions, quatint, quest, questeq, quot, QUOT, rAarr, race, Racute, racute, radic, raemptyv, rang, Rang, rangd, range, rangle, raquo, rarrap, rarrb, rarrbfs, rarrc, rarr, Rarr, rArr, rarrfs, rarrhk, rarrlp, rarrpl, rarrsim, Rarrtl, rarrtl, rarrw, ratail, rAtail, ratio, rationals, rbarr, rBarr, RBarr, rbbrk, rbrace, rbrack, rbrke, rbrksld, rbrkslu, Rcaron, rcaron, Rcedil, rcedil, rceil, rcub, Rcy, rcy, rdca, rdldhar, rdquo, rdquor, rdsh, real, realine, realpart, reals, Re, rect, reg, REG, ReverseElement, ReverseEquilibrium, ReverseUpEquilibrium, rfisht, rfloor, rfr, Rfr, rHar, rhard, rharu, rharul, Rho, rho, rhov, RightAngleBracket, RightArrowBar, rightarrow, RightArrow, Rightarrow, RightArrowLeftArrow, rightarrowtail, RightCeiling, RightDoubleBracket, RightDownTeeVector, RightDownVectorBar, RightDownVector, RightFloor, rightharpoondown, rightharpoonup, rightleftarrows, rightleftharpoons, rightrightarrows, rightsquigarrow, RightTeeArrow, RightTee, RightTeeVector, rightthreetimes, RightTriangleBar, RightTriangle, RightTriangleEqual, RightUpDownVector, RightUpTeeVector, RightUpVectorBar, RightUpVector, RightVectorBar, RightVector, ring, risingdotseq, rlarr, rlhar, rlm, rmoustache, rmoust, rnmid, roang, roarr, robrk, ropar, ropf, Ropf, roplus, rotimes, RoundImplies, rpar, rpargt, rppolint, rrarr, Rrightarrow, rsaquo, rscr, Rscr, rsh, Rsh, rsqb, rsquo, rsquor, rthree, rtimes, rtri, rtrie, rtrif, rtriltri, RuleDelayed, ruluhar, rx, Sacute, sacute, sbquo, scap, Scaron, scaron, Sc, sc, sccue, sce, scE, Scedil, scedil, Scirc, scirc, scnap, scnE, scnsim, scpolint, scsim, Scy, scy, sdotb, sdot, sdote, searhk, searr, seArr, searrow, sect, semi, seswar, setminus, setmn, sext, Sfr, sfr, sfrown, sharp, SHCHcy, shchcy, SHcy, shcy, ShortDownArrow, ShortLeftArrow, shortmid, shortparallel, ShortRightArrow, ShortUpArrow, shy, Sigma, sigma, sigmaf, sigmav, sim, simdot, sime, simeq, simg, simgE, siml, simlE, simne, simplus, simrarr, slarr, SmallCircle, smallsetminus, smashp, smeparsl, smid, smile, smt, smte, smtes, SOFTcy, softcy, solbar, solb, sol, Sopf, sopf, spades, spadesuit, spar, sqcap, sqcaps, sqcup, sqcups, Sqrt, sqsub, sqsube, sqsubset, sqsubseteq, sqsup, sqsupe, sqsupset, sqsupseteq, square, Square, SquareIntersection, SquareSubset, SquareSubsetEqual, SquareSuperset, SquareSupersetEqual, SquareUnion, squarf, squ, squf, srarr, Sscr, sscr, ssetmn, ssmile, sstarf, Star, star, starf, straightepsilon, straightphi, strns, sub, Sub, subdot, subE, sube, subedot, submult, subnE, subne, subplus, subrarr, subset, Subset, subseteq, subseteqq, SubsetEqual, subsetneq, subsetneqq, subsim, subsub, subsup, succapprox, succ, succcurlyeq, Succeeds, SucceedsEqual, SucceedsSlantEqual, SucceedsTilde, succeq, succnapprox, succneqq, succnsim, succsim, SuchThat, sum, Sum, sung, sup1, sup2, sup3, sup, Sup, supdot, supdsub, supE, supe, supedot, Superset, SupersetEqual, suphsol, suphsub, suplarr, supmult, supnE, supne, supplus, supset, Supset, supseteq, supseteqq, supsetneq, supsetneqq, supsim, supsub, supsup, swarhk, swarr, swArr, swarrow, swnwar, szlig, Tab, target, Tau, tau, tbrk, Tcaron, tcaron, Tcedil, tcedil, Tcy, tcy, tdot, telrec, Tfr, tfr, there4, therefore, Therefore, Theta, theta, thetasym, thetav, thickapprox, thicksim, ThickSpace, ThinSpace, thinsp, thkap, thksim, THORN, thorn, tilde, Tilde, TildeEqual, TildeFullEqual, TildeTilde, timesbar, timesb, times, timesd, tint, toea, topbot, topcir, top, Topf, topf, topfork, tosa, tprime, trade, TRADE, triangle, triangledown, triangleleft, trianglelefteq, triangleq, triangleright, trianglerighteq, tridot, trie, triminus, TripleDot, triplus, trisb, tritime, trpezium, Tscr, tscr, TScy, tscy, TSHcy, tshcy, Tstrok, tstrok, twixt, twoheadleftarrow, twoheadrightarrow, Uacute, uacute, uarr, Uarr, uArr, Uarrocir, Ubrcy, ubrcy, Ubreve, ubreve, Ucirc, ucirc, Ucy, ucy, udarr, Udblac, udblac, udhar, ufisht, Ufr, ufr, Ugrave, ugrave, uHar, uharl, uharr, uhblk, ulcorn, ulcorner, ulcrop, ultri, Umacr, umacr, uml, UnderBar, UnderBrace, UnderBracket, UnderParenthesis, Union, UnionPlus, Uogon, uogon, Uopf, uopf, UpArrowBar, uparrow, UpArrow, Uparrow, UpArrowDownArrow, updownarrow, UpDownArrow, Updownarrow, UpEquilibrium, upharpoonleft, upharpoonright, uplus, UpperLeftArrow, UpperRightArrow, upsi, Upsi, upsih, Upsilon, upsilon, UpTeeArrow, UpTee, upuparrows, urcorn, urcorner, urcrop, Uring, uring, urtri, Uscr, uscr, utdot, Utilde, utilde, utri, utrif, uuarr, Uuml, uuml, uwangle, vangrt, varepsilon, varkappa, varnothing, varphi, varpi, varpropto, varr, vArr, varrho, varsigma, varsubsetneq, varsubsetneqq, varsupsetneq, varsupsetneqq, vartheta, vartriangleleft, vartriangleright, vBar, Vbar, vBarv, Vcy, vcy, vdash, vDash, Vdash, VDash, Vdashl, veebar, vee, Vee, veeeq, vellip, verbar, Verbar, vert, Vert, VerticalBar, VerticalLine, VerticalSeparator, VerticalTilde, VeryThinSpace, Vfr, vfr, vltri, vnsub, vnsup, Vopf, vopf, vprop, vrtri, Vscr, vscr, vsubnE, vsubne, vsupnE, vsupne, Vvdash, vzigzag, Wcirc, wcirc, wedbar, wedge, Wedge, wedgeq, weierp, Wfr, wfr, Wopf, wopf, wp, wr, wreath, Wscr, wscr, xcap, xcirc, xcup, xdtri, Xfr, xfr, xharr, xhArr, Xi, xi, xlarr, xlArr, xmap, xnis, xodot, Xopf, xopf, xoplus, xotime, xrarr, xrArr, Xscr, xscr, xsqcup, xuplus, xutri, xvee, xwedge, Yacute, yacute, YAcy, yacy, Ycirc, ycirc, Ycy, ycy, yen, Yfr, yfr, YIcy, yicy, Yopf, yopf, Yscr, yscr, YUcy, yucy, yuml, Yuml, Zacute, zacute, Zcaron, zcaron, Zcy, zcy, Zdot, zdot, zeetrf, ZeroWidthSpace, Zeta, zeta, zfr, Zfr, ZHcy, zhcy, zigrarr, zopf, Zopf, Zscr, zscr, zwj, zwnj, default */ +/***/ (function(module) { -const trim = self => { - if (self[LENGTH] > self[MAX]) { - for (let walker = self[LRU_LIST].tail; - self[LENGTH] > self[MAX] && walker !== null;) { - // We know that we're about to delete this one, and also - // what the next least recently used key will be, so just - // go ahead and set it now. - const prev = walker.prev - del(self, walker) - walker = prev - } - } -} +module.exports = {"Aacute":"Á","aacute":"á","Abreve":"Ă","abreve":"ă","ac":"∾","acd":"∿","acE":"∾̳","Acirc":"Â","acirc":"â","acute":"´","Acy":"А","acy":"а","AElig":"Æ","aelig":"æ","af":"⁡","Afr":"𝔄","afr":"𝔞","Agrave":"À","agrave":"à","alefsym":"ℵ","aleph":"ℵ","Alpha":"Α","alpha":"α","Amacr":"Ā","amacr":"ā","amalg":"⨿","amp":"&","AMP":"&","andand":"⩕","And":"⩓","and":"∧","andd":"⩜","andslope":"⩘","andv":"⩚","ang":"∠","ange":"⦤","angle":"∠","angmsdaa":"⦨","angmsdab":"⦩","angmsdac":"⦪","angmsdad":"⦫","angmsdae":"⦬","angmsdaf":"⦭","angmsdag":"⦮","angmsdah":"⦯","angmsd":"∡","angrt":"∟","angrtvb":"⊾","angrtvbd":"⦝","angsph":"∢","angst":"Å","angzarr":"⍼","Aogon":"Ą","aogon":"ą","Aopf":"𝔸","aopf":"𝕒","apacir":"⩯","ap":"≈","apE":"⩰","ape":"≊","apid":"≋","apos":"'","ApplyFunction":"⁡","approx":"≈","approxeq":"≊","Aring":"Å","aring":"å","Ascr":"𝒜","ascr":"𝒶","Assign":"≔","ast":"*","asymp":"≈","asympeq":"≍","Atilde":"Ã","atilde":"ã","Auml":"Ä","auml":"ä","awconint":"∳","awint":"⨑","backcong":"≌","backepsilon":"϶","backprime":"‵","backsim":"∽","backsimeq":"⋍","Backslash":"∖","Barv":"⫧","barvee":"⊽","barwed":"⌅","Barwed":"⌆","barwedge":"⌅","bbrk":"⎵","bbrktbrk":"⎶","bcong":"≌","Bcy":"Б","bcy":"б","bdquo":"„","becaus":"∵","because":"∵","Because":"∵","bemptyv":"⦰","bepsi":"϶","bernou":"ℬ","Bernoullis":"ℬ","Beta":"Β","beta":"β","beth":"ℶ","between":"≬","Bfr":"𝔅","bfr":"𝔟","bigcap":"⋂","bigcirc":"◯","bigcup":"⋃","bigodot":"⨀","bigoplus":"⨁","bigotimes":"⨂","bigsqcup":"⨆","bigstar":"★","bigtriangledown":"▽","bigtriangleup":"△","biguplus":"⨄","bigvee":"⋁","bigwedge":"⋀","bkarow":"⤍","blacklozenge":"⧫","blacksquare":"▪","blacktriangle":"▴","blacktriangledown":"▾","blacktriangleleft":"◂","blacktriangleright":"▸","blank":"␣","blk12":"▒","blk14":"░","blk34":"▓","block":"█","bne":"=⃥","bnequiv":"≡⃥","bNot":"⫭","bnot":"⌐","Bopf":"𝔹","bopf":"𝕓","bot":"⊥","bottom":"⊥","bowtie":"⋈","boxbox":"⧉","boxdl":"┐","boxdL":"╕","boxDl":"╖","boxDL":"╗","boxdr":"┌","boxdR":"╒","boxDr":"╓","boxDR":"╔","boxh":"─","boxH":"═","boxhd":"┬","boxHd":"╤","boxhD":"╥","boxHD":"╦","boxhu":"┴","boxHu":"╧","boxhU":"╨","boxHU":"╩","boxminus":"⊟","boxplus":"⊞","boxtimes":"⊠","boxul":"┘","boxuL":"╛","boxUl":"╜","boxUL":"╝","boxur":"└","boxuR":"╘","boxUr":"╙","boxUR":"╚","boxv":"│","boxV":"║","boxvh":"┼","boxvH":"╪","boxVh":"╫","boxVH":"╬","boxvl":"┤","boxvL":"╡","boxVl":"╢","boxVL":"╣","boxvr":"├","boxvR":"╞","boxVr":"╟","boxVR":"╠","bprime":"‵","breve":"˘","Breve":"˘","brvbar":"¦","bscr":"𝒷","Bscr":"ℬ","bsemi":"⁏","bsim":"∽","bsime":"⋍","bsolb":"⧅","bsol":"\\","bsolhsub":"⟈","bull":"•","bullet":"•","bump":"≎","bumpE":"⪮","bumpe":"≏","Bumpeq":"≎","bumpeq":"≏","Cacute":"Ć","cacute":"ć","capand":"⩄","capbrcup":"⩉","capcap":"⩋","cap":"∩","Cap":"⋒","capcup":"⩇","capdot":"⩀","CapitalDifferentialD":"ⅅ","caps":"∩︀","caret":"⁁","caron":"ˇ","Cayleys":"ℭ","ccaps":"⩍","Ccaron":"Č","ccaron":"č","Ccedil":"Ç","ccedil":"ç","Ccirc":"Ĉ","ccirc":"ĉ","Cconint":"∰","ccups":"⩌","ccupssm":"⩐","Cdot":"Ċ","cdot":"ċ","cedil":"¸","Cedilla":"¸","cemptyv":"⦲","cent":"¢","centerdot":"·","CenterDot":"·","cfr":"𝔠","Cfr":"ℭ","CHcy":"Ч","chcy":"ч","check":"✓","checkmark":"✓","Chi":"Χ","chi":"χ","circ":"ˆ","circeq":"≗","circlearrowleft":"↺","circlearrowright":"↻","circledast":"⊛","circledcirc":"⊚","circleddash":"⊝","CircleDot":"⊙","circledR":"®","circledS":"Ⓢ","CircleMinus":"⊖","CirclePlus":"⊕","CircleTimes":"⊗","cir":"○","cirE":"⧃","cire":"≗","cirfnint":"⨐","cirmid":"⫯","cirscir":"⧂","ClockwiseContourIntegral":"∲","CloseCurlyDoubleQuote":"”","CloseCurlyQuote":"’","clubs":"♣","clubsuit":"♣","colon":":","Colon":"∷","Colone":"⩴","colone":"≔","coloneq":"≔","comma":",","commat":"@","comp":"∁","compfn":"∘","complement":"∁","complexes":"ℂ","cong":"≅","congdot":"⩭","Congruent":"≡","conint":"∮","Conint":"∯","ContourIntegral":"∮","copf":"𝕔","Copf":"ℂ","coprod":"∐","Coproduct":"∐","copy":"©","COPY":"©","copysr":"℗","CounterClockwiseContourIntegral":"∳","crarr":"↵","cross":"✗","Cross":"⨯","Cscr":"𝒞","cscr":"𝒸","csub":"⫏","csube":"⫑","csup":"⫐","csupe":"⫒","ctdot":"⋯","cudarrl":"⤸","cudarrr":"⤵","cuepr":"⋞","cuesc":"⋟","cularr":"↶","cularrp":"⤽","cupbrcap":"⩈","cupcap":"⩆","CupCap":"≍","cup":"∪","Cup":"⋓","cupcup":"⩊","cupdot":"⊍","cupor":"⩅","cups":"∪︀","curarr":"↷","curarrm":"⤼","curlyeqprec":"⋞","curlyeqsucc":"⋟","curlyvee":"⋎","curlywedge":"⋏","curren":"¤","curvearrowleft":"↶","curvearrowright":"↷","cuvee":"⋎","cuwed":"⋏","cwconint":"∲","cwint":"∱","cylcty":"⌭","dagger":"†","Dagger":"‡","daleth":"ℸ","darr":"↓","Darr":"↡","dArr":"⇓","dash":"‐","Dashv":"⫤","dashv":"⊣","dbkarow":"⤏","dblac":"˝","Dcaron":"Ď","dcaron":"ď","Dcy":"Д","dcy":"д","ddagger":"‡","ddarr":"⇊","DD":"ⅅ","dd":"ⅆ","DDotrahd":"⤑","ddotseq":"⩷","deg":"°","Del":"∇","Delta":"Δ","delta":"δ","demptyv":"⦱","dfisht":"⥿","Dfr":"𝔇","dfr":"𝔡","dHar":"⥥","dharl":"⇃","dharr":"⇂","DiacriticalAcute":"´","DiacriticalDot":"˙","DiacriticalDoubleAcute":"˝","DiacriticalGrave":"`","DiacriticalTilde":"˜","diam":"⋄","diamond":"⋄","Diamond":"⋄","diamondsuit":"♦","diams":"♦","die":"¨","DifferentialD":"ⅆ","digamma":"ϝ","disin":"⋲","div":"÷","divide":"÷","divideontimes":"⋇","divonx":"⋇","DJcy":"Ђ","djcy":"ђ","dlcorn":"⌞","dlcrop":"⌍","dollar":"$","Dopf":"𝔻","dopf":"𝕕","Dot":"¨","dot":"˙","DotDot":"⃜","doteq":"≐","doteqdot":"≑","DotEqual":"≐","dotminus":"∸","dotplus":"∔","dotsquare":"⊡","doublebarwedge":"⌆","DoubleContourIntegral":"∯","DoubleDot":"¨","DoubleDownArrow":"⇓","DoubleLeftArrow":"⇐","DoubleLeftRightArrow":"⇔","DoubleLeftTee":"⫤","DoubleLongLeftArrow":"⟸","DoubleLongLeftRightArrow":"⟺","DoubleLongRightArrow":"⟹","DoubleRightArrow":"⇒","DoubleRightTee":"⊨","DoubleUpArrow":"⇑","DoubleUpDownArrow":"⇕","DoubleVerticalBar":"∥","DownArrowBar":"⤓","downarrow":"↓","DownArrow":"↓","Downarrow":"⇓","DownArrowUpArrow":"⇵","DownBreve":"̑","downdownarrows":"⇊","downharpoonleft":"⇃","downharpoonright":"⇂","DownLeftRightVector":"⥐","DownLeftTeeVector":"⥞","DownLeftVectorBar":"⥖","DownLeftVector":"↽","DownRightTeeVector":"⥟","DownRightVectorBar":"⥗","DownRightVector":"⇁","DownTeeArrow":"↧","DownTee":"⊤","drbkarow":"⤐","drcorn":"⌟","drcrop":"⌌","Dscr":"𝒟","dscr":"𝒹","DScy":"Ѕ","dscy":"ѕ","dsol":"⧶","Dstrok":"Đ","dstrok":"đ","dtdot":"⋱","dtri":"▿","dtrif":"▾","duarr":"⇵","duhar":"⥯","dwangle":"⦦","DZcy":"Џ","dzcy":"џ","dzigrarr":"⟿","Eacute":"É","eacute":"é","easter":"⩮","Ecaron":"Ě","ecaron":"ě","Ecirc":"Ê","ecirc":"ê","ecir":"≖","ecolon":"≕","Ecy":"Э","ecy":"э","eDDot":"⩷","Edot":"Ė","edot":"ė","eDot":"≑","ee":"ⅇ","efDot":"≒","Efr":"𝔈","efr":"𝔢","eg":"⪚","Egrave":"È","egrave":"è","egs":"⪖","egsdot":"⪘","el":"⪙","Element":"∈","elinters":"⏧","ell":"ℓ","els":"⪕","elsdot":"⪗","Emacr":"Ē","emacr":"ē","empty":"∅","emptyset":"∅","EmptySmallSquare":"◻","emptyv":"∅","EmptyVerySmallSquare":"▫","emsp13":" ","emsp14":" ","emsp":" ","ENG":"Ŋ","eng":"ŋ","ensp":" ","Eogon":"Ę","eogon":"ę","Eopf":"𝔼","eopf":"𝕖","epar":"⋕","eparsl":"⧣","eplus":"⩱","epsi":"ε","Epsilon":"Ε","epsilon":"ε","epsiv":"ϵ","eqcirc":"≖","eqcolon":"≕","eqsim":"≂","eqslantgtr":"⪖","eqslantless":"⪕","Equal":"⩵","equals":"=","EqualTilde":"≂","equest":"≟","Equilibrium":"⇌","equiv":"≡","equivDD":"⩸","eqvparsl":"⧥","erarr":"⥱","erDot":"≓","escr":"ℯ","Escr":"ℰ","esdot":"≐","Esim":"⩳","esim":"≂","Eta":"Η","eta":"η","ETH":"Ð","eth":"ð","Euml":"Ë","euml":"ë","euro":"€","excl":"!","exist":"∃","Exists":"∃","expectation":"ℰ","exponentiale":"ⅇ","ExponentialE":"ⅇ","fallingdotseq":"≒","Fcy":"Ф","fcy":"ф","female":"♀","ffilig":"ffi","fflig":"ff","ffllig":"ffl","Ffr":"𝔉","ffr":"𝔣","filig":"fi","FilledSmallSquare":"◼","FilledVerySmallSquare":"▪","fjlig":"fj","flat":"♭","fllig":"fl","fltns":"▱","fnof":"ƒ","Fopf":"𝔽","fopf":"𝕗","forall":"∀","ForAll":"∀","fork":"⋔","forkv":"⫙","Fouriertrf":"ℱ","fpartint":"⨍","frac12":"½","frac13":"⅓","frac14":"¼","frac15":"⅕","frac16":"⅙","frac18":"⅛","frac23":"⅔","frac25":"⅖","frac34":"¾","frac35":"⅗","frac38":"⅜","frac45":"⅘","frac56":"⅚","frac58":"⅝","frac78":"⅞","frasl":"⁄","frown":"⌢","fscr":"𝒻","Fscr":"ℱ","gacute":"ǵ","Gamma":"Γ","gamma":"γ","Gammad":"Ϝ","gammad":"ϝ","gap":"⪆","Gbreve":"Ğ","gbreve":"ğ","Gcedil":"Ģ","Gcirc":"Ĝ","gcirc":"ĝ","Gcy":"Г","gcy":"г","Gdot":"Ġ","gdot":"ġ","ge":"≥","gE":"≧","gEl":"⪌","gel":"⋛","geq":"≥","geqq":"≧","geqslant":"⩾","gescc":"⪩","ges":"⩾","gesdot":"⪀","gesdoto":"⪂","gesdotol":"⪄","gesl":"⋛︀","gesles":"⪔","Gfr":"𝔊","gfr":"𝔤","gg":"≫","Gg":"⋙","ggg":"⋙","gimel":"ℷ","GJcy":"Ѓ","gjcy":"ѓ","gla":"⪥","gl":"≷","glE":"⪒","glj":"⪤","gnap":"⪊","gnapprox":"⪊","gne":"⪈","gnE":"≩","gneq":"⪈","gneqq":"≩","gnsim":"⋧","Gopf":"𝔾","gopf":"𝕘","grave":"`","GreaterEqual":"≥","GreaterEqualLess":"⋛","GreaterFullEqual":"≧","GreaterGreater":"⪢","GreaterLess":"≷","GreaterSlantEqual":"⩾","GreaterTilde":"≳","Gscr":"𝒢","gscr":"ℊ","gsim":"≳","gsime":"⪎","gsiml":"⪐","gtcc":"⪧","gtcir":"⩺","gt":">","GT":">","Gt":"≫","gtdot":"⋗","gtlPar":"⦕","gtquest":"⩼","gtrapprox":"⪆","gtrarr":"⥸","gtrdot":"⋗","gtreqless":"⋛","gtreqqless":"⪌","gtrless":"≷","gtrsim":"≳","gvertneqq":"≩︀","gvnE":"≩︀","Hacek":"ˇ","hairsp":" ","half":"½","hamilt":"ℋ","HARDcy":"Ъ","hardcy":"ъ","harrcir":"⥈","harr":"↔","hArr":"⇔","harrw":"↭","Hat":"^","hbar":"ℏ","Hcirc":"Ĥ","hcirc":"ĥ","hearts":"♥","heartsuit":"♥","hellip":"…","hercon":"⊹","hfr":"𝔥","Hfr":"ℌ","HilbertSpace":"ℋ","hksearow":"⤥","hkswarow":"⤦","hoarr":"⇿","homtht":"∻","hookleftarrow":"↩","hookrightarrow":"↪","hopf":"𝕙","Hopf":"ℍ","horbar":"―","HorizontalLine":"─","hscr":"𝒽","Hscr":"ℋ","hslash":"ℏ","Hstrok":"Ħ","hstrok":"ħ","HumpDownHump":"≎","HumpEqual":"≏","hybull":"⁃","hyphen":"‐","Iacute":"Í","iacute":"í","ic":"⁣","Icirc":"Î","icirc":"î","Icy":"И","icy":"и","Idot":"İ","IEcy":"Е","iecy":"е","iexcl":"¡","iff":"⇔","ifr":"𝔦","Ifr":"ℑ","Igrave":"Ì","igrave":"ì","ii":"ⅈ","iiiint":"⨌","iiint":"∭","iinfin":"⧜","iiota":"℩","IJlig":"IJ","ijlig":"ij","Imacr":"Ī","imacr":"ī","image":"ℑ","ImaginaryI":"ⅈ","imagline":"ℐ","imagpart":"ℑ","imath":"ı","Im":"ℑ","imof":"⊷","imped":"Ƶ","Implies":"⇒","incare":"℅","in":"∈","infin":"∞","infintie":"⧝","inodot":"ı","intcal":"⊺","int":"∫","Int":"∬","integers":"ℤ","Integral":"∫","intercal":"⊺","Intersection":"⋂","intlarhk":"⨗","intprod":"⨼","InvisibleComma":"⁣","InvisibleTimes":"⁢","IOcy":"Ё","iocy":"ё","Iogon":"Į","iogon":"į","Iopf":"𝕀","iopf":"𝕚","Iota":"Ι","iota":"ι","iprod":"⨼","iquest":"¿","iscr":"𝒾","Iscr":"ℐ","isin":"∈","isindot":"⋵","isinE":"⋹","isins":"⋴","isinsv":"⋳","isinv":"∈","it":"⁢","Itilde":"Ĩ","itilde":"ĩ","Iukcy":"І","iukcy":"і","Iuml":"Ï","iuml":"ï","Jcirc":"Ĵ","jcirc":"ĵ","Jcy":"Й","jcy":"й","Jfr":"𝔍","jfr":"𝔧","jmath":"ȷ","Jopf":"𝕁","jopf":"𝕛","Jscr":"𝒥","jscr":"𝒿","Jsercy":"Ј","jsercy":"ј","Jukcy":"Є","jukcy":"є","Kappa":"Κ","kappa":"κ","kappav":"ϰ","Kcedil":"Ķ","kcedil":"ķ","Kcy":"К","kcy":"к","Kfr":"𝔎","kfr":"𝔨","kgreen":"ĸ","KHcy":"Х","khcy":"х","KJcy":"Ќ","kjcy":"ќ","Kopf":"𝕂","kopf":"𝕜","Kscr":"𝒦","kscr":"𝓀","lAarr":"⇚","Lacute":"Ĺ","lacute":"ĺ","laemptyv":"⦴","lagran":"ℒ","Lambda":"Λ","lambda":"λ","lang":"⟨","Lang":"⟪","langd":"⦑","langle":"⟨","lap":"⪅","Laplacetrf":"ℒ","laquo":"«","larrb":"⇤","larrbfs":"⤟","larr":"←","Larr":"↞","lArr":"⇐","larrfs":"⤝","larrhk":"↩","larrlp":"↫","larrpl":"⤹","larrsim":"⥳","larrtl":"↢","latail":"⤙","lAtail":"⤛","lat":"⪫","late":"⪭","lates":"⪭︀","lbarr":"⤌","lBarr":"⤎","lbbrk":"❲","lbrace":"{","lbrack":"[","lbrke":"⦋","lbrksld":"⦏","lbrkslu":"⦍","Lcaron":"Ľ","lcaron":"ľ","Lcedil":"Ļ","lcedil":"ļ","lceil":"⌈","lcub":"{","Lcy":"Л","lcy":"л","ldca":"⤶","ldquo":"“","ldquor":"„","ldrdhar":"⥧","ldrushar":"⥋","ldsh":"↲","le":"≤","lE":"≦","LeftAngleBracket":"⟨","LeftArrowBar":"⇤","leftarrow":"←","LeftArrow":"←","Leftarrow":"⇐","LeftArrowRightArrow":"⇆","leftarrowtail":"↢","LeftCeiling":"⌈","LeftDoubleBracket":"⟦","LeftDownTeeVector":"⥡","LeftDownVectorBar":"⥙","LeftDownVector":"⇃","LeftFloor":"⌊","leftharpoondown":"↽","leftharpoonup":"↼","leftleftarrows":"⇇","leftrightarrow":"↔","LeftRightArrow":"↔","Leftrightarrow":"⇔","leftrightarrows":"⇆","leftrightharpoons":"⇋","leftrightsquigarrow":"↭","LeftRightVector":"⥎","LeftTeeArrow":"↤","LeftTee":"⊣","LeftTeeVector":"⥚","leftthreetimes":"⋋","LeftTriangleBar":"⧏","LeftTriangle":"⊲","LeftTriangleEqual":"⊴","LeftUpDownVector":"⥑","LeftUpTeeVector":"⥠","LeftUpVectorBar":"⥘","LeftUpVector":"↿","LeftVectorBar":"⥒","LeftVector":"↼","lEg":"⪋","leg":"⋚","leq":"≤","leqq":"≦","leqslant":"⩽","lescc":"⪨","les":"⩽","lesdot":"⩿","lesdoto":"⪁","lesdotor":"⪃","lesg":"⋚︀","lesges":"⪓","lessapprox":"⪅","lessdot":"⋖","lesseqgtr":"⋚","lesseqqgtr":"⪋","LessEqualGreater":"⋚","LessFullEqual":"≦","LessGreater":"≶","lessgtr":"≶","LessLess":"⪡","lesssim":"≲","LessSlantEqual":"⩽","LessTilde":"≲","lfisht":"⥼","lfloor":"⌊","Lfr":"𝔏","lfr":"𝔩","lg":"≶","lgE":"⪑","lHar":"⥢","lhard":"↽","lharu":"↼","lharul":"⥪","lhblk":"▄","LJcy":"Љ","ljcy":"љ","llarr":"⇇","ll":"≪","Ll":"⋘","llcorner":"⌞","Lleftarrow":"⇚","llhard":"⥫","lltri":"◺","Lmidot":"Ŀ","lmidot":"ŀ","lmoustache":"⎰","lmoust":"⎰","lnap":"⪉","lnapprox":"⪉","lne":"⪇","lnE":"≨","lneq":"⪇","lneqq":"≨","lnsim":"⋦","loang":"⟬","loarr":"⇽","lobrk":"⟦","longleftarrow":"⟵","LongLeftArrow":"⟵","Longleftarrow":"⟸","longleftrightarrow":"⟷","LongLeftRightArrow":"⟷","Longleftrightarrow":"⟺","longmapsto":"⟼","longrightarrow":"⟶","LongRightArrow":"⟶","Longrightarrow":"⟹","looparrowleft":"↫","looparrowright":"↬","lopar":"⦅","Lopf":"𝕃","lopf":"𝕝","loplus":"⨭","lotimes":"⨴","lowast":"∗","lowbar":"_","LowerLeftArrow":"↙","LowerRightArrow":"↘","loz":"◊","lozenge":"◊","lozf":"⧫","lpar":"(","lparlt":"⦓","lrarr":"⇆","lrcorner":"⌟","lrhar":"⇋","lrhard":"⥭","lrm":"‎","lrtri":"⊿","lsaquo":"‹","lscr":"𝓁","Lscr":"ℒ","lsh":"↰","Lsh":"↰","lsim":"≲","lsime":"⪍","lsimg":"⪏","lsqb":"[","lsquo":"‘","lsquor":"‚","Lstrok":"Ł","lstrok":"ł","ltcc":"⪦","ltcir":"⩹","lt":"<","LT":"<","Lt":"≪","ltdot":"⋖","lthree":"⋋","ltimes":"⋉","ltlarr":"⥶","ltquest":"⩻","ltri":"◃","ltrie":"⊴","ltrif":"◂","ltrPar":"⦖","lurdshar":"⥊","luruhar":"⥦","lvertneqq":"≨︀","lvnE":"≨︀","macr":"¯","male":"♂","malt":"✠","maltese":"✠","Map":"⤅","map":"↦","mapsto":"↦","mapstodown":"↧","mapstoleft":"↤","mapstoup":"↥","marker":"▮","mcomma":"⨩","Mcy":"М","mcy":"м","mdash":"—","mDDot":"∺","measuredangle":"∡","MediumSpace":" ","Mellintrf":"ℳ","Mfr":"𝔐","mfr":"𝔪","mho":"℧","micro":"µ","midast":"*","midcir":"⫰","mid":"∣","middot":"·","minusb":"⊟","minus":"−","minusd":"∸","minusdu":"⨪","MinusPlus":"∓","mlcp":"⫛","mldr":"…","mnplus":"∓","models":"⊧","Mopf":"𝕄","mopf":"𝕞","mp":"∓","mscr":"𝓂","Mscr":"ℳ","mstpos":"∾","Mu":"Μ","mu":"μ","multimap":"⊸","mumap":"⊸","nabla":"∇","Nacute":"Ń","nacute":"ń","nang":"∠⃒","nap":"≉","napE":"⩰̸","napid":"≋̸","napos":"ʼn","napprox":"≉","natural":"♮","naturals":"ℕ","natur":"♮","nbsp":" ","nbump":"≎̸","nbumpe":"≏̸","ncap":"⩃","Ncaron":"Ň","ncaron":"ň","Ncedil":"Ņ","ncedil":"ņ","ncong":"≇","ncongdot":"⩭̸","ncup":"⩂","Ncy":"Н","ncy":"н","ndash":"–","nearhk":"⤤","nearr":"↗","neArr":"⇗","nearrow":"↗","ne":"≠","nedot":"≐̸","NegativeMediumSpace":"​","NegativeThickSpace":"​","NegativeThinSpace":"​","NegativeVeryThinSpace":"​","nequiv":"≢","nesear":"⤨","nesim":"≂̸","NestedGreaterGreater":"≫","NestedLessLess":"≪","NewLine":"\n","nexist":"∄","nexists":"∄","Nfr":"𝔑","nfr":"𝔫","ngE":"≧̸","nge":"≱","ngeq":"≱","ngeqq":"≧̸","ngeqslant":"⩾̸","nges":"⩾̸","nGg":"⋙̸","ngsim":"≵","nGt":"≫⃒","ngt":"≯","ngtr":"≯","nGtv":"≫̸","nharr":"↮","nhArr":"⇎","nhpar":"⫲","ni":"∋","nis":"⋼","nisd":"⋺","niv":"∋","NJcy":"Њ","njcy":"њ","nlarr":"↚","nlArr":"⇍","nldr":"‥","nlE":"≦̸","nle":"≰","nleftarrow":"↚","nLeftarrow":"⇍","nleftrightarrow":"↮","nLeftrightarrow":"⇎","nleq":"≰","nleqq":"≦̸","nleqslant":"⩽̸","nles":"⩽̸","nless":"≮","nLl":"⋘̸","nlsim":"≴","nLt":"≪⃒","nlt":"≮","nltri":"⋪","nltrie":"⋬","nLtv":"≪̸","nmid":"∤","NoBreak":"⁠","NonBreakingSpace":" ","nopf":"𝕟","Nopf":"ℕ","Not":"⫬","not":"¬","NotCongruent":"≢","NotCupCap":"≭","NotDoubleVerticalBar":"∦","NotElement":"∉","NotEqual":"≠","NotEqualTilde":"≂̸","NotExists":"∄","NotGreater":"≯","NotGreaterEqual":"≱","NotGreaterFullEqual":"≧̸","NotGreaterGreater":"≫̸","NotGreaterLess":"≹","NotGreaterSlantEqual":"⩾̸","NotGreaterTilde":"≵","NotHumpDownHump":"≎̸","NotHumpEqual":"≏̸","notin":"∉","notindot":"⋵̸","notinE":"⋹̸","notinva":"∉","notinvb":"⋷","notinvc":"⋶","NotLeftTriangleBar":"⧏̸","NotLeftTriangle":"⋪","NotLeftTriangleEqual":"⋬","NotLess":"≮","NotLessEqual":"≰","NotLessGreater":"≸","NotLessLess":"≪̸","NotLessSlantEqual":"⩽̸","NotLessTilde":"≴","NotNestedGreaterGreater":"⪢̸","NotNestedLessLess":"⪡̸","notni":"∌","notniva":"∌","notnivb":"⋾","notnivc":"⋽","NotPrecedes":"⊀","NotPrecedesEqual":"⪯̸","NotPrecedesSlantEqual":"⋠","NotReverseElement":"∌","NotRightTriangleBar":"⧐̸","NotRightTriangle":"⋫","NotRightTriangleEqual":"⋭","NotSquareSubset":"⊏̸","NotSquareSubsetEqual":"⋢","NotSquareSuperset":"⊐̸","NotSquareSupersetEqual":"⋣","NotSubset":"⊂⃒","NotSubsetEqual":"⊈","NotSucceeds":"⊁","NotSucceedsEqual":"⪰̸","NotSucceedsSlantEqual":"⋡","NotSucceedsTilde":"≿̸","NotSuperset":"⊃⃒","NotSupersetEqual":"⊉","NotTilde":"≁","NotTildeEqual":"≄","NotTildeFullEqual":"≇","NotTildeTilde":"≉","NotVerticalBar":"∤","nparallel":"∦","npar":"∦","nparsl":"⫽⃥","npart":"∂̸","npolint":"⨔","npr":"⊀","nprcue":"⋠","nprec":"⊀","npreceq":"⪯̸","npre":"⪯̸","nrarrc":"⤳̸","nrarr":"↛","nrArr":"⇏","nrarrw":"↝̸","nrightarrow":"↛","nRightarrow":"⇏","nrtri":"⋫","nrtrie":"⋭","nsc":"⊁","nsccue":"⋡","nsce":"⪰̸","Nscr":"𝒩","nscr":"𝓃","nshortmid":"∤","nshortparallel":"∦","nsim":"≁","nsime":"≄","nsimeq":"≄","nsmid":"∤","nspar":"∦","nsqsube":"⋢","nsqsupe":"⋣","nsub":"⊄","nsubE":"⫅̸","nsube":"⊈","nsubset":"⊂⃒","nsubseteq":"⊈","nsubseteqq":"⫅̸","nsucc":"⊁","nsucceq":"⪰̸","nsup":"⊅","nsupE":"⫆̸","nsupe":"⊉","nsupset":"⊃⃒","nsupseteq":"⊉","nsupseteqq":"⫆̸","ntgl":"≹","Ntilde":"Ñ","ntilde":"ñ","ntlg":"≸","ntriangleleft":"⋪","ntrianglelefteq":"⋬","ntriangleright":"⋫","ntrianglerighteq":"⋭","Nu":"Ν","nu":"ν","num":"#","numero":"№","numsp":" ","nvap":"≍⃒","nvdash":"⊬","nvDash":"⊭","nVdash":"⊮","nVDash":"⊯","nvge":"≥⃒","nvgt":">⃒","nvHarr":"⤄","nvinfin":"⧞","nvlArr":"⤂","nvle":"≤⃒","nvlt":"<⃒","nvltrie":"⊴⃒","nvrArr":"⤃","nvrtrie":"⊵⃒","nvsim":"∼⃒","nwarhk":"⤣","nwarr":"↖","nwArr":"⇖","nwarrow":"↖","nwnear":"⤧","Oacute":"Ó","oacute":"ó","oast":"⊛","Ocirc":"Ô","ocirc":"ô","ocir":"⊚","Ocy":"О","ocy":"о","odash":"⊝","Odblac":"Ő","odblac":"ő","odiv":"⨸","odot":"⊙","odsold":"⦼","OElig":"Œ","oelig":"œ","ofcir":"⦿","Ofr":"𝔒","ofr":"𝔬","ogon":"˛","Ograve":"Ò","ograve":"ò","ogt":"⧁","ohbar":"⦵","ohm":"Ω","oint":"∮","olarr":"↺","olcir":"⦾","olcross":"⦻","oline":"‾","olt":"⧀","Omacr":"Ō","omacr":"ō","Omega":"Ω","omega":"ω","Omicron":"Ο","omicron":"ο","omid":"⦶","ominus":"⊖","Oopf":"𝕆","oopf":"𝕠","opar":"⦷","OpenCurlyDoubleQuote":"“","OpenCurlyQuote":"‘","operp":"⦹","oplus":"⊕","orarr":"↻","Or":"⩔","or":"∨","ord":"⩝","order":"ℴ","orderof":"ℴ","ordf":"ª","ordm":"º","origof":"⊶","oror":"⩖","orslope":"⩗","orv":"⩛","oS":"Ⓢ","Oscr":"𝒪","oscr":"ℴ","Oslash":"Ø","oslash":"ø","osol":"⊘","Otilde":"Õ","otilde":"õ","otimesas":"⨶","Otimes":"⨷","otimes":"⊗","Ouml":"Ö","ouml":"ö","ovbar":"⌽","OverBar":"‾","OverBrace":"⏞","OverBracket":"⎴","OverParenthesis":"⏜","para":"¶","parallel":"∥","par":"∥","parsim":"⫳","parsl":"⫽","part":"∂","PartialD":"∂","Pcy":"П","pcy":"п","percnt":"%","period":".","permil":"‰","perp":"⊥","pertenk":"‱","Pfr":"𝔓","pfr":"𝔭","Phi":"Φ","phi":"φ","phiv":"ϕ","phmmat":"ℳ","phone":"☎","Pi":"Π","pi":"π","pitchfork":"⋔","piv":"ϖ","planck":"ℏ","planckh":"ℎ","plankv":"ℏ","plusacir":"⨣","plusb":"⊞","pluscir":"⨢","plus":"+","plusdo":"∔","plusdu":"⨥","pluse":"⩲","PlusMinus":"±","plusmn":"±","plussim":"⨦","plustwo":"⨧","pm":"±","Poincareplane":"ℌ","pointint":"⨕","popf":"𝕡","Popf":"ℙ","pound":"£","prap":"⪷","Pr":"⪻","pr":"≺","prcue":"≼","precapprox":"⪷","prec":"≺","preccurlyeq":"≼","Precedes":"≺","PrecedesEqual":"⪯","PrecedesSlantEqual":"≼","PrecedesTilde":"≾","preceq":"⪯","precnapprox":"⪹","precneqq":"⪵","precnsim":"⋨","pre":"⪯","prE":"⪳","precsim":"≾","prime":"′","Prime":"″","primes":"ℙ","prnap":"⪹","prnE":"⪵","prnsim":"⋨","prod":"∏","Product":"∏","profalar":"⌮","profline":"⌒","profsurf":"⌓","prop":"∝","Proportional":"∝","Proportion":"∷","propto":"∝","prsim":"≾","prurel":"⊰","Pscr":"𝒫","pscr":"𝓅","Psi":"Ψ","psi":"ψ","puncsp":" ","Qfr":"𝔔","qfr":"𝔮","qint":"⨌","qopf":"𝕢","Qopf":"ℚ","qprime":"⁗","Qscr":"𝒬","qscr":"𝓆","quaternions":"ℍ","quatint":"⨖","quest":"?","questeq":"≟","quot":"\"","QUOT":"\"","rAarr":"⇛","race":"∽̱","Racute":"Ŕ","racute":"ŕ","radic":"√","raemptyv":"⦳","rang":"⟩","Rang":"⟫","rangd":"⦒","range":"⦥","rangle":"⟩","raquo":"»","rarrap":"⥵","rarrb":"⇥","rarrbfs":"⤠","rarrc":"⤳","rarr":"→","Rarr":"↠","rArr":"⇒","rarrfs":"⤞","rarrhk":"↪","rarrlp":"↬","rarrpl":"⥅","rarrsim":"⥴","Rarrtl":"⤖","rarrtl":"↣","rarrw":"↝","ratail":"⤚","rAtail":"⤜","ratio":"∶","rationals":"ℚ","rbarr":"⤍","rBarr":"⤏","RBarr":"⤐","rbbrk":"❳","rbrace":"}","rbrack":"]","rbrke":"⦌","rbrksld":"⦎","rbrkslu":"⦐","Rcaron":"Ř","rcaron":"ř","Rcedil":"Ŗ","rcedil":"ŗ","rceil":"⌉","rcub":"}","Rcy":"Р","rcy":"р","rdca":"⤷","rdldhar":"⥩","rdquo":"”","rdquor":"”","rdsh":"↳","real":"ℜ","realine":"ℛ","realpart":"ℜ","reals":"ℝ","Re":"ℜ","rect":"▭","reg":"®","REG":"®","ReverseElement":"∋","ReverseEquilibrium":"⇋","ReverseUpEquilibrium":"⥯","rfisht":"⥽","rfloor":"⌋","rfr":"𝔯","Rfr":"ℜ","rHar":"⥤","rhard":"⇁","rharu":"⇀","rharul":"⥬","Rho":"Ρ","rho":"ρ","rhov":"ϱ","RightAngleBracket":"⟩","RightArrowBar":"⇥","rightarrow":"→","RightArrow":"→","Rightarrow":"⇒","RightArrowLeftArrow":"⇄","rightarrowtail":"↣","RightCeiling":"⌉","RightDoubleBracket":"⟧","RightDownTeeVector":"⥝","RightDownVectorBar":"⥕","RightDownVector":"⇂","RightFloor":"⌋","rightharpoondown":"⇁","rightharpoonup":"⇀","rightleftarrows":"⇄","rightleftharpoons":"⇌","rightrightarrows":"⇉","rightsquigarrow":"↝","RightTeeArrow":"↦","RightTee":"⊢","RightTeeVector":"⥛","rightthreetimes":"⋌","RightTriangleBar":"⧐","RightTriangle":"⊳","RightTriangleEqual":"⊵","RightUpDownVector":"⥏","RightUpTeeVector":"⥜","RightUpVectorBar":"⥔","RightUpVector":"↾","RightVectorBar":"⥓","RightVector":"⇀","ring":"˚","risingdotseq":"≓","rlarr":"⇄","rlhar":"⇌","rlm":"‏","rmoustache":"⎱","rmoust":"⎱","rnmid":"⫮","roang":"⟭","roarr":"⇾","robrk":"⟧","ropar":"⦆","ropf":"𝕣","Ropf":"ℝ","roplus":"⨮","rotimes":"⨵","RoundImplies":"⥰","rpar":")","rpargt":"⦔","rppolint":"⨒","rrarr":"⇉","Rrightarrow":"⇛","rsaquo":"›","rscr":"𝓇","Rscr":"ℛ","rsh":"↱","Rsh":"↱","rsqb":"]","rsquo":"’","rsquor":"’","rthree":"⋌","rtimes":"⋊","rtri":"▹","rtrie":"⊵","rtrif":"▸","rtriltri":"⧎","RuleDelayed":"⧴","ruluhar":"⥨","rx":"℞","Sacute":"Ś","sacute":"ś","sbquo":"‚","scap":"⪸","Scaron":"Š","scaron":"š","Sc":"⪼","sc":"≻","sccue":"≽","sce":"⪰","scE":"⪴","Scedil":"Ş","scedil":"ş","Scirc":"Ŝ","scirc":"ŝ","scnap":"⪺","scnE":"⪶","scnsim":"⋩","scpolint":"⨓","scsim":"≿","Scy":"С","scy":"с","sdotb":"⊡","sdot":"⋅","sdote":"⩦","searhk":"⤥","searr":"↘","seArr":"⇘","searrow":"↘","sect":"§","semi":";","seswar":"⤩","setminus":"∖","setmn":"∖","sext":"✶","Sfr":"𝔖","sfr":"𝔰","sfrown":"⌢","sharp":"♯","SHCHcy":"Щ","shchcy":"щ","SHcy":"Ш","shcy":"ш","ShortDownArrow":"↓","ShortLeftArrow":"←","shortmid":"∣","shortparallel":"∥","ShortRightArrow":"→","ShortUpArrow":"↑","shy":"­","Sigma":"Σ","sigma":"σ","sigmaf":"ς","sigmav":"ς","sim":"∼","simdot":"⩪","sime":"≃","simeq":"≃","simg":"⪞","simgE":"⪠","siml":"⪝","simlE":"⪟","simne":"≆","simplus":"⨤","simrarr":"⥲","slarr":"←","SmallCircle":"∘","smallsetminus":"∖","smashp":"⨳","smeparsl":"⧤","smid":"∣","smile":"⌣","smt":"⪪","smte":"⪬","smtes":"⪬︀","SOFTcy":"Ь","softcy":"ь","solbar":"⌿","solb":"⧄","sol":"/","Sopf":"𝕊","sopf":"𝕤","spades":"♠","spadesuit":"♠","spar":"∥","sqcap":"⊓","sqcaps":"⊓︀","sqcup":"⊔","sqcups":"⊔︀","Sqrt":"√","sqsub":"⊏","sqsube":"⊑","sqsubset":"⊏","sqsubseteq":"⊑","sqsup":"⊐","sqsupe":"⊒","sqsupset":"⊐","sqsupseteq":"⊒","square":"□","Square":"□","SquareIntersection":"⊓","SquareSubset":"⊏","SquareSubsetEqual":"⊑","SquareSuperset":"⊐","SquareSupersetEqual":"⊒","SquareUnion":"⊔","squarf":"▪","squ":"□","squf":"▪","srarr":"→","Sscr":"𝒮","sscr":"𝓈","ssetmn":"∖","ssmile":"⌣","sstarf":"⋆","Star":"⋆","star":"☆","starf":"★","straightepsilon":"ϵ","straightphi":"ϕ","strns":"¯","sub":"⊂","Sub":"⋐","subdot":"⪽","subE":"⫅","sube":"⊆","subedot":"⫃","submult":"⫁","subnE":"⫋","subne":"⊊","subplus":"⪿","subrarr":"⥹","subset":"⊂","Subset":"⋐","subseteq":"⊆","subseteqq":"⫅","SubsetEqual":"⊆","subsetneq":"⊊","subsetneqq":"⫋","subsim":"⫇","subsub":"⫕","subsup":"⫓","succapprox":"⪸","succ":"≻","succcurlyeq":"≽","Succeeds":"≻","SucceedsEqual":"⪰","SucceedsSlantEqual":"≽","SucceedsTilde":"≿","succeq":"⪰","succnapprox":"⪺","succneqq":"⪶","succnsim":"⋩","succsim":"≿","SuchThat":"∋","sum":"∑","Sum":"∑","sung":"♪","sup1":"¹","sup2":"²","sup3":"³","sup":"⊃","Sup":"⋑","supdot":"⪾","supdsub":"⫘","supE":"⫆","supe":"⊇","supedot":"⫄","Superset":"⊃","SupersetEqual":"⊇","suphsol":"⟉","suphsub":"⫗","suplarr":"⥻","supmult":"⫂","supnE":"⫌","supne":"⊋","supplus":"⫀","supset":"⊃","Supset":"⋑","supseteq":"⊇","supseteqq":"⫆","supsetneq":"⊋","supsetneqq":"⫌","supsim":"⫈","supsub":"⫔","supsup":"⫖","swarhk":"⤦","swarr":"↙","swArr":"⇙","swarrow":"↙","swnwar":"⤪","szlig":"ß","Tab":"\t","target":"⌖","Tau":"Τ","tau":"τ","tbrk":"⎴","Tcaron":"Ť","tcaron":"ť","Tcedil":"Ţ","tcedil":"ţ","Tcy":"Т","tcy":"т","tdot":"⃛","telrec":"⌕","Tfr":"𝔗","tfr":"𝔱","there4":"∴","therefore":"∴","Therefore":"∴","Theta":"Θ","theta":"θ","thetasym":"ϑ","thetav":"ϑ","thickapprox":"≈","thicksim":"∼","ThickSpace":"  ","ThinSpace":" ","thinsp":" ","thkap":"≈","thksim":"∼","THORN":"Þ","thorn":"þ","tilde":"˜","Tilde":"∼","TildeEqual":"≃","TildeFullEqual":"≅","TildeTilde":"≈","timesbar":"⨱","timesb":"⊠","times":"×","timesd":"⨰","tint":"∭","toea":"⤨","topbot":"⌶","topcir":"⫱","top":"⊤","Topf":"𝕋","topf":"𝕥","topfork":"⫚","tosa":"⤩","tprime":"‴","trade":"™","TRADE":"™","triangle":"▵","triangledown":"▿","triangleleft":"◃","trianglelefteq":"⊴","triangleq":"≜","triangleright":"▹","trianglerighteq":"⊵","tridot":"◬","trie":"≜","triminus":"⨺","TripleDot":"⃛","triplus":"⨹","trisb":"⧍","tritime":"⨻","trpezium":"⏢","Tscr":"𝒯","tscr":"𝓉","TScy":"Ц","tscy":"ц","TSHcy":"Ћ","tshcy":"ћ","Tstrok":"Ŧ","tstrok":"ŧ","twixt":"≬","twoheadleftarrow":"↞","twoheadrightarrow":"↠","Uacute":"Ú","uacute":"ú","uarr":"↑","Uarr":"↟","uArr":"⇑","Uarrocir":"⥉","Ubrcy":"Ў","ubrcy":"ў","Ubreve":"Ŭ","ubreve":"ŭ","Ucirc":"Û","ucirc":"û","Ucy":"У","ucy":"у","udarr":"⇅","Udblac":"Ű","udblac":"ű","udhar":"⥮","ufisht":"⥾","Ufr":"𝔘","ufr":"𝔲","Ugrave":"Ù","ugrave":"ù","uHar":"⥣","uharl":"↿","uharr":"↾","uhblk":"▀","ulcorn":"⌜","ulcorner":"⌜","ulcrop":"⌏","ultri":"◸","Umacr":"Ū","umacr":"ū","uml":"¨","UnderBar":"_","UnderBrace":"⏟","UnderBracket":"⎵","UnderParenthesis":"⏝","Union":"⋃","UnionPlus":"⊎","Uogon":"Ų","uogon":"ų","Uopf":"𝕌","uopf":"𝕦","UpArrowBar":"⤒","uparrow":"↑","UpArrow":"↑","Uparrow":"⇑","UpArrowDownArrow":"⇅","updownarrow":"↕","UpDownArrow":"↕","Updownarrow":"⇕","UpEquilibrium":"⥮","upharpoonleft":"↿","upharpoonright":"↾","uplus":"⊎","UpperLeftArrow":"↖","UpperRightArrow":"↗","upsi":"υ","Upsi":"ϒ","upsih":"ϒ","Upsilon":"Υ","upsilon":"υ","UpTeeArrow":"↥","UpTee":"⊥","upuparrows":"⇈","urcorn":"⌝","urcorner":"⌝","urcrop":"⌎","Uring":"Ů","uring":"ů","urtri":"◹","Uscr":"𝒰","uscr":"𝓊","utdot":"⋰","Utilde":"Ũ","utilde":"ũ","utri":"▵","utrif":"▴","uuarr":"⇈","Uuml":"Ü","uuml":"ü","uwangle":"⦧","vangrt":"⦜","varepsilon":"ϵ","varkappa":"ϰ","varnothing":"∅","varphi":"ϕ","varpi":"ϖ","varpropto":"∝","varr":"↕","vArr":"⇕","varrho":"ϱ","varsigma":"ς","varsubsetneq":"⊊︀","varsubsetneqq":"⫋︀","varsupsetneq":"⊋︀","varsupsetneqq":"⫌︀","vartheta":"ϑ","vartriangleleft":"⊲","vartriangleright":"⊳","vBar":"⫨","Vbar":"⫫","vBarv":"⫩","Vcy":"В","vcy":"в","vdash":"⊢","vDash":"⊨","Vdash":"⊩","VDash":"⊫","Vdashl":"⫦","veebar":"⊻","vee":"∨","Vee":"⋁","veeeq":"≚","vellip":"⋮","verbar":"|","Verbar":"‖","vert":"|","Vert":"‖","VerticalBar":"∣","VerticalLine":"|","VerticalSeparator":"❘","VerticalTilde":"≀","VeryThinSpace":" ","Vfr":"𝔙","vfr":"𝔳","vltri":"⊲","vnsub":"⊂⃒","vnsup":"⊃⃒","Vopf":"𝕍","vopf":"𝕧","vprop":"∝","vrtri":"⊳","Vscr":"𝒱","vscr":"𝓋","vsubnE":"⫋︀","vsubne":"⊊︀","vsupnE":"⫌︀","vsupne":"⊋︀","Vvdash":"⊪","vzigzag":"⦚","Wcirc":"Ŵ","wcirc":"ŵ","wedbar":"⩟","wedge":"∧","Wedge":"⋀","wedgeq":"≙","weierp":"℘","Wfr":"𝔚","wfr":"𝔴","Wopf":"𝕎","wopf":"𝕨","wp":"℘","wr":"≀","wreath":"≀","Wscr":"𝒲","wscr":"𝓌","xcap":"⋂","xcirc":"◯","xcup":"⋃","xdtri":"▽","Xfr":"𝔛","xfr":"𝔵","xharr":"⟷","xhArr":"⟺","Xi":"Ξ","xi":"ξ","xlarr":"⟵","xlArr":"⟸","xmap":"⟼","xnis":"⋻","xodot":"⨀","Xopf":"𝕏","xopf":"𝕩","xoplus":"⨁","xotime":"⨂","xrarr":"⟶","xrArr":"⟹","Xscr":"𝒳","xscr":"𝓍","xsqcup":"⨆","xuplus":"⨄","xutri":"△","xvee":"⋁","xwedge":"⋀","Yacute":"Ý","yacute":"ý","YAcy":"Я","yacy":"я","Ycirc":"Ŷ","ycirc":"ŷ","Ycy":"Ы","ycy":"ы","yen":"¥","Yfr":"𝔜","yfr":"𝔶","YIcy":"Ї","yicy":"ї","Yopf":"𝕐","yopf":"𝕪","Yscr":"𝒴","yscr":"𝓎","YUcy":"Ю","yucy":"ю","yuml":"ÿ","Yuml":"Ÿ","Zacute":"Ź","zacute":"ź","Zcaron":"Ž","zcaron":"ž","Zcy":"З","zcy":"з","Zdot":"Ż","zdot":"ż","zeetrf":"ℨ","ZeroWidthSpace":"​","Zeta":"Ζ","zeta":"ζ","zfr":"𝔷","Zfr":"ℨ","ZHcy":"Ж","zhcy":"ж","zigrarr":"⇝","zopf":"𝕫","Zopf":"ℤ","Zscr":"𝒵","zscr":"𝓏","zwj":"‍","zwnj":"‌"}; -const del = (self, node) => { - if (node) { - const hit = node.value - if (self[DISPOSE]) - self[DISPOSE](hit.key, hit.value) +/***/ }), - self[LENGTH] -= hit.length - self[CACHE].delete(hit.key) - self[LRU_LIST].removeNode(node) - } -} +/***/ "./node_modules/microdata-rdf-streaming-parser/node_modules/entities/lib/maps/legacy.json": +/*!************************************************************************************************!*\ + !*** ./node_modules/microdata-rdf-streaming-parser/node_modules/entities/lib/maps/legacy.json ***! + \************************************************************************************************/ +/*! exports provided: Aacute, aacute, Acirc, acirc, acute, AElig, aelig, Agrave, agrave, amp, AMP, Aring, aring, Atilde, atilde, Auml, auml, brvbar, Ccedil, ccedil, cedil, cent, copy, COPY, curren, deg, divide, Eacute, eacute, Ecirc, ecirc, Egrave, egrave, ETH, eth, Euml, euml, frac12, frac14, frac34, gt, GT, Iacute, iacute, Icirc, icirc, iexcl, Igrave, igrave, iquest, Iuml, iuml, laquo, lt, LT, macr, micro, middot, nbsp, not, Ntilde, ntilde, Oacute, oacute, Ocirc, ocirc, Ograve, ograve, ordf, ordm, Oslash, oslash, Otilde, otilde, Ouml, ouml, para, plusmn, pound, quot, QUOT, raquo, reg, REG, sect, shy, sup1, sup2, sup3, szlig, THORN, thorn, times, Uacute, uacute, Ucirc, ucirc, Ugrave, ugrave, uml, Uuml, uuml, Yacute, yacute, yen, yuml, default */ +/***/ (function(module) { -class Entry { - constructor (key, value, length, now, maxAge) { - this.key = key - this.value = value - this.length = length - this.now = now - this.maxAge = maxAge || 0 - } -} +module.exports = {"Aacute":"Á","aacute":"á","Acirc":"Â","acirc":"â","acute":"´","AElig":"Æ","aelig":"æ","Agrave":"À","agrave":"à","amp":"&","AMP":"&","Aring":"Å","aring":"å","Atilde":"Ã","atilde":"ã","Auml":"Ä","auml":"ä","brvbar":"¦","Ccedil":"Ç","ccedil":"ç","cedil":"¸","cent":"¢","copy":"©","COPY":"©","curren":"¤","deg":"°","divide":"÷","Eacute":"É","eacute":"é","Ecirc":"Ê","ecirc":"ê","Egrave":"È","egrave":"è","ETH":"Ð","eth":"ð","Euml":"Ë","euml":"ë","frac12":"½","frac14":"¼","frac34":"¾","gt":">","GT":">","Iacute":"Í","iacute":"í","Icirc":"Î","icirc":"î","iexcl":"¡","Igrave":"Ì","igrave":"ì","iquest":"¿","Iuml":"Ï","iuml":"ï","laquo":"«","lt":"<","LT":"<","macr":"¯","micro":"µ","middot":"·","nbsp":" ","not":"¬","Ntilde":"Ñ","ntilde":"ñ","Oacute":"Ó","oacute":"ó","Ocirc":"Ô","ocirc":"ô","Ograve":"Ò","ograve":"ò","ordf":"ª","ordm":"º","Oslash":"Ø","oslash":"ø","Otilde":"Õ","otilde":"õ","Ouml":"Ö","ouml":"ö","para":"¶","plusmn":"±","pound":"£","quot":"\"","QUOT":"\"","raquo":"»","reg":"®","REG":"®","sect":"§","shy":"­","sup1":"¹","sup2":"²","sup3":"³","szlig":"ß","THORN":"Þ","thorn":"þ","times":"×","Uacute":"Ú","uacute":"ú","Ucirc":"Û","ucirc":"û","Ugrave":"Ù","ugrave":"ù","uml":"¨","Uuml":"Ü","uuml":"ü","Yacute":"Ý","yacute":"ý","yen":"¥","yuml":"ÿ"}; -const forEachStep = (self, fn, node, thisp) => { - let hit = node.value - if (isStale(self, hit)) { - del(self, node) - if (!self[ALLOW_STALE]) - hit = undefined - } - if (hit) - fn.call(thisp, hit.value, hit.key, self) -} +/***/ }), -module.exports = LRUCache +/***/ "./node_modules/microdata-rdf-streaming-parser/node_modules/entities/lib/maps/xml.json": +/*!*********************************************************************************************!*\ + !*** ./node_modules/microdata-rdf-streaming-parser/node_modules/entities/lib/maps/xml.json ***! + \*********************************************************************************************/ +/*! exports provided: amp, apos, gt, lt, quot, default */ +/***/ (function(module) { +module.exports = {"amp":"&","apos":"'","gt":">","lt":"<","quot":"\""}; /***/ }), -/***/ "./node_modules/microdata-rdf-streaming-parser/index.js": -/*!**************************************************************!*\ - !*** ./node_modules/microdata-rdf-streaming-parser/index.js ***! - \**************************************************************/ +/***/ "./node_modules/microdata-rdf-streaming-parser/node_modules/htmlparser2/lib/FeedHandler.js": +/*!*************************************************************************************************!*\ + !*** ./node_modules/microdata-rdf-streaming-parser/node_modules/htmlparser2/lib/FeedHandler.js ***! + \*************************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; +var __extends = (this && this.__extends) || (function () { + var extendStatics = function (d, b) { + extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; + return extendStatics(d, b); + }; + return function (d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; +})(); var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); @@ -56230,830 +58863,1629 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi if (k2 === undefined) k2 = k; o[k2] = m[k]; })); -var __exportStar = (this && this.__exportStar) || function(m, exports) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); -__exportStar(__webpack_require__(/*! ./lib/propertyhandler/IItemPropertyHandler */ "./node_modules/microdata-rdf-streaming-parser/lib/propertyhandler/IItemPropertyHandler.js"), exports); -__exportStar(__webpack_require__(/*! ./lib/propertyhandler/ItemPropertyHandlerContent */ "./node_modules/microdata-rdf-streaming-parser/lib/propertyhandler/ItemPropertyHandlerContent.js"), exports); -__exportStar(__webpack_require__(/*! ./lib/propertyhandler/ItemPropertyHandlerNumber */ "./node_modules/microdata-rdf-streaming-parser/lib/propertyhandler/ItemPropertyHandlerNumber.js"), exports); -__exportStar(__webpack_require__(/*! ./lib/propertyhandler/ItemPropertyHandlerTime */ "./node_modules/microdata-rdf-streaming-parser/lib/propertyhandler/ItemPropertyHandlerTime.js"), exports); -__exportStar(__webpack_require__(/*! ./lib/propertyhandler/ItemPropertyHandlerUrl */ "./node_modules/microdata-rdf-streaming-parser/lib/propertyhandler/ItemPropertyHandlerUrl.js"), exports); -__exportStar(__webpack_require__(/*! ./lib/IHtmlParseListener */ "./node_modules/microdata-rdf-streaming-parser/lib/IHtmlParseListener.js"), exports); -__exportStar(__webpack_require__(/*! ./lib/IItemScope */ "./node_modules/microdata-rdf-streaming-parser/lib/IItemScope.js"), exports); -__exportStar(__webpack_require__(/*! ./lib/IVocabRegistry */ "./node_modules/microdata-rdf-streaming-parser/lib/IVocabRegistry.js"), exports); -__exportStar(__webpack_require__(/*! ./lib/MicrodataRdfParser */ "./node_modules/microdata-rdf-streaming-parser/lib/MicrodataRdfParser.js"), exports); -__exportStar(__webpack_require__(/*! ./lib/Util */ "./node_modules/microdata-rdf-streaming-parser/lib/Util.js"), exports); -//# sourceMappingURL=index.js.map - -/***/ }), - -/***/ "./node_modules/microdata-rdf-streaming-parser/lib/IHtmlParseListener.js": -/*!*******************************************************************************!*\ - !*** ./node_modules/microdata-rdf-streaming-parser/lib/IHtmlParseListener.js ***! - \*******************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; +exports.parseFeed = exports.FeedHandler = void 0; +var domhandler_1 = __importDefault(__webpack_require__(/*! domhandler */ "./node_modules/domhandler/lib/index.js")); +var DomUtils = __importStar(__webpack_require__(/*! domutils */ "./node_modules/domutils/lib/index.js")); +var Parser_1 = __webpack_require__(/*! ./Parser */ "./node_modules/microdata-rdf-streaming-parser/node_modules/htmlparser2/lib/Parser.js"); +var FeedItemMediaMedium; +(function (FeedItemMediaMedium) { + FeedItemMediaMedium[FeedItemMediaMedium["image"] = 0] = "image"; + FeedItemMediaMedium[FeedItemMediaMedium["audio"] = 1] = "audio"; + FeedItemMediaMedium[FeedItemMediaMedium["video"] = 2] = "video"; + FeedItemMediaMedium[FeedItemMediaMedium["document"] = 3] = "document"; + FeedItemMediaMedium[FeedItemMediaMedium["executable"] = 4] = "executable"; +})(FeedItemMediaMedium || (FeedItemMediaMedium = {})); +var FeedItemMediaExpression; +(function (FeedItemMediaExpression) { + FeedItemMediaExpression[FeedItemMediaExpression["sample"] = 0] = "sample"; + FeedItemMediaExpression[FeedItemMediaExpression["full"] = 1] = "full"; + FeedItemMediaExpression[FeedItemMediaExpression["nonstop"] = 2] = "nonstop"; +})(FeedItemMediaExpression || (FeedItemMediaExpression = {})); +// TODO: Consume data as it is coming in +var FeedHandler = /** @class */ (function (_super) { + __extends(FeedHandler, _super); + /** + * + * @param callback + * @param options + */ + function FeedHandler(callback, options) { + var _this = this; + if (typeof callback === "object") { + callback = undefined; + options = callback; + } + _this = _super.call(this, callback, options) || this; + return _this; + } + FeedHandler.prototype.onend = function () { + var _a, _b; + var feedRoot = getOneElement(isValidFeed, this.dom); + if (!feedRoot) { + this.handleCallback(new Error("couldn't find root of feed")); + return; + } + var feed = {}; + if (feedRoot.name === "feed") { + var childs = feedRoot.children; + feed.type = "atom"; + addConditionally(feed, "id", "id", childs); + addConditionally(feed, "title", "title", childs); + var href = getAttribute("href", getOneElement("link", childs)); + if (href) { + feed.link = href; + } + addConditionally(feed, "description", "subtitle", childs); + var updated = fetch("updated", childs); + if (updated) { + feed.updated = new Date(updated); + } + addConditionally(feed, "author", "email", childs, true); + feed.items = getElements("entry", childs).map(function (item) { + var entry = {}; + var children = item.children; + addConditionally(entry, "id", "id", children); + addConditionally(entry, "title", "title", children); + var href = getAttribute("href", getOneElement("link", children)); + if (href) { + entry.link = href; + } + var description = fetch("summary", children) || fetch("content", children); + if (description) { + entry.description = description; + } + var pubDate = fetch("updated", children); + if (pubDate) { + entry.pubDate = new Date(pubDate); + } + entry.media = getMediaElements(children); + return entry; + }); + } + else { + var childs = (_b = (_a = getOneElement("channel", feedRoot.children)) === null || _a === void 0 ? void 0 : _a.children) !== null && _b !== void 0 ? _b : []; + feed.type = feedRoot.name.substr(0, 3); + feed.id = ""; + addConditionally(feed, "title", "title", childs); + addConditionally(feed, "link", "link", childs); + addConditionally(feed, "description", "description", childs); + var updated = fetch("lastBuildDate", childs); + if (updated) { + feed.updated = new Date(updated); + } + addConditionally(feed, "author", "managingEditor", childs, true); + feed.items = getElements("item", feedRoot.children).map(function (item) { + var entry = {}; + var children = item.children; + addConditionally(entry, "id", "guid", children); + addConditionally(entry, "title", "title", children); + addConditionally(entry, "link", "link", children); + addConditionally(entry, "description", "description", children); + var pubDate = fetch("pubDate", children); + if (pubDate) + entry.pubDate = new Date(pubDate); + entry.media = getMediaElements(children); + return entry; + }); + } + this.feed = feed; + this.handleCallback(null); + }; + return FeedHandler; +}(domhandler_1.default)); +exports.FeedHandler = FeedHandler; +function getMediaElements(where) { + return getElements("media:content", where).map(function (elem) { + var media = { + medium: elem.attribs.medium, + isDefault: !!elem.attribs.isDefault, + }; + if (elem.attribs.url) { + media.url = elem.attribs.url; + } + if (elem.attribs.fileSize) { + media.fileSize = parseInt(elem.attribs.fileSize, 10); + } + if (elem.attribs.type) { + media.type = elem.attribs.type; + } + if (elem.attribs.expression) { + media.expression = elem.attribs + .expression; + } + if (elem.attribs.bitrate) { + media.bitrate = parseInt(elem.attribs.bitrate, 10); + } + if (elem.attribs.framerate) { + media.framerate = parseInt(elem.attribs.framerate, 10); + } + if (elem.attribs.samplingrate) { + media.samplingrate = parseInt(elem.attribs.samplingrate, 10); + } + if (elem.attribs.channels) { + media.channels = parseInt(elem.attribs.channels, 10); + } + if (elem.attribs.duration) { + media.duration = parseInt(elem.attribs.duration, 10); + } + if (elem.attribs.height) { + media.height = parseInt(elem.attribs.height, 10); + } + if (elem.attribs.width) { + media.width = parseInt(elem.attribs.width, 10); + } + if (elem.attribs.lang) { + media.lang = elem.attribs.lang; + } + return media; + }); +} +function getElements(tagName, where) { + return DomUtils.getElementsByTagName(tagName, where, true); +} +function getOneElement(tagName, node) { + return DomUtils.getElementsByTagName(tagName, node, true, 1)[0]; +} +function fetch(tagName, where, recurse) { + if (recurse === void 0) { recurse = false; } + return DomUtils.getText(DomUtils.getElementsByTagName(tagName, where, recurse, 1)).trim(); +} +function getAttribute(name, elem) { + if (!elem) { + return null; + } + var attribs = elem.attribs; + return attribs[name]; +} +function addConditionally(obj, prop, what, where, recurse) { + if (recurse === void 0) { recurse = false; } + var tmp = fetch(what, where, recurse); + if (tmp) + obj[prop] = tmp; +} +function isValidFeed(value) { + return value === "rss" || value === "feed" || value === "rdf:RDF"; +} +/** + * Parse a feed. + * + * @param feed The feed that should be parsed, as a string. + * @param options Optionally, options for parsing. When using this option, you should set `xmlMode` to `true`. + */ +function parseFeed(feed, options) { + if (options === void 0) { options = { xmlMode: true }; } + var handler = new FeedHandler(options); + new Parser_1.Parser(handler, options).end(feed); + return handler.feed; +} +exports.parseFeed = parseFeed; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=IHtmlParseListener.js.map /***/ }), -/***/ "./node_modules/microdata-rdf-streaming-parser/lib/IItemScope.js": -/*!***********************************************************************!*\ - !*** ./node_modules/microdata-rdf-streaming-parser/lib/IItemScope.js ***! - \***********************************************************************/ +/***/ "./node_modules/microdata-rdf-streaming-parser/node_modules/htmlparser2/lib/Parser.js": +/*!********************************************************************************************!*\ + !*** ./node_modules/microdata-rdf-streaming-parser/node_modules/htmlparser2/lib/Parser.js ***! + \********************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=IItemScope.js.map - -/***/ }), - -/***/ "./node_modules/microdata-rdf-streaming-parser/lib/IVocabRegistry.js": -/*!***************************************************************************!*\ - !*** ./node_modules/microdata-rdf-streaming-parser/lib/IVocabRegistry.js ***! - \***************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; +exports.Parser = void 0; +var Tokenizer_1 = __importDefault(__webpack_require__(/*! ./Tokenizer */ "./node_modules/microdata-rdf-streaming-parser/node_modules/htmlparser2/lib/Tokenizer.js")); +var formTags = new Set([ + "input", + "option", + "optgroup", + "select", + "button", + "datalist", + "textarea", +]); +var pTag = new Set(["p"]); +var openImpliesClose = { + tr: new Set(["tr", "th", "td"]), + th: new Set(["th"]), + td: new Set(["thead", "th", "td"]), + body: new Set(["head", "link", "script"]), + li: new Set(["li"]), + p: pTag, + h1: pTag, + h2: pTag, + h3: pTag, + h4: pTag, + h5: pTag, + h6: pTag, + select: formTags, + input: formTags, + output: formTags, + button: formTags, + datalist: formTags, + textarea: formTags, + option: new Set(["option"]), + optgroup: new Set(["optgroup", "option"]), + dd: new Set(["dt", "dd"]), + dt: new Set(["dt", "dd"]), + address: pTag, + article: pTag, + aside: pTag, + blockquote: pTag, + details: pTag, + div: pTag, + dl: pTag, + fieldset: pTag, + figcaption: pTag, + figure: pTag, + footer: pTag, + form: pTag, + header: pTag, + hr: pTag, + main: pTag, + nav: pTag, + ol: pTag, + pre: pTag, + section: pTag, + table: pTag, + ul: pTag, + rt: new Set(["rt", "rp"]), + rp: new Set(["rt", "rp"]), + tbody: new Set(["thead", "tbody"]), + tfoot: new Set(["thead", "tbody"]), +}; +var voidElements = new Set([ + "area", + "base", + "basefont", + "br", + "col", + "command", + "embed", + "frame", + "hr", + "img", + "input", + "isindex", + "keygen", + "link", + "meta", + "param", + "source", + "track", + "wbr", +]); +var foreignContextElements = new Set(["math", "svg"]); +var htmlIntegrationElements = new Set([ + "mi", + "mo", + "mn", + "ms", + "mtext", + "annotation-xml", + "foreignObject", + "desc", + "title", +]); +var reNameEnd = /\s|\//; +var Parser = /** @class */ (function () { + function Parser(cbs, options) { + if (options === void 0) { options = {}; } + var _a, _b, _c, _d, _e; + /** The start index of the last event. */ + this.startIndex = 0; + /** The end index of the last event. */ + this.endIndex = null; + this.tagname = ""; + this.attribname = ""; + this.attribvalue = ""; + this.attribs = null; + this.stack = []; + this.foreignContext = []; + this.options = options; + this.cbs = cbs !== null && cbs !== void 0 ? cbs : {}; + this.lowerCaseTagNames = (_a = options.lowerCaseTags) !== null && _a !== void 0 ? _a : !options.xmlMode; + this.lowerCaseAttributeNames = + (_b = options.lowerCaseAttributeNames) !== null && _b !== void 0 ? _b : !options.xmlMode; + this.tokenizer = new ((_c = options.Tokenizer) !== null && _c !== void 0 ? _c : Tokenizer_1.default)(this.options, this); + (_e = (_d = this.cbs).onparserinit) === null || _e === void 0 ? void 0 : _e.call(_d, this); + } + Parser.prototype.updatePosition = function (initialOffset) { + if (this.endIndex === null) { + if (this.tokenizer.sectionStart <= initialOffset) { + this.startIndex = 0; + } + else { + this.startIndex = this.tokenizer.sectionStart - initialOffset; + } + } + else { + this.startIndex = this.endIndex + 1; + } + this.endIndex = this.tokenizer.getAbsoluteIndex(); + }; + // Tokenizer event handlers + Parser.prototype.ontext = function (data) { + var _a, _b; + this.updatePosition(1); + this.endIndex--; + (_b = (_a = this.cbs).ontext) === null || _b === void 0 ? void 0 : _b.call(_a, data); + }; + Parser.prototype.onopentagname = function (name) { + var _a, _b; + if (this.lowerCaseTagNames) { + name = name.toLowerCase(); + } + this.tagname = name; + if (!this.options.xmlMode && + Object.prototype.hasOwnProperty.call(openImpliesClose, name)) { + var el = void 0; + while (this.stack.length > 0 && + openImpliesClose[name].has((el = this.stack[this.stack.length - 1]))) { + this.onclosetag(el); + } + } + if (this.options.xmlMode || !voidElements.has(name)) { + this.stack.push(name); + if (foreignContextElements.has(name)) { + this.foreignContext.push(true); + } + else if (htmlIntegrationElements.has(name)) { + this.foreignContext.push(false); + } + } + (_b = (_a = this.cbs).onopentagname) === null || _b === void 0 ? void 0 : _b.call(_a, name); + if (this.cbs.onopentag) + this.attribs = {}; + }; + Parser.prototype.onopentagend = function () { + var _a, _b; + this.updatePosition(1); + if (this.attribs) { + (_b = (_a = this.cbs).onopentag) === null || _b === void 0 ? void 0 : _b.call(_a, this.tagname, this.attribs); + this.attribs = null; + } + if (!this.options.xmlMode && + this.cbs.onclosetag && + voidElements.has(this.tagname)) { + this.cbs.onclosetag(this.tagname); + } + this.tagname = ""; + }; + Parser.prototype.onclosetag = function (name) { + this.updatePosition(1); + if (this.lowerCaseTagNames) { + name = name.toLowerCase(); + } + if (foreignContextElements.has(name) || + htmlIntegrationElements.has(name)) { + this.foreignContext.pop(); + } + if (this.stack.length && + (this.options.xmlMode || !voidElements.has(name))) { + var pos = this.stack.lastIndexOf(name); + if (pos !== -1) { + if (this.cbs.onclosetag) { + pos = this.stack.length - pos; + while (pos--) { + // We know the stack has sufficient elements. + this.cbs.onclosetag(this.stack.pop()); + } + } + else + this.stack.length = pos; + } + else if (name === "p" && !this.options.xmlMode) { + this.onopentagname(name); + this.closeCurrentTag(); + } + } + else if (!this.options.xmlMode && (name === "br" || name === "p")) { + this.onopentagname(name); + this.closeCurrentTag(); + } + }; + Parser.prototype.onselfclosingtag = function () { + if (this.options.xmlMode || + this.options.recognizeSelfClosing || + this.foreignContext[this.foreignContext.length - 1]) { + this.closeCurrentTag(); + } + else { + this.onopentagend(); + } + }; + Parser.prototype.closeCurrentTag = function () { + var _a, _b; + var name = this.tagname; + this.onopentagend(); + /* + * Self-closing tags will be on the top of the stack + * (cheaper check than in onclosetag) + */ + if (this.stack[this.stack.length - 1] === name) { + (_b = (_a = this.cbs).onclosetag) === null || _b === void 0 ? void 0 : _b.call(_a, name); + this.stack.pop(); + } + }; + Parser.prototype.onattribname = function (name) { + if (this.lowerCaseAttributeNames) { + name = name.toLowerCase(); + } + this.attribname = name; + }; + Parser.prototype.onattribdata = function (value) { + this.attribvalue += value; + }; + Parser.prototype.onattribend = function (quote) { + var _a, _b; + (_b = (_a = this.cbs).onattribute) === null || _b === void 0 ? void 0 : _b.call(_a, this.attribname, this.attribvalue, quote); + if (this.attribs && + !Object.prototype.hasOwnProperty.call(this.attribs, this.attribname)) { + this.attribs[this.attribname] = this.attribvalue; + } + this.attribname = ""; + this.attribvalue = ""; + }; + Parser.prototype.getInstructionName = function (value) { + var idx = value.search(reNameEnd); + var name = idx < 0 ? value : value.substr(0, idx); + if (this.lowerCaseTagNames) { + name = name.toLowerCase(); + } + return name; + }; + Parser.prototype.ondeclaration = function (value) { + if (this.cbs.onprocessinginstruction) { + var name_1 = this.getInstructionName(value); + this.cbs.onprocessinginstruction("!" + name_1, "!" + value); + } + }; + Parser.prototype.onprocessinginstruction = function (value) { + if (this.cbs.onprocessinginstruction) { + var name_2 = this.getInstructionName(value); + this.cbs.onprocessinginstruction("?" + name_2, "?" + value); + } + }; + Parser.prototype.oncomment = function (value) { + var _a, _b, _c, _d; + this.updatePosition(4); + (_b = (_a = this.cbs).oncomment) === null || _b === void 0 ? void 0 : _b.call(_a, value); + (_d = (_c = this.cbs).oncommentend) === null || _d === void 0 ? void 0 : _d.call(_c); + }; + Parser.prototype.oncdata = function (value) { + var _a, _b, _c, _d, _e, _f; + this.updatePosition(1); + if (this.options.xmlMode || this.options.recognizeCDATA) { + (_b = (_a = this.cbs).oncdatastart) === null || _b === void 0 ? void 0 : _b.call(_a); + (_d = (_c = this.cbs).ontext) === null || _d === void 0 ? void 0 : _d.call(_c, value); + (_f = (_e = this.cbs).oncdataend) === null || _f === void 0 ? void 0 : _f.call(_e); + } + else { + this.oncomment("[CDATA[" + value + "]]"); + } + }; + Parser.prototype.onerror = function (err) { + var _a, _b; + (_b = (_a = this.cbs).onerror) === null || _b === void 0 ? void 0 : _b.call(_a, err); + }; + Parser.prototype.onend = function () { + var _a, _b; + if (this.cbs.onclosetag) { + for (var i = this.stack.length; i > 0; this.cbs.onclosetag(this.stack[--i])) + ; + } + (_b = (_a = this.cbs).onend) === null || _b === void 0 ? void 0 : _b.call(_a); + }; + /** + * Resets the parser to a blank state, ready to parse a new HTML document + */ + Parser.prototype.reset = function () { + var _a, _b, _c, _d; + (_b = (_a = this.cbs).onreset) === null || _b === void 0 ? void 0 : _b.call(_a); + this.tokenizer.reset(); + this.tagname = ""; + this.attribname = ""; + this.attribs = null; + this.stack = []; + (_d = (_c = this.cbs).onparserinit) === null || _d === void 0 ? void 0 : _d.call(_c, this); + }; + /** + * Resets the parser, then parses a complete document and + * pushes it to the handler. + * + * @param data Document to parse. + */ + Parser.prototype.parseComplete = function (data) { + this.reset(); + this.end(data); + }; + /** + * Parses a chunk of data and calls the corresponding callbacks. + * + * @param chunk Chunk to parse. + */ + Parser.prototype.write = function (chunk) { + this.tokenizer.write(chunk); + }; + /** + * Parses the end of the buffer and clears the stack, calls onend. + * + * @param chunk Optional final chunk to parse. + */ + Parser.prototype.end = function (chunk) { + this.tokenizer.end(chunk); + }; + /** + * Pauses parsing. The parser won't emit events until `resume` is called. + */ + Parser.prototype.pause = function () { + this.tokenizer.pause(); + }; + /** + * Resumes parsing after `pause` was called. + */ + Parser.prototype.resume = function () { + this.tokenizer.resume(); + }; + /** + * Alias of `write`, for backwards compatibility. + * + * @param chunk Chunk to parse. + * @deprecated + */ + Parser.prototype.parseChunk = function (chunk) { + this.write(chunk); + }; + /** + * Alias of `end`, for backwards compatibility. + * + * @param chunk Optional final chunk to parse. + * @deprecated + */ + Parser.prototype.done = function (chunk) { + this.end(chunk); + }; + return Parser; +}()); +exports.Parser = Parser; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=IVocabRegistry.js.map /***/ }), -/***/ "./node_modules/microdata-rdf-streaming-parser/lib/MicrodataRdfParser.js": -/*!*******************************************************************************!*\ - !*** ./node_modules/microdata-rdf-streaming-parser/lib/MicrodataRdfParser.js ***! - \*******************************************************************************/ +/***/ "./node_modules/microdata-rdf-streaming-parser/node_modules/htmlparser2/lib/Tokenizer.js": +/*!***********************************************************************************************!*\ + !*** ./node_modules/microdata-rdf-streaming-parser/node_modules/htmlparser2/lib/Tokenizer.js ***! + \***********************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); -exports.MicrodataRdfParser = void 0; -const stream_1 = __webpack_require__(/*! stream */ "./node_modules/stream-browserify/index.js"); -const htmlparser2_1 = __webpack_require__(/*! htmlparser2 */ "./node_modules/htmlparser2/lib/index.js"); -const ItemPropertyHandlerContent_1 = __webpack_require__(/*! ./propertyhandler/ItemPropertyHandlerContent */ "./node_modules/microdata-rdf-streaming-parser/lib/propertyhandler/ItemPropertyHandlerContent.js"); -const ItemPropertyHandlerNumber_1 = __webpack_require__(/*! ./propertyhandler/ItemPropertyHandlerNumber */ "./node_modules/microdata-rdf-streaming-parser/lib/propertyhandler/ItemPropertyHandlerNumber.js"); -const ItemPropertyHandlerTime_1 = __webpack_require__(/*! ./propertyhandler/ItemPropertyHandlerTime */ "./node_modules/microdata-rdf-streaming-parser/lib/propertyhandler/ItemPropertyHandlerTime.js"); -const ItemPropertyHandlerUrl_1 = __webpack_require__(/*! ./propertyhandler/ItemPropertyHandlerUrl */ "./node_modules/microdata-rdf-streaming-parser/lib/propertyhandler/ItemPropertyHandlerUrl.js"); -const Util_1 = __webpack_require__(/*! ./Util */ "./node_modules/microdata-rdf-streaming-parser/lib/Util.js"); -const VOCAB_REGISTRY_DEFAULT = __webpack_require__(/*! ./vocab-registry-default.json */ "./node_modules/microdata-rdf-streaming-parser/lib/vocab-registry-default.json"); -/** - * A stream transformer that parses Microdata (text) streams to an {@link RDF.Stream}. - */ -class MicrodataRdfParser extends stream_1.Transform { - constructor(options) { - super({ readableObjectMode: true }); - // Stacks, where the key is the current depth. - this.itemScopeStack = []; - this.textBufferStack = []; - // Variables for managing itemrefs. - this.isEmittingReferences = false; - this.pendingItemRefsDomain = {}; - this.pendingItemRefsRangeFinalized = {}; - // eslint-disable-next-line lines-between-class-members - this.pendingItemRefsRangeCollecting = {}; - options = options || {}; - this.options = options; - this.util = new Util_1.Util(options.dataFactory, options.baseIRI); - this.defaultGraph = options.defaultGraph || this.util.dataFactory.defaultGraph(); - this.htmlParseListener = options.htmlParseListener; - this.vocabRegistry = options.vocabRegistry || VOCAB_REGISTRY_DEFAULT; - this.parser = this.initializeParser(!!options.xmlMode); - } - /** - * Parses the given text stream into a quad stream. - * @param {NodeJS.EventEmitter} stream A text stream. - * @return {RDF.Stream} A quad stream. - */ - import(stream) { - const output = new stream_1.PassThrough({ readableObjectMode: true }); - stream.on('error', (error) => parsed.emit('error', error)); - stream.on('data', (data) => output.push(data)); - stream.on('end', () => output.push(null)); - const parsed = output.pipe(new MicrodataRdfParser(this.options)); - return parsed; - } - _transform(chunk, encoding, callback) { - this.parser.write(chunk); - callback(); +var decode_codepoint_1 = __importDefault(__webpack_require__(/*! entities/lib/decode_codepoint */ "./node_modules/microdata-rdf-streaming-parser/node_modules/entities/lib/decode_codepoint.js")); +var entities_json_1 = __importDefault(__webpack_require__(/*! entities/lib/maps/entities.json */ "./node_modules/microdata-rdf-streaming-parser/node_modules/entities/lib/maps/entities.json")); +var legacy_json_1 = __importDefault(__webpack_require__(/*! entities/lib/maps/legacy.json */ "./node_modules/microdata-rdf-streaming-parser/node_modules/entities/lib/maps/legacy.json")); +var xml_json_1 = __importDefault(__webpack_require__(/*! entities/lib/maps/xml.json */ "./node_modules/microdata-rdf-streaming-parser/node_modules/entities/lib/maps/xml.json")); +function whitespace(c) { + return c === " " || c === "\n" || c === "\t" || c === "\f" || c === "\r"; +} +function isASCIIAlpha(c) { + return (c >= "a" && c <= "z") || (c >= "A" && c <= "Z"); +} +function ifElseState(upper, SUCCESS, FAILURE) { + var lower = upper.toLowerCase(); + if (upper === lower) { + return function (t, c) { + if (c === lower) { + t._state = SUCCESS; + } + else { + t._state = FAILURE; + t._index--; + } + }; } - _flush(callback) { - this.parser.end(); - callback(); + return function (t, c) { + if (c === lower || c === upper) { + t._state = SUCCESS; + } + else { + t._state = FAILURE; + t._index--; + } + }; +} +function consumeSpecialNameChar(upper, NEXT_STATE) { + var lower = upper.toLowerCase(); + return function (t, c) { + if (c === lower || c === upper) { + t._state = NEXT_STATE; + } + else { + t._state = 3 /* InTagName */; + t._index--; // Consume the token again + } + }; +} +var stateBeforeCdata1 = ifElseState("C", 24 /* BeforeCdata2 */, 16 /* InDeclaration */); +var stateBeforeCdata2 = ifElseState("D", 25 /* BeforeCdata3 */, 16 /* InDeclaration */); +var stateBeforeCdata3 = ifElseState("A", 26 /* BeforeCdata4 */, 16 /* InDeclaration */); +var stateBeforeCdata4 = ifElseState("T", 27 /* BeforeCdata5 */, 16 /* InDeclaration */); +var stateBeforeCdata5 = ifElseState("A", 28 /* BeforeCdata6 */, 16 /* InDeclaration */); +var stateBeforeScript1 = consumeSpecialNameChar("R", 35 /* BeforeScript2 */); +var stateBeforeScript2 = consumeSpecialNameChar("I", 36 /* BeforeScript3 */); +var stateBeforeScript3 = consumeSpecialNameChar("P", 37 /* BeforeScript4 */); +var stateBeforeScript4 = consumeSpecialNameChar("T", 38 /* BeforeScript5 */); +var stateAfterScript1 = ifElseState("R", 40 /* AfterScript2 */, 1 /* Text */); +var stateAfterScript2 = ifElseState("I", 41 /* AfterScript3 */, 1 /* Text */); +var stateAfterScript3 = ifElseState("P", 42 /* AfterScript4 */, 1 /* Text */); +var stateAfterScript4 = ifElseState("T", 43 /* AfterScript5 */, 1 /* Text */); +var stateBeforeStyle1 = consumeSpecialNameChar("Y", 45 /* BeforeStyle2 */); +var stateBeforeStyle2 = consumeSpecialNameChar("L", 46 /* BeforeStyle3 */); +var stateBeforeStyle3 = consumeSpecialNameChar("E", 47 /* BeforeStyle4 */); +var stateAfterStyle1 = ifElseState("Y", 49 /* AfterStyle2 */, 1 /* Text */); +var stateAfterStyle2 = ifElseState("L", 50 /* AfterStyle3 */, 1 /* Text */); +var stateAfterStyle3 = ifElseState("E", 51 /* AfterStyle4 */, 1 /* Text */); +var stateBeforeSpecialT = consumeSpecialNameChar("I", 54 /* BeforeTitle1 */); +var stateBeforeTitle1 = consumeSpecialNameChar("T", 55 /* BeforeTitle2 */); +var stateBeforeTitle2 = consumeSpecialNameChar("L", 56 /* BeforeTitle3 */); +var stateBeforeTitle3 = consumeSpecialNameChar("E", 57 /* BeforeTitle4 */); +var stateAfterSpecialTEnd = ifElseState("I", 58 /* AfterTitle1 */, 1 /* Text */); +var stateAfterTitle1 = ifElseState("T", 59 /* AfterTitle2 */, 1 /* Text */); +var stateAfterTitle2 = ifElseState("L", 60 /* AfterTitle3 */, 1 /* Text */); +var stateAfterTitle3 = ifElseState("E", 61 /* AfterTitle4 */, 1 /* Text */); +var stateBeforeEntity = ifElseState("#", 63 /* BeforeNumericEntity */, 64 /* InNamedEntity */); +var stateBeforeNumericEntity = ifElseState("X", 66 /* InHexEntity */, 65 /* InNumericEntity */); +var Tokenizer = /** @class */ (function () { + function Tokenizer(options, cbs) { + var _a; + /** The current state the tokenizer is in. */ + this._state = 1 /* Text */; + /** The read buffer. */ + this.buffer = ""; + /** The beginning of the section that is currently being read. */ + this.sectionStart = 0; + /** The index within the buffer that we are currently looking at. */ + this._index = 0; + /** + * Data that has already been processed will be removed from the buffer occasionally. + * `_bufferOffset` keeps track of how many characters have been removed, to make sure position information is accurate. + */ + this.bufferOffset = 0; + /** Some behavior, eg. when decoding entities, is done while we are in another state. This keeps track of the other state type. */ + this.baseState = 1 /* Text */; + /** For special parsing behavior inside of script and style tags. */ + this.special = 1 /* None */; + /** Indicates whether the tokenizer has been paused. */ + this.running = true; + /** Indicates whether the tokenizer has finished running / `.end` has been called. */ + this.ended = false; + this.cbs = cbs; + this.xmlMode = !!(options === null || options === void 0 ? void 0 : options.xmlMode); + this.decodeEntities = (_a = options === null || options === void 0 ? void 0 : options.decodeEntities) !== null && _a !== void 0 ? _a : true; } + Tokenizer.prototype.reset = function () { + this._state = 1 /* Text */; + this.buffer = ""; + this.sectionStart = 0; + this._index = 0; + this.bufferOffset = 0; + this.baseState = 1 /* Text */; + this.special = 1 /* None */; + this.running = true; + this.ended = false; + }; + Tokenizer.prototype.write = function (chunk) { + if (this.ended) + this.cbs.onerror(Error(".write() after done!")); + this.buffer += chunk; + this.parse(); + }; + Tokenizer.prototype.end = function (chunk) { + if (this.ended) + this.cbs.onerror(Error(".end() after done!")); + if (chunk) + this.write(chunk); + this.ended = true; + if (this.running) + this.finish(); + }; + Tokenizer.prototype.pause = function () { + this.running = false; + }; + Tokenizer.prototype.resume = function () { + this.running = true; + if (this._index < this.buffer.length) { + this.parse(); + } + if (this.ended) { + this.finish(); + } + }; /** - * Get the current item scope for the current depth. - * This will skip all undefined item scopes. - * @param parent If we should start looking one level higher in the stack. + * The current index within all of the written data. */ - getItemScope(parent) { - let parentTagI = this.itemScopeStack.length - (parent ? 2 : 1); - while (parentTagI > 0 && !this.itemScopeStack[parentTagI]) { - parentTagI--; + Tokenizer.prototype.getAbsoluteIndex = function () { + return this.bufferOffset + this._index; + }; + Tokenizer.prototype.stateText = function (c) { + if (c === "<") { + if (this._index > this.sectionStart) { + this.cbs.ontext(this.getSection()); + } + this._state = 2 /* BeforeTagName */; + this.sectionStart = this._index; } - return this.itemScopeStack[parentTagI]; - } + else if (this.decodeEntities && + c === "&" && + (this.special === 1 /* None */ || this.special === 4 /* Title */)) { + if (this._index > this.sectionStart) { + this.cbs.ontext(this.getSection()); + } + this.baseState = 1 /* Text */; + this._state = 62 /* BeforeEntity */; + this.sectionStart = this._index; + } + }; /** - * Get the current stack depth. + * HTML only allows ASCII alpha characters (a-z and A-Z) at the beginning of a tag name. + * + * XML allows a lot more characters here (@see https://www.w3.org/TR/REC-xml/#NT-NameStartChar). + * We allow anything that wouldn't end the tag. */ - getDepth() { - return this.itemScopeStack.length; - } - onTagOpen(name, attributes) { - if (!this.isEmittingReferences) { - // If the tag has an 'id', start collecting the whole stack in the item reference buffer - if ('id' in attributes) { - const id = attributes.id; - this.pendingItemRefsRangeCollecting[id] = { - events: [], - counter: 0, - ids: [], - }; + Tokenizer.prototype.isTagStartChar = function (c) { + return (isASCIIAlpha(c) || + (this.xmlMode && !whitespace(c) && c !== "/" && c !== ">")); + }; + Tokenizer.prototype.stateBeforeTagName = function (c) { + if (c === "/") { + this._state = 5 /* BeforeClosingTagName */; + } + else if (c === "<") { + this.cbs.ontext(this.getSection()); + this.sectionStart = this._index; + } + else if (c === ">" || + this.special !== 1 /* None */ || + whitespace(c)) { + this._state = 1 /* Text */; + } + else if (c === "!") { + this._state = 15 /* BeforeDeclaration */; + this.sectionStart = this._index + 1; + } + else if (c === "?") { + this._state = 17 /* InProcessingInstruction */; + this.sectionStart = this._index + 1; + } + else if (!this.isTagStartChar(c)) { + this._state = 1 /* Text */; + } + else { + this._state = + !this.xmlMode && (c === "s" || c === "S") + ? 32 /* BeforeSpecialS */ + : !this.xmlMode && (c === "t" || c === "T") + ? 52 /* BeforeSpecialT */ + : 3 /* InTagName */; + this.sectionStart = this._index; + } + }; + Tokenizer.prototype.stateInTagName = function (c) { + if (c === "/" || c === ">" || whitespace(c)) { + this.emitToken("onopentagname"); + this._state = 8 /* BeforeAttributeName */; + this._index--; + } + }; + Tokenizer.prototype.stateBeforeClosingTagName = function (c) { + if (whitespace(c)) { + // Ignore + } + else if (c === ">") { + this._state = 1 /* Text */; + } + else if (this.special !== 1 /* None */) { + if (this.special !== 4 /* Title */ && (c === "s" || c === "S")) { + this._state = 33 /* BeforeSpecialSEnd */; } - // Store this event in all collecting item reference buffers - for (const buffer of Object.values(this.pendingItemRefsRangeCollecting)) { - buffer.counter++; - buffer.events.push({ type: 'open', name, attributes }); + else if (this.special === 4 /* Title */ && + (c === "t" || c === "T")) { + this._state = 53 /* BeforeSpecialTEnd */; + } + else { + this._state = 1 /* Text */; + this._index--; + } + } + else if (!this.isTagStartChar(c)) { + this._state = 20 /* InSpecialComment */; + this.sectionStart = this._index; + } + else { + this._state = 6 /* InClosingTagName */; + this.sectionStart = this._index; + } + }; + Tokenizer.prototype.stateInClosingTagName = function (c) { + if (c === ">" || whitespace(c)) { + this.emitToken("onclosetag"); + this._state = 7 /* AfterClosingTagName */; + this._index--; + } + }; + Tokenizer.prototype.stateAfterClosingTagName = function (c) { + // Skip everything until ">" + if (c === ">") { + this._state = 1 /* Text */; + this.sectionStart = this._index + 1; + } + }; + Tokenizer.prototype.stateBeforeAttributeName = function (c) { + if (c === ">") { + this.cbs.onopentagend(); + this._state = 1 /* Text */; + this.sectionStart = this._index + 1; + } + else if (c === "/") { + this._state = 4 /* InSelfClosingTag */; + } + else if (!whitespace(c)) { + this._state = 9 /* InAttributeName */; + this.sectionStart = this._index; + } + }; + Tokenizer.prototype.stateInSelfClosingTag = function (c) { + if (c === ">") { + this.cbs.onselfclosingtag(); + this._state = 1 /* Text */; + this.sectionStart = this._index + 1; + this.special = 1 /* None */; // Reset special state, in case of self-closing special tags + } + else if (!whitespace(c)) { + this._state = 8 /* BeforeAttributeName */; + this._index--; + } + }; + Tokenizer.prototype.stateInAttributeName = function (c) { + if (c === "=" || c === "/" || c === ">" || whitespace(c)) { + this.cbs.onattribname(this.getSection()); + this.sectionStart = -1; + this._state = 10 /* AfterAttributeName */; + this._index--; + } + }; + Tokenizer.prototype.stateAfterAttributeName = function (c) { + if (c === "=") { + this._state = 11 /* BeforeAttributeValue */; + } + else if (c === "/" || c === ">") { + this.cbs.onattribend(undefined); + this._state = 8 /* BeforeAttributeName */; + this._index--; + } + else if (!whitespace(c)) { + this.cbs.onattribend(undefined); + this._state = 9 /* InAttributeName */; + this.sectionStart = this._index; + } + }; + Tokenizer.prototype.stateBeforeAttributeValue = function (c) { + if (c === '"') { + this._state = 12 /* InAttributeValueDq */; + this.sectionStart = this._index + 1; + } + else if (c === "'") { + this._state = 13 /* InAttributeValueSq */; + this.sectionStart = this._index + 1; + } + else if (!whitespace(c)) { + this._state = 14 /* InAttributeValueNq */; + this.sectionStart = this._index; + this._index--; // Reconsume token + } + }; + Tokenizer.prototype.handleInAttributeValue = function (c, quote) { + if (c === quote) { + this.emitToken("onattribdata"); + this.cbs.onattribend(quote); + this._state = 8 /* BeforeAttributeName */; + } + else if (this.decodeEntities && c === "&") { + this.emitToken("onattribdata"); + this.baseState = this._state; + this._state = 62 /* BeforeEntity */; + this.sectionStart = this._index; + } + }; + Tokenizer.prototype.stateInAttributeValueDoubleQuotes = function (c) { + this.handleInAttributeValue(c, '"'); + }; + Tokenizer.prototype.stateInAttributeValueSingleQuotes = function (c) { + this.handleInAttributeValue(c, "'"); + }; + Tokenizer.prototype.stateInAttributeValueNoQuotes = function (c) { + if (whitespace(c) || c === ">") { + this.emitToken("onattribdata"); + this.cbs.onattribend(null); + this._state = 8 /* BeforeAttributeName */; + this._index--; + } + else if (this.decodeEntities && c === "&") { + this.emitToken("onattribdata"); + this.baseState = this._state; + this._state = 62 /* BeforeEntity */; + this.sectionStart = this._index; + } + }; + Tokenizer.prototype.stateBeforeDeclaration = function (c) { + this._state = + c === "[" + ? 23 /* BeforeCdata1 */ + : c === "-" + ? 18 /* BeforeComment */ + : 16 /* InDeclaration */; + }; + Tokenizer.prototype.stateInDeclaration = function (c) { + if (c === ">") { + this.cbs.ondeclaration(this.getSection()); + this._state = 1 /* Text */; + this.sectionStart = this._index + 1; + } + }; + Tokenizer.prototype.stateInProcessingInstruction = function (c) { + if (c === ">") { + this.cbs.onprocessinginstruction(this.getSection()); + this._state = 1 /* Text */; + this.sectionStart = this._index + 1; + } + }; + Tokenizer.prototype.stateBeforeComment = function (c) { + if (c === "-") { + this._state = 19 /* InComment */; + this.sectionStart = this._index + 1; + } + else { + this._state = 16 /* InDeclaration */; + } + }; + Tokenizer.prototype.stateInComment = function (c) { + if (c === "-") + this._state = 21 /* AfterComment1 */; + }; + Tokenizer.prototype.stateInSpecialComment = function (c) { + if (c === ">") { + this.cbs.oncomment(this.buffer.substring(this.sectionStart, this._index)); + this._state = 1 /* Text */; + this.sectionStart = this._index + 1; + } + }; + Tokenizer.prototype.stateAfterComment1 = function (c) { + if (c === "-") { + this._state = 22 /* AfterComment2 */; + } + else { + this._state = 19 /* InComment */; + } + }; + Tokenizer.prototype.stateAfterComment2 = function (c) { + if (c === ">") { + // Remove 2 trailing chars + this.cbs.oncomment(this.buffer.substring(this.sectionStart, this._index - 2)); + this._state = 1 /* Text */; + this.sectionStart = this._index + 1; + } + else if (c !== "-") { + this._state = 19 /* InComment */; + } + // Else: stay in AFTER_COMMENT_2 (`--->`) + }; + Tokenizer.prototype.stateBeforeCdata6 = function (c) { + if (c === "[") { + this._state = 29 /* InCdata */; + this.sectionStart = this._index + 1; + } + else { + this._state = 16 /* InDeclaration */; + this._index--; + } + }; + Tokenizer.prototype.stateInCdata = function (c) { + if (c === "]") + this._state = 30 /* AfterCdata1 */; + }; + Tokenizer.prototype.stateAfterCdata1 = function (c) { + if (c === "]") + this._state = 31 /* AfterCdata2 */; + else + this._state = 29 /* InCdata */; + }; + Tokenizer.prototype.stateAfterCdata2 = function (c) { + if (c === ">") { + // Remove 2 trailing chars + this.cbs.oncdata(this.buffer.substring(this.sectionStart, this._index - 2)); + this._state = 1 /* Text */; + this.sectionStart = this._index + 1; + } + else if (c !== "]") { + this._state = 29 /* InCdata */; + } + // Else: stay in AFTER_CDATA_2 (`]]]>`) + }; + Tokenizer.prototype.stateBeforeSpecialS = function (c) { + if (c === "c" || c === "C") { + this._state = 34 /* BeforeScript1 */; + } + else if (c === "t" || c === "T") { + this._state = 44 /* BeforeStyle1 */; + } + else { + this._state = 3 /* InTagName */; + this._index--; // Consume the token again + } + }; + Tokenizer.prototype.stateBeforeSpecialSEnd = function (c) { + if (this.special === 2 /* Script */ && (c === "c" || c === "C")) { + this._state = 39 /* AfterScript1 */; + } + else if (this.special === 3 /* Style */ && (c === "t" || c === "T")) { + this._state = 48 /* AfterStyle1 */; + } + else + this._state = 1 /* Text */; + }; + Tokenizer.prototype.stateBeforeSpecialLast = function (c, special) { + if (c === "/" || c === ">" || whitespace(c)) { + this.special = special; + } + this._state = 3 /* InTagName */; + this._index--; // Consume the token again + }; + Tokenizer.prototype.stateAfterSpecialLast = function (c, sectionStartOffset) { + if (c === ">" || whitespace(c)) { + this.special = 1 /* None */; + this._state = 6 /* InClosingTagName */; + this.sectionStart = this._index - sectionStartOffset; + this._index--; // Reconsume the token + } + else + this._state = 1 /* Text */; + }; + // For entities terminated with a semicolon + Tokenizer.prototype.parseFixedEntity = function (map) { + if (map === void 0) { map = this.xmlMode ? xml_json_1.default : entities_json_1.default; } + // Offset = 1 + if (this.sectionStart + 1 < this._index) { + var entity = this.buffer.substring(this.sectionStart + 1, this._index); + if (Object.prototype.hasOwnProperty.call(map, entity)) { + this.emitPartial(map[entity]); + this.sectionStart = this._index + 1; + } + } + }; + // Parses legacy entities (without trailing semicolon) + Tokenizer.prototype.parseLegacyEntity = function () { + var start = this.sectionStart + 1; + // The max length of legacy entities is 6 + var limit = Math.min(this._index - start, 6); + while (limit >= 2) { + // The min length of legacy entities is 2 + var entity = this.buffer.substr(start, limit); + if (Object.prototype.hasOwnProperty.call(legacy_json_1.default, entity)) { + this.emitPartial(legacy_json_1.default[entity]); + this.sectionStart += limit + 1; + return; + } + limit--; + } + }; + Tokenizer.prototype.stateInNamedEntity = function (c) { + if (c === ";") { + this.parseFixedEntity(); + // Retry as legacy entity if entity wasn't parsed + if (this.baseState === 1 /* Text */ && + this.sectionStart + 1 < this._index && + !this.xmlMode) { + this.parseLegacyEntity(); } + this._state = this.baseState; } - // Ensure the text buffer stack is in line with the stack depth - // eslint-disable-next-line unicorn/no-useless-undefined - this.textBufferStack.push(undefined); - // Processing steps based on https://w3c.github.io/microdata-rdf/#rdf-conversion-algorithm - // 1. Determine the current item scope - let itemScope; - if ('itemscope' in attributes) { - // Create a new item scope - let subject; - if (this.emittingReferencesItemScopeIdGenerator) { - subject = this.emittingReferencesItemScopeIdGenerator(); + else if ((c < "0" || c > "9") && !isASCIIAlpha(c)) { + if (this.xmlMode || this.sectionStart + 1 === this._index) { + // Ignore } - else { - subject = 'itemid' in attributes && this.util.createSubject(attributes.itemid) || - this.util.dataFactory.blankNode(); - // Store the genererated id in all collecting item reference buffers - for (const buffer of Object.values(this.pendingItemRefsRangeCollecting)) { - buffer.ids.push(subject); + else if (this.baseState !== 1 /* Text */) { + if (c !== "=") { + // Parse as legacy entity, without allowing additional characters. + this.parseFixedEntity(legacy_json_1.default); } } - itemScope = { subject }; - // If the id was reused from a reference, block any new triples to be generated from it - if (this.isEmittingReferences) { - itemScope.blockEmission = true; - } - // Inherit vocab from parent item scope - const parentItemScope = this.getItemScope(); - if (parentItemScope && parentItemScope.vocab) { - itemScope.vocab = parentItemScope.vocab; + else { + this.parseLegacyEntity(); } - // 2. Push any changes to the item scope to the stack - this.itemScopeStack.push(itemScope); + this._state = this.baseState; + this._index--; } - else { - // Determine the parent item scope - itemScope = this.getItemScope(); - // 2. Push any changes to the item scope to the stack - // eslint-disable-next-line unicorn/no-useless-undefined - this.itemScopeStack.push(undefined); + }; + Tokenizer.prototype.decodeNumericEntity = function (offset, base, strict) { + var sectionStart = this.sectionStart + offset; + if (sectionStart !== this._index) { + // Parse entity + var entity = this.buffer.substring(sectionStart, this._index); + var parsed = parseInt(entity, base); + this.emitPartial(decode_codepoint_1.default(parsed)); + this.sectionStart = strict ? this._index + 1 : this._index; } - // If we have a valid item scope, process the current node - if (itemScope) { - // 3. Handle item types - if ('itemtype' in attributes) { - for (const type of this.util.createVocabIris(attributes.itemtype, itemScope, false)) { - // 4. Vocab identifier is the first valid item - if (!itemScope.vocab) { - // 5. Modify vocab based on registry - itemScope.vocab = this.util.deriveVocab(type.value, this.vocabRegistry); - } - // Emit item type - if (!itemScope.blockEmission) { - this.emitTriple(itemScope.subject, this.util.dataFactory.namedNode(`${Util_1.Util.RDF}type`), type); - } - } - } - // Save language in item scope - if ('lang' in attributes) { - itemScope.language = attributes.lang; - } - if ('xml:lang' in attributes) { - itemScope.language = attributes['xml:lang']; + this._state = this.baseState; + }; + Tokenizer.prototype.stateInNumericEntity = function (c) { + if (c === ";") { + this.decodeNumericEntity(2, 10, true); + } + else if (c < "0" || c > "9") { + if (!this.xmlMode) { + this.decodeNumericEntity(2, 10, false); } - // Handle itemrefs (only if we also had an itemscope) - if ('itemscope' in attributes) { - // If we have an itemref, store it in our domain buffer. - if (!this.isEmittingReferences && 'itemref' in attributes) { - for (const reference of attributes.itemref.split(/\s+/u)) { - if (!(reference in this.pendingItemRefsDomain)) { - this.pendingItemRefsDomain[reference] = []; - } - this.pendingItemRefsDomain[reference].push(itemScope); - this.tryToEmitReferences(reference, itemScope); - } - } + else { + this._state = this.baseState; } + this._index--; } - // 6. Handle item properties - if ('itemprop' in attributes) { - this.handleItemProperties(attributes.itemprop, false, itemScope, name, attributes); - } - // Handle reverse item properties - // https://w3c.github.io/microdata-rdf/#reverse-itemprop - if ('itemprop-reverse' in attributes) { - this.handleItemProperties(attributes['itemprop-reverse'], true, itemScope, name, attributes); + }; + Tokenizer.prototype.stateInHexEntity = function (c) { + if (c === ";") { + this.decodeNumericEntity(3, 16, true); } - } - onText(data) { - // Store this event in all collecting item reference buffers - if (!this.isEmittingReferences) { - for (const buffer of Object.values(this.pendingItemRefsRangeCollecting)) { - buffer.events.push({ type: 'text', data }); + else if ((c < "a" || c > "f") && + (c < "A" || c > "F") && + (c < "0" || c > "9")) { + if (!this.xmlMode) { + this.decodeNumericEntity(3, 16, false); } - } - // Save the text inside all item scopes that need to collect text - for (const textBuffer of this.textBufferStack) { - if (textBuffer) { - textBuffer.push(data); + else { + this._state = this.baseState; } + this._index--; } - } - onTagClose() { - // Store this event in all collecting item reference buffers - if (!this.isEmittingReferences) { - for (const [reference, buffer] of Object.entries(this.pendingItemRefsRangeCollecting)) { - buffer.counter--; - buffer.events.push({ type: 'close' }); - // Once the counter becomes zero, the tag is fully buffered, so we finalize it. - if (buffer.counter === 0) { - this.pendingItemRefsRangeFinalized[reference] = buffer; - delete this.pendingItemRefsRangeCollecting[reference]; - // Try to emit this reference with buffered domain items - this.tryToEmitReferences(reference); - } - } + }; + Tokenizer.prototype.cleanup = function () { + if (this.sectionStart < 0) { + this.buffer = ""; + this.bufferOffset += this._index; + this._index = 0; } - // Emit all triples that were determined in the active tag - const itemScope = this.getItemScope(true); - if (itemScope) { - const depth = this.getDepth(); - if (itemScope.predicates && depth in itemScope.predicates) { - for (const [predicateKey, predicates] of Object.entries(itemScope.predicates[depth])) { - // First check if we have a child item scope, otherwise get the text content - // Safely cast textBufferStack, as it is always defined when itemScope.predicates is defined. - const object = this.util.createLiteral(this.textBufferStack[depth].join(''), itemScope); - this.emitPredicateTriples(itemScope, predicates, object, predicateKey === 'reverse'); - delete itemScope.predicates[depth][predicateKey]; + else if (this.running) { + if (this._state === 1 /* Text */) { + if (this.sectionStart !== this._index) { + this.cbs.ontext(this.buffer.substr(this.sectionStart)); } + this.buffer = ""; + this.bufferOffset += this._index; + this._index = 0; + } + else if (this.sectionStart === this._index) { + // The section just started + this.buffer = ""; + this.bufferOffset += this._index; + this._index = 0; + } + else { + // Remove everything unnecessary + this.buffer = this.buffer.substr(this.sectionStart); + this._index -= this.sectionStart; + this.bufferOffset += this.sectionStart; } + this.sectionStart = 0; } - // Remove the active tag from the stack - this.itemScopeStack.pop(); - this.textBufferStack.pop(); - } - onEnd() { - // Nothing important should happen here. - } - /** - * Initialize a new HtmlParser. - * @param xmlMode If the parser should be setup in strict mode. - */ - initializeParser(xmlMode) { - return new htmlparser2_1.Parser({ - onclosetag: () => { - try { - this.onTagClose(); - if (this.htmlParseListener) { - this.htmlParseListener.onTagClose(); - } - } - catch (error) { - this.emit('error', error); - } - }, - onend: () => { - try { - this.onEnd(); - if (this.htmlParseListener) { - this.htmlParseListener.onEnd(); - } - } - catch (error) { - this.emit('error', error); - } - }, - onopentag: (name, attributes) => { - try { - this.onTagOpen(name, attributes); - if (this.htmlParseListener) { - this.htmlParseListener.onTagOpen(name, attributes); - } - } - catch (error) { - this.emit('error', error); - } - }, - ontext: (data) => { - try { - this.onText(data); - if (this.htmlParseListener) { - this.htmlParseListener.onText(data); - } - } - catch (error) { - this.emit('error', error); - } - }, - }, { - decodeEntities: true, - recognizeSelfClosing: true, - xmlMode, - }); - } + }; /** - * Handle the given item properties. - * @param itempropValue The value of itemprop or itemprop-reverse. - * @param reverse If the item properties are reversed (itemprop-reverse). - * @param itemScope The current item scope. - * @param tagName The current tag name. - * @param tagAttributes The current tag attributes. + * Iterates through the buffer, calling the function corresponding to the current state. + * + * States that are more likely to be hit are higher up, as a performance improvement. */ - handleItemProperties(itempropValue, reverse, itemScope, tagName, tagAttributes) { - const parentItemScope = this.getItemScope(true); - if (parentItemScope) { - // Set predicates in the scope, and handle them on tag close. - const depth = this.getDepth(); - const predicates = this.util.createVocabIris(itempropValue, parentItemScope, true); - if (!parentItemScope.predicates) { - parentItemScope.predicates = {}; + Tokenizer.prototype.parse = function () { + while (this._index < this.buffer.length && this.running) { + var c = this.buffer.charAt(this._index); + if (this._state === 1 /* Text */) { + this.stateText(c); } - if (!parentItemScope.predicates[depth]) { - parentItemScope.predicates[depth] = {}; + else if (this._state === 12 /* InAttributeValueDq */) { + this.stateInAttributeValueDoubleQuotes(c); } - const predicatesKey = reverse ? 'reverse' : 'forward'; - parentItemScope.predicates[depth][predicatesKey] = predicates; - // Append rdf:type predicate if vocabulary expansion applies - for (const vocabularyExpansionType of this.util.getVocabularyExpansionType(itempropValue, parentItemScope, this.vocabRegistry)) { - predicates.push(vocabularyExpansionType); + else if (this._state === 9 /* InAttributeName */) { + this.stateInAttributeName(c); } - // Check if a property handler that applies, forcefully use that as predicate value. - // But DON'T call handlers in this prop is a direct (nested) itemscope. - if (itemScope && 'itemscope' in tagAttributes) { - this.emitPredicateTriples(parentItemScope, predicates, itemScope.subject, reverse); - // Finalize the predicates, so text values do not apply to them. - delete parentItemScope.predicates[depth][predicatesKey]; + else if (this._state === 19 /* InComment */) { + this.stateInComment(c); } - else { - for (const handler of MicrodataRdfParser.ITEM_PROPERTY_HANDLERS) { - if (handler.canHandle(tagName, tagAttributes)) { - const object = handler.getObject(tagAttributes, this.util, parentItemScope); - this.emitPredicateTriples(parentItemScope, predicates, object, reverse); - // Finalize the predicates, so text values do not apply to them. - delete parentItemScope.predicates[depth][predicatesKey]; - } - } + else if (this._state === 20 /* InSpecialComment */) { + this.stateInSpecialComment(c); } - // If no valid handler was found, indicate that we should collect text at this depth. - if (parentItemScope.predicates[depth][predicatesKey]) { - this.textBufferStack[depth] = []; + else if (this._state === 8 /* BeforeAttributeName */) { + this.stateBeforeAttributeName(c); } - } - } - /** - * Emit the given object for the given predicates. - * @param itemScope The current item scope. - * @param predicates An array of predicates. - * @param object An object. - * @param reverse If the triples should be reversed. - */ - emitPredicateTriples(itemScope, predicates, object, reverse) { - if (!itemScope.blockEmission) { - for (const predicate of predicates) { - if (reverse) { - // Literals can not exist in subject position, so they must be ignored. - if (object.termType !== 'Literal') { - this.emitTriple(object, predicate, itemScope.subject); - } - } - else { - this.emitTriple(itemScope.subject, predicate, object); - } + else if (this._state === 3 /* InTagName */) { + this.stateInTagName(c); } - } - } - /** - * Emit the given triple to the stream. - * @param {Quad_Subject} subject A subject term. - * @param {Quad_Predicate} predicate A predicate term. - * @param {Quad_Object} object An object term. - */ - emitTriple(subject, predicate, object) { - this.push(this.util.dataFactory.quad(subject, predicate, object, this.defaultGraph)); - } - /** - * Attempt to emit all pending itemrefs for the given reference. - * @param reference An item reference id. - * @param itemScopeDomain An optional item scope. If defined, only refs from this scope will be emitted. - */ - tryToEmitReferences(reference, itemScopeDomain) { - const range = this.pendingItemRefsRangeFinalized[reference]; - if (range) { - // Determine the item scope domains to emit - let applicableItemScopes; - if (itemScopeDomain) { - applicableItemScopes = [itemScopeDomain]; - // Remove the item from the pending array - // Element is guaranteed to exist in buffer - const itemScopeDomainIndex = this.pendingItemRefsDomain[reference].indexOf(itemScopeDomain); - this.pendingItemRefsDomain[reference].splice(itemScopeDomainIndex, 1); + else if (this._state === 6 /* InClosingTagName */) { + this.stateInClosingTagName(c); } - else { - applicableItemScopes = this.pendingItemRefsDomain[reference]; - // Remove all items from the pending array - delete this.pendingItemRefsDomain[reference]; + else if (this._state === 2 /* BeforeTagName */) { + this.stateBeforeTagName(c); } - if (applicableItemScopes) { - // Save the stack state - const itemScopeStackOld = this.itemScopeStack; - const textBufferStackOld = this.textBufferStack; - this.isEmittingReferences = true; - // For all applicable item scopes, emit the buffered events. - for (const itemScope of applicableItemScopes) { - this.itemScopeStack = [itemScope]; - this.textBufferStack = [undefined]; - const pendingIds = range.ids.slice(); - this.emittingReferencesItemScopeIdGenerator = () => pendingIds.shift(); - for (const event of range.events) { - switch (event.type) { - case 'open': - this.onTagOpen(event.name, event.attributes); - break; - case 'text': - this.onText(event.data); - break; - case 'close': - this.onTagClose(); - break; - } - } - } - // Restore the stack state - this.emittingReferencesItemScopeIdGenerator = undefined; - this.itemScopeStack = itemScopeStackOld; - this.textBufferStack = textBufferStackOld; - this.isEmittingReferences = false; + else if (this._state === 10 /* AfterAttributeName */) { + this.stateAfterAttributeName(c); } - } - } -} -exports.MicrodataRdfParser = MicrodataRdfParser; -MicrodataRdfParser.ITEM_PROPERTY_HANDLERS = [ - new ItemPropertyHandlerContent_1.ItemPropertyHandlerContent(), - new ItemPropertyHandlerUrl_1.ItemPropertyHandlerUrl('a', 'href'), - new ItemPropertyHandlerUrl_1.ItemPropertyHandlerUrl('area', 'href'), - new ItemPropertyHandlerUrl_1.ItemPropertyHandlerUrl('audio', 'src'), - new ItemPropertyHandlerUrl_1.ItemPropertyHandlerUrl('embed', 'src'), - new ItemPropertyHandlerUrl_1.ItemPropertyHandlerUrl('iframe', 'src'), - new ItemPropertyHandlerUrl_1.ItemPropertyHandlerUrl('img', 'src'), - new ItemPropertyHandlerUrl_1.ItemPropertyHandlerUrl('link', 'href'), - new ItemPropertyHandlerUrl_1.ItemPropertyHandlerUrl('object', 'data'), - new ItemPropertyHandlerUrl_1.ItemPropertyHandlerUrl('source', 'src'), - new ItemPropertyHandlerUrl_1.ItemPropertyHandlerUrl('track', 'src'), - new ItemPropertyHandlerUrl_1.ItemPropertyHandlerUrl('video', 'src'), - new ItemPropertyHandlerNumber_1.ItemPropertyHandlerNumber('data', 'value'), - new ItemPropertyHandlerNumber_1.ItemPropertyHandlerNumber('meter', 'value'), - new ItemPropertyHandlerTime_1.ItemPropertyHandlerTime(), -]; -//# sourceMappingURL=MicrodataRdfParser.js.map - -/***/ }), - -/***/ "./node_modules/microdata-rdf-streaming-parser/lib/Util.js": -/*!*****************************************************************!*\ - !*** ./node_modules/microdata-rdf-streaming-parser/lib/Util.js ***! - \*****************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Util = void 0; -const rdf_data_factory_1 = __webpack_require__(/*! rdf-data-factory */ "./node_modules/rdf-data-factory/index.js"); -const relative_to_absolute_iri_1 = __webpack_require__(/*! relative-to-absolute-iri */ "./node_modules/relative-to-absolute-iri/index.js"); -/** - * A collection of utility functions. - */ -class Util { - constructor(dataFactory, baseIRI) { - this.dataFactory = dataFactory || new rdf_data_factory_1.DataFactory(); - this.baseIRI = baseIRI || ''; - } - /** - * Check if the given IRI is valid. - * @param {string} iri A potential IRI. - * @return {boolean} If the given IRI is valid. - */ - static isValidIri(iri) { - return Util.IRI_REGEX.test(iri); - } - /** - * Create vocab terms for the given terms attribute. - * - * Relative IRIs will be based on the active vocab or baseIRI if `allowRelativeIris` is true. - * - * @param {string} terms An attribute value. - * @param {IItemScope} itemScope The active item scope. - * @param {boolean} allowRelativeIris If relative IRIs are allowed. - * @return {Term[]} The IRI terms. - */ - createVocabIris(terms, itemScope, allowRelativeIris) { - return terms.split(/\s+/u) - .filter(term => !!term) - .map(property => { - if (!Util.isValidIri(property)) { - if (!allowRelativeIris) { - return; - } - property = `${itemScope.vocab || `${this.baseIRI}#`}${property}`; + else if (this._state === 13 /* InAttributeValueSq */) { + this.stateInAttributeValueSingleQuotes(c); } - return this.dataFactory.namedNode(property); - }) - .filter(term => !!term); - } - /** - * Get the predicates for which the given itemprop value should cause vocabulary expansion. - * @param terms An attribute value. - * @param itemScope The active item scope. - * @param vocabRegistry The active vocabulary registry. - */ - getVocabularyExpansionType(terms, itemScope, vocabRegistry) { - // Check the presence of subPropertyOf or equivalentProperty - const parts = terms.split(/\s+/u); - if (parts.includes('subPropertyOf') || parts.includes('equivalentProperty')) { - return [this.dataFactory.namedNode(`${Util.RDF}type`)]; - } - // Check in the item scope's vocab - if (itemScope.vocab && itemScope.vocab in vocabRegistry && vocabRegistry[itemScope.vocab].properties) { - let predicates = []; - for (const [property, expansions] of Object - .entries(vocabRegistry[itemScope.vocab].properties)) { - if (parts.includes(property)) { - predicates = predicates.concat(Object.values(expansions).map(iri => this.dataFactory.namedNode(iri))); - } + else if (this._state === 11 /* BeforeAttributeValue */) { + this.stateBeforeAttributeValue(c); } - return predicates; - } - return []; - } - /** - * Create a named node for the given term, which can be relative to the document base. - * @param {string} iri A term string. - * @return {Term} An RDF term, or undefined if invalid. - */ - createSubject(iri) { - if (!Util.isValidIri(iri)) { - try { - iri = relative_to_absolute_iri_1.resolve(iri, this.baseIRI); + else if (this._state === 5 /* BeforeClosingTagName */) { + this.stateBeforeClosingTagName(c); } - catch (_a) { - return; + else if (this._state === 7 /* AfterClosingTagName */) { + this.stateAfterClosingTagName(c); + } + else if (this._state === 32 /* BeforeSpecialS */) { + this.stateBeforeSpecialS(c); + } + else if (this._state === 21 /* AfterComment1 */) { + this.stateAfterComment1(c); + } + else if (this._state === 14 /* InAttributeValueNq */) { + this.stateInAttributeValueNoQuotes(c); + } + else if (this._state === 4 /* InSelfClosingTag */) { + this.stateInSelfClosingTag(c); + } + else if (this._state === 16 /* InDeclaration */) { + this.stateInDeclaration(c); + } + else if (this._state === 15 /* BeforeDeclaration */) { + this.stateBeforeDeclaration(c); + } + else if (this._state === 22 /* AfterComment2 */) { + this.stateAfterComment2(c); + } + else if (this._state === 18 /* BeforeComment */) { + this.stateBeforeComment(c); + } + else if (this._state === 33 /* BeforeSpecialSEnd */) { + this.stateBeforeSpecialSEnd(c); + } + else if (this._state === 53 /* BeforeSpecialTEnd */) { + stateAfterSpecialTEnd(this, c); + } + else if (this._state === 39 /* AfterScript1 */) { + stateAfterScript1(this, c); + } + else if (this._state === 40 /* AfterScript2 */) { + stateAfterScript2(this, c); + } + else if (this._state === 41 /* AfterScript3 */) { + stateAfterScript3(this, c); + } + else if (this._state === 34 /* BeforeScript1 */) { + stateBeforeScript1(this, c); + } + else if (this._state === 35 /* BeforeScript2 */) { + stateBeforeScript2(this, c); + } + else if (this._state === 36 /* BeforeScript3 */) { + stateBeforeScript3(this, c); + } + else if (this._state === 37 /* BeforeScript4 */) { + stateBeforeScript4(this, c); + } + else if (this._state === 38 /* BeforeScript5 */) { + this.stateBeforeSpecialLast(c, 2 /* Script */); + } + else if (this._state === 42 /* AfterScript4 */) { + stateAfterScript4(this, c); + } + else if (this._state === 43 /* AfterScript5 */) { + this.stateAfterSpecialLast(c, 6); + } + else if (this._state === 44 /* BeforeStyle1 */) { + stateBeforeStyle1(this, c); + } + else if (this._state === 29 /* InCdata */) { + this.stateInCdata(c); + } + else if (this._state === 45 /* BeforeStyle2 */) { + stateBeforeStyle2(this, c); + } + else if (this._state === 46 /* BeforeStyle3 */) { + stateBeforeStyle3(this, c); + } + else if (this._state === 47 /* BeforeStyle4 */) { + this.stateBeforeSpecialLast(c, 3 /* Style */); + } + else if (this._state === 48 /* AfterStyle1 */) { + stateAfterStyle1(this, c); + } + else if (this._state === 49 /* AfterStyle2 */) { + stateAfterStyle2(this, c); + } + else if (this._state === 50 /* AfterStyle3 */) { + stateAfterStyle3(this, c); + } + else if (this._state === 51 /* AfterStyle4 */) { + this.stateAfterSpecialLast(c, 5); + } + else if (this._state === 52 /* BeforeSpecialT */) { + stateBeforeSpecialT(this, c); + } + else if (this._state === 54 /* BeforeTitle1 */) { + stateBeforeTitle1(this, c); + } + else if (this._state === 55 /* BeforeTitle2 */) { + stateBeforeTitle2(this, c); + } + else if (this._state === 56 /* BeforeTitle3 */) { + stateBeforeTitle3(this, c); + } + else if (this._state === 57 /* BeforeTitle4 */) { + this.stateBeforeSpecialLast(c, 4 /* Title */); + } + else if (this._state === 58 /* AfterTitle1 */) { + stateAfterTitle1(this, c); + } + else if (this._state === 59 /* AfterTitle2 */) { + stateAfterTitle2(this, c); + } + else if (this._state === 60 /* AfterTitle3 */) { + stateAfterTitle3(this, c); + } + else if (this._state === 61 /* AfterTitle4 */) { + this.stateAfterSpecialLast(c, 5); + } + else if (this._state === 17 /* InProcessingInstruction */) { + this.stateInProcessingInstruction(c); + } + else if (this._state === 64 /* InNamedEntity */) { + this.stateInNamedEntity(c); + } + else if (this._state === 23 /* BeforeCdata1 */) { + stateBeforeCdata1(this, c); + } + else if (this._state === 62 /* BeforeEntity */) { + stateBeforeEntity(this, c); + } + else if (this._state === 24 /* BeforeCdata2 */) { + stateBeforeCdata2(this, c); + } + else if (this._state === 25 /* BeforeCdata3 */) { + stateBeforeCdata3(this, c); + } + else if (this._state === 30 /* AfterCdata1 */) { + this.stateAfterCdata1(c); + } + else if (this._state === 31 /* AfterCdata2 */) { + this.stateAfterCdata2(c); + } + else if (this._state === 26 /* BeforeCdata4 */) { + stateBeforeCdata4(this, c); + } + else if (this._state === 27 /* BeforeCdata5 */) { + stateBeforeCdata5(this, c); + } + else if (this._state === 28 /* BeforeCdata6 */) { + this.stateBeforeCdata6(c); + } + else if (this._state === 66 /* InHexEntity */) { + this.stateInHexEntity(c); + } + else if (this._state === 65 /* InNumericEntity */) { + this.stateInNumericEntity(c); + // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition + } + else if (this._state === 63 /* BeforeNumericEntity */) { + stateBeforeNumericEntity(this, c); } + else { + this.cbs.onerror(Error("unknown _state"), this._state); + } + this._index++; } - return this.dataFactory.namedNode(iri); - } - /** - * Create a new literal node. - * @param {string} literal The literal value. - * @param {IActiveTag} activeTag The current active tag. - * @return {Literal} A new literal node. - */ - createLiteral(literal, activeTag) { - return this.dataFactory.literal(literal, activeTag.language); - } - /** - * Determine the vocab IRI from a given type IRI. - * @link https://w3c.github.io/microdata-rdf/#property-uri-generation - * @param typeIri A type IRI. - * @param vocabRegistry The active vocabulary registry. - */ - deriveVocab(typeIri, vocabRegistry) { - let vocab; - // First check if we find a prefix in the vocab registry - for (const uriPrefix in vocabRegistry) { - if (typeIri.startsWith(uriPrefix)) { - vocab = uriPrefix; - // Append fragment if prefix does not end with a slash - if (!vocab.endsWith('/')) { - vocab += '#'; - } - break; + this.cleanup(); + }; + Tokenizer.prototype.finish = function () { + // If there is remaining data, emit it in a reasonable way + if (this.sectionStart < this._index) { + this.handleTrailingData(); + } + this.cbs.onend(); + }; + Tokenizer.prototype.handleTrailingData = function () { + var data = this.buffer.substr(this.sectionStart); + if (this._state === 29 /* InCdata */ || + this._state === 30 /* AfterCdata1 */ || + this._state === 31 /* AfterCdata2 */) { + this.cbs.oncdata(data); + } + else if (this._state === 19 /* InComment */ || + this._state === 21 /* AfterComment1 */ || + this._state === 22 /* AfterComment2 */) { + this.cbs.oncomment(data); + } + else if (this._state === 64 /* InNamedEntity */ && !this.xmlMode) { + this.parseLegacyEntity(); + if (this.sectionStart < this._index) { + this._state = this.baseState; + this.handleTrailingData(); } } - // If no match was found, remove the last path segment from the URI - if (!vocab) { - const hashPos = typeIri.indexOf('#'); - if (hashPos > 0) { - vocab = typeIri.slice(0, hashPos + 1); + else if (this._state === 65 /* InNumericEntity */ && !this.xmlMode) { + this.decodeNumericEntity(2, 10, false); + if (this.sectionStart < this._index) { + this._state = this.baseState; + this.handleTrailingData(); } - else { - vocab = relative_to_absolute_iri_1.resolve('.', typeIri); + } + else if (this._state === 66 /* InHexEntity */ && !this.xmlMode) { + this.decodeNumericEntity(3, 16, false); + if (this.sectionStart < this._index) { + this._state = this.baseState; + this.handleTrailingData(); } } - return vocab; - } -} -exports.Util = Util; -Util.RDF = 'http://www.w3.org/1999/02/22-rdf-syntax-ns#'; -Util.XSD = 'http://www.w3.org/2001/XMLSchema#'; -Util.RDFA = 'http://www.w3.org/ns/rdfa#'; -Util.IRI_REGEX = /^([A-Za-z][\d+-.A-Za-z]*|_):[^ "<>[\\\]`{|}]*$/u; -//# sourceMappingURL=Util.js.map - -/***/ }), - -/***/ "./node_modules/microdata-rdf-streaming-parser/lib/propertyhandler/IItemPropertyHandler.js": -/*!*************************************************************************************************!*\ - !*** ./node_modules/microdata-rdf-streaming-parser/lib/propertyhandler/IItemPropertyHandler.js ***! - \*************************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; + else if (this._state !== 3 /* InTagName */ && + this._state !== 8 /* BeforeAttributeName */ && + this._state !== 11 /* BeforeAttributeValue */ && + this._state !== 10 /* AfterAttributeName */ && + this._state !== 9 /* InAttributeName */ && + this._state !== 13 /* InAttributeValueSq */ && + this._state !== 12 /* InAttributeValueDq */ && + this._state !== 14 /* InAttributeValueNq */ && + this._state !== 6 /* InClosingTagName */) { + this.cbs.ontext(data); + } + /* + * Else, ignore remaining data + * TODO add a way to remove current tag + */ + }; + Tokenizer.prototype.getSection = function () { + return this.buffer.substring(this.sectionStart, this._index); + }; + Tokenizer.prototype.emitToken = function (name) { + this.cbs[name](this.getSection()); + this.sectionStart = -1; + }; + Tokenizer.prototype.emitPartial = function (value) { + if (this.baseState !== 1 /* Text */) { + this.cbs.onattribdata(value); // TODO implement the new event + } + else { + this.cbs.ontext(value); + } + }; + return Tokenizer; +}()); +exports.default = Tokenizer; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=IItemPropertyHandler.js.map /***/ }), -/***/ "./node_modules/microdata-rdf-streaming-parser/lib/propertyhandler/ItemPropertyHandlerContent.js": -/*!*******************************************************************************************************!*\ - !*** ./node_modules/microdata-rdf-streaming-parser/lib/propertyhandler/ItemPropertyHandlerContent.js ***! - \*******************************************************************************************************/ +/***/ "./node_modules/microdata-rdf-streaming-parser/node_modules/htmlparser2/lib/index.js": +/*!*******************************************************************************************!*\ + !*** ./node_modules/microdata-rdf-streaming-parser/node_modules/htmlparser2/lib/index.js ***! + \*******************************************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); -exports.ItemPropertyHandlerContent = void 0; +exports.RssHandler = exports.DefaultHandler = exports.DomUtils = exports.ElementType = exports.Tokenizer = exports.createDomStream = exports.parseDOM = exports.parseDocument = exports.DomHandler = exports.Parser = void 0; +var Parser_1 = __webpack_require__(/*! ./Parser */ "./node_modules/microdata-rdf-streaming-parser/node_modules/htmlparser2/lib/Parser.js"); +Object.defineProperty(exports, "Parser", { enumerable: true, get: function () { return Parser_1.Parser; } }); +var domhandler_1 = __webpack_require__(/*! domhandler */ "./node_modules/domhandler/lib/index.js"); +Object.defineProperty(exports, "DomHandler", { enumerable: true, get: function () { return domhandler_1.DomHandler; } }); +Object.defineProperty(exports, "DefaultHandler", { enumerable: true, get: function () { return domhandler_1.DomHandler; } }); +// Helper methods /** - * Handler for an item property with the 'content' attribute. + * Parses the data, returns the resulting document. + * + * @param data The data that should be parsed. + * @param options Optional options for the parser and DOM builder. */ -class ItemPropertyHandlerContent { - canHandle(tagName, attributes) { - return 'content' in attributes; - } - getObject(attributes, util, itemScope) { - return util.createLiteral(attributes.content, itemScope); - } +function parseDocument(data, options) { + var handler = new domhandler_1.DomHandler(undefined, options); + new Parser_1.Parser(handler, options).end(data); + return handler.root; } -exports.ItemPropertyHandlerContent = ItemPropertyHandlerContent; -//# sourceMappingURL=ItemPropertyHandlerContent.js.map - -/***/ }), - -/***/ "./node_modules/microdata-rdf-streaming-parser/lib/propertyhandler/ItemPropertyHandlerNumber.js": -/*!******************************************************************************************************!*\ - !*** ./node_modules/microdata-rdf-streaming-parser/lib/propertyhandler/ItemPropertyHandlerNumber.js ***! - \******************************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ItemPropertyHandlerNumber = void 0; -const Util_1 = __webpack_require__(/*! ../Util */ "./node_modules/microdata-rdf-streaming-parser/lib/Util.js"); +exports.parseDocument = parseDocument; /** - * Handler for an item property with a number attribute. + * Parses data, returns an array of the root nodes. + * + * Note that the root nodes still have a `Document` node as their parent. + * Use `parseDocument` to get the `Document` node instead. + * + * @param data The data that should be parsed. + * @param options Optional options for the parser and DOM builder. + * @deprecated Use `parseDocument` instead. */ -class ItemPropertyHandlerNumber { - constructor(tagName, attributeName) { - this.tagName = tagName; - this.attributeName = attributeName; - } - canHandle(tagName, attributes) { - return this.tagName === tagName && this.attributeName in attributes; - } - getObject(attributes, util, itemScope) { - const value = attributes[this.attributeName]; - let datatype; - if (!Number.isNaN(Number.parseInt(value, 10)) && !value.includes('.')) { - datatype = `${Util_1.Util.XSD}integer`; - } - else if (!Number.isNaN(Number.parseFloat(value))) { - datatype = `${Util_1.Util.XSD}double`; - } - return util.dataFactory.literal(value, datatype && util.dataFactory.namedNode(datatype)); - } +function parseDOM(data, options) { + return parseDocument(data, options).children; } -exports.ItemPropertyHandlerNumber = ItemPropertyHandlerNumber; -//# sourceMappingURL=ItemPropertyHandlerNumber.js.map - -/***/ }), - -/***/ "./node_modules/microdata-rdf-streaming-parser/lib/propertyhandler/ItemPropertyHandlerTime.js": -/*!****************************************************************************************************!*\ - !*** ./node_modules/microdata-rdf-streaming-parser/lib/propertyhandler/ItemPropertyHandlerTime.js ***! - \****************************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ItemPropertyHandlerTime = void 0; -const Util_1 = __webpack_require__(/*! ../Util */ "./node_modules/microdata-rdf-streaming-parser/lib/Util.js"); +exports.parseDOM = parseDOM; /** - * Handler for an item property for time tags. + * Creates a parser instance, with an attached DOM handler. + * + * @param cb A callback that will be called once parsing has been completed. + * @param options Optional options for the parser and DOM builder. + * @param elementCb An optional callback that will be called every time a tag has been completed inside of the DOM. */ -class ItemPropertyHandlerTime { - canHandle(tagName, attributes) { - return tagName === 'time' && 'datetime' in attributes; - } - getObject(attributes, util, itemScope) { - const value = attributes.datetime; - let datatype; - for (const entry of ItemPropertyHandlerTime.TIME_REGEXES) { - if (entry.regex.exec(value)) { - datatype = util.dataFactory.namedNode(Util_1.Util.XSD + entry.type); - break; - } - } - return util.dataFactory.literal(value, datatype); - } +function createDomStream(cb, options, elementCb) { + var handler = new domhandler_1.DomHandler(cb, options, elementCb); + return new Parser_1.Parser(handler, options); } -exports.ItemPropertyHandlerTime = ItemPropertyHandlerTime; -ItemPropertyHandlerTime.TIME_REGEXES = [ - { - regex: /^-?P(\d+Y)?(\d+M)?(\d+D)?(T(\d+H)?(\d+M)?(\d+(\.\d)?S)?)?$/u, - type: 'duration', - }, - { - regex: /^\d+-\d\d-\d\dT\d\d:\d\d:\d\d((Z?)|([+-]\d\d:\d\d))$/u, - type: 'dateTime', - }, - { regex: /^\d+-\d\d-\d\dZ?$/u, type: 'date' }, - { regex: /^\d\d:\d\d:\d\d((Z?)|([+-]\d\d:\d\d))$/u, type: 'time' }, - { regex: /^\d+-\d\d$/u, type: 'gYearMonth' }, - { regex: /^\d+$/u, type: 'gYear' }, -]; -//# sourceMappingURL=ItemPropertyHandlerTime.js.map - -/***/ }), - -/***/ "./node_modules/microdata-rdf-streaming-parser/lib/propertyhandler/ItemPropertyHandlerUrl.js": -/*!***************************************************************************************************!*\ - !*** ./node_modules/microdata-rdf-streaming-parser/lib/propertyhandler/ItemPropertyHandlerUrl.js ***! - \***************************************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ItemPropertyHandlerUrl = void 0; -const relative_to_absolute_iri_1 = __webpack_require__(/*! relative-to-absolute-iri */ "./node_modules/relative-to-absolute-iri/index.js"); -/** - * Handler for an item property with a URL attribute. +exports.createDomStream = createDomStream; +var Tokenizer_1 = __webpack_require__(/*! ./Tokenizer */ "./node_modules/microdata-rdf-streaming-parser/node_modules/htmlparser2/lib/Tokenizer.js"); +Object.defineProperty(exports, "Tokenizer", { enumerable: true, get: function () { return __importDefault(Tokenizer_1).default; } }); +var ElementType = __importStar(__webpack_require__(/*! domelementtype */ "./node_modules/domelementtype/lib/index.js")); +exports.ElementType = ElementType; +/* + * All of the following exports exist for backwards-compatibility. + * They should probably be removed eventually. */ -class ItemPropertyHandlerUrl { - constructor(tagName, attributeName) { - this.tagName = tagName; - this.attributeName = attributeName; - } - canHandle(tagName, attributes) { - return this.tagName === tagName && this.attributeName in attributes; - } - getObject(attributes, util, itemScope) { - return util.dataFactory.namedNode(relative_to_absolute_iri_1.resolve(attributes[this.attributeName], util.baseIRI)); - } -} -exports.ItemPropertyHandlerUrl = ItemPropertyHandlerUrl; -//# sourceMappingURL=ItemPropertyHandlerUrl.js.map - -/***/ }), - -/***/ "./node_modules/microdata-rdf-streaming-parser/lib/vocab-registry-default.json": -/*!*************************************************************************************!*\ - !*** ./node_modules/microdata-rdf-streaming-parser/lib/vocab-registry-default.json ***! - \*************************************************************************************/ -/*! exports provided: http://schema.org/, http://microformats.org/profile/hcard, default */ -/***/ (function(module) { +__exportStar(__webpack_require__(/*! ./FeedHandler */ "./node_modules/microdata-rdf-streaming-parser/node_modules/htmlparser2/lib/FeedHandler.js"), exports); +exports.DomUtils = __importStar(__webpack_require__(/*! domutils */ "./node_modules/domutils/lib/index.js")); +var FeedHandler_1 = __webpack_require__(/*! ./FeedHandler */ "./node_modules/microdata-rdf-streaming-parser/node_modules/htmlparser2/lib/FeedHandler.js"); +Object.defineProperty(exports, "RssHandler", { enumerable: true, get: function () { return FeedHandler_1.FeedHandler; } }); -module.exports = {"http://schema.org/":{"properties":{"additionalType":{"subPropertyOf":"http://www.w3.org/1999/02/22-rdf-syntax-ns#type"}}},"http://microformats.org/profile/hcard":{}}; /***/ }), @@ -61227,11 +64659,24 @@ var weakRefDeref = hasWeakRef ? WeakRef.prototype.deref : null; var booleanValueOf = Boolean.prototype.valueOf; var objectToString = Object.prototype.toString; var functionToString = Function.prototype.toString; -var match = String.prototype.match; +var $match = String.prototype.match; +var $slice = String.prototype.slice; +var $replace = String.prototype.replace; +var $toUpperCase = String.prototype.toUpperCase; +var $toLowerCase = String.prototype.toLowerCase; +var $test = RegExp.prototype.test; +var $concat = Array.prototype.concat; +var $join = Array.prototype.join; +var $arrSlice = Array.prototype.slice; +var $floor = Math.floor; var bigIntValueOf = typeof BigInt === 'function' ? BigInt.prototype.valueOf : null; var gOPS = Object.getOwnPropertySymbols; var symToString = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol' ? Symbol.prototype.toString : null; var hasShammedSymbols = typeof Symbol === 'function' && typeof Symbol.iterator === 'object'; +// ie, `has-tostringtag/shams +var toStringTag = typeof Symbol === 'function' && Symbol.toStringTag && (typeof Symbol.toStringTag === hasShammedSymbols ? 'object' : 'symbol') + ? Symbol.toStringTag + : null; var isEnumerable = Object.prototype.propertyIsEnumerable; var gPO = (typeof Reflect === 'function' ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ( @@ -61242,9 +64687,30 @@ var gPO = (typeof Reflect === 'function' ? Reflect.getPrototypeOf : Object.getPr : null ); +function addNumericSeparator(num, str) { + if ( + num === Infinity + || num === -Infinity + || num !== num + || (num && num > -1000 && num < 1000) + || $test.call(/e/, str) + ) { + return str; + } + var sepRegex = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g; + if (typeof num === 'number') { + var int = num < 0 ? -$floor(-num) : $floor(num); // trunc(num) + if (int !== num) { + var intStr = String(int); + var dec = $slice.call(str, intStr.length + 1); + return $replace.call(intStr, sepRegex, '$&_') + '.' + $replace.call($replace.call(dec, /([0-9]{3})/g, '$&_'), /_$/, ''); + } + } + return $replace.call(str, sepRegex, '$&_'); +} + var inspectCustom = __webpack_require__(/*! ./util.inspect */ 1).custom; var inspectSymbol = inspectCustom && isSymbol(inspectCustom) ? inspectCustom : null; -var toStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag !== 'undefined' ? Symbol.toStringTag : null; module.exports = function inspect_(obj, options, depth, seen) { var opts = options || {}; @@ -61271,8 +64737,12 @@ module.exports = function inspect_(obj, options, depth, seen) { && opts.indent !== '\t' && !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0) ) { - throw new TypeError('options "indent" must be "\\t", an integer > 0, or `null`'); + throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`'); } + if (has(opts, 'numericSeparator') && typeof opts.numericSeparator !== 'boolean') { + throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`'); + } + var numericSeparator = opts.numericSeparator; if (typeof obj === 'undefined') { return 'undefined'; @@ -61291,10 +64761,12 @@ module.exports = function inspect_(obj, options, depth, seen) { if (obj === 0) { return Infinity / obj > 0 ? '0' : '-0'; } - return String(obj); + var str = String(obj); + return numericSeparator ? addNumericSeparator(obj, str) : str; } if (typeof obj === 'bigint') { - return String(obj) + 'n'; + var bigIntStr = String(obj) + 'n'; + return numericSeparator ? addNumericSeparator(obj, bigIntStr) : bigIntStr; } var maxDepth = typeof opts.depth === 'undefined' ? 5 : opts.depth; @@ -61313,7 +64785,7 @@ module.exports = function inspect_(obj, options, depth, seen) { function inspect(value, from, noIndent) { if (from) { - seen = seen.slice(); + seen = $arrSlice.call(seen); seen.push(from); } if (noIndent) { @@ -61331,21 +64803,21 @@ module.exports = function inspect_(obj, options, depth, seen) { if (typeof obj === 'function') { var name = nameOf(obj); var keys = arrObjKeys(obj, inspect); - return '[Function' + (name ? ': ' + name : ' (anonymous)') + ']' + (keys.length > 0 ? ' { ' + keys.join(', ') + ' }' : ''); + return '[Function' + (name ? ': ' + name : ' (anonymous)') + ']' + (keys.length > 0 ? ' { ' + $join.call(keys, ', ') + ' }' : ''); } if (isSymbol(obj)) { - var symString = hasShammedSymbols ? String(obj).replace(/^(Symbol\(.*\))_[^)]*$/, '$1') : symToString.call(obj); + var symString = hasShammedSymbols ? $replace.call(String(obj), /^(Symbol\(.*\))_[^)]*$/, '$1') : symToString.call(obj); return typeof obj === 'object' && !hasShammedSymbols ? markBoxed(symString) : symString; } if (isElement(obj)) { - var s = '<' + String(obj.nodeName).toLowerCase(); + var s = '<' + $toLowerCase.call(String(obj.nodeName)); var attrs = obj.attributes || []; for (var i = 0; i < attrs.length; i++) { s += ' ' + attrs[i].name + '=' + wrapQuotes(quote(attrs[i].value), 'double', opts); } s += '>'; if (obj.childNodes && obj.childNodes.length) { s += '...'; } - s += ''; + s += ''; return s; } if (isArray(obj)) { @@ -61354,12 +64826,15 @@ module.exports = function inspect_(obj, options, depth, seen) { if (indent && !singleLineValues(xs)) { return '[' + indentedJoin(xs, indent) + ']'; } - return '[ ' + xs.join(', ') + ' ]'; + return '[ ' + $join.call(xs, ', ') + ' ]'; } if (isError(obj)) { var parts = arrObjKeys(obj, inspect); + if ('cause' in obj && !isEnumerable.call(obj, 'cause')) { + return '{ [' + String(obj) + '] ' + $join.call($concat.call('[cause]: ' + inspect(obj.cause), parts), ', ') + ' }'; + } if (parts.length === 0) { return '[' + String(obj) + ']'; } - return '{ [' + String(obj) + '] ' + parts.join(', ') + ' }'; + return '{ [' + String(obj) + '] ' + $join.call(parts, ', ') + ' }'; } if (typeof obj === 'object' && customInspect) { if (inspectSymbol && typeof obj[inspectSymbol] === 'function') { @@ -61407,14 +64882,14 @@ module.exports = function inspect_(obj, options, depth, seen) { var ys = arrObjKeys(obj, inspect); var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object; var protoTag = obj instanceof Object ? '' : 'null prototype'; - var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? toStr(obj).slice(8, -1) : protoTag ? 'Object' : ''; + var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? 'Object' : ''; var constructorTag = isPlainObject || typeof obj.constructor !== 'function' ? '' : obj.constructor.name ? obj.constructor.name + ' ' : ''; - var tag = constructorTag + (stringTag || protoTag ? '[' + [].concat(stringTag || [], protoTag || []).join(': ') + '] ' : ''); + var tag = constructorTag + (stringTag || protoTag ? '[' + $join.call($concat.call([], stringTag || [], protoTag || []), ': ') + '] ' : ''); if (ys.length === 0) { return tag + '{}'; } if (indent) { return tag + '{' + indentedJoin(ys, indent) + '}'; } - return tag + '{ ' + ys.join(', ') + ' }'; + return tag + '{ ' + $join.call(ys, ', ') + ' }'; } return String(obj); }; @@ -61425,7 +64900,7 @@ function wrapQuotes(s, defaultStyle, opts) { } function quote(s) { - return String(s).replace(/"/g, '"'); + return $replace.call(String(s), /"/g, '"'); } function isArray(obj) { return toStr(obj) === '[object Array]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); } @@ -61476,7 +64951,7 @@ function toStr(obj) { function nameOf(f) { if (f.name) { return f.name; } - var m = match.call(functionToString.call(f), /^function\s*([\w$]+)/); + var m = $match.call(functionToString.call(f), /^function\s*([\w$]+)/); if (m) { return m[1]; } return null; } @@ -61576,10 +65051,10 @@ function inspectString(str, opts) { if (str.length > opts.maxStringLength) { var remaining = str.length - opts.maxStringLength; var trailer = '... ' + remaining + ' more character' + (remaining > 1 ? 's' : ''); - return inspectString(str.slice(0, opts.maxStringLength), opts) + trailer; + return inspectString($slice.call(str, 0, opts.maxStringLength), opts) + trailer; } // eslint-disable-next-line no-control-regex - var s = str.replace(/(['\\])/g, '\\$1').replace(/[\x00-\x1f]/g, lowbyte); + var s = $replace.call($replace.call(str, /(['\\])/g, '\\$1'), /[\x00-\x1f]/g, lowbyte); return wrapQuotes(s, 'single', opts); } @@ -61593,7 +65068,7 @@ function lowbyte(c) { 13: 'r' }[n]; if (x) { return '\\' + x; } - return '\\x' + (n < 0x10 ? '0' : '') + n.toString(16).toUpperCase(); + return '\\x' + (n < 0x10 ? '0' : '') + $toUpperCase.call(n.toString(16)); } function markBoxed(str) { @@ -61605,7 +65080,7 @@ function weakCollectionOf(type) { } function collectionOf(type, size, entries, indent) { - var joinedEntries = indent ? indentedJoin(entries, indent) : entries.join(', '); + var joinedEntries = indent ? indentedJoin(entries, indent) : $join.call(entries, ', '); return type + ' (' + size + ') {' + joinedEntries + '}'; } @@ -61623,20 +65098,20 @@ function getIndent(opts, depth) { if (opts.indent === '\t') { baseIndent = '\t'; } else if (typeof opts.indent === 'number' && opts.indent > 0) { - baseIndent = Array(opts.indent + 1).join(' '); + baseIndent = $join.call(Array(opts.indent + 1), ' '); } else { return null; } return { base: baseIndent, - prev: Array(depth + 1).join(baseIndent) + prev: $join.call(Array(depth + 1), baseIndent) }; } function indentedJoin(xs, indent) { if (xs.length === 0) { return ''; } var lineJoiner = '\n' + indent.prev + indent.base; - return lineJoiner + xs.join(',' + lineJoiner) + '\n' + indent.prev; + return lineJoiner + $join.call(xs, ',' + lineJoiner) + '\n' + indent.prev; } function arrObjKeys(obj, inspect) { @@ -61663,7 +65138,7 @@ function arrObjKeys(obj, inspect) { if (hasShammedSymbols && symMap['$' + key] instanceof Symbol) { // this is to prevent shammed Symbols, which are stored as strings, from being included in the string key section continue; // eslint-disable-line no-restricted-syntax, no-continue - } else if ((/[^\w$]/).test(key)) { + } else if ($test.call(/[^\w$]/, key)) { xs.push(inspect(key, obj) + ': ' + inspect(obj[key], obj)); } else { xs.push(key + ': ' + inspect(obj[key], obj)); @@ -62935,7 +66410,7 @@ var parseObject = function (chain, val, options, valuesParsed) { ) { obj = []; obj[index] = leaf; - } else { + } else if (cleanRoot !== '__proto__') { obj[cleanRoot] = leaf; } } @@ -63093,6 +66568,7 @@ var arrayPrefixGenerators = { }; var isArray = Array.isArray; +var split = String.prototype.split; var push = Array.prototype.push; var pushToArray = function (arr, valueOrArray) { push.apply(arr, isArray(valueOrArray) ? valueOrArray : [valueOrArray]); @@ -63129,6 +66605,8 @@ var isNonNullishPrimitive = function isNonNullishPrimitive(v) { || typeof v === 'bigint'; }; +var sentinel = {}; + var stringify = function stringify( object, prefix, @@ -63148,8 +66626,23 @@ var stringify = function stringify( ) { var obj = object; - if (sideChannel.has(object)) { - throw new RangeError('Cyclic object value'); + var tmpSc = sideChannel; + var step = 0; + var findFlag = false; + while ((tmpSc = tmpSc.get(sentinel)) !== void undefined && !findFlag) { + // Where object last appeared in the ref tree + var pos = tmpSc.get(object); + step += 1; + if (typeof pos !== 'undefined') { + if (pos === step) { + throw new RangeError('Cyclic object value'); + } else { + findFlag = true; // Break while + } + } + if (typeof tmpSc.get(sentinel) === 'undefined') { + step = 0; + } } if (typeof filter === 'function') { @@ -63176,6 +66669,14 @@ var stringify = function stringify( if (isNonNullishPrimitive(obj) || utils.isBuffer(obj)) { if (encoder) { var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults.encoder, charset, 'key', format); + if (generateArrayPrefix === 'comma' && encodeValuesOnly) { + var valuesArray = split.call(String(obj), ','); + var valuesJoined = ''; + for (var i = 0; i < valuesArray.length; ++i) { + valuesJoined += (i === 0 ? '' : ',') + formatter(encoder(valuesArray[i], defaults.encoder, charset, 'value', format)); + } + return [formatter(keyValue) + '=' + valuesJoined]; + } return [formatter(keyValue) + '=' + formatter(encoder(obj, defaults.encoder, charset, 'value', format))]; } return [formatter(prefix) + '=' + formatter(String(obj))]; @@ -63190,7 +66691,7 @@ var stringify = function stringify( var objKeys; if (generateArrayPrefix === 'comma' && isArray(obj)) { // we need to join elements in - objKeys = [{ value: obj.length > 0 ? obj.join(',') || null : undefined }]; + objKeys = [{ value: obj.length > 0 ? obj.join(',') || null : void undefined }]; } else if (isArray(filter)) { objKeys = filter; } else { @@ -63198,9 +66699,9 @@ var stringify = function stringify( objKeys = sort ? keys.sort(sort) : keys; } - for (var i = 0; i < objKeys.length; ++i) { - var key = objKeys[i]; - var value = typeof key === 'object' && key.value !== undefined ? key.value : obj[key]; + for (var j = 0; j < objKeys.length; ++j) { + var key = objKeys[j]; + var value = typeof key === 'object' && typeof key.value !== 'undefined' ? key.value : obj[key]; if (skipNulls && value === null) { continue; @@ -63210,8 +66711,9 @@ var stringify = function stringify( ? typeof generateArrayPrefix === 'function' ? generateArrayPrefix(prefix, key) : prefix : prefix + (allowDots ? '.' + key : '[' + key + ']'); - sideChannel.set(object, true); + sideChannel.set(object, step); var valueSideChannel = getSideChannel(); + valueSideChannel.set(sentinel, sideChannel); pushToArray(values, stringify( value, keyPrefix, @@ -63239,7 +66741,7 @@ var normalizeStringifyOptions = function normalizeStringifyOptions(opts) { return defaults; } - if (opts.encoder !== null && opts.encoder !== undefined && typeof opts.encoder !== 'function') { + if (opts.encoder !== null && typeof opts.encoder !== 'undefined' && typeof opts.encoder !== 'function') { throw new TypeError('Encoder has to be a function.'); } @@ -63553,6 +67055,7 @@ var encode = function encode(str, defaultEncoder, charset, kind, format) { i += 1; c = 0x10000 + (((c & 0x3FF) << 10) | (string.charCodeAt(i) & 0x3FF)); + /* eslint operator-linebreak: [2, "before"] */ out += hexTable[0xF0 | (c >> 18)] + hexTable[0x80 | ((c >> 12) & 0x3F)] + hexTable[0x80 | ((c >> 6) & 0x3F)] @@ -64831,249 +68334,1141 @@ class TypeHandlerBoolean { return dataFactory.literal(value ? 'true' : 'false', datatype || dataFactory.namedNode(TypeHandlerBoolean.TYPE)); } } -exports.TypeHandlerBoolean = TypeHandlerBoolean; -TypeHandlerBoolean.TYPE = 'http://www.w3.org/2001/XMLSchema#boolean'; -//# sourceMappingURL=TypeHandlerBoolean.js.map +exports.TypeHandlerBoolean = TypeHandlerBoolean; +TypeHandlerBoolean.TYPE = 'http://www.w3.org/2001/XMLSchema#boolean'; +//# sourceMappingURL=TypeHandlerBoolean.js.map + +/***/ }), + +/***/ "./node_modules/rdf-literal/lib/handler/TypeHandlerDate.js": +/*!*****************************************************************!*\ + !*** ./node_modules/rdf-literal/lib/handler/TypeHandlerDate.js ***! + \*****************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +exports.TypeHandlerDate = void 0; +const Translator_1 = __webpack_require__(/*! ../Translator */ "./node_modules/rdf-literal/lib/Translator.js"); +/** + * Translates dates. + */ +class TypeHandlerDate { + fromRdf(literal, validate) { + if (validate && !literal.value.match(TypeHandlerDate + .VALIDATORS[literal.datatype.value.substr(33, literal.datatype.value.length)])) { + Translator_1.Translator.incorrectRdfDataType(literal); + } + switch (literal.datatype.value) { + case 'http://www.w3.org/2001/XMLSchema#gDay': + return new Date(0, 0, parseInt(literal.value, 10)); + case 'http://www.w3.org/2001/XMLSchema#gMonthDay': + const partsMonthDay = literal.value.split('-'); + return new Date(0, parseInt(partsMonthDay[0], 10) - 1, parseInt(partsMonthDay[1], 10)); + case 'http://www.w3.org/2001/XMLSchema#gYear': + return new Date(literal.value + '-01-01'); + case 'http://www.w3.org/2001/XMLSchema#gYearMonth': + return new Date(literal.value + '-01'); + default: + return new Date(literal.value); + } + } + toRdf(value, { datatype, dataFactory }) { + datatype = datatype || dataFactory.namedNode(TypeHandlerDate.TYPES[0]); + // Assume date values + if (!(value instanceof Date)) { + return null; + } + const date = value; + let valueString; + switch (datatype.value) { + case 'http://www.w3.org/2001/XMLSchema#gDay': + valueString = String(date.getUTCDate()); + break; + case 'http://www.w3.org/2001/XMLSchema#gMonthDay': + valueString = (date.getUTCMonth() + 1) + '-' + date.getUTCDate(); + break; + case 'http://www.w3.org/2001/XMLSchema#gYear': + valueString = String(date.getUTCFullYear()); + break; + case 'http://www.w3.org/2001/XMLSchema#gYearMonth': + valueString = date.getUTCFullYear() + '-' + (date.getUTCMonth() + 1); + break; + case 'http://www.w3.org/2001/XMLSchema#date': + valueString = date.toISOString().replace(/T.*$/, ''); + break; + default: + valueString = date.toISOString(); + } + return dataFactory.literal(valueString, datatype); + } +} +exports.TypeHandlerDate = TypeHandlerDate; +TypeHandlerDate.TYPES = [ + 'http://www.w3.org/2001/XMLSchema#dateTime', + 'http://www.w3.org/2001/XMLSchema#date', + 'http://www.w3.org/2001/XMLSchema#gDay', + 'http://www.w3.org/2001/XMLSchema#gMonthDay', + 'http://www.w3.org/2001/XMLSchema#gYear', + 'http://www.w3.org/2001/XMLSchema#gYearMonth', +]; +TypeHandlerDate.VALIDATORS = { + date: /^[0-9]+-[0-9][0-9]-[0-9][0-9]Z?$/, + dateTime: /^[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][0-9][0-9])?((Z?)|([\+-][0-9][0-9]:[0-9][0-9]))$/, + gDay: /^[0-9]+$/, + gMonthDay: /^[0-9]+-[0-9][0-9]$/, + gYear: /^[0-9]+$/, + gYearMonth: /^[0-9]+-[0-9][0-9]$/, +}; +//# sourceMappingURL=TypeHandlerDate.js.map + +/***/ }), + +/***/ "./node_modules/rdf-literal/lib/handler/TypeHandlerNumberDouble.js": +/*!*************************************************************************!*\ + !*** ./node_modules/rdf-literal/lib/handler/TypeHandlerNumberDouble.js ***! + \*************************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +exports.TypeHandlerNumberDouble = void 0; +const Translator_1 = __webpack_require__(/*! ../Translator */ "./node_modules/rdf-literal/lib/Translator.js"); +/** + * Translates double numbers. + */ +class TypeHandlerNumberDouble { + fromRdf(literal, validate) { + const parsed = parseFloat(literal.value); + if (validate) { + if (isNaN(parsed)) { + Translator_1.Translator.incorrectRdfDataType(literal); + } + // TODO: validate more + } + return parsed; + } + toRdf(value, { datatype, dataFactory }) { + datatype = datatype || dataFactory.namedNode(TypeHandlerNumberDouble.TYPES[0]); + if (isNaN(value)) { + return dataFactory.literal('NaN', datatype); + } + if (!isFinite(value)) { + return dataFactory.literal(value > 0 ? 'INF' : '-INF', datatype); + } + if (value % 1 === 0) { + return null; + } + return dataFactory.literal(value.toExponential(15).replace(/(\d)0*e\+?/, '$1E'), datatype); + } +} +exports.TypeHandlerNumberDouble = TypeHandlerNumberDouble; +TypeHandlerNumberDouble.TYPES = [ + 'http://www.w3.org/2001/XMLSchema#double', + 'http://www.w3.org/2001/XMLSchema#decimal', + 'http://www.w3.org/2001/XMLSchema#float', +]; +//# sourceMappingURL=TypeHandlerNumberDouble.js.map + +/***/ }), + +/***/ "./node_modules/rdf-literal/lib/handler/TypeHandlerNumberInteger.js": +/*!**************************************************************************!*\ + !*** ./node_modules/rdf-literal/lib/handler/TypeHandlerNumberInteger.js ***! + \**************************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +exports.TypeHandlerNumberInteger = void 0; +const Translator_1 = __webpack_require__(/*! ../Translator */ "./node_modules/rdf-literal/lib/Translator.js"); +/** + * Translates integer numbers. + */ +class TypeHandlerNumberInteger { + fromRdf(literal, validate) { + const parsed = parseInt(literal.value, 10); + if (validate) { + if (isNaN(parsed) || literal.value.indexOf('.') >= 0) { + Translator_1.Translator.incorrectRdfDataType(literal); + } + // TODO: validate more + } + return parsed; + } + toRdf(value, { datatype, dataFactory }) { + return dataFactory.literal(String(value), datatype + || (value <= TypeHandlerNumberInteger.MAX_INT && value >= TypeHandlerNumberInteger.MIN_INT + ? dataFactory.namedNode(TypeHandlerNumberInteger.TYPES[0]) + : dataFactory.namedNode(TypeHandlerNumberInteger.TYPES[1]))); + } +} +exports.TypeHandlerNumberInteger = TypeHandlerNumberInteger; +TypeHandlerNumberInteger.TYPES = [ + 'http://www.w3.org/2001/XMLSchema#integer', + 'http://www.w3.org/2001/XMLSchema#long', + 'http://www.w3.org/2001/XMLSchema#int', + 'http://www.w3.org/2001/XMLSchema#byte', + 'http://www.w3.org/2001/XMLSchema#short', + 'http://www.w3.org/2001/XMLSchema#negativeInteger', + 'http://www.w3.org/2001/XMLSchema#nonNegativeInteger', + 'http://www.w3.org/2001/XMLSchema#nonPositiveInteger', + 'http://www.w3.org/2001/XMLSchema#positiveInteger', + 'http://www.w3.org/2001/XMLSchema#unsignedByte', + 'http://www.w3.org/2001/XMLSchema#unsignedInt', + 'http://www.w3.org/2001/XMLSchema#unsignedLong', + 'http://www.w3.org/2001/XMLSchema#unsignedShort', +]; +TypeHandlerNumberInteger.MAX_INT = 2147483647; +TypeHandlerNumberInteger.MIN_INT = -2147483648; +//# sourceMappingURL=TypeHandlerNumberInteger.js.map + +/***/ }), + +/***/ "./node_modules/rdf-literal/lib/handler/TypeHandlerString.js": +/*!*******************************************************************!*\ + !*** ./node_modules/rdf-literal/lib/handler/TypeHandlerString.js ***! + \*******************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +exports.TypeHandlerString = void 0; +/** + * Translates strings. + */ +class TypeHandlerString { + fromRdf(literal) { + return literal.value; + } + toRdf(value, { datatype, dataFactory }) { + return dataFactory.literal(value, datatype); + } +} +exports.TypeHandlerString = TypeHandlerString; +TypeHandlerString.TYPES = [ + 'http://www.w3.org/2001/XMLSchema#string', + 'http://www.w3.org/2001/XMLSchema#normalizedString', + 'http://www.w3.org/2001/XMLSchema#anyURI', + 'http://www.w3.org/2001/XMLSchema#base64Binary', + 'http://www.w3.org/2001/XMLSchema#language', + 'http://www.w3.org/2001/XMLSchema#Name', + 'http://www.w3.org/2001/XMLSchema#NCName', + 'http://www.w3.org/2001/XMLSchema#NMTOKEN', + 'http://www.w3.org/2001/XMLSchema#token', + 'http://www.w3.org/2001/XMLSchema#hexBinary', + 'http://www.w3.org/1999/02/22-rdf-syntax-ns#langString', + 'http://www.w3.org/2001/XMLSchema#time', + 'http://www.w3.org/2001/XMLSchema#duration', +]; +//# sourceMappingURL=TypeHandlerString.js.map + +/***/ }), + +/***/ "./node_modules/rdf-literal/lib/handler/index.js": +/*!*******************************************************!*\ + !*** ./node_modules/rdf-literal/lib/handler/index.js ***! + \*******************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __exportStar = (this && this.__exportStar) || function(m, exports) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +__exportStar(__webpack_require__(/*! ./TypeHandlerBoolean */ "./node_modules/rdf-literal/lib/handler/TypeHandlerBoolean.js"), exports); +__exportStar(__webpack_require__(/*! ./TypeHandlerDate */ "./node_modules/rdf-literal/lib/handler/TypeHandlerDate.js"), exports); +__exportStar(__webpack_require__(/*! ./TypeHandlerNumberDouble */ "./node_modules/rdf-literal/lib/handler/TypeHandlerNumberDouble.js"), exports); +__exportStar(__webpack_require__(/*! ./TypeHandlerNumberInteger */ "./node_modules/rdf-literal/lib/handler/TypeHandlerNumberInteger.js"), exports); +__exportStar(__webpack_require__(/*! ./TypeHandlerString */ "./node_modules/rdf-literal/lib/handler/TypeHandlerString.js"), exports); +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ "./node_modules/rdf-store-stream/index.js": +/*!************************************************!*\ + !*** ./node_modules/rdf-store-stream/index.js ***! + \************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +exports.storeStream = void 0; +const n3_1 = __webpack_require__(/*! n3 */ "./node_modules/n3/src/index.js"); +/** + * Import all quads in the given stream into a new RDF store. + * + * The whole stream will be consumed for this, + * and the promise will resolve once the stream's end event is emitted. + * + * @param {Stream} stream An RDF stream containing the quads to import into the store. + * @return {Promise>} A promise resolving to an RDF store. + */ +function storeStream(stream) { + const store = new n3_1.Store(); + return new Promise((resolve, reject) => store.import(stream) + .on('error', reject) + .once('end', () => resolve(store))); +} +exports.storeStream = storeStream; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ "./node_modules/rdf-string-ttl/index.js": +/*!**********************************************!*\ + !*** ./node_modules/rdf-string-ttl/index.js ***! + \**********************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +exports.termToString = exports.stringToTerm = exports.stringQuadToQuad = exports.quadToStringQuad = exports.getLiteralValue = exports.getLiteralType = exports.getLiteralLanguage = void 0; +const TermUtil_1 = __webpack_require__(/*! ./lib/TermUtil */ "./node_modules/rdf-string-ttl/lib/TermUtil.js"); +Object.defineProperty(exports, "getLiteralLanguage", { enumerable: true, get: function () { return TermUtil_1.getLiteralLanguage; } }); +Object.defineProperty(exports, "getLiteralType", { enumerable: true, get: function () { return TermUtil_1.getLiteralType; } }); +Object.defineProperty(exports, "getLiteralValue", { enumerable: true, get: function () { return TermUtil_1.getLiteralValue; } }); +Object.defineProperty(exports, "quadToStringQuad", { enumerable: true, get: function () { return TermUtil_1.quadToStringQuad; } }); +Object.defineProperty(exports, "stringQuadToQuad", { enumerable: true, get: function () { return TermUtil_1.stringQuadToQuad; } }); +Object.defineProperty(exports, "stringToTerm", { enumerable: true, get: function () { return TermUtil_1.stringToTerm; } }); +Object.defineProperty(exports, "termToString", { enumerable: true, get: function () { return TermUtil_1.termToString; } }); +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ "./node_modules/rdf-string-ttl/lib/TermUtil.js": +/*!*****************************************************!*\ + !*** ./node_modules/rdf-string-ttl/lib/TermUtil.js ***! + \*****************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +exports.stringQuadToQuad = exports.quadToStringQuad = exports.stringToTerm = exports.getLiteralLanguage = exports.getLiteralType = exports.getLiteralValue = exports.termToString = void 0; +const rdf_data_factory_1 = __webpack_require__(/*! rdf-data-factory */ "./node_modules/rdf-data-factory/index.js"); +const FACTORY = new rdf_data_factory_1.DataFactory(); +/** + * Utility methods for converting between string-based RDF representations and RDFJS objects. + * + * RDF Terms are represented as follows: + * * Blank nodes: '_:myBlankNode' + * * Variables: '_myVariable' + * * Literals: '"myString"', '"myLanguageString"@en-us', '"

e

"^^' + * * URIs: '' + * + * Quads/triples are represented as hashes with 'subject', 'predicate', 'object' and 'graph' (optional) + * as keys, and string-based RDF terms as values. + */ +/** + * Convert an RDFJS term to a string-based representation. + * @param {RDF.Term} term An RDFJS term. + * @return {string} A string-based term representation. + */ +function termToString(term) { + // TODO: remove nasty any casts when this TS bug has been fixed: https://github.com/microsoft/TypeScript/issues/26933 + if (!term) { + return undefined; + } + switch (term.termType) { + case 'NamedNode': return ('<' + term.value + '>'); + case 'BlankNode': return ('_:' + term.value); + case 'Literal': + const literalValue = term; + return ('"' + literalValue.value.replace(/"/ug, '\\"') + '"' + + (literalValue.datatype && + literalValue.datatype.value !== 'http://www.w3.org/2001/XMLSchema#string' && + literalValue.datatype.value !== 'http://www.w3.org/1999/02/22-rdf-syntax-ns#langString' ? + '^^<' + literalValue.datatype.value + '>' : '') + + (literalValue.language ? '@' + literalValue.language : '')); + case 'Quad': return `<<${termToString(term.subject)} ${termToString(term.predicate)} ${termToString(term.object)}${term.graph.termType === 'DefaultGraph' ? '' : ' ' + termToString(term.graph)}>>`; + case 'Variable': return ('?' + term.value); + case 'DefaultGraph': return term.value; + } +} +exports.termToString = termToString; +/** + * Get the string value of a literal. + * @param {string} literalValue An RDF literal enclosed by '"'. + * @return {string} The literal value inside the '"'. + */ +function getLiteralValue(literalValue) { + const match = /^"([^]*)"((\^\^.*)|(@.*))?$/.exec(literalValue); + if (!match) { + throw new Error(literalValue + ' is not a literal'); + } + return match[1].replace(/\\"/ug, '"'); +} +exports.getLiteralValue = getLiteralValue; +/** + * Get the datatype of the given literal. + * @param {string} literalValue An RDF literal. + * @return {string} The datatype of the literal. + */ +function getLiteralType(literalValue) { + const match = /^"[^]*"(?:\^\^<([^"]+)>|(@)[^@"]+)?$/.exec(literalValue); + if (!match) { + throw new Error(literalValue + ' is not a literal'); + } + return match[1] || (match[2] + ? 'http://www.w3.org/1999/02/22-rdf-syntax-ns#langString' : 'http://www.w3.org/2001/XMLSchema#string'); +} +exports.getLiteralType = getLiteralType; +/** + * Get the language of the given literal. + * @param {string} literalValue An RDF literal. + * @return {string} The language of the literal. + */ +function getLiteralLanguage(literalValue) { + const match = /^"[^]*"(?:@([^@"]+)|\^\^[^"]+)?$/.exec(literalValue); + if (!match) { + throw new Error(literalValue + ' is not a literal'); + } + return match[1] ? match[1].toLowerCase() : ''; +} +exports.getLiteralLanguage = getLiteralLanguage; +/** + * Transform a string-based RDF term to an RDFJS term. + * @param {string} value A string-based RDF-term. + * @param {RDF.DataFactory} dataFactory An optional datafactory to create terms with. + * @return {RDF.Term} An RDF-JS term. + */ +function stringToTerm(value, dataFactory) { + dataFactory = dataFactory || FACTORY; + if (!value || !value.length) { + return dataFactory.defaultGraph(); + } + switch (value[0]) { + case '_': return dataFactory.blankNode(value.substr(2)); + case '?': + if (!dataFactory.variable) { + throw new Error(`Missing 'variable()' method on the given DataFactory`); + } + return dataFactory.variable(value.substr(1)); + case '"': + const language = getLiteralLanguage(value); + const type = dataFactory.namedNode(getLiteralType(value)); + return dataFactory.literal(getLiteralValue(value), language || type); + case '<': + default: + if (value.startsWith('<<') && value.endsWith('>>')) { + // Iterate character-by-character to detect spaces that are *not* wrapped in <<>> + const terms = value.slice(2, -2); + const stringTerms = []; + let ignoreTags = 0; + let lastIndex = 0; + for (let i = 0; i < terms.length; i++) { + const char = terms[i]; + if (char === '<') + ignoreTags++; + if (char === '>') { + if (ignoreTags === 0) { + throw new Error('Found closing tag without opening tag in ' + value); + } + else { + ignoreTags--; + } + } + if (char === ' ' && ignoreTags === 0) { + stringTerms.push(terms.slice(lastIndex, i)); + lastIndex = i + 1; + } + } + if (ignoreTags !== 0) { + throw new Error('Found opening tag without closing tag in ' + value); + } + stringTerms.push(terms.slice(lastIndex, terms.length)); + // We require 3 or 4 components + if (stringTerms.length !== 3 && stringTerms.length !== 4) { + throw new Error('Nested quad syntax error ' + value); + } + return dataFactory.quad(stringToTerm(stringTerms[0]), stringToTerm(stringTerms[1]), stringToTerm(stringTerms[2]), stringTerms[3] ? stringToTerm(stringTerms[3]) : undefined); + } + if (value.charAt(0) !== '<' || value.charAt(value.length - 1) !== '>') { + throw new Error(`Detected invalid iri for named node (must be wrapped in <>): ${value}`); + } + return dataFactory.namedNode(value.substring(1, value.length - 1)); + } +} +exports.stringToTerm = stringToTerm; +/** + * Convert an RDFJS quad to a string-based quad representation. + * @param {Quad} q An RDFJS quad. + * @return {IStringQuad} A hash with string-based quad terms. + * @template Q The type of quad, defaults to RDF.Quad. + */ +function quadToStringQuad(q) { + // tslint:disable:object-literal-sort-keys + return { + subject: termToString(q.subject), + predicate: termToString(q.predicate), + object: termToString(q.object), + graph: termToString(q.graph), + }; + // tslint:enable:object-literal-sort-keys +} +exports.quadToStringQuad = quadToStringQuad; +/** + * Convert a string-based quad representation to an RDFJS quad. + * @param {IStringQuad} stringQuad A hash with string-based quad terms. + * @param {RDF.DataFactory} dataFactory An optional datafactory to create terms with. + * @return {Q} An RDFJS quad. + * @template Q The type of quad, defaults to RDF.Quad. + */ +function stringQuadToQuad(stringQuad, dataFactory) { + dataFactory = dataFactory || FACTORY; + return dataFactory.quad(stringToTerm(stringQuad.subject, dataFactory), stringToTerm(stringQuad.predicate, dataFactory), stringToTerm(stringQuad.object, dataFactory), stringToTerm(stringQuad.graph, dataFactory)); +} +exports.stringQuadToQuad = stringQuadToQuad; +//# sourceMappingURL=TermUtil.js.map + +/***/ }), + +/***/ "./node_modules/rdf-string/index.js": +/*!******************************************!*\ + !*** ./node_modules/rdf-string/index.js ***! + \******************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +exports.termToString = exports.stringToTerm = exports.stringQuadToQuad = exports.quadToStringQuad = exports.getLiteralValue = exports.getLiteralType = exports.getLiteralLanguage = void 0; +const TermUtil_1 = __webpack_require__(/*! ./lib/TermUtil */ "./node_modules/rdf-string/lib/TermUtil.js"); +Object.defineProperty(exports, "getLiteralLanguage", { enumerable: true, get: function () { return TermUtil_1.getLiteralLanguage; } }); +Object.defineProperty(exports, "getLiteralType", { enumerable: true, get: function () { return TermUtil_1.getLiteralType; } }); +Object.defineProperty(exports, "getLiteralValue", { enumerable: true, get: function () { return TermUtil_1.getLiteralValue; } }); +Object.defineProperty(exports, "quadToStringQuad", { enumerable: true, get: function () { return TermUtil_1.quadToStringQuad; } }); +Object.defineProperty(exports, "stringQuadToQuad", { enumerable: true, get: function () { return TermUtil_1.stringQuadToQuad; } }); +Object.defineProperty(exports, "stringToTerm", { enumerable: true, get: function () { return TermUtil_1.stringToTerm; } }); +Object.defineProperty(exports, "termToString", { enumerable: true, get: function () { return TermUtil_1.termToString; } }); +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ "./node_modules/rdf-string/lib/TermUtil.js": +/*!*************************************************!*\ + !*** ./node_modules/rdf-string/lib/TermUtil.js ***! + \*************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +exports.stringQuadToQuad = exports.quadToStringQuad = exports.stringToTerm = exports.getLiteralLanguage = exports.getLiteralType = exports.getLiteralValue = exports.termToString = void 0; +const rdf_data_factory_1 = __webpack_require__(/*! rdf-data-factory */ "./node_modules/rdf-data-factory/index.js"); +const FACTORY = new rdf_data_factory_1.DataFactory(); +/** + * Utility methods for converting between string-based RDF representations and RDFJS objects. + * + * RDF Terms are represented as follows: + * * Blank nodes: '_:myBlankNode' + * * Variables: '?myVariable' + * * Literals: '"myString"', '"myLanguageString"@en-us', '"3"^^xsd:number' + * * URIs: 'http://example.org' + * + * Quads/triples are represented as hashes with 'subject', 'predicate', 'object' and 'graph' (optional) + * as keys, and string-based RDF terms as values. + */ +/** + * Convert an RDFJS term to a string-based representation. + * @param {RDF.Term} term An RDFJS term. + * @return {string} A string-based term representation. + */ +function termToString(term) { + // TODO: remove nasty any casts when this TS bug has been fixed: https://github.com/microsoft/TypeScript/issues/26933 + if (!term) { + return undefined; + } + switch (term.termType) { + case 'NamedNode': return term.value; + case 'BlankNode': return ('_:' + term.value); + case 'Literal': + const literalValue = term; + return ('"' + literalValue.value + '"' + + (literalValue.datatype && + literalValue.datatype.value !== 'http://www.w3.org/2001/XMLSchema#string' && + literalValue.datatype.value !== 'http://www.w3.org/1999/02/22-rdf-syntax-ns#langString' ? + '^^' + literalValue.datatype.value : '') + + (literalValue.language ? '@' + literalValue.language : '')); + case 'Quad': return `<<${termToString(term.subject)} ${termToString(term.predicate)} ${termToString(term.object)}${term.graph.termType === 'DefaultGraph' ? '' : ' ' + termToString(term.graph)}>>`; + case 'Variable': return ('?' + term.value); + case 'DefaultGraph': return term.value; + } +} +exports.termToString = termToString; +/** + * Get the string value of a literal. + * @param {string} literalValue An RDF literal enclosed by '"'. + * @return {string} The literal value inside the '"'. + */ +function getLiteralValue(literalValue) { + const match = /^"([^]*)"/.exec(literalValue); + if (!match) { + throw new Error(literalValue + ' is not a literal'); + } + return match[1]; +} +exports.getLiteralValue = getLiteralValue; +/** + * Get the datatype of the given literal. + * @param {string} literalValue An RDF literal. + * @return {string} The datatype of the literal. + */ +function getLiteralType(literalValue) { + const match = /^"[^]*"(?:\^\^([^"]+)|(@)[^@"]+)?$/.exec(literalValue); + if (!match) { + throw new Error(literalValue + ' is not a literal'); + } + return match[1] || (match[2] + ? 'http://www.w3.org/1999/02/22-rdf-syntax-ns#langString' : 'http://www.w3.org/2001/XMLSchema#string'); +} +exports.getLiteralType = getLiteralType; +/** + * Get the language of the given literal. + * @param {string} literalValue An RDF literal. + * @return {string} The language of the literal. + */ +function getLiteralLanguage(literalValue) { + const match = /^"[^]*"(?:@([^@"]+)|\^\^[^"]+)?$/.exec(literalValue); + if (!match) { + throw new Error(literalValue + ' is not a literal'); + } + return match[1] ? match[1].toLowerCase() : ''; +} +exports.getLiteralLanguage = getLiteralLanguage; +/** + * Transform a string-based RDF term to an RDFJS term. + * @param {string} value A string-based RDF-term. + * @param {RDF.DataFactory} dataFactory An optional datafactory to create terms with. + * @return {RDF.Term} An RDF-JS term. + */ +function stringToTerm(value, dataFactory) { + dataFactory = dataFactory || FACTORY; + if (!value || !value.length) { + return dataFactory.defaultGraph(); + } + switch (value[0]) { + case '_': return dataFactory.blankNode(value.substr(2)); + case '?': + if (!dataFactory.variable) { + throw new Error(`Missing 'variable()' method on the given DataFactory`); + } + return dataFactory.variable(value.substr(1)); + case '"': + const language = getLiteralLanguage(value); + const type = dataFactory.namedNode(getLiteralType(value)); + return dataFactory.literal(getLiteralValue(value), language || type); + case '<': + default: + if (value.startsWith('<<') && value.endsWith('>>')) { + // Iterate character-by-character to detect spaces that are *not* wrapped in <<>> + const terms = value.slice(2, -2); + const stringTerms = []; + let ignoreTags = 0; + let lastIndex = 0; + for (let i = 0; i < terms.length; i++) { + const char = terms[i]; + if (char === '<') + ignoreTags++; + if (char === '>') { + if (ignoreTags === 0) { + throw new Error('Found closing tag without opening tag in ' + value); + } + else { + ignoreTags--; + } + } + if (char === ' ' && ignoreTags === 0) { + stringTerms.push(terms.slice(lastIndex, i)); + lastIndex = i + 1; + } + } + if (ignoreTags !== 0) { + throw new Error('Found opening tag without closing tag in ' + value); + } + stringTerms.push(terms.slice(lastIndex, terms.length)); + // We require 3 or 4 components + if (stringTerms.length !== 3 && stringTerms.length !== 4) { + throw new Error('Nested quad syntax error ' + value); + } + return dataFactory.quad(stringToTerm(stringTerms[0]), stringToTerm(stringTerms[1]), stringToTerm(stringTerms[2]), stringTerms[3] ? stringToTerm(stringTerms[3]) : undefined); + } + return dataFactory.namedNode(value); + } +} +exports.stringToTerm = stringToTerm; +/** + * Convert an RDFJS quad to a string-based quad representation. + * @param {Quad} q An RDFJS quad. + * @return {IStringQuad} A hash with string-based quad terms. + * @template Q The type of quad, defaults to RDF.Quad. + */ +function quadToStringQuad(q) { + // tslint:disable:object-literal-sort-keys + return { + subject: termToString(q.subject), + predicate: termToString(q.predicate), + object: termToString(q.object), + graph: termToString(q.graph), + }; + // tslint:enable:object-literal-sort-keys +} +exports.quadToStringQuad = quadToStringQuad; +/** + * Convert a string-based quad representation to an RDFJS quad. + * @param {IStringQuad} stringQuad A hash with string-based quad terms. + * @param {RDF.DataFactory} dataFactory An optional datafactory to create terms with. + * @return {Q} An RDFJS quad. + * @template Q The type of quad, defaults to RDF.Quad. + */ +function stringQuadToQuad(stringQuad, dataFactory) { + dataFactory = dataFactory || FACTORY; + return dataFactory.quad(stringToTerm(stringQuad.subject, dataFactory), stringToTerm(stringQuad.predicate, dataFactory), stringToTerm(stringQuad.object, dataFactory), stringToTerm(stringQuad.graph, dataFactory)); +} +exports.stringQuadToQuad = stringQuadToQuad; +//# sourceMappingURL=TermUtil.js.map + +/***/ }), + +/***/ "./node_modules/rdf-terms/index.js": +/*!*****************************************!*\ + !*** ./node_modules/rdf-terms/index.js ***! + \*****************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +exports.TRIPLE_TERM_NAMES = exports.someTerms = exports.everyTerms = exports.reduceTerms = exports.mapTerms = exports.filterQuadTermNames = exports.filterTerms = exports.forEachTerms = exports.collectNamedTerms = exports.getNamedTerms = exports.getTermsNested = exports.getTerms = exports.QUAD_TERM_NAMES = exports.matchPatternComplete = exports.matchPattern = exports.getDefaultGraphs = exports.getVariables = exports.getLiterals = exports.getBlankNodes = exports.getNamedNodes = exports.getTermsOfType = exports.uniqTerms = exports.TERM_TYPES = void 0; +const QuadTermUtil_1 = __webpack_require__(/*! ./lib/QuadTermUtil */ "./node_modules/rdf-terms/lib/QuadTermUtil.js"); +Object.defineProperty(exports, "collectNamedTerms", { enumerable: true, get: function () { return QuadTermUtil_1.collectNamedTerms; } }); +Object.defineProperty(exports, "everyTerms", { enumerable: true, get: function () { return QuadTermUtil_1.everyTerms; } }); +Object.defineProperty(exports, "filterQuadTermNames", { enumerable: true, get: function () { return QuadTermUtil_1.filterQuadTermNames; } }); +Object.defineProperty(exports, "filterTerms", { enumerable: true, get: function () { return QuadTermUtil_1.filterTerms; } }); +Object.defineProperty(exports, "forEachTerms", { enumerable: true, get: function () { return QuadTermUtil_1.forEachTerms; } }); +Object.defineProperty(exports, "getNamedTerms", { enumerable: true, get: function () { return QuadTermUtil_1.getNamedTerms; } }); +Object.defineProperty(exports, "getTerms", { enumerable: true, get: function () { return QuadTermUtil_1.getTerms; } }); +Object.defineProperty(exports, "getTermsNested", { enumerable: true, get: function () { return QuadTermUtil_1.getTermsNested; } }); +Object.defineProperty(exports, "mapTerms", { enumerable: true, get: function () { return QuadTermUtil_1.mapTerms; } }); +Object.defineProperty(exports, "matchPattern", { enumerable: true, get: function () { return QuadTermUtil_1.matchPattern; } }); +Object.defineProperty(exports, "matchPatternComplete", { enumerable: true, get: function () { return QuadTermUtil_1.matchPatternComplete; } }); +Object.defineProperty(exports, "QUAD_TERM_NAMES", { enumerable: true, get: function () { return QuadTermUtil_1.QUAD_TERM_NAMES; } }); +Object.defineProperty(exports, "reduceTerms", { enumerable: true, get: function () { return QuadTermUtil_1.reduceTerms; } }); +Object.defineProperty(exports, "someTerms", { enumerable: true, get: function () { return QuadTermUtil_1.someTerms; } }); +Object.defineProperty(exports, "TRIPLE_TERM_NAMES", { enumerable: true, get: function () { return QuadTermUtil_1.TRIPLE_TERM_NAMES; } }); +const TermUtil_1 = __webpack_require__(/*! ./lib/TermUtil */ "./node_modules/rdf-terms/lib/TermUtil.js"); +Object.defineProperty(exports, "getBlankNodes", { enumerable: true, get: function () { return TermUtil_1.getBlankNodes; } }); +Object.defineProperty(exports, "getDefaultGraphs", { enumerable: true, get: function () { return TermUtil_1.getDefaultGraphs; } }); +Object.defineProperty(exports, "getLiterals", { enumerable: true, get: function () { return TermUtil_1.getLiterals; } }); +Object.defineProperty(exports, "getNamedNodes", { enumerable: true, get: function () { return TermUtil_1.getNamedNodes; } }); +Object.defineProperty(exports, "getTermsOfType", { enumerable: true, get: function () { return TermUtil_1.getTermsOfType; } }); +Object.defineProperty(exports, "getVariables", { enumerable: true, get: function () { return TermUtil_1.getVariables; } }); +Object.defineProperty(exports, "TERM_TYPES", { enumerable: true, get: function () { return TermUtil_1.TERM_TYPES; } }); +Object.defineProperty(exports, "uniqTerms", { enumerable: true, get: function () { return TermUtil_1.uniqTerms; } }); +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ "./node_modules/rdf-terms/lib/QuadTermUtil.js": +/*!****************************************************!*\ + !*** ./node_modules/rdf-terms/lib/QuadTermUtil.js ***! + \****************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +exports.matchPatternComplete = exports.matchPattern = exports.matchTerm = exports.someTerms = exports.everyTerms = exports.reduceTerms = exports.mapTerms = exports.filterQuadTermNames = exports.filterTerms = exports.forEachTerms = exports.collectNamedTerms = exports.getNamedTerms = exports.getTermsNested = exports.getTerms = exports.TRIPLE_TERM_NAMES = exports.QUAD_TERM_NAMES = void 0; +const rdf_data_factory_1 = __webpack_require__(/*! rdf-data-factory */ "./node_modules/rdf-data-factory/index.js"); +const DF = new rdf_data_factory_1.DataFactory(); +/** + * All available quad term names. + * @type {[string , string , string , string]} + */ +exports.QUAD_TERM_NAMES = ['subject', 'predicate', 'object', 'graph']; +/** + * All available triple term names. + * @type {[string , string , string]} + */ +exports.TRIPLE_TERM_NAMES = ['subject', 'predicate', 'object']; +/** + * Get all terms in the given quad. + * @param {BaseQuad} quad An RDFJS quad. + * @param {boolean} ignoreDefaultGraph If true and the quad has the default graph as graph, + * this term will not be returned in the array. + * (default: false) + * @return {Term[]} The available terms in the quad. + */ +function getTerms(quad, ignoreDefaultGraph) { + if (ignoreDefaultGraph && quad.graph.termType === 'DefaultGraph') { + return [quad.subject, quad.predicate, quad.object]; + } + return [quad.subject, quad.predicate, quad.object, quad.graph]; +} +exports.getTerms = getTerms; +/** + * Get all terms in the given quad, including nested quads. + * @param {BaseQuad} quad An RDFJS quad. + * @param {boolean} ignoreDefaultGraph If true and the quad has the default graph as graph, + * this term will not be returned in the array. + * (default: false) + * @return {Term[]} The available terms in the nested quad, excluding quad terms. + */ +function getTermsNested(quad, ignoreDefaultGraph) { + const terms = []; + for (const term of getTerms(quad, ignoreDefaultGraph)) { + if (term.termType === 'Quad') { + getTermsNested(term, ignoreDefaultGraph).forEach(subTerm => terms.push(subTerm)); + } + else { + terms.push(term); + } + } + return terms; +} +exports.getTermsNested = getTermsNested; +/** + * Convert the given quad to an array of named terms. + * This is the reverse operation of {@link collectNamedTerms}. + * @param {BaseQuad} quad An RDFJS quad. + * @return {INamedTerm[]} An array of named terms. + */ +function getNamedTerms(quad) { + return [ + { key: 'subject', value: quad.subject }, + { key: 'predicate', value: quad.predicate }, + { key: 'object', value: quad.object }, + { key: 'graph', value: quad.graph }, + ]; +} +exports.getNamedTerms = getNamedTerms; +/** + * Convert an array of named terms to an RDFJS quad. + * This is the reverse operation of {@link getNamedTerms}. + * @param {INamedTerm[]} namedTerms An array of named terms. + * @param {(termName: QuadTermName) => Term} defaultCb An optional callback for when + * certain terms are not available in the array. + * @param {RDF.DataFactory} dataFactory A custom data factory to create quads. + * @return {Q} The resulting RDFJS quad. + * @template Q The type of quad to output, defaults to RDF.Quad. + */ +function collectNamedTerms(namedTerms, defaultCb, dataFactory) { + const elements = {}; + namedTerms.forEach((namedTerm) => elements[namedTerm.key] = namedTerm.value); + if (defaultCb) { + elements.subject = elements.subject || defaultCb('subject'); + elements.predicate = elements.predicate || defaultCb('predicate'); + elements.object = elements.object || defaultCb('object'); + elements.graph = elements.graph || defaultCb('graph'); + } + return (dataFactory || DF).quad(elements.subject, elements.predicate, elements.object, elements.graph); +} +exports.collectNamedTerms = collectNamedTerms; +/** + * Iterats over each term. + * @param {BaseQuad} quad An RDFJS quad. + * @param {(value: Term, key: QuadTermName} cb A callback function. + */ +function forEachTerms(quad, cb) { + cb(quad.subject, 'subject'); + cb(quad.predicate, 'predicate'); + cb(quad.object, 'object'); + cb(quad.graph, 'graph'); +} +exports.forEachTerms = forEachTerms; +/** + * Get all terms in the given quad that return true on the given filter function. + * @param {BaseQuad} quad A quad. + * @param {(value: Term, key: QuadTermName) => boolean} filter A filter callback. + * @return {Term[]} The list of matching terms. + */ +function filterTerms(quad, filter) { + const terms = []; + if (filter(quad.subject, 'subject')) { + terms.push(quad.subject); + } + if (filter(quad.predicate, 'predicate')) { + terms.push(quad.predicate); + } + if (filter(quad.object, 'object')) { + terms.push(quad.object); + } + if (filter(quad.graph, 'graph')) { + terms.push(quad.graph); + } + return terms; +} +exports.filterTerms = filterTerms; +/** + * Get all quad term names in the given quad that return true on the given filter function. + * @param {BaseQuad} quad A quad. + * @param {(value: Term, key: QuadTermName, all: INamedTerm[]) => boolean} filter A filter callback. + * @return {QuadTermName[]} The list of matching quad term names. + */ +function filterQuadTermNames(quad, filter) { + const names = []; + if (filter(quad.subject, 'subject')) { + names.push('subject'); + } + if (filter(quad.predicate, 'predicate')) { + names.push('predicate'); + } + if (filter(quad.object, 'object')) { + names.push('object'); + } + if (filter(quad.graph, 'graph')) { + names.push('graph'); + } + return names; +} +exports.filterQuadTermNames = filterQuadTermNames; +/** + * Map all terms of a quad. + * @param {Quad} quad An RDFJS quad. + * @param {(value: Term, key: QuadTermName) => Term} mapper A mapper function. + * @param {RDF.DataFactory} dataFactory A custom data factory to create quads. + * @return {Quad} A new RDFJS quad. + * @template Q The type of quad, defaults to RDF.Quad. + */ +function mapTerms(quad, mapper, dataFactory) { + return (dataFactory || DF).quad(mapper(quad.subject, 'subject'), mapper(quad.predicate, 'predicate'), mapper(quad.object, 'object'), mapper(quad.graph, 'graph')); +} +exports.mapTerms = mapTerms; +/** + * Reduce all terms of a quad. + * @param {BaseQuad} quad An RDFJS quad. + * @param {(previousValue: U, currentValue: Term, key: QuadTermName) => U} reducer A reduce function. + * @param {U} initialValue The initial value. + * @return {U} The final value. + */ +function reduceTerms(quad, reducer, initialValue) { + let value = initialValue; + value = reducer(value, quad.subject, 'subject'); + value = reducer(value, quad.predicate, 'predicate'); + value = reducer(value, quad.object, 'object'); + return reducer(value, quad.graph, 'graph'); +} +exports.reduceTerms = reduceTerms; +/** + * Determines whether all terms satisfy the specified test. + * @param {BaseQuad} quad An RDFJS quad. + * @param {(value: Term, key: QuadTermName} checker A checker function. + * @return {boolean} If all terms satisfy the specified test. + */ +function everyTerms(quad, checker) { + return checker(quad.subject, 'subject') + && checker(quad.predicate, 'predicate') + && checker(quad.object, 'object') + && checker(quad.graph, 'graph'); +} +exports.everyTerms = everyTerms; +/** + * Determines whether at least one term satisfies the specified test. + * @param {BaseQuad} quad An RDFJS quad. + * @param {(value: Term, key: QuadTermName} checker A checker function. + * @return {boolean} If at least one term satisfies the specified test. + */ +function someTerms(quad, checker) { + return checker(quad.subject, 'subject') + || checker(quad.predicate, 'predicate') + || checker(quad.object, 'object') + || checker(quad.graph, 'graph'); +} +exports.someTerms = someTerms; +/** + * Check if the given terms match. + * + * At least one of the following must be true: + * * Term B is undefined. + * * Term B is a variable. + * * Term A and B are quads, and return true for `matchPatternComplete`. + * * Quad term and term are equal (`termB.equals(termA)` return true) + * + * @param termA A term. + * @param termB An optional term. + */ +function matchTerm(termA, termB) { + return !termB + || termB.termType === 'Variable' + || (termB.termType === 'Quad' && termA.termType === 'Quad' && matchPatternComplete(termA, termB)) + || termB.equals(termA); +} +exports.matchTerm = matchTerm; +/** + * Check if the given quad matches with the given quad terms. + * + * Each term must match at least one of the following: + * * Term is undefined. + * * Term is a variable. + * * Quad term and term are both quads, and return true for `matchPatternComplete`. + * * Quad term and term are equal (`quadTerm.equals(term)` return true) + * + * @param {BaseQuad} quad A quad to match with (can not contain variables). + * @param {Term} subject An optional subject. + * @param {Term} predicate An optional predicate. + * @param {Term} object An optional object. + * @param {Term} graph An optional graph. + * @return {boolean} If the quad matches with the quad terms. + */ +function matchPattern(quad, subject, predicate, object, graph) { + return matchTerm(quad.subject, subject) + && matchTerm(quad.predicate, predicate) + && matchTerm(quad.object, object) + && matchTerm(quad.graph, graph); +} +exports.matchPattern = matchPattern; +/** + * Check if the first quad matches with all terms from the second quad. + * + * Each term must match at least one of the following: + * * Quad2 term is a variable. + * * Quad1 term and Quad2 term are equal (`term1.equals(term2)` return true) + * + * @param {BaseQuad} quad A quad (can not contain variables). + * @param {BaseQuad} pattern A quad pattern (can contain variables). + * @return {boolean} If the quad terms match. + */ +function matchPatternComplete(quad, pattern) { + return matchPattern(quad, pattern.subject, pattern.predicate, pattern.object, pattern.graph); +} +exports.matchPatternComplete = matchPatternComplete; +//# sourceMappingURL=QuadTermUtil.js.map /***/ }), -/***/ "./node_modules/rdf-literal/lib/handler/TypeHandlerDate.js": -/*!*****************************************************************!*\ - !*** ./node_modules/rdf-literal/lib/handler/TypeHandlerDate.js ***! - \*****************************************************************/ +/***/ "./node_modules/rdf-terms/lib/TermUtil.js": +/*!************************************************!*\ + !*** ./node_modules/rdf-terms/lib/TermUtil.js ***! + \************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -exports.TypeHandlerDate = void 0; -const Translator_1 = __webpack_require__(/*! ../Translator */ "./node_modules/rdf-literal/lib/Translator.js"); +exports.getQuads = exports.getDefaultGraphs = exports.getVariables = exports.getLiterals = exports.getBlankNodes = exports.getNamedNodes = exports.getTermsOfType = exports.uniqTerms = exports.TERM_TYPES = void 0; +const rdf_string_1 = __webpack_require__(/*! rdf-string */ "./node_modules/rdf-string/index.js"); /** - * Translates dates. + * All known term types. + * @see RDF.Term + * @type {[string , string , string , string , string, string]} */ -class TypeHandlerDate { - fromRdf(literal, validate) { - if (validate && !literal.value.match(TypeHandlerDate - .VALIDATORS[literal.datatype.value.substr(33, literal.datatype.value.length)])) { - Translator_1.Translator.incorrectRdfDataType(literal); - } - switch (literal.datatype.value) { - case 'http://www.w3.org/2001/XMLSchema#gDay': - return new Date(0, 0, parseInt(literal.value, 10)); - case 'http://www.w3.org/2001/XMLSchema#gMonthDay': - const partsMonthDay = literal.value.split('-'); - return new Date(0, parseInt(partsMonthDay[0], 10) - 1, parseInt(partsMonthDay[1], 10)); - case 'http://www.w3.org/2001/XMLSchema#gYear': - return new Date(literal.value + '-01-01'); - case 'http://www.w3.org/2001/XMLSchema#gYearMonth': - return new Date(literal.value + '-01'); - default: - return new Date(literal.value); - } - } - toRdf(value, { datatype, dataFactory }) { - datatype = datatype || dataFactory.namedNode(TypeHandlerDate.TYPES[0]); - // Assume date values - if (!(value instanceof Date)) { - return null; - } - const date = value; - let valueString; - switch (datatype.value) { - case 'http://www.w3.org/2001/XMLSchema#gDay': - valueString = String(date.getUTCDate()); - break; - case 'http://www.w3.org/2001/XMLSchema#gMonthDay': - valueString = (date.getUTCMonth() + 1) + '-' + date.getUTCDate(); - break; - case 'http://www.w3.org/2001/XMLSchema#gYear': - valueString = String(date.getUTCFullYear()); - break; - case 'http://www.w3.org/2001/XMLSchema#gYearMonth': - valueString = date.getUTCFullYear() + '-' + (date.getUTCMonth() + 1); - break; - case 'http://www.w3.org/2001/XMLSchema#date': - valueString = date.toISOString().replace(/T.*$/, ''); - break; - default: - valueString = date.toISOString(); - } - return dataFactory.literal(valueString, datatype); - } +exports.TERM_TYPES = ['NamedNode', 'BlankNode', 'Literal', 'Variable', 'DefaultGraph', 'Quad']; +/* + * Utility methods for handling RDFJS terms. + */ +/** + * Create an array of unique terms from the given array. + * @param {T[]} terms An array of RDFJS terms. + * @return {T[]} A new array of unique RDFJS terms. + */ +function uniqTerms(terms) { + const hash = {}; + return terms.filter(term => { + const termString = rdf_string_1.termToString(term); + return !(termString in hash) && (hash[termString] = true); + }); } -exports.TypeHandlerDate = TypeHandlerDate; -TypeHandlerDate.TYPES = [ - 'http://www.w3.org/2001/XMLSchema#dateTime', - 'http://www.w3.org/2001/XMLSchema#date', - 'http://www.w3.org/2001/XMLSchema#gDay', - 'http://www.w3.org/2001/XMLSchema#gMonthDay', - 'http://www.w3.org/2001/XMLSchema#gYear', - 'http://www.w3.org/2001/XMLSchema#gYearMonth', -]; -TypeHandlerDate.VALIDATORS = { - date: /^[0-9]+-[0-9][0-9]-[0-9][0-9]Z?$/, - dateTime: /^[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][0-9][0-9])?((Z?)|([\+-][0-9][0-9]:[0-9][0-9]))$/, - gDay: /^[0-9]+$/, - gMonthDay: /^[0-9]+-[0-9][0-9]$/, - gYear: /^[0-9]+$/, - gYearMonth: /^[0-9]+-[0-9][0-9]$/, -}; -//# sourceMappingURL=TypeHandlerDate.js.map - -/***/ }), - -/***/ "./node_modules/rdf-literal/lib/handler/TypeHandlerNumberDouble.js": -/*!*************************************************************************!*\ - !*** ./node_modules/rdf-literal/lib/handler/TypeHandlerNumberDouble.js ***! - \*************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -Object.defineProperty(exports, "__esModule", { value: true }); -exports.TypeHandlerNumberDouble = void 0; -const Translator_1 = __webpack_require__(/*! ../Translator */ "./node_modules/rdf-literal/lib/Translator.js"); +exports.uniqTerms = uniqTerms; /** - * Translates double numbers. + * Find all terms of the given type in the given array. + * @param {Term[]} terms An array of RDFJS terms. + * @param {"NamedNode" | "BlankNode" | "Literal" | "Variable" | "DefaultGraph" | "Quad"} termType A term type. + * @return {Term[]} A new array with elements from the given array only containing elements of the given type. */ -class TypeHandlerNumberDouble { - fromRdf(literal, validate) { - const parsed = parseFloat(literal.value); - if (validate) { - if (isNaN(parsed)) { - Translator_1.Translator.incorrectRdfDataType(literal); - } - // TODO: validate more - } - return parsed; - } - toRdf(value, { datatype, dataFactory }) { - datatype = datatype || dataFactory.namedNode(TypeHandlerNumberDouble.TYPES[0]); - if (isNaN(value)) { - return dataFactory.literal('NaN', datatype); - } - if (!isFinite(value)) { - return dataFactory.literal(value > 0 ? 'INF' : '-INF', datatype); - } - if (value % 1 === 0) { - return null; - } - return dataFactory.literal(value.toExponential(15).replace(/(\d)0*e\+?/, '$1E'), datatype); - } +function getTermsOfType(terms, termType) { + return terms.filter((term) => term.termType === termType); } -exports.TypeHandlerNumberDouble = TypeHandlerNumberDouble; -TypeHandlerNumberDouble.TYPES = [ - 'http://www.w3.org/2001/XMLSchema#double', - 'http://www.w3.org/2001/XMLSchema#decimal', - 'http://www.w3.org/2001/XMLSchema#float', -]; -//# sourceMappingURL=TypeHandlerNumberDouble.js.map - -/***/ }), - -/***/ "./node_modules/rdf-literal/lib/handler/TypeHandlerNumberInteger.js": -/*!**************************************************************************!*\ - !*** ./node_modules/rdf-literal/lib/handler/TypeHandlerNumberInteger.js ***! - \**************************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -Object.defineProperty(exports, "__esModule", { value: true }); -exports.TypeHandlerNumberInteger = void 0; -const Translator_1 = __webpack_require__(/*! ../Translator */ "./node_modules/rdf-literal/lib/Translator.js"); +exports.getTermsOfType = getTermsOfType; /** - * Translates integer numbers. + * Find all named nodes in the given array. + * @param {Term[]} terms An array of RDFJS terms. + * @return {NamedNode[]} A new array with elements from the given array only containing named nodes. */ -class TypeHandlerNumberInteger { - fromRdf(literal, validate) { - const parsed = parseInt(literal.value, 10); - if (validate) { - if (isNaN(parsed) || literal.value.indexOf('.') >= 0) { - Translator_1.Translator.incorrectRdfDataType(literal); - } - // TODO: validate more - } - return parsed; - } - toRdf(value, { datatype, dataFactory }) { - return dataFactory.literal(String(value), datatype - || (value <= TypeHandlerNumberInteger.MAX_INT && value >= TypeHandlerNumberInteger.MIN_INT - ? dataFactory.namedNode(TypeHandlerNumberInteger.TYPES[0]) - : dataFactory.namedNode(TypeHandlerNumberInteger.TYPES[1]))); - } +function getNamedNodes(terms) { + return getTermsOfType(terms, 'NamedNode'); } -exports.TypeHandlerNumberInteger = TypeHandlerNumberInteger; -TypeHandlerNumberInteger.TYPES = [ - 'http://www.w3.org/2001/XMLSchema#integer', - 'http://www.w3.org/2001/XMLSchema#long', - 'http://www.w3.org/2001/XMLSchema#int', - 'http://www.w3.org/2001/XMLSchema#byte', - 'http://www.w3.org/2001/XMLSchema#short', - 'http://www.w3.org/2001/XMLSchema#negativeInteger', - 'http://www.w3.org/2001/XMLSchema#nonNegativeInteger', - 'http://www.w3.org/2001/XMLSchema#nonPositiveInteger', - 'http://www.w3.org/2001/XMLSchema#positiveInteger', - 'http://www.w3.org/2001/XMLSchema#unsignedByte', - 'http://www.w3.org/2001/XMLSchema#unsignedInt', - 'http://www.w3.org/2001/XMLSchema#unsignedLong', - 'http://www.w3.org/2001/XMLSchema#unsignedShort', -]; -TypeHandlerNumberInteger.MAX_INT = 2147483647; -TypeHandlerNumberInteger.MIN_INT = -2147483648; -//# sourceMappingURL=TypeHandlerNumberInteger.js.map - -/***/ }), - -/***/ "./node_modules/rdf-literal/lib/handler/TypeHandlerString.js": -/*!*******************************************************************!*\ - !*** ./node_modules/rdf-literal/lib/handler/TypeHandlerString.js ***! - \*******************************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -Object.defineProperty(exports, "__esModule", { value: true }); -exports.TypeHandlerString = void 0; +exports.getNamedNodes = getNamedNodes; /** - * Translates strings. + * Find all blank nodes in the given array. + * @param {Term[]} terms An array of RDFJS terms. + * @return {BlankNode[]} A new array with elements from the given array only containing blank nodes. */ -class TypeHandlerString { - fromRdf(literal) { - return literal.value; - } - toRdf(value, { datatype, dataFactory }) { - return dataFactory.literal(value, datatype); - } +function getBlankNodes(terms) { + return getTermsOfType(terms, 'BlankNode'); } -exports.TypeHandlerString = TypeHandlerString; -TypeHandlerString.TYPES = [ - 'http://www.w3.org/2001/XMLSchema#string', - 'http://www.w3.org/2001/XMLSchema#normalizedString', - 'http://www.w3.org/2001/XMLSchema#anyURI', - 'http://www.w3.org/2001/XMLSchema#base64Binary', - 'http://www.w3.org/2001/XMLSchema#language', - 'http://www.w3.org/2001/XMLSchema#Name', - 'http://www.w3.org/2001/XMLSchema#NCName', - 'http://www.w3.org/2001/XMLSchema#NMTOKEN', - 'http://www.w3.org/2001/XMLSchema#token', - 'http://www.w3.org/2001/XMLSchema#hexBinary', - 'http://www.w3.org/1999/02/22-rdf-syntax-ns#langString', - 'http://www.w3.org/2001/XMLSchema#time', - 'http://www.w3.org/2001/XMLSchema#duration', -]; -//# sourceMappingURL=TypeHandlerString.js.map +exports.getBlankNodes = getBlankNodes; +/** + * Find all literals in the given array. + * @param {Term[]} terms An array of RDFJS terms. + * @return {Literal[]} A new array with elements from the given array only containing literals. + */ +function getLiterals(terms) { + return getTermsOfType(terms, 'Literal'); +} +exports.getLiterals = getLiterals; +/** + * Find all variables in the given array. + * @param {Term[]} terms An array of RDFJS terms. + * @return {Variable[]} A new array with elements from the given array only containing variables. + */ +function getVariables(terms) { + return getTermsOfType(terms, 'Variable'); +} +exports.getVariables = getVariables; +/** + * Find all default graphs in the given array. + * @param {Term[]} terms An array of RDFJS terms. + * @return {DefaultGraph[]} A new array with elements from the given array only containing default graphs. + */ +function getDefaultGraphs(terms) { + return getTermsOfType(terms, 'DefaultGraph'); +} +exports.getDefaultGraphs = getDefaultGraphs; +/** + * Find all quads in the given array. + * @param {Term[]} terms An array of RDFJS terms. + * @return {BaseQuad[]} A new array with elements from the given array only containing quads. + */ +function getQuads(terms) { + return getTermsOfType(terms, 'Quad'); +} +exports.getQuads = getQuads; +//# sourceMappingURL=TermUtil.js.map /***/ }), -/***/ "./node_modules/rdf-literal/lib/handler/index.js": -/*!*******************************************************!*\ - !*** ./node_modules/rdf-literal/lib/handler/index.js ***! - \*******************************************************/ +/***/ "./node_modules/rdfa-streaming-parser/index.js": +/*!*****************************************************!*\ + !*** ./node_modules/rdfa-streaming-parser/index.js ***! + \*****************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { @@ -65090,2108 +69485,2964 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) { for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); }; Object.defineProperty(exports, "__esModule", { value: true }); -__exportStar(__webpack_require__(/*! ./TypeHandlerBoolean */ "./node_modules/rdf-literal/lib/handler/TypeHandlerBoolean.js"), exports); -__exportStar(__webpack_require__(/*! ./TypeHandlerDate */ "./node_modules/rdf-literal/lib/handler/TypeHandlerDate.js"), exports); -__exportStar(__webpack_require__(/*! ./TypeHandlerNumberDouble */ "./node_modules/rdf-literal/lib/handler/TypeHandlerNumberDouble.js"), exports); -__exportStar(__webpack_require__(/*! ./TypeHandlerNumberInteger */ "./node_modules/rdf-literal/lib/handler/TypeHandlerNumberInteger.js"), exports); -__exportStar(__webpack_require__(/*! ./TypeHandlerString */ "./node_modules/rdf-literal/lib/handler/TypeHandlerString.js"), exports); +__exportStar(__webpack_require__(/*! ./lib/IActiveTag */ "./node_modules/rdfa-streaming-parser/lib/IActiveTag.js"), exports); +__exportStar(__webpack_require__(/*! ./lib/IHtmlParseListener */ "./node_modules/rdfa-streaming-parser/lib/IHtmlParseListener.js"), exports); +__exportStar(__webpack_require__(/*! ./lib/IRdfaPattern */ "./node_modules/rdfa-streaming-parser/lib/IRdfaPattern.js"), exports); +__exportStar(__webpack_require__(/*! ./lib/RdfaParser */ "./node_modules/rdfa-streaming-parser/lib/RdfaParser.js"), exports); +__exportStar(__webpack_require__(/*! ./lib/RdfaProfile */ "./node_modules/rdfa-streaming-parser/lib/RdfaProfile.js"), exports); +__exportStar(__webpack_require__(/*! ./lib/Util */ "./node_modules/rdfa-streaming-parser/lib/Util.js"), exports); //# sourceMappingURL=index.js.map /***/ }), -/***/ "./node_modules/rdf-store-stream/index.js": -/*!************************************************!*\ - !*** ./node_modules/rdf-store-stream/index.js ***! - \************************************************/ +/***/ "./node_modules/rdfa-streaming-parser/lib/IActiveTag.js": +/*!**************************************************************!*\ + !*** ./node_modules/rdfa-streaming-parser/lib/IActiveTag.js ***! + \**************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -exports.storeStream = void 0; -const n3_1 = __webpack_require__(/*! n3 */ "./node_modules/n3/src/index.js"); -/** - * Import all quads in the given stream into a new RDF store. - * - * The whole stream will be consumed for this, - * and the promise will resolve once the stream's end event is emitted. - * - * @param {Stream} stream An RDF stream containing the quads to import into the store. - * @return {Promise>} A promise resolving to an RDF store. - */ -function storeStream(stream) { - const store = new n3_1.Store(); - return new Promise((resolve, reject) => store.import(stream) - .on('error', reject) - .once('end', () => resolve(store))); -} -exports.storeStream = storeStream; -//# sourceMappingURL=index.js.map +//# sourceMappingURL=IActiveTag.js.map /***/ }), -/***/ "./node_modules/rdf-string-ttl/index.js": -/*!**********************************************!*\ - !*** ./node_modules/rdf-string-ttl/index.js ***! - \**********************************************/ +/***/ "./node_modules/rdfa-streaming-parser/lib/IHtmlParseListener.js": +/*!**********************************************************************!*\ + !*** ./node_modules/rdfa-streaming-parser/lib/IHtmlParseListener.js ***! + \**********************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -exports.termToString = exports.stringToTerm = exports.stringQuadToQuad = exports.quadToStringQuad = exports.getLiteralValue = exports.getLiteralType = exports.getLiteralLanguage = void 0; -const TermUtil_1 = __webpack_require__(/*! ./lib/TermUtil */ "./node_modules/rdf-string-ttl/lib/TermUtil.js"); -Object.defineProperty(exports, "getLiteralLanguage", { enumerable: true, get: function () { return TermUtil_1.getLiteralLanguage; } }); -Object.defineProperty(exports, "getLiteralType", { enumerable: true, get: function () { return TermUtil_1.getLiteralType; } }); -Object.defineProperty(exports, "getLiteralValue", { enumerable: true, get: function () { return TermUtil_1.getLiteralValue; } }); -Object.defineProperty(exports, "quadToStringQuad", { enumerable: true, get: function () { return TermUtil_1.quadToStringQuad; } }); -Object.defineProperty(exports, "stringQuadToQuad", { enumerable: true, get: function () { return TermUtil_1.stringQuadToQuad; } }); -Object.defineProperty(exports, "stringToTerm", { enumerable: true, get: function () { return TermUtil_1.stringToTerm; } }); -Object.defineProperty(exports, "termToString", { enumerable: true, get: function () { return TermUtil_1.termToString; } }); -//# sourceMappingURL=index.js.map +//# sourceMappingURL=IHtmlParseListener.js.map /***/ }), -/***/ "./node_modules/rdf-string-ttl/lib/TermUtil.js": -/*!*****************************************************!*\ - !*** ./node_modules/rdf-string-ttl/lib/TermUtil.js ***! - \*****************************************************/ +/***/ "./node_modules/rdfa-streaming-parser/lib/IRdfaPattern.js": +/*!****************************************************************!*\ + !*** ./node_modules/rdfa-streaming-parser/lib/IRdfaPattern.js ***! + \****************************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -exports.stringQuadToQuad = exports.quadToStringQuad = exports.stringToTerm = exports.getLiteralLanguage = exports.getLiteralType = exports.getLiteralValue = exports.termToString = void 0; -const rdf_data_factory_1 = __webpack_require__(/*! rdf-data-factory */ "./node_modules/rdf-data-factory/index.js"); -const FACTORY = new rdf_data_factory_1.DataFactory(); -/** - * Utility methods for converting between string-based RDF representations and RDFJS objects. - * - * RDF Terms are represented as follows: - * * Blank nodes: '_:myBlankNode' - * * Variables: '_myVariable' - * * Literals: '"myString"', '"myLanguageString"@en-us', '"

e

"^^' - * * URIs: '' - * - * Quads/triples are represented as hashes with 'subject', 'predicate', 'object' and 'graph' (optional) - * as keys, and string-based RDF terms as values. - */ -/** - * Convert an RDFJS term to a string-based representation. - * @param {RDF.Term} term An RDFJS term. - * @return {string} A string-based term representation. - */ -function termToString(term) { - // TODO: remove nasty any casts when this TS bug has been fixed: https://github.com/microsoft/TypeScript/issues/26933 - if (!term) { - return undefined; - } - switch (term.termType) { - case 'NamedNode': return ('<' + term.value + '>'); - case 'BlankNode': return ('_:' + term.value); - case 'Literal': - const literalValue = term; - return ('"' + literalValue.value.replace(/"/ug, '\\"') + '"' + - (literalValue.datatype && - literalValue.datatype.value !== 'http://www.w3.org/2001/XMLSchema#string' && - literalValue.datatype.value !== 'http://www.w3.org/1999/02/22-rdf-syntax-ns#langString' ? - '^^<' + literalValue.datatype.value + '>' : '') + - (literalValue.language ? '@' + literalValue.language : '')); - case 'Quad': return `<<${termToString(term.subject)} ${termToString(term.predicate)} ${termToString(term.object)}${term.graph.termType === 'DefaultGraph' ? '' : ' ' + termToString(term.graph)}>>`; - case 'Variable': return ('?' + term.value); - case 'DefaultGraph': return term.value; - } -} -exports.termToString = termToString; +//# sourceMappingURL=IRdfaPattern.js.map + +/***/ }), + +/***/ "./node_modules/rdfa-streaming-parser/lib/RdfaParser.js": +/*!**************************************************************!*\ + !*** ./node_modules/rdfa-streaming-parser/lib/RdfaParser.js ***! + \**************************************************************/ +/*! no static exports found */ +/***/ (function(module, exports, __webpack_require__) { + +"use strict"; + +Object.defineProperty(exports, "__esModule", { value: true }); +exports.RdfaParser = void 0; +const htmlparser2_1 = __webpack_require__(/*! htmlparser2 */ "./node_modules/rdfa-streaming-parser/node_modules/htmlparser2/lib/index.js"); +const stream_1 = __webpack_require__(/*! stream */ "./node_modules/stream-browserify/index.js"); +const INITIAL_CONTEXT_XHTML = __webpack_require__(/*! ./initial-context-xhtml.json */ "./node_modules/rdfa-streaming-parser/lib/initial-context-xhtml.json"); +const INITIAL_CONTEXT = __webpack_require__(/*! ./initial-context.json */ "./node_modules/rdfa-streaming-parser/lib/initial-context.json"); +const RdfaProfile_1 = __webpack_require__(/*! ./RdfaProfile */ "./node_modules/rdfa-streaming-parser/lib/RdfaProfile.js"); +const Util_1 = __webpack_require__(/*! ./Util */ "./node_modules/rdfa-streaming-parser/lib/Util.js"); /** - * Get the string value of a literal. - * @param {string} literalValue An RDF literal enclosed by '"'. - * @return {string} The literal value inside the '"'. + * A stream transformer that parses RDFa (text) streams to an {@link RDF.Stream}. */ -function getLiteralValue(literalValue) { - const match = /^"([^]*)"((\^\^.*)|(@.*))?$/.exec(literalValue); - if (!match) { - throw new Error(literalValue + ' is not a literal'); +class RdfaParser extends stream_1.Transform { + constructor(options) { + super({ readableObjectMode: true }); + this.activeTagStack = []; + options = options || {}; + this.options = options; + this.util = new Util_1.Util(options.dataFactory, options.baseIRI); + this.defaultGraph = options.defaultGraph || this.util.dataFactory.defaultGraph(); + const profile = options.contentType ? Util_1.Util.contentTypeToProfile(options.contentType) : options.profile || ''; + this.features = options.features || RdfaProfile_1.RDFA_FEATURES[profile]; + this.htmlParseListener = options.htmlParseListener; + this.rdfaPatterns = this.features.copyRdfaPatterns ? {} : null; + this.pendingRdfaPatternCopies = this.features.copyRdfaPatterns ? {} : null; + this.parser = this.initializeParser(profile === 'xml'); + this.activeTagStack.push({ + incompleteTriples: [], + inlist: false, + language: options.language, + listMapping: {}, + listMappingLocal: {}, + name: '', + prefixesAll: Object.assign(Object.assign({}, INITIAL_CONTEXT['@context']), this.features.xhtmlInitialContext ? INITIAL_CONTEXT_XHTML['@context'] : {}), + prefixesCustom: {}, + skipElement: false, + vocab: options.vocab, + }); } - return match[1].replace(/\\"/ug, '"'); -} -exports.getLiteralValue = getLiteralValue; -/** - * Get the datatype of the given literal. - * @param {string} literalValue An RDF literal. - * @return {string} The datatype of the literal. - */ -function getLiteralType(literalValue) { - const match = /^"[^]*"(?:\^\^<([^"]+)>|(@)[^@"]+)?$/.exec(literalValue); - if (!match) { - throw new Error(literalValue + ' is not a literal'); + /** + * Parses the given text stream into a quad stream. + * @param {NodeJS.EventEmitter} stream A text stream. + * @return {RDF.Stream} A quad stream. + */ + import(stream) { + const output = new stream_1.PassThrough({ readableObjectMode: true }); + stream.on('error', (error) => parsed.emit('error', error)); + stream.on('data', (data) => output.push(data)); + stream.on('end', () => output.push(null)); + const parsed = output.pipe(new RdfaParser(this.options)); + return parsed; } - return match[1] || (match[2] - ? 'http://www.w3.org/1999/02/22-rdf-syntax-ns#langString' : 'http://www.w3.org/2001/XMLSchema#string'); -} -exports.getLiteralType = getLiteralType; -/** - * Get the language of the given literal. - * @param {string} literalValue An RDF literal. - * @return {string} The language of the literal. - */ -function getLiteralLanguage(literalValue) { - const match = /^"[^]*"(?:@([^@"]+)|\^\^[^"]+)?$/.exec(literalValue); - if (!match) { - throw new Error(literalValue + ' is not a literal'); + _transform(chunk, encoding, callback) { + this.parser.write(chunk); + callback(); } - return match[1] ? match[1].toLowerCase() : ''; -} -exports.getLiteralLanguage = getLiteralLanguage; -/** - * Transform a string-based RDF term to an RDFJS term. - * @param {string} value A string-based RDF-term. - * @param {RDF.DataFactory} dataFactory An optional datafactory to create terms with. - * @return {RDF.Term} An RDF-JS term. - */ -function stringToTerm(value, dataFactory) { - dataFactory = dataFactory || FACTORY; - if (!value || !value.length) { - return dataFactory.defaultGraph(); + _flush(callback) { + this.parser.end(); + callback(); } - switch (value[0]) { - case '_': return dataFactory.blankNode(value.substr(2)); - case '?': - if (!dataFactory.variable) { - throw new Error(`Missing 'variable()' method on the given DataFactory`); + onTagOpen(name, attributes) { + // Determine the parent tag (ignore skipped tags) + let parentTagI = this.activeTagStack.length - 1; + while (parentTagI > 0 && this.activeTagStack[parentTagI].skipElement) { + parentTagI--; + } + let parentTag = this.activeTagStack[parentTagI]; + // If we skipped a tag, make sure we DO use the lang, prefixes and vocab of the skipped tag + if (parentTagI !== this.activeTagStack.length - 1) { + parentTag = Object.assign(Object.assign({}, parentTag), { language: this.activeTagStack[this.activeTagStack.length - 1].language, prefixesAll: this.activeTagStack[this.activeTagStack.length - 1].prefixesAll, prefixesCustom: this.activeTagStack[this.activeTagStack.length - 1].prefixesCustom, vocab: this.activeTagStack[this.activeTagStack.length - 1].vocab }); + } + // Create a new active tag and inherit language scope and baseIRI from parent + const activeTag = { + collectChildTags: parentTag.collectChildTags, + incompleteTriples: [], + inlist: 'inlist' in attributes, + listMapping: [], + listMappingLocal: parentTag.listMapping, + localBaseIRI: parentTag.localBaseIRI, + name, + prefixesAll: null, + prefixesCustom: null, + skipElement: false, + }; + this.activeTagStack.push(activeTag); + // Save the tag contents if needed + if (activeTag.collectChildTags) { + // Add explicitly defined xmlns, xmlns:* and prefixes to attributes, as required by the spec (Step 11, note) + // Sort prefixes alphabetically for deterministic namespace declaration order + for (const prefix of Object.keys(parentTag.prefixesCustom).sort()) { + const suffix = parentTag.prefixesCustom[prefix]; + const attributeKey = prefix === '' ? 'xmlns' : 'xmlns:' + prefix; + if (!(attributeKey in attributes)) { + attributes[attributeKey] = suffix; + } } - return dataFactory.variable(value.substr(1)); - case '"': - const language = getLiteralLanguage(value); - const type = dataFactory.namedNode(getLiteralType(value)); - return dataFactory.literal(getLiteralValue(value), language || type); - case '<': - default: - if (value.startsWith('<<') && value.endsWith('>>')) { - // Iterate character-by-character to detect spaces that are *not* wrapped in <<>> - const terms = value.slice(2, -2); - const stringTerms = []; - let ignoreTags = 0; - let lastIndex = 0; - for (let i = 0; i < terms.length; i++) { - const char = terms[i]; - if (char === '<') - ignoreTags++; - if (char === '>') { - if (ignoreTags === 0) { - throw new Error('Found closing tag without opening tag in ' + value); + const attributesSerialized = Object.keys(attributes).map((key) => `${key}="${attributes[key]}"`).join(' '); + activeTag.text = [`<${name}${attributesSerialized ? ' ' + attributesSerialized : ''}>`]; + if (this.features.skipHandlingXmlLiteralChildren) { + return; + } + } + let allowTermsInRelPredicates = true; + let allowTermsInRevPredicates = true; + if (this.features.onlyAllowUriRelRevIfProperty) { + // Ignore illegal rel/rev values when property is present + if ('property' in attributes && 'rel' in attributes) { + allowTermsInRelPredicates = false; + if (attributes.rel.indexOf(':') < 0) { + delete attributes.rel; + } + } + if ('property' in attributes && 'rev' in attributes) { + allowTermsInRevPredicates = false; + if (attributes.rev.indexOf(':') < 0) { + delete attributes.rev; + } + } + } + if (this.features.copyRdfaPatterns) { + // Save the tag if needed + if (parentTag.collectedPatternTag) { + const patternTag = { + attributes, + children: [], + name, + referenced: false, + rootPattern: false, + text: [], + }; + parentTag.collectedPatternTag.children.push(patternTag); + activeTag.collectedPatternTag = patternTag; + return; + } + // Store tags with type rdfa:Pattern as patterns + if (attributes.typeof === 'rdfa:Pattern') { + activeTag.collectedPatternTag = { + attributes, + children: [], + name, + parentTag, + referenced: false, + rootPattern: true, + text: [], + }; + return; + } + // Instantiate patterns on rdfa:copy + if (attributes.property === 'rdfa:copy') { + const copyTargetPatternId = attributes.resource || attributes.href || attributes.src; + if (this.rdfaPatterns[copyTargetPatternId]) { + this.emitPatternCopy(parentTag, this.rdfaPatterns[copyTargetPatternId], copyTargetPatternId); + } + else { + if (!this.pendingRdfaPatternCopies[copyTargetPatternId]) { + this.pendingRdfaPatternCopies[copyTargetPatternId] = []; + } + this.pendingRdfaPatternCopies[copyTargetPatternId].push(parentTag); + } + return; + } + } + // tags override the baseIRI of the whole document + if (this.features.baseTag && name === 'base' && attributes.href) { + this.util.baseIRI = this.util.getBaseIRI(attributes.href); + } + // xml:base attributes override the baseIRI of the current tag and children + if (this.features.xmlBase && attributes['xml:base']) { + activeTag.localBaseIRI = this.util.getBaseIRI(attributes['xml:base']); + } + //
"};return e=(e=(e=(e=(e=r.converter._dispatch("anchors.before",e,t,r)).replace(/\[((?:\[[^\]]*]|[^\[\]])*)] ?(?:\n *)?\[(.*?)]()()()()/g,n)).replace(/\[((?:\[[^\]]*]|[^\[\]])*)]()[ \t]*\([ \t]?<([^>]*)>(?:[ \t]*((["'])([^"]*?)\5))?[ \t]?\)/g,n)).replace(/\[((?:\[[^\]]*]|[^\[\]])*)]()[ \t]*\([ \t]??(?:[ \t]*((["'])([^"]*?)\5))?[ \t]?\)/g,n)).replace(/\[([^\[\]]+)]()()()()()/g,n),t.ghMentions&&(e=e.replace(/(^|\s)(\\)?(@([a-z\d]+(?:[a-z\d.-]+?[a-z\d]+)*))/gim,(function(e,r,n,i,s){if("\\"===n)return r+i;if(!a.helper.isString(t.ghMentionsLink))throw new Error("ghMentionsLink option must be a string");var o=t.ghMentionsLink.replace(/\{u}/g,s),c="";return t.openLinksInNewWindow&&(c=' rel="noopener noreferrer" target="¨E95Eblank"'),r+'"+i+""}))),e=r.converter._dispatch("anchors.after",e,t,r)}));var f=/([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+?\.[^'">\s]+?)()(\1)?(?=\s|$)(?!["<>])/gi,y=/([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+\.[^'">\s]+?)([.!?,()\[\]])?(\1)?(?=\s|$)(?!["<>])/gi,g=/()<(((https?|ftp|dict):\/\/|www\.)[^'">\s]+)()>()/gi,m=/(^|\s)(?:mailto:)?([A-Za-z0-9!#$%&'*+-/=?^_`{|}~.]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)(?=$|\s)/gim,b=/<()(?:mailto:)?([-.\w]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)>/gi,_=function(e){"use strict";return function(t,r,n,i,s,o,c){var u=n=n.replace(a.helper.regexes.asteriskDashAndColon,a.helper.escapeCharactersCallback),l="",p="",d=r||"",h=c||"";return/^www\./i.test(n)&&(n=n.replace(/^www\./i,"http://www.")),e.excludeTrailingPunctuationFromURLs&&o&&(l=o),e.openLinksInNewWindow&&(p=' rel="noopener noreferrer" target="¨E95Eblank"'),d+'"+u+""+l+h}},v=function(e,t){"use strict";return function(r,n,i){var s="mailto:";return n=n||"",i=a.subParser("unescapeSpecialChars")(i,e,t),e.encodeEmails?(s=a.helper.encodeEmailAddress(s+i),i=a.helper.encodeEmailAddress(i)):s+=i,n+''+i+""}};a.subParser("autoLinks",(function(e,t,r){"use strict";return e=(e=(e=r.converter._dispatch("autoLinks.before",e,t,r)).replace(g,_(t))).replace(b,v(t,r)),e=r.converter._dispatch("autoLinks.after",e,t,r)})),a.subParser("simplifiedAutoLinks",(function(e,t,r){"use strict";return t.simplifiedAutoLink?(e=r.converter._dispatch("simplifiedAutoLinks.before",e,t,r),e=(e=t.excludeTrailingPunctuationFromURLs?e.replace(y,_(t)):e.replace(f,_(t))).replace(m,v(t,r)),e=r.converter._dispatch("simplifiedAutoLinks.after",e,t,r)):e})),a.subParser("blockGamut",(function(e,t,r){"use strict";return e=r.converter._dispatch("blockGamut.before",e,t,r),e=a.subParser("blockQuotes")(e,t,r),e=a.subParser("headers")(e,t,r),e=a.subParser("horizontalRule")(e,t,r),e=a.subParser("lists")(e,t,r),e=a.subParser("codeBlocks")(e,t,r),e=a.subParser("tables")(e,t,r),e=a.subParser("hashHTMLBlocks")(e,t,r),e=a.subParser("paragraphs")(e,t,r),e=r.converter._dispatch("blockGamut.after",e,t,r)})),a.subParser("blockQuotes",(function(e,t,r){"use strict";e=r.converter._dispatch("blockQuotes.before",e,t,r),e+="\n\n";var n=/(^ {0,3}>[ \t]?.+\n(.+\n)*\n*)+/gm;return t.splitAdjacentBlockquotes&&(n=/^ {0,3}>[\s\S]*?(?:\n\n)/gm),e=e.replace(n,(function(e){return e=(e=(e=e.replace(/^[ \t]*>[ \t]?/gm,"")).replace(/¨0/g,"")).replace(/^[ \t]+$/gm,""),e=a.subParser("githubCodeBlocks")(e,t,r),e=(e=(e=a.subParser("blockGamut")(e,t,r)).replace(/(^|\n)/g,"$1 ")).replace(/(\s*
[^\r]+?<\/pre>)/gm,(function(e,t){var r=t;return r=(r=r.replace(/^  /gm,"¨0")).replace(/¨0/g,"")})),a.subParser("hashBlock")("
\n"+e+"\n
",t,r)})),e=r.converter._dispatch("blockQuotes.after",e,t,r)})),a.subParser("codeBlocks",(function(e,t,r){"use strict";e=r.converter._dispatch("codeBlocks.before",e,t,r);return e=(e=(e+="¨0").replace(/(?:\n\n|^)((?:(?:[ ]{4}|\t).*\n+)+)(\n*[ ]{0,3}[^ \t\n]|(?=¨0))/g,(function(e,n,i){var s=n,o=i,c="\n";return s=a.subParser("outdent")(s,t,r),s=a.subParser("encodeCode")(s,t,r),s=(s=(s=a.subParser("detab")(s,t,r)).replace(/^\n+/g,"")).replace(/\n+$/g,""),t.omitExtraWLInCodeBlocks&&(c=""),s="
"+s+c+"
",a.subParser("hashBlock")(s,t,r)+o}))).replace(/¨0/,""),e=r.converter._dispatch("codeBlocks.after",e,t,r)})),a.subParser("codeSpans",(function(e,t,r){"use strict";return void 0===(e=r.converter._dispatch("codeSpans.before",e,t,r))&&(e=""),e=e.replace(/(^|[^\\])(`+)([^\r]*?[^`])\2(?!`)/gm,(function(e,n,i,s){var o=s;return o=(o=o.replace(/^([ \t]*)/g,"")).replace(/[ \t]*$/g,""),o=n+""+(o=a.subParser("encodeCode")(o,t,r))+"",o=a.subParser("hashHTMLSpans")(o,t,r)})),e=r.converter._dispatch("codeSpans.after",e,t,r)})),a.subParser("completeHTMLDocument",(function(e,t,r){"use strict";if(!t.completeHTMLDocument)return e;e=r.converter._dispatch("completeHTMLDocument.before",e,t,r);var n="html",i="\n",a="",s='\n',o="",c="";for(var u in void 0!==r.metadata.parsed.doctype&&(i="\n","html"!==(n=r.metadata.parsed.doctype.toString().toLowerCase())&&"html5"!==n||(s='')),r.metadata.parsed)if(r.metadata.parsed.hasOwnProperty(u))switch(u.toLowerCase()){case"doctype":break;case"title":a=""+r.metadata.parsed.title+"\n";break;case"charset":s="html"===n||"html5"===n?'\n':'\n';break;case"language":case"lang":o=' lang="'+r.metadata.parsed[u]+'"',c+='\n';break;default:c+='\n'}return e=i+"\n\n"+a+s+c+"\n\n"+e.trim()+"\n\n",e=r.converter._dispatch("completeHTMLDocument.after",e,t,r)})),a.subParser("detab",(function(e,t,r){"use strict";return e=(e=(e=(e=(e=(e=r.converter._dispatch("detab.before",e,t,r)).replace(/\t(?=\t)/g," ")).replace(/\t/g,"¨A¨B")).replace(/¨B(.+?)¨A/g,(function(e,t){for(var r=t,n=4-r.length%4,i=0;i/g,">"),e=r.converter._dispatch("encodeAmpsAndAngles.after",e,t,r)})),a.subParser("encodeBackslashEscapes",(function(e,t,r){"use strict";return e=(e=(e=r.converter._dispatch("encodeBackslashEscapes.before",e,t,r)).replace(/\\(\\)/g,a.helper.escapeCharactersCallback)).replace(/\\([`*_{}\[\]()>#+.!~=|-])/g,a.helper.escapeCharactersCallback),e=r.converter._dispatch("encodeBackslashEscapes.after",e,t,r)})),a.subParser("encodeCode",(function(e,t,r){"use strict";return e=(e=r.converter._dispatch("encodeCode.before",e,t,r)).replace(/&/g,"&").replace(//g,">").replace(/([*_{}\[\]\\=~-])/g,a.helper.escapeCharactersCallback),e=r.converter._dispatch("encodeCode.after",e,t,r)})),a.subParser("escapeSpecialCharsWithinTagAttributes",(function(e,t,r){"use strict";return e=(e=(e=r.converter._dispatch("escapeSpecialCharsWithinTagAttributes.before",e,t,r)).replace(/<\/?[a-z\d_:-]+(?:[\s]+[\s\S]+?)?>/gi,(function(e){return e.replace(/(.)<\/?code>(?=.)/g,"$1`").replace(/([\\`*_~=|])/g,a.helper.escapeCharactersCallback)}))).replace(/-]|-[^>])(?:[^-]|-[^-])*)--)>/gi,(function(e){return e.replace(/([\\`*_~=|])/g,a.helper.escapeCharactersCallback)})),e=r.converter._dispatch("escapeSpecialCharsWithinTagAttributes.after",e,t,r)})),a.subParser("githubCodeBlocks",(function(e,t,r){"use strict";return t.ghCodeBlocks?(e=r.converter._dispatch("githubCodeBlocks.before",e,t,r),e=(e=(e+="¨0").replace(/(?:^|\n)(?: {0,3})(```+|~~~+)(?: *)([^\s`~]*)\n([\s\S]*?)\n(?: {0,3})\1/g,(function(e,n,i,s){var o=t.omitExtraWLInCodeBlocks?"":"\n";return s=a.subParser("encodeCode")(s,t,r),s="
"+(s=(s=(s=a.subParser("detab")(s,t,r)).replace(/^\n+/g,"")).replace(/\n+$/g,""))+o+"
",s=a.subParser("hashBlock")(s,t,r),"\n\n¨G"+(r.ghCodeBlocks.push({text:e,codeblock:s})-1)+"G\n\n"}))).replace(/¨0/,""),r.converter._dispatch("githubCodeBlocks.after",e,t,r)):e})),a.subParser("hashBlock",(function(e,t,r){"use strict";return e=(e=r.converter._dispatch("hashBlock.before",e,t,r)).replace(/(^\n+|\n+$)/g,""),e="\n\n¨K"+(r.gHtmlBlocks.push(e)-1)+"K\n\n",e=r.converter._dispatch("hashBlock.after",e,t,r)})),a.subParser("hashCodeTags",(function(e,t,r){"use strict";e=r.converter._dispatch("hashCodeTags.before",e,t,r);return e=a.helper.replaceRecursiveRegExp(e,(function(e,n,i,s){var o=i+a.subParser("encodeCode")(n,t,r)+s;return"¨C"+(r.gHtmlSpans.push(o)-1)+"C"}),"]*>","","gim"),e=r.converter._dispatch("hashCodeTags.after",e,t,r)})),a.subParser("hashElement",(function(e,t,r){"use strict";return function(e,t){var n=t;return n=(n=(n=n.replace(/\n\n/g,"\n")).replace(/^\n/,"")).replace(/\n+$/g,""),n="\n\n¨K"+(r.gHtmlBlocks.push(n)-1)+"K\n\n"}})),a.subParser("hashHTMLBlocks",(function(e,t,r){"use strict";e=r.converter._dispatch("hashHTMLBlocks.before",e,t,r);var n=["pre","div","h1","h2","h3","h4","h5","h6","blockquote","table","dl","ol","ul","script","noscript","form","fieldset","iframe","math","style","section","header","footer","nav","article","aside","address","audio","canvas","figure","hgroup","output","video","p"],i=function(e,t,n,i){var a=e;return-1!==n.search(/\bmarkdown\b/)&&(a=n+r.converter.makeHtml(t)+i),"\n\n¨K"+(r.gHtmlBlocks.push(a)-1)+"K\n\n"};t.backslashEscapesHTMLTags&&(e=e.replace(/\\<(\/?[^>]+?)>/g,(function(e,t){return"<"+t+">"})));for(var s=0;s]*>)","im"),u="<"+n[s]+"\\b[^>]*>",l="";-1!==(o=a.helper.regexIndexOf(e,c));){var p=a.helper.splitAtIndex(e,o),d=a.helper.replaceRecursiveRegExp(p[1],i,u,l,"im");if(d===p[1])break;e=p[0].concat(d)}return e=e.replace(/(\n {0,3}(<(hr)\b([^<>])*?\/?>)[ \t]*(?=\n{2,}))/g,a.subParser("hashElement")(e,t,r)),e=(e=a.helper.replaceRecursiveRegExp(e,(function(e){return"\n\n¨K"+(r.gHtmlBlocks.push(e)-1)+"K\n\n"}),"^ {0,3}\x3c!--","--\x3e","gm")).replace(/(?:\n\n)( {0,3}(?:<([?%])[^\r]*?\2>)[ \t]*(?=\n{2,}))/g,a.subParser("hashElement")(e,t,r)),e=r.converter._dispatch("hashHTMLBlocks.after",e,t,r)})),a.subParser("hashHTMLSpans",(function(e,t,r){"use strict";function n(e){return"¨C"+(r.gHtmlSpans.push(e)-1)+"C"}return e=(e=(e=(e=(e=r.converter._dispatch("hashHTMLSpans.before",e,t,r)).replace(/<[^>]+?\/>/gi,(function(e){return n(e)}))).replace(/<([^>]+?)>[\s\S]*?<\/\1>/g,(function(e){return n(e)}))).replace(/<([^>]+?)\s[^>]+?>[\s\S]*?<\/\1>/g,(function(e){return n(e)}))).replace(/<[^>]+?>/gi,(function(e){return n(e)})),e=r.converter._dispatch("hashHTMLSpans.after",e,t,r)})),a.subParser("unhashHTMLSpans",(function(e,t,r){"use strict";e=r.converter._dispatch("unhashHTMLSpans.before",e,t,r);for(var n=0;n]*>\\s*]*>","^ {0,3}\\s*
","gim"),e=r.converter._dispatch("hashPreCodeTags.after",e,t,r)})),a.subParser("headers",(function(e,t,r){"use strict";e=r.converter._dispatch("headers.before",e,t,r);var n=isNaN(parseInt(t.headerLevelStart))?1:parseInt(t.headerLevelStart),i=t.smoothLivePreview?/^(.+)[ \t]*\n={2,}[ \t]*\n+/gm:/^(.+)[ \t]*\n=+[ \t]*\n+/gm,s=t.smoothLivePreview?/^(.+)[ \t]*\n-{2,}[ \t]*\n+/gm:/^(.+)[ \t]*\n-+[ \t]*\n+/gm;e=(e=e.replace(i,(function(e,i){var s=a.subParser("spanGamut")(i,t,r),o=t.noHeaderId?"":' id="'+c(i)+'"',u=""+s+"";return a.subParser("hashBlock")(u,t,r)}))).replace(s,(function(e,i){var s=a.subParser("spanGamut")(i,t,r),o=t.noHeaderId?"":' id="'+c(i)+'"',u=n+1,l=""+s+"";return a.subParser("hashBlock")(l,t,r)}));var o=t.requireSpaceBeforeHeadingText?/^(#{1,6})[ \t]+(.+?)[ \t]*#*\n+/gm:/^(#{1,6})[ \t]*(.+?)[ \t]*#*\n+/gm;function c(e){var n,i;if(t.customizedHeaderId){var s=e.match(/\{([^{]+?)}\s*$/);s&&s[1]&&(e=s[1])}return n=e,i=a.helper.isString(t.prefixHeaderId)?t.prefixHeaderId:!0===t.prefixHeaderId?"section-":"",t.rawPrefixHeaderId||(n=i+n),n=t.ghCompatibleHeaderId?n.replace(/ /g,"-").replace(/&/g,"").replace(/¨T/g,"").replace(/¨D/g,"").replace(/[&+$,\/:;=?@"#{}|^¨~\[\]`\\*)(%.!'<>]/g,"").toLowerCase():t.rawHeaderId?n.replace(/ /g,"-").replace(/&/g,"&").replace(/¨T/g,"¨").replace(/¨D/g,"$").replace(/["']/g,"-").toLowerCase():n.replace(/[^\w]/g,"").toLowerCase(),t.rawPrefixHeaderId&&(n=i+n),r.hashLinkCounts[n]?n=n+"-"+r.hashLinkCounts[n]++:r.hashLinkCounts[n]=1,n}return e=e.replace(o,(function(e,i,s){var o=s;t.customizedHeaderId&&(o=s.replace(/\s?\{([^{]+?)}\s*$/,""));var u=a.subParser("spanGamut")(o,t,r),l=t.noHeaderId?"":' id="'+c(s)+'"',p=n-1+i.length,d=""+u+"";return a.subParser("hashBlock")(d,t,r)})),e=r.converter._dispatch("headers.after",e,t,r)})),a.subParser("horizontalRule",(function(e,t,r){"use strict";e=r.converter._dispatch("horizontalRule.before",e,t,r);var n=a.subParser("hashBlock")("
",t,r);return e=(e=(e=e.replace(/^ {0,2}( ?-){3,}[ \t]*$/gm,n)).replace(/^ {0,2}( ?\*){3,}[ \t]*$/gm,n)).replace(/^ {0,2}( ?_){3,}[ \t]*$/gm,n),e=r.converter._dispatch("horizontalRule.after",e,t,r)})),a.subParser("images",(function(e,t,r){"use strict";function n(e,t,n,i,s,o,c,u){var l=r.gUrls,p=r.gTitles,d=r.gDimensions;if(n=n.toLowerCase(),u||(u=""),e.search(/\(? ?(['"].*['"])?\)$/m)>-1)i="";else if(""===i||null===i){if(""!==n&&null!==n||(n=t.toLowerCase().replace(/ ?\n/g," ")),i="#"+n,a.helper.isUndefined(l[n]))return e;i=l[n],a.helper.isUndefined(p[n])||(u=p[n]),a.helper.isUndefined(d[n])||(s=d[n].width,o=d[n].height)}t=t.replace(/"/g,""").replace(a.helper.regexes.asteriskDashAndColon,a.helper.escapeCharactersCallback);var h=''+t+'"}return e=(e=(e=(e=(e=(e=r.converter._dispatch("images.before",e,t,r)).replace(/!\[([^\]]*?)] ?(?:\n *)?\[([\s\S]*?)]()()()()()/g,n)).replace(/!\[([^\]]*?)][ \t]*()\([ \t]??(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(["'])([^"]*?)\6)?[ \t]?\)/g,(function(e,t,r,i,a,s,o,c){return n(e,t,r,i=i.replace(/\s/g,""),a,s,o,c)}))).replace(/!\[([^\]]*?)][ \t]*()\([ \t]?<([^>]*)>(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(?:(["'])([^"]*?)\6))?[ \t]?\)/g,n)).replace(/!\[([^\]]*?)][ \t]*()\([ \t]??(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(["'])([^"]*?)\6)?[ \t]?\)/g,n)).replace(/!\[([^\[\]]+)]()()()()()/g,n),e=r.converter._dispatch("images.after",e,t,r)})),a.subParser("italicsAndBold",(function(e,t,r){"use strict";function n(e,t,r){return t+e+r}return e=r.converter._dispatch("italicsAndBold.before",e,t,r),e=t.literalMidWordUnderscores?(e=(e=e.replace(/\b___(\S[\s\S]*?)___\b/g,(function(e,t){return n(t,"","")}))).replace(/\b__(\S[\s\S]*?)__\b/g,(function(e,t){return n(t,"","")}))).replace(/\b_(\S[\s\S]*?)_\b/g,(function(e,t){return n(t,"","")})):(e=(e=e.replace(/___(\S[\s\S]*?)___/g,(function(e,t){return/\S$/.test(t)?n(t,"",""):e}))).replace(/__(\S[\s\S]*?)__/g,(function(e,t){return/\S$/.test(t)?n(t,"",""):e}))).replace(/_([^\s_][\s\S]*?)_/g,(function(e,t){return/\S$/.test(t)?n(t,"",""):e})),e=t.literalMidWordAsterisks?(e=(e=e.replace(/([^*]|^)\B\*\*\*(\S[\s\S]*?)\*\*\*\B(?!\*)/g,(function(e,t,r){return n(r,t+"","")}))).replace(/([^*]|^)\B\*\*(\S[\s\S]*?)\*\*\B(?!\*)/g,(function(e,t,r){return n(r,t+"","")}))).replace(/([^*]|^)\B\*(\S[\s\S]*?)\*\B(?!\*)/g,(function(e,t,r){return n(r,t+"","")})):(e=(e=e.replace(/\*\*\*(\S[\s\S]*?)\*\*\*/g,(function(e,t){return/\S$/.test(t)?n(t,"",""):e}))).replace(/\*\*(\S[\s\S]*?)\*\*/g,(function(e,t){return/\S$/.test(t)?n(t,"",""):e}))).replace(/\*([^\s*][\s\S]*?)\*/g,(function(e,t){return/\S$/.test(t)?n(t,"",""):e})),e=r.converter._dispatch("italicsAndBold.after",e,t,r)})),a.subParser("lists",(function(e,t,r){"use strict";function n(e,n){r.gListLevel++,e=e.replace(/\n{2,}$/,"\n");var i=/(\n)?(^ {0,3})([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(¨0| {0,3}([*+-]|\d+[.])[ \t]+))/gm,s=/\n[ \t]*\n(?!¨0)/.test(e+="¨0");return t.disableForced4SpacesIndentedSublists&&(i=/(\n)?(^ {0,3})([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(¨0|\2([*+-]|\d+[.])[ \t]+))/gm),e=(e=e.replace(i,(function(e,n,i,o,c,u,l){l=l&&""!==l.trim();var p=a.subParser("outdent")(c,t,r),d="";return u&&t.tasklists&&(d=' class="task-list-item" style="list-style-type: none;"',p=p.replace(/^[ \t]*\[(x|X| )?]/m,(function(){var e='-1?(p=a.subParser("githubCodeBlocks")(p,t,r),p=a.subParser("blockGamut")(p,t,r)):(p=(p=a.subParser("lists")(p,t,r)).replace(/\n$/,""),p=(p=a.subParser("hashHTMLBlocks")(p,t,r)).replace(/\n\n+/g,"\n\n"),p=s?a.subParser("paragraphs")(p,t,r):a.subParser("spanGamut")(p,t,r)),p=""+(p=p.replace("¨A",""))+"\n"}))).replace(/¨0/g,""),r.gListLevel--,n&&(e=e.replace(/\s+$/,"")),e}function i(e,t){if("ol"===t){var r=e.match(/^ *(\d+)\./);if(r&&"1"!==r[1])return' start="'+r[1]+'"'}return""}function s(e,r,a){var s=t.disableForced4SpacesIndentedSublists?/^ ?\d+\.[ \t]/gm:/^ {0,3}\d+\.[ \t]/gm,o=t.disableForced4SpacesIndentedSublists?/^ ?[*+-][ \t]/gm:/^ {0,3}[*+-][ \t]/gm,c="ul"===r?s:o,u="";if(-1!==e.search(c))!function t(l){var p=l.search(c),d=i(e,r);-1!==p?(u+="\n\n<"+r+d+">\n"+n(l.slice(0,p),!!a)+"\n",c="ul"===(r="ul"===r?"ol":"ul")?s:o,t(l.slice(p))):u+="\n\n<"+r+d+">\n"+n(l,!!a)+"\n"}(e);else{var l=i(e,r);u="\n\n<"+r+l+">\n"+n(e,!!a)+"\n"}return u}return e=r.converter._dispatch("lists.before",e,t,r),e+="¨0",e=(e=r.gListLevel?e.replace(/^(( {0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(¨0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm,(function(e,t,r){return s(t,r.search(/[*+-]/g)>-1?"ul":"ol",!0)})):e.replace(/(\n\n|^\n?)(( {0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(¨0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm,(function(e,t,r,n){return s(r,n.search(/[*+-]/g)>-1?"ul":"ol",!1)}))).replace(/¨0/,""),e=r.converter._dispatch("lists.after",e,t,r)})),a.subParser("metadata",(function(e,t,r){"use strict";if(!t.metadata)return e;function n(e){r.metadata.raw=e,(e=(e=e.replace(/&/g,"&").replace(/"/g,""")).replace(/\n {4}/g," ")).replace(/^([\S ]+): +([\s\S]+?)$/gm,(function(e,t,n){return r.metadata.parsed[t]=n,""}))}return e=(e=(e=(e=r.converter._dispatch("metadata.before",e,t,r)).replace(/^\s*«««+(\S*?)\n([\s\S]+?)\n»»»+\n/,(function(e,t,r){return n(r),"¨M"}))).replace(/^\s*---+(\S*?)\n([\s\S]+?)\n---+\n/,(function(e,t,i){return t&&(r.metadata.format=t),n(i),"¨M"}))).replace(/¨M/g,""),e=r.converter._dispatch("metadata.after",e,t,r)})),a.subParser("outdent",(function(e,t,r){"use strict";return e=(e=(e=r.converter._dispatch("outdent.before",e,t,r)).replace(/^(\t|[ ]{1,4})/gm,"¨0")).replace(/¨0/g,""),e=r.converter._dispatch("outdent.after",e,t,r)})),a.subParser("paragraphs",(function(e,t,r){"use strict";for(var n=(e=(e=(e=r.converter._dispatch("paragraphs.before",e,t,r)).replace(/^\n+/g,"")).replace(/\n+$/g,"")).split(/\n{2,}/g),i=[],s=n.length,o=0;o=0?i.push(c):c.search(/\S/)>=0&&(c=(c=a.subParser("spanGamut")(c,t,r)).replace(/^([ \t]*)/g,"

"),c+="

",i.push(c))}for(s=i.length,o=0;o]*>\s*]*>/.test(l)&&(p=!0)}i[o]=l}return e=(e=(e=i.join("\n")).replace(/^\n+/g,"")).replace(/\n+$/g,""),r.converter._dispatch("paragraphs.after",e,t,r)})),a.subParser("runExtension",(function(e,t,r,n){"use strict";if(e.filter)t=e.filter(t,n.converter,r);else if(e.regex){var i=e.regex;i instanceof RegExp||(i=new RegExp(i,"g")),t=t.replace(i,e.replace)}return t})),a.subParser("spanGamut",(function(e,t,r){"use strict";return e=r.converter._dispatch("spanGamut.before",e,t,r),e=a.subParser("codeSpans")(e,t,r),e=a.subParser("escapeSpecialCharsWithinTagAttributes")(e,t,r),e=a.subParser("encodeBackslashEscapes")(e,t,r),e=a.subParser("images")(e,t,r),e=a.subParser("anchors")(e,t,r),e=a.subParser("autoLinks")(e,t,r),e=a.subParser("simplifiedAutoLinks")(e,t,r),e=a.subParser("emoji")(e,t,r),e=a.subParser("underline")(e,t,r),e=a.subParser("italicsAndBold")(e,t,r),e=a.subParser("strikethrough")(e,t,r),e=a.subParser("ellipsis")(e,t,r),e=a.subParser("hashHTMLSpans")(e,t,r),e=a.subParser("encodeAmpsAndAngles")(e,t,r),t.simpleLineBreaks?/\n\n¨K/.test(e)||(e=e.replace(/\n+/g,"
\n")):e=e.replace(/ +\n/g,"
\n"),e=r.converter._dispatch("spanGamut.after",e,t,r)})),a.subParser("strikethrough",(function(e,t,r){"use strict";return t.strikethrough&&(e=(e=r.converter._dispatch("strikethrough.before",e,t,r)).replace(/(?:~){2}([\s\S]+?)(?:~){2}/g,(function(e,n){return function(e){return t.simplifiedAutoLink&&(e=a.subParser("simplifiedAutoLinks")(e,t,r)),""+e+""}(n)})),e=r.converter._dispatch("strikethrough.after",e,t,r)),e})),a.subParser("stripLinkDefinitions",(function(e,t,r){"use strict";var n=function(e,n,i,s,o,c,u){return n=n.toLowerCase(),i.match(/^data:.+?\/.+?;base64,/)?r.gUrls[n]=i.replace(/\s/g,""):r.gUrls[n]=a.subParser("encodeAmpsAndAngles")(i,t,r),c?c+u:(u&&(r.gTitles[n]=u.replace(/"|'/g,""")),t.parseImgDimensions&&s&&o&&(r.gDimensions[n]={width:s,height:o}),"")};return e=(e=(e=(e+="¨0").replace(/^ {0,3}\[(.+)]:[ \t]*\n?[ \t]*?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n\n|(?=¨0)|(?=\n\[))/gm,n)).replace(/^ {0,3}\[(.+)]:[ \t]*\n?[ \t]*\s]+)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n+|(?=¨0))/gm,n)).replace(/¨0/,"")})),a.subParser("tables",(function(e,t,r){"use strict";if(!t.tables)return e;function n(e,n){return""+a.subParser("spanGamut")(e,t,r)+"\n"}function i(e){var i,s=e.split("\n");for(i=0;i"+(c=a.subParser("spanGamut")(c,t,r))+"\n"));for(i=0;i\n\n\n",i=0;i\n";for(var a=0;a\n"}return r+="\n\n"}(f,g)}return e=(e=(e=(e=r.converter._dispatch("tables.before",e,t,r)).replace(/\\(\|)/g,a.helper.escapeCharactersCallback)).replace(/^ {0,3}\|?.+\|.+\n {0,3}\|?[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*:?[ \t]*(?:[-=]){2,}[\s\S]+?(?:\n\n|¨0)/gm,i)).replace(/^ {0,3}\|.+\|[ \t]*\n {0,3}\|[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*\n( {0,3}\|.+\|[ \t]*\n)*(?:\n|¨0)/gm,i),e=r.converter._dispatch("tables.after",e,t,r)})),a.subParser("underline",(function(e,t,r){"use strict";return t.underline?(e=r.converter._dispatch("underline.before",e,t,r),e=(e=t.literalMidWordUnderscores?(e=e.replace(/\b___(\S[\s\S]*?)___\b/g,(function(e,t){return""+t+""}))).replace(/\b__(\S[\s\S]*?)__\b/g,(function(e,t){return""+t+""})):(e=e.replace(/___(\S[\s\S]*?)___/g,(function(e,t){return/\S$/.test(t)?""+t+"":e}))).replace(/__(\S[\s\S]*?)__/g,(function(e,t){return/\S$/.test(t)?""+t+"":e}))).replace(/(_)/g,a.helper.escapeCharactersCallback),e=r.converter._dispatch("underline.after",e,t,r)):e})),a.subParser("unescapeSpecialChars",(function(e,t,r){"use strict";return e=(e=r.converter._dispatch("unescapeSpecialChars.before",e,t,r)).replace(/¨E(\d+)E/g,(function(e,t){var r=parseInt(t);return String.fromCharCode(r)})),e=r.converter._dispatch("unescapeSpecialChars.after",e,t,r)})),a.subParser("makeMarkdown.blockquote",(function(e,t){"use strict";var r="";if(e.hasChildNodes())for(var n=e.childNodes,i=n.length,s=0;s ")})),a.subParser("makeMarkdown.codeBlock",(function(e,t){"use strict";var r=e.getAttribute("language"),n=e.getAttribute("precodenum");return"```"+r+"\n"+t.preList[n]+"\n```"})),a.subParser("makeMarkdown.codeSpan",(function(e){"use strict";return"`"+e.innerHTML+"`"})),a.subParser("makeMarkdown.emphasis",(function(e,t){"use strict";var r="";if(e.hasChildNodes()){r+="*";for(var n=e.childNodes,i=n.length,s=0;s",e.hasAttribute("width")&&e.hasAttribute("height")&&(t+=" ="+e.getAttribute("width")+"x"+e.getAttribute("height")),e.hasAttribute("title")&&(t+=' "'+e.getAttribute("title")+'"'),t+=")"),t})),a.subParser("makeMarkdown.links",(function(e,t){"use strict";var r="";if(e.hasChildNodes()&&e.hasAttribute("href")){var n=e.childNodes,i=n.length;r="[";for(var s=0;s",e.hasAttribute("title")&&(r+=' "'+e.getAttribute("title")+'"'),r+=")"}return r})),a.subParser("makeMarkdown.list",(function(e,t,r){"use strict";var n="";if(!e.hasChildNodes())return"";for(var i=e.childNodes,s=i.length,o=e.getAttribute("start")||1,c=0;c"+t.preList[r]+""})),a.subParser("makeMarkdown.strikethrough",(function(e,t){"use strict";var r="";if(e.hasChildNodes()){r+="~~";for(var n=e.childNodes,i=n.length,s=0;str>th"),c=e.querySelectorAll("tbody>tr");for(r=0;rf&&(f=y)}for(r=0;r/g,"\\$1>")).replace(/^#/gm,"\\#")).replace(/^(\s*)([-=]{3,})(\s*)$/,"$1\\$2$3")).replace(/^( {0,3}\d+)\./gm,"$1\\.")).replace(/^( {0,3})([+-])/gm,"$1\\$2")).replace(/]([\s]*)\(/g,"\\]$1\\(")).replace(/^ {0,3}\[([\S \t]*?)]:/gm,"\\[$1]:")}));void 0===(n=function(){"use strict";return a}.call(t,r,t,e))||(e.exports=n)}).call(this)},function(e,t,r){"use strict";r.r(t);"function"==typeof Symbol&&null!=Symbol.iterator&&Symbol.iterator,"function"==typeof Symbol&&null!=Symbol.asyncIterator&&Symbol.asyncIterator;var n="function"==typeof Symbol&&null!=Symbol.toStringTag?Symbol.toStringTag:"@@toStringTag",i="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):void 0;function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e){return o(e,[])}function o(e,t){switch(a(e)){case"string":return JSON.stringify(e);case"function":return e.name?"[function ".concat(e.name,"]"):"[function]";case"object":return null===e?"null":function(e,t){if(-1!==t.indexOf(e))return"[Circular]";var r=[].concat(t,[e]),n=function(e){var t=e[String(i)];if("function"==typeof t)return t;if("function"==typeof e.inspect)return e.inspect}(e);if(void 0!==n){var a=n.call(e);if(a!==e)return"string"==typeof a?a:o(a,r)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>2)return"[Array]";for(var r=Math.min(10,e.length),n=e.length-r,i=[],a=0;a1&&i.push("... ".concat(n," more items"));return"["+i.join(", ")+"]"}(e,r);return function(e,t){var r=Object.keys(e);if(0===r.length)return"{}";if(t.length>2)return"["+function(e){var t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){var r=e.constructor.name;if("string"==typeof r&&""!==r)return r}return t}(e)+"]";return"{ "+r.map((function(r){return r+": "+o(e[r],t)})).join(", ")+" }"}(e,r)}(e,t);default:return String(e)}}function c(e,t){if(!Boolean(e))throw new Error(t)}var u=function(e,t){return e instanceof t};function l(e,t){for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:"GraphQL request",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{line:1,column:1};"string"==typeof e||c(0,"Body must be a string. Received: ".concat(s(e),".")),this.body=e,this.name=t,this.locationOffset=r,this.locationOffset.line>0||c(0,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||c(0,"column in locationOffset is 1-indexed and must be positive.")}var t,r,i;return t=e,(r=[{key:n,get:function(){return"Source"}}])&&l(t.prototype,r),i&&l(t,i),e}();function d(e,t){for(var r,n=/\r\n|[\n\r]/g,i=1,a=t+1;(r=n.exec(e.body))&&r.index120){for(var d=Math.floor(c/80),h=c%80,f=[],m=0;m",EOF:"",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"});function _(e){return(_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function v(e){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function w(e,t){for(var r=0;ri&&L(t[a-1]);)--a;return t.slice(i,a).join("\n")}function L(e){for(var t=0;t31||9===a));return new C(b.COMMENT,t,o,r,n,i,s.slice(t+1,o))}function V(e,t,r,n,i,a){var s=e.body,o=r,c=t,u=!1;if(45===o&&(o=s.charCodeAt(++c)),48===o){if((o=s.charCodeAt(++c))>=48&&o<=57)throw I(e,c,"Invalid number, unexpected digit after 0: ".concat(F(o),"."))}else c=H(e,c,o),o=s.charCodeAt(c);if(46===o&&(u=!0,o=s.charCodeAt(++c),c=H(e,c,o),o=s.charCodeAt(c)),69!==o&&101!==o||(u=!0,43!==(o=s.charCodeAt(++c))&&45!==o||(o=s.charCodeAt(++c)),c=H(e,c,o),o=s.charCodeAt(c)),46===o||function(e){return 95===e||e>=65&&e<=90||e>=97&&e<=122}(o))throw I(e,c,"Invalid number, expected digit but got: ".concat(F(o),"."));return new C(u?b.FLOAT:b.INT,t,c,n,i,a,s.slice(t,c))}function H(e,t,r){var n=e.body,i=t,a=r;if(a>=48&&a<=57){do{a=n.charCodeAt(++i)}while(a>=48&&a<=57);return i}throw I(e,i,"Invalid number, expected digit but got: ".concat(F(a),"."))}function G(e,t,r,n,i){for(var a,s,o,c,u=e.body,l=t+1,p=l,d=0,h="";l=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function $(e,t,r,n,i){for(var a=e.body,s=a.length,o=t+1,c=0;o!==s&&!isNaN(c=a.charCodeAt(o))&&(95===c||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122);)++o;return new C(b.NAME,t,o,r,n,i,a.slice(t,o))}var X=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION"});function J(e,t){return new W(e,t).parseDocument()}function Y(e,t){var r=new W(e,t);r.expectToken(b.SOF);var n=r.parseValueLiteral(!1);return r.expectToken(b.EOF),n}function K(e,t){var r=new W(e,t);r.expectToken(b.SOF);var n=r.parseTypeReference();return r.expectToken(b.EOF),n}var W=function(){function e(e,t){var r=function(e){return u(e,p)}(e)?e:new p(e);this._lexer=new M(r),this._options=t}var t=e.prototype;return t.parseName=function(){var e=this.expectToken(b.NAME);return{kind:m.NAME,value:e.value,loc:this.loc(e)}},t.parseDocument=function(){var e=this._lexer.token;return{kind:m.DOCUMENT,definitions:this.many(b.SOF,this.parseDefinition,b.EOF),loc:this.loc(e)}},t.parseDefinition=function(){if(this.peek(b.NAME))switch(this._lexer.token.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return this.parseTypeSystemDefinition();case"extend":return this.parseTypeSystemExtension()}else{if(this.peek(b.BRACE_L))return this.parseOperationDefinition();if(this.peekDescription())return this.parseTypeSystemDefinition()}throw this.unexpected()},t.parseOperationDefinition=function(){var e=this._lexer.token;if(this.peek(b.BRACE_L))return{kind:m.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(e)};var t,r=this.parseOperationType();return this.peek(b.NAME)&&(t=this.parseName()),{kind:m.OPERATION_DEFINITION,operation:r,name:t,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseOperationType=function(){var e=this.expectToken(b.NAME);switch(e.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(e)},t.parseVariableDefinitions=function(){return this.optionalMany(b.PAREN_L,this.parseVariableDefinition,b.PAREN_R)},t.parseVariableDefinition=function(){var e=this._lexer.token;return{kind:m.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(b.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(b.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(e)}},t.parseVariable=function(){var e=this._lexer.token;return this.expectToken(b.DOLLAR),{kind:m.VARIABLE,name:this.parseName(),loc:this.loc(e)}},t.parseSelectionSet=function(){var e=this._lexer.token;return{kind:m.SELECTION_SET,selections:this.many(b.BRACE_L,this.parseSelection,b.BRACE_R),loc:this.loc(e)}},t.parseSelection=function(){return this.peek(b.SPREAD)?this.parseFragment():this.parseField()},t.parseField=function(){var e,t,r=this._lexer.token,n=this.parseName();return this.expectOptionalToken(b.COLON)?(e=n,t=this.parseName()):t=n,{kind:m.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(b.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(r)}},t.parseArguments=function(e){var t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(b.PAREN_L,t,b.PAREN_R)},t.parseArgument=function(){var e=this._lexer.token,t=this.parseName();return this.expectToken(b.COLON),{kind:m.ARGUMENT,name:t,value:this.parseValueLiteral(!1),loc:this.loc(e)}},t.parseConstArgument=function(){var e=this._lexer.token;return{kind:m.ARGUMENT,name:this.parseName(),value:(this.expectToken(b.COLON),this.parseValueLiteral(!0)),loc:this.loc(e)}},t.parseFragment=function(){var e=this._lexer.token;this.expectToken(b.SPREAD);var t=this.expectOptionalKeyword("on");return!t&&this.peek(b.NAME)?{kind:m.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(e)}:{kind:m.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseFragmentDefinition=function(){var e,t=this._lexer.token;return this.expectKeyword("fragment"),!0===(null===(e=this._options)||void 0===e?void 0:e.experimentalFragmentVariables)?{kind:m.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}:{kind:m.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}},t.parseFragmentName=function(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()},t.parseValueLiteral=function(e){var t=this._lexer.token;switch(t.kind){case b.BRACKET_L:return this.parseList(e);case b.BRACE_L:return this.parseObject(e);case b.INT:return this._lexer.advance(),{kind:m.INT,value:t.value,loc:this.loc(t)};case b.FLOAT:return this._lexer.advance(),{kind:m.FLOAT,value:t.value,loc:this.loc(t)};case b.STRING:case b.BLOCK_STRING:return this.parseStringLiteral();case b.NAME:switch(this._lexer.advance(),t.value){case"true":return{kind:m.BOOLEAN,value:!0,loc:this.loc(t)};case"false":return{kind:m.BOOLEAN,value:!1,loc:this.loc(t)};case"null":return{kind:m.NULL,loc:this.loc(t)};default:return{kind:m.ENUM,value:t.value,loc:this.loc(t)}}case b.DOLLAR:if(!e)return this.parseVariable()}throw this.unexpected()},t.parseStringLiteral=function(){var e=this._lexer.token;return this._lexer.advance(),{kind:m.STRING,value:e.value,block:e.kind===b.BLOCK_STRING,loc:this.loc(e)}},t.parseList=function(e){var t=this,r=this._lexer.token;return{kind:m.LIST,values:this.any(b.BRACKET_L,(function(){return t.parseValueLiteral(e)}),b.BRACKET_R),loc:this.loc(r)}},t.parseObject=function(e){var t=this,r=this._lexer.token;return{kind:m.OBJECT,fields:this.any(b.BRACE_L,(function(){return t.parseObjectField(e)}),b.BRACE_R),loc:this.loc(r)}},t.parseObjectField=function(e){var t=this._lexer.token,r=this.parseName();return this.expectToken(b.COLON),{kind:m.OBJECT_FIELD,name:r,value:this.parseValueLiteral(e),loc:this.loc(t)}},t.parseDirectives=function(e){for(var t=[];this.peek(b.AT);)t.push(this.parseDirective(e));return t},t.parseDirective=function(e){var t=this._lexer.token;return this.expectToken(b.AT),{kind:m.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e),loc:this.loc(t)}},t.parseTypeReference=function(){var e,t=this._lexer.token;return this.expectOptionalToken(b.BRACKET_L)?(e=this.parseTypeReference(),this.expectToken(b.BRACKET_R),e={kind:m.LIST_TYPE,type:e,loc:this.loc(t)}):e=this.parseNamedType(),this.expectOptionalToken(b.BANG)?{kind:m.NON_NULL_TYPE,type:e,loc:this.loc(t)}:e},t.parseNamedType=function(){var e=this._lexer.token;return{kind:m.NAMED_TYPE,name:this.parseName(),loc:this.loc(e)}},t.parseTypeSystemDefinition=function(){var e=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(e.kind===b.NAME)switch(e.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}throw this.unexpected(e)},t.peekDescription=function(){return this.peek(b.STRING)||this.peek(b.BLOCK_STRING)},t.parseDescription=function(){if(this.peekDescription())return this.parseStringLiteral()},t.parseSchemaDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");var r=this.parseDirectives(!0),n=this.many(b.BRACE_L,this.parseOperationTypeDefinition,b.BRACE_R);return{kind:m.SCHEMA_DEFINITION,description:t,directives:r,operationTypes:n,loc:this.loc(e)}},t.parseOperationTypeDefinition=function(){var e=this._lexer.token,t=this.parseOperationType();this.expectToken(b.COLON);var r=this.parseNamedType();return{kind:m.OPERATION_TYPE_DEFINITION,operation:t,type:r,loc:this.loc(e)}},t.parseScalarTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");var r=this.parseName(),n=this.parseDirectives(!0);return{kind:m.SCALAR_TYPE_DEFINITION,description:t,name:r,directives:n,loc:this.loc(e)}},t.parseObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");var r=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),a=this.parseFieldsDefinition();return{kind:m.OBJECT_TYPE_DEFINITION,description:t,name:r,interfaces:n,directives:i,fields:a,loc:this.loc(e)}},t.parseImplementsInterfaces=function(){var e;if(!this.expectOptionalKeyword("implements"))return[];if(!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacySDLImplementsInterfaces)){var t=[];this.expectOptionalToken(b.AMP);do{t.push(this.parseNamedType())}while(this.expectOptionalToken(b.AMP)||this.peek(b.NAME));return t}return this.delimitedMany(b.AMP,this.parseNamedType)},t.parseFieldsDefinition=function(){var e;return!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacySDLEmptyFields)&&this.peek(b.BRACE_L)&&this._lexer.lookahead().kind===b.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(b.BRACE_L,this.parseFieldDefinition,b.BRACE_R)},t.parseFieldDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),r=this.parseName(),n=this.parseArgumentDefs();this.expectToken(b.COLON);var i=this.parseTypeReference(),a=this.parseDirectives(!0);return{kind:m.FIELD_DEFINITION,description:t,name:r,arguments:n,type:i,directives:a,loc:this.loc(e)}},t.parseArgumentDefs=function(){return this.optionalMany(b.PAREN_L,this.parseInputValueDef,b.PAREN_R)},t.parseInputValueDef=function(){var e=this._lexer.token,t=this.parseDescription(),r=this.parseName();this.expectToken(b.COLON);var n,i=this.parseTypeReference();this.expectOptionalToken(b.EQUALS)&&(n=this.parseValueLiteral(!0));var a=this.parseDirectives(!0);return{kind:m.INPUT_VALUE_DEFINITION,description:t,name:r,type:i,defaultValue:n,directives:a,loc:this.loc(e)}},t.parseInterfaceTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");var r=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),a=this.parseFieldsDefinition();return{kind:m.INTERFACE_TYPE_DEFINITION,description:t,name:r,interfaces:n,directives:i,fields:a,loc:this.loc(e)}},t.parseUnionTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");var r=this.parseName(),n=this.parseDirectives(!0),i=this.parseUnionMemberTypes();return{kind:m.UNION_TYPE_DEFINITION,description:t,name:r,directives:n,types:i,loc:this.loc(e)}},t.parseUnionMemberTypes=function(){return this.expectOptionalToken(b.EQUALS)?this.delimitedMany(b.PIPE,this.parseNamedType):[]},t.parseEnumTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");var r=this.parseName(),n=this.parseDirectives(!0),i=this.parseEnumValuesDefinition();return{kind:m.ENUM_TYPE_DEFINITION,description:t,name:r,directives:n,values:i,loc:this.loc(e)}},t.parseEnumValuesDefinition=function(){return this.optionalMany(b.BRACE_L,this.parseEnumValueDefinition,b.BRACE_R)},t.parseEnumValueDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),r=this.parseName(),n=this.parseDirectives(!0);return{kind:m.ENUM_VALUE_DEFINITION,description:t,name:r,directives:n,loc:this.loc(e)}},t.parseInputObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");var r=this.parseName(),n=this.parseDirectives(!0),i=this.parseInputFieldsDefinition();return{kind:m.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:r,directives:n,fields:i,loc:this.loc(e)}},t.parseInputFieldsDefinition=function(){return this.optionalMany(b.BRACE_L,this.parseInputValueDef,b.BRACE_R)},t.parseTypeSystemExtension=function(){var e=this._lexer.lookahead();if(e.kind===b.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)},t.parseSchemaExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var t=this.parseDirectives(!0),r=this.optionalMany(b.BRACE_L,this.parseOperationTypeDefinition,b.BRACE_R);if(0===t.length&&0===r.length)throw this.unexpected();return{kind:m.SCHEMA_EXTENSION,directives:t,operationTypes:r,loc:this.loc(e)}},t.parseScalarTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var t=this.parseName(),r=this.parseDirectives(!0);if(0===r.length)throw this.unexpected();return{kind:m.SCALAR_TYPE_EXTENSION,name:t,directives:r,loc:this.loc(e)}},t.parseObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var t=this.parseName(),r=this.parseImplementsInterfaces(),n=this.parseDirectives(!0),i=this.parseFieldsDefinition();if(0===r.length&&0===n.length&&0===i.length)throw this.unexpected();return{kind:m.OBJECT_TYPE_EXTENSION,name:t,interfaces:r,directives:n,fields:i,loc:this.loc(e)}},t.parseInterfaceTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var t=this.parseName(),r=this.parseImplementsInterfaces(),n=this.parseDirectives(!0),i=this.parseFieldsDefinition();if(0===r.length&&0===n.length&&0===i.length)throw this.unexpected();return{kind:m.INTERFACE_TYPE_EXTENSION,name:t,interfaces:r,directives:n,fields:i,loc:this.loc(e)}},t.parseUnionTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var t=this.parseName(),r=this.parseDirectives(!0),n=this.parseUnionMemberTypes();if(0===r.length&&0===n.length)throw this.unexpected();return{kind:m.UNION_TYPE_EXTENSION,name:t,directives:r,types:n,loc:this.loc(e)}},t.parseEnumTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var t=this.parseName(),r=this.parseDirectives(!0),n=this.parseEnumValuesDefinition();if(0===r.length&&0===n.length)throw this.unexpected();return{kind:m.ENUM_TYPE_EXTENSION,name:t,directives:r,values:n,loc:this.loc(e)}},t.parseInputObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var t=this.parseName(),r=this.parseDirectives(!0),n=this.parseInputFieldsDefinition();if(0===r.length&&0===n.length)throw this.unexpected();return{kind:m.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:r,fields:n,loc:this.loc(e)}},t.parseDirectiveDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(b.AT);var r=this.parseName(),n=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var a=this.parseDirectiveLocations();return{kind:m.DIRECTIVE_DEFINITION,description:t,name:r,arguments:n,repeatable:i,locations:a,loc:this.loc(e)}},t.parseDirectiveLocations=function(){return this.delimitedMany(b.PIPE,this.parseDirectiveLocation)},t.parseDirectiveLocation=function(){var e=this._lexer.token,t=this.parseName();if(void 0!==X[t.value])return t;throw this.unexpected(e)},t.loc=function(e){var t;if(!0!==(null===(t=this._options)||void 0===t?void 0:t.noLocation))return new j(e,this._lexer.lastToken,this._lexer.source)},t.peek=function(e){return this._lexer.token.kind===e},t.expectToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t;throw I(this._lexer.source,t.start,"Expected ".concat(ee(e),", found ").concat(Z(t),"."))},t.expectOptionalToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t},t.expectKeyword=function(e){var t=this._lexer.token;if(t.kind!==b.NAME||t.value!==e)throw I(this._lexer.source,t.start,'Expected "'.concat(e,'", found ').concat(Z(t),"."));this._lexer.advance()},t.expectOptionalKeyword=function(e){var t=this._lexer.token;return t.kind===b.NAME&&t.value===e&&(this._lexer.advance(),!0)},t.unexpected=function(e){var t=null!=e?e:this._lexer.token;return I(this._lexer.source,t.start,"Unexpected ".concat(Z(t),"."))},t.any=function(e,t,r){this.expectToken(e);for(var n=[];!this.expectOptionalToken(r);)n.push(t.call(this));return n},t.optionalMany=function(e,t,r){if(this.expectOptionalToken(e)){var n=[];do{n.push(t.call(this))}while(!this.expectOptionalToken(r));return n}return[]},t.many=function(e,t,r){this.expectToken(e);var n=[];do{n.push(t.call(this))}while(!this.expectOptionalToken(r));return n},t.delimitedMany=function(e,t){this.expectOptionalToken(e);var r=[];do{r.push(t.call(this))}while(this.expectOptionalToken(e));return r},e}();function Z(e){var t=e.value;return ee(e.kind)+(null!=t?' "'.concat(t,'"'):"")}function ee(e){return function(e){return e===b.BANG||e===b.DOLLAR||e===b.AMP||e===b.PAREN_L||e===b.PAREN_R||e===b.SPREAD||e===b.COLON||e===b.EQUALS||e===b.AT||e===b.BRACKET_L||e===b.BRACKET_R||e===b.BRACE_L||e===b.PIPE||e===b.BRACE_R}(e)?'"'.concat(e,'"'):e}var te={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},re=Object.freeze({});function ne(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:te,n=void 0,i=Array.isArray(e),a=[e],o=-1,c=[],u=void 0,l=void 0,p=void 0,d=[],h=[],f=e;do{var y=++o===a.length,g=y&&0!==c.length;if(y){if(l=0===h.length?void 0:d[d.length-1],u=p,p=h.pop(),g){if(i)u=u.slice();else{for(var m={},b=0,_=Object.keys(u);b<_.length;b++){var v=_[b];m[v]=u[v]}u=m}for(var w=0,E=0;E80&&(o=s+pe("(\n",de(ue(n,"\n")),"\n)")),ue([o,ue(i," "),a]," ")},Argument:function(e){return e.name+": "+e.value},FragmentSpread:function(e){return"..."+e.name+pe(" ",ue(e.directives," "))},InlineFragment:function(e){var t=e.typeCondition,r=e.directives,n=e.selectionSet;return ue(["...",pe("on ",t),ue(r," "),n]," ")},FragmentDefinition:function(e){var t=e.name,r=e.typeCondition,n=e.variableDefinitions,i=e.directives,a=e.selectionSet;return"fragment ".concat(t).concat(pe("(",ue(n,", "),")")," ")+"on ".concat(r," ").concat(pe("",ue(i," ")," "))+a},IntValue:function(e){return e.value},FloatValue:function(e){return e.value},StringValue:function(e,t){var r=e.value;return e.block?function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=-1===e.indexOf("\n"),i=" "===e[0]||"\t"===e[0],a='"'===e[e.length-1],s="\\"===e[e.length-1],o=!n||a||s||r,c="";return!o||n&&i||(c+="\n"+t),c+=t?e.replace(/\n/g,"\n"+t):e,o&&(c+="\n"),'"""'+c.replace(/"""/g,'\\"""')+'"""'}(r,"description"===t?"":" "):JSON.stringify(r)},BooleanValue:function(e){return e.value?"true":"false"},NullValue:function(){return"null"},EnumValue:function(e){return e.value},ListValue:function(e){return"["+ue(e.values,", ")+"]"},ObjectValue:function(e){return"{"+ue(e.fields,", ")+"}"},ObjectField:function(e){return e.name+": "+e.value},Directive:function(e){return"@"+e.name+pe("(",ue(e.arguments,", "),")")},NamedType:function(e){return e.name},ListType:function(e){return"["+e.type+"]"},NonNullType:function(e){return e.type+"!"},SchemaDefinition:ce((function(e){var t=e.directives,r=e.operationTypes;return ue(["schema",ue(t," "),le(r)]," ")})),OperationTypeDefinition:function(e){return e.operation+": "+e.type},ScalarTypeDefinition:ce((function(e){return ue(["scalar",e.name,ue(e.directives," ")]," ")})),ObjectTypeDefinition:ce((function(e){var t=e.name,r=e.interfaces,n=e.directives,i=e.fields;return ue(["type",t,pe("implements ",ue(r," & ")),ue(n," "),le(i)]," ")})),FieldDefinition:ce((function(e){var t=e.name,r=e.arguments,n=e.type,i=e.directives;return t+(fe(r)?pe("(\n",de(ue(r,"\n")),"\n)"):pe("(",ue(r,", "),")"))+": "+n+pe(" ",ue(i," "))})),InputValueDefinition:ce((function(e){var t=e.name,r=e.type,n=e.defaultValue,i=e.directives;return ue([t+": "+r,pe("= ",n),ue(i," ")]," ")})),InterfaceTypeDefinition:ce((function(e){var t=e.name,r=e.interfaces,n=e.directives,i=e.fields;return ue(["interface",t,pe("implements ",ue(r," & ")),ue(n," "),le(i)]," ")})),UnionTypeDefinition:ce((function(e){var t=e.name,r=e.directives,n=e.types;return ue(["union",t,ue(r," "),n&&0!==n.length?"= "+ue(n," | "):""]," ")})),EnumTypeDefinition:ce((function(e){var t=e.name,r=e.directives,n=e.values;return ue(["enum",t,ue(r," "),le(n)]," ")})),EnumValueDefinition:ce((function(e){return ue([e.name,ue(e.directives," ")]," ")})),InputObjectTypeDefinition:ce((function(e){var t=e.name,r=e.directives,n=e.fields;return ue(["input",t,ue(r," "),le(n)]," ")})),DirectiveDefinition:ce((function(e){var t=e.name,r=e.arguments,n=e.repeatable,i=e.locations;return"directive @"+t+(fe(r)?pe("(\n",de(ue(r,"\n")),"\n)"):pe("(",ue(r,", "),")"))+(n?" repeatable":"")+" on "+ue(i," | ")})),SchemaExtension:function(e){var t=e.directives,r=e.operationTypes;return ue(["extend schema",ue(t," "),le(r)]," ")},ScalarTypeExtension:function(e){return ue(["extend scalar",e.name,ue(e.directives," ")]," ")},ObjectTypeExtension:function(e){var t=e.name,r=e.interfaces,n=e.directives,i=e.fields;return ue(["extend type",t,pe("implements ",ue(r," & ")),ue(n," "),le(i)]," ")},InterfaceTypeExtension:function(e){var t=e.name,r=e.interfaces,n=e.directives,i=e.fields;return ue(["extend interface",t,pe("implements ",ue(r," & ")),ue(n," "),le(i)]," ")},UnionTypeExtension:function(e){var t=e.name,r=e.directives,n=e.types;return ue(["extend union",t,ue(r," "),n&&0!==n.length?"= "+ue(n," | "):""]," ")},EnumTypeExtension:function(e){var t=e.name,r=e.directives,n=e.values;return ue(["extend enum",t,ue(r," "),le(n)]," ")},InputObjectTypeExtension:function(e){var t=e.name,r=e.directives,n=e.fields;return ue(["extend input",t,ue(r," "),le(n)]," ")}};function ce(e){return function(t){return ue([t.description,e(t)],"\n")}}function ue(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return null!==(t=null==e?void 0:e.filter((function(e){return e})).join(r))&&void 0!==t?t:""}function le(e){return pe("{\n",de(ue(e,"\n")),"\n}")}function pe(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return null!=t&&""!==t?e+t+r:""}function de(e){return pe(" ",e.replace(/\n/g,"\n "))}function he(e){return-1!==e.indexOf("\n")}function fe(e){return null!=e&&e.some(he)}function ye(e){return ge(e)||ve(e)||Ee(e)}function ge(e){return e.kind===m.OPERATION_DEFINITION||e.kind===m.FRAGMENT_DEFINITION}function me(e){return e.kind===m.FIELD||e.kind===m.FRAGMENT_SPREAD||e.kind===m.INLINE_FRAGMENT}function be(e){return e.kind===m.VARIABLE||e.kind===m.INT||e.kind===m.FLOAT||e.kind===m.STRING||e.kind===m.BOOLEAN||e.kind===m.NULL||e.kind===m.ENUM||e.kind===m.LIST||e.kind===m.OBJECT}function _e(e){return e.kind===m.NAMED_TYPE||e.kind===m.LIST_TYPE||e.kind===m.NON_NULL_TYPE}function ve(e){return e.kind===m.SCHEMA_DEFINITION||we(e)||e.kind===m.DIRECTIVE_DEFINITION}function we(e){return e.kind===m.SCALAR_TYPE_DEFINITION||e.kind===m.OBJECT_TYPE_DEFINITION||e.kind===m.INTERFACE_TYPE_DEFINITION||e.kind===m.UNION_TYPE_DEFINITION||e.kind===m.ENUM_TYPE_DEFINITION||e.kind===m.INPUT_OBJECT_TYPE_DEFINITION}function Ee(e){return e.kind===m.SCHEMA_EXTENSION||Te(e)}function Te(e){return e.kind===m.SCALAR_TYPE_EXTENSION||e.kind===m.OBJECT_TYPE_EXTENSION||e.kind===m.INTERFACE_TYPE_EXTENSION||e.kind===m.UNION_TYPE_EXTENSION||e.kind===m.ENUM_TYPE_EXTENSION||e.kind===m.INPUT_OBJECT_TYPE_EXTENSION}r.d(t,"Source",(function(){return p})),r.d(t,"getLocation",(function(){return d})),r.d(t,"printLocation",(function(){return h})),r.d(t,"printSourceLocation",(function(){return f})),r.d(t,"Kind",(function(){return m})),r.d(t,"TokenKind",(function(){return b})),r.d(t,"Lexer",(function(){return M})),r.d(t,"parse",(function(){return J})),r.d(t,"parseValue",(function(){return Y})),r.d(t,"parseType",(function(){return K})),r.d(t,"print",(function(){return se})),r.d(t,"visit",(function(){return ne})),r.d(t,"visitInParallel",(function(){return ie})),r.d(t,"getVisitFn",(function(){return ae})),r.d(t,"BREAK",(function(){return re})),r.d(t,"Location",(function(){return j})),r.d(t,"Token",(function(){return C})),r.d(t,"isDefinitionNode",(function(){return ye})),r.d(t,"isExecutableDefinitionNode",(function(){return ge})),r.d(t,"isSelectionNode",(function(){return me})),r.d(t,"isValueNode",(function(){return be})),r.d(t,"isTypeNode",(function(){return _e})),r.d(t,"isTypeSystemDefinitionNode",(function(){return ve})),r.d(t,"isTypeDefinitionNode",(function(){return we})),r.d(t,"isTypeSystemExtensionNode",(function(){return Ee})),r.d(t,"isTypeExtensionNode",(function(){return Te})),r.d(t,"DirectiveLocation",(function(){return X}))}]); +t.read=function(e,t,r,n,i){var a,s,o=8*i-n-1,c=(1<>1,l=-7,d=r?i-1:0,p=r?-1:1,h=e[t+d];for(d+=p,a=h&(1<<-l)-1,h>>=-l,l+=o;l>0;a=256*a+e[t+d],d+=p,l-=8);for(s=a&(1<<-l)-1,a>>=-l,l+=n;l>0;s=256*s+e[t+d],d+=p,l-=8);if(0===a)a=1-u;else{if(a===c)return s?NaN:1/0*(h?-1:1);s+=Math.pow(2,n),a-=u}return(h?-1:1)*s*Math.pow(2,a-n)},t.write=function(e,t,r,n,i,a){var s,o,c,u=8*a-i-1,l=(1<>1,p=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:a-1,f=n?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(o=isNaN(t)?1:0,s=l):(s=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-s))<1&&(s--,c*=2),(t+=s+d>=1?p/c:p*Math.pow(2,1-d))*c>=2&&(s++,c/=2),s+d>=l?(o=0,s=l):s+d>=1?(o=(t*c-1)*Math.pow(2,i),s+=d):(o=t*Math.pow(2,d-1)*Math.pow(2,i),s=0));i>=8;e[r+h]=255&o,h+=f,o/=256,i-=8);for(s=s<0;e[r+h]=255&s,h+=f,s/=256,u-=8);e[r+h-f]|=128*g}},function(e,t){},function(e,t,r){"use strict";var n=r(83).Buffer,i=r(283);e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r},e.prototype.concat=function(e){if(0===this.length)return n.alloc(0);if(1===this.length)return this.head.data;for(var t,r,i,a=n.allocUnsafe(e>>>0),s=this.head,o=0;s;)t=s.data,r=a,i=o,t.copy(r,i),o+=s.data.length,s=s.next;return a},e}(),i&&i.inspect&&i.inspect.custom&&(e.exports.prototype[i.inspect.custom]=function(){var e=i.inspect({length:this.length});return this.constructor.name+" "+e})},function(e,t){},function(e,t,r){(function(e,t){!function(e,r){"use strict";if(!e.setImmediate){var n,i,a,s,o,c=1,u={},l=!1,d=e.document,p=Object.getPrototypeOf&&Object.getPrototypeOf(e);p=p&&p.setTimeout?p:e,"[object process]"==={}.toString.call(e.process)?n=function(e){t.nextTick((function(){f(e)}))}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,r=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=r,t}}()?e.MessageChannel?((a=new MessageChannel).port1.onmessage=function(e){f(e.data)},n=function(e){a.port2.postMessage(e)}):d&&"onreadystatechange"in d.createElement("script")?(i=d.documentElement,n=function(e){var t=d.createElement("script");t.onreadystatechange=function(){f(e),t.onreadystatechange=null,i.removeChild(t),t=null},i.appendChild(t)}):n=function(e){setTimeout(f,0,e)}:(s="setImmediate$"+Math.random()+"$",o=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(s)&&f(+t.data.slice(s.length))},e.addEventListener?e.addEventListener("message",o,!1):e.attachEvent("onmessage",o),n=function(t){e.postMessage(s+t,"*")}),p.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),r=0;r{this.mediaTypes[e]=t*r}),this.mediaTypes=Object.freeze(this.mediaTypes),this.mediaTypeFormats=Object.freeze(this.mediaTypeFormats)}async testHandle(e,t,r){if(!(t in this.mediaTypes))throw new Error("Unrecognized media type: "+t);return await this.testHandleChecked(e,r)}async testMediaType(e){return!0}async getMediaTypes(e){return this.mediaTypes}async testMediaTypeFormats(e){return!0}async getMediaTypeFormats(e){return this.mediaTypeFormats}}t.ActorAbstractMediaTypedFixed=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ActorSparqlSerializeFixedMediaTypes=void 0;const n=r(38);class i extends n.ActorAbstractMediaTypedFixed{constructor(e){super(e)}async testHandleChecked(e,t){return!0}}t.ActorSparqlSerializeFixedMediaTypes=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Converter=void 0;const n=r(295),i=r(132);class a{constructor(e){(e=e||{delimiter:"_"}).prefixVariableQuestionMark=!1,this.delimiter=e.delimiter||"_",this.parser=new i.SparqlJsonParser(e),this.materializeRdfJsTerms=e.materializeRdfJsTerms}static addValueToTree(e,t,r,n,i,s){const o=t[0],c=n?n+s+o:o,u=i.singularizeVariables[c];if(1===t.length)u?e[o]||(e[o]=r):(e[o]||(e[o]=[]),e[o].push(r));else{let n;u?(e[o]||(e[o]={}),n=e[o]):(e[o]||(e[o]=[{}]),n=e[o][0]),a.addValueToTree(n,t.slice(1),r,c,i,s)}}static mergeTrees(e,t){if(typeof e!=typeof t)throw new Error(`Two incompatible tree nodes were found: ${typeof e} and ${typeof t}`);if(Array.isArray(e)!==Array.isArray(t))throw new Error(`Two incompatible tree nodes were found: Array?${Array.isArray(e)} and Array?${Array.isArray(t)}`);if("object"==typeof e&&"object"==typeof t){if(e.termType&&t.termType)return e.equals(t)?{valid:!0,result:e}:{valid:!1,result:e};if(Array.isArray(e)&&Array.isArray(t)){if(e.length>0){const r=[];let n=!1;for(const i of e){const e=a.mergeTrees(i,t[0]);e.valid?(n=!0,r.push(e.result)):r.push(i)}if(n)return{valid:!0,result:r}}return{valid:!0,result:e.concat(t)}}{const r={};for(const e in t)r[e]=t[e];for(const t in e)if(r[t]){const n=a.mergeTrees(e[t],r[t]);if(!n.valid)return{valid:!1,result:e};r[t]=n.result}else r[t]=e[t];return{valid:!0,result:r}}}throw new Error(`Unmergable tree types: ${typeof e} and ${typeof t}`)}static materializeTree(e){if(e.termType)return n.getTermRaw(e);if(Array.isArray(e))return e.map(a.materializeTree);{const t={};for(const r in e)t[r]=a.materializeTree(e[r]);return t}}sparqlJsonResultsToTree(e,t){return this.bindingsToTree(this.parser.parseJsonResults(e),t||{singularizeVariables:{}})}bindingsToTree(e,t){const r=t&&t.singularizeVariables[""];let n=r?{}:[];for(const i of e){const e=r?{}:[{}];for(const n in i){const s=n.split(this.delimiter),o=i[n];a.addValueToTree(r?e:e[0],s,o,"",t,this.delimiter)}n=a.mergeTrees(n,e).result}return this.materializeRdfJsTerms&&(n=a.materializeTree(n)),n}}t.Converter=a},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.getSupportedJavaScriptPrimitives=t.getSupportedRdfDatatypes=t.getTermRaw=t.toRdf=t.fromRdf=void 0;const a=r(5),s=r(131),o=r(39);i(r(131),t),i(r(301),t),i(r(39),t);const c=new a.DataFactory,u=new o.Translator;function l(e,t){return u.fromRdf(e,t)}u.registerHandler(new s.TypeHandlerString,s.TypeHandlerString.TYPES.map(e=>c.namedNode(e)),["string"]),u.registerHandler(new s.TypeHandlerBoolean,[s.TypeHandlerBoolean.TYPE].map(e=>c.namedNode(e)),["boolean"]),u.registerHandler(new s.TypeHandlerNumberDouble,s.TypeHandlerNumberDouble.TYPES.map(e=>c.namedNode(e)),["number"]),u.registerHandler(new s.TypeHandlerNumberInteger,s.TypeHandlerNumberInteger.TYPES.map(e=>c.namedNode(e)),["number"]),u.registerHandler(new s.TypeHandlerDate,s.TypeHandlerDate.TYPES.map(e=>c.namedNode(e)),["object"]),t.fromRdf=l,t.toRdf=function(e,t){return t&&"namedNode"in t&&(t={dataFactory:t}),(t=t||{})&&!t.dataFactory&&(t.dataFactory=c),u.toRdf(e,t)},t.getTermRaw=function(e,t){return"Literal"===e.termType?l(e,t):e.value},t.getSupportedRdfDatatypes=function(){return u.getSupportedRdfDatatypes()},t.getSupportedJavaScriptPrimitives=function(){return u.getSupportedJavaScriptPrimitives()}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TypeHandlerBoolean=void 0;const n=r(39);class i{fromRdf(e,t){switch(e.value){case"true":return!0;case"false":return!1;case"1":return!0;case"0":return!1}return t&&n.Translator.incorrectRdfDataType(e),!1}toRdf(e,{datatype:t,dataFactory:r}){return r.literal(e?"true":"false",t||r.namedNode(i.TYPE))}}t.TypeHandlerBoolean=i,i.TYPE="http://www.w3.org/2001/XMLSchema#boolean"},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TypeHandlerDate=void 0;const n=r(39);class i{fromRdf(e,t){switch(t&&!e.value.match(i.VALIDATORS[e.datatype.value.substr(33,e.datatype.value.length)])&&n.Translator.incorrectRdfDataType(e),e.datatype.value){case"http://www.w3.org/2001/XMLSchema#gDay":return new Date(0,0,parseInt(e.value,10));case"http://www.w3.org/2001/XMLSchema#gMonthDay":const t=e.value.split("-");return new Date(0,parseInt(t[0],10)-1,parseInt(t[1],10));case"http://www.w3.org/2001/XMLSchema#gYear":return new Date(e.value+"-01-01");case"http://www.w3.org/2001/XMLSchema#gYearMonth":return new Date(e.value+"-01");default:return new Date(e.value)}}toRdf(e,{datatype:t,dataFactory:r}){if(t=t||r.namedNode(i.TYPES[0]),!(e instanceof Date))return null;const n=e;let a;switch(t.value){case"http://www.w3.org/2001/XMLSchema#gDay":a=String(n.getUTCDate());break;case"http://www.w3.org/2001/XMLSchema#gMonthDay":a=n.getUTCMonth()+1+"-"+n.getUTCDate();break;case"http://www.w3.org/2001/XMLSchema#gYear":a=String(n.getUTCFullYear());break;case"http://www.w3.org/2001/XMLSchema#gYearMonth":a=n.getUTCFullYear()+"-"+(n.getUTCMonth()+1);break;case"http://www.w3.org/2001/XMLSchema#date":a=n.toISOString().replace(/T.*$/,"");break;default:a=n.toISOString()}return r.literal(a,t)}}t.TypeHandlerDate=i,i.TYPES=["http://www.w3.org/2001/XMLSchema#dateTime","http://www.w3.org/2001/XMLSchema#date","http://www.w3.org/2001/XMLSchema#gDay","http://www.w3.org/2001/XMLSchema#gMonthDay","http://www.w3.org/2001/XMLSchema#gYear","http://www.w3.org/2001/XMLSchema#gYearMonth"],i.VALIDATORS={date:/^[0-9]+-[0-9][0-9]-[0-9][0-9]Z?$/,dateTime:/^[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][0-9][0-9])?((Z?)|([\+-][0-9][0-9]:[0-9][0-9]))$/,gDay:/^[0-9]+$/,gMonthDay:/^[0-9]+-[0-9][0-9]$/,gYear:/^[0-9]+$/,gYearMonth:/^[0-9]+-[0-9][0-9]$/}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TypeHandlerNumberDouble=void 0;const n=r(39);class i{fromRdf(e,t){const r=parseFloat(e.value);return t&&isNaN(r)&&n.Translator.incorrectRdfDataType(e),r}toRdf(e,{datatype:t,dataFactory:r}){return t=t||r.namedNode(i.TYPES[0]),isNaN(e)?r.literal("NaN",t):isFinite(e)?e%1==0?null:r.literal(e.toExponential(15).replace(/(\d)0*e\+?/,"$1E"),t):r.literal(e>0?"INF":"-INF",t)}}t.TypeHandlerNumberDouble=i,i.TYPES=["http://www.w3.org/2001/XMLSchema#double","http://www.w3.org/2001/XMLSchema#decimal","http://www.w3.org/2001/XMLSchema#float"]},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TypeHandlerNumberInteger=void 0;const n=r(39);class i{fromRdf(e,t){const r=parseInt(e.value,10);return t&&(isNaN(r)||e.value.indexOf(".")>=0)&&n.Translator.incorrectRdfDataType(e),r}toRdf(e,{datatype:t,dataFactory:r}){return r.literal(String(e),t||(e<=i.MAX_INT&&e>=i.MIN_INT?r.namedNode(i.TYPES[0]):r.namedNode(i.TYPES[1])))}}t.TypeHandlerNumberInteger=i,i.TYPES=["http://www.w3.org/2001/XMLSchema#integer","http://www.w3.org/2001/XMLSchema#long","http://www.w3.org/2001/XMLSchema#int","http://www.w3.org/2001/XMLSchema#byte","http://www.w3.org/2001/XMLSchema#short","http://www.w3.org/2001/XMLSchema#negativeInteger","http://www.w3.org/2001/XMLSchema#nonNegativeInteger","http://www.w3.org/2001/XMLSchema#nonPositiveInteger","http://www.w3.org/2001/XMLSchema#positiveInteger","http://www.w3.org/2001/XMLSchema#unsignedByte","http://www.w3.org/2001/XMLSchema#unsignedInt","http://www.w3.org/2001/XMLSchema#unsignedLong","http://www.w3.org/2001/XMLSchema#unsignedShort"],i.MAX_INT=2147483647,i.MIN_INT=-2147483648},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TypeHandlerString=void 0;class n{fromRdf(e){return e.value}toRdf(e,{datatype:t,dataFactory:r}){return r.literal(e,t)}}t.TypeHandlerString=n,n.TYPES=["http://www.w3.org/2001/XMLSchema#string","http://www.w3.org/2001/XMLSchema#normalizedString","http://www.w3.org/2001/XMLSchema#anyURI","http://www.w3.org/2001/XMLSchema#base64Binary","http://www.w3.org/2001/XMLSchema#language","http://www.w3.org/2001/XMLSchema#Name","http://www.w3.org/2001/XMLSchema#NCName","http://www.w3.org/2001/XMLSchema#NMTOKEN","http://www.w3.org/2001/XMLSchema#token","http://www.w3.org/2001/XMLSchema#hexBinary","http://www.w3.org/1999/02/22-rdf-syntax-ns#langString","http://www.w3.org/2001/XMLSchema#time","http://www.w3.org/2001/XMLSchema#duration"]},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SparqlJsonParser=void 0;const n=r(5),i=r(133);t.SparqlJsonParser=class{constructor(e){e=e||{},this.dataFactory=e.dataFactory||new n.DataFactory,this.prefixVariableQuestionMark=!!e.prefixVariableQuestionMark}parseJsonResults(e){return e.results.bindings.map(e=>this.parseJsonBindings(e))}parseJsonResultsStream(e){const t=e=>a.emit("error",e);e.on("error",t);const n=[];e.pipe(r(85).parse("head.vars.*").on("error",t)).on("data",e=>n.push(this.dataFactory.variable(e))).on("end",()=>a.emit("variables",n));const a=e.pipe(r(85).parse("results.bindings.*").on("error",t)).pipe(new i.SparqlJsonBindingsTransformer(this));return a}parseJsonBindings(e){const t={};for(const r in e){const n=e[r];let i=null;switch(n.type){case"bnode":i=this.dataFactory.blankNode(n.value);break;case"literal":i=n["xml:lang"]?this.dataFactory.literal(n.value,n["xml:lang"]):n.datatype?this.dataFactory.literal(n.value,this.dataFactory.namedNode(n.datatype)):this.dataFactory.literal(n.value);break;case"typed-literal":i=this.dataFactory.literal(n.value,this.dataFactory.namedNode(n.datatype));break;default:i=this.dataFactory.namedNode(n.value)}t[this.prefixVariableQuestionMark?"?"+r:r]=i}return t}parseJsonBoolean(e){if("boolean"in e)return e.boolean;throw new Error("No valid ASK response was found.")}parseJsonBooleanStream(e){return new Promise((t,n)=>{e.on("error",n),e.pipe(r(85).parse("boolean")).on("data",t).on("end",()=>n(new Error("No valid ASK response was found.")))})}}},function(e,t,r){(function(t){var n=r(3);function i(e,r,i){e=e||function(e){this.queue(e)},r=r||function(){this.queue(null)};var a=!1,s=!1,o=[],c=!1,u=new n;function l(){for(;o.length&&!u.paused;){var e=o.shift();if(null===e)return u.emit("end");u.emit("data",e)}}function d(){u.writable=!1,r.call(u),!u.readable&&u.autoDestroy&&u.destroy()}return u.readable=u.writable=!0,u.paused=!1,u.autoDestroy=!(i&&!1===i.autoDestroy),u.write=function(t){return e.call(this,t),!u.paused},u.queue=u.push=function(e){return c||(null===e&&(c=!0),o.push(e),l()),u},u.on("end",(function(){u.readable=!1,!u.writable&&u.autoDestroy&&t.nextTick((function(){u.destroy()}))})),u.end=function(e){if(!a)return a=!0,arguments.length&&u.write(e),d(),u},u.destroy=function(){if(!s)return s=!0,a=!0,o.length=0,u.writable=u.readable=!1,u.emit("close"),u},u.pause=function(){if(!u.paused)return u.paused=!0,u},u.resume=function(){return u.paused&&(u.paused=!1,u.emit("resume")),l(),u.paused||u.emit("drain"),u},u}e.exports=i,i.through=i}).call(this,r(9))},function(e,t,r){const n=new(r(305).LoggerVoid)(void 0),i=new(r(0).Bus)({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-init/Bus/Init"}),a=new(r(0).Bus)({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-http/Bus/Http"}),s=new(r(0).Bus)({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-rdf-join/Bus/RdfJoin"}),o=new(r(0).Bus)({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-rdf-parse/Bus/RdfParse"}),c=new(r(0).Bus)({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-rdf-dereference/Bus/RdfDereference"}),u=new(r(0).Bus)({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-rdf-parse-html/Bus/RdfParseHtml"}),l=new(r(0).Bus)({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-rdf-serialize/Bus/RdfSerialize"}),d=new(r(0).Bus)({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-rdf-metadata/Bus/RdfMetadata"}),p=new(r(0).Bus)({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-rdf-metadata-extract/Bus/RdfMetadataExtract"}),h=new(r(0).Bus)({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-rdf-update-hypermedia/Bus/RdfUpdateHypermedia"}),f=new(r(0).Bus)({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-http-invalidate/Bus/HttpInvalidate"}),g=new(r(0).Bus)({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-rdf-update-quads/Bus/RdfUpdateQuads"}),m=new(r(0).Bus)({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-rdf-resolve-quad-pattern/Bus/RdfResolveQuadPattern"}),y=new(r(0).Bus)({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-rdf-resolve-hypermedia/Bus/RdfResolveHypermedia"}),b=new(r(0).Bus)({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-rdf-resolve-hypermedia-links/Bus/RdfResolveHypermediaLinks"}),_=new(r(0).Bus)({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-rdf-resolve-hypermedia-links-queue/Bus/RdfResolveHypermediaLinksQueue"}),v=new(r(0).Bus)({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-optimize-query-operation/Bus/OptimizeQueryOperation"}),w=new(r(0).Bus)({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-sparql-parse/Bus/SparqlParse"}),S=new(r(0).Bus)({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-sparql-serialize/Bus/SparqlSerialize"}),T=new(r(0).Bus)({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-context-preprocess/Bus/ContextPreprocess"}),E=new(r(0).BusIndexed)({actorIdentifierFields:["operationName"],actionIdentifierFields:["operation","type"],name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-query-operation/Bus/QueryOperation"}),O=new(r(86).MediatorNumber)({field:"time",type:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/mediator-number/Mediator/Number/type/TypeMin",ignoreErrors:!0,name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/http.json#mediatorHttp",bus:a}),x=new(r(308).ActorHttpNodeFetch)({agentOptions:'{ "keepAlive": true, "maxSockets": 5 }',name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/http.json#myHttpFetcher",bus:a}),A=new(r(144).ActionObserverHttp)({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-sparql-serialize-stats/Actor/SparqlSerialize/Stats/httpObserver/default",bus:a}),R=new(r(14).MediatorRace)({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/sparql-queryoperators.json#mediatorRdfJoin",bus:s}),P=new(r(326).ActorRdfJoinSymmetricHash)({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/join.json#myRdfJoinActorSymmetricHash",bus:s}),I=new(r(338).ActorRdfJoinNestedLoop)({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/join.json#myRdfJoinActorNestedLoop",bus:s}),N=new(r(31).MediatorCombineUnion)({field:"mediaTypes",name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/rdf-dereference.json#mediatorRdfParseMediatypes",bus:o}),j=new(r(14).MediatorRace)({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/rdf-dereference.json#mediatorRdfParseHandle",bus:o}),C=new(r(341).ActorRdfParseN3)({mediaTypes:{"application/n-quads":"1.0","application/trig":"0.95","application/n-triples":"0.8","text/turtle":"0.6","text/n3":"0.35"},mediaTypeFormats:{"application/n-quads":"http://www.w3.org/ns/formats/N-Quads","application/trig":"http://www.w3.org/ns/formats/TriG","application/n-triples":"http://www.w3.org/ns/formats/N-Triples","text/turtle":"http://www.w3.org/ns/formats/Turtle","text/n3":"http://www.w3.org/ns/formats/N3"},priorityScale:"1",name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/rdf-parsers.json#myRdfParserN3",bus:o}),k=new(r(345).ActorRdfParseRdfXml)({mediaTypes:{"application/rdf+xml":"1.0"},mediaTypeFormats:{"application/rdf+xml":"http://www.w3.org/ns/formats/RDF_XML"},priorityScale:"5.0E-1",name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/rdf-parsers.json#myRdfParserRdfXml",bus:o}),D=new(r(350).ActorRdfParseXmlRdfa)({mediaTypes:{"application/xml":"1.0","text/xml":"1.0","image/svg+xml":"1.0"},mediaTypeFormats:{"application/xml":"http://www.w3.org/ns/formats/RDFa","text/xml":"http://www.w3.org/ns/formats/RDFa","image/svg+xml":"http://www.w3.org/ns/formats/RDFa"},priorityScale:"3.0E-1",name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/rdf-parsers.json#myRdfParserXmlRdfa",bus:o}),L=new(r(31).MediatorCombineUnion)({field:"mediaTypes",name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/rdf-parsers.json#mediatorRdfParseMediatypes",bus:o}),M=new(r(14).MediatorRace)({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/rdf-parsers.json#mediatorRdfParseHandle",bus:o}),F=new(r(374).ActorRdfDereferenceFallback)({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/rdf-dereference.json#myRdfDereferencerFallback",bus:c}),q=new(r(14).MediatorRace)({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/resolve-hypermedia.json#mediatorRdfDereference",bus:c}),B=new(r(377).ActorRdfParseHtml)({busRdfParseHtml:u,mediaTypes:{"text/html":"1.0","application/xhtml+xml":"0.9"},mediaTypeFormats:{"text/html":"http://www.w3.org/ns/formats/HTML","application/xhtml+xml":"http://www.w3.org/ns/formats/HTML"},priorityScale:"2.0E-1",name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/rdf-parsers.json#myRdfParserHtml",bus:o}),U=new(r(385).ActorRdfParseHtmlMicrodata)({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/rdf-parsers.json#myRdfParserHtmlMicrodata",bus:u}),V=new(r(401).ActorRdfParseHtmlRdfa)({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/rdf-parsers.json#myRdfParserHtmlRdfa",bus:u}),H=new(r(403).ActorRdfSerializeN3)({mediaTypes:{"application/trig":"1.0","application/n-quads":"0.7","text/turtle":"0.6","application/n-triples":"0.3","text/n3":"0.2"},mediaTypeFormats:{"application/trig":"http://www.w3.org/ns/formats/TriG","application/n-quads":"http://www.w3.org/ns/formats/N-Quads","text/turtle":"http://www.w3.org/ns/formats/Turtle","application/n-triples":"http://www.w3.org/ns/formats/N-Triples","text/n3":"http://www.w3.org/ns/formats/N3"},name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/rdf-serializers.json#myRdfSerializerN3",bus:l}),G=new(r(407).ActorRdfSerializeJsonLd)({jsonStringifyIndentSpaces:2,mediaTypes:{"application/ld+json":"1.0"},mediaTypeFormats:{"application/ld+json":"http://www.w3.org/ns/formats/JSON-LD"},priorityScale:"9.0E-1",name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/rdf-serializers.json#myRdfSerializeJsonLd",bus:l}),z=new(r(31).MediatorCombineUnion)({field:"mediaTypes",name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/sparql-serializers.json#mediatorRdfSerializeMediatypes",bus:l}),Q=new(r(14).MediatorRace)({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/sparql-serializers.json#mediatorRdfSerialize",bus:l}),$=new(r(31).MediatorCombineUnion)({field:"mediaTypeFormats",name:"df_757_0",bus:l}),X=new(r(14).MediatorRace)({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/resolve-hypermedia.json#mediatorMetadata",bus:d}),Y=new(r(414).ActorRdfMetadataPrimaryTopic)({metadataToData:!1,dataToMetadataOnInvalidMetadataGraph:!0,name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/resolve-hypermedia.json#myRdfMetadataPrimaryTopic",bus:d}),K=new(r(417).ActorRdfMetadataAll)({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/resolve-hypermedia.json#myRdfMetadataAll",bus:d}),J=new(r(31).MediatorCombineUnion)({field:"metadata",name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/resolve-hypermedia.json#mediatorMetadataExtract",bus:p}),W=new(r(419).ActorRdfMetadataExtractPatchSparqlUpdate)({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/resolve-hypermedia.json#myRdfMetadataExtractPatchSparqlUpdate",bus:p}),Z=new(r(449).ActorRdfMetadataExtractAllowHttpMethods)({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/resolve-hypermedia.json#myRdfMetadataExtractAllowHttpMethods",bus:p}),ee=new(r(451).ActorRdfMetadataExtractPutAccepted)({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/resolve-hypermedia.json#myRdfMetadataExtractPutAccepted",bus:p}),te=new(r(453).ActorRdfMetadataExtractHydraControls)({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/resolve-hypermedia.json#myRdfMetadataExtractHydraControls",bus:p}),re=new(r(456).ActorRdfMetadataExtractHydraCount)({predicates:["http://www.w3.org/ns/hydra/core#totalItems","http://rdfs.org/ns/void#triples"],name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/resolve-hypermedia.json#myRdfMetadataExtractHydraCount",bus:p}),ne=new(r(458).ActorRdfMetadataExtractSparqlService)({inferHttpsEndpoint:!0,name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/resolve-sparql.json#myRdfMetadataExtractSparqlService",bus:p}),ie=new(r(14).MediatorRace)({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/rdf-update-rdfjs.json#mediatorRdfUpdateHypermedia",bus:h}),ae=new(r(189).ActorHttpInvalidateListenable)({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-rdf-update-quads/Actor/RdfUpdateQuads/Hypermedia/httpInvalidator#default",bus:f}),se=new(r(189).ActorHttpInvalidateListenable)({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-rdf-resolve-quad-pattern-hypermedia/Actor/RdfResolveQuadPattern/Hypermedia/httpInvalidator#default",bus:f}),oe=new(r(461).MediatorAll)({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/sparql-init.json#mediatorHttpInvalidate",bus:f}),ce=new(r(463).ActorRdfUpdateQuadsRdfJsStore)({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/rdf-update-rdfjs.json#myRdfUpdateQuadsRdfJsStore",bus:g}),ue=new(r(14).MediatorRace)({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/sparql-queryoperator-update.json#mediatorUpdateQuads",bus:g}),le=new(r(14).MediatorRace)({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/sparql-queryoperators.json#mediatorResolveQuadPattern",bus:m}),de=new(r(192).ActorRdfResolveQuadPatternRdfJsSource)({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/resolve-rdfjs.json#myRdfRdfJsSourceQuadPatternResolver",bus:m}),pe=new(r(470).ActorRdfResolveHypermediaNone)({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/resolve-hypermedia.json#myHypermediaNoneResolver",bus:y}),he=new(r(86).MediatorNumber)({field:"filterFactor",type:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/mediator-number/Mediator/Number/type/TypeMax",ignoreErrors:!0,name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/resolve-hypermedia.json#mediatorRdfResolveHypermedia",bus:y}),fe=new(r(14).MediatorRace)({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/resolve-hypermedia.json#mediatorRdfResolveHypermediaLinks",bus:b}),ge=new(r(473).ActorRdfResolveHypermediaLinksNext)({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/resolve-hypermedia.json#myHypermediaLinksNext",bus:b}),me=new(r(14).MediatorRace)({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/resolve-hypermedia.json#mediatorRdfResolveHypermediaLinksQueue",bus:_}),ye=new(r(194).ActorRdfResolveHypermediaLinksQueueFifo)({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/resolve-hypermedia.json#myHypermediaLinksQueue",bus:_}),be=new(r(196).MediatorCombinePipeline)({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/sparql-init.json#mediatorOptimizeQueryOperation",bus:v}),_e=new(r(483).ActorOptimizeQueryOperationJoinBgp)({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/sparql-optimize.json#myJoinBgpOptimizer",bus:v}),ve=new(r(14).MediatorRace)({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/sparql-init.json#mediatorSparqlParse",bus:w}),we=new(r(487).ActorSparqlParseGraphql)({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/graphql-parsers.json#myGraphqlParser",bus:w}),Se=new(r(490).ActorSparqlParseAlgebra)({prefixes:{rdf:"http://www.w3.org/1999/02/22-rdf-syntax-ns#",rdfs:"http://www.w3.org/2000/01/rdf-schema#",owl:"http://www.w3.org/2002/07/owl#",xsd:"http://www.w3.org/2001/XMLSchema#",dc:"http://purl.org/dc/terms/",dcterms:"http://purl.org/dc/terms/",dc11:"http://purl.org/dc/elements/1.1/",foaf:"http://xmlns.com/foaf/0.1/",geo:"http://www.w3.org/2003/01/geo/wgs84_pos#",dbpedia:"http://dbpedia.org/resource/","dbpedia-owl":"http://dbpedia.org/ontology/",dbpprop:"http://dbpedia.org/property/",schema:"http://schema.org/",skos:"http://www.w3.org/2008/05/skos#"},name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/sparql-parsers.json#mySparqlParser",bus:w}),Te=new(r(14).MediatorRace)({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/sparql-init.json#mediatorSparqlSerialize",bus:S}),Ee=new(r(31).MediatorCombineUnion)({field:"mediaTypes",name:"df_743_0",bus:S}),Oe=new(r(31).MediatorCombineUnion)({field:"mediaTypeFormats",name:"df_743_1",bus:S}),xe=new(r(492).ActorSparqlSerializeJson)({mediaTypes:{"application/json":"1.0"},mediaTypeFormats:{"application/json":"https://comunica.linkeddatafragments.org/#results_JSON"},name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/sparql-serializers.json#myJsonSparqlSerializer",bus:S}),Ae=new(r(494).ActorSparqlSerializeSimple)({mediaTypes:{simple:"0.9"},mediaTypeFormats:{simple:"https://comunica.linkeddatafragments.org/#results_simple"},name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/sparql-serializers.json#mySimpleSparqlSerializer",bus:S}),Re=new(r(496).ActorSparqlSerializeSparqlCsv)({mediaTypes:{"text/csv":"0.75"},mediaTypeFormats:{"text/csv":"http://www.w3.org/ns/formats/SPARQL_Results_CSV"},name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/sparql-serializers.json#mySparqlCsvSparqlSerializer",bus:S}),Pe=new(r(498).ActorSparqlSerializeSparqlJson)({mediaTypes:{"application/sparql-results+json":"0.8"},mediaTypeFormats:{"application/sparql-results+json":"http://www.w3.org/ns/formats/SPARQL_Results_JSON"},name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/sparql-serializers.json#mySparqlJsonSparqlSerializer",bus:S}),Ie=new(r(500).ActorSparqlSerializeSparqlTsv)({mediaTypes:{"text/tab-separated-values":"0.75"},mediaTypeFormats:{"text/tab-separated-values":"http://www.w3.org/ns/formats/SPARQL_Results_TSV"},name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/sparql-serializers.json#mySparqlTsvSparqlSerializer",bus:S}),Ne=new(r(503).ActorSparqlSerializeSparqlXml)({mediaTypes:{"application/sparql-results+xml":"0.8"},mediaTypeFormats:{"application/sparql-results+xml":"http://www.w3.org/ns/formats/SPARQL_Results_XML"},name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/sparql-serializers.json#mySparqlXmlSparqlSerializer",bus:S}),je=new(r(507).ActorSparqlSerializeTable)({columnWidth:50,mediaTypes:{table:"0.6"},mediaTypeFormats:{table:"https://comunica.linkeddatafragments.org/#results_table"},name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/sparql-serializers.json#myTableSparqlSerializer",bus:S}),Ce=new(r(121).ActorSparqlSerializeTree)({mediaTypes:{tree:"0.5"},mediaTypeFormats:{tree:"https://comunica.linkeddatafragments.org/#results_tree"},name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/sparql-serializers.json#myTreeSparqlSerializer",bus:S}),ke=new(r(196).MediatorCombinePipeline)({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/sparql-init.json#mediatorContextPreprocess",bus:T}),De=new(r(509).ActorContextPreprocessSourceToDestination)({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/sparql-queryoperator-update.json#myActorContextPreprocessSourceToDestination",bus:T}),Le=new(r(86).MediatorNumber)({field:"httpRequests",type:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/mediator-number/Mediator/Number/type/TypeMin",ignoreErrors:!0,name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/sparql-queryoperators.json#mediatorQueryOperation",bus:E}),Me=new(r(513).ActorQueryOperationBgpEmpty)({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/sparql-queryoperators.json#myEmptyBgpQueryOperator",bus:E}),Fe=new(r(515).ActorQueryOperationValues)({name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/sparql-queryoperators.json#myValuesQueryOperator",bus:E}),qe=new(r(517).ActorRdfParseJsonLd)({mediatorHttp:O,mediaTypes:{"application/ld+json":"1.0","application/json":"0.5"},mediaTypeFormats:{"application/ld+json":"http://www.w3.org/ns/formats/JSON-LD","application/json":"http://www.w3.org/ns/formats/JSON-LD"},priorityScale:"9.0E-1",name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/rdf-parsers.json#myRdfParserJsonLd",bus:o}),Be=new(r(536).ActorRdfUpdateHypermediaPatchSparqlUpdate)({mediatorHttp:O,name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/rdf-update-rdfjs.json#myRdfUpdateHypermediaPatchSparqlUpdate",bus:h}),Ue=new(r(539).ActorRdfUpdateHypermediaSparql)({mediatorHttp:O,checkUrlSuffixSparql:!0,checkUrlSuffixUpdate:!0,name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/rdf-update-rdfjs.json#myRdfUpdateHypermediaSparql",bus:h}),Ve=new(r(554).ActorRdfResolveHypermediaSparql)({mediatorHttp:O,checkUrlSuffix:!0,forceHttpGet:!1,name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/resolve-sparql.json#mySparqlQuadPatternResolver",bus:y}),He=new(r(559).ActorQueryOperationSparqlEndpoint)({mediatorHttp:O,forceHttpGet:!1,checkUrlSuffixSparql:!0,checkUrlSuffixUpdate:!0,name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/resolve-sparql.json#mySparqlEndpointResolver",bus:E}),Ge=new(r(144).ActorSparqlSerializeStats)({httpObserver:A,mediaTypes:{stats:"0.5"},mediaTypeFormats:{stats:"https://comunica.linkeddatafragments.org/#results_stats"},name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/sparql-serializers.json#myStatsSparqlSerializer",bus:S}),ze=new(r(563).ActorRdfJoinMultiSmallest)({mediatorJoin:R,name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/join.json#myRdfJoinMultiActor",bus:s}),Qe=new(r(567).ActorRdfParseHtmlScript)({mediatorRdfParseMediatypes:L,mediatorRdfParseHandle:M,name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/rdf-parsers.json#myRdfParserHtmlScript",bus:u}),$e=new(r(570).ActorRdfUpdateHypermediaPutLdp)({mediatorHttp:O,mediatorRdfSerializeMediatypes:z,mediatorRdfSerialize:Q,name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/rdf-update-rdfjs.json#myRdfUpdateHypermediaPutLdp",bus:h}),Xe=new(r(572).ActorSparqlSerializeRdf)({mediatorRdfSerialize:Q,mediatorMediaTypeCombiner:z,mediatorMediaTypeFormatCombiner:$,name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/sparql-serializers.json#myRdfSparqlSerializer",bus:S}),Ye=new(r(574).ActorRdfResolveHypermediaQpf)({mediatorMetadata:X,mediatorMetadataExtract:J,mediatorRdfDereference:q,subjectUri:"http://www.w3.org/1999/02/22-rdf-syntax-ns#subject",predicateUri:"http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate",objectUri:"http://www.w3.org/1999/02/22-rdf-syntax-ns#object",graphUri:"http://www.w3.org/ns/sparql-service-description#graph",name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/resolve-hypermedia.json#myHypermediaQpfResolver",bus:y}),Ke=new(r(577).ActorRdfUpdateQuadsHypermedia)({mediatorRdfDereference:q,mediatorMetadata:X,mediatorMetadataExtract:J,mediatorRdfUpdateHypermedia:ie,cacheSize:100,httpInvalidator:ae,name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/rdf-update-rdfjs.json#myRdfUpdateQuadsHypermedia",bus:g}),Je=new(r(581).ActorRdfResolveQuadPatternFederated)({mediatorResolveQuadPattern:le,skipEmptyPatterns:!1,name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/resolve-federated.json#myFederatedQuadPatternResolver",bus:m}),We=new(r(583).ActorQueryOperationQuadpattern)({mediatorResolveQuadPattern:le,name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/sparql-queryoperators.json#myQuadPatternQueryOperator",bus:E}),Ze=new(r(585).ActorRdfResolveQuadPatternHypermedia)({mediatorRdfDereference:q,mediatorMetadata:X,mediatorMetadataExtract:J,mediatorRdfResolveHypermedia:he,mediatorRdfResolveHypermediaLinks:fe,mediatorRdfResolveHypermediaLinksQueue:me,cacheSize:100,httpInvalidator:se,name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/resolve-hypermedia.json#myQuadPatternHypermediaResolver",bus:m}),et=new(r(589).ActorHttpProxy)({mediatorHttp:O,name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/http.json#myHttpProxy",bus:a,beforeActors:[x]}),tt=new(r(593).ActorHttpMemento)({mediatorHttp:O,name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/http-memento.json#myHttpFetcher",bus:a,beforeActors:[x]}),rt=new(r(602).ActorRdfDereferenceHttpParse)({mediatorHttp:O,mediatorRdfParseMediatypes:N,mediatorRdfParseHandle:j,maxAcceptHeaderLength:1024,maxAcceptHeaderLengthBrowser:128,mediaMappings:{ttl:"text/turtle",turtle:"text/turtle",nt:"application/n-triples",ntriples:"application/n-triples",nq:"application/n-quads",nquads:"application/n-quads",rdf:"application/rdf+xml",rdfxml:"application/rdf+xml",owl:"application/rdf+xml",n3:"text/n3",trig:"application/trig",jsonld:"application/ld+json",json:"application/json",html:"text/html",htm:"text/html",xhtml:"application/xhtml+xml",xht:"application/xhtml+xml",xml:"application/xml",svg:"image/svg+xml",svgz:"image/svg+xml"},name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/rdf-dereference.json#myRdfDereferencer",bus:c,beforeActors:[F]}),nt=new(r(103).ActorInitSparql)({mediatorOptimizeQueryOperation:be,mediatorQueryOperation:Le,mediatorSparqlParse:ve,mediatorSparqlSerialize:Te,mediatorSparqlSerializeMediaTypeCombiner:Ee,mediatorSparqlSerializeMediaTypeFormatCombiner:Oe,mediatorContextPreprocess:ke,mediatorHttpInvalidate:oe,logger:n,contextKeyShortcuts:{source:"@comunica/bus-rdf-resolve-quad-pattern:source",sources:"@comunica/bus-rdf-resolve-quad-pattern:sources",destination:"@comunica/bus-rdf-update-quads:destination",initialBindings:"@comunica/actor-init-sparql:initialBindings",queryFormat:"@comunica/actor-init-sparql:queryFormat",baseIRI:"@comunica/actor-init-sparql:baseIRI",log:"@comunica/core:log",datetime:"@comunica/actor-http-memento:datetime",queryTimestamp:"@comunica/actor-init-sparql:queryTimestamp",httpProxyHandler:"@comunica/actor-http-proxy:httpProxyHandler",lenient:"@comunica/actor-init-sparql:lenient",httpIncludeCredentials:"@comunica/bus-http:include-credentials",httpAuth:"@comunica/bus-http:auth",fetch:"@comunica/bus-http:fetch",readOnly:"@comunica/bus-query-operation:readOnly",extensionFunctions:"@comunica/actor-init-sparql:extensionFunctions",extensionFunctionCreator:"@comunica/actor-init-sparql:extensionFunctionCreator"},name:"urn:comunica:sparqlinit",bus:i});new(r(604).ActorQueryOperationAsk)({mediatorQueryOperation:Le,name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/sparql-queryoperators.json#myAskQueryOperator",bus:E}),new(r(606).ActorQueryOperationService)({forceSparqlEndpoint:!1,mediatorQueryOperation:Le,name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/sparql-queryoperators.json#myServiceQueryOperator",bus:E}),new(r(608).ActorQueryOperationSlice)({mediatorQueryOperation:Le,name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/sparql-queryoperators.json#mySliceQueryOperator",bus:E}),new(r(610).ActorQueryOperationBgpSingle)({mediatorQueryOperation:Le,name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/sparql-queryoperators.json#mySingleBgpQueryOperator",bus:E}),new(r(612).ActorQueryOperationBgpLeftDeepSmallest)({mediatorQueryOperation:Le,name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/sparql-queryoperators.json#myLeftDeepSmallestBgpQueryOperator",bus:E}),new(r(215).ActorQueryOperationConstruct)({mediatorQueryOperation:Le,name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/sparql-queryoperators.json#myConstructQueryOperator",bus:E}),new(r(615).ActorQueryOperationDescribeSubject)({mediatorQueryOperation:Le,name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/sparql-queryoperators.json#myDescribeQueryOperator",bus:E}),new(r(618).ActorQueryOperationDistinctHash)({mediatorQueryOperation:Le,name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/sparql-queryoperators.json#myDistinctQueryOperator",bus:E}),new(r(622).ActorQueryOperationExtend)({mediatorQueryOperation:Le,name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/sparql-queryoperators.json#myExtendQueryOperator",bus:E}),new(r(643).ActorQueryOperationReducedHash)({cacheSize:100,mediatorQueryOperation:Le,name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/sparql-queryoperators.json#myReducedQueryOperator",bus:E}),new(r(645).ActorQueryOperationFilterSparqlee)({mediatorQueryOperation:Le,name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/sparql-queryoperators.json#myFilterQueryOperator",bus:E}),new(r(647).ActorQueryOperationFromQuad)({mediatorQueryOperation:Le,name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/sparql-queryoperators.json#myFromQueryOperator",bus:E}),new(r(649).ActorQueryOperationGroup)({mediatorQueryOperation:Le,name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/sparql-queryoperators.json#myGroupQueryOperator",bus:E}),new(r(652).ActorQueryOperationJoin)({mediatorJoin:R,mediatorQueryOperation:Le,name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/sparql-queryoperators.json#myJoinQueryOperator",bus:E}),new(r(654).ActorQueryOperationLeftJoinLeftDeep)({mediatorQueryOperation:Le,name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/sparql-queryoperators.json#myLeftJoinQueryOperator",bus:E}),new(r(656).ActorQueryOperationOrderBySparqlee)({mediatorQueryOperation:Le,name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/sparql-queryoperators.json#myOrderByQueryOperator",bus:E}),new(r(659).ActorQueryOperationProject)({mediatorQueryOperation:Le,name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/sparql-queryoperators.json#myProjectQueryOperator",bus:E}),new(r(217).ActorQueryOperationUnion)({mediatorQueryOperation:Le,name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/sparql-queryoperators.json#myUnionQueryOperator",bus:E}),new(r(661).ActorQueryOperationMinus)({mediatorQueryOperation:Le,name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/sparql-queryoperators.json#myMinusQueryOperator",bus:E}),new(r(664).ActorQueryOperationNop)({mediatorQueryOperation:Le,name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/sparql-queryoperators.json#myNopQueryOperator",bus:E}),new(r(666).ActorQueryOperationPathAlt)({mediatorQueryOperation:Le,name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/sparql-queryoperator-path.json#myAltPathOperator",bus:E}),new(r(668).ActorQueryOperationPathInv)({mediatorQueryOperation:Le,name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/sparql-queryoperator-path.json#myInvPathOperator",bus:E}),new(r(670).ActorQueryOperationPathLink)({mediatorQueryOperation:Le,name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/sparql-queryoperator-path.json#myLinkPathOperator",bus:E}),new(r(672).ActorQueryOperationPathNps)({mediatorQueryOperation:Le,name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/sparql-queryoperator-path.json#myNpsPathOperator",bus:E}),new(r(674).ActorQueryOperationPathOneOrMore)({mediatorQueryOperation:Le,name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/sparql-queryoperator-path.json#myOneOrMorePathOperator",bus:E}),new(r(676).ActorQueryOperationPathSeq)({mediatorJoin:R,mediatorQueryOperation:Le,name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/sparql-queryoperator-path.json#mySeqPathOperator",bus:E}),new(r(678).ActorQueryOperationPathZeroOrMore)({mediatorQueryOperation:Le,name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/sparql-queryoperator-path.json#myZeroOrMorePathOperator",bus:E}),new(r(680).ActorQueryOperationPathZeroOrOne)({mediatorQueryOperation:Le,name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/sparql-queryoperator-path.json#myZeroOrOnePathOperator",bus:E}),new(r(682).ActorQueryOperationUpdateCompositeUpdate)({mediatorQueryOperation:Le,name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/sparql-queryoperator-update.json#myCompositeUpdateOperator",bus:E}),new(r(684).ActorQueryOperationUpdateDeleteInsert)({mediatorUpdateQuads:ue,mediatorQueryOperation:Le,name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/sparql-queryoperator-update.json#myDeleteInsertOperator",bus:E}),new(r(686).ActorQueryOperationLoad)({mediatorUpdateQuads:ue,mediatorQueryOperation:Le,name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/sparql-queryoperators.json#myLoadQueryOperator",bus:E}),new(r(688).ActorQueryOperationClear)({mediatorUpdateQuads:ue,mediatorQueryOperation:Le,name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/sparql-queryoperators.json#myClearQueryOperator",bus:E}),new(r(690).ActorQueryOperationDrop)({mediatorUpdateQuads:ue,mediatorQueryOperation:Le,name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/sparql-queryoperators.json#myDropQueryOperator",bus:E}),new(r(692).ActorQueryOperationCreate)({mediatorUpdateQuads:ue,mediatorQueryOperation:Le,name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/sparql-queryoperators.json#myCreateQueryOperator",bus:E}),new(r(694).ActorQueryOperationAddRewrite)({mediatorQueryOperation:Le,name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/sparql-queryoperator-update.json#myAddOperator",bus:E}),new(r(696).ActorQueryOperationMoveRewrite)({mediatorQueryOperation:Le,name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/sparql-queryoperator-update.json#myMoveOperator",bus:E}),new(r(698).ActorQueryOperationCopyRewrite)({mediatorQueryOperation:Le,name:"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-init-sparql/^1.0.0/config/sets/sparql-queryoperator-update.json#myCopyOperator",bus:E});e.exports=nt},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(306),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LoggerVoid=void 0;const n=r(0);class i extends n.Logger{debug(){}error(){}fatal(){}info(){}trace(){}warn(){}}t.LoggerVoid=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MediatorNumber=void 0;const n=r(0);class i extends n.Mediator{constructor(e){super(e),this.indexPicker=this.createIndexPicker()}createIndexPicker(){switch(this.type){case i.MIN:return e=>e.reduce((e,t,r)=>{const n=this.getOrDefault(t[this.field],Number.POSITIVE_INFINITY);return null!==n&&(Number.isNaN(e[0])||e[0]>n)?[n,r]:e},[Number.NaN,-1])[1];case i.MAX:return e=>e.reduce((e,t,r)=>{const n=this.getOrDefault(t[this.field],Number.NEGATIVE_INFINITY);return null!==n&&(Number.isNaN(e[0])||e[0]e);const n=[];if(this.ignoreErrors){const e={};e[this.field]=null,r=r.map(t=>t.catch(t=>(n.push(t),e)))}const i=await Promise.all(r),a=this.indexPicker(i);if(a<0)throw new Error(`All actors rejected their test in ${this.name}\n${n.map(e=>e.message).join("\n")}`);return t[a].actor}}t.MediatorNumber=i,i.MIN="https://linkedsoftwaredependencies.org/bundles/npm/@comunica/mediator-number/Mediator/Number/type/TypeMin",i.MAX="https://linkedsoftwaredependencies.org/bundles/npm/@comunica/mediator-number/Mediator/Number/type/TypeMax"},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(309),t)},function(e,t,r){"use strict";(function(e,n,i){Object.defineProperty(t,"__esModule",{value:!0}),t.ActorHttpNodeFetch=void 0;const a=r(26),s=r(7);r(53);const o=r(322);class c extends a.ActorHttp{constructor(e){super(e),this.userAgent=c.createUserAgent(),this.fetchInitPreprocessor=new o.FetchInitPreprocessor(e.agentOptions?JSON.parse(e.agentOptions):void 0)}static createUserAgent(){return`Comunica/actor-http-node-fetch (${void 0===e.navigator?`Node.js ${n.version}; ${n.platform}`:"Browser-"+e.navigator.userAgent})`}async test(e){return{time:Number.POSITIVE_INFINITY}}run(e){var t,r;const n=e.init&&e.init.headers||{};e.init=e.init?e.init:{},e.init.headers=new Headers(n),e.init.headers.has("user-agent")||e.init.headers.append("user-agent",this.userAgent),e.context&&e.context.get(s.KeysHttp.auth)&&e.init.headers.append("Authorization","Basic "+i.from(e.context.get(s.KeysHttp.auth)).toString("base64")),this.logInfo(e.context,"Requesting "+("string"==typeof e.input?e.input:e.input.url),()=>({headers:a.ActorHttp.headersToHash(new Headers(e.init.headers)),method:e.init.method||"GET"})),e.init&&e.init.headers&&"append"in e.init.headers&&(null===(t=e.context)||void 0===t?void 0:t.has(s.KeysHttp.fetch))&&(e.init.headers=a.ActorHttp.headersToHash(e.init.headers));return((null===(r=e.context)||void 0===r?void 0:r.get(s.KeysHttp.fetch))||fetch)(e.input,this.fetchInitPreprocessor.handle(Object.assign(Object.assign({},e.init),e.context&&e.context.get(s.KeysHttp.includeCredentials)?{credentials:"include"}:{}))).then(e=>(e.body&&!e.body.cancel&&(e.body.cancel=async t=>e.body.destroy(t)),e))}}t.ActorHttpNodeFetch=c}).call(this,r(11),r(9),r(13).Buffer)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.KEY_CONTEXT_AUTH=t.KEY_CONTEXT_INCLUDE_CREDENTIALS=t.ActorHttp=void 0;const n=r(7),i=r(0),a=r(135),s=r(142),o=r(318).toWebReadableStream;class c extends i.Actor{constructor(e){super(e)}static toNodeReadable(e){return s(e)||null===e?e:new a.ReadableWebToNodeStream(e)}static toWebReadableStream(e){return o(e)}static headersToHash(e){const t={};return e.forEach((e,r)=>{t[r]=e}),t}}t.ActorHttp=c,t.KEY_CONTEXT_INCLUDE_CREDENTIALS=n.KeysHttp.includeCredentials,t.KEY_CONTEXT_AUTH=n.KeysHttp.auth},function(e,t){},function(e,t,r){"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){for(var r=0;r0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return s.alloc(0);for(var t,r,n,i=s.allocUnsafe(e>>>0),a=this.head,o=0;a;)t=a.data,r=i,n=o,s.prototype.copy.call(t,r,n),o+=a.data.length,a=a.next;return i}},{key:"consume",value:function(e,t){var r;return ei.length?i.length:e;if(a===i.length?n+=i:n+=i.slice(0,e),0==(e-=a)){a===i.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(a));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(e){var t=s.allocUnsafe(e),r=this.head,n=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var i=r.data,a=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,a),0==(e-=a)){a===i.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=i.slice(a));break}++n}return this.length-=n,t}},{key:c,value:function(e,t){return o(this,function(e){for(var t=1;t0,(function(e){n||(n=e),e&&s.forEach(u),a||(s.forEach(u),i(n))}))}));return t.reduce(l)}},function(e,t,r){"use strict";(function(t){r(3);const n=r(319),i=r(320);e.exports=r(143),e.exports.toNodeReadable=function(t){if(t instanceof e.exports.ReadableStream||t&&"function"==typeof t.getReader)return i.readable.webToNode(t);throw new TypeError("Expected a ReadableStream.")},e.exports.toWebReadableStream=function(e){if(n(e)&&e.readable)return i.readable.nodeToWeb(e);if(Array.isArray(e))return i.readable.arrayToWeb(e);if(t.isBuffer(e)||"string"==typeof e)return i.readable.arrayToWeb([e]);throw new TypeError("Expected a Node streams.Readable, an Array, Buffer or String.")}}).call(this,r(13).Buffer)},function(e,t,r){"use strict";var n=e.exports=function(e){return null!==e&&"object"==typeof e&&"function"==typeof e.pipe};n.writable=function(e){return n(e)&&!1!==e.writable&&"function"==typeof e._write&&"object"==typeof e._writableState},n.readable=function(e){return n(e)&&!1!==e.readable&&"function"==typeof e._read&&"object"==typeof e._readableState},n.duplex=function(e){return n.writable(e)&&n.readable(e)},n.transform=function(e){return n.duplex(e)&&"function"==typeof e._transform&&"object"==typeof e._transformState}},function(e,t,r){"use strict";(function(t){const n=r(3).Readable,i=r(143).ReadableStream;t.ReadableStream=t.ReadableStream||i;const a=r(321);class s extends n{constructor(e,t){super(t),this._webStream=e,this._reader=e.getReader(),this._reading=!1}_read(e){if(this._reading)return;this._reading=!0;const t=()=>{this._reader.read().then(r=>(this._doneReading&&(this._reading=!1,this._reader.releaseLock(),this._doneReading()),r.done?(this.push(null),this._reading=!1,void this._reader.releaseLock()):this.push(r.value)?t(e):(this._reading=!1,void this._reader.releaseLock())))};t()}_destroy(e,t){if(this._reading){new Promise(e=>{this._doneReading=e}).then(()=>this._handleDestroy(e,t))}else this._handleDestroy(e,t)}_handleDestroy(e,t){this._webStream.cancel(),super._destroy(e,t)}}e.exports={readable:{nodeToWeb:a,arrayToWeb:function(e){return new i({start(t){for(var r=0;r{};const s="bindings"===t.type?t.bindingsStream:t.quadStream,o=e.hrtime();let c=1;return this.pushHeader(a),s.on("error",e=>a.emit("error",e)),s.on("data",()=>this.pushStat(a,o,c++)),s.on("end",()=>this.pushFooter(a,o)),{data:a}}delay(t){const r=e.hrtime(t);return 1e3*r[0]+r[1]/1e6}}t.ActorSparqlSerializeStats=a}).call(this,r(9))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MediatorRace=void 0;const n=r(0);class i extends n.Mediator{constructor(e){super(e)}mediateWith(e,t){return new Promise((e,r)=>{const n=[];for(const i of t)i.reply.then(()=>{e(i.actor)}).catch(e=>{n.push(e),n.length===t.length&&r(new Error(`${this.name} mediated over all rejecting actors:\n${n.map(e=>e.message).join("\n")}`))})})}}t.MediatorRace=i},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(327),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ActorRdfJoinSymmetricHash=void 0;const n=r(1),i=r(64),a=r(148);class s extends i.ActorRdfJoin{constructor(e){super(e,2)}static hash(e,t){return t.filter(t=>e.has(t)).map(t=>e.get(t).value).join("")}async getOutput(e){const t=i.ActorRdfJoin.overlappingVariables(e);return{type:"bindings",bindingsStream:new a.SymmetricHashJoin(e.entries[0].bindingsStream,e.entries[1].bindingsStream,e=>s.hash(e,t),i.ActorRdfJoin.join),variables:i.ActorRdfJoin.joinVariables(e),canContainUndefs:!1}}async getIterations(e){return(await n.getMetadata(e.entries[0])).totalItems+(await n.getMetadata(e.entries[1])).totalItems}}t.ActorRdfJoinSymmetricHash=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Util=t.toSparqlJs=t.toSparql=t.Factory=t.Algebra=t.translate=void 0;const n=r(329);t.translate=n.default;const i=r(62);t.Algebra=i;const a=r(63);t.Factory=a.default;const s=r(330);Object.defineProperty(t,"toSparql",{enumerable:!0,get:function(){return s.toSparql}}),Object.defineProperty(t,"toSparqlJs",{enumerable:!0,get:function(){return s.toSparqlJs}});const o=r(88);t.Util=o.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(62),i=r(63),a=r(88),s=r(112),o=r(2),c=r(25).Parser,u=n.types;let l,d=new Set,p=0,h=!1;function f(e,t,r){if(d=new Set,p=0,h=t,!e.type)return l.createProject(l.createBgp([]),[]);if("query"!==e.type&&"update"!==e.type)throw new Error("Translate only works on complete query or update objects.");let n,i=new Set(Object.keys(function e(t){let r={};if(g(t))r[o.termToString(t)]=!0,d.add(t);else if(n=t,null!==n&&"object"==typeof n)if("bind"===t.type)e(t.expression),Object.assign(r,e(t.variable));else if("SELECT"===t.queryType){let n=e(t.where);for(let i of t.variables)a.default.isWildcard(i)?Object.assign(r,n):i.variable?Object.assign(r,e(i.variable)):Object.assign(r,e(i));if(t.group)for(let n of t.group)Object.assign(r,e(n))}else for(let n of Object.keys(t))Object.assign(r,e(t[n]));var n;return r}(e)).map(l.createTerm.bind(l)));if("query"===e.type){n=m({type:"group",patterns:e.where||[]}),n=function(e,t,r){let n=[],i={};if(e.variables=A(e.variables,i),e.having=A(e.having,i),e.order=A(e.order,i),e.group||Object.keys(i).length>0){let r=Object.keys(i).map(e=>function(e,t){if("aggregate"!==e.type||!e.aggregation)throw new Error("Unexpected input: "+JSON.stringify(e));let r=y(e);return r.variable=t,r}(i[e],l.createTerm(e))),n=[];if(e.group)for(let r of e.group)if(r.expression.type){const e=r.variable?r.variable:v();t=l.createExtend(t,e,y(r.expression)),n.push(e)}else n.push(r.expression);t=l.createGroup(t,n,r)}if(e.having)for(let r of e.having)t=l.createFilter(t,y(r));e.values&&(t=l.createJoin(t,x(e)));let s=new Set;if("SELECT"===e.queryType||"DESCRIBE"===e.queryType)if(e.variables.some(e=>e&&a.default.isWildcard(e)))s=r;else for(let t of e.variables)g(t)||!t.variable?s.add(t):t.variable&&(s.add(t.variable),n.push(t));for(let e of n)t=l.createExtend(t,e.variable,y(e.expression));e.order&&(t=l.createOrderBy(t,e.order.map(e=>{let t=y(e.expression);return e.descending&&(t=l.createOperatorExpression(u.DESC,[t])),t})));"SELECT"===e.queryType&&(t=l.createProject(t,Array.from(s)));e.distinct&&(t=l.createDistinct(t));e.reduced&&(t=l.createReduced(t));"CONSTRUCT"===e.queryType?t=l.createConstruct(t,e.template.map(w)):"ASK"===e.queryType?t=l.createAsk(t):"DESCRIBE"===e.queryType&&(t=l.createDescribe(t,Array.from(s)));(e.offset||e.limit)&&(t=l.createSlice(t,e.offset,e.limit));e.from&&(t=l.createFrom(t,e.from.default,e.from.named));return t}(e,n,i)}else"update"===e.type&&(n=1===(s=e).updates.length?R(s.updates[0]):l.createCompositeUpdate(s.updates.map(R)));var s;return r&&(n=function e(t,r){const n={},i=Array.from(r).reduce((e,t)=>(e[t.value]=!0,e),{});return a.default.mapOperation(t,{deleteinsert:e=>({result:e,recurse:!1}),path:(e,t)=>({result:t.createPath(s(e.subject),e.predicate,s(e.object),s(e.graph)),recurse:!1}),pattern:(e,t)=>({result:t.createPattern(s(e.subject),s(e.predicate),s(e.object),s(e.graph)),recurse:!1}),construct:t=>({result:l.createConstruct(e(t.input,r),t.template),recurse:!1})});function s(e){if("BlankNode"===e.termType){let t=n[e.value];return t||(t=a.default.createUniqueVariable(e.value,i,l.dataFactory),i[t.value]=!0,n[e.value]=t),t}return e}}(n,i)),n}function g(e){return e&&"Variable"===e.termType}function m(e){let t,r=[],n=[];if(e.patterns)for(let t of e.patterns)("filter"===t.type?r:n).push(t);if("bgp"===e.type)return function(e){let t=[],r=[];for(let n of e.triples)if("path"===n.predicate.type){let e=b(n);for(let n of e)n.type===u.PATH?(t.length>0&&r.push(l.createBgp(t)),t=[],r.push(n)):t.push(n)}else t.push(w(n));t.length>0&&r.push(l.createBgp(t));return 1===r.length?r[0]:r.reduce((e,t)=>l.createJoin(e,t))}(e);if("union"===e.type)t=n.map(e=>("group"!==e.type&&(e={type:"group",patterns:[e]}),m(e))).reduce((e,t)=>l.createUnion(e,t));else{if("graph"===e.type)return function(e){e.type="group";let t=m(e);t=h?T(t,e.name):l.createGraph(t,e.name);return t}(e);if("group"===e.type)t=n.reduce(E,l.createBgp([]));else if("values"===e.type)t=x(e);else{if("query"!==e.type)throw new Error("Unexpected type: "+e.type);t=f(e,h,!1)}}if(r.length>0){let e=r.map(e=>y(e.expression));e.length>0&&(t=l.createFilter(t,e.reduce((e,t)=>l.createOperatorExpression("&&",[e,t]))))}return t}function y(e){if(a.default.isTerm(e)||"Quad"===e.termType)return l.createTermExpression(e);if(a.default.isWildcard(e))return l.createWildcardExpression();if(e.aggregation)return l.createAggregateExpression(e.aggregation,y(e.expression),e.distinct,e.separator);if(e.function)return l.createNamedExpression(e.function,e.args.map(y));if(e.operator)return"exists"===e.operator||"notexists"===e.operator?l.createExistenceExpression("notexists"===e.operator,m(e.args[0])):("in"!==e.operator&&"notin"!==e.operator||(e.args=[e.args[0]].concat(e.args[1])),l.createOperatorExpression(e.operator,e.args.map(y)));throw new Error("Unknown expression: "+JSON.stringify(e))}function b(e){return function e(t,r,n){if(r.type===u.LINK)return[l.createPattern(t,r.iri,n)];if(r.type===u.INV)return e(n,r.path,t);if(r.type===u.SEQ){let i=v(),a=e(t,r.left,i),s=e(i,r.right,n);return a.concat(s)}return[l.createPath(t,r,n)]}(e.subject,_(e.predicate),e.object)}function _(e){if(a.default.isTerm(e)&&"NamedNode"===e.termType)return l.createLink(e);if("^"===e.pathType)return l.createInv(_(e.items[0]));if("!"===e.pathType){let t,r=[],n=[];t="path"===e.items[0].type&&"|"===e.items[0].pathType?e.items[0].items:e.items;for(let e of t)if(a.default.isTerm(e))r.push(e);else{if("^"!==e.pathType)throw new Error("Unexpected item: "+JSON.stringify(e));n.push(e.items[0])}let i=l.createNps(r),s=l.createInv(l.createNps(n));return 0===n.length?i:0===r.length?s:l.createAlt(i,s)}if("/"===e.pathType)return e.items.map(_).reduce((e,t)=>l.createSeq(e,t));if("|"===e.pathType)return e.items.map(_).reduce((e,t)=>l.createAlt(e,t));if("*"===e.pathType)return l.createZeroOrMorePath(_(e.items[0]));if("+"===e.pathType)return l.createOneOrMorePath(_(e.items[0]));if("?"===e.pathType)return l.createZeroOrOnePath(_(e.items[0]));throw new Error("Unable to translate path expression "+JSON.stringify(e))}function v(){let e="?var"+p++;return d.has(e)?v():(d.add(e),l.createTerm(e))}function w(e){return l.createPattern(e.subject,e.predicate,e.object,e.graph)}t.default=function(e,t){if(t=t||{},l=new i.default(t.dataFactory),"string"==typeof e){let r=new c(t);r._resetBlanks(),e=r.parse(e)}return f(e,t.quads,t.blankToVariable)};let S=Object.keys(u).map(e=>u[e]);function T(e,t,r){if(e.type===u.GRAPH){if(r)throw new Error("Recursing through nested GRAPH statements with a replacement is impossible.");const t=e;e=T(t.input,t.name)}else if(e.type===u.BGP)e.patterns=e.patterns.map(e=>(r&&(e.subject.equals(t)&&(e.subject=r),e.predicate.equals(t)&&(e.predicate=r),e.object.equals(t)&&(e.object=r)),"DefaultGraph"===e.graph.termType&&(e.graph=t),e));else if(e.type===u.PATH){const n=e;r&&(n.subject.equals(t)&&(n.subject=r),n.object.equals(t)&&(n.object=r)),"DefaultGraph"===e.graph.termType&&(e.graph=t)}else if(e.type!==u.PROJECT||r)if(e.type!==u.EXTEND||r)for(let n of Object.keys(e))Array.isArray(e[n])?e[n]=e[n].map(e=>T(e,t,r)):S.indexOf(e[n].type)>=0?e[n]=T(e[n],t,r):r&&g(e[n])&&e[n].equals(t)&&(e[n]=r);else{const n=e;n.variable.equals(t)&&(r=v()),n.input=T(n.input,t,r)}else{const n=e;n.variables.some(e=>e.equals(t))||(r=v()),n.input=T(n.input,t,r)}return e}function E(e,t){if("optional"===t.type){let r=m({type:"group",patterns:t.patterns});if(r.type===u.FILTER){let t=r;e=l.createLeftJoin(e,t.input,t.expression)}else e=l.createLeftJoin(e,r)}else if("minus"===t.type){let r=m({type:"group",patterns:t.patterns});e=l.createMinus(e,r)}else if("bind"===t.type)e=l.createExtend(e,t.variable,y(t.expression));else if("service"===t.type){t.type="group",e=O(e,l.createService(m(t),t.name,t.silent))}else{e=O(e,m(t))}return e}function O(e,t){return e.type===u.BGP&&t.type===u.BGP?e=l.createBgp([].concat(e.patterns,t.patterns)):e.type===u.BGP&&0===e.patterns.length?e=t:t.type===u.BGP&&0===t.patterns.length||(e=l.createJoin(e,t)),e}function x(e){let t=(0===e.values.length?[]:Object.keys(e.values[0])).map(l.createTerm.bind(l)),r=e.values.map(e=>{let t=Object.keys(e);t=t.filter(t=>void 0!==e[t]);let r={};for(let n of t)r[n]=e[n];return r});return l.createValues(t,r)}function A(e,t){if(!e)return e;if("aggregate"===e.type){let r,n=!1;for(let i of Object.keys(t))if(s(t[i],e)){r=l.createTerm(i),n=!0;break}return n||(r=v(),t[o.termToString(r)]=e),r}return e.expression?e.expression=A(e.expression,t):e.args?A(e.args,t):Array.isArray(e)&&e.forEach((r,n)=>e[n]=A(r,t)),e}function R(e){if("insertdelete"===e.updateType||"deletewhere"===e.updateType||"delete"===e.updateType||"insert"===e.updateType)return function(e){if(!h)throw new Error("INSERT/DELETE operations are only supported with quads option enabled");let t,r=[],n=[];e.delete&&(r=a.default.flatten(e.delete.map(t=>P(t,e.graph))));e.insert&&(n=a.default.flatten(e.insert.map(t=>P(t,e.graph))));e.where&&e.where.length>0?(t=m({type:"group",patterns:e.where}),e.using?t=l.createFrom(t,e.using.default,e.using.named):e.graph&&(t=T(t,e.graph))):"deletewhere"===e.updateType&&r.length>0&&(t=l.createBgp(r));return l.createDeleteInsert(r.length>0?r:void 0,n.length>0?n:void 0,t)}(e);if("load"===e.type)return function(e){return l.createLoad(e.source,e.destination,e.silent)}(e);if("clear"===e.type||"create"===e.type||"drop"===e.type)return function(e){let t;t=e.graph.all?"ALL":e.graph.default?"DEFAULT":e.graph.named?"NAMED":e.graph.name;switch(e.type){case"clear":return l.createClear(t,e.silent);case"create":return l.createCreate(t,e.silent);case"drop":return l.createDrop(t,e.silent)}}(e);if("add"===e.type||"copy"===e.type||"move"===e.type)return function(e){const t=e.source.default?"DEFAULT":e.source.name,r=e.destination.default?"DEFAULT":e.destination.name;switch(e.type){case"copy":return l.createCopy(t,r,e.silent);case"move":return l.createMove(t,r,e.silent);case"add":return l.createAdd(t,r,e.silent)}}(e);throw new Error("Unknown update type "+e.updateType)}function P(e,t){let r=t;"graph"===e.type&&(r=e.name);let n=e.triples;return r&&(n=n.map(e=>Object.assign(e,{graph:r}))),n.map(w)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toSparqlJs=t.toSparql=void 0;const n=r(115),i=r(62),a=r(63),s=r(88),o=r(2),c=r(25).Generator,u=r(25).Wildcard,l=i.types,d=i.expressionTypes;let p;const h=new a.default;function f(e){g();let t=m(e=function(e){return A(e,{})}(e));return"group"===t.type?t.patterns[0]:t}function g(){p={project:!1,extend:[],group:[],aggregates:[],order:[]}}function m(e){switch(e.type!==l.EXTEND&&e.type!==l.ORDER_BY&&e.type!==l.GRAPH&&(p.project=!1),e.type){case l.EXPRESSION:return y(e);case l.ASK:return T(e,l.ASK);case l.BGP:return function(e){let t=e.patterns.map(w);return 0===t.length?null:{type:"bgp",triples:t}}(e);case l.CONSTRUCT:return function(e){return{type:"query",prefixes:{},queryType:"CONSTRUCT",template:e.template.map(w),where:s.default.flatten([m(e.input)])}}(e);case l.DESCRIBE:return T(e,l.DESCRIBE);case l.DISTINCT:return function(e){let t=m(e.input);return t.patterns[0].distinct=!0,t}(e);case l.EXTEND:return function(e){if(p.project)return p.extend.push(e),m(e.input);return s.default.flatten([m(e.input),{type:"bind",variable:e.variable,expression:y(e.expression)}])}(e);case l.FROM:return function(e){let t=m(e.input);return t.patterns[0].from={default:e.default,named:e.named},t}(e);case l.FILTER:return function(e){return{type:"group",patterns:s.default.flatten([m(e.input),{type:"filter",expression:y(e.expression)}])}}(e);case l.GRAPH:return function(e){return{type:"graph",patterns:s.default.flatten([m(e.input)]),name:e.name}}(e);case l.GROUP:return function(e){let t=m(e.input),r=e.aggregates.map(v);return p.aggregates.push(...r),p.group.push(...e.variables),t}(e);case l.JOIN:return function(e){return s.default.flatten([m(e.left),m(e.right)]).reduce((e,t)=>("bgp"!==t.type||0==e.length||"bgp"!==e[e.length-1].type?e.push(t):e[e.length-1].triples.push(...t.triples),e),[])}(e);case l.LEFT_JOIN:return function(e){let t={type:"optional",patterns:[m(e.right)]};e.expression&&t.patterns.push({type:"filter",expression:y(e.expression)});return t.patterns=s.default.flatten(t.patterns),s.default.flatten([m(e.left),t])}(e);case l.MINUS:return function(e){let t=m(e.right);"group"===t.type&&(t=t.patterns);Array.isArray(t)||(t=[t]);return s.default.flatten([m(e.left),{type:"minus",patterns:t}])}(e);case l.ORDER_BY:return function(e){return p.order.push(...e.expressions),m(e.input)}(e);case l.PATH:return function(e){return{type:"bgp",triples:[{subject:e.subject,predicate:b(e.predicate),object:e.object}]}}(e);case l.PATTERN:return w(e);case l.PROJECT:return T(e,l.PROJECT);case l.REDUCED:return function(e){let t=m(e.input);return t.patterns[0].reduced=!0,t}(e);case l.SERVICE:return function(e){let t=m(e.input);"group"===t.type&&(t=t.patterns);Array.isArray(t)||(t=[t]);return{type:"service",name:e.name,silent:e.silent,patterns:t}}(e);case l.SLICE:return function(e){let t=m(e.input),r=t;t.type&&"group"===t.type&&(r=t.patterns[0]);0!==e.start&&(r.offset=e.start);void 0!==e.length&&(r.limit=e.length);return t}(e);case l.UNION:return function(e){return{type:"union",patterns:s.default.flatten([m(e.left),m(e.right)])}}(e);case l.VALUES:return function(e){return{type:"values",values:e.bindings.map(t=>{let r={};for(let n of e.variables){let e="?"+n.value;t[e]?r[e]=t[e]:r[e]=void 0}return r})}}(e);case l.COMPOSITE_UPDATE:return function(e){return{prefixes:{},type:"update",updates:e.updates.map(e=>m(e).updates[0])}}(e);case l.DELETE_INSERT:return function(e){let t=e.where,r=void 0;if(t&&t.type===l.FROM){let n=e.where;t=n.input,r={default:n.default,named:n.named}}const i=[{updateType:"insertdelete",delete:x(e.delete),insert:x(e.insert)}];r&&(i[0].using=r);if(!t||t.type===l.BGP&&0===t.patterns.length)i[0].where=[];else{const e={};let r=m(A(t,e));"group"===r.type?i[0].where=r.patterns:i[0].where=[r];const n=Object.keys(e);if(n.length>0){if(1!==n.length)throw new Error("This is unexpected and might indicate an error in graph handling for updates.");""!==e[n[0]].graph.value&&(i[0].where=[{type:"graph",patterns:i[0].where,name:e[n[0]].graph}])}}e.delete||e.where?e.insert||e.where?!e.insert&&e.where&&"bgp"===e.where.type&&n.isomorphic(e.delete,e.where.patterns)&&(delete i[0].where,i[0].updateType="deletewhere"):(delete i[0].insert,delete i[0].where,e.delete.some(e=>"Variable"===e.subject.termType||"Variable"===e.predicate.termType||"Variable"===e.object.termType)?i[0].updateType="deletewhere":i[0].updateType="delete"):(i[0].updateType="insert",delete i[0].delete,delete i[0].where);return{prefixes:{},type:"update",updates:i}}(e);case l.LOAD:return function(e){const t=[{type:"load",silent:Boolean(e.silent),source:e.source}];e.destination&&(t[0].destination=e.destination);return{prefixes:{},type:"update",updates:t}}(e);case l.CLEAR:return function(e){return E(e,"clear")}(e);case l.CREATE:return function(e){return E(e,"create")}(e);case l.DROP:return function(e){return E(e,"drop")}(e);case l.ADD:return function(e){return O(e,"add")}(e);case l.MOVE:return function(e){return O(e,"move")}(e);case l.COPY:return function(e){return O(e,"copy")}(e)}throw new Error("Unknown Operation type "+e.type)}function y(e){switch(e.expressionType){case d.AGGREGATE:return function(e){let t={expression:y(e.expression),type:"aggregate",aggregation:e.aggregator,distinct:e.distinct};e.separator&&(t.separator=e.separator);return t}(e);case d.EXISTENCE:return function(e){return{type:"operation",operator:e.not?"notexists":"exists",args:s.default.flatten([m(e.input)])}}(e);case d.NAMED:return function(e){return{type:"functionCall",function:e.name,args:e.args.map(y)}}(e);case d.OPERATOR:return function(e){if("desc"===e.operator){let t={expression:y(e.args[0]),descending:!0};return t}let t={type:"operation",operator:e.operator,args:e.args.map(y)};"in"!==t.operator&&"notin"!==t.operator||(t.args=[t.args[0]].concat([t.args.slice(1)]));return t}(e);case d.TERM:return function(e){return e.term}(e);case d.WILDCARD:return function(e){return e.wildcard}(e)}throw new Error("Unknown Expression Operation type "+e.expressionType)}function b(e){switch(e.type){case l.ALT:return function(e){let t=b(e.left),r=b(e.right);if("!"===t.pathType&&"!"===r.pathType)return{type:"path",pathType:"!",items:[{type:"path",pathType:"|",items:[].concat(t.items,r.items)}]};return{type:"path",pathType:"|",items:[t,r]}}(e);case l.INV:return function(e){if(e.path.type===l.NPS){let t=e.path.iris.map(e=>({type:"path",pathType:"^",items:[e]}));return t.length<=1?{type:"path",pathType:"!",items:t}:{type:"path",pathType:"!",items:[{type:"path",pathType:"|",items:t}]}}return{type:"path",pathType:"^",items:[b(e.path)]}}(e);case l.LINK:return function(e){return e.iri}(e);case l.NPS:return function(e){return e.iris.length<=1?{type:"path",pathType:"!",items:e.iris}:{type:"path",pathType:"!",items:[{type:"path",pathType:"|",items:e.iris}]}}(e);case l.ONE_OR_MORE_PATH:return function(e){return{type:"path",pathType:"+",items:[b(e.path)]}}(e);case l.SEQ:return function(e){return{type:"path",pathType:"/",items:[b(e.left),b(e.right)]}}(e);case l.ZERO_OR_MORE_PATH:return function(e){return{type:"path",pathType:"*",items:[b(e.path)]}}(e);case l.ZERO_OR_ONE_PATH:return function(e){return{type:"path",pathType:"?",items:[b(e.path)]}}(e)}throw new Error("Unknown Path type "+e.type)}function _(e){return o.termToString(e)}function v(e){return e}function w(e){return{subject:e.subject,predicate:e.predicate,object:e.object}}function S(e,t){let r=s.default.isTerm(e)?_(e):e;if("string"==typeof r){if(t[r])return t[r]}else if(Array.isArray(e))e=e.map(e=>S(e,t));else for(let r of Object.keys(e))e[r]=S(e[r],t);return e}function T(e,t){let r={type:"query",prefixes:{}};t===l.PROJECT?(r.queryType="SELECT",r.variables=e.variables):t===l.ASK?r.queryType="ASK":t===l.DESCRIBE&&(r.queryType="DESCRIBE",r.variables=e.terms);let n=p.extend,i=p.group,a=p.aggregates,o=p.order;g(),p.project=!0;let c=s.default.flatten([m(e.input)]);1===c.length&&"group"===c[0].type&&(c=c[0].patterns),r.where=c;let d={};for(let e of p.aggregates)d[_(e.variable)]=y(e);let h={};for(let e=p.extend.length-1;e>=0;--e){let t=p.extend[e];h[_(t.variable)]=S(y(t.expression),d)}if(p.group.length>0&&(r.group=p.group.map(e=>{let t=_(e);if(h[t]){let r=h[t];return delete h[t],{variable:e,expression:r}}return{expression:e}})),p.order.length>0&&(r.order=p.order.map(m).map(e=>e.descending?e:{expression:e})),r.variables&&(r.variables=r.variables.map(e=>{let t=_(e);return h[t]?{variable:e,expression:h[t]}:e}),0===r.variables.length&&(r.variables=[new u])),r.where.length>0&&"filter"===r.where[r.where.length-1].type){let e=r.where[r.where.length-1];(function e(t,r){return s.default.isTerm(t)?r.indexOf(_(t))>=0:Array.isArray(t)?t.some(t=>e(t,r)):t===Object(t)?Object.keys(t).some(n=>e(t[n],r)):r.indexOf(t)>=0})(e,Object.keys(d))&&(r.having=s.default.flatten([S(e.expression,d)]),r.where.splice(-1))}return p.extend=n,p.group=i,p.aggregates=a,p.order=o,r={type:"group",patterns:[r]},r}function E(e,t){const r=[{type:t,silent:Boolean(e.silent)}];return"DEFAULT"===e.source?r[0].graph={default:!0}:"NAMED"===e.source?r[0].graph={named:!0}:"ALL"===e.source?r[0].graph={all:!0}:r[0].graph={type:"graph",name:e.source},{prefixes:{},type:"update",updates:r}}function O(e,t){const r=[{type:t,silent:Boolean(e.silent)}];return r[0].source="DEFAULT"===e.source?{type:"graph",default:!0}:{type:"graph",name:e.source},r[0].destination="DEFAULT"===e.destination?{type:"graph",default:!0}:{type:"graph",name:e.destination},{prefixes:{},type:"update",updates:r}}function x(e){if(!e)return[];const t={};return e.forEach(e=>{const r=e.graph.value;t[r]||(t[r]=[]),t[r].push(e)}),Object.keys(t).map(e=>""===e?{type:"bgp",triples:t[e].map(w)}:{type:"graph",triples:t[e].map(w),name:t[e][0].graph})}function A(e,t){if(Array.isArray(e))return e.map(e=>A(e,t));if(!e.type)return e;if(e.type===l.DELETE_INSERT)return e;if((e.type===l.PATTERN||e.type===l.PATH)&&e.graph)return t[e.graph.value]||(t[e.graph.value]={graph:e.graph,values:[]}),t[e.graph.value].values.push(e),e;const r={},n={},i={};for(let t of Object.keys(e)){const a={};r[t]=A(e[t],a);const s=Object.keys(a);if(s.length>1){let e=R(a[s[0]].values);for(let t=1;tdelete a[e]),e}if(1===s.length){const e=a[s[0]].graph;n[t]=e,i[e.value]=e}}const a=Object.keys(i);if(a.length>0)if(1===a.length&&e.type!==l.PROJECT)t[a[0]]={graph:i[a[0]],values:[r]};else for(let e of Object.keys(n))n[e].value.length>0&&(r[e]=h.createGraph(r[e],n[e]));return r}function R(e){const t=h.createBgp(e),r=e[0].graph;return 0===r.value.length?t:h.createGraph(t,r)}t.toSparql=function(e,t={}){return new c(t).stringify(f(e))},t.toSparqlJs=f},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ActorQueryOperationTypedMediated=void 0;const n=r(147);class i extends n.ActorQueryOperationTyped{constructor(e,t){super(e,t)}}t.ActorQueryOperationTypedMediated=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ActorRdfJoin=void 0;const n=r(0),i=r(4);class a extends n.Actor{constructor(e,t,r,n){super(e),this.limitEntries=null!=t?t:Number.POSITIVE_INFINITY,this.limitEntriesMin=null!=r&&r,this.canHandleUndefs=null!=n&&n}static overlappingVariables(e){const t=e.entries.map(e=>e.variables);let r=t[0];for(const e of t.slice(1))r=r.filter(t=>e.includes(t));return r}static joinVariables(e){const t=e.entries.map(e=>e.variables).reduce((e,t)=>[...e,...t],[]);return[...new Set(t)]}static join(...e){try{return e.reduce((e,t)=>e.mergeWith((e,t)=>{if(!e.equals(t))throw new Error("Join failure");return e},t))}catch(e){return null}}static async iteratorsHaveMetadata(e,t){return Promise.all(e.entries.map(async e=>{if(!e.metadata)throw new Error("Missing metadata");const r=await e.metadata();if(!(t in r))throw new Error("Missing metadata value")})).then(()=>!0).catch(()=>!1)}async test(e){if(e.entries.length<=1)return{iterations:0};if(this.limitEntriesMin?e.entries.lengththis.limitEntries)throw new Error(`${this.name} requires ${this.limitEntries} sources at ${this.limitEntriesMin?"least":"most"}. The input contained ${e.entries.length}.`);for(const t of e.entries)if("bindings"!==t.type)throw new Error(`Invalid type of a join entry: Expected 'bindings' but got '${t.type}'`);if(!this.canHandleUndefs)for(const t of e.entries)if(t.canContainUndefs)throw new Error(`Actor ${this.name} can not join streams containing undefs`);return await a.iteratorsHaveMetadata(e,"totalItems")?{iterations:await this.getIterations(e)}:{iterations:Number.POSITIVE_INFINITY}}async run(e){if(0===e.entries.length)return{bindingsStream:new i.ArrayIterator([],{autoStart:!1}),metadata:()=>Promise.resolve({totalItems:0}),type:"bindings",variables:[],canContainUndefs:!1};if(1===e.entries.length)return e.entries[0];const t=this.getOutput(e);function r(){return Promise.all(e.entries.map(e=>e.metadata())).then(e=>e.reduce((e,t)=>e*t.totalItems,1))}if(await a.iteratorsHaveMetadata(e,"totalItems")){const e=await t;if(e.metadata){const t=e.metadata;e.metadata=()=>t().then(async e=>("totalItems"in e||(e.totalItems=await r()),e))}else e.metadata=()=>r().then(e=>({totalItems:e}));return e}return t}}t.ActorRdfJoin=a},function(e,t,r){let n=r(4),i=n.MultiTransformIterator,a=n.SimpleTransformIterator;e.exports=class extends i{constructor(e,t,r,n){super(e,n),this.funRight=t,this.funJoin=r}_createTransformer(e){return new a(this.funRight(e),{transform:(t,r,n)=>{let i=this.funJoin(e,t);null!==i&&n(i),r()}})}}},function(e,t,r){let n=r(4).AsyncIterator;e.exports=class extends n{constructor(e,t,r,n){super(),this.addedDataListener=!1,this.left=e,this.right=t,this.funHash=r,this.funJoin=n,this.leftMap=new Map,this.match=null,this.matches=[],this.matchIdx=0,this.left.on("error",e=>this.destroy(e)),this.right.on("error",e=>this.destroy(e)),this.readable=!1,this.left.on("end",function(){if(this.leftMap.size<=0)return this.close();this.readable=!0,this.right.on("readable",()=>this.readable=!0),this.right.on("end",()=>{this.hasResults()||this._end()})}.bind(this)),this.on("newListener",e=>{"data"!==e||this.addedDataListener||(this.addedDataListener=!0,this._addDataListener())})}hasResults(){return!this.right.ended||this.matchIdxthis.right.close())}close(){super.close(),a(()=>this.right.close())}_createTransformer(e){return new i(this.right.clone(),{transform:(t,r,n)=>{let i=this.funJoin(e,t);null!==i&&n(i),r()}})}}},function(e,t,r){let n=r(4).AsyncIterator;e.exports=class extends n{constructor(e,t,r,n){super(),this.left=e,this.right=t,this.funHash=r,this.funJoin=n,this.usedLeft=!1,this.leftMap=new Map,this.rightMap=new Map,this.on("end",()=>this._cleanup()),this.match=null,this.matches=[],this.matchIdx=0,(this.left.readable||this.right.readable)&&(this.readable=!0),this.left.on("error",e=>this.destroy(e)),this.right.on("error",e=>this.destroy(e)),this.left.on("readable",()=>this.readable=!0),this.right.on("readable",()=>this.readable=!0),this.left.on("end",()=>{this.hasResults()||this._end()}),this.right.on("end",()=>{this.hasResults()||this._end()})}hasResults(){return!this.left.ended||!this.right.ended||!!this.matches&&this.matchIdxthis.emit("readable")),t.on("end",()=>this._removeStream(t));0===this.streams.length&&this.close(),this.idx=this.streams.length-1}_removeStream(e){let t=this.streams.indexOf(e);t<0||(this.streams.splice(t,1),this.idx>=this.streams.length&&--this.idx,0===this.streams.length&&this._end())}close(){super.close();for(let e of this.streams)e.close()}read(){for(let e=0;ee||t.canContainUndefs,!1)}}async getIterations(e){return(await n.getMetadata(e.entries[0])).totalItems*(await n.getMetadata(e.entries[1])).totalItems}}t.ActorRdfJoinNestedLoop=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MediatorCombineUnion=void 0;const n=r(0);class i extends n.Mediator{constructor(e){super(e),this.combiner=this.createCombiner()}async mediate(e){let t;try{t=this.publish(e)}catch(e){t=[]}await Promise.all(t.map(({reply:e})=>e));const r=await Promise.all(t.map(t=>t.actor.runObservable(e)));return this.combiner(r)}mediateWith(){throw new Error("Method not supported.")}createCombiner(){return e=>{const t={};return t[this.field]={},[{}].concat(e.map(e=>e[this.field])).forEach((e,r,n)=>{t[this.field]=Object.assign(Object.assign({},e),t[this.field])}),t}}}t.MediatorCombineUnion=i},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(342),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ActorRdfParseN3=void 0;const n=r(54),i=r(59);class a extends n.ActorRdfParseFixedMediaTypes{constructor(e){super(e)}async runHandle(e,t,r){e.input.on("error",e=>n.emit("error",e));const n=e.input.pipe(new i.StreamParser({baseIRI:e.baseIRI}));return{quads:n,triples:"text/turtle"===t||"application/n-triples"===t||"text/n3"===t}}}t.ActorRdfParseN3=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ActorRdfParse=void 0;const n=r(38);class i extends n.ActorAbstractMediaTyped{constructor(e){super(e)}}t.ActorRdfParse=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ActorRdfParseFixedMediaTypes=void 0;const n=r(38);class i extends n.ActorAbstractMediaTypedFixed{constructor(e){super(e)}async testHandleChecked(e){return!0}}t.ActorRdfParseFixedMediaTypes=i},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(346),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ActorRdfParseRdfXml=void 0;const n=r(54),i=r(149);class a extends n.ActorRdfParseFixedMediaTypes{constructor(e){super(e)}async runHandle(e,t,r){e.input.on("error",e=>n.emit("error",e));const n=e.input.pipe(new i.RdfXmlParser({baseIRI:e.baseIRI}));return{quads:n,triples:!0}}}t.ActorRdfParseRdfXml=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ParseType=t.RdfXmlParser=void 0;const n=r(16),i=r(150),a=r(3),s=r(349),o=r(5);class c extends a.Transform{constructor(e){super({readableObjectMode:!0}),this.activeTagStack=[],this.nodeIds={},e&&(Object.assign(this,e),this.options=e),this.dataFactory||(this.dataFactory=new o.DataFactory),this.baseIRI||(this.baseIRI=""),this.defaultGraph||(this.defaultGraph=this.dataFactory.defaultGraph()),this.saxStream=i.createStream(this.strict,{xmlns:!1,position:this.trackPosition}),this.strict||(this.saxStream._parser.looseCase="toString"),this.attachSaxListeners()}static parseNamespace(e,t){const r={};let n=!1;for(const t in e.attributes)t.startsWith("xmlns")&&(5===t.length?(n=!0,r[""]=e.attributes[t]):":"===t.charAt(5)&&(n=!0,r[t.substr(6)]=e.attributes[t]));const i=t&&t.ns?t.ns:[c.DEFAULT_NS];return n?i.concat([r]):i}static expandPrefixedTerm(e,t,r){const n=e.indexOf(":");let i,a;n>=0?(i=e.substr(0,n),a=e.substr(n+1)):(i="",a=e);let o=null,c=null;for(let e=t.length-1;e>=0;e--){const r=t[e][i];if(r){o=r;break}c||(c=t[e][""])}if(!o){if(i&&"xmlns"!==i)throw new s.ParseError(r,`The prefix '${i}' in term '${e}' was not bound.`);o=c||""}return{prefix:i,local:a,uri:o}}static isValidIri(e){return c.IRI_REGEX.test(e)}import(e){const t=new a.PassThrough({readableObjectMode:!0});e.on("error",e=>r.emit("error",e)),e.on("data",e=>t.push(e)),e.on("end",()=>t.push(null));const r=t.pipe(new c(this.options));return r}_transform(e,t,r){try{this.saxStream.write(e,t)}catch(e){return r(e)}r()}newParseError(e){return new s.ParseError(this,e)}valueToUri(e,t){return this.uriToNamedNode(n.resolve(e,t.baseIRI))}uriToNamedNode(e){if(!c.isValidIri(e))throw this.newParseError("Invalid URI: "+e);return this.dataFactory.namedNode(e)}validateNcname(e){if(!c.NCNAME_MATCHER.test(e))throw this.newParseError("Not a valid NCName: "+e)}attachSaxListeners(){this.saxStream.on("error",e=>this.emit("error",e)),this.saxStream.on("opentag",this.onTag.bind(this)),this.saxStream.on("text",this.onText.bind(this)),this.saxStream.on("closetag",this.onCloseTag.bind(this)),this.saxStream.on("doctype",this.onDoctype.bind(this))}onTag(e){const t=this.activeTagStack.length?this.activeTagStack[this.activeTagStack.length-1]:null;let r=u.RESOURCE;if(t&&(t.hadChildren=!0,r=t.childrenParseType),t&&t.childrenStringTags){const r=e.name;let n="";for(const t in e.attributes)n+=` ${t}="${e.attributes[t]}"`;const i=`<${`${r}${n}`}>`;t.childrenStringTags.push(i);const a={childrenStringTags:t.childrenStringTags};return a.childrenStringEmitClosingTag=``,void this.activeTagStack.push(a)}const n={};t?(n.language=t.language,n.baseIRI=t.baseIRI):n.baseIRI=this.baseIRI,this.activeTagStack.push(n),n.ns=c.parseNamespace(e,t),r===u.RESOURCE?this.onTagResource(e,n,t,!t):this.onTagProperty(e,n,t)}onTagResource(e,t,r,i){const a=c.expandPrefixedTerm(e.name,t.ns,this);t.childrenParseType=u.PROPERTY;let s=!0;if(a.uri===c.RDF){if(!i&&c.FORBIDDEN_NODE_ELEMENTS.indexOf(a.local)>=0)throw this.newParseError("Illegal node element name: "+a.local);switch(a.local){case"RDF":t.childrenParseType=u.RESOURCE;case"Description":s=!1}}const o=[],l=[];let d=null,p=!1,h=!1,f=null;for(const i in e.attributes){const a=e.attributes[i],s=c.expandPrefixedTerm(i,t.ns,this);if(r&&s.uri===c.RDF)switch(s.local){case"about":if(d)throw this.newParseError(`Only one of rdf:about, rdf:nodeID and rdf:ID can be present, while ${a} and ${d} where found.`);d=a;continue;case"ID":if(d)throw this.newParseError(`Only one of rdf:about, rdf:nodeID and rdf:ID can be present, while ${a} and ${d} where found.`);this.validateNcname(a),d="#"+a,p=!0;continue;case"nodeID":if(d)throw this.newParseError(`Only one of rdf:about, rdf:nodeID and rdf:ID can be present, while ${a} and ${d} where found.`);this.validateNcname(a),d=a,h=!0;continue;case"bagID":throw this.newParseError("rdf:bagID is not supported.");case"type":f=a;continue;case"aboutEach":throw this.newParseError("rdf:aboutEach is not supported.");case"aboutEachPrefix":throw this.newParseError("rdf:aboutEachPrefix is not supported.");case"li":throw this.newParseError("rdf:li on node elements are not supported.")}else if(s.uri===c.XML){if("lang"===s.local){t.language=""===a?null:a.toLowerCase();continue}if("base"===s.local){t.baseIRI=n.resolve(a,t.baseIRI);continue}}"xml"!==s.prefix&&s.uri&&(o.push(this.uriToNamedNode(s.uri+s.local)),l.push(a))}if(null!==d&&(t.subject=h?this.dataFactory.blankNode(d):this.valueToUri(d,t),p&&this.claimNodeId(t.subject)),t.subject||(t.subject=this.dataFactory.blankNode()),s){const e=this.uriToNamedNode(a.uri+a.local);this.emitTriple(t.subject,this.dataFactory.namedNode(c.RDF+"type"),e,r?r.reifiedStatementId:null)}if(r){if(r.predicate)if(r.childrenCollectionSubject){const e=this.dataFactory.blankNode();this.emitTriple(r.childrenCollectionSubject,r.childrenCollectionPredicate,e,r.reifiedStatementId),this.emitTriple(e,this.dataFactory.namedNode(c.RDF+"first"),t.subject,t.reifiedStatementId),r.childrenCollectionSubject=e,r.childrenCollectionPredicate=this.dataFactory.namedNode(c.RDF+"rest")}else{this.emitTriple(r.subject,r.predicate,t.subject,r.reifiedStatementId);for(let e=0;e=0)throw this.newParseError("Illegal property element name: "+n.local);t.predicateSubPredicates=[],t.predicateSubObjects=[];let i=!1,a=!1,s=null,o=!0;const l=[],d=[];for(const r in e.attributes){const n=e.attributes[r],p=c.expandPrefixedTerm(r,t.ns,this);if(p.uri===c.RDF)switch(p.local){case"resource":if(s)throw this.newParseError(`Found both rdf:resource (${n}) and rdf:nodeID (${s}).`);if(i)throw this.newParseError(`rdf:parseType is not allowed on property elements with rdf:resource (${n})`);t.hadChildren=!0,s=n,o=!1;continue;case"datatype":if(a)throw this.newParseError(`Found both non-rdf:* property attributes and rdf:datatype (${n}).`);if(i)throw this.newParseError(`rdf:parseType is not allowed on property elements with rdf:datatype (${n})`);t.datatype=this.valueToUri(n,t);continue;case"nodeID":if(a)throw this.newParseError(`Found both non-rdf:* property attributes and rdf:nodeID (${n}).`);if(t.hadChildren)throw this.newParseError(`Found both rdf:resource and rdf:nodeID (${n}).`);if(i)throw this.newParseError(`rdf:parseType is not allowed on property elements with rdf:nodeID (${n})`);this.validateNcname(n),t.hadChildren=!0,s=n,o=!0;continue;case"bagID":throw this.newParseError("rdf:bagID is not supported.");case"parseType":if(a)throw this.newParseError("rdf:parseType is not allowed when non-rdf:* property attributes are present");if(t.datatype)throw this.newParseError(`rdf:parseType is not allowed on property elements with rdf:datatype (${t.datatype.value})`);if(s)throw this.newParseError(`rdf:parseType is not allowed on property elements with rdf:nodeID or rdf:resource (${s})`);if("Resource"===n){i=!0,t.childrenParseType=u.PROPERTY;const e=this.dataFactory.blankNode();this.emitTriple(t.subject,t.predicate,e,t.reifiedStatementId),t.subject=e,t.predicate=null}else"Collection"===n?(i=!0,t.hadChildren=!0,t.childrenCollectionSubject=t.subject,t.childrenCollectionPredicate=t.predicate,o=!1):"Literal"===n&&(i=!0,t.childrenTagsToString=!0,t.childrenStringTags=[]);continue;case"ID":this.validateNcname(n),t.reifiedStatementId=this.valueToUri("#"+n,t),this.claimNodeId(t.reifiedStatementId);continue}else if(p.uri===c.XML&&"lang"===p.local){t.language=""===n?null:n.toLowerCase();continue}if("xml"!==p.prefix&&"xmlns"!==p.prefix&&p.uri){if(i||t.datatype)throw this.newParseError("Found illegal rdf:* properties on property element with attribute: "+n);t.hadChildren=!0,a=!0,l.push(this.uriToNamedNode(p.uri+p.local)),d.push(this.dataFactory.literal(n,t.datatype||t.language))}}if(null!==s){const e=t.subject;t.subject=o?this.dataFactory.blankNode(s):this.valueToUri(s,t),this.emitTriple(e,t.predicate,t.subject,t.reifiedStatementId);for(let e=0;e/g,(e,t,r)=>(this.saxStream._parser.ENTITIES[t]=r,""))}}var u;t.RdfXmlParser=c,c.IRI_REGEX=/^([A-Za-z][A-Za-z0-9+-.]*):[^ "<>{}|\\\[\]`]*$/,c.MIME_TYPE="application/rdf+xml",c.RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#",c.XML="http://www.w3.org/XML/1998/namespace",c.XMLNS="http://www.w3.org/2000/xmlns/",c.DEFAULT_NS={xml:c.XML},c.FORBIDDEN_NODE_ELEMENTS=["RDF","ID","about","bagID","parseType","resource","nodeID","li","aboutEach","aboutEachPrefix"],c.FORBIDDEN_PROPERTY_ELEMENTS=["Description","RDF","ID","about","bagID","parseType","resource","nodeID","aboutEach","aboutEachPrefix"],c.NCNAME_MATCHER=/^([A-Za-z\xC0-\xD6\xD8-\xF6\u{F8}-\u{2FF}\u{370}-\u{37D}\u{37F}-\u{1FFF}\u{200C}-\u{200D}\u{2070}-\u{218F}\u{2C00}-\u{2FEF}\u{3001}-\u{D7FF}\u{F900}-\u{FDCF}\u{FDF0}-\u{FFFD}\u{10000}-\u{EFFFF}_])([A-Za-z\xC0-\xD6\xD8-\xF6\u{F8}-\u{2FF}\u{370}-\u{37D}\u{37F}-\u{1FFF}\u{200C}-\u{200D}\u{2070}-\u{218F}\u{2C00}-\u{2FEF}\u{3001}-\u{D7FF}\u{F900}-\u{FDCF}\u{FDF0}-\u{FFFD}\u{10000}-\u{EFFFF}_\-.0-9#xB7\u{0300}-\u{036F}\u{203F}-\u{2040}])*$/u,function(e){e[e.RESOURCE=0]="RESOURCE",e[e.PROPERTY=1]="PROPERTY"}(u=t.ParseType||(t.ParseType={}))},function(e,t,r){"use strict";function n(e){const t=[];let r=0;for(;re.join("")).join("/")}function i(e,t){let r=t+1;t>=0?"/"===e[t+1]&&"/"===e[t+2]&&(r=t+3):"/"===e[0]&&"/"===e[1]&&(r=2);const i=e.indexOf("/",r);if(i<0)return e;return e.substr(0,i)+n(e.substr(i))}function a(e){return!e||"#"===e||"?"===e||"/"===e}Object.defineProperty(t,"__esModule",{value:!0}),t.resolve=function(e,t){const r=(t=t||"").indexOf("#");if(r>0&&(t=t.substr(0,r)),!e.length){if(t.indexOf(":")<0)throw new Error(`Found invalid baseIRI '${t}' for value '${e}'`);return t}if(e.startsWith("?")){const r=t.indexOf("?");return r>0&&(t=t.substr(0,r)),t+e}if(e.startsWith("#"))return t+e;if(!t.length){const t=e.indexOf(":");if(t<0)throw new Error(`Found invalid relative IRI '${e}' for a missing baseIRI`);return i(e,t)}const a=e.indexOf(":");if(a>=0)return i(e,a);const s=t.indexOf(":");if(s<0)throw new Error(`Found invalid baseIRI '${t}' for value '${e}'`);const o=t.substr(0,s+1);if(0===e.indexOf("//"))return o+i(e,a);let c;if(t.indexOf("//",s)===s+1){if(c=t.indexOf("/",s+3),c<0)return t.length>s+3?t+"/"+i(e,a):o+i(e,a)}else if(c=t.indexOf("/",s+1),c<0)return o+i(e,a);if(0===e.indexOf("/"))return t.substr(0,c)+n(e);let u=t.substr(c);const l=u.lastIndexOf("/");return l>=0&&ls.emit("error",e));const s=e.input.pipe(new i.RdfaParser({baseIRI:e.baseIRI,profile:"xml",language:a}));return{quads:s,triples:!0}}}t.ActorRdfParseXmlRdfa=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RdfaParser=void 0;const n=r(356),i=r(3),a=r(372),s=r(373),o=r(89),c=r(163);class u extends i.Transform{constructor(e){super({readableObjectMode:!0}),this.activeTagStack=[],e=e||{},this.options=e,this.util=new c.Util(e.dataFactory,e.baseIRI),this.defaultGraph=e.defaultGraph||this.util.dataFactory.defaultGraph();const t=e.contentType?c.Util.contentTypeToProfile(e.contentType):e.profile||"";this.features=e.features||o.RDFA_FEATURES[t],this.htmlParseListener=e.htmlParseListener,this.rdfaPatterns=this.features.copyRdfaPatterns?{}:null,this.pendingRdfaPatternCopies=this.features.copyRdfaPatterns?{}:null,this.parser=this.initializeParser("xml"===t),this.activeTagStack.push({incompleteTriples:[],inlist:!1,language:e.language,listMapping:{},listMappingLocal:{},name:"",prefixesAll:Object.assign(Object.assign({},s["@context"]),this.features.xhtmlInitialContext?a["@context"]:{}),prefixesCustom:{},skipElement:!1,vocab:e.vocab})}import(e){const t=new i.PassThrough({readableObjectMode:!0});e.on("error",e=>r.emit("error",e)),e.on("data",e=>t.push(e)),e.on("end",()=>t.push(null));const r=t.pipe(new u(this.options));return r}_transform(e,t,r){this.parser.write(e),r()}_flush(e){this.parser.end(),e()}onTagOpen(e,t){let r=this.activeTagStack.length-1;for(;r>0&&this.activeTagStack[r].skipElement;)r--;let n=this.activeTagStack[r];r!==this.activeTagStack.length-1&&(n=Object.assign(Object.assign({},n),{language:this.activeTagStack[this.activeTagStack.length-1].language,prefixesAll:this.activeTagStack[this.activeTagStack.length-1].prefixesAll,prefixesCustom:this.activeTagStack[this.activeTagStack.length-1].prefixesCustom,vocab:this.activeTagStack[this.activeTagStack.length-1].vocab}));const i={collectChildTags:n.collectChildTags,incompleteTriples:[],inlist:"inlist"in t,listMapping:[],listMappingLocal:n.listMapping,localBaseIRI:n.localBaseIRI,name:e,prefixesAll:null,prefixesCustom:null,skipElement:!1};if(this.activeTagStack.push(i),i.collectChildTags){for(const e of Object.keys(n.prefixesCustom).sort()){const r=n.prefixesCustom[e],i=""===e?"xmlns":"xmlns:"+e;i in t||(t[i]=r)}const r=Object.keys(t).map(e=>`${e}="${t[e]}"`).join(" ");if(i.text=[`<${e}${r?" "+r:""}>`],this.features.skipHandlingXmlLiteralChildren)return}let a,s,o,u=!0,l=!0;if(this.features.onlyAllowUriRelRevIfProperty&&("property"in t&&"rel"in t&&(u=!1,t.rel.indexOf(":")<0&&delete t.rel),"property"in t&&"rev"in t&&(l=!1,t.rev.indexOf(":")<0&&delete t.rev)),this.features.copyRdfaPatterns){if(n.collectedPatternTag){const r={attributes:t,children:[],name:e,referenced:!1,rootPattern:!1,text:[]};return n.collectedPatternTag.children.push(r),void(i.collectedPatternTag=r)}if("rdfa:Pattern"===t.typeof)return void(i.collectedPatternTag={attributes:t,children:[],name:e,parentTag:n,referenced:!1,rootPattern:!0,text:[]});if("rdfa:copy"===t.property){const e=t.resource||t.href||t.src;return void(this.rdfaPatterns[e]?this.emitPatternCopy(n,this.rdfaPatterns[e],e):(this.pendingRdfaPatternCopies[e]||(this.pendingRdfaPatternCopies[e]=[]),this.pendingRdfaPatternCopies[e].push(n)))}}if(this.features.baseTag&&"base"===e&&t.href&&(this.util.baseIRI=this.util.getBaseIRI(t.href)),this.features.xmlBase&&t["xml:base"]&&(i.localBaseIRI=this.util.getBaseIRI(t["xml:base"])),this.features.timeTag&&"time"===e&&!t.datatype&&(i.interpretObjectAsTime=!0),"vocab"in t?t.vocab?(i.vocab=t.vocab,this.emitTriple(this.util.getBaseIriTerm(i),this.util.dataFactory.namedNode(c.Util.RDFA+"usesVocabulary"),this.util.dataFactory.namedNode(i.vocab))):i.vocab=this.activeTagStack[0].vocab:i.vocab=n.vocab,i.prefixesCustom=c.Util.parsePrefixes(t,n.prefixesCustom,this.features.xmlnsPrefixMappings),i.prefixesAll=Object.keys(i.prefixesCustom).length>0?Object.assign(Object.assign({},n.prefixesAll),i.prefixesCustom):n.prefixesAll,this.features.roleAttribute&&t.role){const e=t.id?this.util.createIri("#"+t.id,i,!1,!1,!1):this.util.createBlankNode(),r=i.vocab;i.vocab="http://www.w3.org/1999/xhtml/vocab#";for(const r of this.util.createVocabIris(t.role,i,!0,!1))this.emitTriple(e,this.util.dataFactory.namedNode("http://www.w3.org/1999/xhtml/vocab#role"),r);i.vocab=r}"xml:lang"in t||this.features.langAttribute&&"lang"in t?i.language=t["xml:lang"]||t.lang:i.language=n.language;const d=2===this.activeTagStack.length;if("rel"in t||"rev"in t?("about"in t?(a=this.util.createIri(t.about,i,!1,!0,!0),i.explicitNewSubject=!!a,"typeof"in t&&(o=a)):d?a=!0:n.object&&(a=n.object),"resource"in t&&(s=this.util.createIri(t.resource,i,!1,!0,!0)),s||("href"in t||"src"in t?s=this.util.createIri(t.href||t.src,i,!1,!1,!0):!("typeof"in t)||"about"in t||this.isInheritSubjectInHeadBody(e)||(s=this.util.createBlankNode())),"typeof"in t&&!("about"in t)&&(o=this.isInheritSubjectInHeadBody(e)?a:s)):!("property"in t)||"content"in t||"datatype"in t?(("about"in t||"resource"in t)&&(a=this.util.createIri(t.about||t.resource,i,!1,!0,!0),i.explicitNewSubject=!!a),a||!("href"in t)&&!("src"in t)||(a=this.util.createIri(t.href||t.src,i,!1,!1,!0),i.explicitNewSubject=!!a),a||(d?a=!0:this.isInheritSubjectInHeadBody(e)?a=n.object:"typeof"in t?(a=this.util.createBlankNode(),i.explicitNewSubject=!0):n.object&&(a=n.object,"property"in t||(i.skipElement=!0))),"typeof"in t&&(o=a)):("about"in t?(a=this.util.createIri(t.about,i,!1,!0,!0),i.explicitNewSubject=!!a):d?a=!0:n.object&&(a=n.object),"typeof"in t&&("about"in t&&(o=this.util.createIri(t.about,i,!1,!0,!0)),!o&&d&&(o=!0),!o&&"resource"in t&&(o=this.util.createIri(t.resource,i,!1,!0,!0)),o||!("href"in t)&&!("src"in t)||(o=this.util.createIri(t.href||t.src,i,!1,!1,!0)),!o&&this.isInheritSubjectInHeadBody(e)&&(o=a),o||(o=this.util.createBlankNode()),s=o)),o)for(const e of this.util.createVocabIris(t.typeof,i,!0,!0))this.emitTriple(this.util.getResourceOrBaseIri(o,i),this.util.dataFactory.namedNode(c.Util.RDF+"type"),e);if(a&&(i.listMapping={}),s){if("rel"in t&&"inlist"in t)for(const e of this.util.createVocabIris(t.rel,i,u,!1))this.addListMapping(i,a,e,s);if(!("rel"in t)||!("inlist"in t)){if("rel"in t)for(const e of this.util.createVocabIris(t.rel,i,u,!1))this.emitTriple(this.util.getResourceOrBaseIri(a,i),e,this.util.getResourceOrBaseIri(s,i));if("rev"in t)for(const e of this.util.createVocabIris(t.rev,i,l,!1))this.emitTriple(this.util.getResourceOrBaseIri(s,i),e,this.util.getResourceOrBaseIri(a,i))}}if(!s){if("rel"in t)if("inlist"in t)for(const e of this.util.createVocabIris(t.rel,i,u,!1))this.addListMapping(i,a,e,null),i.incompleteTriples.push({predicate:e,reverse:!1,list:!0});else for(const e of this.util.createVocabIris(t.rel,i,u,!1))i.incompleteTriples.push({predicate:e,reverse:!1});if("rev"in t)for(const e of this.util.createVocabIris(t.rev,i,l,!1))i.incompleteTriples.push({predicate:e,reverse:!0});i.incompleteTriples.length>0&&(s=this.util.createBlankNode())}if("property"in t){let e;if(i.predicates=this.util.createVocabIris(t.property,i,!0,!1),"datatype"in t?(i.datatype=this.util.createIri(t.datatype,i,!0,!0,!1),i.datatype&&(i.datatype.value===c.Util.RDF+"XMLLiteral"||this.features.htmlDatatype&&i.datatype.value===c.Util.RDF+"HTML")&&(i.collectChildTags=!0)):("rev"in t||"rel"in t||"content"in t||("resource"in t&&(e=this.util.createIri(t.resource,i,!1,!0,!0)),!e&&"href"in t&&(e=this.util.createIri(t.href,i,!1,!1,!0)),!e&&"src"in t&&(e=this.util.createIri(t.src,i,!1,!1,!0))),"typeof"in t&&!("about"in t)&&(e=o)),"content"in t){const e=this.util.createLiteral(t.content,i);if("inlist"in t)for(const t of i.predicates)this.addListMapping(i,a,t,e);else{const t=this.util.getResourceOrBaseIri(a,i);for(const r of i.predicates)this.emitTriple(t,r,e)}i.predicates=null}else if(this.features.datetimeAttribute&&"datetime"in t){i.interpretObjectAsTime=!0;const e=this.util.createLiteral(t.datetime,i);if("inlist"in t)for(const t of i.predicates)this.addListMapping(i,a,t,e);else{const t=this.util.getResourceOrBaseIri(a,i);for(const r of i.predicates)this.emitTriple(t,r,e)}i.predicates=null}else if(e){const r=this.util.getResourceOrBaseIri(e,i);if("inlist"in t)for(const e of i.predicates)this.addListMapping(i,a,e,r);else{const e=this.util.getResourceOrBaseIri(a,i);for(const t of i.predicates)this.emitTriple(e,t,r)}i.predicates=null}}let p=!1;if(!i.skipElement&&a&&n.incompleteTriples.length>0){p=!0;const e=this.util.getResourceOrBaseIri(n.subject,i),t=this.util.getResourceOrBaseIri(a,i);for(const r of n.incompleteTriples)if(r.reverse)this.emitTriple(t,r.predicate,e);else if(r.list){let e=null;for(let t=this.activeTagStack.length-1;t>=0;t--)if(this.activeTagStack[t].inlist){e=this.activeTagStack[t];break}this.addListMapping(e,a,r.predicate,t)}else this.emitTriple(e,r.predicate,t)}!p&&n.incompleteTriples.length>0&&(i.incompleteTriples=i.incompleteTriples.concat(n.incompleteTriples)),i.subject=a||n.subject,i.object=s||a}onText(e){const t=this.activeTagStack[this.activeTagStack.length-1];this.features.copyRdfaPatterns&&t.collectedPatternTag?t.collectedPatternTag.text.push(e):(t.text||(t.text=[]),t.text.push(e))}onTagClose(){const e=this.activeTagStack[this.activeTagStack.length-1],t=this.activeTagStack[this.activeTagStack.length-2];if(!(e.collectChildTags&&t.collectChildTags&&this.features.skipHandlingXmlLiteralChildren)){if(this.features.copyRdfaPatterns&&e.collectedPatternTag&&e.collectedPatternTag.rootPattern){const t=e.collectedPatternTag.attributes.resource;if(delete e.collectedPatternTag.attributes.resource,delete e.collectedPatternTag.attributes.typeof,this.rdfaPatterns[t]=e.collectedPatternTag,this.pendingRdfaPatternCopies[t]){for(const r of this.pendingRdfaPatternCopies[t])this.emitPatternCopy(r,e.collectedPatternTag,t);delete this.pendingRdfaPatternCopies[t]}return void this.activeTagStack.pop()}if(e.predicates){const r=this.util.getResourceOrBaseIri(e.subject,e);let n=e.text||[];e.collectChildTags&&t.collectChildTags&&(n=n.slice(1));const i=this.util.createLiteral(n.join(""),e);if(e.inlist)for(const t of e.predicates)this.addListMapping(e,r,t,i);else for(const t of e.predicates)this.emitTriple(r,t,i);t.predicates||(e.text=null)}if(e.object&&Object.keys(e.listMapping).length>0){const t=this.util.getResourceOrBaseIri(e.object,e);for(const r in e.listMapping){const n=this.util.dataFactory.namedNode(r),i=e.listMapping[r];if(i.length>0){const r=i.map(()=>this.util.createBlankNode());for(let t=0;t`),e.text&&t&&(t.text?t.text=t.text.concat(e.text):t.text=e.text)}onEnd(){if(this.features.copyRdfaPatterns){this.features.copyRdfaPatterns=!1;for(const e in this.rdfaPatterns){const t=this.rdfaPatterns[e];t.referenced||(t.attributes.typeof="rdfa:Pattern",t.attributes.resource=e,this.emitPatternCopy(t.parentTag,t,e),t.referenced=!1,delete t.attributes.typeof,delete t.attributes.resource)}for(const e in this.pendingRdfaPatternCopies)for(const t of this.pendingRdfaPatternCopies[e])this.activeTagStack.push(t),this.onTagOpen("link",{property:"rdfa:copy",href:e}),this.onTagClose(),this.activeTagStack.pop();this.features.copyRdfaPatterns=!0}}isInheritSubjectInHeadBody(e){return this.features.inheritSubjectInHeadBody&&("head"===e||"body"===e)}addListMapping(e,t,r,n){if(e.explicitNewSubject){const i=this.util.createBlankNode();this.emitTriple(this.util.getResourceOrBaseIri(t,e),r,i),this.emitTriple(i,this.util.dataFactory.namedNode(c.Util.RDF+"first"),this.util.getResourceOrBaseIri(n,e)),this.emitTriple(i,this.util.dataFactory.namedNode(c.Util.RDF+"rest"),this.util.dataFactory.namedNode(c.Util.RDF+"nil"))}else{let t=e.listMappingLocal[r.value];t||(e.listMappingLocal[r.value]=t=[]),n&&t.push(n)}}emitTriple(e,t,r){"NamedNode"===e.termType&&e.value.indexOf(":")<0||"NamedNode"===t.termType&&t.value.indexOf(":")<0||"NamedNode"===r.termType&&r.value.indexOf(":")<0||this.push(this.util.dataFactory.quad(e,t,r,this.defaultGraph))}emitPatternCopy(e,t,r){if(this.activeTagStack.push(e),t.referenced=!0,t.constructedBlankNodes){let e=0;this.util.blankNodeFactory=()=>t.constructedBlankNodes[e++]}else t.constructedBlankNodes=[],this.util.blankNodeFactory=()=>{const e=this.util.dataFactory.blankNode();return t.constructedBlankNodes.push(e),e};this.emitPatternCopyAbsolute(t,!0,r),this.util.blankNodeFactory=null,this.activeTagStack.pop()}emitPatternCopyAbsolute(e,t,r){if(t||"rdfa:copy"!==e.attributes.property||e.attributes.href!==r){this.onTagOpen(e.name,e.attributes);for(const t of e.text)this.onText(t);for(const t of e.children)this.emitPatternCopyAbsolute(t,!1,r);this.onTagClose()}}initializeParser(e){return new n.Parser({onclosetag:()=>{try{this.onTagClose(),this.htmlParseListener&&this.htmlParseListener.onTagClose()}catch(e){this.emit("error",e)}},onend:()=>{try{this.onEnd(),this.htmlParseListener&&this.htmlParseListener.onEnd()}catch(e){this.emit("error",e)}},onopentag:(e,t)=>{try{this.onTagOpen(e,t),this.htmlParseListener&&this.htmlParseListener.onTagOpen(e,t)}catch(e){this.emit("error",e)}},ontext:e=>{try{this.onText(e),this.htmlParseListener&&this.htmlParseListener.onText(e)}catch(e){this.emit("error",e)}}},{decodeEntities:!0,recognizeSelfClosing:!0,xmlMode:e})}}t.RdfaParser=u},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t},s=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.RssHandler=t.DefaultHandler=t.DomUtils=t.ElementType=t.Tokenizer=t.createDomStream=t.parseDOM=t.parseDocument=t.DomHandler=t.Parser=void 0;var c=r(152);Object.defineProperty(t,"Parser",{enumerable:!0,get:function(){return c.Parser}});var u=r(22);function l(e,t){var r=new u.DomHandler(void 0,t);return new c.Parser(r,t).end(e),r.root}Object.defineProperty(t,"DomHandler",{enumerable:!0,get:function(){return u.DomHandler}}),Object.defineProperty(t,"DefaultHandler",{enumerable:!0,get:function(){return u.DomHandler}}),t.parseDocument=l,t.parseDOM=function(e,t){return l(e,t).children},t.createDomStream=function(e,t,r){var n=new u.DomHandler(e,t,r);return new c.Parser(n,t)};var d=r(153);Object.defineProperty(t,"Tokenizer",{enumerable:!0,get:function(){return o(d).default}});var p=a(r(42));t.ElementType=p,s(r(155),t),t.DomUtils=a(r(65));var h=r(155);Object.defineProperty(t,"RssHandler",{enumerable:!0,get:function(){return h.FeedHandler}})},function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(r(358)),a=String.fromCodePoint||function(e){var t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+=String.fromCharCode(e)};t.default=function(e){return e>=55296&&e<=57343||e>1114111?"�":(e in i.default&&(e=i.default[e]),a(e))}},function(e){e.exports={0:65533,128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376}},function(e){e.exports={Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"⁡",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",amp:"&",AMP:"&",andand:"⩕",And:"⩓",and:"∧",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angmsd:"∡",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",apacir:"⩯",ap:"≈",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",barwed:"⌅",Barwed:"⌆",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",Because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxdl:"┐",boxdL:"╕",boxDl:"╖",boxDL:"╗",boxdr:"┌",boxdR:"╒",boxDr:"╓",boxDR:"╔",boxh:"─",boxH:"═",boxhd:"┬",boxHd:"╤",boxhD:"╥",boxHD:"╦",boxhu:"┴",boxHu:"╧",boxhU:"╨",boxHU:"╩",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxul:"┘",boxuL:"╛",boxUl:"╜",boxUL:"╝",boxur:"└",boxuR:"╘",boxUr:"╙",boxUR:"╚",boxv:"│",boxV:"║",boxvh:"┼",boxvH:"╪",boxVh:"╫",boxVH:"╬",boxvl:"┤",boxvL:"╡",boxVl:"╢",boxVL:"╣",boxvr:"├",boxvR:"╞",boxVr:"╟",boxVR:"╠",bprime:"‵",breve:"˘",Breve:"˘",brvbar:"¦",bscr:"𝒷",Bscr:"ℬ",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsolb:"⧅",bsol:"\\",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",capand:"⩄",capbrcup:"⩉",capcap:"⩋",cap:"∩",Cap:"⋒",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",CenterDot:"·",cfr:"𝔠",Cfr:"ℭ",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cir:"○",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",colon:":",Colon:"∷",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",conint:"∮",Conint:"∯",ContourIntegral:"∮",copf:"𝕔",Copf:"ℂ",coprod:"∐",Coproduct:"∐",copy:"©",COPY:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",cross:"✗",Cross:"⨯",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cupbrcap:"⩈",cupcap:"⩆",CupCap:"≍",cup:"∪",Cup:"⋓",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dagger:"†",Dagger:"‡",daleth:"ℸ",darr:"↓",Darr:"↡",dArr:"⇓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",ddagger:"‡",ddarr:"⇊",DD:"ⅅ",dd:"ⅆ",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",diamond:"⋄",Diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrowBar:"⤓",downarrow:"↓",DownArrow:"↓",Downarrow:"⇓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVectorBar:"⥖",DownLeftVector:"↽",DownRightTeeVector:"⥟",DownRightVectorBar:"⥗",DownRightVector:"⇁",DownTeeArrow:"↧",DownTee:"⊤",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",Ecirc:"Ê",ecirc:"ê",ecir:"≖",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",edot:"ė",eDot:"≑",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp13:" ",emsp14:" ",emsp:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",escr:"ℯ",Escr:"ℰ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",exponentiale:"ⅇ",ExponentialE:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",forall:"∀",ForAll:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",Fscr:"ℱ",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",ge:"≥",gE:"≧",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",gescc:"⪩",ges:"⩾",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",gg:"≫",Gg:"⋙",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gla:"⪥",gl:"≷",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gnE:"≩",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gtcc:"⪧",gtcir:"⩺",gt:">",GT:">",Gt:"≫",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",harrcir:"⥈",harr:"↔",hArr:"⇔",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",Hfr:"ℌ",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",Hopf:"ℍ",horbar:"―",HorizontalLine:"─",hscr:"𝒽",Hscr:"ℋ",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"⁣",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",Ifr:"ℑ",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",Im:"ℑ",imof:"⊷",imped:"Ƶ",Implies:"⇒",incare:"℅",in:"∈",infin:"∞",infintie:"⧝",inodot:"ı",intcal:"⊺",int:"∫",Int:"∬",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",Iscr:"ℐ",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",lang:"⟨",Lang:"⟪",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",larrb:"⇤",larrbfs:"⤟",larr:"←",Larr:"↞",lArr:"⇐",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",latail:"⤙",lAtail:"⤛",lat:"⪫",late:"⪭",lates:"⪭︀",lbarr:"⤌",lBarr:"⤎",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",lE:"≦",LeftAngleBracket:"⟨",LeftArrowBar:"⇤",leftarrow:"←",LeftArrow:"←",Leftarrow:"⇐",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVectorBar:"⥙",LeftDownVector:"⇃",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTeeArrow:"↤",LeftTee:"⊣",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangleBar:"⧏",LeftTriangle:"⊲",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVectorBar:"⥘",LeftUpVector:"↿",LeftVectorBar:"⥒",LeftVector:"↼",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",lescc:"⪨",les:"⩽",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",llarr:"⇇",ll:"≪",Ll:"⋘",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoustache:"⎰",lmoust:"⎰",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lnE:"≨",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftrightarrow:"⟷",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longmapsto:"⟼",longrightarrow:"⟶",LongRightArrow:"⟶",Longrightarrow:"⟹",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",Lscr:"ℒ",lsh:"↰",Lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",ltcc:"⪦",ltcir:"⩹",lt:"<",LT:"<",Lt:"≪",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",midast:"*",midcir:"⫰",mid:"∣",middot:"·",minusb:"⊟",minus:"−",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",mscr:"𝓂",Mscr:"ℳ",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natural:"♮",naturals:"ℕ",natur:"♮",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",nearhk:"⤤",nearr:"↗",neArr:"⇗",nearrow:"↗",ne:"≠",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nharr:"↮",nhArr:"⇎",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlarr:"↚",nlArr:"⇍",nldr:"‥",nlE:"≦̸",nle:"≰",nleftarrow:"↚",nLeftarrow:"⇍",nleftrightarrow:"↮",nLeftrightarrow:"⇎",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",nopf:"𝕟",Nopf:"ℕ",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangleBar:"⧏̸",NotLeftTriangle:"⋪",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangleBar:"⧐̸",NotRightTriangle:"⋫",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",nparallel:"∦",npar:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",nprec:"⊀",npreceq:"⪯̸",npre:"⪯̸",nrarrc:"⤳̸",nrarr:"↛",nrArr:"⇏",nrarrw:"↝̸",nrightarrow:"↛",nRightarrow:"⇏",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwarr:"↖",nwArr:"⇖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",Ocirc:"Ô",ocirc:"ô",ocir:"⊚",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",orarr:"↻",Or:"⩔",or:"∨",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",otimesas:"⨶",Otimes:"⨷",otimes:"⊗",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",para:"¶",parallel:"∥",par:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plus:"+",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",popf:"𝕡",Popf:"ℙ",pound:"£",prap:"⪷",Pr:"⪻",pr:"≺",prcue:"≼",precapprox:"⪷",prec:"≺",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",pre:"⪯",prE:"⪳",precsim:"≾",prime:"′",Prime:"″",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportional:"∝",Proportion:"∷",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",qopf:"𝕢",Qopf:"ℚ",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',QUOT:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",Rang:"⟫",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarr:"→",Rarr:"↠",rArr:"⇒",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",ratail:"⤚",rAtail:"⤜",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rBarr:"⤏",RBarr:"⤐",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",Re:"ℜ",rect:"▭",reg:"®",REG:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",Rfr:"ℜ",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrowBar:"⇥",rightarrow:"→",RightArrow:"→",Rightarrow:"⇒",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVectorBar:"⥕",RightDownVector:"⇂",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTeeArrow:"↦",RightTee:"⊢",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangleBar:"⧐",RightTriangle:"⊳",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVectorBar:"⥔",RightUpVector:"↾",RightVectorBar:"⥓",RightVector:"⇀",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoustache:"⎱",rmoust:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",Ropf:"ℝ",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",rscr:"𝓇",Rscr:"ℛ",rsh:"↱",Rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",scap:"⪸",Scaron:"Š",scaron:"š",Sc:"⪼",sc:"≻",sccue:"≽",sce:"⪰",scE:"⪴",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdotb:"⊡",sdot:"⋅",sdote:"⩦",searhk:"⤥",searr:"↘",seArr:"⇘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",solbar:"⌿",solb:"⧄",sol:"/",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",square:"□",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squ:"□",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",Sub:"⋐",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",Subset:"⋐",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succapprox:"⪸",succ:"≻",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",sum:"∑",Sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",Sup:"⋑",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",Supset:"⋑",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swarr:"↙",swArr:"⇙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"\t",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",therefore:"∴",Therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",ThinSpace:" ",thinsp:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",tilde:"˜",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",timesbar:"⨱",timesb:"⊠",times:"×",timesd:"⨰",tint:"∭",toea:"⤨",topbot:"⌶",topcir:"⫱",top:"⊤",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",TRADE:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",uarr:"↑",Uarr:"↟",uArr:"⇑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrowBar:"⤒",uparrow:"↑",UpArrow:"↑",Uparrow:"⇑",UpArrowDownArrow:"⇅",updownarrow:"↕",UpDownArrow:"↕",Updownarrow:"⇕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",upsi:"υ",Upsi:"ϒ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTeeArrow:"↥",UpTee:"⊥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",vArr:"⇕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vBar:"⫨",Vbar:"⫫",vBarv:"⫩",Vcy:"В",vcy:"в",vdash:"⊢",vDash:"⊨",Vdash:"⊩",VDash:"⊫",Vdashl:"⫦",veebar:"⊻",vee:"∨",Vee:"⋁",veeeq:"≚",vellip:"⋮",verbar:"|",Verbar:"‖",vert:"|",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",Wedge:"⋀",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xharr:"⟷",xhArr:"⟺",Xi:"Ξ",xi:"ξ",xlarr:"⟵",xlArr:"⟸",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrarr:"⟶",xrArr:"⟹",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",yuml:"ÿ",Yuml:"Ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"​",Zeta:"Ζ",zeta:"ζ",zfr:"𝔷",Zfr:"ℨ",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",Zopf:"ℤ",Zscr:"𝒵",zscr:"𝓏",zwj:"‍",zwnj:"‌"}},function(e){e.exports={Aacute:"Á",aacute:"á",Acirc:"Â",acirc:"â",acute:"´",AElig:"Æ",aelig:"æ",Agrave:"À",agrave:"à",amp:"&",AMP:"&",Aring:"Å",aring:"å",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",brvbar:"¦",Ccedil:"Ç",ccedil:"ç",cedil:"¸",cent:"¢",copy:"©",COPY:"©",curren:"¤",deg:"°",divide:"÷",Eacute:"É",eacute:"é",Ecirc:"Ê",ecirc:"ê",Egrave:"È",egrave:"è",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",frac12:"½",frac14:"¼",frac34:"¾",gt:">",GT:">",Iacute:"Í",iacute:"í",Icirc:"Î",icirc:"î",iexcl:"¡",Igrave:"Ì",igrave:"ì",iquest:"¿",Iuml:"Ï",iuml:"ï",laquo:"«",lt:"<",LT:"<",macr:"¯",micro:"µ",middot:"·",nbsp:" ",not:"¬",Ntilde:"Ñ",ntilde:"ñ",Oacute:"Ó",oacute:"ó",Ocirc:"Ô",ocirc:"ô",Ograve:"Ò",ograve:"ò",ordf:"ª",ordm:"º",Oslash:"Ø",oslash:"ø",Otilde:"Õ",otilde:"õ",Ouml:"Ö",ouml:"ö",para:"¶",plusmn:"±",pound:"£",quot:'"',QUOT:'"',raquo:"»",reg:"®",REG:"®",sect:"§",shy:"­",sup1:"¹",sup2:"²",sup3:"³",szlig:"ß",THORN:"Þ",thorn:"þ",times:"×",Uacute:"Ú",uacute:"ú",Ucirc:"Û",ucirc:"û",Ugrave:"Ù",ugrave:"ù",uml:"¨",Uuml:"Ü",uuml:"ü",Yacute:"Ý",yacute:"ý",yen:"¥",yuml:"ÿ"}},function(e){e.exports={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}},function(e,t,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r";case o.Comment:return function(e){return"\x3c!--"+e.data+"--\x3e"}(e);case o.CDATA:return function(e){return""}(e);case o.Script:case o.Style:case o.Tag:return function(e,t){var r;"foreign"===t.xmlMode&&(e.name=null!==(r=u.elementNames.get(e.name))&&void 0!==r?r:e.name,e.parent&&f.has(e.parent.name)&&(t=n(n({},t),{xmlMode:!1})));!t.xmlMode&&g.has(e.name)&&(t=n(n({},t),{xmlMode:"foreign"}));var i="<"+e.name,a=function(e,t){if(e)return Object.keys(e).map((function(r){var n,i,a=null!==(n=e[r])&&void 0!==n?n:"";return"foreign"===t.xmlMode&&(r=null!==(i=u.attributeNames.get(r))&&void 0!==i?i:r),t.emptyAttrs||t.xmlMode||""!==a?r+'="'+(!1!==t.decodeEntities?c.encodeXML(a):a.replace(/"/g,"""))+'"':r})).join(" ")}(e.attribs,t);a&&(i+=" "+a);0===e.children.length&&(t.xmlMode?!1!==t.selfClosingTags:t.selfClosingTags&&d.has(e.name))?(t.xmlMode||(i+=" "),i+="/>"):(i+=">",e.children.length>0&&(i+=p(e.children,t)),!t.xmlMode&&d.has(e.name)||(i+=""));return i}(e,t);case o.Text:return function(e,t){var r=e.data||"";!1===t.decodeEntities||!t.xmlMode&&e.parent&&l.has(e.parent.name)||(r=c.encodeXML(r));return r}(e,t)}}t.default=p;var f=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),g=new Set(["svg","math"])},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeXMLStrict=t.decodeHTML5Strict=t.decodeHTML4Strict=t.decodeHTML5=t.decodeHTML4=t.decodeHTMLStrict=t.decodeHTML=t.decodeXML=t.encodeHTML5=t.encodeHTML4=t.escapeUTF8=t.escape=t.encodeNonAsciiHTML=t.encodeHTML=t.encodeXML=t.encode=t.decodeStrict=t.decode=void 0;var n=r(157),i=r(160);t.decode=function(e,t){return(!t||t<=0?n.decodeXML:n.decodeHTML)(e)},t.decodeStrict=function(e,t){return(!t||t<=0?n.decodeXML:n.decodeHTMLStrict)(e)},t.encode=function(e,t){return(!t||t<=0?i.encodeXML:i.encodeHTML)(e)};var a=r(160);Object.defineProperty(t,"encodeXML",{enumerable:!0,get:function(){return a.encodeXML}}),Object.defineProperty(t,"encodeHTML",{enumerable:!0,get:function(){return a.encodeHTML}}),Object.defineProperty(t,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return a.encodeNonAsciiHTML}}),Object.defineProperty(t,"escape",{enumerable:!0,get:function(){return a.escape}}),Object.defineProperty(t,"escapeUTF8",{enumerable:!0,get:function(){return a.escapeUTF8}}),Object.defineProperty(t,"encodeHTML4",{enumerable:!0,get:function(){return a.encodeHTML}}),Object.defineProperty(t,"encodeHTML5",{enumerable:!0,get:function(){return a.encodeHTML}});var s=r(157);Object.defineProperty(t,"decodeXML",{enumerable:!0,get:function(){return s.decodeXML}}),Object.defineProperty(t,"decodeHTML",{enumerable:!0,get:function(){return s.decodeHTML}}),Object.defineProperty(t,"decodeHTMLStrict",{enumerable:!0,get:function(){return s.decodeHTMLStrict}}),Object.defineProperty(t,"decodeHTML4",{enumerable:!0,get:function(){return s.decodeHTML}}),Object.defineProperty(t,"decodeHTML5",{enumerable:!0,get:function(){return s.decodeHTML}}),Object.defineProperty(t,"decodeHTML4Strict",{enumerable:!0,get:function(){return s.decodeHTMLStrict}}),Object.defineProperty(t,"decodeHTML5Strict",{enumerable:!0,get:function(){return s.decodeHTMLStrict}}),Object.defineProperty(t,"decodeXMLStrict",{enumerable:!0,get:function(){return s.decodeXML}})},function(e){e.exports={Aacute:"Á",aacute:"á",Acirc:"Â",acirc:"â",acute:"´",AElig:"Æ",aelig:"æ",Agrave:"À",agrave:"à",amp:"&",AMP:"&",Aring:"Å",aring:"å",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",brvbar:"¦",Ccedil:"Ç",ccedil:"ç",cedil:"¸",cent:"¢",copy:"©",COPY:"©",curren:"¤",deg:"°",divide:"÷",Eacute:"É",eacute:"é",Ecirc:"Ê",ecirc:"ê",Egrave:"È",egrave:"è",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",frac12:"½",frac14:"¼",frac34:"¾",gt:">",GT:">",Iacute:"Í",iacute:"í",Icirc:"Î",icirc:"î",iexcl:"¡",Igrave:"Ì",igrave:"ì",iquest:"¿",Iuml:"Ï",iuml:"ï",laquo:"«",lt:"<",LT:"<",macr:"¯",micro:"µ",middot:"·",nbsp:" ",not:"¬",Ntilde:"Ñ",ntilde:"ñ",Oacute:"Ó",oacute:"ó",Ocirc:"Ô",ocirc:"ô",Ograve:"Ò",ograve:"ò",ordf:"ª",ordm:"º",Oslash:"Ø",oslash:"ø",Otilde:"Õ",otilde:"õ",Ouml:"Ö",ouml:"ö",para:"¶",plusmn:"±",pound:"£",quot:'"',QUOT:'"',raquo:"»",reg:"®",REG:"®",sect:"§",shy:"­",sup1:"¹",sup2:"²",sup3:"³",szlig:"ß",THORN:"Þ",thorn:"þ",times:"×",Uacute:"Ú",uacute:"ú",Ucirc:"Û",ucirc:"û",Ugrave:"Ù",ugrave:"ù",uml:"¨",Uuml:"Ü",uuml:"ü",Yacute:"Ý",yacute:"ý",yen:"¥",yuml:"ÿ"}},function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(r(366)),a=String.fromCodePoint||function(e){var t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+=String.fromCharCode(e)};t.default=function(e){return e>=55296&&e<=57343||e>1114111?"�":(e in i.default&&(e=i.default[e]),a(e))}},function(e){e.exports={0:65533,128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.attributeNames=t.elementNames=void 0,t.elementNames=new Map([["altglyph","altGlyph"],["altglyphdef","altGlyphDef"],["altglyphitem","altGlyphItem"],["animatecolor","animateColor"],["animatemotion","animateMotion"],["animatetransform","animateTransform"],["clippath","clipPath"],["feblend","feBlend"],["fecolormatrix","feColorMatrix"],["fecomponenttransfer","feComponentTransfer"],["fecomposite","feComposite"],["feconvolvematrix","feConvolveMatrix"],["fediffuselighting","feDiffuseLighting"],["fedisplacementmap","feDisplacementMap"],["fedistantlight","feDistantLight"],["fedropshadow","feDropShadow"],["feflood","feFlood"],["fefunca","feFuncA"],["fefuncb","feFuncB"],["fefuncg","feFuncG"],["fefuncr","feFuncR"],["fegaussianblur","feGaussianBlur"],["feimage","feImage"],["femerge","feMerge"],["femergenode","feMergeNode"],["femorphology","feMorphology"],["feoffset","feOffset"],["fepointlight","fePointLight"],["fespecularlighting","feSpecularLighting"],["fespotlight","feSpotLight"],["fetile","feTile"],["feturbulence","feTurbulence"],["foreignobject","foreignObject"],["glyphref","glyphRef"],["lineargradient","linearGradient"],["radialgradient","radialGradient"],["textpath","textPath"]]),t.attributeNames=new Map([["definitionurl","definitionURL"],["attributename","attributeName"],["attributetype","attributeType"],["basefrequency","baseFrequency"],["baseprofile","baseProfile"],["calcmode","calcMode"],["clippathunits","clipPathUnits"],["diffuseconstant","diffuseConstant"],["edgemode","edgeMode"],["filterunits","filterUnits"],["glyphref","glyphRef"],["gradienttransform","gradientTransform"],["gradientunits","gradientUnits"],["kernelmatrix","kernelMatrix"],["kernelunitlength","kernelUnitLength"],["keypoints","keyPoints"],["keysplines","keySplines"],["keytimes","keyTimes"],["lengthadjust","lengthAdjust"],["limitingconeangle","limitingConeAngle"],["markerheight","markerHeight"],["markerunits","markerUnits"],["markerwidth","markerWidth"],["maskcontentunits","maskContentUnits"],["maskunits","maskUnits"],["numoctaves","numOctaves"],["pathlength","pathLength"],["patterncontentunits","patternContentUnits"],["patterntransform","patternTransform"],["patternunits","patternUnits"],["pointsatx","pointsAtX"],["pointsaty","pointsAtY"],["pointsatz","pointsAtZ"],["preservealpha","preserveAlpha"],["preserveaspectratio","preserveAspectRatio"],["primitiveunits","primitiveUnits"],["refx","refX"],["refy","refY"],["repeatcount","repeatCount"],["repeatdur","repeatDur"],["requiredextensions","requiredExtensions"],["requiredfeatures","requiredFeatures"],["specularconstant","specularConstant"],["specularexponent","specularExponent"],["spreadmethod","spreadMethod"],["startoffset","startOffset"],["stddeviation","stdDeviation"],["stitchtiles","stitchTiles"],["surfacescale","surfaceScale"],["systemlanguage","systemLanguage"],["tablevalues","tableValues"],["targetx","targetX"],["targety","targetY"],["textlength","textLength"],["viewbox","viewBox"],["viewtarget","viewTarget"],["xchannelselector","xChannelSelector"],["ychannelselector","yChannelSelector"],["zoomandpan","zoomAndPan"]])},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.prevElementSibling=t.nextElementSibling=t.getName=t.hasAttrib=t.getAttributeValue=t.getSiblings=t.getParent=t.getChildren=void 0;var n=r(22),i=[];function a(e){var t;return null!==(t=e.children)&&void 0!==t?t:i}function s(e){return e.parent||null}t.getChildren=a,t.getParent=s,t.getSiblings=function(e){var t=s(e);if(null!=t)return a(t);for(var r=[e],n=e.prev,i=e.next;null!=n;)r.unshift(n),n=n.prev;for(;null!=i;)r.push(i),i=i.next;return r},t.getAttributeValue=function(e,t){var r;return null===(r=e.attribs)||void 0===r?void 0:r[t]},t.hasAttrib=function(e,t){return null!=e.attribs&&Object.prototype.hasOwnProperty.call(e.attribs,t)&&null!=e.attribs[t]},t.getName=function(e){return e.name},t.nextElementSibling=function(e){for(var t=e.next;null!==t&&!(0,n.isTag)(t);)t=t.next;return t},t.prevElementSibling=function(e){for(var t=e.prev;null!==t&&!(0,n.isTag)(t);)t=t.prev;return t}},function(e,t,r){"use strict";function n(e){if(e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e.parent){var t=e.parent.children;t.splice(t.lastIndexOf(e),1)}}Object.defineProperty(t,"__esModule",{value:!0}),t.prepend=t.prependChild=t.append=t.appendChild=t.replaceElement=t.removeElement=void 0,t.removeElement=n,t.replaceElement=function(e,t){var r=t.prev=e.prev;r&&(r.next=t);var n=t.next=e.next;n&&(n.prev=t);var i=t.parent=e.parent;if(i){var a=i.children;a[a.lastIndexOf(e)]=t}},t.appendChild=function(e,t){if(n(t),t.next=null,t.parent=e,e.children.push(t)>1){var r=e.children[e.children.length-2];r.next=t,t.prev=r}else t.prev=null},t.append=function(e,t){n(t);var r=e.parent,i=e.next;if(t.next=i,t.prev=e,e.next=t,t.parent=r,i){if(i.prev=t,r){var a=r.children;a.splice(a.lastIndexOf(i),0,t)}}else r&&r.children.push(t)},t.prependChild=function(e,t){if(n(t),t.parent=e,t.prev=null,1!==e.children.unshift(t)){var r=e.children[1];r.prev=t,t.next=r}else t.next=null},t.prepend=function(e,t){n(t);var r=e.parent;if(r){var i=r.children;i.splice(i.indexOf(e),0,t)}e.prev&&(e.prev.next=t),t.parent=r,t.prev=e.prev,t.next=e,e.prev=t}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.uniqueSort=t.compareDocumentPosition=t.removeSubsets=void 0;var n=r(22);function i(e,t){var r=[],i=[];if(e===t)return 0;for(var a=(0,n.hasChildren)(e)?e:e.parent;a;)r.unshift(a),a=a.parent;for(a=(0,n.hasChildren)(t)?t:t.parent;a;)i.unshift(a),a=a.parent;for(var s=Math.min(r.length,i.length),o=0;ou.indexOf(d)?c===t?20:4:c===e?10:2}t.removeSubsets=function(e){for(var t=e.length;--t>=0;){var r=e[t];if(t>0&&e.lastIndexOf(r,t-1)>=0)e.splice(t,1);else for(var n=r.parent;n;n=n.parent)if(e.includes(n)){e.splice(t,1);break}}return e},t.compareDocumentPosition=i,t.uniqueSort=function(e){return(e=e.filter((function(e,t,r){return!r.includes(e,t+1)}))).sort((function(e,t){var r=i(e,t);return 2&r?-1:4&r?1:0})),e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFeed=void 0;var n=r(156),i=r(162);t.getFeed=function(e){var t=c(d,e);return t?"feed"===t.name?function(e){var t,r=e.children,n={type:"atom",items:(0,i.getElementsByTagName)("entry",r).map((function(e){var t,r=e.children,n={media:o(r)};l(n,"id","id",r),l(n,"title","title",r);var i=null===(t=c("link",r))||void 0===t?void 0:t.attribs.href;i&&(n.link=i);var a=u("summary",r)||u("content",r);a&&(n.description=a);var s=u("updated",r);return s&&(n.pubDate=new Date(s)),n}))};l(n,"id","id",r),l(n,"title","title",r);var a=null===(t=c("link",r))||void 0===t?void 0:t.attribs.href;a&&(n.link=a);l(n,"description","subtitle",r);var s=u("updated",r);s&&(n.updated=new Date(s));return l(n,"author","email",r,!0),n}(t):function(e){var t,r,n=null!==(r=null===(t=c("channel",e.children))||void 0===t?void 0:t.children)&&void 0!==r?r:[],a={type:e.name.substr(0,3),id:"",items:(0,i.getElementsByTagName)("item",e.children).map((function(e){var t=e.children,r={media:o(t)};l(r,"id","guid",t),l(r,"title","title",t),l(r,"link","link",t),l(r,"description","description",t);var n=u("pubDate",t);return n&&(r.pubDate=new Date(n)),r}))};l(a,"title","title",n),l(a,"link","link",n),l(a,"description","description",n);var s=u("lastBuildDate",n);s&&(a.updated=new Date(s));return l(a,"author","managingEditor",n,!0),a}(t):null};var a=["url","type","lang"],s=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function o(e){return(0,i.getElementsByTagName)("media:content",e).map((function(e){for(var t=e.attribs,r={medium:t.medium,isDefault:!!t.isDefault},n=0,i=a;n=0){const r=e.slice(t);return this.mediaMappings[r.slice(1)]||""}return""}}t.ActorRdfDereferenceMediaMappings=i},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(378),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ActorRdfParseHtml=void 0;const n=r(3),i=r(54),a=r(379);class s extends i.ActorRdfParseFixedMediaTypes{constructor(e){super(e)}async runHandle(e,t,r){const i=new n.Readable({objectMode:!0});return i._read=async()=>{i._read=()=>{};let t=1;function n(e){i.emit("error",e)}function s(){0==--t&&i.push(null)}const o={baseIRI:e.baseIRI,context:r,emit:function(e){i.emit("data",e)},end:s,error:n,headers:e.headers};Promise.all(this.busRdfParseHtml.publish(o)).then(async r=>{t+=r.length;const i=[];for(const e of r){const{htmlParseListener:t}=await e.actor.run(o);i.push(t)}const c=new a.WritableStream({onclosetag(){try{for(const e of i)e.onTagClose()}catch(e){n(e)}},onend(){try{for(const e of i)e.onEnd()}catch(e){n(e)}s()},onopentag(e,t){try{for(const r of i)r.onTagOpen(e,t)}catch(e){n(e)}},ontext(e){try{for(const t of i)t.onText(e)}catch(e){n(e)}}},{decodeEntities:!0,recognizeSelfClosing:!0,xmlMode:!1});e.input.on("error",n),e.input.pipe(c)}).catch(n)},{quads:i}}}t.ActorRdfParseHtml=s},function(e,t,r){"use strict";var n,i=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.WritableStream=void 0;var a=r(380),s=r(3),o=r(37);var c=function(e){function t(t,r){var n=e.call(this,{decodeStrings:!1})||this;return n._decoder=new o.StringDecoder,n._parser=new a.Parser(t,r),n}return i(t,e),t.prototype._write=function(e,t,r){this._parser.write(function(e,t){return"buffer"===t}(0,t)?this._decoder.write(e):e),r()},t.prototype._final=function(e){this._parser.end(this._decoder.end()),e()},t}(s.Writable);t.WritableStream=c},function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Parser=void 0;var i=n(r(381)),a=new Set(["input","option","optgroup","select","button","datalist","textarea"]),s=new Set(["p"]),o=new Set(["thead","tbody"]),c=new Set(["dd","dt"]),u=new Set(["rt","rp"]),l=new Map([["tr",new Set(["tr","th","td"])],["th",new Set(["th"])],["td",new Set(["thead","th","td"])],["body",new Set(["head","link","script"])],["li",new Set(["li"])],["p",s],["h1",s],["h2",s],["h3",s],["h4",s],["h5",s],["h6",s],["select",a],["input",a],["output",a],["button",a],["datalist",a],["textarea",a],["option",new Set(["option"])],["optgroup",new Set(["optgroup","option"])],["dd",c],["dt",c],["address",s],["article",s],["aside",s],["blockquote",s],["details",s],["div",s],["dl",s],["fieldset",s],["figcaption",s],["figure",s],["footer",s],["form",s],["header",s],["hr",s],["main",s],["nav",s],["ol",s],["pre",s],["section",s],["table",s],["ul",s],["rt",u],["rp",u],["tbody",o],["tfoot",o]]),d=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),p=new Set(["math","svg"]),h=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignobject","desc","title"]),f=/\s|\//,g=function(){function e(e,t){var r,n,a,s,o;void 0===t&&(t={}),this.options=t,this.startIndex=0,this.endIndex=0,this.openTagStart=0,this.tagname="",this.attribname="",this.attribvalue="",this.attribs=null,this.stack=[],this.foreignContext=[],this.cbs=null!=e?e:{},this.lowerCaseTagNames=null!==(r=t.lowerCaseTags)&&void 0!==r?r:!t.xmlMode,this.lowerCaseAttributeNames=null!==(n=t.lowerCaseAttributeNames)&&void 0!==n?n:!t.xmlMode,this.tokenizer=new(null!==(a=t.Tokenizer)&&void 0!==a?a:i.default)(this.options,this),null===(o=(s=this.cbs).onparserinit)||void 0===o||o.call(s,this)}return e.prototype.ontext=function(e){var t,r,n=this.tokenizer.getAbsoluteIndex();this.endIndex=n-1,null===(r=(t=this.cbs).ontext)||void 0===r||r.call(t,e),this.startIndex=n},e.prototype.isVoidElement=function(e){return!this.options.xmlMode&&d.has(e)},e.prototype.onopentagname=function(e){this.endIndex=this.tokenizer.getAbsoluteIndex(),this.lowerCaseTagNames&&(e=e.toLowerCase()),this.emitOpenTag(e)},e.prototype.emitOpenTag=function(e){var t,r,n,i;this.openTagStart=this.startIndex,this.tagname=e;var a=!this.options.xmlMode&&l.get(e);if(a)for(;this.stack.length>0&&a.has(this.stack[this.stack.length-1]);){var s=this.stack.pop();null===(r=(t=this.cbs).onclosetag)||void 0===r||r.call(t,s,!0)}this.isVoidElement(e)||(this.stack.push(e),p.has(e)?this.foreignContext.push(!0):h.has(e)&&this.foreignContext.push(!1)),null===(i=(n=this.cbs).onopentagname)||void 0===i||i.call(n,e),this.cbs.onopentag&&(this.attribs={})},e.prototype.endOpenTag=function(e){var t,r;this.startIndex=this.openTagStart,this.endIndex=this.tokenizer.getAbsoluteIndex(),this.attribs&&(null===(r=(t=this.cbs).onopentag)||void 0===r||r.call(t,this.tagname,this.attribs,e),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""},e.prototype.onopentagend=function(){this.endOpenTag(!1),this.startIndex=this.endIndex+1},e.prototype.onclosetag=function(e){var t,r,n,i,a,s;if(this.endIndex=this.tokenizer.getAbsoluteIndex(),this.lowerCaseTagNames&&(e=e.toLowerCase()),(p.has(e)||h.has(e))&&this.foreignContext.pop(),this.isVoidElement(e))this.options.xmlMode||"br"!==e||(null===(r=(t=this.cbs).onopentagname)||void 0===r||r.call(t,e),null===(i=(n=this.cbs).onopentag)||void 0===i||i.call(n,e,{},!0),null===(s=(a=this.cbs).onclosetag)||void 0===s||s.call(a,e,!1));else{var o=this.stack.lastIndexOf(e);if(-1!==o)if(this.cbs.onclosetag)for(var c=this.stack.length-o;c--;)this.cbs.onclosetag(this.stack.pop(),0!==c);else this.stack.length=o;else this.options.xmlMode||"p"!==e||(this.emitOpenTag(e),this.closeCurrentTag(!0))}this.startIndex=this.endIndex+1},e.prototype.onselfclosingtag=function(){this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?(this.closeCurrentTag(!1),this.startIndex=this.endIndex+1):this.onopentagend()},e.prototype.closeCurrentTag=function(e){var t,r,n=this.tagname;this.endOpenTag(e),this.stack[this.stack.length-1]===n&&(null===(r=(t=this.cbs).onclosetag)||void 0===r||r.call(t,n,!e),this.stack.pop())},e.prototype.onattribname=function(e){this.startIndex=this.tokenizer.getAbsoluteSectionStart(),this.lowerCaseAttributeNames&&(e=e.toLowerCase()),this.attribname=e},e.prototype.onattribdata=function(e){this.attribvalue+=e},e.prototype.onattribend=function(e){var t,r;this.endIndex=this.tokenizer.getAbsoluteIndex(),null===(r=(t=this.cbs).onattribute)||void 0===r||r.call(t,this.attribname,this.attribvalue,e),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribname="",this.attribvalue=""},e.prototype.getInstructionName=function(e){var t=e.search(f),r=t<0?e:e.substr(0,t);return this.lowerCaseTagNames&&(r=r.toLowerCase()),r},e.prototype.ondeclaration=function(e){if(this.endIndex=this.tokenizer.getAbsoluteIndex(),this.cbs.onprocessinginstruction){var t=this.getInstructionName(e);this.cbs.onprocessinginstruction("!"+t,"!"+e)}this.startIndex=this.endIndex+1},e.prototype.onprocessinginstruction=function(e){if(this.endIndex=this.tokenizer.getAbsoluteIndex(),this.cbs.onprocessinginstruction){var t=this.getInstructionName(e);this.cbs.onprocessinginstruction("?"+t,"?"+e)}this.startIndex=this.endIndex+1},e.prototype.oncomment=function(e){var t,r,n,i;this.endIndex=this.tokenizer.getAbsoluteIndex(),null===(r=(t=this.cbs).oncomment)||void 0===r||r.call(t,e),null===(i=(n=this.cbs).oncommentend)||void 0===i||i.call(n),this.startIndex=this.endIndex+1},e.prototype.oncdata=function(e){var t,r,n,i,a,s,o,c,u,l;this.endIndex=this.tokenizer.getAbsoluteIndex(),this.options.xmlMode||this.options.recognizeCDATA?(null===(r=(t=this.cbs).oncdatastart)||void 0===r||r.call(t),null===(i=(n=this.cbs).ontext)||void 0===i||i.call(n,e),null===(s=(a=this.cbs).oncdataend)||void 0===s||s.call(a)):(null===(c=(o=this.cbs).oncomment)||void 0===c||c.call(o,"[CDATA["+e+"]]"),null===(l=(u=this.cbs).oncommentend)||void 0===l||l.call(u)),this.startIndex=this.endIndex+1},e.prototype.onerror=function(e){var t,r;null===(r=(t=this.cbs).onerror)||void 0===r||r.call(t,e)},e.prototype.onend=function(){var e,t;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(var r=this.stack.length;r>0;this.cbs.onclosetag(this.stack[--r],!0));}null===(t=(e=this.cbs).onend)||void 0===t||t.call(e)},e.prototype.reset=function(){var e,t,r,n;null===(t=(e=this.cbs).onreset)||void 0===t||t.call(e),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack=[],this.startIndex=0,this.endIndex=0,null===(n=(r=this.cbs).onparserinit)||void 0===n||n.call(r,this)},e.prototype.parseComplete=function(e){this.reset(),this.end(e)},e.prototype.write=function(e){this.tokenizer.write(e)},e.prototype.end=function(e){this.tokenizer.end(e)},e.prototype.pause=function(){this.tokenizer.pause()},e.prototype.resume=function(){this.tokenizer.resume()},e.prototype.parseChunk=function(e){this.write(e)},e.prototype.done=function(e){this.end(e)},e}();t.Parser=g},function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(r(166)),a=r(382);function s(e){return 32===e||10===e||9===e||12===e||13===e}function o(e){return 47===e||62===e||s(e)}function c(e){return e>=48&&e<=57}var u={Cdata:new Uint16Array([67,68,65,84,65,91]),CdataEnd:new Uint16Array([93,93,62]),CommentEnd:new Uint16Array([45,45,62]),ScriptEnd:new Uint16Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint16Array([60,47,115,116,121,108,101]),TitleEnd:new Uint16Array([60,47,116,105,116,108,101])},l=function(){function e(e,t){var r=e.xmlMode,n=void 0!==r&&r,i=e.decodeEntities,s=void 0===i||i;this.cbs=t,this._state=1,this.buffer="",this.sectionStart=0,this._index=0,this.bufferOffset=0,this.baseState=1,this.isSpecial=!1,this.running=!0,this.ended=!1,this.sequenceIndex=0,this.trieIndex=0,this.trieCurrent=0,this.trieResult=null,this.entityExcess=0,this.xmlMode=n,this.decodeEntities=s,this.entityTrie=n?a.xmlDecodeTree:a.htmlDecodeTree}return e.prototype.reset=function(){this._state=1,this.buffer="",this.sectionStart=0,this._index=0,this.bufferOffset=0,this.baseState=1,this.currentSequence=void 0,this.running=!0,this.ended=!1},e.prototype.write=function(e){if(this.ended)return this.cbs.onerror(Error(".write() after done!"));this.buffer+=e,this.parse()},e.prototype.end=function(e){if(this.ended)return this.cbs.onerror(Error(".end() after done!"));e&&this.write(e),this.ended=!0,this.running&&this.finish()},e.prototype.pause=function(){this.running=!1},e.prototype.resume=function(){this.running=!0,this._indexthis.sectionStart&&this.cbs.ontext(this.getSection()),this._state=2,this.sectionStart=this._index):this.decodeEntities&&38===e&&(this._state=25)},e.prototype.stateSpecialStartSequence=function(e){var t=this.sequenceIndex===this.currentSequence.length;if(t?o(e):(32|e)===this.currentSequence[this.sequenceIndex]){if(!t)return void this.sequenceIndex++}else this.isSpecial=!1;this.sequenceIndex=0,this._state=3,this.stateInTagName(e)},e.prototype.stateInSpecialTag=function(e){if(this.sequenceIndex===this.currentSequence.length){if(62===e||s(e)){var t=this._index-this.currentSequence.length;if(this.sectionStart=97&&e<=122||e>=65&&e<=90}(e)},e.prototype.startSpecial=function(e,t){this.isSpecial=!0,this.currentSequence=e,this.sequenceIndex=t,this._state=23},e.prototype.stateBeforeTagName=function(e){if(33===e)this._state=15,this.sectionStart=this._index+1;else if(63===e)this._state=17,this.sectionStart=this._index+1;else if(this.isTagStartChar(e)){var t=32|e;this.sectionStart=this._index,this.xmlMode||t!==u.TitleEnd[2]?this._state=this.xmlMode||t!==u.ScriptEnd[2]?3:22:this.startSpecial(u.TitleEnd,3)}else 47===e?this._state=5:(this._state=1,this.stateText(e))},e.prototype.stateInTagName=function(e){o(e)&&(this.cbs.onopentagname(this.getSection()),this.sectionStart=-1,this._state=8,this.stateBeforeAttributeName(e))},e.prototype.stateBeforeClosingTagName=function(e){s(e)||(62===e?this._state=1:(this._state=this.isTagStartChar(e)?6:20,this.sectionStart=this._index))},e.prototype.stateInClosingTagName=function(e){(62===e||s(e))&&(this.cbs.onclosetag(this.getSection()),this.sectionStart=-1,this._state=7,this.stateAfterClosingTagName(e))},e.prototype.stateAfterClosingTagName=function(e){(62===e||this.fastForwardTo(62))&&(this._state=1,this.sectionStart=this._index+1)},e.prototype.stateBeforeAttributeName=function(e){62===e?(this.cbs.onopentagend(),this.isSpecial?(this._state=24,this.sequenceIndex=0):this._state=1,this.baseState=this._state,this.sectionStart=this._index+1):47===e?this._state=4:s(e)||(this._state=9,this.sectionStart=this._index)},e.prototype.stateInSelfClosingTag=function(e){62===e?(this.cbs.onselfclosingtag(),this._state=1,this.baseState=1,this.sectionStart=this._index+1,this.isSpecial=!1):s(e)||(this._state=8,this.stateBeforeAttributeName(e))},e.prototype.stateInAttributeName=function(e){(61===e||o(e))&&(this.cbs.onattribname(this.getSection()),this.sectionStart=-1,this._state=10,this.stateAfterAttributeName(e))},e.prototype.stateAfterAttributeName=function(e){61===e?this._state=11:47===e||62===e?(this.cbs.onattribend(void 0),this._state=8,this.stateBeforeAttributeName(e)):s(e)||(this.cbs.onattribend(void 0),this._state=9,this.sectionStart=this._index)},e.prototype.stateBeforeAttributeValue=function(e){34===e?(this._state=12,this.sectionStart=this._index+1):39===e?(this._state=13,this.sectionStart=this._index+1):s(e)||(this.sectionStart=this._index,this._state=14,this.stateInAttributeValueNoQuotes(e))},e.prototype.handleInAttributeValue=function(e,t){e===t||!this.decodeEntities&&this.fastForwardTo(t)?(this.cbs.onattribdata(this.getSection()),this.sectionStart=-1,this.cbs.onattribend(String.fromCharCode(t)),this._state=8):this.decodeEntities&&38===e&&(this.baseState=this._state,this._state=25)},e.prototype.stateInAttributeValueDoubleQuotes=function(e){this.handleInAttributeValue(e,34)},e.prototype.stateInAttributeValueSingleQuotes=function(e){this.handleInAttributeValue(e,39)},e.prototype.stateInAttributeValueNoQuotes=function(e){s(e)||62===e?(this.cbs.onattribdata(this.getSection()),this.sectionStart=-1,this.cbs.onattribend(null),this._state=8,this.stateBeforeAttributeName(e)):this.decodeEntities&&38===e&&(this.baseState=this._state,this._state=25)},e.prototype.stateBeforeDeclaration=function(e){91===e?(this._state=19,this.sequenceIndex=0):this._state=45===e?18:16},e.prototype.stateInDeclaration=function(e){(62===e||this.fastForwardTo(62))&&(this.cbs.ondeclaration(this.getSection()),this._state=1,this.sectionStart=this._index+1)},e.prototype.stateInProcessingInstruction=function(e){(62===e||this.fastForwardTo(62))&&(this.cbs.onprocessinginstruction(this.getSection()),this._state=1,this.sectionStart=this._index+1)},e.prototype.stateBeforeComment=function(e){45===e?(this._state=21,this.currentSequence=u.CommentEnd,this.sequenceIndex=2,this.sectionStart=this._index+1):this._state=16},e.prototype.stateInSpecialComment=function(e){(62===e||this.fastForwardTo(62))&&(this.cbs.oncomment(this.getSection()),this._state=1,this.sectionStart=this._index+1)},e.prototype.stateBeforeSpecialS=function(e){var t=32|e;t===u.ScriptEnd[3]?this.startSpecial(u.ScriptEnd,4):t===u.StyleEnd[3]?this.startSpecial(u.StyleEnd,4):(this._state=3,this.stateInTagName(e))},e.prototype.stateBeforeEntity=function(e){this.entityExcess=1,35===e?this._state=26:38===e||(this.trieIndex=0,this.trieCurrent=this.entityTrie[0],this.trieResult=null,this._state=27,this.stateInNamedEntity(e))},e.prototype.stateInNamedEntity=function(e){if(this.entityExcess+=1,this.trieIndex=(0,a.determineBranch)(this.entityTrie,this.trieCurrent,this.trieIndex+1,e),this.trieIndex<0)return this.emitNamedEntity(),void this._index--;if(this.trieCurrent=this.entityTrie[this.trieIndex],this.trieCurrent&a.BinTrieFlags.HAS_VALUE)if(this.allowLegacyEntity()||59===e){var t=this._index-this.entityExcess+1;t>this.sectionStart&&this.emitPartial(this.buffer.substring(this.sectionStart,t)),this.trieResult=this.trieCurrent&a.BinTrieFlags.MULTI_BYTE?String.fromCharCode(this.entityTrie[++this.trieIndex],this.entityTrie[++this.trieIndex]):String.fromCharCode(this.entityTrie[++this.trieIndex]),this.entityExcess=0,this.sectionStart=this._index+1}else this.trieIndex+=1},e.prototype.emitNamedEntity=function(){this.trieResult&&this.emitPartial(this.trieResult),this._state=this.baseState},e.prototype.stateBeforeNumericEntity=function(e){120==(32|e)?(this.entityExcess++,this._state=29):(this._state=28,this.stateInNumericEntity(e))},e.prototype.decodeNumericEntity=function(e,t){var r=this._index-this.entityExcess-1,n=r+2+(e>>4);if(n!==this._index){r>this.sectionStart&&this.emitPartial(this.buffer.substring(this.sectionStart,r));var a=this.buffer.substring(n,this._index),s=parseInt(a,e);this.emitPartial((0,i.default)(s)),this.sectionStart=this._index+Number(t)}this._state=this.baseState},e.prototype.stateInNumericEntity=function(e){59===e?this.decodeNumericEntity(10,!0):c(e)?this.entityExcess++:(this.allowLegacyEntity()?this.decodeNumericEntity(10,!1):this._state=this.baseState,this._index--)},e.prototype.stateInHexEntity=function(e){59===e?this.decodeNumericEntity(16,!0):(e<97||e>102)&&(e<65||e>70)&&!c(e)?(this.allowLegacyEntity()?this.decodeNumericEntity(16,!1):this._state=this.baseState,this._index--):this.entityExcess++},e.prototype.allowLegacyEntity=function(){return!this.xmlMode&&(1===this.baseState||24===this.baseState)},e.prototype.cleanup=function(){this.running&&this.sectionStart!==this._index&&(1===this._state||24===this._state&&0===this.sequenceIndex)&&(this.cbs.ontext(this.buffer.substr(this.sectionStart)),this.sectionStart=this._index);var e=this.sectionStart<0?this._index:this.sectionStart;this.buffer=e===this.buffer.length?"":this.buffer.substr(e),this._index-=e,this.bufferOffset+=e,this.sectionStart>0&&(this.sectionStart=0)},e.prototype.shouldContinue=function(){return this._index=0;)if(n+=t.slice(i,a),i=a,a+=1,35!==t.charCodeAt(a)){for(var c=null,l=1,d=0,p=e[d];a=48&&g<=57||16===f&&(32|g)>=97&&(32|g)<=102;);if(h!==a){var m=t.substring(h,a),y=parseInt(m,f);if(59===t.charCodeAt(a))a+=1;else if(r)continue;n+=o.default(y),i=a}}return n+t.slice(i)}}function u(e,r,n,i){if(r<=128)return i===r?n:-1;var a=(r&s.BRANCH_LENGTH)>>8;if(0===a)return-1;if(1===a)return i===e[n]?n+1:-1;var o=r&s.JUMP_TABLE;if(o){var c=i-t.JUMP_OFFSET_BASE-o;return c<0||c>a?-1:e[n+c]-1}for(var u=n,l=u+a-1;u<=l;){var d=u+l>>>1,p=e[d];if(pi))return e[d+a];l=d-1}}return-1}!function(e){e[e.HAS_VALUE=32768]="HAS_VALUE",e[e.BRANCH_LENGTH=32512]="BRANCH_LENGTH",e[e.MULTI_BYTE=128]="MULTI_BYTE",e[e.JUMP_TABLE=127]="JUMP_TABLE"}(s=t.BinTrieFlags||(t.BinTrieFlags={})),t.JUMP_OFFSET_BASE=47,t.determineBranch=u;var l=c(i.default),d=c(a.default);t.decodeHTML=function(e){return l(e,!1)},t.decodeHTMLStrict=function(e){return l(e,!0)},t.decodeXML=function(e){return d(e,!0)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=new Uint16Array([14866,60,237,340,721,1312,1562,1654,1838,1957,2183,2239,2301,2958,3037,3893,4123,4298,4330,4801,5191,5395,5752,5903,5943,5972,6050,0,0,0,0,0,0,6135,6565,7422,8183,8738,9242,9503,9938,10189,10573,10637,10715,11950,12246,13539,13950,14445,14533,15364,16514,16980,17390,17763,17849,18036,18125,4096,69,77,97,98,99,102,103,108,109,110,111,112,114,115,116,117,92,100,106,115,122,137,142,151,157,163,167,182,196,204,220,229,108,105,103,33024,198,59,32768,198,80,33024,38,59,32768,38,99,117,116,101,33024,193,59,32768,193,114,101,118,101,59,32768,258,512,105,121,127,134,114,99,33024,194,59,32768,194,59,32768,1040,114,59,32896,55349,56580,114,97,118,101,33024,192,59,32768,192,112,104,97,59,32768,913,97,99,114,59,32768,256,100,59,32768,10835,512,103,112,172,177,111,110,59,32768,260,102,59,32896,55349,56632,112,108,121,70,117,110,99,116,105,111,110,59,32768,8289,105,110,103,33024,197,59,32768,197,512,99,115,209,214,114,59,32896,55349,56476,105,103,110,59,32768,8788,105,108,100,101,33024,195,59,32768,195,109,108,33024,196,59,32768,196,2048,97,99,101,102,111,114,115,117,253,278,282,310,315,321,327,332,512,99,114,258,267,107,115,108,97,115,104,59,32768,8726,583,271,274,59,32768,10983,101,100,59,32768,8966,121,59,32768,1041,768,99,114,116,289,296,306,97,117,115,101,59,32768,8757,110,111,117,108,108,105,115,59,32768,8492,97,59,32768,914,114,59,32896,55349,56581,112,102,59,32896,55349,56633,101,118,101,59,32768,728,99,114,59,32768,8492,109,112,101,113,59,32768,8782,3584,72,79,97,99,100,101,102,104,105,108,111,114,115,117,368,373,380,426,461,466,487,491,495,533,593,695,701,707,99,121,59,32768,1063,80,89,33024,169,59,32768,169,768,99,112,121,387,393,419,117,116,101,59,32768,262,512,59,105,398,400,32768,8914,116,97,108,68,105,102,102,101,114,101,110,116,105,97,108,68,59,32768,8517,108,101,121,115,59,32768,8493,1024,97,101,105,111,435,441,449,454,114,111,110,59,32768,268,100,105,108,33024,199,59,32768,199,114,99,59,32768,264,110,105,110,116,59,32768,8752,111,116,59,32768,266,512,100,110,471,478,105,108,108,97,59,32768,184,116,101,114,68,111,116,59,32768,183,114,59,32768,8493,105,59,32768,935,114,99,108,101,1024,68,77,80,84,508,513,520,526,111,116,59,32768,8857,105,110,117,115,59,32768,8854,108,117,115,59,32768,8853,105,109,101,115,59,32768,8855,111,512,99,115,539,562,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,32768,8754,101,67,117,114,108,121,512,68,81,573,586,111,117,98,108,101,81,117,111,116,101,59,32768,8221,117,111,116,101,59,32768,8217,1024,108,110,112,117,602,614,648,664,111,110,512,59,101,609,611,32768,8759,59,32768,10868,768,103,105,116,621,629,634,114,117,101,110,116,59,32768,8801,110,116,59,32768,8751,111,117,114,73,110,116,101,103,114,97,108,59,32768,8750,512,102,114,653,656,59,32768,8450,111,100,117,99,116,59,32768,8720,110,116,101,114,67,108,111,99,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,32768,8755,111,115,115,59,32768,10799,99,114,59,32896,55349,56478,112,512,59,67,713,715,32768,8915,97,112,59,32768,8781,2816,68,74,83,90,97,99,101,102,105,111,115,743,758,763,768,773,795,809,821,826,910,1295,512,59,111,748,750,32768,8517,116,114,97,104,100,59,32768,10513,99,121,59,32768,1026,99,121,59,32768,1029,99,121,59,32768,1039,768,103,114,115,780,786,790,103,101,114,59,32768,8225,114,59,32768,8609,104,118,59,32768,10980,512,97,121,800,806,114,111,110,59,32768,270,59,32768,1044,108,512,59,116,815,817,32768,8711,97,59,32768,916,114,59,32896,55349,56583,512,97,102,831,897,512,99,109,836,891,114,105,116,105,99,97,108,1024,65,68,71,84,852,859,877,884,99,117,116,101,59,32768,180,111,581,864,867,59,32768,729,98,108,101,65,99,117,116,101,59,32768,733,114,97,118,101,59,32768,96,105,108,100,101,59,32768,732,111,110,100,59,32768,8900,102,101,114,101,110,116,105,97,108,68,59,32768,8518,2113,920,0,0,0,925,946,0,1139,102,59,32896,55349,56635,768,59,68,69,931,933,938,32768,168,111,116,59,32768,8412,113,117,97,108,59,32768,8784,98,108,101,1536,67,68,76,82,85,86,961,978,996,1080,1101,1125,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,32768,8751,111,1093,985,0,0,988,59,32768,168,110,65,114,114,111,119,59,32768,8659,512,101,111,1001,1034,102,116,768,65,82,84,1010,1017,1029,114,114,111,119,59,32768,8656,105,103,104,116,65,114,114,111,119,59,32768,8660,101,101,59,32768,10980,110,103,512,76,82,1041,1068,101,102,116,512,65,82,1049,1056,114,114,111,119,59,32768,10232,105,103,104,116,65,114,114,111,119,59,32768,10234,105,103,104,116,65,114,114,111,119,59,32768,10233,105,103,104,116,512,65,84,1089,1096,114,114,111,119,59,32768,8658,101,101,59,32768,8872,112,1042,1108,0,0,1115,114,114,111,119,59,32768,8657,111,119,110,65,114,114,111,119,59,32768,8661,101,114,116,105,99,97,108,66,97,114,59,32768,8741,110,1536,65,66,76,82,84,97,1152,1179,1186,1236,1272,1288,114,114,111,119,768,59,66,85,1163,1165,1170,32768,8595,97,114,59,32768,10515,112,65,114,114,111,119,59,32768,8693,114,101,118,101,59,32768,785,101,102,116,1315,1196,0,1209,0,1220,105,103,104,116,86,101,99,116,111,114,59,32768,10576,101,101,86,101,99,116,111,114,59,32768,10590,101,99,116,111,114,512,59,66,1229,1231,32768,8637,97,114,59,32768,10582,105,103,104,116,805,1245,0,1256,101,101,86,101,99,116,111,114,59,32768,10591,101,99,116,111,114,512,59,66,1265,1267,32768,8641,97,114,59,32768,10583,101,101,512,59,65,1279,1281,32768,8868,114,114,111,119,59,32768,8615,114,114,111,119,59,32768,8659,512,99,116,1300,1305,114,59,32896,55349,56479,114,111,107,59,32768,272,4096,78,84,97,99,100,102,103,108,109,111,112,113,115,116,117,120,1344,1348,1354,1363,1386,1391,1396,1405,1413,1460,1475,1483,1514,1527,1531,1538,71,59,32768,330,72,33024,208,59,32768,208,99,117,116,101,33024,201,59,32768,201,768,97,105,121,1370,1376,1383,114,111,110,59,32768,282,114,99,33024,202,59,32768,202,59,32768,1069,111,116,59,32768,278,114,59,32896,55349,56584,114,97,118,101,33024,200,59,32768,200,101,109,101,110,116,59,32768,8712,512,97,112,1418,1423,99,114,59,32768,274,116,121,1060,1431,0,0,1444,109,97,108,108,83,113,117,97,114,101,59,32768,9723,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,32768,9643,512,103,112,1465,1470,111,110,59,32768,280,102,59,32896,55349,56636,115,105,108,111,110,59,32768,917,117,512,97,105,1489,1504,108,512,59,84,1495,1497,32768,10869,105,108,100,101,59,32768,8770,108,105,98,114,105,117,109,59,32768,8652,512,99,105,1519,1523,114,59,32768,8496,109,59,32768,10867,97,59,32768,919,109,108,33024,203,59,32768,203,512,105,112,1543,1549,115,116,115,59,32768,8707,111,110,101,110,116,105,97,108,69,59,32768,8519,1280,99,102,105,111,115,1572,1576,1581,1620,1648,121,59,32768,1060,114,59,32896,55349,56585,108,108,101,100,1060,1591,0,0,1604,109,97,108,108,83,113,117,97,114,101,59,32768,9724,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,32768,9642,1601,1628,0,1633,0,0,1639,102,59,32896,55349,56637,65,108,108,59,32768,8704,114,105,101,114,116,114,102,59,32768,8497,99,114,59,32768,8497,3072,74,84,97,98,99,100,102,103,111,114,115,116,1678,1683,1688,1701,1708,1729,1734,1739,1742,1748,1828,1834,99,121,59,32768,1027,33024,62,59,32768,62,109,109,97,512,59,100,1696,1698,32768,915,59,32768,988,114,101,118,101,59,32768,286,768,101,105,121,1715,1721,1726,100,105,108,59,32768,290,114,99,59,32768,284,59,32768,1043,111,116,59,32768,288,114,59,32896,55349,56586,59,32768,8921,112,102,59,32896,55349,56638,101,97,116,101,114,1536,69,70,71,76,83,84,1766,1783,1794,1803,1809,1821,113,117,97,108,512,59,76,1775,1777,32768,8805,101,115,115,59,32768,8923,117,108,108,69,113,117,97,108,59,32768,8807,114,101,97,116,101,114,59,32768,10914,101,115,115,59,32768,8823,108,97,110,116,69,113,117,97,108,59,32768,10878,105,108,100,101,59,32768,8819,99,114,59,32896,55349,56482,59,32768,8811,2048,65,97,99,102,105,111,115,117,1854,1861,1874,1880,1884,1897,1919,1934,82,68,99,121,59,32768,1066,512,99,116,1866,1871,101,107,59,32768,711,59,32768,94,105,114,99,59,32768,292,114,59,32768,8460,108,98,101,114,116,83,112,97,99,101,59,32768,8459,833,1902,0,1906,102,59,32768,8461,105,122,111,110,116,97,108,76,105,110,101,59,32768,9472,512,99,116,1924,1928,114,59,32768,8459,114,111,107,59,32768,294,109,112,533,1940,1950,111,119,110,72,117,109,112,59,32768,8782,113,117,97,108,59,32768,8783,3584,69,74,79,97,99,100,102,103,109,110,111,115,116,117,1985,1990,1996,2001,2010,2025,2030,2034,2043,2077,2134,2155,2160,2167,99,121,59,32768,1045,108,105,103,59,32768,306,99,121,59,32768,1025,99,117,116,101,33024,205,59,32768,205,512,105,121,2015,2022,114,99,33024,206,59,32768,206,59,32768,1048,111,116,59,32768,304,114,59,32768,8465,114,97,118,101,33024,204,59,32768,204,768,59,97,112,2050,2052,2070,32768,8465,512,99,103,2057,2061,114,59,32768,298,105,110,97,114,121,73,59,32768,8520,108,105,101,115,59,32768,8658,837,2082,0,2110,512,59,101,2086,2088,32768,8748,512,103,114,2093,2099,114,97,108,59,32768,8747,115,101,99,116,105,111,110,59,32768,8898,105,115,105,98,108,101,512,67,84,2120,2127,111,109,109,97,59,32768,8291,105,109,101,115,59,32768,8290,768,103,112,116,2141,2146,2151,111,110,59,32768,302,102,59,32896,55349,56640,97,59,32768,921,99,114,59,32768,8464,105,108,100,101,59,32768,296,828,2172,0,2177,99,121,59,32768,1030,108,33024,207,59,32768,207,1280,99,102,111,115,117,2193,2206,2211,2217,2232,512,105,121,2198,2203,114,99,59,32768,308,59,32768,1049,114,59,32896,55349,56589,112,102,59,32896,55349,56641,820,2222,0,2227,114,59,32896,55349,56485,114,99,121,59,32768,1032,107,99,121,59,32768,1028,1792,72,74,97,99,102,111,115,2253,2258,2263,2269,2283,2288,2294,99,121,59,32768,1061,99,121,59,32768,1036,112,112,97,59,32768,922,512,101,121,2274,2280,100,105,108,59,32768,310,59,32768,1050,114,59,32896,55349,56590,112,102,59,32896,55349,56642,99,114,59,32896,55349,56486,2816,74,84,97,99,101,102,108,109,111,115,116,2323,2328,2333,2374,2396,2775,2780,2797,2804,2934,2954,99,121,59,32768,1033,33024,60,59,32768,60,1280,99,109,110,112,114,2344,2350,2356,2360,2370,117,116,101,59,32768,313,98,100,97,59,32768,923,103,59,32768,10218,108,97,99,101,116,114,102,59,32768,8466,114,59,32768,8606,768,97,101,121,2381,2387,2393,114,111,110,59,32768,317,100,105,108,59,32768,315,59,32768,1051,512,102,115,2401,2702,116,2560,65,67,68,70,82,84,85,86,97,114,2423,2470,2479,2530,2537,2561,2618,2666,2683,2690,512,110,114,2428,2441,103,108,101,66,114,97,99,107,101,116,59,32768,10216,114,111,119,768,59,66,82,2451,2453,2458,32768,8592,97,114,59,32768,8676,105,103,104,116,65,114,114,111,119,59,32768,8646,101,105,108,105,110,103,59,32768,8968,111,838,2485,0,2498,98,108,101,66,114,97,99,107,101,116,59,32768,10214,110,805,2503,0,2514,101,101,86,101,99,116,111,114,59,32768,10593,101,99,116,111,114,512,59,66,2523,2525,32768,8643,97,114,59,32768,10585,108,111,111,114,59,32768,8970,105,103,104,116,512,65,86,2546,2553,114,114,111,119,59,32768,8596,101,99,116,111,114,59,32768,10574,512,101,114,2566,2591,101,768,59,65,86,2574,2576,2583,32768,8867,114,114,111,119,59,32768,8612,101,99,116,111,114,59,32768,10586,105,97,110,103,108,101,768,59,66,69,2604,2606,2611,32768,8882,97,114,59,32768,10703,113,117,97,108,59,32768,8884,112,768,68,84,86,2626,2638,2649,111,119,110,86,101,99,116,111,114,59,32768,10577,101,101,86,101,99,116,111,114,59,32768,10592,101,99,116,111,114,512,59,66,2659,2661,32768,8639,97,114,59,32768,10584,101,99,116,111,114,512,59,66,2676,2678,32768,8636,97,114,59,32768,10578,114,114,111,119,59,32768,8656,105,103,104,116,97,114,114,111,119,59,32768,8660,115,1536,69,70,71,76,83,84,2716,2730,2741,2750,2756,2768,113,117,97,108,71,114,101,97,116,101,114,59,32768,8922,117,108,108,69,113,117,97,108,59,32768,8806,114,101,97,116,101,114,59,32768,8822,101,115,115,59,32768,10913,108,97,110,116,69,113,117,97,108,59,32768,10877,105,108,100,101,59,32768,8818,114,59,32896,55349,56591,512,59,101,2785,2787,32768,8920,102,116,97,114,114,111,119,59,32768,8666,105,100,111,116,59,32768,319,768,110,112,119,2811,2899,2904,103,1024,76,82,108,114,2821,2848,2860,2887,101,102,116,512,65,82,2829,2836,114,114,111,119,59,32768,10229,105,103,104,116,65,114,114,111,119,59,32768,10231,105,103,104,116,65,114,114,111,119,59,32768,10230,101,102,116,512,97,114,2868,2875,114,114,111,119,59,32768,10232,105,103,104,116,97,114,114,111,119,59,32768,10234,105,103,104,116,97,114,114,111,119,59,32768,10233,102,59,32896,55349,56643,101,114,512,76,82,2911,2922,101,102,116,65,114,114,111,119,59,32768,8601,105,103,104,116,65,114,114,111,119,59,32768,8600,768,99,104,116,2941,2945,2948,114,59,32768,8466,59,32768,8624,114,111,107,59,32768,321,59,32768,8810,2048,97,99,101,102,105,111,115,117,2974,2978,2982,3007,3012,3022,3028,3033,112,59,32768,10501,121,59,32768,1052,512,100,108,2987,2998,105,117,109,83,112,97,99,101,59,32768,8287,108,105,110,116,114,102,59,32768,8499,114,59,32896,55349,56592,110,117,115,80,108,117,115,59,32768,8723,112,102,59,32896,55349,56644,99,114,59,32768,8499,59,32768,924,2304,74,97,99,101,102,111,115,116,117,3055,3060,3067,3089,3201,3206,3874,3880,3889,99,121,59,32768,1034,99,117,116,101,59,32768,323,768,97,101,121,3074,3080,3086,114,111,110,59,32768,327,100,105,108,59,32768,325,59,32768,1053,768,103,115,119,3096,3160,3194,97,116,105,118,101,768,77,84,86,3108,3121,3145,101,100,105,117,109,83,112,97,99,101,59,32768,8203,104,105,512,99,110,3128,3137,107,83,112,97,99,101,59,32768,8203,83,112,97,99,101,59,32768,8203,101,114,121,84,104,105,110,83,112,97,99,101,59,32768,8203,116,101,100,512,71,76,3168,3184,114,101,97,116,101,114,71,114,101,97,116,101,114,59,32768,8811,101,115,115,76,101,115,115,59,32768,8810,76,105,110,101,59,32768,10,114,59,32896,55349,56593,1024,66,110,112,116,3215,3222,3238,3242,114,101,97,107,59,32768,8288,66,114,101,97,107,105,110,103,83,112,97,99,101,59,32768,160,102,59,32768,8469,3328,59,67,68,69,71,72,76,78,80,82,83,84,86,3269,3271,3293,3312,3352,3430,3455,3551,3589,3625,3678,3821,3861,32768,10988,512,111,117,3276,3286,110,103,114,117,101,110,116,59,32768,8802,112,67,97,112,59,32768,8813,111,117,98,108,101,86,101,114,116,105,99,97,108,66,97,114,59,32768,8742,768,108,113,120,3319,3327,3345,101,109,101,110,116,59,32768,8713,117,97,108,512,59,84,3335,3337,32768,8800,105,108,100,101,59,32896,8770,824,105,115,116,115,59,32768,8708,114,101,97,116,101,114,1792,59,69,70,71,76,83,84,3373,3375,3382,3394,3404,3410,3423,32768,8815,113,117,97,108,59,32768,8817,117,108,108,69,113,117,97,108,59,32896,8807,824,114,101,97,116,101,114,59,32896,8811,824,101,115,115,59,32768,8825,108,97,110,116,69,113,117,97,108,59,32896,10878,824,105,108,100,101,59,32768,8821,117,109,112,533,3437,3448,111,119,110,72,117,109,112,59,32896,8782,824,113,117,97,108,59,32896,8783,824,101,512,102,115,3461,3492,116,84,114,105,97,110,103,108,101,768,59,66,69,3477,3479,3485,32768,8938,97,114,59,32896,10703,824,113,117,97,108,59,32768,8940,115,1536,59,69,71,76,83,84,3506,3508,3515,3524,3531,3544,32768,8814,113,117,97,108,59,32768,8816,114,101,97,116,101,114,59,32768,8824,101,115,115,59,32896,8810,824,108,97,110,116,69,113,117,97,108,59,32896,10877,824,105,108,100,101,59,32768,8820,101,115,116,101,100,512,71,76,3561,3578,114,101,97,116,101,114,71,114,101,97,116,101,114,59,32896,10914,824,101,115,115,76,101,115,115,59,32896,10913,824,114,101,99,101,100,101,115,768,59,69,83,3603,3605,3613,32768,8832,113,117,97,108,59,32896,10927,824,108,97,110,116,69,113,117,97,108,59,32768,8928,512,101,105,3630,3645,118,101,114,115,101,69,108,101,109,101,110,116,59,32768,8716,103,104,116,84,114,105,97,110,103,108,101,768,59,66,69,3663,3665,3671,32768,8939,97,114,59,32896,10704,824,113,117,97,108,59,32768,8941,512,113,117,3683,3732,117,97,114,101,83,117,512,98,112,3694,3712,115,101,116,512,59,69,3702,3705,32896,8847,824,113,117,97,108,59,32768,8930,101,114,115,101,116,512,59,69,3722,3725,32896,8848,824,113,117,97,108,59,32768,8931,768,98,99,112,3739,3757,3801,115,101,116,512,59,69,3747,3750,32896,8834,8402,113,117,97,108,59,32768,8840,99,101,101,100,115,1024,59,69,83,84,3771,3773,3781,3793,32768,8833,113,117,97,108,59,32896,10928,824,108,97,110,116,69,113,117,97,108,59,32768,8929,105,108,100,101,59,32896,8831,824,101,114,115,101,116,512,59,69,3811,3814,32896,8835,8402,113,117,97,108,59,32768,8841,105,108,100,101,1024,59,69,70,84,3834,3836,3843,3854,32768,8769,113,117,97,108,59,32768,8772,117,108,108,69,113,117,97,108,59,32768,8775,105,108,100,101,59,32768,8777,101,114,116,105,99,97,108,66,97,114,59,32768,8740,99,114,59,32896,55349,56489,105,108,100,101,33024,209,59,32768,209,59,32768,925,3584,69,97,99,100,102,103,109,111,112,114,115,116,117,118,3921,3927,3936,3951,3958,3963,3972,3996,4002,4034,4037,4055,4071,4078,108,105,103,59,32768,338,99,117,116,101,33024,211,59,32768,211,512,105,121,3941,3948,114,99,33024,212,59,32768,212,59,32768,1054,98,108,97,99,59,32768,336,114,59,32896,55349,56594,114,97,118,101,33024,210,59,32768,210,768,97,101,105,3979,3984,3989,99,114,59,32768,332,103,97,59,32768,937,99,114,111,110,59,32768,927,112,102,59,32896,55349,56646,101,110,67,117,114,108,121,512,68,81,4014,4027,111,117,98,108,101,81,117,111,116,101,59,32768,8220,117,111,116,101,59,32768,8216,59,32768,10836,512,99,108,4042,4047,114,59,32896,55349,56490,97,115,104,33024,216,59,32768,216,105,573,4060,4067,100,101,33024,213,59,32768,213,101,115,59,32768,10807,109,108,33024,214,59,32768,214,101,114,512,66,80,4085,4109,512,97,114,4090,4094,114,59,32768,8254,97,99,512,101,107,4101,4104,59,32768,9182,101,116,59,32768,9140,97,114,101,110,116,104,101,115,105,115,59,32768,9180,2304,97,99,102,104,105,108,111,114,115,4141,4150,4154,4159,4163,4166,4176,4198,4284,114,116,105,97,108,68,59,32768,8706,121,59,32768,1055,114,59,32896,55349,56595,105,59,32768,934,59,32768,928,117,115,77,105,110,117,115,59,32768,177,512,105,112,4181,4194,110,99,97,114,101,112,108,97,110,101,59,32768,8460,102,59,32768,8473,1024,59,101,105,111,4207,4209,4251,4256,32768,10939,99,101,100,101,115,1024,59,69,83,84,4223,4225,4232,4244,32768,8826,113,117,97,108,59,32768,10927,108,97,110,116,69,113,117,97,108,59,32768,8828,105,108,100,101,59,32768,8830,109,101,59,32768,8243,512,100,112,4261,4267,117,99,116,59,32768,8719,111,114,116,105,111,110,512,59,97,4278,4280,32768,8759,108,59,32768,8733,512,99,105,4289,4294,114,59,32896,55349,56491,59,32768,936,1024,85,102,111,115,4306,4313,4318,4323,79,84,33024,34,59,32768,34,114,59,32896,55349,56596,112,102,59,32768,8474,99,114,59,32896,55349,56492,3072,66,69,97,99,101,102,104,105,111,114,115,117,4354,4360,4366,4395,4417,4473,4477,4481,4743,4764,4776,4788,97,114,114,59,32768,10512,71,33024,174,59,32768,174,768,99,110,114,4373,4379,4383,117,116,101,59,32768,340,103,59,32768,10219,114,512,59,116,4389,4391,32768,8608,108,59,32768,10518,768,97,101,121,4402,4408,4414,114,111,110,59,32768,344,100,105,108,59,32768,342,59,32768,1056,512,59,118,4422,4424,32768,8476,101,114,115,101,512,69,85,4433,4458,512,108,113,4438,4446,101,109,101,110,116,59,32768,8715,117,105,108,105,98,114,105,117,109,59,32768,8651,112,69,113,117,105,108,105,98,114,105,117,109,59,32768,10607,114,59,32768,8476,111,59,32768,929,103,104,116,2048,65,67,68,70,84,85,86,97,4501,4547,4556,4607,4614,4671,4719,4736,512,110,114,4506,4519,103,108,101,66,114,97,99,107,101,116,59,32768,10217,114,111,119,768,59,66,76,4529,4531,4536,32768,8594,97,114,59,32768,8677,101,102,116,65,114,114,111,119,59,32768,8644,101,105,108,105,110,103,59,32768,8969,111,838,4562,0,4575,98,108,101,66,114,97,99,107,101,116,59,32768,10215,110,805,4580,0,4591,101,101,86,101,99,116,111,114,59,32768,10589,101,99,116,111,114,512,59,66,4600,4602,32768,8642,97,114,59,32768,10581,108,111,111,114,59,32768,8971,512,101,114,4619,4644,101,768,59,65,86,4627,4629,4636,32768,8866,114,114,111,119,59,32768,8614,101,99,116,111,114,59,32768,10587,105,97,110,103,108,101,768,59,66,69,4657,4659,4664,32768,8883,97,114,59,32768,10704,113,117,97,108,59,32768,8885,112,768,68,84,86,4679,4691,4702,111,119,110,86,101,99,116,111,114,59,32768,10575,101,101,86,101,99,116,111,114,59,32768,10588,101,99,116,111,114,512,59,66,4712,4714,32768,8638,97,114,59,32768,10580,101,99,116,111,114,512,59,66,4729,4731,32768,8640,97,114,59,32768,10579,114,114,111,119,59,32768,8658,512,112,117,4748,4752,102,59,32768,8477,110,100,73,109,112,108,105,101,115,59,32768,10608,105,103,104,116,97,114,114,111,119,59,32768,8667,512,99,104,4781,4785,114,59,32768,8475,59,32768,8625,108,101,68,101,108,97,121,101,100,59,32768,10740,3328,72,79,97,99,102,104,105,109,111,113,115,116,117,4827,4842,4849,4856,4889,4894,4949,4955,4967,4973,5059,5065,5070,512,67,99,4832,4838,72,99,121,59,32768,1065,121,59,32768,1064,70,84,99,121,59,32768,1068,99,117,116,101,59,32768,346,1280,59,97,101,105,121,4867,4869,4875,4881,4886,32768,10940,114,111,110,59,32768,352,100,105,108,59,32768,350,114,99,59,32768,348,59,32768,1057,114,59,32896,55349,56598,111,114,116,1024,68,76,82,85,4906,4917,4928,4940,111,119,110,65,114,114,111,119,59,32768,8595,101,102,116,65,114,114,111,119,59,32768,8592,105,103,104,116,65,114,114,111,119,59,32768,8594,112,65,114,114,111,119,59,32768,8593,103,109,97,59,32768,931,97,108,108,67,105,114,99,108,101,59,32768,8728,112,102,59,32896,55349,56650,1091,4979,0,0,4983,116,59,32768,8730,97,114,101,1024,59,73,83,85,4994,4996,5010,5052,32768,9633,110,116,101,114,115,101,99,116,105,111,110,59,32768,8851,117,512,98,112,5016,5033,115,101,116,512,59,69,5024,5026,32768,8847,113,117,97,108,59,32768,8849,101,114,115,101,116,512,59,69,5043,5045,32768,8848,113,117,97,108,59,32768,8850,110,105,111,110,59,32768,8852,99,114,59,32896,55349,56494,97,114,59,32768,8902,1024,98,99,109,112,5079,5102,5155,5158,512,59,115,5084,5086,32768,8912,101,116,512,59,69,5093,5095,32768,8912,113,117,97,108,59,32768,8838,512,99,104,5107,5148,101,101,100,115,1024,59,69,83,84,5120,5122,5129,5141,32768,8827,113,117,97,108,59,32768,10928,108,97,110,116,69,113,117,97,108,59,32768,8829,105,108,100,101,59,32768,8831,84,104,97,116,59,32768,8715,59,32768,8721,768,59,101,115,5165,5167,5185,32768,8913,114,115,101,116,512,59,69,5176,5178,32768,8835,113,117,97,108,59,32768,8839,101,116,59,32768,8913,2816,72,82,83,97,99,102,104,105,111,114,115,5213,5221,5227,5241,5252,5274,5279,5323,5362,5368,5378,79,82,78,33024,222,59,32768,222,65,68,69,59,32768,8482,512,72,99,5232,5237,99,121,59,32768,1035,121,59,32768,1062,512,98,117,5246,5249,59,32768,9,59,32768,932,768,97,101,121,5259,5265,5271,114,111,110,59,32768,356,100,105,108,59,32768,354,59,32768,1058,114,59,32896,55349,56599,512,101,105,5284,5300,835,5289,0,5297,101,102,111,114,101,59,32768,8756,97,59,32768,920,512,99,110,5305,5315,107,83,112,97,99,101,59,32896,8287,8202,83,112,97,99,101,59,32768,8201,108,100,101,1024,59,69,70,84,5335,5337,5344,5355,32768,8764,113,117,97,108,59,32768,8771,117,108,108,69,113,117,97,108,59,32768,8773,105,108,100,101,59,32768,8776,112,102,59,32896,55349,56651,105,112,108,101,68,111,116,59,32768,8411,512,99,116,5383,5388,114,59,32896,55349,56495,114,111,107,59,32768,358,5426,5417,5444,5458,5473,0,5480,5485,0,0,0,0,0,5494,5500,5564,5579,0,5726,5732,5738,5745,512,99,114,5421,5429,117,116,101,33024,218,59,32768,218,114,512,59,111,5435,5437,32768,8607,99,105,114,59,32768,10569,114,820,5449,0,5453,121,59,32768,1038,118,101,59,32768,364,512,105,121,5462,5469,114,99,33024,219,59,32768,219,59,32768,1059,98,108,97,99,59,32768,368,114,59,32896,55349,56600,114,97,118,101,33024,217,59,32768,217,97,99,114,59,32768,362,512,100,105,5504,5548,101,114,512,66,80,5511,5535,512,97,114,5516,5520,114,59,32768,95,97,99,512,101,107,5527,5530,59,32768,9183,101,116,59,32768,9141,97,114,101,110,116,104,101,115,105,115,59,32768,9181,111,110,512,59,80,5555,5557,32768,8899,108,117,115,59,32768,8846,512,103,112,5568,5573,111,110,59,32768,370,102,59,32896,55349,56652,2048,65,68,69,84,97,100,112,115,5595,5624,5635,5648,5664,5671,5682,5712,114,114,111,119,768,59,66,68,5606,5608,5613,32768,8593,97,114,59,32768,10514,111,119,110,65,114,114,111,119,59,32768,8645,111,119,110,65,114,114,111,119,59,32768,8597,113,117,105,108,105,98,114,105,117,109,59,32768,10606,101,101,512,59,65,5655,5657,32768,8869,114,114,111,119,59,32768,8613,114,114,111,119,59,32768,8657,111,119,110,97,114,114,111,119,59,32768,8661,101,114,512,76,82,5689,5700,101,102,116,65,114,114,111,119,59,32768,8598,105,103,104,116,65,114,114,111,119,59,32768,8599,105,512,59,108,5718,5720,32768,978,111,110,59,32768,933,105,110,103,59,32768,366,99,114,59,32896,55349,56496,105,108,100,101,59,32768,360,109,108,33024,220,59,32768,220,2304,68,98,99,100,101,102,111,115,118,5770,5776,5781,5785,5798,5878,5883,5889,5895,97,115,104,59,32768,8875,97,114,59,32768,10987,121,59,32768,1042,97,115,104,512,59,108,5793,5795,32768,8873,59,32768,10982,512,101,114,5803,5806,59,32768,8897,768,98,116,121,5813,5818,5866,97,114,59,32768,8214,512,59,105,5823,5825,32768,8214,99,97,108,1024,66,76,83,84,5837,5842,5848,5859,97,114,59,32768,8739,105,110,101,59,32768,124,101,112,97,114,97,116,111,114,59,32768,10072,105,108,100,101,59,32768,8768,84,104,105,110,83,112,97,99,101,59,32768,8202,114,59,32896,55349,56601,112,102,59,32896,55349,56653,99,114,59,32896,55349,56497,100,97,115,104,59,32768,8874,1280,99,101,102,111,115,5913,5919,5925,5930,5936,105,114,99,59,32768,372,100,103,101,59,32768,8896,114,59,32896,55349,56602,112,102,59,32896,55349,56654,99,114,59,32896,55349,56498,1024,102,105,111,115,5951,5956,5959,5965,114,59,32896,55349,56603,59,32768,926,112,102,59,32896,55349,56655,99,114,59,32896,55349,56499,2304,65,73,85,97,99,102,111,115,117,5990,5995,6e3,6005,6014,6027,6032,6038,6044,99,121,59,32768,1071,99,121,59,32768,1031,99,121,59,32768,1070,99,117,116,101,33024,221,59,32768,221,512,105,121,6019,6024,114,99,59,32768,374,59,32768,1067,114,59,32896,55349,56604,112,102,59,32896,55349,56656,99,114,59,32896,55349,56500,109,108,59,32768,376,2048,72,97,99,100,101,102,111,115,6066,6071,6078,6092,6097,6119,6123,6128,99,121,59,32768,1046,99,117,116,101,59,32768,377,512,97,121,6083,6089,114,111,110,59,32768,381,59,32768,1047,111,116,59,32768,379,835,6102,0,6116,111,87,105,100,116,104,83,112,97,99,101,59,32768,8203,97,59,32768,918,114,59,32768,8488,112,102,59,32768,8484,99,114,59,32896,55349,56501,5938,6159,6168,6175,0,6214,6222,6233,0,0,0,0,6242,6267,6290,6429,6444,0,6495,6503,6531,6540,0,6547,99,117,116,101,33024,225,59,32768,225,114,101,118,101,59,32768,259,1536,59,69,100,105,117,121,6187,6189,6193,6196,6203,6210,32768,8766,59,32896,8766,819,59,32768,8767,114,99,33024,226,59,32768,226,116,101,33024,180,59,32768,180,59,32768,1072,108,105,103,33024,230,59,32768,230,512,59,114,6226,6228,32768,8289,59,32896,55349,56606,114,97,118,101,33024,224,59,32768,224,512,101,112,6246,6261,512,102,112,6251,6257,115,121,109,59,32768,8501,104,59,32768,8501,104,97,59,32768,945,512,97,112,6271,6284,512,99,108,6276,6280,114,59,32768,257,103,59,32768,10815,33024,38,59,32768,38,1077,6295,0,0,6326,1280,59,97,100,115,118,6305,6307,6312,6315,6322,32768,8743,110,100,59,32768,10837,59,32768,10844,108,111,112,101,59,32768,10840,59,32768,10842,1792,59,101,108,109,114,115,122,6340,6342,6345,6349,6391,6410,6422,32768,8736,59,32768,10660,101,59,32768,8736,115,100,512,59,97,6356,6358,32768,8737,2098,6368,6371,6374,6377,6380,6383,6386,6389,59,32768,10664,59,32768,10665,59,32768,10666,59,32768,10667,59,32768,10668,59,32768,10669,59,32768,10670,59,32768,10671,116,512,59,118,6397,6399,32768,8735,98,512,59,100,6405,6407,32768,8894,59,32768,10653,512,112,116,6415,6419,104,59,32768,8738,59,32768,197,97,114,114,59,32768,9084,512,103,112,6433,6438,111,110,59,32768,261,102,59,32896,55349,56658,1792,59,69,97,101,105,111,112,6458,6460,6463,6469,6472,6476,6480,32768,8776,59,32768,10864,99,105,114,59,32768,10863,59,32768,8778,100,59,32768,8779,115,59,32768,39,114,111,120,512,59,101,6488,6490,32768,8776,113,59,32768,8778,105,110,103,33024,229,59,32768,229,768,99,116,121,6509,6514,6517,114,59,32896,55349,56502,59,32768,42,109,112,512,59,101,6524,6526,32768,8776,113,59,32768,8781,105,108,100,101,33024,227,59,32768,227,109,108,33024,228,59,32768,228,512,99,105,6551,6559,111,110,105,110,116,59,32768,8755,110,116,59,32768,10769,4096,78,97,98,99,100,101,102,105,107,108,110,111,112,114,115,117,6597,6602,6673,6688,6701,6707,6768,6773,6891,6898,6999,7023,7309,7316,7334,7383,111,116,59,32768,10989,512,99,114,6607,6652,107,1024,99,101,112,115,6617,6623,6632,6639,111,110,103,59,32768,8780,112,115,105,108,111,110,59,32768,1014,114,105,109,101,59,32768,8245,105,109,512,59,101,6646,6648,32768,8765,113,59,32768,8909,583,6656,6661,101,101,59,32768,8893,101,100,512,59,103,6667,6669,32768,8965,101,59,32768,8965,114,107,512,59,116,6680,6682,32768,9141,98,114,107,59,32768,9142,512,111,121,6693,6698,110,103,59,32768,8780,59,32768,1073,113,117,111,59,32768,8222,1280,99,109,112,114,116,6718,6731,6738,6743,6749,97,117,115,512,59,101,6726,6728,32768,8757,59,32768,8757,112,116,121,118,59,32768,10672,115,105,59,32768,1014,110,111,117,59,32768,8492,768,97,104,119,6756,6759,6762,59,32768,946,59,32768,8502,101,101,110,59,32768,8812,114,59,32896,55349,56607,103,1792,99,111,115,116,117,118,119,6789,6809,6834,6850,6872,6879,6884,768,97,105,117,6796,6800,6805,112,59,32768,8898,114,99,59,32768,9711,112,59,32768,8899,768,100,112,116,6816,6821,6827,111,116,59,32768,10752,108,117,115,59,32768,10753,105,109,101,115,59,32768,10754,1090,6840,0,0,6846,99,117,112,59,32768,10758,97,114,59,32768,9733,114,105,97,110,103,108,101,512,100,117,6862,6868,111,119,110,59,32768,9661,112,59,32768,9651,112,108,117,115,59,32768,10756,101,101,59,32768,8897,101,100,103,101,59,32768,8896,97,114,111,119,59,32768,10509,768,97,107,111,6905,6976,6994,512,99,110,6910,6972,107,768,108,115,116,6918,6927,6935,111,122,101,110,103,101,59,32768,10731,113,117,97,114,101,59,32768,9642,114,105,97,110,103,108,101,1024,59,100,108,114,6951,6953,6959,6965,32768,9652,111,119,110,59,32768,9662,101,102,116,59,32768,9666,105,103,104,116,59,32768,9656,107,59,32768,9251,770,6981,0,6991,771,6985,0,6988,59,32768,9618,59,32768,9617,52,59,32768,9619,99,107,59,32768,9608,512,101,111,7004,7019,512,59,113,7009,7012,32896,61,8421,117,105,118,59,32896,8801,8421,116,59,32768,8976,1024,112,116,119,120,7032,7037,7049,7055,102,59,32896,55349,56659,512,59,116,7042,7044,32768,8869,111,109,59,32768,8869,116,105,101,59,32768,8904,3072,68,72,85,86,98,100,104,109,112,116,117,118,7080,7101,7126,7147,7182,7187,7208,7233,7240,7246,7253,7274,1024,76,82,108,114,7089,7092,7095,7098,59,32768,9559,59,32768,9556,59,32768,9558,59,32768,9555,1280,59,68,85,100,117,7112,7114,7117,7120,7123,32768,9552,59,32768,9574,59,32768,9577,59,32768,9572,59,32768,9575,1024,76,82,108,114,7135,7138,7141,7144,59,32768,9565,59,32768,9562,59,32768,9564,59,32768,9561,1792,59,72,76,82,104,108,114,7162,7164,7167,7170,7173,7176,7179,32768,9553,59,32768,9580,59,32768,9571,59,32768,9568,59,32768,9579,59,32768,9570,59,32768,9567,111,120,59,32768,10697,1024,76,82,108,114,7196,7199,7202,7205,59,32768,9557,59,32768,9554,59,32768,9488,59,32768,9484,1280,59,68,85,100,117,7219,7221,7224,7227,7230,32768,9472,59,32768,9573,59,32768,9576,59,32768,9516,59,32768,9524,105,110,117,115,59,32768,8863,108,117,115,59,32768,8862,105,109,101,115,59,32768,8864,1024,76,82,108,114,7262,7265,7268,7271,59,32768,9563,59,32768,9560,59,32768,9496,59,32768,9492,1792,59,72,76,82,104,108,114,7289,7291,7294,7297,7300,7303,7306,32768,9474,59,32768,9578,59,32768,9569,59,32768,9566,59,32768,9532,59,32768,9508,59,32768,9500,114,105,109,101,59,32768,8245,512,101,118,7321,7326,118,101,59,32768,728,98,97,114,33024,166,59,32768,166,1024,99,101,105,111,7343,7348,7353,7364,114,59,32896,55349,56503,109,105,59,32768,8271,109,512,59,101,7359,7361,32768,8765,59,32768,8909,108,768,59,98,104,7372,7374,7377,32768,92,59,32768,10693,115,117,98,59,32768,10184,573,7387,7399,108,512,59,101,7392,7394,32768,8226,116,59,32768,8226,112,768,59,69,101,7406,7408,7411,32768,8782,59,32768,10926,512,59,113,7416,7418,32768,8783,59,32768,8783,6450,7448,0,7523,7571,7576,7613,0,7618,7647,0,0,7764,0,0,7779,0,0,7899,7914,7949,7955,0,8158,0,8176,768,99,112,114,7454,7460,7509,117,116,101,59,32768,263,1536,59,97,98,99,100,115,7473,7475,7480,7487,7500,7505,32768,8745,110,100,59,32768,10820,114,99,117,112,59,32768,10825,512,97,117,7492,7496,112,59,32768,10827,112,59,32768,10823,111,116,59,32768,10816,59,32896,8745,65024,512,101,111,7514,7518,116,59,32768,8257,110,59,32768,711,1024,97,101,105,117,7531,7544,7552,7557,833,7536,0,7540,115,59,32768,10829,111,110,59,32768,269,100,105,108,33024,231,59,32768,231,114,99,59,32768,265,112,115,512,59,115,7564,7566,32768,10828,109,59,32768,10832,111,116,59,32768,267,768,100,109,110,7582,7589,7596,105,108,33024,184,59,32768,184,112,116,121,118,59,32768,10674,116,33280,162,59,101,7603,7605,32768,162,114,100,111,116,59,32768,183,114,59,32896,55349,56608,768,99,101,105,7624,7628,7643,121,59,32768,1095,99,107,512,59,109,7635,7637,32768,10003,97,114,107,59,32768,10003,59,32768,967,114,1792,59,69,99,101,102,109,115,7662,7664,7667,7742,7745,7752,7757,32768,9675,59,32768,10691,768,59,101,108,7674,7676,7680,32768,710,113,59,32768,8791,101,1074,7687,0,0,7709,114,114,111,119,512,108,114,7695,7701,101,102,116,59,32768,8634,105,103,104,116,59,32768,8635,1280,82,83,97,99,100,7719,7722,7725,7730,7736,59,32768,174,59,32768,9416,115,116,59,32768,8859,105,114,99,59,32768,8858,97,115,104,59,32768,8861,59,32768,8791,110,105,110,116,59,32768,10768,105,100,59,32768,10991,99,105,114,59,32768,10690,117,98,115,512,59,117,7771,7773,32768,9827,105,116,59,32768,9827,1341,7785,7804,7850,0,7871,111,110,512,59,101,7791,7793,32768,58,512,59,113,7798,7800,32768,8788,59,32768,8788,1086,7809,0,0,7820,97,512,59,116,7814,7816,32768,44,59,32768,64,768,59,102,108,7826,7828,7832,32768,8705,110,59,32768,8728,101,512,109,120,7838,7844,101,110,116,59,32768,8705,101,115,59,32768,8450,824,7854,0,7866,512,59,100,7858,7860,32768,8773,111,116,59,32768,10861,110,116,59,32768,8750,768,102,114,121,7877,7881,7886,59,32896,55349,56660,111,100,59,32768,8720,33280,169,59,115,7892,7894,32768,169,114,59,32768,8471,512,97,111,7903,7908,114,114,59,32768,8629,115,115,59,32768,10007,512,99,117,7918,7923,114,59,32896,55349,56504,512,98,112,7928,7938,512,59,101,7933,7935,32768,10959,59,32768,10961,512,59,101,7943,7945,32768,10960,59,32768,10962,100,111,116,59,32768,8943,1792,100,101,108,112,114,118,119,7969,7983,7996,8009,8057,8147,8152,97,114,114,512,108,114,7977,7980,59,32768,10552,59,32768,10549,1089,7989,0,0,7993,114,59,32768,8926,99,59,32768,8927,97,114,114,512,59,112,8004,8006,32768,8630,59,32768,10557,1536,59,98,99,100,111,115,8022,8024,8031,8044,8049,8053,32768,8746,114,99,97,112,59,32768,10824,512,97,117,8036,8040,112,59,32768,10822,112,59,32768,10826,111,116,59,32768,8845,114,59,32768,10821,59,32896,8746,65024,1024,97,108,114,118,8066,8078,8116,8123,114,114,512,59,109,8073,8075,32768,8631,59,32768,10556,121,768,101,118,119,8086,8104,8109,113,1089,8093,0,0,8099,114,101,99,59,32768,8926,117,99,99,59,32768,8927,101,101,59,32768,8910,101,100,103,101,59,32768,8911,101,110,33024,164,59,32768,164,101,97,114,114,111,119,512,108,114,8134,8140,101,102,116,59,32768,8630,105,103,104,116,59,32768,8631,101,101,59,32768,8910,101,100,59,32768,8911,512,99,105,8162,8170,111,110,105,110,116,59,32768,8754,110,116,59,32768,8753,108,99,116,121,59,32768,9005,4864,65,72,97,98,99,100,101,102,104,105,106,108,111,114,115,116,117,119,122,8221,8226,8231,8267,8282,8296,8327,8351,8366,8379,8466,8471,8487,8621,8647,8676,8697,8712,8720,114,114,59,32768,8659,97,114,59,32768,10597,1024,103,108,114,115,8240,8246,8252,8256,103,101,114,59,32768,8224,101,116,104,59,32768,8504,114,59,32768,8595,104,512,59,118,8262,8264,32768,8208,59,32768,8867,572,8271,8278,97,114,111,119,59,32768,10511,97,99,59,32768,733,512,97,121,8287,8293,114,111,110,59,32768,271,59,32768,1076,768,59,97,111,8303,8305,8320,32768,8518,512,103,114,8310,8316,103,101,114,59,32768,8225,114,59,32768,8650,116,115,101,113,59,32768,10871,768,103,108,109,8334,8339,8344,33024,176,59,32768,176,116,97,59,32768,948,112,116,121,118,59,32768,10673,512,105,114,8356,8362,115,104,116,59,32768,10623,59,32896,55349,56609,97,114,512,108,114,8373,8376,59,32768,8643,59,32768,8642,1280,97,101,103,115,118,8390,8418,8421,8428,8433,109,768,59,111,115,8398,8400,8415,32768,8900,110,100,512,59,115,8407,8409,32768,8900,117,105,116,59,32768,9830,59,32768,9830,59,32768,168,97,109,109,97,59,32768,989,105,110,59,32768,8946,768,59,105,111,8440,8442,8461,32768,247,100,101,33280,247,59,111,8450,8452,32768,247,110,116,105,109,101,115,59,32768,8903,110,120,59,32768,8903,99,121,59,32768,1106,99,1088,8478,0,0,8483,114,110,59,32768,8990,111,112,59,32768,8973,1280,108,112,116,117,119,8498,8504,8509,8556,8570,108,97,114,59,32768,36,102,59,32896,55349,56661,1280,59,101,109,112,115,8520,8522,8535,8542,8548,32768,729,113,512,59,100,8528,8530,32768,8784,111,116,59,32768,8785,105,110,117,115,59,32768,8760,108,117,115,59,32768,8724,113,117,97,114,101,59,32768,8865,98,108,101,98,97,114,119,101,100,103,101,59,32768,8966,110,768,97,100,104,8578,8585,8597,114,114,111,119,59,32768,8595,111,119,110,97,114,114,111,119,115,59,32768,8650,97,114,112,111,111,110,512,108,114,8608,8614,101,102,116,59,32768,8643,105,103,104,116,59,32768,8642,563,8625,8633,107,97,114,111,119,59,32768,10512,1088,8638,0,0,8643,114,110,59,32768,8991,111,112,59,32768,8972,768,99,111,116,8654,8666,8670,512,114,121,8659,8663,59,32896,55349,56505,59,32768,1109,108,59,32768,10742,114,111,107,59,32768,273,512,100,114,8681,8686,111,116,59,32768,8945,105,512,59,102,8692,8694,32768,9663,59,32768,9662,512,97,104,8702,8707,114,114,59,32768,8693,97,114,59,32768,10607,97,110,103,108,101,59,32768,10662,512,99,105,8725,8729,121,59,32768,1119,103,114,97,114,114,59,32768,10239,4608,68,97,99,100,101,102,103,108,109,110,111,112,113,114,115,116,117,120,8774,8788,8807,8844,8849,8852,8866,8895,8929,8977,8989,9004,9046,9136,9151,9171,9184,9199,512,68,111,8779,8784,111,116,59,32768,10871,116,59,32768,8785,512,99,115,8793,8801,117,116,101,33024,233,59,32768,233,116,101,114,59,32768,10862,1024,97,105,111,121,8816,8822,8835,8841,114,111,110,59,32768,283,114,512,59,99,8828,8830,32768,8790,33024,234,59,32768,234,108,111,110,59,32768,8789,59,32768,1101,111,116,59,32768,279,59,32768,8519,512,68,114,8857,8862,111,116,59,32768,8786,59,32896,55349,56610,768,59,114,115,8873,8875,8883,32768,10906,97,118,101,33024,232,59,32768,232,512,59,100,8888,8890,32768,10902,111,116,59,32768,10904,1024,59,105,108,115,8904,8906,8914,8917,32768,10905,110,116,101,114,115,59,32768,9191,59,32768,8467,512,59,100,8922,8924,32768,10901,111,116,59,32768,10903,768,97,112,115,8936,8941,8960,99,114,59,32768,275,116,121,768,59,115,118,8950,8952,8957,32768,8709,101,116,59,32768,8709,59,32768,8709,112,512,49,59,8966,8975,516,8970,8973,59,32768,8196,59,32768,8197,32768,8195,512,103,115,8982,8985,59,32768,331,112,59,32768,8194,512,103,112,8994,8999,111,110,59,32768,281,102,59,32896,55349,56662,768,97,108,115,9011,9023,9028,114,512,59,115,9017,9019,32768,8917,108,59,32768,10723,117,115,59,32768,10865,105,768,59,108,118,9036,9038,9043,32768,949,111,110,59,32768,949,59,32768,1013,1024,99,115,117,118,9055,9071,9099,9128,512,105,111,9060,9065,114,99,59,32768,8790,108,111,110,59,32768,8789,1082,9077,0,0,9081,109,59,32768,8770,97,110,116,512,103,108,9088,9093,116,114,59,32768,10902,101,115,115,59,32768,10901,768,97,101,105,9106,9111,9116,108,115,59,32768,61,115,116,59,32768,8799,118,512,59,68,9122,9124,32768,8801,68,59,32768,10872,112,97,114,115,108,59,32768,10725,512,68,97,9141,9146,111,116,59,32768,8787,114,114,59,32768,10609,768,99,100,105,9158,9162,9167,114,59,32768,8495,111,116,59,32768,8784,109,59,32768,8770,512,97,104,9176,9179,59,32768,951,33024,240,59,32768,240,512,109,114,9189,9195,108,33024,235,59,32768,235,111,59,32768,8364,768,99,105,112,9206,9210,9215,108,59,32768,33,115,116,59,32768,8707,512,101,111,9220,9230,99,116,97,116,105,111,110,59,32768,8496,110,101,110,116,105,97,108,101,59,32768,8519,4914,9262,0,9276,0,9280,9287,0,0,9318,9324,0,9331,0,9352,9357,9386,0,9395,9497,108,108,105,110,103,100,111,116,115,101,113,59,32768,8786,121,59,32768,1092,109,97,108,101,59,32768,9792,768,105,108,114,9293,9299,9313,108,105,103,59,32768,64259,1082,9305,0,0,9309,103,59,32768,64256,105,103,59,32768,64260,59,32896,55349,56611,108,105,103,59,32768,64257,108,105,103,59,32896,102,106,768,97,108,116,9337,9341,9346,116,59,32768,9837,105,103,59,32768,64258,110,115,59,32768,9649,111,102,59,32768,402,833,9361,0,9366,102,59,32896,55349,56663,512,97,107,9370,9375,108,108,59,32768,8704,512,59,118,9380,9382,32768,8916,59,32768,10969,97,114,116,105,110,116,59,32768,10765,512,97,111,9399,9491,512,99,115,9404,9487,1794,9413,9443,9453,9470,9474,0,9484,1795,9421,9426,9429,9434,9437,0,9440,33024,189,59,32768,189,59,32768,8531,33024,188,59,32768,188,59,32768,8533,59,32768,8537,59,32768,8539,772,9447,0,9450,59,32768,8532,59,32768,8534,1285,9459,9464,0,0,9467,33024,190,59,32768,190,59,32768,8535,59,32768,8540,53,59,32768,8536,775,9478,0,9481,59,32768,8538,59,32768,8541,56,59,32768,8542,108,59,32768,8260,119,110,59,32768,8994,99,114,59,32896,55349,56507,4352,69,97,98,99,100,101,102,103,105,106,108,110,111,114,115,116,118,9537,9547,9575,9582,9595,9600,9679,9684,9694,9700,9705,9725,9773,9779,9785,9810,9917,512,59,108,9542,9544,32768,8807,59,32768,10892,768,99,109,112,9554,9560,9572,117,116,101,59,32768,501,109,97,512,59,100,9567,9569,32768,947,59,32768,989,59,32768,10886,114,101,118,101,59,32768,287,512,105,121,9587,9592,114,99,59,32768,285,59,32768,1075,111,116,59,32768,289,1024,59,108,113,115,9609,9611,9614,9633,32768,8805,59,32768,8923,768,59,113,115,9621,9623,9626,32768,8805,59,32768,8807,108,97,110,116,59,32768,10878,1024,59,99,100,108,9642,9644,9648,9667,32768,10878,99,59,32768,10921,111,116,512,59,111,9655,9657,32768,10880,512,59,108,9662,9664,32768,10882,59,32768,10884,512,59,101,9672,9675,32896,8923,65024,115,59,32768,10900,114,59,32896,55349,56612,512,59,103,9689,9691,32768,8811,59,32768,8921,109,101,108,59,32768,8503,99,121,59,32768,1107,1024,59,69,97,106,9714,9716,9719,9722,32768,8823,59,32768,10898,59,32768,10917,59,32768,10916,1024,69,97,101,115,9734,9737,9751,9768,59,32768,8809,112,512,59,112,9743,9745,32768,10890,114,111,120,59,32768,10890,512,59,113,9756,9758,32768,10888,512,59,113,9763,9765,32768,10888,59,32768,8809,105,109,59,32768,8935,112,102,59,32896,55349,56664,97,118,101,59,32768,96,512,99,105,9790,9794,114,59,32768,8458,109,768,59,101,108,9802,9804,9807,32768,8819,59,32768,10894,59,32768,10896,34304,62,59,99,100,108,113,114,9824,9826,9838,9843,9849,9856,32768,62,512,99,105,9831,9834,59,32768,10919,114,59,32768,10874,111,116,59,32768,8919,80,97,114,59,32768,10645,117,101,115,116,59,32768,10876,1280,97,100,101,108,115,9867,9882,9887,9906,9912,833,9872,0,9879,112,114,111,120,59,32768,10886,114,59,32768,10616,111,116,59,32768,8919,113,512,108,113,9893,9899,101,115,115,59,32768,8923,108,101,115,115,59,32768,10892,101,115,115,59,32768,8823,105,109,59,32768,8819,512,101,110,9922,9932,114,116,110,101,113,113,59,32896,8809,65024,69,59,32896,8809,65024,2560,65,97,98,99,101,102,107,111,115,121,9958,9963,10015,10020,10026,10060,10065,10085,10147,10171,114,114,59,32768,8660,1024,105,108,109,114,9972,9978,9982,9988,114,115,112,59,32768,8202,102,59,32768,189,105,108,116,59,32768,8459,512,100,114,9993,9998,99,121,59,32768,1098,768,59,99,119,10005,10007,10012,32768,8596,105,114,59,32768,10568,59,32768,8621,97,114,59,32768,8463,105,114,99,59,32768,293,768,97,108,114,10033,10048,10054,114,116,115,512,59,117,10041,10043,32768,9829,105,116,59,32768,9829,108,105,112,59,32768,8230,99,111,110,59,32768,8889,114,59,32896,55349,56613,115,512,101,119,10071,10078,97,114,111,119,59,32768,10533,97,114,111,119,59,32768,10534,1280,97,109,111,112,114,10096,10101,10107,10136,10141,114,114,59,32768,8703,116,104,116,59,32768,8763,107,512,108,114,10113,10124,101,102,116,97,114,114,111,119,59,32768,8617,105,103,104,116,97,114,114,111,119,59,32768,8618,102,59,32896,55349,56665,98,97,114,59,32768,8213,768,99,108,116,10154,10159,10165,114,59,32896,55349,56509,97,115,104,59,32768,8463,114,111,107,59,32768,295,512,98,112,10176,10182,117,108,108,59,32768,8259,104,101,110,59,32768,8208,5426,10211,0,10220,0,10239,10255,10267,0,10276,10312,0,0,10318,10371,10458,10485,10491,0,10500,10545,10558,99,117,116,101,33024,237,59,32768,237,768,59,105,121,10226,10228,10235,32768,8291,114,99,33024,238,59,32768,238,59,32768,1080,512,99,120,10243,10247,121,59,32768,1077,99,108,33024,161,59,32768,161,512,102,114,10259,10262,59,32768,8660,59,32896,55349,56614,114,97,118,101,33024,236,59,32768,236,1024,59,105,110,111,10284,10286,10300,10306,32768,8520,512,105,110,10291,10296,110,116,59,32768,10764,116,59,32768,8749,102,105,110,59,32768,10716,116,97,59,32768,8489,108,105,103,59,32768,307,768,97,111,112,10324,10361,10365,768,99,103,116,10331,10335,10357,114,59,32768,299,768,101,108,112,10342,10345,10351,59,32768,8465,105,110,101,59,32768,8464,97,114,116,59,32768,8465,104,59,32768,305,102,59,32768,8887,101,100,59,32768,437,1280,59,99,102,111,116,10381,10383,10389,10403,10409,32768,8712,97,114,101,59,32768,8453,105,110,512,59,116,10396,10398,32768,8734,105,101,59,32768,10717,100,111,116,59,32768,305,1280,59,99,101,108,112,10420,10422,10427,10444,10451,32768,8747,97,108,59,32768,8890,512,103,114,10432,10438,101,114,115,59,32768,8484,99,97,108,59,32768,8890,97,114,104,107,59,32768,10775,114,111,100,59,32768,10812,1024,99,103,112,116,10466,10470,10475,10480,121,59,32768,1105,111,110,59,32768,303,102,59,32896,55349,56666,97,59,32768,953,114,111,100,59,32768,10812,117,101,115,116,33024,191,59,32768,191,512,99,105,10504,10509,114,59,32896,55349,56510,110,1280,59,69,100,115,118,10521,10523,10526,10531,10541,32768,8712,59,32768,8953,111,116,59,32768,8949,512,59,118,10536,10538,32768,8948,59,32768,8947,59,32768,8712,512,59,105,10549,10551,32768,8290,108,100,101,59,32768,297,828,10562,0,10567,99,121,59,32768,1110,108,33024,239,59,32768,239,1536,99,102,109,111,115,117,10585,10598,10603,10609,10615,10630,512,105,121,10590,10595,114,99,59,32768,309,59,32768,1081,114,59,32896,55349,56615,97,116,104,59,32768,567,112,102,59,32896,55349,56667,820,10620,0,10625,114,59,32896,55349,56511,114,99,121,59,32768,1112,107,99,121,59,32768,1108,2048,97,99,102,103,104,106,111,115,10653,10666,10680,10685,10692,10697,10702,10708,112,112,97,512,59,118,10661,10663,32768,954,59,32768,1008,512,101,121,10671,10677,100,105,108,59,32768,311,59,32768,1082,114,59,32896,55349,56616,114,101,101,110,59,32768,312,99,121,59,32768,1093,99,121,59,32768,1116,112,102,59,32896,55349,56668,99,114,59,32896,55349,56512,5888,65,66,69,72,97,98,99,100,101,102,103,104,106,108,109,110,111,112,114,115,116,117,118,10761,10783,10789,10799,10804,10957,11011,11047,11094,11349,11372,11382,11409,11414,11451,11478,11526,11698,11711,11755,11823,11910,11929,768,97,114,116,10768,10773,10777,114,114,59,32768,8666,114,59,32768,8656,97,105,108,59,32768,10523,97,114,114,59,32768,10510,512,59,103,10794,10796,32768,8806,59,32768,10891,97,114,59,32768,10594,4660,10824,0,10830,0,10838,0,0,0,0,0,10844,10850,0,10867,10870,10877,0,10933,117,116,101,59,32768,314,109,112,116,121,118,59,32768,10676,114,97,110,59,32768,8466,98,100,97,59,32768,955,103,768,59,100,108,10857,10859,10862,32768,10216,59,32768,10641,101,59,32768,10216,59,32768,10885,117,111,33024,171,59,32768,171,114,2048,59,98,102,104,108,112,115,116,10894,10896,10907,10911,10915,10919,10923,10928,32768,8592,512,59,102,10901,10903,32768,8676,115,59,32768,10527,115,59,32768,10525,107,59,32768,8617,112,59,32768,8619,108,59,32768,10553,105,109,59,32768,10611,108,59,32768,8610,768,59,97,101,10939,10941,10946,32768,10923,105,108,59,32768,10521,512,59,115,10951,10953,32768,10925,59,32896,10925,65024,768,97,98,114,10964,10969,10974,114,114,59,32768,10508,114,107,59,32768,10098,512,97,107,10979,10991,99,512,101,107,10985,10988,59,32768,123,59,32768,91,512,101,115,10996,10999,59,32768,10635,108,512,100,117,11005,11008,59,32768,10639,59,32768,10637,1024,97,101,117,121,11020,11026,11040,11044,114,111,110,59,32768,318,512,100,105,11031,11036,105,108,59,32768,316,108,59,32768,8968,98,59,32768,123,59,32768,1083,1024,99,113,114,115,11056,11060,11072,11090,97,59,32768,10550,117,111,512,59,114,11067,11069,32768,8220,59,32768,8222,512,100,117,11077,11083,104,97,114,59,32768,10599,115,104,97,114,59,32768,10571,104,59,32768,8626,1280,59,102,103,113,115,11105,11107,11228,11231,11250,32768,8804,116,1280,97,104,108,114,116,11119,11136,11157,11169,11216,114,114,111,119,512,59,116,11128,11130,32768,8592,97,105,108,59,32768,8610,97,114,112,111,111,110,512,100,117,11147,11153,111,119,110,59,32768,8637,112,59,32768,8636,101,102,116,97,114,114,111,119,115,59,32768,8647,105,103,104,116,768,97,104,115,11180,11194,11204,114,114,111,119,512,59,115,11189,11191,32768,8596,59,32768,8646,97,114,112,111,111,110,115,59,32768,8651,113,117,105,103,97,114,114,111,119,59,32768,8621,104,114,101,101,116,105,109,101,115,59,32768,8907,59,32768,8922,768,59,113,115,11238,11240,11243,32768,8804,59,32768,8806,108,97,110,116,59,32768,10877,1280,59,99,100,103,115,11261,11263,11267,11286,11298,32768,10877,99,59,32768,10920,111,116,512,59,111,11274,11276,32768,10879,512,59,114,11281,11283,32768,10881,59,32768,10883,512,59,101,11291,11294,32896,8922,65024,115,59,32768,10899,1280,97,100,101,103,115,11309,11317,11322,11339,11344,112,112,114,111,120,59,32768,10885,111,116,59,32768,8918,113,512,103,113,11328,11333,116,114,59,32768,8922,103,116,114,59,32768,10891,116,114,59,32768,8822,105,109,59,32768,8818,768,105,108,114,11356,11362,11368,115,104,116,59,32768,10620,111,111,114,59,32768,8970,59,32896,55349,56617,512,59,69,11377,11379,32768,8822,59,32768,10897,562,11386,11405,114,512,100,117,11391,11394,59,32768,8637,512,59,108,11399,11401,32768,8636,59,32768,10602,108,107,59,32768,9604,99,121,59,32768,1113,1280,59,97,99,104,116,11425,11427,11432,11440,11446,32768,8810,114,114,59,32768,8647,111,114,110,101,114,59,32768,8990,97,114,100,59,32768,10603,114,105,59,32768,9722,512,105,111,11456,11462,100,111,116,59,32768,320,117,115,116,512,59,97,11470,11472,32768,9136,99,104,101,59,32768,9136,1024,69,97,101,115,11487,11490,11504,11521,59,32768,8808,112,512,59,112,11496,11498,32768,10889,114,111,120,59,32768,10889,512,59,113,11509,11511,32768,10887,512,59,113,11516,11518,32768,10887,59,32768,8808,105,109,59,32768,8934,2048,97,98,110,111,112,116,119,122,11543,11556,11561,11616,11640,11660,11667,11680,512,110,114,11548,11552,103,59,32768,10220,114,59,32768,8701,114,107,59,32768,10214,103,768,108,109,114,11569,11596,11604,101,102,116,512,97,114,11577,11584,114,114,111,119,59,32768,10229,105,103,104,116,97,114,114,111,119,59,32768,10231,97,112,115,116,111,59,32768,10236,105,103,104,116,97,114,114,111,119,59,32768,10230,112,97,114,114,111,119,512,108,114,11627,11633,101,102,116,59,32768,8619,105,103,104,116,59,32768,8620,768,97,102,108,11647,11651,11655,114,59,32768,10629,59,32896,55349,56669,117,115,59,32768,10797,105,109,101,115,59,32768,10804,562,11671,11676,115,116,59,32768,8727,97,114,59,32768,95,768,59,101,102,11687,11689,11695,32768,9674,110,103,101,59,32768,9674,59,32768,10731,97,114,512,59,108,11705,11707,32768,40,116,59,32768,10643,1280,97,99,104,109,116,11722,11727,11735,11747,11750,114,114,59,32768,8646,111,114,110,101,114,59,32768,8991,97,114,512,59,100,11742,11744,32768,8651,59,32768,10605,59,32768,8206,114,105,59,32768,8895,1536,97,99,104,105,113,116,11768,11774,11779,11782,11798,11817,113,117,111,59,32768,8249,114,59,32896,55349,56513,59,32768,8624,109,768,59,101,103,11790,11792,11795,32768,8818,59,32768,10893,59,32768,10895,512,98,117,11803,11806,59,32768,91,111,512,59,114,11812,11814,32768,8216,59,32768,8218,114,111,107,59,32768,322,34816,60,59,99,100,104,105,108,113,114,11841,11843,11855,11860,11866,11872,11878,11885,32768,60,512,99,105,11848,11851,59,32768,10918,114,59,32768,10873,111,116,59,32768,8918,114,101,101,59,32768,8907,109,101,115,59,32768,8905,97,114,114,59,32768,10614,117,101,115,116,59,32768,10875,512,80,105,11890,11895,97,114,59,32768,10646,768,59,101,102,11902,11904,11907,32768,9667,59,32768,8884,59,32768,9666,114,512,100,117,11916,11923,115,104,97,114,59,32768,10570,104,97,114,59,32768,10598,512,101,110,11934,11944,114,116,110,101,113,113,59,32896,8808,65024,69,59,32896,8808,65024,3584,68,97,99,100,101,102,104,105,108,110,111,112,115,117,11978,11984,12061,12075,12081,12095,12100,12104,12170,12181,12188,12204,12207,12223,68,111,116,59,32768,8762,1024,99,108,112,114,11993,11999,12019,12055,114,33024,175,59,32768,175,512,101,116,12004,12007,59,32768,9794,512,59,101,12012,12014,32768,10016,115,101,59,32768,10016,512,59,115,12024,12026,32768,8614,116,111,1024,59,100,108,117,12037,12039,12045,12051,32768,8614,111,119,110,59,32768,8615,101,102,116,59,32768,8612,112,59,32768,8613,107,101,114,59,32768,9646,512,111,121,12066,12072,109,109,97,59,32768,10793,59,32768,1084,97,115,104,59,32768,8212,97,115,117,114,101,100,97,110,103,108,101,59,32768,8737,114,59,32896,55349,56618,111,59,32768,8487,768,99,100,110,12111,12118,12146,114,111,33024,181,59,32768,181,1024,59,97,99,100,12127,12129,12134,12139,32768,8739,115,116,59,32768,42,105,114,59,32768,10992,111,116,33024,183,59,32768,183,117,115,768,59,98,100,12155,12157,12160,32768,8722,59,32768,8863,512,59,117,12165,12167,32768,8760,59,32768,10794,564,12174,12178,112,59,32768,10971,114,59,32768,8230,112,108,117,115,59,32768,8723,512,100,112,12193,12199,101,108,115,59,32768,8871,102,59,32896,55349,56670,59,32768,8723,512,99,116,12212,12217,114,59,32896,55349,56514,112,111,115,59,32768,8766,768,59,108,109,12230,12232,12240,32768,956,116,105,109,97,112,59,32768,8888,97,112,59,32768,8888,6144,71,76,82,86,97,98,99,100,101,102,103,104,105,106,108,109,111,112,114,115,116,117,118,119,12294,12315,12364,12376,12393,12472,12496,12547,12553,12636,12641,12703,12725,12747,12752,12876,12881,12957,13033,13089,13294,13359,13384,13499,512,103,116,12299,12303,59,32896,8921,824,512,59,118,12308,12311,32896,8811,8402,59,32896,8811,824,768,101,108,116,12322,12348,12352,102,116,512,97,114,12329,12336,114,114,111,119,59,32768,8653,105,103,104,116,97,114,114,111,119,59,32768,8654,59,32896,8920,824,512,59,118,12357,12360,32896,8810,8402,59,32896,8810,824,105,103,104,116,97,114,114,111,119,59,32768,8655,512,68,100,12381,12387,97,115,104,59,32768,8879,97,115,104,59,32768,8878,1280,98,99,110,112,116,12404,12409,12415,12420,12452,108,97,59,32768,8711,117,116,101,59,32768,324,103,59,32896,8736,8402,1280,59,69,105,111,112,12431,12433,12437,12442,12446,32768,8777,59,32896,10864,824,100,59,32896,8779,824,115,59,32768,329,114,111,120,59,32768,8777,117,114,512,59,97,12459,12461,32768,9838,108,512,59,115,12467,12469,32768,9838,59,32768,8469,836,12477,0,12483,112,33024,160,59,32768,160,109,112,512,59,101,12489,12492,32896,8782,824,59,32896,8783,824,1280,97,101,111,117,121,12507,12519,12525,12540,12544,833,12512,0,12515,59,32768,10819,111,110,59,32768,328,100,105,108,59,32768,326,110,103,512,59,100,12532,12534,32768,8775,111,116,59,32896,10861,824,112,59,32768,10818,59,32768,1085,97,115,104,59,32768,8211,1792,59,65,97,100,113,115,120,12568,12570,12575,12596,12602,12608,12623,32768,8800,114,114,59,32768,8663,114,512,104,114,12581,12585,107,59,32768,10532,512,59,111,12590,12592,32768,8599,119,59,32768,8599,111,116,59,32896,8784,824,117,105,118,59,32768,8802,512,101,105,12613,12618,97,114,59,32768,10536,109,59,32896,8770,824,105,115,116,512,59,115,12631,12633,32768,8708,59,32768,8708,114,59,32896,55349,56619,1024,69,101,115,116,12650,12654,12688,12693,59,32896,8807,824,768,59,113,115,12661,12663,12684,32768,8817,768,59,113,115,12670,12672,12676,32768,8817,59,32896,8807,824,108,97,110,116,59,32896,10878,824,59,32896,10878,824,105,109,59,32768,8821,512,59,114,12698,12700,32768,8815,59,32768,8815,768,65,97,112,12710,12715,12720,114,114,59,32768,8654,114,114,59,32768,8622,97,114,59,32768,10994,768,59,115,118,12732,12734,12744,32768,8715,512,59,100,12739,12741,32768,8956,59,32768,8954,59,32768,8715,99,121,59,32768,1114,1792,65,69,97,100,101,115,116,12767,12772,12776,12781,12785,12853,12858,114,114,59,32768,8653,59,32896,8806,824,114,114,59,32768,8602,114,59,32768,8229,1024,59,102,113,115,12794,12796,12821,12842,32768,8816,116,512,97,114,12802,12809,114,114,111,119,59,32768,8602,105,103,104,116,97,114,114,111,119,59,32768,8622,768,59,113,115,12828,12830,12834,32768,8816,59,32896,8806,824,108,97,110,116,59,32896,10877,824,512,59,115,12847,12850,32896,10877,824,59,32768,8814,105,109,59,32768,8820,512,59,114,12863,12865,32768,8814,105,512,59,101,12871,12873,32768,8938,59,32768,8940,105,100,59,32768,8740,512,112,116,12886,12891,102,59,32896,55349,56671,33536,172,59,105,110,12899,12901,12936,32768,172,110,1024,59,69,100,118,12911,12913,12917,12923,32768,8713,59,32896,8953,824,111,116,59,32896,8949,824,818,12928,12931,12934,59,32768,8713,59,32768,8951,59,32768,8950,105,512,59,118,12942,12944,32768,8716,818,12949,12952,12955,59,32768,8716,59,32768,8958,59,32768,8957,768,97,111,114,12964,12992,12999,114,1024,59,97,115,116,12974,12976,12983,12988,32768,8742,108,108,101,108,59,32768,8742,108,59,32896,11005,8421,59,32896,8706,824,108,105,110,116,59,32768,10772,768,59,99,101,13006,13008,13013,32768,8832,117,101,59,32768,8928,512,59,99,13018,13021,32896,10927,824,512,59,101,13026,13028,32768,8832,113,59,32896,10927,824,1024,65,97,105,116,13042,13047,13066,13077,114,114,59,32768,8655,114,114,768,59,99,119,13056,13058,13062,32768,8603,59,32896,10547,824,59,32896,8605,824,103,104,116,97,114,114,111,119,59,32768,8603,114,105,512,59,101,13084,13086,32768,8939,59,32768,8941,1792,99,104,105,109,112,113,117,13104,13128,13151,13169,13174,13179,13194,1024,59,99,101,114,13113,13115,13120,13124,32768,8833,117,101,59,32768,8929,59,32896,10928,824,59,32896,55349,56515,111,114,116,1086,13137,0,0,13142,105,100,59,32768,8740,97,114,97,108,108,101,108,59,32768,8742,109,512,59,101,13157,13159,32768,8769,512,59,113,13164,13166,32768,8772,59,32768,8772,105,100,59,32768,8740,97,114,59,32768,8742,115,117,512,98,112,13186,13190,101,59,32768,8930,101,59,32768,8931,768,98,99,112,13201,13241,13254,1024,59,69,101,115,13210,13212,13216,13219,32768,8836,59,32896,10949,824,59,32768,8840,101,116,512,59,101,13226,13229,32896,8834,8402,113,512,59,113,13235,13237,32768,8840,59,32896,10949,824,99,512,59,101,13247,13249,32768,8833,113,59,32896,10928,824,1024,59,69,101,115,13263,13265,13269,13272,32768,8837,59,32896,10950,824,59,32768,8841,101,116,512,59,101,13279,13282,32896,8835,8402,113,512,59,113,13288,13290,32768,8841,59,32896,10950,824,1024,103,105,108,114,13303,13307,13315,13319,108,59,32768,8825,108,100,101,33024,241,59,32768,241,103,59,32768,8824,105,97,110,103,108,101,512,108,114,13330,13344,101,102,116,512,59,101,13338,13340,32768,8938,113,59,32768,8940,105,103,104,116,512,59,101,13353,13355,32768,8939,113,59,32768,8941,512,59,109,13364,13366,32768,957,768,59,101,115,13373,13375,13380,32768,35,114,111,59,32768,8470,112,59,32768,8199,2304,68,72,97,100,103,105,108,114,115,13403,13409,13415,13420,13426,13439,13446,13476,13493,97,115,104,59,32768,8877,97,114,114,59,32768,10500,112,59,32896,8781,8402,97,115,104,59,32768,8876,512,101,116,13431,13435,59,32896,8805,8402,59,32896,62,8402,110,102,105,110,59,32768,10718,768,65,101,116,13453,13458,13462,114,114,59,32768,10498,59,32896,8804,8402,512,59,114,13467,13470,32896,60,8402,105,101,59,32896,8884,8402,512,65,116,13481,13486,114,114,59,32768,10499,114,105,101,59,32896,8885,8402,105,109,59,32896,8764,8402,768,65,97,110,13506,13511,13532,114,114,59,32768,8662,114,512,104,114,13517,13521,107,59,32768,10531,512,59,111,13526,13528,32768,8598,119,59,32768,8598,101,97,114,59,32768,10535,9252,13576,0,0,0,0,0,0,0,0,0,0,0,0,0,13579,0,13596,13617,13653,13659,13673,13695,13708,0,0,13713,13750,0,13788,13794,0,13815,13890,13913,13937,13944,59,32768,9416,512,99,115,13583,13591,117,116,101,33024,243,59,32768,243,116,59,32768,8859,512,105,121,13600,13613,114,512,59,99,13606,13608,32768,8858,33024,244,59,32768,244,59,32768,1086,1280,97,98,105,111,115,13627,13632,13638,13642,13646,115,104,59,32768,8861,108,97,99,59,32768,337,118,59,32768,10808,116,59,32768,8857,111,108,100,59,32768,10684,108,105,103,59,32768,339,512,99,114,13663,13668,105,114,59,32768,10687,59,32896,55349,56620,1600,13680,0,0,13684,0,13692,110,59,32768,731,97,118,101,33024,242,59,32768,242,59,32768,10689,512,98,109,13699,13704,97,114,59,32768,10677,59,32768,937,110,116,59,32768,8750,1024,97,99,105,116,13721,13726,13741,13746,114,114,59,32768,8634,512,105,114,13731,13735,114,59,32768,10686,111,115,115,59,32768,10683,110,101,59,32768,8254,59,32768,10688,768,97,101,105,13756,13761,13766,99,114,59,32768,333,103,97,59,32768,969,768,99,100,110,13773,13779,13782,114,111,110,59,32768,959,59,32768,10678,117,115,59,32768,8854,112,102,59,32896,55349,56672,768,97,101,108,13800,13804,13809,114,59,32768,10679,114,112,59,32768,10681,117,115,59,32768,8853,1792,59,97,100,105,111,115,118,13829,13831,13836,13869,13875,13879,13886,32768,8744,114,114,59,32768,8635,1024,59,101,102,109,13845,13847,13859,13864,32768,10845,114,512,59,111,13853,13855,32768,8500,102,59,32768,8500,33024,170,59,32768,170,33024,186,59,32768,186,103,111,102,59,32768,8886,114,59,32768,10838,108,111,112,101,59,32768,10839,59,32768,10843,768,99,108,111,13896,13900,13908,114,59,32768,8500,97,115,104,33024,248,59,32768,248,108,59,32768,8856,105,573,13917,13924,100,101,33024,245,59,32768,245,101,115,512,59,97,13930,13932,32768,8855,115,59,32768,10806,109,108,33024,246,59,32768,246,98,97,114,59,32768,9021,5426,13972,0,14013,0,14017,14053,0,14058,14086,0,0,14107,14199,0,14202,0,0,14229,14425,0,14438,114,1024,59,97,115,116,13981,13983,13997,14009,32768,8741,33280,182,59,108,13989,13991,32768,182,108,101,108,59,32768,8741,1082,14003,0,0,14007,109,59,32768,10995,59,32768,11005,59,32768,8706,121,59,32768,1087,114,1280,99,105,109,112,116,14028,14033,14038,14043,14046,110,116,59,32768,37,111,100,59,32768,46,105,108,59,32768,8240,59,32768,8869,101,110,107,59,32768,8241,114,59,32896,55349,56621,768,105,109,111,14064,14074,14080,512,59,118,14069,14071,32768,966,59,32768,981,109,97,116,59,32768,8499,110,101,59,32768,9742,768,59,116,118,14092,14094,14103,32768,960,99,104,102,111,114,107,59,32768,8916,59,32768,982,512,97,117,14111,14132,110,512,99,107,14117,14128,107,512,59,104,14123,14125,32768,8463,59,32768,8462,118,59,32768,8463,115,2304,59,97,98,99,100,101,109,115,116,14152,14154,14160,14163,14168,14179,14182,14188,14193,32768,43,99,105,114,59,32768,10787,59,32768,8862,105,114,59,32768,10786,512,111,117,14173,14176,59,32768,8724,59,32768,10789,59,32768,10866,110,33024,177,59,32768,177,105,109,59,32768,10790,119,111,59,32768,10791,59,32768,177,768,105,112,117,14208,14216,14221,110,116,105,110,116,59,32768,10773,102,59,32896,55349,56673,110,100,33024,163,59,32768,163,2560,59,69,97,99,101,105,110,111,115,117,14249,14251,14254,14258,14263,14336,14348,14367,14413,14418,32768,8826,59,32768,10931,112,59,32768,10935,117,101,59,32768,8828,512,59,99,14268,14270,32768,10927,1536,59,97,99,101,110,115,14283,14285,14293,14302,14306,14331,32768,8826,112,112,114,111,120,59,32768,10935,117,114,108,121,101,113,59,32768,8828,113,59,32768,10927,768,97,101,115,14313,14321,14326,112,112,114,111,120,59,32768,10937,113,113,59,32768,10933,105,109,59,32768,8936,105,109,59,32768,8830,109,101,512,59,115,14343,14345,32768,8242,59,32768,8473,768,69,97,115,14355,14358,14362,59,32768,10933,112,59,32768,10937,105,109,59,32768,8936,768,100,102,112,14374,14377,14402,59,32768,8719,768,97,108,115,14384,14390,14396,108,97,114,59,32768,9006,105,110,101,59,32768,8978,117,114,102,59,32768,8979,512,59,116,14407,14409,32768,8733,111,59,32768,8733,105,109,59,32768,8830,114,101,108,59,32768,8880,512,99,105,14429,14434,114,59,32896,55349,56517,59,32768,968,110,99,115,112,59,32768,8200,1536,102,105,111,112,115,117,14457,14462,14467,14473,14480,14486,114,59,32896,55349,56622,110,116,59,32768,10764,112,102,59,32896,55349,56674,114,105,109,101,59,32768,8279,99,114,59,32896,55349,56518,768,97,101,111,14493,14513,14526,116,512,101,105,14499,14508,114,110,105,111,110,115,59,32768,8461,110,116,59,32768,10774,115,116,512,59,101,14520,14522,32768,63,113,59,32768,8799,116,33024,34,59,32768,34,5376,65,66,72,97,98,99,100,101,102,104,105,108,109,110,111,112,114,115,116,117,120,14575,14597,14603,14608,14775,14829,14865,14901,14943,14966,15e3,15139,15159,15176,15182,15236,15261,15267,15309,15352,15360,768,97,114,116,14582,14587,14591,114,114,59,32768,8667,114,59,32768,8658,97,105,108,59,32768,10524,97,114,114,59,32768,10511,97,114,59,32768,10596,1792,99,100,101,110,113,114,116,14623,14637,14642,14650,14672,14679,14751,512,101,117,14628,14632,59,32896,8765,817,116,101,59,32768,341,105,99,59,32768,8730,109,112,116,121,118,59,32768,10675,103,1024,59,100,101,108,14660,14662,14665,14668,32768,10217,59,32768,10642,59,32768,10661,101,59,32768,10217,117,111,33024,187,59,32768,187,114,2816,59,97,98,99,102,104,108,112,115,116,119,14703,14705,14709,14720,14723,14727,14731,14735,14739,14744,14748,32768,8594,112,59,32768,10613,512,59,102,14714,14716,32768,8677,115,59,32768,10528,59,32768,10547,115,59,32768,10526,107,59,32768,8618,112,59,32768,8620,108,59,32768,10565,105,109,59,32768,10612,108,59,32768,8611,59,32768,8605,512,97,105,14756,14761,105,108,59,32768,10522,111,512,59,110,14767,14769,32768,8758,97,108,115,59,32768,8474,768,97,98,114,14782,14787,14792,114,114,59,32768,10509,114,107,59,32768,10099,512,97,107,14797,14809,99,512,101,107,14803,14806,59,32768,125,59,32768,93,512,101,115,14814,14817,59,32768,10636,108,512,100,117,14823,14826,59,32768,10638,59,32768,10640,1024,97,101,117,121,14838,14844,14858,14862,114,111,110,59,32768,345,512,100,105,14849,14854,105,108,59,32768,343,108,59,32768,8969,98,59,32768,125,59,32768,1088,1024,99,108,113,115,14874,14878,14885,14897,97,59,32768,10551,100,104,97,114,59,32768,10601,117,111,512,59,114,14892,14894,32768,8221,59,32768,8221,104,59,32768,8627,768,97,99,103,14908,14934,14938,108,1024,59,105,112,115,14918,14920,14925,14931,32768,8476,110,101,59,32768,8475,97,114,116,59,32768,8476,59,32768,8477,116,59,32768,9645,33024,174,59,32768,174,768,105,108,114,14950,14956,14962,115,104,116,59,32768,10621,111,111,114,59,32768,8971,59,32896,55349,56623,512,97,111,14971,14990,114,512,100,117,14977,14980,59,32768,8641,512,59,108,14985,14987,32768,8640,59,32768,10604,512,59,118,14995,14997,32768,961,59,32768,1009,768,103,110,115,15007,15123,15127,104,116,1536,97,104,108,114,115,116,15022,15039,15060,15086,15099,15111,114,114,111,119,512,59,116,15031,15033,32768,8594,97,105,108,59,32768,8611,97,114,112,111,111,110,512,100,117,15050,15056,111,119,110,59,32768,8641,112,59,32768,8640,101,102,116,512,97,104,15068,15076,114,114,111,119,115,59,32768,8644,97,114,112,111,111,110,115,59,32768,8652,105,103,104,116,97,114,114,111,119,115,59,32768,8649,113,117,105,103,97,114,114,111,119,59,32768,8605,104,114,101,101,116,105,109,101,115,59,32768,8908,103,59,32768,730,105,110,103,100,111,116,115,101,113,59,32768,8787,768,97,104,109,15146,15151,15156,114,114,59,32768,8644,97,114,59,32768,8652,59,32768,8207,111,117,115,116,512,59,97,15168,15170,32768,9137,99,104,101,59,32768,9137,109,105,100,59,32768,10990,1024,97,98,112,116,15191,15204,15209,15229,512,110,114,15196,15200,103,59,32768,10221,114,59,32768,8702,114,107,59,32768,10215,768,97,102,108,15216,15220,15224,114,59,32768,10630,59,32896,55349,56675,117,115,59,32768,10798,105,109,101,115,59,32768,10805,512,97,112,15241,15253,114,512,59,103,15247,15249,32768,41,116,59,32768,10644,111,108,105,110,116,59,32768,10770,97,114,114,59,32768,8649,1024,97,99,104,113,15276,15282,15287,15290,113,117,111,59,32768,8250,114,59,32896,55349,56519,59,32768,8625,512,98,117,15295,15298,59,32768,93,111,512,59,114,15304,15306,32768,8217,59,32768,8217,768,104,105,114,15316,15322,15328,114,101,101,59,32768,8908,109,101,115,59,32768,8906,105,1024,59,101,102,108,15338,15340,15343,15346,32768,9657,59,32768,8885,59,32768,9656,116,114,105,59,32768,10702,108,117,104,97,114,59,32768,10600,59,32768,8478,6706,15391,15398,15404,15499,15516,15592,0,15606,15660,0,0,15752,15758,0,15827,15863,15886,16e3,16006,16038,16086,0,16467,0,0,16506,99,117,116,101,59,32768,347,113,117,111,59,32768,8218,2560,59,69,97,99,101,105,110,112,115,121,15424,15426,15429,15441,15446,15458,15463,15482,15490,15495,32768,8827,59,32768,10932,833,15434,0,15437,59,32768,10936,111,110,59,32768,353,117,101,59,32768,8829,512,59,100,15451,15453,32768,10928,105,108,59,32768,351,114,99,59,32768,349,768,69,97,115,15470,15473,15477,59,32768,10934,112,59,32768,10938,105,109,59,32768,8937,111,108,105,110,116,59,32768,10771,105,109,59,32768,8831,59,32768,1089,111,116,768,59,98,101,15507,15509,15512,32768,8901,59,32768,8865,59,32768,10854,1792,65,97,99,109,115,116,120,15530,15535,15556,15562,15566,15572,15587,114,114,59,32768,8664,114,512,104,114,15541,15545,107,59,32768,10533,512,59,111,15550,15552,32768,8600,119,59,32768,8600,116,33024,167,59,32768,167,105,59,32768,59,119,97,114,59,32768,10537,109,512,105,110,15578,15584,110,117,115,59,32768,8726,59,32768,8726,116,59,32768,10038,114,512,59,111,15597,15600,32896,55349,56624,119,110,59,32768,8994,1024,97,99,111,121,15614,15619,15632,15654,114,112,59,32768,9839,512,104,121,15624,15629,99,121,59,32768,1097,59,32768,1096,114,116,1086,15640,0,0,15645,105,100,59,32768,8739,97,114,97,108,108,101,108,59,32768,8741,33024,173,59,32768,173,512,103,109,15664,15681,109,97,768,59,102,118,15673,15675,15678,32768,963,59,32768,962,59,32768,962,2048,59,100,101,103,108,110,112,114,15698,15700,15705,15715,15725,15735,15739,15745,32768,8764,111,116,59,32768,10858,512,59,113,15710,15712,32768,8771,59,32768,8771,512,59,69,15720,15722,32768,10910,59,32768,10912,512,59,69,15730,15732,32768,10909,59,32768,10911,101,59,32768,8774,108,117,115,59,32768,10788,97,114,114,59,32768,10610,97,114,114,59,32768,8592,1024,97,101,105,116,15766,15788,15796,15808,512,108,115,15771,15783,108,115,101,116,109,105,110,117,115,59,32768,8726,104,112,59,32768,10803,112,97,114,115,108,59,32768,10724,512,100,108,15801,15804,59,32768,8739,101,59,32768,8995,512,59,101,15813,15815,32768,10922,512,59,115,15820,15822,32768,10924,59,32896,10924,65024,768,102,108,112,15833,15839,15857,116,99,121,59,32768,1100,512,59,98,15844,15846,32768,47,512,59,97,15851,15853,32768,10692,114,59,32768,9023,102,59,32896,55349,56676,97,512,100,114,15868,15882,101,115,512,59,117,15875,15877,32768,9824,105,116,59,32768,9824,59,32768,8741,768,99,115,117,15892,15921,15977,512,97,117,15897,15909,112,512,59,115,15903,15905,32768,8851,59,32896,8851,65024,112,512,59,115,15915,15917,32768,8852,59,32896,8852,65024,117,512,98,112,15927,15952,768,59,101,115,15934,15936,15939,32768,8847,59,32768,8849,101,116,512,59,101,15946,15948,32768,8847,113,59,32768,8849,768,59,101,115,15959,15961,15964,32768,8848,59,32768,8850,101,116,512,59,101,15971,15973,32768,8848,113,59,32768,8850,768,59,97,102,15984,15986,15996,32768,9633,114,566,15991,15994,59,32768,9633,59,32768,9642,59,32768,9642,97,114,114,59,32768,8594,1024,99,101,109,116,16014,16019,16025,16031,114,59,32896,55349,56520,116,109,110,59,32768,8726,105,108,101,59,32768,8995,97,114,102,59,32768,8902,512,97,114,16042,16053,114,512,59,102,16048,16050,32768,9734,59,32768,9733,512,97,110,16058,16081,105,103,104,116,512,101,112,16067,16076,112,115,105,108,111,110,59,32768,1013,104,105,59,32768,981,115,59,32768,175,1280,98,99,109,110,112,16096,16221,16288,16291,16295,2304,59,69,100,101,109,110,112,114,115,16115,16117,16120,16125,16137,16143,16154,16160,16166,32768,8834,59,32768,10949,111,116,59,32768,10941,512,59,100,16130,16132,32768,8838,111,116,59,32768,10947,117,108,116,59,32768,10945,512,69,101,16148,16151,59,32768,10955,59,32768,8842,108,117,115,59,32768,10943,97,114,114,59,32768,10617,768,101,105,117,16173,16206,16210,116,768,59,101,110,16181,16183,16194,32768,8834,113,512,59,113,16189,16191,32768,8838,59,32768,10949,101,113,512,59,113,16201,16203,32768,8842,59,32768,10955,109,59,32768,10951,512,98,112,16215,16218,59,32768,10965,59,32768,10963,99,1536,59,97,99,101,110,115,16235,16237,16245,16254,16258,16283,32768,8827,112,112,114,111,120,59,32768,10936,117,114,108,121,101,113,59,32768,8829,113,59,32768,10928,768,97,101,115,16265,16273,16278,112,112,114,111,120,59,32768,10938,113,113,59,32768,10934,105,109,59,32768,8937,105,109,59,32768,8831,59,32768,8721,103,59,32768,9834,3328,49,50,51,59,69,100,101,104,108,109,110,112,115,16322,16327,16332,16337,16339,16342,16356,16368,16382,16388,16394,16405,16411,33024,185,59,32768,185,33024,178,59,32768,178,33024,179,59,32768,179,32768,8835,59,32768,10950,512,111,115,16347,16351,116,59,32768,10942,117,98,59,32768,10968,512,59,100,16361,16363,32768,8839,111,116,59,32768,10948,115,512,111,117,16374,16378,108,59,32768,10185,98,59,32768,10967,97,114,114,59,32768,10619,117,108,116,59,32768,10946,512,69,101,16399,16402,59,32768,10956,59,32768,8843,108,117,115,59,32768,10944,768,101,105,117,16418,16451,16455,116,768,59,101,110,16426,16428,16439,32768,8835,113,512,59,113,16434,16436,32768,8839,59,32768,10950,101,113,512,59,113,16446,16448,32768,8843,59,32768,10956,109,59,32768,10952,512,98,112,16460,16463,59,32768,10964,59,32768,10966,768,65,97,110,16473,16478,16499,114,114,59,32768,8665,114,512,104,114,16484,16488,107,59,32768,10534,512,59,111,16493,16495,32768,8601,119,59,32768,8601,119,97,114,59,32768,10538,108,105,103,33024,223,59,32768,223,5938,16538,16552,16557,16579,16584,16591,0,16596,16692,0,0,0,0,0,16731,16780,0,16787,16908,0,0,0,16938,1091,16543,0,0,16549,103,101,116,59,32768,8982,59,32768,964,114,107,59,32768,9140,768,97,101,121,16563,16569,16575,114,111,110,59,32768,357,100,105,108,59,32768,355,59,32768,1090,111,116,59,32768,8411,108,114,101,99,59,32768,8981,114,59,32896,55349,56625,1024,101,105,107,111,16604,16641,16670,16684,835,16609,0,16624,101,512,52,102,16614,16617,59,32768,8756,111,114,101,59,32768,8756,97,768,59,115,118,16631,16633,16638,32768,952,121,109,59,32768,977,59,32768,977,512,99,110,16646,16665,107,512,97,115,16652,16660,112,112,114,111,120,59,32768,8776,105,109,59,32768,8764,115,112,59,32768,8201,512,97,115,16675,16679,112,59,32768,8776,105,109,59,32768,8764,114,110,33024,254,59,32768,254,829,16696,16701,16727,100,101,59,32768,732,101,115,33536,215,59,98,100,16710,16712,16723,32768,215,512,59,97,16717,16719,32768,8864,114,59,32768,10801,59,32768,10800,116,59,32768,8749,768,101,112,115,16737,16741,16775,97,59,32768,10536,1024,59,98,99,102,16750,16752,16757,16762,32768,8868,111,116,59,32768,9014,105,114,59,32768,10993,512,59,111,16767,16770,32896,55349,56677,114,107,59,32768,10970,97,59,32768,10537,114,105,109,101,59,32768,8244,768,97,105,112,16793,16798,16899,100,101,59,32768,8482,1792,97,100,101,109,112,115,116,16813,16868,16873,16876,16883,16889,16893,110,103,108,101,1280,59,100,108,113,114,16828,16830,16836,16850,16853,32768,9653,111,119,110,59,32768,9663,101,102,116,512,59,101,16844,16846,32768,9667,113,59,32768,8884,59,32768,8796,105,103,104,116,512,59,101,16862,16864,32768,9657,113,59,32768,8885,111,116,59,32768,9708,59,32768,8796,105,110,117,115,59,32768,10810,108,117,115,59,32768,10809,98,59,32768,10701,105,109,101,59,32768,10811,101,122,105,117,109,59,32768,9186,768,99,104,116,16914,16926,16931,512,114,121,16919,16923,59,32896,55349,56521,59,32768,1094,99,121,59,32768,1115,114,111,107,59,32768,359,512,105,111,16942,16947,120,116,59,32768,8812,104,101,97,100,512,108,114,16956,16967,101,102,116,97,114,114,111,119,59,32768,8606,105,103,104,116,97,114,114,111,119,59,32768,8608,4608,65,72,97,98,99,100,102,103,104,108,109,111,112,114,115,116,117,119,17016,17021,17026,17043,17057,17072,17095,17110,17119,17139,17172,17187,17202,17290,17330,17336,17365,17381,114,114,59,32768,8657,97,114,59,32768,10595,512,99,114,17031,17039,117,116,101,33024,250,59,32768,250,114,59,32768,8593,114,820,17049,0,17053,121,59,32768,1118,118,101,59,32768,365,512,105,121,17062,17069,114,99,33024,251,59,32768,251,59,32768,1091,768,97,98,104,17079,17084,17090,114,114,59,32768,8645,108,97,99,59,32768,369,97,114,59,32768,10606,512,105,114,17100,17106,115,104,116,59,32768,10622,59,32896,55349,56626,114,97,118,101,33024,249,59,32768,249,562,17123,17135,114,512,108,114,17128,17131,59,32768,8639,59,32768,8638,108,107,59,32768,9600,512,99,116,17144,17167,1088,17150,0,0,17163,114,110,512,59,101,17156,17158,32768,8988,114,59,32768,8988,111,112,59,32768,8975,114,105,59,32768,9720,512,97,108,17177,17182,99,114,59,32768,363,33024,168,59,32768,168,512,103,112,17192,17197,111,110,59,32768,371,102,59,32896,55349,56678,1536,97,100,104,108,115,117,17215,17222,17233,17257,17262,17280,114,114,111,119,59,32768,8593,111,119,110,97,114,114,111,119,59,32768,8597,97,114,112,111,111,110,512,108,114,17244,17250,101,102,116,59,32768,8639,105,103,104,116,59,32768,8638,117,115,59,32768,8846,105,768,59,104,108,17270,17272,17275,32768,965,59,32768,978,111,110,59,32768,965,112,97,114,114,111,119,115,59,32768,8648,768,99,105,116,17297,17320,17325,1088,17303,0,0,17316,114,110,512,59,101,17309,17311,32768,8989,114,59,32768,8989,111,112,59,32768,8974,110,103,59,32768,367,114,105,59,32768,9721,99,114,59,32896,55349,56522,768,100,105,114,17343,17348,17354,111,116,59,32768,8944,108,100,101,59,32768,361,105,512,59,102,17360,17362,32768,9653,59,32768,9652,512,97,109,17370,17375,114,114,59,32768,8648,108,33024,252,59,32768,252,97,110,103,108,101,59,32768,10663,3840,65,66,68,97,99,100,101,102,108,110,111,112,114,115,122,17420,17425,17437,17443,17613,17617,17623,17667,17672,17678,17693,17699,17705,17711,17754,114,114,59,32768,8661,97,114,512,59,118,17432,17434,32768,10984,59,32768,10985,97,115,104,59,32768,8872,512,110,114,17448,17454,103,114,116,59,32768,10652,1792,101,107,110,112,114,115,116,17469,17478,17485,17494,17515,17526,17578,112,115,105,108,111,110,59,32768,1013,97,112,112,97,59,32768,1008,111,116,104,105,110,103,59,32768,8709,768,104,105,114,17501,17505,17508,105,59,32768,981,59,32768,982,111,112,116,111,59,32768,8733,512,59,104,17520,17522,32768,8597,111,59,32768,1009,512,105,117,17531,17537,103,109,97,59,32768,962,512,98,112,17542,17560,115,101,116,110,101,113,512,59,113,17553,17556,32896,8842,65024,59,32896,10955,65024,115,101,116,110,101,113,512,59,113,17571,17574,32896,8843,65024,59,32896,10956,65024,512,104,114,17583,17589,101,116,97,59,32768,977,105,97,110,103,108,101,512,108,114,17600,17606,101,102,116,59,32768,8882,105,103,104,116,59,32768,8883,121,59,32768,1074,97,115,104,59,32768,8866,768,101,108,114,17630,17648,17654,768,59,98,101,17637,17639,17644,32768,8744,97,114,59,32768,8891,113,59,32768,8794,108,105,112,59,32768,8942,512,98,116,17659,17664,97,114,59,32768,124,59,32768,124,114,59,32896,55349,56627,116,114,105,59,32768,8882,115,117,512,98,112,17685,17689,59,32896,8834,8402,59,32896,8835,8402,112,102,59,32896,55349,56679,114,111,112,59,32768,8733,116,114,105,59,32768,8883,512,99,117,17716,17721,114,59,32896,55349,56523,512,98,112,17726,17740,110,512,69,101,17732,17736,59,32896,10955,65024,59,32896,8842,65024,110,512,69,101,17746,17750,59,32896,10956,65024,59,32896,8843,65024,105,103,122,97,103,59,32768,10650,1792,99,101,102,111,112,114,115,17777,17783,17815,17820,17826,17829,17842,105,114,99,59,32768,373,512,100,105,17788,17809,512,98,103,17793,17798,97,114,59,32768,10847,101,512,59,113,17804,17806,32768,8743,59,32768,8793,101,114,112,59,32768,8472,114,59,32896,55349,56628,112,102,59,32896,55349,56680,59,32768,8472,512,59,101,17834,17836,32768,8768,97,116,104,59,32768,8768,99,114,59,32896,55349,56524,5428,17871,17891,0,17897,0,17902,17917,0,0,17920,17935,17940,17945,0,0,17977,17992,0,18008,18024,18029,768,97,105,117,17877,17881,17886,112,59,32768,8898,114,99,59,32768,9711,112,59,32768,8899,116,114,105,59,32768,9661,114,59,32896,55349,56629,512,65,97,17906,17911,114,114,59,32768,10234,114,114,59,32768,10231,59,32768,958,512,65,97,17924,17929,114,114,59,32768,10232,114,114,59,32768,10229,97,112,59,32768,10236,105,115,59,32768,8955,768,100,112,116,17951,17956,17970,111,116,59,32768,10752,512,102,108,17961,17965,59,32896,55349,56681,117,115,59,32768,10753,105,109,101,59,32768,10754,512,65,97,17981,17986,114,114,59,32768,10233,114,114,59,32768,10230,512,99,113,17996,18001,114,59,32896,55349,56525,99,117,112,59,32768,10758,512,112,116,18012,18018,108,117,115,59,32768,10756,114,105,59,32768,9651,101,101,59,32768,8897,101,100,103,101,59,32768,8896,2048,97,99,101,102,105,111,115,117,18052,18068,18081,18087,18092,18097,18103,18109,99,512,117,121,18058,18065,116,101,33024,253,59,32768,253,59,32768,1103,512,105,121,18073,18078,114,99,59,32768,375,59,32768,1099,110,33024,165,59,32768,165,114,59,32896,55349,56630,99,121,59,32768,1111,112,102,59,32896,55349,56682,99,114,59,32896,55349,56526,512,99,109,18114,18118,121,59,32768,1102,108,33024,255,59,32768,255,2560,97,99,100,101,102,104,105,111,115,119,18145,18152,18166,18171,18186,18191,18196,18204,18210,18216,99,117,116,101,59,32768,378,512,97,121,18157,18163,114,111,110,59,32768,382,59,32768,1079,111,116,59,32768,380,512,101,116,18176,18182,116,114,102,59,32768,8488,97,59,32768,950,114,59,32896,55349,56631,99,121,59,32768,1078,103,114,97,114,114,59,32768,8669,112,102,59,32896,55349,56683,99,114,59,32896,55349,56527,512,106,110,18221,18224,59,32768,8205,106,59,32768,8204])},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=new Uint16Array([1024,97,103,108,113,9,23,27,31,1086,15,0,0,19,112,59,32768,38,111,115,59,32768,39,116,59,32768,62,116,59,32768,60,117,111,116,59,32768,34])},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(386),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ActorRdfParseHtmlMicrodata=void 0;const n=r(90),i=r(388);class a extends n.ActorRdfParseHtml{constructor(e){super(e)}async test(e){return!0}async run(e){const t=e.headers?e.headers.get("content-type"):null,r=null==t?void 0:t.includes("xml"),n=new i.MicrodataRdfParser({baseIRI:e.baseIRI,xmlMode:r});n.on("error",e.error),n.on("data",e.emit);const a=n.onEnd;return n.onEnd=()=>{a.call(n),e.end()},{htmlParseListener:n}}}t.ActorRdfParseHtmlMicrodata=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ActorRdfParseHtml=void 0;const n=r(0);class i extends n.Actor{constructor(e){super(e)}}t.ActorRdfParseHtml=i},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(389),t),i(r(167),t),i(r(168),t),i(r(169),t),i(r(170),t),i(r(390),t),i(r(391),t),i(r(392),t),i(r(393),t),i(r(66),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MicrodataRdfParser=void 0;const n=r(3),i=r(394),a=r(167),s=r(168),o=r(169),c=r(170),u=r(66),l=r(400);class d extends n.Transform{constructor(e){super({readableObjectMode:!0}),this.itemScopeStack=[],this.textBufferStack=[],this.isEmittingReferences=!1,this.pendingItemRefsDomain={},this.pendingItemRefsRangeFinalized={},this.pendingItemRefsRangeCollecting={},e=e||{},this.options=e,this.util=new u.Util(e.dataFactory,e.baseIRI),this.defaultGraph=e.defaultGraph||this.util.dataFactory.defaultGraph(),this.htmlParseListener=e.htmlParseListener,this.vocabRegistry=e.vocabRegistry||l,this.parser=this.initializeParser(!!e.xmlMode)}import(e){const t=new n.PassThrough({readableObjectMode:!0});e.on("error",e=>r.emit("error",e)),e.on("data",e=>t.push(e)),e.on("end",()=>t.push(null));const r=t.pipe(new d(this.options));return r}_transform(e,t,r){this.parser.write(e),r()}_flush(e){this.parser.end(),e()}getItemScope(e){let t=this.itemScopeStack.length-(e?2:1);for(;t>0&&!this.itemScopeStack[t];)t--;return this.itemScopeStack[t]}getDepth(){return this.itemScopeStack.length}onTagOpen(e,t){if(!this.isEmittingReferences){if("id"in t){const e=t.id;this.pendingItemRefsRangeCollecting[e]={events:[],counter:0,ids:[]}}for(const r of Object.values(this.pendingItemRefsRangeCollecting))r.counter++,r.events.push({type:"open",name:e,attributes:t})}let r;if(this.textBufferStack.push(void 0),"itemscope"in t){let e;if(this.emittingReferencesItemScopeIdGenerator)e=this.emittingReferencesItemScopeIdGenerator();else{e="itemid"in t&&this.util.createSubject(t.itemid)||this.util.dataFactory.blankNode();for(const t of Object.values(this.pendingItemRefsRangeCollecting))t.ids.push(e)}r={subject:e},this.isEmittingReferences&&(r.blockEmission=!0);const n=this.getItemScope();n&&n.vocab&&(r.vocab=n.vocab),this.itemScopeStack.push(r)}else r=this.getItemScope(),this.itemScopeStack.push(void 0);if(r){if("itemtype"in t)for(const e of this.util.createVocabIris(t.itemtype,r,!1))r.vocab||(r.vocab=this.util.deriveVocab(e.value,this.vocabRegistry)),r.blockEmission||this.emitTriple(r.subject,this.util.dataFactory.namedNode(u.Util.RDF+"type"),e);if("lang"in t&&(r.language=t.lang),"xml:lang"in t&&(r.language=t["xml:lang"]),"itemscope"in t&&!this.isEmittingReferences&&"itemref"in t)for(const e of t.itemref.split(/\s+/u))e in this.pendingItemRefsDomain||(this.pendingItemRefsDomain[e]=[]),this.pendingItemRefsDomain[e].push(r),this.tryToEmitReferences(e,r)}"itemprop"in t&&this.handleItemProperties(t.itemprop,!1,r,e,t),"itemprop-reverse"in t&&this.handleItemProperties(t["itemprop-reverse"],!0,r,e,t)}onText(e){if(!this.isEmittingReferences)for(const t of Object.values(this.pendingItemRefsRangeCollecting))t.events.push({type:"text",data:e});for(const t of this.textBufferStack)t&&t.push(e)}onTagClose(){if(!this.isEmittingReferences)for(const[e,t]of Object.entries(this.pendingItemRefsRangeCollecting))t.counter--,t.events.push({type:"close"}),0===t.counter&&(this.pendingItemRefsRangeFinalized[e]=t,delete this.pendingItemRefsRangeCollecting[e],this.tryToEmitReferences(e));const e=this.getItemScope(!0);if(e){const t=this.getDepth();if(e.predicates&&t in e.predicates)for(const[r,n]of Object.entries(e.predicates[t])){const i=this.util.createLiteral(this.textBufferStack[t].join(""),e);this.emitPredicateTriples(e,n,i,"reverse"===r),delete e.predicates[t][r]}}this.itemScopeStack.pop(),this.textBufferStack.pop()}onEnd(){}initializeParser(e){return new i.Parser({onclosetag:()=>{try{this.onTagClose(),this.htmlParseListener&&this.htmlParseListener.onTagClose()}catch(e){this.emit("error",e)}},onend:()=>{try{this.onEnd(),this.htmlParseListener&&this.htmlParseListener.onEnd()}catch(e){this.emit("error",e)}},onopentag:(e,t)=>{try{this.onTagOpen(e,t),this.htmlParseListener&&this.htmlParseListener.onTagOpen(e,t)}catch(e){this.emit("error",e)}},ontext:e=>{try{this.onText(e),this.htmlParseListener&&this.htmlParseListener.onText(e)}catch(e){this.emit("error",e)}}},{decodeEntities:!0,recognizeSelfClosing:!0,xmlMode:e})}handleItemProperties(e,t,r,n,i){const a=this.getItemScope(!0);if(a){const s=this.getDepth(),o=this.util.createVocabIris(e,a,!0);a.predicates||(a.predicates={}),a.predicates[s]||(a.predicates[s]={});const c=t?"reverse":"forward";a.predicates[s][c]=o;for(const t of this.util.getVocabularyExpansionType(e,a,this.vocabRegistry))o.push(t);if(r&&"itemscope"in i)this.emitPredicateTriples(a,o,r.subject,t),delete a.predicates[s][c];else for(const e of d.ITEM_PROPERTY_HANDLERS)if(e.canHandle(n,i)){const r=e.getObject(i,this.util,a);this.emitPredicateTriples(a,o,r,t),delete a.predicates[s][c]}a.predicates[s][c]&&(this.textBufferStack[s]=[])}}emitPredicateTriples(e,t,r,n){if(!e.blockEmission)for(const i of t)n?"Literal"!==r.termType&&this.emitTriple(r,i,e.subject):this.emitTriple(e.subject,i,r)}emitTriple(e,t,r){this.push(this.util.dataFactory.quad(e,t,r,this.defaultGraph))}tryToEmitReferences(e,t){const r=this.pendingItemRefsRangeFinalized[e];if(r){let n;if(t){n=[t];const r=this.pendingItemRefsDomain[e].indexOf(t);this.pendingItemRefsDomain[e].splice(r,1)}else n=this.pendingItemRefsDomain[e],delete this.pendingItemRefsDomain[e];if(n){const e=this.itemScopeStack,t=this.textBufferStack;this.isEmittingReferences=!0;for(const e of n){this.itemScopeStack=[e],this.textBufferStack=[void 0];const t=r.ids.slice();this.emittingReferencesItemScopeIdGenerator=()=>t.shift();for(const e of r.events)switch(e.type){case"open":this.onTagOpen(e.name,e.attributes);break;case"text":this.onText(e.data);break;case"close":this.onTagClose()}}this.emittingReferencesItemScopeIdGenerator=void 0,this.itemScopeStack=e,this.textBufferStack=t,this.isEmittingReferences=!1}}}}t.MicrodataRdfParser=d,d.ITEM_PROPERTY_HANDLERS=[new a.ItemPropertyHandlerContent,new c.ItemPropertyHandlerUrl("a","href"),new c.ItemPropertyHandlerUrl("area","href"),new c.ItemPropertyHandlerUrl("audio","src"),new c.ItemPropertyHandlerUrl("embed","src"),new c.ItemPropertyHandlerUrl("iframe","src"),new c.ItemPropertyHandlerUrl("img","src"),new c.ItemPropertyHandlerUrl("link","href"),new c.ItemPropertyHandlerUrl("object","data"),new c.ItemPropertyHandlerUrl("source","src"),new c.ItemPropertyHandlerUrl("track","src"),new c.ItemPropertyHandlerUrl("video","src"),new s.ItemPropertyHandlerNumber("data","value"),new s.ItemPropertyHandlerNumber("meter","value"),new o.ItemPropertyHandlerTime]},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t},s=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.RssHandler=t.DefaultHandler=t.DomUtils=t.ElementType=t.Tokenizer=t.createDomStream=t.parseDOM=t.parseDocument=t.DomHandler=t.Parser=void 0;var c=r(171);Object.defineProperty(t,"Parser",{enumerable:!0,get:function(){return c.Parser}});var u=r(22);function l(e,t){var r=new u.DomHandler(void 0,t);return new c.Parser(r,t).end(e),r.root}Object.defineProperty(t,"DomHandler",{enumerable:!0,get:function(){return u.DomHandler}}),Object.defineProperty(t,"DefaultHandler",{enumerable:!0,get:function(){return u.DomHandler}}),t.parseDocument=l,t.parseDOM=function(e,t){return l(e,t).children},t.createDomStream=function(e,t,r){var n=new u.DomHandler(e,t,r);return new c.Parser(n,t)};var d=r(172);Object.defineProperty(t,"Tokenizer",{enumerable:!0,get:function(){return o(d).default}});var p=a(r(42));t.ElementType=p,s(r(173),t),t.DomUtils=a(r(65));var h=r(173);Object.defineProperty(t,"RssHandler",{enumerable:!0,get:function(){return h.FeedHandler}})},function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(r(396)),a=String.fromCodePoint||function(e){var t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+=String.fromCharCode(e)};t.default=function(e){return e>=55296&&e<=57343||e>1114111?"�":(e in i.default&&(e=i.default[e]),a(e))}},function(e){e.exports={0:65533,128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376}},function(e){e.exports={Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"⁡",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",amp:"&",AMP:"&",andand:"⩕",And:"⩓",and:"∧",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angmsd:"∡",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",apacir:"⩯",ap:"≈",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",barwed:"⌅",Barwed:"⌆",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",Because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxdl:"┐",boxdL:"╕",boxDl:"╖",boxDL:"╗",boxdr:"┌",boxdR:"╒",boxDr:"╓",boxDR:"╔",boxh:"─",boxH:"═",boxhd:"┬",boxHd:"╤",boxhD:"╥",boxHD:"╦",boxhu:"┴",boxHu:"╧",boxhU:"╨",boxHU:"╩",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxul:"┘",boxuL:"╛",boxUl:"╜",boxUL:"╝",boxur:"└",boxuR:"╘",boxUr:"╙",boxUR:"╚",boxv:"│",boxV:"║",boxvh:"┼",boxvH:"╪",boxVh:"╫",boxVH:"╬",boxvl:"┤",boxvL:"╡",boxVl:"╢",boxVL:"╣",boxvr:"├",boxvR:"╞",boxVr:"╟",boxVR:"╠",bprime:"‵",breve:"˘",Breve:"˘",brvbar:"¦",bscr:"𝒷",Bscr:"ℬ",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsolb:"⧅",bsol:"\\",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",capand:"⩄",capbrcup:"⩉",capcap:"⩋",cap:"∩",Cap:"⋒",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",CenterDot:"·",cfr:"𝔠",Cfr:"ℭ",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cir:"○",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",colon:":",Colon:"∷",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",conint:"∮",Conint:"∯",ContourIntegral:"∮",copf:"𝕔",Copf:"ℂ",coprod:"∐",Coproduct:"∐",copy:"©",COPY:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",cross:"✗",Cross:"⨯",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cupbrcap:"⩈",cupcap:"⩆",CupCap:"≍",cup:"∪",Cup:"⋓",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dagger:"†",Dagger:"‡",daleth:"ℸ",darr:"↓",Darr:"↡",dArr:"⇓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",ddagger:"‡",ddarr:"⇊",DD:"ⅅ",dd:"ⅆ",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",diamond:"⋄",Diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrowBar:"⤓",downarrow:"↓",DownArrow:"↓",Downarrow:"⇓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVectorBar:"⥖",DownLeftVector:"↽",DownRightTeeVector:"⥟",DownRightVectorBar:"⥗",DownRightVector:"⇁",DownTeeArrow:"↧",DownTee:"⊤",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",Ecirc:"Ê",ecirc:"ê",ecir:"≖",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",edot:"ė",eDot:"≑",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp13:" ",emsp14:" ",emsp:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",escr:"ℯ",Escr:"ℰ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",exponentiale:"ⅇ",ExponentialE:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",forall:"∀",ForAll:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",Fscr:"ℱ",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",ge:"≥",gE:"≧",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",gescc:"⪩",ges:"⩾",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",gg:"≫",Gg:"⋙",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gla:"⪥",gl:"≷",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gnE:"≩",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gtcc:"⪧",gtcir:"⩺",gt:">",GT:">",Gt:"≫",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",harrcir:"⥈",harr:"↔",hArr:"⇔",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",Hfr:"ℌ",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",Hopf:"ℍ",horbar:"―",HorizontalLine:"─",hscr:"𝒽",Hscr:"ℋ",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"⁣",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",Ifr:"ℑ",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",Im:"ℑ",imof:"⊷",imped:"Ƶ",Implies:"⇒",incare:"℅",in:"∈",infin:"∞",infintie:"⧝",inodot:"ı",intcal:"⊺",int:"∫",Int:"∬",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",Iscr:"ℐ",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",lang:"⟨",Lang:"⟪",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",larrb:"⇤",larrbfs:"⤟",larr:"←",Larr:"↞",lArr:"⇐",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",latail:"⤙",lAtail:"⤛",lat:"⪫",late:"⪭",lates:"⪭︀",lbarr:"⤌",lBarr:"⤎",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",lE:"≦",LeftAngleBracket:"⟨",LeftArrowBar:"⇤",leftarrow:"←",LeftArrow:"←",Leftarrow:"⇐",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVectorBar:"⥙",LeftDownVector:"⇃",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTeeArrow:"↤",LeftTee:"⊣",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangleBar:"⧏",LeftTriangle:"⊲",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVectorBar:"⥘",LeftUpVector:"↿",LeftVectorBar:"⥒",LeftVector:"↼",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",lescc:"⪨",les:"⩽",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",llarr:"⇇",ll:"≪",Ll:"⋘",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoustache:"⎰",lmoust:"⎰",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lnE:"≨",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftrightarrow:"⟷",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longmapsto:"⟼",longrightarrow:"⟶",LongRightArrow:"⟶",Longrightarrow:"⟹",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",Lscr:"ℒ",lsh:"↰",Lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",ltcc:"⪦",ltcir:"⩹",lt:"<",LT:"<",Lt:"≪",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",midast:"*",midcir:"⫰",mid:"∣",middot:"·",minusb:"⊟",minus:"−",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",mscr:"𝓂",Mscr:"ℳ",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natural:"♮",naturals:"ℕ",natur:"♮",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",nearhk:"⤤",nearr:"↗",neArr:"⇗",nearrow:"↗",ne:"≠",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nharr:"↮",nhArr:"⇎",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlarr:"↚",nlArr:"⇍",nldr:"‥",nlE:"≦̸",nle:"≰",nleftarrow:"↚",nLeftarrow:"⇍",nleftrightarrow:"↮",nLeftrightarrow:"⇎",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",nopf:"𝕟",Nopf:"ℕ",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangleBar:"⧏̸",NotLeftTriangle:"⋪",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangleBar:"⧐̸",NotRightTriangle:"⋫",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",nparallel:"∦",npar:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",nprec:"⊀",npreceq:"⪯̸",npre:"⪯̸",nrarrc:"⤳̸",nrarr:"↛",nrArr:"⇏",nrarrw:"↝̸",nrightarrow:"↛",nRightarrow:"⇏",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwarr:"↖",nwArr:"⇖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",Ocirc:"Ô",ocirc:"ô",ocir:"⊚",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",orarr:"↻",Or:"⩔",or:"∨",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",otimesas:"⨶",Otimes:"⨷",otimes:"⊗",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",para:"¶",parallel:"∥",par:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plus:"+",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",popf:"𝕡",Popf:"ℙ",pound:"£",prap:"⪷",Pr:"⪻",pr:"≺",prcue:"≼",precapprox:"⪷",prec:"≺",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",pre:"⪯",prE:"⪳",precsim:"≾",prime:"′",Prime:"″",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportional:"∝",Proportion:"∷",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",qopf:"𝕢",Qopf:"ℚ",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',QUOT:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",Rang:"⟫",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarr:"→",Rarr:"↠",rArr:"⇒",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",ratail:"⤚",rAtail:"⤜",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rBarr:"⤏",RBarr:"⤐",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",Re:"ℜ",rect:"▭",reg:"®",REG:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",Rfr:"ℜ",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrowBar:"⇥",rightarrow:"→",RightArrow:"→",Rightarrow:"⇒",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVectorBar:"⥕",RightDownVector:"⇂",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTeeArrow:"↦",RightTee:"⊢",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangleBar:"⧐",RightTriangle:"⊳",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVectorBar:"⥔",RightUpVector:"↾",RightVectorBar:"⥓",RightVector:"⇀",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoustache:"⎱",rmoust:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",Ropf:"ℝ",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",rscr:"𝓇",Rscr:"ℛ",rsh:"↱",Rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",scap:"⪸",Scaron:"Š",scaron:"š",Sc:"⪼",sc:"≻",sccue:"≽",sce:"⪰",scE:"⪴",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdotb:"⊡",sdot:"⋅",sdote:"⩦",searhk:"⤥",searr:"↘",seArr:"⇘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",solbar:"⌿",solb:"⧄",sol:"/",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",square:"□",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squ:"□",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",Sub:"⋐",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",Subset:"⋐",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succapprox:"⪸",succ:"≻",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",sum:"∑",Sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",Sup:"⋑",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",Supset:"⋑",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swarr:"↙",swArr:"⇙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"\t",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",therefore:"∴",Therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",ThinSpace:" ",thinsp:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",tilde:"˜",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",timesbar:"⨱",timesb:"⊠",times:"×",timesd:"⨰",tint:"∭",toea:"⤨",topbot:"⌶",topcir:"⫱",top:"⊤",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",TRADE:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",uarr:"↑",Uarr:"↟",uArr:"⇑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrowBar:"⤒",uparrow:"↑",UpArrow:"↑",Uparrow:"⇑",UpArrowDownArrow:"⇅",updownarrow:"↕",UpDownArrow:"↕",Updownarrow:"⇕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",upsi:"υ",Upsi:"ϒ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTeeArrow:"↥",UpTee:"⊥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",vArr:"⇕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vBar:"⫨",Vbar:"⫫",vBarv:"⫩",Vcy:"В",vcy:"в",vdash:"⊢",vDash:"⊨",Vdash:"⊩",VDash:"⊫",Vdashl:"⫦",veebar:"⊻",vee:"∨",Vee:"⋁",veeeq:"≚",vellip:"⋮",verbar:"|",Verbar:"‖",vert:"|",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",Wedge:"⋀",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xharr:"⟷",xhArr:"⟺",Xi:"Ξ",xi:"ξ",xlarr:"⟵",xlArr:"⟸",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrarr:"⟶",xrArr:"⟹",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",yuml:"ÿ",Yuml:"Ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"​",Zeta:"Ζ",zeta:"ζ",zfr:"𝔷",Zfr:"ℨ",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",Zopf:"ℤ",Zscr:"𝒵",zscr:"𝓏",zwj:"‍",zwnj:"‌"}},function(e){e.exports={Aacute:"Á",aacute:"á",Acirc:"Â",acirc:"â",acute:"´",AElig:"Æ",aelig:"æ",Agrave:"À",agrave:"à",amp:"&",AMP:"&",Aring:"Å",aring:"å",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",brvbar:"¦",Ccedil:"Ç",ccedil:"ç",cedil:"¸",cent:"¢",copy:"©",COPY:"©",curren:"¤",deg:"°",divide:"÷",Eacute:"É",eacute:"é",Ecirc:"Ê",ecirc:"ê",Egrave:"È",egrave:"è",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",frac12:"½",frac14:"¼",frac34:"¾",gt:">",GT:">",Iacute:"Í",iacute:"í",Icirc:"Î",icirc:"î",iexcl:"¡",Igrave:"Ì",igrave:"ì",iquest:"¿",Iuml:"Ï",iuml:"ï",laquo:"«",lt:"<",LT:"<",macr:"¯",micro:"µ",middot:"·",nbsp:" ",not:"¬",Ntilde:"Ñ",ntilde:"ñ",Oacute:"Ó",oacute:"ó",Ocirc:"Ô",ocirc:"ô",Ograve:"Ò",ograve:"ò",ordf:"ª",ordm:"º",Oslash:"Ø",oslash:"ø",Otilde:"Õ",otilde:"õ",Ouml:"Ö",ouml:"ö",para:"¶",plusmn:"±",pound:"£",quot:'"',QUOT:'"',raquo:"»",reg:"®",REG:"®",sect:"§",shy:"­",sup1:"¹",sup2:"²",sup3:"³",szlig:"ß",THORN:"Þ",thorn:"þ",times:"×",Uacute:"Ú",uacute:"ú",Ucirc:"Û",ucirc:"û",Ugrave:"Ù",ugrave:"ù",uml:"¨",Uuml:"Ü",uuml:"ü",Yacute:"Ý",yacute:"ý",yen:"¥",yuml:"ÿ"}},function(e){e.exports={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}},function(e){e.exports={"http://schema.org/":{properties:{additionalType:{subPropertyOf:"http://www.w3.org/1999/02/22-rdf-syntax-ns#type"}}},"http://microformats.org/profile/hcard":{}}},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(402),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ActorRdfParseHtmlRdfa=void 0;const n=r(90),i=r(151);class a extends n.ActorRdfParseHtml{constructor(e){super(e)}async test(e){return!0}async run(e){var t;const r=e.headers?e.headers.get("content-type"):null,n=null!==(t=e.headers&&e.headers.get("content-language"))&&void 0!==t?t:void 0,a=r&&r.includes("xml")?"xhtml":"html",s=new i.RdfaParser({baseIRI:e.baseIRI,profile:a,language:n});s.on("error",e.error),s.on("data",e.emit);const o=s.onEnd;return s.onEnd=()=>{o.call(s),e.end()},{htmlParseListener:s}}}t.ActorRdfParseHtmlRdfa=a},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(404),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ActorRdfSerializeN3=void 0;const n=r(174),i=r(59);class a extends n.ActorRdfSerializeFixedMediaTypes{constructor(e){super(e)}async runHandle(e,t,r){return{data:new i.StreamWriter({format:t}).import(e.quadStream),triples:"text/turtle"===t||"application/n-triples"===t||"text/n3"===t}}}t.ActorRdfSerializeN3=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ActorRdfSerialize=void 0;const n=r(38);class i extends n.ActorAbstractMediaTyped{constructor(e){super(e)}}t.ActorRdfSerialize=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ActorRdfSerializeFixedMediaTypes=void 0;const n=r(38);class i extends n.ActorAbstractMediaTypedFixed{constructor(e){super(e)}async testHandleChecked(e){return!0}}t.ActorRdfSerializeFixedMediaTypes=i},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(408),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ActorRdfSerializeJsonLd=void 0;const n=r(174),i=r(409);class a extends n.ActorRdfSerializeFixedMediaTypes{constructor(e){super(e)}async runHandle(e,t,r){return{data:new i.JsonLdSerializer({space:" ".repeat(this.jsonStringifyIndentSpaces)}).import(e.quadStream)}}}t.ActorRdfSerializeJsonLd=a},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(410),t),i(r(179),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JsonLdSerializer=void 0;const n=r(10),i=r(3),a=r(413),s=r(179);class o extends i.Transform{constructor(e={}){super({objectMode:!0}),this.indentation=0,this.options=e,this.options.baseIRI&&!this.options.context&&(this.options.context={"@base":this.options.baseIRI}),this.options.context?(this.originalContext=this.options.context,this.context=(new n.ContextParser).parse(this.options.context,{baseIRI:this.options.baseIRI})):this.context=Promise.resolve(new n.JsonLdContextNormalized({}))}import(e){const t=new i.PassThrough({objectMode:!0});e.on("error",e=>r.emit("error",e)),e.on("data",e=>t.push(e)),e.on("end",()=>t.push(null));const r=t.pipe(new o(this.options));return r}_transform(e,t,r){this.context.then(t=>{this.transformQuad(e,t),r()}).catch(r)}async list(e){const t=await this.context;return{"@list":e.map(e=>s.Util.termToValue(e,t,this.options))}}_flush(e){return this.opened||this.pushDocumentStart(),this.lastPredicate&&this.endPredicate(),this.lastSubject&&this.endSubject(),this.lastGraph&&"DefaultGraph"!==this.lastGraph.termType&&this.endGraph(),this.endDocument(),e(null,null)}transformQuad(e,t){this.opened||this.pushDocumentStart();const r=this.lastGraph&&"DefaultGraph"!==this.lastGraph.termType&&this.lastGraph.equals(e.subject);if(!(r||this.lastGraph&&e.graph.equals(this.lastGraph))){let r="DefaultGraph"!==e.graph.termType&&this.lastSubject&&this.lastSubject.equals(e.graph);this.lastGraph&&("DefaultGraph"!==this.lastGraph.termType?(this.endPredicate(),this.endSubject(),this.endGraph(!0),r=!1):r?(this.endPredicate(!0),this.lastSubject=null):(this.endPredicate(),this.endSubject(!0))),"DefaultGraph"!==e.graph.termType&&(r||this.pushId(e.graph,t),this.pushSeparator(this.options.space?a.SeparatorType.GRAPH_FIELD_NONCOMPACT:a.SeparatorType.GRAPH_FIELD_COMPACT),this.indentation++),this.lastGraph=e.graph}this.lastSubject&&e.subject.equals(this.lastSubject)||(r?(this.endPredicate(),this.endSubject(),this.indentation--,this.pushSeparator(a.SeparatorType.ARRAY_END_COMMA),this.lastGraph=e.graph):(this.lastSubject&&(this.endPredicate(),this.endSubject(!0)),this.pushId(e.subject,t)),this.lastSubject=e.subject),this.lastPredicate&&e.predicate.equals(this.lastPredicate)||(this.lastPredicate&&this.endPredicate(!0),this.pushPredicate(e.predicate,t)),this.pushObject(e.object,t)}pushDocumentStart(){this.opened=!0,this.originalContext&&!this.options.excludeContext?(this.pushSeparator(a.SeparatorType.OBJECT_START),this.indentation++,this.pushSeparator(a.SeparatorType.CONTEXT_FIELD),this.pushIndented(JSON.stringify(this.originalContext,null,this.options.space)+","),this.pushSeparator(this.options.space?a.SeparatorType.GRAPH_FIELD_NONCOMPACT:a.SeparatorType.GRAPH_FIELD_COMPACT),this.indentation++):(this.pushSeparator(a.SeparatorType.ARRAY_START),this.indentation++)}pushId(e,t){const r="BlankNode"===e.termType?"_:"+e.value:t.compactIri(e.value,!1);this.pushSeparator(a.SeparatorType.OBJECT_START),this.indentation++,this.pushIndented(this.options.space?`"@id": "${r}",`:`"@id":"${r}",`)}pushPredicate(e,t){let r=e.value;this.options.useRdfType||r!==s.Util.RDF_TYPE||(r="@type",this.objectOptions=Object.assign(Object.assign({},this.options),{compactIds:!0,vocab:!0}));const n=t.compactIri(r,!0);this.pushIndented(this.options.space?`"${n}": [`:`"${n}":[`),this.indentation++,this.lastPredicate=e}pushObject(e,t){let r;this.hadObjectForPredicate?this.pushSeparator(a.SeparatorType.COMMA):this.hadObjectForPredicate=!0;try{r=e["@list"]?e:s.Util.termToValue(e,t,this.objectOptions||this.options)}catch(e){return this.emit("error",e)}this.pushIndented(JSON.stringify(r,null,this.options.space))}endDocument(){this.opened=!1,this.originalContext&&!this.options.excludeContext?(this.indentation--,this.pushSeparator(a.SeparatorType.ARRAY_END),this.indentation--,this.pushSeparator(a.SeparatorType.OBJECT_END)):(this.indentation--,this.pushSeparator(a.SeparatorType.ARRAY_END))}endPredicate(e){this.indentation--,this.pushSeparator(e?a.SeparatorType.ARRAY_END_COMMA:a.SeparatorType.ARRAY_END),this.hadObjectForPredicate=!1,this.objectOptions=null,this.lastPredicate=null}endSubject(e){this.indentation--,this.pushSeparator(e?a.SeparatorType.OBJECT_END_COMMA:a.SeparatorType.OBJECT_END),this.lastSubject=null}endGraph(e){this.indentation--,this.pushSeparator(a.SeparatorType.ARRAY_END),this.indentation--,this.pushSeparator(e?a.SeparatorType.OBJECT_END_COMMA:a.SeparatorType.OBJECT_END),this.lastGraph=null}pushSeparator(e){this.pushIndented(e.label)}pushIndented(e){const t=this.getIndentPrefix(),r=e.split("\n").map(e=>t+e).join("\n");this.push(r),this.options.space&&this.push("\n")}getIndentPrefix(){return this.options.space?this.options.space.repeat(this.indentation):""}}t.JsonLdSerializer=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SeparatorType=void 0;class n{constructor(e){this.label=e}}t.SeparatorType=n,n.COMMA=new n(","),n.OBJECT_START=new n("{"),n.OBJECT_END=new n("}"),n.OBJECT_END_COMMA=new n("},"),n.ARRAY_START=new n("["),n.ARRAY_END=new n("]"),n.ARRAY_END_COMMA=new n("],"),n.GRAPH_FIELD_NONCOMPACT=new n('"@graph": ['),n.GRAPH_FIELD_COMPACT=new n('"@graph":['),n.CONTEXT_FIELD=new n('"@context":')},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(415),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ActorRdfMetadataPrimaryTopic=void 0;const n=r(3),i=r(180);class a extends i.ActorRdfMetadata{constructor(e){super(e)}async test(e){if(e.triples)throw new Error("This actor only supports non-triple quad streams.");return!0}async run(e){const t=new n.Readable({objectMode:!0}),r=new n.Readable({objectMode:!0}),i=()=>{t._read=r._read=()=>{},e.quads.on("error",e=>{t.emit("error",e),r.emit("error",e)});const n={};let i;const a={};e.quads.on("data",t=>{"http://rdfs.org/ns/void#subset"===t.predicate.value&&t.object.value===e.url?i=t.subject.value:"http://xmlns.com/foaf/0.1/primaryTopic"===t.predicate.value&&(a[t.object.value]=t.subject.value);let r=n[t.graph.value];r||(r=n[t.graph.value]=[]),r.push(t)}),e.quads.on("end",()=>{const e=i?a[i]:void 0;for(const i in n)if(i===e){for(const e of n[i])r.push(e);if(this.metadataToData)for(const e of n[i])t.push(e)}else{for(const e of n[i])t.push(e);if(!e&&this.dataToMetadataOnInvalidMetadataGraph)for(const e of n[i])r.push(e)}t.push(null),r.push(null)})};return t._read=r._read=()=>{i()},{data:t,metadata:r}}}t.ActorRdfMetadataPrimaryTopic=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ActorRdfMetadataQuadPredicate=void 0;const n=r(3),i=r(181);class a extends i.ActorRdfMetadata{constructor(e){super(e)}async run(e){const t=new n.Readable({objectMode:!0}),r=new n.Readable({objectMode:!0}),i=()=>{t._read=r._read=()=>{},e.quads.on("error",e=>{t.emit("error",e),r.emit("error",e)});const n={};e.quads.on("data",i=>{this.isMetadata(i,e.url,n)?r.push(i):t.push(i)}),e.quads.on("end",()=>{t.push(null),r.push(null)})};return t._read=r._read=()=>{i()},{data:t,metadata:r}}}t.ActorRdfMetadataQuadPredicate=a},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(418),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ActorRdfMetadataAll=void 0;const n=r(3),i=r(180);class a extends i.ActorRdfMetadata{constructor(e){super(e)}async test(e){return!0}async run(e){const t=new n.Readable({objectMode:!0}),r=new n.Readable({objectMode:!0});return t._read=r._read=()=>{t._read=r._read=()=>{},e.quads.on("error",e=>{t.emit("error",e),r.emit("error",e)}),e.quads.on("data",e=>{t.push(e),r.push(e)}),e.quads.on("end",()=>{t.push(null),r.push(null)})},{data:t,metadata:r}}}t.ActorRdfMetadataAll=a},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(420),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ActorRdfMetadataExtractPatchSparqlUpdate=void 0;const n=r(43);class i extends n.ActorRdfMetadataExtract{constructor(e){super(e)}async test(e){return!0}async run(e){const t={};return e.headers&&(e.headers["accept-patch"]&&e.headers["accept-patch"].includes("application/sparql-update")||e.headers["ms-author-via"]&&e.headers["ms-author-via"].includes("SPARQL"))&&(t.patchSparqlUpdate=!0),{metadata:t}}}t.ActorRdfMetadataExtractPatchSparqlUpdate=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ActorRdfMetadataExtractQuery=void 0;const n=r(422),i=r(187),a=r(182),s=r(188);class o extends a.ActorRdfMetadataExtract{constructor(e,t,r){super(r),this.graphqlClient=new n.Client({context:e,queryEngine:new s.GraphQlQueryEngine(this.queryEngine)}),this.sparqlOperation=this.graphqlClient.graphQlToSparql({query:t})}async queryData(e,t){const r=await i.storeStream(e),{data:n}=await this.graphqlClient.query(Object.assign(Object.assign({},await this.sparqlOperation),{queryEngineOptions:{source:{type:"rdfjsSource",value:r},initialBindings:t}}));return n}}t.ActorRdfMetadataExtractQuery=o},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(423),t),i(r(447),t)},function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,a){function s(e){try{c(n.next(e))}catch(e){a(e)}}function o(e){try{c(n.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,o)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.Client=void 0;const i=r(183),a=r(10),s=r(130);t.Client=class{constructor(e){this.context=(e.contextParser||new a.ContextParser).parse(e.context,{baseIRI:e.baseIRI}),this.queryEngine=e.queryEngine,this.graphqlToSparqlConverter=e.graphqlToSparqlConverter||new i.Converter({dataFactory:e.dataFactory,requireContext:!0}),this.sparqlJsonToTreeConverter=e.sparqlJsonToTreeConverter||new s.Converter({dataFactory:e.dataFactory,materializeRdfJsTerms:!0})}query(e){return n(this,void 0,void 0,(function*(){const{sparqlAlgebra:t,singularizeVariables:r}="query"in e?yield this.graphQlToSparql({query:e.query,variables:e.variables}):e,n=yield this.queryEngine.query(t,e.queryEngineOptions);return{data:this.sparqlJsonToTreeConverter.sparqlJsonResultsToTree(n,{singularizeVariables:r})}}))}graphQlToSparql({query:e,variables:t}){return n(this,void 0,void 0,(function*(){const t={},r={singularizeVariables:t,variablesDict:{}};return{sparqlAlgebra:yield this.graphqlToSparqlConverter.graphqlToSparqlAlgebra(e,(yield this.context).getContextRaw(),r),singularizeVariables:t}}))}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveNodeHandlerInclude=void 0;const n=r(44);class i extends n.DirectiveNodeHandlerAdapter{constructor(e,t){super("include",e,t)}handle(e,t){const r=this.getDirectiveConditionalValue(e.directive,t);return"Literal"===r.termType&&"false"===r.value?{ignore:!0}:{}}}t.DirectiveNodeHandlerInclude=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveNodeHandlerOptional=void 0;const n=r(44);class i extends n.DirectiveNodeHandlerAdapter{constructor(e,t){super("optional",e,t)}handle(e,t){return{operationOverrider:e=>this.util.operationFactory.createLeftJoin(this.util.operationFactory.createBgp([]),e)}}}t.DirectiveNodeHandlerOptional=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveNodeHandlerPlural=void 0;const n=r(56),i=r(44);class a extends i.DirectiveNodeHandlerAdapter{constructor(e,t){super("plural",e,t)}handle(e,t){return this.isDirectiveScopeAll(e.directive)&&(t.singularizeState=n.SingularizeState.PLURAL),delete t.singularizeVariables[this.util.nameToVariable(e.fieldLabel,t).value],{}}}t.DirectiveNodeHandlerPlural=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveNodeHandlerSingle=void 0;const n=r(56),i=r(44);class a extends i.DirectiveNodeHandlerAdapter{constructor(e,t){super("single",e,t)}handle(e,t){return this.isDirectiveScopeAll(e.directive)&&(t.singularizeState=n.SingularizeState.SINGLE),t.singularizeVariables[this.util.nameToVariable(e.fieldLabel,t).value]=!0,{}}}t.DirectiveNodeHandlerSingle=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DirectiveNodeHandlerSkip=void 0;const n=r(44);class i extends n.DirectiveNodeHandlerAdapter{constructor(e,t){super("skip",e,t)}handle(e,t){const r=this.getDirectiveConditionalValue(e.directive,t);return"Literal"===r.termType&&"true"===r.value?{ignore:!0}:{}}}t.DirectiveNodeHandlerSkip=i},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(23),t),i(r(430),t),i(r(431),t),i(r(432),t),i(r(433),t),i(r(434),t),i(r(435),t),i(r(436),t),i(r(437),t),i(r(438),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NodeValueHandlerBoolean=void 0;const n=r(23);class i extends n.NodeValueHandlerAdapter{constructor(e,t){super("BooleanValue",e,t),this.datatype=this.util.dataFactory.namedNode("http://www.w3.org/2001/XMLSchema#boolean")}handle(e,t,r){return{terms:[this.util.dataFactory.literal(e.value?"true":"false",this.datatype)]}}}t.NodeValueHandlerBoolean=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NodeValueHandlerEnum=void 0;const n=r(23);class i extends n.NodeValueHandlerAdapter{constructor(e,t){super("EnumValue",e,t)}handle(e,t,r){return{terms:[this.util.valueToNamedNode(e.value,r.context)]}}}t.NodeValueHandlerEnum=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NodeValueHandlerFloat=void 0;const n=r(23);class i extends n.NodeValueHandlerAdapter{constructor(e,t){super("FloatValue",e,t),this.datatype=this.util.dataFactory.namedNode("http://www.w3.org/2001/XMLSchema#float")}handle(e,t,r){return{terms:[this.util.dataFactory.literal(e.value,this.datatype)]}}}t.NodeValueHandlerFloat=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NodeValueHandlerInt=void 0;const n=r(23);class i extends n.NodeValueHandlerAdapter{constructor(e,t){super("IntValue",e,t),this.datatype=this.util.dataFactory.namedNode("http://www.w3.org/2001/XMLSchema#integer")}handle(e,t,r){return{terms:[this.util.dataFactory.literal(e.value,this.datatype)]}}}t.NodeValueHandlerInt=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NodeValueHandlerList=void 0;const n=r(23);class i extends n.NodeValueHandlerAdapter{constructor(e,t){super("ListValue",e,t),this.nodeFirst=this.util.dataFactory.namedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#first"),this.nodeRest=this.util.dataFactory.namedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#rest"),this.nodeNil=this.util.dataFactory.namedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#nil")}handle(e,t,r){const n=[];let i=[];for(const a of e.values){const e=this.util.handleNodeValue(a,t,r);for(const t of e.terms)n.push(t);e.auxiliaryPatterns&&(i=i.concat(e.auxiliaryPatterns))}if(this.settings.arraysToRdfLists){const e=this.util.dataFactory.blankNode();let t=e,a=n.length;for(const e of n){i.push(this.util.operationFactory.createPattern(t,this.nodeFirst,e,r.graph));const n=0==--a?this.nodeNil:this.util.dataFactory.blankNode();i.push(this.util.operationFactory.createPattern(t,this.nodeRest,n,r.graph)),t=n}return{terms:[e],auxiliaryPatterns:i}}return{terms:n,auxiliaryPatterns:i}}}t.NodeValueHandlerList=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NodeValueHandlerNull=void 0;const n=r(23);class i extends n.NodeValueHandlerAdapter{constructor(e,t){super("NullValue",e,t),this.nil=this.util.dataFactory.namedNode("http://www.w3.org/1999/02/22-rdf-syntax-ns#nil")}handle(e,t,r){return{terms:[this.nil]}}}t.NodeValueHandlerNull=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NodeValueHandlerObject=void 0;const n=r(23);class i extends n.NodeValueHandlerAdapter{constructor(e,t){super("ObjectValue",e,t)}handle(e,t,r){const n=this.util.dataFactory.blankNode();let i=[];for(const a of e.fields){const e=this.util.handleNodeValue(a.value,t,r);for(const t of e.terms)i.push(this.util.createQuadPattern(n,a.name,t,r.graph,r.context));e.auxiliaryPatterns&&(i=i.concat(e.auxiliaryPatterns))}return{terms:[n],auxiliaryPatterns:i}}}t.NodeValueHandlerObject=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NodeValueHandlerString=void 0;const n=r(23);class i extends n.NodeValueHandlerAdapter{constructor(e,t){super("StringValue",e,t)}handle(e,t,r){const n=r.context.getContextRaw()[t];let i=null,a=null;return n&&"string"!=typeof n&&(n["@language"]?i=n["@language"]:n["@type"]&&(a=this.util.dataFactory.namedNode(n["@type"]))),{terms:[this.util.dataFactory.literal(e.value,i||a)]}}}t.NodeValueHandlerString=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NodeValueHandlerVariable=void 0;const n=r(23);class i extends n.NodeValueHandlerAdapter{constructor(e,t){super("Variable",e,t)}handle(e,t,r){const n=e.name.value,i=r.variablesDict[n],a=r.variablesMetaDict[n];if(!i){if(r.ignoreUnknownVariables||a&&!a.mandatory){const e=this.util.dataFactory.variable(n);return r.terminalVariables.map(e=>e.value).indexOf(n)<0&&r.terminalVariables.push(e),{terms:[e]}}throw new Error("Undefined variable: "+n)}if("Variable"===i.kind)throw new Error("Variable refers to another variable: "+n);if(a)if(a.list){if("ListValue"!==i.kind)throw new Error(`Expected a list, but got ${i.kind} for ${n}`);if(a.type){const e=i;for(const t of e.values)if(t.kind!==a.type)throw new Error(`Expected ${a.type}, but got ${t.kind} for ${n}`)}}else a.type;return this.util.handleNodeValue(i,t,r)}}t.NodeValueHandlerVariable=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NodeHandlerDefinitionFragment=void 0;const n=r(93);class i extends n.NodeHandlerDefinitionAdapter{constructor(e,t){super("FragmentDefinition",e,t)}handle(e,t){throw new Error("Illegal state: fragment definitions must be indexed and removed before processing")}}t.NodeHandlerDefinitionFragment=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NodeHandlerDefinitionOperation=void 0;const n=r(93);class i extends n.NodeHandlerDefinitionAdapter{constructor(e,t){super("OperationDefinition",e,t)}handle(e,t){if("query"!==e.operation)throw new Error("Unsupported definition operation: "+e.operation);if(e.variableDefinitions)for(const r of e.variableDefinitions){const e=r.variable.name.value;r.defaultValue&&(t.variablesDict[e]||(t.variablesDict[e]=r.defaultValue));let n=r.type;const i="NonNullType"===n.kind;i&&(n=n.type);const a="ListType"===n.kind;a&&(n=n.type);const s=n.name.value;t.variablesMetaDict[e]={mandatory:i,list:a,type:s}}const r=this.getDirectiveOutputs(e.directives,e.name?e.name.value:"",t);if(!r)return this.util.operationFactory.createBgp([]);const n=this.util.joinOperations(e.selectionSet.selections.map(e=>this.util.handleNode(e,t)));return this.handleDirectiveOutputs(r,n)}}t.NodeHandlerDefinitionOperation=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NodeHandlerDocument=void 0;const n=r(6),i=r(67);class a extends i.NodeHandlerAdapter{constructor(e,t){super("Document",e,t)}handle(e,t){const r=this.util.operationFactory.createProject(e.definitions.map(e=>{const r=this.getNodeQuadContextDefinitionNode(e,Object.assign(Object.assign({},t),{ignoreUnknownVariables:!0})),n=Object.assign(Object.assign({},t),{graph:r.graph||t.graph,subject:r.subject||this.util.dataFactory.blankNode()});let i=this.util.handleNode(e,n);return r&&r.auxiliaryPatterns&&(i=this.util.joinOperations([i,this.util.operationFactory.createBgp(r.auxiliaryPatterns)])),i}).reduce((e,t)=>t?e?this.util.operationFactory.createUnion(e,t):t:e,null),t.terminalVariables);return this.translateBlankNodesToVariables(r)}getNodeQuadContextDefinitionNode(e,t){return"OperationDefinition"===e.kind?this.getNodeQuadContextSelectionSet(e.selectionSet,e.name?e.name.value:"",t):null}translateBlankNodesToVariables(e){const t=this,r={},i=Array.from(e.variables).reduce((e,t)=>(e[t.value]=!0,e),{});return n.Util.mapOperation(e,{path:(e,t)=>({recurse:!1,result:t.createPath(a(e.subject),e.predicate,a(e.object),a(e.graph))}),pattern:(e,t)=>({recurse:!1,result:t.createPattern(a(e.subject),a(e.predicate),a(e.object),a(e.graph))})});function a(e){if("BlankNode"===e.termType){let a=r[e.value];return a||(a=n.Util.createUniqueVariable(e.value,i,t.util.dataFactory),i[a.value]=!0,r[e.value]=a),a}return e}}}t.NodeHandlerDocument=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NodeHandlerSelectionField=void 0;const n=r(68);class i extends n.NodeHandlerSelectionAdapter{constructor(e,t){super("Field",e,t)}handle(e,t){return this.fieldToOperation(t,e,!0)}}t.NodeHandlerSelectionField=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NodeHandlerSelectionFragmentSpread=void 0;const n=r(68);class i extends n.NodeHandlerSelectionAdapter{constructor(e,t){super("FragmentSpread",e,t)}handle(e,t){const r=t.fragmentDefinitions[e.name.value];if(!r)throw new Error("Undefined fragment definition: "+e.name.value);const n={alias:null,arguments:null,directives:r.directives,kind:"Field",name:e.name,selectionSet:r.selectionSet},i=[this.util.newTypePattern(t.subject,r.typeCondition,t)];return this.util.operationFactory.createLeftJoin(this.util.operationFactory.createBgp([]),this.fieldToOperation(t,n,!1,i))}}t.NodeHandlerSelectionFragmentSpread=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NodeHandlerSelectionInlineFragment=void 0;const n=r(68);class i extends n.NodeHandlerSelectionAdapter{constructor(e,t){super("InlineFragment",e,t)}handle(e,t){const r={alias:null,arguments:null,directives:e.directives,kind:"Field",name:{kind:"Name",value:t.subject.value},selectionSet:e.selectionSet},n=e.typeCondition?[this.util.newTypePattern(t.subject,e.typeCondition,t)]:[];return this.util.operationFactory.createLeftJoin(this.util.operationFactory.createBgp([]),this.fieldToOperation(t,r,!1,n))}}t.NodeHandlerSelectionInlineFragment=i},function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,a){function s(e){try{c(n.next(e))}catch(e){a(e)}}function o(e){try{c(n.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,o)}c((n=n.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.Converter=void 0;const i=r(719),a=r(184),s=r(185),o=r(56),c=r(186);class u{constructor(e){(e=e||{}).variableDelimiter=e.variableDelimiter||"_",e.expressionVariableCounter=e.expressionVariableCounter||0,this.util=new c.Util(e),this.initializeNodeHandlers(e)}static registerNodeHandlers(e,t){e.registerNodeHandler(new a.NodeHandlerDocument(e,t)),e.registerNodeHandler(new a.NodeHandlerDefinitionOperation(e,t)),e.registerNodeHandler(new a.NodeHandlerDefinitionFragment(e,t)),e.registerNodeHandler(new a.NodeHandlerSelectionFragmentSpread(e,t)),e.registerNodeHandler(new a.NodeHandlerSelectionInlineFragment(e,t)),e.registerNodeHandler(new a.NodeHandlerSelectionField(e,t))}static registerNodeValueHandlers(e,t){e.registerNodeValueHandler(new a.NodeValueHandlerVariable(e,t)),e.registerNodeValueHandler(new a.NodeValueHandlerInt(e,t)),e.registerNodeValueHandler(new a.NodeValueHandlerFloat(e,t)),e.registerNodeValueHandler(new a.NodeValueHandlerString(e,t)),e.registerNodeValueHandler(new a.NodeValueHandlerBoolean(e,t)),e.registerNodeValueHandler(new a.NodeValueHandlerNull(e,t)),e.registerNodeValueHandler(new a.NodeValueHandlerEnum(e,t)),e.registerNodeValueHandler(new a.NodeValueHandlerList(e,t)),e.registerNodeValueHandler(new a.NodeValueHandlerObject(e,t))}static registerDirectiveNodeHandlers(e,t){e.registerDirectiveNodeHandler(new s.DirectiveNodeHandlerInclude(e,t)),e.registerDirectiveNodeHandler(new s.DirectiveNodeHandlerOptional(e,t)),e.registerDirectiveNodeHandler(new s.DirectiveNodeHandlerPlural(e,t)),e.registerDirectiveNodeHandler(new s.DirectiveNodeHandlerSingle(e,t)),e.registerDirectiveNodeHandler(new s.DirectiveNodeHandlerSkip(e,t))}graphqlToSparqlAlgebra(e,t,r){return n(this,void 0,void 0,(function*(){return this.graphqlToSparqlAlgebraRawContext(e,yield this.util.contextParser.parse(t),r)}))}graphqlToSparqlAlgebraRawContext(e,t,r){r=r||{};const n="string"==typeof e?i.parse(e):e,a={context:t,fragmentDefinitions:this.indexFragments(n),graph:this.util.dataFactory.defaultGraph(),path:[],singularizeState:o.SingularizeState.PLURAL,singularizeVariables:r.singularizeVariables||{},subject:null,terminalVariables:[],variablesDict:r.variablesDict||{},variablesMetaDict:{}};return this.util.handleNode(n,a)}indexFragments(e){const t={},r=[];for(const n of e.definitions)"FragmentDefinition"===n.kind?t[n.name.value]=n:r.push(n);return e.definitions=r,t}initializeNodeHandlers(e){u.registerNodeHandlers(this.util,e),u.registerNodeValueHandlers(this.util,e),u.registerDirectiveNodeHandlers(this.util,e)}}t.Converter=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){(function(t){!function(){var r;r="object"==typeof window&&window?window:t,e.exports?e.exports=r.Promise?r.Promise:s:r.Promise||(r.Promise=s);var n=r.setImmediate||function(e){setTimeout(e,1)};function i(e,t){return function(){e.apply(t,arguments)}}var a=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function s(e){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=null,this._value=null,this._deferreds=[],p(e,i(c,this),i(u,this))}function o(e){var t=this;null!==this._state?n((function(){var r=t._state?e.onFulfilled:e.onRejected;if(null!==r){var n;try{n=r(t._value)}catch(t){return void e.reject(t)}e.resolve(n)}else(t._state?e.resolve:e.reject)(t._value)})):this._deferreds.push(e)}function c(e){try{if(e===this)throw new TypeError("A promise cannot be resolved with itself.");if(e&&("object"==typeof e||"function"==typeof e)){var t=e.then;if("function"==typeof t)return void p(i(t,e),i(c,this),i(u,this))}this._state=!0,this._value=e,l.call(this)}catch(e){u.call(this,e)}}function u(e){this._state=!1,this._value=e,l.call(this)}function l(){for(var e=0,t=this._deferreds.length;e{const i=t[n]||t[n+"Page"],a=i&&i[e];return r[n]=a&&a.length>0?a[0]:null,r},{})}parseUriTemplateCached(e){const t=this.parsedUriTemplateCache[e];return t||(this.parsedUriTemplateCache[e]=i.parse(e))}getSearchForms(e){const t=e.search,r=[];if(t)for(const n in t)for(const i of t[n]){const t=(e.template||{})[i]||[];if(1!==t.length)throw new Error("Expected 1 hydra:template for "+i);const a=t[0],s=this.parseUriTemplateCached(a),o=((e.mapping||{})[i]||[]).reduce((t,r)=>{const n=((e.variable||{})[r]||[])[0],i=((e.property||{})[r]||[])[0];if(!n)throw new Error("Expected a hydra:variable for "+r);if(!i)throw new Error("Expected a hydra:property for "+r);return t[i]=n,t},{}),c=e=>s.expand(Object.keys(e).reduce((t,r)=>(t[o[r]]=e[r],t),{}));r.push({dataset:n,template:a,mappings:o,getUri:c})}return{values:r}}getHydraProperties(e){return new Promise((t,r)=>{e.on("error",r);const n={};e.on("data",e=>{if(e.predicate.value.startsWith(a.HYDRA)){const t=e.predicate.value.slice(a.HYDRA.length),r=n[t]||(n[t]={});(r[e.subject.value]||(r[e.subject.value]=[])).push(e.object.value)}}),e.on("end",()=>t(n))})}async run(e){const t={},r=await this.getHydraProperties(e.metadata);return Object.assign(t,this.getLinks(e.url,r)),t.searchForms=this.getSearchForms(r),{metadata:t}}}t.ActorRdfMetadataExtractHydraControls=a,a.HYDRA="http://www.w3.org/ns/hydra/core#",a.LINK_TYPES=["first","next","previous","last"]},function(e,t,r){!function(t){"use strict";var r=function(){function e(e){this.options=e}return e.prototype.toString=function(){return JSON&&JSON.stringify?JSON.stringify(this.options):this.options},e}(),n=function(){function e(t){return"function"==typeof Object.freeze?function(t){if("object"!=typeof t||null===t)return t;var r,n;for(n in Object.freeze(t),t)t.hasOwnProperty(n)&&"object"==typeof(r=t[n])&&e(r);return t}(t):t}return{isArray:function(e){return"[object Array]"===Object.prototype.toString.apply(e)},isString:function(e){return"[object String]"===Object.prototype.toString.apply(e)},isNumber:function(e){return"[object Number]"===Object.prototype.toString.apply(e)},isBoolean:function(e){return"[object Boolean]"===Object.prototype.toString.apply(e)},join:function(e,t){var r,n="",i=!0;for(r=0;r="0"&&e<="9"}return{isAlpha:function(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"},isDigit:e,isHexDigit:function(t){return e(t)||t>="a"&&t<="f"||t>="A"&&t<="F"}}}(),a=function(){var e=function(e){return unescape(encodeURIComponent(e))},t=function(e){return e<=127?1:194<=e&&e<=223?2:224<=e&&e<=239?3:240<=e&&e<=244?4:0},r=function(e){return 128<=e&&e<=191};function n(e,t){return"%"===e.charAt(t)&&i.isHexDigit(e.charAt(t+1))&&i.isHexDigit(e.charAt(t+2))}function a(e,t){return parseInt(e.substr(t,2),16)}return{encodeCharacter:function(t){var r,n,i="",a=e(t);for(n=0;n1?r+=n:r+=s.isReserved(n)||s.isUnreserved(n)?n:a.encodeCharacter(n);return r},encodeLiteralCharacter:function(e,t){var r=a.pctCharAt(e,t);return r.length>1||s.isReserved(r)||s.isUnreserved(r)?r:a.encodeCharacter(r)}}}(),c=function(){var e={};function t(t){e[t]={symbol:t,separator:"?"===t?"&":""===t||"+"===t||"#"===t?",":t,named:";"===t||"&"===t||"?"===t,ifEmpty:"&"===t||"?"===t?"=":"",first:"+"===t?"":t,encode:"+"===t||"#"===t?o.encodePassReserved:o.encode,toString:function(){return this.symbol}}}return t(""),t("+"),t("#"),t("."),t("/"),t(";"),t("?"),t("&"),{valueOf:function(t){return e[t]?e[t]:"=,!@|".indexOf(t)>=0?null:e[""]}}}();function u(e){var t;if(null==e)return!1;if(n.isArray(e))return e.length>0;if("string"==typeof e||"number"==typeof e||"boolean"==typeof e)return!0;for(t in e)if(e.hasOwnProperty(t)&&u(e[t]))return!0;return!1}var l=function(){function e(e){this.literal=o.encodeLiteral(e)}return e.prototype.expand=function(){return this.literal},e.prototype.toString=e.prototype.expand,e}(),d=function(){function e(e){var t,n,o=[],u=null,l=null,d=null,h="";function f(){var t=e.substring(l,n);if(0===t.length)throw new r({expressionText:e,message:"a varname must be specified",position:n});u={varname:t,exploded:!1,maxLength:null},l=null}function g(){if(d===n)throw new r({expressionText:e,message:"after a ':' you have to specify the length",position:n});u.maxLength=parseInt(e.substring(d,n),10),d=null}for(t=function(t){var i=c.valueOf(t);if(null===i)throw new r({expressionText:e,message:"illegal use of reserved operator",position:n,operator:t});return i}(e.charAt(0)),n=t.symbol.length,l=n;n=4)throw new r({expressionText:e,message:"A :prefix must have max 4 digits",position:n});continue}g()}if(":"!==h)if("*"!==h){if(","!==h)throw new r({expressionText:e,message:"illegal character",character:h,position:n});o.push(u),u=null,l=n+1}else{if(null===u)throw new r({expressionText:e,message:"exploded without varspec",position:n});if(u.exploded)throw new r({expressionText:e,message:"exploded twice",position:n});if(u.maxLength)throw new r({expressionText:e,message:"an explode (*) MUST NOT follow to a prefix",position:n});u.exploded=!0}else{if(null!==u.maxLength)throw new r({expressionText:e,message:"only one :maxLength is allowed per varspec",position:n});if(u.exploded)throw new r({expressionText:e,message:"an exploeded varspec MUST NOT be varspeced",position:n});d=n+1}}return null!==l&&f(),null!==d&&g(),o.push(u),new p(e,t,o)}return function(t){var n,i,a=[],s=null,o=0;for(n=0;n{e.metadata.on("error",r),e.metadata.on("data",e=>{this.predicates.includes(e.predicate.value)&&t({metadata:{totalItems:Number.parseInt(e.object.value,10)}})}),e.metadata.on("end",()=>{t({metadata:{totalItems:Number.POSITIVE_INFINITY}})})})}}t.ActorRdfMetadataExtractHydraCount=i},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(459),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ActorRdfMetadataExtractSparqlService=void 0;const n=r(43),i=r(16);class a extends n.ActorRdfMetadataExtract{constructor(e){super(e)}async test(e){return!0}async run(e){return new Promise((t,r)=>{e.metadata.on("error",r);const n={};e.metadata.on("data",t=>{"http://www.w3.org/ns/sparql-service-description#endpoint"!==t.predicate.value||"BlankNode"!==t.subject.termType&&t.subject.value!==e.url?"http://www.w3.org/ns/sparql-service-description#defaultGraph"===t.predicate.value&&(n.defaultGraph=t.object.value):(n.sparqlService="Literal"===t.object.termType?i.resolve(t.object.value,e.url):t.object.value,this.inferHttpsEndpoint&&e.url.startsWith("https")&&!n.sparqlService.startsWith("https")&&(n.sparqlService=n.sparqlService.replace("http:","https:")))}),e.metadata.on("end",()=>{t({metadata:n})})})}}t.ActorRdfMetadataExtractSparqlService=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ActorHttpInvalidateListenable=void 0;const n=r(190);class i extends n.ActorHttpInvalidate{constructor(e){super(e),this.invalidateListeners=[]}addInvalidateListener(e){this.invalidateListeners.push(e)}async test(e){return!0}async run(e){for(const t of this.invalidateListeners)t(e);return{}}}t.ActorHttpInvalidateListenable=i},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(462),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MediatorAll=void 0;const n=r(0);class i extends n.Mediator{constructor(e){super(e)}async mediate(e){const t=[];let r;try{r=this.publish(e)}catch(e){r=[]}for(const e of r)try{await e.reply,t.push(e.actor)}catch(e){}return(await Promise.all(t.map(t=>t.runObservable(e))))[0]}async mediateWith(){throw new Error("Unsupported operation: MediatorAll#mediateWith")}}t.MediatorAll=i},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(464),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ActorRdfUpdateQuadsRdfJsStore=void 0;const n=r(57),i=r(467);class a extends n.ActorRdfUpdateQuadsDestination{constructor(e){super(e)}async test(e){const t=this.getContextDestination(e.context);if(!t||"string"==typeof t||!("remove"in t)&&"value"in t&&!t.value.remove)throw new Error(this.name+" received an invalid rdfjsStore.");return!0}async getDestination(e){const t=this.getContextDestination(e);return new i.RdfJsQuadDestination("remove"in t?t:t.value)}}t.ActorRdfUpdateQuadsRdfJsStore=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ActorRdfUpdateQuadsDestination=void 0;const n=r(191);class i extends n.ActorRdfUpdateQuads{async test(e){return!0}async run(e){const t=await this.getDestination(e.context);return await this.getOutput(t,e,e.context)}async getOutput(e,t,r){return{updateResult:Promise.all([t.quadStreamInsert?e.insert(t.quadStreamInsert):Promise.resolve(),t.quadStreamDelete?e.delete(t.quadStreamDelete):Promise.resolve(),t.deleteGraphs?e.deleteGraphs(t.deleteGraphs.graphs,t.deleteGraphs.requireExistence,t.deleteGraphs.dropGraphs):Promise.resolve(),t.createGraphs?e.createGraphs(t.createGraphs.graphs,t.createGraphs.requireNonExistence):Promise.resolve()]).then(()=>{})}}}t.ActorRdfUpdateQuadsDestination=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateHttpResponse=void 0;const n=r(26),i=r(45);t.validateHttpResponse=async function(e,t){var r;if(t.status>=400){let r="empty response";if(t.body){const e=n.ActorHttp.toNodeReadable(t.body);r=await i(e)}throw new Error(`Could not update ${e} (HTTP status ${t.status}):\n${r}`)}await(null===(r=t.body)||void 0===r?void 0:r.cancel())}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RdfJsQuadDestination=void 0;const n=r(5),i=r(2),a=new n.DataFactory;t.RdfJsQuadDestination=class{constructor(e){this.store=e}promisifyEventEmitter(e){return new Promise((t,r)=>{e.on("end",t),e.on("error",r)})}delete(e){return this.promisifyEventEmitter(this.store.remove(e))}insert(e){return this.promisifyEventEmitter(this.store.import(e))}async deleteGraphs(e,t,r){switch(e){case"ALL":await this.promisifyEventEmitter(this.store.deleteGraph(a.defaultGraph()));case"NAMED":const t=this.store.match(),r={};t.on("data",e=>{"DefaultGraph"!==e.graph.termType&&(r[i.termToString(e.graph)]=!0)}),await this.promisifyEventEmitter(t),await Promise.all(Object.keys(r).map(e=>this.promisifyEventEmitter(this.store.deleteGraph(i.stringToTerm(e)))));break;default:for(const t of Array.isArray(e)?e:[e])await this.promisifyEventEmitter(this.store.deleteGraph(t))}}async createGraphs(e,t){if(t)for(const t of e){const e=this.store.match(void 0,void 0,void 0,t);await new Promise((r,n)=>{e.once("data",()=>{n(new Error(`Unable to create graph ${t.value} as it already exists`))}),e.on("end",r),e.on("error",n)})}}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ActorRdfResolveQuadPatternRdfJsSource=void 0;const n=r(29),i=r(193);class a extends n.ActorRdfResolveQuadPatternSource{constructor(e){super(e)}async test(e){if(!this.hasContextSingleSourceOfType("rdfjsSource",e.context))throw new Error(this.name+" requires a single source with an rdfjsSource to be present in the context.");const t=this.getContextSource(e.context);if(!t||"string"==typeof t||!("match"in t)&&!t.value.match)throw new Error(this.name+" received an invalid rdfjsSource.");return!0}async getSource(e){const t=this.getContextSource(e);return new i.RdfJsQuadSource("match"in t?t:t.value)}}t.ActorRdfResolveQuadPatternRdfJsSource=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(471),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ActorRdfResolveHypermediaNone=void 0;const n=r(192),i=r(94),a=r(187);class s extends i.ActorRdfResolveHypermedia{constructor(e){super(e,"file")}async testMetadata(e){return{filterFactor:0}}async run(e){return this.logInfo(e.context,"Identified as file source: "+e.url),{source:new n.RdfJsQuadSource(await a.storeStream(e.quads))}}}t.ActorRdfResolveHypermediaNone=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ActorRdfResolveHypermedia=void 0;const n=r(0);class i extends n.Actor{constructor(e,t){super(e),this.sourceType=t}async test(e){if(e.forceSourceType&&this.sourceType!==e.forceSourceType)throw new Error(`Actor ${this.name} is not able to handle source type ${e.forceSourceType}.`);return this.testMetadata(e)}}t.ActorRdfResolveHypermedia=i},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(474),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ActorRdfResolveHypermediaLinksNext=void 0;const n=r(475);class i extends n.ActorRdfResolveHypermediaLinks{constructor(e){super(e)}async test(e){if(!e.metadata.next)throw new Error(`Actor ${this.name} requires a 'next' metadata entry.`);return!0}async run(e){return{urls:[e.metadata.next]}}}t.ActorRdfResolveHypermediaLinksNext=i},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(476),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ActorRdfResolveHypermediaLinks=void 0;const n=r(0);class i extends n.Actor{constructor(e){super(e)}}t.ActorRdfResolveHypermediaLinks=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ActorRdfResolveHypermediaLinksQueueFifo=void 0;const n=r(478),i=r(195);class a extends n.ActorRdfResolveHypermediaLinksQueue{constructor(e){super(e)}async test(e){return!0}async run(e){return{linkQueue:new i.LinkQueueFifo}}}t.ActorRdfResolveHypermediaLinksQueueFifo=a},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(479),t),i(r(480),t),i(r(481),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ActorRdfResolveHypermediaLinksQueue=void 0;const n=r(0);class i extends n.Actor{constructor(e){super(e)}}t.ActorRdfResolveHypermediaLinksQueue=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LinkQueueWrapper=void 0;t.LinkQueueWrapper=class{constructor(e){this.linkQueue=e}push(e,t){return this.linkQueue.push(e,t)}getSize(){return this.linkQueue.getSize()}isEmpty(){return this.linkQueue.isEmpty()}pop(){return this.linkQueue.pop()}peek(){return this.linkQueue.peek()}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MediatorCombinePipeline=void 0;const n=r(0);class i extends n.Mediator{constructor(e){super(e)}async mediate(e){let t;try{t=this.publish(e)}catch(t){return e}await Promise.all(t.map(({reply:e})=>e));let r=e;for(const e of t.map(e=>e.actor))r=Object.assign(Object.assign({},r),await e.runObservable(r));return r}mediateWith(){throw new Error("Method not supported.")}}t.MediatorCombinePipeline=i},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(484),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ActorOptimizeQueryOperationJoinBgp=void 0;const n=r(485),i=r(6);class a extends n.ActorOptimizeQueryOperation{constructor(e){super(e)}async test(e){return!0}async run(e){return{operation:i.Util.mapOperation(e.operation,{join:(e,t)=>"bgp"===e.left.type&&"bgp"===e.right.type?{recurse:!1,result:t.createBgp([...e.left.patterns,...e.right.patterns])}:{recurse:!1,result:e}})}}}t.ActorOptimizeQueryOperationJoinBgp=a},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(486),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ActorOptimizeQueryOperation=void 0;const n=r(0);class i extends n.Actor{constructor(e){super(e)}}t.ActorOptimizeQueryOperation=i},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(488),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ActorSparqlParseGraphql=void 0;const n=r(197),i=r(183);class a extends n.ActorSparqlParse{constructor(e){super(e),this.graphqlToSparql=new i.Converter({requireContext:!0})}async test(e){if("graphql"!==e.queryFormat)throw new Error("This actor can only parse GraphQL queries");return!0}async run(e){const t=e.context&&e.context.has("@context")?e.context.get("@context"):{},r={singularizeVariables:e.context&&e.context.get("@comunica/actor-init-sparql:singularizeVariables")};return{operation:await this.graphqlToSparql.graphqlToSparqlAlgebra(e.query,t,r)}}}t.ActorSparqlParseGraphql=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ActorSparqlParse=void 0;const n=r(0);class i extends n.Actor{constructor(e){super(e)}}t.ActorSparqlParse=i},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(491),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ActorSparqlParseAlgebra=void 0;const n=r(197),i=r(6),a=r(25);class s extends n.ActorSparqlParse{constructor(e){super(e),this.prefixes=Object.freeze(this.prefixes)}async test(e){if(e.queryFormat&&"sparql"!==e.queryFormat)throw new Error("This actor can only parse SPARQL queries");return!0}async run(e){const t=new a.Parser({prefixes:this.prefixes,baseIRI:e.baseIRI}).parse(e.query);return{baseIRI:"query"===t.type?t.base:void 0,operation:i.translate(t,{quads:!0,prefixes:this.prefixes,blankToVariable:!0,baseIRI:e.baseIRI})}}}t.ActorSparqlParseAlgebra=s},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(493),t)},function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.ActorSparqlSerializeJson=void 0;const n=r(3),i=r(21),a=r(2);class s extends i.ActorSparqlSerializeFixedMediaTypes{constructor(e){super(e)}async testHandleChecked(e,t){if(!["bindings","quads","boolean"].includes(e.type))throw new Error("This actor can only handle bindings or quad streams.");return!0}async runHandle(t,r,i){const s=new n.Readable;s._read=()=>{};let o=!0;if("bindings"===t.type){const e=t.bindingsStream;s.push("["),e.on("error",e=>s.emit("error",e)),e.on("data",e=>{s.push(o?"\n":",\n"),s.push(JSON.stringify(e.map(a.termToString))),o=!1}),e.on("end",()=>{s.push(o?"]\n":"\n]\n"),s.push(null)})}else if("quads"===t.type){const e=t.quadStream;s.push("["),e.on("error",e=>s.emit("error",e)),e.on("data",e=>{s.push(o?"\n":",\n"),s.push(JSON.stringify(a.quadToStringQuad(e))),o=!1}),e.on("end",()=>{s.push(o?"]\n":"\n]\n"),s.push(null)})}else try{s.push(JSON.stringify(await t.booleanResult)+"\n"),s.push(null)}catch(t){e(()=>s.emit("error",t))}return{data:s}}}t.ActorSparqlSerializeJson=s}).call(this,r(52).setImmediate)},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(495),t)},function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.ActorSparqlSerializeSimple=void 0;const n=r(3),i=r(21);class a extends i.ActorSparqlSerializeFixedMediaTypes{constructor(e){super(e)}async testHandleChecked(e,t){if(!["bindings","quads","boolean","update"].includes(e.type))throw new Error("This actor can only handle bindings streams, quad streams, booleans, or updates.");return!0}async runHandle(t,r,i){const a=new n.Readable;let s;if(a._read=()=>{},"bindings"===t.type)s=t.bindingsStream,s.on("error",e=>a.emit("error",e)),s.on("data",e=>a.push(e.map((e,t)=>`${t}: ${e.value}`).join("\n")+"\n\n")),s.on("end",()=>a.push(null));else if("quads"===t.type)s=t.quadStream,s.on("error",e=>a.emit("error",e)),s.on("data",e=>a.push(`subject: ${e.subject.value}\npredicate: ${e.predicate.value}\nobject: ${e.object.value}\ngraph: ${e.graph.value}\n\n`)),s.on("end",()=>a.push(null));else if("boolean"===t.type)try{a.push(JSON.stringify(await t.booleanResult)+"\n"),a.push(null)}catch(t){e(()=>a.emit("error",t))}else t.updateResult.then(()=>{a.push("ok\n"),a.push(null)}).catch(t=>e(()=>a.emit("error",t)));return{data:a}}}t.ActorSparqlSerializeSimple=a}).call(this,r(52).setImmediate)},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(497),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ActorSparqlSerializeSparqlCsv=void 0;const n=r(3),i=r(21);class a extends i.ActorSparqlSerializeFixedMediaTypes{constructor(e){super(e)}static bindingToCsvBindings(e){if(!e)return"";let t=e.value;return t="Literal"===e.termType?""+t:"BlankNode"===e.termType?"_:"+t:`<${t}>`,/[",\n\r]/u.test(t)&&(t=`"${t.replace(/"/gu,'""')}"`),t}async testHandleChecked(e,t){if("bindings"!==e.type)throw new Error("This actor can only handle bindings streams.");return!0}async runHandle(e,t,r){const i=e,s=new n.Readable;return s._read=()=>{},s.push(i.variables.map(e=>e.slice(1)).join(",")+"\r\n"),i.bindingsStream.on("error",e=>{s.emit("error",e)}),i.bindingsStream.on("data",e=>{s.push(i.variables.map(t=>a.bindingToCsvBindings(e.get(t))).join(",")+"\r\n")}),i.bindingsStream.on("end",()=>{s.push(null)}),{data:s}}}t.ActorSparqlSerializeSparqlCsv=a},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(499),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ActorSparqlSerializeSparqlJson=void 0;const n=r(3),i=r(21);class a extends i.ActorSparqlSerializeFixedMediaTypes{constructor(e){super(e)}static bindingToJsonBindings(e){if("Literal"===e.termType){const t=e,r={value:t.value,type:"literal"},{language:n}=t,{datatype:i}=t;return n?r["xml:lang"]=n:i&&"http://www.w3.org/2001/XMLSchema#string"!==i.value&&(r.datatype=i.value),r}return"BlankNode"===e.termType?{value:e.value,type:"bnode"}:{value:e.value,type:"uri"}}async testHandleChecked(e,t){if(!["bindings","boolean"].includes(e.type))throw new Error("This actor can only handle bindings streams or booleans.");return!0}async runHandle(e,t,r){const i=new n.Readable;i._read=()=>{};const s={};"bindings"===e.type&&e.variables.length>0&&(s.vars=e.variables.map(e=>e.slice(1))),i.push(`{"head": ${JSON.stringify(s)},\n`);let o=!0;if("bindings"===e.type){const t=e.bindingsStream;t.on("error",e=>{i.emit("error",e)}),t.on("data",e=>{o?i.push('"results": { "bindings": [\n'):i.push(",\n");const t=e.filter((e,t)=>Boolean(e)&&t.startsWith("?"));i.push(JSON.stringify(t.mapEntries(([e,t])=>[e.slice(1),a.bindingToJsonBindings(t)]).toJSON())),o=!1}),t.on("end",()=>{o?i.push('"results": { "bindings": [] }}\n'):i.push("\n]}}\n"),i.push(null)})}else try{i.push(`"boolean":${await e.booleanResult}\n}\n`),i.push(null)}catch(e){i.once("newListener",()=>i.emit("error",e))}return{data:i}}}t.ActorSparqlSerializeSparqlJson=a},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(501),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ActorSparqlSerializeSparqlTsv=void 0;const n=r(3),i=r(21),a=r(95);class s extends i.ActorSparqlSerializeFixedMediaTypes{constructor(e){super(e)}static bindingToTsvBindings(e){return e?a.termToString(e).replace(/\t/gu,"\\t").replace(/\n/gu,"\\n").replace(/\r/gu,"\\r"):""}async testHandleChecked(e,t){if("bindings"!==e.type)throw new Error("This actor can only handle bindings streams.");return!0}async runHandle(e,t,r){const i=e,a=new n.Readable;return a._read=()=>{},a.push(i.variables.map(e=>e.slice(1)).join("\t")+"\n"),i.bindingsStream.on("error",e=>{a.emit("error",e)}),i.bindingsStream.on("data",e=>{a.push(i.variables.map(t=>s.bindingToTsvBindings(e.get(t))).join("\t")+"\n")}),i.bindingsStream.on("end",()=>{a.push(null)}),{data:a}}}t.ActorSparqlSerializeSparqlTsv=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringQuadToQuad=t.quadToStringQuad=t.stringToTerm=t.getLiteralLanguage=t.getLiteralType=t.getLiteralValue=t.termToString=void 0;const n=new(r(5).DataFactory);function i(e){if(e)switch(e.termType){case"NamedNode":return"<"+e.value+">";case"BlankNode":return"_:"+e.value;case"Literal":const t=e;return'"'+t.value.replace(/"/gu,'\\"')+'"'+(t.datatype&&"http://www.w3.org/2001/XMLSchema#string"!==t.datatype.value&&"http://www.w3.org/1999/02/22-rdf-syntax-ns#langString"!==t.datatype.value?"^^<"+t.datatype.value+">":"")+(t.language?"@"+t.language:"");case"Quad":return`<<${i(e.subject)} ${i(e.predicate)} ${i(e.object)}${"DefaultGraph"===e.graph.termType?"":" "+i(e.graph)}>>`;case"Variable":return"?"+e.value;case"DefaultGraph":return e.value}}function a(e){const t=/^"([^]*)"((\^\^.*)|(@.*))?$/.exec(e);if(!t)throw new Error(e+" is not a literal");return t[1].replace(/\\"/gu,'"')}function s(e){const t=/^"[^]*"(?:\^\^<([^"]+)>|(@)[^@"]+)?$/.exec(e);if(!t)throw new Error(e+" is not a literal");return t[1]||(t[2]?"http://www.w3.org/1999/02/22-rdf-syntax-ns#langString":"http://www.w3.org/2001/XMLSchema#string")}function o(e){const t=/^"[^]*"(?:@([^@"]+)|\^\^[^"]+)?$/.exec(e);if(!t)throw new Error(e+" is not a literal");return t[1]?t[1].toLowerCase():""}function c(e,t){if(t=t||n,!e||!e.length)return t.defaultGraph();switch(e[0]){case"_":return t.blankNode(e.substr(2));case"?":if(!t.variable)throw new Error("Missing 'variable()' method on the given DataFactory");return t.variable(e.substr(1));case'"':const r=o(e),n=t.namedNode(s(e));return t.literal(a(e),r||n);case"<":default:if(e.startsWith("<<")&&e.endsWith(">>")){const r=e.slice(2,-2),n=[];let i=0,a=0;for(let t=0;t"===s){if(0===i)throw new Error("Found closing tag without opening tag in "+e);i--}" "===s&&0===i&&(n.push(r.slice(a,t)),a=t+1)}if(0!==i)throw new Error("Found opening tag without closing tag in "+e);if(n.push(r.slice(a,r.length)),3!==n.length&&4!==n.length)throw new Error("Nested quad syntax error "+e);return t.quad(c(n[0]),c(n[1]),c(n[2]),n[3]?c(n[3]):void 0)}if("<"!==e.charAt(0)||">"!==e.charAt(e.length-1))throw new Error("Detected invalid iri for named node (must be wrapped in <>): "+e);return t.namedNode(e.substring(1,e.length-1))}}t.termToString=i,t.getLiteralValue=a,t.getLiteralType=s,t.getLiteralLanguage=o,t.stringToTerm=c,t.quadToStringQuad=function(e){return{subject:i(e.subject),predicate:i(e.predicate),object:i(e.object),graph:i(e.graph)}},t.stringQuadToQuad=function(e,t){return(t=t||n).quad(c(e.subject,t),c(e.predicate,t),c(e.object,t),c(e.graph,t))}},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(504),t)},function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.ActorSparqlSerializeSparqlXml=void 0;const n=r(3),i=r(21),a=r(505);class s extends i.ActorSparqlSerializeFixedMediaTypes{constructor(e){super(e)}static bindingToXmlBindings(e,t){let r;if("Literal"===e.termType){const t=e;r={literal:t.value};const{language:n}=t,{datatype:i}=t;n?r.literal=[{_attr:{"xml:lang":n}},r.literal]:i&&"http://www.w3.org/2001/XMLSchema#string"!==i.value&&(r.literal=[{_attr:{datatype:i.value}},r.literal])}else r="BlankNode"===e.termType?{bnode:e.value}:{uri:e.value};return{binding:[{_attr:{name:t.slice(1)}},r]}}async testHandleChecked(e,t){if(!["bindings","boolean"].includes(e.type))throw new Error("This actor can only handle bindings streams or booleans.");return!0}async runHandle(t,r,i){const o=new n.Readable;o._read=()=>{};const c=a.element({_attr:{xlmns:"http://www.w3.org/2005/sparql-results#"}});if(a({sparql:c},{stream:!0,indent:" ",declaration:!0}).on("data",e=>o.push(e+"\n")),"bindings"===t.type&&t.variables.length>0&&c.push({head:t.variables.map(e=>({variable:{_attr:{name:e.slice(1)}}}))}),"bindings"===t.type){const r=a.element({});c.push({results:r});const n=t.bindingsStream;n.on("error",e=>{o.emit("error",e)}),n.on("data",e=>{const t=e.filter((e,t)=>Boolean(e)&&t.startsWith("?"));r.push({result:t.map(s.bindingToXmlBindings)})}),n.on("end",()=>{r.close(),c.close(),e(()=>o.push(null))})}else try{c.push({boolean:await t.booleanResult}),c.close(),e(()=>o.push(null))}catch(t){e(()=>o.emit("error",t))}return{data:o}}}t.ActorSparqlSerializeSparqlXml=s}).call(this,r(52).setImmediate)},function(e,t,r){(function(t){var n=r(506),i=r(3).Stream;function a(e,t,r){r=r||0;var i,s,o=(i=t,new Array(r||0).join(i||"")),c=e;if("object"==typeof e&&((c=e[s=Object.keys(e)[0]])&&c._elem))return c._elem.name=s,c._elem.icount=r,c._elem.indent=t,c._elem.indents=o,c._elem.interrupt=c,c._elem;var u,l=[],d=[];function p(e){Object.keys(e).forEach((function(t){l.push(function(e,t){return e+'="'+n(t)+'"'}(t,e[t]))}))}switch(typeof c){case"object":if(null===c)break;c._attr&&p(c._attr),c._cdata&&d.push(("/g,"]]]]>")+"]]>"),c.forEach&&(u=!1,d.push(""),c.forEach((function(e){"object"==typeof e?"_attr"==Object.keys(e)[0]?p(e._attr):d.push(a(e,t,r+1)):(d.pop(),u=!0,d.push(n(e)))})),u||d.push(""));break;default:d.push(n(c))}return{name:s,interrupt:!1,attributes:l,content:d,icount:r,indents:o,indent:t}}function s(e,t,r){if("object"!=typeof t)return e(!1,t);var n=t.interrupt?1:t.content.length;function i(){for(;t.content.length;){var i=t.content.shift();if(void 0!==i){if(a(i))return;s(e,i)}}e(!1,(n>1?t.indents:"")+(t.name?"":"")+(t.indent&&!r?"\n":"")),r&&r()}function a(t){return!!t.interrupt&&(t.interrupt.append=e,t.interrupt.end=i,t.interrupt=!1,e(!0),!0)}if(e(!1,t.indents+(t.name?"<"+t.name:"")+(t.attributes.length?" "+t.attributes.join(" "):"")+(n?t.name?">":"":t.name?"/>":"")+(t.indent&&n>1?"\n":"")),!n)return e(!1,t.indent?"\n":"");a(t)||i()}e.exports=function(e,r){"object"!=typeof r&&(r={indent:r});var n,o,c=r.stream?new i:null,u="",l=!1,d=r.indent?!0===r.indent?" ":r.indent:"",p=!0;function h(e){p?t.nextTick(e):e()}function f(e,t){if(void 0!==t&&(u+=t),e&&!l&&(c=c||new i,l=!0),e&&l){var r=u;h((function(){c.emit("data",r)})),u=""}}function g(e,t){s(f,a(e,d,d?1:0),t)}function m(){if(c){var e=u;h((function(){c.emit("data",e),c.emit("end"),c.readable=!1,c.emit("close")}))}}return h((function(){p=!1})),r.declaration&&(n=r.declaration,o={version:"1.0",encoding:n.encoding||"UTF-8"},n.standalone&&(o.standalone=n.standalone),g({"?xml":{_attr:o}}),u=u.replace("/>","?>")),e&&e.forEach?e.forEach((function(t,r){var n;r+1===e.length&&(n=m),g(t,n)})):g(e,m),c?(c.readable=!0,c):u},e.exports.element=e.exports.Element=function(){var e=Array.prototype.slice.call(arguments),t={_elem:a(e),push:function(e){if(!this.append)throw new Error("not assigned to a parent!");var t=this,r=this._elem.indent;s(this.append,a(e,r,this._elem.icount+(r?1:0)),(function(){t.append(!0)}))},close:function(e){void 0!==e&&this.push(e),this.end&&this.end()}};return t}}).call(this,r(9))},function(e,t){var r={"&":"&",'"':""","'":"'","<":"<",">":">"};e.exports=function(e){return e&&e.replace?e.replace(/([&"<>'])/g,(function(e,t){return r[t]})):e}},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(508),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ActorSparqlSerializeTable=void 0;const n=r(3),i=r(21),a=r(20);class s extends i.ActorSparqlSerializeFixedMediaTypes{constructor(e){super(e),this.padding=s.repeat(" ",this.columnWidth)}static repeat(e,t){return new Array(t+1).join(e)}async testHandleChecked(e,t){if(!["bindings","quads"].includes(e.type))throw new Error("This actor can only handle bindings or quad streams.");return!0}pad(e){return e.length<=this.columnWidth?e+this.padding.slice(e.length):e.slice(0,this.columnWidth-1)+"…"}pushHeader(e,t){const r=t.map(e=>this.pad(e)).join(" ");e.push(`${r}\n${s.repeat("-",r.length)}\n`)}pushRow(e,t,r){e.push(t.map(e=>r.has(e)?r.get(e).value:"").map(e=>this.pad(e)).join(" ")+"\n")}async runHandle(e,t,r){const i=new n.Readable;let s;if(i._read=()=>{},"bindings"===e.type){s=e.bindingsStream;const t=e.variables;this.pushHeader(i,t),s.on("error",e=>i.emit("error",e)),s.on("data",e=>this.pushRow(i,t,e))}else s=e.quadStream,this.pushHeader(i,a.QUAD_TERM_NAMES),s.on("error",e=>i.emit("error",e)),s.on("data",e=>i.push(a.getTerms(e).map(e=>this.pad(e.value)).join(" ")+"\n"));return s.on("end",()=>i.push(null)),{data:i}}}t.ActorSparqlSerializeTable=s},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(510),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ActorContextPreprocessSourceToDestination=void 0;const n=r(511),i=r(7);class a extends n.ActorContextPreprocess{constructor(e){super(e)}async test(e){return!0}async run(e){if(e.context&&e.context.get(i.KeysRdfResolveQuadPattern.sources)&&!e.context.get(i.KeysRdfUpdateQuads.destination)){const t=e.context.get(i.KeysRdfResolveQuadPattern.sources);if(1===t.length)return{context:e.context.set(i.KeysRdfUpdateQuads.destination,t[0])}}return e}}t.ActorContextPreprocessSourceToDestination=a},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(512),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ActorContextPreprocess=void 0;const n=r(0);class i extends n.Actor{constructor(e){super(e)}}t.ActorContextPreprocess=i},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(514),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ActorQueryOperationBgpEmpty=void 0;const n=r(1),i=r(4),a=r(2),s=r(20);class o extends n.ActorQueryOperationTyped{constructor(e){super(e,"bgp")}static getVariables(e){return s.uniqTerms(e.map(e=>s.getTerms(e).filter(e=>"Variable"===e.termType)).reduce((e,t)=>[...e,...t],[])).map(e=>a.termToString(e))}async testOperation(e,t){if(e.patterns.length>0)throw new Error(`Actor ${this.name} can only operate on empty BGPs.`);return!0}async runOperation(e,t){return{bindingsStream:new i.SingletonIterator(n.Bindings({})),metadata:()=>Promise.resolve({totalItems:1}),type:"bindings",variables:o.getVariables(e.patterns),canContainUndefs:!1}}}t.ActorQueryOperationBgpEmpty=o},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(516),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ActorQueryOperationValues=void 0;const n=r(1),i=r(4),a=r(2);class s extends n.ActorQueryOperationTyped{constructor(e){super(e,"values")}async testOperation(e,t){return!0}async runOperation(e,t){const r=new i.ArrayIterator(e.bindings.map(e=>n.Bindings(e))),s=e.variables.map(e=>a.termToString(e)),o=e.bindings.some(e=>s.some(t=>!(t in e)));return{type:"bindings",bindingsStream:r,metadata:()=>Promise.resolve({totalItems:e.bindings.length}),variables:s,canContainUndefs:o}}}t.ActorQueryOperationValues=s},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(518),t),i(r(200),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.KEY_CONTEXT_STRICTVALUES=t.KEY_CONTEXT_DOCUMENTLOADER=t.ActorRdfParseJsonLd=void 0;const n=r(54),i=r(7),a=r(519),s=r(200);class o extends n.ActorRdfParseFixedMediaTypes{constructor(e){super(e)}async testHandle(e,t,r){if(r&&r.has("@comunica/actor-rdf-parse-html-script:processing-html-script")&&"application/ld+json"!==t)throw new Error("JSON-LD in script tags can only have media type 'application/ld+json'");if(!(t in this.mediaTypes)&&!t.endsWith("+json"))throw new Error("Unrecognized media type: "+t);return await this.testHandleChecked(e)}async runHandle(e,t,r){return{quads:a.JsonLdParser.fromHttpResponse(e.baseIRI,t,e.headers,Object.assign({documentLoader:r&&r.get(i.KeysRdfParseJsonLd.documentLoader)||new s.DocumentLoaderMediated(this.mediatorHttp,r),strictValues:r&&r.get(i.KeysRdfParseJsonLd.strictValues)},r&&r.get(i.KeysRdfParseJsonLd.parserOptions)||{})).import(e.input)}}}t.ActorRdfParseJsonLd=o,t.KEY_CONTEXT_DOCUMENTLOADER=i.KeysRdfParseJsonLd.documentLoader,t.KEY_CONTEXT_STRICTVALUES=i.KeysRdfParseJsonLd.strictValues},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(198),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EntryHandlerArrayValue=void 0;const n=r(32);t.EntryHandlerArrayValue=class{isPropertyHandler(){return!1}isStackProcessor(){return!0}async validate(e,t,r,n,i){return this.test(e,t,null,r,n)}async test(e,t,r,n,i){return"number"==typeof n[i]}async handle(e,t,r,i,a,s){let o=await t.unaliasKeywordParent(i,s);if("@list"===o){let r=null,n=0;for(let e=s-2;e>0;e--){const t=i[e];if("string"==typeof t||"number"==typeof t){n=e,r=t;break}}if(null!==r){const o=await t.valueToTerm(await e.getContext(i),r,a,s,i);for(const r of o)await this.handleListElement(e,t,r,a,s,i.slice(0,n),n);0===o.length&&await this.handleListElement(e,t,null,a,s,i.slice(0,n),n)}}else if("@set"===o)await e.newOnValueJob(i.slice(0,-2),a,s-2,!1);else if(void 0!==o&&"@type"!==o){for(let e=s-1;e>0;e--)if("number"!=typeof i[e]){o=await t.unaliasKeyword(i[e],i,e);break}const r=await e.getContext(i.slice(0,-1));if("@list"in n.Util.getContextValueContainer(r,o)){e.emittedStack[s+1]=!0;const r=await t.valueToTerm(await e.getContext(i),o,a,s,i);for(const n of r)await this.handleListElement(e,t,n,a,s,i.slice(0,-1),s-1);0===r.length&&await this.handleListElement(e,t,null,a,s,i.slice(0,-1),s-1)}else e.shiftStack(s,1),await e.newOnValueJob(i.slice(0,-1),a,s-1,!1),e.contextTree.removeContext(i.slice(0,-1))}}async handleListElement(e,t,r,n,i,a,s){let o=e.listPointerStack[i];if(null!==n&&null!==(await t.unaliasKeywords(n,a,i))["@value"]){if(o&&o.value){const r=t.dataFactory.blankNode();e.emitQuad(i,t.dataFactory.quad(o.value,t.rdfRest,r,t.getDefaultGraph())),o.value=r}else{const e=t.dataFactory.blankNode();o={value:e,listRootDepth:s,listId:e}}r&&e.emitQuad(i,t.dataFactory.quad(o.value,t.rdfFirst,r,t.getDefaultGraph()))}else o||(o={listRootDepth:s,listId:t.rdfNil});e.listPointerStack[i]=o}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ContainerHandlerIdentifier=void 0;t.ContainerHandlerIdentifier=class{canCombineWithGraph(){return!0}async handle(e,t,r,n,i,a){let s;if(t.emittedStack[a+1]&&t.idStack[a+1])s=t.idStack[a+1][0];else{const e=null!==await r.getContainerKey(n[a],n,a)?await r.resourceToTerm(await t.getContext(n),n[a]):r.dataFactory.blankNode();if(!e)return void(t.emittedStack[a]=!1);s=e,t.idStack[a+1]=[s]}let o=t.idStack[a];o||(o=t.idStack[a]=[]),o.some(e=>e.equals(s))||o.push(s),await t.handlePendingContainerFlushBuffers()||(t.emittedStack[a]=!1)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ContainerHandlerIndex=void 0;const n=r(10),i=r(69),a=r(32);t.ContainerHandlerIndex=class{canCombineWithGraph(){return!0}async handle(e,t,r,s,o,c){if(!Array.isArray(o)){const u="@graph"in e,l=await t.getContext(s),d=s[c-1],p=a.Util.getContextValueIndex(l,d);if(p){if(n.Util.isPotentialKeyword(p))throw new n.ErrorCoded("Keywords can not be used as @index value, got: "+p,n.ERROR_CODES.INVALID_TERM_DEFINITION);if("string"!=typeof p)throw new n.ErrorCoded("@index values must be strings, got: "+p,n.ERROR_CODES.INVALID_TERM_DEFINITION);if("object"!=typeof o){if("@id"!==a.Util.getContextValueType(l,d))throw new n.ErrorCoded("Property-based index containers require nodes as values or strings with @type: @id, but got: "+o,n.ERROR_CODES.INVALID_VALUE_OBJECT);const e=r.resourceToTerm(l,o);e&&(t.idStack[c+1]=[e])}const e=r.createVocabOrBaseTerm(l,p);if(e){const n=await r.valueToTerm(l,p,await r.getContainerKey(s[c],s,c),c,s);if(u){const i=await r.getGraphContainerValue(s,c+1);for(const a of n)t.emitQuad(c,r.dataFactory.quad(i,e,a,r.getDefaultGraph()))}else for(const a of n)await i.EntryHandlerPredicate.handlePredicateObject(t,r,s,c+1,e,a,!1)}}const h=u?2:1;await t.newOnValueJob(s.slice(0,s.length-h),o,c-h,!0),await t.handlePendingContainerFlushBuffers()}t.emittedStack[c]=!1}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ContainerHandlerLanguage=void 0;const n=r(10);t.ContainerHandlerLanguage=class{canCombineWithGraph(){return!1}async handle(e,t,r,i,a,s){const o=await r.getContainerKey(i[s],i,s);if(Array.isArray(a))a=a.map(e=>({"@value":e,"@language":o}));else{if("string"!=typeof a)throw new n.ErrorCoded(`Got invalid language map value, got '${JSON.stringify(a)}', but expected string`,n.ERROR_CODES.INVALID_LANGUAGE_MAP_VALUE);a={"@value":a,"@language":o}}await t.newOnValueJob(i.slice(0,i.length-1),a,s-1,!0),t.emittedStack[s]=!1}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ContainerHandlerType=void 0;const n=r(69),i=r(32);t.ContainerHandlerType=class{canCombineWithGraph(){return!1}async handle(e,t,r,a,s,o){if(!Array.isArray(s)){if("string"==typeof s){const e=await t.getContext(a),n="@vocab"===i.Util.getContextValueType(e,a[o-1])?await r.createVocabOrBaseTerm(e,s):await r.resourceToTerm(e,s);if(n){const e={"@id":"NamedNode"===n.termType?n.value:s};await t.newOnValueJob(a.slice(0,a.length-1),e,o-1,!0),t.idStack[o+1]=[n]}}else{const e=!!t.idStack[o+1];e||delete t.idStack[o],await t.newOnValueJob(a.slice(0,a.length-1),s,o-1,!0),e||(t.idStack[o+1]=t.idStack[o])}const e=await r.getContainerKey(a[o],a,o),c=null!==e?r.createVocabOrBaseTerm(await t.getContext(a),e):null;c&&await n.EntryHandlerPredicate.handlePredicateObject(t,r,a,o+1,r.rdfType,c,!1),await t.handlePendingContainerFlushBuffers()}t.emittedStack[o]=!1}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EntryHandlerInvalidFallback=void 0;t.EntryHandlerInvalidFallback=class{isPropertyHandler(){return!1}isStackProcessor(){return!0}async validate(e,t,r,n,i){return!1}async test(e,t,r,n,i){return!0}async handle(e,t,r,n,i,a){e.emittedStack[a]=!1}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EntryHandlerKeywordContext=void 0;const n=r(10),i=r(33);class a extends i.EntryHandlerKeyword{constructor(){super("@context")}isStackProcessor(){return!1}async handle(e,t,r,i,a,s){e.streamingProfile&&(e.processingStack[s]||e.processingType[s]||void 0!==e.idStack[s])&&e.emitError(new n.ErrorCoded("Found an out-of-order context, while streaming is enabled.(disable `streamingProfile`)",n.ERROR_CODES.INVALID_STREAMING_KEY_ORDER));const o=e.getContext(i),c=e.parseContext(a,(await o).getContextRaw());e.contextTree.setContext(i.slice(0,-1),c),e.emitContext(a),await e.validateContext(await c)}}t.EntryHandlerKeywordContext=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EntryHandlerKeywordGraph=void 0;const n=r(33);class i extends n.EntryHandlerKeyword{constructor(){super("@graph")}async handle(e,t,r,n,i,a){e.graphStack[a+1]=!0}}t.EntryHandlerKeywordGraph=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EntryHandlerKeywordId=void 0;const n=r(10),i=r(33);class a extends i.EntryHandlerKeyword{constructor(){super("@id")}isStackProcessor(){return!1}async handle(e,t,r,i,a,s){"string"!=typeof a&&e.emitError(new n.ErrorCoded(`Found illegal @id '${a}'`,n.ERROR_CODES.INVALID_ID_VALUE));const o=await t.getPropertiesDepth(i,s);void 0!==e.idStack[o]&&(e.idStack[o][0].listHead?e.emitError(new n.ErrorCoded(`Found illegal neighbouring entries next to @list for key: '${i[s-1]}'`,n.ERROR_CODES.INVALID_SET_OR_LIST_OBJECT)):e.emitError(new n.ErrorCoded(`Found duplicate @ids '${e.idStack[o][0].value}' and '${a}'`,n.ERROR_CODES.COLLIDING_KEYWORDS))),e.idStack[o]=t.nullableTermToArray(await t.resourceToTerm(await e.getContext(i),a))}}t.EntryHandlerKeywordId=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EntryHandlerKeywordIncluded=void 0;const n=r(10),i=r(33);class a extends i.EntryHandlerKeyword{constructor(){super("@included")}async handle(e,t,r,i,a,s){"object"!=typeof a&&e.emitError(new n.ErrorCoded(`Found illegal @included '${a}'`,n.ERROR_CODES.INVALID_INCLUDED_VALUE));const o=await t.unaliasKeywords(a,i,s,await e.getContext(i));"@value"in o&&e.emitError(new n.ErrorCoded(`Found an illegal @included @value node '${JSON.stringify(a)}'`,n.ERROR_CODES.INVALID_INCLUDED_VALUE)),"@list"in o&&e.emitError(new n.ErrorCoded(`Found an illegal @included @list node '${JSON.stringify(a)}'`,n.ERROR_CODES.INVALID_INCLUDED_VALUE)),e.emittedStack[s]=!1}}t.EntryHandlerKeywordIncluded=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EntryHandlerKeywordNest=void 0;const n=r(10),i=r(33);class a extends i.EntryHandlerKeyword{constructor(){super("@nest")}async handle(e,t,r,i,a,s){"object"!=typeof a&&e.emitError(new n.ErrorCoded(`Found invalid @nest entry for '${r}': '${a}'`,n.ERROR_CODES.INVALID_NEST_VALUE)),"@value"in await t.unaliasKeywords(a,i,s,await e.getContext(i))&&e.emitError(new n.ErrorCoded(`Found an invalid @value node for '${r}'`,n.ERROR_CODES.INVALID_NEST_VALUE)),e.emittedStack[s]=!1}}t.EntryHandlerKeywordNest=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EntryHandlerKeywordType=void 0;const n=r(10),i=r(32),a=r(69),s=r(33);class o extends s.EntryHandlerKeyword{constructor(){super("@type")}isStackProcessor(){return!1}async handle(e,t,r,s,o,c){const u=s[c],l=await e.getContext(s),d=t.rdfType,p=i.Util.isPropertyReverse(l,u,await t.unaliasKeywordParent(s,c)),h=Array.isArray(o)?o:[o];for(const r of h){"string"!=typeof r&&e.emitError(new n.ErrorCoded(`Found illegal @type '${r}'`,n.ERROR_CODES.INVALID_TYPE_VALUE));const i=t.createVocabOrBaseTerm(l,r);i&&await a.EntryHandlerPredicate.handlePredicateObject(e,t,s,c,d,i,p)}let f=Promise.resolve(l),g=!1;for(const t of h.sort()){const r=i.Util.getContextValue(l,"@context",t,null);r&&(g=!0,f=f.then(t=>e.parseContext(r,t.getContextRaw())))}!e.streamingProfile||!g&&e.streamingProfileAllowOutOfOrderPlainType||!e.processingStack[c]&&!e.idStack[c]||e.emitError(new n.ErrorCoded("Found an out-of-order type-scoped context, while streaming is enabled.(disable `streamingProfile`)",n.ERROR_CODES.INVALID_STREAMING_KEY_ORDER)),g&&(f=f.then(e=>("@propagate"in e.getContextRaw()||(e.getContextRaw()["@propagate"]=!1),!1===e.getContextRaw()["@propagate"]&&(e.getContextRaw()["@__propagateFallback"]=l.getContextRaw()),e)),e.contextTree.setContext(s.slice(0,s.length-1),f)),e.processingType[c]=!0}}t.EntryHandlerKeywordType=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EntryHandlerKeywordUnknownFallback=void 0;const n=r(10);class i{isPropertyHandler(){return!1}isStackProcessor(){return!0}async validate(e,t,r,i,a){const s=await t.unaliasKeyword(r[i],r,i);return!!n.Util.isPotentialKeyword(s)&&!(!a&&"@list"===s)}async test(e,t,r,i,a){return n.Util.isPotentialKeyword(r)}async handle(e,t,r,a,s,o){const c=i.VALID_KEYWORDS_TYPES[r];void 0!==c?c&&typeof s!==c.type&&e.emitError(new n.ErrorCoded(`Invalid value type for '${r}' with value '${s}'`,c.errorCode)):e.strictValues&&e.emitError(new Error(`Unknown keyword '${r}' with value '${s}'`)),e.emittedStack[o]=!1}}t.EntryHandlerKeywordUnknownFallback=i,i.VALID_KEYWORDS_TYPES={"@index":{type:"string",errorCode:n.ERROR_CODES.INVALID_INDEX_VALUE},"@list":null,"@reverse":{type:"object",errorCode:n.ERROR_CODES.INVALID_REVERSE_VALUE},"@set":null,"@value":null}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EntryHandlerKeywordValue=void 0;const n=r(33);class i extends n.EntryHandlerKeyword{constructor(){super("@value")}async validate(e,t,r,n,i){const a=r[n];return a&&!e.literalStack[n]&&await this.test(e,t,a,r,n)&&(e.literalStack[n]=!0),super.validate(e,t,r,n,i)}async test(e,t,r,n,i){return"@value"===await t.unaliasKeyword(n[i],n.slice(0,n.length-1),i-1,!0)}async handle(e,t,r,n,i,a){e.literalStack[a]=!0,delete e.unidentifiedValuesBuffer[a],delete e.unidentifiedGraphsBuffer[a],e.emittedStack[a]=!1}}t.EntryHandlerKeywordValue=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ParsingContext=void 0;const n=r(10),i=r(55),a=r(535),s=r(198);class o{constructor(e){this.contextParser=new n.ContextParser({documentLoader:e.documentLoader,skipValidation:e.skipContextValidation}),this.streamingProfile=!!e.streamingProfile,this.baseIRI=e.baseIRI,this.produceGeneralizedRdf=!!e.produceGeneralizedRdf,this.allowSubjectList=!!e.allowSubjectList,this.processingMode=e.processingMode||s.JsonLdParser.DEFAULT_PROCESSING_MODE,this.strictValues=!!e.strictValues,this.validateValueIndexes=!!e.validateValueIndexes,this.defaultGraph=e.defaultGraph,this.rdfDirection=e.rdfDirection,this.normalizeLanguageTags=e.normalizeLanguageTags,this.streamingProfileAllowOutOfOrderPlainType=e.streamingProfileAllowOutOfOrderPlainType,this.topLevelProperties=!1,this.activeProcessingMode=parseFloat(this.processingMode),this.processingStack=[],this.processingType=[],this.emittedStack=[],this.idStack=[],this.graphStack=[],this.graphContainerTermStack=[],this.listPointerStack=[],this.contextTree=new a.ContextTree,this.literalStack=[],this.validationStack=[],this.unaliasedKeywordCacheStack=[],this.jsonLiteralStack=[],this.unidentifiedValuesBuffer=[],this.unidentifiedGraphsBuffer=[],this.pendingContainerFlushBuffers=[],this.parser=e.parser,e.context?(this.rootContext=this.parseContext(e.context),this.rootContext.then(e=>this.validateContext(e))):this.rootContext=Promise.resolve(new n.JsonLdContextNormalized(this.baseIRI?{"@base":this.baseIRI,"@__baseDocument":!0}:{}))}async parseContext(e,t,r){return this.contextParser.parse(e,{baseIRI:this.baseIRI,ignoreProtection:r,normalizeLanguageTags:this.normalizeLanguageTags,parentContext:t,processingMode:this.activeProcessingMode})}validateContext(e){const t=e.getContextRaw()["@version"];if(t){if(this.activeProcessingMode&&t>this.activeProcessingMode)throw new i.ErrorCoded(`Unsupported JSON-LD version '${t}' under active processing mode ${this.activeProcessingMode}.`,i.ERROR_CODES.PROCESSING_MODE_CONFLICT);if(this.activeProcessingMode&&t0&&!1===i.context.getContextRaw()["@propagate"]&&i.depth!==t&&!r);return 0===i.depth&&!1===i.context.getContextRaw()["@propagate"]&&i.depth!==t&&(i.context=new n.JsonLdContextNormalized({})),i}async newOnValueJob(e,t,r,n){await this.parser.newOnValueJob(e,t,r,n)}async handlePendingContainerFlushBuffers(){if(this.pendingContainerFlushBuffers.length>0){for(const e of this.pendingContainerFlushBuffers)await this.parser.flushBuffer(e.depth,e.keys),this.parser.flushStacks(e.depth);return this.pendingContainerFlushBuffers.splice(0,this.pendingContainerFlushBuffers.length),!0}return!1}emitQuad(e,t){1===e&&(this.topLevelProperties=!0),this.parser.push(t)}emitError(e){this.parser.emit("error",e)}emitContext(e){this.parser.emit("context",e)}getUnidentifiedValueBufferSafe(e){let t=this.unidentifiedValuesBuffer[e];return t||(t=[],this.unidentifiedValuesBuffer[e]=t),t}getUnidentifiedGraphBufferSafe(e){let t=this.unidentifiedGraphsBuffer[e];return t||(t=[],this.unidentifiedGraphsBuffer[e]=t),t}getExpandOptions(){return o.EXPAND_OPTIONS[this.activeProcessingMode]}shiftStack(e,t){const r=this.idStack[e+t];if(r&&(this.idStack[e]=r,this.emittedStack[e]=!0,delete this.idStack[e+t]),this.pendingContainerFlushBuffers.length)for(const r of this.pendingContainerFlushBuffers)r.depth>=e+t&&(r.depth-=t,r.keys.splice(e,t));this.unidentifiedValuesBuffer[e+t]&&(this.unidentifiedValuesBuffer[e]=this.unidentifiedValuesBuffer[e+t],delete this.unidentifiedValuesBuffer[e+t])}}t.ParsingContext=o,o.EXPAND_OPTIONS={1:{allowPrefixForcing:!1,allowPrefixNonGenDelims:!1,allowVocabRelativeToBase:!1},1.1:{allowPrefixForcing:!0,allowPrefixNonGenDelims:!1,allowVocabRelativeToBase:!0}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ContextTree=void 0;class n{constructor(){this.subTrees={}}getContext(e){if(e.length>0){const[t,...r]=e,n=this.subTrees[t];if(n){const e=n.getContext(r);if(e)return e.then(({context:e,depth:t})=>({context:e,depth:t+1}))}}return this.context?this.context.then(e=>({context:e,depth:0})):null}setContext(e,t){if(0===e.length)this.context=t;else{const[r,...i]=e;let a=this.subTrees[r];a||(a=this.subTrees[r]=new n),a.setContext(i,t)}}removeContext(e){this.setContext(e,null)}}t.ContextTree=n},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(537),t),i(r(201),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ActorRdfUpdateHypermediaPatchSparqlUpdate=void 0;const n=r(96),i=r(201);class a extends n.ActorRdfUpdateHypermedia{constructor(e){super(e,"patchSparqlUpdate")}async testMetadata(e){if(!e.forceDestinationType&&!e.metadata.patchSparqlUpdate)throw new Error(`Actor ${this.name} could not detect a destination with 'application/sparql-update' as 'Accept-Patch' header.`);if(!e.forceDestinationType&&!e.exists)throw new Error(`Actor ${this.name} can only patch a destination that already exists.`);return!0}async run(e){return this.logInfo(e.context,"Identified as patchSparqlUpdate destination: "+e.url),{destination:new i.QuadDestinationPatchSparqlUpdate(e.url,e.context,this.mediatorHttp)}}}t.ActorRdfUpdateHypermediaPatchSparqlUpdate=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ActorRdfUpdateHypermedia=void 0;const n=r(0);class i extends n.Actor{constructor(e,t){super(e),this.destinationType=t}async test(e){if(e.forceDestinationType&&this.destinationType!==e.forceDestinationType)throw new Error(`Actor ${this.name} is not able to handle destination type ${e.forceDestinationType}.`);return this.testMetadata(e)}}t.ActorRdfUpdateHypermedia=i},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(540),t),i(r(202),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ActorRdfUpdateHypermediaSparql=void 0;const n=r(96),i=r(202);class a extends n.ActorRdfUpdateHypermedia{constructor(e){super(e,"sparql")}async testMetadata(e){if(!(e.forceDestinationType||e.metadata.sparqlService||this.checkUrlSuffixSparql&&e.url.endsWith("/sparql")||this.checkUrlSuffixUpdate&&e.url.endsWith("/update")))throw new Error(`Actor ${this.name} could not detect a SPARQL service description or URL ending on /sparql or /update.`);return!0}async run(e){return this.logInfo(e.context,"Identified as sparql destination: "+e.url),{destination:new i.QuadDestinationSparql(e.metadata.sparqlService||e.url,e.context,this.mediatorHttp)}}}t.ActorRdfUpdateHypermediaSparql=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SparqlEndpointFetcher=void 0,r(53);const n=r(542),i=r(25),a=r(132),s=r(543),o=r(45),c=r(135),u=r(59),l=r(142);class d{constructor(e){e=e||{},this.method=e.method||"POST",this.fetchCb=e.fetch,this.sparqlJsonParser=new a.SparqlJsonParser(e),this.sparqlXmlParser=new s.SparqlXmlParser(e),this.sparqlParsers={[d.CONTENTTYPE_SPARQL_JSON]:{parseBooleanStream:e=>this.sparqlJsonParser.parseJsonBooleanStream(e),parseResultsStream:e=>this.sparqlJsonParser.parseJsonResultsStream(e)},[d.CONTENTTYPE_SPARQL_XML]:{parseBooleanStream:e=>this.sparqlXmlParser.parseXmlBooleanStream(e),parseResultsStream:e=>this.sparqlXmlParser.parseXmlResultsStream(e)}}}getQueryType(e){const t=(new i.Parser).parse(e);return"query"===t.type?"DESCRIBE"===t.queryType?"CONSTRUCT":t.queryType:"UNKNOWN"}getUpdateTypes(e){const t=(new i.Parser).parse(e);if("update"===t.type){const e={};for(const r of t.updates)"type"in r?e[r.type]=!0:e[r.updateType]=!0;return e}return"UNKNOWN"}async fetchBindings(e,t){const[r,n]=await this.fetchRawStream(e,t,d.CONTENTTYPE_SPARQL),i=this.sparqlParsers[r];if(!i)throw new Error("Unknown SPARQL results content type: "+r);return i.parseResultsStream(n)}async fetchAsk(e,t){const[r,n]=await this.fetchRawStream(e,t,d.CONTENTTYPE_SPARQL),i=this.sparqlParsers[r];if(!i)throw new Error("Unknown SPARQL results content type: "+r);return i.parseBooleanStream(n)}async fetchTriples(e,t){return(await this.fetchRawStream(e,t,d.CONTENTTYPE_TURTLE))[1].pipe(new u.StreamParser({format:d.CONTENTTYPE_TURTLE}))}async fetchUpdate(e,t){const r=new n.default,i={method:"POST",headers:{"content-type":"application/sparql-update"},body:t,signal:r.signal};await this.handleFetchCall(e,i,{ignoreBody:!0}),r.abort()}async fetchRawStream(e,t,r){const n="POST"===this.method?e:e+"?query="+encodeURIComponent(t),i=new Headers;let a;return i.append("Accept",r),"POST"===this.method&&(i.append("Content-Type","application/x-www-form-urlencoded"),a=new URLSearchParams,a.set("query",t),i.append("Content-Length",a.toString().length.toString())),this.handleFetchCall(n,{headers:i,method:this.method,body:a})}async handleFetchCall(e,t,r={}){const n=await(this.fetchCb||fetch)(e,t);let i;r.ignoreBody||(i=l(n.body)?n.body:new c.ReadableWebToNodeStream(n.body));let a=n.headers.get("Content-Type")||"";if(a.indexOf(";")>0&&(a=a.substr(0,a.indexOf(";"))),!n.ok){const t=/^[^?]*/u.exec(e)[0];let r="empty response";throw i&&(r=await o(i)),new Error(`Invalid SPARQL endpoint response from ${t} (HTTP status ${n.status}):\n${r}`)}return[a,i]}}t.SparqlEndpointFetcher=d,d.CONTENTTYPE_SPARQL_JSON="application/sparql-results+json",d.CONTENTTYPE_SPARQL_XML="application/sparql-results+xml",d.CONTENTTYPE_SPARQL=`${d.CONTENTTYPE_SPARQL_JSON};q=1.0,${d.CONTENTTYPE_SPARQL_XML};q=0.7`,d.CONTENTTYPE_TURTLE="text/turtle"},function(e,t,r){"use strict";const{AbortController:n,AbortSignal:i}="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0;e.exports=n,e.exports.AbortSignal=i,e.exports.default=n},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(544),t),i(r(203),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SparqlXmlParser=void 0;const n=r(5),i=r(203),a=r(545);t.SparqlXmlParser=class{constructor(e){e=e||{},this.dataFactory=e.dataFactory||new n.DataFactory,this.prefixVariableQuestionMark=!!e.prefixVariableQuestionMark}parseXmlResultsStream(e){const t=[];e.pipe(a({strict:!0,tag:"variable"})).on("data",e=>t.push(this.dataFactory.variable(e.attribs.name))).on("error",()=>{}).on("finish",()=>r.emit("variables",t));const r=e.pipe(a({strict:!0,tag:"result"})).on("error",e=>r.emit("error",e)).pipe(new i.SparqlXmlBindingsTransformer(this));return e.on("error",e=>r.emit("error",e)),r}parseXmlBindings(e){const t={};if(e.children){const r=Array.isArray(e.children.binding)?e.children.binding:[e.children.binding];for(const e of r)if(e.attribs&&e.children){const r=e.attribs.name;let n=null;if(e.children.bnode)n=this.dataFactory.blankNode(e.children.bnode.value);else if(e.children.literal){const t=e.children.literal.value||"",r=e.children.literal.attribs;n=r&&r["xml:lang"]?this.dataFactory.literal(t,r["xml:lang"]):r&&r.datatype?this.dataFactory.literal(t,this.dataFactory.namedNode(r.datatype)):this.dataFactory.literal(t)}else n=this.dataFactory.namedNode(e.children.uri.value);t[this.prefixVariableQuestionMark?"?"+r:r]=n}}return t}parseXmlBooleanStream(e){return new Promise((t,r)=>{e.on("error",r),e.pipe(a({strict:!0,tag:"boolean"})).on("error",r).on("data",e=>t("true"===e.value)).on("end",()=>r(new Error("No valid ASK response was found.")))})}}},function(e,t,r){e.exports=r(546)},function(e,t,r){var n=r(3).Transform,i=r(547),a=r(150),s=r(550),o=r(551)("sax-stream");function c(e){if(!(this instanceof c))return new c(e);n.call(this,{highWaterMark:e.highWaterMark||350,objectMode:!0}),this.records=[],this.error=null,this.parser=this.createSaxParser(e)}e.exports=c,i.inherits(c,n),c.prototype.createSaxParser=function(e){var t,r=this,n=a.parser(e.strict||!1,function(e){return["trim","normalize","lowercase","xmlns","position","strictEntities","noscript"].reduce((function(t,r){return r in e&&(t[r]=e[r]),t}),{position:!1})}(e)),i=function(t){return t===e.tag},c=function(e,t){r.records.push(t)};return Array.isArray(e.tag)&&(i=function(t){return-1!==e.tag.indexOf(t)},c=function(e,t){r.records.push({tag:e,record:t})}),n.onopentag=function(e){o('Open "%s"',e.name),t?t=s.addChild(t,e.name):i(e.name)&&(t={}),t&&Object.keys(e.attributes).length&&(t.attribs=e.attributes)},n.onclosetag=function(e){o('Closed "%s"',e),i(e)&&!t.parent?(o("Emitting record",t),c(e,t),t=void 0):t&&(t=t.parent)},n.ontext=function(e){t&&s.addText(t,e)},n.oncdata=function(e){t&&s.concatText(t,e)},n.onerror=function(e){r.error=e},n.onend=function(){o("onend - flushing remaining items"),r.pushAll(r.callback),r.callback=null},n},c.prototype.pushAll=function(e){if(this.error)return e(this.error),void(this.error=null);o("pushing %d",this.records.length),this.records.forEach(this.push.bind(this)),this.records.length=0,e()},c.prototype._transform=function(e,t,r){this.parser.write(e.toString()),this.pushAll(r)},c.prototype._flush=function(e){this.callback=e,this.parser.close()}},function(e,t,r){(function(e){var n=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},n=0;n=a)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}})),c=n[r];r=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),f(r)?n.showHidden=r:r&&t._extend(n,r),b(n.showHidden)&&(n.showHidden=!1),b(n.depth)&&(n.depth=2),b(n.colors)&&(n.colors=!1),b(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=c),l(n,e,n.depth)}function c(e,t){var r=o.styles[t];return r?"["+o.colors[r][0]+"m"+e+"["+o.colors[r][1]+"m":e}function u(e,t){return e}function l(e,r,n){if(e.customInspect&&r&&T(r.inspect)&&r.inspect!==t.inspect&&(!r.constructor||r.constructor.prototype!==r)){var i=r.inspect(n,e);return y(i)||(i=l(e,i,n)),i}var a=function(e,t){if(b(t))return e.stylize("undefined","undefined");if(y(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(m(t))return e.stylize(""+t,"number");if(f(t))return e.stylize(""+t,"boolean");if(g(t))return e.stylize("null","null")}(e,r);if(a)return a;var s=Object.keys(r),o=function(e){var t={};return e.forEach((function(e,r){t[e]=!0})),t}(s);if(e.showHidden&&(s=Object.getOwnPropertyNames(r)),S(r)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return d(r);if(0===s.length){if(T(r)){var c=r.name?": "+r.name:"";return e.stylize("[Function"+c+"]","special")}if(_(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(w(r))return e.stylize(Date.prototype.toString.call(r),"date");if(S(r))return d(r)}var u,v="",E=!1,O=["{","}"];(h(r)&&(E=!0,O=["[","]"]),T(r))&&(v=" [Function"+(r.name?": "+r.name:"")+"]");return _(r)&&(v=" "+RegExp.prototype.toString.call(r)),w(r)&&(v=" "+Date.prototype.toUTCString.call(r)),S(r)&&(v=" "+d(r)),0!==s.length||E&&0!=r.length?n<0?_(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special"):(e.seen.push(r),u=E?function(e,t,r,n,i){for(var a=[],s=0,o=t.length;s=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60)return r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1];return r[0]+t+" "+e.join(", ")+" "+r[1]}(u,v,O)):O[0]+v+O[1]}function d(e){return"["+Error.prototype.toString.call(e)+"]"}function p(e,t,r,n,i,a){var s,o,c;if((c=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?o=c.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):c.set&&(o=e.stylize("[Setter]","special")),R(n,i)||(s="["+i+"]"),o||(e.seen.indexOf(c.value)<0?(o=g(r)?l(e,c.value,null):l(e,c.value,r-1)).indexOf("\n")>-1&&(o=a?o.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+o.split("\n").map((function(e){return" "+e})).join("\n")):o=e.stylize("[Circular]","special")),b(s)){if(a&&i.match(/^\d+$/))return o;(s=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),s=e.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=e.stylize(s,"string"))}return s+": "+o}function h(e){return Array.isArray(e)}function f(e){return"boolean"==typeof e}function g(e){return null===e}function m(e){return"number"==typeof e}function y(e){return"string"==typeof e}function b(e){return void 0===e}function _(e){return v(e)&&"[object RegExp]"===E(e)}function v(e){return"object"==typeof e&&null!==e}function w(e){return v(e)&&"[object Date]"===E(e)}function S(e){return v(e)&&("[object Error]"===E(e)||e instanceof Error)}function T(e){return"function"==typeof e}function E(e){return Object.prototype.toString.call(e)}function O(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(r){if(b(a)&&(a=e.env.NODE_DEBUG||""),r=r.toUpperCase(),!s[r])if(new RegExp("\\b"+r+"\\b","i").test(a)){var n=e.pid;s[r]=function(){var e=t.format.apply(t,arguments);console.error("%s %d: %s",r,n,e)}}else s[r]=function(){};return s[r]},t.inspect=o,o.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]},o.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=h,t.isBoolean=f,t.isNull=g,t.isNullOrUndefined=function(e){return null==e},t.isNumber=m,t.isString=y,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=b,t.isRegExp=_,t.isObject=v,t.isDate=w,t.isError=S,t.isFunction=T,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=r(548);var x=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function A(){var e=new Date,t=[O(e.getHours()),O(e.getMinutes()),O(e.getSeconds())].join(":");return[e.getDate(),x[e.getMonth()],t].join(" ")}function R(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",A(),t.format.apply(t,arguments))},t.inherits=r(549),t._extend=function(e,t){if(!t||!v(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};var P="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function I(e,t){if(!e){var r=new Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(P&&e[P]){var t;if("function"!=typeof(t=e[P]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,P,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,r,n=new Promise((function(e,n){t=e,r=n})),i=[],a=0;a=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(i())}).call(this,r(9))},function(e,t,r){var n;function i(e){function r(){if(r.enabled){var e=r,i=+new Date,a=i-(n||i);e.diff=a,e.prev=n,e.curr=i,n=i;for(var s=new Array(arguments.length),o=0;o0)return function(e){if((e=String(e)).length>100)return;var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(!t)return;var s=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*s;case"days":case"day":case"d":return s*a;case"hours":case"hour":case"hrs":case"hr":case"h":return s*i;case"minutes":case"minute":case"mins":case"min":case"m":return s*n;case"seconds":case"second":case"secs":case"sec":case"s":return s*r;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}(e);if("number"===c&&!1===isNaN(e))return t.long?s(o=e,a,"day")||s(o,i,"hour")||s(o,n,"minute")||s(o,r,"second")||o+" ms":function(e){if(e>=a)return Math.round(e/a)+"d";if(e>=i)return Math.round(e/i)+"h";if(e>=n)return Math.round(e/n)+"m";if(e>=r)return Math.round(e/r)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(555),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ActorRdfResolveHypermediaSparql=void 0;const n=r(94),i=r(556);class a extends n.ActorRdfResolveHypermedia{constructor(e){super(e,"sparql")}async testMetadata(e){if(!(e.forceSourceType||e.metadata.sparqlService||this.checkUrlSuffix&&e.url.endsWith("/sparql")))throw new Error(`Actor ${this.name} could not detect a SPARQL service description or URL ending on /sparql.`);return{filterFactor:1}}async run(e){this.logInfo(e.context,"Identified as sparql source: "+e.url);return{source:new i.RdfSourceSparql(e.metadata.sparqlService||e.url,e.context,this.mediatorHttp,this.forceHttpGet)}}}t.ActorRdfResolveHypermediaSparql=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RdfSourceSparql=void 0;const n=r(557),i=r(4),a=r(98),s=r(5),o=r(20),c=r(6),u=new s.DataFactory;class l{constructor(e,t,r,n){this.url=e,this.context=t,this.mediatorHttp=r,this.endpointFetcher=new a.SparqlEndpointFetcher({method:n?"GET":"POST",fetch:(e,t)=>this.mediatorHttp.mediate({input:e,init:t,context:this.context}),prefixVariableQuestionMark:!0})}static replaceBlankNodes(e){const t=o.getVariables(o.getTerms(e)).map(e=>e.value),r={};let n=!1;const i=o.mapTerms(e,e=>{if("BlankNode"===e.termType){let i=e.value;if(r[i])i=r[i];else{if(t.includes(i)){let e=0;for(;t.includes(`${i}${e}`);)++e;i+=e}r[e.value]=i,t.push(i)}return n=!0,u.variable(i)}return e});return n?i:e}static patternToBgp(e){return l.FACTORY.createBgp([l.FACTORY.createPattern(e.subject,e.predicate,e.object,e.graph)])}static patternToSelectQuery(e){const t=o.getVariables(o.getTerms(e));return c.toSparql(l.FACTORY.createProject(l.patternToBgp(e),t))}static patternToCountQuery(e){return c.toSparql(l.FACTORY.createProject(l.FACTORY.createExtend(l.FACTORY.createGroup(l.patternToBgp(e),[],[l.FACTORY.createBoundAggregate(u.variable("var0"),"count",l.FACTORY.createWildcardExpression(),!1)]),u.variable("count"),l.FACTORY.createTermExpression(u.variable("var0"))),[u.variable("count")]))}queryBindings(e,t){const r=this.endpointFetcher.fetchBindings(e,t);return i.wrap(r,{autoStart:!1,maxBufferSize:Number.POSITIVE_INFINITY}).map(e=>n.Bindings(e))}match(e,t,r,n){const i=l.replaceBlankNodes(l.FACTORY.createPattern(e,t,r,n)),a=l.patternToCountQuery(i),s=l.patternToSelectQuery(i);new Promise(e=>{const t=this.queryBindings(this.url,a);t.on("data",t=>{const r=t.get("?count");if(r){const t=Number.parseInt(r.value,10);return Number.isNaN(t)?e({totalItems:Number.POSITIVE_INFINITY}):e({totalItems:t})}return e({totalItems:Number.POSITIVE_INFINITY})}),t.on("error",()=>e({totalItems:Number.POSITIVE_INFINITY})),t.on("end",()=>e({totalItems:Number.POSITIVE_INFINITY}))}).then(e=>c.setProperty("metadata",e));const c=this.queryBindings(this.url,s).map(e=>o.mapTerms(i,t=>{if("Variable"===t.termType){const r=e.get("?"+t.value);return r||c.destroy(new Error(`The endpoint ${this.url} failed to provide a binding for ${t.value}.`)),r}return t}));return c}}t.RdfSourceSparql=l,l.FACTORY=new c.Factory},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(204),t),i(r(206),t),i(r(558),t),i(r(205),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ActorQueryOperationTypedMediated=void 0;const n=r(206);class i extends n.ActorQueryOperationTyped{constructor(e,t){super(e,t)}}t.ActorQueryOperationTypedMediated=i},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(560),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ActorQueryOperationSparqlEndpoint=void 0;const n=r(1),i=r(29),a=r(57),s=r(561),o=r(4),c=r(98),u=r(2),l=r(6);class d extends n.ActorQueryOperation{constructor(e){super(e),this.endpointFetcher=new c.SparqlEndpointFetcher({method:e.forceHttpGet?"GET":"POST",fetch:(e,t)=>this.mediatorHttp.mediate({input:e,init:t,context:this.lastContext}),prefixVariableQuestionMark:!0})}async test(e){if(!e.operation)throw new Error("Missing field 'operation' in a query operation action.");const t=await s.DataSourceUtils.getSingleSource(e.context),r=await s.DataSourceUtils.getSingleDestination(e.context),n=t?i.getDataSourceType(t):void 0,o=r?a.getDataDestinationType(r):void 0,c=t?i.getDataSourceValue(t):void 0,u=r?a.getDataDestinationValue(r):void 0;if(t&&"sparql"===n&&(!r||"sparql"===o&&u===c)||t&&!n&&(!r||!o&&u===c)&&"string"==typeof c&&(this.checkUrlSuffixSparql&&c.endsWith("/sparql")||this.checkUrlSuffixUpdate&&c.endsWith("/update")))return{httpRequests:1};throw new Error(this.name+" requires a single source with a 'sparql' endpoint to be present in the context or URL ending on /sparql or /update.")}async run(e){const t=await s.DataSourceUtils.getSingleSource(e.context);if(!t)throw new Error("Illegal state: undefined sparql endpoint source.");const r=i.getDataSourceValue(t);let n,a,o;this.lastContext=e.context;try{n=l.toSparql(e.operation),a=this.endpointFetcher.getQueryType(n),"UNKNOWN"===a&&(a=this.endpointFetcher.getUpdateTypes(n))}catch(e){}switch(a&&"UNKNOWN"!==a||(o=l.Util.inScopeVariables(e.operation),n=l.toSparql(d.FACTORY.createProject(e.operation,o)),a="SELECT"),a){case"SELECT":return o||(o=l.Util.inScopeVariables(e.operation)),this.executeQuery(r,n,!1,o);case"CONSTRUCT":return this.executeQuery(r,n,!0);case"ASK":return{type:"boolean",booleanResult:this.endpointFetcher.fetchAsk(r,n)};default:return{type:"update",updateResult:this.endpointFetcher.fetchUpdate(r,n)}}}executeQuery(e,t,r,i){const a=r?this.endpointFetcher.fetchTriples(e,t):this.endpointFetcher.fetchBindings(e,t);let s=0;const c=o.wrap(a,{autoStart:!1,maxBufferSize:Number.POSITIVE_INFINITY}).map(e=>(s++,r?e:n.Bindings(e)));a.then(e=>e.on("end",()=>c.emit("metadata",{totalItems:s})),()=>{});const l=d.cachifyMetadata(()=>new Promise((e,t)=>{c._fillBuffer(),c.on("error",t),c.on("end",()=>t(new Error("No metadata was found"))),c.on("metadata",e)}));return r?{type:"quads",quadStream:c,metadata:l}:{type:"bindings",bindingsStream:c,metadata:l,variables:i.map(e=>u.termToString(e)),canContainUndefs:!0}}}t.ActorQueryOperationSparqlEndpoint=d,d.FACTORY=new l.Factory},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(562),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DataSourceUtils=void 0;const n=r(29),i=r(7);t.DataSourceUtils={async getSingleSource(e){if(e&&e.has(i.KeysRdfResolveQuadPattern.source))return e.get(i.KeysRdfResolveQuadPattern.source);if(e&&e.has(i.KeysRdfResolveQuadPattern.sources)){const t=e.get(i.KeysRdfResolveQuadPattern.sources);if(1===t.length)return t[0]}},async getSingleSourceType(e){const t=await this.getSingleSource(e);return t?n.getDataSourceType(t):void 0},async singleSourceHasType(e,t){const r=await this.getSingleSourceType(e);return!!r&&r===t},async getSingleDestination(e){if(e&&e.has(i.KeysRdfUpdateQuads.destination))return e.get(i.KeysRdfUpdateQuads.destination)}}},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(564),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ActorRdfJoinMultiSmallest=void 0;const n=r(565),i=r(64);class a extends i.ActorRdfJoin{constructor(e){super(e,3,!0)}static getSmallestPatternId(e){let t=-1,r=Number.POSITIVE_INFINITY;for(const[n,i]of e.entries())i<=r&&(r=i,t=n);return t}async getOutput(e){const t=e.entries.slice(),r=(await Promise.all(e.entries.map(e=>n.getMetadata(e)))).map(e=>"totalItems"in e?e.totalItems:Number.POSITIVE_INFINITY),i=a.getSmallestPatternId(r),s=t.splice(i,1)[0],o=(r.splice(i,1),a.getSmallestPatternId(r)),c=t.splice(o,1)[0],u=(r.splice(o,1),await this.mediatorJoin.mediate({entries:[s,c]}));return t.push(u),await this.mediatorJoin.mediate({entries:t})}async getIterations(e){return(await Promise.all(e.entries.map(e=>n.getMetadata(e)))).reduce((e,t)=>e*t.totalItems,1)}}t.ActorRdfJoinMultiSmallest=a},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(207),t),i(r(209),t),i(r(566),t),i(r(208),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ActorQueryOperationTypedMediated=void 0;const n=r(209);class i extends n.ActorQueryOperationTyped{constructor(e,t){super(e,t)}}t.ActorQueryOperationTypedMediated=i},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(568),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ActorRdfParseHtmlScript=void 0;const n=r(90),i=r(569);class a extends n.ActorRdfParseHtml{constructor(e){super(e)}async test(e){return!0}async run(e){const t=(await this.mediatorRdfParseMediatypes.mediate({context:e.context,mediaTypes:!0})).mediaTypes;return{htmlParseListener:new i.HtmlScriptListener(this.mediatorRdfParseHandle,e.emit,e.error,e.end,t,e.context,e.baseIRI,e.headers)}}}t.ActorRdfParseHtmlScript=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HtmlScriptListener=void 0;const n=r(3),i=r(0),a=r(16);class s{constructor(e,t,r,n,a,s,o,c){var u;this.textChunksJsonLd=[],this.endBarrier=1,this.passedScripts=0,this.isFinalJsonLdProcessing=!1,this.mediatorRdfParseHandle=e,this.cbQuad=t,this.cbError=r,this.cbEnd=n,this.supportedTypes=a,this.context=(s||i.ActionContext({})).set("@comunica/actor-rdf-parse-html-script:processing-html-script",!0),this.baseIRI=o,this.headers=c,this.onlyFirstScript=null!==(u=s&&!1===s.get("extractAllScripts"))&&void 0!==u&&u;const l=this.baseIRI.indexOf("#");this.targetScriptId=l>0?this.baseIRI.slice(l+1,this.baseIRI.length):null}static newErrorCoded(e,t){const r=new Error(e);return r.code=t,r}onEnd(){0==--this.endBarrier&&(this.textChunksJsonLd.length>0?(this.handleMediaType="application/ld+json",this.textChunks=this.textChunksJsonLd,this.textChunks.push("]"),this.textChunksJsonLd=[],this.isFinalJsonLdProcessing=!0,this.endBarrier++,this.onTagClose()):(0===this.passedScripts&&this.targetScriptId&&this.cbError(s.newErrorCoded(`Failed to find targeted script id "${this.targetScriptId}"`,"loading document failed")),this.cbEnd()),this.isFinalJsonLdProcessing=!1)}onTagClose(){if(this.handleMediaType)if(this.requiresCustomJsonLdHandling(this.handleMediaType)&&!this.isFinalJsonLdProcessing)this.handleMediaType=void 0,this.textChunks=void 0,this.onEnd();else{const e=new n.Readable({objectMode:!0});e._read=()=>{};const t=this.textChunks,r={context:this.context,handle:{baseIRI:this.baseIRI,input:e,headers:this.headers},handleMediaType:this.handleMediaType};this.mediatorRdfParseHandle.mediate(r).then(({handle:r})=>{r.quads.on("error",e=>this.cbError(s.newErrorCoded(e.message,"invalid script element"))).on("data",this.cbQuad).on("end",()=>this.onEnd());for(const r of t)e.push(r);e.push(null)}).catch(e=>{this.targetScriptId?this.cbError(s.newErrorCoded(e.message,"loading document failed")):this.onEnd()}),this.handleMediaType=void 0,this.textChunks=void 0}}onTagOpen(e,t){"base"===e&&t.href&&(this.baseIRI=a.resolve(t.href,this.baseIRI)),"script"!==e||this.targetScriptId&&t.id!==this.targetScriptId?this.handleMediaType=void 0:this.supportedTypes[t.type]?this.onlyFirstScript&&this.passedScripts>0?this.handleMediaType=void 0:(this.passedScripts++,this.handleMediaType=t.type,this.endBarrier++,this.requiresCustomJsonLdHandling(this.handleMediaType)?(this.textChunks=this.textChunksJsonLd,this.textChunks.push(0===this.textChunks.length?"[":",")):this.textChunks=[]):this.targetScriptId&&this.cbError(s.newErrorCoded(`Targeted script "${this.targetScriptId}" does not have a supported type`,"loading document failed"))}onText(e){this.handleMediaType&&this.textChunks.push(e)}requiresCustomJsonLdHandling(e){return!this.onlyFirstScript&&!this.targetScriptId&&"application/ld+json"===e}}t.HtmlScriptListener=s},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(571),t),i(r(210),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ActorRdfUpdateHypermediaPutLdp=void 0;const n=r(96),i=r(210);class a extends n.ActorRdfUpdateHypermedia{constructor(e){super(e,"putLdp")}async testMetadata(e){if(!e.forceDestinationType){if(!e.metadata.allowHttpMethods||!e.metadata.allowHttpMethods.includes("PUT"))throw new Error(`Actor ${this.name} could not detect a destination with 'Allow: PUT' header.`);if(e.exists)throw new Error(`Actor ${this.name} can only put on a destination that does not already exists.`)}return!0}async run(e){return this.logInfo(e.context,"Identified as putLdp destination: "+e.url),{destination:new i.QuadDestinationPutLdp(e.url,e.context,e.metadata.putAccepted||[],this.mediatorHttp,this.mediatorRdfSerializeMediatypes,this.mediatorRdfSerialize)}}}t.ActorRdfUpdateHypermediaPutLdp=a},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(573),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ActorSparqlSerializeRdf=void 0;const n=r(21);class i extends n.ActorSparqlSerialize{constructor(e){super(e)}async testHandle(e,t,r){if("quads"!==e.type)throw new Error(`Actor ${this.name} can only handle quad streams`);const{mediaTypes:n}=await this.mediatorMediaTypeCombiner.mediate({context:r,mediaTypes:!0});if(!(t in n))throw new Error(`Actor ${this.name} can not handle media type ${t}. All available types: ${Object.keys(n)}`);return!0}async runHandle(e,t,r){return(await this.mediatorRdfSerialize.mediate({context:r,handle:e,handleMediaType:t})).handle}async testMediaType(e){return!0}async getMediaTypes(e){return(await this.mediatorMediaTypeCombiner.mediate({context:e,mediaTypes:!0})).mediaTypes}async testMediaTypeFormats(e){return!0}async getMediaTypeFormats(e){return(await this.mediatorMediaTypeFormatCombiner.mediate({context:e,mediaTypeFormats:!0})).mediaTypeFormats}}t.ActorSparqlSerializeRdf=i},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(575),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ActorRdfResolveHypermediaQpf=void 0;const n=r(94),i=r(576);class a extends n.ActorRdfResolveHypermedia{constructor(e){super(e,"qpf")}async testMetadata(e){const{searchForm:t}=this.createSource(e.metadata,e.context);if(e.handledDatasets&&e.handledDatasets[t.dataset])throw new Error(`Actor ${this.name} can only be applied for the first page of a QPF dataset.`);return{filterFactor:1}}async run(e){this.logInfo(e.context,"Identified as qpf source: "+e.url);const t=this.createSource(e.metadata,e.context,e.quads);return{source:t,dataset:t.searchForm.dataset}}createSource(e,t,r){return new i.RdfSourceQpf(this.mediatorMetadata,this.mediatorMetadataExtract,this.mediatorRdfDereference,this.subjectUri,this.predicateUri,this.objectUri,this.graphUri,e,t,r)}}t.ActorRdfResolveHypermediaQpf=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RdfSourceQpf=void 0;const n=r(4),i=r(5),a=r(2),s=r(20),o=new i.DataFactory;t.RdfSourceQpf=class{constructor(e,t,r,i,a,s,c,u,l,d){this.mediatorMetadata=e,this.mediatorMetadataExtract=t,this.mediatorRdfDereference=r,this.subjectUri=i,this.predicateUri=a,this.objectUri=s,this.graphUri=c,this.context=l,this.cachedQuads={};const p=this.getSearchForm(u);if(!p)throw new Error("Illegal state: found no TPF/QPF search form anymore in metadata.");if(this.searchForm=p,this.defaultGraph=u.defaultGraph?o.namedNode(u.defaultGraph):void 0,d){let e=n.wrap(d);this.defaultGraph&&(e=this.reverseMapQuadsToDefaultGraph(e)),e.setProperty("metadata",u),this.cacheQuads(e,o.variable(""),o.variable(""),o.variable(""),o.variable(""))}}getSearchForm(e){if(!e.searchForms||!e.searchForms.values)return;const{searchForms:t}=e;for(const e of t.values){if(this.graphUri&&this.subjectUri in e.mappings&&this.predicateUri in e.mappings&&this.objectUri in e.mappings&&this.graphUri in e.mappings&&4===Object.keys(e.mappings).length)return e;if(this.subjectUri in e.mappings&&this.predicateUri in e.mappings&&this.objectUri in e.mappings&&3===Object.keys(e.mappings).length)return e}}createFragmentUri(e,t,r,n,i){const s={},o=[{uri:this.subjectUri,term:t},{uri:this.predicateUri,term:r},{uri:this.objectUri,term:n},{uri:this.graphUri,term:i}];for(const e of o)e.uri&&"Variable"!==e.term.termType&&(s[e.uri]=a.termToString(e.term));return e.getUri(s)}match(e,t,r,i){let a=!1;this.defaultGraph&&"DefaultGraph"===i.termType&&(a=!0,i=this.defaultGraph);const c=this.getCachedQuads(e,t,r,i);if(c)return c;const u=new n.TransformIterator(async()=>{let c=this.createFragmentUri(this.searchForm,e,t,r,i);const l=await this.mediatorRdfDereference.mediate({context:this.context,url:c});c=l.url;const d=await this.mediatorMetadata.mediate({context:this.context,url:c,quads:l.quads,triples:l.triples}),p=this.mediatorMetadataExtract.mediate({context:this.context,url:c,metadata:d.metadata}).then(({metadata:e})=>u.setProperty("metadata",e)),h=o.defaultGraph();let f=n.wrap(d.data).transform({filter:n=>!!s.matchPattern(n,e,t,r,i)||a&&s.matchPattern(n,e,t,r,h)});return(a||"Variable"===i.termType)&&(f=this.reverseMapQuadsToDefaultGraph(f)),f.on("error",()=>{}),await p,f},{autoStart:!1});return this.cacheQuads(u,e,t,r,i),this.getCachedQuads(e,t,r,i)}reverseMapQuadsToDefaultGraph(e){const t=o.defaultGraph();return e.map(e=>s.mapTerms(e,(e,r)=>"graph"===r&&e.equals(this.defaultGraph)?t:e))}getPatternId(e,t,r,n){return JSON.stringify({s:"Variable"===e.termType?"":a.termToString(e),p:"Variable"===t.termType?"":a.termToString(t),o:"Variable"===r.termType?"":a.termToString(r),g:"Variable"===n.termType?"":a.termToString(n)})}cacheQuads(e,t,r,n,i){const a=this.getPatternId(t,r,n,i);this.cachedQuads[a]=e.clone()}getCachedQuads(e,t,r,n){const i=this.getPatternId(e,t,r,n),a=this.cachedQuads[i];if(a)return a.clone()}}},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(578),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ActorRdfUpdateQuadsHypermedia=void 0;const n=r(57),i=r(70);class a extends n.ActorRdfUpdateQuadsDestination{constructor(e){super(e),this.cache=this.cacheSize?new i({max:this.cacheSize}):void 0;const t=this.cache;t&&this.httpInvalidator.addInvalidateListener(({url:e})=>e?t.del(e):t.reset())}async test(e){if(!this.getContextDestinationUrl(this.getContextDestination(e.context)))throw new Error(`Actor ${this.name} can only update quads against a single destination URL.`);return!0}getDestination(e){const t=this.getContextDestination(e);let r=this.getContextDestinationUrl(t);if(this.cache&&this.cache.has(r))return this.cache.get(r);const i=(async()=>{let i,a;try{const t=await this.mediatorRdfDereference.mediate({context:e,url:r,acceptErrors:!0});a=t.exists,r=t.url;const n=await this.mediatorMetadata.mediate({context:e,url:r,quads:t.quads,triples:t.triples});i=(await this.mediatorMetadataExtract.mediate({context:e,url:r,metadata:n.metadata,headers:t.headers})).metadata}catch(e){i={},a=!1}const{destination:s}=await this.mediatorRdfUpdateHypermedia.mediate({context:e,url:r,metadata:i,exists:a,forceDestinationType:n.getDataDestinationType(t)});return s})();return this.cache&&this.cache.set(r,i),i}}t.ActorRdfUpdateQuadsHypermedia=a},function(e,t,r){"use strict";function n(e){var t=this;if(t instanceof n||(t=new n),t.tail=null,t.head=null,t.length=0,e&&"function"==typeof e.forEach)e.forEach((function(e){t.push(e)}));else if(arguments.length>0)for(var r=0,i=arguments.length;r1)r=t;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");n=this.head.next,r=this.head.value}for(var i=0;null!==n;i++)r=e(r,n.value,i),n=n.next;return r},n.prototype.reduceReverse=function(e,t){var r,n=this.tail;if(arguments.length>1)r=t;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");n=this.tail.prev,r=this.tail.value}for(var i=this.length-1;null!==n;i--)r=e(r,n.value,i),n=n.prev;return r},n.prototype.toArray=function(){for(var e=new Array(this.length),t=0,r=this.head;null!==r;t++)e[t]=r.value,r=r.next;return e},n.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,r=this.tail;null!==r;t++)e[t]=r.value,r=r.prev;return e},n.prototype.slice=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var r=new n;if(tthis.length&&(t=this.length);for(var i=0,a=this.head;null!==a&&ithis.length&&(t=this.length);for(var i=this.length,a=this.tail;null!==a&&i>t;i--)a=a.prev;for(;null!==a&&i>e;i--,a=a.prev)r.push(a.value);return r},n.prototype.splice=function(e,t,...r){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var n=0,a=this.head;null!==a&&na.termToString(e))}static getDuplicateElementLinks(e){const t={};let r=!1;for(const n of s.QUAD_TERM_NAMES)if("Variable"===e[n].termType){const i=a.termToString(e[n]),s=(t[i]||(t[i]=[])).push(n);r=r||s>1}if(!r)return;const n={};for(const e in t){const r=t[e],i=r.slice(1);i.length>0&&(n[r[0]]=i)}return n}static getMetadata(e){return()=>new Promise((t,r)=>{e.getProperty("metadata",e=>t(e)),e.on("error",r)})}async testOperation(e,t){return!0}async runOperation(e,t){e.context&&(t=t?t.merge(e.context):e.context);const r=await this.mediatorResolveQuadPattern.mediate({pattern:e,context:t}),c=o.getVariables(e),u=o.getMetadata(r.data),l=s.reduceTerms(e,(e,t,r)=>(o.isTermVariable(t)&&(e[r]=a.termToString(t)),e),{}),d=(e,t,r)=>{const n=l[r];return n&&(e[n]=t),e};return{type:"bindings",bindingsStream:new i.TransformIterator(async()=>{let t=r.data;const i=o.getDuplicateElementLinks(e);return i&&(t=t.filter(e=>{for(const t of s.TRIPLE_TERM_NAMES)for(const r of i[t]||[])if(!e[t].equals(e[r]))return!1;return!0})),t.map(e=>n.Bindings(s.reduceTerms(e,d,{})),{autoStart:!0,maxBufferSize:128})},{autoStart:!1}),variables:c,metadata:u,canContainUndefs:!1}}}t.ActorQueryOperationQuadpattern=o},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(586),t),i(r(212),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ActorRdfResolveQuadPatternHypermedia=void 0;const n=r(194),i=r(29),a=r(70),s=r(212);class o extends i.ActorRdfResolveQuadPatternSource{constructor(e){super(e),this.cache=this.cacheSize?new a({max:this.cacheSize}):void 0;const t=this.cache;t&&this.httpInvalidator.addInvalidateListener(({url:e})=>e?t.del(e):t.reset())}async test(e){if(!this.hasContextSingleSource(e.context))throw new Error(`Actor ${this.name} can only resolve quad pattern queries against a single source.`);return!0}getSource(e,t){const r=this.getContextSource(e),a=this.getContextSourceUrl(r);let o;return this.cache&&this.cache.has(a)?o=this.cache.get(a):(o=new s.MediatedQuadSource(this.cacheSize,e,a,i.getDataSourceType(r),{mediatorMetadata:this.mediatorMetadata,mediatorMetadataExtract:this.mediatorMetadataExtract,mediatorRdfDereference:this.mediatorRdfDereference,mediatorRdfResolveHypermedia:this.mediatorRdfResolveHypermedia,mediatorRdfResolveHypermediaLinks:this.mediatorRdfResolveHypermediaLinks,mediatorRdfResolveHypermediaLinksQueue:this.mediatorRdfResolveHypermediaLinksQueue||{mediate:async()=>({linkQueue:new n.LinkQueueFifo})}}),this.cache&&this.cache.set(a,o)),Promise.resolve(o)}}t.ActorRdfResolveQuadPatternHypermedia=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MediatedLinkedRdfSourcesAsyncRdfIterator=void 0;const n=r(3),i=r(588);class a extends i.LinkedRdfSourcesAsyncRdfIterator{constructor(e,t,r,n,i,a,s,o,c){super(e,n,i,a,s,o),this.context=t,this.forceSourceType=r,this.mediatorRdfDereference=c.mediatorRdfDereference,this.mediatorMetadata=c.mediatorMetadata,this.mediatorMetadataExtract=c.mediatorMetadataExtract,this.mediatorRdfResolveHypermedia=c.mediatorRdfResolveHypermedia,this.mediatorRdfResolveHypermediaLinks=c.mediatorRdfResolveHypermediaLinks,this.mediatorRdfResolveHypermediaLinksQueue=c.mediatorRdfResolveHypermediaLinksQueue,this.handledUrls={[o]:!0}}getLinkQueue(){return this.linkQueue||(this.linkQueue=this.mediatorRdfResolveHypermediaLinksQueue.mediate({firstUrl:this.firstUrl}).then(e=>e.linkQueue)),this.linkQueue}async getSourceLinks(e){try{const{urls:t}=await this.mediatorRdfResolveHypermediaLinks.mediate({context:this.context,metadata:e});return t.map(e=>"string"==typeof e?{url:e}:e).filter(e=>!this.handledUrls[e.url]&&(this.handledUrls[e.url]=!0,!0))}catch(e){return[]}}async getSource(e,t){let r=this.context;e.context&&(r=r.merge(e.context));let i,a,s=e.url;try{const t=await this.mediatorRdfDereference.mediate({context:r,url:s});s=t.url;const n=await this.mediatorMetadata.mediate({context:r,url:s,quads:t.quads,triples:t.triples});a=(await this.mediatorMetadataExtract.mediate({context:r,url:s,metadata:n.metadata,headers:t.headers})).metadata,i=n.data,e.transform&&(i=await e.transform(i))}catch(e){i=new n.Readable,i.read=()=>(i.emit("error",e),null),a={}}const{source:o,dataset:c}=await this.mediatorRdfResolveHypermedia.mediate({context:r,forceSourceType:this.forceSourceType,handledDatasets:t,metadata:a,quads:i,url:s});return c&&(t[c]=!0),{link:e,source:o,metadata:a,handledDatasets:t}}}t.MediatedLinkedRdfSourcesAsyncRdfIterator=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LinkedRdfSourcesAsyncRdfIterator=void 0;const n=r(4),i=r(70);class a extends n.BufferedIterator{constructor(e,t,r,n,i,a){super({autoStart:!0}),this.started=!1,this.cacheSize=e,this.subject=t,this.predicate=r,this.object=n,this.graph=i,this.firstUrl=a}setSourcesState(e){e?this.sourcesState=e:(this.sourcesState={sources:new i({max:this.cacheSize})},this.getSourceCached({url:this.firstUrl},{}).catch(e=>this.destroy(e)))}getSourceCached(e,t){let r=this.sourcesState.sources.get(e.url);return r||(r=this.getSource(e,t),this.sourcesState.sources.set(e.url,r),r)}_read(e,t){if(this.started)if(this.currentIterator){for(;e>0;){const t=this.currentIterator.read();if(null===t)break;e--,this._push(t)}t()}else t();else this.started=!0,this.sourcesState||this.setSourcesState(),this.getSourceCached({url:this.firstUrl},{}).then(e=>{this.setCurrentIterator(e,!0),t()}).catch(e=>{t()})}setCurrentIterator(e,t){this.currentIterator=e.source.match(this.subject,this.predicate,this.object,this.graph);let r=!1;this.currentIterator._destination=this,this.currentIterator.on("error",e=>this.destroy(e)),this.currentIterator.on("readable",()=>this._fillBuffer()),this.currentIterator.on("end",()=>{this.currentIterator=void 0,r&&this.handleNextUrl(e)}),this.currentIterator.getProperty("metadata",n=>{e.metadata=Object.assign(Object.assign({},e.metadata),n),t&&this.setProperty("metadata",e.metadata),this.getSourceLinks(e.metadata).then(e=>Promise.all(e)).then(async t=>{const n=await this.getLinkQueue();for(const r of t)n.push(r,e.link);r=!0,this.currentIterator||this.handleNextUrl(e)}).catch(e=>this.destroy(e))})}handleNextUrl(e){this.getLinkQueue().then(t=>{const r=t.pop();r?this.getSourceCached(r,e.handledDatasets).then(e=>this.setCurrentIterator(e,!1)).catch(e=>this.destroy(e)):this.close()}).catch(e=>this.destroy(e))}}t.LinkedRdfSourcesAsyncRdfIterator=a},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(590),t),i(r(591),t),i(r(592),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.KEY_CONTEXT_HTTPPROXYHANDLER=t.ActorHttpProxy=void 0;const n=r(26),i=r(7);class a extends n.ActorHttp{constructor(e){super(e)}async test(e){if(!e.context)throw new Error(`Actor ${this.name} could not find a context.`);const t=e.context.get(i.KeysHttpProxy.httpProxyHandler);if(!t)throw new Error(`Actor ${this.name} could not find a proxy handler in the context.`);if(!await t.getProxy(e))throw new Error(`Actor ${this.name} could not determine a proxy for the given request.`);return{time:Number.POSITIVE_INFINITY}}async run(e){const t="string"==typeof e.input?e.input:e.input.url;if(!e.context)throw new Error("Illegal state: missing context");const r=e.context.get(i.KeysHttpProxy.httpProxyHandler),n=await this.mediatorHttp.mediate(Object.assign(Object.assign({},await r.getProxy(e)),{context:e.context.delete(i.KeysHttpProxy.httpProxyHandler)}));return Object.defineProperty(n,"url",{configurable:!0,enumerable:!0,get:()=>{var e;return null!==(e=n.headers.get("x-final-url"))&&void 0!==e?e:t}}),n}}t.ActorHttpProxy=a,t.KEY_CONTEXT_HTTPPROXYHANDLER=i.KeysHttpProxy.httpProxyHandler},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ProxyHandlerStatic=void 0;t.ProxyHandlerStatic=class{constructor(e){this.prefixUrl=e}async getProxy(e){return{init:e.init,input:this.modifyInput(e.input)}}modifyInput(e){return"string"==typeof e?this.prefixUrl+e:new Request(this.prefixUrl+e.url,e)}}},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(594),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.KEY_CONTEXT_DATETIME=t.ActorHttpMemento=void 0;const n=r(26),i=r(7);r(53);const a=r(595);class s extends n.ActorHttp{constructor(e){super(e)}async test(e){var t;if(!(e.context&&e.context.has(i.KeysHttpMemento.datetime)&&e.context.get(i.KeysHttpMemento.datetime)instanceof Date))throw new Error("This actor only handles request with a set valid datetime.");if(e.init&&new Headers(null!==(t=e.init.headers)&&void 0!==t?t:{}).has("accept-datetime"))throw new Error("The request already has a set datetime.");return!0}async run(e){var t;const r=e.init?Object.assign({},e.init):{},n=r.headers=new Headers(null!==(t=r.headers)&&void 0!==t?t:{});e.context&&e.context.has(i.KeysHttpMemento.datetime)&&n.append("accept-datetime",e.context.get(i.KeysHttpMemento.datetime).toUTCString());const s={context:e.context,input:e.input,init:r},o=await this.mediatorHttp.mediate(s);if(n.has("accept-datetime")&&o.headers&&!o.headers.has("memento-datetime")){const t=o.headers.has("link")&&a(o.headers.get("link"));if(t&&t.timegate){o.body&&await o.body.cancel();const n={context:e.context,input:t.timegate.url,init:r};return this.mediatorHttp.mediate(n)}}return o}}t.ActorHttpMemento=s,t.KEY_CONTEXT_DATETIME=i.KeysHttpMemento.datetime},function(e,t,r){"use strict";var n=r(213),i=r(598),a=r(601);function s(e){return e&&e.rel}function o(e,t){return t.rel.split(/\s+/).forEach((function(r){e[r]=a(t,{rel:r})})),e}function c(e,t){var r=t.match(/\s*(.+)\s*=\s*"?([^"]+)"?/);return r&&(e[r[1]]=r[2]),e}function u(e){try{var t=e.match(/]*)>(.*)/),r=t[1],s=t[2].split(";"),o=i.parse(r),u=n.parse(o.query);s.shift();var l=s.reduce(c,{});return(l=a(u,l)).url=r,l}catch(e){return null}}e.exports=function(e){return e?e.split(/,\s*0&&u>c&&(u=c);for(var l=0;l=0?(d=g.substr(0,m),p=g.substr(m+1)):(d=g,p=""),h=decodeURIComponent(d),f=decodeURIComponent(p),n(s,h)?i(s[h])?s[h].push(f):s[h]=[s[h],f]:s[h]=f}return s};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},function(e,t,r){"use strict";var n=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,t,r,o){return t=t||"&",r=r||"=",null===e&&(e=void 0),"object"==typeof e?a(s(e),(function(s){var o=encodeURIComponent(n(s))+r;return i(e[s])?a(e[s],(function(e){return o+encodeURIComponent(n(e))})).join(t):o+encodeURIComponent(n(e[s]))})).join(t):o?encodeURIComponent(n(o))+r+encodeURIComponent(n(e)):""};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function a(e,t){if(e.map)return e.map(t);for(var r=[],n=0;n",'"',"`"," ","\r","\n","\t"]),l=["'"].concat(u),d=["%","/","?",";","#"].concat(l),p=["/","?","#"],h=/^[+a-z0-9A-Z_-]{0,63}$/,f=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,g={javascript:!0,"javascript:":!0},m={javascript:!0,"javascript:":!0},y={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},b=r(213);function _(e,t,r){if(e&&i.isObject(e)&&e instanceof a)return e;var n=new a;return n.parse(e,t,r),n}a.prototype.parse=function(e,t,r){if(!i.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var a=e.indexOf("?"),o=-1!==a&&a127?C+="x":C+=j[k];if(!C.match(h)){var L=I.slice(0,A),M=I.slice(A+1),F=j.match(f);F&&(L.push(F[1]),M.unshift(F[2])),M.length&&(_="/"+M.join(".")+_),this.hostname=L.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),P||(this.hostname=n.toASCII(this.hostname));var q=this.port?":"+this.port:"",B=this.hostname||"";this.host=B+q,this.href+=this.host,P&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==_[0]&&(_="/"+_))}if(!g[S])for(A=0,N=l.length;A0)&&r.host.split("@"))&&(r.auth=P.shift(),r.host=r.hostname=P.shift());return r.search=e.search,r.query=e.query,i.isNull(r.pathname)&&i.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!T.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var O=T.slice(-1)[0],x=(r.host||e.host||T.length>1)&&("."===O||".."===O)||""===O,A=0,R=T.length;R>=0;R--)"."===(O=T[R])?T.splice(R,1):".."===O?(T.splice(R,1),A++):A&&(T.splice(R,1),A--);if(!w&&!S)for(;A--;A)T.unshift("..");!w||""===T[0]||T[0]&&"/"===T[0].charAt(0)||T.unshift(""),x&&"/"!==T.join("/").substr(-1)&&T.push("");var P,I=""===T[0]||T[0]&&"/"===T[0].charAt(0);E&&(r.hostname=r.host=I?"":T.length?T.shift():"",(P=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=P.shift(),r.host=r.hostname=P.shift()));return(w=w||r.host&&T.length)&&!I&&T.unshift(""),T.length?r.pathname=T.join("/"):(r.pathname=null,r.path=null),i.isNull(r.pathname)&&i.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},a.prototype.parseHost=function(){var e=this.host,t=o.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},function(e,t,r){(function(e,n){var i;/*! https://mths.be/punycode v1.4.1 by @mathias */!function(a){t&&t.nodeType,e&&e.nodeType;var s="object"==typeof n&&n;s.global!==s&&s.window!==s&&s.self;var o,c=2147483647,u=/^xn--/,l=/[^\x20-\x7E]/,d=/[\x2E\u3002\uFF0E\uFF61]/g,p={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},h=Math.floor,f=String.fromCharCode;function g(e){throw new RangeError(p[e])}function m(e,t){for(var r=e.length,n=[];r--;)n[r]=t(e[r]);return n}function y(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+m((e=e.replace(d,".")).split("."),t).join(".")}function b(e){for(var t,r,n=[],i=0,a=e.length;i=55296&&t<=56319&&i65535&&(t+=f((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=f(e)})).join("")}function v(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function w(e,t,r){var n=0;for(e=r?h(e/700):e>>1,e+=h(e/t);e>455;n+=36)e=h(e/35);return h(n+36*e/(e+38))}function S(e){var t,r,n,i,a,s,o,u,l,d,p,f=[],m=e.length,y=0,b=128,v=72;for((r=e.lastIndexOf("-"))<0&&(r=0),n=0;n=128&&g("not-basic"),f.push(e.charCodeAt(n));for(i=r>0?r+1:0;i=m&&g("invalid-input"),((u=(p=e.charCodeAt(i++))-48<10?p-22:p-65<26?p-65:p-97<26?p-97:36)>=36||u>h((c-y)/s))&&g("overflow"),y+=u*s,!(u<(l=o<=v?1:o>=v+26?26:o-v));o+=36)s>h(c/(d=36-l))&&g("overflow"),s*=d;v=w(y-a,t=f.length+1,0==a),h(y/t)>c-b&&g("overflow"),b+=h(y/t),y%=t,f.splice(y++,0,b)}return _(f)}function T(e){var t,r,n,i,a,s,o,u,l,d,p,m,y,_,S,T=[];for(m=(e=b(e)).length,t=128,r=0,a=72,s=0;s=t&&ph((c-r)/(y=n+1))&&g("overflow"),r+=(o-t)*y,t=o,s=0;sc&&g("overflow"),p==t){for(u=r,l=36;!(u<(d=l<=a?1:l>=a+26?26:l-a));l+=36)S=u-d,_=36-d,T.push(f(v(d+S%_,0))),u=h(S/_);T.push(f(v(u,0))),a=w(r,y,n==i),r=0,++n}++r,++t}return T.join("")}o={version:"1.4.1",ucs2:{decode:b,encode:_},decode:S,encode:T,toASCII:function(e){return y(e,(function(e){return l.test(e)?"xn--"+T(e):e}))},toUnicode:function(e){return y(e,(function(e){return u.test(e)?S(e.slice(4).toLowerCase()):e}))}},void 0===(i=function(){return o}.call(t,r,t,e))||(e.exports=i)}()}).call(this,r(113)(e),r(11))},function(e,t,r){"use strict";e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},function(e,t){e.exports=function(){for(var e={},t=0;t{i.bindingsStream.once("data",()=>{e(!0),i.bindingsStream.close()}),i.bindingsStream.on("end",()=>e(!1)),i.bindingsStream.on("error",t)})}}}t.ActorQueryOperationAsk=i},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(607),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ActorQueryOperationService=void 0;const n=r(1),i=r(7),a=r(0),s=r(4);class o extends n.ActorQueryOperationTypedMediated{constructor(e){super(e,"service")}async testOperation(e,t){if("NamedNode"!==e.name.termType)throw new Error(`${this.name} can only query services by IRI, while a ${e.name.termType} was given.`);return!0}async runOperation(e,t){const r=e.name.value;let o=(t=t||a.ActionContext({})).delete(i.KeysRdfResolveQuadPattern.source).delete(i.KeysRdfResolveQuadPattern.sources);const c=this.forceSparqlEndpoint?"sparql":void 0;let u;o=o.set(i.KeysRdfResolveQuadPattern.sources,[{type:c,value:r}]);try{u=n.ActorQueryOperation.getSafeBindings(await this.mediatorQueryOperation.mediate({operation:e.input,context:o}))}catch(t){if(!e.silent)throw t;u={bindingsStream:new s.SingletonIterator(n.Bindings({})),type:"bindings",variables:[],canContainUndefs:!1}}return u}}t.ActorQueryOperationService=o},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(609),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ActorQueryOperationSlice=void 0;const n=r(1);class i extends n.ActorQueryOperationTypedMediated{constructor(e){super(e,"slice")}async testOperation(e,t){return!0}async runOperation(e,t){const r=await this.mediatorQueryOperation.mediate({operation:e.input,context:t}),n=this.sliceMetadata(r,e);if("bindings"===r.type){const t=r;return{type:"bindings",bindingsStream:this.sliceStream(t.bindingsStream,e),metadata:n,variables:t.variables,canContainUndefs:t.canContainUndefs}}if("quads"===r.type){const t=r;return{type:"quads",quadStream:this.sliceStream(t.quadStream,e),metadata:n}}throw new Error(`Invalid query output type: Expected 'bindings' or 'quads' but got '${r.type}'`)}sliceStream(e,t){const r=Boolean(t.length)||0===t.length,{start:n}=t,i=r?t.start+t.length-1:Number.POSITIVE_INFINITY;return e.transform({offset:n,limit:Math.max(i-n+1,0),autoStart:!1})}sliceMetadata(e,t){const r=Boolean(t.length)||0===t.length;return e.metadata?()=>e.metadata().then(e=>{let{totalItems:n}=e;return Number.isFinite(n)&&(n=Math.max(0,n-t.start),r&&(n=Math.min(n,t.length))),Object.assign(Object.assign({},e),{totalItems:n})}):void 0}}t.ActorQueryOperationSlice=i},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(611),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ActorQueryOperationBgpSingle=void 0;const n=r(1),i=r(7);class a extends n.ActorQueryOperationTypedMediated{constructor(e){super(e,"bgp")}async testOperation(e,t){if(1!==e.patterns.length)throw new Error(`Actor ${this.name} can only operate on BGPs with a single pattern.`);return!0}runOperation(e,t){if(t&&t.has(i.KeysQueryOperation.bgpParentMetadata)){const e=t.get(i.KeysQueryOperation.bgpParentMetadata);t=(t=t.delete(i.KeysQueryOperation.bgpParentMetadata)).set(i.KeysQueryOperation.patternParentMetadata,e[0])}return this.mediatorQueryOperation.mediate({operation:e.patterns[0],context:t})}}t.ActorQueryOperationBgpSingle=a},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(613),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ActorQueryOperationBgpLeftDeepSmallest=void 0;const n=r(1),i=r(7),a=r(4),s=r(2),o=r(20);class c extends n.ActorQueryOperationTypedMediated{constructor(e){super(e,"bgp")}static createLeftDeepStream(e,t,r){return new a.MultiTransformIterator(e,{autoStart:!1,multiTransform(e){const n=t=>t.merge(e);return new a.TransformIterator(async()=>(await r(c.materializePatterns(t,e))).transform({map:n}),{maxBufferSize:128})}})}static getCombinedVariables(e){const t=[].concat.apply([],e.map(e=>e.variables));return[...new Set(t)]}static getSmallestPatternId(e){let t=-1,r=Number.POSITIVE_INFINITY;for(const[n,i]of e.entries()){const e=c.getTotalItems(i);e<=r&&(r=e,t=n)}return t}static estimateCombinedTotalItems(e,t){const r=c.getTotalItems(e);return t.map(e=>r*c.getTotalItems(e)).reduce((e,t)=>e+t,0)}static getTotalItems(e){const{totalItems:t}=null!=e?e:{};return t||0===t?t:Number.POSITIVE_INFINITY}static materializePatterns(e,t){return e.map(e=>c.materializePattern(e,t))}static materializePattern(e,t){const r={};return{pattern:Object.assign(o.mapTerms(e,(e,n)=>{const i=c.materializeTerm(e,t);return e!==i&&(r[n]=e),i}),{type:"pattern",context:e.context}),bindings:r}}static materializeTerm(e,t){if("Variable"===e.termType){const r=t.get(s.termToString(e));if(r)return r}return e}static async hasOneEmptyPatternOutput(e){for(const t of e)if(t.metadata){const e=await t.metadata();if(!c.getTotalItems(e))return!0}return!1}async testOperation(e,t){if(e.patterns.length<2)throw new Error(`Actor ${this.name} can only operate on BGPs with at least two patterns.`);return!0}async runOperation(e,t){const r=(await Promise.all(e.patterns.map(e=>this.mediatorQueryOperation.mediate({operation:e,context:t})))).map(n.ActorQueryOperation.getSafeBindings);if(await c.hasOneEmptyPatternOutput(r))return{bindingsStream:new a.ArrayIterator([],{autoStart:!1}),metadata:()=>Promise.resolve({totalItems:0}),type:"bindings",variables:c.getCombinedVariables(r),canContainUndefs:!1};const s=await Promise.all(r.map(async e=>e.metadata?await e.metadata():{})),o=c.getSmallestPatternId(s);this.logDebug(t,"Smallest pattern: ",()=>({pattern:e.patterns[o],metadata:s[o]}));for(const[e,t]of r.entries())e!==o&&t.bindingsStream.close();const u=r.slice(o)[0],l=[...e.patterns];l.splice(o,1);const d=[...s];d.splice(o,1),n.ActorQueryOperation.validateQueryOutput(u,"bindings");const p=t&&t.set(i.KeysQueryOperation.bgpCurrentMetadata,s[o]).set(i.KeysQueryOperation.bgpParentMetadata,d);return{type:"bindings",bindingsStream:c.createLeftDeepStream(u.bindingsStream,l,async e=>{const t={type:"bgp",patterns:e.map(e=>e.pattern)},r=e.map(e=>e.bindings);return n.ActorQueryOperation.getSafeBindings(await this.mediatorQueryOperation.mediate({operation:t,context:p.set(i.KeysQueryOperation.bgpPatternBindings,r)})).bindingsStream}),variables:c.getCombinedVariables(r),metadata:()=>Promise.resolve({totalItems:c.estimateCombinedTotalItems(s[o],s.slice(o))}),canContainUndefs:!1}}}t.ActorQueryOperationBgpLeftDeepSmallest=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ActorQueryOperationConstruct=void 0;const n=r(1),i=r(20),a=r(216);class s extends n.ActorQueryOperationTypedMediated{constructor(e){super(e,"construct")}static getVariables(e){return i.uniqTerms([].concat.apply([],e.map(e=>i.getVariables(i.getTerms(e)))))}async testOperation(e,t){return!0}async runOperation(e,t){const r=s.getVariables(e.template),i={type:"project",input:e.input,variables:r},o=n.ActorQueryOperation.getSafeBindings(await this.mediatorQueryOperation.mediate({operation:i,context:t})),c=new a.BindingsToQuadsIterator(e.template,o.bindingsStream);let u;return o.metadata&&(u=()=>o.metadata().then(t=>t.totalItems?Object.assign(Object.assign({},t),{totalItems:t.totalItems*e.template.length}):t)),{metadata:u,quadStream:c,type:"quads"}}}t.ActorQueryOperationConstruct=s},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(616),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ActorQueryOperationDescribeSubject=void 0;const n=r(217),i=r(1),a=r(4),s=new(r(5).DataFactory);class o extends i.ActorQueryOperationTypedMediated{constructor(e){super(e,"describe")}async testOperation(e,t){return!0}async runOperation(e,t){const r=e.terms.filter(e=>"Variable"!==e.termType).map(e=>{const t=[s.quad(e,s.variable("__predicate"),s.variable("__object"))];t.forEach(e=>e.type="pattern");return{input:{type:"bgp",patterns:t},template:t,type:"construct"}});if(r.length!==e.terms.length){let t=[];e.terms.filter(e=>"Variable"===e.termType).forEach((e,r)=>{const n=[s.quad(e,s.variable("__predicate"+r),s.variable("__object"+r))];n.forEach(e=>e.type="pattern"),t=[...t,...n]}),r.push({input:{type:"join",left:e.input,right:{type:"bgp",patterns:t}},template:t,type:"construct"})}const o=(await Promise.all(r.map(e=>this.mediatorQueryOperation.mediate({operation:e,context:t})))).map(i.ActorQueryOperation.getSafeQuads);return{type:"quads",quadStream:new a.UnionIterator(o.map(e=>e.quadStream),{autoStart:!1}),metadata:()=>Promise.all(o.map(e=>i.getMetadata(e))).then(n.ActorQueryOperationUnion.unionMetadata)}}}t.ActorQueryOperationDescribeSubject=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ActorQueryOperationUnion=void 0;const n=r(1),i=r(4);class a extends n.ActorQueryOperationTypedMediated{constructor(e){super(e,"union")}static unionVariables(e){const t=e.reduce((e,t)=>[...e,...t],[]);return[...new Set(t)]}static unionMetadata(e){let t=0;for(const r of e){if(!r.totalItems||!Number.isFinite(r.totalItems)){t=Number.POSITIVE_INFINITY;break}t+=r.totalItems}return{totalItems:t}}async testOperation(e,t){return!0}async runOperation(e,t){const r=(await Promise.all([this.mediatorQueryOperation.mediate({operation:e.left,context:t}),this.mediatorQueryOperation.mediate({operation:e.right,context:t})])).map(n.ActorQueryOperation.getSafeBindings);return{type:"bindings",bindingsStream:new i.UnionIterator(r.map(e=>e.bindingsStream),{autoStart:!1}),metadata:r[0].metadata&&r[1].metadata?()=>Promise.all([r[0].metadata(),r[1].metadata()]).then(a.unionMetadata):void 0,variables:a.unionVariables(r.map(e=>e.variables)),canContainUndefs:r.reduce((e,t)=>e||t.canContainUndefs,!1)}}}t.ActorQueryOperationUnion=a},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(619),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ActorQueryOperationDistinctHash=void 0;const n=r(99);class i extends n.AbstractBindingsHash{constructor(e){super(e,"distinct")}newHashFilter(){const e={};return t=>{const r=n.AbstractFilterHash.hash(t);return!(r in e)&&(e[r]=!0)}}}t.ActorQueryOperationDistinctHash=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractBindingsHash=void 0;const n=r(1);class i extends n.ActorQueryOperationTypedMediated{constructor(e,t){super(e,t)}async testOperation(e,t){return!0}async runOperation(e,t){const r=n.ActorQueryOperation.getSafeBindings(await this.mediatorQueryOperation.mediate({operation:e.input,context:t}));return{type:"bindings",bindingsStream:r.bindingsStream.filter(this.newHashFilter()),metadata:r.metadata,variables:r.variables,canContainUndefs:r.canContainUndefs}}}t.AbstractBindingsHash=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractFilterHash=void 0;const n=r(1),i=r(81),a=r(2);class s extends n.ActorQueryOperationTypedMediated{constructor(e,t){super(e,t)}static hash(e){return i.sha1().update(r(92)(e.map(e=>a.termToString(e)))).digest("hex")}}t.AbstractFilterHash=s},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(623),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ActorQueryOperationExtend=void 0;const n=r(1),i=r(2),a=r(58);class s extends n.ActorQueryOperationTypedMediated{constructor(e){super(e,"extend")}async testOperation(e,t){Boolean(new a.AsyncEvaluator(e.expression,n.ActorQueryOperation.getAsyncExpressionContext(t,this.mediatorQueryOperation)));return!0}async runOperation(e,t){const{expression:r,input:s,variable:o}=e,c=n.ActorQueryOperation.getSafeBindings(await this.mediatorQueryOperation.mediate({operation:s,context:t})),u=i.termToString(o),l=Object.assign({},n.ActorQueryOperation.getAsyncExpressionContext(t,this.mediatorQueryOperation)),d=new a.AsyncEvaluator(r,l),p=[...c.variables,u],h=c.bindingsStream.transform({transform:async(e,r,n)=>{try{const t=await d.evaluate(e);n(e.set(u,t))}catch(r){a.isExpressionError(r)?(n(e),this.logWarn(t,`Expression error for extend operation with bindings '${JSON.stringify(e)}'`)):h.emit("error",r)}r()}}),{metadata:f}=c;return{type:"bindings",bindingsStream:h,metadata:f,variables:p,canContainUndefs:c.canContainUndefs}}}t.ActorQueryOperationExtend=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Variable=void 0;const n=r(24);t.Variable=class{constructor(e){this.expressionType=n.ExpressionType.Variable,this.name=e}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NonLexicalLiteral=t.StringLiteral=t.LangStringLiteral=t.DateTimeLiteral=t.BooleanLiteral=t.NumericLiteral=t.Literal=t.BlankNode=t.NamedNode=t.Term=void 0;const n=r(5),i=r(17),a=r(18),s=r(24),o=new n.DataFactory;class c{constructor(){this.expressionType=s.ExpressionType.Term}str(){throw new a.InvalidArgumentTypes([this],i.RegularOperator.STR)}coerceEBV(){throw new a.EBVCoercionError(this)}}t.Term=c;t.NamedNode=class extends c{constructor(e){super(),this.value=e,this.termType="namedNode"}toRDF(){return o.namedNode(this.value)}str(){return this.value}};class u extends c{constructor(e){super(),this.termType="blankNode",this.value="string"==typeof e?o.blankNode(e):e}static nextID(){return u._nextID+=1,u.nextID.toString()}toRDF(){return this.value}}t.BlankNode=u,u._nextID=0;class l extends c{constructor(e,t,r,n){super(),this.typedValue=e,this.typeURL=t,this.strValue=r,this.language=n,this.termType="literal",this.type=i.type(t.value)}toRDF(){return o.literal(this.strValue||this.str(),this.language||this.typeURL)}str(){return this.strValue||this.typedValue.toString()}}t.Literal=l;class d extends l{coerceEBV(){return!!this.typedValue}toRDF(){const e=super.toRDF();return Number.isFinite(this.typedValue)||(e.value=e.value.replace("Infinity","INF")),e}str(){return this.strValue||d.specificFormatters[this.type](this.typedValue)}}t.NumericLiteral=d,d.specificFormatters={integer:e=>e.toFixed(0),float:e=>e.toString(),decimal:e=>e.toString(),double(e){const t=e.toExponential(),[r,n]=t.split("e"),i=n.replace(/\+/u,"");return`${r.includes(".")?r:r+".0"}E${i}`}};t.BooleanLiteral=class extends l{constructor(e,t){super(e,i.make(i.TypeURL.XSD_BOOLEAN),t),this.typedValue=e,this.strValue=t}coerceEBV(){return!!this.typedValue}};t.DateTimeLiteral=class extends l{constructor(e,t){super(e,i.make(i.TypeURL.XSD_DATE_TIME),t),this.typedValue=e,this.strValue=t}};t.LangStringLiteral=class extends l{constructor(e,t){super(e,i.make(i.TypeURL.RDF_LANG_STRING),e,t),this.typedValue=e,this.language=t}coerceEBV(){return this.strValue.length>0}};t.StringLiteral=class extends l{constructor(e){super(e,i.make(i.TypeURL.XSD_STRING),e),this.typedValue=e}coerceEBV(){return this.strValue.length>0}};t.NonLexicalLiteral=class extends l{constructor(e,t,r,n){super(e,t,r,n),this.typedValue=void 0,this.type="nonlexical",this.shouldBeCategory=i.type(t.value)}coerceEBV(){if(i.PrimitiveNumericTypes.has(this.shouldBeCategory)||"boolean"===this.shouldBeCategory)return!1;throw new a.EBVCoercionError(this)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Operator=void 0;const n=r(24);t.Operator=class{constructor(e,t){this.args=e,this.apply=t,this.expressionType=n.ExpressionType.Operator}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SpecialOperator=void 0;const n=r(24);t.SpecialOperator=class{constructor(e,t,r){this.args=e,this.applyAsync=t,this.applySync=r,this.expressionType=n.ExpressionType.SpecialOperator}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Named=void 0;const n=r(24);t.Named=class{constructor(e,t,r){this.name=e,this.args=t,this.apply=r,this.expressionType=n.ExpressionType.Named}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Aggregate=void 0;const n=r(24);t.Aggregate=class{constructor(e,t){this.name=e,this.expression=t,this.expressionType=n.ExpressionType.Aggregate}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Existence=void 0;const n=r(24);t.Existence=class{constructor(e){this.expression=e,this.expressionType=n.ExpressionType.Existence}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AsyncExtension=void 0;const n=r(24);t.AsyncExtension=class{constructor(e,t,r){this.name=e,this.args=t,this.apply=r,this.expressionType=n.ExpressionType.AsyncExtension}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SyncExtension=void 0;const n=r(24);t.SyncExtension=class{constructor(e,t,r){this.name=e,this.args=t,this.apply=r,this.expressionType=n.ExpressionType.SyncExtension}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.namedDefinitions=void 0;const n=r(17),i=r(18),a=r(71),s=r(72),o={arity:1,overloads:(0,s.declare)().onNumeric1(e=>(0,s.string)((0,s.number)(e.typedValue).str())).onBoolean1Typed(e=>(0,s.string)((0,s.bool)(e).str())).onTerm1(e=>(0,s.string)(e.str())).collect()},c={arity:1,overloads:(0,s.declare)().onNumeric1(e=>(0,s.number)(e.typedValue)).onBoolean1Typed(e=>(0,s.number)(e?1:0)).onUnary("string",e=>{const t=(0,a.parseXSDFloat)(e.str());if(void 0===t)throw new i.CastError(e,n.TypeURL.XSD_FLOAT);return(0,s.number)(t)}).copy({from:["string"],to:["nonlexical"]}).collect()},u={arity:1,overloads:(0,s.declare)().onNumeric1(e=>(0,s.number)(e.typedValue,n.TypeURL.XSD_DOUBLE)).onBoolean1Typed(e=>(0,s.number)(e?1:0,n.TypeURL.XSD_DOUBLE)).onUnary("string",e=>{const t=(0,a.parseXSDFloat)(e.str());if(void 0===t)throw new i.CastError(e,n.TypeURL.XSD_DOUBLE);return(0,s.number)(t,n.TypeURL.XSD_DOUBLE)}).copy({from:["string"],to:["nonlexical"]}).collect()},l={arity:1,overloads:(0,s.declare)().onNumeric1(e=>{const t=(0,a.parseXSDDecimal)(e.str());if(void 0===t)throw new i.CastError(e,n.TypeURL.XSD_DECIMAL);return(0,s.number)(t,n.TypeURL.XSD_DECIMAL)}).onString1(e=>{const t=e.str(),r=/^([+-])?(\d+(\.\d+)?)$/u.test(t)?(0,a.parseXSDDecimal)(t):void 0;if(void 0===r)throw new i.CastError(e,n.TypeURL.XSD_DECIMAL);return(0,s.number)(r,n.TypeURL.XSD_DECIMAL)}).copy({from:["string"],to:["nonlexical"]}).onBoolean1Typed(e=>(0,s.number)(e?1:0,n.TypeURL.XSD_DECIMAL)).collect()},d={arity:1,overloads:(0,s.declare)().onBoolean1Typed(e=>(0,s.number)(e?1:0,n.TypeURL.XSD_INTEGER)).onNumeric1(e=>{const t=(0,a.parseXSDInteger)(e.str());if(void 0===t)throw new i.CastError(e,n.TypeURL.XSD_INTEGER);return(0,s.number)(t,n.TypeURL.XSD_INTEGER)}).onString1(e=>{const t=e.str(),r=/^\d+$/u.test(t)?(0,a.parseXSDInteger)(t):void 0;if(void 0===r)throw new i.CastError(e,n.TypeURL.XSD_INTEGER);return(0,s.number)(r,n.TypeURL.XSD_INTEGER)}).copy({from:["integer"],to:["nonlexical"]}).collect()},p={arity:1,overloads:(0,s.declare)().onUnary("date",e=>e).onUnary("string",e=>{const t=new Date(e.str());if(Number.isNaN(t.getTime()))throw new i.CastError(e,n.TypeURL.XSD_DATE_TIME);return(0,s.dateTime)(t,e.str())}).copy({from:["string"],to:["nonlexical"]}).collect()},h={arity:1,overloads:(0,s.declare)().onNumeric1(e=>(0,s.bool)(e.coerceEBV())).onUnary("boolean",e=>(0,s.bool)(e.coerceEBV())).onUnary("string",e=>{switch(e.str()){case"true":return(0,s.bool)(!0);case"false":return(0,s.bool)(!1);case"1":return(0,s.bool)(!0);case"0":return(0,s.bool)(!1);default:throw new i.CastError(e,n.TypeURL.XSD_BOOLEAN)}}).copy({from:["string"],to:["nonlexical"]}).collect()};t.namedDefinitions={[n.TypeURL.XSD_STRING]:o,[n.TypeURL.XSD_FLOAT]:c,[n.TypeURL.XSD_DOUBLE]:u,[n.TypeURL.XSD_DECIMAL]:l,[n.TypeURL.XSD_INTEGER]:d,[n.TypeURL.XSD_DATE_TIME]:p,[n.TypeURL.XSD_DATE]:p,[n.TypeURL.XSD_BOOLEAN]:h}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.definitions=void 0;const n=r(635),i=r(81),a=r(5),s=r(636),o=r(231),c=r(47),u=r(46),l=r(17),d=r(17),p=r(18),h=r(71),f=r(72),g=r(637),m=new a.DataFactory,y={arity:1,overloads:(0,f.declare)().onTerm1(e=>(0,f.bool)(!e.coerceEBV())).collect()},b={arity:1,overloads:(0,f.declare)().onNumeric1(e=>(0,f.number)(e.typedValue,e.typeURL.value)).collect()},_={arity:1,overloads:(0,f.declare)().onNumeric1(e=>(0,f.number)(-e.typedValue,e.typeURL.value)).collect()},v={arity:2,overloads:(0,f.declare)().arithmetic((e,t)=>n.Decimal.mul(e,t).toNumber()).collect()},w={arity:2,overloads:(0,f.declare)().arithmetic((e,t)=>n.Decimal.div(e,t).toNumber()).onBinaryTyped(["integer","integer"],(e,t)=>{if(0===t)throw new p.ExpressionError("Integer division by 0");return(0,f.number)(n.Decimal.div(e,t).toNumber(),d.TypeURL.XSD_DECIMAL)}).collect()},S={arity:2,overloads:(0,f.declare)().arithmetic((e,t)=>n.Decimal.add(e,t).toNumber()).collect()},T={arity:2,overloads:(0,f.declare)().arithmetic((e,t)=>n.Decimal.sub(e,t).toNumber()).collect()},E={arity:2,overloads:(0,f.declare)().numberTest((e,t)=>e===t).stringTest((e,t)=>0===e.localeCompare(t)).booleanTest((e,t)=>e===t).dateTimeTest((e,t)=>e.getTime()===t.getTime()).set(["term","term"],([e,t])=>(0,f.bool)(O(e,t))).collect()};function O(e,t){const r=e.toRDF(),n=t.toRDF(),i=r.equals(n);if("Literal"===r.termType&&"Literal"===n.termType)throw new p.RDFEqualTypeError([e,t]);return i}const x={arity:2,overloads:(0,f.declare)().numberTest((e,t)=>e!==t).stringTest((e,t)=>0!==e.localeCompare(t)).booleanTest((e,t)=>e!==t).dateTimeTest((e,t)=>e.getTime()!==t.getTime()).set(["term","term"],([e,t])=>(0,f.bool)(!O(e,t))).collect()},A={arity:2,overloads:(0,f.declare)().numberTest((e,t)=>e-1===e.localeCompare(t)).booleanTest((e,t)=>ee.getTime()e>t).stringTest((e,t)=>1===e.localeCompare(t)).booleanTest((e,t)=>e>t).dateTimeTest((e,t)=>e.getTime()>t.getTime()).collect()},P={arity:2,overloads:(0,f.declare)().numberTest((e,t)=>e<=t).stringTest((e,t)=>1!==e.localeCompare(t)).booleanTest((e,t)=>e<=t).dateTimeTest((e,t)=>e.getTime()<=t.getTime()).collect()},I={arity:2,overloads:(0,f.declare)().numberTest((e,t)=>e>=t).stringTest((e,t)=>-1!==e.localeCompare(t)).booleanTest((e,t)=>e>=t).dateTimeTest((e,t)=>e.getTime()>=t.getTime()).collect()},N={arity:1,overloads:(0,f.declare)().onTerm1(e=>(0,f.bool)("namedNode"===e.termType)).collect()},j={arity:1,overloads:(0,f.declare)().onTerm1(e=>(0,f.bool)("blankNode"===e.termType)).collect()},C={arity:1,overloads:(0,f.declare)().onTerm1(e=>(0,f.bool)("literal"===e.termType)).collect()},k={arity:1,overloads:(0,f.declare)().onNumeric1(e=>(0,f.bool)(!0)).onTerm1(e=>(0,f.bool)(!1)).collect()},D={arity:1,overloads:(0,f.declare)().onTerm1(e=>(0,f.string)(e.str())).collect()},L={arity:1,overloads:(0,f.declare)().onLiteral1(e=>(0,f.string)(e.language||"")).collect()},M={arity:1,overloads:(0,f.declare)().onLiteral1(e=>new c.NamedNode(e.typeURL.value)).collect()},F={arity:2,overloads:(0,f.declare)().onBinary(["string","namedNode"],(e,t)=>{const r=m.literal(e.typedValue,m.namedNode(t.value));return(0,u.transformLiteral)(r)}).collect()},q={arity:2,overloads:(0,f.declare)().onBinaryTyped(["string","string"],(e,t)=>new c.LangStringLiteral(e,t.toLowerCase())).collect()},B={arity:0,overloads:(0,f.declare)().set([],()=>new c.NamedNode("urn:uuid:"+o.v4())).collect()},U={arity:0,overloads:(0,f.declare)().set([],()=>(0,f.string)(o.v4())).collect()},V={arity:1,overloads:(0,f.declare)().onStringly1(e=>(0,f.number)([...e.typedValue].length,d.TypeURL.XSD_INTEGER)).collect()},H={arity:[2,3],overloads:(0,f.declare)().onBinaryTyped(["string","integer"],(e,t)=>(0,f.string)([...e].slice(t-1).join(""))).onBinary(["langString","integer"],(e,t)=>{const r=[...e.typedValue].slice(t.typedValue-1).join("");return(0,f.langString)(r,e.language)}).onTernaryTyped(["string","integer","integer"],(e,t,r)=>(0,f.string)([...e].slice(t-1,r).join(""))).onTernary(["langString","integer","integer"],(e,t,r)=>{const n=[...e.typedValue].slice(t.typedValue-1,r.typedValue).join("");return(0,f.langString)(n,e.language)}).collect()},G={arity:1,overloads:(0,f.declare)().onString1Typed(e=>(0,f.string)(e.toUpperCase())).onLangString1(e=>(0,f.langString)(e.typedValue.toUpperCase(),e.language)).collect()},z={arity:1,overloads:(0,f.declare)().onString1Typed(e=>(0,f.string)(e.toLowerCase())).onLangString1(e=>(0,f.langString)(e.typedValue.toLowerCase(),e.language)).collect()},Q={arity:2,overloads:(0,f.declare)().onBinaryTyped(["string","string"],(e,t)=>(0,f.bool)(e.startsWith(t))).onBinaryTyped(["langString","string"],(e,t)=>(0,f.bool)(e.startsWith(t))).onBinary(["langString","langString"],(e,t)=>{if(e.language!==t.language)throw new p.IncompatibleLanguageOperation(e,t);return(0,f.bool)(e.typedValue.startsWith(t.typedValue))}).collect()},$={arity:2,overloads:(0,f.declare)().onBinaryTyped(["string","string"],(e,t)=>(0,f.bool)(e.endsWith(t))).onBinaryTyped(["langString","string"],(e,t)=>(0,f.bool)(e.endsWith(t))).onBinary(["langString","langString"],(e,t)=>{if(e.language!==t.language)throw new p.IncompatibleLanguageOperation(e,t);return(0,f.bool)(e.typedValue.endsWith(t.typedValue))}).collect()},X={arity:2,overloads:(0,f.declare)().onBinaryTyped(["string","string"],(e,t)=>(0,f.bool)(e.includes(t))).onBinaryTyped(["langString","string"],(e,t)=>(0,f.bool)(e.includes(t))).onBinary(["langString","langString"],(e,t)=>{if(e.language!==t.language)throw new p.IncompatibleLanguageOperation(e,t);return(0,f.bool)(e.typedValue.includes(t.typedValue))}).collect()},Y={arity:2,overloads:(0,f.declare)().onBinaryTyped(["string","string"],(e,t)=>(0,f.string)(e.slice(0,Math.max(0,e.indexOf(t))))).onBinary(["langString","string"],(e,t)=>{const[r,n]=[e.typedValue,t.typedValue],i=e.typedValue.slice(0,Math.max(0,r.indexOf(n)));return i||!n?(0,f.langString)(i,e.language):(0,f.string)(i)}).onBinary(["langString","langString"],(e,t)=>{if(e.language!==t.language)throw new p.IncompatibleLanguageOperation(e,t);const[r,n]=[e.typedValue,t.typedValue],i=e.typedValue.slice(0,Math.max(0,r.indexOf(n)));return i||!n?(0,f.langString)(i,e.language):(0,f.string)(i)}).collect()},K={arity:2,overloads:(0,f.declare)().onBinaryTyped(["string","string"],(e,t)=>(0,f.string)(e.slice(e.indexOf(t)).slice(t.length))).onBinary(["langString","string"],(e,t)=>{const[r,n]=[e.typedValue,t.typedValue],i=r.slice(r.indexOf(n)).slice(n.length);return i||!n?(0,f.langString)(i,e.language):(0,f.string)(i)}).onBinary(["langString","langString"],(e,t)=>{if(e.language!==t.language)throw new p.IncompatibleLanguageOperation(e,t);const[r,n]=[e.typedValue,t.typedValue],i=r.slice(r.indexOf(n)).slice(n.length);return i||!n?(0,f.langString)(i,e.language):(0,f.string)(i)}).collect()},J={arity:1,overloads:(0,f.declare)().onStringly1Typed(e=>(0,f.string)(encodeURI(e))).collect()},W={arity:2,overloads:(0,f.declare)().onBinaryTyped(["string","string"],(e,t)=>(0,f.bool)(g.langMatches(e,t))).collect()},Z=(e,t)=>(0,f.bool)(g.matches(e,t)),ee=(e,t,r)=>(0,f.bool)(g.matches(e,t,r)),te={arity:[2,3],overloads:(0,f.declare)().onBinaryTyped(["string","string"],Z).onBinaryTyped(["langString","string"],Z).onTernaryTyped(["string","string","string"],ee).onTernaryTyped(["langString","string","string"],ee).collect()},re={arity:[3,4],overloads:(0,f.declare)().onTernaryTyped(["string","string","string"],(e,t,r)=>(0,f.string)(g.replace(e,t,r))).set(["langString","string","string"],([e,t,r])=>{const n=g.replace(e.typedValue,t.typedValue,r.typedValue);return(0,f.langString)(n,e.language)}).onQuaternaryTyped(["string","string","string","string"],(e,t,r,n)=>(0,f.string)(g.replace(e,t,r,n))).set(["langString","string","string","string"],([e,t,r,n])=>{const i=g.replace(e.typedValue,t.typedValue,r.typedValue,n.typedValue);return(0,f.langString)(i,e.language)}).collect()},ne={arity:1,overloads:(0,f.declare)().onNumeric1(e=>(0,f.number)(Math.abs(e.typedValue),e.typeURL.value)).collect()},ie={arity:1,overloads:(0,f.declare)().onNumeric1(e=>(0,f.number)(Math.round(e.typedValue),e.typeURL.value)).collect()},ae={arity:1,overloads:(0,f.declare)().onNumeric1(e=>(0,f.number)(Math.ceil(e.typedValue),e.typeURL.value)).collect()},se={arity:1,overloads:(0,f.declare)().onNumeric1(e=>(0,f.number)(Math.floor(e.typedValue),e.typeURL.value)).collect()},oe={arity:0,overloads:(0,f.declare)().set([],()=>(0,f.number)(Math.random(),d.TypeURL.XSD_DOUBLE)).collect()};function ce(e){return h.parseXSDDateTime(e.str())}const ue={arity:1,overloads:(0,f.declare)().onDateTime1(e=>(0,f.number)(Number(ce(e).year),d.TypeURL.XSD_INTEGER)).collect()},le={arity:1,overloads:(0,f.declare)().onDateTime1(e=>(0,f.number)(Number(ce(e).month),d.TypeURL.XSD_INTEGER)).collect()},de={arity:1,overloads:(0,f.declare)().onDateTime1(e=>(0,f.number)(Number(ce(e).day),d.TypeURL.XSD_INTEGER)).collect()},pe={arity:1,overloads:(0,f.declare)().onDateTime1(e=>(0,f.number)(Number(ce(e).hours),d.TypeURL.XSD_INTEGER)).collect()},he={arity:1,overloads:(0,f.declare)().onDateTime1(e=>(0,f.number)(Number(ce(e).minutes),d.TypeURL.XSD_INTEGER)).collect()},fe={arity:1,overloads:(0,f.declare)().onDateTime1(e=>(0,f.number)(Number(ce(e).seconds),d.TypeURL.XSD_DECIMAL)).collect()},ge={arity:1,overloads:(0,f.declare)().onDateTime1(e=>{const t=g.formatDayTimeDuration(ce(e).timezone);if(!t)throw new p.InvalidTimezoneCall(e.strValue);return new c.Literal(t,l.make(d.TypeURL.XSD_DAYTIME_DURATION),t)}).collect()},me={arity:1,overloads:(0,f.declare)().onDateTime1(e=>(0,f.string)(ce(e).timezone)).collect()},ye={arity:1,overloads:(0,f.declare)().onString1Typed(e=>(0,f.string)((0,s.hash)(e))).collect()},be={arity:1,overloads:(0,f.declare)().onString1Typed(e=>(0,f.string)((0,i.sha1)().update(e).digest("hex"))).collect()},_e={arity:1,overloads:(0,f.declare)().onString1Typed(e=>(0,f.string)((0,i.sha256)().update(e).digest("hex"))).collect()},ve={arity:1,overloads:(0,f.declare)().onString1Typed(e=>(0,f.string)((0,i.sha384)().update(e).digest("hex"))).collect()},we={arity:1,overloads:(0,f.declare)().onString1Typed(e=>(0,f.string)((0,i.sha512)().update(e).digest("hex"))).collect()};t.definitions={"!":y,UPLUS:b,UMINUS:_,"*":v,"/":w,"+":S,"-":T,"=":E,"!=":x,"<":A,">":R,"<=":P,">=":I,isiri:N,isblank:j,isliteral:C,isnumeric:k,str:D,lang:L,datatype:M,strdt:F,strlang:q,uuid:B,struuid:U,strlen:V,substr:H,ucase:G,lcase:z,strstarts:Q,strends:$,contains:X,strbefore:Y,strafter:K,encode_for_uri:J,langmatches:W,regex:te,replace:re,abs:ne,round:ie,ceil:ae,floor:se,rand:oe,year:ue,month:le,day:de,hours:pe,minutes:he,seconds:fe,timezone:ge,tz:me,md5:ye,sha1:be,sha256:_e,sha384:ve,sha512:we}},function(e,t,r){var n;!function(i){"use strict";var a,s,o,c=9e15,u="0123456789abcdef",l="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",d="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",p={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-c,maxE:c,crypto:!1},h=!0,f="[DecimalError] Invalid argument: ",g="[object Decimal]",m=Math.floor,y=Math.pow,b=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,_=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,v=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,w=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,S=1e7,T=l.length-1,E=d.length-1,O={toStringTag:g};function x(e){var t,r,n,i=e.length-1,a="",s=e[0];if(i>0){for(a+=s,t=1;tr)throw Error(f+e)}function R(e,t,r,n){var i,a,s,o;for(a=e[0];a>=10;a/=10)--t;return--t<0?(t+=7,i=0):(i=Math.ceil((t+1)/7),t%=7),a=y(10,7-t),o=e[i]%a|0,null==n?t<3?(0==t?o=o/100|0:1==t&&(o=o/10|0),s=r<4&&99999==o||r>3&&49999==o||5e4==o||0==o):s=(r<4&&o+1==a||r>3&&o+1==a/2)&&(e[i+1]/a/100|0)==y(10,t-2)-1||(o==a/2||0==o)&&0==(e[i+1]/a/100|0):t<4?(0==t?o=o/1e3|0:1==t?o=o/100|0:2==t&&(o=o/10|0),s=(n||r<4)&&9999==o||!n&&r>3&&4999==o):s=((n||r<4)&&o+1==a||!n&&r>3&&o+1==a/2)&&(e[i+1]/a/1e3|0)==y(10,t-3)-1,s}function P(e,t,r){for(var n,i,a=[0],s=0,o=e.length;sr-1&&(void 0===a[n+1]&&(a[n+1]=0),a[n+1]+=a[n]/r|0,a[n]%=r)}return a.reverse()}O.absoluteValue=O.abs=function(){var e=new this.constructor(this);return e.s<0&&(e.s=1),N(e)},O.ceil=function(){return N(new this.constructor(this),this.e+1,2)},O.clampedTo=O.clamp=function(e,t){var r=this,n=r.constructor;if(e=new n(e),t=new n(t),!e.s||!t.s)return new n(NaN);if(e.gt(t))throw Error(f+t);return r.cmp(e)<0?e:r.cmp(t)>0?t:new n(r)},O.comparedTo=O.cmp=function(e){var t,r,n,i,a=this,s=a.d,o=(e=new a.constructor(e)).d,c=a.s,u=e.s;if(!s||!o)return c&&u?c!==u?c:s===o?0:!s^c<0?1:-1:NaN;if(!s[0]||!o[0])return s[0]?c:o[0]?-u:0;if(c!==u)return c;if(a.e!==e.e)return a.e>e.e^c<0?1:-1;for(t=0,r=(n=s.length)<(i=o.length)?n:i;to[t]^c<0?1:-1;return n===i?0:n>i^c<0?1:-1},O.cosine=O.cos=function(){var e,t,r=this,n=r.constructor;return r.d?r.d[0]?(e=n.precision,t=n.rounding,n.precision=e+Math.max(r.e,r.sd())+7,n.rounding=1,r=function(e,t){var r,n,i;if(t.isZero())return t;(n=t.d.length)<32?(r=Math.ceil(n/3),i=(1/$(4,r)).toString()):(r=16,i="2.3283064365386962890625e-10");e.precision+=r,t=Q(e,1,t.times(i),new e(1));for(var a=r;a--;){var s=t.times(t);t=s.times(s).minus(s).times(8).plus(1)}return e.precision-=r,t}(n,X(n,r)),n.precision=e,n.rounding=t,N(2==o||3==o?r.neg():r,e,t,!0)):new n(1):new n(NaN)},O.cubeRoot=O.cbrt=function(){var e,t,r,n,i,a,s,o,c,u,l=this,d=l.constructor;if(!l.isFinite()||l.isZero())return new d(l);for(h=!1,(a=l.s*y(l.s*l,1/3))&&Math.abs(a)!=1/0?n=new d(a.toString()):(r=x(l.d),(a=((e=l.e)-r.length+1)%3)&&(r+=1==a||-2==a?"0":"00"),a=y(r,1/3),e=m((e+1)/3)-(e%3==(e<0?-1:2)),(n=new d(r=a==1/0?"5e"+e:(r=a.toExponential()).slice(0,r.indexOf("e")+1)+e)).s=l.s),s=(e=d.precision)+3;;)if(u=(c=(o=n).times(o).times(o)).plus(l),n=I(u.plus(l).times(o),u.plus(c),s+2,1),x(o.d).slice(0,s)===(r=x(n.d)).slice(0,s)){if("9999"!=(r=r.slice(s-3,s+1))&&(i||"4999"!=r)){+r&&(+r.slice(1)||"5"!=r.charAt(0))||(N(n,e+1,1),t=!n.times(n).times(n).eq(l));break}if(!i&&(N(o,e+1,0),o.times(o).times(o).eq(l))){n=o;break}s+=4,i=1}return h=!0,N(n,e,d.rounding,t)},O.decimalPlaces=O.dp=function(){var e,t=this.d,r=NaN;if(t){if(r=7*((e=t.length-1)-m(this.e/7)),e=t[e])for(;e%10==0;e/=10)r--;r<0&&(r=0)}return r},O.dividedBy=O.div=function(e){return I(this,new this.constructor(e))},O.dividedToIntegerBy=O.divToInt=function(e){var t=this.constructor;return N(I(this,new t(e),0,1,1),t.precision,t.rounding)},O.equals=O.eq=function(e){return 0===this.cmp(e)},O.floor=function(){return N(new this.constructor(this),this.e+1,3)},O.greaterThan=O.gt=function(e){return this.cmp(e)>0},O.greaterThanOrEqualTo=O.gte=function(e){var t=this.cmp(e);return 1==t||0===t},O.hyperbolicCosine=O.cosh=function(){var e,t,r,n,i,a=this,s=a.constructor,o=new s(1);if(!a.isFinite())return new s(a.s?1/0:NaN);if(a.isZero())return o;r=s.precision,n=s.rounding,s.precision=r+Math.max(a.e,a.sd())+4,s.rounding=1,(i=a.d.length)<32?t=(1/$(4,e=Math.ceil(i/3))).toString():(e=16,t="2.3283064365386962890625e-10"),a=Q(s,1,a.times(t),new s(1),!0);for(var c,u=e,l=new s(8);u--;)c=a.times(a),a=o.minus(c.times(l.minus(c.times(l))));return N(a,s.precision=r,s.rounding=n,!0)},O.hyperbolicSine=O.sinh=function(){var e,t,r,n,i=this,a=i.constructor;if(!i.isFinite()||i.isZero())return new a(i);if(t=a.precision,r=a.rounding,a.precision=t+Math.max(i.e,i.sd())+4,a.rounding=1,(n=i.d.length)<3)i=Q(a,2,i,i,!0);else{e=(e=1.4*Math.sqrt(n))>16?16:0|e,i=Q(a,2,i=i.times(1/$(5,e)),i,!0);for(var s,o=new a(5),c=new a(16),u=new a(20);e--;)s=i.times(i),i=i.times(o.plus(s.times(c.times(s).plus(u))))}return a.precision=t,a.rounding=r,N(i,t,r,!0)},O.hyperbolicTangent=O.tanh=function(){var e,t,r=this,n=r.constructor;return r.isFinite()?r.isZero()?new n(r):(e=n.precision,t=n.rounding,n.precision=e+7,n.rounding=1,I(r.sinh(),r.cosh(),n.precision=e,n.rounding=t)):new n(r.s)},O.inverseCosine=O.acos=function(){var e,t=this,r=t.constructor,n=t.abs().cmp(1),i=r.precision,a=r.rounding;return-1!==n?0===n?t.isNeg()?D(r,i,a):new r(0):new r(NaN):t.isZero()?D(r,i+4,a).times(.5):(r.precision=i+6,r.rounding=1,t=t.asin(),e=D(r,i+4,a).times(.5),r.precision=i,r.rounding=a,e.minus(t))},O.inverseHyperbolicCosine=O.acosh=function(){var e,t,r=this,n=r.constructor;return r.lte(1)?new n(r.eq(1)?0:NaN):r.isFinite()?(e=n.precision,t=n.rounding,n.precision=e+Math.max(Math.abs(r.e),r.sd())+4,n.rounding=1,h=!1,r=r.times(r).minus(1).sqrt().plus(r),h=!0,n.precision=e,n.rounding=t,r.ln()):new n(r)},O.inverseHyperbolicSine=O.asinh=function(){var e,t,r=this,n=r.constructor;return!r.isFinite()||r.isZero()?new n(r):(e=n.precision,t=n.rounding,n.precision=e+2*Math.max(Math.abs(r.e),r.sd())+6,n.rounding=1,h=!1,r=r.times(r).plus(1).sqrt().plus(r),h=!0,n.precision=e,n.rounding=t,r.ln())},O.inverseHyperbolicTangent=O.atanh=function(){var e,t,r,n,i=this,a=i.constructor;return i.isFinite()?i.e>=0?new a(i.abs().eq(1)?i.s/0:i.isZero()?i:NaN):(e=a.precision,t=a.rounding,n=i.sd(),Math.max(n,e)<2*-i.e-1?N(new a(i),e,t,!0):(a.precision=r=n-i.e,i=I(i.plus(1),new a(1).minus(i),r+e,1),a.precision=e+4,a.rounding=1,i=i.ln(),a.precision=e,a.rounding=t,i.times(.5))):new a(NaN)},O.inverseSine=O.asin=function(){var e,t,r,n,i=this,a=i.constructor;return i.isZero()?new a(i):(t=i.abs().cmp(1),r=a.precision,n=a.rounding,-1!==t?0===t?((e=D(a,r+4,n).times(.5)).s=i.s,e):new a(NaN):(a.precision=r+6,a.rounding=1,i=i.div(new a(1).minus(i.times(i)).sqrt().plus(1)).atan(),a.precision=r,a.rounding=n,i.times(2)))},O.inverseTangent=O.atan=function(){var e,t,r,n,i,a,s,o,c,u=this,l=u.constructor,d=l.precision,p=l.rounding;if(u.isFinite()){if(u.isZero())return new l(u);if(u.abs().eq(1)&&d+4<=E)return(s=D(l,d+4,p).times(.25)).s=u.s,s}else{if(!u.s)return new l(NaN);if(d+4<=E)return(s=D(l,d+4,p).times(.5)).s=u.s,s}for(l.precision=o=d+10,l.rounding=1,e=r=Math.min(28,o/7+2|0);e;--e)u=u.div(u.times(u).plus(1).sqrt().plus(1));for(h=!1,t=Math.ceil(o/7),n=1,c=u.times(u),s=new l(u),i=u;-1!==e;)if(i=i.times(c),a=s.minus(i.div(n+=2)),i=i.times(c),void 0!==(s=a.plus(i.div(n+=2))).d[t])for(e=t;s.d[e]===a.d[e]&&e--;);return r&&(s=s.times(2<this.d.length-2},O.isNaN=function(){return!this.s},O.isNegative=O.isNeg=function(){return this.s<0},O.isPositive=O.isPos=function(){return this.s>0},O.isZero=function(){return!!this.d&&0===this.d[0]},O.lessThan=O.lt=function(e){return this.cmp(e)<0},O.lessThanOrEqualTo=O.lte=function(e){return this.cmp(e)<1},O.logarithm=O.log=function(e){var t,r,n,i,a,s,o,c,u=this.constructor,l=u.precision,d=u.rounding;if(null==e)e=new u(10),t=!0;else{if(r=(e=new u(e)).d,e.s<0||!r||!r[0]||e.eq(1))return new u(NaN);t=e.eq(10)}if(r=this.d,this.s<0||!r||!r[0]||this.eq(1))return new u(r&&!r[0]?-1/0:1!=this.s?NaN:r?0:1/0);if(t)if(r.length>1)a=!0;else{for(i=r[0];i%10==0;)i/=10;a=1!==i}if(h=!1,s=V(this,o=l+5),n=t?k(u,o+10):V(e,o),R((c=I(s,n,o,1)).d,i=l,d))do{if(s=V(this,o+=10),n=t?k(u,o+10):V(e,o),c=I(s,n,o,1),!a){+x(c.d).slice(i+1,i+15)+1==1e14&&(c=N(c,l+1,0));break}}while(R(c.d,i+=10,d));return h=!0,N(c,l,d)},O.minus=O.sub=function(e){var t,r,n,i,a,s,o,c,u,l,d,p,f=this,g=f.constructor;if(e=new g(e),!f.d||!e.d)return f.s&&e.s?f.d?e.s=-e.s:e=new g(e.d||f.s!==e.s?f:NaN):e=new g(NaN),e;if(f.s!=e.s)return e.s=-e.s,f.plus(e);if(u=f.d,p=e.d,o=g.precision,c=g.rounding,!u[0]||!p[0]){if(p[0])e.s=-e.s;else{if(!u[0])return new g(3===c?-0:0);e=new g(f)}return h?N(e,o,c):e}if(r=m(e.e/7),l=m(f.e/7),u=u.slice(),a=l-r){for((d=a<0)?(t=u,a=-a,s=p.length):(t=p,r=l,s=u.length),a>(n=Math.max(Math.ceil(o/7),s)+2)&&(a=n,t.length=1),t.reverse(),n=a;n--;)t.push(0);t.reverse()}else{for((d=(n=u.length)<(s=p.length))&&(s=n),n=0;n0;--n)u[s++]=0;for(n=p.length;n>a;){if(u[--n](s=(a=Math.ceil(o/7))>s?a+1:s+1)&&(i=s,r.length=1),r.reverse();i--;)r.push(0);r.reverse()}for((s=u.length)-(i=l.length)<0&&(i=s,r=l,l=u,u=r),t=0;i;)t=(u[--i]=u[i]+l[i]+t)/S|0,u[i]%=S;for(t&&(u.unshift(t),++n),s=u.length;0==u[--s];)u.pop();return e.d=u,e.e=C(u,n),h?N(e,o,c):e},O.precision=O.sd=function(e){var t,r=this;if(void 0!==e&&e!==!!e&&1!==e&&0!==e)throw Error(f+e);return r.d?(t=L(r.d),e&&r.e+1>t&&(t=r.e+1)):t=NaN,t},O.round=function(){var e=this,t=e.constructor;return N(new t(e),e.e+1,t.rounding)},O.sine=O.sin=function(){var e,t,r=this,n=r.constructor;return r.isFinite()?r.isZero()?new n(r):(e=n.precision,t=n.rounding,n.precision=e+Math.max(r.e,r.sd())+7,n.rounding=1,r=function(e,t){var r,n=t.d.length;if(n<3)return t.isZero()?t:Q(e,2,t,t);r=(r=1.4*Math.sqrt(n))>16?16:0|r,t=t.times(1/$(5,r)),t=Q(e,2,t,t);for(var i,a=new e(5),s=new e(16),o=new e(20);r--;)i=t.times(t),t=t.times(a.plus(i.times(s.times(i).minus(o))));return t}(n,X(n,r)),n.precision=e,n.rounding=t,N(o>2?r.neg():r,e,t,!0)):new n(NaN)},O.squareRoot=O.sqrt=function(){var e,t,r,n,i,a,s=this,o=s.d,c=s.e,u=s.s,l=s.constructor;if(1!==u||!o||!o[0])return new l(!u||u<0&&(!o||o[0])?NaN:o?s:1/0);for(h=!1,0==(u=Math.sqrt(+s))||u==1/0?(((t=x(o)).length+c)%2==0&&(t+="0"),u=Math.sqrt(t),c=m((c+1)/2)-(c<0||c%2),n=new l(t=u==1/0?"5e"+c:(t=u.toExponential()).slice(0,t.indexOf("e")+1)+c)):n=new l(u.toString()),r=(c=l.precision)+3;;)if(n=(a=n).plus(I(s,a,r+2,1)).times(.5),x(a.d).slice(0,r)===(t=x(n.d)).slice(0,r)){if("9999"!=(t=t.slice(r-3,r+1))&&(i||"4999"!=t)){+t&&(+t.slice(1)||"5"!=t.charAt(0))||(N(n,c+1,1),e=!n.times(n).eq(s));break}if(!i&&(N(a,c+1,0),a.times(a).eq(s))){n=a;break}r+=4,i=1}return h=!0,N(n,c,l.rounding,e)},O.tangent=O.tan=function(){var e,t,r=this,n=r.constructor;return r.isFinite()?r.isZero()?new n(r):(e=n.precision,t=n.rounding,n.precision=e+10,n.rounding=1,(r=r.sin()).s=1,r=I(r,new n(1).minus(r.times(r)).sqrt(),e+10,0),n.precision=e,n.rounding=t,N(2==o||4==o?r.neg():r,e,t,!0)):new n(NaN)},O.times=O.mul=function(e){var t,r,n,i,a,s,o,c,u,l=this,d=l.constructor,p=l.d,f=(e=new d(e)).d;if(e.s*=l.s,!(p&&p[0]&&f&&f[0]))return new d(!e.s||p&&!p[0]&&!f||f&&!f[0]&&!p?NaN:p&&f?0*e.s:e.s/0);for(r=m(l.e/7)+m(e.e/7),(c=p.length)<(u=f.length)&&(a=p,p=f,f=a,s=c,c=u,u=s),a=[],n=s=c+u;n--;)a.push(0);for(n=u;--n>=0;){for(t=0,i=c+n;i>n;)o=a[i]+f[n]*p[i-n-1]+t,a[i--]=o%S|0,t=o/S|0;a[i]=(a[i]+t)%S|0}for(;!a[--s];)a.pop();return t?++r:a.shift(),e.d=a,e.e=C(a,r),h?N(e,d.precision,d.rounding):e},O.toBinary=function(e,t){return Y(this,2,e,t)},O.toDecimalPlaces=O.toDP=function(e,t){var r=this,n=r.constructor;return r=new n(r),void 0===e?r:(A(e,0,1e9),void 0===t?t=n.rounding:A(t,0,8),N(r,e+r.e+1,t))},O.toExponential=function(e,t){var r,n=this,i=n.constructor;return void 0===e?r=j(n,!0):(A(e,0,1e9),void 0===t?t=i.rounding:A(t,0,8),r=j(n=N(new i(n),e+1,t),!0,e+1)),n.isNeg()&&!n.isZero()?"-"+r:r},O.toFixed=function(e,t){var r,n,i=this,a=i.constructor;return void 0===e?r=j(i):(A(e,0,1e9),void 0===t?t=a.rounding:A(t,0,8),r=j(n=N(new a(i),e+i.e+1,t),!1,e+n.e+1)),i.isNeg()&&!i.isZero()?"-"+r:r},O.toFraction=function(e){var t,r,n,i,a,s,o,c,u,l,d,p,g=this,m=g.d,b=g.constructor;if(!m)return new b(g);if(u=r=new b(1),n=c=new b(0),s=(a=(t=new b(n)).e=L(m)-g.e-1)%7,t.d[0]=y(10,s<0?7+s:s),null==e)e=a>0?t:u;else{if(!(o=new b(e)).isInt()||o.lt(u))throw Error(f+o);e=o.gt(t)?a>0?t:u:o}for(h=!1,o=new b(x(m)),l=b.precision,b.precision=a=7*m.length*2;d=I(o,t,0,1,1),1!=(i=r.plus(d.times(n))).cmp(e);)r=n,n=i,i=u,u=c.plus(d.times(i)),c=i,i=t,t=o.minus(d.times(i)),o=i;return i=I(e.minus(r),n,0,1,1),c=c.plus(i.times(u)),r=r.plus(i.times(n)),c.s=u.s=g.s,p=I(u,n,a,1).minus(g).abs().cmp(I(c,r,a,1).minus(g).abs())<1?[u,n]:[c,r],b.precision=l,h=!0,p},O.toHexadecimal=O.toHex=function(e,t){return Y(this,16,e,t)},O.toNearest=function(e,t){var r=this,n=r.constructor;if(r=new n(r),null==e){if(!r.d)return r;e=new n(1),t=n.rounding}else{if(e=new n(e),void 0===t?t=n.rounding:A(t,0,8),!r.d)return e.s?r:e;if(!e.d)return e.s&&(e.s=r.s),e}return e.d[0]?(h=!1,r=I(r,e,0,t,1).times(e),h=!0,N(r)):(e.s=r.s,r=e),r},O.toNumber=function(){return+this},O.toOctal=function(e,t){return Y(this,8,e,t)},O.toPower=O.pow=function(e){var t,r,n,i,a,s,o=this,c=o.constructor,u=+(e=new c(e));if(!(o.d&&e.d&&o.d[0]&&e.d[0]))return new c(y(+o,u));if((o=new c(o)).eq(1))return o;if(n=c.precision,a=c.rounding,e.eq(1))return N(o,n,a);if((t=m(e.e/7))>=e.d.length-1&&(r=u<0?-u:u)<=9007199254740991)return i=F(c,o,r,n),e.s<0?new c(1).div(i):N(i,n,a);if((s=o.s)<0){if(tc.maxE+1||t0?s/0:0):(h=!1,c.rounding=o.s=1,r=Math.min(12,(t+"").length),(i=U(e.times(V(o,n+r)),n)).d&&R((i=N(i,n+5,1)).d,n,a)&&(t=n+10,+x((i=N(U(e.times(V(o,t+r)),t),t+5,1)).d).slice(n+1,n+15)+1==1e14&&(i=N(i,n+1,0))),i.s=s,h=!0,c.rounding=a,N(i,n,a))},O.toPrecision=function(e,t){var r,n=this,i=n.constructor;return void 0===e?r=j(n,n.e<=i.toExpNeg||n.e>=i.toExpPos):(A(e,1,1e9),void 0===t?t=i.rounding:A(t,0,8),r=j(n=N(new i(n),e,t),e<=n.e||n.e<=i.toExpNeg,e)),n.isNeg()&&!n.isZero()?"-"+r:r},O.toSignificantDigits=O.toSD=function(e,t){var r=this.constructor;return void 0===e?(e=r.precision,t=r.rounding):(A(e,1,1e9),void 0===t?t=r.rounding:A(t,0,8)),N(new r(this),e,t)},O.toString=function(){var e=this,t=e.constructor,r=j(e,e.e<=t.toExpNeg||e.e>=t.toExpPos);return e.isNeg()&&!e.isZero()?"-"+r:r},O.truncated=O.trunc=function(){return N(new this.constructor(this),this.e+1,1)},O.valueOf=O.toJSON=function(){var e=this,t=e.constructor,r=j(e,e.e<=t.toExpNeg||e.e>=t.toExpPos);return e.isNeg()?"-"+r:r};var I=function(){function e(e,t,r){var n,i=0,a=e.length;for(e=e.slice();a--;)n=e[a]*t+i,e[a]=n%r|0,i=n/r|0;return i&&e.unshift(i),e}function t(e,t,r,n){var i,a;if(r!=n)a=r>n?1:-1;else for(i=a=0;it[i]?1:-1;break}return a}function r(e,t,r,n){for(var i=0;r--;)e[r]-=i,i=e[r]1;)e.shift()}return function(n,i,a,o,c,u){var l,d,p,h,f,g,y,b,_,v,w,T,E,O,x,A,R,P,I,j,C=n.constructor,k=n.s==i.s?1:-1,D=n.d,L=i.d;if(!(D&&D[0]&&L&&L[0]))return new C(n.s&&i.s&&(D?!L||D[0]!=L[0]:L)?D&&0==D[0]||!L?0*k:k/0:NaN);for(u?(f=1,d=n.e-i.e):(u=S,f=7,d=m(n.e/f)-m(i.e/f)),I=L.length,R=D.length,v=(_=new C(k)).d=[],p=0;L[p]==(D[p]||0);p++);if(L[p]>(D[p]||0)&&d--,null==a?(O=a=C.precision,o=C.rounding):O=c?a+(n.e-i.e)+1:a,O<0)v.push(1),g=!0;else{if(O=O/f+2|0,p=0,1==I){for(h=0,L=L[0],O++;(p1&&(L=e(L,h,u),D=e(D,h,u),I=L.length,R=D.length),A=I,T=(w=D.slice(0,I)).length;T=u/2&&++P;do{h=0,(l=t(L,w,I,T))<0?(E=w[0],I!=T&&(E=E*u+(w[1]||0)),(h=E/P|0)>1?(h>=u&&(h=u-1),1==(l=t(y=e(L,h,u),w,b=y.length,T=w.length))&&(h--,r(y,I=10;h/=10)p++;_.e=p+d*f-1,N(_,c?a+_.e+1:a,o,g)}return _}}();function N(e,t,r,n){var i,a,s,o,c,u,l,d,p,f=e.constructor;e:if(null!=t){if(!(d=e.d))return e;for(i=1,o=d[0];o>=10;o/=10)i++;if((a=t-i)<0)a+=7,s=t,c=(l=d[p=0])/y(10,i-s-1)%10|0;else if((p=Math.ceil((a+1)/7))>=(o=d.length)){if(!n)break e;for(;o++<=p;)d.push(0);l=c=0,i=1,s=(a%=7)-7+1}else{for(l=o=d[p],i=1;o>=10;o/=10)i++;c=(s=(a%=7)-7+i)<0?0:l/y(10,i-s-1)%10|0}if(n=n||t<0||void 0!==d[p+1]||(s<0?l:l%y(10,i-s-1)),u=r<4?(c||n)&&(0==r||r==(e.s<0?3:2)):c>5||5==c&&(4==r||n||6==r&&(a>0?s>0?l/y(10,i-s):0:d[p-1])%10&1||r==(e.s<0?8:7)),t<1||!d[0])return d.length=0,u?(t-=e.e+1,d[0]=y(10,(7-t%7)%7),e.e=-t||0):d[0]=e.e=0,e;if(0==a?(d.length=p,o=1,p--):(d.length=p+1,o=y(10,7-a),d[p]=s>0?(l/y(10,i-s)%y(10,s)|0)*o:0),u)for(;;){if(0==p){for(a=1,s=d[0];s>=10;s/=10)a++;for(s=d[0]+=o,o=1;s>=10;s/=10)o++;a!=o&&(e.e++,d[0]==S&&(d[0]=1));break}if(d[p]+=o,d[p]!=S)break;d[p--]=0,o=1}for(a=d.length;0===d[--a];)d.pop()}return h&&(e.e>f.maxE?(e.d=null,e.e=NaN):e.e0?a=a.charAt(0)+"."+a.slice(1)+M(n):s>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(e.e<0?"e":"e+")+e.e):i<0?(a="0."+M(-i-1)+a,r&&(n=r-s)>0&&(a+=M(n))):i>=s?(a+=M(i+1-s),r&&(n=r-i-1)>0&&(a=a+"."+M(n))):((n=i+1)0&&(i+1===s&&(a+="."),a+=M(n))),a}function C(e,t){var r=e[0];for(t*=7;r>=10;r/=10)t++;return t}function k(e,t,r){if(t>T)throw h=!0,r&&(e.precision=r),Error("[DecimalError] Precision limit exceeded");return N(new e(l),t,1,!0)}function D(e,t,r){if(t>E)throw Error("[DecimalError] Precision limit exceeded");return N(new e(d),t,r,!0)}function L(e){var t=e.length-1,r=7*t+1;if(t=e[t]){for(;t%10==0;t/=10)r--;for(t=e[0];t>=10;t/=10)r++}return r}function M(e){for(var t="";e--;)t+="0";return t}function F(e,t,r,n){var i,a=new e(1),s=Math.ceil(n/7+4);for(h=!1;;){if(r%2&&K((a=a.times(t)).d,s)&&(i=!0),0===(r=m(r/2))){r=a.d.length-1,i&&0===a.d[r]&&++a.d[r];break}K((t=t.times(t)).d,s)}return h=!0,a}function q(e){return 1&e.d[e.d.length-1]}function B(e,t,r){for(var n,i=new e(t[0]),a=0;++a17)return new p(e.d?e.d[0]?e.s<0?0:1/0:1:e.s?e.s<0?0:e:NaN);for(null==t?(h=!1,c=g):c=t,o=new p(.03125);e.e>-2;)e=e.times(o),d+=5;for(c+=n=Math.log(y(2,d))/Math.LN10*2+5|0,r=a=s=new p(1),p.precision=c;;){if(a=N(a.times(e),c,1),r=r.times(++l),x((o=s.plus(I(a,r,c,1))).d).slice(0,c)===x(s.d).slice(0,c)){for(i=d;i--;)s=N(s.times(s),c,1);if(null!=t)return p.precision=g,s;if(!(u<3&&R(s.d,c-n,f,u)))return N(s,p.precision=g,f,h=!0);p.precision=c+=10,r=a=o=new p(1),l=0,u++}s=o}}function V(e,t){var r,n,i,a,s,o,c,u,l,d,p,f=1,g=e,m=g.d,y=g.constructor,b=y.rounding,_=y.precision;if(g.s<0||!m||!m[0]||!g.e&&1==m[0]&&1==m.length)return new y(m&&!m[0]?-1/0:1!=g.s?NaN:m?0:g);if(null==t?(h=!1,l=_):l=t,y.precision=l+=10,n=(r=x(m)).charAt(0),!(Math.abs(a=g.e)<15e14))return u=k(y,l+2,_).times(a+""),g=V(new y(n+"."+r.slice(1)),l-10).plus(u),y.precision=_,null==t?N(g,_,b,h=!0):g;for(;n<7&&1!=n||1==n&&r.charAt(1)>3;)n=(r=x((g=g.times(e)).d)).charAt(0),f++;for(a=g.e,n>1?(g=new y("0."+r),a++):g=new y(n+"."+r.slice(1)),d=g,c=s=g=I(g.minus(1),g.plus(1),l,1),p=N(g.times(g),l,1),i=3;;){if(s=N(s.times(p),l,1),x((u=c.plus(I(s,new y(i),l,1))).d).slice(0,l)===x(c.d).slice(0,l)){if(c=c.times(2),0!==a&&(c=c.plus(k(y,l+2,_).times(a+""))),c=I(c,new y(f),l,1),null!=t)return y.precision=_,c;if(!R(c.d,l-10,b,o))return N(c,y.precision=_,b,h=!0);y.precision=l+=10,u=s=g=I(d.minus(1),d.plus(1),l,1),p=N(g.times(g),l,1),i=o=1}c=u,i+=2}}function H(e){return String(e.s*e.s/0)}function G(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;48===t.charCodeAt(n);n++);for(i=t.length;48===t.charCodeAt(i-1);--i);if(t=t.slice(n,i)){if(i-=n,e.e=r=r-n-1,e.d=[],n=(r+1)%7,r<0&&(n+=7),ne.constructor.maxE?(e.d=null,e.e=NaN):e.e-1){if(t=t.replace(/(\d)_(?=\d)/g,"$1"),w.test(t))return G(e,t)}else if("Infinity"===t||"NaN"===t)return+t||(e.s=NaN),e.e=NaN,e.d=null,e;if(_.test(t))r=16,t=t.toLowerCase();else if(b.test(t))r=2;else{if(!v.test(t))throw Error(f+t);r=8}for((s=t.search(/p/i))>0?(u=+t.slice(s+1),t=t.substring(2,s)):t=t.slice(2),o=(s=t.indexOf("."))>=0,n=e.constructor,o&&(s=(c=(t=t.replace(".","")).length)-s,i=F(n,new n(r),s,2*s)),s=d=(l=P(t,r,S)).length-1;0===l[s];--s)l.pop();return s<0?new n(0*e.s):(e.e=C(l,d),e.d=l,h=!1,o&&(e=I(e,i,4*c)),u&&(e=e.times(Math.abs(u)<54?y(2,u):a.pow(2,u))),h=!0,e)}function Q(e,t,r,n,i){var a,s,o,c,u=e.precision,l=Math.ceil(u/7);for(h=!1,c=r.times(r),o=new e(n);;){if(s=I(o.times(c),new e(t++*t++),u,1),o=i?n.plus(s):n.minus(s),n=I(s.times(c),new e(t++*t++),u,1),void 0!==(s=o.plus(n)).d[l]){for(a=l;s.d[a]===o.d[a]&&a--;);if(-1==a)break}a=o,o=n,n=s,s=a}return h=!0,s.d.length=l+1,s}function $(e,t){for(var r=e;--t;)r*=e;return r}function X(e,t){var r,n=t.s<0,i=D(e,e.precision,1),a=i.times(.5);if((t=t.abs()).lte(a))return o=n?4:1,t;if((r=t.divToInt(i)).isZero())o=n?3:2;else{if((t=t.minus(r.times(i))).lte(a))return o=q(r)?n?2:3:n?4:1,t;o=q(r)?n?1:4:n?3:2}return t.minus(i).abs()}function Y(e,t,r,n){var i,a,o,c,l,d,p,h,f,g=e.constructor,m=void 0!==r;if(m?(A(r,1,1e9),void 0===n?n=g.rounding:A(n,0,8)):(r=g.precision,n=g.rounding),e.isFinite()){for(m?(i=2,16==t?r=4*r-3:8==t&&(r=3*r-2)):i=t,(o=(p=j(e)).indexOf("."))>=0&&(p=p.replace(".",""),(f=new g(1)).e=p.length-o,f.d=P(j(f),10,i),f.e=f.d.length),a=l=(h=P(p,10,i)).length;0==h[--l];)h.pop();if(h[0]){if(o<0?a--:((e=new g(e)).d=h,e.e=a,h=(e=I(e,f,r,n,0,i)).d,a=e.e,d=s),o=h[r],c=i/2,d=d||void 0!==h[r+1],d=n<4?(void 0!==o||d)&&(0===n||n===(e.s<0?3:2)):o>c||o===c&&(4===n||d||6===n&&1&h[r-1]||n===(e.s<0?8:7)),h.length=r,d)for(;++h[--r]>i-1;)h[r]=0,r||(++a,h.unshift(1));for(l=h.length;!h[l-1];--l);for(o=0,p="";o1)if(16==t||8==t){for(o=16==t?4:3,--l;l%o;l++)p+="0";for(l=(h=P(p,i,t)).length;!h[l-1];--l);for(o=1,p="1.";ol)for(a-=l;a--;)p+="0";else at)return e.length=t,!0}function J(e){return new this(e).abs()}function W(e){return new this(e).acos()}function Z(e){return new this(e).acosh()}function ee(e,t){return new this(e).plus(t)}function te(e){return new this(e).asin()}function re(e){return new this(e).asinh()}function ne(e){return new this(e).atan()}function ie(e){return new this(e).atanh()}function ae(e,t){e=new this(e),t=new this(t);var r,n=this.precision,i=this.rounding,a=n+4;return e.s&&t.s?e.d||t.d?!t.d||e.isZero()?(r=t.s<0?D(this,n,i):new this(0)).s=e.s:!e.d||t.isZero()?(r=D(this,a,1).times(.5)).s=e.s:t.s<0?(this.precision=a,this.rounding=1,r=this.atan(I(e,t,a,1)),t=D(this,a,1),this.precision=n,this.rounding=i,r=e.s<0?r.minus(t):r.plus(t)):r=this.atan(I(e,t,a,1)):(r=D(this,a,1).times(t.s>0?.25:.75)).s=e.s:r=new this(NaN),r}function se(e){return new this(e).cbrt()}function oe(e){return N(e=new this(e),e.e+1,2)}function ce(e,t,r){return new this(e).clamp(t,r)}function ue(e){if(!e||"object"!=typeof e)throw Error("[DecimalError] Object expected");var t,r,n,i=!0===e.defaults,a=["precision",1,1e9,"rounding",0,8,"toExpNeg",-c,0,"toExpPos",0,c,"maxE",0,c,"minE",-c,0,"modulo",0,9];for(t=0;t=a[t+1]&&n<=a[t+2]))throw Error(f+r+": "+n);this[r]=n}if(r="crypto",i&&(this[r]=p[r]),void 0!==(n=e[r])){if(!0!==n&&!1!==n&&0!==n&&1!==n)throw Error(f+r+": "+n);if(n){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw Error("[DecimalError] crypto unavailable");this[r]=!0}else this[r]=!1}return this}function le(e){return new this(e).cos()}function de(e){return new this(e).cosh()}function pe(e,t){return new this(e).div(t)}function he(e){return new this(e).exp()}function fe(e){return N(e=new this(e),e.e+1,3)}function ge(){var e,t,r=new this(0);for(h=!1,e=0;e=429e7?t[a]=crypto.getRandomValues(new Uint32Array(1))[0]:o[a++]=i%1e7;else{if(!crypto.randomBytes)throw Error("[DecimalError] crypto unavailable");for(t=crypto.randomBytes(n*=4);a=214e7?crypto.randomBytes(4).copy(t,a):(o.push(i%1e7),a+=4);a=n/4}else for(;a=10;i/=10)n++;n<7&&(r-=7-n)}return s.e=r,s.d=o,s}function Ae(e){return N(e=new this(e),e.e+1,this.rounding)}function Re(e){return(e=new this(e)).d?e.d[0]?e.s:0*e.s:e.s||NaN}function Pe(e){return new this(e).sin()}function Ie(e){return new this(e).sinh()}function Ne(e){return new this(e).sqrt()}function je(e,t){return new this(e).sub(t)}function Ce(){var e=0,t=arguments,r=new this(t[e]);for(h=!1;r.s&&++ea.maxE?(i.e=NaN,i.d=null):e.e=10;r/=10)t++;return void(h?t>a.maxE?(i.e=NaN,i.d=null):t>>25)+n|0)&n|~r&i)+t[1]-389564586|0)<<12|a>>>20)+r|0)&r|~a&n)+t[2]+606105819|0)<<17|i>>>15)+a|0)&a|~i&r)+t[3]-1044525330|0)<<22|n>>>10)+i|0,n=((n+=((i=((i+=((a=((a+=((r=((r+=(n&i|~n&a)+t[4]-176418897|0)<<7|r>>>25)+n|0)&n|~r&i)+t[5]+1200080426|0)<<12|a>>>20)+r|0)&r|~a&n)+t[6]-1473231341|0)<<17|i>>>15)+a|0)&a|~i&r)+t[7]-45705983|0)<<22|n>>>10)+i|0,n=((n+=((i=((i+=((a=((a+=((r=((r+=(n&i|~n&a)+t[8]+1770035416|0)<<7|r>>>25)+n|0)&n|~r&i)+t[9]-1958414417|0)<<12|a>>>20)+r|0)&r|~a&n)+t[10]-42063|0)<<17|i>>>15)+a|0)&a|~i&r)+t[11]-1990404162|0)<<22|n>>>10)+i|0,n=((n+=((i=((i+=((a=((a+=((r=((r+=(n&i|~n&a)+t[12]+1804603682|0)<<7|r>>>25)+n|0)&n|~r&i)+t[13]-40341101|0)<<12|a>>>20)+r|0)&r|~a&n)+t[14]-1502002290|0)<<17|i>>>15)+a|0)&a|~i&r)+t[15]+1236535329|0)<<22|n>>>10)+i|0,n=((n+=((i=((i+=((a=((a+=((r=((r+=(n&a|i&~a)+t[1]-165796510|0)<<5|r>>>27)+n|0)&i|n&~i)+t[6]-1069501632|0)<<9|a>>>23)+r|0)&n|r&~n)+t[11]+643717713|0)<<14|i>>>18)+a|0)&r|a&~r)+t[0]-373897302|0)<<20|n>>>12)+i|0,n=((n+=((i=((i+=((a=((a+=((r=((r+=(n&a|i&~a)+t[5]-701558691|0)<<5|r>>>27)+n|0)&i|n&~i)+t[10]+38016083|0)<<9|a>>>23)+r|0)&n|r&~n)+t[15]-660478335|0)<<14|i>>>18)+a|0)&r|a&~r)+t[4]-405537848|0)<<20|n>>>12)+i|0,n=((n+=((i=((i+=((a=((a+=((r=((r+=(n&a|i&~a)+t[9]+568446438|0)<<5|r>>>27)+n|0)&i|n&~i)+t[14]-1019803690|0)<<9|a>>>23)+r|0)&n|r&~n)+t[3]-187363961|0)<<14|i>>>18)+a|0)&r|a&~r)+t[8]+1163531501|0)<<20|n>>>12)+i|0,n=((n+=((i=((i+=((a=((a+=((r=((r+=(n&a|i&~a)+t[13]-1444681467|0)<<5|r>>>27)+n|0)&i|n&~i)+t[2]-51403784|0)<<9|a>>>23)+r|0)&n|r&~n)+t[7]+1735328473|0)<<14|i>>>18)+a|0)&r|a&~r)+t[12]-1926607734|0)<<20|n>>>12)+i|0,n=((n+=((i=((i+=((a=((a+=((r=((r+=(n^i^a)+t[5]-378558|0)<<4|r>>>28)+n|0)^n^i)+t[8]-2022574463|0)<<11|a>>>21)+r|0)^r^n)+t[11]+1839030562|0)<<16|i>>>16)+a|0)^a^r)+t[14]-35309556|0)<<23|n>>>9)+i|0,n=((n+=((i=((i+=((a=((a+=((r=((r+=(n^i^a)+t[1]-1530992060|0)<<4|r>>>28)+n|0)^n^i)+t[4]+1272893353|0)<<11|a>>>21)+r|0)^r^n)+t[7]-155497632|0)<<16|i>>>16)+a|0)^a^r)+t[10]-1094730640|0)<<23|n>>>9)+i|0,n=((n+=((i=((i+=((a=((a+=((r=((r+=(n^i^a)+t[13]+681279174|0)<<4|r>>>28)+n|0)^n^i)+t[0]-358537222|0)<<11|a>>>21)+r|0)^r^n)+t[3]-722521979|0)<<16|i>>>16)+a|0)^a^r)+t[6]+76029189|0)<<23|n>>>9)+i|0,n=((n+=((i=((i+=((a=((a+=((r=((r+=(n^i^a)+t[9]-640364487|0)<<4|r>>>28)+n|0)^n^i)+t[12]-421815835|0)<<11|a>>>21)+r|0)^r^n)+t[15]+530742520|0)<<16|i>>>16)+a|0)^a^r)+t[2]-995338651|0)<<23|n>>>9)+i|0,n=((n+=((a=((a+=(n^((r=((r+=(i^(n|~a))+t[0]-198630844|0)<<6|r>>>26)+n|0)|~i))+t[7]+1126891415|0)<<10|a>>>22)+r|0)^((i=((i+=(r^(a|~n))+t[14]-1416354905|0)<<15|i>>>17)+a|0)|~r))+t[5]-57434055|0)<<21|n>>>11)+i|0,n=((n+=((a=((a+=(n^((r=((r+=(i^(n|~a))+t[12]+1700485571|0)<<6|r>>>26)+n|0)|~i))+t[3]-1894986606|0)<<10|a>>>22)+r|0)^((i=((i+=(r^(a|~n))+t[10]-1051523|0)<<15|i>>>17)+a|0)|~r))+t[1]-2054922799|0)<<21|n>>>11)+i|0,n=((n+=((a=((a+=(n^((r=((r+=(i^(n|~a))+t[8]+1873313359|0)<<6|r>>>26)+n|0)|~i))+t[15]-30611744|0)<<10|a>>>22)+r|0)^((i=((i+=(r^(a|~n))+t[6]-1560198380|0)<<15|i>>>17)+a|0)|~r))+t[13]+1309151649|0)<<21|n>>>11)+i|0,n=((n+=((a=((a+=(n^((r=((r+=(i^(n|~a))+t[4]-145523070|0)<<6|r>>>26)+n|0)|~i))+t[11]-1120210379|0)<<10|a>>>22)+r|0)^((i=((i+=(r^(a|~n))+t[2]+718787259|0)<<15|i>>>17)+a|0)|~r))+t[9]-343485551|0)<<21|n>>>11)+i|0,e[0]=r+e[0]|0,e[1]=n+e[1]|0,e[2]=i+e[2]|0,e[3]=a+e[3]|0}function n(e){var t,r=[];for(t=0;t<64;t+=4)r[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return r}function i(e){var t,r=[];for(t=0;t<64;t+=4)r[t>>2]=e[t]+(e[t+1]<<8)+(e[t+2]<<16)+(e[t+3]<<24);return r}function a(e){var t,i,a,s,o,c,u=e.length,l=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=u;t+=64)r(l,n(e.substring(t-64,t)));for(i=(e=e.substring(t-64)).length,a=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],t=0;t>2]|=e.charCodeAt(t)<<(t%4<<3);if(a[t>>2]|=128<<(t%4<<3),t>55)for(r(l,a),t=0;t<16;t+=1)a[t]=0;return s=(s=8*u).toString(16).match(/(.*?)(.{0,8})$/),o=parseInt(s[2],16),c=parseInt(s[1],16)||0,a[14]=o,a[15]=c,r(l,a),l}function s(e){var r,n="";for(r=0;r<4;r+=1)n+=t[e>>8*r+4&15]+t[e>>8*r&15];return n}function o(e){var t;for(t=0;tl?new ArrayBuffer(0):(i=l-u,a=new ArrayBuffer(i),s=new Uint8Array(a),o=new Uint8Array(this,u,i),s.set(o),a)}}(),l.prototype.append=function(e){return this.appendBinary(c(e)),this},l.prototype.appendBinary=function(e){this._buff+=e,this._length+=e.length;var t,i=this._buff.length;for(t=64;t<=i;t+=64)r(this._hash,n(this._buff.substring(t-64,t)));return this._buff=this._buff.substring(t-64),this},l.prototype.end=function(e){var t,r,n=this._buff,i=n.length,a=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t>2]|=n.charCodeAt(t)<<(t%4<<3);return this._finish(a,i),r=o(this._hash),e&&(r=u(r)),this.reset(),r},l.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},l.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},l.prototype.setState=function(e){return this._buff=e.buff,this._length=e.length,this._hash=e.hash,this},l.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},l.prototype._finish=function(e,t){var n,i,a,s=t;if(e[s>>2]|=128<<(s%4<<3),s>55)for(r(this._hash,e),s=0;s<16;s+=1)e[s]=0;n=(n=8*this._length).toString(16).match(/(.*?)(.{0,8})$/),i=parseInt(n[2],16),a=parseInt(n[1],16)||0,e[14]=i,e[15]=a,r(this._hash,e)},l.hash=function(e,t){return l.hashBinary(c(e),t)},l.hashBinary=function(e,t){var r=o(a(e));return t?u(r):r},l.ArrayBuffer=function(){this.reset()},l.ArrayBuffer.prototype.append=function(e){var t,n,a,s,o,c=(n=this._buff.buffer,a=e,s=!0,(o=new Uint8Array(n.byteLength+a.byteLength)).set(new Uint8Array(n)),o.set(new Uint8Array(a),n.byteLength),s?o:o.buffer),u=c.length;for(this._length+=e.byteLength,t=64;t<=u;t+=64)r(this._hash,i(c.subarray(t-64,t)));return this._buff=t-64>2]|=n[t]<<(t%4<<3);return this._finish(a,i),r=o(this._hash),e&&(r=u(r)),this.reset(),r},l.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},l.ArrayBuffer.prototype.getState=function(){var e,t=l.prototype.getState.call(this);return t.buff=(e=t.buff,String.fromCharCode.apply(null,new Uint8Array(e))),t},l.ArrayBuffer.prototype.setState=function(e){return e.buff=function(e,t){var r,n=e.length,i=new ArrayBuffer(n),a=new Uint8Array(i);for(r=0;r>2]|=e[t]<<(t%4<<3);if(a[t>>2]|=128<<(t%4<<3),t>55)for(r(l,a),t=0;t<16;t+=1)a[t]=0;return s=(s=8*u).toString(16).match(/(.*?)(.{0,8})$/),o=parseInt(s[2],16),c=parseInt(s[1],16)||0,a[14]=o,a[15]=c,r(l,a),l}(new Uint8Array(e)));return t?u(n):n},l}()},function(e,t,r){"use strict";function n(e){return"*"===e}function i(e,t){return new RegExp(`/${e}/`,"iu").test(`/${t}/`)}Object.defineProperty(t,"__esModule",{value:!0}),t.formatDayTimeDuration=t.langMatches=t.replace=t.matches=void 0,t.matches=function(e,t,r){return new RegExp(t,r).test(e)},t.replace=function(e,t,r,n){let i=new RegExp(t,n);if(!i.global){i=new RegExp(t,(n||"")+"g")}return e.replace(i,r)},t.langMatches=function(e,t){const r=e.split("-"),a=t.split("-");if(!i(a[0],r[0])&&!n(r[0]))return!1;let s=1,o=1;for(;ol({args:e,mapping:t}),applySync:({args:e,mapping:t})=>l({args:e,mapping:t})},p={arity:3,async applyAsync({args:e,mapping:t,evaluate:r}){const n=await r(e[0],t);return r(n.coerceEBV()?e[1]:e[2],t)},applySync({args:e,mapping:t,evaluate:r}){const n=r(e[0],t);return r(n.coerceEBV()?e[1]:e[2],t)}},h={arity:Number.POSITIVE_INFINITY,async applyAsync({args:e,mapping:t,evaluate:r}){const n=[];for(const i of e)try{return await r(i,t)}catch(e){n.push(e)}throw new o.CoalesceError(n)},applySync({args:e,mapping:t,evaluate:r}){const n=[];for(const i of e)try{return r(i,t)}catch(e){n.push(e)}throw new o.CoalesceError(n)}},f={arity:2,async applyAsync({args:e,mapping:t,evaluate:r}){const[n,i]=e;try{const e=await r(n,t);if(e.coerceEBV())return(0,c.bool)(!0);const a=(await r(i,t)).coerceEBV();return(0,c.bool)(a)}catch(e){if(!(await r(i,t)).coerceEBV())throw e;return(0,c.bool)(!0)}},applySync({args:e,mapping:t,evaluate:r}){const[n,i]=e;try{const e=r(n,t);if(e.coerceEBV())return(0,c.bool)(!0);const a=r(i,t).coerceEBV();return(0,c.bool)(a)}catch(e){if(!r(i,t).coerceEBV())throw e;return(0,c.bool)(!0)}}},g={arity:2,async applyAsync({args:e,mapping:t,evaluate:r}){const[n,i]=e;try{const e=await r(n,t);if(!e.coerceEBV())return(0,c.bool)(!1);const a=(await r(i,t)).coerceEBV();return(0,c.bool)(a)}catch(e){if((await r(i,t)).coerceEBV())throw e;return(0,c.bool)(!1)}},applySync({args:e,mapping:t,evaluate:r}){const[n,i]=e;try{const e=r(n,t);if(!e.coerceEBV())return(0,c.bool)(!1);const a=r(i,t).coerceEBV();return(0,c.bool)(a)}catch(e){if(r(i,t).coerceEBV())throw e;return(0,c.bool)(!1)}}},m={arity:2,async applyAsync({args:e,mapping:t,evaluate:r}){const[n,i]=e.map(e=>r(e,t)),a=await n,s=await i;return(0,c.bool)(a.toRDF().equals(s.toRDF()))},applySync({args:e,mapping:t,evaluate:r}){const[n,i]=e.map(e=>r(e,t));return(0,c.bool)(n.toRDF().equals(i.toRDF()))}},y={arity:Number.POSITIVE_INFINITY,checkArity:e=>e.length>0,async applyAsync({args:e,mapping:t,evaluate:r,context:n}){const[i,...a]=e;return async function e(t,{args:r,mapping:n,evaluate:i,context:a},l){if(0===r.length){return l.every(e=>!e)?(0,c.bool)(!1):Promise.reject(new o.InError(l))}try{const o=await i(r.shift(),n);return u.regularFunctions[s.RegularOperator.EQUAL].apply([t,o]).typedValue?(0,c.bool)(!0):e(t,{args:r,mapping:n,evaluate:i,context:a},[...l,!1])}catch(s){return e(t,{args:r,mapping:n,evaluate:i,context:a},[...l,s])}}(await r(i,t),{args:a,mapping:t,evaluate:r,context:n},[])},applySync({args:e,mapping:t,evaluate:r,context:n}){const[i,...a]=e;return function e(t,{args:r,mapping:n,evaluate:i,context:a},l){if(0===r.length){if(l.every(e=>!e))return(0,c.bool)(!1);throw new o.InError(l)}try{const o=i(r.shift(),n);return u.regularFunctions[s.RegularOperator.EQUAL].apply([t,o]).typedValue?(0,c.bool)(!0):e(t,{args:r,mapping:n,evaluate:i,context:a},[...l,!1])}catch(s){return e(t,{args:r,mapping:n,evaluate:i,context:a},[...l,s])}}(r(i,t),{args:a,mapping:t,evaluate:r,context:n},[])}};const b={arity:Number.POSITIVE_INFINITY,checkArity:e=>e.length>0,async applyAsync(e){const t=u.specialFunctions[s.SpecialOperator.IN],r=await t.applyAsync(e);return(0,c.bool)(!r.typedValue)},applySync(e){const t=u.specialFunctions[s.SpecialOperator.IN].applySync(e);return(0,c.bool)(!t.typedValue)}},_={arity:Number.POSITIVE_INFINITY,async applyAsync({args:e,evaluate:t,mapping:r}){const n=e.map(async e=>t(e,r)).map(async t=>(0,c.typeCheckLit)(await t,["string","langString"],e,s.SpecialOperator.CONCAT)),i=await Promise.all(n),a=i.map(e=>e.typedValue).join(""),o=v(i)?i[0].language:void 0;return o?(0,c.langString)(a,o):(0,c.string)(a)},applySync({args:e,evaluate:t,mapping:r}){const n=e.map(e=>t(e,r)).map(t=>(0,c.typeCheckLit)(t,["string","langString"],e,s.SpecialOperator.CONCAT)),i=n.map(e=>e.typedValue).join(""),a=v(n)?n[0].language:void 0;return a?(0,c.langString)(i,a):(0,c.string)(i)}};function v(e){return e.length>0&&e.every(t=>t.language===e[0].language)}const w={arity:0,applyAsync:async({context:e})=>new a.DateTimeLiteral(e.now,e.now.toISOString()),applySync:({context:e})=>new a.DateTimeLiteral(e.now,e.now.toISOString())},S={arity:1,applyAsync:async({args:e,evaluate:t,mapping:r,context:n})=>T(await t(e[0],r),n.baseIRI,e),applySync:({args:e,evaluate:t,mapping:r,context:n})=>T(t(e[0],r),n.baseIRI,e)};function T(e,t,r){const i="namedNode"!==e.termType?(0,c.typeCheckLit)(e,["string"],r,s.SpecialOperator.IRI):e,o=(0,n.resolve)(i.str(),t||"");return new a.NamedNode(o)}const E={arity:Number.POSITIVE_INFINITY,checkArity:e=>0===e.length||1===e.length,async applyAsync({args:e,evaluate:t,mapping:r,context:n}){const i=1===e.length?await t(e[0],r):void 0,o=i?(0,c.typeCheckLit)(i,["string"],e,s.SpecialOperator.BNODE).str():void 0;if(n.bnode){const e=await n.bnode(o);return new a.BlankNode(e)}return O(o)},applySync({args:e,evaluate:t,mapping:r,context:n}){const i=1===e.length?t(e[0],r):void 0,o=i?(0,c.typeCheckLit)(i,["string"],e,s.SpecialOperator.BNODE).str():void 0;if(n.bnode){const e=n.bnode(o);return new a.BlankNode(e)}return O(o)}};function O(e){return new a.BlankNode(e||i.v4())}t.specialDefinitions={bound:d,if:p,coalesce:h,"&&":g,"||":f,sameterm:m,in:y,notin:b,concat:_,now:w,iri:S,uri:S,BNODE:E}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AggregateEvaluator=void 0;const n=r(221),i=r(220);class a extends n.BaseAggregateEvaluator{constructor(e,t,r){super(e,r),this.evaluator=new i.SyncEvaluator(e.expression,t)}put(e){this.init(e)}__put(e){try{const t=this.evaluator.evaluate(e);this.state=this.aggregator.put(this.state,t)}catch(e){this.safeThrow(e)}}safeThrow(e){if(this.throwError)throw e;this.put=()=>{},this.result=()=>{}}init(e){try{const t=this.evaluator.evaluate(e);this.state=this.aggregator.init(t),this.state&&(this.put=this.__put.bind(this),this.result=this.__result.bind(this))}catch(e){this.safeThrow(e)}}}t.AggregateEvaluator=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.aggregators=t.BaseAggregator=void 0;const n=r(5),i=r(47),a=r(100),s=r(72),o=r(46),c=r(17),u=r(17),l=r(71),d=new n.DataFactory;class p{constructor(e){this.distinct=e.distinct,this.separator=e.separator||" "}static emptyValue(){}}t.BaseAggregator=p;function h(e){if("Literal"!==e.termType)throw new Error(`Term with value ${e.value} has type ${e.termType} and is not a numeric literal`);if(!c.NumericTypeURLs.has(e.datatype.value))throw new Error(`Term datatype ${e.datatype.value} with value ${e.value} has type ${e.termType} and is not a numeric literal`);return{type:e.datatype.value,value:(0,l.parseXSDFloat)(e.value)}}function f(e,t){if("Literal"!==t.termType)throw new Error(`Term with value ${t.value} has type ${t.termType} and is not a literal`);const r=(0,o.transformLiteral)(t);return{type:r.typeURL.value,value:r.typedValue}}t.aggregators={count:class extends p{static emptyValue(){return(0,s.number)(0,u.TypeURL.XSD_INTEGER).toRDF()}init(e){return 1}put(e,t){return e+1}result(e){return(0,s.number)(e,u.TypeURL.XSD_INTEGER).toRDF()}},sum:class extends p{constructor(){super(...arguments),this.summer=a.regularFunctions[c.RegularOperator.ADDITION]}static emptyValue(){return(0,s.number)(0,u.TypeURL.XSD_INTEGER).toRDF()}init(e){const{value:t,type:r}=h(e);return new i.NumericLiteral(t,d.namedNode(r))}put(e,t){const{value:r,type:n}=h(t),a=new i.NumericLiteral(r,d.namedNode(n));return this.summer.apply([e,a])}result(e){return e.toRDF()}},min:class extends p{init(e){const{value:t}=f(null,e);if("Literal"===e.termType)return{extremeValue:t,term:e}}put(e,t){const r=f(e.term,t);return r.valuee.extremeValue&&"Literal"===t.termType?{extremeValue:r.value,term:t}:e}result(e){return e.term}},avg:class extends p{constructor(){super(...arguments),this.summer=a.regularFunctions[c.RegularOperator.ADDITION],this.divider=a.regularFunctions[c.RegularOperator.DIVISION]}static emptyValue(){return(0,s.number)(0,u.TypeURL.XSD_INTEGER).toRDF()}init(e){const{value:t,type:r}=h(e);return{sum:new i.NumericLiteral(t,d.namedNode(r)),count:1}}put(e,t){const{value:r,type:n}=h(t),a=new i.NumericLiteral(r,d.namedNode(n));return{sum:this.summer.apply([e.sum,a]),count:e.count+1}}result(e){const t=new i.NumericLiteral(e.count,d.namedNode(c.TypeURL.XSD_INTEGER));return this.divider.apply([e.sum,t]).toRDF()}},group_concat:class extends p{static emptyValue(){return(0,s.string)("").toRDF()}init(e){return e.value}put(e,t){return e+this.separator+t.value}result(e){return(0,s.string)(e).toRDF()}},sample:class extends p{init(e){return e}put(e,t){return e}result(e){return e}}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.order=t.orderTypes=void 0;const n=r(46);function i(e,t,r){return e.typedValue===t.typedValue?0:e.typedValue>t.typedValue===r?1:-1}t.orderTypes=function(e,t,r){if(e&&"Literal"===e.termType&&t&&"Literal"===t.termType){return i((0,n.transformLiteral)(e),(0,n.transformLiteral)(t),r)}return 0},t.order=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AsyncAggregateEvaluator=void 0;const n=r(218),i=r(221);class a extends i.BaseAggregateEvaluator{constructor(e,t,r){super(e,r),this.evaluator=new n.AsyncEvaluator(e.expression,t),this.errorOccurred=!1}put(e){return this.init(e)}async __put(e){try{const t=await this.evaluator.evaluate(e);this.state=this.aggregator.put(this.state,t)}catch(e){this.safeThrow(e)}}safeThrow(e){if(this.throwError)throw e;this.put=async()=>{},this.result=()=>{},this.errorOccurred=!0}async init(e){try{const t=await this.evaluator.evaluate(e);if(!t||this.errorOccurred)return;if(this.state)return void(this.state=this.aggregator.put(this.state,t));this.state=this.aggregator.init(t),this.state&&(this.put=this.__put.bind(this),this.result=this.__result.bind(this))}catch(e){this.safeThrow(e)}}}t.AsyncAggregateEvaluator=a},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(644),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ActorQueryOperationReducedHash=void 0;const n=r(99),i=r(70);class a extends n.AbstractBindingsHash{constructor(e){super(e,"reduced")}newHashFilter(){const e=new i({max:this.cacheSize});return t=>{const r=n.AbstractFilterHash.hash(t);return!e.has(r)&&e.set(r,!0)}}}t.ActorQueryOperationReducedHash=a},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(646),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ActorQueryOperationFilterSparqlee=void 0;const n=r(1),i=r(58);class a extends n.ActorQueryOperationTypedMediated{constructor(e){super(e,"filter")}async testOperation(e,t){const r=Object.assign({},n.ActorQueryOperation.getAsyncExpressionContext(t,this.mediatorQueryOperation));new i.AsyncEvaluator(e.expression,r);return!0}async runOperation(e,t){const r=await this.mediatorQueryOperation.mediate({operation:e.input,context:t}),a=n.ActorQueryOperation.getSafeBindings(r);n.ActorQueryOperation.validateQueryOutput(a,"bindings");const{variables:s,metadata:o}=a,c=Object.assign({},n.ActorQueryOperation.getAsyncExpressionContext(t,this.mediatorQueryOperation)),u=new i.AsyncEvaluator(e.expression,c),l=a.bindingsStream.transform({transform:async(e,r,n)=>{try{await u.evaluateAsEBV(e)&&n(e)}catch(r){i.isExpressionError(r)?this.logWarn(t,"Error occurred while filtering.",()=>({error:r,bindings:e.toJS()})):l.emit("error",r)}r()}});return{type:"bindings",bindingsStream:l,metadata:o,variables:s,canContainUndefs:a.canContainUndefs}}}t.ActorQueryOperationFilterSparqlee=a},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(648),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ActorQueryOperationFromQuad=void 0;const n=r(1),i=r(6);class a extends n.ActorQueryOperationTypedMediated{constructor(e){super(e,"from")}static copyOperation(e,t){const r={};for(const n of Object.keys(e))Array.isArray(e[n])?r[n]="variables"===n?e[n]:e[n].map(t):a.ALGEBRA_TYPES.includes(e[n].type)?r[n]=t(e[n]):r[n]=e[n];return r}static applyOperationDefaultGraph(e,t){if("bgp"===e.type&&e.patterns.length>0||"path"===e.type){if("bgp"===e.type)return a.joinOperations(e.patterns.map(e=>{if("DefaultGraph"!==e.graph.termType)return a.FACTORY.createBgp([e]);const r=t.map(t=>a.FACTORY.createBgp([a.FACTORY.createPattern(e.subject,e.predicate,e.object,t)]));return a.unionOperations(r)}));if("DefaultGraph"!==e.graph.termType)return e;const r=t.map(t=>a.FACTORY.createPath(e.subject,e.predicate,e.object,t));return a.joinOperations(r)}return a.copyOperation(e,e=>this.applyOperationDefaultGraph(e,t))}static applyOperationNamedGraph(e,t,r){if("bgp"===e.type&&e.patterns.length>0||"path"===e.type){const n="bgp"===e.type?e.patterns[0].graph:e.graph;if("DefaultGraph"===n.termType)return{type:"bgp",patterns:[]};if("Variable"===n.termType){if(1===t.length){const r=t[0],i={};i["?"+n.value]=r;const s=a.FACTORY.createValues([n],[i]),o="bgp"===e.type?a.FACTORY.createBgp(e.patterns.map(e=>a.FACTORY.createPattern(e.subject,e.predicate,e.object,r))):a.FACTORY.createPath(e.subject,e.predicate,e.object,r);return a.FACTORY.createJoin(s,o)}return a.unionOperations(t.map(t=>a.applyOperationNamedGraph(e,[t],r)))}return[...t,...r].some(e=>e.equals(n))?e:{type:"bgp",patterns:[]}}return a.copyOperation(e,e=>this.applyOperationNamedGraph(e,t,r))}static joinOperations(e){if(1===e.length)return e[0];if(2===e.length)return a.FACTORY.createJoin(e[0],e[1]);if(e.length>2)return a.FACTORY.createJoin(e.shift(),this.joinOperations(e));throw new Error("A join can only be applied on at least one operation")}static unionOperations(e){if(1===e.length)return e[0];if(2===e.length)return a.FACTORY.createUnion(e[0],e[1]);if(e.length>2)return a.FACTORY.createUnion(e.shift(),this.unionOperations(e));throw new Error("A union can only be applied on at least one operation")}static createOperation(e){let t=e.input;return e.default.length>0&&(t=a.applyOperationDefaultGraph(t,e.default)),(e.named.length>0||e.default.length>0)&&(t=a.applyOperationNamedGraph(t,e.named,e.default)),t}async testOperation(e,t){return!0}async runOperation(e,t){const r=a.createOperation(e);return this.mediatorQueryOperation.mediate({operation:r,context:t})}}t.ActorQueryOperationFromQuad=a,a.FACTORY=new i.Factory,a.ALGEBRA_TYPES=Object.keys(i.Algebra.types).map(e=>i.Algebra.types[e])},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(650),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ActorQueryOperationGroup=void 0;const n=r(1),i=r(4),a=r(2),s=r(58),o=r(651);class c extends n.ActorQueryOperationTypedMediated{constructor(e){super(e,"group")}async testOperation(e,t){for(const r of e.aggregates){new s.AsyncEvaluator(r.expression,n.ActorQueryOperation.getAsyncExpressionContext(t))}return!0}async runOperation(e,t){const{input:r,aggregates:s}=e,c=await this.mediatorQueryOperation.mediate({operation:r,context:t}),u=n.ActorQueryOperation.getSafeBindings(c),l=[...e.variables.map(e=>a.termToString(e)),...s.map(e=>a.termToString(e.variable))],d=n.ActorQueryOperation.getAsyncExpressionContext(t);return new Promise((t,r)=>{const n=new o.GroupsState(e,d);u.bindingsStream.on("end",async()=>{try{const e=new i.ArrayIterator(await n.collectResults(),{autoStart:!1}),{metadata:r}=u;t({type:"bindings",bindingsStream:e,metadata:r,variables:l,canContainUndefs:u.canContainUndefs})}catch(e){r(e)}}),u.bindingsStream.on("error",r),u.bindingsStream.on("data",e=>{n.consumeBindings(e).catch(r)})})}}t.ActorQueryOperationGroup=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GroupsState=void 0;const n=r(99),i=r(1),a=r(2),s=r(58);t.GroupsState=class{constructor(e,t){this.pattern=e,this.sparqleeConfig=t,this.groups=new Map,this.groupsInitializer=new Map,this.groupVariables=new Set(this.pattern.variables.map(e=>a.termToString(e))),this.distinctHashes=e.aggregates.some(({distinct:e})=>e)?new Map:null,this.waitCounter=1,this.resultHasBeenCalled=!1}consumeBindings(e){const t=this.resultCheck();if(t)return t;this.waitCounter++;const r=e.filter((e,t)=>this.groupVariables.has(t)).toMap(),n=this.hashBindings(r);let i,o=this.groupsInitializer.get(n);if(o){const t=o;i=(async()=>{const r=await t;await Promise.all(this.pattern.aggregates.map(async t=>{if(t.distinct){const t=this.hashBindings(e);if(this.distinctHashes.get(n).has(t))return;this.distinctHashes.get(n).add(t)}const i=a.termToString(t.variable);await r.aggregators[i].put(e)}))})().then(()=>{this.subtractWaitCounterAndCollect()})}else o=(async()=>{const t={};if(await Promise.all(this.pattern.aggregates.map(async r=>{const n=a.termToString(r.variable);t[n]=new s.AsyncAggregateEvaluator(r,this.sparqleeConfig),await t[n].put(e)})),this.distinctHashes){const t=this.hashBindings(e);this.distinctHashes.set(n,new Set([t]))}const i={aggregators:t,bindings:r};return this.groups.set(n,i),this.subtractWaitCounterAndCollect(),i})(),this.groupsInitializer.set(n,o),i=o;return i}subtractWaitCounterAndCollect(){0==--this.waitCounter&&this.handleResultCollection()}handleResultCollection(){let e=[...this.groups].map(([e,t])=>{const{bindings:r,aggregators:n}=t,i={};for(const e in n){const t=n[e].result();void 0!==t&&(i[e]=t)}return r.merge(i)});if(0===e.length&&0===this.groupVariables.size){const t={};for(const e of this.pattern.aggregates){const r=a.termToString(e.variable),n=s.AsyncAggregateEvaluator.emptyValue(e);void 0!==n&&(t[r]=n)}e=[i.Bindings(t)]}this.waitResolver(e)}resultCheck(){if(this.resultHasBeenCalled)return Promise.reject(new Error("Calling any function after calling collectResult is invalid."))}collectResults(){const e=this.resultCheck();if(e)return e;this.resultHasBeenCalled=!0;const t=new Promise(e=>{this.waitResolver=e});return this.subtractWaitCounterAndCollect(),t}hashBindings(e){return n.AbstractFilterHash.hash(e)}}},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(653),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ActorQueryOperationJoin=void 0;const n=r(1);class i extends n.ActorQueryOperationTypedMediated{constructor(e){super(e,"join")}async testOperation(e,t){return!0}async runOperation(e,t){const r=this.mediatorQueryOperation.mediate({operation:e.left,context:t}),i=this.mediatorQueryOperation.mediate({operation:e.right,context:t});return this.mediatorJoin.mediate({entries:[n.ActorQueryOperation.getSafeBindings(await r),n.ActorQueryOperation.getSafeBindings(await i)]})}}t.ActorQueryOperationJoin=i},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(655),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ActorQueryOperationLeftJoinLeftDeep=void 0;const n=r(1),i=r(64),a=r(4),s=r(6);class o extends n.ActorQueryOperationTypedMediated{constructor(e){super(e,"leftjoin")}static createLeftDeepStream(e,t,r){return new a.MultiTransformIterator(e,{multiTransform(e){const i=t=>t.merge(e);return new a.TransformIterator(async()=>(await r(n.materializeOperation(t,e))).map(i),{maxBufferSize:128})},optional:!0})}async testOperation(e,t){return!0}async runOperation(e,t){const r=n.ActorQueryOperation.getSafeBindings(await this.mediatorQueryOperation.mediate({operation:e.left,context:t})),a=n.ActorQueryOperation.getSafeBindings(await this.mediatorQueryOperation.mediate({operation:e.right,context:t}));a.bindingsStream.close();const s=e.expression?o.FACTORY.createFilter(e.right,e.expression):e.right;return{type:"bindings",bindingsStream:o.createLeftDeepStream(r.bindingsStream,s,async e=>n.ActorQueryOperation.getSafeBindings(await this.mediatorQueryOperation.mediate({operation:e,context:t})).bindingsStream),metadata:()=>Promise.all([r,a].map(e=>n.getMetadata(e))).then(e=>e.reduce((e,t)=>e*t.totalItems,1)).catch(()=>Number.POSITIVE_INFINITY).then(e=>({totalItems:e})),variables:i.ActorRdfJoin.joinVariables({entries:[r,a]}),canContainUndefs:!0}}}t.ActorQueryOperationLeftJoinLeftDeep=o,o.FACTORY=new s.Factory},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(657),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ActorQueryOperationOrderBySparqlee=void 0;const n=r(1),i=r(6),a=r(58),s=r(658);class o extends n.ActorQueryOperationTypedMediated{constructor(e){var t;super(e,"orderby"),this.window=null!==(t=e.window)&&void 0!==t?t:Number.POSITIVE_INFINITY}async testOperation(e,t){for(let r of e.expressions){r=this.extractSortExpression(r);new a.AsyncEvaluator(r,n.ActorQueryOperation.getAsyncExpressionContext(t))}return!0}async runOperation(e,t){const r=await this.mediatorQueryOperation.mediate({operation:e.input,context:t}),i=n.ActorQueryOperation.getSafeBindings(r),o={window:this.window},c=Object.assign({},n.ActorQueryOperation.getAsyncExpressionContext(t));let{bindingsStream:u}=i;for(let t=e.expressions.length-1;t>=0;t--){let r=e.expressions[t];const n=this.isAscending(r);r=this.extractSortExpression(r);const i=new a.AsyncEvaluator(r,c),l=async(e,t,r)=>{try{r({bindings:e,result:await i.evaluate(e)})}catch(t){a.isExpressionError(t)||u.emit("error",t),r({bindings:e,result:void 0})}t()},d=u.transform({transform:l}),p=new s.SortIterator(d,(e,t)=>a.orderTypes(e.result,t.result,n),o);u=p.map(({bindings:e,result:t})=>e)}return{type:"bindings",bindingsStream:u,metadata:i.metadata,variables:i.variables,canContainUndefs:i.canContainUndefs}}extractSortExpression(e){const{expressionType:t,operator:r}=e;return t!==i.Algebra.expressionTypes.OPERATOR?e:"desc"===r?e.args[0]:e}isAscending(e){const{expressionType:t,operator:r}=e;return t!==i.Algebra.expressionTypes.OPERATOR||"desc"!==r}}t.ActorQueryOperationOrderBySparqlee=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SortIterator=void 0;const n=r(4);class i extends n.TransformIterator{constructor(e,t,r){super(e,r);const n=r&&r.window;this.windowLength=Number.isFinite(n)&&n>0?n:Number.POSITIVE_INFINITY,this.sort=t,this.sorted=[]}_read(e,t){let r,{length:n}=this.sorted;for(;n!==this.windowLength&&(r=this.source.read(),null!==r);){let e,t,i=0,a=n-1;for(;i<=a;)e=Math.trunc((i+a)/2),t=this.sort(r,this.sorted[e]),t<0?i=e+1:t>0?a=e-1:(i=e,a=-1);this.sorted.splice(i,0,r),n++}n===this.windowLength&&this._push(this.sorted.pop()),t()}_flush(e){let{length:t}=this.sorted;for(;t--;)this._push(this.sorted.pop());e()}}t.SortIterator=i},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(660),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ActorQueryOperationProject=void 0;const n=r(1),i=r(36),a=r(5),s=r(2),o=new a.DataFactory;class c extends n.ActorQueryOperationTypedMediated{constructor(e){super(e,"project")}async testOperation(e,t){return!0}async runOperation(e,t){const r=n.ActorQueryOperation.getSafeBindings(await this.mediatorQueryOperation.mediate({operation:e.input,context:t})),a=e.variables.map(e=>"Wildcard"===e.termType?"*":s.termToString(e)),c=r.variables.filter(e=>!a.includes(e)),u=a.filter(e=>!r.variables.includes(e)&&"*"!==e);if(u.length>0)throw new Error(`Variables '${u}' are used in the projection result, but are not assigned.`);let l=0===c.length?r.bindingsStream:r.bindingsStream.transform({map(e){for(const t of c)e=e.delete(t);return e},autoStart:!1}),d=0;return l=l.transform({map(e){d++;const t=new Map;return e.map(e=>{if(e instanceof i.BlankNodeBindingsScoped){let r=t.get(e.value);return r||(r=o.blankNode(`${e.value}${d}`),t.set(e.value,r)),r}return e})},autoStart:!1}),{type:"bindings",bindingsStream:l,metadata:r.metadata,variables:a,canContainUndefs:r.canContainUndefs}}}t.ActorQueryOperationProject=c},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(662),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ActorQueryOperationMinus=void 0;const n=r(1),i=r(4),a=r(663);class s extends n.ActorQueryOperationTypedMediated{constructor(e){super(e,"minus")}async testOperation(e,t){return!0}async runOperation(e,t){const r=n.ActorQueryOperation.getSafeBindings(await this.mediatorQueryOperation.mediate({operation:e.right,context:t})),s=n.ActorQueryOperation.getSafeBindings(await this.mediatorQueryOperation.mediate({operation:e.left,context:t})),o=this.getCommonVariables(r.variables,s.variables);if(o.length>0){const e=new a.BindingsIndex(o),t=new i.TransformIterator(async()=>(await new Promise(t=>{r.bindingsStream.on("data",t=>e.add(t)),r.bindingsStream.on("end",t)}),s.bindingsStream.filter(t=>!e.contains(t))),{autoStart:!1}),n=r.canContainUndefs||s.canContainUndefs;return{type:"bindings",bindingsStream:t,variables:s.variables,metadata:s.metadata,canContainUndefs:n}}return s}getCommonVariables(e,t){return Object.keys(e.filter(e=>t.includes(e)).reduce((e,t)=>(e[t]=!0,e),{}))}}t.ActorQueryOperationMinus=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BindingsIndex=void 0;const n=r(2);class i{constructor(e){this.data={},this.keys=e}static hashTerm(e){return e&&"Variable"!==e.termType?n.termToString(e):""}add(e){if(this.isBindingsValid(e)){let t=this.data;for(const r of this.keys){const n=i.hashTerm(e.get(r));let a=t[n];a||(a=t[n]={}),t=a}}}contains(e){return!!this.isBindingsValid(e)&&this.containsRecursive(e,this.keys,[this.data])}isBindingsValid(e){let t=!1;for(const r of this.keys)if(e.get(r)){t=!0;break}return t}containsRecursive(e,t,r){if(0===t.length)return!0;let n;[n,...t]=t;for(const a of r){const r=i.hashTerm(e.get(n));if(r){const n=[a[r],a[""]].filter(Boolean);if(0===n.length)continue;if(this.containsRecursive(e,t,n))return!0}else{let r=Object.keys(a).map(e=>a[e]);if(0===r.length&&(r=[{}]),this.containsRecursive(e,t,r))return!0}}return!1}}t.BindingsIndex=i},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(665),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ActorQueryOperationNop=void 0;const n=r(1),i=r(4);class a extends n.ActorQueryOperationTypedMediated{constructor(e){super(e,"nop")}async testOperation(e,t){return!0}async runOperation(e,t){return{bindingsStream:new i.SingletonIterator(n.Bindings({})),metadata:()=>Promise.resolve({totalItems:1}),type:"bindings",variables:[],canContainUndefs:!1}}}t.ActorQueryOperationNop=a},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(667),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ActorQueryOperationPathAlt=void 0;const n=r(34),i=r(1),a=r(4),s=r(6);class o extends n.ActorAbstractPath{constructor(e){super(e,s.Algebra.types.ALT)}async runOperation(e,t){const r=e.predicate,s=(await Promise.all([this.mediatorQueryOperation.mediate({context:t,operation:n.ActorAbstractPath.FACTORY.createPath(e.subject,r.left,e.object,e.graph)}),this.mediatorQueryOperation.mediate({context:t,operation:n.ActorAbstractPath.FACTORY.createPath(e.subject,r.right,e.object,e.graph)})])).map(e=>i.ActorQueryOperation.getSafeBindings(e)),o=new a.UnionIterator(s.map(e=>e.bindingsStream),{autoStart:!1}),c=[].concat.apply([],s.map(e=>e.variables));return{type:"bindings",bindingsStream:o,variables:[...new Set(c)],canContainUndefs:!1}}}t.ActorQueryOperationPathAlt=o},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(669),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ActorQueryOperationPathInv=void 0;const n=r(34),i=r(6);class a extends n.ActorAbstractPath{constructor(e){super(e,i.Algebra.types.INV)}async runOperation(e,t){const r=e.predicate,i=n.ActorAbstractPath.FACTORY.createPath(e.object,r.path,e.subject,e.graph);return this.mediatorQueryOperation.mediate({operation:i,context:t})}}t.ActorQueryOperationPathInv=a},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(671),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ActorQueryOperationPathLink=void 0;const n=r(34),i=r(6);class a extends n.ActorAbstractPath{constructor(e){super(e,i.Algebra.types.LINK)}async runOperation(e,t){const r=e.predicate,i=n.ActorAbstractPath.FACTORY.createPattern(e.subject,r.iri,e.object,e.graph);return this.mediatorQueryOperation.mediate({operation:i,context:t})}}t.ActorQueryOperationPathLink=a},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(673),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ActorQueryOperationPathNps=void 0;const n=r(34),i=r(1),a=r(2),s=r(6);class o extends n.ActorAbstractPath{constructor(e){super(e,s.Algebra.types.NPS)}async runOperation(e,t){const r=e.predicate,s=this.generateVariable(e),o=a.termToString(s),c=n.ActorAbstractPath.FACTORY.createPattern(e.subject,s,e.object,e.graph),u=i.ActorQueryOperation.getSafeBindings(await this.mediatorQueryOperation.mediate({operation:c,context:t}));return{type:"bindings",bindingsStream:u.bindingsStream.transform({filter:e=>!r.iris.some(t=>t.equals(e.get(o))),transform(e,t,r){r(e.delete(o)),t()}}),variables:u.variables,canContainUndefs:!1}}}t.ActorQueryOperationPathNps=o},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(675),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ActorQueryOperationPathOneOrMore=void 0;const n=r(34),i=r(1),a=r(4),s=r(2),o=r(6);class c extends n.ActorAbstractPath{constructor(e){super(e,o.Algebra.types.ONE_OR_MORE_PATH)}async runOperation(e,t){const r=await this.isPathArbitraryLengthDistinct(t,e);if(r.operation)return r.operation;t=r.context;const o=e.predicate,c="Variable"===e.subject.termType,u="Variable"===e.object.termType,l="Variable"===e.graph.termType;if(!c&&u){const r=n.ActorAbstractPath.FACTORY.createDistinct(n.ActorAbstractPath.FACTORY.createPath(e.subject,o.path,e.object,e.graph)),c=i.ActorQueryOperation.getSafeBindings(await this.mediatorQueryOperation.mediate({context:t,operation:r})),u=s.termToString(e.object),d={};return{type:"bindings",bindingsStream:new a.MultiTransformIterator(c.bindingsStream,{multiTransform:r=>{const n=r.get(u),c=l?r.get(s.termToString(e.graph)):e.graph;return new a.TransformIterator(async()=>{const r=new a.BufferedIterator;return await this.getObjectsPredicateStar(n,o.path,e.graph,t,d,r,{count:0}),r.transform({transform(t,r,n){let a=i.Bindings({[u]:t});l&&(a=a.set(s.termToString(e.graph),c)),n(a),r()}})},{maxBufferSize:128})},autoStart:!1}),variables:l?[u,s.termToString(e.graph)]:[u],canContainUndefs:!1}}if(c&&u){const r=n.ActorAbstractPath.FACTORY.createDistinct(n.ActorAbstractPath.FACTORY.createPath(e.subject,e.predicate.path,e.object,e.graph)),c=i.ActorQueryOperation.getSafeBindings(await this.mediatorQueryOperation.mediate({context:t,operation:r})),u=s.termToString(e.subject),d=s.termToString(e.object),p={};return{type:"bindings",bindingsStream:new a.MultiTransformIterator(c.bindingsStream,{multiTransform:r=>{const n=r.get(u),i=r.get(d),c=l?r.get(s.termToString(e.graph)):e.graph;return new a.TransformIterator(async()=>{const r=new a.BufferedIterator;return await this.getSubjectAndObjectBindingsPredicateStar(u,d,n,i,o.path,c,t,p,{},r,{count:0}),r.transform({transform(t,r,n){l&&(t=t.set(s.termToString(e.graph),c)),n(t),r()}})},{maxBufferSize:128})},autoStart:!1}),variables:l?[u,d,s.termToString(e.graph)]:[u,d],canContainUndefs:!1}}if(c&&!u)return this.mediatorQueryOperation.mediate({context:t,operation:n.ActorAbstractPath.FACTORY.createPath(e.object,n.ActorAbstractPath.FACTORY.createOneOrMorePath(n.ActorAbstractPath.FACTORY.createInv(o.path)),e.subject,e.graph)});const d=this.generateVariable(),p=s.termToString(d);return{type:"bindings",bindingsStream:i.ActorQueryOperation.getSafeBindings(await this.mediatorQueryOperation.mediate({context:t,operation:n.ActorAbstractPath.FACTORY.createPath(e.subject,o,d,e.graph)})).bindingsStream.transform({filter:t=>t.get(p).equals(e.object),transform(t,r,n){n(l?i.Bindings({[s.termToString(e.graph)]:t.get(s.termToString(e.graph))}):i.Bindings({})),r()}}),variables:l?[s.termToString(e.graph)]:[],canContainUndefs:!1}}}t.ActorQueryOperationPathOneOrMore=c},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(677),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ActorQueryOperationPathSeq=void 0;const n=r(34),i=r(1),a=r(2),s=r(6);class o extends n.ActorAbstractPath{constructor(e){super(e,s.Algebra.types.SEQ)}async runOperation(e,t){const r=e.predicate,s=this.generateVariable(e),o=a.termToString(s),c=(await Promise.all([this.mediatorQueryOperation.mediate({context:t,operation:n.ActorAbstractPath.FACTORY.createPath(e.subject,r.left,s,e.graph)}),this.mediatorQueryOperation.mediate({context:t,operation:n.ActorAbstractPath.FACTORY.createPath(s,r.right,e.object,e.graph)})])).map(e=>i.ActorQueryOperation.getSafeBindings(e)),u=i.ActorQueryOperation.getSafeBindings(await this.mediatorJoin.mediate({entries:c})),l=u.bindingsStream.transform({transform(e,t,r){r(e.delete(o)),t()}}),d=u.variables,p=d.indexOf(o);return d.splice(p,1),{type:"bindings",bindingsStream:l,variables:d,canContainUndefs:!1}}}t.ActorQueryOperationPathSeq=o},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(679),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ActorQueryOperationPathZeroOrMore=void 0;const n=r(34),i=r(1),a=r(4),s=r(2),o=r(6);class c extends n.ActorAbstractPath{constructor(e){super(e,o.Algebra.types.ZERO_OR_MORE_PATH)}async runOperation(e,t){const r=await this.isPathArbitraryLengthDistinct(t,e);if(r.operation)return r.operation;t=r.context;const o=e.predicate,c="Variable"===e.subject.termType,u="Variable"===e.object.termType,l="Variable"===e.graph.termType;if(c&&u){const r=this.generateVariable(e),c=n.ActorAbstractPath.FACTORY.createPattern(e.subject,r,e.object,e.graph),u=i.ActorQueryOperation.getSafeBindings(await this.mediatorQueryOperation.mediate({context:t,operation:c})),d=s.termToString(e.subject),p=s.termToString(e.object),h=new Set,f={};return{type:"bindings",bindingsStream:new a.MultiTransformIterator(u.bindingsStream,{multiTransform:r=>{const n=r.get(d),i=r.get(p),c=l?r.get(s.termToString(e.graph)):e.graph,u=s.termToString(n)+s.termToString(c),g=s.termToString(i)+s.termToString(c);return new a.TransformIterator(async()=>{if(h.has(u)&&h.has(g))return new a.EmptyIterator;const r=new a.BufferedIterator,m={count:0};return h.has(u)||(h.add(u),await this.getSubjectAndObjectBindingsPredicateStar(d,p,n,n,o.path,c,t,f,{},r,m)),h.has(g)||(h.add(g),await this.getSubjectAndObjectBindingsPredicateStar(d,p,i,i,o.path,c,t,f,{},r,m)),r.transform({transform(t,r,n){l&&(t=t.set(s.termToString(e.graph),c)),n(t),r()}})})}}),variables:l?[d,p,s.termToString(e.graph)]:[d,p],canContainUndefs:!1}}if(!c&&!u){const r=this.generateVariable();return{type:"bindings",bindingsStream:(await this.getObjectsPredicateStarEval(e.subject,r,o.path,e.graph,t)).transform({filter:t=>t.get(s.termToString(r)).equals(e.object),transform(t,r,n){n(l?i.Bindings({[s.termToString(e.graph)]:t.get(s.termToString(e.graph))}):i.Bindings({})),r()}}),variables:l?[s.termToString(e.graph)]:[],canContainUndefs:!1}}const d=c?e.object:e.subject,p=c?e.subject:e.object,h=c?n.ActorAbstractPath.FACTORY.createInv(o.path):o.path;return{type:"bindings",bindingsStream:(await this.getObjectsPredicateStarEval(d,p,h,e.graph,t)).transform({transform(e,t,r){r(e),t()}}),variables:l?[s.termToString(p),s.termToString(e.graph)]:[s.termToString(p)],canContainUndefs:!1}}}t.ActorQueryOperationPathZeroOrMore=c},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(681),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ActorQueryOperationPathZeroOrOne=void 0;const n=r(222),i=r(1),a=r(4),s=r(2),o=r(6);class c extends n.ActorAbstractPath{constructor(e){super(e,o.Algebra.types.ZERO_OR_ONE_PATH)}async runOperation(e,t){const r=e.predicate,o="Variable"===e.subject.termType,c="Variable"===e.object.termType,u=[];if(!o&&!c&&e.subject.equals(e.object))return{type:"bindings",bindingsStream:new a.SingletonIterator(i.Bindings({})),variables:[],canContainUndefs:!1};if(o&&c)throw new Error("ZeroOrOne path expressions with 2 variables not supported yet");const l=await this.isPathArbitraryLengthDistinct(t,e);if(l.operation)return l.operation;t=l.context,o&&u.push(i.Bindings({[s.termToString(e.subject)]:e.object})),c&&u.push(i.Bindings({[s.termToString(e.object)]:e.subject}));const d=i.ActorQueryOperation.getSafeBindings(await this.mediatorQueryOperation.mediate({context:t,operation:n.ActorAbstractPath.FACTORY.createPath(e.subject,r.path,e.object,e.graph)}));return{type:"bindings",bindingsStream:d.bindingsStream.prepend(u),variables:d.variables,canContainUndefs:!1}}}t.ActorQueryOperationPathZeroOrOne=c},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(683),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ActorQueryOperationUpdateCompositeUpdate=void 0;const n=r(1);class i extends n.ActorQueryOperationTypedMediated{constructor(e){super(e,"compositeupdate")}async testOperation(e,t){return n.ActorQueryOperation.throwOnReadOnly(t),!0}async runOperation(e,t){return{type:"update",updateResult:(async()=>{for(const r of e.updates){const e=n.ActorQueryOperation.getSafeUpdate(await this.mediatorQueryOperation.mediate({operation:r,context:t}));await e.updateResult}})()}}}t.ActorQueryOperationUpdateCompositeUpdate=i},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(685),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ActorQueryOperationUpdateDeleteInsert=void 0;const n=r(215),i=r(1),a=r(4);class s extends i.ActorQueryOperationTypedMediated{constructor(e){super(e,"deleteinsert"),this.blankNodeCounter=0}async testOperation(e,t){return i.ActorQueryOperation.throwOnReadOnly(t),!0}async runOperation(e,t){const r=e.where?i.ActorQueryOperation.getSafeBindings(await this.mediatorQueryOperation.mediate({operation:e.where,context:t})).bindingsStream:new a.ArrayIterator([i.Bindings({})],{autoStart:!1});let s,o;e.insert&&(s=new n.BindingsToQuadsIterator(e.insert.map(n.BindingsToQuadsIterator.localizeQuad.bind(null,this.blankNodeCounter)),r.clone(),!1),this.blankNodeCounter++),e.delete&&(o=new n.BindingsToQuadsIterator(e.delete.map(n.BindingsToQuadsIterator.localizeQuad.bind(null,this.blankNodeCounter)),r.clone(),!1),this.blankNodeCounter++);const{updateResult:c}=await this.mediatorUpdateQuads.mediate({quadStreamInsert:s,quadStreamDelete:o,context:t});return{type:"update",updateResult:c}}}t.ActorQueryOperationUpdateDeleteInsert=s},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(687),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.KEY_CONTEXT_LENIENT=t.KEY_CONTEXT_SOURCES=t.ActorQueryOperationLoad=void 0;const n=r(1),i=r(0),a=r(5),s=r(6),o=new a.DataFactory;class c extends n.ActorQueryOperationTypedMediated{constructor(e){super(e,"load"),this.factory=new s.Factory,this.constructOperation=this.factory.createConstruct(this.factory.createPattern(o.variable("s"),o.variable("p"),o.variable("o")),[this.factory.createPattern(o.variable("s"),o.variable("p"),o.variable("o"))])}async testOperation(e,t){return n.ActorQueryOperation.throwOnReadOnly(t),!0}async runOperation(e,r){r||(r=i.ActionContext({}));let n=r.set(t.KEY_CONTEXT_SOURCES,[e.source.value]);e.silent&&(n=n.set(t.KEY_CONTEXT_LENIENT,!0));let a=c.getSafeQuads(await this.mediatorQueryOperation.mediate({operation:this.constructOperation,context:n})).quadStream;e.destination&&(a=a.map(t=>o.quad(t.subject,t.predicate,t.object,e.destination)));const{updateResult:s}=await this.mediatorUpdateQuads.mediate({quadStreamInsert:a,context:r});return{type:"update",updateResult:s}}}t.ActorQueryOperationLoad=c,t.KEY_CONTEXT_SOURCES="@comunica/bus-rdf-resolve-quad-pattern:sources",t.KEY_CONTEXT_LENIENT="@comunica/actor-init-sparql:lenient"},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(689),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ActorQueryOperationClear=void 0;const n=r(1),i=new(r(5).DataFactory);class a extends n.ActorQueryOperationTypedMediated{constructor(e){super(e,"clear")}async testOperation(e,t){return n.ActorQueryOperation.throwOnReadOnly(t),!0}async runOperation(e,t){let r;r="DEFAULT"===e.source?i.defaultGraph():"string"==typeof e.source?e.source:[e.source];const{updateResult:n}=await this.mediatorUpdateQuads.mediate({deleteGraphs:{graphs:r,requireExistence:!e.silent,dropGraphs:!1},context:t});return{type:"update",updateResult:n}}}t.ActorQueryOperationClear=a},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(691),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ActorQueryOperationDrop=void 0;const n=r(1),i=new(r(5).DataFactory);class a extends n.ActorQueryOperationTypedMediated{constructor(e){super(e,"drop")}async testOperation(e,t){return n.ActorQueryOperation.throwOnReadOnly(t),!0}async runOperation(e,t){let r;r="DEFAULT"===e.source?i.defaultGraph():"string"==typeof e.source?e.source:[e.source];const{updateResult:n}=await this.mediatorUpdateQuads.mediate({deleteGraphs:{graphs:r,requireExistence:!e.silent,dropGraphs:!0},context:t});return{type:"update",updateResult:n}}}t.ActorQueryOperationDrop=a},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(693),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ActorQueryOperationCreate=void 0;const n=r(1);class i extends n.ActorQueryOperationTypedMediated{constructor(e){super(e,"create")}async testOperation(e,t){return n.ActorQueryOperation.throwOnReadOnly(t),!0}async runOperation(e,t){const{updateResult:r}=await this.mediatorUpdateQuads.mediate({createGraphs:{graphs:[e.source],requireNonExistence:!e.silent},context:t});return{type:"update",updateResult:r}}}t.ActorQueryOperationCreate=i},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(695),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ActorQueryOperationAddRewrite=void 0;const n=r(1),i=r(5),a=r(6),s=new i.DataFactory;class o extends n.ActorQueryOperationTypedMediated{constructor(e){super(e,"add"),this.factory=new a.Factory}async testOperation(e,t){return n.ActorQueryOperation.throwOnReadOnly(t),!0}runOperation(e,t){const r="DEFAULT"===e.destination?s.defaultGraph():e.destination,n="DEFAULT"===e.source?s.defaultGraph():e.source,i=this.factory.createDeleteInsert(void 0,[this.factory.createPattern(s.variable("s"),s.variable("p"),s.variable("o"),r)],this.factory.createPattern(s.variable("s"),s.variable("p"),s.variable("o"),n));return this.mediatorQueryOperation.mediate({operation:i,context:t})}}t.ActorQueryOperationAddRewrite=o},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(697),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ActorQueryOperationMoveRewrite=void 0;const n=r(1),i=r(6);class a extends n.ActorQueryOperationTypedMediated{constructor(e){super(e,"move"),this.factory=new i.Factory}async testOperation(e,t){return n.ActorQueryOperation.throwOnReadOnly(t),!0}runOperation(e,t){if("string"==typeof e.destination&&"string"==typeof e.source&&e.destination===e.source||"string"!=typeof e.destination&&"string"!=typeof e.source&&e.destination.equals(e.source))return Promise.resolve({type:"update",updateResult:Promise.resolve()});const r=[this.factory.createDrop(e.destination,!0),this.factory.createAdd(e.source,e.destination,e.silent),this.factory.createDrop(e.source)],n=this.factory.createCompositeUpdate(r);return this.mediatorQueryOperation.mediate({operation:n,context:t})}}t.ActorQueryOperationMoveRewrite=a},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(699),t)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ActorQueryOperationCopyRewrite=void 0;const n=r(1),i=r(6);class a extends n.ActorQueryOperationTypedMediated{constructor(e){super(e,"copy"),this.factory=new i.Factory}async testOperation(e,t){return n.ActorQueryOperation.throwOnReadOnly(t),!0}runOperation(e,t){if("string"==typeof e.destination&&"string"==typeof e.source&&e.destination===e.source||"string"!=typeof e.destination&&"string"!=typeof e.source&&e.destination.equals(e.source))return Promise.resolve({type:"update",updateResult:Promise.resolve()});const r=this.factory.createCompositeUpdate([this.factory.createDrop(e.destination,!0),this.factory.createAdd(e.source,e.destination,e.silent)]);return this.mediatorQueryOperation.mediate({operation:r,context:t})}}t.ActorQueryOperationCopyRewrite=a},function(e,t,r){e.exports=r(701)},function(e,t,r){"use strict";var n=r(12),i=r(223),a=r(702),s=r(229);var o=function e(t){var r=new a(t),o=i(a.prototype.request,r);return n.extend(o,a.prototype,r),n.extend(o,r),o.create=function(r){return e(s(t,r))},o}(r(73));o.Axios=a,o.Cancel=r(74),o.CancelToken=r(715),o.isCancel=r(228),o.VERSION=r(230).version,o.all=function(e){return Promise.all(e)},o.spread=r(716),o.isAxiosError=r(717),e.exports=o,e.exports.default=o},function(e,t,r){"use strict";var n=r(12),i=r(224),a=r(703),s=r(704),o=r(229),c=r(714),u=c.validators;function l(e){this.defaults=e,this.interceptors={request:new a,response:new a}}l.prototype.request=function(e,t){if("string"==typeof e?(t=t||{}).url=e:t=e||{},!t.url)throw new Error("Provided config url is not valid");(t=o(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var r=t.transitional;void 0!==r&&c.assertOptions(r,{silentJSONParsing:u.transitional(u.boolean),forcedJSONParsing:u.transitional(u.boolean),clarifyTimeoutError:u.transitional(u.boolean)},!1);var n=[],i=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(i=i&&e.synchronous,n.unshift(e.fulfilled,e.rejected))}));var a,l=[];if(this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)})),!i){var d=[s,void 0];for(Array.prototype.unshift.apply(d,n),d=d.concat(l),a=Promise.resolve(t);d.length;)a=a.then(d.shift(),d.shift());return a}for(var p=t;n.length;){var h=n.shift(),f=n.shift();try{p=h(p)}catch(e){f(e);break}}try{a=s(p)}catch(e){return Promise.reject(e)}for(;l.length;)a=a.then(l.shift(),l.shift());return a},l.prototype.getUri=function(e){if(!e.url)throw new Error("Provided config url is not valid");return e=o(this.defaults,e),i(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},n.forEach(["delete","get","head","options"],(function(e){l.prototype[e]=function(t,r){return this.request(o(r||{},{method:e,url:t,data:(r||{}).data}))}})),n.forEach(["post","put","patch"],(function(e){l.prototype[e]=function(t,r,n){return this.request(o(n||{},{method:e,url:t,data:r}))}})),e.exports=l},function(e,t,r){"use strict";var n=r(12);function i(){this.handlers=[]}i.prototype.use=function(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1},i.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},i.prototype.forEach=function(e){n.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=i},function(e,t,r){"use strict";var n=r(12),i=r(705),a=r(228),s=r(73),o=r(74);function c(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new o("canceled")}e.exports=function(e){return c(e),e.headers=e.headers||{},e.data=i.call(e,e.data,e.headers,e.transformRequest),e.headers=n.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),n.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||s.adapter)(e).then((function(t){return c(e),t.data=i.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return a(t)||(c(e),t&&t.response&&(t.response.data=i.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},function(e,t,r){"use strict";var n=r(12),i=r(73);e.exports=function(e,t,r){var a=this||i;return n.forEach(r,(function(r){e=r.call(a,e,t)})),e}},function(e,t,r){"use strict";var n=r(12);e.exports=function(e,t){n.forEach(e,(function(r,n){n!==t&&n.toUpperCase()===t.toUpperCase()&&(e[t]=r,delete e[n])}))}},function(e,t,r){"use strict";var n=r(227);e.exports=function(e,t,r){var i=r.config.validateStatus;r.status&&i&&!i(r.status)?t(n("Request failed with status code "+r.status,r.config,null,r.request,r)):e(r)}},function(e,t,r){"use strict";var n=r(12);e.exports=n.isStandardBrowserEnv()?{write:function(e,t,r,i,a,s){var o=[];o.push(e+"="+encodeURIComponent(t)),n.isNumber(r)&&o.push("expires="+new Date(r).toGMTString()),n.isString(i)&&o.push("path="+i),n.isString(a)&&o.push("domain="+a),!0===s&&o.push("secure"),document.cookie=o.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(e,t,r){"use strict";var n=r(710),i=r(711);e.exports=function(e,t){return e&&!n(t)?i(e,t):t}},function(e,t,r){"use strict";e.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},function(e,t,r){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},function(e,t,r){"use strict";var n=r(12),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,r,a,s={};return e?(n.forEach(e.split("\n"),(function(e){if(a=e.indexOf(":"),t=n.trim(e.substr(0,a)).toLowerCase(),r=n.trim(e.substr(a+1)),t){if(s[t]&&i.indexOf(t)>=0)return;s[t]="set-cookie"===t?(s[t]?s[t]:[]).concat([r]):s[t]?s[t]+", "+r:r}})),s):s}},function(e,t,r){"use strict";var n=r(12);e.exports=n.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function i(e){var n=e;return t&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return e=i(window.location.href),function(t){var r=n.isString(t)?i(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function(){return!0}},function(e,t,r){"use strict";var n=r(230).version,i={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){i[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));var a={};i.transitional=function(e,t,r){function i(e,t){return"[Axios v"+n+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return function(r,n,s){if(!1===e)throw new Error(i(n," has been removed"+(t?" in "+t:"")));return t&&!a[n]&&(a[n]=!0,console.warn(i(n," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,n,s)}},e.exports={assertOptions:function(e,t,r){if("object"!=typeof e)throw new TypeError("options must be an object");for(var n=Object.keys(e),i=n.length;i-- >0;){var a=n[i],s=t[a];if(s){var o=e[a],c=void 0===o||s(o,a,e);if(!0!==c)throw new TypeError("option "+a+" must be "+c)}else if(!0!==r)throw Error("Unknown option "+a)}},validators:i}},function(e,t,r){"use strict";var n=r(74);function i(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var r=this;this.promise.then((function(e){if(r._listeners){var t,n=r._listeners.length;for(t=0;t (GFM Style)",type:"boolean"},requireSpaceBeforeHeadingText:{defaultValue:!1,description:"Makes adding a space between `#` and the header text mandatory (GFM Style)",type:"boolean"},ghMentions:{defaultValue:!1,description:"Enables github @mentions",type:"boolean"},ghMentionsLink:{defaultValue:"https://github.com/{u}",description:"Changes the link generated by @mentions. Only applies if ghMentions option is enabled.",type:"string"},encodeEmails:{defaultValue:!0,description:"Encode e-mail addresses through the use of Character Entities, transforming ASCII e-mail addresses into its equivalent decimal entities",type:"boolean"},openLinksInNewWindow:{defaultValue:!1,description:"Open all links in new windows",type:"boolean"},backslashEscapesHTMLTags:{defaultValue:!1,description:"Support for HTML Tag escaping. ex:
foo
",type:"boolean"},emoji:{defaultValue:!1,description:"Enable emoji support. Ex: `this is a :smile: emoji`",type:"boolean"},underline:{defaultValue:!1,description:"Enable support for underline. Syntax is double or triple underscores: `__underline word__`. With this option enabled, underscores no longer parses into `` and ``",type:"boolean"},completeHTMLDocument:{defaultValue:!1,description:"Outputs a complete html document, including ``, `` and `` tags",type:"boolean"},metadata:{defaultValue:!1,description:"Enable support for document metadata (defined at the top of the document between `«««` and `»»»` or between `---` and `---`).",type:"boolean"},splitAdjacentBlockquotes:{defaultValue:!1,description:"Split adjacent blockquote blocks",type:"boolean"}};if(!1===e)return JSON.parse(JSON.stringify(t));var r={};for(var n in t)t.hasOwnProperty(n)&&(r[n]=t[n].defaultValue);return r}var a={},s={},o={},c=i(!0),u="vanilla",l={github:{omitExtraWLInCodeBlocks:!0,simplifiedAutoLink:!0,excludeTrailingPunctuationFromURLs:!0,literalMidWordUnderscores:!0,strikethrough:!0,tables:!0,tablesHeaderId:!0,ghCodeBlocks:!0,tasklists:!0,disableForced4SpacesIndentedSublists:!0,simpleLineBreaks:!0,requireSpaceBeforeHeadingText:!0,ghCompatibleHeaderId:!0,ghMentions:!0,backslashEscapesHTMLTags:!0,emoji:!0,splitAdjacentBlockquotes:!0},original:{noHeaderId:!0,ghCodeBlocks:!1},ghost:{omitExtraWLInCodeBlocks:!0,parseImgDimensions:!0,simplifiedAutoLink:!0,excludeTrailingPunctuationFromURLs:!0,literalMidWordUnderscores:!0,strikethrough:!0,tables:!0,tablesHeaderId:!0,ghCodeBlocks:!0,tasklists:!0,smoothLivePreview:!0,simpleLineBreaks:!0,requireSpaceBeforeHeadingText:!0,ghMentions:!1,encodeEmails:!0},vanilla:i(!0),allOn:function(){"use strict";var e=i(!0),t={};for(var r in e)e.hasOwnProperty(r)&&(t[r]=!0);return t}()};function d(e,t){"use strict";var r=t?"Error in "+t+" extension->":"Error in unnamed extension",n={valid:!0,error:""};a.helper.isArray(e)||(e=[e]);for(var i=0;i").replace(/&/g,"&")};var h=function(e,t,r,n){"use strict";var i,a,s,o,c,u=n||"",l=u.indexOf("g")>-1,d=new RegExp(t+"|"+r,"g"+u.replace(/g/g,"")),p=new RegExp(t,u.replace(/g/g,"")),h=[];do{for(i=0;s=d.exec(e);)if(p.test(s[0]))i++||(o=(a=d.lastIndex)-s[0].length);else if(i&&!--i){c=s.index+s[0].length;var f={left:{start:o,end:a},match:{start:a,end:s.index},right:{start:s.index,end:c},wholeMatch:{start:o,end:c}};if(h.push(f),!l)return h}}while(i&&(d.lastIndex=a));return h};a.helper.matchRecursiveRegExp=function(e,t,r,n){"use strict";for(var i=h(e,t,r,n),a=[],s=0;s0){var l=[];0!==o[0].wholeMatch.start&&l.push(e.slice(0,o[0].wholeMatch.start));for(var d=0;d=0?n+(r||0):n},a.helper.splitAtIndex=function(e,t){"use strict";if(!a.helper.isString(e))throw"InvalidArgumentError: first parameter of showdown.helper.regexIndexOf function must be a string";return[e.substring(0,t),e.substring(t)]},a.helper.encodeEmailAddress=function(e){"use strict";var t=[function(e){return"&#"+e.charCodeAt(0)+";"},function(e){return"&#x"+e.charCodeAt(0).toString(16)+";"},function(e){return e}];return e=e.replace(/./g,(function(e){if("@"===e)e=t[Math.floor(2*Math.random())](e);else{var r=Math.random();e=r>.9?t[2](e):r>.45?t[1](e):t[0](e)}return e}))},a.helper.padEnd=function(e,t,r){"use strict";return t>>=0,r=String(r||" "),e.length>t?String(e):((t-=e.length)>r.length&&(r+=r.repeat(t/r.length)),String(e)+r.slice(0,t))},"undefined"==typeof console&&(console={warn:function(e){"use strict";alert(e)},log:function(e){"use strict";alert(e)},error:function(e){"use strict";throw e}}),a.helper.regexes={asteriskDashAndColon:/([*_:~])/g},a.helper.emojis={"+1":"👍","-1":"👎",100:"💯",1234:"🔢","1st_place_medal":"🥇","2nd_place_medal":"🥈","3rd_place_medal":"🥉","8ball":"🎱",a:"🅰️",ab:"🆎",abc:"🔤",abcd:"🔡",accept:"🉑",aerial_tramway:"🚡",airplane:"✈️",alarm_clock:"⏰",alembic:"⚗️",alien:"👽",ambulance:"🚑",amphora:"🏺",anchor:"⚓️",angel:"👼",anger:"💢",angry:"😠",anguished:"😧",ant:"🐜",apple:"🍎",aquarius:"♒️",aries:"♈️",arrow_backward:"◀️",arrow_double_down:"⏬",arrow_double_up:"⏫",arrow_down:"⬇️",arrow_down_small:"🔽",arrow_forward:"▶️",arrow_heading_down:"⤵️",arrow_heading_up:"⤴️",arrow_left:"⬅️",arrow_lower_left:"↙️",arrow_lower_right:"↘️",arrow_right:"➡️",arrow_right_hook:"↪️",arrow_up:"⬆️",arrow_up_down:"↕️",arrow_up_small:"🔼",arrow_upper_left:"↖️",arrow_upper_right:"↗️",arrows_clockwise:"🔃",arrows_counterclockwise:"🔄",art:"🎨",articulated_lorry:"🚛",artificial_satellite:"🛰",astonished:"😲",athletic_shoe:"👟",atm:"🏧",atom_symbol:"⚛️",avocado:"🥑",b:"🅱️",baby:"👶",baby_bottle:"🍼",baby_chick:"🐤",baby_symbol:"🚼",back:"🔙",bacon:"🥓",badminton:"🏸",baggage_claim:"🛄",baguette_bread:"🥖",balance_scale:"⚖️",balloon:"🎈",ballot_box:"🗳",ballot_box_with_check:"☑️",bamboo:"🎍",banana:"🍌",bangbang:"‼️",bank:"🏦",bar_chart:"📊",barber:"💈",baseball:"⚾️",basketball:"🏀",basketball_man:"⛹️",basketball_woman:"⛹️‍♀️",bat:"🦇",bath:"🛀",bathtub:"🛁",battery:"🔋",beach_umbrella:"🏖",bear:"🐻",bed:"🛏",bee:"🐝",beer:"🍺",beers:"🍻",beetle:"🐞",beginner:"🔰",bell:"🔔",bellhop_bell:"🛎",bento:"🍱",biking_man:"🚴",bike:"🚲",biking_woman:"🚴‍♀️",bikini:"👙",biohazard:"☣️",bird:"🐦",birthday:"🎂",black_circle:"⚫️",black_flag:"🏴",black_heart:"🖤",black_joker:"🃏",black_large_square:"⬛️",black_medium_small_square:"◾️",black_medium_square:"◼️",black_nib:"✒️",black_small_square:"▪️",black_square_button:"🔲",blonde_man:"👱",blonde_woman:"👱‍♀️",blossom:"🌼",blowfish:"🐡",blue_book:"📘",blue_car:"🚙",blue_heart:"💙",blush:"😊",boar:"🐗",boat:"⛵️",bomb:"💣",book:"📖",bookmark:"🔖",bookmark_tabs:"📑",books:"📚",boom:"💥",boot:"👢",bouquet:"💐",bowing_man:"🙇",bow_and_arrow:"🏹",bowing_woman:"🙇‍♀️",bowling:"🎳",boxing_glove:"🥊",boy:"👦",bread:"🍞",bride_with_veil:"👰",bridge_at_night:"🌉",briefcase:"💼",broken_heart:"💔",bug:"🐛",building_construction:"🏗",bulb:"💡",bullettrain_front:"🚅",bullettrain_side:"🚄",burrito:"🌯",bus:"🚌",business_suit_levitating:"🕴",busstop:"🚏",bust_in_silhouette:"👤",busts_in_silhouette:"👥",butterfly:"🦋",cactus:"🌵",cake:"🍰",calendar:"📆",call_me_hand:"🤙",calling:"📲",camel:"🐫",camera:"📷",camera_flash:"📸",camping:"🏕",cancer:"♋️",candle:"🕯",candy:"🍬",canoe:"🛶",capital_abcd:"🔠",capricorn:"♑️",car:"🚗",card_file_box:"🗃",card_index:"📇",card_index_dividers:"🗂",carousel_horse:"🎠",carrot:"🥕",cat:"🐱",cat2:"🐈",cd:"💿",chains:"⛓",champagne:"🍾",chart:"💹",chart_with_downwards_trend:"📉",chart_with_upwards_trend:"📈",checkered_flag:"🏁",cheese:"🧀",cherries:"🍒",cherry_blossom:"🌸",chestnut:"🌰",chicken:"🐔",children_crossing:"🚸",chipmunk:"🐿",chocolate_bar:"🍫",christmas_tree:"🎄",church:"⛪️",cinema:"🎦",circus_tent:"🎪",city_sunrise:"🌇",city_sunset:"🌆",cityscape:"🏙",cl:"🆑",clamp:"🗜",clap:"👏",clapper:"🎬",classical_building:"🏛",clinking_glasses:"🥂",clipboard:"📋",clock1:"🕐",clock10:"🕙",clock1030:"🕥",clock11:"🕚",clock1130:"🕦",clock12:"🕛",clock1230:"🕧",clock130:"🕜",clock2:"🕑",clock230:"🕝",clock3:"🕒",clock330:"🕞",clock4:"🕓",clock430:"🕟",clock5:"🕔",clock530:"🕠",clock6:"🕕",clock630:"🕡",clock7:"🕖",clock730:"🕢",clock8:"🕗",clock830:"🕣",clock9:"🕘",clock930:"🕤",closed_book:"📕",closed_lock_with_key:"🔐",closed_umbrella:"🌂",cloud:"☁️",cloud_with_lightning:"🌩",cloud_with_lightning_and_rain:"⛈",cloud_with_rain:"🌧",cloud_with_snow:"🌨",clown_face:"🤡",clubs:"♣️",cocktail:"🍸",coffee:"☕️",coffin:"⚰️",cold_sweat:"😰",comet:"☄️",computer:"💻",computer_mouse:"🖱",confetti_ball:"🎊",confounded:"😖",confused:"😕",congratulations:"㊗️",construction:"🚧",construction_worker_man:"👷",construction_worker_woman:"👷‍♀️",control_knobs:"🎛",convenience_store:"🏪",cookie:"🍪",cool:"🆒",policeman:"👮",copyright:"©️",corn:"🌽",couch_and_lamp:"🛋",couple:"👫",couple_with_heart_woman_man:"💑",couple_with_heart_man_man:"👨‍❤️‍👨",couple_with_heart_woman_woman:"👩‍❤️‍👩",couplekiss_man_man:"👨‍❤️‍💋‍👨",couplekiss_man_woman:"💏",couplekiss_woman_woman:"👩‍❤️‍💋‍👩",cow:"🐮",cow2:"🐄",cowboy_hat_face:"🤠",crab:"🦀",crayon:"🖍",credit_card:"💳",crescent_moon:"🌙",cricket:"🏏",crocodile:"🐊",croissant:"🥐",crossed_fingers:"🤞",crossed_flags:"🎌",crossed_swords:"⚔️",crown:"👑",cry:"😢",crying_cat_face:"😿",crystal_ball:"🔮",cucumber:"🥒",cupid:"💘",curly_loop:"➰",currency_exchange:"💱",curry:"🍛",custard:"🍮",customs:"🛃",cyclone:"🌀",dagger:"🗡",dancer:"💃",dancing_women:"👯",dancing_men:"👯‍♂️",dango:"🍡",dark_sunglasses:"🕶",dart:"🎯",dash:"💨",date:"📅",deciduous_tree:"🌳",deer:"🦌",department_store:"🏬",derelict_house:"🏚",desert:"🏜",desert_island:"🏝",desktop_computer:"🖥",male_detective:"🕵️",diamond_shape_with_a_dot_inside:"💠",diamonds:"♦️",disappointed:"😞",disappointed_relieved:"😥",dizzy:"💫",dizzy_face:"😵",do_not_litter:"🚯",dog:"🐶",dog2:"🐕",dollar:"💵",dolls:"🎎",dolphin:"🐬",door:"🚪",doughnut:"🍩",dove:"🕊",dragon:"🐉",dragon_face:"🐲",dress:"👗",dromedary_camel:"🐪",drooling_face:"🤤",droplet:"💧",drum:"🥁",duck:"🦆",dvd:"📀","e-mail":"📧",eagle:"🦅",ear:"👂",ear_of_rice:"🌾",earth_africa:"🌍",earth_americas:"🌎",earth_asia:"🌏",egg:"🥚",eggplant:"🍆",eight_pointed_black_star:"✴️",eight_spoked_asterisk:"✳️",electric_plug:"🔌",elephant:"🐘",email:"✉️",end:"🔚",envelope_with_arrow:"📩",euro:"💶",european_castle:"🏰",european_post_office:"🏤",evergreen_tree:"🌲",exclamation:"❗️",expressionless:"😑",eye:"👁",eye_speech_bubble:"👁‍🗨",eyeglasses:"👓",eyes:"👀",face_with_head_bandage:"🤕",face_with_thermometer:"🤒",fist_oncoming:"👊",factory:"🏭",fallen_leaf:"🍂",family_man_woman_boy:"👪",family_man_boy:"👨‍👦",family_man_boy_boy:"👨‍👦‍👦",family_man_girl:"👨‍👧",family_man_girl_boy:"👨‍👧‍👦",family_man_girl_girl:"👨‍👧‍👧",family_man_man_boy:"👨‍👨‍👦",family_man_man_boy_boy:"👨‍👨‍👦‍👦",family_man_man_girl:"👨‍👨‍👧",family_man_man_girl_boy:"👨‍👨‍👧‍👦",family_man_man_girl_girl:"👨‍👨‍👧‍👧",family_man_woman_boy_boy:"👨‍👩‍👦‍👦",family_man_woman_girl:"👨‍👩‍👧",family_man_woman_girl_boy:"👨‍👩‍👧‍👦",family_man_woman_girl_girl:"👨‍👩‍👧‍👧",family_woman_boy:"👩‍👦",family_woman_boy_boy:"👩‍👦‍👦",family_woman_girl:"👩‍👧",family_woman_girl_boy:"👩‍👧‍👦",family_woman_girl_girl:"👩‍👧‍👧",family_woman_woman_boy:"👩‍👩‍👦",family_woman_woman_boy_boy:"👩‍👩‍👦‍👦",family_woman_woman_girl:"👩‍👩‍👧",family_woman_woman_girl_boy:"👩‍👩‍👧‍👦",family_woman_woman_girl_girl:"👩‍👩‍👧‍👧",fast_forward:"⏩",fax:"📠",fearful:"😨",feet:"🐾",female_detective:"🕵️‍♀️",ferris_wheel:"🎡",ferry:"⛴",field_hockey:"🏑",file_cabinet:"🗄",file_folder:"📁",film_projector:"📽",film_strip:"🎞",fire:"🔥",fire_engine:"🚒",fireworks:"🎆",first_quarter_moon:"🌓",first_quarter_moon_with_face:"🌛",fish:"🐟",fish_cake:"🍥",fishing_pole_and_fish:"🎣",fist_raised:"✊",fist_left:"🤛",fist_right:"🤜",flags:"🎏",flashlight:"🔦",fleur_de_lis:"⚜️",flight_arrival:"🛬",flight_departure:"🛫",floppy_disk:"💾",flower_playing_cards:"🎴",flushed:"😳",fog:"🌫",foggy:"🌁",football:"🏈",footprints:"👣",fork_and_knife:"🍴",fountain:"⛲️",fountain_pen:"🖋",four_leaf_clover:"🍀",fox_face:"🦊",framed_picture:"🖼",free:"🆓",fried_egg:"🍳",fried_shrimp:"🍤",fries:"🍟",frog:"🐸",frowning:"😦",frowning_face:"☹️",frowning_man:"🙍‍♂️",frowning_woman:"🙍",middle_finger:"🖕",fuelpump:"⛽️",full_moon:"🌕",full_moon_with_face:"🌝",funeral_urn:"⚱️",game_die:"🎲",gear:"⚙️",gem:"💎",gemini:"♊️",ghost:"👻",gift:"🎁",gift_heart:"💝",girl:"👧",globe_with_meridians:"🌐",goal_net:"🥅",goat:"🐐",golf:"⛳️",golfing_man:"🏌️",golfing_woman:"🏌️‍♀️",gorilla:"🦍",grapes:"🍇",green_apple:"🍏",green_book:"📗",green_heart:"💚",green_salad:"🥗",grey_exclamation:"❕",grey_question:"❔",grimacing:"😬",grin:"😁",grinning:"😀",guardsman:"💂",guardswoman:"💂‍♀️",guitar:"🎸",gun:"🔫",haircut_woman:"💇",haircut_man:"💇‍♂️",hamburger:"🍔",hammer:"🔨",hammer_and_pick:"⚒",hammer_and_wrench:"🛠",hamster:"🐹",hand:"✋",handbag:"👜",handshake:"🤝",hankey:"💩",hatched_chick:"🐥",hatching_chick:"🐣",headphones:"🎧",hear_no_evil:"🙉",heart:"❤️",heart_decoration:"💟",heart_eyes:"😍",heart_eyes_cat:"😻",heartbeat:"💓",heartpulse:"💗",hearts:"♥️",heavy_check_mark:"✔️",heavy_division_sign:"➗",heavy_dollar_sign:"💲",heavy_heart_exclamation:"❣️",heavy_minus_sign:"➖",heavy_multiplication_x:"✖️",heavy_plus_sign:"➕",helicopter:"🚁",herb:"🌿",hibiscus:"🌺",high_brightness:"🔆",high_heel:"👠",hocho:"🔪",hole:"🕳",honey_pot:"🍯",horse:"🐴",horse_racing:"🏇",hospital:"🏥",hot_pepper:"🌶",hotdog:"🌭",hotel:"🏨",hotsprings:"♨️",hourglass:"⌛️",hourglass_flowing_sand:"⏳",house:"🏠",house_with_garden:"🏡",houses:"🏘",hugs:"🤗",hushed:"😯",ice_cream:"🍨",ice_hockey:"🏒",ice_skate:"⛸",icecream:"🍦",id:"🆔",ideograph_advantage:"🉐",imp:"👿",inbox_tray:"📥",incoming_envelope:"📨",tipping_hand_woman:"💁",information_source:"ℹ️",innocent:"😇",interrobang:"⁉️",iphone:"📱",izakaya_lantern:"🏮",jack_o_lantern:"🎃",japan:"🗾",japanese_castle:"🏯",japanese_goblin:"👺",japanese_ogre:"👹",jeans:"👖",joy:"😂",joy_cat:"😹",joystick:"🕹",kaaba:"🕋",key:"🔑",keyboard:"⌨️",keycap_ten:"🔟",kick_scooter:"🛴",kimono:"👘",kiss:"💋",kissing:"😗",kissing_cat:"😽",kissing_closed_eyes:"😚",kissing_heart:"😘",kissing_smiling_eyes:"😙",kiwi_fruit:"🥝",koala:"🐨",koko:"🈁",label:"🏷",large_blue_circle:"🔵",large_blue_diamond:"🔷",large_orange_diamond:"🔶",last_quarter_moon:"🌗",last_quarter_moon_with_face:"🌜",latin_cross:"✝️",laughing:"😆",leaves:"🍃",ledger:"📒",left_luggage:"🛅",left_right_arrow:"↔️",leftwards_arrow_with_hook:"↩️",lemon:"🍋",leo:"♌️",leopard:"🐆",level_slider:"🎚",libra:"♎️",light_rail:"🚈",link:"🔗",lion:"🦁",lips:"👄",lipstick:"💄",lizard:"🦎",lock:"🔒",lock_with_ink_pen:"🔏",lollipop:"🍭",loop:"➿",loud_sound:"🔊",loudspeaker:"📢",love_hotel:"🏩",love_letter:"💌",low_brightness:"🔅",lying_face:"🤥",m:"Ⓜ️",mag:"🔍",mag_right:"🔎",mahjong:"🀄️",mailbox:"📫",mailbox_closed:"📪",mailbox_with_mail:"📬",mailbox_with_no_mail:"📭",man:"👨",man_artist:"👨‍🎨",man_astronaut:"👨‍🚀",man_cartwheeling:"🤸‍♂️",man_cook:"👨‍🍳",man_dancing:"🕺",man_facepalming:"🤦‍♂️",man_factory_worker:"👨‍🏭",man_farmer:"👨‍🌾",man_firefighter:"👨‍🚒",man_health_worker:"👨‍⚕️",man_in_tuxedo:"🤵",man_judge:"👨‍⚖️",man_juggling:"🤹‍♂️",man_mechanic:"👨‍🔧",man_office_worker:"👨‍💼",man_pilot:"👨‍✈️",man_playing_handball:"🤾‍♂️",man_playing_water_polo:"🤽‍♂️",man_scientist:"👨‍🔬",man_shrugging:"🤷‍♂️",man_singer:"👨‍🎤",man_student:"👨‍🎓",man_teacher:"👨‍🏫",man_technologist:"👨‍💻",man_with_gua_pi_mao:"👲",man_with_turban:"👳",tangerine:"🍊",mans_shoe:"👞",mantelpiece_clock:"🕰",maple_leaf:"🍁",martial_arts_uniform:"🥋",mask:"😷",massage_woman:"💆",massage_man:"💆‍♂️",meat_on_bone:"🍖",medal_military:"🎖",medal_sports:"🏅",mega:"📣",melon:"🍈",memo:"📝",men_wrestling:"🤼‍♂️",menorah:"🕎",mens:"🚹",metal:"🤘",metro:"🚇",microphone:"🎤",microscope:"🔬",milk_glass:"🥛",milky_way:"🌌",minibus:"🚐",minidisc:"💽",mobile_phone_off:"📴",money_mouth_face:"🤑",money_with_wings:"💸",moneybag:"💰",monkey:"🐒",monkey_face:"🐵",monorail:"🚝",moon:"🌔",mortar_board:"🎓",mosque:"🕌",motor_boat:"🛥",motor_scooter:"🛵",motorcycle:"🏍",motorway:"🛣",mount_fuji:"🗻",mountain:"⛰",mountain_biking_man:"🚵",mountain_biking_woman:"🚵‍♀️",mountain_cableway:"🚠",mountain_railway:"🚞",mountain_snow:"🏔",mouse:"🐭",mouse2:"🐁",movie_camera:"🎥",moyai:"🗿",mrs_claus:"🤶",muscle:"💪",mushroom:"🍄",musical_keyboard:"🎹",musical_note:"🎵",musical_score:"🎼",mute:"🔇",nail_care:"💅",name_badge:"📛",national_park:"🏞",nauseated_face:"🤢",necktie:"👔",negative_squared_cross_mark:"❎",nerd_face:"🤓",neutral_face:"😐",new:"🆕",new_moon:"🌑",new_moon_with_face:"🌚",newspaper:"📰",newspaper_roll:"🗞",next_track_button:"⏭",ng:"🆖",no_good_man:"🙅‍♂️",no_good_woman:"🙅",night_with_stars:"🌃",no_bell:"🔕",no_bicycles:"🚳",no_entry:"⛔️",no_entry_sign:"🚫",no_mobile_phones:"📵",no_mouth:"😶",no_pedestrians:"🚷",no_smoking:"🚭","non-potable_water":"🚱",nose:"👃",notebook:"📓",notebook_with_decorative_cover:"📔",notes:"🎶",nut_and_bolt:"🔩",o:"⭕️",o2:"🅾️",ocean:"🌊",octopus:"🐙",oden:"🍢",office:"🏢",oil_drum:"🛢",ok:"🆗",ok_hand:"👌",ok_man:"🙆‍♂️",ok_woman:"🙆",old_key:"🗝",older_man:"👴",older_woman:"👵",om:"🕉",on:"🔛",oncoming_automobile:"🚘",oncoming_bus:"🚍",oncoming_police_car:"🚔",oncoming_taxi:"🚖",open_file_folder:"📂",open_hands:"👐",open_mouth:"😮",open_umbrella:"☂️",ophiuchus:"⛎",orange_book:"📙",orthodox_cross:"☦️",outbox_tray:"📤",owl:"🦉",ox:"🐂",package:"📦",page_facing_up:"📄",page_with_curl:"📃",pager:"📟",paintbrush:"🖌",palm_tree:"🌴",pancakes:"🥞",panda_face:"🐼",paperclip:"📎",paperclips:"🖇",parasol_on_ground:"⛱",parking:"🅿️",part_alternation_mark:"〽️",partly_sunny:"⛅️",passenger_ship:"🛳",passport_control:"🛂",pause_button:"⏸",peace_symbol:"☮️",peach:"🍑",peanuts:"🥜",pear:"🍐",pen:"🖊",pencil2:"✏️",penguin:"🐧",pensive:"😔",performing_arts:"🎭",persevere:"😣",person_fencing:"🤺",pouting_woman:"🙎",phone:"☎️",pick:"⛏",pig:"🐷",pig2:"🐖",pig_nose:"🐽",pill:"💊",pineapple:"🍍",ping_pong:"🏓",pisces:"♓️",pizza:"🍕",place_of_worship:"🛐",plate_with_cutlery:"🍽",play_or_pause_button:"⏯",point_down:"👇",point_left:"👈",point_right:"👉",point_up:"☝️",point_up_2:"👆",police_car:"🚓",policewoman:"👮‍♀️",poodle:"🐩",popcorn:"🍿",post_office:"🏣",postal_horn:"📯",postbox:"📮",potable_water:"🚰",potato:"🥔",pouch:"👝",poultry_leg:"🍗",pound:"💷",rage:"😡",pouting_cat:"😾",pouting_man:"🙎‍♂️",pray:"🙏",prayer_beads:"📿",pregnant_woman:"🤰",previous_track_button:"⏮",prince:"🤴",princess:"👸",printer:"🖨",purple_heart:"💜",purse:"👛",pushpin:"📌",put_litter_in_its_place:"🚮",question:"❓",rabbit:"🐰",rabbit2:"🐇",racehorse:"🐎",racing_car:"🏎",radio:"📻",radio_button:"🔘",radioactive:"☢️",railway_car:"🚃",railway_track:"🛤",rainbow:"🌈",rainbow_flag:"🏳️‍🌈",raised_back_of_hand:"🤚",raised_hand_with_fingers_splayed:"🖐",raised_hands:"🙌",raising_hand_woman:"🙋",raising_hand_man:"🙋‍♂️",ram:"🐏",ramen:"🍜",rat:"🐀",record_button:"⏺",recycle:"♻️",red_circle:"🔴",registered:"®️",relaxed:"☺️",relieved:"😌",reminder_ribbon:"🎗",repeat:"🔁",repeat_one:"🔂",rescue_worker_helmet:"⛑",restroom:"🚻",revolving_hearts:"💞",rewind:"⏪",rhinoceros:"🦏",ribbon:"🎀",rice:"🍚",rice_ball:"🍙",rice_cracker:"🍘",rice_scene:"🎑",right_anger_bubble:"🗯",ring:"💍",robot:"🤖",rocket:"🚀",rofl:"🤣",roll_eyes:"🙄",roller_coaster:"🎢",rooster:"🐓",rose:"🌹",rosette:"🏵",rotating_light:"🚨",round_pushpin:"📍",rowing_man:"🚣",rowing_woman:"🚣‍♀️",rugby_football:"🏉",running_man:"🏃",running_shirt_with_sash:"🎽",running_woman:"🏃‍♀️",sa:"🈂️",sagittarius:"♐️",sake:"🍶",sandal:"👡",santa:"🎅",satellite:"📡",saxophone:"🎷",school:"🏫",school_satchel:"🎒",scissors:"✂️",scorpion:"🦂",scorpius:"♏️",scream:"😱",scream_cat:"🙀",scroll:"📜",seat:"💺",secret:"㊙️",see_no_evil:"🙈",seedling:"🌱",selfie:"🤳",shallow_pan_of_food:"🥘",shamrock:"☘️",shark:"🦈",shaved_ice:"🍧",sheep:"🐑",shell:"🐚",shield:"🛡",shinto_shrine:"⛩",ship:"🚢",shirt:"👕",shopping:"🛍",shopping_cart:"🛒",shower:"🚿",shrimp:"🦐",signal_strength:"📶",six_pointed_star:"🔯",ski:"🎿",skier:"⛷",skull:"💀",skull_and_crossbones:"☠️",sleeping:"😴",sleeping_bed:"🛌",sleepy:"😪",slightly_frowning_face:"🙁",slightly_smiling_face:"🙂",slot_machine:"🎰",small_airplane:"🛩",small_blue_diamond:"🔹",small_orange_diamond:"🔸",small_red_triangle:"🔺",small_red_triangle_down:"🔻",smile:"😄",smile_cat:"😸",smiley:"😃",smiley_cat:"😺",smiling_imp:"😈",smirk:"😏",smirk_cat:"😼",smoking:"🚬",snail:"🐌",snake:"🐍",sneezing_face:"🤧",snowboarder:"🏂",snowflake:"❄️",snowman:"⛄️",snowman_with_snow:"☃️",sob:"😭",soccer:"⚽️",soon:"🔜",sos:"🆘",sound:"🔉",space_invader:"👾",spades:"♠️",spaghetti:"🍝",sparkle:"❇️",sparkler:"🎇",sparkles:"✨",sparkling_heart:"💖",speak_no_evil:"🙊",speaker:"🔈",speaking_head:"🗣",speech_balloon:"💬",speedboat:"🚤",spider:"🕷",spider_web:"🕸",spiral_calendar:"🗓",spiral_notepad:"🗒",spoon:"🥄",squid:"🦑",stadium:"🏟",star:"⭐️",star2:"🌟",star_and_crescent:"☪️",star_of_david:"✡️",stars:"🌠",station:"🚉",statue_of_liberty:"🗽",steam_locomotive:"🚂",stew:"🍲",stop_button:"⏹",stop_sign:"🛑",stopwatch:"⏱",straight_ruler:"📏",strawberry:"🍓",stuck_out_tongue:"😛",stuck_out_tongue_closed_eyes:"😝",stuck_out_tongue_winking_eye:"😜",studio_microphone:"🎙",stuffed_flatbread:"🥙",sun_behind_large_cloud:"🌥",sun_behind_rain_cloud:"🌦",sun_behind_small_cloud:"🌤",sun_with_face:"🌞",sunflower:"🌻",sunglasses:"😎",sunny:"☀️",sunrise:"🌅",sunrise_over_mountains:"🌄",surfing_man:"🏄",surfing_woman:"🏄‍♀️",sushi:"🍣",suspension_railway:"🚟",sweat:"😓",sweat_drops:"💦",sweat_smile:"😅",sweet_potato:"🍠",swimming_man:"🏊",swimming_woman:"🏊‍♀️",symbols:"🔣",synagogue:"🕍",syringe:"💉",taco:"🌮",tada:"🎉",tanabata_tree:"🎋",taurus:"♉️",taxi:"🚕",tea:"🍵",telephone_receiver:"📞",telescope:"🔭",tennis:"🎾",tent:"⛺️",thermometer:"🌡",thinking:"🤔",thought_balloon:"💭",ticket:"🎫",tickets:"🎟",tiger:"🐯",tiger2:"🐅",timer_clock:"⏲",tipping_hand_man:"💁‍♂️",tired_face:"😫",tm:"™️",toilet:"🚽",tokyo_tower:"🗼",tomato:"🍅",tongue:"👅",top:"🔝",tophat:"🎩",tornado:"🌪",trackball:"🖲",tractor:"🚜",traffic_light:"🚥",train:"🚋",train2:"🚆",tram:"🚊",triangular_flag_on_post:"🚩",triangular_ruler:"📐",trident:"🔱",triumph:"😤",trolleybus:"🚎",trophy:"🏆",tropical_drink:"🍹",tropical_fish:"🐠",truck:"🚚",trumpet:"🎺",tulip:"🌷",tumbler_glass:"🥃",turkey:"🦃",turtle:"🐢",tv:"📺",twisted_rightwards_arrows:"🔀",two_hearts:"💕",two_men_holding_hands:"👬",two_women_holding_hands:"👭",u5272:"🈹",u5408:"🈴",u55b6:"🈺",u6307:"🈯️",u6708:"🈷️",u6709:"🈶",u6e80:"🈵",u7121:"🈚️",u7533:"🈸",u7981:"🈲",u7a7a:"🈳",umbrella:"☔️",unamused:"😒",underage:"🔞",unicorn:"🦄",unlock:"🔓",up:"🆙",upside_down_face:"🙃",v:"✌️",vertical_traffic_light:"🚦",vhs:"📼",vibration_mode:"📳",video_camera:"📹",video_game:"🎮",violin:"🎻",virgo:"♍️",volcano:"🌋",volleyball:"🏐",vs:"🆚",vulcan_salute:"🖖",walking_man:"🚶",walking_woman:"🚶‍♀️",waning_crescent_moon:"🌘",waning_gibbous_moon:"🌖",warning:"⚠️",wastebasket:"🗑",watch:"⌚️",water_buffalo:"🐃",watermelon:"🍉",wave:"👋",wavy_dash:"〰️",waxing_crescent_moon:"🌒",wc:"🚾",weary:"😩",wedding:"💒",weight_lifting_man:"🏋️",weight_lifting_woman:"🏋️‍♀️",whale:"🐳",whale2:"🐋",wheel_of_dharma:"☸️",wheelchair:"♿️",white_check_mark:"✅",white_circle:"⚪️",white_flag:"🏳️",white_flower:"💮",white_large_square:"⬜️",white_medium_small_square:"◽️",white_medium_square:"◻️",white_small_square:"▫️",white_square_button:"🔳",wilted_flower:"🥀",wind_chime:"🎐",wind_face:"🌬",wine_glass:"🍷",wink:"😉",wolf:"🐺",woman:"👩",woman_artist:"👩‍🎨",woman_astronaut:"👩‍🚀",woman_cartwheeling:"🤸‍♀️",woman_cook:"👩‍🍳",woman_facepalming:"🤦‍♀️",woman_factory_worker:"👩‍🏭",woman_farmer:"👩‍🌾",woman_firefighter:"👩‍🚒",woman_health_worker:"👩‍⚕️",woman_judge:"👩‍⚖️",woman_juggling:"🤹‍♀️",woman_mechanic:"👩‍🔧",woman_office_worker:"👩‍💼",woman_pilot:"👩‍✈️",woman_playing_handball:"🤾‍♀️",woman_playing_water_polo:"🤽‍♀️",woman_scientist:"👩‍🔬",woman_shrugging:"🤷‍♀️",woman_singer:"👩‍🎤",woman_student:"👩‍🎓",woman_teacher:"👩‍🏫",woman_technologist:"👩‍💻",woman_with_turban:"👳‍♀️",womans_clothes:"👚",womans_hat:"👒",women_wrestling:"🤼‍♀️",womens:"🚺",world_map:"🗺",worried:"😟",wrench:"🔧",writing_hand:"✍️",x:"❌",yellow_heart:"💛",yen:"💴",yin_yang:"☯️",yum:"😋",zap:"⚡️",zipper_mouth_face:"🤐",zzz:"💤",octocat:':octocat:',showdown:"S"},a.Converter=function(e){"use strict";var t={},r=[],n=[],i={},s=u,p={parsed:{},raw:"",format:""};function h(e,t){if(t=t||null,a.helper.isString(e)){if(t=e=a.helper.stdExtName(e),a.extensions[e])return console.warn("DEPRECATION WARNING: "+e+" is an old extension that uses a deprecated loading method.Please inform the developer that the extension should be updated!"),void function(e,t){"function"==typeof e&&(e=e(new a.Converter));a.helper.isArray(e)||(e=[e]);var i=d(e,t);if(!i.valid)throw Error(i.error);for(var s=0;s[ \t]+¨NBSP;<"),!t){if(!window||!window.document)throw new Error("HTMLParser is undefined. If in a webworker or nodejs environment, you need to provide a WHATWG DOM and HTML such as JSDOM");t=window.document}var r=t.createElement("div");r.innerHTML=e;var n={preList:function(e){for(var t=e.querySelectorAll("pre"),r=[],n=0;n'}else r.push(t[n].innerHTML),t[n].innerHTML="",t[n].setAttribute("prenum",n.toString());return r}(r)};!function e(t){for(var r=0;r? ?(['"].*['"])?\)$/m)>-1)s="";else if(!s){if(i||(i=n.toLowerCase().replace(/ ?\n/g," ")),s="#"+i,a.helper.isUndefined(r.gUrls[i]))return e;s=r.gUrls[i],a.helper.isUndefined(r.gTitles[i])||(u=r.gTitles[i])}var l='"};return e=(e=(e=(e=(e=r.converter._dispatch("anchors.before",e,t,r)).replace(/\[((?:\[[^\]]*]|[^\[\]])*)] ?(?:\n *)?\[(.*?)]()()()()/g,n)).replace(/\[((?:\[[^\]]*]|[^\[\]])*)]()[ \t]*\([ \t]?<([^>]*)>(?:[ \t]*((["'])([^"]*?)\5))?[ \t]?\)/g,n)).replace(/\[((?:\[[^\]]*]|[^\[\]])*)]()[ \t]*\([ \t]??(?:[ \t]*((["'])([^"]*?)\5))?[ \t]?\)/g,n)).replace(/\[([^\[\]]+)]()()()()()/g,n),t.ghMentions&&(e=e.replace(/(^|\s)(\\)?(@([a-z\d]+(?:[a-z\d.-]+?[a-z\d]+)*))/gim,(function(e,r,n,i,s){if("\\"===n)return r+i;if(!a.helper.isString(t.ghMentionsLink))throw new Error("ghMentionsLink option must be a string");var o=t.ghMentionsLink.replace(/\{u}/g,s),c="";return t.openLinksInNewWindow&&(c=' rel="noopener noreferrer" target="¨E95Eblank"'),r+'"+i+""}))),e=r.converter._dispatch("anchors.after",e,t,r)}));var f=/([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+?\.[^'">\s]+?)()(\1)?(?=\s|$)(?!["<>])/gi,g=/([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+\.[^'">\s]+?)([.!?,()\[\]])?(\1)?(?=\s|$)(?!["<>])/gi,m=/()<(((https?|ftp|dict):\/\/|www\.)[^'">\s]+)()>()/gi,y=/(^|\s)(?:mailto:)?([A-Za-z0-9!#$%&'*+-/=?^_`{|}~.]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)(?=$|\s)/gim,b=/<()(?:mailto:)?([-.\w]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)>/gi,_=function(e){"use strict";return function(t,r,n,i,s,o,c){var u=n=n.replace(a.helper.regexes.asteriskDashAndColon,a.helper.escapeCharactersCallback),l="",d="",p=r||"",h=c||"";return/^www\./i.test(n)&&(n=n.replace(/^www\./i,"http://www.")),e.excludeTrailingPunctuationFromURLs&&o&&(l=o),e.openLinksInNewWindow&&(d=' rel="noopener noreferrer" target="¨E95Eblank"'),p+'"+u+""+l+h}},v=function(e,t){"use strict";return function(r,n,i){var s="mailto:";return n=n||"",i=a.subParser("unescapeSpecialChars")(i,e,t),e.encodeEmails?(s=a.helper.encodeEmailAddress(s+i),i=a.helper.encodeEmailAddress(i)):s+=i,n+''+i+""}};a.subParser("autoLinks",(function(e,t,r){"use strict";return e=(e=(e=r.converter._dispatch("autoLinks.before",e,t,r)).replace(m,_(t))).replace(b,v(t,r)),e=r.converter._dispatch("autoLinks.after",e,t,r)})),a.subParser("simplifiedAutoLinks",(function(e,t,r){"use strict";return t.simplifiedAutoLink?(e=r.converter._dispatch("simplifiedAutoLinks.before",e,t,r),e=(e=t.excludeTrailingPunctuationFromURLs?e.replace(g,_(t)):e.replace(f,_(t))).replace(y,v(t,r)),e=r.converter._dispatch("simplifiedAutoLinks.after",e,t,r)):e})),a.subParser("blockGamut",(function(e,t,r){"use strict";return e=r.converter._dispatch("blockGamut.before",e,t,r),e=a.subParser("blockQuotes")(e,t,r),e=a.subParser("headers")(e,t,r),e=a.subParser("horizontalRule")(e,t,r),e=a.subParser("lists")(e,t,r),e=a.subParser("codeBlocks")(e,t,r),e=a.subParser("tables")(e,t,r),e=a.subParser("hashHTMLBlocks")(e,t,r),e=a.subParser("paragraphs")(e,t,r),e=r.converter._dispatch("blockGamut.after",e,t,r)})),a.subParser("blockQuotes",(function(e,t,r){"use strict";e=r.converter._dispatch("blockQuotes.before",e,t,r),e+="\n\n";var n=/(^ {0,3}>[ \t]?.+\n(.+\n)*\n*)+/gm;return t.splitAdjacentBlockquotes&&(n=/^ {0,3}>[\s\S]*?(?:\n\n)/gm),e=e.replace(n,(function(e){return e=(e=(e=e.replace(/^[ \t]*>[ \t]?/gm,"")).replace(/¨0/g,"")).replace(/^[ \t]+$/gm,""),e=a.subParser("githubCodeBlocks")(e,t,r),e=(e=(e=a.subParser("blockGamut")(e,t,r)).replace(/(^|\n)/g,"$1 ")).replace(/(\s*
[^\r]+?<\/pre>)/gm,(function(e,t){var r=t;return r=(r=r.replace(/^  /gm,"¨0")).replace(/¨0/g,"")})),a.subParser("hashBlock")("
\n"+e+"\n
",t,r)})),e=r.converter._dispatch("blockQuotes.after",e,t,r)})),a.subParser("codeBlocks",(function(e,t,r){"use strict";e=r.converter._dispatch("codeBlocks.before",e,t,r);return e=(e=(e+="¨0").replace(/(?:\n\n|^)((?:(?:[ ]{4}|\t).*\n+)+)(\n*[ ]{0,3}[^ \t\n]|(?=¨0))/g,(function(e,n,i){var s=n,o=i,c="\n";return s=a.subParser("outdent")(s,t,r),s=a.subParser("encodeCode")(s,t,r),s=(s=(s=a.subParser("detab")(s,t,r)).replace(/^\n+/g,"")).replace(/\n+$/g,""),t.omitExtraWLInCodeBlocks&&(c=""),s="
"+s+c+"
",a.subParser("hashBlock")(s,t,r)+o}))).replace(/¨0/,""),e=r.converter._dispatch("codeBlocks.after",e,t,r)})),a.subParser("codeSpans",(function(e,t,r){"use strict";return void 0===(e=r.converter._dispatch("codeSpans.before",e,t,r))&&(e=""),e=e.replace(/(^|[^\\])(`+)([^\r]*?[^`])\2(?!`)/gm,(function(e,n,i,s){var o=s;return o=(o=o.replace(/^([ \t]*)/g,"")).replace(/[ \t]*$/g,""),o=n+""+(o=a.subParser("encodeCode")(o,t,r))+"",o=a.subParser("hashHTMLSpans")(o,t,r)})),e=r.converter._dispatch("codeSpans.after",e,t,r)})),a.subParser("completeHTMLDocument",(function(e,t,r){"use strict";if(!t.completeHTMLDocument)return e;e=r.converter._dispatch("completeHTMLDocument.before",e,t,r);var n="html",i="\n",a="",s='\n',o="",c="";for(var u in void 0!==r.metadata.parsed.doctype&&(i="\n","html"!==(n=r.metadata.parsed.doctype.toString().toLowerCase())&&"html5"!==n||(s='')),r.metadata.parsed)if(r.metadata.parsed.hasOwnProperty(u))switch(u.toLowerCase()){case"doctype":break;case"title":a=""+r.metadata.parsed.title+"\n";break;case"charset":s="html"===n||"html5"===n?'\n':'\n';break;case"language":case"lang":o=' lang="'+r.metadata.parsed[u]+'"',c+='\n';break;default:c+='\n'}return e=i+"\n\n"+a+s+c+"\n\n"+e.trim()+"\n\n",e=r.converter._dispatch("completeHTMLDocument.after",e,t,r)})),a.subParser("detab",(function(e,t,r){"use strict";return e=(e=(e=(e=(e=(e=r.converter._dispatch("detab.before",e,t,r)).replace(/\t(?=\t)/g," ")).replace(/\t/g,"¨A¨B")).replace(/¨B(.+?)¨A/g,(function(e,t){for(var r=t,n=4-r.length%4,i=0;i/g,">"),e=r.converter._dispatch("encodeAmpsAndAngles.after",e,t,r)})),a.subParser("encodeBackslashEscapes",(function(e,t,r){"use strict";return e=(e=(e=r.converter._dispatch("encodeBackslashEscapes.before",e,t,r)).replace(/\\(\\)/g,a.helper.escapeCharactersCallback)).replace(/\\([`*_{}\[\]()>#+.!~=|-])/g,a.helper.escapeCharactersCallback),e=r.converter._dispatch("encodeBackslashEscapes.after",e,t,r)})),a.subParser("encodeCode",(function(e,t,r){"use strict";return e=(e=r.converter._dispatch("encodeCode.before",e,t,r)).replace(/&/g,"&").replace(//g,">").replace(/([*_{}\[\]\\=~-])/g,a.helper.escapeCharactersCallback),e=r.converter._dispatch("encodeCode.after",e,t,r)})),a.subParser("escapeSpecialCharsWithinTagAttributes",(function(e,t,r){"use strict";return e=(e=(e=r.converter._dispatch("escapeSpecialCharsWithinTagAttributes.before",e,t,r)).replace(/<\/?[a-z\d_:-]+(?:[\s]+[\s\S]+?)?>/gi,(function(e){return e.replace(/(.)<\/?code>(?=.)/g,"$1`").replace(/([\\`*_~=|])/g,a.helper.escapeCharactersCallback)}))).replace(/-]|-[^>])(?:[^-]|-[^-])*)--)>/gi,(function(e){return e.replace(/([\\`*_~=|])/g,a.helper.escapeCharactersCallback)})),e=r.converter._dispatch("escapeSpecialCharsWithinTagAttributes.after",e,t,r)})),a.subParser("githubCodeBlocks",(function(e,t,r){"use strict";return t.ghCodeBlocks?(e=r.converter._dispatch("githubCodeBlocks.before",e,t,r),e=(e=(e+="¨0").replace(/(?:^|\n)(?: {0,3})(```+|~~~+)(?: *)([^\s`~]*)\n([\s\S]*?)\n(?: {0,3})\1/g,(function(e,n,i,s){var o=t.omitExtraWLInCodeBlocks?"":"\n";return s=a.subParser("encodeCode")(s,t,r),s="
"+(s=(s=(s=a.subParser("detab")(s,t,r)).replace(/^\n+/g,"")).replace(/\n+$/g,""))+o+"
",s=a.subParser("hashBlock")(s,t,r),"\n\n¨G"+(r.ghCodeBlocks.push({text:e,codeblock:s})-1)+"G\n\n"}))).replace(/¨0/,""),r.converter._dispatch("githubCodeBlocks.after",e,t,r)):e})),a.subParser("hashBlock",(function(e,t,r){"use strict";return e=(e=r.converter._dispatch("hashBlock.before",e,t,r)).replace(/(^\n+|\n+$)/g,""),e="\n\n¨K"+(r.gHtmlBlocks.push(e)-1)+"K\n\n",e=r.converter._dispatch("hashBlock.after",e,t,r)})),a.subParser("hashCodeTags",(function(e,t,r){"use strict";e=r.converter._dispatch("hashCodeTags.before",e,t,r);return e=a.helper.replaceRecursiveRegExp(e,(function(e,n,i,s){var o=i+a.subParser("encodeCode")(n,t,r)+s;return"¨C"+(r.gHtmlSpans.push(o)-1)+"C"}),"]*>","","gim"),e=r.converter._dispatch("hashCodeTags.after",e,t,r)})),a.subParser("hashElement",(function(e,t,r){"use strict";return function(e,t){var n=t;return n=(n=(n=n.replace(/\n\n/g,"\n")).replace(/^\n/,"")).replace(/\n+$/g,""),n="\n\n¨K"+(r.gHtmlBlocks.push(n)-1)+"K\n\n"}})),a.subParser("hashHTMLBlocks",(function(e,t,r){"use strict";e=r.converter._dispatch("hashHTMLBlocks.before",e,t,r);var n=["pre","div","h1","h2","h3","h4","h5","h6","blockquote","table","dl","ol","ul","script","noscript","form","fieldset","iframe","math","style","section","header","footer","nav","article","aside","address","audio","canvas","figure","hgroup","output","video","p"],i=function(e,t,n,i){var a=e;return-1!==n.search(/\bmarkdown\b/)&&(a=n+r.converter.makeHtml(t)+i),"\n\n¨K"+(r.gHtmlBlocks.push(a)-1)+"K\n\n"};t.backslashEscapesHTMLTags&&(e=e.replace(/\\<(\/?[^>]+?)>/g,(function(e,t){return"<"+t+">"})));for(var s=0;s]*>)","im"),u="<"+n[s]+"\\b[^>]*>",l="";-1!==(o=a.helper.regexIndexOf(e,c));){var d=a.helper.splitAtIndex(e,o),p=a.helper.replaceRecursiveRegExp(d[1],i,u,l,"im");if(p===d[1])break;e=d[0].concat(p)}return e=e.replace(/(\n {0,3}(<(hr)\b([^<>])*?\/?>)[ \t]*(?=\n{2,}))/g,a.subParser("hashElement")(e,t,r)),e=(e=a.helper.replaceRecursiveRegExp(e,(function(e){return"\n\n¨K"+(r.gHtmlBlocks.push(e)-1)+"K\n\n"}),"^ {0,3}\x3c!--","--\x3e","gm")).replace(/(?:\n\n)( {0,3}(?:<([?%])[^\r]*?\2>)[ \t]*(?=\n{2,}))/g,a.subParser("hashElement")(e,t,r)),e=r.converter._dispatch("hashHTMLBlocks.after",e,t,r)})),a.subParser("hashHTMLSpans",(function(e,t,r){"use strict";function n(e){return"¨C"+(r.gHtmlSpans.push(e)-1)+"C"}return e=(e=(e=(e=(e=r.converter._dispatch("hashHTMLSpans.before",e,t,r)).replace(/<[^>]+?\/>/gi,(function(e){return n(e)}))).replace(/<([^>]+?)>[\s\S]*?<\/\1>/g,(function(e){return n(e)}))).replace(/<([^>]+?)\s[^>]+?>[\s\S]*?<\/\1>/g,(function(e){return n(e)}))).replace(/<[^>]+?>/gi,(function(e){return n(e)})),e=r.converter._dispatch("hashHTMLSpans.after",e,t,r)})),a.subParser("unhashHTMLSpans",(function(e,t,r){"use strict";e=r.converter._dispatch("unhashHTMLSpans.before",e,t,r);for(var n=0;n]*>\\s*]*>","^ {0,3}\\s*
","gim"),e=r.converter._dispatch("hashPreCodeTags.after",e,t,r)})),a.subParser("headers",(function(e,t,r){"use strict";e=r.converter._dispatch("headers.before",e,t,r);var n=isNaN(parseInt(t.headerLevelStart))?1:parseInt(t.headerLevelStart),i=t.smoothLivePreview?/^(.+)[ \t]*\n={2,}[ \t]*\n+/gm:/^(.+)[ \t]*\n=+[ \t]*\n+/gm,s=t.smoothLivePreview?/^(.+)[ \t]*\n-{2,}[ \t]*\n+/gm:/^(.+)[ \t]*\n-+[ \t]*\n+/gm;e=(e=e.replace(i,(function(e,i){var s=a.subParser("spanGamut")(i,t,r),o=t.noHeaderId?"":' id="'+c(i)+'"',u=""+s+"";return a.subParser("hashBlock")(u,t,r)}))).replace(s,(function(e,i){var s=a.subParser("spanGamut")(i,t,r),o=t.noHeaderId?"":' id="'+c(i)+'"',u=n+1,l=""+s+"";return a.subParser("hashBlock")(l,t,r)}));var o=t.requireSpaceBeforeHeadingText?/^(#{1,6})[ \t]+(.+?)[ \t]*#*\n+/gm:/^(#{1,6})[ \t]*(.+?)[ \t]*#*\n+/gm;function c(e){var n,i;if(t.customizedHeaderId){var s=e.match(/\{([^{]+?)}\s*$/);s&&s[1]&&(e=s[1])}return n=e,i=a.helper.isString(t.prefixHeaderId)?t.prefixHeaderId:!0===t.prefixHeaderId?"section-":"",t.rawPrefixHeaderId||(n=i+n),n=t.ghCompatibleHeaderId?n.replace(/ /g,"-").replace(/&/g,"").replace(/¨T/g,"").replace(/¨D/g,"").replace(/[&+$,\/:;=?@"#{}|^¨~\[\]`\\*)(%.!'<>]/g,"").toLowerCase():t.rawHeaderId?n.replace(/ /g,"-").replace(/&/g,"&").replace(/¨T/g,"¨").replace(/¨D/g,"$").replace(/["']/g,"-").toLowerCase():n.replace(/[^\w]/g,"").toLowerCase(),t.rawPrefixHeaderId&&(n=i+n),r.hashLinkCounts[n]?n=n+"-"+r.hashLinkCounts[n]++:r.hashLinkCounts[n]=1,n}return e=e.replace(o,(function(e,i,s){var o=s;t.customizedHeaderId&&(o=s.replace(/\s?\{([^{]+?)}\s*$/,""));var u=a.subParser("spanGamut")(o,t,r),l=t.noHeaderId?"":' id="'+c(s)+'"',d=n-1+i.length,p=""+u+"";return a.subParser("hashBlock")(p,t,r)})),e=r.converter._dispatch("headers.after",e,t,r)})),a.subParser("horizontalRule",(function(e,t,r){"use strict";e=r.converter._dispatch("horizontalRule.before",e,t,r);var n=a.subParser("hashBlock")("
",t,r);return e=(e=(e=e.replace(/^ {0,2}( ?-){3,}[ \t]*$/gm,n)).replace(/^ {0,2}( ?\*){3,}[ \t]*$/gm,n)).replace(/^ {0,2}( ?_){3,}[ \t]*$/gm,n),e=r.converter._dispatch("horizontalRule.after",e,t,r)})),a.subParser("images",(function(e,t,r){"use strict";function n(e,t,n,i,s,o,c,u){var l=r.gUrls,d=r.gTitles,p=r.gDimensions;if(n=n.toLowerCase(),u||(u=""),e.search(/\(? ?(['"].*['"])?\)$/m)>-1)i="";else if(""===i||null===i){if(""!==n&&null!==n||(n=t.toLowerCase().replace(/ ?\n/g," ")),i="#"+n,a.helper.isUndefined(l[n]))return e;i=l[n],a.helper.isUndefined(d[n])||(u=d[n]),a.helper.isUndefined(p[n])||(s=p[n].width,o=p[n].height)}t=t.replace(/"/g,""").replace(a.helper.regexes.asteriskDashAndColon,a.helper.escapeCharactersCallback);var h=''+t+'"}return e=(e=(e=(e=(e=(e=r.converter._dispatch("images.before",e,t,r)).replace(/!\[([^\]]*?)] ?(?:\n *)?\[([\s\S]*?)]()()()()()/g,n)).replace(/!\[([^\]]*?)][ \t]*()\([ \t]??(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(["'])([^"]*?)\6)?[ \t]?\)/g,(function(e,t,r,i,a,s,o,c){return n(e,t,r,i=i.replace(/\s/g,""),a,s,o,c)}))).replace(/!\[([^\]]*?)][ \t]*()\([ \t]?<([^>]*)>(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(?:(["'])([^"]*?)\6))?[ \t]?\)/g,n)).replace(/!\[([^\]]*?)][ \t]*()\([ \t]??(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(["'])([^"]*?)\6)?[ \t]?\)/g,n)).replace(/!\[([^\[\]]+)]()()()()()/g,n),e=r.converter._dispatch("images.after",e,t,r)})),a.subParser("italicsAndBold",(function(e,t,r){"use strict";function n(e,t,r){return t+e+r}return e=r.converter._dispatch("italicsAndBold.before",e,t,r),e=t.literalMidWordUnderscores?(e=(e=e.replace(/\b___(\S[\s\S]*?)___\b/g,(function(e,t){return n(t,"","")}))).replace(/\b__(\S[\s\S]*?)__\b/g,(function(e,t){return n(t,"","")}))).replace(/\b_(\S[\s\S]*?)_\b/g,(function(e,t){return n(t,"","")})):(e=(e=e.replace(/___(\S[\s\S]*?)___/g,(function(e,t){return/\S$/.test(t)?n(t,"",""):e}))).replace(/__(\S[\s\S]*?)__/g,(function(e,t){return/\S$/.test(t)?n(t,"",""):e}))).replace(/_([^\s_][\s\S]*?)_/g,(function(e,t){return/\S$/.test(t)?n(t,"",""):e})),e=t.literalMidWordAsterisks?(e=(e=e.replace(/([^*]|^)\B\*\*\*(\S[\s\S]*?)\*\*\*\B(?!\*)/g,(function(e,t,r){return n(r,t+"","")}))).replace(/([^*]|^)\B\*\*(\S[\s\S]*?)\*\*\B(?!\*)/g,(function(e,t,r){return n(r,t+"","")}))).replace(/([^*]|^)\B\*(\S[\s\S]*?)\*\B(?!\*)/g,(function(e,t,r){return n(r,t+"","")})):(e=(e=e.replace(/\*\*\*(\S[\s\S]*?)\*\*\*/g,(function(e,t){return/\S$/.test(t)?n(t,"",""):e}))).replace(/\*\*(\S[\s\S]*?)\*\*/g,(function(e,t){return/\S$/.test(t)?n(t,"",""):e}))).replace(/\*([^\s*][\s\S]*?)\*/g,(function(e,t){return/\S$/.test(t)?n(t,"",""):e})),e=r.converter._dispatch("italicsAndBold.after",e,t,r)})),a.subParser("lists",(function(e,t,r){"use strict";function n(e,n){r.gListLevel++,e=e.replace(/\n{2,}$/,"\n");var i=/(\n)?(^ {0,3})([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(¨0| {0,3}([*+-]|\d+[.])[ \t]+))/gm,s=/\n[ \t]*\n(?!¨0)/.test(e+="¨0");return t.disableForced4SpacesIndentedSublists&&(i=/(\n)?(^ {0,3})([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(¨0|\2([*+-]|\d+[.])[ \t]+))/gm),e=(e=e.replace(i,(function(e,n,i,o,c,u,l){l=l&&""!==l.trim();var d=a.subParser("outdent")(c,t,r),p="";return u&&t.tasklists&&(p=' class="task-list-item" style="list-style-type: none;"',d=d.replace(/^[ \t]*\[(x|X| )?]/m,(function(){var e='-1?(d=a.subParser("githubCodeBlocks")(d,t,r),d=a.subParser("blockGamut")(d,t,r)):(d=(d=a.subParser("lists")(d,t,r)).replace(/\n$/,""),d=(d=a.subParser("hashHTMLBlocks")(d,t,r)).replace(/\n\n+/g,"\n\n"),d=s?a.subParser("paragraphs")(d,t,r):a.subParser("spanGamut")(d,t,r)),d=""+(d=d.replace("¨A",""))+"\n"}))).replace(/¨0/g,""),r.gListLevel--,n&&(e=e.replace(/\s+$/,"")),e}function i(e,t){if("ol"===t){var r=e.match(/^ *(\d+)\./);if(r&&"1"!==r[1])return' start="'+r[1]+'"'}return""}function s(e,r,a){var s=t.disableForced4SpacesIndentedSublists?/^ ?\d+\.[ \t]/gm:/^ {0,3}\d+\.[ \t]/gm,o=t.disableForced4SpacesIndentedSublists?/^ ?[*+-][ \t]/gm:/^ {0,3}[*+-][ \t]/gm,c="ul"===r?s:o,u="";if(-1!==e.search(c))!function t(l){var d=l.search(c),p=i(e,r);-1!==d?(u+="\n\n<"+r+p+">\n"+n(l.slice(0,d),!!a)+"\n",c="ul"===(r="ul"===r?"ol":"ul")?s:o,t(l.slice(d))):u+="\n\n<"+r+p+">\n"+n(l,!!a)+"\n"}(e);else{var l=i(e,r);u="\n\n<"+r+l+">\n"+n(e,!!a)+"\n"}return u}return e=r.converter._dispatch("lists.before",e,t,r),e+="¨0",e=(e=r.gListLevel?e.replace(/^(( {0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(¨0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm,(function(e,t,r){return s(t,r.search(/[*+-]/g)>-1?"ul":"ol",!0)})):e.replace(/(\n\n|^\n?)(( {0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(¨0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm,(function(e,t,r,n){return s(r,n.search(/[*+-]/g)>-1?"ul":"ol",!1)}))).replace(/¨0/,""),e=r.converter._dispatch("lists.after",e,t,r)})),a.subParser("metadata",(function(e,t,r){"use strict";if(!t.metadata)return e;function n(e){r.metadata.raw=e,(e=(e=e.replace(/&/g,"&").replace(/"/g,""")).replace(/\n {4}/g," ")).replace(/^([\S ]+): +([\s\S]+?)$/gm,(function(e,t,n){return r.metadata.parsed[t]=n,""}))}return e=(e=(e=(e=r.converter._dispatch("metadata.before",e,t,r)).replace(/^\s*«««+(\S*?)\n([\s\S]+?)\n»»»+\n/,(function(e,t,r){return n(r),"¨M"}))).replace(/^\s*---+(\S*?)\n([\s\S]+?)\n---+\n/,(function(e,t,i){return t&&(r.metadata.format=t),n(i),"¨M"}))).replace(/¨M/g,""),e=r.converter._dispatch("metadata.after",e,t,r)})),a.subParser("outdent",(function(e,t,r){"use strict";return e=(e=(e=r.converter._dispatch("outdent.before",e,t,r)).replace(/^(\t|[ ]{1,4})/gm,"¨0")).replace(/¨0/g,""),e=r.converter._dispatch("outdent.after",e,t,r)})),a.subParser("paragraphs",(function(e,t,r){"use strict";for(var n=(e=(e=(e=r.converter._dispatch("paragraphs.before",e,t,r)).replace(/^\n+/g,"")).replace(/\n+$/g,"")).split(/\n{2,}/g),i=[],s=n.length,o=0;o=0?i.push(c):c.search(/\S/)>=0&&(c=(c=a.subParser("spanGamut")(c,t,r)).replace(/^([ \t]*)/g,"

"),c+="

",i.push(c))}for(s=i.length,o=0;o]*>\s*]*>/.test(l)&&(d=!0)}i[o]=l}return e=(e=(e=i.join("\n")).replace(/^\n+/g,"")).replace(/\n+$/g,""),r.converter._dispatch("paragraphs.after",e,t,r)})),a.subParser("runExtension",(function(e,t,r,n){"use strict";if(e.filter)t=e.filter(t,n.converter,r);else if(e.regex){var i=e.regex;i instanceof RegExp||(i=new RegExp(i,"g")),t=t.replace(i,e.replace)}return t})),a.subParser("spanGamut",(function(e,t,r){"use strict";return e=r.converter._dispatch("spanGamut.before",e,t,r),e=a.subParser("codeSpans")(e,t,r),e=a.subParser("escapeSpecialCharsWithinTagAttributes")(e,t,r),e=a.subParser("encodeBackslashEscapes")(e,t,r),e=a.subParser("images")(e,t,r),e=a.subParser("anchors")(e,t,r),e=a.subParser("autoLinks")(e,t,r),e=a.subParser("simplifiedAutoLinks")(e,t,r),e=a.subParser("emoji")(e,t,r),e=a.subParser("underline")(e,t,r),e=a.subParser("italicsAndBold")(e,t,r),e=a.subParser("strikethrough")(e,t,r),e=a.subParser("ellipsis")(e,t,r),e=a.subParser("hashHTMLSpans")(e,t,r),e=a.subParser("encodeAmpsAndAngles")(e,t,r),t.simpleLineBreaks?/\n\n¨K/.test(e)||(e=e.replace(/\n+/g,"
\n")):e=e.replace(/ +\n/g,"
\n"),e=r.converter._dispatch("spanGamut.after",e,t,r)})),a.subParser("strikethrough",(function(e,t,r){"use strict";return t.strikethrough&&(e=(e=r.converter._dispatch("strikethrough.before",e,t,r)).replace(/(?:~){2}([\s\S]+?)(?:~){2}/g,(function(e,n){return function(e){return t.simplifiedAutoLink&&(e=a.subParser("simplifiedAutoLinks")(e,t,r)),""+e+""}(n)})),e=r.converter._dispatch("strikethrough.after",e,t,r)),e})),a.subParser("stripLinkDefinitions",(function(e,t,r){"use strict";var n=function(e,n,i,s,o,c,u){return n=n.toLowerCase(),i.match(/^data:.+?\/.+?;base64,/)?r.gUrls[n]=i.replace(/\s/g,""):r.gUrls[n]=a.subParser("encodeAmpsAndAngles")(i,t,r),c?c+u:(u&&(r.gTitles[n]=u.replace(/"|'/g,""")),t.parseImgDimensions&&s&&o&&(r.gDimensions[n]={width:s,height:o}),"")};return e=(e=(e=(e+="¨0").replace(/^ {0,3}\[(.+)]:[ \t]*\n?[ \t]*?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n\n|(?=¨0)|(?=\n\[))/gm,n)).replace(/^ {0,3}\[(.+)]:[ \t]*\n?[ \t]*\s]+)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n+|(?=¨0))/gm,n)).replace(/¨0/,"")})),a.subParser("tables",(function(e,t,r){"use strict";if(!t.tables)return e;function n(e,n){return""+a.subParser("spanGamut")(e,t,r)+"\n"}function i(e){var i,s=e.split("\n");for(i=0;i"+(c=a.subParser("spanGamut")(c,t,r))+"\n"));for(i=0;i\n\n\n",i=0;i\n";for(var a=0;a\n"}return r+="\n\n"}(f,m)}return e=(e=(e=(e=r.converter._dispatch("tables.before",e,t,r)).replace(/\\(\|)/g,a.helper.escapeCharactersCallback)).replace(/^ {0,3}\|?.+\|.+\n {0,3}\|?[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*:?[ \t]*(?:[-=]){2,}[\s\S]+?(?:\n\n|¨0)/gm,i)).replace(/^ {0,3}\|.+\|[ \t]*\n {0,3}\|[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*\n( {0,3}\|.+\|[ \t]*\n)*(?:\n|¨0)/gm,i),e=r.converter._dispatch("tables.after",e,t,r)})),a.subParser("underline",(function(e,t,r){"use strict";return t.underline?(e=r.converter._dispatch("underline.before",e,t,r),e=(e=t.literalMidWordUnderscores?(e=e.replace(/\b___(\S[\s\S]*?)___\b/g,(function(e,t){return""+t+""}))).replace(/\b__(\S[\s\S]*?)__\b/g,(function(e,t){return""+t+""})):(e=e.replace(/___(\S[\s\S]*?)___/g,(function(e,t){return/\S$/.test(t)?""+t+"":e}))).replace(/__(\S[\s\S]*?)__/g,(function(e,t){return/\S$/.test(t)?""+t+"":e}))).replace(/(_)/g,a.helper.escapeCharactersCallback),e=r.converter._dispatch("underline.after",e,t,r)):e})),a.subParser("unescapeSpecialChars",(function(e,t,r){"use strict";return e=(e=r.converter._dispatch("unescapeSpecialChars.before",e,t,r)).replace(/¨E(\d+)E/g,(function(e,t){var r=parseInt(t);return String.fromCharCode(r)})),e=r.converter._dispatch("unescapeSpecialChars.after",e,t,r)})),a.subParser("makeMarkdown.blockquote",(function(e,t){"use strict";var r="";if(e.hasChildNodes())for(var n=e.childNodes,i=n.length,s=0;s ")})),a.subParser("makeMarkdown.codeBlock",(function(e,t){"use strict";var r=e.getAttribute("language"),n=e.getAttribute("precodenum");return"```"+r+"\n"+t.preList[n]+"\n```"})),a.subParser("makeMarkdown.codeSpan",(function(e){"use strict";return"`"+e.innerHTML+"`"})),a.subParser("makeMarkdown.emphasis",(function(e,t){"use strict";var r="";if(e.hasChildNodes()){r+="*";for(var n=e.childNodes,i=n.length,s=0;s",e.hasAttribute("width")&&e.hasAttribute("height")&&(t+=" ="+e.getAttribute("width")+"x"+e.getAttribute("height")),e.hasAttribute("title")&&(t+=' "'+e.getAttribute("title")+'"'),t+=")"),t})),a.subParser("makeMarkdown.links",(function(e,t){"use strict";var r="";if(e.hasChildNodes()&&e.hasAttribute("href")){var n=e.childNodes,i=n.length;r="[";for(var s=0;s",e.hasAttribute("title")&&(r+=' "'+e.getAttribute("title")+'"'),r+=")"}return r})),a.subParser("makeMarkdown.list",(function(e,t,r){"use strict";var n="";if(!e.hasChildNodes())return"";for(var i=e.childNodes,s=i.length,o=e.getAttribute("start")||1,c=0;c"+t.preList[r]+""})),a.subParser("makeMarkdown.strikethrough",(function(e,t){"use strict";var r="";if(e.hasChildNodes()){r+="~~";for(var n=e.childNodes,i=n.length,s=0;str>th"),c=e.querySelectorAll("tbody>tr");for(r=0;rf&&(f=g)}for(r=0;r/g,"\\$1>")).replace(/^#/gm,"\\#")).replace(/^(\s*)([-=]{3,})(\s*)$/,"$1\\$2$3")).replace(/^( {0,3}\d+)\./gm,"$1\\.")).replace(/^( {0,3})([+-])/gm,"$1\\$2")).replace(/]([\s]*)\(/g,"\\]$1\\(")).replace(/^ {0,3}\[([\S \t]*?)]:/gm,"\\[$1]:")}));void 0===(n=function(){"use strict";return a}.call(t,r,t,e))||(e.exports=n)}).call(this)},function(e,t,r){"use strict";r.r(t);"function"==typeof Symbol&&null!=Symbol.iterator&&Symbol.iterator,"function"==typeof Symbol&&null!=Symbol.asyncIterator&&Symbol.asyncIterator;var n="function"==typeof Symbol&&null!=Symbol.toStringTag?Symbol.toStringTag:"@@toStringTag",i="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):void 0;function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e){return o(e,[])}function o(e,t){switch(a(e)){case"string":return JSON.stringify(e);case"function":return e.name?"[function ".concat(e.name,"]"):"[function]";case"object":return null===e?"null":function(e,t){if(-1!==t.indexOf(e))return"[Circular]";var r=[].concat(t,[e]),n=function(e){var t=e[String(i)];if("function"==typeof t)return t;if("function"==typeof e.inspect)return e.inspect}(e);if(void 0!==n){var a=n.call(e);if(a!==e)return"string"==typeof a?a:o(a,r)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>2)return"[Array]";for(var r=Math.min(10,e.length),n=e.length-r,i=[],a=0;a1&&i.push("... ".concat(n," more items"));return"["+i.join(", ")+"]"}(e,r);return function(e,t){var r=Object.keys(e);if(0===r.length)return"{}";if(t.length>2)return"["+function(e){var t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){var r=e.constructor.name;if("string"==typeof r&&""!==r)return r}return t}(e)+"]";return"{ "+r.map((function(r){return r+": "+o(e[r],t)})).join(", ")+" }"}(e,r)}(e,t);default:return String(e)}}function c(e,t){if(!Boolean(e))throw new Error(t)}var u=function(e,t){return e instanceof t};function l(e,t){for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:"GraphQL request",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{line:1,column:1};"string"==typeof e||c(0,"Body must be a string. Received: ".concat(s(e),".")),this.body=e,this.name=t,this.locationOffset=r,this.locationOffset.line>0||c(0,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||c(0,"column in locationOffset is 1-indexed and must be positive.")}var t,r,i;return t=e,(r=[{key:n,get:function(){return"Source"}}])&&l(t.prototype,r),i&&l(t,i),e}();function p(e,t){for(var r,n=/\r\n|[\n\r]/g,i=1,a=t+1;(r=n.exec(e.body))&&r.index120){for(var p=Math.floor(c/80),h=c%80,f=[],y=0;y",EOF:"",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"});function _(e){return(_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function v(e){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function w(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function S(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function T(e,t){for(var r=0;r0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=a&&a.stack?(Object.defineProperty(O(h),"stack",{value:a.stack,writable:!0,configurable:!0}),E(h)):(Error.captureStackTrace?Error.captureStackTrace(O(h),c):Object.defineProperty(O(h),"stack",{value:Error().stack,writable:!0,configurable:!0}),h)}return i=c,(a=[{key:"toString",value:function(){return function(e){var t=e.message;if(e.nodes)for(var r=0,n=e.nodes;ri&&q(t[a-1]);)--a;return t.slice(i,a).join("\n")}function q(e){for(var t=0;t31||9===a));return new L(b.COMMENT,t,o,r,n,i,s.slice(t+1,o))}function z(e,t,r,n,i,a){var s=e.body,o=r,c=t,u=!1;if(45===o&&(o=s.charCodeAt(++c)),48===o){if((o=s.charCodeAt(++c))>=48&&o<=57)throw C(e,c,"Invalid number, unexpected digit after 0: ".concat(U(o),"."))}else c=Q(e,c,o),o=s.charCodeAt(c);if(46===o&&(u=!0,o=s.charCodeAt(++c),c=Q(e,c,o),o=s.charCodeAt(c)),69!==o&&101!==o||(u=!0,43!==(o=s.charCodeAt(++c))&&45!==o||(o=s.charCodeAt(++c)),c=Q(e,c,o),o=s.charCodeAt(c)),46===o||function(e){return 95===e||e>=65&&e<=90||e>=97&&e<=122}(o))throw C(e,c,"Invalid number, expected digit but got: ".concat(U(o),"."));return new L(u?b.FLOAT:b.INT,t,c,n,i,a,s.slice(t,c))}function Q(e,t,r){var n=e.body,i=t,a=r;if(a>=48&&a<=57){do{a=n.charCodeAt(++i)}while(a>=48&&a<=57);return i}throw C(e,i,"Invalid number, expected digit but got: ".concat(U(a),"."))}function $(e,t,r,n,i){for(var a,s,o,c,u=e.body,l=t+1,d=l,p=0,h="";l=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function K(e,t,r,n,i){for(var a=e.body,s=a.length,o=t+1,c=0;o!==s&&!isNaN(c=a.charCodeAt(o))&&(95===c||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122);)++o;return new L(b.NAME,t,o,r,n,i,a.slice(t,o))}var J=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION"});function W(e,t){return new te(e,t).parseDocument()}function Z(e,t){var r=new te(e,t);r.expectToken(b.SOF);var n=r.parseValueLiteral(!1);return r.expectToken(b.EOF),n}function ee(e,t){var r=new te(e,t);r.expectToken(b.SOF);var n=r.parseTypeReference();return r.expectToken(b.EOF),n}var te=function(){function e(e,t){var r=function(e){return u(e,d)}(e)?e:new d(e);this._lexer=new B(r),this._options=t}var t=e.prototype;return t.parseName=function(){var e=this.expectToken(b.NAME);return{kind:y.NAME,value:e.value,loc:this.loc(e)}},t.parseDocument=function(){var e=this._lexer.token;return{kind:y.DOCUMENT,definitions:this.many(b.SOF,this.parseDefinition,b.EOF),loc:this.loc(e)}},t.parseDefinition=function(){if(this.peek(b.NAME))switch(this._lexer.token.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return this.parseTypeSystemDefinition();case"extend":return this.parseTypeSystemExtension()}else{if(this.peek(b.BRACE_L))return this.parseOperationDefinition();if(this.peekDescription())return this.parseTypeSystemDefinition()}throw this.unexpected()},t.parseOperationDefinition=function(){var e=this._lexer.token;if(this.peek(b.BRACE_L))return{kind:y.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(e)};var t,r=this.parseOperationType();return this.peek(b.NAME)&&(t=this.parseName()),{kind:y.OPERATION_DEFINITION,operation:r,name:t,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseOperationType=function(){var e=this.expectToken(b.NAME);switch(e.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(e)},t.parseVariableDefinitions=function(){return this.optionalMany(b.PAREN_L,this.parseVariableDefinition,b.PAREN_R)},t.parseVariableDefinition=function(){var e=this._lexer.token;return{kind:y.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(b.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(b.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(e)}},t.parseVariable=function(){var e=this._lexer.token;return this.expectToken(b.DOLLAR),{kind:y.VARIABLE,name:this.parseName(),loc:this.loc(e)}},t.parseSelectionSet=function(){var e=this._lexer.token;return{kind:y.SELECTION_SET,selections:this.many(b.BRACE_L,this.parseSelection,b.BRACE_R),loc:this.loc(e)}},t.parseSelection=function(){return this.peek(b.SPREAD)?this.parseFragment():this.parseField()},t.parseField=function(){var e,t,r=this._lexer.token,n=this.parseName();return this.expectOptionalToken(b.COLON)?(e=n,t=this.parseName()):t=n,{kind:y.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(b.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(r)}},t.parseArguments=function(e){var t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(b.PAREN_L,t,b.PAREN_R)},t.parseArgument=function(){var e=this._lexer.token,t=this.parseName();return this.expectToken(b.COLON),{kind:y.ARGUMENT,name:t,value:this.parseValueLiteral(!1),loc:this.loc(e)}},t.parseConstArgument=function(){var e=this._lexer.token;return{kind:y.ARGUMENT,name:this.parseName(),value:(this.expectToken(b.COLON),this.parseValueLiteral(!0)),loc:this.loc(e)}},t.parseFragment=function(){var e=this._lexer.token;this.expectToken(b.SPREAD);var t=this.expectOptionalKeyword("on");return!t&&this.peek(b.NAME)?{kind:y.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(e)}:{kind:y.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseFragmentDefinition=function(){var e,t=this._lexer.token;return this.expectKeyword("fragment"),!0===(null===(e=this._options)||void 0===e?void 0:e.experimentalFragmentVariables)?{kind:y.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}:{kind:y.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}},t.parseFragmentName=function(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()},t.parseValueLiteral=function(e){var t=this._lexer.token;switch(t.kind){case b.BRACKET_L:return this.parseList(e);case b.BRACE_L:return this.parseObject(e);case b.INT:return this._lexer.advance(),{kind:y.INT,value:t.value,loc:this.loc(t)};case b.FLOAT:return this._lexer.advance(),{kind:y.FLOAT,value:t.value,loc:this.loc(t)};case b.STRING:case b.BLOCK_STRING:return this.parseStringLiteral();case b.NAME:switch(this._lexer.advance(),t.value){case"true":return{kind:y.BOOLEAN,value:!0,loc:this.loc(t)};case"false":return{kind:y.BOOLEAN,value:!1,loc:this.loc(t)};case"null":return{kind:y.NULL,loc:this.loc(t)};default:return{kind:y.ENUM,value:t.value,loc:this.loc(t)}}case b.DOLLAR:if(!e)return this.parseVariable()}throw this.unexpected()},t.parseStringLiteral=function(){var e=this._lexer.token;return this._lexer.advance(),{kind:y.STRING,value:e.value,block:e.kind===b.BLOCK_STRING,loc:this.loc(e)}},t.parseList=function(e){var t=this,r=this._lexer.token;return{kind:y.LIST,values:this.any(b.BRACKET_L,(function(){return t.parseValueLiteral(e)}),b.BRACKET_R),loc:this.loc(r)}},t.parseObject=function(e){var t=this,r=this._lexer.token;return{kind:y.OBJECT,fields:this.any(b.BRACE_L,(function(){return t.parseObjectField(e)}),b.BRACE_R),loc:this.loc(r)}},t.parseObjectField=function(e){var t=this._lexer.token,r=this.parseName();return this.expectToken(b.COLON),{kind:y.OBJECT_FIELD,name:r,value:this.parseValueLiteral(e),loc:this.loc(t)}},t.parseDirectives=function(e){for(var t=[];this.peek(b.AT);)t.push(this.parseDirective(e));return t},t.parseDirective=function(e){var t=this._lexer.token;return this.expectToken(b.AT),{kind:y.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e),loc:this.loc(t)}},t.parseTypeReference=function(){var e,t=this._lexer.token;return this.expectOptionalToken(b.BRACKET_L)?(e=this.parseTypeReference(),this.expectToken(b.BRACKET_R),e={kind:y.LIST_TYPE,type:e,loc:this.loc(t)}):e=this.parseNamedType(),this.expectOptionalToken(b.BANG)?{kind:y.NON_NULL_TYPE,type:e,loc:this.loc(t)}:e},t.parseNamedType=function(){var e=this._lexer.token;return{kind:y.NAMED_TYPE,name:this.parseName(),loc:this.loc(e)}},t.parseTypeSystemDefinition=function(){var e=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(e.kind===b.NAME)switch(e.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}throw this.unexpected(e)},t.peekDescription=function(){return this.peek(b.STRING)||this.peek(b.BLOCK_STRING)},t.parseDescription=function(){if(this.peekDescription())return this.parseStringLiteral()},t.parseSchemaDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");var r=this.parseDirectives(!0),n=this.many(b.BRACE_L,this.parseOperationTypeDefinition,b.BRACE_R);return{kind:y.SCHEMA_DEFINITION,description:t,directives:r,operationTypes:n,loc:this.loc(e)}},t.parseOperationTypeDefinition=function(){var e=this._lexer.token,t=this.parseOperationType();this.expectToken(b.COLON);var r=this.parseNamedType();return{kind:y.OPERATION_TYPE_DEFINITION,operation:t,type:r,loc:this.loc(e)}},t.parseScalarTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");var r=this.parseName(),n=this.parseDirectives(!0);return{kind:y.SCALAR_TYPE_DEFINITION,description:t,name:r,directives:n,loc:this.loc(e)}},t.parseObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");var r=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),a=this.parseFieldsDefinition();return{kind:y.OBJECT_TYPE_DEFINITION,description:t,name:r,interfaces:n,directives:i,fields:a,loc:this.loc(e)}},t.parseImplementsInterfaces=function(){var e;if(!this.expectOptionalKeyword("implements"))return[];if(!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacySDLImplementsInterfaces)){var t=[];this.expectOptionalToken(b.AMP);do{t.push(this.parseNamedType())}while(this.expectOptionalToken(b.AMP)||this.peek(b.NAME));return t}return this.delimitedMany(b.AMP,this.parseNamedType)},t.parseFieldsDefinition=function(){var e;return!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacySDLEmptyFields)&&this.peek(b.BRACE_L)&&this._lexer.lookahead().kind===b.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(b.BRACE_L,this.parseFieldDefinition,b.BRACE_R)},t.parseFieldDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),r=this.parseName(),n=this.parseArgumentDefs();this.expectToken(b.COLON);var i=this.parseTypeReference(),a=this.parseDirectives(!0);return{kind:y.FIELD_DEFINITION,description:t,name:r,arguments:n,type:i,directives:a,loc:this.loc(e)}},t.parseArgumentDefs=function(){return this.optionalMany(b.PAREN_L,this.parseInputValueDef,b.PAREN_R)},t.parseInputValueDef=function(){var e=this._lexer.token,t=this.parseDescription(),r=this.parseName();this.expectToken(b.COLON);var n,i=this.parseTypeReference();this.expectOptionalToken(b.EQUALS)&&(n=this.parseValueLiteral(!0));var a=this.parseDirectives(!0);return{kind:y.INPUT_VALUE_DEFINITION,description:t,name:r,type:i,defaultValue:n,directives:a,loc:this.loc(e)}},t.parseInterfaceTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");var r=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),a=this.parseFieldsDefinition();return{kind:y.INTERFACE_TYPE_DEFINITION,description:t,name:r,interfaces:n,directives:i,fields:a,loc:this.loc(e)}},t.parseUnionTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");var r=this.parseName(),n=this.parseDirectives(!0),i=this.parseUnionMemberTypes();return{kind:y.UNION_TYPE_DEFINITION,description:t,name:r,directives:n,types:i,loc:this.loc(e)}},t.parseUnionMemberTypes=function(){return this.expectOptionalToken(b.EQUALS)?this.delimitedMany(b.PIPE,this.parseNamedType):[]},t.parseEnumTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");var r=this.parseName(),n=this.parseDirectives(!0),i=this.parseEnumValuesDefinition();return{kind:y.ENUM_TYPE_DEFINITION,description:t,name:r,directives:n,values:i,loc:this.loc(e)}},t.parseEnumValuesDefinition=function(){return this.optionalMany(b.BRACE_L,this.parseEnumValueDefinition,b.BRACE_R)},t.parseEnumValueDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),r=this.parseName(),n=this.parseDirectives(!0);return{kind:y.ENUM_VALUE_DEFINITION,description:t,name:r,directives:n,loc:this.loc(e)}},t.parseInputObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");var r=this.parseName(),n=this.parseDirectives(!0),i=this.parseInputFieldsDefinition();return{kind:y.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:r,directives:n,fields:i,loc:this.loc(e)}},t.parseInputFieldsDefinition=function(){return this.optionalMany(b.BRACE_L,this.parseInputValueDef,b.BRACE_R)},t.parseTypeSystemExtension=function(){var e=this._lexer.lookahead();if(e.kind===b.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)},t.parseSchemaExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var t=this.parseDirectives(!0),r=this.optionalMany(b.BRACE_L,this.parseOperationTypeDefinition,b.BRACE_R);if(0===t.length&&0===r.length)throw this.unexpected();return{kind:y.SCHEMA_EXTENSION,directives:t,operationTypes:r,loc:this.loc(e)}},t.parseScalarTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var t=this.parseName(),r=this.parseDirectives(!0);if(0===r.length)throw this.unexpected();return{kind:y.SCALAR_TYPE_EXTENSION,name:t,directives:r,loc:this.loc(e)}},t.parseObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var t=this.parseName(),r=this.parseImplementsInterfaces(),n=this.parseDirectives(!0),i=this.parseFieldsDefinition();if(0===r.length&&0===n.length&&0===i.length)throw this.unexpected();return{kind:y.OBJECT_TYPE_EXTENSION,name:t,interfaces:r,directives:n,fields:i,loc:this.loc(e)}},t.parseInterfaceTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var t=this.parseName(),r=this.parseImplementsInterfaces(),n=this.parseDirectives(!0),i=this.parseFieldsDefinition();if(0===r.length&&0===n.length&&0===i.length)throw this.unexpected();return{kind:y.INTERFACE_TYPE_EXTENSION,name:t,interfaces:r,directives:n,fields:i,loc:this.loc(e)}},t.parseUnionTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var t=this.parseName(),r=this.parseDirectives(!0),n=this.parseUnionMemberTypes();if(0===r.length&&0===n.length)throw this.unexpected();return{kind:y.UNION_TYPE_EXTENSION,name:t,directives:r,types:n,loc:this.loc(e)}},t.parseEnumTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var t=this.parseName(),r=this.parseDirectives(!0),n=this.parseEnumValuesDefinition();if(0===r.length&&0===n.length)throw this.unexpected();return{kind:y.ENUM_TYPE_EXTENSION,name:t,directives:r,values:n,loc:this.loc(e)}},t.parseInputObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var t=this.parseName(),r=this.parseDirectives(!0),n=this.parseInputFieldsDefinition();if(0===r.length&&0===n.length)throw this.unexpected();return{kind:y.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:r,fields:n,loc:this.loc(e)}},t.parseDirectiveDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(b.AT);var r=this.parseName(),n=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var a=this.parseDirectiveLocations();return{kind:y.DIRECTIVE_DEFINITION,description:t,name:r,arguments:n,repeatable:i,locations:a,loc:this.loc(e)}},t.parseDirectiveLocations=function(){return this.delimitedMany(b.PIPE,this.parseDirectiveLocation)},t.parseDirectiveLocation=function(){var e=this._lexer.token,t=this.parseName();if(void 0!==J[t.value])return t;throw this.unexpected(e)},t.loc=function(e){var t;if(!0!==(null===(t=this._options)||void 0===t?void 0:t.noLocation))return new D(e,this._lexer.lastToken,this._lexer.source)},t.peek=function(e){return this._lexer.token.kind===e},t.expectToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t;throw C(this._lexer.source,t.start,"Expected ".concat(ne(e),", found ").concat(re(t),"."))},t.expectOptionalToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t},t.expectKeyword=function(e){var t=this._lexer.token;if(t.kind!==b.NAME||t.value!==e)throw C(this._lexer.source,t.start,'Expected "'.concat(e,'", found ').concat(re(t),"."));this._lexer.advance()},t.expectOptionalKeyword=function(e){var t=this._lexer.token;return t.kind===b.NAME&&t.value===e&&(this._lexer.advance(),!0)},t.unexpected=function(e){var t=null!=e?e:this._lexer.token;return C(this._lexer.source,t.start,"Unexpected ".concat(re(t),"."))},t.any=function(e,t,r){this.expectToken(e);for(var n=[];!this.expectOptionalToken(r);)n.push(t.call(this));return n},t.optionalMany=function(e,t,r){if(this.expectOptionalToken(e)){var n=[];do{n.push(t.call(this))}while(!this.expectOptionalToken(r));return n}return[]},t.many=function(e,t,r){this.expectToken(e);var n=[];do{n.push(t.call(this))}while(!this.expectOptionalToken(r));return n},t.delimitedMany=function(e,t){this.expectOptionalToken(e);var r=[];do{r.push(t.call(this))}while(this.expectOptionalToken(e));return r},e}();function re(e){var t=e.value;return ne(e.kind)+(null!=t?' "'.concat(t,'"'):"")}function ne(e){return function(e){return e===b.BANG||e===b.DOLLAR||e===b.AMP||e===b.PAREN_L||e===b.PAREN_R||e===b.SPREAD||e===b.COLON||e===b.EQUALS||e===b.AT||e===b.BRACKET_L||e===b.BRACKET_R||e===b.BRACE_L||e===b.PIPE||e===b.BRACE_R}(e)?'"'.concat(e,'"'):e}var ie={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},ae=Object.freeze({});function se(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ie,n=void 0,i=Array.isArray(e),a=[e],o=-1,c=[],u=void 0,l=void 0,d=void 0,p=[],h=[],f=e;do{var g=++o===a.length,m=g&&0!==c.length;if(g){if(l=0===h.length?void 0:p[p.length-1],u=d,d=h.pop(),m){if(i)u=u.slice();else{for(var y={},b=0,_=Object.keys(u);b<_.length;b++){var v=_[b];y[v]=u[v]}u=y}for(var w=0,S=0;S80&&(o=s+fe("(\n",ge(pe(n,"\n")),"\n)")),pe([o,pe(i," "),a]," ")},Argument:function(e){return e.name+": "+e.value},FragmentSpread:function(e){return"..."+e.name+fe(" ",pe(e.directives," "))},InlineFragment:function(e){var t=e.typeCondition,r=e.directives,n=e.selectionSet;return pe(["...",fe("on ",t),pe(r," "),n]," ")},FragmentDefinition:function(e){var t=e.name,r=e.typeCondition,n=e.variableDefinitions,i=e.directives,a=e.selectionSet;return"fragment ".concat(t).concat(fe("(",pe(n,", "),")")," ")+"on ".concat(r," ").concat(fe("",pe(i," ")," "))+a},IntValue:function(e){return e.value},FloatValue:function(e){return e.value},StringValue:function(e,t){var r=e.value;return e.block?function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=-1===e.indexOf("\n"),i=" "===e[0]||"\t"===e[0],a='"'===e[e.length-1],s="\\"===e[e.length-1],o=!n||a||s||r,c="";return!o||n&&i||(c+="\n"+t),c+=t?e.replace(/\n/g,"\n"+t):e,o&&(c+="\n"),'"""'+c.replace(/"""/g,'\\"""')+'"""'}(r,"description"===t?"":" "):JSON.stringify(r)},BooleanValue:function(e){return e.value?"true":"false"},NullValue:function(){return"null"},EnumValue:function(e){return e.value},ListValue:function(e){return"["+pe(e.values,", ")+"]"},ObjectValue:function(e){return"{"+pe(e.fields,", ")+"}"},ObjectField:function(e){return e.name+": "+e.value},Directive:function(e){return"@"+e.name+fe("(",pe(e.arguments,", "),")")},NamedType:function(e){return e.name},ListType:function(e){return"["+e.type+"]"},NonNullType:function(e){return e.type+"!"},SchemaDefinition:de((function(e){var t=e.directives,r=e.operationTypes;return pe(["schema",pe(t," "),he(r)]," ")})),OperationTypeDefinition:function(e){return e.operation+": "+e.type},ScalarTypeDefinition:de((function(e){return pe(["scalar",e.name,pe(e.directives," ")]," ")})),ObjectTypeDefinition:de((function(e){var t=e.name,r=e.interfaces,n=e.directives,i=e.fields;return pe(["type",t,fe("implements ",pe(r," & ")),pe(n," "),he(i)]," ")})),FieldDefinition:de((function(e){var t=e.name,r=e.arguments,n=e.type,i=e.directives;return t+(ye(r)?fe("(\n",ge(pe(r,"\n")),"\n)"):fe("(",pe(r,", "),")"))+": "+n+fe(" ",pe(i," "))})),InputValueDefinition:de((function(e){var t=e.name,r=e.type,n=e.defaultValue,i=e.directives;return pe([t+": "+r,fe("= ",n),pe(i," ")]," ")})),InterfaceTypeDefinition:de((function(e){var t=e.name,r=e.interfaces,n=e.directives,i=e.fields;return pe(["interface",t,fe("implements ",pe(r," & ")),pe(n," "),he(i)]," ")})),UnionTypeDefinition:de((function(e){var t=e.name,r=e.directives,n=e.types;return pe(["union",t,pe(r," "),n&&0!==n.length?"= "+pe(n," | "):""]," ")})),EnumTypeDefinition:de((function(e){var t=e.name,r=e.directives,n=e.values;return pe(["enum",t,pe(r," "),he(n)]," ")})),EnumValueDefinition:de((function(e){return pe([e.name,pe(e.directives," ")]," ")})),InputObjectTypeDefinition:de((function(e){var t=e.name,r=e.directives,n=e.fields;return pe(["input",t,pe(r," "),he(n)]," ")})),DirectiveDefinition:de((function(e){var t=e.name,r=e.arguments,n=e.repeatable,i=e.locations;return"directive @"+t+(ye(r)?fe("(\n",ge(pe(r,"\n")),"\n)"):fe("(",pe(r,", "),")"))+(n?" repeatable":"")+" on "+pe(i," | ")})),SchemaExtension:function(e){var t=e.directives,r=e.operationTypes;return pe(["extend schema",pe(t," "),he(r)]," ")},ScalarTypeExtension:function(e){return pe(["extend scalar",e.name,pe(e.directives," ")]," ")},ObjectTypeExtension:function(e){var t=e.name,r=e.interfaces,n=e.directives,i=e.fields;return pe(["extend type",t,fe("implements ",pe(r," & ")),pe(n," "),he(i)]," ")},InterfaceTypeExtension:function(e){var t=e.name,r=e.interfaces,n=e.directives,i=e.fields;return pe(["extend interface",t,fe("implements ",pe(r," & ")),pe(n," "),he(i)]," ")},UnionTypeExtension:function(e){var t=e.name,r=e.directives,n=e.types;return pe(["extend union",t,pe(r," "),n&&0!==n.length?"= "+pe(n," | "):""]," ")},EnumTypeExtension:function(e){var t=e.name,r=e.directives,n=e.values;return pe(["extend enum",t,pe(r," "),he(n)]," ")},InputObjectTypeExtension:function(e){var t=e.name,r=e.directives,n=e.fields;return pe(["extend input",t,pe(r," "),he(n)]," ")}};function de(e){return function(t){return pe([t.description,e(t)],"\n")}}function pe(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return null!==(t=null==e?void 0:e.filter((function(e){return e})).join(r))&&void 0!==t?t:""}function he(e){return fe("{\n",ge(pe(e,"\n")),"\n}")}function fe(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return null!=t&&""!==t?e+t+r:""}function ge(e){return fe(" ",e.replace(/\n/g,"\n "))}function me(e){return-1!==e.indexOf("\n")}function ye(e){return null!=e&&e.some(me)}function be(e){return _e(e)||Te(e)||Oe(e)}function _e(e){return e.kind===y.OPERATION_DEFINITION||e.kind===y.FRAGMENT_DEFINITION}function ve(e){return e.kind===y.FIELD||e.kind===y.FRAGMENT_SPREAD||e.kind===y.INLINE_FRAGMENT}function we(e){return e.kind===y.VARIABLE||e.kind===y.INT||e.kind===y.FLOAT||e.kind===y.STRING||e.kind===y.BOOLEAN||e.kind===y.NULL||e.kind===y.ENUM||e.kind===y.LIST||e.kind===y.OBJECT}function Se(e){return e.kind===y.NAMED_TYPE||e.kind===y.LIST_TYPE||e.kind===y.NON_NULL_TYPE}function Te(e){return e.kind===y.SCHEMA_DEFINITION||Ee(e)||e.kind===y.DIRECTIVE_DEFINITION}function Ee(e){return e.kind===y.SCALAR_TYPE_DEFINITION||e.kind===y.OBJECT_TYPE_DEFINITION||e.kind===y.INTERFACE_TYPE_DEFINITION||e.kind===y.UNION_TYPE_DEFINITION||e.kind===y.ENUM_TYPE_DEFINITION||e.kind===y.INPUT_OBJECT_TYPE_DEFINITION}function Oe(e){return e.kind===y.SCHEMA_EXTENSION||xe(e)}function xe(e){return e.kind===y.SCALAR_TYPE_EXTENSION||e.kind===y.OBJECT_TYPE_EXTENSION||e.kind===y.INTERFACE_TYPE_EXTENSION||e.kind===y.UNION_TYPE_EXTENSION||e.kind===y.ENUM_TYPE_EXTENSION||e.kind===y.INPUT_OBJECT_TYPE_EXTENSION}r.d(t,"Source",(function(){return d})),r.d(t,"getLocation",(function(){return p})),r.d(t,"printLocation",(function(){return h})),r.d(t,"printSourceLocation",(function(){return f})),r.d(t,"Kind",(function(){return y})),r.d(t,"TokenKind",(function(){return b})),r.d(t,"Lexer",(function(){return B})),r.d(t,"parse",(function(){return W})),r.d(t,"parseValue",(function(){return Z})),r.d(t,"parseType",(function(){return ee})),r.d(t,"print",(function(){return ue})),r.d(t,"visit",(function(){return se})),r.d(t,"visitInParallel",(function(){return oe})),r.d(t,"getVisitFn",(function(){return ce})),r.d(t,"BREAK",(function(){return ae})),r.d(t,"Location",(function(){return D})),r.d(t,"Token",(function(){return L})),r.d(t,"isDefinitionNode",(function(){return be})),r.d(t,"isExecutableDefinitionNode",(function(){return _e})),r.d(t,"isSelectionNode",(function(){return ve})),r.d(t,"isValueNode",(function(){return we})),r.d(t,"isTypeNode",(function(){return Se})),r.d(t,"isTypeSystemDefinitionNode",(function(){return Te})),r.d(t,"isTypeDefinitionNode",(function(){return Ee})),r.d(t,"isTypeSystemExtensionNode",(function(){return Oe})),r.d(t,"isTypeExtensionNode",(function(){return xe})),r.d(t,"DirectiveLocation",(function(){return J}))}]); var exports = window; exports.require = window["ScalaJSBundlerLibrary"].require; -'use strict';var e,aa=require("@comunica/actor-init-sparql"),ba=require("axios"),ca=require("n3"),da=require("qs"),fa=require("rdfxml-streaming-parser"),ia=require("showdown"),ja=Object.freeze({esVersion:6,assumingES6:!0,productionMode:!0,linkerVersion:"1.6.0",fileLevelThis:this}),k=Math.imul,ka=Math.fround,la=Math.clz32,ma;function na(a){for(var b in a)return b}function oa(a){this.mP=a}oa.prototype.toString=function(){return String.fromCharCode(this.mP)}; -var qa=function pa(a,b,c){var f=new a.M(b[c]);if(c>24===a?m(va):a<<16>>16===a?m(Aa):m(Ba):m(Ca);case "boolean":return m(Da);case "undefined":return m(Ea);default:return null===a?a.Vaa():a instanceof p?m(Fa):a instanceof oa?m(Ga):a&&a.$classData?m(a.$classData):null}} -function Ha(a){switch(typeof a){case "string":return"java.lang.String";case "number":return ua(a)?a<<24>>24===a?"java.lang.Byte":a<<16>>16===a?"java.lang.Short":"java.lang.Integer":"java.lang.Float";case "boolean":return"java.lang.Boolean";case "undefined":return"java.lang.Void";default:return null===a?a.Vaa():a instanceof p?"java.lang.Long":a instanceof oa?"java.lang.Character":a&&a.$classData?a.$classData.name:null.Ld.name}} -function Ia(a,b){return"string"===typeof a?65535&(a.charCodeAt(b)|0):a.Lf(b)}function Ka(a,b){switch(typeof a){case "string":return a===b;case "number":return Object.is(a,b);case "boolean":return a===b;case "undefined":return a===b;default:return a&&a.$classData||null===a?a.c(b):a instanceof oa?b instanceof oa?Ma(a)===Ma(b):!1:Na.prototype.c.call(a,b)}} -function Oa(a){switch(typeof a){case "string":return Pa(a);case "number":return Qa(a);case "boolean":return a?1231:1237;case "undefined":return 0;default:return a&&a.$classData||null===a?a.p():a instanceof oa?Ma(a):Na.prototype.p.call(a)}}function Ra(a){return"string"===typeof a?a.length|0:a.y()}function Sa(a,b,c){return"string"===typeof a?a.substring(b,c):a.zn(b,c)}function Ua(a){return void 0===a?"undefined":a.toString()}function Va(a,b){if(0===b)throw new Wa("/ by zero");return a/b|0} -function Xa(a,b){if(0===b)throw new Wa("/ by zero");return a%b|0}function Ya(a){return 2147483647a?-2147483648:a|0}function Za(a){return a&&"object"===typeof a&&"default"in a?a["default"]:a}function $a(a,b,c,d,f){if(a!==c||d>=BigInt(32);return b;case "boolean":return a?1231:1237;case "undefined":return 0;case "symbol":return a=a.description,void 0===a?0:Pa(a);default:if(null===a)return 0;b=bb.get(a);void 0===b&&(ab=b=ab+1|0,bb.set(a,b));return b}}function db(a){return"number"===typeof a&&a<<24>>24===a&&1/a!==1/-0} -function eb(a){return"number"===typeof a&&a<<16>>16===a&&1/a!==1/-0}function ua(a){return"number"===typeof a&&(a|0)===a&&1/a!==1/-0}function q(a){return new oa(a)}function Ma(a){return null===a?0:a.mP}function fb(a){return null===a?ma:a}function Na(){}Na.prototype.constructor=Na;function t(){}t.prototype=Na.prototype;Na.prototype.p=function(){return cb(this)};Na.prototype.c=function(a){return this===a};Na.prototype.g=function(){var a=this.p();return Ha(this)+"@"+(+(a>>>0)).toString(16)}; -Na.prototype.toString=function(){return this.g()};function v(a){if("number"===typeof a){this.a=Array(a);for(var b=0;bh===g;g.name=c;g.isPrimitive=!0;g.isInstance=()=>!1;void 0!==d&&(g.Nu=vb(g,d,f));return g} -function x(a,b,c,d,f){var g=new tb,h=na(a);g.Eb=d;g.fp="L"+c+";";g.qp=l=>!!l.Eb[h];g.name=c;g.isInterface=b;g.isInstance=f||(l=>!!(l&&l.$classData&&l.$classData.Eb[h]));return g}function vb(a,b,c,d){var f=new tb;b.prototype.$classData=f;var g="["+a.fp;f.M=b;f.Eb={b:1,gd:1,d:1};f.Vu=a;f.cs=a;f.ds=1;f.fp=g;f.name=g;f.isArrayClass=!0;f.qp=d||(h=>f===h);f.ll=c?h=>new b(new c(h)):h=>new b(h);f.isInstance=h=>h instanceof b;return f} -function wb(a){function b(l){if("number"===typeof l){this.a=Array(l);for(var n=0;n{var n=l.ds;return n===f?d.qp(l.cs):n>f&&d===xb};c.qp=h;c.ll=l=> -new b(l);c.isInstance=l=>{l=l&&l.$classData;return!!l&&(l===c||h(l))};return c}function y(a){a.Nu||(a.Nu=wb(a));return a.Nu}function m(a){a.XD||(a.XD=new yb(a));return a.XD}tb.prototype.isAssignableFrom=function(a){return this===a||this.qp(a)};tb.prototype.checkCast=function(){};tb.prototype.getSuperclass=function(){return this.jda?m(this.jda):null};tb.prototype.getComponentType=function(){return this.Vu?m(this.Vu):null}; -tb.prototype.newArrayOfThisClass=function(a){for(var b=this,c=0;c!a.isPrimitive;xb.name="java.lang.Object";xb.isInstance=a=>null!==a;xb.Nu=vb(xb,v,void 0,a=>{var b=a.ds;return 1===b?!a.cs.isPrimitive:1l=>{if(null!==l)h[l.ib]=l.Va;else throw new D(l);})(oc,f)));b=f}else mc(),nc(),b=void 0;c=[c,a,d,z(new B,"prefixes",b)];c=qc(new rc,c);return sc(tc(),c)}ic.prototype.$classData=x({dT:0},!1,"com.github.p2m2.facade.N3Options$",{dT:1,b:1});var uc;function vc(){} -vc.prototype=new t;vc.prototype.constructor=vc; -function wc(a,b){0f=>{c.rE().Sa(f)||f.rQ(d)})(a,b)))}function jd(a){a.dv(kd());a.qE(kd())}function ld(){this.Xw=null;md=this;var a=nd(),b=[od().gI,pd().lI];this.Xw=qd(a,qc(new rc,b))}ld.prototype=new t;ld.prototype.constructor=ld; -ld.prototype.$classData=x({ZU:0},!1,"inrae.semantic_web.node.AggregateNode$",{ZU:1,b:1});var md;function rd(){md||(md=new ld);return md}function sd(){this.RH=null;td=this;var a=nd(),b=[ud().uL,vd().cJ,wd().hJ];this.RH=qd(a,qc(new rc,b))}sd.prototype=new t;sd.prototype.constructor=sd;sd.prototype.$classData=x({iV:0},!1,"inrae.semantic_web.node.BuiltInCallNode$",{iV:1,b:1});var td;function xd(){this.cx=null;yd=this;var a=nd();zd||(zd=new Ad);this.cx=qd(a,qc(new rc,[zd.gK]))}xd.prototype=new t; -xd.prototype.constructor=xd;xd.prototype.$classData=x({DW:0},!1,"inrae.semantic_web.node.ExpressionNode$",{DW:1,b:1});var yd;function Bd(){yd||(yd=new xd);return yd}function Cd(){this.FI=null;Ed=this;var a=nd(),b=[Fd().RB,Gd().tM,Hd().yM,Fd().RB,Id().HK,Jd().aI,Kd().GL,Ld().AL,Od().EI,Pd().MJ,Qd().SI,Rd().YI,Sd().WL,Td().bM];this.FI=qd(a,qc(new rc,b))}Cd.prototype=new t;Cd.prototype.constructor=Cd;Cd.prototype.$classData=x({EW:0},!1,"inrae.semantic_web.node.FilterNode$",{EW:1,b:1});var Ed; -function Ud(){this.KI=null;Vd=this;var a=nd(),b=[Wd().LH,Xd().bL,Yd().VH,Zd().JI,$d().vK];this.KI=qd(a,qc(new rc,b))}Ud.prototype=new t;Ud.prototype.constructor=Ud;Ud.prototype.$classData=x({NW:0},!1,"inrae.semantic_web.node.FunctionNumericNode$",{NW:1,b:1});var Vd;function ae(){this.LI=null;be=this;var a=nd(),b=[ce().ML,de().OK];this.LI=qd(a,qc(new rc,b))}ae.prototype=new t;ae.prototype.constructor=ae;ae.prototype.$classData=x({PW:0},!1,"inrae.semantic_web.node.FunctionStringNode$",{PW:1,b:1});var be; -function ee(){this.MI=null;fe=this;var a=nd(),b=[ge().pI];this.MI=qd(a,qc(new rc,b))}ee.prototype=new t;ee.prototype.constructor=ee;ee.prototype.$classData=x({QW:0},!1,"inrae.semantic_web.node.FunctionUriNode$",{QW:1,b:1});var fe;function he(){this.CJ=null;ie=this;var a=nd(),b=[je().QB,ke().OB];this.CJ=qd(a,qc(new rc,b))}he.prototype=new t;he.prototype.constructor=he;he.prototype.$classData=x({mY:0},!1,"inrae.semantic_web.node.LogicNode$",{mY:1,b:1});var ie; -function le(a,b,c,d){a.D=b;a.Q=c;a.S=d}function me(){this.S=this.Q=this.D=null}me.prototype=new t;me.prototype.constructor=me;function ne(){}ne.prototype=me.prototype;function oe(a,b,c){return a.fb(a.za(),a.Ya().Wi(b,c))}e=me.prototype;e.Saa=function(a){return this.fb(this.za().kb(a),this.Ya())}; -e.Em=function(a,b){if(a===this.Aa()&&this.$g(b))return a=this.za().Ea(new C(((d,f,g)=>h=>h.Em(f,g))(this,a,b))),this.fb(a.kb(b),this.Ya());if(a!==this.Aa()||this.$g(b))return this.fb(this.za().Ea(new C(((d,f,g)=>h=>h.Em(f,g))(this,a,b))),this.Ya());b=pe(sa(b));a=pe(sa(this));var c=H();nc();c.k()||qe();throw new re("cannot add this child ["+b+"] to the current node ["+a+"]");}; -function se(a,b,c){var d=Mc().jb,f=Nc();Oc(Qc(d),f.Hb)&&Rc(Mc().jb,Nc(),new Sc("com/github/p2m2/shared/src/main/scala/inrae/semantic_web/node/Element.scala","Element.scala",36,10)," -- getRdfNode -- ");return a instanceof te&&b===a.Aa()?new dd(a):a.za().k()?H():a.za().qd(new C(((g,h,l)=>n=>se(n,h,l+"*"))(a,b,c))).Kd()} -e.g=function(){var a=pe(sa(this)),b=this.Aa(),c=0h=>h.Qe(f,g))(this,a,b)));return c.Zd(a)};var ve=x({hb:0},!1,"inrae.semantic_web.node.Node",{hb:1,b:1});me.prototype.$classData=ve; -function we(){this.ba=null;xe=this;var a=nd(),b=ye().hx;Ae||(Ae=new Be);var c=Ae.wK,d=Ce().kM,f=De().BJ;ie||(ie=new he);var g=ie.CJ;Ed||(Ed=new Cd);b=[b,c,d,f,g,Ed.FI,Ee().ax,Fe().lx,Ge().Yw,Bd().cx,He().jx,Ie().rK,rd().Xw];this.ba=qd(a,qc(new rc,b))}we.prototype=new t;we.prototype.constructor=we;we.prototype.$classData=x({nY:0},!1,"inrae.semantic_web.node.Node$",{nY:1,b:1});var xe;function Je(){xe||(xe=new we);return xe} -function Ad(){this.gK=null;zd=this;var a=nd(),b=Ke().pL;be||(be=new ae);var c=be.LI;Vd||(Vd=new Ud);var d=Vd.KI;fe||(fe=new ee);var f=fe.MI;td||(td=new sd);this.gK=qd(a,qc(new rc,[b,c,d,f,td.RH]))}Ad.prototype=new t;Ad.prototype.constructor=Ad;Ad.prototype.$classData=x({qZ:0},!1,"inrae.semantic_web.node.PrimaryExpression$",{qZ:1,b:1});var zd;function Be(){this.wK=null;Ae=this;var a=nd(),b=[Le().fL,Me().mx,Ne().RJ,Oe().wJ,Pe().rJ];this.wK=qd(a,qc(new rc,b))}Be.prototype=new t; -Be.prototype.constructor=Be;Be.prototype.$classData=x({SZ:0},!1,"inrae.semantic_web.node.RdfNode$",{SZ:1,b:1});var Ae;function Qe(){this.jx=null;Re=this;var a=nd(),b=[Se().aK,Te().fK,Ue().lK,We().yI,Xe().AK,Ye().WJ,Ze().mJ];this.jx=qd(a,qc(new rc,b))}Qe.prototype=new t;Qe.prototype.constructor=Qe;Qe.prototype.$classData=x({U_:0},!1,"inrae.semantic_web.node.SolutionSequenceModifierNode$",{U_:1,b:1});var Re;function He(){Re||(Re=new Qe);return Re}function $e(){}$e.prototype=new t; -$e.prototype.constructor=$e;function af(a,b,c){if(c instanceof te&&c.Aa()===b)return new (y(bf).M)([c]);a=c.za();if(0<=a.L())c=a.L(),c=new (y(ve).M)(c),a.Lb(c,0,2147483647),a=c;else{c=[];for(a=a.w();a.v();){var d=a.s();c.push(null===d?null:d)}a=new (y(ve).M)(c)}c=[];for(d=0;dh=>{h=gf(cf(),f,h);return 0f=>hf(cf(),f))(a)));return b.xe.qd(new C((()=>f=>hf(cf(),f))(a))).hd(d).hd(c)}return b instanceof te?(c=I(J().u,qc(new rc,[b.Aa()])),b.za().qd(new C((()=>f=>hf(cf(),f))(a))).hd(c)):b instanceof kf?(c=I(J().u,qc(new rc,[b.D])),b.Q.qd(new C((()=>f=>hf(cf(),f))(a))).hd(c)):b instanceof lf?(c=I(J().u,qc(new rc,[b.Aa()])),b.za().qd(new C((()=>f=>hf(cf(),f))(a))).hd(c)):I(J().u,F())} -function mf(a,b,c){var d=J().u,f=[c.Oe(b,0)];d=I(d,qc(new rc,f));f=b.Q.qd(new C(((n,r,u)=>w=>nf(cf(),w,1+(r|0)|0,u))(a,0,c)));var g=b.xe.qd(new C(((n,r,u)=>w=>nf(cf(),w,1+(r|0)|0,u))(a,0,c))),h=b.Le.qd(new C(((n,r,u)=>w=>nf(cf(),w,1+(r|0)|0,u))(a,0,c))),l=b.od.qd(new C(((n,r,u)=>w=>nf(cf(),w,1+(r|0)|0,u))(a,0,c)));return b.Me.qd(new C(((n,r,u)=>w=>nf(cf(),w,1+(r|0)|0,u))(a,0,c))).hd(l).hd(h).hd(g).hd(f).hd(d)} -function nf(a,b,c,d){var f=J().u,g=[d.Oe(b,c)];f=I(f,qc(new rc,g));return b.za().qd(new C(((h,l,n)=>r=>nf(cf(),r,1+(l|0)|0,n))(a,c,d))).hd(f)}$e.prototype.$classData=x({C2:0},!1,"inrae.semantic_web.node.pm.NodeVisitor$",{C2:1,b:1});var of;function cf(){of||(of=new $e);return of}function pf(){}pf.prototype=new t;pf.prototype.constructor=pf;function Tc(a,b){a=b.Ea(new C((()=>c=>{if(null!==c)return"PREFIX "+c.ib+": "+c.Va.g();throw new D(c);})(a)));return qf(a,"","\n","")} -function rf(a,b){a=b.Ea(new C((()=>c=>"FROM "+c.g())(a)));return qf(a,"","\n","")}function sf(a,b){a=b.Ea(new C((()=>c=>"FROM NAMED "+c.g())(a)));return qf(a,"","\n","")} -function Vc(a,b){var c=b.od.nb(new C((()=>h=>h instanceof tf)(a))).dh();c.k()?c=H():(c=c.Ja(),c=new dd(uf(Uc(),c,"","")));c=c.k()?"":c.Ja();var d=b.od.nb(new C((()=>h=>h instanceof vf)(a))).dh();d.k()?d=H():(d=d.Ja(),d=new dd(uf(Uc(),d,"","")));d=d.k()?"":d.Ja();var f=b.od.nb(new C((()=>h=>h instanceof wf)(a))).dh();if(f.k())f=H();else{f=f.Ja();if(f instanceof wf){var g=hf(cf(),b);g=f.yi.nb(new C(((h,l)=>n=>l.Sa(n.qg)||"*"===n.qg)(a,g)));f=new wf(g,f.D,f.Uj,f.Tl)}f=new dd(f)}f.k()?f=H():(g=f.Ja(), -f=uf(Uc(),g,"",""),g=g.za().Ea(new C((()=>h=>Wc(Uc(),h,""))(a))),f=new dd(""+f+qf(g,"","","")));return"SELECT "+c+d+(f.k()?"*":f.Ja())+"\n"+rf(a,b.Hf)+"\n"+sf(a,b.If)+"\nWHERE {"} -function Xc(a,b){var c=b.od.nb(new C((()=>f=>f instanceof xf&&0f=>f instanceof yf&&0f=>f instanceof zf&&0f=>f instanceof -Af&&0A=>A.g())(a))),"\tVALUES ?"+c+" { "+qf(b,""," ","")+" } .\n";if(b instanceof Mf)return"("+uf(a,b.Mq,b.D,d)+" AS "+b.Nq+") ";if(b instanceof kf)return"\tBIND ("+uf(a,b.xq,c,d)+" AS ?"+b.D+") \n";if(b instanceof Nf)return"COUNT ("+(b.Sj?"DISTINCT":"")+" "+b.Pn.g()+")";if(b instanceof Of)return"COUNT ("+(b.Rj?"DISTINCT": -"")+" * )";if(b instanceof tf)return"DISTINCT ";if(b instanceof vf)return"REDUCED ";if(b instanceof wf&&(f=!0,g=b,0V=>uf(Uc(),V,M.Wg.Aa(),T)+" }")(a,w,d))),"{ "+qf(c,""," } UNION { ","")+" }";if(u)return"";if(b instanceof sg)return"???????????????";if(b instanceof tg||b instanceof ug)return"";if(b instanceof vg)return"???????????????";throw wg(new xg,"Not implemented yet :"+Ha(b));} -function Wc(a,b,c){var d=b.Aa();c=uf(a,b,c,d);a=b.za().Ea(new C(((f,g)=>h=>Wc(Uc(),h,g))(a,d)));return""+c+qf(a,"","","")}pf.prototype.$classData=x({F2:0},!1,"inrae.semantic_web.node.pm.SparqlGenerator$",{F2:1,b:1});var yg;function Uc(){yg||(yg=new pf);return yg}function zg(){}zg.prototype=new t;zg.prototype.constructor=zg;function Ag(a,b){return new Bg(Ua((new Cg("value")).xc(b).kl()),(Dg(),""))} -function Eg(a){try{Fg();var b=(new Cg("datatype")).xc(a),c=Gg(0,Hg(b)),d=0>=(c.length|0)?Dg().yd:new Bg(c,(Dg(),""))}catch(h){if(h instanceof Ig)d=Dg().yd;else throw h;}try{Fg();var f=(new Cg("tag")).xc(a),g=Gg(0,Hg(f))}catch(h){if(h instanceof Ig)g="";else throw h;}a=(new Cg("value")).xc(a);return new Jg(Hg(a),d,g)}zg.prototype.$classData=x({l3:0},!1,"inrae.semantic_web.rdf.SparqlBuilder$",{l3:1,b:1});var Kg;function Lg(){Kg||(Kg=new zg);return Kg}function Mg(){}Mg.prototype=new t; -Mg.prototype.constructor=Mg;function Ng(){}Ng.prototype=Mg.prototype;function Og(){this.db=null;Pg=this;var a=nd(),b=[Qg().om,Dg().px,Rg().BM,Sg().KM,Tg().HM,Ug().Vh];this.db=qd(a,qc(new rc,b))}Og.prototype=new t;Og.prototype.constructor=Og; -function Vg(a,b){a=!1;var c=null;if(b instanceof Mg)return b;if(ua(b))return new Jg(b|0,(Tg(),Dg().yd),(Tg(),""));if("number"===typeof b)return new Jg(+b,(Tg(),Dg().yd),(Tg(),""));if("boolean"===typeof b)return new Jg(!!b,(Tg(),Dg().yd),(Tg(),""));if("string"===typeof b){a=!0;var d=c=b;0<=(d.length|0)&&"?"===d.substring(0,1)?d=!0:(d=c,d=0<=(d.length|0)&&"$"===d.substring(0,1));if(d&&1<(c.length|0))return new Hf(c.substring(1,c.length|0))}a?(d=c,d=0<=(d.length|0)&&"\x3c"===d.substring(0,1)?Wg(c,"\x3e"): -!1):d=!1;if(d)return new Bg(c,(Dg(),""));if(a)if(-1!==(c.indexOf(":")|0)){d=c;var f=Xg();f=Yg(f,"\\S+");d=Zg(new $g(f,d,0,Ra(d)))}else d=!1;else d=!1;if(d)return new Bg(c,(Dg(),""));if(a)return new Jg(c,(Tg(),Dg().yd),(Tg(),""));b=Ua(b);a=H();nc();a.k()||qe();throw new re(b+" can not be cast into Sparql Def type.");}function Gg(a,b){return ah(ah(ah(ah(ah(b,'^"'),'"$'),"^\x3c"),"\x3e$"),"^\\?")}Og.prototype.$classData=x({m3:0},!1,"inrae.semantic_web.rdf.SparqlDefinition$",{m3:1,b:1});var Pg; -function Fg(){Pg||(Pg=new Og);return Pg}function bh(){this.QM=":"}bh.prototype=new t;bh.prototype.constructor=bh; -function ch(a,b){b=dh(b,a.QM);var c=df(E(),b);eh();c=hh(F(),c);c=ih(c);E();a=((l,n)=>r=>jh(n,r)<<16>>16)(a,c);kh();var d=b.a.length,f=new nb(d);if(0n=>oh(l,n|0))(a,b);if(c===F())b=F();else{var d=c.R(),f=d=new ph(b(d),F());for(c=c.X();c!==F();){var g=c.R();g=new ph(b(g),F());f=f.Gb=g;c=c.X()}b=d}return qf(b,"",a.QM,"")} -bh.prototype.$classData=x({w3:0},!1,"inrae.semantic_web.sparql.hashBuilder$",{w3:1,b:1});var qh;function rh(){qh||(qh=new bh);return qh}function sh(){}sh.prototype=new t;sh.prototype.constructor=sh;function th(a){var b=a.Wd.qh.y();if(0===b)throw a=H(),nc(),a.k()||qe(),new re("No sources specified");return a.Wd.Ef.Lj?new uh(a.Wd.Ef.Nj):1===b?new vh(a.Wd.qh.V(0)):new wh(a.Wd.qh)}sh.prototype.$classData=x({A3:0},!1,"inrae.semantic_web.strategy.StrategyRequestBuilder$",{A3:1,b:1});var xh; -x({K3:0},!1,"io.lemonlabs.uri.Host$",{K3:1,b:1});function yh(){this.aN=null;zh=this;Ah();this.aN=new Bh(43," ")}yh.prototype=new t;yh.prototype.constructor=yh;yh.prototype.$classData=x({t4:0},!1,"io.lemonlabs.uri.decoding.package$",{t4:1,b:1});var zh;function Ch(){this.sC=null;Dh=this;Eh();this.sC=new Fh(32,"+")}Ch.prototype=new t;Ch.prototype.constructor=Ch;Ch.prototype.$classData=x({z4:0},!1,"io.lemonlabs.uri.encoding.package$",{z4:1,b:1});var Dh;function Gh(){Dh||(Dh=new Ch);return Dh} -function Hh(a){var b=Ih().EN,c=Ih(),d=[Jh("-._~")];a.mN=b.pg(Kh(c,qc(new rc,d)));b=Ih().FN;c=Ih();d=[Lh(37)];a.kN=b.pg(Kh(c,qc(new rc,d)));b=Ih();c=[Jh("!$\x26'()*+,;\x3d")];a.lN=Kh(b,qc(new rc,c));b=a.mN.pg(a.kN).pg(a.lN);c=Ih();d=[Jh(":@")];a.E4=b.pg(Kh(c,qc(new rc,d)))}function Mh(){}Mh.prototype=new t;Mh.prototype.constructor=Mh;Mh.prototype.$classData=x({C4:0},!1,"io.lemonlabs.uri.parsing.UrlParser$",{C4:1,b:1});var Nh; -function Oh(a,b,c){return new Ph(b,new C((()=>d=>d.ib)(a)),c,new C((()=>d=>d.Va)(a)))}function yb(a){this.tE=null;this.Ld=a}yb.prototype=new t;yb.prototype.constructor=yb;yb.prototype.g=function(){return(this.Ld.isInterface?"interface ":Qh(this)?"":"class ")+this.Ld.name};function Rh(a,b){return!!a.Ld.isInstance(b)}function Sh(a,b){return!!a.Ld.isAssignableFrom(b.Ld)}function Th(a){return!!a.Ld.isArrayClass}function Qh(a){return!!a.Ld.isPrimitive} -function pe(a){if(null===a.tE){if(Th(a))var b=pe(Uh(a))+"[]";else{b=a.Ld.name;for(var c=-1+(b.length|0)|0;;)if(0<=c&&36===(65535&(b.charCodeAt(c)|0)))c=-1+c|0;else break;if(0<=c){var d=65535&(b.charCodeAt(c)|0);d=48<=d&&57>=d}else d=!1;if(d){for(c=-1+c|0;;)if(0<=c?(d=65535&(b.charCodeAt(c)|0),d=48<=d&&57>=d):d=!1,d)c=-1+c|0;else break;for(;;)if(0<=c&&36===(65535&(b.charCodeAt(c)|0)))c=-1+c|0;else break}for(;;)if(0<=c?(d=65535&(b.charCodeAt(c)|0),d=46!==d&&36!==d):d=!1,d)c=-1+c|0;else break;b=b.substring(1+ -c|0)}a.tE=b}return a.tE}function Uh(a){return a.Ld.getComponentType()}function Vh(a,b){return a.Ld.newArrayOfThisClass(b)}yb.prototype.$classData=x({cba:0},!1,"java.lang.Class",{cba:1,b:1}); -function Wh(){this.fz=this.wE=this.lj=this.gv=null;this.vE=!1;this.yE=this.xE=0;Zh=this;this.gv=new ArrayBuffer(8);this.lj=new Int32Array(this.gv,0,2);this.wE=new Float32Array(this.gv,0,2);this.fz=new Float64Array(this.gv,0,1);this.lj[0]=16909060;this.xE=(this.vE=1===((new Int8Array(this.gv,0,8))[0]|0))?0:1;this.yE=this.vE?1:0}Wh.prototype=new t;Wh.prototype.constructor=Wh;function $h(a,b){var c=b|0;if(c===b&&-Infinity!==1/b)return c;a.fz[0]=b;return(a.lj[0]|0)^(a.lj[1]|0)} -function ai(a,b){a.lj[0]=b;return+a.wE[0]}function bi(a,b){a.wE[0]=b;return a.lj[0]|0}function ci(a,b){a.fz[0]=b;return new p(a.lj[a.yE]|0,a.lj[a.xE]|0)}Wh.prototype.$classData=x({hba:0},!1,"java.lang.FloatingPointBits$",{hba:1,b:1});var Zh;function di(){Zh||(Zh=new Wh);return Zh}function ei(a,b,c,d){this.qba=a;this.DP=b;this.sba=c;this.rba=d}ei.prototype=new t;ei.prototype.constructor=ei;ei.prototype.$classData=x({pba:0},!1,"java.lang.Long$StringRadixInfo",{pba:1,b:1});function fi(){} -fi.prototype=new t;fi.prototype.constructor=fi;fi.prototype.$classData=x({tba:0},!1,"java.lang.Math$",{tba:1,b:1});var gi,hi=x({BE:0},!0,"java.lang.Runnable",{BE:1,b:1}); -function ji(a,b){var c=ki("^(?:Object\\.|\\[object Object\\]\\.|Module\\.)?\\$(?:ps?|s|f)_((?:_[^_]|[^_])+)__([^\\.]+)$"),d=ki("^(?:Object\\.|\\[object Object\\]\\.|Module\\.)?\\$ct_((?:_[^_]|[^_])+)__([^\\.]*)$"),f=ki("^new (?:Object\\.|\\[object Object\\]\\.|Module\\.)?\\$c_([^\\.]+)$"),g=ki("^(?:Object\\.|\\[object Object\\]\\.|Module\\.)?\\$m_([^\\.]+)$"),h=ki("^(?:Object\\.|\\[object Object\\]\\.|Module\\.)?\\$[bc]_([^\\.]+)(?:\\.prototype)?\\.([^\\.]+)$").exec(b);c=null!==h?h:c.exec(b);if(null!== -c)return a=li(a,c[1]),b=c[2],0<=(b.length|0)&&"init___"===b.substring(0,7)?b="\x3cinit\x3e":(g=b.indexOf("__")|0,b=0>g?b:b.substring(0,g)),[a,b];d=d.exec(b);f=null!==d?d:f.exec(b);if(null!==f)return[li(a,f[1]),"\x3cinit\x3e"];g=g.exec(b);return null!==g?[li(a,g[1]),"\x3cclinit\x3e"]:["\x3cjscode\x3e",b]} -function li(a,b){var c=mi(a);if(ni().oz.call(c,b))a=mi(a)[b];else a:for(c=0;;)if(c<(oi(a).length|0)){var d=oi(a)[c];if(0<=(b.length|0)&&b.substring(0,d.length|0)===d){a=""+pi(a)[d]+b.substring(d.length|0);break a}c=1+c|0}else{a=0<=(b.length|0)&&"L"===b.substring(0,1)?b.substring(1):b;break a}return a.split("_").join(".").split("\uff3f").join("_")} -function mi(a){if(0===(1&a.di)<<24>>24&&0===(1&a.di)<<24>>24){for(var b={O:"java_lang_Object",T:"java_lang_String"},c=0;22>=c;)2<=c&&(b["T"+c]="scala_Tuple"+c),b["F"+c]="scala_Function"+c,c=1+c|0;a.FP=b;a.di=(1|a.di)<<24>>24}return a.FP} -function pi(a){0===(2&a.di)<<24>>24&&0===(2&a.di)<<24>>24&&(a.GP={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.di=(2|a.di)<<24>>24);return a.GP}function oi(a){0===(4&a.di)<<24>>24&&0===(4&a.di)<<24>>24&&(a.EP=Object.keys(pi(a)),a.di=(4|a.di)<<24>>24);return a.EP} -function qi(a){return(a.stack+"\n").replace(ki("^[\\s\\S]+?\\s+at\\s+")," at ").replace(ri("^\\s+(at eval )?at\\s+","gm"),"").replace(ri("^([^\\(]+?)([\\n])","gm"),"{anonymous}() ($1)$2").replace(ri("^Object.\x3canonymous\x3e\\s*\\(([^\\)]+)\\)","gm"),"{anonymous}() ($1)").replace(ri("^([^\\(]+|\\{anonymous\\}\\(\\)) \\((.+)\\)$","gm"),"$1@$2").split("\n").slice(0,-1)} -function si(a){var b=ri("Line (\\d+).*script (?:in )?(\\S+)","i");a=a.message.split("\n");for(var c=[],d=2,f=a.length|0;d{Ai();return+performance.now()}:performance.webkitNow?()=>{Ai();return+performance.webkitNow()}:()=>{Ai();return+(new Date).getTime()}:()=>{Ai();return+(new Date).getTime()}}yi.prototype=new t; -yi.prototype.constructor=yi;yi.prototype.$classData=x({Hba:0},!1,"java.lang.System$NanoTime$",{Hba:1,b:1});var zi;function Ai(){zi||(zi=new yi);return zi}function Bi(){this.DE=this.HP=null;Ci=this;this.HP=new Di(!1);this.DE=new Di(!0)}Bi.prototype=new t;Bi.prototype.constructor=Bi;Bi.prototype.$classData=x({Iba:0},!1,"java.lang.System$Streams$",{Iba:1,b:1});var Ci;function Ei(){Ci||(Ci=new Bi);return Ci} -function Fi(){this.Om=this.oj=null;Gi=this;var a={"java.version":"1.8","java.vm.specification.version":"1.8","java.vm.specification.vendor":"Oracle Corporation","java.vm.specification.name":"Java Virtual Machine Specification","java.vm.name":"Scala.js"};a["java.vm.version"]=ja.linkerVersion;a["java.specification.version"]="1.8";a["java.specification.vendor"]="Oracle Corporation";a["java.specification.name"]="Java Platform API Specification";a["file.separator"]="/";a["path.separator"]=":";a["line.separator"]= -"\n";this.oj=a;this.Om=null}Fi.prototype=new t;Fi.prototype.constructor=Fi;function Hi(){var a=Ii();if(null===a.Om){var b=new Ji;b.nv=null;var c=Ki();b.tp=c;a.Om=b;b=Object.keys(a.oj);c=b.length|0;for(var d=0;d!==c;){var f=b[d];Ii();var g=Ii().Om,h=Ii().oj[f];g.uj(f,h);d=1+d|0}a.oj=null}return a.Om}function Li(a,b){null!==a.oj?(Mi||(Mi=new Ni),a=a.oj,b=ni().oz.call(a,b)?a[b]:null):b=a.Om.mp(b,null);return b} -Fi.prototype.mp=function(a,b){if(null!==this.oj){Mi||(Mi=new Ni);var c=this.oj;a=ni().oz.call(c,a)?c[a]:b}else a=this.Om.mp(a,b);return a};Fi.prototype.$classData=x({Jba:0},!1,"java.lang.System$SystemProperties$",{Jba:1,b:1});var Gi;function Ii(){Gi||(Gi=new Fi);return Gi}function Oi(){Pi=this}Oi.prototype=new t;Oi.prototype.constructor=Oi;Oi.prototype.$classData=x({Kba:0},!1,"java.lang.Thread$",{Kba:1,b:1});var Pi;function Qi(){this.qs=null;this.ps=!1}Qi.prototype=new t; -Qi.prototype.constructor=Qi;Qi.prototype.Ja=function(){this.ps||(this.qs=null,this.ps=!0);return this.qs};Qi.prototype.$classData=x({Lba:0},!1,"java.lang.ThreadLocal",{Lba:1,b:1});function Ni(){}Ni.prototype=new t;Ni.prototype.constructor=Ni;Ni.prototype.$classData=x({Nba:0},!1,"java.lang.Utils$",{Nba:1,b:1});var Mi;function Ri(){this.oz=null;Si=this;this.oz=Object.prototype.hasOwnProperty}Ri.prototype=new t;Ri.prototype.constructor=Ri; -Ri.prototype.$classData=x({Oba:0},!1,"java.lang.Utils$Cache$",{Oba:1,b:1});var Si;function ni(){Si||(Si=new Ri);return Si}function Ti(a){return!!(a&&a.$classData&&1===a.$classData.ds&&a.$classData.cs.Eb.LP)}var Ea=x({LP:0},!1,"java.lang.Void",{LP:1,b:1},a=>void 0===a);function Ui(){}Ui.prototype=new t;Ui.prototype.constructor=Ui;Ui.prototype.$classData=x({Pba:0},!1,"java.lang.reflect.Array$",{Pba:1,b:1});var Vi;function Wi(){Vi||(Vi=new Ui)}function Xi(a,b){this.yC=a;this.zC=b}Xi.prototype=new t; -Xi.prototype.constructor=Xi;Xi.prototype.$classData=x({F5:0},!1,"java.math.BigInteger$QuotAndRem",{F5:1,b:1});function Yi(){}Yi.prototype=new t;Yi.prototype.constructor=Yi;function Zi(a,b){if(0===b.Ca)return 0;a=b.Ua<<5;var c=b.ua.a[-1+b.Ua|0];0>b.Ca&&$i(b)===(-1+b.Ua|0)&&(c=-1+c|0);return a=a-la(c)|0}function aj(a,b,c){a=c>>5;c&=31;var d=(b.Ua+a|0)+(0===c?0:1)|0,f=new ob(d);bj(0,f,b.ua,a,c);b=cj(b.Ca,d,f);dj(b);return b} -function bj(a,b,c,d,f){if(0===f)c.U(0,b,d,b.a.length-d|0);else{a=32-f|0;b.a[-1+b.a.length|0]=0;for(var g=-1+b.a.length|0;g>d;){var h=g;b.a[h]=b.a[h]|c.a[-1+(g-d|0)|0]>>>a|0;b.a[-1+g|0]=c.a[-1+(g-d|0)|0]<>>31|0;f=1+f|0}0!==a&&(b.a[d]=a)} -function kj(a,b,c){a=c>>5;var d=31&c;if(a>=b.Ua)return 0>b.Ca?lj().Ix:lj().ck;c=b.Ua-a|0;var f=new ob(1+c|0);mj(0,f,c,b.ua,a,d);if(0>b.Ca){for(var g=0;g>>g|0|d.a[1+(a+f|0)|0]<>>g|0}}Yi.prototype.$classData=x({G5:0},!1,"java.math.BitLevel$",{G5:1,b:1});var nj;function oj(){nj||(nj=new Yi);return nj} -function pj(){this.BC=this.CC=null;qj=this;this.CC=new ob(new Int32Array([-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]));this.BC=new ob(new Int32Array([-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]))}pj.prototype=new t;pj.prototype.constructor=pj; -function rj(a,b){a=b.Ca;var c=b.Ua,d=b.ua;if(0===a)return"0";if(1===c)return b=(+(d.a[0]>>>0)).toString(10),0>a?"-"+b:b;b="";var f=new ob(c);for(d.U(0,f,0,c);;){var g=0;for(d=-1+c|0;0<=d;){var h=g;g=f.a[d];var l=sj(tj(),g,h,1E9,0);f.a[d]=l;h=l>>31;var n=65535&l;l=l>>>16|0;var r=k(51712,n);n=k(15258,n);var u=k(51712,l);r=r+((n+u|0)<<16)|0;k(1E9,h);k(15258,l);g=g-r|0;d=-1+d|0}d=""+g;for(b="000000000".substring(d.length|0)+d+b;0!==c&&0===f.a[-1+c|0];)c=-1+c|0;if(0===c)break}f=0;for(c=b.length|0;;)if(f< +'use strict';var e,aa=require("@comunica/actor-init-sparql"),ba=require("axios"),ca=require("n3"),aaa=require("qs"),baa=require("rdfxml-streaming-parser"),caa=require("showdown"),daa=Object.freeze({esVersion:6,assumingES6:!0,productionMode:!0,linkerVersion:"1.8.0",fileLevelThis:this}),l=Math.imul,da=Math.fround,ea=Math.clz32,fa;function eaa(a){for(var b in a)return b}function ha(a){this.MT=a}ha.prototype.toString=function(){return String.fromCharCode(this.MT)}; +var gaa=function faa(a,b,c){var f=new a.M(b[c]);if(c>24===a?m(ma):a<<16>>16===a?m(na):m(oa):m(pa);case "boolean":return m(qa);case "undefined":return m(sa);default:return null===a?a.Cja():a instanceof p?m(ta):a instanceof ha?m(ua):a&&a.$classData?m(a.$classData):null}} +function va(a){switch(typeof a){case "string":return"java.lang.String";case "number":return la(a)?a<<24>>24===a?"java.lang.Byte":a<<16>>16===a?"java.lang.Short":"java.lang.Integer":"java.lang.Float";case "boolean":return"java.lang.Boolean";case "undefined":return"java.lang.Void";default:return null===a?a.Cja():a instanceof p?"java.lang.Long":a instanceof ha?"java.lang.Character":a&&a.$classData?a.$classData.name:null.ze.name}} +function wa(a,b){return"string"===typeof a?65535&(a.charCodeAt(b)|0):a.Xi(b)}function haa(a,b){switch(typeof a){case "string":return xa(a,b);case "number":return iaa(ya(),+a,+b);case "boolean":return a=!!a,a===!!b?0:a?1:-1;default:return a instanceof p?za(Aa(),a.k,a.o,b.k,b.o):a instanceof ha?Da(a)-Da(b)|0:a.ih(b)}} +function Ea(a,b){switch(typeof a){case "string":return a===b;case "number":return Object.is(a,b);case "boolean":return a===b;case "undefined":return a===b;default:return a&&a.$classData||null===a?b=a.c(b):a instanceof p?b instanceof p?(a=Ga(a),b=Ga(b),b=a.k===b.k&&a.o===b.o):b=!1:b=a instanceof ha?b instanceof ha?Da(a)===Da(b):!1:Ha.prototype.c.call(a,b),b}} +function Ia(a){switch(typeof a){case "string":return Ja(a);case "number":return Ka(a);case "boolean":return a?1231:1237;case "undefined":return 0;default:return a&&a.$classData||null===a?a=a.v():a instanceof p?(a=Ga(a),a=a.k^a.o):a=a instanceof ha?Da(a):Ha.prototype.v.call(a),a}}function La(a){return"string"===typeof a?a.length|0:a.z()}function Ma(a){return void 0===a?"undefined":a.toString()}function Na(a,b){if(0===b)throw new Oa("/ by zero");return a/b|0} +function Pa(a,b){if(0===b)throw new Oa("/ by zero");return a%b|0}function Qa(a){return 2147483647a?-2147483648:a|0}function Ra(a){return a&&"object"===typeof a&&"default"in a?a["default"]:a}function Sa(a,b,c,d,f){if(a!==c||d>=BigInt(32);return b;case "boolean":return a?1231:1237;case "undefined":return 0;case "symbol":return a=a.description,void 0===a?0:Ja(a);default:if(null===a)return 0;b=Ua.get(a);void 0===b&&(Ta=b=Ta+1|0,Ua.set(a,b));return b}}function Wa(a){return"number"===typeof a&&a<<24>>24===a&&1/a!==1/-0} +function Ya(a){return"number"===typeof a&&a<<16>>16===a&&1/a!==1/-0}function la(a){return"number"===typeof a&&(a|0)===a&&1/a!==1/-0}function q(a){return new ha(a)}function Da(a){return null===a?0:a.MT}function Ga(a){return null===a?fa:a}function Ha(){}Ha.prototype.constructor=Ha;function t(){}t.prototype=Ha.prototype;Ha.prototype.v=function(){return Va(this)};Ha.prototype.c=function(a){return this===a};Ha.prototype.g=function(){var a=this.v();return va(this)+"@"+(+(a>>>0)).toString(16)}; +Ha.prototype.toString=function(){return this.g()};function Za(a){if("number"===typeof a){this.a=Array(a);for(var b=0;bh===g;g.name=c;g.isPrimitive=!0;g.isInstance=()=>!1;void 0!==d&&(g.yx=mb(g,d,f));return g} +function v(a,b,c,d,f){var g=new kb,h=eaa(a);g.Hb=d;g.$q="L"+c+";";g.mr=k=>!!k.Hb[h];g.name=c;g.isInterface=b;g.isInstance=f||(k=>!!(k&&k.$classData&&k.$classData.Hb[h]));return g}function mb(a,b,c,d){var f=new kb;b.prototype.$classData=f;var g="["+a.$q;f.M=b;f.Hb={b:1,ld:1,d:1};f.Lx=a;f.wu=a;f.xu=1;f.$q=g;f.name=g;f.isArrayClass=!0;f.mr=d||(h=>f===h);f.hp=c?h=>new b(new c(h)):h=>new b(h);f.isInstance=h=>h instanceof b;return f} +function jaa(a){function b(k){if("number"===typeof k){this.a=Array(k);for(var n=0;n{var n=k.xu;return n===f?d.mr(k.wu):n>f&&d===nb};c.mr=h;c.hp=k=> +new b(k);c.isInstance=k=>{k=k&&k.$classData;return!!k&&(k===c||h(k))};return c}function x(a){a.yx||(a.yx=jaa(a));return a.yx}function m(a){a.jH||(a.jH=new ob(a));return a.jH}kb.prototype.isAssignableFrom=function(a){return this===a||this.mr(a)};kb.prototype.checkCast=function(){};kb.prototype.getSuperclass=function(){return this.gma?m(this.gma):null};kb.prototype.getComponentType=function(){return this.Lx?m(this.Lx):null}; +kb.prototype.newArrayOfThisClass=function(a){for(var b=this,c=0;c!a.isPrimitive;nb.name="java.lang.Object";nb.isInstance=a=>null!==a;nb.yx=mb(nb,Za,void 0,a=>{var b=a.xu;return 1===b?!a.wu.isPrimitive:1r=>{if(h.nK){r=n.fX(r);var u=k.Gd;u.R=""+u.R+r;h.nK=!1}else r=", "+n.fX(r),u=k.Gd,u.R=""+u.R+r;return!1})(a,new Yb(!0),c,b);a:if(a instanceof Zb){var d=a;for(a=z().Jb;null!==d;)if(d instanceof Lb){if(b(d.Ov))break;a.i()?d=null:(d=a.G(),a=a.L())}else if(d instanceof Tb){var f=d.hE;a=new Vb(d.iE,a);d=f}else if(d instanceof Nb){for(d=d.zs.t();d.s();)if(f=d.p(),b(f))break a;a.i()?d=null:(d=a.G(),a=a.L())}else throw new B(d);}$b(c,41);return c.Gd.R} +e.g=function(){ac();return kaa(this,new bc(new C((()=>a=>Ma(a))(this))))};e.c=function(a){if(a instanceof Gb)a:{var b=(dc(),new ec);if(this===a)b=!0;else{var c=this.t();for(a=a.t();c.s()&&a.s();)if(!b.lo(c.p(),a.p())){b=!1;break a}b=c.s()===a.s()}}else b=!1;return b}; +e.v=function(){dc();var a=new fc;gc||(gc=new hc);var b=gc;a:{var c=this.t().t(),d=D().oe;if(c.s()){var f=c.p();if(c.s()){var g=c.p(),h=a.oo(f);f=d=D().l(d,h);g=a.oo(g);h=g-h|0;for(var k=2;c.s();){d=D().l(d,g);var n=a.oo(c.p());if(h!==(n-g|0)){d=D().l(d,n);for(k=1+k|0;c.s();)d=D().l(d,a.oo(c.p())),k=1+k|0;a=D().ea(d,k);break a}g=n;k=1+k|0}a=b.nH(D().l(D().l(f,h),g))}else a=D().ea(D().l(d,a.oo(f)),1)}else a=D().ea(d,0)}return a};function ic(){}ic.prototype=new t;ic.prototype.constructor=ic; +function jc(){}jc.prototype=ic.prototype;function kc(){}kc.prototype=new t;kc.prototype.constructor=kc;function lc(){}lc.prototype=kc.prototype;function mc(){}mc.prototype=new t;mc.prototype.constructor=mc;function nc(){}nc.prototype=mc.prototype;function oc(){}oc.prototype=new t;oc.prototype.constructor=oc;function pc(){}pc.prototype=oc.prototype;function rc(){}rc.prototype=new t;rc.prototype.constructor=rc;function sc(){}sc.prototype=rc.prototype; +rc.prototype.nH=function(a){a=l(-2048144789,a^(a>>>16|0));a=l(-1028477387,a^(a>>>13|0));return a^(a>>>16|0)};function tc(){uc=this;new vc;wc||(wc=new xc);yc||(yc=new zc);Ac||(Ac=new Bc);Cc||(Cc=new Fc);Gc||(Gc=new Hc);Ic||(Ic=new Jc);Kc||(Kc=new Lc);Mc||(Mc=new Nc)}tc.prototype=new t;tc.prototype.constructor=tc;tc.prototype.$classData=v({S0:0},!1,"cats.package$",{S0:1,b:1});var uc;function dc(){uc||(uc=new tc)}function Oc(){this.vE=null;Pc=this;this.vE=new Qc}Oc.prototype=new t; +Oc.prototype.constructor=Oc;Oc.prototype.$classData=v({Y0:0},!1,"cats.parse.Accumulator0$",{Y0:1,b:1});var Pc;function Rc(){Pc||(Pc=new Oc);return Pc}function Sc(){this.wE=null;Tc=this;this.wE=new Uc}Sc.prototype=new t;Sc.prototype.constructor=Sc;Sc.prototype.$classData=v({a1:0},!1,"cats.parse.Appender$",{a1:1,b:1});var Tc;function Vc(){Tc||(Tc=new Sc);return Tc} +function maa(a,b,c){c=new Wc(c,0);c=new Ob(c,new C(((d,f)=>g=>q(65535&((g|0)+f|0)))(a,b)));return Xc(c,new Yc(((d,f)=>()=>{z();return new Sb(q(65535&f))})(a,b)))}function Zc(){}Zc.prototype=new t;Zc.prototype.constructor=Zc;function $c(a,b){return 1===ad(b)}function cd(a,b){for(var c=null,d=null;b!==A();){var f=b.G();if(null===f)throw new B(f);for(f=maa(a,f.hH(),f.xa());f.s();){var g=new Vb(f.p(),A());null===d?c=g:d.Ma=g;d=g}b=b.L()}return null===c?A():c} +Zc.prototype.$classData=v({d1:0},!1,"cats.parse.BitSetUtil$",{d1:1,b:1});var dd;function ed(){dd||(dd=new Zc);return dd} +function fd(){this.yE=this.kL=this.lL=this.xE=this.jL=this.Bs=null;gd=this;var a=this.Bs=hd(id(),jd(new kd(48),q(57)));Rc();var b=new ld;id();a=new md(a,2147483647,b);this.jL=od(id(),a);a=this.Bs;b=new pd;a=naa(id(),a,b);this.xE=qd(id(),a);a=this.lL=hd(id(),jd(new kd(49),q(57)));b=this.jL;id();a=new rd(a,b);a=sd(td(id(),a),ud(id(),48));this.kL=qd(id(),a);a=vd(ud(id(),45));b=this.kL;id();a=new rd(a,b);a=this.yE=qd(id(),a);b=new C((()=>d=>{var f=wd();return xd(f,yd(d))})(this));zd(id(),a,b);a=ud(id(), +46);b=this.xE;id();a=new rd(a,b);b=hd(id(),Ad("eE"));var c=vd(hd(id(),Ad("+-")));id();b=new rd(b,c);c=this.xE;id();b=new rd(b,c);b=td(id(),b);c=this.yE;a=vd(a);id();a=new rd(c,a);b=vd(b);id();a=new rd(a,b);qd(id(),a)}fd.prototype=new t;fd.prototype.constructor=fd;fd.prototype.$classData=v({e1:0},!1,"cats.parse.Numbers$",{e1:1,b:1});var gd;function Bd(){gd||(gd=new fd);return gd} +function oaa(a){for(var b=new Cd;;){var c=!1,d=null,f=z().Jb;if(null===f?null===a:f.c(a))return b=b.qc(),Dd(b);if(a instanceof Vb){c=!0;d=a;f=d.Wc;var g=d.Ma;if(f instanceof Ed){a=Fd(g,f.Nm);continue}}if(c&&(f=d.Ma,d.Wc instanceof Gd)){a=f;continue}if(c)c=d.Ma,b=Hd(b,d.Wc),a=c;else throw new B(a);}} +function paa(a){for(var b=new Cd;;){var c=!1,d=null,f=z().Jb;if(null===f?null===a:f.c(a))return b=b.qc(),Dd(b);if(a instanceof Vb){c=!0;d=a;f=d.Wc;var g=d.Ma;if(f instanceof Id){a=Fd(g,f.rp);continue}}if(c&&(f=d.Wc,g=d.Ma,f instanceof Ed)){a=Fd(g,f.Nm);continue}if(c&&(f=d.Ma,d.Wc instanceof Gd)){a=f;continue}if(c){c=d.Wc;d=d.Ma;if(Jd(Kd(),c))return b=Hd(b,c).qc(),Dd(b);b=Hd(b,c);a=d}else throw new B(a);}} +var raa=function qaa(a,b,c,d,f){for(;;){if(d>=f.a.length||0>d)return new Ld(new Md(b,c),z().Jb);var h=f.a[d];if(h===(1+c|0)||h===c)d=1+d|0,c=h;else return b=new Md(b,c),a=qaa(a,h,h,1+d|0,f),new Ld(b,new Vb(a.ch,a.Oh))}}; +function Nd(){this.zE=this.Pi=this.Ez=this.uL=this.tL=null;Od=this;this.tL=new Pd("");id();var a=E();a=new Pd(a);var b=z().Jb;this.uL=new Vb(a,b);this.Ez=new Gd;this.Pi=new Pd(void 0);a=Qd().Ya();for(b=new Rd(32,1,126,!1);b.Vk;){var c=b.ur(),d=id();c&=65535;var f=z().Jb;d=hd(d,new Vb(q(c),f));d=td(id(),d);a.Ia(d)}a=a.nb();if(0<=a.z())b=a.z(),b=new (x(Sd).M)(b),a.Zb(b,0,2147483647),a=b;else{b=[];for(a=a.t();a.s();)d=a.p(),b.push(null===d?null:d);a=new (x(Sd).M)(b)}this.zE=a}Nd.prototype=new t; +Nd.prototype.constructor=Nd;function Td(a,b){var c=oaa(b);a:{for(b=c;!b.i();){var d=b.G();if(!Ud(Kd(),d)){b=!1;break a}b=b.L()}b=!0}if(b)if(d=(()=>k=>Vd(Kd(),k))(a),c===A())d=A();else{var f=c.G(),g=f=new Vb(d(f),A());for(c=c.L();c!==A();){var h=c.G();h=new Vb(d(h),A());g=g.Ma=h;c=c.L()}d=f}else d=c;d=Wd(Kd(),d);d=Xd(Kd(),d);a:if(c=z().Jb,null===c?null===d:c.c(d))a=a.Ez;else{if(d instanceof Vb&&(a=d.Wc,c=d.Ma,f=z().Jb,null===f?null===c:f.c(c)))break a;a=new Ed(d)}return b?qd(0,a):a} +function Zd(a,b){var c=paa(b);a:{for(b=c;!b.i();){var d=b.G();if(!Ud(Kd(),d)){b=!1;break a}b=b.L()}b=!0}if(b)if(d=(()=>k=>$d(Kd(),k))(a),c===A())d=A();else{var f=c.G(),g=f=new Vb(d(f),A());for(c=c.L();c!==A();){var h=c.G();h=new Vb(d(h),A());g=g.Ma=h;c=c.L()}d=f}else d=c;d=Wd(Kd(),d);d=Xd(Kd(),d);a:if(c=z().Jb,null===c?null===d:c.c(d))d=a.Ez;else{if(d instanceof Vb&&(c=d.Wc,f=d.Ma,g=z().Jb,null===g?null===f:g.c(f))){d=c;break a}d=new Id(d)}return b?od(a,d):d} +function naa(a,b,c){return new ae(b,1,2147483647,c)}function be(a,b,c){return b instanceof ce?new rd(b,c):c instanceof ce?new rd(b,c):new de(b,c)}function ee(a,b,c){return b instanceof ce?new fe(b,c):c instanceof ce?new fe(b,c):new ge(b,c)}function he(a,b,c){return b instanceof ce?zd(0,b,c):b instanceof Pd?new Pd(c.r(b.Ls)):b instanceof ie?(a=b.Mm,b=b.Xv,c=b instanceof je?new je(c.r(b.gk)):ke(le(me(),b),c),new ie(a,c)):new ie(b,c)} +function zd(a,b,c){return b instanceof ne?(a=b.fl,b=b.qp,c=b instanceof je?new je(c.r(b.gk)):ke(le(me(),b),c),new ne(a,c)):b instanceof Gd?b:new ne(b,c)} +function hd(a,b){if(b.i())return a.Ez;b=b.bh(oe());pe(F(),b);a=raa(a,b.a[0],b.a[0],1,b);if(null!==a){var c=a.ch,d=a.Oh;if(null!==c){var f=c.gH();c=c.iH();var g=z().Jb;if((null===g?null===d:g.c(d))&&0===f&&65535===c)return qe()}}d=b.a[0];ed();f=b.a[0];c=re(new ue,(1+b.a[-1+b.a.length|0]|0)-f|0);for(g=0;gc=>{var d=Da(c);c=xe(ye(),d);d=ze(ye(),d);var f=z().Jb;return new Vb(q(c),new Vb(q(d),f))})(a)));return hd(a,b)}function ud(a,b){var c=-32+b|0;if(0<=c&&cd=>q(d.cl))(a));Ve();var c=Ve().BK;c=new We(c);b=b.Pe(new Xe(c,a));a=Kb();return waa(b,a.ni).qc()}function xaa(a,b){if(b.i())return E();a=Ye();Ve();var c=Ve().np;a=a.tr(new We(c));for(c=b;!c.i();){var d=c.G().op;a.ec(d);c=c.L()}return new Ze(new $e(b.G().Gs,a.nb().qc()))}function yaa(a,b){for(;;)if(a=b,a instanceof Ue)b=a.Km;else return b} +function waa(a,b){for(;;){var c=a;if(c instanceof Vb){var d=c;c=d.Wc;d=d.Ma;if(d instanceof Vb){a=d.Wc;d=d.Ma;if(a.cl>(1+c.dl|0))a=new Vb(a,d),b=Ib(b,c);else{var f=c.Fs,g=c.cl;af||(af=new bf);c=c.dl;a=a.dl;a=new Vb(new cf(f,g,65535&(c>a?c:a)),d)}continue}}c=Pb(Kb(),df(a));return Jb(Kb(),b,c)}}function ef(){this.mL=null;gf=this;this.mL=new hf}ef.prototype=new t;ef.prototype.constructor=ef; +function zaa(a,b){var c=Ve(),d=Ve().CK;Ve();var f=Ve().np,g=(()=>n=>n)(b);c=new We(new jf(c,d,new kf(f)));d=null;d=lf(c);for(b=b.qc();!b.i();){var h=f=b.G();h=G(new H,h.Fk(),Te(h));var k=d;k=mf(nf(),k.Xc,h,k.Vd);if(k instanceof Ze)h=k.Sb,f=g(f),h.Ia(f);else if(E()===k)z(),k=new Cd,f=g(f),f=Hd(k,f),d=of(d,h,f);else throw new B(k);b=b.L()}b=d;g=new pf(c);nf();c=b.Xc;nf();d=E();for(c=new qf(c,d,b.Vd);c.s();){d=c.p();if(null===d)throw new B(d);b=d.Ea();d=d.xa();d=rf(sf(),d.nb());g.Xk=tf(g,g.Xk,b,d)}g= +uf(g);nf();c=g.Xc;nf();b=E();g=new qf(c,b,g.Vd);g=new vf(g,new C((n=>r=>{if(null!==r){var u=r.Ea(),w=r.xa();if(null!==u){r=u.xa();var y=new Cd,K=new Cd;u=new Cd;var U=new Cd;for(w=w.qc();!w.i();){var Z=yaa(wf(),w.G());Z instanceof cf?Hd(y,Z):Z instanceof $e?Hd(K,Z):Z instanceof xf?Hd(u,Z):Hd(U,Z);w=w.L()}w=vaa(wf(),y.qc());K=xaa(wf(),K.qc());U=U.qc();U=Aaa(Xb(w,K),U);u=U.i()?u.qc():U;if(r.i())return u;r=df(r);r=((ra,Ba)=>ka=>{a:{wf();for(var Ca=Ba;;){var Fa=z().Jb;if(null===Fa?null===Ca:Fa.c(Ca))break a; +if(Ca instanceof Vb)ka=new Ue(Ca.Wc,ka),Ca=Ca.Ma;else throw new B(Ca);}}return ka})(n,r);if(u===A())return A();U=u.G();K=U=new Vb(r(U),A());for(u=u.L();u!==A();)w=u.G(),w=new Vb(r(w),A()),K=K.Ma=w,u=u.L();return U}}throw new B(r);})(a)));Wb();g=Xb(A(),g);sf();g=Dd(g);Ve();return rf(0,g.Pe(new We(a.mL)))}ef.prototype.$classData=v({h1:0},!1,"cats.parse.Parser$Expectation$",{h1:1,b:1});var gf;function wf(){gf||(gf=new ef);return gf} +function Baa(a,b){for(var c=z().Jb,d=Kb().ni;;){var f=!1,g=null,h=z().Jb;if(null===h?null===b:h.c(b))return a=c,a.i()?a=Kb().ni:(Kb(),a=hd(id(),cd(ed(),a)),a=new Lb(a)),Jb(Kb(),d,a);if(b instanceof Vb){f=!0;g=b;var k=g.Wc;h=g.Ma;if(qe()===k){a=(()=>n=>n instanceof we)(a);g=h;a:for(;;)if(g.i()){a=A();break}else if(f=g.G(),c=g.L(),!0===!!a(f))g=c;else for(;;){if(c.i())a=g;else{f=c.G();if(!0!==!!a(f)){c=c.L();continue}f=c;c=new Vb(g.G(),A());b=g.L();for(g=c;b!==f;)h=new Vb(b.G(),A()),g=g.Ma=h,b=b.L(); +for(b=f=f.L();!f.i();){h=f.G();if(!0===!!a(h)){for(;b!==f;)h=new Vb(b.G(),A()),g=g.Ma=h,b=b.L();b=f.L()}f=f.L()}b.i()||(g.Ma=b);a=c}break a}c=qe();d=Ib(d,c);a=Pb(Kb(),a);return Jb(Kb(),d,a)}}if(f&&(k=g.Wc,h=g.Ma,k instanceof we)){g=k;g=G(new H,g.el,g.Lm);c=new Vb(g,c);b=h;continue}if(f)f=g.Wc,b=g.Ma,g=z().Jb,c.i()?c=Kb().ni:(Kb(),c=hd(id(),cd(ed(),c)),c=new Lb(c)),d=Ib(Jb(Kb(),d,c),f),c=g;else throw new B(b);}} +function yf(a,b){var c=!1;for(b=b.t();!c&&b.s();)c=b.p(),c=0<=(a.length|0)&&a.substring(0,c.length|0)===c&&(c.length|0)!==(a.length|0);return c} +function Caa(a,b,c){for(var d=Kb().ni;;){var f=!1,g=null,h=b;b=z().Jb;if(null===b?null===h:b.c(h))return a=d,c.i()?c=Kb().ni:1===zf(nf(),c.Cd)?(Kb(),c=new Ge(c.G()),c=new Lb(c)):(Kb(),c=new He(c),c=new Lb(c)),Jb(Kb(),a,c);if(h instanceof Vb){f=!0;g=h;var k=g.Wc;b=g.Ma;if(k instanceof Ge){f=k.hk;yf(f,c)?(g=Ye(),f=Af(new Bf,[f]),Ve(),h=Ve().np,g=g.Hx(f,new We(h)),c.i()?c=Kb().ni:1===zf(nf(),c.Cd)?(Kb(),c=new Ge(c.G()),c=new Lb(c)):(Kb(),c=new He(c),c=new Lb(c)),d=Jb(Kb(),d,c),c=g):c=c.po(f);continue}}if(f&& +(k=g.Wc,b=g.Ma,k instanceof He)){f=Daa(k.Ps,new C(((n,r)=>u=>yf(u,r))(a,c)));if(null===f)throw new B(f);g=f.Ea();f=c.El(f.xa());g.i()?c=f:(c=d,f.i()?d=Kb().ni:1===zf(nf(),f.Cd)?(Kb(),d=new Ge(f.G()),d=new Lb(d)):(Kb(),d=new He(f),d=new Lb(d)),d=Jb(Kb(),c,d),c=g);continue}if(f)b=g.Wc,g=g.Ma,f=Ye(),Ve(),h=Ve().np,f=f.cr(new We(h)),c.i()?c=Kb().ni:1===zf(nf(),c.Cd)?(Kb(),c=new Ge(c.G()),c=new Lb(c)):(Kb(),c=new He(c),c=new Lb(c)),d=Ib(Jb(Kb(),d,c),b),b=g,c=f;else throw new B(h);}} +function Cf(){Df=this;jd(new kd(0),q(65535))}Cf.prototype=new t;Cf.prototype.constructor=Cf; +function Me(a,b){for(;;){if(b instanceof Ne||b instanceof Oe||qe()===b||b instanceof we||b instanceof Ge||De()===b||Ee()===b||Ie()===b||b instanceof Pd||b instanceof Gd||b instanceof Be||b instanceof He)return!0;if(b instanceof ie)b=b.Mm;else if(b instanceof ne)b=b.fl;else if(b instanceof ge){var c=b.hl;if(Me(a,b.gl))b=c;else return!1}else if(b instanceof fe)if(c=b.up,Me(a,b.tp))b=c;else return!1;else if(b instanceof Ef)b=b.vp;else if(b instanceof Ff)b=b.Rm;else return!1}} +function Ud(a,b){for(;;){var c=!1;a=null;var d=b instanceof Je?!0:b instanceof Ke?!0:b instanceof Pd&&""===b.Ls?!0:b instanceof Gd?!0:!1;if(d)return!0;if(b instanceof ne){c=!0;a=b;var f=a.fl;d=a.qp;if(f instanceof Ge&&(f=f.hk,d instanceof je))return f===d.gk}if(c&&(c=a.fl,a=a.qp,c instanceof we&&(d=c,c=d.el,d=d.Lm,a instanceof je&&(a=a.gk,$c(ed(),d)))))return b=String.fromCharCode(65535&c),null===a?null===b:Ea(a,b);if(b instanceof Ed){for(b=b.Nm;!b.i();){a=b.G();if(!Ud(Kd(),a))return!1;b=b.L()}return!0}if(b instanceof +Id){for(b=b.rp;!b.i();){a=b.G();if(!Ud(Kd(),a))return!1;b=b.L()}return!0}if(b instanceof Ef)b=b.vp;else if(b instanceof Ff)b=b.Rm;else return!1}}function Jd(a,b){for(;;){if(Ie()===b||b instanceof Pd)return!0;if(b instanceof ie)b=b.Mm;else if(b instanceof ge){var c=b.hl;if(Jd(a,b.gl))b=c;else return!1}else if(b instanceof de)if(c=b.Pm,Jd(a,b.Om))b=c;else return!1;else if(b instanceof Ff)b=b.Rm;else return!1}} +function $d(a,b){for(;;){var c=b;if(c instanceof ce)return Vd(a,c);if(c instanceof Pd||Ie()===c||Jd(a,c))return id().Pi;if(c instanceof ie)b=c.Mm;else{if(c instanceof Gf)return b=c,new Gf(b.Yv,$d(a,b.Zv));if(c instanceof Je)return c.bw;if(c instanceof Ce)return c.dw;if(c instanceof Be)return c;if(c instanceof Ne)return b=c.Uv,uaa(id(),$d(a,b));if(c instanceof Id){var d=c.rp;b=id();a=(()=>h=>$d(Kd(),h))(a);if(d===A())a=A();else{c=d.G();var f=c=new Vb(a(c),A());for(d=d.L();d!==A();){var g=d.G();g=new Vb(a(g), +A());f=f.Ma=g;d=d.L()}a=c}return Zd(b,a)}if(c instanceof de){b=c.Pm;c=$d(a,c.Om);if(c instanceof de)return new de(c.Om,$d(a,new de(new Ce(c.Pm),b)));if(c!==id().Pi)return a=$d(a,b),a===id().Pi?c:new de(c,a)}else if(c instanceof ge){b=c.hl;c=$d(a,c.gl);if(c instanceof ge)return new ge(c.gl,$d(a,new ge(new Ce(c.hl),b)));if(c!==id().Pi)return a=$d(a,b),a===id().Pi?c:new ge(c,a)}else{if(c instanceof Hf)return new Hf(new If(c.Is));if(c instanceof md)return b=c,c=b.Ms,new md(Vd(a,b.Ns),c,Rc().vE);if(c instanceof +Ff)return b=c,new Ff(b.ew,$d(a,b.Rm));if(De()===c||Ee()===c)return b;throw new B(c);}}}}function Jf(a){if(a instanceof ce)return a;Kf||(Kf=new Lf);a="violated invariant: "+a+" should be a Parser";throw I(J(),Mf(new Nf,a));} +function Vd(a,b){for(;;){var c=b;if(c instanceof ne)b=c.fl;else{if(c instanceof Of)return b=c,new Of(b.$v,$d(a,b.aw));if(c instanceof Ke)return c.cw;if(c instanceof Fe)return c.Qs;if(c instanceof Oe)return b=c.Vv,Le(id(),Vd(a,b));if(c instanceof Ed){var d=c.Nm;b=id();a=(()=>h=>Vd(Kd(),h))(a);if(d===A())a=A();else{c=d.G();var f=c=new Vb(a(c),A());for(d=d.L();d!==A();){var g=d.G();g=new Vb(a(g),A());f=f.Ma=g;d=d.L()}a=c}return Td(b,a)}if(c instanceof rd){b=c.Ks;c=$d(a,c.Js);if(c instanceof de)return f= +c.Pm,new rd(c.Om,$d(a,be(id(),f.ws(),b)));if(c instanceof rd)return f=c.Ks,new rd(c.Js,$d(a,be(id(),f.ws(),b)));if(c===id().Pi)b=Jf(b);else return a=$d(a,b),a===id().Pi?Jf(c):new rd(c,a)}else if(c instanceof fe){b=c.up;c=$d(a,c.tp);if(c instanceof ge)return f=c.hl,new fe(c.gl,$d(a,ee(id(),f.ws(),b)));if(c instanceof fe)return f=c.up,new fe(c.tp,$d(a,ee(id(),f.ws(),b)));if(c===id().Pi)b=Jf(b);else return a=$d(a,b),a===id().Pi?Jf(c):new fe(c,a)}else{if(c instanceof Pf)return new Pf(new Qf(c.pp));if(c instanceof +ae)return b=c,c=b.Os,f=b.Qm,new ae(Vd(a,b.sp),c,f,Rc().vE);if(c instanceof Ef)return b=c,new Ef(b.fw,Vd(a,b.vp));if(qe()===c||c instanceof we||c instanceof Ge||c instanceof He||c instanceof Gd)return b;throw new B(c);}}}}function Rf(a,b,c){a=c.lg;c.lg=!1;var d=c.Xb;b.pb(c);b=c.ik.substring(d,c.Xb);c.lg=a;return b}function Sf(a,b,c){a=c.Xb;b=b.pb(c);null!==c.zc&&(c.Xb=a);return b} +function Tf(a,b,c){a=c.Xb;for(var d=Kb().ni,f=0;f=c){f.zc=null;break}else return!1}return!0}function cg(a,b,c,d,f){a=f.Xb;for(var g=0;g<=d;)if(b.pb(f),null===f.zc)g=1+g|0,a=f.Xb;else{f.Xb===a&&g>=c&&(f.zc=null);break}}function Wd(a,b){return Baa(a,b).qc()}function Xd(a,b){var c=Ye();Ve();var d=Ve().np;return Caa(a,b,c.cr(new We(d))).qc()}Cf.prototype.$classData=v({q1:0},!1,"cats.parse.Parser$Impl$",{q1:1,b:1});var Df; +function Kd(){Df||(Df=new Cf);return Df}v({d2:0},!1,"cats.parse.Parser$Soft01$",{d2:1,b:1});function dg(a){this.ik=a;this.Xb=0;this.zc=null;this.lg=!0}dg.prototype=new t;dg.prototype.constructor=dg;dg.prototype.$classData=v({e2:0},!1,"cats.parse.Parser$State",{e2:1,b:1});function eg(){this.rc=0;this.cc=!1}eg.prototype=new t;eg.prototype.constructor=eg;function fg(){}fg.prototype=eg.prototype; +function Eaa(a,b){var c=new dg(b);a=a.pb(c);var d=c.zc;c=c.Xb;if(null===d){if(c===(b.length|0))return z(),new Zf(a);z();b=new gg(c,new Ld(new hg(c,b.length|0),z().Jb));return new Yf(b)}z();b=new gg(c,zaa(wf(),rf(sf(),d.qc())));return new Yf(b)}function vd(a){var b=id();a=he(id(),a,new C((()=>d=>new Ze(d))(a)));var c=id().uL;return Zd(b,new Vb(a,c))}e=eg.prototype;e.ws=function(){return Ae(id(),this)};e.xK=function(a){return be(id(),this,a)}; +e.wK=function(a){return this.xK(a.ws()).rI(new C((()=>b=>b.Ea())(this)))};function Faa(a,b){var c=id(),d=z().Jb;return Zd(c,new Vb(a,new Vb(b,d)))}e.rI=function(a){return he(id(),this,a)};e.v=function(){if(!this.cc&&!this.cc){var a=D();this.rc=ig(a,this);this.cc=!0}return this.rc};var jg=v({Yb:0},!1,"cats.parse.Parser0",{Yb:1,b:1});eg.prototype.$classData=jg;function kg(a,b,c,d){this.xL=a;this.h2=b;this.wL=c;this.yL=d}kg.prototype=new t;kg.prototype.constructor=kg; +kg.prototype.g=function(){var a=lg(L(),this.xL);a=mg(a,"[",", ","]");var b=ng(L(),this.wL);return"RadixNode("+a+", "+mg(b,"[",", ","]")+", "+this.yL+")"};var og=v({f2:0},!1,"cats.parse.RadixNode",{f2:1,b:1});kg.prototype.$classData=og; +function Gaa(a,b,c,d){for(var f=z().Jb;;){var g=b;if(g instanceof Vb){b=g;g=b.Wc;b=b.Ma;var h=Haa(c,g);if(0===h){sf();h=new Ld(g,z().Jb);var k=c.charCodeAt(0),n=c;n=pg(qg(),n,1,n.length|0);var r=d;d=((K,U)=>Z=>rg(qg(),Z,U.length|0))(a,c);c=d(r.ch);var u=r.Oh;if(u===A())d=A();else{r=u.G();var w=r=new Vb(d(r),A());for(u=u.L();u!==A();){var y=u.G();y=new Vb(d(y),A());w=w.Ma=y;u=u.L()}d=r}c=new Ld(c,d);c=new sg(q(65535&(k|0)),n,tg(c.ch,c.Oh));f=new Vb(c,f);c=g;d=h}else h=Iaa(qg(),c,h),g=new Ld(g,new Vb(d.ch, +d.Oh)),c=h,d=g}else{b=z().Jb;if(null===b?null===g:b.c(g)){g=c.charCodeAt(0);b=c;b=pg(qg(),b,1,b.length|0);k=d;h=((K,U)=>Z=>rg(qg(),Z,U.length|0))(a,c);a=h(k.ch);n=k.Oh;if(n===A())h=A();else{c=n.G();k=c=new Vb(h(c),A());for(n=n.L();n!==A();)d=n.G(),d=new Vb(h(d),A()),k=k.Ma=d,n=n.L();h=c}a=new Ld(a,h);a=new sg(q(65535&(g|0)),b,tg(a.ch,a.Oh));return new Vb(a,f)}throw new B(g);}}}function ug(){this.vL=null;vg=this;this.vL=new kg((oe(),new bb(0)),new (x(ja).M)(0),new (x(og).M)(0),!0)}ug.prototype=new t; +ug.prototype.constructor=ug; +function wg(a,b){sf();var c=(()=>n=>""!==n)(a),d=b.Oh;a:for(var f;;)if(d.i()){f=A();break}else{var g=d.G();f=d.L();if(!1===!!c(g))d=f;else for(;;){if(f.i())f=d;else{g=f.G();if(!1!==!!c(g)){f=f.L();continue}g=f;f=new Vb(d.G(),A());var h=d.L();for(d=f;h!==g;){var k=new Vb(h.G(),A());d=d.Ma=k;h=h.L()}for(h=g=g.L();!g.i();){k=g.G();if(!1===!!c(k)){for(;h!==g;)k=new Vb(h.G(),A()),d=d.Ma=k,h=h.L();h=g.L()}g=g.L()}h.i()||(d.Ma=h)}break a}}c=c(b.ch)?new Vb(b.ch,f):f;c=Jaa(c);if(c instanceof Ze){c=c.Sb;f= +c.Oh;d=c.ch;sf();g=df(Gaa(a,f,d,new Ld(c.ch,z().Jb)));a=(()=>n=>{if(null!==n){var r=n.rk;return new sg(q(Da(n.pk)),n.qk,wg(xg(),r))}throw new B(n);})(a);if(g===A())a=A();else{f=g.G();d=f=new Vb(a(f),A());for(g=g.L();g!==A();)h=g.G(),h=new Vb(a(h),A()),d=d.Ma=h,g=g.L();a=f}f=yg().eV;a=Kaa(a,f);if(null===a)throw new B(a);f=a.pk;d=a.qk;a=a.rk;oe();if(0<=f.N())g=f.N(),g=new bb(g),zg(f,g,0,2147483647),f=g;else{g=null;g=[];for(f=f.t();f.s();)h=f.p(),g.push(Da(h));f=new bb(new Uint16Array(g))}if(0<=d.N())g= +d.N(),g=new (x(ja).M)(g),zg(d,g,0,2147483647),d=g;else{g=null;g=[];for(d=d.t();d.s();)h=d.p(),g.push(null===h?null:h);d=new (x(ja).M)(g)}if(0<=a.N())g=a.N(),g=new (x(og).M)(g),zg(a,g,0,2147483647),a=g;else{g=null;g=[];for(a=a.t();a.s();)h=a.p(),g.push(null===h?null:h);a=new (x(og).M)(g)}return new kg(f,d,a,c.Y()=c||(65535&(a.charCodeAt(d)|0))!==(65535&(b.charCodeAt(d)|0))?f=!1:d=1+d|0;return d}ug.prototype.$classData=v({g2:0},!1,"cats.parse.RadixNode$",{g2:1,b:1});var vg;function xg(){vg||(vg=new ug);return vg} +function Ag(){this.AE=this.DL=this.CL=this.BL=this.AL=this.zL=null;Bg=this;var a=hd(id(),jd(new kd(65),q(90))),b=hd(id(),jd(new kd(97),q(122)));this.zL=sd(a,b);hd(id(),jd(new kd(48),q(49)));hd(id(),jd(new kd(1),q(127)));ud(id(),13);ud(id(),10);a=id();this.AL=new Ge("\r\n");a=id();b=jd(new kd(0),q(31));hd(a,b.Ce(q(127)));this.BL=Bd().Bs;ud(id(),34);a=this.BL;b=saa();sd(a,b);this.CL=ud(id(),9);this.DL=ud(id(),32);this.AE=sd(this.DL,this.CL);id();a=sd(this.AE,Laa(this.AL,this.AE));Rc();a=new md(a,2147483647, +new ld);Ae(id(),a);hd(id(),jd(new kd(0),q(255)));hd(id(),jd(new kd(33),q(126)))}Ag.prototype=new t;Ag.prototype.constructor=Ag;Ag.prototype.$classData=v({i2:0},!1,"cats.parse.Rfc5234$",{i2:1,b:1});var Bg;function Cg(a,b){this.m2=a;this.l2=b}Cg.prototype=new t;Cg.prototype.constructor=Cg;Cg.prototype.$classData=v({k2:0},!1,"cats.syntax.OrderOps",{k2:1,b:1});function Dg(){}Dg.prototype=new t;Dg.prototype.constructor=Dg; +function Maa(a,b){var c=G(new H,"baseIRI","http://com.github.p2m2.discovery/");a instanceof Eg?a=Ma(a):(Ig(),yg(),a=void 0);a=G(new H,"format",a);var d=G(new H,"end",void 0);if(null!==b){Jg||(Jg=new Kg);var f={};b.Fa(new C(((g,h)=>k=>{if(null!==k)h[k.Ea()]=k.xa();else throw new B(k);})(Jg,f)));b=f}else Ig(),yg(),b=void 0;c=[c,a,d,G(new H,"prefixes",b)];c=Af(new Bf,c);return Lg(Mg(),c)}Dg.prototype.$classData=v({p2:0},!1,"com.github.p2m2.facade.N3Options$",{p2:1,b:1});var Ng;function Og(){} +Og.prototype=new t;Og.prototype.constructor=Og; +function Naa(a,b){0f=>f)(a)));return(mg(a,""," \n","")+"\n"+Saa(bh(),b.wf)+"\n"+Paa(b)).split("\n\n").join("\n")}ah.prototype.$classData=v({G3:0},!1,"inrae.semantic_web.SparqlQueryBuilder$",{G3:1,b:1});var kh; +function lh(){kh||(kh=new ah);return kh}function mh(){this.nw=null;nh=this;L();var a=A();this.nw=M(0,a)}mh.prototype=new t;mh.prototype.constructor=mh;function oh(a,b){var c=a.nw.Nc(b);if(c instanceof Ze)return c.Sb;if(E()===c){c=a.nw;var d=new ph;a.nw=c.Kv(G(new H,b,d));return a.nw.r(b)}throw new B(c);}mh.prototype.$classData=v({Y3:0},!1,"inrae.semantic_web.driver.RequestDriver$",{Y3:1,b:1});var nh;function qh(){nh||(nh=new mh);return nh}function rh(){}rh.prototype=new t; +rh.prototype.constructor=rh;rh.prototype.$classData=v({Z3:0},!1,"inrae.semantic_web.driver.RequestDriverFactory$",{Z3:1,b:1});var uh;function vh(a,b){a.Vx().Td.Fa(new C(((c,d)=>f=>{c.IH().Pa(f)||f.$U(d)})(a,b)))}function wh(a){a.Ux(xh());a.HH(xh())}function yh(){this.$z=null;zh=this;var a=Ah(),b=[Bh().XM];this.$z=Ch(a,Af(new Bf,b))}yh.prototype=new t;yh.prototype.constructor=yh;yh.prototype.$classData=v({j4:0},!1,"inrae.semantic_web.node.AggregateNode$",{j4:1,b:1});var zh; +function Dh(){zh||(zh=new yh);return zh}function Eh(){this.HM=null;Fh=this;var a=Ah(),b=[Gh().gQ,Hh().ON,Ih().TN];this.HM=Ch(a,Af(new Bf,b))}Eh.prototype=new t;Eh.prototype.constructor=Eh;Eh.prototype.$classData=v({t4:0},!1,"inrae.semantic_web.node.BuiltInCallNode$",{t4:1,b:1});var Fh;function Jh(){this.fA=null;Kh=this;var a=Ah();Lh||(Lh=new Mh);this.fA=Ch(a,Af(new Bf,[Lh.SO]))}Jh.prototype=new t;Jh.prototype.constructor=Jh; +Jh.prototype.$classData=v({F5:0},!1,"inrae.semantic_web.node.ExpressionNode$",{F5:1,b:1});var Kh;function Nh(){Kh||(Kh=new Jh);return Kh}function Oh(){this.qN=null;Ph=this;var a=Ah(),b=[Qh().kF,Rh().fR,Sh().kR,Qh().kF,Th().sP,Uh().RM,Vh().sQ,Wh().mQ,Xh().pN,Yh().xO,Zh().DN,$h().JN,ai().IQ,bi().OQ];this.qN=Ch(a,Af(new Bf,b))}Oh.prototype=new t;Oh.prototype.constructor=Oh;Oh.prototype.$classData=v({G5:0},!1,"inrae.semantic_web.node.FilterNode$",{G5:1,b:1});var Ph; +function ci(){this.vN=null;di=this;var a=Ah(),b=[ei().BM,fi().OP,gi().LM,hi().uN,ii().gP];this.vN=Ch(a,Af(new Bf,b))}ci.prototype=new t;ci.prototype.constructor=ci;ci.prototype.$classData=v({P5:0},!1,"inrae.semantic_web.node.FunctionNumericNode$",{P5:1,b:1});var di;function ji(){this.wN=null;ki=this;var a=Ah(),b=[li().yQ,mi().zP];this.wN=Ch(a,Af(new Bf,b))}ji.prototype=new t;ji.prototype.constructor=ji;ji.prototype.$classData=v({R5:0},!1,"inrae.semantic_web.node.FunctionStringNode$",{R5:1,b:1});var ki; +function ni(){this.xN=null;oi=this;var a=Ah(),b=[ri().aN];this.xN=Ch(a,Af(new Bf,b))}ni.prototype=new t;ni.prototype.constructor=ni;ni.prototype.$classData=v({S5:0},!1,"inrae.semantic_web.node.FunctionUriNode$",{S5:1,b:1});var oi;function si(){this.nO=null;ti=this;var a=Ah(),b=[ui().jF,vi().hF];this.nO=Ch(a,Af(new Bf,b))}si.prototype=new t;si.prototype.constructor=si;si.prototype.$classData=v({o7:0},!1,"inrae.semantic_web.node.LogicNode$",{o7:1,b:1});var ti; +function wi(a,b,c,d){a.D=b;a.U=c;a.V=d}function xi(){this.V=this.U=this.D=null}xi.prototype=new t;xi.prototype.constructor=xi;function zi(){}zi.prototype=xi.prototype;function Ai(a,b,c){return a.sb(a.Ja(),a.kb().Kv(G(new H,b,c)))}e=xi.prototype;e.zja=function(a){return this.sb(this.Ja().rb(a),this.kb())}; +e.io=function(a,b){if(a===this.La()&&this.Vh(b))return a=this.Ja().Da(new C(((d,f,g)=>h=>h.io(f,g))(this,a,b))),this.sb(a.rb(b),this.kb());if(a!==this.La()||this.Vh(b))return this.sb(this.Ja().Da(new C(((d,f,g)=>h=>h.io(f,g))(this,a,b))),this.kb());b=Bi(ia(b));a=Bi(ia(this));var c=E();yg();c.i()||Ci();throw new Di("cannot add this child ["+b+"] to the current node ["+a+"]");}; +function Ei(a,b,c){var d=eh().wb,f=fh();gh(hh(d),f.Tb)&&ih(eh().wb,fh(),new jh("com/github/p2m2/shared/src/main/scala/inrae/semantic_web/node/Element.scala","Element.scala",36,10)," -- getRdfNode -- ");return a instanceof Fi&&b===a.La()?new Ze(a):a.Ja().i()?E():a.Ja().lb(new C(((g,h,k)=>n=>Ei(n,h,k+"*"))(a,b,c))).Pd()} +e.g=function(){var a=Bi(ia(this)),b=this.La(),c=0h=>h.tf(f,g))(this,a,b)));return c.$d(a)};var Hi=v({vb:0},!1,"inrae.semantic_web.node.Node",{vb:1,b:1});xi.prototype.$classData=Hi; +function Ii(){this.fa=null;Ji=this;var a=Ah(),b=Ki().kA;Li||(Li=new Mi);var c=Li.hP,d=Ni().XQ,f=Oi().mO;ti||(ti=new si);var g=ti.nO;Ph||(Ph=new Oh);b=[b,c,d,f,g,Ph.qN,Pi().dA,Qi().oA,Ri().aA,Nh().fA,Si().mA,Ti().cP,Dh().$z];this.fa=Ch(a,Af(new Bf,b))}Ii.prototype=new t;Ii.prototype.constructor=Ii;Ii.prototype.$classData=v({p7:0},!1,"inrae.semantic_web.node.Node$",{p7:1,b:1});var Ji;function Ui(){Ji||(Ji=new Ii);return Ji} +function Mh(){this.SO=null;Lh=this;var a=Ah(),b=Vi().bQ;ki||(ki=new ji);var c=ki.wN;di||(di=new ci);var d=di.vN;oi||(oi=new ni);var f=oi.xN;Fh||(Fh=new Eh);this.SO=Ch(a,Af(new Bf,[b,c,d,f,Fh.HM]))}Mh.prototype=new t;Mh.prototype.constructor=Mh;Mh.prototype.$classData=v({s8:0},!1,"inrae.semantic_web.node.PrimaryExpression$",{s8:1,b:1});var Lh;function Mi(){this.hP=null;Li=this;var a=Ah(),b=[Wi().SP,Xi().pA,Yi().CO,Zi().hO,$i().cO];this.hP=Ch(a,Af(new Bf,b))}Mi.prototype=new t; +Mi.prototype.constructor=Mi;Mi.prototype.$classData=v({U8:0},!1,"inrae.semantic_web.node.RdfNode$",{U8:1,b:1});var Li;function aj(){this.mA=null;bj=this;var a=Ah(),b=[cj().MO,dj().RO,gj().XO,hj().jN,ij().lP,jj().HO,kj().YN];this.mA=Ch(a,Af(new Bf,b))}aj.prototype=new t;aj.prototype.constructor=aj;aj.prototype.$classData=v({W9:0},!1,"inrae.semantic_web.node.SolutionSequenceModifierNode$",{W9:1,b:1});var bj;function Si(){bj||(bj=new aj);return bj}function lj(){}lj.prototype=new t; +lj.prototype.constructor=lj;function nj(a,b,c){if(c instanceof Fi&&c.La()===b)return new (x(oj).M)([c]);a=c.Ja();if(0<=a.N())c=a.N(),c=new (x(Hi).M)(c),a.Zb(c,0,2147483647),a=c;else{c=[];for(a=a.t();a.s();){var d=a.p();c.push(null===d?null:d)}a=new (x(Hi).M)(c)}c=[];for(d=0;dh=>{h=sj(pj(),f,h);return 0f=>tj(pj(),f))(a)));return b.Re.lb(new C((()=>f=>tj(pj(),f))(a))).fd(d).fd(c)}return b instanceof Fi?(c=N(z().w,Af(new Bf,[b.La()])),b.Ja().lb(new C((()=>f=>tj(pj(),f))(a))).fd(c)):b instanceof vj?(c=N(z().w,Af(new Bf,[b.D])),b.U.lb(new C((()=>f=>tj(pj(),f))(a))).fd(c)):b instanceof wj?(c=N(z().w,Af(new Bf,[b.La()])),b.Ja().lb(new C((()=>f=>tj(pj(),f))(a))).fd(c)):N(z().w,A())} +function Taa(a,b,c){var d=z().w,f=[c.Od(b,0)];d=N(d,Af(new Bf,f));f=b.U.lb(new C(((n,r,u)=>w=>xj(pj(),w,1+(r|0)|0,u))(a,0,c)));var g=b.Re.lb(new C(((n,r,u)=>w=>xj(pj(),w,1+(r|0)|0,u))(a,0,c))),h=b.Ke.lb(new C(((n,r,u)=>w=>xj(pj(),w,1+(r|0)|0,u))(a,0,c))),k=b.zd.lb(new C(((n,r,u)=>w=>xj(pj(),w,1+(r|0)|0,u))(a,0,c)));return b.Ze.lb(new C(((n,r,u)=>w=>xj(pj(),w,1+(r|0)|0,u))(a,0,c))).fd(k).fd(h).fd(g).fd(f).fd(d)} +function xj(a,b,c,d){var f=z().w,g=[d.Od(b,c)];f=N(f,Af(new Bf,g));return b.Ja().lb(new C(((h,k,n)=>r=>xj(pj(),r,1+(k|0)|0,n))(a,c,d))).fd(f)}lj.prototype.$classData=v({Eba:0},!1,"inrae.semantic_web.node.pm.NodeVisitor$",{Eba:1,b:1});var yj;function pj(){yj||(yj=new lj);return yj}function zj(){}zj.prototype=new t;zj.prototype.constructor=zj;function Saa(a,b){a=b.Da(new C((()=>c=>{if(null!==c)return"PREFIX "+c.Ea()+": "+c.xa().g();throw new B(c);})(a)));return mg(a,"","\n","")} +function Uaa(a,b){a=b.Da(new C((()=>c=>"FROM "+c.g())(a)));return mg(a,"","\n","")}function Vaa(a,b){a=b.Da(new C((()=>c=>"FROM NAMED "+c.g())(a)));return mg(a,"","\n","")} +function Qaa(a,b){var c=b.zd.ob(new C((()=>h=>h instanceof Aj)(a))).rh();c.i()?c=E():(c=c.Sa(),c=new Ze(Bj(bh(),c,"","")));c=c.i()?"":c.Sa();var d=b.zd.ob(new C((()=>h=>h instanceof Cj)(a))).rh();d.i()?d=E():(d=d.Sa(),d=new Ze(Bj(bh(),d,"","")));d=d.i()?"":d.Sa();var f=b.zd.ob(new C((()=>h=>h instanceof Dj)(a))).rh();if(f.i())f=E();else{f=f.Sa();if(f instanceof Dj){var g=tj(pj(),b);g=f.Fj.ob(new C(((h,k)=>n=>k.Pa(n.dh)||"*"===n.dh)(a,g)));f=new Dj(g,f.D,f.ql,f.yn)}f=new Ze(f)}f.i()?f=E():(g=f.Sa(), +f=Bj(bh(),g,"",""),g=g.Ja().Da(new C((()=>h=>ch(bh(),h,""))(a))),f=new Ze(""+f+mg(g,"","","")));return"SELECT "+c+d+(f.i()?"*":f.Sa())+"\n"+Uaa(a,b.$f)+"\n"+Vaa(a,b.bg)+"\nWHERE {"} +function Raa(a,b){var c=b.zd.ob(new C((()=>f=>f instanceof Ej&&0f=>f instanceof Fj&&0f=>f instanceof Gj&&0f=>f instanceof +Hj&&0y=>y.g())(a))),"\tVALUES ?"+c+" { "+mg(b,""," ","")+" } .\n";if(b instanceof Qj)return"("+Bj(a,b.jt,b.D,d)+" AS "+b.kt+") ";if(b instanceof vj)return"\tBIND ("+Bj(a,b.Vs,c,d)+" AS ?"+b.D+") \n";if(b instanceof Rj)return c=b.ol?"DISTINCT":"",b=b.Hp.Da(new C((()=>y=>"str("+y.g()+")")(a))),"COUNT ("+c+" concat("+mg(b, +"",",","")+"))";if(b instanceof Aj)return"DISTINCT ";if(b instanceof Cj)return"REDUCED ";if(b instanceof Dj&&(f=!0,g=b,0Z=>Bj(bh(),Z,K.Rh.La(),U)+" }")(a,w,d))),"{ "+mg(b,""," } UNION { ","")+" }";if(u)return"";if(b instanceof Ak)return"???????????????";if(b instanceof Bk||b instanceof Ck)return"";if(b instanceof Dk)return"???????????????";throw Ek(new Fk,"Not implemented yet :"+va(b));} +function ch(a,b,c){var d=b.La();c=Bj(a,b,c,d);a=b.Ja().Da(new C(((f,g)=>h=>ch(bh(),h,g))(a,d)));return""+c+mg(a,"","","")}zj.prototype.$classData=v({Hba:0},!1,"inrae.semantic_web.node.pm.SparqlGenerator$",{Hba:1,b:1});var Gk;function bh(){Gk||(Gk=new zj);return Gk}function Hk(){}Hk.prototype=new t;Hk.prototype.constructor=Hk;function Ik(a,b){return new Jk(Ma((new Kk("value")).Uc(b).um()),(Lk(),""))} +function Mk(a){try{Nk();var b=(new Kk("datatype")).Uc(a),c=Ok(0,Pk(b)),d=0>=(c.length|0)?Lk().Zd:new Jk(c,(Lk(),""))}catch(h){if(h instanceof Qk)d=Lk().Zd;else throw h;}try{Nk();var f=(new Kk("tag")).Uc(a),g=Ok(0,Pk(f))}catch(h){if(h instanceof Qk)g="";else throw h;}a=(new Kk("value")).Uc(a);return new Rk(Pk(a),d,g)}Hk.prototype.$classData=v({nca:0},!1,"inrae.semantic_web.rdf.SparqlBuilder$",{nca:1,b:1});var Sk;function Tk(){Sk||(Sk=new Hk);return Sk}function Uk(){}Uk.prototype=new t; +Uk.prototype.constructor=Uk;function Vk(){}Vk.prototype=Uk.prototype;function Wk(){this.mb=null;Xk=this;var a=Ah(),b=[Yk().Un,Lk().sA,Zk().nR,$k().wR,al().tR,bl().Ui];this.mb=Ch(a,Af(new Bf,b))}Wk.prototype=new t;Wk.prototype.constructor=Wk; +function cl(a,b){a=!1;var c=null;if(b instanceof Uk)return b;if(la(b))return new Rk(b|0,(al(),Lk().Zd),(al(),""));if("number"===typeof b)return new Rk(+b,(al(),Lk().Zd),(al(),""));if("boolean"===typeof b)return new Rk(!!b,(al(),Lk().Zd),(al(),""));if("string"===typeof b){a=!0;var d=c=b;0<=(d.length|0)&&"?"===d.substring(0,1)?d=!0:(d=c,d=0<=(d.length|0)&&"$"===d.substring(0,1));if(d&&1<(c.length|0))return new Oj(c.substring(1,c.length|0))}a?(d=c,d=0<=(d.length|0)&&"\x3c"===d.substring(0,1)?dl(c,"\x3e"): +!1):d=!1;if(d)return new Jk(c,(Lk(),""));if(a)if(-1!==(c.indexOf(":")|0)){d=c;el||(el=new fl);var f=gl("\\S+");d=hl(new il(f,d))}else d=!1;else d=!1;if(d)return new Jk(c,(Lk(),""));if(a)return new Rk(c,(al(),Lk().Zd),(al(),""));b=Ma(b);a=E();yg();a.i()||Ci();throw new Di(b+" can not be cast into Sparql Def type.");}function Ok(a,b){return jl(jl(jl(jl(jl(b,'^"'),'"$'),"^\x3c"),"\x3e$"),"^\\?")}Wk.prototype.$classData=v({oca:0},!1,"inrae.semantic_web.rdf.SparqlDefinition$",{oca:1,b:1});var Xk; +function Nk(){Xk||(Xk=new Wk);return Xk}function kl(){this.CR=":"}kl.prototype=new t;kl.prototype.constructor=kl; +function Waa(a,b){b=ll(b,a.CR,0);var c=ng(L(),b);Wb();c=Xb(A(),c);c=Dd(c);L();a=((k,n)=>r=>ml(n,r)<<16>>16)(a,c);nl();var d=b.a.length,f=new db(d);if(0n=>pl(k,n|0))(a,b);if(c===A())b=A();else{var d=c.G(),f=d=new Vb(b(d),A());for(c=c.L();c!==A();){var g=c.G();g=new Vb(b(g),A());f=f.Ma=g;c=c.L()}b=d}return mg(b,"",a.CR,"")} +kl.prototype.$classData=v({yca:0},!1,"inrae.semantic_web.sparql.hashBuilder$",{yca:1,b:1});var ql;function rl(){ql||(ql=new kl);return ql}function sl(){}sl.prototype=new t;sl.prototype.constructor=sl;function Yaa(a){var b=a.ve.oi.z();if(0===b)throw a=E(),yg(),a.i()||Ci(),new Di("No sources specified");return a.ve.mg.il?new tl(a.ve.mg.kl):1===b?new ul(a.ve.oi.W(0)):new vl(a.ve.oi)}sl.prototype.$classData=v({Cca:0},!1,"inrae.semantic_web.strategy.StrategyRequestBuilder$",{Cca:1,b:1});var wl; +v({Mca:0},!1,"io.lemonlabs.uri.Host$",{Mca:1,b:1});function xl(){this.OR=null;yl=this;zl();this.OR=new Al(43," ")}xl.prototype=new t;xl.prototype.constructor=xl;xl.prototype.$classData=v({vda:0},!1,"io.lemonlabs.uri.decoding.package$",{vda:1,b:1});var yl;function Bl(){this.LF=null;Cl=this;Dl();this.LF=new El(32,"+")}Bl.prototype=new t;Bl.prototype.constructor=Bl;Bl.prototype.$classData=v({Bda:0},!1,"io.lemonlabs.uri.encoding.package$",{Bda:1,b:1});var Cl;function Ml(){Cl||(Cl=new Bl);return Cl} +function Zaa(a){Bg||(Bg=new Ag);var b=Bg.zL,c=Bd().Bs;a.WR=sd(b,c);b=id();c=jd(new kd(97),q(102));var d=jd(new kd(65),q(70));b=hd(b,Nl(c,d));c=Bd().Bs;a.XR=sd(b,c);b=a.WR;c=hd(id(),Ad("-._~"));a.$R=sd(b,c);b=a.XR;c=id();d=A();c=hd(c,d.Ce(q(37)));a.YR=sd(b,c);a.ZR=hd(id(),Ad("!$\x26'()*+,;\x3d"));b=sd(sd(a.$R,a.YR),a.ZR);c=hd(id(),Ad(":@"));a.Fda=sd(b,c)}function Ol(){}Ol.prototype=new t;Ol.prototype.constructor=Ol;Ol.prototype.$classData=v({Eda:0},!1,"io.lemonlabs.uri.parsing.UrlParser$",{Eda:1,b:1}); +var Pl;function $aa(a,b,c){return new Ql(b,new C((()=>d=>d.Ea())(a)),c,new C((()=>d=>d.xa())(a)))}function ob(a){this.KH=null;this.ze=a}ob.prototype=new t;ob.prototype.constructor=ob;ob.prototype.g=function(){return(this.ze.isInterface?"interface ":Rl(this)?"":"class ")+this.ze.name};function Sl(a,b){return!!a.ze.isInstance(b)}function Tl(a,b){return!!a.ze.isAssignableFrom(b.ze)}function Ul(a){return!!a.ze.isArrayClass}function Rl(a){return!!a.ze.isPrimitive} +function Bi(a){if(null===a.KH){if(Ul(a))var b=Bi(Vl(a))+"[]";else{b=a.ze.name;for(var c=-1+(b.length|0)|0;;)if(0<=c&&36===(65535&(b.charCodeAt(c)|0)))c=-1+c|0;else break;if(0<=c){var d=65535&(b.charCodeAt(c)|0);d=48<=d&&57>=d}else d=!1;if(d){for(c=-1+c|0;;)if(0<=c?(d=65535&(b.charCodeAt(c)|0),d=48<=d&&57>=d):d=!1,d)c=-1+c|0;else break;for(;;)if(0<=c&&36===(65535&(b.charCodeAt(c)|0)))c=-1+c|0;else break}for(;;)if(0<=c?(d=65535&(b.charCodeAt(c)|0),d=46!==d&&36!==d):d=!1,d)c=-1+c|0;else break;b=b.substring(1+ +c|0)}a.KH=b}return a.KH}function Vl(a){return a.ze.getComponentType()}ob.prototype.$classData=v({Kja:0},!1,"java.lang.Class",{Kja:1,b:1});function Wl(){this.ZB=this.NH=this.yk=this.Zx=null;this.MH=!1;this.PH=this.OH=0;Xl=this;this.Zx=new ArrayBuffer(8);this.yk=new Int32Array(this.Zx,0,2);this.NH=new Float32Array(this.Zx,0,2);this.ZB=new Float64Array(this.Zx,0,1);this.yk[0]=16909060;this.OH=(this.MH=1===((new Int8Array(this.Zx,0,8))[0]|0))?0:1;this.PH=this.MH?1:0}Wl.prototype=new t; +Wl.prototype.constructor=Wl;function Zl(a,b){var c=b|0;if(c===b&&-Infinity!==1/b)return c;a.ZB[0]=b;return(a.yk[0]|0)^(a.yk[1]|0)}function $l(a,b){a.yk[0]=b;return+a.NH[0]}function am(a,b){a.NH[0]=b;return a.yk[0]|0}function bm(a,b){a.ZB[0]=b;return new p(a.yk[a.PH]|0,a.yk[a.OH]|0)}Wl.prototype.$classData=v({Pja:0},!1,"java.lang.FloatingPointBits$",{Pja:1,b:1});var Xl;function cm(){Xl||(Xl=new Wl);return Xl}function dm(a,b,c,d){this.Yja=a;this.cU=b;this.$ja=c;this.Zja=d}dm.prototype=new t; +dm.prototype.constructor=dm;dm.prototype.$classData=v({Xja:0},!1,"java.lang.Long$StringRadixInfo",{Xja:1,b:1});function em(){}em.prototype=new t;em.prototype.constructor=em;em.prototype.$classData=v({aka:0},!1,"java.lang.Math$",{aka:1,b:1});var fm,gm=v({SH:0},!0,"java.lang.Runnable",{SH:1,b:1}); +function hm(a,b){var c=im("^(?:Object\\.|\\[object Object\\]\\.|Module\\.)?\\$(?:ps?|s|f)_((?:_[^_]|[^_])+)__([^\\.]+)$"),d=im("^(?:Object\\.|\\[object Object\\]\\.|Module\\.)?\\$ct_((?:_[^_]|[^_])+)__([^\\.]*)$"),f=im("^new (?:Object\\.|\\[object Object\\]\\.|Module\\.)?\\$c_([^\\.]+)$"),g=im("^(?:Object\\.|\\[object Object\\]\\.|Module\\.)?\\$m_([^\\.]+)$"),h=im("^(?:Object\\.|\\[object Object\\]\\.|Module\\.)?\\$[bc]_([^\\.]+)(?:\\.prototype)?\\.([^\\.]+)$").exec(b);c=null!==h?h:c.exec(b);if(null!== +c)return a=jm(a,c[1]),b=c[2],0<=(b.length|0)&&"init___"===b.substring(0,7)?b="\x3cinit\x3e":(g=b.indexOf("__")|0,b=0>g?b:b.substring(0,g)),[a,b];d=d.exec(b);f=null!==d?d:f.exec(b);if(null!==f)return[jm(a,f[1]),"\x3cinit\x3e"];g=g.exec(b);return null!==g?[jm(a,g[1]),"\x3cclinit\x3e"]:["\x3cjscode\x3e",b]} +function jm(a,b){var c=km(a);if(lm().hC.call(c,b))a=km(a)[b];else a:for(c=0;;)if(c<(mm(a).length|0)){var d=mm(a)[c];if(0<=(b.length|0)&&b.substring(0,d.length|0)===d){a=""+nm(a)[d]+b.substring(d.length|0);break a}c=1+c|0}else{a=0<=(b.length|0)&&"L"===b.substring(0,1)?b.substring(1):b;break a}return a.split("_").join(".").split("\uff3f").join("_")} +function km(a){if(0===(1&a.bj)<<24>>24&&0===(1&a.bj)<<24>>24){for(var b={O:"java_lang_Object",T:"java_lang_String"},c=0;22>=c;)2<=c&&(b["T"+c]="scala_Tuple"+c),b["F"+c]="scala_Function"+c,c=1+c|0;a.eU=b;a.bj=(1|a.bj)<<24>>24}return a.eU} +function nm(a){0===(2&a.bj)<<24>>24&&0===(2&a.bj)<<24>>24&&(a.fU={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.bj=(2|a.bj)<<24>>24);return a.fU}function mm(a){0===(4&a.bj)<<24>>24&&0===(4&a.bj)<<24>>24&&(a.dU=Object.keys(nm(a)),a.bj=(4|a.bj)<<24>>24);return a.dU} +function om(a){return(a.stack+"\n").replace(im("^[\\s\\S]+?\\s+at\\s+")," at ").replace(pm("^\\s+(at eval )?at\\s+","gm"),"").replace(pm("^([^\\(]+?)([\\n])","gm"),"{anonymous}() ($1)$2").replace(pm("^Object.\x3canonymous\x3e\\s*\\(([^\\)]+)\\)","gm"),"{anonymous}() ($1)").replace(pm("^([^\\(]+|\\{anonymous\\}\\(\\)) \\((.+)\\)$","gm"),"$1@$2").split("\n").slice(0,-1)} +function qm(a){var b=pm("Line (\\d+).*script (?:in )?(\\S+)","i");a=a.message.split("\n");for(var c=[],d=2,f=a.length|0;d{ym();return+performance.now()}:performance.webkitNow?()=>{ym();return+performance.webkitNow()}:()=>{ym();return+(new Date).getTime()}:()=>{ym();return+(new Date).getTime()}}wm.prototype=new t; +wm.prototype.constructor=wm;wm.prototype.$classData=v({oka:0},!1,"java.lang.System$NanoTime$",{oka:1,b:1});var xm;function ym(){xm||(xm=new wm);return xm}function zm(){this.UH=this.gU=null;Am=this;this.gU=new Bm(!1);this.UH=new Bm(!0)}zm.prototype=new t;zm.prototype.constructor=zm;zm.prototype.$classData=v({pka:0},!1,"java.lang.System$Streams$",{pka:1,b:1});var Am;function Cm(){Am||(Am=new zm);return Am} +function Dm(){this.uo=this.Ak=null;Em=this;var a={"java.version":"1.8","java.vm.specification.version":"1.8","java.vm.specification.vendor":"Oracle Corporation","java.vm.specification.name":"Java Virtual Machine Specification","java.vm.name":"Scala.js"};a["java.vm.version"]=daa.linkerVersion;a["java.specification.version"]="1.8";a["java.specification.vendor"]="Oracle Corporation";a["java.specification.name"]="Java Platform API Specification";a["file.separator"]="/";a["path.separator"]=":";a["line.separator"]= +"\n";this.Ak=a;this.uo=null}Dm.prototype=new t;Dm.prototype.constructor=Dm;function Fm(){var a=Gm();if(null===a.uo){var b=new Hm;b.fy=null;var c=Im();b.pr=c;a.uo=b;b=Object.keys(a.Ak);c=b.length|0;for(var d=0;d!==c;){var f=b[d];Gm();var g=Gm().uo,h=Gm().Ak[f];g.Gk(f,h);d=1+d|0}a.Ak=null}return a.uo}function Jm(a,b){null!==a.Ak?(Km||(Km=new Lm),a=a.Ak,b=lm().hC.call(a,b)?a[b]:null):b=a.uo.ir(b,null);return b} +Dm.prototype.ir=function(a,b){if(null!==this.Ak){Km||(Km=new Lm);var c=this.Ak;a=lm().hC.call(c,a)?c[a]:b}else a=this.uo.ir(a,b);return a};Dm.prototype.$classData=v({qka:0},!1,"java.lang.System$SystemProperties$",{qka:1,b:1});var Em;function Gm(){Em||(Em=new Dm);return Em}function Mm(){Nm=this}Mm.prototype=new t;Mm.prototype.constructor=Mm;Mm.prototype.$classData=v({rka:0},!1,"java.lang.Thread$",{rka:1,b:1});var Nm;function Om(){this.Hu=null;this.Gu=!1}Om.prototype=new t; +Om.prototype.constructor=Om;Om.prototype.Sa=function(){this.Gu||(this.Hu=null,this.Gu=!0);return this.Hu};Om.prototype.$classData=v({ska:0},!1,"java.lang.ThreadLocal",{ska:1,b:1});function Lm(){}Lm.prototype=new t;Lm.prototype.constructor=Lm;Lm.prototype.$classData=v({uka:0},!1,"java.lang.Utils$",{uka:1,b:1});var Km;function Pm(){this.hC=null;Qm=this;this.hC=Object.prototype.hasOwnProperty}Pm.prototype=new t;Pm.prototype.constructor=Pm; +Pm.prototype.$classData=v({vka:0},!1,"java.lang.Utils$Cache$",{vka:1,b:1});var Qm;function lm(){Qm||(Qm=new Pm);return Qm}function Rm(a){return!!(a&&a.$classData&&1===a.$classData.xu&&a.$classData.wu.Hb.kU)}var sa=v({kU:0},!1,"java.lang.Void",{kU:1,b:1},a=>void 0===a);function Sm(){}Sm.prototype=new t;Sm.prototype.constructor=Sm;function Tm(a,b,c){return b.ze.newArrayOfThisClass([c])}Sm.prototype.$classData=v({wka:0},!1,"java.lang.reflect.Array$",{wka:1,b:1});var Um; +function Vm(){Um||(Um=new Sm);return Um}function Wm(a,b){this.RF=a;this.SF=b}Wm.prototype=new t;Wm.prototype.constructor=Wm;function Xm(a){return new (x(Ym).M)([a.RF,a.SF])}Wm.prototype.$classData=v({Gea:0},!1,"java.math.BigInteger$QuotAndRem",{Gea:1,b:1});function Zm(){}Zm.prototype=new t;Zm.prototype.constructor=Zm;function $m(a,b){if(0===b.Ka)return 0;a=b.jb<<5;var c=b.Aa.a[-1+b.jb|0];0>b.Ka&&an(b)===(-1+b.jb|0)&&(c=-1+c|0);return a=a-ea(c)|0} +function bn(a,b,c){a=c>>5;c&=31;var d=(b.jb+a|0)+(0===c?0:1)|0,f=new eb(d);cn(0,f,b.Aa,a,c);b=dn(b.Ka,d,f);en(b);return b}function cn(a,b,c,d,f){if(0===f)c.Z(0,b,d,b.a.length-d|0);else{a=32-f|0;b.a[-1+b.a.length|0]=0;for(var g=-1+b.a.length|0;g>d;){var h=g;b.a[h]=b.a[h]|c.a[-1+(g-d|0)|0]>>>a|0;b.a[-1+g|0]=c.a[-1+(g-d|0)|0]<>>31|0;f=1+f|0}0!==a&&(b.a[d]=a)} +function gn(a,b,c){a=c>>5;var d=31&c;if(a>=b.jb)return 0>b.Ka?hn().LA:hn().zl;c=b.jb-a|0;var f=new eb(1+c|0);jn(0,f,c,b.Aa,a,d);if(0>b.Ka){for(var g=0;g>>g|0|d.a[1+(a+f|0)|0]<>>g|0}}Zm.prototype.$classData=v({Hea:0},!1,"java.math.BitLevel$",{Hea:1,b:1});var kn;function ln(){kn||(kn=new Zm);return kn} +function mn(){this.UF=this.VF=null;nn=this;this.VF=new eb(new Int32Array([-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]));this.UF=new eb(new Int32Array([-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]))}mn.prototype=new t;mn.prototype.constructor=mn; +function on(a,b){a=b.Ka;var c=b.jb,d=b.Aa;if(0===a)return"0";if(1===c)return b=(+(d.a[0]>>>0)).toString(10),0>a?"-"+b:b;b="";var f=new eb(c);for(d.Z(0,f,0,c);;){var g=0;for(d=-1+c|0;0<=d;){var h=g;g=f.a[d];var k=pn(Aa(),g,h,1E9,0);f.a[d]=k;h=k>>31;var n=65535&k;k=k>>>16|0;var r=l(51712,n);n=l(15258,n);var u=l(51712,k);r=r+((n+u|0)<<16)|0;l(1E9,h);l(15258,k);g=g-r|0;d=-1+d|0}d=""+g;for(b="000000000".substring(d.length|0)+d+b;0!==c&&0===f.a[-1+c|0];)c=-1+c|0;if(0===c)break}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} -function uj(a,b,c){if(0===b.m&&0===b.r)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.r;var d="";var f=18;if(a){var g=b.m;b=b.r;b=new p(-g|0,0!==g?~b:-b|0)}g=b.m;for(var h=b.r;;){b=g;var l=h;h=tj();g=vj(h,g,l,10,0);h=h.sa;f=-1+f|0;l=h;var n=g,r=n>>>16|0;n=k(10,65535&n);r=k(10,r);r=n+(r<<16)|0;k(10,l);d=""+(b- -r|0)+d;b=h;if(0===g&&0===b)break}g=18-f|0;h=g>>31;l=c>>31;b=g-c|0;g=(-2147483648^b)>(-2147483648^g)?-1+(h-l|0)|0:h-l|0;b=-1+b|0;g=-1!==b?g:-1+g|0;if(0>>16|0;var M=65535&d,T=d>>>16|0,V=k(A,M);M=k(w,M);A=k(A,T);A=V+((M+A|0)<<16)|0;k(r,d);k(w,T);u=u-A|0;if(0!==g)for(g=1+g|0;;){w=g=-1+g|0;T=l.a[-2+h|0];r=65535&w;w=w>>>16|0;V=65535&T;T=T>>>16|0;A=k(r,V);V=k(w,V); -M=k(r,T);r=A+((V+M|0)<<16)|0;A=(A>>>16|0)+M|0;A=(k(w,T)+(A>>>16|0)|0)+(((65535&A)+V|0)>>>16|0)|0;T=u;w=a.a[-2+f|0];V=u+d|0;if(0===((-2147483648^V)<(-2147483648^u)?1:0)&&(u=V,A^=-2147483648,T^=-2147483648,A===T?(-2147483648^r)>(-2147483648^w):A>T))continue;break}}if(u=0!==g){zj();u=a;r=f-h|0;T=l;w=h;A=g;var ha=0;var ra;for(V=ra=0;V>>16|0;var xa=65535&A,Ta=A>>>16|0,gb=k(wa,xa);xa=k(ea,xa);var mb=k(wa,Ta);wa=gb+((xa+mb|0)<<16)|0;gb=(gb>>>16|0)+mb|0;Ta=(k(ea, -Ta)+(gb>>>16|0)|0)+(((65535&gb)+xa|0)>>>16|0)|0;ea=wa+ha|0;ha=(-2147483648^ea)<(-2147483648^wa)?1+Ta|0:Ta;Ta=u.a[r+M|0];ea=Ta-ea|0;Ta=(-2147483648^ea)>(-2147483648^Ta)?-1:0;wa=ra;ra=wa>>31;wa=ea+wa|0;ra=(-2147483648^wa)<(-2147483648^ea)?1+(Ta+ra|0)|0:Ta+ra|0;u.a[r+M|0]=wa;V=1+V|0}A=u.a[r+w|0];T=A-ha|0;A=(-2147483648^T)>(-2147483648^A)?-1:0;M=ra;V=M>>31;M=T+M|0;u.a[r+w|0]=M;u=0!==((-2147483648^M)<(-2147483648^T)?1+(A+V|0)|0:A+V|0)}if(u)for(g=-1+g|0,u=V=A=0;u>>16|0,r=65535&f,u=f>>>16|0,w=k(l,r);r=k(n,r);l=k(l,u);w=w+((r+l|0)<<16)|0;k(h,f);k(n,u);a=a-w|0;b.a[d]=g;d=-1+d|0}return a} -xj.prototype.$classData=x({I5:0},!1,"java.math.Division$",{I5:1,b:1});var Cj;function zj(){Cj||(Cj=new xj);return Cj} -function Dj(a,b,c,d){var f=new ob(1+b|0),g=1,h=a.a[0],l=h+c.a[0]|0;f.a[0]=l;h=(-2147483648^l)<(-2147483648^h)?1:0;if(b>=d){for(;g(-2147483648^l)?-1:0;var r=h;h=r>>31;r=n+r|0;n=(-2147483648^r)<(-2147483648^n)?1+(l+h|0)|0:l+h|0;f.a[g]=r;h=n;g=1+g|0}for(;g>31,n=c+n|0,c=(-2147483648^n)<(-2147483648^c)?1+d|0:d,f.a[g]=n,h=c,g=1+g|0;return f}function Fj(){}Fj.prototype=new t;Fj.prototype.constructor=Fj; -function Gj(a,b,c){a=b.Ca;var d=c.Ca,f=b.Ua,g=c.Ua;if(0===a)return c;if(0===d)return b;if(2===(f+g|0)){b=b.ua.a[0];c=c.ua.a[0];if(a===d)return d=b+c|0,c=(-2147483648^d)<(-2147483648^b)?1:0,0===c?Hj(a,d):cj(a,2,new ob(new Int32Array([d,c])));d=lj();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 Ij(d,new p(a,c))}if(a===d)d=f>=g?Dj(b.ua,f,c.ua,g):Dj(c.ua,g,b.ua,f);else{var h=f!==g?f>g?1:-1:Jj(0,b.ua,c.ua,f);if(0===h)return lj().ck;1=== -h?d=Ej(b.ua,f,c.ua,g):(c=Ej(c.ua,g,b.ua,f),a=d,d=c)}a=cj(a|0,d.a.length,d);dj(a);return a}function Jj(a,b,c,d){for(a=-1+d|0;0<=a&&b.a[a]===c.a[a];)a=-1+a|0;return 0>a?0:(-2147483648^b.a[a])<(-2147483648^c.a[a])?-1:1} -function Kj(a,b,c){var d=b.Ca;a=c.Ca;var f=b.Ua,g=c.Ua;if(0===a)return b;if(0===d)return Lj(c);if(2===(f+g|0))return b=b.ua.a[0],f=0,c=c.ua.a[0],g=0,0>d&&(d=b,b=-d|0,f=0!==d?~f:-f|0),0>a&&(a=c,d=g,c=-a|0,g=0!==a?~d:-d|0),a=lj(),d=b,b=f,f=g,c=d-c|0,Ij(a,new p(c,(-2147483648^c)>(-2147483648^d)?-1+(b-f|0)|0:b-f|0));var h=f!==g?f>g?1:-1:Jj(Mj(),b.ua,c.ua,f);if(d===a&&0===h)return lj().ck;-1===h?(c=d===a?Ej(c.ua,g,b.ua,f):Dj(c.ua,g,b.ua,f),a=-a|0):d===a?(c=Ej(b.ua,f,c.ua,g),a=d):(c=Dj(b.ua,f,c.ua,g),a= -d);a=cj(a|0,c.a.length,c);dj(a);return a}Fj.prototype.$classData=x({J5:0},!1,"java.math.Elementary$",{J5:1,b:1});var Nj;function Mj(){Nj||(Nj=new Fj);return Nj}function Oj(a,b){this.dk=a;this.rr=b}Oj.prototype=new t;Oj.prototype.constructor=Oj;Oj.prototype.c=function(a){return a instanceof Oj?this.dk===a.dk?this.rr===a.rr:!1:!1};Oj.prototype.p=function(){return this.dk<<3|this.rr.kj};Oj.prototype.g=function(){return"precision\x3d"+this.dk+" roundingMode\x3d"+this.rr}; -Oj.prototype.$classData=x({K5:0},!1,"java.math.MathContext",{K5:1,b:1});function Pj(){this.uN=null;Qj=this;Rj();var a=Sj().fu;this.uN=new Oj(34,a);Rj();Sj();Rj();Sj();Rj();Sj()}Pj.prototype=new t;Pj.prototype.constructor=Pj;Pj.prototype.$classData=x({L5:0},!1,"java.math.MathContext$",{L5:1,b:1});var Qj;function Rj(){Qj||(Qj=new Pj);return Qj} -function Tj(a,b,c,d){for(var f,g=f=0;g>>16|0;var r=65535&d,u=d>>>16|0,w=k(n,r);r=k(l,r);var A=k(n,u);n=w+((r+A|0)<<16)|0;w=(w>>>16|0)+A|0;l=(k(l,u)+(w>>>16|0)|0)+(((65535&w)+r|0)>>>16|0)|0;f=n+f|0;l=(-2147483648^f)<(-2147483648^n)?1+l|0:l;a.a[h]=f;f=l;g=1+g|0}return f}function Uj(a,b){Vj();if(0c;){var d=c;if(18>=d){Aj().vm.a[d]=Ij(lj(),new p(b,a));var f=Aj().wm,g=lj(),h=a,l=b;f.a[d]=Ij(g,new p(0===(32&d)?l<>>1|0)>>>(31-d|0)|0|h<>>16|0;d=k(5,65535&d);f=k(5,b);b=d+(f<<16)|0;d=(d>>>16|0)+f|0;a=k(5,a)+(d>>>16|0)|0}else Aj().vm.a[d]=Zj(Aj().vm.a[-1+d|0],Aj().vm.a[1]),Aj().wm.a[d]=Zj(Aj().wm.a[-1+d|0],lj().bk);c= -1+c|0}}Wj.prototype=new t;Wj.prototype.constructor=Wj; -function ak(a,b,c){for(var d,f=0;f>>16|0;var A=65535&r;r=r>>>16|0;var M=k(w,A);A=k(n,A);var T=k(w,r);w=M+((A+T|0)<<16)|0;M=(M>>>16|0)+T|0;n=(k(n,r)+(M>>>16|0)|0)+(((65535&M)+A|0)>>>16|0)|0;u=w+u|0;n=(-2147483648^u)<(-2147483648^w)?1+n|0:n;d=u+d|0;u=(-2147483648^d)<(-2147483648^u)?1+n|0:n;c.a[g+l|0]=d;d=u;h=1+h|0}c.a[g+b|0]=d;f=1+f|0}ej(oj(),c,c,b<<1);for(g=f=d=0;f>>16|0,w=65535&u,u=u>>>16|0,r=k(n,w),w=k(d,w),M=k(n,u),n=r+((w+M|0)<<16)|0,r=(r>>>16|0)+M|0,d=(k(d,u)+(r>>>16|0)|0)+(((65535&r)+w|0)>>>16|0)|0,l=n+l|0,d=(-2147483648^l)<(-2147483648^n)?1+d|0:d,h=l+h|0,l=(-2147483648^h)<(-2147483648^l)?1+d|0:d,c.a[g]=h,g=1+g|0,h=l+c.a[g]|0,l=(-2147483648^h)<(-2147483648^l)?1:0,c.a[g]=h,d=l,f=1+f|0,g=1+g|0;return c} -function bk(a,b,c){if(c.Ua>b.Ua)var d=c;else d=b,b=c;var f=d,g=b;if(63>g.Ua){d=f.Ua;b=g.Ua;c=d+b|0;a=f.Ca!==g.Ca?-1:1;if(2===c){d=f.ua.a[0];b=g.ua.a[0];c=65535&d;d=d>>>16|0;g=65535&b;b=b>>>16|0;f=k(c,g);g=k(d,g);var h=k(c,b);c=f+((g+h|0)<<16)|0;f=(f>>>16|0)+h|0;d=(k(d,b)+(f>>>16|0)|0)+(((65535&f)+g|0)>>>16|0)|0;a=0===d?Hj(a,c):cj(a,2,new ob(new Int32Array([c,d])))}else{f=f.ua;g=g.ua;h=new ob(c);if(0!==d&&0!==b)if(1===d)h.a[b]=Tj(h,g,b,f.a[0]);else if(1===b)h.a[d]=Tj(h,f,d,g.a[0]);else if(f===g&&d=== -b)ak(f,d,h);else for(var l=0;l>>16|0,ra=65535&M;M=M>>>16|0;var ea=k(V,ra);ra=k(ha,ra);var wa=k(V,M);V=ea+((ra+wa|0)<<16)|0;ea=(ea>>>16|0)+wa|0;ha=(k(ha,M)+(ea>>>16|0)|0)+(((65535&ea)+ra|0)>>>16|0)|0;T=V+T|0;ha=(-2147483648^T)<(-2147483648^V)?1+ha|0:ha;r=T+r|0;T=(-2147483648^r)<(-2147483648^T)?1+ha|0:ha;h.a[n+A|0]=r;r=T;w=1+w|0}h.a[n+b|0]=r;l=1+l|0}a=cj(a,c,h);dj(a)}return a}d=(-2&f.Ua)<<4;c=ck(f, -d);h=ck(g,d);b=dk(c,d);l=Kj(Mj(),f,b);b=dk(h,d);g=Kj(Mj(),g,b);f=bk(a,c,h);b=bk(a,l,g);a=bk(a,Kj(Mj(),c,l),Kj(Mj(),g,h));c=f;a=Gj(Mj(),a,c);a=Gj(Mj(),a,b);a=dk(a,d);d=f=dk(f,d<<1);a=Gj(Mj(),d,a);return Gj(Mj(),a,b)} -function ek(a,b){var c=a.wm.a.length,d=c>>31,f=b.r;if(f===d?(-2147483648^b.m)<(-2147483648^c):f=(-2147483648^b.m):0>c)return fk(lj().bk,b.m);c=b.r;if(0===c?-1>=(-2147483648^b.m):0>c)return dk(fk(a.vm.a[1],b.m),b.m);var g=fk(a.vm.a[1],2147483647);c=g;f=b.r;var h=-2147483647+b.m|0;d=h;h=1>(-2147483648^h)?f:-1+f|0;for(f=gk(tj(),b.m,b.r,2147483647,0);;){var l=d,n=h;if(0===n?-1<(-2147483648^l):0(-2147483648^d)?h:-1+h|0; -else break}c=Zj(c,fk(a.vm.a[1],f));c=dk(c,2147483647);a=b.r;d=b=-2147483647+b.m|0;for(h=1>(-2147483648^b)?a:-1+a|0;;)if(b=d,a=h,0===a?-1<(-2147483648^b):0(-2147483648^a)?b:-1+b|0,d=a,h=b;else break;return dk(c,f)}Wj.prototype.$classData=x({M5:0},!1,"java.math.Multiplication$",{M5:1,b:1});var Xj;function Aj(){Xj||(Xj=new Wj);return Xj}function ok(a,b){a.rg=b;a.ma=a.rg;a.P=0;a.Ai=-1}function pk(){this.Ai=this.P=this.ma=this.rg=0}pk.prototype=new t; -pk.prototype.constructor=pk;function qk(){}qk.prototype=pk.prototype;pk.prototype.va=function(a){if(0>a||a>this.ma)throw rk();this.P=a;this.Ai>a&&(this.Ai=-1)};pk.prototype.UE=function(a){if(0>a||a>this.rg)throw rk();this.ma=a;this.P>a&&(this.P=a,this.Ai>a&&(this.Ai=-1))};pk.prototype.Uy=function(){this.Ai=-1;this.ma=this.P;this.P=0};pk.prototype.g=function(){return Ha(this)+"[pos\x3d"+this.P+" lim\x3d"+this.ma+" cap\x3d"+this.rg+"]"};function sk(){}sk.prototype=new t;sk.prototype.constructor=sk; -function tk(a){uk||(uk=new sk);a=new kb(a);var b=a.a.length;return vk(wk(),a,a.a.length,b)}sk.prototype.$classData=x({R5:0},!1,"java.nio.ByteBuffer$",{R5:1,b:1});var uk;function xk(){}xk.prototype=new t;xk.prototype.constructor=xk;function yk(a){Ak();a=new jb(a);var b=a.a.length,c=a.a.length;if(0>c||c>a.a.length)throw Bk();if(0>b||b>c)throw Bk();return new Ck(c,a,0,0,b,!1)} -function Dk(a,b,c){Ek||(Ek=new Fk);a=Ra(b);c=c-0|0;if(0>a||(0+a|0)>Ra(b))throw Bk();var d=0+c|0;if(0>c||d>a)throw Bk();return new Gk(a,b,0,0,d)}xk.prototype.$classData=x({T5:0},!1,"java.nio.CharBuffer$",{T5:1,b:1});var Hk;function Ak(){Hk||(Hk=new xk);return Hk}function Ik(){}Ik.prototype=new t;Ik.prototype.constructor=Ik;function vk(a,b,c,d){if(0>c||(0+c|0)>b.a.length)throw Bk();a=0+d|0;if(0>d||a>c)throw Bk();return new Jk(c,b,0,0,a,!1)} -Ik.prototype.$classData=x({V5:0},!1,"java.nio.HeapByteBuffer$",{V5:1,b:1});var Kk;function wk(){Kk||(Kk=new Ik);return Kk}function Fk(){}Fk.prototype=new t;Fk.prototype.constructor=Fk;Fk.prototype.$classData=x({Z5:0},!1,"java.nio.StringCharBuffer$",{Z5:1,b:1});var Ek;function Lk(){this.wN=null;this.LC=!1}Lk.prototype=new t;Lk.prototype.constructor=Lk; -function Mk(a){Nk||(Nk=new Lk);var b=Nk;if(!b.LC&&!b.LC){var c={};Ok||(Ok=new Pk);var d=Ok;Qk||(Qk=new Rk);var f=Qk;var g=Sk();Tk||(Tk=new Uk);var h=Tk;Vk||(Vk=new Wk);var l=Vk;Xk||(Xk=new Yk);d=[d,f,g,h,l,Xk];f=d.length|0;for(g=0;gb.ma)throw new il;b.P=h;pk.prototype.va.call(a,c);h=a.Ve;if(null!==h)h.U(a.Uf+d|0,b.Ve,b.Uf+g|0,f);else for(;d!==c;)b.Ve.a[b.Uf+g|0]=a.Ve.a[a.Uf+d|0],d=1+d|0,g=1+g|0;return b}function jl(a,b,c,d,f){a.Nx=b;a.iu=c;a.Mx=d;a.yr=f;a.xr=dl().Xo;a.zr=dl().Xo;a.fk=0} -function kl(){this.Nx=null;this.Mx=this.iu=0;this.zr=this.xr=this.yr=null;this.fk=0}kl.prototype=new t;kl.prototype.constructor=kl;function ll(){}ll.prototype=kl.prototype;kl.prototype.cv=function(){};function ml(a,b){this.ff=a;this.Br=b}ml.prototype=new t;ml.prototype.constructor=ml;function nl(a){var b=a.ff;switch(b){case 1:throw new il;case 0:throw new ol;case 2:throw new pl(a.Br);case 3:throw new ql(a.Br);default:throw new D(b);}} -ml.prototype.$classData=x({c6:0},!1,"java.nio.charset.CoderResult",{c6:1,b:1});function rl(){this.NC=this.MC=this.OC=this.Ox=this.Vo=this.Ar=this.Yd=this.pd=this.Xd=null;sl=this;this.Xd=new ml(1,-1);this.pd=new ml(0,-1);this.Yd=new ml(2,1);this.Ar=new ml(2,2);this.Vo=new ml(2,3);this.Ox=new ml(2,4);this.OC=[];this.MC=new ml(3,1);this.NC=new ml(3,2)}rl.prototype=new t;rl.prototype.constructor=rl;function tl(a,b){a=a.OC[b];return void 0===a?(a=new ml(2,b),ul().OC[b]=a):a} -rl.prototype.$classData=x({d6:0},!1,"java.nio.charset.CoderResult$",{d6:1,b:1});var sl;function ul(){sl||(sl=new rl);return sl}function vl(a){this.g6=a}vl.prototype=new t;vl.prototype.constructor=vl;vl.prototype.g=function(){return this.g6};vl.prototype.$classData=x({e6:0},!1,"java.nio.charset.CodingErrorAction",{e6:1,b:1});function wl(){this.Xo=this.Wo=this.PC=null;xl=this;this.PC=new vl("IGNORE");this.Wo=new vl("REPLACE");this.Xo=new vl("REPORT")}wl.prototype=new t;wl.prototype.constructor=wl; -wl.prototype.$classData=x({f6:0},!1,"java.nio.charset.CodingErrorAction$",{f6:1,b:1});var xl;function dl(){xl||(xl=new wl);return xl}function yl(){}yl.prototype=new t;yl.prototype.constructor=yl;function zl(a,b,c,d,f,g){var h=f-d|0;if(16=f||g.Hi(Al(Bl(),b,n),Al(Bl(),b,r)))?(Cl(Bl(),c,a,Al(Bl(),b,n)),n=1+n|0):(Cl(Bl(),c,a,Al(Bl(),b,r)),r=1+r|0),a=1+a|0;c.U(d,b,d,h)}else Dl(b,d,f,g)} -function Dl(a,b,c,d){c=c-b|0;if(2<=c){if(0d.Xa(g,Al(Bl(),a,-1+(b+f|0)|0))){for(var h=b,l=-1+(b+f|0)|0;1<(l-h|0);){var n=(h+l|0)>>>1|0;0>d.Xa(g,Al(Bl(),a,n))?l=n:h=n}h=h+(0>d.Xa(g,Al(Bl(),a,h))?0:1)|0;for(l=b+f|0;l>h;)Cl(Bl(),a,l,Al(Bl(),a,-1+l|0)),l=-1+l|0;Cl(Bl(),a,h,g)}f=1+f|0}}} -function Ol(a,b,c){a=0;for(var d=b.a.length;;){if(a===d)return-1-a|0;var f=(a+d|0)>>>1|0,g=b.a[f];if(c>>1|0,g=b.a[f];if(cc)throw new am;var d=b.a.length;d=cc)throw new am;d=b.a.length;d=cc)throw new am;a=b.a.length;a=cd)throw fm(c+" \x3e "+d);d=d-c|0;var f=b.a.length-c|0;f=d=b)return"00000000000000000000".substring(0,b);for(a="";20b)return new pm(a.Pm,"0",0);if(b>=d)return a;if(53>(65535&(c.charCodeAt(b)|0)))return 0===b?new pm(a.Pm,"0",0):new pm(a.Pm,c.substring(0,b),a.sk-(d-b|0)|0);for(b=-1+b|0;;)if(0<=b&&57===(65535&(c.charCodeAt(b)|0)))b=-1+b|0;else break;c=0>b?"1":""+c.substring(0,b)+q(65535&(1+(65535&(c.charCodeAt(b)|0))|0));return new pm(a.Pm,c,a.sk-(d-(1+b|0)|0)|0)}function pm(a,b,c){this.Pm=a;this.tk=b;this.sk=c}pm.prototype=new t;pm.prototype.constructor=pm; -function qm(a,b){nm();if(!(0l=>{Km(l,h)})(a,b);b=c.a.length;var d=0;if(null!==c)for(;dd=>null!==d)(a))),new C(((d,f)=>g=>{if(null!==g)return g=g.ib,0<=(g.length|0)&&g.substring(0,f.length|0)===f;throw new D(g);})(a,c)))).Ba(new C(((d,f,g)=>h=>{if(null!==h){h=h.Va;var l=h.vs;null===l?l=!0:(l=l.lQ,l=!(0<=(l.length|0)&&l.substring(0,f.length|0)===f));l&&(h.vs=g)}else throw new D(h);})(a,c,b)))} -function Pm(){this.kQ=this.Gz=this.jQ=null;Qm=this;this.jQ=Cm().NE;this.Gz=Rm().mc();var a=Sm(this,"");a.vk=this.jQ;a.Hz=!1;this.kQ=a;Sm(this,"global")}Pm.prototype=new t;Pm.prototype.constructor=Pm; -function Sm(a,b){if(null===b)throw zm("Logger name cannot be null");return a.Gz.Vy(b,new Tm(((c,d)=>()=>{var f=Um(),g=new Im(d,null);g.vk=null;g.Hz=!0;var h;a:for(h=d;;){var l=h;if(null===l){h=f.kQ;break a}if(""===l){h=null;break a}l=h;h=Vm(h);h=l.substring(0,0(c,d)=>c.pg(d.C6))(a)))}Wm.prototype.$classData=x({z6:0},!1,"org.parboiled2.CharPredicate$",{z6:1,b:1});var Xm; -function Ih(){Xm||(Xm=new Wm);return Xm}function hn(a){this.C6=a}hn.prototype=new t;hn.prototype.constructor=hn;hn.prototype.$classData=x({A6:0},!1,"org.parboiled2.CharPredicate$ApplyMagnet",{A6:1,b:1});function jn(a,b){for(var c=0;;){if(c===b.y())return a;var d=1+c|0;a=cn(a,Ma(b.V(c)));c=d}}function kn(){}kn.prototype=new t;kn.prototype.constructor=kn;function ln(a,b){return new hn(dn(Ih(),b))}function Lh(a){var b=$m(),c=J().Nd;return Zm(b,new ph(q(a),c))} -function Jh(a){var b=$m(),c=Zm;E();return c(b,null!==a?new mn(a):null)}function Zm(a,b){if(128>b.y()&!b.hs(new C((()=>d=>{d=Ma(d);Ih();return 128<=d})(a))))return new hn(jn(Ih().hk,b));if(b instanceof nn)return new hn(new on(b));dm();if(0<=b.L())a=b.L(),a=new jb(a),b.Lb(a,0,2147483647),b=a;else{a=null;a=[];for(b=b.w();b.v();){var c=b.s();a.push(Ma(c))}b=new jb(new Uint16Array(a))}return new hn(new pn(b))}kn.prototype.$classData=x({B6:0},!1,"org.parboiled2.CharPredicate$ApplyMagnet$",{B6:1,b:1});var qn; -function $m(){qn||(qn=new kn);return qn}function rn(){this.MN=null;sn=this;tn("-9223372036854775808");var a=Ih(),b=[Jh("\t\r\n"),Lh(un().mk),ln($m(),new C((()=>c=>{c=Ma(c);return vn(wn(),c)})(this)))];this.MN=Kh(a,qc(new rc,b))}rn.prototype=new t;rn.prototype.constructor=rn;function xn(a,b){return 9===b?"\\t":13===b?"\\r":10===b?"\\n":un().mk===b?"EOI":vn(wn(),b)?yn(zn(),"\\u%04x",qc(new rc,[b])):String.fromCharCode(b)} -function An(a,b){a:{a=a.MN;for(var c=0;;)if(c!==(b.length|0)){var d=65535&(b.charCodeAt(c)|0);if(a.gj(d)){a=!0;break a}c=1+c|0}else{a=!1;break a}}if(a){a=b.length|0;c=Bn(new Cn);for(d=0;d(d,f)=>{d|=0;var g=f.kk;if(g instanceof In){g=g.nu;a:{var h=f.uh;f=new Jn(c,g);var l=new Kn(h);for(h=h.w();h.v();){var n=f.Ic(h.s(),l);if(n!==l){f=new dd(n);break a}}f=H()}g=(f.k()?g:f.Ja())|0;return g>d?g:d}return d})(a)))|0}function Ln(a,b){return(b.Qx?b.Rx:Hn(b)).Ea(new C((c=>d=>d.uh.k()?Mn(c,d.kk):Nn(d.uh.R(),!1))(a))).yh().oq()} -function On(a,b){a=b.ik.Ea(new C((c=>d=>Pn(c,d))(a,b)));b=b.ik.y()+" rule"+(1!==b.ik.y()?"s":"")+" mismatched at error location:\n ";return qf(a,b,"\n ","\n")} -function Pn(a,b){for(var c=Bn(new Cn),d=((A,M)=>T=>{M.x=""+M.x+T;return M})(a,c),f=((A,M)=>()=>M)(a,c),g=b.uh,h=J().Nd,l=f;;){var n=!1,r=null;if(g instanceof ph){n=!0;r=g;var u=r.re,w=r.Gb;if(null!==u&&(u=u.ug,u instanceof Qn)){h=new ph(u.mu,h);g=w;continue}}if(n&&(u=r.re,w=r.Gb,null!==u&&(u=u.ug,Rn()===u))){l=l(" ");r=String.fromCharCode(47);l.x=""+l.x+r;h=En(h,"");l.x=""+l.x+h;l.x+="/ ";h=J().Nd;g=w;l=f;continue}if(n&&(u=r.re,w=r.Gb,null!==u&&(u=u.ug,Sn()===u&&h.k()))){h=J().Nd;g=w;continue}if(n&& -(u=r.re,w=r.Gb,null!==u&&(u=u.ug,Sn()===u))){l=l(" / ");h=En(h,"");l.x=""+l.x+h;h=J().Nd;g=w;l=d;continue}if(n)n=r.re,r=r.Gb,l=l(" / "),h=En(h,":"),l.x=""+l.x+h,h=Nn(n,a.M6),l.x=""+l.x+h,h=J().Nd,g=r,l=d;else{d=J().Nd;if(null===d?null===g:d.c(g)){d=l(" / ");f=En(h,":");d.x=""+d.x+f;b=Mn(a,b.kk);d.x=""+d.x+b;break}throw new D(g);}}return c.y()>a.NN?(a=-3+(c.y()-a.NN|0)|0,"..."+c.x.substring(0()=>kp().Vz)(this));this.Mf=new lp}ip.prototype=new t;ip.prototype.constructor=ip;ip.prototype.$classData=x({vda:0},!1,"scala.PartialFunction$",{vda:1,b:1});var jp; -function kp(){jp||(jp=new ip);return jp}function mp(){}mp.prototype=new t;mp.prototype.constructor=mp;function np(a,b){try{return Al(Bl(),b,-1+op(Bl(),b)|0)}catch(c){if(c instanceof pp)throw qp("last of empty array");throw c;}}function rp(a){return 0===op(Bl(),a)?H():new dd(np(ap(),a))}mp.prototype.Lz=function(a,b){a=op(Bl(),a);return a===b?0:aa){if(b instanceof v)return em(hm(),b,a,d);if(b instanceof ob){hm();Vj();if(a>d)throw fm(a+" \x3e "+d);d=d-a|0;c=b.a.length-a|0;c=dd)throw fm(a+" \x3e "+d);d=d-a|0;c=b.a.length-a|0;c=dd)throw fm(a+" \x3e "+d);d=d-a|0;c=b.a.length-a|0;c=dd)throw fm(a+" \x3e "+d);d=d-a|0;c=b.a.length-a|0;c=dd)throw fm(a+" \x3e "+d);d=d-a|0;c=b.a.length-a|0;c=dd)throw fm(a+" \x3e "+d);d=d-a|0;c=b.a.length-a|0;c=dd)throw fm(a+" \x3e "+d);d=d-a|0;c=b.a.length-a|0;c=dd)throw fm(a+" \x3e "+d);d=d-a|0;c=b.a.length-a|0;c=dc=>c.wh())(a)))} -mp.prototype.$classData=x({pfa:0},!1,"scala.collection.ArrayOps$",{pfa:1,b:1});var Mp;function ap(){Mp||(Mp=new mp);return Mp}function Np(){Op=this}Np.prototype=new t;Np.prototype.constructor=Np;Np.prototype.$classData=x({Nfa:0},!1,"scala.collection.Factory$",{Nfa:1,b:1});var Op;function Pp(){}Pp.prototype=new t;Pp.prototype.constructor=Pp;function Qp(a,b){a=b+~(b<<9)|0;a^=a>>>14|0;a=a+(a<<4)|0;return a^(a>>>10|0)}Pp.prototype.$classData=x({Qfa:0},!1,"scala.collection.Hashing$",{Qfa:1,b:1});var Rp; -function Sp(){Rp||(Rp=new Pp);return Rp}function Tp(a,b){for(a=a.w();a.v();)b.t(a.s())}function Up(a,b){var c=!0;for(a=a.w();c&&a.v();)c=!!b.t(a.s());return c}function Vp(a,b){var c=!1;for(a=a.w();!c&&a.v();)c=!!b.t(a.s());return c}function Wp(a,b){for(a=a.w();a.v();){var c=a.s();if(b.t(c))return new dd(c)}return H()}function Xp(a,b,c){for(a=a.w();a.v();)b=c.Oe(b,a.s());return b} -function Yp(a,b,c,d){a=a.w();var f=c,g=op(Bl(),b)-c|0;for(d=c+(d=b)return"";for(var c=jq(k(a.length|0,b)),d=0;d=a||65<=a&&90>=a||48<=a&&57>=a?String.fromCharCode(a):"\\"+q(a)} -function yn(a,b,c){a=c.Ea(new C((()=>d=>{zn();return d instanceof lq?d.vS():d})(a,b))).Oh(mq());return nq(oq(),b,a)}hq.prototype.$classData=x({Mga:0},!1,"scala.collection.StringOps$",{Mga:1,b:1});var pq;function zn(){pq||(pq=new hq);return pq}function qq(a,b){this.hha=b;if(null===a)throw K(L(),null);}qq.prototype=new t;qq.prototype.constructor=qq;qq.prototype.$classData=x({gha:0},!1,"scala.collection.convert.AsScalaExtensions$ConcurrentMapHasAsScala",{gha:1,b:1}); -function rq(a,b){this.jha=b;if(null===a)throw K(L(),null);}rq.prototype=new t;rq.prototype.constructor=rq;rq.prototype.$classData=x({iha:0},!1,"scala.collection.convert.AsScalaExtensions$IteratorHasAsScala",{iha:1,b:1});function sq(a,b){this.lha=b;if(null===a)throw K(L(),null);}sq.prototype=new t;sq.prototype.constructor=sq;sq.prototype.$classData=x({kha:0},!1,"scala.collection.convert.AsScalaExtensions$SetHasAsScala",{kha:1,b:1}); -function tq(a,b){null===a.hi&&(a.hi=new ob(uq().kw<<1),a.dn=new (y(vq).M)(uq().kw));a.Nf=1+a.Nf|0;var c=a.Nf<<1,d=1+(a.Nf<<1)|0;a.dn.a[a.Nf]=b;a.hi.a[c]=0;a.hi.a[d]=b.uv()}function wq(a,b){a.Dd=0;a.Qk=0;a.Nf=-1;b.bv()&&tq(a,b);b.ms()&&(a.Gg=b,a.Dd=0,a.Qk=b.As())}function xq(){this.Qk=this.Dd=0;this.Gg=null;this.Nf=0;this.dn=this.hi=null}xq.prototype=new t;xq.prototype.constructor=xq;function yq(){}yq.prototype=xq.prototype; -xq.prototype.v=function(){var a;if(!(a=this.Ddb)throw Qq(a,b);if(b>(-1+a.a.length|0))throw Qq(a,b);var c=new ob(-1+a.a.length|0);a.U(0,c,0,b);a.U(1+b|0,c,b,-1+(a.a.length-b|0)|0);return c} -function Vq(a,b,c){if(0>b)throw Qq(a,b);if(b>a.a.length)throw Qq(a,b);var d=new ob(1+a.a.length|0);a.U(0,d,0,b);d.a[b]=c;a.U(b,d,1+b|0,a.a.length-b|0);return d}var vq=x({jw:0},!1,"scala.collection.immutable.Node",{jw:1,b:1});Sq.prototype.$classData=vq;function Wq(){this.kw=0;Xq=this;this.kw=Ya(+Math.ceil(6.4))}Wq.prototype=new t;Wq.prototype.constructor=Wq;function Yq(a,b,c){return 31&(b>>>c|0)}function Zq(a,b){return 1<>>h|0;h=f>>>h|0;d&=-1+n|0;f&=-1+n|0;if(0===d)if(0===f)f=c,hr(a,b,0===l&&h===f.a.length?f:em(hm(),f,l,h));else{h>l&&(d=c,hr(a,b,0===l&&h===d.a.length?d:em(hm(),d,l,h)));h=c.a[h];b=-1+b|0;c=h;d=0;continue}else if(h===l){h=c.a[l];b=-1+b|0;c=h;continue}else if(gr(a,-1+b|0,c.a[l],d,n),0===f)h>(1+l|0)&&(f=c,l=1+l|0,hr(a,b,0===l&&h===f.a.length?f:em(hm(),f,l,h))); -else{h>(1+l|0)&&(d=c,l=1+l|0,hr(a,b,0===l&&h===d.a.length?d:em(hm(),d,l,h)));h=c.a[h];b=-1+b|0;c=h;d=0;continue}}break}};function hr(a,b,c){b<=a.Lg?b=11-b|0:(a.Lg=b,b=-1+b|0);a.La.a[b]=c} -var kr=function jr(a,b){if(null===a.La.a[-1+b|0])if(b===a.Lg)a.La.a[-1+b|0]=a.La.a[11-b|0],a.La.a[11-b|0]=null;else{jr(a,1+b|0);var d=a.La.a[-1+(1+b|0)|0];a.La.a[-1+b|0]=d.a[0];if(1===d.a.length)a.La.a[-1+(1+b|0)|0]=null,a.Lg===(1+b|0)&&null===a.La.a[11-(1+b|0)|0]&&(a.Lg=b);else{var f=d.a.length;a.La.a[-1+(1+b|0)|0]=em(hm(),d,1,f)}}},mr=function lr(a,b){if(null===a.La.a[11-b|0])if(b===a.Lg)a.La.a[11-b|0]=a.La.a[-1+b|0],a.La.a[-1+b|0]=null;else{lr(a,1+b|0);var d=a.La.a[11-(1+b|0)|0];a.La.a[11-b|0]= -d.a[-1+d.a.length|0];if(1===d.a.length)a.La.a[11-(1+b|0)|0]=null,a.Lg===(1+b|0)&&null===a.La.a[-1+(1+b|0)|0]&&(a.Lg=b);else{var f=-1+d.a.length|0;a.La.a[11-(1+b|0)|0]=em(hm(),d,0,f)}}};function nr(a,b){this.La=null;this.Lg=this.ct=this.Si=0;this.aS=a;this.$R=b;this.La=new (y(y(xb)).M)(11);this.Lg=this.ct=this.Si=0}nr.prototype=new t;nr.prototype.constructor=nr; -function or(a,b,c){var d=k(c.a.length,1<f&&(ir(a,b,c,f,g),a.Si=a.Si+(g-f|0)|0);a.ct=a.ct+d|0} -nr.prototype.Dg=function(){if(32>=this.Si){if(0===this.Si)return pr();var a=this.La.a[0],b=this.La.a[10];if(null!==a)if(null!==b){var c=a.a.length+b.a.length|0,d=Yl(hm(),a,c);b.U(0,d,a.a.length,b.a.length);var f=d}else f=a;else if(null!==b)f=b;else{var g=this.La.a[1];f=null!==g?g.a[0]:this.La.a[9].a[0]}return new qr(f)}kr(this,1);mr(this,1);var h=this.Lg;if(6>h){var l=this.La.a[-1+this.Lg|0],n=this.La.a[11-this.Lg|0];if(null!==l&&null!==n)if(30>=(l.a.length+n.a.length|0)){var r=this.La,u=this.Lg, -w=l.a.length+n.a.length|0,A=Yl(hm(),l,w);n.U(0,A,l.a.length,n.a.length);r.a[-1+u|0]=A;this.La.a[11-this.Lg|0]=null}else h=1+h|0;else 30<(null!==l?l:n).a.length&&(h=1+h|0)}var M=this.La.a[0],T=this.La.a[10],V=M.a.length,ha=h;switch(ha){case 2:var ra=Q().Kb,ea=this.La.a[1];if(null!==ea)var wa=ea;else{var xa=this.La.a[9];wa=null!==xa?xa:ra}var Ta=new rr(M,V,wa,T,this.Si);break;case 3:var gb=Q().Kb,mb=this.La.a[1],Zb=null!==mb?mb:gb,lb=Q().Td,Ab=this.La.a[2];if(null!==Ab)var za=Ab;else{var kc=this.La.a[8]; -za=null!==kc?kc:lb}var La=za,Ja=Q().Kb,ya=this.La.a[9];Ta=new sr(M,V,Zb,V+(Zb.a.length<<5)|0,La,null!==ya?ya:Ja,T,this.Si);break;case 4:var Ve=Q().Kb,fh=this.La.a[1],ad=null!==fh?fh:Ve,sb=Q().Td,Dd=this.La.a[2],Eb=null!==Dd?Dd:sb,Md=Q().mg,Jf=this.La.a[3];if(null!==Jf)var ns=Jf;else{var os=this.La.a[7];ns=null!==os?os:Md}var ps=ns,lg=Q().Td,hk=this.La.a[8],qs=null!==hk?hk:lg,rs=Q().Kb,Wn=this.La.a[9],ik=V+(ad.a.length<<5)|0;Ta=new tr(M,V,ad,ik,Eb,ik+(Eb.a.length<<10)|0,ps,qs,null!==Wn?Wn:rs,T,this.Si); -break;case 5:var Xn=Q().Kb,Pc=this.La.a[1],fj=null!==Pc?Pc:Xn,gh=Q().Td,Xh=this.La.a[2],El=null!==Xh?Xh:gh,ss=Q().mg,Fl=this.La.a[3],jk=null!==Fl?Fl:ss,Yn=Q().rn,Zn=this.La.a[4];if(null!==Zn)var Gl=Zn;else{var Hl=this.La.a[6];Gl=null!==Hl?Hl:Yn}var ts=Gl,gj=Q().mg,Il=this.La.a[7],us=null!==Il?Il:gj,vs=Q().Td,$n=this.La.a[8],ws=null!==$n?$n:vs,ez=Q().Kb,xs=this.La.a[9],Jl=V+(fj.a.length<<5)|0,ao=Jl+(El.a.length<<10)|0;Ta=new ur(M,V,fj,Jl,El,ao,jk,ao+(jk.a.length<<15)|0,ts,us,ws,null!==xs?xs:ez,T,this.Si); -break;case 6:var ze=Q().Kb,Nd=this.La.a[1],Kf=null!==Nd?Nd:ze,hj=Q().Td,ij=this.La.a[2],bo=null!==ij?ij:hj,co=Q().mg,kk=this.La.a[3],mg=null!==kk?kk:co,Yh=Q().rn,eo=this.La.a[4],ys=null!==eo?eo:Yh,Lf=Q().IA,lk=this.La.a[5];if(null!==lk)var fo=lk;else{var jj=this.La.a[5];fo=null!==jj?jj:Lf}var mk=fo,go=Q().rn,Kl=this.La.a[6],zs=null!==Kl?Kl:go,Ll=Q().mg,nk=this.La.a[7],ho=null!==nk?nk:Ll,Ml=Q().Td,Nl=this.La.a[8],fz=null!==Nl?Nl:Ml,As=Q().Kb,Bs=this.La.a[9],io=V+(Kf.a.length<<5)|0,Cs=io+(bo.a.length<< -10)|0,jo=Cs+(mg.a.length<<15)|0;Ta=new vr(M,V,Kf,io,bo,Cs,mg,jo,ys,jo+(ys.a.length<<20)|0,mk,zs,ho,fz,null!==Bs?Bs:As,T,this.Si);break;default:throw new D(ha);}return Ta};nr.prototype.g=function(){return"VectorSliceBuilder(lo\x3d"+this.aS+", hi\x3d"+this.$R+", len\x3d"+this.Si+", pos\x3d"+this.ct+", maxDim\x3d"+this.Lg+")"};nr.prototype.$classData=x({vja:0},!1,"scala.collection.immutable.VectorSliceBuilder",{vja:1,b:1}); -function wr(){this.IA=this.rn=this.mg=this.Td=this.Kb=this.mG=null;xr=this;this.mG=new v(0);this.Kb=new (y(y(xb)).M)(0);this.Td=new (y(y(y(xb))).M)(0);this.mg=new (y(y(y(y(xb)))).M)(0);this.rn=new (y(y(y(y(y(xb))))).M)(0);this.IA=new (y(y(y(y(y(y(xb)))))).M)(0)}wr.prototype=new t;wr.prototype.constructor=wr;function yr(a,b,c){a=b.a.length;var d=new v(1+a|0);b.U(0,d,0,a);d.a[a]=c;return d}function zr(a,b,c){a=1+b.a.length|0;b=Yl(hm(),b,a);b.a[-1+b.a.length|0]=c;return b} -function Ar(a,b,c){a=new v(1+c.a.length|0);c.U(0,a,1,c.a.length);a.a[0]=b;return a}function Br(a,b,c){a=Uh(sa(c));var d=1+c.a.length|0;Wi();a=Vh(a,[d]);c.U(0,a,1,c.a.length);a.a[0]=b;return a}function Cr(a,b,c,d){var f=0,g=c.a.length;if(0===b)for(;f=c.SA(32-b.a.length|0))switch(a=c.$(),a){case 0:return null;case 1:return Br(0,c.R(),b);default:var d=new v(b.a.length+a|0);b.U(0,d,a,b.a.length);c.Lb(d,0,2147483647);return d}else return null;else return a=c.L(),0=c.SA(32-b.a.length|0))switch(a=c.$(),a){case 0:return null;case 1:return zr(0,b,c.R());default:return a=b.a.length+a|0,a=Yl(hm(),b,a),c.Lb(a,b.a.length,2147483647),a}else return null;else return a=c.L(),0c)return null;a=a.He}}Jr.prototype.Ba=function(a){for(var b=this;;)if(a.t(z(new B,b.vn,b.ni)),null!==b.He)b=b.He;else break};Jr.prototype.zh=function(a){for(var b=this;;)if(a.Oe(b.vn,b.ni),null!==b.He)b=b.He;else break}; -Jr.prototype.g=function(){return"Node("+this.vn+", "+this.ni+", "+this.bl+") -\x3e "+this.He};var Lr=x({dka:0},!1,"scala.collection.mutable.HashMap$Node",{dka:1,b:1});Jr.prototype.$classData=Lr;function Mr(a,b,c){this.xn=a;this.Fj=b;this.bf=c}Mr.prototype=new t;Mr.prototype.constructor=Mr;Mr.prototype.Ba=function(a){for(var b=this;;)if(a.t(b.xn),null!==b.bf)b=b.bf;else break};Mr.prototype.g=function(){return"Node("+this.xn+", "+this.Fj+") -\x3e "+this.bf}; -var Nr=x({kka:0},!1,"scala.collection.mutable.HashSet$Node",{kka:1,b:1});Mr.prototype.$classData=Nr;function Or(){}Or.prototype=new t;Or.prototype.constructor=Or;function Pr(a,b,c){a=c>>31;var d=b>>31,f=65535&c,g=c>>>16|0,h=65535&b,l=b>>>16|0,n=k(f,h);h=k(g,h);var r=k(f,l);f=n+((h+r|0)<<16)|0;n=(n>>>16|0)+r|0;b=(((k(c,d)+k(a,b)|0)+k(g,l)|0)+(n>>>16|0)|0)+(((65535&n)+h|0)>>>16|0)|0;return vj(tj(),f,b,1E3,0)}Or.prototype.$classData=x({lka:0},!1,"scala.collection.mutable.HashTable$",{lka:1,b:1});var Qr; -function Rr(){Qr||(Qr=new Or);return Qr}function Sr(){}Sr.prototype=new t;Sr.prototype.constructor=Sr;Sr.prototype.$classData=x({xka:0},!1,"scala.collection.mutable.MutationTracker$",{xka:1,b:1});var Tr;function Ur(){}Ur.prototype=new t;Ur.prototype.constructor=Ur;Ur.prototype.$classData=x({qha:0},!1,"scala.collection.package$$colon$plus$",{qha:1,b:1});var Vr;function Wr(){}Wr.prototype=new t;Wr.prototype.constructor=Wr; -Wr.prototype.$classData=x({rha:0},!1,"scala.collection.package$$plus$colon$",{rha:1,b:1});var Xr;function Yr(){this.Bv=this.Av=null;this.Xm=0}Yr.prototype=new t;Yr.prototype.constructor=Yr;function Zr(){}Zr.prototype=Yr.prototype;function $r(){this.DQ=null;as=this;this.DQ=new (y(hi).M)(0)}$r.prototype=new t;$r.prototype.constructor=$r;$r.prototype.$classData=x({Hda:0},!1,"scala.concurrent.BatchingExecutorStatics$",{Hda:1,b:1});var as; -function bs(){this.Xz=this.FQ=null;this.jF=!1;cs=this;this.Xz=new C((()=>a=>{ds(a)})(this))}bs.prototype=new t;bs.prototype.constructor=bs;function es(){var a=fs();a.jF||a.jF||(gs||(gs=new hs),a.FQ=gs.kS,a.jF=!0);return a.FQ}bs.prototype.$classData=x({Ida:0},!1,"scala.concurrent.ExecutionContext$",{Ida:1,b:1});var cs;function fs(){cs||(cs=new bs);return cs} -function is(){this.NQ=this.IQ=this.MQ=this.kF=this.KQ=this.LQ=this.JQ=null;js=this;E();var a=[z(new B,m(Bb),m(Da)),z(new B,m(Db),m(va)),z(new B,m(Cb),m(Ga)),z(new B,m(Fb),m(Aa)),z(new B,m(Gb),m(Ba)),z(new B,m(Hb),m(Fa)),z(new B,m(Ib),m(Ca)),z(new B,m(Jb),m(ks)),z(new B,m(zb),m(Ea))];a=qc(new rc,a);G(0,a);this.JQ=new C((()=>b=>{throw new ls(b);})(this));this.LQ=new ms(new Ds);this.KQ=new ms(new Es);Fs(Gs(),this.KQ);this.kF=Hs();this.MQ=new C((()=>()=>Gs().kF)(this));this.IQ=new gn((()=>(b,c)=>b.Wa(c))(this)); -this.NQ=Fs(0,new Is(void 0))}is.prototype=new t;is.prototype.constructor=is;function Hs(){Gs();var a=new Js;Ks||(Ks=new Ls);return Ms(new ms(a))}function Ns(a){Ks||(Ks=new Ls);return Ms(new Is(a))}function Fs(a,b){return Ms(b)}function Os(a,b,c){return Ps(a.NQ,new C(((d,f)=>()=>gq(f))(a,b)),c)}function Qs(a,b,c){var d=b.w();for(b=Ns(b.Fb().gb());d.v();){var f=d.s(),g=Gs().IQ;b=Rs(b,f,g,c)}return Ps(b,new C((()=>h=>h.yb())(a)),c&&c.$classData&&c.$classData.Eb.CQ?c:Ss())} -is.prototype.$classData=x({Lda:0},!1,"scala.concurrent.Future$",{Lda:1,b:1});var js;function Gs(){js||(js=new is);return js}function Ts(a,b){var c=a.oc;if(!(c instanceof Us)&&Vs(a,c,Ws(Xs(),b)))return a;throw Kq("Promise already completed.");}function Ys(a,b){return Ts(a,new ms(b))}function Ls(){}Ls.prototype=new t;Ls.prototype.constructor=Ls;Ls.prototype.$classData=x({Rda:0},!1,"scala.concurrent.Promise$",{Rda:1,b:1});var Ks;function Zs(){this.Fv=null;$s=this;this.Fv=at(new bt,0,null,Ss())} -Zs.prototype=new t;Zs.prototype.constructor=Zs;function Ws(a,b){if(null===b)throw P();if(b instanceof Is)return b;a=b.Fh;return a instanceof xg?new ms(new ct(a)):b}Zs.prototype.$classData=x({Xda:0},!1,"scala.concurrent.impl.Promise$",{Xda:1,b:1});var $s;function Xs(){$s||($s=new Zs);return $s}function dt(a){return!!(a&&a.$classData&&a.$classData.Eb.QQ)}function et(){this.Ym=this.Hv=null}et.prototype=new t;et.prototype.constructor=et;function ft(){}ft.prototype=et.prototype; -function gt(a,b){return a.Ym.Bg(a.Hv,b)}function ht(){}ht.prototype=new t;ht.prototype.constructor=ht;ht.prototype.$classData=x({rea:0},!1,"scala.math.Ordered$",{rea:1,b:1});var it;function jt(a,b){this.dA=null;this.qF=b;if(null===a)throw K(L(),null);this.dA=a}jt.prototype=new t;jt.prototype.constructor=jt;function kt(a,b){return a.dA.Hi(a.qF,b)}jt.prototype.$classData=x({Bea:0},!1,"scala.math.Ordering$OrderingOps",{Bea:1,b:1}); -function lt(a,b){if(b instanceof oa)return b=Ma(b),a.$y()&&a.xf()===b;if(db(b))return b|=0,a.Zy()&&a.es()===b;if(eb(b))return b|=0,a.bz()&&a.gt()===b;if(ua(b))return b|=0,a.fv()&&a.xf()===b;if(b instanceof p){var c=fb(b);b=c.m;c=c.r;a=a.eg();return a.m===b&&a.r===c}return"number"===typeof b?(b=+b,a.Im()===b):"number"===typeof b?(b=+b,a.Ei()===b):!1}function mt(){}mt.prototype=new t;mt.prototype.constructor=mt;mt.prototype.$classData=x({Gea:0},!1,"scala.math.package$",{Gea:1,b:1});var nt; -function ot(){this.Nd=this.XQ=this.u=this.YQ=this.Iea=this.WQ=null;this.Zm=0;pt=this;qt();this.YQ=qt();this.u=rt();this.XQ=st();tt();eh();this.Nd=F();ut||(ut=new vt);Xr||(Xr=new Wr);Vr||(Vr=new Ur);wt();xt();yt();zt||(zt=new At);Bt();Ct||(Ct=new Dt);Et||(Et=new Ft);Gt||(Gt=new Ht);It||(It=new Jt);it||(it=new ht);Kt||(Kt=new Lt);Mt||(Mt=new Nt);Ot||(Ot=new Pt);Qt||(Qt=new Rt)}ot.prototype=new t;ot.prototype.constructor=ot;ot.prototype.$classData=x({Hea:0},!1,"scala.package$",{Hea:1,b:1});var pt; -function J(){pt||(pt=new ot);return pt}function St(){}St.prototype=new t;St.prototype.constructor=St;function N(a,b,c){if(b===c)c=!0;else if(Tt(b))a:if(Tt(c))c=Ut(0,b,c);else{if(c instanceof oa){if("number"===typeof b){c=+b===Ma(c);break a}if(b instanceof p){a=fb(b);b=a.r;c=Ma(c);c=a.m===c&&b===c>>31;break a}}c=null===b?null===c:Ka(b,c)}else c=b instanceof oa?Vt(b,c):null===b?null===c:Ka(b,c);return c} -function Ut(a,b,c){if("number"===typeof b)return a=+b,"number"===typeof c?a===+c:c instanceof p?(b=fb(c),c=b.m,b=b.r,a===Wt(tj(),c,b)):c instanceof lq?c.c(a):!1;if(b instanceof p){b=fb(b);a=b.m;b=b.r;if(c instanceof p){c=fb(c);var d=c.r;return a===c.m&&b===d}return"number"===typeof c?(c=+c,Wt(tj(),a,b)===c):c instanceof lq?c.c(new p(a,b)):!1}return null===b?null===c:Ka(b,c)} -function Vt(a,b){if(b instanceof oa)return Ma(a)===Ma(b);if(Tt(b)){if("number"===typeof b)return+b===Ma(a);if(b instanceof p){b=fb(b);var c=b.r;a=Ma(a);return b.m===a&&c===a>>31}return null===b?null===a:Ka(b,a)}return null===a&&null===b}St.prototype.$classData=x({ila:0},!1,"scala.runtime.BoxesRunTime$",{ila:1,b:1});var Xt;function O(){Xt||(Xt=new St);return Xt}var bq=x({pla:0},!1,"scala.runtime.Null$",{pla:1,b:1});function Yt(){}Yt.prototype=new t;Yt.prototype.constructor=Yt; -Yt.prototype.$classData=x({ula:0},!1,"scala.runtime.RichChar$",{ula:1,b:1});var Zt;function $t(){}$t.prototype=new t;$t.prototype.constructor=$t;$t.prototype.$classData=x({wla:0},!1,"scala.runtime.RichLong$",{wla:1,b:1});var au;function bu(){au||(au=new $t)}function cu(){}cu.prototype=new t;cu.prototype.constructor=cu; -function Al(a,b,c){if(b instanceof v||b instanceof ob||b instanceof rb||b instanceof pb||b instanceof qb)return b.a[c];if(b instanceof jb)return q(b.a[c]);if(b instanceof kb||b instanceof nb||b instanceof ib)return b.a[c];if(null===b)throw P();throw new D(b);} -function Cl(a,b,c,d){if(b instanceof v)b.a[c]=d;else if(b instanceof ob)b.a[c]=d|0;else if(b instanceof rb)b.a[c]=+d;else if(b instanceof pb)b.a[c]=fb(d);else if(b instanceof qb)b.a[c]=+d;else if(b instanceof jb)b.a[c]=Ma(d);else if(b instanceof kb)b.a[c]=d|0;else if(b instanceof nb)b.a[c]=d|0;else if(b instanceof ib)b.a[c]=!!d;else{if(null===b)throw P();throw new D(b);}} -function op(a,b){Wi();if(b instanceof v||b instanceof ib||b instanceof jb||b instanceof kb||b instanceof nb||b instanceof ob||b instanceof pb||b instanceof qb||b instanceof rb)a=b.a.length;else throw fm("argument type mismatch");return a}function du(a){Bl();return qf(new eu(a),a.A()+"(",",",")")}cu.prototype.$classData=x({yla:0},!1,"scala.runtime.ScalaRunTime$",{yla:1,b:1});var fu;function Bl(){fu||(fu=new cu);return fu}function gu(){}gu.prototype=new t;gu.prototype.constructor=gu; -gu.prototype.j=function(a,b){a=this.sj(a,b);return-430675100+k(5,a<<13|a>>>19|0)|0};gu.prototype.sj=function(a,b){b=k(-862048943,b);b=k(461845907,b<<15|b>>>17|0);return a^b};gu.prototype.ca=function(a,b){a^=b;a=k(-2048144789,a^(a>>>16|0));a=k(-1028477387,a^(a>>>13|0));return a^(a>>>16|0)};function hu(a,b){a=b.m;b=b.r;return b===a>>31?a:a^b}function iu(a,b){a=Ya(b);if(a===b)return a;var c=tj();a=ju(c,b);c=c.sa;return Wt(tj(),a,c)===b?a^c:$h(di(),b)} -function ku(a,b){return null===b?0:"number"===typeof b?iu(0,+b):b instanceof p?(a=fb(b),hu(0,new p(a.m,a.r))):Oa(b)}function R(a,b){throw lu(new mu,""+b);}gu.prototype.$classData=x({Cla:0},!1,"scala.runtime.Statics$",{Cla:1,b:1});var nu;function S(){nu||(nu=new gu);return nu}function ou(){}ou.prototype=new t;ou.prototype.constructor=ou;ou.prototype.$classData=x({Dla:0},!1,"scala.runtime.Statics$PFMarker$",{Dla:1,b:1});var pu;function qu(){pu||(pu=new ou);return pu} -function hs(){this.kS=null;gs=this;ru||(ru=new su);this.kS="undefined"===typeof Promise?new wu:new xu}hs.prototype=new t;hs.prototype.constructor=hs;hs.prototype.$classData=x({Gka:0},!1,"scala.scalajs.concurrent.JSExecutionContext$",{Gka:1,b:1});var gs;function su(){}su.prototype=new t;su.prototype.constructor=su;su.prototype.$classData=x({Hka:0},!1,"scala.scalajs.concurrent.QueueExecutionContext$",{Hka:1,b:1});var ru;function yu(){}yu.prototype=new t;yu.prototype.constructor=yu; -yu.prototype.$classData=x({Kka:0},!1,"scala.scalajs.js.$bar$",{Kka:1,b:1});var zu;function mc(){zu||(zu=new yu)}function Au(){}Au.prototype=new t;Au.prototype.constructor=Au;function Bu(a,b){return new Promise(((c,d)=>(f,g)=>{Cu(Du(),f,g,c,d)})(a,b))}function Cu(a,b,c,d,f){Eu(d,new C(((g,h,l)=>n=>{if(n instanceof Is)return h(n.Ji);if(n instanceof ms)return n=n.Fh,l(n instanceof Fu?n.kq:n);throw new D(n);})(a,b,c)),f)} -Au.prototype.$classData=x({Mka:0},!1,"scala.scalajs.js.JSConverters$JSRichFuture$",{Mka:1,b:1});var Gu;function Du(){Gu||(Gu=new Au);return Gu}function Hu(){}Hu.prototype=new t;Hu.prototype.constructor=Hu;function xc(a,b){if(b instanceof Iu)return b.qi;a=[];for(b=b.w();b.v();){var c=b.s();a.push(c)|0}return a}Hu.prototype.$classData=x({Nka:0},!1,"scala.scalajs.js.JSConverters$JSRichIterableOnce$",{Nka:1,b:1});var Ju;function yc(){Ju||(Ju=new Hu);return Ju}function pc(){}pc.prototype=new t; -pc.prototype.constructor=pc;pc.prototype.$classData=x({Oka:0},!1,"scala.scalajs.js.JSConverters$JSRichMap$",{Oka:1,b:1});var oc;function Ku(){}Ku.prototype=new t;Ku.prototype.constructor=Ku;function Lu(a){var b=Mu(new Nu),c=a.then,d=(f=>g=>{Ou();Ts(f,new Is(g))})(b);Pu||(Pu=new Qu);c.call(a,d,(f=>g=>{Ou();g=g instanceof Ru?g:new Fu(g);Ys(f,g)})(b));return b}Ku.prototype.$classData=x({Qka:0},!1,"scala.scalajs.js.Thenable$ThenableOps$",{Qka:1,b:1});var Su;function Ou(){Su||(Su=new Ku)} -function Tu(){this.AG=null;Uu=this;this.AG=Object.prototype.hasOwnProperty}Tu.prototype=new t;Tu.prototype.constructor=Tu;Tu.prototype.$classData=x({Tka:0},!1,"scala.scalajs.js.WrappedDictionary$Cache$",{Tka:1,b:1});var Uu;function Zk(){Uu||(Uu=new Tu);return Uu}function Qu(){}Qu.prototype=new t;Qu.prototype.constructor=Qu;Qu.prototype.$classData=x({Uka:0},!1,"scala.scalajs.js.defined$",{Uka:1,b:1});var Pu;function Vu(){}Vu.prototype=new t;Vu.prototype.constructor=Vu; -function sc(a,b){var c={};b.Ba(new C(((d,f)=>g=>{f[g.ib]=g.Va})(a,c)));return c}Vu.prototype.$classData=x({Vka:0},!1,"scala.scalajs.js.special.package$",{Vka:1,b:1});var Wu;function tc(){Wu||(Wu=new Vu);return Wu}function Xu(){}Xu.prototype=new t;Xu.prototype.constructor=Xu;function Yu(a,b){return b instanceof Ru?b:new Fu(b)}function K(a,b){return b instanceof Fu?b.kq:b}function Zu(a,b){return qc(new rc,b)}Xu.prototype.$classData=x({fla:0},!1,"scala.scalajs.runtime.package$",{fla:1,b:1});var $u; -function L(){$u||($u=new Xu);return $u}function av(){}av.prototype=new t;av.prototype.constructor=av;function bv(a){cv||(cv=new av);throw K(L(),dv(new ev,a));}av.prototype.$classData=x({afa:0},!1,"scala.sys.package$",{afa:1,b:1});var cv;function fv(a){this.Jv=a}fv.prototype=new t;fv.prototype.constructor=fv;fv.prototype.g=function(){return"DynamicVariable("+this.Jv+")"};fv.prototype.$classData=x({bfa:0},!1,"scala.util.DynamicVariable",{bfa:1,b:1}); -function gv(a){hv||(hv=new iv);return hv.jfa?Ru.prototype.$h.call(a):a}function jv(){}jv.prototype=new t;jv.prototype.constructor=jv;function kv(a,b){return!(b instanceof lv)}function mv(a,b){return kv(0,b)?new dd(b):H()}jv.prototype.$classData=x({kfa:0},!1,"scala.util.control.NonFatal$",{kfa:1,b:1});var nv;function ov(){nv||(nv=new jv);return nv}function pv(){}pv.prototype=new t;pv.prototype.constructor=pv;function qv(){}qv.prototype=pv.prototype; -pv.prototype.j=function(a,b){a=this.sj(a,b);return-430675100+k(5,a<<13|a>>>19|0)|0};pv.prototype.sj=function(a,b){b=k(-862048943,b);b=k(461845907,b<<15|b>>>17|0);return a^b};pv.prototype.ca=function(a,b){return rv(a^b)};function rv(a){a=k(-2048144789,a^(a>>>16|0));a=k(-1028477387,a^(a>>>13|0));return a^(a>>>16|0)}function sv(a,b,c){var d=a.j(-889275714,Pa("Tuple2"));d=a.j(d,b);d=a.j(d,c);return a.ca(d,2)} -function tv(a){var b=uv(),c=a.B();if(0===c)return Pa(a.A());var d=b.j(-889275714,Pa(a.A()));for(var f=0;fn=>(Ov(),l.Jj(n)))(a,b);if(c){c=new Pv;try{var f=Qv(new Rv,d,Sv(),c);g=a(f)}catch(h){d=Yu(L(),h);if(null!==d)throw new Tv(Uv(c.Zr),d);throw h;}}else var g=a(d);return g}Kv.prototype.$classData=x({R8:0},!1,"ujson.package$",{R8:1,b:1});var Lv;function Ov(){Lv||(Lv=new Kv);return Lv} -function Vv(a,b){return a.Kr.a[b-a.Yx|0]}function Wv(a,b){var c;if((c=b>=a.Zx)&&!(c=b>=a.eD)){c=a.Kr;c=null===c?new Xv(tn(a.I8),0===a.iD,a.iD):new Xv(c,!0,-1);if(null===c)throw new D(c);var d=!!c.Lu,f=c.Mu|0;a.Kr=c.Ku;a.Zx=a.Zx+f|0;d&&(a.eD=b);c=d}return c}function Yv(a,b,c){return new Zv(a.Kr,b-a.Yx|0,c)}function $v(){}$v.prototype=new t;$v.prototype.constructor=$v;function aw(){}aw.prototype=$v.prototype;function bw(){}bw.prototype=new t;bw.prototype.constructor=bw; -bw.prototype.$classData=x({p9:0},!1,"upickle.core.CharOps$",{p9:1,b:1});var cw;function dw(a){return 65535&(a+(10<=a?87:48)|0)}function ew(){this.dO=null;fw=this;for(var a=new ob(128),b=0;10>b;)a.a[48+b|0]=b,b=1+b|0;for(b=0;16>b;)a.a[97+b|0]=10+b|0,a.a[65+b|0]=10+b|0,b=1+b|0;this.dO=a}ew.prototype=new t;ew.prototype.constructor=ew;function gw(a,b){return a.dO.a[b]} -function hw(a,b,c,d){a=Ra(c);var f=2+a|0;iw(b,f);jw(b,34);var g=0;for(iw(b,f);gh||126>12));jw(l,dw(15&h>>8));jw(l,dw(15&h>>4));jw(l,dw(15&h))}else lw(b,h)}g=1+g|0}jw(b,34)} -function kw(a,b,c,d){iw(a,1+(b-c|0)|0);jw(a,92);jw(a,d)}ew.prototype.$classData=x({t9:0},!1,"upickle.core.RenderUtils$",{t9:1,b:1});var fw;function mw(){fw||(fw=new ew);return fw}function nw(a){var b=a.Mz();J();var c=qc(new rc,[a]);a:for(a=b,b=hh(F(),c);;)if(a instanceof dd)c=a.Qb,a=c.Mz(),b=new ph(c,b);else{if(H()===a)break a;throw new D(a);}return b}function Uv(a){var b=nw(a).w();b=new ow(b,new C((()=>c=>c.$E())(a)));a=new Lp(b,new C((()=>c=>"["+c+"]")(a)));return"$"+qf(a,"","","")} -function Pv(){this.Zr=null;this.Zr=Sv()}Pv.prototype=new t;Pv.prototype.constructor=Pv;Pv.prototype.$classData=x({A9:0},!1,"upickle.core.TraceVisitor$Wrapper",{A9:1,b:1});function pw(){throw new qw("expected dictionary");}function rw(a){this.cp=null;if(null===a)throw K(L(),null);this.cp=a}rw.prototype=new t;rw.prototype.constructor=rw;function qd(a,b){a=a.cp;null===U().wy&&null===U().wy&&(U().wy=new sw(a));a=U().wy;return new tw(a,b)} -function uw(a,b,c){return b&&b.$classData&&b.$classData.Eb.yD&&c&&c.$classData&&c.$classData.Eb.BD?new vw(a,b,c):new ww(a,b,c)}rw.prototype.$classData=x({B9:0},!1,"upickle.core.Types$ReadWriter$",{B9:1,b:1});function xw(a){this.xD=null;if(null===a)throw K(L(),null);this.xD=a}xw.prototype=new t;xw.prototype.constructor=xw;xw.prototype.$classData=x({E9:0},!1,"upickle.core.Types$Reader$",{E9:1,b:1});function sw(a){this.ty=null;if(null===a)throw K(L(),null);this.ty=a}sw.prototype=new t; -sw.prototype.constructor=sw;sw.prototype.$classData=x({I9:0},!1,"upickle.core.Types$TaggedReadWriter$",{I9:1,b:1});function yw(a){this.AD=null;if(null===a)throw K(L(),null);this.AD=a}yw.prototype=new t;yw.prototype.constructor=yw;yw.prototype.$classData=x({K9:0},!1,"upickle.core.Types$TaggedReader$",{K9:1,b:1});function zw(a){this.nO=null;if(null===a)throw K(L(),null);this.nO=a}zw.prototype=new t;zw.prototype.constructor=zw; -zw.prototype.$classData=x({O9:0},!1,"upickle.core.Types$TaggedWriter$",{O9:1,b:1});function W(a,b,c){return null===c?b.dc(-1):a.oa(b,c)}function Aw(a,b){var c=a.na();null===U().zy&&null===U().zy&&(U().zy=new Bw(c));c=U().zy;return new Cw(c,a,b)}var Dw=x({la:0},!0,"upickle.core.Types$Writer",{la:1,b:1});function Bw(a){this.rO=null;if(null===a)throw K(L(),null);this.rO=a}Bw.prototype=new t;Bw.prototype.constructor=Bw;Bw.prototype.$classData=x({Y9:0},!1,"upickle.core.Types$Writer$",{Y9:1,b:1}); -function Ew(){Fw=this;new (y(ta).M)("00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f 10 11 12 13 14 15 16 17 18 19 1a 1b 1c 1d 1e 1f 20 21 22 23 24 25 26 27 28 29 2a 2b 2c 2d 2e 2f 30 31 32 33 34 35 36 37 38 39 3a 3b 3c 3d 3e 3f 40 41 42 43 44 45 46 47 48 49 4a 4b 4c 4d 4e 4f 50 51 52 53 54 55 56 57 58 59 5a 5b 5c 5d 5e 5f 60 61 62 63 64 65 66 67 68 69 6a 6b 6c 6d 6e 6f 70 71 72 73 74 75 76 77 78 79 7a 7b 7c 7d 7e 7f 80 81 82 83 84 85 86 87 88 89 8a 8b 8c 8d 8e 8f 90 91 92 93 94 95 96 97 98 99 9a 9b 9c 9d 9e 9f a0 a1 a2 a3 a4 a5 a6 a7 a8 a9 aa ab ac ad ae af b0 b1 b2 b3 b4 b5 b6 b7 b8 b9 ba bb bc bd be bf c0 c1 c2 c3 c4 c5 c6 c7 c8 c9 ca cb cc cd ce cf d0 d1 d2 d3 d4 d5 d6 d7 d8 d9 da db dc dd de df e0 e1 e2 e3 e4 e5 e6 e7 e8 e9 ea eb ec ed ee ef f0 f1 f2 f3 f4 f5 f6 f7 f8 f9 fa fb fc fd fe ff".split(" "))} -Ew.prototype=new t;Ew.prototype.constructor=Ew; -function Gw(a,b,c,d){if(-1===d)var f=1;else{a=1;f=Hw(0,b,1+d|0,Ra(b));var g=f.m;f=f.r;for(var h=0;;){var l=h,n=l>>31;if(n===f?(-2147483648^l)<(-2147483648^g):n>31;if(214748364===n?1288490188<=(-2147483648^l):214748364>31;l=g.m;a=65535&l;n=l>>>16|0;var r=65535&f,u=f>>>16|0,w=k(a,r);r=k(n,r);var A=k(a,u);a=w+((r+A|0)<<16)|0;w=(w>>>16|0)+A|0;g=(((k(l,h)+k(g.r,f)|0)+k(n,u)|0)+(w>>> -16|0)|0)+(((65535&w)+r|0)>>>16|0)|0;if(-1===c)c=ma;else{d=-1!==d?d:Ra(b);h=Hw(0,b,1+c|0,d);l=f>>31;n=h.m;var M=65535&n;u=n>>>16|0;A=65535&f;w=f>>>16|0;r=k(M,A);A=k(u,A);var T=k(M,w);M=r+((A+T|0)<<16)|0;r=(r>>>16|0)+T|0;f=(((k(n,l)+k(h.r,f)|0)+k(u,w)|0)+(r>>>16|0)|0)+(((65535&r)+A|0)>>>16|0)|0;h=M;for(c=d-(1+c|0)|0;0c?"0E+":"0E")+(-2147483648===c?"2147483648":""+(-c|0))}else{a=0>b.o;var d="";var f=18;if(a){var g=b.k;b=b.o;b=new p(-g|0,0!==g?~b:-b|0)}g=b.k;for(var h=b.o;;){b=g;var k=h;h=Aa();g=qn(h,g,k,10,0);h=h.za;f=-1+f|0;k=h;var n=g,r=n>>>16|0;n=l(10,65535&n);r=l(10,r);r=n+(r<<16)|0;l(10,k);d=""+(b- +r|0)+d;b=h;if(0===g&&0===b)break}g=18-f|0;h=g>>31;k=c>>31;b=g-c|0;g=(-2147483648^b)>(-2147483648^g)?-1+(h-k|0)|0:h-k|0;b=-1+b|0;g=-1!==b?g:-1+g|0;if(0>>16|0;var K=65535&d,U=d>>>16|0,Z=l(y,K);K=l(w,K);y=l(y,U);y=Z+((K+y|0)<<16)|0;l(r,d);l(w,U);u=u-y|0;if(0!==g)for(g=1+g|0;;){w=g=-1+g|0;U=k.a[-2+h|0];r=65535&w;w=w>>>16|0;Z=65535&U;U=U>>>16|0;y=l(r,Z);Z=l(w,Z); +K=l(r,U);r=y+((Z+K|0)<<16)|0;y=(y>>>16|0)+K|0;y=(l(w,U)+(y>>>16|0)|0)+(((65535&y)+Z|0)>>>16|0)|0;U=u;w=a.a[-2+f|0];Z=u+d|0;if(0===((-2147483648^Z)<(-2147483648^u)?1:0)&&(u=Z,y^=-2147483648,U^=-2147483648,y===U?(-2147483648^r)>(-2147483648^w):y>U))continue;break}}if(u=0!==g){un();u=a;r=f-h|0;U=k;w=h;y=g;var ra=0;var Ba;for(Z=Ba=0;Z>>16|0;var Fa=65535&y,ib=y>>>16|0,zb=l(Ca,Fa);Fa=l(ka,Fa);var Ab=l(Ca,ib);Ca=zb+((Fa+Ab|0)<<16)|0;zb=(zb>>>16|0)+Ab|0;ib=(l(ka, +ib)+(zb>>>16|0)|0)+(((65535&zb)+Fa|0)>>>16|0)|0;ka=Ca+ra|0;ra=(-2147483648^ka)<(-2147483648^Ca)?1+ib|0:ib;ib=u.a[r+K|0];ka=ib-ka|0;ib=(-2147483648^ka)>(-2147483648^ib)?-1:0;Ca=Ba;Ba=Ca>>31;Ca=ka+Ca|0;Ba=(-2147483648^Ca)<(-2147483648^ka)?1+(ib+Ba|0)|0:ib+Ba|0;u.a[r+K|0]=Ca;Z=1+Z|0}y=u.a[r+w|0];U=y-ra|0;y=(-2147483648^U)>(-2147483648^y)?-1:0;K=Ba;Z=K>>31;K=U+K|0;u.a[r+w|0]=K;u=0!==((-2147483648^K)<(-2147483648^U)?1+(y+Z|0)|0:y+Z|0)}if(u)for(g=-1+g|0,u=Z=y=0;u>>16|0,r=65535&f,u=f>>>16|0,w=l(k,r);r=l(n,r);k=l(k,u);w=w+((r+k|0)<<16)|0;l(h,f);l(n,u);a=a-w|0;b.a[d]=g;d=-1+d|0}return a} +sn.prototype.$classData=v({Jea:0},!1,"java.math.Division$",{Jea:1,b:1});var Hn;function un(){Hn||(Hn=new sn);return Hn} +function In(a,b,c,d){var f=new eb(1+b|0),g=1,h=a.a[0],k=h+c.a[0]|0;f.a[0]=k;h=(-2147483648^k)<(-2147483648^h)?1:0;if(b>=d){for(;g(-2147483648^k)?-1:0;var r=h;h=r>>31;r=n+r|0;n=(-2147483648^r)<(-2147483648^n)?1+(k+h|0)|0:k+h|0;f.a[g]=r;h=n;g=1+g|0}for(;g>31,n=c+n|0,c=(-2147483648^n)<(-2147483648^c)?1+d|0:d,f.a[g]=n,h=c,g=1+g|0;return f}function Kn(){}Kn.prototype=new t;Kn.prototype.constructor=Kn; +function Ln(a,b,c){a=b.Ka;var d=c.Ka,f=b.jb,g=c.jb;if(0===a)return c;if(0===d)return b;if(2===(f+g|0)){b=b.Aa.a[0];c=c.Aa.a[0];if(a===d)return d=b+c|0,c=(-2147483648^d)<(-2147483648^b)?1:0,0===c?Mn(a,d):dn(a,2,new eb(new Int32Array([d,c])));d=hn();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 Nn(d,new p(a,c))}if(a===d)d=f>=g?In(b.Aa,f,c.Aa,g):In(c.Aa,g,b.Aa,f);else{var h=f!==g?f>g?1:-1:On(0,b.Aa,c.Aa,f);if(0===h)return hn().zl;1=== +h?d=Jn(b.Aa,f,c.Aa,g):(c=Jn(c.Aa,g,b.Aa,f),a=d,d=c)}a=dn(a|0,d.a.length,d);en(a);return a}function On(a,b,c,d){for(a=-1+d|0;0<=a&&b.a[a]===c.a[a];)a=-1+a|0;return 0>a?0:(-2147483648^b.a[a])<(-2147483648^c.a[a])?-1:1} +function Pn(a,b,c){var d=b.Ka;a=c.Ka;var f=b.jb,g=c.jb;if(0===a)return b;if(0===d)return Qn(c);if(2===(f+g|0))return b=b.Aa.a[0],f=0,c=c.Aa.a[0],g=0,0>d&&(d=b,b=-d|0,f=0!==d?~f:-f|0),0>a&&(a=c,d=g,c=-a|0,g=0!==a?~d:-d|0),a=hn(),d=b,b=f,f=g,c=d-c|0,Nn(a,new p(c,(-2147483648^c)>(-2147483648^d)?-1+(b-f|0)|0:b-f|0));var h=f!==g?f>g?1:-1:On(Rn(),b.Aa,c.Aa,f);if(d===a&&0===h)return hn().zl;-1===h?(c=d===a?Jn(c.Aa,g,b.Aa,f):In(c.Aa,g,b.Aa,f),a=-a|0):d===a?(c=Jn(b.Aa,f,c.Aa,g),a=d):(c=In(b.Aa,f,c.Aa,g),a= +d);a=dn(a|0,c.a.length,c);en(a);return a}Kn.prototype.$classData=v({Kea:0},!1,"java.math.Elementary$",{Kea:1,b:1});var Sn;function Rn(){Sn||(Sn=new Kn);return Sn}function Tn(a,b){this.Al=a;this.Qt=b}Tn.prototype=new t;Tn.prototype.constructor=Tn;Tn.prototype.c=function(a){return a instanceof Tn?this.Al===a.Al?this.Qt===a.Qt:!1:!1};Tn.prototype.v=function(){return this.Al<<3|this.Qt.aj};Tn.prototype.g=function(){return"precision\x3d"+this.Al+" roundingMode\x3d"+this.Qt}; +Tn.prototype.$classData=v({Lea:0},!1,"java.math.MathContext",{Lea:1,b:1});function Un(){this.iS=null;Vn=this;Wn();var a=Xn().Zw;this.iS=new Tn(34,a);Wn();Xn();Wn();Xn();Wn();Xn()}Un.prototype=new t;Un.prototype.constructor=Un;Un.prototype.$classData=v({Mea:0},!1,"java.math.MathContext$",{Mea:1,b:1});var Vn;function Wn(){Vn||(Vn=new Un);return Vn} +function Yn(a,b,c,d){for(var f,g=f=0;g>>16|0;var r=65535&d,u=d>>>16|0,w=l(n,r);r=l(k,r);var y=l(n,u);n=w+((r+y|0)<<16)|0;w=(w>>>16|0)+y|0;k=(l(k,u)+(w>>>16|0)|0)+(((65535&w)+r|0)>>>16|0)|0;f=n+f|0;k=(-2147483648^f)<(-2147483648^n)?1+k|0:k;a.a[h]=f;f=k;g=1+g|0}return f}function Zn(a,b){$n();if(0c;){var d=c;if(18>=d){vn().ao.a[d]=Nn(hn(),new p(b,a));var f=vn().bo,g=hn(),h=a,k=b;f.a[d]=Nn(g,new p(0===(32&d)?k<>>1|0)>>>(31-d|0)|0|h<>>16|0;d=l(5,65535&d);f=l(5,b);b=d+(f<<16)|0;d=(d>>>16|0)+f|0;a=l(5,a)+(d>>>16|0)|0}else vn().ao.a[d]=co(vn().ao.a[-1+d|0],vn().ao.a[1]),vn().bo.a[d]=co(vn().bo.a[-1+d|0],hn().yl);c= +1+c|0}}ao.prototype=new t;ao.prototype.constructor=ao; +function eo(a,b,c){for(var d,f=0;f>>16|0;var y=65535&r;r=r>>>16|0;var K=l(w,y);y=l(n,y);var U=l(w,r);w=K+((y+U|0)<<16)|0;K=(K>>>16|0)+U|0;n=(l(n,r)+(K>>>16|0)|0)+(((65535&K)+y|0)>>>16|0)|0;u=w+u|0;n=(-2147483648^u)<(-2147483648^w)?1+n|0:n;d=u+d|0;u=(-2147483648^d)<(-2147483648^u)?1+n|0:n;c.a[g+k|0]=d;d=u;h=1+h|0}c.a[g+b|0]=d;f=1+f|0}fn(ln(),c,c,b<<1);for(g=f=d=0;f>>16|0,w=65535&u,u=u>>>16|0,r=l(n,w),w=l(d,w),K=l(n,u),n=r+((w+K|0)<<16)|0,r=(r>>>16|0)+K|0,d=(l(d,u)+(r>>>16|0)|0)+(((65535&r)+w|0)>>>16|0)|0,k=n+k|0,d=(-2147483648^k)<(-2147483648^n)?1+d|0:d,h=k+h|0,k=(-2147483648^h)<(-2147483648^k)?1+d|0:d,c.a[g]=h,g=1+g|0,h=k+c.a[g]|0,k=(-2147483648^h)<(-2147483648^k)?1:0,c.a[g]=h,d=k,f=1+f|0,g=1+g|0;return c} +function fo(a,b,c){if(c.jb>b.jb)var d=c;else d=b,b=c;var f=d,g=b;if(63>g.jb){d=f.jb;b=g.jb;c=d+b|0;a=f.Ka!==g.Ka?-1:1;if(2===c){d=f.Aa.a[0];b=g.Aa.a[0];c=65535&d;d=d>>>16|0;g=65535&b;b=b>>>16|0;f=l(c,g);g=l(d,g);var h=l(c,b);c=f+((g+h|0)<<16)|0;f=(f>>>16|0)+h|0;d=(l(d,b)+(f>>>16|0)|0)+(((65535&f)+g|0)>>>16|0)|0;a=0===d?Mn(a,c):dn(a,2,new eb(new Int32Array([c,d])))}else{f=f.Aa;g=g.Aa;h=new eb(c);if(0!==d&&0!==b)if(1===d)h.a[b]=Yn(h,g,b,f.a[0]);else if(1===b)h.a[d]=Yn(h,f,d,g.a[0]);else if(f===g&&d=== +b)eo(f,d,h);else for(var k=0;k>>16|0,Ba=65535&K;K=K>>>16|0;var ka=l(Z,Ba);Ba=l(ra,Ba);var Ca=l(Z,K);Z=ka+((Ba+Ca|0)<<16)|0;ka=(ka>>>16|0)+Ca|0;ra=(l(ra,K)+(ka>>>16|0)|0)+(((65535&ka)+Ba|0)>>>16|0)|0;U=Z+U|0;ra=(-2147483648^U)<(-2147483648^Z)?1+ra|0:ra;r=U+r|0;U=(-2147483648^r)<(-2147483648^U)?1+ra|0:ra;h.a[n+y|0]=r;r=U;w=1+w|0}h.a[n+b|0]=r;k=1+k|0}a=dn(a,c,h);en(a)}return a}d=(-2&f.jb)<<4;c=go(f, +d);h=go(g,d);b=ho(c,d);k=Pn(Rn(),f,b);b=ho(h,d);g=Pn(Rn(),g,b);f=fo(a,c,h);b=fo(a,k,g);a=fo(a,Pn(Rn(),c,k),Pn(Rn(),g,h));c=f;a=Ln(Rn(),a,c);a=Ln(Rn(),a,b);a=ho(a,d);d=f=ho(f,d<<1);a=Ln(Rn(),d,a);return Ln(Rn(),a,b)} +function io(a,b){var c=a.bo.a.length,d=c>>31,f=b.o;if(f===d?(-2147483648^b.k)<(-2147483648^c):f=(-2147483648^b.k):0>c)return jo(hn().yl,b.k);c=b.o;if(0===c?-1>=(-2147483648^b.k):0>c)return ho(jo(a.ao.a[1],b.k),b.k);var g=jo(a.ao.a[1],2147483647);c=g;f=b.o;var h=-2147483647+b.k|0;d=h;h=1>(-2147483648^h)?f:-1+f|0;for(f=ko(Aa(),b.k,b.o,2147483647,0);;){var k=d,n=h;if(0===n?-1<(-2147483648^k):0(-2147483648^d)?h:-1+h|0; +else break}c=co(c,jo(a.ao.a[1],f));c=ho(c,2147483647);a=b.o;d=b=-2147483647+b.k|0;for(h=1>(-2147483648^b)?a:-1+a|0;;)if(b=d,a=h,0===a?-1<(-2147483648^b):0(-2147483648^a)?b:-1+b|0,d=a,h=b;else break;return ho(c,f)}ao.prototype.$classData=v({Nea:0},!1,"java.math.Multiplication$",{Nea:1,b:1});var bo;function vn(){bo||(bo=new ao);return bo}function lo(a,b){a.eh=b;a.pa=a.eh;a.S=0;a.Gj=-1}function mo(){this.Gj=this.S=this.pa=this.eh=0}mo.prototype=new t; +mo.prototype.constructor=mo;function no(){}no.prototype=mo.prototype;mo.prototype.Ba=function(a){if(0>a||a>this.pa)throw oo();this.S=a;this.Gj>a&&(this.Gj=-1)};mo.prototype.qI=function(a){if(0>a||a>this.eh)throw oo();this.pa=a;this.S>a&&(this.S=a,this.Gj>a&&(this.Gj=-1))};mo.prototype.PB=function(){this.Gj=-1;this.pa=this.S;this.S=0};mo.prototype.g=function(){return va(this)+"[pos\x3d"+this.S+" lim\x3d"+this.pa+" cap\x3d"+this.eh+"]"};function po(){}po.prototype=new t;po.prototype.constructor=po; +function qo(a){ro||(ro=new po);a=new cb(a);var b=a.a.length;return so(to(),a,a.a.length,b)}po.prototype.$classData=v({Sea:0},!1,"java.nio.ByteBuffer$",{Sea:1,b:1});var ro;function uo(){}uo.prototype=new t;uo.prototype.constructor=uo;function vo(a){wo();a=new bb(a);var b=a.a.length,c=a.a.length;if(0>c||c>a.a.length)throw xo();if(0>b||b>c)throw xo();return new yo(c,a,0,0,b,!1)} +function zo(a,b,c){Ao||(Ao=new Bo);a=La(b);c=c-0|0;if(0>a||(0+a|0)>La(b))throw xo();var d=0+c|0;if(0>c||d>a)throw xo();return new Co(a,b,0,0,d)}uo.prototype.$classData=v({Uea:0},!1,"java.nio.CharBuffer$",{Uea:1,b:1});var Do;function wo(){Do||(Do=new uo);return Do}function Eo(){}Eo.prototype=new t;Eo.prototype.constructor=Eo;function so(a,b,c,d){if(0>c||(0+c|0)>b.a.length)throw xo();a=0+d|0;if(0>d||a>c)throw xo();return new Fo(c,b,0,0,a,!1)} +Eo.prototype.$classData=v({Wea:0},!1,"java.nio.HeapByteBuffer$",{Wea:1,b:1});var Go;function to(){Go||(Go=new Eo);return Go}function Bo(){}Bo.prototype=new t;Bo.prototype.constructor=Bo;Bo.prototype.$classData=v({$ea:0},!1,"java.nio.StringCharBuffer$",{$ea:1,b:1});var Ao;function Ho(){this.kS=null;this.dG=!1}Ho.prototype=new t;Ho.prototype.constructor=Ho; +function Io(a,b){if(!a.dG&&!a.dG){var c={};Jo||(Jo=new Ko);var d=Jo;Lo||(Lo=new Mo);var f=Lo;var g=No();Oo||(Oo=new Po);var h=Oo;Qo||(Qo=new Ro);var k=Qo;So||(So=new To);d=[d,f,g,h,k,So];f=d.length|0;for(g=0;gb.pa)throw new fp;b.S=h;mo.prototype.Ba.call(a,c);h=a.xf;if(null!==h)h.Z(a.Jg+d|0,b.xf,b.Jg+g|0,f);else for(;d!==c;)b.xf.a[b.Jg+g|0]=a.xf.a[a.Jg+d|0],d=1+d|0,g=1+g|0;return b}function gp(a,b,c,d,f){a.QA=b;a.bx=c;a.PA=d;a.Xt=f;a.Wt=ap().Nq;a.Yt=ap().Nq;a.Cl=0} +function hp(){this.QA=null;this.PA=this.bx=0;this.Yt=this.Wt=this.Xt=null;this.Cl=0}hp.prototype=new t;hp.prototype.constructor=hp;function ip(){}ip.prototype=hp.prototype;hp.prototype.Tx=function(){};function jp(a,b){this.Nf=a;this.$t=b}jp.prototype=new t;jp.prototype.constructor=jp;function kp(a){var b=a.Nf;switch(b){case 1:throw new fp;case 0:throw new lp;case 2:throw new mp(a.$t);case 3:throw new np(a.$t);default:throw new B(b);}} +jp.prototype.$classData=v({dfa:0},!1,"java.nio.charset.CoderResult",{dfa:1,b:1});function op(){this.fG=this.eG=this.gG=this.RA=this.Lq=this.Zt=this.xe=this.Md=this.we=null;pp=this;this.we=new jp(1,-1);this.Md=new jp(0,-1);this.xe=new jp(2,1);this.Zt=new jp(2,2);this.Lq=new jp(2,3);this.RA=new jp(2,4);this.gG=[];this.eG=new jp(3,1);this.fG=new jp(3,2)}op.prototype=new t;op.prototype.constructor=op;function qp(a,b){a=a.gG[b];return void 0===a?(a=new jp(2,b),rp().gG[b]=a):a} +op.prototype.$classData=v({efa:0},!1,"java.nio.charset.CoderResult$",{efa:1,b:1});var pp;function rp(){pp||(pp=new op);return pp}function sp(a){this.hfa=a}sp.prototype=new t;sp.prototype.constructor=sp;sp.prototype.g=function(){return this.hfa};sp.prototype.$classData=v({ffa:0},!1,"java.nio.charset.CodingErrorAction",{ffa:1,b:1});function tp(){this.Nq=this.Mq=this.hG=null;up=this;this.hG=new sp("IGNORE");this.Mq=new sp("REPLACE");this.Nq=new sp("REPORT")}tp.prototype=new t; +tp.prototype.constructor=tp;tp.prototype.$classData=v({gfa:0},!1,"java.nio.charset.CodingErrorAction$",{gfa:1,b:1});var up;function ap(){up||(up=new tp);return up}function vp(){}vp.prototype=new t;vp.prototype.constructor=vp;function wp(a,b){$n();var c=xp(),d=b.a.length;16=f||g.uf(Op(Pp(),b,n),Op(Pp(),b,r)))?(Qp(Pp(),c,a,Op(Pp(),b,n)),n=1+n|0):(Qp(Pp(),c,a,Op(Pp(),b,r)),r=1+r|0),a=1+a|0;c.Z(d,b,d,h)}else zp(b,d,f,g)} +function zp(a,b,c,d){c=c-b|0;if(2<=c){if(0d.$(g,Op(Pp(),a,-1+(b+f|0)|0))){for(var h=b,k=-1+(b+f|0)|0;1<(k-h|0);){var n=(h+k|0)>>>1|0;0>d.$(g,Op(Pp(),a,n))?k=n:h=n}h=h+(0>d.$(g,Op(Pp(),a,h))?0:1)|0;for(k=b+f|0;k>h;)Qp(Pp(),a,k,Op(Pp(),a,-1+k|0)),k=-1+k|0;Qp(Pp(),a,h,g)}f=1+f|0}}} +function Mp(a,b,c,d,f,g){var h=f-d|0;if(16=f||g.uf(b.a[n],b.a[r]))?(c.a[a]=b.a[n],n=1+n|0):(c.a[a]=b.a[r],r=1+r|0),a=1+a|0;c.Z(d,b,d,h)}else Np(b,d,f,g)} +function Np(a,b,c,d){c=c-b|0;if(2<=c){if(0d.$(g,a.a[-1+(b+f|0)|0])){for(var h=b,k=-1+(b+f|0)|0;1<(k-h|0);){var n=(h+k|0)>>>1|0;0>d.$(g,a.a[n])?k=n:h=n}h=h+(0>d.$(g,a.a[h])?0:1)|0;for(k=b+f|0;k>h;)a.a[k]=a.a[-1+k|0],k=-1+k|0;a.a[h]=g}f=1+f|0}}}function eq(a,b,c){a=0;for(var d=b.a.length;;){if(a===d)return-1-a|0;var f=(a+d|0)>>>1|0,g=b.a[f];if(cc)throw new rq;var d=b.a.length;d=cc)throw new rq;d=b.a.length;d=cc)throw new rq;a=b.a.length;a=cc)throw new rq;a=b.a.length;a=cc)throw new rq;a=b.a.length;a=cc)throw new rq;a=b.a.length;a=cc)throw new rq;a=b.a.length;a=cc)throw new rq;a=b.a.length;a=cd)throw Hq(c+" \x3e "+d);d=d-c|0;var f=b.a.length-c|0;f=d=b)return"00000000000000000000".substring(0,b);for(a="";20b)return new Qq(a.wo,"0",0);if(b>=d)return a;if(53>(65535&(c.charCodeAt(b)|0)))return 0===b?new Qq(a.wo,"0",0):new Qq(a.wo,c.substring(0,b),a.Hl-(d-b|0)|0);for(b=-1+b|0;;)if(0<=b&&57===(65535&(c.charCodeAt(b)|0)))b=-1+b|0;else break;c=0>b?"1":""+c.substring(0,b)+q(65535&(1+(65535&(c.charCodeAt(b)|0))|0));return new Qq(a.wo,c,a.Hl-(d-(1+b|0)|0)|0)}function Qq(a,b,c){this.wo=a;this.Il=b;this.Hl=c}Qq.prototype=new t;Qq.prototype.constructor=Qq; +function Rq(a,b){Oq();if(!(0k=>{kr(k,h)})(a,b);b=c.a.length;var d=0;if(null!==c)for(;dd=>null!==d)(a))),new C(((d,f)=>g=>{if(null!==g)return g=g.Ea(),0<=(g.length|0)&&g.substring(0,f.length|0)===f;throw new B(g);})(a,c)))).Fa(new C(((d,f,g)=>h=>{if(null!==h){h=h.xa();var k=h.Mu;null===k?k=!0:(k=k.LU,k=!(0<=(k.length|0)&&k.substring(0,f.length|0)===f));k&&(h.Mu=g)}else throw new B(h);})(a,c,b)))} +function nr(){this.KU=this.yC=this.JU=null;or=this;this.JU=cr().dI;this.yC=pr().Bc();var a=qr(this,"");a.Ll=this.JU;a.zC=!1;this.KU=a;qr(this,"global")}nr.prototype=new t;nr.prototype.constructor=nr; +function qr(a,b){if(null===b)throw $q("Logger name cannot be null");return a.yC.QB(b,new Yc(((c,d)=>()=>{var f=rr(),g=new ir(d,null);g.Ll=null;g.zC=!0;var h;a:for(h=d;;){var k=h;if(null===k){h=f.KU;break a}if(""===k){h=null;break a}k=h;h=sr(h);h=k.substring(0,0b)switch(b){case 94:case 36:case 92:case 46:case 42:case 43:case 63:case 40:case 41:case 91:case 93:case 123:case 125:case 124:return"\\"+c;default:return 2!==(66&a.md)?c:65<=b&&90>=b?"["+c+yr(zr(),32+b|0)+"]":97<=b&&122>=b?"["+yr(zr(),-32+b|0)+c+"]":c}else return 56320===(-1024&b)?"(?:"+c+")":c} +function Ar(a){for(var b=a.Df,c=b.length|0;;){if(a.E!==c)switch(65535&(b.charCodeAt(a.E)|0)){case 32:case 9:case 10:case 11:case 12:case 13:a.E=1+a.E|0;continue;case 35:Br(a);continue}break}} +function dba(a,b,c){var d=a.Df,f=d.length|0,g=a.E,h=g===f?46:65535&(d.charCodeAt(g)|0);if(63===h||42===h||43===h||123===h){g=a.Df;var k=a.E;a.E=1+a.E|0;if(123===h){h=g.length|0;if(a.E===h)var n=!0;else n=65535&(g.charCodeAt(a.E)|0),n=!(48<=n&&57>=n);for(n&&tr(a,"Illegal repetition");;)if(a.E!==h?(n=65535&(g.charCodeAt(a.E)|0),n=48<=n&&57>=n):n=!1,n)a.E=1+a.E|0;else break;a.E===h&&tr(a,"Illegal repetition");if(44===(65535&(g.charCodeAt(a.E)|0)))for(a.E=1+a.E|0;;)if(a.E!==h?(n=65535&(g.charCodeAt(a.E)| +0),n=48<=n&&57>=n):n=!1,n)a.E=1+a.E|0;else break;a.E!==h&&125===(65535&(g.charCodeAt(a.E)|0))||tr(a,"Illegal repetition");a.E=1+a.E|0}g=g.substring(k,a.E);if(a.E!==f)switch(65535&(d.charCodeAt(a.E)|0)){case 43:return a.E=1+a.E|0,eba(a,b,c,g);case 63:return a.E=1+a.E|0,""+c+g+"?";default:return""+c+g}else return""+c+g}else return c} +function eba(a,b,c,d){for(var f=a.dj.length|0,g=0;gb&&(a.dj[h]=1+k|0);g=1+g|0}c=c.replace(zr().WU,((n,r)=>(u,w,y)=>{0!==((w.length|0)%2|0)&&(y=parseInt(y,10)|0,u=y>r?""+w+(1+y|0):u);return u})(a,b));a.cj=1+a.cj|0;return"(?:(?\x3d("+c+d+"))\\"+(1+b|0)+")"} +function fba(a){var b=a.Df,c=b.length|0;(1+a.E|0)===c&&tr(a,"\\ at end of pattern");a.E=1+a.E|0;var d=65535&(b.charCodeAt(a.E)|0);switch(d){case 100:case 68:case 104:case 72:case 115:case 83:case 118:case 86:case 119:case 87:case 112:case 80:switch(a=Cr(a,d),b=a.jI,b){case 0:return"\\p{"+a.Ml+"}";case 1:return"\\P{"+a.Ml+"}";case 2:return"["+a.Ml+"]";case 3:return Dr(zr(),a.Ml);default:throw new B(b);}case 98:if("b{g}"===b.substring(a.E,4+a.E|0))tr(a,"\\b{g} is not supported");else if(0!==(320&a.md))Er(a, +"\\b with UNICODE_CASE");else return a.E=1+a.E|0,"\\b";break;case 66:if(0!==(320&a.md))Er(a,"\\B with UNICODE_CASE");else return a.E=1+a.E|0,"\\B";break;case 65:return a.E=1+a.E|0,"(?:^)";case 71:tr(a,"\\G in the middle of a pattern is not supported");break;case 90:return a.E=1+a.E|0,"(?\x3d"+(0!==(1&a.md)?"\n":"(?:\r\n?|[\n\u0085\u2028\u2029])")+"?$)";case 122:return a.E=1+a.E|0,"(?:$)";case 82:return a.E=1+a.E|0,"(?:\r\n|[\n-\r\u0085\u2028\u2029])";case 88:tr(a,"\\X is not supported");break;case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:var f= +a.E;for(d=1+f|0;;){if(d!==c){var g=65535&(b.charCodeAt(d)|0);g=48<=g&&57>=g}else g=!1;g?(g=b.substring(f,1+d|0),g=(parseInt(g,10)|0)<=(-1+(a.dj.length|0)|0)):g=!1;if(g)d=1+d|0;else break}b=b.substring(f,d);b=parseInt(b,10)|0;b>(-1+(a.dj.length|0)|0)&&tr(a,"numbered capturing group \x3c"+b+"\x3e does not exist");b=a.dj[b]|0;a.E=d;return"(?:\\"+b+")";case 107:a.E=1+a.E|0;a.E!==c&&60===(65535&(b.charCodeAt(a.E)|0))||tr(a,"\\k is not followed by '\x3c' for named capturing group");a.E=1+a.E|0;b=Fr(a); +d=a.CC;d=Uo().ns.call(d,b)?new Ze(d[b]):E();if(!(d instanceof Ze))throw E()===d&&tr(a,"named capturing group \x3c"+b+"\x3e does not exit"),new B(d);b=a.dj[d.Sb|0]|0;a.E=1+a.E|0;return"(?:\\"+b+")";case 81:d=1+a.E|0;c=b.indexOf("\\E",d)|0;if(0>c)return a.E=b.length|0,vr(a,b.substring(d));a.E=2+c|0;return vr(a,b.substring(d,c));default:return xr(a,Gr(a))}} +function Gr(a){var b=a.Df,c=wr(b,a.E);switch(c){case 48:return gba(a);case 120:return b=a.Df,c=1+a.E|0,c!==(b.length|0)&&123===(65535&(b.charCodeAt(c)|0))?(c=1+c|0,b=b.indexOf("}",c)|0,0>b&&tr(a,"Unclosed hexadecimal escape sequence"),c=Hr(a,c,b,"hexadecimal"),a.E=1+b|0,a=c):(b=Hr(a,c,2+c|0,"hexadecimal"),a.E=2+c|0,a=b),a;case 117:a:{b=a.Df;var d=1+a.E|0;c=4+d|0;d=Hr(a,d,c,"Unicode");a.E=c;var f=2+c|0,g=4+f|0;if(55296===(-1024&d)&&"\\u"===b.substring(c,f)&&(b=Hr(a,f,g,"Unicode"),56320===(-1024&b))){a.E= +g;a=(64+(1023&d)|0)<<10|1023&b;break a}a=d}return a;case 78:tr(a,"\\N is not supported");break;case 97:return a.E=1+a.E|0,7;case 116:return a.E=1+a.E|0,9;case 110:return a.E=1+a.E|0,10;case 102:return a.E=1+a.E|0,12;case 114:return a.E=1+a.E|0,13;case 101:return a.E=1+a.E|0,27;case 99:return a.E=1+a.E|0,a.E===(b.length|0)&&tr(a,"Illegal control escape sequence"),b=wr(b,a.E),a.E=a.E+(65536<=b?2:1)|0,64^b;default:return(65<=c&&90>=c||97<=c&&122>=c)&&tr(a,"Illegal/unsupported escape sequence"),a.E=a.E+ +(65536<=c?2:1)|0,c}}function gba(a){var b=a.Df,c=b.length|0,d=a.E,f=(1+d|0)f||7g||7b||7g)&&tr(a,"Illegal "+d+" escape sequence");for(g=b;g=h||65<=h&&70>=h||97<=h&&102>=h||tr(a,"Illegal "+d+" escape sequence");g=1+g|0}6<(c-b|0)?b=1114112:(b=f.substring(b,c),b=parseInt(b,16)|0);1114111f&&tr(a,"Unclosed character family");a.E=f;c=c.substring(d,f)}else c=c.substring(d,1+d|0);d=zr().mI;Uo().ns.call(d,c)||Er(a,"Unicode character family");c=2!==(66& +a.md)||"Lower"!==c&&"Upper"!==c?c:"Alpha";d=zr().mI;if(!Uo().ns.call(d,c))throw Ir("key not found: "+c);c=d[c];a.E=1+a.E|0;a=c;break;default:throw new B(q(b));}97<=b?b=a:a.iI?b=a.kI:(b=a,b.iI||(b.kI=new Jr(1^b.jI,b.Ml),b.iI=!0),b=b.kI);return b} +var iba=function hba(a){var c=a.Df,d=c.length|0;a.E=1+a.E|0;var f=a.E!==d?94===(65535&(c.charCodeAt(a.E)|0)):!1;f&&(a.E=1+a.E|0);for(f=new Kr(2===(66&a.md),f);a.E!==d;){var g=wr(c,a.E);a:{switch(g){case 93:return a.E=1+a.E|0,a=f,c=Lr(a),""===a.BC?c:"(?:"+a.BC+c+")";case 38:a.E=1+a.E|0;if(a.E!==d&&38===(65535&(c.charCodeAt(a.E)|0))){a.E=1+a.E|0;g=f;var h=Lr(g);g.BC+=g.PU?h+"|":"(?\x3d"+h+")";g.yi="";g.Ae=""}else Mr(a,38,d,c,f);break a;case 91:g=hba(a);f.yi=""===f.yi?g:f.yi+"|"+g;break a;case 92:a.E= +1+a.E|0;a.E===d&&tr(a,"Illegal escape sequence");h=65535&(c.charCodeAt(a.E)|0);switch(h){case 100:case 68:case 104:case 72:case 115:case 83:case 118:case 86:case 119:case 87:case 112:case 80:g=f;h=Cr(a,h);var k=h.jI;switch(k){case 0:g.Ae=g.Ae+("\\p{"+h.Ml)+"}";break;case 1:g.Ae=g.Ae+("\\P{"+h.Ml)+"}";break;case 2:g.Ae=""+g.Ae+h.Ml;break;case 3:h=Dr(zr(),h.Ml);g.yi=""===g.yi?h:g.yi+"|"+h;break;default:throw new B(k);}break;case 81:a.E=1+a.E|0;g=c.indexOf("\\E",a.E)|0;0>g&&tr(a,"Unclosed character class"); +h=f;k=c;for(var n=g,r=a.E;r!==n;){var u=wr(k,r);Nr(h,u);r=r+(65536<=u?2:1)|0}a.E=2+g|0;break;default:Mr(a,Gr(a),d,c,f)}break a;case 32:case 9:case 10:case 11:case 12:case 13:if(0!==(4&a.md))a.E=1+a.E|0;else break;break a;case 35:if(0!==(4&a.md)){Br(a);break a}}a.E=a.E+(65536<=g?2:1)|0;Mr(a,g,d,c,f)}}tr(a,"Unclosed character class")}; +function jba(a){var b=a.Df,c=b.length|0,d=a.E;if((1+d|0)===c||63!==(65535&(b.charCodeAt(1+d|0)|0)))return a.E=1+d|0,a.cj=1+a.cj|0,a.dj.push(a.cj),"("+Or(a,!0)+")";(2+d|0)===c&&tr(a,"Unclosed group");var f=65535&(b.charCodeAt(2+d|0)|0);if(58===f||61===f||33===f)return a.E=3+d|0,""+b.substring(d,3+d|0)+Or(a,!0)+")";if(60===f){(3+d|0)===c&&tr(a,"Unclosed group");b=65535&(b.charCodeAt(3+d|0)|0);if(65<=b&&90>=b||97<=b&&122>=b)return a.E=3+d|0,d=Fr(a),b=a.CC,Uo().ns.call(b,d)&&tr(a,"named capturing group \x3c"+ +d+"\x3e is already defined"),a.cj=1+a.cj|0,a.dj.push(a.cj),a.CC[d]=-1+(a.dj.length|0)|0,a.E=1+a.E|0,"("+Or(a,!0)+")";61!==b&&33!==b&&tr(a,"Unknown look-behind group");Er(a,"Look-behind group")}else{if(62===f)return a.E=3+d|0,a.cj=1+a.cj|0,d=a.cj,"(?:(?\x3d("+Or(a,!0)+"))\\"+d+")";tr(a,"Embedded flag expression in the middle of a pattern is not supported")}} +function Fr(a){for(var b=a.Df,c=b.length|0,d=a.E;;){if(a.E!==c){var f=65535&(b.charCodeAt(a.E)|0);f=65<=f&&90>=f||97<=f&&122>=f||48<=f&&57>=f}else f=!1;if(f)a.E=1+a.E|0;else break}a.E!==c&&62===(65535&(b.charCodeAt(a.E)|0))||tr(a,"named capturing group is missing trailing '\x3e'");return b.substring(d,a.E)} +function Mr(a,b,c,d,f){0!==(4&a.md)&&Ar(a);a.E!==c&&45===(65535&(d.charCodeAt(a.E)|0))?(a.E=1+a.E|0,0!==(4&a.md)&&Ar(a),a.E===c&&tr(a,"Unclosed character class"),c=wr(d,a.E),91===c||93===c?(Nr(f,b),Nr(f,45)):(a.E=a.E+(65536<=c?2:1)|0,c=92===c?Gr(a):c,cc?c:90,a<=d&&(d=32+d|0,f.Ae+=Pr(32+a|0)+"-"+Pr(d)),b=97c?c:122,b<=c&&(c=-32+c|0,f.Ae+=Pr(-32+b|0)+"-"+Pr(c))))):Nr(f,b)} +function Qr(a,b){this.Df=a;this.md=b;this.nI=!1;this.cj=this.E=0;this.dj=[0];this.CC={}}Qr.prototype=new t;Qr.prototype.constructor=Qr;function Er(a,b){tr(a,b+" is not supported because it requires RegExp features of ECMAScript 2018.\nIf you only target environments with ES2018+, you can enable ES2018 features with\n scalaJSLinkerConfig ~\x3d { _.withESFeatures(_.withESVersion(ESVersion.ES2018)) }\nor an equivalent configuration depending on your build tool.")} +function Or(a,b){for(var c=a.Df,d=c.length|0,f="";a.E!==d;){var g=wr(c,a.E);a:{switch(g){case 41:return b||tr(a,"Unmatched closing ')'"),a.E=1+a.E|0,f;case 124:a.nI&&!b&&tr(a,"\\G is not supported when there is an alternative at the top level");a.E=1+a.E|0;f+="|";break a;case 32:case 9:case 10:case 11:case 12:case 13:if(0!==(4&a.md))a.E=1+a.E|0;else break;break a;case 35:if(0!==(4&a.md))Br(a);else break;break a;case 63:case 42:case 43:case 123:tr(a,"Dangling meta character '"+yr(zr(),g)+"'")}var h= +a.cj;switch(g){case 92:g=fba(a);break;case 91:g=iba(a);break;case 40:g=jba(a);break;case 94:a.E=1+a.E|0;g="(?:^)";break;case 36:a.E=1+a.E|0;g="(?:$)";break;case 46:a.E=1+a.E|0;g=0!==(32&a.md)?"":0!==(1&a.md)?"\n":"\n\r\u0085\u2028\u2029";g=Dr(zr(),g);break;default:a.E=a.E+(65536<=g?2:1)|0,g=xr(a,g)}f=""+f+dba(a,h,g)}}b&&tr(a,"Unclosed group");return f} +function Br(a){for(var b=a.Df,c=b.length|0;;){if(a.E!==c){var d=65535&(b.charCodeAt(a.E)|0);d=!(10===d||13===d||133===d||8232===d||8233===d)}else d=!1;if(d)a.E=1+a.E|0;else break}}Qr.prototype.$classData=v({Ula:0},!1,"java.util.regex.PatternCompiler",{Ula:1,b:1});function Rr(a){try{return RegExp("",a),!0}catch(b){if(Sr(J(),b)instanceof Tr)return!1;throw b;}} +function Ur(){this.WU=this.VU=null;this.lI=!1;this.mI=this.SU=this.UU=this.RU=this.TU=this.QU=null;Vr=this;this.VU=RegExp("^\\(\\?([idmsuxU]*)(?:-([idmsuxU]*))?\\)");this.WU=RegExp("(\\\\+)(\\d+)","g");this.lI=Rr("us");Rr("d");this.QU=new Jr(2,"0-9");this.TU=new Jr(2,"\t \u00a0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000");this.RU=new Jr(2,"\t-\r ");this.UU=new Jr(2,"\n-\r\u0085\u2028\u2029");this.SU=new Jr(2,"a-zA-Z_0-9");var a=Af(new Bf,[G(new H,"Lower",new Jr(2,"a-z")),G(new H,"Upper",new Jr(2, +"A-Z")),G(new H,"ASCII",new Jr(2,"\x00-\u007f")),G(new H,"Alpha",new Jr(2,"A-Za-z")),G(new H,"Digit",new Jr(2,"0-9")),G(new H,"Alnum",new Jr(2,"0-9A-Za-z")),G(new H,"Punct",new Jr(2,"!-/:-@[-`{-~")),G(new H,"Graph",new Jr(2,"!-~")),G(new H,"Print",new Jr(2," -~")),G(new H,"Blank",new Jr(2,"\t ")),G(new H,"Cntrl",new Jr(2,"\x00-\u001f\u007f")),G(new H,"XDigit",new Jr(2,"0-9A-Fa-f")),G(new H,"Space",new Jr(2,"\t-\r "))]);this.mI=Lg(Mg(),a)}Ur.prototype=new t;Ur.prototype.constructor=Ur; +function gl(a){zr();a=new Qr(a,0);0!==(256&a.md)&&(a.md|=64);var b=0!==(16&a.md);if(!b){var c=zr().VU.exec(a.Df);if(null!==c){var d=c[1];if(void 0!==d)for(var f=d.length|0,g=0;g=b?a.Ae=""+a.Ae+yr(zr(),32+b|0):97<=b&&122>=b&&(a.Ae=""+a.Ae+yr(zr(),-32+b|0)))}Kr.prototype.$classData=v({Wla:0},!1,"java.util.regex.PatternCompiler$CharacterClassBuilder",{Wla:1,b:1}); +function Jr(a,b){this.kI=null;this.iI=!1;this.jI=a;this.Ml=b}Jr.prototype=new t;Jr.prototype.constructor=Jr;Jr.prototype.$classData=v({Xla:0},!1,"java.util.regex.PatternCompiler$CompiledCharClass",{Xla:1,b:1});function Yr(){this.rS=this.sS=null;this.co=0}Yr.prototype=new t;Yr.prototype.constructor=Yr;Yr.prototype.$classData=v({Afa:0},!1,"org.scalajs.dom.package$",{Afa:1,b:1});var Zr;function p(a,b){this.k=a;this.o=b}p.prototype=new t;p.prototype.constructor=p;e=p.prototype; +e.c=function(a){return a instanceof p?this.k===a.k&&this.o===a.o:!1};e.v=function(){return this.k^this.o};e.g=function(){return $r(Aa(),this.k,this.o)};e.nX=function(){return this.k};e.yu=function(){return this.k<<24>>24};e.Gv=function(){return this.k<<16>>16};e.eg=function(){return this.k};e.fg=function(){return Ga(this)};e.no=function(){return as(Aa(),this.k,this.o)};e.Yi=function(){return bs(Aa(),this.k,this.o)};e.ih=function(a){return za(Aa(),this.k,this.o,a.k,a.o)}; +e.$classData=v({qja:0},!1,"org.scalajs.linker.runtime.RuntimeLong",{qja:1,b:1});function cs(a,b,c){return 0===(-2097152&c)?""+(4294967296*c+ +(b>>>0)):ds(a,b,c,1E9,0,2)}function es(a,b,c,d,f){return 0===(-2097152&c)?0===(-2097152&f)?(c=(4294967296*c+ +(b>>>0))/(4294967296*f+ +(d>>>0)),a.za=c/4294967296|0,c|0):a.za=0:0===f&&0===(d&(-1+d|0))?(d=31-ea(d)|0,a.za=c>>>d|0,b>>>d|0|c<<1<<(31-d|0)):0===d&&0===(f&(-1+f|0))?(b=31-ea(f)|0,a.za=0,c>>>b|0):ds(a,b,c,d,f,0)|0} +function ds(a,b,c,d,f,g){var h=(0!==f?ea(f):32+ea(d)|0)-(0!==c?ea(c):32+ea(b)|0)|0,k=h,n=0===(32&k)?d<>>1|0)>>>(31-k|0)|0|f<=(-2147483648^K):(-2147483648^y)>=(-2147483648^U))w=u,y=r,u=k-n|0,w=(-2147483648^u)>(-2147483648^k)?-1+(w-y|0)|0:w-y|0,k=u,u=w,32>h?c|=1<>>1|0;n=n>>>1|0|r<<31;r=w}h=u;if(h===f?(-2147483648^k)>=(-2147483648^d):(-2147483648^h)>=(-2147483648^ +f))h=4294967296*u+ +(k>>>0),d=4294967296*f+ +(d>>>0),1!==g&&(r=h/d,f=r/4294967296|0,n=c,c=r=n+(r|0)|0,b=(-2147483648^r)<(-2147483648^n)?1+(b+f|0)|0:b+f|0),0!==g&&(d=h%d,k=d|0,u=d/4294967296|0);if(0===g)return a.za=b,c;if(1===g)return a.za=u,k;a=""+k;return""+(4294967296*b+ +(c>>>0))+"000000000".substring(a.length|0)+a}function fs(){this.za=0}fs.prototype=new t;fs.prototype.constructor=fs;function $r(a,b,c){return c===b>>31?""+b:0>c?"-"+cs(a,-b|0,0!==b?~c:-c|0):cs(a,b,c)} +function bs(a,b,c){return 0>c?-(4294967296*+((0!==b?~c:-c|0)>>>0)+ +((-b|0)>>>0)):4294967296*c+ +(b>>>0)}function as(a,b,c){0>c?(a=-b|0,b=0!==b?~c:-c|0):(a=b,b=c);b=4294967296*+(b>>>0)+ +((0===(-2097152&b)||0===(65535&a)?a:32768|-65536&a)>>>0);return da(0>c?-b:b)}function gs(a,b){if(-0x7fffffffffffffff>b)return a.za=-2147483648,0;if(0x7fffffffffffffff<=b)return a.za=2147483647,-1;var c=b|0,d=b/4294967296|0;a.za=0>b&&0!==c?-1+d|0:d;return c} +function za(a,b,c,d,f){return c===f?b===d?0:(-2147483648^b)<(-2147483648^d)?-1:1:c>31){if(f===d>>31){if(-2147483648===b&&-1===d)return a.za=0,-2147483648;c=Na(b,d);a.za=c>>31;return c}return-2147483648===b&&-2147483648===d&&0===f?a.za=-1:a.za=0}if(0>c){var g=-b|0;b=0!==b?~c:-c|0}else g=b,b=c;if(0>f){var h=-d|0;d=0!==d?~f:-f|0}else h=d,d=f;g=es(a,g,b,h,d);if(0<=(c^f))return g;c=a.za;a.za=0!==g?~c:-c|0;return-g|0} +function pn(a,b,c,d,f){if(0===(d|f))throw new Oa("/ by zero");return 0===c?0===f?(a.za=0,0===d?Na(0,0):+(b>>>0)/+(d>>>0)|0):a.za=0:es(a,b,c,d,f)} +function ko(a,b,c,d,f){if(0===(d|f))throw new Oa("/ by zero");if(c===b>>31){if(f===d>>31)return-1!==d?(c=Pa(b,d),a.za=c>>31,c):a.za=0;if(-2147483648===b&&-2147483648===d&&0===f)return a.za=0;a.za=c;return b}if(0>c)var g=-b|0,h=0!==b?~c:-c|0;else g=b,h=c;0>f?(b=-d|0,d=0!==d?~f:-f|0):(b=d,d=f);0===(-2097152&h)?0===(-2097152&d)?(b=(4294967296*h+ +(g>>>0))%(4294967296*d+ +(b>>>0)),a.za=b/4294967296|0,b|=0):(a.za=h,b=g):0===d&&0===(b&(-1+b|0))?(a.za=0,b=g&(-1+b|0)):0===b&&0===(d&(-1+d|0))?(a.za=h&(-1+ +d|0),b=g):b=ds(a,g,h,b,d,1)|0;return 0>c?(c=a.za,a.za=0!==b?~c:-c|0,-b|0):b}fs.prototype.$classData=v({rja:0},!1,"org.scalajs.linker.runtime.RuntimeLong$",{rja:1,b:1});var hs;function Aa(){hs||(hs=new fs);return hs}function is(){this.EI=this.ny=null;js=this;new ab(0);new cb(0);new bb(0);new jb(0);new gb(0);this.ny=new eb(0);new fb(0);new db(0);this.EI=new Za(0)}is.prototype=new t;is.prototype.constructor=is;is.prototype.$classData=v({kma:0},!1,"scala.Array$EmptyArrays$",{kma:1,b:1});var js; +function ks(){js||(js=new is);return js}function ls(){}ls.prototype=new t;ls.prototype.constructor=ls;ls.prototype.DC=function(a,b){return ms().DC(a,b)};ls.prototype.$classData=v({lma:0},!1,"scala.Array$UnapplySeqWrapper$",{lma:1,b:1});var ns;function os(){ns||(ns=new ls);return ns}function ps(a,b){return new C(((c,d)=>f=>d.r(c.r(f)))(a,b))}function qs(){this.hV=null}qs.prototype=new t;qs.prototype.constructor=qs;function rs(){}rs.prototype=qs.prototype; +qs.prototype.Bja=function(a){var b=this.hV,c=Uo().ns.call(b,a)?new Ze(b[a]):E();if(c instanceof Ze)return c.Sb;if(E()===c)return c=new ss(a),b[a]=c;throw new B(c);};function ts(){}ts.prototype=new t;ts.prototype.constructor=ts;function us(){}us.prototype=ts.prototype;function vs(){this.zg=this.zr=null;ws=this;this.zr=new C((()=>()=>xs().zr)(this));this.zg=new ys}vs.prototype=new t;vs.prototype.constructor=vs;function zs(a,b){return a.zr===b} +vs.prototype.$classData=v({tma:0},!1,"scala.PartialFunction$",{tma:1,b:1});var ws;function xs(){ws||(ws=new vs);return ws}function As(){}As.prototype=new t;As.prototype.constructor=As;function Bs(a,b){try{return Op(Pp(),b,-1+Cs(Pp(),b)|0)}catch(c){if(c instanceof Ds)throw Ir("last of empty array");throw c;}}function Es(a){return 0===Cs(Pp(),a)?E():new Ze(Bs(ms(),a))}As.prototype.DC=function(a,b){a=Cs(Pp(),a);return a===b?0:aa){if(b instanceof Za)return Gq(F(),b,a,d);if(b instanceof eb){F();$n();if(a>d)throw Hq(a+" \x3e "+d);d=d-a|0;c=b.a.length-a|0;c=dd)throw Hq(a+" \x3e "+d);d=d-a|0;c=b.a.length-a|0;c=dd)throw Hq(a+" \x3e "+d);d=d-a|0;c=b.a.length-a|0;c=dd)throw Hq(a+" \x3e "+d);d=d-a|0;c=b.a.length-a|0;c=dd)throw Hq(a+" \x3e "+d);d=d-a|0;c=b.a.length-a|0;c=dd)throw Hq(a+" \x3e "+d);d=d-a|0;c=b.a.length-a|0;c=dd)throw Hq(a+" \x3e "+d);d=d-a|0;c=b.a.length-a|0;c=dd)throw Hq(a+" \x3e "+d);d=d-a|0;c=b.a.length-a|0;c=d=c)return Js(Pp(),a);if(a instanceof Za)return c=oq(F(),a,c),Jp(F(),c,b),c;if(a instanceof eb){if(b===xp())return c=vq(F(),a,c),wp(F(),c),c}else if(a instanceof fb){if(b===Cp())return c=wq(F(),a,c),Ap(F(),c),c}else if(a instanceof bb){if(b===Fp())return c=xq(F(),a,c),pe(F(),c),c}else if(a instanceof cb){if(b===Ip())return c=tq(F(),a,c),Gp(F(),c),c}else if(a instanceof db){if(b===Ep())return c=uq(F(),a,c),Dp(F(),c),c}else if(a instanceof ab&&b===Ks()){c=yq(F(), +a,c);var d=Ls();b=Ks();Ms(d,c,c.a.length,b);return c}300>c?(c=Js(Pp(),a),Ms(Ls(),c,Cs(Pp(),c),b)):(Ns(),Os(),Tl(m(nb),Vl(ia(a)))?d=Rl(m(nb))?Ps(a,c):sq(F(),a,c,m(x(nb))):(d=new Za(c),Qs(Ns(),a,0,d,0,Cs(Pp(),a))),Jp(F(),d,b),Ns(),b=pq(qq(),Vl(ia(a))),a=b.me(),null!==a&&a===m(pb)?c=Rs(c):Tl(a,Vl(ia(d)))?Rl(a)?c=Ps(d,c):(b=Tm(Vm(),a,0),b=ia(b),c=sq(F(),d,c,b)):(c=b.Be(c),Qs(Ns(),d,0,c,0,Cs(Pp(),d))));return c}function lba(a,b){b=Ss(Ts(),b);b=mba(b);return new Ob(b,new C((()=>c=>c.Xh())(a)))} +As.prototype.$classData=v({woa:0},!1,"scala.collection.ArrayOps$",{woa:1,b:1});var Us;function ms(){Us||(Us=new As);return Us}function Vs(){}Vs.prototype=new t;Vs.prototype.constructor=Vs;Vs.prototype.$classData=v({Poa:0},!1,"scala.collection.BitSetOps$",{Poa:1,b:1});var Ws;function Xs(){Ys=this}Xs.prototype=new t;Xs.prototype.constructor=Xs;Xs.prototype.$classData=v({Woa:0},!1,"scala.collection.Factory$",{Woa:1,b:1});var Ys;function Zs(){}Zs.prototype=new t;Zs.prototype.constructor=Zs; +function $s(a,b){a=b+~(b<<9)|0;a^=a>>>14|0;a=a+(a<<4)|0;return a^(a>>>10|0)}Zs.prototype.$classData=v({Zoa:0},!1,"scala.collection.Hashing$",{Zoa:1,b:1});var at;function bt(){at||(at=new Zs);return at}function ct(a,b){for(a=a.t();a.s();)b.r(a.p())}function dt(a,b){var c=!0;for(a=a.t();c&&a.s();)c=!!b.r(a.p());return c}function et(a,b){var c=!1;for(a=a.t();!c&&a.s();)c=!!b.r(a.p());return c}function ft(a,b){for(a=a.t();a.s();){var c=a.p();if(b.r(c))return new Ze(c)}return E()} +function gt(a,b,c){for(a=a.t();a.s();)b=c.Od(b,a.p());return b}function ht(a,b){a=a.t();if(!a.s())throw it("empty.reduceLeft");for(var c=!0,d=null;a.s();){var f=a.p();c?(d=f,c=!1):d=b.Od(d,f)}return d}function zg(a,b,c,d){a=a.t();var f=c,g=Cs(Pp(),b)-c|0;for(d=c+(d(f,g)=>d.yg(f,g))(a,b)))} +function oba(a,b){if(a.i())throw it("empty.max");return a.Tg(new jt(((c,d)=>(f,g)=>d.xg(f,g))(a,b)))}function mg(a,b,c,d){return a.i()?""+b+d:a.zf(kt(),b,c,d).Gd.R}function lt(a,b,c,d,f){var g=b.Gd;0!==(c.length|0)&&(g.R=""+g.R+c);a=a.t();if(a.s())for(c=a.p(),g.R=""+g.R+c;a.s();)g.R=""+g.R+d,c=a.p(),g.R=""+g.R+c;0!==(f.length|0)&&(g.R=""+g.R+f);return b} +function mt(a,b){if(0<=a.N())return b=b.Be(a.N()),a.Zb(b,0,2147483647),b;var c=b.me(),d=c===m(rb);b=[];for(a=a.t();a.s();){var f=a.p();b.push(d?Da(f):null===f?c.ze.ip:f)}return x((c===m(pb)?m(sa):c===m(nt)||c===m(ot)?m(nb):c).ze).hp(b)}function pt(a,b){this.Fpa=a;this.hD=b}pt.prototype=new t;pt.prototype.constructor=pt;pt.prototype.$classData=v({Epa:0},!1,"scala.collection.Iterator$ConcatIteratorCell",{Epa:1,b:1});function qt(a,b){this.aW=null;this.oJ=!1;this.$V=b}qt.prototype=new t; +qt.prototype.constructor=qt;function rt(a){a.oJ||(a.oJ||(a.aW=a.$V.Rb(),a.oJ=!0),a.$V=null);return a.aW}qt.prototype.$classData=v({Ipa:0},!1,"scala.collection.LinearSeqIterator$LazyCell",{Ipa:1,b:1});function st(){}st.prototype=new t;st.prototype.constructor=st;function pg(a,b,c,d){a=0=d?"":b.substring(a,d)}function tt(a,b){if(0>=b)return"";var c=new ut,d=l(a.length|0,b);vt(c);if(0>d)throw new rq;for(d=0;d=b||65<=b&&90>=b||48<=b&&57>=b?String.fromCharCode(b):"\\"+q(b);return ll(a,b,0)}function xt(a,b,c){a=c.Da(new C((()=>d=>{qg();return d instanceof yt?d.pX():d})(a,b))).bh(Os());return pba(zt(),b,a)}function Iaa(a,b,c){qg();a=b.length|0;return pg(0,b,0,cb)throw bu(a,b);if(b>(-1+a.a.length|0))throw bu(a,b);var c=new eb(-1+a.a.length|0);a.Z(0,c,0,b);a.Z(1+b|0,c,b,-1+(a.a.length-b|0)|0);return c} +function gu(a,b,c){if(0>b)throw bu(a,b);if(b>a.a.length)throw bu(a,b);var d=new eb(1+a.a.length|0);a.Z(0,d,0,b);d.a[b]=c;a.Z(b,d,1+b|0,a.a.length-b|0);return d}var Gt=v({bz:0},!1,"scala.collection.immutable.Node",{bz:1,b:1});du.prototype.$classData=Gt;function hu(){this.cz=0;iu=this;this.cz=Qa(+Math.ceil(6.4))}hu.prototype=new t;hu.prototype.constructor=hu;function ju(a,b,c){return 31&(b>>>c|0)}function ku(a,b){return 1<k?(a=wu(a,b.oa,c,d,f,g),b.oa!==a&&(0<=a.aa?(c=a.oa,d=a.ma,b=null!==c&&0<=c.aa?su(a,pu(c),uu(b,d)):null!==d&&0<=d.aa?su(d,tu(a,d.oa),uu(b,d.ma)):zu(b,a)):b=zu(b,a))):b=0=c)return b;if(c>=(2147483647&b.aa))return null;var f=zf(0,b.oa);if(c>f)c=-1+(c-f|0)|0, +b=b.ma;else{if(c===f)return Au(a,null,b.Qa,b.Cb,b.ma);c=yba(a,b.oa,c);return Au(a,c,b.Qa,b.Cb,b.ma)}}}; +function Cu(a,b,c){if(null!==b&&0<=b.aa){if(null!==c&&0<=c.aa)return Du(a,pu(b),pu(c));var d=b.oa;if(null!==d&&0<=d.aa)return su(b,pu(b.oa),Eu(a,b.ma,c));d=b.ma;return null!==d&&0<=d.aa?su(b.ma,tu(b,b.ma.oa),Eu(a,b.ma.ma,c)):Eu(a,b,c)}if(null!==c&&0<=c.aa){d=c.ma;if(null!==d&&0<=d.aa)return su(c,Eu(a,b,c.oa),pu(c.ma));d=c.oa;return null!==d&&0<=d.aa?su(c.oa,Eu(a,b,c.oa.oa),Eu(c,c.oa.ma,c.ma)):Eu(a,b,c)}return Eu(a,b,c)} +var Aba=function zba(a,b,c,d,f,g,h){if((null===b?0:0>b.aa?(-1+g|0)<<1:-1+(g<<1)|0)===(h/2|0)<<1)return xu(c,d,b,f);var n=null!==b&&0>b.aa;a=zba(a,b.ma,c,d,f,n?-1+g|0:g,h);n&&null!==a&&0<=a.aa?(c=a.ma,c=null!==c&&0<=c.aa):c=!1;return c?xu(a.Qa,a.Cb,Vu(b.Qa,b.Cb,b.oa,a.oa),pu(a.ma)):qu(n,b.Qa,b.Cb,b.oa,a)},Cba=function Bba(a,b,c,d,f,g,h){if((null===f?0:0>f.aa?(-1+h|0)<<1:-1+(h<<1)|0)===(g/2|0)<<1)return xu(c,d,b,f);var n=null!==f&&0>f.aa;a=Bba(a,b,c,d,f.oa,g,n?-1+h|0:h);n&&null!==a&&0<=a.aa?(b=a.oa, +b=null!==b&&0<=b.aa):b=!1;return b?xu(a.Qa,a.Cb,pu(a.oa),Vu(f.Qa,f.Cb,a.ma,f.ma)):qu(n,f.Qa,f.Cb,a,f.ma)},Dba=function Wu(a,b,c,d){if(null===b)return new Xu(null,null,null,c);var g=d.$(c,b.Qa);if(0===g)return new Xu(b.oa,b,b.ma,b.Qa);if(0>g){c=Wu(a,b.oa,c,d);if(null===c)throw new B(c);d=c.Yq;return new Xu(c.Wq,c.uu,Au(a,c.Xq,b.Qa,b.Cb,b.ma),d)}c=Wu(a,b.ma,c,d);if(null===c)throw new B(c);d=c.uu;g=c.Xq;var h=c.Yq;return new Xu(Au(a,b.oa,b.Qa,b.Cb,c.Wq),d,g,h)},Fba=function Eba(a,b){if(null===b.ma)return new sg(b.oa, +b.Qa,b.Cb);var d=Eba(a,b.ma);if(null===d)throw new B(d);var f=d.qk,g=d.rk;return new sg(Au(a,b.oa,b.Qa,b.Cb,d.pk),f,g)},Gba=function Yu(a,b,c,d){if(null===b||b===c)return c;if(null===c)return b;var g=Dba(a,b,c.Qa,d);if(null===g)throw new B(g);var h=g.Xq;b=g.Yq;g=Yu(a,g.Wq,c.oa,d);d=Yu(a,h,c.ma,d);return Au(a,g,b,c.Cb,d)},av=function Zu(a,b){if(null===b)throw Ir("empty tree");var d=b.oa;if(null===d)b=b.ma;else if(0>d.aa)if(a=Zu(a,d),d=b.ma,null!==a&&0<=a.aa)b=Du(b,pu(a),d);else if(null!==d&&0>d.aa)b= +Cu(b,a,$u(d));else{if(null!==d&&0<=d.aa){var f=d.oa;f=null!==f&&0>f.aa}else f=!1;if(f)b=Du(d.oa,Eu(b,a,d.oa.oa),Cu(d,d.oa.ma,$u(d.ma)));else throw Kf||(Kf=new Lf),I(J(),Mf(new Nf,"Defect: invariance violation"));}else a=Zu(a,b.oa),a===b.oa&&0<=b.aa||(d=b.ma,b=new ru(b.Qa,b.Cb,a,b.ma,1+((null===a?0:2147483647&a.aa)+(null===d?0:2147483647&d.aa)|0)|0));return b},Hba=function bv(a,b,c,d,f){switch(c){case 0:return null;case 1:return qu(b!==d||1===b,f.p(),null,null,null);default:var h=(-1+c|0)/2|0,k=bv(a, +1+b|0,h,d,f),n=f.p();a=bv(a,1+b|0,(-1+c|0)-h|0,d,f);return Vu(n,null,k,a)}},Iba=function cv(a,b,c,d,f){switch(c){case 0:return null;case 1:var h=d.p();if(null===h)throw new B(h);return qu(b!==f||1===b,h.Ea(),h.xa(),null,null);default:var k=(-1+c|0)/2|0;h=cv(a,1+b|0,k,d,f);var n=d.p();if(null===n)throw new B(n);var r=n.Ea();n=n.xa();b=cv(a,1+b|0,(-1+c|0)-k|0,d,f);return Vu(r,n,h,b)}},Jba=function dv(a,b,c){var f=b.Qa,g=b.Cb,h=b.oa,k=b.ma,n=null===h?null:dv(a,h,c),r=!!c.Od(f,g);c=null===k?null:dv(a, +k,c);return r?n===h&&c===k?b:Au(a,n,f,g,c):ev(a,n,c)};function fv(a,b){if(null===a)throw P();return a.e?a.f:Q(a,new gv(b))}function hv(a){for(var b=0;;){if(null===a)return 1+b|0;b=0>a.aa?1+b|0:b;a=a.oa}}function iv(){this.IW=null;jv=this;this.IW=G(new H,null,null)}iv.prototype=new t;iv.prototype.constructor=iv;function mf(a,b,c,d){a=kv(0,b,c,d);return null===a?E():new Ze(a.Cb)}function kv(a,b,c,d){for(;;){if(null===b)return null;a=d.$(c,b.Qa);if(0>a)b=b.oa;else if(0h?(a=Aba(a,b,c,d,f,g,null===f?0:0>f.aa?(-1+h|0)<<1:-1+(h<<1)|0),null!==a&&0<=a.aa?(b=a.ma,b=null!==b&&0<=b.aa):b=!1,b?pu(a):a):h>g?(a=Cba(a,b,c,d,f,null===b?0:0>b.aa?(-1+g|0)<<1:-1+(g<<1)|0,h),null!==a&&0<=a.aa?(b=a.oa,b=null!==b&&0<=b.aa):b=!1,b?pu(a):a):qu(null!==b&&0<=b.aa||null!==f&&0<=f.aa,c,d,b,f)}function ev(a,b,c){if(null===b)return c;if(null===c)return b;b=Fba(a,b);if(null===b)throw new B(b);return Au(a,b.pk,b.qk,b.rk,c)} +iv.prototype.$classData=v({fsa:0},!1,"scala.collection.immutable.RedBlackTree$",{fsa:1,b:1});var jv;function nf(){jv||(jv=new iv);return jv}function sv(){this.ii=null}sv.prototype=new t;sv.prototype.constructor=sv;function tv(){}tv.prototype=sv.prototype;function uv(a){return null===a?a:0===(2147483647&a.aa)?vv(wv(a)):pu(a)} +function xv(a,b){if(0<=b.aa){var c=b.oa,d=b.ma;if(nf(),null!==c&&0<=c.aa)return c=wv(c),d=yv(a,d),zv(b,c,d);if(nf(),null!==d&&0<=d.aa)return c=d.ma,b=Av(b,d.oa),a=yv(a,c),zv(d,b,a)}a.oa===b?d=a:0===(2147483647&a.aa)?(a.oa=b,d=a):d=new ru(a.Qa,a.Cb,b,a.ma,-2147483648&a.aa);return d} +function Bv(a,b){if(0<=b.aa){var c=b.oa;if(nf(),null!==c&&0<=c.aa){var d=Av(a,c.oa);b=yv(b,c.ma);return zv(c,d,b)}d=b.ma;if(nf(),null!==d&&0<=d.aa)return c=Av(a,c),d=wv(d),zv(b,c,d)}a.ma===b?b=a:0===(2147483647&a.aa)?(a.ma=b,b=a):b=new ru(a.Qa,a.Cb,a.oa,b,-2147483648&a.aa);return b}function ru(a,b,c,d,f){this.Qa=a;this.Cb=b;this.oa=c;this.ma=d;this.aa=f}ru.prototype=new t;ru.prototype.constructor=ru; +ru.prototype.g=function(){return(0<=this.aa?"RedTree":"BlackTree")+"("+this.Qa+", "+this.Cb+", "+this.oa+", "+this.ma+")"};function vv(a){if(0===(2147483647&a.aa)){var b=1;null!==a.oa&&(vv(a.oa),b=b+(2147483647&a.oa.aa)|0);null!==a.ma&&(vv(a.ma),b=b+(2147483647&a.ma.aa)|0);a.aa|=b}return a}function wv(a){return 0>a.aa?a:0===(2147483647&a.aa)?(a.aa=-2147483648,a):new ru(a.Qa,a.Cb,a.oa,a.ma,-2147483648)} +function Cv(a,b){return Object.is(b,a.Cb)?a:0===(2147483647&a.aa)?(a.Cb=b,a):new ru(a.Qa,b,a.oa,a.ma,-2147483648&a.aa)}function zv(a,b,c){return a.oa===b&&a.ma===c?a:0===(2147483647&a.aa)?(a.oa=b,a.ma=c,a):new ru(a.Qa,a.Cb,b,c,-2147483648&a.aa)}function yv(a,b){return a.oa===b&&0>a.aa?a:0===(2147483647&a.aa)?(a.aa=-2147483648,a.oa=b,a):new ru(a.Qa,a.Cb,b,a.ma,-2147483648)} +function Av(a,b){return a.ma===b&&0>a.aa?a:0===(2147483647&a.aa)?(a.aa=-2147483648,a.ma=b,a):new ru(a.Qa,a.Cb,a.oa,b,-2147483648)}function pu(a){return 0>a.aa?a:new ru(a.Qa,a.Cb,a.oa,a.ma,-2147483648^a.aa)}function $u(a){return 0<=a.aa?a:new ru(a.Qa,a.Cb,a.oa,a.ma,-2147483648^a.aa)}function yu(a,b){return Object.is(b,a.Cb)?a:new ru(a.Qa,b,a.oa,a.ma,a.aa)} +function zu(a,b){if(b===a.oa)return a;var c=a.ma;return new ru(a.Qa,a.Cb,b,a.ma,-2147483648&a.aa|1+((null===b?0:2147483647&b.aa)+(null===c?0:2147483647&c.aa)|0)|0)}function vu(a,b){if(b===a.ma)return a;var c=a.oa;return new ru(a.Qa,a.Cb,a.oa,b,-2147483648&a.aa|1+((null===c?0:2147483647&c.aa)+(null===b?0:2147483647&b.aa)|0)|0)}function uu(a,b){if(b===a.oa&&0>a.aa)return a;var c=a.ma;return new ru(a.Qa,a.Cb,b,a.ma,1+((null===b?0:2147483647&b.aa)+(null===c?0:2147483647&c.aa)|0)|-2147483648)} +function tu(a,b){if(b===a.ma&&0>a.aa)return a;var c=a.oa;return new ru(a.Qa,a.Cb,a.oa,b,1+((null===c?0:2147483647&c.aa)+(null===b?0:2147483647&b.aa)|0)|-2147483648)}function su(a,b,c){return b===a.oa&&c===a.ma?a:new ru(a.Qa,a.Cb,b,c,-2147483648&a.aa|1+((null===b?0:2147483647&b.aa)+(null===c?0:2147483647&c.aa)|0)|0)}function Du(a,b,c){return b===a.oa&&c===a.ma&&0<=a.aa?a:new ru(a.Qa,a.Cb,b,c,1+((null===b?0:2147483647&b.aa)+(null===c?0:2147483647&c.aa)|0)|0)} +function Eu(a,b,c){return b===a.oa&&c===a.ma&&0>a.aa?a:new ru(a.Qa,a.Cb,b,c,1+((null===b?0:2147483647&b.aa)+(null===c?0:2147483647&c.aa)|0)|-2147483648)}var Dv=v({ksa:0},!1,"scala.collection.immutable.RedBlackTree$Tree",{ksa:1,b:1});ru.prototype.$classData=Dv;function gv(a){this.msa=a;this.FD=this.GD=null}gv.prototype=new t;gv.prototype.constructor=gv; +function qv(a,b){var c=b.Qa,d=b.Cb,f=b.oa,g=b.ma,h=null,k=null,n=null,r=null;null!==f&&(qv(a,f),h=a.GD,k=a.FD);var u=!!a.msa.Od(c,d);null!==g&&(qv(a,g),n=a.GD,r=a.FD);h=u?h===f&&n===g?b:Au(nf(),h,c,d,n):ev(nf(),h,n);b=u?ev(nf(),k,r):k===f&&r===g?b:Au(nf(),k,c,d,r);a.GD=h;a.FD=b}gv.prototype.$classData=v({lsa:0},!1,"scala.collection.immutable.RedBlackTree$partitioner$1$",{lsa:1,b:1});function Ev(){this.bs=null;Fv=this;this.bs=new Gv(0,0,($t(),new Za(0)),($n(),new eb(0)),0,0)}Ev.prototype=new t; +Ev.prototype.constructor=Ev;Ev.prototype.$classData=v({Bsa:0},!1,"scala.collection.immutable.SetNode$",{Bsa:1,b:1});var Fv;function Hv(){Fv||(Fv=new Ev);return Fv} +var Mba=function Lba(a,b,c,d,f){for(;;){if(1===b){b=c;var h=d,k=f;Iv(a,1,0===h&&k===b.a.length?b:Gq(F(),b,h,k))}else{h=l(5,-1+b|0);var n=1<>>h|0;h=f>>>h|0;d&=-1+n|0;f&=-1+n|0;if(0===d)if(0===f)f=c,Iv(a,b,0===k&&h===f.a.length?f:Gq(F(),f,k,h));else{h>k&&(d=c,Iv(a,b,0===k&&h===d.a.length?d:Gq(F(),d,k,h)));h=c.a[h];b=-1+b|0;c=h;d=0;continue}else if(h===k){h=c.a[k];b=-1+b|0;c=h;continue}else if(Lba(a,-1+b|0,c.a[k],d,n),0===f)h>(1+k|0)&&(f=c,k=1+k|0,Iv(a,b,0===k&&h===f.a.length?f:Gq(F(),f,k,h))); +else{h>(1+k|0)&&(d=c,k=1+k|0,Iv(a,b,0===k&&h===d.a.length?d:Gq(F(),d,k,h)));h=c.a[h];b=-1+b|0;c=h;d=0;continue}}break}};function Iv(a,b,c){b<=a.Dh?b=11-b|0:(a.Dh=b,b=-1+b|0);a.Va.a[b]=c} +var Oba=function Nba(a,b){if(null===a.Va.a[-1+b|0])if(b===a.Dh)a.Va.a[-1+b|0]=a.Va.a[11-b|0],a.Va.a[11-b|0]=null;else{Nba(a,1+b|0);var d=a.Va.a[-1+(1+b|0)|0];a.Va.a[-1+b|0]=d.a[0];if(1===d.a.length)a.Va.a[-1+(1+b|0)|0]=null,a.Dh===(1+b|0)&&null===a.Va.a[11-(1+b|0)|0]&&(a.Dh=b);else{var f=d.a.length;a.Va.a[-1+(1+b|0)|0]=Gq(F(),d,1,f)}}},Qba=function Pba(a,b){if(null===a.Va.a[11-b|0])if(b===a.Dh)a.Va.a[11-b|0]=a.Va.a[-1+b|0],a.Va.a[-1+b|0]=null;else{Pba(a,1+b|0);var d=a.Va.a[11-(1+b|0)|0];a.Va.a[11- +b|0]=d.a[-1+d.a.length|0];if(1===d.a.length)a.Va.a[11-(1+b|0)|0]=null,a.Dh===(1+b|0)&&null===a.Va.a[-1+(1+b|0)|0]&&(a.Dh=b);else{var f=-1+d.a.length|0;a.Va.a[11-(1+b|0)|0]=Gq(F(),d,0,f)}}};function Jv(a,b){this.Va=null;this.Dh=this.Cv=this.Xj=0;this.TW=a;this.SW=b;this.Va=new (x(x(nb)).M)(11);this.Dh=this.Cv=this.Xj=0}Jv.prototype=new t;Jv.prototype.constructor=Jv; +function Kv(a,b,c){var d=l(c.a.length,1<f&&(Mba(a,b,c,f,g),a.Xj=a.Xj+(g-f|0)|0);a.Cv=a.Cv+d|0} +Jv.prototype.ej=function(){if(32>=this.Xj){if(0===this.Xj)return Lv();var a=this.Va.a[0],b=this.Va.a[10];if(null!==a)if(null!==b){var c=a.a.length+b.a.length|0,d=oq(F(),a,c);b.Z(0,d,a.a.length,b.a.length);var f=d}else f=a;else if(null!==b)f=b;else{var g=this.Va.a[1];f=null!==g?g.a[0]:this.Va.a[9].a[0]}return new Mv(f)}Oba(this,1);Qba(this,1);var h=this.Dh;if(6>h){var k=this.Va.a[-1+this.Dh|0],n=this.Va.a[11-this.Dh|0];if(null!==k&&null!==n)if(30>=(k.a.length+n.a.length|0)){var r=this.Va,u=this.Dh, +w=k.a.length+n.a.length|0,y=oq(F(),k,w);n.Z(0,y,k.a.length,n.a.length);r.a[-1+u|0]=y;this.Va.a[11-this.Dh|0]=null}else h=1+h|0;else 30<(null!==k?k:n).a.length&&(h=1+h|0)}var K=this.Va.a[0],U=this.Va.a[10],Z=K.a.length,ra=h;switch(ra){case 2:var Ba=S().Wb,ka=this.Va.a[1];if(null!==ka)var Ca=ka;else{var Fa=this.Va.a[9];Ca=null!==Fa?Fa:Ba}var ib=new Nv(K,Z,Ca,U,this.Xj);break;case 3:var zb=S().Wb,Ab=this.Va.a[1],nd=null!==Ab?Ab:zb,Bb=S().te,Dc=this.Va.a[2];if(null!==Dc)var cc=Dc;else{var Ec=this.Va.a[8]; +cc=null!==Ec?Ec:Bb}var Xa=cc,hb=S().Wb,Pe=this.Va.a[9];ib=new Ov(K,Z,nd,Z+(nd.a.length<<5)|0,Xa,null!==Pe?Pe:hb,U,this.Xj);break;case 4:var pi=S().Wb,uk=this.Va.a[1],Yd=null!==uk?uk:pi,Db=S().te,Qe=this.Va.a[2],qc=null!==Qe?Qe:Db,se=S().$g,Fg=this.Va.a[3];if(null!==Fg)var Fu=Fg;else{var Gu=this.Va.a[7];Fu=null!==Gu?Gu:se}var Hu=Fu,sh=S().te,Fl=this.Va.a[8],Iu=null!==Fl?Fl:sh,Ju=S().Wb,Rp=this.Va.a[9],Gl=Z+(Yd.a.length<<5)|0;ib=new Pv(K,Z,Yd,Gl,qc,Gl+(qc.a.length<<10)|0,Hu,Iu,null!==Rp?Rp:Ju,U,this.Xj); +break;case 5:var Sp=S().Wb,bd=this.Va.a[1],vk=null!==bd?bd:Sp,qi=S().te,ej=this.Va.a[2],wn=null!==ej?ej:qi,Ku=S().$g,xn=this.Va.a[3],Hl=null!==xn?xn:Ku,Tp=S().Zo,Up=this.Va.a[4];if(null!==Up)var yn=Up;else{var zn=this.Va.a[6];yn=null!==zn?zn:Tp}var Lu=yn,wk=S().$g,An=this.Va.a[7],Mu=null!==An?An:wk,Nu=S().te,Vp=this.Va.a[8],Ou=null!==Vp?Vp:Nu,ZB=S().Wb,Pu=this.Va.a[9],Bn=Z+(vk.a.length<<5)|0,Wp=Bn+(wn.a.length<<10)|0;ib=new Qv(K,Z,vk,Bn,wn,Wp,Hl,Wp+(Hl.a.length<<15)|0,Lu,Mu,Ou,null!==Pu?Pu:ZB,U,this.Xj); +break;case 6:var ff=S().Wb,te=this.Va.a[1],Gg=null!==te?te:ff,xk=S().te,yk=this.Va.a[2],Xp=null!==yk?yk:xk,Yp=S().$g,Il=this.Va.a[3],th=null!==Il?Il:Yp,fj=S().Zo,Zp=this.Va.a[4],Qu=null!==Zp?Zp:fj,Hg=S().JD,Jl=this.Va.a[5];if(null!==Jl)var $p=Jl;else{var zk=this.Va.a[5];$p=null!==zk?zk:Hg}var Kl=$p,aq=S().Zo,Cn=this.Va.a[6],Ru=null!==Cn?Cn:aq,Dn=S().$g,Ll=this.Va.a[7],bq=null!==Ll?Ll:Dn,En=S().te,Fn=this.Va.a[8],$B=null!==Fn?Fn:En,Su=S().Wb,Tu=this.Va.a[9],cq=Z+(Gg.a.length<<5)|0,Uu=cq+(Xp.a.length<< +10)|0,dq=Uu+(th.a.length<<15)|0;ib=new Rv(K,Z,Gg,cq,Xp,Uu,th,dq,Qu,dq+(Qu.a.length<<20)|0,Kl,Ru,bq,$B,null!==Tu?Tu:Su,U,this.Xj);break;default:throw new B(ra);}return ib};Jv.prototype.g=function(){return"VectorSliceBuilder(lo\x3d"+this.TW+", hi\x3d"+this.SW+", len\x3d"+this.Xj+", pos\x3d"+this.Cv+", maxDim\x3d"+this.Dh+")"};Jv.prototype.$classData=v({dta:0},!1,"scala.collection.immutable.VectorSliceBuilder",{dta:1,b:1}); +function Sv(){this.JD=this.Zo=this.$g=this.te=this.Wb=this.WJ=null;Tv=this;this.WJ=new Za(0);this.Wb=new (x(x(nb)).M)(0);this.te=new (x(x(x(nb))).M)(0);this.$g=new (x(x(x(x(nb)))).M)(0);this.Zo=new (x(x(x(x(x(nb))))).M)(0);this.JD=new (x(x(x(x(x(x(nb)))))).M)(0)}Sv.prototype=new t;Sv.prototype.constructor=Sv;function Uv(a,b,c){a=b.a.length;var d=new Za(1+a|0);b.Z(0,d,0,a);d.a[a]=c;return d}function Vv(a,b,c){a=1+b.a.length|0;b=oq(F(),b,a);b.a[-1+b.a.length|0]=c;return b} +function Wv(a,b,c){a=new Za(1+c.a.length|0);c.Z(0,a,1,c.a.length);a.a[0]=b;return a}function Xv(a,b,c){a=Vl(ia(c));var d=1+c.a.length|0;a=Tm(Vm(),a,d);c.Z(0,a,1,c.a.length);a.a[0]=b;return a}function Yv(a,b,c,d){var f=0,g=c.a.length;if(0===b)for(;f=c.TD(32-b.a.length|0))switch(a=c.Y(),a){case 0:return null;case 1:return Xv(0,c.G(),b);default:var d=new Za(b.a.length+a|0);b.Z(0,d,a,b.a.length);c.Zb(d,0,2147483647);return d}else return null;else return a=c.N(),0=c.TD(32-b.a.length|0))switch(a=c.Y(),a){case 0:return null;case 1:return Vv(0,b,c.G());default:return a=b.a.length+a|0,a=oq(F(),b,a),c.Zb(a,b.a.length,2147483647),a}else return null;else return a=c.N(),0c)return null;a=a.lf}}ew.prototype.Fa=function(a){for(var b=this;;)if(a.r(G(new H,b.cp,b.sj)),null!==b.lf)b=b.lf;else break};ew.prototype.lh=function(a){for(var b=this;;)if(a.Od(b.cp,b.sj),null!==b.lf)b=b.lf;else break}; +ew.prototype.g=function(){return"Node("+this.cp+", "+this.sj+", "+this.km+") -\x3e "+this.lf};var gw=v({Mta:0},!1,"scala.collection.mutable.HashMap$Node",{Mta:1,b:1});ew.prototype.$classData=gw;function hw(a,b,c){this.ep=a;this.Yk=b;this.Jf=c}hw.prototype=new t;hw.prototype.constructor=hw;hw.prototype.Fa=function(a){for(var b=this;;)if(a.r(b.ep),null!==b.Jf)b=b.Jf;else break};hw.prototype.g=function(){return"Node("+this.ep+", "+this.Yk+") -\x3e "+this.Jf}; +var iw=v({Tta:0},!1,"scala.collection.mutable.HashSet$Node",{Tta:1,b:1});hw.prototype.$classData=iw;function jw(){}jw.prototype=new t;jw.prototype.constructor=jw;function kw(a,b,c){a=c>>31;var d=b>>31,f=65535&c,g=c>>>16|0,h=65535&b,k=b>>>16|0,n=l(f,h);h=l(g,h);var r=l(f,k);f=n+((h+r|0)<<16)|0;n=(n>>>16|0)+r|0;b=(((l(c,d)+l(a,b)|0)+l(g,k)|0)+(n>>>16|0)|0)+(((65535&n)+h|0)>>>16|0)|0;return qn(Aa(),f,b,1E3,0)}jw.prototype.$classData=v({Uta:0},!1,"scala.collection.mutable.HashTable$",{Uta:1,b:1});var lw; +function mw(){lw||(lw=new jw);return lw}function nw(){}nw.prototype=new t;nw.prototype.constructor=nw;nw.prototype.$classData=v({fua:0},!1,"scala.collection.mutable.MutationTracker$",{fua:1,b:1});var ow;function pw(){}pw.prototype=new t;pw.prototype.constructor=pw;pw.prototype.$classData=v({Gqa:0},!1,"scala.collection.package$$colon$plus$",{Gqa:1,b:1});var qw;function rw(){}rw.prototype=new t;rw.prototype.constructor=rw; +rw.prototype.$classData=v({Hqa:0},!1,"scala.collection.package$$plus$colon$",{Hqa:1,b:1});var sw;function tw(){this.ty=this.sy=null;this.Go=0}tw.prototype=new t;tw.prototype.constructor=tw;function uw(){}uw.prototype=tw.prototype;function vw(){this.mV=null;ww=this;this.mV=new (x(gm).M)(0)}vw.prototype=new t;vw.prototype.constructor=vw;vw.prototype.$classData=v({Hma:0},!1,"scala.concurrent.BatchingExecutorStatics$",{Hma:1,b:1});var ww; +function xw(){this.NC=this.oV=null;this.MI=!1;yw=this;this.NC=new C((()=>a=>{zw(a)})(this))}xw.prototype=new t;xw.prototype.constructor=xw;function Aw(){var a=Bw();a.MI||a.MI||(Cw||(Cw=new Dw),a.oV=Cw.gX,a.MI=!0);return a.oV}xw.prototype.$classData=v({Ima:0},!1,"scala.concurrent.ExecutionContext$",{Ima:1,b:1});var yw;function Bw(){yw||(yw=new xw);return yw} +function Ew(){this.wV=this.rV=this.vV=this.NI=this.tV=this.uV=this.sV=null;Fw=this;L();var a=[G(new H,m(qb),m(qa)),G(new H,m(sb),m(ma)),G(new H,m(rb),m(ua)),G(new H,m(tb),m(na)),G(new H,m(ub),m(oa)),G(new H,m(vb),m(ta)),G(new H,m(wb),m(pa)),G(new H,m(xb),m(Rba)),G(new H,m(pb),m(sa))];a=Af(new Bf,a);M(0,a);this.sV=new C((()=>b=>{throw new Gw(b);})(this));this.uV=new Hw(new Iw);this.tV=new Hw(new Jw);Kw(Ow(),this.tV);this.NI=Sba();this.vV=new C((()=>()=>Ow().NI)(this));this.rV=new jt((()=>(b,c)=>b.Ia(c))(this)); +this.wV=Kw(0,new Pw(void 0))}Ew.prototype=new t;Ew.prototype.constructor=Ew;function Sba(){Ow();var a=new Qw;Rw||(Rw=new Sw);return Tw(new Hw(a))}function Tba(a){Rw||(Rw=new Sw);return Tw(new Pw(a))}function Kw(a,b){return Tw(b)}function Uw(a,b,c){return Vw(a.wV,new C(((d,f)=>()=>f.Rb())(a,b)),c)}function Ww(a,b,c,d){var f=b.t();for(b=Tba(c.tr(b));f.s();){c=f.p();var g=Ow().rV;b=Uba(b,c,g,d)}return Vw(b,new C((()=>h=>h.nb())(a)),d&&d.$classData&&d.$classData.Hb.lV?d:Xw())} +Ew.prototype.$classData=v({Lma:0},!1,"scala.concurrent.Future$",{Lma:1,b:1});var Fw;function Ow(){Fw||(Fw=new Ew);return Fw}function Yw(a,b){var c=a.Cc;if(!(c instanceof Zw)&&$w(a,c,ax(bx(),b)))return a;throw Vt("Promise already completed.");}function cx(a,b){return Yw(a,new Hw(b))}function Sw(){}Sw.prototype=new t;Sw.prototype.constructor=Sw;Sw.prototype.$classData=v({Rma:0},!1,"scala.concurrent.Promise$",{Rma:1,b:1});var Rw;function dx(){this.xy=null;ex=this;this.xy=fx(new gx,0,null,Xw())} +dx.prototype=new t;dx.prototype.constructor=dx;function ax(a,b){if(null===b)throw P();if(b instanceof Pw)return b;a=b.gj;return a instanceof Fk?new Hw(new hx(a)):b}dx.prototype.$classData=v({Xma:0},!1,"scala.concurrent.impl.Promise$",{Xma:1,b:1});var ex;function bx(){ex||(ex=new dx);return ex}function ix(a){return!!(a&&a.$classData&&a.$classData.Hb.zV)}function jx(){this.Io=this.zy=null}jx.prototype=new t;jx.prototype.constructor=jx;function kx(){}kx.prototype=jx.prototype; +function lx(a,b){return a.Io.sh(a.zy,b)}function mx(){}mx.prototype=new t;mx.prototype.constructor=mx;mx.prototype.$classData=v({sna:0},!1,"scala.math.Ordered$",{sna:1,b:1});var nx;function ox(a,b){this.WC=null;this.WI=b;if(null===a)throw I(J(),null);this.WC=a}ox.prototype=new t;ox.prototype.constructor=ox;function px(a,b){return a.WC.uf(a.WI,b)}ox.prototype.$classData=v({Ena:0},!1,"scala.math.Ordering$OrderingOps",{Ena:1,b:1}); +function qx(a,b){if(b instanceof ha)return b=Da(b),a.VB()&&a.eg()===b;if(Wa(b))return b|=0,a.UB()&&a.yu()===b;if(Ya(b))return b|=0,a.WB()&&a.Gv()===b;if(la(b))return b|=0,a.Wx()&&a.eg()===b;if(b instanceof p){var c=Ga(b);b=c.k;c=c.o;a=a.fg();return a.k===b&&a.o===c}return"number"===typeof b?(b=+b,a.no()===b):"number"===typeof b?(b=+b,a.Yi()===b):!1}function rx(){}rx.prototype=new t;rx.prototype.constructor=rx;rx.prototype.$classData=v({Kna:0},!1,"scala.math.package$",{Kna:1,b:1});var sx; +function tx(){this.Jb=this.KV=this.IV=this.w=this.JV=this.HV=this.GV=null;this.Jo=0;ux=this;vx();this.JV=vx();this.w=wx();this.IV=Qd();this.KV=xx();Wb();this.Jb=A();yx||(yx=new zx);sw||(sw=new rw);qw||(qw=new pw);Ax();Bx();Rb();Cx||(Cx=new Dx);Ex();Fx||(Fx=new Gx);Hx||(Hx=new Ix);Jx||(Jx=new Kx);Lx||(Lx=new Mx);nx||(nx=new mx);Nx||(Nx=new Ox);Px||(Px=new Qx);Rx||(Rx=new Sx);Tx||(Tx=new Ux)}tx.prototype=new t;tx.prototype.constructor=tx; +function Vx(){var a=z();0===(1&a.Jo)<<24>>24&&0===(1&a.Jo)<<24>>24&&(a.GV=Wx(),a.Jo=(1|a.Jo)<<24>>24);return a.GV}function wd(){var a=z();0===(2&a.Jo)<<24>>24&&0===(2&a.Jo)<<24>>24&&(a.HV=Xx(),a.Jo=(2|a.Jo)<<24>>24);return a.HV}tx.prototype.$classData=v({Lna:0},!1,"scala.package$",{Lna:1,b:1});var ux;function z(){ux||(ux=new tx);return ux}function Yx(){}Yx.prototype=new t;Yx.prototype.constructor=Yx; +function fq(a,b,c){if(b===c)c=!0;else if(Zx(b))a:if(Zx(c))c=$x(0,b,c);else{if(c instanceof ha){if("number"===typeof b){c=+b===Da(c);break a}if(b instanceof p){a=Ga(b);b=a.o;c=Da(c);c=a.k===c&&b===c>>31;break a}}c=null===b?null===c:Ea(b,c)}else c=b instanceof ha?Vba(b,c):null===b?null===c:Ea(b,c);return c} +function $x(a,b,c){if("number"===typeof b)return a=+b,"number"===typeof c?a===+c:c instanceof p?(b=Ga(c),c=b.k,b=b.o,a===bs(Aa(),c,b)):c instanceof yt?c.c(a):!1;if(b instanceof p){b=Ga(b);a=b.k;b=b.o;if(c instanceof p){c=Ga(c);var d=c.o;return a===c.k&&b===d}return"number"===typeof c?(c=+c,bs(Aa(),a,b)===c):c instanceof yt?c.c(new p(a,b)):!1}return null===b?null===c:Ea(b,c)} +function Vba(a,b){if(b instanceof ha)return Da(a)===Da(b);if(Zx(b)){if("number"===typeof b)return+b===Da(a);if(b instanceof p){b=Ga(b);var c=b.o;a=Da(a);return b.k===a&&c===a>>31}return null===b?null===a:Ea(b,a)}return null===a&&null===b}Yx.prototype.$classData=v({Rua:0},!1,"scala.runtime.BoxesRunTime$",{Rua:1,b:1});var ay;function O(){ay||(ay=new Yx);return ay}var nt=v({Yua:0},!1,"scala.runtime.Null$",{Yua:1,b:1});function bf(){}bf.prototype=new t;bf.prototype.constructor=bf; +bf.prototype.$classData=v({cva:0},!1,"scala.runtime.RichChar$",{cva:1,b:1});var af;function by(){}by.prototype=new t;by.prototype.constructor=by;by.prototype.$classData=v({eva:0},!1,"scala.runtime.RichLong$",{eva:1,b:1});var cy;function dy(){cy||(cy=new by)}function ey(){}ey.prototype=new t;ey.prototype.constructor=ey; +function Op(a,b,c){if(b instanceof Za||b instanceof eb||b instanceof jb||b instanceof fb||b instanceof gb)return b.a[c];if(b instanceof bb)return q(b.a[c]);if(b instanceof cb||b instanceof db||b instanceof ab)return b.a[c];if(null===b)throw P();throw new B(b);} +function Qp(a,b,c,d){if(b instanceof Za)b.a[c]=d;else if(b instanceof eb)b.a[c]=d|0;else if(b instanceof jb)b.a[c]=+d;else if(b instanceof fb)b.a[c]=Ga(d);else if(b instanceof gb)b.a[c]=+d;else if(b instanceof bb)b.a[c]=Da(d);else if(b instanceof cb)b.a[c]=d|0;else if(b instanceof db)b.a[c]=d|0;else if(b instanceof ab)b.a[c]=!!d;else{if(null===b)throw P();throw new B(b);}} +function Cs(a,b){Vm();if(b instanceof Za||b instanceof ab||b instanceof bb||b instanceof cb||b instanceof db||b instanceof eb||b instanceof fb||b instanceof gb||b instanceof jb)a=b.a.length;else throw Hq("argument type mismatch");return a}function Js(a,b){if(b instanceof Za||b instanceof eb||b instanceof jb||b instanceof fb||b instanceof gb||b instanceof bb||b instanceof cb||b instanceof db||b instanceof ab)return b.X();if(null===b)throw P();throw new B(b);} +function fy(a){Pp();return mg(new gy(a),a.A()+"(",",",")")}ey.prototype.$classData=v({gva:0},!1,"scala.runtime.ScalaRunTime$",{gva:1,b:1});var hy;function Pp(){hy||(hy=new ey);return hy}function iy(){}iy.prototype=new t;iy.prototype.constructor=iy;e=iy.prototype;e.l=function(a,b){a=this.Dk(a,b);return-430675100+l(5,a<<13|a>>>19|0)|0};e.Dk=function(a,b){b=l(-862048943,b);b=l(461845907,b<<15|b>>>17|0);return a^b};e.ea=function(a,b){return this.nH(a^b)}; +e.nH=function(a){a=l(-2048144789,a^(a>>>16|0));a=l(-1028477387,a^(a>>>13|0));return a^(a>>>16|0)};function jy(a,b){a=b.k;b=b.o;return b===a>>31?a:a^b}function ky(a,b){a=Qa(b);if(a===b)return a;var c=Aa();a=gs(c,b);c=c.za;return bs(Aa(),a,c)===b?a^c:Zl(cm(),b)}function ly(a,b){return null===b?0:"number"===typeof b?ky(0,+b):b instanceof p?(a=Ga(b),jy(0,new p(a.k,a.o))):Ia(b)}function T(a,b){throw my(new V,""+b);}e.$classData=v({kva:0},!1,"scala.runtime.Statics$",{kva:1,b:1});var ny; +function W(){ny||(ny=new iy);return ny}function oy(){}oy.prototype=new t;oy.prototype.constructor=oy;oy.prototype.$classData=v({lva:0},!1,"scala.runtime.Statics$PFMarker$",{lva:1,b:1});var py;function qy(){py||(py=new oy);return py}function Dw(){this.gX=null;Cw=this;ry||(ry=new sy);this.gX="undefined"===typeof Promise?new ty:new uy}Dw.prototype=new t;Dw.prototype.constructor=Dw;Dw.prototype.$classData=v({nua:0},!1,"scala.scalajs.concurrent.JSExecutionContext$",{nua:1,b:1});var Cw;function sy(){} +sy.prototype=new t;sy.prototype.constructor=sy;sy.prototype.$classData=v({oua:0},!1,"scala.scalajs.concurrent.QueueExecutionContext$",{oua:1,b:1});var ry;function vy(){}vy.prototype=new t;vy.prototype.constructor=vy;vy.prototype.$classData=v({rua:0},!1,"scala.scalajs.js.$bar$",{rua:1,b:1});var wy;function Ig(){wy||(wy=new vy)}function xy(){}xy.prototype=new t;xy.prototype.constructor=xy;function yy(a,b){return new Promise(((c,d)=>(f,g)=>{Wba(zy(),f,g,c,d)})(a,b))} +function Wba(a,b,c,d,f){Ay(d,new C(((g,h,k)=>n=>{if(n instanceof Pw)return h(n.hj);if(n instanceof Hw)return n=n.gj,k(n instanceof Tr?n.ms:n);throw new B(n);})(a,b,c)),f)}xy.prototype.$classData=v({tua:0},!1,"scala.scalajs.js.JSConverters$JSRichFuture$",{tua:1,b:1});var By;function zy(){By||(By=new xy);return By}function Cy(){}Cy.prototype=new t;Cy.prototype.constructor=Cy;function Pg(a,b){if(b instanceof Dy)return b.wj;a=[];for(b=b.t();b.s();){var c=b.p();a.push(c)|0}return a} +Cy.prototype.$classData=v({uua:0},!1,"scala.scalajs.js.JSConverters$JSRichIterableOnce$",{uua:1,b:1});var Ey;function Qg(){Ey||(Ey=new Cy);return Ey}function Kg(){}Kg.prototype=new t;Kg.prototype.constructor=Kg;Kg.prototype.$classData=v({vua:0},!1,"scala.scalajs.js.JSConverters$JSRichMap$",{vua:1,b:1});var Jg;function Fy(){}Fy.prototype=new t;Fy.prototype.constructor=Fy; +function Gy(a){var b=Hy(new Iy),c=a.then,d=(f=>g=>{Jy();Yw(f,new Pw(g))})(b);Ky||(Ky=new Ly);c.call(a,d,(f=>g=>{Jy();g=g instanceof My?g:new Tr(g);cx(f,g)})(b));return b}Fy.prototype.$classData=v({xua:0},!1,"scala.scalajs.js.Thenable$ThenableOps$",{xua:1,b:1});var Ny;function Jy(){Ny||(Ny=new Fy)}function Oy(){this.ns=null;Py=this;this.ns=Object.prototype.hasOwnProperty}Oy.prototype=new t;Oy.prototype.constructor=Oy; +Oy.prototype.$classData=v({Aua:0},!1,"scala.scalajs.js.WrappedDictionary$Cache$",{Aua:1,b:1});var Py;function Uo(){Py||(Py=new Oy);return Py}function Ly(){}Ly.prototype=new t;Ly.prototype.constructor=Ly;Ly.prototype.$classData=v({Bua:0},!1,"scala.scalajs.js.defined$",{Bua:1,b:1});var Ky;function Qy(){}Qy.prototype=new t;Qy.prototype.constructor=Qy;function Lg(a,b){var c={};b.Fa(new C(((d,f)=>g=>{f[g.Ea()]=g.xa()})(a,c)));return c} +Qy.prototype.$classData=v({Cua:0},!1,"scala.scalajs.js.special.package$",{Cua:1,b:1});var Ry;function Mg(){Ry||(Ry=new Qy);return Ry}function Sy(){}Sy.prototype=new t;Sy.prototype.constructor=Sy;function Sr(a,b){return b instanceof My?b:new Tr(b)}function I(a,b){return b instanceof Tr?b.ms:b}function Ty(a,b){return Af(new Bf,b)}Sy.prototype.$classData=v({Nua:0},!1,"scala.scalajs.runtime.package$",{Nua:1,b:1});var Uy;function J(){Uy||(Uy=new Sy);return Uy}function Lf(){}Lf.prototype=new t; +Lf.prototype.constructor=Lf;Lf.prototype.$classData=v({doa:0},!1,"scala.sys.package$",{doa:1,b:1});var Kf;function Vy(a){this.By=a}Vy.prototype=new t;Vy.prototype.constructor=Vy;Vy.prototype.g=function(){return"DynamicVariable("+this.By+")"};Vy.prototype.$classData=v({eoa:0},!1,"scala.util.DynamicVariable",{eoa:1,b:1});function Wy(){}Wy.prototype=new t;Wy.prototype.constructor=Wy; +function Xy(a,b,c,d){c=c-b|0;if(!(2>c)){if(0d.$(g,Op(Pp(),a,-1+(b+f|0)|0))){for(var h=b,k=-1+(b+f|0)|0;1<(k-h|0);){var n=(h+k|0)>>>1|0;0>d.$(g,Op(Pp(),a,n))?k=n:h=n}h=h+(0>d.$(g,Op(Pp(),a,h))?0:1)|0;for(k=b+f|0;k>h;)Qp(Pp(),a,k,Op(Pp(),a,-1+k|0)),k=-1+k|0;Qp(Pp(),a,h,g)}f=1+f|0}}} +function Yy(a,b,c,d,f,g,h){if(32>(d-c|0))Xy(b,c,d,f);else{var k=(c+d|0)>>>1|0;g=null===g?h.Be(k-c|0):g;Yy(a,b,c,k,f,g,h);Yy(a,b,k,d,f,g,h);Zy(b,c,k,d,f,g)}}function Zy(a,b,c,d,f,g){if(0f.$(Op(Pp(),a,h),Op(Pp(),g,n))?(Qp(Pp(),a,b,Op(Pp(),a,h)),h=1+h|0):(Qp(Pp(),a,b,Op(Pp(),g,n)),n=1+n|0),b=1+b|0;for(;nc)throw Hq("fromIndex(0) \x3e toIndex("+c+")");16<(c-0|0)?Mp(a,b,new Za(b.a.length),0,c,d):Np(b,0,c,d)}else if(b instanceof eb)if(d===xp())wp(F(),b);else{var f=$n();if(32>(c-0|0))Xy(b,0,c,d);else{var g=(0+c|0)>>>1|0,h=new eb(g-0|0);if(32>(g-0|0))Xy(b,0,g,d);else{var k=(0+g|0)>>>1|0;Yy(a,b,0,k,d,h,f);Yy(a,b,k,g,d,h,f);Zy(b,0,k,g,d,h)}32>(c-g|0)?Xy(b,g,c,d):(k=(g+c|0)>>>1|0, +Yy(a,b,g,k,d,h,f),Yy(a,b,k,c,d,h,f),Zy(b,g,k,c,d,h));Zy(b,0,g,c,d,h)}}else if(b instanceof jb)f=Gs(),32>(c-0|0)?Xy(b,0,c,d):(g=(0+c|0)>>>1|0,h=new jb(g-0|0),32>(g-0|0)?Xy(b,0,g,d):(k=(0+g|0)>>>1|0,Yy(a,b,0,k,d,h,f),Yy(a,b,k,g,d,h,f),Zy(b,0,k,g,d,h)),32>(c-g|0)?Xy(b,g,c,d):(k=(g+c|0)>>>1|0,Yy(a,b,g,k,d,h,f),Yy(a,b,k,c,d,h,f),Zy(b,g,k,c,d,h)),Zy(b,0,g,c,d,h));else if(b instanceof fb)d===Cp()?Ap(F(),b):(f=Bp(),32>(c-0|0)?Xy(b,0,c,d):(g=(0+c|0)>>>1|0,h=new fb(g-0|0),32>(g-0|0)?Xy(b,0,g,d):(k=(0+g|0)>>> +1|0,Yy(a,b,0,k,d,h,f),Yy(a,b,k,g,d,h,f),Zy(b,0,k,g,d,h)),32>(c-g|0)?Xy(b,g,c,d):(k=(g+c|0)>>>1|0,Yy(a,b,g,k,d,h,f),Yy(a,b,k,c,d,h,f),Zy(b,g,k,c,d,h)),Zy(b,0,g,c,d,h)));else if(b instanceof gb)f=Hs(),32>(c-0|0)?Xy(b,0,c,d):(g=(0+c|0)>>>1|0,h=new gb(g-0|0),32>(g-0|0)?Xy(b,0,g,d):(k=(0+g|0)>>>1|0,Yy(a,b,0,k,d,h,f),Yy(a,b,k,g,d,h,f),Zy(b,0,k,g,d,h)),32>(c-g|0)?Xy(b,g,c,d):(k=(g+c|0)>>>1|0,Yy(a,b,g,k,d,h,f),Yy(a,b,k,c,d,h,f),Zy(b,g,k,c,d,h)),Zy(b,0,g,c,d,h));else if(b instanceof bb)d===Fp()?pe(F(),b): +(f=oe(),32>(c-0|0)?Xy(b,0,c,d):(g=(0+c|0)>>>1|0,h=new bb(g-0|0),32>(g-0|0)?Xy(b,0,g,d):(k=(0+g|0)>>>1|0,Yy(a,b,0,k,d,h,f),Yy(a,b,k,g,d,h,f),Zy(b,0,k,g,d,h)),32>(c-g|0)?Xy(b,g,c,d):(k=(g+c|0)>>>1|0,Yy(a,b,g,k,d,h,f),Yy(a,b,k,c,d,h,f),Zy(b,g,k,c,d,h)),Zy(b,0,g,c,d,h)));else if(b instanceof cb)d===Ip()?Gp(F(),b):(f=Hp(),32>(c-0|0)?Xy(b,0,c,d):(g=(0+c|0)>>>1|0,h=new cb(g-0|0),32>(g-0|0)?Xy(b,0,g,d):(k=(0+g|0)>>>1|0,Yy(a,b,0,k,d,h,f),Yy(a,b,k,g,d,h,f),Zy(b,0,k,g,d,h)),32>(c-g|0)?Xy(b,g,c,d):(k=(g+c|0)>>> +1|0,Yy(a,b,g,k,d,h,f),Yy(a,b,k,c,d,h,f),Zy(b,g,k,c,d,h)),Zy(b,0,g,c,d,h)));else if(b instanceof db)d===Ep()?Dp(F(),b):(f=nl(),32>(c-0|0)?Xy(b,0,c,d):(g=(0+c|0)>>>1|0,h=new db(g-0|0),32>(g-0|0)?Xy(b,0,g,d):(k=(0+g|0)>>>1|0,Yy(a,b,0,k,d,h,f),Yy(a,b,k,g,d,h,f),Zy(b,0,k,g,d,h)),32>(c-g|0)?Xy(b,g,c,d):(k=(g+c|0)>>>1|0,Yy(a,b,g,k,d,h,f),Yy(a,b,k,c,d,h,f),Zy(b,g,k,c,d,h)),Zy(b,0,g,c,d,h)));else if(b instanceof ab)if(d===Ks()){for(d=c=0;c(c-0|0)?Xy(b,0,c,d):(g=(0+c|0)>>>1|0,h=new ab(g-0|0),32>(g-0|0)?Xy(b,0,g,d):(k=(0+g|0)>>>1|0,Yy(a,b,0,k,d,h,f),Yy(a,b,k,g,d,h,f),Zy(b,0,k,g,d,h)),32>(c-g|0)?Xy(b,g,c,d):(k=(g+c|0)>>>1|0,Yy(a,b,g,k,d,h,f),Yy(a,b,k,c,d,h,f),Zy(b,g,k,c,d,h)),Zy(b,0,g,c,d,h));else{if(null===b)throw P();throw new B(b);}}Wy.prototype.$classData=v({moa:0},!1,"scala.util.Sorting$",{moa:1,b:1});var $y;function Ls(){$y||($y=new Wy);return $y} +function az(a){bz||(bz=new cz);return bz.qoa?My.prototype.mo.call(a):a}function dz(){}dz.prototype=new t;dz.prototype.constructor=dz;function ez(a,b){return!(b instanceof fz)}function gz(a,b){return ez(0,b)?new Ze(b):E()}dz.prototype.$classData=v({roa:0},!1,"scala.util.control.NonFatal$",{roa:1,b:1});var hz;function iz(){hz||(hz=new dz);return hz}function jz(){}jz.prototype=new t;jz.prototype.constructor=jz;function kz(){}kz.prototype=jz.prototype; +jz.prototype.l=function(a,b){a=this.Dk(a,b);return-430675100+l(5,a<<13|a>>>19|0)|0};jz.prototype.Dk=function(a,b){b=l(-862048943,b);b=l(461845907,b<<15|b>>>17|0);return a^b};jz.prototype.ea=function(a,b){return lz(a^b)};function lz(a){a=l(-2048144789,a^(a>>>16|0));a=l(-1028477387,a^(a>>>13|0));return a^(a>>>16|0)}function mz(a,b,c){var d=a.l(-889275714,Ja("Tuple2"));d=a.l(d,b);d=a.l(d,c);return a.ea(d,2)} +function ig(a,b){var c=b.B();if(0===c)return Ja(b.A());var d=a.l(-889275714,Ja(b.A()));for(var f=0;fn=>(Fz(),k.$k(n)))(a,b);if(c){c=new Gz;try{var f=Hz(new Iz,d,Jz(),c);g=a(f)}catch(h){d=Sr(J(),h);if(null!==d)throw new Kz(Lz(c.qu),d);throw h;}}else var g=a(d);return g}Cz.prototype.$classData=v({xga:0},!1,"ujson.package$",{xga:1,b:1});var Dz;function Fz(){Dz||(Dz=new Cz);return Dz} +function Mz(a,b){return a.cu.a[b-a.TA|0]}function Nz(a,b){var c;if((c=b>=a.UA)&&!(c=b>=a.oG)){c=a.cu;c=null===c?new sg(Oz(a.oga),0===a.sG,a.sG):new sg(c,!0,-1);if(null===c)throw new B(c);var d=!!c.qk,f=c.rk|0;a.cu=c.pk;a.UA=a.UA+f|0;d&&(a.oG=b);c=d}return c}function Pz(a,b,c){return new Qz(a.cu,b-a.TA|0,c)}function Rz(){}Rz.prototype=new t;Rz.prototype.constructor=Rz;function Sz(){}Sz.prototype=Rz.prototype;function Tz(){}Tz.prototype=new t;Tz.prototype.constructor=Tz; +Tz.prototype.$classData=v({Wga:0},!1,"upickle.core.CharOps$",{Wga:1,b:1});var Uz;function Vz(a){return 65535&(a+(10<=a?87:48)|0)}function Wz(){this.CS=null;Xz=this;for(var a=new eb(128),b=0;10>b;)a.a[48+b|0]=b,b=1+b|0;for(b=0;16>b;)a.a[97+b|0]=10+b|0,a.a[65+b|0]=10+b|0,b=1+b|0;this.CS=a}Wz.prototype=new t;Wz.prototype.constructor=Wz;function Yz(a,b){return a.CS.a[b]} +function Zz(a,b,c,d){a=La(c);var f=2+a|0;$z(b,f);aA(b,34);var g=0;for($z(b,f);gh||126>12));aA(k,Vz(15&h>>8));aA(k,Vz(15&h>>4));aA(k,Vz(15&h))}else cA(b,h)}g=1+g|0}aA(b,34)} +function bA(a,b,c,d){$z(a,1+(b-c|0)|0);aA(a,92);aA(a,d)}Wz.prototype.$classData=v({$ga:0},!1,"upickle.core.RenderUtils$",{$ga:1,b:1});var Xz;function dA(){Xz||(Xz=new Wz);return Xz}function Yba(a){var b=a.EC();z();var c=Af(new Bf,[a]);a:for(a=b,b=Xb(A(),c);;)if(a instanceof Ze)c=a.Sb,a=c.EC(),b=new Vb(c,b);else{if(E()===a)break a;throw new B(a);}return b}function Lz(a){var b=Yba(a).t();b=new vf(b,new C((()=>c=>c.BI())(a)));a=new Ob(b,new C((()=>c=>"["+c+"]")(a)));return"$"+mg(a,"","","")} +function Gz(){this.qu=null;this.qu=Jz()}Gz.prototype=new t;Gz.prototype.constructor=Gz;Gz.prototype.$classData=v({gha:0},!1,"upickle.core.TraceVisitor$Wrapper",{gha:1,b:1});function eA(){throw new fA("expected dictionary");}function gA(a){this.Uq=null;if(null===a)throw I(J(),null);this.Uq=a}gA.prototype=new t;gA.prototype.constructor=gA;function Ch(a,b){a=a.Uq;null===X().rB&&null===X().rB&&(X().rB=new hA(a));a=X().rB;return new iA(a,b)} +function jA(a,b,c){return b&&b.$classData&&b.$classData.Hb.IG&&c&&c.$classData&&c.$classData.Hb.LG?new kA(a,b,c):new lA(a,b,c)}gA.prototype.$classData=v({hha:0},!1,"upickle.core.Types$ReadWriter$",{hha:1,b:1});function mA(a){this.HG=null;if(null===a)throw I(J(),null);this.HG=a}mA.prototype=new t;mA.prototype.constructor=mA;mA.prototype.$classData=v({kha:0},!1,"upickle.core.Types$Reader$",{kha:1,b:1});function hA(a){this.oB=null;if(null===a)throw I(J(),null);this.oB=a}hA.prototype=new t; +hA.prototype.constructor=hA;hA.prototype.$classData=v({oha:0},!1,"upickle.core.Types$TaggedReadWriter$",{oha:1,b:1});function nA(a){this.KG=null;if(null===a)throw I(J(),null);this.KG=a}nA.prototype=new t;nA.prototype.constructor=nA;nA.prototype.$classData=v({qha:0},!1,"upickle.core.Types$TaggedReader$",{qha:1,b:1});function oA(a){this.MS=null;if(null===a)throw I(J(),null);this.MS=a}oA.prototype=new t;oA.prototype.constructor=oA; +oA.prototype.$classData=v({uha:0},!1,"upickle.core.Types$TaggedWriter$",{uha:1,b:1});function Y(a,b,c){return null===c?b.yc(-1):a.ta(b,c)}function pA(a,b){var c=a.sa();null===X().uB&&null===X().uB&&(X().uB=new qA(c));c=X().uB;return new rA(c,a,b)}var Zba=v({ra:0},!0,"upickle.core.Types$Writer",{ra:1,b:1});function qA(a){this.QS=null;if(null===a)throw I(J(),null);this.QS=a}qA.prototype=new t;qA.prototype.constructor=qA;qA.prototype.$classData=v({Eha:0},!1,"upickle.core.Types$Writer$",{Eha:1,b:1}); +function sA(){tA=this;new (x(ja).M)("00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f 10 11 12 13 14 15 16 17 18 19 1a 1b 1c 1d 1e 1f 20 21 22 23 24 25 26 27 28 29 2a 2b 2c 2d 2e 2f 30 31 32 33 34 35 36 37 38 39 3a 3b 3c 3d 3e 3f 40 41 42 43 44 45 46 47 48 49 4a 4b 4c 4d 4e 4f 50 51 52 53 54 55 56 57 58 59 5a 5b 5c 5d 5e 5f 60 61 62 63 64 65 66 67 68 69 6a 6b 6c 6d 6e 6f 70 71 72 73 74 75 76 77 78 79 7a 7b 7c 7d 7e 7f 80 81 82 83 84 85 86 87 88 89 8a 8b 8c 8d 8e 8f 90 91 92 93 94 95 96 97 98 99 9a 9b 9c 9d 9e 9f a0 a1 a2 a3 a4 a5 a6 a7 a8 a9 aa ab ac ad ae af b0 b1 b2 b3 b4 b5 b6 b7 b8 b9 ba bb bc bd be bf c0 c1 c2 c3 c4 c5 c6 c7 c8 c9 ca cb cc cd ce cf d0 d1 d2 d3 d4 d5 d6 d7 d8 d9 da db dc dd de df e0 e1 e2 e3 e4 e5 e6 e7 e8 e9 ea eb ec ed ee ef f0 f1 f2 f3 f4 f5 f6 f7 f8 f9 fa fb fc fd fe ff".split(" "))} +sA.prototype=new t;sA.prototype.constructor=sA; +function uA(a,b,c,d){if(-1===d)var f=1;else{a=1;f=vA(0,b,1+d|0,La(b));var g=f.k;f=f.o;for(var h=0;;){var k=h,n=k>>31;if(n===f?(-2147483648^k)<(-2147483648^g):n>31;if(214748364===n?1288490188<=(-2147483648^k):214748364>31;k=g.k;a=65535&k;n=k>>>16|0;var r=65535&f,u=f>>>16|0,w=l(a,r);r=l(n,r);var y=l(a,u);a=w+((r+y|0)<<16)|0;w=(w>>>16|0)+y|0;g=(((l(k,h)+l(g.o,f)|0)+l(n,u)|0)+(w>>> +16|0)|0)+(((65535&w)+r|0)>>>16|0)|0;if(-1===c)c=fa;else{d=-1!==d?d:La(b);h=vA(0,b,1+c|0,d);k=f>>31;n=h.k;var K=65535&n;u=n>>>16|0;y=65535&f;w=f>>>16|0;r=l(K,y);y=l(u,y);var U=l(K,w);K=r+((y+U|0)<<16)|0;r=(r>>>16|0)+U|0;f=(((l(n,k)+l(h.o,f)|0)+l(u,w)|0)+(r>>>16|0)|0)+(((65535&r)+y|0)>>>16|0)|0;h=K;for(c=d-(1+c|0)|0;0=d)throw new Iw(Ua(b));if(19n||9>>16|0;r=k(10,65535&r);var u=k(10,f);f=r+(u<<16)|0;r=(r>>>16|0)+u|0;g=k(10,g)+(r>>>16|0)|0;r=n>>31;n=f-n|0;g=(-2147483648^n)>(-2147483648^f)?-1+(g-r|0)|0:g-r|0;f=n;l=1+l|0}if(19===c&&(0<=g||0===f&&-2147483648===g&&0>h))throw new Iw(Ua(b));b=g;d=h;h=f;f=65535&h;l=h>>>16|0;g=65535&a;c=a>>>16|0;n=k(f, -g);g=k(l,g);r=k(f,c);f=n+((g+r|0)<<16)|0;n=(n>>>16|0)+r|0;a=(((k(h,d)+k(b,a)|0)+k(l,c)|0)+(n>>>16|0)|0)+(((65535&n)+g|0)>>>16|0)|0;return new p(f,a)}Ew.prototype.$classData=x({b$:0},!1,"upickle.core.Util$",{b$:1,b:1});var Fw;function Jw(){Fw||(Fw=new Ew);return Fw}function Kw(){this.dP=null;Lw=this;this.dP=new Mw("#D32F2F","#E64A19","#0097A7","#388E3C","#7B1FA2","#5C6BC0","#78909C","#B0BEC5","")}Kw.prototype=new t;Kw.prototype.constructor=Kw; -Kw.prototype.$classData=x({raa:0},!1,"wvlet.log.JSConsoleLogHandler$",{raa:1,b:1});var Lw;function Nw(){}Nw.prototype=new t;Nw.prototype.constructor=Nw;Nw.prototype.setLogLevel=function(a,b){a=Ow(Mc(),a);b=Pw(Qw(),b);Qc(a).vk=b.Hb;return!0};Nw.prototype.setDefaultLogLevel=function(a){var b=Mc();a=Pw(Qw(),a);Qc(b.jb).vk=a.Hb;return!0};Nw.prototype.$classData=x({taa:0},!1,"wvlet.log.JSLogger$",{taa:1,b:1});var Rw; -function Sw(){this.fP=this.eP=this.gP=null;Tw=this;this.gP=Yg(Xg(),"\\s+at (sbt\\.|org\\.scalatest\\.|wvlet\\.airspec\\.).*");this.fP=this.eP=new C((()=>a=>{var b=Uw().gP;return!Zg(new $g(b,a,0,a.length|0))})(this))}Sw.prototype=new t;Sw.prototype.constructor=Sw; -function Vw(a,b){if(null===b)return"";var c=new Ww,d=Xw,f=new Yw;f.du=c;f.qN=!1;Zw(f);f.cu=!1;f.$j=!1;d(b,f);b=c.g();ap();b=dh(b,"\n");a=a.fP;d=Zl($l(),Uh(sa(b))).Md();f=d===m(Cb);c=[];for(var g=0;g(n,r)=>{ky();if(void 0===r)throw qp("undefined.get");null===r?Ts(h,new Is(l)):l.addQuad(r)})(d,c));return d} -function ly(a,b){var c=new ca.Store,d=Mu(new Nu),f=new fa.RdfXmlParser(Bc());f.on("data",my(ny(),new C(((g,h)=>l=>{h.addQuad(l)})(a,c)))).on("error",my(ny(),new C((()=>g=>{var h=H();nc();h.k()||qe();throw new re(g);})(a)))).on("end",oy(ny(),new Tm(((g,h,l)=>()=>Ts(h,new Is(l)))(a,d,c))));f.write(b);f.end();return d}function py(a,b,c){return"text/rdf-xml"===c?ly(a,b):iy(b,c)} -function qy(a,b,c){try{Ou();var d=(0,aa.newEngine)();ry||(ry=new sy);var f=ry.PG,g=d.query;zc||(zc=new vc);var h=g.call(d,b,wc(c,f)),l=new Is(ty(Lu(h),new C((n=>r=>{Ou();r=(0,aa.newEngine)().resultToString(r,"application/sparql-results+json");return ty(uy(Ps(Lu(r),new C((u=>w=>{var A=Mu(new Nu),M=new vy("");w.data.on("data",my(ny(),new C(((T,V)=>ha=>{V.Bb=""+V.Bb+Ua(ha)})(u,M)))).on("end",oy(ny(),new Tm(((T,V,ha)=>()=>Ts(V,new Is(ha.Bb)))(u,A,M)))).on("error",my(ny(),new C(((T,V)=>ha=>{var ra=H(); -nc();ra.k()||qe();ha=new re(ha);return Ys(V,ha)})(u,A))));return A})(n)),ky().uq),new wy,ky().uq),new C((u=>w=>Ps(w,new C((()=>A=>new xy(A,"json"))(u)),ky().uq))(n)),ky().uq)})(a)),ky().uq))}catch(n){if(a=Yu(L(),n),null!==a)a:{if(null!==a&&(b=mv(ov(),a),!b.k())){a=b.Ja();l=new ms(a);break a}throw K(L(),a);}else throw n;}if(l instanceof Is)return l.Ji;if(l instanceof ms)throw a=l.Fh.g(),b=H(),nc(),b.k()||qe(),new re(a);throw new D(l);} -ey.prototype.$classData=x({IU:0},!1,"inrae.semantic_web.driver.ComunicaRequestDriver$",{IU:1,b:1,d:1});var fy;function ky(){fy||(fy=new ey);return fy} -function yy(a,b){var c=cd(fd(),a).pE(b);if(c instanceof dd)return b=c.Qb,Os(Gs(),new Tm(((n,r)=>()=>{var u=new zy(Ay().Sw);id(n,u);return new xy(r,"json")})(a,b)),a.cE());if(H()===c){c=new zy(Ay().Uw);id(a,c);var d=tj();c=1E6*+(0,Ai().mz)();c=ju(d,c);d=d.sa;var f=tj(),g=1E6*+(0,Ai().mz)();g=ju(f,g);f=f.sa;var h=Mc().jb,l=Nc();Oc(Qc(h),l.Hb)&&Rc(Mc().jb,Nc(),new Sc("com/github/p2m2/shared/src/main/scala/inrae/semantic_web/driver/RequestDriver.scala","RequestDriver.scala", -37,14),"RequestDriver Send request "+new p(c,d)+","+new p(g,f));return Ps(a.wQ(b),new C(((n,r,u)=>w=>{var A=new zy(Ay().LB);id(n,A);var M=tj();A=1E6*+(0,Ai().mz)();A=ju(M,A);var T=M.sa,V=r.r;M=A-r.m|0;A=(-2147483648^M)>(-2147483648^A)?-1+(T-V|0)|0:T-V|0;A=Wt(tj(),M,A)/1E9;M=Mc().jb;T=Nc();Oc(Qc(M),T.Hb)&&Rc(Mc().jb,Nc(),new Sc("com/github/p2m2/shared/src/main/scala/inrae/semantic_web/driver/RequestDriver.scala","RequestDriver.scala",42,16),"RequestDriver Receive results -- Elapsed Time : "+ -A);A=Mc().jb;M=Nc();Oc(Qc(A),M.Hb)&&(A=Mc().jb,M=Nc(),Rc(A,M,new Sc("com/github/p2m2/shared/src/main/scala/inrae/semantic_web/driver/RequestDriver.scala","RequestDriver.scala",43,16),"RequestDriver Memorize (Mb) \x3d\x3e"+(w.mr.length|0)/1048576));A=cd(fd(),n);T=w.mr;M=A.sx;T=ch(rh(),T);A.sx=M.Wi(u,T);A=new zy(Ay().Sw);id(n,A);return w})(a,new p(g,f),b)),a.cE())}throw new D(c);} -function By(){this.LH=null;Cy=this;var a=nd(),b=U(),c=new Dy(new X,new X,new X);b=new Ey(Fy(b),"inrae.semantic_web.node.Abs",c);c=U();var d=new Gy,f=new Hy(m(Iy));this.LH=uw(a,b,new Jy(Ky(c),f,"inrae.semantic_web.node.Abs",d))}By.prototype=new t;By.prototype.constructor=By;By.prototype.$classData=x({RU:0},!1,"inrae.semantic_web.node.Abs$",{RU:1,b:1,d:1});var Cy;function Wd(){Cy||(Cy=new By);return Cy}function Ly(){this.S=this.Q=this.D=null}Ly.prototype=new ne;Ly.prototype.constructor=Ly; -function My(){}My.prototype=Ly.prototype;Ly.prototype.$g=function(){return!1};function Ny(){this.Yw=null;Oy=this;var a=nd(),b=U(),c=new Py(new X,new X,new X,new X);b=new Ey(Fy(b),"inrae.semantic_web.node.Bind",c);c=U();var d=new Qy,f=new Hy(m(Ry));this.Yw=uw(a,b,new Jy(Ky(c),f,"inrae.semantic_web.node.Bind",d))}Ny.prototype=new t;Ny.prototype.constructor=Ny;Ny.prototype.$classData=x({aV:0},!1,"inrae.semantic_web.node.Bind$",{aV:1,b:1,d:1});var Oy;function Ge(){Oy||(Oy=new Ny);return Oy} -function Sy(){this.VH=null;Ty=this;var a=nd(),b=U(),c=new Uy(new X,new X,new X);b=new Ey(Fy(b),"inrae.semantic_web.node.Ceil",c);c=U();var d=new Vy,f=new Hy(m(Wy));this.VH=uw(a,b,new Jy(Ky(c),f,"inrae.semantic_web.node.Ceil",d))}Sy.prototype=new t;Sy.prototype.constructor=Sy;Sy.prototype.$classData=x({kV:0},!1,"inrae.semantic_web.node.Ceil$",{kV:1,b:1,d:1});var Ty;function Yd(){Ty||(Ty=new Sy);return Ty} -function Xy(){this.aI=null;Yy=this;var a=nd(),b=U(),c=new Zy(new X,new X,new X,new X,new X);b=new Ey(Fy(b),"inrae.semantic_web.node.Contains",c);c=U();var d=new $y,f=new Hy(m(az));this.aI=uw(a,b,new Jy(Ky(c),f,"inrae.semantic_web.node.Contains",d))}Xy.prototype=new t;Xy.prototype.constructor=Xy;Xy.prototype.$classData=x({sV:0},!1,"inrae.semantic_web.node.Contains$",{sV:1,b:1,d:1});var Yy;function Jd(){Yy||(Yy=new Xy);return Yy} -function bz(){this.gI=null;cz=this;var a=nd(),b=U(),c=new dz(new X,new X,new X,new X,new X);b=new Ey(Fy(b),"inrae.semantic_web.node.Count",c);c=U();var d=new gz,f=new Hy(m(hz));this.gI=uw(a,b,new Jy(Ky(c),f,"inrae.semantic_web.node.Count",d))}bz.prototype=new t;bz.prototype.constructor=bz;bz.prototype.$classData=x({CV:0},!1,"inrae.semantic_web.node.Count$",{CV:1,b:1,d:1});var cz;function od(){cz||(cz=new bz);return cz} -function iz(){this.lI=null;jz=this;var a=nd(),b=U(),c=new kz(new X,new X,new X,new X);b=new Ey(Fy(b),"inrae.semantic_web.node.CountAll",c);c=U();var d=new lz,f=new Hy(m(mz));this.lI=uw(a,b,new Jy(Ky(c),f,"inrae.semantic_web.node.CountAll",d))}iz.prototype=new t;iz.prototype.constructor=iz;iz.prototype.$classData=x({MV:0},!1,"inrae.semantic_web.node.CountAll$",{MV:1,b:1,d:1});var jz;function pd(){jz||(jz=new iz);return jz} -function nz(){this.pI=null;oz=this;var a=nd(),b=U(),c=new pz(new X,new X,new X);b=new Ey(Fy(b),"inrae.semantic_web.node.Datatype",c);c=U();var d=new qz,f=new Hy(m(rz));this.pI=uw(a,b,new Jy(Ky(c),f,"inrae.semantic_web.node.Datatype",d))}nz.prototype=new t;nz.prototype.constructor=nz;nz.prototype.$classData=x({VV:0},!1,"inrae.semantic_web.node.Datatype$",{VV:1,b:1,d:1});var oz;function ge(){oz||(oz=new nz);return oz} -function sz(){this.ax=null;tz=this;var a=nd(),b=U(),c=new uz(new X,new X,new X,new X,new X);b=new Ey(Fy(b),"inrae.semantic_web.node.DatatypeNode",c);c=U();var d=new vz,f=new Hy(m(wz));this.ax=uw(a,b,new Jy(Ky(c),f,"inrae.semantic_web.node.DatatypeNode",d))}sz.prototype=new t;sz.prototype.constructor=sz;sz.prototype.$classData=x({cW:0},!1,"inrae.semantic_web.node.DatatypeNode$",{cW:1,b:1,d:1});var tz;function Ee(){tz||(tz=new sz);return tz} -function xz(){this.yI=null;yz=this;var a=nd(),b=U(),c=new zz(new X,new X,new X);b=new Ey(Fy(b),"inrae.semantic_web.node.Distinct",c);c=U();var d=new Az,f=new Hy(m(Bz));this.yI=uw(a,b,new Jy(Ky(c),f,"inrae.semantic_web.node.Distinct",d))}xz.prototype=new t;xz.prototype.constructor=xz;xz.prototype.$classData=x({mW:0},!1,"inrae.semantic_web.node.Distinct$",{mW:1,b:1,d:1});var yz;function We(){yz||(yz=new xz);return yz} -function Cz(){this.EI=null;Dz=this;var a=nd(),b=U(),c=new Ez(new X,new X,new X,new X,new X);b=new Ey(Fy(b),"inrae.semantic_web.node.Equal",c);c=U();var d=new Fz,f=new Hy(m(Gz));this.EI=uw(a,b,new Jy(Ky(c),f,"inrae.semantic_web.node.Equal",d))}Cz.prototype=new t;Cz.prototype.constructor=Cz;Cz.prototype.$classData=x({uW:0},!1,"inrae.semantic_web.node.Equal$",{uW:1,b:1,d:1});var Dz;function Od(){Dz||(Dz=new Cz);return Dz}function Hz(){this.S=this.Q=this.D=null}Hz.prototype=new ne; -Hz.prototype.constructor=Hz;function Iz(){}Iz.prototype=Hz.prototype;function Jz(a,b,c,d,f){a.W=b;le(a,c,d,f)}function lf(){this.S=this.Q=this.D=null;this.W=!1}lf.prototype=new ne;lf.prototype.constructor=lf;function Kz(){}Kz.prototype=lf.prototype;lf.prototype.$g=function(a){return a instanceof lf}; -function Lz(){this.JI=null;Mz=this;var a=nd(),b=U(),c=new Nz(new X,new X,new X);b=new Ey(Fy(b),"inrae.semantic_web.node.Floor",c);c=U();var d=new Oz,f=new Hy(m(Pz));this.JI=uw(a,b,new Jy(Ky(c),f,"inrae.semantic_web.node.Floor",d))}Lz.prototype=new t;Lz.prototype.constructor=Lz;Lz.prototype.$classData=x({GW:0},!1,"inrae.semantic_web.node.Floor$",{GW:1,b:1,d:1});var Mz;function Zd(){Mz||(Mz=new Lz);return Mz} -function Qz(){this.SI=null;Rz=this;var a=nd(),b=U(),c=new Sz(new X,new X,new X,new X,new X);b=new Ey(Fy(b),"inrae.semantic_web.node.Inf",c);c=U();var d=new Tz,f=new Hy(m(Uz));this.SI=uw(a,b,new Jy(Ky(c),f,"inrae.semantic_web.node.Inf",d))}Qz.prototype=new t;Qz.prototype.constructor=Qz;Qz.prototype.$classData=x({SW:0},!1,"inrae.semantic_web.node.Inf$",{SW:1,b:1,d:1});var Rz;function Qd(){Rz||(Rz=new Qz);return Rz} -function Vz(){this.YI=null;Wz=this;var a=nd(),b=U(),c=new Xz(new X,new X,new X,new X,new X);b=new Ey(Fy(b),"inrae.semantic_web.node.InfEqual",c);c=U();var d=new Yz,f=new Hy(m(Zz));this.YI=uw(a,b,new Jy(Ky(c),f,"inrae.semantic_web.node.InfEqual",d))}Vz.prototype=new t;Vz.prototype.constructor=Vz;Vz.prototype.$classData=x({bX:0},!1,"inrae.semantic_web.node.InfEqual$",{bX:1,b:1,d:1});var Wz;function Rd(){Wz||(Wz=new Vz);return Wz} -function $z(){this.cJ=null;aA=this;var a=nd(),b=U(),c=new bA(new X,new X,new X,new X);b=new Ey(Fy(b),"inrae.semantic_web.node.Lang",c);c=U();var d=new cA,f=new Hy(m(dA));this.cJ=uw(a,b,new Jy(Ky(c),f,"inrae.semantic_web.node.Lang",d))}$z.prototype=new t;$z.prototype.constructor=$z;$z.prototype.$classData=x({lX:0},!1,"inrae.semantic_web.node.Lang$",{lX:1,b:1,d:1});var aA;function vd(){aA||(aA=new $z);return aA} -function eA(){this.hJ=null;fA=this;var a=nd(),b=U(),c=new gA(new X,new X,new X,new X);b=new Ey(Fy(b),"inrae.semantic_web.node.LangMatches",c);c=U();var d=new hA,f=new Hy(m(iA));this.hJ=uw(a,b,new Jy(Ky(c),f,"inrae.semantic_web.node.LangMatches",d))}eA.prototype=new t;eA.prototype.constructor=eA;eA.prototype.$classData=x({uX:0},!1,"inrae.semantic_web.node.LangMatches$",{uX:1,b:1,d:1});var fA;function wd(){fA||(fA=new eA);return fA} -function jA(){this.mJ=null;kA=this;var a=nd(),b=U(),c=new lA(new X,new X,new X,new X);b=new Ey(Fy(b),"inrae.semantic_web.node.Limit",c);c=U();var d=new mA,f=new Hy(m(nA));this.mJ=uw(a,b,new Jy(Ky(c),f,"inrae.semantic_web.node.Limit",d))}jA.prototype=new t;jA.prototype.constructor=jA;jA.prototype.$classData=x({DX:0},!1,"inrae.semantic_web.node.Limit$",{DX:1,b:1,d:1});var kA;function Ze(){kA||(kA=new jA);return kA} -function oA(){this.rJ=null;pA=this;var a=nd(),b=U(),c=new qA(new X,new X,new X,new X);b=new Ey(Fy(b),"inrae.semantic_web.node.LinkFrom",c);c=U();var d=new rA,f=new Hy(m(sA));this.rJ=uw(a,b,new Jy(Ky(c),f,"inrae.semantic_web.node.LinkFrom",d))}oA.prototype=new t;oA.prototype.constructor=oA;oA.prototype.Bn=function(){return I(J().u,F())};oA.prototype.jt=function(){E();var a=F();return G(0,a)};oA.prototype.$classData=x({MX:0},!1,"inrae.semantic_web.node.LinkFrom$",{MX:1,b:1,d:1});var pA; -function Pe(){pA||(pA=new oA);return pA}function tA(){this.wJ=null;uA=this;var a=nd(),b=U(),c=new vA(new X,new X,new X,new X);b=new Ey(Fy(b),"inrae.semantic_web.node.LinkTo",c);c=U();var d=new wA,f=new Hy(m(xA));this.wJ=uw(a,b,new Jy(Ky(c),f,"inrae.semantic_web.node.LinkTo",d))}tA.prototype=new t;tA.prototype.constructor=tA;tA.prototype.Bn=function(){return I(J().u,F())};tA.prototype.jt=function(){E();var a=F();return G(0,a)}; -tA.prototype.$classData=x({VX:0},!1,"inrae.semantic_web.node.LinkTo$",{VX:1,b:1,d:1});var uA;function Oe(){uA||(uA=new tA);return uA}function yA(){this.BJ=null;zA=this;var a=nd(),b=U(),c=new AA(new X,new X,new X,new X);b=new Ey(Fy(b),"inrae.semantic_web.node.ListValues",c);c=U();var d=new BA,f=new Hy(m(CA));this.BJ=uw(a,b,new Jy(Ky(c),f,"inrae.semantic_web.node.ListValues",d))}yA.prototype=new t;yA.prototype.constructor=yA; -yA.prototype.$classData=x({dY:0},!1,"inrae.semantic_web.node.ListValues$",{dY:1,b:1,d:1});var zA;function De(){zA||(zA=new yA);return zA}function DA(a,b,c,d,f){a.Wg=b;le(a,c,d,f);b=nd();c=[je().QB,ke().OB];a.NB=qd(b,qc(new rc,c))}function EA(){this.NB=this.Wg=this.S=this.Q=this.D=null}EA.prototype=new ne;EA.prototype.constructor=EA;function FA(){}FA.prototype=EA.prototype; -function GA(){this.OB=null;HA=this;var a=nd(),b=U(),c=new IA(new X,new X,new X,new X);b=new Ey(Fy(b),"inrae.semantic_web.node.NotBlock",c);c=U();var d=new JA,f=new Hy(m(KA));this.OB=uw(a,b,new Jy(Ky(c),f,"inrae.semantic_web.node.NotBlock",d))}GA.prototype=new t;GA.prototype.constructor=GA;GA.prototype.$classData=x({pY:0},!1,"inrae.semantic_web.node.NotBlock$",{pY:1,b:1,d:1});var HA;function ke(){HA||(HA=new GA);return HA} -function LA(){this.MJ=null;MA=this;var a=nd(),b=U(),c=new NA(new X,new X,new X,new X,new X);b=new Ey(Fy(b),"inrae.semantic_web.node.NotEqual",c);c=U();var d=new OA,f=new Hy(m(PA));this.MJ=uw(a,b,new Jy(Ky(c),f,"inrae.semantic_web.node.NotEqual",d))}LA.prototype=new t;LA.prototype.constructor=LA;LA.prototype.$classData=x({yY:0},!1,"inrae.semantic_web.node.NotEqual$",{yY:1,b:1,d:1});var MA;function Pd(){MA||(MA=new LA);return MA} -function QA(){this.RJ=null;RA=this;var a=nd(),b=U(),c=new SA(new X,new X,new X,new X);b=new Ey(Fy(b),"inrae.semantic_web.node.ObjectOf",c);c=U();var d=new TA,f=new Hy(m(UA));this.RJ=uw(a,b,new Jy(Ky(c),f,"inrae.semantic_web.node.ObjectOf",d))}QA.prototype=new t;QA.prototype.constructor=QA;QA.prototype.Bn=function(){return I(J().u,F())};QA.prototype.jt=function(){E();var a=F();return G(0,a)};QA.prototype.$classData=x({IY:0},!1,"inrae.semantic_web.node.ObjectOf$",{IY:1,b:1,d:1});var RA; -function Ne(){RA||(RA=new QA);return RA}function VA(){this.WJ=null;WA=this;var a=nd(),b=U(),c=new XA(new X,new X,new X,new X);b=new Ey(Fy(b),"inrae.semantic_web.node.Offset",c);c=U();var d=new YA,f=new Hy(m(ZA));this.WJ=uw(a,b,new Jy(Ky(c),f,"inrae.semantic_web.node.Offset",d))}VA.prototype=new t;VA.prototype.constructor=VA;VA.prototype.$classData=x({RY:0},!1,"inrae.semantic_web.node.Offset$",{RY:1,b:1,d:1});var WA;function Ye(){WA||(WA=new VA);return WA} -function $A(){this.aK=null;aB=this;var a=nd(),b=U(),c=new bB(new X,new X,new X,new X);b=new Ey(Fy(b),"inrae.semantic_web.node.OrderByAsc",c);c=U();var d=new cB,f=new Hy(m(dB));this.aK=uw(a,b,new Jy(Ky(c),f,"inrae.semantic_web.node.OrderByAsc",d))}$A.prototype=new t;$A.prototype.constructor=$A;$A.prototype.$classData=x({$Y:0},!1,"inrae.semantic_web.node.OrderByAsc$",{$Y:1,b:1,d:1});var aB;function Se(){aB||(aB=new $A);return aB} -function eB(){this.fK=null;fB=this;var a=nd(),b=U(),c=new gB(new X,new X,new X,new X);b=new Ey(Fy(b),"inrae.semantic_web.node.OrderByDesc",c);c=U();var d=new hB,f=new Hy(m(iB));this.fK=uw(a,b,new Jy(Ky(c),f,"inrae.semantic_web.node.OrderByDesc",d))}eB.prototype=new t;eB.prototype.constructor=eB;eB.prototype.$classData=x({iZ:0},!1,"inrae.semantic_web.node.OrderByDesc$",{iZ:1,b:1,d:1});var fB;function Te(){fB||(fB=new eB);return fB} -function jB(){this.lK=null;kB=this;var a=nd(),b=U(),c=new lB(new X,new X,new X,new X);b=new Ey(Fy(b),"inrae.semantic_web.node.Projection",c);c=U();var d=new mB,f=new Hy(m(nB));this.lK=uw(a,b,new Jy(Ky(c),f,"inrae.semantic_web.node.Projection",d))}jB.prototype=new t;jB.prototype.constructor=jB;jB.prototype.$classData=x({sZ:0},!1,"inrae.semantic_web.node.Projection$",{sZ:1,b:1,d:1});var kB;function Ue(){kB||(kB=new jB);return kB} -function oB(){this.rK=null;pB=this;var a=nd(),b=U(),c=new qB(new X,new X,new X,new X,new X);b=new Ey(Fy(b),"inrae.semantic_web.node.ProjectionExpression",c);c=U();var d=new rB,f=new Hy(m(sB));this.rK=uw(a,b,new Jy(Ky(c),f,"inrae.semantic_web.node.ProjectionExpression",d))}oB.prototype=new t;oB.prototype.constructor=oB;oB.prototype.$classData=x({BZ:0},!1,"inrae.semantic_web.node.ProjectionExpression$",{BZ:1,b:1,d:1});var pB;function Ie(){pB||(pB=new oB);return pB} -function tB(){this.vK=null;uB=this;var a=nd(),b=U(),c=new vB(new X,new X,new X);b=new Ey(Fy(b),"inrae.semantic_web.node.Rand",c);c=U();var d=new wB,f=new Hy(m(xB));this.vK=uw(a,b,new Jy(Ky(c),f,"inrae.semantic_web.node.Rand",d))}tB.prototype=new t;tB.prototype.constructor=tB;tB.prototype.$classData=x({LZ:0},!1,"inrae.semantic_web.node.Rand$",{LZ:1,b:1,d:1});var uB;function $d(){uB||(uB=new tB);return uB}function te(){this.S=this.Q=this.D=null}te.prototype=new ne;te.prototype.constructor=te; -function yB(){}yB.prototype=te.prototype;te.prototype.$g=function(a){return!(a instanceof qg)&&(a instanceof zB||a instanceof lf||a instanceof Gf||a instanceof If||a instanceof kf)};var bf=x({Pq:0},!1,"inrae.semantic_web.node.RdfNode",{Pq:1,hb:1,b:1});te.prototype.$classData=bf; -function AB(){this.AK=null;BB=this;var a=nd(),b=U(),c=new CB(new X,new X,new X);b=new Ey(Fy(b),"inrae.semantic_web.node.Reduced",c);c=U();var d=new DB,f=new Hy(m(EB));this.AK=uw(a,b,new Jy(Ky(c),f,"inrae.semantic_web.node.Reduced",d))}AB.prototype=new t;AB.prototype.constructor=AB;AB.prototype.$classData=x({UZ:0},!1,"inrae.semantic_web.node.Reduced$",{UZ:1,b:1,d:1});var BB;function Xe(){BB||(BB=new AB);return BB} -function FB(){this.HK=null;GB=this;var a=nd(),b=U(),c=new HB(new X,new X,new X,new X,new X,new X);b=new Ey(Fy(b),"inrae.semantic_web.node.Regex",c);c=U();var d=new IB,f=new Hy(m(JB));this.HK=uw(a,b,new Jy(Ky(c),f,"inrae.semantic_web.node.Regex",d))}FB.prototype=new t;FB.prototype.constructor=FB;FB.prototype.$classData=x({b_:0},!1,"inrae.semantic_web.node.Regex$",{b_:1,b:1,d:1});var GB;function Id(){GB||(GB=new FB);return GB} -function KB(){this.OK=null;LB=this;var a=nd(),b=U(),c=new MB(new X,new X,new X,new X,new X,new X);b=new Ey(Fy(b),"inrae.semantic_web.node.Replace",c);c=U();var d=new NB,f=new Hy(m(OB));this.OK=uw(a,b,new Jy(Ky(c),f,"inrae.semantic_web.node.Replace",d))}KB.prototype=new t;KB.prototype.constructor=KB;KB.prototype.$classData=x({m_:0},!1,"inrae.semantic_web.node.Replace$",{m_:1,b:1,d:1});var LB;function de(){LB||(LB=new KB);return LB} -function PB(){this.hx=null;QB=this;var a=nd(),b=U(),c=new RB(new X,new X,new X,new X,new X,new X,new X,new X,new X,new X);b=new Ey(Fy(b),"inrae.semantic_web.node.Root",c);c=U();var d=new SB,f=new Hy(m(TB));this.hx=uw(a,b,new Jy(Ky(c),f,"inrae.semantic_web.node.Root",d))}PB.prototype=new t;PB.prototype.constructor=PB;PB.prototype.Bn=function(){J();var a=F();return hh(F(),a)}; -function UB(){ye();E();var a=new VB("http://www.w3.org/2002/07/owl#");a=z(new B,"owl",a);var b=new VB("http://www.w3.org/1999/02/22-rdf-syntax-ns#");b=z(new B,"rdf",b);var c=new VB("http://www.w3.org/2000/01/rdf-schema#");c=z(new B,"rdfs",c);var d=new VB("http://www.w3.org/2001/XMLSchema#");a=[a,b,c,z(new B,"xsd",d)];a=qc(new rc,a);return G(0,a)}PB.prototype.$classData=x({y_:0},!1,"inrae.semantic_web.node.Root$",{y_:1,b:1,d:1});var QB;function ye(){QB||(QB=new PB);return QB} -function WB(){this.bL=null;XB=this;var a=nd(),b=U(),c=new YB(new X,new X,new X);b=new Ey(Fy(b),"inrae.semantic_web.node.Round",c);c=U();var d=new ZB,f=new Hy(m($B));this.bL=uw(a,b,new Jy(Ky(c),f,"inrae.semantic_web.node.Round",d))}WB.prototype=new t;WB.prototype.constructor=WB;WB.prototype.$classData=x({N_:0},!1,"inrae.semantic_web.node.Round$",{N_:1,b:1,d:1});var XB;function Xd(){XB||(XB=new WB);return XB}function aC(){this.S=this.Q=this.D=null}aC.prototype=new ne;aC.prototype.constructor=aC; -function bC(){}bC.prototype=aC.prototype;aC.prototype.$g=function(){return!1};function cC(){this.fL=null;dC=this;var a=nd(),b=U(),c=new eC(new X,new X,new X);b=new Ey(Fy(b),"inrae.semantic_web.node.Something",c);c=U();var d=new fC,f=new Hy(m(gC));this.fL=uw(a,b,new Jy(Ky(c),f,"inrae.semantic_web.node.Something",d))}cC.prototype=new t;cC.prototype.constructor=cC;cC.prototype.$classData=x({W_:0},!1,"inrae.semantic_web.node.Something$",{W_:1,b:1,d:1});var dC;function Le(){dC||(dC=new cC);return dC} -function hC(){this.lx=null;iC=this;var a=nd(),b=U(),c=new jC(new X,new X,new X,new X,new X);b=new Ey(Fy(b),"inrae.semantic_web.node.SourcesNode",c);c=U();var d=new kC,f=new Hy(m(lC));this.lx=uw(a,b,new Jy(Ky(c),f,"inrae.semantic_web.node.SourcesNode",d))}hC.prototype=new t;hC.prototype.constructor=hC;hC.prototype.$classData=x({d0:0},!1,"inrae.semantic_web.node.SourcesNode$",{d0:1,b:1,d:1});var iC;function Fe(){iC||(iC=new hC);return iC} -function mC(){this.pL=null;nC=this;var a=nd(),b=U(),c=new oC(new X,new X,new X,new X);b=new Ey(Fy(b),"inrae.semantic_web.node.SparqlDefinitionExpression",c);c=U();var d=new pC,f=new Hy(m(qC));this.pL=uw(a,b,new Jy(Ky(c),f,"inrae.semantic_web.node.SparqlDefinitionExpression",d))}mC.prototype=new t;mC.prototype.constructor=mC;mC.prototype.$classData=x({n0:0},!1,"inrae.semantic_web.node.SparqlDefinitionExpression$",{n0:1,b:1,d:1});var nC;function Ke(){nC||(nC=new mC);return nC} -function rC(){this.uL=null;sC=this;var a=nd(),b=U(),c=new tC(new X,new X,new X,new X);b=new Ey(Fy(b),"inrae.semantic_web.node.Str",c);c=U();var d=new uC,f=new Hy(m(vC));this.uL=uw(a,b,new Jy(Ky(c),f,"inrae.semantic_web.node.Str",d))}rC.prototype=new t;rC.prototype.constructor=rC;rC.prototype.$classData=x({w0:0},!1,"inrae.semantic_web.node.Str$",{w0:1,b:1,d:1});var sC;function ud(){sC||(sC=new rC);return sC} -function wC(){this.AL=null;xC=this;var a=nd(),b=U(),c=new yC(new X,new X,new X,new X,new X);b=new Ey(Fy(b),"inrae.semantic_web.node.StrEnds",c);c=U();var d=new zC,f=new Hy(m(AC));this.AL=uw(a,b,new Jy(Ky(c),f,"inrae.semantic_web.node.StrEnds",d))}wC.prototype=new t;wC.prototype.constructor=wC;wC.prototype.$classData=x({F0:0},!1,"inrae.semantic_web.node.StrEnds$",{F0:1,b:1,d:1});var xC;function Ld(){xC||(xC=new wC);return xC} -function BC(){this.GL=null;CC=this;var a=nd(),b=U(),c=new DC(new X,new X,new X,new X,new X);b=new Ey(Fy(b),"inrae.semantic_web.node.StrStarts",c);c=U();var d=new EC,f=new Hy(m(FC));this.GL=uw(a,b,new Jy(Ky(c),f,"inrae.semantic_web.node.StrStarts",d))}BC.prototype=new t;BC.prototype.constructor=BC;BC.prototype.$classData=x({P0:0},!1,"inrae.semantic_web.node.StrStarts$",{P0:1,b:1,d:1});var CC;function Kd(){CC||(CC=new BC);return CC} -function GC(){this.ML=null;HC=this;var a=nd(),b=U(),c=new IC(new X,new X,new X,new X,new X);b=new Ey(Fy(b),"inrae.semantic_web.node.SubStr",c);c=U();var d=new JC,f=new Hy(m(KC));this.ML=uw(a,b,new Jy(Ky(c),f,"inrae.semantic_web.node.SubStr",d))}GC.prototype=new t;GC.prototype.constructor=GC;GC.prototype.$classData=x({Z0:0},!1,"inrae.semantic_web.node.SubStr$",{Z0:1,b:1,d:1});var HC;function ce(){HC||(HC=new GC);return HC} -function LC(){this.mx=null;MC=this;var a=nd(),b=U(),c=new NC(new X,new X,new X,new X);b=new Ey(Fy(b),"inrae.semantic_web.node.SubjectOf",c);c=U();var d=new OC,f=new Hy(m(PC));this.mx=uw(a,b,new Jy(Ky(c),f,"inrae.semantic_web.node.SubjectOf",d))}LC.prototype=new t;LC.prototype.constructor=LC;LC.prototype.$classData=x({i1:0},!1,"inrae.semantic_web.node.SubjectOf$",{i1:1,b:1,d:1});var MC;function Me(){MC||(MC=new LC);return MC} -function QC(){this.WL=null;RC=this;var a=nd(),b=U(),c=new SC(new X,new X,new X,new X,new X);b=new Ey(Fy(b),"inrae.semantic_web.node.Sup",c);c=U();var d=new TC,f=new Hy(m(UC));this.WL=uw(a,b,new Jy(Ky(c),f,"inrae.semantic_web.node.Sup",d))}QC.prototype=new t;QC.prototype.constructor=QC;QC.prototype.$classData=x({r1:0},!1,"inrae.semantic_web.node.Sup$",{r1:1,b:1,d:1});var RC;function Sd(){RC||(RC=new QC);return RC} -function VC(){this.bM=null;WC=this;var a=nd(),b=U(),c=new XC(new X,new X,new X,new X,new X);b=new Ey(Fy(b),"inrae.semantic_web.node.SupEqual",c);c=U();var d=new YC,f=new Hy(m(ZC));this.bM=uw(a,b,new Jy(Ky(c),f,"inrae.semantic_web.node.SupEqual",d))}VC.prototype=new t;VC.prototype.constructor=VC;VC.prototype.$classData=x({B1:0},!1,"inrae.semantic_web.node.SupEqual$",{B1:1,b:1,d:1});var WC;function Td(){WC||(WC=new VC);return WC} -function $C(){this.QB=null;aD=this;var a=nd(),b=U(),c=new cD(new X,new X,new X,new X);b=new Ey(Fy(b),"inrae.semantic_web.node.UnionBlock",c);c=U();var d=new kD,f=new Hy(m(lD));this.QB=uw(a,b,new Jy(Ky(c),f,"inrae.semantic_web.node.UnionBlock",d))}$C.prototype=new t;$C.prototype.constructor=$C;$C.prototype.$classData=x({L1:0},!1,"inrae.semantic_web.node.UnionBlock$",{L1:1,b:1,d:1});var aD;function je(){aD||(aD=new $C);return aD} -function mD(){this.kM=null;nD=this;var a=nd(),b=U(),c=new oD(new X,new X,new X,new X);b=new Ey(Fy(b),"inrae.semantic_web.node.Value",c);c=U();var d=new pD,f=new Hy(m(qD));this.kM=uw(a,b,new Jy(Ky(c),f,"inrae.semantic_web.node.Value",d))}mD.prototype=new t;mD.prototype.constructor=mD;mD.prototype.$classData=x({U1:0},!1,"inrae.semantic_web.node.Value$",{U1:1,b:1,d:1});var nD;function Ce(){nD||(nD=new mD);return nD} -function rD(){this.RB=null;sD=this;var a=nd(),b=U(),c=new tD(new X,new X,new X,new X);b=new Ey(Fy(b),"inrae.semantic_web.node.isBlank",c);c=U();var d=new uD,f=new Hy(m(vD));this.RB=uw(a,b,new Jy(Ky(c),f,"inrae.semantic_web.node.isBlank",d))}rD.prototype=new t;rD.prototype.constructor=rD;rD.prototype.$classData=x({c2:0},!1,"inrae.semantic_web.node.isBlank$",{c2:1,b:1,d:1});var sD;function Fd(){sD||(sD=new rD);return sD} -function wD(){this.tM=null;xD=this;var a=nd(),b=U(),c=new yD(new X,new X,new X,new X);b=new Ey(Fy(b),"inrae.semantic_web.node.isLiteral",c);c=U();var d=new zD,f=new Hy(m(AD));this.tM=uw(a,b,new Jy(Ky(c),f,"inrae.semantic_web.node.isLiteral",d))}wD.prototype=new t;wD.prototype.constructor=wD;wD.prototype.$classData=x({l2:0},!1,"inrae.semantic_web.node.isLiteral$",{l2:1,b:1,d:1});var xD;function Gd(){xD||(xD=new wD);return xD} -function BD(){this.yM=null;CD=this;var a=nd(),b=U(),c=new DD(new X,new X,new X,new X);b=new Ey(Fy(b),"inrae.semantic_web.node.isURI",c);c=U();var d=new ED,f=new Hy(m(FD));this.yM=uw(a,b,new Jy(Ky(c),f,"inrae.semantic_web.node.isURI",d))}BD.prototype=new t;BD.prototype.constructor=BD;BD.prototype.$classData=x({u2:0},!1,"inrae.semantic_web.node.isURI$",{u2:1,b:1,d:1});var CD;function Hd(){CD||(CD=new BD);return CD} -function GD(){this.BM=null;HD=this;var a=nd(),b=U(),c=new ID(new X);b=new Ey(Fy(b),"inrae.semantic_web.rdf.Anonymous",c);c=U();var d=new JD,f=new Hy(m(KD));this.BM=uw(a,b,new Jy(Ky(c),f,"inrae.semantic_web.rdf.Anonymous",d))}GD.prototype=new t;GD.prototype.constructor=GD;GD.prototype.$classData=x({H2:0},!1,"inrae.semantic_web.rdf.Anonymous$",{H2:1,b:1,d:1});var HD;function Rg(){HD||(HD=new GD);return HD} -function LD(){this.om=null;MD=this;var a=nd(),b=U(),c=new ND(new X);b=new Ey(Fy(b),"inrae.semantic_web.rdf.IRI",c);c=U();var d=new OD,f=new Hy(m(PD));this.om=uw(a,b,new Jy(Ky(c),f,"inrae.semantic_web.rdf.IRI",d))}LD.prototype=new t;LD.prototype.constructor=LD;LD.prototype.$classData=x({N2:0},!1,"inrae.semantic_web.rdf.IRI$",{N2:1,b:1,d:1});var MD;function Qg(){MD||(MD=new LD);return MD} -function QD(){this.HM=null;RD=this;var a=nd(),b=U(),c=new SD(new X,new X,new X);b=new Ey(Fy(b),"inrae.semantic_web.rdf.Literal",c);c=U();var d=new TD,f=new Hy(m(UD));this.HM=uw(a,b,new Jy(Ky(c),f,"inrae.semantic_web.rdf.Literal",d))}QD.prototype=new t;QD.prototype.constructor=QD;QD.prototype.$classData=x({T2:0},!1,"inrae.semantic_web.rdf.Literal$",{T2:1,b:1,d:1});var RD;function Tg(){RD||(RD=new QD);return RD} -function VD(){this.KM=null;WD=this;var a=nd(),b=U(),c=new XD(new X);b=new Ey(Fy(b),"inrae.semantic_web.rdf.PropertyPath",c);c=U();var d=new YD,f=new Hy(m(ZD));this.KM=uw(a,b,new Jy(Ky(c),f,"inrae.semantic_web.rdf.PropertyPath",d))}VD.prototype=new t;VD.prototype.constructor=VD;VD.prototype.$classData=x({a3:0},!1,"inrae.semantic_web.rdf.PropertyPath$",{a3:1,b:1,d:1});var WD;function Sg(){WD||(WD=new VD);return WD} -function $D(){this.Vh=null;aE=this;var a=nd(),b=U(),c=new bE(new X);b=new Ey(Fy(b),"inrae.semantic_web.rdf.QueryVariable",c);c=U();var d=new cE,f=new Hy(m(dE));this.Vh=uw(a,b,new Jy(Ky(c),f,"inrae.semantic_web.rdf.QueryVariable",d))}$D.prototype=new t;$D.prototype.constructor=$D;$D.prototype.$classData=x({g3:0},!1,"inrae.semantic_web.rdf.QueryVariable$",{g3:1,b:1,d:1});var aE;function Ug(){aE||(aE=new $D);return aE} -function eE(){this.yd=this.px=null;fE=this;var a=nd(),b=U(),c=new gE(new X,new X);b=new Ey(Fy(b),"inrae.semantic_web.rdf.URI",c);c=U();var d=new hE,f=new Hy(m(iE));this.px=uw(a,b,new Jy(Ky(c),f,"inrae.semantic_web.rdf.URI",d));this.yd=new Bg("",(Dg(),""))}eE.prototype=new t;eE.prototype.constructor=eE;eE.prototype.it=function(){return""};eE.prototype.$classData=x({o3:0},!1,"inrae.semantic_web.rdf.URI$",{o3:1,b:1,d:1});var fE;function Dg(){fE||(fE=new eE);return fE} -function jE(){kE=this;hc();lE();hc();rx()}jE.prototype=new t;jE.prototype.constructor=jE;jE.prototype.$classData=x({E3:0},!1,"io.lemonlabs.uri.AbsolutePath$",{E3:1,b:1,d:1});var kE;x({M3:0},!1,"io.lemonlabs.uri.IpV4$",{M3:1,b:1,d:1});x({O3:0},!1,"io.lemonlabs.uri.IpV6$",{O3:1,b:1,d:1});function mE(){nE=this;hc();lE();hc();Rb||(Rb=new Sb);rx();rx()}mE.prototype=new t;mE.prototype.constructor=mE;mE.prototype.$classData=x({R3:0},!1,"io.lemonlabs.uri.QueryString$",{R3:1,b:1,d:1});var nE; -function oE(){pE=this;hc();lE();hc();rx()}oE.prototype=new t;oE.prototype.constructor=oE;oE.prototype.$classData=x({c4:0},!1,"io.lemonlabs.uri.Url$",{c4:1,b:1,d:1});var pE;function qE(){pE||(pE=new oE)}function rE(){sE=this;J();pr();kE||(kE=new jE);tE();hc();lE();hc();rx()}rE.prototype=new t;rE.prototype.constructor=rE;rE.prototype.$classData=x({d4:0},!1,"io.lemonlabs.uri.UrlPath$",{d4:1,b:1,d:1});var sE;x({g4:0},!1,"io.lemonlabs.uri.UrlWithoutAuthority$",{g4:1,b:1,d:1}); -function uE(){this.iC=this.ZM=null;vE=this;this.ZM=G(E().hF,qc(new rc,[z(new B,"ftp",21),z(new B,"http",80),z(new B,"https",443),z(new B,"ws",80),z(new B,"wss",80)]));var a=new wE(Eh().hN),b=new wE(Eh().pC),c=new wE(Eh().qC),d=Gh().sC;c=xE(c,d);d=new wE(Eh().dN);var f=Ah(),g=Ah();zh||(zh=new yh);var h=zh.aN,l=Ah(),n=J().Nd;this.iC=new yE(a,b,c,d,f,g,new zE(new ph(h,new ph(l,n))),Ah(),"UTF-8",AE(),this.ZM);Eh();Eh();a=Eh();a=new wE(a.bN);b=Gh().sC;xE(a,b);Eh()}uE.prototype=new t; -uE.prototype.constructor=uE;uE.prototype.$classData=x({m4:0},!1,"io.lemonlabs.uri.config.UriConfig$",{m4:1,b:1,d:1});var vE;function tE(){vE||(vE=new uE);return vE} -function BE(){this.bN=this.cN=this.fN=this.gN=this.eN=this.dN=this.qC=this.pC=this.hN=null;CE=this;this.hN=DE(E().Wm,qc(new rc,[q(32),q(37),q(60),q(62),q(91),q(93),q(35),q(123),q(125),q(94),q(96),q(124),q(63),q(64),q(58),q(47)]));this.pC=DE(E().Wm,qc(new rc,[q(32),q(37),q(60),q(62),q(91),q(93),q(35),q(123),q(125),q(94),q(96),q(124),q(63),q(47)]));this.qC=DE(E().Wm,qc(new rc,[q(37),q(60),q(62),q(91),q(93),q(35),q(123),q(125),q(94),q(96),q(124),q(38),q(92),q(43),q(61)]));this.dN=DE(E().Wm,qc(new rc, -[q(32),q(37),q(60),q(62),q(91),q(93),q(35),q(123),q(125),q(94),q(96),q(124)]));this.eN=DE(E().Wm,qc(new rc,[q(58),q(47),q(63),q(35),q(91),q(93),q(64)]));this.gN=DE(E().Wm,qc(new rc,[q(33),q(36),q(38),q(39),q(40),q(41),q(42),q(43),q(44),q(59),q(61)]));this.fN=this.eN.fs(this.gN);this.cN=DE(E().Wm,qc(new rc,[q(34)]));this.bN=this.fN.fs(this.pC).fs(this.qC).fs(this.cN)}BE.prototype=new t;BE.prototype.constructor=BE; -BE.prototype.$classData=x({y4:0},!1,"io.lemonlabs.uri.encoding.PercentEncoder$",{y4:1,b:1,d:1});var CE;function Eh(){CE||(CE=new BE);return CE} -function EE(a){a.Yj=new FE((()=>c=>c)(a));var b=GE();b=new HE(b,a.Yj,a.rm);a.H4=b.Tg.wg(b.Sg,new C((()=>c=>""+!!c)(a)));b=GE();b=new HE(b,a.Yj,a.rm);a.I4=b.Tg.wg(b.Sg,new C((()=>c=>String.fromCharCode(Ma(c)))(a)));b=GE();b=new HE(b,a.Yj,a.rm);a.L4=b.Tg.wg(b.Sg,new C((()=>c=>""+(c|0))(a)));b=GE();b=new HE(b,a.Yj,a.rm);a.M4=b.Tg.wg(b.Sg,new C((()=>c=>{var d=fb(c);c=d.m;d=d.r;return IE(tj(),c,d)})(a)));b=GE();b=new HE(b,a.Yj,a.rm);a.K4=b.Tg.wg(b.Sg,new C((()=>c=>""+ +c)(a)));b=GE();b=new HE(b,a.Yj,a.rm); -a.J4=b.Tg.wg(b.Sg,new C((()=>c=>""+ +c)(a)));b=GE();b=new HE(b,a.Yj,a.rm);a.N4=b.Tg.wg(b.Sg,new C((()=>c=>c.g())(a)))} -function JE(a){a.Zj=new KE((()=>c=>LE(ME(),c))(a));var b=GE();b=new HE(b,a.Zj,a.sm);a.$4=b.Tg.wg(b.Sg,new C((()=>c=>""+!!c)(a)));b=GE();b=new HE(b,a.Zj,a.sm);a.a5=b.Tg.wg(b.Sg,new C((()=>c=>String.fromCharCode(Ma(c)))(a)));b=GE();b=new HE(b,a.Zj,a.sm);a.d5=b.Tg.wg(b.Sg,new C((()=>c=>""+(c|0))(a)));b=GE();b=new HE(b,a.Zj,a.sm);a.e5=b.Tg.wg(b.Sg,new C((()=>c=>{var d=fb(c);c=d.m;d=d.r;return IE(tj(),c,d)})(a)));b=GE();b=new HE(b,a.Zj,a.sm);a.c5=b.Tg.wg(b.Sg,new C((()=>c=>""+ +c)(a)));b=GE();b=new HE(b, -a.Zj,a.sm);a.b5=b.Tg.wg(b.Sg,new C((()=>c=>""+ +c)(a)));b=GE();b=new HE(b,a.Zj,a.sm);a.g5=b.Tg.wg(b.Sg,new C((()=>c=>c.g())(a)));a.f5=new NE((()=>()=>H())(a))}function OE(a,b,c){return b.Ea(new C(((d,f)=>g=>{var h=f.vv(g);g=f.Bs(g);return z(new B,h,g)})(a,c)))} -function PE(a){0===(32&a.dz)<<24>>24&&0===(32&a.dz)<<24>>24&&(a.yP=new ob(new Int32Array([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])),a.dz=(32|a.dz)<<24>>24);return a.yP}function QE(){this.yP=null;this.dz=0}QE.prototype=new t;QE.prototype.constructor=QE; -function RE(a,b){if(0<=b&&65536>b)return String.fromCharCode(b);if(0<=b&&1114111>=b)return String.fromCharCode(65535&(-64+(b>>10)|55296),65535&(56320|1023&b));throw rk();}function SE(a){wn();if(0<=a&&65536>a)return new jb(new Uint16Array([65535&a]));if(0<=a&&1114111>=a)return new jb(new Uint16Array([65535&(-64+(a>>10)|55296),65535&(56320|1023&a)]));throw rk();} -function TE(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 d=PE(a);d=Ol(hm(),d,b);d=0>d?-2-d|0:d;0>d?a=-1:(a=b-PE(a).a[d]|0,a=9=b||127<=b&&159>=b}QE.prototype.$classData=x({bba:0},!1,"java.lang.Character$",{bba:1,b:1,d:1});var UE;function wn(){UE||(UE=new QE);return UE} -function VE(a){throw new Iw('For input string: "'+a+'"');}function WE(){this.zP=this.AP=null;this.Mm=0}WE.prototype=new t;WE.prototype.constructor=WE; -function XE(a,b){0===(1&a.Mm)<<24>>24&&0===(1&a.Mm)<<24>>24&&(a.AP=/^[\x00-\x20]*([+-]?(?:NaN|Infinity|(?:\d+\.?\d*|\.\d+)(?:[eE][+-]?\d+)?)[fFdD]?)[\x00-\x20]*$/,a.Mm=(1|a.Mm)<<24>>24);var c=a.AP.exec(b);if(null!==c)b=+parseFloat(c[1]);else{0===(2&a.Mm)<<24>>24&&0===(2&a.Mm)<<24>>24&&(a.zP=/^[\x00-\x20]*([+-]?)0[xX]([0-9A-Fa-f]*)\.?([0-9A-Fa-f]*)[pP]([+-]?\d+)[fFdD]?[\x00-\x20]*$/,a.Mm=(2|a.Mm)<<24>>24);var d=a.zP.exec(b);null===d&&VE(b);a=d[1];c=d[2];var f=d[3];d=d[4];""===c&&""===f&&VE(b);b=YE(0, -c,f,d,15);b="-"===a?-b:b}return b} -function YE(a,b,c,d,f){a=""+b+c;c=-((c.length|0)<<2)|0;for(b=0;;)if(b!==(a.length|0)&&48===(65535&(a.charCodeAt(b)|0)))b=1+b|0;else break;a=a.substring(b);if(""===a)return 0;var g=a.length|0;if(b=g>f){for(var h=!1,l=f;!h&&l!==g;)48!==(65535&(a.charCodeAt(l)|0))&&(h=!0),l=1+l|0;g=h?"1":"0";g=a.substring(0,f)+g}else g=a;c=c+(b?((a.length|0)-(1+f|0)|0)<<2:0)|0;f=+parseInt(g,16);d=+parseInt(d,10);c=Ya(d)+c|0;a=c/3|0;d=+Math.pow(2,a);c=+Math.pow(2,c-(a<<1)|0);return f*d*d*c} -WE.prototype.$classData=x({eba:0},!1,"java.lang.Double$",{eba:1,b:1,d:1});var ZE;function $E(){ZE||(ZE=new WE);return ZE} -function aF(a,b,c,d,f,g){a=bF(""+a+b);b=Gq(Hq(),c,10)-(b.length|0)|0;var h=ci(di(),g);c=h.m;var l=h.r;h=l>>20;if(0===h)throw rm("parseFloatCorrection was given a subnormal mid: "+g);g=1048576|1048575&l;g=Ij(lj(),new p(c,g));c=-1075+h|0;0<=b?0<=c?(a=Zj(a,fk(lj().bk,b)),b=dk(g,c),a=cF(a,b)):a=cF(dk(Zj(a,fk(lj().bk,b)),-c|0),g):0<=c?(b=-b|0,b=dk(Zj(g,fk(lj().bk,b)),c),a=cF(a,b)):(a=dk(a,-c|0),b=-b|0,b=Zj(g,fk(lj().bk,b)),a=cF(a,b));return 0>a?d:0c||36=(b.length|0)&&gF(b);for(var h=0;d!==a;){var l=TE(wn(),65535&(b.charCodeAt(d)|0),c);h=h*c+l;(-1===l||h>g)&&gF(b);d=1+d|0}return f?-h|0:h|0}function ar(a,b){a=b-(1431655765&b>>1)|0;a=(858993459&a)+(858993459&a>>2)|0;return k(16843009,252645135&(a+(a>>4)|0))>>24}hF.prototype.$classData=x({jba:0},!1,"java.lang.Integer$",{jba:1,b:1,d:1});var iF; -function Hq(){iF||(iF=new hF);return iF}function jF(a){if(!a.iz){for(var b=[],c=0;2>c;)b.push(null),c=1+c|0;for(;36>=c;){for(var d=Va(2147483647,c),f=c,g=1,h="0";f<=d;)f=k(f,c),g=1+g|0,h+="0";d=f;f=d>>31;var l=tj(),n=sj(l,-1,-1,d,f);b.push(new ei(g,new p(d,f),h,new p(n,l.sa)));c=1+c|0}a.hz=b;a.iz=!0}return a.hz} -function kF(a,b,c){var d=(a.iz?a.hz:jF(a))[c],f=d.DP;a=f.m;f=f.r;d=d.sba;var g=-2147483648^f,h="",l=b.m;for(b=b.r;;){var n=l,r=-2147483648^b;if(r===g?(-2147483648^n)>=(-2147483648^a):r>g){n=l;r=tj();b=sj(r,n,b,a,f);n=r.sa;var u=65535&b;r=b>>>16|0;var w=65535&a,A=a>>>16|0,M=k(u,w);w=k(r,w);u=k(u,A);M=M+((w+u|0)<<16)|0;k(b,f);k(n,a);k(r,A);l=(l-M|0).toString(c);h=""+d.substring(l.length|0)+l+h;l=b;b=n}else break}return""+l.toString(c)+h}function lF(a){throw new Iw('For input string: "'+a+'"');} -function mF(a,b,c){for(var d=0;a!==b;){var f=TE(wn(),65535&(c.charCodeAt(a)|0),10);-1===f&&lF(c);d=k(d,10)+f|0;a=1+a|0}return d}function nF(){this.hz=null;this.iz=!1}nF.prototype=new t;nF.prototype.constructor=nF;function oF(a,b,c){return 0!==c?(a=(+(c>>>0)).toString(16),b=(+(b>>>0)).toString(16),a+(""+"00000000".substring(b.length|0)+b)):(+(b>>>0)).toString(16)}nF.prototype.$classData=x({oba:0},!1,"java.lang.Long$",{oba:1,b:1,d:1});var pF;function qF(){pF||(pF=new nF);return pF}function rF(){} -rF.prototype=new t;rF.prototype.constructor=rF;function sF(){}sF.prototype=rF.prototype;function Tt(a){return a instanceof rF||"number"===typeof a}function tF(a,b,c,d){this.hv=a;this.lz=b;this.jz=c;this.kz=d;this.CE=-1}tF.prototype=new t;tF.prototype.constructor=tF;tF.prototype.c=function(a){return a instanceof tF?this.jz===a.jz&&this.kz===a.kz&&this.hv===a.hv&&this.lz===a.lz:!1}; -tF.prototype.g=function(){var a="";"\x3cjscode\x3e"!==this.hv&&(a=""+a+this.hv+".");a=""+a+this.lz;null===this.jz?a+="(Unknown Source)":(a=a+"("+this.jz,0<=this.kz&&(a=a+":"+this.kz,0<=this.CE&&(a=a+":"+this.CE)),a+=")");return a};tF.prototype.p=function(){return Pa(this.hv)^Pa(this.lz)};var uF=x({Cba:0},!1,"java.lang.StackTraceElement",{Cba:1,b:1,d:1});tF.prototype.$classData=uF;function vF(){}vF.prototype=new t;vF.prototype.constructor=vF; -function wF(a,b,c,d){a=c+d|0;if(0>c||ab.a.length)throw b=new xF,yF(b,null,null),b;for(d="";c!==a;)d=""+d+String.fromCharCode(b.a[c]),c=1+c|0;return d} -function zF(a,b,c){a=Mk(c);c=b.a.length;b=vk(wk(),b,b.a.length,c);if(0===(2&a.Wf)<<24>>24&&0===(2&a.Wf)<<24>>24){c=a.VE();var d=dl().Wo;if(null===d)throw fm("null CodingErrorAction");c.ur=d;d=dl().Wo;if(null===d)throw fm("null CodingErrorAction");c.wr=d;a.aj=c;a.Wf=(2|a.Wf)<<24>>24}a=a.aj;a.ek=1;a.cv();c=yk(Ya((b.ma-b.P|0)*a.hu));for(var f;;){a:{d=a;var g=b,h=c;if(4===d.ek)throw AF();for(d.ek=3;;){try{f=d.aE(g,h)}catch(u){if(u instanceof il)throw new BF(u);if(u instanceof ol)throw new BF(u);throw u; -}if(0===f.ff){var l=g.ma-g.P|0;if(0l)throw CF();pk.prototype.va.call(g,n+l|0)}else{if(dl().Xo===n){d=l;break a}if(dl().PC===n){n=g.P;l=l.Br;if(0>l)throw CF();pk.prototype.va.call(g, -n+l|0)}else throw new D(n);}}}if(0!==d.ff){if(1===d.ff){c=al(c);continue}nl(d);throw rm("should not get here");}if(b.P!==b.ma)throw DF();f=c;break}for(;;){a:switch(b=a,b.ek){case 3:c=ul().pd;0===c.ff&&(b.ek=4);b=c;break a;case 4:b=ul().pd;break a;default:throw AF();}if(0!==b.ff){if(1===b.ff){f=al(f);continue}nl(b);throw rm("should not get here");}break}pk.prototype.Uy.call(f);return f.g()}function EF(){oq();return" "} -function nq(a,b,c){var d=new FF,f=GF();d.sp=null;d.cca=f;d.Qm="";d.GE=!1;d.RP=null;if(d.GE)throw new HF;for(var g=0,h=0,l=b.length|0,n=0;n!==l;){var r=b.indexOf("%",n)|0;if(0>r){IF(d,b.substring(n));break}IF(d,b.substring(n,r));var u=1+r|0,w=nm().QP;w.lastIndex=u;var A=w.exec(b);if(null===A||(A.index|0)!==u){var M=u===l?37:65535&(b.charCodeAt(u)|0);JF(M)}n=w.lastIndex|0;for(var T=65535&(b.charCodeAt(-1+n|0)|0),V,ha=A[2],ra=65<=T&&90>=T?256:0,ea=ha.length|0,wa=0;wa!==ea;){var xa=65535&(ha.charCodeAt(wa)| -0);switch(xa){case 45:var Ta=1;break;case 35:Ta=2;break;case 43:Ta=4;break;case 32:Ta=8;break;case 48:Ta=16;break;case 44:Ta=32;break;case 40:Ta=64;break;case 60:Ta=128;break;default:throw new D(q(xa));}if(0!==(ra&Ta))throw new KF(String.fromCharCode(xa));ra|=Ta;wa=1+wa|0}V=ra;var gb=LF(A[3],-1),mb=LF(A[4],-1);if(110===T){if(-1!==mb)throw new MF(mb);if(-1!==gb)throw new NF(gb);0!==V&&OF(V);IF(d,"\n")}else if(37===T){if(-1!==mb)throw new MF(mb);17!==(17&V)&&12!==(12&V)||OF(V);if(0!==(1&V)&&-1===gb)throw new PF("%"+ -A[0]);0!==(-2&V)&&QF(37,V,-2);RF(d,V,gb,"%")}else{var Zb=0!==(256&V)?65535&(32+T|0):T,lb=nm().PP.a[-97+Zb|0];-1!==lb&&0===(256&V&lb)||JF(T);if(0!==(17&V)&&-1===gb)throw new PF("%"+A[0]);17!==(17&V)&&12!==(12&V)||OF(V);if(-1!==mb&&0!==(512&lb))throw new MF(mb);0!==(V&lb)&&QF(Zb,V,lb);if(0!==(128&V))var Ab=h;else{var za=LF(A[1],0);Ab=0===za?g=1+g|0:0>za?h:za}if(0>=Ab||Ab>c.a.length)throw new SF("%"+A[0]);h=Ab;var kc=c.a[-1+Ab|0];if(null===kc&&98!==Zb&&115!==Zb)TF(d,GF(),V,gb,mb,"null");else{var La= -void 0,Ja=void 0,ya=void 0,Ve=void 0,fh=void 0,ad=d,sb=kc,Dd=Zb,Eb=V,Md=gb,Jf=mb;switch(Dd){case 98:var ns=!1===sb||null===sb?"false":"true";TF(ad,GF(),Eb,Md,Jf,ns);break;case 104:var os=(+(Oa(sb)>>>0)).toString(16);TF(ad,GF(),Eb,Md,Jf,os);break;case 115:sb&&sb.$classData&&sb.$classData.Eb.loa?sb.goa(ad,(0!==(1&Eb)?1:0)|(0!==(2&Eb)?4:0)|(0!==(256&Eb)?2:0),Md,Jf):(0!==(2&Eb)&&QF(Dd,Eb,2),TF(ad,0,Eb,Md,Jf,""+sb));break;case 99:if(sb instanceof oa)var ps=String.fromCharCode(Ma(sb));else{ua(sb)||UF(Dd, -sb);var lg=sb|0;if(!(0<=lg&&1114111>=lg))throw new VF(lg);ps=65536>lg?String.fromCharCode(lg):String.fromCharCode(-64+(lg>>10)|55296,56320|1023&lg)}TF(ad,0,Eb,Md,-1,ps);break;case 100:if(ua(sb))var hk=""+(sb|0);else if(sb instanceof p){var qs=fb(sb),rs=qs.m,Wn=qs.r;hk=IE(tj(),rs,Wn)}else sb instanceof WF||UF(Dd,sb),hk=rj(wj(),sb);XF(ad,Eb,Md,hk,"");break;case 111:case 120:var ik=111===Dd,Xn=0===(2&Eb)?"":ik?"0":0!==(256&Eb)?"0X":"0x";if(sb instanceof WF){var Pc=ik?8:16;GF();var fj=wj(),gh=sb.Ca,Xh= -sb.Ua,El=sb.ua,ss=2>Pc||36gh){var Yn=Fl,Zn=jk;Fl=-Yn|0;jk=0!==Yn?~Zn:-Zn|0}var Gl=Fl,Hl=jk,ts=qF();if(10===Pc||2>Pc||36>31===us)Ve=Il.toString(Pc);else if(0>us){var vs=gj.m,$n=gj.r;Ve="-"+kF(ts,new p(-vs|0,0!==vs?~$n:-$n|0),Pc)}else Ve=kF(ts,gj,Pc)}fh=Ve}else if(10===Pc||ss)fh=rj(wj(),sb);else{var ws=0;ws=+Math.log(Pc)/+Math.log(2);var ez=0>gh?1:0,xs=YF(sb),Jl=Zi(oj(), -xs),ao=1+Ya(Jl/ws+ez)|0,ze=null;ze="";var Nd=0;Nd=ao;var Kf=0;Kf=0;if(16!==Pc){var hj=new ob(Xh);El.U(0,hj,0,Xh);var ij=0;ij=Xh;for(var bo=fj.CC.a[Pc],co=fj.BC.a[-2+Pc|0];;){Kf=Bj(zj(),hj,hj,ij,co);for(var kk=Nd;;){Nd=-1+Nd|0;var mg=Xa(Kf,Pc);wn();if(2>Pc||36mg||mg>=Pc)var Yh=0;else{var eo=-10+mg|0;Yh=65535&(0>eo?48+mg|0:97+eo|0)}ze=""+String.fromCharCode(Yh)+ze;Kf=Va(Kf,Pc);if(0===Kf||0===Nd)break}for(var ys=(bo-kk|0)+Nd|0,Lf=0;Lfjj&&0>(jj<<2),Nd=-1+Nd|0,ze=""+(+(Kf>>>0)).toString(16)+ze,jj=1+jj|0;lk=1+lk|0}for(var mk=0;;)if(48===(65535&(ze.charCodeAt(mk)|0)))mk=1+mk|0;else break;0!==mk&&(ze=ze.substring(mk));fh=-1===gh?"-"+ze:ze}XF(ad,Eb,Md,fh,Xn)}else{if(ua(sb))var go=sb|0,Kl=ik?(+(go>>>0)).toString(8):(+(go>>>0)).toString(16);else{sb instanceof p||UF(Dd,sb);var zs=fb(sb),Ll=zs.m,nk=zs.r; -if(ik){qF();var ho=1073741823&Ll,Ml=1073741823&((Ll>>>30|0)+(nk<<2)|0),Nl=nk>>>28|0;if(0!==Nl){var fz=(+(Nl>>>0)).toString(8),As=(+(Ml>>>0)).toString(8),Bs="0000000000".substring(As.length|0),io=(+(ho>>>0)).toString(8);ya=fz+(""+Bs+As)+(""+"0000000000".substring(io.length|0)+io)}else if(0!==Ml){var Cs=(+(Ml>>>0)).toString(8),jo=(+(ho>>>0)).toString(8);ya=Cs+(""+"0000000000".substring(jo.length|0)+jo)}else ya=(+(ho>>>0)).toString(8)}else ya=oF(qF(),Ll,nk);Kl=ya}0!==(76&Eb)&&QF(Dd,Eb,76);ZF(ad,GF(), -Eb,Md,Xn,$F(Eb,Kl))}break;case 101:case 102:case 103:if("number"===typeof sb){var nh=+sb;if(nh!==nh||Infinity===nh||-Infinity===nh)aG(ad,Eb,Md,nh);else{nm();if(0===nh)Ja=new pm(0>1/nh,"0",0);else{var bD=0>nh,ii=""+(bD?-nh:nh),Mo=bG(ii,101);if(0>Mo)var dD=0;else{var XM=parseInt,YM=ii.substring(1+Mo|0);dD=XM(YM)|0}var tu=0>Mo?ii.length|0:Mo,No=bG(ii,46);if(0>No){var a8=ii.substring(0,tu);Ja=new pm(bD,a8,-dD|0)}else{for(var TS=""+ii.substring(0,No)+ii.substring(1+No|0,tu),b8=TS.length|0,eD=0;;)if(eD< -b8&&48===(65535&(TS.charCodeAt(eD)|0)))eD=1+eD|0;else break;var c8=TS.substring(eD);Ja=new pm(bD,c8,(-dD|0)+(tu-(1+No|0)|0)|0)}}cG(ad,Ja,Eb,Jf,Dd,Md)}}else if(sb instanceof dG){nm();var d8=eG(sb),ZM=rj(wj(),d8);if("0"===ZM)La=new pm(!1,"0",0);else{var y1=45===(65535&(ZM.charCodeAt(0)|0)),e8=y1?ZM.substring(1):ZM;La=new pm(y1,e8,sb.Qa)}cG(ad,La,Eb,Jf,Dd,Md)}else UF(Dd,sb);break;case 97:if("number"===typeof sb){var uu=+sb;if(uu!==uu||Infinity===uu||-Infinity===uu)aG(ad,Eb,Md,uu);else{var z1=ci(di(), -uu),Oo=z1.m,US=z1.r,vu=1048575&US,A1=2047&(US>>>20|0),fD=0===Jf?1:12US?"-":0!==(4&Eb)?"+":0!==(8&Eb)?" ":"";if(0===A1)if(0===Oo&&0===vu)var $M="0",aN=ma,bN=0;else if(-1===fD)$M="0",aN=new p(Oo,vu),bN=-1022;else{var Po=-11+(0!==vu?la(vu):32+la(Oo)|0)|0;$M="1";aN=new p(0===(32&Po)?Oo<>>1|0)>>>(31-Po|0)|0|vu<>>1|0|zk<<31,dN=zk>>1,Qo=VS&~XS,Ro=WS&~D1,F1=VS&XS,eN=WS&D1;if(eN===dN?(-2147483648^F1)<(-2147483648^E1):eN(-2147483648^E1):eN>dN){var G1=Qo+iD|0;gD=G1;hD=(-2147483648^G1)<(-2147483648^Qo)?1+(Ro+zk|0)|0:Ro+zk|0}else if(0===(Qo&iD)&&0===(Ro&zk))gD=Qo,hD=Ro;else{var H1=Qo+iD|0;gD=H1;hD=(-2147483648^H1)<(-2147483648^Qo)?1+(Ro+zk|0)|0: -Ro+zk|0}}var I1=oF(qF(),gD,hD),fN=""+"0000000000000".substring(I1.length|0)+I1;nm();if(13!==(fN.length|0))throw rm("padded mantissa does not have the right number of bits");for(var i8=1>fD?1:fD,jD=fN.length|0;;)if(jD>i8&&48===(65535&(fN.charCodeAt(-1+jD|0)|0)))jD=-1+jD|0;else break;var j8=fN.substring(0,jD),k8=f8+(0!==(256&Eb)?"0X":"0x"),l8=g8+"."+j8+"p"+h8;ZF(ad,GF(),Eb,Md,k8,$F(Eb,l8))}}else UF(Dd,sb);break;default:throw rm("Unknown conversion '"+q(Dd)+"' was not rejected earlier");}}}}return d.g()} -vF.prototype.$classData=x({Dba:0},!1,"java.lang.String$",{Dba:1,b:1,d:1});var fG;function oq(){fG||(fG=new vF);return fG} -function gG(a,b){hG(a);b(a.g());if(0!==a.rp.a.length)for(var c=0;cf=>{d.Pz(f)})(a,b))}function Xw(a,b){gG(a,((c,d)=>f=>{d.Pz(f)})(a,b))} -function hG(a){if(null===a.rp)if(a.JP){var b=vi(),c=a.iv;if(c)if(c.arguments&&c.stack)var d=qi(c);else if(c.stack&&c.sourceURL)d=c.stack.replace(ri("\\[native code\\]\\n","m"),"").replace(ri("^(?\x3d\\w+Error\\:).*$\\n","m"),"").replace(ri("^@","gm"),"{anonymous}()@").split("\n");else if(c.stack&&c.number)d=c.stack.replace(ri("^\\s*at\\s+(.*)$","gm"),"$1").replace(ri("^Anonymous function\\s+","gm"),"{anonymous}() ").replace(ri("^([^\\(]+|\\{anonymous\\}\\(\\))\\s+\\((.+)\\)$","gm"),"$1@$2").split("\n").slice(1); -else if(c.stack&&c.fileName)d=c.stack.replace(ri("(?:\\n@:0)?\\s+$","m"),"").replace(ri("^(?:\\((\\S*)\\))?@","gm"),"{anonymous}($1)@").split("\n");else if(c.message&&c["opera#sourceloc"])if(c.stacktrace)if(-1c.stacktrace.split("\n").length)d=si(c);else{d=ri("Line (\\d+).*script (?:in )?(\\S+)(?:: In function (\\S+))?$","i");c=c.stacktrace.split("\n");var f=[];for(var g=0,h=c.length|0;gc.stacktrace.indexOf("called from line")){d=ki("^(.*)@(.+):(\\d+)$");c=c.stacktrace.split("\n");f=[];g=0;for(h=c.length|0;g=a)new ob(0);else for(var b=new ob(a),c=0;c=a)new ob(0);else for(b=new ob(a),c=0;cb;)a.a[b]=kG(b,0),b=1+b|0;this.rN=a;a=new (y(oG).M)(11);for(b=0;11>b;)a.a[b]=kG(0,b),b=1+b|0;this.wC=a;this.sN= -"0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"}iG.prototype=new t;iG.prototype.constructor=iG;function pG(a,b,c){0===c?(0<=b.r?(c=b.r,c=0===c?-2147483637>(-2147483648^b.m):0>c):c=!1,a=c?a.rN.a[b.m]:qG(b,0)):a=0===b.m&&0===b.r&&0<=c&&c>31,l=65535&d,n=d>>>16|0,r=65535&b,u=b>>>16|0,w=k(l,r);r=k(n,r);var A=k(l,u);l=w+((r+A|0)<<16)|0;w=(w>>>16|0)+A|0;d=(((k(d,h)+k(g,b)|0)+k(n,u)|0)+(w>>>16|0)|0)+(((65535&w)+r|0)>>>16|0)|0;d=new p(l,d);c.a[f]=fb(d);f=1+f|0}return c}return new pb(0)} -function rG(a,b,c,d){a=0>c?-c|0:c;var f=0===c?0:0>c?-1:1;if(Sj().JC===d)return f;if(Sj().EC===d)return 0;if(Sj().DC===d)return 0f?f:0;if(Sj().HC===d)return 5<=a?f:0;if(Sj().GC===d)return 5(-2147483648^b.m):-1>a)?a=!0:(a=b.r,a=0===a?-1<(-2147483648^b.m):0b.r?new p(~b.m,~b.r):b;a=b.m;b=b.r;return 64-(0!==b?la(b):32+la(a)|0)|0}iG.prototype.$classData=x({C5:0},!1,"java.math.BigDecimal$",{C5:1,b:1,d:1});var jG;function nG(){jG||(jG=new iG);return jG} -function tG(){this.AC=this.tN=this.Ix=this.ck=this.bk=this.qr=null;uG=this;this.qr=Hj(1,1);this.bk=Hj(1,10);this.ck=Hj(0,0);this.Ix=Hj(-1,1);this.tN=new (y(Yj).M)([this.ck,this.qr,Hj(1,2),Hj(1,3),Hj(1,4),Hj(1,5),Hj(1,6),Hj(1,7),Hj(1,8),Hj(1,9),this.bk]);for(var a=new (y(Yj).M)(32),b=0;32>b;){var c=b,d=b,f=lj();a.a[c]=Ij(f,new p(0===(32&d)?1<b.r)return-1!==b.m||-1!==b.r?(a=b.m,b=b.r,vG(-1,new p(-a|0,0!==a?~b:-b|0))):a.Ix;var c=b.r;return(0===c?-2147483638>=(-2147483648^b.m):0>c)?a.tN.a[b.m]:vG(1,b)}tG.prototype.$classData=x({E5:0},!1,"java.math.BigInteger$",{E5:1,b:1,d:1});var uG;function lj(){uG||(uG=new tG);return uG} -function wG(){this.IC=this.fu=this.GC=this.HC=this.FC=this.DC=this.EC=this.JC=null;xG=this;this.JC=new yG("UP",0);this.EC=new yG("DOWN",1);this.DC=new yG("CEILING",2);this.FC=new yG("FLOOR",3);this.HC=new yG("HALF_UP",4);this.GC=new yG("HALF_DOWN",5);this.fu=new yG("HALF_EVEN",6);this.IC=new yG("UNNECESSARY",7);new (y(zG).M)([this.JC,this.EC,this.DC,this.FC,this.HC,this.GC,this.fu,this.IC])}wG.prototype=new t;wG.prototype.constructor=wG; -wG.prototype.$classData=x({O5:0},!1,"java.math.RoundingMode$",{O5:1,b:1,d:1});var xG;function Sj(){xG||(xG=new wG);return xG}function AG(){this.tg=this.ef=this.bj=this.aj=null;this.Wf=0}AG.prototype=new t;AG.prototype.constructor=AG;function BG(){}BG.prototype=AG.prototype;AG.prototype.c=function(a){return a instanceof AG?this.ef===a.ef:!1};AG.prototype.g=function(){return this.ef};AG.prototype.p=function(){var a=this.ef;return ku(S(),a)}; -function CG(a){this.Lx=null;this.Kx=this.hu=0;this.wr=this.ur=this.vr=null;this.ek=0;this.zN=null;if(null===a)throw K(L(),null);this.zN=a;cl(this,a,1)}CG.prototype=new fl;CG.prototype.constructor=CG; -CG.prototype.aE=function(a,b){var c=this.zN.Cr,d=a.ma-a.P|0;if(0===d)return ul().pd;var f=b.ma-b.P|0,g=fc)return pk.prototype.va.call(a,-1+a.P|0),ul().Yd;b.wk(65535&f);d=1+d|0}else{d=a.Ve;if(null===d)throw CF();if(a.sg)throw new hl;f=a.Uf;if(-1===f)throw CF();if(a.sg)throw new hl;var l=a.P+f|0;h=l+h|0;var n=b.Ne;if(null===n)throw CF();if(b.ch())throw new hl;var r=b.Vf;if(-1===r)throw CF();if(b.ch())throw new hl; -for(var u=b.P+r|0;l!==h;){var w=255&d.a[l];if(w>c)return pk.prototype.va.call(a,l-f|0),pk.prototype.va.call(b,u-r|0),ul().Yd;n.a[u]=65535&w;l=1+l|0;u=1+u|0}pk.prototype.va.call(a,l-f|0);pk.prototype.va.call(b,u-r|0)}return g?ul().Xd:ul().pd};CG.prototype.$classData=x({j6:0},!1,"java.nio.charset.ISO_8859_1_And_US_ASCII_Common$Decoder",{j6:1,xN:1,b:1}); -function EG(a){this.Nx=null;this.Mx=this.iu=0;this.zr=this.xr=this.yr=null;this.fk=0;this.AN=null;if(null===a)throw K(L(),null);this.AN=a;jl(this,a,1,1,new kb(new Int8Array([63])))}EG.prototype=new ll;EG.prototype.constructor=EG; -EG.prototype.eE=function(a,b){var c=this.AN.Cr,d=a.ma-a.P|0;if(0===d)return ul().pd;if(null===a.Ne||a.ch()||null===b.Ve||b.sg)for(;;){if(a.P===a.ma)return ul().pd;if(b.P===b.ma)return ul().Xd;d=a.np();if(d<=c)FG(b,d<<24>>24);else{if(56320===(64512&d))return pk.prototype.va.call(a,-1+a.P|0),ul().Yd;if(55296===(64512&d)){if(a.P!==a.ma)return b=a.np(),pk.prototype.va.call(a,-2+a.P|0),56320===(64512&b)?ul().NC:ul().Yd;pk.prototype.va.call(a,-1+a.P|0);return ul().pd}pk.prototype.va.call(a,-1+a.P|0);return ul().MC}}else{var f= -b.ma-b.P|0,g=f>24,u=1+u|0,l=1+l|0;else return c=56320===(64512&w)?ul().Yd:55296===(64512&w)?(1+l|0)(a.ma-a.P|0))return ul().pd;var c=255&DG(a),d=255&DG(a);if(0===this.Yo)if(254===c&&255===d){this.Yo=1;var f=!0}else 255===c&&254===d?(this.Yo=2,f=!0):(this.Yo=1,f=!1);else f=!1;if(!f){f=1===this.Yo;c=65535&(f?c<<8|d:d<<8|c);if(56320===(64512&c))return pk.prototype.va.call(a,-2+a.P|0),ul().Ar;if(55296!==(64512&c)){if(0===(b.ma-b.P|0))return pk.prototype.va.call(a,-2+a.P|0),ul().Xd;b.wk(c)}else{if(2>(a.ma-a.P|0))return pk.prototype.va.call(a,-2+a.P|0),ul().pd; -d=255&DG(a);var g=255&DG(a);f=65535&(f?d<<8|g:g<<8|d);if(56320!==(64512&f))return pk.prototype.va.call(a,-4+a.P|0),ul().Ox;if(2>(b.ma-b.P|0))return pk.prototype.va.call(a,-4+a.P|0),ul().Xd;b.wk(c);b.wk(f)}}}};GG.prototype.$classData=x({r6:0},!1,"java.nio.charset.UTF_16_Common$Decoder",{r6:1,xN:1,b:1}); -function HG(a){this.Nx=null;this.Mx=this.iu=0;this.zr=this.xr=this.yr=null;this.fk=0;this.Px=!1;this.QC=null;if(null===a)throw K(L(),null);this.QC=a;var b=0===a.sh?4:2;if(2===a.sh){var c=qc(new rc,[-3,-1]);Lo();var d=c.y();d=new kb(d);c=new IG(c);c=new JG(c);for(var f=0;c.v();)d.a[f]=c.s()|0,f=1+f|0}else for(c=qc(new rc,[-1,-3]),Lo(),d=c.y(),d=new kb(d),c=new IG(c),c=new JG(c),f=0;c.v();)d.a[f]=c.s()|0,f=1+f|0;jl(this,a,2,b,d);this.Px=0===a.sh}HG.prototype=new ll;HG.prototype.constructor=HG; -HG.prototype.cv=function(){this.Px=0===this.QC.sh}; -HG.prototype.eE=function(a,b){if(this.Px){if(2>(b.ma-b.P|0))return ul().Xd;FG(b,-2);FG(b,-1);this.Px=!1}for(var c=2!==this.QC.sh;;){if(0===(a.ma-a.P|0))return ul().pd;var d=a.np();if(56320===(64512&d))return pk.prototype.va.call(a,-1+a.P|0),ul().Yd;if(55296!==(64512&d)){if(2>(b.ma-b.P|0))return pk.prototype.va.call(a,-1+a.P|0),ul().Xd;c?(FG(b,d>>8<<24>>24),FG(b,d<<24>>24)):(FG(b,d<<24>>24),FG(b,d>>8<<24>>24))}else{if(1>(a.ma-a.P|0))return pk.prototype.va.call(a,-1+a.P|0),ul().pd;var f=a.np();if(56320!== -(64512&f))return pk.prototype.va.call(a,-2+a.P|0),ul().Yd;if(4>(b.ma-b.P|0))return pk.prototype.va.call(a,-2+a.P|0),ul().Xd;c?(FG(b,d>>8<<24>>24),FG(b,d<<24>>24)):(FG(b,d<<24>>24),FG(b,d>>8<<24>>24));c?(FG(b,f>>8<<24>>24),FG(b,f<<24>>24)):(FG(b,f<<24>>24),FG(b,f>>8<<24>>24))}}};HG.prototype.$classData=x({s6:0},!1,"java.nio.charset.UTF_16_Common$Encoder",{s6:1,yN:1,b:1}); -function KG(a,b){var c=a.Ve;if(null===c)throw CF();if(a.sg)throw new hl;var d=a.Uf;if(-1===d)throw CF();if(a.sg)throw new hl;var f=a.P+d|0,g=a.ma+d|0,h=b.Ne;if(null===h)throw CF();if(b.ch())throw new hl;var l=b.Vf;if(-1===l)throw CF();if(b.ch())throw new hl;for(var n=b.ma+l|0,r=b.P+l|0;;){if(f===g)return c=ul().pd,pk.prototype.va.call(a,f-d|0),pk.prototype.va.call(b,r-l|0),c;var u=c.a[f];if(0<=u){if(r===n)return c=ul().Xd,pk.prototype.va.call(a,f-d|0),pk.prototype.va.call(b,r-l|0),c;h.a[r]=65535& -u;r=1+r|0;f=1+f|0}else{var w=Sk().RC.a[127&u];if(-1===w)return c=ul().Yd,pk.prototype.va.call(a,f-d|0),pk.prototype.va.call(b,r-l|0),c;if((1+f|0)>=g){u=ul().pd;var A=0,M=0}else if(A=c.a[1+f|0],128!==(192&A))u=ul().Yd,M=A=0;else if(2===w)u=(31&u)<<6|63&A,128>u?(u=ul().Yd,A=0):(A=65535&u,u=null),M=0;else if((2+f|0)>=g)u=ul().pd,M=A=0;else if(M=c.a[2+f|0],128!==(192&M))u=ul().Ar,M=A=0;else if(3===w)u=(15&u)<<12|(63&A)<<6|63&M,2048>u?(u=ul().Yd,A=0):55296<=u&&57343>=u?(u=ul().Vo,A=0):(A=65535&u,u=null), -M=0;else if((3+f|0)>=g)u=ul().pd,M=A=0;else{var T=c.a[3+f|0];128!==(192&T)?(u=ul().Vo,M=A=0):(u=(7&u)<<18|(63&A)<<12|(63&M)<<6|63&T,65536>u||1114111>10),M=65535&(56320|1023&u),u=null))}if(null!==u)return c=u,pk.prototype.va.call(a,f-d|0),pk.prototype.va.call(b,r-l|0),c;if(0===M){if(r===n)return c=ul().Xd,pk.prototype.va.call(a,f-d|0),pk.prototype.va.call(b,r-l|0),c;h.a[r]=A;r=1+r|0;f=f+w|0}else{if((2+r|0)>n)return c=ul().Xd,pk.prototype.va.call(a, -f-d|0),pk.prototype.va.call(b,r-l|0),c;h.a[r]=A;h.a[1+r|0]=M;r=2+r|0;f=f+w|0}}}}function LG(){this.Lx=null;this.Kx=this.hu=0;this.wr=this.ur=this.vr=null;this.ek=0;cl(this,Sk(),1)}LG.prototype=new fl;LG.prototype.constructor=LG; -LG.prototype.aE=function(a,b){if(null===a.Ve||a.sg||null===b.Ne||b.ch())for(;;){var c=a.P;if(a.P===a.ma)return ul().pd;var d=DG(a);if(0<=d){if(b.P===b.ma)return b=ul().Xd,pk.prototype.va.call(a,c),b;b.wk(65535&d)}else{var f=Sk().RC.a[127&d];if(-1===f)return b=ul().Yd,pk.prototype.va.call(a,c),b;if(a.P!==a.ma){var g=DG(a);if(128!==(192&g)){d=ul().Yd;var h=g=0}else 2===f?(d=(31&d)<<6|63&g,128>d?(d=ul().Yd,g=0):(g=65535&d,d=null),h=0):a.P!==a.ma?(h=DG(a),128!==(192&h)?(d=ul().Ar,h=g=0):3===f?(d=(15& -d)<<12|(63&g)<<6|63&h,2048>d?(d=ul().Yd,g=0):55296<=d&&57343>=d?(d=ul().Vo,g=0):(g=65535&d,d=null),h=0):a.P!==a.ma?(f=DG(a),128!==(192&f)?(d=ul().Vo,h=g=0):(d=(7&d)<<18|(63&g)<<12|(63&h)<<6|63&f,65536>d||1114111>10),h=65535&(56320|1023&d),d=null))):(d=ul().pd,h=g=0)):(d=ul().pd,h=g=0)}else d=ul().pd,h=g=0;if(null!==d)return b=d,pk.prototype.va.call(a,c),b;if(0===h){if(b.P===b.ma)return b=ul().Xd,pk.prototype.va.call(a,c),b;b.wk(g)}else{if(2>(b.ma- -b.P|0))return b=ul().Xd,pk.prototype.va.call(a,c),b;b.wk(g);b.wk(h)}}}else return KG(a,b)};LG.prototype.$classData=x({u6:0},!1,"java.nio.charset.UTF_8$Decoder",{u6:1,xN:1,b:1}); -function MG(a,b){var c=a.Ne;if(null===c)throw CF();if(a.ch())throw new hl;var d=a.Vf;if(-1===d)throw CF();if(a.ch())throw new hl;var f=a.P+d|0,g=a.ma+d|0,h=b.Ve;if(null===h)throw CF();if(b.sg)throw new hl;var l=b.Uf;if(-1===l)throw CF();if(b.sg)throw new hl;for(var n=b.ma+l|0,r=b.P+l|0;;){if(f===g)return c=ul().pd,pk.prototype.va.call(a,f-d|0),pk.prototype.va.call(b,r-l|0),c;var u=c.a[f];if(128>u){if(r===n)return c=ul().Xd,pk.prototype.va.call(a,f-d|0),pk.prototype.va.call(b,r-l|0),c;h.a[r]=u<<24>> -24;r=1+r|0;f=1+f|0}else if(2048>u){if((2+r|0)>n)return c=ul().Xd,pk.prototype.va.call(a,f-d|0),pk.prototype.va.call(b,r-l|0),c;h.a[r]=(192|u>>6)<<24>>24;h.a[1+r|0]=(128|63&u)<<24>>24;r=2+r|0;f=1+f|0}else if(Sk(),55296!==(63488&u)){if((3+r|0)>n)return c=ul().Xd,pk.prototype.va.call(a,f-d|0),pk.prototype.va.call(b,r-l|0),c;h.a[r]=(224|u>>12)<<24>>24;h.a[1+r|0]=(128|63&u>>6)<<24>>24;h.a[2+r|0]=(128|63&u)<<24>>24;r=3+r|0;f=1+f|0}else if(55296===(64512&u)){if((1+f|0)===g)return c=ul().pd,pk.prototype.va.call(a, -f-d|0),pk.prototype.va.call(b,r-l|0),c;var w=c.a[1+f|0];if(56320!==(64512&w))return c=ul().Yd,pk.prototype.va.call(a,f-d|0),pk.prototype.va.call(b,r-l|0),c;if((4+r|0)>n)return c=ul().Xd,pk.prototype.va.call(a,f-d|0),pk.prototype.va.call(b,r-l|0),c;u=(64+(1023&u)|0)<<10|1023&w;h.a[r]=(240|u>>18)<<24>>24;h.a[1+r|0]=(128|63&u>>12)<<24>>24;h.a[2+r|0]=(128|63&u>>6)<<24>>24;h.a[3+r|0]=(128|63&u)<<24>>24;r=4+r|0;f=2+f|0}else return c=ul().Yd,pk.prototype.va.call(a,f-d|0),pk.prototype.va.call(b,r-l|0),c}} -function NG(){this.Nx=null;this.Mx=this.iu=0;this.zr=this.xr=this.yr=null;this.fk=0;var a=Sk();jl(this,a,1.100000023841858,3,new kb(new Int8Array([63])))}NG.prototype=new ll;NG.prototype.constructor=NG; -NG.prototype.eE=function(a,b){if(null===a.Ne||a.ch()||null===b.Ve||b.sg)for(;;){if(a.P===a.ma)return ul().pd;var c=a.np();if(128>c){if(b.P===b.ma)return b=ul().Xd,pk.prototype.va.call(a,-1+a.P|0),b;FG(b,c<<24>>24)}else if(2048>c){if(2>(b.ma-b.P|0))return b=ul().Xd,pk.prototype.va.call(a,-1+a.P|0),b;FG(b,(192|c>>6)<<24>>24);FG(b,(128|63&c)<<24>>24)}else if(Sk(),55296!==(63488&c)){if(3>(b.ma-b.P|0))return b=ul().Xd,pk.prototype.va.call(a,-1+a.P|0),b;FG(b,(224|c>>12)<<24>>24);FG(b,(128|63&c>>6)<<24>> -24);FG(b,(128|63&c)<<24>>24)}else if(55296===(64512&c)){if(a.P===a.ma)return b=ul().pd,pk.prototype.va.call(a,-1+a.P|0),b;var d=a.np();if(56320!==(64512&d))return b=ul().Yd,pk.prototype.va.call(a,-2+a.P|0),b;if(4>(b.ma-b.P|0))return b=ul().Xd,pk.prototype.va.call(a,-2+a.P|0),b;c=(64+(1023&c)|0)<<10|1023&d;FG(b,(240|c>>18)<<24>>24);FG(b,(128|63&c>>12)<<24>>24);FG(b,(128|63&c>>6)<<24>>24);FG(b,(128|63&c)<<24>>24)}else return b=ul().Yd,pk.prototype.va.call(a,-1+a.P|0),b}else return MG(a,b)}; -NG.prototype.$classData=x({v6:0},!1,"java.nio.charset.UTF_8$Encoder",{v6:1,yN:1,b:1});function OG(){}OG.prototype=new t;OG.prototype.constructor=OG;function PG(){}PG.prototype=OG.prototype;OG.prototype.c=function(a){if(a===this)return!0;if(a&&a.$classData&&a.$classData.Eb.xz&&this.$()===a.$()){var b=this.Hm().zg();a:{for(;b.v();){var c=b.s(),d=a.qk(c.Ag);c=c.cg;if(null===d?null!==c:!Ka(d,c)){a=!0;break a}}a=!1}return!a}return!1}; -OG.prototype.p=function(){for(var a=this.Hm().zg(),b=0;a.v();){var c=b;b=a.s();c|=0;b=b.p()+c|0}return b|0};OG.prototype.g=function(){for(var a="{",b=!0,c=this.Hm().zg();c.v();){var d=c.s();b?b=!1:a+=", ";a=""+a+d.Ag+"\x3d"+d.cg}return a+"}"};function QG(){}QG.prototype=new tm;QG.prototype.constructor=QG;QG.prototype.$classData=x({aca:0},!1,"java.util.Formatter$RootLocaleInfo$",{aca:1,moa:1,b:1});var RG;function GF(){RG||(RG=new QG);return RG} -function SG(a,b){if(null===b)throw K(L(),null);a.rz=b;a.sz=b.dg.a.length}function TG(){this.rs=this.sz=0;this.rz=this.ss=null}TG.prototype=new t;TG.prototype.constructor=TG;function UG(){}UG.prototype=TG.prototype;TG.prototype.v=function(){if(null!==this.ss)return!0;for(;this.rs>>16|0)^(null===b?0:Oa(b))};VG.prototype.g=function(){return this.Ag+"\x3d"+this.cg}; -var XG=x({TP:0},!1,"java.util.HashMap$Node",{TP:1,b:1,IE:1});VG.prototype.$classData=XG;function YG(){this.KE=this.JE=0;this.Fca=!1}YG.prototype=new t;YG.prototype.constructor=YG;function ZG(a){var b=a.KE,c=15525485*b+11;b=16777215&((c/16777216|0)+(16777215&(1502*b+15525485*a.JE|0))|0);c=16777215&(c|0);a.JE=b;a.KE=c;return(b<<8|c>>16)>>>0|0}YG.prototype.$classData=x({Bca:0},!1,"java.util.Random",{Bca:1,b:1,d:1});function $G(){var a=4294967296*+Math.random();return Ya(+Math.floor(a)-2147483648)} -function aH(){}aH.prototype=new t;aH.prototype.constructor=aH;aH.prototype.$classData=x({Cca:0},!1,"java.util.Random$",{Cca:1,b:1,d:1});var bH;function cH(a){if(!a.LE&&!a.LE){var b=new YG;bH||(bH=new aH);var c=$G();var d=$G();c=new p(d,c);d=-554899859^c.m;b.JE=d>>>24|0|(65535&(5^c.r))<<8;b.KE=16777215&d;b.Fca=!1;a.VP=b;a.LE=!0}return a.VP}function dH(a){throw fm("Invalid UUID string: "+a);}function eH(){this.VP=null;this.LE=!1}eH.prototype=new t;eH.prototype.constructor=eH; -function fH(){var a=gH(),b=ZG(cH(a)),c=16384|-61441&ZG(cH(a)),d=-2147483648|1073741823&ZG(cH(a));a=ZG(cH(a));return new hH(b,c,d,a,null,null)}eH.prototype.$classData=x({Hca:0},!1,"java.util.UUID$",{Hca:1,b:1,d:1});var iH;function gH(){iH||(iH=new eH);return iH}function jH(a,b){if(null===b)throw K(L(),null);a.ME=b;var c=b.Ch,d=new kH;d.pz=[];if(0>c)throw rk();for(b=new lH(b);b.v();)d.fj(b.s());a.qv=mH(d)}function nH(){this.ME=this.qv=null}nH.prototype=new t;nH.prototype.constructor=nH; -function oH(){}oH.prototype=nH.prototype;nH.prototype.v=function(){return this.qv.v()};nH.prototype.s=function(){var a=this.qv.s();return this.Zu(a)};function pH(){this.ts=this.Bz=this.Ez=this.Fz=this.Dz=this.Cz=this.rv=null;qH=this;this.rv=new rH;this.Cz=new sH;this.Dz=new tH;this.Fz=new uH;this.Ez=new vH;this.Bz=new wH;this.ts=new xH;new (y(yH).M)([this.rv,this.Cz,this.Dz,this.Fz,this.Ez,this.Bz,this.ts])}pH.prototype=new t;pH.prototype.constructor=pH; -function zH(a,b,c,d){a=b.r;var f=d.r;if(a===f?(-2147483648^b.m)>(-2147483648^d.m):a>f)return new p(-1,2147483647);a=d.m;d=d.r;d=0!==a?~d:-d|0;f=b.r;if(f===d?(-2147483648^b.m)<(-2147483648^(-a|0)):f>>16|0;var h=65535&a,l=a>>>16|0,n=k(g,h);h=k(f,h);var r=k(g,l);g=n+((h+r|0)<<16)|0;n=(n>>>16|0)+r|0;b=(((k(d,c.r)+k(b.r,a)|0)+k(f,l)|0)+(n>>>16|0)|0)+(((65535&n)+h|0)>>>16|0)|0;return new p(g,b)} -pH.prototype.$classData=x({Qca:0},!1,"java.util.concurrent.TimeUnit$",{Qca:1,b:1,d:1});var qH;function AH(){qH||(qH=new pH);return qH}function BH(){this.oc=null}BH.prototype=new t;BH.prototype.constructor=BH;function CH(){}CH.prototype=BH.prototype;function DH(a,b,c){return Object.is(b,a.oc)?(a.oc=c,!0):!1}BH.prototype.g=function(){return""+this.oc};function EH(a){a.Jz.lastIndex=0;a.qj=null;a.SE=!1;a.Iz=!0;a.ws=0;a.mQ=null}function FH(a){if(null===a.qj)throw Kq("No match available");return a.qj} -function $g(a,b,c,d){this.qj=this.vp=this.Jz=null;this.Iz=this.SE=!1;this.ws=0;this.mQ=null;this.fda=a;this.RE=b;this.Kz=c;this.TE=d;a=this.fda;b=new RegExp(a.xs);this.Jz=Object.is(b,a.xs)?new RegExp(a.xs.source,(a.xs.global?"g":"")+(a.xs.ignoreCase?"i":"")+(a.xs.multiline?"m":"")):b;this.vp=Ua(Sa(this.RE,this.Kz,this.TE));this.qj=null;this.SE=!1;this.Iz=!0;this.ws=0}$g.prototype=new t;$g.prototype.constructor=$g; -function Zg(a){EH(a);GH(a);null===a.qj||0===(FH(a).index|0)&&(HH(a).length|0)===(a.vp.length|0)||EH(a);return null!==a.qj}function GH(a){if(a.Iz){a.SE=!0;a.qj=a.Jz.exec(a.vp);if(null!==a.qj){var b=a.qj[0];if(void 0===b)throw qp("undefined.get");""===b&&(b=a.Jz,b.lastIndex=1+(b.lastIndex|0)|0)}else a.Iz=!1;a.mQ=null;return null!==a.qj}return!1}function IH(a){return(FH(a).index|0)+a.Kz|0}function JH(a){var b=IH(a);a=HH(a);return b+(a.length|0)|0} -function HH(a){a=FH(a)[0];if(void 0===a)throw qp("undefined.get");return a}$g.prototype.$classData=x({eda:0},!1,"java.util.regex.Matcher",{eda:1,b:1,uoa:1});function KH(a,b){this.xs=a;this.ida=b}KH.prototype=new t;KH.prototype.constructor=KH;KH.prototype.g=function(){return this.ida};KH.prototype.$classData=x({gda:0},!1,"java.util.regex.Pattern",{gda:1,b:1,d:1});function LH(){this.nQ=this.oQ=null;MH=this;this.oQ=/^\\Q(.|\n|\r)\\E$/;this.nQ=/^\(\?([idmsuxU]*)(?:-([idmsuxU]*))?\)/}LH.prototype=new t; -LH.prototype.constructor=LH; -function Yg(a,b){a=a.oQ.exec(b);if(null!==a){a=a[1];if(void 0===a)throw qp("undefined.get");for(var c=new B,d="",f=0;f<(a.length|0);){var g=65535&(a.charCodeAt(f)|0);switch(g){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:g="\\"+q(g);break;default:g=q(g)}d=""+d+g;f=1+f|0}a=new dd(z(c,d,0))}else a=H();if(a.k())if(f=Xg().nQ.exec(b),null!==f){a=f[0];if(void 0===a)throw qp("undefined.get");a=b.substring(a.length|0);c=0;g=f[1];if(void 0!== -g){d=g.length|0;for(var h=0;hg=>{g=Ma(g);return d.gj(g)||!!f.t(q(g))})(a,b)))}function QH(a,b,c,d){this.ON=a;this.WC=c;this.VC=d}QH.prototype=new t;QH.prototype.constructor=QH;QH.prototype.$classData=x({R6:0},!1,"org.parboiled2.Parser$CollectingRuleTraces",{R6:1,b:1,XC:1});x({T6:0},!1,"org.parboiled2.Parser$DeliveryScheme$$anon$1",{T6:1,b:1,xna:1});function RH(a,b){this.V6=a;this.W6=b} -RH.prototype=new t;RH.prototype.constructor=RH;RH.prototype.$classData=x({U6:0},!1,"org.parboiled2.Parser$DetermineReportQuiet",{U6:1,b:1,XC:1});function SH(a){this.YC=a}SH.prototype=new t;SH.prototype.constructor=SH;SH.prototype.$classData=x({X6:0},!1,"org.parboiled2.Parser$EstablishingPrincipalErrorIndex",{X6:1,b:1,XC:1});function TH(a,b,c){this.Z6=a;this.PN=b;this.Sx=c}TH.prototype=new t;TH.prototype.constructor=TH; -TH.prototype.$classData=x({Y6:0},!1,"org.parboiled2.Parser$EstablishingReportedErrorIndex",{Y6:1,b:1,XC:1});function UH(){}UH.prototype=new t;UH.prototype.constructor=UH;function VH(){}VH.prototype=UH.prototype;function WH(a,b){for(var c=0,d=1,f=1;;){if(c>=a)return new XH(a,d,f);c>=b.y()||10!==b.Lf(c)?(f=1+f|0,c=1+c|0):(d=1+d|0,c=1+c|0,f=1)}}function YH(){}YH.prototype=new t;YH.prototype.constructor=YH;YH.prototype.$classData=x({f7:0},!1,"org.parboiled2.Position$",{f7:1,b:1,d:1});var ZH; -function $H(){}$H.prototype=new t;$H.prototype.constructor=$H;function aI(){}aI.prototype=$H.prototype;function bI(a,b,c){return new C(((d,f,g)=>h=>{h=cI(f,h.uh);return h instanceof ph&&(h=h.re,null===g?null===h:g.c(h))?!0:!1})(a,b,c))}function dI(){}dI.prototype=new t;dI.prototype.constructor=dI; -function eI(a){var b=fI;if(1>>0)):jI(a,b,c,1E9,0,2)}function kI(a,b,c,d,f){return 0===(-2097152&c)?0===(-2097152&f)?(c=(4294967296*c+ +(b>>>0))/(4294967296*f+ +(d>>>0)),a.sa=c/4294967296|0,c|0):a.sa=0:0===f&&0===(d&(-1+d|0))?(d=31-la(d)|0,a.sa=c>>>d|0,b>>>d|0|c<<1<<(31-d|0)):0===d&&0===(f&(-1+f|0))?(b=31-la(f)|0,a.sa=0,c>>>b|0):jI(a,b,c,d,f,0)|0} -function jI(a,b,c,d,f,g){var h=(0!==f?la(f):32+la(d)|0)-(0!==c?la(c):32+la(b)|0)|0,l=h,n=0===(32&l)?d<>>1|0)>>>(31-l|0)|0|f<=(-2147483648^M):(-2147483648^A)>=(-2147483648^T))w=u,A=r,u=l-n|0,w=(-2147483648^u)>(-2147483648^l)?-1+(w-A|0)|0:w-A|0,l=u,u=w,32>h?c|=1<>>1|0;n=n>>>1|0|r<<31;r=w}h=u;if(h===f?(-2147483648^l)>=(-2147483648^d):(-2147483648^h)>=(-2147483648^ -f))h=4294967296*u+ +(l>>>0),d=4294967296*f+ +(d>>>0),1!==g&&(r=h/d,f=r/4294967296|0,n=c,c=r=n+(r|0)|0,b=(-2147483648^r)<(-2147483648^n)?1+(b+f|0)|0:b+f|0),0!==g&&(d=h%d,l=d|0,u=d/4294967296|0);if(0===g)return a.sa=b,c;if(1===g)return a.sa=u,l;a=""+l;return""+(4294967296*b+ +(c>>>0))+"000000000".substring(a.length|0)+a}function lI(){this.sa=0}lI.prototype=new t;lI.prototype.constructor=lI;function IE(a,b,c){return c===b>>31?""+b:0>c?"-"+iI(a,-b|0,0!==b?~c:-c|0):iI(a,b,c)} -function Wt(a,b,c){return 0>c?-(4294967296*+((0!==b?~c:-c|0)>>>0)+ +((-b|0)>>>0)):4294967296*c+ +(b>>>0)}function mI(a,b,c){0>c?(a=-b|0,b=0!==b?~c:-c|0):(a=b,b=c);b=4294967296*+(b>>>0)+ +((0===(-2097152&b)||0===(65535&a)?a:32768|-65536&a)>>>0);return ka(0>c?-b:b)}function ju(a,b){if(-9223372036854775808>b)return a.sa=-2147483648,0;if(0x7fffffffffffffff<=b)return a.sa=2147483647,-1;var c=b|0,d=b/4294967296|0;a.sa=0>b&&0!==c?-1+d|0:d;return c} -function nI(a,b,c,d,f){return c===f?b===d?0:(-2147483648^b)<(-2147483648^d)?-1:1:c>31){if(f===d>>31){if(-2147483648===b&&-1===d)return a.sa=0,-2147483648;c=Va(b,d);a.sa=c>>31;return c}return-2147483648===b&&-2147483648===d&&0===f?a.sa=-1:a.sa=0}if(0>c){var g=-b|0;b=0!==b?~c:-c|0}else g=b,b=c;if(0>f){var h=-d|0;d=0!==d?~f:-f|0}else h=d,d=f;g=kI(a,g,b,h,d);if(0<=(c^f))return g;c=a.sa;a.sa=0!==g?~c:-c|0;return-g|0} -function sj(a,b,c,d,f){if(0===(d|f))throw new Wa("/ by zero");return 0===c?0===f?(a.sa=0,0===d?Va(0,0):+(b>>>0)/+(d>>>0)|0):a.sa=0:kI(a,b,c,d,f)} -function gk(a,b,c,d,f){if(0===(d|f))throw new Wa("/ by zero");if(c===b>>31){if(f===d>>31)return-1!==d?(c=Xa(b,d),a.sa=c>>31,c):a.sa=0;if(-2147483648===b&&-2147483648===d&&0===f)return a.sa=0;a.sa=c;return b}if(0>c)var g=-b|0,h=0!==b?~c:-c|0;else g=b,h=c;0>f?(b=-d|0,d=0!==d?~f:-f|0):(b=d,d=f);0===(-2097152&h)?0===(-2097152&d)?(b=(4294967296*h+ +(g>>>0))%(4294967296*d+ +(b>>>0)),a.sa=b/4294967296|0,b|=0):(a.sa=h,b=g):0===d&&0===(b&(-1+b|0))?(a.sa=0,b=g&(-1+b|0)):0===b&&0===(d&(-1+d|0))?(a.sa=h&(-1+ -d|0),b=g):b=jI(a,g,h,b,d,1)|0;return 0>c?(c=a.sa,a.sa=0!==b?~c:-c|0,-b|0):b}lI.prototype.$classData=x({Laa:0},!1,"org.scalajs.linker.runtime.RuntimeLong$",{Laa:1,b:1,d:1});var oI;function tj(){oI||(oI=new lI);return oI}function pI(){qI=this}pI.prototype=new t;pI.prototype.constructor=pI;pI.prototype.$classData=x({kda:0},!1,"scala.$less$colon$less$",{kda:1,b:1,d:1});var qI;function nc(){qI||(qI=new pI)}function rI(){}rI.prototype=new t;rI.prototype.constructor=rI; -function sI(a,b,c){a=b.L();if(-1c)throw new am;a=b.a.length;a=cc)throw new am;a=b.a.length;a=cc)throw new am;a=b.a.length;a=cc)throw new am;a=b.a.length;a=cc)throw new am;a=b.a.length;a=cc)throw new am;a=b.a.length;a=cc)throw new am;a=b.a.length;a=ca.xG){b=a.pi.a.length<<1;c=a.pi;a.pi=new (y(Ir).M)(b);if(null!==a.hq)if(d=1+(a.pi.a.length>>5)|0,a.hq.a.length!==d)a.hq=new ob(d);else{d=a.hq;hm();f=d.a.length;for(var g=0;g!==f;)d.a[g]=0,g=1+g|0}for(d=-1+c.a.length|0;0<=d;){for(f=c.a[d];null!==f;){g=f.dl;g=ku(S(),g);g=HJ(a,g);var h= -f.OA;f.OA=a.pi.a[g];a.pi.a[g]=f;f=h;LJ(a,g)}d=-1+d|0}a.xG=Pr(Rr(),a.wG,b)}return null}function LJ(a,b){null!==a.hq&&(a=a.hq,b>>=5,a.a[b]=1+a.a[b]|0)}function HJ(a,b){var c=-1+a.pi.a.length|0,d=la(c);a=a.hS;Hv||(Hv=new Gv);b=k(-1640532531,b);Hq();b=k(-1640532531,b<<24|16711680&b<<8|65280&(b>>>8|0)|b>>>24|0);return((b>>>a|0|b<<(-a|0))>>>d|0)&c}function KJ(a,b){this.OA=null;this.dl=a;this.Gj=b;this.NA=this.tka=null}KJ.prototype=new t;KJ.prototype.constructor=KJ; -KJ.prototype.$classData=x({ska:0},!1,"scala.collection.mutable.LinkedHashMap$LinkedEntry",{ska:1,b:1,eS:1});function At(){}At.prototype=new t;At.prototype.constructor=At;At.prototype.$classData=x({Fka:0},!1,"scala.collection.mutable.StringBuilder$",{Fka:1,b:1,d:1});var zt;function Rs(a,b,c,d){return ty(a,new C(((f,g,h,l)=>n=>Ps(g,new C(((r,u,w)=>A=>u.Oe(w,A))(f,h,n)),l))(a,b,c,d)),d&&d.$classData&&d.$classData.Eb.CQ?d:Ss())}function MJ(a,b){E();a=NJ(b);a=df(0,dh(a,"\\s+"));eh();return hh(F(),a)} -function OJ(a,b){b=MJ(0,b);if(!(b instanceof ph))throw new D(b);a=b.re;b=b.Gb;for(var c=null,d=null;b!==F();){var f=b.R();J();f=qc(new rc,[f,f+"s"]);for(f=hh(F(),f).w();f.v();){var g=new ph(f.s(),F());null===d?c=g:d.Gb=g;d=g}b=b.X()}b=null===c?F():c;return new ph(a,b)} -function PJ(){this.nF=this.mF=this.Yz=this.PQ=this.oF=null;QJ=this;J();var a=AH().ts;a=z(new B,a,"d day");var b=AH().Bz;b=z(new B,b,"h hr hour");var c=AH().Ez;c=z(new B,c,"m min minute");var d=AH().Fz;d=z(new B,d,"s sec second");var f=AH().Dz;f=z(new B,f,"ms milli millisecond");var g=AH().Cz;g=z(new B,g,"\u00b5s micro microsecond");var h=AH().rv;a=[a,b,c,d,f,g,z(new B,h,"ns nano nanosecond")];a=qc(new rc,a);a=this.oF=hh(F(),a);nc();a=G(fJ(),a);a=new RJ(new SJ(a),new C((()=>n=>MJ(TJ(),n).$b())(this))); -nc();this.PQ=G(fJ(),a);a=this.oF;for(c=b=null;a!==F();){f=a.R();if(null===f)throw new D(f);d=f.ib;f=f.Va;h=OJ(TJ(),f);d=((n,r)=>u=>z(new B,u,r))(this,d);if(h===F())d=F();else{f=h.R();g=f=new ph(d(f),F());for(h=h.X();h!==F();){var l=h.R();l=new ph(d(l),F());g=g.Gb=l;h=h.X()}d=f}for(d=d.w();d.v();)f=new ph(d.s(),F()),null===c?b=f:c.Gb=f,c=f;a=a.X()}a=null===b?F():b;nc();G(fJ(),a);new UJ(ma,AH().ts);this.Yz=new VJ;this.mF=new WJ;this.nF=new XJ}PJ.prototype=new t;PJ.prototype.constructor=PJ; -PJ.prototype.$classData=x({Sda:0},!1,"scala.concurrent.duration.Duration$",{Sda:1,b:1,d:1});var QJ;function TJ(){QJ||(QJ=new PJ);return QJ}function YJ(a,b){this.SQ=a;this.TQ=b}YJ.prototype=new t;YJ.prototype.constructor=YJ;YJ.prototype.g=function(){return"ManyCallbacks"};YJ.prototype.$classData=x({Zda:0},!1,"scala.concurrent.impl.Promise$ManyCallbacks",{Zda:1,b:1,QQ:1});function ZJ(){this.Ds=null;$J=this;this.Ds=Rj().uN}ZJ.prototype=new t;ZJ.prototype.constructor=ZJ; -function aK(a,b){var c=""+a;a=new dG;bK(a,tn(c),c.length|0);c=b.dk;var d=cK(a)-c|0;if(!(dK(a)=d))if(64>a.ye){c=nG().eu.a[d];var f=c.m,g=c.r,h=a.Qa,l=h>>31,n=d>>31;c=h-d|0;h=(-2147483648^c)>(-2147483648^h)?-1+(l-n|0)|0:l-n|0;d=a.ie;n=d.m;var r=d.r;l=tj();d=vj(l,n,r,f,g);l=l.sa;var u=tj();n=gk(u,n,r,f,g);r=u.sa;if(0!==n||0!==r){nG();if(0>r){var w=-n|0;u=0!==n?~r:-r|0}else w=n,u=r;u=new p(w<<1,w>>>31|0|u<<1);f=new p(f,g);g=u.r;w=f.r;(g===w?(-2147483648^u.m)>(-2147483648^f.m):g>w)?f=1:(g= -u.r,w=f.r,f=(g===w?(-2147483648^u.m)<(-2147483648^f.m):gr?-1:0===r&&0===n?0:1,5+f|0);f=rG(nG(),1&d,f,b.rr);g=f>>31;f=d+f|0;d=(-2147483648^f)<(-2147483648^d)?1+(l+g|0)|0:l+g|0;0>d?(l=-f|0,g=0!==f?~d:-d|0):(l=f,g=d);l=Wt(tj(),l,g);+Math.log10(l)>=b.dk?(c=-1+c|0,l=-1!==c?h:-1+h|0,h=tj(),d=vj(h,f,d,10,0),c=new p(c,l),d=new p(d,h.sa)):(c=new p(c,h),d=new p(f,d))}else c=new p(c,h),d=new p(d,l);h=c;c=h.m;h=h.r;l=d;d=l.m;l=l.r;a.Qa=sG(nG(),new p(c,h));a.um=b.dk;a.ie=new p(d,l);a.ye=mG(nG(), -new p(d,l));a.tm=null}else f=ek(Aj(),new p(d,d>>31)),h=eK(eG(a),f),l=a.Qa,g=l>>31,n=d>>31,d=l-d|0,l=(-2147483648^d)>(-2147483648^l)?-1+(g-n|0)|0:g-n|0,0!==h.a[1].Ca&&(g=cF(fK(YF(h.a[1])),f),f=gK(h.a[0],0)?1:0,g=k(h.a[1].Ca,5+g|0),f=rG(nG(),f,g,b.rr),0!==f&&(f=Ij(lj(),new p(f,f>>31)),g=h.a[0],h.a[0]=Gj(Mj(),g,f)),f=new dG,hK(f,h.a[0],0),cK(f)>c&&(h.a[0]=iK(h.a[0],lj().bk),d=f=-1+d|0,l=-1!==f?l:-1+l|0)),a.Qa=sG(nG(),new p(d,l)),a.um=c,jK(a,h.a[0]);return new bJ(a,b)} -ZJ.prototype.$classData=x({dea:0},!1,"scala.math.BigDecimal$",{dea:1,b:1,d:1});var $J;function kK(){$J||($J=new ZJ);return $J}function lK(){this.aA=this.Gv=0;this.UQ=this.pF=null;mK=this;this.Gv=-1024;this.aA=1024;this.pF=new (y(nK).M)(1+(this.aA-this.Gv|0)|0);this.UQ=Ij(lj(),new p(-1,-1))}lK.prototype=new t;lK.prototype.constructor=lK; -function oK(a,b){if(a.Gv<=b&&b<=a.aA){var c=b-a.Gv|0,d=a.pF.a[c];null===d&&(d=b>>31,d=new pK(Ij(lj(),new p(b,d))),a.pF.a[c]=d);return d}a=b>>31;return new pK(Ij(lj(),new p(b,a)))}function qK(a,b){var c=a.Gv,d=c>>31,f=b.r;(d===f?(-2147483648^c)<=(-2147483648^b.m):d>31,f=b.r,c=f===d?(-2147483648^b.m)<=(-2147483648^c):fa?0:a}; -e.Lf=function(a){if(0<=a&&aa)throw Rq(new pp,a+" is out of bounds (min 0, max "+(-1+this.y()|0)+")");if(b>this.y())throw Rq(new pp,b+" is out of bounds (min 0, max "+(-1+this.lq.a.length|0)+")");if(b<=a)return new OI(this.lq,0,0);var c=this.UA+a|0;return new OI(this.lq,c,c+(b-a|0)|0)}; -e.g=function(){var a=this.UA;a=0=c)return"";b=this.lq;c=c-a|0;return wF(oq(),b,a,c)};e.$classData=x({gla:0},!1,"scala.runtime.ArrayCharSequence",{gla:1,b:1,Lm:1});function KK(a){this.zw=a}KK.prototype=new t;KK.prototype.constructor=KK;KK.prototype.g=function(){return""+this.zw};KK.prototype.$classData=x({jla:0},!1,"scala.runtime.IntRef",{jla:1,b:1,d:1});function LK(){this.WA=this.VA=!1}LK.prototype=new t;LK.prototype.constructor=LK; -LK.prototype.g=function(){return"LazyBoolean "+(this.VA?"of: "+this.WA:"thunk")};LK.prototype.$classData=x({lla:0},!1,"scala.runtime.LazyBoolean",{lla:1,b:1,d:1});function MK(){this.XA=!1;this.YA=0}MK.prototype=new t;MK.prototype.constructor=MK;MK.prototype.g=function(){return"LazyInt "+(this.XA?"of: "+this.YA:"thunk")};MK.prototype.$classData=x({mla:0},!1,"scala.runtime.LazyInt",{mla:1,b:1,d:1});function X(){this.e=!1;this.f=null}X.prototype=new t;X.prototype.constructor=X; -function Y(a,b){a.f=b;a.e=!0;return b}X.prototype.g=function(){return"LazyRef "+(this.e?"of: "+this.f:"thunk")};X.prototype.$classData=x({nla:0},!1,"scala.runtime.LazyRef",{nla:1,b:1,d:1});function vy(a){this.Bb=a}vy.prototype=new t;vy.prototype.constructor=vy;vy.prototype.g=function(){return""+this.Bb};vy.prototype.$classData=x({qla:0},!1,"scala.runtime.ObjectRef",{qla:1,b:1,d:1});function Nt(){}Nt.prototype=new t;Nt.prototype.constructor=Nt; -Nt.prototype.$classData=x({cfa:0},!1,"scala.util.Either$",{cfa:1,b:1,d:1});var Mt;function Pt(){}Pt.prototype=new t;Pt.prototype.constructor=Pt;Pt.prototype.g=function(){return"Left"};Pt.prototype.$classData=x({efa:0},!1,"scala.util.Left$",{efa:1,b:1,d:1});var Ot;function Rt(){}Rt.prototype=new t;Rt.prototype.constructor=Rt;Rt.prototype.g=function(){return"Right"};Rt.prototype.$classData=x({ffa:0},!1,"scala.util.Right$",{ffa:1,b:1,d:1});var Qt;function iv(){this.jfa=!1}iv.prototype=new t; -iv.prototype.constructor=iv;iv.prototype.$classData=x({ifa:0},!1,"scala.util.control.NoStackTrace$",{ifa:1,b:1,d:1});var hv;function NK(){this.fA=this.gA=this.Ck=this.be=0;OK=this;this.be=Pa("Seq");this.Ck=Pa("Map");this.gA=Pa("Set");this.fA=vv(this,J().Nd,this.Ck)}NK.prototype=new qv;NK.prototype.constructor=NK;function PK(a,b,c){return sv(a,ku(S(),b),ku(S(),c))} -function QK(a){var b=uv();if(a&&a.$classData&&a.$classData.Eb.Ib)a:{var c=b.be,d=a.y();switch(d){case 0:b=b.ca(c,0);break a;case 1:d=c;a=a.V(0);b=b.ca(b.j(d,ku(S(),a)),1);break a;default:var f=a.V(0),g=ku(S(),f);f=c=b.j(c,g);var h=a.V(1);h=ku(S(),h);var l=h-g|0;for(g=2;gg=>ZK(f,g))(a,c)));return new $K(c)}UK.prototype.$classData=x({W7:0},!1,"ujson.Arr$",{W7:1,b:1,d:1});var aL; -function WK(){aL||(aL=new UK);return aL}function bL(){this.Kr=this.Jf=null;this.eD=this.XN=this.Zx=this.Yx=0}bL.prototype=new t;bL.prototype.constructor=bL;function cL(){}cL.prototype=bL.prototype;function dL(a,b){if(Wv(a,b))throw new eL;}function fL(a,b){dL(a,b);return Vv(a,b)}function gL(a,b,c){var d=new hL(32);mw();new hL(32);a=fL(a,b);hw(0,d,new NI(new jb(new Uint16Array([65535&a]))),!1);a=zn();c=[c,iL(d)];c=yn(a,"%s got %s",qc(new rc,c));throw new jL(c,b);} -function kL(a,b,c){var d=b,f=fL(a,d),g=-1,h=-1;45===f&&(d=1+d|0,f=fL(a,d));if(48===f){d=1+d|0;if(Wv(a,d))return z(new B,c.Ob(Yv(a,b,d-b|0),g,h,b),d);f=fL(a,d)}else{for(var l=d;48<=f&&57>=f;){d=1+d|0;if(Wv(a,d))return z(new B,c.Ob(Yv(a,b,d-b|0),g,h,b),d);f=fL(a,d)}l===d&&gL(a,b,"expected digit")}if(46===f){g=d-b|0;d=1+d|0;f=fL(a,d);for(l=d;48<=f&&57>=f;){d=1+d|0;if(Wv(a,d))return z(new B,c.Ob(Yv(a,b,d-b|0),g,h,b),d);f=fL(a,d)}l===d&&gL(a,b,"expected digit")}if(101===f||69===f){h=d-b|0;d=1+d|0;f=fL(a, -d);if(43===f||45===f)d=1+d|0,f=fL(a,d);for(l=d;48<=f&&57>=f;){d=1+d|0;if(Wv(a,d))return z(new B,c.Ob(Yv(a,b,d-b|0),g,h,b),d);f=fL(a,d)}l===d&&gL(a,b,"expected digit")}return z(new B,c.Ob(Yv(a,b,d-b|0),g,h,b),d)}function lL(a,b,c){dL(a,3+b|0);if(114===Vv(a,1+b|0)&&117===Vv(a,2+b|0)&&101===Vv(a,3+b|0))return c.tc(b);gL(a,b,"expected true")}function mL(a,b,c){dL(a,4+b|0);if(97===Vv(a,1+b|0)&&108===Vv(a,2+b|0)&&115===Vv(a,3+b|0)&&101===Vv(a,4+b|0))return c.rc(b);gL(a,b,"expected false")} -function nL(a,b,c){dL(a,3+b|0);if(117===Vv(a,1+b|0)&&108===Vv(a,2+b|0)&&108===Vv(a,3+b|0))return c.dc(b);gL(a,b,"expected null")} -function oL(a,b){for(var c=0;;)switch(fL(a,c)){case 32:case 9:case 114:c=1+c|0;break;case 10:c=1+c|0;break;case 91:return pL(a,6,1+c|0,b.vb(-1,c));case 123:return pL(a,7,1+c|0,b.Z(-1,c));case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return kL(a,c,b);case 34:var d=qL(a,1+c|0);0<=d?(a=b.l(Yv(a,1+c|0,-2+(d-c|0)|0),c),a=z(new B,a,d)):(d=rL(a,c,d),a=b.l(iL(a.Jf),c),a=z(new B,a,d));return a;case 116:return z(new B,lL(a,c,b),4+c|0);case 102:return z(new B,mL(a,c, -b),5+c|0);case 110:return z(new B,nL(a,c,b),4+c|0);default:gL(a,c,"expected json value")}} -function pL(a,b,c,d){for(var f=J().Nd;;)switch(fL(a,c)){case 32:case 9:case 13:case 10:c=1+c|0;break;case 34:switch(b){case 2:case 7:try{b=a;var g=c,h=d,l=qL(b,1+g|0);if(0<=l){var n=g,r=Yv(b,1+g|0,-2+(l-g|0)|0);b=h;var u=b.q(n);b.i(u.l(r,n));var w=l}else{var A=rL(b,g,l);n=g;var M=iL(b.Jf);b=h;var T=b.q(n);b.i(T.l(M,n));w=A}}catch(Ja){if(w=Yu(L(),Ja),null!==w)if(c=new sL(a,c),c.Rc(w))b=kp().Mf,w=c.Pc(w,b)|0;else throw K(L(),w);else throw Ja;}b=3;c=w;break;case 1:case 6:try{b=a;g=c;h=d;var V=qL(b,1+ -g|0);if(0<=V){n=g;var ha=Yv(b,1+g|0,-2+(V-g|0)|0);b=h;var ra=b.h().l(ha,n);b.n(ra,n);var ea=V}else{var wa=rL(b,g,V);n=g;var xa=iL(b.Jf);b=h;var Ta=b.h().l(xa,n);b.n(Ta,n);ea=wa}}catch(Ja){if(ea=Yu(L(),Ja),null!==ea)if(c=new sL(a,c),c.Rc(ea))b=kp().Mf,ea=c.Pc(ea,b)|0;else throw K(L(),ea);else throw Ja;}b=d.zd()?5:4;c=ea;break;default:tL(a,c,b)}break;case 58:3===b?(c=1+c|0,b=1):tL(a,c,b);break;case 91:uL(a,b,c);try{var gb=d.h().vb(-1,c)}catch(Ja){if(gb=Yu(L(),Ja),null!==gb)if(b=new sL(a,c),b.Rc(gb))h= -kp().Mf,gb=b.Pc(gb,h);else throw K(L(),gb);else throw Ja;}c=1+c|0;f=new ph(d,f);b=6;d=gb;break;case 123:uL(a,b,c);try{var mb=d.h().Z(-1,c)}catch(Ja){if(mb=Yu(L(),Ja),null!==mb)if(b=new sL(a,c),b.Rc(mb))h=kp().Mf,mb=b.Pc(mb,h);else throw K(L(),mb);else throw Ja;}c=1+c|0;f=new ph(d,f);b=7;d=mb;break;case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:uL(a,b,c);try{b=a;h=c;n=d;var Zb=d.h();g=h;var lb=fL(b,g),Ab=-1,za=-1;45===lb&&(g=1+g|0,lb=fL(b,g));if(48===lb)g=1+ -g|0,lb=fL(b,g);else{for(var kc=g;48<=lb&&57>=lb;)g=1+g|0,lb=fL(b,g);g===kc&&gL(b,h,"expected digit")}if(46===lb){Ab=g-h|0;g=1+g|0;lb=fL(b,g);for(kc=g;48<=lb&&57>=lb;)g=1+g|0,lb=fL(b,g);kc===g&&gL(b,h,"expected digit")}if(101===lb||69===lb){za=g-h|0;g=1+g|0;lb=fL(b,g);if(43===lb||45===lb)g=1+g|0,lb=fL(b,g);for(kc=g;48<=lb&&57>=lb;)g=1+g|0,lb=fL(b,g);kc===g&&gL(b,h,"expected digit")}n.n(Zb.Ob(Yv(b,h,g-h|0),Ab,za,h),h);var La=g}catch(Ja){if(La=Yu(L(),Ja),null!==La)if(c=new sL(a,c),c.Rc(La))b=kp().Mf, -La=c.Pc(La,b)|0;else throw K(L(),La);else throw Ja;}b=d.zd()?5:4;c=La;break;case 116:uL(a,b,c);try{d.n(lL(a,c,d.h()),c)}catch(Ja){if(b=Yu(L(),Ja),null!==b)if(h=new sL(a,c),h.Rc(b))n=kp().Mf,h.Pc(b,n);else throw K(L(),b);else throw Ja;}c=4+c|0;b=d.zd()?5:4;break;case 102:uL(a,b,c);try{d.n(mL(a,c,d.h()),c)}catch(Ja){if(b=Yu(L(),Ja),null!==b)if(h=new sL(a,c),h.Rc(b))n=kp().Mf,h.Pc(b,n);else throw K(L(),b);else throw Ja;}c=5+c|0;b=d.zd()?5:4;break;case 110:uL(a,b,c);try{d.n(nL(a,c,d.h()),c)}catch(Ja){if(b= -Yu(L(),Ja),null!==b)if(h=new sL(a,c),h.Rc(b))n=kp().Mf,h.Pc(b,n);else throw K(L(),b);else throw Ja;}c=4+c|0;b=d.zd()?5:4;break;case 44:a.XN=c;switch(b){case 4:c=1+c|0;b=1;break;case 5:c=1+c|0;b=2;break;default:tL(a,c,b)}break;case 93:switch(b){case 4:case 6:d=vL(a,d,f,c);if(d instanceof dd)return d.Qb;if(H()===d)d=f.R(),b=d.zd()?5:4,c=1+c|0,f=f.X();else throw new D(d);break;default:tL(a,c,b)}break;case 125:switch(b){case 5:case 7:d=vL(a,d,f,c);if(d instanceof dd)return d.Qb;if(H()===d)d=f.R(),b=d.zd()? -5:4,c=1+c|0,f=f.X();else throw new D(d);break;default:tL(a,c,b)}break;default:tL(a,c,b)}}function tL(a,b,c){switch(c){case 6:c="json value or ]";break;case 7:c="json value or }";break;case 1:c="json value";break;case 2:c="json string key";break;case 3:c=":";break;case 4:c=", or ]";break;case 5:c=", or }";break;default:throw new D(c);}gL(a,b,"expected "+c)}function uL(a,b,c){switch(b){case 1:case 6:break;default:tL(a,c,b)}} -function vL(a,b,c,d){if(c.k()){c=new B;a:try{var f=b.aa(d)}catch(g){b=Yu(L(),g);if(null!==b){a=new sL(a,d);if(a.Rc(b)){f=kp().Mf;f=a.Pc(b,f);break a}throw K(L(),b);}throw g;}return new dd(z(c,f,1+d|0))}c=c.R();try{c.n(b.aa(d),d)}catch(g){if(c=Yu(L(),g),null!==c)if(d=new sL(a,d),d.Rc(c))a=kp().Mf,d.Pc(c,a);else throw K(L(),c);else throw g;}return H()} -function qL(a,b){for(var c=fL(a,b);34!==c;){32>c&&gL(a,b,"control char ("+c+") in string");if(92===c||127d)gL(a,c,"control char ("+d+") in string");else if(92===d)switch(fL(a,1+c|0)){case 98:lw(a.Jf,8);c=2+c|0;break;case 102:lw(a.Jf,12);c=2+c|0;break;case 110:lw(a.Jf,10);c=2+c|0;break;case 114:lw(a.Jf,13);c=2+c|0;break;case 116:lw(a.Jf,9);c=2+c|0;break;case 34:lw(a.Jf,34);c=2+c|0;break;case 47:lw(a.Jf,47);c=2+c|0;break;case 92:lw(a.Jf,92);c=2+c| -0;break;case 117:f=a;g=c;d=0|gw(mw(),fL(f,2+g|0));d=d<<4|gw(mw(),fL(f,3+g|0));d=d<<4|gw(mw(),fL(f,4+g|0));d=d<<4|gw(mw(),fL(f,5+g|0));lw(a.Jf,65535&d);c=6+c|0;break;default:gL(a,1+c|0,"illegal escape sequence after \\")}else lw(a.Jf,65535&d),c=1+c|0;d=fL(a,c)}return 1+c|0}function wL(){}wL.prototype=new t;wL.prototype.constructor=wL; -function xL(a,b,c){try{if(b instanceof yL)return c.dc(b.Nr);if(b instanceof zL)return c.tc(b.Sr);if(b instanceof AL)return c.rc(b.Mr);if(b instanceof BL)return c.l(b.ap,b.Rr);if(b instanceof CL)return c.Ob(b.tu,b.ru,b.su,b.Pr);if(b instanceof DL)return c.cc(b.qu,b.Or);if(b instanceof EL){var d=b.Lr,f=b.pu,g=c.vb(-1,-1);f.Ba(new C(((r,u)=>w=>{try{u.n(xL(FL(),w,u.h()),w.Ah())}catch(T){var A=Yu(L(),T);if(null!==A)if(Jw(),w=new GL(w.Ah()),w.Rc(A)){var M=kp().Mf;w.Pc(A,M)}else throw K(L(),A);else throw T; -}})(a,g)));return g.aa(d)}if(b instanceof HL){var h=b.Qr,l=b.$o,n=c.Z(-1,-1);l.$A(new C((()=>r=>null!==r)(a))).Ba(new C(((r,u,w)=>A=>{if(null!==A){var M=A.ib;A=A.Va;try{var T=u.q(w)}catch(ra){if(T=Yu(L(),ra),null!==T){Jw();var V=new GL(w);if(V.Rc(T)){var ha=kp().Mf;T=V.Pc(T,ha)}else throw K(L(),T);}else throw ra;}u.i(T.l(M,w));try{u.n(xL(FL(),A,u.h()),A.Ah())}catch(ra){if(M=Yu(L(),ra),null!==M)if(Jw(),A=new GL(A.Ah()),A.Rc(M))T=kp().Mf,A.Pc(M,T);else throw K(L(),M);else throw ra;}}else throw new D(A); -})(a,n,h)));return n.aa(h)}throw new D(b);}catch(r){a=Yu(L(),r);if(null!==a){Jw();b=new GL(b.Ah());if(b.Rc(a))return c=kp().Mf,b.Pc(a,c);throw K(L(),a);}throw r;}}wL.prototype.EG=function(a,b){return xL(this,a,b)};wL.prototype.$classData=x({i8:0},!1,"ujson.IndexedValue$",{i8:1,b:1,$N:1});var IL;function FL(){IL||(IL=new wL);return IL} -function JL(a,b,c){if(0>b.r){var d=b.m,f=b.r;d=new p(-d|0,0!==d?~f:-f|0)}else d=b;return Wt(tj(),d.m,d.r)>+Math.pow(2,53)||0===b.m&&-2147483648===b.r?a.l(IE(tj(),b.m,b.r),c):a.cc(Wt(tj(),b.m,b.r),c)}function KL(a,b,c){if(Wt(tj(),b.m,b.r)>+Math.pow(2,53)||0>b.r){var d=qF(),f=a.l;b=0===b.r?(+(b.m>>>0)).toString(10):kF(d,b,10);return f.call(a,b,c)}return a.cc(Wt(tj(),b.m,b.r),c)}function LL(a,b,c,d,f){a=a.vb(d,f);for(var g=0;gd=>c.vD.t(d))(this)))};e.vb=function(a,b){return new EM(this.qf.vb(a,b),new C((c=>d=>c.vD.t(d))(this)))};e.cd=function(a,b){return CM(this,this.qf.cd(a,b))};e.sc=function(a,b){return CM(this,this.qf.sc(a,b))};e.dd=function(a,b){return CM(this,this.qf.dd(a,b))};e.nd=function(a,b){return CM(this,this.qf.nd(a,b))};e.ld=function(a,b){return CM(this,this.qf.ld(a,b))};e.kd=function(a,b,c,d){return CM(this,this.qf.kd(a,b,c,d))}; -e.md=function(a,b,c,d,f){return CM(this,this.qf.md(a,b,c,d,f))};function Zv(a,b,c){this.HD=a;this.ID=b;this.sO=c;this.JD=null}Zv.prototype=new t;Zv.prototype.constructor=Zv;e=Zv.prototype;e.y=function(){return this.sO};e.Lf=function(a){return this.HD.a[a+this.ID|0]};e.g=function(){if(null!==this.JD)return this.JD;var a=this.HD,b=this.ID,c=this.sO;return this.JD=a=wF(oq(),a,b,c)};e.zn=function(a,b){return new Zv(this.HD,this.ID+a|0,b-a|0)}; -e.$classData=x({i$:0},!1,"upickle.core.WrapCharArrayCharSeq",{i$:1,b:1,Lm:1});function FM(a,b,c){return new xM(a,new (y(Dw).M)([b,c]),new C((()=>d=>{if(null===d)return null;var f=qc(new rc,[d.ib,d.Va]);Uo();d=f.y();d=new v(d);f=new IG(f);f=new JG(f);for(var g=0;f.v();)d.a[g]=f.s(),g=1+g|0;return d})(a)))}function GM(a,b,c){return new HM(a,new (y(vM).M)([b,c]),new C((()=>d=>z(new B,d.a[0],d.a[1]))(a)))}function IM(a,b){this.uO=this.tO=null;if(null===a)throw K(L(),null);this.tO=a;this.uO=b} -IM.prototype=new t;IM.prototype.constructor=IM;IM.prototype.na=function(){return this.tO};IM.prototype.oa=function(a,b){a=a.vb(b.$(),-1);for(b=b.w();b.v();){var c=b.s(),d=this.uO,f=a.h();c=W(d,f,c);a.n(c,-1)}return a.aa(-1)};IM.prototype.$classData=x({K$:0},!1,"upickle.implicits.LowPriWriters$$anon$17",{K$:1,b:1,la:1});function JM(a){this.VO=null;if(null===a)throw K(L(),null);this.VO=a}JM.prototype=new t;JM.prototype.constructor=JM;JM.prototype.na=function(){return this.VO}; -JM.prototype.oa=function(a,b){return a.l(b,-1)};JM.prototype.$classData=x({daa:0},!1,"upickle.implicits.Writers$$anon$1",{daa:1,b:1,la:1});function KM(a){this.PO=null;if(null===a)throw K(L(),null);this.PO=a}KM.prototype=new t;KM.prototype.constructor=KM;KM.prototype.na=function(){return this.PO};KM.prototype.oa=function(a,b){b=fb(b);return a.dd(new p(b.m,b.r),-1)};KM.prototype.$classData=x({eaa:0},!1,"upickle.implicits.Writers$$anon$10",{eaa:1,b:1,la:1}); -function LM(a,b){this.RO=this.QO=null;if(null===a)throw K(L(),null);this.QO=a;this.RO=b}LM.prototype=new t;LM.prototype.constructor=LM;LM.prototype.na=function(){return this.QO};LM.prototype.oa=function(a,b){var c=a.vb;ME();if(b.k())var d=J().YQ.mc();else J(),d=b.Ja(),d=new MM(d);a=c.call(a,d.$(),-1);b.w();if(H()!==b)if(b instanceof dd)b=b.Qb,c=this.RO,d=a.h(),b=W(c,d,b),a.n(b,-1);else throw new D(b);return a.aa(-1)}; -LM.prototype.$classData=x({faa:0},!1,"upickle.implicits.Writers$$anon$11",{faa:1,b:1,la:1});function NM(a,b){this.TO=this.SO=null;if(null===a)throw K(L(),null);this.SO=a;this.TO=b}NM.prototype=new t;NM.prototype.constructor=NM;function OM(a,b,c){b=b.Z(c.$(),-1);c.Ba(new C(((d,f)=>g=>{if(null===g)throw new D(g);var h=g.ib;g=g.Va;var l=f.q(-1);f.i(l.l(h,-1));h=d.TO;l=f.h();f.n(W(h,l,g),-1)})(a,b)));return b.aa(-1)}NM.prototype.na=function(){return this.SO}; -NM.prototype.oa=function(a,b){return OM(this,a,b)};NM.prototype.$classData=x({gaa:0},!1,"upickle.implicits.Writers$$anon$14",{gaa:1,b:1,la:1});function PM(a){this.UO=null;if(null===a)throw K(L(),null);this.UO=a}PM.prototype=new t;PM.prototype.constructor=PM;PM.prototype.na=function(){return this.UO}; -PM.prototype.oa=function(a,b){var c=TJ().mF;(null===c?null===b:c.c(b))?a=a.l("inf",-1):(c=TJ().nF,(null===c?null===b:c.c(b))?a=a.l("-inf",-1):b===TJ().Yz?a=a.l("undef",-1):(b=b.uS(),a=a.l(IE(tj(),b.m,b.r),-1)));return a};PM.prototype.$classData=x({haa:0},!1,"upickle.implicits.Writers$$anon$15",{haa:1,b:1,la:1});function QM(a){this.WO=null;if(null===a)throw K(L(),null);this.WO=a}QM.prototype=new t;QM.prototype.constructor=QM;QM.prototype.na=function(){return this.WO}; -QM.prototype.oa=function(a){return a.Z(0,-1).aa(-1)};QM.prototype.$classData=x({iaa:0},!1,"upickle.implicits.Writers$$anon$2",{iaa:1,b:1,la:1});function RM(a){this.XO=null;if(null===a)throw K(L(),null);this.XO=a}RM.prototype=new t;RM.prototype.constructor=RM;RM.prototype.na=function(){return this.XO};RM.prototype.oa=function(a,b){return a.cc(+b,-1)};RM.prototype.$classData=x({jaa:0},!1,"upickle.implicits.Writers$$anon$3",{jaa:1,b:1,la:1}); -function SM(a){this.YO=null;if(null===a)throw K(L(),null);this.YO=a}SM.prototype=new t;SM.prototype.constructor=SM;SM.prototype.na=function(){return this.YO};SM.prototype.oa=function(a,b){return a.sc(b|0,-1)};SM.prototype.$classData=x({kaa:0},!1,"upickle.implicits.Writers$$anon$4",{kaa:1,b:1,la:1});function TM(a){this.ZO=null;if(null===a)throw K(L(),null);this.ZO=a}TM.prototype=new t;TM.prototype.constructor=TM;TM.prototype.na=function(){return this.ZO}; -TM.prototype.oa=function(a,b){return a.cd(+b,-1)};TM.prototype.$classData=x({laa:0},!1,"upickle.implicits.Writers$$anon$5",{laa:1,b:1,la:1});function UM(a){this.$O=null;if(null===a)throw K(L(),null);this.$O=a}UM.prototype=new t;UM.prototype.constructor=UM;UM.prototype.na=function(){return this.$O};UM.prototype.oa=function(a,b){return a.sc(b|0,-1)};UM.prototype.$classData=x({maa:0},!1,"upickle.implicits.Writers$$anon$6",{maa:1,b:1,la:1}); -function VM(a){this.aP=null;if(null===a)throw K(L(),null);this.aP=a}VM.prototype=new t;VM.prototype.constructor=VM;VM.prototype.na=function(){return this.aP};VM.prototype.oa=function(a,b){return a.sc(b|0,-1)};VM.prototype.$classData=x({naa:0},!1,"upickle.implicits.Writers$$anon$7",{naa:1,b:1,la:1});function WM(a){this.bP=null;if(null===a)throw K(L(),null);this.bP=a}WM.prototype=new t;WM.prototype.constructor=WM;WM.prototype.na=function(){return this.bP}; -WM.prototype.oa=function(a,b){return b?a.tc(-1):a.rc(-1)};WM.prototype.$classData=x({oaa:0},!1,"upickle.implicits.Writers$$anon$8",{oaa:1,b:1,la:1});function gN(a){this.cP=null;if(null===a)throw K(L(),null);this.cP=a}gN.prototype=new t;gN.prototype.constructor=gN;gN.prototype.na=function(){return this.cP};gN.prototype.oa=function(a,b){return a.ld(Ma(b),-1)};gN.prototype.$classData=x({paa:0},!1,"upickle.implicits.Writers$$anon$9",{paa:1,b:1,la:1});function hN(a){this.Ky=a;Cm()}hN.prototype=new vm; -hN.prototype.constructor=hN; -function Km(a,b){if(b instanceof iN){cx||(cx=new bx);var c=b.PE;c=(new Date(Wt(tj(),c.m,c.r))).toISOString();var d=b.Hu.dj;d=yn(zn(),"%5s",qc(new rc,[d]));var f=a.Ky;var g=b.Hu;f=jN()===g?"color:"+f.Ey:kN()===g?"color:"+f.Jy:Lx()===g?"color:"+f.Fy:Nc()===g?"color:"+f.Cy:Bf()===g?"color:"+f.Iy:f.Dy;g=b.Ny;g.k()?g=H():(g=g.Ja(),g=new dd("- ("+(g.Iu+":"+g.Ju)+")"));var h=g.k()?"":g.Ja();console&&(g=console,b="%c"+c+" %c"+d+" %c["+lN(b)+"] %c"+b.My+" %c"+h,g.log(b,"color:"+a.Ky.Hy,f,"color:"+a.Ky.Gy, -f,"color:"+a.Ky.By))}else{c=Km;mN();a:if(f=Qw(),d=b.OE,f=(0===(2&f.Ly)<<24>>24?nN(f):f.RD).yc(d),f instanceof dd)d=f.Qb;else{if(H()===f){f=Cm().$P;if(null===f?null===d:f.c(d)){d=Lx();break a}f=Cm().cQ;if(null===f?null===d:f.c(d)){d=Bf();break a}throw new D(d);}throw new D(f);}d=new iN(d,H(),b.iQ,LE(ME(),b.QE));d.sv=b.sv;c(a,d)}}hN.prototype.$classData=x({qaa:0},!1,"wvlet.log.JSConsoleLogHandler",{qaa:1,YP:1,b:1}); -function nN(a){if(0===(2&a.Ly)<<24>>24){var b=a.SD.Ea(new C((()=>c=>z(new B,c.Hb,c))(a)));nc();a.RD=b.Ph();a.Ly=(2|a.Ly)<<24>>24}return a.RD}function oN(){this.SD=this.RD=null;this.Ly=0;pN=this;var a=J().XQ,b=[qN(),jN(),kN(),Lx(),Nc(),Bf(),rN()];this.SD=I(a,qc(new rc,b))}oN.prototype=new t;oN.prototype.constructor=oN; -function Pw(a,b){var c=b.toLowerCase();a:{for(a=a.SD.w();a.v();){var d=a.s();if(c===d.dj){c=new dd(d);break a}}c=H()}return c.k()?(AI().xQ.Jv.Pz("Unknown log level ["+b+"] Use info log level instead."),Lx()):c.Ja()}oN.prototype.$classData=x({waa:0},!1,"wvlet.log.LogLevel$",{waa:1,b:1,d:1});var pN;function Qw(){pN||(pN=new oN);return pN}function sN(){this.hP=null;tN=this;this.hP=Rm().hf(F())}sN.prototype=new t;sN.prototype.constructor=sN; -sN.prototype.$classData=x({Faa:0},!1,"wvlet.log.LogRecord$",{Faa:1,b:1,d:1});var tN;function mN(){tN||(tN=new sN);return tN}function uN(){this.jb=this.iP=null;this.UD=!1;vN=this;var a=new wN;a.yc("java.util.logging.manager");a.Kj("java.util.logging.manager","wvlet.log.AirframeLogManager");a=J().u;Lw||(Lw=new Kw);var b=[new hN(Lw.dP)];a=I(a,qc(new rc,b));b=H();a=xN(this,b,a);b=Lx();Qc(a).vk=b.Hb;this.jb=a}uN.prototype=new t;uN.prototype.constructor=uN; -function xN(a,b,c){var d=Ow(Mc(),"");yN(d);b.k()||(b=b.Ja(),Qc(d).vk=b.Hb);c.Ba(new C(((f,g)=>h=>{var l=Qc(g),n=l.up;xI();var r=1+n.a.length|0;Sh(m(wm),Uh(sa(n)))?r=Qh(m(wm))?uI(0,n,r):bm(hm(),n,r,m(y(wm))):(r=new (y(wm).M)(r),tI(xI(),n,0,r,0,n.a.length));Cl(Bl(),r,n.a.length,h);l.up=r})(a,d)));Qc(d).Hz=!0;return d} -function Ow(a,b){if(!a.UD&&!a.UD){var c=zN(),d=new AN;d.pj=new BN(16,.75);c=new qq(c,d);CN();c=c.hha;a.iP=null===c?null:new DN(c);a.UD=!0}a=a.iP;c=a.yc(b);if(c instanceof dd)b=c.Qb;else{if(H()!==c)throw new D(c);c=new EN(b,Sm(Um(),b));b=LE(ME(),a.Li.Qz(b,c));if(b instanceof dd)b=b.Qb;else{if(H()!==b)throw new D(b);b=c}}return b}uN.prototype.$classData=x({Jaa:0},!1,"wvlet.log.Logger$",{Jaa:1,b:1,d:1});var vN;function Mc(){vN||(vN=new uN);return vN}function HE(a,b,c){this.Sg=b;this.Tg=c} -HE.prototype=new t;HE.prototype.constructor=HE;HE.prototype.$classData=x({xS:0},!1,"cats.Contravariant$ToContravariantOps$$anon$4",{xS:1,b:1,Ila:1,d:1});function FN(){}FN.prototype=new mx;FN.prototype.constructor=FN;function GN(){}GN.prototype=FN.prototype;function HN(){}HN.prototype=new ox;HN.prototype.constructor=HN;function IN(){}IN.prototype=HN.prototype;function Qb(){hc()}Qb.prototype=new t;Qb.prototype.constructor=Qb; -Qb.prototype.$classData=x({aT:0},!1,"cats.package$$anon$2",{aT:1,b:1,Kla:1,d:1}); -function JN(){this.zv=this.zp=null;this.Cs=!1;this.yv=null;this.ac=0;this.ja=null;this.xp=this.yp=0;this.OG=this.NG=null;BI(this);KN=this;var a=null!==this.ja&&this.ja.v()?this.ja.s():"TriG";new LN(this,this.ac,a);a=null!==this.ja&&this.ja.v()?this.ja.s():"N$minusQuads";new LN(this,this.ac,a);a=null!==this.ja&&this.ja.v()?this.ja.s():"N3";this.NG=new LN(this,this.ac,a);a=null!==this.ja&&this.ja.v()?this.ja.s():"Turtle";this.OG=new LN(this,this.ac,a);a=null!==this.ja&&this.ja.v()?this.ja.s():"N$minusTriples"; -new LN(this,this.ac,a);a=null!==this.ja&&this.ja.v()?this.ja.s():"application$divtrig";new LN(this,this.ac,a)}JN.prototype=new EI;JN.prototype.constructor=JN;JN.prototype.$classData=x({cT:0},!1,"com.github.p2m2.facade.N3FormatOption$",{cT:1,dF:1,b:1,d:1});var KN;function jy(){KN||(KN=new JN);return KN} -function sy(){this.zv=this.zp=null;this.Cs=!1;this.yv=null;this.ac=0;this.ja=null;this.xp=this.yp=0;this.PG=null;BI(this);ry=this;var a=null!==this.ja&&this.ja.v()?this.ja.s():"sparql";this.PG=new LN(this,this.ac,a);a=null!==this.ja&&this.ja.v()?this.ja.s():"graphql";new LN(this,this.ac,a)}sy.prototype=new EI;sy.prototype.constructor=sy;sy.prototype.$classData=x({fT:0},!1,"com.github.p2m2.facade.QueryFormat$",{fT:1,dF:1,b:1,d:1});var ry; -function MN(){this.zv=this.zp=null;this.Cs=!1;this.yv=null;this.ac=0;this.ja=null;this.xp=this.yp=0;this.SG=this.QG=this.RG=null;BI(this);NN=this;var a=null!==this.ja&&this.ja.v()?this.ja.s():"hypermedia";this.RG=new LN(this,this.ac,a);a=null!==this.ja&&this.ja.v()?this.ja.s():"file";this.QG=new LN(this,this.ac,a);a=null!==this.ja&&this.ja.v()?this.ja.s():"sparql";this.SG=new LN(this,this.ac,a);a=null!==this.ja&&this.ja.v()?this.ja.s():"rdfjsSource";new LN(this,this.ac,a);a=null!==this.ja&&this.ja.v()? -this.ja.s():"hdtFile";new LN(this,this.ac,a);a=null!==this.ja&&this.ja.v()?this.ja.s():"ostrichFile";new LN(this,this.ac,a)}MN.prototype=new EI;MN.prototype.constructor=MN;MN.prototype.$classData=x({iT:0},!1,"com.github.p2m2.facade.SourceType$",{iT:1,dF:1,b:1,d:1});var NN;function hy(){NN||(NN=new MN);return NN}function vx(){}vx.prototype=new t;vx.prototype.constructor=vx;e=vx.prototype;e.oa=function(a,b){return uM(this,a,b)};e.na=function(){return U()}; -e.Ia=function(a,b){if(U(),b.ml!==(wx(),!0)){var c=U().sf,d=b.ml,f=a.q(-1);a.i(f.l((U(),"cache"),-1));f=a.h();a.n(W(c,f,d),-1)}if(U(),b.Yi!==(wx(),"warn"))c=U().G,d=b.Yi,f=a.q(-1),a.i(f.l((U(),"logLevel"),-1)),f=a.h(),a.n(W(c,f,d),-1);if(U(),b.Mj!==(wx(),150))c=U().Gu,d=b.Mj,f=a.q(-1),a.i(f.l((U(),"sizeBatchProcessing"),-1)),f=a.h(),a.n(W(c,f,d),-1);if(U(),b.Ug!==(wx(),10))c=U().Gu,d=b.Ug,f=a.q(-1),a.i(f.l((U(),"pageSize"),-1)),f=a.h(),a.n(W(c,f,d),-1);if(U(),b.Lj!==(wx(),!1))c=U().sf,d=b.Lj,f=a.q(-1), -a.i(f.l((U(),"proxy"),-1)),f=a.h(),a.n(W(c,f,d),-1);if(U(),b.Nj!==(wx(),"http://urlProxy"))c=U().G,b=b.Nj,d=a.q(-1),a.i(d.l((U(),"urlProxy"),-1)),d=a.h(),a.n(W(c,d,b),-1)};e.Ga=function(a){return((((((U(),a.ml!==(wx(),!0))?1:0)+((U(),a.Yi!==(wx(),"warn"))?1:0)|0)+((U(),a.Mj!==(wx(),150))?1:0)|0)+((U(),a.Ug!==(wx(),10))?1:0)|0)+((U(),a.Lj!==(wx(),!1))?1:0)|0)+((U(),a.Nj!==(wx(),"http://urlProxy"))?1:0)|0}; -e.$classData=x({vT:0},!1,"inrae.semantic_web.ConfigurationObject$GeneralSetting$$anon$6",{vT:1,b:1,Oa:1,la:1});function Ax(){}Ax.prototype=new t;Ax.prototype.constructor=Ax;e=Ax.prototype;e.oa=function(a,b){return uM(this,a,b)};e.na=function(){return U()}; -e.Ia=function(a,b){var c=U().G,d=b.Dn,f=a.q(-1);a.i(f.l((U(),"id"),-1));f=a.h();a.n(W(c,f,d),-1);if(U(),b.Tf!==(Bx(),""))c=U().G,d=b.Tf,f=a.q(-1),a.i(f.l((U(),"url"),-1)),f=a.h(),a.n(W(c,f,d),-1);if(U(),b.nl!==(Bx(),""))c=U().G,d=b.nl,f=a.q(-1),a.i(f.l((U(),"file"),-1)),f=a.h(),a.n(W(c,f,d),-1);if(U(),b.ui!==(Bx(),""))c=U().G,d=b.ui,f=a.q(-1),a.i(f.l((U(),"content"),-1)),f=a.h(),a.n(W(c,f,d),-1);if(U(),b.Th!==(Bx(),"application/sparql-query"))c=U().G,d=b.Th,f=a.q(-1),a.i(f.l((U(),"mimetype"),-1)), -f=a.h(),a.n(W(c,f,d),-1);if(U(),b.Pj!==(Bx(),"POST"))c=U().G,d=b.Pj,f=a.q(-1),a.i(f.l((U(),"method"),-1)),f=a.h(),a.n(W(c,f,d),-1);if(U(),b.Oj!==(Bx(),""))c=U().G,d=b.Oj,f=a.q(-1),a.i(f.l((U(),"auth"),-1)),f=a.h(),a.n(W(c,f,d),-1);if(U(),b.ol!==(Bx(),""))c=U().G,d=b.ol,f=a.q(-1),a.i(f.l((U(),"login"),-1)),f=a.h(),a.n(W(c,f,d),-1);if(U(),b.pl!==(Bx(),""))c=U().G,d=b.pl,f=a.q(-1),a.i(f.l((U(),"password"),-1)),f=a.h(),a.n(W(c,f,d),-1);if(U(),b.Qj!==(Bx(),""))c=U().G,b=b.Qj,d=a.q(-1),a.i(d.l((U(),"token"), --1)),d=a.h(),a.n(W(c,d,b),-1)};e.Ga=function(a){return((((((((1+((U(),a.Tf!==(Bx(),""))?1:0)|0)+((U(),a.nl!==(Bx(),""))?1:0)|0)+((U(),a.ui!==(Bx(),""))?1:0)|0)+((U(),a.Th!==(Bx(),"application/sparql-query"))?1:0)|0)+((U(),a.Pj!==(Bx(),"POST"))?1:0)|0)+((U(),a.Oj!==(Bx(),""))?1:0)|0)+((U(),a.ol!==(Bx(),""))?1:0)|0)+((U(),a.pl!==(Bx(),""))?1:0)|0)+((U(),a.Qj!==(Bx(),""))?1:0)|0};e.$classData=x({KT:0},!1,"inrae.semantic_web.ConfigurationObject$Source$$anon$9",{KT:1,b:1,Oa:1,la:1});function Fx(){} -Fx.prototype=new t;Fx.prototype.constructor=Fx;e=Fx.prototype;e.oa=function(a,b){return uM(this,a,b)};e.na=function(){return U()};e.Ia=function(a,b){var c=U(),d=Bx().iB;c=new IM(c,d);d=b.qh;var f=a.q(-1);a.i(f.l((U(),"sources"),-1));f=a.h();a.n(W(c,f,d),-1);U();c=b.Ef;Gx();d=new Zx((wx(),!0),(wx(),"warn"),(wx(),150),(wx(),10),(wx(),!1),(wx(),"http://urlProxy"));null!==c&&c.c(d)||(c=wx().hB,b=b.Ef,d=a.q(-1),a.i(d.l((U(),"settings"),-1)),d=a.h(),a.n(W(c,d,b),-1))}; -e.Ga=function(a){U();a=a.Ef;Gx();var b=new Zx((wx(),!0),(wx(),"warn"),(wx(),150),(wx(),10),(wx(),!1),(wx(),"http://urlProxy"));return 1+(null!==a&&a.c(b)?0:1)|0};e.$classData=x({RT:0},!1,"inrae.semantic_web.ConfigurationObject$StatementConfigurationJson$$anon$12",{RT:1,b:1,Oa:1,la:1});function Kx(){}Kx.prototype=new t;Kx.prototype.constructor=Kx;e=Kx.prototype;e.oa=function(a,b){return uM(this,a,b)};e.na=function(){return U()}; -e.Ia=function(a,b){U();var c=b.uc;Mx();var d=new cy(Wx());if(null===c||!c.c(d)){c=Xx().qB;d=b.uc;var f=a.q(-1);a.i(f.l((U(),"config"),-1));f=a.h();a.n(W(c,f,d),-1)}U();c=b.$a;Mx();ye();d=fH().g();f=UB();ye();J();var g=F();g=hh(F(),g);ye();J();var h=F();h=hh(F(),h);ye();J();var l=F();l=hh(F(),l);ye();J();var n=F();n=hh(F(),n);ye();J();var r=F();r=hh(F(),r);ye();J();var u=F();u=hh(F(),u);ye();var w=I(J().u,F());ye();E();var A=F();d=new jf(d,f,g,h,l,n,r,u,w,G(0,A));null!==c&&c.c(d)||(c=ye().hx,d=b.$a, -f=a.q(-1),a.i(f.l((U(),"rootNode"),-1)),f=a.h(),a.n(W(c,f,d),-1));U();c=b.En;Mx();d=H();null!==c&&c.c(d)||(c=U(),d=U().G,c=new LM(c,d),b=b.En,d=a.q(-1),a.i(d.l((U(),"fn"),-1)),d=a.h(),a.n(W(c,d,b),-1))}; -e.Ga=function(a){U();var b=a.uc;Mx();var c=new cy(Wx());b=null!==b&&b.c(c)?0:1;U();c=a.$a;Mx();ye();var d=fH().g(),f=UB();ye();J();var g=F();g=hh(F(),g);ye();J();var h=F();h=hh(F(),h);ye();J();var l=F();l=hh(F(),l);ye();J();var n=F();n=hh(F(),n);ye();J();var r=F();r=hh(F(),r);ye();J();var u=F();u=hh(F(),u);ye();var w=I(J().u,F());ye();E();var A=F();d=new jf(d,f,g,h,l,n,r,u,w,G(0,A));c=null!==c&&c.c(d)?0:1;U();a=a.En;Mx();d=H();a=!(null!==a&&a.c(d));return(b+c|0)+(a?1:0)|0}; -e.$classData=x({bU:0},!1,"inrae.semantic_web.SWDiscovery$$anon$3",{bU:1,b:1,Oa:1,la:1});function Qx(){}Qx.prototype=new t;Qx.prototype.constructor=Qx;e=Qx.prototype;e.oa=function(a,b){return uM(this,a,b)};e.na=function(){return U()}; -e.Ia=function(a,b){U();var c=b.mb;Rx();Mx();var d=new cy(Wx());Mx();ye();var f=fH().g(),g=UB();ye();J();var h=F();h=hh(F(),h);ye();J();var l=F();l=hh(F(),l);ye();J();var n=F();n=hh(F(),n);ye();J();var r=F();r=hh(F(),r);ye();J();var u=F();u=hh(F(),u);ye();J();var w=F();w=hh(F(),w);ye();var A=I(J().u,F());ye();E();var M=F();d=new ON(d,new jf(f,g,h,l,n,r,u,w,A,G(0,M)),(Mx(),H()));null!==c&&c.c(d)||(c=Mx().ot,b=b.mb,d=a.q(-1),a.i(d.l((U(),"sw"),-1)),d=a.h(),a.n(W(c,d,b),-1))}; -e.Ga=function(a){U();a=a.mb;Rx();Mx();var b=new cy(Wx());Mx();ye();var c=fH().g(),d=UB();ye();J();var f=F();f=hh(F(),f);ye();J();var g=F();g=hh(F(),g);ye();J();var h=F();h=hh(F(),h);ye();J();var l=F();l=hh(F(),l);ye();J();var n=F();n=hh(F(),n);ye();J();var r=F();r=hh(F(),r);ye();var u=I(J().u,F());ye();E();var w=F();b=new ON(b,new jf(c,d,f,g,h,l,n,r,u,G(0,w)),(Mx(),H()));return null!==a&&a.c(b)?0:1};e.$classData=x({qU:0},!1,"inrae.semantic_web.SWTransaction$$anon$3",{qU:1,b:1,Oa:1,la:1}); -function Vx(){}Vx.prototype=new t;Vx.prototype.constructor=Vx;e=Vx.prototype;e.oa=function(a,b){return uM(this,a,b)};e.na=function(){return U()};e.Ia=function(a,b){U();var c=b.Wd,d=Wx();(null===c?null===d:c.c(d))||(c=Gx().Ew,b=b.Wd,d=a.q(-1),a.i(d.l((U(),"conf"),-1)),d=a.h(),a.n(W(c,d,b),-1))};e.Ga=function(a){U();a=a.Wd;var b=Wx();return(null===a?null===b:a.c(b))?0:1};e.$classData=x({AU:0},!1,"inrae.semantic_web.StatementConfiguration$$anon$15",{AU:1,b:1,Oa:1,la:1}); -function PN(){this.GB=this.FB=this.Hn=null}PN.prototype=new t;PN.prototype.constructor=PN;function QN(){}e=QN.prototype=PN.prototype;e.cE=function(){return this.Hn};e.ev=function(){return this.FB};e.dv=function(a){this.FB=a};e.rE=function(){return this.GB};e.qE=function(a){this.GB=a}; -function RN(){this.zv=this.zp=null;this.Cs=!1;this.yv=null;this.ac=0;this.ja=null;this.xp=this.yp=0;this.GH=this.JB=this.KB=this.HH=this.Sw=this.IB=this.HB=this.LB=this.Pw=this.Qw=this.Uw=this.Rw=this.Tw=null;BI(this);SN=this;var a=null!==this.ja&&this.ja.v()?this.ja.s():"START";this.Tw=new LN(this,this.ac,a);a=null!==this.ja&&this.ja.v()?this.ja.s():"QUERY_BUILD";this.Rw=new LN(this,this.ac,a);a=null!==this.ja&&this.ja.v()?this.ja.s():"START_HTTP_REQUEST";this.Uw=new LN(this,this.ac,a);a=null!== -this.ja&&this.ja.v()?this.ja.s():"PROCESS_HTTP_REQUEST";this.Qw=new LN(this,this.ac,a);a=null!==this.ja&&this.ja.v()?this.ja.s():"FINISHED_HTTP_REQUEST";this.Pw=new LN(this,this.ac,a);a=null!==this.ja&&this.ja.v()?this.ja.s():"RESULTS_BUILD";this.LB=new LN(this,this.ac,a);a=null!==this.ja&&this.ja.v()?this.ja.s():"DATATYPE_BUILD";this.HB=new LN(this,this.ac,a);a=null!==this.ja&&this.ja.v()?this.ja.s():"DATATYPE_DONE";this.IB=new LN(this,this.ac,a);a=null!==this.ja&&this.ja.v()?this.ja.s():"RESULTS_DONE"; -this.Sw=new LN(this,this.ac,a);a=null!==this.ja&&this.ja.v()?this.ja.s():"REQUEST_DONE";this.HH=new LN(this,this.ac,a);a=null!==this.ja&&this.ja.v()?this.ja.s():"ERROR_REQUEST_DEFINITION";this.KB=new LN(this,this.ac,a);a=null!==this.ja&&this.ja.v()?this.ja.s():"ERROR_HTTP_REQUEST";this.JB=new LN(this,this.ac,a);a=null!==this.ja&&this.ja.v()?this.ja.s():"ABORTED_BY_THE_USER";this.GH=new LN(this,this.ac,a)}RN.prototype=new EI;RN.prototype.constructor=RN; -function TN(a,b){var c=a.Tw;if(null===c?null===b:c.c(b))return.1;c=a.Rw;if(null===c?null===b:c.c(b))return.2;c=a.LB;if(null===c?null===b:c.c(b))return.3;c=a.Uw;if(null===c?null===b:c.c(b))return.3;c=a.Qw;if(null===c?null===b:c.c(b))return.4;c=a.Pw;if(null===c?null===b:c.c(b))return.5;c=a.Sw;if(null===c?null===b:c.c(b))return.6;c=a.HB;if(null===c?null===b:c.c(b))return.7;a=a.IB;return(null===a?null===b:a.c(b))?.8:1} -RN.prototype.$classData=x({PU:0},!1,"inrae.semantic_web.event.DiscoveryStateRequestEvent$",{PU:1,dF:1,b:1,d:1});var SN;function Ay(){SN||(SN=new RN);return SN}function Gy(){}Gy.prototype=new t;Gy.prototype.constructor=Gy;e=Gy.prototype;e.oa=function(a,b){return uM(this,a,b)};e.na=function(){return U()}; -e.Ia=function(a,b){var c=U().G,d=b.wq,f=a.q(-1);a.i(f.l((U(),"idRef"),-1));f=a.h();a.n(W(c,f,d),-1);U();c=b.In;Wd();d=I(J().u,F());(null===c?null===d:c.c(d))||(c=U(),d=Je().ba,c=new IM(c,d),d=b.In,f=a.q(-1),a.i(f.l((U(),"children"),-1)),f=a.h(),a.n(W(c,f,d),-1));U();c=b.Jn;Wd();E();d=F();d=G(0,d);(null===c?null===d:c.c(d))||(c=U(),d=U().G,f=U().G,c=UN(c,d,f),b=b.Jn,d=a.q(-1),a.i(d.l((U(),"decorations"),-1)),d=a.h(),a.n(W(c,d,b),-1))}; -e.Ga=function(a){U();var b=a.In;Wd();var c=I(J().u,F());b=(null===b?null===c:b.c(c))?0:1;U();a=a.Jn;Wd();E();c=F();c=G(0,c);a=!(null===a?null===c:a.c(c));return(1+b|0)+(a?1:0)|0};e.$classData=x({XU:0},!1,"inrae.semantic_web.node.Abs$$anon$111",{XU:1,b:1,Oa:1,la:1});function Qy(){}Qy.prototype=new t;Qy.prototype.constructor=Qy;e=Qy.prototype;e.oa=function(a,b){return uM(this,a,b)};e.na=function(){return U()}; -e.Ia=function(a,b){var c=Bd().cx,d=b.xq,f=a.q(-1);a.i(f.l((U(),"expression"),-1));f=a.h();a.n(W(c,f,d),-1);c=U().G;d=b.D;f=a.q(-1);a.i(f.l((U(),"idRef"),-1));f=a.h();a.n(W(c,f,d),-1);U();c=b.Q;Ge();d=I(J().u,F());(null===c?null===d:c.c(d))||(c=U(),d=Je().ba,c=new IM(c,d),d=b.Q,f=a.q(-1),a.i(f.l((U(),"children"),-1)),f=a.h(),a.n(W(c,f,d),-1));U();c=b.S;Ge();E();d=F();d=G(0,d);(null===c?null===d:c.c(d))||(c=U(),d=U().G,f=U().G,c=UN(c,d,f),b=b.S,d=a.q(-1),a.i(d.l((U(),"decorations"),-1)),d=a.h(),a.n(W(c, -d,b),-1))};e.Ga=function(a){U();var b=a.Q;Ge();var c=I(J().u,F());b=(null===b?null===c:b.c(c))?0:1;U();a=a.S;Ge();E();c=F();c=G(0,c);a=!(null===a?null===c:a.c(c));return(2+b|0)+(a?1:0)|0};e.$classData=x({hV:0},!1,"inrae.semantic_web.node.Bind$$anon$99",{hV:1,b:1,Oa:1,la:1});function Vy(){}Vy.prototype=new t;Vy.prototype.constructor=Vy;e=Vy.prototype;e.oa=function(a,b){return uM(this,a,b)};e.na=function(){return U()}; -e.Ia=function(a,b){var c=U().G,d=b.yq,f=a.q(-1);a.i(f.l((U(),"idRef"),-1));f=a.h();a.n(W(c,f,d),-1);U();c=b.Kn;Yd();d=I(J().u,F());(null===c?null===d:c.c(d))||(c=U(),d=Je().ba,c=new IM(c,d),d=b.Kn,f=a.q(-1),a.i(f.l((U(),"children"),-1)),f=a.h(),a.n(W(c,f,d),-1));U();c=b.Ln;Yd();E();d=F();d=G(0,d);(null===c?null===d:c.c(d))||(c=U(),d=U().G,f=U().G,c=UN(c,d,f),b=b.Ln,d=a.q(-1),a.i(d.l((U(),"decorations"),-1)),d=a.h(),a.n(W(c,d,b),-1))}; -e.Ga=function(a){U();var b=a.Kn;Yd();var c=I(J().u,F());b=(null===b?null===c:b.c(c))?0:1;U();a=a.Ln;Yd();E();c=F();c=G(0,c);a=!(null===a?null===c:a.c(c));return(1+b|0)+(a?1:0)|0};e.$classData=x({qV:0},!1,"inrae.semantic_web.node.Ceil$$anon$117",{qV:1,b:1,Oa:1,la:1});function $y(){}$y.prototype=new t;$y.prototype.constructor=$y;e=$y.prototype;e.oa=function(a,b){return uM(this,a,b)};e.na=function(){return U()}; -e.Ia=function(a,b){var c=Fg().db,d=b.vl,f=a.q(-1);a.i(f.l((U(),"value"),-1));f=a.h();a.n(W(c,f,d),-1);c=U().sf;d=b.W;f=a.q(-1);a.i(f.l((U(),"negation"),-1));f=a.h();a.n(W(c,f,d),-1);c=U().G;d=b.Mn;f=a.q(-1);a.i(f.l((U(),"idRef"),-1));f=a.h();a.n(W(c,f,d),-1);U();c=b.tl;Jd();d=I(J().u,F());(null===c?null===d:c.c(d))||(c=U(),d=Je().ba,c=new IM(c,d),d=b.tl,f=a.q(-1),a.i(f.l((U(),"children"),-1)),f=a.h(),a.n(W(c,f,d),-1));U();c=b.ul;Jd();E();d=F();d=G(0,d);(null===c?null===d:c.c(d))||(c=U(),d=U().G,f= -U().G,c=UN(c,d,f),b=b.ul,d=a.q(-1),a.i(d.l((U(),"decorations"),-1)),d=a.h(),a.n(W(c,d,b),-1))};e.Ga=function(a){U();var b=a.tl;Jd();var c=I(J().u,F());b=(null===b?null===c:b.c(c))?0:1;U();a=a.ul;Jd();E();c=F();c=G(0,c);a=!(null===a?null===c:a.c(c));return(3+b|0)+(a?1:0)|0};e.$classData=x({AV:0},!1,"inrae.semantic_web.node.Contains$$anon$45",{AV:1,b:1,Oa:1,la:1});function gz(){}gz.prototype=new t;gz.prototype.constructor=gz;e=gz.prototype;e.oa=function(a,b){return uM(this,a,b)};e.na=function(){return U()}; -e.Ia=function(a,b){var c=Ug().Vh,d=b.Pn,f=a.q(-1);a.i(f.l((U(),"varToCount"),-1));f=a.h();a.n(W(c,f,d),-1);if(U(),b.Sj!==(od(),!1))c=U().sf,d=b.Sj,f=a.q(-1),a.i(f.l((U(),"distinct"),-1)),f=a.h(),a.n(W(c,f,d),-1);c=U().G;d=b.On;f=a.q(-1);a.i(f.l((U(),"idRef"),-1));f=a.h();a.n(W(c,f,d),-1);U();c=b.yl;od();d=I(J().u,F());(null===c?null===d:c.c(d))||(c=U(),d=Je().ba,c=new IM(c,d),d=b.yl,f=a.q(-1),a.i(f.l((U(),"children"),-1)),f=a.h(),a.n(W(c,f,d),-1));U();c=b.zl;od();E();d=F();d=G(0,d);(null===c?null=== -d:c.c(d))||(c=U(),d=U().G,f=U().G,c=UN(c,d,f),b=b.zl,d=a.q(-1),a.i(d.l((U(),"decorations"),-1)),d=a.h(),a.n(W(c,d,b),-1))};e.Ga=function(a){var b=(U(),a.Sj!==(od(),!1))?1:0;U();var c=a.yl;od();var d=I(J().u,F());c=(null===c?null===d:c.c(d))?0:1;U();a=a.zl;od();E();d=F();d=G(0,d);a=!(null===a?null===d:a.c(d));return((2+b|0)+c|0)+(a?1:0)|0};e.$classData=x({KV:0},!1,"inrae.semantic_web.node.Count$$anon$132",{KV:1,b:1,Oa:1,la:1});function lz(){}lz.prototype=new t;lz.prototype.constructor=lz;e=lz.prototype; -e.oa=function(a,b){return uM(this,a,b)};e.na=function(){return U()}; -e.Ia=function(a,b){if(U(),b.Rj!==(pd(),!1)){var c=U().sf,d=b.Rj,f=a.q(-1);a.i(f.l((U(),"distinct"),-1));f=a.h();a.n(W(c,f,d),-1)}c=U().G;d=b.Nn;f=a.q(-1);a.i(f.l((U(),"idRef"),-1));f=a.h();a.n(W(c,f,d),-1);U();c=b.wl;pd();d=I(J().u,F());(null===c?null===d:c.c(d))||(c=U(),d=Je().ba,c=new IM(c,d),d=b.wl,f=a.q(-1),a.i(f.l((U(),"children"),-1)),f=a.h(),a.n(W(c,f,d),-1));U();c=b.xl;pd();E();d=F();d=G(0,d);(null===c?null===d:c.c(d))||(c=U(),d=U().G,f=U().G,c=UN(c,d,f),b=b.xl,d=a.q(-1),a.i(d.l((U(),"decorations"), --1)),d=a.h(),a.n(W(c,d,b),-1))};e.Ga=function(a){var b=(U(),a.Rj!==(pd(),!1))?1:0;U();var c=a.wl;pd();var d=I(J().u,F());c=(null===c?null===d:c.c(d))?0:1;U();a=a.xl;pd();E();d=F();d=G(0,d);a=!(null===a?null===d:a.c(d));return((1+b|0)+c|0)+(a?1:0)|0};e.$classData=x({TV:0},!1,"inrae.semantic_web.node.CountAll$$anon$135",{TV:1,b:1,Oa:1,la:1});function qz(){}qz.prototype=new t;qz.prototype.constructor=qz;e=qz.prototype;e.oa=function(a,b){return uM(this,a,b)};e.na=function(){return U()}; -e.Ia=function(a,b){var c=U().G,d=b.Cq,f=a.q(-1);a.i(f.l((U(),"idRef"),-1));f=a.h();a.n(W(c,f,d),-1);U();c=b.Qn;ge();d=I(J().u,F());(null===c?null===d:c.c(d))||(c=U(),d=Je().ba,c=new IM(c,d),d=b.Qn,f=a.q(-1),a.i(f.l((U(),"children"),-1)),f=a.h(),a.n(W(c,f,d),-1));U();c=b.Rn;ge();E();d=F();d=G(0,d);(null===c?null===d:c.c(d))||(c=U(),d=U().G,f=U().G,c=UN(c,d,f),b=b.Rn,d=a.q(-1),a.i(d.l((U(),"decorations"),-1)),d=a.h(),a.n(W(c,d,b),-1))}; -e.Ga=function(a){U();var b=a.Qn;ge();var c=I(J().u,F());b=(null===b?null===c:b.c(c))?0:1;U();a=a.Rn;ge();E();c=F();c=G(0,c);a=!(null===a?null===c:a.c(c));return(1+b|0)+(a?1:0)|0};e.$classData=x({aW:0},!1,"inrae.semantic_web.node.Datatype$$anon$126",{aW:1,b:1,Oa:1,la:1});function vz(){}vz.prototype=new t;vz.prototype.constructor=vz;e=vz.prototype;e.oa=function(a,b){return uM(this,a,b)};e.na=function(){return U()}; -e.Ia=function(a,b){var c=U().G,d=b.Tj,f=a.q(-1);a.i(f.l((U(),"refNode"),-1));f=a.h();a.n(W(c,f,d),-1);c=Me().mx;d=b.Al;f=a.q(-1);a.i(f.l((U(),"property"),-1));f=a.h();a.n(W(c,f,d),-1);c=U().G;d=b.D;f=a.q(-1);a.i(f.l((U(),"idRef"),-1));f=a.h();a.n(W(c,f,d),-1);U();c=b.Q;Ee();d=I(J().u,F());(null===c?null===d:c.c(d))||(c=U(),d=Je().ba,c=new IM(c,d),d=b.Q,f=a.q(-1),a.i(f.l((U(),"children"),-1)),f=a.h(),a.n(W(c,f,d),-1));U();c=b.S;Ee();E();d=F();d=G(0,d);(null===c?null===d:c.c(d))||(c=U(),d=U().G,f=U().G, -c=UN(c,d,f),b=b.S,d=a.q(-1),a.i(d.l((U(),"decorations"),-1)),d=a.h(),a.n(W(c,d,b),-1))};e.Ga=function(a){U();var b=a.Q;Ee();var c=I(J().u,F());b=(null===b?null===c:b.c(c))?0:1;U();a=a.S;Ee();E();c=F();c=G(0,c);a=!(null===a?null===c:a.c(c));return(3+b|0)+(a?1:0)|0};e.$classData=x({kW:0},!1,"inrae.semantic_web.node.DatatypeNode$$anon$72",{kW:1,b:1,Oa:1,la:1});function Az(){}Az.prototype=new t;Az.prototype.constructor=Az;e=Az.prototype;e.oa=function(a,b){return uM(this,a,b)};e.na=function(){return U()}; -e.Ia=function(a,b){var c=U().G,d=b.D,f=a.q(-1);a.i(f.l((U(),"idRef"),-1));f=a.h();a.n(W(c,f,d),-1);U();c=b.Sn;We();d=I(J().u,F());(null===c?null===d:c.c(d))||(c=U(),d=Je().ba,c=new IM(c,d),d=b.Sn,f=a.q(-1),a.i(f.l((U(),"children"),-1)),f=a.h(),a.n(W(c,f,d),-1));U();c=b.Tn;We();E();d=F();d=G(0,d);(null===c?null===d:c.c(d))||(c=U(),d=U().G,f=U().G,c=UN(c,d,f),b=b.Tn,d=a.q(-1),a.i(d.l((U(),"decorations"),-1)),d=a.h(),a.n(W(c,d,b),-1))}; -e.Ga=function(a){U();var b=a.Sn;We();var c=I(J().u,F());b=(null===b?null===c:b.c(c))?0:1;U();a=a.Tn;We();E();c=F();c=G(0,c);a=!(null===a?null===c:a.c(c));return(1+b|0)+(a?1:0)|0};e.$classData=x({sW:0},!1,"inrae.semantic_web.node.Distinct$$anon$87",{sW:1,b:1,Oa:1,la:1});function Fz(){}Fz.prototype=new t;Fz.prototype.constructor=Fz;e=Fz.prototype;e.oa=function(a,b){return uM(this,a,b)};e.na=function(){return U()}; -e.Ia=function(a,b){var c=Fg().db,d=b.Dl,f=a.q(-1);a.i(f.l((U(),"value"),-1));f=a.h();a.n(W(c,f,d),-1);c=U().sf;d=b.W;f=a.q(-1);a.i(f.l((U(),"negation"),-1));f=a.h();a.n(W(c,f,d),-1);c=U().G;d=b.Un;f=a.q(-1);a.i(f.l((U(),"idRef"),-1));f=a.h();a.n(W(c,f,d),-1);U();c=b.Bl;Od();d=I(J().u,F());(null===c?null===d:c.c(d))||(c=U(),d=Je().ba,c=new IM(c,d),d=b.Bl,f=a.q(-1),a.i(f.l((U(),"children"),-1)),f=a.h(),a.n(W(c,f,d),-1));U();c=b.Cl;Od();E();d=F();d=G(0,d);(null===c?null===d:c.c(d))||(c=U(),d=U().G,f= -U().G,c=UN(c,d,f),b=b.Cl,d=a.q(-1),a.i(d.l((U(),"decorations"),-1)),d=a.h(),a.n(W(c,d,b),-1))};e.Ga=function(a){U();var b=a.Bl;Od();var c=I(J().u,F());b=(null===b?null===c:b.c(c))?0:1;U();a=a.Cl;Od();E();c=F();c=G(0,c);a=!(null===a?null===c:a.c(c));return(3+b|0)+(a?1:0)|0};e.$classData=x({CW:0},!1,"inrae.semantic_web.node.Equal$$anon$54",{CW:1,b:1,Oa:1,la:1});function Oz(){}Oz.prototype=new t;Oz.prototype.constructor=Oz;e=Oz.prototype;e.oa=function(a,b){return uM(this,a,b)};e.na=function(){return U()}; -e.Ia=function(a,b){var c=U().G,d=b.Eq,f=a.q(-1);a.i(f.l((U(),"idRef"),-1));f=a.h();a.n(W(c,f,d),-1);U();c=b.Vn;Zd();d=I(J().u,F());(null===c?null===d:c.c(d))||(c=U(),d=Je().ba,c=new IM(c,d),d=b.Vn,f=a.q(-1),a.i(f.l((U(),"children"),-1)),f=a.h(),a.n(W(c,f,d),-1));U();c=b.Wn;Zd();E();d=F();d=G(0,d);(null===c?null===d:c.c(d))||(c=U(),d=U().G,f=U().G,c=UN(c,d,f),b=b.Wn,d=a.q(-1),a.i(d.l((U(),"decorations"),-1)),d=a.h(),a.n(W(c,d,b),-1))}; -e.Ga=function(a){U();var b=a.Vn;Zd();var c=I(J().u,F());b=(null===b?null===c:b.c(c))?0:1;U();a=a.Wn;Zd();E();c=F();c=G(0,c);a=!(null===a?null===c:a.c(c));return(1+b|0)+(a?1:0)|0};e.$classData=x({MW:0},!1,"inrae.semantic_web.node.Floor$$anon$120",{MW:1,b:1,Oa:1,la:1});function Tz(){}Tz.prototype=new t;Tz.prototype.constructor=Tz;e=Tz.prototype;e.oa=function(a,b){return uM(this,a,b)};e.na=function(){return U()}; -e.Ia=function(a,b){var c=Fg().db,d=b.Jl,f=a.q(-1);a.i(f.l((U(),"value"),-1));f=a.h();a.n(W(c,f,d),-1);c=U().sf;d=b.W;f=a.q(-1);a.i(f.l((U(),"negation"),-1));f=a.h();a.n(W(c,f,d),-1);c=U().G;d=b.Yn;f=a.q(-1);a.i(f.l((U(),"idRef"),-1));f=a.h();a.n(W(c,f,d),-1);U();c=b.Hl;Qd();d=I(J().u,F());(null===c?null===d:c.c(d))||(c=U(),d=Je().ba,c=new IM(c,d),d=b.Hl,f=a.q(-1),a.i(f.l((U(),"children"),-1)),f=a.h(),a.n(W(c,f,d),-1));U();c=b.Il;Qd();E();d=F();d=G(0,d);(null===c?null===d:c.c(d))||(c=U(),d=U().G,f= -U().G,c=UN(c,d,f),b=b.Il,d=a.q(-1),a.i(d.l((U(),"decorations"),-1)),d=a.h(),a.n(W(c,d,b),-1))};e.Ga=function(a){U();var b=a.Hl;Qd();var c=I(J().u,F());b=(null===b?null===c:b.c(c))?0:1;U();a=a.Il;Qd();E();c=F();c=G(0,c);a=!(null===a?null===c:a.c(c));return(3+b|0)+(a?1:0)|0};e.$classData=x({$W:0},!1,"inrae.semantic_web.node.Inf$$anon$60",{$W:1,b:1,Oa:1,la:1});function Yz(){}Yz.prototype=new t;Yz.prototype.constructor=Yz;e=Yz.prototype;e.oa=function(a,b){return uM(this,a,b)};e.na=function(){return U()}; -e.Ia=function(a,b){var c=Fg().db,d=b.Gl,f=a.q(-1);a.i(f.l((U(),"value"),-1));f=a.h();a.n(W(c,f,d),-1);c=U().sf;d=b.W;f=a.q(-1);a.i(f.l((U(),"negation"),-1));f=a.h();a.n(W(c,f,d),-1);c=U().G;d=b.Xn;f=a.q(-1);a.i(f.l((U(),"idRef"),-1));f=a.h();a.n(W(c,f,d),-1);U();c=b.El;Rd();d=I(J().u,F());(null===c?null===d:c.c(d))||(c=U(),d=Je().ba,c=new IM(c,d),d=b.El,f=a.q(-1),a.i(f.l((U(),"children"),-1)),f=a.h(),a.n(W(c,f,d),-1));U();c=b.Fl;Rd();E();d=F();d=G(0,d);(null===c?null===d:c.c(d))||(c=U(),d=U().G,f= -U().G,c=UN(c,d,f),b=b.Fl,d=a.q(-1),a.i(d.l((U(),"decorations"),-1)),d=a.h(),a.n(W(c,d,b),-1))};e.Ga=function(a){U();var b=a.El;Rd();var c=I(J().u,F());b=(null===b?null===c:b.c(c))?0:1;U();a=a.Fl;Rd();E();c=F();c=G(0,c);a=!(null===a?null===c:a.c(c));return(3+b|0)+(a?1:0)|0};e.$classData=x({jX:0},!1,"inrae.semantic_web.node.InfEqual$$anon$63",{jX:1,b:1,Oa:1,la:1});function cA(){}cA.prototype=new t;cA.prototype.constructor=cA;e=cA.prototype;e.oa=function(a,b){return uM(this,a,b)};e.na=function(){return U()}; -e.Ia=function(a,b){var c=Fg().db,d=b.Jq,f=a.q(-1);a.i(f.l((U(),"term"),-1));f=a.h();a.n(W(c,f,d),-1);c=U().G;d=b.Iq;f=a.q(-1);a.i(f.l((U(),"idRef"),-1));f=a.h();a.n(W(c,f,d),-1);U();c=b.bo;vd();d=I(J().u,F());(null===c?null===d:c.c(d))||(c=U(),d=Je().ba,c=new IM(c,d),d=b.bo,f=a.q(-1),a.i(f.l((U(),"children"),-1)),f=a.h(),a.n(W(c,f,d),-1));U();c=b.co;vd();E();d=F();d=G(0,d);(null===c?null===d:c.c(d))||(c=U(),d=U().G,f=U().G,c=UN(c,d,f),b=b.co,d=a.q(-1),a.i(d.l((U(),"decorations"),-1)),d=a.h(),a.n(W(c, -d,b),-1))};e.Ga=function(a){U();var b=a.bo;vd();var c=I(J().u,F());b=(null===b?null===c:b.c(c))?0:1;U();a=a.co;vd();E();c=F();c=G(0,c);a=!(null===a?null===c:a.c(c));return(2+b|0)+(a?1:0)|0};e.$classData=x({sX:0},!1,"inrae.semantic_web.node.Lang$$anon$141",{sX:1,b:1,Oa:1,la:1});function hA(){}hA.prototype=new t;hA.prototype.constructor=hA;e=hA.prototype;e.oa=function(a,b){return uM(this,a,b)};e.na=function(){return U()}; -e.Ia=function(a,b){var c=Fg().db,d=b.ao,f=a.q(-1);a.i(f.l((U(),"term"),-1));f=a.h();a.n(W(c,f,d),-1);c=U().G;d=b.Hq;f=a.q(-1);a.i(f.l((U(),"idRef"),-1));f=a.h();a.n(W(c,f,d),-1);U();c=b.Zn;wd();d=I(J().u,F());(null===c?null===d:c.c(d))||(c=U(),d=Je().ba,c=new IM(c,d),d=b.Zn,f=a.q(-1),a.i(f.l((U(),"children"),-1)),f=a.h(),a.n(W(c,f,d),-1));U();c=b.$n;wd();E();d=F();d=G(0,d);(null===c?null===d:c.c(d))||(c=U(),d=U().G,f=U().G,c=UN(c,d,f),b=b.$n,d=a.q(-1),a.i(d.l((U(),"decorations"),-1)),d=a.h(),a.n(W(c, -d,b),-1))};e.Ga=function(a){U();var b=a.Zn;wd();var c=I(J().u,F());b=(null===b?null===c:b.c(c))?0:1;U();a=a.$n;wd();E();c=F();c=G(0,c);a=!(null===a?null===c:a.c(c));return(2+b|0)+(a?1:0)|0};e.$classData=x({BX:0},!1,"inrae.semantic_web.node.LangMatches$$anon$144",{BX:1,b:1,Oa:1,la:1});function mA(){}mA.prototype=new t;mA.prototype.constructor=mA;e=mA.prototype;e.oa=function(a,b){return uM(this,a,b)};e.na=function(){return U()}; -e.Ia=function(a,b){var c=U().Gu,d=b.Ml,f=a.q(-1);a.i(f.l((U(),"value"),-1));f=a.h();a.n(W(c,f,d),-1);c=U().G;d=b.D;f=a.q(-1);a.i(f.l((U(),"idRef"),-1));f=a.h();a.n(W(c,f,d),-1);U();c=b.Kl;Ze();d=I(J().u,F());(null===c?null===d:c.c(d))||(c=U(),d=Je().ba,c=new IM(c,d),d=b.Kl,f=a.q(-1),a.i(f.l((U(),"children"),-1)),f=a.h(),a.n(W(c,f,d),-1));U();c=b.Ll;Ze();E();d=F();d=G(0,d);(null===c?null===d:c.c(d))||(c=U(),d=U().G,f=U().G,c=UN(c,d,f),b=b.Ll,d=a.q(-1),a.i(d.l((U(),"decorations"),-1)),d=a.h(),a.n(W(c, -d,b),-1))};e.Ga=function(a){U();var b=a.Kl;Ze();var c=I(J().u,F());b=(null===b?null===c:b.c(c))?0:1;U();a=a.Ll;Ze();E();c=F();c=G(0,c);a=!(null===a?null===c:a.c(c));return(2+b|0)+(a?1:0)|0};e.$classData=x({KX:0},!1,"inrae.semantic_web.node.Limit$$anon$96",{KX:1,b:1,Oa:1,la:1});function rA(){}rA.prototype=new t;rA.prototype.constructor=rA;e=rA.prototype;e.oa=function(a,b){return uM(this,a,b)};e.na=function(){return U()}; -e.Ia=function(a,b){var c=U().G,d=b.lc,f=a.q(-1);a.i(f.l((U(),"idRef"),-1));f=a.h();a.n(W(c,f,d),-1);c=Fg().db;d=b.ed;f=a.q(-1);a.i(f.l((U(),"term"),-1));f=a.h();a.n(W(c,f,d),-1);U();c=b.jc;Pe();d=I(J().u,F());(null===c?null===d:c.c(d))||(c=U(),d=Je().ba,c=new IM(c,d),d=b.jc,f=a.q(-1),a.i(f.l((U(),"children"),-1)),f=a.h(),a.n(W(c,f,d),-1));U();c=b.kc;Pe();E();d=F();d=G(0,d);(null===c?null===d:c.c(d))||(c=U(),d=U().G,f=U().G,c=UN(c,d,f),b=b.kc,d=a.q(-1),a.i(d.l((U(),"decorations"),-1)),d=a.h(),a.n(W(c, -d,b),-1))};e.Ga=function(a){U();var b=a.jc;Pe();var c=I(J().u,F());b=(null===b?null===c:b.c(c))?0:1;U();a=a.kc;Pe();E();c=F();c=G(0,c);a=!(null===a?null===c:a.c(c));return(2+b|0)+(a?1:0)|0};e.$classData=x({TX:0},!1,"inrae.semantic_web.node.LinkFrom$$anon$18",{TX:1,b:1,Oa:1,la:1});function wA(){}wA.prototype=new t;wA.prototype.constructor=wA;e=wA.prototype;e.oa=function(a,b){return uM(this,a,b)};e.na=function(){return U()}; -e.Ia=function(a,b){var c=U().G,d=b.lc,f=a.q(-1);a.i(f.l((U(),"idRef"),-1));f=a.h();a.n(W(c,f,d),-1);c=Fg().db;d=b.ed;f=a.q(-1);a.i(f.l((U(),"term"),-1));f=a.h();a.n(W(c,f,d),-1);U();c=b.jc;Oe();d=I(J().u,F());(null===c?null===d:c.c(d))||(c=U(),d=Je().ba,c=new IM(c,d),d=b.jc,f=a.q(-1),a.i(f.l((U(),"children"),-1)),f=a.h(),a.n(W(c,f,d),-1));U();c=b.kc;Oe();E();d=F();d=G(0,d);(null===c?null===d:c.c(d))||(c=U(),d=U().G,f=U().G,c=UN(c,d,f),b=b.kc,d=a.q(-1),a.i(d.l((U(),"decorations"),-1)),d=a.h(),a.n(W(c, -d,b),-1))};e.Ga=function(a){U();var b=a.jc;Oe();var c=I(J().u,F());b=(null===b?null===c:b.c(c))?0:1;U();a=a.kc;Oe();E();c=F();c=G(0,c);a=!(null===a?null===c:a.c(c));return(2+b|0)+(a?1:0)|0};e.$classData=x({bY:0},!1,"inrae.semantic_web.node.LinkTo$$anon$15",{bY:1,b:1,Oa:1,la:1});function BA(){}BA.prototype=new t;BA.prototype.constructor=BA;e=BA.prototype;e.oa=function(a,b){return uM(this,a,b)};e.na=function(){return U()}; -e.Ia=function(a,b){var c=U(),d=Fg().db;c=new IM(c,d);d=b.eo;var f=a.q(-1);a.i(f.l((U(),"terms"),-1));f=a.h();a.n(W(c,f,d),-1);if(U(),b.D!==(De(),fH().g()))c=U().G,d=b.D,f=a.q(-1),a.i(f.l((U(),"idRef"),-1)),f=a.h(),a.n(W(c,f,d),-1);U();c=b.Q;De();d=I(J().u,F());(null===c?null===d:c.c(d))||(c=U(),d=Je().ba,c=new IM(c,d),d=b.Q,f=a.q(-1),a.i(f.l((U(),"children"),-1)),f=a.h(),a.n(W(c,f,d),-1));U();c=b.S;De();E();d=F();d=G(0,d);(null===c?null===d:c.c(d))||(c=U(),d=U().G,f=U().G,c=UN(c,d,f),b=b.S,d=a.q(-1), -a.i(d.l((U(),"decorations"),-1)),d=a.h(),a.n(W(c,d,b),-1))};e.Ga=function(a){var b=(U(),a.D!==(De(),fH().g()))?1:0;U();var c=a.Q;De();var d=I(J().u,F());c=(null===c?null===d:c.c(d))?0:1;U();a=a.S;De();E();d=F();d=G(0,d);a=!(null===a?null===d:a.c(d));return((1+b|0)+c|0)+(a?1:0)|0};e.$classData=x({kY:0},!1,"inrae.semantic_web.node.ListValues$$anon$24",{kY:1,b:1,Oa:1,la:1});function JA(){}JA.prototype=new t;JA.prototype.constructor=JA;e=JA.prototype;e.oa=function(a,b){return uM(this,a,b)};e.na=function(){return U()}; -e.Ia=function(a,b){var c=U().G,d=b.D,f=a.q(-1);a.i(f.l((U(),"idRef"),-1));f=a.h();a.n(W(c,f,d),-1);c=Je().ba;d=b.Wg;f=a.q(-1);a.i(f.l((U(),"s"),-1));f=a.h();a.n(W(c,f,d),-1);U();c=b.fo;ke();d=I(J().u,F());(null===c?null===d:c.c(d))||(c=U(),d=Je().ba,c=new IM(c,d),d=b.fo,f=a.q(-1),a.i(f.l((U(),"children"),-1)),f=a.h(),a.n(W(c,f,d),-1));U();c=b.go;ke();E();d=F();d=G(0,d);(null===c?null===d:c.c(d))||(c=U(),d=U().G,f=U().G,c=UN(c,d,f),b=b.go,d=a.q(-1),a.i(d.l((U(),"decorations"),-1)),d=a.h(),a.n(W(c, -d,b),-1))};e.Ga=function(a){U();var b=a.fo;ke();var c=I(J().u,F());b=(null===b?null===c:b.c(c))?0:1;U();a=a.go;ke();E();c=F();c=G(0,c);a=!(null===a?null===c:a.c(c));return(2+b|0)+(a?1:0)|0};e.$classData=x({wY:0},!1,"inrae.semantic_web.node.NotBlock$$anon$30",{wY:1,b:1,Oa:1,la:1});function OA(){}OA.prototype=new t;OA.prototype.constructor=OA;e=OA.prototype;e.oa=function(a,b){return uM(this,a,b)};e.na=function(){return U()}; -e.Ia=function(a,b){var c=Fg().db,d=b.Pl,f=a.q(-1);a.i(f.l((U(),"value"),-1));f=a.h();a.n(W(c,f,d),-1);c=U().sf;d=b.W;f=a.q(-1);a.i(f.l((U(),"negation"),-1));f=a.h();a.n(W(c,f,d),-1);c=U().G;d=b.ho;f=a.q(-1);a.i(f.l((U(),"idRef"),-1));f=a.h();a.n(W(c,f,d),-1);U();c=b.Nl;Pd();d=I(J().u,F());(null===c?null===d:c.c(d))||(c=U(),d=Je().ba,c=new IM(c,d),d=b.Nl,f=a.q(-1),a.i(f.l((U(),"children"),-1)),f=a.h(),a.n(W(c,f,d),-1));U();c=b.Ol;Pd();E();d=F();d=G(0,d);(null===c?null===d:c.c(d))||(c=U(),d=U().G,f= -U().G,c=UN(c,d,f),b=b.Ol,d=a.q(-1),a.i(d.l((U(),"decorations"),-1)),d=a.h(),a.n(W(c,d,b),-1))};e.Ga=function(a){U();var b=a.Nl;Pd();var c=I(J().u,F());b=(null===b?null===c:b.c(c))?0:1;U();a=a.Ol;Pd();E();c=F();c=G(0,c);a=!(null===a?null===c:a.c(c));return(3+b|0)+(a?1:0)|0};e.$classData=x({GY:0},!1,"inrae.semantic_web.node.NotEqual$$anon$57",{GY:1,b:1,Oa:1,la:1});function TA(){}TA.prototype=new t;TA.prototype.constructor=TA;e=TA.prototype;e.oa=function(a,b){return uM(this,a,b)};e.na=function(){return U()}; -e.Ia=function(a,b){var c=U().G,d=b.lc,f=a.q(-1);a.i(f.l((U(),"idRef"),-1));f=a.h();a.n(W(c,f,d),-1);c=Fg().db;d=b.ed;f=a.q(-1);a.i(f.l((U(),"term"),-1));f=a.h();a.n(W(c,f,d),-1);U();c=b.jc;Ne();d=I(J().u,F());(null===c?null===d:c.c(d))||(c=U(),d=Je().ba,c=new IM(c,d),d=b.jc,f=a.q(-1),a.i(f.l((U(),"children"),-1)),f=a.h(),a.n(W(c,f,d),-1));U();c=b.kc;Ne();E();d=F();d=G(0,d);(null===c?null===d:c.c(d))||(c=U(),d=U().G,f=U().G,c=UN(c,d,f),b=b.kc,d=a.q(-1),a.i(d.l((U(),"decorations"),-1)),d=a.h(),a.n(W(c, -d,b),-1))};e.Ga=function(a){U();var b=a.jc;Ne();var c=I(J().u,F());b=(null===b?null===c:b.c(c))?0:1;U();a=a.kc;Ne();E();c=F();c=G(0,c);a=!(null===a?null===c:a.c(c));return(2+b|0)+(a?1:0)|0};e.$classData=x({PY:0},!1,"inrae.semantic_web.node.ObjectOf$$anon$12",{PY:1,b:1,Oa:1,la:1});function YA(){}YA.prototype=new t;YA.prototype.constructor=YA;e=YA.prototype;e.oa=function(a,b){return uM(this,a,b)};e.na=function(){return U()}; -e.Ia=function(a,b){var c=U().Gu,d=b.Sl,f=a.q(-1);a.i(f.l((U(),"value"),-1));f=a.h();a.n(W(c,f,d),-1);c=U().G;d=b.D;f=a.q(-1);a.i(f.l((U(),"idRef"),-1));f=a.h();a.n(W(c,f,d),-1);U();c=b.Ql;Ye();d=I(J().u,F());(null===c?null===d:c.c(d))||(c=U(),d=Je().ba,c=new IM(c,d),d=b.Ql,f=a.q(-1),a.i(f.l((U(),"children"),-1)),f=a.h(),a.n(W(c,f,d),-1));U();c=b.Rl;Ye();E();d=F();d=G(0,d);(null===c?null===d:c.c(d))||(c=U(),d=U().G,f=U().G,c=UN(c,d,f),b=b.Rl,d=a.q(-1),a.i(d.l((U(),"decorations"),-1)),d=a.h(),a.n(W(c, -d,b),-1))};e.Ga=function(a){U();var b=a.Ql;Ye();var c=I(J().u,F());b=(null===b?null===c:b.c(c))?0:1;U();a=a.Rl;Ye();E();c=F();c=G(0,c);a=!(null===a?null===c:a.c(c));return(2+b|0)+(a?1:0)|0};e.$classData=x({YY:0},!1,"inrae.semantic_web.node.Offset$$anon$93",{YY:1,b:1,Oa:1,la:1});function cB(){}cB.prototype=new t;cB.prototype.constructor=cB;e=cB.prototype;e.oa=function(a,b){return uM(this,a,b)};e.na=function(){return U()}; -e.Ia=function(a,b){var c=U(),d=Ug().Vh;c=new IM(c,d);d=b.ko;var f=a.q(-1);a.i(f.l((U(),"list"),-1));f=a.h();a.n(W(c,f,d),-1);c=U().G;d=b.D;f=a.q(-1);a.i(f.l((U(),"idRef"),-1));f=a.h();a.n(W(c,f,d),-1);U();c=b.io;Se();d=I(J().u,F());(null===c?null===d:c.c(d))||(c=U(),d=Je().ba,c=new IM(c,d),d=b.io,f=a.q(-1),a.i(f.l((U(),"children"),-1)),f=a.h(),a.n(W(c,f,d),-1));U();c=b.jo;Se();E();d=F();d=G(0,d);(null===c?null===d:c.c(d))||(c=U(),d=U().G,f=U().G,c=UN(c,d,f),b=b.jo,d=a.q(-1),a.i(d.l((U(),"decorations"), --1)),d=a.h(),a.n(W(c,d,b),-1))};e.Ga=function(a){U();var b=a.io;Se();var c=I(J().u,F());b=(null===b?null===c:b.c(c))?0:1;U();a=a.jo;Se();E();c=F();c=G(0,c);a=!(null===a?null===c:a.c(c));return(2+b|0)+(a?1:0)|0};e.$classData=x({gZ:0},!1,"inrae.semantic_web.node.OrderByAsc$$anon$78",{gZ:1,b:1,Oa:1,la:1});function hB(){}hB.prototype=new t;hB.prototype.constructor=hB;e=hB.prototype;e.oa=function(a,b){return uM(this,a,b)};e.na=function(){return U()}; -e.Ia=function(a,b){var c=U(),d=Ug().Vh;c=new IM(c,d);d=b.no;var f=a.q(-1);a.i(f.l((U(),"list"),-1));f=a.h();a.n(W(c,f,d),-1);c=U().G;d=b.D;f=a.q(-1);a.i(f.l((U(),"idRef"),-1));f=a.h();a.n(W(c,f,d),-1);U();c=b.lo;Te();d=I(J().u,F());(null===c?null===d:c.c(d))||(c=U(),d=Je().ba,c=new IM(c,d),d=b.lo,f=a.q(-1),a.i(f.l((U(),"children"),-1)),f=a.h(),a.n(W(c,f,d),-1));U();c=b.mo;Te();E();d=F();d=G(0,d);(null===c?null===d:c.c(d))||(c=U(),d=U().G,f=U().G,c=UN(c,d,f),b=b.mo,d=a.q(-1),a.i(d.l((U(),"decorations"), --1)),d=a.h(),a.n(W(c,d,b),-1))};e.Ga=function(a){U();var b=a.lo;Te();var c=I(J().u,F());b=(null===b?null===c:b.c(c))?0:1;U();a=a.mo;Te();E();c=F();c=G(0,c);a=!(null===a?null===c:a.c(c));return(2+b|0)+(a?1:0)|0};e.$classData=x({pZ:0},!1,"inrae.semantic_web.node.OrderByDesc$$anon$81",{pZ:1,b:1,Oa:1,la:1});function VN(a,b,c,d){a.oe=b;a.ge=c;a.he=d;le(a,b,c,d)}function WN(){this.he=this.ge=this.oe=this.S=this.Q=this.D=null}WN.prototype=new Iz;WN.prototype.constructor=WN;function XN(){}XN.prototype=WN.prototype; -function mB(){}mB.prototype=new t;mB.prototype.constructor=mB;e=mB.prototype;e.oa=function(a,b){return uM(this,a,b)};e.na=function(){return U()}; -e.Ia=function(a,b){var c=U(),d=Ug().Vh;c=new IM(c,d);d=b.yi;var f=a.q(-1);a.i(f.l((U(),"variables"),-1));f=a.h();a.n(W(c,f,d),-1);c=U().G;d=b.D;f=a.q(-1);a.i(f.l((U(),"idRef"),-1));f=a.h();a.n(W(c,f,d),-1);U();c=b.Uj;Ue();d=I(J().u,F());(null===c?null===d:c.c(d))||(c=U(),d=Je().ba,c=new IM(c,d),d=b.Uj,f=a.q(-1),a.i(f.l((U(),"children"),-1)),f=a.h(),a.n(W(c,f,d),-1));U();c=b.Tl;Ue();E();d=F();d=G(0,d);(null===c?null===d:c.c(d))||(c=U(),d=U().G,f=U().G,c=UN(c,d,f),b=b.Tl,d=a.q(-1),a.i(d.l((U(),"decorations"), --1)),d=a.h(),a.n(W(c,d,b),-1))};e.Ga=function(a){U();var b=a.Uj;Ue();var c=I(J().u,F());b=(null===b?null===c:b.c(c))?0:1;U();a=a.Tl;Ue();E();c=F();c=G(0,c);a=!(null===a?null===c:a.c(c));return(2+b|0)+(a?1:0)|0};e.$classData=x({zZ:0},!1,"inrae.semantic_web.node.Projection$$anon$84",{zZ:1,b:1,Oa:1,la:1});function rB(){}rB.prototype=new t;rB.prototype.constructor=rB;e=rB.prototype;e.oa=function(a,b){return uM(this,a,b)};e.na=function(){return U()}; -e.Ia=function(a,b){var c=Ug().Vh,d=b.Nq,f=a.q(-1);a.i(f.l((U(),"var"),-1));f=a.h();a.n(W(c,f,d),-1);c=rd().Xw;d=b.Mq;f=a.q(-1);a.i(f.l((U(),"expression"),-1));f=a.h();a.n(W(c,f,d),-1);c=U().G;d=b.D;f=a.q(-1);a.i(f.l((U(),"idRef"),-1));f=a.h();a.n(W(c,f,d),-1);U();c=b.Q;Ie();d=I(J().u,F());(null===c?null===d:c.c(d))||(c=U(),d=Je().ba,c=new IM(c,d),d=b.Q,f=a.q(-1),a.i(f.l((U(),"children"),-1)),f=a.h(),a.n(W(c,f,d),-1));U();c=b.S;Ie();E();d=F();d=G(0,d);(null===c?null===d:c.c(d))||(c=U(),d=U().G,f=U().G, -c=UN(c,d,f),b=b.S,d=a.q(-1),a.i(d.l((U(),"decorations"),-1)),d=a.h(),a.n(W(c,d,b),-1))};e.Ga=function(a){U();var b=a.Q;Ie();var c=I(J().u,F());b=(null===b?null===c:b.c(c))?0:1;U();a=a.S;Ie();E();c=F();c=G(0,c);a=!(null===a?null===c:a.c(c));return(3+b|0)+(a?1:0)|0};e.$classData=x({JZ:0},!1,"inrae.semantic_web.node.ProjectionExpression$$anon$129",{JZ:1,b:1,Oa:1,la:1});function wB(){}wB.prototype=new t;wB.prototype.constructor=wB;e=wB.prototype;e.oa=function(a,b){return uM(this,a,b)};e.na=function(){return U()}; -e.Ia=function(a,b){var c=U().G,d=b.Oq,f=a.q(-1);a.i(f.l((U(),"idRef"),-1));f=a.h();a.n(W(c,f,d),-1);U();c=b.oo;$d();d=I(J().u,F());(null===c?null===d:c.c(d))||(c=U(),d=Je().ba,c=new IM(c,d),d=b.oo,f=a.q(-1),a.i(f.l((U(),"children"),-1)),f=a.h(),a.n(W(c,f,d),-1));U();c=b.po;$d();E();d=F();d=G(0,d);(null===c?null===d:c.c(d))||(c=U(),d=U().G,f=U().G,c=UN(c,d,f),b=b.po,d=a.q(-1),a.i(d.l((U(),"decorations"),-1)),d=a.h(),a.n(W(c,d,b),-1))}; -e.Ga=function(a){U();var b=a.oo;$d();var c=I(J().u,F());b=(null===b?null===c:b.c(c))?0:1;U();a=a.po;$d();E();c=F();c=G(0,c);a=!(null===a?null===c:a.c(c));return(1+b|0)+(a?1:0)|0};e.$classData=x({RZ:0},!1,"inrae.semantic_web.node.Rand$$anon$123",{RZ:1,b:1,Oa:1,la:1});function DB(){}DB.prototype=new t;DB.prototype.constructor=DB;e=DB.prototype;e.oa=function(a,b){return uM(this,a,b)};e.na=function(){return U()}; -e.Ia=function(a,b){var c=U().G,d=b.D,f=a.q(-1);a.i(f.l((U(),"idRef"),-1));f=a.h();a.n(W(c,f,d),-1);U();c=b.qo;Xe();d=I(J().u,F());(null===c?null===d:c.c(d))||(c=U(),d=Je().ba,c=new IM(c,d),d=b.qo,f=a.q(-1),a.i(f.l((U(),"children"),-1)),f=a.h(),a.n(W(c,f,d),-1));U();c=b.ro;Xe();E();d=F();d=G(0,d);(null===c?null===d:c.c(d))||(c=U(),d=U().G,f=U().G,c=UN(c,d,f),b=b.ro,d=a.q(-1),a.i(d.l((U(),"decorations"),-1)),d=a.h(),a.n(W(c,d,b),-1))}; -e.Ga=function(a){U();var b=a.qo;Xe();var c=I(J().u,F());b=(null===b?null===c:b.c(c))?0:1;U();a=a.ro;Xe();E();c=F();c=G(0,c);a=!(null===a?null===c:a.c(c));return(1+b|0)+(a?1:0)|0};e.$classData=x({$Z:0},!1,"inrae.semantic_web.node.Reduced$$anon$90",{$Z:1,b:1,Oa:1,la:1});function IB(){}IB.prototype=new t;IB.prototype.constructor=IB;e=IB.prototype;e.oa=function(a,b){return uM(this,a,b)};e.na=function(){return U()}; -e.Ia=function(a,b){var c=Fg().db,d=b.vo,f=a.q(-1);a.i(f.l((U(),"pattern"),-1));f=a.h();a.n(W(c,f,d),-1);c=Fg().db;d=b.to;f=a.q(-1);a.i(f.l((U(),"flags"),-1));f=a.h();a.n(W(c,f,d),-1);c=U().sf;d=b.W;f=a.q(-1);a.i(f.l((U(),"negation"),-1));f=a.h();a.n(W(c,f,d),-1);c=U().G;d=b.uo;f=a.q(-1);a.i(f.l((U(),"idRef"),-1));f=a.h();a.n(W(c,f,d),-1);U();c=b.Ul;Id();d=I(J().u,F());(null===c?null===d:c.c(d))||(c=U(),d=Je().ba,c=new IM(c,d),d=b.Ul,f=a.q(-1),a.i(f.l((U(),"children"),-1)),f=a.h(),a.n(W(c,f,d),-1)); -U();c=b.Vl;Id();E();d=F();d=G(0,d);(null===c?null===d:c.c(d))||(c=U(),d=U().G,f=U().G,c=UN(c,d,f),b=b.Vl,d=a.q(-1),a.i(d.l((U(),"decorations"),-1)),d=a.h(),a.n(W(c,d,b),-1))};e.Ga=function(a){U();var b=a.Ul;Id();var c=I(J().u,F());b=(null===b?null===c:b.c(c))?0:1;U();a=a.Vl;Id();E();c=F();c=G(0,c);a=!(null===a?null===c:a.c(c));return(4+b|0)+(a?1:0)|0};e.$classData=x({k_:0},!1,"inrae.semantic_web.node.Regex$$anon$42",{k_:1,b:1,Oa:1,la:1});function NB(){}NB.prototype=new t; -NB.prototype.constructor=NB;e=NB.prototype;e.oa=function(a,b){return uM(this,a,b)};e.na=function(){return U()}; -e.Ia=function(a,b){var c=Fg().db,d=b.Sq,f=a.q(-1);a.i(f.l((U(),"pattern"),-1));f=a.h();a.n(W(c,f,d),-1);c=Fg().db;d=b.Tq;f=a.q(-1);a.i(f.l((U(),"replacement"),-1));f=a.h();a.n(W(c,f,d),-1);c=Fg().db;d=b.Qq;f=a.q(-1);a.i(f.l((U(),"flags"),-1));f=a.h();a.n(W(c,f,d),-1);c=U().G;d=b.Rq;f=a.q(-1);a.i(f.l((U(),"idRef"),-1));f=a.h();a.n(W(c,f,d),-1);U();c=b.xo;de();d=I(J().u,F());(null===c?null===d:c.c(d))||(c=U(),d=Je().ba,c=new IM(c,d),d=b.xo,f=a.q(-1),a.i(f.l((U(),"children"),-1)),f=a.h(),a.n(W(c,f,d), --1));U();c=b.yo;de();E();d=F();d=G(0,d);(null===c?null===d:c.c(d))||(c=U(),d=U().G,f=U().G,c=UN(c,d,f),b=b.yo,d=a.q(-1),a.i(d.l((U(),"decorations"),-1)),d=a.h(),a.n(W(c,d,b),-1))};e.Ga=function(a){U();var b=a.xo;de();var c=I(J().u,F());b=(null===b?null===c:b.c(c))?0:1;U();a=a.yo;de();E();c=F();c=G(0,c);a=!(null===a?null===c:a.c(c));return(4+b|0)+(a?1:0)|0};e.$classData=x({w_:0},!1,"inrae.semantic_web.node.Replace$$anon$108",{w_:1,b:1,Oa:1,la:1});function SB(){}SB.prototype=new t; -SB.prototype.constructor=SB;e=SB.prototype;e.oa=function(a,b){return uM(this,a,b)};e.na=function(){return U()}; -e.Ia=function(a,b){if(U(),b.D!==(ye(),fH().g())){var c=U().G,d=b.D,f=a.q(-1);a.i(f.l((U(),"idRef"),-1));f=a.h();a.n(W(c,f,d),-1)}U();c=b.df;d=UB();(null===c?null===d:c.c(d))||(c=U(),d=U().G,f=Qg().om,c=UN(c,d,f),d=b.df,f=a.q(-1),a.i(f.l((U(),"prefixes"),-1)),f=a.h(),a.n(W(c,f,d),-1));U();c=b.Hf;ye();J();d=F();d=hh(F(),d);(null===c?null===d:c.c(d))||(c=U(),d=Qg().om,c=new IM(c,d),d=b.Hf,f=a.q(-1),a.i(f.l((U(),"defaultGraph"),-1)),f=a.h(),a.n(W(c,f,d),-1));U();c=b.If;ye();J();d=F();d=hh(F(),d);(null=== -c?null===d:c.c(d))||(c=U(),d=Qg().om,c=new IM(c,d),d=b.If,f=a.q(-1),a.i(f.l((U(),"namedGraph"),-1)),f=a.h(),a.n(W(c,f,d),-1));U();c=b.Le;ye();J();d=F();d=hh(F(),d);(null===c?null===d:c.c(d))||(c=U(),d=Ee().ax,c=new IM(c,d),d=b.Le,f=a.q(-1),a.i(f.l((U(),"lDatatypeNode"),-1)),f=a.h(),a.n(W(c,f,d),-1));U();c=b.Me;ye();J();d=F();d=hh(F(),d);(null===c?null===d:c.c(d))||(c=U(),d=Fe().lx,c=new IM(c,d),d=b.Me,f=a.q(-1),a.i(f.l((U(),"lSourcesNodes"),-1)),f=a.h(),a.n(W(c,f,d),-1));U();c=b.xe;ye();J();d=F(); -d=hh(F(),d);(null===c?null===d:c.c(d))||(c=U(),d=Ge().Yw,c=new IM(c,d),d=b.xe,f=a.q(-1),a.i(f.l((U(),"lBindNode"),-1)),f=a.h(),a.n(W(c,f,d),-1));U();c=b.od;ye();J();d=F();d=hh(F(),d);(null===c?null===d:c.c(d))||(c=U(),d=He().jx,c=new IM(c,d),d=b.od,f=a.q(-1),a.i(f.l((U(),"lSolutionSequenceModifierNode"),-1)),f=a.h(),a.n(W(c,f,d),-1));U();c=b.Q;ye();d=I(J().u,F());(null===c?null===d:c.c(d))||(c=U(),d=Je().ba,c=new IM(c,d),d=b.Q,f=a.q(-1),a.i(f.l((U(),"children"),-1)),f=a.h(),a.n(W(c,f,d),-1));U(); -c=b.S;ye();E();d=F();d=G(0,d);(null===c?null===d:c.c(d))||(c=U(),d=U().G,f=U().G,c=UN(c,d,f),b=b.S,d=a.q(-1),a.i(d.l((U(),"decorations"),-1)),d=a.h(),a.n(W(c,d,b),-1))}; -e.Ga=function(a){var b=(U(),a.D!==(ye(),fH().g()))?1:0;U();var c=a.df,d=UB();c=(null===c?null===d:c.c(d))?0:1;U();d=a.Hf;ye();J();var f=F();f=hh(F(),f);d=(null===d?null===f:d.c(f))?0:1;U();f=a.If;ye();J();var g=F();g=hh(F(),g);f=(null===f?null===g:f.c(g))?0:1;U();g=a.Le;ye();J();var h=F();h=hh(F(),h);g=(null===g?null===h:g.c(h))?0:1;U();h=a.Me;ye();J();var l=F();l=hh(F(),l);h=(null===h?null===l:h.c(l))?0:1;U();l=a.xe;ye();J();var n=F();n=hh(F(),n);l=(null===l?null===n:l.c(n))?0:1;U();n=a.od;ye(); -J();var r=F();r=hh(F(),r);n=(null===n?null===r:n.c(r))?0:1;U();r=a.Q;ye();var u=I(J().u,F());r=(null===r?null===u:r.c(u))?0:1;U();a=a.S;ye();E();u=F();u=G(0,u);a=!(null===a?null===u:a.c(u));return((((((((b+c|0)+d|0)+f|0)+g|0)+h|0)+l|0)+n|0)+r|0)+(a?1:0)|0};e.$classData=x({L_:0},!1,"inrae.semantic_web.node.Root$$anon$3",{L_:1,b:1,Oa:1,la:1});function ZB(){}ZB.prototype=new t;ZB.prototype.constructor=ZB;e=ZB.prototype;e.oa=function(a,b){return uM(this,a,b)};e.na=function(){return U()}; -e.Ia=function(a,b){var c=U().G,d=b.Uq,f=a.q(-1);a.i(f.l((U(),"idRef"),-1));f=a.h();a.n(W(c,f,d),-1);U();c=b.zo;Xd();d=I(J().u,F());(null===c?null===d:c.c(d))||(c=U(),d=Je().ba,c=new IM(c,d),d=b.zo,f=a.q(-1),a.i(f.l((U(),"children"),-1)),f=a.h(),a.n(W(c,f,d),-1));U();c=b.Ao;Xd();E();d=F();d=G(0,d);(null===c?null===d:c.c(d))||(c=U(),d=U().G,f=U().G,c=UN(c,d,f),b=b.Ao,d=a.q(-1),a.i(d.l((U(),"decorations"),-1)),d=a.h(),a.n(W(c,d,b),-1))}; -e.Ga=function(a){U();var b=a.zo;Xd();var c=I(J().u,F());b=(null===b?null===c:b.c(c))?0:1;U();a=a.Ao;Xd();E();c=F();c=G(0,c);a=!(null===a?null===c:a.c(c));return(1+b|0)+(a?1:0)|0};e.$classData=x({T_:0},!1,"inrae.semantic_web.node.Round$$anon$114",{T_:1,b:1,Oa:1,la:1});function fC(){}fC.prototype=new t;fC.prototype.constructor=fC;e=fC.prototype;e.oa=function(a,b){return uM(this,a,b)};e.na=function(){return U()}; -e.Ia=function(a,b){var c=U().G,d=b.Wq,f=a.q(-1);a.i(f.l((U(),"idRef"),-1));f=a.h();a.n(W(c,f,d),-1);U();c=b.Vj;Le();d=I(J().u,F());(null===c?null===d:c.c(d))||(c=U(),d=Je().ba,c=new IM(c,d),d=b.Vj,f=a.q(-1),a.i(f.l((U(),"children"),-1)),f=a.h(),a.n(W(c,f,d),-1));U();c=b.Bo;Le();E();d=F();d=G(0,d);(null===c?null===d:c.c(d))||(c=U(),d=U().G,f=U().G,c=UN(c,d,f),b=b.Bo,d=a.q(-1),a.i(d.l((U(),"decorations"),-1)),d=a.h(),a.n(W(c,d,b),-1))}; -e.Ga=function(a){U();var b=a.Vj;Le();var c=I(J().u,F());b=(null===b?null===c:b.c(c))?0:1;U();a=a.Bo;Le();E();c=F();c=G(0,c);a=!(null===a?null===c:a.c(c));return(1+b|0)+(a?1:0)|0};e.$classData=x({b0:0},!1,"inrae.semantic_web.node.Something$$anon$6",{b0:1,b:1,Oa:1,la:1});function kC(){}kC.prototype=new t;kC.prototype.constructor=kC;e=kC.prototype;e.oa=function(a,b){return uM(this,a,b)};e.na=function(){return U()}; -e.Ia=function(a,b){var c=U().G,d=b.It,f=a.q(-1);a.i(f.l((U(),"refNode"),-1));f=a.h();a.n(W(c,f,d),-1);c=U();d=U().G;c=new IM(c,d);d=b.Yq;f=a.q(-1);a.i(f.l((U(),"sources"),-1));f=a.h();a.n(W(c,f,d),-1);c=U().G;d=b.D;f=a.q(-1);a.i(f.l((U(),"idRef"),-1));f=a.h();a.n(W(c,f,d),-1);U();c=b.Q;Fe();d=I(J().u,F());(null===c?null===d:c.c(d))||(c=U(),d=Je().ba,c=new IM(c,d),d=b.Q,f=a.q(-1),a.i(f.l((U(),"children"),-1)),f=a.h(),a.n(W(c,f,d),-1));U();c=b.S;Fe();E();d=F();d=G(0,d);(null===c?null===d:c.c(d))||(c= -U(),d=U().G,f=U().G,c=UN(c,d,f),b=b.S,d=a.q(-1),a.i(d.l((U(),"decorations"),-1)),d=a.h(),a.n(W(c,d,b),-1))};e.Ga=function(a){U();var b=a.Q;Fe();var c=I(J().u,F());b=(null===b?null===c:b.c(c))?0:1;U();a=a.S;Fe();E();c=F();c=G(0,c);a=!(null===a?null===c:a.c(c));return(3+b|0)+(a?1:0)|0};e.$classData=x({l0:0},!1,"inrae.semantic_web.node.SourcesNode$$anon$75",{l0:1,b:1,Oa:1,la:1});function pC(){}pC.prototype=new t;pC.prototype.constructor=pC;e=pC.prototype;e.oa=function(a,b){return uM(this,a,b)}; -e.na=function(){return U()}; -e.Ia=function(a,b){var c=Fg().db,d=b.Kt,f=a.q(-1);a.i(f.l((U(),"sd"),-1));f=a.h();a.n(W(c,f,d),-1);c=U().G;d=b.oe;f=a.q(-1);a.i(f.l((U(),"idRef"),-1));f=a.h();a.n(W(c,f,d),-1);U();c=b.ge;Ke();d=I(J().u,F());(null===c?null===d:c.c(d))||(c=U(),d=Je().ba,c=new IM(c,d),d=b.ge,f=a.q(-1),a.i(f.l((U(),"children"),-1)),f=a.h(),a.n(W(c,f,d),-1));U();c=b.he;Ke();E();d=F();d=G(0,d);(null===c?null===d:c.c(d))||(c=U(),d=U().G,f=U().G,c=UN(c,d,f),b=b.he,d=a.q(-1),a.i(d.l((U(),"decorations"),-1)),d=a.h(),a.n(W(c, -d,b),-1))};e.Ga=function(a){U();var b=a.ge;Ke();var c=I(J().u,F());b=(null===b?null===c:b.c(c))?0:1;U();a=a.he;Ke();E();c=F();c=G(0,c);a=!(null===a?null===c:a.c(c));return(2+b|0)+(a?1:0)|0};e.$classData=x({u0:0},!1,"inrae.semantic_web.node.SparqlDefinitionExpression$$anon$102",{u0:1,b:1,Oa:1,la:1});function uC(){}uC.prototype=new t;uC.prototype.constructor=uC;e=uC.prototype;e.oa=function(a,b){return uM(this,a,b)};e.na=function(){return U()}; -e.Ia=function(a,b){var c=Fg().db,d=b.br,f=a.q(-1);a.i(f.l((U(),"term"),-1));f=a.h();a.n(W(c,f,d),-1);c=U().G;d=b.ar;f=a.q(-1);a.i(f.l((U(),"idRef"),-1));f=a.h();a.n(W(c,f,d),-1);U();c=b.Eo;ud();d=I(J().u,F());(null===c?null===d:c.c(d))||(c=U(),d=Je().ba,c=new IM(c,d),d=b.Eo,f=a.q(-1),a.i(f.l((U(),"children"),-1)),f=a.h(),a.n(W(c,f,d),-1));U();c=b.Fo;ud();E();d=F();d=G(0,d);(null===c?null===d:c.c(d))||(c=U(),d=U().G,f=U().G,c=UN(c,d,f),b=b.Fo,d=a.q(-1),a.i(d.l((U(),"decorations"),-1)),d=a.h(),a.n(W(c, -d,b),-1))};e.Ga=function(a){U();var b=a.Eo;ud();var c=I(J().u,F());b=(null===b?null===c:b.c(c))?0:1;U();a=a.Fo;ud();E();c=F();c=G(0,c);a=!(null===a?null===c:a.c(c));return(2+b|0)+(a?1:0)|0};e.$classData=x({D0:0},!1,"inrae.semantic_web.node.Str$$anon$138",{D0:1,b:1,Oa:1,la:1});function zC(){}zC.prototype=new t;zC.prototype.constructor=zC;e=zC.prototype;e.oa=function(a,b){return uM(this,a,b)};e.na=function(){return U()}; -e.Ia=function(a,b){var c=Fg().db,d=b.Yl,f=a.q(-1);a.i(f.l((U(),"value"),-1));f=a.h();a.n(W(c,f,d),-1);c=U().sf;d=b.W;f=a.q(-1);a.i(f.l((U(),"negation"),-1));f=a.h();a.n(W(c,f,d),-1);c=U().G;d=b.Co;f=a.q(-1);a.i(f.l((U(),"idRef"),-1));f=a.h();a.n(W(c,f,d),-1);U();c=b.Wl;Ld();d=I(J().u,F());(null===c?null===d:c.c(d))||(c=U(),d=Je().ba,c=new IM(c,d),d=b.Wl,f=a.q(-1),a.i(f.l((U(),"children"),-1)),f=a.h(),a.n(W(c,f,d),-1));U();c=b.Xl;Ld();E();d=F();d=G(0,d);(null===c?null===d:c.c(d))||(c=U(),d=U().G,f= -U().G,c=UN(c,d,f),b=b.Xl,d=a.q(-1),a.i(d.l((U(),"decorations"),-1)),d=a.h(),a.n(W(c,d,b),-1))};e.Ga=function(a){U();var b=a.Wl;Ld();var c=I(J().u,F());b=(null===b?null===c:b.c(c))?0:1;U();a=a.Xl;Ld();E();c=F();c=G(0,c);a=!(null===a?null===c:a.c(c));return(3+b|0)+(a?1:0)|0};e.$classData=x({N0:0},!1,"inrae.semantic_web.node.StrEnds$$anon$51",{N0:1,b:1,Oa:1,la:1});function EC(){}EC.prototype=new t;EC.prototype.constructor=EC;e=EC.prototype;e.oa=function(a,b){return uM(this,a,b)};e.na=function(){return U()}; -e.Ia=function(a,b){var c=Fg().db,d=b.am,f=a.q(-1);a.i(f.l((U(),"value"),-1));f=a.h();a.n(W(c,f,d),-1);c=U().sf;d=b.W;f=a.q(-1);a.i(f.l((U(),"negation"),-1));f=a.h();a.n(W(c,f,d),-1);c=U().G;d=b.Do;f=a.q(-1);a.i(f.l((U(),"idRef"),-1));f=a.h();a.n(W(c,f,d),-1);U();c=b.Zl;Kd();d=I(J().u,F());(null===c?null===d:c.c(d))||(c=U(),d=Je().ba,c=new IM(c,d),d=b.Zl,f=a.q(-1),a.i(f.l((U(),"children"),-1)),f=a.h(),a.n(W(c,f,d),-1));U();c=b.$l;Kd();E();d=F();d=G(0,d);(null===c?null===d:c.c(d))||(c=U(),d=U().G,f= -U().G,c=UN(c,d,f),b=b.$l,d=a.q(-1),a.i(d.l((U(),"decorations"),-1)),d=a.h(),a.n(W(c,d,b),-1))};e.Ga=function(a){U();var b=a.Zl;Kd();var c=I(J().u,F());b=(null===b?null===c:b.c(c))?0:1;U();a=a.$l;Kd();E();c=F();c=G(0,c);a=!(null===a?null===c:a.c(c));return(3+b|0)+(a?1:0)|0};e.$classData=x({X0:0},!1,"inrae.semantic_web.node.StrStarts$$anon$48",{X0:1,b:1,Oa:1,la:1});function JC(){}JC.prototype=new t;JC.prototype.constructor=JC;e=JC.prototype;e.oa=function(a,b){return uM(this,a,b)};e.na=function(){return U()}; -e.Ia=function(a,b){var c=Fg().db,d=b.fr,f=a.q(-1);a.i(f.l((U(),"start"),-1));f=a.h();a.n(W(c,f,d),-1);c=Fg().db;d=b.er;f=a.q(-1);a.i(f.l((U(),"length"),-1));f=a.h();a.n(W(c,f,d),-1);c=U().G;d=b.dr;f=a.q(-1);a.i(f.l((U(),"idRef"),-1));f=a.h();a.n(W(c,f,d),-1);U();c=b.Go;ce();d=I(J().u,F());(null===c?null===d:c.c(d))||(c=U(),d=Je().ba,c=new IM(c,d),d=b.Go,f=a.q(-1),a.i(f.l((U(),"children"),-1)),f=a.h(),a.n(W(c,f,d),-1));U();c=b.Ho;ce();E();d=F();d=G(0,d);(null===c?null===d:c.c(d))||(c=U(),d=U().G,f= -U().G,c=UN(c,d,f),b=b.Ho,d=a.q(-1),a.i(d.l((U(),"decorations"),-1)),d=a.h(),a.n(W(c,d,b),-1))};e.Ga=function(a){U();var b=a.Go;ce();var c=I(J().u,F());b=(null===b?null===c:b.c(c))?0:1;U();a=a.Ho;ce();E();c=F();c=G(0,c);a=!(null===a?null===c:a.c(c));return(3+b|0)+(a?1:0)|0};e.$classData=x({g1:0},!1,"inrae.semantic_web.node.SubStr$$anon$105",{g1:1,b:1,Oa:1,la:1});function OC(){}OC.prototype=new t;OC.prototype.constructor=OC;e=OC.prototype;e.oa=function(a,b){return uM(this,a,b)};e.na=function(){return U()}; -e.Ia=function(a,b){if(U(),b.lc!==(Me(),fH().g())){var c=U().G,d=b.lc,f=a.q(-1);a.i(f.l((U(),"idRef"),-1));f=a.h();a.n(W(c,f,d),-1)}c=Fg().db;d=b.ed;f=a.q(-1);a.i(f.l((U(),"term"),-1));f=a.h();a.n(W(c,f,d),-1);U();c=b.jc;Me();d=I(J().u,F());(null===c?null===d:c.c(d))||(c=U(),d=Je().ba,c=new IM(c,d),d=b.jc,f=a.q(-1),a.i(f.l((U(),"children"),-1)),f=a.h(),a.n(W(c,f,d),-1));U();c=b.kc;Me();E();d=F();d=G(0,d);(null===c?null===d:c.c(d))||(c=U(),d=U().G,f=U().G,c=UN(c,d,f),b=b.kc,d=a.q(-1),a.i(d.l((U(),"decorations"), --1)),d=a.h(),a.n(W(c,d,b),-1))};e.Ga=function(a){var b=(U(),a.lc!==(Me(),fH().g()))?1:0;U();var c=a.jc;Me();var d=I(J().u,F());c=(null===c?null===d:c.c(d))?0:1;U();a=a.kc;Me();E();d=F();d=G(0,d);a=!(null===a?null===d:a.c(d));return((1+b|0)+c|0)+(a?1:0)|0};e.$classData=x({p1:0},!1,"inrae.semantic_web.node.SubjectOf$$anon$9",{p1:1,b:1,Oa:1,la:1});function TC(){}TC.prototype=new t;TC.prototype.constructor=TC;e=TC.prototype;e.oa=function(a,b){return uM(this,a,b)};e.na=function(){return U()}; -e.Ia=function(a,b){var c=Fg().db,d=b.gm,f=a.q(-1);a.i(f.l((U(),"value"),-1));f=a.h();a.n(W(c,f,d),-1);c=U().sf;d=b.W;f=a.q(-1);a.i(f.l((U(),"negation"),-1));f=a.h();a.n(W(c,f,d),-1);c=U().G;d=b.Jo;f=a.q(-1);a.i(f.l((U(),"idRef"),-1));f=a.h();a.n(W(c,f,d),-1);U();c=b.em;Sd();d=I(J().u,F());(null===c?null===d:c.c(d))||(c=U(),d=Je().ba,c=new IM(c,d),d=b.em,f=a.q(-1),a.i(f.l((U(),"children"),-1)),f=a.h(),a.n(W(c,f,d),-1));U();c=b.fm;Sd();E();d=F();d=G(0,d);(null===c?null===d:c.c(d))||(c=U(),d=U().G,f= -U().G,c=UN(c,d,f),b=b.fm,d=a.q(-1),a.i(d.l((U(),"decorations"),-1)),d=a.h(),a.n(W(c,d,b),-1))};e.Ga=function(a){U();var b=a.em;Sd();var c=I(J().u,F());b=(null===b?null===c:b.c(c))?0:1;U();a=a.fm;Sd();E();c=F();c=G(0,c);a=!(null===a?null===c:a.c(c));return(3+b|0)+(a?1:0)|0};e.$classData=x({z1:0},!1,"inrae.semantic_web.node.Sup$$anon$66",{z1:1,b:1,Oa:1,la:1});function YC(){}YC.prototype=new t;YC.prototype.constructor=YC;e=YC.prototype;e.oa=function(a,b){return uM(this,a,b)};e.na=function(){return U()}; -e.Ia=function(a,b){var c=Fg().db,d=b.dm,f=a.q(-1);a.i(f.l((U(),"value"),-1));f=a.h();a.n(W(c,f,d),-1);c=U().sf;d=b.W;f=a.q(-1);a.i(f.l((U(),"negation"),-1));f=a.h();a.n(W(c,f,d),-1);c=U().G;d=b.Io;f=a.q(-1);a.i(f.l((U(),"idRef"),-1));f=a.h();a.n(W(c,f,d),-1);U();c=b.bm;Td();d=I(J().u,F());(null===c?null===d:c.c(d))||(c=U(),d=Je().ba,c=new IM(c,d),d=b.bm,f=a.q(-1),a.i(f.l((U(),"children"),-1)),f=a.h(),a.n(W(c,f,d),-1));U();c=b.cm;Td();E();d=F();d=G(0,d);(null===c?null===d:c.c(d))||(c=U(),d=U().G,f= -U().G,c=UN(c,d,f),b=b.cm,d=a.q(-1),a.i(d.l((U(),"decorations"),-1)),d=a.h(),a.n(W(c,d,b),-1))};e.Ga=function(a){U();var b=a.bm;Td();var c=I(J().u,F());b=(null===b?null===c:b.c(c))?0:1;U();a=a.cm;Td();E();c=F();c=G(0,c);a=!(null===a?null===c:a.c(c));return(3+b|0)+(a?1:0)|0};e.$classData=x({J1:0},!1,"inrae.semantic_web.node.SupEqual$$anon$69",{J1:1,b:1,Oa:1,la:1});function YN(a,b,c,d,f){a.lc=b;a.ed=c;a.jc=d;a.kc=f;le(a,b,d,f)}function zB(){this.kc=this.jc=this.ed=this.lc=this.S=this.Q=this.D=null} -zB.prototype=new yB;zB.prototype.constructor=zB;function ZN(){}ZN.prototype=zB.prototype;function kD(){}kD.prototype=new t;kD.prototype.constructor=kD;e=kD.prototype;e.oa=function(a,b){return uM(this,a,b)};e.na=function(){return U()}; -e.Ia=function(a,b){if(U(),b.D!==(je(),fH().g())){var c=U().G,d=b.D,f=a.q(-1);a.i(f.l((U(),"idRef"),-1));f=a.h();a.n(W(c,f,d),-1)}c=Je().ba;d=b.Wg;f=a.q(-1);a.i(f.l((U(),"s"),-1));f=a.h();a.n(W(c,f,d),-1);U();c=b.Wj;je();d=I(J().u,F());(null===c?null===d:c.c(d))||(c=U(),d=Je().ba,c=new IM(c,d),d=b.Wj,f=a.q(-1),a.i(f.l((U(),"children"),-1)),f=a.h(),a.n(W(c,f,d),-1));U();c=b.Ko;je();E();d=F();d=G(0,d);(null===c?null===d:c.c(d))||(c=U(),d=U().G,f=U().G,c=UN(c,d,f),b=b.Ko,d=a.q(-1),a.i(d.l((U(),"decorations"), --1)),d=a.h(),a.n(W(c,d,b),-1))};e.Ga=function(a){var b=(U(),a.D!==(je(),fH().g()))?1:0;U();var c=a.Wj;je();var d=I(J().u,F());c=(null===c?null===d:c.c(d))?0:1;U();a=a.Ko;je();E();d=F();d=G(0,d);a=!(null===a?null===d:a.c(d));return((1+b|0)+c|0)+(a?1:0)|0};e.$classData=x({S1:0},!1,"inrae.semantic_web.node.UnionBlock$$anon$27",{S1:1,b:1,Oa:1,la:1});function pD(){}pD.prototype=new t;pD.prototype.constructor=pD;e=pD.prototype;e.oa=function(a,b){return uM(this,a,b)};e.na=function(){return U()}; -e.Ia=function(a,b){var c=Fg().db,d=b.Xj,f=a.q(-1);a.i(f.l((U(),"term"),-1));f=a.h();a.n(W(c,f,d),-1);if(U(),b.D!==(Ce(),fH().g()))c=U().G,d=b.D,f=a.q(-1),a.i(f.l((U(),"idRef"),-1)),f=a.h(),a.n(W(c,f,d),-1);U();c=b.Q;Ce();d=I(J().u,F());(null===c?null===d:c.c(d))||(c=U(),d=Je().ba,c=new IM(c,d),d=b.Q,f=a.q(-1),a.i(f.l((U(),"children"),-1)),f=a.h(),a.n(W(c,f,d),-1));U();c=b.S;Ce();E();d=F();d=G(0,d);(null===c?null===d:c.c(d))||(c=U(),d=U().G,f=U().G,c=UN(c,d,f),b=b.S,d=a.q(-1),a.i(d.l((U(),"decorations"), --1)),d=a.h(),a.n(W(c,d,b),-1))};e.Ga=function(a){var b=(U(),a.D!==(Ce(),fH().g()))?1:0;U();var c=a.Q;Ce();var d=I(J().u,F());c=(null===c?null===d:c.c(d))?0:1;U();a=a.S;Ce();E();d=F();d=G(0,d);a=!(null===a?null===d:a.c(d));return((1+b|0)+c|0)+(a?1:0)|0};e.$classData=x({a2:0},!1,"inrae.semantic_web.node.Value$$anon$21",{a2:1,b:1,Oa:1,la:1});function uD(){}uD.prototype=new t;uD.prototype.constructor=uD;e=uD.prototype;e.oa=function(a,b){return uM(this,a,b)};e.na=function(){return U()}; -e.Ia=function(a,b){var c=U().sf,d=b.W,f=a.q(-1);a.i(f.l((U(),"negation"),-1));f=a.h();a.n(W(c,f,d),-1);c=U().G;d=b.Lo;f=a.q(-1);a.i(f.l((U(),"idRef"),-1));f=a.h();a.n(W(c,f,d),-1);U();c=b.hm;Fd();d=I(J().u,F());(null===c?null===d:c.c(d))||(c=U(),d=Je().ba,c=new IM(c,d),d=b.hm,f=a.q(-1),a.i(f.l((U(),"children"),-1)),f=a.h(),a.n(W(c,f,d),-1));U();c=b.im;Fd();E();d=F();d=G(0,d);(null===c?null===d:c.c(d))||(c=U(),d=U().G,f=U().G,c=UN(c,d,f),b=b.im,d=a.q(-1),a.i(d.l((U(),"decorations"),-1)),d=a.h(),a.n(W(c, -d,b),-1))};e.Ga=function(a){U();var b=a.hm;Fd();var c=I(J().u,F());b=(null===b?null===c:b.c(c))?0:1;U();a=a.im;Fd();E();c=F();c=G(0,c);a=!(null===a?null===c:a.c(c));return(2+b|0)+(a?1:0)|0};e.$classData=x({j2:0},!1,"inrae.semantic_web.node.isBlank$$anon$33",{j2:1,b:1,Oa:1,la:1});function zD(){}zD.prototype=new t;zD.prototype.constructor=zD;e=zD.prototype;e.oa=function(a,b){return uM(this,a,b)};e.na=function(){return U()}; -e.Ia=function(a,b){var c=U().sf,d=b.W,f=a.q(-1);a.i(f.l((U(),"negation"),-1));f=a.h();a.n(W(c,f,d),-1);c=U().G;d=b.Mo;f=a.q(-1);a.i(f.l((U(),"idRef"),-1));f=a.h();a.n(W(c,f,d),-1);U();c=b.jm;Gd();d=I(J().u,F());(null===c?null===d:c.c(d))||(c=U(),d=Je().ba,c=new IM(c,d),d=b.jm,f=a.q(-1),a.i(f.l((U(),"children"),-1)),f=a.h(),a.n(W(c,f,d),-1));U();c=b.km;Gd();E();d=F();d=G(0,d);(null===c?null===d:c.c(d))||(c=U(),d=U().G,f=U().G,c=UN(c,d,f),b=b.km,d=a.q(-1),a.i(d.l((U(),"decorations"),-1)),d=a.h(),a.n(W(c, -d,b),-1))};e.Ga=function(a){U();var b=a.jm;Gd();var c=I(J().u,F());b=(null===b?null===c:b.c(c))?0:1;U();a=a.km;Gd();E();c=F();c=G(0,c);a=!(null===a?null===c:a.c(c));return(2+b|0)+(a?1:0)|0};e.$classData=x({s2:0},!1,"inrae.semantic_web.node.isLiteral$$anon$36",{s2:1,b:1,Oa:1,la:1});function ED(){}ED.prototype=new t;ED.prototype.constructor=ED;e=ED.prototype;e.oa=function(a,b){return uM(this,a,b)};e.na=function(){return U()}; -e.Ia=function(a,b){var c=U().sf,d=b.W,f=a.q(-1);a.i(f.l((U(),"negation"),-1));f=a.h();a.n(W(c,f,d),-1);c=U().G;d=b.No;f=a.q(-1);a.i(f.l((U(),"idRef"),-1));f=a.h();a.n(W(c,f,d),-1);U();c=b.lm;Hd();d=I(J().u,F());(null===c?null===d:c.c(d))||(c=U(),d=Je().ba,c=new IM(c,d),d=b.lm,f=a.q(-1),a.i(f.l((U(),"children"),-1)),f=a.h(),a.n(W(c,f,d),-1));U();c=b.mm;Hd();E();d=F();d=G(0,d);(null===c?null===d:c.c(d))||(c=U(),d=U().G,f=U().G,c=UN(c,d,f),b=b.mm,d=a.q(-1),a.i(d.l((U(),"decorations"),-1)),d=a.h(),a.n(W(c, -d,b),-1))};e.Ga=function(a){U();var b=a.lm;Hd();var c=I(J().u,F());b=(null===b?null===c:b.c(c))?0:1;U();a=a.mm;Hd();E();c=F();c=G(0,c);a=!(null===a?null===c:a.c(c));return(2+b|0)+(a?1:0)|0};e.$classData=x({B2:0},!1,"inrae.semantic_web.node.isURI$$anon$39",{B2:1,b:1,Oa:1,la:1});function JD(){}JD.prototype=new t;JD.prototype.constructor=JD;e=JD.prototype;e.oa=function(a,b){return uM(this,a,b)};e.na=function(){return U()}; -e.Ia=function(a,b){var c=U().G;b=b.Oo;var d=a.q(-1);a.i(d.l((U(),"value"),-1));d=a.h();a.n(W(c,d,b),-1)};e.Ga=function(){return 1};e.$classData=x({L2:0},!1,"inrae.semantic_web.rdf.Anonymous$$anon$9",{L2:1,b:1,Oa:1,la:1});function OD(){}OD.prototype=new t;OD.prototype.constructor=OD;e=OD.prototype;e.oa=function(a,b){return uM(this,a,b)};e.na=function(){return U()};e.Ia=function(a,b){var c=U().G;b=b.Po;var d=a.q(-1);a.i(d.l((U(),"iri"),-1));d=a.h();a.n(W(c,d,b),-1)};e.Ga=function(){return 1}; -e.$classData=x({R2:0},!1,"inrae.semantic_web.rdf.IRI$$anon$3",{R2:1,b:1,Oa:1,la:1});function TD(){}TD.prototype=new t;TD.prototype.constructor=TD;e=TD.prototype;e.oa=function(a,b){return uM(this,a,b)};e.na=function(){return U()}; -e.Ia=function(a,b){var c=U().G,d=b.kr,f=a.q(-1);a.i(f.l((U(),"value"),-1));f=a.h();a.n(W(c,f,d),-1);U();c=b.pm;Tg();d=Dg().yd;(null===c?null===d:c.c(d))||(c=Dg().px,d=b.pm,f=a.q(-1),a.i(f.l((U(),"datatype"),-1)),f=a.h(),a.n(W(c,f,d),-1));if(U(),b.jr!==(Tg(),""))c=U().G,b=b.jr,d=a.q(-1),a.i(d.l((U(),"ta"),-1)),d=a.h(),a.n(W(c,d,b),-1)};e.Ga=function(a){U();var b=a.pm;Tg();var c=Dg().yd;return(1+((null===b?null===c:b.c(c))?0:1)|0)+((U(),a.jr!==(Tg(),""))?1:0)|0}; -e.$classData=x({Z2:0},!1,"inrae.semantic_web.rdf.Literal$$anon$15",{Z2:1,b:1,Oa:1,la:1});function YD(){}YD.prototype=new t;YD.prototype.constructor=YD;e=YD.prototype;e.oa=function(a,b){return uM(this,a,b)};e.na=function(){return U()};e.Ia=function(a,b){var c=U().G;b=b.Qo;var d=a.q(-1);a.i(d.l((U(),"value"),-1));d=a.h();a.n(W(c,d,b),-1)};e.Ga=function(){return 1};e.$classData=x({e3:0},!1,"inrae.semantic_web.rdf.PropertyPath$$anon$12",{e3:1,b:1,Oa:1,la:1});function cE(){}cE.prototype=new t; -cE.prototype.constructor=cE;e=cE.prototype;e.oa=function(a,b){return uM(this,a,b)};e.na=function(){return U()};e.Ia=function(a,b){var c=U().G;b=b.qg;var d=a.q(-1);a.i(d.l((U(),"name"),-1));d=a.h();a.n(W(c,d,b),-1)};e.Ga=function(){return 1};e.$classData=x({k3:0},!1,"inrae.semantic_web.rdf.QueryVariable$$anon$18",{k3:1,b:1,Oa:1,la:1});function hE(){}hE.prototype=new t;hE.prototype.constructor=hE;e=hE.prototype;e.oa=function(a,b){return uM(this,a,b)};e.na=function(){return U()}; -e.Ia=function(a,b){var c=U().G,d=b.rx,f=a.q(-1);a.i(f.l((U(),"localNameUser"),-1));f=a.h();a.n(W(c,f,d),-1);if(U(),b.lr!==(Dg(),""))c=U().G,b=b.lr,d=a.q(-1),a.i(d.l((U(),"nameSpaceUser"),-1)),d=a.h(),a.n(W(c,d,b),-1)};e.Ga=function(a){return 1+((U(),a.lr!==(Dg(),""))?1:0)|0};e.$classData=x({t3:0},!1,"inrae.semantic_web.rdf.URI$$anon$6",{t3:1,b:1,Oa:1,la:1});function $N(){this.Vt=this.Ut=null}$N.prototype=new t;$N.prototype.constructor=$N;function aO(){}e=aO.prototype=$N.prototype;e.ev=function(){return this.Ut}; -e.dv=function(a){this.Ut=a};e.rE=function(){return this.Vt};e.qE=function(a){this.Vt=a};e.rQ=function(a){id(this,new zy(a.vq))};function FE(a){this.P4=a}FE.prototype=new t;FE.prototype.constructor=FE;FE.prototype.vv=function(a){return(0,this.P4)(a)};FE.prototype.$classData=x({O4:0},!1,"io.lemonlabs.uri.typesafe.QueryKeyInstances$$Lambda$1",{O4:1,b:1,F4:1,d:1});function bO(a){this.S4=a}bO.prototype=new t;bO.prototype.constructor=bO;bO.prototype.vv=function(a){return(0,this.S4)(a)}; -bO.prototype.$classData=x({R4:0},!1,"io.lemonlabs.uri.typesafe.QueryKeyInstances1$$anon$3$$Lambda$1",{R4:1,b:1,F4:1,d:1});function cO(){}cO.prototype=new t;cO.prototype.constructor=cO;cO.prototype.$classData=x({T4:0},!1,"io.lemonlabs.uri.typesafe.QueryKeyValue$",{T4:1,b:1,lna:1,d:1});var dO;function Ph(a,b,c,d){this.V4=a;this.X4=b;this.W4=c;this.Y4=d}Ph.prototype=new t;Ph.prototype.constructor=Ph;Ph.prototype.vv=function(a){eO();return this.V4.vv(this.X4.t(a))};Ph.prototype.Bs=function(a){fO();return this.W4.Bs(this.Y4.t(a))}; -Ph.prototype.$classData=x({U4:0},!1,"io.lemonlabs.uri.typesafe.QueryKeyValue$$anon$7",{U4:1,b:1,kna:1,d:1});function KE(a){this.i5=a}KE.prototype=new t;KE.prototype.constructor=KE;KE.prototype.Bs=function(a){return(0,this.i5)(a)};KE.prototype.$classData=x({h5:0},!1,"io.lemonlabs.uri.typesafe.QueryValueInstances1$$Lambda$1",{h5:1,b:1,nN:1,d:1});function NE(a){this.k5=a}NE.prototype=new t;NE.prototype.constructor=NE;NE.prototype.Bs=function(a){return(0,this.k5)(a)}; -NE.prototype.$classData=x({j5:0},!1,"io.lemonlabs.uri.typesafe.QueryValueInstances1$$Lambda$2",{j5:1,b:1,nN:1,d:1});function gO(a){this.n5=a}gO.prototype=new t;gO.prototype.constructor=gO;gO.prototype.Bs=function(a){return(0,this.n5)(a)};gO.prototype.$classData=x({m5:0},!1,"io.lemonlabs.uri.typesafe.QueryValueInstances2$$anon$6$$Lambda$1",{m5:1,b:1,nN:1,d:1});function hO(a,b){this.pN=this.oN=null;if(null===a)throw K(L(),null);this.oN=a;this.pN=b}hO.prototype=new t;hO.prototype.constructor=hO; -hO.prototype.Ela=function(a){return OE(this.oN,a,this.pN)};hO.prototype.$classData=x({t5:0},!1,"io.lemonlabs.uri.typesafe.TraversableParamsInstances$$anonfun$seqTraversableParams$3",{t5:1,b:1,o5:1,d:1});x({v5:0},!1,"io.lemonlabs.uri.typesafe.TraversableParamsInstances1$$anon$12$$anonfun$contramap$4",{v5:1,b:1,o5:1,d:1});var Da=x({Zaa:0},!1,"java.lang.Boolean",{Zaa:1,b:1,d:1,ob:1},a=>"boolean"===typeof a),Ga=x({aba:0},!1,"java.lang.Character",{aba:1,b:1,d:1,ob:1},a=>a instanceof oa); -function iO(){this.jj=null;this.kj=0}iO.prototype=new t;iO.prototype.constructor=iO;function jO(){}jO.prototype=iO.prototype;iO.prototype.g=function(){return this.jj};iO.prototype.c=function(a){return this===a};iO.prototype.p=function(){return cb(this)};function wg(a,b){yF(a,b,null);return a}class xg extends Ru{}xg.prototype.$classData=x({ez:0},!1,"java.lang.Error",{ez:1,Ka:1,b:1,d:1});function og(a,b){yF(a,b,null);return a}class pg extends Ru{} -pg.prototype.$classData=x({Za:0},!1,"java.lang.Exception",{Za:1,Ka:1,b:1,d:1});function kO(){this.Ai=this.P=this.ma=this.rg=0;this.Ve=null;this.Uf=0}kO.prototype=new qk;kO.prototype.constructor=kO;function lO(){}lO.prototype=kO.prototype;kO.prototype.p=function(){for(var a=this.P,b=this.ma,c=-547316498,d=a;d!==b;){var f=uv(),g=this.Ve.a[this.Uf+d|0];c=f.j(c,ku(S(),g));d=1+d|0}return uv().ca(c,b-a|0)}; -kO.prototype.c=function(a){if(a instanceof kO){a:if(this===a)a=0;else{for(var b=this.P,c=this.ma-b|0,d=a.P,f=a.ma-d|0,g=c>>0)).toString(16),b="00000000".substring(a.length|0),c=(+((this.ov>>>16|0)>>>0)).toString(16),d="0000".substring(c.length|0),f=(+((65535&this.ov)>>>0)).toString(16),g="0000".substring(f.length|0),h=(+((this.pv>>>16|0)>>>0)).toString(16),l="0000".substring(h.length|0),n=(+((65535&this.pv)>>>0)).toString(16),r="0000".substring(n.length|0),u=(+(this.Az>>>0)).toString(16);return""+b+a+"-"+(""+d+c)+"-"+(""+g+f)+"-"+(""+l+h)+"-"+(""+r+n)+(""+"00000000".substring(u.length| -0)+u)};hH.prototype.p=function(){return this.zz^this.ov^this.pv^this.Az};hH.prototype.c=function(a){return a instanceof hH?this.zz===a.zz&&this.ov===a.ov&&this.pv===a.pv&&this.Az===a.Az:!1};hH.prototype.$classData=x({Gca:0},!1,"java.util.UUID",{Gca:1,b:1,d:1,ob:1});function wO(a){this.ME=this.qv=null;jH(this,a)}wO.prototype=new oH;wO.prototype.constructor=wO;wO.prototype.Zu=function(a){return a.Ag}; -wO.prototype.$classData=x({Nca:0},!1,"java.util.concurrent.ConcurrentHashMap$InnerHashMap$KeyIterator",{Nca:1,Mca:1,b:1,wz:1});function xO(a){this.ME=this.qv=null;jH(this,a)}xO.prototype=new oH;xO.prototype.constructor=xO;xO.prototype.Zu=function(a){return a};xO.prototype.$classData=x({Oca:0},!1,"java.util.concurrent.ConcurrentHashMap$InnerHashMap$NodeIterator",{Oca:1,Mca:1,b:1,wz:1}); -function pn(a){this.ju=a;var b=hm();dm();var c=tJ(),d=a.a.length;16Pl(hm(),c,l)&&b.push(g?l:q(l));h=1+h|0}c=f===m(zb)?m(Ea):f===m(bq)||f===m(cq)?m(xb):f;b=new pn(y(c.Ld).ll(b))}b=b.ju;dm();if(0<=a.L())c=a.L(),c=new jb(c),a.Lb(c,0,2147483647),a=c;else{c=[]; -for(a=a.w();a.v();)d=a.s(),c.push(Ma(d));a=new jb(new Uint16Array(c))}dm();xI();c=b.a.length+a.a.length|0;Sh(m(Cb),Uh(sa(b)))?c=Qh(m(Cb))?uI(0,b,c):bm(hm(),b,c,m(y(Cb))):(c=new jb(c),tI(xI(),b,0,c,0,b.a.length));tI(xI(),a,0,c,b.a.length,a.a.length);return new pn(c)};e.g=function(){var a=this.ju;return"CharPredicate.ArrayBased("+wF(oq(),a,0,a.a.length)+")"};e.t=function(a){return this.gj(Ma(a))};e.$classData=x({D6:0},!1,"org.parboiled2.CharPredicate$ArrayBased",{D6:1,SC:1,b:1,da:1}); -function on(a){this.Dr=a}on.prototype=new OH;on.prototype.constructor=on;e=on.prototype;e.gj=function(a){return this.Dr.Sa(q(a))};e.pg=function(a){var b=Ih().hk;return(null===b?null===a:b.c(a))?this:PH(this,a)};e.kt=function(a){if(a.k())return this;var b=Ih();a=[Zm($m(),a)];return this.pg(Kh(b,qc(new rc,a)))};e.g=function(){return"CharPredicate.RangeBased(start \x3d "+this.Dr.Ze+", end \x3d "+this.Dr.ki+", step \x3d "+(Ma(this.Dr.Re)+", inclusive \x3d "+this.Dr.Wp)+")"};e.t=function(a){return this.Dr.Sa(q(Ma(a)))}; -e.$classData=x({G6:0},!1,"org.parboiled2.CharPredicate$RangeBased",{G6:1,SC:1,b:1,da:1});function AO(a){this.Ux=a}AO.prototype=new VH;AO.prototype.constructor=AO;AO.prototype.Lf=function(a){return 65535&(this.Ux.charCodeAt(a)|0)};AO.prototype.y=function(){return this.Ux.length|0};function BO(a,b,c){var d=a.Ux.length|0;return a.Ux.substring(b,cb)return 1;var c=a.L();if(0<=c)return c===b?0:cf=>d.vf(f))(a)))}function Kp(a){var b=a.w();b=new dP(b,b,2,1);return new Lp(b,new C((c=>d=>c.vf(d))(a)))}function eP(a){if(a.k())throw CF();return a.Qc(1)} -function fP(a,b){var c=a.Fb();a=gP(b)?new hP(a,b):a.w().bh(new Tm(((d,f)=>()=>f.w())(a,b)));return c.sb(a)}function iP(a,b,c){a.hA=b;a.AF=c;return a}function jP(){this.AF=this.hA=null}jP.prototype=new TI;jP.prototype.constructor=jP;function kP(){}kP.prototype=jP.prototype;function Mm(a){return new lP(a.hA,a.AF,!1)}jP.prototype.Ea=function(a){return this.hA.Fb().sb(mP(new nP,Mm(this),a))};jP.prototype.Ba=function(a){Mm(this).Ba(a)}; -jP.prototype.$classData=x({bR:0},!1,"scala.collection.IterableOps$WithFilter",{bR:1,YF:1,b:1,d:1});function oP(a,b,c){var d=0()=>d.w())(a,b)));a=DP(xt(),b);return EP(new FP,a)} -AP.prototype.gb=function(){var a=new GP;return new HP(a,new C((()=>b=>BP(IP(),b))(this)))};AP.prototype.mc=function(){JP||(JP=new KP);return JP};AP.prototype.sb=function(a){return BP(this,a)};AP.prototype.$classData=x({Oga:0},!1,"scala.collection.View$",{Oga:1,b:1,Be:1,d:1});var LP;function IP(){LP||(LP=new AP);return LP}function Oq(a,b,c,d,f,g){this.ub=a;this.Rb=b;this.Bd=c;this.zf=d;this.ce=f;this.gg=g}Oq.prototype=new $I;Oq.prototype.constructor=Oq;e=Oq.prototype;e.$=function(){return this.ce}; -e.Jc=function(){return this.gg};e.$f=function(a){return this.Bd.a[a<<1]};e.ag=function(a){return this.Bd.a[1+(a<<1)|0]};e.lp=function(a){return z(new B,this.Bd.a[a<<1],this.Bd.a[1+(a<<1)|0])};e.Zb=function(a){return this.zf.a[a]};e.yg=function(a){return this.Bd.a[(-1+this.Bd.a.length|0)-a|0]}; -e.ZD=function(a,b,c,d){var f=Yq(uq(),c,d),g=Zq(uq(),f);if(0!==(this.ub&g)){if(b=br(uq(),this.ub,f,g),N(O(),a,this.$f(b)))return this.ag(b)}else if(0!==(this.Rb&g))return this.yg(br(uq(),this.Rb,f,g)).ZD(a,b,c,5+d|0);throw MP();};e.Wy=function(a,b,c,d){var f=Yq(uq(),c,d),g=Zq(uq(),f);return 0!==(this.ub&g)?(b=br(uq(),this.ub,f,g),c=this.$f(b),N(O(),a,c)?new dd(this.ag(b)):H()):0!==(this.Rb&g)?(f=br(uq(),this.Rb,f,g),this.yg(f).Wy(a,b,c,5+d|0)):H()}; -e.nE=function(a,b,c,d,f){var g=Yq(uq(),c,d),h=Zq(uq(),g);return 0!==(this.ub&h)?(b=br(uq(),this.ub,g,h),c=this.$f(b),N(O(),a,c)?this.ag(b):gq(f)):0!==(this.Rb&h)?(g=br(uq(),this.Rb,g,h),this.yg(g).nE(a,b,c,5+d|0,f)):gq(f)};e.Ry=function(a,b,c,d){var f=Yq(uq(),c,d),g=Zq(uq(),f);return 0!==(this.ub&g)?(c=br(uq(),this.ub,f,g),this.zf.a[c]===b&&N(O(),a,this.$f(c))):0!==(this.Rb&g)&&this.yg(br(uq(),this.Rb,f,g)).Ry(a,b,c,5+d|0)}; -function NP(a,b,c,d,f,g,h){var l=Yq(uq(),f,g),n=Zq(uq(),l);if(0!==(a.ub&n)){var r=br(uq(),a.ub,l,n);l=a.$f(r);var u=a.Zb(r);if(u===d&&N(O(),l,b))return h?(f=a.ag(r),Object.is(l,b)&&Object.is(f,c)||(n=a.Zf(n)<<1,b=a.Bd,f=new v(b.a.length),b.U(0,f,0,b.a.length),f.a[1+n|0]=c,a=new Oq(a.ub,a.Rb,f,a.zf,a.ce,a.gg)),a):a;r=a.ag(r);h=Qp(Sp(),u);c=OP(a,l,r,u,h,b,c,d,f,5+g|0);f=a.Zf(n);d=f<<1;g=(-2+a.Bd.a.length|0)-a.tj(n)|0;l=a.Bd;b=new v(-1+l.a.length|0);l.U(0,b,0,d);l.U(2+d|0,b,d,g-d|0);b.a[g]=c;l.U(2+g| -0,b,1+g|0,-2+(l.a.length-g|0)|0);f=Uq(a.zf,f);return new Oq(a.ub^n,a.Rb|n,b,f,(-1+a.ce|0)+c.$()|0,(a.gg-h|0)+c.Jc()|0)}if(0!==(a.Rb&n))return l=br(uq(),a.Rb,l,n),l=a.yg(l),c=l.wS(b,c,d,f,5+g|0,h),c===l?a:PP(a,n,l,c);g=a.Zf(n);l=g<<1;u=a.Bd;h=new v(2+u.a.length|0);u.U(0,h,0,l);h.a[l]=b;h.a[1+l|0]=c;u.U(l,h,2+l|0,u.a.length-l|0);c=Vq(a.zf,g,d);return new Oq(a.ub|n,a.Rb,h,c,1+a.ce|0,a.gg+f|0)} -function QP(a,b,c,d,f){var g=Yq(uq(),d,f),h=Zq(uq(),g);if(0!==(a.ub&h)){if(g=br(uq(),a.ub,g,h),c=a.$f(g),N(O(),c,b)){b=a.ub;2===ar(Hq(),b)?(b=a.Rb,b=0===ar(Hq(),b)):b=!1;if(b)return h=0===f?a.ub^h:Zq(uq(),Yq(uq(),d,0)),0===g?new Oq(h,0,new v([a.$f(1),a.ag(1)]),new ob(new Int32Array([a.zf.a[1]])),1,Qp(Sp(),a.Zb(1))):new Oq(h,0,new v([a.$f(0),a.ag(0)]),new ob(new Int32Array([a.zf.a[0]])),1,Qp(Sp(),a.Zb(0)));f=a.Zf(h);b=f<<1;c=a.Bd;g=new v(-2+c.a.length|0);c.U(0,g,0,b);c.U(2+b|0,g,b,-2+(c.a.length-b| -0)|0);f=Uq(a.zf,f);return new Oq(a.ub^h,a.Rb,g,f,-1+a.ce|0,a.gg-d|0)}}else if(0!==(a.Rb&h)){g=br(uq(),a.Rb,g,h);g=a.yg(g);d=g.uQ(b,c,d,5+f|0);if(d===g)return a;f=d.$();if(1===f)if(a.ce===g.$())a=d;else{b=(-1+a.Bd.a.length|0)-a.tj(h)|0;c=a.Zf(h);var l=c<<1,n=d.$f(0),r=d.ag(0),u=a.Bd;f=new v(1+u.a.length|0);u.U(0,f,0,l);f.a[l]=n;f.a[1+l|0]=r;u.U(l,f,2+l|0,b-l|0);u.U(1+b|0,f,2+b|0,-1+(u.a.length-b|0)|0);b=Vq(a.zf,c,d.Zb(0));a=new Oq(a.ub|h,a.Rb^h,f,b,1+(a.ce-g.$()|0)|0,(a.gg-g.Jc()|0)+d.Jc()|0)}else a= -1h=>N(O(),h.ib,g))(this,a)),!0);if(1===a.y()){d=a.V(0);if(null===d)throw new D(d);a=d.ib;d=d.Va;return new Oq(Zq(uq(),Yq(uq(),c,0)),0,new v([a,d]),new ob(new Int32Array([b])),1,c)}return new RP(b,c,a)}return this};e.bv=function(){return!1};e.uv=function(){return 0};e.yg=function(){throw lu(new mu,"No sub-nodes present in hash-collision leaf node.");};e.ms=function(){return!0};e.As=function(){return this.Ed.y()};e.$f=function(a){return this.Ed.V(a).ib}; -e.ag=function(a){return this.Ed.V(a).Va};e.lp=function(a){return this.Ed.V(a)};e.Zb=function(){return this.bw};e.Ba=function(a){this.Ed.Ba(a)};e.zh=function(a){this.Ed.Ba(new C(((b,c)=>d=>{if(null!==d)return c.Oe(d.ib,d.Va);throw new D(d);})(this,a)))};e.lE=function(a){for(var b=this.Ed.w();b.v();){var c=b.s(),d=a,f=c.ib;c=c.Va;var g=this.bw;(0,d.mS)(f,c,g)}}; -e.c=function(a){if(a instanceof RP){if(this===a)return!0;if(this.Cj===a.Cj&&this.Ed.y()===a.Ed.y()){for(var b=this.Ed.w();b.v();){var c=b.s();if(null===c)throw new D(c);var d=c.Va;c=jQ(a,c.ib);if(0>c||!N(O(),d,a.Ed.V(c).Va))return!1}return!0}}return!1}; -e.tP=function(a,b){a=kQ(this.Ed,a,b);b=a.y();if(0===b)return Pq().Ts;if(1===b){b=a.R();if(null===b)throw new D(b);a=b.ib;b=b.Va;return new Oq(Zq(uq(),Yq(uq(),this.Cj,0)),0,new v([a,b]),new ob(new Int32Array([this.bw])),1,this.Cj)}return b===this.Ed.y()?this:new RP(this.bw,this.Cj,a)};e.p=function(){throw TP("Trie nodes do not support hashing.");};e.Jc=function(){return k(this.Ed.y(),this.Cj)};e.pP=function(){return new RP(this.bw,this.Cj,this.Ed)};e.av=function(a){return this.yg(a)}; -e.$classData=x({Hha:0},!1,"scala.collection.immutable.HashCollisionMapNode",{Hha:1,xia:1,jw:1,b:1});function fQ(a,b,c){this.Ps=a;this.Rk=b;this.me=c;E();if(!(2<=this.me.y()))throw fm("requirement failed");}fQ.prototype=new DJ;fQ.prototype.constructor=fQ;e=fQ.prototype;e.Wu=function(a,b,c){return this.Rk===c?lQ(this.me,a):!1};e.Dw=function(a,b,c,d){return this.Wu(a,b,c,d)?this:new fQ(b,c,this.me.gf(a))}; -e.vQ=function(a,b,c,d){return this.Wu(a,b,c,d)?(a=kQ(this.me,new C(((f,g)=>h=>N(O(),h,g))(this,a)),!0),1===a.y()?new er(Zq(uq(),Yq(uq(),c,0)),0,new v([a.V(0)]),new ob(new Int32Array([b])),1,c):new fQ(b,c,a)):this};e.bv=function(){return!1};e.uv=function(){return 0};e.wf=function(){throw lu(new mu,"No sub-nodes present in hash-collision leaf node.");};e.ms=function(){return!0};e.As=function(){return this.me.y()};e.fd=function(a){return this.me.V(a)};e.Zb=function(){return this.Ps};e.$=function(){return this.me.y()}; -e.Ba=function(a){for(var b=this.me.w();b.v();)a.t(b.s())};e.Jc=function(){return k(this.me.y(),this.Rk)};e.uP=function(a,b){a=kQ(this.me,a,b);b=a.y();return 0===b?fr().aq:1===b?new er(Zq(uq(),Yq(uq(),this.Rk,0)),0,new v([a.R()]),new ob(new Int32Array([this.Ps])),1,this.Rk):a.y()===this.me.y()?this:new fQ(this.Ps,this.Rk,a)};e.c=function(a){if(a instanceof fQ){if(this===a)return!0;if(this.Rk===a.Rk&&this.me.y()===a.me.y()){a=a.me;for(var b=!0,c=this.me.w();b&&c.v();)b=c.s(),b=lQ(a,b);return b}}return!1}; -e.p=function(){throw TP("Trie nodes do not support hashing.");};e.nP=function(a){if(a instanceof fQ){if(a===this)return this;var b=null;for(a=a.me.w();a.v();){var c=a.s();lQ(this.me,c)||(null===b&&(b=new mQ,nQ(b,this.me)),oQ(b,c))}return null===b?this:new fQ(this.Ps,this.Rk,b.Dg())}if(a instanceof er)throw TP("Cannot concatenate a HashCollisionSetNode with a BitmapIndexedSetNode");throw new D(a);};e.kE=function(a){for(var b=this.me.w();b.v();){var c=b.s();a.Oe(c,this.Ps)}}; -e.qP=function(){return new fQ(this.Ps,this.Rk,this.me)};e.av=function(a){return this.wf(a)};e.$classData=x({Iha:0},!1,"scala.collection.immutable.HashCollisionSetNode",{Iha:1,cja:1,jw:1,b:1});function pQ(){this.cw=null;qQ=this;var a=Pq();this.cw=new rQ(a.Ts)}pQ.prototype=new t;pQ.prototype.constructor=pQ;e=pQ.prototype;e.hf=function(a){return sQ(a)};function sQ(a){return a instanceof rQ?a:tQ(uQ(new vQ,a))}e.gb=function(){return new vQ};e.sb=function(a){return sQ(a)};e.mc=function(){return this.cw}; -e.$classData=x({Kha:0},!1,"scala.collection.immutable.HashMap$",{Kha:1,b:1,Rv:1,d:1});var qQ;function wQ(){qQ||(qQ=new pQ);return qQ}function xQ(){this.Qs=null;yQ=this;var a=fr();this.Qs=zQ(new AQ,a.aq)}xQ.prototype=new t;xQ.prototype.constructor=xQ;xQ.prototype.gb=function(){return new BQ};xQ.prototype.sb=function(a){return a instanceof AQ?a:0===a.L()?this.Qs:CQ(DQ(new BQ,a))};xQ.prototype.mc=function(){return this.Qs}; -xQ.prototype.$classData=x({Oha:0},!1,"scala.collection.immutable.HashSet$",{Oha:1,b:1,Be:1,d:1});var yQ;function EQ(){yQ||(yQ=new xQ);return yQ}function FQ(a,b){this.dia=a;this.eia=b}FQ.prototype=new t;FQ.prototype.constructor=FQ;FQ.prototype.R=function(){return this.dia};FQ.prototype.Oc=function(){return this.eia};FQ.prototype.$classData=x({cia:0},!1,"scala.collection.immutable.LazyList$State$Cons",{cia:1,b:1,bia:1,d:1});function GQ(){}GQ.prototype=new t;GQ.prototype.constructor=GQ; -GQ.prototype.op=function(){throw qp("head of empty lazy list");};GQ.prototype.Oc=function(){throw TP("tail of empty lazy list");};GQ.prototype.R=function(){this.op()};GQ.prototype.$classData=x({fia:0},!1,"scala.collection.immutable.LazyList$State$Empty$",{fia:1,b:1,bia:1,d:1});var HQ;function IQ(){HQ||(HQ=new GQ);return HQ}function JQ(a,b){this.LR=null;this.LR=KQ(a,b)}JQ.prototype=new TI;JQ.prototype.constructor=JQ;JQ.prototype.Ba=function(a){this.LR.Ba(a)}; -JQ.prototype.$classData=x({gia:0},!1,"scala.collection.immutable.LazyList$WithFilter",{gia:1,YF:1,b:1,d:1});function LQ(){}LQ.prototype=new t;LQ.prototype.constructor=LQ;e=LQ.prototype;e.hf=function(a){return G(0,a)};function G(a,b){return Gr(b)&&b.k()?MQ():b&&b.$classData&&b.$classData.Eb.Pp?b:NQ(OQ(new PQ,b))}e.gb=function(){return new PQ};e.sb=function(a){return G(0,a)};e.mc=function(){return MQ()};e.$classData=x({kia:0},!1,"scala.collection.immutable.Map$",{kia:1,b:1,Rv:1,d:1});var QQ; -function fJ(){QQ||(QQ=new LQ);return QQ}function RQ(){}RQ.prototype=new t;RQ.prototype.constructor=RQ;function DE(a,b){return b&&b.$classData&&b.$classData.Eb.tpa?SQ(TQ(new UQ,b)):0===b.L()?VQ():b&&b.$classData&&b.$classData.Eb.$s?b:SQ(TQ(new UQ,b))}RQ.prototype.gb=function(){return new UQ};RQ.prototype.sb=function(a){return DE(0,a)};RQ.prototype.mc=function(){return VQ()};RQ.prototype.$classData=x({Ria:0},!1,"scala.collection.immutable.Set$",{Ria:1,b:1,Be:1,d:1});var WQ; -function HO(){WQ||(WQ=new RQ);return WQ}function XQ(a,b){this.WR=null;this.lG=!1;this.lja=b;this.XR=a}XQ.prototype=new TI;XQ.prototype.constructor=XQ;XQ.prototype.Ba=function(a){if(!this.lG&&!this.lG){var b=YQ(this.XR,this.lja,!1);this.XR=null;this.WR=b;this.lG=!0}this.WR.Ba(a)};XQ.prototype.$classData=x({kja:0},!1,"scala.collection.immutable.Stream$WithFilter",{kja:1,YF:1,b:1,d:1});function ZQ(){}ZQ.prototype=new t;ZQ.prototype.constructor=ZQ;e=ZQ.prototype;e.hf=function(a){return $Q(a)}; -function $Q(a){var b=a.L();return aR(bR(new cR,0()=>gq(c))(b)}function my(a,b){return(c=>d=>c.t(d))(b)}function HR(a,b){return new C(((c,d)=>f=>d(f))(a,b))} -GR.prototype.$classData=x({Lka:0},!1,"scala.scalajs.js.Any$",{Lka:1,b:1,Apa:1,Bpa:1});var IR;function ny(){IR||(IR=new GR);return IR}function Tm(a){this.Xka=a}Tm.prototype=new DK;Tm.prototype.constructor=Tm;function gq(a){return(0,a.Xka)()}Tm.prototype.$classData=x({Wka:0},!1,"scala.scalajs.runtime.AnonFunction0",{Wka:1,Cpa:1,b:1,Fla:1});function C(a){this.Zka=a}C.prototype=new FK;C.prototype.constructor=C;C.prototype.t=function(a){return(0,this.Zka)(a)}; -C.prototype.$classData=x({Yka:0},!1,"scala.scalajs.runtime.AnonFunction1",{Yka:1,TA:1,b:1,da:1});function gn(a){this.ala=a}gn.prototype=new HK;gn.prototype.constructor=gn;gn.prototype.Oe=function(a,b){return(0,this.ala)(a,b)};gn.prototype.$classData=x({$ka:0},!1,"scala.scalajs.runtime.AnonFunction2",{$ka:1,nS:1,b:1,fB:1});function JR(a){this.mS=a}JR.prototype=new JK;JR.prototype.constructor=JR;JR.prototype.$classData=x({bla:0},!1,"scala.scalajs.runtime.AnonFunction3",{bla:1,Dpa:1,b:1,Gla:1}); -x({cla:0},!1,"scala.scalajs.runtime.AnonFunction4",{cla:1,Epa:1,b:1,Hla:1});function KR(a,b,c){this.VN=this.aD=null;this.Y7=b;if(null===a)throw K(L(),null);this.VN=a;this.aD=c.gb()}KR.prototype=new t;KR.prototype.constructor=KR;e=KR.prototype;e.zd=function(){return!1};e.n=function(a){this.aD.Wa(a)};e.aa=function(){return this.Y7.t(this.aD.yb())};e.h=function(){return this.VN};e.$classData=x({X7:0},!1,"ujson.AstTransformer$AstArrVisitor",{X7:1,b:1,nk:1,pa:1}); -function LR(a,b,c){this.WN=this.cD=this.bD=null;this.$7=b;if(null===a)throw K(L(),null);this.WN=a;this.bD=null;this.cD=c.gb()}LR.prototype=new t;LR.prototype.constructor=LR;e=LR.prototype;e.zd=function(){return!0};e.i=function(a){this.bD=Ua(a)};e.n=function(a){var b=this.cD;a=z(new B,this.bD,a);b.Wa(a)};e.aa=function(){return this.$7.t(this.cD.yb())};e.q=function(){return MR()};e.h=function(){return this.WN};e.$classData=x({Z7:0},!1,"ujson.AstTransformer$AstObjVisitor",{Z7:1,b:1,xa:1,pa:1}); -function NR(){this.Ci=null;this.ou=0;this.dD=!1;this.vc=null;this.Yh=0;this.Am=!1}NR.prototype=new t;NR.prototype.constructor=NR;function OR(){}e=OR.prototype=NR.prototype;e.cd=function(a,b){return PR(this,a,b)};e.sc=function(a,b){return PR(this,a,b)};e.dd=function(a,b){return JL(this,a,b)};e.nd=function(a,b){return KL(this,a,b)};e.kd=function(a,b,c,d){return LL(this,a,b,c,d)};e.md=function(a,b,c,d,f){return ML(this,a,b,c,d,f)}; -e.ld=function(a){a=String.fromCharCode(a);return null===a?QR(this):RR(this,a)};function SR(a){var b=a.vc;b.Kf>(0===a.Yh?0:1E3)&&(a.Ci.HG(b.Zg,0,b.Kf),b.Kf=0)}function TR(a){a.Am&&(a.Am=!1,lw(a.vc,44),UR(a))}e.vb=function(){return new VR(this)};e.Z=function(){return new WR(this)};function QR(a){TR(a);iw(a.vc,4);jw(a.vc,110);jw(a.vc,117);jw(a.vc,108);jw(a.vc,108);SR(a);return a.Ci} -function YR(a,b){TR(a);iw(a.vc,Ra(b));for(var c=0,d=Ra(b);cg=>"$type"===Ua(g.ib))(this))).Ja().Va,d=Ua(c.ap),f=this.rD.js(d);if(null===f)throw new DS("invalid tag for tagged object: "+d,c.Ah(),null);c=f.Z(-1,-1);b.$o.Ba(new C(((g,h)=>l=>{if(null===l)throw new D(l);var n=l.Va;l=Ua(l.ib);if("$type"!==l){var r=h.q(-1);h.i(r.l(l,-1));h.n(xL(FL(),n,h.h()),-1)}})(this,c)));return c.aa(a)}; -e.$classData=x({k9:0},!1,"upickle.AttributeTagged$$anon$4",{k9:1,b:1,xa:1,pa:1});function aM(){}aM.prototype=new t;aM.prototype.constructor=aM;e=aM.prototype;e.zd=function(){return!1};e.aa=function(){};e.n=function(){};e.h=function(){return dM()};e.$classData=x({r9:0},!1,"upickle.core.NoOpVisitor$$anon$1",{r9:1,b:1,nk:1,pa:1});function bM(){}bM.prototype=new t;bM.prototype.constructor=bM;e=bM.prototype;e.zd=function(){return!0};e.i=function(){};e.aa=function(){};e.n=function(){};e.q=function(){return dM()}; -e.h=function(){return dM()};e.$classData=x({s9:0},!1,"upickle.core.NoOpVisitor$$anon$2",{s9:1,b:1,xa:1,pa:1});function ES(){}ES.prototype=new t;ES.prototype.constructor=ES;e=ES.prototype;e.dc=function(){return null};e.tc=function(){return eM(this)};e.rc=function(){return fM(this)};e.Ob=function(){return hM(this)};e.Z=function(){return iM(this)};e.vb=function(){return jM(this)};e.cc=function(){return kM(this)};e.cd=function(){return lM(this)};e.sc=function(){return mM(this)};e.dd=function(){return nM(this)}; -e.nd=function(){return oM(this)};e.ld=function(){return pM(this)};e.kd=function(){return qM(this)};e.md=function(){return rM(this)};e.nc=function(){return"expected string"};e.l=function(a){return a};e.$classData=x({u9:0},!1,"upickle.core.StringVisitor$",{u9:1,b:1,qa:1,ha:1});var FS;function MR(){FS||(FS=new ES);return FS}function Qv(a,b,c,d){a.tD=b;a.bp=c;a.Cm=d;a.ze=b;d.Zr=c;return a}function Rv(){this.Cm=this.bp=this.tD=this.ze=null}Rv.prototype=new zM;Rv.prototype.constructor=Rv; -function GS(){}GS.prototype=Rv.prototype;Rv.prototype.Z=function(a,b){a=yM.prototype.Z.call(this,a,b);return new HS(this,a)};Rv.prototype.vb=function(a,b){a=yM.prototype.vb.call(this,a,b);return new IS(this,a)};Rv.prototype.g=function(){return Uv(this.bp)};Rv.prototype.$classData=x({eO:0},!1,"upickle.core.TraceVisitor",{eO:1,FD:1,b:1,ha:1});function JS(a,b){if(null===b)throw K(L(),null);a.Fa=b;a.ya=ma;a.E=-1}function KS(){this.ya=ma;this.E=0;this.Fa=null}KS.prototype=new t; -KS.prototype.constructor=KS;function LS(){}LS.prototype=KS.prototype;KS.prototype.zd=function(){return!0};KS.prototype.n=function(a){if(-1!==this.E){var b=this.ya,c=this.E,d=b.r&(0===(32&c)?0:1<f=>{f|=0;var g=d.ya,h=g.r&(0===(32&f)?0:1<g=>f.a[g|0])(a,c)));throw new qw("missing keys in dictionary: "+qf(a,"",", ",""));}function OS(a,b){a=a.ya;return!(a.m===b.m&&a.r===b.r)}KS.prototype.q=function(){return MR()}; -function Jy(a,b,c,d){this.mO=null;this.Q9=b;this.S9=c;this.R9=d;if(null===a)throw K(L(),null);this.mO=a}Jy.prototype=new t;Jy.prototype.constructor=Jy;Jy.prototype.oa=function(a,b){return wM(this,a,b)};Jy.prototype.$u=function(a){return Rh(this.Q9.Md(),a)?z(new B,this.S9,this.R9):null};Jy.prototype.na=function(){return this.mO.nO};Jy.prototype.$classData=x({P9:0},!1,"upickle.core.Types$TaggedWriter$Leaf",{P9:1,b:1,BD:1,la:1}); -function PS(a){this.CD=null;this.DD=this.Dm=0;this.dp=null;if(null===a)throw K(L(),null);this.dp=a;this.CD=new v(a.$r.a.length);this.DD=this.Dm=0}PS.prototype=new t;PS.prototype.constructor=PS;e=PS.prototype;e.zd=function(){return!1};e.n=function(a){this.CD.a[Xa(this.Dm,this.dp.$r.a.length)]=a;this.Dm=1+this.Dm|0};e.aa=function(){var a=this.Dm-this.DD|0;if(a!==this.dp.$r.a.length)throw new qw("expected "+this.dp.$r.a.length+" items in sequence, found "+a);this.DD=this.Dm;return this.dp.V9.t(this.CD)}; -e.h=function(){return this.dp.$r.a[Xa(this.Dm,this.dp.$r.a.length)]};e.$classData=x({U9:0},!1,"upickle.core.Types$TupleNReader$$anon$6",{U9:1,b:1,nk:1,pa:1});function EM(a,b){this.GD=a;this.f$=b}EM.prototype=new t;EM.prototype.constructor=EM;e=EM.prototype;e.zd=function(){return!1};e.h=function(){return this.GD.h()};e.n=function(a,b){this.GD.n(a,b)};e.aa=function(a){return this.f$.t(this.GD.aa(a))};e.$classData=x({e$:0},!1,"upickle.core.Visitor$MapArrContext",{e$:1,b:1,nk:1,pa:1}); -function DM(a,b){this.Eu=a;this.h$=b}DM.prototype=new t;DM.prototype.constructor=DM;e=DM.prototype;e.zd=function(){return!0};e.h=function(){return this.Eu.h()};e.q=function(a){return this.Eu.q(a)};e.i=function(a){this.Eu.i(a)};e.n=function(a,b){this.Eu.n(a,b)};e.aa=function(a){return this.h$.t(this.Eu.aa(a))};e.$classData=x({g$:0},!1,"upickle.core.Visitor$MapObjContext",{g$:1,b:1,xa:1,pa:1});function QS(){}QS.prototype=new t;QS.prototype.constructor=QS;e=QS.prototype;e.zd=function(){return!0}; -e.n=function(){};e.i=function(){};e.q=function(){return dM()};e.aa=function(){};e.h=function(){return dM()};e.$classData=x({M$:0},!1,"upickle.implicits.Readers$$anon$1$$anon$2",{M$:1,b:1,xa:1,pa:1});function RS(a){this.Ay=this.ND=this.MD=null;if(null===a)throw K(L(),null);this.Ay=a;this.MD=FJ().fg.mc();this.ND=FJ().fg.mc()}RS.prototype=new t;RS.prototype.constructor=RS;e=RS.prototype;e.zd=function(){return!0};e.Aw=function(){return this.Ay.yO};e.i=function(a){this.MD.Wa(Ua(a))};e.n=function(a){this.ND.Wa(a)}; -e.aa=function(){var a=this.Ay.xO,b=a.t,c=this.MD,d=this.ND;var f=c.Fb().gb();c=c.w();for(d=d.w();c.v()&&d.v();){var g=z(new B,c.s(),d.s());f.Wa(g)}f=f.yb();return b.call(a,f)};e.q=function(){return this.Ay.OD.H};e.h=function(){return this.Aw()};e.$classData=x({Q$:0},!1,"upickle.implicits.Readers$$anon$12$$anon$13",{Q$:1,b:1,xa:1,pa:1});function SS(a){this.zO=this.PD=null;if(null===a)throw K(L(),null);this.zO=a;this.PD=H()}SS.prototype=new t;SS.prototype.constructor=SS;e=SS.prototype;e.zd=function(){return!1}; -e.n=function(a){this.PD=new dd(a)};e.Aw=function(){return this.zO.BO};e.h=function(){return this.Aw()};e.aa=function(){return this.PD};e.$classData=x({S$:0},!1,"upickle.implicits.Readers$$anon$14$$anon$15",{S$:1,b:1,nk:1,pa:1});function YS(a){this.DO=this.QD=null;if(null===a)throw K(L(),null);this.DO=a;this.QD=a.FO.gb()}YS.prototype=new t;YS.prototype.constructor=YS;e=YS.prototype;e.zd=function(){return!1};e.n=function(a){this.QD.Wa(a)};e.aa=function(){return this.QD.yb()};e.Aw=function(){return this.DO.GO}; -e.h=function(){return this.Aw()};e.$classData=x({U$:0},!1,"upickle.implicits.Readers$$anon$20$$anon$21",{U$:1,b:1,nk:1,pa:1});function Qc(a){if(null===a.VD){var b=a.jP;a.VD=Sm(Um(),b)}return a.VD}function EN(a,b){this.jP=a;this.VD=b}EN.prototype=new t;EN.prototype.constructor=EN; -function yN(a){var b=LE(ME(),Qc(a).up);if(!b.k()){b=b.Ja();a=(g=>h=>{var l=Qc(g),n=l.up,r=Zl($l(),Uh(sa(n))).Md(),u=r===m(Cb);var w=[];for(var A=0;A=d)throw a=H(),nc(),a.k()||qe(),new dy("pageSize can not be equal to zero or negative !");} -Zx.prototype=new t;Zx.prototype.constructor=Zx;e=Zx.prototype;e.g=function(){return"##### General Settings \n - **cache** :"+this.ml+" \n - **logLevel** :"+this.Yi+" \n - **sizeBatchProcessing** :"+this.Mj+" \n - **pageSize** :"+this.Ug+" \n"+(this.Lj?" - **urlProxy**:"+this.Nj+"\n":"")}; -function hT(a){var b=a.Yi.toLowerCase();if("debug"===b||"d"===b)return Nc();if("info"===b||"i"===b)return Lx();if("warn"===b||"w"===b)return kN();if("error"===b||"e"===b)return jN();if("trace"===b||"t"===b)return Bf();if("all"===b)return rN();if("off"===b)return qN();b=Mc().jb;var c=kN();Oc(Qc(b),c.Hb)&&Rc(Mc().jb,kN(),new Sc("com/github/p2m2/shared/src/main/scala/inrae/semantic_web/StatementConfiguration.scala","StatementConfiguration.scala",137,13),"[config.settings.logLevel] possible value : trace, debug, info, warn, error, all, off . find ["+ -a.Yi+"]");return kN()}e.A=function(){return"GeneralSetting"};e.B=function(){return 6};e.C=function(a){switch(a){case 0:return this.ml;case 1:return this.Yi;case 2:return this.Mj;case 3:return this.Ug;case 4:return this.Lj;case 5:return this.Nj;default:return R(S(),a)}}; -e.p=function(){var a=Pa("GeneralSetting");a=S().j(-889275714,a);var b=this.ml?1231:1237;a=S().j(a,b);b=this.Yi;b=ku(S(),b);a=S().j(a,b);b=this.Mj;a=S().j(a,b);b=this.Ug;a=S().j(a,b);b=this.Lj?1231:1237;a=S().j(a,b);b=this.Nj;b=ku(S(),b);a=S().j(a,b);return S().ca(a,6)};e.c=function(a){return this===a?!0:a instanceof Zx?this.ml===a.ml&&this.Mj===a.Mj&&this.Ug===a.Ug&&this.Lj===a.Lj&&this.Yi===a.Yi&&this.Nj===a.Nj:!1}; -e.$classData=x({lT:0},!1,"inrae.semantic_web.ConfigurationObject$GeneralSetting",{lT:1,b:1,z:1,o:1,d:1});function iT(a){this.ya=ma;this.E=0;this.Fa=null;this.TG=!1;this.UG=null;this.WG=this.VG=0;this.XG=!1;this.Cn=this.YG=null;if(null===a)throw K(L(),null);this.Cn=a;JS(this,a)}iT.prototype=new LS;iT.prototype.constructor=iT;e=iT.prototype; -e.Ha=function(a,b){switch(a){case 0:this.TG=!!b;break;case 1:this.UG=b;break;case 2:this.VG=b|0;break;case 3:this.WG=b|0;break;case 4:this.XG=!!b;break;case 5:this.YG=b;break;default:throw new D(a);}};e.i=function(a){U();a=Ua(a);this.E="cache"===a?0:"logLevel"===a?1:"sizeBatchProcessing"===a?2:"pageSize"===a?3:"proxy"===a?4:"urlProxy"===a?5:-1}; -e.h=function(){var a=this.E;switch(a){case -1:return dM();case 0:wx();a=this.Cn.pT;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=U().rf;a=Y(a,b)}}return a;case 1:wx();a=this.Cn.qT;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=U().H,a=Y(a,b))}return a;case 2:wx();a=this.Cn.rT;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=U().Fu,a=Y(a,b))}return a;case 3:wx();a=this.Cn.sT;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=U().Fu,a=Y(a,b))}return a;case 4:wx();a=this.Cn.tT; -if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=U().rf,a=Y(a,b))}return a;case 5:wx();a=this.Cn.uT;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=U().H,a=Y(a,b))}return a;default:throw new D(a);}}; -e.aa=function(){Z(this,0,(wx(),!0));Z(this,1,(wx(),"warn"));Z(this,2,(wx(),150));Z(this,3,(wx(),10));Z(this,4,(wx(),!1));Z(this,5,(wx(),"http://urlProxy"));OS(this,new p(63,0))&&MS(this,6,new (y(ta).M)("cache logLevel sizeBatchProcessing pageSize proxy urlProxy".split(" ")));return new Zx(this.TG,this.UG,this.VG,this.WG,this.XG,this.YG)};e.$classData=x({oT:0},!1,"inrae.semantic_web.ConfigurationObject$GeneralSetting$$anon$4$$anon$5",{oT:1,Na:1,b:1,xa:1,pa:1}); -function jT(a,b,c,d,f,g,h,l,n,r){this.iH=this.jH=this.kH=null;this.Dn=a;this.Tf=b;this.nl=c;this.ui=d;this.Th=f;this.Pj=g;this.Oj=h;this.ol=l;this.pl=n;this.Qj=r;J();a=qc(new rc,["application/sparql-query","text/turtle","text/n3","text/rdf-xml","application/rdf+xml"]);this.kH=hh(F(),a);if(!this.kH.Sa(f))throw h=H(),nc(),h.k()||qe(),new dy("type source unknown :"+f);J();f=qc(new rc,["post","get"]);this.jH=hh(F(),f);f=g.toLowerCase();if(!this.jH.Sa(f))throw h=H(),nc(),h.k()||qe(),new dy("method source unknown :"+ -g);J();g=qc(new rc,["basic","digest","bearer","proxy",""]);this.iH=hh(F(),g);g=h.toLowerCase();if(!this.iH.Sa(g))throw b=H(),nc(),b.k()||qe(),new dy("auth source not managed :"+h);if(""===b&&""===c&&""===d)throw h=H(),nc(),h.k()||qe(),new dy("url/file/content. one of these parameters must be defined.");if(""!==b&&""!==c||""!==b&&""!==d||""!==c&&""!==d)throw h=H(),nc(),h.k()||qe(),new dy("url/file/content. only one of theses parameters should be defined .");}jT.prototype=new t; -jT.prototype.constructor=jT;e=jT.prototype;e.g=function(){return"##### ID :"+this.Dn+"\n"+(""!==this.Tf?" - **url**:"+this.Tf+"\n":"")+(""!==this.nl?" - **file**:"+this.nl+"\n":"")+(""!==this.ui?" - **content**:"+this.ui+"\n":"")+(""!==this.Th?" - **mimetype**:"+this.Th+"\n":"")+(""!==this.Pj?" - **method**:"+this.Pj+"\n":"")+(""!==this.Oj?" - **auth**:"+this.Oj+"\n":"")+(""!==this.Qj?" - **method**:"+this.Qj+"\n":"")};e.A=function(){return"Source"};e.B=function(){return 10}; -e.C=function(a){switch(a){case 0:return this.Dn;case 1:return this.Tf;case 2:return this.nl;case 3:return this.ui;case 4:return this.Th;case 5:return this.Pj;case 6:return this.Oj;case 7:return this.ol;case 8:return this.pl;case 9:return this.Qj;default:return R(S(),a)}};e.p=function(){return tv(this)}; -e.c=function(a){return this===a?!0:a instanceof jT?this.Dn===a.Dn&&this.Tf===a.Tf&&this.nl===a.nl&&this.ui===a.ui&&this.Th===a.Th&&this.Pj===a.Pj&&this.Oj===a.Oj&&this.ol===a.ol&&this.pl===a.pl&&this.Qj===a.Qj:!1};e.$classData=x({wT:0},!1,"inrae.semantic_web.ConfigurationObject$Source",{wT:1,b:1,z:1,o:1,d:1});function kT(a){this.ya=ma;this.E=0;this.ti=this.hH=this.gH=this.fH=this.eH=this.dH=this.cH=this.bH=this.aH=this.$G=this.ZG=this.Fa=null;if(null===a)throw K(L(),null);this.ti=a;JS(this,a)} -kT.prototype=new LS;kT.prototype.constructor=kT;e=kT.prototype;e.Ha=function(a,b){switch(a){case 0:this.ZG=b;break;case 1:this.$G=b;break;case 2:this.aH=b;break;case 3:this.bH=b;break;case 4:this.cH=b;break;case 5:this.dH=b;break;case 6:this.eH=b;break;case 7:this.fH=b;break;case 8:this.gH=b;break;case 9:this.hH=b;break;default:throw new D(a);}}; -e.i=function(a){U();a=Ua(a);this.E="id"===a?0:"url"===a?1:"file"===a?2:"content"===a?3:"mimetype"===a?4:"method"===a?5:"auth"===a?6:"login"===a?7:"password"===a?8:"token"===a?9:-1}; -e.h=function(){var a=this.E;switch(a){case -1:return dM();case 0:Bx();a=this.ti.AT;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=U().H;a=Y(a,b)}}return a;case 1:Bx();a=this.ti.BT;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=U().H,a=Y(a,b))}return a;case 2:Bx();a=this.ti.CT;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=U().H,a=Y(a,b))}return a;case 3:Bx();a=this.ti.DT;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=U().H,a=Y(a,b))}return a;case 4:Bx();a=this.ti.ET; -if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=U().H,a=Y(a,b))}return a;case 5:Bx();a=this.ti.FT;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=U().H,a=Y(a,b))}return a;case 6:Bx();a=this.ti.GT;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=U().H,a=Y(a,b))}return a;case 7:Bx();a=this.ti.HT;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=U().H,a=Y(a,b))}return a;case 8:Bx();a=this.ti.IT;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=U().H,a=Y(a,b))}return a;case 9:Bx(); -a=this.ti.JT;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=U().H,a=Y(a,b))}return a;default:throw new D(a);}}; -e.aa=function(){Z(this,1,(Bx(),""));Z(this,2,(Bx(),""));Z(this,3,(Bx(),""));Z(this,4,(Bx(),"application/sparql-query"));Z(this,5,(Bx(),"POST"));Z(this,6,(Bx(),""));Z(this,7,(Bx(),""));Z(this,8,(Bx(),""));Z(this,9,(Bx(),""));OS(this,new p(1023,0))&&MS(this,10,new (y(ta).M)("id url file content mimetype method auth login password token".split(" ")));return new jT(this.ZG,this.$G,this.aH,this.bH,this.cH,this.dH,this.eH,this.fH,this.gH,this.hH)}; -e.$classData=x({zT:0},!1,"inrae.semantic_web.ConfigurationObject$Source$$anon$7$$anon$8",{zT:1,Na:1,b:1,xa:1,pa:1});function Yx(a,b){this.qh=a;this.Ef=b}Yx.prototype=new t;Yx.prototype.constructor=Yx;e=Yx.prototype;e.g=function(){return qf(this.qh,"","\n","")+"\n\n"+this.Ef.g()};e.A=function(){return"StatementConfigurationJson"};e.B=function(){return 2};e.C=function(a){switch(a){case 0:return this.qh;case 1:return this.Ef;default:return R(S(),a)}};e.p=function(){return tv(this)}; -e.c=function(a){if(this===a)return!0;if(a instanceof Yx){var b=this.qh,c=a.qh;if(null===b?null===c:b.c(c))return b=this.Ef,a=a.Ef,null===b?null===a:b.c(a)}return!1};e.$classData=x({LT:0},!1,"inrae.semantic_web.ConfigurationObject$StatementConfigurationJson",{LT:1,b:1,z:1,o:1,d:1});function lT(a){this.ya=ma;this.E=0;this.jB=this.mH=this.lH=this.Fa=null;if(null===a)throw K(L(),null);this.jB=a;JS(this,a)}lT.prototype=new LS;lT.prototype.constructor=lT;e=lT.prototype; -e.Ha=function(a,b){switch(a){case 0:this.lH=b;break;case 1:this.mH=b;break;default:throw new D(a);}};e.i=function(a){U();a=Ua(a);this.E="sources"===a?0:"settings"===a?1:-1}; -e.h=function(){var a=this.E;switch(a){case -1:return dM();case 0:Gx();a=this.jB.PT;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=U(),c=Bx().iB,d=rt();b=new mT(b,new VO(d),c);a=Y(a,b)}}return a;case 1:Gx();a=this.jB.QT;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=wx().hB,a=Y(a,b))}return a;default:throw new D(a);}}; -e.aa=function(){Z(this,1,(Gx(),new Zx((wx(),!0),(wx(),"warn"),(wx(),150),(wx(),10),(wx(),!1),(wx(),"http://urlProxy"))));OS(this,new p(3,0))&&MS(this,2,new (y(ta).M)(["sources","settings"]));return new Yx(this.lH,this.mH)};e.$classData=x({OT:0},!1,"inrae.semantic_web.ConfigurationObject$StatementConfigurationJson$$anon$10$$anon$11",{OT:1,Na:1,b:1,xa:1,pa:1});function nT(a,b){this.cb=a;this.Ff=b}nT.prototype=new t;nT.prototype.constructor=nT;e=nT.prototype;e.A=function(){return"FilterIncrementJs"}; -e.B=function(){return 2};e.C=function(a){switch(a){case 0:return this.cb;case 1:return this.Ff;default:return R(S(),a)}};e.p=function(){var a=Pa("FilterIncrementJs");a=S().j(-889275714,a);var b=this.cb;b=ku(S(),b);a=S().j(a,b);b=this.Ff?1231:1237;a=S().j(a,b);return S().ca(a,2)};e.g=function(){return du(this)};e.c=function(a){if(this===a)return!0;if(a instanceof nT&&this.Ff===a.Ff){var b=this.cb;a=a.cb;return null===b?null===a:b.c(a)}return!1}; -Object.defineProperty(nT.prototype,"not",{get:function(){return new nT(this.cb,!this.Ff)},configurable:!0});nT.prototype.supEqual=function(a){var b=this.Ff;if(!0===b){b=this.cb.Pa;var c=oT(this.cb.ta);a=new gT(b,pT(new qT(c.rb,!0),Vg(Fg(),a)))}else if(!1===b)a=new gT(this.cb.Pa,pT(oT(this.cb.ta),Vg(Fg(),a)));else throw new D(b);return a}; -nT.prototype.sup=function(a){var b=this.Ff;if(!0===b){b=this.cb.Pa;var c=oT(this.cb.ta);a=new gT(b,rT(new qT(c.rb,!0),Vg(Fg(),a)))}else if(!1===b)a=new gT(this.cb.Pa,rT(oT(this.cb.ta),Vg(Fg(),a)));else throw new D(b);return a};nT.prototype.infEqual=function(a){var b=this.Ff;if(!0===b){b=this.cb.Pa;var c=oT(this.cb.ta);a=new gT(b,sT(new qT(c.rb,!0),Vg(Fg(),a)))}else if(!1===b)a=new gT(this.cb.Pa,sT(oT(this.cb.ta),Vg(Fg(),a)));else throw new D(b);return a}; -nT.prototype.inf=function(a){var b=this.Ff;if(!0===b){b=this.cb.Pa;var c=oT(this.cb.ta);a=new gT(b,tT(new qT(c.rb,!0),Vg(Fg(),a)))}else if(!1===b)a=new gT(this.cb.Pa,tT(oT(this.cb.ta),Vg(Fg(),a)));else throw new D(b);return a};nT.prototype.notEqual=function(a){var b=this.Ff;if(!0===b){b=this.cb.Pa;var c=oT(this.cb.ta);a=new gT(b,uT(new qT(c.rb,!0),Vg(Fg(),a)))}else if(!1===b)a=new gT(this.cb.Pa,uT(oT(this.cb.ta),Vg(Fg(),a)));else throw new D(b);return a}; -nT.prototype.equal=function(a){var b=this.Ff;if(!0===b){b=this.cb.Pa;var c=oT(this.cb.ta);a=new gT(b,vT(new qT(c.rb,!0),Vg(Fg(),a)))}else if(!1===b)a=new gT(this.cb.Pa,vT(oT(this.cb.ta),Vg(Fg(),a)));else throw new D(b);return a};nT.prototype.strEnds=function(a){var b=this.Ff;if(!0===b){b=this.cb.Pa;var c=oT(this.cb.ta);a=new gT(b,wT(new qT(c.rb,!0),Vg(Fg(),a)))}else if(!1===b)a=new gT(this.cb.Pa,wT(oT(this.cb.ta),Vg(Fg(),a)));else throw new D(b);return a}; -nT.prototype.strStarts=function(a){var b=this.Ff;if(!0===b){b=this.cb.Pa;var c=oT(this.cb.ta);a=new gT(b,xT(new qT(c.rb,!0),Vg(Fg(),a)))}else if(!1===b)a=new gT(this.cb.Pa,xT(oT(this.cb.ta),Vg(Fg(),a)));else throw new D(b);return a};nT.prototype.contains=function(a){var b=this.Ff;if(!0===b){b=this.cb.Pa;var c=oT(this.cb.ta);a=new gT(b,yT(new qT(c.rb,!0),Vg(Fg(),a)))}else if(!1===b)a=new gT(this.cb.Pa,yT(oT(this.cb.ta),Vg(Fg(),a)));else throw new D(b);return a}; -Object.defineProperty(nT.prototype,"isBlank",{get:function(){var a=this.Ff;if(!0===a){a=this.cb.Pa;var b=oT(this.cb.ta);b=new qT(b.rb,!0);var c=b.Gf,d=eT(b.rb,"");Fd();var f=I(J().u,F());Fd();E();var g=F();c=new jg(c,d,f,G(0,g));b=zT(b.rb,c,!1);a=new gT(a,b)}else if(!1===a)a=new gT(this.cb.Pa,AT(oT(this.cb.ta)));else throw new D(a);return a},configurable:!0}); -Object.defineProperty(nT.prototype,"isUri",{get:function(){var a=this.Ff;if(!0===a){a=this.cb.Pa;var b=oT(this.cb.ta);a=new gT(a,AT(new qT(b.rb,!0)))}else if(!1===a)a=new gT(this.cb.Pa,AT(oT(this.cb.ta)));else throw new D(a);return a},configurable:!0});Object.defineProperty(nT.prototype,"isLiteral",{get:function(){var a=this.Ff;if(!0===a){a=this.cb.Pa;var b=oT(this.cb.ta);a=new gT(a,BT(new qT(b.rb,!0)))}else if(!1===a)a=new gT(this.cb.Pa,BT(oT(this.cb.ta)));else throw new D(a);return a},configurable:!0}); -nT.prototype.$classData=x({ST:0},!1,"inrae.semantic_web.FilterIncrementJs",{ST:1,b:1,z:1,o:1,d:1});function CT(){}CT.prototype=new HK;CT.prototype.constructor=CT;CT.prototype.g=function(){return"FilterIncrementJs"};CT.prototype.Oe=function(a,b){return new nT(a,!!b)};CT.prototype.$classData=x({TT:0},!1,"inrae.semantic_web.FilterIncrementJs$",{TT:1,nS:1,b:1,fB:1,d:1});var DT;function ET(a,b){this.lt=a;this.mt=b}ET.prototype=new t;ET.prototype.constructor=ET;e=ET.prototype;e.A=function(){return"ProjectionExpressionIncrementJs"}; -e.B=function(){return 2};e.C=function(a){switch(a){case 0:return this.lt;case 1:return this.mt;default:return R(S(),a)}};e.p=function(){return tv(this)};e.g=function(){return du(this)};e.c=function(a){if(this===a)return!0;if(a instanceof ET){var b=this.lt,c=a.lt;return(null===b?null===c:b.c(c))?this.mt===a.mt:!1}return!1};ET.prototype.countAll=function(...a){a=void 0===a[0]?!1:!!a[0];return new FT(GT(new HT(this.lt.Ue,this.mt),a))}; -ET.prototype.count=function(a,...b){b=void 0===b[0]?!1:!!b[0];var c=new HT(this.lt.Ue,this.mt);a=new Hf(a);var d=eT(c.Fn.mb,"");od();var f=I(J().u,F());od();E();var g=F();b=IT(c,new Nf(a,b,d,f,G(0,g)));return new FT(b)};ET.prototype.$classData=x({UT:0},!1,"inrae.semantic_web.ProjectionExpressionIncrementJs",{UT:1,b:1,z:1,o:1,d:1}); -function ON(a,b,c){this.xd=this.uH=this.oB=null;this.uc=a;this.$a=b;this.En=c;this.uH=es();if(c instanceof dd)b=c.Qb;else if(H()===c)b=b.D;else throw new D(c);this.xd=b;b=Mc();a=hT(a.Wd.Ef);Qc(b.jb).vk=a.Hb}ON.prototype=new t;ON.prototype.constructor=ON;function oT(a){null===a.oB&&null===a.oB&&(a.oB=new JT(a));return new qT(a,!1)}function KT(a){return new ON(a.uc,a.$a,new dd(a.$a.D))} -function LT(a,b){if(b===a.xd)return new ON(a.uc,a.$a,a.En);if(b===a.$a.D)return KT(a);ap();var c=af(cf(),b,a.$a);c=rp(c);if(c instanceof dd)return new ON(a.uc,a.$a,new dd(c.Qb.Aa()));if(H()===c)throw a=H(),nc(),a.k()||qe(),new re(b+" does not exist.");throw new D(c);}function MT(a,b){ap();var c=af(cf(),b,a.$a);c=rp(c);if(c instanceof dd)return new ON(a.uc,a.$a,new dd(a.xd));if(H()===c)throw a=H(),nc(),a.k()||qe(),new re(b+" does not exist.");throw new D(c);} -function NT(a,b,c){var d=a.uc,f=a.$a;b=new jf(f.D,f.df.Wi(b,c),f.Hf,f.If,f.Le,f.Me,f.xe,f.od,f.Q,f.S);return new ON(d,b,new dd(a.xd))}function OT(a,b){b=b.Ea(new C((c=>d=>{if(null!==d)return NT(c,d.ib,d.Va);throw new D(d);})(a))).og();return 0h=>h.Aa()===g.xd)(a))),f=YO(d);if(f.k()?0:f.Ja().$g(b))return d=QT(a.$a,a.xd,b),c?new ON(a.uc,d,new dd(b.Aa())):new ON(a.uc,d,new dd(a.xd));a=H();nc();a.k()||qe();throw new re("Can not add this node ["+b+"]at the current focus["+d+"]");} -function eT(a,b){if("object"===b){a=a.$a;var c=new Bg("",(Dg(),""));Me();var d=I(J().u,F());Me();E();var f=F();a=a.Qe(new Cf("",c,d,G(0,f)),new Hy(m(PC))).y()}else"subject"===b?(a=a.$a,c=new Bg("",(Dg(),"")),Ne(),d=I(J().u,F()),Ne(),E(),f=F(),a=a.Qe(new Df("",c,d,G(0,f)),new Hy(m(UA))).y()):"something"===b?(a=a.$a,Le(),c=I(J().u,F()),Le(),E(),d=F(),a=a.Qe(new qg("",c,G(0,d)),new Hy(m(gC))).y()):"linkTo"===b?(a=a.$a,c=new Bg("",(Dg(),"")),Oe(),d=I(J().u,F()),Oe(),E(),f=F(),a=a.Qe(new Ef("",c,d,G(0, -f)),new Hy(m(xA))).y()):"linkFrom"===b?(a=a.$a,c=new Bg("",(Dg(),"")),Pe(),d=I(J().u,F()),Pe(),E(),f=F(),a=a.Qe(new Ff("",c,d,G(0,f)),new Hy(m(sA))).y()):"datatype"===b?(a=a.$a,c=new Bg("",(Dg(),"")),Me(),d=I(J().u,F()),Me(),E(),f=F(),c=new Cf("",c,d,G(0,f)),Ee(),d=I(J().u,F()),Ee(),E(),f=F(),a=a.Qe(new tg("",c,"",d,G(0,f)),new Hy(m(wz))).y()):a=fH().g();return""+b+Ua(a)} -function RT(a,b){var c=Mc().jb,d=Nc();Oc(Qc(c),d.Hb)&&Rc(Mc().jb,Nc(),new Sc("com/github/p2m2/shared/src/main/scala/inrae/semantic_web/SWDiscovery.scala","SWDiscovery.scala",193,10)," -- something -- ");Le();c=I(J().u,F());Le();E();d=F();return zT(a,new qg(b,c,G(0,d)),!0)}function ST(a,b,c){a=PT(a,b);Me();var d=I(J().u,F());Me();E();var f=F();b=new Cf(c,b,d,G(0,f));return zT(a,b,!0)} -function TT(a,b,c){a=PT(a,b);Oe();var d=I(J().u,F());Oe();E();var f=F();b=new Ef(c,b,d,G(0,f));return zT(a,b,!0)}function UT(a,b,c){a=PT(a,b);Pe();var d=I(J().u,F());Pe();E();var f=F();b=new Ff(c,b,d,G(0,f));return zT(a,b,!0)}function VT(a,b){a=PT(a,b);Ce();var c=fH().g();Ce();var d=I(J().u,F());Ce();E();var f=F();return zT(a,new Gf(b,c,d,G(0,f)),!1)}function WT(a,b){De();var c=fH().g();De();var d=I(J().u,F());De();E();var f=F();return zT(a,new If(b,c,d,G(0,f)),!1)} -function XT(a,b){var c=a.uc;b=YT(ZT(),a.$a,b);var d=gf(cf(),a.xd,a.$a);a=1f=>{cU(AI().Sz.Jv,f.Tf+"\n")})(a)));b="USER REQUEST\n"+b+"\nFOCUS NODE:"+c+"\nENDPOINT:"+qf(d,"",",","")+"\n\n\n--------------------------------------------------------------------\n -- HTTP GET -- \n\n"+ -dU(a)+"\n--------------------------------------------------------------------\n -- HTTP CURL -- \n\n"+eU(a)+"\n--------------------------------------------------------------------\n";cU(AI().Sz.Jv,b+"\n");return a}function fU(a){return NJ(Lc(Zc(),a.$a))} -function dU(a){var b=1===a.uc.Wd.qh.y()?a.uc.Wd.qh.V(0).Tf:"";a=fU(a);a=z(new B,"query",a);var c=I(rt(),qc(new rc,[z(new B,"format","json")]));dO||(dO=new cO);var d=dO;var f=eO().Yj,g=fO().Zj;f=Oh(d,f,g);nE||(nE=new mE);d=tE().iC;nE||(nE=new mE);a=c.qe(a);gU||(gU=new hU);c=new hO(gU,f);a=new iU(a,c);a=new jU(a.s5.Ela(a.r5).Cw(),d);qE();qE();qE();qE();qE();qE();qE();c=tE().iC;b=""+b;qE();sE||(sE=new rE);Nh||(Nh=new Mh);f=Ua("");d=kU;Nh||(Nh=new Mh);Ko||(Ko=new Jo);f=new lU(new AO(Ua(f)),c);d=d(f).Ja(); -f=LE(ME(),null);return b+new mU(d,a,f,c)}function eU(a){return'curl -H "Accept: application/json" -G '+(1===a.uc.Wd.qh.y()?a.uc.Wd.qh.V(0).Tf:"")+" --data-urlencode query\x3d'"+fU(a)+"'"}function nU(a,b,c,d){return oU(pU(qU(new rU(a),c),d),b)} -function sU(a,b){return Ps(tU(new uU(a)),new C(((c,d)=>f=>{f=Va(f|0,c.uc.Wd.Ef.Ug);var g=0>f;if(g)var h=0;else{var l=f>>31;h=1+f|0;l=0===h?1+l|0:l;h=(0===l?-1<(-2147483648^h):0h&&zJ(Bt(),0,f,1,!0);h=st().gb();for(g=new vU(0,1,f,g);g.mn;){var n=wU(g);l=c.uc.Wd.Ef.Ug;n=k(n,c.uc.Wd.Ef.Ug);l=nU(c,d,l,n);h.Wa(l)}return z(new B,1+f|0,h.yb())})(a,b)),a.uH)}function xU(a,b){return mf(cf(),a.$a,b)} -function yU(a,b,c){var d=!1,f=null,g=a.$a.Qe(a.$a,new Hy(m(ve))).nb(new C((h=>l=>l.Aa()===h.xd)(a))).dh();if(g instanceof dd&&(d=!0,f=g,f.Qb instanceof jf))return d=a.uc,b=oe(a.$a,b,c),new ON(d,b,new dd(a.$a.D));if(d)return d=f.Qb,zT(XT(a,a.xd),oe(d,b,c),!0);if(H()===g)throw a=a.xd,b=H(),nc(),b.k()||qe(),new re("Can not reach current node -- "+a+" --]");throw new D(g);} -function zU(a,b){var c=a.$a.Qe(a.$a,new Hy(m(ve))).nb(new C((d=>f=>f.Aa()===d.xd)(a))).dh();if(c instanceof dd)return c.Qb.Ya().bi(b,new Tm((()=>()=>"")(a)));if(H()===c)return"";throw new D(c);}e=ON.prototype;e.A=function(){return"SWDiscovery"};e.B=function(){return 3};e.C=function(a){switch(a){case 0:return this.uc;case 1:return this.$a;case 2:return this.En;default:return R(S(),a)}};e.p=function(){return tv(this)};e.g=function(){return du(this)}; -e.c=function(a){if(this===a)return!0;if(a instanceof ON){var b=this.uc,c=a.uc;(null===b?null===c:b.c(c))?(b=this.$a,c=a.$a,b=null===b?null===c:b.c(c)):b=!1;if(b)return b=this.En,a=a.En,null===b?null===a:b.c(a)}return!1};e.$classData=x({VT:0},!1,"inrae.semantic_web.SWDiscovery",{VT:1,b:1,z:1,o:1,d:1});function AU(a){this.ya=ma;this.E=0;this.Fw=this.pH=this.oH=this.nH=this.Fa=null;if(null===a)throw K(L(),null);this.Fw=a;JS(this,a)}AU.prototype=new LS;AU.prototype.constructor=AU;e=AU.prototype; -e.Ha=function(a,b){switch(a){case 0:this.nH=b;break;case 1:this.oH=b;break;case 2:this.pH=b;break;default:throw new D(a);}};e.i=function(a){U();a=Ua(a);this.E="config"===a?0:"rootNode"===a?1:"fn"===a?2:-1}; -e.h=function(){var a=this.E;switch(a){case -1:return dM();case 0:Mx();a=this.Fw.ZT;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=Xx().qB;a=Y(a,b)}}return a;case 1:Mx();a=this.Fw.$T;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=ye().hx,a=Y(a,b))}return a;case 2:Mx();a=this.Fw.aU;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{b=U();var c=U().H;b=new BU(b,c);a=Y(a,b)}}return a;default:throw new D(a);}}; -e.aa=function(){Z(this,0,(Mx(),new cy(Wx())));Mx();ye();var a=fH().g(),b=UB();ye();J();var c=F();c=hh(F(),c);ye();J();var d=F();d=hh(F(),d);ye();J();var f=F();f=hh(F(),f);ye();J();var g=F();g=hh(F(),g);ye();J();var h=F();h=hh(F(),h);ye();J();var l=F();l=hh(F(),l);ye();var n=I(J().u,F());ye();E();var r=F();Z(this,1,new jf(a,b,c,d,f,g,h,l,n,G(0,r)));Z(this,2,(Mx(),H()));OS(this,new p(7,0))&&MS(this,3,new (y(ta).M)(["config","rootNode","fn"]));return new ON(this.nH,this.oH,this.pH)}; -e.$classData=x({YT:0},!1,"inrae.semantic_web.SWDiscovery$$anon$1$$anon$2",{YT:1,Na:1,b:1,xa:1,pa:1});function dT(a,b){this.rh=null;this.nt=b;if(null===a)throw K(L(),null);this.rh=a}dT.prototype=new t;dT.prototype.constructor=dT;function fT(a,b){var c=a.rh;a=a.nt;Ge();var d=I(J().u,F());Ge();E();var f=F();return zT(c,new kf(b,a,d,G(0,f)),!0)}e=dT.prototype;e.A=function(){return"BindIncrement"};e.B=function(){return 1};e.C=function(a){return 0===a?this.nt:R(S(),a)};e.p=function(){return tv(this)}; -e.g=function(){return du(this)};e.c=function(a){return this===a?!0:a instanceof dT&&a.rh===this.rh?this.nt===a.nt:!1};e.$classData=x({cU:0},!1,"inrae.semantic_web.SWDiscovery$BindIncrement",{cU:1,b:1,z:1,o:1,d:1});function qT(a,b){this.rb=null;this.Gf=b;if(null===a)throw K(L(),null);this.rb=a}qT.prototype=new t;qT.prototype.constructor=qT;function BT(a){var b=a.Gf,c=eT(a.rb,"");Gd();var d=I(J().u,F());Gd();E();var f=F();b=new ng(b,c,d,G(0,f));return zT(a.rb,b,!1)} -function AT(a){var b=a.Gf,c=eT(a.rb,"");Hd();var d=I(J().u,F());Hd();E();var f=F();b=new kg(b,c,d,G(0,f));return zT(a.rb,b,!1)}function CU(a,b,c){var d=a.Gf,f=eT(a.rb,"");Id();var g=I(J().u,F());Id();E();var h=F();b=new $f(b,c,d,f,g,G(0,h));return zT(a.rb,b,!1)}function yT(a,b){var c=a.Gf,d=eT(a.rb,"");Jd();var f=I(J().u,F());Jd();E();var g=F();b=new ag(b,c,d,f,G(0,g));return zT(a.rb,b,!1)} -function xT(a,b){var c=a.Gf,d=eT(a.rb,"");Kd();var f=I(J().u,F());Kd();E();var g=F();b=new bg(b,c,d,f,G(0,g));return zT(a.rb,b,!1)}function wT(a,b){var c=a.Gf,d=eT(a.rb,"");Ld();var f=I(J().u,F());Ld();E();var g=F();b=new cg(b,c,d,f,G(0,g));return zT(a.rb,b,!1)}function vT(a,b){var c=a.Gf,d=eT(a.rb,"");Od();var f=I(J().u,F());Od();E();var g=F();b=new dg(b,c,d,f,G(0,g));return zT(a.rb,b,!1)} -function uT(a,b){var c=a.Gf,d=eT(a.rb,"");Pd();var f=I(J().u,F());Pd();E();var g=F();b=new eg(b,c,d,f,G(0,g));return zT(a.rb,b,!1)}function tT(a,b){var c=a.Gf,d=eT(a.rb,"");Qd();var f=I(J().u,F());Qd();E();var g=F();b=new fg(b,c,d,f,G(0,g));return zT(a.rb,b,!1)}function sT(a,b){var c=a.Gf,d=eT(a.rb,"");Rd();var f=I(J().u,F());Rd();E();var g=F();b=new gg(b,c,d,f,G(0,g));return zT(a.rb,b,!1)} -function rT(a,b){var c=a.Gf,d=eT(a.rb,"");Sd();var f=I(J().u,F());Sd();E();var g=F();b=new hg(b,c,d,f,G(0,g));return zT(a.rb,b,!1)}function pT(a,b){var c=a.Gf,d=eT(a.rb,"");Td();var f=I(J().u,F());Td();E();var g=F();b=new ig(b,c,d,f,G(0,g));return zT(a.rb,b,!1)}e=qT.prototype;e.A=function(){return"FilterIncrement"};e.B=function(){return 1};e.C=function(a){return 0===a?this.Gf:R(S(),a)}; -e.p=function(){var a=Pa("FilterIncrement");a=S().j(-889275714,a);var b=this.Gf?1231:1237;a=S().j(a,b);return S().ca(a,1)};e.g=function(){return du(this)};e.c=function(a){return this===a?!0:a instanceof qT&&a.rb===this.rb?this.Gf===a.Gf:!1};e.$classData=x({dU:0},!1,"inrae.semantic_web.SWDiscovery$FilterIncrement",{dU:1,b:1,z:1,o:1,d:1});function JT(a){this.qH=null;if(null===a)throw K(L(),null);this.qH=a}JT.prototype=new FK;JT.prototype.constructor=JT;JT.prototype.g=function(){return"FilterIncrement"}; -JT.prototype.t=function(a){return new qT(this.qH,!!a)};JT.prototype.$classData=x({eU:0},!1,"inrae.semantic_web.SWDiscovery$FilterIncrement$",{eU:1,TA:1,b:1,da:1,d:1});function uU(a){this.Gw=this.vi=null;this.Vg=a;this.vi=es();J();a=qc(new rc,["http://www.openlinksw.com/schemas/virtrdf#","http://www.w3.org/2002/07/owl#","http://www.w3.org/2000/01/rdf-schema#","http://www.w3.org/1999/02/22-rdf-syntax-ns"]);a=hh(F(),a);this.Gw="^("+qf(a,"","|","")+")"}uU.prototype=new t;uU.prototype.constructor=uU; -function tU(a){var b=DU(new rU(a.Vg));return Ps(EU(GT(new HT(b,"count"),!1)).sl,new C((()=>c=>{Lg();c=(new Cg("results")).xc(c);c=(new Cg("bindings")).xc(c);c=(new SL(0)).xc(c);return Eg((new Cg("count")).xc(c)).tS()})(a)),a.vi)} -function FU(a,b,c,d){var f=Mc().jb,g=Nc();Oc(Qc(f),g.Hb)&&Rc(Mc().jb,Nc(),new Sc("com/github/p2m2/shared/src/main/scala/inrae/semantic_web/SWDiscoveryHelper.scala","SWDiscoveryHelper.scala",37,10)," -- findClasses -- ");a:{if(null!==c&&(f=new Bg("",(Dg(),"")),null!==c&&c.c(f))){c=ST(a.Vg,new Bg("a",(Dg(),"")),"_esp___type");break a}if(null!==c){f=ST(a.Vg,new Bg("a",(Dg(),"")),"_esp___type");g=new Bg("a",(Dg(),""));var h=eT(f,"object");c=VT(ST(f,g,h),c)}else throw new D(c); -}c=oT(LT(c,"_esp___type"));c=new qT(c.rb,!0);Fg();f=new Jg(a.Gw,(Tg(),Dg().yd),(Tg(),""));Fg();g=new Jg("",(Tg(),Dg().yd),(Tg(),""));c=CU(c,f,g);""!==NJ(b)?(c=oT(LT(c,"_esp___type")),Fg(),b=new Jg(b,(Tg(),Dg().yd),(Tg(),"")),Fg(),f=new Jg("",(Tg(),Dg().yd),(Tg(),"")),b=CU(c,b,f)):b=c;J();c=qc(new rc,["_esp___type"]);return ty(sU(b,hh(F(),c)),new C(((l,n)=>r=>{r=r.Va;return r.y()>n?Ps(EU(r.V(n)).sl,new C((()=>u=>{u=(new Cg("results")).xc(u);u=(new Cg("bindings")).xc(u);var w=TL(u);u=new GP;for(w=new JG(new GU(w.Cf, -w.xb));w.v();){var A=w.s();A=Ag(Lg(),(new Cg("_esp___type")).xc(A));HU(u,A)}return u.Df.og().yh()})(l)),l.vi):Os(Gs(),new Tm((()=>()=>I(J().u,F()))(l)),l.vi)})(a,d)),a.vi)} -function IU(a,b,c,d,f){var g=Mc().jb,h=Nc();Oc(Qc(g),h.Hb)&&Rc(Mc().jb,Nc(),new Sc("com/github/p2m2/shared/src/main/scala/inrae/semantic_web/SWDiscoveryHelper.scala","SWDiscoveryHelper.scala",70,10)," -- findProperties -- ");g=new Bg("",(Dg(),""));if(null!==c&&c.c(g))c=TT(LT(RT(KT(a.Vg),"_esp___type"),a.Vg.xd),new Hf("_esp___type"),"_esp___property");else{g=TT(LT(RT(KT(a.Vg),"_esp___type"),a.Vg.xd),new Hf("_esp___type"),"_esp___property");h=new Bg("a",(Dg(), -""));var l=eT(g,"object");c=VT(ST(g,h,l),c)}d=oT(LT("objectProperty"===d?AT(oT(LT(c,"_esp___type"))):"datatypeProperty"===d?BT(oT(LT(c,"_esp___type"))):c,"_esp___property"));d=new qT(d.rb,!0);Fg();c=new Jg(a.Gw,(Tg(),Dg().yd),(Tg(),""));Fg();g=new Jg("",(Tg(),Dg().yd),(Tg(),""));d=CU(d,c,g);""!==NJ(b)?(d=oT(LT(d,"_esp___property")),Fg(),b=new Jg(b,(Tg(),Dg().yd),(Tg(),"")),Fg(),c=new Jg("",(Tg(),Dg().yd),(Tg(),"")),b=CU(d,b,c)):b=d;J();d=qc(new rc,["_esp___property"]);return ty(sU(b,hh(F(),d)),new C(((n, -r)=>u=>{u=u.Va;return u.y()>r?Ps(EU(JU(u.V(r))).sl,new C((()=>w=>{w=(new Cg("results")).xc(w);w=(new Cg("bindings")).xc(w);var A=TL(w);w=new GP;for(A=new JG(new GU(A.Cf,A.xb));A.v();){var M=A.s();M=Ag(Lg(),(new Cg("_esp___property")).xc(M));HU(w,M)}return w.Df.og().yh()})(n)),n.vi):Os(Gs(),new Tm((()=>()=>I(J().u,F()))(n)),n.vi)})(a,f)),a.vi)} -function KU(a,b,c,d){var f=Mc().jb,g=Nc();Oc(Qc(f),g.Hb)&&Rc(Mc().jb,Nc(),new Sc("com/github/p2m2/shared/src/main/scala/inrae/semantic_web/SWDiscoveryHelper.scala","SWDiscoveryHelper.scala",122,10)," -- findObjectProperties -- ");return IU(a,b,c,"objectProperty",d)} -function LU(a,b,c,d){var f=Mc().jb,g=Nc();Oc(Qc(f),g.Hb)&&Rc(Mc().jb,Nc(),new Sc("com/github/p2m2/shared/src/main/scala/inrae/semantic_web/SWDiscoveryHelper.scala","SWDiscoveryHelper.scala",127,10)," -- findDatatypeProperties -- ");return IU(a,b,c,"datatypeProperty",d)} -function MU(a,b,c,d){var f=Mc().jb,g=Nc();Oc(Qc(f),g.Hb)&&Rc(Mc().jb,Nc(),new Sc("com/github/p2m2/shared/src/main/scala/inrae/semantic_web/SWDiscoveryHelper.scala","SWDiscoveryHelper.scala",133,10)," -- findSubjectProperties -- ");f=new Bg("",(Dg(),""));if(null!==c&&c.c(f))c=UT(LT(RT(KT(a.Vg),"_esp___type"),a.Vg.xd),new Hf("_esp___type"),"_esp___property");else{f=UT(LT(RT(KT(a.Vg),"_esp___type"),a.Vg.xd),new Hf("_esp___type"),"_esp___property");g=new Bg("a", -(Dg(),""));var h=eT(f,"object");c=VT(ST(f,g,h),c)}c=oT(LT(c,"_esp___property"));c=new qT(c.rb,!0);Fg();f=new Jg(a.Gw,(Tg(),Dg().yd),(Tg(),""));Fg();g=new Jg("",(Tg(),Dg().yd),(Tg(),""));c=CU(c,f,g);""!==NJ(b)?(c=oT(LT(c,"_esp___property")),Fg(),b=new Jg(b,(Tg(),Dg().yd),(Tg(),"")),Fg(),f=new Jg("",(Tg(),Dg().yd),(Tg(),"")),b=CU(c,b,f)):b=c;J();c=qc(new rc,["_esp___property"]);return ty(sU(b,hh(F(),c)),new C(((l,n)=>r=>{r=r.Va;return r.y()>n?Ps(EU(JU(r.V(n))).sl,new C((()=>u=>{u=(new Cg("results")).xc(u); -u=(new Cg("bindings")).xc(u);var w=TL(u);u=new GP;for(w=new JG(new GU(w.Cf,w.xb));w.v();){var A=w.s();A=Ag(Lg(),(new Cg("_esp___property")).xc(A));HU(u,A)}return u.Df.og().yh()})(l)),l.vi):Os(Gs(),new Tm((()=>()=>I(J().u,F()))(l)),l.vi)})(a,d)),a.vi)}e=uU.prototype;e.A=function(){return"SWDiscoveryHelper"};e.B=function(){return 1};e.C=function(a){return 0===a?this.Vg:R(S(),a)};e.p=function(){return tv(this)};e.g=function(){return du(this)}; -e.c=function(a){if(this===a)return!0;if(a instanceof uU){var b=this.Vg;a=a.Vg;return null===b?null===a:b.c(a)}return!1};e.$classData=x({gU:0},!1,"inrae.semantic_web.SWDiscoveryHelper",{gU:1,b:1,z:1,o:1,d:1});function NU(a){this.Zi=null;this.ql=a;this.Zi=es()}NU.prototype=new t;NU.prototype.constructor=NU;function OU(a,b,c,d){Du();b=Ps(FU(new uU(a.ql),b,c,d),new C((()=>f=>xc(yc(),f))(a)),a.Zi);return Bu(b,a.Zi)} -function PU(a,b,c,d){Du();b=Ps(KU(new uU(a.ql),b,c,d),new C((()=>f=>xc(yc(),f))(a)),a.Zi);return Bu(b,a.Zi)}function QU(a,b,c,d){Du();b=Ps(LU(new uU(a.ql),b,c,d),new C((()=>f=>xc(yc(),f))(a)),a.Zi);return Bu(b,a.Zi)}function RU(a,b,c,d){Du();b=Ps(MU(new uU(a.ql),b,c,d),new C((()=>f=>xc(yc(),f))(a)),a.Zi);return Bu(b,a.Zi)}e=NU.prototype;e.A=function(){return"SWDiscoveryHelperJs"};e.B=function(){return 1};e.C=function(a){return 0===a?this.ql:R(S(),a)};e.p=function(){return tv(this)};e.g=function(){return du(this)}; -e.c=function(a){if(this===a)return!0;if(a instanceof NU){var b=this.ql;a=a.ql;return null===b?null===a:b.c(a)}return!1};NU.prototype.subjectProperties=function(...a){var b=void 0===a[0]?"":a[0],c=void 0===a[1]?new Bg("",(Dg(),"")):a[1];return RU(this,b,c,void 0===a[2]?0:a[2]|0)};NU.prototype.datatypeProperties=function(...a){var b=void 0===a[0]?"":a[0],c=void 0===a[1]?new Bg("",(Dg(),"")):a[1];return QU(this,b,c,void 0===a[2]?0:a[2]|0)}; -NU.prototype.objectProperties=function(...a){var b=void 0===a[0]?"":a[0],c=void 0===a[1]?new Bg("",(Dg(),"")):a[1];return PU(this,b,c,void 0===a[2]?0:a[2]|0)};NU.prototype.classes=function(...a){var b=void 0===a[0]?"":a[0],c=void 0===a[1]?new Bg("",(Dg(),"")):a[1];return OU(this,b,c,void 0===a[2]?0:a[2]|0)};NU.prototype.count=function(){Du();var a=tU(new uU(this.ql));return Bu(a,this.Zi)};NU.prototype.$classData=x({hU:0},!1,"inrae.semantic_web.SWDiscoveryHelperJs",{hU:1,b:1,z:1,o:1,d:1}); -function gT(a,b){this.sH=this.ta=this.mB=null;this.Pa=a;this.nB=b;this.mB=es();if(null===b){Mx();ye();b=fH().g();var c=UB();ye();J();var d=F();d=hh(F(),d);ye();J();var f=F();f=hh(F(),f);ye();J();var g=F();g=hh(F(),g);ye();J();var h=F();h=hh(F(),h);ye();J();var l=F();l=hh(F(),l);ye();J();var n=F();n=hh(F(),n);ye();var r=I(J().u,F());ye();E();var u=F();a=new ON(a,new jf(b,c,d,f,g,h,l,n,r,G(0,u)),(Mx(),H()))}else a=b;this.ta=a;this.sH=new nT(this,!1)}gT.prototype=new t;gT.prototype.constructor=gT; -function SU(a){if(a instanceof VB)return a;if(a instanceof Bg)return new VB(a.g());if("string"===typeof a)return Qg(),new VB(a);a=Ua(a);var b=H();nc();b.k()||qe();throw new re(a+" can not be cast into IRI.");}function TU(a,b){return new gT(a.Pa,WT(a.ta,b.Ea(new C((()=>c=>Vg(Fg(),c))(a)))))}function UU(a,b){b=new gn(((c,d)=>(f,g)=>{var h=JSON,l=U();U();U();var n=Je().ba;f=h.parse(VU(l,f,n));return d(f,g)})(a,b));yc();a=xU(a.ta,b);return xc(0,a)} -function WU(a,b,c,d){return new FT(nU(a.ta,XU(st(),YU(new Iu,b)),c,d))}function ZU(a,b){Du();b=Ps(tU(new uU(a.ta)),new C(((c,d)=>f=>{f=Va(f|0,c.Pa.Wd.Ef.Ug);yc();var g=0>f;if(g)var h=0;else{var l=f>>31;h=1+f|0;l=0===h?1+l|0:l;h=(0===l?-1<(-2147483648^h):0h&&zJ(Bt(),0,f,1,!0);h=st().gb();for(g=new vU(0,1,f,g);g.mn;){var n=wU(g);l=c.Pa.Wd.Ef.Ug;n=k(n,c.Pa.Wd.Ef.Ug);l=WU(c,d,l,n);h.Wa(l)}h=h.yb();return z(new B,1+f|0,xc(0,h))})(a,b)),a.mB);return Bu(b,a.mB)}e=gT.prototype;e.A=function(){return"SWDiscoveryJs"}; -e.B=function(){return 2};e.C=function(a){switch(a){case 0:return this.Pa;case 1:return this.nB;default:return R(S(),a)}};e.p=function(){return tv(this)};e.g=function(){return du(this)};e.c=function(a){if(this===a)return!0;if(a instanceof gT){var b=this.Pa,c=a.Pa;if(null===b?null===c:b.c(c))return b=this.nB,a=a.nB,null===b?null===a:b.c(a)}return!1};e.bB=function(){return new gT(this.Pa,$T(this.ta))};e.cB=function(){var a=this.ta,b=U();U();U();var c=Mx().ot;return VU(b,a,c)}; -e.dB=function(a){var b=this.Pa;var c=U();a=new $x(a,ay());U();var d=Mx().ot;c=by(c,a,d);return new gT(b,c)};gT.prototype.selectByPage=function(...a){switch(a.length|0){case 1:return"string"===typeof a[0]?(a=Zu(L(),a),ZU(this,xc(yc(),a))):ZU(this,a[0]);default:return a=Zu(L(),a),ZU(this,xc(yc(),a))}}; -gT.prototype.select=function(...a){switch(a.length|0){case 3:case 2:case 1:return"string"===typeof a[0]?(a=Zu(L(),a),new FT(nU(this.ta,a,0,0))):WU(this,a[0],void 0===a[1]?0:a[1]|0,void 0===a[2]?0:a[2]|0);default:return a=Zu(L(),a),new FT(nU(this.ta,a,0,0))}};gT.prototype.getDecoration=function(a){return zU(this.ta,a)};gT.prototype.setDecoration=function(a,b){return new gT(this.Pa,yU(this.ta,a,b))};gT.prototype.browse=function(a){return UU(this,a)};gT.prototype.setSerializedString=function(a){return this.dB(a)}; -gT.prototype.getSerializedString=function(){return this.cB()};gT.prototype.sparql_curl=function(){return eU(this.ta)};gT.prototype.sparql_get=function(){return dU(this.ta)};gT.prototype.sparql=function(){return fU(this.ta)};gT.prototype.console=function(){return this.bB()};gT.prototype.remove=function(a){return new gT(this.Pa,XT(this.ta,a))}; -gT.prototype.datatype=function(a,b){var c=this.Pa,d=this.ta;if(!(a instanceof Bg))if("string"===typeof a)Dg(),a=new Bg(a,(Dg(),""));else throw c=Ua(a),b=H(),nc(),b.k()||qe(),new re(c+" can not be cast into IRI.");var f=a;a=d.uc;var g=KT(d),h=d.xd;Me();var l=I(J().u,F());Me();E();var n=F();f=new Cf(b,f,l,G(0,n));Ee();l=I(J().u,F());Ee();E();n=F();b=new ON(a,zT(g,new tg(h,f,b,l,G(0,n)),!1).$a,new dd(d.xd));return new gT(c,b)};gT.prototype.setList=function(...a){a=Zu(L(),a);return TU(this,a)}; -gT.prototype.set=function(a){return new gT(this.Pa,VT(this.ta,Vg(Fg(),a)))};gT.prototype.isLinkFrom=function(a,...b){b=void 0===b[0]?eT(this.ta,"linkFrom"):b[0];return new gT(this.Pa,UT(this.ta,(Fg(),new Jg(a,(Tg(),Dg().yd),(Tg(),""))),b))};gT.prototype.isA=function(a){var b=this.Pa;var c=this.ta;a=Vg(Fg(),a);var d=PT(c,a),f=new Bg("a",(Dg(),"")),g=eT(d,"object");c=LT(VT(ST(d,f,g),a),c.xd);return new gT(b,c)}; -gT.prototype.isLinkTo=function(a,...b){b=void 0===b[0]?eT(this.ta,"linkTo"):b[0];return new gT(this.Pa,TT(this.ta,Vg(Fg(),a),b))};gT.prototype.isObjectOf=function(a,...b){var c=void 0===b[0]?eT(this.ta,"subject"):b[0];b=this.Pa;var d=Vg(Fg(),a);a=PT(this.ta,d);Ne();var f=I(J().u,F());Ne();E();var g=F();c=new Df(c,d,f,G(0,g));c=zT(a,c,!0);return new gT(b,c)};gT.prototype.isSubjectOf=function(a,...b){b=void 0===b[0]?eT(this.ta,"object"):b[0];return new gT(this.Pa,ST(this.ta,Vg(Fg(),a),b))}; -gT.prototype.something=function(...a){a=void 0===a[0]?eT(this.ta,"something"):a[0];return new gT(this.Pa,RT(this.ta,a))};gT.prototype.namedGraph=function(a){var b=this.Pa;var c=this.ta;var d=SU(a);a=c.uc;var f=c.$a;d=new jf(f.D,f.df,f.Hf,f.If.kb(d),f.Le,f.Me,f.xe,f.od,f.Q,f.S);c=new ON(a,d,new dd(c.xd));return new gT(b,c)};gT.prototype.focus=function(...a){switch(a.length|0){case 0:return this.ta.xd;case 1:return new gT(this.Pa,LT(this.ta,a[0]));default:throw"No matching overload";}}; -gT.prototype.root=function(){return new gT(this.Pa,KT(this.ta))};gT.prototype.graph=function(a){var b=this.Pa;var c=this.ta;var d=SU(a);a=c.uc;var f=c.$a;d=new jf(f.D,f.df,f.Hf.kb(d),f.If,f.Le,f.Me,f.xe,f.od,f.Q,f.S);c=new ON(a,d,new dd(c.xd));return new gT(b,c)};gT.prototype.getPrefix=function(a){return $U(this.ta.$a,a)};gT.prototype.prefix=function(a,b){return new gT(this.Pa,NT(this.ta,a,SU(b)))};gT.prototype.getConfig=function(){return this.ta.uc}; -gT.prototype.setConfig=function(a){var b=this.ta;b=new ON(a,b.$a,new dd(b.xd));return new gT(a,b)};Object.defineProperty(gT.prototype,"finder",{get:function(){return new NU(this.ta)},configurable:!0});gT.prototype.bind=function(a){return new cT(this,a)};gT.prototype.helper=function(...a){new aV(this.ta,void 0===a[0]?"":a[0]);return new gT(this.Pa,this.ta)};Object.defineProperty(gT.prototype,"filter",{get:function(){return this.sH},configurable:!0}); -gT.prototype.$classData=x({iU:0},!1,"inrae.semantic_web.SWDiscoveryJs",{iU:1,b:1,z:1,o:1,d:1});function bV(){}bV.prototype=new HK;bV.prototype.constructor=bV;bV.prototype.g=function(){return"SWDiscoveryJs"};bV.prototype.Oe=function(a,b){return new gT(a,b)};bV.prototype.$classData=x({jU:0},!1,"inrae.semantic_web.SWDiscoveryJs$",{jU:1,nS:1,b:1,fB:1,d:1});var cV;function dV(a){this.ya=ma;this.E=0;this.vH=this.wH=this.Fa=null;if(null===a)throw K(L(),null);this.vH=a;JS(this,a)}dV.prototype=new LS; -dV.prototype.constructor=dV;e=dV.prototype;e.Ha=function(a,b){if(0===a)this.wH=b;else throw new D(a);};e.i=function(a){U();this.E="sw"===Ua(a)?0:-1};e.h=function(){var a=this.E;switch(a){case -1:return dM();case 0:Rx();a=this.vH.pU;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=Mx().ot;a=Y(a,b)}}return a;default:throw new D(a);}}; -e.aa=function(){Rx();Mx();var a=new cy(Wx());Mx();ye();var b=fH().g(),c=UB();ye();J();var d=F();d=hh(F(),d);ye();J();var f=F();f=hh(F(),f);ye();J();var g=F();g=hh(F(),g);ye();J();var h=F();h=hh(F(),h);ye();J();var l=F();l=hh(F(),l);ye();J();var n=F();n=hh(F(),n);ye();var r=I(J().u,F());ye();E();var u=F();Z(this,0,new ON(a,new jf(b,c,d,f,g,h,l,n,r,G(0,u)),(Mx(),H())));OS(this,new p(1,0))&&MS(this,1,new (y(ta).M)(["sw"]));return new rU(this.wH)}; -e.$classData=x({oU:0},!1,"inrae.semantic_web.SWTransaction$$anon$1$$anon$2",{oU:1,Na:1,b:1,xa:1,pa:1});function HT(a,b){this.Fn=null;this.Hw=b;if(null===a)throw K(L(),null);this.Fn=a}HT.prototype=new t;HT.prototype.constructor=HT;function IT(a,b){var c=a.Fn.mb,d=new Hf(a.Hw);a=eT(a.Fn.mb,"");Ie();var f=I(J().u,F());Ie();E();var g=F();b=zT(c,new Mf(d,b,a,f,G(0,g)),!1);return new rU(b)} -function GT(a,b){var c=eT(a.Fn.mb,"");pd();var d=I(J().u,F());pd();E();var f=F();return IT(a,new Of(b,c,d,G(0,f)))}e=HT.prototype;e.A=function(){return"ProjectionExpressionIncrement"};e.B=function(){return 1};e.C=function(a){return 0===a?this.Hw:R(S(),a)};e.p=function(){return tv(this)};e.g=function(){return du(this)};e.c=function(a){return this===a?!0:a instanceof HT&&a.Fn===this.Fn?this.Hw===a.Hw:!1}; -e.$classData=x({sU:0},!1,"inrae.semantic_web.SWTransaction$ProjectionExpressionIncrement",{sU:1,b:1,z:1,o:1,d:1});function FT(a){this.pB=null;this.Ue=a;this.pB=es()}FT.prototype=new t;FT.prototype.constructor=FT;function eV(a){Du();var b=Ps(a.Ue.sl,new C((()=>c=>JSON.parse(Hg(c)))(a)),a.pB);return Bu(b,a.pB)}e=FT.prototype;e.A=function(){return"SWTransactionJs"};e.B=function(){return 1};e.C=function(a){return 0===a?this.Ue:R(S(),a)};e.p=function(){return tv(this)};e.g=function(){return du(this)}; -e.c=function(a){if(this===a)return!0;if(a instanceof FT){var b=this.Ue;a=a.Ue;return null===b?null===a:b.c(a)}return!1};e.cB=function(){var a=this.Ue,b=U();U();U();var c=Rx().Iw;return VU(b,a,c)};e.dB=function(a){var b=U();a=new $x(a,ay());U();var c=Rx().Iw;b=by(b,a,c);return new FT(b)};e.bB=function(){var a=$T(this.Ue.mb);a=new rU(a);return new FT(a)};FT.prototype.console=function(){return this.bB()};FT.prototype.setSerializedString=function(a){return this.dB(a)}; -FT.prototype.getSerializedString=function(){return this.cB()};FT.prototype.orderByDesc=function(a){if("string"===typeof a){var b=this.Ue;var c=KT(MT(b.mb,a));var d=J().u;a=[new Hf(a)];d=I(d,qc(new rc,a));b=eT(b.mb,"");Te();a=I(J().u,F());Te();E();var f=F();c=zT(c,new yf(d,b,a,G(0,f)),!1);c=new rU(c);return new FT(c)}if(a&&a.$classData&&a.$classData.Eb.id)return new FT(fV(this.Ue,a));throw"No matching overload";}; -FT.prototype.orderByAsc=function(a){if("string"===typeof a){var b=this.Ue;var c=KT(MT(b.mb,a));var d=J().u;a=[new Hf(a)];d=I(d,qc(new rc,a));b=eT(b.mb,"");Se();a=I(J().u,F());Se();E();var f=F();c=zT(c,new xf(d,b,a,G(0,f)),!1);c=new rU(c);c=new FT(c)}else c=new FT(gV(this.Ue,XU(st(),YU(new Iu,a))));return c};FT.prototype.offset=function(a){return new FT(pU(this.Ue,a|0))};FT.prototype.limit=function(a){return new FT(qU(this.Ue,a|0))}; -FT.prototype.reduced=function(){var a=this.Ue;var b=KT(a.mb);a=eT(a.mb,"");Xe();var c=I(J().u,F());Xe();E();var d=F();b=zT(b,new vf(a,c,G(0,d)),!1);b=new rU(b);return new FT(b)};FT.prototype.distinct=function(){return new FT(JU(this.Ue))};FT.prototype.aggregate=function(a){return new ET(this,a)};FT.prototype.raw=function(){return eV(this)};FT.prototype.commit=function(){return new FT(EU(this.Ue))}; -FT.prototype.abort=function(){var a=this.Ue;a.Lw=Ay().GH.g();a=a.Gn;var b=H();nc();b.k()||qe();b=new re("aborted by the user.");Ys(a,b)};FT.prototype.requestEvent=function(a){var b=this.Ue;a=HR(ny(),a);b.Kw=b.Kw.kb(a);return new FT(b)};FT.prototype.progression=function(a){var b=this.Ue;a=HR(ny(),a);b.Jw=b.Jw.kb(a);return new FT(b)};FT.prototype.$classData=x({tU:0},!1,"inrae.semantic_web.SWTransactionJs",{tU:1,b:1,z:1,o:1,d:1});function cy(a){this.Wd=a}cy.prototype=new t;cy.prototype.constructor=cy; -e=cy.prototype;e.g=function(){return this.Wd.g()};e.A=function(){return"StatementConfiguration"};e.B=function(){return 1};e.C=function(a){return 0===a?this.Wd:R(S(),a)};e.p=function(){return tv(this)};e.c=function(a){if(this===a)return!0;if(a instanceof cy){var b=this.Wd;a=a.Wd;return null===b?null===a:b.c(a)}return!1};e.$classData=x({vU:0},!1,"inrae.semantic_web.StatementConfiguration",{vU:1,b:1,z:1,o:1,d:1}); -function hV(a){this.ya=ma;this.E=0;this.yH=this.zH=this.Fa=null;if(null===a)throw K(L(),null);this.yH=a;JS(this,a)}hV.prototype=new LS;hV.prototype.constructor=hV;e=hV.prototype;e.Ha=function(a,b){if(0===a)this.zH=b;else throw new D(a);};e.i=function(a){U();this.E="conf"===Ua(a)?0:-1};e.h=function(){var a=this.E;switch(a){case -1:return dM();case 0:Xx();a=this.yH.zU;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=Gx().Ew;a=Y(a,b)}}return a;default:throw new D(a);}}; -e.aa=function(){Z(this,0,Wx());OS(this,new p(1,0))&&MS(this,1,new (y(ta).M)(["conf"]));return new cy(this.zH)};e.$classData=x({yU:0},!1,"inrae.semantic_web.StatementConfiguration$$anon$13$$anon$14",{yU:1,Na:1,b:1,xa:1,pa:1});function zy(a){this.vq=a}zy.prototype=new t;zy.prototype.constructor=zy;e=zy.prototype;e.A=function(){return"DiscoveryRequestEvent"};e.B=function(){return 1};e.C=function(a){return 0===a?this.vq:R(S(),a)};e.p=function(){return tv(this)};e.g=function(){return du(this)}; -e.c=function(a){if(this===a)return!0;if(a instanceof zy){var b=this.vq;a=a.vq;return null===b?null===a:b.c(a)}return!1};e.$classData=x({OU:0},!1,"inrae.semantic_web.event.DiscoveryRequestEvent",{OU:1,b:1,z:1,o:1,d:1});function iV(a){this.ya=ma;this.E=0;this.Ww=this.KH=this.JH=this.IH=this.Fa=null;if(null===a)throw K(L(),null);this.Ww=a;JS(this,a)}iV.prototype=new LS;iV.prototype.constructor=iV;e=iV.prototype; -e.Ha=function(a,b){switch(a){case 0:this.IH=b;break;case 1:this.JH=b;break;case 2:this.KH=b;break;default:throw new D(a);}};e.i=function(a){U();a=Ua(a);this.E="idRef"===a?0:"children"===a?1:"decorations"===a?2:-1}; -e.h=function(){var a=this.E;switch(a){case -1:return dM();case 0:Wd();a=this.Ww.UU;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=U().H;a=Y(a,b)}}return a;case 1:Wd();a=this.Ww.VU;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{b=U();var c=Je().ba,d=rt();b=new mT(b,new VO(d),c);a=Y(a,b)}}return a;case 2:Wd();a=this.Ww.WU;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=U(),c=U().H,d=U().H,b=jV(b,c,d),a=Y(a,b))}return a;default:throw new D(a);}}; -e.aa=function(){Z(this,1,(Wd(),I(J().u,F())));Wd();E();var a=F();Z(this,2,G(0,a));OS(this,new p(7,0))&&MS(this,3,new (y(ta).M)(["idRef","children","decorations"]));return new Rf(this.IH,this.JH,this.KH)};e.$classData=x({TU:0},!1,"inrae.semantic_web.node.Abs$$anon$109$$anon$110",{TU:1,Na:1,b:1,xa:1,pa:1});function kV(a){this.ya=ma;this.E=0;this.ut=this.PH=this.OH=this.NH=this.MH=this.Fa=null;if(null===a)throw K(L(),null);this.ut=a;JS(this,a)}kV.prototype=new LS;kV.prototype.constructor=kV;e=kV.prototype; -e.Ha=function(a,b){switch(a){case 0:this.MH=b;break;case 1:this.NH=b;break;case 2:this.OH=b;break;case 3:this.PH=b;break;default:throw new D(a);}};e.i=function(a){U();a=Ua(a);this.E="expression"===a?0:"idRef"===a?1:"children"===a?2:"decorations"===a?3:-1}; -e.h=function(){var a=this.E;switch(a){case -1:return dM();case 0:Ge();a=this.ut.dV;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=Bd().cx;a=Y(a,b)}}return a;case 1:Ge();a=this.ut.eV;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=U().H,a=Y(a,b))}return a;case 2:Ge();a=this.ut.fV;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{b=U();var c=Je().ba,d=rt();b=new mT(b,new VO(d),c);a=Y(a,b)}}return a;case 3:Ge();a=this.ut.gV;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a= -a.f:(b=U(),c=U().H,d=U().H,b=jV(b,c,d),a=Y(a,b))}return a;default:throw new D(a);}};e.aa=function(){Z(this,2,(Ge(),I(J().u,F())));Ge();E();var a=F();Z(this,3,G(0,a));OS(this,new p(15,0))&&MS(this,4,new (y(ta).M)(["expression","idRef","children","decorations"]));return new kf(this.MH,this.NH,this.OH,this.PH)};e.$classData=x({cV:0},!1,"inrae.semantic_web.node.Bind$$anon$97$$anon$98",{cV:1,Na:1,b:1,xa:1,pa:1});function lV(){this.he=this.ge=this.oe=this.S=this.Q=this.D=null}lV.prototype=new XN; -lV.prototype.constructor=lV;function mV(){}mV.prototype=lV.prototype;lV.prototype.$g=function(){return!1};function nV(a){this.ya=ma;this.E=0;this.Zw=this.UH=this.TH=this.SH=this.Fa=null;if(null===a)throw K(L(),null);this.Zw=a;JS(this,a)}nV.prototype=new LS;nV.prototype.constructor=nV;e=nV.prototype;e.Ha=function(a,b){switch(a){case 0:this.SH=b;break;case 1:this.TH=b;break;case 2:this.UH=b;break;default:throw new D(a);}}; -e.i=function(a){U();a=Ua(a);this.E="idRef"===a?0:"children"===a?1:"decorations"===a?2:-1}; -e.h=function(){var a=this.E;switch(a){case -1:return dM();case 0:Yd();a=this.Zw.nV;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=U().H;a=Y(a,b)}}return a;case 1:Yd();a=this.Zw.oV;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{b=U();var c=Je().ba,d=rt();b=new mT(b,new VO(d),c);a=Y(a,b)}}return a;case 2:Yd();a=this.Zw.pV;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=U(),c=U().H,d=U().H,b=jV(b,c,d),a=Y(a,b))}return a;default:throw new D(a);}}; -e.aa=function(){Z(this,1,(Yd(),I(J().u,F())));Yd();E();var a=F();Z(this,2,G(0,a));OS(this,new p(7,0))&&MS(this,3,new (y(ta).M)(["idRef","children","decorations"]));return new Uf(this.SH,this.TH,this.UH)};e.$classData=x({mV:0},!1,"inrae.semantic_web.node.Ceil$$anon$115$$anon$116",{mV:1,Na:1,b:1,xa:1,pa:1});function oV(a){this.ya=ma;this.E=0;this.WH=this.Fa=null;this.XH=!1;this.zq=this.$H=this.ZH=this.YH=null;if(null===a)throw K(L(),null);this.zq=a;JS(this,a)}oV.prototype=new LS; -oV.prototype.constructor=oV;e=oV.prototype;e.Ha=function(a,b){switch(a){case 0:this.WH=b;break;case 1:this.XH=!!b;break;case 2:this.YH=b;break;case 3:this.ZH=b;break;case 4:this.$H=b;break;default:throw new D(a);}};e.i=function(a){U();a=Ua(a);this.E="value"===a?0:"negation"===a?1:"idRef"===a?2:"children"===a?3:"decorations"===a?4:-1}; -e.h=function(){var a=this.E;switch(a){case -1:return dM();case 0:Jd();a=this.zq.vV;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=Fg().db;a=Y(a,b)}}return a;case 1:Jd();a=this.zq.wV;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=U().rf,a=Y(a,b))}return a;case 2:Jd();a=this.zq.xV;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=U().H,a=Y(a,b))}return a;case 3:Jd();a=this.zq.yV;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{b=U();var c=Je().ba,d=rt();b=new mT(b, -new VO(d),c);a=Y(a,b)}}return a;case 4:Jd();a=this.zq.zV;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=U(),c=U().H,d=U().H,b=jV(b,c,d),a=Y(a,b))}return a;default:throw new D(a);}};e.aa=function(){Z(this,3,(Jd(),I(J().u,F())));Jd();E();var a=F();Z(this,4,G(0,a));OS(this,new p(31,0))&&MS(this,5,new (y(ta).M)(["value","negation","idRef","children","decorations"]));return new ag(this.WH,this.XH,this.YH,this.ZH,this.$H)}; -e.$classData=x({uV:0},!1,"inrae.semantic_web.node.Contains$$anon$43$$anon$44",{uV:1,Na:1,b:1,xa:1,pa:1});function pV(a){this.ya=ma;this.E=0;this.bI=this.Fa=null;this.cI=!1;this.Aq=this.fI=this.eI=this.dI=null;if(null===a)throw K(L(),null);this.Aq=a;JS(this,a)}pV.prototype=new LS;pV.prototype.constructor=pV;e=pV.prototype;e.Ha=function(a,b){switch(a){case 0:this.bI=b;break;case 1:this.cI=!!b;break;case 2:this.dI=b;break;case 3:this.eI=b;break;case 4:this.fI=b;break;default:throw new D(a);}}; -e.i=function(a){U();a=Ua(a);this.E="varToCount"===a?0:"distinct"===a?1:"idRef"===a?2:"children"===a?3:"decorations"===a?4:-1}; -e.h=function(){var a=this.E;switch(a){case -1:return dM();case 0:od();a=this.Aq.FV;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=Ug().Vh;a=Y(a,b)}}return a;case 1:od();a=this.Aq.GV;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=U().rf,a=Y(a,b))}return a;case 2:od();a=this.Aq.HV;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=U().H,a=Y(a,b))}return a;case 3:od();a=this.Aq.IV;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{b=U();var c=Je().ba,d=rt();b=new mT(b, -new VO(d),c);a=Y(a,b)}}return a;case 4:od();a=this.Aq.JV;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=U(),c=U().H,d=U().H,b=jV(b,c,d),a=Y(a,b))}return a;default:throw new D(a);}};e.aa=function(){Z(this,1,(od(),!1));Z(this,3,(od(),I(J().u,F())));od();E();var a=F();Z(this,4,G(0,a));OS(this,new p(31,0))&&MS(this,5,new (y(ta).M)(["varToCount","distinct","idRef","children","decorations"]));return new Nf(this.bI,this.cI,this.dI,this.eI,this.fI)}; -e.$classData=x({EV:0},!1,"inrae.semantic_web.node.Count$$anon$130$$anon$131",{EV:1,Na:1,b:1,xa:1,pa:1});function qV(a){this.ya=ma;this.E=0;this.Fa=null;this.hI=!1;this.vt=this.kI=this.jI=this.iI=null;if(null===a)throw K(L(),null);this.vt=a;JS(this,a)}qV.prototype=new LS;qV.prototype.constructor=qV;e=qV.prototype;e.Ha=function(a,b){switch(a){case 0:this.hI=!!b;break;case 1:this.iI=b;break;case 2:this.jI=b;break;case 3:this.kI=b;break;default:throw new D(a);}}; -e.i=function(a){U();a=Ua(a);this.E="distinct"===a?0:"idRef"===a?1:"children"===a?2:"decorations"===a?3:-1}; -e.h=function(){var a=this.E;switch(a){case -1:return dM();case 0:pd();a=this.vt.PV;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=U().rf;a=Y(a,b)}}return a;case 1:pd();a=this.vt.QV;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=U().H,a=Y(a,b))}return a;case 2:pd();a=this.vt.RV;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{b=U();var c=Je().ba,d=rt();b=new mT(b,new VO(d),c);a=Y(a,b)}}return a;case 3:pd();a=this.vt.SV;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f: -(b=U(),c=U().H,d=U().H,b=jV(b,c,d),a=Y(a,b))}return a;default:throw new D(a);}};e.aa=function(){Z(this,0,(pd(),!1));Z(this,2,(pd(),I(J().u,F())));pd();E();var a=F();Z(this,3,G(0,a));OS(this,new p(15,0))&&MS(this,4,new (y(ta).M)(["distinct","idRef","children","decorations"]));return new Of(this.hI,this.iI,this.jI,this.kI)};e.$classData=x({OV:0},!1,"inrae.semantic_web.node.CountAll$$anon$133$$anon$134",{OV:1,Na:1,b:1,xa:1,pa:1}); -function rV(a){this.ya=ma;this.E=0;this.$w=this.oI=this.nI=this.mI=this.Fa=null;if(null===a)throw K(L(),null);this.$w=a;JS(this,a)}rV.prototype=new LS;rV.prototype.constructor=rV;e=rV.prototype;e.Ha=function(a,b){switch(a){case 0:this.mI=b;break;case 1:this.nI=b;break;case 2:this.oI=b;break;default:throw new D(a);}};e.i=function(a){U();a=Ua(a);this.E="idRef"===a?0:"children"===a?1:"decorations"===a?2:-1}; -e.h=function(){var a=this.E;switch(a){case -1:return dM();case 0:ge();a=this.$w.YV;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=U().H;a=Y(a,b)}}return a;case 1:ge();a=this.$w.ZV;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{b=U();var c=Je().ba,d=rt();b=new mT(b,new VO(d),c);a=Y(a,b)}}return a;case 2:ge();a=this.$w.$V;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=U(),c=U().H,d=U().H,b=jV(b,c,d),a=Y(a,b))}return a;default:throw new D(a);}}; -e.aa=function(){Z(this,1,(ge(),I(J().u,F())));ge();E();var a=F();Z(this,2,G(0,a));OS(this,new p(7,0))&&MS(this,3,new (y(ta).M)(["idRef","children","decorations"]));return new Wf(this.mI,this.nI,this.oI)};e.$classData=x({XV:0},!1,"inrae.semantic_web.node.Datatype$$anon$124$$anon$125",{XV:1,Na:1,b:1,xa:1,pa:1});function sV(a){this.ya=ma;this.E=0;this.Bq=this.uI=this.tI=this.sI=this.rI=this.qI=this.Fa=null;if(null===a)throw K(L(),null);this.Bq=a;JS(this,a)}sV.prototype=new LS; -sV.prototype.constructor=sV;e=sV.prototype;e.Ha=function(a,b){switch(a){case 0:this.qI=b;break;case 1:this.rI=b;break;case 2:this.sI=b;break;case 3:this.tI=b;break;case 4:this.uI=b;break;default:throw new D(a);}};e.i=function(a){U();a=Ua(a);this.E="refNode"===a?0:"property"===a?1:"idRef"===a?2:"children"===a?3:"decorations"===a?4:-1}; -e.h=function(){var a=this.E;switch(a){case -1:return dM();case 0:Ee();a=this.Bq.fW;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=U().H;a=Y(a,b)}}return a;case 1:Ee();a=this.Bq.gW;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=Me().mx,a=Y(a,b))}return a;case 2:Ee();a=this.Bq.hW;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=U().H,a=Y(a,b))}return a;case 3:Ee();a=this.Bq.iW;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{b=U();var c=Je().ba,d=rt();b=new mT(b, -new VO(d),c);a=Y(a,b)}}return a;case 4:Ee();a=this.Bq.jW;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=U(),c=U().H,d=U().H,b=jV(b,c,d),a=Y(a,b))}return a;default:throw new D(a);}};e.aa=function(){Z(this,3,(Ee(),I(J().u,F())));Ee();E();var a=F();Z(this,4,G(0,a));OS(this,new p(31,0))&&MS(this,5,new (y(ta).M)(["refNode","property","idRef","children","decorations"]));return new tg(this.qI,this.rI,this.sI,this.tI,this.uI)}; -e.$classData=x({eW:0},!1,"inrae.semantic_web.node.DatatypeNode$$anon$70$$anon$71",{eW:1,Na:1,b:1,xa:1,pa:1});function tV(a){this.ya=ma;this.E=0;this.bx=this.xI=this.wI=this.vI=this.Fa=null;if(null===a)throw K(L(),null);this.bx=a;JS(this,a)}tV.prototype=new LS;tV.prototype.constructor=tV;e=tV.prototype;e.Ha=function(a,b){switch(a){case 0:this.vI=b;break;case 1:this.wI=b;break;case 2:this.xI=b;break;default:throw new D(a);}}; -e.i=function(a){U();a=Ua(a);this.E="idRef"===a?0:"children"===a?1:"decorations"===a?2:-1}; -e.h=function(){var a=this.E;switch(a){case -1:return dM();case 0:We();a=this.bx.pW;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=U().H;a=Y(a,b)}}return a;case 1:We();a=this.bx.qW;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{b=U();var c=Je().ba,d=rt();b=new mT(b,new VO(d),c);a=Y(a,b)}}return a;case 2:We();a=this.bx.rW;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=U(),c=U().H,d=U().H,b=jV(b,c,d),a=Y(a,b))}return a;default:throw new D(a);}}; -e.aa=function(){Z(this,1,(We(),I(J().u,F())));We();E();var a=F();Z(this,2,G(0,a));OS(this,new p(7,0))&&MS(this,3,new (y(ta).M)(["idRef","children","decorations"]));return new tf(this.vI,this.wI,this.xI)};e.$classData=x({oW:0},!1,"inrae.semantic_web.node.Distinct$$anon$85$$anon$86",{oW:1,Na:1,b:1,xa:1,pa:1});function uV(a){this.ya=ma;this.E=0;this.zI=this.Fa=null;this.AI=!1;this.Dq=this.DI=this.CI=this.BI=null;if(null===a)throw K(L(),null);this.Dq=a;JS(this,a)}uV.prototype=new LS; -uV.prototype.constructor=uV;e=uV.prototype;e.Ha=function(a,b){switch(a){case 0:this.zI=b;break;case 1:this.AI=!!b;break;case 2:this.BI=b;break;case 3:this.CI=b;break;case 4:this.DI=b;break;default:throw new D(a);}};e.i=function(a){U();a=Ua(a);this.E="value"===a?0:"negation"===a?1:"idRef"===a?2:"children"===a?3:"decorations"===a?4:-1}; -e.h=function(){var a=this.E;switch(a){case -1:return dM();case 0:Od();a=this.Dq.xW;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=Fg().db;a=Y(a,b)}}return a;case 1:Od();a=this.Dq.yW;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=U().rf,a=Y(a,b))}return a;case 2:Od();a=this.Dq.zW;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=U().H,a=Y(a,b))}return a;case 3:Od();a=this.Dq.AW;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{b=U();var c=Je().ba,d=rt();b=new mT(b, -new VO(d),c);a=Y(a,b)}}return a;case 4:Od();a=this.Dq.BW;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=U(),c=U().H,d=U().H,b=jV(b,c,d),a=Y(a,b))}return a;default:throw new D(a);}};e.aa=function(){Z(this,3,(Od(),I(J().u,F())));Od();E();var a=F();Z(this,4,G(0,a));OS(this,new p(31,0))&&MS(this,5,new (y(ta).M)(["value","negation","idRef","children","decorations"]));return new dg(this.zI,this.AI,this.BI,this.CI,this.DI)}; -e.$classData=x({wW:0},!1,"inrae.semantic_web.node.Equal$$anon$52$$anon$53",{wW:1,Na:1,b:1,xa:1,pa:1});function vV(a){this.ya=ma;this.E=0;this.dx=this.II=this.HI=this.GI=this.Fa=null;if(null===a)throw K(L(),null);this.dx=a;JS(this,a)}vV.prototype=new LS;vV.prototype.constructor=vV;e=vV.prototype;e.Ha=function(a,b){switch(a){case 0:this.GI=b;break;case 1:this.HI=b;break;case 2:this.II=b;break;default:throw new D(a);}}; -e.i=function(a){U();a=Ua(a);this.E="idRef"===a?0:"children"===a?1:"decorations"===a?2:-1}; -e.h=function(){var a=this.E;switch(a){case -1:return dM();case 0:Zd();a=this.dx.JW;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=U().H;a=Y(a,b)}}return a;case 1:Zd();a=this.dx.KW;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{b=U();var c=Je().ba,d=rt();b=new mT(b,new VO(d),c);a=Y(a,b)}}return a;case 2:Zd();a=this.dx.LW;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=U(),c=U().H,d=U().H,b=jV(b,c,d),a=Y(a,b))}return a;default:throw new D(a);}}; -e.aa=function(){Z(this,1,(Zd(),I(J().u,F())));Zd();E();var a=F();Z(this,2,G(0,a));OS(this,new p(7,0))&&MS(this,3,new (y(ta).M)(["idRef","children","decorations"]));return new Tf(this.GI,this.HI,this.II)};e.$classData=x({IW:0},!1,"inrae.semantic_web.node.Floor$$anon$118$$anon$119",{IW:1,Na:1,b:1,xa:1,pa:1});function wV(){this.he=this.ge=this.oe=this.S=this.Q=this.D=null}wV.prototype=new XN;wV.prototype.constructor=wV;function xV(){}xV.prototype=wV.prototype; -function yV(){this.he=this.ge=this.oe=this.S=this.Q=this.D=null}yV.prototype=new XN;yV.prototype.constructor=yV;function zV(){}zV.prototype=yV.prototype;function AV(){this.he=this.ge=this.oe=this.S=this.Q=this.D=null}AV.prototype=new XN;AV.prototype.constructor=AV;function BV(){}BV.prototype=AV.prototype;function CV(a){this.ya=ma;this.E=0;this.NI=this.Fa=null;this.OI=!1;this.Fq=this.RI=this.QI=this.PI=null;if(null===a)throw K(L(),null);this.Fq=a;JS(this,a)}CV.prototype=new LS; -CV.prototype.constructor=CV;e=CV.prototype;e.Ha=function(a,b){switch(a){case 0:this.NI=b;break;case 1:this.OI=!!b;break;case 2:this.PI=b;break;case 3:this.QI=b;break;case 4:this.RI=b;break;default:throw new D(a);}};e.i=function(a){U();a=Ua(a);this.E="value"===a?0:"negation"===a?1:"idRef"===a?2:"children"===a?3:"decorations"===a?4:-1}; -e.h=function(){var a=this.E;switch(a){case -1:return dM();case 0:Qd();a=this.Fq.VW;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=Fg().db;a=Y(a,b)}}return a;case 1:Qd();a=this.Fq.WW;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=U().rf,a=Y(a,b))}return a;case 2:Qd();a=this.Fq.XW;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=U().H,a=Y(a,b))}return a;case 3:Qd();a=this.Fq.YW;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{b=U();var c=Je().ba,d=rt();b=new mT(b, -new VO(d),c);a=Y(a,b)}}return a;case 4:Qd();a=this.Fq.ZW;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=U(),c=U().H,d=U().H,b=jV(b,c,d),a=Y(a,b))}return a;default:throw new D(a);}};e.aa=function(){Z(this,3,(Qd(),I(J().u,F())));Qd();E();var a=F();Z(this,4,G(0,a));OS(this,new p(31,0))&&MS(this,5,new (y(ta).M)(["value","negation","idRef","children","decorations"]));return new fg(this.NI,this.OI,this.PI,this.QI,this.RI)}; -e.$classData=x({UW:0},!1,"inrae.semantic_web.node.Inf$$anon$58$$anon$59",{UW:1,Na:1,b:1,xa:1,pa:1});function DV(a){this.ya=ma;this.E=0;this.TI=this.Fa=null;this.UI=!1;this.Gq=this.XI=this.WI=this.VI=null;if(null===a)throw K(L(),null);this.Gq=a;JS(this,a)}DV.prototype=new LS;DV.prototype.constructor=DV;e=DV.prototype;e.Ha=function(a,b){switch(a){case 0:this.TI=b;break;case 1:this.UI=!!b;break;case 2:this.VI=b;break;case 3:this.WI=b;break;case 4:this.XI=b;break;default:throw new D(a);}}; -e.i=function(a){U();a=Ua(a);this.E="value"===a?0:"negation"===a?1:"idRef"===a?2:"children"===a?3:"decorations"===a?4:-1}; -e.h=function(){var a=this.E;switch(a){case -1:return dM();case 0:Rd();a=this.Gq.eX;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=Fg().db;a=Y(a,b)}}return a;case 1:Rd();a=this.Gq.fX;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=U().rf,a=Y(a,b))}return a;case 2:Rd();a=this.Gq.gX;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=U().H,a=Y(a,b))}return a;case 3:Rd();a=this.Gq.hX;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{b=U();var c=Je().ba,d=rt();b=new mT(b, -new VO(d),c);a=Y(a,b)}}return a;case 4:Rd();a=this.Gq.iX;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=U(),c=U().H,d=U().H,b=jV(b,c,d),a=Y(a,b))}return a;default:throw new D(a);}};e.aa=function(){Z(this,3,(Rd(),I(J().u,F())));Rd();E();var a=F();Z(this,4,G(0,a));OS(this,new p(31,0))&&MS(this,5,new (y(ta).M)(["value","negation","idRef","children","decorations"]));return new gg(this.TI,this.UI,this.VI,this.WI,this.XI)}; -e.$classData=x({dX:0},!1,"inrae.semantic_web.node.InfEqual$$anon$61$$anon$62",{dX:1,Na:1,b:1,xa:1,pa:1});function EV(a){this.ya=ma;this.E=0;this.wt=this.bJ=this.aJ=this.$I=this.ZI=this.Fa=null;if(null===a)throw K(L(),null);this.wt=a;JS(this,a)}EV.prototype=new LS;EV.prototype.constructor=EV;e=EV.prototype;e.Ha=function(a,b){switch(a){case 0:this.ZI=b;break;case 1:this.$I=b;break;case 2:this.aJ=b;break;case 3:this.bJ=b;break;default:throw new D(a);}}; -e.i=function(a){U();a=Ua(a);this.E="term"===a?0:"idRef"===a?1:"children"===a?2:"decorations"===a?3:-1}; -e.h=function(){var a=this.E;switch(a){case -1:return dM();case 0:vd();a=this.wt.oX;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=Fg().db;a=Y(a,b)}}return a;case 1:vd();a=this.wt.pX;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=U().H,a=Y(a,b))}return a;case 2:vd();a=this.wt.qX;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{b=U();var c=Je().ba,d=rt();b=new mT(b,new VO(d),c);a=Y(a,b)}}return a;case 3:vd();a=this.wt.rX;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a= -a.f:(b=U(),c=U().H,d=U().H,b=jV(b,c,d),a=Y(a,b))}return a;default:throw new D(a);}};e.aa=function(){Z(this,2,(vd(),I(J().u,F())));vd();E();var a=F();Z(this,3,G(0,a));OS(this,new p(15,0))&&MS(this,4,new (y(ta).M)(["term","idRef","children","decorations"]));return new Yf(this.ZI,this.$I,this.aJ,this.bJ)};e.$classData=x({nX:0},!1,"inrae.semantic_web.node.Lang$$anon$139$$anon$140",{nX:1,Na:1,b:1,xa:1,pa:1}); -function FV(a){this.ya=ma;this.E=0;this.xt=this.gJ=this.fJ=this.eJ=this.dJ=this.Fa=null;if(null===a)throw K(L(),null);this.xt=a;JS(this,a)}FV.prototype=new LS;FV.prototype.constructor=FV;e=FV.prototype;e.Ha=function(a,b){switch(a){case 0:this.dJ=b;break;case 1:this.eJ=b;break;case 2:this.fJ=b;break;case 3:this.gJ=b;break;default:throw new D(a);}};e.i=function(a){U();a=Ua(a);this.E="term"===a?0:"idRef"===a?1:"children"===a?2:"decorations"===a?3:-1}; -e.h=function(){var a=this.E;switch(a){case -1:return dM();case 0:wd();a=this.xt.xX;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=Fg().db;a=Y(a,b)}}return a;case 1:wd();a=this.xt.yX;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=U().H,a=Y(a,b))}return a;case 2:wd();a=this.xt.zX;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{b=U();var c=Je().ba,d=rt();b=new mT(b,new VO(d),c);a=Y(a,b)}}return a;case 3:wd();a=this.xt.AX;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a= -a.f:(b=U(),c=U().H,d=U().H,b=jV(b,c,d),a=Y(a,b))}return a;default:throw new D(a);}};e.aa=function(){Z(this,2,(wd(),I(J().u,F())));wd();E();var a=F();Z(this,3,G(0,a));OS(this,new p(15,0))&&MS(this,4,new (y(ta).M)(["term","idRef","children","decorations"]));return new Zf(this.dJ,this.eJ,this.fJ,this.gJ)};e.$classData=x({wX:0},!1,"inrae.semantic_web.node.LangMatches$$anon$142$$anon$143",{wX:1,Na:1,b:1,xa:1,pa:1}); -function GV(a){this.ya=ma;this.E=0;this.Fa=null;this.iJ=0;this.yt=this.lJ=this.kJ=this.jJ=null;if(null===a)throw K(L(),null);this.yt=a;JS(this,a)}GV.prototype=new LS;GV.prototype.constructor=GV;e=GV.prototype;e.Ha=function(a,b){switch(a){case 0:this.iJ=b|0;break;case 1:this.jJ=b;break;case 2:this.kJ=b;break;case 3:this.lJ=b;break;default:throw new D(a);}};e.i=function(a){U();a=Ua(a);this.E="value"===a?0:"idRef"===a?1:"children"===a?2:"decorations"===a?3:-1}; -e.h=function(){var a=this.E;switch(a){case -1:return dM();case 0:Ze();a=this.yt.GX;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=U().Fu;a=Y(a,b)}}return a;case 1:Ze();a=this.yt.HX;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=U().H,a=Y(a,b))}return a;case 2:Ze();a=this.yt.IX;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{b=U();var c=Je().ba,d=rt();b=new mT(b,new VO(d),c);a=Y(a,b)}}return a;case 3:Ze();a=this.yt.JX;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f: -(b=U(),c=U().H,d=U().H,b=jV(b,c,d),a=Y(a,b))}return a;default:throw new D(a);}};e.aa=function(){Z(this,2,(Ze(),I(J().u,F())));Ze();E();var a=F();Z(this,3,G(0,a));OS(this,new p(15,0))&&MS(this,4,new (y(ta).M)(["value","idRef","children","decorations"]));return new zf(this.iJ,this.jJ,this.kJ,this.lJ)};e.$classData=x({FX:0},!1,"inrae.semantic_web.node.Limit$$anon$94$$anon$95",{FX:1,Na:1,b:1,xa:1,pa:1}); -function HV(a){this.ya=ma;this.E=0;this.zt=this.qJ=this.pJ=this.oJ=this.nJ=this.Fa=null;if(null===a)throw K(L(),null);this.zt=a;JS(this,a)}HV.prototype=new LS;HV.prototype.constructor=HV;e=HV.prototype;e.Ha=function(a,b){switch(a){case 0:this.nJ=b;break;case 1:this.oJ=b;break;case 2:this.pJ=b;break;case 3:this.qJ=b;break;default:throw new D(a);}};e.i=function(a){U();a=Ua(a);this.E="idRef"===a?0:"term"===a?1:"children"===a?2:"decorations"===a?3:-1}; -e.h=function(){var a=this.E;switch(a){case -1:return dM();case 0:Pe();a=this.zt.PX;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=U().H;a=Y(a,b)}}return a;case 1:Pe();a=this.zt.QX;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=Fg().db,a=Y(a,b))}return a;case 2:Pe();a=this.zt.RX;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{b=U();var c=Je().ba,d=rt();b=new mT(b,new VO(d),c);a=Y(a,b)}}return a;case 3:Pe();a=this.zt.SX;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a= -a.f:(b=U(),c=U().H,d=U().H,b=jV(b,c,d),a=Y(a,b))}return a;default:throw new D(a);}};e.aa=function(){Z(this,2,(Pe(),I(J().u,F())));Pe();E();var a=F();Z(this,3,G(0,a));OS(this,new p(15,0))&&MS(this,4,new (y(ta).M)(["idRef","term","children","decorations"]));return new Ff(this.nJ,this.oJ,this.pJ,this.qJ)};e.$classData=x({OX:0},!1,"inrae.semantic_web.node.LinkFrom$$anon$16$$anon$17",{OX:1,Na:1,b:1,xa:1,pa:1}); -function IV(a){this.ya=ma;this.E=0;this.At=this.vJ=this.uJ=this.tJ=this.sJ=this.Fa=null;if(null===a)throw K(L(),null);this.At=a;JS(this,a)}IV.prototype=new LS;IV.prototype.constructor=IV;e=IV.prototype;e.Ha=function(a,b){switch(a){case 0:this.sJ=b;break;case 1:this.tJ=b;break;case 2:this.uJ=b;break;case 3:this.vJ=b;break;default:throw new D(a);}};e.i=function(a){U();a=Ua(a);this.E="idRef"===a?0:"term"===a?1:"children"===a?2:"decorations"===a?3:-1}; -e.h=function(){var a=this.E;switch(a){case -1:return dM();case 0:Oe();a=this.At.YX;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=U().H;a=Y(a,b)}}return a;case 1:Oe();a=this.At.ZX;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=Fg().db,a=Y(a,b))}return a;case 2:Oe();a=this.At.$X;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{b=U();var c=Je().ba,d=rt();b=new mT(b,new VO(d),c);a=Y(a,b)}}return a;case 3:Oe();a=this.At.aY;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a= -a.f:(b=U(),c=U().H,d=U().H,b=jV(b,c,d),a=Y(a,b))}return a;default:throw new D(a);}};e.aa=function(){Z(this,2,(Oe(),I(J().u,F())));Oe();E();var a=F();Z(this,3,G(0,a));OS(this,new p(15,0))&&MS(this,4,new (y(ta).M)(["idRef","term","children","decorations"]));return new Ef(this.sJ,this.tJ,this.uJ,this.vJ)};e.$classData=x({XX:0},!1,"inrae.semantic_web.node.LinkTo$$anon$13$$anon$14",{XX:1,Na:1,b:1,xa:1,pa:1}); -function JV(a){this.ya=ma;this.E=0;this.Bt=this.AJ=this.zJ=this.yJ=this.xJ=this.Fa=null;if(null===a)throw K(L(),null);this.Bt=a;JS(this,a)}JV.prototype=new LS;JV.prototype.constructor=JV;e=JV.prototype;e.Ha=function(a,b){switch(a){case 0:this.xJ=b;break;case 1:this.yJ=b;break;case 2:this.zJ=b;break;case 3:this.AJ=b;break;default:throw new D(a);}};e.i=function(a){U();a=Ua(a);this.E="terms"===a?0:"idRef"===a?1:"children"===a?2:"decorations"===a?3:-1}; -e.h=function(){var a=this.E;switch(a){case -1:return dM();case 0:De();a=this.Bt.gY;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=U(),c=Fg().db,d=rt();b=new mT(b,new VO(d),c);a=Y(a,b)}}return a;case 1:De();a=this.Bt.hY;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=U().H,a=Y(a,b))}return a;case 2:De();a=this.Bt.iY;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=U(),c=Je().ba,d=rt(),b=new mT(b,new VO(d),c),a=Y(a,b))}return a;case 3:De();a=this.Bt.jY;if(a.e)a=a.f;else{if(null=== -a)throw P();a.e?a=a.f:(b=U(),c=U().H,d=U().H,b=jV(b,c,d),a=Y(a,b))}return a;default:throw new D(a);}};e.aa=function(){Z(this,1,(De(),fH().g()));Z(this,2,(De(),I(J().u,F())));De();E();var a=F();Z(this,3,G(0,a));OS(this,new p(15,0))&&MS(this,4,new (y(ta).M)(["terms","idRef","children","decorations"]));return new If(this.xJ,this.yJ,this.zJ,this.AJ)};e.$classData=x({fY:0},!1,"inrae.semantic_web.node.ListValues$$anon$22$$anon$23",{fY:1,Na:1,b:1,xa:1,pa:1}); -function KV(a){this.ya=ma;this.E=0;this.Ct=this.GJ=this.FJ=this.EJ=this.DJ=this.Fa=null;if(null===a)throw K(L(),null);this.Ct=a;JS(this,a)}KV.prototype=new LS;KV.prototype.constructor=KV;e=KV.prototype;e.Ha=function(a,b){switch(a){case 0:this.DJ=b;break;case 1:this.EJ=b;break;case 2:this.FJ=b;break;case 3:this.GJ=b;break;default:throw new D(a);}};e.i=function(a){U();a=Ua(a);this.E="idRef"===a?0:"s"===a?1:"children"===a?2:"decorations"===a?3:-1}; -e.h=function(){var a=this.E;switch(a){case -1:return dM();case 0:ke();a=this.Ct.sY;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=U().H;a=Y(a,b)}}return a;case 1:ke();a=this.Ct.tY;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=Je().ba,a=Y(a,b))}return a;case 2:ke();a=this.Ct.uY;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{b=U();var c=Je().ba,d=rt();b=new mT(b,new VO(d),c);a=Y(a,b)}}return a;case 3:ke();a=this.Ct.vY;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a= -a.f:(b=U(),c=U().H,d=U().H,b=jV(b,c,d),a=Y(a,b))}return a;default:throw new D(a);}};e.aa=function(){Z(this,2,(ke(),I(J().u,F())));ke();E();var a=F();Z(this,3,G(0,a));OS(this,new p(15,0))&&MS(this,4,new (y(ta).M)(["idRef","s","children","decorations"]));return new sg(this.DJ,this.EJ,this.FJ,this.GJ)};e.$classData=x({rY:0},!1,"inrae.semantic_web.node.NotBlock$$anon$28$$anon$29",{rY:1,Na:1,b:1,xa:1,pa:1}); -function LV(a){this.ya=ma;this.E=0;this.HJ=this.Fa=null;this.IJ=!1;this.Kq=this.LJ=this.KJ=this.JJ=null;if(null===a)throw K(L(),null);this.Kq=a;JS(this,a)}LV.prototype=new LS;LV.prototype.constructor=LV;e=LV.prototype;e.Ha=function(a,b){switch(a){case 0:this.HJ=b;break;case 1:this.IJ=!!b;break;case 2:this.JJ=b;break;case 3:this.KJ=b;break;case 4:this.LJ=b;break;default:throw new D(a);}}; -e.i=function(a){U();a=Ua(a);this.E="value"===a?0:"negation"===a?1:"idRef"===a?2:"children"===a?3:"decorations"===a?4:-1}; -e.h=function(){var a=this.E;switch(a){case -1:return dM();case 0:Pd();a=this.Kq.BY;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=Fg().db;a=Y(a,b)}}return a;case 1:Pd();a=this.Kq.CY;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=U().rf,a=Y(a,b))}return a;case 2:Pd();a=this.Kq.DY;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=U().H,a=Y(a,b))}return a;case 3:Pd();a=this.Kq.EY;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{b=U();var c=Je().ba,d=rt();b=new mT(b, -new VO(d),c);a=Y(a,b)}}return a;case 4:Pd();a=this.Kq.FY;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=U(),c=U().H,d=U().H,b=jV(b,c,d),a=Y(a,b))}return a;default:throw new D(a);}};e.aa=function(){Z(this,3,(Pd(),I(J().u,F())));Pd();E();var a=F();Z(this,4,G(0,a));OS(this,new p(31,0))&&MS(this,5,new (y(ta).M)(["value","negation","idRef","children","decorations"]));return new eg(this.HJ,this.IJ,this.JJ,this.KJ,this.LJ)}; -e.$classData=x({AY:0},!1,"inrae.semantic_web.node.NotEqual$$anon$55$$anon$56",{AY:1,Na:1,b:1,xa:1,pa:1});function MV(a){this.ya=ma;this.E=0;this.Dt=this.QJ=this.PJ=this.OJ=this.NJ=this.Fa=null;if(null===a)throw K(L(),null);this.Dt=a;JS(this,a)}MV.prototype=new LS;MV.prototype.constructor=MV;e=MV.prototype;e.Ha=function(a,b){switch(a){case 0:this.NJ=b;break;case 1:this.OJ=b;break;case 2:this.PJ=b;break;case 3:this.QJ=b;break;default:throw new D(a);}}; -e.i=function(a){U();a=Ua(a);this.E="idRef"===a?0:"term"===a?1:"children"===a?2:"decorations"===a?3:-1}; -e.h=function(){var a=this.E;switch(a){case -1:return dM();case 0:Ne();a=this.Dt.LY;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=U().H;a=Y(a,b)}}return a;case 1:Ne();a=this.Dt.MY;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=Fg().db,a=Y(a,b))}return a;case 2:Ne();a=this.Dt.NY;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{b=U();var c=Je().ba,d=rt();b=new mT(b,new VO(d),c);a=Y(a,b)}}return a;case 3:Ne();a=this.Dt.OY;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a= -a.f:(b=U(),c=U().H,d=U().H,b=jV(b,c,d),a=Y(a,b))}return a;default:throw new D(a);}};e.aa=function(){Z(this,2,(Ne(),I(J().u,F())));Ne();E();var a=F();Z(this,3,G(0,a));OS(this,new p(15,0))&&MS(this,4,new (y(ta).M)(["idRef","term","children","decorations"]));return new Df(this.NJ,this.OJ,this.PJ,this.QJ)};e.$classData=x({KY:0},!1,"inrae.semantic_web.node.ObjectOf$$anon$10$$anon$11",{KY:1,Na:1,b:1,xa:1,pa:1}); -function NV(a){this.ya=ma;this.E=0;this.Fa=null;this.SJ=0;this.Et=this.VJ=this.UJ=this.TJ=null;if(null===a)throw K(L(),null);this.Et=a;JS(this,a)}NV.prototype=new LS;NV.prototype.constructor=NV;e=NV.prototype;e.Ha=function(a,b){switch(a){case 0:this.SJ=b|0;break;case 1:this.TJ=b;break;case 2:this.UJ=b;break;case 3:this.VJ=b;break;default:throw new D(a);}};e.i=function(a){U();a=Ua(a);this.E="value"===a?0:"idRef"===a?1:"children"===a?2:"decorations"===a?3:-1}; -e.h=function(){var a=this.E;switch(a){case -1:return dM();case 0:Ye();a=this.Et.UY;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=U().Fu;a=Y(a,b)}}return a;case 1:Ye();a=this.Et.VY;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=U().H,a=Y(a,b))}return a;case 2:Ye();a=this.Et.WY;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{b=U();var c=Je().ba,d=rt();b=new mT(b,new VO(d),c);a=Y(a,b)}}return a;case 3:Ye();a=this.Et.XY;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f: -(b=U(),c=U().H,d=U().H,b=jV(b,c,d),a=Y(a,b))}return a;default:throw new D(a);}};e.aa=function(){Z(this,2,(Ye(),I(J().u,F())));Ye();E();var a=F();Z(this,3,G(0,a));OS(this,new p(15,0))&&MS(this,4,new (y(ta).M)(["value","idRef","children","decorations"]));return new Af(this.SJ,this.TJ,this.UJ,this.VJ)};e.$classData=x({TY:0},!1,"inrae.semantic_web.node.Offset$$anon$91$$anon$92",{TY:1,Na:1,b:1,xa:1,pa:1}); -function OV(a){this.ya=ma;this.E=0;this.Ft=this.$J=this.ZJ=this.YJ=this.XJ=this.Fa=null;if(null===a)throw K(L(),null);this.Ft=a;JS(this,a)}OV.prototype=new LS;OV.prototype.constructor=OV;e=OV.prototype;e.Ha=function(a,b){switch(a){case 0:this.XJ=b;break;case 1:this.YJ=b;break;case 2:this.ZJ=b;break;case 3:this.$J=b;break;default:throw new D(a);}};e.i=function(a){U();a=Ua(a);this.E="list"===a?0:"idRef"===a?1:"children"===a?2:"decorations"===a?3:-1}; -e.h=function(){var a=this.E;switch(a){case -1:return dM();case 0:Se();a=this.Ft.cZ;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=U(),c=Ug().Vh,d=rt();b=new mT(b,new VO(d),c);a=Y(a,b)}}return a;case 1:Se();a=this.Ft.dZ;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=U().H,a=Y(a,b))}return a;case 2:Se();a=this.Ft.eZ;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=U(),c=Je().ba,d=rt(),b=new mT(b,new VO(d),c),a=Y(a,b))}return a;case 3:Se();a=this.Ft.fZ;if(a.e)a=a.f;else{if(null=== -a)throw P();a.e?a=a.f:(b=U(),c=U().H,d=U().H,b=jV(b,c,d),a=Y(a,b))}return a;default:throw new D(a);}};e.aa=function(){Z(this,2,(Se(),I(J().u,F())));Se();E();var a=F();Z(this,3,G(0,a));OS(this,new p(15,0))&&MS(this,4,new (y(ta).M)(["list","idRef","children","decorations"]));return new xf(this.XJ,this.YJ,this.ZJ,this.$J)};e.$classData=x({bZ:0},!1,"inrae.semantic_web.node.OrderByAsc$$anon$76$$anon$77",{bZ:1,Na:1,b:1,xa:1,pa:1}); -function PV(a){this.ya=ma;this.E=0;this.Gt=this.eK=this.dK=this.cK=this.bK=this.Fa=null;if(null===a)throw K(L(),null);this.Gt=a;JS(this,a)}PV.prototype=new LS;PV.prototype.constructor=PV;e=PV.prototype;e.Ha=function(a,b){switch(a){case 0:this.bK=b;break;case 1:this.cK=b;break;case 2:this.dK=b;break;case 3:this.eK=b;break;default:throw new D(a);}};e.i=function(a){U();a=Ua(a);this.E="list"===a?0:"idRef"===a?1:"children"===a?2:"decorations"===a?3:-1}; -e.h=function(){var a=this.E;switch(a){case -1:return dM();case 0:Te();a=this.Gt.lZ;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=U(),c=Ug().Vh,d=rt();b=new mT(b,new VO(d),c);a=Y(a,b)}}return a;case 1:Te();a=this.Gt.mZ;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=U().H,a=Y(a,b))}return a;case 2:Te();a=this.Gt.nZ;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=U(),c=Je().ba,d=rt(),b=new mT(b,new VO(d),c),a=Y(a,b))}return a;case 3:Te();a=this.Gt.oZ;if(a.e)a=a.f;else{if(null=== -a)throw P();a.e?a=a.f:(b=U(),c=U().H,d=U().H,b=jV(b,c,d),a=Y(a,b))}return a;default:throw new D(a);}};e.aa=function(){Z(this,2,(Te(),I(J().u,F())));Te();E();var a=F();Z(this,3,G(0,a));OS(this,new p(15,0))&&MS(this,4,new (y(ta).M)(["list","idRef","children","decorations"]));return new yf(this.bK,this.cK,this.dK,this.eK)};e.$classData=x({kZ:0},!1,"inrae.semantic_web.node.OrderByDesc$$anon$79$$anon$80",{kZ:1,Na:1,b:1,xa:1,pa:1}); -function QV(a){this.ya=ma;this.E=0;this.Ht=this.kK=this.jK=this.iK=this.hK=this.Fa=null;if(null===a)throw K(L(),null);this.Ht=a;JS(this,a)}QV.prototype=new LS;QV.prototype.constructor=QV;e=QV.prototype;e.Ha=function(a,b){switch(a){case 0:this.hK=b;break;case 1:this.iK=b;break;case 2:this.jK=b;break;case 3:this.kK=b;break;default:throw new D(a);}};e.i=function(a){U();a=Ua(a);this.E="variables"===a?0:"idRef"===a?1:"children"===a?2:"decorations"===a?3:-1}; -e.h=function(){var a=this.E;switch(a){case -1:return dM();case 0:Ue();a=this.Ht.vZ;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=U(),c=Ug().Vh,d=rt();b=new mT(b,new VO(d),c);a=Y(a,b)}}return a;case 1:Ue();a=this.Ht.wZ;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=U().H,a=Y(a,b))}return a;case 2:Ue();a=this.Ht.xZ;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=U(),c=Je().ba,d=rt(),b=new mT(b,new VO(d),c),a=Y(a,b))}return a;case 3:Ue();a=this.Ht.yZ;if(a.e)a=a.f;else{if(null=== -a)throw P();a.e?a=a.f:(b=U(),c=U().H,d=U().H,b=jV(b,c,d),a=Y(a,b))}return a;default:throw new D(a);}};e.aa=function(){Z(this,2,(Ue(),I(J().u,F())));Ue();E();var a=F();Z(this,3,G(0,a));OS(this,new p(15,0))&&MS(this,4,new (y(ta).M)(["variables","idRef","children","decorations"]));return new wf(this.hK,this.iK,this.jK,this.kK)};e.$classData=x({uZ:0},!1,"inrae.semantic_web.node.Projection$$anon$82$$anon$83",{uZ:1,Na:1,b:1,xa:1,pa:1}); -function RV(a){this.ya=ma;this.E=0;this.Lq=this.qK=this.pK=this.oK=this.nK=this.mK=this.Fa=null;if(null===a)throw K(L(),null);this.Lq=a;JS(this,a)}RV.prototype=new LS;RV.prototype.constructor=RV;e=RV.prototype;e.Ha=function(a,b){switch(a){case 0:this.mK=b;break;case 1:this.nK=b;break;case 2:this.oK=b;break;case 3:this.pK=b;break;case 4:this.qK=b;break;default:throw new D(a);}};e.i=function(a){U();a=Ua(a);this.E="var"===a?0:"expression"===a?1:"idRef"===a?2:"children"===a?3:"decorations"===a?4:-1}; -e.h=function(){var a=this.E;switch(a){case -1:return dM();case 0:Ie();a=this.Lq.EZ;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=Ug().Vh;a=Y(a,b)}}return a;case 1:Ie();a=this.Lq.FZ;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=rd().Xw,a=Y(a,b))}return a;case 2:Ie();a=this.Lq.GZ;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=U().H,a=Y(a,b))}return a;case 3:Ie();a=this.Lq.HZ;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{b=U();var c=Je().ba,d=rt();b=new mT(b, -new VO(d),c);a=Y(a,b)}}return a;case 4:Ie();a=this.Lq.IZ;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=U(),c=U().H,d=U().H,b=jV(b,c,d),a=Y(a,b))}return a;default:throw new D(a);}};e.aa=function(){Z(this,3,(Ie(),I(J().u,F())));Ie();E();var a=F();Z(this,4,G(0,a));OS(this,new p(31,0))&&MS(this,5,new (y(ta).M)(["var","expression","idRef","children","decorations"]));return new Mf(this.mK,this.nK,this.oK,this.pK,this.qK)}; -e.$classData=x({DZ:0},!1,"inrae.semantic_web.node.ProjectionExpression$$anon$127$$anon$128",{DZ:1,Na:1,b:1,xa:1,pa:1});function SV(a){this.ya=ma;this.E=0;this.fx=this.uK=this.tK=this.sK=this.Fa=null;if(null===a)throw K(L(),null);this.fx=a;JS(this,a)}SV.prototype=new LS;SV.prototype.constructor=SV;e=SV.prototype;e.Ha=function(a,b){switch(a){case 0:this.sK=b;break;case 1:this.tK=b;break;case 2:this.uK=b;break;default:throw new D(a);}}; -e.i=function(a){U();a=Ua(a);this.E="idRef"===a?0:"children"===a?1:"decorations"===a?2:-1}; -e.h=function(){var a=this.E;switch(a){case -1:return dM();case 0:$d();a=this.fx.OZ;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=U().H;a=Y(a,b)}}return a;case 1:$d();a=this.fx.PZ;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{b=U();var c=Je().ba,d=rt();b=new mT(b,new VO(d),c);a=Y(a,b)}}return a;case 2:$d();a=this.fx.QZ;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=U(),c=U().H,d=U().H,b=jV(b,c,d),a=Y(a,b))}return a;default:throw new D(a);}}; -e.aa=function(){Z(this,1,($d(),I(J().u,F())));$d();E();var a=F();Z(this,2,G(0,a));OS(this,new p(7,0))&&MS(this,3,new (y(ta).M)(["idRef","children","decorations"]));return new Vf(this.sK,this.tK,this.uK)};e.$classData=x({NZ:0},!1,"inrae.semantic_web.node.Rand$$anon$121$$anon$122",{NZ:1,Na:1,b:1,xa:1,pa:1});function TV(a){this.ya=ma;this.E=0;this.gx=this.zK=this.yK=this.xK=this.Fa=null;if(null===a)throw K(L(),null);this.gx=a;JS(this,a)}TV.prototype=new LS;TV.prototype.constructor=TV;e=TV.prototype; -e.Ha=function(a,b){switch(a){case 0:this.xK=b;break;case 1:this.yK=b;break;case 2:this.zK=b;break;default:throw new D(a);}};e.i=function(a){U();a=Ua(a);this.E="idRef"===a?0:"children"===a?1:"decorations"===a?2:-1}; -e.h=function(){var a=this.E;switch(a){case -1:return dM();case 0:Xe();a=this.gx.XZ;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=U().H;a=Y(a,b)}}return a;case 1:Xe();a=this.gx.YZ;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{b=U();var c=Je().ba,d=rt();b=new mT(b,new VO(d),c);a=Y(a,b)}}return a;case 2:Xe();a=this.gx.ZZ;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=U(),c=U().H,d=U().H,b=jV(b,c,d),a=Y(a,b))}return a;default:throw new D(a);}}; -e.aa=function(){Z(this,1,(Xe(),I(J().u,F())));Xe();E();var a=F();Z(this,2,G(0,a));OS(this,new p(7,0))&&MS(this,3,new (y(ta).M)(["idRef","children","decorations"]));return new vf(this.xK,this.yK,this.zK)};e.$classData=x({WZ:0},!1,"inrae.semantic_web.node.Reduced$$anon$88$$anon$89",{WZ:1,Na:1,b:1,xa:1,pa:1});function UV(a){this.ya=ma;this.E=0;this.CK=this.BK=this.Fa=null;this.DK=!1;this.so=this.GK=this.FK=this.EK=null;if(null===a)throw K(L(),null);this.so=a;JS(this,a)}UV.prototype=new LS; -UV.prototype.constructor=UV;e=UV.prototype;e.Ha=function(a,b){switch(a){case 0:this.BK=b;break;case 1:this.CK=b;break;case 2:this.DK=!!b;break;case 3:this.EK=b;break;case 4:this.FK=b;break;case 5:this.GK=b;break;default:throw new D(a);}};e.i=function(a){U();a=Ua(a);this.E="pattern"===a?0:"flags"===a?1:"negation"===a?2:"idRef"===a?3:"children"===a?4:"decorations"===a?5:-1}; -e.h=function(){var a=this.E;switch(a){case -1:return dM();case 0:Id();a=this.so.e_;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=Fg().db;a=Y(a,b)}}return a;case 1:Id();a=this.so.f_;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=Fg().db,a=Y(a,b))}return a;case 2:Id();a=this.so.g_;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=U().rf,a=Y(a,b))}return a;case 3:Id();a=this.so.h_;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=U().H,a=Y(a,b))}return a;case 4:Id();a=this.so.i_; -if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{b=U();var c=Je().ba,d=rt();b=new mT(b,new VO(d),c);a=Y(a,b)}}return a;case 5:Id();a=this.so.j_;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=U(),c=U().H,d=U().H,b=jV(b,c,d),a=Y(a,b))}return a;default:throw new D(a);}}; -e.aa=function(){Z(this,4,(Id(),I(J().u,F())));Id();E();var a=F();Z(this,5,G(0,a));OS(this,new p(63,0))&&MS(this,6,new (y(ta).M)("pattern flags negation idRef children decorations".split(" ")));return new $f(this.BK,this.CK,this.DK,this.EK,this.FK,this.GK)};e.$classData=x({d_:0},!1,"inrae.semantic_web.node.Regex$$anon$40$$anon$41",{d_:1,Na:1,b:1,xa:1,pa:1}); -function VV(a){this.ya=ma;this.E=0;this.wo=this.NK=this.MK=this.LK=this.KK=this.JK=this.IK=this.Fa=null;if(null===a)throw K(L(),null);this.wo=a;JS(this,a)}VV.prototype=new LS;VV.prototype.constructor=VV;e=VV.prototype;e.Ha=function(a,b){switch(a){case 0:this.IK=b;break;case 1:this.JK=b;break;case 2:this.KK=b;break;case 3:this.LK=b;break;case 4:this.MK=b;break;case 5:this.NK=b;break;default:throw new D(a);}}; -e.i=function(a){U();a=Ua(a);this.E="pattern"===a?0:"replacement"===a?1:"flags"===a?2:"idRef"===a?3:"children"===a?4:"decorations"===a?5:-1}; -e.h=function(){var a=this.E;switch(a){case -1:return dM();case 0:de();a=this.wo.p_;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=Fg().db;a=Y(a,b)}}return a;case 1:de();a=this.wo.q_;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=Fg().db,a=Y(a,b))}return a;case 2:de();a=this.wo.r_;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=Fg().db,a=Y(a,b))}return a;case 3:de();a=this.wo.t_;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=U().H,a=Y(a,b))}return a;case 4:de();a= -this.wo.u_;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{b=U();var c=Je().ba,d=rt();b=new mT(b,new VO(d),c);a=Y(a,b)}}return a;case 5:de();a=this.wo.v_;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=U(),c=U().H,d=U().H,b=jV(b,c,d),a=Y(a,b))}return a;default:throw new D(a);}}; -e.aa=function(){Z(this,4,(de(),I(J().u,F())));de();E();var a=F();Z(this,5,G(0,a));OS(this,new p(63,0))&&MS(this,6,new (y(ta).M)("pattern replacement flags idRef children decorations".split(" ")));return new Qf(this.IK,this.JK,this.KK,this.LK,this.MK,this.NK)};e.$classData=x({o_:0},!1,"inrae.semantic_web.node.Replace$$anon$106$$anon$107",{o_:1,Na:1,b:1,xa:1,pa:1}); -function WV(a){this.ya=ma;this.E=0;this.zi=this.YK=this.XK=this.WK=this.VK=this.UK=this.TK=this.SK=this.RK=this.QK=this.PK=this.Fa=null;if(null===a)throw K(L(),null);this.zi=a;JS(this,a)}WV.prototype=new LS;WV.prototype.constructor=WV;e=WV.prototype; -e.Ha=function(a,b){switch(a){case 0:this.PK=b;break;case 1:this.QK=b;break;case 2:this.RK=b;break;case 3:this.SK=b;break;case 4:this.TK=b;break;case 5:this.UK=b;break;case 6:this.VK=b;break;case 7:this.WK=b;break;case 8:this.XK=b;break;case 9:this.YK=b;break;default:throw new D(a);}}; -e.i=function(a){U();a=Ua(a);this.E="idRef"===a?0:"prefixes"===a?1:"defaultGraph"===a?2:"namedGraph"===a?3:"lDatatypeNode"===a?4:"lSourcesNodes"===a?5:"lBindNode"===a?6:"lSolutionSequenceModifierNode"===a?7:"children"===a?8:"decorations"===a?9:-1}; -e.h=function(){var a=this.E;switch(a){case -1:return dM();case 0:ye();a=this.zi.B_;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=U().H;a=Y(a,b)}}return a;case 1:ye();a=this.zi.C_;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{b=U();var c=U().H,d=Qg().om;b=jV(b,c,d);a=Y(a,b)}}return a;case 2:ye();a=this.zi.D_;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=U(),c=Qg().om,d=rt(),b=new mT(b,new VO(d),c),a=Y(a,b))}return a;case 3:ye();a=this.zi.E_;if(a.e)a=a.f;else{if(null=== -a)throw P();a.e?a=a.f:(b=U(),c=Qg().om,d=rt(),b=new mT(b,new VO(d),c),a=Y(a,b))}return a;case 4:ye();a=this.zi.F_;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=U(),c=Ee().ax,d=rt(),b=new mT(b,new VO(d),c),a=Y(a,b))}return a;case 5:ye();a=this.zi.G_;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=U(),c=Fe().lx,d=rt(),b=new mT(b,new VO(d),c),a=Y(a,b))}return a;case 6:ye();a=this.zi.H_;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=U(),c=Ge().Yw,d=rt(),b=new mT(b,new VO(d),c),a=Y(a, -b))}return a;case 7:ye();a=this.zi.I_;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=U(),c=He().jx,d=rt(),b=new mT(b,new VO(d),c),a=Y(a,b))}return a;case 8:ye();a=this.zi.J_;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=U(),c=Je().ba,d=rt(),b=new mT(b,new VO(d),c),a=Y(a,b))}return a;case 9:ye();a=this.zi.K_;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=U(),c=U().H,d=U().H,b=jV(b,c,d),a=Y(a,b))}return a;default:throw new D(a);}}; -e.aa=function(){Z(this,0,(ye(),fH().g()));Z(this,1,UB());ye();J();var a=F();Z(this,2,hh(F(),a));ye();J();a=F();Z(this,3,hh(F(),a));ye();J();a=F();Z(this,4,hh(F(),a));ye();J();a=F();Z(this,5,hh(F(),a));ye();J();a=F();Z(this,6,hh(F(),a));ye();J();a=F();Z(this,7,hh(F(),a));Z(this,8,(ye(),I(J().u,F())));ye();E();a=F();Z(this,9,G(0,a));OS(this,new p(1023,0))&&MS(this,10,new (y(ta).M)("idRef prefixes defaultGraph namedGraph lDatatypeNode lSourcesNodes lBindNode lSolutionSequenceModifierNode children decorations".split(" "))); -return new jf(this.PK,this.QK,this.RK,this.SK,this.TK,this.UK,this.VK,this.WK,this.XK,this.YK)};e.$classData=x({A_:0},!1,"inrae.semantic_web.node.Root$$anon$1$$anon$2",{A_:1,Na:1,b:1,xa:1,pa:1});function XV(a){this.ya=ma;this.E=0;this.ix=this.aL=this.$K=this.ZK=this.Fa=null;if(null===a)throw K(L(),null);this.ix=a;JS(this,a)}XV.prototype=new LS;XV.prototype.constructor=XV;e=XV.prototype; -e.Ha=function(a,b){switch(a){case 0:this.ZK=b;break;case 1:this.$K=b;break;case 2:this.aL=b;break;default:throw new D(a);}};e.i=function(a){U();a=Ua(a);this.E="idRef"===a?0:"children"===a?1:"decorations"===a?2:-1}; -e.h=function(){var a=this.E;switch(a){case -1:return dM();case 0:Xd();a=this.ix.Q_;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=U().H;a=Y(a,b)}}return a;case 1:Xd();a=this.ix.R_;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{b=U();var c=Je().ba,d=rt();b=new mT(b,new VO(d),c);a=Y(a,b)}}return a;case 2:Xd();a=this.ix.S_;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=U(),c=U().H,d=U().H,b=jV(b,c,d),a=Y(a,b))}return a;default:throw new D(a);}}; -e.aa=function(){Z(this,1,(Xd(),I(J().u,F())));Xd();E();var a=F();Z(this,2,G(0,a));OS(this,new p(7,0))&&MS(this,3,new (y(ta).M)(["idRef","children","decorations"]));return new Sf(this.ZK,this.$K,this.aL)};e.$classData=x({P_:0},!1,"inrae.semantic_web.node.Round$$anon$112$$anon$113",{P_:1,Na:1,b:1,xa:1,pa:1});function YV(a){this.ya=ma;this.E=0;this.kx=this.eL=this.dL=this.cL=this.Fa=null;if(null===a)throw K(L(),null);this.kx=a;JS(this,a)}YV.prototype=new LS;YV.prototype.constructor=YV;e=YV.prototype; -e.Ha=function(a,b){switch(a){case 0:this.cL=b;break;case 1:this.dL=b;break;case 2:this.eL=b;break;default:throw new D(a);}};e.i=function(a){U();a=Ua(a);this.E="idRef"===a?0:"children"===a?1:"decorations"===a?2:-1}; -e.h=function(){var a=this.E;switch(a){case -1:return dM();case 0:Le();a=this.kx.Z_;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=U().H;a=Y(a,b)}}return a;case 1:Le();a=this.kx.$_;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{b=U();var c=Je().ba,d=rt();b=new mT(b,new VO(d),c);a=Y(a,b)}}return a;case 2:Le();a=this.kx.a0;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=U(),c=U().H,d=U().H,b=jV(b,c,d),a=Y(a,b))}return a;default:throw new D(a);}}; -e.aa=function(){Z(this,1,(Le(),I(J().u,F())));Le();E();var a=F();Z(this,2,G(0,a));OS(this,new p(7,0))&&MS(this,3,new (y(ta).M)(["idRef","children","decorations"]));return new qg(this.cL,this.dL,this.eL)};e.$classData=x({Y_:0},!1,"inrae.semantic_web.node.Something$$anon$4$$anon$5",{Y_:1,Na:1,b:1,xa:1,pa:1});function ZV(a){this.ya=ma;this.E=0;this.Xq=this.kL=this.jL=this.iL=this.hL=this.gL=this.Fa=null;if(null===a)throw K(L(),null);this.Xq=a;JS(this,a)}ZV.prototype=new LS;ZV.prototype.constructor=ZV; -e=ZV.prototype;e.Ha=function(a,b){switch(a){case 0:this.gL=b;break;case 1:this.hL=b;break;case 2:this.iL=b;break;case 3:this.jL=b;break;case 4:this.kL=b;break;default:throw new D(a);}};e.i=function(a){U();a=Ua(a);this.E="refNode"===a?0:"sources"===a?1:"idRef"===a?2:"children"===a?3:"decorations"===a?4:-1}; -e.h=function(){var a=this.E;switch(a){case -1:return dM();case 0:Fe();a=this.Xq.g0;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=U().H;a=Y(a,b)}}return a;case 1:Fe();a=this.Xq.h0;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{b=U();var c=U().H,d=rt();b=new mT(b,new VO(d),c);a=Y(a,b)}}return a;case 2:Fe();a=this.Xq.i0;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=U().H,a=Y(a,b))}return a;case 3:Fe();a=this.Xq.j0;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f: -(b=U(),c=Je().ba,d=rt(),b=new mT(b,new VO(d),c),a=Y(a,b))}return a;case 4:Fe();a=this.Xq.k0;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=U(),c=U().H,d=U().H,b=jV(b,c,d),a=Y(a,b))}return a;default:throw new D(a);}};e.aa=function(){Z(this,3,(Fe(),I(J().u,F())));Fe();E();var a=F();Z(this,4,G(0,a));OS(this,new p(31,0))&&MS(this,5,new (y(ta).M)(["refNode","sources","idRef","children","decorations"]));return new ug(this.gL,this.hL,this.iL,this.jL,this.kL)}; -e.$classData=x({f0:0},!1,"inrae.semantic_web.node.SourcesNode$$anon$73$$anon$74",{f0:1,Na:1,b:1,xa:1,pa:1});function $V(a){this.ya=ma;this.E=0;this.Jt=this.oL=this.nL=this.mL=this.lL=this.Fa=null;if(null===a)throw K(L(),null);this.Jt=a;JS(this,a)}$V.prototype=new LS;$V.prototype.constructor=$V;e=$V.prototype;e.Ha=function(a,b){switch(a){case 0:this.lL=b;break;case 1:this.mL=b;break;case 2:this.nL=b;break;case 3:this.oL=b;break;default:throw new D(a);}}; -e.i=function(a){U();a=Ua(a);this.E="sd"===a?0:"idRef"===a?1:"children"===a?2:"decorations"===a?3:-1}; -e.h=function(){var a=this.E;switch(a){case -1:return dM();case 0:Ke();a=this.Jt.q0;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=Fg().db;a=Y(a,b)}}return a;case 1:Ke();a=this.Jt.r0;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=U().H,a=Y(a,b))}return a;case 2:Ke();a=this.Jt.s0;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{b=U();var c=Je().ba,d=rt();b=new mT(b,new VO(d),c);a=Y(a,b)}}return a;case 3:Ke();a=this.Jt.t0;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a= -a.f:(b=U(),c=U().H,d=U().H,b=jV(b,c,d),a=Y(a,b))}return a;default:throw new D(a);}};e.aa=function(){Z(this,2,(Ke(),I(J().u,F())));Ke();E();var a=F();Z(this,3,G(0,a));OS(this,new p(15,0))&&MS(this,4,new (y(ta).M)(["sd","idRef","children","decorations"]));return new vg(this.lL,this.mL,this.nL,this.oL)};e.$classData=x({p0:0},!1,"inrae.semantic_web.node.SparqlDefinitionExpression$$anon$100$$anon$101",{p0:1,Na:1,b:1,xa:1,pa:1}); -function aW(a){this.ya=ma;this.E=0;this.Lt=this.tL=this.sL=this.rL=this.qL=this.Fa=null;if(null===a)throw K(L(),null);this.Lt=a;JS(this,a)}aW.prototype=new LS;aW.prototype.constructor=aW;e=aW.prototype;e.Ha=function(a,b){switch(a){case 0:this.qL=b;break;case 1:this.rL=b;break;case 2:this.sL=b;break;case 3:this.tL=b;break;default:throw new D(a);}};e.i=function(a){U();a=Ua(a);this.E="term"===a?0:"idRef"===a?1:"children"===a?2:"decorations"===a?3:-1}; -e.h=function(){var a=this.E;switch(a){case -1:return dM();case 0:ud();a=this.Lt.z0;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=Fg().db;a=Y(a,b)}}return a;case 1:ud();a=this.Lt.A0;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=U().H,a=Y(a,b))}return a;case 2:ud();a=this.Lt.B0;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{b=U();var c=Je().ba,d=rt();b=new mT(b,new VO(d),c);a=Y(a,b)}}return a;case 3:ud();a=this.Lt.C0;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a= -a.f:(b=U(),c=U().H,d=U().H,b=jV(b,c,d),a=Y(a,b))}return a;default:throw new D(a);}};e.aa=function(){Z(this,2,(ud(),I(J().u,F())));ud();E();var a=F();Z(this,3,G(0,a));OS(this,new p(15,0))&&MS(this,4,new (y(ta).M)(["term","idRef","children","decorations"]));return new Xf(this.qL,this.rL,this.sL,this.tL)};e.$classData=x({y0:0},!1,"inrae.semantic_web.node.Str$$anon$136$$anon$137",{y0:1,Na:1,b:1,xa:1,pa:1}); -function bW(a){this.ya=ma;this.E=0;this.vL=this.Fa=null;this.wL=!1;this.Zq=this.zL=this.yL=this.xL=null;if(null===a)throw K(L(),null);this.Zq=a;JS(this,a)}bW.prototype=new LS;bW.prototype.constructor=bW;e=bW.prototype;e.Ha=function(a,b){switch(a){case 0:this.vL=b;break;case 1:this.wL=!!b;break;case 2:this.xL=b;break;case 3:this.yL=b;break;case 4:this.zL=b;break;default:throw new D(a);}}; -e.i=function(a){U();a=Ua(a);this.E="value"===a?0:"negation"===a?1:"idRef"===a?2:"children"===a?3:"decorations"===a?4:-1}; -e.h=function(){var a=this.E;switch(a){case -1:return dM();case 0:Ld();a=this.Zq.I0;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=Fg().db;a=Y(a,b)}}return a;case 1:Ld();a=this.Zq.J0;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=U().rf,a=Y(a,b))}return a;case 2:Ld();a=this.Zq.K0;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=U().H,a=Y(a,b))}return a;case 3:Ld();a=this.Zq.L0;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{b=U();var c=Je().ba,d=rt();b=new mT(b, -new VO(d),c);a=Y(a,b)}}return a;case 4:Ld();a=this.Zq.M0;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=U(),c=U().H,d=U().H,b=jV(b,c,d),a=Y(a,b))}return a;default:throw new D(a);}};e.aa=function(){Z(this,3,(Ld(),I(J().u,F())));Ld();E();var a=F();Z(this,4,G(0,a));OS(this,new p(31,0))&&MS(this,5,new (y(ta).M)(["value","negation","idRef","children","decorations"]));return new cg(this.vL,this.wL,this.xL,this.yL,this.zL)}; -e.$classData=x({H0:0},!1,"inrae.semantic_web.node.StrEnds$$anon$49$$anon$50",{H0:1,Na:1,b:1,xa:1,pa:1});function cW(a){this.ya=ma;this.E=0;this.BL=this.Fa=null;this.CL=!1;this.$q=this.FL=this.EL=this.DL=null;if(null===a)throw K(L(),null);this.$q=a;JS(this,a)}cW.prototype=new LS;cW.prototype.constructor=cW;e=cW.prototype;e.Ha=function(a,b){switch(a){case 0:this.BL=b;break;case 1:this.CL=!!b;break;case 2:this.DL=b;break;case 3:this.EL=b;break;case 4:this.FL=b;break;default:throw new D(a);}}; -e.i=function(a){U();a=Ua(a);this.E="value"===a?0:"negation"===a?1:"idRef"===a?2:"children"===a?3:"decorations"===a?4:-1}; -e.h=function(){var a=this.E;switch(a){case -1:return dM();case 0:Kd();a=this.$q.S0;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=Fg().db;a=Y(a,b)}}return a;case 1:Kd();a=this.$q.T0;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=U().rf,a=Y(a,b))}return a;case 2:Kd();a=this.$q.U0;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=U().H,a=Y(a,b))}return a;case 3:Kd();a=this.$q.V0;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{b=U();var c=Je().ba,d=rt();b=new mT(b, -new VO(d),c);a=Y(a,b)}}return a;case 4:Kd();a=this.$q.W0;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=U(),c=U().H,d=U().H,b=jV(b,c,d),a=Y(a,b))}return a;default:throw new D(a);}};e.aa=function(){Z(this,3,(Kd(),I(J().u,F())));Kd();E();var a=F();Z(this,4,G(0,a));OS(this,new p(31,0))&&MS(this,5,new (y(ta).M)(["value","negation","idRef","children","decorations"]));return new bg(this.BL,this.CL,this.DL,this.EL,this.FL)}; -e.$classData=x({R0:0},!1,"inrae.semantic_web.node.StrStarts$$anon$46$$anon$47",{R0:1,Na:1,b:1,xa:1,pa:1});function dW(a){this.ya=ma;this.E=0;this.cr=this.LL=this.KL=this.JL=this.IL=this.HL=this.Fa=null;if(null===a)throw K(L(),null);this.cr=a;JS(this,a)}dW.prototype=new LS;dW.prototype.constructor=dW;e=dW.prototype;e.Ha=function(a,b){switch(a){case 0:this.HL=b;break;case 1:this.IL=b;break;case 2:this.JL=b;break;case 3:this.KL=b;break;case 4:this.LL=b;break;default:throw new D(a);}}; -e.i=function(a){U();a=Ua(a);this.E="start"===a?0:"length"===a?1:"idRef"===a?2:"children"===a?3:"decorations"===a?4:-1}; -e.h=function(){var a=this.E;switch(a){case -1:return dM();case 0:ce();a=this.cr.b1;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=Fg().db;a=Y(a,b)}}return a;case 1:ce();a=this.cr.c1;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=Fg().db,a=Y(a,b))}return a;case 2:ce();a=this.cr.d1;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=U().H,a=Y(a,b))}return a;case 3:ce();a=this.cr.e1;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{b=U();var c=Je().ba,d=rt();b=new mT(b, -new VO(d),c);a=Y(a,b)}}return a;case 4:ce();a=this.cr.f1;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=U(),c=U().H,d=U().H,b=jV(b,c,d),a=Y(a,b))}return a;default:throw new D(a);}};e.aa=function(){Z(this,3,(ce(),I(J().u,F())));ce();E();var a=F();Z(this,4,G(0,a));OS(this,new p(31,0))&&MS(this,5,new (y(ta).M)(["start","length","idRef","children","decorations"]));return new Pf(this.HL,this.IL,this.JL,this.KL,this.LL)}; -e.$classData=x({a1:0},!1,"inrae.semantic_web.node.SubStr$$anon$103$$anon$104",{a1:1,Na:1,b:1,xa:1,pa:1});function eW(a){this.ya=ma;this.E=0;this.Mt=this.QL=this.PL=this.OL=this.NL=this.Fa=null;if(null===a)throw K(L(),null);this.Mt=a;JS(this,a)}eW.prototype=new LS;eW.prototype.constructor=eW;e=eW.prototype;e.Ha=function(a,b){switch(a){case 0:this.NL=b;break;case 1:this.OL=b;break;case 2:this.PL=b;break;case 3:this.QL=b;break;default:throw new D(a);}}; -e.i=function(a){U();a=Ua(a);this.E="idRef"===a?0:"term"===a?1:"children"===a?2:"decorations"===a?3:-1}; -e.h=function(){var a=this.E;switch(a){case -1:return dM();case 0:Me();a=this.Mt.l1;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=U().H;a=Y(a,b)}}return a;case 1:Me();a=this.Mt.m1;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=Fg().db,a=Y(a,b))}return a;case 2:Me();a=this.Mt.n1;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{b=U();var c=Je().ba,d=rt();b=new mT(b,new VO(d),c);a=Y(a,b)}}return a;case 3:Me();a=this.Mt.o1;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a= -a.f:(b=U(),c=U().H,d=U().H,b=jV(b,c,d),a=Y(a,b))}return a;default:throw new D(a);}};e.aa=function(){Z(this,0,(Me(),fH().g()));Z(this,2,(Me(),I(J().u,F())));Me();E();var a=F();Z(this,3,G(0,a));OS(this,new p(15,0))&&MS(this,4,new (y(ta).M)(["idRef","term","children","decorations"]));return new Cf(this.NL,this.OL,this.PL,this.QL)};e.$classData=x({k1:0},!1,"inrae.semantic_web.node.SubjectOf$$anon$7$$anon$8",{k1:1,Na:1,b:1,xa:1,pa:1}); -function fW(a){this.ya=ma;this.E=0;this.RL=this.Fa=null;this.SL=!1;this.gr=this.VL=this.UL=this.TL=null;if(null===a)throw K(L(),null);this.gr=a;JS(this,a)}fW.prototype=new LS;fW.prototype.constructor=fW;e=fW.prototype;e.Ha=function(a,b){switch(a){case 0:this.RL=b;break;case 1:this.SL=!!b;break;case 2:this.TL=b;break;case 3:this.UL=b;break;case 4:this.VL=b;break;default:throw new D(a);}}; -e.i=function(a){U();a=Ua(a);this.E="value"===a?0:"negation"===a?1:"idRef"===a?2:"children"===a?3:"decorations"===a?4:-1}; -e.h=function(){var a=this.E;switch(a){case -1:return dM();case 0:Sd();a=this.gr.u1;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=Fg().db;a=Y(a,b)}}return a;case 1:Sd();a=this.gr.v1;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=U().rf,a=Y(a,b))}return a;case 2:Sd();a=this.gr.w1;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=U().H,a=Y(a,b))}return a;case 3:Sd();a=this.gr.x1;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{b=U();var c=Je().ba,d=rt();b=new mT(b, -new VO(d),c);a=Y(a,b)}}return a;case 4:Sd();a=this.gr.y1;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=U(),c=U().H,d=U().H,b=jV(b,c,d),a=Y(a,b))}return a;default:throw new D(a);}};e.aa=function(){Z(this,3,(Sd(),I(J().u,F())));Sd();E();var a=F();Z(this,4,G(0,a));OS(this,new p(31,0))&&MS(this,5,new (y(ta).M)(["value","negation","idRef","children","decorations"]));return new hg(this.RL,this.SL,this.TL,this.UL,this.VL)}; -e.$classData=x({t1:0},!1,"inrae.semantic_web.node.Sup$$anon$64$$anon$65",{t1:1,Na:1,b:1,xa:1,pa:1});function gW(a){this.ya=ma;this.E=0;this.XL=this.Fa=null;this.YL=!1;this.hr=this.aM=this.$L=this.ZL=null;if(null===a)throw K(L(),null);this.hr=a;JS(this,a)}gW.prototype=new LS;gW.prototype.constructor=gW;e=gW.prototype;e.Ha=function(a,b){switch(a){case 0:this.XL=b;break;case 1:this.YL=!!b;break;case 2:this.ZL=b;break;case 3:this.$L=b;break;case 4:this.aM=b;break;default:throw new D(a);}}; -e.i=function(a){U();a=Ua(a);this.E="value"===a?0:"negation"===a?1:"idRef"===a?2:"children"===a?3:"decorations"===a?4:-1}; -e.h=function(){var a=this.E;switch(a){case -1:return dM();case 0:Td();a=this.hr.E1;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=Fg().db;a=Y(a,b)}}return a;case 1:Td();a=this.hr.F1;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=U().rf,a=Y(a,b))}return a;case 2:Td();a=this.hr.G1;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=U().H,a=Y(a,b))}return a;case 3:Td();a=this.hr.H1;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{b=U();var c=Je().ba,d=rt();b=new mT(b, -new VO(d),c);a=Y(a,b)}}return a;case 4:Td();a=this.hr.I1;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=U(),c=U().H,d=U().H,b=jV(b,c,d),a=Y(a,b))}return a;default:throw new D(a);}};e.aa=function(){Z(this,3,(Td(),I(J().u,F())));Td();E();var a=F();Z(this,4,G(0,a));OS(this,new p(31,0))&&MS(this,5,new (y(ta).M)(["value","negation","idRef","children","decorations"]));return new ig(this.XL,this.YL,this.ZL,this.$L,this.aM)}; -e.$classData=x({D1:0},!1,"inrae.semantic_web.node.SupEqual$$anon$67$$anon$68",{D1:1,Na:1,b:1,xa:1,pa:1});function hW(a){this.ya=ma;this.E=0;this.Nt=this.fM=this.eM=this.dM=this.cM=this.Fa=null;if(null===a)throw K(L(),null);this.Nt=a;JS(this,a)}hW.prototype=new LS;hW.prototype.constructor=hW;e=hW.prototype;e.Ha=function(a,b){switch(a){case 0:this.cM=b;break;case 1:this.dM=b;break;case 2:this.eM=b;break;case 3:this.fM=b;break;default:throw new D(a);}}; -e.i=function(a){U();a=Ua(a);this.E="idRef"===a?0:"s"===a?1:"children"===a?2:"decorations"===a?3:-1}; -e.h=function(){var a=this.E;switch(a){case -1:return dM();case 0:je();a=this.Nt.O1;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=U().H;a=Y(a,b)}}return a;case 1:je();a=this.Nt.P1;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=Je().ba,a=Y(a,b))}return a;case 2:je();a=this.Nt.Q1;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{b=U();var c=Je().ba,d=rt();b=new mT(b,new VO(d),c);a=Y(a,b)}}return a;case 3:je();a=this.Nt.R1;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a= -a.f:(b=U(),c=U().H,d=U().H,b=jV(b,c,d),a=Y(a,b))}return a;default:throw new D(a);}};e.aa=function(){Z(this,0,(je(),fH().g()));Z(this,2,(je(),I(J().u,F())));je();E();var a=F();Z(this,3,G(0,a));OS(this,new p(15,0))&&MS(this,4,new (y(ta).M)(["idRef","s","children","decorations"]));return new rg(this.cM,this.dM,this.eM,this.fM)};e.$classData=x({N1:0},!1,"inrae.semantic_web.node.UnionBlock$$anon$25$$anon$26",{N1:1,Na:1,b:1,xa:1,pa:1}); -function iW(a){this.ya=ma;this.E=0;this.Ot=this.jM=this.iM=this.hM=this.gM=this.Fa=null;if(null===a)throw K(L(),null);this.Ot=a;JS(this,a)}iW.prototype=new LS;iW.prototype.constructor=iW;e=iW.prototype;e.Ha=function(a,b){switch(a){case 0:this.gM=b;break;case 1:this.hM=b;break;case 2:this.iM=b;break;case 3:this.jM=b;break;default:throw new D(a);}};e.i=function(a){U();a=Ua(a);this.E="term"===a?0:"idRef"===a?1:"children"===a?2:"decorations"===a?3:-1}; -e.h=function(){var a=this.E;switch(a){case -1:return dM();case 0:Ce();a=this.Ot.X1;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=Fg().db;a=Y(a,b)}}return a;case 1:Ce();a=this.Ot.Y1;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=U().H,a=Y(a,b))}return a;case 2:Ce();a=this.Ot.Z1;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{b=U();var c=Je().ba,d=rt();b=new mT(b,new VO(d),c);a=Y(a,b)}}return a;case 3:Ce();a=this.Ot.$1;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a= -a.f:(b=U(),c=U().H,d=U().H,b=jV(b,c,d),a=Y(a,b))}return a;default:throw new D(a);}};e.aa=function(){Z(this,1,(Ce(),fH().g()));Z(this,2,(Ce(),I(J().u,F())));Ce();E();var a=F();Z(this,3,G(0,a));OS(this,new p(15,0))&&MS(this,4,new (y(ta).M)(["term","idRef","children","decorations"]));return new Gf(this.gM,this.hM,this.iM,this.jM)};e.$classData=x({W1:0},!1,"inrae.semantic_web.node.Value$$anon$19$$anon$20",{W1:1,Na:1,b:1,xa:1,pa:1}); -function jW(a){this.ya=ma;this.E=0;this.Fa=null;this.lM=!1;this.Pt=this.oM=this.nM=this.mM=null;if(null===a)throw K(L(),null);this.Pt=a;JS(this,a)}jW.prototype=new LS;jW.prototype.constructor=jW;e=jW.prototype;e.Ha=function(a,b){switch(a){case 0:this.lM=!!b;break;case 1:this.mM=b;break;case 2:this.nM=b;break;case 3:this.oM=b;break;default:throw new D(a);}};e.i=function(a){U();a=Ua(a);this.E="negation"===a?0:"idRef"===a?1:"children"===a?2:"decorations"===a?3:-1}; -e.h=function(){var a=this.E;switch(a){case -1:return dM();case 0:Fd();a=this.Pt.f2;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=U().rf;a=Y(a,b)}}return a;case 1:Fd();a=this.Pt.g2;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=U().H,a=Y(a,b))}return a;case 2:Fd();a=this.Pt.h2;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{b=U();var c=Je().ba,d=rt();b=new mT(b,new VO(d),c);a=Y(a,b)}}return a;case 3:Fd();a=this.Pt.i2;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f: -(b=U(),c=U().H,d=U().H,b=jV(b,c,d),a=Y(a,b))}return a;default:throw new D(a);}};e.aa=function(){Z(this,2,(Fd(),I(J().u,F())));Fd();E();var a=F();Z(this,3,G(0,a));OS(this,new p(15,0))&&MS(this,4,new (y(ta).M)(["negation","idRef","children","decorations"]));return new jg(this.lM,this.mM,this.nM,this.oM)};e.$classData=x({e2:0},!1,"inrae.semantic_web.node.isBlank$$anon$31$$anon$32",{e2:1,Na:1,b:1,xa:1,pa:1}); -function kW(a){this.ya=ma;this.E=0;this.Fa=null;this.pM=!1;this.Qt=this.sM=this.rM=this.qM=null;if(null===a)throw K(L(),null);this.Qt=a;JS(this,a)}kW.prototype=new LS;kW.prototype.constructor=kW;e=kW.prototype;e.Ha=function(a,b){switch(a){case 0:this.pM=!!b;break;case 1:this.qM=b;break;case 2:this.rM=b;break;case 3:this.sM=b;break;default:throw new D(a);}};e.i=function(a){U();a=Ua(a);this.E="negation"===a?0:"idRef"===a?1:"children"===a?2:"decorations"===a?3:-1}; -e.h=function(){var a=this.E;switch(a){case -1:return dM();case 0:Gd();a=this.Qt.o2;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=U().rf;a=Y(a,b)}}return a;case 1:Gd();a=this.Qt.p2;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=U().H,a=Y(a,b))}return a;case 2:Gd();a=this.Qt.q2;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{b=U();var c=Je().ba,d=rt();b=new mT(b,new VO(d),c);a=Y(a,b)}}return a;case 3:Gd();a=this.Qt.r2;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f: -(b=U(),c=U().H,d=U().H,b=jV(b,c,d),a=Y(a,b))}return a;default:throw new D(a);}};e.aa=function(){Z(this,2,(Gd(),I(J().u,F())));Gd();E();var a=F();Z(this,3,G(0,a));OS(this,new p(15,0))&&MS(this,4,new (y(ta).M)(["negation","idRef","children","decorations"]));return new ng(this.pM,this.qM,this.rM,this.sM)};e.$classData=x({n2:0},!1,"inrae.semantic_web.node.isLiteral$$anon$34$$anon$35",{n2:1,Na:1,b:1,xa:1,pa:1}); -function lW(a){this.ya=ma;this.E=0;this.Fa=null;this.uM=!1;this.Rt=this.xM=this.wM=this.vM=null;if(null===a)throw K(L(),null);this.Rt=a;JS(this,a)}lW.prototype=new LS;lW.prototype.constructor=lW;e=lW.prototype;e.Ha=function(a,b){switch(a){case 0:this.uM=!!b;break;case 1:this.vM=b;break;case 2:this.wM=b;break;case 3:this.xM=b;break;default:throw new D(a);}};e.i=function(a){U();a=Ua(a);this.E="negation"===a?0:"idRef"===a?1:"children"===a?2:"decorations"===a?3:-1}; -e.h=function(){var a=this.E;switch(a){case -1:return dM();case 0:Hd();a=this.Rt.x2;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=U().rf;a=Y(a,b)}}return a;case 1:Hd();a=this.Rt.y2;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=U().H,a=Y(a,b))}return a;case 2:Hd();a=this.Rt.z2;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{b=U();var c=Je().ba,d=rt();b=new mT(b,new VO(d),c);a=Y(a,b)}}return a;case 3:Hd();a=this.Rt.A2;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f: -(b=U(),c=U().H,d=U().H,b=jV(b,c,d),a=Y(a,b))}return a;default:throw new D(a);}};e.aa=function(){Z(this,2,(Hd(),I(J().u,F())));Hd();E();var a=F();Z(this,3,G(0,a));OS(this,new p(15,0))&&MS(this,4,new (y(ta).M)(["negation","idRef","children","decorations"]));return new kg(this.uM,this.vM,this.wM,this.xM)};e.$classData=x({w2:0},!1,"inrae.semantic_web.node.isURI$$anon$37$$anon$38",{w2:1,Na:1,b:1,xa:1,pa:1});function mW(){}mW.prototype=new t;mW.prototype.constructor=mW; -function YT(a,b,c){if(b.D===c){b=UB();ye();J();a=F();a=hh(F(),a);ye();J();var d=F();d=hh(F(),d);ye();J();var f=F();f=hh(F(),f);ye();J();var g=F();g=hh(F(),g);ye();J();var h=F();h=hh(F(),h);ye();J();var l=F();l=hh(F(),l);ye();var n=I(J().u,F());ye();E();var r=F();return new jf(c,b,a,d,f,g,h,l,n,G(0,r))}c=b.Q.Ea(new C(((u,w)=>A=>nW(ZT(),A,w))(a,c))).nb(new C(((u,w)=>A=>A.Aa()!==w)(a,c)));return new jf(b.D,b.df,b.Hf,b.If,b.Le,b.Me,b.xe,b.od,c,b.S)} -function nW(a,b,c){return b.fb(b.za().Ea(new C(((d,f)=>g=>nW(ZT(),g,f))(a,c))).nb(new C(((d,f)=>g=>g.Aa()!==f)(a,c))),b.Ya())}e=mW.prototype;e.A=function(){return"RemoveNode"};e.B=function(){return 0};e.C=function(a){return R(S(),a)};e.p=function(){return-1203104570};e.g=function(){return"RemoveNode"};e.$classData=x({D2:0},!1,"inrae.semantic_web.node.pm.RemoveNode$",{D2:1,b:1,z:1,o:1,d:1});var oW;function ZT(){oW||(oW=new mW);return oW}function bU(a,b){this.ir=a;this.nm=b;es()}bU.prototype=new t; -bU.prototype.constructor=bU;function pW(){var a=SE(9608);return wF(oq(),a,0,a.a.length)}function qW(){var a=SE(9604);return wF(oq(),a,0,a.a.length)}function rW(){var a=SE(9600);return wF(oq(),a,0,a.a.length)}function sW(){var a=SE(9500);return wF(oq(),a,0,a.a.length)}function tW(){var a=SE(9474);return wF(oq(),a,0,a.a.length)}function uW(){var a=SE(9472);return wF(oq(),a,0,a.a.length)}function vW(a){a=a.ir;if(!0===a)return"\u001b[0m";if(!1===a)return"";throw new D(a);} -function aU(a,b,c){if(0===c){var d=pW();zn();var f=rW();d=""+d+iq(f,100)+"\n"}else d="";d=d+pW()+EF();if(0===c){f=pW();zn();var g=qW();f=""+f+iq(g,100)+"\n"}else f="";f+=vW(a);g=""+EF()+sW()+uW()+" "+(a.ir?b instanceof jf?"\u001b[35m":b instanceof te?"\u001b[34m":b instanceof lf?"\u001b[32m":b instanceof Gf?"\u001b[36m":b instanceof Ly?"\u001b[45m":b instanceof Hz?"\u001b[42m":"\u001b[31m":"")+b.g()+vW(a);zn();var h=""+EF()+tW();d=d+iq(h,c)+g+"\n";0w=>aU(r,w, -1+u|0))(a,c))),f=qf(g,"","","")+f):f="";b instanceof jf&&a.nm?(zn(),g=""+EF()+tW(),iq(g,c),g=b.Me.Ea(new C(((r,u)=>w=>aU(r,w,1+u|0)+" * "+qf(w.Yq,"",",",""))(a,c))),g="\x3d\x3d\x3d\x3d SOURCESNODE \x3d\x3d\x3d \n"+qf(g,"","\n","")+"\n"):g="";b instanceof jf&&a.nm?(zn(),h=""+EF()+tW(),iq(h,c),h=b.Le.Ea(new C(((r,u)=>w=>aU(r,w,1+u|0))(a,c))),h="\x3d\x3d\x3d\x3d DATATYPE \x3d\x3d\x3d \n"+qf(h,"","\n","")+"\n"):h="";if(b instanceof jf&&a.nm){zn();var l=""+EF()+tW();iq(l,c);l=b.od.Ea(new C(((r,u)=>w=> -aU(r,w,1+u|0))(a,c)));l="\x3d\x3d\x3d\x3d Solution Modifier \x3d\x3d\x3d \n"+qf(l,"","\n","")+"\n"}else l="";if(b instanceof jf&&a.nm){zn();var n=""+EF()+tW();iq(n,c);a=b.xe.Ea(new C(((r,u)=>w=>aU(r,w,1+u|0))(a,c)));a="\x3d\x3d\x3d\x3d Expression \x3d\x3d\x3d \n"+qf(a,"","\n","")+"\n"}else a="";return d+f+g+h+l+a}e=bU.prototype;e.A=function(){return"SimpleConsole"};e.B=function(){return 2};e.C=function(a){switch(a){case 0:return this.ir;case 1:return this.nm;default:return R(S(),a)}}; -e.p=function(){var a=Pa("SimpleConsole");a=S().j(-889275714,a);var b=this.ir?1231:1237;a=S().j(a,b);b=this.nm?1231:1237;a=S().j(a,b);return S().ca(a,2)};e.g=function(){return du(this)};e.c=function(a){return this===a?!0:a instanceof bU?this.ir===a.ir&&this.nm===a.nm:!1};e.$classData=x({E2:0},!1,"inrae.semantic_web.node.pm.SimpleConsole",{E2:1,b:1,z:1,o:1,d:1});function wW(a){this.ya=ma;this.E=0;this.zM=this.AM=this.Fa=null;if(null===a)throw K(L(),null);this.zM=a;JS(this,a)}wW.prototype=new LS; -wW.prototype.constructor=wW;e=wW.prototype;e.Ha=function(a,b){if(0===a)this.AM=b;else throw new D(a);};e.i=function(a){U();this.E="value"===Ua(a)?0:-1};e.h=function(){var a=this.E;switch(a){case -1:return dM();case 0:Rg();a=this.zM.K2;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=U().H;a=Y(a,b)}}return a;default:throw new D(a);}};e.aa=function(){OS(this,new p(1,0))&&MS(this,1,new (y(ta).M)(["value"]));return new xW(this.AM)}; -e.$classData=x({J2:0},!1,"inrae.semantic_web.rdf.Anonymous$$anon$7$$anon$8",{J2:1,Na:1,b:1,xa:1,pa:1});function yW(a){this.ya=ma;this.E=0;this.CM=this.DM=this.Fa=null;if(null===a)throw K(L(),null);this.CM=a;JS(this,a)}yW.prototype=new LS;yW.prototype.constructor=yW;e=yW.prototype;e.Ha=function(a,b){if(0===a)this.DM=b;else throw new D(a);};e.i=function(a){U();this.E="iri"===Ua(a)?0:-1}; -e.h=function(){var a=this.E;switch(a){case -1:return dM();case 0:Qg();a=this.CM.Q2;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=U().H;a=Y(a,b)}}return a;default:throw new D(a);}};e.aa=function(){OS(this,new p(1,0))&&MS(this,1,new (y(ta).M)(["iri"]));return new VB(this.DM)};e.$classData=x({P2:0},!1,"inrae.semantic_web.rdf.IRI$$anon$1$$anon$2",{P2:1,Na:1,b:1,xa:1,pa:1}); -function zW(a){this.ya=ma;this.E=0;this.nx=this.GM=this.FM=this.EM=this.Fa=null;if(null===a)throw K(L(),null);this.nx=a;JS(this,a)}zW.prototype=new LS;zW.prototype.constructor=zW;e=zW.prototype;e.Ha=function(a,b){switch(a){case 0:this.EM=b;break;case 1:this.FM=b;break;case 2:this.GM=b;break;default:throw new D(a);}};e.i=function(a){U();a=Ua(a);this.E="value"===a?0:"datatype"===a?1:"ta"===a?2:-1}; -e.h=function(){var a=this.E;switch(a){case -1:return dM();case 0:Tg();a=this.nx.W2;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=U().H;a=Y(a,b)}}return a;case 1:Tg();a=this.nx.X2;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=Dg().px,a=Y(a,b))}return a;case 2:Tg();a=this.nx.Y2;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=U().H,a=Y(a,b))}return a;default:throw new D(a);}}; -e.aa=function(){Z(this,1,(Tg(),Dg().yd));Z(this,2,(Tg(),""));OS(this,new p(7,0))&&MS(this,3,new (y(ta).M)(["value","datatype","ta"]));return new Jg(this.EM,this.FM,this.GM)};e.$classData=x({V2:0},!1,"inrae.semantic_web.rdf.Literal$$anon$13$$anon$14",{V2:1,Na:1,b:1,xa:1,pa:1});function AW(a){this.ya=ma;this.E=0;this.IM=this.JM=this.Fa=null;if(null===a)throw K(L(),null);this.IM=a;JS(this,a)}AW.prototype=new LS;AW.prototype.constructor=AW;e=AW.prototype; -e.Ha=function(a,b){if(0===a)this.JM=b;else throw new D(a);};e.i=function(a){U();this.E="value"===Ua(a)?0:-1};e.h=function(){var a=this.E;switch(a){case -1:return dM();case 0:Sg();a=this.IM.d3;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=U().H;a=Y(a,b)}}return a;default:throw new D(a);}};e.aa=function(){OS(this,new p(1,0))&&MS(this,1,new (y(ta).M)(["value"]));return new BW(this.JM)}; -e.$classData=x({c3:0},!1,"inrae.semantic_web.rdf.PropertyPath$$anon$10$$anon$11",{c3:1,Na:1,b:1,xa:1,pa:1});function CW(a){this.ya=ma;this.E=0;this.LM=this.MM=this.Fa=null;if(null===a)throw K(L(),null);this.LM=a;JS(this,a)}CW.prototype=new LS;CW.prototype.constructor=CW;e=CW.prototype;e.Ha=function(a,b){if(0===a)this.MM=b;else throw new D(a);};e.i=function(a){U();this.E="name"===Ua(a)?0:-1}; -e.h=function(){var a=this.E;switch(a){case -1:return dM();case 0:Ug();a=this.LM.j3;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=U().H;a=Y(a,b)}}return a;default:throw new D(a);}};e.aa=function(){OS(this,new p(1,0))&&MS(this,1,new (y(ta).M)(["name"]));return new Hf(this.MM)};e.$classData=x({i3:0},!1,"inrae.semantic_web.rdf.QueryVariable$$anon$16$$anon$17",{i3:1,Na:1,b:1,xa:1,pa:1}); -function DW(a){this.ya=ma;this.E=0;this.TB=this.OM=this.NM=this.Fa=null;if(null===a)throw K(L(),null);this.TB=a;JS(this,a)}DW.prototype=new LS;DW.prototype.constructor=DW;e=DW.prototype;e.Ha=function(a,b){switch(a){case 0:this.NM=b;break;case 1:this.OM=b;break;default:throw new D(a);}};e.i=function(a){U();a=Ua(a);this.E="localNameUser"===a?0:"nameSpaceUser"===a?1:-1}; -e.h=function(){var a=this.E;switch(a){case -1:return dM();case 0:Dg();a=this.TB.r3;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=U().H;a=Y(a,b)}}return a;case 1:Dg();a=this.TB.s3;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=U().H,a=Y(a,b))}return a;default:throw new D(a);}};e.aa=function(){Z(this,1,(Dg(),""));OS(this,new p(3,0))&&MS(this,2,new (y(ta).M)(["localNameUser","nameSpaceUser"]));return new Bg(this.NM,this.OM)}; -e.$classData=x({q3:0},!1,"inrae.semantic_web.rdf.URI$$anon$4$$anon$5",{q3:1,Na:1,b:1,xa:1,pa:1});function xy(a,b){this.PM=null;this.VB=!1;this.mr=a;this.WB=b}xy.prototype=new t;xy.prototype.constructor=xy; -function EW(a){if(!a.VB&&!a.VB){try{var b=Ov(),c=new Is(Nv(b,new $x(a.mr,ay())))}catch(g){if(b=Yu(L(),g),null!==b)a:{if(null!==b&&(c=mv(ov(),b),!c.k())){b=c.Ja();c=new ms(b);break a}throw K(L(),b);}else throw g;}if(c instanceof Is)b=c.Ji;else if(c instanceof ms){c=VK();b=VK();b=[z(new B,"vars",b)];var d=qc(new rc,b);nc();b=new qR;FW(b,"link",c);c=new IG(d);for(c=new JG(c);c.v();)d=c.s(),FW(b,d.ib,d.Va);b=new eS(b);Mv();c=z(new B,"ordered",new GW("true"));d=VK();c=[c,z(new B,"bindings",d)];d=qc(new rc, -c);c=new qR;Mv();FW(c,"distinct",new GW("false"));d=new IG(d);for(d=new JG(d);d.v();){var f=d.s();FW(c,f.ib,f.Va)}d=qc(new rc,[z(new B,"results",new eS(c))]);nc();c=new qR;FW(c,"head",b);b=new IG(d);for(b=new JG(b);b.v();)d=b.s(),FW(c,d.ib,d.Va);b=new eS(c)}else throw new D(c);a.PM=b;a.VB=!0}return a.PM} -function HW(a,b){a=EW(a);a=(new Cg("results")).xc(a);a=(new Cg("bindings")).xc(a);var c=TL(a);a=new GP;for(c=new JG(new GU(c.Cf,c.xb));c.v();){var d=c.s();if(d instanceof eS){Lg();d=(new Cg(b)).xc(d);try{var f=new Is((new Cg("type")).xc(d).kl())}catch(h){if(f=Yu(L(),h),null!==f)b:{if(null!==f){var g=mv(ov(),f);if(!g.k()){f=g.Ja();f=new ms(f);break b}}throw K(L(),f);}else throw h;}if(!(f instanceof Is)){if(f instanceof ms)throw wg(new xg,"Can not found key `type` in obj:"+Hg(d));throw new D(f);}g= -f.Ji;if("uri"===g)d=Ag(0,d);else if("literal"===g||"typed-literal"===g)d=Eg(d);else throw wg(new xg,"unknown type ");d=new dd(d)}else d=H();IW(a,d)}return a.Df.og()} -function JW(a,b,c){var d=EW(a);d=(new Cg("results")).xc(d);d=UL(d).yc("datatypes");if(d instanceof dd)d=d.Qb;else{if(H()!==d)throw new D(d);d=new eS(new qR)}var f=UL(d).yc(b);if(f instanceof dd)f=f.Qb;else{if(H()!==f)throw new D(f);f=new eS(new qR)}c.Ba(new C(((g,h)=>l=>{if(null!==l){var n=l.ib;l=l.Va;var r=UL(h).yc(n);if(r instanceof dd)r=r.Qb;else{if(H()!==r)throw new D(r);r=VK()}ZK(TL(r),l);UL(h).Kj(n,r)}else throw new D(l);})(a,f)));UL(d).Kj(b,f);a=EW(a);a=(new Cg("results")).xc(a);WL(new Cg("datatypes"), -a,d)}e=xy.prototype;e.A=function(){return"QueryResult"};e.B=function(){return 2};e.C=function(a){switch(a){case 0:return this.mr;case 1:return this.WB;default:return R(S(),a)}};e.p=function(){return tv(this)};e.g=function(){return du(this)};e.c=function(a){return this===a?!0:a instanceof xy?this.mr===a.mr&&this.WB===a.WB:!1};e.$classData=x({u3:0},!1,"inrae.semantic_web.sparql.QueryResult",{u3:1,b:1,z:1,o:1,d:1});function ed(){this.sx=null;E();var a=F();this.sx=G(0,a)}ed.prototype=new t; -ed.prototype.constructor=ed;e=ed.prototype;e.pE=function(a){var b=this.sx.yc(a);if(b instanceof dd&&(a=b.Qb,null!==a))return b=a.ib,a=a.Va,new dd(mh(rh(),b,a));if(H()===b)return H();throw new D(b);};e.A=function(){return"QueryResultManager"};e.B=function(){return 0};e.C=function(a){return R(S(),a)};e.p=function(){return tv(this)};e.g=function(){return du(this)};e.c=function(a){return a instanceof ed&&!0};e.$classData=x({v3:0},!1,"inrae.semantic_web.sparql.QueryResultManager",{v3:1,b:1,z:1,o:1,d:1}); -function aV(a,b){this.Ro=this.Wt=this.qm=null;this.bC=0;this.TM=this.SM=this.fC=this.cC=this.dC=this.eC=this.$B=this.aC=this.So=null;this.qm=a;this.Wt=b;this.Ro=es();this.bC=10;this.fC=this.cC=this.dC=this.eC=this.$B=this.aC=this.So="[X]";Ps(tU(new uU(a)),new C((f=>g=>{f.aC=""+(g|0);return KW(f)})(this)),this.Ro);var c=new uU(a),d=new Bg("",(Dg(),""));Ps(FU(c,b,d,0),new C((f=>g=>{f.$B=" - "+qf(g,"","\n - ","");return KW(f)})(this)),this.Ro);c=new uU(a);d=new Bg("",(Dg(),""));Ps(KU(c,b,d,0),new C((f=> -g=>{f.eC=" - "+qf(g,"","\n - ","");return KW(f)})(this)),this.Ro);c=new uU(a);d=new Bg("",(Dg(),""));Ps(LU(c,b,d,0),new C((f=>g=>{f.dC=" - "+qf(g,"","\n - ","");return KW(f)})(this)),this.Ro);c=new uU(a);d=new Bg("",(Dg(),""));Ps(MU(c,b,d,0),new C((f=>g=>{f.cC=" - "+qf(g,"","\n - ","");return KW(f)})(this)),this.Ro);""!==NJ(b)?(c=oT(a),Fg(),b=new Jg(b,(Tg(),Dg().yd),(Tg(),"")),Fg(),d=new Jg("",(Tg(),Dg().yd),(Tg(),"")),b=CU(c,b,d)):b=a;a=I(J().u,qc(new rc,[a.xd]));Ps(EU(qU(nU(b,a,0,0),this.bC)).sl, -new C((f=>g=>{g=(new Cg("results")).xc(g);g=(new Cg("bindings")).xc(g);g=TL(g);f.fC=" - "+qf(g,"","\n - ","");return KW(f)})(this)),this.Ro);this.SM="";a=qc(new rc,[z(new B,"ghCodeBlocks",!0),z(new B,"tables",!0),z(new B,"strikethrough",!1)]);this.TM=sc(tc(),a);KW(this)}aV.prototype=new t;aV.prototype.constructor=aV; -function KW(a){var b=new (Za(ia).Converter)(a.TM),c=b.makeHtml,d=""+a.SM,f=Jc().tH,g=df(E(),af(cf(),a.qm.xd,a.qm.$a));g=qf(g,"",",","");var h=a.Wt,l=a.aC,n=a.bC,r=a.fC,u=a.$B,w=a.eC,A=a.dC,M=a.cC,T=a.qm.uc,V=new bU(!1,!1);a="\n## [Discovery](https://github.com/p2m2/Discovery)\n - build : "+f+"\n\n### New step on focus\n\n - **target node** : "+g+"\n - **regex** : "+h+"\n - **Number of values** : **"+l+"**\n\n#### Values "+n+" .set(`value`) .setList(`value1`,`value1`,..)\n"+r+'\n\n#### Classes .isA("`uri`")\n\n'+ -u+'\n\n#### Forward property .isSubjectOf("`uri`","my_reference_var")\n\n'+w+'\n\n#### Datatype property .datatype("`uri`","my_reference_var")\n\n'+A+'\n\n#### Backward property .isObjectOf("`uri`","my_reference_var")\n\n'+M+"\n\n### configuration\n\n"+T+"\n\n\n### Request\n```\n"+aU(V,a.qm.$a,0)+"\n```\n- [Help](https://p2m2.github.io/discovery/user_docs.html)\n- [declare an issue ?] (https://github.com/p2m2/discovery/issues/new)\n\n";b=c.call(b,d+a);Wo||(Wo=new Vo);c=Wo;0===(67108864&c.ym)&&0=== -(67108864&c.ym)&&(0===(33554432&c.ym)&&0===(33554432&c.ym)&&(c.TN=window,c.ym|=33554432),c.SN=c.TN.document,c.ym|=67108864);c.SN.querySelector("html").innerHTML=b}e=aV.prototype;e.A=function(){return"HtmlView"};e.B=function(){return 2};e.C=function(a){switch(a){case 0:return this.qm;case 1:return this.Wt;default:return R(S(),a)}};e.p=function(){return tv(this)};e.g=function(){return du(this)}; -e.c=function(a){if(this===a)return!0;if(a instanceof aV){var b=this.qm,c=a.qm;return(null===b?null===c:b.c(c))?this.Wt===a.Wt:!1}return!1};e.$classData=x({B3:0},!1,"inrae.semantic_web.view.HtmlView",{B3:1,b:1,z:1,o:1,d:1});x({H3:0},!1,"io.lemonlabs.uri.Authority",{H3:1,b:1,z:1,o:1,d:1});function jU(a,b){this.Xt=a;this.W3=b}jU.prototype=new t;jU.prototype.constructor=jU;e=jU.prototype; -e.il=function(a){var b=a.Bx,c=a.nr,d=new LW(this,b,c);b=new MW(d,new NW(this,b,c));a=a.Cx;if(AE()===a)d=this.Xt.Ea(b);else{OW||(OW=new PW);if(OW!==a)throw new D(a);d=QW(this.Xt,d)}return RW(d)?"":qf(d,"","\x26","")};e.g=function(){return this.il(this.W3)};e.A=function(){return"QueryString"};e.B=function(){return 1};e.C=function(a){return 0===a?this.Xt:R(S(),a)};e.p=function(){return tv(this)};e.c=function(a){if(this===a)return!0;if(a instanceof jU){var b=this.Xt;a=a.Xt;return null===b?null===a:b.c(a)}return!1}; -e.$classData=x({Q3:0},!1,"io.lemonlabs.uri.QueryString",{Q3:1,b:1,z:1,o:1,d:1});class SW extends pg{}x({h4:0},!1,"io.lemonlabs.uri.UserInfo",{h4:1,b:1,z:1,o:1,d:1});function yE(a,b,c,d,f,g,h,l,n,r,u){this.nC=a;this.Ax=b;this.Bx=c;this.yx=d;this.mC=f;this.zx=g;this.lC=h;this.kC=l;this.nr=n;this.Cx=r;this.jC=u}yE.prototype=new t;yE.prototype.constructor=yE;e=yE.prototype;e.A=function(){return"UriConfig"};e.B=function(){return 11}; -e.C=function(a){switch(a){case 0:return this.nC;case 1:return this.Ax;case 2:return this.Bx;case 3:return this.yx;case 4:return this.mC;case 5:return this.zx;case 6:return this.lC;case 7:return this.kC;case 8:return this.nr;case 9:return this.Cx;case 10:return this.jC;default:return R(S(),a)}};e.p=function(){return tv(this)};e.g=function(){return du(this)}; -e.c=function(a){if(this===a)return!0;if(a instanceof yE){var b=this.nC,c=a.nC;(null===b?null===c:b.c(c))?(b=this.Ax,c=a.Ax,b=null===b?null===c:b.c(c)):b=!1;b?(b=this.Bx,c=a.Bx,b=null===b?null===c:b.c(c)):b=!1;b?(b=this.yx,c=a.yx,b=null===b?null===c:b.c(c)):b=!1;b?(b=this.mC,c=a.mC,b=null===b?null===c:b.c(c)):b=!1;b?(b=this.zx,c=a.zx,b=null===b?null===c:b.c(c)):b=!1;b?(b=this.lC,c=a.lC,b=null===b?null===c:b.c(c)):b=!1;b?(b=this.kC,c=a.kC,b=null===b?null===c:b.c(c)):b=!1;if(b&&this.nr===a.nr&&this.Cx=== -a.Cx)return b=this.jC,a=a.jC,null===b?null===a:b.c(a)}return!1};e.$classData=x({l4:0},!1,"io.lemonlabs.uri.config.UriConfig",{l4:1,b:1,z:1,o:1,d:1});function TW(a,b,c){b=UW(b,c);return VW(a,b,c)} -function VW(a,b,c){var d=(()=>n=>q(65535&(n|0)))(a);dm();var f=b.a.length,g=new jb(f);if(0>24]));f=II(E(),f);for(f=new Dp(f.tn);f.v();)h=WW(f),b.push(h);d=1+d|0}a=new kb(new Int8Array(b));return zF(oq(),a,c)}function xE(a,b){var c=J().Nd;return new XW(new ph(a,new ph(b,c)))} -function YW(){this.rm=this.N4=this.J4=this.K4=this.M4=this.L4=this.I4=this.H4=this.Yj=null;ZW=this;this.rm=new $W(this);EE(this)}YW.prototype=new t;YW.prototype.constructor=YW;YW.prototype.$classData=x({G4:0},!1,"io.lemonlabs.uri.typesafe.QueryKey$",{G4:1,b:1,ina:1,jna:1,d:1});var ZW;function eO(){ZW||(ZW=new YW);return ZW}function $W(){}$W.prototype=new t;$W.prototype.constructor=$W;function aX(a,b,c){return new bO(((d,f,g)=>h=>f.vv(g.t(h)))(a,b,c))} -$W.prototype.wg=function(a,b){return aX(this,a,b)};$W.prototype.$classData=x({Q4:0},!1,"io.lemonlabs.uri.typesafe.QueryKeyInstances1$$anon$3",{Q4:1,b:1,JG:1,KG:1,d:1});function bX(){}bX.prototype=new t;bX.prototype.constructor=bX;function cX(a,b,c){return new gO(((d,f,g)=>h=>f.Bs(g.t(h)))(a,b,c))}bX.prototype.wg=function(a,b){return cX(this,a,b)};bX.prototype.$classData=x({l5:0},!1,"io.lemonlabs.uri.typesafe.QueryValueInstances2$$anon$6",{l5:1,b:1,JG:1,KG:1,d:1});function hU(){gU=this} -hU.prototype=new t;hU.prototype.constructor=hU;hU.prototype.$classData=x({p5:0},!1,"io.lemonlabs.uri.typesafe.TraversableParams$",{p5:1,b:1,rna:1,sna:1,d:1});var gU;function iU(a,b){this.r5=a;this.s5=b}iU.prototype=new t;iU.prototype.constructor=iU;iU.prototype.$classData=x({q5:0},!1,"io.lemonlabs.uri.typesafe.TraversableParams$ops$$anon$10",{q5:1,b:1,pna:1,qna:1,d:1});x({u5:0},!1,"io.lemonlabs.uri.typesafe.TraversableParamsInstances1$$anon$12",{u5:1,b:1,JG:1,KG:1,d:1});class dX extends pg{} -function eX(){}eX.prototype=new t;eX.prototype.constructor=eX;function fX(){}fX.prototype=eX.prototype;function DF(){var a=new gX;yF(a,null,null);return a}function rm(a){var b=new gX;yF(b,""+a,a instanceof Ru?a:null);return b}class gX extends xg{}gX.prototype.$classData=x({Yaa:0},!1,"java.lang.AssertionError",{Yaa:1,ez:1,Ka:1,b:1,d:1});var va=x({$aa:0},!1,"java.lang.Byte",{$aa:1,mj:1,b:1,d:1,ob:1},a=>db(a));function Qa(a){a=+a;return $h(di(),a)} -var ks=x({dba:0},!1,"java.lang.Double",{dba:1,mj:1,b:1,d:1,ob:1},a=>"number"===typeof a),Ca=x({fba:0},!1,"java.lang.Float",{fba:1,mj:1,b:1,d:1,ob:1},a=>"number"===typeof a),Ba=x({iba:0},!1,"java.lang.Integer",{iba:1,mj:1,b:1,d:1,ob:1},a=>ua(a)),Fa=x({nba:0},!1,"java.lang.Long",{nba:1,mj:1,b:1,d:1,ob:1},a=>a instanceof p);function dv(a,b){yF(a,b,null);return a}class ev extends pg{}ev.prototype.$classData=x({Cb:0},!1,"java.lang.RuntimeException",{Cb:1,Za:1,Ka:1,b:1,d:1}); -var Aa=x({yba:0},!1,"java.lang.Short",{yba:1,mj:1,b:1,d:1,ob:1},a=>eb(a));function Pa(a){for(var b=0,c=1,d=-1+(a.length|0)|0;0<=d;)b=b+k(65535&(a.charCodeAt(d)|0),c)|0,c=k(31,c),d=-1+d|0;return b}function Wg(a,b){return a.substring((a.length|0)-(b.length|0)|0)===b} -function UW(a,b){b=Mk(b);a=Dk(Ak(),a,a.length|0);if(0===(4&b.Wf)<<24>>24&&0===(4&b.Wf)<<24>>24){var c=b.WE();var d=dl().Wo;if(null===d)throw fm("null CodingErrorAction");c.xr=d;d=dl().Wo;if(null===d)throw fm("null CodingErrorAction");c.zr=d;b.bj=c;b.Wf=(4|b.Wf)<<24>>24}b=b.bj;if(0===(a.ma-a.P|0))var f=tk(0);else{b.fk=0;b.cv();c=Ya(ka(ka(a.ma-a.P|0)*b.iu));for(c=tk(c);;){b:{d=b;var g=a,h=c;if(3===d.fk)throw AF();for(d.fk=2;;){try{f=d.eE(g,h)}catch(M){if(M instanceof il)throw new BF(M);if(M instanceof -ol)throw new BF(M);throw M;}if(0===f.ff){var l=g.ma-g.P|0;if(0r||0>(u.a.length-r|0))throw Bk();var w=n.P,A=w+r|0;if(A>n.ma)throw new il;n.P=A;u.U(0,n.Ve,n.Uf+w|0,r);n=g.P;l=l.Br; -if(0>l)throw CF();pk.prototype.va.call(g,n+l|0)}else{if(dl().Xo===n){d=l;break b}if(dl().PC===n){n=g.P;l=l.Br;if(0>l)throw CF();pk.prototype.va.call(g,n+l|0)}else throw new D(n);}}}if(0!==d.ff){if(1===d.ff){c=gl(c);continue}nl(d);throw rm("should not get here");}if(a.P!==a.ma)throw DF();f=c;break}for(;;){b:switch(a=b,a.fk){case 2:c=ul().pd;0===c.ff&&(a.fk=3);a=c;break b;case 3:a=ul().pd;break b;default:throw AF();}if(0!==a.ff){if(1===a.ff){f=gl(f);continue}nl(a);throw rm("should not get here");}break}pk.prototype.Uy.call(f)}a= -new kb(f.ma-f.P|0);b=a.a.length;if(0>b||0>(a.a.length-b|0))throw Bk();c=f.P;d=c+b|0;if(d>f.ma)throw new ol;f.P=d;f.Ve.U(f.Uf+c|0,a,0,b);return a}function hX(a,b,c,d){if(b>(a.length|0)||0>b||0>b)throw a=new xF,yF(a,"Index out of Bound",null),a;d=d-0|0;for(var f=0;f=l}else l=!1;if(l)g=1+g|0;else break}h="".substring(h,g);h=Gq(Hq(),h,10);h=FH(c)[h];nc();h=void 0===h?null:h;null!==h&&jX(d,h);break;case 92:g=1+g|0;gf&&GH(c);){if(0!==JH(c)){var g=IH(c);d=a.substring(d,g);b.push(null===d?null:d);f=1+f|0}d=JH(c)}a=a.substring(d);b.push(null===a?null:a);a=new (y(ta).M)(b);for(b=a.a.length;0!==b&&""===a.a[-1+b|0];)b=-1+b|0;b!==a.a.length&&(c=new (y(ta).M)(b),a.U(0,c,0,b),a=c)}return a} -function tn(a){for(var b=a.length|0,c=new jb(b),d=0;d=(65535&(a.charCodeAt(c)|0)))c=1+c|0;else break;if(c===b)return"";for(var d=b;;)if(32>=(65535&(a.charCodeAt(-1+d|0)|0)))d=-1+d|0;else break;return 0===c&&d===b?a:a.substring(c,d)}var ta=x({Maa:0},!1,"java.lang.String",{Maa:1,b:1,d:1,ob:1,Lm:1},a=>"string"===typeof a);function iX(){var a=new lX;a.nj=Bn(new Cn);return a} -function lX(){this.nj=null}lX.prototype=new t;lX.prototype.constructor=lX;e=lX.prototype;e.y=function(){return this.nj.y()};e.Lf=function(a){return this.nj.Lf(a)};function jX(a,b){a=a.nj;a.x=""+a.x+b}function kX(a,b){a=a.nj;b=String.fromCharCode(b);a.x=""+a.x+b}e.zn=function(a,b){return this.nj.x.substring(a,b)};e.g=function(){return this.nj.x};e.bs=function(a){var b=this.nj;b.x=""+b.x+a};e.$classData=x({Eba:0},!1,"java.lang.StringBuffer",{Eba:1,b:1,Lm:1,os:1,d:1}); -function Bn(a){a.x="";return a}function mX(a){var b=new Cn;Bn(b);if(null===a)throw P();b.x=a;return b}function jq(a){var b=new Cn;Bn(b);if(0>a)throw new am;return b}function Cn(){this.x=null}Cn.prototype=new t;Cn.prototype.constructor=Cn;function nX(a,b){b=wF(oq(),b,0,b.a.length);a.x=""+a.x+b}e=Cn.prototype;e.g=function(){return this.x};e.y=function(){return this.x.length|0};e.Lf=function(a){return 65535&(this.x.charCodeAt(a)|0)};e.zn=function(a,b){return this.x.substring(a,b)}; -e.bs=function(a){this.x=""+this.x+a};e.$classData=x({Fba:0},!1,"java.lang.StringBuilder",{Fba:1,b:1,Lm:1,os:1,d:1});class lv extends xg{}function oX(a){return 0===a.ye?(a=a.ie,!(-1===a.m&&-1===a.r)):!1}function pX(a,b){var c=a.Qa,d=c>>31,f=-c|0;c=0!==c?~d:-d|0;var g=dK(a);d=g>>31;g=f+g|0;f=(-2147483648^g)<(-2147483648^f)?1+(c+d|0)|0:c+d|0;if(0===f?-2147483629<(-2147483648^g):0a.ye&&(a.ie=b.eg())}function rX(a){a.To=null;a.ak=0;a.ye=0;a.ie=ma;a.Qa=0;a.um=0}function qG(a,b){var c=new dG;rX(c);c.ie=a;c.Qa=b;c.ye=mG(nG(),a);return c}function kG(a,b){var c=new dG;rX(c);c.ie=new p(a,a>>31);c.Qa=b;nG();a=32-la(0>a?~a:a)|0;c.ye=a;return c} -function bK(a,b,c){rX(a);var d=-1+(0+c|0)|0;if(null===b)throw zm("in \x3d\x3d null");if(d>=b.a.length||0>=c||0>d)throw new Iw("Bad offset/length: offset\x3d0 len\x3d"+c+" in.length\x3d"+b.a.length);var f=0;if(0<=d&&43===b.a[0]){if(f=1+f|0,f>31,h=Gq(Hq(),f,10),f=h>>31,h=b-h|0,a.Qa=h,l=a.Qa,h!==l||((-2147483648^h)>(-2147483648^b)?-1+(d-f|0)|0:d-f|0)!==l>>31))throw new Iw("Scale out of range");if(19>g){f=qF();""===c&&lF(c);d=0;b=!1;switch(65535&(c.charCodeAt(0)|0)){case 43:d=1;break;case 45:d=1,b=!0}g=c.length|0;if(d>=g)lF(c),f=void 0;else{h=(f.iz?f.hz:jF(f))[10];for(l=h.qba;;){if(f=df?f=48===f:(n=PE(n),f=0<=Ol(hm(),n,f));if(f)d= -1+d|0;else break}(g-d|0)>k(3,l)&&lF(c);f=1+Xa(-1+(g-d|0)|0,l)|0;n=d+f|0;var r=mF(d,n,c);if(n===g)f=new p(r,0);else{f=h.DP;d=f.m;f=f.r;l=n+l|0;var u=65535&r,w=r>>>16|0,A=65535&d,M=d>>>16|0,T=k(u,A);A=k(w,A);var V=k(u,M);u=T+((A+V|0)<<16)|0;T=(T>>>16|0)+V|0;r=((k(r,f)+k(w,M)|0)+(T>>>16|0)|0)+(((65535&T)+A|0)>>>16|0)|0;n=mF(n,l,c);n=u+n|0;r=(-2147483648^n)<(-2147483648^u)?1+r|0:r;l===g?f=new p(n,r):(u=h.rba,h=u.m,u=u.r,g=mF(l,g,c),(r===u?(-2147483648^n)>(-2147483648^h):r>u)&&lF(c),u=65535&n,h=n>>>16| -0,M=65535&d,l=d>>>16|0,w=k(u,M),M=k(h,M),T=k(u,l),u=w+((M+T|0)<<16)|0,w=(w>>>16|0)+T|0,f=(((k(n,f)+k(r,d)|0)+k(h,l)|0)+(w>>>16|0)|0)+(((65535&w)+M|0)>>>16|0)|0,d=u+g|0,f=(-2147483648^d)<(-2147483648^u)?1+f|0:f,-2147483648===(-2147483648^f)&&(-2147483648^d)<(-2147483648^g)&&lF(c),f=new p(d,f))}}d=f.m;f=f.r;b?(b=-d|0,d=0!==d?~f:-f|0,(0===d?0!==b:0f&&lF(c),c=new p(d,f));a.ie=c;a.ye=mG(nG(),a.ie)}else jK(a,bF(c))} -function hK(a,b,c){rX(a);if(null===b)throw zm("unscaledVal \x3d\x3d null");a.Qa=c;jK(a,b);return a}function dG(){this.To=null;this.ak=0;this.tm=null;this.ye=0;this.ie=ma;this.um=this.Qa=0}dG.prototype=new sF;dG.prototype.constructor=dG;function sX(a){if(64>a.ye){if(0>a.ie.r)return-1;a=a.ie;var b=a.r;return(0===b?0!==a.m:0a.ye){var c=a.ie;if(0===c.m&&-2147483648===c.r)b=19;else{hm();b=nG().eu;if(0>c.r){var d=c.m;c=c.r;d=new p(-d|0,0!==d?~c:-c|0)}else d=c;b:{c=0;for(var f=b.a.length;;){if(c===f){b=-1-c|0;break b}var g=(c+f|0)>>>1|0,h=b.a[g],l=h.m;h=h.r;var n=fb(new p(l,h)),r=n.m;n=n.r;var u=d.r;if(u===n?(-2147483648^d.m)<(-2147483648^r):ub?-1-b|0:1+b|0}}else b=1+Ya(.3010299956639812*(-1+a.ye|0))| -0,d=eG(a),c=Aj(),b=0!==iK(d,ek(c,new p(b,b>>31))).Ca?1+b|0:b;a.um=b}return a.um} -function tX(a){if(oX(a))return a;var b=-1+Aj().wm.a.length|0,c=1,d=eG(a),f=a=a.Qa;for(a>>=31;;){if(gK(d,0))c=f,b=d,c=new p(c,a);else{var g=uX(d,Aj().wm.a[c]);if(0===g.zC.Ca){d=g.yC;var h=c;g=h>>31;var l=a;a=f-h|0;f=(-2147483648^a)>(-2147483648^f)?-1+(l-g|0)|0:l-g|0;c=ca.ye&&64>b.ye){d=a.ie;c=b.ie;var f=d.r,g=c.r;if(f===g?(-2147483648^d.m)<(-2147483648^c.m):f(-2147483648^b.m):d>c)?1:0}f=a.Qa;g=f>>31;d=b.Qa;var h=d>>31;d=f-d|0;f=(-2147483648^d)>(-2147483648^f)?-1+(g-h|0)|0:g-h|0;g=dK(a)-dK(b)|0;h=g>>31;var l=1+d|0,n=0===l?1+f|0:f;if(h===n?(-2147483648^g)>(-2147483648^l):h>n)return c;h=g>>31;l=-1+d|0;n=-1!==l?f:-1+f|0;if(h===n?(-2147483648^ -g)<(-2147483648^l):hf)c=Aj(),a=Zj(a,ek(c,new p(-d|0,0!==d?~f:-f|0)));else if(0===f?0!==d:0this.ye){var b=a.ie;a=this.ie;return b.m===a.m&&b.r===a.r}b=this.tm;a=a.tm;return Ut(O(),b,a)}return!1}; -e.p=function(){if(0===this.ak)if(64>this.ye){this.ak=this.ie.m;var a=this.ie.r;this.ak=k(33,this.ak)+a|0;this.ak=k(17,this.ak)+this.Qa|0}else this.ak=k(17,this.tm.p())+this.Qa|0;return this.ak}; -e.g=function(){if(null!==this.To)return this.To;if(32>this.ye)return this.To=uj(wj(),this.ie,this.Qa);var a=eG(this);a=rj(wj(),a);if(0===this.Qa)return a;var b=0>eG(this).Ca?2:1,c=a.length|0,d=this.Qa,f=d>>31,g=-d|0;f=0!==d?~f:-f|0;var h=c>>31;d=g+c|0;f=(-2147483648^d)<(-2147483648^g)?1+(f+h|0)|0:f+h|0;h=b>>31;g=d-b|0;d=(-2147483648^g)>(-2147483648^d)?-1+(f-h|0)|0:f-h|0;0a.Qa){var b=eG(a),c=Aj();a=a.Qa;var d=a>>31;return Zj(b,ek(c,new p(-a|0,0!==a?~d:-d|0)))}b=eG(a);c=Aj();a=a.Qa;return iK(b,ek(c,new p(a,a>>31)))} -function qX(a){if(0===a.Qa||oX(a))return eG(a);if(0>a.Qa){var b=eG(a),c=Aj();a=a.Qa;var d=a>>31;return Zj(b,ek(c,new p(-a|0,0!==a?~d:-d|0)))}if(a.Qa>dK(a)||a.Qa>xX(eG(a)))throw new Wa("Rounding necessary");b=eG(a);c=Aj();a=a.Qa;a=eK(b,ek(c,new p(a,a>>31)));if(0!==a.a[1].Ca)throw new Wa("Rounding necessary");return a.a[0]}e.eg=function(){return-64>=this.Qa||this.Qa>dK(this)?ma:wX(this).eg()};e.xf=function(){return-32>=this.Qa||this.Qa>dK(this)?0:wX(this).xf()}; -e.Im=function(){var a=this.ye,b=a>>31,c=tj(),d=ju(c,this.Qa/.3010299956639812);c=c.sa;d=a-d|0;a=(-2147483648^d)>(-2147483648^a)?-1+(b-c|0)|0:b-c|0;b=ka(sX(this));return(-1===a?2147483499>(-2147483648^d):-1>a)||0===b?ka(0*b):(0===a?-2147483519<(-2147483648^d):0>31,d=tj(),f=ju(d,this.Qa/.3010299956639812);d=d.sa;f=b-f|0;b=(-2147483648^f)>(-2147483648^b)?-1+(c-d|0)|0:c-d|0;if((-1===b?2147482574>(-2147483648^f):-1>b)||0===a)return 0*a;if(0===b?-2147482623<(-2147483648^f):0=this.Qa)f=Aj(),d=-this.Qa|0,d=Zj(c,ek(f,new p(d,d>>31)));else{d=Aj();var g=this.Qa;d=ek(d,new p(g,g>>31));f=100-f|0;0>31));d=Gj(Mj(),f,c)}f=xX(d);c=-54+Zi(oj(),d)|0;if(0(-2147483648^n)?1+h|0:h}}else l=d.eg(),d=-c|0,g=l.m,l=0===(32&d)?(g>>>1|0)>>>(31-d|0)|0|l.r<(-2147483648^n)?1+h|0:h);0===(4194304&h)?(d=d>>>1|0|h<<31,h>>=1,b=b+c|0):(d=d>>>2|0|h<<30,h>>=2,b=b+(1+c|0)|0);if(2046b)return 0*a;if(0>=b){d=g>>>1|0|l<<31;h=l>>1;l=63+b|0;g=d&(0===(32&l)?-1>>>l|0|-2<<(31-l|0):-1>>>l|0);l=h&(0===(32&l)?-1>>>l|0:0);b=-b|0;d=0===(32&b)?d>>>b|0|h<<1<<(31-b|0):h>>b;h=0===(32&b)?h>>b:h>>31;if(3===(3&d)||(1!==(1&d)||0===g&&0===l?0:f>>1|0|f<<31;h=f>>1}f=d;b=-2147483648&a>>31|b<<20|1048575&h;a=di();b=new p(f,b);a.lj[a.xE]=b.r;a.lj[a.yE]=b.m;return+a.fz[0]};function eG(a){null===a.tm&&(a.tm=Ij(lj(),a.ie));return a.tm} -var oG=x({B5:0},!1,"java.math.BigDecimal",{B5:1,mj:1,b:1,d:1,ob:1});dG.prototype.$classData=oG;function yX(a){a.Jx=-2;a.Uo=0} -function bF(a){var b=new WF;yX(b);lj();if(null===a)throw P();if(""===a)throw new Iw("Zero length BigInteger");if(""===a||"+"===a||"-"===a)throw new Iw("Zero length BigInteger");var c=a.length|0;if(45===(65535&(a.charCodeAt(0)|0)))var d=-1,f=1,g=-1+c|0;else 43===(65535&(a.charCodeAt(0)|0))?(f=d=1,g=-1+c|0):(d=1,f=0,g=c);d|=0;var h=f|0;f=g|0;for(g=h;ga.Ca?cj(1,a.Ua,a.ua):a}function cF(a,b){return a.Ca>b.Ca?1:a.Cab.Ua?a.Ca:a.Uag?1:-1:Jj(Mj(),a.ua,b.ua,f);if(0===h)return d===c?lj().qr:lj().Ix;if(-1===h)return lj().ck;h=1+(f-g|0)|0;var l=new ob(h);c=d===c?1:-1;1===g?Bj(zj(),l,a.ua,f,b.ua.a[0]):yj(zj(),l,h,a.ua,f,b.ua,g); -c=cj(c,h,l);dj(c);return c}function eK(a,b){a=uX(a,b);return new (y(Yj).M)([a.yC,a.zC])} -function uX(a,b){var c=b.Ca;if(0===c)throw new Wa("BigInteger divide by zero");var d=b.Ua;b=b.ua;if(1===d){zj();b=b.a[0];var f=a.ua,g=a.Ua;d=a.Ca;1===g?(f=f.a[0],a=0===b?Va(0,0):+(f>>>0)/+(b>>>0)|0,g=0,b=0===b?Xa(0,0):+(f>>>0)%+(b>>>0)|0,f=0,d!==c&&(c=a,a=-c|0,g=0!==c?~g:-g|0),0>d&&(c=b,d=f,b=-c|0,f=0!==c?~d:-d|0),c=new Xi(Ij(lj(),new p(a,g)),Ij(lj(),new p(b,f)))):(c=d===c?1:-1,a=new ob(g),b=Bj(0,a,f,g,b),b=new ob(new Int32Array([b])),c=cj(c,g,a),d=cj(d,1,b),dj(c),dj(d),c=new Xi(c,d));return c}g= -a.ua;f=a.Ua;if(0>(f!==d?f>d?1:-1:Jj(Mj(),g,b,f)))return new Xi(lj().ck,a);a=a.Ca;var h=1+(f-d|0)|0;c=a===c?1:-1;var l=new ob(h);b=yj(zj(),l,h,g,f,b,d);c=cj(c,h,l);d=cj(a,d,b);dj(c);dj(d);return new Xi(c,d)}e=WF.prototype;e.c=function(a){if(a instanceof WF){var b;if(b=this.Ca===a.Ca&&this.Ua===a.Ua)a:{for(b=0;b!==this.Ua;){if(this.ua.a[b]!==a.ua.a[b]){b=!1;break a}b=1+b|0}b=!0}a=b}else a=!1;return a}; -function xX(a){if(0===a.Ca)return-1;var b=$i(a);a=a.ua.a[b];return(b<<5)+(0===a?32:31-la(a&(-a|0))|0)|0}e.p=function(){if(0===this.Uo){for(var a=this.Ua,b=0;b>31,f=65535&c,g=c>>>16|0,h=65535&a,l=a>>>16|0,n=k(f,h);h=k(g,h);var r=k(f,l);f=n+((h+r|0)<<16)|0;n=(n>>>16|0)+r|0;b=(((k(c,b)+k(d,a)|0)+k(g,l)|0)+(n>>>16|0)|0)+(((65535&n)+h|0)>>>16|0)|0;return new p(f,b)};function Zj(a,b){return 0===b.Ca||0===a.Ca?lj().ck:bk(Aj(),a,b)}function Lj(a){return 0===a.Ca?a:cj(-a.Ca|0,a.Ua,a.ua)} -function fk(a,b){if(0>b)throw new Wa("Negative exponent");if(0===b)return lj().qr;if(1===b||a.c(lj().qr)||a.c(lj().ck))return a;if(gK(a,0)){Aj();for(var c=lj().qr,d=a;1>=1,c=a;return Zj(c,d)}for(c=1;!gK(a,c);)c=1+c|0;d=lj();var f=k(c,b);if(f>5;f&=31;var g=new ob(1+ -d|0);g.a[d]=1<>5;if(0===b)return 0!==(1&a.ua.a[0]);if(0>b)throw new Wa("Negative bit address");if(c>=a.Ua)return 0>a.Ca;if(0>a.Ca&&c<$i(a))return!1;var d=a.ua.a[c];0>a.Ca&&(d=$i(a)===c?-d|0:~d);return 0!==(d&1<<(31&b))}e.g=function(){return rj(wj(),this)}; -function dj(a){for(;;){if(0=a?Ya(a):-1} -function EX(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":"")}function FX(a,b,c){var d=qm(a,1+b|0);a=d.Pm?"-":"";var f=d.tk,g=-1+(f.length|0)|0,h=b-g|0;b=f.substring(0,1);f=""+f.substring(1)+mm(nm(),h);d=g-d.sk|0;g=""+(0>d?-d|0:d);return a+(""!==f||c?b+"."+f:b)+"e"+(0>d?"-":"+")+(1===(g.length|0)?"0"+g:g)} -function GX(a,b,c){var d=om(a,((a.tk.length|0)+b|0)-a.sk|0);nm();if(!("0"===d.tk||d.sk<=b))throw rm("roundAtPos returned a non-zero value with a scale too large");d="0"===d.tk||d.sk===b?d:new pm(a.Pm,""+d.tk+mm(nm(),b-d.sk|0),b);a=d.Pm?"-":"";d=d.tk;var f=d.length|0,g=1+b|0;d=f>=g?d:""+mm(nm(),g-f|0)+d;f=(d.length|0)-b|0;a+=d.substring(0,f);return 0!==b||c?a+"."+d.substring(f):a}function TF(a,b,c,d,f,g){b=0>f?g:g.substring(0,f);b=0!==(256&c)?b.toUpperCase():b;RF(a,c,d,b)} -function aG(a,b,c,d){RF(a,b,c,$F(b,d!==d?"NaN":0=c&&0===(110&b))b=$F(b,d),IF(a,b);else if(0===(126&b))RF(a,b,c,$F(b,d));else{if(45!==(65535&(d.charCodeAt(0)|0)))var g=0!==(4&b)?"+":0!==(8&b)?" ":"";else 0!==(64&b)?(d=d.substring(1)+")",g="("):(d=d.substring(1),g="-");f=""+g+f;if(0!==(32&b)){var h=d.length|0;for(g=0;;){if(g!==h){var l=65535&(d.charCodeAt(g)|0);l=48<=l&&57>=l}else l=!1;if(l)g=1+g|0;else break}g=-3+g|0;if(!(0>=g)){for(h=d.substring(g);3=c?IF(a,d):0!==(1&b)?CX(a,d,HX(" ",c-f|0)):CX(a,HX(" ",c-f|0),d)}function ZF(a,b,c,d,f,g){b=(f.length|0)+(g.length|0)|0;b>=d?CX(a,f,g):0!==(16&c)?DX(a,f,HX("0",d-b|0),g):0!==(1&c)?DX(a,f,g,HX(" ",d-b|0)):DX(a,HX(" ",d-b|0),f,g)}function HX(a,b){for(var c="",d=0;d!==b;)c=""+c+a,d=1+d|0;return c}function JF(a){throw new IX(String.fromCharCode(a));} -function cG(a,b,c,d,f,g){var h=0!==(2&c);d=0<=d?d:6;switch(f){case 101:h=FX(b,d,h);break;case 102:h=GX(b,d,h);break;default:f=0===d?1:d,b=qm(b,f),d=(-1+(b.tk.length|0)|0)-b.sk|0,-4<=d&&df?0:f,h)):h=FX(b,-1+f|0,h)}XF(a,c,g,h,"")}function FF(){this.Qm=this.cca=this.sp=null;this.GE=!1;this.RP=null}FF.prototype=new t;FF.prototype.constructor=FF;FF.prototype.g=function(){if(this.GE)throw new HF;return null===this.sp?this.Qm:this.sp.g()};function OF(a){throw new JX(EX(a));} -function QF(a,b,c){throw new KX(EX(b&c),a);}function UF(a,b){throw new LX(a,sa(b));}FF.prototype.$classData=x({Yba:0},!1,"java.util.Formatter",{Yba:1,b:1,Gx:1,cz:1,Hx:1});class ct extends pg{constructor(a){super();yF(this,"Boxed Exception",a)}}ct.prototype.$classData=x({Pca:0},!1,"java.util.concurrent.ExecutionException",{Pca:1,Za:1,Ka:1,b:1,d:1});function MX(){this.jj=null;this.kj=0}MX.prototype=new jO;MX.prototype.constructor=MX;function NX(){}NX.prototype=MX.prototype; -var yH=x({Sm:0},!1,"java.util.concurrent.TimeUnit",{Sm:1,Nm:1,b:1,ob:1,d:1});MX.prototype.$classData=yH;function XH(a,b,c){this.jk=a;this.Fr=b;this.Er=c}XH.prototype=new t;XH.prototype.constructor=XH;e=XH.prototype;e.A=function(){return"Position"};e.B=function(){return 3};e.C=function(a){switch(a){case 0:return this.jk;case 1:return this.Fr;case 2:return this.Er;default:return R(S(),a)}}; -e.p=function(){var a=Pa("Position");a=S().j(-889275714,a);var b=this.jk;a=S().j(a,b);b=this.Fr;a=S().j(a,b);b=this.Er;a=S().j(a,b);return S().ca(a,3)};e.g=function(){return du(this)};e.c=function(a){return this===a?!0:a instanceof XH?this.jk===a.jk&&this.Fr===a.Fr&&this.Er===a.Er:!1};e.$classData=x({e7:0},!1,"org.parboiled2.Position",{e7:1,b:1,z:1,o:1,d:1});function OX(){}OX.prototype=new t;OX.prototype.constructor=OX;function PX(){}PX.prototype=OX.prototype; -function QX(a){for(var b=J().Nd;;){var c=!1,d=null,f=a;if(f instanceof ph){c=!0;d=f;var g=d.re,h=d.Gb;if(null!==g&&g.ug instanceof Qn){b=b.k()?a:b;a=h;continue}}if(c&&(h=d.re,a=d.Gb,null!==h&&(h=h.ug,Rn()===h)))continue;if(c&&(h=d.re,a=d.Gb,null!==h&&(h=h.ug,Un()===h)))return b.k()?a:b;if(c){f=d.Gb;if(0<=d.re.xm&&!b.k())return b;b=J().Nd;a=f}else{d=J().Nd;if(null===d?null===f:d.c(f))return b;throw new D(f);}}}function RX(a,b){this.uh=a;this.kk=b}RX.prototype=new t;RX.prototype.constructor=RX; -function SX(a){var b=QX(a.uh);return b!==a.uh?new RX(b,a.kk):a}e=RX.prototype;e.A=function(){return"RuleTrace"};e.B=function(){return 2};e.C=function(a){switch(a){case 0:return this.uh;case 1:return this.kk;default:return R(S(),a)}};e.p=function(){return tv(this)};e.g=function(){return du(this)};e.c=function(a){if(this===a)return!0;if(a instanceof RX){var b=this.uh,c=a.uh;if(null===b?null===c:b.c(c))return b=this.kk,a=a.kk,null===b?null===a:b.c(a)}return!1}; -e.$classData=x({h7:0},!1,"org.parboiled2.RuleTrace",{h7:1,b:1,z:1,o:1,d:1});function TX(a,b){this.ug=a;this.xm=b}TX.prototype=new t;TX.prototype.constructor=TX;e=TX.prototype;e.A=function(){return"NonTerminal"};e.B=function(){return 2};e.C=function(a){switch(a){case 0:return this.ug;case 1:return this.xm;default:return R(S(),a)}};e.p=function(){var a=Pa("NonTerminal");a=S().j(-889275714,a);var b=this.ug;b=ku(S(),b);a=S().j(a,b);b=this.xm;a=S().j(a,b);return S().ca(a,2)};e.g=function(){return du(this)}; -e.c=function(a){if(this===a)return!0;if(a instanceof TX&&this.xm===a.xm){var b=this.ug;a=a.ug;return null===b?null===a:b.c(a)}return!1};e.$classData=x({u7:0},!1,"org.parboiled2.RuleTrace$NonTerminal",{u7:1,b:1,z:1,o:1,d:1});function p(a,b){this.m=a;this.r=b}p.prototype=new sF;p.prototype.constructor=p;e=p.prototype;e.c=function(a){return a instanceof p?this.m===a.m&&this.r===a.r:!1};e.p=function(){return this.m^this.r};e.g=function(){return IE(tj(),this.m,this.r)};e.tS=function(){return this.m}; -e.es=function(){return this.m<<24>>24};e.gt=function(){return this.m<<16>>16};e.xf=function(){return this.m};e.eg=function(){return fb(this)};e.Im=function(){return mI(tj(),this.m,this.r)};e.Ei=function(){return Wt(tj(),this.m,this.r)};e.$classData=x({Kaa:0},!1,"org.scalajs.linker.runtime.RuntimeLong",{Kaa:1,mj:1,b:1,d:1,ob:1});function lc(){this.Tz=null}lc.prototype=new t;lc.prototype.constructor=lc;function UX(){}UX.prototype=lc.prototype; -lc.prototype.c=function(a){return a instanceof lc?this.Tz===a.Tz&&this.xk===a.xk:!1};lc.prototype.p=function(){return this.xk};lc.prototype.kf=function(a){return this.xk()=>bY().rR)(this))}$X.prototype=new yP;$X.prototype.constructor=$X; -$X.prototype.$classData=x({yga:0},!1,"scala.collection.Map$",{yga:1,zga:1,b:1,Rv:1,d:1});var aY;function bY(){aY||(aY=new $X);return aY}function Om(a,b){this.AF=this.hA=null;this.Ega=a;this.Dga=b;iP(this,a,b)}Om.prototype=new kP;Om.prototype.constructor=Om;function Nm(a,b){return new Om(a.Ega,new C(((c,d)=>f=>!!c.Dga.t(f)&&!!d.t(f))(a,b)))}Om.prototype.$classData=x({Cga:0},!1,"scala.collection.MapOps$WithFilter",{Cga:1,bR:1,YF:1,b:1,d:1});function cY(){this.fg=null}cY.prototype=new t; -cY.prototype.constructor=cY;function dY(){}e=dY.prototype=cY.prototype;e.ai=function(a,b){return this.sb(new eY(a,b))};e.si=function(a,b){return this.sb(new fY(a,b))};function I(a,b){return a.fg.hf(b)}e.ls=function(a){return this.fg.sb(a)};e.gb=function(){return this.fg.gb()};e.sb=function(a){return this.ls(a)};e.mc=function(){return this.fg.mc()};e.hf=function(a){return I(this,a)};function gY(a,b){var c=a.Fb();a=gP(b)?new hP(b,a):b.w().bh(new Tm((d=>()=>d.w())(a)));return c.sb(a)} -function ih(a){return a.uf(new C((()=>b=>b)(a)))}function hY(a,b){return a.vf(new iY(a,b))}function jh(a,b){return a.Fi(new C(((c,d)=>f=>N(O(),d,f))(a,b)),0)}function lQ(a,b){return a.hs(new C(((c,d)=>f=>N(O(),f,d))(a,b)))}function RW(a){return 0===a.Sc(0)}function jY(a,b){var c=a.L();if(-1!==c){var d=b.L();c=-1!==d&&c!==d}else c=!1;if(c)return!1;a:{a=a.w();for(b=b.w();a.v()&&b.v();)if(!N(O(),a.s(),b.s())){b=!1;break a}b=a.v()===b.v()}return b} -function kY(a,b){var c=a.Fb().gb();for(a=a.w();a.v();){var d=b.t(a.s());c.Wa(d)}return c.yb()}function lY(a,b){var c=a.Fb().gb();for(a=a.w();a.v();){var d=b.t(a.s());c.wc(d)}return c.yb()}function QW(a,b){for(var c=a.Fb().gb(),d=qu(),f=a.w();f.v();){var g=f.s();g=b.Ic(g,new C(((h,l)=>()=>l)(a,d)));d!==g&&c.Wa(g)}return c.yb()}function mY(a,b){var c=a.Tm();for(a=a.w();a.v();){var d=a.s();!1!==!!b.t(d)&&c.Wa(d)}return c.yb()} -function nY(a,b){var c=a.Tm();if(-1!==a.L()){var d=a.L();c.qc(d()=>{xt();var r=h.t(l),u=sY(g,1+l|0,n,h);return new FQ(r,u)})(a,d,b,c))):a.Jh};function vY(){this.Jh=null;wY=this;this.Jh=xY(new tY(new Tm((()=>()=>IQ())(this))))}vY.prototype=new t;vY.prototype.constructor=vY;e=vY.prototype; -e.hf=function(a){return DP(this,a)};function yY(a,b,c,d){return new tY(new Tm(((f,g,h,l)=>()=>{for(var n=null,r=!1,u=g.Bb;!r&&!u.k();)n=zY(u).R(),r=!!h.t(n)!==l,u=zY(u).Oc(),g.Bb=u;return r?(xt(),u=yY(xt(),u,h,l),new FQ(n,u)):IQ()})(a,new vy(b),c,d)))} -function AY(a,b,c){return new tY(new Tm(((d,f,g)=>()=>{for(var h=new vy(null),l=!1,n=new vy(f.Bb);!l&&!n.Bb.k();)h.Bb=g.t(zY(n.Bb).R()).w(),l=h.Bb.v(),l||(n.Bb=zY(n.Bb).Oc(),f.Bb=n.Bb);return l?(l=h.Bb.s(),n.Bb=zY(n.Bb).Oc(),f.Bb=n.Bb,xt(),xt(),new FQ(l,new tY(new Tm(((r,u,w,A)=>()=>BY(xt(),u.Bb,new Tm(((M,T,V)=>()=>zY(AY(xt(),T.Bb,V)))(r,w,A))))(d,h,n,g))))):IQ()})(a,new vy(b),c)))} -function CY(a,b,c){return new tY(new Tm(((d,f,g)=>()=>{for(var h=f.Bb,l=g.zw;0()=>{for(var l=f.Bb,n=g.zw;0()=>EY(xt(),d.w()))(a,b)))}function BY(a,b,c){if(b.v()){var d=b.s();return new FQ(d,new tY(new Tm(((f,g,h)=>()=>BY(xt(),g,h))(a,b,c))))}return gq(c)}function EY(a,b){if(b.v()){var c=b.s();return new FQ(c,new tY(new Tm(((d,f)=>()=>EY(xt(),f))(a,b))))}return IQ()}function FY(a,b,c){return 0()=>{xt();var h=gq(f),l=FY(xt(),-1+g|0,f);return new FQ(h,l)})(a,c,b))):a.Jh}e.gb=function(){return new GY}; -e.si=function(a,b){return uY(this,0,a,b)};e.ai=function(a,b){return FY(this,a,b)};e.mc=function(){return this.Jh};e.sb=function(a){return DP(this,a)};e.$classData=x({Vha:0},!1,"scala.collection.immutable.LazyList$",{Vha:1,b:1,hh:1,Be:1,d:1});var wY;function xt(){wY||(wY=new vY);return wY}function HY(){}HY.prototype=new t;HY.prototype.constructor=HY;e=HY.prototype;e.hf=function(a){return IY(this,a)};e.ai=function(a,b){return this.sb(new eY(a,b))};e.si=function(a,b){return this.sb(new fY(a,b))}; -function IY(a,b){return b instanceof JY?b:KY(a,b.w())}function KY(a,b){return b.v()?new LY(b.s(),new Tm(((c,d)=>()=>KY(wt(),d))(a,b))):MY()}e.gb=function(){var a=new GP;return new HP(a,new C((()=>b=>IY(wt(),b))(this)))};function NY(a,b,c,d){var f=b.R();return new LY(f,new Tm(((g,h,l,n)=>()=>YQ(h.X(),l,n))(a,b,c,d)))}e.mc=function(){return MY()};e.sb=function(a){return IY(this,a)};e.$classData=x({gja:0},!1,"scala.collection.immutable.Stream$",{gja:1,b:1,hh:1,Be:1,d:1});var OY; -function wt(){OY||(OY=new HY);return OY}function PY(){QY=this}PY.prototype=new t;PY.prototype.constructor=PY;function RY(a,b){a=a.gb();var c=b.L();0<=c&&a.qc(c);a.wc(b);return a.yb()}PY.prototype.gb=function(){var a=Zp();return new HP(a,new C((()=>b=>new mn(b))(this)))};PY.prototype.$classData=x({yja:0},!1,"scala.collection.immutable.WrappedString$",{yja:1,b:1,hpa:1,zF:1,d:1});var QY;function SY(){QY||(QY=new PY);return QY} -function HP(a,b){this.dS=this.pw=null;if(null===a)throw K(L(),null);this.pw=a;this.dS=b}HP.prototype=new t;HP.prototype.constructor=HP;e=HP.prototype;e.qc=function(a){this.pw.qc(a)};e.yb=function(){return this.dS.t(this.pw.yb())};e.wc=function(a){this.pw.wc(a);return this};e.Wa=function(a){this.pw.Wa(a);return this};e.$classData=x({Xja:0},!1,"scala.collection.mutable.Builder$$anon$1",{Xja:1,b:1,we:1,Vd:1,Ud:1});function rR(a,b){a.Df=b;return a}function sR(){this.Df=null}sR.prototype=new t; -sR.prototype.constructor=sR;function TY(){}e=TY.prototype=sR.prototype;e.qc=function(){};function HU(a,b){a.Df.Wa(b);return a}function IW(a,b){a.Df.wc(b);return a}e.wc=function(a){return IW(this,a)};e.Wa=function(a){return HU(this,a)};e.yb=function(){return this.Df};e.$classData=x({qw:0},!1,"scala.collection.mutable.GrowableBuilder",{qw:1,b:1,we:1,Vd:1,Ud:1});function UY(){this.Fk=null;this.Fk=AS()}UY.prototype=new UO;UY.prototype.constructor=UY; -UY.prototype.$classData=x({nka:0},!1,"scala.collection.mutable.Iterable$",{nka:1,aR:1,b:1,Be:1,d:1});var VY;function WY(){this.bn=null;this.bn=fR()}WY.prototype=new yP;WY.prototype.constructor=WY;WY.prototype.$classData=x({wka:0},!1,"scala.collection.mutable.Map$",{wka:1,zga:1,b:1,Rv:1,d:1});var XY;function Rm(){XY||(XY=new WY);return XY}class Js extends Ru{constructor(){super();yF(this,null,null)}$h(){return gv(this)}} -Js.prototype.$classData=x({Pda:0},!1,"scala.concurrent.Future$$anon$4",{Pda:1,Ka:1,b:1,d:1,an:1});function YY(){}YY.prototype=new t;YY.prototype.constructor=YY;function ZY(){}ZY.prototype=YY.prototype;function xu(){this.lS=null;this.lS=Promise.resolve(void 0)}xu.prototype=new t;xu.prototype.constructor=xu;xu.prototype.gE=function(a){this.lS.then(((b,c)=>()=>{try{c.wp()}catch(f){var d=Yu(L(),f);if(null!==d)ds(d);else throw f;}})(this,a))};xu.prototype.aF=function(a){ds(a)}; -xu.prototype.$classData=x({Ika:0},!1,"scala.scalajs.concurrent.QueueExecutionContext$PromisesExecutionContext",{Ika:1,b:1,HQ:1,EQ:1,WP:1});function wu(){}wu.prototype=new t;wu.prototype.constructor=wu;wu.prototype.gE=function(a){setTimeout(oy(ny(),new Tm(((b,c)=>()=>{try{c.wp()}catch(f){var d=Yu(L(),f);if(null!==d)ds(d);else throw f;}})(this,a))),0)};wu.prototype.aF=function(a){ds(a)}; -wu.prototype.$classData=x({Jka:0},!1,"scala.scalajs.concurrent.QueueExecutionContext$TimeoutsExecutionContext",{Jka:1,b:1,HQ:1,EQ:1,WP:1});function Us(){}Us.prototype=new t;Us.prototype.constructor=Us;function $Y(){}$Y.prototype=Us.prototype;function aZ(a,b,c){b=b.vb(c.$(),-1);c.Ba(new C(((d,f)=>g=>{var h=f.h();f.n(hS(d,g,h),-1)})(a,b)));return b.aa(-1)} -function bZ(a,b,c){b=b.Z(c.$(),-1);c.Ba(new C(((d,f)=>g=>{var h=f.q(-1);f.i(h.l(g.ib,-1));g=g.Va;h=f.h();f.n(hS(d,g,h),-1)})(a,b)));return b.aa(-1)}function cZ(){}cZ.prototype=new t;cZ.prototype.constructor=cZ;function dZ(){}dZ.prototype=cZ.prototype;cZ.prototype.Jj=function(a){return hS(Mv(),this,a)};cZ.prototype.g=function(){return Hg(this)};function eZ(){}eZ.prototype=new FK;eZ.prototype.constructor=eZ;eZ.prototype.g=function(){return"Num"};eZ.prototype.t=function(a){return new fZ(+a)}; -eZ.prototype.$classData=x({y8:0},!1,"ujson.Num$",{y8:1,TA:1,b:1,da:1,d:1});var gZ;function hZ(){}hZ.prototype=new FK;hZ.prototype.constructor=hZ;hZ.prototype.g=function(){return"Str"};hZ.prototype.t=function(a){return new GW(a)};hZ.prototype.$classData=x({F8:0},!1,"ujson.Str$",{F8:1,TA:1,b:1,da:1,d:1});var iZ;function jZ(){}jZ.prototype=new t;jZ.prototype.constructor=jZ;function kZ(){}kZ.prototype=jZ.prototype; -function HS(a,b){this.Xr=this.Wr=this.Yr=null;if(null===a)throw K(L(),null);this.Wr=a;this.Xr=b}HS.prototype=new t;HS.prototype.constructor=HS;e=HS.prototype;e.g=function(){return Uv(this)};e.zd=function(){return!0};e.q=function(a){return new lZ(this,a)};e.i=function(a){null===this.Yr&&(this.Yr="?");this.Xr.i(a)};e.h=function(){return Qv(new Rv,this.Xr.h(),this,this.Wr.Cm)};e.n=function(a,b){this.Yr=null;this.Xr.n(a,b)};e.aa=function(a){this.Wr.Cm.Zr=this.Wr.bp;return this.Xr.aa(a)}; -e.$E=function(){var a=LE(ME(),this.Yr);if(a.k())return H();a=a.Ja();return new dd("'"+a.split("'").join("\\'")+"'")};e.Mz=function(){return new dd(this.Wr.bp)};e.$classData=x({v9:0},!1,"upickle.core.TraceVisitor$$anon$1",{v9:1,b:1,xa:1,pa:1,fO:1});function lZ(a,b){this.sD=this.Cm=this.bp=this.tD=this.ze=null;if(null===a)throw K(L(),null);this.sD=a;Qv(this,a.Xr.q(b),a,a.Wr.Cm)}lZ.prototype=new GS;lZ.prototype.constructor=lZ; -lZ.prototype.l=function(a,b){this.sD.Yr=Ua(a);return this.tD.l(this.sD.Yr,b)};lZ.prototype.$classData=x({w9:0},!1,"upickle.core.TraceVisitor$$anon$1$$anon$2",{w9:1,eO:1,FD:1,b:1,ha:1});function IS(a,b){this.qy=0;this.py=this.Du=null;if(null===a)throw K(L(),null);this.Du=a;this.py=b;this.qy=0;a.Cm.Zr=this}IS.prototype=new t;IS.prototype.constructor=IS;e=IS.prototype;e.g=function(){return Uv(this)};e.zd=function(){return!1};e.h=function(){return Qv(new Rv,this.py.h(),this,this.Du.Cm)}; -e.n=function(a,b){this.py.n(a,b);this.qy=1+this.qy|0};e.aa=function(a){this.Du.Cm.Zr=this.Du.bp;return this.py.aa(a)};e.$E=function(){return new dd(""+this.qy)};e.Mz=function(){return new dd(this.Du.bp)};e.$classData=x({x9:0},!1,"upickle.core.TraceVisitor$$anon$3",{x9:1,b:1,nk:1,pa:1,fO:1});function mZ(a,b){this.kO=this.ze=null;if(null===a)throw K(L(),null);this.kO=a;this.ze=b}mZ.prototype=new zM;mZ.prototype.constructor=mZ;mZ.prototype.Z=function(a,b){return yM.prototype.Z.call(this,a,b)}; -mZ.prototype.vb=function(a,b){return yM.prototype.vb.call(this,a,b)};mZ.prototype.Je=function(){return this.kO.xD};mZ.prototype.$classData=x({G9:0},!1,"upickle.core.Types$Reader$Delegate",{G9:1,FD:1,b:1,ha:1,ka:1});function nZ(){this.wD=this.qf=null}nZ.prototype=new BM;nZ.prototype.constructor=nZ;function oZ(){}oZ.prototype=nZ.prototype;nZ.prototype.Z=function(a,b){return AM.prototype.Z.call(this,a,b)};nZ.prototype.vb=function(a,b){return AM.prototype.vb.call(this,a,b)};nZ.prototype.Je=function(){return this.wD.xD}; -function Mw(a,b,c,d,f,g,h,l,n){this.Ey=a;this.Jy=b;this.Fy=c;this.Cy=d;this.Iy=f;this.Hy=g;this.Gy=h;this.By=l;this.Dy=n}Mw.prototype=new t;Mw.prototype.constructor=Mw;e=Mw.prototype;e.A=function(){return"JSLogColorPalette"};e.B=function(){return 9};e.C=function(a){switch(a){case 0:return this.Ey;case 1:return this.Jy;case 2:return this.Fy;case 3:return this.Cy;case 4:return this.Iy;case 5:return this.Hy;case 6:return this.Gy;case 7:return this.By;case 8:return this.Dy;default:return R(S(),a)}}; -e.p=function(){return tv(this)};e.g=function(){return du(this)};e.c=function(a){return this===a?!0:a instanceof Mw?this.Ey===a.Ey&&this.Jy===a.Jy&&this.Fy===a.Fy&&this.Cy===a.Cy&&this.Iy===a.Iy&&this.Hy===a.Hy&&this.Gy===a.Gy&&this.By===a.By&&this.Dy===a.Dy:!1};e.$classData=x({saa:0},!1,"wvlet.log.JSConsoleLogHandler$JSLogColorPalette",{saa:1,b:1,z:1,o:1,d:1});function pZ(a,b,c,d){a.ej=b;a.Hb=c;a.dj=d}function qZ(){this.ej=0;this.dj=this.Hb=null}qZ.prototype=new t;qZ.prototype.constructor=qZ; -function rZ(){}rZ.prototype=qZ.prototype;qZ.prototype.kf=function(a){return this.ej-a.ej|0};function Sc(a,b,c,d){this.Py=a;this.Iu=b;this.Ju=c;this.Oy=d}Sc.prototype=new t;Sc.prototype.constructor=Sc;e=Sc.prototype;e.A=function(){return"LogSource"};e.B=function(){return 4};e.C=function(a){switch(a){case 0:return this.Py;case 1:return this.Iu;case 2:return this.Ju;case 3:return this.Oy;default:return R(S(),a)}}; -e.p=function(){var a=Pa("LogSource");a=S().j(-889275714,a);var b=this.Py;b=ku(S(),b);a=S().j(a,b);b=this.Iu;b=ku(S(),b);a=S().j(a,b);b=this.Ju;a=S().j(a,b);b=this.Oy;a=S().j(a,b);return S().ca(a,4)};e.g=function(){return du(this)};e.c=function(a){return this===a?!0:a instanceof Sc?this.Ju===a.Ju&&this.Oy===a.Oy&&this.Py===a.Py&&this.Iu===a.Iu:!1};e.$classData=x({Gaa:0},!1,"wvlet.log.LogSource",{Gaa:1,b:1,z:1,o:1,d:1});function gx(){}gx.prototype=new $S;gx.prototype.constructor=gx;e=gx.prototype; -e.A=function(){return"EqualTo"};e.B=function(){return 0};e.C=function(a){return R(S(),a)};e.p=function(){return 159386799};e.g=function(){return"EqualTo"};e.$classData=x({AS:0},!1,"cats.kernel.Comparison$EqualTo$",{AS:1,LG:1,b:1,z:1,o:1,d:1});var fx;function ex(){}ex.prototype=new $S;ex.prototype.constructor=ex;e=ex.prototype;e.A=function(){return"GreaterThan"};e.B=function(){return 0};e.C=function(a){return R(S(),a)};e.p=function(){return-1701951333};e.g=function(){return"GreaterThan"}; -e.$classData=x({BS:0},!1,"cats.kernel.Comparison$GreaterThan$",{BS:1,LG:1,b:1,z:1,o:1,d:1});var dx;function ix(){}ix.prototype=new $S;ix.prototype.constructor=ix;e=ix.prototype;e.A=function(){return"LessThan"};e.B=function(){return 0};e.C=function(a){return R(S(),a)};e.p=function(){return-2140646662};e.g=function(){return"LessThan"};e.$classData=x({CS:0},!1,"cats.kernel.Comparison$LessThan$",{CS:1,LG:1,b:1,z:1,o:1,d:1});var hx;function gc(){}gc.prototype=new GN;gc.prototype.constructor=gc; -gc.prototype.$classData=x({FS:0},!1,"cats.kernel.Group$",{FS:1,cma:1,LS:1,MG:1,b:1,d:1});var fc;function Ub(){}Ub.prototype=new ox;Ub.prototype.constructor=Ub;Ub.prototype.$classData=x({PS:0},!1,"cats.kernel.PartialOrder$",{PS:1,QS:1,gB:1,b:1,vma:1,d:1});var Tb;function rU(a){this.Kw=this.Jw=this.Lw=this.sl=this.Gn=this.rl=null;this.mb=a;this.rl=es();this.sl=this.Gn=Mu(new Nu);this.Lw=Ay().Tw.g();this.Jw=I(J().u,F());this.Kw=I(J().u,F())}rU.prototype=new t;rU.prototype.constructor=rU; -function sZ(a,b){a.Lw=b.vq.g();a.Jw.Ba(new C(((c,d)=>f=>{f.Di(TN(Ay(),d.vq))})(a,b)));a.Kw.Ba(new C((c=>d=>{d.t(c.Lw)})(a)))} -function tZ(a,b,c,d,f){var g=Mc().jb,h=Nc();Oc(Qc(g),h.Hb)&&Rc(Mc().jb,Nc(),new Sc("com/github/p2m2/shared/src/main/scala/inrae/semantic_web/SWTransaction.scala","SWTransaction.scala",73,10)," -- process_datatypes --");g=d.Al.lc;f=f.Xy(a.mb.uc.Wd.Ef.Mj);eh();f=hh(F(),f);a=((l,n,r,u,w)=>A=>{var M=Mc().jb,T=Bf();Oc(Qc(M),T.Hb)&&Rc(Mc().jb,Bf(),new Sc("com/github/p2m2/shared/src/main/scala/inrae/semantic_web/SWTransaction.scala", -"SWTransaction.scala",78,14)," datatypes:"+A.g());M=l.mb.uc;Mx();ye();T=fH().g();var V=UB();ye();J();var ha=F();ha=hh(F(),ha);ye();J();var ra=F();ra=hh(F(),ra);ye();J();var ea=F();ea=hh(F(),ea);ye();J();var wa=F();wa=hh(F(),wa);ye();J();var xa=F();xa=hh(F(),xa);ye();J();var Ta=F();Ta=hh(F(),Ta);ye();var gb=I(J().u,F());ye();E();var mb=F();A=zT(WT(RT(OT(new ON(M,new jf(T,V,ha,ra,ea,wa,xa,Ta,gb,G(0,mb)),(Mx(),H())),n.df),"val_uri"),A.qd(new C((()=>Zb=>Zb instanceof Bg?new dd(Zb):H())(l)))),r.Al,!1); -J();M=qc(new rc,["val_uri",u]);M=hh(F(),M);return Ps(EU(nU(A,M,0,0)).sl,new C(((Zb,lb,Ab)=>za=>{za=(new Cg("results")).xc(za);za=(new Cg("bindings")).xc(za);var kc=TL(za);za=new GP;for(kc=new JG(new GU(kc.Cf,kc.xb));kc.v();){var La=kc.s(),Ja=(new Cg("val_uri")).xc(La);Ja=Ua((new Cg("value")).xc(Ja).kl());La=(new Cg(Ab)).xc(La);La=z(new B,Ja,La);HU(za,La)}za=za.Df;nc();JW(lb,Ab,za.Ph())})(l,w,u)),l.rl)})(a,b,d,g,c);if(f===F())return F();b=f.R();c=b=new ph(a(b),F());for(d=f.X();d!==F();)f=d.R(),f=new ph(a(f), -F()),c=c.Gb=f,d=d.X();return b} -function EU(a){sZ(a,new zy(Ay().Tw));var b=a.mb.$a;J();var c=F();c=hh(F(),c);Ue();var d=I(J().u,F());Ue();E();var f=F();b=b.Qe(new wf(c,"",d,G(0,f)),new Hy(m(nB)));b=YO(b);if(!(b instanceof dd)){if(H()===b)throw sZ(a,new zy(Ay().KB)),a=H(),nc(),a.k()||qe(),new re("projection/selected required variables are not defined.");throw new D(b);}b=b.Qb.yi.yh();c=a.mb.$a;d=new Bg("",(Dg(),""));Me();f=I(J().u,F());Me();E();var g=F();d=new Cf("",d,f,G(0,g));Ee();f=I(J().u,F());Ee();E();g=F();c=c.Qe(new tg("", -d,"unk",f,G(0,g)),new Hy(m(wz))).nb(new C(((l,n)=>r=>n.Ea(new C((()=>u=>u.qg)(l))).Sa(r.Al.lc))(a,b)));if(c.nb(new C(((l,n)=>r=>n.Ea(new C((()=>u=>u.qg)(l))).Sa(r.Tj))(a,b))).y()!==c.y()){sZ(a,new zy(Ay().KB));a=c.Ea(new C((()=>l=>l.D+"-\x3e"+l.Tj)(a)));a=qf(a,""," ,","");var h=H();nc();h.k()||qe();throw new re("The user have to select node of interest before setup a desired datatype ["+a+"]");}try{xh||(xh=new sh),h=new Is(th(a.mb.uc))}catch(l){if(h=Yu(L(),l),null!==h)a:{if(null!==h&&(b=mv(ov(),h), -!b.k())){h=b.Ja();h=new ms(h);break a}throw K(L(),h);}else throw l;}if(h instanceof ms)Ys(a.Gn,h.Fh);else if(h instanceof Is)h=h.Ji,h.dv(uZ(h.ev(),a)),uy(Ps(h.fE(a),new C(((l,n)=>r=>{sZ(l,new zy(Ay().HB));var u=EW(r);u=(new Cg("results")).xc(u);var w=new Cg("datatypes"),A=new eS(new qR);WL(w,u,A);u=Mc().jb;w=Bf();Oc(Qc(u),w.Hb)&&Rc(Mc().jb,Bf(),new Sc("com/github/p2m2/shared/src/main/scala/inrae/semantic_web/SWTransaction.scala","SWTransaction.scala",133,18), -EW(r));u=Mc().jb;w=Bf();Oc(Qc(u),w.Hb)&&Rc(Mc().jb,Bf(),new Sc("com/github/p2m2/shared/src/main/scala/inrae/semantic_web/SWTransaction.scala","SWTransaction.scala",135,18)," lDatatype \x3d\x3d\x3d\x3d\x3e "+n.g());u=Gs();w=n.Ea(new C(((M,T)=>V=>{var ha=Mc().jb,ra=Bf();Oc(Qc(ha),ra.Hb)&&Rc(Mc().jb,Bf(),new Sc("com/github/p2m2/shared/src/main/scala/inrae/semantic_web/SWTransaction.scala","SWTransaction.scala",138,20),"datatype node:"+ -V);ha=se(M.mb.$a,V.Tj,"");if(ha instanceof dd){try{var ea=HW(T,V.Tj)}catch(wa){if(null!==Yu(L(),wa))J(),ea=F(),ea=hh(F(),ea);else throw wa;}ha=Gs();V=tZ(M,M.mb.$a,T,V,ea);OO();return Qs(ha,V,M.rl)}if(H()===ha)return Os(Gs(),new Tm((()=>()=>{})(M)),M.rl);throw new D(ha);})(l,r)));OO();Eu(Qs(u,w,l.rl),new C(((M,T)=>V=>{if(V instanceof Is){sZ(M,new zy(Ay().IB));V=M.Gn;var ha=EW(T);Ts(V,new Is(ha));sZ(M,new zy(Ay().HH))}else{if(V instanceof ms)return Ys(M.Gn,V.Fh);throw new D(V);}})(l,r)),l.rl)})(a,c)), -a.rl),new vZ(a),a.rl);else throw new D(h);return a}function DU(a){var b=a.mb.$a,c=I(J().u,F());Ue();var d=I(J().u,F());Ue();E();var f=F();b=b.Qe(new wf(c,"",d,G(0,f)),new Hy(m(nB)));b=YO(b);if(b instanceof dd)return a=LT(a.mb,b.Qb.D),new rU(a);if(H()===b)return b=KT(a.mb),c=I(J().u,F()),a=eT(a.mb,""),Ue(),d=I(J().u,F()),Ue(),E(),f=F(),a=new wf(c,a,d,G(0,f)),a=zT(b,a,!0),new rU(a);throw new D(b);} -function oU(a,b){var c=a.mb.$a,d=I(J().u,F());Ue();var f=I(J().u,F());Ue();E();var g=F();c=c.Qe(new wf(d,"",f,G(0,g)),new Hy(m(nB)));c=YO(c);if(c instanceof dd)return c=c.Qb,d=c.yi,b=b.Ea(new C((()=>h=>new Hf(h))(a))),b=d.Zd(b),a=KT(a.mb),d=c.D,f=c.Uj,Ue(),E(),g=F(),b=new wf(b,d,f,G(0,g)),a=LT(zT(a,b,!0),c.D),new rU(a);if(H()===c)return c=KT(a.mb),b=b.Ea(new C((()=>h=>new Hf(h))(a))),a=eT(a.mb,""),Ue(),d=I(J().u,F()),Ue(),E(),f=F(),a=new wf(b,a,d,G(0,f)),a=zT(c,a,!0),new rU(a);throw new D(c);} -function JU(a){var b=KT(a.mb);a=eT(a.mb,"");We();var c=I(J().u,F());We();E();var d=F();b=zT(b,new tf(a,c,G(0,d)),!1);return new rU(b)}function qU(a,b){var c=KT(a.mb);a=eT(a.mb,"");Ze();var d=I(J().u,F());Ze();E();var f=F();b=zT(c,new zf(b,a,d,G(0,f)),!1);return new rU(b)}function pU(a,b){var c=KT(a.mb);a=eT(a.mb,"");Ye();var d=I(J().u,F());Ye();E();var f=F();b=zT(c,new Af(b,a,d,G(0,f)),!1);return new rU(b)} -function gV(a,b){b.Ba(new C((g=>h=>MT(g.mb,h))(a)));var c=KT(a.mb);b=b.Ea(new C((()=>g=>new Hf(g))(a)));a=eT(a.mb,"");Se();var d=I(J().u,F());Se();E();var f=F();c=zT(c,new xf(b,a,d,G(0,f)),!1);return new rU(c)}function fV(a,b){b.Ba(new C((g=>h=>MT(g.mb,h))(a)));var c=KT(a.mb);b=b.Ea(new C((()=>g=>new Hf(g))(a)));a=eT(a.mb,"");Te();var d=I(J().u,F());Te();E();var f=F();c=zT(c,new yf(b,a,d,G(0,f)),!1);return new rU(c)}e=rU.prototype;e.A=function(){return"SWTransaction"};e.B=function(){return 1}; -e.C=function(a){return 0===a?this.mb:R(S(),a)};e.p=function(){return tv(this)};e.g=function(){return du(this)};e.c=function(a){if(this===a)return!0;if(a instanceof rU){var b=this.mb;a=a.mb;return null===b?null===a:b.c(a)}return!1};e.rQ=function(a){sZ(this,a)};e.$classData=x({lU:0},!1,"inrae.semantic_web.SWTransaction",{lU:1,b:1,MB:1,z:1,o:1,d:1});function vZ(a){this.xH=null;if(null===a)throw K(L(),null);this.xH=a}vZ.prototype=new FR;vZ.prototype.constructor=vZ;e=vZ.prototype; -e.Pc=function(a){return Ys(this.xH.Gn,a)};e.Rc=function(){return!0};e.je=function(a){return this.Rc(a)};e.Ic=function(a,b){return this.Pc(a,b)};e.$classData=x({rU:0},!1,"inrae.semantic_web.SWTransaction$$anonfun$commit$11",{rU:1,Mh:1,b:1,da:1,wa:1,d:1});function wZ(a){this.AH=null;if(null===a)throw K(L(),null);this.AH=a}wZ.prototype=new FR;wZ.prototype.constructor=wZ;e=wZ.prototype;e.Pc=function(a){var b=this.AH,c=new zy(Ay().JB);id(b,c);a=a.Xe();b=H();nc();b.k()||qe();throw new re(a);};e.Rc=function(){return!0}; -e.je=function(a){return this.Rc(a)};e.Ic=function(a,b){return this.Pc(a,b)};e.$classData=x({DU:0},!1,"inrae.semantic_web.driver.AxiosRequestDriver$$anonfun$get$2",{DU:1,Mh:1,b:1,da:1,wa:1,d:1});function xZ(a){this.BH=null;if(null===a)throw K(L(),null);this.BH=a}xZ.prototype=new FR;xZ.prototype.constructor=xZ;e=xZ.prototype;e.Pc=function(a){var b=this.BH,c=new zy(Ay().JB);id(b,c);a=a.Xe();b=H();nc();b.k()||qe();throw new re(a);};e.Rc=function(){return!0};e.je=function(a){return this.Rc(a)}; -e.Ic=function(a,b){return this.Pc(a,b)};e.$classData=x({EU:0},!1,"inrae.semantic_web.driver.AxiosRequestDriver$$anonfun$post$2",{EU:1,Mh:1,b:1,da:1,wa:1,d:1});function yZ(a){this.CH=null;if(null===a)throw K(L(),null);this.CH=a}yZ.prototype=new FR;yZ.prototype.constructor=yZ; -function zZ(a,b){if(null!==b&&0<(b.Tf.length|0))return Os(Gs(),new Tm(((c,d)=>()=>gy(ky(),d.Tf,d.Th))(a,b)),a.CH.Mw);if(null!==b&&0<(b.ui.length|0))return py(ky(),b.ui,b.Th);a=H();nc();a.k()||qe();throw new re("unknown source definition.");}yZ.prototype.je=function(){return!0};yZ.prototype.Ic=function(a){return zZ(this,a)};yZ.prototype.$classData=x({GU:0},!1,"inrae.semantic_web.driver.ComunicaFederatedStrategy$$anonfun$1",{GU:1,Mh:1,b:1,da:1,wa:1,d:1});function wy(){}wy.prototype=new FR; -wy.prototype.constructor=wy;e=wy.prototype;e.Pc=function(a){a=a.g();var b=H();nc();b.k()||qe();throw new re(a);};e.Rc=function(){return!0};e.je=function(a){return this.Rc(a)};e.Ic=function(a,b){return this.Pc(a,b)};e.$classData=x({JU:0},!1,"inrae.semantic_web.driver.ComunicaRequestDriver$$anonfun$$nestedInanonfun$requestOnSWDBWithSources$2$1",{JU:1,Mh:1,b:1,da:1,wa:1,d:1});function kf(a,b,c,d){this.S=this.Q=this.D=null;this.xq=a;le(this,b,c,d)}kf.prototype=new ne;kf.prototype.constructor=kf;e=kf.prototype; -e.Aa=function(){return this.D};e.za=function(){return this.Q};e.Ya=function(){return this.S};e.fb=function(a,b){return new kf(this.xq,this.D,a,b)};e.$g=function(a){return!(a instanceof qg)&&(a instanceof zB||a instanceof lf||a instanceof Gf||a instanceof If)};e.A=function(){return"Bind"};e.B=function(){return 4};e.C=function(a){switch(a){case 0:return this.xq;case 1:return this.D;case 2:return this.Q;case 3:return this.S;default:return R(S(),a)}};e.p=function(){return tv(this)}; -e.c=function(a){if(this===a)return!0;if(a instanceof kf){var b=this.xq,c=a.xq;(null===b?null===c:b.c(c))&&this.D===a.D?(b=this.Q,c=a.Q,b=null===b?null===c:b.c(c)):b=!1;if(b)return b=this.S,a=a.S,null===b?null===a:b.c(a)}return!1};var Ry=x({$U:0},!1,"inrae.semantic_web.node.Bind",{$U:1,hb:1,b:1,z:1,o:1,d:1});kf.prototype.$classData=Ry;function tg(a,b,c,d,f){this.S=this.Q=this.D=null;this.Tj=a;this.Al=b;le(this,c,d,f)}tg.prototype=new ne;tg.prototype.constructor=tg;e=tg.prototype;e.Aa=function(){return this.D}; -e.za=function(){return this.Q};e.Ya=function(){return this.S};e.A=function(){return"DatatypeNode"};e.B=function(){return 5};e.C=function(a){switch(a){case 0:return this.Tj;case 1:return this.Al;case 2:return this.D;case 3:return this.Q;case 4:return this.S;default:return R(S(),a)}};e.p=function(){return tv(this)}; -e.c=function(a){if(this===a)return!0;if(a instanceof tg){if(this.Tj===a.Tj){var b=this.Al,c=a.Al;b=null===b?null===c:b.c(c)}else b=!1;b&&this.D===a.D?(b=this.Q,c=a.Q,b=null===b?null===c:b.c(c)):b=!1;if(b)return b=this.S,a=a.S,null===b?null===a:b.c(a)}return!1};e.fb=function(a,b){return new tg(this.Tj,this.Al,this.D,a,b)};var wz=x({bW:0},!1,"inrae.semantic_web.node.DatatypeNode",{bW:1,hb:1,b:1,z:1,o:1,d:1});tg.prototype.$classData=wz; -function If(a,b,c,d){this.S=this.Q=this.D=null;this.eo=a;le(this,b,c,d)}If.prototype=new ne;If.prototype.constructor=If;e=If.prototype;e.Aa=function(){return this.D};e.za=function(){return this.Q};e.Ya=function(){return this.S};e.g=function(){return"VALUES("+this.eo.g()+")"};e.$g=function(a){return!(a instanceof qg)&&a instanceof zB};e.A=function(){return"ListValues"};e.B=function(){return 4}; -e.C=function(a){switch(a){case 0:return this.eo;case 1:return this.D;case 2:return this.Q;case 3:return this.S;default:return R(S(),a)}};e.p=function(){return tv(this)};e.c=function(a){if(this===a)return!0;if(a instanceof If){var b=this.eo,c=a.eo;(null===b?null===c:b.c(c))&&this.D===a.D?(b=this.Q,c=a.Q,b=null===b?null===c:b.c(c)):b=!1;if(b)return b=this.S,a=a.S,null===b?null===a:b.c(a)}return!1};e.fb=function(a,b){return new If(this.eo,this.D,a,b)}; -var CA=x({cY:0},!1,"inrae.semantic_web.node.ListValues",{cY:1,hb:1,b:1,z:1,o:1,d:1});If.prototype.$classData=CA;function Mf(a,b,c,d,f){this.S=this.Q=this.D=null;this.Nq=a;this.Mq=b;le(this,c,d,f)}Mf.prototype=new ne;Mf.prototype.constructor=Mf;e=Mf.prototype;e.Aa=function(){return this.D};e.za=function(){return this.Q};e.Ya=function(){return this.S};e.fb=function(a,b){return new Mf(this.Nq,this.Mq,this.D,a,b)};e.$g=function(){return!1};e.A=function(){return"ProjectionExpression"};e.B=function(){return 5}; -e.C=function(a){switch(a){case 0:return this.Nq;case 1:return this.Mq;case 2:return this.D;case 3:return this.Q;case 4:return this.S;default:return R(S(),a)}};e.p=function(){return tv(this)};e.c=function(a){if(this===a)return!0;if(a instanceof Mf){var b=this.Nq,c=a.Nq;(null===b?null===c:b.c(c))?(b=this.Mq,c=a.Mq,b=null===b?null===c:b.c(c)):b=!1;b&&this.D===a.D?(b=this.Q,c=a.Q,b=null===b?null===c:b.c(c)):b=!1;if(b)return b=this.S,a=a.S,null===b?null===a:b.c(a)}return!1}; -var sB=x({AZ:0},!1,"inrae.semantic_web.node.ProjectionExpression",{AZ:1,hb:1,b:1,z:1,o:1,d:1});Mf.prototype.$classData=sB;function jf(a,b,c,d,f,g,h,l,n,r){this.S=this.Q=this.D=null;this.df=b;this.Hf=c;this.If=d;this.Le=f;this.Me=g;this.xe=h;this.od=l;le(this,a,n,r)}jf.prototype=new ne;jf.prototype.constructor=jf;e=jf.prototype;e.Aa=function(){return this.D};e.za=function(){return this.Q};e.Ya=function(){return this.S};function $U(a,b){return a.df.bi(b,new Tm((()=>()=>new VB(""))(a)))} -e.Qe=function(a,b){var c=me.prototype.Qe.call(this,a,b),d=this.Me.qd(new C(((f,g,h)=>l=>l.Qe(g,h))(this,a,b)));c=c.Zd(d);d=this.Le.qd(new C(((f,g,h)=>l=>l.Qe(g,h))(this,a,b)));c=c.xh(d);d=this.xe.qd(new C(((f,g,h)=>l=>l.Qe(g,h))(this,a,b)));c=c.xh(d);d=this.od.qd(new C(((f,g,h)=>l=>l.Qe(g,h))(this,a,b)));c=c.xh(d);a=this.Q.qd(new C(((f,g,h)=>l=>l.Qe(g,h))(this,a,b)));return c.xh(a)}; -function AZ(a,b){return b instanceof ug?new jf(a.D,a.df,a.Hf,a.If,a.Le,a.Me.kb(b),a.xe,a.od,a.Q,a.S):b instanceof tg?new jf(a.D,a.df,a.Hf,a.If,a.Le.kb(b),a.Me,a.xe,a.od,a.Q,a.S):b instanceof kf?new jf(a.D,a.df,a.Hf,a.If,a.Le,a.Me,a.xe.kb(b),a.od,a.Q,a.S):b instanceof aC?new jf(a.D,a.df,a.Hf,a.If,a.Le,a.Me,a.xe,a.od.kb(b),a.Q,a.S):me.prototype.Saa.call(a,b)} -function QT(a,b,c){return b===a.D?AZ(a,c):new jf(a.D,a.df,a.Hf,a.If,a.Le.Ea(new C(((d,f,g)=>h=>h.Em(f,g))(a,b,c))),a.Me.Ea(new C(((d,f,g)=>h=>h.Em(f,g))(a,b,c))),a.xe.Ea(new C(((d,f,g)=>h=>h.Em(f,g))(a,b,c))),a.od.Ea(new C(((d,f,g)=>h=>h.Em(f,g))(a,b,c))),a.Q.Ea(new C(((d,f,g)=>h=>h.Em(f,g))(a,b,c))),a.S)}e.fb=function(a,b){return new jf(this.D,this.df,this.Hf,this.If,this.Le,this.Me,this.xe,this.od,a,b)}; -e.$g=function(a){return a instanceof qg||a instanceof ug||a instanceof tg||a instanceof kf||a instanceof aC};e.g=function(){var a=me.prototype.g.call(this),b=0f=>TW(d.Ax,f,d.nr))(a,b)));return qf(a,"","/","")}function DZ(){}DZ.prototype=new t;DZ.prototype.constructor=DZ;e=DZ.prototype; -e.A=function(){return"All"};e.B=function(){return 0};e.C=function(a){return R(S(),a)};e.p=function(){return 65921};e.g=function(){return"All"};e.$classData=x({i4:0},!1,"io.lemonlabs.uri.config.All$",{i4:1,b:1,k4:1,z:1,o:1,d:1});var EZ;function AE(){EZ||(EZ=new DZ);return EZ}function PW(){}PW.prototype=new t;PW.prototype.constructor=PW;e=PW.prototype;e.A=function(){return"ExcludeNones"};e.B=function(){return 0};e.C=function(a){return R(S(),a)};e.p=function(){return-1207150943};e.g=function(){return"ExcludeNones"}; -e.$classData=x({j4:0},!1,"io.lemonlabs.uri.config.ExcludeNones$",{j4:1,b:1,k4:1,z:1,o:1,d:1});var OW;function zE(a){this.Yt=a}zE.prototype=new t;zE.prototype.constructor=zE;e=zE.prototype;e.Ty=function(a,b){a=this.Yt.hj(a,new gn(((c,d)=>(f,g)=>{f=g.Ty(f,d);return zF(oq(),f,d)})(this,b)));return UW(a,b)};e.Xu=function(a){return this.Yt.hj(a,new gn((()=>(b,c)=>c.Xu(b))(this)))};e.A=function(){return"ChainedUriDecoder"};e.B=function(){return 1};e.C=function(a){return 0===a?this.Yt:R(S(),a)};e.p=function(){return tv(this)}; -e.g=function(){return du(this)};e.c=function(a){if(this===a)return!0;if(a instanceof zE){var b=this.Yt;a=a.Yt;return null===b?null===a:b.c(a)}return!1};e.$classData=x({n4:0},!1,"io.lemonlabs.uri.decoding.ChainedUriDecoder",{n4:1,b:1,$M:1,z:1,o:1,d:1});function Bh(a,b){this.$t=a;this.Zt=b}Bh.prototype=new t;Bh.prototype.constructor=Bh;e=Bh.prototype;e.Ty=function(a,b){return UW(this.Xu(a),b)};e.Xu=function(a){var b=String.fromCharCode(this.$t),c=this.Zt;return a.split(b).join(c)};e.A=function(){return"DecodeCharAs"}; -e.B=function(){return 2};e.C=function(a){switch(a){case 0:return q(this.$t);case 1:return this.Zt;default:return R(S(),a)}};e.p=function(){var a=Pa("DecodeCharAs");a=S().j(-889275714,a);var b=this.$t;a=S().j(a,b);b=this.Zt;b=ku(S(),b);a=S().j(a,b);return S().ca(a,2)};e.g=function(){return du(this)};e.c=function(a){return this===a?!0:a instanceof Bh?this.$t===a.$t&&this.Zt===a.Zt:!1};e.$classData=x({o4:0},!1,"io.lemonlabs.uri.decoding.DecodeCharAs",{o4:1,b:1,$M:1,z:1,o:1,d:1}); -function FZ(){this.or=!1}FZ.prototype=new t;FZ.prototype.constructor=FZ;function GZ(){}e=GZ.prototype=FZ.prototype; -e.Ty=function(a){E();a=tn(a);a=null!==a?new PI(a):null;eh();a:{var b=hh(F(),a);for(a=new HZ;;){var c=!1,d=null,f=b;b=J().Nd;if(null===b?null===f:b.c(f)){var g=a.yb();break a}if(f instanceof ph&&(c=!0,d=f,b=d.Gb,37===Ma(d.re))){b:if(d=b,d.k())d=F();else{f=c=new ph(d.R(),F());for(var h=d.X(),l=1;;){if(h.k())break b;if(2>l){l=1+l|0;var n=new ph(h.R(),F());f=f.Gb=n;h=h.X()}else break}d=c}d=qf(d,"","","");c=d;try{g=2!==(c.length|0)?H():new dd(Gq(Hq(),c,16)<<24>>24)}catch(r){if(r instanceof Iw)g=H();else throw r; -}if(g instanceof dd){d=g.Qb|0;b=cI(2,b);a=a.Wa(d);continue}else if(H()===g&&this.or){d=Ah().r4;a=a.Wa(d);continue}else throw new IZ("Encountered '%' followed by a non hex number '"+d+"'. "+Ah().q4);}if(c)c=Ma(d.re),b=d.Gb,d=II(E(),UW(String.fromCharCode(c),Ah().oC)),a=a.wc(d);else throw new D(f);}}return g};e.Xu=function(a){a=this.Ty(a,Ah().oC);var b=Ah().oC;return zF(oq(),a,b)};e.A=function(){return"PercentDecoder"};e.B=function(){return 1};e.C=function(a){return 0===a?this.or:R(S(),a)}; -e.p=function(){var a=Pa("PercentDecoder");a=S().j(-889275714,a);var b=this.or?1231:1237;a=S().j(a,b);return S().ca(a,1)};e.g=function(){return du(this)};e.c=function(a){return this===a?!0:a instanceof FZ?this.or===a.or:!1};class IZ extends SW{constructor(a){super();yF(this,a,null)}}IZ.prototype.$classData=x({s4:0},!1,"io.lemonlabs.uri.decoding.UriDecodeException",{s4:1,b4:1,Za:1,Ka:1,b:1,d:1});function XW(a){this.Dx=a}XW.prototype=new t;XW.prototype.constructor=XW;e=XW.prototype; -e.yw=function(a){return!JZ(this,a).k()};e.Yu=function(a){var b=JZ(this,a);b.k()?(KZ||(KZ=new LZ),b=KZ):b=b.Ja();return b.Yu(a)};function JZ(a,b){return a.Dx.ks(new C(((c,d)=>f=>f.yw(d))(a,b)))}e.A=function(){return"ChainedUriEncoder"};e.B=function(){return 1};e.C=function(a){return 0===a?this.Dx:R(S(),a)};e.p=function(){return tv(this)};e.g=function(){return du(this)};e.c=function(a){if(this===a)return!0;if(a instanceof XW){var b=this.Dx;a=a.Dx;return null===b?null===a:b.c(a)}return!1}; -e.$classData=x({u4:0},!1,"io.lemonlabs.uri.encoding.ChainedUriEncoder",{u4:1,b:1,rC:1,z:1,o:1,d:1});function Fh(a,b){this.bu=a;this.au=b}Fh.prototype=new t;Fh.prototype.constructor=Fh;e=Fh.prototype;e.yw=function(a){return a===this.bu};e.Yu=function(){return this.au};e.A=function(){return"EncodeCharAs"};e.B=function(){return 2};e.C=function(a){switch(a){case 0:return q(this.bu);case 1:return this.au;default:return R(S(),a)}}; -e.p=function(){var a=Pa("EncodeCharAs");a=S().j(-889275714,a);var b=this.bu;a=S().j(a,b);b=this.au;b=ku(S(),b);a=S().j(a,b);return S().ca(a,2)};e.g=function(){return du(this)};e.c=function(a){return this===a?!0:a instanceof Fh?this.bu===a.bu&&this.au===a.au:!1};e.$classData=x({v4:0},!1,"io.lemonlabs.uri.encoding.EncodeCharAs",{v4:1,b:1,rC:1,z:1,o:1,d:1});function LZ(){}LZ.prototype=new t;LZ.prototype.constructor=LZ;e=LZ.prototype;e.yw=function(){return!1};e.Yu=function(a){return String.fromCharCode(a)}; -e.A=function(){return"NoopEncoder"};e.B=function(){return 0};e.C=function(a){return R(S(),a)};e.p=function(){return 153117498};e.g=function(){return"NoopEncoder"};e.$classData=x({w4:0},!1,"io.lemonlabs.uri.encoding.NoopEncoder$",{w4:1,b:1,rC:1,z:1,o:1,d:1});var KZ;function wE(a){this.Ex=a}wE.prototype=new t;wE.prototype.constructor=wE;e=wE.prototype;e.yw=function(a){return!(31a)||this.Ex.Sa(q(a))};e.Yu=function(a){return"%"+yn(zn(),"%04x",qc(new rc,[a])).substring(2).toUpperCase()};e.A=function(){return"PercentEncoder"}; -e.B=function(){return 1};e.C=function(a){return 0===a?this.Ex:R(S(),a)};e.p=function(){return tv(this)};e.g=function(){return du(this)};e.c=function(a){if(this===a)return!0;if(a instanceof wE){var b=this.Ex;a=a.Ex;return null===b?null===a:b.c(a)}return!1};e.$classData=x({x4:0},!1,"io.lemonlabs.uri.encoding.PercentEncoder",{x4:1,b:1,rC:1,z:1,o:1,d:1});class MZ extends SW{constructor(a){super();yF(this,a,null)}} -MZ.prototype.$classData=x({A4:0},!1,"io.lemonlabs.uri.parsing.UriParsingException",{A4:1,b4:1,Za:1,Ka:1,b:1,d:1});function NZ(a,b){this.jN=this.iN=null;if(null===a)throw K(L(),null);this.iN=a;this.jN=b}NZ.prototype=new FR;NZ.prototype.constructor=NZ;e=NZ.prototype; -e.Pc=function(a,b){if(a instanceof OZ){var c=this.iN.$i,d=new Fn(!0,!0,!0,!1,!0,-1,120);b=jq(128);var f=a.cj.jk;if(f=n)n=new jb(0);else{r=new jb(n);for(u=0;u=c))for(c=1;;){h=String.fromCharCode(32);b.x=""+b.x+h;if(c===f)break;c=1+c|0}c=String.fromCharCode(94);b.x=""+b.x+c}d.P6&&(c=String.fromCharCode(10),b.x=""+b.x+c,c=String.fromCharCode(10),b.x=""+b.x+c,a=On(d,a),b.x=""+b.x+a);a=b.x;return new ms(new MZ("Invalid "+gq(this.jN)+" could not be parsed. "+a))}return b.t(a)}; -e.Rc=function(a){return a instanceof OZ};e.je=function(a){return this.Rc(a)};e.Ic=function(a,b){return this.Pc(a,b)};e.$classData=x({D4:0},!1,"io.lemonlabs.uri.parsing.UrlParser$$anonfun$mapParseError$1",{D4:1,Mh:1,b:1,da:1,wa:1,d:1});function PZ(){this.sm=this.f5=this.g5=this.b5=this.c5=this.e5=this.d5=this.a5=this.$4=this.Zj=null;QZ=this;this.sm=new bX(this);JE(this)}PZ.prototype=new t;PZ.prototype.constructor=PZ; -PZ.prototype.$classData=x({Z4:0},!1,"io.lemonlabs.uri.typesafe.QueryValue$",{Z4:1,b:1,mna:1,nna:1,ona:1,d:1});var QZ;function fO(){QZ||(QZ=new PZ);return QZ}function RZ(){}RZ.prototype=new fX;RZ.prototype.constructor=RZ;function SZ(){}SZ.prototype=RZ.prototype;function Zw(a){var b=H();a.vC=b.k()?a:b.Ja()}function TZ(){this.vC=null}TZ.prototype=new t;TZ.prototype.constructor=TZ;function UZ(){}UZ.prototype=TZ.prototype;TZ.prototype.Taa=function(a){this.aB(null===a?"null":Ua(a))}; -class Wa extends ev{constructor(a){super();yF(this,a,null)}}Wa.prototype.$classData=x({Waa:0},!1,"java.lang.ArithmeticException",{Waa:1,Cb:1,Za:1,Ka:1,b:1,d:1});function fm(a){var b=new VZ;yF(b,a,null);return b}function rk(){var a=new VZ;yF(a,null,null);return a}class VZ extends ev{}VZ.prototype.$classData=x({Bh:0},!1,"java.lang.IllegalArgumentException",{Bh:1,Cb:1,Za:1,Ka:1,b:1,d:1});function Kq(a){var b=new WZ;yF(b,a,null);return b}function AF(){var a=new WZ;yF(a,null,null);return a} -class WZ extends ev{}WZ.prototype.$classData=x({CP:0},!1,"java.lang.IllegalStateException",{CP:1,Cb:1,Za:1,Ka:1,b:1,d:1});function lu(a,b){yF(a,b,null);return a}function Bk(){var a=new mu;yF(a,null,null);return a}class mu extends ev{}mu.prototype.$classData=x({zE:0},!1,"java.lang.IndexOutOfBoundsException",{zE:1,Cb:1,Za:1,Ka:1,b:1,d:1});x({lba:0},!1,"java.lang.JSConsoleBasedPrintStream$DummyOutputStream",{lba:1,x5:1,b:1,Gx:1,cz:1,Hx:1}); -class am extends ev{constructor(){super();yF(this,null,null)}}am.prototype.$classData=x({uba:0},!1,"java.lang.NegativeArraySizeException",{uba:1,Cb:1,Za:1,Ka:1,b:1,d:1});function zm(a){var b=new XZ;yF(b,a,null);return b}function P(){var a=new XZ;yF(a,null,null);return a}class XZ extends ev{}XZ.prototype.$classData=x({vba:0},!1,"java.lang.NullPointerException",{vba:1,Cb:1,Za:1,Ka:1,b:1,d:1});class YZ extends lv{constructor(a){super();yF(this,a,null)}} -YZ.prototype.$classData=x({zba:0},!1,"java.lang.StackOverflowError",{zba:1,hoa:1,ez:1,Ka:1,b:1,d:1});function CF(){var a=new ZZ;yF(a,null,null);return a}function TP(a){var b=new ZZ;yF(b,a,null);return b}class ZZ extends ev{}ZZ.prototype.$classData=x({KP:0},!1,"java.lang.UnsupportedOperationException",{KP:1,Cb:1,Za:1,Ka:1,b:1,d:1});class il extends ev{constructor(){super();yF(this,null,null)}}il.prototype.$classData=x({P5:0},!1,"java.nio.BufferOverflowException",{P5:1,Cb:1,Za:1,Ka:1,b:1,d:1}); -class ol extends ev{constructor(){super();yF(this,null,null)}}ol.prototype.$classData=x({Q5:0},!1,"java.nio.BufferUnderflowException",{Q5:1,Cb:1,Za:1,Ka:1,b:1,d:1});class $Z extends dX{}function a_(){}a_.prototype=new tO;a_.prototype.constructor=a_;function b_(){}b_.prototype=a_.prototype;a_.prototype.zg=function(){return mH(this)};function mH(a){if(0>a.$())throw lu(new mu,"0");return new c_(a,0,0,a.$())} -a_.prototype.c=function(a){if(a===this)return!0;if(a&&a.$classData&&a.$classData.Eb.uca){a=mH(a);var b=mH(this);a:{for(;b.v();){var c=b.s();if(a.v()){var d=a.s();c=null===c?null===d:Ka(c,d)}else c=!1;if(!c){b=!0;break a}}b=!1}return b?!1:!a.v()}return!1};a_.prototype.p=function(){for(var a=mH(this),b=1;a.v();){var c=a.s();b=k(31,b|0)+(null===c?0:Oa(c))|0}return b|0};function d_(){}d_.prototype=new tO;d_.prototype.constructor=d_;function e_(){}e_.prototype=d_.prototype; -d_.prototype.c=function(a){return a===this?!0:a&&a.$classData&&a.$classData.Eb.qz?a.$()===this.$()&&this.$D(a):!1};d_.prototype.p=function(){for(var a=this.zg(),b=0;a.v();){var c=b;b=a.s();c|=0;b=Oa(b)+c|0}return b|0};class f_ extends ev{constructor(){super();yF(this,"mutation occurred during iteration",null)}}f_.prototype.$classData=x({Sba:0},!1,"java.util.ConcurrentModificationException",{Sba:1,Cb:1,Za:1,Ka:1,b:1,d:1}); -function g_(a,b){if(null===b)var c=0;else c=Oa(b),c^=c>>>16|0;a=h_(a,b,c,c&(-1+a.dg.a.length|0));return null===a?null:a.cg}function i_(a,b,c){a.lv=c;if(0>b)throw fm("initialCapacity \x3c 0");if(0>=c)throw fm("loadFactor \x3c\x3d 0.0");b=-1+b|0;b=4>la(b)&b)<<1;a.dg=new (y(XG).M)(1073741824>b?b:1073741824);a.mv=Ya(a.dg.a.length*a.lv);a.Ch=0}function Ki(){var a=new j_;i_(a,16,.75);return a}function j_(){this.lv=0;this.dg=null;this.Ch=this.mv=0}j_.prototype=new PG; -j_.prototype.constructor=j_;function k_(){}e=k_.prototype=j_.prototype;e.XE=function(a,b,c,d,f){var g=new VG;g.Ag=a;g.Rm=b;g.cg=c;g.kv=d;g.Gi=f;return g};e.$=function(){return this.Ch};e.k=function(){return 0===this.Ch};e.qk=function(a){return g_(this,a)};e.Sy=function(a){if(null===a)var b=0;else b=Oa(a),b^=b>>>16|0;return null!==h_(this,a,b,b&(-1+this.dg.a.length|0))};e.uj=function(a,b){if(null===a)var c=0;else c=Oa(a),c^=c>>>16|0;return l_(this,a,b,c)};e.Hm=function(){return new m_(this)}; -function h_(a,b,c,d){for(a=a.dg.a[d];;){if(null===a)return null;c===a.Rm?(d=a.Ag,d=null===b?null===d:Ka(b,d)):d=!1;if(d)return a;if(c=a.mv){var g=a.dg,h=g.a.length,l=h<<1,n=new (y(XG).M)(l);a.dg=n;a.mv=Ya(l*a.lv);for(l=0;lb.YC&&(b.YC=a.Pb);return!0}function u_(a){var b=a.th,c=b<<16;b=a.Pb+(b>>>16|0|b>>31<<16)|0;var d=a.Id.vg;a=d>>31;d=c+d|0;return new p(d,(-2147483648^d)<(-2147483648^c)?1+(b+a|0)|0:b+a|0)} -function v_(a,b){a.Pb=b.r;a.th=65535&(b.m>>>16|0|b.r<<16);a.Id.vg=65535&b.m}function w_(a){var b=a.Xf;a.Xf=null;return b}function x_(a){var b=a.Xf;if(!(null===b||b instanceof SH))if(b instanceof QH){if(a.Pb>=b.ON){if(b.VC===b.WC)throw y_();b.VC=1+b.VC|0}}else if(b instanceof TH)b.PN>b.Sx&&(b.Sx=b.PN);else if(b instanceof RH){if(a.Pb>=b.V6&!b.W6)throw z_();}else throw new D(b);return!1}function A_(a,b,c){throw new B_(a,new RX(b,c));} -function C_(a,b){if(void 0!==b)if(b&&b.$classData&&b.$classData.Eb.UN)for(a=a.Id;;)if(b instanceof D_){var c=b.Ir;E_(a,b.zm);b=c}else{if(F_()!==b)throw new D(b);break}else E_(a.Id,b);return!0}function G_(a){for(var b=0;;)if(3>b){if((65535&("/?#".charCodeAt(b)|0))===a.th)return s_(a);b=1+b|0}else return!1}function H_(){}H_.prototype=new t;H_.prototype.constructor=H_;e=H_.prototype;e.A=function(){return"ANY"};e.B=function(){return 0};e.C=function(a){return R(S(),a)};e.p=function(){return 64972}; -e.g=function(){return"ANY"};e.$classData=x({j7:0},!1,"org.parboiled2.RuleTrace$ANY$",{j7:1,b:1,Hr:1,z:1,o:1,d:1});var I_;function Bo(){I_||(I_=new H_);return I_}function J_(){}J_.prototype=new t;J_.prototype.constructor=J_;e=J_.prototype;e.A=function(){return"Action"};e.B=function(){return 0};e.C=function(a){return R(S(),a)};e.p=function(){return 1955883606};e.g=function(){return"Action"};e.$classData=x({k7:0},!1,"org.parboiled2.RuleTrace$Action$",{k7:1,b:1,Yf:1,z:1,o:1,d:1});var K_; -function Tn(){K_||(K_=new J_);return K_}function ko(){}ko.prototype=new t;ko.prototype.constructor=ko;e=ko.prototype;e.A=function(){return"AndPredicate"};e.B=function(){return 0};e.C=function(a){return R(S(),a)};e.p=function(){return-2111257152};e.g=function(){return"AndPredicate"};e.$classData=x({l7:0},!1,"org.parboiled2.RuleTrace$AndPredicate$",{l7:1,b:1,Yf:1,z:1,o:1,d:1});var Vn;function Co(a){this.Vx=a}Co.prototype=new t;Co.prototype.constructor=Co;e=Co.prototype;e.A=function(){return"AnyOf"}; -e.B=function(){return 1};e.C=function(a){return 0===a?this.Vx:R(S(),a)};e.p=function(){return tv(this)};e.g=function(){return du(this)};e.c=function(a){return this===a?!0:a instanceof Co?this.Vx===a.Vx:!1};e.$classData=x({m7:0},!1,"org.parboiled2.RuleTrace$AnyOf",{m7:1,b:1,Hr:1,z:1,o:1,d:1});function L_(){}L_.prototype=new t;L_.prototype.constructor=L_;e=L_.prototype;e.A=function(){return"Atomic"};e.B=function(){return 0};e.C=function(a){return R(S(),a)};e.p=function(){return 1971438155};e.g=function(){return"Atomic"}; -e.$classData=x({n7:0},!1,"org.parboiled2.RuleTrace$Atomic$",{n7:1,b:1,Yf:1,z:1,o:1,d:1});var M_;function Un(){M_||(M_=new L_);return M_}function N_(){}N_.prototype=new t;N_.prototype.constructor=N_;e=N_.prototype;e.A=function(){return"Capture"};e.B=function(){return 0};e.C=function(a){return R(S(),a)};e.p=function(){return-2077728986};e.g=function(){return"Capture"};e.$classData=x({o7:0},!1,"org.parboiled2.RuleTrace$Capture$",{o7:1,b:1,Yf:1,z:1,o:1,d:1});var O_; -function lo(){O_||(O_=new N_);return O_}function Do(a){this.lu=a}Do.prototype=new t;Do.prototype.constructor=Do;e=Do.prototype;e.A=function(){return"CharMatch"};e.B=function(){return 1};e.C=function(a){return 0===a?q(this.lu):R(S(),a)};e.p=function(){var a=Pa("CharMatch");a=S().j(-889275714,a);var b=this.lu;a=S().j(a,b);return S().ca(a,1)};e.g=function(){return du(this)};e.c=function(a){return this===a?!0:a instanceof Do?this.lu===a.lu:!1}; -e.$classData=x({p7:0},!1,"org.parboiled2.RuleTrace$CharMatch",{p7:1,b:1,Hr:1,z:1,o:1,d:1});x({q7:0},!1,"org.parboiled2.RuleTrace$CharPredicateMatch",{q7:1,b:1,Hr:1,z:1,o:1,d:1});function no(){}no.prototype=new t;no.prototype.constructor=no;e=no.prototype;e.A=function(){return"Cut"};e.B=function(){return 0};e.C=function(a){return R(S(),a)};e.p=function(){return 68130};e.g=function(){return"Cut"};e.$classData=x({r7:0},!1,"org.parboiled2.RuleTrace$Cut$",{r7:1,b:1,Yf:1,z:1,o:1,d:1});var mo; -function po(){}po.prototype=new t;po.prototype.constructor=po;e=po.prototype;e.A=function(){return"FirstOf"};e.B=function(){return 0};e.C=function(a){return R(S(),a)};e.p=function(){return 815630471};e.g=function(){return"FirstOf"};e.$classData=x({s7:0},!1,"org.parboiled2.RuleTrace$FirstOf$",{s7:1,b:1,Yf:1,z:1,o:1,d:1});var oo;function Qn(a){this.mu=a}Qn.prototype=new t;Qn.prototype.constructor=Qn;e=Qn.prototype;e.A=function(){return"Named"};e.B=function(){return 1}; -e.C=function(a){return 0===a?this.mu:R(S(),a)};e.p=function(){return tv(this)};e.g=function(){return du(this)};e.c=function(a){return this===a?!0:a instanceof Qn?this.mu===a.mu:!1};e.$classData=x({t7:0},!1,"org.parboiled2.RuleTrace$Named",{t7:1,b:1,Yf:1,z:1,o:1,d:1});x({v7:0},!1,"org.parboiled2.RuleTrace$NoneOf",{v7:1,b:1,Hr:1,z:1,o:1,d:1});function In(a,b){this.Gr=a;this.nu=b}In.prototype=new t;In.prototype.constructor=In;e=In.prototype;e.A=function(){return"NotPredicate"};e.B=function(){return 2}; -e.C=function(a){switch(a){case 0:return this.Gr;case 1:return this.nu;default:return R(S(),a)}};e.p=function(){var a=Pa("NotPredicate");a=S().j(-889275714,a);var b=this.Gr;b=ku(S(),b);a=S().j(a,b);b=this.nu;a=S().j(a,b);return S().ca(a,2)};e.g=function(){return du(this)};e.c=function(a){if(this===a)return!0;if(a instanceof In&&this.nu===a.nu){var b=this.Gr;a=a.Gr;return null===b?null===a:b.c(a)}return!1};e.$classData=x({w7:0},!1,"org.parboiled2.RuleTrace$NotPredicate",{w7:1,b:1,Hr:1,z:1,o:1,d:1}); -function Go(){}Go.prototype=new t;Go.prototype.constructor=Go;e=Go.prototype;e.A=function(){return"Anonymous"};e.B=function(){return 0};e.C=function(a){return R(S(),a)};e.p=function(){return-91843507};e.g=function(){return"Anonymous"};e.$classData=x({x7:0},!1,"org.parboiled2.RuleTrace$NotPredicate$Anonymous$",{x7:1,b:1,y7:1,z:1,o:1,d:1});var Fo;function Eo(a){this.Wx=a}Eo.prototype=new t;Eo.prototype.constructor=Eo;e=Eo.prototype;e.A=function(){return"Terminal"};e.B=function(){return 1}; -e.C=function(a){return 0===a?this.Wx:R(S(),a)};e.p=function(){return tv(this)};e.g=function(){return du(this)};e.c=function(a){if(this===a)return!0;if(a instanceof Eo){var b=this.Wx;a=a.Wx;return null===b?null===a:b.c(a)}return!1};e.$classData=x({z7:0},!1,"org.parboiled2.RuleTrace$NotPredicate$Terminal",{z7:1,b:1,y7:1,z:1,o:1,d:1});function ro(){}ro.prototype=new t;ro.prototype.constructor=ro;e=ro.prototype;e.A=function(){return"OneOrMore"};e.B=function(){return 0};e.C=function(a){return R(S(),a)}; -e.p=function(){return-806426178};e.g=function(){return"OneOrMore"};e.$classData=x({A7:0},!1,"org.parboiled2.RuleTrace$OneOrMore$",{A7:1,b:1,Yf:1,z:1,o:1,d:1});var qo;function P_(){}P_.prototype=new t;P_.prototype.constructor=P_;e=P_.prototype;e.A=function(){return"Optional"};e.B=function(){return 0};e.C=function(a){return R(S(),a)};e.p=function(){return-14372992};e.g=function(){return"Optional"};e.$classData=x({B7:0},!1,"org.parboiled2.RuleTrace$Optional$",{B7:1,b:1,Yf:1,z:1,o:1,d:1});var Q_; -function so(){Q_||(Q_=new P_);return Q_}function uo(){}uo.prototype=new t;uo.prototype.constructor=uo;e=uo.prototype;e.A=function(){return"Quiet"};e.B=function(){return 0};e.C=function(a){return R(S(),a)};e.p=function(){return 78394900};e.g=function(){return"Quiet"};e.$classData=x({C7:0},!1,"org.parboiled2.RuleTrace$Quiet$",{C7:1,b:1,Yf:1,z:1,o:1,d:1});var to;function R_(){}R_.prototype=new t;R_.prototype.constructor=R_;e=R_.prototype;e.A=function(){return"RuleCall"};e.B=function(){return 0}; -e.C=function(a){return R(S(),a)};e.p=function(){return 827591578};e.g=function(){return"RuleCall"};e.$classData=x({D7:0},!1,"org.parboiled2.RuleTrace$RuleCall$",{D7:1,b:1,Yf:1,z:1,o:1,d:1});var S_;function Rn(){S_||(S_=new R_);return S_}function wo(){}wo.prototype=new t;wo.prototype.constructor=wo;e=wo.prototype;e.A=function(){return"Run"};e.B=function(){return 0};e.C=function(a){return R(S(),a)};e.p=function(){return 82539};e.g=function(){return"Run"}; -e.$classData=x({E7:0},!1,"org.parboiled2.RuleTrace$Run$",{E7:1,b:1,Yf:1,z:1,o:1,d:1});var vo;function yo(){}yo.prototype=new t;yo.prototype.constructor=yo;e=yo.prototype;e.A=function(){return"RunSubParser"};e.B=function(){return 0};e.C=function(a){return R(S(),a)};e.p=function(){return-716727212};e.g=function(){return"RunSubParser"};e.$classData=x({F7:0},!1,"org.parboiled2.RuleTrace$RunSubParser$",{F7:1,b:1,Yf:1,z:1,o:1,d:1});var xo;function Io(){}Io.prototype=new t;Io.prototype.constructor=Io; -e=Io.prototype;e.A=function(){return"SemanticPredicate"};e.B=function(){return 0};e.C=function(a){return R(S(),a)};e.p=function(){return-1490175375};e.g=function(){return"SemanticPredicate"};e.$classData=x({G7:0},!1,"org.parboiled2.RuleTrace$SemanticPredicate$",{G7:1,b:1,Hr:1,z:1,o:1,d:1});var Ho;function T_(){}T_.prototype=new t;T_.prototype.constructor=T_;e=T_.prototype;e.A=function(){return"Sequence"};e.B=function(){return 0};e.C=function(a){return R(S(),a)};e.p=function(){return 1414192097}; -e.g=function(){return"Sequence"};e.$classData=x({H7:0},!1,"org.parboiled2.RuleTrace$Sequence$",{H7:1,b:1,Yf:1,z:1,o:1,d:1});var U_;function Sn(){U_||(U_=new T_);return U_}function zo(a){this.Xx=a}zo.prototype=new t;zo.prototype.constructor=zo;e=zo.prototype;e.A=function(){return"StringMatch"};e.B=function(){return 1};e.C=function(a){return 0===a?this.Xx:R(S(),a)};e.p=function(){return tv(this)};e.g=function(){return du(this)};e.c=function(a){return this===a?!0:a instanceof zo?this.Xx===a.Xx:!1}; -e.$classData=x({I7:0},!1,"org.parboiled2.RuleTrace$StringMatch",{I7:1,b:1,Yf:1,z:1,o:1,d:1});x({J7:0},!1,"org.parboiled2.RuleTrace$Times",{J7:1,b:1,Yf:1,z:1,o:1,d:1});function V_(){}V_.prototype=new t;V_.prototype.constructor=V_;e=V_.prototype;e.A=function(){return"ZeroOrMore"};e.B=function(){return 0};e.C=function(a){return R(S(),a)};e.p=function(){return 539311296};e.g=function(){return"ZeroOrMore"};e.$classData=x({K7:0},!1,"org.parboiled2.RuleTrace$ZeroOrMore$",{K7:1,b:1,Yf:1,z:1,o:1,d:1});var W_; -function Ao(){W_||(W_=new V_);return W_}class X_ extends ev{constructor(){super();yF(this,null,null)}}X_.prototype.$classData=x({M7:0},!1,"org.parboiled2.ValueStackOverflowException",{M7:1,Cb:1,Za:1,Ka:1,b:1,d:1});class Y_ extends ev{constructor(){super();yF(this,null,null)}}Y_.prototype.$classData=x({N7:0},!1,"org.parboiled2.ValueStackUnderflowException",{N7:1,Cb:1,Za:1,Ka:1,b:1,d:1});x({lda:0},!1,"scala.$less$colon$less$$anon$1",{lda:1,voa:1,woa:1,b:1,da:1,d:1}); -function LN(a,b,c){this.Tz=null;this.xk=b;this.yQ=c;if(null===a)throw K(L(),null);this.Tz=a;if(a.zp.Sa(b))throw rm("assertion failed: Duplicate id: "+this.xk);a.zp.Kj(b,this);a.Cs=!1;a.ac=1+b|0;a.ac>a.yp&&(a.yp=a.ac);b()=>d)(this,a)));a!==b&&(this.hR=b,this.Gs=1)}else this.Gs=-1;return 1===this.Gs};$w.prototype.s=function(){return this.v()?(this.Gs=0,this.hR):tt().Ra.s()};$w.prototype.$classData=x({pga:0},!1,"scala.collection.Iterator$$anon$7",{pga:1,lb:1,b:1,ab:1,I:1,K:1}); -function l0(a,b){this.lR=null;this.lA=!1;this.jR=this.EF=this.kR=null;if(null===a)throw K(L(),null);this.EF=a;this.jR=b;this.lR=iR();this.lA=!1}l0.prototype=new WX;l0.prototype.constructor=l0;l0.prototype.v=function(){for(;;){if(this.lA)return!0;if(this.EF.v()){var a=this.EF.s();if(this.lR.fj(this.jR.t(a)))return this.kR=a,this.lA=!0}else return!1}};l0.prototype.s=function(){return this.v()?(this.lA=!1,this.kR):tt().Ra.s()}; -l0.prototype.$classData=x({qga:0},!1,"scala.collection.Iterator$$anon$8",{qga:1,lb:1,b:1,ab:1,I:1,K:1});function Lp(a,b){this.mR=this.mA=null;if(null===a)throw K(L(),null);this.mA=a;this.mR=b}Lp.prototype=new WX;Lp.prototype.constructor=Lp;Lp.prototype.L=function(){return this.mA.L()};Lp.prototype.v=function(){return this.mA.v()};Lp.prototype.s=function(){return this.mR.t(this.mA.s())};Lp.prototype.$classData=x({rga:0},!1,"scala.collection.Iterator$$anon$9",{rga:1,lb:1,b:1,ab:1,I:1,K:1}); -function qP(a){this.Hh=a;this.yj=this.Ki=null;this.Gp=!1}qP.prototype=new WX;qP.prototype.constructor=qP; -qP.prototype.v=function(){if(this.Gp)return!0;if(null!==this.Hh){if(this.Hh.v())return this.Gp=!0;a:for(;;){if(null===this.Ki){this.yj=this.Hh=null;var a=!1;break a}this.Hh=gq(this.Ki.uga).w();this.yj===this.Ki&&(this.yj=this.yj.nA);for(this.Ki=this.Ki.nA;this.Hh instanceof qP;)a=this.Hh,this.Hh=a.Hh,this.Gp=a.Gp,null!==a.Ki&&(null===this.yj&&(this.yj=a.yj),a.yj.nA=this.Ki,this.Ki=a.Ki);if(this.Gp){a=!0;break a}if(null!==this.Hh&&this.Hh.v()){a=this.Gp=!0;break a}}return a}return!1}; -qP.prototype.s=function(){return this.v()?(this.Gp=!1,this.Hh.s()):tt().Ra.s()};qP.prototype.bh=function(a){a=new dq(a,null);null===this.Ki?this.Ki=a:this.yj.nA=a;this.yj=a;null===this.Hh&&(this.Hh=tt().Ra);return this};qP.prototype.$classData=x({sga:0},!1,"scala.collection.Iterator$ConcatIterator",{sga:1,lb:1,b:1,ab:1,I:1,K:1});function m0(a,b){return zO().$v.ai(b,new Tm((c=>()=>gq(c.FF.Ja()))(a)))}function n0(a){a=a.Pv-a.Ov|0;return 0n0(a))){if(0!==c){var g=a.Pv,h=a.Hs,l=h.Rz;g=g()=>b.qR)(this)))} -u0.prototype=new WX;u0.prototype.constructor=u0;u0.prototype.v=function(){return!fq(this.oA).k()};u0.prototype.s=function(){if(this.v()){var a=fq(this.oA),b=a.R();this.oA=new eq(this,new Tm(((c,d)=>()=>d.X())(this,a)));return b}return tt().Ra.s()};u0.prototype.$classData=x({wga:0},!1,"scala.collection.LinearSeqIterator",{wga:1,lb:1,b:1,ab:1,I:1,K:1});function v0(a){for(var b=0;!a.k();)b=1+b|0,a=a.X();return b} -function w0(a){if(a.k())throw qp("LinearSeq.last");var b=a;for(a=a.X();!a.k();)b=a,a=a.X();return b.R()}function x0(a,b){return 0<=b&&0b)throw lu(new mu,""+b);a=a.Qc(b);if(a.k())throw lu(new mu,""+b);return a.R()}function y0(a,b){for(;!a.k();){if(!b.t(a.R()))return!1;a=a.X()}return!0}function z0(a,b){for(;!a.k();){if(b.t(a.R()))return!0;a=a.X()}return!1}function A0(a,b){for(;!a.k();){if(N(O(),a.R(),b))return!0;a=a.X()}return!1} -function B0(a,b){if(b&&b.$classData&&b.$classData.Eb.Qv)a:for(;;){if(a===b){a=!0;break a}if((a.k()?0:!b.k())&&N(O(),a.R(),b.R()))a=a.X(),b=b.X();else{a=a.k()&&b.k();break a}}else a=jY(a,b);return a}function C0(a,b,c){var d=0()=>d.w())(a,b)));return a.Jm(b)} -function F0(a){this.tA=a}F0.prototype=new WX;F0.prototype.constructor=F0;F0.prototype.v=function(){return!this.tA.k()};F0.prototype.s=function(){var a=this.tA.R();this.tA=this.tA.X();return a};F0.prototype.$classData=x({Kga:0},!1,"scala.collection.StrictOptimizedLinearSeqOps$$anon$1",{Kga:1,lb:1,b:1,ab:1,I:1,K:1});function G0(a,b){this.Ns=null;this.XF=a;this.Kp=b;this.Ih=-1;this.yf=0}G0.prototype=new WX;G0.prototype.constructor=G0; -function H0(a){if(null===a.Ns){var b=a.Kp;a.Ns=XK(new YK,256>b?b:256);for(a.Ih=0;a.XF.v();)b=a.XF.s(),a.yf>=a.Ns.xb?ZK(a.Ns,b):I0(a.Ns,a.yf,b),a.yf=1+a.yf|0,a.yf===a.Kp&&(a.yf=0),a.Ih=1+a.Ih|0;a.XF=null;a.Ih>a.Kp&&(a.Ih=a.Kp);a.yf=a.yf-a.Ih|0;0>a.yf&&(a.yf=a.yf+a.Kp|0)}}e=G0.prototype;e.L=function(){return this.Ih};e.v=function(){H0(this);return 0h)throw L0();if(h>c.a.length)throw L0();d=new ob(1+c.a.length|0);c.U(0,d,0,h);d.a[h]=f;c.U(h,d,1+h|0,c.a.length-h|0);b.ub|=n;b.Bd=a;b.zf=d;b.ce=1+b.ce|0;b.gg=b.gg+g|0}}else if(b instanceof RP)n=jQ(b,c),b.Ed=0>n?b.Ed.gf(z(new B,c, -d)):b.Ed.jl(n,z(new B,c,d));else throw new D(b);}function tQ(a){if(0===a.Sk.ce)return wQ().cw;null===a.dw&&(a.dw=new rQ(a.Sk));return a.dw}function M0(a,b){K0(a);var c=b.ib;c=ku(S(),c);var d=Qp(Sp(),c);VI(a,a.Sk,b.ib,b.Va,c,d,0);return a}function N0(a,b,c){K0(a);var d=ku(S(),b);VI(a,a.Sk,b,c,d,Qp(Sp(),d),0);return a} -function uQ(a,b){K0(a);if(b instanceof rQ)new UI(a,b);else if(b instanceof cR)for(b=O0(b);b.v();){var c=b.s(),d=c.bl;d^=d>>>16|0;var f=Qp(Sp(),d);VI(a,a.Sk,c.vn,c.ni,d,f,0)}else if(b&&b.$classData&&b.$classData.Eb.Pp)b.zh(new gn((g=>(h,l)=>N0(g,h,l))(a)));else for(b=b.w();b.v();)M0(a,b.s());return a}e.wc=function(a){return uQ(this,a)};e.Wa=function(a){return M0(this,a)};e.yb=function(){return tQ(this)}; -e.$classData=x({Lha:0},!1,"scala.collection.immutable.HashMapBuilder",{Lha:1,b:1,Hj:1,we:1,Vd:1,Ud:1});function BQ(){this.Tk=this.Op=null;this.Tk=new er(0,0,Zo().cF,Zo().xv,0,0)}BQ.prototype=new t;BQ.prototype.constructor=BQ;e=BQ.prototype;e.qc=function(){}; -function XI(a,b,c,d,f,g){if(b instanceof er){var h=Yq(uq(),f,g),l=Zq(uq(),h);if(0!==(b.pb&l)){h=br(uq(),b.pb,h,l);a=b.fd(h);var n=b.Zb(h);n===d&&N(O(),a,c)?(d=b.Zf(l),b.Cd.a[d]=a):(h=Qp(Sp(),n),d=aQ(b,a,n,h,c,d,f,5+g|0),dQ(b,l,h,d))}else if(0!==(b.Sb&l))l=br(uq(),b.Sb,h,l),l=b.wf(l),h=l.$(),n=l.Jc(),XI(a,l,c,d,f,5+g|0),b.pc=b.pc+(l.$()-h|0)|0,b.mf=b.mf+(l.Jc()-n|0)|0;else{g=b.Zf(l);h=b.Cd;a=new v(1+h.a.length|0);h.U(0,a,0,g);a.a[g]=c;h.U(g,a,1+g|0,h.a.length-g|0);c=b.le;if(0>g)throw L0();if(g>c.a.length)throw L0(); -h=new ob(1+c.a.length|0);c.U(0,h,0,g);h.a[g]=d;c.U(g,h,1+g|0,c.a.length-g|0);b.pb|=l;b.Cd=a;b.le=h;b.pc=1+b.pc|0;b.mf=b.mf+f|0}}else if(b instanceof fQ)d=jh(b.me,c),b.me=0>d?b.me.gf(c):b.me.jl(d,c);else throw new D(b);}function CQ(a){if(0===a.Tk.pc)return EQ().Qs;null===a.Op&&(a.Op=zQ(new AQ,a.Tk));return a.Op}function P0(a,b){null!==a.Op&&(a.Tk=hQ(a.Tk));a.Op=null;var c=ku(S(),b),d=Qp(Sp(),c);XI(a,a.Tk,b,c,d,0);return a} -function DQ(a,b){null!==a.Op&&(a.Tk=hQ(a.Tk));a.Op=null;if(b instanceof AQ)new WI(a,b);else for(b=b.w();b.v();)P0(a,b.s());return a}e.wc=function(a){return DQ(this,a)};e.Wa=function(a){return P0(this,a)};e.yb=function(){return CQ(this)};e.$classData=x({Pha:0},!1,"scala.collection.immutable.HashSetBuilder",{Pha:1,b:1,Hj:1,we:1,Vd:1,Ud:1});function Q0(){this.fg=null;this.fg=yt()}Q0.prototype=new dY;Q0.prototype.constructor=Q0;function XU(a,b){return R0(b)?b:cY.prototype.ls.call(a,b)} -Q0.prototype.sb=function(a){return XU(this,a)};Q0.prototype.ls=function(a){return XU(this,a)};Q0.prototype.$classData=x({Rha:0},!1,"scala.collection.immutable.IndexedSeq$",{Rha:1,JF:1,b:1,hh:1,Be:1,d:1});var S0;function st(){S0||(S0=new Q0);return S0}function GY(){this.JR=this.Rs=null;this.hp()}GY.prototype=new t;GY.prototype.constructor=GY;e=GY.prototype;e.qc=function(){};e.hp=function(){var a=new Iq;xt();this.JR=new tY(new Tm(((b,c)=>()=>Jq(c))(this,a)));this.Rs=a}; -function T0(a){Lq(a.Rs,new Tm((()=>()=>IQ())(a)));return a.JR}function U0(a,b){var c=new Iq;Lq(a.Rs,new Tm(((d,f,g)=>()=>{xt();xt();return new FQ(f,new tY(new Tm(((h,l)=>()=>Jq(l))(d,g))))})(a,b,c)));a.Rs=c;return a}function V0(a,b){if(0!==b.L()){var c=new Iq;Lq(a.Rs,new Tm(((d,f,g)=>()=>BY(xt(),f.w(),new Tm(((h,l)=>()=>Jq(l))(d,g))))(a,b,c)));a.Rs=c}return a}e.wc=function(a){return V0(this,a)};e.Wa=function(a){return U0(this,a)};e.yb=function(){return T0(this)}; -e.$classData=x({Wha:0},!1,"scala.collection.immutable.LazyList$LazyBuilder",{Wha:1,b:1,Hj:1,we:1,Vd:1,Ud:1});function W0(a){this.ew=a}W0.prototype=new WX;W0.prototype.constructor=W0;W0.prototype.v=function(){return!this.ew.k()};W0.prototype.s=function(){if(this.ew.k())return tt().Ra.s();var a=zY(this.ew).R();this.ew=zY(this.ew).Oc();return a};W0.prototype.$classData=x({Yha:0},!1,"scala.collection.immutable.LazyList$LazyIterator",{Yha:1,lb:1,b:1,ab:1,I:1,K:1}); -function X0(a,b,c){this.KR=0;this.bG=!1;this.zA=a;this.$ha=b;this.aia=c;a=b-c|0;this.KR=0a){a=!0;break a}if(b.k()){a=!1;break a}b=zY(b).Oc();a=-1+a|0}}return a};X0.prototype.s=function(){if(this.v()){this.bG=!1;var a=this.zA;this.zA=Y0(a,this.aia);var b=this.$ha;a=a.Ye&&a.k()?xt().Jh:Z0(a,b)}else a=tt().Ra.s();return a}; -X0.prototype.$classData=x({Zha:0},!1,"scala.collection.immutable.LazyList$SlidingIterator",{Zha:1,lb:1,b:1,ab:1,I:1,K:1});function $0(){this.fw=null;a1=this;z(new B,F(),F());this.fw=new YI}$0.prototype=new t;$0.prototype.constructor=$0;e=$0.prototype;e.hf=function(a){return hh(F(),a)};e.gb=function(){return new b1};e.si=function(a,b){return pY(this,a,b)};e.ai=function(a,b){return oY(this,a,b)};e.mc=function(){return F()};e.sb=function(a){return hh(F(),a)}; -e.$classData=x({iia:0},!1,"scala.collection.immutable.List$",{iia:1,b:1,Jp:1,hh:1,Be:1,d:1});var a1;function eh(){a1||(a1=new $0);return a1}function c1(){this.fn=0;this.Ss=null}c1.prototype=new WX;c1.prototype.constructor=c1;function d1(){}d1.prototype=c1.prototype;c1.prototype.v=function(){return 2>this.fn};c1.prototype.s=function(){switch(this.fn){case 0:var a=z(new B,this.Ss.ih,this.Ss.Mi);break;case 1:a=z(new B,this.Ss.jh,this.Ss.Ni);break;default:a=tt().Ra.s()}this.fn=1+this.fn|0;return a}; -c1.prototype.Pe=function(a){this.fn=this.fn+a|0;return this};function e1(){this.hn=0;this.gn=null}e1.prototype=new WX;e1.prototype.constructor=e1;function f1(){}f1.prototype=e1.prototype;e1.prototype.v=function(){return 3>this.hn};e1.prototype.s=function(){switch(this.hn){case 0:var a=z(new B,this.gn.Ig,this.gn.ji);break;case 1:a=z(new B,this.gn.ig,this.gn.Kh);break;case 2:a=z(new B,this.gn.jg,this.gn.Lh);break;default:a=tt().Ra.s()}this.hn=1+this.hn|0;return a}; -e1.prototype.Pe=function(a){this.hn=this.hn+a|0;return this};function g1(){this.jn=0;this.Dj=null}g1.prototype=new WX;g1.prototype.constructor=g1;function h1(){}h1.prototype=g1.prototype;g1.prototype.v=function(){return 4>this.jn}; -g1.prototype.s=function(){switch(this.jn){case 0:var a=z(new B,this.Dj.Of,this.Dj.kh);break;case 1:a=z(new B,this.Dj.Af,this.Dj.Jg);break;case 2:a=z(new B,this.Dj.nf,this.Dj.kg);break;case 3:a=z(new B,this.Dj.of,this.Dj.lg);break;default:a=tt().Ra.s()}this.jn=1+this.jn|0;return a};g1.prototype.Pe=function(a){this.jn=this.jn+a|0;return this};function PQ(){this.Vk=null;this.gw=!1;this.Qp=null;this.Vk=MQ();this.gw=!1}PQ.prototype=new t;PQ.prototype.constructor=PQ;e=PQ.prototype;e.qc=function(){}; -function NQ(a){return a.gw?tQ(a.Qp):a.Vk}function OQ(a,b){return a.gw?(uQ(a.Qp,b),a):EJ(a,b)}e.wc=function(a){return OQ(this,a)};e.Wa=function(a){var b=a.ib;a=a.Va;if(this.gw)N0(this.Qp,b,a);else if(4>this.Vk.$())this.Vk=this.Vk.Wi(b,a);else if(this.Vk.Sa(b))this.Vk=this.Vk.Wi(b,a);else{this.gw=!0;null===this.Qp&&(this.Qp=new vQ);var c=this.Vk;N0(N0(N0(N0(this.Qp,c.Of,c.kh),c.Af,c.Jg),c.nf,c.kg),c.of,c.lg);N0(this.Qp,b,a)}return this};e.yb=function(){return NQ(this)}; -e.$classData=x({tia:0},!1,"scala.collection.immutable.MapBuilderImpl",{tia:1,b:1,Hj:1,we:1,Vd:1,Ud:1});function i1(a){this.hg=0;this.en=null;this.Hg=0;this.Np=this.Mp=null;this.eG=0;this.OR=null;Bq(this,a);this.eG=0}i1.prototype=new Dq;i1.prototype.constructor=i1;e=i1.prototype;e.w=function(){return this};e.k=function(){return!this.v()};e.bh=function(a){return pP(this,a)};e.Pe=function(a){return rP(this,a)};e.g=function(){return"\x3citerator\x3e"};e.Lb=function(a,b,c){return Yp(this,a,b,c)}; -e.tf=function(a,b,c,d){return $p(this,a,b,c,d)};e.Ph=function(){return G(fJ(),this)};e.og=function(){return dS(rt(),this)};e.Oh=function(a){return aq(this,a)};e.L=function(){return-1};e.p=function(){var a=uv(),b=this.OR;return sv(a,this.eG,ku(S(),b))};e.s=function(){if(!this.v())throw MP();this.eG=this.en.Zb(this.hg);this.OR=this.en.ag(this.hg);this.hg=-1+this.hg|0;return this};e.$classData=x({uia:0},!1,"scala.collection.immutable.MapKeyValueTupleHashIterator",{uia:1,HR:1,b:1,ab:1,I:1,K:1}); -function j1(a){this.Qk=this.Dd=0;this.Gg=null;this.Nf=0;this.dn=this.hi=null;wq(this,a)}j1.prototype=new yq;j1.prototype.constructor=j1;e=j1.prototype;e.w=function(){return this};e.k=function(){return!this.v()};e.bh=function(a){return pP(this,a)};e.Pe=function(a){return rP(this,a)};e.g=function(){return"\x3citerator\x3e"};e.Lb=function(a,b,c){return Yp(this,a,b,c)};e.tf=function(a,b,c,d){return $p(this,a,b,c,d)};e.Ph=function(){return G(fJ(),this)};e.og=function(){return dS(rt(),this)}; -e.Oh=function(a){return aq(this,a)};e.L=function(){return-1};e.Um=function(){if(!this.v())throw MP();var a=this.Gg.lp(this.Dd);this.Dd=1+this.Dd|0;return a};e.s=function(){return this.Um()};e.$classData=x({via:0},!1,"scala.collection.immutable.MapKeyValueTupleIterator",{via:1,yA:1,b:1,ab:1,I:1,K:1});function k1(a){this.hg=0;this.en=null;this.Hg=0;this.Np=this.Mp=null;Bq(this,a)}k1.prototype=new Dq;k1.prototype.constructor=k1;e=k1.prototype;e.w=function(){return this};e.k=function(){return!this.v()}; -e.bh=function(a){return pP(this,a)};e.Pe=function(a){return rP(this,a)};e.g=function(){return"\x3citerator\x3e"};e.Lb=function(a,b,c){return Yp(this,a,b,c)};e.tf=function(a,b,c,d){return $p(this,a,b,c,d)};e.Ph=function(){return G(fJ(),this)};e.og=function(){return dS(rt(),this)};e.Oh=function(a){return aq(this,a)};e.L=function(){return-1};e.Um=function(){if(!this.v())throw MP();var a=this.en.lp(this.hg);this.hg=-1+this.hg|0;return a};e.s=function(){return this.Um()}; -e.$classData=x({wia:0},!1,"scala.collection.immutable.MapKeyValueTupleReverseIterator",{wia:1,HR:1,b:1,ab:1,I:1,K:1}); -function l1(a){a.lh<=a.Ee&&tt().Ra.s();a.Vp=1+a.Vp|0;for(var b=a.PR.Xi(a.Vp);0===b.a.length;)a.Vp=1+a.Vp|0,b=a.PR.Xi(a.Vp);a.CA=a.Vs;var c=a.Aia/2|0,d=a.Vp-c|0;a.Up=(1+c|0)-(0>d?-d|0:d)|0;c=a.Up;switch(c){case 1:a.Oi=b;break;case 2:a.Rp=b;break;case 3:a.Sp=b;break;case 4:a.Tp=b;break;case 5:a.Us=b;break;case 6:a.fG=b;break;default:throw new D(c);}a.Vs=a.CA+k(b.a.length,1<a.ln&&(a.Vs=a.ln);1c?a.Oi=a.Rp.a[31&(b>>>5|0)]:(32768>c?a.Rp=a.Sp.a[31&(b>>>10|0)]:(1048576>c?a.Sp=a.Tp.a[31&(b>>>15|0)]:(33554432>c?a.Tp=a.Us.a[31&(b>>>20|0)]:(a.Us=a.fG.a[b>>>25|0],a.Tp=a.Us.a[0]),a.Sp=a.Tp.a[0]),a.Rp=a.Sp.a[0]),a.Oi=a.Rp.a[0]);a.iw=b}a.lh=a.lh-a.Ee|0;b=a.Oi.a.length;c=a.lh;a.kn=bthis.Ee};e.s=function(){this.Ee===this.kn&&m1(this);var a=this.Oi.a[this.Ee];this.Ee=1+this.Ee|0;return a}; -e.Pe=function(a){if(0=this.Vs;)l1(this);b=a-this.CA|0;if(1c||(32768>c||(1048576>c||(33554432>c||(this.Us=this.fG.a[b>>>25|0]),this.Tp=this.Us.a[31&(b>>>20|0)]),this.Sp=this.Tp.a[31&(b>>>15|0)]),this.Rp=this.Sp.a[31&(b>>>10|0)]);this.Oi=this.Rp.a[31&(b>>>5|0)];this.iw=b}this.kn=this.Oi.a.length;this.Ee=31&b;this.lh=this.Ee+(this.ln-a|0)|0;this.kn>this.lh&& -(this.kn=this.lh)}}return this};e.Lb=function(a,b,c){var d=op(Bl(),a),f=this.lh-this.Ee|0;c=cthis.Xs}; -o1.prototype.s=function(){if(this.v()){var a=this.hG;var b=this.Xs,c=this.Xs+this.iG|0;if(0>=b)if(0>=c||a.Bf){var d=a.ec;a=new NS(d,d,a.Ab)}else a=c>=a.Pf&&0<=a.Pf?a:new p1(a.ec,a.ec+k(a.Ab,-1+c|0)|0,a.Ab);else c>=a.Pf&&0<=a.Pf?a=q1(a,b):(d=a.ec+k(a.Ab,b)|0,b>=c?a=new NS(d,d,a.Ab):(b=a.ec+k(a.Ab,-1+c|0)|0,a=new p1(d,b,a.Ab)));this.Xs=this.Xs+this.iG|0}else a=tt().Ra.s();return a};o1.prototype.$classData=x({Mia:0},!1,"scala.collection.immutable.Range$$anon$3",{Mia:1,lb:1,b:1,ab:1,I:1,K:1}); -function r1(){this.fg=null;this.fg=eh()}r1.prototype=new dY;r1.prototype.constructor=r1;function dS(a,b){return b&&b.$classData&&b.$classData.Eb.id?b:cY.prototype.ls.call(a,b)}r1.prototype.sb=function(a){return dS(this,a)};r1.prototype.ls=function(a){return dS(this,a)};r1.prototype.$classData=x({Qia:0},!1,"scala.collection.immutable.Seq$",{Qia:1,JF:1,b:1,hh:1,Be:1,d:1});var s1;function rt(){s1||(s1=new r1);return s1}function UQ(){this.Zp=null;this.mw=!1;this.$p=null;this.Zp=VQ();this.mw=!1} -UQ.prototype=new t;UQ.prototype.constructor=UQ;e=UQ.prototype;e.qc=function(){};function SQ(a){return a.mw?CQ(a.$p):a.Zp}function TQ(a,b){return a.mw?(DQ(a.$p,b),a):EJ(a,b)}e.wc=function(a){return TQ(this,a)};e.Wa=function(a){if(this.mw)P0(this.$p,a);else if(4>this.Zp.$())this.Zp=this.Zp.ns(a);else if(!this.Zp.Sa(a)){this.mw=!0;null===this.$p&&(this.$p=new BQ);var b=this.Zp;this.$p.Wa(b.Yk).Wa(b.Ej).Wa(b.Pi).Wa(b.Qi);P0(this.$p,a)}return this};e.yb=function(){return SQ(this)}; -e.$classData=x({$ia:0},!1,"scala.collection.immutable.SetBuilderImpl",{$ia:1,b:1,Hj:1,we:1,Vd:1,Ud:1});function t1(a){this.Qk=this.Dd=0;this.Gg=null;this.Nf=0;this.dn=this.hi=null;this.jG=0;wq(this,a);this.jG=0}t1.prototype=new yq;t1.prototype.constructor=t1;e=t1.prototype;e.w=function(){return this};e.k=function(){return!this.v()};e.bh=function(a){return pP(this,a)};e.Pe=function(a){return rP(this,a)};e.g=function(){return"\x3citerator\x3e"};e.Lb=function(a,b,c){return Yp(this,a,b,c)}; -e.tf=function(a,b,c,d){return $p(this,a,b,c,d)};e.Ph=function(){return G(fJ(),this)};e.og=function(){return dS(rt(),this)};e.Oh=function(a){return aq(this,a)};e.L=function(){return-1};e.p=function(){return this.jG};e.s=function(){if(!this.v())throw MP();this.jG=this.Gg.Zb(this.Dd);this.Dd=1+this.Dd|0;return this};e.$classData=x({aja:0},!1,"scala.collection.immutable.SetHashIterator",{aja:1,yA:1,b:1,ab:1,I:1,K:1}); -function u1(a){this.Qk=this.Dd=0;this.Gg=null;this.Nf=0;this.dn=this.hi=null;wq(this,a)}u1.prototype=new yq;u1.prototype.constructor=u1;e=u1.prototype;e.w=function(){return this};e.k=function(){return!this.v()};e.bh=function(a){return pP(this,a)};e.Pe=function(a){return rP(this,a)};e.g=function(){return"\x3citerator\x3e"};e.Lb=function(a,b,c){return Yp(this,a,b,c)};e.tf=function(a,b,c,d){return $p(this,a,b,c,d)};e.Ph=function(){return G(fJ(),this)};e.og=function(){return dS(rt(),this)}; -e.Oh=function(a){return aq(this,a)};e.L=function(){return-1};e.s=function(){if(!this.v())throw MP();var a=this.Gg.fd(this.Dd);this.Dd=1+this.Dd|0;return a};e.$classData=x({bja:0},!1,"scala.collection.immutable.SetIterator",{bja:1,yA:1,b:1,ab:1,I:1,K:1});function v1(a){this.hg=0;this.en=null;this.Hg=0;this.Np=this.Mp=null;Bq(this,a)}v1.prototype=new Dq;v1.prototype.constructor=v1;e=v1.prototype;e.w=function(){return this};e.k=function(){return!this.v()};e.bh=function(a){return pP(this,a)}; -e.Pe=function(a){return rP(this,a)};e.g=function(){return"\x3citerator\x3e"};e.Lb=function(a,b,c){return Yp(this,a,b,c)};e.tf=function(a,b,c,d){return $p(this,a,b,c,d)};e.Ph=function(){return G(fJ(),this)};e.og=function(){return dS(rt(),this)};e.Oh=function(a){return aq(this,a)};e.L=function(){return-1};e.s=function(){if(!this.v())throw MP();var a=this.en.fd(this.hg);this.hg=-1+this.hg|0;return a};e.$classData=x({eja:0},!1,"scala.collection.immutable.SetReverseIterator",{eja:1,HR:1,b:1,ab:1,I:1,K:1}); -function w1(){this.YR=0;this.ZR=null;x1=this;try{var a=Ii().mp("scala.collection.immutable.Vector.defaultApplyPreferredMaxLength","250");var b=Gq(Hq(),a,10)}catch(c){throw c;}this.YR=b;this.ZR=new n1(pr(),0,0)}w1.prototype=new t;w1.prototype.constructor=w1;e=w1.prototype;e.hf=function(a){return SP(0,a)}; -function SP(a,b){if(b instanceof J1)return b;a=b.L();if(0===a)return pr();if(0=a){a:{if(b instanceof K1){var c=b.Jd();if(null!==c&&c.c(m(xb))){b=b.Ok;break a}}Gr(b)?(a=new v(a),b.Lb(a,0,2147483647),b=a):(a=new v(a),b.w().Lb(a,0,2147483647),b=a)}return new qr(b)}return nQ(new mQ,b).Dg()}e.si=function(a,b){return pY(this,a,b)};e.ai=function(a,b){return oY(this,a,b)};e.gb=function(){return new mQ};e.sb=function(a){return SP(0,a)};e.mc=function(){return pr()}; -e.$classData=x({mja:0},!1,"scala.collection.immutable.Vector$",{mja:1,b:1,Jp:1,hh:1,Be:1,d:1});var x1;function yt(){x1||(x1=new w1);return x1}function L1(a,b){var c=b.a.length;if(0h?-h|0:h)|0;1===g?L1(a,f):Cr(Q(),-2+g|0,f,new C((l=>n=>{L1(l,n)})(a)));d=1+d|0}return a} -function M1(a){var b=32+a.af|0,c=b^a.af;a.af=b;a.ic=0;if(1024>c)1===a.fe&&(a.Xb=new (y(y(xb)).M)(32),a.Xb.a[0]=a.$c,a.fe=1+a.fe|0),a.$c=new v(32),a.Xb.a[31&(b>>>5|0)]=a.$c;else if(32768>c)2===a.fe&&(a.Gc=new (y(y(y(xb))).M)(32),a.Gc.a[0]=a.Xb,a.fe=1+a.fe|0),a.$c=new v(32),a.Xb=new (y(y(xb)).M)(32),a.Xb.a[31&(b>>>5|0)]=a.$c,a.Gc.a[31&(b>>>10|0)]=a.Xb;else if(1048576>c)3===a.fe&&(a.vd=new (y(y(y(y(xb)))).M)(32),a.vd.a[0]=a.Gc,a.fe=1+a.fe|0),a.$c=new v(32),a.Xb=new (y(y(xb)).M)(32),a.Gc=new (y(y(y(xb))).M)(32), -a.Xb.a[31&(b>>>5|0)]=a.$c,a.Gc.a[31&(b>>>10|0)]=a.Xb,a.vd.a[31&(b>>>15|0)]=a.Gc;else if(33554432>c)4===a.fe&&(a.ne=new (y(y(y(y(y(xb))))).M)(32),a.ne.a[0]=a.vd,a.fe=1+a.fe|0),a.$c=new v(32),a.Xb=new (y(y(xb)).M)(32),a.Gc=new (y(y(y(xb))).M)(32),a.vd=new (y(y(y(y(xb)))).M)(32),a.Xb.a[31&(b>>>5|0)]=a.$c,a.Gc.a[31&(b>>>10|0)]=a.Xb,a.vd.a[31&(b>>>15|0)]=a.Gc,a.ne.a[31&(b>>>20|0)]=a.vd;else if(1073741824>c)5===a.fe&&(a.pf=new (y(y(y(y(y(y(xb)))))).M)(64),a.pf.a[0]=a.ne,a.fe=1+a.fe|0),a.$c=new v(32),a.Xb= -new (y(y(xb)).M)(32),a.Gc=new (y(y(y(xb))).M)(32),a.vd=new (y(y(y(y(xb)))).M)(32),a.ne=new (y(y(y(y(y(xb))))).M)(32),a.Xb.a[31&(b>>>5|0)]=a.$c,a.Gc.a[31&(b>>>10|0)]=a.Xb,a.vd.a[31&(b>>>15|0)]=a.Gc,a.ne.a[31&(b>>>20|0)]=a.vd,a.pf.a[31&(b>>>25|0)]=a.ne;else throw fm("advance1("+b+", "+c+"): a1\x3d"+a.$c+", a2\x3d"+a.Xb+", a3\x3d"+a.Gc+", a4\x3d"+a.vd+", a5\x3d"+a.ne+", a6\x3d"+a.pf+", depth\x3d"+a.fe);} -function mQ(){this.$c=this.Xb=this.Gc=this.vd=this.ne=this.pf=null;this.fe=this.nh=this.af=this.ic=0;this.$c=new v(32);this.nh=this.af=this.ic=0;this.fe=1}mQ.prototype=new t;mQ.prototype.constructor=mQ;e=mQ.prototype;e.qc=function(){};function O1(a,b){a.fe=1;var c=b.a.length;a.ic=31&c;a.af=c-a.ic|0;a.$c=32===b.a.length?b:em(hm(),b,0,32);0===a.ic&&0=a){if(32===b)return new qr(this.$c);var c=this.$c;return new qr(Yl(hm(),c,b))}if(1024>=a){var d=31&(-1+a|0),f=(-1+a|0)>>>5|0,g=this.Xb,h=em(hm(),g,1,f),l=this.Xb.a[0],n=this.Xb.a[f],r=1+d|0,u=n.a.length===r?n:Yl(hm(),n,r);return new rr(l,32-this.nh|0,h,u,b)}if(32768>=a){var w=31&(-1+a|0),A=31&((-1+a|0)>>>5|0),M=(-1+a|0)>>>10|0,T=this.Gc,V=em(hm(),T,1,M),ha=this.Gc.a[0],ra=ha.a.length,ea=em(hm(),ha,1,ra),wa=this.Gc.a[0].a[0], -xa=this.Gc.a[M],Ta=Yl(hm(),xa,A),gb=this.Gc.a[M].a[A],mb=1+w|0,Zb=gb.a.length===mb?gb:Yl(hm(),gb,mb),lb=wa.a.length;return new sr(wa,lb,ea,lb+(ea.a.length<<5)|0,V,Ta,Zb,b)}if(1048576>=a){var Ab=31&(-1+a|0),za=31&((-1+a|0)>>>5|0),kc=31&((-1+a|0)>>>10|0),La=(-1+a|0)>>>15|0,Ja=this.vd,ya=em(hm(),Ja,1,La),Ve=this.vd.a[0],fh=Ve.a.length,ad=em(hm(),Ve,1,fh),sb=this.vd.a[0].a[0],Dd=sb.a.length,Eb=em(hm(),sb,1,Dd),Md=this.vd.a[0].a[0].a[0],Jf=this.vd.a[La],ns=Yl(hm(),Jf,kc),os=this.vd.a[La].a[kc],ps=Yl(hm(), -os,za),lg=this.vd.a[La].a[kc].a[za],hk=1+Ab|0,qs=lg.a.length===hk?lg:Yl(hm(),lg,hk),rs=Md.a.length,Wn=rs+(Eb.a.length<<5)|0;return new tr(Md,rs,Eb,Wn,ad,Wn+(ad.a.length<<10)|0,ya,ns,ps,qs,b)}if(33554432>=a){var ik=31&(-1+a|0),Xn=31&((-1+a|0)>>>5|0),Pc=31&((-1+a|0)>>>10|0),fj=31&((-1+a|0)>>>15|0),gh=(-1+a|0)>>>20|0,Xh=this.ne,El=em(hm(),Xh,1,gh),ss=this.ne.a[0],Fl=ss.a.length,jk=em(hm(),ss,1,Fl),Yn=this.ne.a[0].a[0],Zn=Yn.a.length,Gl=em(hm(),Yn,1,Zn),Hl=this.ne.a[0].a[0].a[0],ts=Hl.a.length,gj=em(hm(), -Hl,1,ts),Il=this.ne.a[0].a[0].a[0].a[0],us=this.ne.a[gh],vs=Yl(hm(),us,fj),$n=this.ne.a[gh].a[fj],ws=Yl(hm(),$n,Pc),ez=this.ne.a[gh].a[fj].a[Pc],xs=Yl(hm(),ez,Xn),Jl=this.ne.a[gh].a[fj].a[Pc].a[Xn],ao=1+ik|0,ze=Jl.a.length===ao?Jl:Yl(hm(),Jl,ao),Nd=Il.a.length,Kf=Nd+(gj.a.length<<5)|0,hj=Kf+(Gl.a.length<<10)|0;return new ur(Il,Nd,gj,Kf,Gl,hj,jk,hj+(jk.a.length<<15)|0,El,vs,ws,xs,ze,b)}var ij=31&(-1+a|0),bo=31&((-1+a|0)>>>5|0),co=31&((-1+a|0)>>>10|0),kk=31&((-1+a|0)>>>15|0),mg=31&((-1+a|0)>>>20|0), -Yh=(-1+a|0)>>>25|0,eo=this.pf,ys=em(hm(),eo,1,Yh),Lf=this.pf.a[0],lk=Lf.a.length,fo=em(hm(),Lf,1,lk),jj=this.pf.a[0].a[0],mk=jj.a.length,go=em(hm(),jj,1,mk),Kl=this.pf.a[0].a[0].a[0],zs=Kl.a.length,Ll=em(hm(),Kl,1,zs),nk=this.pf.a[0].a[0].a[0].a[0],ho=nk.a.length,Ml=em(hm(),nk,1,ho),Nl=this.pf.a[0].a[0].a[0].a[0].a[0],fz=this.pf.a[Yh],As=Yl(hm(),fz,mg),Bs=this.pf.a[Yh].a[mg],io=Yl(hm(),Bs,kk),Cs=this.pf.a[Yh].a[mg].a[kk],jo=Yl(hm(),Cs,co),nh=this.pf.a[Yh].a[mg].a[kk].a[co],bD=Yl(hm(),nh,bo),ii=this.pf.a[Yh].a[mg].a[kk].a[co].a[bo], -Mo=1+ij|0,dD=ii.a.length===Mo?ii:Yl(hm(),ii,Mo),XM=Nl.a.length,YM=XM+(Ml.a.length<<5)|0,tu=YM+(Ll.a.length<<10)|0,No=tu+(go.a.length<<15)|0;return new vr(Nl,XM,Ml,YM,Ll,tu,go,No,fo,No+(fo.a.length<<20)|0,ys,As,io,jo,bD,dD,b)};e.g=function(){return"VectorBuilder(len1\x3d"+this.ic+", lenRest\x3d"+this.af+", offset\x3d"+this.nh+", depth\x3d"+this.fe+")"};e.yb=function(){return this.Dg()};e.wc=function(a){return nQ(this,a)};e.Wa=function(a){return oQ(this,a)}; -e.$classData=x({uja:0},!1,"scala.collection.immutable.VectorBuilder",{uja:1,b:1,Hj:1,we:1,Vd:1,Ud:1});function Q1(){}Q1.prototype=new t;Q1.prototype.constructor=Q1;e=Q1.prototype;e.hf=function(a){return BS(a)};function BS(a){var b=a.L();if(0<=b){var c=new v(16>>la(b)|0)<<1;if(!(0<=a))throw fm("requirement failed: ArrayDeque too big - cannot allocate ArrayDeque of length "+b);return new v(16((b.ad-b.Yb|0)&(-1+b.Ta.a.length|0))&&a>=b.Ta.a.length&&b2(b,a)}; -Z1.prototype.$classData=x({Jja:0},!1,"scala.collection.mutable.ArrayDeque$$anon$1",{Jja:1,qw:1,b:1,we:1,Vd:1,Ud:1});function c2(){this.fg=null;this.fg=d2()}c2.prototype=new dY;c2.prototype.constructor=c2;c2.prototype.$classData=x({Wja:0},!1,"scala.collection.mutable.Buffer$",{Wja:1,JF:1,b:1,hh:1,Be:1,d:1});var e2;function FJ(){e2||(e2=new c2);return e2}function dR(a,b){this.Df=null;rR(this,bR(new cR,a,b))}dR.prototype=new TY;dR.prototype.constructor=dR;dR.prototype.qc=function(a){this.Df.qc(a)}; -dR.prototype.$classData=x({cka:0},!1,"scala.collection.mutable.HashMap$$anon$6",{cka:1,qw:1,b:1,we:1,Vd:1,Ud:1});function f2(a,b){if(null===b)throw K(L(),null);a.rw=b;a.un=0;a.al=null;a.sw=b.Nb.a.length}function g2(){this.un=0;this.al=null;this.sw=0;this.rw=null}g2.prototype=new WX;g2.prototype.constructor=g2;function h2(){}h2.prototype=g2.prototype; -g2.prototype.v=function(){if(null!==this.al)return!0;for(;this.und){b.qs=1+d|0;b.ps=!0;try{a.wp()}catch(h){if(f=Yu(L(),h),null!==f)if(kv(ov(),f))fs().Xz.t(f);else throw K(L(),f);else throw h;}finally{b.qs= -c,b.ps=!0}}else a=new wR(this,a),b.qs=a,b.ps=!0,a.wp(),b.qs=c,b.ps=!0};x2.prototype.aF=function(a){fs().Xz.t(a)};x2.prototype.$classData=x({Jda:0},!1,"scala.concurrent.ExecutionContext$parasitic$",{Jda:1,b:1,HQ:1,EQ:1,WP:1,CQ:1});var y2;function Ss(){y2||(y2=new x2);return y2}function z2(){}z2.prototype=new ZY;z2.prototype.constructor=z2;function A2(){}A2.prototype=z2.prototype;z2.prototype.uS=function(){throw fm("toNanos not allowed on infinite Durations");}; -function B2(a,b){var c=b.m,d=b.r;d=0!==c?~d:-d|0;var f=a.vj,g=f.r;return(d===g?(-2147483648^(-c|0))<=(-2147483648^f.m):d=(-2147483648^a):0>b));if(!a)throw fm("requirement failed: Duration is limited to +-(2^63-1)ns (ca. 292 years)"); -}UJ.prototype=new ZY;UJ.prototype.constructor=UJ;e=UJ.prototype;e.uS=function(){return this.Ap.Qh(this.vj)};e.g=function(){var a=this.vj+" ",b=TJ().PQ.t(this.Ap),c=this.vj;return a+(b+(1===c.m&&0===c.r?"":"s"))};e.Gm=function(a){if(a instanceof UJ){var b=this.Ap.Qh(this.vj),c=new C2(new p(b.m,b.r));b=a.Ap.Qh(a.vj);a=c.ng;c=fb(new p(a.m,a.r));a=c.m;c=c.r;var d=fb(new p(b.m,b.r));b=d.m;d=d.r;return nI(tj(),a,c,b,d)}return-a.Gm(this)|0}; -e.c=function(a){if(a instanceof UJ){var b=this.Ap.Qh(this.vj);a=a.Ap.Qh(a.vj);return b.m===a.m&&b.r===a.r}return this===a};e.p=function(){return this.Ap.Qh(this.vj).m};e.kf=function(a){return this.Gm(a)};e.$classData=x({Wda:0},!1,"scala.concurrent.duration.FiniteDuration",{Wda:1,lF:1,b:1,d:1,Eg:1,ob:1});function D2(a,b){return Rh(a.Md(),b)?new dd(b):H()}var F2=function E2(a,b){return Th(b)?"Array["+E2(a,Uh(b))+"]":b.Ld.name};function eu(a){this.oS=0;this.Ala=a;this.ZA=0;this.oS=a.B()} -eu.prototype=new WX;eu.prototype.constructor=eu;eu.prototype.v=function(){return this.ZAa=>qc(new rc,a.qi))(this)))};e.si=function(a,b){return pY(this,a,b)};e.ai=function(a,b){return oY(this,a,b)};e.sb=function(a){return L2(this,a)};e.mc=function(){var a=new rc;qc(a,[]);return a};e.$classData=x({ela:0},!1,"scala.scalajs.runtime.WrappedVarArgs$",{ela:1,b:1,Jp:1,hh:1,Be:1,d:1});var M2;function N2(){M2||(M2=new K2);return M2}function ms(a){this.Fh=a}ms.prototype=new $Y;ms.prototype.constructor=ms;e=ms.prototype; -e.Ja=function(){throw K(L(),this.Fh);};e.Ba=function(){};e.tQ=function(a){var b=qu();try{var c=a.Ic(this.Fh,new C(((d,f)=>()=>f)(this,b)));return b!==c?new Is(c):this}catch(d){a=Yu(L(),d);if(null!==a){if(null!==a&&(b=mv(ov(),a),!b.k()))return a=b.Ja(),new ms(a);throw K(L(),a);}throw d;}}; -e.sQ=function(a){var b=qu();try{var c=a.Ic(this.Fh,new C(((d,f)=>()=>f)(this,b)));return b!==c?c:this}catch(d){a=Yu(L(),d);if(null!==a){if(null!==a&&(b=mv(ov(),a),!b.k()))return a=b.Ja(),new ms(a);throw K(L(),a);}throw d;}};e.A=function(){return"Failure"};e.B=function(){return 1};e.C=function(a){return 0===a?this.Fh:R(S(),a)};e.p=function(){return tv(this)};e.g=function(){return du(this)};e.c=function(a){if(this===a)return!0;if(a instanceof ms){var b=this.Fh;a=a.Fh;return null===b?null===a:b.c(a)}return!1}; -e.$classData=x({dfa:0},!1,"scala.util.Failure",{dfa:1,hfa:1,b:1,z:1,o:1,d:1});function Is(a){this.Ji=a}Is.prototype=new $Y;Is.prototype.constructor=Is;e=Is.prototype;e.Ja=function(){return this.Ji};e.Ba=function(a){a.t(this.Ji)};e.tQ=function(){return this};e.sQ=function(){return this};e.A=function(){return"Success"};e.B=function(){return 1};e.C=function(a){return 0===a?this.Ji:R(S(),a)};e.p=function(){return tv(this)};e.g=function(){return du(this)}; -e.c=function(a){return this===a?!0:a instanceof Is?N(O(),this.Ji,a.Ji):!1};e.$classData=x({gfa:0},!1,"scala.util.Success",{gfa:1,hfa:1,b:1,z:1,o:1,d:1});function D_(a,b){this.zm=a;this.Ir=b}D_.prototype=new t;D_.prototype.constructor=D_;e=D_.prototype;e.g=function(){return this.zm instanceof D_?"("+this.zm+") :: "+this.Ir:this.zm+" :: "+this.Ir};e.A=function(){return"::"};e.B=function(){return 2};e.C=function(a){switch(a){case 0:return this.zm;case 1:return this.Ir;default:return R(S(),a)}};e.p=function(){return tv(this)}; -e.c=function(a){if(this===a)return!0;if(a instanceof D_){var b=this.zm,c=a.zm;if(N(O(),b,c))return b=this.Ir,a=a.Ir,null===b?null===a:b.c(a)}return!1};e.$classData=x({R7:0},!1,"shapeless.$colon$colon",{R7:1,b:1,UN:1,z:1,o:1,d:1});function sL(a,b){this.f8=b}sL.prototype=new FR;sL.prototype.constructor=sL;e=sL.prototype;e.Pc=function(a,b){if(a instanceof qw)throw new DS(a.Cu,this.f8,a);return b.t(a)};e.Rc=function(a){return a instanceof qw};e.je=function(a){return this.Rc(a)}; -e.Ic=function(a,b){return this.Pc(a,b)};e.$classData=x({e8:0},!1,"ujson.CharParser$$anonfun$reject$1",{e8:1,Mh:1,b:1,da:1,wa:1,d:1});function EL(a,b){this.Lr=a;this.pu=b}EL.prototype=new t;EL.prototype.constructor=EL;e=EL.prototype;e.Ah=function(){return this.Lr};e.A=function(){return"Arr"};e.B=function(){return 2};e.C=function(a){switch(a){case 0:return this.Lr;case 1:return this.pu;default:return R(S(),a)}}; -e.p=function(){var a=Pa("Arr");a=S().j(-889275714,a);var b=this.Lr;a=S().j(a,b);b=this.pu;b=ku(S(),b);a=S().j(a,b);return S().ca(a,2)};e.g=function(){return du(this)};e.c=function(a){if(this===a)return!0;if(a instanceof EL&&this.Lr===a.Lr){var b=this.pu;a=a.pu;return null===b?null===a:b.c(a)}return!1};e.$classData=x({j8:0},!1,"ujson.IndexedValue$Arr",{j8:1,b:1,Zo:1,z:1,o:1,d:1});function AL(a){this.Mr=a}AL.prototype=new t;AL.prototype.constructor=AL;e=AL.prototype;e.Ah=function(){return this.Mr}; -e.A=function(){return"False"};e.B=function(){return 1};e.C=function(a){return 0===a?this.Mr:R(S(),a)};e.p=function(){var a=Pa("False");a=S().j(-889275714,a);var b=this.Mr;a=S().j(a,b);return S().ca(a,1)};e.g=function(){return du(this)};e.c=function(a){return this===a?!0:a instanceof AL?this.Mr===a.Mr:!1};e.$classData=x({p8:0},!1,"ujson.IndexedValue$False",{p8:1,b:1,Zo:1,z:1,o:1,d:1});function yL(a){this.Nr=a}yL.prototype=new t;yL.prototype.constructor=yL;e=yL.prototype;e.Ah=function(){return this.Nr}; -e.A=function(){return"Null"};e.B=function(){return 1};e.C=function(a){return 0===a?this.Nr:R(S(),a)};e.p=function(){var a=Pa("Null");a=S().j(-889275714,a);var b=this.Nr;a=S().j(a,b);return S().ca(a,1)};e.g=function(){return du(this)};e.c=function(a){return this===a?!0:a instanceof yL?this.Nr===a.Nr:!1};e.$classData=x({q8:0},!1,"ujson.IndexedValue$Null",{q8:1,b:1,Zo:1,z:1,o:1,d:1});function CL(a,b,c,d){this.Pr=a;this.tu=b;this.ru=c;this.su=d}CL.prototype=new t;CL.prototype.constructor=CL;e=CL.prototype; -e.Ah=function(){return this.Pr};e.A=function(){return"Num"};e.B=function(){return 4};e.C=function(a){switch(a){case 0:return this.Pr;case 1:return this.tu;case 2:return this.ru;case 3:return this.su;default:return R(S(),a)}};e.p=function(){var a=Pa("Num");a=S().j(-889275714,a);var b=this.Pr;a=S().j(a,b);b=this.tu;b=ku(S(),b);a=S().j(a,b);b=this.ru;a=S().j(a,b);b=this.su;a=S().j(a,b);return S().ca(a,4)};e.g=function(){return du(this)}; -e.c=function(a){if(this===a)return!0;if(a instanceof CL&&this.Pr===a.Pr&&this.ru===a.ru&&this.su===a.su){var b=this.tu;a=a.tu;return null===b?null===a:Ka(b,a)}return!1};e.$classData=x({r8:0},!1,"ujson.IndexedValue$Num",{r8:1,b:1,Zo:1,z:1,o:1,d:1});function DL(a,b){this.Or=a;this.qu=b}DL.prototype=new t;DL.prototype.constructor=DL;e=DL.prototype;e.Ah=function(){return this.Or};e.A=function(){return"NumRaw"};e.B=function(){return 2}; -e.C=function(a){switch(a){case 0:return this.Or;case 1:return this.qu;default:return R(S(),a)}};e.p=function(){var a=Pa("NumRaw");a=S().j(-889275714,a);var b=this.Or;a=S().j(a,b);b=this.qu;b=iu(S(),b);a=S().j(a,b);return S().ca(a,2)};e.g=function(){return du(this)};e.c=function(a){return this===a?!0:a instanceof DL?this.Or===a.Or&&this.qu===a.qu:!1};e.$classData=x({s8:0},!1,"ujson.IndexedValue$NumRaw",{s8:1,b:1,Zo:1,z:1,o:1,d:1});function HL(a,b){this.Qr=a;this.$o=b}HL.prototype=new t; -HL.prototype.constructor=HL;e=HL.prototype;e.Ah=function(){return this.Qr};e.A=function(){return"Obj"};e.B=function(){return 2};e.C=function(a){switch(a){case 0:return this.Qr;case 1:return this.$o;default:return R(S(),a)}};e.p=function(){var a=Pa("Obj");a=S().j(-889275714,a);var b=this.Qr;a=S().j(a,b);b=this.$o;b=ku(S(),b);a=S().j(a,b);return S().ca(a,2)};e.g=function(){return du(this)}; -e.c=function(a){if(this===a)return!0;if(a instanceof HL&&this.Qr===a.Qr){var b=this.$o;a=a.$o;return null===b?null===a:b.c(a)}return!1};e.$classData=x({t8:0},!1,"ujson.IndexedValue$Obj",{t8:1,b:1,Zo:1,z:1,o:1,d:1});function BL(a,b){this.Rr=a;this.ap=b}BL.prototype=new t;BL.prototype.constructor=BL;e=BL.prototype;e.Ah=function(){return this.Rr};e.A=function(){return"Str"};e.B=function(){return 2};e.C=function(a){switch(a){case 0:return this.Rr;case 1:return this.ap;default:return R(S(),a)}}; -e.p=function(){var a=Pa("Str");a=S().j(-889275714,a);var b=this.Rr;a=S().j(a,b);b=this.ap;b=ku(S(),b);a=S().j(a,b);return S().ca(a,2)};e.g=function(){return du(this)};e.c=function(a){if(this===a)return!0;if(a instanceof BL&&this.Rr===a.Rr){var b=this.ap;a=a.ap;return null===b?null===a:Ka(b,a)}return!1};e.$classData=x({u8:0},!1,"ujson.IndexedValue$Str",{u8:1,b:1,Zo:1,z:1,o:1,d:1});function zL(a){this.Sr=a}zL.prototype=new t;zL.prototype.constructor=zL;e=zL.prototype;e.Ah=function(){return this.Sr}; -e.A=function(){return"True"};e.B=function(){return 1};e.C=function(a){return 0===a?this.Sr:R(S(),a)};e.p=function(){var a=Pa("True");a=S().j(-889275714,a);var b=this.Sr;a=S().j(a,b);return S().ca(a,1)};e.g=function(){return du(this)};e.c=function(a){return this===a?!0:a instanceof zL?this.Sr===a.Sr:!1};e.$classData=x({v8:0},!1,"ujson.IndexedValue$True",{v8:1,b:1,Zo:1,z:1,o:1,d:1});function $x(a,b){this.by=a;this.cy=b}$x.prototype=new t;$x.prototype.constructor=$x;e=$x.prototype; -e.Jj=function(a){return this.cy.EG(this.by,a)};e.A=function(){return"fromTransformer"};e.B=function(){return 2};e.C=function(a){switch(a){case 0:return this.by;case 1:return this.cy;default:return R(S(),a)}};e.p=function(){return tv(this)};e.g=function(){return du(this)};e.c=function(a){if(this===a)return!0;if(a instanceof $x){var b=this.by,c=a.by;return N(O(),b,c)?this.cy===a.cy:!1}return!1};e.$classData=x({D8:0},!1,"ujson.Readable$fromTransformer",{D8:1,b:1,Bm:1,z:1,o:1,d:1}); -function O2(){this.bO=null;P2=this;iZ||(iZ=new hZ);OL||(OL=new NL);WK();gZ||(gZ=new eZ);Jv||(Jv=new Iv);this.bO=Q2();R2();S2()}O2.prototype=new t;O2.prototype.constructor=O2;e=O2.prototype;e.cd=function(a){return new fZ(a)};e.sc=function(a){return new fZ(a)};e.dd=function(a,b){return JL(this,a,b)};e.nd=function(a,b){return KL(this,a,b)};e.kd=function(a,b,c,d){return LL(this,a,b,c,d)};e.md=function(a,b,c,d,f){return ML(this,a,b,c,d,f)};e.ld=function(a){a=String.fromCharCode(a);return new GW(a)}; -function hS(a,b,c){if(S2()===b)return c.dc(-1);if(Q2()===b)return c.tc(-1);if(R2()===b)return c.rc(-1);if(b instanceof GW)return c.l(b.uu,-1);if(b instanceof fZ)return c.cc(b.Tr,-1);if(b instanceof $K)return aZ(a,c,b.Jr);if(b instanceof eS)return bZ(a,c,b.Ur);throw new D(b);}function T2(a){var b=new C((()=>d=>new $K(d))(a)),c=AS();return new KR(a,b,new VO(c))}function U2(a){var b=new C((()=>d=>new eS(d))(a)),c=uR();return new LR(a,b,new zP(c))}e.l=function(a){return new GW(Ua(a))};e.cc=function(a){return new fZ(a)}; -e.Ob=function(a,b,c){-1!==b||-1!==c?(a=Ua(a),a=XE($E(),a)):(a=Gw(Jw(),a,b,c),a=Wt(tj(),a.m,a.r));return new fZ(a)};e.tc=function(){return this.bO};e.rc=function(){return R2()};e.dc=function(){return S2()};e.Z=function(){return U2(this)};e.vb=function(){return T2(this)};e.EG=function(a,b){return hS(this,a,b)};e.$classData=x({L8:0},!1,"ujson.Value$",{L8:1,b:1,Ina:1,$N:1,ZN:1,ha:1});var P2;function Mv(){P2||(P2=new O2);return P2} -class Tv extends pg{constructor(a,b){super();yF(this,a,b)}$h(){return gv(this)}}Tv.prototype.$classData=x({z9:0},!1,"upickle.core.TraceVisitor$TraceException",{z9:1,Za:1,Ka:1,b:1,d:1,an:1});function V2(a){var b=U();if(null===b)throw K(L(),null);a.Da=b}function W2(){this.Da=null}W2.prototype=new t;W2.prototype.constructor=W2;function X2(){}e=X2.prototype=W2.prototype;e.dc=function(){return null};e.tc=function(){return eM(this)};e.rc=function(){return fM(this)};e.l=function(){return gM(this)}; -e.Ob=function(){return hM(this)};e.vb=function(){return jM(this)};e.cc=function(){return kM(this)};e.cd=function(){return lM(this)};e.sc=function(){return mM(this)};e.dd=function(){return nM(this)};e.nd=function(){return oM(this)};e.ld=function(){return pM(this)};e.kd=function(){return qM(this)};e.md=function(){return rM(this)};e.nc=function(){return"expected dictionary"};e.Je=function(){return this.Da}; -function Y2(a,b){this.wD=this.qf=null;this.vD=b;b=Z2(a.Je());if(null===b)throw K(L(),null);this.wD=b;this.qf=a}Y2.prototype=new oZ;Y2.prototype.constructor=Y2;Y2.prototype.$classData=x({F9:0},!1,"upickle.core.Types$Reader$$anon$4",{F9:1,Wna:1,Xna:1,b:1,ha:1,ka:1});function HM(a,b,c){this.oO=null;this.$r=b;this.V9=c;if(null===a)throw K(L(),null);this.oO=a}HM.prototype=new t;HM.prototype.constructor=HM;e=HM.prototype;e.dc=function(){return null};e.tc=function(){return eM(this)};e.rc=function(){return fM(this)}; -e.l=function(){return gM(this)};e.Ob=function(){return hM(this)};e.Z=function(){return iM(this)};e.cc=function(){return kM(this)};e.cd=function(){return lM(this)};e.sc=function(){return mM(this)};e.dd=function(){return nM(this)};e.nd=function(){return oM(this)};e.ld=function(){return pM(this)};e.kd=function(){return qM(this)};e.md=function(){return rM(this)};e.nc=function(){return"expected sequence"};e.vb=function(){return new PS(this)};e.Je=function(){return this.oO}; -e.$classData=x({T9:0},!1,"upickle.core.Types$TupleNReader",{T9:1,b:1,ra:1,ka:1,ha:1,qa:1});function GL(a){this.d$=a}GL.prototype=new FR;GL.prototype.constructor=GL;e=GL.prototype;e.Pc=function(a,b){if(a instanceof qw)throw new DS(a.Cu,this.d$,a);return b.t(a)};e.Rc=function(a){return a instanceof qw};e.je=function(a){return this.Rc(a)};e.Ic=function(a,b){return this.Pc(a,b)};e.$classData=x({c$:0},!1,"upickle.core.Util$$anonfun$reject$1",{c$:1,Mh:1,b:1,da:1,wa:1,d:1}); -function $2(a){this.CO=null;if(null===a)throw K(L(),null);this.CO=a}$2.prototype=new t;$2.prototype.constructor=$2;e=$2.prototype;e.dc=function(){return null};e.tc=function(){return eM(this)};e.rc=function(){return fM(this)};e.l=function(){return gM(this)};e.Ob=function(){return hM(this)};e.vb=function(){return jM(this)};e.cc=function(){return kM(this)};e.cd=function(){return lM(this)};e.sc=function(){return mM(this)};e.dd=function(){return nM(this)};e.nd=function(){return oM(this)};e.ld=function(){return pM(this)}; -e.kd=function(){return qM(this)};e.md=function(){return rM(this)};e.nc=function(){return"expected unit"};e.Z=function(){return new QS(this)};e.Je=function(){return this.CO};e.$classData=x({L$:0},!1,"upickle.implicits.Readers$$anon$1",{L$:1,b:1,ra:1,ka:1,ha:1,qa:1});function a3(a){this.vO=null;if(null===a)throw K(L(),null);this.vO=a}a3.prototype=new t;a3.prototype.constructor=a3;e=a3.prototype;e.dc=function(){return null};e.tc=function(){return eM(this)};e.rc=function(){return fM(this)};e.Z=function(){return iM(this)}; -e.vb=function(){return jM(this)};e.cd=function(){return lM(this)};e.kd=function(){return qM(this)};e.md=function(){return rM(this)};e.nc=function(){return"expected char"};e.Je=function(){return this.vO};e.Ob=function(a,b,c){a=65535&Gw(Jw(),a,b,c).m;return q(a)};e.cc=function(a){return q(65535&Ya(a))};e.nd=function(a){return q(65535&a.m)};e.dd=function(a){return q(65535&a.m)};e.sc=function(a){return q(65535&a)};e.ld=function(a){return q(a)};e.l=function(a){return q(Ia(a,0))}; -e.$classData=x({N$:0},!1,"upickle.implicits.Readers$$anon$10",{N$:1,b:1,ra:1,ka:1,ha:1,qa:1});function b3(a){this.wO=null;if(null===a)throw K(L(),null);this.wO=a}b3.prototype=new t;b3.prototype.constructor=b3;e=b3.prototype;e.dc=function(){return null};e.tc=function(){return eM(this)};e.rc=function(){return fM(this)};e.Z=function(){return iM(this)};e.vb=function(){return jM(this)};e.cd=function(){return lM(this)};e.ld=function(){return pM(this)};e.kd=function(){return qM(this)};e.md=function(){return rM(this)}; -e.nc=function(){return"expected number"};e.Je=function(){return this.wO};e.Ob=function(a,b,c){return Gw(Jw(),a,b,c)};e.cc=function(a){var b=tj();a=ju(b,a);return new p(a,b.sa)};e.nd=function(a){return a};e.dd=function(a){return a};e.sc=function(a){return new p(a,a>>31)};e.l=function(a){return Hw(Jw(),a,0,Ra(a))};e.$classData=x({O$:0},!1,"upickle.implicits.Readers$$anon$11",{O$:1,b:1,ra:1,ka:1,ha:1,qa:1}); -function c3(a,b,c){this.xO=this.yO=this.OD=null;if(null===a)throw K(L(),null);this.OD=a;this.yO=b;this.xO=c}c3.prototype=new t;c3.prototype.constructor=c3;e=c3.prototype;e.dc=function(){return null};e.tc=function(){return eM(this)};e.rc=function(){return fM(this)};e.l=function(){return gM(this)};e.Ob=function(){return hM(this)};e.vb=function(){return jM(this)};e.cc=function(){return kM(this)};e.cd=function(){return lM(this)};e.sc=function(){return mM(this)};e.dd=function(){return nM(this)};e.nd=function(){return oM(this)}; -e.ld=function(){return pM(this)};e.kd=function(){return qM(this)};e.md=function(){return rM(this)};e.Z=function(){return new RS(this)};e.nc=function(){return"expected map"};e.Je=function(){return this.OD};e.$classData=x({P$:0},!1,"upickle.implicits.Readers$$anon$12",{P$:1,b:1,ra:1,ka:1,ha:1,qa:1});function BU(a,b){this.BO=this.AO=null;if(null===a)throw K(L(),null);this.AO=a;this.BO=b}BU.prototype=new t;BU.prototype.constructor=BU;e=BU.prototype;e.dc=function(){return null};e.tc=function(){return eM(this)}; -e.rc=function(){return fM(this)};e.l=function(){return gM(this)};e.Ob=function(){return hM(this)};e.Z=function(){return iM(this)};e.cc=function(){return kM(this)};e.cd=function(){return lM(this)};e.sc=function(){return mM(this)};e.dd=function(){return nM(this)};e.nd=function(){return oM(this)};e.ld=function(){return pM(this)};e.kd=function(){return qM(this)};e.md=function(){return rM(this)};e.nc=function(){return"expected sequence"};e.vb=function(){return new SS(this)};e.Je=function(){return this.AO}; -e.$classData=x({R$:0},!1,"upickle.implicits.Readers$$anon$14",{R$:1,b:1,ra:1,ka:1,ha:1,qa:1});function mT(a,b,c){this.GO=this.FO=this.EO=null;if(null===a)throw K(L(),null);this.EO=a;this.FO=b;this.GO=c}mT.prototype=new t;mT.prototype.constructor=mT;e=mT.prototype;e.dc=function(){return null};e.tc=function(){return eM(this)};e.rc=function(){return fM(this)};e.l=function(){return gM(this)};e.Ob=function(){return hM(this)};e.Z=function(){return iM(this)};e.cc=function(){return kM(this)};e.cd=function(){return lM(this)}; -e.sc=function(){return mM(this)};e.dd=function(){return nM(this)};e.nd=function(){return oM(this)};e.ld=function(){return pM(this)};e.kd=function(){return qM(this)};e.md=function(){return rM(this)};e.nc=function(){return"expected sequence"};e.vb=function(){return new YS(this)};e.Je=function(){return this.EO};e.$classData=x({T$:0},!1,"upickle.implicits.Readers$$anon$20",{T$:1,b:1,ra:1,ka:1,ha:1,qa:1});function d3(a){this.HO=null;if(null===a)throw K(L(),null);this.HO=a}d3.prototype=new t; -d3.prototype.constructor=d3;e=d3.prototype;e.dc=function(){return null};e.l=function(){return gM(this)};e.Ob=function(){return hM(this)};e.Z=function(){return iM(this)};e.vb=function(){return jM(this)};e.cc=function(){return kM(this)};e.cd=function(){return lM(this)};e.sc=function(){return mM(this)};e.dd=function(){return nM(this)};e.nd=function(){return oM(this)};e.ld=function(){return pM(this)};e.kd=function(){return qM(this)};e.md=function(){return rM(this)};e.nc=function(){return"expected boolean"}; -e.Je=function(){return this.HO};e.rc=function(){return!1};e.tc=function(){return!0};e.$classData=x({V$:0},!1,"upickle.implicits.Readers$$anon$3",{V$:1,b:1,ra:1,ka:1,ha:1,qa:1});function e3(a){this.IO=null;if(null===a)throw K(L(),null);this.IO=a}e3.prototype=new t;e3.prototype.constructor=e3;e=e3.prototype;e.dc=function(){return null};e.tc=function(){return eM(this)};e.rc=function(){return fM(this)};e.Z=function(){return iM(this)};e.vb=function(){return jM(this)};e.cd=function(){return lM(this)}; -e.ld=function(){return pM(this)};e.kd=function(){return qM(this)};e.md=function(){return rM(this)};e.nc=function(){return"expected number"};e.Je=function(){return this.IO};e.Ob=function(a){a=Ua(a);return XE($E(),a)};e.cc=function(a){return a};e.nd=function(a){return Wt(tj(),a.m,a.r)};e.dd=function(a){return Wt(tj(),a.m,a.r)};e.sc=function(a){return a};e.l=function(a){a=Ua(a);return XE($E(),a)};e.$classData=x({W$:0},!1,"upickle.implicits.Readers$$anon$4",{W$:1,b:1,ra:1,ka:1,ha:1,qa:1}); -function f3(a){this.JO=null;if(null===a)throw K(L(),null);this.JO=a}f3.prototype=new t;f3.prototype.constructor=f3;e=f3.prototype;e.dc=function(){return null};e.tc=function(){return eM(this)};e.rc=function(){return fM(this)};e.l=function(){return gM(this)};e.Z=function(){return iM(this)};e.vb=function(){return jM(this)};e.cd=function(){return lM(this)};e.ld=function(){return pM(this)};e.kd=function(){return qM(this)};e.md=function(){return rM(this)};e.nc=function(){return"expected number"};e.Je=function(){return this.JO}; -e.Ob=function(a,b,c){return Gw(Jw(),a,b,c).m};e.cc=function(a){return Ya(a)};e.nd=function(a){return a.m};e.dd=function(a){return a.m};e.sc=function(a){return a};e.$classData=x({X$:0},!1,"upickle.implicits.Readers$$anon$5",{X$:1,b:1,ra:1,ka:1,ha:1,qa:1});function g3(a){this.KO=null;if(null===a)throw K(L(),null);this.KO=a}g3.prototype=new t;g3.prototype.constructor=g3;e=g3.prototype;e.dc=function(){return null};e.tc=function(){return eM(this)};e.rc=function(){return fM(this)};e.Z=function(){return iM(this)}; -e.vb=function(){return jM(this)};e.cd=function(){return lM(this)};e.ld=function(){return pM(this)};e.kd=function(){return qM(this)};e.md=function(){return rM(this)};e.nc=function(){return"expected number"};e.Je=function(){return this.KO};e.Ob=function(a){a=Ua(a);return fF().Nz(a)};e.cc=function(a){return ka(a)};e.nd=function(a){return ka(Wt(tj(),a.m,a.r))};e.dd=function(a){return ka(Wt(tj(),a.m,a.r))};e.sc=function(a){return ka(a)};e.l=function(a){a=Ua(a);return fF().Nz(a)}; -e.$classData=x({Y$:0},!1,"upickle.implicits.Readers$$anon$6",{Y$:1,b:1,ra:1,ka:1,ha:1,qa:1});function h3(a){this.LO=null;if(null===a)throw K(L(),null);this.LO=a}h3.prototype=new t;h3.prototype.constructor=h3;e=h3.prototype;e.dc=function(){return null};e.tc=function(){return eM(this)};e.rc=function(){return fM(this)};e.l=function(){return gM(this)};e.Z=function(){return iM(this)};e.vb=function(){return jM(this)};e.cd=function(){return lM(this)};e.ld=function(){return pM(this)};e.kd=function(){return qM(this)}; -e.md=function(){return rM(this)};e.nc=function(){return"expected number"};e.Je=function(){return this.LO};e.Ob=function(a,b,c){return Gw(Jw(),a,b,c).m<<16>>16};e.cc=function(a){return Ya(a)<<16>>16};e.nd=function(a){return a.m<<16>>16};e.dd=function(a){return a.m<<16>>16};e.sc=function(a){return a<<16>>16};e.$classData=x({Z$:0},!1,"upickle.implicits.Readers$$anon$7",{Z$:1,b:1,ra:1,ka:1,ha:1,qa:1});function i3(a){this.MO=null;if(null===a)throw K(L(),null);this.MO=a}i3.prototype=new t; -i3.prototype.constructor=i3;e=i3.prototype;e.dc=function(){return null};e.tc=function(){return eM(this)};e.rc=function(){return fM(this)};e.l=function(){return gM(this)};e.Z=function(){return iM(this)};e.vb=function(){return jM(this)};e.cd=function(){return lM(this)};e.ld=function(){return pM(this)};e.kd=function(){return qM(this)};e.md=function(){return rM(this)};e.nc=function(){return"expected number"};e.Je=function(){return this.MO};e.Ob=function(a,b,c){return Gw(Jw(),a,b,c).m<<24>>24}; -e.cc=function(a){return Ya(a)<<24>>24};e.nd=function(a){return a.m<<24>>24};e.dd=function(a){return a.m<<24>>24};e.sc=function(a){return a<<24>>24};e.$classData=x({$$:0},!1,"upickle.implicits.Readers$$anon$8",{$$:1,b:1,ra:1,ka:1,ha:1,qa:1});function j3(a){this.NO=null;if(null===a)throw K(L(),null);this.NO=a}j3.prototype=new t;j3.prototype.constructor=j3;e=j3.prototype;e.dc=function(){return null};e.tc=function(){return eM(this)};e.rc=function(){return fM(this)};e.Ob=function(){return hM(this)}; -e.Z=function(){return iM(this)};e.vb=function(){return jM(this)};e.cc=function(){return kM(this)};e.cd=function(){return lM(this)};e.sc=function(){return mM(this)};e.dd=function(){return nM(this)};e.nd=function(){return oM(this)};e.ld=function(){return pM(this)};e.kd=function(){return qM(this)};e.md=function(){return rM(this)};e.nc=function(){return"expected string"};e.Je=function(){return this.NO};e.l=function(a){return Ua(a)}; -e.$classData=x({aaa:0},!1,"upickle.implicits.Readers$$anon$9",{aaa:1,b:1,ra:1,ka:1,ha:1,qa:1});function k3(a,b){this.OO=null;this.caa=b;if(null===a)throw K(L(),null);this.OO=a}k3.prototype=new t;k3.prototype.constructor=k3;e=k3.prototype;e.dc=function(){return null};e.tc=function(){return eM(this)};e.rc=function(){return fM(this)};e.Ob=function(){return hM(this)};e.Z=function(){return iM(this)};e.vb=function(){return jM(this)};e.cc=function(){return kM(this)};e.cd=function(){return lM(this)}; -e.sc=function(){return mM(this)};e.dd=function(){return nM(this)};e.nd=function(){return oM(this)};e.ld=function(){return pM(this)};e.kd=function(){return qM(this)};e.md=function(){return rM(this)};e.nc=function(){return"expected string"};e.l=function(a){return this.caa.t(a)};e.Je=function(){return this.OO};e.$classData=x({baa:0},!1,"upickle.implicits.Readers$MapStringReader",{baa:1,b:1,ra:1,ka:1,ha:1,qa:1});function ax(){}ax.prototype=new FR;ax.prototype.constructor=ax; -ax.prototype.je=function(a){return null!==a&&0===cp().Lz(a,2)&&a.a[0]!==a.a[1]?!0:!1};ax.prototype.Ic=function(a,b){a:{if(null!==a&&0===cp().Lz(a,2)){var c=a.a[0];if(c!==a.a[1]){a=c;break a}}a=b.t(a)}return a};ax.prototype.$classData=x({vaa:0},!1,"wvlet.log.LogFormatter$$anonfun$1",{vaa:1,Mh:1,b:1,da:1,wa:1,d:1}); -function iN(a,b,c,d){this.PE=ma;this.Hu=a;this.Ny=b;this.My=c;this.TD=d;this.OE=a.Hb;this.iQ=c;this.sv=this.QE=null;a=tj();b=+(new Date).getTime();b=ju(a,b);this.PE=new p(b,a.sa);Pi||(Pi=new Oi);a=Hm();c=Hm().hQ;b=c.r;c=1+c.m|0;a.hQ=new p(c,0===c?1+b|0:b);Hm();d.k()||(this.QE=d.Ja())}iN.prototype=new Em;iN.prototype.constructor=iN;function lN(a){var b=a.sv;return mN().hP.Vy(b,new Tm(((c,d)=>()=>{if(null===d)return"";var f=Vm(d);return-1===f?d:d.substring(1+f|0)})(a,b)))}e=iN.prototype;e.A=function(){return"LogRecord"}; -e.B=function(){return 4};e.C=function(a){switch(a){case 0:return this.Hu;case 1:return this.Ny;case 2:return this.My;case 3:return this.TD;default:return R(S(),a)}};e.p=function(){return tv(this)};e.g=function(){return du(this)};e.c=function(a){if(this===a)return!0;if(a instanceof iN){if(this.Hu===a.Hu){var b=this.Ny,c=a.Ny;b=null===b?null===c:b.c(c)}else b=!1;if(b&&this.My===a.My)return b=this.TD,a=a.TD,null===b?null===a:b.c(a)}return!1}; -e.$classData=x({Eaa:0},!1,"wvlet.log.LogRecord",{Eaa:1,toa:1,b:1,z:1,o:1,d:1});function l3(){m3=this}l3.prototype=new t;l3.prototype.constructor=l3;l3.prototype.$classData=x({yS:0},!1,"cats.Show$",{yS:1,b:1,Lla:1,Mla:1,Ola:1,Nla:1,d:1});var m3;function lE(){m3||(m3=new l3)}function Wb(){}Wb.prototype=new IN;Wb.prototype.constructor=Wb;Wb.prototype.$classData=x({NS:0},!1,"cats.kernel.Order$",{NS:1,lma:1,QS:1,gB:1,b:1,nma:1,d:1});var Vb; -function ux(a,b,c,d,f,g){this.Da=null;this.pT=a;this.qT=b;this.rT=c;this.sT=d;this.tT=f;this.uT=g;V2(this)}ux.prototype=new X2;ux.prototype.constructor=ux;ux.prototype.Z=function(){return new iT(this)};ux.prototype.$classData=x({nT:0},!1,"inrae.semantic_web.ConfigurationObject$GeneralSetting$$anon$4",{nT:1,Ma:1,b:1,ra:1,ka:1,ha:1,qa:1});function zx(a,b,c,d,f,g,h,l,n,r){this.Da=null;this.AT=a;this.BT=b;this.CT=c;this.DT=d;this.ET=f;this.FT=g;this.GT=h;this.HT=l;this.IT=n;this.JT=r;V2(this)} -zx.prototype=new X2;zx.prototype.constructor=zx;zx.prototype.Z=function(){return new kT(this)};zx.prototype.$classData=x({yT:0},!1,"inrae.semantic_web.ConfigurationObject$Source$$anon$7",{yT:1,Ma:1,b:1,ra:1,ka:1,ha:1,qa:1});function Ex(a,b){this.Da=null;this.PT=a;this.QT=b;V2(this)}Ex.prototype=new X2;Ex.prototype.constructor=Ex;Ex.prototype.Z=function(){return new lT(this)}; -Ex.prototype.$classData=x({NT:0},!1,"inrae.semantic_web.ConfigurationObject$StatementConfigurationJson$$anon$10",{NT:1,Ma:1,b:1,ra:1,ka:1,ha:1,qa:1});function Jx(a,b,c){this.Da=null;this.ZT=a;this.$T=b;this.aU=c;V2(this)}Jx.prototype=new X2;Jx.prototype.constructor=Jx;Jx.prototype.Z=function(){return new AU(this)};Jx.prototype.$classData=x({XT:0},!1,"inrae.semantic_web.SWDiscovery$$anon$1",{XT:1,Ma:1,b:1,ra:1,ka:1,ha:1,qa:1}); -class re extends pg{constructor(a){super();this.lB=a;this.kB=null;yF(this,a,null)}A(){return"SWDiscoveryException"}B(){return 2}C(a){switch(a){case 0:return this.lB;case 1:return this.kB;default:return R(S(),a)}}p(){return tv(this)}c(a){if(this===a)return!0;if(a instanceof re&&this.lB===a.lB){var b=this.kB;a=a.kB;return null===b?null===a:b.c(a)}return!1}}re.prototype.$classData=x({fU:0},!1,"inrae.semantic_web.SWDiscoveryException",{fU:1,Za:1,Ka:1,b:1,d:1,z:1,o:1}); -function Px(a){this.Da=null;this.pU=a;V2(this)}Px.prototype=new X2;Px.prototype.constructor=Px;Px.prototype.Z=function(){return new dV(this)};Px.prototype.$classData=x({nU:0},!1,"inrae.semantic_web.SWTransaction$$anon$1",{nU:1,Ma:1,b:1,ra:1,ka:1,ha:1,qa:1});function Ux(a){this.Da=null;this.zU=a;V2(this)}Ux.prototype=new X2;Ux.prototype.constructor=Ux;Ux.prototype.Z=function(){return new hV(this)}; -Ux.prototype.$classData=x({xU:0},!1,"inrae.semantic_web.StatementConfiguration$$anon$13",{xU:1,Ma:1,b:1,ra:1,ka:1,ha:1,qa:1});class dy extends pg{constructor(a){super();this.sB=a;this.rB=null;yF(this,a,null)}A(){return"StatementConfigurationException"}B(){return 2}C(a){switch(a){case 0:return this.sB;case 1:return this.rB;default:return R(S(),a)}}p(){return tv(this)}c(a){if(this===a)return!0;if(a instanceof dy&&this.sB===a.sB){var b=this.rB;a=a.rB;return null===b?null===a:b.c(a)}return!1}} -dy.prototype.$classData=x({BU:0},!1,"inrae.semantic_web.StatementConfigurationException",{BU:1,Za:1,Ka:1,b:1,d:1,z:1,o:1});function n3(a,b,c,d,f,g,h){this.FH=this.EH=this.Ow=null;this.zB=a;this.st=b;this.Nw=c;this.rt=d;this.AB=f;this.BB=g;this.CB=h;jd(this);this.Ow=es()}n3.prototype=new t;n3.prototype.constructor=n3;e=n3.prototype;e.cE=function(){return this.Ow};e.ev=function(){return this.EH};e.dv=function(a){this.EH=a};e.rE=function(){return this.FH};e.qE=function(a){this.FH=a}; -e.wQ=function(a){var b=0<(this.st.length|0);if(!0===b)b=Os(Gs(),new Tm((c=>()=>gy(ky(),c.st,c.rt))(this)),this.Ow);else{if(!1!==b)throw new D(b);b=py(ky(),this.Nw,this.rt)}return ty(b,new C(((c,d)=>f=>{var g=ky();J();f=qc(new rc,[f]);return qy(g,d,hh(F(),f))})(this,a)),this.Ow)};e.A=function(){return"ComunicaRequestDriver"};e.B=function(){return 7}; -e.C=function(a){switch(a){case 0:return this.zB;case 1:return this.st;case 2:return this.Nw;case 3:return this.rt;case 4:return this.AB;case 5:return this.BB;case 6:return this.CB;default:return R(S(),a)}};e.p=function(){return tv(this)};e.g=function(){return du(this)};e.c=function(a){return this===a?!0:a instanceof n3?this.zB===a.zB&&this.st===a.st&&this.Nw===a.Nw&&this.rt===a.rt&&this.AB===a.AB&&this.BB===a.BB&&this.CB===a.CB:!1}; -e.$classData=x({HU:0},!1,"inrae.semantic_web.driver.ComunicaRequestDriver",{HU:1,b:1,LU:1,Vw:1,z:1,o:1,d:1});class o3 extends pg{constructor(a){super();this.EB=a;this.DB=null;yF(this,a,null)}A(){return"HttpRequestDriverException"}B(){return 2}C(a){switch(a){case 0:return this.EB;case 1:return this.DB;default:return R(S(),a)}}p(){return tv(this)}c(a){if(this===a)return!0;if(a instanceof o3&&this.EB===a.EB){var b=this.DB;a=a.DB;return null===b?null===a:b.c(a)}return!1}} -o3.prototype.$classData=x({KU:0},!1,"inrae.semantic_web.driver.HttpRequestDriverException",{KU:1,Za:1,Ka:1,b:1,d:1,z:1,o:1});function Dy(a,b,c){this.Da=null;this.UU=a;this.VU=b;this.WU=c;V2(this)}Dy.prototype=new X2;Dy.prototype.constructor=Dy;Dy.prototype.Z=function(){return new iV(this)};Dy.prototype.$classData=x({SU:0},!1,"inrae.semantic_web.node.Abs$$anon$109",{SU:1,Ma:1,b:1,ra:1,ka:1,ha:1,qa:1});function Py(a,b,c,d){this.Da=null;this.dV=a;this.eV=b;this.fV=c;this.gV=d;V2(this)}Py.prototype=new X2; -Py.prototype.constructor=Py;Py.prototype.Z=function(){return new kV(this)};Py.prototype.$classData=x({bV:0},!1,"inrae.semantic_web.node.Bind$$anon$97",{bV:1,Ma:1,b:1,ra:1,ka:1,ha:1,qa:1});function Uy(a,b,c){this.Da=null;this.nV=a;this.oV=b;this.pV=c;V2(this)}Uy.prototype=new X2;Uy.prototype.constructor=Uy;Uy.prototype.Z=function(){return new nV(this)};Uy.prototype.$classData=x({lV:0},!1,"inrae.semantic_web.node.Ceil$$anon$115",{lV:1,Ma:1,b:1,ra:1,ka:1,ha:1,qa:1}); -function ag(a,b,c,d,f){this.S=this.Q=this.D=null;this.W=!1;this.vl=a;this.Mn=c;this.tl=d;this.ul=f;Jz(this,b,c,d,f)}ag.prototype=new Kz;ag.prototype.constructor=ag;e=ag.prototype;e.Aa=function(){return this.Mn};e.za=function(){return this.tl};e.Ya=function(){return this.ul};e.g=function(){return""+this.W+" Contains ("+this.vl+")"};e.A=function(){return"Contains"};e.B=function(){return 5}; -e.C=function(a){switch(a){case 0:return this.vl;case 1:return this.W;case 2:return this.Mn;case 3:return this.tl;case 4:return this.ul;default:return R(S(),a)}};e.p=function(){var a=Pa("Contains");a=S().j(-889275714,a);var b=this.vl;b=ku(S(),b);a=S().j(a,b);b=this.W?1231:1237;a=S().j(a,b);b=this.Mn;b=ku(S(),b);a=S().j(a,b);b=this.tl;b=ku(S(),b);a=S().j(a,b);b=this.ul;b=ku(S(),b);a=S().j(a,b);return S().ca(a,5)}; -e.c=function(a){if(this===a)return!0;if(a instanceof ag){if(this.W===a.W){var b=this.vl,c=a.vl;b=null===b?null===c:b.c(c)}else b=!1;b&&this.Mn===a.Mn?(b=this.tl,c=a.tl,b=null===b?null===c:b.c(c)):b=!1;if(b)return b=this.ul,a=a.ul,null===b?null===a:b.c(a)}return!1};e.fb=function(a,b){return new ag(this.vl,this.W,this.Mn,a,b)};var az=x({rV:0},!1,"inrae.semantic_web.node.Contains",{rV:1,Uh:1,hb:1,b:1,z:1,o:1,d:1});ag.prototype.$classData=az; -function Zy(a,b,c,d,f){this.Da=null;this.vV=a;this.wV=b;this.xV=c;this.yV=d;this.zV=f;V2(this)}Zy.prototype=new X2;Zy.prototype.constructor=Zy;Zy.prototype.Z=function(){return new oV(this)};Zy.prototype.$classData=x({tV:0},!1,"inrae.semantic_web.node.Contains$$anon$43",{tV:1,Ma:1,b:1,ra:1,ka:1,ha:1,qa:1});function Nf(a,b,c,d,f){this.S=this.Q=this.D=null;this.Pn=a;this.Sj=b;this.On=c;this.yl=d;this.zl=f;le(this,c,d,f)}Nf.prototype=new My;Nf.prototype.constructor=Nf;e=Nf.prototype;e.Aa=function(){return this.On}; -e.za=function(){return this.yl};e.Ya=function(){return this.zl};e.fb=function(a,b){return new Nf(this.Pn,this.Sj,this.On,a,b)};e.A=function(){return"Count"};e.B=function(){return 5};e.C=function(a){switch(a){case 0:return this.Pn;case 1:return this.Sj;case 2:return this.On;case 3:return this.yl;case 4:return this.zl;default:return R(S(),a)}}; -e.p=function(){var a=Pa("Count");a=S().j(-889275714,a);var b=this.Pn;b=ku(S(),b);a=S().j(a,b);b=this.Sj?1231:1237;a=S().j(a,b);b=this.On;b=ku(S(),b);a=S().j(a,b);b=this.yl;b=ku(S(),b);a=S().j(a,b);b=this.zl;b=ku(S(),b);a=S().j(a,b);return S().ca(a,5)}; -e.c=function(a){if(this===a)return!0;if(a instanceof Nf){if(this.Sj===a.Sj){var b=this.Pn,c=a.Pn;b=null===b?null===c:b.c(c)}else b=!1;b&&this.On===a.On?(b=this.yl,c=a.yl,b=null===b?null===c:b.c(c)):b=!1;if(b)return b=this.zl,a=a.zl,null===b?null===a:b.c(a)}return!1};var hz=x({BV:0},!1,"inrae.semantic_web.node.Count",{BV:1,YU:1,hb:1,b:1,z:1,o:1,d:1});Nf.prototype.$classData=hz;function dz(a,b,c,d,f){this.Da=null;this.FV=a;this.GV=b;this.HV=c;this.IV=d;this.JV=f;V2(this)}dz.prototype=new X2; -dz.prototype.constructor=dz;dz.prototype.Z=function(){return new pV(this)};dz.prototype.$classData=x({DV:0},!1,"inrae.semantic_web.node.Count$$anon$130",{DV:1,Ma:1,b:1,ra:1,ka:1,ha:1,qa:1});function Of(a,b,c,d){this.S=this.Q=this.D=null;this.Rj=a;this.Nn=b;this.wl=c;this.xl=d;le(this,b,c,d)}Of.prototype=new My;Of.prototype.constructor=Of;e=Of.prototype;e.Aa=function(){return this.Nn};e.za=function(){return this.wl};e.Ya=function(){return this.xl}; -e.fb=function(a,b){return new Of(this.Rj,this.Nn,a,b)};e.A=function(){return"CountAll"};e.B=function(){return 4};e.C=function(a){switch(a){case 0:return this.Rj;case 1:return this.Nn;case 2:return this.wl;case 3:return this.xl;default:return R(S(),a)}};e.p=function(){var a=Pa("CountAll");a=S().j(-889275714,a);var b=this.Rj?1231:1237;a=S().j(a,b);b=this.Nn;b=ku(S(),b);a=S().j(a,b);b=this.wl;b=ku(S(),b);a=S().j(a,b);b=this.xl;b=ku(S(),b);a=S().j(a,b);return S().ca(a,4)}; -e.c=function(a){if(this===a)return!0;if(a instanceof Of){if(this.Rj===a.Rj&&this.Nn===a.Nn){var b=this.wl,c=a.wl;b=null===b?null===c:b.c(c)}else b=!1;if(b)return b=this.xl,a=a.xl,null===b?null===a:b.c(a)}return!1};var mz=x({LV:0},!1,"inrae.semantic_web.node.CountAll",{LV:1,YU:1,hb:1,b:1,z:1,o:1,d:1});Of.prototype.$classData=mz;function kz(a,b,c,d){this.Da=null;this.PV=a;this.QV=b;this.RV=c;this.SV=d;V2(this)}kz.prototype=new X2;kz.prototype.constructor=kz;kz.prototype.Z=function(){return new qV(this)}; -kz.prototype.$classData=x({NV:0},!1,"inrae.semantic_web.node.CountAll$$anon$133",{NV:1,Ma:1,b:1,ra:1,ka:1,ha:1,qa:1});function pz(a,b,c){this.Da=null;this.YV=a;this.ZV=b;this.$V=c;V2(this)}pz.prototype=new X2;pz.prototype.constructor=pz;pz.prototype.Z=function(){return new rV(this)};pz.prototype.$classData=x({WV:0},!1,"inrae.semantic_web.node.Datatype$$anon$124",{WV:1,Ma:1,b:1,ra:1,ka:1,ha:1,qa:1});function uz(a,b,c,d,f){this.Da=null;this.fW=a;this.gW=b;this.hW=c;this.iW=d;this.jW=f;V2(this)} -uz.prototype=new X2;uz.prototype.constructor=uz;uz.prototype.Z=function(){return new sV(this)};uz.prototype.$classData=x({dW:0},!1,"inrae.semantic_web.node.DatatypeNode$$anon$70",{dW:1,Ma:1,b:1,ra:1,ka:1,ha:1,qa:1});function tf(a,b,c){this.S=this.Q=this.D=null;this.Sn=b;this.Tn=c;le(this,a,b,c)}tf.prototype=new bC;tf.prototype.constructor=tf;e=tf.prototype;e.Aa=function(){return this.D};e.za=function(){return this.Sn};e.Ya=function(){return this.Tn};e.fb=function(a,b){return new tf(this.D,a,b)}; -e.A=function(){return"Distinct"};e.B=function(){return 3};e.C=function(a){switch(a){case 0:return this.D;case 1:return this.Sn;case 2:return this.Tn;default:return R(S(),a)}};e.p=function(){return tv(this)};e.c=function(a){if(this===a)return!0;if(a instanceof tf){if(this.D===a.D){var b=this.Sn,c=a.Sn;b=null===b?null===c:b.c(c)}else b=!1;if(b)return b=this.Tn,a=a.Tn,null===b?null===a:b.c(a)}return!1};var Bz=x({lW:0},!1,"inrae.semantic_web.node.Distinct",{lW:1,Vq:1,hb:1,b:1,z:1,o:1,d:1}); -tf.prototype.$classData=Bz;function zz(a,b,c){this.Da=null;this.pW=a;this.qW=b;this.rW=c;V2(this)}zz.prototype=new X2;zz.prototype.constructor=zz;zz.prototype.Z=function(){return new tV(this)};zz.prototype.$classData=x({nW:0},!1,"inrae.semantic_web.node.Distinct$$anon$85",{nW:1,Ma:1,b:1,ra:1,ka:1,ha:1,qa:1});function dg(a,b,c,d,f){this.S=this.Q=this.D=null;this.W=!1;this.Dl=a;this.Un=c;this.Bl=d;this.Cl=f;Jz(this,b,c,d,f)}dg.prototype=new Kz;dg.prototype.constructor=dg;e=dg.prototype;e.Aa=function(){return this.Un}; -e.za=function(){return this.Bl};e.Ya=function(){return this.Cl};e.g=function(){return""+this.W+" \x3d\x3d "+this.Dl};e.A=function(){return"Equal"};e.B=function(){return 5};e.C=function(a){switch(a){case 0:return this.Dl;case 1:return this.W;case 2:return this.Un;case 3:return this.Bl;case 4:return this.Cl;default:return R(S(),a)}}; -e.p=function(){var a=Pa("Equal");a=S().j(-889275714,a);var b=this.Dl;b=ku(S(),b);a=S().j(a,b);b=this.W?1231:1237;a=S().j(a,b);b=this.Un;b=ku(S(),b);a=S().j(a,b);b=this.Bl;b=ku(S(),b);a=S().j(a,b);b=this.Cl;b=ku(S(),b);a=S().j(a,b);return S().ca(a,5)};e.c=function(a){if(this===a)return!0;if(a instanceof dg){if(this.W===a.W){var b=this.Dl,c=a.Dl;b=null===b?null===c:b.c(c)}else b=!1;b&&this.Un===a.Un?(b=this.Bl,c=a.Bl,b=null===b?null===c:b.c(c)):b=!1;if(b)return b=this.Cl,a=a.Cl,null===b?null===a:b.c(a)}return!1}; -e.fb=function(a,b){return new dg(this.Dl,this.W,this.Un,a,b)};var Gz=x({tW:0},!1,"inrae.semantic_web.node.Equal",{tW:1,Uh:1,hb:1,b:1,z:1,o:1,d:1});dg.prototype.$classData=Gz;function Ez(a,b,c,d,f){this.Da=null;this.xW=a;this.yW=b;this.zW=c;this.AW=d;this.BW=f;V2(this)}Ez.prototype=new X2;Ez.prototype.constructor=Ez;Ez.prototype.Z=function(){return new uV(this)};Ez.prototype.$classData=x({vW:0},!1,"inrae.semantic_web.node.Equal$$anon$52",{vW:1,Ma:1,b:1,ra:1,ka:1,ha:1,qa:1}); -function Nz(a,b,c){this.Da=null;this.JW=a;this.KW=b;this.LW=c;V2(this)}Nz.prototype=new X2;Nz.prototype.constructor=Nz;Nz.prototype.Z=function(){return new vV(this)};Nz.prototype.$classData=x({HW:0},!1,"inrae.semantic_web.node.Floor$$anon$118",{HW:1,Ma:1,b:1,ra:1,ka:1,ha:1,qa:1});function fg(a,b,c,d,f){this.S=this.Q=this.D=null;this.W=!1;this.Jl=a;this.Yn=c;this.Hl=d;this.Il=f;Jz(this,b,c,d,f)}fg.prototype=new Kz;fg.prototype.constructor=fg;e=fg.prototype;e.Aa=function(){return this.Yn};e.za=function(){return this.Hl}; -e.Ya=function(){return this.Il};e.g=function(){return""+this.W+" \x3c "+this.Jl};e.A=function(){return"Inf"};e.B=function(){return 5};e.C=function(a){switch(a){case 0:return this.Jl;case 1:return this.W;case 2:return this.Yn;case 3:return this.Hl;case 4:return this.Il;default:return R(S(),a)}}; -e.p=function(){var a=Pa("Inf");a=S().j(-889275714,a);var b=this.Jl;b=ku(S(),b);a=S().j(a,b);b=this.W?1231:1237;a=S().j(a,b);b=this.Yn;b=ku(S(),b);a=S().j(a,b);b=this.Hl;b=ku(S(),b);a=S().j(a,b);b=this.Il;b=ku(S(),b);a=S().j(a,b);return S().ca(a,5)};e.c=function(a){if(this===a)return!0;if(a instanceof fg){if(this.W===a.W){var b=this.Jl,c=a.Jl;b=null===b?null===c:b.c(c)}else b=!1;b&&this.Yn===a.Yn?(b=this.Hl,c=a.Hl,b=null===b?null===c:b.c(c)):b=!1;if(b)return b=this.Il,a=a.Il,null===b?null===a:b.c(a)}return!1}; -e.fb=function(a,b){return new fg(this.Jl,this.W,this.Yn,a,b)};var Uz=x({RW:0},!1,"inrae.semantic_web.node.Inf",{RW:1,Uh:1,hb:1,b:1,z:1,o:1,d:1});fg.prototype.$classData=Uz;function Sz(a,b,c,d,f){this.Da=null;this.VW=a;this.WW=b;this.XW=c;this.YW=d;this.ZW=f;V2(this)}Sz.prototype=new X2;Sz.prototype.constructor=Sz;Sz.prototype.Z=function(){return new CV(this)};Sz.prototype.$classData=x({TW:0},!1,"inrae.semantic_web.node.Inf$$anon$58",{TW:1,Ma:1,b:1,ra:1,ka:1,ha:1,qa:1}); -function gg(a,b,c,d,f){this.S=this.Q=this.D=null;this.W=!1;this.Gl=a;this.Xn=c;this.El=d;this.Fl=f;Jz(this,b,c,d,f)}gg.prototype=new Kz;gg.prototype.constructor=gg;e=gg.prototype;e.Aa=function(){return this.Xn};e.za=function(){return this.El};e.Ya=function(){return this.Fl};e.g=function(){return""+this.W+" \x3c\x3d "+this.Gl};e.A=function(){return"InfEqual"};e.B=function(){return 5}; -e.C=function(a){switch(a){case 0:return this.Gl;case 1:return this.W;case 2:return this.Xn;case 3:return this.El;case 4:return this.Fl;default:return R(S(),a)}};e.p=function(){var a=Pa("InfEqual");a=S().j(-889275714,a);var b=this.Gl;b=ku(S(),b);a=S().j(a,b);b=this.W?1231:1237;a=S().j(a,b);b=this.Xn;b=ku(S(),b);a=S().j(a,b);b=this.El;b=ku(S(),b);a=S().j(a,b);b=this.Fl;b=ku(S(),b);a=S().j(a,b);return S().ca(a,5)}; -e.c=function(a){if(this===a)return!0;if(a instanceof gg){if(this.W===a.W){var b=this.Gl,c=a.Gl;b=null===b?null===c:b.c(c)}else b=!1;b&&this.Xn===a.Xn?(b=this.El,c=a.El,b=null===b?null===c:b.c(c)):b=!1;if(b)return b=this.Fl,a=a.Fl,null===b?null===a:b.c(a)}return!1};e.fb=function(a,b){return new gg(this.Gl,this.W,this.Xn,a,b)};var Zz=x({aX:0},!1,"inrae.semantic_web.node.InfEqual",{aX:1,Uh:1,hb:1,b:1,z:1,o:1,d:1});gg.prototype.$classData=Zz; -function Xz(a,b,c,d,f){this.Da=null;this.eX=a;this.fX=b;this.gX=c;this.hX=d;this.iX=f;V2(this)}Xz.prototype=new X2;Xz.prototype.constructor=Xz;Xz.prototype.Z=function(){return new DV(this)};Xz.prototype.$classData=x({cX:0},!1,"inrae.semantic_web.node.InfEqual$$anon$61",{cX:1,Ma:1,b:1,ra:1,ka:1,ha:1,qa:1});function bA(a,b,c,d){this.Da=null;this.oX=a;this.pX=b;this.qX=c;this.rX=d;V2(this)}bA.prototype=new X2;bA.prototype.constructor=bA;bA.prototype.Z=function(){return new EV(this)}; -bA.prototype.$classData=x({mX:0},!1,"inrae.semantic_web.node.Lang$$anon$139",{mX:1,Ma:1,b:1,ra:1,ka:1,ha:1,qa:1});function gA(a,b,c,d){this.Da=null;this.xX=a;this.yX=b;this.zX=c;this.AX=d;V2(this)}gA.prototype=new X2;gA.prototype.constructor=gA;gA.prototype.Z=function(){return new FV(this)};gA.prototype.$classData=x({vX:0},!1,"inrae.semantic_web.node.LangMatches$$anon$142",{vX:1,Ma:1,b:1,ra:1,ka:1,ha:1,qa:1}); -function zf(a,b,c,d){this.S=this.Q=this.D=null;this.Ml=a;this.Kl=c;this.Ll=d;le(this,b,c,d)}zf.prototype=new bC;zf.prototype.constructor=zf;e=zf.prototype;e.Aa=function(){return this.D};e.za=function(){return this.Kl};e.Ya=function(){return this.Ll};e.fb=function(a,b){return new zf(this.Ml,this.D,a,b)};e.A=function(){return"Limit"};e.B=function(){return 4};e.C=function(a){switch(a){case 0:return this.Ml;case 1:return this.D;case 2:return this.Kl;case 3:return this.Ll;default:return R(S(),a)}}; -e.p=function(){var a=Pa("Limit");a=S().j(-889275714,a);var b=this.Ml;a=S().j(a,b);b=this.D;b=ku(S(),b);a=S().j(a,b);b=this.Kl;b=ku(S(),b);a=S().j(a,b);b=this.Ll;b=ku(S(),b);a=S().j(a,b);return S().ca(a,4)};e.c=function(a){if(this===a)return!0;if(a instanceof zf){if(this.Ml===a.Ml&&this.D===a.D){var b=this.Kl,c=a.Kl;b=null===b?null===c:b.c(c)}else b=!1;if(b)return b=this.Ll,a=a.Ll,null===b?null===a:b.c(a)}return!1};var nA=x({CX:0},!1,"inrae.semantic_web.node.Limit",{CX:1,Vq:1,hb:1,b:1,z:1,o:1,d:1}); -zf.prototype.$classData=nA;function lA(a,b,c,d){this.Da=null;this.GX=a;this.HX=b;this.IX=c;this.JX=d;V2(this)}lA.prototype=new X2;lA.prototype.constructor=lA;lA.prototype.Z=function(){return new GV(this)};lA.prototype.$classData=x({EX:0},!1,"inrae.semantic_web.node.Limit$$anon$94",{EX:1,Ma:1,b:1,ra:1,ka:1,ha:1,qa:1});function qA(a,b,c,d){this.Da=null;this.PX=a;this.QX=b;this.RX=c;this.SX=d;V2(this)}qA.prototype=new X2;qA.prototype.constructor=qA;qA.prototype.Z=function(){return new HV(this)}; -qA.prototype.$classData=x({NX:0},!1,"inrae.semantic_web.node.LinkFrom$$anon$16",{NX:1,Ma:1,b:1,ra:1,ka:1,ha:1,qa:1});function vA(a,b,c,d){this.Da=null;this.YX=a;this.ZX=b;this.$X=c;this.aY=d;V2(this)}vA.prototype=new X2;vA.prototype.constructor=vA;vA.prototype.Z=function(){return new IV(this)};vA.prototype.$classData=x({WX:0},!1,"inrae.semantic_web.node.LinkTo$$anon$13",{WX:1,Ma:1,b:1,ra:1,ka:1,ha:1,qa:1});function AA(a,b,c,d){this.Da=null;this.gY=a;this.hY=b;this.iY=c;this.jY=d;V2(this)} -AA.prototype=new X2;AA.prototype.constructor=AA;AA.prototype.Z=function(){return new JV(this)};AA.prototype.$classData=x({eY:0},!1,"inrae.semantic_web.node.ListValues$$anon$22",{eY:1,Ma:1,b:1,ra:1,ka:1,ha:1,qa:1});function sg(a,b,c,d){this.NB=this.Wg=this.S=this.Q=this.D=null;this.fo=c;this.go=d;DA(this,b,a,c,d)}sg.prototype=new FA;sg.prototype.constructor=sg;e=sg.prototype;e.Aa=function(){return this.D};e.za=function(){return this.fo};e.Ya=function(){return this.go};e.A=function(){return"NotBlock"}; -e.B=function(){return 4};e.C=function(a){switch(a){case 0:return this.D;case 1:return this.Wg;case 2:return this.fo;case 3:return this.go;default:return R(S(),a)}};e.p=function(){return tv(this)};e.c=function(a){if(this===a)return!0;if(a instanceof sg){if(this.D===a.D){var b=this.Wg,c=a.Wg;b=null===b?null===c:b.c(c)}else b=!1;b?(b=this.fo,c=a.fo,b=null===b?null===c:b.c(c)):b=!1;if(b)return b=this.go,a=a.go,null===b?null===a:b.c(a)}return!1};e.fb=function(a,b){return new sg(this.D,this.Wg,a,b)}; -var KA=x({oY:0},!1,"inrae.semantic_web.node.NotBlock",{oY:1,lY:1,hb:1,b:1,z:1,o:1,d:1});sg.prototype.$classData=KA;function IA(a,b,c,d){this.Da=null;this.sY=a;this.tY=b;this.uY=c;this.vY=d;V2(this)}IA.prototype=new X2;IA.prototype.constructor=IA;IA.prototype.Z=function(){return new KV(this)};IA.prototype.$classData=x({qY:0},!1,"inrae.semantic_web.node.NotBlock$$anon$28",{qY:1,Ma:1,b:1,ra:1,ka:1,ha:1,qa:1}); -function eg(a,b,c,d,f){this.S=this.Q=this.D=null;this.W=!1;this.Pl=a;this.ho=c;this.Nl=d;this.Ol=f;Jz(this,b,c,d,f)}eg.prototype=new Kz;eg.prototype.constructor=eg;e=eg.prototype;e.Aa=function(){return this.ho};e.za=function(){return this.Nl};e.Ya=function(){return this.Ol};e.g=function(){return""+this.W+" \x3d\x3d "+this.Pl};e.A=function(){return"NotEqual"};e.B=function(){return 5}; -e.C=function(a){switch(a){case 0:return this.Pl;case 1:return this.W;case 2:return this.ho;case 3:return this.Nl;case 4:return this.Ol;default:return R(S(),a)}};e.p=function(){var a=Pa("NotEqual");a=S().j(-889275714,a);var b=this.Pl;b=ku(S(),b);a=S().j(a,b);b=this.W?1231:1237;a=S().j(a,b);b=this.ho;b=ku(S(),b);a=S().j(a,b);b=this.Nl;b=ku(S(),b);a=S().j(a,b);b=this.Ol;b=ku(S(),b);a=S().j(a,b);return S().ca(a,5)}; -e.c=function(a){if(this===a)return!0;if(a instanceof eg){if(this.W===a.W){var b=this.Pl,c=a.Pl;b=null===b?null===c:b.c(c)}else b=!1;b&&this.ho===a.ho?(b=this.Nl,c=a.Nl,b=null===b?null===c:b.c(c)):b=!1;if(b)return b=this.Ol,a=a.Ol,null===b?null===a:b.c(a)}return!1};e.fb=function(a,b){return new eg(this.Pl,this.W,this.ho,a,b)};var PA=x({xY:0},!1,"inrae.semantic_web.node.NotEqual",{xY:1,Uh:1,hb:1,b:1,z:1,o:1,d:1});eg.prototype.$classData=PA; -function NA(a,b,c,d,f){this.Da=null;this.BY=a;this.CY=b;this.DY=c;this.EY=d;this.FY=f;V2(this)}NA.prototype=new X2;NA.prototype.constructor=NA;NA.prototype.Z=function(){return new LV(this)};NA.prototype.$classData=x({zY:0},!1,"inrae.semantic_web.node.NotEqual$$anon$55",{zY:1,Ma:1,b:1,ra:1,ka:1,ha:1,qa:1});function SA(a,b,c,d){this.Da=null;this.LY=a;this.MY=b;this.NY=c;this.OY=d;V2(this)}SA.prototype=new X2;SA.prototype.constructor=SA;SA.prototype.Z=function(){return new MV(this)}; -SA.prototype.$classData=x({JY:0},!1,"inrae.semantic_web.node.ObjectOf$$anon$10",{JY:1,Ma:1,b:1,ra:1,ka:1,ha:1,qa:1});function Af(a,b,c,d){this.S=this.Q=this.D=null;this.Sl=a;this.Ql=c;this.Rl=d;le(this,b,c,d)}Af.prototype=new bC;Af.prototype.constructor=Af;e=Af.prototype;e.Aa=function(){return this.D};e.za=function(){return this.Ql};e.Ya=function(){return this.Rl};e.fb=function(a,b){return new Af(this.Sl,this.D,a,b)};e.A=function(){return"Offset"};e.B=function(){return 4}; -e.C=function(a){switch(a){case 0:return this.Sl;case 1:return this.D;case 2:return this.Ql;case 3:return this.Rl;default:return R(S(),a)}};e.p=function(){var a=Pa("Offset");a=S().j(-889275714,a);var b=this.Sl;a=S().j(a,b);b=this.D;b=ku(S(),b);a=S().j(a,b);b=this.Ql;b=ku(S(),b);a=S().j(a,b);b=this.Rl;b=ku(S(),b);a=S().j(a,b);return S().ca(a,4)}; -e.c=function(a){if(this===a)return!0;if(a instanceof Af){if(this.Sl===a.Sl&&this.D===a.D){var b=this.Ql,c=a.Ql;b=null===b?null===c:b.c(c)}else b=!1;if(b)return b=this.Rl,a=a.Rl,null===b?null===a:b.c(a)}return!1};var ZA=x({QY:0},!1,"inrae.semantic_web.node.Offset",{QY:1,Vq:1,hb:1,b:1,z:1,o:1,d:1});Af.prototype.$classData=ZA;function XA(a,b,c,d){this.Da=null;this.UY=a;this.VY=b;this.WY=c;this.XY=d;V2(this)}XA.prototype=new X2;XA.prototype.constructor=XA;XA.prototype.Z=function(){return new NV(this)}; -XA.prototype.$classData=x({SY:0},!1,"inrae.semantic_web.node.Offset$$anon$91",{SY:1,Ma:1,b:1,ra:1,ka:1,ha:1,qa:1});function xf(a,b,c,d){this.S=this.Q=this.D=null;this.ko=a;this.io=c;this.jo=d;le(this,b,c,d)}xf.prototype=new bC;xf.prototype.constructor=xf;e=xf.prototype;e.Aa=function(){return this.D};e.za=function(){return this.io};e.Ya=function(){return this.jo};e.fb=function(a,b){return new xf(this.ko,this.D,a,b)};e.A=function(){return"OrderByAsc"};e.B=function(){return 4}; -e.C=function(a){switch(a){case 0:return this.ko;case 1:return this.D;case 2:return this.io;case 3:return this.jo;default:return R(S(),a)}};e.p=function(){return tv(this)};e.c=function(a){if(this===a)return!0;if(a instanceof xf){var b=this.ko,c=a.ko;(null===b?null===c:b.c(c))&&this.D===a.D?(b=this.io,c=a.io,b=null===b?null===c:b.c(c)):b=!1;if(b)return b=this.jo,a=a.jo,null===b?null===a:b.c(a)}return!1};var dB=x({ZY:0},!1,"inrae.semantic_web.node.OrderByAsc",{ZY:1,Vq:1,hb:1,b:1,z:1,o:1,d:1}); -xf.prototype.$classData=dB;function bB(a,b,c,d){this.Da=null;this.cZ=a;this.dZ=b;this.eZ=c;this.fZ=d;V2(this)}bB.prototype=new X2;bB.prototype.constructor=bB;bB.prototype.Z=function(){return new OV(this)};bB.prototype.$classData=x({aZ:0},!1,"inrae.semantic_web.node.OrderByAsc$$anon$76",{aZ:1,Ma:1,b:1,ra:1,ka:1,ha:1,qa:1});function yf(a,b,c,d){this.S=this.Q=this.D=null;this.no=a;this.lo=c;this.mo=d;le(this,b,c,d)}yf.prototype=new bC;yf.prototype.constructor=yf;e=yf.prototype;e.Aa=function(){return this.D}; -e.za=function(){return this.lo};e.Ya=function(){return this.mo};e.fb=function(a){var b=this.no,c=this.D;Te();E();var d=F();return new yf(b,c,a,G(0,d))};e.A=function(){return"OrderByDesc"};e.B=function(){return 4};e.C=function(a){switch(a){case 0:return this.no;case 1:return this.D;case 2:return this.lo;case 3:return this.mo;default:return R(S(),a)}};e.p=function(){return tv(this)}; -e.c=function(a){if(this===a)return!0;if(a instanceof yf){var b=this.no,c=a.no;(null===b?null===c:b.c(c))&&this.D===a.D?(b=this.lo,c=a.lo,b=null===b?null===c:b.c(c)):b=!1;if(b)return b=this.mo,a=a.mo,null===b?null===a:b.c(a)}return!1};var iB=x({hZ:0},!1,"inrae.semantic_web.node.OrderByDesc",{hZ:1,Vq:1,hb:1,b:1,z:1,o:1,d:1});yf.prototype.$classData=iB;function gB(a,b,c,d){this.Da=null;this.lZ=a;this.mZ=b;this.nZ=c;this.oZ=d;V2(this)}gB.prototype=new X2;gB.prototype.constructor=gB;gB.prototype.Z=function(){return new PV(this)}; -gB.prototype.$classData=x({jZ:0},!1,"inrae.semantic_web.node.OrderByDesc$$anon$79",{jZ:1,Ma:1,b:1,ra:1,ka:1,ha:1,qa:1});function wf(a,b,c,d){this.S=this.Q=this.D=null;this.yi=a;this.Uj=c;this.Tl=d;le(this,b,c,d)}wf.prototype=new bC;wf.prototype.constructor=wf;e=wf.prototype;e.Aa=function(){return this.D};e.za=function(){return this.Uj};e.Ya=function(){return this.Tl};e.$g=function(a){return a instanceof Mf};e.fb=function(a,b){return new wf(this.yi,this.D,a,b)};e.A=function(){return"Projection"}; -e.B=function(){return 4};e.C=function(a){switch(a){case 0:return this.yi;case 1:return this.D;case 2:return this.Uj;case 3:return this.Tl;default:return R(S(),a)}};e.p=function(){return tv(this)};e.c=function(a){if(this===a)return!0;if(a instanceof wf){var b=this.yi,c=a.yi;(null===b?null===c:b.c(c))&&this.D===a.D?(b=this.Uj,c=a.Uj,b=null===b?null===c:b.c(c)):b=!1;if(b)return b=this.Tl,a=a.Tl,null===b?null===a:b.c(a)}return!1}; -var nB=x({rZ:0},!1,"inrae.semantic_web.node.Projection",{rZ:1,Vq:1,hb:1,b:1,z:1,o:1,d:1});wf.prototype.$classData=nB;function lB(a,b,c,d){this.Da=null;this.vZ=a;this.wZ=b;this.xZ=c;this.yZ=d;V2(this)}lB.prototype=new X2;lB.prototype.constructor=lB;lB.prototype.Z=function(){return new QV(this)};lB.prototype.$classData=x({tZ:0},!1,"inrae.semantic_web.node.Projection$$anon$82",{tZ:1,Ma:1,b:1,ra:1,ka:1,ha:1,qa:1}); -function qB(a,b,c,d,f){this.Da=null;this.EZ=a;this.FZ=b;this.GZ=c;this.HZ=d;this.IZ=f;V2(this)}qB.prototype=new X2;qB.prototype.constructor=qB;qB.prototype.Z=function(){return new RV(this)};qB.prototype.$classData=x({CZ:0},!1,"inrae.semantic_web.node.ProjectionExpression$$anon$127",{CZ:1,Ma:1,b:1,ra:1,ka:1,ha:1,qa:1});function vB(a,b,c){this.Da=null;this.OZ=a;this.PZ=b;this.QZ=c;V2(this)}vB.prototype=new X2;vB.prototype.constructor=vB;vB.prototype.Z=function(){return new SV(this)}; -vB.prototype.$classData=x({MZ:0},!1,"inrae.semantic_web.node.Rand$$anon$121",{MZ:1,Ma:1,b:1,ra:1,ka:1,ha:1,qa:1});function vf(a,b,c){this.S=this.Q=this.D=null;this.qo=b;this.ro=c;le(this,a,b,c)}vf.prototype=new bC;vf.prototype.constructor=vf;e=vf.prototype;e.Aa=function(){return this.D};e.za=function(){return this.qo};e.Ya=function(){return this.ro};e.fb=function(a,b){return new vf(this.D,a,b)};e.A=function(){return"Reduced"};e.B=function(){return 3}; -e.C=function(a){switch(a){case 0:return this.D;case 1:return this.qo;case 2:return this.ro;default:return R(S(),a)}};e.p=function(){return tv(this)};e.c=function(a){if(this===a)return!0;if(a instanceof vf){if(this.D===a.D){var b=this.qo,c=a.qo;b=null===b?null===c:b.c(c)}else b=!1;if(b)return b=this.ro,a=a.ro,null===b?null===a:b.c(a)}return!1};var EB=x({TZ:0},!1,"inrae.semantic_web.node.Reduced",{TZ:1,Vq:1,hb:1,b:1,z:1,o:1,d:1});vf.prototype.$classData=EB; -function CB(a,b,c){this.Da=null;this.XZ=a;this.YZ=b;this.ZZ=c;V2(this)}CB.prototype=new X2;CB.prototype.constructor=CB;CB.prototype.Z=function(){return new TV(this)};CB.prototype.$classData=x({VZ:0},!1,"inrae.semantic_web.node.Reduced$$anon$88",{VZ:1,Ma:1,b:1,ra:1,ka:1,ha:1,qa:1});function $f(a,b,c,d,f,g){this.S=this.Q=this.D=null;this.W=!1;this.vo=a;this.to=b;this.uo=d;this.Ul=f;this.Vl=g;Jz(this,c,d,f,g)}$f.prototype=new Kz;$f.prototype.constructor=$f;e=$f.prototype;e.Aa=function(){return this.uo}; -e.za=function(){return this.Ul};e.Ya=function(){return this.Vl};e.fb=function(a,b){return new $f(this.vo,this.to,this.W,this.uo,a,b)};e.A=function(){return"Regex"};e.B=function(){return 6};e.C=function(a){switch(a){case 0:return this.vo;case 1:return this.to;case 2:return this.W;case 3:return this.uo;case 4:return this.Ul;case 5:return this.Vl;default:return R(S(),a)}}; -e.p=function(){var a=Pa("Regex");a=S().j(-889275714,a);var b=this.vo;b=ku(S(),b);a=S().j(a,b);b=this.to;b=ku(S(),b);a=S().j(a,b);b=this.W?1231:1237;a=S().j(a,b);b=this.uo;b=ku(S(),b);a=S().j(a,b);b=this.Ul;b=ku(S(),b);a=S().j(a,b);b=this.Vl;b=ku(S(),b);a=S().j(a,b);return S().ca(a,6)}; -e.c=function(a){if(this===a)return!0;if(a instanceof $f){if(this.W===a.W){var b=this.vo,c=a.vo;b=null===b?null===c:b.c(c)}else b=!1;b?(b=this.to,c=a.to,b=null===b?null===c:b.c(c)):b=!1;b&&this.uo===a.uo?(b=this.Ul,c=a.Ul,b=null===b?null===c:b.c(c)):b=!1;if(b)return b=this.Vl,a=a.Vl,null===b?null===a:b.c(a)}return!1};var JB=x({a_:0},!1,"inrae.semantic_web.node.Regex",{a_:1,Uh:1,hb:1,b:1,z:1,o:1,d:1});$f.prototype.$classData=JB; -function HB(a,b,c,d,f,g){this.Da=null;this.e_=a;this.f_=b;this.g_=c;this.h_=d;this.i_=f;this.j_=g;V2(this)}HB.prototype=new X2;HB.prototype.constructor=HB;HB.prototype.Z=function(){return new UV(this)};HB.prototype.$classData=x({c_:0},!1,"inrae.semantic_web.node.Regex$$anon$40",{c_:1,Ma:1,b:1,ra:1,ka:1,ha:1,qa:1});function MB(a,b,c,d,f,g){this.Da=null;this.p_=a;this.q_=b;this.r_=c;this.t_=d;this.u_=f;this.v_=g;V2(this)}MB.prototype=new X2;MB.prototype.constructor=MB;MB.prototype.Z=function(){return new VV(this)}; -MB.prototype.$classData=x({n_:0},!1,"inrae.semantic_web.node.Replace$$anon$106",{n_:1,Ma:1,b:1,ra:1,ka:1,ha:1,qa:1});function RB(a,b,c,d,f,g,h,l,n,r){this.Da=null;this.B_=a;this.C_=b;this.D_=c;this.E_=d;this.F_=f;this.G_=g;this.H_=h;this.I_=l;this.J_=n;this.K_=r;V2(this)}RB.prototype=new X2;RB.prototype.constructor=RB;RB.prototype.Z=function(){return new WV(this)};RB.prototype.$classData=x({z_:0},!1,"inrae.semantic_web.node.Root$$anon$1",{z_:1,Ma:1,b:1,ra:1,ka:1,ha:1,qa:1}); -function YB(a,b,c){this.Da=null;this.Q_=a;this.R_=b;this.S_=c;V2(this)}YB.prototype=new X2;YB.prototype.constructor=YB;YB.prototype.Z=function(){return new XV(this)};YB.prototype.$classData=x({O_:0},!1,"inrae.semantic_web.node.Round$$anon$112",{O_:1,Ma:1,b:1,ra:1,ka:1,ha:1,qa:1});function qg(a,b,c){this.S=this.Q=this.D=null;this.Wq=a;this.Vj=b;this.Bo=c;le(this,a,b,c)}qg.prototype=new yB;qg.prototype.constructor=qg;e=qg.prototype;e.Aa=function(){return this.Wq};e.za=function(){return this.Vj}; -e.Ya=function(){return this.Bo};e.fb=function(a,b){return new qg(this.Wq,a,b)};e.A=function(){return"Something"};e.B=function(){return 3};e.C=function(a){switch(a){case 0:return this.Wq;case 1:return this.Vj;case 2:return this.Bo;default:return R(S(),a)}};e.p=function(){return tv(this)};e.c=function(a){if(this===a)return!0;if(a instanceof qg){if(this.Wq===a.Wq){var b=this.Vj,c=a.Vj;b=null===b?null===c:b.c(c)}else b=!1;if(b)return b=this.Bo,a=a.Bo,null===b?null===a:b.c(a)}return!1}; -var gC=x({V_:0},!1,"inrae.semantic_web.node.Something",{V_:1,Pq:1,hb:1,b:1,z:1,o:1,d:1});qg.prototype.$classData=gC;function eC(a,b,c){this.Da=null;this.Z_=a;this.$_=b;this.a0=c;V2(this)}eC.prototype=new X2;eC.prototype.constructor=eC;eC.prototype.Z=function(){return new YV(this)};eC.prototype.$classData=x({X_:0},!1,"inrae.semantic_web.node.Something$$anon$4",{X_:1,Ma:1,b:1,ra:1,ka:1,ha:1,qa:1});function jC(a,b,c,d,f){this.Da=null;this.g0=a;this.h0=b;this.i0=c;this.j0=d;this.k0=f;V2(this)} -jC.prototype=new X2;jC.prototype.constructor=jC;jC.prototype.Z=function(){return new ZV(this)};jC.prototype.$classData=x({e0:0},!1,"inrae.semantic_web.node.SourcesNode$$anon$73",{e0:1,Ma:1,b:1,ra:1,ka:1,ha:1,qa:1});function oC(a,b,c,d){this.Da=null;this.q0=a;this.r0=b;this.s0=c;this.t0=d;V2(this)}oC.prototype=new X2;oC.prototype.constructor=oC;oC.prototype.Z=function(){return new $V(this)}; -oC.prototype.$classData=x({o0:0},!1,"inrae.semantic_web.node.SparqlDefinitionExpression$$anon$100",{o0:1,Ma:1,b:1,ra:1,ka:1,ha:1,qa:1});function tC(a,b,c,d){this.Da=null;this.z0=a;this.A0=b;this.B0=c;this.C0=d;V2(this)}tC.prototype=new X2;tC.prototype.constructor=tC;tC.prototype.Z=function(){return new aW(this)};tC.prototype.$classData=x({x0:0},!1,"inrae.semantic_web.node.Str$$anon$136",{x0:1,Ma:1,b:1,ra:1,ka:1,ha:1,qa:1}); -function cg(a,b,c,d,f){this.S=this.Q=this.D=null;this.W=!1;this.Yl=a;this.Co=c;this.Wl=d;this.Xl=f;Jz(this,b,c,d,f)}cg.prototype=new Kz;cg.prototype.constructor=cg;e=cg.prototype;e.Aa=function(){return this.Co};e.za=function(){return this.Wl};e.Ya=function(){return this.Xl};e.g=function(){return""+this.W+" StrEnds ("+this.Yl+")"};e.A=function(){return"StrEnds"};e.B=function(){return 5}; -e.C=function(a){switch(a){case 0:return this.Yl;case 1:return this.W;case 2:return this.Co;case 3:return this.Wl;case 4:return this.Xl;default:return R(S(),a)}};e.p=function(){var a=Pa("StrEnds");a=S().j(-889275714,a);var b=this.Yl;b=ku(S(),b);a=S().j(a,b);b=this.W?1231:1237;a=S().j(a,b);b=this.Co;b=ku(S(),b);a=S().j(a,b);b=this.Wl;b=ku(S(),b);a=S().j(a,b);b=this.Xl;b=ku(S(),b);a=S().j(a,b);return S().ca(a,5)}; -e.c=function(a){if(this===a)return!0;if(a instanceof cg){if(this.W===a.W){var b=this.Yl,c=a.Yl;b=null===b?null===c:b.c(c)}else b=!1;b&&this.Co===a.Co?(b=this.Wl,c=a.Wl,b=null===b?null===c:b.c(c)):b=!1;if(b)return b=this.Xl,a=a.Xl,null===b?null===a:b.c(a)}return!1};e.fb=function(a,b){return new cg(this.Yl,this.W,this.Co,a,b)};var AC=x({E0:0},!1,"inrae.semantic_web.node.StrEnds",{E0:1,Uh:1,hb:1,b:1,z:1,o:1,d:1});cg.prototype.$classData=AC; -function yC(a,b,c,d,f){this.Da=null;this.I0=a;this.J0=b;this.K0=c;this.L0=d;this.M0=f;V2(this)}yC.prototype=new X2;yC.prototype.constructor=yC;yC.prototype.Z=function(){return new bW(this)};yC.prototype.$classData=x({G0:0},!1,"inrae.semantic_web.node.StrEnds$$anon$49",{G0:1,Ma:1,b:1,ra:1,ka:1,ha:1,qa:1});function bg(a,b,c,d,f){this.S=this.Q=this.D=null;this.W=!1;this.am=a;this.Do=c;this.Zl=d;this.$l=f;Jz(this,b,c,d,f)}bg.prototype=new Kz;bg.prototype.constructor=bg;e=bg.prototype;e.Aa=function(){return this.Do}; -e.za=function(){return this.Zl};e.Ya=function(){return this.$l};e.g=function(){return""+this.W+" StrStarts ("+this.am+")"};e.A=function(){return"StrStarts"};e.B=function(){return 5};e.C=function(a){switch(a){case 0:return this.am;case 1:return this.W;case 2:return this.Do;case 3:return this.Zl;case 4:return this.$l;default:return R(S(),a)}}; -e.p=function(){var a=Pa("StrStarts");a=S().j(-889275714,a);var b=this.am;b=ku(S(),b);a=S().j(a,b);b=this.W?1231:1237;a=S().j(a,b);b=this.Do;b=ku(S(),b);a=S().j(a,b);b=this.Zl;b=ku(S(),b);a=S().j(a,b);b=this.$l;b=ku(S(),b);a=S().j(a,b);return S().ca(a,5)}; -e.c=function(a){if(this===a)return!0;if(a instanceof bg){if(this.W===a.W){var b=this.am,c=a.am;b=null===b?null===c:b.c(c)}else b=!1;b&&this.Do===a.Do?(b=this.Zl,c=a.Zl,b=null===b?null===c:b.c(c)):b=!1;if(b)return b=this.$l,a=a.$l,null===b?null===a:b.c(a)}return!1};e.fb=function(a,b){return new bg(this.am,this.W,this.Do,a,b)};var FC=x({O0:0},!1,"inrae.semantic_web.node.StrStarts",{O0:1,Uh:1,hb:1,b:1,z:1,o:1,d:1});bg.prototype.$classData=FC; -function DC(a,b,c,d,f){this.Da=null;this.S0=a;this.T0=b;this.U0=c;this.V0=d;this.W0=f;V2(this)}DC.prototype=new X2;DC.prototype.constructor=DC;DC.prototype.Z=function(){return new cW(this)};DC.prototype.$classData=x({Q0:0},!1,"inrae.semantic_web.node.StrStarts$$anon$46",{Q0:1,Ma:1,b:1,ra:1,ka:1,ha:1,qa:1});function IC(a,b,c,d,f){this.Da=null;this.b1=a;this.c1=b;this.d1=c;this.e1=d;this.f1=f;V2(this)}IC.prototype=new X2;IC.prototype.constructor=IC;IC.prototype.Z=function(){return new dW(this)}; -IC.prototype.$classData=x({$0:0},!1,"inrae.semantic_web.node.SubStr$$anon$103",{$0:1,Ma:1,b:1,ra:1,ka:1,ha:1,qa:1});function NC(a,b,c,d){this.Da=null;this.l1=a;this.m1=b;this.n1=c;this.o1=d;V2(this)}NC.prototype=new X2;NC.prototype.constructor=NC;NC.prototype.Z=function(){return new eW(this)};NC.prototype.$classData=x({j1:0},!1,"inrae.semantic_web.node.SubjectOf$$anon$7",{j1:1,Ma:1,b:1,ra:1,ka:1,ha:1,qa:1}); -function hg(a,b,c,d,f){this.S=this.Q=this.D=null;this.W=!1;this.gm=a;this.Jo=c;this.em=d;this.fm=f;Jz(this,b,c,d,f)}hg.prototype=new Kz;hg.prototype.constructor=hg;e=hg.prototype;e.Aa=function(){return this.Jo};e.za=function(){return this.em};e.Ya=function(){return this.fm};e.g=function(){return""+this.W+" \x3e "+this.gm};e.A=function(){return"Sup"};e.B=function(){return 5}; -e.C=function(a){switch(a){case 0:return this.gm;case 1:return this.W;case 2:return this.Jo;case 3:return this.em;case 4:return this.fm;default:return R(S(),a)}};e.p=function(){var a=Pa("Sup");a=S().j(-889275714,a);var b=this.gm;b=ku(S(),b);a=S().j(a,b);b=this.W?1231:1237;a=S().j(a,b);b=this.Jo;b=ku(S(),b);a=S().j(a,b);b=this.em;b=ku(S(),b);a=S().j(a,b);b=this.fm;b=ku(S(),b);a=S().j(a,b);return S().ca(a,5)}; -e.c=function(a){if(this===a)return!0;if(a instanceof hg){if(this.W===a.W){var b=this.gm,c=a.gm;b=null===b?null===c:b.c(c)}else b=!1;b&&this.Jo===a.Jo?(b=this.em,c=a.em,b=null===b?null===c:b.c(c)):b=!1;if(b)return b=this.fm,a=a.fm,null===b?null===a:b.c(a)}return!1};e.fb=function(a,b){return new hg(this.gm,this.W,this.Jo,a,b)};var UC=x({q1:0},!1,"inrae.semantic_web.node.Sup",{q1:1,Uh:1,hb:1,b:1,z:1,o:1,d:1});hg.prototype.$classData=UC; -function SC(a,b,c,d,f){this.Da=null;this.u1=a;this.v1=b;this.w1=c;this.x1=d;this.y1=f;V2(this)}SC.prototype=new X2;SC.prototype.constructor=SC;SC.prototype.Z=function(){return new fW(this)};SC.prototype.$classData=x({s1:0},!1,"inrae.semantic_web.node.Sup$$anon$64",{s1:1,Ma:1,b:1,ra:1,ka:1,ha:1,qa:1});function ig(a,b,c,d,f){this.S=this.Q=this.D=null;this.W=!1;this.dm=a;this.Io=c;this.bm=d;this.cm=f;Jz(this,b,c,d,f)}ig.prototype=new Kz;ig.prototype.constructor=ig;e=ig.prototype;e.Aa=function(){return this.Io}; -e.za=function(){return this.bm};e.Ya=function(){return this.cm};e.g=function(){return""+this.W+" \x3e\x3d "+this.dm};e.A=function(){return"SupEqual"};e.B=function(){return 5};e.C=function(a){switch(a){case 0:return this.dm;case 1:return this.W;case 2:return this.Io;case 3:return this.bm;case 4:return this.cm;default:return R(S(),a)}}; -e.p=function(){var a=Pa("SupEqual");a=S().j(-889275714,a);var b=this.dm;b=ku(S(),b);a=S().j(a,b);b=this.W?1231:1237;a=S().j(a,b);b=this.Io;b=ku(S(),b);a=S().j(a,b);b=this.bm;b=ku(S(),b);a=S().j(a,b);b=this.cm;b=ku(S(),b);a=S().j(a,b);return S().ca(a,5)}; -e.c=function(a){if(this===a)return!0;if(a instanceof ig){if(this.W===a.W){var b=this.dm,c=a.dm;b=null===b?null===c:b.c(c)}else b=!1;b&&this.Io===a.Io?(b=this.bm,c=a.bm,b=null===b?null===c:b.c(c)):b=!1;if(b)return b=this.cm,a=a.cm,null===b?null===a:b.c(a)}return!1};e.fb=function(a,b){return new ig(this.dm,this.W,this.Io,a,b)};var ZC=x({A1:0},!1,"inrae.semantic_web.node.SupEqual",{A1:1,Uh:1,hb:1,b:1,z:1,o:1,d:1});ig.prototype.$classData=ZC; -function XC(a,b,c,d,f){this.Da=null;this.E1=a;this.F1=b;this.G1=c;this.H1=d;this.I1=f;V2(this)}XC.prototype=new X2;XC.prototype.constructor=XC;XC.prototype.Z=function(){return new gW(this)};XC.prototype.$classData=x({C1:0},!1,"inrae.semantic_web.node.SupEqual$$anon$67",{C1:1,Ma:1,b:1,ra:1,ka:1,ha:1,qa:1});function rg(a,b,c,d){this.NB=this.Wg=this.S=this.Q=this.D=null;this.Wj=c;this.Ko=d;DA(this,b,a,c,d)}rg.prototype=new FA;rg.prototype.constructor=rg;e=rg.prototype;e.Aa=function(){return this.D}; -e.za=function(){return this.Wj};e.Ya=function(){return this.Ko};e.fb=function(a,b){return new rg(this.D,this.Wg,a,b)};e.A=function(){return"UnionBlock"};e.B=function(){return 4};e.C=function(a){switch(a){case 0:return this.D;case 1:return this.Wg;case 2:return this.Wj;case 3:return this.Ko;default:return R(S(),a)}};e.p=function(){return tv(this)}; -e.c=function(a){if(this===a)return!0;if(a instanceof rg){if(this.D===a.D){var b=this.Wg,c=a.Wg;b=null===b?null===c:b.c(c)}else b=!1;b?(b=this.Wj,c=a.Wj,b=null===b?null===c:b.c(c)):b=!1;if(b)return b=this.Ko,a=a.Ko,null===b?null===a:b.c(a)}return!1};var lD=x({K1:0},!1,"inrae.semantic_web.node.UnionBlock",{K1:1,lY:1,hb:1,b:1,z:1,o:1,d:1});rg.prototype.$classData=lD;function cD(a,b,c,d){this.Da=null;this.O1=a;this.P1=b;this.Q1=c;this.R1=d;V2(this)}cD.prototype=new X2;cD.prototype.constructor=cD; -cD.prototype.Z=function(){return new hW(this)};cD.prototype.$classData=x({M1:0},!1,"inrae.semantic_web.node.UnionBlock$$anon$25",{M1:1,Ma:1,b:1,ra:1,ka:1,ha:1,qa:1});function oD(a,b,c,d){this.Da=null;this.X1=a;this.Y1=b;this.Z1=c;this.$1=d;V2(this)}oD.prototype=new X2;oD.prototype.constructor=oD;oD.prototype.Z=function(){return new iW(this)};oD.prototype.$classData=x({V1:0},!1,"inrae.semantic_web.node.Value$$anon$19",{V1:1,Ma:1,b:1,ra:1,ka:1,ha:1,qa:1}); -function jg(a,b,c,d){this.S=this.Q=this.D=null;this.W=!1;this.Lo=b;this.hm=c;this.im=d;Jz(this,a,b,c,d)}jg.prototype=new Kz;jg.prototype.constructor=jg;e=jg.prototype;e.Aa=function(){return this.Lo};e.za=function(){return this.hm};e.Ya=function(){return this.im};e.g=function(){return""+this.W+" isBlank"};e.A=function(){return"isBlank"};e.B=function(){return 4};e.C=function(a){switch(a){case 0:return this.W;case 1:return this.Lo;case 2:return this.hm;case 3:return this.im;default:return R(S(),a)}}; -e.p=function(){var a=Pa("isBlank");a=S().j(-889275714,a);var b=this.W?1231:1237;a=S().j(a,b);b=this.Lo;b=ku(S(),b);a=S().j(a,b);b=this.hm;b=ku(S(),b);a=S().j(a,b);b=this.im;b=ku(S(),b);a=S().j(a,b);return S().ca(a,4)};e.c=function(a){if(this===a)return!0;if(a instanceof jg){if(this.W===a.W&&this.Lo===a.Lo){var b=this.hm,c=a.hm;b=null===b?null===c:b.c(c)}else b=!1;if(b)return b=this.im,a=a.im,null===b?null===a:b.c(a)}return!1}; -e.fb=function(a){var b=this.W,c=this.Lo;Fd();E();var d=F();return new jg(b,c,a,G(0,d))};var vD=x({b2:0},!1,"inrae.semantic_web.node.isBlank",{b2:1,Uh:1,hb:1,b:1,z:1,o:1,d:1});jg.prototype.$classData=vD;function tD(a,b,c,d){this.Da=null;this.f2=a;this.g2=b;this.h2=c;this.i2=d;V2(this)}tD.prototype=new X2;tD.prototype.constructor=tD;tD.prototype.Z=function(){return new jW(this)};tD.prototype.$classData=x({d2:0},!1,"inrae.semantic_web.node.isBlank$$anon$31",{d2:1,Ma:1,b:1,ra:1,ka:1,ha:1,qa:1}); -function ng(a,b,c,d){this.S=this.Q=this.D=null;this.W=!1;this.Mo=b;this.jm=c;this.km=d;Jz(this,a,b,c,d)}ng.prototype=new Kz;ng.prototype.constructor=ng;e=ng.prototype;e.Aa=function(){return this.Mo};e.za=function(){return this.jm};e.Ya=function(){return this.km};e.g=function(){return""+this.W+" isLiteral"};e.fb=function(a,b){return new ng(this.W,this.Mo,a,b)};e.A=function(){return"isLiteral"};e.B=function(){return 4}; -e.C=function(a){switch(a){case 0:return this.W;case 1:return this.Mo;case 2:return this.jm;case 3:return this.km;default:return R(S(),a)}};e.p=function(){var a=Pa("isLiteral");a=S().j(-889275714,a);var b=this.W?1231:1237;a=S().j(a,b);b=this.Mo;b=ku(S(),b);a=S().j(a,b);b=this.jm;b=ku(S(),b);a=S().j(a,b);b=this.km;b=ku(S(),b);a=S().j(a,b);return S().ca(a,4)}; -e.c=function(a){if(this===a)return!0;if(a instanceof ng){if(this.W===a.W&&this.Mo===a.Mo){var b=this.jm,c=a.jm;b=null===b?null===c:b.c(c)}else b=!1;if(b)return b=this.km,a=a.km,null===b?null===a:b.c(a)}return!1};var AD=x({k2:0},!1,"inrae.semantic_web.node.isLiteral",{k2:1,Uh:1,hb:1,b:1,z:1,o:1,d:1});ng.prototype.$classData=AD;function yD(a,b,c,d){this.Da=null;this.o2=a;this.p2=b;this.q2=c;this.r2=d;V2(this)}yD.prototype=new X2;yD.prototype.constructor=yD;yD.prototype.Z=function(){return new kW(this)}; -yD.prototype.$classData=x({m2:0},!1,"inrae.semantic_web.node.isLiteral$$anon$34",{m2:1,Ma:1,b:1,ra:1,ka:1,ha:1,qa:1});function kg(a,b,c,d){this.S=this.Q=this.D=null;this.W=!1;this.No=b;this.lm=c;this.mm=d;Jz(this,a,b,c,d)}kg.prototype=new Kz;kg.prototype.constructor=kg;e=kg.prototype;e.Aa=function(){return this.No};e.za=function(){return this.lm};e.Ya=function(){return this.mm};e.g=function(){return""+this.W+" isURI"};e.A=function(){return"isURI"};e.B=function(){return 4}; -e.C=function(a){switch(a){case 0:return this.W;case 1:return this.No;case 2:return this.lm;case 3:return this.mm;default:return R(S(),a)}};e.p=function(){var a=Pa("isURI");a=S().j(-889275714,a);var b=this.W?1231:1237;a=S().j(a,b);b=this.No;b=ku(S(),b);a=S().j(a,b);b=this.lm;b=ku(S(),b);a=S().j(a,b);b=this.mm;b=ku(S(),b);a=S().j(a,b);return S().ca(a,4)}; -e.c=function(a){if(this===a)return!0;if(a instanceof kg){if(this.W===a.W&&this.No===a.No){var b=this.lm,c=a.lm;b=null===b?null===c:b.c(c)}else b=!1;if(b)return b=this.mm,a=a.mm,null===b?null===a:b.c(a)}return!1};e.fb=function(a){var b=this.W,c=this.No;Hd();E();var d=F();return new kg(b,c,a,G(0,d))};var FD=x({t2:0},!1,"inrae.semantic_web.node.isURI",{t2:1,Uh:1,hb:1,b:1,z:1,o:1,d:1});kg.prototype.$classData=FD;function DD(a,b,c,d){this.Da=null;this.x2=a;this.y2=b;this.z2=c;this.A2=d;V2(this)} -DD.prototype=new X2;DD.prototype.constructor=DD;DD.prototype.Z=function(){return new lW(this)};DD.prototype.$classData=x({v2:0},!1,"inrae.semantic_web.node.isURI$$anon$37",{v2:1,Ma:1,b:1,ra:1,ka:1,ha:1,qa:1});function ID(a){this.Da=null;this.K2=a;V2(this)}ID.prototype=new X2;ID.prototype.constructor=ID;ID.prototype.Z=function(){return new wW(this)};ID.prototype.$classData=x({I2:0},!1,"inrae.semantic_web.rdf.Anonymous$$anon$7",{I2:1,Ma:1,b:1,ra:1,ka:1,ha:1,qa:1}); -function ND(a){this.Da=null;this.Q2=a;V2(this)}ND.prototype=new X2;ND.prototype.constructor=ND;ND.prototype.Z=function(){return new yW(this)};ND.prototype.$classData=x({O2:0},!1,"inrae.semantic_web.rdf.IRI$$anon$1",{O2:1,Ma:1,b:1,ra:1,ka:1,ha:1,qa:1});function SD(a,b,c){this.Da=null;this.W2=a;this.X2=b;this.Y2=c;V2(this)}SD.prototype=new X2;SD.prototype.constructor=SD;SD.prototype.Z=function(){return new zW(this)}; -SD.prototype.$classData=x({U2:0},!1,"inrae.semantic_web.rdf.Literal$$anon$13",{U2:1,Ma:1,b:1,ra:1,ka:1,ha:1,qa:1});function XD(a){this.Da=null;this.d3=a;V2(this)}XD.prototype=new X2;XD.prototype.constructor=XD;XD.prototype.Z=function(){return new AW(this)};XD.prototype.$classData=x({b3:0},!1,"inrae.semantic_web.rdf.PropertyPath$$anon$10",{b3:1,Ma:1,b:1,ra:1,ka:1,ha:1,qa:1});function bE(a){this.Da=null;this.j3=a;V2(this)}bE.prototype=new X2;bE.prototype.constructor=bE;bE.prototype.Z=function(){return new CW(this)}; -bE.prototype.$classData=x({h3:0},!1,"inrae.semantic_web.rdf.QueryVariable$$anon$16",{h3:1,Ma:1,b:1,ra:1,ka:1,ha:1,qa:1});function gE(a,b){this.Da=null;this.r3=a;this.s3=b;V2(this)}gE.prototype=new X2;gE.prototype.constructor=gE;gE.prototype.Z=function(){return new DW(this)};gE.prototype.$classData=x({p3:0},!1,"inrae.semantic_web.rdf.URI$$anon$4",{p3:1,Ma:1,b:1,ra:1,ka:1,ha:1,qa:1});x({I3:0},!1,"io.lemonlabs.uri.DomainName",{I3:1,b:1,UM:1,gna:1,z:1,o:1,d:1}); -function mU(a,b,c,d){this.vx=a;this.wx=b;this.ux=c;this.Y3=d}mU.prototype=new t;mU.prototype.constructor=mU;e=mU.prototype;e.g=function(){return this.il(this.Y3)};e.il=function(a){var b=""+this.vx.il(a),c=this.wx.il(a);b+=""===c?"":"?"+c;c=this.ux;c.k()?a=H():(c=c.Ja(),a=new dd("#"+TW(a.yx,c,a.nr)));a=a.k()?"":a.Ja();return b+a};e.A=function(){return"RelativeUrl"};e.B=function(){return 3}; -e.C=function(a){switch(a){case 0:return this.vx;case 1:return this.wx;case 2:return this.ux;default:return R(S(),a)}};e.p=function(){return tv(this)};e.c=function(a){if(this===a)return!0;if(a instanceof mU){var b=this.vx,c=a.vx;(null===b?null===c:b.c(c))?(b=this.wx,c=a.wx,b=null===b?null===c:b.c(c)):b=!1;if(b)return b=this.ux,a=a.ux,null===b?null===a:b.c(a)}return!1};e.$classData=x({X3:0},!1,"io.lemonlabs.uri.RelativeUrl",{X3:1,b:1,hC:1,gC:1,z:1,o:1,d:1});function p3(a,b){this.xx=a;this.$3=b} -p3.prototype=new t;p3.prototype.constructor=p3;e=p3.prototype;e.il=function(a){return CZ(this,a)};e.g=function(){return CZ(this,this.$3)};e.ZE=function(){return this.xx};e.A=function(){return"RootlessPath"};e.B=function(){return 1};e.C=function(a){return 0===a?this.xx:R(S(),a)};e.p=function(){return tv(this)};e.c=function(a){if(this===a)return!0;if(a instanceof p3){var b=this.xx;a=a.xx;return null===b?null===a:b.c(a)}return!1}; -e.$classData=x({Z3:0},!1,"io.lemonlabs.uri.RootlessPath",{Z3:1,b:1,YM:1,VM:1,z:1,o:1,d:1});function q3(){this.or=!1;this.q4="It looks like this URL isn't Percent Encoded. Ideally you should Percent Encode the relevant parts of your URL before passing to scala-uri. Alternatively, you can use a UriConfig with either PercentDecoder(ignoreInvalidPercentEncoding\x3dtrue) or NoopDecoder to suppress this Exception";this.oC="UTF-8";this.r4=37}q3.prototype=new GZ;q3.prototype.constructor=q3; -q3.prototype.$classData=x({p4:0},!1,"io.lemonlabs.uri.decoding.PercentDecoder$",{p4:1,fna:1,b:1,$M:1,z:1,o:1,d:1});var r3;function Ah(){r3||(r3=new q3);return r3}function Yw(){this.du=this.vC=null;this.$j=this.cu=this.qN=!1}Yw.prototype=new UZ;Yw.prototype.constructor=Yw;e=Yw.prototype;e.jE=function(){if(this.cu)this.$j=!0;else try{this.du.jE()}catch(a){if(a instanceof dX)this.$j=!0;else throw a;}}; -e.IG=function(a){if(this.cu)this.$j=!0;else try{this.du.IG(a)}catch(b){if(b instanceof dX)this.$j=!0;else throw b;}};e.HG=function(a,b,c){if(this.cu)this.$j=!0;else try{this.du.HG(a,b,c)}catch(d){if(d instanceof dX)this.$j=!0;else throw d;}};e.aB=function(a){if(this.cu)this.$j=!0;else try{this.du.aB(a)}catch(b){if(b instanceof dX)this.$j=!0;else throw b;}};e.Oz=function(a){this.aB(null===a?"null":a)};e.Pz=function(a){this.Oz(a);this.IG(10);this.qN&&this.jE()}; -e.bs=function(a){TZ.prototype.Taa.call(this,a)};e.$classData=x({y5:0},!1,"java.io.PrintWriter",{y5:1,A5:1,b:1,os:1,Gx:1,cz:1,Hx:1});function Ww(){this.pr=this.vC=null;Zw(this);this.pr=iX()}Ww.prototype=new UZ;Ww.prototype.constructor=Ww;e=Ww.prototype;e.IG=function(a){kX(this.pr,65535&a)};e.HG=function(a,b,c){var d=this.pr.nj;a=wF(oq(),a,b,c);d.x=""+d.x+a};e.aB=function(a){jX(this.pr,a)};e.g=function(){return this.pr.g()};e.jE=function(){};e.bs=function(a){var b=this.pr.nj;b.x=""+b.x+a}; -e.$classData=x({z5:0},!1,"java.io.StringWriter",{z5:1,A5:1,b:1,os:1,Gx:1,cz:1,Hx:1});function Rq(a,b){yF(a,b,null);return a}function L0(){var a=new pp;yF(a,null,null);return a}class pp extends mu{}pp.prototype.$classData=x({Xaa:0},!1,"java.lang.ArrayIndexOutOfBoundsException",{Xaa:1,zE:1,Cb:1,Za:1,Ka:1,b:1,d:1});class Iw extends VZ{constructor(a){super();yF(this,a,null)}}Iw.prototype.$classData=x({wba:0},!1,"java.lang.NumberFormatException",{wba:1,Bh:1,Cb:1,Za:1,Ka:1,b:1,d:1}); -class xF extends mu{}xF.prototype.$classData=x({Gba:0},!1,"java.lang.StringIndexOutOfBoundsException",{Gba:1,zE:1,Cb:1,Za:1,Ka:1,b:1,d:1});function s3(){this.Ai=this.P=this.ma=this.rg=0;this.Ne=null;this.Vf=0}s3.prototype=new qk;s3.prototype.constructor=s3;function t3(){}t3.prototype=s3.prototype; -function bl(a,b){if(b===a)throw rk();if(a.ch())throw new hl;var c=b.ma,d=b.P,f=c-d|0,g=a.P,h=g+f|0;if(h>a.ma)throw new il;a.P=h;pk.prototype.va.call(b,c);h=b.Ne;if(null!==h)a.pS(g,h,b.Vf+d|0,f);else for(;d!==c;)f=g,h=b.tv(d),a.qS(f,h),d=1+d|0,g=1+g|0}e=s3.prototype;e.p=function(){for(var a=this.P,b=this.ma,c=-182887236,d=a;d!==b;){var f=uv(),g=this.tv(d);c=f.j(c,ku(S(),q(g)));d=1+d|0}return uv().ca(c,b-a|0)}; -e.c=function(a){if(a instanceof s3){a:if(this===a)a=0;else{for(var b=this.P,c=this.ma-b|0,d=a.P,f=a.ma-d|0,g=c>>16|0;b=h_(b,c,d,d&(-1+b.dg.a.length|0));if(null!==b)return b=b.cg,a=a.cg,null===b?null===a:Ka(b,a)}return!1};m_.prototype.$classData=x({eca:0},!1,"java.util.HashMap$EntrySet",{eca:1,OP:1,EE:1,b:1,qz:1,AE:1,UP:1});function u3(a){this.uz=null;if(null===a)throw K(L(),null);this.uz=a}u3.prototype=new e_;u3.prototype.constructor=u3;u3.prototype.zg=function(){return this.uz.pQ()}; -u3.prototype.$=function(){return this.uz.Ch};u3.prototype.Sa=function(a){return this.uz.Sy(a)};u3.prototype.$classData=x({gca:0},!1,"java.util.HashMap$KeySet",{gca:1,OP:1,EE:1,b:1,qz:1,AE:1,UP:1});class v3 extends VZ{}function w3(){this.lv=0;this.dg=null;this.Ch=this.mv=0}w3.prototype=new k_;w3.prototype.constructor=w3;function x3(){}e=x3.prototype=w3.prototype;e.XE=function(a,b,c,d,f){return new vO(a,b,c,d,f)};e.qk=function(a){if(null===a)throw P();return g_(this,a)}; -e.Sy=function(a){if(null===a)throw P();return j_.prototype.Sy.call(this,a)};e.uj=function(a,b){if(null===a||null===b)throw P();if(null===a)var c=0;else c=Oa(a),c^=c>>>16|0;return l_(this,a,b,c)};e.Qz=function(a,b){if(null===b)throw P();var c=this.qk(a);if(null===c){if(null===a)var d=0;else d=Oa(a),d^=d>>>16|0;l_(this,a,b,d)}return c};function Ji(){this.nv=this.tp=null}Ji.prototype=new o_;Ji.prototype.constructor=Ji; -Ji.prototype.mp=function(a,b){var c=this.qk(a);return"string"===typeof c?c:null!==this.nv?this.nv.mp(a,b):b};Ji.prototype.$classData=x({Aca:0},!1,"java.util.Properties",{Aca:1,noa:1,koa:1,b:1,xz:1,gd:1,d:1});function fn(a){this.gk=a}fn.prototype=new OH;fn.prototype.constructor=fn;e=fn.prototype;e.gj=function(a){return!!this.gk.t(q(a))}; -e.pg=function(a){var b=Ih().hk;return(null===b?null===a:b.c(a))?this:a instanceof fn?(a=a.gk,dn(Ih(),new C(((c,d)=>f=>{f=Ma(f);return!!c.gk.t(q(f))||!!d.t(q(f))})(this,a)))):dn(Ih(),new C(((c,d)=>f=>{f=Ma(f);return!!c.gk.t(q(f))||d.gj(f)})(this,a)))}; -e.kt=function(a){if(a.k())return this;dm();if(0<=a.L()){var b=a.L();b=new jb(b);a.Lb(b,0,2147483647);a=b}else{b=null;b=[];for(a=a.w();a.v();){var c=a.s();b.push(Ma(c))}a=new jb(new Uint16Array(b))}a=new pn(a);return dn(Ih(),new C(((d,f)=>g=>{g=Ma(g);return!!d.gk.t(q(g))||f.gj(g)})(this,a)))};e.g=function(){return"CharPredicate.General@"+cb(this)};e.A=function(){return"General"};e.B=function(){return 1};e.C=function(a){return 0===a?this.gk:R(S(),a)};e.p=function(){return tv(this)}; -e.c=function(a){if(this===a)return!0;if(a instanceof fn){var b=this.gk;a=a.gk;return null===b?null===a:b.c(a)}return!1};e.t=function(a){return!!this.gk.t(q(Ma(a)))};e.$classData=x({E6:0},!1,"org.parboiled2.CharPredicate$General",{E6:1,SC:1,b:1,da:1,z:1,o:1,d:1});function y3(a,b,c,d,f){for(;;)if(64>c&&da?this.Xh:this.Wh,c=(-128+a|0)>>31,d=(0===(32&a)?0:1<>31&b.r;return!(0===((0===(32&a)?1<(d,f)=>{f=Ma(f);var g;if(g=d instanceof Ym)Ih(),g=128<=f;if(g){dm();if(0<=c.L())d=c.L(),d=new jb(d),c.Lb(d,0,2147483647);else{d=[];for(f=c.w();f.v();)g=f.s(),d.push(Ma(g));d=new jb(new Uint16Array(d))}return(new pn(d)).pg(new pn(z3(b)))}if(d instanceof Ym){var h=d.Xh;g=h.m;h=h.r;var l=d.Wh,n=l.m;l=l.r;if(64>f)return new Ym(new p(g|(0===(32&f)?1<d?f:d;var g=a.RN;f=new v(fa?0:a);return this};e.$classData=x({Vfa:0},!1,"scala.collection.IndexedSeqView$IndexedSeqViewIterator",{Vfa:1,lb:1,b:1,ab:1,I:1,K:1,d:1});function vP(){this.ww=null;this.ww=tt().Ra}vP.prototype=new m2;vP.prototype.constructor=vP; -function U3(a,b){a.ww=a.ww.bh(new Tm(((c,d)=>()=>{tt();return new a0(d)})(a,b)));return a}vP.prototype.Wa=function(a){return U3(this,a)};vP.prototype.$classData=x({jga:0},!1,"scala.collection.Iterator$$anon$21",{jga:1,ypa:1,b:1,Hj:1,we:1,Vd:1,Ud:1});function V3(a,b,c){a=a.yc(b);if(a instanceof dd)return a.Qb;if(H()===a)return gq(c);throw new D(a);}function VL(a,b){var c=a.yc(b);if(H()===c)return a.bE(b);if(c instanceof dd)return c.Qb;throw new D(c);} -function W3(a,b,c){return a.bi(b,new Tm(((d,f,g)=>()=>f.t(g))(a,c,b)))}function X3(a){throw qp("key not found: "+a);}function Y3(a,b,c,d,f){var g=a.w();a=new Lp(g,new C((()=>h=>{if(null!==h)return h.ib+" -\x3e "+h.Va;throw new D(h);})(a)));return $p(a,b,c,d,f)}function Z3(a,b){var c=a.Tm(),d=iR();for(a=a.w();a.v();){var f=a.s();d.fj(b.t(f))&&c.Wa(f)}return c.yb()}function $3(a,b){var c=a.bg().gb();0<=a.L()&&c.qc(1+a.y()|0);c.Wa(b);c.wc(a);return c.yb()} -function a4(a,b){var c=a.bg().gb();0<=a.L()&&c.qc(1+a.y()|0);c.wc(a);c.Wa(b);return c.yb()}function b4(a,b){var c=a.bg().gb();c.wc(a);c.wc(b);return c.yb()}function c4(a,b){var c=a.bg().gb();c.wc(b);c.wc(a);return c.yb()}function d4(){this.$v=this.GR=null;this.$F=!1;e4=this;this.$v=new c0(this)}d4.prototype=new t;d4.prototype.constructor=d4;function f4(a,b){return a instanceof g4?a:yO(0,sI(xI(),a,b))}e=d4.prototype; -e.zs=function(a){var b=new GP;return new HP(b,new C(((c,d)=>f=>yO(zO(),aq(f,d)))(this,a)))};function yO(a,b){if(null===b)return null;if(b instanceof v)return new K1(b);if(b instanceof ob)return new h4(b);if(b instanceof rb)return new i4(b);if(b instanceof pb)return new j4(b);if(b instanceof qb)return new k4(b);if(b instanceof jb)return new l4(b);if(b instanceof kb)return new m4(b);if(b instanceof nb)return new n4(b);if(b instanceof ib)return new o4(b);if(Ti(b))return new p4(b);throw new D(b);} -e.sS=function(a,b,c){c=c.pe(0>31;a=k(this.lw,a);var d=a>>31;a=b+a|0;b=(-2147483648^a)<(-2147483648^b)?1+(c+d|0)|0:c+d|0;0>31,this.Ys=(d===b?(-2147483648^c)<(-2147483648^a):d>31,this.mn=b===d?(-2147483648^a)<=(-2147483648^c):bthis.lw&&(c=this.Zs,d=c>>31,this.Ys=(d===b?(-2147483648^c)>(-2147483648^a):d>b)?c:a,c=this.Zs,d=c>>31,this.mn=b===d?(-2147483648^a)>=(-2147483648^c):b>d)}return this};e.s=function(){return wU(this)}; -e.$classData=x({Pia:0},!1,"scala.collection.immutable.RangeIterator",{Pia:1,lb:1,b:1,ab:1,I:1,K:1,d:1});function u4(){this.li=this.Ri=0}u4.prototype=new WX;u4.prototype.constructor=u4;function v4(){}v4.prototype=u4.prototype;u4.prototype.L=function(){return this.li};u4.prototype.v=function(){return 0a?0:a);return this};function w4(){this.Rf=this.Ti=0}w4.prototype=new t;w4.prototype.constructor=w4;function x4(){}x4.prototype=w4.prototype;w4.prototype.gs=function(a){if(this.Tib&&EJ(this,a);return this};w4.prototype.wc=function(a){return this.lP(a)};function y4(){this.qG=this.rG=null;z4=this;this.rG=new c0(this);this.qG=new HI(new v(0))}y4.prototype=new t;y4.prototype.constructor=y4;e=y4.prototype; -e.zs=function(a){a=new SO(a.Md());return new HP(a,new C((()=>b=>Ip(Jp(),b))(this)))};function Ip(a,b){if(null===b)return null;if(b instanceof v)return new HI(b);if(b instanceof ob)return new A4(b);if(b instanceof rb)return new B4(b);if(b instanceof pb)return new C4(b);if(b instanceof qb)return new D4(b);if(b instanceof jb)return new PI(b);if(b instanceof kb)return new JI(b);if(b instanceof nb)return new lh(b);if(b instanceof ib)return new E4(b);if(Ti(b))return new F4(b);throw new D(b);} -e.sS=function(a,b,c){c=this.zs(c);c.qc(a);for(var d=0;d>>16|0),ku(S(),a));return this}; -I4.prototype.$classData=x({bka:0},!1,"scala.collection.mutable.HashMap$$anon$5",{bka:1,fS:1,lb:1,b:1,ab:1,I:1,K:1});function J4(a){this.wn=0;this.cl=null;this.vw=0;this.uw=null;i2(this,a)}J4.prototype=new k2;J4.prototype.constructor=J4;J4.prototype.iE=function(a){return a.xn};J4.prototype.$classData=x({gka:0},!1,"scala.collection.mutable.HashSet$$anon$1",{gka:1,gS:1,lb:1,b:1,ab:1,I:1,K:1});function K4(a){this.wn=0;this.cl=null;this.vw=0;this.uw=null;i2(this,a)}K4.prototype=new k2; -K4.prototype.constructor=K4;K4.prototype.iE=function(a){return a};K4.prototype.$classData=x({hka:0},!1,"scala.collection.mutable.HashSet$$anon$2",{hka:1,gS:1,lb:1,b:1,ab:1,I:1,K:1});function L4(a){this.wn=0;this.cl=null;this.vw=0;this.uw=null;this.tG=0;if(null===a)throw K(L(),null);i2(this,a);this.tG=0}L4.prototype=new k2;L4.prototype.constructor=L4;L4.prototype.p=function(){return this.tG};L4.prototype.iE=function(a){this.tG=M4(a.Fj);return this}; -L4.prototype.$classData=x({ika:0},!1,"scala.collection.mutable.HashSet$$anon$3",{ika:1,gS:1,lb:1,b:1,ab:1,I:1,K:1});function VJ(){}VJ.prototype=new A2;VJ.prototype.constructor=VJ;e=VJ.prototype;e.g=function(){return"Duration.Undefined"};e.c=function(){return!1};e.Gm=function(a){return a===this?0:1};e.kf=function(a){return this.Gm(a)};e.$classData=x({Tda:0},!1,"scala.concurrent.duration.Duration$$anon$1",{Tda:1,OQ:1,lF:1,b:1,d:1,Eg:1,ob:1});function WJ(){}WJ.prototype=new A2; -WJ.prototype.constructor=WJ;WJ.prototype.g=function(){return"Duration.Inf"};WJ.prototype.Gm=function(a){return a===TJ().Yz?-1:a===this?0:1};WJ.prototype.kf=function(a){return this.Gm(a)};WJ.prototype.$classData=x({Uda:0},!1,"scala.concurrent.duration.Duration$$anon$2",{Uda:1,OQ:1,lF:1,b:1,d:1,Eg:1,ob:1});function XJ(){}XJ.prototype=new A2;XJ.prototype.constructor=XJ;XJ.prototype.g=function(){return"Duration.MinusInf"};XJ.prototype.Gm=function(a){return a===this?0:-1};XJ.prototype.kf=function(a){return this.Gm(a)}; -XJ.prototype.$classData=x({Vda:0},!1,"scala.concurrent.duration.Duration$$anon$3",{Vda:1,OQ:1,lF:1,b:1,d:1,Eg:1,ob:1});function Hy(a){this.eA=a}Hy.prototype=new t;Hy.prototype.constructor=Hy;e=Hy.prototype;e.Vi=function(a){return D2(this,a)};e.c=function(a){if(a&&a.$classData&&a.$classData.Eb.fh){var b=this.Md();a=a.Md();b=b===a}else b=!1;return b};e.p=function(){var a=this.eA;return ku(S(),a)};e.g=function(){return F2(this,this.eA)};e.Md=function(){return this.eA}; -e.pe=function(a){var b=this.eA;Wi();return Vh(b,[a])};e.$classData=x({Kea:0},!1,"scala.reflect.ClassTag$GenericClassTag",{Kea:1,b:1,fh:1,Eh:1,gh:1,d:1,o:1});function N4(){}N4.prototype=new t;N4.prototype.constructor=N4;e=N4.prototype;e.g=function(){return"HNil"};e.A=function(){return"HNil"};e.B=function(){return 0};e.C=function(a){return R(S(),a)};e.p=function(){return 2223273};e.$classData=x({S7:0},!1,"shapeless.HNil$",{S7:1,b:1,Hna:1,UN:1,z:1,o:1,d:1});var O4; -function F_(){O4||(O4=new N4);return O4}class fS extends pg{constructor(a,b){super();this.jD=a;this.kD=b;yF(this,b+" (data: "+a+")",null)}A(){return"InvalidData"}B(){return 2}C(a){switch(a){case 0:return this.jD;case 1:return this.kD;default:return R(S(),a)}}p(){return tv(this)}c(a){if(this===a)return!0;if(a instanceof fS){var b=this.jD,c=a.jD;return(null===b?null===c:b.c(c))?this.kD===a.kD:!1}return!1}}fS.prototype.$classData=x({M8:0},!1,"ujson.Value$InvalidData",{M8:1,Za:1,Ka:1,b:1,d:1,z:1,o:1}); -function P4(a,b,c){this.oD=null;this.jy=b;this.j9=c;if(null===a)throw K(L(),null);this.oD=a}P4.prototype=new t;P4.prototype.constructor=P4;e=P4.prototype;e.Jj=function(a){return W(this.j9,a,this.jy)};e.A=function(){return"transform"};e.B=function(){return 1};e.C=function(a){return 0===a?this.jy:R(S(),a)};e.p=function(){return tv(this)};e.g=function(){return du(this)};e.c=function(a){if(this===a)return!0;if(a instanceof P4&&a.oD===this.oD){var b=this.jy;a=a.jy;return N(O(),b,a)}return!1}; -e.$classData=x({i9:0},!1,"upickle.Api$transform",{i9:1,b:1,vh:1,Bm:1,z:1,o:1,d:1});class qw extends pg{constructor(a){super();this.Cu=a;yF(this,a,null)}A(){return"Abort"}B(){return 1}C(a){return 0===a?this.Cu:R(S(),a)}p(){return tv(this)}c(a){return this===a?!0:a instanceof qw?this.Cu===a.Cu:!1}}qw.prototype.$classData=x({m9:0},!1,"upickle.core.Abort",{m9:1,Za:1,Ka:1,b:1,d:1,z:1,o:1}); -class DS extends pg{constructor(a,b,c){super();this.ly=a;this.ny=b;this.my=this.oy=-1;this.ky=c;yF(this,a+" at index "+b,c)}A(){return"AbortException"}B(){return 5}C(a){switch(a){case 0:return this.ly;case 1:return this.ny;case 2:return this.oy;case 3:return this.my;case 4:return this.ky;default:return R(S(),a)}}p(){var a=Pa("AbortException");a=S().j(-889275714,a);var b=this.ly;b=ku(S(),b);a=S().j(a,b);b=this.ny;a=S().j(a,b);b=this.oy;a=S().j(a,b);b=this.my;a=S().j(a,b);b=this.ky;b=ku(S(),b);a=S().j(a, -b);return S().ca(a,5)}c(a){if(this===a)return!0;if(a instanceof DS&&this.ny===a.ny&&this.oy===a.oy&&this.my===a.my&&this.ly===a.ly){var b=this.ky;a=a.ky;return null===b?null===a:b.c(a)}return!1}}DS.prototype.$classData=x({n9:0},!1,"upickle.core.AbortException",{n9:1,Za:1,Ka:1,b:1,d:1,z:1,o:1});function ww(a,b,c){this.jO=this.uD=this.ze=null;if(null===a)throw K(L(),null);this.uD=a;this.jO=c;this.ze=b}ww.prototype=new zM;ww.prototype.constructor=ww;ww.prototype.oa=function(a,b){return W(this.jO,a,b)}; -ww.prototype.na=function(){return this.uD.cp};ww.prototype.Je=function(){return this.uD.cp};ww.prototype.$classData=x({D9:0},!1,"upickle.core.Types$ReadWriter$$anon$3",{D9:1,FD:1,b:1,ha:1,gO:1,ka:1,la:1});function Ey(a,b,c){this.zD=null;this.N9=b;this.M9=c;if(null===a)throw K(L(),null);this.zD=a}Ey.prototype=new t;Ey.prototype.constructor=Ey;e=Ey.prototype;e.nc=function(){return"expected dictionary"};e.vb=function(){return pw()};e.Z=function(a,b){return new CS(this.zD.AD,b,this)};e.dc=function(){return null}; -e.tc=function(){return eM(this)};e.rc=function(){return fM(this)};e.l=function(){return gM(this)};e.Ob=function(){return hM(this)};e.cc=function(){return kM(this)};e.cd=function(){return lM(this)};e.sc=function(){return mM(this)};e.dd=function(){return nM(this)};e.nd=function(){return oM(this)};e.ld=function(){return pM(this)};e.kd=function(){return qM(this)};e.md=function(){return rM(this)};e.js=function(a){return a===this.N9?this.M9:null};e.Je=function(){return this.zD.AD}; -e.$classData=x({L9:0},!1,"upickle.core.Types$TaggedReader$Leaf",{L9:1,b:1,yD:1,ra:1,ka:1,ha:1,qa:1});function Q4(a,b,c,d){return c!==a.H?(c=GM(a,c,d),Op||(Op=new Np),d=new Hy(m(b0)),c=new mT(a,new RO(d),c),new Y2(c,new C(((f,g)=>h=>g.t(df(E(),h)))(a,b)))):new c3(a,d,b)}function jV(a,b,c){return Q4(a,new C((d=>f=>{var g=new PQ;f.Ba(new C(((h,l)=>n=>l.Wa(n))(d,g)));return NQ(g)})(a)),b,c)} -function R4(a){a.I$=new $2(a);a.rf=new d3(a);a.s$=new e3(a);a.Fu=new f3(a);a.w$=new g3(a);a.C$=new h3(a);a.o$=new i3(a);a.H=new j3(a);a.q$=new a3(a);a.G$=new k3(a,new C((()=>b=>{b=Ua(b);a:{gH();36===(b.length|0)&&45===(65535&(b.charCodeAt(8)|0))&&45===(65535&(b.charCodeAt(13)|0))&&45===(65535&(b.charCodeAt(18)|0))&&45===(65535&(b.charCodeAt(23)|0))||dH(b);try{var c=b.substring(0,4),d=b.substring(4,8),f=Gq(Hq(),c,16)<<16|Gq(Hq(),d,16),g=b.substring(9,13),h=b.substring(14,18),l=Gq(Hq(),g,16)<<16|Gq(Hq(), -h,16),n=b.substring(19,23),r=b.substring(24,28),u=Gq(Hq(),n,16)<<16|Gq(Hq(),r,16),w=b.substring(28,32),A=b.substring(32,36),M=Gq(Hq(),w,16)<<16|Gq(Hq(),A,16);var T=new hH(f,l,u,M,null,null);break a}catch(V){if(V instanceof Iw)dH(b);else throw V;}T=void 0}return T})(a)));a.A$=new b3(a);a.m$=new k3(a,new C((()=>b=>{var c=J();0===(2&c.Zm)<<24>>24&&0===(2&c.Zm)<<24>>24&&(c.Iea=rK(),c.Zm=(2|c.Zm)<<24>>24);return new pK(bF(Ua(b)))})(a)));a.k$=new k3(a,new C((()=>b=>{var c=J();0===(1&c.Zm)<<24>>24&&0=== -(1&c.Zm)<<24>>24&&(c.WQ=kK(),c.Zm=(1|c.Zm)<<24>>24);c=c.WQ;var d=Ua(b);b=new dG;bK(b,tn(d),d.length|0);c=cK(b)<=c.Ds.dk?c.Ds:new Oj(cK(b),Sj().fu);return new bJ(b,c)})(a)));a.E$=new k3(a,new C((()=>b=>{LO||(LO=new KO);return dp.prototype.Uaa.call(LO,Ua(b))})(a)));a.KD=new k3(a,new C((()=>b=>{if(105===Ia(b,0)&&110===Ia(b,1)&&102===Ia(b,2)&&3===Ra(b))return TJ().mF;if(45===Ia(b,0)&&105===Ia(b,1)&&110===Ia(b,2)&&102===Ia(b,3)&&4===Ra(b))return TJ().nF;if(117===Ia(b,0)&&110===Ia(b,1)&&100===Ia(b,2)&& -101===Ia(b,3)&&102===Ia(b,4)&&5===Ra(b))return TJ().Yz;TJ();var c=Hw(Jw(),b,0,Ra(b));b=c.m;c=c.r;var d=AH().rv;return new UJ(new p(b,c),d)})(a)));a.y$=a.KD;a.u$=a.KD}function S4(a,b,c,d,f,g,h){this.GB=this.FB=this.Hn=null;this.uB=a;this.pt=b;this.qt=c;this.vB=d;this.wB=f;this.xB=g;this.tB=h;jd(this);this.Hn=es()}S4.prototype=new QN;S4.prototype.constructor=S4;e=S4.prototype; -e.wQ=function(a){var b=Mc().jb,c=Nc();Oc(Qc(b),c.Hb)&&Rc(Mc().jb,Nc(),new Sc("com/github/p2m2/js/src/main/scala/inrae/semantic_web/driver/AxiosRequestDriver.scala","AxiosRequestDriver.scala",25,10)," -- HttpRequestDriver \x3e "+Ha(this));b=new zy(Ay().Uw);id(this,b);b=this.pt.toLowerCase();if("post"===b)return T4(this,a);if("get"===b)return U4(this,a);a=this.pt;b=H();nc();b.k()||qe();throw new o3("Unknown http type request : "+a);}; -function U4(a,b){var c=new zy(Ay().Qw);id(a,c);c=qc(new rc,[z(new B,"Accept","application/json")]);c=sc(tc(),c);c=[z(new B,"header",c)];c=qc(new rc,c);c=sc(tc(),c);Ou();b=Za(ba).get(a.qt+"?query\x3d"+encodeURIComponent(b),c);return uy(Ps(Lu(b),new C((d=>f=>{var g=new zy(Ay().Pw);id(d,g);return new xy(JSON.stringify(f.data),"json")})(a)),a.Hn),new wZ(a),a.Hn)} -function T4(a,b){var c=new zy(Ay().Qw);id(a,c);c=z(new B,"url",a.qt);var d=z(new B,"method","POST"),f=qc(new rc,[z(new B,"Accept","application/json"),z(new B,"Content-Type","application/x-www-form-urlencoded")]);f=sc(tc(),f);f=z(new B,"header",f);var g=Za(da);b=[z(new B,"query",b)];b=qc(new rc,b);b=g.stringify(sc(tc(),b));c=[c,d,f,z(new B,"data",b)];c=qc(new rc,c);c=sc(tc(),c);Ou();c=Za(ba).request(c);return uy(Ps(Lu(c),new C((h=>l=>{var n=new zy(Ay().Pw);id(h,n);return new xy(JSON.stringify(l.data), -"json")})(a)),a.Hn),new xZ(a),a.Hn)}e.A=function(){return"AxiosRequestDriver"};e.B=function(){return 7};e.C=function(a){switch(a){case 0:return this.uB;case 1:return this.pt;case 2:return this.qt;case 3:return this.vB;case 4:return this.wB;case 5:return this.xB;case 6:return this.tB;default:return R(S(),a)}};e.p=function(){return tv(this)};e.g=function(){return du(this)}; -e.c=function(a){return this===a?!0:a instanceof S4?this.uB===a.uB&&this.pt===a.pt&&this.qt===a.qt&&this.vB===a.vB&&this.wB===a.wB&&this.xB===a.xB&&this.tB===a.tB:!1};e.$classData=x({CU:0},!1,"inrae.semantic_web.driver.AxiosRequestDriver",{CU:1,cna:1,b:1,LU:1,Vw:1,z:1,o:1,d:1}); -function wh(a){this.DH=this.Mw=this.Vt=this.Ut=null;this.yB=a;jd(this);this.Mw=es();var b=Gs();a:{var c=a.oq();a=new yZ(this);if(c===F())a=F();else{for(var d=null,f;null===d;)if(f=a.Ic(c.R(),eh().fw),f!==eh().fw&&(d=new ph(f,F())),c=c.X(),c===F()){a=null===d?F():d;break a}for(var g=d;c!==F();)f=a.Ic(c.R(),eh().fw),f!==eh().fw&&(f=new ph(f,F()),g=g.Gb=f),c=c.X();a=d}}OO();this.DH=Qs(b,a,this.Mw)}wh.prototype=new aO;wh.prototype.constructor=wh;e=wh.prototype; -e.fE=function(a){var b=new zy(Ay().Rw);id(this,b);a=Lc(Zc(),a.mb.$a);return V4(this,a)};function V4(a,b){return ty(a.DH,new C(((c,d)=>f=>qy(ky(),d,f))(a,b)),a.Mw)}e.A=function(){return"ComunicaFederatedStrategy"};e.B=function(){return 1};e.C=function(a){return 0===a?this.yB:R(S(),a)};e.p=function(){return tv(this)};e.g=function(){return du(this)};e.c=function(a){if(this===a)return!0;if(a instanceof wh){var b=this.yB;a=a.yB;return null===b?null===a:b.c(a)}return!1}; -e.$classData=x({FU:0},!1,"inrae.semantic_web.driver.ComunicaFederatedStrategy",{FU:1,RM:1,b:1,Vw:1,MB:1,z:1,o:1,d:1});function Ff(a,b,c,d){this.kc=this.jc=this.ed=this.lc=this.S=this.Q=this.D=null;YN(this,a,b,c,d)}Ff.prototype=new ZN;Ff.prototype.constructor=Ff;e=Ff.prototype;e.Aa=function(){return this.lc};e.za=function(){return this.jc};e.Ya=function(){return this.kc};e.fb=function(a,b){return new Ff(this.lc,this.ed,a,b)};e.A=function(){return"LinkFrom"};e.B=function(){return 4}; -e.C=function(a){switch(a){case 0:return this.lc;case 1:return this.ed;case 2:return this.jc;case 3:return this.kc;default:return R(S(),a)}};e.p=function(){return tv(this)};e.c=function(a){if(this===a)return!0;if(a instanceof Ff){if(this.lc===a.lc){var b=this.ed,c=a.ed;b=null===b?null===c:b.c(c)}else b=!1;b?(b=this.jc,c=a.jc,b=null===b?null===c:b.c(c)):b=!1;if(b)return b=this.kc,a=a.kc,null===b?null===a:b.c(a)}return!1}; -var sA=x({LX:0},!1,"inrae.semantic_web.node.LinkFrom",{LX:1,PB:1,Pq:1,hb:1,b:1,z:1,o:1,d:1});Ff.prototype.$classData=sA;function Ef(a,b,c,d){this.kc=this.jc=this.ed=this.lc=this.S=this.Q=this.D=null;YN(this,a,b,c,d)}Ef.prototype=new ZN;Ef.prototype.constructor=Ef;e=Ef.prototype;e.Aa=function(){return this.lc};e.za=function(){return this.jc};e.Ya=function(){return this.kc};e.fb=function(a,b){return new Ef(this.lc,this.ed,a,b)};e.A=function(){return"LinkTo"};e.B=function(){return 4}; -e.C=function(a){switch(a){case 0:return this.lc;case 1:return this.ed;case 2:return this.jc;case 3:return this.kc;default:return R(S(),a)}};e.p=function(){return tv(this)};e.c=function(a){if(this===a)return!0;if(a instanceof Ef){if(this.lc===a.lc){var b=this.ed,c=a.ed;b=null===b?null===c:b.c(c)}else b=!1;b?(b=this.jc,c=a.jc,b=null===b?null===c:b.c(c)):b=!1;if(b)return b=this.kc,a=a.kc,null===b?null===a:b.c(a)}return!1}; -var xA=x({UX:0},!1,"inrae.semantic_web.node.LinkTo",{UX:1,PB:1,Pq:1,hb:1,b:1,z:1,o:1,d:1});Ef.prototype.$classData=xA;function Df(a,b,c,d){this.kc=this.jc=this.ed=this.lc=this.S=this.Q=this.D=null;YN(this,a,b,c,d)}Df.prototype=new ZN;Df.prototype.constructor=Df;e=Df.prototype;e.Aa=function(){return this.lc};e.za=function(){return this.jc};e.Ya=function(){return this.kc};e.fb=function(a,b){return new Df(this.lc,this.ed,a,b)};e.A=function(){return"ObjectOf"};e.B=function(){return 4}; -e.C=function(a){switch(a){case 0:return this.lc;case 1:return this.ed;case 2:return this.jc;case 3:return this.kc;default:return R(S(),a)}};e.p=function(){return tv(this)};e.c=function(a){if(this===a)return!0;if(a instanceof Df){if(this.lc===a.lc){var b=this.ed,c=a.ed;b=null===b?null===c:b.c(c)}else b=!1;b?(b=this.jc,c=a.jc,b=null===b?null===c:b.c(c)):b=!1;if(b)return b=this.kc,a=a.kc,null===b?null===a:b.c(a)}return!1}; -var UA=x({HY:0},!1,"inrae.semantic_web.node.ObjectOf",{HY:1,PB:1,Pq:1,hb:1,b:1,z:1,o:1,d:1});Df.prototype.$classData=UA;function vg(a,b,c,d){this.he=this.ge=this.oe=this.S=this.Q=this.D=null;this.Kt=a;VN(this,b,c,d)}vg.prototype=new XN;vg.prototype.constructor=vg;e=vg.prototype;e.Aa=function(){return this.oe};e.za=function(){return this.ge};e.Ya=function(){return this.he};e.fb=function(a,b){return new vg(this.Kt,this.oe,a,b)};e.A=function(){return"SparqlDefinitionExpression"};e.B=function(){return 4}; -e.C=function(a){switch(a){case 0:return this.Kt;case 1:return this.oe;case 2:return this.ge;case 3:return this.he;default:return R(S(),a)}};e.p=function(){return tv(this)};e.c=function(a){if(this===a)return!0;if(a instanceof vg){var b=this.Kt,c=a.Kt;(null===b?null===c:b.c(c))&&this.oe===a.oe?(b=this.ge,c=a.ge,b=null===b?null===c:b.c(c)):b=!1;if(b)return b=this.he,a=a.he,null===b?null===a:b.c(a)}return!1}; -var qC=x({m0:0},!1,"inrae.semantic_web.node.SparqlDefinitionExpression",{m0:1,xi:1,wi:1,hb:1,b:1,z:1,o:1,d:1});vg.prototype.$classData=qC;function Cf(a,b,c,d){this.kc=this.jc=this.ed=this.lc=this.S=this.Q=this.D=null;YN(this,a,b,c,d)}Cf.prototype=new ZN;Cf.prototype.constructor=Cf;e=Cf.prototype;e.Aa=function(){return this.lc};e.za=function(){return this.jc};e.Ya=function(){return this.kc};e.fb=function(a,b){return new Cf(this.lc,this.ed,a,b)};e.A=function(){return"SubjectOf"};e.B=function(){return 4}; -e.C=function(a){switch(a){case 0:return this.lc;case 1:return this.ed;case 2:return this.jc;case 3:return this.kc;default:return R(S(),a)}};e.p=function(){return tv(this)};e.c=function(a){if(this===a)return!0;if(a instanceof Cf){if(this.lc===a.lc){var b=this.ed,c=a.ed;b=null===b?null===c:b.c(c)}else b=!1;b?(b=this.jc,c=a.jc,b=null===b?null===c:b.c(c)):b=!1;if(b)return b=this.kc,a=a.kc,null===b?null===a:b.c(a)}return!1}; -var PC=x({h1:0},!1,"inrae.semantic_web.node.SubjectOf",{h1:1,PB:1,Pq:1,hb:1,b:1,z:1,o:1,d:1});Cf.prototype.$classData=PC; -function vh(a){this.XB=this.Vt=this.Ut=null;this.YB=a;jd(this);hd||(hd=new gd);a:{var b=a.Th;if("application/sparql-query"===b){if(""!==a.Tf){a=new S4(a.Dn,a.Pj,a.Tf,a.ol,a.pl,a.Qj,a.Oj);break a}}else if("application/trig"===b||"application/n-quads"===b||"text/turtle"===b||"application/n-triples"===b||"text/n3"===b||"application/ld+json"===b||"application/json"===b||"application/rdf+xml"===b||"text/rdf-xml"===b||"text/html"===b||"application/xhtml+xml"===b||"image/svg+xml"===b||"application/xml"=== -b){a=new n3(a.Dn,a.Tf,a.ui,a.Th,a.ol,a.pl,"file");break a}a=a.g();b=H();nc();b.k()||qe();throw new re("Bad definition of source configuration :"+a);}a=this.XB=a;a.dv(uZ(a.ev(),this))}vh.prototype=new aO;vh.prototype.constructor=vh;e=vh.prototype;e.fE=function(a){var b=new zy(Ay().Rw);id(this,b);a=Lc(Zc(),a.mb.$a);return yy(this.XB,a)};e.A=function(){return"DiscoveryStrategyRequest"};e.B=function(){return 1};e.C=function(a){return 0===a?this.YB:R(S(),a)};e.p=function(){return tv(this)};e.g=function(){return du(this)}; -e.c=function(a){if(this===a)return!0;if(a instanceof vh){var b=this.YB;a=a.YB;return null===b?null===a:b.c(a)}return!1};e.$classData=x({x3:0},!1,"inrae.semantic_web.strategy.DiscoveryStrategyRequest",{x3:1,RM:1,b:1,Vw:1,MB:1,z:1,o:1,d:1});function uh(a){this.ZB=this.Vt=this.Ut=null;this.Tt=a;jd(this);this.ZB=es()}uh.prototype=new aO;uh.prototype.constructor=uh;e=uh.prototype; -e.fE=function(a){G(E().hF,qc(new rc,[z(new B,"Content-Type","application/json"),z(new B,"Content-Type","text/plain")]));E();var b=z(new B,"url",this.Tt),c=z(new B,"method","POST"),d=z(new B,"type","transaction"),f=U();U();U();var g=Rx().Iw;a=VU(f,a,g);b=[b,c,d,z(new B,"object",a)];b=qc(new rc,b);G(0,b);cU(AI().Sz.Jv,Ua(Za(ba))+"\n");Ou();b=Za(ba).post(this.Tt);return uy(Ps(Lu(b),new C((()=>h=>new xy(Ua(h),"json"))(this)),this.ZB),new BZ(this),this.ZB)};e.A=function(){return"ProxyStrategyRequest"}; -e.B=function(){return 1};e.C=function(a){return 0===a?this.Tt:R(S(),a)};e.p=function(){return tv(this)};e.g=function(){return du(this)};e.c=function(a){return this===a?!0:a instanceof uh?this.Tt===a.Tt:!1};e.$classData=x({y3:0},!1,"inrae.semantic_web.strategy.ProxyStrategyRequest",{y3:1,RM:1,b:1,Vw:1,MB:1,z:1,o:1,d:1});function W4(a,b){this.tx=a;this.F3=b}W4.prototype=new t;W4.prototype.constructor=W4;e=W4.prototype;e.g=function(){return this.il(this.F3)};e.ZE=function(){return this.tx}; -e.il=function(a){return"/"+CZ(this,a)};e.A=function(){return"AbsolutePath"};e.B=function(){return 1};e.C=function(a){return 0===a?this.tx:R(S(),a)};e.p=function(){return tv(this)};e.c=function(a){if(this===a)return!0;if(a instanceof W4){var b=this.tx;a=a.tx;return null===b?null===a:b.c(a)}return!1};e.$classData=x({D3:0},!1,"io.lemonlabs.uri.AbsolutePath",{D3:1,b:1,C3:1,YM:1,VM:1,z:1,o:1,d:1});function X4(){}X4.prototype=new t;X4.prototype.constructor=X4;e=X4.prototype;e.g=function(){tE();return""}; -e.ZE=function(){J();return pr()};e.il=function(){return""};e.A=function(){return"EmptyPath"};e.B=function(){return 0};e.C=function(a){return R(S(),a)};e.p=function(){return 583864050};e.$classData=x({J3:0},!1,"io.lemonlabs.uri.EmptyPath$",{J3:1,b:1,C3:1,YM:1,VM:1,z:1,o:1,d:1});var Y4;x({P3:0},!1,"io.lemonlabs.uri.ProtocolRelativeUrl",{P3:1,b:1,e4:1,hC:1,gC:1,z:1,o:1,d:1}); -function lU(a,b){this.Pb=this.th=this.$C=this.ZC=0;this.E4=this.lN=this.kN=this.mN=this.uC=this.tC=this.Fx=this.$i=this.Xf=this.Id=null;this.$i=a;this.Fx=b;this.ZC=16;this.$C=1024;Hh(this);this.tC=new C((c=>d=>c.Fx.zx.Xu(d))(this));this.uC=new gn((c=>(d,f)=>{if(""!==d)return new W4(f.Cw(),c.Fx);d=I(J().u,qc(new rc,[""]));return(null===f?null===d:f.c(d))?(sE||(sE=new rE),Y4||(Y4=new X4),Y4):new p3(f.Cw(),c.Fx)})(this))}lU.prototype=new r_;lU.prototype.constructor=lU; -function Z4(a){if(null!==a.Xf)a:{var b=a.Pb;try{var c=a.Pb;try{var d=a.Pb;try{b:{var f=a.Pb;try{c:for(var g=u_(a);;){var h=a.Pb;try{var l=0;l=0;try{var n=u_(a),r=n.m,u=n.r,w=w_(a);try{var A=G_(a)&&t_(a)||x_(a)}catch(za){var M=Yu(L(),za);if(null!==M)if(y_()===M){var T=new Co("/?#");A_(a,J().Nd,T)}else throw K(L(),M);else throw za;}a.Xf=w;l=a.Pb;v_(a,new p(r,u));var V=A?x_(a):!0}catch(za){var ha=Yu(L(),za);if(null!==ha)if(y_()===ha){var ra=new In(new Eo(new Co("/?#")),l-a.Pb|0);A_(a,J().Nd,ra)}else throw K(L(), -ha);else throw za;}if(V)try{var ea=a.th!==un().mk&&s_(a)&&t_(a)||x_(a)}catch(za){var wa=Yu(L(),za);if(null!==wa)if(y_()===wa){var xa=Bo();A_(a,J().Nd,xa)}else throw K(L(),wa);else throw za;}else ea=!1}catch(za){if(za instanceof B_)G3(za,Sn(),h);else throw za;}if(ea)g=u_(a);else{var Ta=g;break c}}v_(a,Ta);var gb=!0;break b}catch(za){if(za instanceof B_)G3(za,Ao(),f);else throw za;}gb=void 0}var mb=gb&&(E_(a.Id,BO(a.$i,d,a.Pb)),!0)}catch(za){if(za instanceof B_)G3(za,lo(),d);else throw za;}if(mb){var Zb= -a.Pb;try{var lb=K3(a.Id);var Ab=C_(a,a.tC.t(lb));break a}catch(za){if(za instanceof B_)G3(za,Tn(),Zb);else throw za;}}else{Ab=!1;break a}}catch(za){if(za instanceof B_)G3(za,Sn(),c);else throw za;}}catch(za){if(za instanceof B_)G3(F3(za,Rn(),b),new Qn("_path_segment"),b);else throw za;}Ab=void 0}else{Ab=a.Pb;a:for(b=u_(a);;)if(d=u_(a),c=d.m,d=d.r,gb=w_(a),f=G_(a),a.Xf=gb,v_(a,new p(c,d)),!f&&a.th!==un().mk&&s_(a))b=u_(a);else break a;v_(a,b);E_(a.Id,BO(a.$i,Ab,a.Pb));Ab=K3(a.Id);Ab=C_(a,a.tC.t(Ab))}return Ab? -EO():null} -function $4(a){if(null!==a.Xf)a:{var b=a.Pb;try{var c=a.Pb;try{b:{var d=a.Pb;try{var f=a.Pb;try{var g=u_(a),h=g.m,l=g.r;if(47===a.th)var n=(s_(a),t_(a),!0);else c:{try{n=x_(a);break c}catch(ya){var r=Yu(L(),ya);if(null!==r)if(y_()===r){var u=new TX(new zo("/"),0),w=J().Nd;A_(a,new ph(u,w),new Do(47))}else throw K(L(),r);else throw ya;}n=void 0}n||v_(a,new p(h,l));var A=!0}catch(ya){if(ya instanceof B_)G3(ya,so(),f);else throw ya;}var M=A&&(E_(a.Id,BO(a.$i,d,a.Pb)),!0);break b}catch(ya){if(ya instanceof B_)G3(ya, -lo(),d);else throw ya;}M=void 0}if(M){var T=a.Pb;try{var V=new mQ;b:for(var ha=u_(a);;)if(null!==Z4(a)){var ra=K3(a.Id);oQ(V,ra);var ea=u_(a),wa=ea.m,xa=ea.r;if(47===a.th){s_(a);t_(a);var Ta=!0}else try{Ta=x_(a)}catch(ya){var gb=Yu(L(),ya);if(null!==gb)if(y_()===gb){var mb=new TX(new zo("/"),0),Zb=J().Nd;A_(a,new ph(mb,Zb),new Do(47))}else throw K(L(),gb);else throw ya;}if(Ta)ha=new p(wa,xa);else{var lb=new p(wa,xa);break b}}else{lb=ha;break b}v_(a,lb);E_(a.Id,V.Dg());var Ab=!0}catch(ya){if(ya instanceof -B_)G3(ya,Ao(),T);else throw ya;}}else Ab=!1;if(Ab){var za=a.Pb;try{var kc=K3(a.Id),La=K3(a.Id);var Ja=C_(a,a.uC.Oe(La,kc));break a}catch(ya){if(ya instanceof B_)G3(ya,Tn(),za);else throw ya;}}else{Ja=!1;break a}}catch(ya){if(ya instanceof B_)G3(ya,Sn(),c);else throw ya;}}catch(ya){if(ya instanceof B_)G3(F3(ya,Rn(),b),new Qn("_path"),b);else throw ya;}Ja=void 0}else{Ja=a.Pb;c=u_(a);b=c.m;c=c.r;47===a.th&&(s_(a),!0)||v_(a,new p(b,c));E_(a.Id,BO(a.$i,Ja,a.Pb));Ja=new mQ;a:for(b=u_(a);;)if(null!==Z4(a))if(b= -K3(a.Id),oQ(Ja,b),c=u_(a),b=c.m,c=c.r,47!==a.th||(s_(a),0)){b=new p(b,c);break a}else b=new p(b,c);else break a;v_(a,b);E_(a.Id,Ja.Dg());Ja=K3(a.Id);b=K3(a.Id);Ja=C_(a,a.uC.Oe(b,Ja))}return Ja?EO():null}function a5(a,b,c){return b.sQ(new NZ(a,c))} -function kU(a){var b=(ya=>()=>{if(null!==ya.Xf)a:{var Ve=ya.Pb;try{var fh=ya.Pb;try{if(null!==$4(ya))try{var ad=ya.th===un().mk&&s_(ya)&&t_(ya)||x_(ya);break a}catch(Eb){var sb=Yu(L(),Eb);if(null!==sb)if(y_()===sb){var Dd=new Do(un().mk);A_(ya,J().Nd,Dd)}else throw K(L(),sb);else throw Eb;}else{ad=!1;break a}}catch(Eb){if(Eb instanceof B_)G3(Eb,Sn(),fh);else throw Eb;}}catch(Eb){if(Eb instanceof B_)G3(F3(Eb,Rn(),Ve),new Qn("parsePath"),Ve);else throw Eb;}ad=void 0}else ad=null!==$4(ya)&&ya.th===un().mk&& -s_(ya);return ad?EO():null})(a);hI||(hI=new gI);try{a.Id=new J3(a.ZC,a.$C);a.Pb=-1;s_(a);a.Id.hp();try{var c=null!==b()}catch(ya){var d=Yu(L(),ya);if(null!==d)if(C3()===d)c=!1;else throw K(L(),d);else throw ya;}if(c)var f=a.Id,g=f.vg,h=F_(),l=L3(f,g,h),n=new Is(l.zm);else{var r=new SH(0);a.Xf=r;a.Pb=-1;s_(a);a.Id.hp();try{var u=null!==b()}catch(ya){var w=Yu(L(),ya);if(null!==w)if(C3()===w)u=!1;else throw K(L(),w);else throw ya;}u&&bv("Parsing unexpectedly succeeded while trying to establish the principal error location"); -var A=r.YC,M=new TH(A,-2147483648,-2147483648);a.Xf=M;a.Pb=-1;s_(a);a.Id.hp();try{var T=null!==b()}catch(ya){var V=Yu(L(),ya);if(null!==V)if(C3()===V)T=!1;else throw K(L(),V);else throw ya;}T&&bv("Parsing unexpectedly succeeded while trying to establish the reported error location");a.Xf=new RH(A,!1);try{a.Pb=-1;s_(a);a.Id.hp();try{var ha=null!==b()}catch(ya){var ra=Yu(L(),ya);if(null!==ra)if(C3()===ra)ha=!1;else throw K(L(),ra);else throw ya;}ha&&bv("Parsing unexpectedly succeeded while trying to determine quiet reporting"); -var ea=!0}catch(ya){var wa=Yu(L(),ya);if(null!==wa)if(z_()===wa)ea=!1;else throw K(L(),wa);else throw ya;}var xa=0<=M.Sx?M.Sx:M.Z6,Ta=new QH(xa,ea,0,0),gb=new mQ;c=Ta;for(var mb;;){if(24>c.WC){try{a.Xf=c;a.Pb=-1;s_(a);a.Id.hp();try{b()}catch(ya){var Zb=Yu(L(),ya);if(null!==Zb){if(C3()!==Zb)throw K(L(),Zb);}else throw ya;}var lb=null}catch(ya){if(ya instanceof B_)lb=ya.Tx;else throw ya;}if(null!==lb){var Ab=new QH(xa,ea,1+c.WC|0,0),za=oQ(gb,lb);c=Ab;gb=za;continue}}mb=p_(a,A,xa,gb);break}n=new ms(mb)}}catch(ya){var kc= -Yu(L(),ya);if(null!==kc)a:{if(null!==kc){var La=mv(ov(),kc);if(!La.k()){var Ja=La.Ja();n=new ms(Ja);break a}}throw K(L(),kc);}else throw ya;}finally{a.Xf=null}return a5(a,n,new Tm((()=>()=>"Path")(a)))}lU.prototype.$classData=x({B4:0},!1,"io.lemonlabs.uri.parsing.UrlParser",{B4:1,wna:1,Bna:1,b:1,Dna:1,Ena:1,Cna:1,hna:1});function b5(){}b5.prototype=new SZ;b5.prototype.constructor=b5;function c5(){}c5.prototype=b5.prototype;b5.prototype.Pz=function(a){this.Oz(a);cU(this,"\n")}; -b5.prototype.bs=function(a){this.Oz(null===a?"null":Ua(a))};function Ck(a,b,c,d,f,g){this.Ai=this.P=this.ma=this.rg=0;this.KC=g;this.Ne=b;this.Vf=c;ok(this,a);pk.prototype.va.call(this,d);pk.prototype.UE.call(this,f)}Ck.prototype=new t3;Ck.prototype.constructor=Ck;e=Ck.prototype;e.ch=function(){return this.KC};e.CG=function(a,b){if(0>a||b(this.ma-this.P|0))throw Bk();return new Ck(this.rg,this.Ne,this.Vf,this.P+a|0,this.P+b|0,this.KC)}; -e.np=function(){var a=this.P;if(a===this.ma)throw new ol;this.P=1+a|0;return this.Ne.a[this.Vf+a|0]};e.wk=function(a){if(this.KC)throw new hl;var b=this.P;if(b===this.ma)throw new il;this.P=1+b|0;this.Ne.a[this.Vf+b|0]=a};e.xP=function(a){if(0>a||a>=this.ma)throw Bk();return this.Ne.a[this.Vf+a|0]};e.wP=function(a,b,c){if(0>b||0>c||b>(a.a.length-c|0))throw Bk();var d=this.P,f=d+c|0;if(f>this.ma)throw new ol;this.P=f;this.Ne.U(this.Vf+d|0,a,b,c)};e.tv=function(a){return this.Ne.a[this.Vf+a|0]}; -e.qS=function(a,b){this.Ne.a[this.Vf+a|0]=b};e.pS=function(a,b,c,d){b.U(c,this.Ne,this.Vf+a|0,d)};e.zn=function(a,b){return this.CG(a,b)};e.$classData=x({W5:0},!1,"java.nio.HeapCharBuffer",{W5:1,S5:1,vN:1,b:1,ob:1,Lm:1,os:1,xba:1});function Gk(a,b,c,d,f){this.Ai=this.P=this.ma=this.rg=0;this.sr=b;this.tr=c;this.Ne=null;this.Vf=-1;ok(this,a);pk.prototype.va.call(this,d);pk.prototype.UE.call(this,f)}Gk.prototype=new t3;Gk.prototype.constructor=Gk;e=Gk.prototype;e.ch=function(){return!0}; -e.CG=function(a,b){if(0>a||b(this.ma-this.P|0))throw Bk();return new Gk(this.rg,this.sr,this.tr,this.P+a|0,this.P+b|0)};e.np=function(){var a=this.P;if(a===this.ma)throw new ol;this.P=1+a|0;return Ia(this.sr,this.tr+a|0)};e.wk=function(){throw new hl;};e.xP=function(a){if(0>a||a>=this.ma)throw Bk();return Ia(this.sr,this.tr+a|0)}; -e.wP=function(a,b,c){if(0>b||0>c||b>(a.a.length-c|0))throw Bk();var d=this.P,f=d+c|0;if(f>this.ma)throw new ol;this.P=f;for(c=d+c|0;d!==c;)a.a[b]=Ia(this.sr,this.tr+d|0),d=1+d|0,b=1+b|0};e.g=function(){var a=this.tr;return Ua(Sa(this.sr,this.P+a|0,this.ma+a|0))};e.tv=function(a){return Ia(this.sr,this.tr+a|0)};e.qS=function(){throw new hl;};e.pS=function(){throw new hl;};e.zn=function(a,b){return this.CG(a,b)}; -e.$classData=x({Y5:0},!1,"java.nio.StringCharBuffer",{Y5:1,S5:1,vN:1,b:1,ob:1,Lm:1,os:1,xba:1});class KF extends v3{constructor(a){super();this.Uba=a;yF(this,null,null);if(null===a)throw P();}Xe(){return"Flags \x3d '"+this.Uba+"'"}}KF.prototype.$classData=x({Tba:0},!1,"java.util.DuplicateFormatFlagsException",{Tba:1,uk:1,Bh:1,Cb:1,Za:1,Ka:1,b:1,d:1}); -class KX extends v3{constructor(a,b){super();this.Xba=a;this.Wba=b;yF(this,null,null);if(null===a)throw P();}Xe(){return"Conversion \x3d "+q(this.Wba)+", Flags \x3d "+this.Xba}}KX.prototype.$classData=x({Vba:0},!1,"java.util.FormatFlagsConversionMismatchException",{Vba:1,uk:1,Bh:1,Cb:1,Za:1,Ka:1,b:1,d:1});class VF extends v3{constructor(a){super();this.kca=a;yF(this,null,null)}Xe(){return"Code point \x3d 0x"+(+(this.kca>>>0)).toString(16)}} -VF.prototype.$classData=x({jca:0},!1,"java.util.IllegalFormatCodePointException",{jca:1,uk:1,Bh:1,Cb:1,Za:1,Ka:1,b:1,d:1});class LX extends v3{constructor(a,b){super();this.nca=a;this.mca=b;yF(this,null,null);if(null===b)throw P();}Xe(){return String.fromCharCode(this.nca)+" !\x3d "+this.mca.Ld.name}}LX.prototype.$classData=x({lca:0},!1,"java.util.IllegalFormatConversionException",{lca:1,uk:1,Bh:1,Cb:1,Za:1,Ka:1,b:1,d:1}); -class JX extends v3{constructor(a){super();this.pca=a;yF(this,null,null);if(null===a)throw P();}Xe(){return"Flags \x3d '"+this.pca+"'"}}JX.prototype.$classData=x({oca:0},!1,"java.util.IllegalFormatFlagsException",{oca:1,uk:1,Bh:1,Cb:1,Za:1,Ka:1,b:1,d:1});class MF extends v3{constructor(a){super();this.rca=a;yF(this,null,null)}Xe(){return""+this.rca}}MF.prototype.$classData=x({qca:0},!1,"java.util.IllegalFormatPrecisionException",{qca:1,uk:1,Bh:1,Cb:1,Za:1,Ka:1,b:1,d:1}); -class NF extends v3{constructor(a){super();this.tca=a;yF(this,null,null)}Xe(){return""+this.tca}}NF.prototype.$classData=x({sca:0},!1,"java.util.IllegalFormatWidthException",{sca:1,uk:1,Bh:1,Cb:1,Za:1,Ka:1,b:1,d:1});class SF extends v3{constructor(a){super();this.wca=a;yF(this,null,null);if(null===a)throw P();}Xe(){return"Format specifier '"+this.wca+"'"}}SF.prototype.$classData=x({vca:0},!1,"java.util.MissingFormatArgumentException",{vca:1,uk:1,Bh:1,Cb:1,Za:1,Ka:1,b:1,d:1}); -class PF extends v3{constructor(a){super();this.yca=a;yF(this,null,null);if(null===a)throw P();}Xe(){return this.yca}}PF.prototype.$classData=x({xca:0},!1,"java.util.MissingFormatWidthException",{xca:1,uk:1,Bh:1,Cb:1,Za:1,Ka:1,b:1,d:1});class IX extends v3{constructor(a){super();this.Jca=a;yF(this,null,null);if(null===a)throw P();}Xe(){return"Conversion \x3d '"+this.Jca+"'"}}IX.prototype.$classData=x({Ica:0},!1,"java.util.UnknownFormatConversionException",{Ica:1,uk:1,Bh:1,Cb:1,Za:1,Ka:1,b:1,d:1}); -function BN(a,b){this.lv=0;this.dg=null;this.Ch=this.mv=0;i_(this,a,b)}BN.prototype=new x3;BN.prototype.constructor=BN;BN.prototype.qQ=function(){return new xO(this)};BN.prototype.pQ=function(){return new wO(this)};BN.prototype.$classData=x({Lca:0},!1,"java.util.concurrent.ConcurrentHashMap$InnerHashMap",{Lca:1,poa:1,SP:1,MP:1,b:1,xz:1,d:1,gd:1}); -function Hn(a){if(!a.Qx){var b=a.ik;fI||(fI=new dI);var c=eI(a.ik);a.Rx=b.Ea(0g=>{var h=cI(f,g.uh);return SX(new RX(h,g.kk))})(a,c)):new C((()=>d=>SX(d))(a)));a.Qx=!0}return a.Rx} -class OZ extends ev{constructor(a,b,c){super();this.Rx=null;this.Qx=!1;this.cj=a;this.ku=b;this.ik=c;yF(this,null,null);if(!(b.jk>=a.jk))throw fm("requirement failed: principalPosition must be \x3e position");}g(){return"ParseError("+this.cj+", "+this.ku+", \x3c"+this.ik.y()+" traces\x3e)"}A(){return"ParseError"}B(){return 3}C(a){switch(a){case 0:return this.cj;case 1:return this.ku;case 2:return this.ik;default:return R(S(),a)}}p(){return tv(this)}c(a){if(this===a)return!0;if(a instanceof OZ){var b= -this.cj,c=a.cj;(null===b?null===c:b.c(c))?(b=this.ku,c=a.ku,b=null===b?null===c:b.c(c)):b=!1;if(b)return b=this.ik,a=a.ik,null===b?null===a:b.c(a)}return!1}}OZ.prototype.$classData=x({Q6:0},!1,"org.parboiled2.ParseError",{Q6:1,Cb:1,Za:1,Ka:1,b:1,d:1,z:1,o:1});x({Paa:0},!1,"scala.Tuple2$mcII$sp",{Paa:1,WD:1,b:1,BQ:1,z:1,o:1,d:1,Boa:1});function Dp(a){this.Gh=null;this.fi=this.wb=0;this.rfa=a;ef(this,a)}Dp.prototype=new T3;Dp.prototype.constructor=Dp; -function WW(a){try{var b=a.rfa.a[a.wb];a.wb=1+a.wb|0;return b}catch(c){if(c instanceof pp)return tt().Ra.s()|0;throw c;}}Dp.prototype.s=function(){return WW(this)};Dp.prototype.$classData=x({qfa:0},!1,"scala.collection.ArrayOps$ArrayIterator$mcB$sp",{qfa:1,xj:1,lb:1,b:1,ab:1,I:1,K:1,d:1});function Cp(a){this.Gh=null;this.fi=this.wb=0;this.tfa=a;ef(this,a)}Cp.prototype=new T3;Cp.prototype.constructor=Cp; -Cp.prototype.s=function(){try{var a=this.tfa.a[this.wb];this.wb=1+this.wb|0;var b=a}catch(c){if(c instanceof pp)b=Ma(tt().Ra.s());else throw c;}return q(b)};Cp.prototype.$classData=x({sfa:0},!1,"scala.collection.ArrayOps$ArrayIterator$mcC$sp",{sfa:1,xj:1,lb:1,b:1,ab:1,I:1,K:1,d:1});function zp(a){this.Gh=null;this.fi=this.wb=0;this.vfa=a;ef(this,a)}zp.prototype=new T3;zp.prototype.constructor=zp; -zp.prototype.s=function(){try{var a=this.vfa.a[this.wb];this.wb=1+this.wb|0;var b=a}catch(c){if(c instanceof pp)b=+tt().Ra.s();else throw c;}return b};zp.prototype.$classData=x({ufa:0},!1,"scala.collection.ArrayOps$ArrayIterator$mcD$sp",{ufa:1,xj:1,lb:1,b:1,ab:1,I:1,K:1,d:1});function Bp(a){this.Gh=null;this.fi=this.wb=0;this.xfa=a;ef(this,a)}Bp.prototype=new T3;Bp.prototype.constructor=Bp; -Bp.prototype.s=function(){try{var a=this.xfa.a[this.wb];this.wb=1+this.wb|0;var b=a}catch(c){if(c instanceof pp)b=+tt().Ra.s();else throw c;}return b};Bp.prototype.$classData=x({wfa:0},!1,"scala.collection.ArrayOps$ArrayIterator$mcF$sp",{wfa:1,xj:1,lb:1,b:1,ab:1,I:1,K:1,d:1});function yp(a){this.Gh=null;this.fi=this.wb=0;this.zfa=a;ef(this,a)}yp.prototype=new T3;yp.prototype.constructor=yp; -yp.prototype.s=function(){try{var a=this.zfa.a[this.wb];this.wb=1+this.wb|0;var b=a}catch(c){if(c instanceof pp)b=tt().Ra.s()|0;else throw c;}return b};yp.prototype.$classData=x({yfa:0},!1,"scala.collection.ArrayOps$ArrayIterator$mcI$sp",{yfa:1,xj:1,lb:1,b:1,ab:1,I:1,K:1,d:1});function Ap(a){this.Gh=null;this.fi=this.wb=0;this.Bfa=a;ef(this,a)}Ap.prototype=new T3;Ap.prototype.constructor=Ap; -Ap.prototype.s=function(){try{var a=this.Bfa.a[this.wb],b=a.m,c=a.r;this.wb=1+this.wb|0;var d=new p(b,c)}catch(f){if(f instanceof pp)d=fb(tt().Ra.s());else throw f;}return d};Ap.prototype.$classData=x({Afa:0},!1,"scala.collection.ArrayOps$ArrayIterator$mcJ$sp",{Afa:1,xj:1,lb:1,b:1,ab:1,I:1,K:1,d:1});function Ep(a){this.Gh=null;this.fi=this.wb=0;this.Dfa=a;ef(this,a)}Ep.prototype=new T3;Ep.prototype.constructor=Ep; -Ep.prototype.s=function(){try{var a=this.Dfa.a[this.wb];this.wb=1+this.wb|0;var b=a}catch(c){if(c instanceof pp)b=tt().Ra.s()|0;else throw c;}return b};Ep.prototype.$classData=x({Cfa:0},!1,"scala.collection.ArrayOps$ArrayIterator$mcS$sp",{Cfa:1,xj:1,lb:1,b:1,ab:1,I:1,K:1,d:1});function Gp(a){this.Gh=null;this.fi=this.wb=0;ef(this,a)}Gp.prototype=new T3;Gp.prototype.constructor=Gp;Gp.prototype.s=function(){try{this.wb=1+this.wb|0}catch(a){if(a instanceof pp)tt().Ra.s();else throw a;}}; -Gp.prototype.$classData=x({Efa:0},!1,"scala.collection.ArrayOps$ArrayIterator$mcV$sp",{Efa:1,xj:1,lb:1,b:1,ab:1,I:1,K:1,d:1});function Fp(a){this.Gh=null;this.fi=this.wb=0;this.Gfa=a;ef(this,a)}Fp.prototype=new T3;Fp.prototype.constructor=Fp;Fp.prototype.s=function(){try{var a=this.Gfa.a[this.wb];this.wb=1+this.wb|0;var b=a}catch(c){if(c instanceof pp)b=!!tt().Ra.s();else throw c;}return b}; -Fp.prototype.$classData=x({Ffa:0},!1,"scala.collection.ArrayOps$ArrayIterator$mcZ$sp",{Ffa:1,xj:1,lb:1,b:1,ab:1,I:1,K:1,d:1});function MM(a){this.Lv=a}MM.prototype=new P3;MM.prototype.constructor=MM;e=MM.prototype;e.w=function(){tt();return new a0(this.Lv)};e.L=function(){return 1};e.R=function(){return this.Lv};e.$b=function(){return this.Lv};e.X=function(){return qt().mc()};e.Qc=function(a){return 0d||d>=g)throw lu(new mu,d+" is out of bounds (min 0, max "+(-1+g|0)+")");g=((a.ad-a.Yb|0)&(-1+a.Ta.a.length|0))-b|0;var h=op(Bl(),c)-d|0;g=gb||b>=g)throw lu(new mu,b+" is out of bounds (min 0, max "+(-1+g|0)+")");b=(a.Yb+b|0)&(-1+a.Ta.a.length|0);g=a.Ta.a.length-b|0;g=f=this.Xa(a,b)};e.rj=function(a,b){return 0>this.Xa(a,b)};e.ij=function(a,b){return 0=this.Xa(a,b)};e.rj=function(a,b){return 0>this.Xa(a,b)};e.ij=function(a,b){return 0=this.Xa(a,b)};e.rj=function(a,b){return 0>this.Xa(a,b)};e.ij=function(a,b){return 0=this.Xa(a,b)};e.rj=function(a,b){return 0>this.Xa(a,b)};e.ij=function(a,b){return 0d=>dS(rt(),d))(a)))} -function E5(a){a.G=new JM(a);a.J$=new QM(a);a.t$=new RM(a);a.Gu=new SM(a);a.x$=new TM(a);a.D$=new UM(a);a.p$=new VM(a);a.sf=new WM(a);a.r$=new gN(a);a.H$=Aw(a.G,new C((()=>b=>b.g())(a)));a.B$=new KM(a);a.n$=Aw(a.G,new C((()=>b=>{b=b.ke;return rj(wj(),b)})(a)));a.l$=Aw(a.G,new C((()=>b=>b.zc.g())(a)));a.F$=Aw(a.G,new C((()=>b=>b.iF)(a)));a.LD=new PM(a);a.z$=a.LD;a.v$=a.LD}function F5(){this.ej=0;this.dj=this.Hb=null;pZ(this,6,Cm().ZP,"all")}F5.prototype=new rZ;F5.prototype.constructor=F5;e=F5.prototype; -e.A=function(){return"ALL"};e.B=function(){return 0};e.C=function(a){return R(S(),a)};e.p=function(){return 64897};e.g=function(){return"ALL"};e.$classData=x({xaa:0},!1,"wvlet.log.LogLevel$ALL$",{xaa:1,as:1,b:1,Eg:1,ob:1,d:1,z:1,o:1});var G5;function rN(){G5||(G5=new F5);return G5}function H5(){this.ej=0;this.dj=this.Hb=null;pZ(this,4,Cm().aQ,"debug")}H5.prototype=new rZ;H5.prototype.constructor=H5;e=H5.prototype;e.A=function(){return"DEBUG"};e.B=function(){return 0}; -e.C=function(a){return R(S(),a)};e.p=function(){return 64921139};e.g=function(){return"DEBUG"};e.$classData=x({yaa:0},!1,"wvlet.log.LogLevel$DEBUG$",{yaa:1,as:1,b:1,Eg:1,ob:1,d:1,z:1,o:1});var I5;function Nc(){I5||(I5=new H5);return I5}function J5(){this.ej=0;this.dj=this.Hb=null;pZ(this,1,Cm().eQ,"error")}J5.prototype=new rZ;J5.prototype.constructor=J5;e=J5.prototype;e.A=function(){return"ERROR"};e.B=function(){return 0};e.C=function(a){return R(S(),a)};e.p=function(){return 66247144};e.g=function(){return"ERROR"}; -e.$classData=x({zaa:0},!1,"wvlet.log.LogLevel$ERROR$",{zaa:1,as:1,b:1,Eg:1,ob:1,d:1,z:1,o:1});var K5;function jN(){K5||(K5=new J5);return K5}function L5(){this.ej=0;this.dj=this.Hb=null;pZ(this,3,Cm().NE,"info")}L5.prototype=new rZ;L5.prototype.constructor=L5;e=L5.prototype;e.A=function(){return"INFO"};e.B=function(){return 0};e.C=function(a){return R(S(),a)};e.p=function(){return 2251950};e.g=function(){return"INFO"}; -e.$classData=x({Aaa:0},!1,"wvlet.log.LogLevel$INFO$",{Aaa:1,as:1,b:1,Eg:1,ob:1,d:1,z:1,o:1});var M5;function Lx(){M5||(M5=new L5);return M5}function N5(){this.ej=0;this.dj=this.Hb=null;pZ(this,0,Cm().dQ,"off")}N5.prototype=new rZ;N5.prototype.constructor=N5;e=N5.prototype;e.A=function(){return"OFF"};e.B=function(){return 0};e.C=function(a){return R(S(),a)};e.p=function(){return 78159};e.g=function(){return"OFF"}; -e.$classData=x({Baa:0},!1,"wvlet.log.LogLevel$OFF$",{Baa:1,as:1,b:1,Eg:1,ob:1,d:1,z:1,o:1});var O5;function qN(){O5||(O5=new N5);return O5}function P5(){this.ej=0;this.dj=this.Hb=null;pZ(this,5,Cm().bQ,"trace")}P5.prototype=new rZ;P5.prototype.constructor=P5;e=P5.prototype;e.A=function(){return"TRACE"};e.B=function(){return 0};e.C=function(a){return R(S(),a)};e.p=function(){return 80083237};e.g=function(){return"TRACE"}; -e.$classData=x({Caa:0},!1,"wvlet.log.LogLevel$TRACE$",{Caa:1,as:1,b:1,Eg:1,ob:1,d:1,z:1,o:1});var Q5;function Bf(){Q5||(Q5=new P5);return Q5}function R5(){this.ej=0;this.dj=this.Hb=null;pZ(this,2,Cm().fQ,"warn")}R5.prototype=new rZ;R5.prototype.constructor=R5;e=R5.prototype;e.A=function(){return"WARN"};e.B=function(){return 0};e.C=function(a){return R(S(),a)};e.p=function(){return 2656902};e.g=function(){return"WARN"}; -e.$classData=x({Daa:0},!1,"wvlet.log.LogLevel$WARN$",{Daa:1,as:1,b:1,Eg:1,ob:1,d:1,z:1,o:1});var S5;function kN(){S5||(S5=new R5);return S5}x({TS:0},!1,"cats.kernel.instances.ByteGroup",{TS:1,b:1,Tla:1,bma:1,JS:1,RS:1,d:1,Ula:1,Wla:1});x({WS:0},!1,"cats.kernel.instances.StringOrder",{WS:1,b:1,MS:1,OS:1,DS:1,d:1,GS:1,Oma:1,IS:1});function Rf(a,b,c){this.he=this.ge=this.oe=this.S=this.Q=this.D=null;this.wq=a;this.In=b;this.Jn=c;VN(this,a,b,c)}Rf.prototype=new xV;Rf.prototype.constructor=Rf;e=Rf.prototype; -e.Aa=function(){return this.wq};e.za=function(){return this.In};e.Ya=function(){return this.Jn};e.fb=function(a,b){return new Rf(this.wq,a,b)};e.A=function(){return"Abs"};e.B=function(){return 3};e.C=function(a){switch(a){case 0:return this.wq;case 1:return this.In;case 2:return this.Jn;default:return R(S(),a)}};e.p=function(){return tv(this)}; -e.c=function(a){if(this===a)return!0;if(a instanceof Rf){if(this.wq===a.wq){var b=this.In,c=a.In;b=null===b?null===c:b.c(c)}else b=!1;if(b)return b=this.Jn,a=a.Jn,null===b?null===a:b.c(a)}return!1};var Iy=x({QU:0},!1,"inrae.semantic_web.node.Abs",{QU:1,ex:1,xi:1,wi:1,hb:1,b:1,z:1,o:1,d:1});Rf.prototype.$classData=Iy;function Uf(a,b,c){this.he=this.ge=this.oe=this.S=this.Q=this.D=null;this.yq=a;this.Kn=b;this.Ln=c;VN(this,a,b,c)}Uf.prototype=new xV;Uf.prototype.constructor=Uf;e=Uf.prototype;e.Aa=function(){return this.yq}; -e.za=function(){return this.Kn};e.Ya=function(){return this.Ln};e.fb=function(a,b){return new Uf(this.yq,a,b)};e.A=function(){return"Ceil"};e.B=function(){return 3};e.C=function(a){switch(a){case 0:return this.yq;case 1:return this.Kn;case 2:return this.Ln;default:return R(S(),a)}};e.p=function(){return tv(this)};e.c=function(a){if(this===a)return!0;if(a instanceof Uf){if(this.yq===a.yq){var b=this.Kn,c=a.Kn;b=null===b?null===c:b.c(c)}else b=!1;if(b)return b=this.Ln,a=a.Ln,null===b?null===a:b.c(a)}return!1}; -var Wy=x({jV:0},!1,"inrae.semantic_web.node.Ceil",{jV:1,ex:1,xi:1,wi:1,hb:1,b:1,z:1,o:1,d:1});Uf.prototype.$classData=Wy;function Wf(a,b,c){this.he=this.ge=this.oe=this.S=this.Q=this.D=null;this.Cq=a;this.Qn=b;this.Rn=c;VN(this,a,b,c)}Wf.prototype=new BV;Wf.prototype.constructor=Wf;e=Wf.prototype;e.Aa=function(){return this.Cq};e.za=function(){return this.Qn};e.Ya=function(){return this.Rn};e.fb=function(a,b){return new Wf(this.Cq,a,b)};e.A=function(){return"Datatype"};e.B=function(){return 3}; -e.C=function(a){switch(a){case 0:return this.Cq;case 1:return this.Qn;case 2:return this.Rn;default:return R(S(),a)}};e.p=function(){return tv(this)};e.c=function(a){if(this===a)return!0;if(a instanceof Wf){if(this.Cq===a.Cq){var b=this.Qn,c=a.Qn;b=null===b?null===c:b.c(c)}else b=!1;if(b)return b=this.Rn,a=a.Rn,null===b?null===a:b.c(a)}return!1};var rz=x({UV:0},!1,"inrae.semantic_web.node.Datatype",{UV:1,dna:1,xi:1,wi:1,hb:1,b:1,z:1,o:1,d:1});Wf.prototype.$classData=rz; -function Tf(a,b,c){this.he=this.ge=this.oe=this.S=this.Q=this.D=null;this.Eq=a;this.Vn=b;this.Wn=c;VN(this,a,b,c)}Tf.prototype=new xV;Tf.prototype.constructor=Tf;e=Tf.prototype;e.Aa=function(){return this.Eq};e.za=function(){return this.Vn};e.Ya=function(){return this.Wn};e.fb=function(a,b){return new Tf(this.Eq,a,b)};e.A=function(){return"Floor"};e.B=function(){return 3};e.C=function(a){switch(a){case 0:return this.Eq;case 1:return this.Vn;case 2:return this.Wn;default:return R(S(),a)}};e.p=function(){return tv(this)}; -e.c=function(a){if(this===a)return!0;if(a instanceof Tf){if(this.Eq===a.Eq){var b=this.Vn,c=a.Vn;b=null===b?null===c:b.c(c)}else b=!1;if(b)return b=this.Wn,a=a.Wn,null===b?null===a:b.c(a)}return!1};var Pz=x({FW:0},!1,"inrae.semantic_web.node.Floor",{FW:1,ex:1,xi:1,wi:1,hb:1,b:1,z:1,o:1,d:1});Tf.prototype.$classData=Pz;function Yf(a,b,c,d){this.he=this.ge=this.oe=this.S=this.Q=this.D=null;this.Jq=a;this.Iq=b;this.bo=c;this.co=d;VN(this,b,c,d)}Yf.prototype=new mV;Yf.prototype.constructor=Yf;e=Yf.prototype; -e.Aa=function(){return this.Iq};e.za=function(){return this.bo};e.Ya=function(){return this.co};e.fb=function(a,b){return new Yf(this.Jq,this.Iq,a,b)};e.A=function(){return"Lang"};e.B=function(){return 4};e.C=function(a){switch(a){case 0:return this.Jq;case 1:return this.Iq;case 2:return this.bo;case 3:return this.co;default:return R(S(),a)}};e.p=function(){return tv(this)}; -e.c=function(a){if(this===a)return!0;if(a instanceof Yf){var b=this.Jq,c=a.Jq;(null===b?null===c:b.c(c))&&this.Iq===a.Iq?(b=this.bo,c=a.bo,b=null===b?null===c:b.c(c)):b=!1;if(b)return b=this.co,a=a.co,null===b?null===a:b.c(a)}return!1};var dA=x({kX:0},!1,"inrae.semantic_web.node.Lang",{kX:1,QH:1,xi:1,wi:1,hb:1,b:1,z:1,o:1,d:1});Yf.prototype.$classData=dA;function Zf(a,b,c,d){this.he=this.ge=this.oe=this.S=this.Q=this.D=null;this.ao=a;this.Hq=b;this.Zn=c;this.$n=d;VN(this,b,c,d)}Zf.prototype=new mV; -Zf.prototype.constructor=Zf;e=Zf.prototype;e.Aa=function(){return this.Hq};e.za=function(){return this.Zn};e.Ya=function(){return this.$n};e.fb=function(a,b){return new Zf(this.ao,this.Hq,a,b)};e.A=function(){return"LangMatches"};e.B=function(){return 4};e.C=function(a){switch(a){case 0:return this.ao;case 1:return this.Hq;case 2:return this.Zn;case 3:return this.$n;default:return R(S(),a)}};e.p=function(){return tv(this)}; -e.c=function(a){if(this===a)return!0;if(a instanceof Zf){var b=this.ao,c=a.ao;(null===b?null===c:b.c(c))&&this.Hq===a.Hq?(b=this.Zn,c=a.Zn,b=null===b?null===c:b.c(c)):b=!1;if(b)return b=this.$n,a=a.$n,null===b?null===a:b.c(a)}return!1};var iA=x({tX:0},!1,"inrae.semantic_web.node.LangMatches",{tX:1,QH:1,xi:1,wi:1,hb:1,b:1,z:1,o:1,d:1});Zf.prototype.$classData=iA;function Vf(a,b,c){this.he=this.ge=this.oe=this.S=this.Q=this.D=null;this.Oq=a;this.oo=b;this.po=c;VN(this,a,b,c)}Vf.prototype=new xV; -Vf.prototype.constructor=Vf;e=Vf.prototype;e.Aa=function(){return this.Oq};e.za=function(){return this.oo};e.Ya=function(){return this.po};e.fb=function(a,b){return new Vf(this.Oq,a,b)};e.A=function(){return"Rand"};e.B=function(){return 3};e.C=function(a){switch(a){case 0:return this.Oq;case 1:return this.oo;case 2:return this.po;default:return R(S(),a)}};e.p=function(){return tv(this)}; -e.c=function(a){if(this===a)return!0;if(a instanceof Vf){if(this.Oq===a.Oq){var b=this.oo,c=a.oo;b=null===b?null===c:b.c(c)}else b=!1;if(b)return b=this.po,a=a.po,null===b?null===a:b.c(a)}return!1};var xB=x({KZ:0},!1,"inrae.semantic_web.node.Rand",{KZ:1,ex:1,xi:1,wi:1,hb:1,b:1,z:1,o:1,d:1});Vf.prototype.$classData=xB;function Qf(a,b,c,d,f,g){this.he=this.ge=this.oe=this.S=this.Q=this.D=null;this.Sq=a;this.Tq=b;this.Qq=c;this.Rq=d;this.xo=f;this.yo=g;VN(this,d,f,g)}Qf.prototype=new zV; -Qf.prototype.constructor=Qf;e=Qf.prototype;e.Aa=function(){return this.Rq};e.za=function(){return this.xo};e.Ya=function(){return this.yo};e.fb=function(a,b){return new Qf(this.Sq,this.Tq,this.Qq,this.Rq,a,b)};e.A=function(){return"Replace"};e.B=function(){return 6};e.C=function(a){switch(a){case 0:return this.Sq;case 1:return this.Tq;case 2:return this.Qq;case 3:return this.Rq;case 4:return this.xo;case 5:return this.yo;default:return R(S(),a)}};e.p=function(){return tv(this)}; -e.c=function(a){if(this===a)return!0;if(a instanceof Qf){var b=this.Sq,c=a.Sq;(null===b?null===c:b.c(c))?(b=this.Tq,c=a.Tq,b=null===b?null===c:b.c(c)):b=!1;b?(b=this.Qq,c=a.Qq,b=null===b?null===c:b.c(c)):b=!1;b&&this.Rq===a.Rq?(b=this.xo,c=a.xo,b=null===b?null===c:b.c(c)):b=!1;if(b)return b=this.yo,a=a.yo,null===b?null===a:b.c(a)}return!1};var OB=x({l_:0},!1,"inrae.semantic_web.node.Replace",{l_:1,OW:1,xi:1,wi:1,hb:1,b:1,z:1,o:1,d:1});Qf.prototype.$classData=OB; -function Sf(a,b,c){this.he=this.ge=this.oe=this.S=this.Q=this.D=null;this.Uq=a;this.zo=b;this.Ao=c;VN(this,a,b,c)}Sf.prototype=new xV;Sf.prototype.constructor=Sf;e=Sf.prototype;e.Aa=function(){return this.Uq};e.za=function(){return this.zo};e.Ya=function(){return this.Ao};e.fb=function(a,b){return new Sf(this.Uq,a,b)};e.A=function(){return"Round"};e.B=function(){return 3};e.C=function(a){switch(a){case 0:return this.Uq;case 1:return this.zo;case 2:return this.Ao;default:return R(S(),a)}};e.p=function(){return tv(this)}; -e.c=function(a){if(this===a)return!0;if(a instanceof Sf){if(this.Uq===a.Uq){var b=this.zo,c=a.zo;b=null===b?null===c:b.c(c)}else b=!1;if(b)return b=this.Ao,a=a.Ao,null===b?null===a:b.c(a)}return!1};var $B=x({M_:0},!1,"inrae.semantic_web.node.Round",{M_:1,ex:1,xi:1,wi:1,hb:1,b:1,z:1,o:1,d:1});Sf.prototype.$classData=$B;function Xf(a,b,c,d){this.he=this.ge=this.oe=this.S=this.Q=this.D=null;this.br=a;this.ar=b;this.Eo=c;this.Fo=d;VN(this,b,c,d)}Xf.prototype=new mV;Xf.prototype.constructor=Xf;e=Xf.prototype; -e.Aa=function(){return this.ar};e.za=function(){return this.Eo};e.Ya=function(){return this.Fo};e.fb=function(a,b){return new Xf(this.br,this.ar,a,b)};e.A=function(){return"Str"};e.B=function(){return 4};e.C=function(a){switch(a){case 0:return this.br;case 1:return this.ar;case 2:return this.Eo;case 3:return this.Fo;default:return R(S(),a)}};e.p=function(){return tv(this)}; -e.c=function(a){if(this===a)return!0;if(a instanceof Xf){var b=this.br,c=a.br;(null===b?null===c:b.c(c))&&this.ar===a.ar?(b=this.Eo,c=a.Eo,b=null===b?null===c:b.c(c)):b=!1;if(b)return b=this.Fo,a=a.Fo,null===b?null===a:b.c(a)}return!1};var vC=x({v0:0},!1,"inrae.semantic_web.node.Str",{v0:1,QH:1,xi:1,wi:1,hb:1,b:1,z:1,o:1,d:1});Xf.prototype.$classData=vC;function Pf(a,b,c,d,f){this.he=this.ge=this.oe=this.S=this.Q=this.D=null;this.fr=a;this.er=b;this.dr=c;this.Go=d;this.Ho=f;VN(this,c,d,f)} -Pf.prototype=new zV;Pf.prototype.constructor=Pf;e=Pf.prototype;e.Aa=function(){return this.dr};e.za=function(){return this.Go};e.Ya=function(){return this.Ho};e.fb=function(a,b){return new Pf(this.fr,this.er,this.dr,a,b)};e.A=function(){return"SubStr"};e.B=function(){return 5};e.C=function(a){switch(a){case 0:return this.fr;case 1:return this.er;case 2:return this.dr;case 3:return this.Go;case 4:return this.Ho;default:return R(S(),a)}};e.p=function(){return tv(this)}; -e.c=function(a){if(this===a)return!0;if(a instanceof Pf){var b=this.fr,c=a.fr;(null===b?null===c:b.c(c))?(b=this.er,c=a.er,b=null===b?null===c:b.c(c)):b=!1;b&&this.dr===a.dr?(b=this.Go,c=a.Go,b=null===b?null===c:b.c(c)):b=!1;if(b)return b=this.Ho,a=a.Ho,null===b?null===a:b.c(a)}return!1};var KC=x({Y0:0},!1,"inrae.semantic_web.node.SubStr",{Y0:1,OW:1,xi:1,wi:1,hb:1,b:1,z:1,o:1,d:1});Pf.prototype.$classData=KC;x({G3:0},!1,"io.lemonlabs.uri.AbsoluteUrl",{G3:1,b:1,e4:1,hC:1,gC:1,z:1,o:1,d:1,f4:1}); -x({a4:0},!1,"io.lemonlabs.uri.SimpleUrlWithoutAuthority",{a4:1,b:1,ena:1,hC:1,gC:1,z:1,o:1,d:1,f4:1});function Di(a){this.mba=a;this.gz=""}Di.prototype=new c5;Di.prototype.constructor=Di;Di.prototype.Oz=function(a){cU(this,null===a?"null":a)};function cU(a,b){for(;""!==b;){var c=b.indexOf("\n")|0;if(0>c)a.gz=""+a.gz+b,b="";else{var d=""+a.gz+b.substring(0,c);"undefined"!==typeof console&&(a.mba&&console.error?console.error(d):console.log(d));a.gz="";b=b.substring(1+c|0)}}} -Di.prototype.$classData=x({kba:0},!1,"java.lang.JSConsoleBasedPrintStream",{kba:1,una:1,tna:1,x5:1,b:1,Gx:1,cz:1,Hx:1,os:1});function T5(){this.HE=this.vz=null}T5.prototype=new e_;T5.prototype.constructor=T5;e=T5.prototype;e.Sa=function(a){return this.vz.Sy(a)};e.$D=function(a){return this.HE.$D(a)};e.fj=function(a){return null===this.vz.uj(a,void 0)};e.$=function(){return this.vz.Ch};e.zg=function(){return this.HE.zg()}; -e.$classData=x({ica:0},!1,"java.util.HashSet",{ica:1,OP:1,EE:1,b:1,qz:1,AE:1,UP:1,gd:1,d:1});function cI(a,b){for(;;){if(0>=a||b.k())return b;a=-1+a|0;b=b.X()}}function U5(a){this.Xv=a}U5.prototype=new WX;U5.prototype.constructor=U5;e=U5.prototype;e.v=function(){return this.Xv.v()};e.s=function(){return this.Xv.s()};e.A=function(){return"JIteratorWrapper"};e.B=function(){return 1};e.C=function(a){return 0===a?this.Xv:R(S(),a)};e.p=function(){return tv(this)}; -e.c=function(a){return this===a?!0:a instanceof U5?this.Xv===a.Xv:!1};e.$classData=x({nha:0},!1,"scala.collection.convert.JavaCollectionWrappers$JIteratorWrapper",{nha:1,lb:1,b:1,ab:1,I:1,K:1,d:1,z:1,o:1});function V5(a,b){if(0>=a.Sc(1))return a;for(var c=a.Tm(),d=iR(),f=a.w(),g=!1;f.v();){var h=f.s();d.fj(b.t(h))?c.Wa(h):g=!0}return g?c.yb():a} -function bJ(a,b){this.$z=0;this.zc=a;this.eea=b;if(null===a)throw fm("null value for BigDecimal");if(null===b)throw fm("null MathContext for BigDecimal");this.$z=1565550863}bJ.prototype=new DR;bJ.prototype.constructor=bJ;e=bJ.prototype; -e.p=function(){if(1565550863===this.$z){if(this.Km()&&4934>(cK(this.zc)-this.zc.Qa|0))var a=(new pK(wX(this.zc))).p();else{a=this.zc.Ei();if(Infinity!==a&&-Infinity!==a){var b=kK();a=W5(this,aK(a,b.Ds))}else a=!1;if(a)a=this.zc.Ei(),a=iu(S(),a);else{a=tX(this.zc);b=uv();var c=b.sj,d;var f=d=a.Qa,g=f>>31,h=d>>31;d=f-d|0;g=(-2147483648^d)>(-2147483648^f)?-1+(g-h|0)|0:g-h|0;64>a.ye?(f=a.ie,0===f.m&&0===f.r?(f=nG(),d=new p(d,g),g=d.m,d=d.m===g&&d.r===g>>31?pG(f,ma,d.m):0<=d.r?kG(0,2147483647):kG(0,-2147483648)): -d=pG(nG(),a.ie,sG(nG(),new p(d,g)))):d=hK(new dG,eG(a),sG(nG(),new p(d,g)));a=c.call(b,wX(d).p(),a.Qa)}}this.$z=a}return this.$z}; -e.c=function(a){if(a instanceof bJ)return W5(this,a);if(a instanceof pK){var b=a.ke;b=Zi(oj(),b);var c=cK(this.zc);if(b>3.3219280948873626*(-2+(c-this.zc.Qa|0)|0)){if(this.Km())try{var d=new dd(new pK(qX(this.zc)))}catch(f){if(f instanceof Wa)d=H();else throw f;}else d=H();if(d.k())return!1;d=d.Ja();return 0===cF(a.ke,d.ke)}return!1}return"number"===typeof a?(d=+a,Infinity!==d&&-Infinity!==d&&(a=this.zc.Ei(),Infinity!==a&&-Infinity!==a&&a===d)?(d=kK(),W5(this,aK(a,d.Ds))):!1):"number"===typeof a? -(d=+a,Infinity!==d&&-Infinity!==d&&(a=this.zc.Im(),Infinity!==a&&-Infinity!==a&&a===d)?(d=kK(),W5(this,aK(a,d.Ds))):!1):this.az()&<(this,a)};e.Zy=function(){try{return pX(this.zc,8),!0}catch(a){if(a instanceof Wa)return!1;throw a;}};e.bz=function(){try{return pX(this.zc,16),!0}catch(a){if(a instanceof Wa)return!1;throw a;}};e.$y=function(){return this.fv()&&0<=pX(this.zc,32).m&&65535>=pX(this.zc,32).m};e.fv=function(){try{return pX(this.zc,32),!0}catch(a){if(a instanceof Wa)return!1;throw a;}}; -e.az=function(){try{return pX(this.zc,64),!0}catch(a){if(a instanceof Wa)return!1;throw a;}};e.Km=function(){return 0>=this.zc.Qa?!0:0>=tX(this.zc).Qa};function W5(a,b){return 0===vX(a.zc,b.zc)}e.es=function(){return this.zc.xf()<<24>>24};e.gt=function(){return this.zc.xf()<<16>>16};e.xf=function(){return this.zc.xf()};e.eg=function(){return this.zc.eg()};e.Im=function(){return this.zc.Im()};e.Ei=function(){return this.zc.Ei()};e.g=function(){return this.zc.g()}; -e.kf=function(a){return vX(this.zc,a.zc)};e.vS=function(){return this.zc};e.$classData=x({cea:0},!1,"scala.math.BigDecimal",{cea:1,Eea:1,mj:1,b:1,d:1,Fea:1,rF:1,Eg:1,ob:1});function X5(a){a=ck(a.ke,2147483647);return 0!==a.Ca&&!a.c(rK().UQ)}function pK(a){this.ke=a}pK.prototype=new DR;pK.prototype.constructor=pK;e=pK.prototype; -e.p=function(){if(this.az()){var a=this.eg(),b=a.m;a=a.r;return(-1===a?0<=(-2147483648^b):-1=(-2147483648^b):0>a)?b:hu(S(),new p(b,a))}b=this.ke;return ku(S(),b)}; -e.c=function(a){if(a instanceof pK)return 0===cF(this.ke,a.ke);if(a instanceof bJ)return a.c(this);if("number"===typeof a){a=+a;var b=this.ke;b=Zi(oj(),b);if(53>=b)b=!0;else{var c=xX(this.ke);b=1024>=b&&c>=(-53+b|0)&&1024>c}return b&&!X5(this)?(b=this.ke,b=rj(wj(),b),XE($E(),b)===a):!1}return"number"===typeof a?(a=+a,b=this.ke,b=Zi(oj(),b),24>=b?b=!0:(c=xX(this.ke),b=128>=b&&c>=(-24+b|0)&&128>c),b&&!X5(this)?(b=this.ke,b=rj(wj(),b),fF().Nz(b)===a):!1):this.az()&<(this,a)}; -e.Zy=function(){var a=oK(rK(),-128);return 0<=this.kf(a)?(a=oK(rK(),127),0>=this.kf(a)):!1};e.bz=function(){var a=oK(rK(),-32768);return 0<=this.kf(a)?(a=oK(rK(),32767),0>=this.kf(a)):!1};e.$y=function(){var a=oK(rK(),0);return 0<=this.kf(a)?(a=oK(rK(),65535),0>=this.kf(a)):!1};e.fv=function(){var a=oK(rK(),-2147483648);return 0<=this.kf(a)?(a=oK(rK(),2147483647),0>=this.kf(a)):!1}; -e.az=function(){var a=qK(rK(),new p(0,-2147483648));return 0<=this.kf(a)?(a=qK(rK(),new p(-1,2147483647)),0>=this.kf(a)):!1};e.Km=function(){return!0};e.es=function(){return this.ke.xf()<<24>>24};e.gt=function(){return this.ke.xf()<<16>>16};e.xf=function(){return this.ke.xf()};e.eg=function(){return this.ke.eg()};e.Im=function(){var a=this.ke;a=rj(wj(),a);return fF().Nz(a)};e.Ei=function(){var a=this.ke;a=rj(wj(),a);return XE($E(),a)};e.g=function(){var a=this.ke;return rj(wj(),a)}; -e.kf=function(a){return cF(this.ke,a.ke)};e.vS=function(){return this.ke};var nK=x({fea:0},!1,"scala.math.BigInt",{fea:1,Eea:1,mj:1,b:1,d:1,Fea:1,rF:1,Eg:1,ob:1});pK.prototype.$classData=nK;function jJ(){iJ=this}jJ.prototype=new t;jJ.prototype.constructor=jJ;e=jJ.prototype;e.Hi=function(a,b){return 0>=this.Xa(a,b)};e.rj=function(a,b){return 0>this.Xa(a,b)};e.ij=function(a,b){return 0a||a>=this.$())throw lu(new mu,""+a);return this.pz[a]};kH.prototype.fj=function(a){this.pz.push(a);return!0};kH.prototype.$classData=x({Qba:0},!1,"java.util.ArrayList",{Qba:1,ioa:1,EE:1,b:1,qz:1,AE:1,uca:1,qoa:1,gd:1,d:1});function z6(){}z6.prototype=new P3;z6.prototype.constructor=z6;function A6(){}A6.prototype=z6.prototype;z6.prototype.Fb=function(){return IP()};z6.prototype.g=function(){return this.jf()+"(\x3cnot computed\x3e)"}; -z6.prototype.Hc=function(){return"View"};function B6(a,b){return a===b?!0:b&&b.$classData&&b.$classData.Eb.cn?a.$()===b.$()&&a.rS(b):!1}function C6(){this.Bk=0;this.Iv="Any";H();J();m(xb);this.Bk=cb(this)}C6.prototype=new m6;C6.prototype.constructor=C6;C6.prototype.Md=function(){return m(xb)};C6.prototype.pe=function(a){return new v(a)};C6.prototype.$classData=x({Mea:0},!1,"scala.reflect.ManifestFactory$AnyManifest$",{Mea:1,tF:1,sF:1,b:1,ei:1,fh:1,Eh:1,gh:1,d:1,o:1});var D6; -function Uo(){D6||(D6=new C6);return D6}function E6(){this.rd=0;this.lf="Boolean";this.rd=cb(this)}E6.prototype=new Z5;E6.prototype.constructor=E6;E6.prototype.$classData=x({Nea:0},!1,"scala.reflect.ManifestFactory$BooleanManifest$",{Nea:1,Qoa:1,$m:1,b:1,ei:1,fh:1,Eh:1,gh:1,d:1,o:1});var F6;function wp(){F6||(F6=new E6);return F6}function G6(){this.rd=0;this.lf="Byte";this.rd=cb(this)}G6.prototype=new a6;G6.prototype.constructor=G6; -G6.prototype.$classData=x({Oea:0},!1,"scala.reflect.ManifestFactory$ByteManifest$",{Oea:1,Roa:1,$m:1,b:1,ei:1,fh:1,Eh:1,gh:1,d:1,o:1});var H6;function Lo(){H6||(H6=new G6);return H6}function I6(){this.rd=0;this.lf="Char";this.rd=cb(this)}I6.prototype=new c6;I6.prototype.constructor=I6;I6.prototype.$classData=x({Pea:0},!1,"scala.reflect.ManifestFactory$CharManifest$",{Pea:1,Soa:1,$m:1,b:1,ei:1,fh:1,Eh:1,gh:1,d:1,o:1});var J6;function dm(){J6||(J6=new I6);return J6} -function K6(){this.rd=0;this.lf="Double";this.rd=cb(this)}K6.prototype=new e6;K6.prototype.constructor=K6;K6.prototype.$classData=x({Qea:0},!1,"scala.reflect.ManifestFactory$DoubleManifest$",{Qea:1,Toa:1,$m:1,b:1,ei:1,fh:1,Eh:1,gh:1,d:1,o:1});var L6;function tp(){L6||(L6=new K6);return L6}function M6(){this.rd=0;this.lf="Float";this.rd=cb(this)}M6.prototype=new g6;M6.prototype.constructor=M6; -M6.prototype.$classData=x({Rea:0},!1,"scala.reflect.ManifestFactory$FloatManifest$",{Rea:1,Uoa:1,$m:1,b:1,ei:1,fh:1,Eh:1,gh:1,d:1,o:1});var N6;function vp(){N6||(N6=new M6);return N6}function O6(){this.rd=0;this.lf="Int";this.rd=cb(this)}O6.prototype=new i6;O6.prototype.constructor=O6;O6.prototype.$classData=x({Sea:0},!1,"scala.reflect.ManifestFactory$IntManifest$",{Sea:1,Voa:1,$m:1,b:1,ei:1,fh:1,Eh:1,gh:1,d:1,o:1});var P6;function Vj(){P6||(P6=new O6);return P6} -function Q6(){this.rd=0;this.lf="Long";this.rd=cb(this)}Q6.prototype=new k6;Q6.prototype.constructor=Q6;Q6.prototype.$classData=x({Tea:0},!1,"scala.reflect.ManifestFactory$LongManifest$",{Tea:1,Woa:1,$m:1,b:1,ei:1,fh:1,Eh:1,gh:1,d:1,o:1});var R6;function up(){R6||(R6=new Q6);return R6}function wK(){this.Bk=0;this.Iv="Nothing";H();J();m(cq);this.Bk=cb(this)}wK.prototype=new m6;wK.prototype.constructor=wK;wK.prototype.Md=function(){return m(cq)};wK.prototype.pe=function(a){return new v(a)}; -wK.prototype.$classData=x({Uea:0},!1,"scala.reflect.ManifestFactory$NothingManifest$",{Uea:1,tF:1,sF:1,b:1,ei:1,fh:1,Eh:1,gh:1,d:1,o:1});var vK;function yK(){this.Bk=0;this.Iv="Null";H();J();m(bq);this.Bk=cb(this)}yK.prototype=new m6;yK.prototype.constructor=yK;yK.prototype.Md=function(){return m(bq)};yK.prototype.pe=function(a){return new v(a)};yK.prototype.$classData=x({Vea:0},!1,"scala.reflect.ManifestFactory$NullManifest$",{Vea:1,tF:1,sF:1,b:1,ei:1,fh:1,Eh:1,gh:1,d:1,o:1});var xK; -function S6(){this.Bk=0;this.Iv="Object";H();J();m(xb);this.Bk=cb(this)}S6.prototype=new m6;S6.prototype.constructor=S6;S6.prototype.Md=function(){return m(xb)};S6.prototype.pe=function(a){return new v(a)};S6.prototype.$classData=x({Wea:0},!1,"scala.reflect.ManifestFactory$ObjectManifest$",{Wea:1,tF:1,sF:1,b:1,ei:1,fh:1,Eh:1,gh:1,d:1,o:1});var T6;function mq(){T6||(T6=new S6);return T6}function U6(){this.rd=0;this.lf="Short";this.rd=cb(this)}U6.prototype=new o6;U6.prototype.constructor=U6; -U6.prototype.$classData=x({Xea:0},!1,"scala.reflect.ManifestFactory$ShortManifest$",{Xea:1,Xoa:1,$m:1,b:1,ei:1,fh:1,Eh:1,gh:1,d:1,o:1});var V6;function kh(){V6||(V6=new U6);return V6}function W6(){this.rd=0;this.lf="Unit";this.rd=cb(this)}W6.prototype=new q6;W6.prototype.constructor=W6;W6.prototype.$classData=x({Yea:0},!1,"scala.reflect.ManifestFactory$UnitManifest$",{Yea:1,Yoa:1,$m:1,b:1,ei:1,fh:1,Eh:1,gh:1,d:1,o:1});var X6;function uK(){X6||(X6=new W6);return X6} -function y5(a,b){return a===b?!0:b&&b.$classData&&b.$classData.Eb.tb&&b.gp(a)?a.wj(b):!1}function CP(a){this.Qga=a}CP.prototype=new A6;CP.prototype.constructor=CP;CP.prototype.w=function(){return gq(this.Qga)};CP.prototype.$classData=x({Pga:0},!1,"scala.collection.View$$anon$1",{Pga:1,Od:1,ia:1,b:1,ea:1,I:1,ga:1,K:1,fa:1,Ad:1,d:1});function Y6(){this.Uv=this.Ks=null}Y6.prototype=new A6;Y6.prototype.constructor=Y6;function Z6(){}Z6.prototype=Y6.prototype; -Y6.prototype.w=function(){return(new hP(this.Ks,new $6(this.Uv))).w()};Y6.prototype.L=function(){var a=this.Ks.L();return 0<=a?1+a|0:-1};Y6.prototype.k=function(){return!1};Y6.prototype.$classData=x({QF:0},!1,"scala.collection.View$Appended",{QF:1,Od:1,ia:1,b:1,ea:1,I:1,ga:1,K:1,fa:1,Ad:1,d:1});function hP(a,b){this.RF=a;this.SF=b}hP.prototype=new A6;hP.prototype.constructor=hP;hP.prototype.w=function(){return this.RF.w().bh(new Tm((a=>()=>a.SF.w())(this)))}; -hP.prototype.L=function(){var a=this.RF.L();if(0<=a){var b=this.SF.L();return 0<=b?a+b|0:-1}return-1};hP.prototype.k=function(){return this.RF.k()&&this.SF.k()};hP.prototype.$classData=x({Rga:0},!1,"scala.collection.View$Concat",{Rga:1,Od:1,ia:1,b:1,ea:1,I:1,ga:1,K:1,fa:1,Ad:1,d:1});function iY(a,b){this.TF=a;this.Tga=b}iY.prototype=new A6;iY.prototype.constructor=iY;iY.prototype.w=function(){var a=this.TF.w();return new l0(a,this.Tga)};iY.prototype.L=function(){return 0===this.TF.L()?0:-1}; -iY.prototype.k=function(){return this.TF.k()};iY.prototype.$classData=x({Sga:0},!1,"scala.collection.View$DistinctBy",{Sga:1,Od:1,ia:1,b:1,ea:1,I:1,ga:1,K:1,fa:1,Ad:1,d:1});function aP(a,b,c){a.Vv=b;a.uA=c;a.Ls=0a?0:a};eY.prototype.k=function(){return 0>=this.VF}; -eY.prototype.$classData=x({Vga:0},!1,"scala.collection.View$Fill",{Vga:1,Od:1,ia:1,b:1,ea:1,I:1,ga:1,K:1,fa:1,Ad:1,d:1});function lP(a,b,c){this.CR=a;this.Zga=b;this.Yga=c}lP.prototype=new A6;lP.prototype.constructor=lP;lP.prototype.w=function(){var a=this.CR.w();return new k0(a,this.Zga,this.Yga)};lP.prototype.L=function(){return 0===this.CR.L()?0:-1};lP.prototype.k=function(){return!this.w().v()}; -lP.prototype.$classData=x({Xga:0},!1,"scala.collection.View$Filter",{Xga:1,Od:1,ia:1,b:1,ea:1,I:1,ga:1,K:1,fa:1,Ad:1,d:1});function S3(a,b){this.DR=a;this.aha=b}S3.prototype=new A6;S3.prototype.constructor=S3;S3.prototype.w=function(){var a=this.DR.w();return new ow(a,this.aha)};S3.prototype.L=function(){return 0===this.DR.L()?0:-1};S3.prototype.k=function(){return!this.w().v()};S3.prototype.$classData=x({$ga:0},!1,"scala.collection.View$FlatMap",{$ga:1,Od:1,ia:1,b:1,ea:1,I:1,ga:1,K:1,fa:1,Ad:1,d:1}); -function mP(a,b,c){a.Ms=b;a.vA=c;return a}function nP(){this.vA=this.Ms=null}nP.prototype=new A6;nP.prototype.constructor=nP;function b7(){}b7.prototype=nP.prototype;nP.prototype.w=function(){var a=this.Ms.w();return new Lp(a,this.vA)};nP.prototype.L=function(){return this.Ms.L()};nP.prototype.k=function(){return this.Ms.k()};nP.prototype.$classData=x({ER:0},!1,"scala.collection.View$Map",{ER:1,Od:1,ia:1,b:1,ea:1,I:1,ga:1,K:1,fa:1,Ad:1,d:1});function c7(){}c7.prototype=new A6; -c7.prototype.constructor=c7;function d7(){}d7.prototype=c7.prototype;function $6(a){this.cha=a}$6.prototype=new A6;$6.prototype.constructor=$6;$6.prototype.w=function(){tt();return new a0(this.cha)};$6.prototype.L=function(){return 1};$6.prototype.k=function(){return!1};$6.prototype.$classData=x({bha:0},!1,"scala.collection.View$Single",{bha:1,Od:1,ia:1,b:1,ea:1,I:1,ga:1,K:1,fa:1,Ad:1,d:1});function fY(a,b){this.WF=a;this.eha=b}fY.prototype=new A6;fY.prototype.constructor=fY; -fY.prototype.w=function(){tt();return new j0(this.WF,this.eha)};fY.prototype.L=function(){var a=this.WF;return 0>a?0:a};fY.prototype.k=function(){return 0>=this.WF};fY.prototype.$classData=x({dha:0},!1,"scala.collection.View$Tabulate",{dha:1,Od:1,ia:1,b:1,ea:1,I:1,ga:1,K:1,fa:1,Ad:1,d:1});function Q3(a,b,c){a.Wv=b;a.wA=c;a.xA=0=b?a=tt().Ra:2147483647!==b&&(0=this.Xa(a,b)};e.rj=function(a,b){return 0>this.Xa(a,b)};e.ij=function(a,b){return 0a?-1:1)<<24>>24};e.hl=function(a){return a|0};e.We=function(a){return a<<24>>24};e.wv=function(a,b){return Xa(a|0,b|0)<<24>>24};e.Vm=function(a,b){return Va(a|0,b|0)<<24>>24};e.gl=function(a,b){return k(a|0,b|0)<<24>>24};e.Dh=function(a,b){return((a|0)-(b|0)|0)<<24>>24}; -e.Bg=function(a,b){return((a|0)+(b|0)|0)<<24>>24};e.Xa=function(a,b){return(a|0)-(b|0)|0};e.$classData=x({mea:0},!1,"scala.math.Numeric$ByteIsIntegral$",{mea:1,b:1,Joa:1,bA:1,cA:1,zk:1,rk:1,Ak:1,yk:1,d:1,uea:1});var oJ;function f7(){}f7.prototype=new t;f7.prototype.constructor=f7;e=f7.prototype;e.Hi=function(a,b){return 0>=this.Xa(a,b)};e.rj=function(a,b){return 0>this.Xa(a,b)};e.ij=function(a,b){return 0a?-1:1))};e.hl=function(a){return Ma(a)}; -e.We=function(a){return q(65535&a)};e.wv=function(a,b){return q(65535&Xa(Ma(a),Ma(b)))};e.Vm=function(a,b){return q(65535&Va(Ma(a),Ma(b)))};e.gl=function(a,b){return q(65535&k(Ma(a),Ma(b)))};e.Dh=function(a,b){return q(65535&(Ma(a)-Ma(b)|0))};e.Bg=function(a,b){return q(65535&(Ma(a)+Ma(b)|0))};e.Xa=function(a,b){return Ma(a)-Ma(b)|0};e.$classData=x({nea:0},!1,"scala.math.Numeric$CharIsIntegral$",{nea:1,b:1,Koa:1,bA:1,cA:1,zk:1,rk:1,Ak:1,yk:1,d:1,wea:1});var g7; -function sJ(){g7||(g7=new f7);return g7}function hJ(){}hJ.prototype=new t;hJ.prototype.constructor=hJ;e=hJ.prototype;e.Hi=function(a,b){return 0>=this.Xa(a,b)};e.rj=function(a,b){return 0>this.Xa(a,b)};e.ij=function(a,b){return 0a?-1:1};e.hl=function(a){return a|0};e.We=function(a){return a};e.wv=function(a,b){return Xa(a|0,b|0)};e.Vm=function(a,b){return Va(a|0,b|0)};e.gl=function(a,b){return k(a|0,b|0)};e.Dh=function(a,b){return(a|0)-(b|0)|0}; -e.Bg=function(a,b){return(a|0)+(b|0)|0};e.Xa=function(a,b){a|=0;b|=0;return a===b?0:a=this.Xa(a,b)};e.rj=function(a,b){return 0>this.Xa(a,b)};e.ij=function(a,b){return 0b?-1:0===b&&0===a.m?0:1;return new p(a,a>>31)};e.hl=function(a){return fb(a).m};e.We=function(a){return new p(a,a>>31)};e.wv=function(a,b){a=fb(a);var c=fb(b);b=new p(a.m,a.r);c=new p(c.m,c.r);a=tj();b=gk(a,b.m,b.r,c.m,c.r);return new p(b,a.sa)};e.Vm=function(a,b){a=fb(a);var c=fb(b);b=new p(a.m,a.r);c=new p(c.m,c.r);a=tj();b=vj(a,b.m,b.r,c.m,c.r);return new p(b,a.sa)}; -e.gl=function(a,b){a=fb(a);var c=fb(b);b=new p(a.m,a.r);a=new p(c.m,c.r);c=b.m;var d=a.m,f=65535&c,g=c>>>16|0,h=65535&d,l=d>>>16|0,n=k(f,h);h=k(g,h);var r=k(f,l);f=n+((h+r|0)<<16)|0;n=(n>>>16|0)+r|0;b=(((k(c,a.r)+k(b.r,d)|0)+k(g,l)|0)+(n>>>16|0)|0)+(((65535&n)+h|0)>>>16|0)|0;return new p(f,b)};e.Dh=function(a,b){a=fb(a);b=fb(b);var c=new p(a.m,a.r);a=new p(b.m,b.r);b=c.m;c=c.r;var d=a.r;a=b-a.m|0;return new p(a,(-2147483648^a)>(-2147483648^b)?-1+(c-d|0)|0:c-d|0)}; -e.Bg=function(a,b){a=fb(a);b=fb(b);var c=new p(a.m,a.r);a=new p(b.m,b.r);b=c.m;c=c.r;var d=a.r;a=b+a.m|0;return new p(a,(-2147483648^a)<(-2147483648^b)?1+(c+d|0)|0:c+d|0)};e.Xa=function(a,b){var c=fb(a);a=c.m;c=c.r;var d=fb(b);b=d.m;d=d.r;return nI(tj(),a,c,b,d)};e.$classData=x({pea:0},!1,"scala.math.Numeric$LongIsIntegral$",{pea:1,b:1,Moa:1,bA:1,cA:1,zk:1,rk:1,Ak:1,yk:1,d:1,Aea:1});var i7;function uJ(){i7||(i7=new h7);return i7}function lJ(){}lJ.prototype=new t;lJ.prototype.constructor=lJ;e=lJ.prototype; -e.Hi=function(a,b){return 0>=this.Xa(a,b)};e.rj=function(a,b){return 0>this.Xa(a,b)};e.ij=function(a,b){return 0a?-1:1)<<16>>16};e.hl=function(a){return a|0};e.We=function(a){return a<<16>>16};e.wv=function(a,b){return Xa(a|0,b|0)<<16>>16};e.Vm=function(a,b){return Va(a|0,b|0)<<16>>16};e.gl=function(a,b){return k(a|0,b|0)<<16>>16};e.Dh=function(a,b){return((a|0)-(b|0)|0)<<16>>16};e.Bg=function(a,b){return((a|0)+(b|0)|0)<<16>>16}; -e.Xa=function(a,b){return(a|0)-(b|0)|0};e.$classData=x({qea:0},!1,"scala.math.Numeric$ShortIsIntegral$",{qea:1,b:1,Ooa:1,bA:1,cA:1,zk:1,rk:1,Ak:1,yk:1,d:1,Dea:1});var kJ;function an(a,b){xJ();var c=a.RA(),d=a.YE().We(1);a=a.YE();return new j7(c,b,d,a)}function vw(a,b,c){this.iO=this.hO=this.ry=null;if(null===a)throw K(L(),null);this.ry=a;this.hO=b;this.iO=c}vw.prototype=new t;vw.prototype.constructor=vw;e=vw.prototype;e.vb=function(){return pw()};e.Z=function(a,b){return new CS(this.ry.cp,b,this)}; -e.oa=function(a,b){return wM(this,a,b)};e.nc=function(){return"expected dictionary"};e.dc=function(){return null};e.tc=function(){return eM(this)};e.rc=function(){return fM(this)};e.l=function(){return gM(this)};e.Ob=function(){return hM(this)};e.cc=function(){return kM(this)};e.cd=function(){return lM(this)};e.sc=function(){return mM(this)};e.dd=function(){return nM(this)};e.nd=function(){return oM(this)};e.ld=function(){return pM(this)};e.kd=function(){return qM(this)};e.md=function(){return rM(this)}; -e.js=function(a){return this.hO.js(a)};e.$u=function(a){return this.iO.$u(a)};e.na=function(){return this.ry.cp};e.Je=function(){return this.ry.cp};e.$classData=x({C9:0},!1,"upickle.core.Types$ReadWriter$$anon$2",{C9:1,b:1,H9:1,gO:1,ka:1,ha:1,la:1,yD:1,ra:1,qa:1,BD:1});function tw(a,b){this.sy=null;this.lO=b;if(null===a)throw K(L(),null);this.sy=a}tw.prototype=new t;tw.prototype.constructor=tw;e=tw.prototype;e.vb=function(){return pw()};e.Z=function(a,b){return new CS(this.sy.ty,b,this)}; -e.oa=function(a,b){return wM(this,a,b)};e.nc=function(){return"expected dictionary"};e.dc=function(){return null};e.tc=function(){return eM(this)};e.rc=function(){return fM(this)};e.l=function(){return gM(this)};e.Ob=function(){return hM(this)};e.cc=function(){return kM(this)};e.cd=function(){return lM(this)};e.sc=function(){return mM(this)};e.dd=function(){return nM(this)};e.nd=function(){return oM(this)};e.ld=function(){return pM(this)};e.kd=function(){return qM(this)};e.md=function(){return rM(this)}; -e.js=function(a){for(var b=null,c=this.lO.w();null===b&&c.v();){var d=c.s().js(a);null!==d&&(b=d)}return b};e.$u=function(a){for(var b=null,c=this.lO.w();null===b&&c.v();){var d=c.s().$u(a);null!==d&&(b=d)}return b};e.na=function(){return this.sy.ty};e.Je=function(){return this.sy.ty};e.$classData=x({J9:0},!1,"upickle.core.Types$TaggedReadWriter$Node",{J9:1,b:1,H9:1,gO:1,ka:1,ha:1,la:1,yD:1,ra:1,qa:1,BD:1});function k7(){}k7.prototype=new P3;k7.prototype.constructor=k7;function l7(){} -e=l7.prototype=k7.prototype;e.c=function(a){return B6(this,a)};e.p=function(){var a=uv();return vv(a,this,a.gA)};e.Hc=function(){return"Set"};e.g=function(){return ue(this)};e.rS=function(a){return this.xg(a)};e.fs=function(a){return E0(this,a)};e.Di=function(a){this.Sa(a)};e.t=function(a){return this.Sa(a)};function B5(a,b){return a===b?!0:b&&b.$classData&&b.$classData.Eb.zj?a.$()===b.$()&&a.xg(new C(((c,d)=>f=>N(O(),d.bi(f.ib,bY().sR),f.Va))(a,b))):!1} -function m7(a,b,c){if(kv(ov(),b)){var d=Vs(a,a.oc,Ws(Xs(),new ms(b)));5!==a.Ev&&6!==a.Ev&&d||c.aF(b)}else throw K(L(),b);}function at(a,b,c,d){a.Zz=c;a.Dv=d;a.Cv=null;a.Ev=b;Mu(a);return a}function bt(){this.Cv=this.Dv=this.Zz=this.oc=null;this.Ev=0}bt.prototype=new p5;bt.prototype.constructor=bt;function o5(a,b){a.Cv=b;b=a.Dv;try{b.gE(a)}catch(d){var c=Yu(L(),d);if(null!==c)a.Zz=null,a.Cv=null,a.Dv=null,m7(a,c,b);else throw d;}} -bt.prototype.wp=function(){var a=this.Cv,b=this.Zz,c=this.Dv;this.Dv=this.Cv=this.Zz=null;try{switch(this.Ev){case 0:var d=null;break;case 1:d=a instanceof Is?new Is(b.t(a.Ja())):a;break;case 2:if(a instanceof Is){var f=b.t(a.Ja());f instanceof Nu?r5(f,this):q5(this,f);d=null}else d=a;break;case 3:d=Ws(Xs(),b.t(a));break;case 4:var g=b.t(a);g instanceof Nu?r5(g,this):q5(this,g);d=null;break;case 5:a.Ba(b);d=null;break;case 6:b.t(a);d=null;break;case 7:d=a instanceof ms?Ws(Xs(),a.tQ(b)):a;break;case 8:if(a instanceof -ms){var h=b.Ic(a.Fh,Gs().MQ);d=h!==Gs().kF?(h instanceof Nu?r5(h,this):q5(this,h),null):a}else d=a;break;case 9:d=a instanceof ms||b.t(a.Ja())?a:Gs().LQ;break;case 10:d=a instanceof Is?new Is(b.Ic(a.Ja(),Gs().JQ)):a;break;default:d=new ms(Kq("BUG: encountered transformation promise with illegal type: "+this.Ev))}null!==d&&Vs(this,this.oc,d)}catch(l){if(a=Yu(L(),l),null!==a)m7(this,a,c);else throw l;}}; -bt.prototype.$classData=x({$da:0},!1,"scala.concurrent.impl.Promise$Transformation",{$da:1,RQ:1,XP:1,b:1,d:1,Qda:1,Kda:1,Fda:1,da:1,QQ:1,BE:1,Doa:1});function bn(a){this.Ui=a}bn.prototype=new t;bn.prototype.constructor=bn;e=bn.prototype;e.Km=function(){return!0};e.kf=function(a){return this.Ui-Ma(a)|0};e.g=function(){return""+this.RA()};e.Zy=function(){return this.Km()&&this.xf()===this.es()};e.bz=function(){return this.Km()&&this.xf()===this.gt()}; -e.fv=function(){if(this.Km()){var a=this.eg();var b=this.xf();a=a.m===b&&a.r===b>>31}else a=!1;return a};e.Ei=function(){return this.Ui};e.Im=function(){return ka(this.Ui)};e.eg=function(){var a=this.Ui;return new p(a,a>>31)};e.xf=function(){return this.Ui};e.es=function(){return this.Ui<<24>>24};e.gt=function(){return this.Ui<<16>>16};e.$y=function(){return!0};e.p=function(){return this.Ui};e.c=function(a){Zt||(Zt=new Yt);return a instanceof bn?this.Ui===a.Ui:!1};e.YE=function(){return sJ()}; -e.RA=function(){return q(this.Ui)};e.$classData=x({tla:0},!1,"scala.runtime.RichChar",{tla:1,b:1,kla:1,Bla:1,xla:1,rF:1,Bda:1,Ada:1,rla:1,Eg:1,ob:1,sla:1});function C2(a){this.ng=a}C2.prototype=new t;C2.prototype.constructor=C2;e=C2.prototype;e.Km=function(){return!0};e.kf=function(a){var b=this.ng,c=fb(new p(b.m,b.r));b=c.m;c=c.r;var d=fb(a);a=d.m;d=d.r;return nI(tj(),b,c,a,d)};e.g=function(){return""+this.RA()};e.Ei=function(){var a=this.ng,b=a.m;a=a.r;return Wt(tj(),b,a)}; -e.Im=function(){var a=this.ng,b=a.m;a=a.r;return mI(tj(),b,a)};e.eg=function(){var a=this.ng;return new p(a.m,a.r)};e.xf=function(){return this.ng.m};e.es=function(){return this.ng.m<<24>>24};e.gt=function(){return this.ng.m<<16>>16};e.Zy=function(){bu();var a=this.ng,b=a.m<<24>>24;return b===a.m&&b>>31===a.r};e.bz=function(){bu();var a=this.ng,b=a.m<<16>>16;return b===a.m&&b>>31===a.r};e.$y=function(){bu();var a=this.ng,b=65535&a.m;return b===a.m&&b>>31===a.r}; -e.fv=function(){bu();var a=this.ng,b=a.m;return b===a.m&&b>>31===a.r};e.p=function(){var a=this.ng;return a.m^a.r};e.c=function(a){bu();var b=this.ng;if(a instanceof C2){a=a.ng;var c=a.r;b=b.m===a.m&&b.r===c}else b=!1;return b};e.YE=function(){return uJ()};e.RA=function(){return this.ng};e.$classData=x({vla:0},!1,"scala.runtime.RichLong",{vla:1,b:1,kla:1,Bla:1,xla:1,rF:1,Bda:1,Ada:1,rla:1,Eg:1,ob:1,sla:1});function n7(){}n7.prototype=new P3;n7.prototype.constructor=n7;function o7(){} -e=o7.prototype=n7.prototype;e.gp=function(){return!0};e.c=function(a){return y5(this,a)};e.p=function(){return QK(this)};e.g=function(){return ue(this)};e.kb=function(a){var b=this.Fb(),c=b.sb,d=new Y6;d.Ks=this;d.Uv=a;return c.call(b,d)};e.hd=function(a){return gY(this,a)};e.Zd=function(a){return fP(this,a)};e.xh=function(a){return this.Zd(a)};e.$=function(){return this.y()};e.yh=function(){return ih(this)};e.uf=function(a){return hY(this,a)};e.Yy=function(a){return 0<=a&&0c=>z(new B,c.ib,b.wR.t(c.Va)))(this)))};e.yc=function(a){a=this.rA.yc(a);var b=this.wR;return a.k()?H():new dd(b.t(a.Ja()))};e.L=function(){return this.rA.L()};e.k=function(){return this.rA.k()}; -e.$classData=x({Hga:0},!1,"scala.collection.MapView$MapValues",{Hga:1,ZQ:1,Od:1,ia:1,b:1,ea:1,I:1,ga:1,K:1,fa:1,Ad:1,d:1,tR:1,gi:1,wa:1,da:1});function N7(){}N7.prototype=new l7;N7.prototype.constructor=N7;function O7(){}O7.prototype=N7.prototype;N7.prototype.Fb=function(){return HO()};function by(a,b,c){return((d,f)=>g=>f.Jj(g))(a,b)(c)}function VU(a,b,c){a=new P4(a,b,c);b=new gS(-1,!1);return a.Jj(b).g()}function M7(a,b){this.KF=this.Sv=this.Uv=this.Ks=null;r7(this,a,b)}M7.prototype=new x7; -M7.prototype.constructor=M7;e=M7.prototype;e.w=function(){return new JG(this)};e.Hc=function(){return"IndexedSeqView"};e.R=function(){return this.V(0)};e.Kd=function(){return f0(this)};e.$b=function(){return g0(this)};e.Sc=function(a){var b=this.y();return b===a?0:b>31;var l=g>>>31|0|g>>31<<1;for(g=(h===l?(-2147483648^c)>(-2147483648^g<<1):h>l)?g:c;f()=>{if(d.k())return IQ();xt();var g=f.t(zY(d).R()),h=E8(zY(d).Oc(),f);return new FQ(g,h)})(a,b)))},Z0=function G8(a,b){if(0>=b)return xt().Jh;xt();return new tY(new Tm(((d,f)=>()=>{if(d.k())return IQ();xt();var g=zY(d).R(),h=G8(zY(d).Oc(),-1+f|0);return new FQ(g,h)})(a,b)))}; -function H8(a,b,c,d,f){b.x=""+b.x+c;if(!a.Ye)b.x+="\x3cnot computed\x3e";else if(!a.k()){c=zY(a).R();b.x=""+b.x+c;c=a;var g=zY(a).Oc();if(c!==g&&(!g.Ye||zY(c)!==zY(g))&&(c=g,g.Ye&&!g.k()))for(g=zY(g).Oc();c!==g&&g.Ye&&!g.k()&&zY(c)!==zY(g);){b.x=""+b.x+d;var h=zY(c).R();b.x=""+b.x+h;c=zY(c).Oc();g=zY(g).Oc();g.Ye&&!g.k()&&(g=zY(g).Oc())}if(!g.Ye||g.k()){for(;c!==g;)b.x=""+b.x+d,a=zY(c).R(),b.x=""+b.x+a,c=zY(c).Oc();c.Ye||(b.x=""+b.x+d,b.x+="\x3cnot computed\x3e")}else{h=a;for(a=0;;){var l=h,n=g;if(l!== -n&&zY(l)!==zY(n))h=zY(h).Oc(),g=zY(g).Oc(),a=1+a|0;else break}h=c;l=g;(h===l||zY(h)===zY(l))&&0a?1:D0(this,a)};e.Yy=function(a){return x0(this,a)};e.V=function(a){return oh(this,a)};e.xg=function(a){return y0(this,a)};e.hs=function(a){return z0(this,a)};e.Sa=function(a){return A0(this,a)};e.wj=function(a){return B0(this,a)};e.Fi=function(a,b){return C0(this,a,b)}; -function zY(a){if(!a.cG&&!a.cG){if(a.dG)throw K(L(),dv(new ev,"self-referential LazyList or a derivation thereof has no more elements"));a.dG=!0;try{var b=gq(a.MR)}finally{a.dG=!1}a.Ye=!0;a.MR=null;a.NR=b;a.cG=!0}return a.NR}e.k=function(){return zY(this)===IQ()};e.L=function(){return this.Ye&&this.k()?0:-1};e.R=function(){return zY(this).R()};function xY(a){var b=a,c=a;for(b.k()||(b=zY(b).Oc());c!==b&&!b.k();){b=zY(b).Oc();if(b.k())break;b=zY(b).Oc();if(b===c)break;c=zY(c).Oc()}return a} -e.w=function(){return this.Ye&&this.k()?tt().Ra:new W0(this)};e.Ba=function(a){for(var b=this;!b.k();)a.t(zY(b).R()),b=zY(b).Oc()};e.hj=function(a,b){for(var c=this;;){if(c.k())return a;var d=zY(c).Oc();a=b.Oe(a,zY(c).R());c=d}};e.jf=function(){return"LazyList"};function I8(a,b){xt();return new tY(new Tm(((c,d)=>()=>{if(c.k()){var f=gq(d);return f instanceof tY?zY(f):0===f.L()?IQ():EY(xt(),f.w())}xt();f=zY(c).R();var g=I8(zY(c).Oc(),d);return new FQ(f,g)})(a,b)))} -function J8(a,b){return a.Ye&&a.k()?DP(xt(),b):I8(a,new Tm(((c,d)=>()=>d)(a,b)))}function K8(a,b){return a.Ye&&a.k()?(xt(),new tY(new Tm(((c,d)=>()=>{xt();var f=xt().Jh;return new FQ(d,f)})(a,b)))):I8(a,new Tm(((c,d)=>()=>{tt();return new a0(d)})(a,b)))}function KQ(a,b){return a.Ye&&a.k()?xt().Jh:yY(xt(),a,b,!1)}e.$A=function(a){return new JQ(this,a)};function L8(a,b){xt();return new tY(new Tm(((c,d)=>()=>{xt();return new FQ(d,c)})(a,b)))} -function M8(a,b){if(a.Ye&&a.k())return DP(xt(),b);if(0===b.L())return a;xt();return new tY(new Tm(((c,d)=>()=>BY(xt(),d.w(),new Tm((f=>()=>zY(f))(c))))(a,b)))}e.ks=function(a){for(var b=this;;){if(b.k())return H();var c=zY(b).R();if(a.t(c))return new dd(c);b=zY(b).Oc()}};function Y0(a,b){return 0>=b?a:a.Ye&&a.k()?xt().Jh:CY(xt(),a,b)}e.Xy=function(a){if(!(0=a||this.Ye&&this.k()?xt().Jh:DY(xt(),this,a)};e.Qc=function(a){return Y0(this,a)};e.qd=function(a){return this.Ye&&this.k()?xt().Jh:AY(xt(),this,a)};e.Ea=function(a){return this.Ye&&this.k()?xt().Jh:F8(this,a)};e.hd=function(a){return M8(this,a)}; -e.qe=function(a){return L8(this,a)};e.nb=function(a){return KQ(this,a)};e.kb=function(a){return K8(this,a)};e.Zd=function(a){return J8(this,a)};e.X=function(){return zY(this).Oc()};e.Fb=function(){return xt()};e.$classData=x({Uha:0},!1,"scala.collection.immutable.LazyList",{Uha:1,Pd:1,zb:1,ia:1,b:1,ea:1,I:1,ga:1,K:1,fa:1,tb:1,wa:1,da:1,bb:1,o:1,id:1,Db:1,Fd:1,AA:1,Qv:1,pA:1,BA:1,d:1}); -function N8(a,b,c,d,f){b.x=""+b.x+c;if(!a.k()){c=a.R();b.x=""+b.x+c;c=a;if(a.fl()){var g=a.X();if(c!==g&&(c=g,g.fl()))for(g=g.X();c!==g&&g.fl();){b.x=""+b.x+d;var h=c.R();b.x=""+b.x+h;c=c.X();g=g.X();g.fl()&&(g=g.X())}if(g.fl()){for(h=0;a!==g;)a=a.X(),g=g.X(),h=1+h|0;c===g&&0a?1:D0(this,a)};e.Yy=function(a){return x0(this,a)}; -e.V=function(a){return oh(this,a)};e.xg=function(a){return y0(this,a)};e.hs=function(a){return z0(this,a)};e.Sa=function(a){return A0(this,a)};e.wj=function(a){return B0(this,a)};e.Fi=function(a,b){return C0(this,a,b)};e.jf=function(){return"Stream"};e.Ba=function(a){for(var b=this;!b.k();)a.t(b.R()),b=b.X()};e.ks=function(a){for(var b=this;;){if(b.k())return H();if(a.t(b.R()))return new dd(b.R());b=b.X()}};e.hj=function(a,b){for(var c=this;;){if(c.k())return a;var d=c.X();a=b.Oe(a,c.R());c=d}}; -function P8(a,b){if(a.k())return a=wt(),b=gq(b),IY(a,b);var c=a.R();return new LY(c,new Tm(((d,f)=>()=>P8(d.X(),f))(a,b)))}function YQ(a,b,c){for(;!a.k()&&!!b.t(a.R())===c;)a=a.X();return a.k()?MY():NY(wt(),a,b,c)}e.$A=function(a){return new XQ(this,a)};function Q8(a,b){return new LY(b,new Tm((c=>()=>c)(a)))}function R8(a,b){if(a.k())return MY();var c=b.t(a.R());return new LY(c,new Tm(((d,f)=>()=>R8(d.X(),f))(a,b)))} -function S8(a,b){if(a.k())return MY();var c=new vy(a),d=wt(),f=b.t(c.Bb.R());for(d=IY(d,f);!c.Bb.k()&&d.k();)c.Bb=c.Bb.X(),c.Bb.k()||(d=wt(),f=b.t(c.Bb.R()),d=IY(d,f));return c.Bb.k()?MY():P8(d,new Tm(((g,h,l)=>()=>S8(h.Bb.X(),l))(a,c,b)))}e.tf=function(a,b,c,d){this.vP();N8(this,a.bd,b,c,d);return a};e.g=function(){return N8(this,mX("Stream"),"(",", ",")").x};e.t=function(a){return oh(this,a|0)};e.je=function(a){return x0(this,a|0)};e.qd=function(a){return S8(this,a)}; -e.Ea=function(a){return R8(this,a)};e.qe=function(a){return Q8(this,a)};e.nb=function(a){return YQ(this,a,!1)};e.Fb=function(){return wt()};function mn(a){this.Qf=a}mn.prototype=new T7;mn.prototype.constructor=mn;e=mn.prototype;e.gp=function(a){return W7(this,a)};e.Hc=function(){return"IndexedSeq"};e.w=function(){return new JG(new o8(this.Qf))};e.qe=function(a){return this.Fb().sb(new Q7(a,this))};e.Rg=function(a){return this.vf(new R7(this,a))};e.Qc=function(a){return d0(this,a)}; -e.Ea=function(a){return this.Fb().sb(new P7(this,a))};e.R=function(){return q(65535&(this.Qf.charCodeAt(0)|0))};e.Kd=function(){return f0(this)};e.$b=function(){return g0(this)};e.Sc=function(a){var b=this.Qf.length|0;return b===a?0:b>la(a)&a)<<1;return 1073741824>a?a:1073741824}function kR(a,b,c){a.MA=c;a.Te=new (y(Nr).M)(a9(b));a.uG=Ya(a.Te.a.length*a.MA);a.yn=0;return a}function iR(){var a=new lR;kR(a,16,.75);return a}function lR(){this.MA=0;this.Te=null;this.yn=this.uG=0}lR.prototype=new D8;lR.prototype.constructor=lR;e=lR.prototype;e.nb=function(a){return mY(this,a)};e.$=function(){return this.yn};function M4(a){return a^(a>>>16|0)} -e.Sa=function(a){var b=M4(ku(S(),a)),c=this.Te.a[b&(-1+this.Te.a.length|0)];if(null===c)a=null;else a:for(;;){if(b===c.Fj&&N(O(),a,c.xn)){a=c;break a}if(null===c.bf||c.Fj>b){a=null;break a}c=c.bf}return null!==a};e.qc=function(a){a=a9(Ya((1+a|0)/this.MA));a>this.Te.a.length&&$8(this,a)};e.fj=function(a){(1+this.yn|0)>=this.uG&&$8(this,this.Te.a.length<<1);return Z8(this,a,M4(ku(S(),a)))}; -function jR(a,b){a.qc(b.L());if(b instanceof AQ)return b.sd.kE(new gn((d=>(f,g)=>{Z8(d,f,M4(g|0))})(a))),a;if(b instanceof lR){for(b=new K4(b);b.v();){var c=b.s();Z8(a,c.xn,c.Fj)}return a}return EJ(a,b)}e.w=function(){return new J4(this)};e.Fb=function(){return nR()};e.L=function(){return this.yn};e.k=function(){return 0===this.yn};e.Ba=function(a){for(var b=this.Te.a.length,c=0;ch=>z(new B,h,g.mp(h,null)))(this,a))),d=new dd(new k0(c,new C((()=>f=>null!==f.Va)(this)),!1))}catch(f){throw f;}return d.k()?tt().Ra:d.Ja()};e.k=function(){return!this.w().v()}; -function b9(){try{var a=zN(),b=Hi(),c=new T5,d=Ki();c.vz=d;for(c.HE=new u3(d);;){for(var f=b.Hm().zg();f.v();){var g=f.s(),h=g.Ag,l=g.cg;"string"===typeof h&&(d=h,"string"===typeof l&&c.fj(d))}if(null!==b.nv)b=b.nv;else break}var n=new sq(a,c);CN();var r=n.lha,u=new dd((null===r?null:new c9(r)).w())}catch(w){throw w;}return u.k()?tt().Ra:u.Ja()}e.pE=function(a){try{var b=new dd(LE(ME(),Li(Ii(),a)))}catch(c){throw c;}return b.k()?H():b.Ja()}; -e.Wa=function(a){try{var b=a.ib,c=a.Va,d=Ii();null!==d.oj?(Li(d,b),d.oj[b]=c):d.Om.uj(b,c)}catch(f){throw f;}return this};e.Sa=function(a){try{var b=new dd(!this.yc(a).k())}catch(c){throw c;}return b.k()?!1:!!b.Ja()};e.yc=function(a){return this.pE(a)};e.bE=function(){return null};e.$classData=x({$ea:0},!1,"scala.sys.SystemProperties",{$ea:1,nG:1,Dk:1,ia:1,b:1,ea:1,I:1,ga:1,K:1,fa:1,zj:1,gi:1,wa:1,da:1,Gk:1,o:1,QA:1,Ie:1,zG:1,Se:1,gd:1,we:1,Vd:1,Ud:1,Ij:1}); -function d9(a,b){var c=new sK(a.Kc,a.Ze),d=new sK(a.Kc,a.Re);a=d.Ym.gl(d.Hv,a.Kc.We(b));return gt(c,a)}function nn(){this.HA=0;this.GA=!1;this.FA=0;this.Re=this.ki=this.Ze=null;this.Wp=!1;this.Kc=null;this.mh=0}nn.prototype=new T7;nn.prototype.constructor=nn;function e9(){}e=e9.prototype=nn.prototype;e.uf=function(a){return V5(this,a)};e.qe=function(a){return $3(this,a)};e.kb=function(a){return a4(this,a)};e.Zd=function(a){return b4(this,a)};e.hd=function(a){return c4(this,a)}; -e.Ea=function(a){return kY(this,a)};e.qd=function(a){return lY(this,a)};e.nb=function(a){return mY(this,a)};e.Rg=function(a){return nY(this,a)};e.gp=function(a){return W7(this,a)};e.wj=function(a){return X7(this,a)};e.bg=function(){return st()};e.Hc=function(){return"IndexedSeq"};e.Kd=function(){return f0(this)};e.Sc=function(a){var b=this.y();return b===a?0:b>24&&0===(1&this.mh)<<24>>24){a:{xJ();var a=this.Ze,b=this.ki,c=this.Re,d=this.Wp,f=this.Kc,g=f.We(0),h=0>f.Xa(a,b),l=0r&&0u;if(0===u)throw fm("step cannot be 0.");f?f=0:(d=r>>31,g=n>>31,f=r-n|0,g=(-2147483648^f)>(-2147483648^r)?-1+(d-g| -0)|0:d-g|0,c=u>>31,d=tj(),f=vj(d,f,g,u,c),d=d.sa,f=1+f|0,d=0===f?1+d|0:d,f=(0===d?-1<(-2147483648^f):0>31,c=n>>31,d=r-n|0,g=(-2147483648^d)>(-2147483648^r)?-1+(g-c|0)|0:g-c|0,c=u>>31,gk(tj(),d,g,u,c)}n=0>f?zJ(Bt(),n,r,u,!0):f;break a}f=n>r&&0u||n===r;if(0===u)throw fm("step cannot be 0.");f?f=0:(d=r>>31,g=n>>31,f=r-n|0,g=(-2147483648^f)>(-2147483648^r)?-1+(d-g|0)|0:d-g|0,c=u>>31,d=tj(),f=vj(d,f,g,u,c),d=d.sa,c=r>>31,b=n>>31,g=r- -n|0,b=(-2147483648^g)>(-2147483648^r)?-1+(c-b|0)|0:c-b|0,h=u>>31,c=tj(),g=gk(c,g,b,u,h),c=c.sa,c=0!==g||0!==c?1:0,g=c>>31,c=f+c|0,f=(-2147483648^c)<(-2147483648^f)?1+(d+g|0)|0:d+g|0,f=(0===f?-1<(-2147483648^c):0>31,c=n>>31,d=r-n|0,g=(-2147483648^d)>(-2147483648^r)?-1+(g-c|0)|0:g-c|0,c=u>>31,gk(tj(),d,g,u,c)}n=0>f?zJ(Bt(),n,r,u,!1):f;break a}}}f&&f.$classData&&f.$classData.Eb.Ioa&&(N(O(),f.Dh(f.Bg(a,c),a),c)||aJ(a,c),N(O(),f.Dh(b,f.Dh(b,c)), -c)||aJ(b,c));r=f.We(1);n=f.We(2147483647);u=f.ht(a);var w=f.ht(b);u=f.gl(u,w);0<=f.Xa(u,g)?(b=f.Dh(b,a),u=cJ(f.Vm(b,c),f,n),c=f.Dh(b,f.gl(u,c)),n=!d&&N(O(),g,c)?u:cJ(f.Bg(u,r),f,n)):(u=f.We(-1),u=l?u:r,u=l&&0>f.Xa(u,a)||!l&&0f.Xa(a,b)!==h?r=d&&N(O(),a,b)?f.Bg(u,f.We(2)):f.Bg(u,r):(h=cJ(f.Vm(f.Dh(b,a),c),f,n),g=N(O(),h,g)?a:f.Bg(a,f.gl(h,c)),r=f.Bg(u,f.Bg(h,!d&&N(O(),g,b)?r:f.We(2)))),n=cJ(r,f,n));n=f.hl(n)}}this.HA= -n;this.mh=(1|this.mh)<<24>>24}return this.HA};e.k=function(){0===(2&this.mh)<<24>>24&&0===(2&this.mh)<<24>>24&&(this.GA=0this.Kc.Xa(this.Ze,this.ki)&&0>this.Kc.Xa(this.Re,this.Kc.We(0))?!0:0===this.Kc.Xa(this.Ze,this.ki)?!this.Wp:!1,this.mh=(2|this.mh)<<24>>24);return this.GA};e.$b=function(){return this.k()?F().op():d9(this,-1+this.y()|0)};e.R=function(){return this.k()?F().op():this.Ze}; -e.V=function(a){if(0>a||a>=this.y())throw lu(new mu,a+" is out of bounds (min 0, max "+(-1+this.y()|0)+")");return d9(this,a)};e.Ba=function(a){for(var b=0,c=this.Ze;b>24&&0===(4&this.mh)<<24>>24&&(this.FA=QK(this),this.mh=(4|this.mh)<<24>>24);return this.FA};e.ep=function(){return 2147483647};e.c=function(a){return a instanceof nn?W7(a,this)&&this.y()===a.y()&&(this.k()||N(O(),this.Ze,a.Ze)&&N(O(),this.$b(),a.$b())):y5(this,a)};e.g=function(){var a=this.k()?"empty ":"",b=this.Wp?"to":"until",c=N(O(),this.Re,1)?"":" by "+this.Re;return a+"NumericRange "+this.Ze+" "+b+" "+this.ki+c};e.jf=function(){return"NumericRange"}; -e.Fb=function(){return st()};e.Qc=function(a){0>=a||this.k()?a=this:a>=this.y()?(a=this.ki,xJ(),a=new f9(a,a,this.Re,this.Kc)):a=this.oP(d9(this,a),this.ki,this.Re);return a};e.t=function(a){return this.V(a|0)};e.X=function(){if(this.k()){g9(F());var a=void 0}else a=this.Wp?new j7(gt(new sK(this.Kc,this.Ze),this.Re),this.ki,this.Re,this.Kc):new f9(gt(new sK(this.Kc,this.Ze),this.Re),this.ki,this.Re,this.Kc);return a}; -function h9(a){var b=a.Kg,c=b>>31,d=a.ec;a=d>>31;d=b-d|0;return new p(d,(-2147483648^d)>(-2147483648^b)?-1+(c-a|0)|0:c-a|0)}function i9(a){var b=h9(a),c=a.Ab,d=c>>31;a=tj();b=gk(a,b.m,b.r,c,d);a=a.sa;return 0===b&&0===a} -function j9(a,b,c,d){a.ec=b;a.Kg=c;a.Ab=d;a.Bf=b>c&&0d||b===c&&!a.ci();if(0===d)throw fm("step cannot be 0.");if(a.Bf)b=0;else{b=h9(a);var f=a.Ab,g=f>>31;var h=tj();b=vj(h,b.m,b.r,f,g);h=h.sa;g=a.ci()||!i9(a)?1:0;f=g>>31;g=b+g|0;h=new p(g,(-2147483648^g)<(-2147483648^b)?1+(h+f|0)|0:h+f|0);b=h.m;h=h.r;b=(0===h?-1<(-2147483648^b):0>31,b=gk(tj(),b.m,b.r,d,h),c=0!==b?c-b|0:a.ci()?c:c- -d|0}a.Xp=c}function k9(){this.Ab=this.Kg=this.ec=0;this.Bf=!1;this.Xp=this.Pf=0}k9.prototype=new T7;k9.prototype.constructor=k9;function l9(){}e=l9.prototype=k9.prototype;e.uf=function(a){return V5(this,a)};e.qe=function(a){return $3(this,a)};e.kb=function(a){return a4(this,a)};e.Zd=function(a){return b4(this,a)};e.hd=function(a){return c4(this,a)};e.qd=function(a){return lY(this,a)};e.nb=function(a){return mY(this,a)};e.gp=function(a){return W7(this,a)};e.bg=function(){return st()};e.Hc=function(){return"IndexedSeq"}; -e.Kd=function(){return f0(this)};e.Sc=function(a){var b=this.y();return b===a?0:bthis.Pf?zJ(Bt(),this.ec,this.Kg,this.Ab,this.ci()):this.Pf};function m9(a){if(a.Bf)throw K(L(),AJ("last"));return a.Xp}function n9(a){0>a.Pf&&zJ(Bt(),a.ec,a.Kg,a.Ab,a.ci())} -e.Ba=function(a){if(!this.Bf)for(var b=this.ec;;){a.t(b);if(b===this.Xp)break;b=b+this.Ab|0}};e.wj=function(a){if(a instanceof k9){var b=this.y();switch(b){case 0:return a.Bf;case 1:return 1===a.y()&&this.ec===a.ec;default:return a.y()===b&&this.ec===a.ec&&this.Ab===a.Ab}}else return X7(this,a)};function q1(a,b){if(0>=b||a.Bf)return a;if(b>=a.Pf&&0<=a.Pf)return b=a.Kg,new NS(b,b,a.Ab);b=a.ec+k(a.Ab,b)|0;var c=a.Kg,d=a.Ab;return a.ci()?new p1(b,c,d):new NS(b,c,d)} -e.Sa=function(a){ua(a)?(a|=0,a=!(a===this.Kg&&!this.ci())&&(0this.Kg)&&(1===this.Ab||0===Xa(a-this.ec|0,this.Ab)):!(athis.ec)&&(-1===this.Ab||0===Xa(a-this.ec|0,this.Ab)))):a=lQ(this,a);return a};e.ep=function(){return 2147483647};e.c=function(a){if(a instanceof k9){if(this.Bf)return a.Bf;if(a.Bf||this.ec!==a.ec)return!1;var b=m9(this);return b===m9(a)&&(this.ec===b||this.Ab===a.Ab)}return y5(this,a)}; -e.p=function(){if(2<=this.y()){var a=uv(),b=this.Ab,c=this.Xp;return rv(a.j(a.j(a.j(a.be,this.ec),b),c))}return QK(this)};e.g=function(){var a=this.ci()?"to":"until",b=1===this.Ab?"":" by "+this.Ab;return(this.Bf?"empty ":i9(this)?"":"inexact ")+"Range "+this.ec+" "+a+" "+this.Kg+b};e.jf=function(){return"Range"};e.Xy=function(a){if(!(1<=a)){var b=zn();throw fm("requirement failed: "+yn(b,"size\x3d%d, but size must be positive",qc(new rc,[a])));}return this.Bf?tt().Ra:new o1(this,a)}; -e.Fm=function(a){n9(this);if(0>a||a>=this.Pf)throw lu(new mu,a+" is out of bounds (min 0, max "+(-1+this.Pf|0)+")");return this.ec+k(this.Ab,a)|0};e.Fb=function(){return st()};e.yh=function(){return this}; -e.Rg=function(a){if(0>=a){var b=this.ec;b=new NS(b,b,this.Ab)}else if(0<=this.Pf)b=q1(this,this.Pf-a|0);else{b=m9(this);var c=b>>31,d=this.Ab,f=d>>31;a=-1+a|0;var g=a>>31,h=65535&d,l=d>>>16|0,n=65535&a,r=a>>>16|0,u=k(h,n);n=k(l,n);var w=k(h,r);h=u+((n+w|0)<<16)|0;u=(u>>>16|0)+w|0;f=(((k(d,g)+k(f,a)|0)+k(l,r)|0)+(u>>>16|0)|0)+(((65535&u)+n|0)>>>16|0)|0;d=b-h|0;c=(-2147483648^d)>(-2147483648^b)?-1+(c-f|0)|0:c-f|0;0>31,f=c===a?(-2147483648^d)<(-2147483648^f):cthis.Ab?(f=this.ec,a=f>>31,c=c===a?(-2147483648^d)>(-2147483648^f):c>a):c=!1;b=c?this:new p1(d,b,this.Ab)}return b};e.Qc=function(a){return q1(this,a)};e.t=function(a){return this.Fm(a|0)};e.V=function(a){return this.Fm(a)};e.Ea=function(a){n9(this);return kY(this,a)};e.X=function(){if(this.Bf)throw K(L(),AJ("tail"));if(1===this.Pf){var a=this.Kg;a=new NS(a,a,this.Ab)}else a=this.ci()?new p1(this.ec+this.Ab|0,this.Kg,this.Ab):new NS(this.ec+this.Ab|0,this.Kg,this.Ab);return a}; -e.R=function(){if(this.Bf)throw K(L(),AJ("head"));return this.ec};e.$b=function(){return m9(this)};x({US:0},!1,"cats.kernel.instances.ByteOrder",{US:1,b:1,kma:1,MS:1,OS:1,DS:1,d:1,sma:1,Yla:1,ema:1,GS:1,Jma:1,ima:1,IS:1,Ima:1,Hma:1,Kma:1,Rla:1,Qla:1,yma:1,wma:1,oma:1,qma:1,rma:1,pma:1,xma:1,zma:1});function c9(a){this.Lp=a}c9.prototype=new D8;c9.prototype.constructor=c9;e=c9.prototype;e.fs=function(a){var b=new hR(16,.75);IW(b,this);IW(b,a);return b.Df};e.nb=function(a){return mY(this,a)};e.$=function(){return this.Lp.$()}; -e.k=function(){return this.Lp.k()};e.L=function(){return this.Lp.k()?0:-1};e.w=function(){var a=zN(),b=this.Lp.zg();a=new rq(a,b);CN();a=a.jha;return null===a?null:new U5(a)};e.Sa=function(a){return this.Lp.Sa(a)};e.Fb=function(){return nR()};e.A=function(){return"JSetWrapper"};e.B=function(){return 1};e.C=function(a){return 0===a?this.Lp:R(S(),a)};e.Wa=function(a){this.Lp.fj(a);return this}; -e.$classData=x({pha:0},!1,"scala.collection.convert.JavaCollectionWrappers$JSetWrapper",{pha:1,zja:1,Bp:1,ia:1,b:1,ea:1,I:1,ga:1,K:1,fa:1,cn:1,Ip:1,da:1,o:1,Cka:1,Ie:1,Dka:1,Se:1,gd:1,we:1,Vd:1,Ud:1,Ij:1,Lga:1,eb:1,d:1,z:1}); -function o9(a,b){if(RW(a))return b;if(RW(b))return a;var c=a.wd()instanceof v;if(c!==b.wd()instanceof v)return null;if(c){c=a.wd();b=b.wd();a=op(Bl(),c)+op(Bl(),b)|0;a=new v(a);var d=op(Bl(),c);c.U(0,a,0,d);c=op(Bl(),c);d=op(Bl(),b);b.U(0,a,c,d);return yO(zO(),a)}c=a.wd();b=b.wd();d=op(Bl(),c)+op(Bl(),b)|0;a=a.Jd().pe(d);d=op(Bl(),c);c.U(0,a,0,d);c=op(Bl(),c);d=op(Bl(),b);b.U(0,a,c,d);return yO(zO(),a)} -function p9(a,b){var c=b.L();if(0===c)return a;Uo();var d=[];0<=c&&op(Bl(),a.wd());a=a.wd();c=op(Bl(),a);for(var f=0;fc&&op(Bl(),a.wd());a=a.wd();c=op(Bl(),a);for(b=0;bf=>d.t(c.V(f|0)))(a,b)))}e.ae=function(a){zO();var b=this.wd();Uo();var c=1+op(Bl(),b)|0;c=new v(c);c.a[0]=a;tI(xI(),b,0,c,1,op(Bl(),b));return yO(0,c)};e.$d=function(a){zO();var b=this.wd();Uo();xI();var c=1+op(Bl(),b)|0;Sh(m(xb),Uh(sa(b)))?c=Qh(m(xb))?uI(0,b,c):bm(hm(),b,c,m(y(xb))):(c=new v(c),tI(xI(),b,0,c,0,op(Bl(),b)));Cl(Bl(),c,op(Bl(),b),a);return yO(0,c)}; -e.hj=function(a,b){for(var c=this.wd(),d=0;d=a)a=this;else{zO();ap();var b=this.wd();a=sp(ap(),b,a,op(Bl(),b));a=yO(0,a)}return a};e.Rg=function(a){if(op(Bl(),this.wd())<=a)var b=this;else zO(),ap(),b=this.wd(),ap(),a=op(Bl(),b)-(0A=>!!r.t(A)!==u?oQ(w,A):void 0)(a,b,c,h)));return h.Dg()}if(0===f)return pr();b=new v(f);a.F.U(0,b,0,d);for(c=1+d|0;d!==f;)0!==(1<A=>!!r.t(A)!==u?oQ(w,A):void 0)(a,b,c,d))),d.Dg()):a}e.eh=function(a,b){if(b<(4+this.Rh()|0)){b=this;a=XU(st(),a);for(a=new h0(a);a.v();){var c=a.s();b=b.Cg(c)}return b}if(this.y()<(b>>>5|0)&&a instanceof J1){for(b=this.w();b.v();)c=b.s(),a=a.kb(c);return a}return c4(this,a)}; -e.ah=function(a,b){var c=4+this.Rh()|0;if(0g=>{f.Bb=f.Bb.gf(g)})(this,b)));else for(a=a.w();a.v();)c=a.s(),b.Bb=b.Bb.gf(c);return b.Bb}if(this.y()<(b>>>5|0)&&a instanceof J1){for(b=new h0(this);b.v();)a=a.Cg(b.s());return a}return nQ(P1(new mQ,this),a).Dg()};e.jf=function(){return"Vector"};e.Lb=function(a,b,c){return this.w().Lb(a,b,c)};e.Cw=function(){return this};e.ep=function(){return yt().YR}; -e.Ae=function(a){return lu(new mu,a+" is out of bounds (min 0, max "+(-1+this.y()|0)+")")};e.R=function(){if(0===this.F.a.length)throw qp("empty.head");return this.F.a[0]};e.$b=function(){if(this instanceof u9){var a=this.J;if(0===a.a.length)throw qp("empty.tail");return a.a[-1+a.a.length|0]}return this.F.a[-1+this.F.a.length|0]};e.Ba=function(a){for(var b=this.Rh(),c=0;cg?-g|0:g)|0)|0,this.Xi(c),a);c=1+c|0}}; -e.Rg=function(a){a=this.y()-(0a)a=1;else a:for(var b=this,c=0;;){if(c===a){a=b.k()?0:1;break a}if(b.k()){a=-1;break a}c=1+c|0;b=b.X()}return a}; -e.xg=function(a){for(var b=this;!b.k();){if(!a.t(b.R()))return!1;b=b.X()}return!0};e.hs=function(a){for(var b=this;!b.k();){if(a.t(b.R()))return!0;b=b.X()}return!1};e.Sa=function(a){for(var b=this;!b.k();){if(N(O(),b.R(),a))return!0;b=b.X()}return!1};e.ks=function(a){for(var b=this;!b.k();){if(a.t(b.R()))return new dd(b.R());b=b.X()}return H()};e.$b=function(){if(this.k())throw qp("List.last");for(var a=this,b=this.X();!b.k();)a=b,b=b.X();return a.R()};e.jf=function(){return"List"};e.oq=function(){return this}; -e.c=function(a){var b;if(a instanceof RK)a:for(b=this;;){if(b===a){b=!0;break a}var c=b.k(),d=a.k();if(c||d||!N(O(),b.R(),a.R())){b=c&&d;break a}b=b.X();a=a.X()}else b=y5(this,a);return b};e.t=function(a){return oh(this,a|0)};e.je=function(a){return x0(this,a|0)};e.Qc=function(a){return cI(a,this)}; -e.nb=function(a){a:for(var b=this;;){if(b.k()){a=F();break a}var c=b.R(),d=b.X();if(!1!==!!a.t(c)){b:for(;;){if(d.k()){a=b;break b}c=d.R();if(!1!==!!a.t(c))d=d.X();else{var f=b;c=d;b=new ph(f.R(),F());f=f.X();for(d=b;f!==c;){var g=new ph(f.R(),F());d=d.Gb=g;f=f.X()}for(f=c=c.X();!c.k();){g=c.R();if(!1===!!a.t(g)){for(;f!==c;)g=new ph(f.R(),F()),d=d.Gb=g,f=f.X();f=c.X()}c=c.X()}f.k()||(d.Gb=f);a=b;break b}}break a}b=d}return a}; -e.qd=function(a){for(var b=this,c=null,d=null;b!==F();){for(var f=a.t(b.R()).w();f.v();){var g=new ph(f.s(),F());null===d?c=g:d.Gb=g;d=g}b=b.X()}return null===c?F():c};e.Ea=function(a){if(this===F())a=F();else{for(var b=new ph(a.t(this.R()),F()),c=b,d=this.X();d!==F();){var f=new ph(a.t(d.R()),F());c=c.Gb=f;d=d.X()}a=b}return a};e.Rg=function(a){a:{var b=cI(a,this);for(a=this;;){if(F().c(b))break a;if(b instanceof ph)b=b.Gb,a=a.X();else throw new D(b);}}return a}; -e.Zd=function(a){return a instanceof RK?B9(a,this):b4(this,a)};e.hd=function(a){return hh(this,a)};e.qe=function(a){return new ph(a,this)};e.Fb=function(){return eh()};function C9(){this.F=null}C9.prototype=new t9;C9.prototype.constructor=C9;function D9(){}D9.prototype=C9.prototype;function w9(a,b,c){b=0=a.tw&&F9(a,a.Nb.a.length<<1);return G9(a,b,c,d,d&(-1+a.Nb.a.length|0))} -function H9(a,b,c){(1+a.oi|0)>=a.tw&&F9(a,a.Nb.a.length<<1);var d=ku(S(),b);d^=d>>>16|0;G9(a,b,c,d,d&(-1+a.Nb.a.length|0))}function G9(a,b,c,d,f){var g=a.Nb.a[f];if(null===g)a.Nb.a[f]=new Jr(b,d,c,null);else{for(var h=null,l=g;null!==l&&l.bl<=d;){if(l.bl===d&&N(O(),b,l.vn))return l.ni=c,null;h=l;l=l.He}null===h?a.Nb.a[f]=new Jr(b,d,c,g):h.He=new Jr(b,d,c,h.He)}a.oi=1+a.oi|0;return null} -function F9(a,b){if(0>b)throw K(L(),dv(new ev,"new HashMap table size "+b+" exceeds maximum"));var c=a.Nb.a.length;a.tw=Ya(b*a.LA);if(0===a.oi)a.Nb=new (y(Lr).M)(b);else{var d=a.Nb;a.Nb=Yl(hm(),d,b);d=new Jr(null,0,null,null);for(var f=new Jr(null,0,null,null);c>la(a)&a)<<1;return 1073741824>a?a:1073741824}function bR(a,b,c){a.LA=c;a.Nb=new (y(Lr).M)(I9(b));a.tw=Ya(a.Nb.a.length*a.LA);a.oi=0;return a}function CI(){var a=new cR;bR(a,16,.75);return a}function cR(){this.LA=0;this.Nb=null;this.oi=this.tw=0}cR.prototype=new Y8;cR.prototype.constructor=cR;e=cR.prototype;e.nb=function(a){return mY(this,a)};e.$=function(){return this.oi}; -e.Sa=function(a){var b=ku(S(),a);b^=b>>>16|0;var c=this.Nb.a[b&(-1+this.Nb.a.length|0)];return null!==(null===c?null:Kr(c,a,b))};e.qc=function(a){a=I9(Ya((1+a|0)/this.LA));a>this.Nb.a.length&&F9(this,a)}; -function aR(a,b){a.qc(b.L());if(b instanceof rQ)return b.Ce.lE(new JR((d=>(f,g,h)=>{h|=0;E9(d,f,g,h^(h>>>16|0))})(a))),a;if(b instanceof cR){for(b=O0(b);b.v();){var c=b.s();E9(a,c.vn,c.ni,c.bl)}return a}return b&&b.$classData&&b.$classData.Eb.QA?(b.zh(new gn((d=>(f,g)=>{var h=ku(S(),f);return E9(d,f,g,h^(h>>>16|0))})(a))),a):EJ(a,b)}e.w=function(){return 0===this.oi?tt().Ra:new G4(this)};function O0(a){return 0===a.oi?tt().Ra:new H4(a)} -e.yc=function(a){var b=ku(S(),a);b^=b>>>16|0;var c=this.Nb.a[b&(-1+this.Nb.a.length|0)];a=null===c?null:Kr(c,a,b);return null===a?H():new dd(a.ni)};e.t=function(a){var b=ku(S(),a);b^=b>>>16|0;var c=this.Nb.a[b&(-1+this.Nb.a.length|0)];b=null===c?null:Kr(c,a,b);return null===b?X3(a):b.ni};e.bi=function(a,b){if(sa(this)!==m(J9))return V3(this,a,b);var c=ku(S(),a);c^=c>>>16|0;var d=this.Nb.a[c&(-1+this.Nb.a.length|0)];a=null===d?null:Kr(d,a,c);return null===a?gq(b):a.ni}; -e.Vy=function(a,b){if(sa(this)!==m(J9))return G7(this,a,b);var c=ku(S(),a);c^=c>>>16|0;var d=c&(-1+this.Nb.a.length|0),f=this.Nb.a[d];f=null===f?null:Kr(f,a,c);if(null!==f)return f.ni;f=this.Nb;b=gq(b);(1+this.oi|0)>=this.tw&&F9(this,this.Nb.a.length<<1);G9(this,a,b,c,f===this.Nb?d:c&(-1+this.Nb.a.length|0));return b};e.Kj=function(a,b){H9(this,a,b)};e.L=function(){return this.oi};e.k=function(){return 0===this.oi}; -e.Ba=function(a){for(var b=this.Nb.a.length,c=0;ch?-h|0:h)|0)|0,a.Xi(d),b);d=1+d|0}}function qr(a){this.F=a} -qr.prototype=new D9;qr.prototype.constructor=qr;e=qr.prototype;e.V=function(a){if(0<=a&&athis.F.a.length)return new qr(yr(Q(),this.F,a));var b=this.F,c=Q().Kb,d=new v(1);d.a[0]=a;return new rr(b,32,c,d,33)}; -e.Cg=function(a){var b=this.F.a.length;if(32>b)return new qr(Ar(Q(),a,this.F));var c=new v(1);c.a[0]=a;return new rr(c,1,Q().Kb,this.F,1+b|0)};e.Ii=function(a){return new qr(Dr(Q(),this.F,a))};e.ri=function(a,b){var c=this.F;return new qr(em(hm(),c,a,b))};e.Nh=function(){if(1===this.F.a.length)return pr();var a=this.F,b=a.a.length;return new qr(em(hm(),a,1,b))};e.Rh=function(){return 1};e.Xi=function(){return this.F}; -e.eh=function(a,b){var c=Fr(Q(),this.F,a);return null!==c?new qr(c):J1.prototype.eh.call(this,a,b)};e.ah=function(a,b){var c=Hr(Q(),this.F,a);return null!==c?new qr(c):J1.prototype.ah.call(this,a,b)};e.X=function(){return this.Nh()};e.Ea=function(a){return this.Ii(a)};e.qe=function(a){return this.Cg(a)};e.kb=function(a){return this.gf(a)};e.t=function(a){a|=0;if(0<=a&&a>>5|0,a=this.$e){var c=a-this.$e|0;a=c>>>5|0;c&=31;if(athis.J.a.length)return a=yr(Q(),this.J,a),new rr(this.F,this.$e,this.ue,a,1+this.N|0);if(30>this.ue.a.length){var b=zr(Q(),this.ue,this.J),c=new v(1);c.a[0]=a;return new rr(this.F,this.$e,b,c,1+this.N|0)}b=this.F;c=this.$e;var d=this.ue,f=this.$e,g=Q().Td,h=this.J,l=new (y(y(xb)).M)(1);l.a[0]=h;h=new v(1);h.a[0]=a;return new sr(b,c,d,960+f|0,g,l,h,1+this.N|0)}; -e.Cg=function(a){if(32>this.$e){var b=Ar(Q(),a,this.F);return new rr(b,1+this.$e|0,this.ue,this.J,1+this.N|0)}if(30>this.ue.a.length)return b=new v(1),b.a[0]=a,a=Br(Q(),this.F,this.ue),new rr(b,1,a,this.J,1+this.N|0);b=new v(1);b.a[0]=a;a=this.F;var c=new (y(y(xb)).M)(1);c.a[0]=a;return new sr(b,1,c,1+this.$e|0,Q().Td,this.ue,this.J,1+this.N|0)};e.Ii=function(a){var b=Dr(Q(),this.F,a),c=Er(Q(),2,this.ue,a);a=Dr(Q(),this.J,a);return new rr(b,this.$e,c,a,this.N)}; -e.ri=function(a,b){a=new nr(a,b);or(a,1,this.F);or(a,2,this.ue);or(a,1,this.J);return a.Dg()};e.Nh=function(){if(1>>5|0,b>>10|0;var c=31&(b>>>5|0);b&=31;return a=this.Fe?(b=a-this.Fe|0,this.Ge.a[b>>>5|0].a[31&b]):this.F.a[a]}throw this.Ae(a);}; -e.jl=function(a,b){if(0<=a&&a=this.ve){var c=a-this.ve|0,d=c>>>10|0;a=31&(c>>>5|0);c&=31;if(d= -this.Fe)return c=a-this.Fe|0,a=c>>>5|0,c&=31,d=this.Ge.Y(),f=d.a[a].Y(),f.a[c]=b,d.a[a]=f,new sr(this.F,this.Fe,d,this.ve,this.Gd,this.Qd,this.J,this.N);c=this.F.Y();c.a[a]=b;return new sr(c,this.Fe,this.Ge,this.ve,this.Gd,this.Qd,this.J,this.N)}throw this.Ae(a);}; -e.gf=function(a){if(32>this.J.a.length)return a=yr(Q(),this.J,a),new sr(this.F,this.Fe,this.Ge,this.ve,this.Gd,this.Qd,a,1+this.N|0);if(31>this.Qd.a.length){var b=zr(Q(),this.Qd,this.J),c=new v(1);c.a[0]=a;return new sr(this.F,this.Fe,this.Ge,this.ve,this.Gd,b,c,1+this.N|0)}if(30>this.Gd.a.length){b=zr(Q(),this.Gd,zr(Q(),this.Qd,this.J));c=Q().Kb;var d=new v(1);d.a[0]=a;return new sr(this.F,this.Fe,this.Ge,this.ve,b,c,d,1+this.N|0)}b=this.F;c=this.Fe;d=this.Ge;var f=this.ve,g=this.Gd,h=this.ve,l= -Q().mg,n=zr(Q(),this.Qd,this.J),r=new (y(y(y(xb))).M)(1);r.a[0]=n;n=Q().Kb;var u=new v(1);u.a[0]=a;return new tr(b,c,d,f,g,30720+h|0,l,r,n,u,1+this.N|0)}; -e.Cg=function(a){if(32>this.Fe){var b=Ar(Q(),a,this.F);return new sr(b,1+this.Fe|0,this.Ge,1+this.ve|0,this.Gd,this.Qd,this.J,1+this.N|0)}if(1024>this.ve)return b=new v(1),b.a[0]=a,a=Br(Q(),this.F,this.Ge),new sr(b,1,a,1+this.ve|0,this.Gd,this.Qd,this.J,1+this.N|0);if(30>this.Gd.a.length){b=new v(1);b.a[0]=a;a=Q().Kb;var c=Br(Q(),Br(Q(),this.F,this.Ge),this.Gd);return new sr(b,1,a,1,c,this.Qd,this.J,1+this.N|0)}b=new v(1);b.a[0]=a;a=Q().Kb;c=Br(Q(),this.F,this.Ge);var d=new (y(y(y(xb))).M)(1);d.a[0]= -c;return new tr(b,1,a,1,d,1+this.ve|0,Q().mg,this.Gd,this.Qd,this.J,1+this.N|0)};e.Ii=function(a){var b=Dr(Q(),this.F,a),c=Er(Q(),2,this.Ge,a),d=Er(Q(),3,this.Gd,a),f=Er(Q(),2,this.Qd,a);a=Dr(Q(),this.J,a);return new sr(b,this.Fe,c,this.ve,d,f,a,this.N)};e.ri=function(a,b){a=new nr(a,b);or(a,1,this.F);or(a,2,this.Ge);or(a,3,this.Gd);or(a,2,this.Qd);or(a,1,this.J);return a.Dg()}; -e.Nh=function(){if(1>>10|0;var c=31&(a>>>5|0);a&=31;return b=this.Fe?(a=b-this.Fe|0,this.Ge.a[a>>>5|0].a[31&a]):this.F.a[b]}throw this.Ae(b);}; -e.$classData=x({qja:0},!1,"scala.collection.immutable.Vector3",{qja:1,aw:1,bt:1,at:1,Pd:1,zb:1,ia:1,b:1,ea:1,I:1,ga:1,K:1,fa:1,tb:1,wa:1,da:1,bb:1,o:1,id:1,Db:1,Fd:1,se:1,Ib:1,qb:1,De:1,te:1,Jb:1,eb:1,Fg:1,d:1});function tr(a,b,c,d,f,g,h,l,n,r,u){this.J=this.F=null;this.N=0;this.de=b;this.Rd=c;this.ee=d;this.Sd=f;this.Hd=g;this.Lc=h;this.Uc=l;this.Tc=n;M9(this,a,r,u)}tr.prototype=new N9;tr.prototype.constructor=tr;e=tr.prototype; -e.V=function(a){if(0<=a&&a>>15|0;var c=31&(b>>>10|0),d=31&(b>>>5|0);b&=31;return a=this.ee?(b=a-this.ee|0,this.Sd.a[b>>>10|0].a[31&(b>>>5|0)].a[31&b]):a>=this.de?(b=a-this.de|0,this.Rd.a[b>>>5|0].a[31&b]):this.F.a[a]}throw this.Ae(a);}; -e.jl=function(a,b){if(0<=a&&a=this.Hd){var c=a-this.Hd|0,d=c>>>15|0,f=31&(c>>>10|0);a=31&(c>>>5|0);c&=31;if(d=this.ee)return f=a-this.ee|0,a=f>>>10|0,c=31&(f>>>5|0),f&=31,d=this.Sd.Y(),g=d.a[a].Y(),h=g.a[c].Y(),h.a[f]=b,g.a[c]=h,d.a[a]=g,new tr(this.F,this.de,this.Rd,this.ee,d,this.Hd,this.Lc,this.Uc,this.Tc,this.J,this.N); -if(a>=this.de)return c=a-this.de|0,a=c>>>5|0,c&=31,f=this.Rd.Y(),d=f.a[a].Y(),d.a[c]=b,f.a[a]=d,new tr(this.F,this.de,f,this.ee,this.Sd,this.Hd,this.Lc,this.Uc,this.Tc,this.J,this.N);c=this.F.Y();c.a[a]=b;return new tr(c,this.de,this.Rd,this.ee,this.Sd,this.Hd,this.Lc,this.Uc,this.Tc,this.J,this.N)}throw this.Ae(a);}; -e.gf=function(a){if(32>this.J.a.length)return a=yr(Q(),this.J,a),new tr(this.F,this.de,this.Rd,this.ee,this.Sd,this.Hd,this.Lc,this.Uc,this.Tc,a,1+this.N|0);if(31>this.Tc.a.length){var b=zr(Q(),this.Tc,this.J),c=new v(1);c.a[0]=a;return new tr(this.F,this.de,this.Rd,this.ee,this.Sd,this.Hd,this.Lc,this.Uc,b,c,1+this.N|0)}if(31>this.Uc.a.length){b=zr(Q(),this.Uc,zr(Q(),this.Tc,this.J));c=Q().Kb;var d=new v(1);d.a[0]=a;return new tr(this.F,this.de,this.Rd,this.ee,this.Sd,this.Hd,this.Lc,b,c,d,1+this.N| -0)}if(30>this.Lc.a.length){b=zr(Q(),this.Lc,zr(Q(),this.Uc,zr(Q(),this.Tc,this.J)));c=Q().Td;d=Q().Kb;var f=new v(1);f.a[0]=a;return new tr(this.F,this.de,this.Rd,this.ee,this.Sd,this.Hd,b,c,d,f,1+this.N|0)}b=this.F;c=this.de;d=this.Rd;f=this.ee;var g=this.Sd,h=this.Hd,l=this.Lc,n=this.Hd,r=Q().rn,u=zr(Q(),this.Uc,zr(Q(),this.Tc,this.J)),w=new (y(y(y(y(xb)))).M)(1);w.a[0]=u;u=Q().Td;var A=Q().Kb,M=new v(1);M.a[0]=a;return new ur(b,c,d,f,g,h,l,983040+n|0,r,w,u,A,M,1+this.N|0)}; -e.Cg=function(a){if(32>this.de){var b=Ar(Q(),a,this.F);return new tr(b,1+this.de|0,this.Rd,1+this.ee|0,this.Sd,1+this.Hd|0,this.Lc,this.Uc,this.Tc,this.J,1+this.N|0)}if(1024>this.ee)return b=new v(1),b.a[0]=a,a=Br(Q(),this.F,this.Rd),new tr(b,1,a,1+this.ee|0,this.Sd,1+this.Hd|0,this.Lc,this.Uc,this.Tc,this.J,1+this.N|0);if(32768>this.Hd){b=new v(1);b.a[0]=a;a=Q().Kb;var c=Br(Q(),Br(Q(),this.F,this.Rd),this.Sd);return new tr(b,1,a,1,c,1+this.Hd|0,this.Lc,this.Uc,this.Tc,this.J,1+this.N|0)}if(30>this.Lc.a.length){b= -new v(1);b.a[0]=a;a=Q().Kb;c=Q().Td;var d=Br(Q(),Br(Q(),Br(Q(),this.F,this.Rd),this.Sd),this.Lc);return new tr(b,1,a,1,c,1,d,this.Uc,this.Tc,this.J,1+this.N|0)}b=new v(1);b.a[0]=a;a=Q().Kb;c=Q().Td;d=Br(Q(),Br(Q(),this.F,this.Rd),this.Sd);var f=new (y(y(y(y(xb)))).M)(1);f.a[0]=d;return new ur(b,1,a,1,c,1,f,1+this.Hd|0,Q().rn,this.Lc,this.Uc,this.Tc,this.J,1+this.N|0)}; -e.Ii=function(a){var b=Dr(Q(),this.F,a),c=Er(Q(),2,this.Rd,a),d=Er(Q(),3,this.Sd,a),f=Er(Q(),4,this.Lc,a),g=Er(Q(),3,this.Uc,a),h=Er(Q(),2,this.Tc,a);a=Dr(Q(),this.J,a);return new tr(b,this.de,c,this.ee,d,this.Hd,f,g,h,a,this.N)};e.ri=function(a,b){a=new nr(a,b);or(a,1,this.F);or(a,2,this.Rd);or(a,3,this.Sd);or(a,4,this.Lc);or(a,3,this.Uc);or(a,2,this.Tc);or(a,1,this.J);return a.Dg()}; -e.Nh=function(){if(1>>15|0;var c=31&(a>>>10|0),d=31&(a>>>5|0);a&=31;return b=this.ee?(a=b-this.ee|0,this.Sd.a[a>>>10|0].a[31&(a>>>5|0)].a[31&a]):b>=this.de?(a=b-this.de|0,this.Rd.a[a>>>5|0].a[31&a]):this.F.a[b]}throw this.Ae(b);}; -e.$classData=x({rja:0},!1,"scala.collection.immutable.Vector4",{rja:1,aw:1,bt:1,at:1,Pd:1,zb:1,ia:1,b:1,ea:1,I:1,ga:1,K:1,fa:1,tb:1,wa:1,da:1,bb:1,o:1,id:1,Db:1,Fd:1,se:1,Ib:1,qb:1,De:1,te:1,Jb:1,eb:1,Fg:1,d:1});function ur(a,b,c,d,f,g,h,l,n,r,u,w,A,M){this.J=this.F=null;this.N=0;this.td=b;this.Vc=c;this.ud=d;this.Wc=f;this.jd=g;this.Xc=h;this.Mc=l;this.bc=n;this.hc=r;this.gc=u;this.fc=w;M9(this,a,A,M)}ur.prototype=new N9;ur.prototype.constructor=ur;e=ur.prototype; -e.V=function(a){if(0<=a&&a>>20|0;var c=31&(b>>>15|0),d=31&(b>>>10|0),f=31&(b>>>5|0);b&=31;return a=this.jd?(b=a-this.jd|0,this.Xc.a[b>>>15|0].a[31&(b>>>10|0)].a[31&(b>>>5|0)].a[31&b]):a>=this.ud?(b=a-this.ud|0,this.Wc.a[b>>>10|0].a[31&(b>>>5|0)].a[31&b]):a>=this.td? -(b=a-this.td|0,this.Vc.a[b>>>5|0].a[31&b]):this.F.a[a]}throw this.Ae(a);}; -e.jl=function(a,b){if(0<=a&&a=this.Mc){var c=a-this.Mc|0,d=c>>>20|0,f=31&(c>>>15|0),g=31&(c>>>10|0);a=31&(c>>>5|0);c&=31;if(d=this.jd)return f=a-this.jd|0,a=f>>>15|0,c=31&(f>>>10|0),g=31&(f>>>5|0),f&=31,d=this.Xc.Y(),h=d.a[a].Y(),l=h.a[c].Y(),n=l.a[g].Y(),n.a[f]=b,l.a[g]=n,h.a[c]=l,d.a[a]=h,new ur(this.F,this.td,this.Vc,this.ud,this.Wc,this.jd,d,this.Mc,this.bc,this.hc,this.gc,this.fc,this.J,this.N);if(a>=this.ud)return g=a-this.ud|0,a=g>>>10|0,c=31&(g>>>5|0),g&=31,f=this.Wc.Y(), -d=f.a[a].Y(),h=d.a[c].Y(),h.a[g]=b,d.a[c]=h,f.a[a]=d,new ur(this.F,this.td,this.Vc,this.ud,f,this.jd,this.Xc,this.Mc,this.bc,this.hc,this.gc,this.fc,this.J,this.N);if(a>=this.td)return c=a-this.td|0,a=c>>>5|0,c&=31,g=this.Vc.Y(),f=g.a[a].Y(),f.a[c]=b,g.a[a]=f,new ur(this.F,this.td,g,this.ud,this.Wc,this.jd,this.Xc,this.Mc,this.bc,this.hc,this.gc,this.fc,this.J,this.N);c=this.F.Y();c.a[a]=b;return new ur(c,this.td,this.Vc,this.ud,this.Wc,this.jd,this.Xc,this.Mc,this.bc,this.hc,this.gc,this.fc,this.J, -this.N)}throw this.Ae(a);}; -e.gf=function(a){if(32>this.J.a.length)return a=yr(Q(),this.J,a),new ur(this.F,this.td,this.Vc,this.ud,this.Wc,this.jd,this.Xc,this.Mc,this.bc,this.hc,this.gc,this.fc,a,1+this.N|0);if(31>this.fc.a.length){var b=zr(Q(),this.fc,this.J),c=new v(1);c.a[0]=a;return new ur(this.F,this.td,this.Vc,this.ud,this.Wc,this.jd,this.Xc,this.Mc,this.bc,this.hc,this.gc,b,c,1+this.N|0)}if(31>this.gc.a.length){b=zr(Q(),this.gc,zr(Q(),this.fc,this.J));c=Q().Kb;var d=new v(1);d.a[0]=a;return new ur(this.F,this.td,this.Vc, -this.ud,this.Wc,this.jd,this.Xc,this.Mc,this.bc,this.hc,b,c,d,1+this.N|0)}if(31>this.hc.a.length){b=zr(Q(),this.hc,zr(Q(),this.gc,zr(Q(),this.fc,this.J)));c=Q().Td;d=Q().Kb;var f=new v(1);f.a[0]=a;return new ur(this.F,this.td,this.Vc,this.ud,this.Wc,this.jd,this.Xc,this.Mc,this.bc,b,c,d,f,1+this.N|0)}if(30>this.bc.a.length){b=zr(Q(),this.bc,zr(Q(),this.hc,zr(Q(),this.gc,zr(Q(),this.fc,this.J))));c=Q().mg;d=Q().Td;f=Q().Kb;var g=new v(1);g.a[0]=a;return new ur(this.F,this.td,this.Vc,this.ud,this.Wc, -this.jd,this.Xc,this.Mc,b,c,d,f,g,1+this.N|0)}b=this.F;c=this.td;d=this.Vc;f=this.ud;g=this.Wc;var h=this.jd,l=this.Xc,n=this.Mc,r=this.bc,u=this.Mc,w=Q().IA,A=zr(Q(),this.hc,zr(Q(),this.gc,zr(Q(),this.fc,this.J))),M=new (y(y(y(y(y(xb))))).M)(1);M.a[0]=A;A=Q().mg;var T=Q().Td,V=Q().Kb,ha=new v(1);ha.a[0]=a;return new vr(b,c,d,f,g,h,l,n,r,31457280+u|0,w,M,A,T,V,ha,1+this.N|0)}; -e.Cg=function(a){if(32>this.td){var b=Ar(Q(),a,this.F);return new ur(b,1+this.td|0,this.Vc,1+this.ud|0,this.Wc,1+this.jd|0,this.Xc,1+this.Mc|0,this.bc,this.hc,this.gc,this.fc,this.J,1+this.N|0)}if(1024>this.ud)return b=new v(1),b.a[0]=a,a=Br(Q(),this.F,this.Vc),new ur(b,1,a,1+this.ud|0,this.Wc,1+this.jd|0,this.Xc,1+this.Mc|0,this.bc,this.hc,this.gc,this.fc,this.J,1+this.N|0);if(32768>this.jd){b=new v(1);b.a[0]=a;a=Q().Kb;var c=Br(Q(),Br(Q(),this.F,this.Vc),this.Wc);return new ur(b,1,a,1,c,1+this.jd| -0,this.Xc,1+this.Mc|0,this.bc,this.hc,this.gc,this.fc,this.J,1+this.N|0)}if(1048576>this.Mc){b=new v(1);b.a[0]=a;a=Q().Kb;c=Q().Td;var d=Br(Q(),Br(Q(),Br(Q(),this.F,this.Vc),this.Wc),this.Xc);return new ur(b,1,a,1,c,1,d,1+this.Mc|0,this.bc,this.hc,this.gc,this.fc,this.J,1+this.N|0)}if(30>this.bc.a.length){b=new v(1);b.a[0]=a;a=Q().Kb;c=Q().Td;d=Q().mg;var f=Br(Q(),Br(Q(),Br(Q(),Br(Q(),this.F,this.Vc),this.Wc),this.Xc),this.bc);return new ur(b,1,a,1,c,1,d,1,f,this.hc,this.gc,this.fc,this.J,1+this.N| -0)}b=new v(1);b.a[0]=a;a=Q().Kb;c=Q().Td;d=Q().mg;f=Br(Q(),Br(Q(),Br(Q(),this.F,this.Vc),this.Wc),this.Xc);var g=new (y(y(y(y(y(xb))))).M)(1);g.a[0]=f;return new vr(b,1,a,1,c,1,d,1,g,1+this.Mc|0,Q().IA,this.bc,this.hc,this.gc,this.fc,this.J,1+this.N|0)}; -e.Ii=function(a){var b=Dr(Q(),this.F,a),c=Er(Q(),2,this.Vc,a),d=Er(Q(),3,this.Wc,a),f=Er(Q(),4,this.Xc,a),g=Er(Q(),5,this.bc,a),h=Er(Q(),4,this.hc,a),l=Er(Q(),3,this.gc,a),n=Er(Q(),2,this.fc,a);a=Dr(Q(),this.J,a);return new ur(b,this.td,c,this.ud,d,this.jd,f,this.Mc,g,h,l,n,a,this.N)};e.ri=function(a,b){a=new nr(a,b);or(a,1,this.F);or(a,2,this.Vc);or(a,3,this.Wc);or(a,4,this.Xc);or(a,5,this.bc);or(a,4,this.hc);or(a,3,this.gc);or(a,2,this.fc);or(a,1,this.J);return a.Dg()}; -e.Nh=function(){if(1>>20|0;var c=31&(a>>>15|0),d=31&(a>>>10|0),f=31&(a>>>5|0);a&=31;return b=this.jd?(a=b-this.jd|0,this.Xc.a[a>>>15|0].a[31&(a>>>10|0)].a[31&(a>>>5|0)].a[31&a]):b>=this.ud?(a=b-this.ud|0,this.Wc.a[a>>>10|0].a[31&(a>>>5|0)].a[31&a]):b>= -this.td?(a=b-this.td|0,this.Vc.a[a>>>5|0].a[31&a]):this.F.a[b]}throw this.Ae(b);};e.$classData=x({sja:0},!1,"scala.collection.immutable.Vector5",{sja:1,aw:1,bt:1,at:1,Pd:1,zb:1,ia:1,b:1,ea:1,I:1,ga:1,K:1,fa:1,tb:1,wa:1,da:1,bb:1,o:1,id:1,Db:1,Fd:1,se:1,Ib:1,qb:1,De:1,te:1,Jb:1,eb:1,Fg:1,d:1}); -function vr(a,b,c,d,f,g,h,l,n,r,u,w,A,M,T,V,ha){this.J=this.F=null;this.N=0;this.Yc=b;this.Cc=c;this.Zc=d;this.Dc=f;this.Nc=g;this.Ec=h;this.Ac=l;this.Fc=n;this.Bc=r;this.Mb=u;this.Wb=w;this.Vb=A;this.Ub=M;this.Tb=T;M9(this,a,V,ha)}vr.prototype=new N9;vr.prototype.constructor=vr;e=vr.prototype; -e.V=function(a){if(0<=a&&a>>25|0;var c=31&(b>>>20|0),d=31&(b>>>15|0),f=31&(b>>>10|0),g=31&(b>>>5|0);b&=31;return a=this.Ac?(b=a-this.Ac|0,this.Fc.a[b>>>20|0].a[31&(b>>>15|0)].a[31&(b>>>10|0)].a[31&(b>>>5|0)].a[31& -b]):a>=this.Nc?(b=a-this.Nc|0,this.Ec.a[b>>>15|0].a[31&(b>>>10|0)].a[31&(b>>>5|0)].a[31&b]):a>=this.Zc?(b=a-this.Zc|0,this.Dc.a[b>>>10|0].a[31&(b>>>5|0)].a[31&b]):a>=this.Yc?(b=a-this.Yc|0,this.Cc.a[b>>>5|0].a[31&b]):this.F.a[a]}throw this.Ae(a);}; -e.jl=function(a,b){if(0<=a&&a=this.Bc){var c=a-this.Bc|0,d=c>>>25|0,f=31&(c>>>20|0),g=31&(c>>>15|0),h=31&(c>>>10|0);a=31&(c>>>5|0);c&=31;if(d=this.Ac)return f=a-this.Ac|0,a=f>>>20|0,c=31&(f>>>15|0),h=31&(f>>>10|0),g=31&(f>>>5|0),f&=31,d=this.Fc.Y(),l=d.a[a].Y(),n=l.a[c].Y(),r=n.a[h].Y(),u=r.a[g].Y(),u.a[f]=b,r.a[g]=u,n.a[h]=r,l.a[c]=n,d.a[a]=l,new vr(this.F,this.Yc,this.Cc,this.Zc,this.Dc,this.Nc,this.Ec,this.Ac,d,this.Bc,this.Mb,this.Wb,this.Vb,this.Ub,this.Tb,this.J,this.N);if(a>=this.Nc)return g=a-this.Nc|0,a=g>>>15|0,c=31&(g>>>10|0),h=31&(g>>>5|0),g&=31,f=this.Ec.Y(), -d=f.a[a].Y(),l=d.a[c].Y(),n=l.a[h].Y(),n.a[g]=b,l.a[h]=n,d.a[c]=l,f.a[a]=d,new vr(this.F,this.Yc,this.Cc,this.Zc,this.Dc,this.Nc,f,this.Ac,this.Fc,this.Bc,this.Mb,this.Wb,this.Vb,this.Ub,this.Tb,this.J,this.N);if(a>=this.Zc)return h=a-this.Zc|0,a=h>>>10|0,c=31&(h>>>5|0),h&=31,g=this.Dc.Y(),f=g.a[a].Y(),d=f.a[c].Y(),d.a[h]=b,f.a[c]=d,g.a[a]=f,new vr(this.F,this.Yc,this.Cc,this.Zc,g,this.Nc,this.Ec,this.Ac,this.Fc,this.Bc,this.Mb,this.Wb,this.Vb,this.Ub,this.Tb,this.J,this.N);if(a>=this.Yc)return c= -a-this.Yc|0,a=c>>>5|0,c&=31,h=this.Cc.Y(),g=h.a[a].Y(),g.a[c]=b,h.a[a]=g,new vr(this.F,this.Yc,h,this.Zc,this.Dc,this.Nc,this.Ec,this.Ac,this.Fc,this.Bc,this.Mb,this.Wb,this.Vb,this.Ub,this.Tb,this.J,this.N);c=this.F.Y();c.a[a]=b;return new vr(c,this.Yc,this.Cc,this.Zc,this.Dc,this.Nc,this.Ec,this.Ac,this.Fc,this.Bc,this.Mb,this.Wb,this.Vb,this.Ub,this.Tb,this.J,this.N)}throw this.Ae(a);}; -e.gf=function(a){if(32>this.J.a.length)return a=yr(Q(),this.J,a),new vr(this.F,this.Yc,this.Cc,this.Zc,this.Dc,this.Nc,this.Ec,this.Ac,this.Fc,this.Bc,this.Mb,this.Wb,this.Vb,this.Ub,this.Tb,a,1+this.N|0);if(31>this.Tb.a.length){var b=zr(Q(),this.Tb,this.J),c=new v(1);c.a[0]=a;return new vr(this.F,this.Yc,this.Cc,this.Zc,this.Dc,this.Nc,this.Ec,this.Ac,this.Fc,this.Bc,this.Mb,this.Wb,this.Vb,this.Ub,b,c,1+this.N|0)}if(31>this.Ub.a.length){b=zr(Q(),this.Ub,zr(Q(),this.Tb,this.J));c=Q().Kb;var d=new v(1); -d.a[0]=a;return new vr(this.F,this.Yc,this.Cc,this.Zc,this.Dc,this.Nc,this.Ec,this.Ac,this.Fc,this.Bc,this.Mb,this.Wb,this.Vb,b,c,d,1+this.N|0)}if(31>this.Vb.a.length){b=zr(Q(),this.Vb,zr(Q(),this.Ub,zr(Q(),this.Tb,this.J)));c=Q().Td;d=Q().Kb;var f=new v(1);f.a[0]=a;return new vr(this.F,this.Yc,this.Cc,this.Zc,this.Dc,this.Nc,this.Ec,this.Ac,this.Fc,this.Bc,this.Mb,this.Wb,b,c,d,f,1+this.N|0)}if(31>this.Wb.a.length){b=zr(Q(),this.Wb,zr(Q(),this.Vb,zr(Q(),this.Ub,zr(Q(),this.Tb,this.J))));c=Q().mg; -d=Q().Td;f=Q().Kb;var g=new v(1);g.a[0]=a;return new vr(this.F,this.Yc,this.Cc,this.Zc,this.Dc,this.Nc,this.Ec,this.Ac,this.Fc,this.Bc,this.Mb,b,c,d,f,g,1+this.N|0)}if(62>this.Mb.a.length){b=zr(Q(),this.Mb,zr(Q(),this.Wb,zr(Q(),this.Vb,zr(Q(),this.Ub,zr(Q(),this.Tb,this.J)))));c=Q().rn;d=Q().mg;f=Q().Td;g=Q().Kb;var h=new v(1);h.a[0]=a;return new vr(this.F,this.Yc,this.Cc,this.Zc,this.Dc,this.Nc,this.Ec,this.Ac,this.Fc,this.Bc,b,c,d,f,g,h,1+this.N|0)}throw rk();}; -e.Cg=function(a){if(32>this.Yc){var b=Ar(Q(),a,this.F);return new vr(b,1+this.Yc|0,this.Cc,1+this.Zc|0,this.Dc,1+this.Nc|0,this.Ec,1+this.Ac|0,this.Fc,1+this.Bc|0,this.Mb,this.Wb,this.Vb,this.Ub,this.Tb,this.J,1+this.N|0)}if(1024>this.Zc)return b=new v(1),b.a[0]=a,a=Br(Q(),this.F,this.Cc),new vr(b,1,a,1+this.Zc|0,this.Dc,1+this.Nc|0,this.Ec,1+this.Ac|0,this.Fc,1+this.Bc|0,this.Mb,this.Wb,this.Vb,this.Ub,this.Tb,this.J,1+this.N|0);if(32768>this.Nc){b=new v(1);b.a[0]=a;a=Q().Kb;var c=Br(Q(),Br(Q(), -this.F,this.Cc),this.Dc);return new vr(b,1,a,1,c,1+this.Nc|0,this.Ec,1+this.Ac|0,this.Fc,1+this.Bc|0,this.Mb,this.Wb,this.Vb,this.Ub,this.Tb,this.J,1+this.N|0)}if(1048576>this.Ac){b=new v(1);b.a[0]=a;a=Q().Kb;c=Q().Td;var d=Br(Q(),Br(Q(),Br(Q(),this.F,this.Cc),this.Dc),this.Ec);return new vr(b,1,a,1,c,1,d,1+this.Ac|0,this.Fc,1+this.Bc|0,this.Mb,this.Wb,this.Vb,this.Ub,this.Tb,this.J,1+this.N|0)}if(33554432>this.Bc){b=new v(1);b.a[0]=a;a=Q().Kb;c=Q().Td;d=Q().mg;var f=Br(Q(),Br(Q(),Br(Q(),Br(Q(),this.F, -this.Cc),this.Dc),this.Ec),this.Fc);return new vr(b,1,a,1,c,1,d,1,f,1+this.Bc|0,this.Mb,this.Wb,this.Vb,this.Ub,this.Tb,this.J,1+this.N|0)}if(62>this.Mb.a.length){b=new v(1);b.a[0]=a;a=Q().Kb;c=Q().Td;d=Q().mg;f=Q().rn;var g=Br(Q(),Br(Q(),Br(Q(),Br(Q(),Br(Q(),this.F,this.Cc),this.Dc),this.Ec),this.Fc),this.Mb);return new vr(b,1,a,1,c,1,d,1,f,1,g,this.Wb,this.Vb,this.Ub,this.Tb,this.J,1+this.N|0)}throw rk();}; -e.Ii=function(a){var b=Dr(Q(),this.F,a),c=Er(Q(),2,this.Cc,a),d=Er(Q(),3,this.Dc,a),f=Er(Q(),4,this.Ec,a),g=Er(Q(),5,this.Fc,a),h=Er(Q(),6,this.Mb,a),l=Er(Q(),5,this.Wb,a),n=Er(Q(),4,this.Vb,a),r=Er(Q(),3,this.Ub,a),u=Er(Q(),2,this.Tb,a);a=Dr(Q(),this.J,a);return new vr(b,this.Yc,c,this.Zc,d,this.Nc,f,this.Ac,g,this.Bc,h,l,n,r,u,a,this.N)}; -e.ri=function(a,b){a=new nr(a,b);or(a,1,this.F);or(a,2,this.Cc);or(a,3,this.Dc);or(a,4,this.Ec);or(a,5,this.Fc);or(a,6,this.Mb);or(a,5,this.Wb);or(a,4,this.Vb);or(a,3,this.Ub);or(a,2,this.Tb);or(a,1,this.J);return a.Dg()};e.Nh=function(){if(1>>25|0;var c=31&(a>>>20|0),d=31&(a>>>15|0),f=31&(a>>>10|0),g=31&(a>>>5|0);a&=31;return b=this.Ac?(a=b-this.Ac|0,this.Fc.a[a>>>20|0].a[31&(a>>>15|0)].a[31&(a>>>10|0)].a[31&(a>>> -5|0)].a[31&a]):b>=this.Nc?(a=b-this.Nc|0,this.Ec.a[a>>>15|0].a[31&(a>>>10|0)].a[31&(a>>>5|0)].a[31&a]):b>=this.Zc?(a=b-this.Zc|0,this.Dc.a[a>>>10|0].a[31&(a>>>5|0)].a[31&a]):b>=this.Yc?(a=b-this.Yc|0,this.Cc.a[a>>>5|0].a[31&a]):this.F.a[b]}throw this.Ae(b);};e.$classData=x({tja:0},!1,"scala.collection.immutable.Vector6",{tja:1,aw:1,bt:1,at:1,Pd:1,zb:1,ia:1,b:1,ea:1,I:1,ga:1,K:1,fa:1,tb:1,wa:1,da:1,bb:1,o:1,id:1,Db:1,Fd:1,se:1,Ib:1,qb:1,De:1,te:1,Jb:1,eb:1,Fg:1,d:1}); -function Zp(){var a=new S9;a.bd=Bn(new Cn);return a}function S9(){this.bd=null}S9.prototype=new t8;S9.prototype.constructor=S9;e=S9.prototype;e.Hc=function(){return"IndexedSeq"};e.w=function(){var a=new IG(this);return new JG(a)};e.Rg=function(a){return this.vf(new R7(this,a))};e.Qc=function(a){return d0(this,a)};e.R=function(){return q(this.bd.Lf(0))};e.Kd=function(){return f0(this)};e.$b=function(){return g0(this)};e.Sc=function(a){var b=this.bd.y();return b===a?0:b()=>a.yG)(this)))};e.bg=function(){return s2()};e.V=function(a){return oh(this.Ng,a)};e.y=function(){return this.Sf};e.L=function(){return this.Sf};e.k=function(){return 0===this.Sf}; -e.oq=function(){this.PA=!this.k();return this.Ng};function q2(a,b){b=b.w();if(b.v()){var c=1,d=new ph(b.s(),F());for(a.Ng=d;b.v();){var f=new ph(b.s(),F());d=d.Gb=f;c=1+c|0}a.Sf=c;a.Og=d}return a} -e.Rz=function(a,b){if(0a||(a+b|0)>this.Sf)throw lu(new mu,a+" to "+(a+b|0)+" is out of bounds (min 0, max "+(-1+this.Sf|0)+")");if(0===a)a=null;else if(a===this.Sf)a=this.Og;else{a=-1+a|0;for(var c=this.Ng;0b)throw fm("removing negative number of elements: "+b);}; -e.$b=function(){if(null===this.Og)throw qp("last of empty ListBuffer");return this.Og.re};e.dh=function(){return null===this.Og?H():new dd(this.Og.re)};e.Hc=function(){return"ListBuffer"};e.wc=function(a){a=a.w();a.v()&&(a=q2(new b1,a),V9(this),0===this.Sf?this.Ng=a.Ng:this.Og.Gb=a.Ng,this.Og=a.Og,this.Sf=this.Sf+a.Sf|0);return this};e.Wa=function(a){V9(this);a=new ph(a,F());0===this.Sf?this.Ng=a:this.Og.Gb=a;this.Og=a;this.Sf=1+this.Sf|0;return this};e.yb=function(){return this.oq()}; -e.t=function(a){return oh(this.Ng,a|0)};e.Fb=function(){return s2()};e.$classData=x({uka:0},!1,"scala.collection.mutable.ListBuffer",{uka:1,JA:1,Mg:1,zb:1,ia:1,b:1,ea:1,I:1,ga:1,K:1,fa:1,tb:1,wa:1,da:1,bb:1,o:1,Pg:1,Ie:1,Qg:1,Se:1,gd:1,KA:1,Vd:1,Ud:1,Ij:1,Jb:1,eb:1,Hj:1,we:1,Fg:1,d:1});function DN(a){this.Li=a}DN.prototype=new L9;DN.prototype.constructor=DN;e=DN.prototype; -e.Vy=function(a,b){a:{var c=this.yc(a);if(c instanceof dd)a=c.Qb;else{if(H()===c){b=gq(b);a=LE(ME(),this.Li.Qz(a,b));if(a instanceof dd){a=a.Qb;break a}if(H()===a){a=b;break a}throw new D(a);}throw new D(c);}}return a};e.yc=function(a){return LE(ME(),this.Li.qk(a))};e.k=function(){return this.Li.k()};e.L=function(){return this.Li.k()?0:-1};e.A=function(){return"JConcurrentMapWrapper"};e.B=function(){return 1};e.C=function(a){return 0===a?this.Li:R(S(),a)}; -e.$classData=x({mha:0},!1,"scala.collection.convert.JavaCollectionWrappers$JConcurrentMapWrapper",{mha:1,opa:1,nG:1,Dk:1,ia:1,b:1,ea:1,I:1,ga:1,K:1,fa:1,zj:1,gi:1,wa:1,da:1,Gk:1,o:1,QA:1,Ie:1,zG:1,Se:1,gd:1,we:1,Vd:1,Ud:1,Ij:1,ppa:1,PF:1,eb:1,d:1,jpa:1,z:1});function R1(a,b,c){a.Cf=b;a.xb=c;return a}function p0(){var a=new YK;R1(a,new v(16),0);return a}function XK(a,b){R1(a,new v(1>>31|0|d>>31<<1;f=(0===d?-2147483632<(-2147483648^f):0>31,l=d;if(l===h?(-2147483648^g)<(-2147483648^a):l>>31|0|d<<1,f<<=1;else break}a=d;if(0===a?-1>=(-2147483648^f):0>a)a=f;else{if(2147483647===c)throw K(L(),og(new pg,"Collections can not have more than 2147483647 elements"));a=2147483647}a=new v(a);tI(xI(),b,0,a,0,c);b=a}this.Cf= -b};e.V=function(a){var b=1+a|0;if(0>a)throw lu(new mu,a+" is out of bounds (min 0, max "+(-1+this.xb|0)+")");if(b>this.xb)throw lu(new mu,(-1+b|0)+" is out of bounds (min 0, max "+(-1+this.xb|0)+")");return this.Cf.a[a]};function I0(a,b,c){var d=1+b|0;if(0>b)throw lu(new mu,b+" is out of bounds (min 0, max "+(-1+a.xb|0)+")");if(d>a.xb)throw lu(new mu,(-1+d|0)+" is out of bounds (min 0, max "+(-1+a.xb|0)+")");a.Cf.a[b]=c}e.y=function(){return this.xb};e.bg=function(){return AS()}; -function ZK(a,b){var c=a.xb;a.gs(1+a.xb|0);a.xb=1+a.xb|0;I0(a,c,b);return a}function t0(a,b){b instanceof YK?(a.gs(a.xb+b.xb|0),tI(xI(),b.Cf,0,a.Cf,a.xb,b.xb),a.xb=a.xb+b.xb|0):EJ(a,b);return a} -e.Rz=function(a,b){if(0a)throw lu(new mu,a+" is out of bounds (min 0, max "+(-1+this.xb|0)+")");if(c>this.xb)throw lu(new mu,(-1+c|0)+" is out of bounds (min 0, max "+(-1+this.xb|0)+")");tI(xI(),this.Cf,a+b|0,this.Cf,a,this.xb-(a+b|0)|0);a=this.xb-b|0;b=this.Cf;c=this.xb;hm();if(a>c)throw fm("fromIndex("+a+") \x3e toIndex("+c+")");for(var d=a;d!==c;)b.a[d]=null,d=1+d|0;this.xb=a}else if(0>b)throw fm("removing negative number of elements: "+b);};e.Hc=function(){return"ArrayBuffer"}; -e.Lb=function(a,b,c){var d=this.xb,f=op(Bl(),a);c=cb)throw rk();if(0>a||0(this.qi.length|0))throw Bk();this.qi.splice(a,b)}; -e.jf=function(){return"WrappedArray"};e.yb=function(){return this};e.Wa=function(a){this.qi.push(a);return this};e.t=function(a){return this.qi[a|0]};e.Fb=function(){return d2()};e.$classData=x({Rka:0},!1,"scala.scalajs.js.WrappedArray",{Rka:1,JA:1,Mg:1,zb:1,ia:1,b:1,ea:1,I:1,ga:1,K:1,fa:1,tb:1,wa:1,da:1,bb:1,o:1,Pg:1,Ie:1,Qg:1,Se:1,gd:1,KA:1,Vd:1,Ud:1,Ij:1,Jb:1,eb:1,oh:1,Ib:1,qb:1,ph:1,vG:1,we:1,d:1}); -function W9(a,b,c,d){if(0!==(b.a.length&(-1+b.a.length|0)))throw rm("assertion failed: Array.length must be power of 2");var f=b.a.length;if(0>c||c>=f)throw lu(new mu,c+" is out of bounds (min 0, max "+(-1+f|0)+")");f=b.a.length;if(0>d||d>=f)throw lu(new mu,d+" is out of bounds (min 0, max "+(-1+f|0)+")");a.Ta=b;a.Yb=c;a.ad=d}function W1(a,b,c){a.Ta=b;a.Yb=0;a.ad=c;W9(a,a.Ta,a.Yb,a.ad);return a}function Y1(){var a=new X1;W1(a,V1(a2(),16),0);return a}function X1(){this.Ta=null;this.ad=this.Yb=0} -X1.prototype=new W8;X1.prototype.constructor=X1;function X9(){}e=X9.prototype=X1.prototype;e.uf=function(a){return Z3(this,a)};e.kb=function(a){return a4(this,a)};e.Zd=function(a){return b4(this,a)};e.hd=function(a){return c4(this,a)};e.nb=function(a){return mY(this,a)};e.Rg=function(a){return nY(this,a)};e.w=function(){var a=new IG(this);return new JG(a)};e.Qc=function(a){return d0(this,a)};e.R=function(){return this.V(0)};e.Kd=function(){return f0(this)};e.$b=function(){return g0(this)}; -e.Sc=function(a){var b=(this.ad-this.Yb|0)&(-1+this.Ta.a.length|0);return b===a?0:ba||a>=b)throw lu(new mu,a+" is out of bounds (min 0, max "+(-1+b|0)+")");return this.Ta.a[(this.Yb+a|0)&(-1+this.Ta.a.length|0)]}; -function XP(a,b){var c=1+((a.ad-a.Yb|0)&(-1+a.Ta.a.length|0))|0;c>((a.ad-a.Yb|0)&(-1+a.Ta.a.length|0))&&c>=a.Ta.a.length&&b2(a,c);a.Ta.a[a.ad]=b;a.ad=(1+a.ad|0)&(-1+a.Ta.a.length|0);return a}function YP(a,b){var c=b.L();if(0((a.ad-a.Yb|0)&(-1+a.Ta.a.length|0))&&c>=a.Ta.a.length&&b2(a,c),b=b.w();b.v();)c=b.s(),a.Ta.a[a.ad]=c,a.ad=(1+a.ad|0)&(-1+a.Ta.a.length|0);else for(b=b.w();b.v();)c=b.s(),XP(a,c);return a} -e.Rz=function(a,b){if(0a||a>=c)throw lu(new mu,a+" is out of bounds (min 0, max "+(-1+c|0)+")");c=(this.ad-this.Yb|0)&(-1+this.Ta.a.length|0);var d=c-a|0;b=d>1)|0)>d)b=V1(a2(),d),k5(this,0,b,0,a),k5(this,f,b,a,c),W9(this,b,0,d);else if(a<<1<=d){for(a=-1+f|0;a>=b;)this.Ta.a[(this.Yb+a|0)&(-1+this.Ta.a.length|0)]=this.Ta.a[(this.Yb+(a-b|0)|0)&(-1+this.Ta.a.length| -0)],a=-1+a|0;for(;0<=a;)this.Ta.a[(this.Yb+a|0)&(-1+this.Ta.a.length|0)]=null,a=-1+a|0;this.Yb=(this.Yb+b|0)&(-1+this.Ta.a.length|0)}else{for(;a=a.Ta.a.length||16b){var c=(a.ad-a.Yb|0)&(-1+a.Ta.a.length|0);b=V1(a2(),b);b=k5(a,0,b,0,c);W9(a,b,0,c)}}e.Hc=function(){return"ArrayDeque"};e.Fb=function(){return this.bg()};e.wc=function(a){return YP(this,a)};e.Wa=function(a){return XP(this,a)};e.t=function(a){return this.V(a|0)}; -e.$classData=x({cS:0},!1,"scala.collection.mutable.ArrayDeque",{cS:1,JA:1,Mg:1,zb:1,ia:1,b:1,ea:1,I:1,ga:1,K:1,fa:1,tb:1,wa:1,da:1,bb:1,o:1,Pg:1,Ie:1,Qg:1,Se:1,gd:1,KA:1,Vd:1,Ud:1,Ij:1,vG:1,oh:1,Ib:1,qb:1,ph:1,Jb:1,eb:1,Kja:1,Fg:1,d:1});function WP(a){this.Ta=null;this.ad=this.Yb=0;a=V1(a2(),a);W1(this,a,0)}WP.prototype=new X9;WP.prototype.constructor=WP;WP.prototype.bg=function(){return w2()};WP.prototype.Hc=function(){return"Queue"};WP.prototype.Fb=function(){return w2()}; -WP.prototype.$classData=x({Aka:0},!1,"scala.collection.mutable.Queue",{Aka:1,cS:1,JA:1,Mg:1,zb:1,ia:1,b:1,ea:1,I:1,ga:1,K:1,fa:1,tb:1,wa:1,da:1,bb:1,o:1,Pg:1,Ie:1,Qg:1,Se:1,gd:1,KA:1,Vd:1,Ud:1,Ij:1,vG:1,oh:1,Ib:1,qb:1,ph:1,Jb:1,eb:1,Kja:1,Fg:1,d:1});ma=new p(0,0);Hb.An=ma; -exports.GeneralSetting=function(...a){if(void 0===a[0]){wx();var b=!0}else b=!!a[0];var c=void 0===a[1]?wx().it():a[1];if(void 0===a[2]){wx();var d=150}else d=a[2]|0;if(void 0===a[3]){wx();var f=10}else f=a[3]|0;if(void 0===a[4]){wx();var g=!1}else g=!!a[4];a=void 0===a[5]?wx().eB():a[5];return new Zx(b,c,d,f,g,a)};exports.QueryVariable=function(a){return new Hf(a)};exports.PropertyPath=function(a){return new BW(a)};var Y9=exports;Gc||(Gc=new Fc);Y9.ConfigurationObject=Gc; -exports.StatementConfigurationJson=function(a,...b){void 0===b[0]?(Gx(),b=new Zx((wx(),!0),(wx(),"warn"),(wx(),150),(wx(),10),(wx(),!1),(wx(),"http://urlProxy"))):b=b[0];return new Yx(a,b)};exports.SWDiscovery=function(...a){if(void 0===a[0]){cV||(cV=new bV);var b=new cy(Wx())}else b=a[0];void 0===a[1]?(cV||(cV=new bV),a=null):a=a[1];return new gT(b,a)};exports.SWDiscoveryHelper=function(a){return new NU(a)};exports.ProjectionExpressionIncrement=function(a,b){return new ET(a,b)}; -exports.BindIncrement=function(a,b){return new cT(a,b)};exports.SparqlBuilder=Lg();exports.IRI=function(a){return new VB(a)};exports.Anonymous=function(a){return new xW(a)};exports.SWDiscoveryTransaction=function(a){return new FT(a)};exports.URI=function(a,...b){b=void 0===b[0]?Dg().it():b[0];return new Bg(a,b)}; -exports.Root=function(...a){if(void 0===a[0]){ye();var b=fH().g()}else b=a[0];if(void 0===a[1]){ye();E();var c=new VB("http://www.w3.org/2002/07/owl#");c=z(new B,"owl",c);var d=new VB("http://www.w3.org/1999/02/22-rdf-syntax-ns#");d=z(new B,"rdf",d);var f=new VB("http://www.w3.org/2000/01/rdf-schema#");f=z(new B,"rdfs",f);var g=new VB("http://www.w3.org/2001/XMLSchema#");c=[c,d,f,z(new B,"xsd",g)];c=qc(new rc,c);c=G(0,c)}else c=a[1];d=void 0===a[2]?ye().Bn():a[2];void 0===a[3]?(ye(),J(),f=F(),f=hh(F(), -f)):f=a[3];void 0===a[4]?(ye(),J(),g=F(),g=hh(F(),g)):g=a[4];if(void 0===a[5]){ye();J();var h=F();h=hh(F(),h)}else h=a[5];if(void 0===a[6]){ye();J();var l=F();l=hh(F(),l)}else l=a[6];if(void 0===a[7]){ye();J();var n=F();n=hh(F(),n)}else n=a[7];if(void 0===a[8]){ye();var r=I(J().u,F())}else r=a[8];void 0===a[9]?(ye(),E(),a=F(),a=G(0,a)):a=a[9];return new jf(b,c,d,f,g,h,l,n,r,a)};exports.SWFilterIncrement=function(a,...b){void 0===b[0]?(DT||(DT=new CT),b=!1):b=!!b[0];return new nT(a,b)}; -exports.LinkTo=function(a,b,...c){var d=void 0===c[0]?Oe().Bn():c[0];c=void 0===c[1]?Oe().jt():c[1];return new Ef(a,b,d,c)};var Z9=exports;Rw||(Rw=new Nw);Z9.log=Rw;exports.SWDiscoveryConfiguration=Xx();exports.Literal=function(a,...b){if(void 0===b[0]){Tg();var c=Dg().yd}else c=b[0];void 0===b[1]?(Tg(),b=""):b=b[1];return new Jg(a,c,b)};exports.ObjectOf=function(a,b,...c){var d=void 0===c[0]?Ne().Bn():c[0];c=void 0===c[1]?Ne().jt():c[1];return new Df(a,b,d,c)}; -exports.LinkFrom=function(a,b,...c){var d=void 0===c[0]?Pe().Bn():c[0];c=void 0===c[1]?Pe().jt():c[1];return new Ff(a,b,d,c)};exports.StatementConfiguration=function(...a){void 0===a[0]?(Xx(),a=new Yx(I(J().u,F()),new Zx((wx(),!0),(wx(),"warn"),(wx(),150),(wx(),10),(wx(),!1),(wx(),"http://urlProxy")))):a=a[0];return new cy(a)};exports.Something=function(a,...b){if(void 0===b[0]){Le();var c=I(J().u,F())}else c=b[0];void 0===b[1]?(Le(),E(),b=F(),b=G(0,b)):b=b[1];return new qg(a,c,b)}; -exports.Source=function(a,...b){var c=void 0===b[0]?Bx().it():b[0];if(void 0===b[1]){Bx();var d=""}else d=b[1];if(void 0===b[2]){Bx();var f=""}else f=b[2];if(void 0===b[3]){Bx();var g="application/sparql-query"}else g=b[3];var h=void 0===b[4]?Bx().eB():b[4];if(void 0===b[5]){Bx();var l=""}else l=b[5];if(void 0===b[6]){Bx();var n=""}else n=b[6];if(void 0===b[7]){Bx();var r=""}else r=b[7];void 0===b[8]?(Bx(),b=""):b=b[8];return new jT(a,c,d,f,g,h,l,n,r,b)}; +function vA(a,b,c,d){var f=0,g=0,h=a=-1,k=c;if(0>(c|d|d-c|0|La(b)-d|0))throw xo();45===wa(b,c)&&(a=1,h=0,k=1+k|0);var n=d-k|0;if(0>=n||19r||9>>16|0;u=l(10,65535&u);var w=l(10,f);f=u+(w<<16)|0;u=(u>>>16|0)+w|0;g=l(10,g)+(u>>>16|0)|0;u=r>>31;r=f-r|0;g=(-2147483648^r)>(-2147483648^f)?-1+(g-u|0)|0:g-u|0;f=r;k=1+k|0}if(19===n&&(0<=g||0===f&&-2147483648===g&&0>h))throw new wA(Ma(b).substring(c,d)); +b=g;c=h;d=f;g=65535&d;h=d>>>16|0;r=65535&a;k=a>>>16|0;n=l(g,r);r=l(h,r);f=l(g,k);g=n+((r+f|0)<<16)|0;n=(n>>>16|0)+f|0;a=(((l(d,c)+l(b,a)|0)+l(h,k)|0)+(n>>>16|0)|0)+(((65535&n)+r|0)>>>16|0)|0;return new p(g,a)}sA.prototype.$classData=v({Iha:0},!1,"upickle.core.Util$",{Iha:1,b:1});var tA;function xA(){tA||(tA=new sA);return tA}function yA(){this.CT=null;zA=this;this.CT=new AA("#D32F2F","#E64A19","#0097A7","#388E3C","#7B1FA2","#5C6BC0","#78909C","#B0BEC5","")}yA.prototype=new t; +yA.prototype.constructor=yA;yA.prototype.$classData=v({Yia:0},!1,"wvlet.log.JSConsoleLogHandler$",{Yia:1,b:1});var zA;function BA(){}BA.prototype=new t;BA.prototype.constructor=BA;BA.prototype.setLogLevel=function(a,b){a=CA(eh(),a);b=DA(EA(),b);hh(a).Ll=b.Tb;return!0};BA.prototype.setDefaultLogLevel=function(a){var b=eh();a=DA(EA(),a);hh(b.wb).Ll=a.Tb;return!0};BA.prototype.$classData=v({$ia:0},!1,"wvlet.log.JSLogger$",{$ia:1,b:1});var FA;function GA(){}GA.prototype=new t; +GA.prototype.constructor=GA;GA.prototype.$classData=v({nja:0},!1,"wvlet.log.LogTimestampFormatter$",{nja:1,b:1});var HA;function IA(){}IA.prototype=new Cb;IA.prototype.constructor=IA;function JA(){}JA.prototype=IA.prototype;function KA(){}KA.prototype=new Fb;KA.prototype.constructor=KA;function LA(){}LA.prototype=KA.prototype;function Zb(){}Zb.prototype=new Hb;Zb.prototype.constructor=Zb;function MA(){}MA.prototype=Zb.prototype;function NA(){}NA.prototype=new jc;NA.prototype.constructor=NA; +function OA(){}OA.prototype=NA.prototype;function PA(){}PA.prototype=new lc;PA.prototype.constructor=PA;function QA(){}QA.prototype=PA.prototype;function Fc(){Cc=this;RA||(RA=new SA);TA||(TA=new UA);VA||(VA=new WA)}Fc.prototype=new t;Fc.prototype.constructor=Fc;Fc.prototype.$classData=v({j_:0},!1,"cats.kernel.Comparison$",{j_:1,b:1,d:1});var Cc;function XA(){}XA.prototype=new nc;XA.prototype.constructor=XA;function YA(){}YA.prototype=XA.prototype;function ZA(){}ZA.prototype=new pc; +ZA.prototype.constructor=ZA;function $A(){}$A.prototype=ZA.prototype;function aB(){}aB.prototype=new nc;aB.prototype.constructor=aB;function bB(){}bB.prototype=aB.prototype;function hc(){}hc.prototype=new sc;hc.prototype.constructor=hc;hc.prototype.$classData=v({C0:0},!1,"cats.kernel.instances.StaticMethods$",{C0:1,Fxa:1,b:1});var gc;v({P0:0},!1,"cats.kernel.instances.byte.package$",{P0:1,b:1,RK:1});v({Q0:0},!1,"cats.kernel.instances.char.package$",{Q0:1,b:1,SK:1}); +function cB(){dB=this;this.Jx(new eB)}cB.prototype=new t;cB.prototype.constructor=cB;cB.prototype.Jx=function(){};cB.prototype.$classData=v({R0:0},!1,"cats.kernel.instances.string.package$",{R0:1,b:1,cL:1});var dB;function fB(){dB||(dB=new cB)}function pd(){}pd.prototype=new t;pd.prototype.constructor=pd;pd.prototype.tI=function(a){return new gB(this,a)};pd.prototype.$classData=v({U0:0},!1,"cats.parse.Accumulator$$anon$12",{U0:1,b:1,gL:1}); +function gB(a,b){this.uE=null;this.W0=b;this.uE=(z(),new Cd)}gB.prototype=new t;gB.prototype.constructor=gB;gB.prototype.OB=function(){return new Ld(this.W0,this.uE.nb())};gB.prototype.zx=function(a){this.uE.Ia(a);return this};gB.prototype.$classData=v({V0:0},!1,"cats.parse.Accumulator$$anon$12$$anon$13",{V0:1,b:1,hL:1});function hB(a){this.iL=a}hB.prototype=new t;hB.prototype.constructor=hB;hB.prototype.OB=function(){return this.iL.nb()};hB.prototype.zx=function(a){this.iL.Ia(a);return this}; +hB.prototype.$classData=v({b1:0},!1,"cats.parse.Appender$$anon$3",{b1:1,b:1,hL:1});function Uc(){}Uc.prototype=new t;Uc.prototype.constructor=Uc;Uc.prototype.OB=function(){};Uc.prototype.zx=function(){return this};Uc.prototype.$classData=v({c1:0},!1,"cats.parse.Appender$$anon$4",{c1:1,b:1,hL:1});function ce(){this.rc=0;this.cc=!1}ce.prototype=new fg;ce.prototype.constructor=ce;function iB(){}iB.prototype=ce.prototype; +function Laa(a,b){var c=td(id(),a);id();b=new rd(c,b);a=new C((()=>d=>d.xa())(a));return zd(id(),b,a)}e=ce.prototype;e.rX=function(a){a=a.ws();id();a=new rd(this,a);var b=new C((()=>c=>c.Ea())(this));return zd(id(),a,b)};function sd(a,b){var c=id(),d=z().Jb;return Td(c,new Vb(a,new Vb(b,d)))}e.rI=function(a){return zd(id(),this,a)};e.wK=function(a){return this.rX(a)};e.xK=function(a){id();return new rd(this,a)};e.ws=function(){return td(id(),this)}; +var Sd=v({Yf:0},!1,"cats.parse.Parser",{Yf:1,Yb:1,b:1});ce.prototype.$classData=Sd;v({c2:0},!1,"cats.parse.Parser$Soft",{c2:1,cya:1,b:1});function jB(){this.BE=null;kB=this;this.BE=jA(Ah(),new lB(new R,new R,new R,new R,new R,new R),new mB)}jB.prototype=new t;jB.prototype.constructor=jB;jB.prototype.Iv=function(){return"warn"};jB.prototype.fE=function(){return"http://urlProxy"};jB.prototype.$classData=v({y2:0},!1,"inrae.semantic_web.ConfigurationObject$GeneralSetting$",{y2:1,b:1,d:1});var kB; +function nB(){kB||(kB=new jB);return kB}function oB(){this.CE=null;pB=this;this.CE=jA(Ah(),new qB(new R,new R,new R,new R,new R,new R,new R,new R,new R,new R),new rB)}oB.prototype=new t;oB.prototype.constructor=oB;oB.prototype.Iv=function(){return""};oB.prototype.fE=function(){return"POST"};oB.prototype.$classData=v({J2:0},!1,"inrae.semantic_web.ConfigurationObject$Source$",{J2:1,b:1,d:1});var pB;function sB(){pB||(pB=new oB);return pB} +function tB(){this.Fz=null;uB=this;this.Fz=jA(Ah(),new vB(new R,new R),new wB)}tB.prototype=new t;tB.prototype.constructor=tB;tB.prototype.$classData=v({Y2:0},!1,"inrae.semantic_web.ConfigurationObject$StatementConfigurationJson$",{Y2:1,b:1,d:1});var uB;function xB(){uB||(uB=new tB);return uB} +function yB(){this.hw=this.iM=null;zB=this;this.iM=$g().kM;this.hw=jA(Ah(),new AB(new R,new R,new R),new BB);var a=eh().wb,b=CB();gh(hh(a),b.Tb)&&ih(eh().wb,CB(),new jh("com/github/p2m2/shared/src/main/scala/inrae/semantic_web/SWDiscovery.scala","SWDiscovery.scala",23,7)," --------------------------------------------------");a=eh().wb;b=CB();gh(hh(a),b.Tb)&&ih(eh().wb,CB(),new jh("com/github/p2m2/shared/src/main/scala/inrae/semantic_web/SWDiscovery.scala", +"SWDiscovery.scala",24,7)," ---- Discovery :"+DB().iM+" -----------");a=eh().wb;b=CB();gh(hh(a),b.Tb)&&ih(eh().wb,CB(),new jh("com/github/p2m2/shared/src/main/scala/inrae/semantic_web/SWDiscovery.scala","SWDiscovery.scala",25,7)," --------------------------------------------------")}yB.prototype=new t;yB.prototype.constructor=yB;yB.prototype.$classData=v({h3:0},!1,"inrae.semantic_web.SWDiscovery$",{h3:1,b:1,d:1});var zB; +function DB(){zB||(zB=new yB);return zB}function EB(){this.Lz=null;FB=this;this.Lz=jA(Ah(),new GB(new R),new HB)}EB.prototype=new t;EB.prototype.constructor=EB;EB.prototype.$classData=v({y3:0},!1,"inrae.semantic_web.SWTransaction$",{y3:1,b:1,d:1});var FB;function IB(){FB||(FB=new EB);return FB}function JB(){this.KE=null;KB=this;this.KE=jA(Ah(),new LB(new R),new MB)}JB.prototype=new t;JB.prototype.constructor=JB; +function NB(){OB();return new PB(N(z().w,A()),new QB((nB(),!0),(nB(),"warn"),(nB(),150),(nB(),10),(nB(),!1),(nB(),"http://urlProxy")))}JB.prototype.setConfigString=function(a){try{var b=X(),c=new RB(a,SB());X();var d=xB().Fz,f=new Pw(TB(b,c,d))}catch(g){if(a=Sr(J(),g),null!==a)b:{if(null!==a&&(b=gz(iz(),a),!b.i())){a=b.Sa();f=new Hw(a);break b}throw I(J(),a);}else throw g;}if(f instanceof Pw)a=new UB(f.hj);else{if(f instanceof Hw)throw a=f.gj.bf(),b=E(),yg(),b.i()||Ci(),new VB(a);throw new B(f);}return a}; +JB.prototype.setConfig=function(a){return new UB(a)};JB.prototype.$classData=v({I3:0},!1,"inrae.semantic_web.StatementConfiguration$",{I3:1,b:1,d:1});var KB;function OB(){KB||(KB=new JB);return KB}function WB(){this.Ss=null;XB=this;this.Ss=Aw()}WB.prototype=new t;WB.prototype.constructor=WB; +function YB(a,b,c){Vg||(Vg=new Ug);switch(c){case "application/sparql-query":a=aC().JL;break;case "hypermedia":a=aC().IL;break;default:a=aC().HL}a=a.g();b=[G(new H,"type",a),G(new H,"value",b)];b=Af(new Bf,b);return Lg(Mg(),b)} +function $ba(a,b){var c=new ca.Store,d=Hy(new Iy),f=ca.Parser;Ng||(Ng=new Dg);switch(b){case "text/turtle":b=bC().FL;break;case "text/n3":b=bC().EL;break;default:throw a=E(),yg(),a.i()||Ci(),new Di(" "+b+" format is not managed");}L();var g=A();(new f(Maa(b,M(0,g)))).parse(a,((h,k)=>(n,r)=>{cC();if(void 0===r)throw Ir("undefined.get");null===r?Yw(h,new Pw(k)):k.addQuad(r)})(d,c));return d} +function aca(a,b){var c=new ca.Store,d=Hy(new Iy),f=new baa.RdfXmlParser(Oaa());f.on("data",dC(eC(),new C(((g,h)=>k=>{h.addQuad(k)})(a,c)))).on("error",dC(eC(),new C((()=>g=>{var h=E();yg();h.i()||Ci();throw new Di(g);})(a)))).on("end",fC(eC(),new Yc(((g,h,k)=>()=>Yw(h,new Pw(k)))(a,d,c))));f.write(b);f.end();return d}function gC(a,b,c){return"text/rdf-xml"===c?aca(a,b):$ba(b,c)} +function hC(a,b,c){try{Jy();var d=(0,aa.newEngine)();iC||(iC=new jC);var f=iC.GL,g=d.query;Rg||(Rg=new Og);var h=g.call(d,b,Naa(c,f)),k=new Pw(kC(Gy(h),new C((n=>r=>{Jy();r=(0,aa.newEngine)().resultToString(r,"application/sparql-results+json");return kC(lC(Vw(Gy(r),new C((u=>w=>{var y=Hy(new Iy),K=new mC("");w.data.on("data",dC(eC(),new C(((U,Z)=>ra=>{Z.Ob=""+Z.Ob+Ma(ra)})(u,K)))).on("end",fC(eC(),new Yc(((U,Z,ra)=>()=>Yw(Z,new Pw(ra.Ob)))(u,y,K)))).on("error",dC(eC(),new C(((U,Z)=>ra=>{var Ba=E(); +yg();Ba.i()||Ci();ra=new Di(ra);return cx(Z,ra)})(u,y))));return y})(n)),cC().Ss),new nC,cC().Ss),new C((u=>w=>Vw(w,new C((()=>y=>new oC(y,"json"))(u)),cC().Ss))(n)),cC().Ss)})(a)),cC().Ss))}catch(n){if(a=Sr(J(),n),null!==a)a:{if(null!==a&&(b=gz(iz(),a),!b.i())){a=b.Sa();k=new Hw(a);break a}throw I(J(),a);}else throw n;}if(k instanceof Pw)return k.hj;if(k instanceof Hw)throw a=k.gj.g(),b=E(),yg(),b.i()||Ci(),new Di(a);throw new B(k);} +WB.prototype.$classData=v({U3:0},!1,"inrae.semantic_web.driver.ComunicaRequestDriver$",{U3:1,b:1,d:1});var XB;function cC(){XB||(XB=new WB);return XB} +function bca(a,b){var c=oh(qh(),a).FH(b);if(c instanceof Ze)return b=c.Sb,Uw(Ow(),new Yc(((n,r)=>()=>{var u=new pC(qC().Vz);vh(n,u);return new oC(r,"json")})(a,b)),a.sH());if(E()===c){c=new pC(qC().Xz);vh(a,c);var d=Aa();c=1E6*+(0,ym().fC)();c=gs(d,c);d=d.za;var f=Aa(),g=1E6*+(0,ym().fC)();g=gs(f,g);f=f.za;var h=eh().wb,k=fh();gh(hh(h),k.Tb)&&ih(eh().wb,fh(),new jh("com/github/p2m2/shared/src/main/scala/inrae/semantic_web/driver/RequestDriver.scala","RequestDriver.scala", +37,14),"RequestDriver Send request "+new p(c,d)+","+new p(g,f));return Vw(a.dV(b),new C(((n,r,u)=>w=>{var y=new pC(qC().eF);vh(n,y);var K=Aa();y=1E6*+(0,ym().fC)();y=gs(K,y);var U=K.za,Z=r.o;K=y-r.k|0;y=(-2147483648^K)>(-2147483648^y)?-1+(U-Z|0)|0:U-Z|0;y=bs(Aa(),K,y)/1E9;K=eh().wb;U=fh();gh(hh(K),U.Tb)&&ih(eh().wb,fh(),new jh("com/github/p2m2/shared/src/main/scala/inrae/semantic_web/driver/RequestDriver.scala","RequestDriver.scala",42,16),"RequestDriver Receive results -- Elapsed Time : "+ +y);y=eh().wb;K=fh();gh(hh(y),K.Tb)&&(y=eh().wb,K=fh(),ih(y,K,new jh("com/github/p2m2/shared/src/main/scala/inrae/semantic_web/driver/RequestDriver.scala","RequestDriver.scala",43,16),"RequestDriver Memorize (Mb) \x3d\x3e"+(w.Kt.length|0)/1048576));y=oh(qh(),n);U=w.Kt;K=y.vA;U=Waa(rl(),U);y.vA=K.Kv(G(new H,u,U));y=new pC(qC().Vz);vh(n,y);return w})(a,new p(g,f),b)),a.sH())}throw new B(c);} +function rC(){this.BM=null;sC=this;var a=Ah(),b=X(),c=new tC(new R,new R,new R);b=new uC(vC(b),"inrae.semantic_web.node.Abs",c);c=X();var d=new wC,f=new xC(m(yC));this.BM=jA(a,b,new zC(AC(c),f,"inrae.semantic_web.node.Abs",d))}rC.prototype=new t;rC.prototype.constructor=rC;rC.prototype.$classData=v({c4:0},!1,"inrae.semantic_web.node.Abs$",{c4:1,b:1,d:1});var sC;function ei(){sC||(sC=new rC);return sC}function BC(){this.V=this.U=this.D=null}BC.prototype=new zi;BC.prototype.constructor=BC; +function CC(){}CC.prototype=BC.prototype;BC.prototype.Vh=function(){return!1};function DC(){this.aA=null;EC=this;var a=Ah(),b=X(),c=new FC(new R,new R,new R,new R);b=new uC(vC(b),"inrae.semantic_web.node.Bind",c);c=X();var d=new GC,f=new xC(m(HC));this.aA=jA(a,b,new zC(AC(c),f,"inrae.semantic_web.node.Bind",d))}DC.prototype=new t;DC.prototype.constructor=DC;DC.prototype.$classData=v({l4:0},!1,"inrae.semantic_web.node.Bind$",{l4:1,b:1,d:1});var EC;function Ri(){EC||(EC=new DC);return EC} +function IC(){this.LM=null;JC=this;var a=Ah(),b=X(),c=new KC(new R,new R,new R);b=new uC(vC(b),"inrae.semantic_web.node.Ceil",c);c=X();var d=new LC,f=new xC(m(MC));this.LM=jA(a,b,new zC(AC(c),f,"inrae.semantic_web.node.Ceil",d))}IC.prototype=new t;IC.prototype.constructor=IC;IC.prototype.$classData=v({v4:0},!1,"inrae.semantic_web.node.Ceil$",{v4:1,b:1,d:1});var JC;function gi(){JC||(JC=new IC);return JC} +function NC(){this.RM=null;OC=this;var a=Ah(),b=X(),c=new PC(new R,new R,new R,new R,new R);b=new uC(vC(b),"inrae.semantic_web.node.Contains",c);c=X();var d=new QC,f=new xC(m(RC));this.RM=jA(a,b,new zC(AC(c),f,"inrae.semantic_web.node.Contains",d))}NC.prototype=new t;NC.prototype.constructor=NC;NC.prototype.$classData=v({D4:0},!1,"inrae.semantic_web.node.Contains$",{D4:1,b:1,d:1});var OC;function Uh(){OC||(OC=new NC);return OC} +function SC(){this.XM=null;TC=this;var a=Ah(),b=X(),c=new UC(new R,new R,new R,new R,new R);b=new uC(vC(b),"inrae.semantic_web.node.Count",c);c=X();var d=new VC,f=new xC(m(WC));this.XM=jA(a,b,new zC(AC(c),f,"inrae.semantic_web.node.Count",d))}SC.prototype=new t;SC.prototype.constructor=SC;SC.prototype.$classData=v({N4:0},!1,"inrae.semantic_web.node.Count$",{N4:1,b:1,d:1});var TC;function Bh(){TC||(TC=new SC);return TC} +function XC(){this.aN=null;YC=this;var a=Ah(),b=X(),c=new ZC(new R,new R,new R);b=new uC(vC(b),"inrae.semantic_web.node.Datatype",c);c=X();var d=new $C,f=new xC(m(aD));this.aN=jA(a,b,new zC(AC(c),f,"inrae.semantic_web.node.Datatype",d))}XC.prototype=new t;XC.prototype.constructor=XC;XC.prototype.$classData=v({X4:0},!1,"inrae.semantic_web.node.Datatype$",{X4:1,b:1,d:1});var YC;function ri(){YC||(YC=new XC);return YC} +function bD(){this.dA=null;cD=this;var a=Ah(),b=X(),c=new dD(new R,new R,new R,new R,new R);b=new uC(vC(b),"inrae.semantic_web.node.DatatypeNode",c);c=X();var d=new eD,f=new xC(m(fD));this.dA=jA(a,b,new zC(AC(c),f,"inrae.semantic_web.node.DatatypeNode",d))}bD.prototype=new t;bD.prototype.constructor=bD;bD.prototype.$classData=v({e5:0},!1,"inrae.semantic_web.node.DatatypeNode$",{e5:1,b:1,d:1});var cD;function Pi(){cD||(cD=new bD);return cD} +function gD(){this.jN=null;hD=this;var a=Ah(),b=X(),c=new iD(new R,new R,new R);b=new uC(vC(b),"inrae.semantic_web.node.Distinct",c);c=X();var d=new jD,f=new xC(m(kD));this.jN=jA(a,b,new zC(AC(c),f,"inrae.semantic_web.node.Distinct",d))}gD.prototype=new t;gD.prototype.constructor=gD;gD.prototype.$classData=v({o5:0},!1,"inrae.semantic_web.node.Distinct$",{o5:1,b:1,d:1});var hD;function hj(){hD||(hD=new gD);return hD} +function lD(){this.pN=null;mD=this;var a=Ah(),b=X(),c=new nD(new R,new R,new R,new R,new R);b=new uC(vC(b),"inrae.semantic_web.node.Equal",c);c=X();var d=new oD,f=new xC(m(pD));this.pN=jA(a,b,new zC(AC(c),f,"inrae.semantic_web.node.Equal",d))}lD.prototype=new t;lD.prototype.constructor=lD;lD.prototype.$classData=v({w5:0},!1,"inrae.semantic_web.node.Equal$",{w5:1,b:1,d:1});var mD;function Xh(){mD||(mD=new lD);return mD}function qD(){this.V=this.U=this.D=null}qD.prototype=new zi; +qD.prototype.constructor=qD;function rD(){}rD.prototype=qD.prototype;function sD(a,b,c,d,f){a.ba=b;wi(a,c,d,f)}function wj(){this.V=this.U=this.D=null;this.ba=!1}wj.prototype=new zi;wj.prototype.constructor=wj;function tD(){}tD.prototype=wj.prototype;wj.prototype.Vh=function(a){return a instanceof wj}; +function uD(){this.uN=null;vD=this;var a=Ah(),b=X(),c=new wD(new R,new R,new R);b=new uC(vC(b),"inrae.semantic_web.node.Floor",c);c=X();var d=new xD,f=new xC(m(yD));this.uN=jA(a,b,new zC(AC(c),f,"inrae.semantic_web.node.Floor",d))}uD.prototype=new t;uD.prototype.constructor=uD;uD.prototype.$classData=v({I5:0},!1,"inrae.semantic_web.node.Floor$",{I5:1,b:1,d:1});var vD;function hi(){vD||(vD=new uD);return vD} +function zD(){this.DN=null;AD=this;var a=Ah(),b=X(),c=new BD(new R,new R,new R,new R,new R);b=new uC(vC(b),"inrae.semantic_web.node.Inf",c);c=X();var d=new CD,f=new xC(m(DD));this.DN=jA(a,b,new zC(AC(c),f,"inrae.semantic_web.node.Inf",d))}zD.prototype=new t;zD.prototype.constructor=zD;zD.prototype.$classData=v({U5:0},!1,"inrae.semantic_web.node.Inf$",{U5:1,b:1,d:1});var AD;function Zh(){AD||(AD=new zD);return AD} +function ED(){this.JN=null;FD=this;var a=Ah(),b=X(),c=new GD(new R,new R,new R,new R,new R);b=new uC(vC(b),"inrae.semantic_web.node.InfEqual",c);c=X();var d=new HD,f=new xC(m(ID));this.JN=jA(a,b,new zC(AC(c),f,"inrae.semantic_web.node.InfEqual",d))}ED.prototype=new t;ED.prototype.constructor=ED;ED.prototype.$classData=v({d6:0},!1,"inrae.semantic_web.node.InfEqual$",{d6:1,b:1,d:1});var FD;function $h(){FD||(FD=new ED);return FD} +function JD(){this.ON=null;KD=this;var a=Ah(),b=X(),c=new LD(new R,new R,new R,new R);b=new uC(vC(b),"inrae.semantic_web.node.Lang",c);c=X();var d=new MD,f=new xC(m(ND));this.ON=jA(a,b,new zC(AC(c),f,"inrae.semantic_web.node.Lang",d))}JD.prototype=new t;JD.prototype.constructor=JD;JD.prototype.$classData=v({n6:0},!1,"inrae.semantic_web.node.Lang$",{n6:1,b:1,d:1});var KD;function Hh(){KD||(KD=new JD);return KD} +function OD(){this.TN=null;PD=this;var a=Ah(),b=X(),c=new QD(new R,new R,new R,new R);b=new uC(vC(b),"inrae.semantic_web.node.LangMatches",c);c=X();var d=new RD,f=new xC(m(SD));this.TN=jA(a,b,new zC(AC(c),f,"inrae.semantic_web.node.LangMatches",d))}OD.prototype=new t;OD.prototype.constructor=OD;OD.prototype.$classData=v({w6:0},!1,"inrae.semantic_web.node.LangMatches$",{w6:1,b:1,d:1});var PD;function Ih(){PD||(PD=new OD);return PD} +function TD(){this.YN=null;UD=this;var a=Ah(),b=X(),c=new VD(new R,new R,new R,new R);b=new uC(vC(b),"inrae.semantic_web.node.Limit",c);c=X();var d=new WD,f=new xC(m(XD));this.YN=jA(a,b,new zC(AC(c),f,"inrae.semantic_web.node.Limit",d))}TD.prototype=new t;TD.prototype.constructor=TD;TD.prototype.$classData=v({F6:0},!1,"inrae.semantic_web.node.Limit$",{F6:1,b:1,d:1});var UD;function kj(){UD||(UD=new TD);return UD} +function YD(){this.cO=null;ZD=this;var a=Ah(),b=X(),c=new $D(new R,new R,new R,new R);b=new uC(vC(b),"inrae.semantic_web.node.LinkFrom",c);c=X();var d=new aE,f=new xC(m(bE));this.cO=jA(a,b,new zC(AC(c),f,"inrae.semantic_web.node.LinkFrom",d))}YD.prototype=new t;YD.prototype.constructor=YD;function cE(){return N(z().w,A())}YD.prototype.Jv=function(){L();var a=A();return M(0,a)};YD.prototype.$classData=v({O6:0},!1,"inrae.semantic_web.node.LinkFrom$",{O6:1,b:1,d:1});var ZD; +function $i(){ZD||(ZD=new YD);return ZD}function dE(){this.hO=null;eE=this;var a=Ah(),b=X(),c=new fE(new R,new R,new R,new R);b=new uC(vC(b),"inrae.semantic_web.node.LinkTo",c);c=X();var d=new gE,f=new xC(m(hE));this.hO=jA(a,b,new zC(AC(c),f,"inrae.semantic_web.node.LinkTo",d))}dE.prototype=new t;dE.prototype.constructor=dE;dE.prototype.Jv=function(){L();var a=A();return M(0,a)};dE.prototype.$classData=v({X6:0},!1,"inrae.semantic_web.node.LinkTo$",{X6:1,b:1,d:1});var eE; +function Zi(){eE||(eE=new dE);return eE}function iE(){this.mO=null;jE=this;var a=Ah(),b=X(),c=new kE(new R,new R,new R,new R);b=new uC(vC(b),"inrae.semantic_web.node.ListValues",c);c=X();var d=new lE,f=new xC(m(mE));this.mO=jA(a,b,new zC(AC(c),f,"inrae.semantic_web.node.ListValues",d))}iE.prototype=new t;iE.prototype.constructor=iE;iE.prototype.$classData=v({f7:0},!1,"inrae.semantic_web.node.ListValues$",{f7:1,b:1,d:1});var jE;function Oi(){jE||(jE=new iE);return jE} +function nE(a,b,c,d,f){a.Rh=b;wi(a,c,d,f);b=Ah();c=[ui().jF,vi().hF];a.gF=Ch(b,Af(new Bf,c))}function oE(){this.gF=this.Rh=this.V=this.U=this.D=null}oE.prototype=new zi;oE.prototype.constructor=oE;function pE(){}pE.prototype=oE.prototype;function qE(){this.hF=null;rE=this;var a=Ah(),b=X(),c=new sE(new R,new R,new R,new R);b=new uC(vC(b),"inrae.semantic_web.node.NotBlock",c);c=X();var d=new tE,f=new xC(m(uE));this.hF=jA(a,b,new zC(AC(c),f,"inrae.semantic_web.node.NotBlock",d))}qE.prototype=new t; +qE.prototype.constructor=qE;qE.prototype.$classData=v({r7:0},!1,"inrae.semantic_web.node.NotBlock$",{r7:1,b:1,d:1});var rE;function vi(){rE||(rE=new qE);return rE}function vE(){this.xO=null;wE=this;var a=Ah(),b=X(),c=new xE(new R,new R,new R,new R,new R);b=new uC(vC(b),"inrae.semantic_web.node.NotEqual",c);c=X();var d=new yE,f=new xC(m(zE));this.xO=jA(a,b,new zC(AC(c),f,"inrae.semantic_web.node.NotEqual",d))}vE.prototype=new t;vE.prototype.constructor=vE; +vE.prototype.$classData=v({A7:0},!1,"inrae.semantic_web.node.NotEqual$",{A7:1,b:1,d:1});var wE;function Yh(){wE||(wE=new vE);return wE}function AE(){this.CO=null;BE=this;var a=Ah(),b=X(),c=new CE(new R,new R,new R,new R);b=new uC(vC(b),"inrae.semantic_web.node.ObjectOf",c);c=X();var d=new DE,f=new xC(m(EE));this.CO=jA(a,b,new zC(AC(c),f,"inrae.semantic_web.node.ObjectOf",d))}AE.prototype=new t;AE.prototype.constructor=AE;AE.prototype.Jv=function(){L();var a=A();return M(0,a)}; +AE.prototype.$classData=v({K7:0},!1,"inrae.semantic_web.node.ObjectOf$",{K7:1,b:1,d:1});var BE;function Yi(){BE||(BE=new AE);return BE}function FE(){this.HO=null;GE=this;var a=Ah(),b=X(),c=new HE(new R,new R,new R,new R);b=new uC(vC(b),"inrae.semantic_web.node.Offset",c);c=X();var d=new IE,f=new xC(m(JE));this.HO=jA(a,b,new zC(AC(c),f,"inrae.semantic_web.node.Offset",d))}FE.prototype=new t;FE.prototype.constructor=FE; +FE.prototype.$classData=v({T7:0},!1,"inrae.semantic_web.node.Offset$",{T7:1,b:1,d:1});var GE;function jj(){GE||(GE=new FE);return GE}function KE(){this.MO=null;LE=this;var a=Ah(),b=X(),c=new ME(new R,new R,new R,new R);b=new uC(vC(b),"inrae.semantic_web.node.OrderByAsc",c);c=X();var d=new NE,f=new xC(m(OE));this.MO=jA(a,b,new zC(AC(c),f,"inrae.semantic_web.node.OrderByAsc",d))}KE.prototype=new t;KE.prototype.constructor=KE; +KE.prototype.$classData=v({b8:0},!1,"inrae.semantic_web.node.OrderByAsc$",{b8:1,b:1,d:1});var LE;function cj(){LE||(LE=new KE);return LE}function PE(){this.RO=null;QE=this;var a=Ah(),b=X(),c=new RE(new R,new R,new R,new R);b=new uC(vC(b),"inrae.semantic_web.node.OrderByDesc",c);c=X();var d=new SE,f=new xC(m(TE));this.RO=jA(a,b,new zC(AC(c),f,"inrae.semantic_web.node.OrderByDesc",d))}PE.prototype=new t;PE.prototype.constructor=PE; +PE.prototype.$classData=v({k8:0},!1,"inrae.semantic_web.node.OrderByDesc$",{k8:1,b:1,d:1});var QE;function dj(){QE||(QE=new PE);return QE}function UE(){this.XO=null;VE=this;var a=Ah(),b=X(),c=new WE(new R,new R,new R,new R);b=new uC(vC(b),"inrae.semantic_web.node.Projection",c);c=X();var d=new XE,f=new xC(m(YE));this.XO=jA(a,b,new zC(AC(c),f,"inrae.semantic_web.node.Projection",d))}UE.prototype=new t;UE.prototype.constructor=UE; +UE.prototype.$classData=v({u8:0},!1,"inrae.semantic_web.node.Projection$",{u8:1,b:1,d:1});var VE;function gj(){VE||(VE=new UE);return VE}function ZE(){this.cP=null;$E=this;var a=Ah(),b=X(),c=new aF(new R,new R,new R,new R,new R);b=new uC(vC(b),"inrae.semantic_web.node.ProjectionExpression",c);c=X();var d=new bF,f=new xC(m(cF));this.cP=jA(a,b,new zC(AC(c),f,"inrae.semantic_web.node.ProjectionExpression",d))}ZE.prototype=new t;ZE.prototype.constructor=ZE; +ZE.prototype.$classData=v({D8:0},!1,"inrae.semantic_web.node.ProjectionExpression$",{D8:1,b:1,d:1});var $E;function Ti(){$E||($E=new ZE);return $E}function dF(){this.gP=null;eF=this;var a=Ah(),b=X(),c=new fF(new R,new R,new R);b=new uC(vC(b),"inrae.semantic_web.node.Rand",c);c=X();var d=new gF,f=new xC(m(hF));this.gP=jA(a,b,new zC(AC(c),f,"inrae.semantic_web.node.Rand",d))}dF.prototype=new t;dF.prototype.constructor=dF; +dF.prototype.$classData=v({N8:0},!1,"inrae.semantic_web.node.Rand$",{N8:1,b:1,d:1});var eF;function ii(){eF||(eF=new dF);return eF}function Fi(){this.V=this.U=this.D=null}Fi.prototype=new zi;Fi.prototype.constructor=Fi;function iF(){}iF.prototype=Fi.prototype;Fi.prototype.Vh=function(a){return!(a instanceof sk)&&(a instanceof jF||a instanceof wj||a instanceof Nj||a instanceof Pj||a instanceof vj)};var oj=v({mt:0},!1,"inrae.semantic_web.node.RdfNode",{mt:1,vb:1,b:1});Fi.prototype.$classData=oj; +function kF(){this.lP=null;lF=this;var a=Ah(),b=X(),c=new mF(new R,new R,new R);b=new uC(vC(b),"inrae.semantic_web.node.Reduced",c);c=X();var d=new nF,f=new xC(m(oF));this.lP=jA(a,b,new zC(AC(c),f,"inrae.semantic_web.node.Reduced",d))}kF.prototype=new t;kF.prototype.constructor=kF;kF.prototype.$classData=v({W8:0},!1,"inrae.semantic_web.node.Reduced$",{W8:1,b:1,d:1});var lF;function ij(){lF||(lF=new kF);return lF} +function pF(){this.sP=null;qF=this;var a=Ah(),b=X(),c=new rF(new R,new R,new R,new R,new R,new R);b=new uC(vC(b),"inrae.semantic_web.node.Regex",c);c=X();var d=new sF,f=new xC(m(tF));this.sP=jA(a,b,new zC(AC(c),f,"inrae.semantic_web.node.Regex",d))}pF.prototype=new t;pF.prototype.constructor=pF;pF.prototype.$classData=v({d9:0},!1,"inrae.semantic_web.node.Regex$",{d9:1,b:1,d:1});var qF;function Th(){qF||(qF=new pF);return qF} +function uF(){this.zP=null;vF=this;var a=Ah(),b=X(),c=new wF(new R,new R,new R,new R,new R,new R);b=new uC(vC(b),"inrae.semantic_web.node.Replace",c);c=X();var d=new xF,f=new xC(m(yF));this.zP=jA(a,b,new zC(AC(c),f,"inrae.semantic_web.node.Replace",d))}uF.prototype=new t;uF.prototype.constructor=uF;uF.prototype.$classData=v({o9:0},!1,"inrae.semantic_web.node.Replace$",{o9:1,b:1,d:1});var vF;function mi(){vF||(vF=new uF);return vF} +function zF(){this.kA=null;AF=this;var a=Ah(),b=X(),c=new BF(new R,new R,new R,new R,new R,new R,new R,new R,new R,new R,new R);b=new uC(vC(b),"inrae.semantic_web.node.Root",c);c=X();var d=new CF,f=new xC(m(DF));this.kA=jA(a,b,new zC(AC(c),f,"inrae.semantic_web.node.Root",d))}zF.prototype=new t;zF.prototype.constructor=zF; +function EF(){Ki();L();var a=new FF("http://www.w3.org/2002/07/owl#");a=G(new H,"owl",a);var b=new FF("http://www.w3.org/1999/02/22-rdf-syntax-ns#");b=G(new H,"rdf",b);var c=new FF("http://www.w3.org/2000/01/rdf-schema#");c=G(new H,"rdfs",c);var d=new FF("http://www.w3.org/2001/XMLSchema#");a=[a,b,c,G(new H,"xsd",d)];a=Af(new Bf,a);return M(0,a)}zF.prototype.$classData=v({z9:0},!1,"inrae.semantic_web.node.Root$",{z9:1,b:1,d:1});var AF;function Ki(){AF||(AF=new zF);return AF} +function GF(){this.OP=null;HF=this;var a=Ah(),b=X(),c=new IF(new R,new R,new R);b=new uC(vC(b),"inrae.semantic_web.node.Round",c);c=X();var d=new JF,f=new xC(m(KF));this.OP=jA(a,b,new zC(AC(c),f,"inrae.semantic_web.node.Round",d))}GF.prototype=new t;GF.prototype.constructor=GF;GF.prototype.$classData=v({P9:0},!1,"inrae.semantic_web.node.Round$",{P9:1,b:1,d:1});var HF;function fi(){HF||(HF=new GF);return HF}function LF(){this.V=this.U=this.D=null}LF.prototype=new zi;LF.prototype.constructor=LF; +function MF(){}MF.prototype=LF.prototype;LF.prototype.Vh=function(){return!1};function NF(){this.SP=null;OF=this;var a=Ah(),b=X(),c=new PF(new R,new R,new R);b=new uC(vC(b),"inrae.semantic_web.node.Something",c);c=X();var d=new QF,f=new xC(m(RF));this.SP=jA(a,b,new zC(AC(c),f,"inrae.semantic_web.node.Something",d))}NF.prototype=new t;NF.prototype.constructor=NF;NF.prototype.$classData=v({Y9:0},!1,"inrae.semantic_web.node.Something$",{Y9:1,b:1,d:1});var OF;function Wi(){OF||(OF=new NF);return OF} +function SF(){this.oA=null;TF=this;var a=Ah(),b=X(),c=new UF(new R,new R,new R,new R,new R);b=new uC(vC(b),"inrae.semantic_web.node.SourcesNode",c);c=X();var d=new WF,f=new xC(m(dG));this.oA=jA(a,b,new zC(AC(c),f,"inrae.semantic_web.node.SourcesNode",d))}SF.prototype=new t;SF.prototype.constructor=SF;SF.prototype.$classData=v({f$:0},!1,"inrae.semantic_web.node.SourcesNode$",{f$:1,b:1,d:1});var TF;function Qi(){TF||(TF=new SF);return TF} +function eG(){this.bQ=null;fG=this;var a=Ah(),b=X(),c=new gG(new R,new R,new R,new R);b=new uC(vC(b),"inrae.semantic_web.node.SparqlDefinitionExpression",c);c=X();var d=new hG,f=new xC(m(iG));this.bQ=jA(a,b,new zC(AC(c),f,"inrae.semantic_web.node.SparqlDefinitionExpression",d))}eG.prototype=new t;eG.prototype.constructor=eG;eG.prototype.$classData=v({p$:0},!1,"inrae.semantic_web.node.SparqlDefinitionExpression$",{p$:1,b:1,d:1});var fG;function Vi(){fG||(fG=new eG);return fG} +function jG(){this.gQ=null;kG=this;var a=Ah(),b=X(),c=new lG(new R,new R,new R,new R);b=new uC(vC(b),"inrae.semantic_web.node.Str",c);c=X();var d=new mG,f=new xC(m(nG));this.gQ=jA(a,b,new zC(AC(c),f,"inrae.semantic_web.node.Str",d))}jG.prototype=new t;jG.prototype.constructor=jG;jG.prototype.$classData=v({y$:0},!1,"inrae.semantic_web.node.Str$",{y$:1,b:1,d:1});var kG;function Gh(){kG||(kG=new jG);return kG} +function oG(){this.mQ=null;pG=this;var a=Ah(),b=X(),c=new qG(new R,new R,new R,new R,new R);b=new uC(vC(b),"inrae.semantic_web.node.StrEnds",c);c=X();var d=new rG,f=new xC(m(sG));this.mQ=jA(a,b,new zC(AC(c),f,"inrae.semantic_web.node.StrEnds",d))}oG.prototype=new t;oG.prototype.constructor=oG;oG.prototype.$classData=v({H$:0},!1,"inrae.semantic_web.node.StrEnds$",{H$:1,b:1,d:1});var pG;function Wh(){pG||(pG=new oG);return pG} +function tG(){this.sQ=null;uG=this;var a=Ah(),b=X(),c=new vG(new R,new R,new R,new R,new R);b=new uC(vC(b),"inrae.semantic_web.node.StrStarts",c);c=X();var d=new wG,f=new xC(m(xG));this.sQ=jA(a,b,new zC(AC(c),f,"inrae.semantic_web.node.StrStarts",d))}tG.prototype=new t;tG.prototype.constructor=tG;tG.prototype.$classData=v({R$:0},!1,"inrae.semantic_web.node.StrStarts$",{R$:1,b:1,d:1});var uG;function Vh(){uG||(uG=new tG);return uG} +function yG(){this.yQ=null;zG=this;var a=Ah(),b=X(),c=new AG(new R,new R,new R,new R,new R);b=new uC(vC(b),"inrae.semantic_web.node.SubStr",c);c=X();var d=new BG,f=new xC(m(CG));this.yQ=jA(a,b,new zC(AC(c),f,"inrae.semantic_web.node.SubStr",d))}yG.prototype=new t;yG.prototype.constructor=yG;yG.prototype.$classData=v({aaa:0},!1,"inrae.semantic_web.node.SubStr$",{aaa:1,b:1,d:1});var zG;function li(){zG||(zG=new yG);return zG} +function DG(){this.pA=null;EG=this;var a=Ah(),b=X(),c=new FG(new R,new R,new R,new R);b=new uC(vC(b),"inrae.semantic_web.node.SubjectOf",c);c=X();var d=new GG,f=new xC(m(HG));this.pA=jA(a,b,new zC(AC(c),f,"inrae.semantic_web.node.SubjectOf",d))}DG.prototype=new t;DG.prototype.constructor=DG;DG.prototype.$classData=v({kaa:0},!1,"inrae.semantic_web.node.SubjectOf$",{kaa:1,b:1,d:1});var EG;function Xi(){EG||(EG=new DG);return EG} +function IG(){this.IQ=null;JG=this;var a=Ah(),b=X(),c=new KG(new R,new R,new R,new R,new R);b=new uC(vC(b),"inrae.semantic_web.node.Sup",c);c=X();var d=new LG,f=new xC(m(MG));this.IQ=jA(a,b,new zC(AC(c),f,"inrae.semantic_web.node.Sup",d))}IG.prototype=new t;IG.prototype.constructor=IG;IG.prototype.$classData=v({taa:0},!1,"inrae.semantic_web.node.Sup$",{taa:1,b:1,d:1});var JG;function ai(){JG||(JG=new IG);return JG} +function NG(){this.OQ=null;OG=this;var a=Ah(),b=X(),c=new PG(new R,new R,new R,new R,new R);b=new uC(vC(b),"inrae.semantic_web.node.SupEqual",c);c=X();var d=new QG,f=new xC(m(RG));this.OQ=jA(a,b,new zC(AC(c),f,"inrae.semantic_web.node.SupEqual",d))}NG.prototype=new t;NG.prototype.constructor=NG;NG.prototype.$classData=v({Daa:0},!1,"inrae.semantic_web.node.SupEqual$",{Daa:1,b:1,d:1});var OG;function bi(){OG||(OG=new NG);return OG} +function SG(){this.jF=null;TG=this;var a=Ah(),b=X(),c=new UG(new R,new R,new R,new R);b=new uC(vC(b),"inrae.semantic_web.node.UnionBlock",c);c=X();var d=new VG,f=new xC(m(WG));this.jF=jA(a,b,new zC(AC(c),f,"inrae.semantic_web.node.UnionBlock",d))}SG.prototype=new t;SG.prototype.constructor=SG;SG.prototype.$classData=v({Naa:0},!1,"inrae.semantic_web.node.UnionBlock$",{Naa:1,b:1,d:1});var TG;function ui(){TG||(TG=new SG);return TG} +function XG(){this.XQ=null;YG=this;var a=Ah(),b=X(),c=new ZG(new R,new R,new R,new R);b=new uC(vC(b),"inrae.semantic_web.node.Value",c);c=X();var d=new $G,f=new xC(m(aH));this.XQ=jA(a,b,new zC(AC(c),f,"inrae.semantic_web.node.Value",d))}XG.prototype=new t;XG.prototype.constructor=XG;XG.prototype.$classData=v({Waa:0},!1,"inrae.semantic_web.node.Value$",{Waa:1,b:1,d:1});var YG;function Ni(){YG||(YG=new XG);return YG} +function bH(){this.kF=null;cH=this;var a=Ah(),b=X(),c=new dH(new R,new R,new R,new R);b=new uC(vC(b),"inrae.semantic_web.node.isBlank",c);c=X();var d=new eH,f=new xC(m(fH));this.kF=jA(a,b,new zC(AC(c),f,"inrae.semantic_web.node.isBlank",d))}bH.prototype=new t;bH.prototype.constructor=bH;bH.prototype.$classData=v({eba:0},!1,"inrae.semantic_web.node.isBlank$",{eba:1,b:1,d:1});var cH;function Qh(){cH||(cH=new bH);return cH} +function gH(){this.fR=null;hH=this;var a=Ah(),b=X(),c=new iH(new R,new R,new R,new R);b=new uC(vC(b),"inrae.semantic_web.node.isLiteral",c);c=X();var d=new jH,f=new xC(m(kH));this.fR=jA(a,b,new zC(AC(c),f,"inrae.semantic_web.node.isLiteral",d))}gH.prototype=new t;gH.prototype.constructor=gH;gH.prototype.$classData=v({nba:0},!1,"inrae.semantic_web.node.isLiteral$",{nba:1,b:1,d:1});var hH;function Rh(){hH||(hH=new gH);return hH} +function lH(){this.kR=null;mH=this;var a=Ah(),b=X(),c=new nH(new R,new R,new R,new R);b=new uC(vC(b),"inrae.semantic_web.node.isURI",c);c=X();var d=new oH,f=new xC(m(pH));this.kR=jA(a,b,new zC(AC(c),f,"inrae.semantic_web.node.isURI",d))}lH.prototype=new t;lH.prototype.constructor=lH;lH.prototype.$classData=v({wba:0},!1,"inrae.semantic_web.node.isURI$",{wba:1,b:1,d:1});var mH;function Sh(){mH||(mH=new lH);return mH} +function qH(){this.nR=null;rH=this;var a=Ah(),b=X(),c=new sH(new R);b=new uC(vC(b),"inrae.semantic_web.rdf.Anonymous",c);c=X();var d=new tH,f=new xC(m(uH));this.nR=jA(a,b,new zC(AC(c),f,"inrae.semantic_web.rdf.Anonymous",d))}qH.prototype=new t;qH.prototype.constructor=qH;qH.prototype.$classData=v({Jba:0},!1,"inrae.semantic_web.rdf.Anonymous$",{Jba:1,b:1,d:1});var rH;function Zk(){rH||(rH=new qH);return rH} +function vH(){this.Un=null;wH=this;var a=Ah(),b=X(),c=new xH(new R);b=new uC(vC(b),"inrae.semantic_web.rdf.IRI",c);c=X();var d=new yH,f=new xC(m(zH));this.Un=jA(a,b,new zC(AC(c),f,"inrae.semantic_web.rdf.IRI",d))}vH.prototype=new t;vH.prototype.constructor=vH;vH.prototype.$classData=v({Pba:0},!1,"inrae.semantic_web.rdf.IRI$",{Pba:1,b:1,d:1});var wH;function Yk(){wH||(wH=new vH);return wH} +function AH(){this.tR=null;BH=this;var a=Ah(),b=X(),c=new CH(new R,new R,new R);b=new uC(vC(b),"inrae.semantic_web.rdf.Literal",c);c=X();var d=new DH,f=new xC(m(EH));this.tR=jA(a,b,new zC(AC(c),f,"inrae.semantic_web.rdf.Literal",d))}AH.prototype=new t;AH.prototype.constructor=AH;AH.prototype.$classData=v({Vba:0},!1,"inrae.semantic_web.rdf.Literal$",{Vba:1,b:1,d:1});var BH;function al(){BH||(BH=new AH);return BH} +function FH(){this.wR=null;GH=this;var a=Ah(),b=X(),c=new HH(new R);b=new uC(vC(b),"inrae.semantic_web.rdf.PropertyPath",c);c=X();var d=new IH,f=new xC(m(JH));this.wR=jA(a,b,new zC(AC(c),f,"inrae.semantic_web.rdf.PropertyPath",d))}FH.prototype=new t;FH.prototype.constructor=FH;FH.prototype.$classData=v({cca:0},!1,"inrae.semantic_web.rdf.PropertyPath$",{cca:1,b:1,d:1});var GH;function $k(){GH||(GH=new FH);return GH} +function KH(){this.Ui=null;LH=this;var a=Ah(),b=X(),c=new MH(new R);b=new uC(vC(b),"inrae.semantic_web.rdf.QueryVariable",c);c=X();var d=new NH,f=new xC(m(OH));this.Ui=jA(a,b,new zC(AC(c),f,"inrae.semantic_web.rdf.QueryVariable",d))}KH.prototype=new t;KH.prototype.constructor=KH;KH.prototype.$classData=v({ica:0},!1,"inrae.semantic_web.rdf.QueryVariable$",{ica:1,b:1,d:1});var LH;function bl(){LH||(LH=new KH);return LH} +function PH(){this.Zd=this.sA=null;QH=this;var a=Ah(),b=X(),c=new RH(new R,new R);b=new uC(vC(b),"inrae.semantic_web.rdf.URI",c);c=X();var d=new SH,f=new xC(m(TH));this.sA=jA(a,b,new zC(AC(c),f,"inrae.semantic_web.rdf.URI",d));this.Zd=new Jk("",(Lk(),""))}PH.prototype=new t;PH.prototype.constructor=PH;PH.prototype.Iv=function(){return""};PH.prototype.$classData=v({qca:0},!1,"inrae.semantic_web.rdf.URI$",{qca:1,b:1,d:1});var QH;function Lk(){QH||(QH=new PH);return QH} +function UH(){VH=this;dc();ac();dc();fB()}UH.prototype=new t;UH.prototype.constructor=UH;UH.prototype.$classData=v({Gca:0},!1,"io.lemonlabs.uri.AbsolutePath$",{Gca:1,b:1,d:1});var VH;v({Oca:0},!1,"io.lemonlabs.uri.IpV4$",{Oca:1,b:1,d:1});v({Qca:0},!1,"io.lemonlabs.uri.IpV6$",{Qca:1,b:1,d:1});function WH(){XH=this;dc();ac();dc();wc||(wc=new xc);fB();fB()}WH.prototype=new t;WH.prototype.constructor=WH;WH.prototype.$classData=v({Tca:0},!1,"io.lemonlabs.uri.QueryString$",{Tca:1,b:1,d:1});var XH; +function YH(){ZH=this;dc();ac();dc();fB()}YH.prototype=new t;YH.prototype.constructor=YH;YH.prototype.$classData=v({eda:0},!1,"io.lemonlabs.uri.Url$",{eda:1,b:1,d:1});var ZH;function $H(){ZH||(ZH=new YH)}function aI(){bI=this;z();Lv();VH||(VH=new UH);cI();dc();ac();dc();fB()}aI.prototype=new t;aI.prototype.constructor=aI;aI.prototype.$classData=v({fda:0},!1,"io.lemonlabs.uri.UrlPath$",{fda:1,b:1,d:1});var bI;v({ida:0},!1,"io.lemonlabs.uri.UrlWithoutAuthority$",{ida:1,b:1,d:1}); +function dI(){this.BF=this.MR=null;eI=this;this.MR=M(L().KI,Af(new Bf,[G(new H,"ftp",21),G(new H,"http",80),G(new H,"https",443),G(new H,"ws",80),G(new H,"wss",80)]));var a=new fI(Dl().VR),b=new fI(Dl().IF),c=new fI(Dl().JF),d=Ml().LF;c=gI(c,d);d=new fI(Dl().RR);var f=zl(),g=zl();yl||(yl=new xl);var h=yl.OR,k=zl(),n=z().Jb;this.BF=new hI(a,b,c,d,f,g,new iI(new Vb(h,new Vb(k,n))),zl(),"UTF-8",jI(),this.MR);Dl();Dl();a=Dl();a=new fI(a.PR);b=Ml().LF;gI(a,b);Dl()}dI.prototype=new t; +dI.prototype.constructor=dI;dI.prototype.$classData=v({oda:0},!1,"io.lemonlabs.uri.config.UriConfig$",{oda:1,b:1,d:1});var eI;function cI(){eI||(eI=new dI);return eI} +function kI(){this.PR=this.QR=this.TR=this.UR=this.SR=this.RR=this.JF=this.IF=this.VR=null;lI=this;this.VR=mI(L().Fo,Af(new Bf,[q(32),q(37),q(60),q(62),q(91),q(93),q(35),q(123),q(125),q(94),q(96),q(124),q(63),q(64),q(58),q(47)]));this.IF=mI(L().Fo,Af(new Bf,[q(32),q(37),q(60),q(62),q(91),q(93),q(35),q(123),q(125),q(94),q(96),q(124),q(63),q(47)]));this.JF=mI(L().Fo,Af(new Bf,[q(37),q(60),q(62),q(91),q(93),q(35),q(123),q(125),q(94),q(96),q(124),q(38),q(92),q(43),q(61)]));this.RR=mI(L().Fo,Af(new Bf, +[q(32),q(37),q(60),q(62),q(91),q(93),q(35),q(123),q(125),q(94),q(96),q(124)]));this.SR=mI(L().Fo,Af(new Bf,[q(58),q(47),q(63),q(35),q(91),q(93),q(64)]));this.UR=mI(L().Fo,Af(new Bf,[q(33),q(36),q(38),q(39),q(40),q(41),q(42),q(43),q(44),q(59),q(61)]));this.TR=this.SR.El(this.UR);this.QR=mI(L().Fo,Af(new Bf,[q(34)]));this.PR=this.TR.El(this.IF).El(this.JF).El(this.QR)}kI.prototype=new t;kI.prototype.constructor=kI; +kI.prototype.$classData=v({Ada:0},!1,"io.lemonlabs.uri.encoding.PercentEncoder$",{Ada:1,b:1,d:1});var lI;function Dl(){lI||(lI=new kI);return lI} +function nI(a,b){this.Fda=this.ZR=this.YR=this.$R=this.XR=this.WR=this.NF=this.MF=this.IA=this.aS=null;this.aS=a;this.IA=b;Zaa(this);this.MF=new C((c=>d=>c.IA.CA.Nx(d))(this));this.NF=new jt((c=>(d,f)=>{if(""!==d)return new oI(f.tz().Da(c.MF),c.IA);d=N(z().w,Af(new Bf,[""]));return(null===f?null===d:f.c(d))?(bI||(bI=new aI),pI||(pI=new qI),pI):new rI(f.tz().Da(c.MF),c.IA)})(this))}nI.prototype=new t;nI.prototype.constructor=nI; +function cca(a){var b=id(),c=hd(id(),Ad("#?[]:"));id();var d=Ee();return taa(b,Faa(c,d)).rI(new C((f=>g=>{var h=ll(g,"/",-1);if(""!==g&&47===(65535&(g.charCodeAt(0)|0)))return g=f.NF,h=ng(L(),Is(ms(),h,1)),g.Od("/",Qb(Rb(),h));g=f.NF;h=ng(L(),h);return g.Od("",Qb(Rb(),h))})(a)))} +function dca(a){var b=new Yc((()=>()=>"Path")(a));try{var c=new Pw(Eaa(cca(a).wK((id(),Ee())),a.aS))}catch(f){if(c=Sr(J(),f),null!==c)a:{if(null!==c){var d=gz(iz(),c);if(!d.i()){c=d.Sa();c=new Hw(c);break a}}throw I(J(),c);}else throw f;}return c.UT(new C(((f,g)=>h=>{if(h instanceof Yf)return h=h.Cy,new Hw(new sI("Invalid "+g.Rb()+" could not be parsed. "+h));if(h instanceof Zf)return new Pw(h.YC);throw new B(h);})(a,b)))} +nI.prototype.$classData=v({Dda:0},!1,"io.lemonlabs.uri.parsing.UrlParser",{Dda:1,b:1,Rza:1}); +function eca(a){a.ul=new tI((()=>c=>c)(a));var b=uI();b=new vI(b,a.ul,a.Xn);a.Ida=b.Mh.kh(b.Lh,new C((()=>c=>""+!!c)(a)));b=uI();b=new vI(b,a.ul,a.Xn);a.Jda=b.Mh.kh(b.Lh,new C((()=>c=>String.fromCharCode(Da(c)))(a)));b=uI();b=new vI(b,a.ul,a.Xn);a.Mda=b.Mh.kh(b.Lh,new C((()=>c=>""+(c|0))(a)));b=uI();b=new vI(b,a.ul,a.Xn);a.Nda=b.Mh.kh(b.Lh,new C((()=>c=>{var d=Ga(c);c=d.k;d=d.o;return $r(Aa(),c,d)})(a)));b=uI();b=new vI(b,a.ul,a.Xn);a.Lda=b.Mh.kh(b.Lh,new C((()=>c=>""+ +c)(a)));b=uI();b=new vI(b, +a.ul,a.Xn);a.Kda=b.Mh.kh(b.Lh,new C((()=>c=>""+ +c)(a)));b=uI();b=new vI(b,a.ul,a.Xn);a.Oda=b.Mh.kh(b.Lh,new C((()=>c=>c.g())(a)))} +function fca(a){a.vl=new wI((()=>c=>xI(yI(),c))(a));var b=uI();b=new vI(b,a.vl,a.Yn);a.aea=b.Mh.kh(b.Lh,new C((()=>c=>""+!!c)(a)));b=uI();b=new vI(b,a.vl,a.Yn);a.bea=b.Mh.kh(b.Lh,new C((()=>c=>String.fromCharCode(Da(c)))(a)));b=uI();b=new vI(b,a.vl,a.Yn);a.eea=b.Mh.kh(b.Lh,new C((()=>c=>""+(c|0))(a)));b=uI();b=new vI(b,a.vl,a.Yn);a.fea=b.Mh.kh(b.Lh,new C((()=>c=>{var d=Ga(c);c=d.k;d=d.o;return $r(Aa(),c,d)})(a)));b=uI();b=new vI(b,a.vl,a.Yn);a.dea=b.Mh.kh(b.Lh,new C((()=>c=>""+ +c)(a)));b=uI();b= +new vI(b,a.vl,a.Yn);a.cea=b.Mh.kh(b.Lh,new C((()=>c=>""+ +c)(a)));b=uI();b=new vI(b,a.vl,a.Yn);a.hea=b.Mh.kh(b.Lh,new C((()=>c=>c.g())(a)));a.gea=new zI((()=>()=>E())(a))}function gca(a,b,c){return b.Da(new C(((d,f)=>g=>{var h=f.ly(g);g=f.Ru(g);return G(new H,h,g)})(a,c)))} +function AI(a){0===(32&a.YB)<<24>>24&&0===(32&a.YB)<<24>>24&&(a.YT=new eb(new Int32Array([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])),a.YB=(32|a.YB)<<24>>24);return a.YT}function BI(){this.YT=null;this.YB=0}BI.prototype=new t;BI.prototype.constructor=BI; +function CI(a,b){if(0<=b&&65536>b)return String.fromCharCode(b);if(0<=b&&1114111>=b)return String.fromCharCode(65535&(-64+(b>>10)|55296),65535&(56320|1023&b));throw oo();}function DI(a){ye();if(0<=a&&65536>a)return new bb(new Uint16Array([65535&a]));if(0<=a&&1114111>=a)return new bb(new Uint16Array([65535&(-64+(a>>10)|55296),65535&(56320|1023&a)]));throw oo();} +function EI(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 d=AI(a);d=eq(F(),d,b);d=0>d?-2-d|0:d;0>d?a=-1:(a=b-AI(a).a[d]|0,a=9=a)return 8|a;var b=CI(0,a).toUpperCase();switch(b.length|0){case 1:return 65535&(b.charCodeAt(0)|0);case 2:var c=65535&(b.charCodeAt(0)|0);b=65535&(b.charCodeAt(1)|0);return-671032320===(-67044352&(c<<16|b))?(64+(1023&c)|0)<<10|1023&b:a;default:return a}}}function ze(a,b){return 65535&ica(b)} +function ica(a){if(304===a)return 105;var b=CI(0,a).toLowerCase();switch(b.length|0){case 1:return 65535&(b.charCodeAt(0)|0);case 2:var c=65535&(b.charCodeAt(0)|0);b=65535&(b.charCodeAt(1)|0);return-671032320===(-67044352&(c<<16|b))?(64+(1023&c)|0)<<10|1023&b:a;default:return a}}BI.prototype.$classData=v({Jja:0},!1,"java.lang.Character$",{Jja:1,b:1,d:1});var FI;function ye(){FI||(FI=new BI);return FI}function GI(a){throw new wA('For input string: "'+a+'"');} +function HI(){this.ZT=this.$T=null;this.so=0}HI.prototype=new t;HI.prototype.constructor=HI; +function II(a,b){0===(1&a.so)<<24>>24&&0===(1&a.so)<<24>>24&&(a.$T=RegExp("^[\\x00-\\x20]*([+-]?(?:NaN|Infinity|(?:\\d+\\.?\\d*|\\.\\d+)(?:[eE][+-]?\\d+)?)[fFdD]?)[\\x00-\\x20]*$"),a.so=(1|a.so)<<24>>24);var c=a.$T.exec(b);if(null!==c)b=+parseFloat(c[1]);else{0===(2&a.so)<<24>>24&&0===(2&a.so)<<24>>24&&(a.ZT=RegExp("^[\\x00-\\x20]*([+-]?)0[xX]([0-9A-Fa-f]*)\\.?([0-9A-Fa-f]*)[pP]([+-]?\\d+)[fFdD]?[\\x00-\\x20]*$"),a.so=(2|a.so)<<24>>24);var d=a.ZT.exec(b);null===d&&GI(b);a=d[1];c=d[2];var f=d[3];d= +d[4];""===c&&""===f&&GI(b);b=JI(0,c,f,d,15);b="-"===a?-b:b}return b} +function JI(a,b,c,d,f){a=""+b+c;c=-((c.length|0)<<2)|0;for(b=0;;)if(b!==(a.length|0)&&48===(65535&(a.charCodeAt(b)|0)))b=1+b|0;else break;a=a.substring(b);if(""===a)return 0;var g=a.length|0;if(b=g>f){for(var h=!1,k=f;!h&&k!==g;)48!==(65535&(a.charCodeAt(k)|0))&&(h=!0),k=1+k|0;g=h?"1":"0";g=a.substring(0,f)+g}else g=a;c=c+(b?((a.length|0)-(1+f|0)|0)<<2:0)|0;f=+parseInt(g,16);d=+parseInt(d,10);c=Qa(d)+c|0;a=c/3|0;d=+Math.pow(2,a);c=+Math.pow(2,c-(a<<1)|0);return f*d*d*c} +function iaa(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>20;if(0===h)throw Sq("parseFloatCorrection was given a subnormal mid: "+g);g=1048576|1048575&k;g=Nn(hn(),new p(c,g));c=-1075+h|0;0<=b?0<=c?(a=co(a,jo(hn().yl,b)),b=ho(g,c),a=MI(a,b)):a=MI(ho(co(a,jo(hn().yl,b)),-c|0),g):0<=c?(b=-b|0,b=ho(co(g,jo(hn().yl,b)),c),a=MI(a,b)):(a=ho(a,-c|0),b=-b|0,b=co(g,jo(hn().yl,b)),a=MI(a,b));return 0>a?d:0c||36=(b.length|0)&&RI(b);for(var h=0;d!==a;){var k=EI(ye(),65535&(b.charCodeAt(d)|0),c);h=h*c+k;(-1===k||h>g)&&RI(b);d=1+d|0}return f?-h|0:h|0}function mu(a,b){a=b-(1431655765&b>>1)|0;a=(858993459&a)+(858993459&a>>2)|0;return l(16843009,252645135&(a+(a>>4)|0))>>24}SI.prototype.$classData=v({Rja:0},!1,"java.lang.Integer$",{Rja:1,b:1,d:1});var TI; +function St(){TI||(TI=new SI);return TI}function UI(a){if(!a.bC){for(var b=[],c=0;2>c;)b.push(null),c=1+c|0;for(;36>=c;){for(var d=Na(2147483647,c),f=c,g=1,h="0";f<=d;)f=l(f,c),g=1+g|0,h+="0";d=f;f=d>>31;var k=Aa(),n=pn(k,-1,-1,d,f);b.push(new dm(g,new p(d,f),h,new p(n,k.za)));c=1+c|0}a.aC=b;a.bC=!0}return a.aC} +function VI(a,b,c){var d=(a.bC?a.aC:UI(a))[c],f=d.cU;a=f.k;f=f.o;d=d.$ja;var g=-2147483648^f,h="",k=b.k;for(b=b.o;;){var n=k,r=-2147483648^b;if(r===g?(-2147483648^n)>=(-2147483648^a):r>g){n=k;r=Aa();b=pn(r,n,b,a,f);n=r.za;var u=65535&b;r=b>>>16|0;var w=65535&a,y=a>>>16|0,K=l(u,w);w=l(r,w);u=l(u,y);K=K+((w+u|0)<<16)|0;l(b,f);l(n,a);l(r,y);k=(k-K|0).toString(c);h=""+d.substring(k.length|0)+k+h;k=b;b=n}else break}return""+k.toString(c)+h}function WI(a){throw new wA('For input string: "'+a+'"');} +function XI(a,b,c){for(var d=0;a!==b;){var f=EI(ye(),65535&(c.charCodeAt(a)|0),10);-1===f&&WI(c);d=l(d,10)+f|0;a=1+a|0}return d}function YI(){this.aC=null;this.bC=!1}YI.prototype=new t;YI.prototype.constructor=YI;function ZI(a,b,c){return 0!==c?(a=(+(c>>>0)).toString(16),b=(+(b>>>0)).toString(16),a+(""+"00000000".substring(b.length|0)+b)):(+(b>>>0)).toString(16)}YI.prototype.$classData=v({Wja:0},!1,"java.lang.Long$",{Wja:1,b:1,d:1});var $I;function aJ(){$I||($I=new YI);return $I}function bJ(){} +bJ.prototype=new t;bJ.prototype.constructor=bJ;function cJ(){}cJ.prototype=bJ.prototype;function Zx(a){return a instanceof bJ||"number"===typeof a||a instanceof p}function dJ(a,b,c,d){this.$x=a;this.eC=b;this.cC=c;this.dC=d;this.TH=-1}dJ.prototype=new t;dJ.prototype.constructor=dJ;dJ.prototype.c=function(a){return a instanceof dJ?this.cC===a.cC&&this.dC===a.dC&&this.$x===a.$x&&this.eC===a.eC:!1}; +dJ.prototype.g=function(){var a="";"\x3cjscode\x3e"!==this.$x&&(a=""+a+this.$x+".");a=""+a+this.eC;null===this.cC?a+="(Unknown Source)":(a=a+"("+this.cC,0<=this.dC&&(a=a+":"+this.dC,0<=this.TH&&(a=a+":"+this.TH)),a+=")");return a};dJ.prototype.v=function(){return Ja(this.$x)^Ja(this.eC)};var eJ=v({jka:0},!1,"java.lang.StackTraceElement",{jka:1,b:1,d:1});dJ.prototype.$classData=eJ;function fJ(){}fJ.prototype=new t;fJ.prototype.constructor=fJ; +function gJ(a,b,c,d){a=c+d|0;if(0>c||ab.a.length)throw b=new hJ,iJ(b,null,null),b;for(d="";c!==a;)d=""+d+String.fromCharCode(b.a[c]),c=1+c|0;return d} +function jJ(a,b,c){a=Io(Xo(),c);c=b.a.length;b=so(to(),b,b.a.length,c);if(0===(2&a.Lg)<<24>>24&&0===(2&a.Lg)<<24>>24){c=a.uI();var d=ap().Mq;if(null===d)throw Hq("null CodingErrorAction");c.Tt=d;d=ap().Mq;if(null===d)throw Hq("null CodingErrorAction");c.Vt=d;a.lk=c;a.Lg=(2|a.Lg)<<24>>24}a=a.lk;a.Bl=1;a.Tx();c=vo(Qa((b.pa-b.S|0)*a.ax));for(var f;;){a:{d=a;var g=b,h=c;if(4===d.Bl)throw kJ();for(d.Bl=3;;){try{f=d.qH(g,h)}catch(u){if(u instanceof fp)throw new lJ(u);if(u instanceof lp)throw new lJ(u); +throw u;}if(0===f.Nf){var k=g.pa-g.S|0;if(0k)throw mJ();mo.prototype.Ba.call(g,n+k|0)}else{if(ap().Nq===n){d=k;break a}if(ap().hG===n){n=g.S;k=k.$t;if(0>k)throw mJ();mo.prototype.Ba.call(g, +n+k|0)}else throw new B(n);}}}if(0!==d.Nf){if(1===d.Nf){c=Yo(c);continue}kp(d);throw Sq("should not get here");}if(b.S!==b.pa)throw nJ();f=c;break}for(;;){a:switch(b=a,b.Bl){case 3:c=rp().Md;0===c.Nf&&(b.Bl=4);b=c;break a;case 4:b=rp().Md;break a;default:throw kJ();}if(0!==b.Nf){if(1===b.Nf){f=Yo(f);continue}kp(b);throw Sq("should not get here");}break}mo.prototype.PB.call(f);return f.g()}function oJ(){zt();return" "} +function pba(a,b,c){var d=new pJ,f=qJ();d.or=null;d.Nka=f;d.xo="";d.XH=!1;d.qU=null;if(d.XH)throw new rJ;for(var g=0,h=0,k=b.length|0,n=0;n!==k;){var r=b.indexOf("%",n)|0;if(0>r){sJ(d,b.substring(n));break}sJ(d,b.substring(n,r));var u=1+r|0,w=Oq().pU;w.lastIndex=u;var y=w.exec(b);if(null===y||(y.index|0)!==u){var K=u===k?37:65535&(b.charCodeAt(u)|0);tJ(K)}n=w.lastIndex|0;for(var U=65535&(b.charCodeAt(-1+n|0)|0),Z,ra=y[2],Ba=65<=U&&90>=U?256:0,ka=ra.length|0,Ca=0;Ca!==ka;){var Fa=65535&(ra.charCodeAt(Ca)| +0);switch(Fa){case 45:var ib=1;break;case 35:ib=2;break;case 43:ib=4;break;case 32:ib=8;break;case 48:ib=16;break;case 44:ib=32;break;case 40:ib=64;break;case 60:ib=128;break;default:throw new B(q(Fa));}if(0!==(Ba&ib))throw new uJ(String.fromCharCode(Fa));Ba|=ib;Ca=1+Ca|0}Z=Ba;var zb=vJ(y[3]),Ab=vJ(y[4]);if(-2===zb)throw new wJ(-2147483648);-2===Ab&&xJ(-2147483648);if(110===U){-1!==Ab&&xJ(Ab);if(-1!==zb)throw new wJ(zb);0!==Z&&yJ(Z);sJ(d,"\n")}else if(37===U){-1!==Ab&&xJ(Ab);17!==(17&Z)&&12!==(12& +Z)||yJ(Z);if(0!==(1&Z)&&-1===zb)throw new zJ("%"+y[0]);0!==(-2&Z)&&AJ(37,Z,-2);BJ(d,Z,zb,"%")}else{var nd=0!==(256&Z)?65535&(32+U|0):U,Bb=Oq().oU.a[-97+nd|0];-1!==Bb&&0===(256&Z&Bb)||tJ(U);if(0!==(17&Z)&&-1===zb)throw new zJ("%"+y[0]);17!==(17&Z)&&12!==(12&Z)||yJ(Z);-1!==Ab&&0!==(512&Bb)&&xJ(Ab);0!==(Z&Bb)&&AJ(nd,Z,Bb);if(0!==(128&Z))var Dc=h;else{var cc=vJ(y[1]);if(-1===cc)Dc=g=1+g|0;else{if(0>=cc)throw new CJ(0===cc?"Illegal format argument index \x3d 0":"Format argument index: (not representable as int)"); +Dc=cc}}if(0>=Dc||Dc>c.a.length)throw new DJ("%"+y[0]);h=Dc;var Ec=c.a[-1+Dc|0];if(null===Ec&&98!==nd&&115!==nd)EJ(d,qJ(),Z,zb,Ab,"null");else{var Xa=void 0,hb=void 0,Pe=void 0,pi=void 0,uk=void 0,Yd=d,Db=Ec,Qe=nd,qc=Z,se=zb,Fg=Ab;switch(Qe){case 98:var Fu=!1===Db||null===Db?"false":"true";EJ(Yd,qJ(),qc,se,Fg,Fu);break;case 104:var Gu=(+(Ia(Db)>>>0)).toString(16);EJ(Yd,qJ(),qc,se,Fg,Gu);break;case 115:Db&&Db.$classData&&Db.$classData.Hb.KAa?Db.FAa(Yd,(0!==(1&qc)?1:0)|(0!==(2&qc)?4:0)|(0!==(256&qc)? +2:0),se,Fg):(0!==(2&qc)&&AJ(Qe,qc,2),EJ(Yd,0,qc,se,Fg,""+Db));break;case 99:if(Db instanceof ha)var Hu=String.fromCharCode(Da(Db));else{la(Db)||FJ(Qe,Db);var sh=Db|0;if(!(0<=sh&&1114111>=sh))throw new GJ(sh);Hu=65536>sh?String.fromCharCode(sh):String.fromCharCode(-64+(sh>>10)|55296,56320|1023&sh)}EJ(Yd,0,qc,se,-1,Hu);break;case 100:if(la(Db))var Fl=""+(Db|0);else if(Db instanceof p){var Iu=Ga(Db),Ju=Iu.k,Rp=Iu.o;Fl=$r(Aa(),Ju,Rp)}else Db instanceof HJ||FJ(Qe,Db),Fl=on(rn(),Db);IJ(Yd,qc,se,Fl,""); +break;case 111:case 120:var Gl=111===Qe,Sp=0===(2&qc)?"":Gl?"0":0!==(256&qc)?"0X":"0x";if(Db instanceof HJ){var bd=Gl?8:16;qJ();var vk=rn(),qi=Db.Ka,ej=Db.jb,wn=Db.Aa,Ku=2>bd||36qi){var Tp=xn,Up=Hl;xn=-Tp|0;Hl=0!==Tp?~Up:-Up|0}var yn=xn,zn=Hl,Lu=aJ();if(10===bd||2>bd||36>31===Mu)pi=An.toString(bd);else if(0>Mu){var Nu=wk.k,Vp=wk.o;pi="-"+VI(Lu,new p(-Nu|0,0!==Nu? +~Vp:-Vp|0),bd)}else pi=VI(Lu,wk,bd)}uk=pi}else if(10===bd||Ku)uk=on(rn(),Db);else{var Ou=0;Ou=+Math.log(bd)/+Math.log(2);var ZB=0>qi?1:0,Pu=JJ(Db),Bn=$m(ln(),Pu),Wp=1+Qa(Bn/Ou+ZB)|0,ff=null;ff="";var te=0;te=Wp;var Gg=0;Gg=0;if(16!==bd){var xk=new eb(ej);wn.Z(0,xk,0,ej);var yk=0;yk=ej;for(var Xp=vk.VF.a[bd],Yp=vk.UF.a[-2+bd|0];;){Gg=Gn(un(),xk,xk,yk,Yp);for(var Il=te;;){te=-1+te|0;var th=Pa(Gg,bd);ye();if(2>bd||36th||th>=bd)var fj=0;else{var Zp=-10+th|0;fj=65535&(0>Zp?48+th|0:97+Zp|0)}ff=""+ +String.fromCharCode(fj)+ff;Gg=Na(Gg,bd);if(0===Gg||0===te)break}for(var Qu=(Xp-Il|0)+te|0,Hg=0;Hgzk&&0>(zk<<2),te=-1+te|0,ff=""+(+(Gg>>>0)).toString(16)+ff,zk=1+zk|0;Jl=1+Jl|0}for(var Kl=0;;)if(48===(65535&(ff.charCodeAt(Kl)|0)))Kl=1+Kl|0;else break;0!==Kl&&(ff=ff.substring(Kl));uk=-1===qi?"-"+ff:ff}IJ(Yd, +qc,se,uk,Sp)}else{if(la(Db))var aq=Db|0,Cn=Gl?(+(aq>>>0)).toString(8):(+(aq>>>0)).toString(16);else{Db instanceof p||FJ(Qe,Db);var Ru=Ga(Db),Dn=Ru.k,Ll=Ru.o;if(Gl){aJ();var bq=1073741823&Dn,En=1073741823&((Dn>>>30|0)+(Ll<<2)|0),Fn=Ll>>>28|0;if(0!==Fn){var $B=(+(Fn>>>0)).toString(8),Su=(+(En>>>0)).toString(8),Tu="0000000000".substring(Su.length|0),cq=(+(bq>>>0)).toString(8);Pe=$B+(""+Tu+Su)+(""+"0000000000".substring(cq.length|0)+cq)}else if(0!==En){var Uu=(+(En>>>0)).toString(8),dq=(+(bq>>>0)).toString(8); +Pe=Uu+(""+"0000000000".substring(dq.length|0)+dq)}else Pe=(+(bq>>>0)).toString(8)}else Pe=ZI(aJ(),Dn,Ll);Cn=Pe}0!==(76&qc)&&AJ(Qe,qc,76);KJ(Yd,qJ(),qc,se,Sp,LJ(qc,Cn))}break;case 101:case 102:case 103:if("number"===typeof Db){var yi=+Db;if(yi!==yi||Infinity===yi||-Infinity===yi)MJ(Yd,qc,se,yi);else{Oq();if(0===yi)hb=new Qq(0>1/yi,"0",0);else{var VF=0>yi,mj=""+(VF?-yi:yi),Aq=NJ(mj,101);if(0>Aq)var XF=0;else{var VQ=parseInt,WQ=mj.substring(1+Aq|0);XF=VQ(WQ)|0}var Lw=0>Aq?mj.length|0:Aq,Bq=NJ(mj,46); +if(0>Bq){var kea=mj.substring(0,Lw);hb=new Qq(VF,kea,-XF|0)}else{for(var uX=""+mj.substring(0,Bq)+mj.substring(1+Bq|0,Lw),lea=uX.length|0,YF=0;;)if(YF>>20|0),ZF=0===Fg?1:12vX?"-":0!==(4&qc)?"+":0!==(8&qc)?" ":"";if(0===I7)if(0===Cq&&0===Nw)var YQ="0",ZQ=fa,$Q=0;else if(-1===ZF)YQ="0",ZQ=new p(Cq,Nw),$Q=-1022;else{var Dq=-11+(0!==Nw?ea(Nw):32+ea(Cq)|0)|0;YQ="1";ZQ=new p(0===(32&Dq)?Cq<>>1|0)>>>(31- +Dq|0)|0|Nw<>>1|0|Yl<<31,bR=Yl>>1,Eq=wX&~yX,Fq=xX&~L7,N7=wX&yX,cR=xX&L7;if(cR===bR?(-2147483648^N7)<(-2147483648^M7):cR(-2147483648^M7):cR>bR){var O7=Eq+bG|0;$F=O7;aG=(-2147483648^ +O7)<(-2147483648^Eq)?1+(Fq+Yl|0)|0:Fq+Yl|0}else if(0===(Eq&bG)&&0===(Fq&Yl))$F=Eq,aG=Fq;else{var P7=Eq+bG|0;$F=P7;aG=(-2147483648^P7)<(-2147483648^Eq)?1+(Fq+Yl|0)|0:Fq+Yl|0}}var Q7=ZI(aJ(),$F,aG),dR=""+"0000000000000".substring(Q7.length|0)+Q7;Oq();if(13!==(dR.length|0))throw Sq("padded mantissa does not have the right number of bits");for(var sea=1>ZF?1:ZF,cG=dR.length|0;;)if(cG>sea&&48===(65535&(dR.charCodeAt(-1+cG|0)|0)))cG=-1+cG|0;else break;var tea=dR.substring(0,cG),uea=pea+(0!==(256&qc)?"0X": +"0x"),vea=qea+"."+tea+"p"+rea;KJ(Yd,qJ(),qc,se,uea,LJ(qc,vea))}}else FJ(Qe,Db);break;default:throw Sq("Unknown conversion '"+q(Qe)+"' was not rejected earlier");}}}}return d.g()}fJ.prototype.$classData=v({kka:0},!1,"java.lang.String$",{kka:1,b:1,d:1});var RJ;function zt(){RJ||(RJ=new fJ);return RJ} +function SJ(a,b){TJ(a);b(a.g());if(0!==a.nr.a.length)for(var c=0;cf=>{d.GC(f)})(a,b))} +function TJ(a){if(null===a.nr)if(a.iU){var b=tm(),c=a.ay;if(c)if(c.arguments&&c.stack)var d=om(c);else if(c.stack&&c.sourceURL)d=c.stack.replace(pm("\\[native code\\]\\n","m"),"").replace(pm("^(?\x3d\\w+Error\\:).*$\\n","m"),"").replace(pm("^@","gm"),"{anonymous}()@").split("\n");else if(c.stack&&c.number)d=c.stack.replace(pm("^\\s*at\\s+(.*)$","gm"),"$1").replace(pm("^Anonymous function\\s+","gm"),"{anonymous}() ").replace(pm("^([^\\(]+|\\{anonymous\\}\\(\\))\\s+\\((.+)\\)$","gm"),"$1@$2").split("\n").slice(1); +else if(c.stack&&c.fileName)d=c.stack.replace(pm("(?:\\n@:0)?\\s+$","m"),"").replace(pm("^(?:\\((\\S*)\\))?@","gm"),"{anonymous}($1)@").split("\n");else if(c.message&&c["opera#sourceloc"])if(c.stacktrace)if(-1c.stacktrace.split("\n").length)d=qm(c);else{d=pm("Line (\\d+).*script (?:in )?(\\S+)(?:: In function (\\S+))?$","i");c=c.stacktrace.split("\n");var f=[];for(var g=0,h=c.length|0;gc.stacktrace.indexOf("called from line")){d=im("^(.*)@(.+):(\\d+)$");c=c.stacktrace.split("\n");f=[];g=0;for(h=c.length|0;gf=>{d.GC(f)})(a,b))} +class My extends Error{constructor(){super();this.gC=this.hU=null;this.iU=this.tka=!1;this.nr=this.ay=null}bf(){return this.hU}mo(){"[object Error]"===Object.prototype.toString.call(this)?this.ay=this:void 0===Error.captureStackTrace?this.ay=Error():(Error.captureStackTrace(this),this.ay=this);return this}g(){var a=va(this),b=this.bf();return null===b?a:a+": "+b}v(){return Ha.prototype.v.call(this)}c(a){return Ha.prototype.c.call(this,a)}get message(){var a=this.bf();return null===a?"":a}get name(){return va(this)}toString(){return this.g()}} +function UJ(){this.gS=this.PF=this.fS=this.Yw=this.QF=null;VJ=this;WJ(0,0);WJ(1,0);WJ(10,0);this.QF=XJ(28,5);var a=this.QF.a.length;$n();if(0>=a)new eb(0);else for(var b=new eb(a),c=0;c=a)new eb(0);else for(b=new eb(a),c=0;cb;)a.a[b]=WJ(b,0),b=1+b|0;this.fS=a;a=new (x($J).M)(11);for(b=0;11>b;)a.a[b]=WJ(0,b),b=1+b|0;this.PF=a;this.gS= +"0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"}UJ.prototype=new t;UJ.prototype.constructor=UJ;function aK(a,b,c){return 0===c?bK(a,b):0===b.k&&0===b.o&&0<=c&&c(-2147483648^b.k):0>c}else c=!1;return c?a.fS.a[b.k]:cK(new PJ,b,0)} +function XJ(a,b){Bp();if(0>31,k=65535&d,n=d>>>16|0,r=65535&b,u=b>>>16|0,w=l(k,r);r=l(n,r);var y=l(k,u);k=w+((r+y|0)<<16)|0;w=(w>>>16|0)+y|0;d=(((l(d,h)+l(g,b)|0)+l(n,u)|0)+(w>>>16|0)|0)+(((65535&w)+r|0)>>>16|0)|0;d=new p(k,d);c.a[f]=Ga(d);f=1+f|0}return c}return new fb(0)} +function dK(a,b,c,d){a=0>c?-c|0:c;var f=0===c?0:0>c?-1:1;if(Xn().bG===d)return f;if(Xn().XF===d)return 0;if(Xn().WF===d)return 0f?f:0;if(Xn().$F===d)return 5<=a?f:0;if(Xn().ZF===d)return 5(-2147483648^b.k):-1>a)?a=!0:(a=b.o,a=0===a?-1<(-2147483648^b.k):0b.o?new p(~b.k,~b.o):b;a=b.k;b=b.o;return 64-(0!==b?ea(b):32+ea(a)|0)|0}UJ.prototype.$classData=v({Dea:0},!1,"java.math.BigDecimal$",{Dea:1,b:1,d:1});var VJ;function ZJ(){VJ||(VJ=new UJ);return VJ} +function fK(){this.TF=this.hS=this.LA=this.zl=this.yl=this.Pt=null;gK=this;this.Pt=Mn(1,1);this.yl=Mn(1,10);this.zl=Mn(0,0);this.LA=Mn(-1,1);this.hS=new (x(Ym).M)([this.zl,this.Pt,Mn(1,2),Mn(1,3),Mn(1,4),Mn(1,5),Mn(1,6),Mn(1,7),Mn(1,8),Mn(1,9),this.yl]);for(var a=new (x(Ym).M)(32),b=0;32>b;){var c=b,d=b,f=hn();a.a[c]=Nn(f,new p(0===(32&d)?1<b.o)return-1!==b.k||-1!==b.o?(a=b.k,b=b.o,hK(-1,new p(-a|0,0!==a?~b:-b|0))):a.LA;var c=b.o;return(0===c?-2147483638>=(-2147483648^b.k):0>c)?a.hS.a[b.k]:hK(1,b)}fK.prototype.$classData=v({Fea:0},!1,"java.math.BigInteger$",{Fea:1,b:1,d:1});var gK;function hn(){gK||(gK=new fK);return gK} +function iK(){this.aG=this.Zw=this.ZF=this.$F=this.YF=this.WF=this.XF=this.bG=null;jK=this;this.bG=new kK("UP",0);this.XF=new kK("DOWN",1);this.WF=new kK("CEILING",2);this.YF=new kK("FLOOR",3);this.$F=new kK("HALF_UP",4);this.ZF=new kK("HALF_DOWN",5);this.Zw=new kK("HALF_EVEN",6);this.aG=new kK("UNNECESSARY",7);new (x(lK).M)([this.bG,this.XF,this.WF,this.YF,this.$F,this.ZF,this.Zw,this.aG])}iK.prototype=new t;iK.prototype.constructor=iK; +iK.prototype.$classData=v({Pea:0},!1,"java.math.RoundingMode$",{Pea:1,b:1,d:1});var jK;function Xn(){jK||(jK=new iK);return jK}function mK(){this.gh=this.pf=this.mk=this.lk=null;this.Lg=0}mK.prototype=new t;mK.prototype.constructor=mK;function nK(){}nK.prototype=mK.prototype;mK.prototype.c=function(a){return a instanceof mK?this.pf===a.pf:!1};mK.prototype.g=function(){return this.pf};mK.prototype.v=function(){var a=this.pf;return ly(W(),a)}; +mK.prototype.ih=function(a){a:{var b=this.pf;a=a.pf;for(var c=b.length|0,d=a.length|0,f=cc)return mo.prototype.Ba.call(a,-1+a.S|0),rp().xe;b.Ol(65535&f);d=1+d|0}else{d=a.xf;if(null===d)throw mJ();if(a.fh)throw new ep;f=a.Jg;if(-1===f)throw mJ();if(a.fh)throw new ep;var k=a.S+f|0;h=k+h|0;var n=b.of;if(null===n)throw mJ();if(b.Yh())throw new ep;var r=b.Kg;if(-1===r)throw mJ();if(b.Yh())throw new ep; +for(var u=b.S+r|0;k!==h;){var w=255&d.a[k];if(w>c)return mo.prototype.Ba.call(a,k-f|0),mo.prototype.Ba.call(b,u-r|0),rp().xe;n.a[u]=65535&w;k=1+k|0;u=1+u|0}mo.prototype.Ba.call(a,k-f|0);mo.prototype.Ba.call(b,u-r|0)}return g?rp().we:rp().Md};oK.prototype.$classData=v({kfa:0},!1,"java.nio.charset.ISO_8859_1_And_US_ASCII_Common$Decoder",{kfa:1,lS:1,b:1}); +function qK(a){this.QA=null;this.PA=this.bx=0;this.Yt=this.Wt=this.Xt=null;this.Cl=0;this.oS=null;if(null===a)throw I(J(),null);this.oS=a;gp(this,a,1,1,new cb(new Int8Array([63])))}qK.prototype=new ip;qK.prototype.constructor=qK; +qK.prototype.uH=function(a,b){var c=this.oS.au,d=a.pa-a.S|0;if(0===d)return rp().Md;if(null===a.of||a.Yh()||null===b.xf||b.fh)for(;;){if(a.S===a.pa)return rp().Md;if(b.S===b.pa)return rp().we;d=a.jr();if(d<=c)rK(b,d<<24>>24);else{if(56320===(64512&d))return mo.prototype.Ba.call(a,-1+a.S|0),rp().xe;if(55296===(64512&d)){if(a.S!==a.pa)return b=a.jr(),mo.prototype.Ba.call(a,-2+a.S|0),56320===(64512&b)?rp().fG:rp().xe;mo.prototype.Ba.call(a,-1+a.S|0);return rp().Md}mo.prototype.Ba.call(a,-1+a.S|0);return rp().eG}}else{var f= +b.pa-b.S|0,g=f>24,u=1+u|0,k=1+k|0;else return c=56320===(64512&w)?rp().xe:55296===(64512&w)?(1+k|0)(a.pa-a.S|0))return rp().Md;var c=255&pK(a),d=255&pK(a);if(0===this.Oq)if(254===c&&255===d){this.Oq=1;var f=!0}else 255===c&&254===d?(this.Oq=2,f=!0):(this.Oq=1,f=!1);else f=!1;if(!f){f=1===this.Oq;c=65535&(f?c<<8|d:d<<8|c);if(56320===(64512&c))return mo.prototype.Ba.call(a,-2+a.S|0),rp().Zt;if(55296!==(64512&c)){if(0===(b.pa-b.S|0))return mo.prototype.Ba.call(a,-2+a.S|0),rp().we;b.Ol(c)}else{if(2>(a.pa-a.S|0))return mo.prototype.Ba.call(a,-2+a.S|0),rp().Md; +d=255&pK(a);var g=255&pK(a);f=65535&(f?d<<8|g:g<<8|d);if(56320!==(64512&f))return mo.prototype.Ba.call(a,-4+a.S|0),rp().RA;if(2>(b.pa-b.S|0))return mo.prototype.Ba.call(a,-4+a.S|0),rp().we;b.Ol(c);b.Ol(f)}}}};sK.prototype.$classData=v({sfa:0},!1,"java.nio.charset.UTF_16_Common$Decoder",{sfa:1,lS:1,b:1}); +function tK(a){this.QA=null;this.PA=this.bx=0;this.Yt=this.Wt=this.Xt=null;this.Cl=0;this.SA=!1;this.iG=null;if(null===a)throw I(J(),null);this.iG=a;var b=0===a.qi?4:2;if(2===a.qi){var c=Af(new Bf,[-3,-1]);Hp();var d=c.z();d=new cb(d);c=new uK(c);c=new vK(c);for(var f=0;c.s();)d.a[f]=c.p()|0,f=1+f|0}else for(c=Af(new Bf,[-1,-3]),Hp(),d=c.z(),d=new cb(d),c=new uK(c),c=new vK(c),f=0;c.s();)d.a[f]=c.p()|0,f=1+f|0;gp(this,a,2,b,d);this.SA=0===a.qi}tK.prototype=new ip;tK.prototype.constructor=tK; +tK.prototype.Tx=function(){this.SA=0===this.iG.qi}; +tK.prototype.uH=function(a,b){if(this.SA){if(2>(b.pa-b.S|0))return rp().we;rK(b,-2);rK(b,-1);this.SA=!1}for(var c=2!==this.iG.qi;;){if(0===(a.pa-a.S|0))return rp().Md;var d=a.jr();if(56320===(64512&d))return mo.prototype.Ba.call(a,-1+a.S|0),rp().xe;if(55296!==(64512&d)){if(2>(b.pa-b.S|0))return mo.prototype.Ba.call(a,-1+a.S|0),rp().we;c?(rK(b,d>>8<<24>>24),rK(b,d<<24>>24)):(rK(b,d<<24>>24),rK(b,d>>8<<24>>24))}else{if(1>(a.pa-a.S|0))return mo.prototype.Ba.call(a,-1+a.S|0),rp().Md;var f=a.jr();if(56320!== +(64512&f))return mo.prototype.Ba.call(a,-2+a.S|0),rp().xe;if(4>(b.pa-b.S|0))return mo.prototype.Ba.call(a,-2+a.S|0),rp().we;c?(rK(b,d>>8<<24>>24),rK(b,d<<24>>24)):(rK(b,d<<24>>24),rK(b,d>>8<<24>>24));c?(rK(b,f>>8<<24>>24),rK(b,f<<24>>24)):(rK(b,f<<24>>24),rK(b,f>>8<<24>>24))}}};tK.prototype.$classData=v({tfa:0},!1,"java.nio.charset.UTF_16_Common$Encoder",{tfa:1,mS:1,b:1}); +function kca(a,b){var c=a.xf;if(null===c)throw mJ();if(a.fh)throw new ep;var d=a.Jg;if(-1===d)throw mJ();if(a.fh)throw new ep;var f=a.S+d|0,g=a.pa+d|0,h=b.of;if(null===h)throw mJ();if(b.Yh())throw new ep;var k=b.Kg;if(-1===k)throw mJ();if(b.Yh())throw new ep;for(var n=b.pa+k|0,r=b.S+k|0;;){if(f===g)return c=rp().Md,mo.prototype.Ba.call(a,f-d|0),mo.prototype.Ba.call(b,r-k|0),c;var u=c.a[f];if(0<=u){if(r===n)return c=rp().we,mo.prototype.Ba.call(a,f-d|0),mo.prototype.Ba.call(b,r-k|0),c;h.a[r]=65535& +u;r=1+r|0;f=1+f|0}else{var w=No().jG.a[127&u];if(-1===w)return c=rp().xe,mo.prototype.Ba.call(a,f-d|0),mo.prototype.Ba.call(b,r-k|0),c;if((1+f|0)>=g){u=rp().Md;var y=0,K=0}else if(y=c.a[1+f|0],128!==(192&y))u=rp().xe,K=y=0;else if(2===w)u=(31&u)<<6|63&y,128>u?(u=rp().xe,y=0):(y=65535&u,u=null),K=0;else if((2+f|0)>=g)u=rp().Md,K=y=0;else if(K=c.a[2+f|0],128!==(192&K))u=rp().Zt,K=y=0;else if(3===w)u=(15&u)<<12|(63&y)<<6|63&K,2048>u?(u=rp().xe,y=0):55296<=u&&57343>=u?(u=rp().Lq,y=0):(y=65535&u,u=null), +K=0;else if((3+f|0)>=g)u=rp().Md,K=y=0;else{var U=c.a[3+f|0];128!==(192&U)?(u=rp().Lq,K=y=0):(u=(7&u)<<18|(63&y)<<12|(63&K)<<6|63&U,65536>u||1114111>10),K=65535&(56320|1023&u),u=null))}if(null!==u)return c=u,mo.prototype.Ba.call(a,f-d|0),mo.prototype.Ba.call(b,r-k|0),c;if(0===K){if(r===n)return c=rp().we,mo.prototype.Ba.call(a,f-d|0),mo.prototype.Ba.call(b,r-k|0),c;h.a[r]=y;r=1+r|0;f=f+w|0}else{if((2+r|0)>n)return c=rp().we,mo.prototype.Ba.call(a, +f-d|0),mo.prototype.Ba.call(b,r-k|0),c;h.a[r]=y;h.a[1+r|0]=K;r=2+r|0;f=f+w|0}}}}function wK(){this.OA=null;this.NA=this.ax=0;this.Vt=this.Tt=this.Ut=null;this.Bl=0;$o(this,No(),1)}wK.prototype=new cp;wK.prototype.constructor=wK; +wK.prototype.qH=function(a,b){if(null===a.xf||a.fh||null===b.of||b.Yh())for(;;){var c=a.S;if(a.S===a.pa)return rp().Md;var d=pK(a);if(0<=d){if(b.S===b.pa)return b=rp().we,mo.prototype.Ba.call(a,c),b;b.Ol(65535&d)}else{var f=No().jG.a[127&d];if(-1===f)return b=rp().xe,mo.prototype.Ba.call(a,c),b;if(a.S!==a.pa){var g=pK(a);if(128!==(192&g)){d=rp().xe;var h=g=0}else 2===f?(d=(31&d)<<6|63&g,128>d?(d=rp().xe,g=0):(g=65535&d,d=null),h=0):a.S!==a.pa?(h=pK(a),128!==(192&h)?(d=rp().Zt,h=g=0):3===f?(d=(15& +d)<<12|(63&g)<<6|63&h,2048>d?(d=rp().xe,g=0):55296<=d&&57343>=d?(d=rp().Lq,g=0):(g=65535&d,d=null),h=0):a.S!==a.pa?(f=pK(a),128!==(192&f)?(d=rp().Lq,h=g=0):(d=(7&d)<<18|(63&g)<<12|(63&h)<<6|63&f,65536>d||1114111>10),h=65535&(56320|1023&d),d=null))):(d=rp().Md,h=g=0)):(d=rp().Md,h=g=0)}else d=rp().Md,h=g=0;if(null!==d)return b=d,mo.prototype.Ba.call(a,c),b;if(0===h){if(b.S===b.pa)return b=rp().we,mo.prototype.Ba.call(a,c),b;b.Ol(g)}else{if(2>(b.pa- +b.S|0))return b=rp().we,mo.prototype.Ba.call(a,c),b;b.Ol(g);b.Ol(h)}}}else return kca(a,b)};wK.prototype.$classData=v({vfa:0},!1,"java.nio.charset.UTF_8$Decoder",{vfa:1,lS:1,b:1}); +function lca(a,b){var c=a.of;if(null===c)throw mJ();if(a.Yh())throw new ep;var d=a.Kg;if(-1===d)throw mJ();if(a.Yh())throw new ep;var f=a.S+d|0,g=a.pa+d|0,h=b.xf;if(null===h)throw mJ();if(b.fh)throw new ep;var k=b.Jg;if(-1===k)throw mJ();if(b.fh)throw new ep;for(var n=b.pa+k|0,r=b.S+k|0;;){if(f===g)return c=rp().Md,mo.prototype.Ba.call(a,f-d|0),mo.prototype.Ba.call(b,r-k|0),c;var u=c.a[f];if(128>u){if(r===n)return c=rp().we,mo.prototype.Ba.call(a,f-d|0),mo.prototype.Ba.call(b,r-k|0),c;h.a[r]=u<<24>> +24;r=1+r|0;f=1+f|0}else if(2048>u){if((2+r|0)>n)return c=rp().we,mo.prototype.Ba.call(a,f-d|0),mo.prototype.Ba.call(b,r-k|0),c;h.a[r]=(192|u>>6)<<24>>24;h.a[1+r|0]=(128|63&u)<<24>>24;r=2+r|0;f=1+f|0}else if(No(),55296!==(63488&u)){if((3+r|0)>n)return c=rp().we,mo.prototype.Ba.call(a,f-d|0),mo.prototype.Ba.call(b,r-k|0),c;h.a[r]=(224|u>>12)<<24>>24;h.a[1+r|0]=(128|63&u>>6)<<24>>24;h.a[2+r|0]=(128|63&u)<<24>>24;r=3+r|0;f=1+f|0}else if(55296===(64512&u)){if((1+f|0)===g)return c=rp().Md,mo.prototype.Ba.call(a, +f-d|0),mo.prototype.Ba.call(b,r-k|0),c;var w=c.a[1+f|0];if(56320!==(64512&w))return c=rp().xe,mo.prototype.Ba.call(a,f-d|0),mo.prototype.Ba.call(b,r-k|0),c;if((4+r|0)>n)return c=rp().we,mo.prototype.Ba.call(a,f-d|0),mo.prototype.Ba.call(b,r-k|0),c;u=(64+(1023&u)|0)<<10|1023&w;h.a[r]=(240|u>>18)<<24>>24;h.a[1+r|0]=(128|63&u>>12)<<24>>24;h.a[2+r|0]=(128|63&u>>6)<<24>>24;h.a[3+r|0]=(128|63&u)<<24>>24;r=4+r|0;f=2+f|0}else return c=rp().xe,mo.prototype.Ba.call(a,f-d|0),mo.prototype.Ba.call(b,r-k|0),c}} +function xK(){this.QA=null;this.PA=this.bx=0;this.Yt=this.Wt=this.Xt=null;this.Cl=0;var a=No();gp(this,a,1.100000023841858,3,new cb(new Int8Array([63])))}xK.prototype=new ip;xK.prototype.constructor=xK; +xK.prototype.uH=function(a,b){if(null===a.of||a.Yh()||null===b.xf||b.fh)for(;;){if(a.S===a.pa)return rp().Md;var c=a.jr();if(128>c){if(b.S===b.pa)return b=rp().we,mo.prototype.Ba.call(a,-1+a.S|0),b;rK(b,c<<24>>24)}else if(2048>c){if(2>(b.pa-b.S|0))return b=rp().we,mo.prototype.Ba.call(a,-1+a.S|0),b;rK(b,(192|c>>6)<<24>>24);rK(b,(128|63&c)<<24>>24)}else if(No(),55296!==(63488&c)){if(3>(b.pa-b.S|0))return b=rp().we,mo.prototype.Ba.call(a,-1+a.S|0),b;rK(b,(224|c>>12)<<24>>24);rK(b,(128|63&c>>6)<<24>> +24);rK(b,(128|63&c)<<24>>24)}else if(55296===(64512&c)){if(a.S===a.pa)return b=rp().Md,mo.prototype.Ba.call(a,-1+a.S|0),b;var d=a.jr();if(56320!==(64512&d))return b=rp().xe,mo.prototype.Ba.call(a,-2+a.S|0),b;if(4>(b.pa-b.S|0))return b=rp().we,mo.prototype.Ba.call(a,-2+a.S|0),b;c=(64+(1023&c)|0)<<10|1023&d;rK(b,(240|c>>18)<<24>>24);rK(b,(128|63&c>>12)<<24>>24);rK(b,(128|63&c>>6)<<24>>24);rK(b,(128|63&c)<<24>>24)}else return b=rp().xe,mo.prototype.Ba.call(a,-1+a.S|0),b}else return lca(a,b)}; +xK.prototype.$classData=v({wfa:0},!1,"java.nio.charset.UTF_8$Encoder",{wfa:1,mS:1,b:1});function yK(){}yK.prototype=new t;yK.prototype.constructor=yK;function zK(){}zK.prototype=yK.prototype;yK.prototype.c=function(a){if(a===this)return!0;if(a&&a.$classData&&a.$classData.Hb.rC&&this.Y()===a.Y()){var b=this.ko().nh();a:{for(;b.s();){var c=b.p(),d=a.Fl(c.qh);c=c.Qg;if(null===d?null!==c:!Ea(d,c)){a=!0;break a}}a=!1}return!a}return!1}; +yK.prototype.v=function(){for(var a=this.ko().nh(),b=0;a.s();){var c=b;b=a.p();c|=0;b=b.v()+c|0}return b|0};yK.prototype.g=function(){for(var a="{",b=!0,c=this.ko().nh();c.s();){var d=c.p();b?b=!1:a+=", ";a=""+a+d.qh+"\x3d"+d.Qg}return a+"}"};function AK(){}AK.prototype=new Uq;AK.prototype.constructor=AK;AK.prototype.$classData=v({Lka:0},!1,"java.util.Formatter$RootLocaleInfo$",{Lka:1,LAa:1,b:1});var BK;function qJ(){BK||(BK=new AK);return BK} +function CK(a,b){if(null===b)throw I(J(),null);a.lC=b;a.mC=b.Rg.a.length}function DK(){this.Iu=this.mC=0;this.lC=this.Ju=null}DK.prototype=new t;DK.prototype.constructor=DK;function EK(){}EK.prototype=DK.prototype;DK.prototype.s=function(){if(null!==this.Ju)return!0;for(;this.Iu>>16|0)^(null===b?0:Ia(b))};FK.prototype.g=function(){return this.qh+"\x3d"+this.Qg}; +var HK=v({sU:0},!1,"java.util.HashMap$Node",{sU:1,b:1,ZH:1});FK.prototype.$classData=HK;function IK(){this.aI=this.$H=0;this.rla=!1}IK.prototype=new t;IK.prototype.constructor=IK;function JK(a){var b=a.aI,c=15525485*b+11;b=16777215&((c/16777216|0)+(16777215&(1502*b+15525485*a.$H|0))|0);c=16777215&(c|0);a.$H=b;a.aI=c;return(b<<8|c>>16)>>>0|0}IK.prototype.$classData=v({nla:0},!1,"java.util.Random",{nla:1,b:1,d:1});function KK(){var a=4294967296*+Math.random();return Qa(+Math.floor(a)-2147483648)} +function LK(){}LK.prototype=new t;LK.prototype.constructor=LK;LK.prototype.$classData=v({ola:0},!1,"java.util.Random$",{ola:1,b:1,d:1});var MK;function NK(a){if(!a.bI&&!a.bI){var b=new IK;MK||(MK=new LK);var c=KK();var d=KK();c=new p(d,c);d=-554899859^c.k;b.$H=d>>>24|0|(65535&(5^c.o))<<8;b.aI=16777215&d;b.rla=!1;a.uU=b;a.bI=!0}return a.uU}function OK(a){throw Hq("Invalid UUID string: "+a);}function PK(){this.uU=null;this.bI=!1}PK.prototype=new t;PK.prototype.constructor=PK; +function QK(){var a=RK(),b=JK(NK(a)),c=16384|-61441&JK(NK(a)),d=-2147483648|1073741823&JK(NK(a));a=JK(NK(a));return new SK(b,c,d,a,null,null)}PK.prototype.$classData=v({tla:0},!1,"java.util.UUID$",{tla:1,b:1,d:1});var TK;function RK(){TK||(TK=new PK);return TK}function UK(a,b){if(null===b)throw I(J(),null);a.cI=b;var c=b.xi,d=new VK;d.jC=[];if(0>c)throw oo();for(b=new WK(b);b.s();)d.sk(b.p());a.gy=XK(d)}function YK(){this.cI=this.gy=null}YK.prototype=new t;YK.prototype.constructor=YK; +function ZK(){}ZK.prototype=YK.prototype;YK.prototype.s=function(){return this.gy.s()};YK.prototype.p=function(){var a=this.gy.p();return this.Px(a)};function $K(){this.Ku=this.tC=this.wC=this.xC=this.vC=this.uC=this.hy=null;aL=this;this.hy=new bL;this.uC=new cL;this.vC=new dL;this.xC=new eL;this.wC=new fL;this.tC=new gL;this.Ku=new hL;new (x(iL).M)([this.hy,this.uC,this.vC,this.xC,this.wC,this.tC,this.Ku])}$K.prototype=new t;$K.prototype.constructor=$K; +function jL(a,b,c,d){a=b.o;var f=d.o;if(a===f?(-2147483648^b.k)>(-2147483648^d.k):a>f)return new p(-1,2147483647);a=d.k;d=d.o;d=0!==a?~d:-d|0;f=b.o;if(f===d?(-2147483648^b.k)<(-2147483648^(-a|0)):f>>16|0;var h=65535&a,k=a>>>16|0,n=l(g,h);h=l(f,h);var r=l(g,k);g=n+((h+r|0)<<16)|0;n=(n>>>16|0)+r|0;b=(((l(d,c.o)+l(b.o,a)|0)+l(f,k)|0)+(n>>>16|0)|0)+(((65535&n)+h|0)>>>16|0)|0;return new p(g,b)} +$K.prototype.$classData=v({Cla:0},!1,"java.util.concurrent.TimeUnit$",{Cla:1,b:1,d:1});var aL;function kL(){aL||(aL=new $K);return aL}function lL(){this.Cc=null}lL.prototype=new t;lL.prototype.constructor=lL;function mL(){}mL.prototype=lL.prototype;function nL(a,b,c){return Object.is(b,a.Cc)?(a.Cc=c,!0):!1}lL.prototype.g=function(){return""+this.Cc};function oL(a){if(null===a.sr)throw Vt("No match available");return a.sr} +function il(a,b){this.hI=a;this.MU=b;this.NU=0;this.rr=this.MU;this.AC=0;this.sr=null;this.Nu=0}il.prototype=new t;il.prototype.constructor=il;function hl(a){a.AC=0;a.sr=null;a.Nu=0;a.sr=a.hI.XU.exec(a.rr);return null!==a.sr}function pL(a){var b=a.hI;var c=a.rr;var d=b.oI;d.lastIndex=a.AC;c=d.exec(c);b=b.oI.lastIndex|0;a.AC=null!==c?b===(c.index|0)?1+b|0:b:1+(a.rr.length|0)|0;a.sr=c;return null!==c}function qL(a){return(oL(a).index|0)+a.NU|0} +function rL(a){var b=qL(a);a=oL(a)[0];if(void 0===a)throw Ir("undefined.get");return b+(a.length|0)|0}il.prototype.$classData=v({Rla:0},!1,"java.util.regex.Matcher",{Rla:1,b:1,TAa:1});function Xr(a,b,c,d,f,g,h){this.XU=this.oI=null;this.bma=a;this.ema=d;this.fma=f;this.cma=g;this.dma=h;this.oI=new RegExp(c,this.ema+(this.fma?"gy":"g"));this.XU=new RegExp("^(?:"+c+")$",d)}Xr.prototype=new t;Xr.prototype.constructor=Xr;Xr.prototype.g=function(){return this.bma}; +Xr.prototype.$classData=v({Sla:0},!1,"java.util.regex.Pattern",{Sla:1,b:1,d:1});function fl(){}fl.prototype=new t;fl.prototype.constructor=fl;fl.prototype.$classData=v({Tla:0},!1,"java.util.regex.Pattern$",{Tla:1,b:1,d:1});var el;function sL(){this.eV=null;tL=this;this.eV=new uL}sL.prototype=new t;sL.prototype.constructor=sL;sL.prototype.$classData=v({hma:0},!1,"scala.$less$colon$less$",{hma:1,b:1,d:1});var tL;function yg(){tL||(tL=new sL);return tL} +function Rs(a){a=new (x(sa).M)(a);F();for(var b=a.a.length,c=0;c!==b;)a.a[c]=void 0,c=1+c|0;return a}function vL(){}vL.prototype=new t;vL.prototype.constructor=vL;function wL(a,b,c){a=b.N();if(-1b)throw new rq;var c=a.a.length;c=bb)throw new rq;c=a.a.length;c=bf?xv(b,tf(a,b.oa,c,d)):0d?xv(b,FM(a,b.oa,c)):0a.gK){b=a.uj.a.length<<1;c=a.uj;a.uj=new (x(dw).M)(b);if(null!==a.js)if(d=1+(a.uj.a.length>>5)|0,a.js.a.length!==d)a.js=new eb(d);else{d=a.js;F();f=d.a.length;for(var g=0;g!==f;)d.a[g]=0,g=1+g|0}for(d=-1+c.a.length|0;0<=d;){for(f=c.a[d];null!==f;){g=f.mm;g=ly(W(),g);g=LM(a,g);var h=f.PD; +f.PD=a.uj.a[g];a.uj.a[g]=f;f=h;PM(a,g)}d=-1+d|0}a.gK=kw(mw(),a.fK,b)}return null}function PM(a,b){null!==a.js&&(a=a.js,b>>=5,a.a[b]=1+a.a[b]|0)}function LM(a,b){var c=-1+a.uj.a.length|0,d=ea(c);a=a.aX;zz||(zz=new yz);b=l(-1640532531,b);St();b=l(-1640532531,b<<24|16711680&b<<8|65280&(b>>>8|0)|b>>>24|0);return((b>>>a|0|b<<(-a|0))>>>d|0)&c}function OM(a,b){this.PD=null;this.mm=a;this.Zk=b;this.OD=this.bua=null}OM.prototype=new t;OM.prototype.constructor=OM; +OM.prototype.$classData=v({aua:0},!1,"scala.collection.mutable.LinkedHashMap$LinkedEntry",{aua:1,b:1,YW:1});function Dx(){}Dx.prototype=new t;Dx.prototype.constructor=Dx;Dx.prototype.$classData=v({mua:0},!1,"scala.collection.mutable.StringBuilder$",{mua:1,b:1,d:1});var Cx;function Uba(a,b,c,d){return kC(a,new C(((f,g,h,k)=>n=>Vw(g,new C(((r,u,w)=>y=>u.Od(w,y))(f,h,n)),k))(a,b,c,d)),d&&d.$classData&&d.$classData.Hb.lV?d:Xw())} +function QM(a,b){L();a=RM(b);a=ng(0,ll(a,"\\s+",0));Wb();return Xb(A(),a)}function mca(a,b){b=QM(0,b);if(!(b instanceof Vb))throw new B(b);a=b.Wc;b=b.Ma;for(var c=null,d=null;b!==A();){var f=b.G();z();f=Af(new Bf,[f,f+"s"]);for(f=Xb(A(),f).t();f.s();){var g=new Vb(f.p(),A());null===d?c=g:d.Ma=g;d=g}b=b.L()}b=null===c?A():c;return new Vb(a,b)} +function SM(){this.QI=this.PI=this.OC=this.yV=this.RI=null;TM=this;z();var a=kL().Ku;a=G(new H,a,"d day");var b=kL().tC;b=G(new H,b,"h hr hour");var c=kL().wC;c=G(new H,c,"m min minute");var d=kL().xC;d=G(new H,d,"s sec second");var f=kL().vC;f=G(new H,f,"ms milli millisecond");var g=kL().uC;g=G(new H,g,"\u00b5s micro microsecond");var h=kL().hy;a=[a,b,c,d,f,g,G(new H,h,"ns nano nanosecond")];a=Af(new Bf,a);a=this.RI=Xb(A(),a);yg();a=M(nM(),a);a=new UM(new VM(a),new C((()=>n=>QM(WM(),n).Qb())(this))); +yg();this.yV=M(nM(),a);a=this.RI;for(c=b=null;a!==A();){f=a.G();if(null===f)throw new B(f);d=f.Ea();f=f.xa();h=mca(WM(),f);d=((n,r)=>u=>G(new H,u,r))(this,d);if(h===A())d=A();else{f=h.G();g=f=new Vb(d(f),A());for(h=h.L();h!==A();){var k=h.G();k=new Vb(d(k),A());g=g.Ma=k;h=h.L()}d=f}for(d=d.t();d.s();)f=new Vb(d.p(),A()),null===c?b=f:c.Ma=f,c=f;a=a.L()}a=null===b?A():b;yg();M(nM(),a);new XM(fa,kL().Ku);this.OC=new YM;this.PI=new ZM;this.QI=new $M}SM.prototype=new t;SM.prototype.constructor=SM; +SM.prototype.$classData=v({Sma:0},!1,"scala.concurrent.duration.Duration$",{Sma:1,b:1,d:1});var TM;function WM(){TM||(TM=new SM);return TM}function aN(a,b){this.BV=a;this.CV=b}aN.prototype=new t;aN.prototype.constructor=aN;aN.prototype.g=function(){return"ManyCallbacks"};aN.prototype.$classData=v({Zma:0},!1,"scala.concurrent.impl.Promise$ManyCallbacks",{Zma:1,b:1,zV:1});function bN(a){a.QC||(a.RC=new (x(cN).M)(1+(a.SI-a.SC|0)|0),a.QC=!0);return a.RC} +function dN(){this.RC=null;this.SI=this.SC=0;this.Ho=null;this.QC=!1;eN=this;this.SC=-512;this.SI=512;this.Ho=Wn().iS}dN.prototype=new t;dN.prototype.constructor=dN;function fN(a,b){a=""+a;var c=new PJ;gN(c,Oz(a),a.length|0);hN(c,b);return new jM(c,b)}dN.prototype.$classData=v({ena:0},!1,"scala.math.BigDecimal$",{ena:1,b:1,d:1});var eN;function Wx(){eN||(eN=new dN);return eN}function iN(a,b){var c=b-a.Tu|0,d=a.TI.a[c];null===d&&(d=jN(new kN,null,new p(b,b>>31)),a.TI.a[c]=d);return d} +function lN(){this.UI=null;this.yy=this.Tu=0;this.DV=this.TI=null;mN=this;this.UI=Nn(hn(),new p(0,-2147483648));jN(new kN,this.UI,new p(0,-2147483648));this.Tu=-1024;this.yy=1024;this.TI=new (x(nN).M)(1+(this.yy-this.Tu|0)|0);this.DV=Nn(hn(),new p(-1,-1))}lN.prototype=new t;lN.prototype.constructor=lN; +function xd(a,b){if(63>=$m(ln(),b)){var c=b.fg(),d=c.k;c=c.o;var f=a.Tu,g=f>>31;(g===c?(-2147483648^f)<=(-2147483648^d):g>31,f=c===g?(-2147483648^d)<=(-2147483648^f):ca?0:a};e.Xi=function(a){if(0<=a&&aa)throw cu(new Ds,a+" is out of bounds (min 0, max "+(-1+this.z()|0)+")");if(b>this.z())throw cu(new Ds,b+" is out of bounds (min 0, max "+(-1+this.os.a.length|0)+")");if(b<=a)return new WL(this.os,0,0);var c=this.UD+a|0;return new WL(this.os,c,c+(b-a|0)|0)};e.g=function(){var a=this.UD;a=0=c)return"";b=this.os;c=c-a|0;return gJ(zt(),b,a,c)};e.$classData=v({Oua:0},!1,"scala.runtime.ArrayCharSequence",{Oua:1,b:1,ro:1}); +function Yb(a){this.nK=a}Yb.prototype=new t;Yb.prototype.constructor=Yb;Yb.prototype.g=function(){return""+this.nK};Yb.prototype.$classData=v({Qua:0},!1,"scala.runtime.BooleanRef",{Qua:1,b:1,d:1});function GN(a){this.qz=a}GN.prototype=new t;GN.prototype.constructor=GN;GN.prototype.g=function(){return""+this.qz};GN.prototype.$classData=v({Sua:0},!1,"scala.runtime.IntRef",{Sua:1,b:1,d:1});function HN(){this.WD=this.VD=!1}HN.prototype=new t;HN.prototype.constructor=HN; +HN.prototype.g=function(){return"LazyBoolean "+(this.VD?"of: "+this.WD:"thunk")};HN.prototype.$classData=v({Uua:0},!1,"scala.runtime.LazyBoolean",{Uua:1,b:1,d:1});function IN(){this.XD=!1;this.YD=0}IN.prototype=new t;IN.prototype.constructor=IN;IN.prototype.g=function(){return"LazyInt "+(this.XD?"of: "+this.YD:"thunk")};IN.prototype.$classData=v({Vua:0},!1,"scala.runtime.LazyInt",{Vua:1,b:1,d:1});function R(){this.e=!1;this.f=null}R.prototype=new t;R.prototype.constructor=R; +function Q(a,b){a.f=b;a.e=!0;return b}R.prototype.g=function(){return"LazyRef "+(this.e?"of: "+this.f:"thunk")};R.prototype.$classData=v({Wua:0},!1,"scala.runtime.LazyRef",{Wua:1,b:1,d:1});function mC(a){this.Ob=a}mC.prototype=new t;mC.prototype.constructor=mC;mC.prototype.g=function(){return""+this.Ob};mC.prototype.$classData=v({Zua:0},!1,"scala.runtime.ObjectRef",{Zua:1,b:1,d:1});function Qx(){}Qx.prototype=new t;Qx.prototype.constructor=Qx; +Qx.prototype.$classData=v({goa:0},!1,"scala.util.Either$",{goa:1,b:1,d:1});var Px;function Sx(){}Sx.prototype=new t;Sx.prototype.constructor=Sx;Sx.prototype.g=function(){return"Left"};Sx.prototype.$classData=v({joa:0},!1,"scala.util.Left$",{joa:1,b:1,d:1});var Rx;function Ux(){}Ux.prototype=new t;Ux.prototype.constructor=Ux;Ux.prototype.g=function(){return"Right"};Ux.prototype.$classData=v({loa:0},!1,"scala.util.Right$",{loa:1,b:1,d:1});var Tx;function cz(){this.qoa=!1}cz.prototype=new t; +cz.prototype.constructor=cz;cz.prototype.$classData=v({poa:0},!1,"scala.util.control.NoStackTrace$",{poa:1,b:1,d:1});var bz;function JN(){this.$C=this.aD=this.Rl=this.oe=0;KN=this;this.oe=Ja("Seq");this.Rl=Ja("Map");this.aD=Ja("Set");this.$C=nz(this,z().Jb,this.Rl)}JN.prototype=new kz;JN.prototype.constructor=JN;function LN(a,b,c){return mz(a,ly(W(),b),ly(W(),c))} +function MN(a){var b=D();if(a&&a.$classData&&a.$classData.Hb.Ub)a:{var c=b.oe,d=a.z();switch(d){case 0:b=b.ea(c,0);break a;case 1:d=c;a=a.W(0);b=b.ea(b.l(d,ly(W(),a)),1);break a;default:var f=a.W(0),g=ly(W(),f);f=c=b.l(c,g);var h=a.W(1);h=ly(W(),h);var k=h-g|0;for(g=2;gg=>UN(f,g))(a,c)));return new VN(c)}PN.prototype.$classData=v({Cfa:0},!1,"ujson.Arr$",{Cfa:1,b:1,d:1});var WN;function RN(){WN||(WN=new PN);return WN}function XN(){this.cu=this.og=null;this.oG=this.vS=this.UA=this.TA=0}XN.prototype=new t;XN.prototype.constructor=XN; +function YN(){}YN.prototype=XN.prototype;function ZN(a,b){if(Nz(a,b))throw new $N;}function aO(a,b){ZN(a,b);return Mz(a,b)}function bO(a,b,c){var d=new cO(32);dA();new cO(32);a=aO(a,b);Zz(0,d,new VL(new bb(new Uint16Array([65535&a]))),!1);a=qg();c=[c,dO(d)];c=xt(a,"%s got %s",Af(new Bf,c));throw new eO(c,b);} +function nca(a,b,c){var d=b,f=aO(a,d),g=-1,h=-1;45===f&&(d=1+d|0,f=aO(a,d));if(48===f){d=1+d|0;if(Nz(a,d))return G(new H,c.bc(Pz(a,b,d-b|0),g,h,b),d);f=aO(a,d)}else{for(var k=d;48<=f&&57>=f;){d=1+d|0;if(Nz(a,d))return G(new H,c.bc(Pz(a,b,d-b|0),g,h,b),d);f=aO(a,d)}k===d&&bO(a,b,"expected digit")}if(46===f){g=d-b|0;d=1+d|0;f=aO(a,d);for(k=d;48<=f&&57>=f;){d=1+d|0;if(Nz(a,d))return G(new H,c.bc(Pz(a,b,d-b|0),g,h,b),d);f=aO(a,d)}k===d&&bO(a,b,"expected digit")}if(101===f||69===f){h=d-b|0;d=1+d|0;f=aO(a, +d);if(43===f||45===f)d=1+d|0,f=aO(a,d);for(k=d;48<=f&&57>=f;){d=1+d|0;if(Nz(a,d))return G(new H,c.bc(Pz(a,b,d-b|0),g,h,b),d);f=aO(a,d)}k===d&&bO(a,b,"expected digit")}return G(new H,c.bc(Pz(a,b,d-b|0),g,h,b),d)}function fO(a,b,c){ZN(a,3+b|0);if(114===Mz(a,1+b|0)&&117===Mz(a,2+b|0)&&101===Mz(a,3+b|0))return c.Sc(b);bO(a,b,"expected true")}function gO(a,b,c){ZN(a,4+b|0);if(97===Mz(a,1+b|0)&&108===Mz(a,2+b|0)&&115===Mz(a,3+b|0)&&101===Mz(a,4+b|0))return c.Qc(b);bO(a,b,"expected false")} +function hO(a,b,c){ZN(a,3+b|0);if(117===Mz(a,1+b|0)&&108===Mz(a,2+b|0)&&108===Mz(a,3+b|0))return c.yc(b);bO(a,b,"expected null")} +function oca(a,b){for(var c=0;;)switch(aO(a,c)){case 32:case 9:case 114:c=1+c|0;break;case 10:c=1+c|0;break;case 91:return iO(a,6,1+c|0,b.Gb(-1,c));case 123:return iO(a,7,1+c|0,b.ca(-1,c));case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return nca(a,c,b);case 34:var d=jO(a,1+c|0);0<=d?(a=b.n(Pz(a,1+c|0,-2+(d-c|0)|0),c),a=G(new H,a,d)):(d=kO(a,c,d),a=b.n(dO(a.og),c),a=G(new H,a,d));return a;case 116:return G(new H,fO(a,c,b),4+c|0);case 102:return G(new H,gO(a, +c,b),5+c|0);case 110:return G(new H,hO(a,c,b),4+c|0);default:bO(a,c,"expected json value")}} +function iO(a,b,c,d){for(var f=z().Jb;;)switch(aO(a,c)){case 32:case 9:case 13:case 10:c=1+c|0;break;case 34:switch(b){case 2:case 7:try{b=a;var g=c,h=d,k=jO(b,1+g|0);if(0<=k){var n=g,r=Pz(b,1+g|0,-2+(k-g|0)|0);b=h;var u=b.u(n);b.j(u.n(r,n));var w=k}else{var y=kO(b,g,k);n=g;var K=dO(b.og);b=h;var U=b.u(n);b.j(U.n(K,n));w=y}}catch(hb){if(w=Sr(J(),hb),null!==w)if(c=new lO(a,c),c.Qd(w))b=xs().zg,w=c.Nd(w,b)|0;else throw I(J(),w);else throw hb;}b=3;c=w;break;case 1:case 6:try{b=a;g=c;h=d;var Z=jO(b,1+ +g|0);if(0<=Z){n=g;var ra=Pz(b,1+g|0,-2+(Z-g|0)|0);b=h;var Ba=b.h().n(ra,n);b.q(Ba,n);var ka=Z}else{var Ca=kO(b,g,Z);n=g;var Fa=dO(b.og);b=h;var ib=b.h().n(Fa,n);b.q(ib,n);ka=Ca}}catch(hb){if(ka=Sr(J(),hb),null!==ka)if(c=new lO(a,c),c.Qd(ka))b=xs().zg,ka=c.Nd(ka,b)|0;else throw I(J(),ka);else throw hb;}b=d.ae()?5:4;c=ka;break;default:mO(a,c,b)}break;case 58:3===b?(c=1+c|0,b=1):mO(a,c,b);break;case 91:nO(a,b,c);try{var zb=d.h().Gb(-1,c)}catch(hb){if(zb=Sr(J(),hb),null!==zb)if(b=new lO(a,c),b.Qd(zb))h= +xs().zg,zb=b.Nd(zb,h);else throw I(J(),zb);else throw hb;}c=1+c|0;f=new Vb(d,f);b=6;d=zb;break;case 123:nO(a,b,c);try{var Ab=d.h().ca(-1,c)}catch(hb){if(Ab=Sr(J(),hb),null!==Ab)if(b=new lO(a,c),b.Qd(Ab))h=xs().zg,Ab=b.Nd(Ab,h);else throw I(J(),Ab);else throw hb;}c=1+c|0;f=new Vb(d,f);b=7;d=Ab;break;case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:nO(a,b,c);try{b=a;h=c;n=d;var nd=d.h();g=h;var Bb=aO(b,g),Dc=-1,cc=-1;45===Bb&&(g=1+g|0,Bb=aO(b,g));if(48===Bb)g= +1+g|0,Bb=aO(b,g);else{for(var Ec=g;48<=Bb&&57>=Bb;)g=1+g|0,Bb=aO(b,g);g===Ec&&bO(b,h,"expected digit")}if(46===Bb){Dc=g-h|0;g=1+g|0;Bb=aO(b,g);for(Ec=g;48<=Bb&&57>=Bb;)g=1+g|0,Bb=aO(b,g);Ec===g&&bO(b,h,"expected digit")}if(101===Bb||69===Bb){cc=g-h|0;g=1+g|0;Bb=aO(b,g);if(43===Bb||45===Bb)g=1+g|0,Bb=aO(b,g);for(Ec=g;48<=Bb&&57>=Bb;)g=1+g|0,Bb=aO(b,g);Ec===g&&bO(b,h,"expected digit")}n.q(nd.bc(Pz(b,h,g-h|0),Dc,cc,h),h);var Xa=g}catch(hb){if(Xa=Sr(J(),hb),null!==Xa)if(c=new lO(a,c),c.Qd(Xa))b=xs().zg, +Xa=c.Nd(Xa,b)|0;else throw I(J(),Xa);else throw hb;}b=d.ae()?5:4;c=Xa;break;case 116:nO(a,b,c);try{d.q(fO(a,c,d.h()),c)}catch(hb){if(b=Sr(J(),hb),null!==b)if(h=new lO(a,c),h.Qd(b))n=xs().zg,h.Nd(b,n);else throw I(J(),b);else throw hb;}c=4+c|0;b=d.ae()?5:4;break;case 102:nO(a,b,c);try{d.q(gO(a,c,d.h()),c)}catch(hb){if(b=Sr(J(),hb),null!==b)if(h=new lO(a,c),h.Qd(b))n=xs().zg,h.Nd(b,n);else throw I(J(),b);else throw hb;}c=5+c|0;b=d.ae()?5:4;break;case 110:nO(a,b,c);try{d.q(hO(a,c,d.h()),c)}catch(hb){if(b= +Sr(J(),hb),null!==b)if(h=new lO(a,c),h.Qd(b))n=xs().zg,h.Nd(b,n);else throw I(J(),b);else throw hb;}c=4+c|0;b=d.ae()?5:4;break;case 44:a.vS=c;switch(b){case 4:c=1+c|0;b=1;break;case 5:c=1+c|0;b=2;break;default:mO(a,c,b)}break;case 93:switch(b){case 4:case 6:d=oO(a,d,f,c);if(d instanceof Ze)return d.Sb;if(E()===d)d=f.G(),b=d.ae()?5:4,c=1+c|0,f=f.L();else throw new B(d);break;default:mO(a,c,b)}break;case 125:switch(b){case 5:case 7:d=oO(a,d,f,c);if(d instanceof Ze)return d.Sb;if(E()===d)d=f.G(),b=d.ae()? +5:4,c=1+c|0,f=f.L();else throw new B(d);break;default:mO(a,c,b)}break;default:mO(a,c,b)}}function mO(a,b,c){switch(c){case 6:c="json value or ]";break;case 7:c="json value or }";break;case 1:c="json value";break;case 2:c="json string key";break;case 3:c=":";break;case 4:c=", or ]";break;case 5:c=", or }";break;default:throw new B(c);}bO(a,b,"expected "+c)}function nO(a,b,c){switch(b){case 1:case 6:break;default:mO(a,c,b)}} +function oO(a,b,c,d){if(c.i()){c=new H;a:try{var f=b.da(d)}catch(g){b=Sr(J(),g);if(null!==b){a=new lO(a,d);if(a.Qd(b)){f=xs().zg;f=a.Nd(b,f);break a}throw I(J(),b);}throw g;}return new Ze(G(c,f,1+d|0))}c=c.G();try{c.q(b.da(d),d)}catch(g){if(c=Sr(J(),g),null!==c)if(d=new lO(a,d),d.Qd(c))a=xs().zg,d.Nd(c,a);else throw I(J(),c);else throw g;}return E()} +function jO(a,b){for(var c=aO(a,b);34!==c;){32>c&&bO(a,b,"control char ("+c+") in string");if(92===c||127d)bO(a,c,"control char ("+d+") in string");else if(92===d)switch(aO(a,1+c|0)){case 98:cA(a.og,8);c=2+c|0;break;case 102:cA(a.og,12);c=2+c|0;break;case 110:cA(a.og,10);c=2+c|0;break;case 114:cA(a.og,13);c=2+c|0;break;case 116:cA(a.og,9);c=2+c|0;break;case 34:cA(a.og,34);c=2+c|0;break;case 47:cA(a.og,47);c=2+c|0;break;case 92:cA(a.og,92);c=2+c| +0;break;case 117:f=a;g=c;d=0|Yz(dA(),aO(f,2+g|0));d=d<<4|Yz(dA(),aO(f,3+g|0));d=d<<4|Yz(dA(),aO(f,4+g|0));d=d<<4|Yz(dA(),aO(f,5+g|0));cA(a.og,65535&d);c=6+c|0;break;default:bO(a,1+c|0,"illegal escape sequence after \\")}else cA(a.og,65535&d),c=1+c|0;d=aO(a,c)}return 1+c|0}function pO(){}pO.prototype=new t;pO.prototype.constructor=pO; +function qO(a,b,c){try{if(b instanceof rO)return c.yc(b.fu);if(b instanceof sO)return c.Sc(b.ku);if(b instanceof tO)return c.Qc(b.eu);if(b instanceof uO)return c.n(b.Rq,b.ju);if(b instanceof vO)return c.bc(b.hx,b.fx,b.gx,b.hu);if(b instanceof wO)return c.xc(b.ex,b.gu);if(b instanceof xO){var d=b.du,f=b.dx,g=c.Gb(-1,-1);f.Fa(new C(((r,u)=>w=>{try{u.q(qO(yO(),w,u.h()),w.wi())}catch(U){var y=Sr(J(),U);if(null!==y)if(xA(),w=new zO(w.wi()),w.Qd(y)){var K=xs().zg;w.Nd(y,K)}else throw I(J(),y);else throw U; +}})(a,g)));return g.da(d)}if(b instanceof AO){var h=b.iu,k=b.Qq,n=c.ca(-1,-1);k.$D(new C((()=>r=>null!==r)(a))).Fa(new C(((r,u,w)=>y=>{if(null!==y){var K=y.Ea();y=y.xa();try{var U=u.u(w)}catch(Ba){if(U=Sr(J(),Ba),null!==U){xA();var Z=new zO(w);if(Z.Qd(U)){var ra=xs().zg;U=Z.Nd(U,ra)}else throw I(J(),U);}else throw Ba;}u.j(U.n(K,w));try{u.q(qO(yO(),y,u.h()),y.wi())}catch(Ba){if(K=Sr(J(),Ba),null!==K)if(xA(),y=new zO(y.wi()),y.Qd(K))U=xs().zg,y.Nd(K,U);else throw I(J(),K);else throw Ba;}}else throw new B(y); +})(a,n,h)));return n.da(h)}throw new B(b);}catch(r){a=Sr(J(),r);if(null!==a){xA();b=new zO(b.wi());if(b.Qd(a))return c=xs().zg,b.Nd(a,c);throw I(J(),a);}throw r;}}pO.prototype.rK=function(a,b){return qO(this,a,b)};pO.prototype.$classData=v({Pfa:0},!1,"ujson.IndexedValue$",{Pfa:1,b:1,yS:1});var BO;function yO(){BO||(BO=new pO);return BO} +function CO(a,b,c){if(0>b.o){var d=b.k,f=b.o;d=new p(-d|0,0!==d?~f:-f|0)}else d=b;return bs(Aa(),d.k,d.o)>+Math.pow(2,53)||0===b.k&&-2147483648===b.o?a.n($r(Aa(),b.k,b.o),c):a.xc(bs(Aa(),b.k,b.o),c)}function DO(a,b,c){if(bs(Aa(),b.k,b.o)>+Math.pow(2,53)||0>b.o){var d=aJ(),f=a.n;b=0===b.o?(+(b.k>>>0)).toString(10):VI(d,b,10);return f.call(a,b,c)}return a.xc(bs(Aa(),b.k,b.o),c)}function EO(a,b,c,d,f){a=a.Gb(d,f);for(var g=0;gd=>c.FG.r(d))(this)))};e.Gb=function(a,b){return new wP(this.cg.Gb(a,b),new C((c=>d=>c.FG.r(d))(this)))};e.xd=function(a,b){return uP(this,this.cg.xd(a,b))};e.Rc=function(a,b){return uP(this,this.cg.Rc(a,b))};e.yd=function(a,b){return uP(this,this.cg.yd(a,b))};e.Kd=function(a,b){return uP(this,this.cg.Kd(a,b))};e.Id=function(a,b){return uP(this,this.cg.Id(a,b))}; +e.Hd=function(a,b,c,d){return uP(this,this.cg.Hd(a,b,c,d))};e.Jd=function(a,b,c,d,f){return uP(this,this.cg.Jd(a,b,c,d,f))};function Qz(a,b,c){this.RG=a;this.SG=b;this.RS=c;this.TG=null}Qz.prototype=new t;Qz.prototype.constructor=Qz;e=Qz.prototype;e.z=function(){return this.RS};e.Xi=function(a){return this.RG.a[a+this.SG|0]};e.g=function(){if(null!==this.TG)return this.TG;var a=this.RG,b=this.SG,c=this.RS;return this.TG=a=gJ(zt(),a,b,c)};e.gp=function(a,b){return new Qz(this.RG,this.SG+a|0,b-a|0)}; +e.$classData=v({Pha:0},!1,"upickle.core.WrapCharArrayCharSeq",{Pha:1,b:1,ro:1});function qca(a,b,c){return new pP(a,new (x(Zba).M)([b,c]),new C((()=>d=>{if(null===d)return null;var f=Af(new Bf,[d.Ea(),d.xa()]);$t();d=f.z();d=new Za(d);f=new uK(f);f=new vK(f);for(var g=0;f.s();)d.a[g]=f.p(),g=1+g|0;return d})(a)))}function rca(a,b,c){return new xP(a,new (x(pca).M)([b,c]),new C((()=>d=>G(new H,d.a[0],d.a[1]))(a)))} +function yP(a,b){this.TS=this.SS=null;if(null===a)throw I(J(),null);this.SS=a;this.TS=b}yP.prototype=new t;yP.prototype.constructor=yP;yP.prototype.sa=function(){return this.SS};yP.prototype.ta=function(a,b){a=a.Gb(b.Y(),-1);for(b=b.t();b.s();){var c=b.p(),d=this.TS,f=a.h();c=Y(d,f,c);a.q(c,-1)}return a.da(-1)};yP.prototype.$classData=v({qia:0},!1,"upickle.implicits.LowPriWriters$$anon$17",{qia:1,b:1,ra:1});function zP(a){this.tT=null;if(null===a)throw I(J(),null);this.tT=a}zP.prototype=new t; +zP.prototype.constructor=zP;zP.prototype.sa=function(){return this.tT};zP.prototype.ta=function(a,b){return a.n(b,-1)};zP.prototype.$classData=v({Kia:0},!1,"upickle.implicits.Writers$$anon$1",{Kia:1,b:1,ra:1});function AP(a){this.nT=null;if(null===a)throw I(J(),null);this.nT=a}AP.prototype=new t;AP.prototype.constructor=AP;AP.prototype.sa=function(){return this.nT};AP.prototype.ta=function(a,b){b=Ga(b);return a.yd(new p(b.k,b.o),-1)}; +AP.prototype.$classData=v({Lia:0},!1,"upickle.implicits.Writers$$anon$10",{Lia:1,b:1,ra:1});function BP(a,b){this.pT=this.oT=null;if(null===a)throw I(J(),null);this.oT=a;this.pT=b}BP.prototype=new t;BP.prototype.constructor=BP;BP.prototype.sa=function(){return this.oT};BP.prototype.ta=function(a,b){a=a.Gb(OL(yI(),b).Y(),-1);b.t();if(E()!==b)if(b instanceof Ze){b=b.Sb;var c=this.pT,d=a.h();b=Y(c,d,b);a.q(b,-1)}else throw new B(b);return a.da(-1)}; +BP.prototype.$classData=v({Mia:0},!1,"upickle.implicits.Writers$$anon$11",{Mia:1,b:1,ra:1});function CP(a,b){this.rT=this.qT=null;if(null===a)throw I(J(),null);this.qT=a;this.rT=b}CP.prototype=new t;CP.prototype.constructor=CP;function sca(a,b,c){b=b.ca(c.Y(),-1);c.Fa(new C(((d,f)=>g=>{if(null===g)throw new B(g);var h=g.Ea();g=g.xa();var k=f.u(-1);f.j(k.n(h,-1));h=d.rT;k=f.h();f.q(Y(h,k,g),-1)})(a,b)));return b.da(-1)}CP.prototype.sa=function(){return this.qT}; +CP.prototype.ta=function(a,b){return sca(this,a,b)};CP.prototype.$classData=v({Nia:0},!1,"upickle.implicits.Writers$$anon$14",{Nia:1,b:1,ra:1});function DP(a){this.sT=null;if(null===a)throw I(J(),null);this.sT=a}DP.prototype=new t;DP.prototype.constructor=DP;DP.prototype.sa=function(){return this.sT}; +DP.prototype.ta=function(a,b){var c=WM().PI;(null===c?null===b:c.c(b))?a=a.n("inf",-1):(c=WM().QI,(null===c?null===b:c.c(b))?a=a.n("-inf",-1):b===WM().OC?a=a.n("undef",-1):(b=b.oX(),a=a.n($r(Aa(),b.k,b.o),-1)));return a};DP.prototype.$classData=v({Oia:0},!1,"upickle.implicits.Writers$$anon$15",{Oia:1,b:1,ra:1});function EP(a){this.uT=null;if(null===a)throw I(J(),null);this.uT=a}EP.prototype=new t;EP.prototype.constructor=EP;EP.prototype.sa=function(){return this.uT}; +EP.prototype.ta=function(a){return a.ca(0,-1).da(-1)};EP.prototype.$classData=v({Pia:0},!1,"upickle.implicits.Writers$$anon$2",{Pia:1,b:1,ra:1});function FP(a){this.vT=null;if(null===a)throw I(J(),null);this.vT=a}FP.prototype=new t;FP.prototype.constructor=FP;FP.prototype.sa=function(){return this.vT};FP.prototype.ta=function(a,b){return a.xc(+b,-1)};FP.prototype.$classData=v({Qia:0},!1,"upickle.implicits.Writers$$anon$3",{Qia:1,b:1,ra:1}); +function GP(a){this.wT=null;if(null===a)throw I(J(),null);this.wT=a}GP.prototype=new t;GP.prototype.constructor=GP;GP.prototype.sa=function(){return this.wT};GP.prototype.ta=function(a,b){return a.Rc(b|0,-1)};GP.prototype.$classData=v({Ria:0},!1,"upickle.implicits.Writers$$anon$4",{Ria:1,b:1,ra:1});function HP(a){this.xT=null;if(null===a)throw I(J(),null);this.xT=a}HP.prototype=new t;HP.prototype.constructor=HP;HP.prototype.sa=function(){return this.xT}; +HP.prototype.ta=function(a,b){return a.xd(+b,-1)};HP.prototype.$classData=v({Sia:0},!1,"upickle.implicits.Writers$$anon$5",{Sia:1,b:1,ra:1});function IP(a){this.yT=null;if(null===a)throw I(J(),null);this.yT=a}IP.prototype=new t;IP.prototype.constructor=IP;IP.prototype.sa=function(){return this.yT};IP.prototype.ta=function(a,b){return a.Rc(b|0,-1)};IP.prototype.$classData=v({Tia:0},!1,"upickle.implicits.Writers$$anon$6",{Tia:1,b:1,ra:1}); +function JP(a){this.zT=null;if(null===a)throw I(J(),null);this.zT=a}JP.prototype=new t;JP.prototype.constructor=JP;JP.prototype.sa=function(){return this.zT};JP.prototype.ta=function(a,b){return a.Rc(b|0,-1)};JP.prototype.$classData=v({Uia:0},!1,"upickle.implicits.Writers$$anon$7",{Uia:1,b:1,ra:1});function KP(a){this.AT=null;if(null===a)throw I(J(),null);this.AT=a}KP.prototype=new t;KP.prototype.constructor=KP;KP.prototype.sa=function(){return this.AT}; +KP.prototype.ta=function(a,b){return b?a.Sc(-1):a.Qc(-1)};KP.prototype.$classData=v({Via:0},!1,"upickle.implicits.Writers$$anon$8",{Via:1,b:1,ra:1});function LP(a){this.BT=null;if(null===a)throw I(J(),null);this.BT=a}LP.prototype=new t;LP.prototype.constructor=LP;LP.prototype.sa=function(){return this.BT};LP.prototype.ta=function(a,b){return a.Id(Da(b),-1)};LP.prototype.$classData=v({Wia:0},!1,"upickle.implicits.Writers$$anon$9",{Wia:1,b:1,ra:1});function MP(a){this.FB=a;cr()}MP.prototype=new Wq; +MP.prototype.constructor=MP; +function kr(a,b){if(b instanceof NP){HA||(HA=new GA);var c=b.fI;c=(new Date(bs(Aa(),c.k,c.o))).toISOString();var d=b.vx.nk;d=xt(qg(),"%5s",Af(new Bf,[d]));var f=a.FB;var g=b.vx;f=OP()===g?"color:"+f.zB:PP()===g?"color:"+f.EB:CB()===g?"color:"+f.AB:fh()===g?"color:"+f.xB:Ij()===g?"color:"+f.DB:f.yB;g=b.IB;g.i()?g=E():(g=g.Sa(),g=new Ze("- ("+(g.wx+":"+g.xx)+")"));var h=g.i()?"":g.Sa();console&&(g=console,b="%c"+c+" %c"+d+" %c["+tca(b)+"] %c"+b.HB+" %c"+h,g.log(b,"color:"+a.FB.CB,f,"color:"+a.FB.BB, +f,"color:"+a.FB.wB))}else{c=kr;QP();a:if(f=EA(),d=b.eI,f=(0===(2&f.GB)<<24>>24?uca(f):f.aH).Nc(d),f instanceof Ze)d=f.Sb;else{if(E()===f){f=cr().zU;if(null===f?null===d:f.c(d)){d=CB();break a}f=cr().CU;if(null===f?null===d:f.c(d)){d=Ij();break a}throw new B(d);}throw new B(f);}d=new NP(d,E(),b.IU,xI(yI(),b.gI));d.iy=b.iy;c(a,d)}}MP.prototype.$classData=v({Xia:0},!1,"wvlet.log.JSConsoleLogHandler",{Xia:1,xU:1,b:1}); +function uca(a){if(0===(2&a.GB)<<24>>24){var b=a.bH.Da(new C((()=>c=>G(new H,c.Tb,c))(a)));yg();a.aH=b.Kh();a.GB=(2|a.GB)<<24>>24}return a.aH}function RP(){this.bH=this.aH=null;this.GB=0;SP=this;var a=z().IV,b=[TP(),OP(),PP(),CB(),fh(),Ij(),UP()];this.bH=N(a,Af(new Bf,b))}RP.prototype=new t;RP.prototype.constructor=RP; +function DA(a,b){var c=b.toLowerCase();a:{for(a=a.bH.t();a.s();){var d=a.p();if(c===d.nk){c=new Ze(d);break a}}c=E()}return c.i()?(BL().fV.By.GC("Unknown log level ["+b+"] Use info log level instead."),CB()):c.Sa()}RP.prototype.$classData=v({cja:0},!1,"wvlet.log.LogLevel$",{cja:1,b:1,d:1});var SP;function EA(){SP||(SP=new RP);return SP}function VP(){this.GT=null;WP=this;this.GT=pr().Pf(A())}VP.prototype=new t;VP.prototype.constructor=VP; +VP.prototype.$classData=v({lja:0},!1,"wvlet.log.LogRecord$",{lja:1,b:1,d:1});var WP;function QP(){WP||(WP=new VP);return WP}function XP(){this.wb=this.HT=null;this.dH=!1;YP=this;var a=new ZP;a.Nc("java.util.logging.manager");a.al("java.util.logging.manager","wvlet.log.AirframeLogManager");a=z().w;zA||(zA=new yA);var b=[new MP(zA.CT)];a=N(a,Af(new Bf,b));b=E();a=vca(this,b,a);b=CB();hh(a).Ll=b.Tb;this.wb=a}XP.prototype=new t;XP.prototype.constructor=XP; +function vca(a,b,c){var d=CA(eh(),"");wca(d);b.i()||(b=b.Sa(),hh(d).Ll=b.Tb);c.Fa(new C(((f,g)=>h=>{var k=hh(g),n=k.qr;Ns();var r=1+n.a.length|0;Tl(m(Xq),Vl(ia(n)))?r=Rl(m(Xq))?Ps(n,r):sq(F(),n,r,m(x(Xq))):(r=new (x(Xq).M)(r),Qs(Ns(),n,0,r,0,n.a.length));Qp(Pp(),r,n.a.length,h);k.qr=r})(a,d)));hh(d).zC=!0;return d} +function CA(a,b){if(!a.dH&&!a.dH){var c=$P(),d=new aQ;d.Ck=new bQ(16,.75);c=new Bt(c,d);cQ();c=c.xqa;a.HT=null===c?null:new dQ(c);a.dH=!0}a=a.HT;c=a.Nc(b);if(c instanceof Ze)b=c.Sb;else{if(E()!==c)throw new B(c);c=new eQ(b,qr(rr(),b));b=xI(yI(),a.Nj.HC(b,c));if(b instanceof Ze)b=b.Sb;else{if(E()!==b)throw new B(b);b=c}}return b}XP.prototype.$classData=v({pja:0},!1,"wvlet.log.Logger$",{pja:1,b:1,d:1});var YP;function eh(){YP||(YP=new XP);return YP}function vI(a,b,c){this.Lh=b;this.Mh=c} +vI.prototype=new t;vI.prototype.constructor=vI;vI.prototype.$classData=v({zX:0},!1,"cats.Contravariant$ToContravariantOps$$anon$4",{zX:1,b:1,vva:1,d:1});function fQ(){}fQ.prototype=new JA;fQ.prototype.constructor=fQ;function gQ(){}gQ.prototype=fQ.prototype;v({BX:0},!1,"cats.EvalInstances$$anon$11",{BX:1,b:1,GX:1,d:1});v({DX:0},!1,"cats.EvalInstances$$anon$7",{DX:1,b:1,wva:1,d:1});function hQ(){}hQ.prototype=new OA;hQ.prototype.constructor=hQ;function iQ(){}iQ.prototype=hQ.prototype; +function jQ(){}jQ.prototype=new QA;jQ.prototype.constructor=jQ;function kQ(){}kQ.prototype=jQ.prototype;v({$Y:0},!1,"cats.instances.InvariantInstances$$anon$10",{$Y:1,b:1,mi:1,d:1});v({aZ:0},!1,"cats.instances.InvariantInstances$$anon$12",{aZ:1,b:1,mi:1,d:1});function ec(){}ec.prototype=new t;ec.prototype.constructor=ec;ec.prototype.lo=function(a,b){return fq(O(),a,b)};ec.prototype.$classData=v({o_:0},!1,"cats.kernel.Eq$$anon$6",{o_:1,b:1,fk:1,d:1});function lQ(){}lQ.prototype=new $A; +lQ.prototype.constructor=lQ;function mQ(){}mQ.prototype=lQ.prototype;function nQ(){}nQ.prototype=new bB;nQ.prototype.constructor=nQ;function oQ(){}oQ.prototype=nQ.prototype;function vc(){dc()}vc.prototype=new t;vc.prototype.constructor=vc;vc.prototype.$classData=v({T0:0},!1,"cats.package$$anon$2",{T0:1,b:1,GX:1,d:1});function Qc(){}Qc.prototype=new t;Qc.prototype.constructor=Qc;Qc.prototype.tI=function(a){return Vc().wE.zx(a)};Qc.prototype.sI=function(){return Vc().wE}; +Qc.prototype.$classData=v({Z0:0},!1,"cats.parse.Accumulator0$$anon$11",{Z0:1,b:1,X0:1,gL:1});function ld(){}ld.prototype=new t;ld.prototype.constructor=ld;ld.prototype.tI=function(a){return this.sI().zx(a)};ld.prototype.sI=function(){Vc();z();var a=new Cd;return new hB(a)};ld.prototype.$classData=v({$0:0},!1,"cats.parse.Accumulator0$$anon$9",{$0:1,b:1,X0:1,gL:1}); +function pQ(){this.py=this.yr=null;this.Su=!1;this.oy=null;this.uc=0;this.na=null;this.wr=this.xr=0;this.FL=this.EL=null;CL(this);qQ=this;var a=null!==this.na&&this.na.s()?this.na.p():"TriG";new rQ(this,this.uc,a);a=null!==this.na&&this.na.s()?this.na.p():"N$minusQuads";new rQ(this,this.uc,a);a=null!==this.na&&this.na.s()?this.na.p():"N3";this.EL=new rQ(this,this.uc,a);a=null!==this.na&&this.na.s()?this.na.p():"Turtle";this.FL=new rQ(this,this.uc,a);a=null!==this.na&&this.na.s()?this.na.p():"N$minusTriples"; +new rQ(this,this.uc,a);a=null!==this.na&&this.na.s()?this.na.p():"application$divtrig";new rQ(this,this.uc,a)}pQ.prototype=new FL;pQ.prototype.constructor=pQ;pQ.prototype.$classData=v({o2:0},!1,"com.github.p2m2.facade.N3FormatOption$",{o2:1,FI:1,b:1,d:1});var qQ;function bC(){qQ||(qQ=new pQ);return qQ} +function jC(){this.py=this.yr=null;this.Su=!1;this.oy=null;this.uc=0;this.na=null;this.wr=this.xr=0;this.GL=null;CL(this);iC=this;var a=null!==this.na&&this.na.s()?this.na.p():"sparql";this.GL=new rQ(this,this.uc,a);a=null!==this.na&&this.na.s()?this.na.p():"graphql";new rQ(this,this.uc,a)}jC.prototype=new FL;jC.prototype.constructor=jC;jC.prototype.$classData=v({r2:0},!1,"com.github.p2m2.facade.QueryFormat$",{r2:1,FI:1,b:1,d:1});var iC; +function sQ(){this.py=this.yr=null;this.Su=!1;this.oy=null;this.uc=0;this.na=null;this.wr=this.xr=0;this.JL=this.HL=this.IL=null;CL(this);tQ=this;var a=null!==this.na&&this.na.s()?this.na.p():"hypermedia";this.IL=new rQ(this,this.uc,a);a=null!==this.na&&this.na.s()?this.na.p():"file";this.HL=new rQ(this,this.uc,a);a=null!==this.na&&this.na.s()?this.na.p():"sparql";this.JL=new rQ(this,this.uc,a);a=null!==this.na&&this.na.s()?this.na.p():"rdfjsSource";new rQ(this,this.uc,a);a=null!==this.na&&this.na.s()? +this.na.p():"hdtFile";new rQ(this,this.uc,a);a=null!==this.na&&this.na.s()?this.na.p():"ostrichFile";new rQ(this,this.uc,a)}sQ.prototype=new FL;sQ.prototype.constructor=sQ;sQ.prototype.$classData=v({u2:0},!1,"com.github.p2m2.facade.SourceType$",{u2:1,FI:1,b:1,d:1});var tQ;function aC(){tQ||(tQ=new sQ);return tQ}function mB(){}mB.prototype=new t;mB.prototype.constructor=mB;e=mB.prototype;e.ta=function(a,b){return nP(this,a,b)};e.sa=function(){return X()}; +e.Xa=function(a,b){if(X(),b.Sm!==(nB(),!0)){var c=X().rg,d=b.Sm,f=a.u(-1);a.j(f.n((X(),"cache"),-1));f=a.h();a.q(Y(c,f,d),-1)}if(X(),b.jk!==(nB(),"warn"))c=X().H,d=b.jk,f=a.u(-1),a.j(f.n((X(),"logLevel"),-1)),f=a.h(),a.q(Y(c,f,d),-1);if(X(),b.jl!==(nB(),150))c=X().ux,d=b.jl,f=a.u(-1),a.j(f.n((X(),"sizeBatchProcessing"),-1)),f=a.h(),a.q(Y(c,f,d),-1);if(X(),b.Ph!==(nB(),10))c=X().ux,d=b.Ph,f=a.u(-1),a.j(f.n((X(),"pageSize"),-1)),f=a.h(),a.q(Y(c,f,d),-1);if(X(),b.il!==(nB(),!1))c=X().rg,d=b.il,f=a.u(-1), +a.j(f.n((X(),"proxy"),-1)),f=a.h(),a.q(Y(c,f,d),-1);if(X(),b.kl!==(nB(),"http://urlProxy"))c=X().H,b=b.kl,d=a.u(-1),a.j(d.n((X(),"urlProxy"),-1)),d=a.h(),a.q(Y(c,d,b),-1)};e.Ta=function(a){return((((((X(),a.Sm!==(nB(),!0))?1:0)+((X(),a.jk!==(nB(),"warn"))?1:0)|0)+((X(),a.jl!==(nB(),150))?1:0)|0)+((X(),a.Ph!==(nB(),10))?1:0)|0)+((X(),a.il!==(nB(),!1))?1:0)|0)+((X(),a.kl!==(nB(),"http://urlProxy"))?1:0)|0}; +e.$classData=v({H2:0},!1,"inrae.semantic_web.ConfigurationObject$GeneralSetting$$anon$6",{H2:1,b:1,bb:1,ra:1});function rB(){}rB.prototype=new t;rB.prototype.constructor=rB;e=rB.prototype;e.ta=function(a,b){return nP(this,a,b)};e.sa=function(){return X()}; +e.Xa=function(a,b){var c=X().H,d=b.xp,f=a.u(-1);a.j(f.n((X(),"id"),-1));f=a.h();a.q(Y(c,f,d),-1);if(X(),b.Ig!==(sB(),""))c=X().H,d=b.Ig,f=a.u(-1),a.j(f.n((X(),"url"),-1)),f=a.h(),a.q(Y(c,f,d),-1);if(X(),b.Tm!==(sB(),""))c=X().H,d=b.Tm,f=a.u(-1),a.j(f.n((X(),"file"),-1)),f=a.h(),a.q(Y(c,f,d),-1);if(X(),b.Bj!==(sB(),""))c=X().H,d=b.Bj,f=a.u(-1),a.j(f.n((X(),"content"),-1)),f=a.h(),a.q(Y(c,f,d),-1);if(X(),b.Ri!==(sB(),"application/sparql-query"))c=X().H,d=b.Ri,f=a.u(-1),a.j(f.n((X(),"mimetype"),-1)), +f=a.h(),a.q(Y(c,f,d),-1);if(X(),b.ml!==(sB(),"POST"))c=X().H,d=b.ml,f=a.u(-1),a.j(f.n((X(),"method"),-1)),f=a.h(),a.q(Y(c,f,d),-1);if(X(),b.ll!==(sB(),""))c=X().H,d=b.ll,f=a.u(-1),a.j(f.n((X(),"auth"),-1)),f=a.h(),a.q(Y(c,f,d),-1);if(X(),b.Um!==(sB(),""))c=X().H,d=b.Um,f=a.u(-1),a.j(f.n((X(),"login"),-1)),f=a.h(),a.q(Y(c,f,d),-1);if(X(),b.Vm!==(sB(),""))c=X().H,d=b.Vm,f=a.u(-1),a.j(f.n((X(),"password"),-1)),f=a.h(),a.q(Y(c,f,d),-1);if(X(),b.nl!==(sB(),""))c=X().H,b=b.nl,d=a.u(-1),a.j(d.n((X(),"token"), +-1)),d=a.h(),a.q(Y(c,d,b),-1)};e.Ta=function(a){return((((((((1+((X(),a.Ig!==(sB(),""))?1:0)|0)+((X(),a.Tm!==(sB(),""))?1:0)|0)+((X(),a.Bj!==(sB(),""))?1:0)|0)+((X(),a.Ri!==(sB(),"application/sparql-query"))?1:0)|0)+((X(),a.ml!==(sB(),"POST"))?1:0)|0)+((X(),a.ll!==(sB(),""))?1:0)|0)+((X(),a.Um!==(sB(),""))?1:0)|0)+((X(),a.Vm!==(sB(),""))?1:0)|0)+((X(),a.nl!==(sB(),""))?1:0)|0};e.$classData=v({W2:0},!1,"inrae.semantic_web.ConfigurationObject$Source$$anon$9",{W2:1,b:1,bb:1,ra:1});function wB(){} +wB.prototype=new t;wB.prototype.constructor=wB;e=wB.prototype;e.ta=function(a,b){return nP(this,a,b)};e.sa=function(){return X()};e.Xa=function(a,b){var c=X(),d=sB().CE;c=new yP(c,d);d=b.oi;var f=a.u(-1);a.j(f.n((X(),"sources"),-1));f=a.h();a.q(Y(c,f,d),-1);X();c=b.mg;xB();d=new QB((nB(),!0),(nB(),"warn"),(nB(),150),(nB(),10),(nB(),!1),(nB(),"http://urlProxy"));null!==c&&c.c(d)||(c=nB().BE,b=b.mg,d=a.u(-1),a.j(d.n((X(),"settings"),-1)),d=a.h(),a.q(Y(c,d,b),-1))}; +e.Ta=function(a){X();a=a.mg;xB();var b=new QB((nB(),!0),(nB(),"warn"),(nB(),150),(nB(),10),(nB(),!1),(nB(),"http://urlProxy"));return 1+(null!==a&&a.c(b)?0:1)|0};e.$classData=v({c3:0},!1,"inrae.semantic_web.ConfigurationObject$StatementConfigurationJson$$anon$12",{c3:1,b:1,bb:1,ra:1});function BB(){}BB.prototype=new t;BB.prototype.constructor=BB;e=BB.prototype;e.ta=function(a,b){return nP(this,a,b)};e.sa=function(){return X()}; +e.Xa=function(a,b){X();var c=b.dc;DB();var d=new UB(NB());if(null===c||!c.c(d)){c=OB().KE;d=b.dc;var f=a.u(-1);a.j(f.n((X(),"config"),-1));f=a.h();a.q(Y(c,f,d),-1)}X();c=b.eb;DB();Ki();d=QK().g();f=EF();Ki();var g=N(z().w,A());Ki();z();var h=A();h=Xb(A(),h);Ki();z();var k=A();k=Xb(A(),k);Ki();z();var n=A();n=Xb(A(),n);Ki();z();var r=A();r=Xb(A(),r);Ki();z();var u=A();u=Xb(A(),u);Ki();z();var w=A();w=Xb(A(),w);Ki();var y=N(z().w,A());Ki();L();var K=A();d=new uj(d,f,g,h,k,n,r,u,w,y,M(0,K));null!==c&& +c.c(d)||(c=Ki().kA,d=b.eb,f=a.u(-1),a.j(f.n((X(),"rootNode"),-1)),f=a.h(),a.q(Y(c,f,d),-1));X();c=b.yp;DB();d=E();null!==c&&c.c(d)||(c=X(),d=X().H,c=new BP(c,d),b=b.yp,d=a.u(-1),a.j(d.n((X(),"fn"),-1)),d=a.h(),a.q(Y(c,d,b),-1))}; +e.Ta=function(a){X();var b=a.dc;DB();var c=new UB(NB());b=null!==b&&b.c(c)?0:1;X();c=a.eb;DB();Ki();var d=QK().g(),f=EF();Ki();var g=N(z().w,A());Ki();z();var h=A();h=Xb(A(),h);Ki();z();var k=A();k=Xb(A(),k);Ki();z();var n=A();n=Xb(A(),n);Ki();z();var r=A();r=Xb(A(),r);Ki();z();var u=A();u=Xb(A(),u);Ki();z();var w=A();w=Xb(A(),w);Ki();var y=N(z().w,A());Ki();L();var K=A();d=new uj(d,f,g,h,k,n,r,u,w,y,M(0,K));c=null!==c&&c.c(d)?0:1;X();a=a.yp;DB();d=E();a=!(null!==a&&a.c(d));return(b+c|0)+(a?1:0)| +0};e.$classData=v({n3:0},!1,"inrae.semantic_web.SWDiscovery$$anon$3",{n3:1,b:1,bb:1,ra:1});function HB(){}HB.prototype=new t;HB.prototype.constructor=HB;e=HB.prototype;e.ta=function(a,b){return nP(this,a,b)};e.sa=function(){return X()}; +e.Xa=function(a,b){X();var c=b.Ab;IB();DB();var d=new UB(NB());DB();Ki();var f=QK().g(),g=EF();Ki();var h=N(z().w,A());Ki();z();var k=A();k=Xb(A(),k);Ki();z();var n=A();n=Xb(A(),n);Ki();z();var r=A();r=Xb(A(),r);Ki();z();var u=A();u=Xb(A(),u);Ki();z();var w=A();w=Xb(A(),w);Ki();z();var y=A();y=Xb(A(),y);Ki();var K=N(z().w,A());Ki();L();var U=A();d=new uQ(d,new uj(f,g,h,k,n,r,u,w,y,K,M(0,U)),(DB(),E()));null!==c&&c.c(d)||(c=DB().hw,b=b.Ab,d=a.u(-1),a.j(d.n((X(),"sw"),-1)),d=a.h(),a.q(Y(c,d,b),-1))}; +e.Ta=function(a){X();a=a.Ab;IB();DB();var b=new UB(NB());DB();Ki();var c=QK().g(),d=EF();Ki();var f=N(z().w,A());Ki();z();var g=A();g=Xb(A(),g);Ki();z();var h=A();h=Xb(A(),h);Ki();z();var k=A();k=Xb(A(),k);Ki();z();var n=A();n=Xb(A(),n);Ki();z();var r=A();r=Xb(A(),r);Ki();z();var u=A();u=Xb(A(),u);Ki();var w=N(z().w,A());Ki();L();var y=A();b=new uQ(b,new uj(c,d,f,g,h,k,n,r,u,w,M(0,y)),(DB(),E()));return null!==a&&a.c(b)?0:1}; +e.$classData=v({C3:0},!1,"inrae.semantic_web.SWTransaction$$anon$3",{C3:1,b:1,bb:1,ra:1});function MB(){}MB.prototype=new t;MB.prototype.constructor=MB;e=MB.prototype;e.ta=function(a,b){return nP(this,a,b)};e.sa=function(){return X()};e.Xa=function(a,b){X();var c=b.ve,d=NB();(null===c?null===d:c.c(d))||(c=xB().Fz,b=b.ve,d=a.u(-1),a.j(d.n((X(),"conf"),-1)),d=a.h(),a.q(Y(c,d,b),-1))};e.Ta=function(a){X();a=a.ve;var b=NB();return(null===a?null===b:a.c(b))?0:1}; +e.$classData=v({M3:0},!1,"inrae.semantic_web.StatementConfiguration$$anon$15",{M3:1,b:1,bb:1,ra:1});function vQ(){this.$E=this.ZE=this.Ap=null}vQ.prototype=new t;vQ.prototype.constructor=vQ;function wQ(){}e=wQ.prototype=vQ.prototype;e.sH=function(){return this.Ap};e.Vx=function(){return this.ZE};e.Ux=function(a){this.ZE=a};e.IH=function(){return this.$E};e.HH=function(a){this.$E=a}; +function xQ(){this.py=this.yr=null;this.Su=!1;this.oy=null;this.uc=0;this.na=null;this.wr=this.xr=0;this.wM=this.cF=this.dF=this.xM=this.Vz=this.bF=this.aF=this.eF=this.Sz=this.Tz=this.Xz=this.Uz=this.Wz=null;CL(this);yQ=this;var a=null!==this.na&&this.na.s()?this.na.p():"START";this.Wz=new rQ(this,this.uc,a);a=null!==this.na&&this.na.s()?this.na.p():"QUERY_BUILD";this.Uz=new rQ(this,this.uc,a);a=null!==this.na&&this.na.s()?this.na.p():"START_HTTP_REQUEST";this.Xz=new rQ(this,this.uc,a);a=null!== +this.na&&this.na.s()?this.na.p():"PROCESS_HTTP_REQUEST";this.Tz=new rQ(this,this.uc,a);a=null!==this.na&&this.na.s()?this.na.p():"FINISHED_HTTP_REQUEST";this.Sz=new rQ(this,this.uc,a);a=null!==this.na&&this.na.s()?this.na.p():"RESULTS_BUILD";this.eF=new rQ(this,this.uc,a);a=null!==this.na&&this.na.s()?this.na.p():"DATATYPE_BUILD";this.aF=new rQ(this,this.uc,a);a=null!==this.na&&this.na.s()?this.na.p():"DATATYPE_DONE";this.bF=new rQ(this,this.uc,a);a=null!==this.na&&this.na.s()?this.na.p():"RESULTS_DONE"; +this.Vz=new rQ(this,this.uc,a);a=null!==this.na&&this.na.s()?this.na.p():"REQUEST_DONE";this.xM=new rQ(this,this.uc,a);a=null!==this.na&&this.na.s()?this.na.p():"ERROR_REQUEST_DEFINITION";this.dF=new rQ(this,this.uc,a);a=null!==this.na&&this.na.s()?this.na.p():"ERROR_HTTP_REQUEST";this.cF=new rQ(this,this.uc,a);a=null!==this.na&&this.na.s()?this.na.p():"ABORTED_BY_THE_USER";this.wM=new rQ(this,this.uc,a)}xQ.prototype=new FL;xQ.prototype.constructor=xQ; +function xca(a,b){var c=a.Wz;if(null===c?null===b:c.c(b))return.1;c=a.Uz;if(null===c?null===b:c.c(b))return.2;c=a.eF;if(null===c?null===b:c.c(b))return.3;c=a.Xz;if(null===c?null===b:c.c(b))return.3;c=a.Tz;if(null===c?null===b:c.c(b))return.4;c=a.Sz;if(null===c?null===b:c.c(b))return.5;c=a.Vz;if(null===c?null===b:c.c(b))return.6;c=a.aF;if(null===c?null===b:c.c(b))return.7;a=a.bF;return(null===a?null===b:a.c(b))?.8:1} +xQ.prototype.$classData=v({a4:0},!1,"inrae.semantic_web.event.DiscoveryStateRequestEvent$",{a4:1,FI:1,b:1,d:1});var yQ;function qC(){yQ||(yQ=new xQ);return yQ}function wC(){}wC.prototype=new t;wC.prototype.constructor=wC;e=wC.prototype;e.ta=function(a,b){return nP(this,a,b)};e.sa=function(){return X()}; +e.Xa=function(a,b){var c=X().H,d=b.Us,f=a.u(-1);a.j(f.n((X(),"idRef"),-1));f=a.h();a.q(Y(c,f,d),-1);X();c=b.Bp;ei();d=N(z().w,A());(null===c?null===d:c.c(d))||(c=X(),d=Ui().fa,c=new yP(c,d),d=b.Bp,f=a.u(-1),a.j(f.n((X(),"children"),-1)),f=a.h(),a.q(Y(c,f,d),-1));X();c=b.Cp;ei();L();d=A();d=M(0,d);(null===c?null===d:c.c(d))||(c=X(),d=X().H,f=X().H,c=zQ(c,d,f),b=b.Cp,d=a.u(-1),a.j(d.n((X(),"decorations"),-1)),d=a.h(),a.q(Y(c,d,b),-1))}; +e.Ta=function(a){X();var b=a.Bp;ei();var c=N(z().w,A());b=(null===b?null===c:b.c(c))?0:1;X();a=a.Cp;ei();L();c=A();c=M(0,c);a=!(null===a?null===c:a.c(c));return(1+b|0)+(a?1:0)|0};e.$classData=v({i4:0},!1,"inrae.semantic_web.node.Abs$$anon$111",{i4:1,b:1,bb:1,ra:1});function GC(){}GC.prototype=new t;GC.prototype.constructor=GC;e=GC.prototype;e.ta=function(a,b){return nP(this,a,b)};e.sa=function(){return X()}; +e.Xa=function(a,b){var c=Nh().fA,d=b.Vs,f=a.u(-1);a.j(f.n((X(),"expression"),-1));f=a.h();a.q(Y(c,f,d),-1);c=X().H;d=b.D;f=a.u(-1);a.j(f.n((X(),"idRef"),-1));f=a.h();a.q(Y(c,f,d),-1);X();c=b.U;Ri();d=N(z().w,A());(null===c?null===d:c.c(d))||(c=X(),d=Ui().fa,c=new yP(c,d),d=b.U,f=a.u(-1),a.j(f.n((X(),"children"),-1)),f=a.h(),a.q(Y(c,f,d),-1));X();c=b.V;Ri();L();d=A();d=M(0,d);(null===c?null===d:c.c(d))||(c=X(),d=X().H,f=X().H,c=zQ(c,d,f),b=b.V,d=a.u(-1),a.j(d.n((X(),"decorations"),-1)),d=a.h(),a.q(Y(c, +d,b),-1))};e.Ta=function(a){X();var b=a.U;Ri();var c=N(z().w,A());b=(null===b?null===c:b.c(c))?0:1;X();a=a.V;Ri();L();c=A();c=M(0,c);a=!(null===a?null===c:a.c(c));return(2+b|0)+(a?1:0)|0};e.$classData=v({s4:0},!1,"inrae.semantic_web.node.Bind$$anon$99",{s4:1,b:1,bb:1,ra:1});function LC(){}LC.prototype=new t;LC.prototype.constructor=LC;e=LC.prototype;e.ta=function(a,b){return nP(this,a,b)};e.sa=function(){return X()}; +e.Xa=function(a,b){var c=X().H,d=b.Ws,f=a.u(-1);a.j(f.n((X(),"idRef"),-1));f=a.h();a.q(Y(c,f,d),-1);X();c=b.Dp;gi();d=N(z().w,A());(null===c?null===d:c.c(d))||(c=X(),d=Ui().fa,c=new yP(c,d),d=b.Dp,f=a.u(-1),a.j(f.n((X(),"children"),-1)),f=a.h(),a.q(Y(c,f,d),-1));X();c=b.Ep;gi();L();d=A();d=M(0,d);(null===c?null===d:c.c(d))||(c=X(),d=X().H,f=X().H,c=zQ(c,d,f),b=b.Ep,d=a.u(-1),a.j(d.n((X(),"decorations"),-1)),d=a.h(),a.q(Y(c,d,b),-1))}; +e.Ta=function(a){X();var b=a.Dp;gi();var c=N(z().w,A());b=(null===b?null===c:b.c(c))?0:1;X();a=a.Ep;gi();L();c=A();c=M(0,c);a=!(null===a?null===c:a.c(c));return(1+b|0)+(a?1:0)|0};e.$classData=v({B4:0},!1,"inrae.semantic_web.node.Ceil$$anon$117",{B4:1,b:1,bb:1,ra:1});function QC(){}QC.prototype=new t;QC.prototype.constructor=QC;e=QC.prototype;e.ta=function(a,b){return nP(this,a,b)};e.sa=function(){return X()}; +e.Xa=function(a,b){var c=Nk().mb,d=b.an,f=a.u(-1);a.j(f.n((X(),"value"),-1));f=a.h();a.q(Y(c,f,d),-1);c=X().rg;d=b.ba;f=a.u(-1);a.j(f.n((X(),"negation"),-1));f=a.h();a.q(Y(c,f,d),-1);c=X().H;d=b.Fp;f=a.u(-1);a.j(f.n((X(),"idRef"),-1));f=a.h();a.q(Y(c,f,d),-1);X();c=b.Zm;Uh();d=N(z().w,A());(null===c?null===d:c.c(d))||(c=X(),d=Ui().fa,c=new yP(c,d),d=b.Zm,f=a.u(-1),a.j(f.n((X(),"children"),-1)),f=a.h(),a.q(Y(c,f,d),-1));X();c=b.$m;Uh();L();d=A();d=M(0,d);(null===c?null===d:c.c(d))||(c=X(),d=X().H, +f=X().H,c=zQ(c,d,f),b=b.$m,d=a.u(-1),a.j(d.n((X(),"decorations"),-1)),d=a.h(),a.q(Y(c,d,b),-1))};e.Ta=function(a){X();var b=a.Zm;Uh();var c=N(z().w,A());b=(null===b?null===c:b.c(c))?0:1;X();a=a.$m;Uh();L();c=A();c=M(0,c);a=!(null===a?null===c:a.c(c));return(3+b|0)+(a?1:0)|0};e.$classData=v({L4:0},!1,"inrae.semantic_web.node.Contains$$anon$45",{L4:1,b:1,bb:1,ra:1});function VC(){}VC.prototype=new t;VC.prototype.constructor=VC;e=VC.prototype;e.ta=function(a,b){return nP(this,a,b)};e.sa=function(){return X()}; +e.Xa=function(a,b){var c=X(),d=bl().Ui;c=new yP(c,d);d=b.Hp;var f=a.u(-1);a.j(f.n((X(),"listVarToCount"),-1));f=a.h();a.q(Y(c,f,d),-1);if(X(),b.ol!==(Bh(),!1))c=X().rg,d=b.ol,f=a.u(-1),a.j(f.n((X(),"distinct"),-1)),f=a.h(),a.q(Y(c,f,d),-1);c=X().H;d=b.Gp;f=a.u(-1);a.j(f.n((X(),"idRef"),-1));f=a.h();a.q(Y(c,f,d),-1);X();c=b.bn;Bh();d=N(z().w,A());(null===c?null===d:c.c(d))||(c=X(),d=Ui().fa,c=new yP(c,d),d=b.bn,f=a.u(-1),a.j(f.n((X(),"children"),-1)),f=a.h(),a.q(Y(c,f,d),-1));X();c=b.cn;Bh();L();d= +A();d=M(0,d);(null===c?null===d:c.c(d))||(c=X(),d=X().H,f=X().H,c=zQ(c,d,f),b=b.cn,d=a.u(-1),a.j(d.n((X(),"decorations"),-1)),d=a.h(),a.q(Y(c,d,b),-1))};e.Ta=function(a){var b=(X(),a.ol!==(Bh(),!1))?1:0;X();var c=a.bn;Bh();var d=N(z().w,A());c=(null===c?null===d:c.c(d))?0:1;X();a=a.cn;Bh();L();d=A();d=M(0,d);a=!(null===a?null===d:a.c(d));return((2+b|0)+c|0)+(a?1:0)|0};e.$classData=v({V4:0},!1,"inrae.semantic_web.node.Count$$anon$132",{V4:1,b:1,bb:1,ra:1});function $C(){}$C.prototype=new t; +$C.prototype.constructor=$C;e=$C.prototype;e.ta=function(a,b){return nP(this,a,b)};e.sa=function(){return X()}; +e.Xa=function(a,b){var c=X().H,d=b.$s,f=a.u(-1);a.j(f.n((X(),"idRef"),-1));f=a.h();a.q(Y(c,f,d),-1);X();c=b.Ip;ri();d=N(z().w,A());(null===c?null===d:c.c(d))||(c=X(),d=Ui().fa,c=new yP(c,d),d=b.Ip,f=a.u(-1),a.j(f.n((X(),"children"),-1)),f=a.h(),a.q(Y(c,f,d),-1));X();c=b.Jp;ri();L();d=A();d=M(0,d);(null===c?null===d:c.c(d))||(c=X(),d=X().H,f=X().H,c=zQ(c,d,f),b=b.Jp,d=a.u(-1),a.j(d.n((X(),"decorations"),-1)),d=a.h(),a.q(Y(c,d,b),-1))}; +e.Ta=function(a){X();var b=a.Ip;ri();var c=N(z().w,A());b=(null===b?null===c:b.c(c))?0:1;X();a=a.Jp;ri();L();c=A();c=M(0,c);a=!(null===a?null===c:a.c(c));return(1+b|0)+(a?1:0)|0};e.$classData=v({c5:0},!1,"inrae.semantic_web.node.Datatype$$anon$126",{c5:1,b:1,bb:1,ra:1});function eD(){}eD.prototype=new t;eD.prototype.constructor=eD;e=eD.prototype;e.ta=function(a,b){return nP(this,a,b)};e.sa=function(){return X()}; +e.Xa=function(a,b){var c=X().H,d=b.pl,f=a.u(-1);a.j(f.n((X(),"refNode"),-1));f=a.h();a.q(Y(c,f,d),-1);c=Xi().pA;d=b.dn;f=a.u(-1);a.j(f.n((X(),"property"),-1));f=a.h();a.q(Y(c,f,d),-1);c=X().H;d=b.D;f=a.u(-1);a.j(f.n((X(),"idRef"),-1));f=a.h();a.q(Y(c,f,d),-1);X();c=b.U;Pi();d=N(z().w,A());(null===c?null===d:c.c(d))||(c=X(),d=Ui().fa,c=new yP(c,d),d=b.U,f=a.u(-1),a.j(f.n((X(),"children"),-1)),f=a.h(),a.q(Y(c,f,d),-1));X();c=b.V;Pi();L();d=A();d=M(0,d);(null===c?null===d:c.c(d))||(c=X(),d=X().H,f=X().H, +c=zQ(c,d,f),b=b.V,d=a.u(-1),a.j(d.n((X(),"decorations"),-1)),d=a.h(),a.q(Y(c,d,b),-1))};e.Ta=function(a){X();var b=a.U;Pi();var c=N(z().w,A());b=(null===b?null===c:b.c(c))?0:1;X();a=a.V;Pi();L();c=A();c=M(0,c);a=!(null===a?null===c:a.c(c));return(3+b|0)+(a?1:0)|0};e.$classData=v({m5:0},!1,"inrae.semantic_web.node.DatatypeNode$$anon$72",{m5:1,b:1,bb:1,ra:1});function jD(){}jD.prototype=new t;jD.prototype.constructor=jD;e=jD.prototype;e.ta=function(a,b){return nP(this,a,b)};e.sa=function(){return X()}; +e.Xa=function(a,b){var c=X().H,d=b.D,f=a.u(-1);a.j(f.n((X(),"idRef"),-1));f=a.h();a.q(Y(c,f,d),-1);X();c=b.Kp;hj();d=N(z().w,A());(null===c?null===d:c.c(d))||(c=X(),d=Ui().fa,c=new yP(c,d),d=b.Kp,f=a.u(-1),a.j(f.n((X(),"children"),-1)),f=a.h(),a.q(Y(c,f,d),-1));X();c=b.Lp;hj();L();d=A();d=M(0,d);(null===c?null===d:c.c(d))||(c=X(),d=X().H,f=X().H,c=zQ(c,d,f),b=b.Lp,d=a.u(-1),a.j(d.n((X(),"decorations"),-1)),d=a.h(),a.q(Y(c,d,b),-1))}; +e.Ta=function(a){X();var b=a.Kp;hj();var c=N(z().w,A());b=(null===b?null===c:b.c(c))?0:1;X();a=a.Lp;hj();L();c=A();c=M(0,c);a=!(null===a?null===c:a.c(c));return(1+b|0)+(a?1:0)|0};e.$classData=v({u5:0},!1,"inrae.semantic_web.node.Distinct$$anon$87",{u5:1,b:1,bb:1,ra:1});function oD(){}oD.prototype=new t;oD.prototype.constructor=oD;e=oD.prototype;e.ta=function(a,b){return nP(this,a,b)};e.sa=function(){return X()}; +e.Xa=function(a,b){var c=Nk().mb,d=b.gn,f=a.u(-1);a.j(f.n((X(),"value"),-1));f=a.h();a.q(Y(c,f,d),-1);c=X().rg;d=b.ba;f=a.u(-1);a.j(f.n((X(),"negation"),-1));f=a.h();a.q(Y(c,f,d),-1);c=X().H;d=b.Mp;f=a.u(-1);a.j(f.n((X(),"idRef"),-1));f=a.h();a.q(Y(c,f,d),-1);X();c=b.en;Xh();d=N(z().w,A());(null===c?null===d:c.c(d))||(c=X(),d=Ui().fa,c=new yP(c,d),d=b.en,f=a.u(-1),a.j(f.n((X(),"children"),-1)),f=a.h(),a.q(Y(c,f,d),-1));X();c=b.fn;Xh();L();d=A();d=M(0,d);(null===c?null===d:c.c(d))||(c=X(),d=X().H, +f=X().H,c=zQ(c,d,f),b=b.fn,d=a.u(-1),a.j(d.n((X(),"decorations"),-1)),d=a.h(),a.q(Y(c,d,b),-1))};e.Ta=function(a){X();var b=a.en;Xh();var c=N(z().w,A());b=(null===b?null===c:b.c(c))?0:1;X();a=a.fn;Xh();L();c=A();c=M(0,c);a=!(null===a?null===c:a.c(c));return(3+b|0)+(a?1:0)|0};e.$classData=v({E5:0},!1,"inrae.semantic_web.node.Equal$$anon$54",{E5:1,b:1,bb:1,ra:1});function xD(){}xD.prototype=new t;xD.prototype.constructor=xD;e=xD.prototype;e.ta=function(a,b){return nP(this,a,b)};e.sa=function(){return X()}; +e.Xa=function(a,b){var c=X().H,d=b.bt,f=a.u(-1);a.j(f.n((X(),"idRef"),-1));f=a.h();a.q(Y(c,f,d),-1);X();c=b.Np;hi();d=N(z().w,A());(null===c?null===d:c.c(d))||(c=X(),d=Ui().fa,c=new yP(c,d),d=b.Np,f=a.u(-1),a.j(f.n((X(),"children"),-1)),f=a.h(),a.q(Y(c,f,d),-1));X();c=b.Op;hi();L();d=A();d=M(0,d);(null===c?null===d:c.c(d))||(c=X(),d=X().H,f=X().H,c=zQ(c,d,f),b=b.Op,d=a.u(-1),a.j(d.n((X(),"decorations"),-1)),d=a.h(),a.q(Y(c,d,b),-1))}; +e.Ta=function(a){X();var b=a.Np;hi();var c=N(z().w,A());b=(null===b?null===c:b.c(c))?0:1;X();a=a.Op;hi();L();c=A();c=M(0,c);a=!(null===a?null===c:a.c(c));return(1+b|0)+(a?1:0)|0};e.$classData=v({O5:0},!1,"inrae.semantic_web.node.Floor$$anon$120",{O5:1,b:1,bb:1,ra:1});function CD(){}CD.prototype=new t;CD.prototype.constructor=CD;e=CD.prototype;e.ta=function(a,b){return nP(this,a,b)};e.sa=function(){return X()}; +e.Xa=function(a,b){var c=Nk().mb,d=b.nn,f=a.u(-1);a.j(f.n((X(),"value"),-1));f=a.h();a.q(Y(c,f,d),-1);c=X().rg;d=b.ba;f=a.u(-1);a.j(f.n((X(),"negation"),-1));f=a.h();a.q(Y(c,f,d),-1);c=X().H;d=b.Qp;f=a.u(-1);a.j(f.n((X(),"idRef"),-1));f=a.h();a.q(Y(c,f,d),-1);X();c=b.ln;Zh();d=N(z().w,A());(null===c?null===d:c.c(d))||(c=X(),d=Ui().fa,c=new yP(c,d),d=b.ln,f=a.u(-1),a.j(f.n((X(),"children"),-1)),f=a.h(),a.q(Y(c,f,d),-1));X();c=b.mn;Zh();L();d=A();d=M(0,d);(null===c?null===d:c.c(d))||(c=X(),d=X().H, +f=X().H,c=zQ(c,d,f),b=b.mn,d=a.u(-1),a.j(d.n((X(),"decorations"),-1)),d=a.h(),a.q(Y(c,d,b),-1))};e.Ta=function(a){X();var b=a.ln;Zh();var c=N(z().w,A());b=(null===b?null===c:b.c(c))?0:1;X();a=a.mn;Zh();L();c=A();c=M(0,c);a=!(null===a?null===c:a.c(c));return(3+b|0)+(a?1:0)|0};e.$classData=v({b6:0},!1,"inrae.semantic_web.node.Inf$$anon$60",{b6:1,b:1,bb:1,ra:1});function HD(){}HD.prototype=new t;HD.prototype.constructor=HD;e=HD.prototype;e.ta=function(a,b){return nP(this,a,b)};e.sa=function(){return X()}; +e.Xa=function(a,b){var c=Nk().mb,d=b.kn,f=a.u(-1);a.j(f.n((X(),"value"),-1));f=a.h();a.q(Y(c,f,d),-1);c=X().rg;d=b.ba;f=a.u(-1);a.j(f.n((X(),"negation"),-1));f=a.h();a.q(Y(c,f,d),-1);c=X().H;d=b.Pp;f=a.u(-1);a.j(f.n((X(),"idRef"),-1));f=a.h();a.q(Y(c,f,d),-1);X();c=b.hn;$h();d=N(z().w,A());(null===c?null===d:c.c(d))||(c=X(),d=Ui().fa,c=new yP(c,d),d=b.hn,f=a.u(-1),a.j(f.n((X(),"children"),-1)),f=a.h(),a.q(Y(c,f,d),-1));X();c=b.jn;$h();L();d=A();d=M(0,d);(null===c?null===d:c.c(d))||(c=X(),d=X().H, +f=X().H,c=zQ(c,d,f),b=b.jn,d=a.u(-1),a.j(d.n((X(),"decorations"),-1)),d=a.h(),a.q(Y(c,d,b),-1))};e.Ta=function(a){X();var b=a.hn;$h();var c=N(z().w,A());b=(null===b?null===c:b.c(c))?0:1;X();a=a.jn;$h();L();c=A();c=M(0,c);a=!(null===a?null===c:a.c(c));return(3+b|0)+(a?1:0)|0};e.$classData=v({l6:0},!1,"inrae.semantic_web.node.InfEqual$$anon$63",{l6:1,b:1,bb:1,ra:1});function MD(){}MD.prototype=new t;MD.prototype.constructor=MD;e=MD.prototype;e.ta=function(a,b){return nP(this,a,b)};e.sa=function(){return X()}; +e.Xa=function(a,b){var c=Nk().mb,d=b.gt,f=a.u(-1);a.j(f.n((X(),"term"),-1));f=a.h();a.q(Y(c,f,d),-1);c=X().H;d=b.ft;f=a.u(-1);a.j(f.n((X(),"idRef"),-1));f=a.h();a.q(Y(c,f,d),-1);X();c=b.Up;Hh();d=N(z().w,A());(null===c?null===d:c.c(d))||(c=X(),d=Ui().fa,c=new yP(c,d),d=b.Up,f=a.u(-1),a.j(f.n((X(),"children"),-1)),f=a.h(),a.q(Y(c,f,d),-1));X();c=b.Vp;Hh();L();d=A();d=M(0,d);(null===c?null===d:c.c(d))||(c=X(),d=X().H,f=X().H,c=zQ(c,d,f),b=b.Vp,d=a.u(-1),a.j(d.n((X(),"decorations"),-1)),d=a.h(),a.q(Y(c, +d,b),-1))};e.Ta=function(a){X();var b=a.Up;Hh();var c=N(z().w,A());b=(null===b?null===c:b.c(c))?0:1;X();a=a.Vp;Hh();L();c=A();c=M(0,c);a=!(null===a?null===c:a.c(c));return(2+b|0)+(a?1:0)|0};e.$classData=v({u6:0},!1,"inrae.semantic_web.node.Lang$$anon$138",{u6:1,b:1,bb:1,ra:1});function RD(){}RD.prototype=new t;RD.prototype.constructor=RD;e=RD.prototype;e.ta=function(a,b){return nP(this,a,b)};e.sa=function(){return X()}; +e.Xa=function(a,b){var c=Nk().mb,d=b.Tp,f=a.u(-1);a.j(f.n((X(),"term"),-1));f=a.h();a.q(Y(c,f,d),-1);c=X().H;d=b.et;f=a.u(-1);a.j(f.n((X(),"idRef"),-1));f=a.h();a.q(Y(c,f,d),-1);X();c=b.Rp;Ih();d=N(z().w,A());(null===c?null===d:c.c(d))||(c=X(),d=Ui().fa,c=new yP(c,d),d=b.Rp,f=a.u(-1),a.j(f.n((X(),"children"),-1)),f=a.h(),a.q(Y(c,f,d),-1));X();c=b.Sp;Ih();L();d=A();d=M(0,d);(null===c?null===d:c.c(d))||(c=X(),d=X().H,f=X().H,c=zQ(c,d,f),b=b.Sp,d=a.u(-1),a.j(d.n((X(),"decorations"),-1)),d=a.h(),a.q(Y(c, +d,b),-1))};e.Ta=function(a){X();var b=a.Rp;Ih();var c=N(z().w,A());b=(null===b?null===c:b.c(c))?0:1;X();a=a.Sp;Ih();L();c=A();c=M(0,c);a=!(null===a?null===c:a.c(c));return(2+b|0)+(a?1:0)|0};e.$classData=v({D6:0},!1,"inrae.semantic_web.node.LangMatches$$anon$141",{D6:1,b:1,bb:1,ra:1});function WD(){}WD.prototype=new t;WD.prototype.constructor=WD;e=WD.prototype;e.ta=function(a,b){return nP(this,a,b)};e.sa=function(){return X()}; +e.Xa=function(a,b){var c=X().ux,d=b.rn,f=a.u(-1);a.j(f.n((X(),"value"),-1));f=a.h();a.q(Y(c,f,d),-1);c=X().H;d=b.D;f=a.u(-1);a.j(f.n((X(),"idRef"),-1));f=a.h();a.q(Y(c,f,d),-1);X();c=b.pn;kj();d=N(z().w,A());(null===c?null===d:c.c(d))||(c=X(),d=Ui().fa,c=new yP(c,d),d=b.pn,f=a.u(-1),a.j(f.n((X(),"children"),-1)),f=a.h(),a.q(Y(c,f,d),-1));X();c=b.qn;kj();L();d=A();d=M(0,d);(null===c?null===d:c.c(d))||(c=X(),d=X().H,f=X().H,c=zQ(c,d,f),b=b.qn,d=a.u(-1),a.j(d.n((X(),"decorations"),-1)),d=a.h(),a.q(Y(c, +d,b),-1))};e.Ta=function(a){X();var b=a.pn;kj();var c=N(z().w,A());b=(null===b?null===c:b.c(c))?0:1;X();a=a.qn;kj();L();c=A();c=M(0,c);a=!(null===a?null===c:a.c(c));return(2+b|0)+(a?1:0)|0};e.$classData=v({M6:0},!1,"inrae.semantic_web.node.Limit$$anon$96",{M6:1,b:1,bb:1,ra:1});function aE(){}aE.prototype=new t;aE.prototype.constructor=aE;e=aE.prototype;e.ta=function(a,b){return nP(this,a,b)};e.sa=function(){return X()}; +e.Xa=function(a,b){var c=X().H,d=b.Kc,f=a.u(-1);a.j(f.n((X(),"idRef"),-1));f=a.h();a.q(Y(c,f,d),-1);c=Nk().mb;d=b.Ad;f=a.u(-1);a.j(f.n((X(),"term"),-1));f=a.h();a.q(Y(c,f,d),-1);X();c=b.Ic;$i();d=N(z().w,A());(null===c?null===d:c.c(d))||(c=X(),d=Ui().fa,c=new yP(c,d),d=b.Ic,f=a.u(-1),a.j(f.n((X(),"children"),-1)),f=a.h(),a.q(Y(c,f,d),-1));X();c=b.Jc;$i();L();d=A();d=M(0,d);(null===c?null===d:c.c(d))||(c=X(),d=X().H,f=X().H,c=zQ(c,d,f),b=b.Jc,d=a.u(-1),a.j(d.n((X(),"decorations"),-1)),d=a.h(),a.q(Y(c, +d,b),-1))};e.Ta=function(a){X();var b=a.Ic;$i();var c=N(z().w,A());b=(null===b?null===c:b.c(c))?0:1;X();a=a.Jc;$i();L();c=A();c=M(0,c);a=!(null===a?null===c:a.c(c));return(2+b|0)+(a?1:0)|0};e.$classData=v({V6:0},!1,"inrae.semantic_web.node.LinkFrom$$anon$18",{V6:1,b:1,bb:1,ra:1});function gE(){}gE.prototype=new t;gE.prototype.constructor=gE;e=gE.prototype;e.ta=function(a,b){return nP(this,a,b)};e.sa=function(){return X()}; +e.Xa=function(a,b){var c=X().H,d=b.Kc,f=a.u(-1);a.j(f.n((X(),"idRef"),-1));f=a.h();a.q(Y(c,f,d),-1);c=Nk().mb;d=b.Ad;f=a.u(-1);a.j(f.n((X(),"term"),-1));f=a.h();a.q(Y(c,f,d),-1);X();c=b.Ic;Zi();d=N(z().w,A());(null===c?null===d:c.c(d))||(c=X(),d=Ui().fa,c=new yP(c,d),d=b.Ic,f=a.u(-1),a.j(f.n((X(),"children"),-1)),f=a.h(),a.q(Y(c,f,d),-1));X();c=b.Jc;Zi();L();d=A();d=M(0,d);(null===c?null===d:c.c(d))||(c=X(),d=X().H,f=X().H,c=zQ(c,d,f),b=b.Jc,d=a.u(-1),a.j(d.n((X(),"decorations"),-1)),d=a.h(),a.q(Y(c, +d,b),-1))};e.Ta=function(a){X();var b=a.Ic;Zi();var c=N(z().w,A());b=(null===b?null===c:b.c(c))?0:1;X();a=a.Jc;Zi();L();c=A();c=M(0,c);a=!(null===a?null===c:a.c(c));return(2+b|0)+(a?1:0)|0};e.$classData=v({d7:0},!1,"inrae.semantic_web.node.LinkTo$$anon$15",{d7:1,b:1,bb:1,ra:1});function lE(){}lE.prototype=new t;lE.prototype.constructor=lE;e=lE.prototype;e.ta=function(a,b){return nP(this,a,b)};e.sa=function(){return X()}; +e.Xa=function(a,b){var c=X(),d=Nk().mb;c=new yP(c,d);d=b.Wp;var f=a.u(-1);a.j(f.n((X(),"terms"),-1));f=a.h();a.q(Y(c,f,d),-1);if(X(),b.D!==(Oi(),QK().g()))c=X().H,d=b.D,f=a.u(-1),a.j(f.n((X(),"idRef"),-1)),f=a.h(),a.q(Y(c,f,d),-1);X();c=b.U;Oi();d=N(z().w,A());(null===c?null===d:c.c(d))||(c=X(),d=Ui().fa,c=new yP(c,d),d=b.U,f=a.u(-1),a.j(f.n((X(),"children"),-1)),f=a.h(),a.q(Y(c,f,d),-1));X();c=b.V;Oi();L();d=A();d=M(0,d);(null===c?null===d:c.c(d))||(c=X(),d=X().H,f=X().H,c=zQ(c,d,f),b=b.V,d=a.u(-1), +a.j(d.n((X(),"decorations"),-1)),d=a.h(),a.q(Y(c,d,b),-1))};e.Ta=function(a){var b=(X(),a.D!==(Oi(),QK().g()))?1:0;X();var c=a.U;Oi();var d=N(z().w,A());c=(null===c?null===d:c.c(d))?0:1;X();a=a.V;Oi();L();d=A();d=M(0,d);a=!(null===a?null===d:a.c(d));return((1+b|0)+c|0)+(a?1:0)|0};e.$classData=v({m7:0},!1,"inrae.semantic_web.node.ListValues$$anon$24",{m7:1,b:1,bb:1,ra:1});function tE(){}tE.prototype=new t;tE.prototype.constructor=tE;e=tE.prototype;e.ta=function(a,b){return nP(this,a,b)};e.sa=function(){return X()}; +e.Xa=function(a,b){var c=X().H,d=b.D,f=a.u(-1);a.j(f.n((X(),"idRef"),-1));f=a.h();a.q(Y(c,f,d),-1);c=Ui().fa;d=b.Rh;f=a.u(-1);a.j(f.n((X(),"s"),-1));f=a.h();a.q(Y(c,f,d),-1);X();c=b.Xp;vi();d=N(z().w,A());(null===c?null===d:c.c(d))||(c=X(),d=Ui().fa,c=new yP(c,d),d=b.Xp,f=a.u(-1),a.j(f.n((X(),"children"),-1)),f=a.h(),a.q(Y(c,f,d),-1));X();c=b.Yp;vi();L();d=A();d=M(0,d);(null===c?null===d:c.c(d))||(c=X(),d=X().H,f=X().H,c=zQ(c,d,f),b=b.Yp,d=a.u(-1),a.j(d.n((X(),"decorations"),-1)),d=a.h(),a.q(Y(c, +d,b),-1))};e.Ta=function(a){X();var b=a.Xp;vi();var c=N(z().w,A());b=(null===b?null===c:b.c(c))?0:1;X();a=a.Yp;vi();L();c=A();c=M(0,c);a=!(null===a?null===c:a.c(c));return(2+b|0)+(a?1:0)|0};e.$classData=v({y7:0},!1,"inrae.semantic_web.node.NotBlock$$anon$30",{y7:1,b:1,bb:1,ra:1});function yE(){}yE.prototype=new t;yE.prototype.constructor=yE;e=yE.prototype;e.ta=function(a,b){return nP(this,a,b)};e.sa=function(){return X()}; +e.Xa=function(a,b){var c=Nk().mb,d=b.un,f=a.u(-1);a.j(f.n((X(),"value"),-1));f=a.h();a.q(Y(c,f,d),-1);c=X().rg;d=b.ba;f=a.u(-1);a.j(f.n((X(),"negation"),-1));f=a.h();a.q(Y(c,f,d),-1);c=X().H;d=b.Zp;f=a.u(-1);a.j(f.n((X(),"idRef"),-1));f=a.h();a.q(Y(c,f,d),-1);X();c=b.sn;Yh();d=N(z().w,A());(null===c?null===d:c.c(d))||(c=X(),d=Ui().fa,c=new yP(c,d),d=b.sn,f=a.u(-1),a.j(f.n((X(),"children"),-1)),f=a.h(),a.q(Y(c,f,d),-1));X();c=b.tn;Yh();L();d=A();d=M(0,d);(null===c?null===d:c.c(d))||(c=X(),d=X().H, +f=X().H,c=zQ(c,d,f),b=b.tn,d=a.u(-1),a.j(d.n((X(),"decorations"),-1)),d=a.h(),a.q(Y(c,d,b),-1))};e.Ta=function(a){X();var b=a.sn;Yh();var c=N(z().w,A());b=(null===b?null===c:b.c(c))?0:1;X();a=a.tn;Yh();L();c=A();c=M(0,c);a=!(null===a?null===c:a.c(c));return(3+b|0)+(a?1:0)|0};e.$classData=v({I7:0},!1,"inrae.semantic_web.node.NotEqual$$anon$57",{I7:1,b:1,bb:1,ra:1});function DE(){}DE.prototype=new t;DE.prototype.constructor=DE;e=DE.prototype;e.ta=function(a,b){return nP(this,a,b)};e.sa=function(){return X()}; +e.Xa=function(a,b){var c=X().H,d=b.Kc,f=a.u(-1);a.j(f.n((X(),"idRef"),-1));f=a.h();a.q(Y(c,f,d),-1);c=Nk().mb;d=b.Ad;f=a.u(-1);a.j(f.n((X(),"term"),-1));f=a.h();a.q(Y(c,f,d),-1);X();c=b.Ic;Yi();d=N(z().w,A());(null===c?null===d:c.c(d))||(c=X(),d=Ui().fa,c=new yP(c,d),d=b.Ic,f=a.u(-1),a.j(f.n((X(),"children"),-1)),f=a.h(),a.q(Y(c,f,d),-1));X();c=b.Jc;Yi();L();d=A();d=M(0,d);(null===c?null===d:c.c(d))||(c=X(),d=X().H,f=X().H,c=zQ(c,d,f),b=b.Jc,d=a.u(-1),a.j(d.n((X(),"decorations"),-1)),d=a.h(),a.q(Y(c, +d,b),-1))};e.Ta=function(a){X();var b=a.Ic;Yi();var c=N(z().w,A());b=(null===b?null===c:b.c(c))?0:1;X();a=a.Jc;Yi();L();c=A();c=M(0,c);a=!(null===a?null===c:a.c(c));return(2+b|0)+(a?1:0)|0};e.$classData=v({R7:0},!1,"inrae.semantic_web.node.ObjectOf$$anon$12",{R7:1,b:1,bb:1,ra:1});function IE(){}IE.prototype=new t;IE.prototype.constructor=IE;e=IE.prototype;e.ta=function(a,b){return nP(this,a,b)};e.sa=function(){return X()}; +e.Xa=function(a,b){var c=X().ux,d=b.xn,f=a.u(-1);a.j(f.n((X(),"value"),-1));f=a.h();a.q(Y(c,f,d),-1);c=X().H;d=b.D;f=a.u(-1);a.j(f.n((X(),"idRef"),-1));f=a.h();a.q(Y(c,f,d),-1);X();c=b.vn;jj();d=N(z().w,A());(null===c?null===d:c.c(d))||(c=X(),d=Ui().fa,c=new yP(c,d),d=b.vn,f=a.u(-1),a.j(f.n((X(),"children"),-1)),f=a.h(),a.q(Y(c,f,d),-1));X();c=b.wn;jj();L();d=A();d=M(0,d);(null===c?null===d:c.c(d))||(c=X(),d=X().H,f=X().H,c=zQ(c,d,f),b=b.wn,d=a.u(-1),a.j(d.n((X(),"decorations"),-1)),d=a.h(),a.q(Y(c, +d,b),-1))};e.Ta=function(a){X();var b=a.vn;jj();var c=N(z().w,A());b=(null===b?null===c:b.c(c))?0:1;X();a=a.wn;jj();L();c=A();c=M(0,c);a=!(null===a?null===c:a.c(c));return(2+b|0)+(a?1:0)|0};e.$classData=v({$7:0},!1,"inrae.semantic_web.node.Offset$$anon$93",{$7:1,b:1,bb:1,ra:1});function NE(){}NE.prototype=new t;NE.prototype.constructor=NE;e=NE.prototype;e.ta=function(a,b){return nP(this,a,b)};e.sa=function(){return X()}; +e.Xa=function(a,b){var c=X(),d=bl().Ui;c=new yP(c,d);d=b.bq;var f=a.u(-1);a.j(f.n((X(),"list"),-1));f=a.h();a.q(Y(c,f,d),-1);c=X().H;d=b.D;f=a.u(-1);a.j(f.n((X(),"idRef"),-1));f=a.h();a.q(Y(c,f,d),-1);X();c=b.$p;cj();d=N(z().w,A());(null===c?null===d:c.c(d))||(c=X(),d=Ui().fa,c=new yP(c,d),d=b.$p,f=a.u(-1),a.j(f.n((X(),"children"),-1)),f=a.h(),a.q(Y(c,f,d),-1));X();c=b.aq;cj();L();d=A();d=M(0,d);(null===c?null===d:c.c(d))||(c=X(),d=X().H,f=X().H,c=zQ(c,d,f),b=b.aq,d=a.u(-1),a.j(d.n((X(),"decorations"), +-1)),d=a.h(),a.q(Y(c,d,b),-1))};e.Ta=function(a){X();var b=a.$p;cj();var c=N(z().w,A());b=(null===b?null===c:b.c(c))?0:1;X();a=a.aq;cj();L();c=A();c=M(0,c);a=!(null===a?null===c:a.c(c));return(2+b|0)+(a?1:0)|0};e.$classData=v({i8:0},!1,"inrae.semantic_web.node.OrderByAsc$$anon$78",{i8:1,b:1,bb:1,ra:1});function SE(){}SE.prototype=new t;SE.prototype.constructor=SE;e=SE.prototype;e.ta=function(a,b){return nP(this,a,b)};e.sa=function(){return X()}; +e.Xa=function(a,b){var c=X(),d=bl().Ui;c=new yP(c,d);d=b.eq;var f=a.u(-1);a.j(f.n((X(),"list"),-1));f=a.h();a.q(Y(c,f,d),-1);c=X().H;d=b.D;f=a.u(-1);a.j(f.n((X(),"idRef"),-1));f=a.h();a.q(Y(c,f,d),-1);X();c=b.cq;dj();d=N(z().w,A());(null===c?null===d:c.c(d))||(c=X(),d=Ui().fa,c=new yP(c,d),d=b.cq,f=a.u(-1),a.j(f.n((X(),"children"),-1)),f=a.h(),a.q(Y(c,f,d),-1));X();c=b.dq;dj();L();d=A();d=M(0,d);(null===c?null===d:c.c(d))||(c=X(),d=X().H,f=X().H,c=zQ(c,d,f),b=b.dq,d=a.u(-1),a.j(d.n((X(),"decorations"), +-1)),d=a.h(),a.q(Y(c,d,b),-1))};e.Ta=function(a){X();var b=a.cq;dj();var c=N(z().w,A());b=(null===b?null===c:b.c(c))?0:1;X();a=a.dq;dj();L();c=A();c=M(0,c);a=!(null===a?null===c:a.c(c));return(2+b|0)+(a?1:0)|0};e.$classData=v({r8:0},!1,"inrae.semantic_web.node.OrderByDesc$$anon$81",{r8:1,b:1,bb:1,ra:1});function AQ(a,b,c,d){a.Qe=b;a.Ie=c;a.Je=d;wi(a,b,c,d)}function BQ(){this.Je=this.Ie=this.Qe=this.V=this.U=this.D=null}BQ.prototype=new rD;BQ.prototype.constructor=BQ;function CQ(){}CQ.prototype=BQ.prototype; +function XE(){}XE.prototype=new t;XE.prototype.constructor=XE;e=XE.prototype;e.ta=function(a,b){return nP(this,a,b)};e.sa=function(){return X()}; +e.Xa=function(a,b){var c=X(),d=bl().Ui;c=new yP(c,d);d=b.Fj;var f=a.u(-1);a.j(f.n((X(),"variables"),-1));f=a.h();a.q(Y(c,f,d),-1);c=X().H;d=b.D;f=a.u(-1);a.j(f.n((X(),"idRef"),-1));f=a.h();a.q(Y(c,f,d),-1);X();c=b.ql;gj();d=N(z().w,A());(null===c?null===d:c.c(d))||(c=X(),d=Ui().fa,c=new yP(c,d),d=b.ql,f=a.u(-1),a.j(f.n((X(),"children"),-1)),f=a.h(),a.q(Y(c,f,d),-1));X();c=b.yn;gj();L();d=A();d=M(0,d);(null===c?null===d:c.c(d))||(c=X(),d=X().H,f=X().H,c=zQ(c,d,f),b=b.yn,d=a.u(-1),a.j(d.n((X(),"decorations"), +-1)),d=a.h(),a.q(Y(c,d,b),-1))};e.Ta=function(a){X();var b=a.ql;gj();var c=N(z().w,A());b=(null===b?null===c:b.c(c))?0:1;X();a=a.yn;gj();L();c=A();c=M(0,c);a=!(null===a?null===c:a.c(c));return(2+b|0)+(a?1:0)|0};e.$classData=v({B8:0},!1,"inrae.semantic_web.node.Projection$$anon$84",{B8:1,b:1,bb:1,ra:1});function bF(){}bF.prototype=new t;bF.prototype.constructor=bF;e=bF.prototype;e.ta=function(a,b){return nP(this,a,b)};e.sa=function(){return X()}; +e.Xa=function(a,b){var c=bl().Ui,d=b.kt,f=a.u(-1);a.j(f.n((X(),"var"),-1));f=a.h();a.q(Y(c,f,d),-1);c=Dh().$z;d=b.jt;f=a.u(-1);a.j(f.n((X(),"expression"),-1));f=a.h();a.q(Y(c,f,d),-1);c=X().H;d=b.D;f=a.u(-1);a.j(f.n((X(),"idRef"),-1));f=a.h();a.q(Y(c,f,d),-1);X();c=b.U;Ti();d=N(z().w,A());(null===c?null===d:c.c(d))||(c=X(),d=Ui().fa,c=new yP(c,d),d=b.U,f=a.u(-1),a.j(f.n((X(),"children"),-1)),f=a.h(),a.q(Y(c,f,d),-1));X();c=b.V;Ti();L();d=A();d=M(0,d);(null===c?null===d:c.c(d))||(c=X(),d=X().H,f=X().H, +c=zQ(c,d,f),b=b.V,d=a.u(-1),a.j(d.n((X(),"decorations"),-1)),d=a.h(),a.q(Y(c,d,b),-1))};e.Ta=function(a){X();var b=a.U;Ti();var c=N(z().w,A());b=(null===b?null===c:b.c(c))?0:1;X();a=a.V;Ti();L();c=A();c=M(0,c);a=!(null===a?null===c:a.c(c));return(3+b|0)+(a?1:0)|0};e.$classData=v({L8:0},!1,"inrae.semantic_web.node.ProjectionExpression$$anon$129",{L8:1,b:1,bb:1,ra:1});function gF(){}gF.prototype=new t;gF.prototype.constructor=gF;e=gF.prototype;e.ta=function(a,b){return nP(this,a,b)};e.sa=function(){return X()}; +e.Xa=function(a,b){var c=X().H,d=b.lt,f=a.u(-1);a.j(f.n((X(),"idRef"),-1));f=a.h();a.q(Y(c,f,d),-1);X();c=b.fq;ii();d=N(z().w,A());(null===c?null===d:c.c(d))||(c=X(),d=Ui().fa,c=new yP(c,d),d=b.fq,f=a.u(-1),a.j(f.n((X(),"children"),-1)),f=a.h(),a.q(Y(c,f,d),-1));X();c=b.gq;ii();L();d=A();d=M(0,d);(null===c?null===d:c.c(d))||(c=X(),d=X().H,f=X().H,c=zQ(c,d,f),b=b.gq,d=a.u(-1),a.j(d.n((X(),"decorations"),-1)),d=a.h(),a.q(Y(c,d,b),-1))}; +e.Ta=function(a){X();var b=a.fq;ii();var c=N(z().w,A());b=(null===b?null===c:b.c(c))?0:1;X();a=a.gq;ii();L();c=A();c=M(0,c);a=!(null===a?null===c:a.c(c));return(1+b|0)+(a?1:0)|0};e.$classData=v({T8:0},!1,"inrae.semantic_web.node.Rand$$anon$123",{T8:1,b:1,bb:1,ra:1});function nF(){}nF.prototype=new t;nF.prototype.constructor=nF;e=nF.prototype;e.ta=function(a,b){return nP(this,a,b)};e.sa=function(){return X()}; +e.Xa=function(a,b){var c=X().H,d=b.D,f=a.u(-1);a.j(f.n((X(),"idRef"),-1));f=a.h();a.q(Y(c,f,d),-1);X();c=b.hq;ij();d=N(z().w,A());(null===c?null===d:c.c(d))||(c=X(),d=Ui().fa,c=new yP(c,d),d=b.hq,f=a.u(-1),a.j(f.n((X(),"children"),-1)),f=a.h(),a.q(Y(c,f,d),-1));X();c=b.iq;ij();L();d=A();d=M(0,d);(null===c?null===d:c.c(d))||(c=X(),d=X().H,f=X().H,c=zQ(c,d,f),b=b.iq,d=a.u(-1),a.j(d.n((X(),"decorations"),-1)),d=a.h(),a.q(Y(c,d,b),-1))}; +e.Ta=function(a){X();var b=a.hq;ij();var c=N(z().w,A());b=(null===b?null===c:b.c(c))?0:1;X();a=a.iq;ij();L();c=A();c=M(0,c);a=!(null===a?null===c:a.c(c));return(1+b|0)+(a?1:0)|0};e.$classData=v({b9:0},!1,"inrae.semantic_web.node.Reduced$$anon$90",{b9:1,b:1,bb:1,ra:1});function sF(){}sF.prototype=new t;sF.prototype.constructor=sF;e=sF.prototype;e.ta=function(a,b){return nP(this,a,b)};e.sa=function(){return X()}; +e.Xa=function(a,b){var c=Nk().mb,d=b.mq,f=a.u(-1);a.j(f.n((X(),"pattern"),-1));f=a.h();a.q(Y(c,f,d),-1);c=Nk().mb;d=b.kq;f=a.u(-1);a.j(f.n((X(),"flags"),-1));f=a.h();a.q(Y(c,f,d),-1);c=X().rg;d=b.ba;f=a.u(-1);a.j(f.n((X(),"negation"),-1));f=a.h();a.q(Y(c,f,d),-1);c=X().H;d=b.lq;f=a.u(-1);a.j(f.n((X(),"idRef"),-1));f=a.h();a.q(Y(c,f,d),-1);X();c=b.zn;Th();d=N(z().w,A());(null===c?null===d:c.c(d))||(c=X(),d=Ui().fa,c=new yP(c,d),d=b.zn,f=a.u(-1),a.j(f.n((X(),"children"),-1)),f=a.h(),a.q(Y(c,f,d),-1)); +X();c=b.An;Th();L();d=A();d=M(0,d);(null===c?null===d:c.c(d))||(c=X(),d=X().H,f=X().H,c=zQ(c,d,f),b=b.An,d=a.u(-1),a.j(d.n((X(),"decorations"),-1)),d=a.h(),a.q(Y(c,d,b),-1))};e.Ta=function(a){X();var b=a.zn;Th();var c=N(z().w,A());b=(null===b?null===c:b.c(c))?0:1;X();a=a.An;Th();L();c=A();c=M(0,c);a=!(null===a?null===c:a.c(c));return(4+b|0)+(a?1:0)|0};e.$classData=v({m9:0},!1,"inrae.semantic_web.node.Regex$$anon$42",{m9:1,b:1,bb:1,ra:1});function xF(){}xF.prototype=new t; +xF.prototype.constructor=xF;e=xF.prototype;e.ta=function(a,b){return nP(this,a,b)};e.sa=function(){return X()}; +e.Xa=function(a,b){var c=Nk().mb,d=b.pt,f=a.u(-1);a.j(f.n((X(),"pattern"),-1));f=a.h();a.q(Y(c,f,d),-1);c=Nk().mb;d=b.qt;f=a.u(-1);a.j(f.n((X(),"replacement"),-1));f=a.h();a.q(Y(c,f,d),-1);c=Nk().mb;d=b.nt;f=a.u(-1);a.j(f.n((X(),"flags"),-1));f=a.h();a.q(Y(c,f,d),-1);c=X().H;d=b.ot;f=a.u(-1);a.j(f.n((X(),"idRef"),-1));f=a.h();a.q(Y(c,f,d),-1);X();c=b.oq;mi();d=N(z().w,A());(null===c?null===d:c.c(d))||(c=X(),d=Ui().fa,c=new yP(c,d),d=b.oq,f=a.u(-1),a.j(f.n((X(),"children"),-1)),f=a.h(),a.q(Y(c,f,d), +-1));X();c=b.pq;mi();L();d=A();d=M(0,d);(null===c?null===d:c.c(d))||(c=X(),d=X().H,f=X().H,c=zQ(c,d,f),b=b.pq,d=a.u(-1),a.j(d.n((X(),"decorations"),-1)),d=a.h(),a.q(Y(c,d,b),-1))};e.Ta=function(a){X();var b=a.oq;mi();var c=N(z().w,A());b=(null===b?null===c:b.c(c))?0:1;X();a=a.pq;mi();L();c=A();c=M(0,c);a=!(null===a?null===c:a.c(c));return(4+b|0)+(a?1:0)|0};e.$classData=v({x9:0},!1,"inrae.semantic_web.node.Replace$$anon$108",{x9:1,b:1,bb:1,ra:1});function CF(){}CF.prototype=new t; +CF.prototype.constructor=CF;e=CF.prototype;e.ta=function(a,b){return nP(this,a,b)};e.sa=function(){return X()}; +e.Xa=function(a,b){if(X(),b.D!==(Ki(),QK().g())){var c=X().H,d=b.D,f=a.u(-1);a.j(f.n((X(),"idRef"),-1));f=a.h();a.q(Y(c,f,d),-1)}X();c=b.wf;d=EF();(null===c?null===d:c.c(d))||(c=X(),d=X().H,f=Yk().Un,c=zQ(c,d,f),d=b.wf,f=a.u(-1),a.j(f.n((X(),"prefixes"),-1)),f=a.h(),a.q(Y(c,f,d),-1));X();c=b.ag;Ki();d=N(z().w,A());(null===c?null===d:c.c(d))||(c=X(),d=X().H,c=new yP(c,d),d=b.ag,f=a.u(-1),a.j(f.n((X(),"directives"),-1)),f=a.h(),a.q(Y(c,f,d),-1));X();c=b.$f;Ki();z();d=A();d=Xb(A(),d);(null===c?null=== +d:c.c(d))||(c=X(),d=Yk().Un,c=new yP(c,d),d=b.$f,f=a.u(-1),a.j(f.n((X(),"defaultGraph"),-1)),f=a.h(),a.q(Y(c,f,d),-1));X();c=b.bg;Ki();z();d=A();d=Xb(A(),d);(null===c?null===d:c.c(d))||(c=X(),d=Yk().Un,c=new yP(c,d),d=b.bg,f=a.u(-1),a.j(f.n((X(),"namedGraph"),-1)),f=a.h(),a.q(Y(c,f,d),-1));X();c=b.Ke;Ki();z();d=A();d=Xb(A(),d);(null===c?null===d:c.c(d))||(c=X(),d=Pi().dA,c=new yP(c,d),d=b.Ke,f=a.u(-1),a.j(f.n((X(),"lDatatypeNode"),-1)),f=a.h(),a.q(Y(c,f,d),-1));X();c=b.Ze;Ki();z();d=A();d=Xb(A(), +d);(null===c?null===d:c.c(d))||(c=X(),d=Qi().oA,c=new yP(c,d),d=b.Ze,f=a.u(-1),a.j(f.n((X(),"lSourcesNodes"),-1)),f=a.h(),a.q(Y(c,f,d),-1));X();c=b.Re;Ki();z();d=A();d=Xb(A(),d);(null===c?null===d:c.c(d))||(c=X(),d=Ri().aA,c=new yP(c,d),d=b.Re,f=a.u(-1),a.j(f.n((X(),"lBindNode"),-1)),f=a.h(),a.q(Y(c,f,d),-1));X();c=b.zd;Ki();z();d=A();d=Xb(A(),d);(null===c?null===d:c.c(d))||(c=X(),d=Si().mA,c=new yP(c,d),d=b.zd,f=a.u(-1),a.j(f.n((X(),"lSolutionSequenceModifierNode"),-1)),f=a.h(),a.q(Y(c,f,d),-1)); +X();c=b.U;Ki();d=N(z().w,A());(null===c?null===d:c.c(d))||(c=X(),d=Ui().fa,c=new yP(c,d),d=b.U,f=a.u(-1),a.j(f.n((X(),"children"),-1)),f=a.h(),a.q(Y(c,f,d),-1));X();c=b.V;Ki();L();d=A();d=M(0,d);(null===c?null===d:c.c(d))||(c=X(),d=X().H,f=X().H,c=zQ(c,d,f),b=b.V,d=a.u(-1),a.j(d.n((X(),"decorations"),-1)),d=a.h(),a.q(Y(c,d,b),-1))}; +e.Ta=function(a){var b=(X(),a.D!==(Ki(),QK().g()))?1:0;X();var c=a.wf,d=EF();c=(null===c?null===d:c.c(d))?0:1;X();d=a.ag;Ki();var f=N(z().w,A());d=(null===d?null===f:d.c(f))?0:1;X();f=a.$f;Ki();z();var g=A();g=Xb(A(),g);f=(null===f?null===g:f.c(g))?0:1;X();g=a.bg;Ki();z();var h=A();h=Xb(A(),h);g=(null===g?null===h:g.c(h))?0:1;X();h=a.Ke;Ki();z();var k=A();k=Xb(A(),k);h=(null===h?null===k:h.c(k))?0:1;X();k=a.Ze;Ki();z();var n=A();n=Xb(A(),n);k=(null===k?null===n:k.c(n))?0:1;X();n=a.Re;Ki();z();var r= +A();r=Xb(A(),r);n=(null===n?null===r:n.c(r))?0:1;X();r=a.zd;Ki();z();var u=A();u=Xb(A(),u);r=(null===r?null===u:r.c(u))?0:1;X();u=a.U;Ki();var w=N(z().w,A());u=(null===u?null===w:u.c(w))?0:1;X();a=a.V;Ki();L();w=A();w=M(0,w);a=!(null===a?null===w:a.c(w));return(((((((((b+c|0)+d|0)+f|0)+g|0)+h|0)+k|0)+n|0)+r|0)+u|0)+(a?1:0)|0};e.$classData=v({N9:0},!1,"inrae.semantic_web.node.Root$$anon$3",{N9:1,b:1,bb:1,ra:1});function JF(){}JF.prototype=new t;JF.prototype.constructor=JF;e=JF.prototype; +e.ta=function(a,b){return nP(this,a,b)};e.sa=function(){return X()};e.Xa=function(a,b){var c=X().H,d=b.rt,f=a.u(-1);a.j(f.n((X(),"idRef"),-1));f=a.h();a.q(Y(c,f,d),-1);X();c=b.qq;fi();d=N(z().w,A());(null===c?null===d:c.c(d))||(c=X(),d=Ui().fa,c=new yP(c,d),d=b.qq,f=a.u(-1),a.j(f.n((X(),"children"),-1)),f=a.h(),a.q(Y(c,f,d),-1));X();c=b.rq;fi();L();d=A();d=M(0,d);(null===c?null===d:c.c(d))||(c=X(),d=X().H,f=X().H,c=zQ(c,d,f),b=b.rq,d=a.u(-1),a.j(d.n((X(),"decorations"),-1)),d=a.h(),a.q(Y(c,d,b),-1))}; +e.Ta=function(a){X();var b=a.qq;fi();var c=N(z().w,A());b=(null===b?null===c:b.c(c))?0:1;X();a=a.rq;fi();L();c=A();c=M(0,c);a=!(null===a?null===c:a.c(c));return(1+b|0)+(a?1:0)|0};e.$classData=v({V9:0},!1,"inrae.semantic_web.node.Round$$anon$114",{V9:1,b:1,bb:1,ra:1});function QF(){}QF.prototype=new t;QF.prototype.constructor=QF;e=QF.prototype;e.ta=function(a,b){return nP(this,a,b)};e.sa=function(){return X()}; +e.Xa=function(a,b){var c=X().H,d=b.tt,f=a.u(-1);a.j(f.n((X(),"idRef"),-1));f=a.h();a.q(Y(c,f,d),-1);X();c=b.rl;Wi();d=N(z().w,A());(null===c?null===d:c.c(d))||(c=X(),d=Ui().fa,c=new yP(c,d),d=b.rl,f=a.u(-1),a.j(f.n((X(),"children"),-1)),f=a.h(),a.q(Y(c,f,d),-1));X();c=b.sq;Wi();L();d=A();d=M(0,d);(null===c?null===d:c.c(d))||(c=X(),d=X().H,f=X().H,c=zQ(c,d,f),b=b.sq,d=a.u(-1),a.j(d.n((X(),"decorations"),-1)),d=a.h(),a.q(Y(c,d,b),-1))}; +e.Ta=function(a){X();var b=a.rl;Wi();var c=N(z().w,A());b=(null===b?null===c:b.c(c))?0:1;X();a=a.sq;Wi();L();c=A();c=M(0,c);a=!(null===a?null===c:a.c(c));return(1+b|0)+(a?1:0)|0};e.$classData=v({d$:0},!1,"inrae.semantic_web.node.Something$$anon$6",{d$:1,b:1,bb:1,ra:1});function WF(){}WF.prototype=new t;WF.prototype.constructor=WF;e=WF.prototype;e.ta=function(a,b){return nP(this,a,b)};e.sa=function(){return X()}; +e.Xa=function(a,b){var c=X().H,d=b.Bw,f=a.u(-1);a.j(f.n((X(),"refNode"),-1));f=a.h();a.q(Y(c,f,d),-1);c=X();d=X().H;c=new yP(c,d);d=b.vt;f=a.u(-1);a.j(f.n((X(),"sources"),-1));f=a.h();a.q(Y(c,f,d),-1);c=X().H;d=b.D;f=a.u(-1);a.j(f.n((X(),"idRef"),-1));f=a.h();a.q(Y(c,f,d),-1);X();c=b.U;Qi();d=N(z().w,A());(null===c?null===d:c.c(d))||(c=X(),d=Ui().fa,c=new yP(c,d),d=b.U,f=a.u(-1),a.j(f.n((X(),"children"),-1)),f=a.h(),a.q(Y(c,f,d),-1));X();c=b.V;Qi();L();d=A();d=M(0,d);(null===c?null===d:c.c(d))||(c= +X(),d=X().H,f=X().H,c=zQ(c,d,f),b=b.V,d=a.u(-1),a.j(d.n((X(),"decorations"),-1)),d=a.h(),a.q(Y(c,d,b),-1))};e.Ta=function(a){X();var b=a.U;Qi();var c=N(z().w,A());b=(null===b?null===c:b.c(c))?0:1;X();a=a.V;Qi();L();c=A();c=M(0,c);a=!(null===a?null===c:a.c(c));return(3+b|0)+(a?1:0)|0};e.$classData=v({n$:0},!1,"inrae.semantic_web.node.SourcesNode$$anon$75",{n$:1,b:1,bb:1,ra:1});function hG(){}hG.prototype=new t;hG.prototype.constructor=hG;e=hG.prototype;e.ta=function(a,b){return nP(this,a,b)}; +e.sa=function(){return X()}; +e.Xa=function(a,b){var c=Nk().mb,d=b.Dw,f=a.u(-1);a.j(f.n((X(),"sd"),-1));f=a.h();a.q(Y(c,f,d),-1);c=X().H;d=b.Qe;f=a.u(-1);a.j(f.n((X(),"idRef"),-1));f=a.h();a.q(Y(c,f,d),-1);X();c=b.Ie;Vi();d=N(z().w,A());(null===c?null===d:c.c(d))||(c=X(),d=Ui().fa,c=new yP(c,d),d=b.Ie,f=a.u(-1),a.j(f.n((X(),"children"),-1)),f=a.h(),a.q(Y(c,f,d),-1));X();c=b.Je;Vi();L();d=A();d=M(0,d);(null===c?null===d:c.c(d))||(c=X(),d=X().H,f=X().H,c=zQ(c,d,f),b=b.Je,d=a.u(-1),a.j(d.n((X(),"decorations"),-1)),d=a.h(),a.q(Y(c, +d,b),-1))};e.Ta=function(a){X();var b=a.Ie;Vi();var c=N(z().w,A());b=(null===b?null===c:b.c(c))?0:1;X();a=a.Je;Vi();L();c=A();c=M(0,c);a=!(null===a?null===c:a.c(c));return(2+b|0)+(a?1:0)|0};e.$classData=v({w$:0},!1,"inrae.semantic_web.node.SparqlDefinitionExpression$$anon$102",{w$:1,b:1,bb:1,ra:1});function mG(){}mG.prototype=new t;mG.prototype.constructor=mG;e=mG.prototype;e.ta=function(a,b){return nP(this,a,b)};e.sa=function(){return X()}; +e.Xa=function(a,b){var c=Nk().mb,d=b.zt,f=a.u(-1);a.j(f.n((X(),"term"),-1));f=a.h();a.q(Y(c,f,d),-1);c=X().H;d=b.yt;f=a.u(-1);a.j(f.n((X(),"idRef"),-1));f=a.h();a.q(Y(c,f,d),-1);X();c=b.vq;Gh();d=N(z().w,A());(null===c?null===d:c.c(d))||(c=X(),d=Ui().fa,c=new yP(c,d),d=b.vq,f=a.u(-1),a.j(f.n((X(),"children"),-1)),f=a.h(),a.q(Y(c,f,d),-1));X();c=b.wq;Gh();L();d=A();d=M(0,d);(null===c?null===d:c.c(d))||(c=X(),d=X().H,f=X().H,c=zQ(c,d,f),b=b.wq,d=a.u(-1),a.j(d.n((X(),"decorations"),-1)),d=a.h(),a.q(Y(c, +d,b),-1))};e.Ta=function(a){X();var b=a.vq;Gh();var c=N(z().w,A());b=(null===b?null===c:b.c(c))?0:1;X();a=a.wq;Gh();L();c=A();c=M(0,c);a=!(null===a?null===c:a.c(c));return(2+b|0)+(a?1:0)|0};e.$classData=v({F$:0},!1,"inrae.semantic_web.node.Str$$anon$135",{F$:1,b:1,bb:1,ra:1});function rG(){}rG.prototype=new t;rG.prototype.constructor=rG;e=rG.prototype;e.ta=function(a,b){return nP(this,a,b)};e.sa=function(){return X()}; +e.Xa=function(a,b){var c=Nk().mb,d=b.Dn,f=a.u(-1);a.j(f.n((X(),"value"),-1));f=a.h();a.q(Y(c,f,d),-1);c=X().rg;d=b.ba;f=a.u(-1);a.j(f.n((X(),"negation"),-1));f=a.h();a.q(Y(c,f,d),-1);c=X().H;d=b.tq;f=a.u(-1);a.j(f.n((X(),"idRef"),-1));f=a.h();a.q(Y(c,f,d),-1);X();c=b.Bn;Wh();d=N(z().w,A());(null===c?null===d:c.c(d))||(c=X(),d=Ui().fa,c=new yP(c,d),d=b.Bn,f=a.u(-1),a.j(f.n((X(),"children"),-1)),f=a.h(),a.q(Y(c,f,d),-1));X();c=b.Cn;Wh();L();d=A();d=M(0,d);(null===c?null===d:c.c(d))||(c=X(),d=X().H, +f=X().H,c=zQ(c,d,f),b=b.Cn,d=a.u(-1),a.j(d.n((X(),"decorations"),-1)),d=a.h(),a.q(Y(c,d,b),-1))};e.Ta=function(a){X();var b=a.Bn;Wh();var c=N(z().w,A());b=(null===b?null===c:b.c(c))?0:1;X();a=a.Cn;Wh();L();c=A();c=M(0,c);a=!(null===a?null===c:a.c(c));return(3+b|0)+(a?1:0)|0};e.$classData=v({P$:0},!1,"inrae.semantic_web.node.StrEnds$$anon$51",{P$:1,b:1,bb:1,ra:1});function wG(){}wG.prototype=new t;wG.prototype.constructor=wG;e=wG.prototype;e.ta=function(a,b){return nP(this,a,b)};e.sa=function(){return X()}; +e.Xa=function(a,b){var c=Nk().mb,d=b.Gn,f=a.u(-1);a.j(f.n((X(),"value"),-1));f=a.h();a.q(Y(c,f,d),-1);c=X().rg;d=b.ba;f=a.u(-1);a.j(f.n((X(),"negation"),-1));f=a.h();a.q(Y(c,f,d),-1);c=X().H;d=b.uq;f=a.u(-1);a.j(f.n((X(),"idRef"),-1));f=a.h();a.q(Y(c,f,d),-1);X();c=b.En;Vh();d=N(z().w,A());(null===c?null===d:c.c(d))||(c=X(),d=Ui().fa,c=new yP(c,d),d=b.En,f=a.u(-1),a.j(f.n((X(),"children"),-1)),f=a.h(),a.q(Y(c,f,d),-1));X();c=b.Fn;Vh();L();d=A();d=M(0,d);(null===c?null===d:c.c(d))||(c=X(),d=X().H, +f=X().H,c=zQ(c,d,f),b=b.Fn,d=a.u(-1),a.j(d.n((X(),"decorations"),-1)),d=a.h(),a.q(Y(c,d,b),-1))};e.Ta=function(a){X();var b=a.En;Vh();var c=N(z().w,A());b=(null===b?null===c:b.c(c))?0:1;X();a=a.Fn;Vh();L();c=A();c=M(0,c);a=!(null===a?null===c:a.c(c));return(3+b|0)+(a?1:0)|0};e.$classData=v({Z$:0},!1,"inrae.semantic_web.node.StrStarts$$anon$48",{Z$:1,b:1,bb:1,ra:1});function BG(){}BG.prototype=new t;BG.prototype.constructor=BG;e=BG.prototype;e.ta=function(a,b){return nP(this,a,b)};e.sa=function(){return X()}; +e.Xa=function(a,b){var c=Nk().mb,d=b.Dt,f=a.u(-1);a.j(f.n((X(),"start"),-1));f=a.h();a.q(Y(c,f,d),-1);c=Nk().mb;d=b.Ct;f=a.u(-1);a.j(f.n((X(),"length"),-1));f=a.h();a.q(Y(c,f,d),-1);c=X().H;d=b.Bt;f=a.u(-1);a.j(f.n((X(),"idRef"),-1));f=a.h();a.q(Y(c,f,d),-1);X();c=b.xq;li();d=N(z().w,A());(null===c?null===d:c.c(d))||(c=X(),d=Ui().fa,c=new yP(c,d),d=b.xq,f=a.u(-1),a.j(f.n((X(),"children"),-1)),f=a.h(),a.q(Y(c,f,d),-1));X();c=b.yq;li();L();d=A();d=M(0,d);(null===c?null===d:c.c(d))||(c=X(),d=X().H,f= +X().H,c=zQ(c,d,f),b=b.yq,d=a.u(-1),a.j(d.n((X(),"decorations"),-1)),d=a.h(),a.q(Y(c,d,b),-1))};e.Ta=function(a){X();var b=a.xq;li();var c=N(z().w,A());b=(null===b?null===c:b.c(c))?0:1;X();a=a.yq;li();L();c=A();c=M(0,c);a=!(null===a?null===c:a.c(c));return(3+b|0)+(a?1:0)|0};e.$classData=v({iaa:0},!1,"inrae.semantic_web.node.SubStr$$anon$105",{iaa:1,b:1,bb:1,ra:1});function GG(){}GG.prototype=new t;GG.prototype.constructor=GG;e=GG.prototype;e.ta=function(a,b){return nP(this,a,b)};e.sa=function(){return X()}; +e.Xa=function(a,b){if(X(),b.Kc!==(Xi(),QK().g())){var c=X().H,d=b.Kc,f=a.u(-1);a.j(f.n((X(),"idRef"),-1));f=a.h();a.q(Y(c,f,d),-1)}c=Nk().mb;d=b.Ad;f=a.u(-1);a.j(f.n((X(),"term"),-1));f=a.h();a.q(Y(c,f,d),-1);X();c=b.Ic;Xi();d=N(z().w,A());(null===c?null===d:c.c(d))||(c=X(),d=Ui().fa,c=new yP(c,d),d=b.Ic,f=a.u(-1),a.j(f.n((X(),"children"),-1)),f=a.h(),a.q(Y(c,f,d),-1));X();c=b.Jc;Xi();L();d=A();d=M(0,d);(null===c?null===d:c.c(d))||(c=X(),d=X().H,f=X().H,c=zQ(c,d,f),b=b.Jc,d=a.u(-1),a.j(d.n((X(),"decorations"), +-1)),d=a.h(),a.q(Y(c,d,b),-1))};e.Ta=function(a){var b=(X(),a.Kc!==(Xi(),QK().g()))?1:0;X();var c=a.Ic;Xi();var d=N(z().w,A());c=(null===c?null===d:c.c(d))?0:1;X();a=a.Jc;Xi();L();d=A();d=M(0,d);a=!(null===a?null===d:a.c(d));return((1+b|0)+c|0)+(a?1:0)|0};e.$classData=v({raa:0},!1,"inrae.semantic_web.node.SubjectOf$$anon$9",{raa:1,b:1,bb:1,ra:1});function LG(){}LG.prototype=new t;LG.prototype.constructor=LG;e=LG.prototype;e.ta=function(a,b){return nP(this,a,b)};e.sa=function(){return X()}; +e.Xa=function(a,b){var c=Nk().mb,d=b.Mn,f=a.u(-1);a.j(f.n((X(),"value"),-1));f=a.h();a.q(Y(c,f,d),-1);c=X().rg;d=b.ba;f=a.u(-1);a.j(f.n((X(),"negation"),-1));f=a.h();a.q(Y(c,f,d),-1);c=X().H;d=b.Aq;f=a.u(-1);a.j(f.n((X(),"idRef"),-1));f=a.h();a.q(Y(c,f,d),-1);X();c=b.Kn;ai();d=N(z().w,A());(null===c?null===d:c.c(d))||(c=X(),d=Ui().fa,c=new yP(c,d),d=b.Kn,f=a.u(-1),a.j(f.n((X(),"children"),-1)),f=a.h(),a.q(Y(c,f,d),-1));X();c=b.Ln;ai();L();d=A();d=M(0,d);(null===c?null===d:c.c(d))||(c=X(),d=X().H, +f=X().H,c=zQ(c,d,f),b=b.Ln,d=a.u(-1),a.j(d.n((X(),"decorations"),-1)),d=a.h(),a.q(Y(c,d,b),-1))};e.Ta=function(a){X();var b=a.Kn;ai();var c=N(z().w,A());b=(null===b?null===c:b.c(c))?0:1;X();a=a.Ln;ai();L();c=A();c=M(0,c);a=!(null===a?null===c:a.c(c));return(3+b|0)+(a?1:0)|0};e.$classData=v({Baa:0},!1,"inrae.semantic_web.node.Sup$$anon$66",{Baa:1,b:1,bb:1,ra:1});function QG(){}QG.prototype=new t;QG.prototype.constructor=QG;e=QG.prototype;e.ta=function(a,b){return nP(this,a,b)};e.sa=function(){return X()}; +e.Xa=function(a,b){var c=Nk().mb,d=b.Jn,f=a.u(-1);a.j(f.n((X(),"value"),-1));f=a.h();a.q(Y(c,f,d),-1);c=X().rg;d=b.ba;f=a.u(-1);a.j(f.n((X(),"negation"),-1));f=a.h();a.q(Y(c,f,d),-1);c=X().H;d=b.zq;f=a.u(-1);a.j(f.n((X(),"idRef"),-1));f=a.h();a.q(Y(c,f,d),-1);X();c=b.Hn;bi();d=N(z().w,A());(null===c?null===d:c.c(d))||(c=X(),d=Ui().fa,c=new yP(c,d),d=b.Hn,f=a.u(-1),a.j(f.n((X(),"children"),-1)),f=a.h(),a.q(Y(c,f,d),-1));X();c=b.In;bi();L();d=A();d=M(0,d);(null===c?null===d:c.c(d))||(c=X(),d=X().H, +f=X().H,c=zQ(c,d,f),b=b.In,d=a.u(-1),a.j(d.n((X(),"decorations"),-1)),d=a.h(),a.q(Y(c,d,b),-1))};e.Ta=function(a){X();var b=a.Hn;bi();var c=N(z().w,A());b=(null===b?null===c:b.c(c))?0:1;X();a=a.In;bi();L();c=A();c=M(0,c);a=!(null===a?null===c:a.c(c));return(3+b|0)+(a?1:0)|0};e.$classData=v({Laa:0},!1,"inrae.semantic_web.node.SupEqual$$anon$69",{Laa:1,b:1,bb:1,ra:1});function DQ(a,b,c,d,f){a.Kc=b;a.Ad=c;a.Ic=d;a.Jc=f;wi(a,b,d,f)} +function jF(){this.Jc=this.Ic=this.Ad=this.Kc=this.V=this.U=this.D=null}jF.prototype=new iF;jF.prototype.constructor=jF;function EQ(){}EQ.prototype=jF.prototype;function VG(){}VG.prototype=new t;VG.prototype.constructor=VG;e=VG.prototype;e.ta=function(a,b){return nP(this,a,b)};e.sa=function(){return X()}; +e.Xa=function(a,b){if(X(),b.D!==(ui(),QK().g())){var c=X().H,d=b.D,f=a.u(-1);a.j(f.n((X(),"idRef"),-1));f=a.h();a.q(Y(c,f,d),-1)}c=Ui().fa;d=b.Rh;f=a.u(-1);a.j(f.n((X(),"s"),-1));f=a.h();a.q(Y(c,f,d),-1);X();c=b.sl;ui();d=N(z().w,A());(null===c?null===d:c.c(d))||(c=X(),d=Ui().fa,c=new yP(c,d),d=b.sl,f=a.u(-1),a.j(f.n((X(),"children"),-1)),f=a.h(),a.q(Y(c,f,d),-1));X();c=b.Bq;ui();L();d=A();d=M(0,d);(null===c?null===d:c.c(d))||(c=X(),d=X().H,f=X().H,c=zQ(c,d,f),b=b.Bq,d=a.u(-1),a.j(d.n((X(),"decorations"), +-1)),d=a.h(),a.q(Y(c,d,b),-1))};e.Ta=function(a){var b=(X(),a.D!==(ui(),QK().g()))?1:0;X();var c=a.sl;ui();var d=N(z().w,A());c=(null===c?null===d:c.c(d))?0:1;X();a=a.Bq;ui();L();d=A();d=M(0,d);a=!(null===a?null===d:a.c(d));return((1+b|0)+c|0)+(a?1:0)|0};e.$classData=v({Uaa:0},!1,"inrae.semantic_web.node.UnionBlock$$anon$27",{Uaa:1,b:1,bb:1,ra:1});function $G(){}$G.prototype=new t;$G.prototype.constructor=$G;e=$G.prototype;e.ta=function(a,b){return nP(this,a,b)};e.sa=function(){return X()}; +e.Xa=function(a,b){var c=Nk().mb,d=b.tl,f=a.u(-1);a.j(f.n((X(),"term"),-1));f=a.h();a.q(Y(c,f,d),-1);if(X(),b.D!==(Ni(),QK().g()))c=X().H,d=b.D,f=a.u(-1),a.j(f.n((X(),"idRef"),-1)),f=a.h(),a.q(Y(c,f,d),-1);X();c=b.U;Ni();d=N(z().w,A());(null===c?null===d:c.c(d))||(c=X(),d=Ui().fa,c=new yP(c,d),d=b.U,f=a.u(-1),a.j(f.n((X(),"children"),-1)),f=a.h(),a.q(Y(c,f,d),-1));X();c=b.V;Ni();L();d=A();d=M(0,d);(null===c?null===d:c.c(d))||(c=X(),d=X().H,f=X().H,c=zQ(c,d,f),b=b.V,d=a.u(-1),a.j(d.n((X(),"decorations"), +-1)),d=a.h(),a.q(Y(c,d,b),-1))};e.Ta=function(a){var b=(X(),a.D!==(Ni(),QK().g()))?1:0;X();var c=a.U;Ni();var d=N(z().w,A());c=(null===c?null===d:c.c(d))?0:1;X();a=a.V;Ni();L();d=A();d=M(0,d);a=!(null===a?null===d:a.c(d));return((1+b|0)+c|0)+(a?1:0)|0};e.$classData=v({cba:0},!1,"inrae.semantic_web.node.Value$$anon$21",{cba:1,b:1,bb:1,ra:1});function eH(){}eH.prototype=new t;eH.prototype.constructor=eH;e=eH.prototype;e.ta=function(a,b){return nP(this,a,b)};e.sa=function(){return X()}; +e.Xa=function(a,b){var c=X().rg,d=b.ba,f=a.u(-1);a.j(f.n((X(),"negation"),-1));f=a.h();a.q(Y(c,f,d),-1);c=X().H;d=b.Cq;f=a.u(-1);a.j(f.n((X(),"idRef"),-1));f=a.h();a.q(Y(c,f,d),-1);X();c=b.Nn;Qh();d=N(z().w,A());(null===c?null===d:c.c(d))||(c=X(),d=Ui().fa,c=new yP(c,d),d=b.Nn,f=a.u(-1),a.j(f.n((X(),"children"),-1)),f=a.h(),a.q(Y(c,f,d),-1));X();c=b.On;Qh();L();d=A();d=M(0,d);(null===c?null===d:c.c(d))||(c=X(),d=X().H,f=X().H,c=zQ(c,d,f),b=b.On,d=a.u(-1),a.j(d.n((X(),"decorations"),-1)),d=a.h(),a.q(Y(c, +d,b),-1))};e.Ta=function(a){X();var b=a.Nn;Qh();var c=N(z().w,A());b=(null===b?null===c:b.c(c))?0:1;X();a=a.On;Qh();L();c=A();c=M(0,c);a=!(null===a?null===c:a.c(c));return(2+b|0)+(a?1:0)|0};e.$classData=v({lba:0},!1,"inrae.semantic_web.node.isBlank$$anon$33",{lba:1,b:1,bb:1,ra:1});function jH(){}jH.prototype=new t;jH.prototype.constructor=jH;e=jH.prototype;e.ta=function(a,b){return nP(this,a,b)};e.sa=function(){return X()}; +e.Xa=function(a,b){var c=X().rg,d=b.ba,f=a.u(-1);a.j(f.n((X(),"negation"),-1));f=a.h();a.q(Y(c,f,d),-1);c=X().H;d=b.Dq;f=a.u(-1);a.j(f.n((X(),"idRef"),-1));f=a.h();a.q(Y(c,f,d),-1);X();c=b.Pn;Rh();d=N(z().w,A());(null===c?null===d:c.c(d))||(c=X(),d=Ui().fa,c=new yP(c,d),d=b.Pn,f=a.u(-1),a.j(f.n((X(),"children"),-1)),f=a.h(),a.q(Y(c,f,d),-1));X();c=b.Qn;Rh();L();d=A();d=M(0,d);(null===c?null===d:c.c(d))||(c=X(),d=X().H,f=X().H,c=zQ(c,d,f),b=b.Qn,d=a.u(-1),a.j(d.n((X(),"decorations"),-1)),d=a.h(),a.q(Y(c, +d,b),-1))};e.Ta=function(a){X();var b=a.Pn;Rh();var c=N(z().w,A());b=(null===b?null===c:b.c(c))?0:1;X();a=a.Qn;Rh();L();c=A();c=M(0,c);a=!(null===a?null===c:a.c(c));return(2+b|0)+(a?1:0)|0};e.$classData=v({uba:0},!1,"inrae.semantic_web.node.isLiteral$$anon$36",{uba:1,b:1,bb:1,ra:1});function oH(){}oH.prototype=new t;oH.prototype.constructor=oH;e=oH.prototype;e.ta=function(a,b){return nP(this,a,b)};e.sa=function(){return X()}; +e.Xa=function(a,b){var c=X().rg,d=b.ba,f=a.u(-1);a.j(f.n((X(),"negation"),-1));f=a.h();a.q(Y(c,f,d),-1);c=X().H;d=b.Eq;f=a.u(-1);a.j(f.n((X(),"idRef"),-1));f=a.h();a.q(Y(c,f,d),-1);X();c=b.Rn;Sh();d=N(z().w,A());(null===c?null===d:c.c(d))||(c=X(),d=Ui().fa,c=new yP(c,d),d=b.Rn,f=a.u(-1),a.j(f.n((X(),"children"),-1)),f=a.h(),a.q(Y(c,f,d),-1));X();c=b.Sn;Sh();L();d=A();d=M(0,d);(null===c?null===d:c.c(d))||(c=X(),d=X().H,f=X().H,c=zQ(c,d,f),b=b.Sn,d=a.u(-1),a.j(d.n((X(),"decorations"),-1)),d=a.h(),a.q(Y(c, +d,b),-1))};e.Ta=function(a){X();var b=a.Rn;Sh();var c=N(z().w,A());b=(null===b?null===c:b.c(c))?0:1;X();a=a.Sn;Sh();L();c=A();c=M(0,c);a=!(null===a?null===c:a.c(c));return(2+b|0)+(a?1:0)|0};e.$classData=v({Dba:0},!1,"inrae.semantic_web.node.isURI$$anon$39",{Dba:1,b:1,bb:1,ra:1});function tH(){}tH.prototype=new t;tH.prototype.constructor=tH;e=tH.prototype;e.ta=function(a,b){return nP(this,a,b)};e.sa=function(){return X()}; +e.Xa=function(a,b){var c=X().H;b=b.Fq;var d=a.u(-1);a.j(d.n((X(),"value"),-1));d=a.h();a.q(Y(c,d,b),-1)};e.Ta=function(){return 1};e.$classData=v({Nba:0},!1,"inrae.semantic_web.rdf.Anonymous$$anon$9",{Nba:1,b:1,bb:1,ra:1});function yH(){}yH.prototype=new t;yH.prototype.constructor=yH;e=yH.prototype;e.ta=function(a,b){return nP(this,a,b)};e.sa=function(){return X()};e.Xa=function(a,b){var c=X().H;b=b.Gq;var d=a.u(-1);a.j(d.n((X(),"iri"),-1));d=a.h();a.q(Y(c,d,b),-1)};e.Ta=function(){return 1}; +e.$classData=v({Tba:0},!1,"inrae.semantic_web.rdf.IRI$$anon$3",{Tba:1,b:1,bb:1,ra:1});function DH(){}DH.prototype=new t;DH.prototype.constructor=DH;e=DH.prototype;e.ta=function(a,b){return nP(this,a,b)};e.sa=function(){return X()}; +e.Xa=function(a,b){var c=X().H,d=b.It,f=a.u(-1);a.j(f.n((X(),"value"),-1));f=a.h();a.q(Y(c,f,d),-1);X();c=b.Vn;al();d=Lk().Zd;(null===c?null===d:c.c(d))||(c=Lk().sA,d=b.Vn,f=a.u(-1),a.j(f.n((X(),"datatype"),-1)),f=a.h(),a.q(Y(c,f,d),-1));if(X(),b.Ht!==(al(),""))c=X().H,b=b.Ht,d=a.u(-1),a.j(d.n((X(),"ta"),-1)),d=a.h(),a.q(Y(c,d,b),-1)};e.Ta=function(a){X();var b=a.Vn;al();var c=Lk().Zd;return(1+((null===b?null===c:b.c(c))?0:1)|0)+((X(),a.Ht!==(al(),""))?1:0)|0}; +e.$classData=v({aca:0},!1,"inrae.semantic_web.rdf.Literal$$anon$15",{aca:1,b:1,bb:1,ra:1});function IH(){}IH.prototype=new t;IH.prototype.constructor=IH;e=IH.prototype;e.ta=function(a,b){return nP(this,a,b)};e.sa=function(){return X()};e.Xa=function(a,b){var c=X().H;b=b.Hq;var d=a.u(-1);a.j(d.n((X(),"value"),-1));d=a.h();a.q(Y(c,d,b),-1)};e.Ta=function(){return 1};e.$classData=v({gca:0},!1,"inrae.semantic_web.rdf.PropertyPath$$anon$12",{gca:1,b:1,bb:1,ra:1});function NH(){}NH.prototype=new t; +NH.prototype.constructor=NH;e=NH.prototype;e.ta=function(a,b){return nP(this,a,b)};e.sa=function(){return X()};e.Xa=function(a,b){var c=X().H;b=b.dh;var d=a.u(-1);a.j(d.n((X(),"name"),-1));d=a.h();a.q(Y(c,d,b),-1)};e.Ta=function(){return 1};e.$classData=v({mca:0},!1,"inrae.semantic_web.rdf.QueryVariable$$anon$18",{mca:1,b:1,bb:1,ra:1});function SH(){}SH.prototype=new t;SH.prototype.constructor=SH;e=SH.prototype;e.ta=function(a,b){return nP(this,a,b)};e.sa=function(){return X()}; +e.Xa=function(a,b){var c=X().H,d=b.uA,f=a.u(-1);a.j(f.n((X(),"localNameUser"),-1));f=a.h();a.q(Y(c,f,d),-1);if(X(),b.Jt!==(Lk(),""))c=X().H,b=b.Jt,d=a.u(-1),a.j(d.n((X(),"nameSpaceUser"),-1)),d=a.h(),a.q(Y(c,d,b),-1)};e.Ta=function(a){return 1+((X(),a.Jt!==(Lk(),""))?1:0)|0};e.$classData=v({vca:0},!1,"inrae.semantic_web.rdf.URI$$anon$6",{vca:1,b:1,bb:1,ra:1});function FQ(){this.Ow=this.Nw=null}FQ.prototype=new t;FQ.prototype.constructor=FQ;function GQ(){}e=GQ.prototype=FQ.prototype;e.Vx=function(){return this.Nw}; +e.Ux=function(a){this.Nw=a};e.IH=function(){return this.Ow};e.HH=function(a){this.Ow=a};e.$U=function(a){vh(this,new pC(a.Ts))};function tI(a){this.Qda=a}tI.prototype=new t;tI.prototype.constructor=tI;tI.prototype.ly=function(a){return(0,this.Qda)(a)};tI.prototype.$classData=v({Pda:0},!1,"io.lemonlabs.uri.typesafe.QueryKeyInstances$$Lambda$1",{Pda:1,b:1,Gda:1,d:1});function HQ(a){this.Tda=a}HQ.prototype=new t;HQ.prototype.constructor=HQ;HQ.prototype.ly=function(a){return(0,this.Tda)(a)}; +HQ.prototype.$classData=v({Sda:0},!1,"io.lemonlabs.uri.typesafe.QueryKeyInstances1$$anon$3$$Lambda$1",{Sda:1,b:1,Gda:1,d:1});function IQ(){}IQ.prototype=new t;IQ.prototype.constructor=IQ;IQ.prototype.$classData=v({Uda:0},!1,"io.lemonlabs.uri.typesafe.QueryKeyValue$",{Uda:1,b:1,Vza:1,d:1});var JQ;function Ql(a,b,c,d){this.Wda=a;this.Yda=b;this.Xda=c;this.Zda=d}Ql.prototype=new t;Ql.prototype.constructor=Ql;Ql.prototype.ly=function(a){KQ();return this.Wda.ly(this.Yda.r(a))}; +Ql.prototype.Ru=function(a){LQ();return this.Xda.Ru(this.Zda.r(a))};Ql.prototype.$classData=v({Vda:0},!1,"io.lemonlabs.uri.typesafe.QueryKeyValue$$anon$7",{Vda:1,b:1,Uza:1,d:1});function wI(a){this.jea=a}wI.prototype=new t;wI.prototype.constructor=wI;wI.prototype.Ru=function(a){return(0,this.jea)(a)};wI.prototype.$classData=v({iea:0},!1,"io.lemonlabs.uri.typesafe.QueryValueInstances1$$Lambda$1",{iea:1,b:1,bS:1,d:1});function zI(a){this.lea=a}zI.prototype=new t;zI.prototype.constructor=zI; +zI.prototype.Ru=function(a){return(0,this.lea)(a)};zI.prototype.$classData=v({kea:0},!1,"io.lemonlabs.uri.typesafe.QueryValueInstances1$$Lambda$2",{kea:1,b:1,bS:1,d:1});function MQ(a){this.oea=a}MQ.prototype=new t;MQ.prototype.constructor=MQ;MQ.prototype.Ru=function(a){return(0,this.oea)(a)};MQ.prototype.$classData=v({nea:0},!1,"io.lemonlabs.uri.typesafe.QueryValueInstances2$$anon$6$$Lambda$1",{nea:1,b:1,bS:1,d:1}); +function NQ(a,b){this.dS=this.cS=null;if(null===a)throw I(J(),null);this.cS=a;this.dS=b}NQ.prototype=new t;NQ.prototype.constructor=NQ;NQ.prototype.mva=function(a){return gca(this.cS,a,this.dS)};NQ.prototype.$classData=v({uea:0},!1,"io.lemonlabs.uri.typesafe.TraversableParamsInstances$$anonfun$seqTraversableParams$3",{uea:1,b:1,pea:1,d:1});v({wea:0},!1,"io.lemonlabs.uri.typesafe.TraversableParamsInstances1$$anon$12$$anonfun$contramap$4",{wea:1,b:1,pea:1,d:1}); +function OQ(){this.xk=null;this.aj=0}OQ.prototype=new t;OQ.prototype.constructor=OQ;function PQ(){}PQ.prototype=OQ.prototype;OQ.prototype.g=function(){return this.xk};OQ.prototype.c=function(a){return this===a};OQ.prototype.v=function(){return Va(this)};OQ.prototype.ih=function(a){var b=this.aj;a=a.aj;return b===a?0:b>>0)).toString(16),b="00000000".substring(a.length|0),c=(+((this.Jl>>>16|0)>>>0)).toString(16),d="0000".substring(c.length|0),f=(+((65535&this.Jl)>>>0)).toString(16),g="0000".substring(f.length|0),h=(+((this.Kl>>>16|0)>>>0)).toString(16),k="0000".substring(h.length|0),n=(+((65535&this.Kl)>>>0)).toString(16),r="0000".substring(n.length|0),u=(+(this.Ao>>>0)).toString(16);return""+b+a+"-"+(""+d+c)+"-"+(""+g+f)+"-"+(""+k+h)+"-"+(""+r+n)+(""+"00000000".substring(u.length| +0)+u)};e.v=function(){return this.zo^this.Jl^this.Kl^this.Ao};e.c=function(a){return a instanceof SK?this.zo===a.zo&&this.Jl===a.Jl&&this.Kl===a.Kl&&this.Ao===a.Ao:!1};e.ih=function(a){return this.zo!==a.zo?this.zo>a.zo?1:-1:this.Jl!==a.Jl?this.Jl>a.Jl?1:-1:this.Kl!==a.Kl?this.Kl>a.Kl?1:-1:this.Ao!==a.Ao?this.Ao>a.Ao?1:-1:0};e.$classData=v({sla:0},!1,"java.util.UUID",{sla:1,b:1,d:1,Bb:1});function mR(a){this.cI=this.gy=null;UK(this,a)}mR.prototype=new ZK;mR.prototype.constructor=mR; +mR.prototype.Px=function(a){return a.qh};mR.prototype.$classData=v({zla:0},!1,"java.util.concurrent.ConcurrentHashMap$InnerHashMap$KeyIterator",{zla:1,yla:1,b:1,qC:1});function nR(a){this.cI=this.gy=null;UK(this,a)}nR.prototype=new ZK;nR.prototype.constructor=nR;nR.prototype.Px=function(a){return a};nR.prototype.$classData=v({Ala:0},!1,"java.util.concurrent.ConcurrentHashMap$InnerHashMap$NodeIterator",{Ala:1,yla:1,b:1,qC:1});function oR(){}oR.prototype=new t;oR.prototype.constructor=oR; +function pR(){}pR.prototype=oR.prototype;oR.prototype.hh=function(){};oR.prototype.rf=function(a){return!!a};function qR(){this.Fo=this.KI=null;rR=this;z();Wb();this.KI=nM();this.Fo=sR();YL||(YL=new XL);xN||(xN=new wN);tR||(tR=new uR)}qR.prototype=new HL;qR.prototype.constructor=qR;function vR(a,b){if(!b)throw Hq("requirement failed");}qR.prototype.$classData=v({yma:0},!1,"scala.Predef$",{yma:1,YAa:1,ZAa:1,b:1});var rR;function L(){rR||(rR=new qR);return rR} +function yca(a,b){switch(b){case 0:return a.Wq;case 1:return a.uu;case 2:return a.Xq;case 3:return a.Yq;default:throw my(new V,b+" is out of bounds (min 0, max 3)");}}function wR(){this.hV={}}wR.prototype=new rs;wR.prototype.constructor=wR;wR.prototype.$classData=v({Ema:0},!1,"scala.Symbol$",{Ema:1,XAa:1,b:1,d:1});var xR;function yR(){zR=this}yR.prototype=new t;yR.prototype.constructor=yR;yR.prototype.$classData=v({Roa:0},!1,"scala.collection.BuildFrom$",{Roa:1,b:1,BBa:1,CBa:1});var zR; +function AR(){zR||(zR=new yR);return zR}function BR(){this.Dr=null}BR.prototype=new t;BR.prototype.constructor=BR;function CR(){}e=CR.prototype=BR.prototype;e.Bc=function(){return this.Dr.cr($t())};e.Ib=function(a){return this.Dr.CH(a,$t())};e.Ya=function(){var a=this.Dr,b=$t();return a.Co(b)};e.Pf=function(a){var b=this.Dr,c=$t();return b.CH(a,c)};e.Zi=function(a,b){return this.Dr.RT(a,b,$t())};e.yj=function(a,b){return this.Dr.mX(a,b,$t())};function DR(){this.Vu=null}DR.prototype=new t; +DR.prototype.constructor=DR;function ER(){}ER.prototype=DR.prototype;DR.prototype.Hx=function(a,b){return this.Vu.Hx(a,b)};DR.prototype.cr=function(a){return this.Vu.cr(a)};DR.prototype.tr=function(a){return this.Vu.tr(a)};function FR(a){this.Yoa=a}FR.prototype=new t;FR.prototype.constructor=FR;FR.prototype.Ya=function(){return new GR(this.Yoa.me())};FR.prototype.$classData=v({Xoa:0},!1,"scala.collection.Factory$ArrayFactory",{Xoa:1,b:1,fJ:1,d:1});function HR(){this.Lj=null}HR.prototype=new t; +HR.prototype.constructor=HR;function IR(){}IR.prototype=HR.prototype;HR.prototype.Bc=function(){return this.Lj.Bc()};HR.prototype.Ib=function(a){return this.Lj.Ib(a)};HR.prototype.Ya=function(){return this.Lj.Ya()};function JR(a){this.opa=a}JR.prototype=new t;JR.prototype.constructor=JR;JR.prototype.Ya=function(){return this.opa.Ya()};JR.prototype.$classData=v({npa:0},!1,"scala.collection.IterableFactory$ToFactory",{npa:1,b:1,fJ:1,d:1});function KR(a){a=a.t();return a.s()?new Ze(a.p()):E()} +function LR(a){a=a.t();for(var b=a.p();a.s();)b=a.p();return b}function MR(a){return a.i()?E():new Ze(a.Qb())}function NR(a,b){if(0>b)return 1;var c=a.N();if(0<=c)return c===b?0:cf=>d.ke(f))(a)))}function mba(a){var b=a.t();b=new PR(b,b,2,1);return new Ob(b,new C((c=>d=>c.ke(d))(a)))}function QR(a){if(a.i())throw mJ();return a.Ac(1)} +function RR(a,b){return a.Db().Ib(new SR(a,b))}function TR(a,b){var c=a.Db();a=UR(b)?new VR(a,b):a.t().sg(new Yc(((d,f)=>()=>f.t())(a,b)));return c.Ib(a)}function WR(a,b,c){a.bD=b;a.hJ=c;return a}function YR(){this.hJ=this.bD=null}YR.prototype=new aM;YR.prototype.constructor=YR;function ZR(){}ZR.prototype=YR.prototype;function lr(a){return new $R(a.bD,a.hJ,!1)}YR.prototype.Da=function(a){return this.bD.Db().Ib(aS(new bS,lr(this),a))};YR.prototype.Fa=function(a){lr(this).Fa(a)}; +YR.prototype.$classData=v({NV:0},!1,"scala.collection.IterableOps$WithFilter",{NV:1,HJ:1,b:1,d:1});function cS(a,b,c){var d=0()=>d.t())(a,b)));a=pS(Bx(),b);return qS(new rS,a)} +mS.prototype.Ya=function(){var a=new sS;return new tS(a,new C((()=>b=>nS(uS(),b))(this)))};mS.prototype.Bc=function(){vS||(vS=new wS);return vS};mS.prototype.Ib=function(a){return nS(this,a)};mS.prototype.$classData=v({dqa:0},!1,"scala.collection.View$",{dqa:1,b:1,Te:1,d:1});var xS;function uS(){xS||(xS=new mS);return xS}function Zt(a,b,c,d,f,g){this.Fb=a;this.gc=b;this.ce=c;this.hg=d;this.Ee=f;this.Ug=g}Zt.prototype=new hM;Zt.prototype.constructor=Zt;e=Zt.prototype;e.Y=function(){return this.Ee}; +e.ed=function(){return this.Ug};e.Ng=function(a){return this.ce.a[a<<1]};e.Og=function(a){return this.ce.a[1+(a<<1)|0]};e.hr=function(a){return G(new H,this.ce.a[a<<1],this.ce.a[1+(a<<1)|0])};e.sc=function(a){return this.hg.a[a]};e.mh=function(a){return this.ce.a[(-1+this.ce.a.length|0)-a|0]}; +e.lH=function(a,b,c,d){var f=ju(Ft(),c,d),g=ku(Ft(),f);if(0!==(this.Fb&g)){if(b=nu(Ft(),this.Fb,f,g),fq(O(),a,this.Ng(b)))return this.Og(b)}else if(0!==(this.gc&g))return this.mh(nu(Ft(),this.gc,f,g)).lH(a,b,c,5+d|0);throw Ir("key not found: "+a);};e.RB=function(a,b,c,d){var f=ju(Ft(),c,d),g=ku(Ft(),f);return 0!==(this.Fb&g)?(b=nu(Ft(),this.Fb,f,g),c=this.Ng(b),fq(O(),a,c)?new Ze(this.Og(b)):E()):0!==(this.gc&g)?(f=nu(Ft(),this.gc,f,g),this.mh(f).RB(a,b,c,5+d|0)):E()}; +e.DH=function(a,b,c,d,f){var g=ju(Ft(),c,d),h=ku(Ft(),g);return 0!==(this.Fb&h)?(b=nu(Ft(),this.Fb,g,h),c=this.Ng(b),fq(O(),a,c)?this.Og(b):f.Rb()):0!==(this.gc&h)?(g=nu(Ft(),this.gc,g,h),this.mh(g).DH(a,b,c,5+d|0,f)):f.Rb()};e.LB=function(a,b,c,d){var f=ju(Ft(),c,d),g=ku(Ft(),f);return 0!==(this.Fb&g)?(c=nu(Ft(),this.Fb,f,g),this.hg.a[c]===b&&fq(O(),a,this.Ng(c))):0!==(this.gc&g)&&this.mh(nu(Ft(),this.gc,f,g)).LB(a,b,c,5+d|0)}; +function yS(a,b,c,d,f,g,h){var k=ju(Ft(),f,g),n=ku(Ft(),k);if(0!==(a.Fb&n)){var r=nu(Ft(),a.Fb,k,n);k=a.Ng(r);var u=a.sc(r);if(u===d&&fq(O(),k,b))return h?(f=a.Og(r),Object.is(k,b)&&Object.is(f,c)||(n=a.Mg(n)<<1,b=a.ce,f=new Za(b.a.length),b.Z(0,f,0,b.a.length),f.a[1+n|0]=c,a=new Zt(a.Fb,a.gc,f,a.hg,a.Ee,a.Ug)),a):a;r=a.Og(r);h=$s(bt(),u);c=zS(a,k,r,u,h,b,c,d,f,5+g|0);f=a.Mg(n);d=f<<1;g=(-2+a.ce.a.length|0)-a.Ek(n)|0;k=a.ce;b=new Za(-1+k.a.length|0);k.Z(0,b,0,d);k.Z(2+d|0,b,d,g-d|0);b.a[g]=c;k.Z(2+ +g|0,b,1+g|0,-2+(k.a.length-g|0)|0);f=fu(a.hg,f);return new Zt(a.Fb^n,a.gc|n,b,f,(-1+a.Ee|0)+c.Y()|0,(a.Ug-h|0)+c.ed()|0)}if(0!==(a.gc&n))return k=nu(Ft(),a.gc,k,n),k=a.mh(k),c=k.qX(b,c,d,f,5+g|0,h),c===k?a:AS(a,n,k,c);g=a.Mg(n);k=g<<1;u=a.ce;h=new Za(2+u.a.length|0);u.Z(0,h,0,k);h.a[k]=b;h.a[1+k|0]=c;u.Z(k,h,2+k|0,u.a.length-k|0);c=gu(a.hg,g,d);return new Zt(a.Fb|n,a.gc,h,c,1+a.Ee|0,a.Ug+f|0)} +function BS(a,b,c,d,f){var g=ju(Ft(),d,f),h=ku(Ft(),g);if(0!==(a.Fb&h)){if(g=nu(Ft(),a.Fb,g,h),c=a.Ng(g),fq(O(),c,b)){b=a.Fb;2===mu(St(),b)?(b=a.gc,b=0===mu(St(),b)):b=!1;if(b)return h=0===f?a.Fb^h:ku(Ft(),ju(Ft(),d,0)),0===g?new Zt(h,0,new Za([a.Ng(1),a.Og(1)]),new eb(new Int32Array([a.hg.a[1]])),1,$s(bt(),a.sc(1))):new Zt(h,0,new Za([a.Ng(0),a.Og(0)]),new eb(new Int32Array([a.hg.a[0]])),1,$s(bt(),a.sc(0)));f=a.Mg(h);b=f<<1;c=a.ce;g=new Za(-2+c.a.length|0);c.Z(0,g,0,b);c.Z(2+b|0,g,b,-2+(c.a.length- +b|0)|0);f=fu(a.hg,f);return new Zt(a.Fb^h,a.gc,g,f,-1+a.Ee|0,a.Ug-d|0)}}else if(0!==(a.gc&h)){g=nu(Ft(),a.gc,g,h);g=a.mh(g);d=g.bV(b,c,d,5+f|0);if(d===g)return a;f=d.Y();if(1===f)if(a.Ee===g.Y())a=d;else{b=(-1+a.ce.a.length|0)-a.Ek(h)|0;c=a.Mg(h);var k=c<<1,n=d.Ng(0),r=d.Og(0),u=a.ce;f=new Za(1+u.a.length|0);u.Z(0,f,0,k);f.a[k]=n;f.a[1+k|0]=r;u.Z(k,f,2+k|0,b-k|0);u.Z(1+b|0,f,2+b|0,-1+(u.a.length-b|0)|0);b=gu(a.hg,c,d.sc(0));a=new Zt(a.Fb|h,a.gc^h,f,b,1+(a.Ee-g.Y()|0)|0,(a.Ug-g.ed()|0)+d.ed()|0)}else a= +1h=>fq(O(),h.Ea(),g))(this,a)),!0);if(1===a.z()){d=a.W(0);if(null===d)throw new B(d);a=d.Ea();d=d.xa();return new Zt(ku(Ft(),ju(Ft(),c,0)),0,new Za([a,d]),new eb(new Int32Array([b])),1,c)}return new CS(b,c,a)}return this};e.Sx=function(){return!1};e.ky=function(){return 0};e.mh=function(){throw my(new V,"No sub-nodes present in hash-collision leaf node.");};e.Eu=function(){return!0};e.Qu=function(){return this.fe.z()};e.Ng=function(a){return this.fe.W(a).Ea()}; +e.Og=function(a){return this.fe.W(a).xa()};e.hr=function(a){return this.fe.W(a)};e.sc=function(){return this.Vy};e.Fa=function(a){this.fe.Fa(a)};e.lh=function(a){this.fe.Fa(new C(((b,c)=>d=>{if(null!==d)return c.Od(d.Ea(),d.xa());throw new B(d);})(this,a)))};e.BH=function(a){for(var b=this.fe.t();b.s();){var c=b.p();(0,a.iX)(c.Ea(),c.xa(),this.Vy)}}; +e.c=function(a){if(a instanceof CS){if(this===a)return!0;if(this.Tk===a.Tk&&this.fe.z()===a.fe.z()){for(var b=this.fe.t();b.s();){var c=b.p();if(null===c)throw new B(c);var d=c.xa();c=TS(a,c.Ea());if(0>c||!fq(O(),d,a.fe.W(c).xa()))return!1}return!0}}return!1}; +e.ST=function(a,b){a=VS(this.fe,a,b);b=a.z();if(0===b)return au().ov;if(1===b){b=a.G();if(null===b)throw new B(b);a=b.Ea();b=b.xa();return new Zt(ku(Ft(),ju(Ft(),this.Tk,0)),0,new Za([a,b]),new eb(new Int32Array([this.Vy])),1,this.Tk)}return b===this.fe.z()?this:new CS(this.Vy,this.Tk,a)};e.v=function(){throw it("Trie nodes do not support hashing.");};e.ed=function(){return l(this.fe.z(),this.Tk)};e.PT=function(){return new CS(this.Vy,this.Tk,this.fe)};e.Rx=function(a){return this.mh(a)}; +e.$classData=v({Xqa:0},!1,"scala.collection.immutable.HashCollisionMapNode",{Xqa:1,Nra:1,bz:1,b:1});function PS(a,b,c){this.kv=a;this.Zl=b;this.Ne=c;vR(L(),2<=this.Ne.z())}PS.prototype=new HM;PS.prototype.constructor=PS;e=PS.prototype;e.Mx=function(a,b,c){return this.Zl===c?WS(this.Ne,a):!1};e.uz=function(a,b,c,d){return this.Mx(a,b,c,d)?this:new PS(b,c,this.Ne.Of(a))}; +e.cV=function(a,b,c,d){return this.Mx(a,b,c,d)?(a=VS(this.Ne,new C(((f,g)=>h=>fq(O(),h,g))(this,a)),!0),1===a.z()?new Gv(ku(Ft(),ju(Ft(),c,0)),0,new Za([a.W(0)]),new eb(new Int32Array([b])),1,c):new PS(b,c,a)):this};e.Sx=function(){return!1};e.ky=function(){return 0};e.dg=function(){throw my(new V,"No sub-nodes present in hash-collision leaf node.");};e.Eu=function(){return!0};e.Qu=function(){return this.Ne.z()};e.Bd=function(a){return this.Ne.W(a)};e.sc=function(){return this.kv};e.Y=function(){return this.Ne.z()}; +e.Fa=function(a){for(var b=this.Ne.t();b.s();)a.r(b.p())};e.ed=function(){return l(this.Ne.z(),this.Zl)};e.TT=function(a,b){a=VS(this.Ne,a,b);b=a.z();return 0===b?Hv().bs:1===b?new Gv(ku(Ft(),ju(Ft(),this.Zl,0)),0,new Za([a.G()]),new eb(new Int32Array([this.kv])),1,this.Zl):a.z()===this.Ne.z()?this:new PS(this.kv,this.Zl,a)};e.c=function(a){if(a instanceof PS){if(this===a)return!0;if(this.Zl===a.Zl&&this.Ne.z()===a.Ne.z()){a=a.Ne;for(var b=!0,c=this.Ne.t();b&&c.s();)b=c.p(),b=WS(a,b);return b}}return!1}; +e.v=function(){throw it("Trie nodes do not support hashing.");};e.NT=function(a){if(a instanceof PS){if(a===this)return this;var b=null;for(a=a.Ne.t();a.s();){var c=a.p();WS(this.Ne,c)||(null===b&&(b=new XS,YS(b,this.Ne)),ZS(b,c))}return null===b?this:new PS(this.kv,this.Zl,b.ej())}if(a instanceof Gv)throw it("Cannot concatenate a HashCollisionSetNode with a BitmapIndexedSetNode");throw new B(a);};e.AH=function(a){for(var b=this.Ne.t();b.s();){var c=b.p();a.Od(c,this.kv)}}; +e.QT=function(){return new PS(this.kv,this.Zl,this.Ne)};e.Rx=function(a){return this.dg(a)};e.$classData=v({Yqa:0},!1,"scala.collection.immutable.HashCollisionSetNode",{Yqa:1,Asa:1,bz:1,b:1});function $S(){this.Wy=null;aT=this;var a=au();this.Wy=new bT(a.ov)}$S.prototype=new t;$S.prototype.constructor=$S;e=$S.prototype;e.Pf=function(a){return cT(a)};function cT(a){return a instanceof bT?a:dT(eT(new fT,a))}e.Ya=function(){return new fT};e.Ib=function(a){return cT(a)};e.Bc=function(){return this.Wy}; +e.$classData=v({$qa:0},!1,"scala.collection.immutable.HashMap$",{$qa:1,b:1,Ly:1,d:1});var aT;function gT(){aT||(aT=new $S);return aT}function hT(){this.lv=null;iT=this;var a=Hv();this.lv=jT(new kT,a.bs)}hT.prototype=new t;hT.prototype.constructor=hT;hT.prototype.Ya=function(){return new lT};hT.prototype.Ib=function(a){return a instanceof kT?a:0===a.N()?this.lv:mT(nT(new lT,a))};hT.prototype.Bc=function(){return this.lv}; +hT.prototype.$classData=v({dra:0},!1,"scala.collection.immutable.HashSet$",{dra:1,b:1,Te:1,d:1});var iT;function oT(){iT||(iT=new hT);return iT}function pT(a,b){this.tra=a;this.ura=b}pT.prototype=new t;pT.prototype.constructor=pT;pT.prototype.G=function(){return this.tra};pT.prototype.Pc=function(){return this.ura};pT.prototype.$classData=v({sra:0},!1,"scala.collection.immutable.LazyList$State$Cons",{sra:1,b:1,rra:1,d:1});function qT(){}qT.prototype=new t;qT.prototype.constructor=qT; +qT.prototype.kr=function(){throw Ir("head of empty lazy list");};qT.prototype.Pc=function(){throw it("tail of empty lazy list");};qT.prototype.G=function(){this.kr()};qT.prototype.$classData=v({vra:0},!1,"scala.collection.immutable.LazyList$State$Empty$",{vra:1,b:1,rra:1,d:1});var rT;function sT(){rT||(rT=new qT);return rT}function tT(a,b){this.BW=null;this.BW=uT(a,b)}tT.prototype=new aM;tT.prototype.constructor=tT;tT.prototype.Fa=function(a){this.BW.Fa(a)}; +tT.prototype.$classData=v({wra:0},!1,"scala.collection.immutable.LazyList$WithFilter",{wra:1,HJ:1,b:1,d:1});function vT(){}vT.prototype=new t;vT.prototype.constructor=vT;e=vT.prototype;e.Pf=function(a){return M(0,a)};function M(a,b){return bw(b)&&b.i()?wT():b&&b.$classData&&b.$classData.Hb.Po?b:xT(yT(new zT,b))}e.Ya=function(){return new zT};e.Ib=function(a){return M(0,a)};e.Bc=function(){return wT()};e.$classData=v({Ara:0},!1,"scala.collection.immutable.Map$",{Ara:1,b:1,Ly:1,d:1});var AT; +function nM(){AT||(AT=new vT);return AT}function BT(){}BT.prototype=new t;BT.prototype.constructor=BT;function mI(a,b){return b&&b.$classData&&b.$classData.Hb.Dsa?CT(DT(new ET,b)):0===b.N()?FT():b&&b.$classData&&b.$classData.Hb.Yr?b:CT(DT(new ET,b))}BT.prototype.Ya=function(){return new ET};BT.prototype.Ib=function(a){return mI(0,a)};BT.prototype.Bc=function(){return FT()};BT.prototype.$classData=v({osa:0},!1,"scala.collection.immutable.Set$",{osa:1,b:1,Te:1,d:1});var GT; +function sR(){GT||(GT=new BT);return GT}function HT(a,b){this.OW=null;this.VJ=!1;this.Lsa=b;this.PW=a}HT.prototype=new aM;HT.prototype.constructor=HT;HT.prototype.Fa=function(a){if(!this.VJ&&!this.VJ){var b=IT(this.PW,this.Lsa,!1);this.PW=null;this.OW=b;this.VJ=!0}this.OW.Fa(a)};HT.prototype.$classData=v({Ksa:0},!1,"scala.collection.immutable.Stream$WithFilter",{Ksa:1,HJ:1,b:1,d:1});function JT(){}JT.prototype=new t;JT.prototype.constructor=JT; +function KT(a,b,c){if(b instanceof LT&&(a=b.Vd,null===c?null===a:c.c(a)))return b;if(b&&b.$classData&&b.$classData.Hb.pW&&(a=b.Vd,null===c?null===a:c.c(a))){var d=nf();nf();var f=b.Xc;nf();var g=E();a=new LT;f=new qf(f,g,b.Vd);b=zf(nf(),b.Xc);g=32-ea(b)|0;b=Iba(d,1,b,f,g);return MT(a,b,c)}a=null;for(b=b.t();b.s();){f=b.p();if(null===f)throw new B(f);d=f.Ea();f=f.xa();a=lv(nf(),a,d,f,!0,c)}return MT(new LT,a,c)} +JT.prototype.$classData=v({Psa:0},!1,"scala.collection.immutable.TreeMap$",{Psa:1,b:1,KBa:1,d:1});var NT;function OT(){NT||(NT=new JT);return NT}function PT(a){this.HD=this.zv=null;if(null===a)throw I(J(),null);this.HD=a;this.zv=null}PT.prototype=new DN;PT.prototype.constructor=PT;PT.prototype.mH=function(a,b){this.zv=tf(this.HD,this.zv,a,b)};PT.prototype.Od=function(a,b){this.mH(a,b)}; +PT.prototype.$classData=v({Rsa:0},!1,"scala.collection.immutable.TreeMap$TreeMapBuilder$adder$",{Rsa:1,mK:1,b:1,vz:1});function QT(){}QT.prototype=new t;QT.prototype.constructor=QT;e=QT.prototype;e.Pf=function(a){return RT(a)};function RT(a){var b=a.N();return ST(TT(new UT,0()=>c.Rb())(b)} +function dC(a,b){return(c=>d=>c.r(d))(b)}function yU(a,b){return new C(((c,d)=>f=>d(f))(a,b))}xU.prototype.$classData=v({sua:0},!1,"scala.scalajs.js.Any$",{sua:1,b:1,mCa:1,nCa:1});var zU;function eC(){zU||(zU=new xU);return zU}function Yc(a){this.Eua=a}Yc.prototype=new zN;Yc.prototype.constructor=Yc;Yc.prototype.Rb=function(){return(0,this.Eua)()};Yc.prototype.$classData=v({Dua:0},!1,"scala.scalajs.runtime.AnonFunction0",{Dua:1,oCa:1,b:1,yK:1});function C(a){this.Gua=a}C.prototype=new BN; +C.prototype.constructor=C;C.prototype.r=function(a){return(0,this.Gua)(a)};C.prototype.$classData=v({Fua:0},!1,"scala.scalajs.runtime.AnonFunction1",{Fua:1,lK:1,b:1,ja:1});function jt(a){this.Iua=a}jt.prototype=new DN;jt.prototype.constructor=jt;jt.prototype.Od=function(a,b){return(0,this.Iua)(a,b)};jt.prototype.$classData=v({Hua:0},!1,"scala.scalajs.runtime.AnonFunction2",{Hua:1,mK:1,b:1,vz:1});function AU(a){this.iX=a}AU.prototype=new FN;AU.prototype.constructor=AU; +AU.prototype.$classData=v({Jua:0},!1,"scala.scalajs.runtime.AnonFunction3",{Jua:1,pCa:1,b:1,nva:1});v({Kua:0},!1,"scala.scalajs.runtime.AnonFunction4",{Kua:1,qCa:1,b:1,ova:1});function BU(a,b,c){this.tS=this.kG=null;this.Efa=b;if(null===a)throw I(J(),null);this.tS=a;this.kG=c.Ya()}BU.prototype=new t;BU.prototype.constructor=BU;e=BU.prototype;e.ae=function(){return!1};e.q=function(a){this.kG.Ia(a)};e.da=function(){return this.Efa.r(this.kG.nb())};e.h=function(){return this.tS}; +e.$classData=v({Dfa:0},!1,"ujson.AstTransformer$AstArrVisitor",{Dfa:1,b:1,Dl:1,ua:1});function CU(a,b,c){this.uS=this.mG=this.lG=null;this.Gfa=b;if(null===a)throw I(J(),null);this.uS=a;this.lG=null;this.mG=c.Ya()}CU.prototype=new t;CU.prototype.constructor=CU;e=CU.prototype;e.ae=function(){return!0};e.j=function(a){this.lG=Ma(a)};e.q=function(a){var b=this.mG;a=G(new H,this.lG,a);b.Ia(a)};e.da=function(){return this.Gfa.r(this.mG.nb())};e.u=function(){return DU()};e.h=function(){return this.uS}; +e.$classData=v({Ffa:0},!1,"ujson.AstTransformer$AstObjVisitor",{Ffa:1,b:1,Ga:1,ua:1});function EU(){this.Ij=null;this.cx=0;this.nG=!1;this.Tc=null;this.Vi=0;this.eo=!1}EU.prototype=new t;EU.prototype.constructor=EU;function FU(){}e=FU.prototype=EU.prototype;e.xd=function(a,b){return GU(this,a,b)};e.Rc=function(a,b){return GU(this,a,b)};e.yd=function(a,b){return CO(this,a,b)};e.Kd=function(a,b){return DO(this,a,b)};e.Hd=function(a,b,c,d){return EO(this,a,b,c,d)}; +e.Jd=function(a,b,c,d,f){return FO(this,a,b,c,d,f)};e.Id=function(a){a=String.fromCharCode(a);return null===a?HU(this):IU(this,a)};function JU(a){var b=a.Tc;b.pg>(0===a.Vi?0:1E3)&&(a.Ij.uK(b.Uh,0,b.pg),b.pg=0)}function KU(a){a.eo&&(a.eo=!1,cA(a.Tc,44),LU(a))}e.Gb=function(){return new MU(this)};e.ca=function(){return new NU(this)};function HU(a){KU(a);$z(a.Tc,4);aA(a.Tc,110);aA(a.Tc,117);aA(a.Tc,108);aA(a.Tc,108);JU(a);return a.Ij} +function OU(a,b){KU(a);$z(a.Tc,La(b));for(var c=0,d=La(b);cg=>"$type"===Ma(g.Ea()))(this))).Sa().xa(),d=Ma(c.Rq),f=this.BG.Bu(d);if(null===f)throw new tV("invalid tag for tagged object: "+d,c.wi(),null);c=f.ca(-1,-1);b.Qq.Fa(new C(((g,h)=>k=>{if(null===k)throw new B(k);var n=k.xa();k=Ma(k.Ea());if("$type"!==k){var r=h.u(-1);h.j(r.n(k,-1));h.q(qO(yO(),n,h.h()),-1)}})(this,c)));return c.da(a)}; +e.$classData=v({Rga:0},!1,"upickle.AttributeTagged$$anon$4",{Rga:1,b:1,Ga:1,ua:1});function UO(){}UO.prototype=new t;UO.prototype.constructor=UO;e=UO.prototype;e.ae=function(){return!1};e.da=function(){};e.q=function(){};e.h=function(){return XO()};e.$classData=v({Yga:0},!1,"upickle.core.NoOpVisitor$$anon$1",{Yga:1,b:1,Dl:1,ua:1});function VO(){}VO.prototype=new t;VO.prototype.constructor=VO;e=VO.prototype;e.ae=function(){return!0};e.j=function(){};e.da=function(){};e.q=function(){};e.u=function(){return XO()}; +e.h=function(){return XO()};e.$classData=v({Zga:0},!1,"upickle.core.NoOpVisitor$$anon$2",{Zga:1,b:1,Ga:1,ua:1});function uV(){}uV.prototype=new t;uV.prototype.constructor=uV;e=uV.prototype;e.yc=function(){return null};e.Sc=function(){return YO(this)};e.Qc=function(){return ZO(this)};e.bc=function(){return aP(this)};e.ca=function(){return bP(this)};e.Gb=function(){return cP(this)};e.xc=function(){return dP(this)};e.xd=function(){return eP(this)};e.Rc=function(){return fP(this)};e.yd=function(){return gP(this)}; +e.Kd=function(){return hP(this)};e.Id=function(){return iP(this)};e.Hd=function(){return jP(this)};e.Jd=function(){return kP(this)};e.Mc=function(){return"expected string"};e.n=function(a){return a};e.$classData=v({aha:0},!1,"upickle.core.StringVisitor$",{aha:1,b:1,wa:1,la:1});var vV;function DU(){vV||(vV=new uV);return vV}function Hz(a,b,c,d){a.DG=b;a.Tq=c;a.go=d;a.af=b;d.qu=c;return a}function Iz(){this.go=this.Tq=this.DG=this.af=null}Iz.prototype=new rP;Iz.prototype.constructor=Iz; +function wV(){}wV.prototype=Iz.prototype;Iz.prototype.ca=function(a,b){a=qP.prototype.ca.call(this,a,b);return new xV(this,a)};Iz.prototype.Gb=function(a,b){a=qP.prototype.Gb.call(this,a,b);return new yV(this,a)};Iz.prototype.g=function(){return Lz(this.Tq)};Iz.prototype.$classData=v({DS:0},!1,"upickle.core.TraceVisitor",{DS:1,PG:1,b:1,la:1});function zV(a,b){if(null===b)throw I(J(),null);a.Ra=b;a.Ha=fa;a.x=-1}function AV(){this.Ha=fa;this.x=0;this.Ra=null}AV.prototype=new t; +AV.prototype.constructor=AV;function BV(){}BV.prototype=AV.prototype;AV.prototype.ae=function(){return!0};AV.prototype.q=function(a){if(-1!==this.x){var b=this.Ha,c=this.x,d=b.o&(0===(32&c)?0:1<f=>{f|=0;var g=d.Ha,h=g.o&(0===(32&f)?0:1<g=>f.a[g|0])(a,c)));throw new fA("missing keys in dictionary: "+mg(a,"",", ",""));}function FV(a,b){a=a.Ha;return!(a.k===b.k&&a.o===b.o)}AV.prototype.u=function(){return DU()}; +function zC(a,b,c,d){this.LS=null;this.wha=b;this.yha=c;this.xha=d;if(null===a)throw I(J(),null);this.LS=a}zC.prototype=new t;zC.prototype.constructor=zC;zC.prototype.ta=function(a,b){return oP(this,a,b)};zC.prototype.Qx=function(a){return Sl(this.wha.me(),a)?G(new H,this.yha,this.xha):null};zC.prototype.sa=function(){return this.LS.MS};zC.prototype.$classData=v({vha:0},!1,"upickle.core.Types$TaggedWriter$Leaf",{vha:1,b:1,LG:1,ra:1}); +function GV(a){this.MG=null;this.NG=this.ho=0;this.Vq=null;if(null===a)throw I(J(),null);this.Vq=a;this.MG=new Za(a.ru.a.length);this.NG=this.ho=0}GV.prototype=new t;GV.prototype.constructor=GV;e=GV.prototype;e.ae=function(){return!1};e.q=function(a){this.MG.a[Pa(this.ho,this.Vq.ru.a.length)]=a;this.ho=1+this.ho|0};e.da=function(){var a=this.ho-this.NG|0;if(a!==this.Vq.ru.a.length)throw new fA("expected "+this.Vq.ru.a.length+" items in sequence, found "+a);this.NG=this.ho;return this.Vq.Bha.r(this.MG)}; +e.h=function(){return this.Vq.ru.a[Pa(this.ho,this.Vq.ru.a.length)]};e.$classData=v({Aha:0},!1,"upickle.core.Types$TupleNReader$$anon$6",{Aha:1,b:1,Dl:1,ua:1});function wP(a,b){this.QG=a;this.Mha=b}wP.prototype=new t;wP.prototype.constructor=wP;e=wP.prototype;e.ae=function(){return!1};e.h=function(){return this.QG.h()};e.q=function(a,b){this.QG.q(a,b)};e.da=function(a){return this.Mha.r(this.QG.da(a))};e.$classData=v({Lha:0},!1,"upickle.core.Visitor$MapArrContext",{Lha:1,b:1,Dl:1,ua:1}); +function vP(a,b){this.sx=a;this.Oha=b}vP.prototype=new t;vP.prototype.constructor=vP;e=vP.prototype;e.ae=function(){return!0};e.h=function(){return this.sx.h()};e.u=function(a){return this.sx.u(a)};e.j=function(a){this.sx.j(a)};e.q=function(a,b){this.sx.q(a,b)};e.da=function(a){return this.Oha.r(this.sx.da(a))};e.$classData=v({Nha:0},!1,"upickle.core.Visitor$MapObjContext",{Nha:1,b:1,Ga:1,ua:1});function HV(){}HV.prototype=new t;HV.prototype.constructor=HV;e=HV.prototype;e.ae=function(){return!0}; +e.q=function(){};e.j=function(){};e.u=function(){return XO()};e.da=function(){};e.h=function(){return XO()};e.$classData=v({sia:0},!1,"upickle.implicits.Readers$$anon$1$$anon$2",{sia:1,b:1,Ga:1,ua:1});function IV(a){this.vB=this.XG=this.WG=null;if(null===a)throw I(J(),null);this.vB=a;this.WG=JM().Ag.Bc();this.XG=JM().Ag.Bc()}IV.prototype=new t;IV.prototype.constructor=IV;e=IV.prototype;e.ae=function(){return!0};e.rz=function(){return this.vB.XS};e.j=function(a){this.WG.Ia(Ma(a))};e.q=function(a){this.XG.Ia(a)}; +e.da=function(){var a=this.vB.WS,b=a.r,c=this.WG,d=this.XG;var f=c.Db().Ya();c=c.t();for(d=d.t();c.s()&&d.s();){var g=G(new H,c.p(),d.p());f.Ia(g)}f=f.nb();return b.call(a,f)};e.u=function(){return this.vB.YG.I};e.h=function(){return this.rz()};e.$classData=v({wia:0},!1,"upickle.implicits.Readers$$anon$12$$anon$13",{wia:1,b:1,Ga:1,ua:1});function JV(a){this.YS=this.ZG=null;if(null===a)throw I(J(),null);this.YS=a;this.ZG=E()}JV.prototype=new t;JV.prototype.constructor=JV;e=JV.prototype;e.ae=function(){return!1}; +e.q=function(a){this.ZG=new Ze(a)};e.rz=function(){return this.YS.$S};e.h=function(){return this.rz()};e.da=function(){return this.ZG};e.$classData=v({yia:0},!1,"upickle.implicits.Readers$$anon$14$$anon$15",{yia:1,b:1,Dl:1,ua:1});function KV(a){this.bT=this.$G=null;if(null===a)throw I(J(),null);this.bT=a;this.$G=a.dT.Ya()}KV.prototype=new t;KV.prototype.constructor=KV;e=KV.prototype;e.ae=function(){return!1};e.q=function(a){this.$G.Ia(a)};e.da=function(){return this.$G.nb()};e.rz=function(){return this.bT.eT}; +e.h=function(){return this.rz()};e.$classData=v({Aia:0},!1,"upickle.implicits.Readers$$anon$20$$anon$21",{Aia:1,b:1,Dl:1,ua:1});function LV(){this.ET=this.DT=this.FT=null;MV=this;this.FT=gl("\\s+at (sbt\\.|org\\.scalatest\\.|wvlet\\.airspec\\.).*");this.ET=this.DT=new C((()=>a=>{var b=NV().FT;return!hl(new il(b,a))})(this))}LV.prototype=new t;LV.prototype.constructor=LV; +function OV(a,b){if(null===b)return"";var c=new PV,d=new QV;d.Xw=c;d.eS=!1;RV(d);d.Ww=!1;d.wl=!1;jca(b,d);b=c.g();b=ll(b,"\n",0);ms();a=a.ET;d=pq(qq(),Vl(ia(b))).me();var f=d===m(rb);c=[];for(var g=0;gh=>{var k=hh(g),n=k.qr,r=pq(qq(),Vl(ia(n))).me(),u=r===m(rb);var w=[];for(var y=0;y(d+g|0)?new aW(a.qf(f),1+(d+g|0)|0):new bW(b,c)}if(c instanceof bW){var h=c.dk;f=c.ek;if(h instanceof aW&&(g=h.Nh,h=h.Oi,128>(d+h|0)))return new bW(new aW(a.qf(g),1+(d+h|0)|0),f)}return new bW(b,c)}if(b instanceof bW&&(a=b.dk,f=b.ek,f instanceof aW)){d=f.Nh;f=f.Oi;if(c instanceof aW)return g=c.Nh,h=c.Oi,128>(f+h|0)?new bW(a,new aW(d.qf(g),1+(f+h|0)|0)):new bW(b,c);if(c instanceof bW){var k=c.dk; +g=c.ek;if(k instanceof aW&&(h=k.Nh,k=k.Oi,128>(f+k|0)))return new bW(a,new bW(new aW(d.qf(h),1+(f+k|0)|0),g))}}return new bW(b,c)}YV.prototype.$classData=v({ZX:0},!1,"cats.data.AndThen$",{ZX:1,bwa:1,cwa:1,b:1,d:1});var cW;function me(){cW||(cW=new YV);return cW}function Ub(a){this.bl=this.zj=null;this.Nv=a;this.zj=z().Jb;this.bl=null}Ub.prototype=new t;Ub.prototype.constructor=Ub;e=Ub.prototype;e.t=function(){return this};e.i=function(){return!this.s()};e.sg=function(a){return Xc(this,a)}; +e.Se=function(a){return eS(this,a)};e.g=function(){return"\x3citerator\x3e"};e.Tg=function(a){return ht(this,a)};e.Zb=function(a,b,c){return zg(this,a,b,c)};e.zf=function(a,b,c,d){return lt(this,a,b,c,d)};e.qc=function(){Wb();return Xb(A(),this)};e.Kh=function(){return M(nM(),this)};e.kg=function(){return UU(wx(),this)};e.bh=function(a){return mt(this,a)};e.N=function(){return-1};e.s=function(){return null!==this.Nv||null!==this.bl&&this.bl.s()}; +e.p=function(){a:for(;;){if(null!==this.bl&&this.bl.s()){var a=this.bl.p();break a}this.bl=null;a=this.Nv;if(a instanceof Lb){a=a.Ov;if(this.zj.i())var b=null;else b=this.zj.G(),this.zj=this.zj.L();this.Nv=b;break a}if(a instanceof Tb)b=a.iE,this.Nv=a.hE,this.zj=new Vb(b,this.zj);else{if(a instanceof Nb){a=a.zs;this.zj.i()?b=null:(b=this.zj.G(),this.zj=this.zj.L());this.Nv=b;this.bl=a.t();a=this.bl.p();break a}if(null===a)throw Ir("next called on empty iterator");throw new B(a);}}return a}; +e.$classData=v({eY:0},!1,"cats.data.Chain$ChainIterator",{eY:1,b:1,Ua:1,J:1,K:1});function dW(){}dW.prototype=new iQ;dW.prototype.constructor=dW;function eW(){}eW.prototype=dW.prototype;v({jY:0},!1,"cats.data.ChainInstances$$anon$5",{jY:1,b:1,Mv:1,Lv:1,d:1});function fW(){gW||(gW=new hW)}fW.prototype=new t;fW.prototype.constructor=fW;fW.prototype.$classData=v({fZ:0},!1,"cats.instances.ListInstancesBinCompat0$$anon$6",{fZ:1,b:1,Mv:1,Lv:1,d:1});function iW(){jW||(jW=new kW)}iW.prototype=new t; +iW.prototype.constructor=iW;iW.prototype.$classData=v({mZ:0},!1,"cats.instances.OptionInstancesBinCompat0$$anon$3",{mZ:1,b:1,Mv:1,Lv:1,d:1});function lW(){mW||(mW=new nW)}lW.prototype=new t;lW.prototype.constructor=lW;lW.prototype.$classData=v({xZ:0},!1,"cats.instances.SeqInstances$$anon$2",{xZ:1,b:1,Mv:1,Lv:1,d:1});function oW(){pW||(pW=new qW)}oW.prototype=new t;oW.prototype.constructor=oW; +oW.prototype.$classData=v({LZ:0},!1,"cats.instances.StreamInstancesBinCompat0$$anon$7",{LZ:1,b:1,Mv:1,Lv:1,d:1});function rW(){sW||(sW=new tW)}rW.prototype=new t;rW.prototype.constructor=rW;rW.prototype.$classData=v({b_:0},!1,"cats.instances.VectorInstancesBinCompat0$$anon$6",{b_:1,b:1,Mv:1,Lv:1,d:1});function uW(){}uW.prototype=new t;uW.prototype.constructor=uW;function vW(){}vW.prototype=uW.prototype;function Hc(){}Hc.prototype=new YA;Hc.prototype.constructor=Hc; +Hc.prototype.$classData=v({r_:0},!1,"cats.kernel.Hash$",{r_:1,Lwa:1,mE:1,b:1,d:1});var Gc;function fc(){}fc.prototype=new t;fc.prototype.constructor=fc;fc.prototype.oo=function(a){return Ia(a)};fc.prototype.lo=function(a,b){return fq(O(),a,b)};fc.prototype.$classData=v({t_:0},!1,"cats.kernel.Hash$$anon$3",{t_:1,b:1,As:1,fk:1,d:1});function Lc(){}Lc.prototype=new $A;Lc.prototype.constructor=Lc;Lc.prototype.$classData=v({v_:0},!1,"cats.kernel.Monoid$",{v_:1,w_:1,QK:1,b:1,d:1});var Kc; +function gg(a,b){this.xz=a;this.wz=b}gg.prototype=new t;gg.prototype.constructor=gg;e=gg.prototype;e.A=function(){return"Error"};e.B=function(){return 2};e.C=function(a){switch(a){case 0:return this.xz;case 1:return this.wz;default:return T(W(),a)}};e.v=function(){var a=Ja("Error");a=W().l(-889275714,a);var b=this.xz;a=W().l(a,b);b=this.wz;b=ly(W(),b);a=W().l(a,b);return W().ea(a,2)};e.g=function(){return fy(this)}; +e.c=function(a){if(this===a)return!0;if(a instanceof gg&&this.xz===a.xz){var b=this.wz;a=a.wz;return null===b?null===a:b.c(a)}return!1};e.$classData=v({g1:0},!1,"cats.parse.Parser$Error",{g1:1,b:1,y:1,m:1,d:1});function wW(){}wW.prototype=new t;wW.prototype.constructor=wW;wW.prototype.$classData=v({n2:0},!1,"cats.syntax.package$contravariant$",{n2:1,b:1,j2:1,yX:1,d:1});var xW;function uI(){xW||(xW=new wW);return xW}function yW(a,b){this.nf=a;this.Qi=b}yW.prototype=new t;yW.prototype.constructor=yW; +e=yW.prototype;e.A=function(){return"BindIncrementJs"};e.B=function(){return 2};e.C=function(a){switch(a){case 0:return this.nf;case 1:return this.Qi;default:return T(W(),a)}};e.v=function(){return ig(D(),this)};e.g=function(){return fy(this)};e.c=function(a){if(this===a)return!0;if(a instanceof yW){var b=this.nf,c=a.nf;return(null===b?null===c:b.c(c))?this.Qi===a.Qi:!1}return!1}; +yW.prototype.str=function(){var a=this.nf.Za;var b=new zW(this.nf.va,this.Qi);var c=new Oj(b.gw),d=AW(b.pi,"");Gh();var f=N(z().w,A());Gh();L();var g=A();b=BW(b,new ak(c,d,f,M(0,g)));return new CW(a,b)};yW.prototype.datatype=function(){var a=this.nf.Za;var b=new zW(this.nf.va,this.Qi);var c=AW(b.pi,"");ri();var d=N(z().w,A());ri();L();var f=A();b=BW(b,new Zj(c,d,M(0,f)));return new CW(a,b)}; +yW.prototype.rand=function(){var a=this.nf.Za;var b=new zW(this.nf.va,this.Qi);var c=AW(b.pi,"");ii();var d=N(z().w,A());ii();L();var f=A();b=BW(b,new Yj(c,d,M(0,f)));return new CW(a,b)};yW.prototype.floor=function(){var a=this.nf.Za;var b=new zW(this.nf.va,this.Qi);var c=AW(b.pi,"");hi();var d=N(z().w,A());hi();L();var f=A();b=BW(b,new Wj(c,d,M(0,f)));return new CW(a,b)}; +yW.prototype.ceil=function(){var a=this.nf.Za;var b=new zW(this.nf.va,this.Qi);var c=AW(b.pi,"");gi();var d=N(z().w,A());gi();L();var f=A();b=BW(b,new Xj(c,d,M(0,f)));return new CW(a,b)};yW.prototype.round=function(){var a=this.nf.Za;var b=new zW(this.nf.va,this.Qi);var c=AW(b.pi,"");fi();var d=N(z().w,A());fi();L();var f=A();b=BW(b,new Vj(c,d,M(0,f)));return new CW(a,b)}; +yW.prototype.abs=function(){var a=this.nf.Za;var b=new zW(this.nf.va,this.Qi);var c=AW(b.pi,"");ei();var d=N(z().w,A());ei();L();var f=A();b=BW(b,new Uj(c,d,M(0,f)));return new CW(a,b)};yW.prototype.replace=function(a,b,...c){var d=void 0===c[0]?"":c[0];c=this.nf.Za;var f=new zW(this.nf.va,this.Qi);a=cl(Nk(),a);b=cl(Nk(),b);d=cl(Nk(),d);var g=AW(f.pi,"");mi();var h=N(z().w,A());mi();L();var k=A();f=BW(f,new Tj(a,b,d,g,h,M(0,k)));return new CW(c,f)}; +yW.prototype.subStr=function(a,b){var c=this.nf.Za;var d=new zW(this.nf.va,this.Qi);a=cl(Nk(),a);b=cl(Nk(),b);var f=AW(d.pi,"");li();var g=N(z().w,A());li();L();var h=A();d=BW(d,new Sj(a,b,f,g,M(0,h)));return new CW(c,d)};yW.prototype.$classData=v({v2:0},!1,"inrae.semantic_web.BindIncrementJs",{v2:1,b:1,y:1,m:1,d:1});function QB(a,b,c,d,f,g){this.Sm=a;this.jk=b;this.jl=c;this.Ph=d;this.il=f;this.kl=g;if(0>=d)throw a=E(),yg(),a.i()||Ci(),new VB("pageSize can not be equal to zero or negative !");} +QB.prototype=new t;QB.prototype.constructor=QB;e=QB.prototype;e.g=function(){return"##### General Settings \n - **cache** :"+this.Sm+" \n - **logLevel** :"+this.jk+" \n - **sizeBatchProcessing** :"+this.jl+" \n - **pageSize** :"+this.Ph+" \n"+(this.il?" - **urlProxy**:"+this.kl+"\n":"")}; +function Bca(a){switch(a.jk.toLowerCase()){case "debug":case "d":return fh();case "info":case "i":return CB();case "warn":case "w":return PP();case "error":case "e":return OP();case "trace":case "t":return Ij();case "all":return UP();case "off":return TP();default:var b=eh().wb,c=PP();gh(hh(b),c.Tb)&&ih(eh().wb,PP(),new jh("com/github/p2m2/shared/src/main/scala/inrae/semantic_web/StatementConfiguration.scala","StatementConfiguration.scala",137,13),"[config.settings.logLevel] possible value : trace, debug, info, warn, error, all, off . find ["+ +a.jk+"]");return PP()}}e.A=function(){return"GeneralSetting"};e.B=function(){return 6};e.C=function(a){switch(a){case 0:return this.Sm;case 1:return this.jk;case 2:return this.jl;case 3:return this.Ph;case 4:return this.il;case 5:return this.kl;default:return T(W(),a)}}; +e.v=function(){var a=Ja("GeneralSetting");a=W().l(-889275714,a);var b=this.Sm?1231:1237;a=W().l(a,b);b=this.jk;b=ly(W(),b);a=W().l(a,b);b=this.jl;a=W().l(a,b);b=this.Ph;a=W().l(a,b);b=this.il?1231:1237;a=W().l(a,b);b=this.kl;b=ly(W(),b);a=W().l(a,b);return W().ea(a,6)};e.c=function(a){return this===a?!0:a instanceof QB?this.Sm===a.Sm&&this.jl===a.jl&&this.Ph===a.Ph&&this.il===a.il&&this.jk===a.jk&&this.kl===a.kl:!1}; +e.$classData=v({x2:0},!1,"inrae.semantic_web.ConfigurationObject$GeneralSetting",{x2:1,b:1,y:1,m:1,d:1});function DW(a){this.Ha=fa;this.x=0;this.Ra=null;this.KL=!1;this.LL=null;this.NL=this.ML=0;this.OL=!1;this.wp=this.PL=null;if(null===a)throw I(J(),null);this.wp=a;zV(this,a)}DW.prototype=new BV;DW.prototype.constructor=DW;e=DW.prototype; +e.Wa=function(a,b){switch(a){case 0:this.KL=!!b;break;case 1:this.LL=b;break;case 2:this.ML=b|0;break;case 3:this.NL=b|0;break;case 4:this.OL=!!b;break;case 5:this.PL=b;break;default:throw my(new V,""+a);}};e.j=function(a){X();switch(Ma(a)){case "cache":a=0;break;case "logLevel":a=1;break;case "sizeBatchProcessing":a=2;break;case "pageSize":a=3;break;case "proxy":a=4;break;case "urlProxy":a=5;break;default:a=-1}this.x=a}; +e.h=function(){switch(this.x){case -1:return XO();case 0:nB();var a=this.wp.B2;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=X().qg;a=Q(a,b)}}return a;case 1:nB();a=this.wp.C2;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=X().I,a=Q(a,b))}return a;case 2:nB();a=this.wp.D2;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=X().tx,a=Q(a,b))}return a;case 3:nB();a=this.wp.E2;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=X().tx,a=Q(a,b))}return a;case 4:nB();a=this.wp.F2; +if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=X().qg,a=Q(a,b))}return a;case 5:nB();a=this.wp.G2;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=X().I,a=Q(a,b))}return a;default:throw a=this.x,my(new V,""+a);}}; +e.da=function(){CV(this,0,(nB(),!0));CV(this,1,(nB(),"warn"));CV(this,2,(nB(),150));CV(this,3,(nB(),10));CV(this,4,(nB(),!1));CV(this,5,(nB(),"http://urlProxy"));FV(this,new p(63,0))&&DV(this,6,new (x(ja).M)("cache logLevel sizeBatchProcessing pageSize proxy urlProxy".split(" ")));return new QB(this.KL,this.LL,this.ML,this.NL,this.OL,this.PL)};e.$classData=v({A2:0},!1,"inrae.semantic_web.ConfigurationObject$GeneralSetting$$anon$4$$anon$5",{A2:1,ab:1,b:1,Ga:1,ua:1}); +function EW(a,b,c,d,f,g,h,k,n,r){this.$L=this.aM=this.bM=null;this.xp=a;this.Ig=b;this.Tm=c;this.Bj=d;this.Ri=f;this.ml=g;this.ll=h;this.Um=k;this.Vm=n;this.nl=r;z();a=Af(new Bf,["application/sparql-query","text/turtle","text/n3","text/rdf-xml","application/rdf+xml"]);this.bM=Xb(A(),a);if(!this.bM.Pa(f))throw h=E(),yg(),h.i()||Ci(),new VB("type source unknown :"+f);z();f=Af(new Bf,["post","get"]);this.aM=Xb(A(),f);f=g.toLowerCase();if(!this.aM.Pa(f))throw h=E(),yg(),h.i()||Ci(),new VB("method source unknown :"+ +g);z();g=Af(new Bf,["basic","digest","bearer","proxy",""]);this.$L=Xb(A(),g);g=h.toLowerCase();if(!this.$L.Pa(g))throw b=E(),yg(),b.i()||Ci(),new VB("auth source not managed :"+h);if(""===b&&""===c&&""===d)throw h=E(),yg(),h.i()||Ci(),new VB("url/file/content. one of these parameters must be defined.");if(""!==b&&""!==c||""!==b&&""!==d||""!==c&&""!==d)throw h=E(),yg(),h.i()||Ci(),new VB("url/file/content. only one of theses parameters should be defined .");}EW.prototype=new t; +EW.prototype.constructor=EW;e=EW.prototype;e.g=function(){return"##### ID :"+this.xp+"\n"+(""!==this.Ig?" - **url**:"+this.Ig+"\n":"")+(""!==this.Tm?" - **file**:"+this.Tm+"\n":"")+(""!==this.Bj?" - **content**:"+this.Bj+"\n":"")+(""!==this.Ri?" - **mimetype**:"+this.Ri+"\n":"")+(""!==this.ml?" - **method**:"+this.ml+"\n":"")+(""!==this.ll?" - **auth**:"+this.ll+"\n":"")+(""!==this.nl?" - **method**:"+this.nl+"\n":"")};e.A=function(){return"Source"};e.B=function(){return 10}; +e.C=function(a){switch(a){case 0:return this.xp;case 1:return this.Ig;case 2:return this.Tm;case 3:return this.Bj;case 4:return this.Ri;case 5:return this.ml;case 6:return this.ll;case 7:return this.Um;case 8:return this.Vm;case 9:return this.nl;default:return T(W(),a)}};e.v=function(){return ig(D(),this)}; +e.c=function(a){return this===a?!0:a instanceof EW?this.xp===a.xp&&this.Ig===a.Ig&&this.Tm===a.Tm&&this.Bj===a.Bj&&this.Ri===a.Ri&&this.ml===a.ml&&this.ll===a.ll&&this.Um===a.Um&&this.Vm===a.Vm&&this.nl===a.nl:!1};e.$classData=v({I2:0},!1,"inrae.semantic_web.ConfigurationObject$Source",{I2:1,b:1,y:1,m:1,d:1});function FW(a){this.Ha=fa;this.x=0;this.Aj=this.ZL=this.YL=this.XL=this.WL=this.VL=this.UL=this.TL=this.SL=this.RL=this.QL=this.Ra=null;if(null===a)throw I(J(),null);this.Aj=a;zV(this,a)} +FW.prototype=new BV;FW.prototype.constructor=FW;e=FW.prototype;e.Wa=function(a,b){switch(a){case 0:this.QL=b;break;case 1:this.RL=b;break;case 2:this.SL=b;break;case 3:this.TL=b;break;case 4:this.UL=b;break;case 5:this.VL=b;break;case 6:this.WL=b;break;case 7:this.XL=b;break;case 8:this.YL=b;break;case 9:this.ZL=b;break;default:throw my(new V,""+a);}}; +e.j=function(a){X();switch(Ma(a)){case "id":a=0;break;case "url":a=1;break;case "file":a=2;break;case "content":a=3;break;case "mimetype":a=4;break;case "method":a=5;break;case "auth":a=6;break;case "login":a=7;break;case "password":a=8;break;case "token":a=9;break;default:a=-1}this.x=a}; +e.h=function(){switch(this.x){case -1:return XO();case 0:sB();var a=this.Aj.M2;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=X().I;a=Q(a,b)}}return a;case 1:sB();a=this.Aj.N2;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=X().I,a=Q(a,b))}return a;case 2:sB();a=this.Aj.O2;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=X().I,a=Q(a,b))}return a;case 3:sB();a=this.Aj.P2;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=X().I,a=Q(a,b))}return a;case 4:sB();a=this.Aj.Q2; +if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=X().I,a=Q(a,b))}return a;case 5:sB();a=this.Aj.R2;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=X().I,a=Q(a,b))}return a;case 6:sB();a=this.Aj.S2;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=X().I,a=Q(a,b))}return a;case 7:sB();a=this.Aj.T2;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=X().I,a=Q(a,b))}return a;case 8:sB();a=this.Aj.U2;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=X().I,a=Q(a,b))}return a;case 9:sB(); +a=this.Aj.V2;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=X().I,a=Q(a,b))}return a;default:throw a=this.x,my(new V,""+a);}}; +e.da=function(){CV(this,1,(sB(),""));CV(this,2,(sB(),""));CV(this,3,(sB(),""));CV(this,4,(sB(),"application/sparql-query"));CV(this,5,(sB(),"POST"));CV(this,6,(sB(),""));CV(this,7,(sB(),""));CV(this,8,(sB(),""));CV(this,9,(sB(),""));FV(this,new p(1023,0))&&DV(this,10,new (x(ja).M)("id url file content mimetype method auth login password token".split(" ")));return new EW(this.QL,this.RL,this.SL,this.TL,this.UL,this.VL,this.WL,this.XL,this.YL,this.ZL)}; +e.$classData=v({L2:0},!1,"inrae.semantic_web.ConfigurationObject$Source$$anon$7$$anon$8",{L2:1,ab:1,b:1,Ga:1,ua:1});function PB(a,b){this.oi=a;this.mg=b}PB.prototype=new t;PB.prototype.constructor=PB;e=PB.prototype;e.g=function(){return mg(this.oi,"","\n","")+"\n\n"+this.mg.g()};e.A=function(){return"StatementConfigurationJson"};e.B=function(){return 2};e.C=function(a){switch(a){case 0:return this.oi;case 1:return this.mg;default:return T(W(),a)}};e.v=function(){return ig(D(),this)}; +e.c=function(a){if(this===a)return!0;if(a instanceof PB){var b=this.oi,c=a.oi;if(null===b?null===c:b.c(c))return b=this.mg,a=a.mg,null===b?null===a:b.c(a)}return!1};e.$classData=v({X2:0},!1,"inrae.semantic_web.ConfigurationObject$StatementConfigurationJson",{X2:1,b:1,y:1,m:1,d:1});function GW(a){this.Ha=fa;this.x=0;this.DE=this.dM=this.cM=this.Ra=null;if(null===a)throw I(J(),null);this.DE=a;zV(this,a)}GW.prototype=new BV;GW.prototype.constructor=GW;e=GW.prototype; +e.Wa=function(a,b){switch(a){case 0:this.cM=b;break;case 1:this.dM=b;break;default:throw my(new V,""+a);}};e.j=function(a){X();switch(Ma(a)){case "sources":a=0;break;case "settings":a=1;break;default:a=-1}this.x=a}; +e.h=function(){switch(this.x){case -1:return XO();case 0:xB();var a=this.DE.a3;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=X(),c=sB().CE,d=wx();b=new HW(b,new JR(d),c);a=Q(a,b)}}return a;case 1:xB();a=this.DE.b3;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=nB().BE,a=Q(a,b))}return a;default:throw a=this.x,my(new V,""+a);}}; +e.da=function(){CV(this,1,(xB(),new QB((nB(),!0),(nB(),"warn"),(nB(),150),(nB(),10),(nB(),!1),(nB(),"http://urlProxy"))));FV(this,new p(3,0))&&DV(this,2,new (x(ja).M)(["sources","settings"]));return new PB(this.cM,this.dM)};e.$classData=v({$2:0},!1,"inrae.semantic_web.ConfigurationObject$StatementConfigurationJson$$anon$10$$anon$11",{$2:1,ab:1,b:1,Ga:1,ua:1});function IW(a,b){this.db=a;this.Zf=b}IW.prototype=new t;IW.prototype.constructor=IW;e=IW.prototype;e.A=function(){return"FilterIncrementJs"}; +e.B=function(){return 2};e.C=function(a){switch(a){case 0:return this.db;case 1:return this.Zf;default:return T(W(),a)}};e.v=function(){var a=Ja("FilterIncrementJs");a=W().l(-889275714,a);var b=this.db;b=ly(W(),b);a=W().l(a,b);b=this.Zf?1231:1237;a=W().l(a,b);return W().ea(a,2)};e.g=function(){return fy(this)};e.c=function(a){if(this===a)return!0;if(a instanceof IW&&this.Zf===a.Zf){var b=this.db;a=a.db;return null===b?null===a:b.c(a)}return!1}; +Object.defineProperty(IW.prototype,"not",{get:function(){return new IW(this.db,!this.Zf)},configurable:!0});IW.prototype.supEqual=function(a){var b=this.Zf;if(!0===b){b=this.db.Za;var c=JW(this.db.va);a=new CW(b,KW(new LW(c.zb,!0),cl(Nk(),a)))}else if(!1===b)a=new CW(this.db.Za,KW(JW(this.db.va),cl(Nk(),a)));else throw new B(b);return a}; +IW.prototype.sup=function(a){var b=this.Zf;if(!0===b){b=this.db.Za;var c=JW(this.db.va);a=new CW(b,MW(new LW(c.zb,!0),cl(Nk(),a)))}else if(!1===b)a=new CW(this.db.Za,MW(JW(this.db.va),cl(Nk(),a)));else throw new B(b);return a};IW.prototype.infEqual=function(a){var b=this.Zf;if(!0===b){b=this.db.Za;var c=JW(this.db.va);a=new CW(b,NW(new LW(c.zb,!0),cl(Nk(),a)))}else if(!1===b)a=new CW(this.db.Za,NW(JW(this.db.va),cl(Nk(),a)));else throw new B(b);return a}; +IW.prototype.inf=function(a){var b=this.Zf;if(!0===b){b=this.db.Za;var c=JW(this.db.va);a=new CW(b,OW(new LW(c.zb,!0),cl(Nk(),a)))}else if(!1===b)a=new CW(this.db.Za,OW(JW(this.db.va),cl(Nk(),a)));else throw new B(b);return a};IW.prototype.notEqual=function(a){var b=this.Zf;if(!0===b){b=this.db.Za;var c=JW(this.db.va);a=new CW(b,PW(new LW(c.zb,!0),cl(Nk(),a)))}else if(!1===b)a=new CW(this.db.Za,PW(JW(this.db.va),cl(Nk(),a)));else throw new B(b);return a}; +IW.prototype.equal=function(a){var b=this.Zf;if(!0===b){b=this.db.Za;var c=JW(this.db.va);a=new CW(b,QW(new LW(c.zb,!0),cl(Nk(),a)))}else if(!1===b)a=new CW(this.db.Za,QW(JW(this.db.va),cl(Nk(),a)));else throw new B(b);return a};IW.prototype.strEnds=function(a){var b=this.Zf;if(!0===b){b=this.db.Za;var c=JW(this.db.va);a=new CW(b,RW(new LW(c.zb,!0),cl(Nk(),a)))}else if(!1===b)a=new CW(this.db.Za,RW(JW(this.db.va),cl(Nk(),a)));else throw new B(b);return a}; +IW.prototype.strStarts=function(a){var b=this.Zf;if(!0===b){b=this.db.Za;var c=JW(this.db.va);a=new CW(b,SW(new LW(c.zb,!0),cl(Nk(),a)))}else if(!1===b)a=new CW(this.db.Za,SW(JW(this.db.va),cl(Nk(),a)));else throw new B(b);return a};IW.prototype.contains=function(a){var b=this.Zf;if(!0===b){b=this.db.Za;var c=JW(this.db.va);a=new CW(b,TW(new LW(c.zb,!0),cl(Nk(),a)))}else if(!1===b)a=new CW(this.db.Za,TW(JW(this.db.va),cl(Nk(),a)));else throw new B(b);return a}; +IW.prototype.regex=function(a,...b){b=void 0===b[0]?"":b[0];var c=this.Zf;if(!0===c){c=this.db.Za;var d=JW(this.db.va);a=new CW(c,UW(new LW(d.zb,!0),cl(Nk(),a),cl(Nk(),b)))}else if(!1===c)a=new CW(this.db.Za,UW(JW(this.db.va),cl(Nk(),a),cl(Nk(),b)));else throw new B(c);return a}; +Object.defineProperty(IW.prototype,"isBlank",{get:function(){var a=this.Zf;if(!0===a){a=this.db.Za;var b=JW(this.db.va);b=new LW(b.zb,!0);var c=b.ng,d=AW(b.zb,"");Qh();var f=N(z().w,A());Qh();L();var g=A();c=new nk(c,d,f,M(0,g));b=VW(b.zb,c,!1);a=new CW(a,b)}else if(!1===a)a=new CW(this.db.Za,WW(JW(this.db.va)));else throw new B(a);return a},configurable:!0}); +Object.defineProperty(IW.prototype,"isUri",{get:function(){var a=this.Zf;if(!0===a){a=this.db.Za;var b=JW(this.db.va);a=new CW(a,WW(new LW(b.zb,!0)))}else if(!1===a)a=new CW(this.db.Za,WW(JW(this.db.va)));else throw new B(a);return a},configurable:!0});Object.defineProperty(IW.prototype,"isLiteral",{get:function(){var a=this.Zf;if(!0===a){a=this.db.Za;var b=JW(this.db.va);a=new CW(a,XW(new LW(b.zb,!0)))}else if(!1===a)a=new CW(this.db.Za,XW(JW(this.db.va)));else throw new B(a);return a},configurable:!0}); +IW.prototype.$classData=v({d3:0},!1,"inrae.semantic_web.FilterIncrementJs",{d3:1,b:1,y:1,m:1,d:1});function YW(){}YW.prototype=new DN;YW.prototype.constructor=YW;YW.prototype.g=function(){return"FilterIncrementJs"};YW.prototype.Od=function(a,b){return new IW(a,!!b)};YW.prototype.$classData=v({e3:0},!1,"inrae.semantic_web.FilterIncrementJs$",{e3:1,mK:1,b:1,vz:1,d:1});var ZW;function $W(a,b){this.Gz=a;this.Hz=b}$W.prototype=new t;$W.prototype.constructor=$W;e=$W.prototype;e.A=function(){return"ProjectionExpressionIncrementJs"}; +e.B=function(){return 2};e.C=function(a){switch(a){case 0:return this.Gz;case 1:return this.Hz;default:return T(W(),a)}};e.v=function(){return ig(D(),this)};e.g=function(){return fy(this)};e.c=function(a){if(this===a)return!0;if(a instanceof $W){var b=this.Gz,c=a.Gz;return(null===b?null===c:b.c(c))?this.Hz===a.Hz:!1}return!1};e.cE=function(a,b){return new aX(bX(new cX(this.Gz.Mf,this.Hz),dX(Qd(),eX(new Dy,a)),b))};$W.prototype.count=function(a,...b){return this.cE(a,void 0===b[0]?!1:!!b[0])}; +$W.prototype.$classData=v({f3:0},!1,"inrae.semantic_web.ProjectionExpressionIncrementJs",{f3:1,b:1,y:1,m:1,d:1});function uQ(a,b,c){this.Ld=this.IE=this.HE=null;this.dc=a;this.eb=b;this.yp=c;this.IE=Aw();if(c instanceof Ze)b=c.Sb;else if(E()===c)b=b.D;else throw new B(c);this.Ld=b;b=eh();a=Bca(a.ve.mg);hh(b.wb).Ll=a.Tb}uQ.prototype=new t;uQ.prototype.constructor=uQ;function JW(a){null===a.HE&&null===a.HE&&(a.HE=new fX(a));return new LW(a,!1)} +function gX(a){return new uQ(a.dc,a.eb,new Ze(a.eb.D))}function hX(a,b){if(b===a.Ld)return new uQ(a.dc,a.eb,a.yp);if(b===a.eb.D)return gX(a);ms();var c=nj(pj(),b,a.eb);c=Es(c);if(c instanceof Ze)return new uQ(a.dc,a.eb,new Ze(c.Sb.La()));if(E()===c)throw a=E(),yg(),a.i()||Ci(),new Di(b+" does not exist.");throw new B(c);} +function iX(a,b){ms();var c=nj(pj(),b,a.eb);c=Es(c);if(c instanceof Ze)return new uQ(a.dc,a.eb,new Ze(a.Ld));if(E()===c)throw a=E(),yg(),a.i()||Ci(),new Di(b+" does not exist.");throw new B(c);}function jX(a,b,c){var d=a.dc,f=a.eb;b=new uj(f.D,f.wf.Kv(G(new H,b,c)),f.ag,f.$f,f.bg,f.Ke,f.Ze,f.Re,f.zd,f.U,f.V);return new uQ(d,b,new Ze(a.Ld))}function Cca(a,b){b=b.Da(new C((c=>d=>{if(null!==d)return jX(c,d.Ea(),d.xa());throw new B(d);})(a))).kg();return 0h=>h.La()===g.Ld)(a))),f=MR(d);if(f.i()?0:f.Sa().Vh(b))return d=lX(a.eb,a.Ld,b),c?new uQ(a.dc,d,new Ze(b.La())):new uQ(a.dc,d,new Ze(a.Ld));a=E();yg();a.i()||Ci();throw new Di("Can not add this node ["+b+"]at the current focus["+d+"]");} +function AW(a,b){switch(b){case "object":a=a.eb;var c=new Jk("",(Lk(),""));Xi();var d=N(z().w,A());Xi();L();var f=A();a=a.tf(new Jj("",c,d,M(0,f)),new xC(m(HG))).z();break;case "subject":a=a.eb;c=new Jk("",(Lk(),""));Yi();d=N(z().w,A());Yi();L();f=A();a=a.tf(new Kj("",c,d,M(0,f)),new xC(m(EE))).z();break;case "something":a=a.eb;Wi();c=N(z().w,A());Wi();L();d=A();a=a.tf(new sk("",c,M(0,d)),new xC(m(RF))).z();break;case "linkTo":a=a.eb;c=new Jk("",(Lk(),""));Zi();d=N(z().w,A());Zi();L();f=A();a=a.tf(new Lj("", +c,d,M(0,f)),new xC(m(hE))).z();break;case "linkFrom":a=a.eb;c=new Jk("",(Lk(),""));$i();d=N(z().w,A());$i();L();f=A();a=a.tf(new Mj("",c,d,M(0,f)),new xC(m(bE))).z();break;case "datatype":a=a.eb;c=new Jk("",(Lk(),""));Xi();d=N(z().w,A());Xi();L();f=A();c=new Jj("",c,d,M(0,f));Pi();d=N(z().w,A());Pi();L();f=A();a=a.tf(new Bk("",c,"",d,M(0,f)),new xC(m(fD))).z();break;default:a=QK().g()}return""+b+Ma(a)} +function mX(a,b){var c=eh().wb,d=fh();gh(hh(c),d.Tb)&&ih(eh().wb,fh(),new jh("com/github/p2m2/shared/src/main/scala/inrae/semantic_web/SWDiscovery.scala","SWDiscovery.scala",194,10)," -- something -- ");Wi();c=N(z().w,A());Wi();L();d=A();return VW(a,new sk(b,c,M(0,d)),!0)}function nX(a,b,c){a=kX(a,b);Xi();var d=N(z().w,A());Xi();L();var f=A();b=new Jj(c,b,d,M(0,f));return VW(a,b,!0)} +function oX(a,b,c){a=kX(a,b);Zi();var d=N(z().w,A());Zi();L();var f=A();b=new Lj(c,b,d,M(0,f));return VW(a,b,!0)}function pX(a,b,c){a=kX(a,b);$i();var d=N(z().w,A());$i();L();var f=A();b=new Mj(c,b,d,M(0,f));return VW(a,b,!0)}function qX(a,b){a=kX(a,b);Ni();var c=QK().g();Ni();var d=N(z().w,A());Ni();L();var f=A();return VW(a,new Nj(b,c,d,M(0,f)),!1)}function rX(a,b){Oi();var c=QK().g();Oi();var d=N(z().w,A());Oi();L();var f=A();return VW(a,new Pj(b,c,d,M(0,f)),!1)} +function sX(a,b){var c=a.dc;b=Dca(tX(),a.eb,b);var d=sj(pj(),a.Ld,a.eb);a=1f=>{CX(BL().JC.By,f.Ig+"\n")})(a)));b="USER REQUEST\n"+b+"\nFOCUS NODE:"+c+"\nENDPOINT:"+mg(d,"",",","")+"\n\n\n--------------------------------------------------------------------\n -- HTTP GET -- \n\n"+ +DX(a)+"\n--------------------------------------------------------------------\n -- HTTP CURL -- \n\n"+EX(a)+"\n--------------------------------------------------------------------\n";CX(BL().JC.By,b+"\n");return a}function FX(a){return RM(dh(lh(),a.eb))} +function DX(a){var b=1===a.dc.ve.oi.z()?a.dc.ve.oi.W(0).Ig:"";a=FX(a);a=G(new H,"query",a);var c=N(wx(),Af(new Bf,[G(new H,"format","json")]));JQ||(JQ=new IQ);var d=JQ;var f=KQ().ul,g=LQ().vl;f=$aa(d,f,g);XH||(XH=new WH);d=cI().BF;XH||(XH=new WH);a=c.Ce(a);GX||(GX=new HX);c=new NQ(GX,f);a=new IX(a,c);a=new JX(a.tea.mva(a.sea).tz(),d);$H();$H();$H();$H();$H();$H();$H();c=cI().BF;b=""+b;$H();bI||(bI=new aI);Pl||(Pl=new Ol);d=dca(new nI(Ma(""),c)).Sa();f=xI(yI(),null);return b+new KX(d,a,f,c)} +function EX(a){return'curl -H "Accept: application/json" -G '+(1===a.dc.ve.oi.z()?a.dc.ve.oi.W(0).Ig:"")+" --data-urlencode query\x3d'"+FX(a)+"'"}function LX(a,b,c,d){return Eca(MX(NX(new OX(a),c),d),b)} +function PX(a,b){var c=a.eb.Ke.Da(new C((()=>f=>f.D)(a))),d=new QX(a);c=b.ob(new C(((f,g)=>h=>!g.Pa(h))(a,c)));return Vw(RX(d,c,!1),new C(((f,g)=>h=>{h|=0;var k=Na(h,f.dc.ve.mg.Ph),n=0>k;if(n)var r=0;else{var u=k>>31;r=1+k|0;u=0===r?1+u|0:u;r=(0===u?-1<(-2147483648^r):0r&&yM(Ex(),0,k,1,!0);r=Qd().Ya();for(k=new Rd(0,1,k,n);k.Vk;)u=k.ur(),n=f.dc.ve.mg.Ph,u=l(u,f.dc.ve.mg.Ph),n=LX(f,g,n,u),r.Ia(n);return G(new H,h,r.nb())})(a,b)),a.IE)} +function Fca(a,b){var c=a.eb.Ke.Da(new C((()=>d=>d.D)(a)));return Vw(RX(new QX(a),b.ob(new C(((d,f)=>g=>!f.Pa(g))(a,c))),!0),new C(((d,f)=>g=>{g|=0;var h=Na(g,d.dc.ve.mg.Ph),k=0>h;if(k)var n=0;else{var r=h>>31;n=1+h|0;r=0===n?1+r|0:r;n=(0===r?-1<(-2147483648^n):0n&&yM(Ex(),0,h,1,!0);n=Qd().Ya();for(h=new Rd(0,1,h,k);h.Vk;)r=h.ur(),k=d.dc.ve.mg.Ph,r=l(r,d.dc.ve.mg.Ph),k=SX(LX(d,f,k,r)),n.Ia(k);return G(new H,g,n.nb())})(a,b)),a.IE)}function Gca(a,b){return Taa(pj(),a.eb,b)} +function Hca(a,b,c){var d=!1,f=null,g=a.eb.tf(a.eb,new xC(m(Hi))).ob(new C((h=>k=>k.La()===h.Ld)(a))).rh();if(g instanceof Ze&&(d=!0,f=g,f.Sb instanceof uj))return d=a.dc,b=Ai(a.eb,b,c),new uQ(d,b,new Ze(a.eb.D));if(d)return d=f.Sb,VW(sX(a,a.Ld),Ai(d,b,c),!0);if(E()===g)throw a=a.Ld,b=E(),yg(),b.i()||Ci(),new Di("Can not reach current node -- "+a+" --]");throw new B(g);} +function Ica(a,b){var c=a.eb.tf(a.eb,new xC(m(Hi))).ob(new C((d=>f=>f.La()===d.Ld)(a))).rh();if(c instanceof Ze)return c.Sb.kb().ui(b,new Yc((()=>()=>"")(a)));if(E()===c)return"";throw new B(c);}e=uQ.prototype;e.A=function(){return"SWDiscovery"};e.B=function(){return 3};e.C=function(a){switch(a){case 0:return this.dc;case 1:return this.eb;case 2:return this.yp;default:return T(W(),a)}};e.v=function(){return ig(D(),this)};e.g=function(){return fy(this)}; +e.c=function(a){if(this===a)return!0;if(a instanceof uQ){var b=this.dc,c=a.dc;(null===b?null===c:b.c(c))?(b=this.eb,c=a.eb,b=null===b?null===c:b.c(c)):b=!1;if(b)return b=this.yp,a=a.yp,null===b?null===a:b.c(a)}return!1};e.$classData=v({g3:0},!1,"inrae.semantic_web.SWDiscovery",{g3:1,b:1,y:1,m:1,d:1});function TX(a){this.Ha=fa;this.x=0;this.Iz=this.gM=this.fM=this.eM=this.Ra=null;if(null===a)throw I(J(),null);this.Iz=a;zV(this,a)}TX.prototype=new BV;TX.prototype.constructor=TX;e=TX.prototype; +e.Wa=function(a,b){switch(a){case 0:this.eM=b;break;case 1:this.fM=b;break;case 2:this.gM=b;break;default:throw my(new V,""+a);}};e.j=function(a){X();switch(Ma(a)){case "config":a=0;break;case "rootNode":a=1;break;case "fn":a=2;break;default:a=-1}this.x=a}; +e.h=function(){switch(this.x){case -1:return XO();case 0:DB();var a=this.Iz.k3;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=OB().KE;a=Q(a,b)}}return a;case 1:DB();a=this.Iz.l3;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=Ki().kA,a=Q(a,b))}return a;case 2:DB();a=this.Iz.m3;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{b=X();var c=X().I;b=new UX(b,c);a=Q(a,b)}}return a;default:throw a=this.x,my(new V,""+a);}}; +e.da=function(){CV(this,0,(DB(),new UB(NB())));DB();Ki();var a=QK().g(),b=EF();Ki();var c=N(z().w,A());Ki();z();var d=A();d=Xb(A(),d);Ki();z();var f=A();f=Xb(A(),f);Ki();z();var g=A();g=Xb(A(),g);Ki();z();var h=A();h=Xb(A(),h);Ki();z();var k=A();k=Xb(A(),k);Ki();z();var n=A();n=Xb(A(),n);Ki();var r=N(z().w,A());Ki();L();var u=A();CV(this,1,new uj(a,b,c,d,f,g,h,k,n,r,M(0,u)));CV(this,2,(DB(),E()));FV(this,new p(7,0))&&DV(this,3,new (x(ja).M)(["config","rootNode","fn"]));return new uQ(this.eM,this.fM, +this.gM)};e.$classData=v({j3:0},!1,"inrae.semantic_web.SWDiscovery$$anon$1$$anon$2",{j3:1,ab:1,b:1,Ga:1,ua:1});function zW(a,b){this.pi=null;this.gw=b;if(null===a)throw I(J(),null);this.pi=a}zW.prototype=new t;zW.prototype.constructor=zW;function BW(a,b){var c=a.pi;a=a.gw;Ri();var d=N(z().w,A());Ri();L();var f=A();return VW(c,new vj(b,a,d,M(0,f)),!0)}e=zW.prototype;e.A=function(){return"BindIncrement"};e.B=function(){return 1};e.C=function(a){return 0===a?this.gw:T(W(),a)}; +e.v=function(){return ig(D(),this)};e.g=function(){return fy(this)};e.c=function(a){return this===a?!0:a instanceof zW&&a.pi===this.pi?this.gw===a.gw:!1};e.$classData=v({o3:0},!1,"inrae.semantic_web.SWDiscovery$BindIncrement",{o3:1,b:1,y:1,m:1,d:1});function LW(a,b){this.zb=null;this.ng=b;if(null===a)throw I(J(),null);this.zb=a}LW.prototype=new t;LW.prototype.constructor=LW; +function XW(a){var b=a.ng,c=AW(a.zb,"");Rh();var d=N(z().w,A());Rh();L();var f=A();b=new pk(b,c,d,M(0,f));return VW(a.zb,b,!1)}function WW(a){var b=a.ng,c=AW(a.zb,"");Sh();var d=N(z().w,A());Sh();L();var f=A();b=new ok(b,c,d,M(0,f));return VW(a.zb,b,!1)}function UW(a,b,c){var d=a.ng,f=AW(a.zb,"");Th();var g=N(z().w,A());Th();L();var h=A();b=new dk(b,c,d,f,g,M(0,h));return VW(a.zb,b,!1)} +function TW(a,b){var c=a.ng,d=AW(a.zb,"");Uh();var f=N(z().w,A());Uh();L();var g=A();b=new ek(b,c,d,f,M(0,g));return VW(a.zb,b,!1)}function SW(a,b){var c=a.ng,d=AW(a.zb,"");Vh();var f=N(z().w,A());Vh();L();var g=A();b=new fk(b,c,d,f,M(0,g));return VW(a.zb,b,!1)}function RW(a,b){var c=a.ng,d=AW(a.zb,"");Wh();var f=N(z().w,A());Wh();L();var g=A();b=new gk(b,c,d,f,M(0,g));return VW(a.zb,b,!1)} +function QW(a,b){var c=a.ng,d=AW(a.zb,"");Xh();var f=N(z().w,A());Xh();L();var g=A();b=new hk(b,c,d,f,M(0,g));return VW(a.zb,b,!1)}function PW(a,b){var c=a.ng,d=AW(a.zb,"");Yh();var f=N(z().w,A());Yh();L();var g=A();b=new ik(b,c,d,f,M(0,g));return VW(a.zb,b,!1)}function OW(a,b){var c=a.ng,d=AW(a.zb,"");Zh();var f=N(z().w,A());Zh();L();var g=A();b=new jk(b,c,d,f,M(0,g));return VW(a.zb,b,!1)} +function NW(a,b){var c=a.ng,d=AW(a.zb,"");$h();var f=N(z().w,A());$h();L();var g=A();b=new kk(b,c,d,f,M(0,g));return VW(a.zb,b,!1)}function MW(a,b){var c=a.ng,d=AW(a.zb,"");ai();var f=N(z().w,A());ai();L();var g=A();b=new lk(b,c,d,f,M(0,g));return VW(a.zb,b,!1)}function KW(a,b){var c=a.ng,d=AW(a.zb,"");bi();var f=N(z().w,A());bi();L();var g=A();b=new mk(b,c,d,f,M(0,g));return VW(a.zb,b,!1)}e=LW.prototype;e.A=function(){return"FilterIncrement"};e.B=function(){return 1}; +e.C=function(a){return 0===a?this.ng:T(W(),a)};e.v=function(){var a=Ja("FilterIncrement");a=W().l(-889275714,a);var b=this.ng?1231:1237;a=W().l(a,b);return W().ea(a,1)};e.g=function(){return fy(this)};e.c=function(a){return this===a?!0:a instanceof LW&&a.zb===this.zb?this.ng===a.ng:!1};e.$classData=v({p3:0},!1,"inrae.semantic_web.SWDiscovery$FilterIncrement",{p3:1,b:1,y:1,m:1,d:1});function fX(a){this.hM=null;if(null===a)throw I(J(),null);this.hM=a}fX.prototype=new BN;fX.prototype.constructor=fX; +fX.prototype.g=function(){return"FilterIncrement"};fX.prototype.r=function(a){return new LW(this.hM,!!a)};fX.prototype.$classData=v({q3:0},!1,"inrae.semantic_web.SWDiscovery$FilterIncrement$",{q3:1,lK:1,b:1,ja:1,d:1}); +function QX(a){this.Jz=this.Cj=null;this.Qh=a;this.Cj=Aw();z();a=Af(new Bf,["http://www.openlinksw.com/schemas/virtrdf#","http://www.w3.org/2002/07/owl#","http://www.w3.org/2000/01/rdf-schema#","http://www.w3.org/1999/02/22-rdf-syntax-ns"]);a=Xb(A(),a);this.Jz="^("+mg(a,"","|","")+")"}QX.prototype=new t;QX.prototype.constructor=QX; +function RX(a,b,c){var d=Jca(new OX(a.Qh));return Vw(VX(bX(new cX(d,"count"),b,c)).Ym,new C((()=>f=>{Tk();f=(new Kk("results")).Uc(f);f=(new Kk("bindings")).Uc(f);f=(new LO(0)).Uc(f);return Mk((new Kk("count")).Uc(f)).nX()})(a)),a.Cj)} +function WX(a,b,c,d){var f=eh().wb,g=fh();gh(hh(f),g.Tb)&&ih(eh().wb,fh(),new jh("com/github/p2m2/shared/src/main/scala/inrae/semantic_web/SWDiscoveryHelper.scala","SWDiscoveryHelper.scala",37,10)," -- findClasses -- ");a:{if(null!==c&&(f=new Jk("",(Lk(),"")),null!==c&&c.c(f))){c=nX(a.Qh,new Jk("a",(Lk(),"")),"_esp___type");break a}if(null!==c){f=nX(a.Qh,new Jk("a",(Lk(),"")),"_esp___type");g=new Jk("a",(Lk(),""));var h=AW(f,"object");c=qX(nX(f,g,h),c)}else throw new B(c); +}c=JW(hX(c,"_esp___type"));c=new LW(c.zb,!0);Nk();f=new Rk(a.Jz,(al(),Lk().Zd),(al(),""));Nk();g=new Rk("",(al(),Lk().Zd),(al(),""));c=UW(c,f,g);""!==RM(b)?(c=JW(hX(c,"_esp___type")),Nk(),b=new Rk(b,(al(),Lk().Zd),(al(),"")),Nk(),f=new Rk("",(al(),Lk().Zd),(al(),"")),b=UW(c,b,f)):b=c;z();c=Af(new Bf,["_esp___type"]);return kC(PX(b,Xb(A(),c)),new C(((k,n)=>r=>{r=r.xa();return r.z()>n?Vw(VX(r.W(n)).Ym,new C((()=>u=>{u=(new Kk("results")).Uc(u);u=(new Kk("bindings")).Uc(u);var w=MO(u);u=new sS;for(w= +new vK(new XX(w.jg,w.Lb));w.s();){var y=w.p();y=Ik(Tk(),(new Kk("_esp___type")).Uc(y));YX(u,y)}return u.Xf.kg().zu()})(k)),k.Cj):Uw(Ow(),new Yc((()=>()=>N(z().w,A()))(k)),k.Cj)})(a,d)),a.Cj)} +function ZX(a,b,c,d,f){var g=eh().wb,h=fh();gh(hh(g),h.Tb)&&ih(eh().wb,fh(),new jh("com/github/p2m2/shared/src/main/scala/inrae/semantic_web/SWDiscoveryHelper.scala","SWDiscoveryHelper.scala",70,10)," -- findProperties -- ");g=new Jk("",(Lk(),""));if(null!==c&&c.c(g))c=oX(hX(mX(gX(a.Qh),"_esp___type"),a.Qh.Ld),new Oj("_esp___type"),"_esp___property");else{g=oX(hX(mX(gX(a.Qh),"_esp___type"),a.Qh.Ld),new Oj("_esp___type"),"_esp___property");h=new Jk("a",(Lk(), +""));var k=AW(g,"object");c=qX(nX(g,h,k),c)}switch(d){case "objectProperty":d=WW(JW(hX(c,"_esp___type")));break;case "datatypeProperty":d=XW(JW(hX(c,"_esp___type")));break;default:d=c}d=JW(hX(d,"_esp___property"));d=new LW(d.zb,!0);Nk();c=new Rk(a.Jz,(al(),Lk().Zd),(al(),""));Nk();g=new Rk("",(al(),Lk().Zd),(al(),""));d=UW(d,c,g);""!==RM(b)?(d=JW(hX(d,"_esp___property")),Nk(),b=new Rk(b,(al(),Lk().Zd),(al(),"")),Nk(),c=new Rk("",(al(),Lk().Zd),(al(),"")),b=UW(d,b,c)):b=d;z();d=Af(new Bf,["_esp___property"]); +return kC(PX(b,Xb(A(),d)),new C(((n,r)=>u=>{u=u.xa();return u.z()>r?Vw(VX(SX(u.W(r))).Ym,new C((()=>w=>{w=(new Kk("results")).Uc(w);w=(new Kk("bindings")).Uc(w);var y=MO(w);w=new sS;for(y=new vK(new XX(y.jg,y.Lb));y.s();){var K=y.p();K=Ik(Tk(),(new Kk("_esp___property")).Uc(K));YX(w,K)}return w.Xf.kg().zu()})(n)),n.Cj):Uw(Ow(),new Yc((()=>()=>N(z().w,A()))(n)),n.Cj)})(a,f)),a.Cj)} +function $X(a,b,c,d){var f=eh().wb,g=fh();gh(hh(f),g.Tb)&&ih(eh().wb,fh(),new jh("com/github/p2m2/shared/src/main/scala/inrae/semantic_web/SWDiscoveryHelper.scala","SWDiscoveryHelper.scala",122,10)," -- findObjectProperties -- ");return ZX(a,b,c,"objectProperty",d)} +function aY(a,b,c,d){var f=eh().wb,g=fh();gh(hh(f),g.Tb)&&ih(eh().wb,fh(),new jh("com/github/p2m2/shared/src/main/scala/inrae/semantic_web/SWDiscoveryHelper.scala","SWDiscoveryHelper.scala",127,10)," -- findDatatypeProperties -- ");return ZX(a,b,c,"datatypeProperty",d)} +function bY(a,b,c,d){var f=eh().wb,g=fh();gh(hh(f),g.Tb)&&ih(eh().wb,fh(),new jh("com/github/p2m2/shared/src/main/scala/inrae/semantic_web/SWDiscoveryHelper.scala","SWDiscoveryHelper.scala",133,10)," -- findSubjectProperties -- ");f=new Jk("",(Lk(),""));if(null!==c&&c.c(f))c=pX(hX(mX(gX(a.Qh),"_esp___type"),a.Qh.Ld),new Oj("_esp___type"),"_esp___property");else{f=pX(hX(mX(gX(a.Qh),"_esp___type"),a.Qh.Ld),new Oj("_esp___type"),"_esp___property");g=new Jk("a", +(Lk(),""));var h=AW(f,"object");c=qX(nX(f,g,h),c)}c=JW(hX(c,"_esp___property"));c=new LW(c.zb,!0);Nk();f=new Rk(a.Jz,(al(),Lk().Zd),(al(),""));Nk();g=new Rk("",(al(),Lk().Zd),(al(),""));c=UW(c,f,g);""!==RM(b)?(c=JW(hX(c,"_esp___property")),Nk(),b=new Rk(b,(al(),Lk().Zd),(al(),"")),Nk(),f=new Rk("",(al(),Lk().Zd),(al(),"")),b=UW(c,b,f)):b=c;z();c=Af(new Bf,["_esp___property"]);return kC(PX(b,Xb(A(),c)),new C(((k,n)=>r=>{r=r.xa();return r.z()>n?Vw(VX(SX(r.W(n))).Ym,new C((()=>u=>{u=(new Kk("results")).Uc(u); +u=(new Kk("bindings")).Uc(u);var w=MO(u);u=new sS;for(w=new vK(new XX(w.jg,w.Lb));w.s();){var y=w.p();y=Ik(Tk(),(new Kk("_esp___property")).Uc(y));YX(u,y)}return u.Xf.kg().zu()})(k)),k.Cj):Uw(Ow(),new Yc((()=>()=>N(z().w,A()))(k)),k.Cj)})(a,d)),a.Cj)}e=QX.prototype;e.A=function(){return"SWDiscoveryHelper"};e.B=function(){return 1};e.C=function(a){return 0===a?this.Qh:T(W(),a)};e.v=function(){return ig(D(),this)};e.g=function(){return fy(this)}; +e.c=function(a){if(this===a)return!0;if(a instanceof QX){var b=this.Qh;a=a.Qh;return null===b?null===a:b.c(a)}return!1};e.$classData=v({s3:0},!1,"inrae.semantic_web.SWDiscoveryHelper",{s3:1,b:1,y:1,m:1,d:1});function cY(a){this.kk=null;this.Wm=a;this.kk=Aw()}cY.prototype=new t;cY.prototype.constructor=cY;function Kca(a,b,c,d){zy();b=Vw(WX(new QX(a.Wm),b,c,d),new C((()=>f=>Pg(Qg(),f))(a)),a.kk);return yy(b,a.kk)} +function Lca(a,b,c,d){zy();b=Vw($X(new QX(a.Wm),b,c,d),new C((()=>f=>Pg(Qg(),f))(a)),a.kk);return yy(b,a.kk)}function Mca(a,b,c,d){zy();b=Vw(aY(new QX(a.Wm),b,c,d),new C((()=>f=>Pg(Qg(),f))(a)),a.kk);return yy(b,a.kk)}function Nca(a,b,c,d){zy();b=Vw(bY(new QX(a.Wm),b,c,d),new C((()=>f=>Pg(Qg(),f))(a)),a.kk);return yy(b,a.kk)}e=cY.prototype;e.A=function(){return"SWDiscoveryHelperJs"};e.B=function(){return 1};e.C=function(a){return 0===a?this.Wm:T(W(),a)};e.v=function(){return ig(D(),this)};e.g=function(){return fy(this)}; +e.c=function(a){if(this===a)return!0;if(a instanceof cY){var b=this.Wm;a=a.Wm;return null===b?null===a:b.c(a)}return!1};e.cE=function(a,b){zy();a=RX(new QX(this.Wm),dX(Qd(),eX(new Dy,a)),b);return yy(a,this.kk)};cY.prototype.subjectProperties=function(...a){var b=void 0===a[0]?"":a[0],c=void 0===a[1]?new Jk("",(Lk(),"")):a[1];return Nca(this,b,c,void 0===a[2]?0:a[2]|0)}; +cY.prototype.datatypeProperties=function(...a){var b=void 0===a[0]?"":a[0],c=void 0===a[1]?new Jk("",(Lk(),"")):a[1];return Mca(this,b,c,void 0===a[2]?0:a[2]|0)};cY.prototype.objectProperties=function(...a){var b=void 0===a[0]?"":a[0],c=void 0===a[1]?new Jk("",(Lk(),"")):a[1];return Lca(this,b,c,void 0===a[2]?0:a[2]|0)};cY.prototype.classes=function(...a){var b=void 0===a[0]?"":a[0],c=void 0===a[1]?new Jk("",(Lk(),"")):a[1];return Kca(this,b,c,void 0===a[2]?0:a[2]|0)}; +cY.prototype.count=function(a,...b){return this.cE(a,void 0===b[0]?!1:!!b[0])};cY.prototype.$classData=v({t3:0},!1,"inrae.semantic_web.SWDiscoveryHelperJs",{t3:1,b:1,y:1,m:1,d:1}); +function CW(a,b){this.jM=this.va=this.iw=null;this.Za=a;this.GE=b;this.iw=Aw();if(null===b){DB();Ki();b=QK().g();var c=EF();Ki();var d=N(z().w,A());Ki();z();var f=A();f=Xb(A(),f);Ki();z();var g=A();g=Xb(A(),g);Ki();z();var h=A();h=Xb(A(),h);Ki();z();var k=A();k=Xb(A(),k);Ki();z();var n=A();n=Xb(A(),n);Ki();z();var r=A();r=Xb(A(),r);Ki();var u=N(z().w,A());Ki();L();var w=A();a=new uQ(a,new uj(b,c,d,f,g,h,k,n,r,u,M(0,w)),(DB(),E()))}else a=b;this.va=a;this.jM=new IW(this,!1)}CW.prototype=new t; +CW.prototype.constructor=CW;function dY(a){if(a instanceof FF)return a;if(a instanceof Jk)return new FF(a.g());if("string"===typeof a)return Yk(),new FF(a);a=Ma(a);var b=E();yg();b.i()||Ci();throw new Di(a+" can not be cast into IRI.");}function Oca(a,b){return new CW(a.Za,rX(a.va,b.Da(new C((()=>c=>cl(Nk(),c))(a)))))}function Pca(a,b){b=new jt(((c,d)=>(f,g)=>{var h=JSON,k=X();X();X();var n=Ui().fa;f=h.parse(eY(k,f,n));return d(f,g)})(a,b));Qg();a=Gca(a.va,b);return Pg(0,a)} +function fY(a,b){zy();b=Vw(PX(a.va,dX(Qd(),eX(new Dy,b))),new C((c=>d=>{var f=d.hH();d=d.xa();Qg();d=d.Da(new C((()=>g=>new aX(g))(c)));return G(new H,f,Pg(0,d))})(a)),a.iw);return yy(b,a.iw)}function gY(a,b){zy();b=Vw(Fca(a.va,dX(Qd(),eX(new Dy,b))),new C((c=>d=>{var f=d.hH();d=d.xa();Qg();d=d.Da(new C((()=>g=>new aX(g))(c)));return G(new H,f,Pg(0,d))})(a)),a.iw);return yy(b,a.iw)}e=CW.prototype;e.A=function(){return"SWDiscoveryJs"};e.B=function(){return 2}; +e.C=function(a){switch(a){case 0:return this.Za;case 1:return this.GE;default:return T(W(),a)}};e.v=function(){return ig(D(),this)};e.g=function(){return fy(this)};e.c=function(a){if(this===a)return!0;if(a instanceof CW){var b=this.Za,c=a.Za;if(null===b?null===c:b.c(c))return b=this.GE,a=a.GE,null===b?null===a:b.c(a)}return!1};e.bE=function(){return new CW(this.Za,zX(this.va))};e.dE=function(){var a=this.va,b=X();X();X();var c=DB().hw;return eY(b,a,c)}; +e.eE=function(a){var b=this.Za;var c=X();a=new RB(a,SB());X();var d=DB().hw;c=TB(c,a,d);return new CW(b,c)};CW.prototype.selectDistinctByPage=function(...a){switch(a.length|0){case 1:return"string"===typeof a[0]?(a=Ty(J(),a),gY(this,Pg(Qg(),a))):gY(this,a[0]);default:return a=Ty(J(),a),gY(this,Pg(Qg(),a))}};CW.prototype.selectByPage=function(...a){switch(a.length|0){case 1:return"string"===typeof a[0]?(a=Ty(J(),a),fY(this,Pg(Qg(),a))):fY(this,a[0]);default:return a=Ty(J(),a),fY(this,Pg(Qg(),a))}}; +CW.prototype.select=function(...a){switch(a.length|0){case 3:case 2:case 1:if("string"===typeof a[0]){var b=Ty(J(),a);return new aX(LX(this.va,b,0,0))}b=a[0];var c=void 0===a[1]?0:a[1]|0;a=void 0===a[2]?0:a[2]|0;return new aX(LX(this.va,dX(Qd(),eX(new Dy,b)),c,a));default:return b=Ty(J(),a),new aX(LX(this.va,b,0,0))}};CW.prototype.getDecoration=function(a){return Ica(this.va,a)};CW.prototype.setDecoration=function(a,b){return new CW(this.Za,Hca(this.va,a,b))}; +CW.prototype.browse=function(a){return Pca(this,a)};CW.prototype.setSerializedString=function(a){return this.eE(a)};CW.prototype.getSerializedString=function(){return this.dE()};CW.prototype.sparql_curl=function(){return EX(this.va)};CW.prototype.sparql_get=function(){return DX(this.va)};CW.prototype.sparql=function(){return FX(this.va)};CW.prototype.console=function(){return this.bE()};CW.prototype.remove=function(a){return new CW(this.Za,sX(this.va,a))}; +CW.prototype.datatype=function(a,b){var c=this.Za,d=this.va;if(!(a instanceof Jk))if("string"===typeof a)Lk(),a=new Jk(a,(Lk(),""));else throw c=Ma(a),b=E(),yg(),b.i()||Ci(),new Di(c+" can not be cast into IRI.");var f=a;a=d.dc;var g=gX(d),h=d.Ld;Xi();var k=N(z().w,A());Xi();L();var n=A();f=new Jj(b,f,k,M(0,n));Pi();k=N(z().w,A());Pi();L();n=A();b=new uQ(a,VW(g,new Bk(h,f,b,k,M(0,n)),!1).eb,new Ze(d.Ld));return new CW(c,b)};CW.prototype.setList=function(...a){a=Ty(J(),a);return Oca(this,a)}; +CW.prototype.set=function(a){return new CW(this.Za,qX(this.va,cl(Nk(),a)))};CW.prototype.isLinkFrom=function(a,...b){b=void 0===b[0]?AW(this.va,"linkFrom"):b[0];return new CW(this.Za,pX(this.va,(Nk(),new Rk(a,(al(),Lk().Zd),(al(),""))),b))};CW.prototype.isA=function(a){var b=this.Za;var c=this.va;a=cl(Nk(),a);var d=kX(c,a),f=new Jk("a",(Lk(),"")),g=AW(d,"object");c=hX(qX(nX(d,f,g),a),c.Ld);return new CW(b,c)}; +CW.prototype.isLinkTo=function(a,...b){b=void 0===b[0]?AW(this.va,"linkTo"):b[0];return new CW(this.Za,oX(this.va,cl(Nk(),a),b))};CW.prototype.isObjectOf=function(a,...b){var c=void 0===b[0]?AW(this.va,"subject"):b[0];b=this.Za;var d=cl(Nk(),a);a=kX(this.va,d);Yi();var f=N(z().w,A());Yi();L();var g=A();c=new Kj(c,d,f,M(0,g));c=VW(a,c,!0);return new CW(b,c)};CW.prototype.isSubjectOf=function(a,...b){b=void 0===b[0]?AW(this.va,"object"):b[0];return new CW(this.Za,nX(this.va,cl(Nk(),a),b))}; +CW.prototype.something=function(...a){a=void 0===a[0]?AW(this.va,"something"):a[0];return new CW(this.Za,mX(this.va,a))};CW.prototype.namedGraph=function(a){var b=this.Za;var c=this.va;var d=dY(a);a=c.dc;var f=c.eb;d=new uj(f.D,f.wf,f.ag,f.$f,f.bg.rb(d),f.Ke,f.Ze,f.Re,f.zd,f.U,f.V);c=new uQ(a,d,new Ze(c.Ld));return new CW(b,c)};CW.prototype.focus=function(...a){switch(a.length|0){case 0:return this.va.Ld;case 1:return new CW(this.Za,hX(this.va,a[0]));default:throw"No matching overload";}}; +CW.prototype.root=function(){return new CW(this.Za,gX(this.va))};CW.prototype.graph=function(a){var b=this.Za;var c=this.va;var d=dY(a);a=c.dc;var f=c.eb;d=new uj(f.D,f.wf,f.ag,f.$f.rb(d),f.bg,f.Ke,f.Ze,f.Re,f.zd,f.U,f.V);c=new uQ(a,d,new Ze(c.Ld));return new CW(b,c)};CW.prototype.directive=function(a){var b=this.Za;var c=this.va;var d=c.dc,f=c.eb;a=new uj(f.D,f.wf,f.ag.rb(a),f.$f,f.bg,f.Ke,f.Ze,f.Re,f.zd,f.U,f.V);c=new uQ(d,a,new Ze(c.Ld));return new CW(b,c)}; +CW.prototype.getPrefix=function(a){return Qca(this.va.eb,a)};CW.prototype.prefix=function(a,b){return new CW(this.Za,jX(this.va,a,dY(b)))};CW.prototype.getConfig=function(){return this.va.dc};CW.prototype.setConfig=function(a){var b=this.va;b=new uQ(a,b.eb,new Ze(b.Ld));return new CW(a,b)};Object.defineProperty(CW.prototype,"finder",{get:function(){return new cY(this.va)},configurable:!0});CW.prototype.bind=function(a){return new yW(this,a)}; +CW.prototype.helper=function(...a){new hY(this.va,void 0===a[0]?"":a[0]);return new CW(this.Za,this.va)};Object.defineProperty(CW.prototype,"filter",{get:function(){return this.jM},configurable:!0});CW.prototype.$classData=v({u3:0},!1,"inrae.semantic_web.SWDiscoveryJs",{u3:1,b:1,y:1,m:1,d:1});function iY(){}iY.prototype=new DN;iY.prototype.constructor=iY;iY.prototype.g=function(){return"SWDiscoveryJs"};iY.prototype.Od=function(a,b){return new CW(a,b)}; +iY.prototype.$classData=v({v3:0},!1,"inrae.semantic_web.SWDiscoveryJs$",{v3:1,mK:1,b:1,vz:1,d:1});var jY;function kY(a){this.Ha=fa;this.x=0;this.lM=this.mM=this.Ra=null;if(null===a)throw I(J(),null);this.lM=a;zV(this,a)}kY.prototype=new BV;kY.prototype.constructor=kY;e=kY.prototype;e.Wa=function(a,b){if(0===a)this.mM=b;else throw my(new V,""+a);};e.j=function(a){X();this.x="sw"===Ma(a)?0:-1}; +e.h=function(){switch(this.x){case -1:return XO();case 0:IB();var a=this.lM.B3;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=DB().hw;a=Q(a,b)}}return a;default:throw a=this.x,my(new V,""+a);}}; +e.da=function(){IB();DB();var a=new UB(NB());DB();Ki();var b=QK().g(),c=EF();Ki();var d=N(z().w,A());Ki();z();var f=A();f=Xb(A(),f);Ki();z();var g=A();g=Xb(A(),g);Ki();z();var h=A();h=Xb(A(),h);Ki();z();var k=A();k=Xb(A(),k);Ki();z();var n=A();n=Xb(A(),n);Ki();z();var r=A();r=Xb(A(),r);Ki();var u=N(z().w,A());Ki();L();var w=A();CV(this,0,new uQ(a,new uj(b,c,d,f,g,h,k,n,r,u,M(0,w)),(DB(),E())));FV(this,new p(1,0))&&DV(this,1,new (x(ja).M)(["sw"]));return new OX(this.mM)}; +e.$classData=v({A3:0},!1,"inrae.semantic_web.SWTransaction$$anon$1$$anon$2",{A3:1,ab:1,b:1,Ga:1,ua:1});function cX(a,b){this.Rs=null;this.Kz=b;if(null===a)throw I(J(),null);this.Rs=a}cX.prototype=new t;cX.prototype.constructor=cX;function Rca(a,b){var c=a.Rs.Ab,d=new Oj(a.Kz);a=AW(a.Rs.Ab,"");Ti();var f=N(z().w,A());Ti();L();var g=A();b=VW(c,new Qj(d,b,a,f,M(0,g)),!1);return new OX(b)} +function bX(a,b,c){b=b.Da(new C((()=>h=>new Oj(h))(a)));var d=AW(a.Rs.Ab,"");Bh();var f=N(z().w,A());Bh();L();var g=A();return Rca(a,new Rj(b,c,d,f,M(0,g)))}e=cX.prototype;e.A=function(){return"ProjectionExpressionIncrement"};e.B=function(){return 1};e.C=function(a){return 0===a?this.Kz:T(W(),a)};e.v=function(){return ig(D(),this)};e.g=function(){return fy(this)};e.c=function(a){return this===a?!0:a instanceof cX&&a.Rs===this.Rs?this.Kz===a.Kz:!1}; +e.$classData=v({E3:0},!1,"inrae.semantic_web.SWTransaction$ProjectionExpressionIncrement",{E3:1,b:1,y:1,m:1,d:1});function aX(a){this.JE=null;this.Mf=a;this.JE=Aw()}aX.prototype=new t;aX.prototype.constructor=aX;function Sca(a){zy();var b=Vw(a.Mf.Ym,new C((()=>c=>JSON.parse(Pk(c)))(a)),a.JE);return yy(b,a.JE)}e=aX.prototype;e.A=function(){return"SWTransactionJs"};e.B=function(){return 1};e.C=function(a){return 0===a?this.Mf:T(W(),a)};e.v=function(){return ig(D(),this)};e.g=function(){return fy(this)}; +e.c=function(a){if(this===a)return!0;if(a instanceof aX){var b=this.Mf;a=a.Mf;return null===b?null===a:b.c(a)}return!1};e.dE=function(){var a=this.Mf,b=X();X();X();var c=IB().Lz;return eY(b,a,c)};e.eE=function(a){var b=X();a=new RB(a,SB());X();var c=IB().Lz;b=TB(b,a,c);return new aX(b)};e.bE=function(){var a=zX(this.Mf.Ab);a=new OX(a);return new aX(a)};aX.prototype.console=function(){return this.bE()};aX.prototype.setSerializedString=function(a){return this.eE(a)}; +aX.prototype.getSerializedString=function(){return this.dE()};aX.prototype.orderByDesc=function(a){if("string"===typeof a){var b=this.Mf;var c=gX(iX(b.Ab,a));var d=z().w;a=[new Oj(a)];d=N(d,Af(new Bf,a));b=AW(b.Ab,"");dj();a=N(z().w,A());dj();L();var f=A();c=VW(c,new Fj(d,b,a,M(0,f)),!1);c=new OX(c);c=new aX(c)}else c=new aX(Tca(this.Mf,dX(Qd(),eX(new Dy,a))));return c}; +aX.prototype.orderByAsc=function(a){if("string"===typeof a){var b=this.Mf;var c=gX(iX(b.Ab,a));var d=z().w;a=[new Oj(a)];d=N(d,Af(new Bf,a));b=AW(b.Ab,"");cj();a=N(z().w,A());cj();L();var f=A();c=VW(c,new Ej(d,b,a,M(0,f)),!1);c=new OX(c);c=new aX(c)}else c=new aX(Uca(this.Mf,dX(Qd(),eX(new Dy,a))));return c};aX.prototype.offset=function(a){return new aX(MX(this.Mf,a|0))};aX.prototype.limit=function(a){return new aX(NX(this.Mf,a|0))}; +aX.prototype.reduced=function(){var a=this.Mf;var b=gX(a.Ab);a=AW(a.Ab,"");ij();var c=N(z().w,A());ij();L();var d=A();b=VW(b,new Cj(a,c,M(0,d)),!1);b=new OX(b);return new aX(b)};aX.prototype.distinct=function(){return new aX(SX(this.Mf))};aX.prototype.aggregate=function(a){return new $W(this,a)};aX.prototype.raw=function(){return Sca(this)};aX.prototype.commit=function(){return new aX(VX(this.Mf))}; +aX.prototype.abort=function(){var a=this.Mf;a.Oz=qC().wM.g();a=a.zp;var b=E();yg();b.i()||Ci();b=new Di("aborted by the user.");cx(a,b)};aX.prototype.requestEvent=function(a){var b=this.Mf;a=yU(eC(),a);b.Nz=b.Nz.rb(a);return new aX(b)};aX.prototype.progression=function(a){var b=this.Mf;a=yU(eC(),a);b.Mz=b.Mz.rb(a);return new aX(b)};aX.prototype.$classData=v({F3:0},!1,"inrae.semantic_web.SWTransactionJs",{F3:1,b:1,y:1,m:1,d:1});function UB(a){this.ve=a}UB.prototype=new t;UB.prototype.constructor=UB; +e=UB.prototype;e.g=function(){return this.ve.g()};e.A=function(){return"StatementConfiguration"};e.B=function(){return 1};e.C=function(a){return 0===a?this.ve:T(W(),a)};e.v=function(){return ig(D(),this)};e.c=function(a){if(this===a)return!0;if(a instanceof UB){var b=this.ve;a=a.ve;return null===b?null===a:b.c(a)}return!1};e.$classData=v({H3:0},!1,"inrae.semantic_web.StatementConfiguration",{H3:1,b:1,y:1,m:1,d:1}); +function lY(a){this.Ha=fa;this.x=0;this.oM=this.pM=this.Ra=null;if(null===a)throw I(J(),null);this.oM=a;zV(this,a)}lY.prototype=new BV;lY.prototype.constructor=lY;e=lY.prototype;e.Wa=function(a,b){if(0===a)this.pM=b;else throw my(new V,""+a);};e.j=function(a){X();this.x="conf"===Ma(a)?0:-1};e.h=function(){switch(this.x){case -1:return XO();case 0:OB();var a=this.oM.L3;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=xB().Fz;a=Q(a,b)}}return a;default:throw a=this.x,my(new V,""+a);}}; +e.da=function(){CV(this,0,NB());FV(this,new p(1,0))&&DV(this,1,new (x(ja).M)(["conf"]));return new UB(this.pM)};e.$classData=v({K3:0},!1,"inrae.semantic_web.StatementConfiguration$$anon$13$$anon$14",{K3:1,ab:1,b:1,Ga:1,ua:1});function pC(a){this.Ts=a}pC.prototype=new t;pC.prototype.constructor=pC;e=pC.prototype;e.A=function(){return"DiscoveryRequestEvent"};e.B=function(){return 1};e.C=function(a){return 0===a?this.Ts:T(W(),a)};e.v=function(){return ig(D(),this)};e.g=function(){return fy(this)}; +e.c=function(a){if(this===a)return!0;if(a instanceof pC){var b=this.Ts;a=a.Ts;return null===b?null===a:b.c(a)}return!1};e.$classData=v({$3:0},!1,"inrae.semantic_web.event.DiscoveryRequestEvent",{$3:1,b:1,y:1,m:1,d:1});function mY(a){this.Ha=fa;this.x=0;this.Zz=this.AM=this.zM=this.yM=this.Ra=null;if(null===a)throw I(J(),null);this.Zz=a;zV(this,a)}mY.prototype=new BV;mY.prototype.constructor=mY;e=mY.prototype; +e.Wa=function(a,b){switch(a){case 0:this.yM=b;break;case 1:this.zM=b;break;case 2:this.AM=b;break;default:throw my(new V,""+a);}};e.j=function(a){X();switch(Ma(a)){case "idRef":a=0;break;case "children":a=1;break;case "decorations":a=2;break;default:a=-1}this.x=a}; +e.h=function(){switch(this.x){case -1:return XO();case 0:ei();var a=this.Zz.f4;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=X().I;a=Q(a,b)}}return a;case 1:ei();a=this.Zz.g4;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{b=X();var c=Ui().fa,d=wx();b=new HW(b,new JR(d),c);a=Q(a,b)}}return a;case 2:ei();a=this.Zz.h4;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=X(),c=X().I,d=X().I,b=nY(b,c,d),a=Q(a,b))}return a;default:throw a=this.x,my(new V,""+a);}}; +e.da=function(){CV(this,1,(ei(),N(z().w,A())));ei();L();var a=A();CV(this,2,M(0,a));FV(this,new p(7,0))&&DV(this,3,new (x(ja).M)(["idRef","children","decorations"]));return new Uj(this.yM,this.zM,this.AM)};e.$classData=v({e4:0},!1,"inrae.semantic_web.node.Abs$$anon$109$$anon$110",{e4:1,ab:1,b:1,Ga:1,ua:1});function oY(a){this.Ha=fa;this.x=0;this.ow=this.FM=this.EM=this.DM=this.CM=this.Ra=null;if(null===a)throw I(J(),null);this.ow=a;zV(this,a)}oY.prototype=new BV;oY.prototype.constructor=oY;e=oY.prototype; +e.Wa=function(a,b){switch(a){case 0:this.CM=b;break;case 1:this.DM=b;break;case 2:this.EM=b;break;case 3:this.FM=b;break;default:throw my(new V,""+a);}};e.j=function(a){X();switch(Ma(a)){case "expression":a=0;break;case "idRef":a=1;break;case "children":a=2;break;case "decorations":a=3;break;default:a=-1}this.x=a}; +e.h=function(){switch(this.x){case -1:return XO();case 0:Ri();var a=this.ow.o4;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=Nh().fA;a=Q(a,b)}}return a;case 1:Ri();a=this.ow.p4;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=X().I,a=Q(a,b))}return a;case 2:Ri();a=this.ow.q4;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{b=X();var c=Ui().fa,d=wx();b=new HW(b,new JR(d),c);a=Q(a,b)}}return a;case 3:Ri();a=this.ow.r4;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f: +(b=X(),c=X().I,d=X().I,b=nY(b,c,d),a=Q(a,b))}return a;default:throw a=this.x,my(new V,""+a);}};e.da=function(){CV(this,2,(Ri(),N(z().w,A())));Ri();L();var a=A();CV(this,3,M(0,a));FV(this,new p(15,0))&&DV(this,4,new (x(ja).M)(["expression","idRef","children","decorations"]));return new vj(this.CM,this.DM,this.EM,this.FM)};e.$classData=v({n4:0},!1,"inrae.semantic_web.node.Bind$$anon$97$$anon$98",{n4:1,ab:1,b:1,Ga:1,ua:1});function pY(){this.Je=this.Ie=this.Qe=this.V=this.U=this.D=null} +pY.prototype=new CQ;pY.prototype.constructor=pY;function qY(){}qY.prototype=pY.prototype;pY.prototype.Vh=function(){return!1};function rY(a){this.Ha=fa;this.x=0;this.bA=this.KM=this.JM=this.IM=this.Ra=null;if(null===a)throw I(J(),null);this.bA=a;zV(this,a)}rY.prototype=new BV;rY.prototype.constructor=rY;e=rY.prototype;e.Wa=function(a,b){switch(a){case 0:this.IM=b;break;case 1:this.JM=b;break;case 2:this.KM=b;break;default:throw my(new V,""+a);}}; +e.j=function(a){X();switch(Ma(a)){case "idRef":a=0;break;case "children":a=1;break;case "decorations":a=2;break;default:a=-1}this.x=a}; +e.h=function(){switch(this.x){case -1:return XO();case 0:gi();var a=this.bA.y4;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=X().I;a=Q(a,b)}}return a;case 1:gi();a=this.bA.z4;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{b=X();var c=Ui().fa,d=wx();b=new HW(b,new JR(d),c);a=Q(a,b)}}return a;case 2:gi();a=this.bA.A4;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=X(),c=X().I,d=X().I,b=nY(b,c,d),a=Q(a,b))}return a;default:throw a=this.x,my(new V,""+a);}}; +e.da=function(){CV(this,1,(gi(),N(z().w,A())));gi();L();var a=A();CV(this,2,M(0,a));FV(this,new p(7,0))&&DV(this,3,new (x(ja).M)(["idRef","children","decorations"]));return new Xj(this.IM,this.JM,this.KM)};e.$classData=v({x4:0},!1,"inrae.semantic_web.node.Ceil$$anon$115$$anon$116",{x4:1,ab:1,b:1,Ga:1,ua:1});function sY(a){this.Ha=fa;this.x=0;this.MM=this.Ra=null;this.NM=!1;this.Xs=this.QM=this.PM=this.OM=null;if(null===a)throw I(J(),null);this.Xs=a;zV(this,a)}sY.prototype=new BV; +sY.prototype.constructor=sY;e=sY.prototype;e.Wa=function(a,b){switch(a){case 0:this.MM=b;break;case 1:this.NM=!!b;break;case 2:this.OM=b;break;case 3:this.PM=b;break;case 4:this.QM=b;break;default:throw my(new V,""+a);}};e.j=function(a){X();switch(Ma(a)){case "value":a=0;break;case "negation":a=1;break;case "idRef":a=2;break;case "children":a=3;break;case "decorations":a=4;break;default:a=-1}this.x=a}; +e.h=function(){switch(this.x){case -1:return XO();case 0:Uh();var a=this.Xs.G4;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=Nk().mb;a=Q(a,b)}}return a;case 1:Uh();a=this.Xs.H4;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=X().qg,a=Q(a,b))}return a;case 2:Uh();a=this.Xs.I4;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=X().I,a=Q(a,b))}return a;case 3:Uh();a=this.Xs.J4;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{b=X();var c=Ui().fa,d=wx();b=new HW(b,new JR(d), +c);a=Q(a,b)}}return a;case 4:Uh();a=this.Xs.K4;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=X(),c=X().I,d=X().I,b=nY(b,c,d),a=Q(a,b))}return a;default:throw a=this.x,my(new V,""+a);}};e.da=function(){CV(this,3,(Uh(),N(z().w,A())));Uh();L();var a=A();CV(this,4,M(0,a));FV(this,new p(31,0))&&DV(this,5,new (x(ja).M)(["value","negation","idRef","children","decorations"]));return new ek(this.MM,this.NM,this.OM,this.PM,this.QM)}; +e.$classData=v({F4:0},!1,"inrae.semantic_web.node.Contains$$anon$43$$anon$44",{F4:1,ab:1,b:1,Ga:1,ua:1});function tY(a){this.Ha=fa;this.x=0;this.SM=this.Ra=null;this.TM=!1;this.Ys=this.WM=this.VM=this.UM=null;if(null===a)throw I(J(),null);this.Ys=a;zV(this,a)}tY.prototype=new BV;tY.prototype.constructor=tY;e=tY.prototype;e.Wa=function(a,b){switch(a){case 0:this.SM=b;break;case 1:this.TM=!!b;break;case 2:this.UM=b;break;case 3:this.VM=b;break;case 4:this.WM=b;break;default:throw my(new V,""+a);}}; +e.j=function(a){X();switch(Ma(a)){case "listVarToCount":a=0;break;case "distinct":a=1;break;case "idRef":a=2;break;case "children":a=3;break;case "decorations":a=4;break;default:a=-1}this.x=a}; +e.h=function(){switch(this.x){case -1:return XO();case 0:Bh();var a=this.Ys.Q4;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=X(),c=bl().Ui,d=wx();b=new HW(b,new JR(d),c);a=Q(a,b)}}return a;case 1:Bh();a=this.Ys.R4;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=X().qg,a=Q(a,b))}return a;case 2:Bh();a=this.Ys.S4;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=X().I,a=Q(a,b))}return a;case 3:Bh();a=this.Ys.T4;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=X(),c=Ui().fa, +d=wx(),b=new HW(b,new JR(d),c),a=Q(a,b))}return a;case 4:Bh();a=this.Ys.U4;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=X(),c=X().I,d=X().I,b=nY(b,c,d),a=Q(a,b))}return a;default:throw a=this.x,my(new V,""+a);}};e.da=function(){CV(this,1,(Bh(),!1));CV(this,3,(Bh(),N(z().w,A())));Bh();L();var a=A();CV(this,4,M(0,a));FV(this,new p(31,0))&&DV(this,5,new (x(ja).M)(["listVarToCount","distinct","idRef","children","decorations"]));return new Rj(this.SM,this.TM,this.UM,this.VM,this.WM)}; +e.$classData=v({P4:0},!1,"inrae.semantic_web.node.Count$$anon$130$$anon$131",{P4:1,ab:1,b:1,Ga:1,ua:1});function uY(a){this.Ha=fa;this.x=0;this.cA=this.$M=this.ZM=this.YM=this.Ra=null;if(null===a)throw I(J(),null);this.cA=a;zV(this,a)}uY.prototype=new BV;uY.prototype.constructor=uY;e=uY.prototype;e.Wa=function(a,b){switch(a){case 0:this.YM=b;break;case 1:this.ZM=b;break;case 2:this.$M=b;break;default:throw my(new V,""+a);}}; +e.j=function(a){X();switch(Ma(a)){case "idRef":a=0;break;case "children":a=1;break;case "decorations":a=2;break;default:a=-1}this.x=a}; +e.h=function(){switch(this.x){case -1:return XO();case 0:ri();var a=this.cA.$4;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=X().I;a=Q(a,b)}}return a;case 1:ri();a=this.cA.a5;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{b=X();var c=Ui().fa,d=wx();b=new HW(b,new JR(d),c);a=Q(a,b)}}return a;case 2:ri();a=this.cA.b5;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=X(),c=X().I,d=X().I,b=nY(b,c,d),a=Q(a,b))}return a;default:throw a=this.x,my(new V,""+a);}}; +e.da=function(){CV(this,1,(ri(),N(z().w,A())));ri();L();var a=A();CV(this,2,M(0,a));FV(this,new p(7,0))&&DV(this,3,new (x(ja).M)(["idRef","children","decorations"]));return new Zj(this.YM,this.ZM,this.$M)};e.$classData=v({Z4:0},!1,"inrae.semantic_web.node.Datatype$$anon$124$$anon$125",{Z4:1,ab:1,b:1,Ga:1,ua:1});function vY(a){this.Ha=fa;this.x=0;this.Zs=this.fN=this.eN=this.dN=this.cN=this.bN=this.Ra=null;if(null===a)throw I(J(),null);this.Zs=a;zV(this,a)}vY.prototype=new BV; +vY.prototype.constructor=vY;e=vY.prototype;e.Wa=function(a,b){switch(a){case 0:this.bN=b;break;case 1:this.cN=b;break;case 2:this.dN=b;break;case 3:this.eN=b;break;case 4:this.fN=b;break;default:throw my(new V,""+a);}};e.j=function(a){X();switch(Ma(a)){case "refNode":a=0;break;case "property":a=1;break;case "idRef":a=2;break;case "children":a=3;break;case "decorations":a=4;break;default:a=-1}this.x=a}; +e.h=function(){switch(this.x){case -1:return XO();case 0:Pi();var a=this.Zs.h5;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=X().I;a=Q(a,b)}}return a;case 1:Pi();a=this.Zs.i5;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=Xi().pA,a=Q(a,b))}return a;case 2:Pi();a=this.Zs.j5;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=X().I,a=Q(a,b))}return a;case 3:Pi();a=this.Zs.k5;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{b=X();var c=Ui().fa,d=wx();b=new HW(b,new JR(d), +c);a=Q(a,b)}}return a;case 4:Pi();a=this.Zs.l5;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=X(),c=X().I,d=X().I,b=nY(b,c,d),a=Q(a,b))}return a;default:throw a=this.x,my(new V,""+a);}};e.da=function(){CV(this,3,(Pi(),N(z().w,A())));Pi();L();var a=A();CV(this,4,M(0,a));FV(this,new p(31,0))&&DV(this,5,new (x(ja).M)(["refNode","property","idRef","children","decorations"]));return new Bk(this.bN,this.cN,this.dN,this.eN,this.fN)}; +e.$classData=v({g5:0},!1,"inrae.semantic_web.node.DatatypeNode$$anon$70$$anon$71",{g5:1,ab:1,b:1,Ga:1,ua:1});function wY(a){this.Ha=fa;this.x=0;this.eA=this.iN=this.hN=this.gN=this.Ra=null;if(null===a)throw I(J(),null);this.eA=a;zV(this,a)}wY.prototype=new BV;wY.prototype.constructor=wY;e=wY.prototype;e.Wa=function(a,b){switch(a){case 0:this.gN=b;break;case 1:this.hN=b;break;case 2:this.iN=b;break;default:throw my(new V,""+a);}}; +e.j=function(a){X();switch(Ma(a)){case "idRef":a=0;break;case "children":a=1;break;case "decorations":a=2;break;default:a=-1}this.x=a}; +e.h=function(){switch(this.x){case -1:return XO();case 0:hj();var a=this.eA.r5;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=X().I;a=Q(a,b)}}return a;case 1:hj();a=this.eA.s5;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{b=X();var c=Ui().fa,d=wx();b=new HW(b,new JR(d),c);a=Q(a,b)}}return a;case 2:hj();a=this.eA.t5;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=X(),c=X().I,d=X().I,b=nY(b,c,d),a=Q(a,b))}return a;default:throw a=this.x,my(new V,""+a);}}; +e.da=function(){CV(this,1,(hj(),N(z().w,A())));hj();L();var a=A();CV(this,2,M(0,a));FV(this,new p(7,0))&&DV(this,3,new (x(ja).M)(["idRef","children","decorations"]));return new Aj(this.gN,this.hN,this.iN)};e.$classData=v({q5:0},!1,"inrae.semantic_web.node.Distinct$$anon$85$$anon$86",{q5:1,ab:1,b:1,Ga:1,ua:1});function xY(a){this.Ha=fa;this.x=0;this.kN=this.Ra=null;this.lN=!1;this.at=this.oN=this.nN=this.mN=null;if(null===a)throw I(J(),null);this.at=a;zV(this,a)}xY.prototype=new BV; +xY.prototype.constructor=xY;e=xY.prototype;e.Wa=function(a,b){switch(a){case 0:this.kN=b;break;case 1:this.lN=!!b;break;case 2:this.mN=b;break;case 3:this.nN=b;break;case 4:this.oN=b;break;default:throw my(new V,""+a);}};e.j=function(a){X();switch(Ma(a)){case "value":a=0;break;case "negation":a=1;break;case "idRef":a=2;break;case "children":a=3;break;case "decorations":a=4;break;default:a=-1}this.x=a}; +e.h=function(){switch(this.x){case -1:return XO();case 0:Xh();var a=this.at.z5;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=Nk().mb;a=Q(a,b)}}return a;case 1:Xh();a=this.at.A5;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=X().qg,a=Q(a,b))}return a;case 2:Xh();a=this.at.B5;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=X().I,a=Q(a,b))}return a;case 3:Xh();a=this.at.C5;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{b=X();var c=Ui().fa,d=wx();b=new HW(b,new JR(d), +c);a=Q(a,b)}}return a;case 4:Xh();a=this.at.D5;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=X(),c=X().I,d=X().I,b=nY(b,c,d),a=Q(a,b))}return a;default:throw a=this.x,my(new V,""+a);}};e.da=function(){CV(this,3,(Xh(),N(z().w,A())));Xh();L();var a=A();CV(this,4,M(0,a));FV(this,new p(31,0))&&DV(this,5,new (x(ja).M)(["value","negation","idRef","children","decorations"]));return new hk(this.kN,this.lN,this.mN,this.nN,this.oN)}; +e.$classData=v({y5:0},!1,"inrae.semantic_web.node.Equal$$anon$52$$anon$53",{y5:1,ab:1,b:1,Ga:1,ua:1});function yY(a){this.Ha=fa;this.x=0;this.gA=this.tN=this.sN=this.rN=this.Ra=null;if(null===a)throw I(J(),null);this.gA=a;zV(this,a)}yY.prototype=new BV;yY.prototype.constructor=yY;e=yY.prototype;e.Wa=function(a,b){switch(a){case 0:this.rN=b;break;case 1:this.sN=b;break;case 2:this.tN=b;break;default:throw my(new V,""+a);}}; +e.j=function(a){X();switch(Ma(a)){case "idRef":a=0;break;case "children":a=1;break;case "decorations":a=2;break;default:a=-1}this.x=a}; +e.h=function(){switch(this.x){case -1:return XO();case 0:hi();var a=this.gA.L5;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=X().I;a=Q(a,b)}}return a;case 1:hi();a=this.gA.M5;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{b=X();var c=Ui().fa,d=wx();b=new HW(b,new JR(d),c);a=Q(a,b)}}return a;case 2:hi();a=this.gA.N5;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=X(),c=X().I,d=X().I,b=nY(b,c,d),a=Q(a,b))}return a;default:throw a=this.x,my(new V,""+a);}}; +e.da=function(){CV(this,1,(hi(),N(z().w,A())));hi();L();var a=A();CV(this,2,M(0,a));FV(this,new p(7,0))&&DV(this,3,new (x(ja).M)(["idRef","children","decorations"]));return new Wj(this.rN,this.sN,this.tN)};e.$classData=v({K5:0},!1,"inrae.semantic_web.node.Floor$$anon$118$$anon$119",{K5:1,ab:1,b:1,Ga:1,ua:1});function zY(){this.Je=this.Ie=this.Qe=this.V=this.U=this.D=null}zY.prototype=new CQ;zY.prototype.constructor=zY;function AY(){}AY.prototype=zY.prototype; +function BY(){this.Je=this.Ie=this.Qe=this.V=this.U=this.D=null}BY.prototype=new CQ;BY.prototype.constructor=BY;function CY(){}CY.prototype=BY.prototype;function DY(){this.Je=this.Ie=this.Qe=this.V=this.U=this.D=null}DY.prototype=new CQ;DY.prototype.constructor=DY;function EY(){}EY.prototype=DY.prototype;function FY(a){this.Ha=fa;this.x=0;this.yN=this.Ra=null;this.zN=!1;this.ct=this.CN=this.BN=this.AN=null;if(null===a)throw I(J(),null);this.ct=a;zV(this,a)}FY.prototype=new BV; +FY.prototype.constructor=FY;e=FY.prototype;e.Wa=function(a,b){switch(a){case 0:this.yN=b;break;case 1:this.zN=!!b;break;case 2:this.AN=b;break;case 3:this.BN=b;break;case 4:this.CN=b;break;default:throw my(new V,""+a);}};e.j=function(a){X();switch(Ma(a)){case "value":a=0;break;case "negation":a=1;break;case "idRef":a=2;break;case "children":a=3;break;case "decorations":a=4;break;default:a=-1}this.x=a}; +e.h=function(){switch(this.x){case -1:return XO();case 0:Zh();var a=this.ct.X5;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=Nk().mb;a=Q(a,b)}}return a;case 1:Zh();a=this.ct.Y5;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=X().qg,a=Q(a,b))}return a;case 2:Zh();a=this.ct.Z5;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=X().I,a=Q(a,b))}return a;case 3:Zh();a=this.ct.$5;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{b=X();var c=Ui().fa,d=wx();b=new HW(b,new JR(d), +c);a=Q(a,b)}}return a;case 4:Zh();a=this.ct.a6;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=X(),c=X().I,d=X().I,b=nY(b,c,d),a=Q(a,b))}return a;default:throw a=this.x,my(new V,""+a);}};e.da=function(){CV(this,3,(Zh(),N(z().w,A())));Zh();L();var a=A();CV(this,4,M(0,a));FV(this,new p(31,0))&&DV(this,5,new (x(ja).M)(["value","negation","idRef","children","decorations"]));return new jk(this.yN,this.zN,this.AN,this.BN,this.CN)}; +e.$classData=v({W5:0},!1,"inrae.semantic_web.node.Inf$$anon$58$$anon$59",{W5:1,ab:1,b:1,Ga:1,ua:1});function GY(a){this.Ha=fa;this.x=0;this.EN=this.Ra=null;this.FN=!1;this.dt=this.IN=this.HN=this.GN=null;if(null===a)throw I(J(),null);this.dt=a;zV(this,a)}GY.prototype=new BV;GY.prototype.constructor=GY;e=GY.prototype;e.Wa=function(a,b){switch(a){case 0:this.EN=b;break;case 1:this.FN=!!b;break;case 2:this.GN=b;break;case 3:this.HN=b;break;case 4:this.IN=b;break;default:throw my(new V,""+a);}}; +e.j=function(a){X();switch(Ma(a)){case "value":a=0;break;case "negation":a=1;break;case "idRef":a=2;break;case "children":a=3;break;case "decorations":a=4;break;default:a=-1}this.x=a}; +e.h=function(){switch(this.x){case -1:return XO();case 0:$h();var a=this.dt.g6;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=Nk().mb;a=Q(a,b)}}return a;case 1:$h();a=this.dt.h6;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=X().qg,a=Q(a,b))}return a;case 2:$h();a=this.dt.i6;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=X().I,a=Q(a,b))}return a;case 3:$h();a=this.dt.j6;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{b=X();var c=Ui().fa,d=wx();b=new HW(b,new JR(d), +c);a=Q(a,b)}}return a;case 4:$h();a=this.dt.k6;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=X(),c=X().I,d=X().I,b=nY(b,c,d),a=Q(a,b))}return a;default:throw a=this.x,my(new V,""+a);}};e.da=function(){CV(this,3,($h(),N(z().w,A())));$h();L();var a=A();CV(this,4,M(0,a));FV(this,new p(31,0))&&DV(this,5,new (x(ja).M)(["value","negation","idRef","children","decorations"]));return new kk(this.EN,this.FN,this.GN,this.HN,this.IN)}; +e.$classData=v({f6:0},!1,"inrae.semantic_web.node.InfEqual$$anon$61$$anon$62",{f6:1,ab:1,b:1,Ga:1,ua:1});function HY(a){this.Ha=fa;this.x=0;this.pw=this.NN=this.MN=this.LN=this.KN=this.Ra=null;if(null===a)throw I(J(),null);this.pw=a;zV(this,a)}HY.prototype=new BV;HY.prototype.constructor=HY;e=HY.prototype;e.Wa=function(a,b){switch(a){case 0:this.KN=b;break;case 1:this.LN=b;break;case 2:this.MN=b;break;case 3:this.NN=b;break;default:throw my(new V,""+a);}}; +e.j=function(a){X();switch(Ma(a)){case "term":a=0;break;case "idRef":a=1;break;case "children":a=2;break;case "decorations":a=3;break;default:a=-1}this.x=a}; +e.h=function(){switch(this.x){case -1:return XO();case 0:Hh();var a=this.pw.q6;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=Nk().mb;a=Q(a,b)}}return a;case 1:Hh();a=this.pw.r6;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=X().I,a=Q(a,b))}return a;case 2:Hh();a=this.pw.s6;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{b=X();var c=Ui().fa,d=wx();b=new HW(b,new JR(d),c);a=Q(a,b)}}return a;case 3:Hh();a=this.pw.t6;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f: +(b=X(),c=X().I,d=X().I,b=nY(b,c,d),a=Q(a,b))}return a;default:throw a=this.x,my(new V,""+a);}};e.da=function(){CV(this,2,(Hh(),N(z().w,A())));Hh();L();var a=A();CV(this,3,M(0,a));FV(this,new p(15,0))&&DV(this,4,new (x(ja).M)(["term","idRef","children","decorations"]));return new bk(this.KN,this.LN,this.MN,this.NN)};e.$classData=v({p6:0},!1,"inrae.semantic_web.node.Lang$$anon$136$$anon$137",{p6:1,ab:1,b:1,Ga:1,ua:1}); +function IY(a){this.Ha=fa;this.x=0;this.qw=this.SN=this.RN=this.QN=this.PN=this.Ra=null;if(null===a)throw I(J(),null);this.qw=a;zV(this,a)}IY.prototype=new BV;IY.prototype.constructor=IY;e=IY.prototype;e.Wa=function(a,b){switch(a){case 0:this.PN=b;break;case 1:this.QN=b;break;case 2:this.RN=b;break;case 3:this.SN=b;break;default:throw my(new V,""+a);}}; +e.j=function(a){X();switch(Ma(a)){case "term":a=0;break;case "idRef":a=1;break;case "children":a=2;break;case "decorations":a=3;break;default:a=-1}this.x=a}; +e.h=function(){switch(this.x){case -1:return XO();case 0:Ih();var a=this.qw.z6;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=Nk().mb;a=Q(a,b)}}return a;case 1:Ih();a=this.qw.A6;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=X().I,a=Q(a,b))}return a;case 2:Ih();a=this.qw.B6;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{b=X();var c=Ui().fa,d=wx();b=new HW(b,new JR(d),c);a=Q(a,b)}}return a;case 3:Ih();a=this.qw.C6;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f: +(b=X(),c=X().I,d=X().I,b=nY(b,c,d),a=Q(a,b))}return a;default:throw a=this.x,my(new V,""+a);}};e.da=function(){CV(this,2,(Ih(),N(z().w,A())));Ih();L();var a=A();CV(this,3,M(0,a));FV(this,new p(15,0))&&DV(this,4,new (x(ja).M)(["term","idRef","children","decorations"]));return new ck(this.PN,this.QN,this.RN,this.SN)};e.$classData=v({y6:0},!1,"inrae.semantic_web.node.LangMatches$$anon$139$$anon$140",{y6:1,ab:1,b:1,Ga:1,ua:1}); +function JY(a){this.Ha=fa;this.x=0;this.Ra=null;this.UN=0;this.rw=this.XN=this.WN=this.VN=null;if(null===a)throw I(J(),null);this.rw=a;zV(this,a)}JY.prototype=new BV;JY.prototype.constructor=JY;e=JY.prototype;e.Wa=function(a,b){switch(a){case 0:this.UN=b|0;break;case 1:this.VN=b;break;case 2:this.WN=b;break;case 3:this.XN=b;break;default:throw my(new V,""+a);}}; +e.j=function(a){X();switch(Ma(a)){case "value":a=0;break;case "idRef":a=1;break;case "children":a=2;break;case "decorations":a=3;break;default:a=-1}this.x=a}; +e.h=function(){switch(this.x){case -1:return XO();case 0:kj();var a=this.rw.I6;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=X().tx;a=Q(a,b)}}return a;case 1:kj();a=this.rw.J6;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=X().I,a=Q(a,b))}return a;case 2:kj();a=this.rw.K6;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{b=X();var c=Ui().fa,d=wx();b=new HW(b,new JR(d),c);a=Q(a,b)}}return a;case 3:kj();a=this.rw.L6;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b= +X(),c=X().I,d=X().I,b=nY(b,c,d),a=Q(a,b))}return a;default:throw a=this.x,my(new V,""+a);}};e.da=function(){CV(this,2,(kj(),N(z().w,A())));kj();L();var a=A();CV(this,3,M(0,a));FV(this,new p(15,0))&&DV(this,4,new (x(ja).M)(["value","idRef","children","decorations"]));return new Gj(this.UN,this.VN,this.WN,this.XN)};e.$classData=v({H6:0},!1,"inrae.semantic_web.node.Limit$$anon$94$$anon$95",{H6:1,ab:1,b:1,Ga:1,ua:1}); +function KY(a){this.Ha=fa;this.x=0;this.sw=this.bO=this.aO=this.$N=this.ZN=this.Ra=null;if(null===a)throw I(J(),null);this.sw=a;zV(this,a)}KY.prototype=new BV;KY.prototype.constructor=KY;e=KY.prototype;e.Wa=function(a,b){switch(a){case 0:this.ZN=b;break;case 1:this.$N=b;break;case 2:this.aO=b;break;case 3:this.bO=b;break;default:throw my(new V,""+a);}}; +e.j=function(a){X();switch(Ma(a)){case "idRef":a=0;break;case "term":a=1;break;case "children":a=2;break;case "decorations":a=3;break;default:a=-1}this.x=a}; +e.h=function(){switch(this.x){case -1:return XO();case 0:$i();var a=this.sw.R6;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=X().I;a=Q(a,b)}}return a;case 1:$i();a=this.sw.S6;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=Nk().mb,a=Q(a,b))}return a;case 2:$i();a=this.sw.T6;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{b=X();var c=Ui().fa,d=wx();b=new HW(b,new JR(d),c);a=Q(a,b)}}return a;case 3:$i();a=this.sw.U6;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f: +(b=X(),c=X().I,d=X().I,b=nY(b,c,d),a=Q(a,b))}return a;default:throw a=this.x,my(new V,""+a);}};e.da=function(){CV(this,2,($i(),N(z().w,A())));$i();L();var a=A();CV(this,3,M(0,a));FV(this,new p(15,0))&&DV(this,4,new (x(ja).M)(["idRef","term","children","decorations"]));return new Mj(this.ZN,this.$N,this.aO,this.bO)};e.$classData=v({Q6:0},!1,"inrae.semantic_web.node.LinkFrom$$anon$16$$anon$17",{Q6:1,ab:1,b:1,Ga:1,ua:1}); +function LY(a){this.Ha=fa;this.x=0;this.tw=this.gO=this.fO=this.eO=this.dO=this.Ra=null;if(null===a)throw I(J(),null);this.tw=a;zV(this,a)}LY.prototype=new BV;LY.prototype.constructor=LY;e=LY.prototype;e.Wa=function(a,b){switch(a){case 0:this.dO=b;break;case 1:this.eO=b;break;case 2:this.fO=b;break;case 3:this.gO=b;break;default:throw my(new V,""+a);}}; +e.j=function(a){X();switch(Ma(a)){case "idRef":a=0;break;case "term":a=1;break;case "children":a=2;break;case "decorations":a=3;break;default:a=-1}this.x=a}; +e.h=function(){switch(this.x){case -1:return XO();case 0:Zi();var a=this.tw.$6;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=X().I;a=Q(a,b)}}return a;case 1:Zi();a=this.tw.a7;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=Nk().mb,a=Q(a,b))}return a;case 2:Zi();a=this.tw.b7;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{b=X();var c=Ui().fa,d=wx();b=new HW(b,new JR(d),c);a=Q(a,b)}}return a;case 3:Zi();a=this.tw.c7;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f: +(b=X(),c=X().I,d=X().I,b=nY(b,c,d),a=Q(a,b))}return a;default:throw a=this.x,my(new V,""+a);}};e.da=function(){CV(this,2,(Zi(),N(z().w,A())));Zi();L();var a=A();CV(this,3,M(0,a));FV(this,new p(15,0))&&DV(this,4,new (x(ja).M)(["idRef","term","children","decorations"]));return new Lj(this.dO,this.eO,this.fO,this.gO)};e.$classData=v({Z6:0},!1,"inrae.semantic_web.node.LinkTo$$anon$13$$anon$14",{Z6:1,ab:1,b:1,Ga:1,ua:1}); +function MY(a){this.Ha=fa;this.x=0;this.uw=this.lO=this.kO=this.jO=this.iO=this.Ra=null;if(null===a)throw I(J(),null);this.uw=a;zV(this,a)}MY.prototype=new BV;MY.prototype.constructor=MY;e=MY.prototype;e.Wa=function(a,b){switch(a){case 0:this.iO=b;break;case 1:this.jO=b;break;case 2:this.kO=b;break;case 3:this.lO=b;break;default:throw my(new V,""+a);}}; +e.j=function(a){X();switch(Ma(a)){case "terms":a=0;break;case "idRef":a=1;break;case "children":a=2;break;case "decorations":a=3;break;default:a=-1}this.x=a}; +e.h=function(){switch(this.x){case -1:return XO();case 0:Oi();var a=this.uw.i7;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=X(),c=Nk().mb,d=wx();b=new HW(b,new JR(d),c);a=Q(a,b)}}return a;case 1:Oi();a=this.uw.j7;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=X().I,a=Q(a,b))}return a;case 2:Oi();a=this.uw.k7;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=X(),c=Ui().fa,d=wx(),b=new HW(b,new JR(d),c),a=Q(a,b))}return a;case 3:Oi();a=this.uw.l7;if(a.e)a=a.f;else{if(null=== +a)throw P();a.e?a=a.f:(b=X(),c=X().I,d=X().I,b=nY(b,c,d),a=Q(a,b))}return a;default:throw a=this.x,my(new V,""+a);}};e.da=function(){CV(this,1,(Oi(),QK().g()));CV(this,2,(Oi(),N(z().w,A())));Oi();L();var a=A();CV(this,3,M(0,a));FV(this,new p(15,0))&&DV(this,4,new (x(ja).M)(["terms","idRef","children","decorations"]));return new Pj(this.iO,this.jO,this.kO,this.lO)};e.$classData=v({h7:0},!1,"inrae.semantic_web.node.ListValues$$anon$22$$anon$23",{h7:1,ab:1,b:1,Ga:1,ua:1}); +function NY(a){this.Ha=fa;this.x=0;this.vw=this.rO=this.qO=this.pO=this.oO=this.Ra=null;if(null===a)throw I(J(),null);this.vw=a;zV(this,a)}NY.prototype=new BV;NY.prototype.constructor=NY;e=NY.prototype;e.Wa=function(a,b){switch(a){case 0:this.oO=b;break;case 1:this.pO=b;break;case 2:this.qO=b;break;case 3:this.rO=b;break;default:throw my(new V,""+a);}}; +e.j=function(a){X();switch(Ma(a)){case "idRef":a=0;break;case "s":a=1;break;case "children":a=2;break;case "decorations":a=3;break;default:a=-1}this.x=a}; +e.h=function(){switch(this.x){case -1:return XO();case 0:vi();var a=this.vw.u7;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=X().I;a=Q(a,b)}}return a;case 1:vi();a=this.vw.v7;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=Ui().fa,a=Q(a,b))}return a;case 2:vi();a=this.vw.w7;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{b=X();var c=Ui().fa,d=wx();b=new HW(b,new JR(d),c);a=Q(a,b)}}return a;case 3:vi();a=this.vw.x7;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f: +(b=X(),c=X().I,d=X().I,b=nY(b,c,d),a=Q(a,b))}return a;default:throw a=this.x,my(new V,""+a);}};e.da=function(){CV(this,2,(vi(),N(z().w,A())));vi();L();var a=A();CV(this,3,M(0,a));FV(this,new p(15,0))&&DV(this,4,new (x(ja).M)(["idRef","s","children","decorations"]));return new Ak(this.oO,this.pO,this.qO,this.rO)};e.$classData=v({t7:0},!1,"inrae.semantic_web.node.NotBlock$$anon$28$$anon$29",{t7:1,ab:1,b:1,Ga:1,ua:1}); +function OY(a){this.Ha=fa;this.x=0;this.sO=this.Ra=null;this.tO=!1;this.ht=this.wO=this.vO=this.uO=null;if(null===a)throw I(J(),null);this.ht=a;zV(this,a)}OY.prototype=new BV;OY.prototype.constructor=OY;e=OY.prototype;e.Wa=function(a,b){switch(a){case 0:this.sO=b;break;case 1:this.tO=!!b;break;case 2:this.uO=b;break;case 3:this.vO=b;break;case 4:this.wO=b;break;default:throw my(new V,""+a);}}; +e.j=function(a){X();switch(Ma(a)){case "value":a=0;break;case "negation":a=1;break;case "idRef":a=2;break;case "children":a=3;break;case "decorations":a=4;break;default:a=-1}this.x=a}; +e.h=function(){switch(this.x){case -1:return XO();case 0:Yh();var a=this.ht.D7;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=Nk().mb;a=Q(a,b)}}return a;case 1:Yh();a=this.ht.E7;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=X().qg,a=Q(a,b))}return a;case 2:Yh();a=this.ht.F7;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=X().I,a=Q(a,b))}return a;case 3:Yh();a=this.ht.G7;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{b=X();var c=Ui().fa,d=wx();b=new HW(b,new JR(d), +c);a=Q(a,b)}}return a;case 4:Yh();a=this.ht.H7;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=X(),c=X().I,d=X().I,b=nY(b,c,d),a=Q(a,b))}return a;default:throw a=this.x,my(new V,""+a);}};e.da=function(){CV(this,3,(Yh(),N(z().w,A())));Yh();L();var a=A();CV(this,4,M(0,a));FV(this,new p(31,0))&&DV(this,5,new (x(ja).M)(["value","negation","idRef","children","decorations"]));return new ik(this.sO,this.tO,this.uO,this.vO,this.wO)}; +e.$classData=v({C7:0},!1,"inrae.semantic_web.node.NotEqual$$anon$55$$anon$56",{C7:1,ab:1,b:1,Ga:1,ua:1});function PY(a){this.Ha=fa;this.x=0;this.ww=this.BO=this.AO=this.zO=this.yO=this.Ra=null;if(null===a)throw I(J(),null);this.ww=a;zV(this,a)}PY.prototype=new BV;PY.prototype.constructor=PY;e=PY.prototype;e.Wa=function(a,b){switch(a){case 0:this.yO=b;break;case 1:this.zO=b;break;case 2:this.AO=b;break;case 3:this.BO=b;break;default:throw my(new V,""+a);}}; +e.j=function(a){X();switch(Ma(a)){case "idRef":a=0;break;case "term":a=1;break;case "children":a=2;break;case "decorations":a=3;break;default:a=-1}this.x=a}; +e.h=function(){switch(this.x){case -1:return XO();case 0:Yi();var a=this.ww.N7;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=X().I;a=Q(a,b)}}return a;case 1:Yi();a=this.ww.O7;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=Nk().mb,a=Q(a,b))}return a;case 2:Yi();a=this.ww.P7;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{b=X();var c=Ui().fa,d=wx();b=new HW(b,new JR(d),c);a=Q(a,b)}}return a;case 3:Yi();a=this.ww.Q7;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f: +(b=X(),c=X().I,d=X().I,b=nY(b,c,d),a=Q(a,b))}return a;default:throw a=this.x,my(new V,""+a);}};e.da=function(){CV(this,2,(Yi(),N(z().w,A())));Yi();L();var a=A();CV(this,3,M(0,a));FV(this,new p(15,0))&&DV(this,4,new (x(ja).M)(["idRef","term","children","decorations"]));return new Kj(this.yO,this.zO,this.AO,this.BO)};e.$classData=v({M7:0},!1,"inrae.semantic_web.node.ObjectOf$$anon$10$$anon$11",{M7:1,ab:1,b:1,Ga:1,ua:1}); +function QY(a){this.Ha=fa;this.x=0;this.Ra=null;this.DO=0;this.xw=this.GO=this.FO=this.EO=null;if(null===a)throw I(J(),null);this.xw=a;zV(this,a)}QY.prototype=new BV;QY.prototype.constructor=QY;e=QY.prototype;e.Wa=function(a,b){switch(a){case 0:this.DO=b|0;break;case 1:this.EO=b;break;case 2:this.FO=b;break;case 3:this.GO=b;break;default:throw my(new V,""+a);}}; +e.j=function(a){X();switch(Ma(a)){case "value":a=0;break;case "idRef":a=1;break;case "children":a=2;break;case "decorations":a=3;break;default:a=-1}this.x=a}; +e.h=function(){switch(this.x){case -1:return XO();case 0:jj();var a=this.xw.W7;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=X().tx;a=Q(a,b)}}return a;case 1:jj();a=this.xw.X7;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=X().I,a=Q(a,b))}return a;case 2:jj();a=this.xw.Y7;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{b=X();var c=Ui().fa,d=wx();b=new HW(b,new JR(d),c);a=Q(a,b)}}return a;case 3:jj();a=this.xw.Z7;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b= +X(),c=X().I,d=X().I,b=nY(b,c,d),a=Q(a,b))}return a;default:throw a=this.x,my(new V,""+a);}};e.da=function(){CV(this,2,(jj(),N(z().w,A())));jj();L();var a=A();CV(this,3,M(0,a));FV(this,new p(15,0))&&DV(this,4,new (x(ja).M)(["value","idRef","children","decorations"]));return new Hj(this.DO,this.EO,this.FO,this.GO)};e.$classData=v({V7:0},!1,"inrae.semantic_web.node.Offset$$anon$91$$anon$92",{V7:1,ab:1,b:1,Ga:1,ua:1}); +function RY(a){this.Ha=fa;this.x=0;this.yw=this.LO=this.KO=this.JO=this.IO=this.Ra=null;if(null===a)throw I(J(),null);this.yw=a;zV(this,a)}RY.prototype=new BV;RY.prototype.constructor=RY;e=RY.prototype;e.Wa=function(a,b){switch(a){case 0:this.IO=b;break;case 1:this.JO=b;break;case 2:this.KO=b;break;case 3:this.LO=b;break;default:throw my(new V,""+a);}}; +e.j=function(a){X();switch(Ma(a)){case "list":a=0;break;case "idRef":a=1;break;case "children":a=2;break;case "decorations":a=3;break;default:a=-1}this.x=a}; +e.h=function(){switch(this.x){case -1:return XO();case 0:cj();var a=this.yw.e8;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=X(),c=bl().Ui,d=wx();b=new HW(b,new JR(d),c);a=Q(a,b)}}return a;case 1:cj();a=this.yw.f8;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=X().I,a=Q(a,b))}return a;case 2:cj();a=this.yw.g8;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=X(),c=Ui().fa,d=wx(),b=new HW(b,new JR(d),c),a=Q(a,b))}return a;case 3:cj();a=this.yw.h8;if(a.e)a=a.f;else{if(null=== +a)throw P();a.e?a=a.f:(b=X(),c=X().I,d=X().I,b=nY(b,c,d),a=Q(a,b))}return a;default:throw a=this.x,my(new V,""+a);}};e.da=function(){CV(this,2,(cj(),N(z().w,A())));cj();L();var a=A();CV(this,3,M(0,a));FV(this,new p(15,0))&&DV(this,4,new (x(ja).M)(["list","idRef","children","decorations"]));return new Ej(this.IO,this.JO,this.KO,this.LO)};e.$classData=v({d8:0},!1,"inrae.semantic_web.node.OrderByAsc$$anon$76$$anon$77",{d8:1,ab:1,b:1,Ga:1,ua:1}); +function SY(a){this.Ha=fa;this.x=0;this.zw=this.QO=this.PO=this.OO=this.NO=this.Ra=null;if(null===a)throw I(J(),null);this.zw=a;zV(this,a)}SY.prototype=new BV;SY.prototype.constructor=SY;e=SY.prototype;e.Wa=function(a,b){switch(a){case 0:this.NO=b;break;case 1:this.OO=b;break;case 2:this.PO=b;break;case 3:this.QO=b;break;default:throw my(new V,""+a);}}; +e.j=function(a){X();switch(Ma(a)){case "list":a=0;break;case "idRef":a=1;break;case "children":a=2;break;case "decorations":a=3;break;default:a=-1}this.x=a}; +e.h=function(){switch(this.x){case -1:return XO();case 0:dj();var a=this.zw.n8;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=X(),c=bl().Ui,d=wx();b=new HW(b,new JR(d),c);a=Q(a,b)}}return a;case 1:dj();a=this.zw.o8;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=X().I,a=Q(a,b))}return a;case 2:dj();a=this.zw.p8;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=X(),c=Ui().fa,d=wx(),b=new HW(b,new JR(d),c),a=Q(a,b))}return a;case 3:dj();a=this.zw.q8;if(a.e)a=a.f;else{if(null=== +a)throw P();a.e?a=a.f:(b=X(),c=X().I,d=X().I,b=nY(b,c,d),a=Q(a,b))}return a;default:throw a=this.x,my(new V,""+a);}};e.da=function(){CV(this,2,(dj(),N(z().w,A())));dj();L();var a=A();CV(this,3,M(0,a));FV(this,new p(15,0))&&DV(this,4,new (x(ja).M)(["list","idRef","children","decorations"]));return new Fj(this.NO,this.OO,this.PO,this.QO)};e.$classData=v({m8:0},!1,"inrae.semantic_web.node.OrderByDesc$$anon$79$$anon$80",{m8:1,ab:1,b:1,Ga:1,ua:1}); +function TY(a){this.Ha=fa;this.x=0;this.Aw=this.WO=this.VO=this.UO=this.TO=this.Ra=null;if(null===a)throw I(J(),null);this.Aw=a;zV(this,a)}TY.prototype=new BV;TY.prototype.constructor=TY;e=TY.prototype;e.Wa=function(a,b){switch(a){case 0:this.TO=b;break;case 1:this.UO=b;break;case 2:this.VO=b;break;case 3:this.WO=b;break;default:throw my(new V,""+a);}}; +e.j=function(a){X();switch(Ma(a)){case "variables":a=0;break;case "idRef":a=1;break;case "children":a=2;break;case "decorations":a=3;break;default:a=-1}this.x=a}; +e.h=function(){switch(this.x){case -1:return XO();case 0:gj();var a=this.Aw.x8;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=X(),c=bl().Ui,d=wx();b=new HW(b,new JR(d),c);a=Q(a,b)}}return a;case 1:gj();a=this.Aw.y8;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=X().I,a=Q(a,b))}return a;case 2:gj();a=this.Aw.z8;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=X(),c=Ui().fa,d=wx(),b=new HW(b,new JR(d),c),a=Q(a,b))}return a;case 3:gj();a=this.Aw.A8;if(a.e)a=a.f;else{if(null=== +a)throw P();a.e?a=a.f:(b=X(),c=X().I,d=X().I,b=nY(b,c,d),a=Q(a,b))}return a;default:throw a=this.x,my(new V,""+a);}};e.da=function(){CV(this,2,(gj(),N(z().w,A())));gj();L();var a=A();CV(this,3,M(0,a));FV(this,new p(15,0))&&DV(this,4,new (x(ja).M)(["variables","idRef","children","decorations"]));return new Dj(this.TO,this.UO,this.VO,this.WO)};e.$classData=v({w8:0},!1,"inrae.semantic_web.node.Projection$$anon$82$$anon$83",{w8:1,ab:1,b:1,Ga:1,ua:1}); +function UY(a){this.Ha=fa;this.x=0;this.it=this.bP=this.aP=this.$O=this.ZO=this.YO=this.Ra=null;if(null===a)throw I(J(),null);this.it=a;zV(this,a)}UY.prototype=new BV;UY.prototype.constructor=UY;e=UY.prototype;e.Wa=function(a,b){switch(a){case 0:this.YO=b;break;case 1:this.ZO=b;break;case 2:this.$O=b;break;case 3:this.aP=b;break;case 4:this.bP=b;break;default:throw my(new V,""+a);}}; +e.j=function(a){X();switch(Ma(a)){case "var":a=0;break;case "expression":a=1;break;case "idRef":a=2;break;case "children":a=3;break;case "decorations":a=4;break;default:a=-1}this.x=a}; +e.h=function(){switch(this.x){case -1:return XO();case 0:Ti();var a=this.it.G8;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=bl().Ui;a=Q(a,b)}}return a;case 1:Ti();a=this.it.H8;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=Dh().$z,a=Q(a,b))}return a;case 2:Ti();a=this.it.I8;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=X().I,a=Q(a,b))}return a;case 3:Ti();a=this.it.J8;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{b=X();var c=Ui().fa,d=wx();b=new HW(b,new JR(d), +c);a=Q(a,b)}}return a;case 4:Ti();a=this.it.K8;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=X(),c=X().I,d=X().I,b=nY(b,c,d),a=Q(a,b))}return a;default:throw a=this.x,my(new V,""+a);}};e.da=function(){CV(this,3,(Ti(),N(z().w,A())));Ti();L();var a=A();CV(this,4,M(0,a));FV(this,new p(31,0))&&DV(this,5,new (x(ja).M)(["var","expression","idRef","children","decorations"]));return new Qj(this.YO,this.ZO,this.$O,this.aP,this.bP)}; +e.$classData=v({F8:0},!1,"inrae.semantic_web.node.ProjectionExpression$$anon$127$$anon$128",{F8:1,ab:1,b:1,Ga:1,ua:1});function VY(a){this.Ha=fa;this.x=0;this.iA=this.fP=this.eP=this.dP=this.Ra=null;if(null===a)throw I(J(),null);this.iA=a;zV(this,a)}VY.prototype=new BV;VY.prototype.constructor=VY;e=VY.prototype;e.Wa=function(a,b){switch(a){case 0:this.dP=b;break;case 1:this.eP=b;break;case 2:this.fP=b;break;default:throw my(new V,""+a);}}; +e.j=function(a){X();switch(Ma(a)){case "idRef":a=0;break;case "children":a=1;break;case "decorations":a=2;break;default:a=-1}this.x=a}; +e.h=function(){switch(this.x){case -1:return XO();case 0:ii();var a=this.iA.Q8;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=X().I;a=Q(a,b)}}return a;case 1:ii();a=this.iA.R8;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{b=X();var c=Ui().fa,d=wx();b=new HW(b,new JR(d),c);a=Q(a,b)}}return a;case 2:ii();a=this.iA.S8;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=X(),c=X().I,d=X().I,b=nY(b,c,d),a=Q(a,b))}return a;default:throw a=this.x,my(new V,""+a);}}; +e.da=function(){CV(this,1,(ii(),N(z().w,A())));ii();L();var a=A();CV(this,2,M(0,a));FV(this,new p(7,0))&&DV(this,3,new (x(ja).M)(["idRef","children","decorations"]));return new Yj(this.dP,this.eP,this.fP)};e.$classData=v({P8:0},!1,"inrae.semantic_web.node.Rand$$anon$121$$anon$122",{P8:1,ab:1,b:1,Ga:1,ua:1});function WY(a){this.Ha=fa;this.x=0;this.jA=this.kP=this.jP=this.iP=this.Ra=null;if(null===a)throw I(J(),null);this.jA=a;zV(this,a)}WY.prototype=new BV;WY.prototype.constructor=WY;e=WY.prototype; +e.Wa=function(a,b){switch(a){case 0:this.iP=b;break;case 1:this.jP=b;break;case 2:this.kP=b;break;default:throw my(new V,""+a);}};e.j=function(a){X();switch(Ma(a)){case "idRef":a=0;break;case "children":a=1;break;case "decorations":a=2;break;default:a=-1}this.x=a}; +e.h=function(){switch(this.x){case -1:return XO();case 0:ij();var a=this.jA.Z8;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=X().I;a=Q(a,b)}}return a;case 1:ij();a=this.jA.$8;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{b=X();var c=Ui().fa,d=wx();b=new HW(b,new JR(d),c);a=Q(a,b)}}return a;case 2:ij();a=this.jA.a9;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=X(),c=X().I,d=X().I,b=nY(b,c,d),a=Q(a,b))}return a;default:throw a=this.x,my(new V,""+a);}}; +e.da=function(){CV(this,1,(ij(),N(z().w,A())));ij();L();var a=A();CV(this,2,M(0,a));FV(this,new p(7,0))&&DV(this,3,new (x(ja).M)(["idRef","children","decorations"]));return new Cj(this.iP,this.jP,this.kP)};e.$classData=v({Y8:0},!1,"inrae.semantic_web.node.Reduced$$anon$88$$anon$89",{Y8:1,ab:1,b:1,Ga:1,ua:1});function XY(a){this.Ha=fa;this.x=0;this.nP=this.mP=this.Ra=null;this.oP=!1;this.jq=this.rP=this.qP=this.pP=null;if(null===a)throw I(J(),null);this.jq=a;zV(this,a)}XY.prototype=new BV; +XY.prototype.constructor=XY;e=XY.prototype;e.Wa=function(a,b){switch(a){case 0:this.mP=b;break;case 1:this.nP=b;break;case 2:this.oP=!!b;break;case 3:this.pP=b;break;case 4:this.qP=b;break;case 5:this.rP=b;break;default:throw my(new V,""+a);}};e.j=function(a){X();switch(Ma(a)){case "pattern":a=0;break;case "flags":a=1;break;case "negation":a=2;break;case "idRef":a=3;break;case "children":a=4;break;case "decorations":a=5;break;default:a=-1}this.x=a}; +e.h=function(){switch(this.x){case -1:return XO();case 0:Th();var a=this.jq.g9;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=Nk().mb;a=Q(a,b)}}return a;case 1:Th();a=this.jq.h9;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=Nk().mb,a=Q(a,b))}return a;case 2:Th();a=this.jq.i9;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=X().qg,a=Q(a,b))}return a;case 3:Th();a=this.jq.j9;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=X().I,a=Q(a,b))}return a;case 4:Th();a=this.jq.k9; +if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{b=X();var c=Ui().fa,d=wx();b=new HW(b,new JR(d),c);a=Q(a,b)}}return a;case 5:Th();a=this.jq.l9;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=X(),c=X().I,d=X().I,b=nY(b,c,d),a=Q(a,b))}return a;default:throw a=this.x,my(new V,""+a);}}; +e.da=function(){CV(this,4,(Th(),N(z().w,A())));Th();L();var a=A();CV(this,5,M(0,a));FV(this,new p(63,0))&&DV(this,6,new (x(ja).M)("pattern flags negation idRef children decorations".split(" ")));return new dk(this.mP,this.nP,this.oP,this.pP,this.qP,this.rP)};e.$classData=v({f9:0},!1,"inrae.semantic_web.node.Regex$$anon$40$$anon$41",{f9:1,ab:1,b:1,Ga:1,ua:1}); +function YY(a){this.Ha=fa;this.x=0;this.nq=this.yP=this.xP=this.wP=this.vP=this.uP=this.tP=this.Ra=null;if(null===a)throw I(J(),null);this.nq=a;zV(this,a)}YY.prototype=new BV;YY.prototype.constructor=YY;e=YY.prototype;e.Wa=function(a,b){switch(a){case 0:this.tP=b;break;case 1:this.uP=b;break;case 2:this.vP=b;break;case 3:this.wP=b;break;case 4:this.xP=b;break;case 5:this.yP=b;break;default:throw my(new V,""+a);}}; +e.j=function(a){X();switch(Ma(a)){case "pattern":a=0;break;case "replacement":a=1;break;case "flags":a=2;break;case "idRef":a=3;break;case "children":a=4;break;case "decorations":a=5;break;default:a=-1}this.x=a}; +e.h=function(){switch(this.x){case -1:return XO();case 0:mi();var a=this.nq.r9;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=Nk().mb;a=Q(a,b)}}return a;case 1:mi();a=this.nq.s9;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=Nk().mb,a=Q(a,b))}return a;case 2:mi();a=this.nq.t9;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=Nk().mb,a=Q(a,b))}return a;case 3:mi();a=this.nq.u9;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=X().I,a=Q(a,b))}return a;case 4:mi();a=this.nq.v9; +if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{b=X();var c=Ui().fa,d=wx();b=new HW(b,new JR(d),c);a=Q(a,b)}}return a;case 5:mi();a=this.nq.w9;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=X(),c=X().I,d=X().I,b=nY(b,c,d),a=Q(a,b))}return a;default:throw a=this.x,my(new V,""+a);}}; +e.da=function(){CV(this,4,(mi(),N(z().w,A())));mi();L();var a=A();CV(this,5,M(0,a));FV(this,new p(63,0))&&DV(this,6,new (x(ja).M)("pattern replacement flags idRef children decorations".split(" ")));return new Tj(this.tP,this.uP,this.vP,this.wP,this.xP,this.yP)};e.$classData=v({q9:0},!1,"inrae.semantic_web.node.Replace$$anon$106$$anon$107",{q9:1,ab:1,b:1,Ga:1,ua:1}); +function ZY(a){this.Ha=fa;this.x=0;this.Ti=this.CP=this.KP=this.JP=this.IP=this.HP=this.GP=this.FP=this.EP=this.DP=this.BP=this.AP=this.Ra=null;if(null===a)throw I(J(),null);this.Ti=a;zV(this,a)}ZY.prototype=new BV;ZY.prototype.constructor=ZY;e=ZY.prototype; +e.Wa=function(a,b){switch(a){case 0:this.AP=b;break;case 1:this.BP=b;break;case 2:this.DP=b;break;case 3:this.EP=b;break;case 4:this.FP=b;break;case 5:this.GP=b;break;case 6:this.HP=b;break;case 7:this.IP=b;break;case 8:this.JP=b;break;case 9:this.KP=b;break;case 10:this.CP=b;break;default:throw my(new V,""+a);}}; +e.j=function(a){X();switch(Ma(a)){case "idRef":a=0;break;case "prefixes":a=1;break;case "directives":a=2;break;case "defaultGraph":a=3;break;case "namedGraph":a=4;break;case "lDatatypeNode":a=5;break;case "lSourcesNodes":a=6;break;case "lBindNode":a=7;break;case "lSolutionSequenceModifierNode":a=8;break;case "children":a=9;break;case "decorations":a=10;break;default:a=-1}this.x=a}; +e.h=function(){switch(this.x){case -1:return XO();case 0:Ki();var a=this.Ti.C9;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=X().I;a=Q(a,b)}}return a;case 1:Ki();a=this.Ti.D9;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{b=X();var c=X().I,d=Yk().Un;b=nY(b,c,d);a=Q(a,b)}}return a;case 2:Ki();a=this.Ti.F9;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=X(),c=X().I,d=wx(),b=new HW(b,new JR(d),c),a=Q(a,b))}return a;case 3:Ki();a=this.Ti.G9;if(a.e)a=a.f;else{if(null=== +a)throw P();a.e?a=a.f:(b=X(),c=Yk().Un,d=wx(),b=new HW(b,new JR(d),c),a=Q(a,b))}return a;case 4:Ki();a=this.Ti.H9;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=X(),c=Yk().Un,d=wx(),b=new HW(b,new JR(d),c),a=Q(a,b))}return a;case 5:Ki();a=this.Ti.I9;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=X(),c=Pi().dA,d=wx(),b=new HW(b,new JR(d),c),a=Q(a,b))}return a;case 6:Ki();a=this.Ti.J9;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=X(),c=Qi().oA,d=wx(),b=new HW(b,new JR(d),c),a=Q(a, +b))}return a;case 7:Ki();a=this.Ti.K9;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=X(),c=Ri().aA,d=wx(),b=new HW(b,new JR(d),c),a=Q(a,b))}return a;case 8:Ki();a=this.Ti.L9;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=X(),c=Si().mA,d=wx(),b=new HW(b,new JR(d),c),a=Q(a,b))}return a;case 9:Ki();a=this.Ti.M9;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=X(),c=Ui().fa,d=wx(),b=new HW(b,new JR(d),c),a=Q(a,b))}return a;case 10:Ki();a=this.Ti.E9;if(a.e)a=a.f;else{if(null===a)throw P(); +a.e?a=a.f:(b=X(),c=X().I,d=X().I,b=nY(b,c,d),a=Q(a,b))}return a;default:throw a=this.x,my(new V,""+a);}}; +e.da=function(){CV(this,0,(Ki(),QK().g()));CV(this,1,EF());CV(this,2,(Ki(),N(z().w,A())));Ki();z();var a=A();CV(this,3,Xb(A(),a));Ki();z();a=A();CV(this,4,Xb(A(),a));Ki();z();a=A();CV(this,5,Xb(A(),a));Ki();z();a=A();CV(this,6,Xb(A(),a));Ki();z();a=A();CV(this,7,Xb(A(),a));Ki();z();a=A();CV(this,8,Xb(A(),a));CV(this,9,(Ki(),N(z().w,A())));Ki();L();a=A();CV(this,10,M(0,a));FV(this,new p(2047,0))&&DV(this,11,new (x(ja).M)("idRef prefixes directives defaultGraph namedGraph lDatatypeNode lSourcesNodes lBindNode lSolutionSequenceModifierNode children decorations".split(" "))); +return new uj(this.AP,this.BP,this.DP,this.EP,this.FP,this.GP,this.HP,this.IP,this.JP,this.KP,this.CP)};e.$classData=v({B9:0},!1,"inrae.semantic_web.node.Root$$anon$1$$anon$2",{B9:1,ab:1,b:1,Ga:1,ua:1});function $Y(a){this.Ha=fa;this.x=0;this.lA=this.NP=this.MP=this.LP=this.Ra=null;if(null===a)throw I(J(),null);this.lA=a;zV(this,a)}$Y.prototype=new BV;$Y.prototype.constructor=$Y;e=$Y.prototype; +e.Wa=function(a,b){switch(a){case 0:this.LP=b;break;case 1:this.MP=b;break;case 2:this.NP=b;break;default:throw my(new V,""+a);}};e.j=function(a){X();switch(Ma(a)){case "idRef":a=0;break;case "children":a=1;break;case "decorations":a=2;break;default:a=-1}this.x=a}; +e.h=function(){switch(this.x){case -1:return XO();case 0:fi();var a=this.lA.S9;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=X().I;a=Q(a,b)}}return a;case 1:fi();a=this.lA.T9;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{b=X();var c=Ui().fa,d=wx();b=new HW(b,new JR(d),c);a=Q(a,b)}}return a;case 2:fi();a=this.lA.U9;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=X(),c=X().I,d=X().I,b=nY(b,c,d),a=Q(a,b))}return a;default:throw a=this.x,my(new V,""+a);}}; +e.da=function(){CV(this,1,(fi(),N(z().w,A())));fi();L();var a=A();CV(this,2,M(0,a));FV(this,new p(7,0))&&DV(this,3,new (x(ja).M)(["idRef","children","decorations"]));return new Vj(this.LP,this.MP,this.NP)};e.$classData=v({R9:0},!1,"inrae.semantic_web.node.Round$$anon$112$$anon$113",{R9:1,ab:1,b:1,Ga:1,ua:1});function aZ(a){this.Ha=fa;this.x=0;this.nA=this.RP=this.QP=this.PP=this.Ra=null;if(null===a)throw I(J(),null);this.nA=a;zV(this,a)}aZ.prototype=new BV;aZ.prototype.constructor=aZ;e=aZ.prototype; +e.Wa=function(a,b){switch(a){case 0:this.PP=b;break;case 1:this.QP=b;break;case 2:this.RP=b;break;default:throw my(new V,""+a);}};e.j=function(a){X();switch(Ma(a)){case "idRef":a=0;break;case "children":a=1;break;case "decorations":a=2;break;default:a=-1}this.x=a}; +e.h=function(){switch(this.x){case -1:return XO();case 0:Wi();var a=this.nA.a$;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=X().I;a=Q(a,b)}}return a;case 1:Wi();a=this.nA.b$;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{b=X();var c=Ui().fa,d=wx();b=new HW(b,new JR(d),c);a=Q(a,b)}}return a;case 2:Wi();a=this.nA.c$;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=X(),c=X().I,d=X().I,b=nY(b,c,d),a=Q(a,b))}return a;default:throw a=this.x,my(new V,""+a);}}; +e.da=function(){CV(this,1,(Wi(),N(z().w,A())));Wi();L();var a=A();CV(this,2,M(0,a));FV(this,new p(7,0))&&DV(this,3,new (x(ja).M)(["idRef","children","decorations"]));return new sk(this.PP,this.QP,this.RP)};e.$classData=v({$9:0},!1,"inrae.semantic_web.node.Something$$anon$4$$anon$5",{$9:1,ab:1,b:1,Ga:1,ua:1});function bZ(a){this.Ha=fa;this.x=0;this.ut=this.XP=this.WP=this.VP=this.UP=this.TP=this.Ra=null;if(null===a)throw I(J(),null);this.ut=a;zV(this,a)}bZ.prototype=new BV; +bZ.prototype.constructor=bZ;e=bZ.prototype;e.Wa=function(a,b){switch(a){case 0:this.TP=b;break;case 1:this.UP=b;break;case 2:this.VP=b;break;case 3:this.WP=b;break;case 4:this.XP=b;break;default:throw my(new V,""+a);}};e.j=function(a){X();switch(Ma(a)){case "refNode":a=0;break;case "sources":a=1;break;case "idRef":a=2;break;case "children":a=3;break;case "decorations":a=4;break;default:a=-1}this.x=a}; +e.h=function(){switch(this.x){case -1:return XO();case 0:Qi();var a=this.ut.i$;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=X().I;a=Q(a,b)}}return a;case 1:Qi();a=this.ut.j$;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{b=X();var c=X().I,d=wx();b=new HW(b,new JR(d),c);a=Q(a,b)}}return a;case 2:Qi();a=this.ut.k$;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=X().I,a=Q(a,b))}return a;case 3:Qi();a=this.ut.l$;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=X(), +c=Ui().fa,d=wx(),b=new HW(b,new JR(d),c),a=Q(a,b))}return a;case 4:Qi();a=this.ut.m$;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=X(),c=X().I,d=X().I,b=nY(b,c,d),a=Q(a,b))}return a;default:throw a=this.x,my(new V,""+a);}};e.da=function(){CV(this,3,(Qi(),N(z().w,A())));Qi();L();var a=A();CV(this,4,M(0,a));FV(this,new p(31,0))&&DV(this,5,new (x(ja).M)(["refNode","sources","idRef","children","decorations"]));return new Ck(this.TP,this.UP,this.VP,this.WP,this.XP)}; +e.$classData=v({h$:0},!1,"inrae.semantic_web.node.SourcesNode$$anon$73$$anon$74",{h$:1,ab:1,b:1,Ga:1,ua:1});function cZ(a){this.Ha=fa;this.x=0;this.Cw=this.aQ=this.$P=this.ZP=this.YP=this.Ra=null;if(null===a)throw I(J(),null);this.Cw=a;zV(this,a)}cZ.prototype=new BV;cZ.prototype.constructor=cZ;e=cZ.prototype;e.Wa=function(a,b){switch(a){case 0:this.YP=b;break;case 1:this.ZP=b;break;case 2:this.$P=b;break;case 3:this.aQ=b;break;default:throw my(new V,""+a);}}; +e.j=function(a){X();switch(Ma(a)){case "sd":a=0;break;case "idRef":a=1;break;case "children":a=2;break;case "decorations":a=3;break;default:a=-1}this.x=a}; +e.h=function(){switch(this.x){case -1:return XO();case 0:Vi();var a=this.Cw.s$;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=Nk().mb;a=Q(a,b)}}return a;case 1:Vi();a=this.Cw.t$;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=X().I,a=Q(a,b))}return a;case 2:Vi();a=this.Cw.u$;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{b=X();var c=Ui().fa,d=wx();b=new HW(b,new JR(d),c);a=Q(a,b)}}return a;case 3:Vi();a=this.Cw.v$;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f: +(b=X(),c=X().I,d=X().I,b=nY(b,c,d),a=Q(a,b))}return a;default:throw a=this.x,my(new V,""+a);}};e.da=function(){CV(this,2,(Vi(),N(z().w,A())));Vi();L();var a=A();CV(this,3,M(0,a));FV(this,new p(15,0))&&DV(this,4,new (x(ja).M)(["sd","idRef","children","decorations"]));return new Dk(this.YP,this.ZP,this.$P,this.aQ)};e.$classData=v({r$:0},!1,"inrae.semantic_web.node.SparqlDefinitionExpression$$anon$100$$anon$101",{r$:1,ab:1,b:1,Ga:1,ua:1}); +function dZ(a){this.Ha=fa;this.x=0;this.Ew=this.fQ=this.eQ=this.dQ=this.cQ=this.Ra=null;if(null===a)throw I(J(),null);this.Ew=a;zV(this,a)}dZ.prototype=new BV;dZ.prototype.constructor=dZ;e=dZ.prototype;e.Wa=function(a,b){switch(a){case 0:this.cQ=b;break;case 1:this.dQ=b;break;case 2:this.eQ=b;break;case 3:this.fQ=b;break;default:throw my(new V,""+a);}}; +e.j=function(a){X();switch(Ma(a)){case "term":a=0;break;case "idRef":a=1;break;case "children":a=2;break;case "decorations":a=3;break;default:a=-1}this.x=a}; +e.h=function(){switch(this.x){case -1:return XO();case 0:Gh();var a=this.Ew.B$;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=Nk().mb;a=Q(a,b)}}return a;case 1:Gh();a=this.Ew.C$;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=X().I,a=Q(a,b))}return a;case 2:Gh();a=this.Ew.D$;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{b=X();var c=Ui().fa,d=wx();b=new HW(b,new JR(d),c);a=Q(a,b)}}return a;case 3:Gh();a=this.Ew.E$;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f: +(b=X(),c=X().I,d=X().I,b=nY(b,c,d),a=Q(a,b))}return a;default:throw a=this.x,my(new V,""+a);}};e.da=function(){CV(this,2,(Gh(),N(z().w,A())));Gh();L();var a=A();CV(this,3,M(0,a));FV(this,new p(15,0))&&DV(this,4,new (x(ja).M)(["term","idRef","children","decorations"]));return new ak(this.cQ,this.dQ,this.eQ,this.fQ)};e.$classData=v({A$:0},!1,"inrae.semantic_web.node.Str$$anon$133$$anon$134",{A$:1,ab:1,b:1,Ga:1,ua:1}); +function eZ(a){this.Ha=fa;this.x=0;this.hQ=this.Ra=null;this.iQ=!1;this.wt=this.lQ=this.kQ=this.jQ=null;if(null===a)throw I(J(),null);this.wt=a;zV(this,a)}eZ.prototype=new BV;eZ.prototype.constructor=eZ;e=eZ.prototype;e.Wa=function(a,b){switch(a){case 0:this.hQ=b;break;case 1:this.iQ=!!b;break;case 2:this.jQ=b;break;case 3:this.kQ=b;break;case 4:this.lQ=b;break;default:throw my(new V,""+a);}}; +e.j=function(a){X();switch(Ma(a)){case "value":a=0;break;case "negation":a=1;break;case "idRef":a=2;break;case "children":a=3;break;case "decorations":a=4;break;default:a=-1}this.x=a}; +e.h=function(){switch(this.x){case -1:return XO();case 0:Wh();var a=this.wt.K$;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=Nk().mb;a=Q(a,b)}}return a;case 1:Wh();a=this.wt.L$;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=X().qg,a=Q(a,b))}return a;case 2:Wh();a=this.wt.M$;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=X().I,a=Q(a,b))}return a;case 3:Wh();a=this.wt.N$;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{b=X();var c=Ui().fa,d=wx();b=new HW(b,new JR(d), +c);a=Q(a,b)}}return a;case 4:Wh();a=this.wt.O$;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=X(),c=X().I,d=X().I,b=nY(b,c,d),a=Q(a,b))}return a;default:throw a=this.x,my(new V,""+a);}};e.da=function(){CV(this,3,(Wh(),N(z().w,A())));Wh();L();var a=A();CV(this,4,M(0,a));FV(this,new p(31,0))&&DV(this,5,new (x(ja).M)(["value","negation","idRef","children","decorations"]));return new gk(this.hQ,this.iQ,this.jQ,this.kQ,this.lQ)}; +e.$classData=v({J$:0},!1,"inrae.semantic_web.node.StrEnds$$anon$49$$anon$50",{J$:1,ab:1,b:1,Ga:1,ua:1});function fZ(a){this.Ha=fa;this.x=0;this.nQ=this.Ra=null;this.oQ=!1;this.xt=this.rQ=this.qQ=this.pQ=null;if(null===a)throw I(J(),null);this.xt=a;zV(this,a)}fZ.prototype=new BV;fZ.prototype.constructor=fZ;e=fZ.prototype;e.Wa=function(a,b){switch(a){case 0:this.nQ=b;break;case 1:this.oQ=!!b;break;case 2:this.pQ=b;break;case 3:this.qQ=b;break;case 4:this.rQ=b;break;default:throw my(new V,""+a);}}; +e.j=function(a){X();switch(Ma(a)){case "value":a=0;break;case "negation":a=1;break;case "idRef":a=2;break;case "children":a=3;break;case "decorations":a=4;break;default:a=-1}this.x=a}; +e.h=function(){switch(this.x){case -1:return XO();case 0:Vh();var a=this.xt.U$;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=Nk().mb;a=Q(a,b)}}return a;case 1:Vh();a=this.xt.V$;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=X().qg,a=Q(a,b))}return a;case 2:Vh();a=this.xt.W$;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=X().I,a=Q(a,b))}return a;case 3:Vh();a=this.xt.X$;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{b=X();var c=Ui().fa,d=wx();b=new HW(b,new JR(d), +c);a=Q(a,b)}}return a;case 4:Vh();a=this.xt.Y$;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=X(),c=X().I,d=X().I,b=nY(b,c,d),a=Q(a,b))}return a;default:throw a=this.x,my(new V,""+a);}};e.da=function(){CV(this,3,(Vh(),N(z().w,A())));Vh();L();var a=A();CV(this,4,M(0,a));FV(this,new p(31,0))&&DV(this,5,new (x(ja).M)(["value","negation","idRef","children","decorations"]));return new fk(this.nQ,this.oQ,this.pQ,this.qQ,this.rQ)}; +e.$classData=v({T$:0},!1,"inrae.semantic_web.node.StrStarts$$anon$46$$anon$47",{T$:1,ab:1,b:1,Ga:1,ua:1});function gZ(a){this.Ha=fa;this.x=0;this.At=this.xQ=this.wQ=this.vQ=this.uQ=this.tQ=this.Ra=null;if(null===a)throw I(J(),null);this.At=a;zV(this,a)}gZ.prototype=new BV;gZ.prototype.constructor=gZ;e=gZ.prototype;e.Wa=function(a,b){switch(a){case 0:this.tQ=b;break;case 1:this.uQ=b;break;case 2:this.vQ=b;break;case 3:this.wQ=b;break;case 4:this.xQ=b;break;default:throw my(new V,""+a);}}; +e.j=function(a){X();switch(Ma(a)){case "start":a=0;break;case "length":a=1;break;case "idRef":a=2;break;case "children":a=3;break;case "decorations":a=4;break;default:a=-1}this.x=a}; +e.h=function(){switch(this.x){case -1:return XO();case 0:li();var a=this.At.daa;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=Nk().mb;a=Q(a,b)}}return a;case 1:li();a=this.At.eaa;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=Nk().mb,a=Q(a,b))}return a;case 2:li();a=this.At.faa;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=X().I,a=Q(a,b))}return a;case 3:li();a=this.At.gaa;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{b=X();var c=Ui().fa,d=wx();b=new HW(b, +new JR(d),c);a=Q(a,b)}}return a;case 4:li();a=this.At.haa;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=X(),c=X().I,d=X().I,b=nY(b,c,d),a=Q(a,b))}return a;default:throw a=this.x,my(new V,""+a);}};e.da=function(){CV(this,3,(li(),N(z().w,A())));li();L();var a=A();CV(this,4,M(0,a));FV(this,new p(31,0))&&DV(this,5,new (x(ja).M)(["start","length","idRef","children","decorations"]));return new Sj(this.tQ,this.uQ,this.vQ,this.wQ,this.xQ)}; +e.$classData=v({caa:0},!1,"inrae.semantic_web.node.SubStr$$anon$103$$anon$104",{caa:1,ab:1,b:1,Ga:1,ua:1});function hZ(a){this.Ha=fa;this.x=0;this.Fw=this.CQ=this.BQ=this.AQ=this.zQ=this.Ra=null;if(null===a)throw I(J(),null);this.Fw=a;zV(this,a)}hZ.prototype=new BV;hZ.prototype.constructor=hZ;e=hZ.prototype;e.Wa=function(a,b){switch(a){case 0:this.zQ=b;break;case 1:this.AQ=b;break;case 2:this.BQ=b;break;case 3:this.CQ=b;break;default:throw my(new V,""+a);}}; +e.j=function(a){X();switch(Ma(a)){case "idRef":a=0;break;case "term":a=1;break;case "children":a=2;break;case "decorations":a=3;break;default:a=-1}this.x=a}; +e.h=function(){switch(this.x){case -1:return XO();case 0:Xi();var a=this.Fw.naa;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=X().I;a=Q(a,b)}}return a;case 1:Xi();a=this.Fw.oaa;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=Nk().mb,a=Q(a,b))}return a;case 2:Xi();a=this.Fw.paa;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{b=X();var c=Ui().fa,d=wx();b=new HW(b,new JR(d),c);a=Q(a,b)}}return a;case 3:Xi();a=this.Fw.qaa;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a= +a.f:(b=X(),c=X().I,d=X().I,b=nY(b,c,d),a=Q(a,b))}return a;default:throw a=this.x,my(new V,""+a);}};e.da=function(){CV(this,0,(Xi(),QK().g()));CV(this,2,(Xi(),N(z().w,A())));Xi();L();var a=A();CV(this,3,M(0,a));FV(this,new p(15,0))&&DV(this,4,new (x(ja).M)(["idRef","term","children","decorations"]));return new Jj(this.zQ,this.AQ,this.BQ,this.CQ)};e.$classData=v({maa:0},!1,"inrae.semantic_web.node.SubjectOf$$anon$7$$anon$8",{maa:1,ab:1,b:1,Ga:1,ua:1}); +function iZ(a){this.Ha=fa;this.x=0;this.DQ=this.Ra=null;this.EQ=!1;this.Et=this.HQ=this.GQ=this.FQ=null;if(null===a)throw I(J(),null);this.Et=a;zV(this,a)}iZ.prototype=new BV;iZ.prototype.constructor=iZ;e=iZ.prototype;e.Wa=function(a,b){switch(a){case 0:this.DQ=b;break;case 1:this.EQ=!!b;break;case 2:this.FQ=b;break;case 3:this.GQ=b;break;case 4:this.HQ=b;break;default:throw my(new V,""+a);}}; +e.j=function(a){X();switch(Ma(a)){case "value":a=0;break;case "negation":a=1;break;case "idRef":a=2;break;case "children":a=3;break;case "decorations":a=4;break;default:a=-1}this.x=a}; +e.h=function(){switch(this.x){case -1:return XO();case 0:ai();var a=this.Et.waa;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=Nk().mb;a=Q(a,b)}}return a;case 1:ai();a=this.Et.xaa;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=X().qg,a=Q(a,b))}return a;case 2:ai();a=this.Et.yaa;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=X().I,a=Q(a,b))}return a;case 3:ai();a=this.Et.zaa;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{b=X();var c=Ui().fa,d=wx();b=new HW(b, +new JR(d),c);a=Q(a,b)}}return a;case 4:ai();a=this.Et.Aaa;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=X(),c=X().I,d=X().I,b=nY(b,c,d),a=Q(a,b))}return a;default:throw a=this.x,my(new V,""+a);}};e.da=function(){CV(this,3,(ai(),N(z().w,A())));ai();L();var a=A();CV(this,4,M(0,a));FV(this,new p(31,0))&&DV(this,5,new (x(ja).M)(["value","negation","idRef","children","decorations"]));return new lk(this.DQ,this.EQ,this.FQ,this.GQ,this.HQ)}; +e.$classData=v({vaa:0},!1,"inrae.semantic_web.node.Sup$$anon$64$$anon$65",{vaa:1,ab:1,b:1,Ga:1,ua:1});function jZ(a){this.Ha=fa;this.x=0;this.JQ=this.Ra=null;this.KQ=!1;this.Ft=this.NQ=this.MQ=this.LQ=null;if(null===a)throw I(J(),null);this.Ft=a;zV(this,a)}jZ.prototype=new BV;jZ.prototype.constructor=jZ;e=jZ.prototype;e.Wa=function(a,b){switch(a){case 0:this.JQ=b;break;case 1:this.KQ=!!b;break;case 2:this.LQ=b;break;case 3:this.MQ=b;break;case 4:this.NQ=b;break;default:throw my(new V,""+a);}}; +e.j=function(a){X();switch(Ma(a)){case "value":a=0;break;case "negation":a=1;break;case "idRef":a=2;break;case "children":a=3;break;case "decorations":a=4;break;default:a=-1}this.x=a}; +e.h=function(){switch(this.x){case -1:return XO();case 0:bi();var a=this.Ft.Gaa;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=Nk().mb;a=Q(a,b)}}return a;case 1:bi();a=this.Ft.Haa;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=X().qg,a=Q(a,b))}return a;case 2:bi();a=this.Ft.Iaa;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=X().I,a=Q(a,b))}return a;case 3:bi();a=this.Ft.Jaa;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{b=X();var c=Ui().fa,d=wx();b=new HW(b, +new JR(d),c);a=Q(a,b)}}return a;case 4:bi();a=this.Ft.Kaa;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=X(),c=X().I,d=X().I,b=nY(b,c,d),a=Q(a,b))}return a;default:throw a=this.x,my(new V,""+a);}};e.da=function(){CV(this,3,(bi(),N(z().w,A())));bi();L();var a=A();CV(this,4,M(0,a));FV(this,new p(31,0))&&DV(this,5,new (x(ja).M)(["value","negation","idRef","children","decorations"]));return new mk(this.JQ,this.KQ,this.LQ,this.MQ,this.NQ)}; +e.$classData=v({Faa:0},!1,"inrae.semantic_web.node.SupEqual$$anon$67$$anon$68",{Faa:1,ab:1,b:1,Ga:1,ua:1});function kZ(a){this.Ha=fa;this.x=0;this.Gw=this.SQ=this.RQ=this.QQ=this.PQ=this.Ra=null;if(null===a)throw I(J(),null);this.Gw=a;zV(this,a)}kZ.prototype=new BV;kZ.prototype.constructor=kZ;e=kZ.prototype;e.Wa=function(a,b){switch(a){case 0:this.PQ=b;break;case 1:this.QQ=b;break;case 2:this.RQ=b;break;case 3:this.SQ=b;break;default:throw my(new V,""+a);}}; +e.j=function(a){X();switch(Ma(a)){case "idRef":a=0;break;case "s":a=1;break;case "children":a=2;break;case "decorations":a=3;break;default:a=-1}this.x=a}; +e.h=function(){switch(this.x){case -1:return XO();case 0:ui();var a=this.Gw.Qaa;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=X().I;a=Q(a,b)}}return a;case 1:ui();a=this.Gw.Raa;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=Ui().fa,a=Q(a,b))}return a;case 2:ui();a=this.Gw.Saa;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{b=X();var c=Ui().fa,d=wx();b=new HW(b,new JR(d),c);a=Q(a,b)}}return a;case 3:ui();a=this.Gw.Taa;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a= +a.f:(b=X(),c=X().I,d=X().I,b=nY(b,c,d),a=Q(a,b))}return a;default:throw a=this.x,my(new V,""+a);}};e.da=function(){CV(this,0,(ui(),QK().g()));CV(this,2,(ui(),N(z().w,A())));ui();L();var a=A();CV(this,3,M(0,a));FV(this,new p(15,0))&&DV(this,4,new (x(ja).M)(["idRef","s","children","decorations"]));return new tk(this.PQ,this.QQ,this.RQ,this.SQ)};e.$classData=v({Paa:0},!1,"inrae.semantic_web.node.UnionBlock$$anon$25$$anon$26",{Paa:1,ab:1,b:1,Ga:1,ua:1}); +function lZ(a){this.Ha=fa;this.x=0;this.Hw=this.WQ=this.VQ=this.UQ=this.TQ=this.Ra=null;if(null===a)throw I(J(),null);this.Hw=a;zV(this,a)}lZ.prototype=new BV;lZ.prototype.constructor=lZ;e=lZ.prototype;e.Wa=function(a,b){switch(a){case 0:this.TQ=b;break;case 1:this.UQ=b;break;case 2:this.VQ=b;break;case 3:this.WQ=b;break;default:throw my(new V,""+a);}}; +e.j=function(a){X();switch(Ma(a)){case "term":a=0;break;case "idRef":a=1;break;case "children":a=2;break;case "decorations":a=3;break;default:a=-1}this.x=a}; +e.h=function(){switch(this.x){case -1:return XO();case 0:Ni();var a=this.Hw.Zaa;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=Nk().mb;a=Q(a,b)}}return a;case 1:Ni();a=this.Hw.$aa;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=X().I,a=Q(a,b))}return a;case 2:Ni();a=this.Hw.aba;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{b=X();var c=Ui().fa,d=wx();b=new HW(b,new JR(d),c);a=Q(a,b)}}return a;case 3:Ni();a=this.Hw.bba;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a= +a.f:(b=X(),c=X().I,d=X().I,b=nY(b,c,d),a=Q(a,b))}return a;default:throw a=this.x,my(new V,""+a);}};e.da=function(){CV(this,1,(Ni(),QK().g()));CV(this,2,(Ni(),N(z().w,A())));Ni();L();var a=A();CV(this,3,M(0,a));FV(this,new p(15,0))&&DV(this,4,new (x(ja).M)(["term","idRef","children","decorations"]));return new Nj(this.TQ,this.UQ,this.VQ,this.WQ)};e.$classData=v({Yaa:0},!1,"inrae.semantic_web.node.Value$$anon$19$$anon$20",{Yaa:1,ab:1,b:1,Ga:1,ua:1}); +function mZ(a){this.Ha=fa;this.x=0;this.Ra=null;this.YQ=!1;this.Iw=this.aR=this.$Q=this.ZQ=null;if(null===a)throw I(J(),null);this.Iw=a;zV(this,a)}mZ.prototype=new BV;mZ.prototype.constructor=mZ;e=mZ.prototype;e.Wa=function(a,b){switch(a){case 0:this.YQ=!!b;break;case 1:this.ZQ=b;break;case 2:this.$Q=b;break;case 3:this.aR=b;break;default:throw my(new V,""+a);}}; +e.j=function(a){X();switch(Ma(a)){case "negation":a=0;break;case "idRef":a=1;break;case "children":a=2;break;case "decorations":a=3;break;default:a=-1}this.x=a}; +e.h=function(){switch(this.x){case -1:return XO();case 0:Qh();var a=this.Iw.hba;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=X().qg;a=Q(a,b)}}return a;case 1:Qh();a=this.Iw.iba;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=X().I,a=Q(a,b))}return a;case 2:Qh();a=this.Iw.jba;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{b=X();var c=Ui().fa,d=wx();b=new HW(b,new JR(d),c);a=Q(a,b)}}return a;case 3:Qh();a=this.Iw.kba;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f: +(b=X(),c=X().I,d=X().I,b=nY(b,c,d),a=Q(a,b))}return a;default:throw a=this.x,my(new V,""+a);}};e.da=function(){CV(this,2,(Qh(),N(z().w,A())));Qh();L();var a=A();CV(this,3,M(0,a));FV(this,new p(15,0))&&DV(this,4,new (x(ja).M)(["negation","idRef","children","decorations"]));return new nk(this.YQ,this.ZQ,this.$Q,this.aR)};e.$classData=v({gba:0},!1,"inrae.semantic_web.node.isBlank$$anon$31$$anon$32",{gba:1,ab:1,b:1,Ga:1,ua:1}); +function nZ(a){this.Ha=fa;this.x=0;this.Ra=null;this.bR=!1;this.Jw=this.eR=this.dR=this.cR=null;if(null===a)throw I(J(),null);this.Jw=a;zV(this,a)}nZ.prototype=new BV;nZ.prototype.constructor=nZ;e=nZ.prototype;e.Wa=function(a,b){switch(a){case 0:this.bR=!!b;break;case 1:this.cR=b;break;case 2:this.dR=b;break;case 3:this.eR=b;break;default:throw my(new V,""+a);}}; +e.j=function(a){X();switch(Ma(a)){case "negation":a=0;break;case "idRef":a=1;break;case "children":a=2;break;case "decorations":a=3;break;default:a=-1}this.x=a}; +e.h=function(){switch(this.x){case -1:return XO();case 0:Rh();var a=this.Jw.qba;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=X().qg;a=Q(a,b)}}return a;case 1:Rh();a=this.Jw.rba;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=X().I,a=Q(a,b))}return a;case 2:Rh();a=this.Jw.sba;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{b=X();var c=Ui().fa,d=wx();b=new HW(b,new JR(d),c);a=Q(a,b)}}return a;case 3:Rh();a=this.Jw.tba;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f: +(b=X(),c=X().I,d=X().I,b=nY(b,c,d),a=Q(a,b))}return a;default:throw a=this.x,my(new V,""+a);}};e.da=function(){CV(this,2,(Rh(),N(z().w,A())));Rh();L();var a=A();CV(this,3,M(0,a));FV(this,new p(15,0))&&DV(this,4,new (x(ja).M)(["negation","idRef","children","decorations"]));return new pk(this.bR,this.cR,this.dR,this.eR)};e.$classData=v({pba:0},!1,"inrae.semantic_web.node.isLiteral$$anon$34$$anon$35",{pba:1,ab:1,b:1,Ga:1,ua:1}); +function oZ(a){this.Ha=fa;this.x=0;this.Ra=null;this.gR=!1;this.Kw=this.jR=this.iR=this.hR=null;if(null===a)throw I(J(),null);this.Kw=a;zV(this,a)}oZ.prototype=new BV;oZ.prototype.constructor=oZ;e=oZ.prototype;e.Wa=function(a,b){switch(a){case 0:this.gR=!!b;break;case 1:this.hR=b;break;case 2:this.iR=b;break;case 3:this.jR=b;break;default:throw my(new V,""+a);}}; +e.j=function(a){X();switch(Ma(a)){case "negation":a=0;break;case "idRef":a=1;break;case "children":a=2;break;case "decorations":a=3;break;default:a=-1}this.x=a}; +e.h=function(){switch(this.x){case -1:return XO();case 0:Sh();var a=this.Kw.zba;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=X().qg;a=Q(a,b)}}return a;case 1:Sh();a=this.Kw.Aba;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=X().I,a=Q(a,b))}return a;case 2:Sh();a=this.Kw.Bba;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{b=X();var c=Ui().fa,d=wx();b=new HW(b,new JR(d),c);a=Q(a,b)}}return a;case 3:Sh();a=this.Kw.Cba;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f: +(b=X(),c=X().I,d=X().I,b=nY(b,c,d),a=Q(a,b))}return a;default:throw a=this.x,my(new V,""+a);}};e.da=function(){CV(this,2,(Sh(),N(z().w,A())));Sh();L();var a=A();CV(this,3,M(0,a));FV(this,new p(15,0))&&DV(this,4,new (x(ja).M)(["negation","idRef","children","decorations"]));return new ok(this.gR,this.hR,this.iR,this.jR)};e.$classData=v({yba:0},!1,"inrae.semantic_web.node.isURI$$anon$37$$anon$38",{yba:1,ab:1,b:1,Ga:1,ua:1});function pZ(){}pZ.prototype=new t;pZ.prototype.constructor=pZ; +function Dca(a,b,c){if(b.D===c){b=EF();Ki();a=N(z().w,A());Ki();z();var d=A();d=Xb(A(),d);Ki();z();var f=A();f=Xb(A(),f);Ki();z();var g=A();g=Xb(A(),g);Ki();z();var h=A();h=Xb(A(),h);Ki();z();var k=A();k=Xb(A(),k);Ki();z();var n=A();n=Xb(A(),n);Ki();var r=N(z().w,A());Ki();L();var u=A();return new uj(c,b,a,d,f,g,h,k,n,r,M(0,u))}c=b.U.Da(new C(((w,y)=>K=>qZ(tX(),K,y))(a,c))).ob(new C(((w,y)=>K=>K.La()!==y)(a,c)));return new uj(b.D,b.wf,b.ag,b.$f,b.bg,b.Ke,b.Ze,b.Re,b.zd,c,b.V)} +function qZ(a,b,c){return b.sb(b.Ja().Da(new C(((d,f)=>g=>qZ(tX(),g,f))(a,c))).ob(new C(((d,f)=>g=>g.La()!==f)(a,c))),b.kb())}e=pZ.prototype;e.A=function(){return"RemoveNode"};e.B=function(){return 0};e.C=function(a){return T(W(),a)};e.v=function(){return-1203104570};e.g=function(){return"RemoveNode"};e.$classData=v({Fba:0},!1,"inrae.semantic_web.node.pm.RemoveNode$",{Fba:1,b:1,y:1,m:1,d:1});var rZ;function tX(){rZ||(rZ=new pZ);return rZ}function BX(a,b){this.Gt=a;this.Tn=b;Aw()}BX.prototype=new t; +BX.prototype.constructor=BX;function sZ(){var a=DI(9608);return gJ(zt(),a,0,a.a.length)}function Vca(){var a=DI(9604);return gJ(zt(),a,0,a.a.length)}function Wca(){var a=DI(9600);return gJ(zt(),a,0,a.a.length)}function Xca(){var a=DI(9500);return gJ(zt(),a,0,a.a.length)}function tZ(){var a=DI(9474);return gJ(zt(),a,0,a.a.length)}function Yca(){var a=DI(9472);return gJ(zt(),a,0,a.a.length)}function uZ(a){a=a.Gt;if(!0===a)return"\u001b[0m";if(!1===a)return"";throw new B(a);} +function AX(a,b,c){if(0===c){var d=sZ();qg();var f=Wca();d=""+d+tt(f,100)+"\n"}else d="";d=d+sZ()+oJ();if(0===c){f=sZ();qg();var g=Vca();f=""+f+tt(g,100)+"\n"}else f="";f+=uZ(a);g=""+oJ()+Xca()+Yca()+" "+(a.Gt?b instanceof uj?"\u001b[35m":b instanceof Fi?"\u001b[34m":b instanceof wj?"\u001b[32m":b instanceof Nj?"\u001b[36m":b instanceof BC?"\u001b[45m":b instanceof qD?"\u001b[42m":"\u001b[31m":"")+b.g()+uZ(a);qg();var h=""+oJ()+tZ();d=d+tt(h,c)+g+"\n";0w=>AX(r, +w,1+u|0))(a,c))),f=mg(g,"","","")+f):f="";b instanceof uj&&a.Tn?(qg(),g=""+oJ()+tZ(),tt(g,c),g=b.Ze.Da(new C(((r,u)=>w=>AX(r,w,1+u|0)+" * "+mg(w.vt,"",",",""))(a,c))),g="\x3d\x3d\x3d\x3d SOURCESNODE \x3d\x3d\x3d \n"+mg(g,"","\n","")+"\n"):g="";b instanceof uj&&a.Tn?(qg(),h=""+oJ()+tZ(),tt(h,c),h=b.Ke.Da(new C(((r,u)=>w=>AX(r,w,1+u|0))(a,c))),h="\x3d\x3d\x3d\x3d DATATYPE \x3d\x3d\x3d \n"+mg(h,"","\n","")+"\n"):h="";if(b instanceof uj&&a.Tn){qg();var k=""+oJ()+tZ();tt(k,c);k=b.zd.Da(new C(((r,u)=>w=> +AX(r,w,1+u|0))(a,c)));k="\x3d\x3d\x3d\x3d Solution Modifier \x3d\x3d\x3d \n"+mg(k,"","\n","")+"\n"}else k="";if(b instanceof uj&&a.Tn){qg();var n=""+oJ()+tZ();tt(n,c);a=b.Re.Da(new C(((r,u)=>w=>AX(r,w,1+u|0))(a,c)));a="\x3d\x3d\x3d\x3d Expression \x3d\x3d\x3d \n"+mg(a,"","\n","")+"\n"}else a="";return d+f+g+h+k+a}e=BX.prototype;e.A=function(){return"SimpleConsole"};e.B=function(){return 2};e.C=function(a){switch(a){case 0:return this.Gt;case 1:return this.Tn;default:return T(W(),a)}}; +e.v=function(){var a=Ja("SimpleConsole");a=W().l(-889275714,a);var b=this.Gt?1231:1237;a=W().l(a,b);b=this.Tn?1231:1237;a=W().l(a,b);return W().ea(a,2)};e.g=function(){return fy(this)};e.c=function(a){return this===a?!0:a instanceof BX?this.Gt===a.Gt&&this.Tn===a.Tn:!1};e.$classData=v({Gba:0},!1,"inrae.semantic_web.node.pm.SimpleConsole",{Gba:1,b:1,y:1,m:1,d:1});function vZ(a){this.Ha=fa;this.x=0;this.lR=this.mR=this.Ra=null;if(null===a)throw I(J(),null);this.lR=a;zV(this,a)}vZ.prototype=new BV; +vZ.prototype.constructor=vZ;e=vZ.prototype;e.Wa=function(a,b){if(0===a)this.mR=b;else throw my(new V,""+a);};e.j=function(a){X();this.x="value"===Ma(a)?0:-1};e.h=function(){switch(this.x){case -1:return XO();case 0:Zk();var a=this.lR.Mba;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=X().I;a=Q(a,b)}}return a;default:throw a=this.x,my(new V,""+a);}};e.da=function(){FV(this,new p(1,0))&&DV(this,1,new (x(ja).M)(["value"]));return new wZ(this.mR)}; +e.$classData=v({Lba:0},!1,"inrae.semantic_web.rdf.Anonymous$$anon$7$$anon$8",{Lba:1,ab:1,b:1,Ga:1,ua:1});function xZ(a){this.Ha=fa;this.x=0;this.oR=this.pR=this.Ra=null;if(null===a)throw I(J(),null);this.oR=a;zV(this,a)}xZ.prototype=new BV;xZ.prototype.constructor=xZ;e=xZ.prototype;e.Wa=function(a,b){if(0===a)this.pR=b;else throw my(new V,""+a);};e.j=function(a){X();this.x="iri"===Ma(a)?0:-1}; +e.h=function(){switch(this.x){case -1:return XO();case 0:Yk();var a=this.oR.Sba;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=X().I;a=Q(a,b)}}return a;default:throw a=this.x,my(new V,""+a);}};e.da=function(){FV(this,new p(1,0))&&DV(this,1,new (x(ja).M)(["iri"]));return new FF(this.pR)};e.$classData=v({Rba:0},!1,"inrae.semantic_web.rdf.IRI$$anon$1$$anon$2",{Rba:1,ab:1,b:1,Ga:1,ua:1}); +function yZ(a){this.Ha=fa;this.x=0;this.qA=this.sR=this.rR=this.qR=this.Ra=null;if(null===a)throw I(J(),null);this.qA=a;zV(this,a)}yZ.prototype=new BV;yZ.prototype.constructor=yZ;e=yZ.prototype;e.Wa=function(a,b){switch(a){case 0:this.qR=b;break;case 1:this.rR=b;break;case 2:this.sR=b;break;default:throw my(new V,""+a);}};e.j=function(a){X();switch(Ma(a)){case "value":a=0;break;case "datatype":a=1;break;case "ta":a=2;break;default:a=-1}this.x=a}; +e.h=function(){switch(this.x){case -1:return XO();case 0:al();var a=this.qA.Yba;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=X().I;a=Q(a,b)}}return a;case 1:al();a=this.qA.Zba;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=Lk().sA,a=Q(a,b))}return a;case 2:al();a=this.qA.$ba;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=X().I,a=Q(a,b))}return a;default:throw a=this.x,my(new V,""+a);}}; +e.da=function(){CV(this,1,(al(),Lk().Zd));CV(this,2,(al(),""));FV(this,new p(7,0))&&DV(this,3,new (x(ja).M)(["value","datatype","ta"]));return new Rk(this.qR,this.rR,this.sR)};e.$classData=v({Xba:0},!1,"inrae.semantic_web.rdf.Literal$$anon$13$$anon$14",{Xba:1,ab:1,b:1,Ga:1,ua:1});function zZ(a){this.Ha=fa;this.x=0;this.uR=this.vR=this.Ra=null;if(null===a)throw I(J(),null);this.uR=a;zV(this,a)}zZ.prototype=new BV;zZ.prototype.constructor=zZ;e=zZ.prototype; +e.Wa=function(a,b){if(0===a)this.vR=b;else throw my(new V,""+a);};e.j=function(a){X();this.x="value"===Ma(a)?0:-1};e.h=function(){switch(this.x){case -1:return XO();case 0:$k();var a=this.uR.fca;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=X().I;a=Q(a,b)}}return a;default:throw a=this.x,my(new V,""+a);}};e.da=function(){FV(this,new p(1,0))&&DV(this,1,new (x(ja).M)(["value"]));return new AZ(this.vR)}; +e.$classData=v({eca:0},!1,"inrae.semantic_web.rdf.PropertyPath$$anon$10$$anon$11",{eca:1,ab:1,b:1,Ga:1,ua:1});function BZ(a){this.Ha=fa;this.x=0;this.xR=this.yR=this.Ra=null;if(null===a)throw I(J(),null);this.xR=a;zV(this,a)}BZ.prototype=new BV;BZ.prototype.constructor=BZ;e=BZ.prototype;e.Wa=function(a,b){if(0===a)this.yR=b;else throw my(new V,""+a);};e.j=function(a){X();this.x="name"===Ma(a)?0:-1}; +e.h=function(){switch(this.x){case -1:return XO();case 0:bl();var a=this.xR.lca;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=X().I;a=Q(a,b)}}return a;default:throw a=this.x,my(new V,""+a);}};e.da=function(){FV(this,new p(1,0))&&DV(this,1,new (x(ja).M)(["name"]));return new Oj(this.yR)};e.$classData=v({kca:0},!1,"inrae.semantic_web.rdf.QueryVariable$$anon$16$$anon$17",{kca:1,ab:1,b:1,Ga:1,ua:1}); +function CZ(a){this.Ha=fa;this.x=0;this.mF=this.AR=this.zR=this.Ra=null;if(null===a)throw I(J(),null);this.mF=a;zV(this,a)}CZ.prototype=new BV;CZ.prototype.constructor=CZ;e=CZ.prototype;e.Wa=function(a,b){switch(a){case 0:this.zR=b;break;case 1:this.AR=b;break;default:throw my(new V,""+a);}};e.j=function(a){X();switch(Ma(a)){case "localNameUser":a=0;break;case "nameSpaceUser":a=1;break;default:a=-1}this.x=a}; +e.h=function(){switch(this.x){case -1:return XO();case 0:Lk();var a=this.mF.tca;if(a.e)a=a.f;else{if(null===a)throw P();if(a.e)a=a.f;else{var b=X().I;a=Q(a,b)}}return a;case 1:Lk();a=this.mF.uca;if(a.e)a=a.f;else{if(null===a)throw P();a.e?a=a.f:(b=X().I,a=Q(a,b))}return a;default:throw a=this.x,my(new V,""+a);}};e.da=function(){CV(this,1,(Lk(),""));FV(this,new p(3,0))&&DV(this,2,new (x(ja).M)(["localNameUser","nameSpaceUser"]));return new Jk(this.zR,this.AR)}; +e.$classData=v({sca:0},!1,"inrae.semantic_web.rdf.URI$$anon$4$$anon$5",{sca:1,ab:1,b:1,Ga:1,ua:1});function oC(a,b){this.BR=null;this.oF=!1;this.Kt=a;this.pF=b}oC.prototype=new t;oC.prototype.constructor=oC; +function DZ(a){if(!a.oF&&!a.oF){try{var b=Fz(),c=new Pw(Xba(b,new RB(a.Kt,SB())))}catch(g){if(b=Sr(J(),g),null!==b)a:{if(null!==b&&(c=gz(iz(),b),!c.i())){b=c.Sa();c=new Hw(b);break a}throw I(J(),b);}else throw g;}if(c instanceof Pw){if(b=c.hj,c=b instanceof VU?new Ze(b.Sq):E(),!(c instanceof Ze))if(E()===c){var d=QN();c=QN();c=[G(new H,"vars",c)];var f=Af(new Bf,c);yg();c=new hU;EZ(c,"link",d);d=new uK(f);for(d=new vK(d);d.s();)f=d.p(),EZ(c,f.Ea(),f.xa());c=new VU(c);f=A();yg();d=new hU;EZ(d,"bindings", +b);for(b=f;!b.i();)f=b.G(),EZ(d,f.Ea(),f.xa()),b=b.L();d=Af(new Bf,[G(new H,"results",new VU(d))]);yg();b=new hU;EZ(b,"head",c);c=new uK(d);for(c=new vK(c);c.s();)d=c.p(),EZ(b,d.Ea(),d.xa());b=new VU(b)}else throw new B(c);}else if(c instanceof Hw){c=QN();b=QN();b=[G(new H,"vars",b)];d=Af(new Bf,b);yg();b=new hU;EZ(b,"link",c);c=new uK(d);for(c=new vK(c);c.s();)d=c.p(),EZ(b,d.Ea(),d.xa());b=new VU(b);d=QN();f=A();yg();c=new hU;EZ(c,"bindings",d);for(d=f;!d.i();)f=d.G(),EZ(c,f.Ea(),f.xa()),d=d.L(); +d=Af(new Bf,[G(new H,"results",new VU(c))]);yg();c=new hU;EZ(c,"head",b);b=new uK(d);for(b=new vK(b);b.s();)d=b.p(),EZ(c,d.Ea(),d.xa());b=new VU(c)}else throw new B(c);a.BR=b;a.oF=!0}return a.BR} +function Zca(a,b){a=DZ(a);a=(new Kk("results")).Uc(a);a=(new Kk("bindings")).Uc(a);var c=MO(a);a=new sS;for(c=new vK(new XX(c.jg,c.Lb));c.s();){var d=c.p();if(d instanceof VU){Tk();d=(new Kk(b)).Uc(d);try{var f=new Pw((new Kk("type")).Uc(d).um())}catch(h){if(f=Sr(J(),h),null!==f)b:{if(null!==f){var g=gz(iz(),f);if(!g.i()){f=g.Sa();f=new Hw(f);break b}}throw I(J(),f);}else throw h;}if(!(f instanceof Pw)){if(f instanceof Hw)throw Ek(new Fk,"Can not found key `type` in obj:"+Pk(d));throw new B(f);}g= +f.hj;if("uri"===g)d=Ik(0,d);else if("literal"===g||"typed-literal"===g)d=Mk(d);else throw Ek(new Fk,"unknown type ");d=new Ze(d)}else d=E();FZ(a,d)}return a.Xf.kg()} +function $ca(a,b,c){var d=DZ(a);d=(new Kk("results")).Uc(d);d=NO(d).Nc("datatypes");if(d instanceof Ze)d=d.Sb;else{if(E()!==d)throw new B(d);d=new VU(new hU)}var f=NO(d).Nc(b);if(f instanceof Ze)f=f.Sb;else{if(E()!==f)throw new B(f);f=new VU(new hU)}c.Fa(new C(((g,h)=>k=>{if(null!==k){var n=k.Ea();k=k.xa();var r=NO(h).Nc(n);if(r instanceof Ze)r=r.Sb;else{if(E()!==r)throw new B(r);r=QN()}UN(MO(r),k);NO(h).al(n,r)}else throw new B(k);})(a,f)));NO(d).al(b,f);a=DZ(a);a=(new Kk("results")).Uc(a);PO(new Kk("datatypes"), +a,d)}e=oC.prototype;e.A=function(){return"QueryResult"};e.B=function(){return 2};e.C=function(a){switch(a){case 0:return this.Kt;case 1:return this.pF;default:return T(W(),a)}};e.v=function(){return ig(D(),this)};e.g=function(){return fy(this)};e.c=function(a){return this===a?!0:a instanceof oC?this.Kt===a.Kt&&this.pF===a.pF:!1};e.$classData=v({wca:0},!1,"inrae.semantic_web.sparql.QueryResult",{wca:1,b:1,y:1,m:1,d:1});function ph(){this.vA=null;L();var a=A();this.vA=M(0,a)}ph.prototype=new t; +ph.prototype.constructor=ph;e=ph.prototype;e.FH=function(a){var b=this.vA.Nc(a);if(b instanceof Ze&&(a=b.Sb,null!==a))return b=a.Ea(),a=a.xa(),new Ze(Xaa(rl(),b,a));if(E()===b)return E();throw new B(b);};e.A=function(){return"QueryResultManager"};e.B=function(){return 0};e.C=function(a){return T(W(),a)};e.v=function(){return ig(D(),this)};e.g=function(){return fy(this)};e.c=function(a){return a instanceof ph&&!0}; +e.$classData=v({xca:0},!1,"inrae.semantic_web.sparql.QueryResultManager",{xca:1,b:1,y:1,m:1,d:1}); +function hY(a,b){this.Lt=this.Pw=this.Wn=null;this.uF=0;this.GR=this.FR=this.yF=this.vF=this.wF=this.xF=this.tF=this.ER=this.Iq=null;this.Wn=a;this.Pw=b;this.Lt=Aw();this.uF=10;this.yF=this.vF=this.wF=this.xF=this.tF=this.ER=this.Iq="[X]";var c=new QX(a),d=new Jk("",(Lk(),""));Vw(WX(c,b,d,0),new C((f=>g=>{f.tF=" - "+mg(g,"","\n - ","");return GZ(f)})(this)),this.Lt);c=new QX(a);d=new Jk("",(Lk(),""));Vw($X(c,b,d,0),new C((f=>g=>{f.xF=" - "+mg(g,"","\n - ","");return GZ(f)})(this)),this.Lt);c=new QX(a); +d=new Jk("",(Lk(),""));Vw(aY(c,b,d,0),new C((f=>g=>{f.wF=" - "+mg(g,"","\n - ","");return GZ(f)})(this)),this.Lt);c=new QX(a);d=new Jk("",(Lk(),""));Vw(bY(c,b,d,0),new C((f=>g=>{f.vF=" - "+mg(g,"","\n - ","");return GZ(f)})(this)),this.Lt);""!==RM(b)?(c=JW(a),Nk(),b=new Rk(b,(al(),Lk().Zd),(al(),"")),Nk(),d=new Rk("",(al(),Lk().Zd),(al(),"")),b=UW(c,b,d)):b=a;a=N(z().w,Af(new Bf,[a.Ld]));Vw(VX(NX(LX(b,a,0,0),this.uF)).Ym,new C((f=>g=>{g=(new Kk("results")).Uc(g);g=(new Kk("bindings")).Uc(g);g=MO(g); +f.yF=" - "+mg(g,"","\n - ","");return GZ(f)})(this)),this.Lt);this.FR="";a=Af(new Bf,[G(new H,"ghCodeBlocks",!0),G(new H,"tables",!0),G(new H,"strikethrough",!1)]);this.GR=Lg(Mg(),a);GZ(this)}hY.prototype=new t;hY.prototype.constructor=hY; +function GZ(a){var b=new (Ra(caa).Converter)(a.GR),c=b.makeHtml,d=""+a.FR,f=$g().kM,g=ng(L(),nj(pj(),a.Wn.Ld,a.Wn.eb));g=mg(g,"",",","");var h=a.Pw,k=a.ER,n=a.uF,r=a.yF,u=a.tF,w=a.xF,y=a.wF,K=a.vF,U=a.Wn.dc,Z=new BX(!1,!1);a="\n## [Discovery](https://github.com/p2m2/Discovery)\n - build : "+f+"\n\n### New step on focus\n\n - **target node** : "+g+"\n - **regex** : "+h+"\n - **Number of values** : **"+k+"**\n\n#### Values "+n+" .set(`value`) .setList(`value1`,`value1`,..)\n"+r+'\n\n#### Classes .isA("`uri`")\n\n'+ +u+'\n\n#### Forward property .isSubjectOf("`uri`","my_reference_var")\n\n'+w+'\n\n#### Datatype property .datatype("`uri`","my_reference_var")\n\n'+y+'\n\n#### Backward property .isObjectOf("`uri`","my_reference_var")\n\n'+K+"\n\n### configuration\n\n"+U+"\n\n\n### Request\n```\n"+AX(Z,a.Wn.eb,0)+"\n```\n- [Help](https://p2m2.github.io/discovery/user_docs.html)\n- [declare an issue ?] (https://github.com/p2m2/discovery/issues/new)\n\n";b=c.call(b,d+a);Zr||(Zr=new Yr);c=Zr;0===(67108864&c.co)&&0=== +(67108864&c.co)&&(0===(33554432&c.co)&&0===(33554432&c.co)&&(c.sS=window,c.co|=33554432),c.rS=c.sS.document,c.co|=67108864);c.rS.querySelector("html").innerHTML=b}e=hY.prototype;e.A=function(){return"HtmlView"};e.B=function(){return 2};e.C=function(a){switch(a){case 0:return this.Wn;case 1:return this.Pw;default:return T(W(),a)}};e.v=function(){return ig(D(),this)};e.g=function(){return fy(this)}; +e.c=function(a){if(this===a)return!0;if(a instanceof hY){var b=this.Wn,c=a.Wn;return(null===b?null===c:b.c(c))?this.Pw===a.Pw:!1}return!1};e.$classData=v({Dca:0},!1,"inrae.semantic_web.view.HtmlView",{Dca:1,b:1,y:1,m:1,d:1});v({Jca:0},!1,"io.lemonlabs.uri.Authority",{Jca:1,b:1,y:1,m:1,d:1});function JX(a,b){this.Qw=a;this.Yca=b}JX.prototype=new t;JX.prototype.constructor=JX;e=JX.prototype; +e.rm=function(a){var b=a.EA,c=a.Mt,d=new HZ(this,b,c);b=new IZ(d,new JZ(this,b,c));a=a.FA;if(jI()===a)d=this.Qw.Da(b);else{KZ||(KZ=new LZ);if(KZ!==a)throw new B(a);d=ada(this.Qw,d)}return MZ(d)?"":mg(d,"","\x26","")};e.g=function(){return this.rm(this.Yca)};e.A=function(){return"QueryString"};e.B=function(){return 1};e.C=function(a){return 0===a?this.Qw:T(W(),a)};e.v=function(){return ig(D(),this)}; +e.c=function(a){if(this===a)return!0;if(a instanceof JX){var b=this.Qw;a=a.Qw;return null===b?null===a:b.c(a)}return!1};e.$classData=v({Sca:0},!1,"io.lemonlabs.uri.QueryString",{Sca:1,b:1,y:1,m:1,d:1});class NZ extends rk{}v({jda:0},!1,"io.lemonlabs.uri.UserInfo",{jda:1,b:1,y:1,m:1,d:1});function hI(a,b,c,d,f,g,h,k,n,r,u){this.GF=a;this.DA=b;this.EA=c;this.BA=d;this.FF=f;this.CA=g;this.EF=h;this.DF=k;this.Mt=n;this.FA=r;this.CF=u}hI.prototype=new t;hI.prototype.constructor=hI;e=hI.prototype;e.A=function(){return"UriConfig"}; +e.B=function(){return 11};e.C=function(a){switch(a){case 0:return this.GF;case 1:return this.DA;case 2:return this.EA;case 3:return this.BA;case 4:return this.FF;case 5:return this.CA;case 6:return this.EF;case 7:return this.DF;case 8:return this.Mt;case 9:return this.FA;case 10:return this.CF;default:return T(W(),a)}};e.v=function(){return ig(D(),this)};e.g=function(){return fy(this)}; +e.c=function(a){if(this===a)return!0;if(a instanceof hI){var b=this.GF,c=a.GF;(null===b?null===c:b.c(c))?(b=this.DA,c=a.DA,b=null===b?null===c:b.c(c)):b=!1;b?(b=this.EA,c=a.EA,b=null===b?null===c:b.c(c)):b=!1;b?(b=this.BA,c=a.BA,b=null===b?null===c:b.c(c)):b=!1;b?(b=this.FF,c=a.FF,b=null===b?null===c:b.c(c)):b=!1;b?(b=this.CA,c=a.CA,b=null===b?null===c:b.c(c)):b=!1;b?(b=this.EF,c=a.EF,b=null===b?null===c:b.c(c)):b=!1;b?(b=this.DF,c=a.DF,b=null===b?null===c:b.c(c)):b=!1;if(b&&this.Mt===a.Mt&&this.FA=== +a.FA)return b=this.CF,a=a.CF,null===b?null===a:b.c(a)}return!1};e.$classData=v({nda:0},!1,"io.lemonlabs.uri.config.UriConfig",{nda:1,b:1,y:1,m:1,d:1});function OZ(a,b,c){b=PZ(b,c);return bda(a,b,c)} +function bda(a,b,c){var d=(()=>n=>q(65535&(n|0)))(a);oe();var f=b.a.length,g=new bb(f);if(0>24]));f=KL(L(),f);for(f=new QZ(f.ap);f.s();)h=RZ(f),b.push(h);d=1+d|0}a=new cb(new Int8Array(b));return jJ(zt(),a,c)}function gI(a,b){var c=z().Jb;return new SZ(new Vb(a,new Vb(b,c)))} +function TZ(){this.Xn=this.Oda=this.Kda=this.Lda=this.Nda=this.Mda=this.Jda=this.Ida=this.ul=null;UZ=this;this.Xn=new VZ(this);eca(this)}TZ.prototype=new t;TZ.prototype.constructor=TZ;TZ.prototype.$classData=v({Hda:0},!1,"io.lemonlabs.uri.typesafe.QueryKey$",{Hda:1,b:1,Sza:1,Tza:1,d:1});var UZ;function KQ(){UZ||(UZ=new TZ);return UZ}function VZ(){}VZ.prototype=new t;VZ.prototype.constructor=VZ;function cda(a,b,c){return new HQ(((d,f,g)=>h=>f.ly(g.r(h)))(a,b,c))} +VZ.prototype.kh=function(a,b){return cda(this,a,b)};VZ.prototype.$classData=v({Rda:0},!1,"io.lemonlabs.uri.typesafe.QueryKeyInstances1$$anon$3",{Rda:1,b:1,zK:1,mi:1,d:1});function WZ(){}WZ.prototype=new t;WZ.prototype.constructor=WZ;function dda(a,b,c){return new MQ(((d,f,g)=>h=>f.Ru(g.r(h)))(a,b,c))}WZ.prototype.kh=function(a,b){return dda(this,a,b)};WZ.prototype.$classData=v({mea:0},!1,"io.lemonlabs.uri.typesafe.QueryValueInstances2$$anon$6",{mea:1,b:1,zK:1,mi:1,d:1});function HX(){GX=this} +HX.prototype=new t;HX.prototype.constructor=HX;HX.prototype.$classData=v({qea:0},!1,"io.lemonlabs.uri.typesafe.TraversableParams$",{qea:1,b:1,aAa:1,bAa:1,d:1});var GX;function IX(a,b){this.sea=a;this.tea=b}IX.prototype=new t;IX.prototype.constructor=IX;IX.prototype.$classData=v({rea:0},!1,"io.lemonlabs.uri.typesafe.TraversableParams$ops$$anon$10",{rea:1,b:1,Zza:1,$za:1,d:1});v({vea:0},!1,"io.lemonlabs.uri.typesafe.TraversableParamsInstances1$$anon$12",{vea:1,b:1,zK:1,mi:1,d:1}); +class XZ extends rk{}function YZ(){}YZ.prototype=new t;YZ.prototype.constructor=YZ;function ZZ(){}ZZ.prototype=YZ.prototype;function nJ(){var a=new $Z;iJ(a,null,null);return a}function Sq(a){var b=new $Z;iJ(b,""+a,a instanceof My?a:null);return b}class $Z extends Fk{}$Z.prototype.$classData=v({Fja:0},!1,"java.lang.AssertionError",{Fja:1,Yx:1,gb:1,b:1,d:1}); +var qa=v({Gja:0},!1,"java.lang.Boolean",{Gja:1,b:1,d:1,Bb:1,vo:1},a=>"boolean"===typeof a),ua=v({Ija:0},!1,"java.lang.Character",{Ija:1,b:1,d:1,Bb:1,vo:1},a=>a instanceof ha);function Mf(a,b){iJ(a,b,null);return a}class Nf extends rk{}Nf.prototype.$classData=v({tc:0},!1,"java.lang.RuntimeException",{tc:1,ub:1,gb:1,b:1,d:1});function a_(){var a=new b_;a.zk=vt(new ut);return a}function b_(){this.zk=null}b_.prototype=new t;b_.prototype.constructor=b_;e=b_.prototype;e.z=function(){return this.zk.z()}; +e.Xi=function(a){return this.zk.Xi(a)};function c_(a,b){a=a.zk;a.R=""+a.R+b}function d_(a,b){a=a.zk;b=String.fromCharCode(b);a.R=""+a.R+b}e.gp=function(a,b){return this.zk.R.substring(a,b)};e.g=function(){return this.zk.R};e.vu=function(a){var b=this.zk;b.R=""+b.R+a};e.$classData=v({lka:0},!1,"java.lang.StringBuffer",{lka:1,b:1,ro:1,Fu:1,d:1});function vt(a){a.R="";return a}function e_(a){var b=new ut;vt(b);if(null===a)throw P();b.R=a;return b}function ut(){this.R=null}ut.prototype=new t; +ut.prototype.constructor=ut;function f_(a,b){b=gJ(zt(),b,0,b.a.length);a.R=""+a.R+b}e=ut.prototype;e.g=function(){return this.R};e.z=function(){return this.R.length|0};e.Xi=function(a){return 65535&(this.R.charCodeAt(a)|0)};e.gp=function(a,b){return this.R.substring(a,b)};e.vu=function(a){this.R=""+this.R+a};e.$classData=v({mka:0},!1,"java.lang.StringBuilder",{mka:1,b:1,ro:1,Fu:1,d:1});class fz extends Fk{} +function hN(a,b){var c=b.Al,d=g_(a)-c|0;if(!(h_(a)=d))if(64>a.$e){c=ZJ().Yw.a[d];var f=c.k,g=c.o,h=a.fb,k=h>>31,n=d>>31;c=h-d|0;h=(-2147483648^c)>(-2147483648^h)?-1+(k-n|0)|0:k-n|0;d=a.Le;n=d.k;var r=d.o;k=Aa();d=qn(k,n,r,f,g);k=k.za;var u=Aa();n=ko(u,n,r,f,g);r=u.za;if(0!==n||0!==r){ZJ();if(0>r){var w=-n|0;u=0!==n?~r:-r|0}else w=n,u=r;u=new p(w<<1,w>>>31|0|u<<1);f=new p(f,g);g=u.o;w=f.o;(g===w?(-2147483648^u.k)>(-2147483648^f.k):g>w)?f=1:(g=u.o,w=f.o,f=(g===w?(-2147483648^u.k)<(-2147483648^ +f.k):gr?-1:0===r&&0===n?0:1,5+f|0);f=dK(ZJ(),1&d,f,b.Qt);g=f>>31;f=d+f|0;d=(-2147483648^f)<(-2147483648^d)?1+(k+g|0)|0:k+g|0;0>d?(k=-f|0,g=0!==f?~d:-d|0):(k=f,g=d);k=bs(Aa(),k,g);+Math.log10(k)>=b.Al?(c=-1+c|0,k=-1!==c?h:-1+h|0,h=Aa(),d=qn(h,f,d,10,0),c=new p(c,k),d=new p(d,h.za)):(c=new p(c,h),d=new p(f,d))}else c=new p(c,h),d=new p(d,k);h=c;c=h.k;h=h.o;k=d;d=k.k;k=k.o;a.fb=eK(ZJ(),new p(c,h));a.$n=b.Al;a.Le=new p(d,k);a.$e=YJ(ZJ(),new p(d,k));a.Zn=null}else f=io(vn(),new p(d,d>> +31)),h=QJ(a),h=Xm(i_(h,f)),k=a.fb,g=k>>31,n=d>>31,d=k-d|0,k=(-2147483648^d)>(-2147483648^k)?-1+(g-n|0)|0:g-n|0,0!==h.a[1].Ka?(g=MI(j_(JJ(h.a[1])),f),f=k_(h.a[0],0)?1:0,g=l(h.a[1].Ka,5+g|0),b=dK(ZJ(),f,g,b.Qt),0!==b&&(b=Nn(hn(),new p(b,b>>31)),f=h.a[0],h.a[0]=Ln(Rn(),f,b)),b=new PJ,l_(b,h.a[0],0),g_(b)>c?(h.a[0]=m_(h.a[0],hn().yl),b=d=-1+d|0,d=-1!==d?k:-1+k|0):(b=d,d=k)):(b=d,d=k),a.fb=eK(ZJ(),new p(b,d)),a.$n=c,n_(a,h.a[0])}function o_(a){return 0===a.$e?(a=a.Le,!(-1===a.k&&-1===a.o)):!1} +function p_(a,b){var c=a.fb,d=c>>31,f=-c|0;c=0!==c?~d:-d|0;var g=h_(a);d=g>>31;g=f+g|0;f=(-2147483648^g)<(-2147483648^f)?1+(c+d|0)|0:c+d|0;if(0===f?-2147483629<(-2147483648^g):0a.$e&&(a.Le=b.fg())}function r_(a){a.Jq=null;a.xl=0;a.$e=0;a.Le=fa;a.fb=0;a.$n=0} +function cK(a,b,c){r_(a);a.Le=b;a.fb=c;a.$e=YJ(ZJ(),b);return a}function WJ(a,b){var c=new PJ;r_(c);c.Le=new p(a,a>>31);c.fb=b;ZJ();a=32-ea(0>a?~a:a)|0;c.$e=a;return c} +function gN(a,b,c){r_(a);var d=-1+(0+c|0)|0;if(null===b)throw $q("in \x3d\x3d null");if(d>=b.a.length||0>=c||0>d)throw new wA("Bad offset/length: offset\x3d0 len\x3d"+c+" in.length\x3d"+b.a.length);var f=0;if(0<=d&&43===b.a[0]){if(f=1+f|0,f>31,h=Rt(St(),f,10),f=h>>31,h=b-h|0,a.fb=h,k=a.fb,h!==k||((-2147483648^h)>(-2147483648^b)?-1+(d-f|0)|0:d-f|0)!==k>>31))throw new wA("Scale out of range");if(19>g){f=aJ();""===c&&WI(c);d=0;b=!1;switch(65535&(c.charCodeAt(0)|0)){case 43:d=1;break;case 45:d=1,b=!0}g=c.length|0;if(d>=g)WI(c),f=void 0;else{h=(f.bC?f.aC:UI(f))[10];for(k=h.Yja;;){if(f=df?f=48===f:(n=AI(n),f=0<=eq(F(),n,f));if(f)d= +1+d|0;else break}(g-d|0)>l(3,k)&&WI(c);f=1+Pa(-1+(g-d|0)|0,k)|0;n=d+f|0;var r=XI(d,n,c);if(n===g)f=new p(r,0);else{f=h.cU;d=f.k;f=f.o;k=n+k|0;var u=65535&r,w=r>>>16|0,y=65535&d,K=d>>>16|0,U=l(u,y);y=l(w,y);var Z=l(u,K);u=U+((y+Z|0)<<16)|0;U=(U>>>16|0)+Z|0;r=((l(r,f)+l(w,K)|0)+(U>>>16|0)|0)+(((65535&U)+y|0)>>>16|0)|0;n=XI(n,k,c);n=u+n|0;r=(-2147483648^n)<(-2147483648^u)?1+r|0:r;k===g?f=new p(n,r):(u=h.Zja,h=u.k,u=u.o,g=XI(k,g,c),(r===u?(-2147483648^n)>(-2147483648^h):r>u)&&WI(c),u=65535&n,h=n>>>16| +0,K=65535&d,k=d>>>16|0,w=l(u,K),K=l(h,K),U=l(u,k),u=w+((K+U|0)<<16)|0,w=(w>>>16|0)+U|0,f=(((l(n,f)+l(r,d)|0)+l(h,k)|0)+(w>>>16|0)|0)+(((65535&w)+K|0)>>>16|0)|0,d=u+g|0,f=(-2147483648^d)<(-2147483648^u)?1+f|0:f,-2147483648===(-2147483648^f)&&(-2147483648^d)<(-2147483648^g)&&WI(c),f=new p(d,f))}}d=f.k;f=f.o;b?(b=-d|0,d=0!==d?~f:-f|0,(0===d?0!==b:0f&&WI(c),c=new p(d,f));a.Le=c;a.$e=YJ(ZJ(),a.Le)}else n_(a,yd(c))} +function l_(a,b,c){r_(a);if(null===b)throw $q("unscaledVal \x3d\x3d null");a.fb=c;n_(a,b);return a}function PJ(){this.Jq=null;this.xl=0;this.Zn=null;this.$e=0;this.Le=fa;this.$n=this.fb=0}PJ.prototype=new cJ;PJ.prototype.constructor=PJ;function s_(a){if(64>a.$e){if(0>a.Le.o)return-1;a=a.Le;var b=a.o;return(0===b?0!==a.k:0a.$e){var c=a.Le;if(0===c.k&&-2147483648===c.o)b=19;else{F();b=ZJ().Yw;if(0>c.o){var d=c.k;c=c.o;d=new p(-d|0,0!==d?~c:-c|0)}else d=c;b:{c=0;for(var f=b.a.length;;){if(c===f){b=-1-c|0;break b}var g=(c+f|0)>>>1|0,h=b.a[g],k=h.k;h=h.o;var n=Ga(new p(k,h)),r=n.k;n=n.o;var u=d.o;if(u===n?(-2147483648^d.k)<(-2147483648^r):ub?-1-b|0:1+b|0}}else b=1+Qa(.3010299956639812*(-1+a.$e|0))| +0,d=QJ(a),c=vn(),b=0!==m_(d,io(c,new p(b,b>>31))).Ka?1+b|0:b;a.$n=b}return a.$n} +function t_(a){if(o_(a))return a;var b=-1+vn().bo.a.length|0,c=1,d=QJ(a),f=a=a.fb;for(a>>=31;;){if(k_(d,0))c=f,b=d,c=new p(c,a);else{var g=i_(d,vn().bo.a[c]);if(0===g.SF.Ka){d=g.RF;var h=c;g=h>>31;var k=a;a=f-h|0;f=(-2147483648^a)>(-2147483648^f)?-1+(k-g|0)|0:k-g|0;c=ca.$e&&64>b.$e){d=a.Le;c=b.Le;var f=d.o,g=c.o;if(f===g?(-2147483648^d.k)<(-2147483648^c.k):f(-2147483648^b.k):d>c)?1:0}f=a.fb;g=f>>31;d=b.fb;var h=d>>31;d=f-d|0;f=(-2147483648^d)>(-2147483648^f)?-1+(g-h|0)|0:g-h|0;g=h_(a)-h_(b)|0;h=g>>31;var k=1+d|0,n=0===k?1+f|0:f;if(h===n?(-2147483648^g)>(-2147483648^k):h>n)return c;h=g>>31;k=-1+d|0;n=-1!==k?f:-1+f|0;if(h===n?(-2147483648^ +g)<(-2147483648^k):hf)c=vn(),a=co(a,io(c,new p(-d|0,0!==d?~f:-f|0)));else if(0===f?0!==d:0this.$e){var b=a.Le;a=this.Le;return b.k===a.k&&b.o===a.o}b=this.Zn;a=a.Zn;return $x(O(),b,a)}return!1}; +e.v=function(){if(0===this.xl)if(64>this.$e){this.xl=this.Le.k;var a=this.Le.o;this.xl=l(33,this.xl)+a|0;this.xl=l(17,this.xl)+this.fb|0}else this.xl=l(17,this.Zn.v())+this.fb|0;return this.xl}; +e.g=function(){if(null!==this.Jq)return this.Jq;if(32>this.$e)return this.Jq=aba(rn(),this.Le,this.fb);var a=QJ(this);a=on(rn(),a);if(0===this.fb)return a;var b=0>QJ(this).Ka?2:1,c=a.length|0,d=this.fb,f=d>>31,g=-d|0;f=0!==d?~f:-f|0;var h=c>>31;d=g+c|0;f=(-2147483648^d)<(-2147483648^g)?1+(f+h|0)|0:f+h|0;h=b>>31;g=d-b|0;d=(-2147483648^g)>(-2147483648^d)?-1+(f-h|0)|0:f-h|0;0a.fb){var b=QJ(a),c=vn();a=a.fb;var d=a>>31;return co(b,io(c,new p(-a|0,0!==a?~d:-d|0)))}b=QJ(a);c=vn();a=a.fb;return m_(b,io(c,new p(a,a>>31)))} +function q_(a){if(0===a.fb||o_(a))return QJ(a);if(0>a.fb){var b=QJ(a),c=vn();a=a.fb;var d=a>>31;return co(b,io(c,new p(-a|0,0!==a?~d:-d|0)))}if(a.fb>h_(a)||a.fb>w_(QJ(a)))throw new Oa("Rounding necessary");b=QJ(a);c=vn();a=a.fb;a=io(c,new p(a,a>>31));a=Xm(i_(b,a));if(0!==a.a[1].Ka)throw new Oa("Rounding necessary");return a.a[0]}e.fg=function(){return-64>=this.fb||this.fb>h_(this)?fa:v_(this).fg()};e.eg=function(){return-32>=this.fb||this.fb>h_(this)?0:v_(this).eg()}; +e.no=function(){var a=this.$e,b=a>>31,c=Aa(),d=gs(c,this.fb/.3010299956639812);c=c.za;d=a-d|0;a=(-2147483648^d)>(-2147483648^a)?-1+(b-c|0)|0:b-c|0;b=da(s_(this));return(-1===a?2147483499>(-2147483648^d):-1>a)||0===b?da(0*b):(0===a?-2147483519<(-2147483648^d):0>31,d=Aa(),f=gs(d,this.fb/.3010299956639812);d=d.za;f=b-f|0;b=(-2147483648^f)>(-2147483648^b)?-1+(c-d|0)|0:c-d|0;if((-1===b?2147482574>(-2147483648^f):-1>b)||0===a)return 0*a;if(0===b?-2147482623<(-2147483648^f):0=this.fb)f=vn(),d=-this.fb|0,d=co(c,io(f,new p(d,d>>31)));else{d=vn();var g=this.fb;d=io(d,new p(g,g>>31));f=100-f|0;0>31));d=Ln(Rn(),f,c)}f=w_(d);c=-54+$m(ln(),d)|0;if(0(-2147483648^n)?1+h|0:h}}else k=d.fg(),d=-c|0,g=k.k,k=0===(32&d)?(g>>>1|0)>>>(31-d|0)|0|k.o<(-2147483648^n)?1+h|0:h);0===(4194304&h)?(d=d>>>1|0|h<<31,h>>=1,b=b+c|0):(d=d>>>2|0|h<<30,h>>=2,b=b+(1+c|0)|0);if(2046b)return 0*a;if(0>=b){d=g>>>1|0|k<<31;h=k>>1;k=63+b|0;g=d&(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;d=0===(32&b)?d>>>b|0|h<<1<<(31-b|0):h>>b;h=0===(32&b)?h>>b:h>>31;if(3===(3&d)||(1!==(1&d)||0===g&&0===k?0:f>>1|0|f<<31;h=f>>1}f=d;b=-2147483648&a>>31|b<<20|1048575&h;a=cm();b=new p(f,b);a.yk[a.OH]=b.o;a.yk[a.PH]=b.k;return+a.ZB[0]};function QJ(a){null===a.Zn&&(a.Zn=Nn(hn(),a.Le));return a.Zn} +e.ih=function(a){return u_(this,a)};var $J=v({Cea:0},!1,"java.math.BigDecimal",{Cea:1,Gl:1,b:1,d:1,Bb:1});PJ.prototype.$classData=$J;function x_(a){a.MA=-2;a.Kq=0} +function yd(a){var b=new HJ;x_(b);hn();if(null===a)throw P();if(""===a)throw new wA("Zero length BigInteger");if(""===a||"+"===a||"-"===a)throw new wA("Zero length BigInteger");var c=a.length|0;if(45===(65535&(a.charCodeAt(0)|0)))var d=-1,f=1,g=-1+c|0;else 43===(65535&(a.charCodeAt(0)|0))?(f=d=1,g=-1+c|0):(d=1,f=0,g=c);d|=0;var h=f|0;f=g|0;for(g=h;ga.Ka?dn(1,a.jb,a.Aa):a}function MI(a,b){return a.Ka>b.Ka?1:a.Kab.jb?a.Ka:a.jbg?1:-1:On(Rn(),a.Aa,b.Aa,f);if(0===h)return d===c?hn().Pt:hn().LA;if(-1===h)return hn().zl;h=1+(f-g|0)|0;var k=new eb(h);c=d===c?1:-1;1===g?Gn(un(),k,a.Aa,f,b.Aa.a[0]):tn(un(),k,h,a.Aa,f,b.Aa,g); +c=dn(c,h,k);en(c);return c} +function i_(a,b){var c=b.Ka;if(0===c)throw new Oa("BigInteger divide by zero");var d=b.jb;b=b.Aa;if(1===d){un();b=b.a[0];var f=a.Aa,g=a.jb;d=a.Ka;1===g?(f=f.a[0],a=0===b?Na(0,0):+(f>>>0)/+(b>>>0)|0,g=0,b=0===b?Pa(0,0):+(f>>>0)%+(b>>>0)|0,f=0,d!==c&&(c=a,a=-c|0,g=0!==c?~g:-g|0),0>d&&(c=b,d=f,b=-c|0,f=0!==c?~d:-d|0),c=new Wm(Nn(hn(),new p(a,g)),Nn(hn(),new p(b,f)))):(c=d===c?1:-1,a=new eb(g),b=Gn(0,a,f,g,b),b=new eb(new Int32Array([b])),c=dn(c,g,a),d=dn(d,1,b),en(c),en(d),c=new Wm(c,d));return c}g= +a.Aa;f=a.jb;if(0>(f!==d?f>d?1:-1:On(Rn(),g,b,f)))return new Wm(hn().zl,a);a=a.Ka;var h=1+(f-d|0)|0;c=a===c?1:-1;var k=new eb(h);b=tn(un(),k,h,g,f,b,d);c=dn(c,h,k);d=dn(a,d,b);en(c);en(d);return new Wm(c,d)}e=HJ.prototype;e.c=function(a){if(a instanceof HJ){var b;if(b=this.Ka===a.Ka&&this.jb===a.jb)a:{for(b=0;b!==this.jb;){if(this.Aa.a[b]!==a.Aa.a[b]){b=!1;break a}b=1+b|0}b=!0}a=b}else a=!1;return a}; +function w_(a){if(0===a.Ka)return-1;var b=an(a);a=a.Aa.a[b];return(b<<5)+(0===a?32:31-ea(a&(-a|0))|0)|0}e.v=function(){if(0===this.Kq){for(var a=this.jb,b=0;b>31,f=65535&c,g=c>>>16|0,h=65535&a,k=a>>>16|0,n=l(f,h);h=l(g,h);var r=l(f,k);f=n+((h+r|0)<<16)|0;n=(n>>>16|0)+r|0;b=(((l(c,b)+l(d,a)|0)+l(g,k)|0)+(n>>>16|0)|0)+(((65535&n)+h|0)>>>16|0)|0;return new p(f,b)};function co(a,b){return 0===b.Ka||0===a.Ka?hn().zl:fo(vn(),a,b)}function Qn(a){return 0===a.Ka?a:dn(-a.Ka|0,a.jb,a.Aa)} +function jo(a,b){if(0>b)throw new Oa("Negative exponent");if(0===b)return hn().Pt;if(1===b||a.c(hn().Pt)||a.c(hn().zl))return a;if(k_(a,0)){vn();for(var c=hn().Pt,d=a;1>=1,c=a;return co(c,d)}for(c=1;!k_(a,c);)c=1+c|0;d=hn();var f=l(c,b);if(f>5;f&=31;var g=new eb(1+ +d|0);g.a[d]=1<>5;if(0===b)return 0!==(1&a.Aa.a[0]);if(0>b)throw new Oa("Negative bit address");if(c>=a.jb)return 0>a.Ka;if(0>a.Ka&&ca.Ka&&(d=an(a)===c?-d|0:~d);return 0!==(d&1<<(31&b))}e.g=function(){return on(rn(),this)}; +function en(a){for(;;){if(0=a?Qa(a):-2} +function D_(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":"")}function E_(a,b,c){var d=Rq(a,1+b|0);a=d.wo?"-":"";var f=d.Il,g=-1+(f.length|0)|0,h=b-g|0;b=f.substring(0,1);f=""+f.substring(1)+Nq(Oq(),h);d=g-d.Hl|0;g=""+(0>d?-d|0:d);return a+(""!==f||c?b+"."+f:b)+"e"+(0>d?"-":"+")+(1===(g.length|0)?"0"+g:g)} +function F_(a,b,c){var d=Pq(a,((a.Il.length|0)+b|0)-a.Hl|0);Oq();if(!("0"===d.Il||d.Hl<=b))throw Sq("roundAtPos returned a non-zero value with a scale too large");d="0"===d.Il||d.Hl===b?d:new Qq(a.wo,""+d.Il+Nq(Oq(),b-d.Hl|0),b);a=d.wo?"-":"";d=d.Il;var f=d.length|0,g=1+b|0;d=f>=g?d:""+Nq(Oq(),g-f|0)+d;f=(d.length|0)-b|0;a+=d.substring(0,f);return 0!==b||c?a+"."+d.substring(f):a}function EJ(a,b,c,d,f,g){b=0>f?g:g.substring(0,f);b=0!==(256&c)?b.toUpperCase():b;BJ(a,c,d,b)} +function MJ(a,b,c,d){BJ(a,b,c,LJ(b,d!==d?"NaN":0=c&&0===(110&b))b=LJ(b,d),sJ(a,b);else if(0===(126&b))BJ(a,b,c,LJ(b,d));else{if(45!==(65535&(d.charCodeAt(0)|0)))var g=0!==(4&b)?"+":0!==(8&b)?" ":"";else 0!==(64&b)?(d=d.substring(1)+")",g="("):(d=d.substring(1),g="-");f=""+g+f;if(0!==(32&b)){var h=d.length|0;for(g=0;;){if(g!==h){var k=65535&(d.charCodeAt(g)|0);k=48<=k&&57>=k}else k=!1;if(k)g=1+g|0;else break}g=-3+g|0;if(!(0>=g)){for(h=d.substring(g);3=c?sJ(a,d):0!==(1&b)?B_(a,d,G_(" ",c-f|0)):B_(a,G_(" ",c-f|0),d)}function KJ(a,b,c,d,f,g){b=(f.length|0)+(g.length|0)|0;b>=d?B_(a,f,g):0!==(16&c)?C_(a,f,G_("0",d-b|0),g):0!==(1&c)?C_(a,f,g,G_(" ",d-b|0)):C_(a,G_(" ",d-b|0),f,g)}function G_(a,b){for(var c="",d=0;d!==b;)c=""+c+a,d=1+d|0;return c}function tJ(a){throw new H_(String.fromCharCode(a));} +function xJ(a){throw new I_(a);}function OJ(a,b,c,d,f,g){var h=0!==(2&c);d=0<=d?d:6;switch(f){case 101:h=E_(b,d,h);break;case 102:h=F_(b,d,h);break;default:f=0===d?1:d,b=Rq(b,f),d=(-1+(b.Il.length|0)|0)-b.Hl|0,-4<=d&&df?0:f,h)):h=E_(b,-1+f|0,h)}IJ(a,c,g,h,"")}function pJ(){this.xo=this.Nka=this.or=null;this.XH=!1;this.qU=null}pJ.prototype=new t;pJ.prototype.constructor=pJ;pJ.prototype.g=function(){if(this.XH)throw new rJ;return null===this.or?this.xo:this.or.g()}; +function yJ(a){throw new J_(D_(a));}function AJ(a,b,c){throw new K_(D_(b&c),a);}function FJ(a,b){throw new L_(a,ia(b));}pJ.prototype.$classData=v({Ika:0},!1,"java.util.Formatter",{Ika:1,b:1,JA:1,XB:1,KA:1});class hx extends rk{constructor(a){super();iJ(this,"Boxed Exception",a)}}hx.prototype.$classData=v({Bla:0},!1,"java.util.concurrent.ExecutionException",{Bla:1,ub:1,gb:1,b:1,d:1});function M_(){this.xk=null;this.aj=0}M_.prototype=new PQ;M_.prototype.constructor=M_;function N_(){}N_.prototype=M_.prototype; +var iL=v({Bo:0},!1,"java.util.concurrent.TimeUnit",{Bo:1,to:1,b:1,Bb:1,d:1});M_.prototype.$classData=iL;function O_(){}O_.prototype=new pR;O_.prototype.constructor=O_;function P_(){}P_.prototype=O_.prototype;function Eg(){this.KC=null}Eg.prototype=new t;Eg.prototype.constructor=Eg;function Q_(){}Q_.prototype=Eg.prototype;Eg.prototype.ih=function(a){return this.Pl()=>f.r(g))(this,b,a)))};e.qf=function(a){return RL(this,a)};e.$classData=v({wma:0},!1,"scala.PartialFunction$Combined",{wma:1,b:1,Ca:1,ja:1,d:1});function S_(){}S_.prototype=new t;S_.prototype.constructor=S_;function T_(){}e=T_.prototype=S_.prototype;e.t=function(){return this}; +e.i=function(){return!this.s()};e.sg=function(a){return Xc(this,a)};e.Se=function(a){return eS(this,a)};e.g=function(){return"\x3citerator\x3e"};e.Tg=function(a){return ht(this,a)};e.Zb=function(a,b,c){return zg(this,a,b,c)};e.zf=function(a,b,c,d){return lt(this,a,b,c,d)};e.qc=function(){Wb();return Xb(A(),this)};e.Kh=function(){return M(nM(),this)};e.kg=function(){return UU(wx(),this)};e.bh=function(a){return mt(this,a)};e.N=function(){return-1};function U_(){this.Lj=null;this.Lj=V_()} +U_.prototype=new IR;U_.prototype.constructor=U_;U_.prototype.$classData=v({lpa:0},!1,"scala.collection.Iterable$",{lpa:1,gJ:1,b:1,Te:1,d:1});var W_;function vx(){W_||(W_=new U_);return W_}function X_(){this.dW=this.cW=this.Mo=null;zca(this);Y_=this;this.cW=new Ha;this.dW=new Yc((()=>()=>Z_().cW)(this))}X_.prototype=new kS;X_.prototype.constructor=X_;X_.prototype.$classData=v({Jpa:0},!1,"scala.collection.Map$",{Jpa:1,Kpa:1,b:1,Ly:1,d:1});var Y_;function Z_(){Y_||(Y_=new X_);return Y_} +function mr(a,b){this.hJ=this.bD=null;this.Ppa=a;this.Opa=b;WR(this,a,b)}mr.prototype=new ZR;mr.prototype.constructor=mr;function cba(a,b){return new mr(a.Ppa,new C(((c,d)=>f=>!!c.Opa.r(f)&&!!d.r(f))(a,b)))}mr.prototype.$classData=v({Npa:0},!1,"scala.collection.MapOps$WithFilter",{Npa:1,NV:1,HJ:1,b:1,d:1});function $_(){this.Ag=null}$_.prototype=new t;$_.prototype.constructor=$_;function a0(){}e=a0.prototype=$_.prototype;e.Zi=function(a,b){return this.Ib(new b0(a,b))}; +e.yj=function(a,b){return this.Ib(new c0(a,b))};function N(a,b){return a.Ag.Pf(b)}e.Du=function(a){return this.Ag.Ib(a)};e.Ya=function(){return this.Ag.Ya()};e.Ib=function(a){return this.Du(a)};e.Bc=function(){return this.Ag.Bc()};e.Pf=function(a){return N(this,a)};function d0(a,b){var c=a.Db();a=UR(b)?new VR(b,a):b.t().sg(new Yc((d=>()=>d.t())(a)));return c.Ib(a)}function Dd(a){return a.Af(new C((()=>b=>b)(a)))}function e0(a,b){return a.ke(new f0(a,b))} +function ml(a,b){return a.vi(new C(((c,d)=>f=>fq(O(),d,f))(a,b)),0)}function WS(a,b){return a.dr(new C(((c,d)=>f=>fq(O(),f,d))(a,b)))}function g0(a,b){var c=a.z(),d=a.Sg();if(1===c)c=a.G(),d.Ia(c);else if(1u=>{u=h.r(u);k.Ia(u.pk);n.Ia(u.qk);return r.Ia(u.rk)})(a,b,c,d,f)));return new sg(c.nb(),d.nb(),f.nb())}function i0(a,b){var c=a.Db().Ya();for(a=a.t();a.s();){var d=b.r(a.p());c.Ia(d)}return c.nb()} +function j0(a,b){var c=a.Db().Ya();for(a=a.t();a.s();){var d=b.r(a.p());c.ec(d)}return c.nb()}function ada(a,b){for(var c=a.Db().Ya(),d=qy(),f=a.t();f.s();){var g=f.p();g=b.Lc(g,new C(((h,k)=>()=>k)(a,d)));d!==g&&c.Ia(g)}return c.nb()}function k0(a,b){var c=a.Sg();for(a=a.t();a.s();){var d=a.p();!1!==!!b.r(d)&&c.Ia(d)}return c.nb()}function l0(a,b){var c=a.Sg();if(-1!==a.N()){var d=a.N();c.oc(d()=>{Bx();var r=h.r(k),u=eda(g,1+k|0,n,h);return new pT(r,u)})(a,d,b,c))):a.Hi};function r0(){this.Hi=null;s0=this;this.Hi=t0(new q0(new Yc((()=>()=>sT())(this))))}r0.prototype=new t;r0.prototype.constructor=r0;e=r0.prototype;e.Pf=function(a){return pS(this,a)}; +function u0(a,b,c,d){return new q0(new Yc(((f,g,h,k)=>()=>{for(var n=null,r=!1,u=g.Ob;!r&&!u.i();)n=v0(u).G(),r=!!h.r(n)!==k,u=v0(u).Pc(),g.Ob=u;return r?(Bx(),u=u0(Bx(),u,h,k),new pT(n,u)):sT()})(a,new mC(b),c,d)))} +function w0(a,b,c){return new q0(new Yc(((d,f,g)=>()=>{for(var h=new mC(null),k=!1,n=new mC(f.Ob);!k&&!n.Ob.i();)h.Ob=g.r(v0(n.Ob).G()).t(),k=h.Ob.s(),k||(n.Ob=v0(n.Ob).Pc(),f.Ob=n.Ob);return k?(k=h.Ob.p(),n.Ob=v0(n.Ob).Pc(),f.Ob=n.Ob,Bx(),Bx(),new pT(k,new q0(new Yc(((r,u,w,y)=>()=>x0(Bx(),u.Ob,new Yc(((K,U,Z)=>()=>v0(w0(Bx(),U.Ob,Z)))(r,w,y))))(d,h,n,g))))):sT()})(a,new mC(b),c)))} +function gda(a,b,c){return new q0(new Yc(((d,f,g)=>()=>{for(var h=f.Ob,k=g.qz;0()=>{for(var k=f.Ob,n=g.qz;0()=>y0(Bx(),d.t()))(a,b)))}function x0(a,b,c){if(b.s()){var d=b.p();return new pT(d,new q0(new Yc(((f,g,h)=>()=>x0(Bx(),g,h))(a,b,c))))}return c.Rb()}function y0(a,b){if(b.s()){var c=b.p();return new pT(c,new q0(new Yc(((d,f)=>()=>y0(Bx(),f))(a,b))))}return sT()}function z0(a,b,c){return 0()=>{Bx();var h=f.Rb(),k=z0(Bx(),-1+g|0,f);return new pT(h,k)})(a,c,b))):a.Hi}e.Ya=function(){return new A0}; +e.yj=function(a,b){return fda(this,0,a,b)};e.Zi=function(a,b){return z0(this,a,b)};e.Bc=function(){return this.Hi};e.Ib=function(a){return pS(this,a)};e.$classData=v({kra:0},!1,"scala.collection.immutable.LazyList$",{kra:1,b:1,bi:1,Te:1,d:1});var s0;function Bx(){s0||(s0=new r0);return s0}function B0(){}B0.prototype=new t;B0.prototype.constructor=B0;e=B0.prototype;e.Pf=function(a){return C0(this,a)};e.Zi=function(a,b){return this.Ib(new b0(a,b))};e.yj=function(a,b){return this.Ib(new c0(a,b))}; +function C0(a,b){return b instanceof D0?b:E0(a,b.t())}function E0(a,b){return b.s()?new F0(b.p(),new Yc(((c,d)=>()=>E0(Ax(),d))(a,b))):G0()}e.Ya=function(){var a=new sS;return new tS(a,new C((()=>b=>C0(Ax(),b))(this)))};function ida(a,b,c,d){var f=b.G();return new F0(f,new Yc(((g,h,k,n)=>()=>IT(h.L(),k,n))(a,b,c,d)))}e.Bc=function(){return G0()};e.Ib=function(a){return C0(this,a)};e.$classData=v({Gsa:0},!1,"scala.collection.immutable.Stream$",{Gsa:1,b:1,bi:1,Te:1,d:1});var H0; +function Ax(){H0||(H0=new B0);return H0}function I0(){}I0.prototype=new t;I0.prototype.constructor=I0;I0.prototype.Hx=function(a,b){return J0(0,a,b)}; +function J0(a,b,c){if(b instanceof K0&&(a=b.gf,null===c?null===a:c.c(a)))return b;if(L0(b)&&(a=b.Pu(),null===c?null===a:c.c(a)))return M0(new K0,ov(nf(),b.t(),b.Y()),c);if(b instanceof N0&&(c===xp()?a=!0:(a=xp(),a=c===a.Uu),a))return a=c===xp()===0b=>new ML(b))(this)))};T0.prototype.$classData=v({gta:0},!1,"scala.collection.immutable.WrappedString$",{gta:1,b:1,NBa:1,fJ:1,d:1});var U0; +function W0(){U0||(U0=new T0);return U0}function tS(a,b){this.XW=this.gz=null;if(null===a)throw I(J(),null);this.gz=a;this.XW=b}tS.prototype=new t;tS.prototype.constructor=tS;e=tS.prototype;e.oc=function(a){this.gz.oc(a)};e.nb=function(){return this.XW.r(this.gz.nb())};e.ec=function(a){this.gz.ec(a);return this};e.Ia=function(a){this.gz.Ia(a);return this};e.$classData=v({Fta:0},!1,"scala.collection.mutable.Builder$$anon$1",{Fta:1,b:1,ue:1,Fd:1,Ed:1});function iU(a,b){a.Xf=b;return a} +function jU(){this.Xf=null}jU.prototype=new t;jU.prototype.constructor=jU;function X0(){}e=X0.prototype=jU.prototype;e.oc=function(){};function YX(a,b){a.Xf.Ia(b);return a}function FZ(a,b){a.Xf.ec(b);return a}e.ec=function(a){return FZ(this,a)};e.Ia=function(a){return YX(this,a)};e.nb=function(){return this.Xf};e.$classData=v({hz:0},!1,"scala.collection.mutable.GrowableBuilder",{hz:1,b:1,ue:1,Fd:1,Ed:1});function Y0(){this.Lj=null;this.Lj=qV()}Y0.prototype=new IR;Y0.prototype.constructor=Y0; +Y0.prototype.$classData=v({Wta:0},!1,"scala.collection.mutable.Iterable$",{Wta:1,gJ:1,b:1,Te:1,d:1});var Z0;function $0(){this.Mo=null;this.Mo=XT()}$0.prototype=new kS;$0.prototype.constructor=$0;$0.prototype.$classData=v({eua:0},!1,"scala.collection.mutable.Map$",{eua:1,Kpa:1,b:1,Ly:1,d:1});var a1;function pr(){a1||(a1=new $0);return a1}function b1(){this.Lj=null;this.Lj=eU()}b1.prototype=new IR;b1.prototype.constructor=b1; +b1.prototype.$classData=v({kua:0},!1,"scala.collection.mutable.Set$",{kua:1,gJ:1,b:1,Te:1,d:1});var c1;class Qw extends My{constructor(){super();iJ(this,null,null)}mo(){return az(this)}}Qw.prototype.$classData=v({Pma:0},!1,"scala.concurrent.Future$$anon$4",{Pma:1,gb:1,b:1,d:1,ZC:1});function d1(){}d1.prototype=new t;d1.prototype.constructor=d1;function e1(){}e1.prototype=d1.prototype;d1.prototype.ih=function(a){return this.Kx(a)};function uy(){this.hX=null;this.hX=Promise.resolve(void 0)} +uy.prototype=new t;uy.prototype.constructor=uy;uy.prototype.wH=function(a){this.hX.then(((b,c)=>()=>{try{c.vr()}catch(f){var d=Sr(J(),f);if(null!==d)zw(d);else throw f;}})(this,a))};uy.prototype.CI=function(a){zw(a)};uy.prototype.$classData=v({pua:0},!1,"scala.scalajs.concurrent.QueueExecutionContext$PromisesExecutionContext",{pua:1,b:1,qV:1,nV:1,vU:1});function ty(){}ty.prototype=new t;ty.prototype.constructor=ty; +ty.prototype.wH=function(a){setTimeout(fC(eC(),new Yc(((b,c)=>()=>{try{c.vr()}catch(f){var d=Sr(J(),f);if(null!==d)zw(d);else throw f;}})(this,a))),0)};ty.prototype.CI=function(a){zw(a)};ty.prototype.$classData=v({qua:0},!1,"scala.scalajs.concurrent.QueueExecutionContext$TimeoutsExecutionContext",{qua:1,b:1,qV:1,nV:1,vU:1});function f1(){}f1.prototype=new t;f1.prototype.constructor=f1;function g1(){}g1.prototype=f1.prototype;function Zw(){}Zw.prototype=new t;Zw.prototype.constructor=Zw; +function h1(){}h1.prototype=Zw.prototype;function jda(a,b,c){b=b.Gb(c.Y(),-1);c.Fa(new C(((d,f)=>g=>{var h=f.h();f.q(YU(d,g,h),-1)})(a,b)));return b.da(-1)}function kda(a,b,c){b=b.ca(c.Y(),-1);c.Fa(new C(((d,f)=>g=>{var h=f.u(-1);f.j(h.n(g.Ea(),-1));g=g.xa();h=f.h();f.q(YU(d,g,h),-1)})(a,b)));return b.da(-1)}function i1(){}i1.prototype=new t;i1.prototype.constructor=i1;function j1(){}j1.prototype=i1.prototype;i1.prototype.$k=function(a){return YU(Ez(),this,a)};i1.prototype.g=function(){return Pk(this)}; +function k1(){}k1.prototype=new BN;k1.prototype.constructor=k1;k1.prototype.g=function(){return"Num"};k1.prototype.r=function(a){return new l1(+a)};k1.prototype.$classData=v({ega:0},!1,"ujson.Num$",{ega:1,lK:1,b:1,ja:1,d:1});var m1;function n1(){}n1.prototype=new BN;n1.prototype.constructor=n1;n1.prototype.g=function(){return"Str"};n1.prototype.r=function(a){return new o1(a)};n1.prototype.$classData=v({lga:0},!1,"ujson.Str$",{lga:1,lK:1,b:1,ja:1,d:1});var p1;function q1(){}q1.prototype=new t; +q1.prototype.constructor=q1;function r1(){}r1.prototype=q1.prototype;function xV(a,b){this.ou=this.nu=this.pu=null;if(null===a)throw I(J(),null);this.nu=a;this.ou=b}xV.prototype=new t;xV.prototype.constructor=xV;e=xV.prototype;e.g=function(){return Lz(this)};e.ae=function(){return!0};e.u=function(a){return new s1(this,a)};e.j=function(a){null===this.pu&&(this.pu="?");this.ou.j(a)};e.h=function(){return Hz(new Iz,this.ou.h(),this,this.nu.go)};e.q=function(a,b){this.pu=null;this.ou.q(a,b)}; +e.da=function(a){this.nu.go.qu=this.nu.Tq;return this.ou.da(a)};e.BI=function(){var a=xI(yI(),this.pu);if(a.i())return E();a=a.Sa();return new Ze("'"+a.split("'").join("\\'")+"'")};e.EC=function(){return new Ze(this.nu.Tq)};e.$classData=v({bha:0},!1,"upickle.core.TraceVisitor$$anon$1",{bha:1,b:1,Ga:1,ua:1,ES:1});function s1(a,b){this.CG=this.go=this.Tq=this.DG=this.af=null;if(null===a)throw I(J(),null);this.CG=a;Hz(this,a.ou.u(b),a,a.nu.go)}s1.prototype=new wV;s1.prototype.constructor=s1; +s1.prototype.n=function(a,b){this.CG.pu=Ma(a);return this.DG.n(this.CG.pu,b)};s1.prototype.$classData=v({cha:0},!1,"upickle.core.TraceVisitor$$anon$1$$anon$2",{cha:1,DS:1,PG:1,b:1,la:1});function yV(a,b){this.lB=0;this.kB=this.rx=null;if(null===a)throw I(J(),null);this.rx=a;this.kB=b;this.lB=0;a.go.qu=this}yV.prototype=new t;yV.prototype.constructor=yV;e=yV.prototype;e.g=function(){return Lz(this)};e.ae=function(){return!1};e.h=function(){return Hz(new Iz,this.kB.h(),this,this.rx.go)}; +e.q=function(a,b){this.kB.q(a,b);this.lB=1+this.lB|0};e.da=function(a){this.rx.go.qu=this.rx.Tq;return this.kB.da(a)};e.BI=function(){return new Ze(""+this.lB)};e.EC=function(){return new Ze(this.rx.Tq)};e.$classData=v({dha:0},!1,"upickle.core.TraceVisitor$$anon$3",{dha:1,b:1,Dl:1,ua:1,ES:1});function t1(a,b){this.JS=this.af=null;if(null===a)throw I(J(),null);this.JS=a;this.af=b}t1.prototype=new rP;t1.prototype.constructor=t1;t1.prototype.ca=function(a,b){return qP.prototype.ca.call(this,a,b)}; +t1.prototype.Gb=function(a,b){return qP.prototype.Gb.call(this,a,b)};t1.prototype.mf=function(){return this.JS.HG};t1.prototype.$classData=v({mha:0},!1,"upickle.core.Types$Reader$Delegate",{mha:1,PG:1,b:1,la:1,qa:1});function u1(){this.GG=this.cg=null}u1.prototype=new tP;u1.prototype.constructor=u1;function v1(){}v1.prototype=u1.prototype;u1.prototype.ca=function(a,b){return sP.prototype.ca.call(this,a,b)};u1.prototype.Gb=function(a,b){return sP.prototype.Gb.call(this,a,b)};u1.prototype.mf=function(){return this.GG.HG}; +function AA(a,b,c,d,f,g,h,k,n){this.zB=a;this.EB=b;this.AB=c;this.xB=d;this.DB=f;this.CB=g;this.BB=h;this.wB=k;this.yB=n}AA.prototype=new t;AA.prototype.constructor=AA;e=AA.prototype;e.A=function(){return"JSLogColorPalette"};e.B=function(){return 9};e.C=function(a){switch(a){case 0:return this.zB;case 1:return this.EB;case 2:return this.AB;case 3:return this.xB;case 4:return this.DB;case 5:return this.CB;case 6:return this.BB;case 7:return this.wB;case 8:return this.yB;default:return T(W(),a)}}; +e.v=function(){return ig(D(),this)};e.g=function(){return fy(this)};e.c=function(a){return this===a?!0:a instanceof AA?this.zB===a.zB&&this.EB===a.EB&&this.AB===a.AB&&this.xB===a.xB&&this.DB===a.DB&&this.CB===a.CB&&this.BB===a.BB&&this.wB===a.wB&&this.yB===a.yB:!1};e.$classData=v({Zia:0},!1,"wvlet.log.JSConsoleLogHandler$JSLogColorPalette",{Zia:1,b:1,y:1,m:1,d:1});function w1(a,b,c,d){a.ok=b;a.Tb=c;a.nk=d}function x1(){this.ok=0;this.nk=this.Tb=null}x1.prototype=new t;x1.prototype.constructor=x1; +function y1(){}y1.prototype=x1.prototype;x1.prototype.ih=function(a){return this.ok-a.ok|0};function jh(a,b,c,d){this.KB=a;this.wx=b;this.xx=c;this.JB=d}jh.prototype=new t;jh.prototype.constructor=jh;e=jh.prototype;e.A=function(){return"LogSource"};e.B=function(){return 4};e.C=function(a){switch(a){case 0:return this.KB;case 1:return this.wx;case 2:return this.xx;case 3:return this.JB;default:return T(W(),a)}}; +e.v=function(){var a=Ja("LogSource");a=W().l(-889275714,a);var b=this.KB;b=ly(W(),b);a=W().l(a,b);b=this.wx;b=ly(W(),b);a=W().l(a,b);b=this.xx;a=W().l(a,b);b=this.JB;a=W().l(a,b);return W().ea(a,4)};e.g=function(){return fy(this)};e.c=function(a){return this===a?!0:a instanceof jh?this.xx===a.xx&&this.JB===a.JB&&this.KB===a.KB&&this.wx===a.wx:!1};e.$classData=v({mja:0},!1,"wvlet.log.LogSource",{mja:1,b:1,y:1,m:1,d:1});function z1(){A1=this}z1.prototype=new gQ;z1.prototype.constructor=z1; +z1.prototype.$classData=v({AX:0},!1,"cats.Eval$",{AX:1,yva:1,zva:1,Ava:1,b:1,d:1});var A1;function B1(){A1||(A1=new z1)}function C1(a,b){for(;;){var c=!1,d=null;if(a instanceof aW)return a.Nh.r(b);if(a instanceof bW){c=!0;d=a;var f=d.dk,g=d.ek;if(f instanceof aW){b=f.Nh.r(b);a=g;continue}}if(c&&(c=d.dk,d=d.ek,c instanceof bW)){a:for(a=c;;)if(a instanceof bW)d=new bW(a.ek,d),a=a.dk;else{a=new bW(a,d);break a}continue}throw new B(a);}}function $V(){}$V.prototype=new t;$V.prototype.constructor=$V; +function D1(){}e=D1.prototype=$V.prototype;e.hh=function(a){C1(this,a)};e.rf=function(a){return!!C1(this,a)};e.r=function(a){return C1(this,a)};function ke(a,b){if(b instanceof $V)return Aca(me(),a,b);if(a instanceof aW){var c=a.Nh,d=a.Oi;if(128>d)return new aW(c.qf(b),1+d|0)}if(a instanceof bW){c=a.dk;var f=a.ek;if(f instanceof aW&&(d=f.Nh,f=f.Oi,128>f))return new bW(c,new aW(d.qf(b),1+f|0))}return new bW(a,new aW(b,0))}e.g=function(){return"AndThen$"+Va(this)};e.qf=function(a){return ke(this,a)}; +function E1(){this.ni=null;F1=this;G1||(G1=new H1);this.ni=G1}E1.prototype=new eW;E1.prototype.constructor=E1;function Jb(a,b,c){return b instanceof Zb?c instanceof Zb?new Tb(b,c):b:c}function Pb(a,b){return b.i()?a.ni:0===b.fc(1)?(a=b.G(),new Lb(a)):new Nb(b)}E1.prototype.$classData=v({cY:0},!1,"cats.data.Chain$",{cY:1,dwa:1,ewa:1,fwa:1,gwa:1,b:1});var F1;function Kb(){F1||(F1=new E1);return F1}function H1(){}H1.prototype=new Hb;H1.prototype.constructor=H1;H1.prototype.A=function(){return"Empty"}; +H1.prototype.B=function(){return 0};H1.prototype.C=function(a){return T(W(),a)};H1.prototype.$classData=v({fY:0},!1,"cats.data.Chain$Empty$",{fY:1,gE:1,b:1,y:1,m:1,d:1});var G1;function tg(a,b){for(var c=z().Jb;;){var d=z().Jb;if(null===d?null===b:d.c(b))return new Ld(a,c);if(b instanceof Vb)d=b.Ma,c=new Vb(a,c),a=b.Wc,b=d;else throw new B(b);}}function Ld(a,b){this.ch=a;this.Oh=b}Ld.prototype=new t;Ld.prototype.constructor=Ld;e=Ld.prototype;e.qc=function(){return new Vb(this.ch,this.Oh)}; +e.Y=function(){return 1+this.Oh.z()|0};e.g=function(){return"NonEmpty"+this.qc()};e.A=function(){return"NonEmptyList"};e.B=function(){return 2};e.C=function(a){switch(a){case 0:return this.ch;case 1:return this.Oh;default:return T(W(),a)}};e.v=function(){return ig(D(),this)};e.c=function(a){if(this===a)return!0;if(a instanceof Ld){var b=this.ch,c=a.ch;if(fq(O(),b,c))return b=this.Oh,a=a.Oh,null===b?null===a:b.c(a)}return!1}; +e.$classData=v({kY:0},!1,"cats.data.NonEmptyList",{kY:1,b:1,hwa:1,y:1,m:1,d:1});function I1(){new J1(this)}I1.prototype=new kQ;I1.prototype.constructor=I1;function Jaa(a){var b=z().Jb;if(null===b?null===a:b.c(a))return E();if(a instanceof Vb)return new Ze(new Ld(a.Wc,a.Ma));throw new B(a);}function rf(a,b){a=z().Jb;if(null===a?null===b:a.c(b))throw Hq("Cannot create NonEmptyList from empty list");if(b instanceof Vb)return new Ld(b.Wc,b.Ma);throw new B(b);} +I1.prototype.$classData=v({lY:0},!1,"cats.data.NonEmptyList$",{lY:1,iwa:1,jwa:1,kwa:1,b:1,d:1});var K1;function sf(){K1||(K1=new I1);return K1}function nW(){mW=this;new L1(this);new lW(this)}nW.prototype=new t;nW.prototype.constructor=nW;nW.prototype.$classData=v({f_:0},!1,"cats.instances.package$seq$",{f_:1,b:1,vZ:1,r0:1,s0:1,t0:1});var mW;function UA(){}UA.prototype=new vW;UA.prototype.constructor=UA;e=UA.prototype;e.A=function(){return"EqualTo"};e.B=function(){return 0}; +e.C=function(a){return T(W(),a)};e.v=function(){return 159386799};e.g=function(){return"EqualTo"};e.$classData=v({k_:0},!1,"cats.kernel.Comparison$EqualTo$",{k_:1,LK:1,b:1,y:1,m:1,d:1});var TA;function SA(){}SA.prototype=new vW;SA.prototype.constructor=SA;e=SA.prototype;e.A=function(){return"GreaterThan"};e.B=function(){return 0};e.C=function(a){return T(W(),a)};e.v=function(){return-1701951333};e.g=function(){return"GreaterThan"}; +e.$classData=v({l_:0},!1,"cats.kernel.Comparison$GreaterThan$",{l_:1,LK:1,b:1,y:1,m:1,d:1});var RA;function WA(){}WA.prototype=new vW;WA.prototype.constructor=WA;e=WA.prototype;e.A=function(){return"LessThan"};e.B=function(){return 0};e.C=function(a){return T(W(),a)};e.v=function(){return-2140646662};e.g=function(){return"LessThan"};e.$classData=v({m_:0},!1,"cats.kernel.Comparison$LessThan$",{m_:1,LK:1,b:1,y:1,m:1,d:1});var VA;function Nc(){}Nc.prototype=new mQ;Nc.prototype.constructor=Nc; +Nc.prototype.$classData=v({q_:0},!1,"cats.kernel.Group$",{q_:1,Fwa:1,w_:1,QK:1,b:1,d:1});var Mc;function zc(){}zc.prototype=new bB;zc.prototype.constructor=zc;zc.prototype.$classData=v({z_:0},!1,"cats.kernel.PartialOrder$",{z_:1,A_:1,mE:1,b:1,PK:1,d:1});var yc;function kf(a){this.i0=a}kf.prototype=new t;kf.prototype.constructor=kf;kf.prototype.lo=function(a,b){return 0===this.$(a,b)}; +kf.prototype.$=function(a,b){if(a===b)a=0;else a:for(var c=b;;){b=z().Jb;if(null===b?null===a:b.c(a)){a=c.i()?0:-1;break a}if(a instanceof Vb){b=a;a=b.Wc;b=b.Ma;var d=z().Jb;if(null===d?null===c:d.c(c)){a=1;break a}if(c instanceof Vb){d=c;c=d.Ma;a=this.i0.$(a,d.Wc);if(0!==a)break a;a=b}else throw new B(c);}else throw new B(a);}return a};kf.prototype.$classData=v({h0:0},!1,"cats.kernel.instances.ListOrder",{h0:1,b:1,Im:1,Jm:1,fk:1,d:1});function jf(a,b,c){this.I0=b;this.J0=c}jf.prototype=new t; +jf.prototype.constructor=jf;jf.prototype.lo=function(a,b){return 0===this.$(a,b)};jf.prototype.$=function(a,b){a=new eb(new Int32Array([this.I0.$(a.Ea(),b.Ea()),this.J0.$(a.xa(),b.xa())]));a:{for(b=0;bd=>new Ue(c.ew,d))(this))));return b}; +e.A=function(){return"WithContextP0"};e.B=function(){return 2};e.C=function(a){switch(a){case 0:return this.ew;case 1:return this.Rm;default:return T(W(),a)}};e.g=function(){return fy(this)};e.c=function(a){if(this===a)return!0;if(a instanceof Ff&&this.ew===a.ew){var b=this.Rm;a=a.Rm;return null===b?null===a:b.c(a)}return!1};e.$classData=v({b2:0},!1,"cats.parse.Parser$Impl$WithContextP0",{b2:1,Yb:1,b:1,y:1,m:1,d:1}); +function OX(a){this.Nz=this.Mz=this.Oz=this.Ym=this.zp=this.Xm=null;this.Ab=a;this.Xm=Aw();this.Ym=this.zp=Hy(new Iy);this.Oz=qC().Wz.g();this.Mz=N(z().w,A());this.Nz=N(z().w,A())}OX.prototype=new t;OX.prototype.constructor=OX;function V1(a,b){a.Oz=b.Ts.g();a.Mz.Fa(new C(((c,d)=>f=>{f.hh(xca(qC(),d.Ts))})(a,b)));a.Nz.Fa(new C((c=>d=>{d.r(c.Oz)})(a)))} +function lda(a,b,c,d,f){var g=eh().wb,h=fh();gh(hh(g),h.Tb)&&ih(eh().wb,fh(),new jh("com/github/p2m2/shared/src/main/scala/inrae/semantic_web/SWTransaction.scala","SWTransaction.scala",73,10)," -- process_datatypes --");g=d.dn.Kc;f=f.SB(a.Ab.dc.ve.mg.jl);Wb();f=Xb(A(),f);a=((k,n,r,u,w)=>y=>{var K=eh().wb,U=Ij();gh(hh(K),U.Tb)&&ih(eh().wb,Ij(),new jh("com/github/p2m2/shared/src/main/scala/inrae/semantic_web/SWTransaction.scala", +"SWTransaction.scala",78,14)," datatypes:"+y.g());K=k.Ab.dc;DB();Ki();U=QK().g();var Z=EF();Ki();var ra=N(z().w,A());Ki();z();var Ba=A();Ba=Xb(A(),Ba);Ki();z();var ka=A();ka=Xb(A(),ka);Ki();z();var Ca=A();Ca=Xb(A(),Ca);Ki();z();var Fa=A();Fa=Xb(A(),Fa);Ki();z();var ib=A();ib=Xb(A(),ib);Ki();z();var zb=A();zb=Xb(A(),zb);Ki();var Ab=N(z().w,A());Ki();L();var nd=A();y=VW(rX(mX(Cca(new uQ(K,new uj(U,Z,ra,Ba,ka,Ca,Fa,ib,zb,Ab,M(0,nd)),(DB(),E())),n.wf),"val_uri"),y.lb(new C((()=>Bb=>Bb instanceof Jk?new Ze(Bb): +E())(k)))),r.dn,!1);z();K=Af(new Bf,["val_uri",u]);K=Xb(A(),K);return Vw(VX(LX(y,K,0,0)).Ym,new C(((Bb,Dc,cc)=>Ec=>{Ec=(new Kk("results")).Uc(Ec);Ec=(new Kk("bindings")).Uc(Ec);var Xa=MO(Ec);Ec=new sS;for(Xa=new vK(new XX(Xa.jg,Xa.Lb));Xa.s();){var hb=Xa.p(),Pe=(new Kk("val_uri")).Uc(hb);Pe=Ma((new Kk("value")).Uc(Pe).um());hb=(new Kk(cc)).Uc(hb);hb=G(new H,Pe,hb);YX(Ec,hb)}Ec=Ec.Xf;yg();$ca(Dc,cc,Ec.Kh())})(k,w,u)),k.Xm)})(a,b,d,g,c);if(f===A())return A();b=f.G();c=b=new Vb(a(b),A());for(d=f.L();d!== +A();)f=d.G(),f=new Vb(a(f),A()),c=c.Ma=f,d=d.L();return b} +function VX(a){V1(a,new pC(qC().Wz));var b=a.Ab.eb;z();var c=A();c=Xb(A(),c);gj();var d=N(z().w,A());gj();L();var f=A();b=b.tf(new Dj(c,"",d,M(0,f)),new xC(m(YE)));b=MR(b);if(!(b instanceof Ze)){if(E()===b)throw V1(a,new pC(qC().dF)),a=E(),yg(),a.i()||Ci(),new Di("projection/selected required variables are not defined.");throw new B(b);}b=b.Sb.Fj.zu();c=a.Ab.eb;d=new Jk("",(Lk(),""));Xi();f=N(z().w,A());Xi();L();var g=A();d=new Jj("",d,f,M(0,g));Pi();f=N(z().w,A());Pi();L();g=A();c=c.tf(new Bk("", +d,"unk",f,M(0,g)),new xC(m(fD))).ob(new C(((k,n)=>r=>n.Da(new C((()=>u=>u.dh)(k))).Pa(r.dn.Kc))(a,b)));if(c.ob(new C(((k,n)=>r=>n.Da(new C((()=>u=>u.dh)(k))).Pa(r.pl))(a,b))).z()!==c.z()){V1(a,new pC(qC().dF));a=c.Da(new C((()=>k=>k.D+"-\x3e"+k.pl)(a)));a=mg(a,""," ,","");var h=E();yg();h.i()||Ci();throw new Di("The user have to select node of interest before setup a desired datatype ["+a+"]");}try{wl||(wl=new sl),h=new Pw(Yaa(a.Ab.dc))}catch(k){if(h=Sr(J(),k),null!==h)a:{if(null!==h&&(b=gz(iz(), +h),!b.i())){h=b.Sa();h=new Hw(h);break a}throw I(J(),h);}else throw k;}if(h instanceof Hw)cx(a.zp,h.gj);else if(h instanceof Pw)h=h.hj,h.Ux(W1(h.Vx(),a)),lC(Vw(h.vH(a),new C(((k,n)=>r=>{V1(k,new pC(qC().aF));var u=DZ(r);u=(new Kk("results")).Uc(u);var w=new Kk("datatypes"),y=new VU(new hU);PO(w,u,y);u=eh().wb;w=Ij();gh(hh(u),w.Tb)&&ih(eh().wb,Ij(),new jh("com/github/p2m2/shared/src/main/scala/inrae/semantic_web/SWTransaction.scala","SWTransaction.scala",133, +18),DZ(r));u=eh().wb;w=Ij();gh(hh(u),w.Tb)&&ih(eh().wb,Ij(),new jh("com/github/p2m2/shared/src/main/scala/inrae/semantic_web/SWTransaction.scala","SWTransaction.scala",135,18)," lDatatype \x3d\x3d\x3d\x3d\x3e "+n.g());u=Ow();w=n.Da(new C(((K,U)=>Z=>{var ra=eh().wb,Ba=Ij();gh(hh(ra),Ba.Tb)&&ih(eh().wb,Ij(),new jh("com/github/p2m2/shared/src/main/scala/inrae/semantic_web/SWTransaction.scala","SWTransaction.scala",138,20), +"datatype node:"+Z);ra=Ei(K.Ab.eb,Z.pl,"");if(ra instanceof Ze){try{var ka=Zca(U,Z.pl)}catch(Ca){if(null!==Sr(J(),Ca))z(),ka=A(),ka=Xb(A(),ka);else throw Ca;}ra=Ow();Z=lda(K,K.Ab.eb,U,Z,ka);ka=AR();return Ww(ra,Z,new ZL(ka),K.Xm)}if(E()===ra)return Uw(Ow(),new Yc((()=>()=>{})(K)),K.Xm);throw new B(ra);})(k,r)));y=AR();Ay(Ww(u,w,new ZL(y),k.Xm),new C(((K,U)=>Z=>{if(Z instanceof Pw){V1(K,new pC(qC().bF));Z=K.zp;var ra=DZ(U);Yw(Z,new Pw(ra));V1(K,new pC(qC().xM))}else{if(Z instanceof Hw)return cx(K.zp, +Z.gj);throw new B(Z);}})(k,r)),k.Xm)})(a,c)),a.Xm),new X1(a),a.Xm);else throw new B(h);return a}function Jca(a){var b=a.Ab.eb,c=N(z().w,A());gj();var d=N(z().w,A());gj();L();var f=A();b=b.tf(new Dj(c,"",d,M(0,f)),new xC(m(YE)));b=MR(b);if(b instanceof Ze)return a=hX(a.Ab,b.Sb.D),new OX(a);if(E()===b)return b=gX(a.Ab),c=N(z().w,A()),a=AW(a.Ab,""),gj(),d=N(z().w,A()),gj(),L(),f=A(),a=new Dj(c,a,d,M(0,f)),a=VW(b,a,!0),new OX(a);throw new B(b);} +function Eca(a,b){var c=a.Ab.eb,d=N(z().w,A());gj();var f=N(z().w,A());gj();L();var g=A();c=c.tf(new Dj(d,"",f,M(0,g)),new xC(m(YE)));c=MR(c);if(c instanceof Ze)return c=c.Sb,d=c.Fj,b=b.Da(new C((()=>h=>new Oj(h))(a))),b=d.$d(b),a=gX(a.Ab),d=c.D,f=c.ql,gj(),L(),g=A(),b=new Dj(b,d,f,M(0,g)),a=hX(VW(a,b,!0),c.D),new OX(a);if(E()===c)return c=gX(a.Ab),b=b.Da(new C((()=>h=>new Oj(h))(a))),a=AW(a.Ab,""),gj(),d=N(z().w,A()),gj(),L(),f=A(),a=new Dj(b,a,d,M(0,f)),a=VW(c,a,!0),new OX(a);throw new B(c);} +function SX(a){var b=gX(a.Ab);a=AW(a.Ab,"");hj();var c=N(z().w,A());hj();L();var d=A();b=VW(b,new Aj(a,c,M(0,d)),!1);return new OX(b)}function NX(a,b){var c=gX(a.Ab);a=AW(a.Ab,"");kj();var d=N(z().w,A());kj();L();var f=A();b=VW(c,new Gj(b,a,d,M(0,f)),!1);return new OX(b)}function MX(a,b){var c=gX(a.Ab);a=AW(a.Ab,"");jj();var d=N(z().w,A());jj();L();var f=A();b=VW(c,new Hj(b,a,d,M(0,f)),!1);return new OX(b)} +function Uca(a,b){b.Fa(new C((g=>h=>iX(g.Ab,h))(a)));var c=gX(a.Ab);b=b.Da(new C((()=>g=>new Oj(g))(a)));a=AW(a.Ab,"");cj();var d=N(z().w,A());cj();L();var f=A();c=VW(c,new Ej(b,a,d,M(0,f)),!1);return new OX(c)}function Tca(a,b){b.Fa(new C((g=>h=>iX(g.Ab,h))(a)));var c=gX(a.Ab);b=b.Da(new C((()=>g=>new Oj(g))(a)));a=AW(a.Ab,"");dj();var d=N(z().w,A());dj();L();var f=A();c=VW(c,new Fj(b,a,d,M(0,f)),!1);return new OX(c)}e=OX.prototype;e.A=function(){return"SWTransaction"};e.B=function(){return 1}; +e.C=function(a){return 0===a?this.Ab:T(W(),a)};e.v=function(){return ig(D(),this)};e.g=function(){return fy(this)};e.c=function(a){if(this===a)return!0;if(a instanceof OX){var b=this.Ab;a=a.Ab;return null===b?null===a:b.c(a)}return!1};e.$U=function(a){V1(this,a)};e.$classData=v({x3:0},!1,"inrae.semantic_web.SWTransaction",{x3:1,b:1,fF:1,y:1,m:1,d:1});function X1(a){this.nM=null;if(null===a)throw I(J(),null);this.nM=a}X1.prototype=new wU;X1.prototype.constructor=X1;e=X1.prototype; +e.Nd=function(a){return cx(this.nM.zp,a)};e.Qd=function(){return!0};e.le=function(a){return this.Qd(a)};e.Lc=function(a,b){return this.Nd(a,b)};e.$classData=v({D3:0},!1,"inrae.semantic_web.SWTransaction$$anonfun$commit$11",{D3:1,$j:1,b:1,ja:1,Ca:1,d:1});function Y1(a){this.qM=null;if(null===a)throw I(J(),null);this.qM=a}Y1.prototype=new wU;Y1.prototype.constructor=Y1;e=Y1.prototype;e.Nd=function(a){var b=this.qM,c=new pC(qC().cF);vh(b,c);a=a.bf();b=E();yg();b.i()||Ci();throw new Di(a);};e.Qd=function(){return!0}; +e.le=function(a){return this.Qd(a)};e.Lc=function(a,b){return this.Nd(a,b)};e.$classData=v({P3:0},!1,"inrae.semantic_web.driver.AxiosRequestDriver$$anonfun$get$2",{P3:1,$j:1,b:1,ja:1,Ca:1,d:1});function Z1(a){this.rM=null;if(null===a)throw I(J(),null);this.rM=a}Z1.prototype=new wU;Z1.prototype.constructor=Z1;e=Z1.prototype;e.Nd=function(a){var b=this.rM,c=new pC(qC().cF);vh(b,c);a=a.bf();b=E();yg();b.i()||Ci();throw new Di(a);};e.Qd=function(){return!0};e.le=function(a){return this.Qd(a)}; +e.Lc=function(a,b){return this.Nd(a,b)};e.$classData=v({Q3:0},!1,"inrae.semantic_web.driver.AxiosRequestDriver$$anonfun$post$2",{Q3:1,$j:1,b:1,ja:1,Ca:1,d:1});function $1(a){this.sM=null;if(null===a)throw I(J(),null);this.sM=a}$1.prototype=new wU;$1.prototype.constructor=$1; +function mda(a,b){if(null!==b&&0<(b.Ig.length|0))return Uw(Ow(),new Yc(((c,d)=>()=>YB(cC(),d.Ig,d.Ri))(a,b)),a.sM.Pz);if(null!==b&&0<(b.Bj.length|0))return gC(cC(),b.Bj,b.Ri);a=E();yg();a.i()||Ci();throw new Di("unknown source definition.");}$1.prototype.le=function(){return!0};$1.prototype.Lc=function(a){return mda(this,a)};$1.prototype.$classData=v({S3:0},!1,"inrae.semantic_web.driver.ComunicaFederatedStrategy$$anonfun$1",{S3:1,$j:1,b:1,ja:1,Ca:1,d:1});function nC(){}nC.prototype=new wU; +nC.prototype.constructor=nC;e=nC.prototype;e.Nd=function(a){a=a.g();var b=E();yg();b.i()||Ci();throw new Di(a);};e.Qd=function(){return!0};e.le=function(a){return this.Qd(a)};e.Lc=function(a,b){return this.Nd(a,b)};e.$classData=v({V3:0},!1,"inrae.semantic_web.driver.ComunicaRequestDriver$$anonfun$$nestedInanonfun$requestOnSWDBWithSources$2$1",{V3:1,$j:1,b:1,ja:1,Ca:1,d:1});function vj(a,b,c,d){this.V=this.U=this.D=null;this.Vs=a;wi(this,b,c,d)}vj.prototype=new zi;vj.prototype.constructor=vj;e=vj.prototype; +e.La=function(){return this.D};e.Ja=function(){return this.U};e.kb=function(){return this.V};e.sb=function(a,b){return new vj(this.Vs,this.D,a,b)};e.Vh=function(a){return!(a instanceof sk)&&(a instanceof jF||a instanceof wj||a instanceof Nj||a instanceof Pj)};e.A=function(){return"Bind"};e.B=function(){return 4};e.C=function(a){switch(a){case 0:return this.Vs;case 1:return this.D;case 2:return this.U;case 3:return this.V;default:return T(W(),a)}};e.v=function(){return ig(D(),this)}; +e.c=function(a){if(this===a)return!0;if(a instanceof vj){var b=this.Vs,c=a.Vs;if((null===b?null===c:b.c(c))&&this.D===a.D&&(b=this.U,c=a.U,null===b?null===c:b.c(c)))return b=this.V,a=a.V,null===b?null===a:b.c(a)}return!1};var HC=v({k4:0},!1,"inrae.semantic_web.node.Bind",{k4:1,vb:1,b:1,y:1,m:1,d:1});vj.prototype.$classData=HC;function Bk(a,b,c,d,f){this.V=this.U=this.D=null;this.pl=a;this.dn=b;wi(this,c,d,f)}Bk.prototype=new zi;Bk.prototype.constructor=Bk;e=Bk.prototype;e.La=function(){return this.D}; +e.Ja=function(){return this.U};e.kb=function(){return this.V};e.A=function(){return"DatatypeNode"};e.B=function(){return 5};e.C=function(a){switch(a){case 0:return this.pl;case 1:return this.dn;case 2:return this.D;case 3:return this.U;case 4:return this.V;default:return T(W(),a)}};e.v=function(){return ig(D(),this)}; +e.c=function(a){if(this===a)return!0;if(a instanceof Bk){if(this.pl===a.pl){var b=this.dn,c=a.dn;b=null===b?null===c:b.c(c)}else b=!1;if(b&&this.D===a.D&&(b=this.U,c=a.U,null===b?null===c:b.c(c)))return b=this.V,a=a.V,null===b?null===a:b.c(a)}return!1};e.sb=function(a,b){return new Bk(this.pl,this.dn,this.D,a,b)};var fD=v({d5:0},!1,"inrae.semantic_web.node.DatatypeNode",{d5:1,vb:1,b:1,y:1,m:1,d:1});Bk.prototype.$classData=fD; +function Pj(a,b,c,d){this.V=this.U=this.D=null;this.Wp=a;wi(this,b,c,d)}Pj.prototype=new zi;Pj.prototype.constructor=Pj;e=Pj.prototype;e.La=function(){return this.D};e.Ja=function(){return this.U};e.kb=function(){return this.V};e.g=function(){return"VALUES("+this.Wp.g()+")"};e.Vh=function(a){return!(a instanceof sk)&&a instanceof jF};e.A=function(){return"ListValues"};e.B=function(){return 4}; +e.C=function(a){switch(a){case 0:return this.Wp;case 1:return this.D;case 2:return this.U;case 3:return this.V;default:return T(W(),a)}};e.v=function(){return ig(D(),this)};e.c=function(a){if(this===a)return!0;if(a instanceof Pj){var b=this.Wp,c=a.Wp;if((null===b?null===c:b.c(c))&&this.D===a.D&&(b=this.U,c=a.U,null===b?null===c:b.c(c)))return b=this.V,a=a.V,null===b?null===a:b.c(a)}return!1};e.sb=function(a,b){return new Pj(this.Wp,this.D,a,b)}; +var mE=v({e7:0},!1,"inrae.semantic_web.node.ListValues",{e7:1,vb:1,b:1,y:1,m:1,d:1});Pj.prototype.$classData=mE;function Qj(a,b,c,d,f){this.V=this.U=this.D=null;this.kt=a;this.jt=b;wi(this,c,d,f)}Qj.prototype=new zi;Qj.prototype.constructor=Qj;e=Qj.prototype;e.La=function(){return this.D};e.Ja=function(){return this.U};e.kb=function(){return this.V};e.sb=function(a,b){return new Qj(this.kt,this.jt,this.D,a,b)};e.Vh=function(){return!1};e.A=function(){return"ProjectionExpression"};e.B=function(){return 5}; +e.C=function(a){switch(a){case 0:return this.kt;case 1:return this.jt;case 2:return this.D;case 3:return this.U;case 4:return this.V;default:return T(W(),a)}};e.v=function(){return ig(D(),this)};e.c=function(a){if(this===a)return!0;if(a instanceof Qj){var b=this.kt,c=a.kt;(null===b?null===c:b.c(c))?(b=this.jt,c=a.jt,b=null===b?null===c:b.c(c)):b=!1;if(b&&this.D===a.D&&(b=this.U,c=a.U,null===b?null===c:b.c(c)))return b=this.V,a=a.V,null===b?null===a:b.c(a)}return!1}; +var cF=v({C8:0},!1,"inrae.semantic_web.node.ProjectionExpression",{C8:1,vb:1,b:1,y:1,m:1,d:1});Qj.prototype.$classData=cF;function uj(a,b,c,d,f,g,h,k,n,r,u){this.V=this.U=this.D=null;this.wf=b;this.ag=c;this.$f=d;this.bg=f;this.Ke=g;this.Ze=h;this.Re=k;this.zd=n;wi(this,a,r,u)}uj.prototype=new zi;uj.prototype.constructor=uj;e=uj.prototype;e.La=function(){return this.D};e.Ja=function(){return this.U};e.kb=function(){return this.V}; +function Qca(a,b){return a.wf.ui(b,new Yc((()=>()=>new FF(""))(a)))}e.tf=function(a,b){var c=xi.prototype.tf.call(this,a,b),d=this.Ze.lb(new C(((f,g,h)=>k=>k.tf(g,h))(this,a,b)));c=c.$d(d);d=this.Ke.lb(new C(((f,g,h)=>k=>k.tf(g,h))(this,a,b)));c=c.jh(d);d=this.Re.lb(new C(((f,g,h)=>k=>k.tf(g,h))(this,a,b)));c=c.jh(d);d=this.zd.lb(new C(((f,g,h)=>k=>k.tf(g,h))(this,a,b)));c=c.jh(d);a=this.U.lb(new C(((f,g,h)=>k=>k.tf(g,h))(this,a,b)));return c.jh(a)}; +function nda(a,b){return b instanceof Ck?new uj(a.D,a.wf,a.ag,a.$f,a.bg,a.Ke,a.Ze.rb(b),a.Re,a.zd,a.U,a.V):b instanceof Bk?new uj(a.D,a.wf,a.ag,a.$f,a.bg,a.Ke.rb(b),a.Ze,a.Re,a.zd,a.U,a.V):b instanceof vj?new uj(a.D,a.wf,a.ag,a.$f,a.bg,a.Ke,a.Ze,a.Re.rb(b),a.zd,a.U,a.V):b instanceof LF?new uj(a.D,a.wf,a.ag,a.$f,a.bg,a.Ke,a.Ze,a.Re,a.zd.rb(b),a.U,a.V):xi.prototype.zja.call(a,b)} +function lX(a,b,c){return b===a.D?nda(a,c):new uj(a.D,a.wf,a.ag,a.$f,a.bg,a.Ke.Da(new C(((d,f,g)=>h=>h.io(f,g))(a,b,c))),a.Ze.Da(new C(((d,f,g)=>h=>h.io(f,g))(a,b,c))),a.Re.Da(new C(((d,f,g)=>h=>h.io(f,g))(a,b,c))),a.zd.Da(new C(((d,f,g)=>h=>h.io(f,g))(a,b,c))),a.U.Da(new C(((d,f,g)=>h=>h.io(f,g))(a,b,c))),a.V)}e.sb=function(a,b){return new uj(this.D,this.wf,this.ag,this.$f,this.bg,this.Ke,this.Ze,this.Re,this.zd,a,b)}; +e.Vh=function(a){return a instanceof sk||a instanceof Ck||a instanceof Bk||a instanceof vj||a instanceof LF};e.g=function(){var a=xi.prototype.g.call(this),b=0f=>OZ(d.DA,f,d.Mt))(a,b)));return mg(a,"","/","")}function c2(){}c2.prototype=new t;c2.prototype.constructor=c2; +e=c2.prototype;e.A=function(){return"All"};e.B=function(){return 0};e.C=function(a){return T(W(),a)};e.v=function(){return 65921};e.g=function(){return"All"};e.$classData=v({kda:0},!1,"io.lemonlabs.uri.config.All$",{kda:1,b:1,mda:1,y:1,m:1,d:1});var d2;function jI(){d2||(d2=new c2);return d2}function LZ(){}LZ.prototype=new t;LZ.prototype.constructor=LZ;e=LZ.prototype;e.A=function(){return"ExcludeNones"};e.B=function(){return 0};e.C=function(a){return T(W(),a)};e.v=function(){return-1207150943}; +e.g=function(){return"ExcludeNones"};e.$classData=v({lda:0},!1,"io.lemonlabs.uri.config.ExcludeNones$",{lda:1,b:1,mda:1,y:1,m:1,d:1});var KZ;function iI(a){this.Rw=a}iI.prototype=new t;iI.prototype.constructor=iI;e=iI.prototype;e.NB=function(a,b){a=this.Rw.gr(a,new jt(((c,d)=>(f,g)=>{f=g.NB(f,d);return jJ(zt(),f,d)})(this,b)));return PZ(a,b)};e.Nx=function(a){return this.Rw.gr(a,new jt((()=>(b,c)=>c.Nx(b))(this)))};e.A=function(){return"ChainedUriDecoder"};e.B=function(){return 1}; +e.C=function(a){return 0===a?this.Rw:T(W(),a)};e.v=function(){return ig(D(),this)};e.g=function(){return fy(this)};e.c=function(a){if(this===a)return!0;if(a instanceof iI){var b=this.Rw;a=a.Rw;return null===b?null===a:b.c(a)}return!1};e.$classData=v({pda:0},!1,"io.lemonlabs.uri.decoding.ChainedUriDecoder",{pda:1,b:1,NR:1,y:1,m:1,d:1});function Al(a,b){this.Tw=a;this.Sw=b}Al.prototype=new t;Al.prototype.constructor=Al;e=Al.prototype;e.NB=function(a,b){return PZ(this.Nx(a),b)}; +e.Nx=function(a){var b=String.fromCharCode(this.Tw),c=this.Sw;return a.split(b).join(c)};e.A=function(){return"DecodeCharAs"};e.B=function(){return 2};e.C=function(a){switch(a){case 0:return q(this.Tw);case 1:return this.Sw;default:return T(W(),a)}};e.v=function(){var a=Ja("DecodeCharAs");a=W().l(-889275714,a);var b=this.Tw;a=W().l(a,b);b=this.Sw;b=ly(W(),b);a=W().l(a,b);return W().ea(a,2)};e.g=function(){return fy(this)}; +e.c=function(a){return this===a?!0:a instanceof Al?this.Tw===a.Tw&&this.Sw===a.Sw:!1};e.$classData=v({qda:0},!1,"io.lemonlabs.uri.decoding.DecodeCharAs",{qda:1,b:1,NR:1,y:1,m:1,d:1});function e2(){this.Nt=!1}e2.prototype=new t;e2.prototype.constructor=e2;function f2(){}e=f2.prototype=e2.prototype; +e.NB=function(a){a=lg(L(),Oz(a));Wb();a:{var b=Xb(A(),a);for(a=new g2;;){var c=!1,d=null,f=b;b=z().Jb;if(null===b?null===f:b.c(f)){var g=a.nb();break a}if(f instanceof Vb&&(c=!0,d=f,b=d.Ma,37===Da(d.Wc))){b:if(d=b,d.i())d=A();else{f=c=new Vb(d.G(),A());for(var h=d.L(),k=1;;){if(h.i())break b;if(2>k){k=1+k|0;var n=new Vb(h.G(),A());f=f.Ma=n;h=h.L()}else break}d=c}d=mg(d,"","","");c=d;try{g=2!==(c.length|0)?E():new Ze(Rt(St(),c,16)<<24>>24)}catch(r){if(r instanceof wA)g=E();else throw r;}if(g instanceof +Ze){d=g.Sb|0;b=h2(2,b);a=a.Ia(d);continue}else if(E()===g&&this.Nt){d=zl().tda;a=a.Ia(d);continue}else throw new i2("Encountered '%' followed by a non hex number '"+d+"'. "+zl().sda);}if(c)c=Da(d.Wc),b=d.Ma,d=KL(L(),PZ(String.fromCharCode(c),zl().HF)),a=a.ec(d);else throw new B(f);}}return g};e.Nx=function(a){a=this.NB(a,zl().HF);var b=zl().HF;return jJ(zt(),a,b)};e.A=function(){return"PercentDecoder"};e.B=function(){return 1};e.C=function(a){return 0===a?this.Nt:T(W(),a)}; +e.v=function(){var a=Ja("PercentDecoder");a=W().l(-889275714,a);var b=this.Nt?1231:1237;a=W().l(a,b);return W().ea(a,1)};e.g=function(){return fy(this)};e.c=function(a){return this===a?!0:a instanceof e2?this.Nt===a.Nt:!1};class i2 extends NZ{constructor(a){super();iJ(this,a,null)}}i2.prototype.$classData=v({uda:0},!1,"io.lemonlabs.uri.decoding.UriDecodeException",{uda:1,dda:1,ub:1,gb:1,b:1,d:1});function SZ(a){this.GA=a}SZ.prototype=new t;SZ.prototype.constructor=SZ;e=SZ.prototype; +e.pz=function(a){return!j2(this,a).i()};e.Ox=function(a){var b=j2(this,a);b.i()?(k2||(k2=new l2),b=k2):b=b.Sa();return b.Ox(a)};function j2(a,b){return a.GA.Cu(new C(((c,d)=>f=>f.pz(d))(a,b)))}e.A=function(){return"ChainedUriEncoder"};e.B=function(){return 1};e.C=function(a){return 0===a?this.GA:T(W(),a)};e.v=function(){return ig(D(),this)};e.g=function(){return fy(this)};e.c=function(a){if(this===a)return!0;if(a instanceof SZ){var b=this.GA;a=a.GA;return null===b?null===a:b.c(a)}return!1}; +e.$classData=v({wda:0},!1,"io.lemonlabs.uri.encoding.ChainedUriEncoder",{wda:1,b:1,KF:1,y:1,m:1,d:1});function El(a,b){this.Vw=a;this.Uw=b}El.prototype=new t;El.prototype.constructor=El;e=El.prototype;e.pz=function(a){return a===this.Vw};e.Ox=function(){return this.Uw};e.A=function(){return"EncodeCharAs"};e.B=function(){return 2};e.C=function(a){switch(a){case 0:return q(this.Vw);case 1:return this.Uw;default:return T(W(),a)}}; +e.v=function(){var a=Ja("EncodeCharAs");a=W().l(-889275714,a);var b=this.Vw;a=W().l(a,b);b=this.Uw;b=ly(W(),b);a=W().l(a,b);return W().ea(a,2)};e.g=function(){return fy(this)};e.c=function(a){return this===a?!0:a instanceof El?this.Vw===a.Vw&&this.Uw===a.Uw:!1};e.$classData=v({xda:0},!1,"io.lemonlabs.uri.encoding.EncodeCharAs",{xda:1,b:1,KF:1,y:1,m:1,d:1});function l2(){}l2.prototype=new t;l2.prototype.constructor=l2;e=l2.prototype;e.pz=function(){return!1};e.Ox=function(a){return String.fromCharCode(a)}; +e.A=function(){return"NoopEncoder"};e.B=function(){return 0};e.C=function(a){return T(W(),a)};e.v=function(){return 153117498};e.g=function(){return"NoopEncoder"};e.$classData=v({yda:0},!1,"io.lemonlabs.uri.encoding.NoopEncoder$",{yda:1,b:1,KF:1,y:1,m:1,d:1});var k2;function fI(a){this.HA=a}fI.prototype=new t;fI.prototype.constructor=fI;e=fI.prototype;e.pz=function(a){return!(31a)||this.HA.Pa(q(a))};e.Ox=function(a){return"%"+xt(qg(),"%04x",Af(new Bf,[a])).substring(2).toUpperCase()}; +e.A=function(){return"PercentEncoder"};e.B=function(){return 1};e.C=function(a){return 0===a?this.HA:T(W(),a)};e.v=function(){return ig(D(),this)};e.g=function(){return fy(this)};e.c=function(a){if(this===a)return!0;if(a instanceof fI){var b=this.HA;a=a.HA;return null===b?null===a:b.c(a)}return!1};e.$classData=v({zda:0},!1,"io.lemonlabs.uri.encoding.PercentEncoder",{zda:1,b:1,KF:1,y:1,m:1,d:1});class sI extends NZ{constructor(a){super();iJ(this,a,null)}} +sI.prototype.$classData=v({Cda:0},!1,"io.lemonlabs.uri.parsing.UriParsingException",{Cda:1,dda:1,ub:1,gb:1,b:1,d:1});function m2(){this.Yn=this.gea=this.hea=this.cea=this.dea=this.fea=this.eea=this.bea=this.aea=this.vl=null;n2=this;this.Yn=new WZ(this);fca(this)}m2.prototype=new t;m2.prototype.constructor=m2;m2.prototype.$classData=v({$da:0},!1,"io.lemonlabs.uri.typesafe.QueryValue$",{$da:1,b:1,Wza:1,Xza:1,Yza:1,d:1});var n2;function LQ(){n2||(n2=new m2);return n2}function o2(){}o2.prototype=new ZZ; +o2.prototype.constructor=o2;function p2(){}p2.prototype=o2.prototype;function RV(a){var b=E();a.OF=b.i()?a:b.Sa()}function q2(){this.OF=null}q2.prototype=new t;q2.prototype.constructor=q2;function r2(){}r2.prototype=q2.prototype;q2.prototype.Aja=function(a){this.aE(null===a?"null":Ma(a))};class Oa extends Nf{constructor(a){super();iJ(this,a,null)}}Oa.prototype.$classData=v({Dja:0},!1,"java.lang.ArithmeticException",{Dja:1,tc:1,ub:1,gb:1,b:1,d:1}); +var ma=v({Hja:0},!1,"java.lang.Byte",{Hja:1,Gl:1,b:1,d:1,Bb:1,vo:1},a=>Wa(a));function Hq(a){var b=new s2;iJ(b,a,null);return b}function oo(){var a=new s2;iJ(a,null,null);return a}class s2 extends Nf{}s2.prototype.$classData=v({oh:0},!1,"java.lang.IllegalArgumentException",{oh:1,tc:1,ub:1,gb:1,b:1,d:1});function Vt(a){var b=new t2;iJ(b,a,null);return b}function kJ(){var a=new t2;iJ(a,null,null);return a}class t2 extends Nf{} +t2.prototype.$classData=v({bU:0},!1,"java.lang.IllegalStateException",{bU:1,tc:1,ub:1,gb:1,b:1,d:1});function my(a,b){iJ(a,b,null);return a}function xo(){var a=new V;iJ(a,null,null);return a}class V extends Nf{}V.prototype.$classData=v({QH:0},!1,"java.lang.IndexOutOfBoundsException",{QH:1,tc:1,ub:1,gb:1,b:1,d:1});v({Tja:0},!1,"java.lang.JSConsoleBasedPrintStream$DummyOutputStream",{Tja:1,yea:1,b:1,JA:1,XB:1,KA:1});class rq extends Nf{constructor(){super();iJ(this,null,null)}} +rq.prototype.$classData=v({bka:0},!1,"java.lang.NegativeArraySizeException",{bka:1,tc:1,ub:1,gb:1,b:1,d:1});function $q(a){var b=new u2;iJ(b,a,null);return b}function P(){var a=new u2;iJ(a,null,null);return a}class u2 extends Nf{}u2.prototype.$classData=v({cka:0},!1,"java.lang.NullPointerException",{cka:1,tc:1,ub:1,gb:1,b:1,d:1});var na=v({fka:0},!1,"java.lang.Short",{fka:1,Gl:1,b:1,d:1,Bb:1,vo:1},a=>Ya(a));class v2 extends fz{constructor(a){super();iJ(this,a,null)}} +v2.prototype.$classData=v({gka:0},!1,"java.lang.StackOverflowError",{gka:1,GAa:1,Yx:1,gb:1,b:1,d:1});function mJ(){var a=new w2;iJ(a,null,null);return a}function it(a){var b=new w2;iJ(b,a,null);return b}class w2 extends Nf{}w2.prototype.$classData=v({jU:0},!1,"java.lang.UnsupportedOperationException",{jU:1,tc:1,ub:1,gb:1,b:1,d:1});class fp extends Nf{constructor(){super();iJ(this,null,null)}}fp.prototype.$classData=v({Qea:0},!1,"java.nio.BufferOverflowException",{Qea:1,tc:1,ub:1,gb:1,b:1,d:1}); +class lp extends Nf{constructor(){super();iJ(this,null,null)}}lp.prototype.$classData=v({Rea:0},!1,"java.nio.BufferUnderflowException",{Rea:1,tc:1,ub:1,gb:1,b:1,d:1});class x2 extends XZ{}function y2(){}y2.prototype=new jR;y2.prototype.constructor=y2;function z2(){}z2.prototype=y2.prototype;y2.prototype.nh=function(){return XK(this)};function XK(a){if(0>a.Y())throw my(new V,"0");return new A2(a,0,0,a.Y())} +y2.prototype.c=function(a){if(a===this)return!0;if(a&&a.$classData&&a.$classData.Hb.gla){a=XK(a);var b=XK(this);a:{for(;b.s();){var c=b.p();if(a.s()){var d=a.p();c=null===c?null===d:Ea(c,d)}else c=!1;if(!c){b=!0;break a}}b=!1}return b?!1:!a.s()}return!1};y2.prototype.v=function(){for(var a=XK(this),b=1;a.s();){var c=a.p();b=l(31,b|0)+(null===c?0:Ia(c))|0}return b|0};function B2(){}B2.prototype=new jR;B2.prototype.constructor=B2;function C2(){}C2.prototype=B2.prototype; +B2.prototype.c=function(a){return a===this?!0:a&&a.$classData&&a.$classData.Hb.kC?a.Y()===this.Y()&&this.pH(a):!1};B2.prototype.v=function(){for(var a=this.nh(),b=0;a.s();){var c=b;b=a.p();c|=0;b=Ia(b)+c|0}return b|0};class D2 extends Nf{constructor(){super();iJ(this,"mutation occurred during iteration",null)}}D2.prototype.$classData=v({Cka:0},!1,"java.util.ConcurrentModificationException",{Cka:1,tc:1,ub:1,gb:1,b:1,d:1}); +function E2(a,b){if(null===b)var c=0;else c=Ia(b),c^=c>>>16|0;a=F2(a,b,c,c&(-1+a.Rg.a.length|0));return null===a?null:a.Qg}function G2(a,b,c){a.dy=c;if(0>b)throw Hq("initialCapacity \x3c 0");if(0>=c)throw Hq("loadFactor \x3c\x3d 0.0");b=-1+b|0;b=4>ea(b)&b)<<1;a.Rg=new (x(HK).M)(1073741824>b?b:1073741824);a.ey=Qa(a.Rg.a.length*a.dy);a.xi=0}function Im(){var a=new H2;G2(a,16,.75);return a}function H2(){this.dy=0;this.Rg=null;this.xi=this.ey=0}H2.prototype=new zK; +H2.prototype.constructor=H2;function oda(){}e=oda.prototype=H2.prototype;e.wI=function(a,b,c,d,f){var g=new FK;g.qh=a;g.yo=b;g.Qg=c;g.cy=d;g.Jj=f;return g};e.Y=function(){return this.xi};e.i=function(){return 0===this.xi};e.Fl=function(a){return E2(this,a)};e.MB=function(a){if(null===a)var b=0;else b=Ia(a),b^=b>>>16|0;return null!==F2(this,a,b,b&(-1+this.Rg.a.length|0))};e.Gk=function(a,b){if(null===a)var c=0;else c=Ia(a),c^=c>>>16|0;return I2(this,a,b,c)};e.ko=function(){return new J2(this)}; +function F2(a,b,c,d){for(a=a.Rg.a[d];;){if(null===a)return null;c===a.yo?(d=a.qh,d=null===b?null===d:Ea(b,d)):d=!1;if(d)return a;if(c=a.ey){var g=a.Rg,h=g.a.length,k=h<<1,n=new (x(HK).M)(k);a.Rg=n;a.ey=Qa(k*a.dy);for(k=0;ka.xr&&(a.xr=a.uc);b>6:0;0>>(31-b|0)|0|-1<=O2(this.dJ))return!1;this.Br=1+this.Br|0;this.Cr=N2(this.dJ,this.Br)}else break}return!0};Wc.prototype.ur=function(){if(this.s()){var a=this.Cr,b=a.k;a=a.o;b=0!==b?0===b?32:31-ea(b&(-b|0))|0:32+(0===a?32:31-ea(a&(-a|0))|0)|0;var c=a=this.Cr,d=c.o;c=-1+c.k|0;this.Cr=new p(a.k&c,a.o&(-1!==c?d:-1+d|0));return(this.Br<<6)+b|0}return xx().Na.p()|0};Wc.prototype.p=function(){return this.ur()}; +Wc.prototype.$classData=v({Qoa:0},!1,"scala.collection.BitSetOps$$anon$1",{Qoa:1,qb:1,b:1,Ua:1,J:1,K:1});function P2(a){this.Dr=a}P2.prototype=new CR;P2.prototype.constructor=P2;P2.prototype.$classData=v({Voa:0},!1,"scala.collection.ClassTagSeqFactory$AnySeqDelegate",{Voa:1,DBa:1,b:1,Te:1,d:1,bi:1});function Q2(a,b){return a.ke(new R2(a,b))}function S2(a){return a.i()?E():new Ze(a.G())}function T2(a){return a.W(-1+a.z()|0)} +function O0(a){this.Wu=0;this.MV=null;if(null===a)throw I(J(),null);this.MV=a;this.Wu=a.z()}O0.prototype=new T_;O0.prototype.constructor=O0;O0.prototype.s=function(){return 0()=>d)(this,a)));a!==b&&(this.TV=b,this.Zu=1)}else this.Zu=-1;return 1===this.Zu};SV.prototype.p=function(){return this.s()?(this.Zu=0,this.TV):xx().Na.p()};SV.prototype.$classData=v({Apa:0},!1,"scala.collection.Iterator$$anon$7",{Apa:1,qb:1,b:1,Ua:1,J:1,K:1}); +function X2(a,b){this.XV=null;this.fD=!1;this.VV=this.lJ=this.WV=null;if(null===a)throw I(J(),null);this.lJ=a;this.VV=b;this.XV=$T();this.fD=!1}X2.prototype=new T_;X2.prototype.constructor=X2;X2.prototype.s=function(){for(;;){if(this.fD)return!0;if(this.lJ.s()){var a=this.lJ.p();if(this.XV.sk(this.VV.r(a)))return this.WV=a,this.fD=!0}else return!1}};X2.prototype.p=function(){return this.s()?(this.fD=!1,this.WV):xx().Na.p()}; +X2.prototype.$classData=v({Bpa:0},!1,"scala.collection.Iterator$$anon$8",{Bpa:1,qb:1,b:1,Ua:1,J:1,K:1});function Ob(a,b){this.YV=this.gD=null;if(null===a)throw I(J(),null);this.gD=a;this.YV=b}Ob.prototype=new T_;Ob.prototype.constructor=Ob;Ob.prototype.N=function(){return this.gD.N()};Ob.prototype.s=function(){return this.gD.s()};Ob.prototype.p=function(){return this.YV.r(this.gD.p())};Ob.prototype.$classData=v({Cpa:0},!1,"scala.collection.Iterator$$anon$9",{Cpa:1,qb:1,b:1,Ua:1,J:1,K:1}); +function dS(a){this.Ei=a;this.Lk=this.Mj=null;this.Hr=!1}dS.prototype=new T_;dS.prototype.constructor=dS; +dS.prototype.s=function(){if(this.Hr)return!0;if(null!==this.Ei){if(this.Ei.s())return this.Hr=!0;a:for(;;){if(null===this.Mj){this.Lk=this.Ei=null;var a=!1;break a}this.Ei=this.Mj.Fpa.Rb().t();this.Lk===this.Mj&&(this.Lk=this.Lk.hD);for(this.Mj=this.Mj.hD;this.Ei instanceof dS;)a=this.Ei,this.Ei=a.Ei,this.Hr=a.Hr,null!==a.Mj&&(null===this.Lk&&(this.Lk=a.Lk),a.Lk.hD=this.Mj,this.Mj=a.Mj);if(this.Hr){a=!0;break a}if(null!==this.Ei&&this.Ei.s()){a=this.Hr=!0;break a}}return a}return!1}; +dS.prototype.p=function(){return this.s()?(this.Hr=!1,this.Ei.p()):xx().Na.p()};dS.prototype.sg=function(a){a=new pt(a,null);null===this.Mj?this.Mj=a:this.Lk.hD=a;this.Lk=a;null===this.Ei&&(this.Ei=xx().Na);return this};dS.prototype.$classData=v({Dpa:0},!1,"scala.collection.Iterator$ConcatIterator",{Dpa:1,qb:1,b:1,Ua:1,J:1,K:1});function sda(a,b){return Y2().Ty.Zi(b,new Yc((c=>()=>c.mJ.Sa().Rb())(a)))}function tda(a){a=a.Jy-a.Iy|0;return 0tda(a))){if(0!==c){var g=a.Jy,h=a.$u,k=h.IC;g=g()=>b.bW)(this)))} +d3.prototype=new T_;d3.prototype.constructor=d3;d3.prototype.s=function(){return!rt(this.iD).i()};d3.prototype.p=function(){if(this.s()){var a=rt(this.iD),b=a.G();this.iD=new qt(this,new Yc(((c,d)=>()=>d.L())(this,a)));return b}return xx().Na.p()};d3.prototype.$classData=v({Hpa:0},!1,"scala.collection.LinearSeqIterator",{Hpa:1,qb:1,b:1,Ua:1,J:1,K:1});function wda(a){for(var b=0;!a.i();)b=1+b|0,a=a.L();return b} +function xda(a){if(a.i())throw Ir("LinearSeq.last");var b=a;for(a=a.L();!a.i();)b=a,a=a.L();return b.G()}function e3(a,b){return 0<=b&&0b)throw my(new V,""+b);a=a.Ac(b);if(a.i())throw my(new V,""+b);return a.G()}function yda(a,b){for(;!a.i();){if(b.r(a.G()))return!0;a=a.L()}return!1}function zda(a,b){for(;!a.i();){if(fq(O(),a.G(),b))return!0;a=a.L()}return!1} +function f3(a,b){if(b&&b.$classData&&b.$classData.Hb.Ky)a:for(;;){if(a===b){a=!0;break a}if((a.i()?0:!b.i())&&fq(O(),a.G(),b.G()))a=a.L(),b=b.L();else{a=a.i()&&b.i();break a}}else a=h0(a,b);return a}function g3(a,b,c){var d=0()=>d.t())(a,b)));return a.ke(b)} +function h3(){this.Vu=null}h3.prototype=new ER;h3.prototype.constructor=h3;function Cda(){}Cda.prototype=h3.prototype;function i3(a){this.pD=a}i3.prototype=new T_;i3.prototype.constructor=i3;i3.prototype.s=function(){return!this.pD.i()};i3.prototype.p=function(){var a=this.pD.G();this.pD=this.pD.L();return a};i3.prototype.$classData=v({$pa:0},!1,"scala.collection.StrictOptimizedLinearSeqOps$$anon$1",{$pa:1,qb:1,b:1,Ua:1,J:1,K:1}); +function j3(a,b){this.gv=null;this.GJ=a;this.Lr=b;this.Gi=-1;this.gg=0}j3.prototype=new T_;j3.prototype.constructor=j3;function k3(a){if(null===a.gv){var b=a.Lr;a.gv=SN(new TN,256>b?b:256);for(a.Gi=0;a.GJ.s();)b=a.GJ.p(),a.gg>=a.gv.Lb?UN(a.gv,b):Dda(a.gv,a.gg,b),a.gg=1+a.gg|0,a.gg===a.Lr&&(a.gg=0),a.Gi=1+a.Gi|0;a.GJ=null;a.Gi>a.Lr&&(a.Gi=a.Lr);a.gg=a.gg-a.Gi|0;0>a.gg&&(a.gg=a.gg+a.Lr|0)}}e=j3.prototype;e.N=function(){return this.Gi};e.s=function(){k3(this);return 0h)throw n3();if(h>c.a.length)throw n3();d=new eb(1+c.a.length|0);c.Z(0,d,0,h);d.a[h]=f;c.Z(h,d,1+h|0,c.a.length-h|0);b.Fb|=n;b.ce=a;b.hg=d;b.Ee=1+b.Ee|0;b.Ug=b.Ug+g|0}}else if(b instanceof CS)n=TS(b,c),b.fe=0>n?b.fe.Of(G(new H,c, +d)):b.fe.sm(n,G(new H,c,d));else throw new B(b);}function dT(a){if(0===a.$l.Ee)return gT().Wy;null===a.Xy&&(a.Xy=new bT(a.$l));return a.Xy}function Eda(a,b){m3(a);var c=b.Ea();c=ly(W(),c);var d=$s(bt(),c);cM(a,a.$l,b.Ea(),b.xa(),c,d,0);return a}function o3(a,b,c){m3(a);var d=ly(W(),b);cM(a,a.$l,b,c,d,$s(bt(),d),0);return a} +function eT(a,b){m3(a);if(b instanceof bT)new bM(a,b);else if(b instanceof UT)for(b=Fda(b);b.s();){var c=b.p(),d=c.km;d^=d>>>16|0;var f=$s(bt(),d);cM(a,a.$l,c.cp,c.sj,d,f,0)}else if(b&&b.$classData&&b.$classData.Hb.Po)b.lh(new jt((g=>(h,k)=>o3(g,h,k))(a)));else for(b=b.t();b.s();)Eda(a,b.p());return a}e.ec=function(a){return eT(this,a)};e.Ia=function(a){return Eda(this,a)};e.nb=function(){return dT(this)}; +e.$classData=v({ara:0},!1,"scala.collection.immutable.HashMapBuilder",{ara:1,b:1,vj:1,ue:1,Fd:1,Ed:1});function lT(){this.am=this.Pr=null;this.am=new Gv(0,0,ks().EI,ks().ny,0,0)}lT.prototype=new t;lT.prototype.constructor=lT;e=lT.prototype;e.oc=function(){}; +function eM(a,b,c,d,f,g){if(b instanceof Gv){var h=ju(Ft(),f,g),k=ku(Ft(),h);if(0!==(b.yb&k)){h=nu(Ft(),b.yb,h,k);a=b.Bd(h);var n=b.sc(h);n===d&&fq(O(),a,c)?(d=b.Mg(k),b.de.a[d]=a):(h=$s(bt(),n),d=KS(b,a,n,h,c,d,f,5+g|0),NS(b,k,h,d))}else if(0!==(b.hc&k))k=nu(Ft(),b.hc,h,k),k=b.dg(k),h=k.Y(),n=k.ed(),eM(a,k,c,d,f,5+g|0),b.Oc=b.Oc+(k.Y()-h|0)|0,b.Sf=b.Sf+(k.ed()-n|0)|0;else{g=b.Mg(k);h=b.de;a=new Za(1+h.a.length|0);h.Z(0,a,0,g);a.a[g]=c;h.Z(g,a,1+g|0,h.a.length-g|0);c=b.Me;if(0>g)throw n3();if(g>c.a.length)throw n3(); +h=new eb(1+c.a.length|0);c.Z(0,h,0,g);h.a[g]=d;c.Z(g,h,1+g|0,c.a.length-g|0);b.yb|=k;b.de=a;b.Me=h;b.Oc=1+b.Oc|0;b.Sf=b.Sf+f|0}}else if(b instanceof PS)d=ml(b.Ne,c),b.Ne=0>d?b.Ne.Of(c):b.Ne.sm(d,c);else throw new B(b);}function mT(a){if(0===a.am.Oc)return oT().lv;null===a.Pr&&(a.Pr=jT(new kT,a.am));return a.Pr}function p3(a,b){null!==a.Pr&&(a.am=RS(a.am));a.Pr=null;var c=ly(W(),b),d=$s(bt(),c);eM(a,a.am,b,c,d,0);return a} +function nT(a,b){null!==a.Pr&&(a.am=RS(a.am));a.Pr=null;if(b instanceof kT)new dM(a,b);else for(b=b.t();b.s();)p3(a,b.p());return a}e.ec=function(a){return nT(this,a)};e.Ia=function(a){return p3(this,a)};e.nb=function(){return mT(this)};e.$classData=v({era:0},!1,"scala.collection.immutable.HashSetBuilder",{era:1,b:1,vj:1,ue:1,Fd:1,Ed:1});function q3(){this.Ag=null;this.Ag=Rb()}q3.prototype=new a0;q3.prototype.constructor=q3;function dX(a,b){return r3(b)?b:$_.prototype.Du.call(a,b)} +q3.prototype.Ib=function(a){return dX(this,a)};q3.prototype.Du=function(a){return dX(this,a)};q3.prototype.$classData=v({gra:0},!1,"scala.collection.immutable.IndexedSeq$",{gra:1,qJ:1,b:1,bi:1,Te:1,d:1});var s3;function Qd(){s3||(s3=new q3);return s3}function A0(){this.zW=this.mv=null;Gda(this)}A0.prototype=new t;A0.prototype.constructor=A0;e=A0.prototype;e.oc=function(){};function Gda(a){var b=new Tt;Bx();a.zW=new q0(new Yc(((c,d)=>()=>Ut(d))(a,b)));a.mv=b} +function Hda(a){Wt(a.mv,new Yc((()=>()=>sT())(a)));return a.zW}function Ida(a,b){var c=new Tt;Wt(a.mv,new Yc(((d,f,g)=>()=>{Bx();Bx();return new pT(f,new q0(new Yc(((h,k)=>()=>Ut(k))(d,g))))})(a,b,c)));a.mv=c;return a}function Jda(a,b){if(0!==b.N()){var c=new Tt;Wt(a.mv,new Yc(((d,f,g)=>()=>x0(Bx(),f.t(),new Yc(((h,k)=>()=>Ut(k))(d,g))))(a,b,c)));a.mv=c}return a}e.ec=function(a){return Jda(this,a)};e.Ia=function(a){return Ida(this,a)};e.nb=function(){return Hda(this)}; +e.$classData=v({lra:0},!1,"scala.collection.immutable.LazyList$LazyBuilder",{lra:1,b:1,vj:1,ue:1,Fd:1,Ed:1});function t3(a){this.Yy=a}t3.prototype=new T_;t3.prototype.constructor=t3;t3.prototype.s=function(){return!this.Yy.i()};t3.prototype.p=function(){if(this.Yy.i())return xx().Na.p();var a=v0(this.Yy).G();this.Yy=v0(this.Yy).Pc();return a};t3.prototype.$classData=v({nra:0},!1,"scala.collection.immutable.LazyList$LazyIterator",{nra:1,qb:1,b:1,Ua:1,J:1,K:1}); +function u3(a,b,c){this.AW=0;this.LJ=!1;this.wD=a;this.pra=b;this.qra=c;a=b-c|0;this.AW=0a){a=!0;break a}if(b.i()){a=!1;break a}b=v0(b).Pc();a=-1+a|0}}return a};u3.prototype.p=function(){if(this.s()){this.LJ=!1;var a=this.wD;this.wD=Kda(a,this.qra);var b=this.pra;a=a.Ef&&a.i()?Bx().Hi:Lda(a,b)}else a=xx().Na.p();return a}; +u3.prototype.$classData=v({ora:0},!1,"scala.collection.immutable.LazyList$SlidingIterator",{ora:1,qb:1,b:1,Ua:1,J:1,K:1});function v3(){this.Zy=null;w3=this;G(new H,A(),A());this.Zy=new fM}v3.prototype=new t;v3.prototype.constructor=v3;e=v3.prototype;e.Pf=function(a){return Xb(A(),a)};e.Ya=function(){return new Cd};e.yj=function(a,b){return n0(this,a,b)};e.Zi=function(a,b){return m0(this,a,b)};e.Bc=function(){return A()};e.Ib=function(a){return Xb(A(),a)}; +e.$classData=v({yra:0},!1,"scala.collection.immutable.List$",{yra:1,b:1,Kr:1,bi:1,Te:1,d:1});var w3;function Wb(){w3||(w3=new v3);return w3}function x3(){this.Qo=0;this.nv=null}x3.prototype=new T_;x3.prototype.constructor=x3;function Mda(){}Mda.prototype=x3.prototype;x3.prototype.s=function(){return 2>this.Qo};x3.prototype.p=function(){switch(this.Qo){case 0:var a=G(new H,this.nv.di,this.nv.Qj);break;case 1:a=G(new H,this.nv.ei,this.nv.Rj);break;default:a=xx().Na.p()}this.Qo=1+this.Qo|0;return a}; +x3.prototype.Se=function(a){this.Qo=this.Qo+a|0;return this};function y3(){this.So=0;this.Ro=null}y3.prototype=new T_;y3.prototype.constructor=y3;function Nda(){}Nda.prototype=y3.prototype;y3.prototype.s=function(){return 3>this.So};y3.prototype.p=function(){switch(this.So){case 0:var a=G(new H,this.Ro.Ah,this.Ro.oj);break;case 1:a=G(new H,this.Ro.Wg,this.Ro.Ii);break;case 2:a=G(new H,this.Ro.Xg,this.Ro.Ji);break;default:a=xx().Na.p()}this.So=1+this.So|0;return a}; +y3.prototype.Se=function(a){this.So=this.So+a|0;return this};function z3(){this.To=0;this.Uk=null}z3.prototype=new T_;z3.prototype.constructor=z3;function Oda(){}Oda.prototype=z3.prototype;z3.prototype.s=function(){return 4>this.To}; +z3.prototype.p=function(){switch(this.To){case 0:var a=G(new H,this.Uk.Dg,this.Uk.fi);break;case 1:a=G(new H,this.Uk.ig,this.Uk.Bh);break;case 2:a=G(new H,this.Uk.Tf,this.Uk.Yg);break;case 3:a=G(new H,this.Uk.Uf,this.Uk.Zg);break;default:a=xx().Na.p()}this.To=1+this.To|0;return a};z3.prototype.Se=function(a){this.To=this.To+a|0;return this};function zT(){this.cm=null;this.$y=!1;this.Qr=null;this.cm=wT();this.$y=!1}zT.prototype=new t;zT.prototype.constructor=zT;e=zT.prototype;e.oc=function(){}; +function xT(a){return a.$y?dT(a.Qr):a.cm}function yT(a,b){return a.$y?(eT(a.Qr,b),a):IM(a,b)}e.ec=function(a){return yT(this,a)};e.Ia=function(a){var b=a.Ea();a=a.xa();if(this.$y)o3(this.Qr,b,a);else if(4>this.cm.Y())this.cm=this.cm.tm(b,a);else if(this.cm.Pa(b))this.cm=this.cm.tm(b,a);else{this.$y=!0;null===this.Qr&&(this.Qr=new fT);var c=this.cm;o3(o3(o3(o3(this.Qr,c.Dg,c.fi),c.ig,c.Bh),c.Tf,c.Yg),c.Uf,c.Zg);o3(this.Qr,b,a)}return this};e.nb=function(){return xT(this)}; +e.$classData=v({Jra:0},!1,"scala.collection.immutable.MapBuilderImpl",{Jra:1,b:1,vj:1,ue:1,Fd:1,Ed:1});function A3(a){this.Vg=0;this.Oo=null;this.zh=0;this.Or=this.Nr=null;this.OJ=0;this.EW=null;Mt(this,a);this.OJ=0}A3.prototype=new Ot;A3.prototype.constructor=A3;e=A3.prototype;e.t=function(){return this};e.i=function(){return!this.s()};e.sg=function(a){return Xc(this,a)};e.Se=function(a){return eS(this,a)};e.g=function(){return"\x3citerator\x3e"};e.Tg=function(a){return ht(this,a)}; +e.Zb=function(a,b,c){return zg(this,a,b,c)};e.zf=function(a,b,c,d){return lt(this,a,b,c,d)};e.qc=function(){Wb();return Xb(A(),this)};e.Kh=function(){return M(nM(),this)};e.kg=function(){return UU(wx(),this)};e.bh=function(a){return mt(this,a)};e.N=function(){return-1};e.v=function(){var a=D(),b=this.EW;return mz(a,this.OJ,ly(W(),b))};e.p=function(){if(!this.s())throw US();this.OJ=this.Oo.sc(this.Vg);this.EW=this.Oo.Og(this.Vg);this.Vg=-1+this.Vg|0;return this}; +e.$classData=v({Kra:0},!1,"scala.collection.immutable.MapKeyValueTupleHashIterator",{Kra:1,xW:1,b:1,Ua:1,J:1,K:1});function B3(a){this.Yl=this.ee=0;this.yh=null;this.Cg=0;this.No=this.mj=null;Ht(this,a)}B3.prototype=new Jt;B3.prototype.constructor=B3;e=B3.prototype;e.t=function(){return this};e.i=function(){return!this.s()};e.sg=function(a){return Xc(this,a)};e.Se=function(a){return eS(this,a)};e.g=function(){return"\x3citerator\x3e"};e.Tg=function(a){return ht(this,a)}; +e.Zb=function(a,b,c){return zg(this,a,b,c)};e.zf=function(a,b,c,d){return lt(this,a,b,c,d)};e.qc=function(){Wb();return Xb(A(),this)};e.Kh=function(){return M(nM(),this)};e.kg=function(){return UU(wx(),this)};e.bh=function(a){return mt(this,a)};e.N=function(){return-1};e.Do=function(){if(!this.s())throw US();var a=this.yh.hr(this.ee);this.ee=1+this.ee|0;return a};e.p=function(){return this.Do()}; +e.$classData=v({Lra:0},!1,"scala.collection.immutable.MapKeyValueTupleIterator",{Lra:1,vD:1,b:1,Ua:1,J:1,K:1});function C3(a){this.Vg=0;this.Oo=null;this.zh=0;this.Or=this.Nr=null;Mt(this,a)}C3.prototype=new Ot;C3.prototype.constructor=C3;e=C3.prototype;e.t=function(){return this};e.i=function(){return!this.s()};e.sg=function(a){return Xc(this,a)};e.Se=function(a){return eS(this,a)};e.g=function(){return"\x3citerator\x3e"};e.Tg=function(a){return ht(this,a)}; +e.Zb=function(a,b,c){return zg(this,a,b,c)};e.zf=function(a,b,c,d){return lt(this,a,b,c,d)};e.qc=function(){Wb();return Xb(A(),this)};e.Kh=function(){return M(nM(),this)};e.kg=function(){return UU(wx(),this)};e.bh=function(a){return mt(this,a)};e.N=function(){return-1};e.Do=function(){if(!this.s())throw US();var a=this.Oo.hr(this.Vg);this.Vg=-1+this.Vg|0;return a};e.p=function(){return this.Do()}; +e.$classData=v({Mra:0},!1,"scala.collection.immutable.MapKeyValueTupleReverseIterator",{Mra:1,xW:1,b:1,Ua:1,J:1,K:1}); +function Pda(a){a.gi<=a.ff&&xx().Na.p();a.Vr=1+a.Vr|0;for(var b=a.FW.ck(a.Vr);0===b.a.length;)a.Vr=1+a.Vr|0,b=a.FW.ck(a.Vr);a.zD=a.rv;var c=a.Qra/2|0,d=a.Vr-c|0;a.Ur=(1+c|0)-(0>d?-d|0:d)|0;c=a.Ur;switch(c){case 1:a.Sj=b;break;case 2:a.Rr=b;break;case 3:a.Sr=b;break;case 4:a.Tr=b;break;case 5:a.qv=b;break;case 6:a.PJ=b;break;default:throw new B(c);}a.rv=a.zD+l(b.a.length,1<a.Vo&&(a.rv=a.Vo);1c?a.Sj=a.Rr.a[31&(b>>>5|0)]:(32768>c?a.Rr=a.Sr.a[31&(b>>>10|0)]:(1048576>c?a.Sr=a.Tr.a[31&(b>>>15|0)]:(33554432>c?a.Tr=a.qv.a[31&(b>>>20|0)]:(a.qv=a.PJ.a[b>>>25|0],a.Tr=a.qv.a[0]),a.Sr=a.Tr.a[0]),a.Rr=a.Sr.a[0]),a.Sj=a.Rr.a[0]);a.az=b}a.gi=a.gi-a.ff|0;b=a.Sj.a.length;c=a.gi;a.Uo=bthis.ff};e.p=function(){this.ff===this.Uo&&Qda(this);var a=this.Sj.a[this.ff];this.ff=1+this.ff|0;return a}; +e.Se=function(a){if(0=this.rv;)Pda(this);b=a-this.zD|0;if(1c||(32768>c||(1048576>c||(33554432>c||(this.qv=this.PJ.a[b>>>25|0]),this.Tr=this.qv.a[31&(b>>>20|0)]),this.Sr=this.Tr.a[31&(b>>>15|0)]),this.Rr=this.Sr.a[31&(b>>>10|0)]);this.Sj=this.Rr.a[31&(b>>>5|0)];this.az=b}this.Uo=this.Sj.a.length;this.ff=31&b;this.gi=this.ff+(this.Vo-a|0)|0;this.Uo>this.gi&& +(this.Uo=this.gi)}}return this};e.Zb=function(a,b,c){var d=Cs(Pp(),a),f=this.gi-this.ff|0;c=cthis.uv}; +E3.prototype.p=function(){if(this.s()){var a=this.RJ;var b=this.uv,c=this.uv+this.SJ|0;if(0>=b)if(0>=c||a.Gf){var d=a.vc;a=new EV(d,d,a.tb)}else a=c>=a.Eg&&0<=a.Eg?a:new F3(a.vc,a.vc+l(a.tb,-1+c|0)|0,a.tb);else c>=a.Eg&&0<=a.Eg?a=G3(a,b):(d=a.vc+l(a.tb,b)|0,b>=c?a=new EV(d,d,a.tb):(b=a.vc+l(a.tb,-1+c|0)|0,a=new F3(d,b,a.tb)));this.uv=this.uv+this.SJ|0}else a=xx().Na.p();return a};E3.prototype.$classData=v({bsa:0},!1,"scala.collection.immutable.Range$$anon$3",{bsa:1,qb:1,b:1,Ua:1,J:1,K:1}); +function H3(a,b,c,d){a.xv=b;a.Xr=d;null===b?d=null:(d=-2+((32-ea(1+(2147483647&b.aa)|0)|0)<<1)|0,d=new (x(Dv).M)(d));a.pj=d;a.Dc=0;if(c.i())b=I3(a,b);else if(b=c.Sa(),null===a.xv)b=null;else a:for(c=a.xv;;){if(null===c){if(0===a.Dc){b=null;break a}a.Dc=-1+a.Dc|0;b=a.pj.a[a.Dc];break a}a.Xr.uf(b,c.Qa)?(a.pj.a[a.Dc]=c,a.Dc=1+a.Dc|0,c=c.oa):c=c.ma}a.Pb=b}function J3(){this.pj=this.Xr=this.xv=null;this.Dc=0;this.Pb=null}J3.prototype=new T_;J3.prototype.constructor=J3;function K3(){}K3.prototype=J3.prototype; +J3.prototype.s=function(){return null!==this.Pb};J3.prototype.p=function(){var a=this.Pb;return null!==a?(this.Pb=I3(this,a.ma),this.xI(a)):xx().Na.p()};function I3(a,b){for(;;){if(null===b){if(0===a.Dc)return null;a.Dc=-1+a.Dc|0;return a.pj.a[a.Dc]}if(null===b.oa)return b;a.pj.a[a.Dc]=b;a.Dc=1+a.Dc|0;b=b.oa}}function L3(){this.Ag=null;this.Ag=Wb()}L3.prototype=new a0;L3.prototype.constructor=L3;function UU(a,b){return b&&b.$classData&&b.$classData.Hb.Ud?b:$_.prototype.Du.call(a,b)} +L3.prototype.Ib=function(a){return UU(this,a)};L3.prototype.Du=function(a){return UU(this,a)};L3.prototype.$classData=v({nsa:0},!1,"scala.collection.immutable.Seq$",{nsa:1,qJ:1,b:1,bi:1,Te:1,d:1});var M3;function wx(){M3||(M3=new L3);return M3}function ET(){this.$r=null;this.ez=!1;this.as=null;this.$r=FT();this.ez=!1}ET.prototype=new t;ET.prototype.constructor=ET;e=ET.prototype;e.oc=function(){};function CT(a){return a.ez?mT(a.as):a.$r}function DT(a,b){return a.ez?(nT(a.as,b),a):IM(a,b)} +e.ec=function(a){return DT(this,a)};e.Ia=function(a){if(this.ez)p3(this.as,a);else if(4>this.$r.Y())this.$r=this.$r.po(a);else if(!this.$r.Pa(a)){this.ez=!0;null===this.as&&(this.as=new lT);var b=this.$r;this.as.Ia(b.fm).Ia(b.Wk).Ia(b.Uj).Ia(b.Vj);p3(this.as,a)}return this};e.nb=function(){return CT(this)};e.$classData=v({xsa:0},!1,"scala.collection.immutable.SetBuilderImpl",{xsa:1,b:1,vj:1,ue:1,Fd:1,Ed:1}); +function N3(a){this.Yl=this.ee=0;this.yh=null;this.Cg=0;this.No=this.mj=null;this.TJ=0;Ht(this,a);this.TJ=0}N3.prototype=new Jt;N3.prototype.constructor=N3;e=N3.prototype;e.t=function(){return this};e.i=function(){return!this.s()};e.sg=function(a){return Xc(this,a)};e.Se=function(a){return eS(this,a)};e.g=function(){return"\x3citerator\x3e"};e.Tg=function(a){return ht(this,a)};e.Zb=function(a,b,c){return zg(this,a,b,c)};e.zf=function(a,b,c,d){return lt(this,a,b,c,d)}; +e.qc=function(){Wb();return Xb(A(),this)};e.Kh=function(){return M(nM(),this)};e.kg=function(){return UU(wx(),this)};e.bh=function(a){return mt(this,a)};e.N=function(){return-1};e.v=function(){return this.TJ};e.p=function(){if(!this.s())throw US();this.TJ=this.yh.sc(this.ee);this.ee=1+this.ee|0;return this};e.$classData=v({ysa:0},!1,"scala.collection.immutable.SetHashIterator",{ysa:1,vD:1,b:1,Ua:1,J:1,K:1});function O3(a){this.Yl=this.ee=0;this.yh=null;this.Cg=0;this.No=this.mj=null;Ht(this,a)} +O3.prototype=new Jt;O3.prototype.constructor=O3;e=O3.prototype;e.t=function(){return this};e.i=function(){return!this.s()};e.sg=function(a){return Xc(this,a)};e.Se=function(a){return eS(this,a)};e.g=function(){return"\x3citerator\x3e"};e.Tg=function(a){return ht(this,a)};e.Zb=function(a,b,c){return zg(this,a,b,c)};e.zf=function(a,b,c,d){return lt(this,a,b,c,d)};e.qc=function(){Wb();return Xb(A(),this)};e.Kh=function(){return M(nM(),this)};e.kg=function(){return UU(wx(),this)}; +e.bh=function(a){return mt(this,a)};e.N=function(){return-1};e.p=function(){if(!this.s())throw US();var a=this.yh.Bd(this.ee);this.ee=1+this.ee|0;return a};e.$classData=v({zsa:0},!1,"scala.collection.immutable.SetIterator",{zsa:1,vD:1,b:1,Ua:1,J:1,K:1});function P3(a){this.Vg=0;this.Oo=null;this.zh=0;this.Or=this.Nr=null;Mt(this,a)}P3.prototype=new Ot;P3.prototype.constructor=P3;e=P3.prototype;e.t=function(){return this};e.i=function(){return!this.s()};e.sg=function(a){return Xc(this,a)}; +e.Se=function(a){return eS(this,a)};e.g=function(){return"\x3citerator\x3e"};e.Tg=function(a){return ht(this,a)};e.Zb=function(a,b,c){return zg(this,a,b,c)};e.zf=function(a,b,c,d){return lt(this,a,b,c,d)};e.qc=function(){Wb();return Xb(A(),this)};e.Kh=function(){return M(nM(),this)};e.kg=function(){return UU(wx(),this)};e.bh=function(a){return mt(this,a)};e.N=function(){return-1};e.p=function(){if(!this.s())throw US();var a=this.Oo.Bd(this.Vg);this.Vg=-1+this.Vg|0;return a}; +e.$classData=v({Csa:0},!1,"scala.collection.immutable.SetReverseIterator",{Csa:1,xW:1,b:1,Ua:1,J:1,K:1});function Q3(){this.QW=0;this.RW=null;R3=this;try{var a=Gm().ir("scala.collection.immutable.Vector.defaultApplyPreferredMaxLength","250");var b=Rt(St(),a,10)}catch(c){throw c;}this.QW=b;this.RW=new D3(Lv(),0,0)}Q3.prototype=new t;Q3.prototype.constructor=Q3;e=Q3.prototype;e.Pf=function(a){return Qb(0,a)}; +function Qb(a,b){if(b instanceof S3)return b;a=b.N();if(0===a)return Lv();if(0=a){a:{if(b instanceof T3){var c=b.je();if(null!==c&&c.c(m(nb))){b=b.Pj;break a}}bw(b)?(a=new Za(a),b.Zb(a,0,2147483647),b=a):(a=new Za(a),b.t().Zb(a,0,2147483647),b=a)}return new Mv(b)}return YS(new XS,b).ej()}e.yj=function(a,b){return n0(this,a,b)};e.Zi=function(a,b){return m0(this,a,b)};e.Ya=function(){return new XS};e.Ib=function(a){return Qb(0,a)};e.Bc=function(){return Lv()}; +e.$classData=v({Vsa:0},!1,"scala.collection.immutable.Vector$",{Vsa:1,b:1,Kr:1,bi:1,Te:1,d:1});var R3;function Rb(){R3||(R3=new Q3);return R3}function Rda(a,b){var c=b.a.length;if(0h?-h|0:h)|0;1===g?Rda(a,f):Yv(S(),-2+g|0,f,new C((k=>n=>{Rda(k,n)})(a)));d=1+d|0}return a} +function U3(a){var b=32+a.If|0,c=b^a.If;a.If=b;a.Hc=0;if(1024>c)1===a.He&&(a.mc=new (x(x(nb)).M)(32),a.mc.a[0]=a.ud,a.He=1+a.He|0),a.ud=new Za(32),a.mc.a[31&(b>>>5|0)]=a.ud;else if(32768>c)2===a.He&&(a.dd=new (x(x(x(nb))).M)(32),a.dd.a[0]=a.mc,a.He=1+a.He|0),a.ud=new Za(32),a.mc=new (x(x(nb)).M)(32),a.mc.a[31&(b>>>5|0)]=a.ud,a.dd.a[31&(b>>>10|0)]=a.mc;else if(1048576>c)3===a.He&&(a.Yd=new (x(x(x(x(nb)))).M)(32),a.Yd.a[0]=a.dd,a.He=1+a.He|0),a.ud=new Za(32),a.mc=new (x(x(nb)).M)(32),a.dd=new (x(x(x(nb))).M)(32), +a.mc.a[31&(b>>>5|0)]=a.ud,a.dd.a[31&(b>>>10|0)]=a.mc,a.Yd.a[31&(b>>>15|0)]=a.dd;else if(33554432>c)4===a.He&&(a.Oe=new (x(x(x(x(x(nb))))).M)(32),a.Oe.a[0]=a.Yd,a.He=1+a.He|0),a.ud=new Za(32),a.mc=new (x(x(nb)).M)(32),a.dd=new (x(x(x(nb))).M)(32),a.Yd=new (x(x(x(x(nb)))).M)(32),a.mc.a[31&(b>>>5|0)]=a.ud,a.dd.a[31&(b>>>10|0)]=a.mc,a.Yd.a[31&(b>>>15|0)]=a.dd,a.Oe.a[31&(b>>>20|0)]=a.Yd;else if(1073741824>c)5===a.He&&(a.Wf=new (x(x(x(x(x(x(nb)))))).M)(64),a.Wf.a[0]=a.Oe,a.He=1+a.He|0),a.ud=new Za(32), +a.mc=new (x(x(nb)).M)(32),a.dd=new (x(x(x(nb))).M)(32),a.Yd=new (x(x(x(x(nb)))).M)(32),a.Oe=new (x(x(x(x(x(nb))))).M)(32),a.mc.a[31&(b>>>5|0)]=a.ud,a.dd.a[31&(b>>>10|0)]=a.mc,a.Yd.a[31&(b>>>15|0)]=a.dd,a.Oe.a[31&(b>>>20|0)]=a.Yd,a.Wf.a[31&(b>>>25|0)]=a.Oe;else throw Hq("advance1("+b+", "+c+"): a1\x3d"+a.ud+", a2\x3d"+a.mc+", a3\x3d"+a.dd+", a4\x3d"+a.Yd+", a5\x3d"+a.Oe+", a6\x3d"+a.Wf+", depth\x3d"+a.He);} +function XS(){this.ud=this.mc=this.dd=this.Yd=this.Oe=this.Wf=null;this.He=this.ji=this.If=this.Hc=0;this.ud=new Za(32);this.ji=this.If=this.Hc=0;this.He=1}XS.prototype=new t;XS.prototype.constructor=XS;e=XS.prototype;e.oc=function(){};function Tda(a,b){a.He=1;var c=b.a.length;a.Hc=31&c;a.If=c-a.Hc|0;a.ud=32===b.a.length?b:Gq(F(),b,0,32);0===a.Hc&&0=a){if(32===b)return new Mv(this.ud);var c=this.ud;return new Mv(oq(F(),c,b))}if(1024>=a){var d=31&(-1+a|0),f=(-1+a|0)>>>5|0,g=this.mc,h=Gq(F(),g,1,f),k=this.mc.a[0],n=this.mc.a[f],r=1+d|0,u=n.a.length===r?n:oq(F(),n,r);return new Nv(k,32-this.ji|0,h,u,b)}if(32768>=a){var w=31&(-1+a|0),y=31&((-1+a|0)>>>5|0),K=(-1+a|0)>>>10|0,U=this.dd,Z=Gq(F(),U,1,K),ra=this.dd.a[0],Ba=ra.a.length,ka=Gq(F(),ra,1,Ba),Ca=this.dd.a[0].a[0], +Fa=this.dd.a[K],ib=oq(F(),Fa,y),zb=this.dd.a[K].a[y],Ab=1+w|0,nd=zb.a.length===Ab?zb:oq(F(),zb,Ab),Bb=Ca.a.length;return new Ov(Ca,Bb,ka,Bb+(ka.a.length<<5)|0,Z,ib,nd,b)}if(1048576>=a){var Dc=31&(-1+a|0),cc=31&((-1+a|0)>>>5|0),Ec=31&((-1+a|0)>>>10|0),Xa=(-1+a|0)>>>15|0,hb=this.Yd,Pe=Gq(F(),hb,1,Xa),pi=this.Yd.a[0],uk=pi.a.length,Yd=Gq(F(),pi,1,uk),Db=this.Yd.a[0].a[0],Qe=Db.a.length,qc=Gq(F(),Db,1,Qe),se=this.Yd.a[0].a[0].a[0],Fg=this.Yd.a[Xa],Fu=oq(F(),Fg,Ec),Gu=this.Yd.a[Xa].a[Ec],Hu=oq(F(),Gu, +cc),sh=this.Yd.a[Xa].a[Ec].a[cc],Fl=1+Dc|0,Iu=sh.a.length===Fl?sh:oq(F(),sh,Fl),Ju=se.a.length,Rp=Ju+(qc.a.length<<5)|0;return new Pv(se,Ju,qc,Rp,Yd,Rp+(Yd.a.length<<10)|0,Pe,Fu,Hu,Iu,b)}if(33554432>=a){var Gl=31&(-1+a|0),Sp=31&((-1+a|0)>>>5|0),bd=31&((-1+a|0)>>>10|0),vk=31&((-1+a|0)>>>15|0),qi=(-1+a|0)>>>20|0,ej=this.Oe,wn=Gq(F(),ej,1,qi),Ku=this.Oe.a[0],xn=Ku.a.length,Hl=Gq(F(),Ku,1,xn),Tp=this.Oe.a[0].a[0],Up=Tp.a.length,yn=Gq(F(),Tp,1,Up),zn=this.Oe.a[0].a[0].a[0],Lu=zn.a.length,wk=Gq(F(),zn, +1,Lu),An=this.Oe.a[0].a[0].a[0].a[0],Mu=this.Oe.a[qi],Nu=oq(F(),Mu,vk),Vp=this.Oe.a[qi].a[vk],Ou=oq(F(),Vp,bd),ZB=this.Oe.a[qi].a[vk].a[bd],Pu=oq(F(),ZB,Sp),Bn=this.Oe.a[qi].a[vk].a[bd].a[Sp],Wp=1+Gl|0,ff=Bn.a.length===Wp?Bn:oq(F(),Bn,Wp),te=An.a.length,Gg=te+(wk.a.length<<5)|0,xk=Gg+(yn.a.length<<10)|0;return new Qv(An,te,wk,Gg,yn,xk,Hl,xk+(Hl.a.length<<15)|0,wn,Nu,Ou,Pu,ff,b)}var yk=31&(-1+a|0),Xp=31&((-1+a|0)>>>5|0),Yp=31&((-1+a|0)>>>10|0),Il=31&((-1+a|0)>>>15|0),th=31&((-1+a|0)>>>20|0),fj=(-1+ +a|0)>>>25|0,Zp=this.Wf,Qu=Gq(F(),Zp,1,fj),Hg=this.Wf.a[0],Jl=Hg.a.length,$p=Gq(F(),Hg,1,Jl),zk=this.Wf.a[0].a[0],Kl=zk.a.length,aq=Gq(F(),zk,1,Kl),Cn=this.Wf.a[0].a[0].a[0],Ru=Cn.a.length,Dn=Gq(F(),Cn,1,Ru),Ll=this.Wf.a[0].a[0].a[0].a[0],bq=Ll.a.length,En=Gq(F(),Ll,1,bq),Fn=this.Wf.a[0].a[0].a[0].a[0].a[0],$B=this.Wf.a[fj],Su=oq(F(),$B,th),Tu=this.Wf.a[fj].a[th],cq=oq(F(),Tu,Il),Uu=this.Wf.a[fj].a[th].a[Il],dq=oq(F(),Uu,Yp),yi=this.Wf.a[fj].a[th].a[Il].a[Yp],VF=oq(F(),yi,Xp),mj=this.Wf.a[fj].a[th].a[Il].a[Yp].a[Xp], +Aq=1+yk|0,XF=mj.a.length===Aq?mj:oq(F(),mj,Aq),VQ=Fn.a.length,WQ=VQ+(En.a.length<<5)|0,Lw=WQ+(Dn.a.length<<10)|0,Bq=Lw+(aq.a.length<<15)|0;return new Rv(Fn,VQ,En,WQ,Dn,Lw,aq,Bq,$p,Bq+($p.a.length<<20)|0,Qu,Su,cq,dq,VF,XF,b)};e.g=function(){return"VectorBuilder(len1\x3d"+this.Hc+", lenRest\x3d"+this.If+", offset\x3d"+this.ji+", depth\x3d"+this.He+")"};e.nb=function(){return this.ej()};e.ec=function(a){return YS(this,a)};e.Ia=function(a){return ZS(this,a)}; +e.$classData=v({cta:0},!1,"scala.collection.immutable.VectorBuilder",{cta:1,b:1,vj:1,ue:1,Fd:1,Ed:1});function V3(){}V3.prototype=new t;V3.prototype.constructor=V3;e=V3.prototype;e.Pf=function(a){return rV(a)};function rV(a){var b=a.N();if(0<=b){var c=new Za(16>>ea(b)|0)<<1;if(!(0<=a))throw Hq("requirement failed: ArrayDeque too big - cannot allocate ArrayDeque of length "+b);return new Za(16((b.vd-b.nc|0)&(-1+b.ib.a.length|0))&&a>=b.ib.a.length&&f4(b,a)}; +c4.prototype.$classData=v({qta:0},!1,"scala.collection.mutable.ArrayDeque$$anon$1",{qta:1,hz:1,b:1,ue:1,Fd:1,Ed:1});function g4(){this.Ag=null;this.Ag=h4()}g4.prototype=new a0;g4.prototype.constructor=g4;g4.prototype.$classData=v({Eta:0},!1,"scala.collection.mutable.Buffer$",{Eta:1,qJ:1,b:1,bi:1,Te:1,d:1});var i4;function JM(){i4||(i4=new g4);return i4}function VT(a,b){this.Xf=null;iU(this,TT(new UT,a,b))}VT.prototype=new X0;VT.prototype.constructor=VT;VT.prototype.oc=function(a){this.Xf.oc(a)}; +VT.prototype.$classData=v({Lta:0},!1,"scala.collection.mutable.HashMap$$anon$6",{Lta:1,hz:1,b:1,ue:1,Fd:1,Ed:1});function j4(a,b){if(null===b)throw I(J(),null);a.iz=b;a.bp=0;a.jm=null;a.jz=b.ac.a.length}function k4(){this.bp=0;this.jm=null;this.jz=0;this.iz=null}k4.prototype=new T_;k4.prototype.constructor=k4;function l4(){}l4.prototype=k4.prototype; +k4.prototype.s=function(){if(null!==this.jm)return!0;for(;this.bpd){b.Hu=1+d|0;b.Gu=!0;try{a.vr()}catch(h){if(f=Sr(J(),h),null!==f)if(ez(iz(),f))Bw().NC.r(f);else throw I(J(),f);else throw h;}finally{b.Hu= +c,b.Gu=!0}}else a=new nU(this,a),b.Hu=a,b.Gu=!0,a.vr(),b.Hu=c,b.Gu=!0};y4.prototype.CI=function(a){Bw().NC.r(a)};y4.prototype.$classData=v({Jma:0},!1,"scala.concurrent.ExecutionContext$parasitic$",{Jma:1,b:1,qV:1,nV:1,vU:1,lV:1});var z4;function Xw(){z4||(z4=new y4);return z4}function A4(){}A4.prototype=new e1;A4.prototype.constructor=A4;function B4(){}B4.prototype=A4.prototype;A4.prototype.oX=function(){throw Hq("toNanos not allowed on infinite Durations");}; +function C4(a,b){var c=b.k,d=b.o;d=0!==c?~d:-d|0;var f=a.Hk,g=f.o;return(d===g?(-2147483648^(-c|0))<=(-2147483648^f.k):d=(-2147483648^a):0>b));if(!a)throw Hq("requirement failed: Duration is limited to +-(2^63-1)ns (ca. 292 years)"); +}XM.prototype=new e1;XM.prototype.constructor=XM;e=XM.prototype;e.oX=function(){return this.Ar.Mi(this.Hk)};e.g=function(){var a=this.Hk+" ",b=WM().yV.r(this.Ar),c=this.Hk;return a+(b+(1===c.k&&0===c.o?"":"s"))};e.Kx=function(a){if(a instanceof XM){var b=this.Ar.Mi(this.Hk),c=new D4(new p(b.k,b.o));b=a.Ar.Mi(a.Hk);a=c.ah;c=Ga(new p(a.k,a.o));a=c.k;c=c.o;var d=Ga(new p(b.k,b.o));b=d.k;d=d.o;return za(Aa(),a,c,b,d)}return-a.Kx(this)|0}; +e.c=function(a){if(a instanceof XM){var b=this.Ar.Mi(this.Hk);a=a.Ar.Mi(a.Hk);return b.k===a.k&&b.o===a.o}return this===a};e.v=function(){return this.Ar.Mi(this.Hk).k};e.$classData=v({Wma:0},!1,"scala.concurrent.duration.FiniteDuration",{Wma:1,OI:1,b:1,d:1,vh:1,Bb:1});function E4(a,b,c){return 0<=a.$(b,c)}function F4(a,b,c){return 0===a.$(b,c)}function G4(a,b,c){return a.ug(b,c)?b:c}function H4(a,b,c){return a.uf(b,c)?b:c}function I4(a,b){return b instanceof J4?(b=b.Bi,null!==b&&b.c(a)):!1} +function Zda(a,b){return Sl(a.me(),b)?new Ze(b):E()}var aea=function $da(a,b){return Ul(b)?"Array["+$da(a,Vl(b))+"]":b.ze.name};function gy(a){this.jX=0;this.iva=a;this.ZD=0;this.jX=a.B()}gy.prototype=new T_;gy.prototype.constructor=gy;gy.prototype.s=function(){return this.ZDa=>Af(new Bf,a.wj))(this)))};e.yj=function(a,b){return n0(this,a,b)};e.Zi=function(a,b){return m0(this,a,b)};e.Ib=function(a){return O4(this,a)};e.Bc=function(){var a=new Bf;Af(a,[]);return a};e.$classData=v({Mua:0},!1,"scala.scalajs.runtime.WrappedVarArgs$",{Mua:1,b:1,Kr:1,bi:1,Te:1,d:1});var P4; +function Q4(){P4||(P4=new N4);return P4}function Hw(a){this.gj=a}Hw.prototype=new h1;Hw.prototype.constructor=Hw;e=Hw.prototype;e.Sa=function(){throw I(J(),this.gj);};e.UT=function(){return this};e.Fa=function(){};e.aV=function(a){var b=qy();try{var c=a.Lc(this.gj,new C(((d,f)=>()=>f)(this,b)));return b!==c?new Pw(c):this}catch(d){a=Sr(J(),d);if(null!==a){if(null!==a&&(b=gz(iz(),a),!b.i()))return a=b.Sa(),new Hw(a);throw I(J(),a);}throw d;}};e.A=function(){return"Failure"};e.B=function(){return 1}; +e.C=function(a){return 0===a?this.gj:T(W(),a)};e.v=function(){return ig(D(),this)};e.g=function(){return fy(this)};e.c=function(a){if(this===a)return!0;if(a instanceof Hw){var b=this.gj;a=a.gj;return null===b?null===a:b.c(a)}return!1};e.$classData=v({hoa:0},!1,"scala.util.Failure",{hoa:1,ooa:1,b:1,y:1,m:1,d:1});function Yf(a){this.Cy=a}Yf.prototype=new g1;Yf.prototype.constructor=Yf;e=Yf.prototype;e.A=function(){return"Left"};e.B=function(){return 1};e.C=function(a){return 0===a?this.Cy:T(W(),a)}; +e.v=function(){return ig(D(),this)};e.g=function(){return fy(this)};e.c=function(a){return this===a?!0:a instanceof Yf?fq(O(),this.Cy,a.Cy):!1};e.$classData=v({ioa:0},!1,"scala.util.Left",{ioa:1,foa:1,b:1,y:1,m:1,d:1});function Zf(a){this.YC=a}Zf.prototype=new g1;Zf.prototype.constructor=Zf;e=Zf.prototype;e.A=function(){return"Right"};e.B=function(){return 1};e.C=function(a){return 0===a?this.YC:T(W(),a)};e.v=function(){return ig(D(),this)};e.g=function(){return fy(this)}; +e.c=function(a){return this===a?!0:a instanceof Zf?fq(O(),this.YC,a.YC):!1};e.$classData=v({koa:0},!1,"scala.util.Right",{koa:1,foa:1,b:1,y:1,m:1,d:1});function Pw(a){this.hj=a}Pw.prototype=new h1;Pw.prototype.constructor=Pw;e=Pw.prototype;e.Sa=function(){return this.hj};e.UT=function(a){try{return a.r(this.hj)}catch(c){a=Sr(J(),c);if(null!==a){if(null!==a){var b=gz(iz(),a);if(!b.i())return a=b.Sa(),new Hw(a)}throw I(J(),a);}throw c;}};e.Fa=function(a){a.r(this.hj)};e.aV=function(){return this}; +e.A=function(){return"Success"};e.B=function(){return 1};e.C=function(a){return 0===a?this.hj:T(W(),a)};e.v=function(){return ig(D(),this)};e.g=function(){return fy(this)};e.c=function(a){return this===a?!0:a instanceof Pw?fq(O(),this.hj,a.hj):!1};e.$classData=v({noa:0},!1,"scala.util.Success",{noa:1,ooa:1,b:1,y:1,m:1,d:1});function lO(a,b){this.Mfa=b}lO.prototype=new wU;lO.prototype.constructor=lO;e=lO.prototype;e.Nd=function(a,b){if(a instanceof fA)throw new tV(a.qx,this.Mfa,a);return b.r(a)}; +e.Qd=function(a){return a instanceof fA};e.le=function(a){return this.Qd(a)};e.Lc=function(a,b){return this.Nd(a,b)};e.$classData=v({Lfa:0},!1,"ujson.CharParser$$anonfun$reject$1",{Lfa:1,$j:1,b:1,ja:1,Ca:1,d:1});function xO(a,b){this.du=a;this.dx=b}xO.prototype=new t;xO.prototype.constructor=xO;e=xO.prototype;e.wi=function(){return this.du};e.A=function(){return"Arr"};e.B=function(){return 2};e.C=function(a){switch(a){case 0:return this.du;case 1:return this.dx;default:return T(W(),a)}}; +e.v=function(){var a=Ja("Arr");a=W().l(-889275714,a);var b=this.du;a=W().l(a,b);b=this.dx;b=ly(W(),b);a=W().l(a,b);return W().ea(a,2)};e.g=function(){return fy(this)};e.c=function(a){if(this===a)return!0;if(a instanceof xO&&this.du===a.du){var b=this.dx;a=a.dx;return null===b?null===a:b.c(a)}return!1};e.$classData=v({Qfa:0},!1,"ujson.IndexedValue$Arr",{Qfa:1,b:1,Pq:1,y:1,m:1,d:1});function tO(a){this.eu=a}tO.prototype=new t;tO.prototype.constructor=tO;e=tO.prototype;e.wi=function(){return this.eu}; +e.A=function(){return"False"};e.B=function(){return 1};e.C=function(a){return 0===a?this.eu:T(W(),a)};e.v=function(){var a=Ja("False");a=W().l(-889275714,a);var b=this.eu;a=W().l(a,b);return W().ea(a,1)};e.g=function(){return fy(this)};e.c=function(a){return this===a?!0:a instanceof tO?this.eu===a.eu:!1};e.$classData=v({Wfa:0},!1,"ujson.IndexedValue$False",{Wfa:1,b:1,Pq:1,y:1,m:1,d:1});function rO(a){this.fu=a}rO.prototype=new t;rO.prototype.constructor=rO;e=rO.prototype;e.wi=function(){return this.fu}; +e.A=function(){return"Null"};e.B=function(){return 1};e.C=function(a){return 0===a?this.fu:T(W(),a)};e.v=function(){var a=Ja("Null");a=W().l(-889275714,a);var b=this.fu;a=W().l(a,b);return W().ea(a,1)};e.g=function(){return fy(this)};e.c=function(a){return this===a?!0:a instanceof rO?this.fu===a.fu:!1};e.$classData=v({Xfa:0},!1,"ujson.IndexedValue$Null",{Xfa:1,b:1,Pq:1,y:1,m:1,d:1});function vO(a,b,c,d){this.hu=a;this.hx=b;this.fx=c;this.gx=d}vO.prototype=new t;vO.prototype.constructor=vO;e=vO.prototype; +e.wi=function(){return this.hu};e.A=function(){return"Num"};e.B=function(){return 4};e.C=function(a){switch(a){case 0:return this.hu;case 1:return this.hx;case 2:return this.fx;case 3:return this.gx;default:return T(W(),a)}};e.v=function(){var a=Ja("Num");a=W().l(-889275714,a);var b=this.hu;a=W().l(a,b);b=this.hx;b=ly(W(),b);a=W().l(a,b);b=this.fx;a=W().l(a,b);b=this.gx;a=W().l(a,b);return W().ea(a,4)};e.g=function(){return fy(this)}; +e.c=function(a){if(this===a)return!0;if(a instanceof vO&&this.hu===a.hu&&this.fx===a.fx&&this.gx===a.gx){var b=this.hx;a=a.hx;return null===b?null===a:Ea(b,a)}return!1};e.$classData=v({Yfa:0},!1,"ujson.IndexedValue$Num",{Yfa:1,b:1,Pq:1,y:1,m:1,d:1});function wO(a,b){this.gu=a;this.ex=b}wO.prototype=new t;wO.prototype.constructor=wO;e=wO.prototype;e.wi=function(){return this.gu};e.A=function(){return"NumRaw"};e.B=function(){return 2}; +e.C=function(a){switch(a){case 0:return this.gu;case 1:return this.ex;default:return T(W(),a)}};e.v=function(){var a=Ja("NumRaw");a=W().l(-889275714,a);var b=this.gu;a=W().l(a,b);b=this.ex;b=ky(W(),b);a=W().l(a,b);return W().ea(a,2)};e.g=function(){return fy(this)};e.c=function(a){return this===a?!0:a instanceof wO?this.gu===a.gu&&this.ex===a.ex:!1};e.$classData=v({Zfa:0},!1,"ujson.IndexedValue$NumRaw",{Zfa:1,b:1,Pq:1,y:1,m:1,d:1});function AO(a,b){this.iu=a;this.Qq=b}AO.prototype=new t; +AO.prototype.constructor=AO;e=AO.prototype;e.wi=function(){return this.iu};e.A=function(){return"Obj"};e.B=function(){return 2};e.C=function(a){switch(a){case 0:return this.iu;case 1:return this.Qq;default:return T(W(),a)}};e.v=function(){var a=Ja("Obj");a=W().l(-889275714,a);var b=this.iu;a=W().l(a,b);b=this.Qq;b=ly(W(),b);a=W().l(a,b);return W().ea(a,2)};e.g=function(){return fy(this)}; +e.c=function(a){if(this===a)return!0;if(a instanceof AO&&this.iu===a.iu){var b=this.Qq;a=a.Qq;return null===b?null===a:b.c(a)}return!1};e.$classData=v({$fa:0},!1,"ujson.IndexedValue$Obj",{$fa:1,b:1,Pq:1,y:1,m:1,d:1});function uO(a,b){this.ju=a;this.Rq=b}uO.prototype=new t;uO.prototype.constructor=uO;e=uO.prototype;e.wi=function(){return this.ju};e.A=function(){return"Str"};e.B=function(){return 2};e.C=function(a){switch(a){case 0:return this.ju;case 1:return this.Rq;default:return T(W(),a)}}; +e.v=function(){var a=Ja("Str");a=W().l(-889275714,a);var b=this.ju;a=W().l(a,b);b=this.Rq;b=ly(W(),b);a=W().l(a,b);return W().ea(a,2)};e.g=function(){return fy(this)};e.c=function(a){if(this===a)return!0;if(a instanceof uO&&this.ju===a.ju){var b=this.Rq;a=a.Rq;return null===b?null===a:Ea(b,a)}return!1};e.$classData=v({aga:0},!1,"ujson.IndexedValue$Str",{aga:1,b:1,Pq:1,y:1,m:1,d:1});function sO(a){this.ku=a}sO.prototype=new t;sO.prototype.constructor=sO;e=sO.prototype;e.wi=function(){return this.ku}; +e.A=function(){return"True"};e.B=function(){return 1};e.C=function(a){return 0===a?this.ku:T(W(),a)};e.v=function(){var a=Ja("True");a=W().l(-889275714,a);var b=this.ku;a=W().l(a,b);return W().ea(a,1)};e.g=function(){return fy(this)};e.c=function(a){return this===a?!0:a instanceof sO?this.ku===a.ku:!1};e.$classData=v({bga:0},!1,"ujson.IndexedValue$True",{bga:1,b:1,Pq:1,y:1,m:1,d:1});function RB(a,b){this.XA=a;this.YA=b}RB.prototype=new t;RB.prototype.constructor=RB;e=RB.prototype; +e.$k=function(a){return this.YA.rK(this.XA,a)};e.A=function(){return"fromTransformer"};e.B=function(){return 2};e.C=function(a){switch(a){case 0:return this.XA;case 1:return this.YA;default:return T(W(),a)}};e.v=function(){return ig(D(),this)};e.g=function(){return fy(this)};e.c=function(a){if(this===a)return!0;if(a instanceof RB){var b=this.XA,c=a.XA;return fq(O(),b,c)?this.YA===a.YA:!1}return!1};e.$classData=v({jga:0},!1,"ujson.Readable$fromTransformer",{jga:1,b:1,fo:1,y:1,m:1,d:1}); +function R4(){this.AS=null;S4=this;p1||(p1=new n1);HO||(HO=new GO);RN();m1||(m1=new k1);Bz||(Bz=new Az);this.AS=cea();T4();U4()}R4.prototype=new t;R4.prototype.constructor=R4;e=R4.prototype;e.xd=function(a){return new l1(a)};e.Rc=function(a){return new l1(a)};e.yd=function(a,b){return CO(this,a,b)};e.Kd=function(a,b){return DO(this,a,b)};e.Hd=function(a,b,c,d){return EO(this,a,b,c,d)};e.Jd=function(a,b,c,d,f){return FO(this,a,b,c,d,f)};e.Id=function(a){a=String.fromCharCode(a);return new o1(a)}; +function YU(a,b,c){if(U4()===b)return c.yc(-1);if(cea()===b)return c.Sc(-1);if(T4()===b)return c.Qc(-1);if(b instanceof o1)return c.n(b.ix,-1);if(b instanceof l1)return c.xc(b.lu,-1);if(b instanceof VN)return jda(a,c,b.bu);if(b instanceof VU)return kda(a,c,b.Sq);throw new B(b);}function dea(a){var b=new C((()=>d=>new VN(d))(a)),c=qV();return new BU(a,b,new JR(c))}function eea(a){var b=new C((()=>d=>new VU(d))(a)),c=lU();return new CU(a,b,new lS(c))}e.n=function(a){return new o1(Ma(a))};e.xc=function(a){return new l1(a)}; +e.bc=function(a,b,c){-1!==b||-1!==c?(a=Ma(a),a=II(ya(),a)):(a=uA(xA(),a,b,c),a=bs(Aa(),a.k,a.o));return new l1(a)};e.Sc=function(){return this.AS};e.Qc=function(){return T4()};e.yc=function(){return U4()};e.ca=function(){return eea(this)};e.Gb=function(){return dea(this)};e.rK=function(a,b){return YU(this,a,b)};e.$classData=v({rga:0},!1,"ujson.Value$",{rga:1,b:1,fAa:1,yS:1,xS:1,la:1});var S4;function Ez(){S4||(S4=new R4);return S4} +class Kz extends rk{constructor(a,b){super();iJ(this,a,b)}mo(){return az(this)}}Kz.prototype.$classData=v({fha:0},!1,"upickle.core.TraceVisitor$TraceException",{fha:1,ub:1,gb:1,b:1,d:1,ZC:1});function V4(a){var b=X();if(null===b)throw I(J(),null);a.Oa=b}function W4(){this.Oa=null}W4.prototype=new t;W4.prototype.constructor=W4;function X4(){}e=X4.prototype=W4.prototype;e.yc=function(){return null};e.Sc=function(){return YO(this)};e.Qc=function(){return ZO(this)};e.n=function(){return $O(this)}; +e.bc=function(){return aP(this)};e.Gb=function(){return cP(this)};e.xc=function(){return dP(this)};e.xd=function(){return eP(this)};e.Rc=function(){return fP(this)};e.yd=function(){return gP(this)};e.Kd=function(){return hP(this)};e.Id=function(){return iP(this)};e.Hd=function(){return jP(this)};e.Jd=function(){return kP(this)};e.Mc=function(){return"expected dictionary"};e.mf=function(){return this.Oa}; +function Y4(a,b){this.GG=this.cg=null;this.FG=b;b=fea(a.mf());if(null===b)throw I(J(),null);this.GG=b;this.cg=a}Y4.prototype=new v1;Y4.prototype.constructor=Y4;Y4.prototype.$classData=v({lha:0},!1,"upickle.core.Types$Reader$$anon$4",{lha:1,tAa:1,uAa:1,b:1,la:1,qa:1});function xP(a,b,c){this.NS=null;this.ru=b;this.Bha=c;if(null===a)throw I(J(),null);this.NS=a}xP.prototype=new t;xP.prototype.constructor=xP;e=xP.prototype;e.yc=function(){return null};e.Sc=function(){return YO(this)};e.Qc=function(){return ZO(this)}; +e.n=function(){return $O(this)};e.bc=function(){return aP(this)};e.ca=function(){return bP(this)};e.xc=function(){return dP(this)};e.xd=function(){return eP(this)};e.Rc=function(){return fP(this)};e.yd=function(){return gP(this)};e.Kd=function(){return hP(this)};e.Id=function(){return iP(this)};e.Hd=function(){return jP(this)};e.Jd=function(){return kP(this)};e.Mc=function(){return"expected sequence"};e.Gb=function(){return new GV(this)};e.mf=function(){return this.NS}; +e.$classData=v({zha:0},!1,"upickle.core.Types$TupleNReader",{zha:1,b:1,ya:1,qa:1,la:1,wa:1});function zO(a){this.Kha=a}zO.prototype=new wU;zO.prototype.constructor=zO;e=zO.prototype;e.Nd=function(a,b){if(a instanceof fA)throw new tV(a.qx,this.Kha,a);return b.r(a)};e.Qd=function(a){return a instanceof fA};e.le=function(a){return this.Qd(a)};e.Lc=function(a,b){return this.Nd(a,b)};e.$classData=v({Jha:0},!1,"upickle.core.Util$$anonfun$reject$1",{Jha:1,$j:1,b:1,ja:1,Ca:1,d:1}); +function Z4(a){this.aT=null;if(null===a)throw I(J(),null);this.aT=a}Z4.prototype=new t;Z4.prototype.constructor=Z4;e=Z4.prototype;e.yc=function(){return null};e.Sc=function(){return YO(this)};e.Qc=function(){return ZO(this)};e.n=function(){return $O(this)};e.bc=function(){return aP(this)};e.Gb=function(){return cP(this)};e.xc=function(){return dP(this)};e.xd=function(){return eP(this)};e.Rc=function(){return fP(this)};e.yd=function(){return gP(this)};e.Kd=function(){return hP(this)};e.Id=function(){return iP(this)}; +e.Hd=function(){return jP(this)};e.Jd=function(){return kP(this)};e.Mc=function(){return"expected unit"};e.ca=function(){return new HV(this)};e.mf=function(){return this.aT};e.$classData=v({ria:0},!1,"upickle.implicits.Readers$$anon$1",{ria:1,b:1,ya:1,qa:1,la:1,wa:1});function $4(a,b,c){this.WS=this.XS=this.YG=null;if(null===a)throw I(J(),null);this.YG=a;this.XS=b;this.WS=c}$4.prototype=new t;$4.prototype.constructor=$4;e=$4.prototype;e.yc=function(){return null};e.Sc=function(){return YO(this)}; +e.Qc=function(){return ZO(this)};e.n=function(){return $O(this)};e.bc=function(){return aP(this)};e.Gb=function(){return cP(this)};e.xc=function(){return dP(this)};e.xd=function(){return eP(this)};e.Rc=function(){return fP(this)};e.yd=function(){return gP(this)};e.Kd=function(){return hP(this)};e.Id=function(){return iP(this)};e.Hd=function(){return jP(this)};e.Jd=function(){return kP(this)};e.ca=function(){return new IV(this)};e.Mc=function(){return"expected map"};e.mf=function(){return this.YG}; +e.$classData=v({via:0},!1,"upickle.implicits.Readers$$anon$12",{via:1,b:1,ya:1,qa:1,la:1,wa:1});function UX(a,b){this.$S=this.ZS=null;if(null===a)throw I(J(),null);this.ZS=a;this.$S=b}UX.prototype=new t;UX.prototype.constructor=UX;e=UX.prototype;e.yc=function(){return null};e.Sc=function(){return YO(this)};e.Qc=function(){return ZO(this)};e.n=function(){return $O(this)};e.bc=function(){return aP(this)};e.ca=function(){return bP(this)};e.xc=function(){return dP(this)};e.xd=function(){return eP(this)}; +e.Rc=function(){return fP(this)};e.yd=function(){return gP(this)};e.Kd=function(){return hP(this)};e.Id=function(){return iP(this)};e.Hd=function(){return jP(this)};e.Jd=function(){return kP(this)};e.Mc=function(){return"expected sequence"};e.Gb=function(){return new JV(this)};e.mf=function(){return this.ZS};e.$classData=v({xia:0},!1,"upickle.implicits.Readers$$anon$14",{xia:1,b:1,ya:1,qa:1,la:1,wa:1}); +function HW(a,b,c){this.eT=this.dT=this.cT=null;if(null===a)throw I(J(),null);this.cT=a;this.dT=b;this.eT=c}HW.prototype=new t;HW.prototype.constructor=HW;e=HW.prototype;e.yc=function(){return null};e.Sc=function(){return YO(this)};e.Qc=function(){return ZO(this)};e.n=function(){return $O(this)};e.bc=function(){return aP(this)};e.ca=function(){return bP(this)};e.xc=function(){return dP(this)};e.xd=function(){return eP(this)};e.Rc=function(){return fP(this)};e.yd=function(){return gP(this)};e.Kd=function(){return hP(this)}; +e.Id=function(){return iP(this)};e.Hd=function(){return jP(this)};e.Jd=function(){return kP(this)};e.Mc=function(){return"expected sequence"};e.Gb=function(){return new KV(this)};e.mf=function(){return this.cT};e.$classData=v({zia:0},!1,"upickle.implicits.Readers$$anon$20",{zia:1,b:1,ya:1,qa:1,la:1,wa:1});function a5(a){this.fT=null;if(null===a)throw I(J(),null);this.fT=a}a5.prototype=new t;a5.prototype.constructor=a5;e=a5.prototype;e.yc=function(){return null};e.n=function(){return $O(this)}; +e.bc=function(){return aP(this)};e.ca=function(){return bP(this)};e.Gb=function(){return cP(this)};e.xc=function(){return dP(this)};e.xd=function(){return eP(this)};e.Rc=function(){return fP(this)};e.yd=function(){return gP(this)};e.Kd=function(){return hP(this)};e.Id=function(){return iP(this)};e.Hd=function(){return jP(this)};e.Jd=function(){return kP(this)};e.Mc=function(){return"expected boolean"};e.mf=function(){return this.fT};e.Qc=function(){return!1};e.Sc=function(){return!0}; +e.$classData=v({Bia:0},!1,"upickle.implicits.Readers$$anon$3",{Bia:1,b:1,ya:1,qa:1,la:1,wa:1});function b5(a){this.lT=null;if(null===a)throw I(J(),null);this.lT=a}b5.prototype=new t;b5.prototype.constructor=b5;e=b5.prototype;e.yc=function(){return null};e.Sc=function(){return YO(this)};e.Qc=function(){return ZO(this)};e.bc=function(){return aP(this)};e.ca=function(){return bP(this)};e.Gb=function(){return cP(this)};e.xc=function(){return dP(this)};e.xd=function(){return eP(this)};e.Rc=function(){return fP(this)}; +e.yd=function(){return gP(this)};e.Kd=function(){return hP(this)};e.Id=function(){return iP(this)};e.Hd=function(){return jP(this)};e.Jd=function(){return kP(this)};e.Mc=function(){return"expected string"};e.mf=function(){return this.lT};e.n=function(a){return Ma(a)};e.$classData=v({Hia:0},!1,"upickle.implicits.Readers$$anon$9",{Hia:1,b:1,ya:1,qa:1,la:1,wa:1});function c5(a,b){this.mT=null;this.Jia=b;if(null===a)throw I(J(),null);this.mT=a}c5.prototype=new t;c5.prototype.constructor=c5;e=c5.prototype; +e.yc=function(){return null};e.Sc=function(){return YO(this)};e.Qc=function(){return ZO(this)};e.bc=function(){return aP(this)};e.ca=function(){return bP(this)};e.Gb=function(){return cP(this)};e.xc=function(){return dP(this)};e.xd=function(){return eP(this)};e.Rc=function(){return fP(this)};e.yd=function(){return gP(this)};e.Kd=function(){return hP(this)};e.Id=function(){return iP(this)};e.Hd=function(){return jP(this)};e.Jd=function(){return kP(this)};e.Mc=function(){return"expected string"}; +e.n=function(a){return this.Jia.r(a)};e.mf=function(){return this.mT};e.$classData=v({Iia:0},!1,"upickle.implicits.Readers$MapStringReader",{Iia:1,b:1,ya:1,qa:1,la:1,wa:1});function TV(){}TV.prototype=new wU;TV.prototype.constructor=TV;TV.prototype.le=function(a){return null!==a&&0===os().DC(a,2)&&a.a[0]!==a.a[1]?!0:!1};TV.prototype.Lc=function(a,b){a:{if(null!==a&&0===os().DC(a,2)){var c=a.a[1];if(a.a[0]!==c){a=c;break a}}a=b.r(a)}return a}; +TV.prototype.$classData=v({bja:0},!1,"wvlet.log.LogFormatter$$anonfun$1",{bja:1,$j:1,b:1,ja:1,Ca:1,d:1});function NP(a,b,c,d){this.fI=fa;this.vx=a;this.IB=b;this.HB=c;this.cH=d;this.eI=a.Tb;this.IU=c;this.iy=this.gI=null;a=Aa();b=+(new Date).getTime();b=gs(a,b);this.fI=new p(b,a.za);Nm||(Nm=new Mm);a=hr();c=hr().HU;b=c.o;c=1+c.k|0;a.HU=new p(c,0===c?1+b|0:b);hr();d.i()||(this.gI=d.Sa())}NP.prototype=new er;NP.prototype.constructor=NP; +function tca(a){var b=a.iy;return QP().GT.QB(b,new Yc(((c,d)=>()=>{if(null===d)return"";var f=sr(d);return-1===f?d:d.substring(1+f|0)})(a,b)))}e=NP.prototype;e.A=function(){return"LogRecord"};e.B=function(){return 4};e.C=function(a){switch(a){case 0:return this.vx;case 1:return this.IB;case 2:return this.HB;case 3:return this.cH;default:return T(W(),a)}};e.v=function(){return ig(D(),this)};e.g=function(){return fy(this)}; +e.c=function(a){if(this===a)return!0;if(a instanceof NP){if(this.vx===a.vx){var b=this.IB,c=a.IB;b=null===b?null===c:b.c(c)}else b=!1;if(b&&this.HB===a.HB)return b=this.cH,a=a.cH,null===b?null===a:b.c(a)}return!1};e.$classData=v({kja:0},!1,"wvlet.log.LogRecord",{kja:1,SAa:1,b:1,y:1,m:1,d:1});v({EX:0},!1,"cats.EvalInstances$$anon$8",{EX:1,b:1,FX:1,Am:1,Hm:1,d:1,Bm:1});function d5(){}d5.prototype=new t;d5.prototype.constructor=d5;function gea(){}gea.prototype=d5.prototype;function e5(){f5=this} +e5.prototype=new t;e5.prototype.constructor=e5;e5.prototype.$classData=v({IX:0},!1,"cats.Show$",{IX:1,b:1,Lva:1,Pva:1,pwa:1,Qva:1,d:1});var f5;function ac(){f5||(f5=new e5)}function WV(){B1()}WV.prototype=new t;WV.prototype.constructor=WV;WV.prototype.$classData=v({OX:0},!1,"cats.UnorderedFoldable$$anon$1",{OX:1,b:1,kE:1,nE:1,sE:1,d:1,lE:1});function XV(){B1()}XV.prototype=new t;XV.prototype.constructor=XV; +XV.prototype.$classData=v({PX:0},!1,"cats.UnorderedFoldable$$anon$2",{PX:1,b:1,kE:1,nE:1,sE:1,d:1,lE:1});function bW(a,b){this.dk=a;this.ek=b}bW.prototype=new D1;bW.prototype.constructor=bW;e=bW.prototype;e.A=function(){return"Concat"};e.B=function(){return 2};e.C=function(a){switch(a){case 0:return this.dk;case 1:return this.ek;default:return T(W(),a)}};e.v=function(){return ig(D(),this)}; +e.c=function(a){if(this===a)return!0;if(a instanceof bW){var b=this.dk,c=a.dk;if(null===b?null===c:b.c(c))return b=this.ek,a=a.ek,null===b?null===a:b.c(a)}return!1};e.$classData=v({$X:0},!1,"cats.data.AndThen$Concat",{$X:1,YX:1,b:1,ja:1,y:1,m:1,d:1});function aW(a,b){this.Nh=a;this.Oi=b}aW.prototype=new D1;aW.prototype.constructor=aW;e=aW.prototype;e.A=function(){return"Single"};e.B=function(){return 2};e.C=function(a){switch(a){case 0:return this.Nh;case 1:return this.Oi;default:return T(W(),a)}}; +e.v=function(){var a=Ja("Single");a=W().l(-889275714,a);var b=this.Nh;b=ly(W(),b);a=W().l(a,b);b=this.Oi;a=W().l(a,b);return W().ea(a,2)};e.c=function(a){if(this===a)return!0;if(a instanceof aW&&this.Oi===a.Oi){var b=this.Nh;a=a.Nh;return null===b?null===a:b.c(a)}return!1};e.$classData=v({aY:0},!1,"cats.data.AndThen$Single",{aY:1,YX:1,b:1,ja:1,y:1,m:1,d:1});function Tb(a,b){this.hE=a;this.iE=b}Tb.prototype=new MA;Tb.prototype.constructor=Tb;Tb.prototype.A=function(){return"Append"}; +Tb.prototype.B=function(){return 2};Tb.prototype.C=function(a){switch(a){case 0:return this.hE;case 1:return this.iE;default:return T(W(),a)}};Tb.prototype.$classData=v({dY:0},!1,"cats.data.Chain$Append",{dY:1,AK:1,gE:1,b:1,y:1,m:1,d:1});function Lb(a){this.Ov=a}Lb.prototype=new MA;Lb.prototype.constructor=Lb;Lb.prototype.A=function(){return"Singleton"};Lb.prototype.B=function(){return 1};Lb.prototype.C=function(a){return 0===a?this.Ov:T(W(),a)}; +Lb.prototype.$classData=v({gY:0},!1,"cats.data.Chain$Singleton",{gY:1,AK:1,gE:1,b:1,y:1,m:1,d:1});function Nb(a){this.zs=a}Nb.prototype=new MA;Nb.prototype.constructor=Nb;Nb.prototype.A=function(){return"Wrap"};Nb.prototype.B=function(){return 1};Nb.prototype.C=function(a){return 0===a?this.zs:T(W(),a)};Nb.prototype.$classData=v({hY:0},!1,"cats.data.Chain$Wrap",{hY:1,AK:1,gE:1,b:1,y:1,m:1,d:1});function hW(){gW=this;this.Ix(new g5(this));new fW(this)}hW.prototype=new t;hW.prototype.constructor=hW; +hW.prototype.Ix=function(){};hW.prototype.$classData=v({d_:0},!1,"cats.instances.package$list$",{d_:1,b:1,DK:1,TK:1,UK:1,VK:1,EK:1});var gW;function qW(){pW=this;new oW(this)}qW.prototype=new t;qW.prototype.constructor=qW;qW.prototype.$classData=v({g_:0},!1,"cats.instances.package$stream$",{g_:1,b:1,HK:1,$K:1,aL:1,bL:1,IK:1});var pW;function tW(){sW=this;new h5(this);new rW(this)}tW.prototype=new t;tW.prototype.constructor=tW; +tW.prototype.$classData=v({h_:0},!1,"cats.instances.package$vector$",{h_:1,b:1,JK:1,dL:1,eL:1,fL:1,KK:1});var sW;function Bc(){}Bc.prototype=new oQ;Bc.prototype.constructor=Bc;Bc.prototype.$classData=v({x_:0},!1,"cats.kernel.Order$",{x_:1,Xwa:1,A_:1,mE:1,b:1,OK:1,d:1});var Ac;function We(a){this.NK=null;if(null===a)throw I(J(),null);this.NK=a}We.prototype=new t;We.prototype.constructor=We;e=We.prototype;e.uf=function(a,b){return 0>=this.$(a,b)};e.ug=function(a,b){return E4(this,a,b)}; +e.wg=function(a,b){return 0>this.$(a,b)};e.tg=function(a,b){return 0b)throw Hq("expected min \x3e\x3d 1, found: "+b);this.Bz=null}ae.prototype=new iB;ae.prototype.constructor=ae;e=ae.prototype; +e.pb=function(a){var b=this.sp.pb(a);if(null!==a.zc)return this.Bz;if(a.lg)return b=this.Az.tI(b),bg(Kd(),this.sp,-1+this.Os|0,2147483647===this.Qm?2147483647:-1+this.Qm|0,a,b)?b.OB():this.Bz;cg(Kd(),this.sp,-1+this.Os|0,2147483647===this.Qm?2147483647:-1+this.Qm|0,a);return this.Bz};e.A=function(){return"Rep"};e.B=function(){return 4};e.C=function(a){switch(a){case 0:return this.sp;case 1:return this.Os;case 2:return this.Qm;case 3:return this.Az;default:return T(W(),a)}};e.g=function(){return fy(this)}; +e.c=function(a){if(this===a)return!0;if(a instanceof ae){if(this.Os===a.Os&&this.Qm===a.Qm){var b=this.sp,c=a.sp;b=null===b?null===c:b.c(c)}else b=!1;return b?this.Az===a.Az:!1}return!1};e.$classData=v({M1:0},!1,"cats.parse.Parser$Impl$Rep",{M1:1,Yf:1,Yb:1,b:1,y:1,m:1,d:1});function Of(a,b){this.rc=0;this.cc=!1;this.$v=a;this.aw=b}Of.prototype=new iB;Of.prototype.constructor=Of;e=Of.prototype;e.A=function(){return"Select"};e.B=function(){return 2}; +e.C=function(a){switch(a){case 0:return this.$v;case 1:return this.aw;default:return T(W(),a)}};e.g=function(){return fy(this)};e.c=function(a){if(this===a)return!0;if(a instanceof Of){var b=this.$v,c=a.$v;if(null===b?null===c:b.c(c))return b=this.aw,a=a.aw,null===b?null===a:b.c(a)}return!1};e.pb=function(a){return Xf(Kd(),this.$v,this.aw,a)};e.$classData=v({O1:0},!1,"cats.parse.Parser$Impl$Select",{O1:1,Yf:1,Yb:1,b:1,y:1,m:1,d:1}); +function fe(a,b){this.rc=0;this.cc=!1;this.tp=a;this.up=b;vR(L(),a instanceof ce||b instanceof ce)}fe.prototype=new iB;fe.prototype.constructor=fe;e=fe.prototype;e.A=function(){return"SoftProd"};e.B=function(){return 2};e.C=function(a){switch(a){case 0:return this.tp;case 1:return this.up;default:return T(W(),a)}};e.g=function(){return fy(this)};e.c=function(a){if(this===a)return!0;if(a instanceof fe){var b=this.tp,c=a.tp;if(null===b?null===c:b.c(c))return b=this.up,a=a.up,null===b?null===a:b.c(a)}return!1}; +e.pb=function(a){return Vf(Kd(),this.tp,this.up,a)};e.$classData=v({Q1:0},!1,"cats.parse.Parser$Impl$SoftProd",{Q1:1,Yf:1,Yb:1,b:1,y:1,m:1,d:1});function Ge(a){this.rc=0;this.cc=!1;this.hk=a;if(""===a)throw Hq("we need a non-empty string to expect a message");}Ge.prototype=new iB;Ge.prototype.constructor=Ge;e=Ge.prototype; +e.Nl=function(a){var b=a.Xb;var c=a.ik;var d=this.hk;var f=this.hk.length|0;if(null===d)throw P();0>b||(b+f|0)>(c.length|0)||(0+f|0)>(d.length|0)?d=!1:0>=f?d=!0:(c=c.substring(b,b+f|0),d=d.substring(0,0+f|0),d=c===d);d?a.Xb=a.Xb+(this.hk.length|0)|0:(Kb(),d=this.hk,f=z().Jb,a.zc=new Lb(new $e(b,new Vb(d,f))))};e.A=function(){return"Str"};e.B=function(){return 1};e.C=function(a){return 0===a?this.hk:T(W(),a)};e.g=function(){return fy(this)}; +e.c=function(a){return this===a?!0:a instanceof Ge?this.hk===a.hk:!1};e.pb=function(a){this.Nl(a)};e.$classData=v({T1:0},!1,"cats.parse.Parser$Impl$Str",{T1:1,Yf:1,Yb:1,b:1,y:1,m:1,d:1}); +function He(a){this.rc=0;this.cc=!1;this.sL=null;this.Ps=a;if(!(2<=zf(nf(),a.Cd)))throw a=this.Ps,Hq("requirement failed: expected more than two items, found: "+zf(nf(),a.Cd));nf();if(null!==kv(0,a.Cd,"",a.gf))throw Hq("requirement failed: empty string is not allowed in alternatives");this.sL=wg(xg(),rf(sf(),(Wb(),Xb(A(),a))))}He.prototype=new iB;He.prototype.constructor=He;e=He.prototype; +e.Nl=function(a){Kd();for(var b=this.Ps,c=a.ik,d=c.length|0,f=a.Xb,g=f,h=this.sL,k=g>>1|0,K=k.a[y];if(rn?(Kb(),b=new $e(f,(Wb(),Xb(A(),b))),a.zc=new Lb(b),a.Xb= +f):a.Xb=n};e.A=function(){return"StringIn"};e.B=function(){return 1};e.C=function(a){return 0===a?this.Ps:T(W(),a)};e.g=function(){return fy(this)};e.c=function(a){if(this===a)return!0;if(a instanceof He){var b=this.Ps;a=a.Ps;return null===b?null===a:b.c(a)}return!1};e.pb=function(a){this.Nl(a)};e.$classData=v({U1:0},!1,"cats.parse.Parser$Impl$StringIn",{U1:1,Yf:1,Yb:1,b:1,y:1,m:1,d:1});function Ke(a){this.rc=0;this.cc=!1;this.cw=a}Ke.prototype=new iB;Ke.prototype.constructor=Ke;e=Ke.prototype; +e.A=function(){return"StringP"};e.B=function(){return 1};e.C=function(a){return 0===a?this.cw:T(W(),a)};e.g=function(){return fy(this)};e.c=function(a){if(this===a)return!0;if(a instanceof Ke){var b=this.cw;a=a.cw;return null===b?null===a:b.c(a)}return!1};e.pb=function(a){return Rf(Kd(),this.cw,a)};e.$classData=v({V1:0},!1,"cats.parse.Parser$Impl$StringP",{V1:1,Yf:1,Yb:1,b:1,y:1,m:1,d:1});function Fe(a){this.rc=0;this.cc=!1;this.Qs=a}Fe.prototype=new iB;Fe.prototype.constructor=Fe;e=Fe.prototype; +e.A=function(){return"Void"};e.B=function(){return 1};e.C=function(a){return 0===a?this.Qs:T(W(),a)};e.g=function(){return fy(this)};e.c=function(a){if(this===a)return!0;if(a instanceof Fe){var b=this.Qs;a=a.Qs;return null===b?null===a:b.c(a)}return!1};e.pb=function(a){Kd();var b=this.Qs,c=a.lg;a.lg=!1;b.pb(a);a.lg=c};e.$classData=v({Z1:0},!1,"cats.parse.Parser$Impl$Void",{Z1:1,Yf:1,Yb:1,b:1,y:1,m:1,d:1});function Ef(a,b){this.rc=0;this.cc=!1;this.fw=a;this.vp=b}Ef.prototype=new iB; +Ef.prototype.constructor=Ef;e=Ef.prototype;e.pb=function(a){var b=this.vp.pb(a);null!==a.zc&&(a.zc=Mb(a.zc,new C((c=>d=>new Ue(c.fw,d))(this))));return b};e.A=function(){return"WithContextP"};e.B=function(){return 2};e.C=function(a){switch(a){case 0:return this.fw;case 1:return this.vp;default:return T(W(),a)}};e.g=function(){return fy(this)};e.c=function(a){if(this===a)return!0;if(a instanceof Ef&&this.fw===a.fw){var b=this.vp;a=a.vp;return null===b?null===a:b.c(a)}return!1}; +e.$classData=v({a2:0},!1,"cats.parse.Parser$Impl$WithContextP",{a2:1,Yf:1,Yb:1,b:1,y:1,m:1,d:1});function lB(a,b,c,d,f,g){this.Oa=null;this.B2=a;this.C2=b;this.D2=c;this.E2=d;this.F2=f;this.G2=g;V4(this)}lB.prototype=new X4;lB.prototype.constructor=lB;lB.prototype.ca=function(){return new DW(this)};lB.prototype.$classData=v({z2:0},!1,"inrae.semantic_web.ConfigurationObject$GeneralSetting$$anon$4",{z2:1,$a:1,b:1,ya:1,qa:1,la:1,wa:1}); +function qB(a,b,c,d,f,g,h,k,n,r){this.Oa=null;this.M2=a;this.N2=b;this.O2=c;this.P2=d;this.Q2=f;this.R2=g;this.S2=h;this.T2=k;this.U2=n;this.V2=r;V4(this)}qB.prototype=new X4;qB.prototype.constructor=qB;qB.prototype.ca=function(){return new FW(this)};qB.prototype.$classData=v({K2:0},!1,"inrae.semantic_web.ConfigurationObject$Source$$anon$7",{K2:1,$a:1,b:1,ya:1,qa:1,la:1,wa:1});function vB(a,b){this.Oa=null;this.a3=a;this.b3=b;V4(this)}vB.prototype=new X4;vB.prototype.constructor=vB; +vB.prototype.ca=function(){return new GW(this)};vB.prototype.$classData=v({Z2:0},!1,"inrae.semantic_web.ConfigurationObject$StatementConfigurationJson$$anon$10",{Z2:1,$a:1,b:1,ya:1,qa:1,la:1,wa:1});function AB(a,b,c){this.Oa=null;this.k3=a;this.l3=b;this.m3=c;V4(this)}AB.prototype=new X4;AB.prototype.constructor=AB;AB.prototype.ca=function(){return new TX(this)};AB.prototype.$classData=v({i3:0},!1,"inrae.semantic_web.SWDiscovery$$anon$1",{i3:1,$a:1,b:1,ya:1,qa:1,la:1,wa:1}); +class Di extends rk{constructor(a){super();this.FE=a;this.EE=null;iJ(this,a,null)}A(){return"SWDiscoveryException"}B(){return 2}C(a){switch(a){case 0:return this.FE;case 1:return this.EE;default:return T(W(),a)}}v(){return ig(D(),this)}c(a){if(this===a)return!0;if(a instanceof Di&&this.FE===a.FE){var b=this.EE;a=a.EE;return null===b?null===a:b.c(a)}return!1}}Di.prototype.$classData=v({r3:0},!1,"inrae.semantic_web.SWDiscoveryException",{r3:1,ub:1,gb:1,b:1,d:1,y:1,m:1}); +function GB(a){this.Oa=null;this.B3=a;V4(this)}GB.prototype=new X4;GB.prototype.constructor=GB;GB.prototype.ca=function(){return new kY(this)};GB.prototype.$classData=v({z3:0},!1,"inrae.semantic_web.SWTransaction$$anon$1",{z3:1,$a:1,b:1,ya:1,qa:1,la:1,wa:1});function LB(a){this.Oa=null;this.L3=a;V4(this)}LB.prototype=new X4;LB.prototype.constructor=LB;LB.prototype.ca=function(){return new lY(this)}; +LB.prototype.$classData=v({J3:0},!1,"inrae.semantic_web.StatementConfiguration$$anon$13",{J3:1,$a:1,b:1,ya:1,qa:1,la:1,wa:1});class VB extends rk{constructor(a){super();this.ME=a;this.LE=null;iJ(this,a,null)}A(){return"StatementConfigurationException"}B(){return 2}C(a){switch(a){case 0:return this.ME;case 1:return this.LE;default:return T(W(),a)}}v(){return ig(D(),this)}c(a){if(this===a)return!0;if(a instanceof VB&&this.ME===a.ME){var b=this.LE;a=a.LE;return null===b?null===a:b.c(a)}return!1}} +VB.prototype.$classData=v({N3:0},!1,"inrae.semantic_web.StatementConfigurationException",{N3:1,ub:1,gb:1,b:1,d:1,y:1,m:1});function m5(a,b,c,d,f,g,h){this.vM=this.uM=this.Rz=null;this.TE=a;this.mw=b;this.Qz=c;this.lw=d;this.UE=f;this.VE=g;this.WE=h;wh(this);this.Rz=Aw()}m5.prototype=new t;m5.prototype.constructor=m5;e=m5.prototype;e.sH=function(){return this.Rz};e.Vx=function(){return this.uM};e.Ux=function(a){this.uM=a};e.IH=function(){return this.vM};e.HH=function(a){this.vM=a}; +e.dV=function(a){var b=0<(this.mw.length|0);if(!0===b)b=Uw(Ow(),new Yc((c=>()=>YB(cC(),c.mw,c.lw))(this)),this.Rz);else{if(!1!==b)throw new B(b);b=gC(cC(),this.Qz,this.lw)}return kC(b,new C(((c,d)=>f=>{var g=cC();z();f=Af(new Bf,[f]);return hC(g,d,Xb(A(),f))})(this,a)),this.Rz)};e.A=function(){return"ComunicaRequestDriver"};e.B=function(){return 7}; +e.C=function(a){switch(a){case 0:return this.TE;case 1:return this.mw;case 2:return this.Qz;case 3:return this.lw;case 4:return this.UE;case 5:return this.VE;case 6:return this.WE;default:return T(W(),a)}};e.v=function(){return ig(D(),this)};e.g=function(){return fy(this)};e.c=function(a){return this===a?!0:a instanceof m5?this.TE===a.TE&&this.mw===a.mw&&this.Qz===a.Qz&&this.lw===a.lw&&this.UE===a.UE&&this.VE===a.VE&&this.WE===a.WE:!1}; +e.$classData=v({T3:0},!1,"inrae.semantic_web.driver.ComunicaRequestDriver",{T3:1,b:1,X3:1,Yz:1,y:1,m:1,d:1});class n5 extends rk{constructor(a){super();this.YE=a;this.XE=null;iJ(this,a,null)}A(){return"HttpRequestDriverException"}B(){return 2}C(a){switch(a){case 0:return this.YE;case 1:return this.XE;default:return T(W(),a)}}v(){return ig(D(),this)}c(a){if(this===a)return!0;if(a instanceof n5&&this.YE===a.YE){var b=this.XE;a=a.XE;return null===b?null===a:b.c(a)}return!1}} +n5.prototype.$classData=v({W3:0},!1,"inrae.semantic_web.driver.HttpRequestDriverException",{W3:1,ub:1,gb:1,b:1,d:1,y:1,m:1});function tC(a,b,c){this.Oa=null;this.f4=a;this.g4=b;this.h4=c;V4(this)}tC.prototype=new X4;tC.prototype.constructor=tC;tC.prototype.ca=function(){return new mY(this)};tC.prototype.$classData=v({d4:0},!1,"inrae.semantic_web.node.Abs$$anon$109",{d4:1,$a:1,b:1,ya:1,qa:1,la:1,wa:1});function FC(a,b,c,d){this.Oa=null;this.o4=a;this.p4=b;this.q4=c;this.r4=d;V4(this)} +FC.prototype=new X4;FC.prototype.constructor=FC;FC.prototype.ca=function(){return new oY(this)};FC.prototype.$classData=v({m4:0},!1,"inrae.semantic_web.node.Bind$$anon$97",{m4:1,$a:1,b:1,ya:1,qa:1,la:1,wa:1});function KC(a,b,c){this.Oa=null;this.y4=a;this.z4=b;this.A4=c;V4(this)}KC.prototype=new X4;KC.prototype.constructor=KC;KC.prototype.ca=function(){return new rY(this)};KC.prototype.$classData=v({w4:0},!1,"inrae.semantic_web.node.Ceil$$anon$115",{w4:1,$a:1,b:1,ya:1,qa:1,la:1,wa:1}); +function ek(a,b,c,d,f){this.V=this.U=this.D=null;this.ba=!1;this.an=a;this.Fp=c;this.Zm=d;this.$m=f;sD(this,b,c,d,f)}ek.prototype=new tD;ek.prototype.constructor=ek;e=ek.prototype;e.La=function(){return this.Fp};e.Ja=function(){return this.Zm};e.kb=function(){return this.$m};e.g=function(){return""+this.ba+" Contains ("+this.an+")"};e.A=function(){return"Contains"};e.B=function(){return 5}; +e.C=function(a){switch(a){case 0:return this.an;case 1:return this.ba;case 2:return this.Fp;case 3:return this.Zm;case 4:return this.$m;default:return T(W(),a)}};e.v=function(){var a=Ja("Contains");a=W().l(-889275714,a);var b=this.an;b=ly(W(),b);a=W().l(a,b);b=this.ba?1231:1237;a=W().l(a,b);b=this.Fp;b=ly(W(),b);a=W().l(a,b);b=this.Zm;b=ly(W(),b);a=W().l(a,b);b=this.$m;b=ly(W(),b);a=W().l(a,b);return W().ea(a,5)}; +e.c=function(a){if(this===a)return!0;if(a instanceof ek){if(this.ba===a.ba){var b=this.an,c=a.an;b=null===b?null===c:b.c(c)}else b=!1;if(b&&this.Fp===a.Fp&&(b=this.Zm,c=a.Zm,null===b?null===c:b.c(c)))return b=this.$m,a=a.$m,null===b?null===a:b.c(a)}return!1};e.sb=function(a,b){return new ek(this.an,this.ba,this.Fp,a,b)};var RC=v({C4:0},!1,"inrae.semantic_web.node.Contains",{C4:1,Si:1,vb:1,b:1,y:1,m:1,d:1});ek.prototype.$classData=RC; +function PC(a,b,c,d,f){this.Oa=null;this.G4=a;this.H4=b;this.I4=c;this.J4=d;this.K4=f;V4(this)}PC.prototype=new X4;PC.prototype.constructor=PC;PC.prototype.ca=function(){return new sY(this)};PC.prototype.$classData=v({E4:0},!1,"inrae.semantic_web.node.Contains$$anon$43",{E4:1,$a:1,b:1,ya:1,qa:1,la:1,wa:1});function Rj(a,b,c,d,f){this.V=this.U=this.D=null;this.Hp=a;this.ol=b;this.Gp=c;this.bn=d;this.cn=f;wi(this,c,d,f)}Rj.prototype=new CC;Rj.prototype.constructor=Rj;e=Rj.prototype;e.La=function(){return this.Gp}; +e.Ja=function(){return this.bn};e.kb=function(){return this.cn};e.sb=function(a,b){return new Rj(this.Hp,this.ol,this.Gp,a,b)};e.A=function(){return"Count"};e.B=function(){return 5};e.C=function(a){switch(a){case 0:return this.Hp;case 1:return this.ol;case 2:return this.Gp;case 3:return this.bn;case 4:return this.cn;default:return T(W(),a)}}; +e.v=function(){var a=Ja("Count");a=W().l(-889275714,a);var b=this.Hp;b=ly(W(),b);a=W().l(a,b);b=this.ol?1231:1237;a=W().l(a,b);b=this.Gp;b=ly(W(),b);a=W().l(a,b);b=this.bn;b=ly(W(),b);a=W().l(a,b);b=this.cn;b=ly(W(),b);a=W().l(a,b);return W().ea(a,5)};e.c=function(a){if(this===a)return!0;if(a instanceof Rj){if(this.ol===a.ol){var b=this.Hp,c=a.Hp;b=null===b?null===c:b.c(c)}else b=!1;if(b&&this.Gp===a.Gp&&(b=this.bn,c=a.bn,null===b?null===c:b.c(c)))return b=this.cn,a=a.cn,null===b?null===a:b.c(a)}return!1}; +var WC=v({M4:0},!1,"inrae.semantic_web.node.Count",{M4:1,Mza:1,vb:1,b:1,y:1,m:1,d:1});Rj.prototype.$classData=WC;function UC(a,b,c,d,f){this.Oa=null;this.Q4=a;this.R4=b;this.S4=c;this.T4=d;this.U4=f;V4(this)}UC.prototype=new X4;UC.prototype.constructor=UC;UC.prototype.ca=function(){return new tY(this)};UC.prototype.$classData=v({O4:0},!1,"inrae.semantic_web.node.Count$$anon$130",{O4:1,$a:1,b:1,ya:1,qa:1,la:1,wa:1});function ZC(a,b,c){this.Oa=null;this.$4=a;this.a5=b;this.b5=c;V4(this)} +ZC.prototype=new X4;ZC.prototype.constructor=ZC;ZC.prototype.ca=function(){return new uY(this)};ZC.prototype.$classData=v({Y4:0},!1,"inrae.semantic_web.node.Datatype$$anon$124",{Y4:1,$a:1,b:1,ya:1,qa:1,la:1,wa:1});function dD(a,b,c,d,f){this.Oa=null;this.h5=a;this.i5=b;this.j5=c;this.k5=d;this.l5=f;V4(this)}dD.prototype=new X4;dD.prototype.constructor=dD;dD.prototype.ca=function(){return new vY(this)}; +dD.prototype.$classData=v({f5:0},!1,"inrae.semantic_web.node.DatatypeNode$$anon$70",{f5:1,$a:1,b:1,ya:1,qa:1,la:1,wa:1});function Aj(a,b,c){this.V=this.U=this.D=null;this.Kp=b;this.Lp=c;wi(this,a,b,c)}Aj.prototype=new MF;Aj.prototype.constructor=Aj;e=Aj.prototype;e.La=function(){return this.D};e.Ja=function(){return this.Kp};e.kb=function(){return this.Lp};e.sb=function(a,b){return new Aj(this.D,a,b)};e.A=function(){return"Distinct"};e.B=function(){return 3}; +e.C=function(a){switch(a){case 0:return this.D;case 1:return this.Kp;case 2:return this.Lp;default:return T(W(),a)}};e.v=function(){return ig(D(),this)};e.c=function(a){if(this===a)return!0;if(a instanceof Aj&&this.D===a.D){var b=this.Kp,c=a.Kp;if(null===b?null===c:b.c(c))return b=this.Lp,a=a.Lp,null===b?null===a:b.c(a)}return!1};var kD=v({n5:0},!1,"inrae.semantic_web.node.Distinct",{n5:1,st:1,vb:1,b:1,y:1,m:1,d:1});Aj.prototype.$classData=kD; +function iD(a,b,c){this.Oa=null;this.r5=a;this.s5=b;this.t5=c;V4(this)}iD.prototype=new X4;iD.prototype.constructor=iD;iD.prototype.ca=function(){return new wY(this)};iD.prototype.$classData=v({p5:0},!1,"inrae.semantic_web.node.Distinct$$anon$85",{p5:1,$a:1,b:1,ya:1,qa:1,la:1,wa:1});function hk(a,b,c,d,f){this.V=this.U=this.D=null;this.ba=!1;this.gn=a;this.Mp=c;this.en=d;this.fn=f;sD(this,b,c,d,f)}hk.prototype=new tD;hk.prototype.constructor=hk;e=hk.prototype;e.La=function(){return this.Mp}; +e.Ja=function(){return this.en};e.kb=function(){return this.fn};e.g=function(){return""+this.ba+" \x3d\x3d "+this.gn};e.A=function(){return"Equal"};e.B=function(){return 5};e.C=function(a){switch(a){case 0:return this.gn;case 1:return this.ba;case 2:return this.Mp;case 3:return this.en;case 4:return this.fn;default:return T(W(),a)}}; +e.v=function(){var a=Ja("Equal");a=W().l(-889275714,a);var b=this.gn;b=ly(W(),b);a=W().l(a,b);b=this.ba?1231:1237;a=W().l(a,b);b=this.Mp;b=ly(W(),b);a=W().l(a,b);b=this.en;b=ly(W(),b);a=W().l(a,b);b=this.fn;b=ly(W(),b);a=W().l(a,b);return W().ea(a,5)};e.c=function(a){if(this===a)return!0;if(a instanceof hk){if(this.ba===a.ba){var b=this.gn,c=a.gn;b=null===b?null===c:b.c(c)}else b=!1;if(b&&this.Mp===a.Mp&&(b=this.en,c=a.en,null===b?null===c:b.c(c)))return b=this.fn,a=a.fn,null===b?null===a:b.c(a)}return!1}; +e.sb=function(a,b){return new hk(this.gn,this.ba,this.Mp,a,b)};var pD=v({v5:0},!1,"inrae.semantic_web.node.Equal",{v5:1,Si:1,vb:1,b:1,y:1,m:1,d:1});hk.prototype.$classData=pD;function nD(a,b,c,d,f){this.Oa=null;this.z5=a;this.A5=b;this.B5=c;this.C5=d;this.D5=f;V4(this)}nD.prototype=new X4;nD.prototype.constructor=nD;nD.prototype.ca=function(){return new xY(this)};nD.prototype.$classData=v({x5:0},!1,"inrae.semantic_web.node.Equal$$anon$52",{x5:1,$a:1,b:1,ya:1,qa:1,la:1,wa:1}); +function wD(a,b,c){this.Oa=null;this.L5=a;this.M5=b;this.N5=c;V4(this)}wD.prototype=new X4;wD.prototype.constructor=wD;wD.prototype.ca=function(){return new yY(this)};wD.prototype.$classData=v({J5:0},!1,"inrae.semantic_web.node.Floor$$anon$118",{J5:1,$a:1,b:1,ya:1,qa:1,la:1,wa:1});function jk(a,b,c,d,f){this.V=this.U=this.D=null;this.ba=!1;this.nn=a;this.Qp=c;this.ln=d;this.mn=f;sD(this,b,c,d,f)}jk.prototype=new tD;jk.prototype.constructor=jk;e=jk.prototype;e.La=function(){return this.Qp};e.Ja=function(){return this.ln}; +e.kb=function(){return this.mn};e.g=function(){return""+this.ba+" \x3c "+this.nn};e.A=function(){return"Inf"};e.B=function(){return 5};e.C=function(a){switch(a){case 0:return this.nn;case 1:return this.ba;case 2:return this.Qp;case 3:return this.ln;case 4:return this.mn;default:return T(W(),a)}}; +e.v=function(){var a=Ja("Inf");a=W().l(-889275714,a);var b=this.nn;b=ly(W(),b);a=W().l(a,b);b=this.ba?1231:1237;a=W().l(a,b);b=this.Qp;b=ly(W(),b);a=W().l(a,b);b=this.ln;b=ly(W(),b);a=W().l(a,b);b=this.mn;b=ly(W(),b);a=W().l(a,b);return W().ea(a,5)};e.c=function(a){if(this===a)return!0;if(a instanceof jk){if(this.ba===a.ba){var b=this.nn,c=a.nn;b=null===b?null===c:b.c(c)}else b=!1;if(b&&this.Qp===a.Qp&&(b=this.ln,c=a.ln,null===b?null===c:b.c(c)))return b=this.mn,a=a.mn,null===b?null===a:b.c(a)}return!1}; +e.sb=function(a,b){return new jk(this.nn,this.ba,this.Qp,a,b)};var DD=v({T5:0},!1,"inrae.semantic_web.node.Inf",{T5:1,Si:1,vb:1,b:1,y:1,m:1,d:1});jk.prototype.$classData=DD;function BD(a,b,c,d,f){this.Oa=null;this.X5=a;this.Y5=b;this.Z5=c;this.$5=d;this.a6=f;V4(this)}BD.prototype=new X4;BD.prototype.constructor=BD;BD.prototype.ca=function(){return new FY(this)};BD.prototype.$classData=v({V5:0},!1,"inrae.semantic_web.node.Inf$$anon$58",{V5:1,$a:1,b:1,ya:1,qa:1,la:1,wa:1}); +function kk(a,b,c,d,f){this.V=this.U=this.D=null;this.ba=!1;this.kn=a;this.Pp=c;this.hn=d;this.jn=f;sD(this,b,c,d,f)}kk.prototype=new tD;kk.prototype.constructor=kk;e=kk.prototype;e.La=function(){return this.Pp};e.Ja=function(){return this.hn};e.kb=function(){return this.jn};e.g=function(){return""+this.ba+" \x3c\x3d "+this.kn};e.A=function(){return"InfEqual"};e.B=function(){return 5}; +e.C=function(a){switch(a){case 0:return this.kn;case 1:return this.ba;case 2:return this.Pp;case 3:return this.hn;case 4:return this.jn;default:return T(W(),a)}};e.v=function(){var a=Ja("InfEqual");a=W().l(-889275714,a);var b=this.kn;b=ly(W(),b);a=W().l(a,b);b=this.ba?1231:1237;a=W().l(a,b);b=this.Pp;b=ly(W(),b);a=W().l(a,b);b=this.hn;b=ly(W(),b);a=W().l(a,b);b=this.jn;b=ly(W(),b);a=W().l(a,b);return W().ea(a,5)}; +e.c=function(a){if(this===a)return!0;if(a instanceof kk){if(this.ba===a.ba){var b=this.kn,c=a.kn;b=null===b?null===c:b.c(c)}else b=!1;if(b&&this.Pp===a.Pp&&(b=this.hn,c=a.hn,null===b?null===c:b.c(c)))return b=this.jn,a=a.jn,null===b?null===a:b.c(a)}return!1};e.sb=function(a,b){return new kk(this.kn,this.ba,this.Pp,a,b)};var ID=v({c6:0},!1,"inrae.semantic_web.node.InfEqual",{c6:1,Si:1,vb:1,b:1,y:1,m:1,d:1});kk.prototype.$classData=ID; +function GD(a,b,c,d,f){this.Oa=null;this.g6=a;this.h6=b;this.i6=c;this.j6=d;this.k6=f;V4(this)}GD.prototype=new X4;GD.prototype.constructor=GD;GD.prototype.ca=function(){return new GY(this)};GD.prototype.$classData=v({e6:0},!1,"inrae.semantic_web.node.InfEqual$$anon$61",{e6:1,$a:1,b:1,ya:1,qa:1,la:1,wa:1});function LD(a,b,c,d){this.Oa=null;this.q6=a;this.r6=b;this.s6=c;this.t6=d;V4(this)}LD.prototype=new X4;LD.prototype.constructor=LD;LD.prototype.ca=function(){return new HY(this)}; +LD.prototype.$classData=v({o6:0},!1,"inrae.semantic_web.node.Lang$$anon$136",{o6:1,$a:1,b:1,ya:1,qa:1,la:1,wa:1});function QD(a,b,c,d){this.Oa=null;this.z6=a;this.A6=b;this.B6=c;this.C6=d;V4(this)}QD.prototype=new X4;QD.prototype.constructor=QD;QD.prototype.ca=function(){return new IY(this)};QD.prototype.$classData=v({x6:0},!1,"inrae.semantic_web.node.LangMatches$$anon$139",{x6:1,$a:1,b:1,ya:1,qa:1,la:1,wa:1}); +function Gj(a,b,c,d){this.V=this.U=this.D=null;this.rn=a;this.pn=c;this.qn=d;wi(this,b,c,d)}Gj.prototype=new MF;Gj.prototype.constructor=Gj;e=Gj.prototype;e.La=function(){return this.D};e.Ja=function(){return this.pn};e.kb=function(){return this.qn};e.sb=function(a,b){return new Gj(this.rn,this.D,a,b)};e.A=function(){return"Limit"};e.B=function(){return 4};e.C=function(a){switch(a){case 0:return this.rn;case 1:return this.D;case 2:return this.pn;case 3:return this.qn;default:return T(W(),a)}}; +e.v=function(){var a=Ja("Limit");a=W().l(-889275714,a);var b=this.rn;a=W().l(a,b);b=this.D;b=ly(W(),b);a=W().l(a,b);b=this.pn;b=ly(W(),b);a=W().l(a,b);b=this.qn;b=ly(W(),b);a=W().l(a,b);return W().ea(a,4)};e.c=function(a){if(this===a)return!0;if(a instanceof Gj&&this.rn===a.rn&&this.D===a.D){var b=this.pn,c=a.pn;if(null===b?null===c:b.c(c))return b=this.qn,a=a.qn,null===b?null===a:b.c(a)}return!1};var XD=v({E6:0},!1,"inrae.semantic_web.node.Limit",{E6:1,st:1,vb:1,b:1,y:1,m:1,d:1}); +Gj.prototype.$classData=XD;function VD(a,b,c,d){this.Oa=null;this.I6=a;this.J6=b;this.K6=c;this.L6=d;V4(this)}VD.prototype=new X4;VD.prototype.constructor=VD;VD.prototype.ca=function(){return new JY(this)};VD.prototype.$classData=v({G6:0},!1,"inrae.semantic_web.node.Limit$$anon$94",{G6:1,$a:1,b:1,ya:1,qa:1,la:1,wa:1});function $D(a,b,c,d){this.Oa=null;this.R6=a;this.S6=b;this.T6=c;this.U6=d;V4(this)}$D.prototype=new X4;$D.prototype.constructor=$D;$D.prototype.ca=function(){return new KY(this)}; +$D.prototype.$classData=v({P6:0},!1,"inrae.semantic_web.node.LinkFrom$$anon$16",{P6:1,$a:1,b:1,ya:1,qa:1,la:1,wa:1});function fE(a,b,c,d){this.Oa=null;this.$6=a;this.a7=b;this.b7=c;this.c7=d;V4(this)}fE.prototype=new X4;fE.prototype.constructor=fE;fE.prototype.ca=function(){return new LY(this)};fE.prototype.$classData=v({Y6:0},!1,"inrae.semantic_web.node.LinkTo$$anon$13",{Y6:1,$a:1,b:1,ya:1,qa:1,la:1,wa:1});function kE(a,b,c,d){this.Oa=null;this.i7=a;this.j7=b;this.k7=c;this.l7=d;V4(this)} +kE.prototype=new X4;kE.prototype.constructor=kE;kE.prototype.ca=function(){return new MY(this)};kE.prototype.$classData=v({g7:0},!1,"inrae.semantic_web.node.ListValues$$anon$22",{g7:1,$a:1,b:1,ya:1,qa:1,la:1,wa:1});function Ak(a,b,c,d){this.gF=this.Rh=this.V=this.U=this.D=null;this.Xp=c;this.Yp=d;nE(this,b,a,c,d)}Ak.prototype=new pE;Ak.prototype.constructor=Ak;e=Ak.prototype;e.La=function(){return this.D};e.Ja=function(){return this.Xp};e.kb=function(){return this.Yp};e.A=function(){return"NotBlock"}; +e.B=function(){return 4};e.C=function(a){switch(a){case 0:return this.D;case 1:return this.Rh;case 2:return this.Xp;case 3:return this.Yp;default:return T(W(),a)}};e.v=function(){return ig(D(),this)};e.c=function(a){if(this===a)return!0;if(a instanceof Ak){if(this.D===a.D){var b=this.Rh,c=a.Rh;b=null===b?null===c:b.c(c)}else b=!1;if(b&&(b=this.Xp,c=a.Xp,null===b?null===c:b.c(c)))return b=this.Yp,a=a.Yp,null===b?null===a:b.c(a)}return!1};e.sb=function(a,b){return new Ak(this.D,this.Rh,a,b)}; +var uE=v({q7:0},!1,"inrae.semantic_web.node.NotBlock",{q7:1,n7:1,vb:1,b:1,y:1,m:1,d:1});Ak.prototype.$classData=uE;function sE(a,b,c,d){this.Oa=null;this.u7=a;this.v7=b;this.w7=c;this.x7=d;V4(this)}sE.prototype=new X4;sE.prototype.constructor=sE;sE.prototype.ca=function(){return new NY(this)};sE.prototype.$classData=v({s7:0},!1,"inrae.semantic_web.node.NotBlock$$anon$28",{s7:1,$a:1,b:1,ya:1,qa:1,la:1,wa:1}); +function ik(a,b,c,d,f){this.V=this.U=this.D=null;this.ba=!1;this.un=a;this.Zp=c;this.sn=d;this.tn=f;sD(this,b,c,d,f)}ik.prototype=new tD;ik.prototype.constructor=ik;e=ik.prototype;e.La=function(){return this.Zp};e.Ja=function(){return this.sn};e.kb=function(){return this.tn};e.g=function(){return""+this.ba+" \x3d\x3d "+this.un};e.A=function(){return"NotEqual"};e.B=function(){return 5}; +e.C=function(a){switch(a){case 0:return this.un;case 1:return this.ba;case 2:return this.Zp;case 3:return this.sn;case 4:return this.tn;default:return T(W(),a)}};e.v=function(){var a=Ja("NotEqual");a=W().l(-889275714,a);var b=this.un;b=ly(W(),b);a=W().l(a,b);b=this.ba?1231:1237;a=W().l(a,b);b=this.Zp;b=ly(W(),b);a=W().l(a,b);b=this.sn;b=ly(W(),b);a=W().l(a,b);b=this.tn;b=ly(W(),b);a=W().l(a,b);return W().ea(a,5)}; +e.c=function(a){if(this===a)return!0;if(a instanceof ik){if(this.ba===a.ba){var b=this.un,c=a.un;b=null===b?null===c:b.c(c)}else b=!1;if(b&&this.Zp===a.Zp&&(b=this.sn,c=a.sn,null===b?null===c:b.c(c)))return b=this.tn,a=a.tn,null===b?null===a:b.c(a)}return!1};e.sb=function(a,b){return new ik(this.un,this.ba,this.Zp,a,b)};var zE=v({z7:0},!1,"inrae.semantic_web.node.NotEqual",{z7:1,Si:1,vb:1,b:1,y:1,m:1,d:1});ik.prototype.$classData=zE; +function xE(a,b,c,d,f){this.Oa=null;this.D7=a;this.E7=b;this.F7=c;this.G7=d;this.H7=f;V4(this)}xE.prototype=new X4;xE.prototype.constructor=xE;xE.prototype.ca=function(){return new OY(this)};xE.prototype.$classData=v({B7:0},!1,"inrae.semantic_web.node.NotEqual$$anon$55",{B7:1,$a:1,b:1,ya:1,qa:1,la:1,wa:1});function CE(a,b,c,d){this.Oa=null;this.N7=a;this.O7=b;this.P7=c;this.Q7=d;V4(this)}CE.prototype=new X4;CE.prototype.constructor=CE;CE.prototype.ca=function(){return new PY(this)}; +CE.prototype.$classData=v({L7:0},!1,"inrae.semantic_web.node.ObjectOf$$anon$10",{L7:1,$a:1,b:1,ya:1,qa:1,la:1,wa:1});function Hj(a,b,c,d){this.V=this.U=this.D=null;this.xn=a;this.vn=c;this.wn=d;wi(this,b,c,d)}Hj.prototype=new MF;Hj.prototype.constructor=Hj;e=Hj.prototype;e.La=function(){return this.D};e.Ja=function(){return this.vn};e.kb=function(){return this.wn};e.sb=function(a,b){return new Hj(this.xn,this.D,a,b)};e.A=function(){return"Offset"};e.B=function(){return 4}; +e.C=function(a){switch(a){case 0:return this.xn;case 1:return this.D;case 2:return this.vn;case 3:return this.wn;default:return T(W(),a)}};e.v=function(){var a=Ja("Offset");a=W().l(-889275714,a);var b=this.xn;a=W().l(a,b);b=this.D;b=ly(W(),b);a=W().l(a,b);b=this.vn;b=ly(W(),b);a=W().l(a,b);b=this.wn;b=ly(W(),b);a=W().l(a,b);return W().ea(a,4)}; +e.c=function(a){if(this===a)return!0;if(a instanceof Hj&&this.xn===a.xn&&this.D===a.D){var b=this.vn,c=a.vn;if(null===b?null===c:b.c(c))return b=this.wn,a=a.wn,null===b?null===a:b.c(a)}return!1};var JE=v({S7:0},!1,"inrae.semantic_web.node.Offset",{S7:1,st:1,vb:1,b:1,y:1,m:1,d:1});Hj.prototype.$classData=JE;function HE(a,b,c,d){this.Oa=null;this.W7=a;this.X7=b;this.Y7=c;this.Z7=d;V4(this)}HE.prototype=new X4;HE.prototype.constructor=HE;HE.prototype.ca=function(){return new QY(this)}; +HE.prototype.$classData=v({U7:0},!1,"inrae.semantic_web.node.Offset$$anon$91",{U7:1,$a:1,b:1,ya:1,qa:1,la:1,wa:1});function Ej(a,b,c,d){this.V=this.U=this.D=null;this.bq=a;this.$p=c;this.aq=d;wi(this,b,c,d)}Ej.prototype=new MF;Ej.prototype.constructor=Ej;e=Ej.prototype;e.La=function(){return this.D};e.Ja=function(){return this.$p};e.kb=function(){return this.aq};e.sb=function(a,b){return new Ej(this.bq,this.D,a,b)};e.A=function(){return"OrderByAsc"};e.B=function(){return 4}; +e.C=function(a){switch(a){case 0:return this.bq;case 1:return this.D;case 2:return this.$p;case 3:return this.aq;default:return T(W(),a)}};e.v=function(){return ig(D(),this)};e.c=function(a){if(this===a)return!0;if(a instanceof Ej){var b=this.bq,c=a.bq;if((null===b?null===c:b.c(c))&&this.D===a.D&&(b=this.$p,c=a.$p,null===b?null===c:b.c(c)))return b=this.aq,a=a.aq,null===b?null===a:b.c(a)}return!1};var OE=v({a8:0},!1,"inrae.semantic_web.node.OrderByAsc",{a8:1,st:1,vb:1,b:1,y:1,m:1,d:1}); +Ej.prototype.$classData=OE;function ME(a,b,c,d){this.Oa=null;this.e8=a;this.f8=b;this.g8=c;this.h8=d;V4(this)}ME.prototype=new X4;ME.prototype.constructor=ME;ME.prototype.ca=function(){return new RY(this)};ME.prototype.$classData=v({c8:0},!1,"inrae.semantic_web.node.OrderByAsc$$anon$76",{c8:1,$a:1,b:1,ya:1,qa:1,la:1,wa:1});function Fj(a,b,c,d){this.V=this.U=this.D=null;this.eq=a;this.cq=c;this.dq=d;wi(this,b,c,d)}Fj.prototype=new MF;Fj.prototype.constructor=Fj;e=Fj.prototype;e.La=function(){return this.D}; +e.Ja=function(){return this.cq};e.kb=function(){return this.dq};e.sb=function(a){var b=this.eq,c=this.D;dj();L();var d=A();return new Fj(b,c,a,M(0,d))};e.A=function(){return"OrderByDesc"};e.B=function(){return 4};e.C=function(a){switch(a){case 0:return this.eq;case 1:return this.D;case 2:return this.cq;case 3:return this.dq;default:return T(W(),a)}};e.v=function(){return ig(D(),this)}; +e.c=function(a){if(this===a)return!0;if(a instanceof Fj){var b=this.eq,c=a.eq;if((null===b?null===c:b.c(c))&&this.D===a.D&&(b=this.cq,c=a.cq,null===b?null===c:b.c(c)))return b=this.dq,a=a.dq,null===b?null===a:b.c(a)}return!1};var TE=v({j8:0},!1,"inrae.semantic_web.node.OrderByDesc",{j8:1,st:1,vb:1,b:1,y:1,m:1,d:1});Fj.prototype.$classData=TE;function RE(a,b,c,d){this.Oa=null;this.n8=a;this.o8=b;this.p8=c;this.q8=d;V4(this)}RE.prototype=new X4;RE.prototype.constructor=RE;RE.prototype.ca=function(){return new SY(this)}; +RE.prototype.$classData=v({l8:0},!1,"inrae.semantic_web.node.OrderByDesc$$anon$79",{l8:1,$a:1,b:1,ya:1,qa:1,la:1,wa:1});function Dj(a,b,c,d){this.V=this.U=this.D=null;this.Fj=a;this.ql=c;this.yn=d;wi(this,b,c,d)}Dj.prototype=new MF;Dj.prototype.constructor=Dj;e=Dj.prototype;e.La=function(){return this.D};e.Ja=function(){return this.ql};e.kb=function(){return this.yn};e.Vh=function(a){return a instanceof Qj};e.sb=function(a,b){return new Dj(this.Fj,this.D,a,b)};e.A=function(){return"Projection"}; +e.B=function(){return 4};e.C=function(a){switch(a){case 0:return this.Fj;case 1:return this.D;case 2:return this.ql;case 3:return this.yn;default:return T(W(),a)}};e.v=function(){return ig(D(),this)};e.c=function(a){if(this===a)return!0;if(a instanceof Dj){var b=this.Fj,c=a.Fj;if((null===b?null===c:b.c(c))&&this.D===a.D&&(b=this.ql,c=a.ql,null===b?null===c:b.c(c)))return b=this.yn,a=a.yn,null===b?null===a:b.c(a)}return!1}; +var YE=v({t8:0},!1,"inrae.semantic_web.node.Projection",{t8:1,st:1,vb:1,b:1,y:1,m:1,d:1});Dj.prototype.$classData=YE;function WE(a,b,c,d){this.Oa=null;this.x8=a;this.y8=b;this.z8=c;this.A8=d;V4(this)}WE.prototype=new X4;WE.prototype.constructor=WE;WE.prototype.ca=function(){return new TY(this)};WE.prototype.$classData=v({v8:0},!1,"inrae.semantic_web.node.Projection$$anon$82",{v8:1,$a:1,b:1,ya:1,qa:1,la:1,wa:1}); +function aF(a,b,c,d,f){this.Oa=null;this.G8=a;this.H8=b;this.I8=c;this.J8=d;this.K8=f;V4(this)}aF.prototype=new X4;aF.prototype.constructor=aF;aF.prototype.ca=function(){return new UY(this)};aF.prototype.$classData=v({E8:0},!1,"inrae.semantic_web.node.ProjectionExpression$$anon$127",{E8:1,$a:1,b:1,ya:1,qa:1,la:1,wa:1});function fF(a,b,c){this.Oa=null;this.Q8=a;this.R8=b;this.S8=c;V4(this)}fF.prototype=new X4;fF.prototype.constructor=fF;fF.prototype.ca=function(){return new VY(this)}; +fF.prototype.$classData=v({O8:0},!1,"inrae.semantic_web.node.Rand$$anon$121",{O8:1,$a:1,b:1,ya:1,qa:1,la:1,wa:1});function Cj(a,b,c){this.V=this.U=this.D=null;this.hq=b;this.iq=c;wi(this,a,b,c)}Cj.prototype=new MF;Cj.prototype.constructor=Cj;e=Cj.prototype;e.La=function(){return this.D};e.Ja=function(){return this.hq};e.kb=function(){return this.iq};e.sb=function(a,b){return new Cj(this.D,a,b)};e.A=function(){return"Reduced"};e.B=function(){return 3}; +e.C=function(a){switch(a){case 0:return this.D;case 1:return this.hq;case 2:return this.iq;default:return T(W(),a)}};e.v=function(){return ig(D(),this)};e.c=function(a){if(this===a)return!0;if(a instanceof Cj&&this.D===a.D){var b=this.hq,c=a.hq;if(null===b?null===c:b.c(c))return b=this.iq,a=a.iq,null===b?null===a:b.c(a)}return!1};var oF=v({V8:0},!1,"inrae.semantic_web.node.Reduced",{V8:1,st:1,vb:1,b:1,y:1,m:1,d:1});Cj.prototype.$classData=oF; +function mF(a,b,c){this.Oa=null;this.Z8=a;this.$8=b;this.a9=c;V4(this)}mF.prototype=new X4;mF.prototype.constructor=mF;mF.prototype.ca=function(){return new WY(this)};mF.prototype.$classData=v({X8:0},!1,"inrae.semantic_web.node.Reduced$$anon$88",{X8:1,$a:1,b:1,ya:1,qa:1,la:1,wa:1});function dk(a,b,c,d,f,g){this.V=this.U=this.D=null;this.ba=!1;this.mq=a;this.kq=b;this.lq=d;this.zn=f;this.An=g;sD(this,c,d,f,g)}dk.prototype=new tD;dk.prototype.constructor=dk;e=dk.prototype;e.La=function(){return this.lq}; +e.Ja=function(){return this.zn};e.kb=function(){return this.An};e.sb=function(a,b){return new dk(this.mq,this.kq,this.ba,this.lq,a,b)};e.A=function(){return"Regex"};e.B=function(){return 6};e.C=function(a){switch(a){case 0:return this.mq;case 1:return this.kq;case 2:return this.ba;case 3:return this.lq;case 4:return this.zn;case 5:return this.An;default:return T(W(),a)}}; +e.v=function(){var a=Ja("Regex");a=W().l(-889275714,a);var b=this.mq;b=ly(W(),b);a=W().l(a,b);b=this.kq;b=ly(W(),b);a=W().l(a,b);b=this.ba?1231:1237;a=W().l(a,b);b=this.lq;b=ly(W(),b);a=W().l(a,b);b=this.zn;b=ly(W(),b);a=W().l(a,b);b=this.An;b=ly(W(),b);a=W().l(a,b);return W().ea(a,6)}; +e.c=function(a){if(this===a)return!0;if(a instanceof dk){if(this.ba===a.ba){var b=this.mq,c=a.mq;(null===b?null===c:b.c(c))?(b=this.kq,c=a.kq,b=null===b?null===c:b.c(c)):b=!1}else b=!1;if(b&&this.lq===a.lq&&(b=this.zn,c=a.zn,null===b?null===c:b.c(c)))return b=this.An,a=a.An,null===b?null===a:b.c(a)}return!1};var tF=v({c9:0},!1,"inrae.semantic_web.node.Regex",{c9:1,Si:1,vb:1,b:1,y:1,m:1,d:1});dk.prototype.$classData=tF; +function rF(a,b,c,d,f,g){this.Oa=null;this.g9=a;this.h9=b;this.i9=c;this.j9=d;this.k9=f;this.l9=g;V4(this)}rF.prototype=new X4;rF.prototype.constructor=rF;rF.prototype.ca=function(){return new XY(this)};rF.prototype.$classData=v({e9:0},!1,"inrae.semantic_web.node.Regex$$anon$40",{e9:1,$a:1,b:1,ya:1,qa:1,la:1,wa:1});function wF(a,b,c,d,f,g){this.Oa=null;this.r9=a;this.s9=b;this.t9=c;this.u9=d;this.v9=f;this.w9=g;V4(this)}wF.prototype=new X4;wF.prototype.constructor=wF;wF.prototype.ca=function(){return new YY(this)}; +wF.prototype.$classData=v({p9:0},!1,"inrae.semantic_web.node.Replace$$anon$106",{p9:1,$a:1,b:1,ya:1,qa:1,la:1,wa:1});function BF(a,b,c,d,f,g,h,k,n,r,u){this.Oa=null;this.C9=a;this.D9=b;this.F9=c;this.G9=d;this.H9=f;this.I9=g;this.J9=h;this.K9=k;this.L9=n;this.M9=r;this.E9=u;V4(this)}BF.prototype=new X4;BF.prototype.constructor=BF;BF.prototype.ca=function(){return new ZY(this)};BF.prototype.$classData=v({A9:0},!1,"inrae.semantic_web.node.Root$$anon$1",{A9:1,$a:1,b:1,ya:1,qa:1,la:1,wa:1}); +function IF(a,b,c){this.Oa=null;this.S9=a;this.T9=b;this.U9=c;V4(this)}IF.prototype=new X4;IF.prototype.constructor=IF;IF.prototype.ca=function(){return new $Y(this)};IF.prototype.$classData=v({Q9:0},!1,"inrae.semantic_web.node.Round$$anon$112",{Q9:1,$a:1,b:1,ya:1,qa:1,la:1,wa:1});function sk(a,b,c){this.V=this.U=this.D=null;this.tt=a;this.rl=b;this.sq=c;wi(this,a,b,c)}sk.prototype=new iF;sk.prototype.constructor=sk;e=sk.prototype;e.La=function(){return this.tt};e.Ja=function(){return this.rl}; +e.kb=function(){return this.sq};e.sb=function(a,b){return new sk(this.tt,a,b)};e.A=function(){return"Something"};e.B=function(){return 3};e.C=function(a){switch(a){case 0:return this.tt;case 1:return this.rl;case 2:return this.sq;default:return T(W(),a)}};e.v=function(){return ig(D(),this)};e.c=function(a){if(this===a)return!0;if(a instanceof sk&&this.tt===a.tt){var b=this.rl,c=a.rl;if(null===b?null===c:b.c(c))return b=this.sq,a=a.sq,null===b?null===a:b.c(a)}return!1}; +var RF=v({X9:0},!1,"inrae.semantic_web.node.Something",{X9:1,mt:1,vb:1,b:1,y:1,m:1,d:1});sk.prototype.$classData=RF;function PF(a,b,c){this.Oa=null;this.a$=a;this.b$=b;this.c$=c;V4(this)}PF.prototype=new X4;PF.prototype.constructor=PF;PF.prototype.ca=function(){return new aZ(this)};PF.prototype.$classData=v({Z9:0},!1,"inrae.semantic_web.node.Something$$anon$4",{Z9:1,$a:1,b:1,ya:1,qa:1,la:1,wa:1});function UF(a,b,c,d,f){this.Oa=null;this.i$=a;this.j$=b;this.k$=c;this.l$=d;this.m$=f;V4(this)} +UF.prototype=new X4;UF.prototype.constructor=UF;UF.prototype.ca=function(){return new bZ(this)};UF.prototype.$classData=v({g$:0},!1,"inrae.semantic_web.node.SourcesNode$$anon$73",{g$:1,$a:1,b:1,ya:1,qa:1,la:1,wa:1});function gG(a,b,c,d){this.Oa=null;this.s$=a;this.t$=b;this.u$=c;this.v$=d;V4(this)}gG.prototype=new X4;gG.prototype.constructor=gG;gG.prototype.ca=function(){return new cZ(this)}; +gG.prototype.$classData=v({q$:0},!1,"inrae.semantic_web.node.SparqlDefinitionExpression$$anon$100",{q$:1,$a:1,b:1,ya:1,qa:1,la:1,wa:1});function lG(a,b,c,d){this.Oa=null;this.B$=a;this.C$=b;this.D$=c;this.E$=d;V4(this)}lG.prototype=new X4;lG.prototype.constructor=lG;lG.prototype.ca=function(){return new dZ(this)};lG.prototype.$classData=v({z$:0},!1,"inrae.semantic_web.node.Str$$anon$133",{z$:1,$a:1,b:1,ya:1,qa:1,la:1,wa:1}); +function gk(a,b,c,d,f){this.V=this.U=this.D=null;this.ba=!1;this.Dn=a;this.tq=c;this.Bn=d;this.Cn=f;sD(this,b,c,d,f)}gk.prototype=new tD;gk.prototype.constructor=gk;e=gk.prototype;e.La=function(){return this.tq};e.Ja=function(){return this.Bn};e.kb=function(){return this.Cn};e.g=function(){return""+this.ba+" StrEnds ("+this.Dn+")"};e.A=function(){return"StrEnds"};e.B=function(){return 5}; +e.C=function(a){switch(a){case 0:return this.Dn;case 1:return this.ba;case 2:return this.tq;case 3:return this.Bn;case 4:return this.Cn;default:return T(W(),a)}};e.v=function(){var a=Ja("StrEnds");a=W().l(-889275714,a);var b=this.Dn;b=ly(W(),b);a=W().l(a,b);b=this.ba?1231:1237;a=W().l(a,b);b=this.tq;b=ly(W(),b);a=W().l(a,b);b=this.Bn;b=ly(W(),b);a=W().l(a,b);b=this.Cn;b=ly(W(),b);a=W().l(a,b);return W().ea(a,5)}; +e.c=function(a){if(this===a)return!0;if(a instanceof gk){if(this.ba===a.ba){var b=this.Dn,c=a.Dn;b=null===b?null===c:b.c(c)}else b=!1;if(b&&this.tq===a.tq&&(b=this.Bn,c=a.Bn,null===b?null===c:b.c(c)))return b=this.Cn,a=a.Cn,null===b?null===a:b.c(a)}return!1};e.sb=function(a,b){return new gk(this.Dn,this.ba,this.tq,a,b)};var sG=v({G$:0},!1,"inrae.semantic_web.node.StrEnds",{G$:1,Si:1,vb:1,b:1,y:1,m:1,d:1});gk.prototype.$classData=sG; +function qG(a,b,c,d,f){this.Oa=null;this.K$=a;this.L$=b;this.M$=c;this.N$=d;this.O$=f;V4(this)}qG.prototype=new X4;qG.prototype.constructor=qG;qG.prototype.ca=function(){return new eZ(this)};qG.prototype.$classData=v({I$:0},!1,"inrae.semantic_web.node.StrEnds$$anon$49",{I$:1,$a:1,b:1,ya:1,qa:1,la:1,wa:1});function fk(a,b,c,d,f){this.V=this.U=this.D=null;this.ba=!1;this.Gn=a;this.uq=c;this.En=d;this.Fn=f;sD(this,b,c,d,f)}fk.prototype=new tD;fk.prototype.constructor=fk;e=fk.prototype;e.La=function(){return this.uq}; +e.Ja=function(){return this.En};e.kb=function(){return this.Fn};e.g=function(){return""+this.ba+" StrStarts ("+this.Gn+")"};e.A=function(){return"StrStarts"};e.B=function(){return 5};e.C=function(a){switch(a){case 0:return this.Gn;case 1:return this.ba;case 2:return this.uq;case 3:return this.En;case 4:return this.Fn;default:return T(W(),a)}}; +e.v=function(){var a=Ja("StrStarts");a=W().l(-889275714,a);var b=this.Gn;b=ly(W(),b);a=W().l(a,b);b=this.ba?1231:1237;a=W().l(a,b);b=this.uq;b=ly(W(),b);a=W().l(a,b);b=this.En;b=ly(W(),b);a=W().l(a,b);b=this.Fn;b=ly(W(),b);a=W().l(a,b);return W().ea(a,5)};e.c=function(a){if(this===a)return!0;if(a instanceof fk){if(this.ba===a.ba){var b=this.Gn,c=a.Gn;b=null===b?null===c:b.c(c)}else b=!1;if(b&&this.uq===a.uq&&(b=this.En,c=a.En,null===b?null===c:b.c(c)))return b=this.Fn,a=a.Fn,null===b?null===a:b.c(a)}return!1}; +e.sb=function(a,b){return new fk(this.Gn,this.ba,this.uq,a,b)};var xG=v({Q$:0},!1,"inrae.semantic_web.node.StrStarts",{Q$:1,Si:1,vb:1,b:1,y:1,m:1,d:1});fk.prototype.$classData=xG;function vG(a,b,c,d,f){this.Oa=null;this.U$=a;this.V$=b;this.W$=c;this.X$=d;this.Y$=f;V4(this)}vG.prototype=new X4;vG.prototype.constructor=vG;vG.prototype.ca=function(){return new fZ(this)};vG.prototype.$classData=v({S$:0},!1,"inrae.semantic_web.node.StrStarts$$anon$46",{S$:1,$a:1,b:1,ya:1,qa:1,la:1,wa:1}); +function AG(a,b,c,d,f){this.Oa=null;this.daa=a;this.eaa=b;this.faa=c;this.gaa=d;this.haa=f;V4(this)}AG.prototype=new X4;AG.prototype.constructor=AG;AG.prototype.ca=function(){return new gZ(this)};AG.prototype.$classData=v({baa:0},!1,"inrae.semantic_web.node.SubStr$$anon$103",{baa:1,$a:1,b:1,ya:1,qa:1,la:1,wa:1});function FG(a,b,c,d){this.Oa=null;this.naa=a;this.oaa=b;this.paa=c;this.qaa=d;V4(this)}FG.prototype=new X4;FG.prototype.constructor=FG;FG.prototype.ca=function(){return new hZ(this)}; +FG.prototype.$classData=v({laa:0},!1,"inrae.semantic_web.node.SubjectOf$$anon$7",{laa:1,$a:1,b:1,ya:1,qa:1,la:1,wa:1});function lk(a,b,c,d,f){this.V=this.U=this.D=null;this.ba=!1;this.Mn=a;this.Aq=c;this.Kn=d;this.Ln=f;sD(this,b,c,d,f)}lk.prototype=new tD;lk.prototype.constructor=lk;e=lk.prototype;e.La=function(){return this.Aq};e.Ja=function(){return this.Kn};e.kb=function(){return this.Ln};e.g=function(){return""+this.ba+" \x3e "+this.Mn};e.A=function(){return"Sup"};e.B=function(){return 5}; +e.C=function(a){switch(a){case 0:return this.Mn;case 1:return this.ba;case 2:return this.Aq;case 3:return this.Kn;case 4:return this.Ln;default:return T(W(),a)}};e.v=function(){var a=Ja("Sup");a=W().l(-889275714,a);var b=this.Mn;b=ly(W(),b);a=W().l(a,b);b=this.ba?1231:1237;a=W().l(a,b);b=this.Aq;b=ly(W(),b);a=W().l(a,b);b=this.Kn;b=ly(W(),b);a=W().l(a,b);b=this.Ln;b=ly(W(),b);a=W().l(a,b);return W().ea(a,5)}; +e.c=function(a){if(this===a)return!0;if(a instanceof lk){if(this.ba===a.ba){var b=this.Mn,c=a.Mn;b=null===b?null===c:b.c(c)}else b=!1;if(b&&this.Aq===a.Aq&&(b=this.Kn,c=a.Kn,null===b?null===c:b.c(c)))return b=this.Ln,a=a.Ln,null===b?null===a:b.c(a)}return!1};e.sb=function(a,b){return new lk(this.Mn,this.ba,this.Aq,a,b)};var MG=v({saa:0},!1,"inrae.semantic_web.node.Sup",{saa:1,Si:1,vb:1,b:1,y:1,m:1,d:1});lk.prototype.$classData=MG; +function KG(a,b,c,d,f){this.Oa=null;this.waa=a;this.xaa=b;this.yaa=c;this.zaa=d;this.Aaa=f;V4(this)}KG.prototype=new X4;KG.prototype.constructor=KG;KG.prototype.ca=function(){return new iZ(this)};KG.prototype.$classData=v({uaa:0},!1,"inrae.semantic_web.node.Sup$$anon$64",{uaa:1,$a:1,b:1,ya:1,qa:1,la:1,wa:1});function mk(a,b,c,d,f){this.V=this.U=this.D=null;this.ba=!1;this.Jn=a;this.zq=c;this.Hn=d;this.In=f;sD(this,b,c,d,f)}mk.prototype=new tD;mk.prototype.constructor=mk;e=mk.prototype;e.La=function(){return this.zq}; +e.Ja=function(){return this.Hn};e.kb=function(){return this.In};e.g=function(){return""+this.ba+" \x3e\x3d "+this.Jn};e.A=function(){return"SupEqual"};e.B=function(){return 5};e.C=function(a){switch(a){case 0:return this.Jn;case 1:return this.ba;case 2:return this.zq;case 3:return this.Hn;case 4:return this.In;default:return T(W(),a)}}; +e.v=function(){var a=Ja("SupEqual");a=W().l(-889275714,a);var b=this.Jn;b=ly(W(),b);a=W().l(a,b);b=this.ba?1231:1237;a=W().l(a,b);b=this.zq;b=ly(W(),b);a=W().l(a,b);b=this.Hn;b=ly(W(),b);a=W().l(a,b);b=this.In;b=ly(W(),b);a=W().l(a,b);return W().ea(a,5)};e.c=function(a){if(this===a)return!0;if(a instanceof mk){if(this.ba===a.ba){var b=this.Jn,c=a.Jn;b=null===b?null===c:b.c(c)}else b=!1;if(b&&this.zq===a.zq&&(b=this.Hn,c=a.Hn,null===b?null===c:b.c(c)))return b=this.In,a=a.In,null===b?null===a:b.c(a)}return!1}; +e.sb=function(a,b){return new mk(this.Jn,this.ba,this.zq,a,b)};var RG=v({Caa:0},!1,"inrae.semantic_web.node.SupEqual",{Caa:1,Si:1,vb:1,b:1,y:1,m:1,d:1});mk.prototype.$classData=RG;function PG(a,b,c,d,f){this.Oa=null;this.Gaa=a;this.Haa=b;this.Iaa=c;this.Jaa=d;this.Kaa=f;V4(this)}PG.prototype=new X4;PG.prototype.constructor=PG;PG.prototype.ca=function(){return new jZ(this)};PG.prototype.$classData=v({Eaa:0},!1,"inrae.semantic_web.node.SupEqual$$anon$67",{Eaa:1,$a:1,b:1,ya:1,qa:1,la:1,wa:1}); +function tk(a,b,c,d){this.gF=this.Rh=this.V=this.U=this.D=null;this.sl=c;this.Bq=d;nE(this,b,a,c,d)}tk.prototype=new pE;tk.prototype.constructor=tk;e=tk.prototype;e.La=function(){return this.D};e.Ja=function(){return this.sl};e.kb=function(){return this.Bq};e.sb=function(a,b){return new tk(this.D,this.Rh,a,b)};e.A=function(){return"UnionBlock"};e.B=function(){return 4}; +e.C=function(a){switch(a){case 0:return this.D;case 1:return this.Rh;case 2:return this.sl;case 3:return this.Bq;default:return T(W(),a)}};e.v=function(){return ig(D(),this)};e.c=function(a){if(this===a)return!0;if(a instanceof tk){if(this.D===a.D){var b=this.Rh,c=a.Rh;b=null===b?null===c:b.c(c)}else b=!1;if(b&&(b=this.sl,c=a.sl,null===b?null===c:b.c(c)))return b=this.Bq,a=a.Bq,null===b?null===a:b.c(a)}return!1}; +var WG=v({Maa:0},!1,"inrae.semantic_web.node.UnionBlock",{Maa:1,n7:1,vb:1,b:1,y:1,m:1,d:1});tk.prototype.$classData=WG;function UG(a,b,c,d){this.Oa=null;this.Qaa=a;this.Raa=b;this.Saa=c;this.Taa=d;V4(this)}UG.prototype=new X4;UG.prototype.constructor=UG;UG.prototype.ca=function(){return new kZ(this)};UG.prototype.$classData=v({Oaa:0},!1,"inrae.semantic_web.node.UnionBlock$$anon$25",{Oaa:1,$a:1,b:1,ya:1,qa:1,la:1,wa:1}); +function ZG(a,b,c,d){this.Oa=null;this.Zaa=a;this.$aa=b;this.aba=c;this.bba=d;V4(this)}ZG.prototype=new X4;ZG.prototype.constructor=ZG;ZG.prototype.ca=function(){return new lZ(this)};ZG.prototype.$classData=v({Xaa:0},!1,"inrae.semantic_web.node.Value$$anon$19",{Xaa:1,$a:1,b:1,ya:1,qa:1,la:1,wa:1});function nk(a,b,c,d){this.V=this.U=this.D=null;this.ba=!1;this.Cq=b;this.Nn=c;this.On=d;sD(this,a,b,c,d)}nk.prototype=new tD;nk.prototype.constructor=nk;e=nk.prototype;e.La=function(){return this.Cq}; +e.Ja=function(){return this.Nn};e.kb=function(){return this.On};e.g=function(){return""+this.ba+" isBlank"};e.A=function(){return"isBlank"};e.B=function(){return 4};e.C=function(a){switch(a){case 0:return this.ba;case 1:return this.Cq;case 2:return this.Nn;case 3:return this.On;default:return T(W(),a)}}; +e.v=function(){var a=Ja("isBlank");a=W().l(-889275714,a);var b=this.ba?1231:1237;a=W().l(a,b);b=this.Cq;b=ly(W(),b);a=W().l(a,b);b=this.Nn;b=ly(W(),b);a=W().l(a,b);b=this.On;b=ly(W(),b);a=W().l(a,b);return W().ea(a,4)};e.c=function(a){if(this===a)return!0;if(a instanceof nk&&this.ba===a.ba&&this.Cq===a.Cq){var b=this.Nn,c=a.Nn;if(null===b?null===c:b.c(c))return b=this.On,a=a.On,null===b?null===a:b.c(a)}return!1};e.sb=function(a){var b=this.ba,c=this.Cq;Qh();L();var d=A();return new nk(b,c,a,M(0,d))}; +var fH=v({dba:0},!1,"inrae.semantic_web.node.isBlank",{dba:1,Si:1,vb:1,b:1,y:1,m:1,d:1});nk.prototype.$classData=fH;function dH(a,b,c,d){this.Oa=null;this.hba=a;this.iba=b;this.jba=c;this.kba=d;V4(this)}dH.prototype=new X4;dH.prototype.constructor=dH;dH.prototype.ca=function(){return new mZ(this)};dH.prototype.$classData=v({fba:0},!1,"inrae.semantic_web.node.isBlank$$anon$31",{fba:1,$a:1,b:1,ya:1,qa:1,la:1,wa:1}); +function pk(a,b,c,d){this.V=this.U=this.D=null;this.ba=!1;this.Dq=b;this.Pn=c;this.Qn=d;sD(this,a,b,c,d)}pk.prototype=new tD;pk.prototype.constructor=pk;e=pk.prototype;e.La=function(){return this.Dq};e.Ja=function(){return this.Pn};e.kb=function(){return this.Qn};e.g=function(){return""+this.ba+" isLiteral"};e.sb=function(a,b){return new pk(this.ba,this.Dq,a,b)};e.A=function(){return"isLiteral"};e.B=function(){return 4}; +e.C=function(a){switch(a){case 0:return this.ba;case 1:return this.Dq;case 2:return this.Pn;case 3:return this.Qn;default:return T(W(),a)}};e.v=function(){var a=Ja("isLiteral");a=W().l(-889275714,a);var b=this.ba?1231:1237;a=W().l(a,b);b=this.Dq;b=ly(W(),b);a=W().l(a,b);b=this.Pn;b=ly(W(),b);a=W().l(a,b);b=this.Qn;b=ly(W(),b);a=W().l(a,b);return W().ea(a,4)}; +e.c=function(a){if(this===a)return!0;if(a instanceof pk&&this.ba===a.ba&&this.Dq===a.Dq){var b=this.Pn,c=a.Pn;if(null===b?null===c:b.c(c))return b=this.Qn,a=a.Qn,null===b?null===a:b.c(a)}return!1};var kH=v({mba:0},!1,"inrae.semantic_web.node.isLiteral",{mba:1,Si:1,vb:1,b:1,y:1,m:1,d:1});pk.prototype.$classData=kH;function iH(a,b,c,d){this.Oa=null;this.qba=a;this.rba=b;this.sba=c;this.tba=d;V4(this)}iH.prototype=new X4;iH.prototype.constructor=iH;iH.prototype.ca=function(){return new nZ(this)}; +iH.prototype.$classData=v({oba:0},!1,"inrae.semantic_web.node.isLiteral$$anon$34",{oba:1,$a:1,b:1,ya:1,qa:1,la:1,wa:1});function ok(a,b,c,d){this.V=this.U=this.D=null;this.ba=!1;this.Eq=b;this.Rn=c;this.Sn=d;sD(this,a,b,c,d)}ok.prototype=new tD;ok.prototype.constructor=ok;e=ok.prototype;e.La=function(){return this.Eq};e.Ja=function(){return this.Rn};e.kb=function(){return this.Sn};e.g=function(){return""+this.ba+" isURI"};e.A=function(){return"isURI"};e.B=function(){return 4}; +e.C=function(a){switch(a){case 0:return this.ba;case 1:return this.Eq;case 2:return this.Rn;case 3:return this.Sn;default:return T(W(),a)}};e.v=function(){var a=Ja("isURI");a=W().l(-889275714,a);var b=this.ba?1231:1237;a=W().l(a,b);b=this.Eq;b=ly(W(),b);a=W().l(a,b);b=this.Rn;b=ly(W(),b);a=W().l(a,b);b=this.Sn;b=ly(W(),b);a=W().l(a,b);return W().ea(a,4)}; +e.c=function(a){if(this===a)return!0;if(a instanceof ok&&this.ba===a.ba&&this.Eq===a.Eq){var b=this.Rn,c=a.Rn;if(null===b?null===c:b.c(c))return b=this.Sn,a=a.Sn,null===b?null===a:b.c(a)}return!1};e.sb=function(a){var b=this.ba,c=this.Eq;Sh();L();var d=A();return new ok(b,c,a,M(0,d))};var pH=v({vba:0},!1,"inrae.semantic_web.node.isURI",{vba:1,Si:1,vb:1,b:1,y:1,m:1,d:1});ok.prototype.$classData=pH;function nH(a,b,c,d){this.Oa=null;this.zba=a;this.Aba=b;this.Bba=c;this.Cba=d;V4(this)}nH.prototype=new X4; +nH.prototype.constructor=nH;nH.prototype.ca=function(){return new oZ(this)};nH.prototype.$classData=v({xba:0},!1,"inrae.semantic_web.node.isURI$$anon$37",{xba:1,$a:1,b:1,ya:1,qa:1,la:1,wa:1});function sH(a){this.Oa=null;this.Mba=a;V4(this)}sH.prototype=new X4;sH.prototype.constructor=sH;sH.prototype.ca=function(){return new vZ(this)};sH.prototype.$classData=v({Kba:0},!1,"inrae.semantic_web.rdf.Anonymous$$anon$7",{Kba:1,$a:1,b:1,ya:1,qa:1,la:1,wa:1}); +function xH(a){this.Oa=null;this.Sba=a;V4(this)}xH.prototype=new X4;xH.prototype.constructor=xH;xH.prototype.ca=function(){return new xZ(this)};xH.prototype.$classData=v({Qba:0},!1,"inrae.semantic_web.rdf.IRI$$anon$1",{Qba:1,$a:1,b:1,ya:1,qa:1,la:1,wa:1});function CH(a,b,c){this.Oa=null;this.Yba=a;this.Zba=b;this.$ba=c;V4(this)}CH.prototype=new X4;CH.prototype.constructor=CH;CH.prototype.ca=function(){return new yZ(this)}; +CH.prototype.$classData=v({Wba:0},!1,"inrae.semantic_web.rdf.Literal$$anon$13",{Wba:1,$a:1,b:1,ya:1,qa:1,la:1,wa:1});function HH(a){this.Oa=null;this.fca=a;V4(this)}HH.prototype=new X4;HH.prototype.constructor=HH;HH.prototype.ca=function(){return new zZ(this)};HH.prototype.$classData=v({dca:0},!1,"inrae.semantic_web.rdf.PropertyPath$$anon$10",{dca:1,$a:1,b:1,ya:1,qa:1,la:1,wa:1});function MH(a){this.Oa=null;this.lca=a;V4(this)}MH.prototype=new X4;MH.prototype.constructor=MH;MH.prototype.ca=function(){return new BZ(this)}; +MH.prototype.$classData=v({jca:0},!1,"inrae.semantic_web.rdf.QueryVariable$$anon$16",{jca:1,$a:1,b:1,ya:1,qa:1,la:1,wa:1});function RH(a,b){this.Oa=null;this.tca=a;this.uca=b;V4(this)}RH.prototype=new X4;RH.prototype.constructor=RH;RH.prototype.ca=function(){return new CZ(this)};RH.prototype.$classData=v({rca:0},!1,"inrae.semantic_web.rdf.URI$$anon$4",{rca:1,$a:1,b:1,ya:1,qa:1,la:1,wa:1});v({Kca:0},!1,"io.lemonlabs.uri.DomainName",{Kca:1,b:1,HR:1,Qza:1,y:1,m:1,d:1}); +function KX(a,b,c,d){this.yA=a;this.zA=b;this.xA=c;this.$ca=d}KX.prototype=new t;KX.prototype.constructor=KX;e=KX.prototype;e.g=function(){return this.rm(this.$ca)};e.rm=function(a){var b=""+this.yA.rm(a),c=this.zA.rm(a);b+=""===c?"":"?"+c;c=this.xA;c.i()?a=E():(c=c.Sa(),a=new Ze("#"+OZ(a.BA,c,a.Mt)));a=a.i()?"":a.Sa();return b+a};e.A=function(){return"RelativeUrl"};e.B=function(){return 3}; +e.C=function(a){switch(a){case 0:return this.yA;case 1:return this.zA;case 2:return this.xA;default:return T(W(),a)}};e.v=function(){return ig(D(),this)};e.c=function(a){if(this===a)return!0;if(a instanceof KX){var b=this.yA,c=a.yA;(null===b?null===c:b.c(c))?(b=this.zA,c=a.zA,b=null===b?null===c:b.c(c)):b=!1;if(b)return b=this.xA,a=a.xA,null===b?null===a:b.c(a)}return!1};e.$classData=v({Zca:0},!1,"io.lemonlabs.uri.RelativeUrl",{Zca:1,b:1,AF:1,zF:1,y:1,m:1,d:1}); +function rI(a,b){this.AA=a;this.bda=b}rI.prototype=new t;rI.prototype.constructor=rI;e=rI.prototype;e.rm=function(a){return b2(this,a)};e.g=function(){return b2(this,this.bda)};e.AI=function(){return this.AA};e.A=function(){return"RootlessPath"};e.B=function(){return 1};e.C=function(a){return 0===a?this.AA:T(W(),a)};e.v=function(){return ig(D(),this)};e.c=function(a){if(this===a)return!0;if(a instanceof rI){var b=this.AA;a=a.AA;return null===b?null===a:b.c(a)}return!1}; +e.$classData=v({ada:0},!1,"io.lemonlabs.uri.RootlessPath",{ada:1,b:1,LR:1,IR:1,y:1,m:1,d:1});function o5(){this.Nt=!1;this.sda="It looks like this URL isn't Percent Encoded. Ideally you should Percent Encode the relevant parts of your URL before passing to scala-uri. Alternatively, you can use a UriConfig with either PercentDecoder(ignoreInvalidPercentEncoding\x3dtrue) or NoopDecoder to suppress this Exception";this.HF="UTF-8";this.tda=37}o5.prototype=new f2;o5.prototype.constructor=o5; +o5.prototype.$classData=v({rda:0},!1,"io.lemonlabs.uri.decoding.PercentDecoder$",{rda:1,Pza:1,b:1,NR:1,y:1,m:1,d:1});var p5;function zl(){p5||(p5=new o5);return p5}function QV(){this.Xw=this.OF=null;this.wl=this.Ww=this.eS=!1}QV.prototype=new r2;QV.prototype.constructor=QV;e=QV.prototype;e.zH=function(){if(this.Ww)this.wl=!0;else try{this.Xw.zH()}catch(a){if(a instanceof XZ)this.wl=!0;else throw a;}}; +e.vK=function(a){if(this.Ww)this.wl=!0;else try{this.Xw.vK(a)}catch(b){if(b instanceof XZ)this.wl=!0;else throw b;}};e.uK=function(a,b,c){if(this.Ww)this.wl=!0;else try{this.Xw.uK(a,b,c)}catch(d){if(d instanceof XZ)this.wl=!0;else throw d;}};e.aE=function(a){if(this.Ww)this.wl=!0;else try{this.Xw.aE(a)}catch(b){if(b instanceof XZ)this.wl=!0;else throw b;}};e.FC=function(a){this.aE(null===a?"null":a)};e.GC=function(a){this.FC(a);this.vK(10);this.eS&&this.zH()}; +e.vu=function(a){q2.prototype.Aja.call(this,a)};e.$classData=v({zea:0},!1,"java.io.PrintWriter",{zea:1,Bea:1,b:1,Fu:1,JA:1,XB:1,KA:1});function PV(){this.Ot=this.OF=null;RV(this);this.Ot=a_()}PV.prototype=new r2;PV.prototype.constructor=PV;e=PV.prototype;e.vK=function(a){d_(this.Ot,65535&a)};e.uK=function(a,b,c){var d=this.Ot.zk;a=gJ(zt(),a,b,c);d.R=""+d.R+a};e.aE=function(a){c_(this.Ot,a)};e.g=function(){return this.Ot.g()};e.zH=function(){};e.vu=function(a){var b=this.Ot.zk;b.R=""+b.R+a}; +e.$classData=v({Aea:0},!1,"java.io.StringWriter",{Aea:1,Bea:1,b:1,Fu:1,JA:1,XB:1,KA:1});function cu(a,b){iJ(a,b,null);return a}function n3(){var a=new Ds;iJ(a,null,null);return a}class Ds extends V{}Ds.prototype.$classData=v({Eja:0},!1,"java.lang.ArrayIndexOutOfBoundsException",{Eja:1,QH:1,tc:1,ub:1,gb:1,b:1,d:1});function Ka(a){a=+a;return Zl(cm(),a)} +var Rba=v({Lja:0},!1,"java.lang.Double",{Lja:1,Gl:1,b:1,d:1,Bb:1,vo:1,iC:1},a=>"number"===typeof a),pa=v({Nja:0},!1,"java.lang.Float",{Nja:1,Gl:1,b:1,d:1,Bb:1,vo:1,iC:1},a=>"number"===typeof a),oa=v({Qja:0},!1,"java.lang.Integer",{Qja:1,Gl:1,b:1,d:1,Bb:1,vo:1,iC:1},a=>la(a)),ta=v({Vja:0},!1,"java.lang.Long",{Vja:1,Gl:1,b:1,d:1,Bb:1,vo:1,iC:1},a=>a instanceof p);class wA extends s2{constructor(a){super();iJ(this,a,null)}} +wA.prototype.$classData=v({dka:0},!1,"java.lang.NumberFormatException",{dka:1,oh:1,tc:1,ub:1,gb:1,b:1,d:1});function wr(a,b){return a.codePointAt(b)|0}function Ja(a){for(var b=0,c=1,d=-1+(a.length|0)|0;0<=d;)b=b+l(65535&(a.charCodeAt(d)|0),c)|0,c=l(31,c),d=-1+d|0;return b}function xa(a,b){for(var c=a.length|0,d=b.length|0,f=c>24&&0===(4&b.Lg)<<24>>24){var c=b.vI();var d=ap().Mq;if(null===d)throw Hq("null CodingErrorAction");c.Wt=d;d=ap().Mq;if(null===d)throw Hq("null CodingErrorAction");c.Yt=d;b.mk=c;b.Lg=(4|b.Lg)<<24>>24}b=b.mk;if(0===(a.pa-a.S|0))var f=qo(0);else{b.Cl=0;b.Tx();c=Qa(da(da(a.pa-a.S|0)*b.bx));for(c=qo(c);;){b:{d=b;var g=a,h=c;if(3===d.Cl)throw kJ();for(d.Cl=2;;){try{f=d.uH(g,h)}catch(K){if(K instanceof fp)throw new lJ(K);if(K instanceof +lp)throw new lJ(K);throw K;}if(0===f.Nf){var k=g.pa-g.S|0;if(0r||0>(u.a.length-r|0))throw xo();var w=n.S,y=w+r|0;if(y>n.pa)throw new fp;n.S=y;u.Z(0,n.xf,n.Jg+w|0,r);n=g.S;k=k.$t; +if(0>k)throw mJ();mo.prototype.Ba.call(g,n+k|0)}else{if(ap().Nq===n){d=k;break b}if(ap().hG===n){n=g.S;k=k.$t;if(0>k)throw mJ();mo.prototype.Ba.call(g,n+k|0)}else throw new B(n);}}}if(0!==d.Nf){if(1===d.Nf){c=dp(c);continue}kp(d);throw Sq("should not get here");}if(a.S!==a.pa)throw nJ();f=c;break}for(;;){b:switch(a=b,a.Cl){case 2:c=rp().Md;0===c.Nf&&(a.Cl=3);a=c;break b;case 3:a=rp().Md;break b;default:throw kJ();}if(0!==a.Nf){if(1===a.Nf){f=dp(f);continue}kp(a);throw Sq("should not get here");}break}mo.prototype.PB.call(f)}a= +new cb(f.pa-f.S|0);b=a.a.length;if(0>b||0>(a.a.length-b|0))throw xo();c=f.S;d=c+b|0;if(d>f.pa)throw new lp;f.S=d;f.xf.Z(f.Jg+c|0,a,0,b);return a}function iea(a,b,c,d){if(b>(a.length|0)||0>b||0>b)throw a=new hJ,iJ(a,"Index out of Bound",null),a;d=d-0|0;for(var f=0;f=k}else k=!1;if(k)g=1+g|0;else break}h="".substring(h,g);k=Rt(St(),h,10);h=c;var n=oL(h);h=h.hI;if(0>k||k>h.cma)throw my(new V,""+k);h=n[h.dma[k]|0];yg();h=void 0===h?null:h;null!==h&&c_(d,h);break;case 92:g=1+g|0; +g=(65535&(a.charCodeAt(c)|0)))c=1+c|0;else break;if(c===b)return"";for(var d=b;;)if(32>=(65535&(a.charCodeAt(-1+d|0)|0)))d=-1+d|0;else break;return 0===c&&d===b?a:a.substring(c,d)}var ja=v({sja:0},!1,"java.lang.String",{sja:1,b:1,d:1,Bb:1,ro:1,vo:1,iC:1},a=>"string"===typeof a);class hJ extends V{} +hJ.prototype.$classData=v({nka:0},!1,"java.lang.StringIndexOutOfBoundsException",{nka:1,QH:1,tc:1,ub:1,gb:1,b:1,d:1});function q5(){this.Gj=this.S=this.pa=this.eh=0;this.of=null;this.Kg=0}q5.prototype=new no;q5.prototype.constructor=q5;function r5(){}r5.prototype=q5.prototype; +function Zo(a,b){if(b===a)throw oo();if(a.Yh())throw new ep;var c=b.pa,d=b.S,f=c-d|0,g=a.S,h=g+f|0;if(h>a.pa)throw new fp;a.S=h;mo.prototype.Ba.call(b,c);h=b.of;if(null!==h)a.kX(g,h,b.Kg+d|0,f);else for(;d!==c;)f=g,h=b.jy(d),a.lX(f,h),d=1+d|0,g=1+g|0}e=q5.prototype;e.v=function(){for(var a=this.S,b=this.pa,c=-182887236,d=a;d!==b;){var f=D(),g=this.jy(d);c=f.l(c,ly(W(),q(g)));d=1+d|0}return D().ea(c,b-a|0)};e.c=function(a){return a instanceof q5?0===jea(this,a):!1}; +function jea(a,b){if(a===b)return 0;for(var c=a.S,d=a.pa-c|0,f=b.S,g=b.pa-f|0,h=d=this.$(a,b)};e.ug=function(a,b){return E4(this,a,b)};e.wg=function(a,b){return 0>this.$(a,b)};e.tg=function(a,b){return 0=this.$(a,b)};e.ug=function(a,b){return E4(this,a,b)};e.wg=function(a,b){return 0>this.$(a,b)};e.tg=function(a,b){return 0>>16|0;b=F2(b,c,d,d&(-1+b.Rg.a.length|0));if(null!==b)return b=b.Qg,a=a.Qg,null===b?null===a:Ea(b,a)}return!1};J2.prototype.$classData=v({Pka:0},!1,"java.util.HashMap$EntrySet",{Pka:1,nU:1,VH:1,b:1,kC:1,RH:1,tU:1}); +function s5(a){this.oC=null;if(null===a)throw I(J(),null);this.oC=a}s5.prototype=new C2;s5.prototype.constructor=s5;s5.prototype.nh=function(){return this.oC.YU()};s5.prototype.Y=function(){return this.oC.xi};s5.prototype.Pa=function(a){return this.oC.MB(a)};s5.prototype.$classData=v({Rka:0},!1,"java.util.HashMap$KeySet",{Rka:1,nU:1,VH:1,b:1,kC:1,RH:1,tU:1});class t5 extends s2{}function u5(){this.dy=0;this.Rg=null;this.xi=this.ey=0}u5.prototype=new oda;u5.prototype.constructor=u5; +function wea(){}e=wea.prototype=u5.prototype;e.wI=function(a,b,c,d,f){return new lR(a,b,c,d,f)};e.Fl=function(a){if(null===a)throw P();return E2(this,a)};e.MB=function(a){if(null===a)throw P();return H2.prototype.MB.call(this,a)};e.Gk=function(a,b){if(null===a||null===b)throw P();if(null===a)var c=0;else c=Ia(a),c^=c>>>16|0;return I2(this,a,b,c)};e.HC=function(a,b){if(null===b)throw P();var c=this.Fl(a);if(null===c){if(null===a)var d=0;else d=Ia(a),d^=d>>>16|0;I2(this,a,b,d)}return c}; +function Hm(){this.fy=this.pr=null}Hm.prototype=new pda;Hm.prototype.constructor=Hm;Hm.prototype.ir=function(a,b){var c=this.Fl(a);return"string"===typeof c?c:null!==this.fy?this.fy.ir(a,b):b};Hm.prototype.$classData=v({mla:0},!1,"java.util.Properties",{mla:1,MAa:1,JAa:1,b:1,rC:1,ld:1,d:1}); +class ur extends s2{constructor(a,b,c){super();this.Zla=a;this.ama=b;this.$la=c;iJ(this,null,null)}bf(){var a=this.$la,b=this.ama,c=this.Zla+(0>a?"":" near index "+a)+"\n"+b;return 0<=a&&null!==b&&a<(b.length|0)?c+"\n"+" ".repeat(a)+"^":c}}ur.prototype.$classData=v({Yla:0},!1,"java.util.regex.PatternSyntaxException",{Yla:1,oh:1,tc:1,ub:1,gb:1,b:1,d:1});function v5(){}v5.prototype=new M2;v5.prototype.constructor=v5;function Ci(){throw Ir("None.get");}e=v5.prototype;e.A=function(){return"None"}; +e.B=function(){return 0};e.C=function(a){return T(W(),a)};e.v=function(){return 2433880};e.g=function(){return"None"};e.Sa=function(){Ci()};e.$classData=v({pma:0},!1,"scala.None$",{pma:1,rma:1,b:1,J:1,y:1,m:1,d:1});var w5;function E(){w5||(w5=new v5);return w5}function Ze(a){this.Sb=a}Ze.prototype=new M2;Ze.prototype.constructor=Ze;e=Ze.prototype;e.Sa=function(){return this.Sb};e.A=function(){return"Some"};e.B=function(){return 1};e.C=function(a){return 0===a?this.Sb:T(W(),a)}; +e.v=function(){return ig(D(),this)};e.g=function(){return fy(this)};e.c=function(a){return this===a?!0:a instanceof Ze?fq(O(),this.Sb,a.Sb):!1};e.$classData=v({Cma:0},!1,"scala.Some",{Cma:1,rma:1,b:1,J:1,y:1,m:1,d:1});function Md(a,b){this.si=this.yf=null;this.JT=a;this.KT=b;G(this,null,null)}Md.prototype=new qda;Md.prototype.constructor=Md;e=Md.prototype;e.gH=function(){return this.JT};e.iH=function(){return this.KT};e.xa=function(){return q(this.KT)};e.Ea=function(){return q(this.JT)}; +e.$classData=v({uja:0},!1,"scala.Tuple2$mcCC$sp",{uja:1,fH:1,b:1,kV:1,y:1,m:1,d:1});function x5(){}x5.prototype=new t;x5.prototype.constructor=x5;function y5(){}e=y5.prototype=x5.prototype;e.Db=function(){return vx()};e.sf=function(){return this.pc()};e.pc=function(){return"Iterable"};e.g=function(){return Gi(this)};e.wk=function(a){return this.Db().Ib(a)};e.Sg=function(){return this.Db().Ya()};e.G=function(){return this.t().p()};e.Pd=function(){return KR(this)};e.Qb=function(){return LR(this)}; +e.rh=function(){return MR(this)};e.TD=function(a){return NR(this,a)};e.ob=function(a){return this.ke(new $R(this,a,!1))};e.$D=function(a){return WR(new YR,this,a)};e.Jh=function(a){return this.ke(xea(new z5,this,a))};e.Ac=function(a){return this.ke(A5(new B5,this,a))};e.SB=function(a){return OR(this,a)};e.L=function(){return QR(this)};e.Da=function(a){return this.Db().Ib(aS(new bS,this,a))};e.lb=function(a){return RR(this,a)};e.jh=function(a){return TR(this,a)};e.Fa=function(a){ct(this,a)}; +e.vk=function(a){return dt(this,a)};e.dr=function(a){return et(this,a)};e.Cu=function(a){return ft(this,a)};e.gr=function(a,b){return gt(this,a,b)};e.Tg=function(a){return ht(this,a)};e.i=function(){return!this.t().s()};e.Y=function(){if(0<=this.N())var a=this.N();else{a=this.t();for(var b=0;a.s();)b=1+b|0,a.p();a=b}return a};e.Zb=function(a,b,c){return zg(this,a,b,c)};e.zf=function(a,b,c,d){return lt(this,a,b,c,d)};e.qc=function(){Wb();return Xb(A(),this)};e.tz=function(){return Qb(Rb(),this)}; +e.Kh=function(){return M(nM(),this)};e.kg=function(){return UU(wx(),this)};e.bh=function(a){return mt(this,a)};e.Qf=function(){for(var a=A(),b=this.t();b.s();){var c=b.p();a=new Vb(c,a)}return a};e.N=function(){return-1};e.ke=function(a){return this.wk(a)};function qj(a,b){a.Di=b;a.Kb=0;a.ij=Cs(Pp(),a.Di);return a}function rj(){this.Di=null;this.ij=this.Kb=0}rj.prototype=new T_;rj.prototype.constructor=rj;function C5(){}e=C5.prototype=rj.prototype;e.N=function(){return this.ij-this.Kb|0}; +e.s=function(){return this.Kba?0:a);return this};e.$classData=v({dpa:0},!1,"scala.collection.IndexedSeqView$IndexedSeqViewIterator",{dpa:1,qb:1,b:1,Ua:1,J:1,K:1,d:1});function D5(a){this.Xu=this.Fr=0;this.gpa=a;this.Fr=-1+a.z()|0;this.Xu=a.z()}D5.prototype=new T_;D5.prototype.constructor=D5; +D5.prototype.s=function(){return 0this.Fr)throw US();var a=this.gpa.W(this.Fr);this.Fr=-1+this.Fr|0;this.Xu=-1+this.Xu|0;return a};D5.prototype.Se=function(a){0a?0:a);return this};D5.prototype.$classData=v({fpa:0},!1,"scala.collection.IndexedSeqView$IndexedSeqViewReverseIterator",{fpa:1,qb:1,b:1,Ua:1,J:1,K:1,d:1});function iS(){this.nz=null;this.nz=xx().Na}iS.prototype=new Wda;iS.prototype.constructor=iS; +function yea(a,b){a.nz=a.nz.sg(new Yc(((c,d)=>()=>{xx();return new Sb(d)})(a,b)));return a}iS.prototype.Ia=function(a){return yea(this,a)};iS.prototype.$classData=v({upa:0},!1,"scala.collection.Iterator$$anon$21",{upa:1,iCa:1,b:1,vj:1,ue:1,Fd:1,Ed:1});function E5(a,b,c){a=a.Nc(b);if(a instanceof Ze)return a.Sb;if(E()===a)return c.Rb();throw new B(a);}function OO(a,b){var c=a.Nc(b);if(E()===c)return a.rH(b);if(c instanceof Ze)return c.Sb;throw new B(c);} +function zea(a,b,c){return a.ui(b,new Yc(((d,f,g)=>()=>f.r(g))(a,c,b)))}function F5(a){throw Ir("key not found: "+a);}function Aea(a,b,c,d,f){var g=a.t();a=new Ob(g,new C((()=>h=>{if(null!==h)return h.Ea()+" -\x3e "+h.xa();throw new B(h);})(a)));return lt(a,b,c,d,f)}function G5(a,b){var c=a.Sg(),d=$T();for(a=a.t();a.s();){var f=a.p();d.sk(b.r(f))&&c.Ia(f)}return c.nb()}function H5(a,b){var c=a.Pg().Ya();0<=a.N()&&c.oc(1+a.z()|0);c.Ia(b);c.ec(a);return c.nb()} +function I5(a,b){var c=a.Pg().Ya();0<=a.N()&&c.oc(1+a.z()|0);c.ec(a);c.Ia(b);return c.nb()}function Nl(a,b){var c=a.Pg().Ya();c.ec(a);c.ec(b);return c.nb()}function J5(a,b){var c=a.Pg().Ya();c.ec(b);c.ec(a);return c.nb()}function K5(){this.Ty=this.wW=null;this.JJ=!1;L5=this;this.Ty=new P2(this)}K5.prototype=new t;K5.prototype.constructor=K5;e=K5.prototype;e.Hx=function(a,b){return M5(a,b)};function M5(a,b){return a instanceof N5?a:c3(0,wL(Ns(),a,b))} +e.Co=function(a){var b=new sS;return new tS(b,new C(((c,d)=>f=>c3(Y2(),mt(f,d)))(this,a)))};function c3(a,b){if(null===b)return null;if(b instanceof Za)return new T3(b);if(b instanceof eb)return new O5(b);if(b instanceof jb)return new P5(b);if(b instanceof fb)return new Q5(b);if(b instanceof gb)return new R5(b);if(b instanceof bb)return new S5(b);if(b instanceof cb)return new T5(b);if(b instanceof db)return new U5(b);if(b instanceof ab)return new V5(b);if(Rm(b))return new W5(b);throw new B(b);} +e.mX=function(a,b,c){c=c.Be(0>31;a=l(this.dz,a);var d=a>>31;a=b+a|0;b=(-2147483648^a)<(-2147483648^b)?1+(c+d|0)|0:c+d|0;0>31,this.vv=(d===b?(-2147483648^c)<(-2147483648^a):d>31,this.Vk=b===d?(-2147483648^a)<=(-2147483648^c):bthis.dz&&(c=this.wv,d=c>>31,this.vv=(d===b?(-2147483648^c)>(-2147483648^a):d>b)?c:a,c=this.wv,d=c>>31,this.Vk=b===d?(-2147483648^a)>=(-2147483648^c):b>d)}return this};e.p=function(){return this.ur()}; +e.$classData=v({esa:0},!1,"scala.collection.immutable.RangeIterator",{esa:1,qb:1,b:1,Ua:1,J:1,K:1,d:1});function qf(a,b,c){this.pj=this.Xr=this.xv=null;this.Dc=0;this.Pb=null;H3(this,a,b,c)}qf.prototype=new K3;qf.prototype.constructor=qf;qf.prototype.xI=function(a){return G(new H,a.Qa,a.Cb)};qf.prototype.$classData=v({gsa:0},!1,"scala.collection.immutable.RedBlackTree$EntriesIterator",{gsa:1,HW:1,qb:1,b:1,Ua:1,J:1,K:1}); +function a6(a,b){this.pj=this.Xr=this.xv=null;this.Dc=0;this.Pb=null;H3(this,a,E(),b)}a6.prototype=new K3;a6.prototype.constructor=a6;a6.prototype.xI=function(){L();throw new R_;};a6.prototype.$classData=v({hsa:0},!1,"scala.collection.immutable.RedBlackTree$EqualsIterator",{hsa:1,HW:1,qb:1,b:1,Ua:1,J:1,K:1});function b6(a,b,c){this.pj=this.Xr=this.xv=null;this.Dc=0;this.Pb=null;H3(this,a,b,c)}b6.prototype=new K3;b6.prototype.constructor=b6;b6.prototype.xI=function(a){return a.Qa}; +b6.prototype.$classData=v({jsa:0},!1,"scala.collection.immutable.RedBlackTree$KeysIterator",{jsa:1,HW:1,qb:1,b:1,Ua:1,J:1,K:1});function c6(){this.qj=this.Wj=0}c6.prototype=new T_;c6.prototype.constructor=c6;function d6(){}d6.prototype=c6.prototype;c6.prototype.N=function(){return this.qj};c6.prototype.s=function(){return 0a?0:a);return this};function e6(){this.Vu=null;this.Vu=S0()}e6.prototype=new Cda;e6.prototype.constructor=e6;e6.prototype.$classData=v({Esa:0},!1,"scala.collection.immutable.SortedSet$",{Esa:1,JBa:1,EBa:1,b:1,eJ:1,d:1,Vpa:1});var f6;function Ye(){f6||(f6=new e6);return f6}function g6(){this.Gg=this.Yj=0}g6.prototype=new t;g6.prototype.constructor=g6;function h6(){}h6.prototype=g6.prototype; +g6.prototype.Au=function(a){if(this.Yjb&&IM(this,a);return this};g6.prototype.ec=function(a){return this.LT(a)}; +function i6(){this.$J=this.aK=null;j6=this;this.aK=new P2(this);this.$J=new IL(new Za(0))}i6.prototype=new t;i6.prototype.constructor=i6;e=i6.prototype;e.Hx=function(a,b){return Ss(0,wL(Ns(),a,b))};e.Co=function(a){a=new GR(a.me());return new tS(a,new C((()=>b=>Ss(Ts(),b))(this)))}; +function Ss(a,b){if(null===b)return null;if(b instanceof Za)return new IL(b);if(b instanceof eb)return new k6(b);if(b instanceof jb)return new l6(b);if(b instanceof fb)return new m6(b);if(b instanceof gb)return new n6(b);if(b instanceof bb)return new JL(b);if(b instanceof cb)return new LL(b);if(b instanceof db)return new ol(b);if(b instanceof ab)return new o6(b);if(Rm(b))return new p6(b);throw new B(b);}e.mX=function(a,b,c){c=this.Co(c);c.oc(a);for(var d=0;d>>16|0),ly(W(),a));return this};s6.prototype.$classData=v({Kta:0},!1,"scala.collection.mutable.HashMap$$anon$5",{Kta:1,ZW:1,qb:1,b:1,Ua:1,J:1,K:1}); +function t6(a){this.dp=0;this.lm=null;this.mz=0;this.lz=null;m4(this,a)}t6.prototype=new o4;t6.prototype.constructor=t6;t6.prototype.yH=function(a){return a.ep};t6.prototype.$classData=v({Pta:0},!1,"scala.collection.mutable.HashSet$$anon$1",{Pta:1,$W:1,qb:1,b:1,Ua:1,J:1,K:1});function u6(a){this.dp=0;this.lm=null;this.mz=0;this.lz=null;m4(this,a)}u6.prototype=new o4;u6.prototype.constructor=u6;u6.prototype.yH=function(a){return a}; +u6.prototype.$classData=v({Qta:0},!1,"scala.collection.mutable.HashSet$$anon$2",{Qta:1,$W:1,qb:1,b:1,Ua:1,J:1,K:1});function v6(a){this.dp=0;this.lm=null;this.mz=0;this.lz=null;this.cK=0;if(null===a)throw I(J(),null);m4(this,a);this.cK=0}v6.prototype=new o4;v6.prototype.constructor=v6;v6.prototype.v=function(){return this.cK};v6.prototype.yH=function(a){this.cK=w6(a.Yk);return this};v6.prototype.$classData=v({Rta:0},!1,"scala.collection.mutable.HashSet$$anon$3",{Rta:1,$W:1,qb:1,b:1,Ua:1,J:1,K:1}); +function YM(){}YM.prototype=new B4;YM.prototype.constructor=YM;YM.prototype.g=function(){return"Duration.Undefined"};YM.prototype.c=function(){return!1};YM.prototype.Kx=function(a){return a===this?0:1};YM.prototype.$classData=v({Tma:0},!1,"scala.concurrent.duration.Duration$$anon$1",{Tma:1,xV:1,OI:1,b:1,d:1,vh:1,Bb:1});function ZM(){}ZM.prototype=new B4;ZM.prototype.constructor=ZM;ZM.prototype.g=function(){return"Duration.Inf"};ZM.prototype.Kx=function(a){return a===WM().OC?-1:a===this?0:1}; +ZM.prototype.$classData=v({Uma:0},!1,"scala.concurrent.duration.Duration$$anon$2",{Uma:1,xV:1,OI:1,b:1,d:1,vh:1,Bb:1});function $M(){}$M.prototype=new B4;$M.prototype.constructor=$M;$M.prototype.g=function(){return"Duration.MinusInf"};$M.prototype.Kx=function(a){return a===this?0:-1};$M.prototype.$classData=v({Vma:0},!1,"scala.concurrent.duration.Duration$$anon$3",{Vma:1,xV:1,OI:1,b:1,d:1,vh:1,Bb:1});function Xe(a,b){this.VI=this.FV=null;if(null===a)throw I(J(),null);this.FV=a;this.VI=b} +Xe.prototype=new t;Xe.prototype.constructor=Xe;e=Xe.prototype;e.uf=function(a,b){return 0>=this.$(a,b)};e.ug=function(a,b){return E4(this,a,b)};e.wg=function(a,b){return 0>this.$(a,b)};e.tg=function(a,b){return 0h=>g.r(ng(L(),h)))(a,b)))):new $4(a,d,b)}function nY(a,b,c){return Bea(a,new C((d=>f=>{var g=new zT;f.Fa(new C(((h,k)=>n=>k.Ia(n))(d,g)));return xT(g)})(a)),b,c)} +function Cea(a){a.oia=new Z4(a);a.qg=new a5(a);a.Zha=new y6(a);a.tx=new z6(a);a.cia=new A6(a);a.iia=new B6(a);a.Vha=new C6(a);a.I=new b5(a);a.Xha=new D6(a);a.mia=new c5(a,new C((()=>b=>{b=Ma(b);a:{RK();36===(b.length|0)&&45===(65535&(b.charCodeAt(8)|0))&&45===(65535&(b.charCodeAt(13)|0))&&45===(65535&(b.charCodeAt(18)|0))&&45===(65535&(b.charCodeAt(23)|0))||OK(b);try{var c=b.substring(0,4),d=b.substring(4,8),f=Rt(St(),c,16)<<16|Rt(St(),d,16),g=b.substring(9,13),h=b.substring(14,18),k=Rt(St(),g,16)<< +16|Rt(St(),h,16),n=b.substring(19,23),r=b.substring(24,28),u=Rt(St(),n,16)<<16|Rt(St(),r,16),w=b.substring(28,32),y=b.substring(32,36),K=Rt(St(),w,16)<<16|Rt(St(),y,16);var U=new SK(f,k,u,K,null,null);break a}catch(Z){if(Z instanceof wA)OK(b);else throw Z;}U=void 0}return U})(a)));a.gia=new E6(a);a.Tha=new c5(a,new C((()=>b=>{var c=wd();return xd(c,yd(Ma(b)))})(a)));a.Rha=new c5(a,new C((()=>b=>{var c=Vx(),d=Ma(b);b=new PJ;gN(b,Oz(d),d.length|0);c=g_(b)<=c.Ho.Al?c.Ho:new Tn(g_(b),Xn().Zw);return new jM(b, +c)})(a)));a.kia=new c5(a,new C((()=>b=>{xR||(xR=new wR);return qs.prototype.Bja.call(xR,Ma(b))})(a)));a.UG=new c5(a,new C((()=>b=>{if(105===wa(b,0)&&110===wa(b,1)&&102===wa(b,2)&&3===La(b))return WM().PI;if(45===wa(b,0)&&105===wa(b,1)&&110===wa(b,2)&&102===wa(b,3)&&4===La(b))return WM().QI;if(117===wa(b,0)&&110===wa(b,1)&&100===wa(b,2)&&101===wa(b,3)&&102===wa(b,4)&&5===La(b))return WM().OC;WM();var c=vA(xA(),b,0,La(b));b=c.k;c=c.o;var d=kL().hy;return new XM(new p(b,c),d)})(a)));a.eia=a.UG;a.aia= +a.UG}function D6(a){this.US=null;if(null===a)throw I(J(),null);this.US=a}D6.prototype=new t;D6.prototype.constructor=D6;e=D6.prototype;e.yc=function(){return null};e.Sc=function(){return YO(this)};e.Qc=function(){return ZO(this)};e.ca=function(){return bP(this)};e.Gb=function(){return cP(this)};e.Hd=function(){return jP(this)};e.Jd=function(){return kP(this)};e.Mc=function(){return"expected char"};e.mf=function(){return this.US};e.bc=function(a,b,c){a=65535&uA(xA(),a,b,c).k;return q(a)}; +e.xc=function(a){return q(65535&Qa(a))};e.xd=function(a){return q(65535&Qa(a))};e.Kd=function(a){return q(65535&a.k)};e.yd=function(a){return q(65535&a.k)};e.Rc=function(a){return q(65535&a)};e.Id=function(a){return q(a)};e.n=function(a){return q(wa(a,0))};e.$classData=v({tia:0},!1,"upickle.implicits.Readers$$anon$10",{tia:1,b:1,su:1,ya:1,qa:1,la:1,wa:1});function E6(a){this.VS=null;if(null===a)throw I(J(),null);this.VS=a}E6.prototype=new t;E6.prototype.constructor=E6;e=E6.prototype;e.yc=function(){return null}; +e.Sc=function(){return YO(this)};e.Qc=function(){return ZO(this)};e.ca=function(){return bP(this)};e.Gb=function(){return cP(this)};e.Id=function(){return iP(this)};e.Hd=function(){return jP(this)};e.Jd=function(){return kP(this)};e.Mc=function(){return"expected number"};e.mf=function(){return this.VS};e.bc=function(a,b,c){return uA(xA(),a,b,c)};e.xc=function(a){var b=Aa();a=gs(b,a);return new p(a,b.za)};e.xd=function(a){var b=Aa();a=gs(b,a);return new p(a,b.za)};e.Kd=function(a){return a};e.yd=function(a){return a}; +e.Rc=function(a){return new p(a,a>>31)};e.n=function(a){return vA(xA(),a,0,La(a))};e.$classData=v({uia:0},!1,"upickle.implicits.Readers$$anon$11",{uia:1,b:1,su:1,ya:1,qa:1,la:1,wa:1});function y6(a){this.gT=null;if(null===a)throw I(J(),null);this.gT=a}y6.prototype=new t;y6.prototype.constructor=y6;e=y6.prototype;e.yc=function(){return null};e.Sc=function(){return YO(this)};e.Qc=function(){return ZO(this)};e.ca=function(){return bP(this)};e.Gb=function(){return cP(this)};e.Id=function(){return iP(this)}; +e.Hd=function(){return jP(this)};e.Jd=function(){return kP(this)};e.Mc=function(){return"expected number"};e.mf=function(){return this.gT};e.bc=function(a){a=Ma(a);return II(ya(),a)};e.xc=function(a){return a};e.xd=function(a){return a};e.Kd=function(a){return bs(Aa(),a.k,a.o)};e.yd=function(a){return bs(Aa(),a.k,a.o)};e.Rc=function(a){return a};e.n=function(a){a=Ma(a);return II(ya(),a)};e.$classData=v({Cia:0},!1,"upickle.implicits.Readers$$anon$4",{Cia:1,b:1,su:1,ya:1,qa:1,la:1,wa:1}); +function z6(a){this.hT=null;if(null===a)throw I(J(),null);this.hT=a}z6.prototype=new t;z6.prototype.constructor=z6;e=z6.prototype;e.yc=function(){return null};e.Sc=function(){return YO(this)};e.Qc=function(){return ZO(this)};e.n=function(){return $O(this)};e.ca=function(){return bP(this)};e.Gb=function(){return cP(this)};e.Id=function(){return iP(this)};e.Hd=function(){return jP(this)};e.Jd=function(){return kP(this)};e.Mc=function(){return"expected number"};e.mf=function(){return this.hT}; +e.bc=function(a,b,c){return uA(xA(),a,b,c).k};e.xc=function(a){return Qa(a)};e.xd=function(a){return Qa(a)};e.Kd=function(a){return a.k};e.yd=function(a){return a.k};e.Rc=function(a){return a};e.$classData=v({Dia:0},!1,"upickle.implicits.Readers$$anon$5",{Dia:1,b:1,su:1,ya:1,qa:1,la:1,wa:1});function A6(a){this.iT=null;if(null===a)throw I(J(),null);this.iT=a}A6.prototype=new t;A6.prototype.constructor=A6;e=A6.prototype;e.yc=function(){return null};e.Sc=function(){return YO(this)};e.Qc=function(){return ZO(this)}; +e.ca=function(){return bP(this)};e.Gb=function(){return cP(this)};e.Id=function(){return iP(this)};e.Hd=function(){return jP(this)};e.Jd=function(){return kP(this)};e.Mc=function(){return"expected number"};e.mf=function(){return this.iT};e.bc=function(a){a=Ma(a);return OI(QI(),a)};e.xc=function(a){return da(a)};e.xd=function(a){return a};e.Kd=function(a){return da(bs(Aa(),a.k,a.o))};e.yd=function(a){return da(bs(Aa(),a.k,a.o))};e.Rc=function(a){return da(a)}; +e.n=function(a){a=Ma(a);return OI(QI(),a)};e.$classData=v({Eia:0},!1,"upickle.implicits.Readers$$anon$6",{Eia:1,b:1,su:1,ya:1,qa:1,la:1,wa:1});function B6(a){this.jT=null;if(null===a)throw I(J(),null);this.jT=a}B6.prototype=new t;B6.prototype.constructor=B6;e=B6.prototype;e.yc=function(){return null};e.Sc=function(){return YO(this)};e.Qc=function(){return ZO(this)};e.n=function(){return $O(this)};e.ca=function(){return bP(this)};e.Gb=function(){return cP(this)};e.Id=function(){return iP(this)}; +e.Hd=function(){return jP(this)};e.Jd=function(){return kP(this)};e.Mc=function(){return"expected number"};e.mf=function(){return this.jT};e.bc=function(a,b,c){return uA(xA(),a,b,c).k<<16>>16};e.xc=function(a){return Qa(a)<<16>>16};e.xd=function(a){return Qa(a)<<16>>16};e.Kd=function(a){return a.k<<16>>16};e.yd=function(a){return a.k<<16>>16};e.Rc=function(a){return a<<16>>16};e.$classData=v({Fia:0},!1,"upickle.implicits.Readers$$anon$7",{Fia:1,b:1,su:1,ya:1,qa:1,la:1,wa:1}); +function C6(a){this.kT=null;if(null===a)throw I(J(),null);this.kT=a}C6.prototype=new t;C6.prototype.constructor=C6;e=C6.prototype;e.yc=function(){return null};e.Sc=function(){return YO(this)};e.Qc=function(){return ZO(this)};e.n=function(){return $O(this)};e.ca=function(){return bP(this)};e.Gb=function(){return cP(this)};e.Id=function(){return iP(this)};e.Hd=function(){return jP(this)};e.Jd=function(){return kP(this)};e.Mc=function(){return"expected number"};e.mf=function(){return this.kT}; +e.bc=function(a,b,c){return uA(xA(),a,b,c).k<<24>>24};e.xc=function(a){return Qa(a)<<24>>24};e.xd=function(a){return Qa(a)<<24>>24};e.Kd=function(a){return a.k<<24>>24};e.yd=function(a){return a.k<<24>>24};e.Rc=function(a){return a<<24>>24};e.$classData=v({Gia:0},!1,"upickle.implicits.Readers$$anon$8",{Gia:1,b:1,su:1,ya:1,qa:1,la:1,wa:1});function kW(){jW=this;new iW(this)}kW.prototype=new t;kW.prototype.constructor=kW; +kW.prototype.$classData=v({e_:0},!1,"cats.instances.package$option$",{e_:1,b:1,FK:1,WK:1,XK:1,YK:1,ZK:1,GK:1});var jW;function F6(a,b,c,d,f,g,h){this.$E=this.ZE=this.Ap=null;this.OE=a;this.jw=b;this.kw=c;this.PE=d;this.QE=f;this.RE=g;this.NE=h;wh(this);this.Ap=Aw()}F6.prototype=new wQ;F6.prototype.constructor=F6;e=F6.prototype; +e.dV=function(a){var b=eh().wb,c=fh();gh(hh(b),c.Tb)&&ih(eh().wb,fh(),new jh("com/github/p2m2/js/src/main/scala/inrae/semantic_web/driver/AxiosRequestDriver.scala","AxiosRequestDriver.scala",25,10)," -- HttpRequestDriver \x3e "+va(this));b=new pC(qC().Xz);vh(this,b);switch(this.jw.toLowerCase()){case "post":return Dea(this,a);case "get":return Eea(this,a);default:throw a=this.jw,b=E(),yg(),b.i()||Ci(),new n5("Unknown http type request : "+a);}}; +function Eea(a,b){var c=new pC(qC().Tz);vh(a,c);c=Af(new Bf,[G(new H,"Accept","application/json")]);c=Lg(Mg(),c);c=[G(new H,"header",c)];c=Af(new Bf,c);c=Lg(Mg(),c);Jy();b=Ra(ba).get(a.kw+"?query\x3d"+encodeURIComponent(b),c);return lC(Vw(Gy(b),new C((d=>f=>{var g=new pC(qC().Sz);vh(d,g);return new oC(JSON.stringify(f.data),"json")})(a)),a.Ap),new Y1(a),a.Ap)} +function Dea(a,b){var c=new pC(qC().Tz);vh(a,c);c=G(new H,"url",a.kw);var d=G(new H,"method","POST"),f=Af(new Bf,[G(new H,"Accept","application/json"),G(new H,"Content-Type","application/x-www-form-urlencoded")]);f=Lg(Mg(),f);f=G(new H,"header",f);var g=Ra(aaa);b=[G(new H,"query",b)];b=Af(new Bf,b);b=g.stringify(Lg(Mg(),b));c=[c,d,f,G(new H,"data",b)];c=Af(new Bf,c);c=Lg(Mg(),c);Jy();c=Ra(ba).request(c);return lC(Vw(Gy(c),new C((h=>k=>{var n=new pC(qC().Sz);vh(h,n);return new oC(JSON.stringify(k.data), +"json")})(a)),a.Ap),new Z1(a),a.Ap)}e.A=function(){return"AxiosRequestDriver"};e.B=function(){return 7};e.C=function(a){switch(a){case 0:return this.OE;case 1:return this.jw;case 2:return this.kw;case 3:return this.PE;case 4:return this.QE;case 5:return this.RE;case 6:return this.NE;default:return T(W(),a)}};e.v=function(){return ig(D(),this)};e.g=function(){return fy(this)}; +e.c=function(a){return this===a?!0:a instanceof F6?this.OE===a.OE&&this.jw===a.jw&&this.kw===a.kw&&this.PE===a.PE&&this.QE===a.QE&&this.RE===a.RE&&this.NE===a.NE:!1};e.$classData=v({O3:0},!1,"inrae.semantic_web.driver.AxiosRequestDriver",{O3:1,Lza:1,b:1,X3:1,Yz:1,y:1,m:1,d:1}); +function vl(a){this.tM=this.Pz=this.Ow=this.Nw=null;this.SE=a;wh(this);this.Pz=Aw();var b=Ow();a:{var c=a.qc();a=new $1(this);if(c===A())a=A();else{for(var d=null,f;null===d;)if(f=a.Lc(c.G(),Wb().Zy),f!==Wb().Zy&&(d=new Vb(f,A())),c=c.L(),c===A()){a=null===d?A():d;break a}for(var g=d;c!==A();)f=a.Lc(c.G(),Wb().Zy),f!==Wb().Zy&&(f=new Vb(f,A()),g=g.Ma=f),c=c.L();a=d}}c=AR();this.tM=Ww(b,a,new ZL(c),this.Pz)}vl.prototype=new GQ;vl.prototype.constructor=vl;e=vl.prototype; +e.vH=function(a){var b=new pC(qC().Uz);vh(this,b);a=dh(lh(),a.Ab.eb);return Fea(this,a)};function Fea(a,b){return kC(a.tM,new C(((c,d)=>f=>hC(cC(),d,f))(a,b)),a.Pz)}e.A=function(){return"ComunicaFederatedStrategy"};e.B=function(){return 1};e.C=function(a){return 0===a?this.SE:T(W(),a)};e.v=function(){return ig(D(),this)};e.g=function(){return fy(this)};e.c=function(a){if(this===a)return!0;if(a instanceof vl){var b=this.SE;a=a.SE;return null===b?null===a:b.c(a)}return!1}; +e.$classData=v({R3:0},!1,"inrae.semantic_web.driver.ComunicaFederatedStrategy",{R3:1,DR:1,b:1,Yz:1,fF:1,y:1,m:1,d:1});function Mj(a,b,c,d){this.Jc=this.Ic=this.Ad=this.Kc=this.V=this.U=this.D=null;DQ(this,a,b,c,d)}Mj.prototype=new EQ;Mj.prototype.constructor=Mj;e=Mj.prototype;e.La=function(){return this.Kc};e.Ja=function(){return this.Ic};e.kb=function(){return this.Jc};e.sb=function(a,b){return new Mj(this.Kc,this.Ad,a,b)};e.A=function(){return"LinkFrom"};e.B=function(){return 4}; +e.C=function(a){switch(a){case 0:return this.Kc;case 1:return this.Ad;case 2:return this.Ic;case 3:return this.Jc;default:return T(W(),a)}};e.v=function(){return ig(D(),this)};e.c=function(a){if(this===a)return!0;if(a instanceof Mj){if(this.Kc===a.Kc){var b=this.Ad,c=a.Ad;b=null===b?null===c:b.c(c)}else b=!1;if(b&&(b=this.Ic,c=a.Ic,null===b?null===c:b.c(c)))return b=this.Jc,a=a.Jc,null===b?null===a:b.c(a)}return!1}; +var bE=v({N6:0},!1,"inrae.semantic_web.node.LinkFrom",{N6:1,iF:1,mt:1,vb:1,b:1,y:1,m:1,d:1});Mj.prototype.$classData=bE;function Lj(a,b,c,d){this.Jc=this.Ic=this.Ad=this.Kc=this.V=this.U=this.D=null;DQ(this,a,b,c,d)}Lj.prototype=new EQ;Lj.prototype.constructor=Lj;e=Lj.prototype;e.La=function(){return this.Kc};e.Ja=function(){return this.Ic};e.kb=function(){return this.Jc};e.sb=function(a,b){return new Lj(this.Kc,this.Ad,a,b)};e.A=function(){return"LinkTo"};e.B=function(){return 4}; +e.C=function(a){switch(a){case 0:return this.Kc;case 1:return this.Ad;case 2:return this.Ic;case 3:return this.Jc;default:return T(W(),a)}};e.v=function(){return ig(D(),this)};e.c=function(a){if(this===a)return!0;if(a instanceof Lj){if(this.Kc===a.Kc){var b=this.Ad,c=a.Ad;b=null===b?null===c:b.c(c)}else b=!1;if(b&&(b=this.Ic,c=a.Ic,null===b?null===c:b.c(c)))return b=this.Jc,a=a.Jc,null===b?null===a:b.c(a)}return!1}; +var hE=v({W6:0},!1,"inrae.semantic_web.node.LinkTo",{W6:1,iF:1,mt:1,vb:1,b:1,y:1,m:1,d:1});Lj.prototype.$classData=hE;function Kj(a,b,c,d){this.Jc=this.Ic=this.Ad=this.Kc=this.V=this.U=this.D=null;DQ(this,a,b,c,d)}Kj.prototype=new EQ;Kj.prototype.constructor=Kj;e=Kj.prototype;e.La=function(){return this.Kc};e.Ja=function(){return this.Ic};e.kb=function(){return this.Jc};e.sb=function(a,b){return new Kj(this.Kc,this.Ad,a,b)};e.A=function(){return"ObjectOf"};e.B=function(){return 4}; +e.C=function(a){switch(a){case 0:return this.Kc;case 1:return this.Ad;case 2:return this.Ic;case 3:return this.Jc;default:return T(W(),a)}};e.v=function(){return ig(D(),this)};e.c=function(a){if(this===a)return!0;if(a instanceof Kj){if(this.Kc===a.Kc){var b=this.Ad,c=a.Ad;b=null===b?null===c:b.c(c)}else b=!1;if(b&&(b=this.Ic,c=a.Ic,null===b?null===c:b.c(c)))return b=this.Jc,a=a.Jc,null===b?null===a:b.c(a)}return!1}; +var EE=v({J7:0},!1,"inrae.semantic_web.node.ObjectOf",{J7:1,iF:1,mt:1,vb:1,b:1,y:1,m:1,d:1});Kj.prototype.$classData=EE;function Dk(a,b,c,d){this.Je=this.Ie=this.Qe=this.V=this.U=this.D=null;this.Dw=a;AQ(this,b,c,d)}Dk.prototype=new CQ;Dk.prototype.constructor=Dk;e=Dk.prototype;e.La=function(){return this.Qe};e.Ja=function(){return this.Ie};e.kb=function(){return this.Je};e.sb=function(a,b){return new Dk(this.Dw,this.Qe,a,b)};e.A=function(){return"SparqlDefinitionExpression"};e.B=function(){return 4}; +e.C=function(a){switch(a){case 0:return this.Dw;case 1:return this.Qe;case 2:return this.Ie;case 3:return this.Je;default:return T(W(),a)}};e.v=function(){return ig(D(),this)};e.c=function(a){if(this===a)return!0;if(a instanceof Dk){var b=this.Dw,c=a.Dw;if((null===b?null===c:b.c(c))&&this.Qe===a.Qe&&(b=this.Ie,c=a.Ie,null===b?null===c:b.c(c)))return b=this.Je,a=a.Je,null===b?null===a:b.c(a)}return!1}; +var iG=v({o$:0},!1,"inrae.semantic_web.node.SparqlDefinitionExpression",{o$:1,Ej:1,Dj:1,vb:1,b:1,y:1,m:1,d:1});Dk.prototype.$classData=iG;function Jj(a,b,c,d){this.Jc=this.Ic=this.Ad=this.Kc=this.V=this.U=this.D=null;DQ(this,a,b,c,d)}Jj.prototype=new EQ;Jj.prototype.constructor=Jj;e=Jj.prototype;e.La=function(){return this.Kc};e.Ja=function(){return this.Ic};e.kb=function(){return this.Jc};e.sb=function(a,b){return new Jj(this.Kc,this.Ad,a,b)};e.A=function(){return"SubjectOf"};e.B=function(){return 4}; +e.C=function(a){switch(a){case 0:return this.Kc;case 1:return this.Ad;case 2:return this.Ic;case 3:return this.Jc;default:return T(W(),a)}};e.v=function(){return ig(D(),this)};e.c=function(a){if(this===a)return!0;if(a instanceof Jj){if(this.Kc===a.Kc){var b=this.Ad,c=a.Ad;b=null===b?null===c:b.c(c)}else b=!1;if(b&&(b=this.Ic,c=a.Ic,null===b?null===c:b.c(c)))return b=this.Jc,a=a.Jc,null===b?null===a:b.c(a)}return!1}; +var HG=v({jaa:0},!1,"inrae.semantic_web.node.SubjectOf",{jaa:1,iF:1,mt:1,vb:1,b:1,y:1,m:1,d:1});Jj.prototype.$classData=HG; +function ul(a){this.qF=this.Ow=this.Nw=null;this.rF=a;wh(this);uh||(uh=new rh);a:{switch(a.Ri){case "application/sparql-query":if(""!==a.Ig){a=new F6(a.xp,a.ml,a.Ig,a.Um,a.Vm,a.nl,a.ll);break a}break;case "application/trig":case "application/n-quads":case "text/turtle":case "application/n-triples":case "text/n3":case "application/ld+json":case "application/json":case "application/rdf+xml":case "text/rdf-xml":case "text/html":case "application/xhtml+xml":case "image/svg+xml":case "application/xml":a=new m5(a.xp, +a.Ig,a.Bj,a.Ri,a.Um,a.Vm,"file");break a}a=a.g();var b=E();yg();b.i()||Ci();throw new Di("Bad definition of source configuration :"+a);}a=this.qF=a;a.Ux(W1(a.Vx(),this))}ul.prototype=new GQ;ul.prototype.constructor=ul;e=ul.prototype;e.vH=function(a){var b=new pC(qC().Uz);vh(this,b);a=dh(lh(),a.Ab.eb);return bca(this.qF,a)};e.A=function(){return"DiscoveryStrategyRequest"};e.B=function(){return 1};e.C=function(a){return 0===a?this.rF:T(W(),a)};e.v=function(){return ig(D(),this)};e.g=function(){return fy(this)}; +e.c=function(a){if(this===a)return!0;if(a instanceof ul){var b=this.rF;a=a.rF;return null===b?null===a:b.c(a)}return!1};e.$classData=v({zca:0},!1,"inrae.semantic_web.strategy.DiscoveryStrategyRequest",{zca:1,DR:1,b:1,Yz:1,fF:1,y:1,m:1,d:1});function tl(a){this.sF=this.Ow=this.Nw=null;this.Mw=a;wh(this);this.sF=Aw()}tl.prototype=new GQ;tl.prototype.constructor=tl;e=tl.prototype; +e.vH=function(a){M(L().KI,Af(new Bf,[G(new H,"Content-Type","application/json"),G(new H,"Content-Type","text/plain")]));L();var b=G(new H,"url",this.Mw),c=G(new H,"method","POST"),d=G(new H,"type","transaction"),f=X();X();X();var g=IB().Lz;a=eY(f,a,g);b=[b,c,d,G(new H,"object",a)];b=Af(new Bf,b);M(0,b);CX(BL().JC.By,Ma(Ra(ba))+"\n");Jy();b=Ra(ba).post(this.Mw);return lC(Vw(Gy(b),new C((()=>h=>new oC(Ma(h),"json"))(this)),this.sF),new a2(this),this.sF)};e.A=function(){return"ProxyStrategyRequest"}; +e.B=function(){return 1};e.C=function(a){return 0===a?this.Mw:T(W(),a)};e.v=function(){return ig(D(),this)};e.g=function(){return fy(this)};e.c=function(a){return this===a?!0:a instanceof tl?this.Mw===a.Mw:!1};e.$classData=v({Aca:0},!1,"inrae.semantic_web.strategy.ProxyStrategyRequest",{Aca:1,DR:1,b:1,Yz:1,fF:1,y:1,m:1,d:1});function oI(a,b){this.wA=a;this.Hca=b}oI.prototype=new t;oI.prototype.constructor=oI;e=oI.prototype;e.g=function(){return this.rm(this.Hca)};e.AI=function(){return this.wA}; +e.rm=function(a){return"/"+b2(this,a)};e.A=function(){return"AbsolutePath"};e.B=function(){return 1};e.C=function(a){return 0===a?this.wA:T(W(),a)};e.v=function(){return ig(D(),this)};e.c=function(a){if(this===a)return!0;if(a instanceof oI){var b=this.wA;a=a.wA;return null===b?null===a:b.c(a)}return!1};e.$classData=v({Fca:0},!1,"io.lemonlabs.uri.AbsolutePath",{Fca:1,b:1,Eca:1,LR:1,IR:1,y:1,m:1,d:1});function qI(){}qI.prototype=new t;qI.prototype.constructor=qI;e=qI.prototype;e.g=function(){cI();return""}; +e.AI=function(){z();return Lv()};e.rm=function(){return""};e.A=function(){return"EmptyPath"};e.B=function(){return 0};e.C=function(a){return T(W(),a)};e.v=function(){return 583864050};e.$classData=v({Lca:0},!1,"io.lemonlabs.uri.EmptyPath$",{Lca:1,b:1,Eca:1,LR:1,IR:1,y:1,m:1,d:1});var pI;v({Rca:0},!1,"io.lemonlabs.uri.ProtocolRelativeUrl",{Rca:1,b:1,gda:1,AF:1,zF:1,y:1,m:1,d:1});function G6(){}G6.prototype=new p2;G6.prototype.constructor=G6;function Gea(){}Gea.prototype=G6.prototype; +G6.prototype.GC=function(a){this.FC(a);CX(this,"\n")};G6.prototype.vu=function(a){this.FC(null===a?"null":Ma(a))};function yo(a,b,c,d,f,g){this.Gj=this.S=this.pa=this.eh=0;this.cG=g;this.of=b;this.Kg=c;lo(this,a);mo.prototype.Ba.call(this,d);mo.prototype.qI.call(this,f)}yo.prototype=new r5;yo.prototype.constructor=yo;e=yo.prototype;e.Yh=function(){return this.cG};e.oK=function(a,b){if(0>a||b(this.pa-this.S|0))throw xo();return new yo(this.eh,this.of,this.Kg,this.S+a|0,this.S+b|0,this.cG)}; +e.jr=function(){var a=this.S;if(a===this.pa)throw new lp;this.S=1+a|0;return this.of.a[this.Kg+a|0]};e.Ol=function(a){if(this.cG)throw new ep;var b=this.S;if(b===this.pa)throw new fp;this.S=1+b|0;this.of.a[this.Kg+b|0]=a};e.XT=function(a){if(0>a||a>=this.pa)throw xo();return this.of.a[this.Kg+a|0]};e.WT=function(a,b,c){if(0>b||0>c||b>(a.a.length-c|0))throw xo();var d=this.S,f=d+c|0;if(f>this.pa)throw new lp;this.S=f;this.of.Z(this.Kg+d|0,a,b,c)};e.jy=function(a){return this.of.a[this.Kg+a|0]}; +e.lX=function(a,b){this.of.a[this.Kg+a|0]=b};e.kX=function(a,b,c,d){b.Z(c,this.of,this.Kg+a|0,d)};e.gp=function(a,b){return this.oK(a,b)};e.$classData=v({Xea:0},!1,"java.nio.HeapCharBuffer",{Xea:1,Tea:1,jS:1,b:1,Bb:1,ro:1,Fu:1,eka:1});function Co(a,b,c,d,f){this.Gj=this.S=this.pa=this.eh=0;this.Rt=b;this.St=c;this.of=null;this.Kg=-1;lo(this,a);mo.prototype.Ba.call(this,d);mo.prototype.qI.call(this,f)}Co.prototype=new r5;Co.prototype.constructor=Co;e=Co.prototype;e.Yh=function(){return!0}; +e.oK=function(a,b){if(0>a||b(this.pa-this.S|0))throw xo();return new Co(this.eh,this.Rt,this.St,this.S+a|0,this.S+b|0)};e.jr=function(){var a=this.S;if(a===this.pa)throw new lp;this.S=1+a|0;return wa(this.Rt,this.St+a|0)};e.Ol=function(){throw new ep;};e.XT=function(a){if(0>a||a>=this.pa)throw xo();return wa(this.Rt,this.St+a|0)}; +e.WT=function(a,b,c){if(0>b||0>c||b>(a.a.length-c|0))throw xo();var d=this.S,f=d+c|0;if(f>this.pa)throw new lp;this.S=f;for(c=d+c|0;d!==c;)a.a[b]=wa(this.Rt,this.St+d|0),d=1+d|0,b=1+b|0};e.g=function(){var a=this.St;var b=this.Rt;var c=this.S+a|0;a=this.pa+a|0;b="string"===typeof b?b.substring(c,a):b.gp(c,a);return Ma(b)};e.jy=function(a){return wa(this.Rt,this.St+a|0)};e.lX=function(){throw new ep;};e.kX=function(){throw new ep;};e.gp=function(a,b){return this.oK(a,b)}; +e.$classData=v({Zea:0},!1,"java.nio.StringCharBuffer",{Zea:1,Tea:1,jS:1,b:1,Bb:1,ro:1,Fu:1,eka:1});class uJ extends t5{constructor(a){super();this.Eka=a;iJ(this,null,null);if(null===a)throw P();}bf(){return"Flags \x3d '"+this.Eka+"'"}}uJ.prototype.$classData=v({Dka:0},!1,"java.util.DuplicateFormatFlagsException",{Dka:1,Bk:1,oh:1,tc:1,ub:1,gb:1,b:1,d:1}); +class K_ extends t5{constructor(a,b){super();this.Hka=a;this.Gka=b;iJ(this,null,null);if(null===a)throw P();}bf(){return"Conversion \x3d "+q(this.Gka)+", Flags \x3d "+this.Hka}}K_.prototype.$classData=v({Fka:0},!1,"java.util.FormatFlagsConversionMismatchException",{Fka:1,Bk:1,oh:1,tc:1,ub:1,gb:1,b:1,d:1});class CJ extends t5{constructor(a){super();this.Vka=a;iJ(this,null,null)}bf(){return this.Vka}} +CJ.prototype.$classData=v({Uka:0},!1,"java.util.IllegalFormatArgumentIndexException",{Uka:1,Bk:1,oh:1,tc:1,ub:1,gb:1,b:1,d:1});class GJ extends t5{constructor(a){super();this.Xka=a;iJ(this,null,null)}bf(){return"Code point \x3d 0x"+(+(this.Xka>>>0)).toString(16)}}GJ.prototype.$classData=v({Wka:0},!1,"java.util.IllegalFormatCodePointException",{Wka:1,Bk:1,oh:1,tc:1,ub:1,gb:1,b:1,d:1}); +class L_ extends t5{constructor(a,b){super();this.$ka=a;this.Zka=b;iJ(this,null,null);if(null===b)throw P();}bf(){return String.fromCharCode(this.$ka)+" !\x3d "+this.Zka.ze.name}}L_.prototype.$classData=v({Yka:0},!1,"java.util.IllegalFormatConversionException",{Yka:1,Bk:1,oh:1,tc:1,ub:1,gb:1,b:1,d:1});class J_ extends t5{constructor(a){super();this.bla=a;iJ(this,null,null);if(null===a)throw P();}bf(){return"Flags \x3d '"+this.bla+"'"}} +J_.prototype.$classData=v({ala:0},!1,"java.util.IllegalFormatFlagsException",{ala:1,Bk:1,oh:1,tc:1,ub:1,gb:1,b:1,d:1});class I_ extends t5{constructor(a){super();this.dla=a;iJ(this,null,null)}bf(){return""+this.dla}}I_.prototype.$classData=v({cla:0},!1,"java.util.IllegalFormatPrecisionException",{cla:1,Bk:1,oh:1,tc:1,ub:1,gb:1,b:1,d:1});class wJ extends t5{constructor(a){super();this.fla=a;iJ(this,null,null)}bf(){return""+this.fla}} +wJ.prototype.$classData=v({ela:0},!1,"java.util.IllegalFormatWidthException",{ela:1,Bk:1,oh:1,tc:1,ub:1,gb:1,b:1,d:1});class DJ extends t5{constructor(a){super();this.ila=a;iJ(this,null,null);if(null===a)throw P();}bf(){return"Format specifier '"+this.ila+"'"}}DJ.prototype.$classData=v({hla:0},!1,"java.util.MissingFormatArgumentException",{hla:1,Bk:1,oh:1,tc:1,ub:1,gb:1,b:1,d:1}); +class zJ extends t5{constructor(a){super();this.kla=a;iJ(this,null,null);if(null===a)throw P();}bf(){return this.kla}}zJ.prototype.$classData=v({jla:0},!1,"java.util.MissingFormatWidthException",{jla:1,Bk:1,oh:1,tc:1,ub:1,gb:1,b:1,d:1});class H_ extends t5{constructor(a){super();this.vla=a;iJ(this,null,null);if(null===a)throw P();}bf(){return"Conversion \x3d '"+this.vla+"'"}}H_.prototype.$classData=v({ula:0},!1,"java.util.UnknownFormatConversionException",{ula:1,Bk:1,oh:1,tc:1,ub:1,gb:1,b:1,d:1}); +function bQ(a,b){this.dy=0;this.Rg=null;this.xi=this.ey=0;G2(this,a,b)}bQ.prototype=new wea;bQ.prototype.constructor=bQ;bQ.prototype.ZU=function(){return new nR(this)};bQ.prototype.YU=function(){return new mR(this)};bQ.prototype.$classData=v({xla:0},!1,"java.util.concurrent.ConcurrentHashMap$InnerHashMap",{xla:1,OAa:1,rU:1,lU:1,b:1,rC:1,d:1,ld:1});v({vja:0},!1,"scala.Tuple2$mcII$sp",{vja:1,fH:1,b:1,kV:1,y:1,m:1,d:1,$Aa:1});function QZ(a){this.Di=null;this.ij=this.Kb=0;this.yoa=a;qj(this,a)} +QZ.prototype=new C5;QZ.prototype.constructor=QZ;function RZ(a){try{var b=a.yoa.a[a.Kb];a.Kb=1+a.Kb|0;return b}catch(c){if(c instanceof Ds)return xx().Na.p()|0;throw c;}}QZ.prototype.p=function(){return RZ(this)};QZ.prototype.$classData=v({xoa:0},!1,"scala.collection.ArrayOps$ArrayIterator$mcB$sp",{xoa:1,Kk:1,qb:1,b:1,Ua:1,J:1,K:1,d:1});function H6(a){this.Di=null;this.ij=this.Kb=0;this.Aoa=a;qj(this,a)}H6.prototype=new C5;H6.prototype.constructor=H6; +H6.prototype.p=function(){try{var a=this.Aoa.a[this.Kb];this.Kb=1+this.Kb|0;var b=a}catch(c){if(c instanceof Ds)b=Da(xx().Na.p());else throw c;}return q(b)};H6.prototype.$classData=v({zoa:0},!1,"scala.collection.ArrayOps$ArrayIterator$mcC$sp",{zoa:1,Kk:1,qb:1,b:1,Ua:1,J:1,K:1,d:1});function I6(a){this.Di=null;this.ij=this.Kb=0;this.Coa=a;qj(this,a)}I6.prototype=new C5;I6.prototype.constructor=I6; +I6.prototype.p=function(){try{var a=this.Coa.a[this.Kb];this.Kb=1+this.Kb|0;var b=a}catch(c){if(c instanceof Ds)b=+xx().Na.p();else throw c;}return b};I6.prototype.$classData=v({Boa:0},!1,"scala.collection.ArrayOps$ArrayIterator$mcD$sp",{Boa:1,Kk:1,qb:1,b:1,Ua:1,J:1,K:1,d:1});function J6(a){this.Di=null;this.ij=this.Kb=0;this.Eoa=a;qj(this,a)}J6.prototype=new C5;J6.prototype.constructor=J6; +J6.prototype.p=function(){try{var a=this.Eoa.a[this.Kb];this.Kb=1+this.Kb|0;var b=a}catch(c){if(c instanceof Ds)b=+xx().Na.p();else throw c;}return b};J6.prototype.$classData=v({Doa:0},!1,"scala.collection.ArrayOps$ArrayIterator$mcF$sp",{Doa:1,Kk:1,qb:1,b:1,Ua:1,J:1,K:1,d:1});function K6(a){this.Di=null;this.ij=this.Kb=0;this.Goa=a;qj(this,a)}K6.prototype=new C5;K6.prototype.constructor=K6; +K6.prototype.p=function(){try{var a=this.Goa.a[this.Kb];this.Kb=1+this.Kb|0;var b=a}catch(c){if(c instanceof Ds)b=xx().Na.p()|0;else throw c;}return b};K6.prototype.$classData=v({Foa:0},!1,"scala.collection.ArrayOps$ArrayIterator$mcI$sp",{Foa:1,Kk:1,qb:1,b:1,Ua:1,J:1,K:1,d:1});function L6(a){this.Di=null;this.ij=this.Kb=0;this.Ioa=a;qj(this,a)}L6.prototype=new C5;L6.prototype.constructor=L6; +L6.prototype.p=function(){try{var a=this.Ioa.a[this.Kb],b=a.k,c=a.o;this.Kb=1+this.Kb|0;var d=new p(b,c)}catch(f){if(f instanceof Ds)d=Ga(xx().Na.p());else throw f;}return d};L6.prototype.$classData=v({Hoa:0},!1,"scala.collection.ArrayOps$ArrayIterator$mcJ$sp",{Hoa:1,Kk:1,qb:1,b:1,Ua:1,J:1,K:1,d:1});function M6(a){this.Di=null;this.ij=this.Kb=0;this.Koa=a;qj(this,a)}M6.prototype=new C5;M6.prototype.constructor=M6; +M6.prototype.p=function(){try{var a=this.Koa.a[this.Kb];this.Kb=1+this.Kb|0;var b=a}catch(c){if(c instanceof Ds)b=xx().Na.p()|0;else throw c;}return b};M6.prototype.$classData=v({Joa:0},!1,"scala.collection.ArrayOps$ArrayIterator$mcS$sp",{Joa:1,Kk:1,qb:1,b:1,Ua:1,J:1,K:1,d:1});function N6(a){this.Di=null;this.ij=this.Kb=0;qj(this,a)}N6.prototype=new C5;N6.prototype.constructor=N6;N6.prototype.p=function(){try{this.Kb=1+this.Kb|0}catch(a){if(a instanceof Ds)xx().Na.p();else throw a;}}; +N6.prototype.$classData=v({Loa:0},!1,"scala.collection.ArrayOps$ArrayIterator$mcV$sp",{Loa:1,Kk:1,qb:1,b:1,Ua:1,J:1,K:1,d:1});function O6(a){this.Di=null;this.ij=this.Kb=0;this.Noa=a;qj(this,a)}O6.prototype=new C5;O6.prototype.constructor=O6;O6.prototype.p=function(){try{var a=this.Noa.a[this.Kb];this.Kb=1+this.Kb|0;var b=a}catch(c){if(c instanceof Ds)b=!!xx().Na.p();else throw c;}return b}; +O6.prototype.$classData=v({Moa:0},!1,"scala.collection.ArrayOps$ArrayIterator$mcZ$sp",{Moa:1,Kk:1,qb:1,b:1,Ua:1,J:1,K:1,d:1});function PL(a){this.Fy=a}PL.prototype=new y5;PL.prototype.constructor=PL;e=PL.prototype;e.t=function(){xx();return new Sb(this.Fy)};e.N=function(){return 1};e.G=function(){return this.Fy};e.Qb=function(){return this.Fy};e.L=function(){return vx().Bc()};e.Ac=function(a){return 0d||d>=g)throw my(new V,d+" is out of bounds (min 0, max "+(-1+g|0)+")");g=((a.vd-a.nc|0)&(-1+a.ib.a.length|0))-b|0;var h=Cs(Pp(),c)-d|0;g=gb||b>=g)throw my(new V,b+" is out of bounds (min 0, max "+(-1+g|0)+")");b=(a.nc+b|0)&(-1+a.ib.a.length|0);g=a.ib.a.length-b|0;g=f=this.$(a,b)};e.ug=function(a,b){return E4(this,a,b)};e.wg=function(a,b){return 0>this.$(a,b)};e.tg=function(a,b){return 0=this.$(a,b)};e.ug=function(a,b){return E4(this,a,b)};e.wg=function(a,b){return 0>this.$(a,b)};e.tg=function(a,b){return 0=this.$(a,b)};e.ug=function(a,b){return E4(this,a,b)}; +e.wg=function(a,b){return 0>this.$(a,b)};e.tg=function(a,b){return 0=this.$(a,b)};e.ug=function(a,b){return E4(this,a,b)};e.wg=function(a,b){return 0>this.$(a,b)};e.tg=function(a,b){return 0=this.$(a,b)};e.ug=function(a,b){return E4(this,a,b)};e.wg=function(a,b){return 0>this.$(a,b)};e.tg=function(a,b){return 0d=>UU(wx(),d))(a)))} +function Qea(a){a.H=new zP(a);a.pia=new EP(a);a.$ha=new FP(a);a.ux=new GP(a);a.dia=new HP(a);a.jia=new IP(a);a.Wha=new JP(a);a.rg=new KP(a);a.Yha=new LP(a);a.nia=pA(a.H,new C((()=>b=>b.g())(a)));a.hia=new AP(a);a.Uha=pA(a.H,new C((()=>b=>b.g())(a)));a.Sha=pA(a.H,new C((()=>b=>b.Vc.g())(a)));a.lia=pA(a.H,new C((()=>b=>b.LI)(a)));a.VG=new DP(a);a.fia=a.VG;a.bia=a.VG}function p7(){this.ok=0;this.nk=this.Tb=null;w1(this,6,cr().yU,"all")}p7.prototype=new y1;p7.prototype.constructor=p7;e=p7.prototype; +e.A=function(){return"ALL"};e.B=function(){return 0};e.C=function(a){return T(W(),a)};e.v=function(){return 64897};e.g=function(){return"ALL"};e.$classData=v({dja:0},!1,"wvlet.log.LogLevel$ALL$",{dja:1,tu:1,b:1,vh:1,Bb:1,d:1,y:1,m:1});var q7;function UP(){q7||(q7=new p7);return q7}function r7(){this.ok=0;this.nk=this.Tb=null;w1(this,4,cr().AU,"debug")}r7.prototype=new y1;r7.prototype.constructor=r7;e=r7.prototype;e.A=function(){return"DEBUG"};e.B=function(){return 0}; +e.C=function(a){return T(W(),a)};e.v=function(){return 64921139};e.g=function(){return"DEBUG"};e.$classData=v({eja:0},!1,"wvlet.log.LogLevel$DEBUG$",{eja:1,tu:1,b:1,vh:1,Bb:1,d:1,y:1,m:1});var s7;function fh(){s7||(s7=new r7);return s7}function t7(){this.ok=0;this.nk=this.Tb=null;w1(this,1,cr().EU,"error")}t7.prototype=new y1;t7.prototype.constructor=t7;e=t7.prototype;e.A=function(){return"ERROR"};e.B=function(){return 0};e.C=function(a){return T(W(),a)};e.v=function(){return 66247144};e.g=function(){return"ERROR"}; +e.$classData=v({fja:0},!1,"wvlet.log.LogLevel$ERROR$",{fja:1,tu:1,b:1,vh:1,Bb:1,d:1,y:1,m:1});var u7;function OP(){u7||(u7=new t7);return u7}function v7(){this.ok=0;this.nk=this.Tb=null;w1(this,3,cr().dI,"info")}v7.prototype=new y1;v7.prototype.constructor=v7;e=v7.prototype;e.A=function(){return"INFO"};e.B=function(){return 0};e.C=function(a){return T(W(),a)};e.v=function(){return 2251950};e.g=function(){return"INFO"}; +e.$classData=v({gja:0},!1,"wvlet.log.LogLevel$INFO$",{gja:1,tu:1,b:1,vh:1,Bb:1,d:1,y:1,m:1});var w7;function CB(){w7||(w7=new v7);return w7}function x7(){this.ok=0;this.nk=this.Tb=null;w1(this,0,cr().DU,"off")}x7.prototype=new y1;x7.prototype.constructor=x7;e=x7.prototype;e.A=function(){return"OFF"};e.B=function(){return 0};e.C=function(a){return T(W(),a)};e.v=function(){return 78159};e.g=function(){return"OFF"}; +e.$classData=v({hja:0},!1,"wvlet.log.LogLevel$OFF$",{hja:1,tu:1,b:1,vh:1,Bb:1,d:1,y:1,m:1});var y7;function TP(){y7||(y7=new x7);return y7}function z7(){this.ok=0;this.nk=this.Tb=null;w1(this,5,cr().BU,"trace")}z7.prototype=new y1;z7.prototype.constructor=z7;e=z7.prototype;e.A=function(){return"TRACE"};e.B=function(){return 0};e.C=function(a){return T(W(),a)};e.v=function(){return 80083237};e.g=function(){return"TRACE"}; +e.$classData=v({ija:0},!1,"wvlet.log.LogLevel$TRACE$",{ija:1,tu:1,b:1,vh:1,Bb:1,d:1,y:1,m:1});var A7;function Ij(){A7||(A7=new z7);return A7}function B7(){this.ok=0;this.nk=this.Tb=null;w1(this,2,cr().FU,"warn")}B7.prototype=new y1;B7.prototype.constructor=B7;e=B7.prototype;e.A=function(){return"WARN"};e.B=function(){return 0};e.C=function(a){return T(W(),a)};e.v=function(){return 2656902};e.g=function(){return"WARN"}; +e.$classData=v({jja:0},!1,"wvlet.log.LogLevel$WARN$",{jja:1,tu:1,b:1,vh:1,Bb:1,d:1,y:1,m:1});var C7;function PP(){C7||(C7=new B7);return C7}function D7(){var a=Vx();var b=a.Ho,c=a.Ho;if((null===b?null===c:b.c(c))&&0>=a.SC&&0<=a.SI){c=0-a.SC|0;var d=(a.QC?a.RC:bN(a)).a[c];null===d&&(d=new jM(bK(ZJ(),new p(0,0)),b),(a.QC?a.RC:bN(a)).a[c]=d)}else a=new PJ,cK(a,new p(0,0),0),hN(a,b),new jM(a,b)}D7.prototype=new t;D7.prototype.constructor=D7; +D7.prototype.$classData=v({F_:0},!1,"cats.kernel.instances.BigDecimalGroup",{F_:1,b:1,i_:1,p_:1,nE:1,sE:1,d:1,kE:1,lE:1});function E7(){var a=wd();if(0>=a.Tu&&0<=a.yy)iN(a,0);else{var b=new p(0,0),c=a.Tu,d=c>>31,f=b.o;(d===f?(-2147483648^c)<=(-2147483648^b.k):d>31,f=b.o,c=f===d?(-2147483648^b.k)<=(-2147483648^c):fc)a.$B=""+a.$B+b,b="";else{var d=""+a.$B+b.substring(0,c);"undefined"!==typeof console&&(a.Uja&&console.error?console.error(d):console.log(d));a.$B="";b=b.substring(1+c|0)}}} +Bm.prototype.$classData=v({Sja:0},!1,"java.lang.JSConsoleBasedPrintStream",{Sja:1,dAa:1,cAa:1,yea:1,b:1,JA:1,XB:1,KA:1,Fu:1});function F7(){this.YH=this.pC=null}F7.prototype=new C2;F7.prototype.constructor=F7;e=F7.prototype;e.Pa=function(a){return this.pC.MB(a)};e.pH=function(a){return this.YH.pH(a)};e.sk=function(a){return null===this.pC.Gk(a,void 0)};e.Y=function(){return this.pC.xi};e.nh=function(){return this.YH.nh()}; +e.$classData=v({Tka:0},!1,"java.util.HashSet",{Tka:1,nU:1,VH:1,b:1,kC:1,RH:1,tU:1,ld:1,d:1});function k5(a,b){if(0<=b){a=N2(a,b>>6);var c=a.o&(0===(32&b)?0:1<=a||b.i())return b;a=-1+a|0;b=b.L()}}function R7(a){this.Sy=a}R7.prototype=new T_;R7.prototype.constructor=R7;e=R7.prototype;e.s=function(){return this.Sy.s()}; +e.p=function(){return this.Sy.p()};e.A=function(){return"JIteratorWrapper"};e.B=function(){return 1};e.C=function(a){return 0===a?this.Sy:T(W(),a)};e.v=function(){return ig(D(),this)};e.c=function(a){return this===a?!0:a instanceof R7?this.Sy===a.Sy:!1};e.$classData=v({Dqa:0},!1,"scala.collection.convert.JavaCollectionWrappers$JIteratorWrapper",{Dqa:1,qb:1,b:1,Ua:1,J:1,K:1,d:1,y:1,m:1}); +function S7(a,b){if(0>=a.fc(1))return a;for(var c=a.Sg(),d=$T(),f=a.t(),g=!1;f.s();){var h=f.p();d.sk(b.r(h))?c.Ia(h):g=!0}return g?c.nb():a}function jM(a,b){this.TC=0;this.Vc=a;this.fna=b;if(null===a)throw Hq("null value for BigDecimal");if(null===b)throw Hq("null MathContext for BigDecimal");this.TC=1565550863}jM.prototype=new uU;jM.prototype.constructor=jM;e=jM.prototype;e.ih=function(a){return u_(this.Vc,a.Vc)}; +e.v=function(){if(1565550863===this.TC){if(this.qo()&&4934>(g_(this.Vc)-this.Vc.fb|0))var a=Rea(new kN,v_(this.Vc)).v();else{a=this.Vc.Yi();if(Infinity!==a&&-Infinity!==a){var b=Wx();a=T7(this,fN(a,b.Ho))}else a=!1;if(a)a=this.Vc.Yi(),a=ky(W(),a);else{a=t_(this.Vc);b=D();var c=b.Dk,d;var f=d=a.fb,g=f>>31,h=d>>31;d=f-d|0;g=(-2147483648^d)>(-2147483648^f)?-1+(g-h|0)|0:g-h|0;64>a.$e?(f=a.Le,0===f.k&&0===f.o?(f=ZJ(),d=new p(d,g),g=d.k,d=d.k===g&&d.o===g>>31?aK(f,fa,d.k):0<=d.o?WJ(0,2147483647):WJ(0,-2147483648)): +d=aK(ZJ(),a.Le,eK(ZJ(),new p(d,g)))):d=l_(new PJ,QJ(a),eK(ZJ(),new p(d,g)));a=c.call(b,v_(d).v(),a.fb)}}this.TC=a}return this.TC}; +e.c=function(a){if(a instanceof jM)return T7(this,a);if(a instanceof kN){var b=U7(a),c=g_(this.Vc);if(b>3.3219280948873626*(-2+(c-this.Vc.fb|0)|0)){if(this.qo())try{var d=new Ze(Rea(new kN,q_(this.Vc)))}catch(f){if(f instanceof Oa)d=E();else throw f;}else d=E();if(d.i())return!1;b=d.Sa();return Sea(a,b)}return!1}return"number"===typeof a?(b=+a,Infinity!==b&&-Infinity!==b&&(a=this.Vc.Yi(),Infinity!==a&&-Infinity!==a&&a===b)?(b=Wx(),T7(this,fN(a,b.Ho))):!1):"number"===typeof a?(b=+a,Infinity!==b&&-Infinity!== +b&&(a=this.Vc.no(),Infinity!==a&&-Infinity!==a&&a===b)?(b=Wx(),T7(this,fN(a,b.Ho))):!1):this.Xx()&&qx(this,a)};e.UB=function(){try{return p_(this.Vc,8),!0}catch(a){if(a instanceof Oa)return!1;throw a;}};e.WB=function(){try{return p_(this.Vc,16),!0}catch(a){if(a instanceof Oa)return!1;throw a;}};e.VB=function(){return this.Wx()&&0<=p_(this.Vc,32).k&&65535>=p_(this.Vc,32).k};e.Wx=function(){try{return p_(this.Vc,32),!0}catch(a){if(a instanceof Oa)return!1;throw a;}}; +e.Xx=function(){try{return p_(this.Vc,64),!0}catch(a){if(a instanceof Oa)return!1;throw a;}};e.qo=function(){return 0>=this.Vc.fb?!0:0>=t_(this.Vc).fb};function T7(a,b){return 0===u_(a.Vc,b.Vc)}e.yu=function(){return this.Vc.eg()<<24>>24};e.Gv=function(){return this.Vc.eg()<<16>>16};e.eg=function(){return this.Vc.eg()};e.fg=function(){return this.Vc.fg()};e.no=function(){return this.Vc.no()};e.Yi=function(){return this.Vc.Yi()};e.g=function(){return this.Vc.g()};e.pX=function(){return this.Vc}; +var cN=v({dna:0},!1,"scala.math.BigDecimal",{dna:1,Ina:1,Gl:1,b:1,d:1,Jna:1,XI:1,vh:1,Bb:1});jM.prototype.$classData=cN;function V7(a){a=a.ne;return!(0===a.k&&-2147483648===a.o)}function Tea(a){a=go(W7(a),2147483647);return 0!==a.Ka&&!a.c(Xx().DV)}function jN(a,b,c){a.Ai=b;a.ne=c;return a}function Rea(a,b){jN(a,b,63>=$m(ln(),b)?b.fg():new p(0,-2147483648));return a}function kN(){this.Ai=null;this.ne=fa}kN.prototype=new uU;kN.prototype.constructor=kN;e=kN.prototype; +e.ih=function(a){if(V7(this))if(V7(a)){var b=this.ne;var c=b.k;b=b.o;var d=a.ne;a=d.k;d=d.o;c=za(Aa(),c,b,a,d)}else c=-a.Ai.Ka|0;else c=V7(a)?this.Ai.Ka:MI(this.Ai,a.Ai);return c};function W7(a){var b=a.Ai;if(null!==b)return b;var c=a.ne;b=c.k;c=c.o;b=Nn(hn(),new p(b,c));return a.Ai=b}e.v=function(){if(this.Xx()){var a=this.fg(),b=a.k;a=a.o;return(-1===a?0<=(-2147483648^b):-1=(-2147483648^b):0>a)?b:jy(W(),new p(b,a))}b=W7(this);return ly(W(),b)}; +e.c=function(a){if(a instanceof kN)return Sea(this,a);if(a instanceof jM)return a.c(this);if("number"===typeof a){a=+a;var b=U7(this);if(53>=b)b=!0;else{var c=Uea(this);b=1024>=b&&c>=(-53+b|0)&&1024>c}return(b?!Tea(this):!1)&&this.Yi()===a}return"number"===typeof a?(a=+a,b=U7(this),24>=b?b=!0:(c=Uea(this),b=128>=b&&c>=(-24+b|0)&&128>c),b&&!Tea(this)?(b=W7(this),b=on(rn(),b),OI(QI(),b)===a):!1):this.Xx()&&qx(this,a)}; +e.UB=function(){var a=this.ne,b=a.o;return(-1===b?2147483520<=(-2147483648^a.k):-1=(-2147483648^a.k):0>b):!1};e.WB=function(){var a=this.ne,b=a.o;return(-1===b?2147450880<=(-2147483648^a.k):-1=(-2147483648^a.k):0>b):!1};e.VB=function(){if(0<=this.ne.o){var a=this.ne,b=a.o;return 0===b?-2147418113>=(-2147483648^a.k):0>b}return!1}; +e.Wx=function(){var a=this.ne,b=a.o;return(-1===b?0<=(-2147483648^a.k):-1=(-2147483648^a.k):0>b):!1};e.Xx=function(){return V7(this)||$x(O(),this.Ai,Xx().UI)};e.qo=function(){return!0};function Sea(a,b){return V7(a)?V7(b)?(a=a.ne,b=b.ne,a.k===b.k&&a.o===b.o):!1:!V7(b)&&$x(O(),a.Ai,b.Ai)}function Uea(a){if(V7(a)){var b=a.ne;if(0===b.k&&0===b.o)return-1;b=a.ne;a=b.k;b=b.o;return 0!==a?0===a?32:31-ea(a&(-a|0))|0:32+(0===b?32:31-ea(b&(-b|0))|0)|0}return w_(W7(a))} +function U7(a){if(V7(a)){if(0>a.ne.o){a=a.ne;var b=a.o;a=1+a.k|0;var c=0===a?1+b|0:b;b=-a|0;a=0!==a?~c:-c|0;return 64-(0!==a?ea(a):32+ea(b)|0)|0}b=a.ne;a=b.k;b=b.o;return 64-(0!==b?ea(b):32+ea(a)|0)|0}a=a.Ai;return $m(ln(),a)}e.yu=function(){return this.eg()<<24>>24};e.Gv=function(){return this.eg()<<16>>16};e.eg=function(){return V7(this)?this.ne.k:W7(this).eg()};e.fg=function(){return V7(this)?this.ne:this.Ai.fg()};e.no=function(){var a=W7(this);a=on(rn(),a);return OI(QI(),a)}; +e.Yi=function(){if(this.Xx())if(-2097152<=this.ne.o){var a=this.ne,b=a.o;a=2097152===b?0===a.k:2097152>b}else a=!1;else a=!1;if(a)return a=this.ne,bs(Aa(),a.k,a.o);a=W7(this);a=on(rn(),a);return II(ya(),a)};e.g=function(){if(V7(this)){var a=this.ne;return $r(Aa(),a.k,a.o)}a=this.Ai;return on(rn(),a)};e.pX=function(){return W7(this)};var nN=v({gna:0},!1,"scala.math.BigInt",{gna:1,Ina:1,Gl:1,b:1,d:1,Jna:1,XI:1,vh:1,Bb:1});kN.prototype.$classData=nN; +function X7(){this.Uu=null;Y7=this;this.Uu=new J4(this)}X7.prototype=new t;X7.prototype.constructor=X7;e=X7.prototype;e.vg=function(a){return a===this.Uu};e.uf=function(a,b){return 0>=this.$(a,b)};e.ug=function(a,b){return E4(this,a,b)};e.wg=function(a,b){return 0>this.$(a,b)};e.tg=function(a,b){return 0a||a>=this.Y())throw my(new V,""+a);return this.jC[a]};VK.prototype.sk=function(a){this.jC.push(a);return!0};VK.prototype.$classData=v({xka:0},!1,"java.util.ArrayList",{xka:1,HAa:1,VH:1,b:1,kC:1,RH:1,gla:1,PAa:1,ld:1,d:1});function r8(){}r8.prototype=new y5;r8.prototype.constructor=r8;function s8(){}s8.prototype=r8.prototype; +r8.prototype.Db=function(){return uS()};r8.prototype.g=function(){return P6(this)};r8.prototype.pc=function(){return"View"};function t8(a,b){if(a===b)return!0;if(b&&b.$classData&&b.$classData.Hb.Nk)if(a.Y()===b.Y())try{return a.pK(b)}catch(c){throw c;}else return!1;else return!1}function u8(){this.Ql=0;this.Ay="Any";E();z();m(nb);this.Ql=Va(this)}u8.prototype=new g8;u8.prototype.constructor=u8;u8.prototype.me=function(){return m(nb)};u8.prototype.Be=function(a){return new Za(a)}; +u8.prototype.$classData=v({Pna:0},!1,"scala.reflect.ManifestFactory$AnyManifest$",{Pna:1,ZI:1,YI:1,b:1,fj:1,$h:1,Ci:1,ai:1,d:1,m:1});var v8;function $t(){v8||(v8=new u8);return v8}function w8(){this.Rd=0;this.Rf="Boolean";this.Rd=Va(this)}w8.prototype=new Vea;w8.prototype.constructor=w8;w8.prototype.$classData=v({Qna:0},!1,"scala.reflect.ManifestFactory$BooleanManifest$",{Qna:1,pBa:1,Ko:1,b:1,fj:1,$h:1,Ci:1,ai:1,d:1,m:1});var x8;function zq(){x8||(x8=new w8);return x8} +function y8(){this.Rd=0;this.Rf="Byte";this.Rd=Va(this)}y8.prototype=new Wea;y8.prototype.constructor=y8;y8.prototype.$classData=v({Rna:0},!1,"scala.reflect.ManifestFactory$ByteManifest$",{Rna:1,qBa:1,Ko:1,b:1,fj:1,$h:1,Ci:1,ai:1,d:1,m:1});var z8;function Hp(){z8||(z8=new y8);return z8}function A8(){this.Rd=0;this.Rf="Char";this.Rd=Va(this)}A8.prototype=new Xea;A8.prototype.constructor=A8; +A8.prototype.$classData=v({Sna:0},!1,"scala.reflect.ManifestFactory$CharManifest$",{Sna:1,rBa:1,Ko:1,b:1,fj:1,$h:1,Ci:1,ai:1,d:1,m:1});var B8;function oe(){B8||(B8=new A8);return B8}function C8(){this.Rd=0;this.Rf="Double";this.Rd=Va(this)}C8.prototype=new Yea;C8.prototype.constructor=C8;C8.prototype.$classData=v({Tna:0},!1,"scala.reflect.ManifestFactory$DoubleManifest$",{Tna:1,sBa:1,Ko:1,b:1,fj:1,$h:1,Ci:1,ai:1,d:1,m:1});var D8;function Gs(){D8||(D8=new C8);return D8} +function E8(){this.Rd=0;this.Rf="Float";this.Rd=Va(this)}E8.prototype=new Zea;E8.prototype.constructor=E8;E8.prototype.$classData=v({Una:0},!1,"scala.reflect.ManifestFactory$FloatManifest$",{Una:1,tBa:1,Ko:1,b:1,fj:1,$h:1,Ci:1,ai:1,d:1,m:1});var F8;function Hs(){F8||(F8=new E8);return F8}function G8(){this.Rd=0;this.Rf="Int";this.Rd=Va(this)}G8.prototype=new $ea;G8.prototype.constructor=G8; +G8.prototype.$classData=v({Vna:0},!1,"scala.reflect.ManifestFactory$IntManifest$",{Vna:1,uBa:1,Ko:1,b:1,fj:1,$h:1,Ci:1,ai:1,d:1,m:1});var H8;function $n(){H8||(H8=new G8);return H8}function I8(){this.Rd=0;this.Rf="Long";this.Rd=Va(this)}I8.prototype=new afa;I8.prototype.constructor=I8;I8.prototype.$classData=v({Wna:0},!1,"scala.reflect.ManifestFactory$LongManifest$",{Wna:1,vBa:1,Ko:1,b:1,fj:1,$h:1,Ci:1,ai:1,d:1,m:1});var J8;function Bp(){J8||(J8=new I8);return J8} +function sN(){this.Ql=0;this.Ay="Nothing";E();z();m(ot);this.Ql=Va(this)}sN.prototype=new g8;sN.prototype.constructor=sN;sN.prototype.me=function(){return m(ot)};sN.prototype.Be=function(a){return new Za(a)};sN.prototype.$classData=v({Xna:0},!1,"scala.reflect.ManifestFactory$NothingManifest$",{Xna:1,ZI:1,YI:1,b:1,fj:1,$h:1,Ci:1,ai:1,d:1,m:1});var rN;function uN(){this.Ql=0;this.Ay="Null";E();z();m(nt);this.Ql=Va(this)}uN.prototype=new g8;uN.prototype.constructor=uN;uN.prototype.me=function(){return m(nt)}; +uN.prototype.Be=function(a){return new Za(a)};uN.prototype.$classData=v({Yna:0},!1,"scala.reflect.ManifestFactory$NullManifest$",{Yna:1,ZI:1,YI:1,b:1,fj:1,$h:1,Ci:1,ai:1,d:1,m:1});var tN;function K8(){this.Ql=0;this.Ay="Object";E();z();m(nb);this.Ql=Va(this)}K8.prototype=new g8;K8.prototype.constructor=K8;K8.prototype.me=function(){return m(nb)};K8.prototype.Be=function(a){return new Za(a)}; +K8.prototype.$classData=v({Zna:0},!1,"scala.reflect.ManifestFactory$ObjectManifest$",{Zna:1,ZI:1,YI:1,b:1,fj:1,$h:1,Ci:1,ai:1,d:1,m:1});var L8;function Os(){L8||(L8=new K8);return L8}function M8(){this.Rd=0;this.Rf="Short";this.Rd=Va(this)}M8.prototype=new bfa;M8.prototype.constructor=M8;M8.prototype.$classData=v({$na:0},!1,"scala.reflect.ManifestFactory$ShortManifest$",{$na:1,wBa:1,Ko:1,b:1,fj:1,$h:1,Ci:1,ai:1,d:1,m:1});var N8;function nl(){N8||(N8=new M8);return N8} +function O8(){this.Rd=0;this.Rf="Unit";this.Rd=Va(this)}O8.prototype=new cfa;O8.prototype.constructor=O8;O8.prototype.$classData=v({aoa:0},!1,"scala.reflect.ManifestFactory$UnitManifest$",{aoa:1,xBa:1,Ko:1,b:1,fj:1,$h:1,Ci:1,ai:1,d:1,m:1});var P8;function qN(){P8||(P8=new O8);return P8}function ZV(){dfa||(dfa=new Q8)}ZV.prototype=new t;ZV.prototype.constructor=ZV;ZV.prototype.$classData=v({bY:0},!1,"cats.data.AndThenInstances0$$anon$3",{bY:1,b:1,RX:1,QX:1,SX:1,VX:1,d:1,XX:1,WX:1,TX:1,UX:1}); +v({RY:0},!1,"cats.instances.Function1Instances$$anon$8",{RY:1,b:1,RX:1,QX:1,SX:1,VX:1,d:1,XX:1,WX:1,TX:1,UX:1});function j7(a,b){return a===b?!0:b&&b.$classData&&b.$classData.Hb.Eb&&b.ar(a)?a.Ik(b):!1}function R8(a,b,c,d){a.Oy=b;a.lj=c;a.bv=d;a.wJ=!1;return a}function S8(a,b){var c=new T8;R8(c,a,a.z(),b);return c}function T8(){this.Oy=this.oW=null;this.lj=0;this.bv=null;this.vJ=this.wJ=!1}T8.prototype=new t;T8.prototype.constructor=T8;e=T8.prototype;e.Db=function(){return uS()};e.g=function(){return P6(this)}; +e.sf=function(){return"SeqView"};e.Sg=function(){return uS().Ya()};e.fd=function(a){return d0(this,a)};e.$d=function(a){return TR(this,a)};e.jh=function(a){return TR(this,a)};e.Y=function(){return this.lj};e.Af=function(a){return e0(this,a)};e.be=function(){return(new U8(this)).t()};e.vi=function(a,b){var c=this.t();return cS(c,a,b)};e.Pa=function(a){return WS(this,a)};e.fc=function(a){return NR(this,a)};e.G=function(){return this.t().p()};e.Pd=function(){return KR(this)};e.Qb=function(){return LR(this)}; +e.rh=function(){return MR(this)};e.ob=function(a){return this.ke(new $R(this,a,!1))};e.L=function(){return QR(this)};e.lb=function(a){return RR(this,a)};e.Fa=function(a){ct(this,a)};e.dr=function(a){return et(this,a)};e.Tg=function(a){return ht(this,a)};e.Zb=function(a,b,c){return zg(this,a,b,c)};e.zf=function(a,b,c,d){return lt(this,a,b,c,d)};e.qc=function(){Wb();return Xb(A(),this)};e.Kh=function(){return M(nM(),this)};e.kg=function(){return UU(wx(),this)};e.bh=function(a){return mt(this,a)}; +function V8(a){if(!a.vJ&&!a.vJ){var b=a.lj;if(0===b)b=z().Jb;else if(1===b)z(),b=[a.Oy.G()],b=Af(new Bf,b),b=Xb(A(),b);else{b=new Za(b);a.Oy.Zb(b,0,2147483647);var c=a.bv;Jp(F(),b,c);b=c3(Y2(),b)}a.wJ=!0;a.Oy=null;a.oW=b;a.vJ=!0}return a.oW}function efa(a){var b=a.Oy;return a.wJ?V8(a):b}e.W=function(a){return V8(this).W(a)};e.z=function(){return this.lj};e.t=function(){return xx().Na.sg(new Yc((a=>()=>V8(a).t())(this)))};e.N=function(){return this.lj};e.i=function(){return 0===this.lj}; +e.kK=function(a){var b=this.bv;return(null===a?null===b:a.c(b))?this:a.vg(this.bv)?new U8(this):R8(new T8,efa(this),this.lj,a)};e.ke=function(a){return nS(uS(),a)};e.Ac=function(a){return W8(new X8,this,a)};e.rb=function(a){return Y8(new Z8,this,a)};e.Pe=function(a){return this.kK(a)};e.$classData=v({Tpa:0},!1,"scala.collection.SeqView$Sorted",{Tpa:1,b:1,ci:1,cb:1,ia:1,J:1,K:1,gd:1,ga:1,ha:1,d:1});function ffa(a){if(!a.nD){var b=new $8,c=V8(a.kj);b.Jr=c;a.mD=b;a.nD=!0}return a.mD} +function U8(a){this.mD=null;this.nD=!1;this.kj=null;if(null===a)throw I(J(),null);this.kj=a}U8.prototype=new t;U8.prototype.constructor=U8;e=U8.prototype;e.Db=function(){return uS()};e.g=function(){return P6(this)};e.sf=function(){return"SeqView"};e.Sg=function(){return uS().Ya()};e.fd=function(a){return d0(this,a)};e.$d=function(a){return TR(this,a)};e.jh=function(a){return TR(this,a)};e.Y=function(){return this.kj.lj};e.Af=function(a){return e0(this,a)};e.be=function(){return this.kj.t()}; +e.vi=function(a,b){var c=this.t();return cS(c,a,b)};e.Pa=function(a){return WS(this,a)};e.fc=function(a){return NR(this,a)};e.G=function(){return this.t().p()};e.Pd=function(){return KR(this)};e.Qb=function(){return LR(this)};e.rh=function(){return MR(this)};e.ob=function(a){return this.ke(new $R(this,a,!1))};e.L=function(){return QR(this)};e.lb=function(a){return RR(this,a)};e.Fa=function(a){ct(this,a)};e.dr=function(a){return et(this,a)};e.Tg=function(a){return ht(this,a)}; +e.Zb=function(a,b,c){return zg(this,a,b,c)};e.zf=function(a,b,c,d){return lt(this,a,b,c,d)};e.qc=function(){Wb();return Xb(A(),this)};e.Kh=function(){return M(nM(),this)};e.kg=function(){return UU(wx(),this)};e.bh=function(a){return mt(this,a)};e.W=function(a){return(this.nD?this.mD:ffa(this)).W(a)};e.z=function(){return this.kj.lj};e.t=function(){return xx().Na.sg(new Yc((a=>()=>(a.nD?a.mD:ffa(a)).t())(this)))};e.N=function(){return this.kj.lj};e.i=function(){return 0===this.kj.lj}; +e.kK=function(a){var b=this.kj.bv;return(null===a?null===b:a.c(b))?this.kj:a.vg(this.kj.bv)?this:R8(new T8,efa(this.kj),this.kj.lj,a)};e.ke=function(a){return nS(uS(),a)};e.Ac=function(a){return W8(new X8,this,a)};e.rb=function(a){return Y8(new Z8,this,a)};e.Pe=function(a){return this.kK(a)};e.$classData=v({Upa:0},!1,"scala.collection.SeqView$Sorted$ReverseSorted",{Upa:1,b:1,ci:1,cb:1,ia:1,J:1,K:1,gd:1,ga:1,ha:1,d:1});function oS(a){this.fqa=a}oS.prototype=new s8;oS.prototype.constructor=oS; +oS.prototype.t=function(){return this.fqa.Rb()};oS.prototype.$classData=v({eqa:0},!1,"scala.collection.View$$anon$1",{eqa:1,Sd:1,ka:1,b:1,ga:1,J:1,ia:1,K:1,ha:1,gd:1,d:1});function a9(){this.Py=this.dv=null}a9.prototype=new s8;a9.prototype.constructor=a9;function gfa(){}gfa.prototype=a9.prototype;a9.prototype.t=function(){return(new VR(this.dv,new b9(this.Py))).t()};a9.prototype.N=function(){var a=this.dv.N();return 0<=a?1+a|0:-1};a9.prototype.i=function(){return!1}; +a9.prototype.$classData=v({zJ:0},!1,"scala.collection.View$Appended",{zJ:1,Sd:1,ka:1,b:1,ga:1,J:1,ia:1,K:1,ha:1,gd:1,d:1});function VR(a,b){this.AJ=a;this.BJ=b}VR.prototype=new s8;VR.prototype.constructor=VR;VR.prototype.t=function(){return this.AJ.t().sg(new Yc((a=>()=>a.BJ.t())(this)))};VR.prototype.N=function(){var a=this.AJ.N();if(0<=a){var b=this.BJ.N();return 0<=b?a+b|0:-1}return-1};VR.prototype.i=function(){return this.AJ.i()&&this.BJ.i()}; +VR.prototype.$classData=v({gqa:0},!1,"scala.collection.View$Concat",{gqa:1,Sd:1,ka:1,b:1,ga:1,J:1,ia:1,K:1,ha:1,gd:1,d:1});function f0(a,b){this.CJ=a;this.iqa=b}f0.prototype=new s8;f0.prototype.constructor=f0;f0.prototype.t=function(){var a=this.CJ.t();return new X2(a,this.iqa)};f0.prototype.N=function(){return 0===this.CJ.N()?0:-1};f0.prototype.i=function(){return this.CJ.i()}; +f0.prototype.$classData=v({hqa:0},!1,"scala.collection.View$DistinctBy",{hqa:1,Sd:1,ka:1,b:1,ga:1,J:1,ia:1,K:1,ha:1,gd:1,d:1});function A5(a,b,c){a.Qy=b;a.rD=c;a.ev=0a?0:a};b0.prototype.i=function(){return 0>=this.EJ};b0.prototype.$classData=v({kqa:0},!1,"scala.collection.View$Fill",{kqa:1,Sd:1,ka:1,b:1,ga:1,J:1,ia:1,K:1,ha:1,gd:1,d:1}); +function $R(a,b,c){this.sW=a;this.oqa=b;this.nqa=c}$R.prototype=new s8;$R.prototype.constructor=$R;$R.prototype.t=function(){var a=this.sW.t();return new W2(a,this.oqa,this.nqa)};$R.prototype.N=function(){return 0===this.sW.N()?0:-1};$R.prototype.i=function(){return!this.t().s()};$R.prototype.$classData=v({mqa:0},!1,"scala.collection.View$Filter",{mqa:1,Sd:1,ka:1,b:1,ga:1,J:1,ia:1,K:1,ha:1,gd:1,d:1});function SR(a,b){this.tW=a;this.qqa=b}SR.prototype=new s8;SR.prototype.constructor=SR; +SR.prototype.t=function(){var a=this.tW.t();return new vf(a,this.qqa)};SR.prototype.N=function(){return 0===this.tW.N()?0:-1};SR.prototype.i=function(){return!this.t().s()};SR.prototype.$classData=v({pqa:0},!1,"scala.collection.View$FlatMap",{pqa:1,Sd:1,ka:1,b:1,ga:1,J:1,ia:1,K:1,ha:1,gd:1,d:1});function aS(a,b,c){a.fv=b;a.sD=c;return a}function bS(){this.sD=this.fv=null}bS.prototype=new s8;bS.prototype.constructor=bS;function ifa(){}ifa.prototype=bS.prototype; +bS.prototype.t=function(){var a=this.fv.t();return new Ob(a,this.sD)};bS.prototype.N=function(){return this.fv.N()};bS.prototype.i=function(){return this.fv.i()};bS.prototype.$classData=v({uW:0},!1,"scala.collection.View$Map",{uW:1,Sd:1,ka:1,b:1,ga:1,J:1,ia:1,K:1,ha:1,gd:1,d:1});function c9(){}c9.prototype=new s8;c9.prototype.constructor=c9;function jfa(){}jfa.prototype=c9.prototype;function b9(a){this.sqa=a}b9.prototype=new s8;b9.prototype.constructor=b9;b9.prototype.t=function(){xx();return new Sb(this.sqa)}; +b9.prototype.N=function(){return 1};b9.prototype.i=function(){return!1};b9.prototype.$classData=v({rqa:0},!1,"scala.collection.View$Single",{rqa:1,Sd:1,ka:1,b:1,ga:1,J:1,ia:1,K:1,ha:1,gd:1,d:1});function c0(a,b){this.FJ=a;this.uqa=b}c0.prototype=new s8;c0.prototype.constructor=c0;c0.prototype.t=function(){xx();return new V2(this.FJ,this.uqa)};c0.prototype.N=function(){var a=this.FJ;return 0>a?0:a};c0.prototype.i=function(){return 0>=this.FJ}; +c0.prototype.$classData=v({tqa:0},!1,"scala.collection.View$Tabulate",{tqa:1,Sd:1,ka:1,b:1,ga:1,J:1,ia:1,K:1,ha:1,gd:1,d:1});function xea(a,b,c){a.Ry=b;a.tD=c;a.uD=0=b?a=xx().Na:2147483647!==b&&(0=this.$(a,b)};e.ug=function(a,b){return E4(this,a,b)};e.wg=function(a,b){return 0>this.$(a,b)}; +e.tg=function(a,b){return 0a?-1:1)<<24>>24};e.qm=function(a){return a|0};e.Cf=function(a){return a<<24>>24};e.my=function(a,b){return Pa(a|0,b|0)<<24>>24};e.Eo=function(a,b){return Na(a|0,b|0)<<24>>24};e.pm=function(a,b){return l(a|0,b|0)<<24>>24}; +e.zi=function(a,b){return((a|0)-(b|0)|0)<<24>>24};e.sh=function(a,b){return((a|0)+(b|0)|0)<<24>>24};e.$=function(a,b){return(a|0)-(b|0)|0};e.$classData=v({nna:0},!1,"scala.math.Numeric$ByteIsIntegral$",{nna:1,b:1,hBa:1,UC:1,VC:1,wh:1,ph:1,xh:1,uh:1,d:1,xna:1});var sM;function d9(){}d9.prototype=new t;d9.prototype.constructor=d9;e=d9.prototype;e.uf=function(a,b){return 0>=this.$(a,b)};e.ug=function(a,b){return E4(this,a,b)};e.wg=function(a,b){return 0>this.$(a,b)}; +e.tg=function(a,b){return 0a?-1:1))};e.qm=function(a){return Da(a)};e.Cf=function(a){return q(65535&a)};e.my=function(a,b){return q(65535&Pa(Da(a),Da(b)))};e.Eo=function(a,b){return q(65535&Na(Da(a),Da(b)))};e.pm=function(a,b){return q(65535&l(Da(a),Da(b)))}; +e.zi=function(a,b){return q(65535&(Da(a)-Da(b)|0))};e.sh=function(a,b){return q(65535&(Da(a)+Da(b)|0))};e.$=function(a,b){return Da(a)-Da(b)|0};e.$classData=v({ona:0},!1,"scala.math.Numeric$CharIsIntegral$",{ona:1,b:1,iBa:1,UC:1,VC:1,wh:1,ph:1,xh:1,uh:1,d:1,zna:1});var e9;function uM(){e9||(e9=new d9);return e9}function pM(){}pM.prototype=new t;pM.prototype.constructor=pM;e=pM.prototype;e.uf=function(a,b){return 0>=this.$(a,b)};e.ug=function(a,b){return E4(this,a,b)}; +e.wg=function(a,b){return 0>this.$(a,b)};e.tg=function(a,b){return 0a?-1:1};e.qm=function(a){return a|0};e.Cf=function(a){return a};e.my=function(a,b){return Pa(a|0,b|0)};e.Eo=function(a,b){return Na(a|0,b|0)};e.pm=function(a,b){return l(a|0,b|0)};e.zi=function(a,b){return(a|0)-(b|0)|0}; +e.sh=function(a,b){return(a|0)+(b|0)|0};e.$=function(a,b){a|=0;b|=0;return a===b?0:a=this.$(a,b)};e.ug=function(a,b){return E4(this,a,b)};e.wg=function(a,b){return 0>this.$(a,b)};e.tg=function(a,b){return 0b?-1:0===b&&0===a.k?0:1;return new p(a,a>>31)};e.qm=function(a){return Ga(a).k};e.Cf=function(a){return new p(a,a>>31)};e.my=function(a,b){a=Ga(a);var c=Ga(b);b=new p(a.k,a.o);c=new p(c.k,c.o);a=Aa();b=ko(a,b.k,b.o,c.k,c.o);return new p(b,a.za)}; +e.Eo=function(a,b){a=Ga(a);var c=Ga(b);b=new p(a.k,a.o);c=new p(c.k,c.o);a=Aa();b=qn(a,b.k,b.o,c.k,c.o);return new p(b,a.za)};e.pm=function(a,b){a=Ga(a);var c=Ga(b);b=new p(a.k,a.o);a=new p(c.k,c.o);c=b.k;var d=a.k,f=65535&c,g=c>>>16|0,h=65535&d,k=d>>>16|0,n=l(f,h);h=l(g,h);var r=l(f,k);f=n+((h+r|0)<<16)|0;n=(n>>>16|0)+r|0;b=(((l(c,a.o)+l(b.o,d)|0)+l(g,k)|0)+(n>>>16|0)|0)+(((65535&n)+h|0)>>>16|0)|0;return new p(f,b)}; +e.zi=function(a,b){a=Ga(a);b=Ga(b);var c=new p(a.k,a.o);a=new p(b.k,b.o);b=c.k;c=c.o;var d=a.o;a=b-a.k|0;return new p(a,(-2147483648^a)>(-2147483648^b)?-1+(c-d|0)|0:c-d|0)};e.sh=function(a,b){a=Ga(a);b=Ga(b);var c=new p(a.k,a.o);a=new p(b.k,b.o);b=c.k;c=c.o;var d=a.o;a=b+a.k|0;return new p(a,(-2147483648^a)<(-2147483648^b)?1+(c+d|0)|0:c+d|0)};e.$=function(a,b){var c=Ga(a);a=c.k;c=c.o;var d=Ga(b);b=d.k;d=d.o;return za(Aa(),a,c,b,d)}; +e.$classData=v({qna:0},!1,"scala.math.Numeric$LongIsIntegral$",{qna:1,b:1,kBa:1,UC:1,VC:1,wh:1,ph:1,xh:1,uh:1,d:1,Dna:1});var g9;function vM(){g9||(g9=new f9);return g9}function rM(){}rM.prototype=new t;rM.prototype.constructor=rM;e=rM.prototype;e.uf=function(a,b){return 0>=this.$(a,b)};e.ug=function(a,b){return E4(this,a,b)};e.wg=function(a,b){return 0>this.$(a,b)};e.tg=function(a,b){return 0a?-1:1)<<16>>16};e.qm=function(a){return a|0};e.Cf=function(a){return a<<16>>16};e.my=function(a,b){return Pa(a|0,b|0)<<16>>16};e.Eo=function(a,b){return Na(a|0,b|0)<<16>>16};e.pm=function(a,b){return l(a|0,b|0)<<16>>16};e.zi=function(a,b){return((a|0)-(b|0)|0)<<16>>16};e.sh=function(a,b){return((a|0)+(b|0)|0)<<16>>16};e.$=function(a,b){return(a|0)-(b|0)|0}; +e.$classData=v({rna:0},!1,"scala.math.Numeric$ShortIsIntegral$",{rna:1,b:1,mBa:1,UC:1,VC:1,wh:1,ph:1,xh:1,uh:1,d:1,Hna:1});var qM;function jd(a,b){wM();var c=a.SD(),d=a.yI().Cf(1);a=a.yI();return new h9(c,b,d,a)}function kA(a,b,c){this.HS=this.GS=this.mB=null;if(null===a)throw I(J(),null);this.mB=a;this.GS=b;this.HS=c}kA.prototype=new t;kA.prototype.constructor=kA;e=kA.prototype;e.Gb=function(){return eA()};e.ca=function(a,b){return new sV(this.mB.Uq,b,this)};e.ta=function(a,b){return oP(this,a,b)}; +e.Mc=function(){return"expected dictionary"};e.yc=function(){return null};e.Sc=function(){return YO(this)};e.Qc=function(){return ZO(this)};e.n=function(){return $O(this)};e.bc=function(){return aP(this)};e.xc=function(){return dP(this)};e.xd=function(){return eP(this)};e.Rc=function(){return fP(this)};e.yd=function(){return gP(this)};e.Kd=function(){return hP(this)};e.Id=function(){return iP(this)};e.Hd=function(){return jP(this)};e.Jd=function(){return kP(this)};e.Bu=function(a){return this.GS.Bu(a)}; +e.Qx=function(a){return this.HS.Qx(a)};e.sa=function(){return this.mB.Uq};e.mf=function(){return this.mB.Uq};e.$classData=v({iha:0},!1,"upickle.core.Types$ReadWriter$$anon$2",{iha:1,b:1,nha:1,FS:1,qa:1,la:1,ra:1,IG:1,ya:1,wa:1,LG:1});function iA(a,b){this.nB=null;this.KS=b;if(null===a)throw I(J(),null);this.nB=a}iA.prototype=new t;iA.prototype.constructor=iA;e=iA.prototype;e.Gb=function(){return eA()};e.ca=function(a,b){return new sV(this.nB.oB,b,this)};e.ta=function(a,b){return oP(this,a,b)}; +e.Mc=function(){return"expected dictionary"};e.yc=function(){return null};e.Sc=function(){return YO(this)};e.Qc=function(){return ZO(this)};e.n=function(){return $O(this)};e.bc=function(){return aP(this)};e.xc=function(){return dP(this)};e.xd=function(){return eP(this)};e.Rc=function(){return fP(this)};e.yd=function(){return gP(this)};e.Kd=function(){return hP(this)};e.Id=function(){return iP(this)};e.Hd=function(){return jP(this)};e.Jd=function(){return kP(this)}; +e.Bu=function(a){for(var b=null,c=this.KS.t();null===b&&c.s();){var d=c.p().Bu(a);null!==d&&(b=d)}return b};e.Qx=function(a){for(var b=null,c=this.KS.t();null===b&&c.s();){var d=c.p().Qx(a);null!==d&&(b=d)}return b};e.sa=function(){return this.nB.oB};e.mf=function(){return this.nB.oB};e.$classData=v({pha:0},!1,"upickle.core.Types$TaggedReadWriter$Node",{pha:1,b:1,nha:1,FS:1,qa:1,la:1,ra:1,IG:1,ya:1,wa:1,LG:1});function i9(){}i9.prototype=new y5;i9.prototype.constructor=i9;function j9(){} +e=j9.prototype=i9.prototype;e.c=function(a){return t8(this,a)};e.v=function(){var a=D();return nz(a,this,a.aD)};e.pc=function(){return"Set"};e.g=function(){return Gi(this)};e.pK=function(a){return this.vk(a)};e.El=function(a){return Bda(this,a)};e.hh=function(a){this.Pa(a)};e.rf=function(a){return this.Pa(a)};e.qf=function(a){return ps(this,a)};e.r=function(a){return this.Pa(a)}; +function m7(a,b){if(a===b)return!0;if(b&&b.$classData&&b.$classData.Hb.jj)if(a.Y()===b.Y())try{return a.vk(new C(((c,d)=>f=>fq(O(),d.ui(f.Ea(),Z_().dW),f.xa()))(a,b)))}catch(c){throw c;}else return!1;else return!1}function lfa(a,b,c){if(ez(iz(),b)){var d=$w(a,a.Cc,ax(bx(),new Hw(b)));5!==a.wy&&6!==a.wy&&d||c.CI(b)}else throw I(J(),b);}function fx(a,b,c,d){a.PC=c;a.vy=d;a.uy=null;a.wy=b;Hy(a);return a}function gx(){this.uy=this.vy=this.PC=this.Cc=null;this.wy=0}gx.prototype=new Oea; +gx.prototype.constructor=gx;function Nea(a,b){a.uy=b;b=a.vy;try{b.wH(a)}catch(d){var c=Sr(J(),d);if(null!==c)a.PC=null,a.uy=null,a.vy=null,lfa(a,c,b);else throw d;}} +gx.prototype.vr=function(){var a=this.uy,b=this.PC,c=this.vy;this.vy=this.uy=this.PC=null;try{switch(this.wy){case 0:var d=null;break;case 1:d=a instanceof Pw?new Pw(b.r(a.Sa())):a;break;case 2:if(a instanceof Pw){var f=b.r(a.Sa());f instanceof Iy?W6(f,this):V6(this,f);d=null}else d=a;break;case 3:d=ax(bx(),b.r(a));break;case 4:var g=b.r(a);g instanceof Iy?W6(g,this):V6(this,g);d=null;break;case 5:a.Fa(b);d=null;break;case 6:b.r(a);d=null;break;case 7:d=a instanceof Hw?ax(bx(),a.aV(b)):a;break;case 8:if(a instanceof +Hw){var h=b.Lc(a.gj,Ow().vV);d=h!==Ow().NI?(h instanceof Iy?W6(h,this):V6(this,h),null):a}else d=a;break;case 9:d=a instanceof Hw||b.r(a.Sa())?a:Ow().uV;break;case 10:d=a instanceof Pw?new Pw(b.Lc(a.Sa(),Ow().sV)):a;break;default:d=new Hw(Vt("BUG: encountered transformation promise with illegal type: "+this.wy))}null!==d&&$w(this,this.Cc,d)}catch(k){if(a=Sr(J(),k),null!==a)lfa(this,a,c);else throw k;}}; +gx.prototype.$classData=v({$ma:0},!1,"scala.concurrent.impl.Promise$Transformation",{$ma:1,AV:1,wU:1,b:1,d:1,Qma:1,Kma:1,Fma:1,ja:1,zV:1,SH:1,cBa:1});function kd(a){this.ak=a}kd.prototype=new t;kd.prototype.constructor=kd;e=kd.prototype;e.qo=function(){return!0};e.ih=function(a){return this.ak-Da(a)|0};e.g=function(){return""+this.SD()};e.UB=function(){return this.qo()&&this.eg()===this.yu()};e.WB=function(){return this.qo()&&this.eg()===this.Gv()}; +e.Wx=function(){if(this.qo()){var a=this.fg();var b=this.eg();a=a.k===b&&a.o===b>>31}else a=!1;return a};e.Yi=function(){return this.ak};e.no=function(){return da(this.ak)};e.fg=function(){var a=this.ak;return new p(a,a>>31)};e.eg=function(){return this.ak};e.yu=function(){return this.ak<<24>>24};e.Gv=function(){return this.ak<<16>>16};e.VB=function(){return!0};e.v=function(){return this.ak};e.c=function(a){af||(af=new bf);return a instanceof kd?this.ak===a.ak:!1};e.yI=function(){return uM()}; +e.SD=function(){return q(this.ak)};e.$classData=v({bva:0},!1,"scala.runtime.RichChar",{bva:1,b:1,Tua:1,jva:1,fva:1,XI:1,Bma:1,Ama:1,$ua:1,vh:1,Bb:1,ava:1});function D4(a){this.ah=a}D4.prototype=new t;D4.prototype.constructor=D4;e=D4.prototype;e.qo=function(){return!0};e.ih=function(a){var b=this.ah,c=Ga(new p(b.k,b.o));b=c.k;c=c.o;var d=Ga(a);a=d.k;d=d.o;return za(Aa(),b,c,a,d)};e.g=function(){return""+this.SD()};e.Yi=function(){var a=this.ah,b=a.k;a=a.o;return bs(Aa(),b,a)}; +e.no=function(){var a=this.ah,b=a.k;a=a.o;return as(Aa(),b,a)};e.fg=function(){var a=this.ah;return new p(a.k,a.o)};e.eg=function(){return this.ah.k};e.yu=function(){return this.ah.k<<24>>24};e.Gv=function(){return this.ah.k<<16>>16};e.UB=function(){dy();var a=this.ah,b=a.k<<24>>24;return b===a.k&&b>>31===a.o};e.WB=function(){dy();var a=this.ah,b=a.k<<16>>16;return b===a.k&&b>>31===a.o};e.VB=function(){dy();var a=this.ah,b=65535&a.k;return b===a.k&&b>>31===a.o}; +e.Wx=function(){dy();var a=this.ah,b=a.k;return b===a.k&&b>>31===a.o};e.v=function(){var a=this.ah;return a.k^a.o};e.c=function(a){dy();var b=this.ah;if(a instanceof D4){a=a.ah;var c=a.o;b=b.k===a.k&&b.o===c}else b=!1;return b};e.yI=function(){return vM()};e.SD=function(){return this.ah};e.$classData=v({dva:0},!1,"scala.runtime.RichLong",{dva:1,b:1,Tua:1,jva:1,fva:1,XI:1,Bma:1,Ama:1,$ua:1,vh:1,Bb:1,ava:1});function k9(){}k9.prototype=new y5;k9.prototype.constructor=k9;function l9(){} +e=l9.prototype=k9.prototype;e.ar=function(){return!0};e.c=function(a){return j7(this,a)};e.v=function(){return MN(this)};e.g=function(){return Gi(this)};e.rb=function(a){var b=this.Db(),c=b.Ib,d=new a9;d.dv=this;d.Py=a;return c.call(b,d)};e.fd=function(a){return d0(this,a)};e.$d=function(a){return TR(this,a)};e.jh=function(a){return this.$d(a)};e.Y=function(){return this.z()};e.zu=function(){return Dd(this)};e.Af=function(a){return e0(this,a)};e.be=function(){return this.Qf().t()}; +e.TB=function(a){return 0<=a&&0c=>G(new H,c.Ea(),b.hW.r(c.xa())))(this)))};e.Nc=function(a){a=this.lD.Nc(a);var b=this.hW;return a.i()?E():new Ze(b.r(a.Sa()))};e.N=function(){return this.lD.N()};e.i=function(){return this.lD.i()}; +e.$classData=v({Spa:0},!1,"scala.collection.MapView$MapValues",{Spa:1,LV:1,Sd:1,ka:1,b:1,ga:1,J:1,ia:1,K:1,ha:1,gd:1,d:1,eW:1,Fi:1,Ca:1,ja:1}); +function ufa(a,b){if(a===b)return!0;if(b&&b.$classData&&b.$classData.Hb.pW){var c=b.Vd,d=a.Vd;if(null===c?null===d:c.c(d)){if(zf(nf(),a.Xc)===zf(nf(),b.Xc)){nf();c=a.Xc;nf();d=E();c=new qf(c,d,a.Vd);nf();d=b.Xc;nf();var f=E();b=new qf(d,f,b.Vd);for(d=!0;d&&c.s();)d=c.p(),f=b.p(),d=a.Vd.Bf(d.Ea(),f.Ea())&&fq(O(),d.xa(),f.xa());return d}return!1}}return m7(a,b)}function B9(){}B9.prototype=new j9;B9.prototype.constructor=B9;function C9(){}C9.prototype=B9.prototype;B9.prototype.Db=function(){return sR()}; +function TB(a,b,c){return((d,f)=>g=>f.$k(g))(a,b)(c)}function eY(a,b,c){a=new x6(a,b,c);b=new XU(-1,!1);return a.$k(b).g()}function z9(a,b){this.rJ=this.My=this.Py=this.dv=null;Y8(this,a,b)}z9.prototype=new mfa;z9.prototype.constructor=z9;e=z9.prototype;e.t=function(){return new vK(this)};e.be=function(){return new D5(this)};e.pc=function(){return"IndexedSeqView"};e.Qf=function(){return new y9(this)};e.G=function(){return this.W(0)};e.Pd=function(){return S2(this)};e.Qb=function(){return T2(this)}; +e.fc=function(a){var b=this.z();return b===a?0:b>31;var k=g>>>31|0|g>>31<<1;for(g=(h===k?(-2147483648^c)>(-2147483648^g<<1):h>k)?g:c;f()=>{if(d.i())return sT();Bx();var g=f.r(v0(d).G()),h=wfa(v0(d).Pc(),f);return new pT(g,h)})(a,b)))},Lda=function yfa(a,b){if(0>=b)return Bx().Hi;Bx();return new q0(new Yc(((d,f)=>()=>{if(d.i())return sT();Bx();var g=v0(d).G(),h=yfa(v0(d).Pc(),-1+f|0);return new pT(g,h)})(a,b)))}; +function zfa(a,b,c,d,f){b.R=""+b.R+c;if(!a.Ef)b.R+="\x3cnot computed\x3e";else if(!a.i()){c=v0(a).G();b.R=""+b.R+c;c=a;var g=v0(a).Pc();if(c!==g&&(!g.Ef||v0(c)!==v0(g))&&(c=g,g.Ef&&!g.i()))for(g=v0(g).Pc();c!==g&&g.Ef&&!g.i()&&v0(c)!==v0(g);){b.R=""+b.R+d;var h=v0(c).G();b.R=""+b.R+h;c=v0(c).Pc();g=v0(g).Pc();g.Ef&&!g.i()&&(g=v0(g).Pc())}if(!g.Ef||g.i()){for(;c!==g;)b.R=""+b.R+d,a=v0(c).G(),b.R=""+b.R+a,c=v0(c).Pc();c.Ef||(b.R=""+b.R+d,b.R+="\x3cnot computed\x3e")}else{h=a;for(a=0;;){var k=h,n=g; +if(k!==n&&v0(k)!==v0(n))h=v0(h).Pc(),g=v0(g).Pc(),a=1+a|0;else break}h=c;k=g;(h===k||v0(h)===v0(k))&&0a?1:Ada(this,a)};e.TB=function(a){return e3(this,a)};e.W=function(a){return pl(this,a)};e.dr=function(a){return yda(this,a)};e.Pa=function(a){return zda(this,a)};e.Ik=function(a){return f3(this,a)};e.vi=function(a,b){return g3(this,a,b)}; +function v0(a){if(!a.MJ&&!a.MJ){if(a.NJ)throw I(J(),Mf(new Nf,"self-referential LazyList or a derivation thereof has no more elements"));a.NJ=!0;try{var b=a.CW.Rb()}finally{a.NJ=!1}a.Ef=!0;a.CW=null;a.DW=b;a.MJ=!0}return a.DW}e.i=function(){return v0(this)===sT()};e.N=function(){return this.Ef&&this.i()?0:-1};e.G=function(){return v0(this).G()};function t0(a){var b=a,c=a;for(b.i()||(b=v0(b).Pc());c!==b&&!b.i();){b=v0(b).Pc();if(b.i())break;b=v0(b).Pc();if(b===c)break;c=v0(c).Pc()}return a} +e.t=function(){return this.Ef&&this.i()?xx().Na:new t3(this)};e.Fa=function(a){for(var b=this;!b.i();)a.r(v0(b).G()),b=v0(b).Pc()};e.gr=function(a,b){for(var c=this;;){if(c.i())return a;var d=v0(c).Pc();a=b.Od(a,v0(c).G());c=d}};e.sf=function(){return"LazyList"};function f$(a,b){Bx();return new q0(new Yc(((c,d)=>()=>{if(c.i()){var f=d.Rb();return f instanceof q0?v0(f):0===f.N()?sT():y0(Bx(),f.t())}Bx();f=v0(c).G();var g=f$(v0(c).Pc(),d);return new pT(f,g)})(a,b)))} +function Afa(a,b){return a.Ef&&a.i()?pS(Bx(),b):f$(a,new Yc(((c,d)=>()=>d)(a,b)))}function Bfa(a,b){return a.Ef&&a.i()?(Bx(),new q0(new Yc(((c,d)=>()=>{Bx();var f=Bx().Hi;return new pT(d,f)})(a,b)))):f$(a,new Yc(((c,d)=>()=>{xx();return new Sb(d)})(a,b)))}e.Tg=function(a){if(this.i())throw it("empty.reduceLeft");for(var b=v0(this).G(),c=v0(this).Pc();!c.i();)b=a.Od(b,v0(c).G()),c=v0(c).Pc();return b};function uT(a,b){return a.Ef&&a.i()?Bx().Hi:u0(Bx(),a,b,!1)}e.$D=function(a){return new tT(this,a)}; +function Cfa(a,b){Bx();return new q0(new Yc(((c,d)=>()=>{Bx();return new pT(d,c)})(a,b)))}function Dfa(a,b){if(a.Ef&&a.i())return pS(Bx(),b);if(0===b.N())return a;Bx();return new q0(new Yc(((c,d)=>()=>x0(Bx(),d.t(),new Yc((f=>()=>v0(f))(c))))(a,b)))}e.Cu=function(a){for(var b=this;;){if(b.i())return E();var c=v0(b).G();if(a.r(c))return new Ze(c);b=v0(b).Pc()}};function Kda(a,b){return 0>=b?a:a.Ef&&a.i()?Bx().Hi:gda(Bx(),a,b)} +e.SB=function(a){if(!(0=a||this.Ef&&this.i()?Bx().Hi:hda(Bx(),this,a)};e.Ac=function(a){return Kda(this,a)}; +e.lb=function(a){return this.Ef&&this.i()?Bx().Hi:w0(Bx(),this,a)};e.Da=function(a){return this.Ef&&this.i()?Bx().Hi:xfa(this,a)};e.fd=function(a){return Dfa(this,a)};e.Ce=function(a){return Cfa(this,a)};e.ob=function(a){return uT(this,a)};e.rb=function(a){return Bfa(this,a)};e.$d=function(a){return Afa(this,a)};e.L=function(){return v0(this).Pc()};e.Db=function(){return Bx()}; +e.$classData=v({jra:0},!1,"scala.collection.immutable.LazyList",{jra:1,pe:1,Mb:1,ka:1,b:1,ga:1,J:1,ia:1,K:1,ha:1,Eb:1,Ca:1,ja:1,cb:1,m:1,Ud:1,Nb:1,ge:1,xD:1,Ky:1,jD:1,yD:1,d:1}); +function Efa(a,b,c,d,f){b.R=""+b.R+c;if(!a.i()){c=a.G();b.R=""+b.R+c;c=a;if(a.om()){var g=a.L();if(c!==g&&(c=g,g.om()))for(g=g.L();c!==g&&g.om();){b.R=""+b.R+d;var h=c.G();b.R=""+b.R+h;c=c.L();g=g.L();g.om()&&(g=g.L())}if(g.om()){for(h=0;a!==g;)a=a.L(),g=g.L(),h=1+h|0;c===g&&0a?1:Ada(this,a)};e.TB=function(a){return e3(this,a)}; +e.W=function(a){return pl(this,a)};e.dr=function(a){return yda(this,a)};e.Pa=function(a){return zda(this,a)};e.Ik=function(a){return f3(this,a)};e.vi=function(a,b){return g3(this,a,b)};e.sf=function(){return"Stream"};e.Fa=function(a){for(var b=this;!b.i();)a.r(b.G()),b=b.L()};e.Cu=function(a){for(var b=this;;){if(b.i())return E();if(a.r(b.G()))return new Ze(b.G());b=b.L()}};e.gr=function(a,b){for(var c=this;;){if(c.i())return a;var d=c.L();a=b.Od(a,c.G());c=d}}; +function Ffa(a,b){if(a.i())return a=Ax(),b=b.Rb(),C0(a,b);var c=a.G();return new F0(c,new Yc(((d,f)=>()=>Ffa(d.L(),f))(a,b)))}e.Tg=function(a){if(this.i())throw it("empty.reduceLeft");for(var b=this.G(),c=this.L();!c.i();)b=a.Od(b,c.G()),c=c.L();return b};function IT(a,b,c){for(;!a.i()&&!!b.r(a.G())===c;)a=a.L();return a.i()?G0():ida(Ax(),a,b,c)}e.$D=function(a){return new HT(this,a)};function Gfa(a,b){return new F0(b,new Yc((c=>()=>c)(a)))} +function Hfa(a,b){if(a.i())return G0();var c=b.r(a.G());return new F0(c,new Yc(((d,f)=>()=>Hfa(d.L(),f))(a,b)))}function Ifa(a,b){if(a.i())return G0();var c=new mC(a),d=Ax(),f=b.r(c.Ob.G());for(d=C0(d,f);!c.Ob.i()&&d.i();)c.Ob=c.Ob.L(),c.Ob.i()||(d=Ax(),f=b.r(c.Ob.G()),d=C0(d,f));return c.Ob.i()?G0():Ffa(d,new Yc(((g,h,k)=>()=>Ifa(h.Ob.L(),k))(a,c,b)))}e.zf=function(a,b,c,d){this.VT();Efa(this,a.Gd,b,c,d);return a};e.g=function(){return Efa(this,e_("Stream"),"(",", ",")").R}; +e.r=function(a){return pl(this,a|0)};e.le=function(a){return e3(this,a|0)};e.lb=function(a){return Ifa(this,a)};e.Da=function(a){return Hfa(this,a)};e.Ce=function(a){return Gfa(this,a)};e.ob=function(a){return IT(this,a,!1)};e.Db=function(){return Ax()};function ML(a){this.Fg=a}ML.prototype=new H9;ML.prototype.constructor=ML;e=ML.prototype;e.ar=function(a){return K9(this,a)};e.pc=function(){return"IndexedSeq"};e.t=function(){return new vK(new R9(this.Fg))};e.be=function(){return new O0(this)}; +e.Qf=function(){return new y9(this)};e.Ce=function(a){return this.Db().Ib(new E9(a,this))};e.Jh=function(a){return this.ke(new F9(this,a))};e.Ac=function(a){return Q2(this,a)};e.Da=function(a){return this.Db().Ib(new D9(this,a))};e.G=function(){return q(65535&(this.Fg.charCodeAt(0)|0))};e.Pd=function(){return S2(this)};e.Qb=function(){return T2(this)};e.fc=function(a){var b=this.Fg.length|0;return b===a?0:b>ea(a)&a)<<1;return 1073741824>a?a:1073741824}function bU(a,b,c){a.ND=c;a.vf=new (x(iw).M)(Kfa(b));a.dK=Qa(a.vf.a.length*a.ND);a.fp=0;return a}function $T(){var a=new cU;bU(a,16,.75);return a}function cU(){this.ND=0;this.vf=null;this.fp=this.dK=0}cU.prototype=new e$;cU.prototype.constructor=cU;e=cU.prototype;e.lb=function(a){return j0(this,a)};e.ob=function(a){return k0(this,a)};e.Y=function(){return this.fp};function w6(a){return a^(a>>>16|0)} +e.Pa=function(a){var b=w6(ly(W(),a)),c=this.vf.a[b&(-1+this.vf.a.length|0)];if(null===c)a=null;else a:for(;;){if(b===c.Yk&&fq(O(),a,c.ep)){a=c;break a}if(null===c.Jf||c.Yk>b){a=null;break a}c=c.Jf}return null!==a};e.oc=function(a){a=Kfa(Qa((1+a|0)/this.ND));a>this.vf.a.length&&Jfa(this,a)};e.sk=function(a){(1+this.fp|0)>=this.dK&&Jfa(this,this.vf.a.length<<1);return n$(this,a,w6(ly(W(),a)))}; +function aU(a,b){a.oc(b.N());if(b instanceof kT)return b.Td.AH(new jt((d=>(f,g)=>{n$(d,f,w6(g|0))})(a))),a;if(b instanceof cU){for(b=new u6(b);b.s();){var c=b.p();n$(a,c.ep,c.Yk)}return a}return IM(a,b)}e.t=function(){return new t6(this)};e.Db=function(){return eU()};e.N=function(){return this.fp};e.i=function(){return 0===this.fp};e.Fa=function(a){for(var b=this.vf.a.length,c=0;ch=>G(new H,h,g.ir(h,null)))(this,a))),d=new Ze(new W2(c,new C((()=>f=>null!==f.xa())(this)),!1))}catch(f){throw f;}return d.i()?xx().Na:d.Sa()};e.i=function(){return!this.t().s()}; +function Lfa(){try{var a=$P(),b=Fm(),c=new F7,d=Im();c.pC=d;for(c.YH=new s5(d);;){for(var f=b.ko().nh();f.s();){var g=f.p(),h=g.qh,k=g.Qg;"string"===typeof h&&(d=h,"string"===typeof k&&c.sk(d))}if(null!==b.fy)b=b.fy;else break}var n=new Dt(a,c);cQ();var r=n.Bqa,u=new Ze((null===r?null:new o$(r)).t())}catch(w){throw w;}return u.i()?xx().Na:u.Sa()}e.FH=function(a){try{var b=new Ze(xI(yI(),Jm(Gm(),a)))}catch(c){throw c;}return b.i()?E():b.Sa()}; +e.Ia=function(a){try{var b=a.Ea(),c=a.xa(),d=Gm();null!==d.Ak?(Jm(d,b),d.Ak[b]=c):d.uo.Gk(b,c)}catch(f){throw f;}return this};e.Pa=function(a){try{var b=new Ze(!this.Nc(a).i())}catch(c){throw c;}return b.i()?!1:!!b.Sa()};e.Nc=function(a){return this.FH(a)};e.rH=function(){return null};e.$classData=v({coa:0},!1,"scala.sys.SystemProperties",{coa:1,XJ:1,Jk:1,ka:1,b:1,ga:1,J:1,ia:1,K:1,ha:1,jj:1,Fi:1,Ca:1,ja:1,Mk:1,m:1,RD:1,Ye:1,iK:1,kf:1,ld:1,ue:1,Fd:1,Ed:1,Zj:1}); +function J1(){VV||(VV=new UV);gW||(gW=new hW)}J1.prototype=new gea;J1.prototype.constructor=J1;J1.prototype.$classData=v({mY:0},!1,"cats.data.NonEmptyListInstances$$anon$2",{mY:1,Hva:1,b:1,FX:1,Am:1,Hm:1,d:1,Bm:1,kp:1,sX:1,Fm:1,zm:1,wm:1,Cm:1,mi:1,Em:1,Gm:1,xm:1,vm:1,Dm:1,xX:1,ym:1,Iva:1,lp:1,mp:1,jp:1});function p$(a,b){var c=new oN(a.hd,a.Vf),d=new oN(a.hd,a.Ff);a=d.Io.pm(d.zy,a.hd.Cf(b));return lx(c,a)} +function q$(){this.ED=0;this.DD=!1;this.CD=0;this.Ff=this.Tj=this.Vf=null;this.tv=!1;this.hd=null;this.hi=0}q$.prototype=new H9;q$.prototype.constructor=q$;function r$(){}e=r$.prototype=q$.prototype;e.Af=function(a){return S7(this,a)};e.Pe=function(a){return g0(this,a)};e.Ce=function(a){return H5(this,a)};e.rb=function(a){return I5(this,a)};e.$d=function(a){return Nl(this,a)};e.fd=function(a){return J5(this,a)};e.Da=function(a){return i0(this,a)};e.lb=function(a){return j0(this,a)}; +e.ob=function(a){return k0(this,a)};e.Jh=function(a){return l0(this,a)};e.ar=function(a){return K9(this,a)};e.Ik=function(a){return L9(this,a)};e.Pg=function(){return Qd()};e.pc=function(){return"IndexedSeq"};e.be=function(){return new O0(this)};e.Qf=function(){return new y9(this)};e.Pd=function(){return S2(this)};e.fc=function(a){var b=this.z();return b===a?0:b>24&&0===(1&this.hi)<<24>>24){a:{wM();var a=this.Vf,b=this.Tj,c=this.Ff,d=this.tv,f=this.hd,g=f.Cf(0),h=0>f.$(a,b),k=0r&&0u;if(0===u)throw Hq("step cannot be 0.");f?f=0:(d=r>>31,g=n>>31,f=r-n|0,g=(-2147483648^f)>(-2147483648^r)?-1+(d- +g|0)|0:d-g|0,c=u>>31,d=Aa(),f=qn(d,f,g,u,c),d=d.za,f=1+f|0,d=0===f?1+d|0:d,f=(0===d?-1<(-2147483648^f):0>31,c=n>>31,d=r-n|0,g=(-2147483648^d)>(-2147483648^r)?-1+(g-c|0)|0:g-c|0,c=u>>31,ko(Aa(),d,g,u,c)}n=0>f?yM(Ex(),n,r,u,!0):f;break a}f=n>r&&0u||n===r;if(0===u)throw Hq("step cannot be 0.");f?f=0:(d=r>>31,g=n>>31,f=r-n|0,g=(-2147483648^f)>(-2147483648^r)?-1+(d-g|0)|0:d-g|0,c=u>>31,d=Aa(),f=qn(d,f,g,u,c),d=d.za,c=r>>31,b=n>>31,g= +r-n|0,b=(-2147483648^g)>(-2147483648^r)?-1+(c-b|0)|0:c-b|0,h=u>>31,c=Aa(),g=ko(c,g,b,u,h),c=c.za,c=0!==g||0!==c?1:0,g=c>>31,c=f+c|0,f=(-2147483648^c)<(-2147483648^f)?1+(d+g|0)|0:d+g|0,f=(0===f?-1<(-2147483648^c):0>31,c=n>>31,d=r-n|0,g=(-2147483648^d)>(-2147483648^r)?-1+(g-c|0)|0:g-c|0,c=u>>31,ko(Aa(),d,g,u,c)}n=0>f?yM(Ex(),n,r,u,!1):f;break a}}}f&&f.$classData&&f.$classData.Hb.gBa&&(fq(O(),f.zi(f.sh(a,c),a),c)||iM(a,c),fq(O(),f.zi(b,f.zi(b, +c)),c)||iM(b,c));r=f.Cf(1);n=f.Cf(2147483647);u=f.Hv(a);var w=f.Hv(b);u=f.pm(u,w);E4(f,u,g)?(b=f.zi(b,a),u=kM(f.Eo(b,c),f,n),c=f.zi(b,f.pm(u,c)),n=!d&&fq(O(),g,c)?u:kM(f.sh(u,r),f,n)):(u=f.Cf(-1),u=k?u:r,u=k&&0>f.$(u,a)||!k&&0f.$(a,b)!==h?r=d&&fq(O(),a,b)?f.sh(u,f.Cf(2)):f.sh(u,r):(h=kM(f.Eo(f.zi(b,a),c),f,n),g=fq(O(),h,g)?a:f.sh(a,f.pm(h,c)),r=f.sh(u,f.sh(h,!d&&fq(O(),g,b)?r:f.Cf(2)))),n=kM(r,f,n));n=f.qm(n)}}this.ED= +n;this.hi=(1|this.hi)<<24>>24}return this.ED};e.i=function(){0===(2&this.hi)<<24>>24&&0===(2&this.hi)<<24>>24&&(this.DD=0this.hd.$(this.Vf,this.Tj)&&0>this.hd.$(this.Ff,this.hd.Cf(0))?!0:F4(this.hd,this.Vf,this.Tj)?!this.tv:!1,this.hi=(2|this.hi)<<24>>24);return this.DD};e.Qb=function(){return this.i()?A().kr():p$(this,-1+this.z()|0)};e.G=function(){return this.i()?A().kr():this.Vf}; +e.W=function(a){if(0>a||a>=this.z())throw my(new V,a+" is out of bounds (min 0, max "+(-1+this.z()|0)+")");return p$(this,a)};e.Fa=function(a){for(var b=0,c=this.Vf;b>24&&0===(4&this.hi)<<24>>24&&(this.CD=MN(this),this.hi=(4|this.hi)<<24>>24);return this.CD};e.Zq=function(){return 2147483647};e.c=function(a){return a instanceof q$?K9(a,this)&&this.z()===a.z()&&(this.i()||fq(O(),this.Vf,a.Vf)&&fq(O(),this.Qb(),a.Qb())):j7(this,a)};e.g=function(){var a=this.i()?"empty ":"",b=this.tv?"to":"until",c=fq(O(),this.Ff,1)?"":" by "+this.Ff;return a+"NumericRange "+this.Vf+" "+b+" "+this.Tj+c};e.sf=function(){return"NumericRange"}; +e.Db=function(){return Qd()};e.Ac=function(a){0>=a||this.i()?a=this:a>=this.z()?(a=this.Tj,wM(),a=new s$(a,a,this.Ff,this.hd)):a=this.OT(p$(this,a),this.Tj,this.Ff);return a};e.r=function(a){return this.W(a|0)};e.L=function(){if(this.i()){Mfa(A());var a=void 0}else a=this.tv?new h9(lx(new oN(this.hd,this.Vf),this.Ff),this.Tj,this.Ff,this.hd):new s$(lx(new oN(this.hd,this.Vf),this.Ff),this.Tj,this.Ff,this.hd);return a}; +function t$(a){var b=a.Ch,c=b>>31,d=a.vc;a=d>>31;d=b-d|0;return new p(d,(-2147483648^d)>(-2147483648^b)?-1+(c-a|0)|0:c-a|0)}function Nfa(a){var b=t$(a),c=a.tb,d=c>>31;a=Aa();b=ko(a,b.k,b.o,c,d);a=a.za;return 0===b&&0===a} +function Ofa(a,b,c,d){a.vc=b;a.Ch=c;a.tb=d;a.Gf=b>c&&0d||b===c&&!a.$i();if(0===d)throw Hq("step cannot be 0.");if(a.Gf)b=0;else{b=t$(a);var f=a.tb,g=f>>31;var h=Aa();b=qn(h,b.k,b.o,f,g);h=h.za;g=a.$i()||!Nfa(a)?1:0;f=g>>31;g=b+g|0;h=new p(g,(-2147483648^g)<(-2147483648^b)?1+(h+f|0)|0:h+f|0);b=h.k;h=h.o;b=(0===h?-1<(-2147483648^b):0>31,b=ko(Aa(),b.k,b.o,d,h),c=0!==b?c-b|0:a.$i()?c: +c-d|0}a.Wr=c}function N0(){this.tb=this.Ch=this.vc=0;this.Gf=!1;this.Wr=this.Eg=0}N0.prototype=new H9;N0.prototype.constructor=N0;function u$(){}e=u$.prototype=N0.prototype;e.Af=function(a){return S7(this,a)};e.Ce=function(a){return H5(this,a)};e.rb=function(a){return I5(this,a)};e.$d=function(a){return Nl(this,a)};e.fd=function(a){return J5(this,a)};e.lb=function(a){return j0(this,a)};e.ob=function(a){return k0(this,a)};e.ar=function(a){return K9(this,a)};e.Pg=function(){return Qd()};e.pc=function(){return"IndexedSeq"}; +e.be=function(){return new O0(this)};e.Qf=function(){return new y9(this)};e.Pd=function(){return S2(this)};e.fc=function(a){var b=this.z();return b===a?0:bthis.Eg?yM(Ex(),this.vc,this.Ch,this.tb,this.$i()):this.Eg};function v$(a){if(a.Gf)throw I(J(),zM("last"));return a.Wr}function w$(a){if(a.Gf)throw I(J(),zM("head"));return a.vc} +function Pfa(a){0>a.Eg&&yM(Ex(),a.vc,a.Ch,a.tb,a.$i())}e.Fa=function(a){if(!this.Gf)for(var b=this.vc;;){a.r(b);if(b===this.Wr)break;b=b+this.tb|0}};e.Ik=function(a){if(a instanceof N0){var b=this.z();switch(b){case 0:return a.Gf;case 1:return 1===a.z()&&this.vc===a.vc;default:return a.z()===b&&this.vc===a.vc&&this.tb===a.tb}}else return L9(this,a)}; +function G3(a,b){if(0>=b||a.Gf)return a;if(b>=a.Eg&&0<=a.Eg)return b=a.Ch,new EV(b,b,a.tb);b=a.vc+l(a.tb,b)|0;var c=a.Ch,d=a.tb;return a.$i()?new F3(b,c,d):new EV(b,c,d)}e.Pa=function(a){la(a)?(a|=0,a=!(a===this.Ch&&!this.$i())&&(0this.Ch)&&(1===this.tb||0===Pa(a-this.vc|0,this.tb)):!(athis.vc)&&(-1===this.tb||0===Pa(a-this.vc|0,this.tb)))):a=WS(this,a);return a};e.Zq=function(){return 2147483647}; +e.c=function(a){if(a instanceof N0){if(this.Gf)return a.Gf;if(a.Gf||this.vc!==a.vc)return!1;var b=v$(this);return b===v$(a)&&(this.vc===b||this.tb===a.tb)}return j7(this,a)};e.v=function(){if(2<=this.z()){var a=D(),b=this.tb,c=this.Wr;return lz(a.l(a.l(a.l(a.oe,this.vc),b),c))}return MN(this)};e.g=function(){var a=this.$i()?"to":"until",b=1===this.tb?"":" by "+this.tb;return(this.Gf?"empty ":Nfa(this)?"":"inexact ")+"Range "+this.vc+" "+a+" "+this.Ch+b};e.sf=function(){return"Range"}; +e.SB=function(a){if(!(1<=a)){var b=qg();throw Hq("requirement failed: "+xt(b,"size\x3d%d, but size must be positive",Af(new Bf,[a])));}return this.Gf?xx().Na:new E3(this,a)};e.jo=function(a){Pfa(this);if(0>a||a>=this.Eg)throw my(new V,a+" is out of bounds (min 0, max "+(-1+this.Eg|0)+")");return this.vc+l(this.tb,a)|0};e.Db=function(){return Qd()};e.Pe=function(a){return a===xp()?0=a){var b=this.vc;b=new EV(b,b,this.tb)}else if(0<=this.Eg)b=G3(this,this.Eg-a|0);else{b=v$(this);var c=b>>31,d=this.tb,f=d>>31;a=-1+a|0;var g=a>>31,h=65535&d,k=d>>>16|0,n=65535&a,r=a>>>16|0,u=l(h,n);n=l(k,n);var w=l(h,r);h=u+((n+w|0)<<16)|0;u=(u>>>16|0)+w|0;f=(((l(d,g)+l(f,a)|0)+l(k,r)|0)+(u>>>16|0)|0)+(((65535&u)+n|0)>>>16|0)|0;d=b-h|0;c=(-2147483648^d)>(-2147483648^b)?-1+(c-f|0)|0:c-f|0;0>31,f=c===a?(-2147483648^d)<(-2147483648^f):cthis.tb?(f=this.vc,a=f>>31,c=c===a?(-2147483648^d)>(-2147483648^f):c>a):c=!1;b=c?this:new F3(d,b,this.tb)}return b};e.Ac=function(a){return G3(this,a)};e.r=function(a){return this.jo(a|0)};e.W=function(a){return this.jo(a)};e.Da=function(a){Pfa(this);return i0(this,a)};e.L=function(){if(this.Gf)throw I(J(),zM("tail"));if(1===this.Eg){var a=this.Ch;a=new EV(a,a,this.tb)}else a=this.$i()?new F3(this.vc+this.tb|0,this.Ch,this.tb):new EV(this.vc+this.tb|0,this.Ch,this.tb);return a};e.G=function(){return w$(this)}; +e.Qb=function(){return v$(this)};v({L_:0},!1,"cats.kernel.instances.BooleanOrder",{L_:1,b:1,Wwa:1,Im:1,Jm:1,fk:1,d:1,jxa:1,Cwa:1,Kwa:1,As:1,Gxa:1,Rwa:1,Pv:1,Exa:1,tE:1,Hxa:1,vwa:1,jE:1,rE:1,qE:1,oE:1,pE:1,fxa:1,bxa:1,pxa:1,txa:1});v({M_:0},!1,"cats.kernel.instances.ByteOrder",{M_:1,b:1,Twa:1,Im:1,Jm:1,fk:1,d:1,gxa:1,zwa:1,Hwa:1,As:1,Ixa:1,Owa:1,Pv:1,Bxa:1,tE:1,Jxa:1,swa:1,jE:1,rE:1,qE:1,oE:1,pE:1,cxa:1,Zwa:1,mxa:1,qxa:1});function x$(){}x$.prototype=new t;x$.prototype.constructor=x$; +x$.prototype.lo=function(a,b){return Da(a)===Da(b)};x$.prototype.$=function(a,b){a=Da(a);b=Da(b);return ab?1:0};x$.prototype.oo=function(a){return Da(a)};x$.prototype.$classData=v({N_:0},!1,"cats.kernel.instances.CharOrder",{N_:1,b:1,Uwa:1,Im:1,Jm:1,fk:1,d:1,hxa:1,Awa:1,Iwa:1,As:1,Kxa:1,Pwa:1,Pv:1,Cxa:1,tE:1,Lxa:1,twa:1,jE:1,rE:1,qE:1,oE:1,pE:1,dxa:1,$wa:1,nxa:1,rxa:1});function y$(){}y$.prototype=new t;y$.prototype.constructor=y$;y$.prototype.lo=function(a,b){return(a|0)===(b|0)}; +y$.prototype.$=function(a,b){a|=0;b|=0;return ab?1:0};y$.prototype.oo=function(a){return a|0};y$.prototype.$classData=v({d0:0},!1,"cats.kernel.instances.IntOrder",{d0:1,b:1,Vwa:1,Im:1,Jm:1,fk:1,d:1,ixa:1,Bwa:1,Jwa:1,As:1,Mxa:1,Qwa:1,Pv:1,Dxa:1,tE:1,Nxa:1,uwa:1,jE:1,rE:1,qE:1,oE:1,pE:1,exa:1,axa:1,oxa:1,sxa:1});function o$(a){this.Mr=a}o$.prototype=new e$;o$.prototype.constructor=o$;e=o$.prototype;e.El=function(a){var b=new ZT(16,.75);FZ(b,this);FZ(b,a);return b.Xf}; +e.lb=function(a){return j0(this,a)};e.ob=function(a){return k0(this,a)};e.Y=function(){return this.Mr.Y()};e.i=function(){return this.Mr.i()};e.N=function(){return this.Mr.i()?0:-1};e.t=function(){var a=$P(),b=this.Mr.nh();a=new Ct(a,b);cQ();a=a.zqa;return null===a?null:new R7(a)};e.Pa=function(a){return this.Mr.Pa(a)};e.Db=function(){return eU()};e.A=function(){return"JSetWrapper"};e.B=function(){return 1};e.C=function(a){return 0===a?this.Mr:T(W(),a)};e.Ia=function(a){this.Mr.sk(a);return this}; +e.$classData=v({Fqa:0},!1,"scala.collection.convert.JavaCollectionWrappers$JSetWrapper",{Fqa:1,UW:1,Sl:1,ka:1,b:1,ga:1,J:1,ia:1,K:1,ha:1,Nk:1,Ul:1,ja:1,m:1,dX:1,Ye:1,eX:1,kf:1,ld:1,ue:1,Fd:1,Ed:1,Zj:1,yJ:1,hb:1,d:1,y:1}); +function Qfa(a,b){if(MZ(a))return b;if(MZ(b))return a;var c=a.wd()instanceof Za;if(c!==b.wd()instanceof Za)return null;if(c){c=a.wd();b=b.wd();a=Cs(Pp(),c)+Cs(Pp(),b)|0;a=new Za(a);var d=Cs(Pp(),c);c.Z(0,a,0,d);c=Cs(Pp(),c);d=Cs(Pp(),b);b.Z(0,a,c,d);return c3(Y2(),a)}c=a.wd();b=b.wd();d=Cs(Pp(),c)+Cs(Pp(),b)|0;a=a.je().Be(d);d=Cs(Pp(),c);c.Z(0,a,0,d);c=Cs(Pp(),c);d=Cs(Pp(),b);b.Z(0,a,c,d);return c3(Y2(),a)} +function Rfa(a,b){var c=b.N();if(0===c)return a;$t();var d=[];0<=c&&Cs(Pp(),a.wd());a=a.wd();c=Cs(Pp(),a);for(var f=0;fc&&Cs(Pp(),a.wd());a=a.wd();c=Cs(Pp(),a);for(b=0;bf=>d.r(c.W(f|0)))(a,b)))}e.De=function(a){Y2();var b=this.wd();$t();var c=1+Cs(Pp(),b)|0;c=new Za(c);c.a[0]=a;Qs(Ns(),b,0,c,1,Cs(Pp(),b));return c3(0,c)};e.ye=function(a){Y2();var b=this.wd();$t();Ns();var c=1+Cs(Pp(),b)|0;Tl(m(nb),Vl(ia(b)))?c=Rl(m(nb))?Ps(b,c):sq(F(),b,c,m(x(nb))):(c=new Za(c),Qs(Ns(),b,0,c,0,Cs(Pp(),b)));Qp(Pp(),c,Cs(Pp(),b),a);return c3(0,c)}; +e.gr=function(a,b){for(var c=this.wd(),d=0;d=Cs(Pp(),this.wd()))return this;Ns();var b=this.wd(),c=this.z();Os();Tl(m(nb),Vl(ia(b)))?b=Rl(m(nb))?Ps(b,c):sq(F(),b,c,m(x(nb))):(c=new Za(c),Qs(Ns(),b,0,c,0,Cs(Pp(),b)),b=c);Jp(F(),b,a);return new T3(b)};e.ke=function(a){Y2();var b=this.je();return M5(a,b)};e.Pe=function(a){return this.Kf(a)};e.L=function(){Y2();ms();var a=this.wd();if(0===Cs(Pp(),a))throw it("tail of empty array");a=Fs(ms(),a,1,Cs(Pp(),a));return c3(0,a)}; +e.Ac=function(a){return 0>=a?this:c3(Y2(),Is(ms(),this.wd(),a))};e.Jh=function(a){if(Cs(Pp(),this.wd())<=a)a=this;else{Y2();ms();var b=this.wd();a=Is(ms(),b,Cs(Pp(),b)-(0y=>!!r.r(y)!==u?ZS(w,y):void 0)(a,b,c,h)));return h.ej()}if(0===f)return Lv();b=new Za(f);a.F.Z(0,b,0,d);for(c=1+d|0;d!==f;)0!==(1<y=>!!r.r(y)!==u?ZS(w,y):void 0)(a,b,c,d))),d.ej()):a}e.Zh=function(a,b){if(b<(4+this.Ni()|0)){b=this;a=dX(Qd(),a);for(a=new O0(a);a.s();){var c=a.p();b=b.th(c)}return b}if(this.z()<(b>>>5|0)&&a instanceof S3){for(b=this.t();b.s();)c=b.p(),a=a.rb(c);return a}return J5(this,a)}; +e.Wh=function(a,b){var c=4+this.Ni()|0;if(0g=>{f.Ob=f.Ob.Of(g)})(this,b)));else for(a=a.t();a.s();)c=a.p(),b.Ob=b.Ob.Of(c);return b.Ob}if(this.z()<(b>>>5|0)&&a instanceof S3){for(b=new O0(this);b.s();)a=a.th(b.p());return a}return YS(Uda(new XS,this),a).ej()};e.sf=function(){return"Vector"};e.Zb=function(a,b,c){return this.t().Zb(a,b,c)};e.tz=function(){return this};e.Zq=function(){return Rb().QW}; +e.cf=function(a){return my(new V,a+" is out of bounds (min 0, max "+(-1+this.z()|0)+")")};e.G=function(){if(0===this.F.a.length)throw Ir("empty.head");return this.F.a[0]};e.Qb=function(){if(this instanceof A$){var a=this.P;if(0===a.a.length)throw Ir("empty.tail");return a.a[-1+a.a.length|0]}return this.F.a[-1+this.F.a.length|0]};e.Fa=function(a){for(var b=this.Ni(),c=0;cg?-g|0:g)|0)|0,this.ck(c),a);c=1+c|0}}; +e.Jh=function(a){a=this.z()-(0=this.z())return this;if(a===Ks()){a=this.Ok.X();var b=Ls(),c=Ks();Ms(b,a,a.a.length,c);return new V5(a)}return N5.prototype.Kf.call(this,a)};e.t=function(){return new O6(this.Ok)};e.ye=function(a){if("boolean"===typeof a){a=!!a;var b=this.Ok;zq();Ns();var c=1+b.a.length|0;Tl(m(qb),Vl(ia(b)))?c=Rl(m(qb))?Ps(b,c):sq(F(),b,c,m(x(qb))):(c=new ab(c),Qs(Ns(),b,0,c,0,b.a.length));Qp(Pp(),c,b.a.length,a);return new V5(c)}return N5.prototype.ye.call(this,a)}; +e.De=function(a){if("boolean"===typeof a){a=!!a;var b=this.Ok;zq();var c=new ab(1+b.a.length|0);c.a[0]=a;Qs(Ns(),b,0,c,1,b.a.length);return new V5(c)}return N5.prototype.De.call(this,a)};e.rf=function(a){return this.Ok.a[a]};e.Ce=function(a){return this.De(a)};e.rb=function(a){return this.ye(a)};e.Pe=function(a){return this.Kf(a)};e.r=function(a){return this.rf(a|0)};e.W=function(a){return this.rf(a)};e.je=function(){return zq()};e.wd=function(){return this.Ok}; +e.$classData=v({Lqa:0},!1,"scala.collection.immutable.ArraySeq$ofBoolean",{Lqa:1,Vl:1,pe:1,Mb:1,ka:1,b:1,ga:1,J:1,ia:1,K:1,ha:1,Eb:1,Ca:1,ja:1,cb:1,m:1,Ud:1,Nb:1,ge:1,Ue:1,Ub:1,xb:1,ef:1,Ve:1,Vb:1,hb:1,Tl:1,d:1});function T5(a){this.Pk=a}T5.prototype=new z$;T5.prototype.constructor=T5;e=T5.prototype;e.z=function(){return this.Pk.a.length};e.Dx=function(a){return this.Pk.a[a]};e.v=function(){var a=D();return qz(a,this.Pk,a.oe)}; +e.c=function(a){if(a instanceof T5){var b=this.Pk;a=a.Pk;return kq(F(),b,a)}return j7(this,a)};e.Kf=function(a){return 1>=this.z()?this:a===Ip()?(a=this.Pk.X(),Gp(F(),a),new T5(a)):N5.prototype.Kf.call(this,a)};e.t=function(){return new QZ(this.Pk)}; +e.ye=function(a){if(Wa(a)){a|=0;var b=this.Pk;Hp();Ns();var c=1+b.a.length|0;Tl(m(sb),Vl(ia(b)))?c=Rl(m(sb))?Ps(b,c):sq(F(),b,c,m(x(sb))):(c=new cb(c),Qs(Ns(),b,0,c,0,b.a.length));Qp(Pp(),c,b.a.length,a);return new T5(c)}return N5.prototype.ye.call(this,a)};e.De=function(a){if(Wa(a)){a|=0;var b=this.Pk;Hp();var c=new cb(1+b.a.length|0);c.a[0]=a;Qs(Ns(),b,0,c,1,b.a.length);return new T5(c)}return N5.prototype.De.call(this,a)};e.Ce=function(a){return this.De(a)};e.rb=function(a){return this.ye(a)}; +e.Pe=function(a){return this.Kf(a)};e.r=function(a){return this.Dx(a|0)};e.W=function(a){return this.Dx(a)};e.je=function(){return Hp()};e.wd=function(){return this.Pk};e.$classData=v({Mqa:0},!1,"scala.collection.immutable.ArraySeq$ofByte",{Mqa:1,Vl:1,pe:1,Mb:1,ka:1,b:1,ga:1,J:1,ia:1,K:1,ha:1,Eb:1,Ca:1,ja:1,cb:1,m:1,Ud:1,Nb:1,ge:1,Ue:1,Ub:1,xb:1,ef:1,Ve:1,Vb:1,hb:1,Tl:1,d:1});function S5(a){this.Oj=a}S5.prototype=new z$;S5.prototype.constructor=S5;e=S5.prototype;e.z=function(){return this.Oj.a.length}; +e.Ex=function(a){return this.Oj.a[a]};e.v=function(){var a=D();return rz(a,this.Oj,a.oe)};e.c=function(a){if(a instanceof S5){var b=this.Oj;a=a.Oj;return jq(F(),b,a)}return j7(this,a)};e.Kf=function(a){return 1>=this.z()?this:a===Fp()?(a=this.Oj.X(),pe(F(),a),new S5(a)):N5.prototype.Kf.call(this,a)};e.t=function(){return new H6(this.Oj)}; +e.ye=function(a){if(a instanceof ha){a=Da(a);var b=this.Oj;oe();Ns();var c=1+b.a.length|0;Tl(m(rb),Vl(ia(b)))?c=Rl(m(rb))?Ps(b,c):sq(F(),b,c,m(x(rb))):(c=new bb(c),Qs(Ns(),b,0,c,0,b.a.length));Qp(Pp(),c,b.a.length,q(a));return new S5(c)}return N5.prototype.ye.call(this,a)};e.De=function(a){if(a instanceof ha){a=Da(a);var b=this.Oj;oe();var c=new bb(1+b.a.length|0);c.a[0]=a;Qs(Ns(),b,0,c,1,b.a.length);return new S5(c)}return N5.prototype.De.call(this,a)}; +e.zf=function(a,b,c,d){return(new JL(this.Oj)).zf(a,b,c,d)};e.Ce=function(a){return this.De(a)};e.rb=function(a){return this.ye(a)};e.Pe=function(a){return this.Kf(a)};e.r=function(a){return q(this.Ex(a|0))};e.W=function(a){return q(this.Ex(a))};e.je=function(){return oe()};e.wd=function(){return this.Oj}; +e.$classData=v({Nqa:0},!1,"scala.collection.immutable.ArraySeq$ofChar",{Nqa:1,Vl:1,pe:1,Mb:1,ka:1,b:1,ga:1,J:1,ia:1,K:1,ha:1,Eb:1,Ca:1,ja:1,cb:1,m:1,Ud:1,Nb:1,ge:1,Ue:1,Ub:1,xb:1,ef:1,Ve:1,Vb:1,hb:1,Tl:1,d:1});function P5(a){this.Wl=a}P5.prototype=new z$;P5.prototype.constructor=P5;e=P5.prototype;e.z=function(){return this.Wl.a.length};e.v=function(){var a=D();return sz(a,this.Wl,a.oe)};e.c=function(a){if(a instanceof P5){var b=this.Wl;a=a.Wl;return mq(F(),b,a)}return j7(this,a)};e.t=function(){return new I6(this.Wl)}; +e.ye=function(a){if("number"===typeof a){a=+a;var b=this.Wl;Gs();Ns();var c=1+b.a.length|0;Tl(m(xb),Vl(ia(b)))?c=Rl(m(xb))?Ps(b,c):sq(F(),b,c,m(x(xb))):(c=new jb(c),Qs(Ns(),b,0,c,0,b.a.length));Qp(Pp(),c,b.a.length,a);return new P5(c)}return N5.prototype.ye.call(this,a)};e.De=function(a){if("number"===typeof a){a=+a;var b=this.Wl;Gs();var c=new jb(1+b.a.length|0);c.a[0]=a;Qs(Ns(),b,0,c,1,b.a.length);return new P5(c)}return N5.prototype.De.call(this,a)};e.Ax=function(a){return this.Wl.a[a]};e.Ce=function(a){return this.De(a)}; +e.rb=function(a){return this.ye(a)};e.r=function(a){return this.Ax(a|0)};e.W=function(a){return this.Ax(a)};e.je=function(){return Gs()};e.wd=function(){return this.Wl};e.$classData=v({Oqa:0},!1,"scala.collection.immutable.ArraySeq$ofDouble",{Oqa:1,Vl:1,pe:1,Mb:1,ka:1,b:1,ga:1,J:1,ia:1,K:1,ha:1,Eb:1,Ca:1,ja:1,cb:1,m:1,Ud:1,Nb:1,ge:1,Ue:1,Ub:1,xb:1,ef:1,Ve:1,Vb:1,hb:1,Tl:1,d:1});function R5(a){this.Xl=a}R5.prototype=new z$;R5.prototype.constructor=R5;e=R5.prototype;e.z=function(){return this.Xl.a.length}; +e.v=function(){var a=D();return tz(a,this.Xl,a.oe)};e.c=function(a){if(a instanceof R5){var b=this.Xl;a=a.Xl;return nq(F(),b,a)}return j7(this,a)};e.t=function(){return new J6(this.Xl)};e.ye=function(a){if("number"===typeof a){a=+a;var b=this.Xl;Hs();Ns();var c=1+b.a.length|0;Tl(m(wb),Vl(ia(b)))?c=Rl(m(wb))?Ps(b,c):sq(F(),b,c,m(x(wb))):(c=new gb(c),Qs(Ns(),b,0,c,0,b.a.length));Qp(Pp(),c,b.a.length,a);return new R5(c)}return N5.prototype.ye.call(this,a)}; +e.De=function(a){if("number"===typeof a){a=+a;var b=this.Xl;Hs();var c=new gb(1+b.a.length|0);c.a[0]=a;Qs(Ns(),b,0,c,1,b.a.length);return new R5(c)}return N5.prototype.De.call(this,a)};e.Bx=function(a){return this.Xl.a[a]};e.Ce=function(a){return this.De(a)};e.rb=function(a){return this.ye(a)};e.r=function(a){return this.Bx(a|0)};e.W=function(a){return this.Bx(a)};e.je=function(){return Hs()};e.wd=function(){return this.Xl}; +e.$classData=v({Pqa:0},!1,"scala.collection.immutable.ArraySeq$ofFloat",{Pqa:1,Vl:1,pe:1,Mb:1,ka:1,b:1,ga:1,J:1,ia:1,K:1,ha:1,Eb:1,Ca:1,ja:1,cb:1,m:1,Ud:1,Nb:1,ge:1,Ue:1,Ub:1,xb:1,ef:1,Ve:1,Vb:1,hb:1,Tl:1,d:1});function O5(a){this.Qk=a}O5.prototype=new z$;O5.prototype.constructor=O5;e=O5.prototype;e.z=function(){return this.Qk.a.length};e.v=function(){var a=D();return uz(a,this.Qk,a.oe)};e.c=function(a){if(a instanceof O5){var b=this.Qk;a=a.Qk;return hq(F(),b,a)}return j7(this,a)}; +e.Kf=function(a){return 1>=this.z()?this:a===xp()?(a=this.Qk.X(),wp(F(),a),new O5(a)):N5.prototype.Kf.call(this,a)};e.t=function(){return new K6(this.Qk)};e.ye=function(a){if(la(a)){a|=0;var b=this.Qk;$n();Ns();var c=1+b.a.length|0;Tl(m(ub),Vl(ia(b)))?c=Rl(m(ub))?Ps(b,c):sq(F(),b,c,m(x(ub))):(c=new eb(c),Qs(Ns(),b,0,c,0,b.a.length));Qp(Pp(),c,b.a.length,a);return new O5(c)}return N5.prototype.ye.call(this,a)}; +e.De=function(a){if(la(a)){a|=0;var b=this.Qk;$n();var c=new eb(1+b.a.length|0);c.a[0]=a;Qs(Ns(),b,0,c,1,b.a.length);return new O5(c)}return N5.prototype.De.call(this,a)};e.jo=function(a){return this.Qk.a[a]};e.Ce=function(a){return this.De(a)};e.rb=function(a){return this.ye(a)};e.Pe=function(a){return this.Kf(a)};e.r=function(a){return this.jo(a|0)};e.W=function(a){return this.jo(a)};e.je=function(){return $n()};e.wd=function(){return this.Qk}; +e.$classData=v({Qqa:0},!1,"scala.collection.immutable.ArraySeq$ofInt",{Qqa:1,Vl:1,pe:1,Mb:1,ka:1,b:1,ga:1,J:1,ia:1,K:1,ha:1,Eb:1,Ca:1,ja:1,cb:1,m:1,Ud:1,Nb:1,ge:1,Ue:1,Ub:1,xb:1,ef:1,Ve:1,Vb:1,hb:1,Tl:1,d:1});function Q5(a){this.Rk=a}Q5.prototype=new z$;Q5.prototype.constructor=Q5;e=Q5.prototype;e.z=function(){return this.Rk.a.length};e.v=function(){var a=D();return vz(a,this.Rk,a.oe)};e.c=function(a){if(a instanceof Q5){var b=this.Rk;a=a.Rk;return gq(F(),b,a)}return j7(this,a)}; +e.Kf=function(a){return 1>=this.z()?this:a===Cp()?(a=this.Rk.X(),Ap(F(),a),new Q5(a)):N5.prototype.Kf.call(this,a)};e.t=function(){return new L6(this.Rk)};e.ye=function(a){if(a instanceof p){var b=Ga(a);a=b.k;b=b.o;var c=this.Rk;Bp();Ns();var d=1+c.a.length|0;Tl(m(vb),Vl(ia(c)))?d=Rl(m(vb))?Ps(c,d):sq(F(),c,d,m(x(vb))):(d=new fb(d),Qs(Ns(),c,0,d,0,c.a.length));Qp(Pp(),d,c.a.length,new p(a,b));return new Q5(d)}return N5.prototype.ye.call(this,a)}; +e.De=function(a){if(a instanceof p){var b=Ga(a);a=b.k;b=b.o;var c=this.Rk;Bp();var d=new fb(1+c.a.length|0);d.a[0]=Ga(new p(a,b));Qs(Ns(),c,0,d,1,c.a.length);return new Q5(d)}return N5.prototype.De.call(this,a)};e.Cx=function(a){return this.Rk.a[a]};e.Ce=function(a){return this.De(a)};e.rb=function(a){return this.ye(a)};e.Pe=function(a){return this.Kf(a)};e.r=function(a){return this.Cx(a|0)};e.W=function(a){return this.Cx(a)};e.je=function(){return Bp()};e.wd=function(){return this.Rk}; +e.$classData=v({Rqa:0},!1,"scala.collection.immutable.ArraySeq$ofLong",{Rqa:1,Vl:1,pe:1,Mb:1,ka:1,b:1,ga:1,J:1,ia:1,K:1,ha:1,Eb:1,Ca:1,ja:1,cb:1,m:1,Ud:1,Nb:1,ge:1,Ue:1,Ub:1,xb:1,ef:1,Ve:1,Vb:1,hb:1,Tl:1,d:1});function T3(a){this.Pj=a}T3.prototype=new z$;T3.prototype.constructor=T3;e=T3.prototype;e.je=function(){return pq(qq(),Vl(ia(this.Pj)))};e.z=function(){return this.Pj.a.length};e.W=function(a){return this.Pj.a[a]};e.v=function(){var a=D();return oz(a,this.Pj,a.oe)}; +e.c=function(a){return a instanceof T3?xL(Ns(),this.Pj,a.Pj):j7(this,a)};function Yfa(a,b){if(1>=a.Pj.a.length)return a;a=a.Pj.X();Jp(F(),a,b);return new T3(a)}e.t=function(){return qj(new rj,this.Pj)};e.Pe=function(a){return Yfa(this,a)};e.Kf=function(a){return Yfa(this,a)};e.r=function(a){return this.W(a|0)};e.wd=function(){return this.Pj}; +e.$classData=v({Sqa:0},!1,"scala.collection.immutable.ArraySeq$ofRef",{Sqa:1,Vl:1,pe:1,Mb:1,ka:1,b:1,ga:1,J:1,ia:1,K:1,ha:1,Eb:1,Ca:1,ja:1,cb:1,m:1,Ud:1,Nb:1,ge:1,Ue:1,Ub:1,xb:1,ef:1,Ve:1,Vb:1,hb:1,Tl:1,d:1});function U5(a){this.Sk=a}U5.prototype=new z$;U5.prototype.constructor=U5;e=U5.prototype;e.z=function(){return this.Sk.a.length};e.Fx=function(a){return this.Sk.a[a]};e.v=function(){var a=D();return wz(a,this.Sk,a.oe)}; +e.c=function(a){if(a instanceof U5){var b=this.Sk;a=a.Sk;return iq(F(),b,a)}return j7(this,a)};e.Kf=function(a){return 1>=this.z()?this:a===Ep()?(a=this.Sk.X(),Dp(F(),a),new U5(a)):N5.prototype.Kf.call(this,a)};e.t=function(){return new M6(this.Sk)}; +e.ye=function(a){if(Ya(a)){a|=0;var b=this.Sk;nl();Ns();var c=1+b.a.length|0;Tl(m(tb),Vl(ia(b)))?c=Rl(m(tb))?Ps(b,c):sq(F(),b,c,m(x(tb))):(c=new db(c),Qs(Ns(),b,0,c,0,b.a.length));Qp(Pp(),c,b.a.length,a);return new U5(c)}return N5.prototype.ye.call(this,a)};e.De=function(a){if(Ya(a)){a|=0;var b=this.Sk;nl();var c=new db(1+b.a.length|0);c.a[0]=a;Qs(Ns(),b,0,c,1,b.a.length);return new U5(c)}return N5.prototype.De.call(this,a)};e.Ce=function(a){return this.De(a)};e.rb=function(a){return this.ye(a)}; +e.Pe=function(a){return this.Kf(a)};e.r=function(a){return this.Fx(a|0)};e.W=function(a){return this.Fx(a)};e.je=function(){return nl()};e.wd=function(){return this.Sk};e.$classData=v({Tqa:0},!1,"scala.collection.immutable.ArraySeq$ofShort",{Tqa:1,Vl:1,pe:1,Mb:1,ka:1,b:1,ga:1,J:1,ia:1,K:1,ha:1,Eb:1,Ca:1,ja:1,cb:1,m:1,Ud:1,Nb:1,ge:1,Ue:1,Ub:1,xb:1,ef:1,Ve:1,Vb:1,hb:1,Tl:1,d:1});function W5(a){this.jv=a}W5.prototype=new z$;W5.prototype.constructor=W5;e=W5.prototype;e.z=function(){return this.jv.a.length}; +e.v=function(){var a=D();return xz(a,this.jv,a.oe)};e.c=function(a){return a instanceof W5?this.jv.a.length===a.jv.a.length:j7(this,a)};e.t=function(){return new N6(this.jv)};e.r=function(){};e.W=function(){};e.je=function(){return qN()};e.wd=function(){return this.jv};e.$classData=v({Uqa:0},!1,"scala.collection.immutable.ArraySeq$ofUnit",{Uqa:1,Vl:1,pe:1,Mb:1,ka:1,b:1,ga:1,J:1,ia:1,K:1,ha:1,Eb:1,Ca:1,ja:1,cb:1,m:1,Ud:1,Nb:1,ge:1,Ue:1,Ub:1,xb:1,ef:1,Ve:1,Vb:1,hb:1,Tl:1,d:1});function NN(){} +NN.prototype=new H9;NN.prototype.constructor=NN;function D$(){}e=D$.prototype=NN.prototype;e.Af=function(a){return S7(this,a)};e.Pe=function(a){return g0(this,a)};e.t=function(){return new i3(this)};e.rb=function(a){return I5(this,a)};e.pc=function(){return"LinearSeq"};e.TB=function(a){return e3(this,a)};e.W=function(a){return pl(this,a)};e.gr=function(a,b){for(var c=this;!c.i();)a=b.Od(a,c.G()),c=c.L();return a};e.Ik=function(a){return f3(this,a)};e.vi=function(a,b){return g3(this,a,b)};e.Pg=function(){return Wb()}; +function Fd(a,b){if(a.i())return b;if(b.i())return a;var c=new Vb(b.G(),a),d=c;for(b=b.L();!b.i();){var f=new Vb(b.G(),a);d=d.Ma=f;b=b.L()}return c}function Aaa(a,b){for(;!b.i();){var c=b.G();a=new Vb(c,a);b=b.L()}return a}e.i=function(){return this===A()};function Xb(a,b){if(b instanceof NN)return Fd(a,b);if(0===b.N())return a;if(b instanceof Cd&&a.i())return b.qc();b=b.t();if(b.s()){for(var c=new Vb(b.p(),a),d=c;b.s();){var f=new Vb(b.p(),a);d=d.Ma=f}return c}return a} +e.Fa=function(a){for(var b=this;!b.i();)a.r(b.G()),b=b.L()};function df(a){for(var b=A();!a.i();){var c=a.G();b=new Vb(c,b);a=a.L()}return b}e.z=function(){for(var a=this,b=0;!a.i();)b=1+b|0,a=a.L();return b};e.fc=function(a){if(0>a)a=1;else a:for(var b=this,c=0;;){if(c===a){a=b.i()?0:1;break a}if(b.i()){a=-1;break a}c=1+c|0;b=b.L()}return a};e.dr=function(a){for(var b=this;!b.i();){if(a.r(b.G()))return!0;b=b.L()}return!1};e.Pa=function(a){for(var b=this;!b.i();){if(fq(O(),b.G(),a))return!0;b=b.L()}return!1}; +e.Cu=function(a){for(var b=this;!b.i();){if(a.r(b.G()))return new Ze(b.G());b=b.L()}return E()};e.Qb=function(){if(this.i())throw Ir("List.last");for(var a=this,b=this.L();!b.i();)a=b,b=b.L();return a.G()};e.sf=function(){return"List"};e.qc=function(){return this};e.c=function(a){var b;if(a instanceof NN)a:for(b=this;;){if(b===a){b=!0;break a}var c=b.i(),d=a.i();if(c||d||!fq(O(),b.G(),a.G())){b=c&&d;break a}b=b.L();a=a.L()}else b=j7(this,a);return b};e.r=function(a){return pl(this,a|0)}; +e.le=function(a){return e3(this,a|0)};e.Ac=function(a){return h2(a,this)};e.ob=function(a){a:for(var b=this;;){if(b.i()){a=A();break a}var c=b.G(),d=b.L();if(!1!==!!a.r(c)){b:for(;;){if(d.i()){a=b;break b}c=d.G();if(!1!==!!a.r(c))d=d.L();else{var f=b;c=d;b=new Vb(f.G(),A());f=f.L();for(d=b;f!==c;){var g=new Vb(f.G(),A());d=d.Ma=g;f=f.L()}for(f=c=c.L();!c.i();){g=c.G();if(!1===!!a.r(g)){for(;f!==c;)g=new Vb(f.G(),A()),d=d.Ma=g,f=f.L();f=c.L()}c=c.L()}f.i()||(d.Ma=f);a=b;break b}}break a}b=d}return a}; +e.lb=function(a){for(var b=this,c=null,d=null;b!==A();){for(var f=a.r(b.G()).t();f.s();){var g=new Vb(f.p(),A());null===d?c=g:d.Ma=g;d=g}b=b.L()}return null===c?A():c};e.Da=function(a){if(this===A())a=A();else{for(var b=new Vb(a.r(this.G()),A()),c=b,d=this.L();d!==A();){var f=new Vb(a.r(d.G()),A());c=c.Ma=f;d=d.L()}a=b}return a};e.Jh=function(a){a:{var b=h2(a,this);for(a=this;;){if(A().c(b))break a;if(b instanceof Vb)b=b.Ma,a=a.L();else throw new B(b);}}return a}; +e.$d=function(a){return a instanceof NN?Fd(a,this):Nl(this,a)};e.fd=function(a){return Xb(this,a)};e.Ce=function(a){return new Vb(a,this)};e.Db=function(){return Wb()};function E$(){this.F=null}E$.prototype=new Ufa;E$.prototype.constructor=E$;function F$(){}F$.prototype=E$.prototype;function Wfa(a,b,c){b=0=a.kz&&H$(a,a.ac.a.length<<1);return I$(a,b,c,d,d&(-1+a.ac.a.length|0))} +function Zfa(a,b,c){(1+a.tj|0)>=a.kz&&H$(a,a.ac.a.length<<1);var d=ly(W(),b);d^=d>>>16|0;I$(a,b,c,d,d&(-1+a.ac.a.length|0))}function I$(a,b,c,d,f){var g=a.ac.a[f];if(null===g)a.ac.a[f]=new ew(b,d,c,null);else{for(var h=null,k=g;null!==k&&k.km<=d;){if(k.km===d&&fq(O(),b,k.cp))return k.sj=c,null;h=k;k=k.lf}null===h?a.ac.a[f]=new ew(b,d,c,g):h.lf=new ew(b,d,c,h.lf)}a.tj=1+a.tj|0;return null} +function H$(a,b){if(0>b)throw I(J(),Mf(new Nf,"new HashMap table size "+b+" exceeds maximum"));var c=a.ac.a.length;a.kz=Qa(b*a.MD);if(0===a.tj)a.ac=new (x(gw).M)(b);else{var d=a.ac;a.ac=oq(F(),d,b);d=new ew(null,0,null,null);for(var f=new ew(null,0,null,null);c>ea(a)&a)<<1;return 1073741824>a?a:1073741824}function TT(a,b,c){a.MD=c;a.ac=new (x(gw).M)($fa(b));a.kz=Qa(a.ac.a.length*a.MD);a.tj=0;return a}function DL(){var a=new UT;TT(a,16,.75);return a}function UT(){this.MD=0;this.ac=null;this.tj=this.kz=0}UT.prototype=new m$;UT.prototype.constructor=UT;e=UT.prototype;e.lb=function(a){return j0(this,a)};e.ob=function(a){return k0(this,a)};e.Y=function(){return this.tj}; +e.Pa=function(a){var b=ly(W(),a);b^=b>>>16|0;var c=this.ac.a[b&(-1+this.ac.a.length|0)];return null!==(null===c?null:fw(c,a,b))};e.oc=function(a){a=$fa(Qa((1+a|0)/this.MD));a>this.ac.a.length&&H$(this,a)}; +function ST(a,b){a.oc(b.N());if(b instanceof bT)return b.df.BH(new AU((d=>(f,g,h)=>{h|=0;G$(d,f,g,h^(h>>>16|0))})(a))),a;if(b instanceof UT){for(b=Fda(b);b.s();){var c=b.p();G$(a,c.cp,c.sj,c.km)}return a}return b&&b.$classData&&b.$classData.Hb.RD?(b.lh(new jt((d=>(f,g)=>{var h=ly(W(),f);return G$(d,f,g,h^(h>>>16|0))})(a))),a):IM(a,b)}e.t=function(){return 0===this.tj?xx().Na:new q6(this)};function Fda(a){return 0===a.tj?xx().Na:new r6(a)} +e.Nc=function(a){var b=ly(W(),a);b^=b>>>16|0;var c=this.ac.a[b&(-1+this.ac.a.length|0)];a=null===c?null:fw(c,a,b);return null===a?E():new Ze(a.sj)};e.r=function(a){var b=ly(W(),a);b^=b>>>16|0;var c=this.ac.a[b&(-1+this.ac.a.length|0)];b=null===c?null:fw(c,a,b);return null===b?F5(a):b.sj};e.ui=function(a,b){if(ia(this)!==m(J$))return E5(this,a,b);var c=ly(W(),a);c^=c>>>16|0;var d=this.ac.a[c&(-1+this.ac.a.length|0)];a=null===d?null:fw(d,a,c);return null===a?b.Rb():a.sj}; +e.QB=function(a,b){if(ia(this)!==m(J$))return tfa(this,a,b);var c=ly(W(),a);c^=c>>>16|0;var d=c&(-1+this.ac.a.length|0),f=this.ac.a[d];f=null===f?null:fw(f,a,c);if(null!==f)return f.sj;f=this.ac;b=b.Rb();(1+this.tj|0)>=this.kz&&H$(this,this.ac.a.length<<1);I$(this,a,b,c,f===this.ac?d:c&(-1+this.ac.a.length|0));return b};e.al=function(a,b){Zfa(this,a,b)};e.N=function(){return this.tj};e.i=function(){return 0===this.tj}; +e.Fa=function(a){for(var b=this.ac.a.length,c=0;ch?-h|0:h)|0)|0,a.ck(d),b);d=1+d|0}}function Mv(a){this.F=a}Mv.prototype=new F$;Mv.prototype.constructor=Mv;e=Mv.prototype;e.W=function(a){if(0<=a&&athis.F.a.length)return new Mv(Uv(S(),this.F,a));var b=this.F,c=S().Wb,d=new Za(1);d.a[0]=a;return new Nv(b,32,c,d,33)};e.th=function(a){var b=this.F.a.length;if(32>b)return new Mv(Wv(S(),a,this.F));var c=new Za(1);c.a[0]=a;return new Nv(c,1,S().Wb,this.F,1+b|0)};e.Kj=function(a){return new Mv(Zv(S(),this.F,a))};e.xj=function(a,b){var c=this.F;return new Mv(Gq(F(),c,a,b))};e.Li=function(){if(1===this.F.a.length)return Lv();var a=this.F,b=a.a.length;return new Mv(Gq(F(),a,1,b))}; +e.Ni=function(){return 1};e.ck=function(){return this.F};e.Zh=function(a,b){var c=aw(S(),this.F,a);return null!==c?new Mv(c):S3.prototype.Zh.call(this,a,b)};e.Wh=function(a,b){var c=cw(S(),this.F,a);return null!==c?new Mv(c):S3.prototype.Wh.call(this,a,b)};e.L=function(){return this.Li()};e.Da=function(a){return this.Kj(a)};e.Ce=function(a){return this.th(a)};e.rb=function(a){return this.Of(a)};e.r=function(a){a|=0;if(0<=a&&af=>!!d.r(f))(a,b))))} +function Daa(a,b){b=Kba(nf(),a.Cd,new jt(((d,f)=>g=>!!f.r(g))(a,b)));if(null===b)throw new B(b);var c=b.xa();return G(new H,P$(a,b.Ea()),P$(a,c))} +e.c=function(a){if(a instanceof K0){var b=this.gf,c=a.gf;if(null===b?null===c:b.c(c)){nf();b=this.Cd;a=a.Cd;c=this.gf;var d;if(!(d=b===a)&&(d=null!==b)&&(d=null!==a)&&(d=(2147483647&b.aa)===(2147483647&a.aa))){b=new a6(b,c);a=new a6(a,c);for(c=!0;c&&null!==b.Pb&&null!==a.Pb;)b.Pb===a.Pb?(0===b.Dc?d=null:(b.Dc=-1+b.Dc|0,d=b.pj.a[b.Dc]),b.Pb=d,0===a.Dc?d=null:(a.Dc=-1+a.Dc|0,d=a.pj.a[a.Dc]),a.Pb=d):(c=Object.is(b.Pb.Qa,a.Pb.Qa)?!0:b.Xr.Bf(b.Pb.Qa,a.Pb.Qa),b.Pb=I3(b,b.Pb.ma),a.Pb=I3(a,a.Pb.ma));d=c&& +null===b.Pb&&null===a.Pb}return d}}return l5(this,a)};e.sf=function(){return"TreeSet"};e.ke=function(a){return J0(S0(),a,this.gf)};e.wk=function(a){return J0(S0(),a,this.gf)};e.ob=function(a){return bga(this,a)};e.El=function(a){a:{if(a instanceof K0){var b=this.gf,c=a.gf;if(null===b?null===c:b.c(c)){a=rv(nf(),this.Cd,a.Cd,this.gf);break a}}a=a.t();for(b=this.Cd;a.s();)b=lv(nf(),b,a.p(),null,!1,this.gf);a=b}return P$(this,a)};e.po=function(a){return P$(this,lv(nf(),this.Cd,a,null,!1,this.gf))}; +e.Ac=function(a){if(0>=a)var b=this;else if(a>=zf(nf(),this.Cd))b=Q0(this.gf);else{b=new K0;var c=nf();a=ou(Bu(c,this.Cd,a));b=M0(b,a,this.gf)}return b};e.L=function(){var a=new K0;var b=nf();b=ou(av(b,this.Cd));return M0(a,b,this.gf)};e.$classData=v({Ssa:0},!1,"scala.collection.immutable.TreeSet",{Ssa:1,iv:1,Sl:1,ka:1,b:1,ga:1,J:1,ia:1,K:1,ha:1,Nk:1,Ul:1,ja:1,m:1,Yr:1,Nb:1,yv:1,Dsa:1,rW:1,Xpa:1,qW:1,Wpa:1,dCa:1,fCa:1,aqa:1,yJ:1,hb:1,Nsa:1,Bg:1,d:1}); +function Q$(){this.P=this.F=null;this.Q=0;L$(this,S().WJ,S().WJ,0)}Q$.prototype=new M$;Q$.prototype.constructor=Q$;e=Q$.prototype;e.sm=function(a){throw this.cf(a);};e.Of=function(a){var b=new Za(1);b.a[0]=a;return new Mv(b)};e.th=function(a){var b=new Za(1);b.a[0]=a;return new Mv(b)};e.Li=function(){throw it("empty.tail");};e.xj=function(){return this};e.Ni=function(){return 0};e.ck=function(){return null};e.c=function(a){return this===a||!(a instanceof S3)&&j7(this,a)}; +e.Zh=function(a){return Qb(Rb(),a)};e.Wh=function(a){return Qb(Rb(),a)};e.cf=function(a){return my(new V,a+" is out of bounds (empty vector)")};e.L=function(){return this.Li()};e.Da=function(){return this};e.Ce=function(a){return this.th(a)};e.rb=function(a){return this.Of(a)};e.r=function(a){throw this.cf(a|0);};e.W=function(a){throw this.cf(a);}; +e.$classData=v({Wsa:0},!1,"scala.collection.immutable.Vector0$",{Wsa:1,Uy:1,Bv:1,Av:1,pe:1,Mb:1,ka:1,b:1,ga:1,J:1,ia:1,K:1,ha:1,Eb:1,Ca:1,ja:1,cb:1,m:1,Ud:1,Nb:1,ge:1,Ue:1,Ub:1,xb:1,ef:1,Ve:1,Vb:1,hb:1,Bg:1,d:1});var R$;function Lv(){R$||(R$=new Q$);return R$}function Nv(a,b,c,d,f){this.P=this.F=null;this.Q=0;this.Hf=b;this.We=c;L$(this,a,d,f)}Nv.prototype=new M$;Nv.prototype.constructor=Nv;e=Nv.prototype; +e.W=function(a){if(0<=a&&a>>5|0,a=this.Hf){var c=a-this.Hf|0;a=c>>>5|0;c&=31;if(athis.P.a.length)return a=Uv(S(),this.P,a),new Nv(this.F,this.Hf,this.We,a,1+this.Q|0);if(30>this.We.a.length){var b=Vv(S(),this.We,this.P),c=new Za(1);c.a[0]=a;return new Nv(this.F,this.Hf,b,c,1+this.Q|0)}b=this.F;c=this.Hf;var d=this.We,f=this.Hf,g=S().te,h=this.P,k=new (x(x(nb)).M)(1);k.a[0]=h;h=new Za(1);h.a[0]=a;return new Ov(b,c,d,960+f|0,g,k,h,1+this.Q|0)}; +e.th=function(a){if(32>this.Hf){var b=Wv(S(),a,this.F);return new Nv(b,1+this.Hf|0,this.We,this.P,1+this.Q|0)}if(30>this.We.a.length)return b=new Za(1),b.a[0]=a,a=Xv(S(),this.F,this.We),new Nv(b,1,a,this.P,1+this.Q|0);b=new Za(1);b.a[0]=a;a=this.F;var c=new (x(x(nb)).M)(1);c.a[0]=a;return new Ov(b,1,c,1+this.Hf|0,S().te,this.We,this.P,1+this.Q|0)};e.Kj=function(a){var b=Zv(S(),this.F,a),c=$v(S(),2,this.We,a);a=Zv(S(),this.P,a);return new Nv(b,this.Hf,c,a,this.Q)}; +e.xj=function(a,b){a=new Jv(a,b);Kv(a,1,this.F);Kv(a,2,this.We);Kv(a,1,this.P);return a.ej()};e.Li=function(){if(1>>5|0,b>>10|0;var c=31&(b>>>5|0);b&=31;return a=this.hf?(b=a-this.hf|0,this.jf.a[b>>>5|0].a[31&b]):this.F.a[a]}throw this.cf(a);}; +e.sm=function(a,b){if(0<=a&&a=this.Xe){var c=a-this.Xe|0,d=c>>>10|0;a=31&(c>>>5|0);c&=31;if(d= +this.hf)return c=a-this.hf|0,a=c>>>5|0,c&=31,d=this.jf.X(),f=d.a[a].X(),f.a[c]=b,d.a[a]=f,new Ov(this.F,this.hf,d,this.Xe,this.he,this.qe,this.P,this.Q);c=this.F.X();c.a[a]=b;return new Ov(c,this.hf,this.jf,this.Xe,this.he,this.qe,this.P,this.Q)}throw this.cf(a);}; +e.Of=function(a){if(32>this.P.a.length)return a=Uv(S(),this.P,a),new Ov(this.F,this.hf,this.jf,this.Xe,this.he,this.qe,a,1+this.Q|0);if(31>this.qe.a.length){var b=Vv(S(),this.qe,this.P),c=new Za(1);c.a[0]=a;return new Ov(this.F,this.hf,this.jf,this.Xe,this.he,b,c,1+this.Q|0)}if(30>this.he.a.length){b=Vv(S(),this.he,Vv(S(),this.qe,this.P));c=S().Wb;var d=new Za(1);d.a[0]=a;return new Ov(this.F,this.hf,this.jf,this.Xe,b,c,d,1+this.Q|0)}b=this.F;c=this.hf;d=this.jf;var f=this.Xe,g=this.he,h=this.Xe, +k=S().$g,n=Vv(S(),this.qe,this.P),r=new (x(x(x(nb))).M)(1);r.a[0]=n;n=S().Wb;var u=new Za(1);u.a[0]=a;return new Pv(b,c,d,f,g,30720+h|0,k,r,n,u,1+this.Q|0)}; +e.th=function(a){if(32>this.hf){var b=Wv(S(),a,this.F);return new Ov(b,1+this.hf|0,this.jf,1+this.Xe|0,this.he,this.qe,this.P,1+this.Q|0)}if(1024>this.Xe)return b=new Za(1),b.a[0]=a,a=Xv(S(),this.F,this.jf),new Ov(b,1,a,1+this.Xe|0,this.he,this.qe,this.P,1+this.Q|0);if(30>this.he.a.length){b=new Za(1);b.a[0]=a;a=S().Wb;var c=Xv(S(),Xv(S(),this.F,this.jf),this.he);return new Ov(b,1,a,1,c,this.qe,this.P,1+this.Q|0)}b=new Za(1);b.a[0]=a;a=S().Wb;c=Xv(S(),this.F,this.jf);var d=new (x(x(x(nb))).M)(1); +d.a[0]=c;return new Pv(b,1,a,1,d,1+this.Xe|0,S().$g,this.he,this.qe,this.P,1+this.Q|0)};e.Kj=function(a){var b=Zv(S(),this.F,a),c=$v(S(),2,this.jf,a),d=$v(S(),3,this.he,a),f=$v(S(),2,this.qe,a);a=Zv(S(),this.P,a);return new Ov(b,this.hf,c,this.Xe,d,f,a,this.Q)};e.xj=function(a,b){a=new Jv(a,b);Kv(a,1,this.F);Kv(a,2,this.jf);Kv(a,3,this.he);Kv(a,2,this.qe);Kv(a,1,this.P);return a.ej()}; +e.Li=function(){if(1>>10|0;var c=31&(a>>>5|0);a&=31;return b=this.hf?(a=b-this.hf|0,this.jf.a[a>>>5|0].a[31&a]):this.F.a[b]}throw this.cf(b);}; +e.$classData=v({Zsa:0},!1,"scala.collection.immutable.Vector3",{Zsa:1,Uy:1,Bv:1,Av:1,pe:1,Mb:1,ka:1,b:1,ga:1,J:1,ia:1,K:1,ha:1,Eb:1,Ca:1,ja:1,cb:1,m:1,Ud:1,Nb:1,ge:1,Ue:1,Ub:1,xb:1,ef:1,Ve:1,Vb:1,hb:1,Bg:1,d:1});function Pv(a,b,c,d,f,g,h,k,n,r,u){this.P=this.F=null;this.Q=0;this.Fe=b;this.re=c;this.Ge=d;this.se=f;this.ie=g;this.id=h;this.od=k;this.nd=n;L$(this,a,r,u)}Pv.prototype=new M$;Pv.prototype.constructor=Pv;e=Pv.prototype; +e.W=function(a){if(0<=a&&a>>15|0;var c=31&(b>>>10|0),d=31&(b>>>5|0);b&=31;return a=this.Ge?(b=a-this.Ge|0,this.se.a[b>>>10|0].a[31&(b>>>5|0)].a[31&b]):a>=this.Fe?(b=a-this.Fe|0,this.re.a[b>>>5|0].a[31&b]):this.F.a[a]}throw this.cf(a);}; +e.sm=function(a,b){if(0<=a&&a=this.ie){var c=a-this.ie|0,d=c>>>15|0,f=31&(c>>>10|0);a=31&(c>>>5|0);c&=31;if(d=this.Ge)return f=a-this.Ge|0,a=f>>>10|0,c=31&(f>>>5|0),f&=31,d=this.se.X(),g=d.a[a].X(),h=g.a[c].X(),h.a[f]=b,g.a[c]=h,d.a[a]=g,new Pv(this.F,this.Fe,this.re,this.Ge,d,this.ie,this.id,this.od,this.nd,this.P,this.Q); +if(a>=this.Fe)return c=a-this.Fe|0,a=c>>>5|0,c&=31,f=this.re.X(),d=f.a[a].X(),d.a[c]=b,f.a[a]=d,new Pv(this.F,this.Fe,f,this.Ge,this.se,this.ie,this.id,this.od,this.nd,this.P,this.Q);c=this.F.X();c.a[a]=b;return new Pv(c,this.Fe,this.re,this.Ge,this.se,this.ie,this.id,this.od,this.nd,this.P,this.Q)}throw this.cf(a);}; +e.Of=function(a){if(32>this.P.a.length)return a=Uv(S(),this.P,a),new Pv(this.F,this.Fe,this.re,this.Ge,this.se,this.ie,this.id,this.od,this.nd,a,1+this.Q|0);if(31>this.nd.a.length){var b=Vv(S(),this.nd,this.P),c=new Za(1);c.a[0]=a;return new Pv(this.F,this.Fe,this.re,this.Ge,this.se,this.ie,this.id,this.od,b,c,1+this.Q|0)}if(31>this.od.a.length){b=Vv(S(),this.od,Vv(S(),this.nd,this.P));c=S().Wb;var d=new Za(1);d.a[0]=a;return new Pv(this.F,this.Fe,this.re,this.Ge,this.se,this.ie,this.id,b,c,d,1+this.Q| +0)}if(30>this.id.a.length){b=Vv(S(),this.id,Vv(S(),this.od,Vv(S(),this.nd,this.P)));c=S().te;d=S().Wb;var f=new Za(1);f.a[0]=a;return new Pv(this.F,this.Fe,this.re,this.Ge,this.se,this.ie,b,c,d,f,1+this.Q|0)}b=this.F;c=this.Fe;d=this.re;f=this.Ge;var g=this.se,h=this.ie,k=this.id,n=this.ie,r=S().Zo,u=Vv(S(),this.od,Vv(S(),this.nd,this.P)),w=new (x(x(x(x(nb)))).M)(1);w.a[0]=u;u=S().te;var y=S().Wb,K=new Za(1);K.a[0]=a;return new Qv(b,c,d,f,g,h,k,983040+n|0,r,w,u,y,K,1+this.Q|0)}; +e.th=function(a){if(32>this.Fe){var b=Wv(S(),a,this.F);return new Pv(b,1+this.Fe|0,this.re,1+this.Ge|0,this.se,1+this.ie|0,this.id,this.od,this.nd,this.P,1+this.Q|0)}if(1024>this.Ge)return b=new Za(1),b.a[0]=a,a=Xv(S(),this.F,this.re),new Pv(b,1,a,1+this.Ge|0,this.se,1+this.ie|0,this.id,this.od,this.nd,this.P,1+this.Q|0);if(32768>this.ie){b=new Za(1);b.a[0]=a;a=S().Wb;var c=Xv(S(),Xv(S(),this.F,this.re),this.se);return new Pv(b,1,a,1,c,1+this.ie|0,this.id,this.od,this.nd,this.P,1+this.Q|0)}if(30> +this.id.a.length){b=new Za(1);b.a[0]=a;a=S().Wb;c=S().te;var d=Xv(S(),Xv(S(),Xv(S(),this.F,this.re),this.se),this.id);return new Pv(b,1,a,1,c,1,d,this.od,this.nd,this.P,1+this.Q|0)}b=new Za(1);b.a[0]=a;a=S().Wb;c=S().te;d=Xv(S(),Xv(S(),this.F,this.re),this.se);var f=new (x(x(x(x(nb)))).M)(1);f.a[0]=d;return new Qv(b,1,a,1,c,1,f,1+this.ie|0,S().Zo,this.id,this.od,this.nd,this.P,1+this.Q|0)}; +e.Kj=function(a){var b=Zv(S(),this.F,a),c=$v(S(),2,this.re,a),d=$v(S(),3,this.se,a),f=$v(S(),4,this.id,a),g=$v(S(),3,this.od,a),h=$v(S(),2,this.nd,a);a=Zv(S(),this.P,a);return new Pv(b,this.Fe,c,this.Ge,d,this.ie,f,g,h,a,this.Q)};e.xj=function(a,b){a=new Jv(a,b);Kv(a,1,this.F);Kv(a,2,this.re);Kv(a,3,this.se);Kv(a,4,this.id);Kv(a,3,this.od);Kv(a,2,this.nd);Kv(a,1,this.P);return a.ej()}; +e.Li=function(){if(1>>15|0;var c=31&(a>>>10|0),d=31&(a>>>5|0);a&=31;return b=this.Ge?(a=b-this.Ge|0,this.se.a[a>>>10|0].a[31&(a>>>5|0)].a[31&a]):b>=this.Fe?(a=b-this.Fe|0,this.re.a[a>>>5|0].a[31&a]):this.F.a[b]}throw this.cf(b);}; +e.$classData=v({$sa:0},!1,"scala.collection.immutable.Vector4",{$sa:1,Uy:1,Bv:1,Av:1,pe:1,Mb:1,ka:1,b:1,ga:1,J:1,ia:1,K:1,ha:1,Eb:1,Ca:1,ja:1,cb:1,m:1,Ud:1,Nb:1,ge:1,Ue:1,Ub:1,xb:1,ef:1,Ve:1,Vb:1,hb:1,Bg:1,d:1});function Qv(a,b,c,d,f,g,h,k,n,r,u,w,y,K){this.P=this.F=null;this.Q=0;this.Wd=b;this.pd=c;this.Xd=d;this.qd=f;this.Dd=g;this.rd=h;this.jd=k;this.wc=n;this.Gc=r;this.Fc=u;this.Ec=w;L$(this,a,y,K)}Qv.prototype=new M$;Qv.prototype.constructor=Qv;e=Qv.prototype; +e.W=function(a){if(0<=a&&a>>20|0;var c=31&(b>>>15|0),d=31&(b>>>10|0),f=31&(b>>>5|0);b&=31;return a=this.Dd?(b=a-this.Dd|0,this.rd.a[b>>>15|0].a[31&(b>>>10|0)].a[31&(b>>>5|0)].a[31&b]):a>=this.Xd?(b=a-this.Xd|0,this.qd.a[b>>>10|0].a[31&(b>>>5|0)].a[31&b]):a>=this.Wd? +(b=a-this.Wd|0,this.pd.a[b>>>5|0].a[31&b]):this.F.a[a]}throw this.cf(a);}; +e.sm=function(a,b){if(0<=a&&a=this.jd){var c=a-this.jd|0,d=c>>>20|0,f=31&(c>>>15|0),g=31&(c>>>10|0);a=31&(c>>>5|0);c&=31;if(d=this.Dd)return f=a-this.Dd|0,a=f>>>15|0,c=31&(f>>>10|0),g=31&(f>>>5|0),f&=31,d=this.rd.X(),h=d.a[a].X(),k=h.a[c].X(),n=k.a[g].X(),n.a[f]=b,k.a[g]=n,h.a[c]=k,d.a[a]=h,new Qv(this.F,this.Wd,this.pd,this.Xd,this.qd,this.Dd,d,this.jd,this.wc,this.Gc,this.Fc,this.Ec,this.P,this.Q);if(a>=this.Xd)return g=a-this.Xd|0,a=g>>>10|0,c=31&(g>>>5|0),g&=31,f=this.qd.X(), +d=f.a[a].X(),h=d.a[c].X(),h.a[g]=b,d.a[c]=h,f.a[a]=d,new Qv(this.F,this.Wd,this.pd,this.Xd,f,this.Dd,this.rd,this.jd,this.wc,this.Gc,this.Fc,this.Ec,this.P,this.Q);if(a>=this.Wd)return c=a-this.Wd|0,a=c>>>5|0,c&=31,g=this.pd.X(),f=g.a[a].X(),f.a[c]=b,g.a[a]=f,new Qv(this.F,this.Wd,g,this.Xd,this.qd,this.Dd,this.rd,this.jd,this.wc,this.Gc,this.Fc,this.Ec,this.P,this.Q);c=this.F.X();c.a[a]=b;return new Qv(c,this.Wd,this.pd,this.Xd,this.qd,this.Dd,this.rd,this.jd,this.wc,this.Gc,this.Fc,this.Ec,this.P, +this.Q)}throw this.cf(a);}; +e.Of=function(a){if(32>this.P.a.length)return a=Uv(S(),this.P,a),new Qv(this.F,this.Wd,this.pd,this.Xd,this.qd,this.Dd,this.rd,this.jd,this.wc,this.Gc,this.Fc,this.Ec,a,1+this.Q|0);if(31>this.Ec.a.length){var b=Vv(S(),this.Ec,this.P),c=new Za(1);c.a[0]=a;return new Qv(this.F,this.Wd,this.pd,this.Xd,this.qd,this.Dd,this.rd,this.jd,this.wc,this.Gc,this.Fc,b,c,1+this.Q|0)}if(31>this.Fc.a.length){b=Vv(S(),this.Fc,Vv(S(),this.Ec,this.P));c=S().Wb;var d=new Za(1);d.a[0]=a;return new Qv(this.F,this.Wd,this.pd, +this.Xd,this.qd,this.Dd,this.rd,this.jd,this.wc,this.Gc,b,c,d,1+this.Q|0)}if(31>this.Gc.a.length){b=Vv(S(),this.Gc,Vv(S(),this.Fc,Vv(S(),this.Ec,this.P)));c=S().te;d=S().Wb;var f=new Za(1);f.a[0]=a;return new Qv(this.F,this.Wd,this.pd,this.Xd,this.qd,this.Dd,this.rd,this.jd,this.wc,b,c,d,f,1+this.Q|0)}if(30>this.wc.a.length){b=Vv(S(),this.wc,Vv(S(),this.Gc,Vv(S(),this.Fc,Vv(S(),this.Ec,this.P))));c=S().$g;d=S().te;f=S().Wb;var g=new Za(1);g.a[0]=a;return new Qv(this.F,this.Wd,this.pd,this.Xd,this.qd, +this.Dd,this.rd,this.jd,b,c,d,f,g,1+this.Q|0)}b=this.F;c=this.Wd;d=this.pd;f=this.Xd;g=this.qd;var h=this.Dd,k=this.rd,n=this.jd,r=this.wc,u=this.jd,w=S().JD,y=Vv(S(),this.Gc,Vv(S(),this.Fc,Vv(S(),this.Ec,this.P))),K=new (x(x(x(x(x(nb))))).M)(1);K.a[0]=y;y=S().$g;var U=S().te,Z=S().Wb,ra=new Za(1);ra.a[0]=a;return new Rv(b,c,d,f,g,h,k,n,r,31457280+u|0,w,K,y,U,Z,ra,1+this.Q|0)}; +e.th=function(a){if(32>this.Wd){var b=Wv(S(),a,this.F);return new Qv(b,1+this.Wd|0,this.pd,1+this.Xd|0,this.qd,1+this.Dd|0,this.rd,1+this.jd|0,this.wc,this.Gc,this.Fc,this.Ec,this.P,1+this.Q|0)}if(1024>this.Xd)return b=new Za(1),b.a[0]=a,a=Xv(S(),this.F,this.pd),new Qv(b,1,a,1+this.Xd|0,this.qd,1+this.Dd|0,this.rd,1+this.jd|0,this.wc,this.Gc,this.Fc,this.Ec,this.P,1+this.Q|0);if(32768>this.Dd){b=new Za(1);b.a[0]=a;a=S().Wb;var c=Xv(S(),Xv(S(),this.F,this.pd),this.qd);return new Qv(b,1,a,1,c,1+this.Dd| +0,this.rd,1+this.jd|0,this.wc,this.Gc,this.Fc,this.Ec,this.P,1+this.Q|0)}if(1048576>this.jd){b=new Za(1);b.a[0]=a;a=S().Wb;c=S().te;var d=Xv(S(),Xv(S(),Xv(S(),this.F,this.pd),this.qd),this.rd);return new Qv(b,1,a,1,c,1,d,1+this.jd|0,this.wc,this.Gc,this.Fc,this.Ec,this.P,1+this.Q|0)}if(30>this.wc.a.length){b=new Za(1);b.a[0]=a;a=S().Wb;c=S().te;d=S().$g;var f=Xv(S(),Xv(S(),Xv(S(),Xv(S(),this.F,this.pd),this.qd),this.rd),this.wc);return new Qv(b,1,a,1,c,1,d,1,f,this.Gc,this.Fc,this.Ec,this.P,1+this.Q| +0)}b=new Za(1);b.a[0]=a;a=S().Wb;c=S().te;d=S().$g;f=Xv(S(),Xv(S(),Xv(S(),this.F,this.pd),this.qd),this.rd);var g=new (x(x(x(x(x(nb))))).M)(1);g.a[0]=f;return new Rv(b,1,a,1,c,1,d,1,g,1+this.jd|0,S().JD,this.wc,this.Gc,this.Fc,this.Ec,this.P,1+this.Q|0)}; +e.Kj=function(a){var b=Zv(S(),this.F,a),c=$v(S(),2,this.pd,a),d=$v(S(),3,this.qd,a),f=$v(S(),4,this.rd,a),g=$v(S(),5,this.wc,a),h=$v(S(),4,this.Gc,a),k=$v(S(),3,this.Fc,a),n=$v(S(),2,this.Ec,a);a=Zv(S(),this.P,a);return new Qv(b,this.Wd,c,this.Xd,d,this.Dd,f,this.jd,g,h,k,n,a,this.Q)};e.xj=function(a,b){a=new Jv(a,b);Kv(a,1,this.F);Kv(a,2,this.pd);Kv(a,3,this.qd);Kv(a,4,this.rd);Kv(a,5,this.wc);Kv(a,4,this.Gc);Kv(a,3,this.Fc);Kv(a,2,this.Ec);Kv(a,1,this.P);return a.ej()}; +e.Li=function(){if(1>>20|0;var c=31&(a>>>15|0),d=31&(a>>>10|0),f=31&(a>>>5|0);a&=31;return b=this.Dd?(a=b-this.Dd|0,this.rd.a[a>>>15|0].a[31&(a>>>10|0)].a[31&(a>>>5|0)].a[31&a]):b>=this.Xd?(a=b-this.Xd|0,this.qd.a[a>>>10|0].a[31&(a>>>5|0)].a[31&a]):b>= +this.Wd?(a=b-this.Wd|0,this.pd.a[a>>>5|0].a[31&a]):this.F.a[b]}throw this.cf(b);};e.$classData=v({ata:0},!1,"scala.collection.immutable.Vector5",{ata:1,Uy:1,Bv:1,Av:1,pe:1,Mb:1,ka:1,b:1,ga:1,J:1,ia:1,K:1,ha:1,Eb:1,Ca:1,ja:1,cb:1,m:1,Ud:1,Nb:1,ge:1,Ue:1,Ub:1,xb:1,ef:1,Ve:1,Vb:1,hb:1,Bg:1,d:1}); +function Rv(a,b,c,d,f,g,h,k,n,r,u,w,y,K,U,Z,ra){this.P=this.F=null;this.Q=0;this.sd=b;this.$c=c;this.td=d;this.ad=f;this.kd=g;this.bd=h;this.Yc=k;this.cd=n;this.Zc=r;this.$b=u;this.lc=w;this.kc=y;this.jc=K;this.ic=U;L$(this,a,Z,ra)}Rv.prototype=new M$;Rv.prototype.constructor=Rv;e=Rv.prototype; +e.W=function(a){if(0<=a&&a>>25|0;var c=31&(b>>>20|0),d=31&(b>>>15|0),f=31&(b>>>10|0),g=31&(b>>>5|0);b&=31;return a=this.Yc?(b=a-this.Yc|0,this.cd.a[b>>>20|0].a[31&(b>>>15|0)].a[31&(b>>>10|0)].a[31&(b>>>5|0)].a[31& +b]):a>=this.kd?(b=a-this.kd|0,this.bd.a[b>>>15|0].a[31&(b>>>10|0)].a[31&(b>>>5|0)].a[31&b]):a>=this.td?(b=a-this.td|0,this.ad.a[b>>>10|0].a[31&(b>>>5|0)].a[31&b]):a>=this.sd?(b=a-this.sd|0,this.$c.a[b>>>5|0].a[31&b]):this.F.a[a]}throw this.cf(a);}; +e.sm=function(a,b){if(0<=a&&a=this.Zc){var c=a-this.Zc|0,d=c>>>25|0,f=31&(c>>>20|0),g=31&(c>>>15|0),h=31&(c>>>10|0);a=31&(c>>>5|0);c&=31;if(d=this.Yc)return f=a-this.Yc|0,a=f>>>20|0,c=31&(f>>>15|0),h=31&(f>>>10|0),g=31&(f>>>5|0),f&=31,d=this.cd.X(),k=d.a[a].X(),n=k.a[c].X(),r=n.a[h].X(),u=r.a[g].X(),u.a[f]=b,r.a[g]=u,n.a[h]=r,k.a[c]=n,d.a[a]=k,new Rv(this.F,this.sd,this.$c,this.td,this.ad,this.kd,this.bd,this.Yc,d,this.Zc,this.$b,this.lc,this.kc,this.jc,this.ic,this.P,this.Q);if(a>=this.kd)return g=a-this.kd|0,a=g>>>15|0,c=31&(g>>>10|0),h=31&(g>>>5|0),g&=31,f=this.bd.X(), +d=f.a[a].X(),k=d.a[c].X(),n=k.a[h].X(),n.a[g]=b,k.a[h]=n,d.a[c]=k,f.a[a]=d,new Rv(this.F,this.sd,this.$c,this.td,this.ad,this.kd,f,this.Yc,this.cd,this.Zc,this.$b,this.lc,this.kc,this.jc,this.ic,this.P,this.Q);if(a>=this.td)return h=a-this.td|0,a=h>>>10|0,c=31&(h>>>5|0),h&=31,g=this.ad.X(),f=g.a[a].X(),d=f.a[c].X(),d.a[h]=b,f.a[c]=d,g.a[a]=f,new Rv(this.F,this.sd,this.$c,this.td,g,this.kd,this.bd,this.Yc,this.cd,this.Zc,this.$b,this.lc,this.kc,this.jc,this.ic,this.P,this.Q);if(a>=this.sd)return c= +a-this.sd|0,a=c>>>5|0,c&=31,h=this.$c.X(),g=h.a[a].X(),g.a[c]=b,h.a[a]=g,new Rv(this.F,this.sd,h,this.td,this.ad,this.kd,this.bd,this.Yc,this.cd,this.Zc,this.$b,this.lc,this.kc,this.jc,this.ic,this.P,this.Q);c=this.F.X();c.a[a]=b;return new Rv(c,this.sd,this.$c,this.td,this.ad,this.kd,this.bd,this.Yc,this.cd,this.Zc,this.$b,this.lc,this.kc,this.jc,this.ic,this.P,this.Q)}throw this.cf(a);}; +e.Of=function(a){if(32>this.P.a.length)return a=Uv(S(),this.P,a),new Rv(this.F,this.sd,this.$c,this.td,this.ad,this.kd,this.bd,this.Yc,this.cd,this.Zc,this.$b,this.lc,this.kc,this.jc,this.ic,a,1+this.Q|0);if(31>this.ic.a.length){var b=Vv(S(),this.ic,this.P),c=new Za(1);c.a[0]=a;return new Rv(this.F,this.sd,this.$c,this.td,this.ad,this.kd,this.bd,this.Yc,this.cd,this.Zc,this.$b,this.lc,this.kc,this.jc,b,c,1+this.Q|0)}if(31>this.jc.a.length){b=Vv(S(),this.jc,Vv(S(),this.ic,this.P));c=S().Wb;var d=new Za(1); +d.a[0]=a;return new Rv(this.F,this.sd,this.$c,this.td,this.ad,this.kd,this.bd,this.Yc,this.cd,this.Zc,this.$b,this.lc,this.kc,b,c,d,1+this.Q|0)}if(31>this.kc.a.length){b=Vv(S(),this.kc,Vv(S(),this.jc,Vv(S(),this.ic,this.P)));c=S().te;d=S().Wb;var f=new Za(1);f.a[0]=a;return new Rv(this.F,this.sd,this.$c,this.td,this.ad,this.kd,this.bd,this.Yc,this.cd,this.Zc,this.$b,this.lc,b,c,d,f,1+this.Q|0)}if(31>this.lc.a.length){b=Vv(S(),this.lc,Vv(S(),this.kc,Vv(S(),this.jc,Vv(S(),this.ic,this.P))));c=S().$g; +d=S().te;f=S().Wb;var g=new Za(1);g.a[0]=a;return new Rv(this.F,this.sd,this.$c,this.td,this.ad,this.kd,this.bd,this.Yc,this.cd,this.Zc,this.$b,b,c,d,f,g,1+this.Q|0)}if(62>this.$b.a.length){b=Vv(S(),this.$b,Vv(S(),this.lc,Vv(S(),this.kc,Vv(S(),this.jc,Vv(S(),this.ic,this.P)))));c=S().Zo;d=S().$g;f=S().te;g=S().Wb;var h=new Za(1);h.a[0]=a;return new Rv(this.F,this.sd,this.$c,this.td,this.ad,this.kd,this.bd,this.Yc,this.cd,this.Zc,b,c,d,f,g,h,1+this.Q|0)}throw oo();}; +e.th=function(a){if(32>this.sd){var b=Wv(S(),a,this.F);return new Rv(b,1+this.sd|0,this.$c,1+this.td|0,this.ad,1+this.kd|0,this.bd,1+this.Yc|0,this.cd,1+this.Zc|0,this.$b,this.lc,this.kc,this.jc,this.ic,this.P,1+this.Q|0)}if(1024>this.td)return b=new Za(1),b.a[0]=a,a=Xv(S(),this.F,this.$c),new Rv(b,1,a,1+this.td|0,this.ad,1+this.kd|0,this.bd,1+this.Yc|0,this.cd,1+this.Zc|0,this.$b,this.lc,this.kc,this.jc,this.ic,this.P,1+this.Q|0);if(32768>this.kd){b=new Za(1);b.a[0]=a;a=S().Wb;var c=Xv(S(),Xv(S(), +this.F,this.$c),this.ad);return new Rv(b,1,a,1,c,1+this.kd|0,this.bd,1+this.Yc|0,this.cd,1+this.Zc|0,this.$b,this.lc,this.kc,this.jc,this.ic,this.P,1+this.Q|0)}if(1048576>this.Yc){b=new Za(1);b.a[0]=a;a=S().Wb;c=S().te;var d=Xv(S(),Xv(S(),Xv(S(),this.F,this.$c),this.ad),this.bd);return new Rv(b,1,a,1,c,1,d,1+this.Yc|0,this.cd,1+this.Zc|0,this.$b,this.lc,this.kc,this.jc,this.ic,this.P,1+this.Q|0)}if(33554432>this.Zc){b=new Za(1);b.a[0]=a;a=S().Wb;c=S().te;d=S().$g;var f=Xv(S(),Xv(S(),Xv(S(),Xv(S(), +this.F,this.$c),this.ad),this.bd),this.cd);return new Rv(b,1,a,1,c,1,d,1,f,1+this.Zc|0,this.$b,this.lc,this.kc,this.jc,this.ic,this.P,1+this.Q|0)}if(62>this.$b.a.length){b=new Za(1);b.a[0]=a;a=S().Wb;c=S().te;d=S().$g;f=S().Zo;var g=Xv(S(),Xv(S(),Xv(S(),Xv(S(),Xv(S(),this.F,this.$c),this.ad),this.bd),this.cd),this.$b);return new Rv(b,1,a,1,c,1,d,1,f,1,g,this.lc,this.kc,this.jc,this.ic,this.P,1+this.Q|0)}throw oo();}; +e.Kj=function(a){var b=Zv(S(),this.F,a),c=$v(S(),2,this.$c,a),d=$v(S(),3,this.ad,a),f=$v(S(),4,this.bd,a),g=$v(S(),5,this.cd,a),h=$v(S(),6,this.$b,a),k=$v(S(),5,this.lc,a),n=$v(S(),4,this.kc,a),r=$v(S(),3,this.jc,a),u=$v(S(),2,this.ic,a);a=Zv(S(),this.P,a);return new Rv(b,this.sd,c,this.td,d,this.kd,f,this.Yc,g,this.Zc,h,k,n,r,u,a,this.Q)}; +e.xj=function(a,b){a=new Jv(a,b);Kv(a,1,this.F);Kv(a,2,this.$c);Kv(a,3,this.ad);Kv(a,4,this.bd);Kv(a,5,this.cd);Kv(a,6,this.$b);Kv(a,5,this.lc);Kv(a,4,this.kc);Kv(a,3,this.jc);Kv(a,2,this.ic);Kv(a,1,this.P);return a.ej()};e.Li=function(){if(1>>25|0;var c=31&(a>>>20|0),d=31&(a>>>15|0),f=31&(a>>>10|0),g=31&(a>>>5|0);a&=31;return b=this.Yc?(a=b-this.Yc|0,this.cd.a[a>>>20|0].a[31&(a>>>15|0)].a[31&(a>>>10|0)].a[31&(a>>> +5|0)].a[31&a]):b>=this.kd?(a=b-this.kd|0,this.bd.a[a>>>15|0].a[31&(a>>>10|0)].a[31&(a>>>5|0)].a[31&a]):b>=this.td?(a=b-this.td|0,this.ad.a[a>>>10|0].a[31&(a>>>5|0)].a[31&a]):b>=this.sd?(a=b-this.sd|0,this.$c.a[a>>>5|0].a[31&a]):this.F.a[b]}throw this.cf(b);};e.$classData=v({bta:0},!1,"scala.collection.immutable.Vector6",{bta:1,Uy:1,Bv:1,Av:1,pe:1,Mb:1,ka:1,b:1,ga:1,J:1,ia:1,K:1,ha:1,Eb:1,Ca:1,ja:1,cb:1,m:1,Ud:1,Nb:1,ge:1,Ue:1,Ub:1,xb:1,ef:1,Ve:1,Vb:1,hb:1,Bg:1,d:1}); +function kt(){var a=new S$;a.Gd=vt(new ut);return a}function laa(){var a=new S$,b=e_("Chain(");a.Gd=b;return a}function S$(){this.Gd=null}S$.prototype=new W9;S$.prototype.constructor=S$;e=S$.prototype;e.pc=function(){return"IndexedSeq"};e.t=function(){var a=new uK(this);return new vK(a)};e.be=function(){return new O0(this)};e.Qf=function(){return new y9(this)};e.Jh=function(a){return this.ke(new F9(this,a))};e.Ac=function(a){return Q2(this,a)};e.G=function(){return q(this.Gd.Xi(0))};e.Pd=function(){return S2(this)}; +e.Qb=function(){return T2(this)};e.fc=function(a){var b=this.Gd.z();return b===a?0:b()=>a.hK)(this)))};e.Pg=function(){return Xda()};e.W=function(a){return pl(this.Fh,a)};e.z=function(){return this.Hg};e.N=function(){return this.Hg};e.i=function(){return 0===this.Hg}; +e.qc=function(){this.QD=!this.i();return this.Fh};function Hd(a,b){T$(a);b=new Vb(b,A());0===a.Hg?a.Fh=b:a.Gh.Ma=b;a.Gh=b;a.Hg=1+a.Hg|0;return a}function t4(a,b){b=b.t();if(b.s()){var c=1,d=new Vb(b.p(),A());for(a.Fh=d;b.s();){var f=new Vb(b.p(),A());d=d.Ma=f;c=1+c|0}a.Hg=c;a.Gh=d}return a} +e.IC=function(a,b){if(0a||(a+b|0)>this.Hg)throw my(new V,a+" to "+(a+b|0)+" is out of bounds (min 0, max "+(-1+this.Hg|0)+")");if(0===a)a=null;else if(a===this.Hg)a=this.Gh;else{a=-1+a|0;for(var c=this.Fh;0b)throw Hq("removing negative number of elements: "+b);}; +e.Qb=function(){if(null===this.Gh)throw Ir("last of empty ListBuffer");return this.Gh.Wc};e.rh=function(){return null===this.Gh?E():new Ze(this.Gh.Wc)};e.pc=function(){return"ListBuffer"};e.ec=function(a){a=a.t();a.s()&&(a=t4(new Cd,a),T$(this),0===this.Hg?this.Fh=a.Fh:this.Gh.Ma=a.Fh,this.Gh=a.Gh,this.Hg=this.Hg+a.Hg|0);return this};e.Ia=function(a){return Hd(this,a)};e.nb=function(){return this.qc()};e.r=function(a){return pl(this.Fh,a|0)};e.Db=function(){return Xda()}; +e.$classData=v({cua:0},!1,"scala.collection.mutable.ListBuffer",{cua:1,KD:1,Eh:1,Mb:1,ka:1,b:1,ga:1,J:1,ia:1,K:1,ha:1,Eb:1,Ca:1,ja:1,cb:1,m:1,Hh:1,Ye:1,Ih:1,kf:1,ld:1,LD:1,Fd:1,Ed:1,Zj:1,Vb:1,hb:1,vj:1,ue:1,Bg:1,d:1});function dQ(a){this.Nj=a}dQ.prototype=new aga;dQ.prototype.constructor=dQ;e=dQ.prototype; +e.QB=function(a,b){a:{var c=this.Nc(a);if(c instanceof Ze)a=c.Sb;else{if(E()===c){b=b.Rb();a=xI(yI(),this.Nj.HC(a,b));if(a instanceof Ze){a=a.Sb;break a}if(E()===a){a=b;break a}throw new B(a);}throw new B(c);}}return a};e.Nc=function(a){return xI(yI(),this.Nj.Fl(a))};e.i=function(){return this.Nj.i()};e.N=function(){return this.Nj.i()?0:-1};e.A=function(){return"JConcurrentMapWrapper"};e.B=function(){return 1};e.C=function(a){return 0===a?this.Nj:T(W(),a)}; +e.$classData=v({Cqa:0},!1,"scala.collection.convert.JavaCollectionWrappers$JConcurrentMapWrapper",{Cqa:1,VBa:1,XJ:1,Jk:1,ka:1,b:1,ga:1,J:1,ia:1,K:1,ha:1,jj:1,Fi:1,Ca:1,ja:1,Mk:1,m:1,RD:1,Ye:1,iK:1,kf:1,ld:1,ue:1,Fd:1,Ed:1,Zj:1,WBa:1,qD:1,hb:1,d:1,QBa:1,y:1});function ega(a,b){return b===a.Xc?a:MT(new LT,b,a.Vd)}function MT(a,b,c){a.Xc=b;a.Vd=c;return a}function lf(a){var b=new LT;MT(b,null,a);return b}function LT(){this.Vd=this.Xc=null}LT.prototype=new J9;LT.prototype.constructor=LT;e=LT.prototype; +e.Da=function(a){return i0(this,a)};e.lb=function(a){return j0(this,a)};e.pc=function(){return"SortedMap"};e.Sg=function(){return new pf(this.Vd)};e.t=function(){nf();var a=this.Xc;nf();var b=E();return new qf(a,b,this.Vd)};e.Nc=function(a){return mf(nf(),this.Xc,a,this.Vd)};e.ui=function(a,b){a=kv(nf(),this.Xc,a,this.Vd);return null===a?b.Rb():a.Cb};function of(a,b,c){return ega(a,lv(nf(),a.Xc,b,c,!0,a.Vd))}e.Fa=function(a){var b=nf(),c=this.Xc;null!==c&&rba(b,c,a)}; +e.lh=function(a){var b=nf(),c=this.Xc;null!==c&&vba(b,c,a)};e.Y=function(){return zf(nf(),this.Xc)};e.N=function(){return zf(nf(),this.Xc)};e.i=function(){return 0===zf(nf(),this.Xc)};e.GH=function(){var a=mv(nf(),this.Xc);return G(new H,a.Qa,a.Cb)};e.pI=function(){var a=nv(nf(),this.Xc);return G(new H,a.Qa,a.Cb)};function fga(a,b){return ega(a,pv(nf(),a.Xc,new jt(((c,d)=>(f,g)=>!!d.r(G(new H,f,g)))(a,b))))} +e.c=function(a){if(a instanceof LT){var b=this.Vd,c=a.Vd;if(null===b?null===c:b.c(c)){nf();b=this.Xc;a=a.Xc;c=this.Vd;var d;if(!(d=b===a)&&(d=null!==b)&&(d=null!==a)&&(d=(2147483647&b.aa)===(2147483647&a.aa))){b=new a6(b,c);a=new a6(a,c);for(c=!0;c&&null!==b.Pb&&null!==a.Pb;)b.Pb===a.Pb?(0===b.Dc?d=null:(b.Dc=-1+b.Dc|0,d=b.pj.a[b.Dc]),b.Pb=d,0===a.Dc?d=null:(a.Dc=-1+a.Dc|0,d=a.pj.a[a.Dc]),a.Pb=d):(c=Object.is(b.Pb.Qa,a.Pb.Qa)||b.Xr.Bf(b.Pb.Qa,a.Pb.Qa)?fq(O(),b.Pb.Cb,a.Pb.Cb):!1,b.Pb=I3(b,b.Pb.ma), +a.Pb=I3(a,a.Pb.ma));d=c&&null===b.Pb&&null===a.Pb}return d}}return ufa(this,a)};e.sf=function(){return"TreeMap"};e.ke=function(a){return KT(OT(),a,this.Vd)};e.wk=function(a){return KT(OT(),a,this.Vd)};e.Kv=function(a){return of(this,a.Ea(),a.xa())};e.ob=function(a){return fga(this,a)};e.Ac=function(a){if(0>=a)var b=this;else if(a>=zf(nf(),this.Xc))b=lf(this.Vd);else{b=new LT;var c=nf();a=ou(Bu(c,this.Xc,a));b=MT(b,a,this.Vd)}return b}; +e.L=function(){var a=new LT;var b=nf();b=ou(av(b,this.Xc));return MT(a,b,this.Vd)};e.Qb=function(){return this.pI()};e.G=function(){return this.GH()};e.tm=function(a,b){return of(this,a,b)};e.$classData=v({Osa:0},!1,"scala.collection.immutable.TreeMap",{Osa:1,hv:1,Jk:1,ka:1,b:1,ga:1,J:1,ia:1,K:1,ha:1,jj:1,Fi:1,Ca:1,ja:1,Mk:1,m:1,Po:1,Nb:1,pv:1,bCa:1,pW:1,MBa:1,qW:1,LBa:1,cCa:1,eCa:1,OBa:1,qD:1,hb:1,Msa:1,Bg:1,d:1});function W3(a,b,c){a.jg=b;a.Lb=c;return a} +function Z2(){var a=new TN;W3(a,new Za(16),0);return a}function SN(a,b){W3(a,new Za(1>>31|0|d>>31<<1;f=(0===d?-2147483632<(-2147483648^f):0>31,k=d;if(k===h?(-2147483648^g)<(-2147483648^a):k>>31|0|d<<1,f<<=1;else break}a=d;if(0===a?-1>=(-2147483648^f):0>a)a=f;else{if(2147483647===c)throw I(J(),qk(new rk,"Collections can not have more than 2147483647 elements"));a=2147483647}a=new Za(a);Qs(Ns(),b,0,a,0,c);b=a}this.jg= +b};e.W=function(a){var b=1+a|0;if(0>a)throw my(new V,a+" is out of bounds (min 0, max "+(-1+this.Lb|0)+")");if(b>this.Lb)throw my(new V,(-1+b|0)+" is out of bounds (min 0, max "+(-1+this.Lb|0)+")");return this.jg.a[a]};function Dda(a,b,c){var d=1+b|0;if(0>b)throw my(new V,b+" is out of bounds (min 0, max "+(-1+a.Lb|0)+")");if(d>a.Lb)throw my(new V,(-1+d|0)+" is out of bounds (min 0, max "+(-1+a.Lb|0)+")");a.jg.a[b]=c}e.z=function(){return this.Lb};e.Pg=function(){return qV()}; +function UN(a,b){var c=a.Lb;a.Au(1+a.Lb|0);a.Lb=1+a.Lb|0;Dda(a,c,b);return a}function b3(a,b){b instanceof TN?(a.Au(a.Lb+b.Lb|0),Qs(Ns(),b.jg,0,a.jg,a.Lb,b.Lb),a.Lb=a.Lb+b.Lb|0):IM(a,b);return a} +e.IC=function(a,b){if(0a)throw my(new V,a+" is out of bounds (min 0, max "+(-1+this.Lb|0)+")");if(c>this.Lb)throw my(new V,(-1+c|0)+" is out of bounds (min 0, max "+(-1+this.Lb|0)+")");Qs(Ns(),this.jg,a+b|0,this.jg,a,this.Lb-(a+b|0)|0);a=this.Lb-b|0;b=this.jg;c=this.Lb;F();if(a>c)throw Hq("fromIndex("+a+") \x3e toIndex("+c+")");for(var d=a;d!==c;)b.a[d]=null,d=1+d|0;this.Lb=a}else if(0>b)throw Hq("removing negative number of elements: "+b);};e.pc=function(){return"ArrayBuffer"}; +e.Zb=function(a,b,c){var d=this.Lb,f=Cs(Pp(),a);c=cb)throw oo();if(0>a||0(this.wj.length|0))throw xo();this.wj.splice(a,b)};e.sf=function(){return"WrappedArray"};e.nb=function(){return this};e.Ia=function(a){this.wj.push(a);return this};e.r=function(a){return this.wj[a|0]};e.Db=function(){return h4()}; +e.$classData=v({yua:0},!1,"scala.scalajs.js.WrappedArray",{yua:1,KD:1,Eh:1,Mb:1,ka:1,b:1,ga:1,J:1,ia:1,K:1,ha:1,Eb:1,Ca:1,ja:1,cb:1,m:1,Hh:1,Ye:1,Ih:1,kf:1,ld:1,LD:1,Fd:1,Ed:1,Zj:1,Vb:1,hb:1,ki:1,Ub:1,xb:1,li:1,eK:1,ue:1,d:1}); +function U$(a,b,c,d){if(0!==(b.a.length&(-1+b.a.length|0)))throw Sq("assertion failed: Array.length must be power of 2");var f=b.a.length;if(0>c||c>=f)throw my(new V,c+" is out of bounds (min 0, max "+(-1+f|0)+")");f=b.a.length;if(0>d||d>=f)throw my(new V,d+" is out of bounds (min 0, max "+(-1+f|0)+")");a.ib=b;a.nc=c;a.vd=d}function $3(a,b,c){a.ib=b;a.nc=0;a.vd=c;U$(a,a.ib,a.nc,a.vd);return a}function b4(){var a=new a4;$3(a,Z3(e4(),16),0);return a}function a4(){this.ib=null;this.vd=this.nc=0} +a4.prototype=new k$;a4.prototype.constructor=a4;function gga(){}e=gga.prototype=a4.prototype;e.Af=function(a){return G5(this,a)};e.rb=function(a){return I5(this,a)};e.$d=function(a){return Nl(this,a)};e.fd=function(a){return J5(this,a)};e.lb=function(a){return j0(this,a)};e.ob=function(a){return k0(this,a)};e.Jh=function(a){return l0(this,a)};e.t=function(){var a=new uK(this);return new vK(a)};e.be=function(){return new O0(this)};e.Qf=function(){return new y9(this)}; +e.Ac=function(a){return Q2(this,a)};e.G=function(){return this.W(0)};e.Pd=function(){return S2(this)};e.Qb=function(){return T2(this)};e.fc=function(a){var b=(this.vd-this.nc|0)&(-1+this.ib.a.length|0);return b===a?0:ba||a>=b)throw my(new V,a+" is out of bounds (min 0, max "+(-1+b|0)+")");return this.ib.a[(this.nc+a|0)&(-1+this.ib.a.length|0)]}; +function GS(a,b){var c=1+((a.vd-a.nc|0)&(-1+a.ib.a.length|0))|0;c>((a.vd-a.nc|0)&(-1+a.ib.a.length|0))&&c>=a.ib.a.length&&f4(a,c);a.ib.a[a.vd]=b;a.vd=(1+a.vd|0)&(-1+a.ib.a.length|0);return a}function HS(a,b){var c=b.N();if(0((a.vd-a.nc|0)&(-1+a.ib.a.length|0))&&c>=a.ib.a.length&&f4(a,c),b=b.t();b.s();)c=b.p(),a.ib.a[a.vd]=c,a.vd=(1+a.vd|0)&(-1+a.ib.a.length|0);else for(b=b.t();b.s();)c=b.p(),GS(a,c);return a} +e.IC=function(a,b){if(0a||a>=c)throw my(new V,a+" is out of bounds (min 0, max "+(-1+c|0)+")");c=(this.vd-this.nc|0)&(-1+this.ib.a.length|0);var d=c-a|0;b=d>1)|0)>d)b=Z3(e4(),d),T6(this,0,b,0,a),T6(this,f,b,a,c),U$(this,b,0,d);else if(a<<1<=d){for(a=-1+f|0;a>=b;)this.ib.a[(this.nc+a|0)&(-1+this.ib.a.length|0)]=this.ib.a[(this.nc+(a-b|0)|0)&(-1+this.ib.a.length| +0)],a=-1+a|0;for(;0<=a;)this.ib.a[(this.nc+a|0)&(-1+this.ib.a.length|0)]=null,a=-1+a|0;this.nc=(this.nc+b|0)&(-1+this.ib.a.length|0)}else{for(;a=a.ib.a.length||16b){var c=(a.vd-a.nc|0)&(-1+a.ib.a.length|0);b=Z3(e4(),b);b=T6(a,0,b,0,c);U$(a,b,0,c)}}e.pc=function(){return"ArrayDeque"};e.Db=function(){return this.Pg()};e.ec=function(a){return HS(this,a)};e.Ia=function(a){return GS(this,a)};e.r=function(a){return this.W(a|0)}; +e.$classData=v({WW:0},!1,"scala.collection.mutable.ArrayDeque",{WW:1,KD:1,Eh:1,Mb:1,ka:1,b:1,ga:1,J:1,ia:1,K:1,ha:1,Eb:1,Ca:1,ja:1,cb:1,m:1,Hh:1,Ye:1,Ih:1,kf:1,ld:1,LD:1,Fd:1,Ed:1,Zj:1,eK:1,ki:1,Ub:1,xb:1,li:1,Vb:1,hb:1,rta:1,Bg:1,d:1});function re(a,b){b=(63+b|0)>>6;b=new fb(1=a);b&&a.Vk;)b=a.ur(),b=N2(this,b),b=0===b.k&&0===b.o;return b};e.Fa=function(a){for(var b=0;b>>1|0,d=d>>>1|0|f<<31,f=g,c=1+c|0;else break}b=1+b|0}};e.lb=function(a){return j0(this,a)}; +e.ob=function(a){for(var b=-1+O2(this)|0,c=null;0<=b;){Ws||(Ws=new Vs);var d=a,f=N2(this,b),g=b;if(0===f.k&&0===f.o)var h=fa;else{h=f.k;var k=f=f.o,n=h,r=0!==n?0===n?32:31-ea(n&(-n|0))|0:32+(0===k?32:31-ea(k&(-k|0))|0)|0;k=0===(32&r)?1<>>31|0|n<<1,k<<=1,r=1+r|0;h=new p(h,f)}d=h.k;h=h.o;if(0!==d||0!==h)null===c&&(c=new fb(1+b|0)),c.a[b]=new p(d, +h);b=-1+b|0}return null===c?V$():hga(c)};e.c=function(a){return l5(this,a)};e.Sg=function(){return iU(new jU,V$())};function O2(a){return a.Ki.a.length}function N2(a,b){return b>6,d=N2(a,c);b=new p(d.k|(0===(32&b)?1<b);if(b>=O2(a)){for(var c=O2(a);b>=c;)c<<=1,c=33554432>c?c:33554432;b=new fb(c);Qs(Ns(),a.Ki,0,b,0,O2(a));a.Ki=b}} +function X$(a,b){if(A9(b)){W$(a,-1+O2(b)|0);for(var c=0,d=O2(b);c>6,W$(a,c),1===b.tb||-1===b.tb){f=g>>6;var h=f<<6;g=g-h|0;b=0===(32&g)?-1<>>(31-g|0)|0|-1<f){h= +a.Ki;var k=h.a[f];h.a[f]=new p(k.k|b,k.o|g);b=a.Ki;g=1+f|0;F();f=new p(-1,-1);if(g>c)throw Hq("fromIndex("+g+") \x3e toIndex("+c+")");for(;g!==c;)b.a[g]=f,g=1+g|0;b=a.Ki;f=b.a[c];d=63-(d-(c<<6)|0)|0;b.a[c]=new p(f.k|(0===(32&d)?-1>>>d|0|-2<<(31-d|0):-1>>>d|0),f.o|(0===(32&d)?-1>>>d|0:0))}else f=a.Ki,k=f.a[c],d=63-(d-h|0)|0,f.a[c]=new p(k.k|b&(0===(32&d)?-1>>>d|0|-2<<(31-d|0):-1>>>d|0),k.o|g&(0===(32&d)?-1>>>d|0:0))}else IM(a,b);else IM(a,b);return a}if(L0(b)){if(!b.i())for(c=b.Pu(),c===xp()?W$(a, +(b.Qb()|0)>>6):(d=xp(),c===d.Uu&&W$(a,(b.G()|0)>>6)),c=b.t();c.s();)ve(a,c.p()|0);return a}return IM(a,b)}e.pK=function(a){if(A9(a)){for(var b=O2(this),c=O2(a),d=bc?b:c;b=new fb(d);c=-1+d|0;if(!(0>=d))for(d=0;;){var f=d,g=N2(this,f),h=N2(a,f);b.a[f]=new p(g.k|h.k,g.o|h.o);if(d===c)break;d=1+d|0}a=hga(b)}else b=iU(new jU,V$()),FZ(b,this),FZ(b,a),a=b.Xf;return a};e.Pa=function(a){return k5(this,a|0)};e.ec=function(a){return X$(this,a)};e.Ia=function(a){return ve(this,a|0)};e.ke=function(a){return X$(V$(),a)};e.wk=function(a){return X$(V$(),a)}; +e.$classData=v({Dta:0},!1,"scala.collection.mutable.BitSet",{Dta:1,UW:1,Sl:1,ka:1,b:1,ga:1,J:1,ia:1,K:1,ha:1,Nk:1,Ul:1,ja:1,m:1,dX:1,Ye:1,eX:1,kf:1,ld:1,ue:1,Fd:1,Ed:1,Zj:1,kCa:1,rW:1,Xpa:1,qW:1,Wpa:1,lCa:1,hb:1,aqa:1,yJ:1,Ooa:1,zBa:1,d:1});function FS(a){this.ib=null;this.vd=this.nc=0;a=Z3(e4(),a);$3(this,a,0)}FS.prototype=new gga;FS.prototype.constructor=FS;FS.prototype.Pg=function(){return Yda()};FS.prototype.pc=function(){return"Queue"};FS.prototype.Db=function(){return Yda()}; +FS.prototype.$classData=v({iua:0},!1,"scala.collection.mutable.Queue",{iua:1,WW:1,KD:1,Eh:1,Mb:1,ka:1,b:1,ga:1,J:1,ia:1,K:1,ha:1,Eb:1,Ca:1,ja:1,cb:1,m:1,Hh:1,Ye:1,Ih:1,kf:1,ld:1,LD:1,Fd:1,Ed:1,Zj:1,eK:1,ki:1,Ub:1,xb:1,li:1,Vb:1,hb:1,rta:1,Bg:1,d:1});function Y$(){}Y$.prototype=new t;Y$.prototype.constructor=Y$;function iga(){}iga.prototype=Y$.prototype;Y$.prototype.Jx=function(){};Y$.prototype.Ix=function(){};Y$.prototype.oH=function(){}; +function Q8(){this.oH(new y$);ac();ac();ac();ac();ac();ac();ac();ac();ac();new E7;ac();new D7;ac();this.Ix(new g5(this));this.Jx(new eB);ac();ac();ac();new h5(this);new iW(this);new fW(this);new rW(this);new oW(this);ac();ac();new L1(this);new lW(this)}Q8.prototype=new iga;Q8.prototype.constructor=Q8; +Q8.prototype.$classData=v({c_:0},!1,"cats.instances.package$all$",{c_:1,lwa:1,b:1,pY:1,xY:1,ZY:1,c0:1,DY:1,RK:1,EY:1,SK:1,gZ:1,j0:1,zZ:1,w0:1,NY:1,V_:1,HY:1,O_:1,CY:1,K_:1,$Z:1,O0:1,YZ:1,SZ:1,TZ:1,UZ:1,VZ:1,WZ:1,G0:1,K0:1,L0:1,M0:1,yY:1,C_:1,D_:1,E_:1,AY:1,I_:1,zY:1,G_:1,BY:1,J_:1,JY:1,Q_:1,R_:1,S_:1,KY:1,T_:1,MK:1,LY:1,TY:1,W_:1,X_:1,Y_:1,Z_:1,$_:1,a0:1,OY:1,PY:1,QY:1,SY:1,VY:1,WY:1,XY:1,YY:1,b0:1,u_:1,bZ:1,cZ:1,e0:1,f0:1,g0:1,DK:1,TK:1,UK:1,VK:1,iZ:1,k0:1,l0:1,FK:1,WK:1,XK:1,YK:1,ZK:1,nZ:1,m0:1, +OK:1,oZ:1,pZ:1,qZ:1,sZ:1,n0:1,PK:1,tZ:1,uZ:1,o0:1,p0:1,q0:1,yZ:1,u0:1,v0:1,AZ:1,CZ:1,BZ:1,GZ:1,HZ:1,HK:1,$K:1,aL:1,bL:1,MZ:1,cL:1,NZ:1,E0:1,OZ:1,PZ:1,QZ:1,RZ:1,ZZ:1,N0:1,JK:1,dL:1,eL:1,fL:1,rZ:1,qY:1,UY:1,XZ:1,rY:1,GK:1,EK:1,KK:1,IK:1,jZ:1,DZ:1,sY:1,IY:1,P_:1,MY:1,U_:1,tY:1,oY:1,GY:1,FY:1,uY:1,EZ:1,kZ:1,vY:1,IZ:1,wY:1,JZ:1,hZ:1,A0:1,B0:1,FZ:1,x0:1,z0:1,y0:1,mwa:1,vZ:1,r0:1,s0:1,t0:1,nwa:1,owa:1});var dfa; +function Z$(){this.CK=this.BK=this.np=null;$$=this;this.oH(new y$);ac();ac();this.BK=new x$;ac();ac();ac();ac();ac();ac();ac();new E7;ac();new D7;ac();this.Ix(new g5(this));this.Jx(new eB);ac();ac();ac();new h5(this);new iW(this);new fW(this);new rW(this);new oW(this);ac();ac()}Z$.prototype=new t;Z$.prototype.constructor=Z$;Z$.prototype.Jx=function(a){this.np=a};Z$.prototype.Ix=function(){};Z$.prototype.oH=function(a){this.CK=a}; +Z$.prototype.$classData=v({nY:0},!1,"cats.implicits$",{nY:1,b:1,eya:1,mya:1,dya:1,pva:1,d:1,pya:1,oya:1,qya:1,Dza:1,tya:1,Wva:1,sya:1,Xva:1,vya:1,sva:1,uya:1,rva:1,xya:1,yya:1,uza:1,Bya:1,tva:1,Cya:1,uva:1,Dya:1,Zva:1,j2:1,yX:1,Gya:1,xva:1,Eya:1,Fya:1,Hya:1,Iya:1,Kya:1,Mya:1,Bva:1,Nya:1,Cva:1,Uva:1,Sya:1,Dva:1,Tya:1,tza:1,Uya:1,Vya:1,Fva:1,Wya:1,Xya:1,Zya:1,$ya:1,aza:1,dza:1,eza:1,nza:1,jza:1,Cza:1,oza:1,$va:1,pza:1,Kva:1,sza:1,Nva:1,wza:1,Ova:1,xza:1,awa:1,Aza:1,Sva:1,cza:1,Jva:1,Hza:1,Jza:1,Kza:1, +iza:1,kza:1,fya:1,Fza:1,Vva:1,nya:1,Bza:1,gya:1,Lya:1,Aya:1,Yva:1,bza:1,wya:1,hza:1,vza:1,Gza:1,rza:1,hya:1,lza:1,yza:1,Tva:1,Rya:1,Eva:1,Jya:1,Yya:1,Iza:1,iya:1,Eza:1,Qya:1,jya:1,zza:1,rya:1,fza:1,Oya:1,qza:1,Pya:1,zya:1,kya:1,gza:1,lya:1,mza:1,pY:1,xY:1,ZY:1,c0:1,DY:1,RK:1,EY:1,SK:1,gZ:1,j0:1,zZ:1,w0:1,NY:1,V_:1,HY:1,O_:1,CY:1,K_:1,$Z:1,O0:1,YZ:1,SZ:1,TZ:1,UZ:1,VZ:1,WZ:1,G0:1,K0:1,L0:1,M0:1,yY:1,C_:1,D_:1,E_:1,AY:1,I_:1,zY:1,G_:1,BY:1,J_:1,JY:1,Q_:1,R_:1,S_:1,KY:1,T_:1,MK:1,LY:1,TY:1,W_:1,X_:1, +Y_:1,Z_:1,$_:1,a0:1,OY:1,PY:1,QY:1,SY:1,VY:1,WY:1,XY:1,YY:1,b0:1,u_:1,bZ:1,cZ:1,e0:1,f0:1,g0:1,DK:1,TK:1,UK:1,VK:1,iZ:1,k0:1,l0:1,FK:1,WK:1,XK:1,YK:1,ZK:1,nZ:1,m0:1,OK:1,oZ:1,pZ:1,qZ:1,sZ:1,n0:1,PK:1,tZ:1,uZ:1,o0:1,p0:1,q0:1,yZ:1,u0:1,v0:1,AZ:1,CZ:1,BZ:1,GZ:1,HZ:1,HK:1,$K:1,aL:1,bL:1,MZ:1,cL:1,NZ:1,E0:1,OZ:1,PZ:1,QZ:1,RZ:1,ZZ:1,N0:1,JK:1,dL:1,eL:1,fL:1,rZ:1,qY:1,UY:1,XZ:1,rY:1,GK:1,EK:1,KK:1,IK:1,jZ:1,DZ:1,sY:1,IY:1,P_:1,MY:1,U_:1,tY:1,oY:1,GY:1,FY:1,uY:1,EZ:1,kZ:1,vY:1,IZ:1,wY:1,JZ:1,hZ:1,A0:1,B0:1, +FZ:1,x0:1,z0:1,y0:1});var $$;function Ve(){$$||($$=new Z$);return $$}fa=new p(0,0);vb.ip=fa;exports.GeneralSetting=function(...a){if(void 0===a[0]){nB();var b=!0}else b=!!a[0];var c=void 0===a[1]?nB().Iv():a[1];if(void 0===a[2]){nB();var d=150}else d=a[2]|0;if(void 0===a[3]){nB();var f=10}else f=a[3]|0;if(void 0===a[4]){nB();var g=!1}else g=!!a[4];a=void 0===a[5]?nB().fE():a[5];return new QB(b,c,d,f,g,a)};exports.QueryVariable=function(a){return new Oj(a)};exports.PropertyPath=function(a){return new AZ(a)}; +var jga=exports;Xg||(Xg=new Wg);jga.ConfigurationObject=Xg;exports.StatementConfigurationJson=function(a,...b){void 0===b[0]?(xB(),b=new QB((nB(),!0),(nB(),"warn"),(nB(),150),(nB(),10),(nB(),!1),(nB(),"http://urlProxy"))):b=b[0];return new PB(a,b)};exports.SWDiscovery=function(...a){if(void 0===a[0]){jY||(jY=new iY);var b=new UB(NB())}else b=a[0];void 0===a[1]?(jY||(jY=new iY),a=null):a=a[1];return new CW(b,a)};exports.SWDiscoveryHelper=function(a){return new cY(a)}; +exports.ProjectionExpressionIncrement=function(a,b){return new $W(a,b)};exports.BindIncrement=function(a,b){return new yW(a,b)};exports.SparqlBuilder=Tk();exports.IRI=function(a){return new FF(a)};exports.Anonymous=function(a){return new wZ(a)};exports.SWDiscoveryTransaction=function(a){return new aX(a)};exports.URI=function(a,...b){b=void 0===b[0]?Lk().Iv():b[0];return new Jk(a,b)}; +exports.Root=function(...a){if(void 0===a[0]){Ki();var b=QK().g()}else b=a[0];if(void 0===a[1]){Ki();L();var c=new FF("http://www.w3.org/2002/07/owl#");c=G(new H,"owl",c);var d=new FF("http://www.w3.org/1999/02/22-rdf-syntax-ns#");d=G(new H,"rdf",d);var f=new FF("http://www.w3.org/2000/01/rdf-schema#");f=G(new H,"rdfs",f);var g=new FF("http://www.w3.org/2001/XMLSchema#");c=[c,d,f,G(new H,"xsd",g)];c=Af(new Bf,c);c=M(0,c)}else c=a[1];d=void 0===a[2]?cE(Ki()):a[2];void 0===a[3]?(Ki(),z(),f=A(),f=Xb(A(), +f)):f=a[3];void 0===a[4]?(Ki(),z(),g=A(),g=Xb(A(),g)):g=a[4];if(void 0===a[5]){Ki();z();var h=A();h=Xb(A(),h)}else h=a[5];if(void 0===a[6]){Ki();z();var k=A();k=Xb(A(),k)}else k=a[6];if(void 0===a[7]){Ki();z();var n=A();n=Xb(A(),n)}else n=a[7];if(void 0===a[8]){Ki();z();var r=A();r=Xb(A(),r)}else r=a[8];if(void 0===a[9]){Ki();var u=N(z().w,A())}else u=a[9];void 0===a[10]?(Ki(),L(),a=A(),a=M(0,a)):a=a[10];return new uj(b,c,d,f,g,h,k,n,r,u,a)}; +exports.SWFilterIncrement=function(a,...b){void 0===b[0]?(ZW||(ZW=new YW),b=!1):b=!!b[0];return new IW(a,b)};exports.LinkTo=function(a,b,...c){var d=void 0===c[0]?cE(Zi()):c[0];c=void 0===c[1]?Zi().Jv():c[1];return new Lj(a,b,d,c)};var kga=exports;FA||(FA=new BA);kga.log=FA;exports.SWDiscoveryConfiguration=OB();exports.Literal=function(a,...b){if(void 0===b[0]){al();var c=Lk().Zd}else c=b[0];void 0===b[1]?(al(),b=""):b=b[1];return new Rk(a,c,b)}; +exports.ObjectOf=function(a,b,...c){var d=void 0===c[0]?cE(Yi()):c[0];c=void 0===c[1]?Yi().Jv():c[1];return new Kj(a,b,d,c)};exports.LinkFrom=function(a,b,...c){var d=void 0===c[0]?cE($i()):c[0];c=void 0===c[1]?$i().Jv():c[1];return new Mj(a,b,d,c)};exports.StatementConfiguration=function(...a){void 0===a[0]?(OB(),a=new PB(N(z().w,A()),new QB((nB(),!0),(nB(),"warn"),(nB(),150),(nB(),10),(nB(),!1),(nB(),"http://urlProxy")))):a=a[0];return new UB(a)}; +exports.Something=function(a,...b){if(void 0===b[0]){Wi();var c=N(z().w,A())}else c=b[0];void 0===b[1]?(Wi(),L(),b=A(),b=M(0,b)):b=b[1];return new sk(a,c,b)}; +exports.Source=function(a,...b){var c=void 0===b[0]?sB().Iv():b[0];if(void 0===b[1]){sB();var d=""}else d=b[1];if(void 0===b[2]){sB();var f=""}else f=b[2];if(void 0===b[3]){sB();var g="application/sparql-query"}else g=b[3];var h=void 0===b[4]?sB().fE():b[4];if(void 0===b[5]){sB();var k=""}else k=b[5];if(void 0===b[6]){sB();var n=""}else n=b[6];if(void 0===b[7]){sB();var r=""}else r=b[7];void 0===b[8]?(sB(),b=""):b=b[8];return new EW(a,c,d,f,g,h,k,n,r,b)}; diff --git a/js/src/main/scala/inrae/semantic_web/FilterIncrementJs.scala b/js/src/main/scala/inrae/semantic_web/FilterIncrementJs.scala index 3119bfb0..4b5fe262 100644 --- a/js/src/main/scala/inrae/semantic_web/FilterIncrementJs.scala +++ b/js/src/main/scala/inrae/semantic_web/FilterIncrementJs.scala @@ -23,6 +23,7 @@ case class FilterIncrementJs(swf: SWDiscoveryJs,negation : Boolean = false) { case false => SWDiscoveryJs(swf.config,swf.sw.filter.isUri) } + @JSExport def regex( pattern : Any, flags : Any = "") : SWDiscoveryJs = negation match { case true => SWDiscoveryJs(swf.config,swf.sw.filter.not.regex(pattern,flags)) case false => SWDiscoveryJs(swf.config,swf.sw.filter.regex(pattern,flags)) diff --git a/js/src/main/scala/inrae/semantic_web/ProjectionExpressionIncrementJs.scala b/js/src/main/scala/inrae/semantic_web/ProjectionExpressionIncrementJs.scala index fa2784ac..c07b081a 100644 --- a/js/src/main/scala/inrae/semantic_web/ProjectionExpressionIncrementJs.scala +++ b/js/src/main/scala/inrae/semantic_web/ProjectionExpressionIncrementJs.scala @@ -1,13 +1,11 @@ package inrae.semantic_web - +import scala.scalajs._ +import scala.scalajs.js.JSConverters._ import scala.scalajs.js.annotation.{JSExport, JSExportTopLevel} @JSExportTopLevel("ProjectionExpressionIncrement") case class ProjectionExpressionIncrementJs(swf: SWTransactionJs,`var` : String) { @JSExport - def count(ref: String, distinct: Boolean=false) : SWTransactionJs = SWTransactionJs(swf.transaction.aggregate(`var`).count(ref,distinct)) - - @JSExport - def countAll(distinct: Boolean=false) : SWTransactionJs = SWTransactionJs(swf.transaction.aggregate(`var`).countAll(distinct)) + def count(ref: js.Array[String], distinct: Boolean=false) : SWTransactionJs = SWTransactionJs(swf.transaction.aggregate(`var`).count(ref.toSeq,distinct)) } diff --git a/js/src/main/scala/inrae/semantic_web/SWDiscoveryHelperJs.scala b/js/src/main/scala/inrae/semantic_web/SWDiscoveryHelperJs.scala index 1dd28e6a..745dbb4f 100644 --- a/js/src/main/scala/inrae/semantic_web/SWDiscoveryHelperJs.scala +++ b/js/src/main/scala/inrae/semantic_web/SWDiscoveryHelperJs.scala @@ -12,7 +12,7 @@ case class SWDiscoveryHelperJs(sw : SWDiscovery) { implicit val ec: scala.concurrent.ExecutionContext = scala.concurrent.ExecutionContext.global @JSExport - def count(): Promise[Int] = { sw.finder.count.toJSPromise } + def count(lRef: js.Array[String],distinct : Boolean=false): Promise[Int] = { sw.finder.count(lRef.toSeq,distinct).toJSPromise } @JSExport def classes(regex : String = "",uri:URI = URI(""), page : Int = 0 ): Promise[js.Array[URI]] = diff --git a/js/src/main/scala/inrae/semantic_web/SWDiscoveryJs.scala b/js/src/main/scala/inrae/semantic_web/SWDiscoveryJs.scala index dd795a44..9af25844 100644 --- a/js/src/main/scala/inrae/semantic_web/SWDiscoveryJs.scala +++ b/js/src/main/scala/inrae/semantic_web/SWDiscoveryJs.scala @@ -62,6 +62,9 @@ case class SWDiscoveryJs( @JSExport def getPrefix(short : String) : Any = sw.getPrefix(short) + @JSExport + def directive(directive : String) : SWDiscoveryJs = SWDiscoveryJs(config,sw.directive(directive)) + @JSExport def graph(graph : Any) : SWDiscoveryJs = SWDiscoveryJs(config,sw.graph(toIRI(graph))) @@ -147,18 +150,24 @@ case class SWDiscoveryJs( SWTransactionJs(sw.select(lRef.toSeq,limit,offset)) @JSExport - def selectByPage(lRef: js.Array[String]) : js.Promise[(Int,js.Array[SWTransactionJs])] = { - sw.finder.count.map( - nSolutions => { - val nit : Int = nSolutions / config.conf.settings.pageSize - (nit+1,(0 to nit).map( p =>{ - val limit = config.conf.settings.pageSize - val offset = p*config.conf.settings.pageSize - select(lRef,limit,offset) - }).toJSArray) - }).toJSPromise - } + def selectByPage(lRef: js.Array[String]) : js.Promise[(Int,js.Array[SWTransactionJs])] = + sw.selectByPage(lRef.toSeq).map( res => { + val n : Int = res._1 + val l : Seq[SWTransaction] = res._2 + (n, l.map(swt => SWTransactionJs(swt) ).toJSArray) }).toJSPromise + + @JSExport + def selectByPage(lRef: String*) : js.Promise[(Int,js.Array[SWTransactionJs])] = + selectByPage(lRef.toJSArray) + + @JSExport + def selectDistinctByPage(lRef: js.Array[String]) : js.Promise[(Int,js.Array[SWTransactionJs])] = + sw.selectDistinctByPage(lRef.toSeq).map( res => { + val n : Int = res._1 + val l : Seq[SWTransaction] = res._2 + (n, l.map(swt => SWTransactionJs(swt) ).toJSArray) }).toJSPromise @JSExport - def selectByPage(lRef: String*) : js.Promise[(Int,js.Array[SWTransactionJs])] = selectByPage(lRef.toJSArray) + def selectDistinctByPage(lRef: String*) : js.Promise[(Int,js.Array[SWTransactionJs])] = + selectDistinctByPage(lRef.toJSArray) } diff --git a/js/src/main/scala/inrae/semantic_web/SWTransactionJs.scala b/js/src/main/scala/inrae/semantic_web/SWTransactionJs.scala index 4a971805..5a5a7f95 100644 --- a/js/src/main/scala/inrae/semantic_web/SWTransactionJs.scala +++ b/js/src/main/scala/inrae/semantic_web/SWTransactionJs.scala @@ -52,7 +52,7 @@ case class SWTransactionJs(transaction : SWTransaction) { def orderByDesc( ref: String ) : SWTransactionJs = SWTransactionJs(transaction.orderByDesc(ref)) @JSExport - def orderByDesc( lRef: Seq[String] ) : SWTransactionJs = SWTransactionJs(transaction.orderByDesc(lRef)) + def orderByDesc( lRef: js.Array[String] ) : SWTransactionJs = SWTransactionJs(transaction.orderByDesc(lRef.toSeq)) @JSExport def getSerializedString(): String = transaction.getSerializedString diff --git a/js/src/main/scala/inrae/semantic_web/view/HtmlView.scala b/js/src/main/scala/inrae/semantic_web/view/HtmlView.scala index 484dfff0..bfe7cb61 100644 --- a/js/src/main/scala/inrae/semantic_web/view/HtmlView.scala +++ b/js/src/main/scala/inrae/semantic_web/view/HtmlView.scala @@ -23,12 +23,12 @@ case class HtmlView(sw: SWDiscovery,regex : String = "") { var subjectOfDatatypeProperties: String = waitingForFuture var objectOfProperties: String = waitingForFuture var values: String = waitingForFuture - - sw.finder.count.map(c => { +/* + sw.finder.count().map(c => { count = c.toString update() }) - +*/ sw.finder.classes(regex).map(lUris => { classes = " - " + lUris.mkString("\n - ") update() diff --git a/js/src/test/scala/inrae/semantic_web/SWDiscoveryHelperJsTest.scala b/js/src/test/scala/inrae/semantic_web/SWDiscoveryHelperJsTest.scala index ce281574..56b2e117 100644 --- a/js/src/test/scala/inrae/semantic_web/SWDiscoveryHelperJsTest.scala +++ b/js/src/test/scala/inrae/semantic_web/SWDiscoveryHelperJsTest.scala @@ -33,7 +33,7 @@ object SWDiscoveryHelperJsTest extends TestSuite { startRequest .isSubjectOf(URI("")) .finder - .count() + .count(js.Array("h1")) .toFuture .map( (count : Int) => { assert( count == 2 ) }) }).flatten diff --git a/project/build.properties b/project/build.properties index 7d9ef1ea..dd4ff436 100644 --- a/project/build.properties +++ b/project/build.properties @@ -1 +1 @@ -sbt.version = 1.5.4 +sbt.version = 1.6.1 diff --git a/project/plugins.sbt b/project/plugins.sbt index 0224551d..29bcd6cf 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -1,14 +1,15 @@ -addSbtPlugin("org.jetbrains" % "sbt-ide-settings" % "1.1.0") -addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.6.0") -addSbtPlugin("org.portable-scala" % "sbt-scalajs-crossproject" % "1.0.0") -addSbtPlugin("org.portable-scala" % "sbt-scala-native-crossproject" % "1.0.0") -addSbtPlugin("org.scala-native" % "sbt-scala-native" % "0.3.7") -addSbtPlugin("com.vmunier" % "sbt-web-scalajs" % "1.1.0") -addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.8.5") -addSbtPlugin("com.typesafe.sbt" % "sbt-gzip" % "1.0.2") -addSbtPlugin("com.typesafe.sbt" % "sbt-digest" % "1.1.4") -addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.8.2") -addSbtPlugin("com.github.gseitz" % "sbt-release" % "1.0.13") +//scalaVersion:="2.12.7" + +addSbtPlugin("org.jetbrains.scala"% "sbt-ide-settings" % "1.1.1") +addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.8.0") +addSbtPlugin("org.portable-scala" % "sbt-scalajs-crossproject" % "1.1.0") +addSbtPlugin("org.portable-scala" % "sbt-scala-native-crossproject" % "1.1.0") +addSbtPlugin("org.scala-native" % "sbt-scala-native" % "0.4.3") +//addSbtPlugin("com.vmunier" % "sbt-web-scalajs" % "1.2.0") +//addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.8.8") +//addSbtPlugin("com.typesafe.sbt" % "sbt-digest" % "1.1.4") +addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.9.3") +addSbtPlugin("com.github.sbt" % "sbt-release" % "1.1.0") addSbtPlugin("ch.epfl.scala" % "sbt-scalajs-bundler" % "0.20.0") addSbtPlugin("io.crashbox" % "sbt-gpg" % "0.2.1") diff --git a/shared/src/main/scala/inrae/semantic_web/SWDiscovery.scala b/shared/src/main/scala/inrae/semantic_web/SWDiscovery.scala index cfcbaf3b..358ff325 100644 --- a/shared/src/main/scala/inrae/semantic_web/SWDiscovery.scala +++ b/shared/src/main/scala/inrae/semantic_web/SWDiscovery.scala @@ -133,6 +133,8 @@ case class SWDiscovery( def prefix(short : String, long : IRI ) : SWDiscovery = SWDiscovery(config,rootNode.addPrefix(short , long ),Some(focusNode)) + def directive(directive : String) : SWDiscovery = SWDiscovery(config,rootNode.addDirective(directive),Some(focusNode)) + def prefixes( lPrefixes : Map[String,IRI] ) : SWDiscovery = (lPrefixes map {case (key, value) => prefix(key, value) }).toSeq match { @@ -146,7 +148,6 @@ case class SWDiscovery( def graph(graph : IRI) : SWDiscovery = SWDiscovery(config,rootNode.addDefaultGraph(graph),Some(focusNode)) - def namedGraph(graph : IRI ) : SWDiscovery = SWDiscovery(config,rootNode.addNamedGraph(graph),Some(focusNode)) def checkQueryVariable(term : SparqlDefinition): SWDiscovery = { @@ -310,14 +311,16 @@ case class SWDiscovery( /** * Give an iterable object to browse and obtain all solution performed by a select. - * @param lRef : selected variables + * @param lRef * @return iterable on select function */ def selectByPage(lRef: Seq[String] = List("*")) : Future[(Int,Seq[SWTransaction])] = { - SWDiscoveryHelper(this).count.map( + // remove datatype node ref + val lDatatypeRef = rootNode.lDatatypeNode.map(ldn => ldn.idRef ) + SWDiscoveryHelper(this).count(lRef.filter( ! lDatatypeRef.contains(_)) ).map( nSolutions => { val nit : Int = nSolutions / config.conf.settings.pageSize - (nit+1,(0 to nit).map( p =>{ + (nSolutions,(0 to nit).map( p =>{ val limit = config.conf.settings.pageSize val offset = p*config.conf.settings.pageSize select(lRef,limit,offset) @@ -325,6 +328,27 @@ case class SWDiscovery( }) } + + /** + * Give an iterable object to browse and obtain all solution performed by a select distinct. + * @param lRef : selected variables + * @return iterable on select function + */ + def selectDistinctByPage(lRef: Seq[String] = List("*")) : Future[(Int,Seq[SWTransaction])] = { + val lDatatypeRef = rootNode.lDatatypeNode.map(ldn => ldn.idRef ) + + SWDiscoveryHelper(this).count(lRef.filter( ! lDatatypeRef.contains(_)),true).map( + nSolutions => { + val nit : Int = nSolutions / config.conf.settings.pageSize + (nSolutions,(0 to nit).map( p =>{ + val limit = config.conf.settings.pageSize + val offset = p*config.conf.settings.pageSize + select(lRef,limit,offset).distinct + })) + }) + } + + def browse[A](visitor : (Node, Integer) => A ) : Seq[A] = NodeVisitor.map(rootNode,0,visitor) def setDecoration(key : String, value : String) : SWDiscovery = { @@ -354,5 +378,4 @@ case class SWDiscovery( case None => "" } } - } diff --git a/shared/src/main/scala/inrae/semantic_web/SWDiscoveryHelper.scala b/shared/src/main/scala/inrae/semantic_web/SWDiscoveryHelper.scala index 7505aaec..7f40c69b 100644 --- a/shared/src/main/scala/inrae/semantic_web/SWDiscoveryHelper.scala +++ b/shared/src/main/scala/inrae/semantic_web/SWDiscoveryHelper.scala @@ -15,12 +15,12 @@ case class SWDiscoveryHelper(sw : SWDiscovery) { "http://www.w3.org/1999/02/22-rdf-syntax-ns" ).mkString("|") + ")" - def count : Future[Int] = { + def count(lRef : Seq[String],distinct : Boolean = false) : Future[Int] = { sw .transaction .projection .aggregate("count") - .countAll() + .count(lRef,distinct) .commit() .raw .map( json => { diff --git a/shared/src/main/scala/inrae/semantic_web/SWTransaction.scala b/shared/src/main/scala/inrae/semantic_web/SWTransaction.scala index 90679be3..d9ccbb19 100644 --- a/shared/src/main/scala/inrae/semantic_web/SWTransaction.scala +++ b/shared/src/main/scala/inrae/semantic_web/SWTransaction.scala @@ -180,8 +180,8 @@ case class SWTransaction(sw : SWDiscovery = SWDiscovery()) ProjectionExpression(QueryVariable(v),n,sw.getUniqueRef()),false).transaction } - def count(ref : String, distinct: Boolean=false) : SWTransaction = manage(Count(QueryVariable(ref),distinct,sw.getUniqueRef())) - def countAll(distinct: Boolean=false) : SWTransaction = manage(CountAll(distinct,sw.getUniqueRef()),true) + def count(lRef : Seq[String],distinct: Boolean=false) : SWTransaction = manage(Count(lRef.map(QueryVariable(_)),distinct,sw.getUniqueRef())) + // def countAll(distinct: Boolean=false) : SWTransaction = manage(CountAll(distinct,sw.getUniqueRef()),true) } def aggregate(`var` : String) : ProjectionExpressionIncrement = ProjectionExpressionIncrement(`var`) diff --git a/shared/src/main/scala/inrae/semantic_web/SparqlQueryBuilder.scala b/shared/src/main/scala/inrae/semantic_web/SparqlQueryBuilder.scala index f4fe23ab..4ecae8e6 100644 --- a/shared/src/main/scala/inrae/semantic_web/SparqlQueryBuilder.scala +++ b/shared/src/main/scala/inrae/semantic_web/SparqlQueryBuilder.scala @@ -30,7 +30,8 @@ object SparqlQueryBuilder { def selectQueryString(n: Root): String = { debug(" -- selectQueryString -- ") - (pm.SparqlGenerator.prefixes(n.prefixes) + "\n" + + (n.directives.map( x => x ).mkString(" \n") + "\n" + + pm.SparqlGenerator.prefixes(n.prefixes) + "\n" + baseQuery(n)).replace("\n\n","\n") } diff --git a/shared/src/main/scala/inrae/semantic_web/node/Element.scala b/shared/src/main/scala/inrae/semantic_web/node/Element.scala index 268ff671..849b6289 100644 --- a/shared/src/main/scala/inrae/semantic_web/node/Element.scala +++ b/shared/src/main/scala/inrae/semantic_web/node/Element.scala @@ -99,9 +99,10 @@ final case class Root( prefixes : Map[String,IRI] = Map( "owl" -> IRI("http://www.w3.org/2002/07/owl#"), "rdf" -> IRI("http://www.w3.org/1999/02/22-rdf-syntax-ns#"), - "rdfs"->IRI("http://www.w3.org/2000/01/rdf-schema#"), - "xsd"->IRI("http://www.w3.org/2001/XMLSchema#") + "rdfs"-> IRI("http://www.w3.org/2000/01/rdf-schema#"), + "xsd" -> IRI("http://www.w3.org/2001/XMLSchema#") ), + directives: Seq[String] = Seq(), defaultGraph : Seq[IRI] = List[IRI](), namedGraph : Seq[IRI] = List[IRI](), lDatatypeNode : Seq[DatatypeNode] = List[DatatypeNode](), @@ -114,31 +115,33 @@ final case class Root( /* prefix management */ def addPrefix(short : String,long : IRI) : Root = { - Root(idRef,prefixes + (short -> long ),defaultGraph,namedGraph,lDatatypeNode,lSourcesNodes,lBindNode,lSolutionSequenceModifierNode,children,decorations) + Root(idRef,prefixes + (short -> long ),directives,defaultGraph,namedGraph,lDatatypeNode,lSourcesNodes,lBindNode,lSolutionSequenceModifierNode,children,decorations) } - def getPrefix(short : String) : IRI = prefixes.getOrElse(short,IRI("")) def getPrefixes : Map[String,IRI] = prefixes + def addDirective(directive : String) : Root = + Root(idRef,prefixes,directives :+ directive ,defaultGraph,namedGraph,lDatatypeNode,lSourcesNodes,lBindNode,lSolutionSequenceModifierNode,children,decorations) + def addDefaultGraph(graph : IRI) : Root = - Root(idRef,prefixes,defaultGraph :+ graph,namedGraph,lDatatypeNode,lSourcesNodes,lBindNode,lSolutionSequenceModifierNode,children,decorations) + Root(idRef,prefixes,directives,defaultGraph :+ graph,namedGraph,lDatatypeNode,lSourcesNodes,lBindNode,lSolutionSequenceModifierNode,children,decorations) def addNamedGraph(graph : IRI) : Root = - Root(idRef,prefixes,defaultGraph,namedGraph :+ graph,lDatatypeNode,lSourcesNodes,lBindNode,lSolutionSequenceModifierNode,children,decorations) + Root(idRef,prefixes,directives,defaultGraph,namedGraph :+ graph,lDatatypeNode,lSourcesNodes,lBindNode,lSolutionSequenceModifierNode,children,decorations) private def addSourceNode(s : SourcesNode) : Root = - Root(idRef,prefixes,defaultGraph,namedGraph,lDatatypeNode,lSourcesNodes :+ s,lBindNode,lSolutionSequenceModifierNode,children,decorations) + Root(idRef,prefixes,directives,defaultGraph,namedGraph,lDatatypeNode,lSourcesNodes :+ s,lBindNode,lSolutionSequenceModifierNode,children,decorations) private def addDatatype(d : DatatypeNode) : Root = - Root(idRef,prefixes,defaultGraph,namedGraph,lDatatypeNode :+ d,lSourcesNodes,lBindNode,lSolutionSequenceModifierNode,children,decorations) + Root(idRef,prefixes,directives,defaultGraph,namedGraph,lDatatypeNode :+ d,lSourcesNodes,lBindNode,lSolutionSequenceModifierNode,children,decorations) private def addBindNode(b : Bind) : Root = - Root(idRef,prefixes,defaultGraph,namedGraph,lDatatypeNode ,lSourcesNodes,lBindNode :+ b,lSolutionSequenceModifierNode ,children,decorations) + Root(idRef,prefixes,directives,defaultGraph,namedGraph,lDatatypeNode ,lSourcesNodes,lBindNode :+ b,lSolutionSequenceModifierNode ,children,decorations) private def addSolutionSequenceModifierNode(s : SolutionSequenceModifierNode) : Root = - Root(idRef,prefixes,defaultGraph,namedGraph,lDatatypeNode ,lSourcesNodes,lBindNode,lSolutionSequenceModifierNode :+ s,children,decorations) + Root(idRef,prefixes,directives,defaultGraph,namedGraph,lDatatypeNode ,lSourcesNodes,lBindNode,lSolutionSequenceModifierNode :+ s,children,decorations) override def getChild[SpecializedNodeType <: Node ](that : SpecializedNodeType)(implicit tag: ClassTag[SpecializedNodeType]) : Seq[SpecializedNodeType] = { @@ -173,6 +176,7 @@ final case class Root( Root( idRef, prefixes, + directives, defaultGraph, namedGraph, lDatatypeNode.map(_.addChildren(focusId,n).asInstanceOf[DatatypeNode]) , @@ -187,7 +191,7 @@ final case class Root( def copy(children : Seq[Node],decoratingAttributeMap : Map[String,String]=decorations) : Node = { - Root(idRef,prefixes,defaultGraph,namedGraph,lDatatypeNode, + Root(idRef,prefixes,directives,defaultGraph,namedGraph,lDatatypeNode, lSourcesNodes,lBindNode,lSolutionSequenceModifierNode,children,decoratingAttributeMap) } @@ -1256,8 +1260,7 @@ final case class Datatype( object AggregateNode { implicit val rw: RW[AggregateNode] = RW.merge( - Count.rw, - CountAll.rw + Count.rw ) } @@ -1296,7 +1299,7 @@ object Count { } final case class Count( - varToCount : QueryVariable, + listVarToCount : Seq[QueryVariable], distinct : Boolean = false, override val idRef : String, override val children: Seq[Node] = Seq[Node](), @@ -1305,23 +1308,7 @@ final case class Count( override def copy( children: Seq[Node]=children, decoratingAttributeMap : Map[String,String]=decorations - ): Node = Count(varToCount,distinct,idRef,children,decoratingAttributeMap) -} - -object CountAll { - implicit val rw: RW[CountAll] = macroRW -} - -final case class CountAll( - distinct : Boolean = false, - override val idRef : String, - override val children: Seq[Node] = Seq[Node](), - override val decorations: Map[String,String] = Map() - ) extends AggregateNode(idRef,children,decorations) { - override def copy( - children: Seq[Node]=children, - decoratingAttributeMap : Map[String,String]=decorations - ): Node = CountAll(distinct,idRef,children,decoratingAttributeMap) + ): Node = Count(listVarToCount,distinct,idRef,children,decoratingAttributeMap) } object BuiltInCallNode { diff --git a/shared/src/main/scala/inrae/semantic_web/node/pm/SparqlGenerator.scala b/shared/src/main/scala/inrae/semantic_web/node/pm/SparqlGenerator.scala index b9c45679..a6c6127d 100644 --- a/shared/src/main/scala/inrae/semantic_web/node/pm/SparqlGenerator.scala +++ b/shared/src/main/scala/inrae/semantic_web/node/pm/SparqlGenerator.scala @@ -17,6 +17,7 @@ object SparqlGenerator { }.mkString("\n") } + def from(graphs : Seq[IRI]): String = graphs.map( g => "FROM "+g.sparql).mkString("\n") def fromNamed(graphs : Seq[IRI]): String = graphs.map( g => "FROM NAMED "+g.sparql).mkString("\n") @@ -82,7 +83,7 @@ object SparqlGenerator { case _ => "" } - "} " + { + "} " + orderByForm +"\n" + { root.lSolutionSequenceModifierNode.filter { case l : Limit if l.value>0 => true case _ => false @@ -92,7 +93,7 @@ object SparqlGenerator { case o : Offset if o.value > 0 => true case _ => false }.lastOption.map(sparqlNode(_,"","")).getOrElse("") - } + orderByForm + } } def prologCountSelection(varCount : String) : String = { @@ -115,8 +116,9 @@ object SparqlGenerator { case node : ListValues => "\tVALUES ?" +varIdSire+ " { " + node.terms.map(t => t.sparql).mkString(" ") + " } .\n" case node : ProjectionExpression => "(" + sparqlNode(node.expression,node.idRef,variableName) + " AS "+ node.`var` + ") " case node : Bind => "\tBIND (" + sparqlNode(node.expression,varIdSire,variableName) + " AS "+ "?" + node.idRef + ") \n" - case node : Count => "COUNT ("+ { if (node.distinct) "DISTINCT" else "" } + " "+ node.varToCount.sparql +")" - case node : CountAll => "COUNT ("+ { if (node.distinct) "DISTINCT" else "" } + " * )" + case node : Count => "COUNT ("+ { if (node.distinct) "DISTINCT" else "" } + + " concat("+ node.listVarToCount.map("str("+_.sparql+")").mkString(",") +"))" + // case node : CountAll => "COUNT ("+ { if (node.distinct) "DISTINCT" else "" } + " * )" case _ : Distinct => "DISTINCT " case _ : Reduced => "REDUCED " case node : Projection if node.variables.length>0 => node.variables.mkString(" ") diff --git a/shared/src/main/scala/inrae/semantic_web/sparql/QueryResult.scala b/shared/src/main/scala/inrae/semantic_web/sparql/QueryResult.scala index 2b9640d3..e365ce92 100644 --- a/shared/src/main/scala/inrae/semantic_web/sparql/QueryResult.scala +++ b/shared/src/main/scala/inrae/semantic_web/sparql/QueryResult.scala @@ -8,15 +8,26 @@ case class QueryResult(results: String, mimetype : String = "json") { lazy val json = Try(ujson.read(results)) match { - case Success(json) => json + case Success(json) => + json.objOpt match { + case Some(_) => json + // fix when get only results without header (triplydb) + case None => ujson.Obj( + "head" -> ujson.Obj( + "link" -> ujson.Arr(), + "vars" -> ujson.Arr() + ), + "results" -> ujson.Obj( + "bindings" -> json + ) + ) + } case Failure(_) => ujson.Obj( "head" -> ujson.Obj( "link" -> ujson.Arr(), "vars" -> ujson.Arr() ), "results" -> ujson.Obj( - "distinct" -> "false", - "ordered" -> "true", "bindings" -> ujson.Arr() ) ) diff --git a/shared/src/test/scala/inrae/data/ApplyAllNode.scala b/shared/src/test/scala/inrae/data/ApplyAllNode.scala index 25461349..e0062394 100644 --- a/shared/src/test/scala/inrae/data/ApplyAllNode.scala +++ b/shared/src/test/scala/inrae/data/ApplyAllNode.scala @@ -48,9 +48,9 @@ object ApplyAllNode { Floor("h1"), Rand("h1"), Datatype("h1"), - ProjectionExpression(QueryVariable("aq"),Count(QueryVariable("q"),true,"h1"),"h1"), - Count(QueryVariable("q"),false,"h1"), - CountAll(true,"h1"), + ProjectionExpression(QueryVariable("aq"),Count(Seq(QueryVariable("q")),true,"h1"),"h1"), + Count(Seq(QueryVariable("q")),false,"h1"), + //CountAll(true,"h1"), Str(URI("s"),"h1"), Lang(URI("s"),"h1"), LangMatches(URI("s"),"h1") diff --git a/shared/src/test/scala/inrae/semantic_web/Fix144TriplyDb.scala b/shared/src/test/scala/inrae/semantic_web/Fix144TriplyDb.scala new file mode 100644 index 00000000..ee6bdc40 --- /dev/null +++ b/shared/src/test/scala/inrae/semantic_web/Fix144TriplyDb.scala @@ -0,0 +1,47 @@ +package inrae.semantic_web + +import inrae.data.DataTestFactory +import inrae.semantic_web.rdf.URI +import utest.{TestSuite, Tests, test} + + + +object Fix144TriplyDb extends TestSuite { + val config: StatementConfiguration = StatementConfiguration.setConfigString( + """ + { + "sources" : [{ + "id" : "triplydb", + "url" : "https://api.triplydb.com/datasets/gr/gr/services/gr/sparql" + }], + "settings" : { + "cache" : true, + "logLevel" : "info", + "sizeBatchProcessing" : 10, + "pageSize" : 10 + } + } + """.stripMargin) + + override def utestAfterAll(): Unit = { + DataTestFactory.deleteVirtuoso1(this.getClass.getSimpleName) + } + + def tests = Tests { + test("Fix Triplydb access #144") { + SWDiscovery(config) + .something("h1") + .isSubjectOf(URI("a"),"type") + .filter.contains("Business") + .select(Seq("type")) + + /* + ********* Inactive test because remote access ****** + .commit() + .raw.map(r => { + println(r) + })*/ + } + } +} + diff --git a/shared/src/test/scala/inrae/semantic_web/FixLimitOrderbyDescTest.scala b/shared/src/test/scala/inrae/semantic_web/FixLimitOrderbyDescTest.scala new file mode 100644 index 00000000..5826a73f --- /dev/null +++ b/shared/src/test/scala/inrae/semantic_web/FixLimitOrderbyDescTest.scala @@ -0,0 +1,60 @@ +package inrae.semantic_web + +import inrae.semantic_web.rdf.URI +import utest.{TestSuite, Tests, test} + +import scala.concurrent.ExecutionContext.Implicits.global + +object FixLimitOrderbyDescTest extends TestSuite { + val config: StatementConfiguration = StatementConfiguration.setConfigString( + """ + { + "sources" : [{ + "id" : "file_turtle", + "file" : "http://localhost:8080/animals_basic.ttl", + "mimetype" : "text/turtle" + }], + "settings" : { + "logLevel" : "off", + "sizeBatchProcessing" : 100 + } + } + """.stripMargin) + + def tests = Tests { + test("order by asc") { + SWDiscovery(config) + .prefix("ns0","http://www.some-ficticious-zoo.com/rdf#") + .something("animal") + .isSubjectOf(URI("ns0:name"),"name") + .select(Seq("animal","name")) + .orderByAsc("name") + .limit(10) + .console + .commit() + .raw.map(response => { + println(response("results")("bindings")) + println(response("results")("datatypes")) + } + ) + } + + test("order by desc") { + SWDiscovery(config) + .prefix("ns0","http://www.some-ficticious-zoo.com/rdf#") + .something("animal") + .isSubjectOf(URI("ns0:name"),"name") + .select(Seq("animal","name")) + .orderByDesc("name") + .limit(10) + .console + .commit() + .raw.map(response => { + println(response("results")("bindings")) + println(response("results")("datatypes")) + } + ) + } + } +} + diff --git a/shared/src/test/scala/inrae/semantic_web/SWDiscoveryHelperTest.scala b/shared/src/test/scala/inrae/semantic_web/SWDiscoveryHelperTest.scala index 7dc2383c..c51bfb1a 100644 --- a/shared/src/test/scala/inrae/semantic_web/SWDiscoveryHelperTest.scala +++ b/shared/src/test/scala/inrae/semantic_web/SWDiscoveryHelperTest.scala @@ -32,13 +32,38 @@ object SWDiscoveryHelperTest extends TestSuite { def tests = Tests { test("count") { + insertData.map(_ => { + SWDiscovery(config) + .graph(IRI(DataTestFactory.graph1(this.getClass.getSimpleName))) + .something("h1") //http://rdf.ebi.ac.uk/terms/chembl#BioComponent + .isSubjectOf(URI("http://bb2")) + .finder + .count(Seq("h1")) + .map(count => assert(count == 2)) + }).flatten + } + + test("count distinct") { insertData.map(_ => { SWDiscovery(config) .graph(IRI(DataTestFactory.graph1(this.getClass.getSimpleName))) .something("h1") //http://rdf.ebi.ac.uk/terms/chembl#BioComponent .isSubjectOf(URI("http://bb2")) .finder - .count + .count(Seq("h1"),true) + .map(count => assert(count == 1)) + }).flatten + } + + test("count with datatype") { + insertData.map(_ => { + SWDiscovery(config) + .graph(IRI(DataTestFactory.graph1(this.getClass.getSimpleName))) + .something("h1") //http://rdf.ebi.ac.uk/terms/chembl#BioComponent + .datatype(URI("http://fake/"),"dt1") + .isSubjectOf(URI("http://bb2")) + .finder + .count(Seq("h1","dt1")) .map(count => assert(count == 2)) }).flatten } @@ -209,7 +234,6 @@ object SWDiscoveryHelperTest extends TestSuite { .map(response => assert(response.length == 0)) }).flatten } - } } diff --git a/shared/src/test/scala/inrae/semantic_web/SWDiscoverySelectIterable.scala b/shared/src/test/scala/inrae/semantic_web/SWDiscoverySelectIterable.scala index bf629db9..70dbcc3d 100644 --- a/shared/src/test/scala/inrae/semantic_web/SWDiscoverySelectIterable.scala +++ b/shared/src/test/scala/inrae/semantic_web/SWDiscoverySelectIterable.scala @@ -23,7 +23,7 @@ object SWDiscoverySelectIterable extends TestSuite { 10 . 11 . 12 . - + 13 . """.stripMargin val insertData = DataTestFactory.insertVirtuoso1(data, this.getClass.getSimpleName) @@ -59,11 +59,11 @@ object SWDiscoverySelectIterable extends TestSuite { .something() .set(URI("http://aa")) .isSubjectOf(URI("http://bb"), "obj") - .selectByPage(List("obj")) + .selectDistinctByPage( List("obj")) .map(args => { - val nb = args._1 + val nbSolution = args._1 val results = args._2 - assert(nb == nblock) + assert(nbSolution == nbValues) Future.sequence((0 to nblock-1).map( iblock => { results(iblock).commit().raw.map({ r => { @@ -77,6 +77,20 @@ object SWDiscoverySelectIterable extends TestSuite { }) }).flatten } - } + test("selectByPage with fake") { + insertData.map(_ => { + SWDiscovery(config) + .graph(IRI(DataTestFactory.graph1(this.getClass.getSimpleName))) + .something() + .set(URI("http://aa")) + .datatype(URI("http://fake/"),"fake") + .isSubjectOf(URI("http://bb"), "obj") + .selectByPage( List("obj","fake")) + .map(args => { + println(args) + }) + }).flatten + } + } } diff --git a/shared/src/test/scala/inrae/semantic_web/SparqlQueryBuilderTest.scala b/shared/src/test/scala/inrae/semantic_web/SparqlQueryBuilderTest.scala new file mode 100644 index 00000000..43775694 --- /dev/null +++ b/shared/src/test/scala/inrae/semantic_web/SparqlQueryBuilderTest.scala @@ -0,0 +1,22 @@ +package inrae.semantic_web + +import inrae.semantic_web.node.Root +import utest.{TestSuite, Tests, test} + +object SparqlQueryBuilderTest extends TestSuite { + + def tests = Tests { + test("baseQuery empty Root") { + assert(SparqlQueryBuilder.baseQuery(Root()).nonEmpty) + } + test("selectQueryString empty Root") { + assert(SparqlQueryBuilder.selectQueryString(Root()).nonEmpty) + } + + test("selectQueryString Root directive") { + assert(SparqlQueryBuilder.selectQueryString(Root(directives = Seq("test"))).contains("test")) + } + + } +} + diff --git a/ts/tests/github.issues.test.ts b/ts/tests/github.issues.test.ts index e461d725..d14c0a92 100644 --- a/ts/tests/github.issues.test.ts +++ b/ts/tests/github.issues.test.ts @@ -1,4 +1,4 @@ -import { SWDiscoveryConfiguration , SWDiscovery } from '../../js/target/scala-2.13/scalajs-bundler/main/discovery-fastopt' +import { SWDiscoveryConfiguration , SWDiscovery, URI } from '../../js/target/scala-2.13/scalajs-bundler/main/discovery-fastopt' describe('-- GITHUB ISSUES -- ', () => { @@ -20,5 +20,30 @@ describe('-- GITHUB ISSUES -- ', () => { const str : string = SWDiscovery(localConf).something("hello").getSerializedString() const t = SWDiscovery(localConf).setSerializedString(str) }) - + + test('#144', async () => { + const conf = SWDiscoveryConfiguration.setConfigString(`{ + "sources" : [{ + "id" : "triplydb", + "url" : "https://api.triplydb.com/datasets/gr/gr/services/gr/sparql" + }], + "settings" : { + "cache" : true, + "logLevel" : "info", + "sizeBatchProcessing" : 10, + "pageSize" : 10 + }}`) + + const results : string = + await SWDiscovery(conf) + .something("hello") + .isSubjectOf(URI("a"),"type") + .filter.contains("Business") + .console() + /* .select("type") + .commit() + .raw(); + + console.log("results:"+JSON.stringify(results))*/ + }) }); \ No newline at end of file diff --git a/update_cdn_libjs.sh b/update_cdn_libjs.sh index 3a5fd93e..04d1154e 100755 --- a/update_cdn_libjs.sh +++ b/update_cdn_libjs.sh @@ -1,5 +1,7 @@ #!/bin/bash +export NODE_OPTIONS=--openssl-legacy-provider + # clean dist directory rm dist/discovery*.js # generate build version