diff options
Diffstat (limited to '.yarn/plugins/@yarnpkg')
-rw-r--r-- | .yarn/plugins/@yarnpkg/plugin-typescript.cjs | 2004 |
1 files changed, 6 insertions, 1998 deletions
diff --git a/.yarn/plugins/@yarnpkg/plugin-typescript.cjs b/.yarn/plugins/@yarnpkg/plugin-typescript.cjs index df8ade0..5c1859e 100644 --- a/.yarn/plugins/@yarnpkg/plugin-typescript.cjs +++ b/.yarn/plugins/@yarnpkg/plugin-typescript.cjs @@ -1,2001 +1,9 @@ /* eslint-disable */ +//prettier-ignore module.exports = { - name: '@yarnpkg/plugin-typescript', - factory: function (require) { - var plugin; - plugin = (() => { - var e = { - 958: (e, t, r) => { - 'use strict'; - r.r(t), r.d(t, { default: () => u }); - const s = require('@yarnpkg/core'), - a = require('@yarnpkg/plugin-essentials'), - o = require('semver'); - var n = r.n(o), - i = r(410), - c = r.n(i); - const d = (e) => { - const t = { - async send(t) { - try { - const r = await s.httpUtils.request( - t.url, - t.data || null, - { configuration: e, headers: t.headers } - ); - return { - content: r.body, - isTimedOut: !1, - status: r.statusCode - }; - } catch (e) { - return { - content: e.response.body, - isTimedOut: !1, - status: e.response.statusCode - }; - } - } - }; - return c()('OFCNCOG2CU', 'e8e1bd300d860104bb8c58453ffa1eb4', { - requester: t - }); - }, - l = (e) => (e.scope ? `${e.scope}__${e.name}` : '' + e.name), - u = { - hooks: { - afterWorkspaceDependencyAddition: async (e, t, r, o) => { - if ('types' === r.scope) return; - const { project: i } = e, - { configuration: c } = i, - u = c.makeResolver(), - p = { - project: i, - resolver: u, - report: new s.ThrowReport() - }; - if ( - !(await (async (e, t) => { - var r; - const a = s.structUtils.stringifyIdent(e), - o = d(t).initIndex('npm-search'); - try { - return ( - 'definitely-typed' === - (null === - (r = ( - await o.getObject(a, { - attributesToRetrieve: ['types'] - }) - ).types) || void 0 === r - ? void 0 - : r.ts) - ); - } catch (e) { - return !1; - } - })(r, c)) - ) - return; - const m = l(r); - let h = s.structUtils.parseRange(r.range).selector; - if (!n().validRange(h)) { - const e = await u.getCandidates(r, new Map(), p); - h = s.structUtils.parseRange(e[0].reference).selector; - } - const y = n().coerce(h); - if (null === y) return; - const g = `${a.suggestUtils.Modifier.CARET}${y.major}`, - b = s.structUtils.makeDescriptor( - s.structUtils.makeIdent('types', m), - g - ), - f = s.miscUtils.mapAndFind(i.workspaces, (e) => { - var t, a; - const o = - null === - (t = e.manifest.dependencies.get(r.identHash)) || - void 0 === t - ? void 0 - : t.descriptorHash, - n = - null === - (a = e.manifest.devDependencies.get( - r.identHash - )) || void 0 === a - ? void 0 - : a.descriptorHash; - if (o !== r.descriptorHash && n !== r.descriptorHash) - return s.miscUtils.mapAndFind.skip; - const i = []; - for (const t of s.Manifest.allDependencies) { - const r = e.manifest[t].get(b.identHash); - void 0 !== r && i.push([t, r]); - } - return 0 === i.length ? s.miscUtils.mapAndFind.skip : i; - }); - if (void 0 !== f) - for (const [t, r] of f) e.manifest[t].set(r.identHash, r); - else { - try { - if ( - 0 === (await u.getCandidates(b, new Map(), p)).length - ) - return; - } catch (e) { - return; - } - e.manifest[a.suggestUtils.Target.DEVELOPMENT].set( - b.identHash, - b - ); - } - }, - afterWorkspaceDependencyRemoval: async (e, t, r) => { - if ('types' === r.scope) return; - const a = l(r), - o = s.structUtils.makeIdent('types', a); - for (const t of s.Manifest.allDependencies) { - void 0 !== e.manifest[t].get(o.identHash) && - e.manifest[t].delete(o.identHash); - } - }, - beforeWorkspacePacking: (e, t) => { - t.publishConfig && - t.publishConfig.typings && - (t.typings = t.publishConfig.typings), - t.publishConfig && - t.publishConfig.types && - (t.types = t.publishConfig.types); - } - } - }; - }, - 469: (e, t, r) => { - 'use strict'; - function s(e) { - const t = [...e.caches], - r = t.shift(); - return void 0 === r - ? a() - : { - get: (e, a, o = { miss: () => Promise.resolve() }) => - r.get(e, a, o).catch(() => s({ caches: t }).get(e, a, o)), - set: (e, a) => - r.set(e, a).catch(() => s({ caches: t }).set(e, a)), - delete: (e) => - r.delete(e).catch(() => s({ caches: t }).delete(e)), - clear: () => r.clear().catch(() => s({ caches: t }).clear()) - }; - } - function a() { - return { - get: (e, t, r = { miss: () => Promise.resolve() }) => - t() - .then((e) => Promise.all([e, r.miss(e)])) - .then(([e]) => e), - set: (e, t) => Promise.resolve(t), - delete: (e) => Promise.resolve(), - clear: () => Promise.resolve() - }; - } - r.r(t), - r.d(t, { - createFallbackableCache: () => s, - createNullCache: () => a - }); - }, - 712: (e, t, r) => { - 'use strict'; - function s(e = { serializable: !0 }) { - let t = {}; - return { - get(r, s, a = { miss: () => Promise.resolve() }) { - const o = JSON.stringify(r); - if (o in t) - return Promise.resolve( - e.serializable ? JSON.parse(t[o]) : t[o] - ); - const n = s(), - i = (a && a.miss) || (() => Promise.resolve()); - return n.then((e) => i(e)).then(() => n); - }, - set: (r, s) => ( - (t[JSON.stringify(r)] = e.serializable - ? JSON.stringify(s) - : s), - Promise.resolve(s) - ), - delete: (e) => (delete t[JSON.stringify(e)], Promise.resolve()), - clear: () => ((t = {}), Promise.resolve()) - }; - } - r.r(t), r.d(t, { createInMemoryCache: () => s }); - }, - 223: (e, t, r) => { - 'use strict'; - r.r(t), - r.d(t, { - addABTest: () => i, - createAnalyticsClient: () => n, - deleteABTest: () => c, - getABTest: () => d, - getABTests: () => l, - stopABTest: () => u - }); - var s = r(757), - a = r(858), - o = r(541); - const n = (e) => { - const t = e.region || 'us', - r = (0, s.createAuth)( - s.AuthMode.WithinHeaders, - e.appId, - e.apiKey - ), - o = (0, a.createTransporter)({ - hosts: [{ url: `analytics.${t}.algolia.com` }], - ...e, - headers: { - ...r.headers(), - 'content-type': 'application/json', - ...e.headers - }, - queryParameters: { - ...r.queryParameters(), - ...e.queryParameters - } - }), - n = e.appId; - return (0, s.addMethods)( - { appId: n, transporter: o }, - e.methods - ); - }, - i = (e) => (t, r) => - e.transporter.write( - { method: o.N.Post, path: '2/abtests', data: t }, - r - ), - c = (e) => (t, r) => - e.transporter.write( - { - method: o.N.Delete, - path: (0, s.encode)('2/abtests/%s', t) - }, - r - ), - d = (e) => (t, r) => - e.transporter.read( - { method: o.N.Get, path: (0, s.encode)('2/abtests/%s', t) }, - r - ), - l = (e) => (t) => - e.transporter.read({ method: o.N.Get, path: '2/abtests' }, t), - u = (e) => (t, r) => - e.transporter.write( - { - method: o.N.Post, - path: (0, s.encode)('2/abtests/%s/stop', t) - }, - r - ); - }, - 757: (e, t, r) => { - 'use strict'; - function s(e, t, r) { - const s = { - 'x-algolia-api-key': r, - 'x-algolia-application-id': t - }; - return { - headers: () => (e === u.WithinHeaders ? s : {}), - queryParameters: () => (e === u.WithinQueryParameters ? s : {}) - }; - } - function a(e) { - let t = 0; - const r = () => ( - t++, - new Promise((s) => { - setTimeout(() => { - s(e(r)); - }, Math.min(100 * t, 1e3)); - }) - ); - return e(r); - } - function o(e, t = (e, t) => Promise.resolve()) { - return Object.assign(e, { - wait: (r) => - o(e.then((e) => Promise.all([t(e, r), e])).then((e) => e[1])) - }); - } - function n(e) { - let t = e.length - 1; - for (; t > 0; t--) { - const r = Math.floor(Math.random() * (t + 1)), - s = e[t]; - (e[t] = e[r]), (e[r] = s); - } - return e; - } - function i(e, t) { - return ( - Object.keys(void 0 !== t ? t : {}).forEach((r) => { - e[r] = t[r](e); - }), - e - ); - } - function c(e, ...t) { - let r = 0; - return e.replace(/%s/g, () => encodeURIComponent(t[r++])); - } - r.r(t), - r.d(t, { - AuthMode: () => u, - addMethods: () => i, - createAuth: () => s, - createRetryablePromise: () => a, - createWaitablePromise: () => o, - destroy: () => l, - encode: () => c, - shuffle: () => n, - version: () => d - }); - const d = '4.2.0', - l = (e) => () => e.transporter.requester.destroy(), - u = { WithinQueryParameters: 0, WithinHeaders: 1 }; - }, - 103: (e, t, r) => { - 'use strict'; - r.r(t), - r.d(t, { - createRecommendationClient: () => n, - getPersonalizationStrategy: () => i, - setPersonalizationStrategy: () => c - }); - var s = r(757), - a = r(858), - o = r(541); - const n = (e) => { - const t = e.region || 'us', - r = (0, s.createAuth)( - s.AuthMode.WithinHeaders, - e.appId, - e.apiKey - ), - o = (0, a.createTransporter)({ - hosts: [{ url: `recommendation.${t}.algolia.com` }], - ...e, - headers: { - ...r.headers(), - 'content-type': 'application/json', - ...e.headers - }, - queryParameters: { - ...r.queryParameters(), - ...e.queryParameters - } - }); - return (0, s.addMethods)( - { appId: e.appId, transporter: o }, - e.methods - ); - }, - i = (e) => (t) => - e.transporter.read( - { method: o.N.Get, path: '1/strategies/personalization' }, - t - ), - c = (e) => (t, r) => - e.transporter.write( - { - method: o.N.Post, - path: '1/strategies/personalization', - data: t - }, - r - ); - }, - 790: (e, t, r) => { - 'use strict'; - r.r(t), - r.d(t, { - ApiKeyACLEnum: () => xe, - BatchActionEnum: () => we, - ScopeEnum: () => Ae, - StrategyEnum: () => qe, - SynonymEnum: () => Re, - addApiKey: () => p, - assignUserID: () => m, - assignUserIDs: () => h, - batch: () => H, - browseObjects: () => K, - browseRules: () => B, - browseSynonyms: () => z, - chunkedBatch: () => V, - clearObjects: () => $, - clearRules: () => L, - clearSynonyms: () => Q, - copyIndex: () => y, - copyRules: () => g, - copySettings: () => b, - copySynonyms: () => f, - createBrowsablePromise: () => i, - createMissingObjectIDError: () => d, - createObjectNotFoundError: () => l, - createSearchClient: () => c, - createValidUntilNotFoundError: () => u, - deleteApiKey: () => P, - deleteBy: () => J, - deleteIndex: () => _, - deleteObject: () => X, - deleteObjects: () => Y, - deleteRule: () => Z, - deleteSynonym: () => ee, - exists: () => te, - findObject: () => re, - generateSecuredApiKey: () => I, - getApiKey: () => O, - getLogs: () => j, - getObject: () => se, - getObjectPosition: () => ae, - getObjects: () => oe, - getRule: () => ne, - getSecuredApiKeyRemainingValidity: () => v, - getSettings: () => ie, - getSynonym: () => ce, - getTask: () => de, - getTopUserIDs: () => N, - getUserID: () => S, - hasPendingMappings: () => D, - initIndex: () => x, - listApiKeys: () => w, - listClusters: () => A, - listIndices: () => q, - listUserIDs: () => R, - moveIndex: () => T, - multipleBatch: () => k, - multipleGetObjects: () => U, - multipleQueries: () => C, - multipleSearchForFacetValues: () => E, - partialUpdateObject: () => le, - partialUpdateObjects: () => ue, - removeUserID: () => M, - replaceAllObjects: () => pe, - replaceAllRules: () => me, - replaceAllSynonyms: () => he, - restoreApiKey: () => W, - saveObject: () => ye, - saveObjects: () => ge, - saveRule: () => be, - saveRules: () => fe, - saveSynonym: () => Pe, - saveSynonyms: () => Ie, - search: () => Oe, - searchForFacetValues: () => je, - searchRules: () => ve, - searchSynonyms: () => Ne, - searchUserIDs: () => F, - setSettings: () => Se, - updateApiKey: () => G, - waitTask: () => De - }); - var s = r(757), - a = r(858), - o = r(541); - const n = require('crypto'); - function i(e) { - const t = (r) => - e.request(r).then((s) => { - if ((void 0 !== e.batch && e.batch(s.hits), !e.shouldStop(s))) - return s.cursor - ? t({ cursor: s.cursor }) - : t({ page: (r.page || 0) + 1 }); - }); - return t({}); - } - const c = (e) => { - const t = e.appId, - r = (0, s.createAuth)( - void 0 !== e.authMode ? e.authMode : s.AuthMode.WithinHeaders, - t, - e.apiKey - ), - o = (0, a.createTransporter)({ - hosts: [ - { url: t + '-dsn.algolia.net', accept: a.CallEnum.Read }, - { url: t + '.algolia.net', accept: a.CallEnum.Write } - ].concat( - (0, s.shuffle)([ - { url: t + '-1.algolianet.com' }, - { url: t + '-2.algolianet.com' }, - { url: t + '-3.algolianet.com' } - ]) - ), - ...e, - headers: { - ...r.headers(), - 'content-type': 'application/x-www-form-urlencoded', - ...e.headers - }, - queryParameters: { - ...r.queryParameters(), - ...e.queryParameters - } - }), - n = { - transporter: o, - appId: t, - addAlgoliaAgent(e, t) { - o.userAgent.add({ segment: e, version: t }); - }, - clearCache: () => - Promise.all([ - o.requestsCache.clear(), - o.responsesCache.clear() - ]).then(() => {}) - }; - return (0, s.addMethods)(n, e.methods); - }; - function d() { - return { - name: 'MissingObjectIDError', - message: - "All objects must have an unique objectID (like a primary key) to be valid. Algolia is also able to generate objectIDs automatically but *it's not recommended*. To do it, use the `{'autoGenerateObjectIDIfNotExist': true}` option." - }; - } - function l() { - return { - name: 'ObjectNotFoundError', - message: 'Object not found.' - }; - } - function u() { - return { - name: 'ValidUntilNotFoundError', - message: 'ValidUntil not found in given secured api key.' - }; - } - const p = (e) => (t, r) => { - const { queryParameters: a, ...n } = r || {}, - i = { - acl: t, - ...(void 0 !== a ? { queryParameters: a } : {}) - }; - return (0, s.createWaitablePromise)( - e.transporter.write( - { method: o.N.Post, path: '1/keys', data: i }, - n - ), - (t, r) => - (0, s.createRetryablePromise)((s) => - O(e)(t.key, r).catch((e) => { - if (404 !== e.status) throw e; - return s(); - }) - ) - ); - }, - m = (e) => (t, r, s) => { - const n = (0, a.createMappedRequestOptions)(s); - return ( - (n.queryParameters['X-Algolia-User-ID'] = t), - e.transporter.write( - { - method: o.N.Post, - path: '1/clusters/mapping', - data: { cluster: r } - }, - n - ) - ); - }, - h = (e) => (t, r, s) => - e.transporter.write( - { - method: o.N.Post, - path: '1/clusters/mapping/batch', - data: { users: t, cluster: r } - }, - s - ), - y = (e) => (t, r, a) => - (0, s.createWaitablePromise)( - e.transporter.write( - { - method: o.N.Post, - path: (0, s.encode)('1/indexes/%s/operation', t), - data: { operation: 'copy', destination: r } - }, - a - ), - (r, s) => - x(e)(t, { methods: { waitTask: De } }).waitTask(r.taskID, s) - ), - g = (e) => (t, r, s) => y(e)(t, r, { ...s, scope: [Ae.Rules] }), - b = (e) => (t, r, s) => - y(e)(t, r, { ...s, scope: [Ae.Settings] }), - f = (e) => (t, r, s) => - y(e)(t, r, { ...s, scope: [Ae.Synonyms] }), - P = (e) => (t, r) => - (0, s.createWaitablePromise)( - e.transporter.write( - { method: o.N.Delete, path: (0, s.encode)('1/keys/%s', t) }, - r - ), - (r, a) => - (0, s.createRetryablePromise)((r) => - O(e)(t, a) - .then(r) - .catch((e) => { - if (404 !== e.status) throw e; - }) - ) - ), - I = () => (e, t) => { - const r = (0, a.serializeQueryParameters)(t), - s = (0, n.createHmac)('sha256', e).update(r).digest('hex'); - return Buffer.from(s + r).toString('base64'); - }, - O = (e) => (t, r) => - e.transporter.read( - { method: o.N.Get, path: (0, s.encode)('1/keys/%s', t) }, - r - ), - j = (e) => (t) => - e.transporter.read({ method: o.N.Get, path: '1/logs' }, t), - v = () => (e) => { - const t = Buffer.from(e, 'base64') - .toString('ascii') - .match(/validUntil=(\d+)/); - if (null === t) - throw { - name: 'ValidUntilNotFoundError', - message: 'ValidUntil not found in given secured api key.' - }; - return ( - parseInt(t[1], 10) - Math.round(new Date().getTime() / 1e3) - ); - }, - N = (e) => (t) => - e.transporter.read( - { method: o.N.Get, path: '1/clusters/mapping/top' }, - t - ), - S = (e) => (t, r) => - e.transporter.read( - { - method: o.N.Get, - path: (0, s.encode)('1/clusters/mapping/%s', t) - }, - r - ), - D = (e) => (t) => { - const { retrieveMappings: r, ...s } = t || {}; - return ( - !0 === r && (s.getClusters = !0), - e.transporter.read( - { method: o.N.Get, path: '1/clusters/mapping/pending' }, - s - ) - ); - }, - x = - (e) => - (t, r = {}) => { - const a = { - transporter: e.transporter, - appId: e.appId, - indexName: t - }; - return (0, s.addMethods)(a, r.methods); - }, - w = (e) => (t) => - e.transporter.read({ method: o.N.Get, path: '1/keys' }, t), - A = (e) => (t) => - e.transporter.read({ method: o.N.Get, path: '1/clusters' }, t), - q = (e) => (t) => - e.transporter.read({ method: o.N.Get, path: '1/indexes' }, t), - R = (e) => (t) => - e.transporter.read( - { method: o.N.Get, path: '1/clusters/mapping' }, - t - ), - T = (e) => (t, r, a) => - (0, s.createWaitablePromise)( - e.transporter.write( - { - method: o.N.Post, - path: (0, s.encode)('1/indexes/%s/operation', t), - data: { operation: 'move', destination: r } - }, - a - ), - (r, s) => - x(e)(t, { methods: { waitTask: De } }).waitTask(r.taskID, s) - ), - k = (e) => (t, r) => - (0, s.createWaitablePromise)( - e.transporter.write( - { - method: o.N.Post, - path: '1/indexes/*/batch', - data: { requests: t } - }, - r - ), - (t, r) => - Promise.all( - Object.keys(t.taskID).map((s) => - x(e)(s, { methods: { waitTask: De } }).waitTask( - t.taskID[s], - r - ) - ) - ) - ), - U = (e) => (t, r) => - e.transporter.read( - { - method: o.N.Post, - path: '1/indexes/*/objects', - data: { requests: t } - }, - r - ), - C = (e) => (t, r) => { - const s = t.map((e) => ({ - ...e, - params: (0, a.serializeQueryParameters)(e.params || {}) - })); - return e.transporter.read( - { - method: o.N.Post, - path: '1/indexes/*/queries', - data: { requests: s }, - cacheable: !0 - }, - r - ); - }, - E = (e) => (t, r) => - Promise.all( - t.map((t) => { - const { facetName: s, facetQuery: a, ...o } = t.params; - return x(e)(t.indexName, { - methods: { searchForFacetValues: je } - }).searchForFacetValues(s, a, { ...r, ...o }); - }) - ), - M = (e) => (t, r) => { - const s = (0, a.createMappedRequestOptions)(r); - return ( - (s.queryParameters['X-Algolia-User-ID'] = t), - e.transporter.write( - { method: o.N.Delete, path: '1/clusters/mapping' }, - s - ) - ); - }, - W = (e) => (t, r) => - (0, s.createWaitablePromise)( - e.transporter.write( - { - method: o.N.Post, - path: (0, s.encode)('1/keys/%s/restore', t) - }, - r - ), - (r, a) => - (0, s.createRetryablePromise)((r) => - O(e)(t, a).catch((e) => { - if (404 !== e.status) throw e; - return r(); - }) - ) - ), - F = (e) => (t, r) => - e.transporter.read( - { - method: o.N.Post, - path: '1/clusters/mapping/search', - data: { query: t } - }, - r - ), - G = (e) => (t, r) => { - const a = Object.assign({}, r), - { queryParameters: n, ...i } = r || {}, - c = n ? { queryParameters: n } : {}, - d = [ - 'acl', - 'indexes', - 'referers', - 'restrictSources', - 'queryParameters', - 'description', - 'maxQueriesPerIPPerHour', - 'maxHitsPerQuery' - ]; - return (0, s.createWaitablePromise)( - e.transporter.write( - { - method: o.N.Put, - path: (0, s.encode)('1/keys/%s', t), - data: c - }, - i - ), - (r, o) => - (0, s.createRetryablePromise)((r) => - O(e)(t, o).then((e) => - ((e) => - Object.keys(a) - .filter((e) => -1 !== d.indexOf(e)) - .every((t) => e[t] === a[t]))(e) - ? Promise.resolve() - : r() - ) - ) - ); - }, - H = (e) => (t, r) => - (0, s.createWaitablePromise)( - e.transporter.write( - { - method: o.N.Post, - path: (0, s.encode)('1/indexes/%s/batch', e.indexName), - data: { requests: t } - }, - r - ), - (t, r) => De(e)(t.taskID, r) - ), - K = (e) => (t) => - i({ - ...t, - shouldStop: (e) => void 0 === e.cursor, - request: (r) => - e.transporter.read( - { - method: o.N.Post, - path: (0, s.encode)('1/indexes/%s/browse', e.indexName), - data: r - }, - t - ) - }), - B = (e) => (t) => { - const r = { hitsPerPage: 1e3, ...t }; - return i({ - ...r, - shouldStop: (e) => e.hits.length < r.hitsPerPage, - request: (t) => - ve(e)('', { ...r, ...t }).then((e) => ({ - ...e, - hits: e.hits.map((e) => (delete e._highlightResult, e)) - })) - }); - }, - z = (e) => (t) => { - const r = { hitsPerPage: 1e3, ...t }; - return i({ - ...r, - shouldStop: (e) => e.hits.length < r.hitsPerPage, - request: (t) => - Ne(e)('', { ...r, ...t }).then((e) => ({ - ...e, - hits: e.hits.map((e) => (delete e._highlightResult, e)) - })) - }); - }, - V = (e) => (t, r, a) => { - const { batchSize: o, ...n } = a || {}, - i = { taskIDs: [], objectIDs: [] }, - c = (s = 0) => { - const a = []; - let d; - for ( - d = s; - d < t.length && (a.push(t[d]), a.length !== (o || 1e3)); - d++ - ); - return 0 === a.length - ? Promise.resolve(i) - : H(e)( - a.map((e) => ({ action: r, body: e })), - n - ).then( - (e) => ( - (i.objectIDs = i.objectIDs.concat(e.objectIDs)), - i.taskIDs.push(e.taskID), - d++, - c(d) - ) - ); - }; - return (0, s.createWaitablePromise)(c(), (t, r) => - Promise.all(t.taskIDs.map((t) => De(e)(t, r))) - ); - }, - $ = (e) => (t) => - (0, s.createWaitablePromise)( - e.transporter.write( - { - method: o.N.Post, - path: (0, s.encode)('1/indexes/%s/clear', e.indexName) - }, - t - ), - (t, r) => De(e)(t.taskID, r) - ), - L = (e) => (t) => { - const { forwardToReplicas: r, ...n } = t || {}, - i = (0, a.createMappedRequestOptions)(n); - return ( - r && (i.queryParameters.forwardToReplicas = 1), - (0, s.createWaitablePromise)( - e.transporter.write( - { - method: o.N.Post, - path: (0, s.encode)( - '1/indexes/%s/rules/clear', - e.indexName - ) - }, - i - ), - (t, r) => De(e)(t.taskID, r) - ) - ); - }, - Q = (e) => (t) => { - const { forwardToReplicas: r, ...n } = t || {}, - i = (0, a.createMappedRequestOptions)(n); - return ( - r && (i.queryParameters.forwardToReplicas = 1), - (0, s.createWaitablePromise)( - e.transporter.write( - { - method: o.N.Post, - path: (0, s.encode)( - '1/indexes/%s/synonyms/clear', - e.indexName - ) - }, - i - ), - (t, r) => De(e)(t.taskID, r) - ) - ); - }, - J = (e) => (t, r) => - (0, s.createWaitablePromise)( - e.transporter.write( - { - method: o.N.Post, - path: (0, s.encode)( - '1/indexes/%s/deleteByQuery', - e.indexName - ), - data: t - }, - r - ), - (t, r) => De(e)(t.taskID, r) - ), - _ = (e) => (t) => - (0, s.createWaitablePromise)( - e.transporter.write( - { - method: o.N.Delete, - path: (0, s.encode)('1/indexes/%s', e.indexName) - }, - t - ), - (t, r) => De(e)(t.taskID, r) - ), - X = (e) => (t, r) => - (0, s.createWaitablePromise)( - Y(e)([t], r).then((e) => ({ taskID: e.taskIDs[0] })), - (t, r) => De(e)(t.taskID, r) - ), - Y = (e) => (t, r) => { - const s = t.map((e) => ({ objectID: e })); - return V(e)(s, we.DeleteObject, r); - }, - Z = (e) => (t, r) => { - const { forwardToReplicas: n, ...i } = r || {}, - c = (0, a.createMappedRequestOptions)(i); - return ( - n && (c.queryParameters.forwardToReplicas = 1), - (0, s.createWaitablePromise)( - e.transporter.write( - { - method: o.N.Delete, - path: (0, s.encode)( - '1/indexes/%s/rules/%s', - e.indexName, - t - ) - }, - c - ), - (t, r) => De(e)(t.taskID, r) - ) - ); - }, - ee = (e) => (t, r) => { - const { forwardToReplicas: n, ...i } = r || {}, - c = (0, a.createMappedRequestOptions)(i); - return ( - n && (c.queryParameters.forwardToReplicas = 1), - (0, s.createWaitablePromise)( - e.transporter.write( - { - method: o.N.Delete, - path: (0, s.encode)( - '1/indexes/%s/synonyms/%s', - e.indexName, - t - ) - }, - c - ), - (t, r) => De(e)(t.taskID, r) - ) - ); - }, - te = (e) => (t) => - ie(e)(t) - .then(() => !0) - .catch((e) => { - if (404 !== e.status) throw e; - return !1; - }), - re = (e) => (t, r) => { - const { query: s, paginate: a, ...o } = r || {}; - let n = 0; - const i = () => - Oe(e)(s || '', { ...o, page: n }).then((e) => { - for (const [r, s] of Object.entries(e.hits)) - if (t(s)) - return { - object: s, - position: parseInt(r, 10), - page: n - }; - if ((n++, !1 === a || n >= e.nbPages)) - throw { - name: 'ObjectNotFoundError', - message: 'Object not found.' - }; - return i(); - }); - return i(); - }, - se = (e) => (t, r) => - e.transporter.read( - { - method: o.N.Get, - path: (0, s.encode)('1/indexes/%s/%s', e.indexName, t) - }, - r - ), - ae = () => (e, t) => { - for (const [r, s] of Object.entries(e.hits)) - if (s.objectID === t) return parseInt(r, 10); - return -1; - }, - oe = (e) => (t, r) => { - const { attributesToRetrieve: s, ...a } = r || {}, - n = t.map((t) => ({ - indexName: e.indexName, - objectID: t, - ...(s ? { attributesToRetrieve: s } : {}) - })); - return e.transporter.read( - { - method: o.N.Post, - path: '1/indexes/*/objects', - data: { requests: n } - }, - a - ); - }, - ne = (e) => (t, r) => - e.transporter.read( - { - method: o.N.Get, - path: (0, s.encode)('1/indexes/%s/rules/%s', e.indexName, t) - }, - r - ), - ie = (e) => (t) => - e.transporter.read( - { - method: o.N.Get, - path: (0, s.encode)('1/indexes/%s/settings', e.indexName), - data: { getVersion: 2 } - }, - t - ), - ce = (e) => (t, r) => - e.transporter.read( - { - method: o.N.Get, - path: (0, s.encode)( - '1/indexes/%s/synonyms/%s', - e.indexName, - t - ) - }, - r - ), - de = (e) => (t, r) => - e.transporter.read( - { - method: o.N.Get, - path: (0, s.encode)( - '1/indexes/%s/task/%s', - e.indexName, - t.toString() - ) - }, - r - ), - le = (e) => (t, r) => - (0, s.createWaitablePromise)( - ue(e)([t], r).then((e) => ({ - objectID: e.objectIDs[0], - taskID: e.taskIDs[0] - })), - (t, r) => De(e)(t.taskID, r) - ), - ue = (e) => (t, r) => { - const { createIfNotExists: s, ...a } = r || {}, - o = s - ? we.PartialUpdateObject - : we.PartialUpdateObjectNoCreate; - return V(e)(t, o, a); - }, - pe = (e) => (t, r) => { - const { - safe: a, - autoGenerateObjectIDIfNotExist: n, - batchSize: i, - ...c - } = r || {}, - d = (t, r, a, n) => - (0, s.createWaitablePromise)( - e.transporter.write( - { - method: o.N.Post, - path: (0, s.encode)('1/indexes/%s/operation', t), - data: { operation: a, destination: r } - }, - n - ), - (t, r) => De(e)(t.taskID, r) - ), - l = Math.random().toString(36).substring(7), - u = `${e.indexName}_tmp_${l}`, - p = ge({ - appId: e.appId, - transporter: e.transporter, - indexName: u - }); - let m = []; - const h = d(e.indexName, u, 'copy', { - ...c, - scope: ['settings', 'synonyms', 'rules'] - }); - m.push(h); - const y = (a ? h.wait(c) : h) - .then(() => { - const e = p(t, { - ...c, - autoGenerateObjectIDIfNotExist: n, - batchSize: i - }); - return m.push(e), a ? e.wait(c) : e; - }) - .then(() => { - const t = d(u, e.indexName, 'move', c); - return m.push(t), a ? t.wait(c) : t; - }) - .then(() => Promise.all(m)) - .then(([e, t, r]) => ({ - objectIDs: t.objectIDs, - taskIDs: [e.taskID, ...t.taskIDs, r.taskID] - })); - return (0, s.createWaitablePromise)(y, (e, t) => - Promise.all(m.map((e) => e.wait(t))) - ); - }, - me = (e) => (t, r) => fe(e)(t, { ...r, clearExistingRules: !0 }), - he = (e) => (t, r) => - Ie(e)(t, { ...r, replaceExistingSynonyms: !0 }), - ye = (e) => (t, r) => - (0, s.createWaitablePromise)( - ge(e)([t], r).then((e) => ({ - objectID: e.objectIDs[0], - taskID: e.taskIDs[0] - })), - (t, r) => De(e)(t.taskID, r) - ), - ge = (e) => (t, r) => { - const { autoGenerateObjectIDIfNotExist: a, ...o } = r || {}, - n = a ? we.AddObject : we.UpdateObject; - if (n === we.UpdateObject) - for (const e of t) - if (void 0 === e.objectID) - return (0, s.createWaitablePromise)( - Promise.reject({ - name: 'MissingObjectIDError', - message: - "All objects must have an unique objectID (like a primary key) to be valid. Algolia is also able to generate objectIDs automatically but *it's not recommended*. To do it, use the `{'autoGenerateObjectIDIfNotExist': true}` option." - }) - ); - return V(e)(t, n, o); - }, - be = (e) => (t, r) => fe(e)([t], r), - fe = (e) => (t, r) => { - const { - forwardToReplicas: n, - clearExistingRules: i, - ...c - } = r || {}, - d = (0, a.createMappedRequestOptions)(c); - return ( - n && (d.queryParameters.forwardToReplicas = 1), - i && (d.queryParameters.clearExistingRules = 1), - (0, s.createWaitablePromise)( - e.transporter.write( - { - method: o.N.Post, - path: (0, s.encode)( - '1/indexes/%s/rules/batch', - e.indexName - ), - data: t - }, - d - ), - (t, r) => De(e)(t.taskID, r) - ) - ); - }, - Pe = (e) => (t, r) => Ie(e)([t], r), - Ie = (e) => (t, r) => { - const { - forwardToReplicas: n, - replaceExistingSynonyms: i, - ...c - } = r || {}, - d = (0, a.createMappedRequestOptions)(c); - return ( - n && (d.queryParameters.forwardToReplicas = 1), - i && (d.queryParameters.replaceExistingSynonyms = 1), - (0, s.createWaitablePromise)( - e.transporter.write( - { - method: o.N.Post, - path: (0, s.encode)( - '1/indexes/%s/synonyms/batch', - e.indexName - ), - data: t - }, - d - ), - (t, r) => De(e)(t.taskID, r) - ) - ); - }, - Oe = (e) => (t, r) => - e.transporter.read( - { - method: o.N.Post, - path: (0, s.encode)('1/indexes/%s/query', e.indexName), - data: { query: t }, - cacheable: !0 - }, - r - ), - je = (e) => (t, r, a) => - e.transporter.read( - { - method: o.N.Post, - path: (0, s.encode)( - '1/indexes/%s/facets/%s/query', - e.indexName, - t - ), - data: { facetQuery: r }, - cacheable: !0 - }, - a - ), - ve = (e) => (t, r) => - e.transporter.read( - { - method: o.N.Post, - path: (0, s.encode)( - '1/indexes/%s/rules/search', - e.indexName - ), - data: { query: t } - }, - r - ), - Ne = (e) => (t, r) => - e.transporter.read( - { - method: o.N.Post, - path: (0, s.encode)( - '1/indexes/%s/synonyms/search', - e.indexName - ), - data: { query: t } - }, - r - ), - Se = (e) => (t, r) => { - const { forwardToReplicas: n, ...i } = r || {}, - c = (0, a.createMappedRequestOptions)(i); - return ( - n && (c.queryParameters.forwardToReplicas = 1), - (0, s.createWaitablePromise)( - e.transporter.write( - { - method: o.N.Put, - path: (0, s.encode)( - '1/indexes/%s/settings', - e.indexName - ), - data: t - }, - c - ), - (t, r) => De(e)(t.taskID, r) - ) - ); - }, - De = (e) => (t, r) => - (0, s.createRetryablePromise)((s) => - de(e)(t, r).then((e) => - 'published' !== e.status ? s() : void 0 - ) - ), - xe = { - AddObject: 'addObject', - Analytics: 'analytics', - Browser: 'browse', - DeleteIndex: 'deleteIndex', - DeleteObject: 'deleteObject', - EditSettings: 'editSettings', - ListIndexes: 'listIndexes', - Logs: 'logs', - Recommendation: 'recommendation', - Search: 'search', - SeeUnretrievableAttributes: 'seeUnretrievableAttributes', - Settings: 'settings', - Usage: 'usage' - }, - we = { - AddObject: 'addObject', - UpdateObject: 'updateObject', - PartialUpdateObject: 'partialUpdateObject', - PartialUpdateObjectNoCreate: 'partialUpdateObjectNoCreate', - DeleteObject: 'deleteObject' - }, - Ae = { - Settings: 'settings', - Synonyms: 'synonyms', - Rules: 'rules' - }, - qe = { None: 'none', StopIfEnoughMatches: 'stopIfEnoughMatches' }, - Re = { - Synonym: 'synonym', - OneWaySynonym: 'oneWaySynonym', - AltCorrection1: 'altCorrection1', - AltCorrection2: 'altCorrection2', - Placeholder: 'placeholder' - }; - }, - 45: (e, t, r) => { - 'use strict'; - function s() { - return { - debug: (e, t) => Promise.resolve(), - info: (e, t) => Promise.resolve(), - error: (e, t) => Promise.resolve() - }; - } - r.r(t), - r.d(t, { LogLevelEnum: () => a, createNullLogger: () => s }); - const a = { Debug: 1, Info: 2, Error: 3 }; - }, - 541: (e, t, r) => { - 'use strict'; - r.d(t, { N: () => s }); - const s = { - Delete: 'DELETE', - Get: 'GET', - Post: 'POST', - Put: 'PUT' - }; - }, - 487: (e, t, r) => { - 'use strict'; - r.r(t), r.d(t, { createNodeHttpRequester: () => n }); - const s = require('http'), - a = require('https'), - o = require('url'); - function n() { - const e = { keepAlive: !0 }, - t = new s.Agent(e), - r = new a.Agent(e); - return { - send: (e) => - new Promise((n) => { - const i = (0, o.parse)(e.url), - c = - null === i.query - ? i.pathname - : `${i.pathname}?${i.query}`, - d = { - agent: 'https:' === i.protocol ? r : t, - hostname: i.hostname, - path: c, - method: e.method, - headers: e.headers, - ...(void 0 !== i.port ? { port: i.port || '' } : {}) - }, - l = ('https:' === i.protocol ? a : s).request(d, (e) => { - let t = ''; - e.on('data', (e) => (t += e)), - e.on('end', () => { - clearTimeout(p), - clearTimeout(m), - n({ - status: e.statusCode || 0, - content: t, - isTimedOut: !1 - }); - }); - }), - u = (e, t) => - setTimeout(() => { - l.abort(), - n({ status: 0, content: t, isTimedOut: !0 }); - }, 1e3 * e), - p = u(e.connectTimeout, 'Connection timeout'); - let m; - l.on('error', (e) => { - clearTimeout(p), - clearTimeout(m), - n({ status: 0, content: e.message, isTimedOut: !1 }); - }), - l.once('response', () => { - clearTimeout(p), - (m = u(e.responseTimeout, 'Socket timeout')); - }), - void 0 !== e.data && l.write(e.data), - l.end(); - }), - destroy: () => (t.destroy(), r.destroy(), Promise.resolve()) - }; - } - }, - 858: (e, t, r) => { - 'use strict'; - r.r(t), - r.d(t, { - CallEnum: () => o, - HostStatusEnum: () => n, - createApiError: () => j, - createDeserializationError: () => v, - createMappedRequestOptions: () => a, - createRetryError: () => N, - createStatefulHost: () => i, - createStatelessHost: () => l, - createTransporter: () => p, - createUserAgent: () => m, - deserializeFailure: () => y, - deserializeSuccess: () => h, - isStatefulHostTimeouted: () => d, - isStatefulHostUp: () => c, - serializeData: () => f, - serializeHeaders: () => P, - serializeQueryParameters: () => b, - serializeUrl: () => g, - stackFrameWithoutCredentials: () => O, - stackTraceWithoutCredentials: () => I - }); - var s = r(541); - function a(e, t) { - const r = e || {}, - s = r.data || {}; - return ( - Object.keys(r).forEach((e) => { - -1 === - [ - 'timeout', - 'headers', - 'queryParameters', - 'data', - 'cacheable' - ].indexOf(e) && (s[e] = r[e]); - }), - { - data: Object.entries(s).length > 0 ? s : void 0, - timeout: r.timeout || t, - headers: r.headers || {}, - queryParameters: r.queryParameters || {}, - cacheable: r.cacheable - } - ); - } - const o = { Read: 1, Write: 2, Any: 3 }, - n = { Up: 1, Down: 2, Timeouted: 3 }; - function i(e, t = n.Up) { - return { ...e, status: t, lastUpdate: Date.now() }; - } - function c(e) { - return e.status === n.Up || Date.now() - e.lastUpdate > 12e4; - } - function d(e) { - return ( - e.status === n.Timeouted && Date.now() - e.lastUpdate <= 12e4 - ); - } - function l(e) { - return { - protocol: e.protocol || 'https', - url: e.url, - accept: e.accept || o.Any - }; - } - function u(e, t, r, a) { - const o = [], - u = f(r, a), - p = P(e, a), - m = r.method, - b = r.method !== s.N.Get ? {} : { ...r.data, ...a.data }, - j = { - 'x-algolia-agent': e.userAgent.value, - ...e.queryParameters, - ...b, - ...a.queryParameters - }; - let v = 0; - const S = (t, s) => { - const c = t.pop(); - if (void 0 === c) throw N(I(o)); - const d = { - data: u, - headers: p, - method: m, - url: g(c, r.path, j), - connectTimeout: s(v, e.timeouts.connect), - responseTimeout: s(v, a.timeout) - }, - l = (e) => { - const r = { - request: d, - response: e, - host: c, - triesLeft: t.length - }; - return o.push(r), r; - }, - b = { - onSucess: (e) => h(e), - onRetry(r) { - const a = l(r); - return ( - r.isTimedOut && v++, - Promise.all([ - e.logger.info('Retryable failure', O(a)), - e.hostsCache.set( - c, - i(c, r.isTimedOut ? n.Timeouted : n.Down) - ) - ]).then(() => S(t, s)) - ); - }, - onFail(e) { - throw (l(e), y(e, I(o))); - } - }; - return e.requester.send(d).then((e) => - ((e, t) => - ((e) => { - const t = e.status; - return ( - e.isTimedOut || - (({ isTimedOut: e, status: t }) => !e && 0 == ~~t)(e) || - (2 != ~~(t / 100) && 4 != ~~(t / 100)) - ); - })(e) - ? t.onRetry(e) - : (({ status: e }) => 2 == ~~(e / 100))(e) - ? t.onSucess(e) - : t.onFail(e))(e, b) - ); - }; - return (function (e, t) { - return Promise.all( - t.map((t) => e.get(t, () => Promise.resolve(i(t)))) - ).then((e) => { - const r = e.filter((e) => c(e)), - s = e.filter((e) => d(e)), - a = [...r, ...s]; - return { - getTimeout: (e, t) => - (0 === s.length && 0 === e ? 1 : s.length + 3 + e) * t, - statelessHosts: a.length > 0 ? a.map((e) => l(e)) : t - }; - }); - })(e.hostsCache, t).then((e) => - S([...e.statelessHosts].reverse(), e.getTimeout) - ); - } - function p(e) { - const { - hostsCache: t, - logger: r, - requester: s, - requestsCache: n, - responsesCache: i, - timeouts: c, - userAgent: d, - hosts: p, - queryParameters: m, - headers: h - } = e, - y = { - hostsCache: t, - logger: r, - requester: s, - requestsCache: n, - responsesCache: i, - timeouts: c, - userAgent: d, - headers: h, - queryParameters: m, - hosts: p.map((e) => l(e)), - read(e, t) { - const r = a(t, y.timeouts.read), - s = () => - u( - y, - y.hosts.filter((e) => 0 != (e.accept & o.Read)), - e, - r - ); - if ( - !0 !== - (void 0 !== r.cacheable ? r.cacheable : e.cacheable) - ) - return s(); - const n = { - request: e, - mappedRequestOptions: r, - transporter: { - queryParameters: y.queryParameters, - headers: y.headers - } - }; - return y.responsesCache.get( - n, - () => - y.requestsCache.get(n, () => - y.requestsCache - .set(n, s()) - .then( - (e) => - Promise.all([y.requestsCache.delete(n), e]), - (e) => - Promise.all([ - y.requestsCache.delete(n), - Promise.reject(e) - ]) - ) - .then(([e, t]) => t) - ), - { miss: (e) => y.responsesCache.set(n, e) } - ); - }, - write: (e, t) => - u( - y, - y.hosts.filter((e) => 0 != (e.accept & o.Write)), - e, - a(t, y.timeouts.write) - ) - }; - return y; - } - function m(e) { - const t = { - value: `Algolia for JavaScript (${e})`, - add(e) { - const r = `; ${e.segment}${ - void 0 !== e.version ? ` (${e.version})` : '' - }`; - return ( - -1 === t.value.indexOf(r) && (t.value = `${t.value}${r}`), t - ); - } - }; - return t; - } - function h(e) { - try { - return JSON.parse(e.content); - } catch (t) { - throw v(t.message, e); - } - } - function y({ content: e, status: t }, r) { - let s = e; - try { - s = JSON.parse(e).message; - } catch (e) {} - return j(s, t, r); - } - function g(e, t, r) { - const s = b(r); - let a = `${e.protocol}://${e.url}/${ - '/' === t.charAt(0) ? t.substr(1) : t - }`; - return s.length && (a += '?' + s), a; - } - function b(e) { - return Object.keys(e) - .map((t) => { - return (function (e, ...t) { - let r = 0; - return e.replace(/%s/g, () => encodeURIComponent(t[r++])); - })( - '%s=%s', - t, - ((r = e[t]), - '[object Object]' === Object.prototype.toString.call(r) || - '[object Array]' === Object.prototype.toString.call(r) - ? JSON.stringify(e[t]) - : e[t]) - ); - var r; - }) - .join('&'); - } - function f(e, t) { - if ( - e.method === s.N.Get || - (void 0 === e.data && void 0 === t.data) - ) - return; - const r = Array.isArray(e.data) - ? e.data - : { ...e.data, ...t.data }; - return JSON.stringify(r); - } - function P(e, t) { - const r = { ...e.headers, ...t.headers }, - s = {}; - return ( - Object.keys(r).forEach((e) => { - const t = r[e]; - s[e.toLowerCase()] = t; - }), - s - ); - } - function I(e) { - return e.map((e) => O(e)); - } - function O(e) { - const t = e.request.headers['x-algolia-api-key'] - ? { 'x-algolia-api-key': '*****' } - : {}; - return { - ...e, - request: { - ...e.request, - headers: { ...e.request.headers, ...t } - } - }; - } - function j(e, t, r) { - return { - name: 'ApiError', - message: e, - status: t, - transporterStackTrace: r - }; - } - function v(e, t) { - return { name: 'DeserializationError', message: e, response: t }; - } - function N(e) { - return { - name: 'RetryError', - message: - 'Unreachable hosts - your application id may be incorrect. If the error persists, contact support@algolia.com.', - transporterStackTrace: e - }; - } - }, - 774: (e, t, r) => { - 'use strict'; - var s = r(469), - a = r(712), - o = r(223), - n = r(757), - i = r(103), - c = r(790), - d = r(45), - l = r(487), - u = r(858); - function p(e, t, r) { - const p = { - appId: e, - apiKey: t, - timeouts: { connect: 2, read: 5, write: 30 }, - requester: l.createNodeHttpRequester(), - logger: d.createNullLogger(), - responsesCache: s.createNullCache(), - requestsCache: s.createNullCache(), - hostsCache: a.createInMemoryCache(), - userAgent: u - .createUserAgent(n.version) - .add({ segment: 'Node.js', version: process.versions.node }) - }; - return c.createSearchClient({ - ...p, - ...r, - methods: { - search: c.multipleQueries, - searchForFacetValues: c.multipleSearchForFacetValues, - multipleBatch: c.multipleBatch, - multipleGetObjects: c.multipleGetObjects, - multipleQueries: c.multipleQueries, - copyIndex: c.copyIndex, - copySettings: c.copySettings, - copyRules: c.copyRules, - copySynonyms: c.copySynonyms, - moveIndex: c.moveIndex, - listIndices: c.listIndices, - getLogs: c.getLogs, - listClusters: c.listClusters, - multipleSearchForFacetValues: c.multipleSearchForFacetValues, - getApiKey: c.getApiKey, - addApiKey: c.addApiKey, - listApiKeys: c.listApiKeys, - updateApiKey: c.updateApiKey, - deleteApiKey: c.deleteApiKey, - restoreApiKey: c.restoreApiKey, - assignUserID: c.assignUserID, - assignUserIDs: c.assignUserIDs, - getUserID: c.getUserID, - searchUserIDs: c.searchUserIDs, - listUserIDs: c.listUserIDs, - getTopUserIDs: c.getTopUserIDs, - removeUserID: c.removeUserID, - hasPendingMappings: c.hasPendingMappings, - generateSecuredApiKey: c.generateSecuredApiKey, - getSecuredApiKeyRemainingValidity: - c.getSecuredApiKeyRemainingValidity, - destroy: n.destroy, - initIndex: (e) => (t) => - c.initIndex(e)(t, { - methods: { - batch: c.batch, - delete: c.deleteIndex, - getObject: c.getObject, - getObjects: c.getObjects, - saveObject: c.saveObject, - saveObjects: c.saveObjects, - search: c.search, - searchForFacetValues: c.searchForFacetValues, - waitTask: c.waitTask, - setSettings: c.setSettings, - getSettings: c.getSettings, - partialUpdateObject: c.partialUpdateObject, - partialUpdateObjects: c.partialUpdateObjects, - deleteObject: c.deleteObject, - deleteObjects: c.deleteObjects, - deleteBy: c.deleteBy, - clearObjects: c.clearObjects, - browseObjects: c.browseObjects, - getObjectPosition: c.getObjectPosition, - findObject: c.findObject, - exists: c.exists, - saveSynonym: c.saveSynonym, - saveSynonyms: c.saveSynonyms, - getSynonym: c.getSynonym, - searchSynonyms: c.searchSynonyms, - browseSynonyms: c.browseSynonyms, - deleteSynonym: c.deleteSynonym, - clearSynonyms: c.clearSynonyms, - replaceAllObjects: c.replaceAllObjects, - replaceAllSynonyms: c.replaceAllSynonyms, - searchRules: c.searchRules, - getRule: c.getRule, - deleteRule: c.deleteRule, - saveRule: c.saveRule, - saveRules: c.saveRules, - replaceAllRules: c.replaceAllRules, - browseRules: c.browseRules, - clearRules: c.clearRules - } - }), - initAnalytics: () => (e) => - o.createAnalyticsClient({ - ...p, - ...e, - methods: { - addABTest: o.addABTest, - getABTest: o.getABTest, - getABTests: o.getABTests, - stopABTest: o.stopABTest, - deleteABTest: o.deleteABTest - } - }), - initRecommendation: () => (e) => - i.createRecommendationClient({ - ...p, - ...e, - methods: { - getPersonalizationStrategy: - i.getPersonalizationStrategy, - setPersonalizationStrategy: i.setPersonalizationStrategy - } - }) - } - }); - } - (p.version = n.version), (e.exports = p); - }, - 410: (e, t, r) => { - const s = r(774); - (e.exports = s), (e.exports.default = s); - } - }, - t = {}; - function r(s) { - if (t[s]) return t[s].exports; - var a = (t[s] = { exports: {} }); - return e[s](a, a.exports, r), a.exports; - } - return ( - (r.n = (e) => { - var t = e && e.__esModule ? () => e.default : () => e; - return r.d(t, { a: t }), t; - }), - (r.d = (e, t) => { - for (var s in t) - r.o(t, s) && - !r.o(e, s) && - Object.defineProperty(e, s, { enumerable: !0, get: t[s] }); - }), - (r.o = (e, t) => Object.prototype.hasOwnProperty.call(e, t)), - (r.r = (e) => { - 'undefined' != typeof Symbol && - Symbol.toStringTag && - Object.defineProperty(e, Symbol.toStringTag, { value: 'Module' }), - Object.defineProperty(e, '__esModule', { value: !0 }); - }), - r(958) - ); - })(); - return plugin; - } +name: "@yarnpkg/plugin-typescript", +factory: function (require) { +var plugin=(()=>{var Ft=Object.create,H=Object.defineProperty,Bt=Object.defineProperties,Kt=Object.getOwnPropertyDescriptor,zt=Object.getOwnPropertyDescriptors,Gt=Object.getOwnPropertyNames,Q=Object.getOwnPropertySymbols,$t=Object.getPrototypeOf,ne=Object.prototype.hasOwnProperty,De=Object.prototype.propertyIsEnumerable;var Re=(e,t,r)=>t in e?H(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,u=(e,t)=>{for(var r in t||(t={}))ne.call(t,r)&&Re(e,r,t[r]);if(Q)for(var r of Q(t))De.call(t,r)&&Re(e,r,t[r]);return e},g=(e,t)=>Bt(e,zt(t)),Lt=e=>H(e,"__esModule",{value:!0});var R=(e,t)=>{var r={};for(var s in e)ne.call(e,s)&&t.indexOf(s)<0&&(r[s]=e[s]);if(e!=null&&Q)for(var s of Q(e))t.indexOf(s)<0&&De.call(e,s)&&(r[s]=e[s]);return r};var I=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Vt=(e,t)=>{for(var r in t)H(e,r,{get:t[r],enumerable:!0})},Qt=(e,t,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of Gt(t))!ne.call(e,s)&&s!=="default"&&H(e,s,{get:()=>t[s],enumerable:!(r=Kt(t,s))||r.enumerable});return e},C=e=>Qt(Lt(H(e!=null?Ft($t(e)):{},"default",e&&e.__esModule&&"default"in e?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e);var xe=I(J=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});function _(e){let t=[...e.caches],r=t.shift();return r===void 0?ve():{get(s,n,a={miss:()=>Promise.resolve()}){return r.get(s,n,a).catch(()=>_({caches:t}).get(s,n,a))},set(s,n){return r.set(s,n).catch(()=>_({caches:t}).set(s,n))},delete(s){return r.delete(s).catch(()=>_({caches:t}).delete(s))},clear(){return r.clear().catch(()=>_({caches:t}).clear())}}}function ve(){return{get(e,t,r={miss:()=>Promise.resolve()}){return t().then(n=>Promise.all([n,r.miss(n)])).then(([n])=>n)},set(e,t){return Promise.resolve(t)},delete(e){return Promise.resolve()},clear(){return Promise.resolve()}}}J.createFallbackableCache=_;J.createNullCache=ve});var Ee=I(($s,qe)=>{qe.exports=xe()});var Te=I(ae=>{"use strict";Object.defineProperty(ae,"__esModule",{value:!0});function Jt(e={serializable:!0}){let t={};return{get(r,s,n={miss:()=>Promise.resolve()}){let a=JSON.stringify(r);if(a in t)return Promise.resolve(e.serializable?JSON.parse(t[a]):t[a]);let o=s(),d=n&&n.miss||(()=>Promise.resolve());return o.then(y=>d(y)).then(()=>o)},set(r,s){return t[JSON.stringify(r)]=e.serializable?JSON.stringify(s):s,Promise.resolve(s)},delete(r){return delete t[JSON.stringify(r)],Promise.resolve()},clear(){return t={},Promise.resolve()}}}ae.createInMemoryCache=Jt});var we=I((Vs,Me)=>{Me.exports=Te()});var Ce=I(M=>{"use strict";Object.defineProperty(M,"__esModule",{value:!0});function Xt(e,t,r){let s={"x-algolia-api-key":r,"x-algolia-application-id":t};return{headers(){return e===oe.WithinHeaders?s:{}},queryParameters(){return e===oe.WithinQueryParameters?s:{}}}}function Yt(e){let t=0,r=()=>(t++,new Promise(s=>{setTimeout(()=>{s(e(r))},Math.min(100*t,1e3))}));return e(r)}function ke(e,t=(r,s)=>Promise.resolve()){return Object.assign(e,{wait(r){return ke(e.then(s=>Promise.all([t(s,r),s])).then(s=>s[1]))}})}function Zt(e){let t=e.length-1;for(t;t>0;t--){let r=Math.floor(Math.random()*(t+1)),s=e[t];e[t]=e[r],e[r]=s}return e}function er(e,t){return Object.keys(t!==void 0?t:{}).forEach(r=>{e[r]=t[r](e)}),e}function tr(e,...t){let r=0;return e.replace(/%s/g,()=>encodeURIComponent(t[r++]))}var rr="4.2.0",sr=e=>()=>e.transporter.requester.destroy(),oe={WithinQueryParameters:0,WithinHeaders:1};M.AuthMode=oe;M.addMethods=er;M.createAuth=Xt;M.createRetryablePromise=Yt;M.createWaitablePromise=ke;M.destroy=sr;M.encode=tr;M.shuffle=Zt;M.version=rr});var F=I((Js,Ue)=>{Ue.exports=Ce()});var Ne=I(ie=>{"use strict";Object.defineProperty(ie,"__esModule",{value:!0});var nr={Delete:"DELETE",Get:"GET",Post:"POST",Put:"PUT"};ie.MethodEnum=nr});var B=I((Ys,We)=>{We.exports=Ne()});var Ze=I(A=>{"use strict";Object.defineProperty(A,"__esModule",{value:!0});var He=B();function ce(e,t){let r=e||{},s=r.data||{};return Object.keys(r).forEach(n=>{["timeout","headers","queryParameters","data","cacheable"].indexOf(n)===-1&&(s[n]=r[n])}),{data:Object.entries(s).length>0?s:void 0,timeout:r.timeout||t,headers:r.headers||{},queryParameters:r.queryParameters||{},cacheable:r.cacheable}}var X={Read:1,Write:2,Any:3},U={Up:1,Down:2,Timeouted:3},_e=2*60*1e3;function ue(e,t=U.Up){return g(u({},e),{status:t,lastUpdate:Date.now()})}function Fe(e){return e.status===U.Up||Date.now()-e.lastUpdate>_e}function Be(e){return e.status===U.Timeouted&&Date.now()-e.lastUpdate<=_e}function le(e){return{protocol:e.protocol||"https",url:e.url,accept:e.accept||X.Any}}function ar(e,t){return Promise.all(t.map(r=>e.get(r,()=>Promise.resolve(ue(r))))).then(r=>{let s=r.filter(d=>Fe(d)),n=r.filter(d=>Be(d)),a=[...s,...n],o=a.length>0?a.map(d=>le(d)):t;return{getTimeout(d,y){return(n.length===0&&d===0?1:n.length+3+d)*y},statelessHosts:o}})}var or=({isTimedOut:e,status:t})=>!e&&~~t==0,ir=e=>{let t=e.status;return e.isTimedOut||or(e)||~~(t/100)!=2&&~~(t/100)!=4},cr=({status:e})=>~~(e/100)==2,ur=(e,t)=>ir(e)?t.onRetry(e):cr(e)?t.onSucess(e):t.onFail(e);function Qe(e,t,r,s){let n=[],a=$e(r,s),o=Le(e,s),d=r.method,y=r.method!==He.MethodEnum.Get?{}:u(u({},r.data),s.data),b=u(u(u({"x-algolia-agent":e.userAgent.value},e.queryParameters),y),s.queryParameters),f=0,p=(h,S)=>{let O=h.pop();if(O===void 0)throw Ve(de(n));let P={data:a,headers:o,method:d,url:Ge(O,r.path,b),connectTimeout:S(f,e.timeouts.connect),responseTimeout:S(f,s.timeout)},x=j=>{let T={request:P,response:j,host:O,triesLeft:h.length};return n.push(T),T},v={onSucess:j=>Ke(j),onRetry(j){let T=x(j);return j.isTimedOut&&f++,Promise.all([e.logger.info("Retryable failure",pe(T)),e.hostsCache.set(O,ue(O,j.isTimedOut?U.Timeouted:U.Down))]).then(()=>p(h,S))},onFail(j){throw x(j),ze(j,de(n))}};return e.requester.send(P).then(j=>ur(j,v))};return ar(e.hostsCache,t).then(h=>p([...h.statelessHosts].reverse(),h.getTimeout))}function lr(e){let{hostsCache:t,logger:r,requester:s,requestsCache:n,responsesCache:a,timeouts:o,userAgent:d,hosts:y,queryParameters:b,headers:f}=e,p={hostsCache:t,logger:r,requester:s,requestsCache:n,responsesCache:a,timeouts:o,userAgent:d,headers:f,queryParameters:b,hosts:y.map(h=>le(h)),read(h,S){let O=ce(S,p.timeouts.read),P=()=>Qe(p,p.hosts.filter(j=>(j.accept&X.Read)!=0),h,O);if((O.cacheable!==void 0?O.cacheable:h.cacheable)!==!0)return P();let v={request:h,mappedRequestOptions:O,transporter:{queryParameters:p.queryParameters,headers:p.headers}};return p.responsesCache.get(v,()=>p.requestsCache.get(v,()=>p.requestsCache.set(v,P()).then(j=>Promise.all([p.requestsCache.delete(v),j]),j=>Promise.all([p.requestsCache.delete(v),Promise.reject(j)])).then(([j,T])=>T)),{miss:j=>p.responsesCache.set(v,j)})},write(h,S){return Qe(p,p.hosts.filter(O=>(O.accept&X.Write)!=0),h,ce(S,p.timeouts.write))}};return p}function dr(e){let t={value:`Algolia for JavaScript (${e})`,add(r){let s=`; ${r.segment}${r.version!==void 0?` (${r.version})`:""}`;return t.value.indexOf(s)===-1&&(t.value=`${t.value}${s}`),t}};return t}function Ke(e){try{return JSON.parse(e.content)}catch(t){throw Je(t.message,e)}}function ze({content:e,status:t},r){let s=e;try{s=JSON.parse(e).message}catch(n){}return Xe(s,t,r)}function pr(e,...t){let r=0;return e.replace(/%s/g,()=>encodeURIComponent(t[r++]))}function Ge(e,t,r){let s=Ye(r),n=`${e.protocol}://${e.url}/${t.charAt(0)==="/"?t.substr(1):t}`;return s.length&&(n+=`?${s}`),n}function Ye(e){let t=r=>Object.prototype.toString.call(r)==="[object Object]"||Object.prototype.toString.call(r)==="[object Array]";return Object.keys(e).map(r=>pr("%s=%s",r,t(e[r])?JSON.stringify(e[r]):e[r])).join("&")}function $e(e,t){if(e.method===He.MethodEnum.Get||e.data===void 0&&t.data===void 0)return;let r=Array.isArray(e.data)?e.data:u(u({},e.data),t.data);return JSON.stringify(r)}function Le(e,t){let r=u(u({},e.headers),t.headers),s={};return Object.keys(r).forEach(n=>{let a=r[n];s[n.toLowerCase()]=a}),s}function de(e){return e.map(t=>pe(t))}function pe(e){let t=e.request.headers["x-algolia-api-key"]?{"x-algolia-api-key":"*****"}:{};return g(u({},e),{request:g(u({},e.request),{headers:u(u({},e.request.headers),t)})})}function Xe(e,t,r){return{name:"ApiError",message:e,status:t,transporterStackTrace:r}}function Je(e,t){return{name:"DeserializationError",message:e,response:t}}function Ve(e){return{name:"RetryError",message:"Unreachable hosts - your application id may be incorrect. If the error persists, contact support@algolia.com.",transporterStackTrace:e}}A.CallEnum=X;A.HostStatusEnum=U;A.createApiError=Xe;A.createDeserializationError=Je;A.createMappedRequestOptions=ce;A.createRetryError=Ve;A.createStatefulHost=ue;A.createStatelessHost=le;A.createTransporter=lr;A.createUserAgent=dr;A.deserializeFailure=ze;A.deserializeSuccess=Ke;A.isStatefulHostTimeouted=Be;A.isStatefulHostUp=Fe;A.serializeData=$e;A.serializeHeaders=Le;A.serializeQueryParameters=Ye;A.serializeUrl=Ge;A.stackFrameWithoutCredentials=pe;A.stackTraceWithoutCredentials=de});var K=I((en,et)=>{et.exports=Ze()});var tt=I(w=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0});var N=F(),mr=K(),z=B(),hr=e=>{let t=e.region||"us",r=N.createAuth(N.AuthMode.WithinHeaders,e.appId,e.apiKey),s=mr.createTransporter(g(u({hosts:[{url:`analytics.${t}.algolia.com`}]},e),{headers:u(g(u({},r.headers()),{"content-type":"application/json"}),e.headers),queryParameters:u(u({},r.queryParameters()),e.queryParameters)})),n=e.appId;return N.addMethods({appId:n,transporter:s},e.methods)},yr=e=>(t,r)=>e.transporter.write({method:z.MethodEnum.Post,path:"2/abtests",data:t},r),gr=e=>(t,r)=>e.transporter.write({method:z.MethodEnum.Delete,path:N.encode("2/abtests/%s",t)},r),fr=e=>(t,r)=>e.transporter.read({method:z.MethodEnum.Get,path:N.encode("2/abtests/%s",t)},r),br=e=>t=>e.transporter.read({method:z.MethodEnum.Get,path:"2/abtests"},t),Pr=e=>(t,r)=>e.transporter.write({method:z.MethodEnum.Post,path:N.encode("2/abtests/%s/stop",t)},r);w.addABTest=yr;w.createAnalyticsClient=hr;w.deleteABTest=gr;w.getABTest=fr;w.getABTests=br;w.stopABTest=Pr});var st=I((rn,rt)=>{rt.exports=tt()});var at=I(G=>{"use strict";Object.defineProperty(G,"__esModule",{value:!0});var me=F(),jr=K(),nt=B(),Or=e=>{let t=e.region||"us",r=me.createAuth(me.AuthMode.WithinHeaders,e.appId,e.apiKey),s=jr.createTransporter(g(u({hosts:[{url:`recommendation.${t}.algolia.com`}]},e),{headers:u(g(u({},r.headers()),{"content-type":"application/json"}),e.headers),queryParameters:u(u({},r.queryParameters()),e.queryParameters)}));return me.addMethods({appId:e.appId,transporter:s},e.methods)},Ir=e=>t=>e.transporter.read({method:nt.MethodEnum.Get,path:"1/strategies/personalization"},t),Ar=e=>(t,r)=>e.transporter.write({method:nt.MethodEnum.Post,path:"1/strategies/personalization",data:t},r);G.createRecommendationClient=Or;G.getPersonalizationStrategy=Ir;G.setPersonalizationStrategy=Ar});var it=I((nn,ot)=>{ot.exports=at()});var jt=I(i=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0});var l=F(),q=K(),m=B(),Sr=require("crypto");function Y(e){let t=r=>e.request(r).then(s=>{if(e.batch!==void 0&&e.batch(s.hits),!e.shouldStop(s))return s.cursor?t({cursor:s.cursor}):t({page:(r.page||0)+1})});return t({})}var Dr=e=>{let t=e.appId,r=l.createAuth(e.authMode!==void 0?e.authMode:l.AuthMode.WithinHeaders,t,e.apiKey),s=q.createTransporter(g(u({hosts:[{url:`${t}-dsn.algolia.net`,accept:q.CallEnum.Read},{url:`${t}.algolia.net`,accept:q.CallEnum.Write}].concat(l.shuffle([{url:`${t}-1.algolianet.com`},{url:`${t}-2.algolianet.com`},{url:`${t}-3.algolianet.com`}]))},e),{headers:u(g(u({},r.headers()),{"content-type":"application/x-www-form-urlencoded"}),e.headers),queryParameters:u(u({},r.queryParameters()),e.queryParameters)})),n={transporter:s,appId:t,addAlgoliaAgent(a,o){s.userAgent.add({segment:a,version:o})},clearCache(){return Promise.all([s.requestsCache.clear(),s.responsesCache.clear()]).then(()=>{})}};return l.addMethods(n,e.methods)};function ct(){return{name:"MissingObjectIDError",message:"All objects must have an unique objectID (like a primary key) to be valid. Algolia is also able to generate objectIDs automatically but *it's not recommended*. To do it, use the `{'autoGenerateObjectIDIfNotExist': true}` option."}}function ut(){return{name:"ObjectNotFoundError",message:"Object not found."}}function lt(){return{name:"ValidUntilNotFoundError",message:"ValidUntil not found in given secured api key."}}var Rr=e=>(t,r)=>{let d=r||{},{queryParameters:s}=d,n=R(d,["queryParameters"]),a=u({acl:t},s!==void 0?{queryParameters:s}:{}),o=(y,b)=>l.createRetryablePromise(f=>$(e)(y.key,b).catch(p=>{if(p.status!==404)throw p;return f()}));return l.createWaitablePromise(e.transporter.write({method:m.MethodEnum.Post,path:"1/keys",data:a},n),o)},vr=e=>(t,r,s)=>{let n=q.createMappedRequestOptions(s);return n.queryParameters["X-Algolia-User-ID"]=t,e.transporter.write({method:m.MethodEnum.Post,path:"1/clusters/mapping",data:{cluster:r}},n)},xr=e=>(t,r,s)=>e.transporter.write({method:m.MethodEnum.Post,path:"1/clusters/mapping/batch",data:{users:t,cluster:r}},s),Z=e=>(t,r,s)=>{let n=(a,o)=>L(e)(t,{methods:{waitTask:D}}).waitTask(a.taskID,o);return l.createWaitablePromise(e.transporter.write({method:m.MethodEnum.Post,path:l.encode("1/indexes/%s/operation",t),data:{operation:"copy",destination:r}},s),n)},qr=e=>(t,r,s)=>Z(e)(t,r,g(u({},s),{scope:[ee.Rules]})),Er=e=>(t,r,s)=>Z(e)(t,r,g(u({},s),{scope:[ee.Settings]})),Tr=e=>(t,r,s)=>Z(e)(t,r,g(u({},s),{scope:[ee.Synonyms]})),Mr=e=>(t,r)=>{let s=(n,a)=>l.createRetryablePromise(o=>$(e)(t,a).then(o).catch(d=>{if(d.status!==404)throw d}));return l.createWaitablePromise(e.transporter.write({method:m.MethodEnum.Delete,path:l.encode("1/keys/%s",t)},r),s)},wr=()=>(e,t)=>{let r=q.serializeQueryParameters(t),s=Sr.createHmac("sha256",e).update(r).digest("hex");return Buffer.from(s+r).toString("base64")},$=e=>(t,r)=>e.transporter.read({method:m.MethodEnum.Get,path:l.encode("1/keys/%s",t)},r),kr=e=>t=>e.transporter.read({method:m.MethodEnum.Get,path:"1/logs"},t),Cr=()=>e=>{let t=Buffer.from(e,"base64").toString("ascii"),r=/validUntil=(\d+)/,s=t.match(r);if(s===null)throw lt();return parseInt(s[1],10)-Math.round(new Date().getTime()/1e3)},Ur=e=>t=>e.transporter.read({method:m.MethodEnum.Get,path:"1/clusters/mapping/top"},t),Nr=e=>(t,r)=>e.transporter.read({method:m.MethodEnum.Get,path:l.encode("1/clusters/mapping/%s",t)},r),Wr=e=>t=>{let n=t||{},{retrieveMappings:r}=n,s=R(n,["retrieveMappings"]);return r===!0&&(s.getClusters=!0),e.transporter.read({method:m.MethodEnum.Get,path:"1/clusters/mapping/pending"},s)},L=e=>(t,r={})=>{let s={transporter:e.transporter,appId:e.appId,indexName:t};return l.addMethods(s,r.methods)},Hr=e=>t=>e.transporter.read({method:m.MethodEnum.Get,path:"1/keys"},t),_r=e=>t=>e.transporter.read({method:m.MethodEnum.Get,path:"1/clusters"},t),Fr=e=>t=>e.transporter.read({method:m.MethodEnum.Get,path:"1/indexes"},t),Br=e=>t=>e.transporter.read({method:m.MethodEnum.Get,path:"1/clusters/mapping"},t),Kr=e=>(t,r,s)=>{let n=(a,o)=>L(e)(t,{methods:{waitTask:D}}).waitTask(a.taskID,o);return l.createWaitablePromise(e.transporter.write({method:m.MethodEnum.Post,path:l.encode("1/indexes/%s/operation",t),data:{operation:"move",destination:r}},s),n)},zr=e=>(t,r)=>{let s=(n,a)=>Promise.all(Object.keys(n.taskID).map(o=>L(e)(o,{methods:{waitTask:D}}).waitTask(n.taskID[o],a)));return l.createWaitablePromise(e.transporter.write({method:m.MethodEnum.Post,path:"1/indexes/*/batch",data:{requests:t}},r),s)},Gr=e=>(t,r)=>e.transporter.read({method:m.MethodEnum.Post,path:"1/indexes/*/objects",data:{requests:t}},r),$r=e=>(t,r)=>{let s=t.map(n=>g(u({},n),{params:q.serializeQueryParameters(n.params||{})}));return e.transporter.read({method:m.MethodEnum.Post,path:"1/indexes/*/queries",data:{requests:s},cacheable:!0},r)},Lr=e=>(t,r)=>Promise.all(t.map(s=>{let d=s.params,{facetName:n,facetQuery:a}=d,o=R(d,["facetName","facetQuery"]);return L(e)(s.indexName,{methods:{searchForFacetValues:dt}}).searchForFacetValues(n,a,u(u({},r),o))})),Vr=e=>(t,r)=>{let s=q.createMappedRequestOptions(r);return s.queryParameters["X-Algolia-User-ID"]=t,e.transporter.write({method:m.MethodEnum.Delete,path:"1/clusters/mapping"},s)},Qr=e=>(t,r)=>{let s=(n,a)=>l.createRetryablePromise(o=>$(e)(t,a).catch(d=>{if(d.status!==404)throw d;return o()}));return l.createWaitablePromise(e.transporter.write({method:m.MethodEnum.Post,path:l.encode("1/keys/%s/restore",t)},r),s)},Jr=e=>(t,r)=>e.transporter.read({method:m.MethodEnum.Post,path:"1/clusters/mapping/search",data:{query:t}},r),Xr=e=>(t,r)=>{let s=Object.assign({},r),f=r||{},{queryParameters:n}=f,a=R(f,["queryParameters"]),o=n?{queryParameters:n}:{},d=["acl","indexes","referers","restrictSources","queryParameters","description","maxQueriesPerIPPerHour","maxHitsPerQuery"],y=p=>Object.keys(s).filter(h=>d.indexOf(h)!==-1).every(h=>p[h]===s[h]),b=(p,h)=>l.createRetryablePromise(S=>$(e)(t,h).then(O=>y(O)?Promise.resolve():S()));return l.createWaitablePromise(e.transporter.write({method:m.MethodEnum.Put,path:l.encode("1/keys/%s",t),data:o},a),b)},pt=e=>(t,r)=>{let s=(n,a)=>D(e)(n.taskID,a);return l.createWaitablePromise(e.transporter.write({method:m.MethodEnum.Post,path:l.encode("1/indexes/%s/batch",e.indexName),data:{requests:t}},r),s)},Yr=e=>t=>Y(g(u({},t),{shouldStop:r=>r.cursor===void 0,request:r=>e.transporter.read({method:m.MethodEnum.Post,path:l.encode("1/indexes/%s/browse",e.indexName),data:r},t)})),Zr=e=>t=>{let r=u({hitsPerPage:1e3},t);return Y(g(u({},r),{shouldStop:s=>s.hits.length<r.hitsPerPage,request(s){return mt(e)("",u(u({},r),s)).then(n=>g(u({},n),{hits:n.hits.map(a=>(delete a._highlightResult,a))}))}}))},es=e=>t=>{let r=u({hitsPerPage:1e3},t);return Y(g(u({},r),{shouldStop:s=>s.hits.length<r.hitsPerPage,request(s){return ht(e)("",u(u({},r),s)).then(n=>g(u({},n),{hits:n.hits.map(a=>(delete a._highlightResult,a))}))}}))},te=e=>(t,r,s)=>{let y=s||{},{batchSize:n}=y,a=R(y,["batchSize"]),o={taskIDs:[],objectIDs:[]},d=(b=0)=>{let f=[],p;for(p=b;p<t.length&&(f.push(t[p]),f.length!==(n||1e3));p++);return f.length===0?Promise.resolve(o):pt(e)(f.map(h=>({action:r,body:h})),a).then(h=>(o.objectIDs=o.objectIDs.concat(h.objectIDs),o.taskIDs.push(h.taskID),p++,d(p)))};return l.createWaitablePromise(d(),(b,f)=>Promise.all(b.taskIDs.map(p=>D(e)(p,f))))},ts=e=>t=>l.createWaitablePromise(e.transporter.write({method:m.MethodEnum.Post,path:l.encode("1/indexes/%s/clear",e.indexName)},t),(r,s)=>D(e)(r.taskID,s)),rs=e=>t=>{let a=t||{},{forwardToReplicas:r}=a,s=R(a,["forwardToReplicas"]),n=q.createMappedRequestOptions(s);return r&&(n.queryParameters.forwardToReplicas=1),l.createWaitablePromise(e.transporter.write({method:m.MethodEnum.Post,path:l.encode("1/indexes/%s/rules/clear",e.indexName)},n),(o,d)=>D(e)(o.taskID,d))},ss=e=>t=>{let a=t||{},{forwardToReplicas:r}=a,s=R(a,["forwardToReplicas"]),n=q.createMappedRequestOptions(s);return r&&(n.queryParameters.forwardToReplicas=1),l.createWaitablePromise(e.transporter.write({method:m.MethodEnum.Post,path:l.encode("1/indexes/%s/synonyms/clear",e.indexName)},n),(o,d)=>D(e)(o.taskID,d))},ns=e=>(t,r)=>l.createWaitablePromise(e.transporter.write({method:m.MethodEnum.Post,path:l.encode("1/indexes/%s/deleteByQuery",e.indexName),data:t},r),(s,n)=>D(e)(s.taskID,n)),as=e=>t=>l.createWaitablePromise(e.transporter.write({method:m.MethodEnum.Delete,path:l.encode("1/indexes/%s",e.indexName)},t),(r,s)=>D(e)(r.taskID,s)),os=e=>(t,r)=>l.createWaitablePromise(yt(e)([t],r).then(s=>({taskID:s.taskIDs[0]})),(s,n)=>D(e)(s.taskID,n)),yt=e=>(t,r)=>{let s=t.map(n=>({objectID:n}));return te(e)(s,k.DeleteObject,r)},is=e=>(t,r)=>{let o=r||{},{forwardToReplicas:s}=o,n=R(o,["forwardToReplicas"]),a=q.createMappedRequestOptions(n);return s&&(a.queryParameters.forwardToReplicas=1),l.createWaitablePromise(e.transporter.write({method:m.MethodEnum.Delete,path:l.encode("1/indexes/%s/rules/%s",e.indexName,t)},a),(d,y)=>D(e)(d.taskID,y))},cs=e=>(t,r)=>{let o=r||{},{forwardToReplicas:s}=o,n=R(o,["forwardToReplicas"]),a=q.createMappedRequestOptions(n);return s&&(a.queryParameters.forwardToReplicas=1),l.createWaitablePromise(e.transporter.write({method:m.MethodEnum.Delete,path:l.encode("1/indexes/%s/synonyms/%s",e.indexName,t)},a),(d,y)=>D(e)(d.taskID,y))},us=e=>t=>gt(e)(t).then(()=>!0).catch(r=>{if(r.status!==404)throw r;return!1}),ls=e=>(t,r)=>{let y=r||{},{query:s,paginate:n}=y,a=R(y,["query","paginate"]),o=0,d=()=>ft(e)(s||"",g(u({},a),{page:o})).then(b=>{for(let[f,p]of Object.entries(b.hits))if(t(p))return{object:p,position:parseInt(f,10),page:o};if(o++,n===!1||o>=b.nbPages)throw ut();return d()});return d()},ds=e=>(t,r)=>e.transporter.read({method:m.MethodEnum.Get,path:l.encode("1/indexes/%s/%s",e.indexName,t)},r),ps=()=>(e,t)=>{for(let[r,s]of Object.entries(e.hits))if(s.objectID===t)return parseInt(r,10);return-1},ms=e=>(t,r)=>{let o=r||{},{attributesToRetrieve:s}=o,n=R(o,["attributesToRetrieve"]),a=t.map(d=>u({indexName:e.indexName,objectID:d},s?{attributesToRetrieve:s}:{}));return e.transporter.read({method:m.MethodEnum.Post,path:"1/indexes/*/objects",data:{requests:a}},n)},hs=e=>(t,r)=>e.transporter.read({method:m.MethodEnum.Get,path:l.encode("1/indexes/%s/rules/%s",e.indexName,t)},r),gt=e=>t=>e.transporter.read({method:m.MethodEnum.Get,path:l.encode("1/indexes/%s/settings",e.indexName),data:{getVersion:2}},t),ys=e=>(t,r)=>e.transporter.read({method:m.MethodEnum.Get,path:l.encode("1/indexes/%s/synonyms/%s",e.indexName,t)},r),bt=e=>(t,r)=>e.transporter.read({method:m.MethodEnum.Get,path:l.encode("1/indexes/%s/task/%s",e.indexName,t.toString())},r),gs=e=>(t,r)=>l.createWaitablePromise(Pt(e)([t],r).then(s=>({objectID:s.objectIDs[0],taskID:s.taskIDs[0]})),(s,n)=>D(e)(s.taskID,n)),Pt=e=>(t,r)=>{let o=r||{},{createIfNotExists:s}=o,n=R(o,["createIfNotExists"]),a=s?k.PartialUpdateObject:k.PartialUpdateObjectNoCreate;return te(e)(t,a,n)},fs=e=>(t,r)=>{let O=r||{},{safe:s,autoGenerateObjectIDIfNotExist:n,batchSize:a}=O,o=R(O,["safe","autoGenerateObjectIDIfNotExist","batchSize"]),d=(P,x,v,j)=>l.createWaitablePromise(e.transporter.write({method:m.MethodEnum.Post,path:l.encode("1/indexes/%s/operation",P),data:{operation:v,destination:x}},j),(T,V)=>D(e)(T.taskID,V)),y=Math.random().toString(36).substring(7),b=`${e.indexName}_tmp_${y}`,f=he({appId:e.appId,transporter:e.transporter,indexName:b}),p=[],h=d(e.indexName,b,"copy",g(u({},o),{scope:["settings","synonyms","rules"]}));p.push(h);let S=(s?h.wait(o):h).then(()=>{let P=f(t,g(u({},o),{autoGenerateObjectIDIfNotExist:n,batchSize:a}));return p.push(P),s?P.wait(o):P}).then(()=>{let P=d(b,e.indexName,"move",o);return p.push(P),s?P.wait(o):P}).then(()=>Promise.all(p)).then(([P,x,v])=>({objectIDs:x.objectIDs,taskIDs:[P.taskID,...x.taskIDs,v.taskID]}));return l.createWaitablePromise(S,(P,x)=>Promise.all(p.map(v=>v.wait(x))))},bs=e=>(t,r)=>ye(e)(t,g(u({},r),{clearExistingRules:!0})),Ps=e=>(t,r)=>ge(e)(t,g(u({},r),{replaceExistingSynonyms:!0})),js=e=>(t,r)=>l.createWaitablePromise(he(e)([t],r).then(s=>({objectID:s.objectIDs[0],taskID:s.taskIDs[0]})),(s,n)=>D(e)(s.taskID,n)),he=e=>(t,r)=>{let o=r||{},{autoGenerateObjectIDIfNotExist:s}=o,n=R(o,["autoGenerateObjectIDIfNotExist"]),a=s?k.AddObject:k.UpdateObject;if(a===k.UpdateObject){for(let d of t)if(d.objectID===void 0)return l.createWaitablePromise(Promise.reject(ct()))}return te(e)(t,a,n)},Os=e=>(t,r)=>ye(e)([t],r),ye=e=>(t,r)=>{let d=r||{},{forwardToReplicas:s,clearExistingRules:n}=d,a=R(d,["forwardToReplicas","clearExistingRules"]),o=q.createMappedRequestOptions(a);return s&&(o.queryParameters.forwardToReplicas=1),n&&(o.queryParameters.clearExistingRules=1),l.createWaitablePromise(e.transporter.write({method:m.MethodEnum.Post,path:l.encode("1/indexes/%s/rules/batch",e.indexName),data:t},o),(y,b)=>D(e)(y.taskID,b))},Is=e=>(t,r)=>ge(e)([t],r),ge=e=>(t,r)=>{let d=r||{},{forwardToReplicas:s,replaceExistingSynonyms:n}=d,a=R(d,["forwardToReplicas","replaceExistingSynonyms"]),o=q.createMappedRequestOptions(a);return s&&(o.queryParameters.forwardToReplicas=1),n&&(o.queryParameters.replaceExistingSynonyms=1),l.createWaitablePromise(e.transporter.write({method:m.MethodEnum.Post,path:l.encode("1/indexes/%s/synonyms/batch",e.indexName),data:t},o),(y,b)=>D(e)(y.taskID,b))},ft=e=>(t,r)=>e.transporter.read({method:m.MethodEnum.Post,path:l.encode("1/indexes/%s/query",e.indexName),data:{query:t},cacheable:!0},r),dt=e=>(t,r,s)=>e.transporter.read({method:m.MethodEnum.Post,path:l.encode("1/indexes/%s/facets/%s/query",e.indexName,t),data:{facetQuery:r},cacheable:!0},s),mt=e=>(t,r)=>e.transporter.read({method:m.MethodEnum.Post,path:l.encode("1/indexes/%s/rules/search",e.indexName),data:{query:t}},r),ht=e=>(t,r)=>e.transporter.read({method:m.MethodEnum.Post,path:l.encode("1/indexes/%s/synonyms/search",e.indexName),data:{query:t}},r),As=e=>(t,r)=>{let o=r||{},{forwardToReplicas:s}=o,n=R(o,["forwardToReplicas"]),a=q.createMappedRequestOptions(n);return s&&(a.queryParameters.forwardToReplicas=1),l.createWaitablePromise(e.transporter.write({method:m.MethodEnum.Put,path:l.encode("1/indexes/%s/settings",e.indexName),data:t},a),(d,y)=>D(e)(d.taskID,y))},D=e=>(t,r)=>l.createRetryablePromise(s=>bt(e)(t,r).then(n=>n.status!=="published"?s():void 0)),Ss={AddObject:"addObject",Analytics:"analytics",Browser:"browse",DeleteIndex:"deleteIndex",DeleteObject:"deleteObject",EditSettings:"editSettings",ListIndexes:"listIndexes",Logs:"logs",Recommendation:"recommendation",Search:"search",SeeUnretrievableAttributes:"seeUnretrievableAttributes",Settings:"settings",Usage:"usage"},k={AddObject:"addObject",UpdateObject:"updateObject",PartialUpdateObject:"partialUpdateObject",PartialUpdateObjectNoCreate:"partialUpdateObjectNoCreate",DeleteObject:"deleteObject"},ee={Settings:"settings",Synonyms:"synonyms",Rules:"rules"},Ds={None:"none",StopIfEnoughMatches:"stopIfEnoughMatches"},Rs={Synonym:"synonym",OneWaySynonym:"oneWaySynonym",AltCorrection1:"altCorrection1",AltCorrection2:"altCorrection2",Placeholder:"placeholder"};i.ApiKeyACLEnum=Ss;i.BatchActionEnum=k;i.ScopeEnum=ee;i.StrategyEnum=Ds;i.SynonymEnum=Rs;i.addApiKey=Rr;i.assignUserID=vr;i.assignUserIDs=xr;i.batch=pt;i.browseObjects=Yr;i.browseRules=Zr;i.browseSynonyms=es;i.chunkedBatch=te;i.clearObjects=ts;i.clearRules=rs;i.clearSynonyms=ss;i.copyIndex=Z;i.copyRules=qr;i.copySettings=Er;i.copySynonyms=Tr;i.createBrowsablePromise=Y;i.createMissingObjectIDError=ct;i.createObjectNotFoundError=ut;i.createSearchClient=Dr;i.createValidUntilNotFoundError=lt;i.deleteApiKey=Mr;i.deleteBy=ns;i.deleteIndex=as;i.deleteObject=os;i.deleteObjects=yt;i.deleteRule=is;i.deleteSynonym=cs;i.exists=us;i.findObject=ls;i.generateSecuredApiKey=wr;i.getApiKey=$;i.getLogs=kr;i.getObject=ds;i.getObjectPosition=ps;i.getObjects=ms;i.getRule=hs;i.getSecuredApiKeyRemainingValidity=Cr;i.getSettings=gt;i.getSynonym=ys;i.getTask=bt;i.getTopUserIDs=Ur;i.getUserID=Nr;i.hasPendingMappings=Wr;i.initIndex=L;i.listApiKeys=Hr;i.listClusters=_r;i.listIndices=Fr;i.listUserIDs=Br;i.moveIndex=Kr;i.multipleBatch=zr;i.multipleGetObjects=Gr;i.multipleQueries=$r;i.multipleSearchForFacetValues=Lr;i.partialUpdateObject=gs;i.partialUpdateObjects=Pt;i.removeUserID=Vr;i.replaceAllObjects=fs;i.replaceAllRules=bs;i.replaceAllSynonyms=Ps;i.restoreApiKey=Qr;i.saveObject=js;i.saveObjects=he;i.saveRule=Os;i.saveRules=ye;i.saveSynonym=Is;i.saveSynonyms=ge;i.search=ft;i.searchForFacetValues=dt;i.searchRules=mt;i.searchSynonyms=ht;i.searchUserIDs=Jr;i.setSettings=As;i.updateApiKey=Xr;i.waitTask=D});var It=I((on,Ot)=>{Ot.exports=jt()});var At=I(re=>{"use strict";Object.defineProperty(re,"__esModule",{value:!0});function vs(){return{debug(e,t){return Promise.resolve()},info(e,t){return Promise.resolve()},error(e,t){return Promise.resolve()}}}var xs={Debug:1,Info:2,Error:3};re.LogLevelEnum=xs;re.createNullLogger=vs});var Dt=I((un,St)=>{St.exports=At()});var xt=I(fe=>{"use strict";Object.defineProperty(fe,"__esModule",{value:!0});var Rt=require("http"),vt=require("https"),qs=require("url");function Es(){let e={keepAlive:!0},t=new Rt.Agent(e),r=new vt.Agent(e);return{send(s){return new Promise(n=>{let a=qs.parse(s.url),o=a.query===null?a.pathname:`${a.pathname}?${a.query}`,d=u({agent:a.protocol==="https:"?r:t,hostname:a.hostname,path:o,method:s.method,headers:s.headers},a.port!==void 0?{port:a.port||""}:{}),y=(a.protocol==="https:"?vt:Rt).request(d,h=>{let S="";h.on("data",O=>S+=O),h.on("end",()=>{clearTimeout(f),clearTimeout(p),n({status:h.statusCode||0,content:S,isTimedOut:!1})})}),b=(h,S)=>setTimeout(()=>{y.abort(),n({status:0,content:S,isTimedOut:!0})},h*1e3),f=b(s.connectTimeout,"Connection timeout"),p;y.on("error",h=>{clearTimeout(f),clearTimeout(p),n({status:0,content:h.message,isTimedOut:!1})}),y.once("response",()=>{clearTimeout(f),p=b(s.responseTimeout,"Socket timeout")}),s.data!==void 0&&y.write(s.data),y.end()})},destroy(){return t.destroy(),r.destroy(),Promise.resolve()}}}fe.createNodeHttpRequester=Es});var Et=I((dn,qt)=>{qt.exports=xt()});var kt=I((pn,Tt)=>{"use strict";var Mt=Ee(),Ts=we(),W=st(),be=F(),Pe=it(),c=It(),Ms=Dt(),ws=Et(),ks=K();function wt(e,t,r){let s={appId:e,apiKey:t,timeouts:{connect:2,read:5,write:30},requester:ws.createNodeHttpRequester(),logger:Ms.createNullLogger(),responsesCache:Mt.createNullCache(),requestsCache:Mt.createNullCache(),hostsCache:Ts.createInMemoryCache(),userAgent:ks.createUserAgent(be.version).add({segment:"Node.js",version:process.versions.node})};return c.createSearchClient(g(u(u({},s),r),{methods:{search:c.multipleQueries,searchForFacetValues:c.multipleSearchForFacetValues,multipleBatch:c.multipleBatch,multipleGetObjects:c.multipleGetObjects,multipleQueries:c.multipleQueries,copyIndex:c.copyIndex,copySettings:c.copySettings,copyRules:c.copyRules,copySynonyms:c.copySynonyms,moveIndex:c.moveIndex,listIndices:c.listIndices,getLogs:c.getLogs,listClusters:c.listClusters,multipleSearchForFacetValues:c.multipleSearchForFacetValues,getApiKey:c.getApiKey,addApiKey:c.addApiKey,listApiKeys:c.listApiKeys,updateApiKey:c.updateApiKey,deleteApiKey:c.deleteApiKey,restoreApiKey:c.restoreApiKey,assignUserID:c.assignUserID,assignUserIDs:c.assignUserIDs,getUserID:c.getUserID,searchUserIDs:c.searchUserIDs,listUserIDs:c.listUserIDs,getTopUserIDs:c.getTopUserIDs,removeUserID:c.removeUserID,hasPendingMappings:c.hasPendingMappings,generateSecuredApiKey:c.generateSecuredApiKey,getSecuredApiKeyRemainingValidity:c.getSecuredApiKeyRemainingValidity,destroy:be.destroy,initIndex:n=>a=>c.initIndex(n)(a,{methods:{batch:c.batch,delete:c.deleteIndex,getObject:c.getObject,getObjects:c.getObjects,saveObject:c.saveObject,saveObjects:c.saveObjects,search:c.search,searchForFacetValues:c.searchForFacetValues,waitTask:c.waitTask,setSettings:c.setSettings,getSettings:c.getSettings,partialUpdateObject:c.partialUpdateObject,partialUpdateObjects:c.partialUpdateObjects,deleteObject:c.deleteObject,deleteObjects:c.deleteObjects,deleteBy:c.deleteBy,clearObjects:c.clearObjects,browseObjects:c.browseObjects,getObjectPosition:c.getObjectPosition,findObject:c.findObject,exists:c.exists,saveSynonym:c.saveSynonym,saveSynonyms:c.saveSynonyms,getSynonym:c.getSynonym,searchSynonyms:c.searchSynonyms,browseSynonyms:c.browseSynonyms,deleteSynonym:c.deleteSynonym,clearSynonyms:c.clearSynonyms,replaceAllObjects:c.replaceAllObjects,replaceAllSynonyms:c.replaceAllSynonyms,searchRules:c.searchRules,getRule:c.getRule,deleteRule:c.deleteRule,saveRule:c.saveRule,saveRules:c.saveRules,replaceAllRules:c.replaceAllRules,browseRules:c.browseRules,clearRules:c.clearRules}}),initAnalytics:()=>n=>W.createAnalyticsClient(g(u(u({},s),n),{methods:{addABTest:W.addABTest,getABTest:W.getABTest,getABTests:W.getABTests,stopABTest:W.stopABTest,deleteABTest:W.deleteABTest}})),initRecommendation:()=>n=>Pe.createRecommendationClient(g(u(u({},s),n),{methods:{getPersonalizationStrategy:Pe.getPersonalizationStrategy,setPersonalizationStrategy:Pe.setPersonalizationStrategy}}))}}))}wt.version=be.version;Tt.exports=wt});var Ut=I((mn,je)=>{var Ct=kt();je.exports=Ct;je.exports.default=Ct});var Ws={};Vt(Ws,{default:()=>Ks});var Oe=C(require("@yarnpkg/core")),E=C(require("@yarnpkg/core")),Ie=C(require("@yarnpkg/plugin-essentials")),Ht=C(require("semver"));var se=C(require("@yarnpkg/core")),Nt=C(Ut()),Cs="e8e1bd300d860104bb8c58453ffa1eb4",Us="OFCNCOG2CU",Wt=async(e,t)=>{var a;let r=se.structUtils.stringifyIdent(e),n=Ns(t).initIndex("npm-search");try{return((a=(await n.getObject(r,{attributesToRetrieve:["types"]})).types)==null?void 0:a.ts)==="definitely-typed"}catch(o){return!1}},Ns=e=>(0,Nt.default)(Us,Cs,{requester:{async send(r){try{let s=await se.httpUtils.request(r.url,r.data||null,{configuration:e,headers:r.headers});return{content:s.body,isTimedOut:!1,status:s.statusCode}}catch(s){return{content:s.response.body,isTimedOut:!1,status:s.response.statusCode}}}}});var _t=e=>e.scope?`${e.scope}__${e.name}`:`${e.name}`,Hs=async(e,t,r,s)=>{if(r.scope==="types")return;let{project:n}=e,{configuration:a}=n,o=a.makeResolver(),d={project:n,resolver:o,report:new E.ThrowReport};if(!await Wt(r,a))return;let b=_t(r),f=E.structUtils.parseRange(r.range).selector;if(!E.semverUtils.validRange(f)){let P=await o.getCandidates(r,new Map,d);f=E.structUtils.parseRange(P[0].reference).selector}let p=Ht.default.coerce(f);if(p===null)return;let h=`${Ie.suggestUtils.Modifier.CARET}${p.major}`,S=E.structUtils.makeDescriptor(E.structUtils.makeIdent("types",b),h),O=E.miscUtils.mapAndFind(n.workspaces,P=>{var T,V;let x=(T=P.manifest.dependencies.get(r.identHash))==null?void 0:T.descriptorHash,v=(V=P.manifest.devDependencies.get(r.identHash))==null?void 0:V.descriptorHash;if(x!==r.descriptorHash&&v!==r.descriptorHash)return E.miscUtils.mapAndFind.skip;let j=[];for(let Ae of Oe.Manifest.allDependencies){let Se=P.manifest[Ae].get(S.identHash);typeof Se!="undefined"&&j.push([Ae,Se])}return j.length===0?E.miscUtils.mapAndFind.skip:j});if(typeof O!="undefined")for(let[P,x]of O)e.manifest[P].set(x.identHash,x);else{try{if((await o.getCandidates(S,new Map,d)).length===0)return}catch{return}e.manifest[Ie.suggestUtils.Target.DEVELOPMENT].set(S.identHash,S)}},_s=async(e,t,r)=>{if(r.scope==="types")return;let s=_t(r),n=E.structUtils.makeIdent("types",s);for(let a of Oe.Manifest.allDependencies)typeof e.manifest[a].get(n.identHash)!="undefined"&&e.manifest[a].delete(n.identHash)},Fs=(e,t)=>{t.publishConfig&&t.publishConfig.typings&&(t.typings=t.publishConfig.typings),t.publishConfig&&t.publishConfig.types&&(t.types=t.publishConfig.types)},Bs={hooks:{afterWorkspaceDependencyAddition:Hs,afterWorkspaceDependencyRemoval:_s,beforeWorkspacePacking:Fs}},Ks=Bs;return Ws;})(); +return plugin; +} }; |