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-R4Z6ZI3L.js";import{i as n}from"./chunk-P6NJDXIL.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:138e9aba5923606215625ab5641fbdc103d8a34cfe13ae910386f40f27aea675*/
//# sourceMappingURL=chunk-YSB3EXGJ.js.map
