import{Y as i,_ as c,aa as a,oa as l,tc as d}from"./chunk-XBTZE2EC.js";import{i as r}from"./chunk-WHYNGVB3.js";var s=new c("cdk-dir-doc",{providedIn:"root",factory:f});function f(){return a(d)}var m=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function v(o){let t=o?.toLowerCase()||"";return t==="auto"&&typeof navigator<"u"&&navigator?.language?m.test(navigator.language)?"rtl":"ltr":t==="rtl"?"rtl":"ltr"}var E=(()=>{let t=class t{value="ltr";change=new l;constructor(){let e=a(s,{optional:!0});if(e){let n=e.body?e.body.dir:null,u=e.documentElement?e.documentElement.dir:null;this.value=v(n||u||"ltr")}}ngOnDestroy(){this.change.complete()}};r(t,"\u0275fac",function(n){return new(n||t)}),r(t,"\u0275prov",i({token:t,factory:t.\u0275fac,providedIn:"root"}));let o=t;return o})();export{E as a};
/**i18n:56bde403ffba090cdb11aaac0f86ffb9ae7c2bab95df4b44d5dba510264fcf4f*/
//# sourceMappingURL=chunk-L7DNFYYG.js.map
