grafana/plugins/grafana-lokiexplore-app/308.js
2025-01-10 20:54:04 -08:00

2 lines
No EOL
15 KiB
JavaScript

"use strict";(self.webpackChunkgrafana_lokiexplore_app=self.webpackChunkgrafana_lokiexplore_app||[]).push([[308],{5308:(t,n,e)=>{let _;e.r(n),e.d(n,{AutoETS:()=>T,ChangepointDetector:()=>U,LoadedOutlierDetector:()=>L,MSTL:()=>C,OutlierDetector:()=>B,custom_init:()=>O,default:()=>G,ets:()=>j,initSync:()=>M,seasonalities:()=>F}),t=e.hmd(t);const r=new Array(128).fill(void 0);function i(t){return r[t]}r.push(void 0,null,!0,!1);let o=r.length;function c(t){const n=i(t);return function(t){t<132||(r[t]=o,o=t)}(t),n}function a(t){o===r.length&&r.push(r.length+1);const n=o;return o=r[n],r[n]=t,n}const s="undefined"!=typeof TextDecoder?new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error("TextDecoder not available")}};"undefined"!=typeof TextDecoder&&s.decode();let b=null;function g(){return null!==b&&0!==b.byteLength||(b=new Uint8Array(_.memory.buffer)),b}function u(t,n){return t>>>=0,s.decode(g().subarray(t,t+n))}let w=0;const f="undefined"!=typeof TextEncoder?new TextEncoder("utf-8"):{encode:()=>{throw Error("TextEncoder not available")}},d="function"==typeof f.encodeInto?function(t,n){return f.encodeInto(t,n)}:function(t,n){const e=f.encode(t);return n.set(e),{read:t.length,written:e.length}};function l(t,n,e){if(void 0===e){const e=f.encode(t),_=n(e.length,1)>>>0;return g().subarray(_,_+e.length).set(e),w=e.length,_}let _=t.length,r=n(_,1)>>>0;const i=g();let o=0;for(;o<_;o++){const n=t.charCodeAt(o);if(n>127)break;i[r+o]=n}if(o!==_){0!==o&&(t=t.slice(o)),r=e(r,_,_=o+3*t.length,1)>>>0;const n=g().subarray(r+o,r+_);o+=d(t,n).written,r=e(r,_,o,1)>>>0}return w=o,r}function p(t){return null==t}let y=null;function h(){return null!==y&&0!==y.byteLength||(y=new Int32Array(_.memory.buffer)),y}let m=null;function k(){return null!==m&&0!==m.byteLength||(m=new Float64Array(_.memory.buffer)),m}let v=null;function A(t){const n=typeof t;if("number"==n||"boolean"==n||null==t)return`${t}`;if("string"==n)return`"${t}"`;if("symbol"==n){const n=t.description;return null==n?"Symbol":`Symbol(${n})`}if("function"==n){const n=t.name;return"string"==typeof n&&n.length>0?`Function(${n})`:"Function"}if(Array.isArray(t)){const n=t.length;let e="[";n>0&&(e+=A(t[0]));for(let _=1;_<n;_++)e+=", "+A(t[_]);return e+="]",e}const e=/\[object ([^\]]+)\]/.exec(toString.call(t));let _;if(!(e.length>1))return toString.call(t);if(_=e[1],"Object"==_)try{return"Object("+JSON.stringify(t)+")"}catch(t){return"Object"}return t instanceof Error?`${t.name}: ${t.message}\n${t.stack}`:_}let R=null;function S(){return null!==R&&0!==R.byteLength||(R=new Uint32Array(_.memory.buffer)),R}function F(t,n){try{const s=_.__wbindgen_add_to_stack_pointer(-16),b=function(t,n){const e=n(8*t.length,8)>>>0;return k().set(t,e/8),w=t.length,e}(t,_.__wbindgen_malloc),g=w;_.seasonalities(s,b,g,p(n)?0:a(n));var e=h()[s/4+0],r=h()[s/4+1],i=(o=e,c=r,o>>>=0,S().subarray(o/4,o/4+c)).slice();return _.__wbindgen_free(e,4*r,4),i}finally{_.__wbindgen_add_to_stack_pointer(16)}var o,c}function j(t,n){const e=function(t,n){const e=n(4*t.length,4)>>>0;return S().set(t,e/4),w=t.length,e}(t,_.__wbindgen_malloc),r=w,i=_.ets(e,r,p(n)?0:a(n));return C.__wrap(i)}function O(){_.custom_init()}function x(t,n){try{return t.apply(this,n)}catch(t){_.__wbindgen_exn_store(a(t))}}const I="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((t=>_.__wbg_autoets_free(t>>>0)));class T{__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,I.unregister(this),t}free(){const t=this.__destroy_into_raw();_.__wbg_autoets_free(t)}constructor(t,n){try{const i=_.__wbindgen_add_to_stack_pointer(-16),o=l(n,_.__wbindgen_malloc,_.__wbindgen_realloc),a=w;_.autoets_new(i,t,o,a);var e=h()[i/4+0],r=h()[i/4+1];if(h()[i/4+2])throw c(r);return this.__wbg_ptr=e>>>0,this}finally{_.__wbindgen_add_to_stack_pointer(16)}}fit(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.autoets_fit(e,this.__wbg_ptr,a(t));var n=h()[e/4+0];if(h()[e/4+1])throw c(n)}finally{_.__wbindgen_add_to_stack_pointer(16)}}predict(t,n){try{const i=_.__wbindgen_add_to_stack_pointer(-16);_.autoets_predict(i,this.__wbg_ptr,t,!p(n),p(n)?0:n);var e=h()[i/4+0],r=h()[i/4+1];if(h()[i/4+2])throw c(r);return c(e)}finally{_.__wbindgen_add_to_stack_pointer(16)}}}const E="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((t=>_.__wbg_changepointdetector_free(t>>>0)));class U{static __wrap(t){t>>>=0;const n=Object.create(U.prototype);return n.__wbg_ptr=t,E.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,E.unregister(this),t}free(){const t=this.__destroy_into_raw();_.__wbg_changepointdetector_free(t)}static normalGamma(t){try{const r=_.__wbindgen_add_to_stack_pointer(-16);_.changepointdetector_normalGamma(r,p(t)?0:a(t));var n=h()[r/4+0],e=h()[r/4+1];if(h()[r/4+2])throw c(e);return U.__wrap(n)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static defaultArgpcp(t){try{const r=_.__wbindgen_add_to_stack_pointer(-16);_.changepointdetector_defaultArgpcp(r,p(t)?0:a(t));var n=h()[r/4+0],e=h()[r/4+1];if(h()[r/4+2])throw c(e);return U.__wrap(n)}finally{_.__wbindgen_add_to_stack_pointer(16)}}detectChangepoints(t){return c(_.changepointdetector_detectChangepoints(this.__wbg_ptr,a(t)))}}const z="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((t=>_.__wbg_loadedoutlierdetector_free(t>>>0)));class L{static __wrap(t){t>>>=0;const n=Object.create(L.prototype);return n.__wbg_ptr=t,z.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,z.unregister(this),t}free(){const t=this.__destroy_into_raw();_.__wbg_loadedoutlierdetector_free(t)}detect(){try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.loadedoutlierdetector_detect(e,this.__wbg_ptr);var t=h()[e/4+0],n=h()[e/4+1];if(h()[e/4+2])throw c(n);return c(t)}finally{_.__wbindgen_add_to_stack_pointer(16)}}updateDetector(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.loadedoutlierdetector_updateDetector(e,this.__wbg_ptr,a(t));var n=h()[e/4+0];if(h()[e/4+1])throw c(n)}finally{_.__wbindgen_add_to_stack_pointer(16)}}}const W="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((t=>_.__wbg_mstl_free(t>>>0)));class C{static __wrap(t){t>>>=0;const n=Object.create(C.prototype);return n.__wbg_ptr=t,W.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,W.unregister(this),t}free(){const t=this.__destroy_into_raw();_.__wbg_mstl_free(t)}fit(t){try{const e=_.__wbindgen_add_to_stack_pointer(-16);_.mstl_fit(e,this.__wbg_ptr,a(t));var n=h()[e/4+0];if(h()[e/4+1])throw c(n)}finally{_.__wbindgen_add_to_stack_pointer(16)}}predict(t,n){try{const i=_.__wbindgen_add_to_stack_pointer(-16);_.mstl_predict(i,this.__wbg_ptr,t,!p(n),p(n)?0:n);var e=h()[i/4+0],r=h()[i/4+1];if(h()[i/4+2])throw c(r);return c(e)}finally{_.__wbindgen_add_to_stack_pointer(16)}}predictInSample(t){try{const r=_.__wbindgen_add_to_stack_pointer(-16);_.mstl_predictInSample(r,this.__wbg_ptr,!p(t),p(t)?0:t);var n=h()[r/4+0],e=h()[r/4+1];if(h()[r/4+2])throw c(e);return c(n)}finally{_.__wbindgen_add_to_stack_pointer(16)}}}const D="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((t=>_.__wbg_outlierdetector_free(t>>>0)));class B{static __wrap(t){t>>>=0;const n=Object.create(B.prototype);return n.__wbg_ptr=t,D.register(n,n.__wbg_ptr,n),n}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,D.unregister(this),t}free(){const t=this.__destroy_into_raw();_.__wbg_outlierdetector_free(t)}static dbscan(t){try{const r=_.__wbindgen_add_to_stack_pointer(-16);_.outlierdetector_dbscan(r,a(t));var n=h()[r/4+0],e=h()[r/4+1];if(h()[r/4+2])throw c(e);return B.__wrap(n)}finally{_.__wbindgen_add_to_stack_pointer(16)}}static mad(t){try{const r=_.__wbindgen_add_to_stack_pointer(-16);_.outlierdetector_mad(r,a(t));var n=h()[r/4+0],e=h()[r/4+1];if(h()[r/4+2])throw c(e);return B.__wrap(n)}finally{_.__wbindgen_add_to_stack_pointer(16)}}detect(t,n){try{const i=_.__wbindgen_add_to_stack_pointer(-16);_.outlierdetector_detect(i,this.__wbg_ptr,a(t),n);var e=h()[i/4+0],r=h()[i/4+1];if(h()[i/4+2])throw c(r);return c(e)}finally{_.__wbindgen_add_to_stack_pointer(16)}}preprocess(t,n){try{const i=_.__wbindgen_add_to_stack_pointer(-16);_.outlierdetector_preprocess(i,this.__wbg_ptr,a(t),n);var e=h()[i/4+0],r=h()[i/4+1];if(h()[i/4+2])throw c(r);return L.__wrap(e)}finally{_.__wbindgen_add_to_stack_pointer(16)}}}function $(){const n={wbg:{}};return n.wbg.__wbindgen_object_drop_ref=function(t){c(t)},n.wbg.__wbindgen_object_clone_ref=function(t){return a(i(t))},n.wbg.__wbindgen_error_new=function(t,n){return a(new Error(u(t,n)))},n.wbg.__wbindgen_string_get=function(t,n){const e=i(n),r="string"==typeof e?e:void 0;var o=p(r)?0:l(r,_.__wbindgen_malloc,_.__wbindgen_realloc),c=w;h()[t/4+1]=c,h()[t/4+0]=o},n.wbg.__wbindgen_is_bigint=function(t){return"bigint"==typeof i(t)},n.wbg.__wbindgen_bigint_from_u64=function(t){return a(BigInt.asUintN(64,t))},n.wbg.__wbindgen_jsval_eq=function(t,n){return i(t)===i(n)},n.wbg.__wbindgen_boolean_get=function(t){const n=i(t);return"boolean"==typeof n?n?1:0:2},n.wbg.__wbindgen_is_string=function(t){return"string"==typeof i(t)},n.wbg.__wbindgen_number_get=function(t,n){const e=i(n),_="number"==typeof e?e:void 0;k()[t/8+1]=p(_)?0:_,h()[t/4+0]=!p(_)},n.wbg.__wbindgen_is_object=function(t){const n=i(t);return"object"==typeof n&&null!==n},n.wbg.__wbindgen_is_undefined=function(t){return void 0===i(t)},n.wbg.__wbindgen_in=function(t,n){return i(t)in i(n)},n.wbg.__wbindgen_string_new=function(t,n){return a(u(t,n))},n.wbg.__wbg_new_abda76e883ba8a5f=function(){return a(new Error)},n.wbg.__wbg_stack_658279fe44541cf6=function(t,n){const e=l(i(n).stack,_.__wbindgen_malloc,_.__wbindgen_realloc),r=w;h()[t/4+1]=r,h()[t/4+0]=e},n.wbg.__wbg_error_f851667af71bcfc6=function(t,n){let e,r;try{e=t,r=n,console.error(u(t,n))}finally{_.__wbindgen_free(e,r,1)}},n.wbg.__wbg_crypto_1d1f22824a6a080c=function(t){return a(i(t).crypto)},n.wbg.__wbg_process_4a72847cc503995b=function(t){return a(i(t).process)},n.wbg.__wbg_versions_f686565e586dd935=function(t){return a(i(t).versions)},n.wbg.__wbg_node_104a2ff8d6ea03a2=function(t){return a(i(t).node)},n.wbg.__wbg_require_cca90b1a94a0255b=function(){return x((function(){return a(t.require)}),arguments)},n.wbg.__wbindgen_is_function=function(t){return"function"==typeof i(t)},n.wbg.__wbg_msCrypto_eb05e62b530a1508=function(t){return a(i(t).msCrypto)},n.wbg.__wbg_randomFillSync_5c9c955aa56b6049=function(){return x((function(t,n){i(t).randomFillSync(c(n))}),arguments)},n.wbg.__wbg_getRandomValues_3aa56aa6edec874c=function(){return x((function(t,n){i(t).getRandomValues(i(n))}),arguments)},n.wbg.__wbindgen_number_new=function(t){return a(t)},n.wbg.__wbindgen_jsval_loose_eq=function(t,n){return i(t)==i(n)},n.wbg.__wbindgen_as_number=function(t){return+i(t)},n.wbg.__wbg_String_b9412f8799faab3e=function(t,n){const e=l(String(i(n)),_.__wbindgen_malloc,_.__wbindgen_realloc),r=w;h()[t/4+1]=r,h()[t/4+0]=e},n.wbg.__wbg_getwithrefkey_edc2c8960f0f1191=function(t,n){return a(i(t)[i(n)])},n.wbg.__wbg_set_f975102236d3c502=function(t,n,e){i(t)[c(n)]=c(e)},n.wbg.__wbg_get_bd8e338fbd5f5cc8=function(t,n){return a(i(t)[n>>>0])},n.wbg.__wbg_length_cd7af8117672b8b8=function(t){return i(t).length},n.wbg.__wbg_new_16b304a2cfa7ff4a=function(){return a(new Array)},n.wbg.__wbg_newnoargs_e258087cd0daa0ea=function(t,n){return a(new Function(u(t,n)))},n.wbg.__wbg_call_27c0f87801dedf93=function(){return x((function(t,n){return a(i(t).call(i(n)))}),arguments)},n.wbg.__wbg_new_72fb9a18b5ae2624=function(){return a(new Object)},n.wbg.__wbg_self_ce0dbfc45cf2f5be=function(){return x((function(){return a(self.self)}),arguments)},n.wbg.__wbg_window_c6fb939a7f436783=function(){return x((function(){return a(window.window)}),arguments)},n.wbg.__wbg_globalThis_d1e6af4856ba331b=function(){return x((function(){return a(globalThis.globalThis)}),arguments)},n.wbg.__wbg_global_207b558942527489=function(){return x((function(){return a(e.g.global)}),arguments)},n.wbg.__wbg_set_d4638f722068f043=function(t,n,e){i(t)[n>>>0]=c(e)},n.wbg.__wbg_instanceof_ArrayBuffer_836825be07d4c9d2=function(t){let n;try{n=i(t)instanceof ArrayBuffer}catch(t){n=!1}return n},n.wbg.__wbg_call_b3ca7c6051f9bec1=function(){return x((function(t,n,e){return a(i(t).call(i(n),i(e)))}),arguments)},n.wbg.__wbg_isSafeInteger_f7b04ef02296c4d2=function(t){return Number.isSafeInteger(i(t))},n.wbg.__wbg_entries_95cc2c823b285a09=function(t){return a(Object.entries(i(t)))},n.wbg.__wbg_buffer_12d079cc21e14bdb=function(t){return a(i(t).buffer)},n.wbg.__wbg_newwithbyteoffsetandlength_aa4a17c33a06e5cb=function(t,n,e){return a(new Uint8Array(i(t),n>>>0,e>>>0))},n.wbg.__wbg_new_63b92bc8671ed464=function(t){return a(new Uint8Array(i(t)))},n.wbg.__wbg_set_a47bac70306a19a7=function(t,n,e){i(t).set(i(n),e>>>0)},n.wbg.__wbg_length_c20a40f15020d68a=function(t){return i(t).length},n.wbg.__wbg_new_5e4931c0e7b0d773=function(t){return a(new Float64Array(i(t)))},n.wbg.__wbg_set_cb4cf3c3a46bcdd2=function(t,n,e){i(t).set(i(n),e>>>0)},n.wbg.__wbg_length_0382220548385255=function(t){return i(t).length},n.wbg.__wbg_instanceof_Uint8Array_2b3bbecd033d19f6=function(t){let n;try{n=i(t)instanceof Uint8Array}catch(t){n=!1}return n},n.wbg.__wbg_newwithlength_e9b4878cebadb3d3=function(t){return a(new Uint8Array(t>>>0))},n.wbg.__wbg_subarray_a1f73cd4b5b42fe1=function(t,n,e){return a(i(t).subarray(n>>>0,e>>>0))},n.wbg.__wbindgen_bigint_get_as_i64=function(t,n){const e=i(n),r="bigint"==typeof e?e:void 0;(null!==v&&0!==v.byteLength||(v=new BigInt64Array(_.memory.buffer)),v)[t/8+1]=p(r)?BigInt(0):r,h()[t/4+0]=!p(r)},n.wbg.__wbindgen_debug_string=function(t,n){const e=l(A(i(n)),_.__wbindgen_malloc,_.__wbindgen_realloc),r=w;h()[t/4+1]=r,h()[t/4+0]=e},n.wbg.__wbindgen_throw=function(t,n){throw new Error(u(t,n))},n.wbg.__wbindgen_memory=function(){return a(_.memory)},n}function q(t,n){return _=t.exports,N.__wbindgen_wasm_module=n,v=null,m=null,y=null,R=null,b=null,_.__wbindgen_start(),_}function M(t){if(void 0!==_)return _;const n=$();return t instanceof WebAssembly.Module||(t=new WebAssembly.Module(t)),q(new WebAssembly.Instance(t,n),t)}async function N(t){if(void 0!==_)return _;void 0===t&&(t=new URL(e(6294),e.b));const n=$();("string"==typeof t||"function"==typeof Request&&t instanceof Request||"function"==typeof URL&&t instanceof URL)&&(t=fetch(t));const{instance:r,module:i}=await async function(t,n){if("function"==typeof Response&&t instanceof Response){if("function"==typeof WebAssembly.instantiateStreaming)try{return await WebAssembly.instantiateStreaming(t,n)}catch(n){if("application/wasm"==t.headers.get("Content-Type"))throw n;console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",n)}const e=await t.arrayBuffer();return await WebAssembly.instantiate(e,n)}{const e=await WebAssembly.instantiate(t,n);return e instanceof WebAssembly.Instance?{instance:e,module:t}:e}}(await t,n);return q(r,i)}const G=N},6294:(t,n,e)=>{t.exports=e.p+"1c9bce46ffcb079ff752.wasm"}}]);
//# sourceMappingURL=308.js.map