System.register(["@angular/core","@angular/common"],function(t){"use strict";var e,i,n,r,o;return{setters:[function(t){e=t.InjectionToken,i=t.inject,n=t,t.Injectable,t.Optional,t.Inject,t.Directive,t.Output,t.Input,t.NgModule,r=t.EventEmitter},function(t){o=t.DOCUMENT}],execute:function(){const s=t("DIR_DOCUMENT",new e("cdk-dir-doc",{providedIn:"root",factory:function(){return i(o)}}));const c=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function a(t){const e=t?.toLowerCase()||"";return"auto"===e&&"undefined"!=typeof navigator&&navigator?.language?c.test(navigator.language)?"rtl":"ltr":"rtl"===e?"rtl":"ltr"}class u{constructor(t){if(this.value="ltr",this.change=new r,t){const e=t.body?t.body.dir:null,i=t.documentElement?t.documentElement.dir:null;this.value=a(e||i||"ltr")}}ngOnDestroy(){this.change.complete()}}t("Directionality",u),u.\u0275fac=function(t){return new(t||u)(n.\u0275\u0275inject(s,8))},u.\u0275prov=n.\u0275\u0275defineInjectable({token:u,factory:u.\u0275fac,providedIn:"root"});class d{constructor(){this._dir="ltr",this._isInitialized=!1,this.change=new r}get dir(){return this._dir}set dir(t){const e=this._dir;this._dir=a(t),this._rawDir=t,e!==this._dir&&this._isInitialized&&this.change.emit(this._dir)}get value(){return this.dir}ngAfterContentInit(){this._isInitialized=!0}ngOnDestroy(){this.change.complete()}}t("Dir",d),d.\u0275fac=function(t){return new(t||d)},d.\u0275dir=n.\u0275\u0275defineDirective({type:d,selectors:[["","dir",""]],hostVars:1,hostBindings:function(t,e){2&t&&n.\u0275\u0275attribute("dir",e._rawDir)},inputs:{dir:"dir"},outputs:{change:"dirChange"},exportAs:["dir"],features:[n.\u0275\u0275ProvidersFeature([{provide:u,useExisting:d}])]});class l{}t("BidiModule",l),l.\u0275fac=function(t){return new(t||l)},l.\u0275mod=n.\u0275\u0275defineNgModule({type:l}),l.\u0275inj=n.\u0275\u0275defineInjector({})}}});
