var r;(function(t){t[t.Little=0]="Little",t[t.Big=1]="Big"})(r||(r={}));function l(t,e){for(let i=1,n=1;i<t.length;i++,n++)if(e[n]==="\\")n++;else if(t[i]===":")return i;throw new Error(`Unterminated $localize metadata block in "${e}".`)}var o=function(t,...e){if(o.translate){let n=o.translate(t,e);t=n[0],e=n[1]}let i=s(t[0],t.raw[0]);for(let n=1;n<t.length;n++)i+=e[n-1]+s(t[n],t.raw[n]);return i},f=":";function s(t,e){return e.charAt(0)===f?t.substring(l(t,e)+1):t}globalThis.$localize=o;
