import{$ as v,Aa as r,Af as w,B as E,Ba as oe,C as L,De as Q,Ea as le,J as W,Ka as P,Na as T,Oa as A,Pa as M,Q as _,Qa as de,R as j,Ra as ce,S as K,Sa as pe,Td as q,Va as l,W as se,Wg as B,Yg as Z,_ as f,a as F,ab as x,b as H,bb as Y,be as G,ca as S,ea as ne,fb as D,ga as U,ha as re,l as ie,mf as he,of as ue,r as d,u as O,uf as p,va as ae,vf as I,wa as X,wf as J,xf as ge,y as $,ya as C,yf as me,zf as fe}from"./chunk-SKPDQO4E.js";var b=class a{constructor(){this.isDragging=!1}static{this.\u0275fac=M({minVersion:"12.0.0",version:"17.3.8",ngImport:l,type:a,deps:[],target:S.Injectable})}static{this.\u0275prov=de({minVersion:"12.0.0",version:"17.3.8",ngImport:l,type:a})}};T({minVersion:"12.0.0",version:"17.3.8",ngImport:l,type:b,decorators:[{type:ne}]});var m=class a{constructor(e,t){this.sliderService=e,this.cdr=t,this.tooltipVisible="default",this.active=!1,this.dir="ltr",this.style={},this.enterHandle=()=>{this.sliderService.isDragging||(this.toggleTooltip(!0),this.updateTooltipPosition(),this.cdr.detectChanges())},this.leaveHandle=()=>{this.sliderService.isDragging||(this.toggleTooltip(!1),this.cdr.detectChanges())}}ngOnChanges(e){let{offset:t,value:i,active:n,tooltipVisible:s,reverse:o,dir:h}=e;(t||o||h)&&this.updateStyle(),i&&(this.updateTooltipTitle(),this.updateTooltipPosition()),n&&(n.currentValue?this.toggleTooltip(!0):this.toggleTooltip(!1)),s?.currentValue==="always"&&Promise.resolve().then(()=>this.toggleTooltip(!0,!0))}focus(){this.handleEl?.nativeElement.focus()}toggleTooltip(e,t=!1){!t&&(this.tooltipVisible!=="default"||!this.tooltip)||(e?this.tooltip?.show():this.tooltip?.hide())}updateTooltipTitle(){this.tooltipFormatter?this.tooltipTitle=typeof this.tooltipFormatter=="function"?this.tooltipFormatter(this.value):this.tooltipFormatter:this.tooltipTitle=`${this.value}`}updateTooltipPosition(){this.tooltip&&Promise.resolve().then(()=>this.tooltip?.updatePosition())}updateStyle(){let e=this.vertical,t=this.reverse,i=this.offset,n=e?{[t?"top":"bottom"]:`${i}%`,[t?"bottom":"top"]:"auto",transform:t?null:"translateY(+50%)"}:H(F({},this.getHorizontalStylePosition()),{transform:`translateX(${t?this.dir==="rtl"?"-":"+":this.dir==="rtl"?"+":"-"}50%)`});this.style=n,this.cdr.markForCheck()}getHorizontalStylePosition(){let e=this.reverse?"auto":`${this.offset}%`,t=this.reverse?`${this.offset}%`:"auto";if(this.dir==="rtl"){let i=e;e=t,t=i}return{left:e,right:t}}static{this.\u0275fac=M({minVersion:"12.0.0",version:"17.3.8",ngImport:l,type:a,deps:[{token:b},{token:P}],target:S.Component})}static{this.\u0275cmp=A({minVersion:"14.0.0",version:"17.3.8",type:a,isStandalone:!0,selector:"nz-slider-handle",inputs:{vertical:"vertical",reverse:"reverse",offset:"offset",value:"value",tooltipVisible:"tooltipVisible",tooltipPlacement:"tooltipPlacement",tooltipFormatter:"tooltipFormatter",active:"active",dir:"dir"},host:{listeners:{mouseenter:"enterHandle()",mouseleave:"leaveHandle()"}},viewQueries:[{propertyName:"handleEl",first:!0,predicate:["handle"],descendants:!0},{propertyName:"tooltip",first:!0,predicate:B,descendants:!0}],exportAs:["nzSliderHandle"],usesOnChanges:!0,ngImport:l,template:`
    <div
      #handle
      class="ant-slider-handle"
      tabindex="0"
      nz-tooltip
      [ngStyle]="style"
      [nzTooltipTitle]="tooltipFormatter === null || tooltipVisible === 'never' ? null : tooltipTitle"
      [nzTooltipTitleContext]="{ $implicit: value }"
      [nzTooltipTrigger]="null"
      [nzTooltipPlacement]="tooltipPlacement"
    ></div>
  `,isInline:!0,dependencies:[{kind:"ngmodule",type:Z},{kind:"directive",type:B,selector:"[nz-tooltip]",inputs:["nzTooltipTitle","nzTooltipTitleContext","nz-tooltip","nzTooltipTrigger","nzTooltipPlacement","nzTooltipOrigin","nzTooltipVisible","nzTooltipMouseEnterDelay","nzTooltipMouseLeaveDelay","nzTooltipOverlayClassName","nzTooltipOverlayStyle","nzTooltipArrowPointAtCenter","cdkConnectedOverlayPush","nzTooltipColor"],outputs:["nzTooltipVisibleChange"],exportAs:["nzTooltip"]},{kind:"directive",type:D,selector:"[ngStyle]",inputs:["ngStyle"]}],changeDetection:f.OnPush,encapsulation:v.None})}};d([p()],m.prototype,"active",void 0);T({minVersion:"12.0.0",version:"17.3.8",ngImport:l,type:m,decorators:[{type:C,args:[{changeDetection:f.OnPush,encapsulation:v.None,selector:"nz-slider-handle",exportAs:"nzSliderHandle",preserveWhitespaces:!1,template:`
    <div
      #handle
      class="ant-slider-handle"
      tabindex="0"
      nz-tooltip
      [ngStyle]="style"
      [nzTooltipTitle]="tooltipFormatter === null || tooltipVisible === 'never' ? null : tooltipTitle"
      [nzTooltipTitleContext]="{ $implicit: value }"
      [nzTooltipTrigger]="null"
      [nzTooltipPlacement]="tooltipPlacement"
    ></div>
  `,host:{"(mouseenter)":"enterHandle()","(mouseleave)":"leaveHandle()"},imports:[Z,D],standalone:!0}]}],ctorParameters:()=>[{type:b},{type:P}],propDecorators:{handleEl:[{type:X,args:["handle",{static:!1}]}],tooltip:[{type:X,args:[B,{static:!1}]}],vertical:[{type:r}],reverse:[{type:r}],offset:[{type:r}],value:[{type:r}],tooltipVisible:[{type:r}],tooltipPlacement:[{type:r}],tooltipFormatter:[{type:r}],active:[{type:r}],dir:[{type:r}]}});var y=class a{constructor(){this.lowerBound=null,this.upperBound=null,this.marksArray=[],this.vertical=!1,this.included=!1,this.marks=[]}ngOnChanges(e){let{marksArray:t,lowerBound:i,upperBound:n,reverse:s}=e;(t||s)&&this.buildMarks(),(t||i||n||s)&&this.togglePointActive()}trackById(e,t){return t.value}buildMarks(){let e=this.max-this.min;this.marks=this.marksArray.map(t=>{let{value:i,offset:n,config:s}=t,o=this.getMarkStyles(i,e,s);return{label:ve(s)?s.label:s,offset:n,style:o,value:i,config:s,active:!1}})}getMarkStyles(e,t,i){let n,s=this.reverse?this.max+this.min-e:e;return this.vertical?n={marginBottom:"-50%",bottom:`${(s-this.min)/t*100}%`}:n={transform:"translate3d(-50%, 0, 0)",left:`${(s-this.min)/t*100}%`},ve(i)&&i.style&&(n=F(F({},n),i.style)),n}togglePointActive(){this.marks&&this.lowerBound!==null&&this.upperBound!==null&&this.marks.forEach(e=>{let t=e.value,i=!this.included&&t===this.upperBound||this.included&&t<=this.upperBound&&t>=this.lowerBound;e.active=i})}static{this.\u0275fac=M({minVersion:"12.0.0",version:"17.3.8",ngImport:l,type:a,deps:[],target:S.Component})}static{this.\u0275cmp=A({minVersion:"14.0.0",version:"17.3.8",type:a,isStandalone:!0,selector:"nz-slider-marks",inputs:{lowerBound:"lowerBound",upperBound:"upperBound",marksArray:"marksArray",min:"min",max:"max",vertical:"vertical",included:"included",reverse:"reverse"},host:{classAttribute:"ant-slider-mark"},exportAs:["nzSliderMarks"],usesOnChanges:!0,ngImport:l,template:`
    <span
      class="ant-slider-mark-text"
      *ngFor="let attr of marks; trackBy: trackById"
      [class.ant-slider-mark-active]="attr.active"
      [ngStyle]="attr.style!"
      [innerHTML]="attr.label"
    ></span>
  `,isInline:!0,dependencies:[{kind:"directive",type:D,selector:"[ngStyle]",inputs:["ngStyle"]},{kind:"directive",type:x,selector:"[ngFor][ngForOf]",inputs:["ngForOf","ngForTrackBy","ngForTemplate"]}],changeDetection:f.OnPush,encapsulation:v.None})}};d([p()],y.prototype,"vertical",void 0);d([p()],y.prototype,"included",void 0);T({minVersion:"12.0.0",version:"17.3.8",ngImport:l,type:y,decorators:[{type:C,args:[{changeDetection:f.OnPush,encapsulation:v.None,preserveWhitespaces:!1,selector:"nz-slider-marks",exportAs:"nzSliderMarks",template:`
    <span
      class="ant-slider-mark-text"
      *ngFor="let attr of marks; trackBy: trackById"
      [class.ant-slider-mark-active]="attr.active"
      [ngStyle]="attr.style!"
      [innerHTML]="attr.label"
    ></span>
  `,imports:[D,x],standalone:!0,host:{class:"ant-slider-mark"}}]}],propDecorators:{lowerBound:[{type:r}],upperBound:[{type:r}],marksArray:[{type:r}],min:[{type:r}],max:[{type:r}],vertical:[{type:r}],included:[{type:r}],reverse:[{type:r}]}});function ve(a){return typeof a!="string"}var z=class a{constructor(){this.lowerBound=null,this.upperBound=null,this.marksArray=[],this.vertical=!1,this.included=!1,this.steps=[]}ngOnChanges(e){let{marksArray:t,lowerBound:i,upperBound:n,reverse:s}=e;(t||s)&&this.buildSteps(),(t||i||n||s)&&this.togglePointActive()}trackById(e,t){return t.value}buildSteps(){let e=this.vertical?"bottom":"left";this.steps=this.marksArray.map(t=>{let{value:i,config:n}=t,s=t.offset,o=this.max-this.min;return this.reverse&&(s=(this.max-i)/o*100),{value:i,offset:s,config:n,active:!1,style:{[e]:`${s}%`,transform:this.vertical?"translateY(50%)":"translateX(-50%)"}}})}togglePointActive(){this.steps&&this.lowerBound!==null&&this.upperBound!==null&&this.steps.forEach(e=>{let t=e.value,i=!this.included&&t===this.upperBound||this.included&&t<=this.upperBound&&t>=this.lowerBound;e.active=i})}static{this.\u0275fac=M({minVersion:"12.0.0",version:"17.3.8",ngImport:l,type:a,deps:[],target:S.Component})}static{this.\u0275cmp=A({minVersion:"14.0.0",version:"17.3.8",type:a,isStandalone:!0,selector:"nz-slider-step",inputs:{lowerBound:"lowerBound",upperBound:"upperBound",marksArray:"marksArray",min:"min",max:"max",vertical:"vertical",included:"included",reverse:"reverse"},host:{classAttribute:"ant-slider-step"},exportAs:["nzSliderStep"],usesOnChanges:!0,ngImport:l,template:`
    <span
      class="ant-slider-dot"
      *ngFor="let mark of steps; trackBy: trackById"
      [class.ant-slider-dot-active]="mark.active"
      [ngStyle]="mark.style!"
    ></span>
  `,isInline:!0,dependencies:[{kind:"directive",type:D,selector:"[ngStyle]",inputs:["ngStyle"]},{kind:"directive",type:x,selector:"[ngFor][ngForOf]",inputs:["ngForOf","ngForTrackBy","ngForTemplate"]}],changeDetection:f.OnPush,encapsulation:v.None})}};d([p()],z.prototype,"vertical",void 0);d([p()],z.prototype,"included",void 0);T({minVersion:"12.0.0",version:"17.3.8",ngImport:l,type:z,decorators:[{type:C,args:[{changeDetection:f.OnPush,encapsulation:v.None,selector:"nz-slider-step",exportAs:"nzSliderStep",preserveWhitespaces:!1,template:`
    <span
      class="ant-slider-dot"
      *ngFor="let mark of steps; trackBy: trackById"
      [class.ant-slider-dot-active]="mark.active"
      [ngStyle]="mark.style!"
    ></span>
  `,imports:[D,x],standalone:!0,host:{class:"ant-slider-step"}}]}],propDecorators:{lowerBound:[{type:r}],upperBound:[{type:r}],marksArray:[{type:r}],min:[{type:r}],max:[{type:r}],vertical:[{type:r}],included:[{type:r}],reverse:[{type:r}]}});var g=class a{constructor(){this.offset=0,this.reverse=!1,this.dir="ltr",this.length=0,this.vertical=!1,this.included=!1,this.style={}}ngOnChanges(){let e=this.vertical,t=this.reverse,i=this.included?"visible":"hidden",n=this.offset,s=this.length,o=e?{[t?"top":"bottom"]:`${n}%`,[t?"bottom":"top"]:"auto",height:`${s}%`,visibility:i}:H(F({},this.getHorizontalStylePosition()),{width:`${s}%`,visibility:i});this.style=o}getHorizontalStylePosition(){let e=this.reverse?"auto":`${this.offset}%`,t=this.reverse?`${this.offset}%`:"auto";if(this.dir==="rtl"){let i=e;e=t,t=i}return{left:e,right:t}}static{this.\u0275fac=M({minVersion:"12.0.0",version:"17.3.8",ngImport:l,type:a,deps:[],target:S.Component})}static{this.\u0275cmp=A({minVersion:"14.0.0",version:"17.3.8",type:a,isStandalone:!0,selector:"nz-slider-track",inputs:{offset:"offset",reverse:"reverse",dir:"dir",length:"length",vertical:"vertical",included:"included"},exportAs:["nzSliderTrack"],usesOnChanges:!0,ngImport:l,template:' <div class="ant-slider-track" [ngStyle]="style"></div> ',isInline:!0,dependencies:[{kind:"directive",type:D,selector:"[ngStyle]",inputs:["ngStyle"]}],changeDetection:f.OnPush,encapsulation:v.None})}};d([I()],g.prototype,"offset",void 0);d([p()],g.prototype,"reverse",void 0);d([I()],g.prototype,"length",void 0);d([p()],g.prototype,"vertical",void 0);d([p()],g.prototype,"included",void 0);T({minVersion:"12.0.0",version:"17.3.8",ngImport:l,type:g,decorators:[{type:C,args:[{changeDetection:f.OnPush,encapsulation:v.None,selector:"nz-slider-track",exportAs:"nzSliderTrack",preserveWhitespaces:!1,template:' <div class="ant-slider-track" [ngStyle]="style"></div> ',imports:[D],standalone:!0}]}],propDecorators:{offset:[{type:r}],reverse:[{type:r}],dir:[{type:r}],length:[{type:r}],vertical:[{type:r}],included:[{type:r}]}});var c=class a{constructor(e,t,i,n,s){this.slider=e,this.sliderService=t,this.cdr=i,this.platform=n,this.directionality=s,this.nzDisabled=!1,this.nzDots=!1,this.nzIncluded=!0,this.nzRange=!1,this.nzVertical=!1,this.nzReverse=!1,this.nzMarks=null,this.nzMax=100,this.nzMin=0,this.nzStep=1,this.nzTooltipVisible="default",this.nzTooltipPlacement="top",this.nzOnAfterChange=new re,this.value=null,this.cacheSliderStart=null,this.cacheSliderLength=null,this.activeValueIndex=void 0,this.track={offset:null,length:null},this.handles=[],this.marksArray=null,this.bounds={lower:null,upper:null},this.dir="ltr",this.destroy$=new ie,this.isNzDisableFirstChange=!0}ngOnInit(){this.dir=this.directionality.value,this.directionality.change?.pipe(_(this.destroy$)).subscribe(e=>{this.dir=e,this.cdr.detectChanges(),this.updateTrackAndHandles(),this.onValueChange(this.getValue(!0))}),this.handles=ye(this.nzRange?2:1),this.marksArray=this.nzMarks?this.generateMarkItems(this.nzMarks):null,this.bindDraggingHandlers(),this.toggleDragDisabled(this.nzDisabled),this.getValue()===null&&this.setValue(this.formatValue(null))}ngOnChanges(e){let{nzDisabled:t,nzMarks:i,nzRange:n}=e;t&&!t.firstChange?this.toggleDragDisabled(t.currentValue):i&&!i.firstChange?this.marksArray=this.nzMarks?this.generateMarkItems(this.nzMarks):null:n&&!n.firstChange&&(this.handles=ye(n.currentValue?2:1),this.setValue(this.formatValue(null)))}ngOnDestroy(){this.unsubscribeDrag(),this.destroy$.next(!0),this.destroy$.complete()}writeValue(e){this.setValue(e,!0)}onValueChange(e){}onTouched(){}registerOnChange(e){this.onValueChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||e,this.isNzDisableFirstChange=!1,this.toggleDragDisabled(this.nzDisabled),this.cdr.markForCheck()}onKeyDown(e){if(this.nzDisabled)return;let t=e.keyCode,i=t===39||t===38,n=t===37||t===40;if(!(i||n))return;e.preventDefault();let s=(n?-this.nzStep:this.nzStep)*(this.nzReverse?-1:1);s=this.dir==="rtl"?s*-1:s;let o=this.nzRange?this.value[this.activeValueIndex]+s:this.value+s;this.setActiveValue(w(o,this.nzMin,this.nzMax)),this.nzOnAfterChange.emit(this.getValue(!0))}onHandleFocusIn(e){this.activeValueIndex=e}setValue(e,t=!1){t?(this.value=this.formatValue(e),this.updateTrackAndHandles()):De(this.value,e)||(this.value=e,this.updateTrackAndHandles(),this.onValueChange(this.getValue(!0)))}getValue(e=!1){return e&&this.value&&u(this.value)?[...this.value].sort((t,i)=>t-i):this.value}getValueToOffset(e){let t=e;return typeof t>"u"&&(t=this.getValue(!0)),u(t)?t.map(i=>this.valueToOffset(i)):this.valueToOffset(t)}setActiveValueIndex(e){let t=this.getValue();if(u(t)){let i=null,n,s=-1;t.forEach((o,h)=>{n=Math.abs(e-o),(i===null||n<i)&&(i=n,s=h)}),this.activeValueIndex=s,this.handlerComponents.toArray()[s].focus()}else this.handlerComponents.toArray()[0].focus()}setActiveValue(e){if(u(this.value)){let t=[...this.value];t[this.activeValueIndex]=e,this.setValue(t)}else this.setValue(e)}updateTrackAndHandles(){let e=this.getValue(),t=this.getValueToOffset(e),i=this.getValue(!0),n=this.getValueToOffset(i),s=u(i)?i:[0,i],o=u(n)?[n[0],n[1]-n[0]]:[0,n];this.handles.forEach((h,k)=>{h.offset=u(t)?t[k]:t,h.value=u(e)?e[k]:e||0}),[this.bounds.lower,this.bounds.upper]=s,[this.track.offset,this.track.length]=o,this.cdr.markForCheck()}onDragStart(e){this.toggleDragMoving(!0),this.cacheSliderProperty(),this.setActiveValueIndex(this.getLogicalValue(e)),this.setActiveValue(this.getLogicalValue(e)),this.showHandleTooltip(this.nzRange?this.activeValueIndex:0)}onDragMove(e){this.setActiveValue(this.getLogicalValue(e)),this.cdr.markForCheck()}getLogicalValue(e){return this.nzReverse?!this.nzVertical&&this.dir==="rtl"?e:this.nzMax-e+this.nzMin:!this.nzVertical&&this.dir==="rtl"?this.nzMax-e+this.nzMin:e}onDragEnd(){this.nzOnAfterChange.emit(this.getValue(!0)),this.toggleDragMoving(!1),this.cacheSliderProperty(!0),this.hideAllHandleTooltip(),this.cdr.markForCheck()}bindDraggingHandlers(){if(!this.platform.isBrowser)return;let e=o=>h=>o.reduce((k,V)=>k[V]||k,h),t=this.slider.nativeElement,i=this.nzVertical?"pageY":"pageX",n={start:"mousedown",move:"mousemove",end:"mouseup",pluckKey:[i]},s={start:"touchstart",move:"touchmove",end:"touchend",pluckKey:["touches","0",i],filter:o=>o instanceof TouchEvent};[n,s].forEach(o=>{let{start:h,move:k,end:V,pluckKey:R,filter:te=()=>!0}=o;o.startPlucked$=$(t,h).pipe(L(te),j(J),O(e(R)),O(N=>this.findClosestValue(N))),o.end$=$(document,V),o.moveResolved$=$(document,k).pipe(L(te),j(J),O(e(R)),W(),O(N=>this.findClosestValue(N)),W(),_(o.end$))}),this.dragStart$=E(n.startPlucked$,s.startPlucked$),this.dragMove$=E(n.moveResolved$,s.moveResolved$),this.dragEnd$=E(n.end$,s.end$)}subscribeDrag(e=["start","move","end"]){e.indexOf("start")!==-1&&this.dragStart$&&!this.dragStart_&&(this.dragStart_=this.dragStart$.subscribe(this.onDragStart.bind(this))),e.indexOf("move")!==-1&&this.dragMove$&&!this.dragMove_&&(this.dragMove_=this.dragMove$.subscribe(this.onDragMove.bind(this))),e.indexOf("end")!==-1&&this.dragEnd$&&!this.dragEnd_&&(this.dragEnd_=this.dragEnd$.subscribe(this.onDragEnd.bind(this)))}unsubscribeDrag(e=["start","move","end"]){e.indexOf("start")!==-1&&this.dragStart_&&(this.dragStart_.unsubscribe(),this.dragStart_=null),e.indexOf("move")!==-1&&this.dragMove_&&(this.dragMove_.unsubscribe(),this.dragMove_=null),e.indexOf("end")!==-1&&this.dragEnd_&&(this.dragEnd_.unsubscribe(),this.dragEnd_=null)}toggleDragMoving(e){let t=["move","end"];e?(this.sliderService.isDragging=!0,this.subscribeDrag(t)):(this.sliderService.isDragging=!1,this.unsubscribeDrag(t))}toggleDragDisabled(e){e?this.unsubscribeDrag():this.subscribeDrag(["start"])}findClosestValue(e){let t=this.getSliderStartPosition(),i=this.getSliderLength(),n=w((e-t)/i,0,1),s=(this.nzMax-this.nzMin)*(this.nzVertical?1-n:n)+this.nzMin,o=this.nzMarks===null?[]:Object.keys(this.nzMarks).map(parseFloat).sort((V,R)=>V-R);if(this.nzStep!==0&&!this.nzDots){let V=Math.round(s/this.nzStep)*this.nzStep;o.push(V)}let h=o.map(V=>Math.abs(s-V)),k=o[h.indexOf(Math.min(...h))];return this.nzStep===0?k:parseFloat(k.toFixed(fe(this.nzStep)))}valueToOffset(e){return me(this.nzMin,this.nzMax,e)}getSliderStartPosition(){if(this.cacheSliderStart!==null)return this.cacheSliderStart;let e=ge(this.slider.nativeElement);return this.nzVertical?e.top:e.left}getSliderLength(){if(this.cacheSliderLength!==null)return this.cacheSliderLength;let e=this.slider.nativeElement;return this.nzVertical?e.clientHeight:e.clientWidth}cacheSliderProperty(e=!1){this.cacheSliderStart=e?null:this.getSliderStartPosition(),this.cacheSliderLength=e?null:this.getSliderLength()}formatValue(e){return ue(e)?this.nzRange?[this.nzMin,this.nzMax]:this.nzMin:ke(e,this.nzRange)?u(e)?e.map(t=>w(t,this.nzMin,this.nzMax)):w(e,this.nzMin,this.nzMax):this.nzDefaultValue?this.nzDefaultValue:this.nzRange?[this.nzMin,this.nzMax]:this.nzMin}showHandleTooltip(e=0){this.handles.forEach((t,i)=>{t.active=i===e})}hideAllHandleTooltip(){this.handles.forEach(e=>e.active=!1)}generateMarkItems(e){let t=[];for(let i in e)if(e.hasOwnProperty(i)){let n=e[i],s=typeof i=="number"?i:parseFloat(i);s>=this.nzMin&&s<=this.nzMax&&t.push({value:s,offset:this.valueToOffset(s),config:n})}return t.length?t:null}static{this.\u0275fac=M({minVersion:"12.0.0",version:"17.3.8",ngImport:l,type:a,deps:[{token:U},{token:b},{token:P},{token:q},{token:G,optional:!0}],target:S.Component})}static{this.\u0275cmp=A({minVersion:"14.0.0",version:"17.3.8",type:a,isStandalone:!0,selector:"nz-slider",inputs:{nzDisabled:"nzDisabled",nzDots:"nzDots",nzIncluded:"nzIncluded",nzRange:"nzRange",nzVertical:"nzVertical",nzReverse:"nzReverse",nzDefaultValue:"nzDefaultValue",nzMarks:"nzMarks",nzMax:"nzMax",nzMin:"nzMin",nzStep:"nzStep",nzTooltipVisible:"nzTooltipVisible",nzTooltipPlacement:"nzTooltipPlacement",nzTipFormatter:"nzTipFormatter"},outputs:{nzOnAfterChange:"nzOnAfterChange"},host:{listeners:{keydown:"onKeyDown($event)"},properties:{"class.ant-slider-rtl":"dir === 'rtl'","class.ant-slider-disabled":"nzDisabled","class.ant-slider-vertical":"nzVertical","class.ant-slider-with-marks":"marksArray"},classAttribute:"ant-slider"},providers:[{provide:Q,useExisting:K(()=>a),multi:!0},b],viewQueries:[{propertyName:"handlerComponents",predicate:m,descendants:!0}],exportAs:["nzSlider"],usesOnChanges:!0,ngImport:l,template:`
    <div class="ant-slider-rail"></div>
    <nz-slider-track
      [vertical]="nzVertical"
      [included]="nzIncluded"
      [offset]="track.offset!"
      [length]="track.length!"
      [reverse]="nzReverse"
      [dir]="dir"
    ></nz-slider-track>
    <nz-slider-step
      *ngIf="marksArray"
      [vertical]="nzVertical"
      [min]="nzMin"
      [max]="nzMax"
      [lowerBound]="$any(bounds.lower)"
      [upperBound]="$any(bounds.upper)"
      [marksArray]="marksArray"
      [included]="nzIncluded"
      [reverse]="nzReverse"
    ></nz-slider-step>
    <nz-slider-handle
      *ngFor="let handle of handles; index as handleIndex"
      [vertical]="nzVertical"
      [reverse]="nzReverse"
      [offset]="handle.offset!"
      [value]="handle.value!"
      [active]="handle.active"
      [tooltipFormatter]="nzTipFormatter"
      [tooltipVisible]="nzTooltipVisible"
      [tooltipPlacement]="nzTooltipPlacement"
      [dir]="dir"
      (focusin)="onHandleFocusIn(handleIndex)"
    ></nz-slider-handle>
    <nz-slider-marks
      *ngIf="marksArray"
      [vertical]="nzVertical"
      [min]="nzMin"
      [max]="nzMax"
      [lowerBound]="$any(bounds.lower)"
      [upperBound]="$any(bounds.upper)"
      [marksArray]="marksArray"
      [included]="nzIncluded"
      [reverse]="nzReverse"
    ></nz-slider-marks>
  `,isInline:!0,dependencies:[{kind:"component",type:g,selector:"nz-slider-track",inputs:["offset","reverse","dir","length","vertical","included"],exportAs:["nzSliderTrack"]},{kind:"component",type:z,selector:"nz-slider-step",inputs:["lowerBound","upperBound","marksArray","min","max","vertical","included","reverse"],exportAs:["nzSliderStep"]},{kind:"component",type:m,selector:"nz-slider-handle",inputs:["vertical","reverse","offset","value","tooltipVisible","tooltipPlacement","tooltipFormatter","active","dir"],exportAs:["nzSliderHandle"]},{kind:"directive",type:x,selector:"[ngFor][ngForOf]",inputs:["ngForOf","ngForTrackBy","ngForTemplate"]},{kind:"component",type:y,selector:"nz-slider-marks",inputs:["lowerBound","upperBound","marksArray","min","max","vertical","included","reverse"],exportAs:["nzSliderMarks"]},{kind:"directive",type:Y,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]}],changeDetection:f.OnPush,encapsulation:v.None})}};d([p()],c.prototype,"nzDisabled",void 0);d([p()],c.prototype,"nzDots",void 0);d([p()],c.prototype,"nzIncluded",void 0);d([p()],c.prototype,"nzRange",void 0);d([p()],c.prototype,"nzVertical",void 0);d([p()],c.prototype,"nzReverse",void 0);d([I()],c.prototype,"nzMax",void 0);d([I()],c.prototype,"nzMin",void 0);d([I()],c.prototype,"nzStep",void 0);T({minVersion:"12.0.0",version:"17.3.8",ngImport:l,type:c,decorators:[{type:C,args:[{changeDetection:f.OnPush,encapsulation:v.None,selector:"nz-slider",exportAs:"nzSlider",preserveWhitespaces:!1,providers:[{provide:Q,useExisting:K(()=>c),multi:!0},b],template:`
    <div class="ant-slider-rail"></div>
    <nz-slider-track
      [vertical]="nzVertical"
      [included]="nzIncluded"
      [offset]="track.offset!"
      [length]="track.length!"
      [reverse]="nzReverse"
      [dir]="dir"
    ></nz-slider-track>
    <nz-slider-step
      *ngIf="marksArray"
      [vertical]="nzVertical"
      [min]="nzMin"
      [max]="nzMax"
      [lowerBound]="$any(bounds.lower)"
      [upperBound]="$any(bounds.upper)"
      [marksArray]="marksArray"
      [included]="nzIncluded"
      [reverse]="nzReverse"
    ></nz-slider-step>
    <nz-slider-handle
      *ngFor="let handle of handles; index as handleIndex"
      [vertical]="nzVertical"
      [reverse]="nzReverse"
      [offset]="handle.offset!"
      [value]="handle.value!"
      [active]="handle.active"
      [tooltipFormatter]="nzTipFormatter"
      [tooltipVisible]="nzTooltipVisible"
      [tooltipPlacement]="nzTooltipPlacement"
      [dir]="dir"
      (focusin)="onHandleFocusIn(handleIndex)"
    ></nz-slider-handle>
    <nz-slider-marks
      *ngIf="marksArray"
      [vertical]="nzVertical"
      [min]="nzMin"
      [max]="nzMax"
      [lowerBound]="$any(bounds.lower)"
      [upperBound]="$any(bounds.upper)"
      [marksArray]="marksArray"
      [included]="nzIncluded"
      [reverse]="nzReverse"
    ></nz-slider-marks>
  `,imports:[g,z,m,x,y,Y],standalone:!0,host:{class:"ant-slider","[class.ant-slider-rtl]":"dir === 'rtl'","[class.ant-slider-disabled]":"nzDisabled","[class.ant-slider-vertical]":"nzVertical","[class.ant-slider-with-marks]":"marksArray","(keydown)":"onKeyDown($event)"}}]}],ctorParameters:()=>[{type:U},{type:b},{type:P},{type:q},{type:G,decorators:[{type:se}]}],propDecorators:{handlerComponents:[{type:ae,args:[m]}],nzDisabled:[{type:r}],nzDots:[{type:r}],nzIncluded:[{type:r}],nzRange:[{type:r}],nzVertical:[{type:r}],nzReverse:[{type:r}],nzDefaultValue:[{type:r}],nzMarks:[{type:r}],nzMax:[{type:r}],nzMin:[{type:r}],nzStep:[{type:r}],nzTooltipVisible:[{type:r}],nzTooltipPlacement:[{type:r}],nzTipFormatter:[{type:r}],nzOnAfterChange:[{type:oe}]}});function ze(){return new Error(`The "nzRange" can't match the "ngModel"'s type, please check these properties: "nzRange", "ngModel", "nzDefaultValue".`)}function u(a){return a instanceof Array?a.length===2:!1}function ye(a){return Array(a).fill(0).map(()=>({offset:null,value:null,active:!1}))}function ke(a,e){return!u(a)&&isNaN(a)||u(a)&&a.some(t=>isNaN(t))?!1:Ve(a,e)}function Ve(a,e=!1){if(u(a)!==e)throw ze();return!0}function De(a,e){return typeof a!=typeof e?!1:u(a)&&u(e)?he(a,e):a===e}var ee=class a{static{this.\u0275fac=M({minVersion:"12.0.0",version:"17.3.8",ngImport:l,type:a,deps:[],target:S.NgModule})}static{this.\u0275mod=pe({minVersion:"14.0.0",version:"17.3.8",ngImport:l,type:a,imports:[c,g,m,z,y],exports:[c,g,m,z,y]})}static{this.\u0275inj=ce({minVersion:"12.0.0",version:"17.3.8",ngImport:l,type:a,imports:[c,m]})}};T({minVersion:"12.0.0",version:"17.3.8",ngImport:l,type:ee,decorators:[{type:le,args:[{imports:[c,g,m,z,y],exports:[c,g,m,z,y]}]}]});export{ee as a};
