import{Ma as g,Y as a,Z as s,_ as l,aa as o,ka as u,ma as d,oa as c}from"./chunk-HJJWL6RD.js";import{i as n}from"./chunk-H2BCKOF6.js";var p=new l("cdk-dir-doc",{providedIn:"root",factory:()=>o(u)}),h=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function m(t){let e=t?.toLowerCase()||"";return e==="auto"&&typeof navigator<"u"&&navigator?.language?h.test(navigator.language)?"rtl":"ltr":e==="rtl"?"rtl":"ltr"}var I=(()=>{let e=class e{get value(){return this.valueSignal()}valueSignal=c("ltr");change=new d;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(m(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{I as a,N as b};
/**i18n:671d995daee9c68b73ac729b7ab2c3cf3be32c7f1a24d9dfa94e261c45ee5241*/
//# sourceMappingURL=chunk-OMZRIN7I.js.map
