1"use strict";(self.webpackChunkwikipoint_platform=self.webpackChunkwikipoint_platform||[]).push([[6563,8944],{28944:(d,n,h)=>{h.d(n,{h:()=>u});class l{constructor(s){this._pendingActions=new Array,this._workerInfos=s.map(e=>({workerPromise:Promise.resolve(e),idle:!0}))}dispose(){for(const s of this._workerInfos)s.workerPromise.then(e=>{e.terminate()});this._workerInfos.length=0,this._pendingActions.length=0}push(s){this._executeOnIdleWorker(s)||this._pendingActions.push(s)}_executeOnIdleWorker(s){for(const e of this._workerInfos)if(e.idle)return this._execute(e,s),!0;return!1}_execute(s,e){s.idle=!1,s.workerPromise.then(t=>{e(t,()=>{const i=this._pendingActions.shift();i?this._execute(s,i):s.idle=!0})})}}let u=(()=>{class r extends l{constructor(e,t,i=r.DefaultOptions){super([]),this._maxWorkers=e,this._createWorkerAsync=t,this._options=i}push(e){if(!this._executeOnIdleWorker(e))if(this._workerInfos.length<this._maxWorkers){const t={workerPromise:this._createWorkerAsync(),idle:!1};this._workerInfos.push(t),this._execute(t,e)}else this._pendingActions.push(e)}_execute(e,t){e.timeoutId&&(clearTimeout(e.timeoutId),delete e.timeoutId),super._execute(e,(i,_)=>{t(i,()=>{_(),e.idle&&(e.timeoutId=setTimeout(()=>{e.workerPromise.then(c=>{c.terminate()});const o=this._workerInfos.indexOf(e);-1!==o&&this._workerInfos.splice(o,1)},this._options.idleTimeElapsedBeforeRelease))})})}}return r.DefaultOptions={idleTimeElapsedBeforeRelease:1e3},r})()}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.