import{Ba as c,La as g,Y as a,Z as s,_ as l,aa as o,ka as u,na as d}from"./chunk-W6R7I2TH.js";import{i as n}from"./chunk-PTJGHD3V.js";var p=new l("cdk-dir-doc",{providedIn:"root",factory:h});function h(){return o(u)}var m=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function D(t){let e=t?.toLowerCase()||"";return e==="auto"&&typeof navigator<"u"&&navigator?.language?m.test(navigator.language)?"rtl":"ltr":e==="rtl"?"rtl":"ltr"}var E=(()=>{let e=class e{get value(){return this.valueSignal()}valueSignal=d("ltr");change=new c;constructor(){let i=o(p,{optional:!0});if(i){let r=i.body?i.body.dir:null,v=i.documentElement?i.documentElement.dir:null;this.valueSignal.set(D(r||v||"ltr"))}}ngOnDestroy(){this.change.complete()}};n(e,"\u0275fac",function(r){return new(r||e)}),n(e,"\u0275prov",a({token:e,factory:e.\u0275fac,providedIn:"root"}));let t=e;return t})();var N=(()=>{let e=class e{};n(e,"\u0275fac",function(r){return new(r||e)}),n(e,"\u0275mod",g({type:e})),n(e,"\u0275inj",s({}));let t=e;return t})();export{E as a,N as b};
/**i18n:90f1dd82a779b57eddc91ef20913c88eecaa9632bba8ac04ad50f47ae2b82df7*/
//# sourceMappingURL=chunk-KJEDEVHT.js.map
