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