class t{static setVegaLogLevel(t){this.logLevel=t}static log(...t){this.shouldLog("log")&&console.log(`%c${this.LOG_PREFIX_STR}`,this.LOG_PREFIX_STYLE,...t)}static warn(...t){this.shouldLog("warn")&&console.warn(`%c${this.LOG_PREFIX_STR}`,this.LOG_PREFIX_STYLE,...t)}static error(...t){this.shouldLog("error")&&console.error(`%c${this.LOG_PREFIX_STR}`,this.LOG_PREFIX_STYLE,...t)}static shouldLog(t){return this.LOG_LEVELS.findIndex((n=>n===t))<=this.LOG_LEVELS.findIndex((t=>t===this.logLevel))}}function n(n){t.setVegaLogLevel(n)}t.logLevel="error",t.LOG_PREFIX_STR="[Vega]",t.LOG_PREFIX_STYLE="font-weight: bold",t.LOG_LEVELS=["off","error","warn","log"];class s{static log(...t){console.log(`%c${this.LOG_PREFIX_STR}`,this.LOG_PREFIX_STYLE,...t)}static warn(...t){console.warn(`%c${this.LOG_PREFIX_STR}`,this.LOG_PREFIX_STYLE,...t)}static error(...t){console.error(`%c${this.LOG_PREFIX_STR}`,this.LOG_PREFIX_STYLE,...t)}}s.LOG_PREFIX_STR="[Vega]",s.LOG_PREFIX_STYLE="font-weight: bold";const o=Symbol("ProcessorInternalCallback"),i=Symbol("SlimmerConsumedBy"),e=Symbol("ConsumerSlimmers"),c=Symbol("CurrentlyInvokedMethodName");function r(t){return function(n,s){Object.defineProperty(n,s,{get:u(s,t),set:a(s,t),configurable:!0})}}function a(t,n={}){return function(o){var e;n.writable?this[i][null!==(e=n.componentFieldName)&&void 0!==e?e:t]=o:s.error(`${t} is not writable`)}}function u(t,n={}){return function(){const{componentFieldName:s}=n;return this[i][null!=s?s:t]}}function l(t){return function(n,s){!function(t){Object.prototype.hasOwnProperty.call(t,o)||(t[o]=t[o]?[].concat(t[o]):[])}(n),n[o].push({componentMethodName:t,slimmerMethodName:s})}}function h(){return function(t,n){Object.defineProperty(t,n,{set:f(n),get:m(n)})}}function f(t){return function(n){this[e]||(this[e]=new Map),this[e].set(t,n),n[i]=this,function(t,n){const s=t.constructor.prototype;if(s[o])for(const i of s[o])n[i.componentMethodName]=g(n,t,n[i.componentMethodName],i)}(n,this)}}function m(t){return function(){return this[e].get(t)}}function g(t,n,s,o){return function(...i){const e=null==s?void 0:s.apply(t,i);return e&&"function"==typeof e.then?e.then((()=>n[o.slimmerMethodName].call(n,...i))):n[o.slimmerMethodName].call(n,...i)}}class b{}class d{static register(t){this.globalSlimmers=t}}d.globalSlimmers=[];export{e as C,d as G,h as I,t as L,l as M,i as S,b as V,o as a,c as b,r as c,f as d,m as e,n as s}