New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@ng-select/ng-select

Package Overview
Dependencies
Maintainers
1
Versions
285
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ng-select/ng-select - npm Package Compare versions

Comparing version 0.2.4 to 0.2.5

4

bundles/ng-select.umd.min.js

@@ -1,3 +0,3 @@

!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@angular/forms"),require("@angular/common")):"function"==typeof define&&define.amd?define(["exports","@angular/core","@angular/forms","@angular/common"],e):e(t.ngSelect=t.ngSelect||{},t.ng.core,t.ng.forms,t.ng.common)}(this,function(t,e,r,i){"use strict";function n(t){var e=function(t){return _[t]||t};return t.replace(/[^\u0000-\u007E]/g,e)}function o(t,e){return e={exports:{}},t(e,e.exports),e.exports}function s(t){return"function"==typeof t}function a(t){return null!=t&&"object"==typeof t}function l(){try{return R.apply(this,arguments)}catch(t){return F.errorObject.e=t,F.errorObject}}function c(t){return R=t,l}function u(t){return t.reduce(function(t,e){return t.concat(e instanceof G.UnsubscriptionError?e.errors:e)},[])}function p(t,e,r){if(t){if(t instanceof ot.Subscriber)return t;if(t[tt.rxSubscriber])return t[tt.rxSubscriber]()}return t||e||r?new ot.Subscriber(t,e,r):new ot.Subscriber(X.empty)}function h(t){return t&&"function"==typeof t.schedule}function d(t){return t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}function f(t,e,r,i){var n=new Jt.InnerSubscriber(t,r,i);if(n.closed)return null;if(e instanceof pt.Observable)return e._isScalar?(n.next(e.value),n.complete(),null):e.subscribe(n);if(Bt.isArrayLike(e)){for(var o=0,s=e.length;o<s&&!n.closed;o++)n.next(e[o]);n.closed||n.complete()}else{if($t.isPromise(e))return e.then(function(t){n.closed||(n.next(t),n.complete())},function(t){return n.error(t)}).then(null,function(t){j.root.setTimeout(function(){throw t})}),n;if(e&&"function"==typeof e[Zt.iterator])for(var a=e[Zt.iterator]();;){var l=a.next();if(l.done){n.complete();break}if(n.next(l.value),n.closed)break}else if(e&&"function"==typeof e[lt.observable]){var c=e[lt.observable]();if("function"==typeof c.subscribe)return c.subscribe(new Jt.InnerSubscriber(t,r,i));n.error(new TypeError("Provided object does not correctly implement Symbol.observable"))}else{var u=H.isObject(e)?"an invalid object":"'"+e+"'",p="You provided "+u+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.";n.error(new TypeError(p))}}return null}function b(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];var r=null;return"function"==typeof t[t.length-1]&&(r=t.pop()),1===t.length&&M.isArray(t[0])&&(t=t[0].slice()),t.unshift(this),this.lift.call(new Mt.ArrayObservable(t),new ie(r))}function m(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];var r=null,i=null;return It.isScheduler(t[t.length-1])&&(i=t.pop()),"function"==typeof t[t.length-1]&&(r=t.pop()),1===t.length&&M.isArray(t[0])&&(t=t[0]),new Mt.ArrayObservable(t,i).lift(new ae.CombineLatestOperator(r))}function y(t){return{ngModule:fe,providers:[{provide:E,useValue:t}]}}var g=function(){function t(t){this.template=t}return t.decorators=[{type:e.Directive,args:[{selector:"[ng-option-tmp]"}]}],t.ctorParameters=function(){return[{type:e.TemplateRef}]},t}(),v=function(){function t(t){this.template=t}return t.decorators=[{type:e.Directive,args:[{selector:"[ng-label-tmp]"}]}],t.ctorParameters=function(){return[{type:e.TemplateRef}]},t}(),w=function(){function t(t,r,i){this.element=t,this.zone=r,this.renderer=i,this.items=[],this.bufferAmount=0,this.update=new e.EventEmitter,this.startupLoop=!0,this.disposeScrollListener=function(){}}return Object.defineProperty(t.prototype,"enabled",{get:function(){return this.items&&this.items.length>20},enumerable:!0,configurable:!0}),t.prototype.handleScroll=function(){var t=this,e=function(){if(!t.enabled)return void t.update.emit(t.items);t.refresh()};this.disposeScrollListener=this.renderer.listen(this.element.nativeElement,"scroll",e)},t.prototype.ngOnInit=function(){this.handleScroll(),this.scrollbarWidth=0,this.scrollbarHeight=0},t.prototype.ngOnDestroy=function(){this.disposeScrollListener()},t.prototype.ngOnChanges=function(t){this.previousStart=void 0,this.previousEnd=void 0;var e=t.items||{};(void 0!==t.items&&void 0===e.previousValue||void 0!==e.previousValue&&0===e.previousValue.length)&&(this.startupLoop=!0),this.items=e.currentValue,this.refresh()},t.prototype.refresh=function(){var t=this;if(!this.enabled)return void this.update.emit(this.items);this.zone.runOutsideAngular(function(){requestAnimationFrame(function(){return t.calculateItems()})})},t.prototype.scrollInto=function(t){var e=this.element.nativeElement,r=(this.items||[]).indexOf(t);if(!(r<0||r>=(this.items||[]).length)){var i=this.calculateDimensions(),n=Math.floor(i.viewHeight/i.childHeight)-1;e.scrollTop=Math.floor(r/i.itemsPerRow)*i.childHeight-i.childHeight*Math.min(r,n),this.refresh()}},t.prototype.countItemsPerRow=function(){var t,e,r=this.contentElementRef.nativeElement.children;for(e=0;e<r.length&&(void 0===t||t===r[e].offsetTop);e++)t=r[e].offsetTop;return e},t.prototype.getElementsOffset=function(){var t=0;return this.containerElementRef&&this.containerElementRef.nativeElement&&(t+=this.containerElementRef.nativeElement.offsetTop),t},t.prototype.calculateDimensions=function(){var t,e=this.element.nativeElement,r=this.items||[],i=r.length,n=e.clientWidth-this.scrollbarWidth,o=e.clientHeight-this.scrollbarHeight;if(void 0===this.childWidth||void 0===this.childHeight){var s=this.contentElementRef.nativeElement;this.containerElementRef&&this.containerElementRef.nativeElement&&(s=this.containerElementRef.nativeElement),t=s.children[0]?s.children[0].getBoundingClientRect():{width:n,height:o}}var a=this.childWidth||t.width,l=this.childHeight||t.height,c=Math.max(1,this.countItemsPerRow()),u=Math.max(1,Math.floor(n/a)),p=Math.max(1,Math.floor(o/l)),h=Math.max(0,e.scrollTop);return 1===p&&Math.floor(h/this.scrollHeight*i)+u>=i&&(c=u),{itemCount:i,viewWidth:n,viewHeight:o,childWidth:a,childHeight:l,itemsPerRow:c,itemsPerCol:p,itemsPerRowByCalc:u}},t.prototype.calculateItems=function(){var t=this;e.NgZone.assertNotInAngularZone();var r=this.element.nativeElement,i=this.calculateDimensions(),n=this.items||[],o=this.getElementsOffset();this.scrollHeight=i.childHeight*i.itemCount/i.itemsPerRow,r.scrollTop>this.scrollHeight&&(r.scrollTop=this.scrollHeight+o);var s=Math.max(0,r.scrollTop-o),a=s/this.scrollHeight*i.itemCount/i.itemsPerRow,l=Math.min(i.itemCount,Math.ceil(a)*i.itemsPerRow+i.itemsPerRow*(i.itemsPerCol+1)),c=l,u=l%i.itemsPerRow;u&&(c=l+i.itemsPerRow-u);var p=Math.max(0,c-i.itemsPerCol*i.itemsPerRow-i.itemsPerRow),h=Math.min(p,Math.floor(a)*i.itemsPerRow);this.topPadding=i.childHeight*Math.ceil(h/i.itemsPerRow)-i.childHeight*Math.min(h,this.bufferAmount),h=isNaN(h)?-1:h,l=isNaN(l)?-1:l,h-=this.bufferAmount,h=Math.max(0,h),l+=this.bufferAmount,l=Math.min(n.length,l),h!==this.previousStart||l!==this.previousEnd?(this.zone.run(function(){t.update.emit(n.slice(h,l))}),this.previousStart=h,this.previousEnd=l,!0===this.startupLoop&&this.refresh()):!0===this.startupLoop&&(this.startupLoop=!1,this.refresh())},t.decorators=[{type:e.Component,args:[{selector:"virtual-scroll,[virtualScroll]",exportAs:"virtualScroll",template:"\n <div *ngIf=\"enabled\" class=\"total-padding\" [style.height]=\"scrollHeight + 'px'\"></div>\n <div #content\n [class.scrollable-content]=\"enabled\"\n [style.transform]=\"enabled ? 'translateY(' + topPadding + 'px)' : 'none'\"\n [style.webkitTransform]=\"enabled ? 'translateY(' + topPadding + 'px)' : 'none'\">\n <ng-content></ng-content>\n </div>\n ",host:{"[style.overflow-y]":"parentScroll ? 'hidden' : 'auto'"},styles:["\n :host {\n overflow: hidden;\n position: relative;\n display: block;\n -webkit-overflow-scrolling: touch;\n }\n\n .scrollable-content {\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n position: absolute;\n }\n\n .total-padding {\n width: 1px;\n opacity: 0;\n }\n "]}]}],t.ctorParameters=function(){return[{type:e.ElementRef},{type:e.NgZone},{type:e.Renderer2}]},t.propDecorators={items:[{type:e.Input}],scrollbarWidth:[{type:e.Input}],scrollbarHeight:[{type:e.Input}],childWidth:[{type:e.Input}],childHeight:[{type:e.Input}],bufferAmount:[{type:e.Input}],update:[{type:e.Output}],contentElementRef:[{type:e.ViewChild,args:["content",{read:e.ElementRef}]}],containerElementRef:[{type:e.ContentChild,args:["container"]}]},t}(),x=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[i.CommonModule],exports:[w],declarations:[w]}]}],t.ctorParameters=function(){return[]},t}(),O={};O.Tab=9,O.Enter=13,O.Esc=27,O.Space=32,O.ArrowUp=38,O.ArrowDown=40,O.Backspace=8,O[O.Tab]="Tab",O[O.Enter]="Enter",O[O.Esc]="Esc",O[O.Space]="Space",O[O.ArrowUp]="ArrowUp",O[O.ArrowDown]="ArrowDown",O[O.Backspace]="Backspace";var E=function(){function t(){this.notFoundText="",this.typeToSearchText=""}return t}(),_={"Ⓐ":"A","A":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","B":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","C":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","D":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","DZ":"DZ","DŽ":"DZ","Dz":"Dz","Dž":"Dz","Ⓔ":"E","E":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","F":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","G":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","H":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","I":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","J":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","K":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","L":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","LJ":"LJ","Lj":"Lj","Ⓜ":"M","M":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","N":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","NJ":"NJ","Nj":"Nj","Ⓞ":"O","O":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","P":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Q":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","R":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","S":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","T":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","U":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","V":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","W":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","X":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Y":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Z":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","a":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","b":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","c":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","d":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","dz":"dz","dž":"dz","ⓔ":"e","e":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","f":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","g":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","h":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","i":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","j":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","k":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","l":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","lj":"lj","ⓜ":"m","m":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","n":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ʼn":"n","ꞑ":"n","ꞥ":"n","nj":"nj","ⓞ":"o","o":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","p":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","q":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","r":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","s":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","t":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","u":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","v":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","w":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","x":"x","ẋ":"x","ẍ":"x","ⓨ":"y","y":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","z":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ω":"ω","ς":"σ"},S=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++){e=arguments[r];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}return t},I=function(){function t(){this.items=[],this.filteredItems=[],this._markedIndex=-1,this._selected=[],this._multiple=!1}return Object.defineProperty(t.prototype,"value",{get:function(){return this._multiple?this._selected:this._selected[0]||null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"markedItem",{get:function(){return this.filteredItems[this._markedIndex]},enumerable:!0,configurable:!0}),t.prototype.setItems=function(t){this.items=this.mapItems(t),this.filteredItems=this.items.slice()},t.prototype.setMultiple=function(t){this._multiple=t,this._selected=[]},t.prototype.select=function(t){this._multiple||this.clearSelected(),this._selected.push(t),t.selected=!0},t.prototype.findItem=function(t,e,r){if(r)return this.items.find(function(e){return e[r]===t});var i=this.items.indexOf(t);return i>-1?this.items[i]:this.items.find(function(r){return r[e]===t[e]})},t.prototype.unselect=function(t){this._selected=this._selected.filter(function(e){return e!==t}),t.selected=!1},t.prototype.unselectLastItem=function(){0!==this._selected.length&&(this._selected[this._selected.length-1].selected=!1,this._selected.splice(this._selected.length-1,1))},t.prototype.clearSelected=function(){this._selected.forEach(function(t){t.selected=!1,t.marked=!1}),this._selected=[]},t.prototype.filter=function(t,e){var r=this.getDefaultFilterFunc(t,e);this.filteredItems=t?this.items.filter(function(t){return r(t)}):this.items,this._markedIndex=0},t.prototype.clearFilter=function(){this.filteredItems=this.items.slice()},t.prototype.markNextItem=function(){this.stepToItem(1)},t.prototype.markPreviousItem=function(){this.stepToItem(-1)},t.prototype.markItem=function(t){void 0===t&&(t=null),0!==this.filteredItems.length&&(t=t||this.lastSelectedItem,this._markedIndex=t?this.filteredItems.indexOf(t):0)},t.prototype.getNextItemIndex=function(t){return t>0?this._markedIndex===this.filteredItems.length-1?0:this._markedIndex+1:0===this._markedIndex?this.filteredItems.length-1:this._markedIndex-1},t.prototype.stepToItem=function(t){if(0!==this.filteredItems.length)for(this._markedIndex=this.getNextItemIndex(t);this.markedItem.disabled;)this.stepToItem(t)},t.prototype.getDefaultFilterFunc=function(t,e){return function(r){return n(r[e]).toUpperCase().indexOf(n(t).toUpperCase())>-1}},Object.defineProperty(t.prototype,"lastSelectedItem",{get:function(){return this._selected[this._selected.length-1]},enumerable:!0,configurable:!0}),t.prototype.mapItems=function(t){return t.map(function(t,e){return S({index:e},t)})},t}(),T="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},k="undefined"!=typeof window&&window,P="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,C=void 0!==T&&T,L=k||C||P,A=L;!function(){if(!L)throw new Error("RxJS could not find any global context (window, self, global)")}();var R,j={root:A},V=s,D={isFunction:V},U=Array.isArray||function(t){return t&&"number"==typeof t.length},M={isArray:U},z=a,H={isObject:z},N={e:{}},F={errorObject:N},W=c,B={tryCatch:W},Y=T&&T.__extends||function(t,e){function r(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},$=function(t){function e(e){t.call(this),this.errors=e;var r=Error.call(this,e?e.length+" errors occurred during unsubscription:\n "+e.map(function(t,e){return e+1+") "+t.toString()}).join("\n "):"");this.name=r.name="UnsubscriptionError",this.stack=r.stack,this.message=r.message}return Y(e,t),e}(Error),Z=$,G={UnsubscriptionError:Z},K=function(){function t(t){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}return t.prototype.unsubscribe=function(){var t,e=!1;if(!this.closed){var r=this,i=r._parent,n=r._parents,o=r._unsubscribe,s=r._subscriptions;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;for(var a=-1,l=n?n.length:0;i;)i.remove(this),i=++a<l&&n[a]||null;if(D.isFunction(o)){var c=B.tryCatch(o).call(this);c===F.errorObject&&(e=!0,t=t||(F.errorObject.e instanceof G.UnsubscriptionError?u(F.errorObject.e.errors):[F.errorObject.e]))}if(M.isArray(s))for(a=-1,l=s.length;++a<l;){var p=s[a];if(H.isObject(p)){var c=B.tryCatch(p.unsubscribe).call(p);if(c===F.errorObject){e=!0,t=t||[];var h=F.errorObject.e;h instanceof G.UnsubscriptionError?t=t.concat(u(h.errors)):t.push(h)}}}if(e)throw new G.UnsubscriptionError(t)}},t.prototype.add=function(e){if(!e||e===t.EMPTY)return t.EMPTY;if(e===this)return this;var r=e;switch(typeof e){case"function":r=new t(e);case"object":if(r.closed||"function"!=typeof r.unsubscribe)return r;if(this.closed)return r.unsubscribe(),r;if("function"!=typeof r._addParent){var i=r;r=new t,r._subscriptions=[i]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}return(this._subscriptions||(this._subscriptions=[])).push(r),r._addParent(this),r},t.prototype.remove=function(t){var e=this._subscriptions;if(e){var r=e.indexOf(t);-1!==r&&e.splice(r,1)}},t.prototype._addParent=function(t){var e=this,r=e._parent,i=e._parents;r&&r!==t?i?-1===i.indexOf(t)&&i.push(t):this._parents=[t]:this._parent=t},t.EMPTY=function(t){return t.closed=!0,t}(new t),t}(),q=K,J={Subscription:q},Q={closed:!0,next:function(t){},error:function(t){throw t},complete:function(){}},X={empty:Q},tt=o(function(t,e){var r=j.root.Symbol;e.rxSubscriber="function"==typeof r&&"function"==typeof r.for?r.for("rxSubscriber"):"@@rxSubscriber",e.$$rxSubscriber=e.rxSubscriber}),et=T&&T.__extends||function(t,e){function r(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},rt=function(t){function e(r,i,n){switch(t.call(this),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=X.empty;break;case 1:if(!r){this.destination=X.empty;break}if("object"==typeof r){r instanceof e?(this.destination=r,this.destination.add(this)):(this.syncErrorThrowable=!0,this.destination=new nt(this,r));break}default:this.syncErrorThrowable=!0,this.destination=new nt(this,r,i,n)}}return et(e,t),e.prototype[tt.rxSubscriber]=function(){return this},e.create=function(t,r,i){var n=new e(t,r,i);return n.syncErrorThrowable=!1,n},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this,e=t._parent,r=t._parents;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=e,this._parents=r,this},e}(J.Subscription),it=rt,nt=function(t){function e(e,r,i,n){t.call(this),this._parentSubscriber=e;var o,s=this;D.isFunction(r)?o=r:r&&(o=r.next,i=r.error,n=r.complete,r!==X.empty&&(s=Object.create(r),D.isFunction(s.unsubscribe)&&this.add(s.unsubscribe.bind(s)),s.unsubscribe=this.unsubscribe.bind(this))),this._context=s,this._next=o,this._error=i,this._complete=n}return et(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber;if(this._error)e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else{if(!e.syncErrorThrowable)throw this.unsubscribe(),t;e.syncErrorValue=t,e.syncErrorThrown=!0,this.unsubscribe()}}},e.prototype.complete=function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var r=function(){return t._complete.call(t._context)};e.syncErrorThrowable?(this.__tryOrSetError(e,r),this.unsubscribe()):(this.__tryOrUnsub(r),this.unsubscribe())}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(t){throw this.unsubscribe(),t}},e.prototype.__tryOrSetError=function(t,e,r){try{e.call(this._context,r)}catch(e){return t.syncErrorValue=e,t.syncErrorThrown=!0,!0}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(rt),ot={Subscriber:it},st=p,at={toSubscriber:st},lt=o(function(t,e){function r(t){var e,r=t.Symbol;return"function"==typeof r?r.observable?e=r.observable:(e=r("observable"),r.observable=e):e="@@observable",e}e.getSymbolObservable=r,e.observable=r(j.root),e.$$observable=e.observable}),ct=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var r=new t;return r.source=this,r.operator=e,r},t.prototype.subscribe=function(t,e,r){var i=this.operator,n=at.toSubscriber(t,e,r);if(i?i.call(n,this.source):n.add(this.source?this._subscribe(n):this._trySubscribe(n)),n.syncErrorThrowable&&(n.syncErrorThrowable=!1,n.syncErrorThrown))throw n.syncErrorValue;return n},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.syncErrorThrown=!0,t.syncErrorValue=e,t.error(e)}},t.prototype.forEach=function(t,e){var r=this;if(e||(j.root.Rx&&j.root.Rx.config&&j.root.Rx.config.Promise?e=j.root.Rx.config.Promise:j.root.Promise&&(e=j.root.Promise)),!e)throw new Error("no Promise impl found");return new e(function(e,i){var n;n=r.subscribe(function(e){if(n)try{t(e)}catch(t){i(t),n.unsubscribe()}else t(e)},i,e)})},t.prototype._subscribe=function(t){return this.source.subscribe(t)},t.prototype[lt.observable]=function(){return this},t.create=function(e){return new t(e)},t}(),ut=ct,pt={Observable:ut},ht=T&&T.__extends||function(t,e){function r(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},dt=function(t){function e(){var e=t.call(this,"object unsubscribed");this.name=e.name="ObjectUnsubscribedError",this.stack=e.stack,this.message=e.message}return ht(e,t),e}(Error),ft=dt,bt={ObjectUnsubscribedError:ft},mt=T&&T.__extends||function(t,e){function r(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},yt=function(t){function e(e,r){t.call(this),this.subject=e,this.subscriber=r,this.closed=!1}return mt(e,t),e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,e=t.observers;if(this.subject=null,e&&0!==e.length&&!t.isStopped&&!t.closed){var r=e.indexOf(this.subscriber);-1!==r&&e.splice(r,1)}}},e}(J.Subscription),gt=yt,vt={SubjectSubscription:gt},wt=T&&T.__extends||function(t,e){function r(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},xt=function(t){function e(e){t.call(this,e),this.destination=e}return wt(e,t),e}(ot.Subscriber),Ot=function(t){function e(){t.call(this),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}return wt(e,t),e.prototype[tt.rxSubscriber]=function(){return new xt(this)},e.prototype.lift=function(t){var e=new _t(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new bt.ObjectUnsubscribedError;if(!this.isStopped)for(var e=this.observers,r=e.length,i=e.slice(),n=0;n<r;n++)i[n].next(t)},e.prototype.error=function(t){if(this.closed)throw new bt.ObjectUnsubscribedError;this.hasError=!0,this.thrownError=t,this.isStopped=!0;for(var e=this.observers,r=e.length,i=e.slice(),n=0;n<r;n++)i[n].error(t);this.observers.length=0},e.prototype.complete=function(){if(this.closed)throw new bt.ObjectUnsubscribedError;this.isStopped=!0;for(var t=this.observers,e=t.length,r=t.slice(),i=0;i<e;i++)r[i].complete();this.observers.length=0},e.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},e.prototype._trySubscribe=function(e){if(this.closed)throw new bt.ObjectUnsubscribedError;return t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){if(this.closed)throw new bt.ObjectUnsubscribedError;return this.hasError?(t.error(this.thrownError),J.Subscription.EMPTY):this.isStopped?(t.complete(),J.Subscription.EMPTY):(this.observers.push(t),new vt.SubjectSubscription(this,t))},e.prototype.asObservable=function(){var t=new pt.Observable;return t.source=this,t},e.create=function(t,e){return new _t(t,e)},e}(pt.Observable),Et=Ot,_t=function(t){function e(e,r){t.call(this),this.destination=e,this.source=r}return wt(e,t),e.prototype.next=function(t){var e=this.destination;e&&e.next&&e.next(t)},e.prototype.error=function(t){var e=this.destination;e&&e.error&&this.destination.error(t)},e.prototype.complete=function(){var t=this.destination;t&&t.complete&&this.destination.complete()},e.prototype._subscribe=function(t){return this.source?this.source.subscribe(t):J.Subscription.EMPTY},e}(Ot),St=h,It={isScheduler:St},Tt=T&&T.__extends||function(t,e){function r(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},kt=function(t){function e(e,r){t.call(this),this.value=e,this.scheduler=r,this._isScalar=!0,r&&(this._isScalar=!1)}return Tt(e,t),e.create=function(t,r){return new e(t,r)},e.dispatch=function(t){var e=t.done,r=t.value,i=t.subscriber;if(e)return void i.complete();i.next(r),i.closed||(t.done=!0,this.schedule(t))},e.prototype._subscribe=function(t){var r=this.value,i=this.scheduler;if(i)return i.schedule(e.dispatch,0,{done:!1,value:r,subscriber:t});t.next(r),t.closed||t.complete()},e}(pt.Observable),Pt=kt,Ct={ScalarObservable:Pt},Lt=T&&T.__extends||function(t,e){function r(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},At=function(t){function e(e){t.call(this),this.scheduler=e}return Lt(e,t),e.create=function(t){return new e(t)},e.dispatch=function(t){t.subscriber.complete()},e.prototype._subscribe=function(t){var r=this.scheduler;if(r)return r.schedule(e.dispatch,0,{subscriber:t});t.complete()},e}(pt.Observable),Rt=At,jt={EmptyObservable:Rt},Vt=T&&T.__extends||function(t,e){function r(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},Dt=function(t){function e(e,r){t.call(this),this.array=e,this.scheduler=r,r||1!==e.length||(this._isScalar=!0,this.value=e[0])}return Vt(e,t),e.create=function(t,r){return new e(t,r)},e.of=function(){for(var t=[],r=0;r<arguments.length;r++)t[r-0]=arguments[r];var i=t[t.length-1];It.isScheduler(i)?t.pop():i=null;var n=t.length;return n>1?new e(t,i):1===n?new Ct.ScalarObservable(t[0],i):new jt.EmptyObservable(i)},e.dispatch=function(t){var e=t.array,r=t.index,i=t.count,n=t.subscriber;if(r>=i)return void n.complete();n.next(e[r]),n.closed||(t.index=r+1,this.schedule(t))},e.prototype._subscribe=function(t){var r=this.array,i=r.length,n=this.scheduler;if(n)return n.schedule(e.dispatch,0,{array:r,index:0,count:i,subscriber:t});for(var o=0;o<i&&!t.closed;o++)t.next(r[o]);t.complete()},e}(pt.Observable),Ut=Dt,Mt={ArrayObservable:Ut},zt=T&&T.__extends||function(t,e){function r(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},Ht=function(t){function e(){t.apply(this,arguments)}return zt(e,t),e.prototype.notifyNext=function(t,e,r,i,n){this.destination.next(e)},e.prototype.notifyError=function(t,e){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.complete()},e
}(ot.Subscriber),Nt=Ht,Ft={OuterSubscriber:Nt},Wt=function(t){return t&&"number"==typeof t.length},Bt={isArrayLike:Wt},Yt=d,$t={isPromise:Yt},Zt=o(function(t,e){function r(t){var e=t.Symbol;if("function"==typeof e)return e.iterator||(e.iterator=e("iterator polyfill")),e.iterator;var r=t.Set;if(r&&"function"==typeof(new r)["@@iterator"])return"@@iterator";var i=t.Map;if(i)for(var n=Object.getOwnPropertyNames(i.prototype),o=0;o<n.length;++o){var s=n[o];if("entries"!==s&&"size"!==s&&i.prototype[s]===i.prototype.entries)return s}return"@@iterator"}e.symbolIteratorPonyfill=r,e.iterator=r(j.root),e.$$iterator=e.iterator}),Gt=T&&T.__extends||function(t,e){function r(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},Kt=function(t){function e(e,r,i){t.call(this),this.parent=e,this.outerValue=r,this.outerIndex=i,this.index=0}return Gt(e,t),e.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)},e.prototype._error=function(t){this.parent.notifyError(t,this),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},e}(ot.Subscriber),qt=Kt,Jt={InnerSubscriber:qt},Qt=f,Xt={subscribeToResult:Qt},te=T&&T.__extends||function(t,e){function r(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},ee={},re=b,ie=function(){function t(t){this.project=t}return t.prototype.call=function(t,e){return e.subscribe(new oe(t,this.project))},t}(),ne=ie,oe=function(t){function e(e,r){t.call(this,e),this.project=r,this.active=0,this.values=[],this.observables=[]}return te(e,t),e.prototype._next=function(t){this.values.push(ee),this.observables.push(t)},e.prototype._complete=function(){var t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(var r=0;r<e;r++){var i=t[r];this.add(Xt.subscribeToResult(this,i,i,r))}}},e.prototype.notifyComplete=function(t){0==(this.active-=1)&&this.destination.complete()},e.prototype.notifyNext=function(t,e,r,i,n){var o=this.values,s=o[r],a=this.toRespond?s===ee?--this.toRespond:this.toRespond:0;o[r]=e,0===a&&(this.project?this._tryProject(o):this.destination.next(o.slice()))},e.prototype._tryProject=function(t){var e;try{e=this.project.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(Ft.OuterSubscriber),se=oe,ae={combineLatest:re,CombineLatestOperator:ne,CombineLatestSubscriber:se},le=m,ce={combineLatest:le};pt.Observable.combineLatest=ce.combineLatest;var ue=T&&T.__extends||function(t,e){function r(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},pe=(function(t){function e(e,r,i){t.call(this,e),this.observables=r,this.project=i,this.toRespond=[];var n=r.length;this.values=new Array(n);for(var o=0;o<n;o++)this.toRespond.push(o);for(var o=0;o<n;o++){var s=r[o];this.add(Xt.subscribeToResult(this,s,s,o))}}ue(e,t),e.prototype.notifyNext=function(t,e,r,i,n){this.values[r]=e;var o=this.toRespond;if(o.length>0){var s=o.indexOf(r);-1!==s&&o.splice(s,1)}},e.prototype.notifyComplete=function(){},e.prototype._next=function(t){if(0===this.toRespond.length){var e=[t].concat(this.values);this.project?this._tryProject(e):this.destination.next(e)}},e.prototype._tryProject=function(t){var e;try{e=this.project.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)}}(Ft.OuterSubscriber),{provide:r.NG_VALUE_ACCESSOR,useExisting:e.forwardRef(function(){return he}),multi:!0}),he=function(){function t(t,r,i,n){this.changeDetectorRef=r,this.elementRef=i,this.renderer=n,this.clearable=!0,this.notFoundText="No items found",this.typeToSearchText="Type to search",this.multiple=!1,this.blurEvent=new e.EventEmitter,this.focusEvent=new e.EventEmitter,this.changeEvent=new e.EventEmitter,this.openEvent=new e.EventEmitter,this.closeEvent=new e.EventEmitter,this.searchEvent=new e.EventEmitter,this.isOpen=!1,this.isFocused=!1,this.isDisabled=!1,this.itemsList=new I,this.viewPortItems=[],this.isLoading=!1,this.filterValue=null,this._items$=new Et,this._writeValue$=new Et,this._checkWriteValue=!1,this._writeValueHandler$=null,this.onChange=function(t){},this.onTouched=function(){},this.disposeDocumentClickListener=function(){},this.mergeConfig(t),this.handleWriteValue()}return Object.defineProperty(t.prototype,"single",{get:function(){return!this.multiple},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"items",{get:function(){return this.itemsList.items},set:function(t){this.setItems(t||[]),this._items$.next(!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.itemsList.value},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){this.handleDocumentClick(),this.bindLabel=this.bindLabel||"label"},t.prototype.ngOnChanges=function(t){t.multiple&&this.itemsList.setMultiple(t.multiple.currentValue)},t.prototype.ngOnDestroy=function(){this.changeDetectorRef.detach(),this.disposeDocumentClickListener(),this._writeValueHandler$.unsubscribe()},t.prototype.handleKeyDown=function(t){if(O[t.which])switch(t.which){case O.ArrowDown:this.handleArrowDown(t);break;case O.ArrowUp:this.handleArrowUp(t);break;case O.Space:this.handleSpace(t);break;case O.Enter:this.handleEnter(t);break;case O.Tab:this.handleTab(t);break;case O.Esc:this.close();break;case O.Backspace:this.handleBackspace()}},t.prototype.handleArrowClick=function(t){t.stopPropagation(),this.isOpen?this.close():this.open()},t.prototype.handleSelectClick=function(t){t.stopPropagation(),this.open()},t.prototype.handleClearClick=function(t){t.stopPropagation(),this.clear()},t.prototype.clear=function(){this.clearable&&(this.itemsList.clearSelected(),this.clearSearch(),this.notifyModelChanged(),this.isTypeahead()&&this.typeahead.next(this.filterValue))},t.prototype.writeValue=function(t){this._checkWriteValue=!0,this._writeValue$.next(t)},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this.isDisabled=t},t.prototype.open=function(){this.isDisabled||this.isOpen||(this.isOpen=!0,this.itemsList.markItem(),this.scrollToMarked(),this.focusSearchInput(),this.openEvent.emit())},t.prototype.close=function(){this.isOpen&&(this.isOpen=!1,this.clearSearch(),this.closeEvent.emit())},t.prototype.getLabelValue=function(t){return t?t[this.bindLabel]:""},t.prototype.getDisplayTemplateContext=function(){return this.itemsList.value?{item:this.itemsList.value}:{item:{}}},t.prototype.toggle=function(t){!t||t.disabled||this.isDisabled||(this.multiple&&t.selected?this.unselect(t):this.select(t))},t.prototype.select=function(t){this._checkWriteValue=!1,t.selected||(this.itemsList.select(t),this.updateModel()),this.single&&this.close()},t.prototype.unselect=function(t){this.itemsList.unselect(t),this.updateModel()},t.prototype.showPlaceholder=function(){return this.placeholder&&!this.isValueSet(this.value)&&!this.filterValue},t.prototype.showValue=function(){return!this.filterValue&&this.isValueSet(this.value)},t.prototype.showClear=function(){return this.clearable&&(this.isValueSet(this.value)||this.filterValue)&&!this.isDisabled},t.prototype.showFilter=function(){return!this.isDisabled},t.prototype.showNoItemsFound=function(){var t=0===this.itemsList.filteredItems.length;return t&&!this.isTypeahead()||t&&this.isTypeahead()&&this.filterValue&&!this.isLoading},t.prototype.showTypeToSearch=function(){return 0===this.itemsList.filteredItems.length&&this.isTypeahead()&&!this.filterValue&&!this.isLoading},t.prototype.onFilter=function(t){this.isOpen||this.open(),this.filterValue=t.target.value,this.isTypeahead()?(this.isLoading=!0,this.typeahead.next(this.filterValue)):this.itemsList.filter(this.filterValue,this.bindLabel)},t.prototype.onInputFocus=function(){this.isFocused=!0,this.focusEvent.emit(null)},t.prototype.onInputBlur=function(){this.isFocused=!1,this.blurEvent.emit(null),this.isOpen||this.isDisabled||this.onTouched()},t.prototype.onItemHover=function(t){t.disabled||this.itemsList.markItem(t)},t.prototype.handleWriteValue=function(){var t=this;this._writeValueHandler$=ut.combineLatest(this._items$,this._writeValue$).subscribe(function(e){if(t._checkWriteValue){var r=e[1];t.validateWriteValue(r),t.itemsList.clearSelected(),r&&(t.multiple?r.forEach(function(e){t.selectWriteValue(e)}):t.selectWriteValue(r)),t.detectChanges()}})},t.prototype.setItems=function(t){this.itemsList.setItems(t),this.isTypeahead()&&(this.isLoading=!1,this.itemsList.markItem())},t.prototype.handleDocumentClick=function(){var t=this,e=function(e){if(!t.elementRef.nativeElement.contains(e.target)){var r=t.getDropdownMenu();r&&r.contains(e.target)||(t.isFocused&&t.onInputBlur(),t.isOpen&&t.close())}};this.disposeDocumentClickListener=this.renderer.listen("document","click",e)},t.prototype.validateWriteValue=function(t){var e=this;if(t){var r=function(t){if(t instanceof Object&&e.bindValue)throw new Error("Binding object with bindValue is not allowed.")};if(this.multiple){if(!Array.isArray(t))throw new Error("Multiple select model should be array.");t.forEach(function(t){return r(t)})}else r(t)}},t.prototype.selectWriteValue=function(t){var e=this.itemsList.findItem(t,this.bindLabel,this.bindValue);e&&this.itemsList.select(e)},t.prototype.updateModel=function(){this.notifyModelChanged(),this.changeDetectorRef.markForCheck()},t.prototype.clearSearch=function(){this.filterValue=null,this.itemsList.clearFilter()},t.prototype.focusSearchInput=function(){var t=this;setTimeout(function(){t.filterInput.nativeElement.focus()})},t.prototype.scrollToMarked=function(){this.dropdownList.scrollInto(this.itemsList.markedItem)},t.prototype.handleTab=function(t){this.isOpen&&this.close()},t.prototype.handleEnter=function(t){this.isOpen&&this.toggle(this.itemsList.markedItem),t.preventDefault()},t.prototype.handleSpace=function(t){this.isOpen||(this.open(),t.preventDefault())},t.prototype.handleArrowDown=function(t){this.isOpen?(this.itemsList.markNextItem(),this.scrollToMarked()):this.open(),t.preventDefault()},t.prototype.handleArrowUp=function(t){this.itemsList.markPreviousItem(),this.scrollToMarked(),t.preventDefault()},t.prototype.handleBackspace=function(){if(this.multiple)this.itemsList.unselectLastItem(),this.updateModel();else{if(this.filterValue)return;this.clear()}},t.prototype.notifyModelChanged=function(){var t=this,e=this.itemsList.value;if(e)if(this.bindValue){var r=Array.isArray(e)?e.map(function(e){return e[t.bindValue]}):e[this.bindValue];this.onChange(r)}else this.onChange(e);else this.onChange(null);this.changeEvent.emit(e)},t.prototype.getDropdownMenu=function(){return this.isOpen&&this.dropdownList?this.elementRef.nativeElement.querySelector(".as-menu-outer"):null},t.prototype.isTypeahead=function(){return this.typeahead&&this.typeahead.observers.length>0},t.prototype.detectChanges=function(){this.changeDetectorRef.destroyed||this.changeDetectorRef.detectChanges()},t.prototype.isValueSet=function(t){return this.multiple?!!t&&t.length>0:!!t},t.prototype.mergeConfig=function(t){t&&(this.notFoundText=t.notFoundText||this.notFoundText,this.typeToSearchText=t.typeToSearchText||this.typeToSearchText)},t.decorators=[{type:e.Component,args:[{selector:"ng-select",template:'<div (click)="handleSelectClick($event)" class="as-control"> <span class="as-multi-value-wrapper"> <span class="as-placeholder" *ngIf="showPlaceholder()">{{placeholder}}</span> <ng-container *ngIf="!multiple;else multipleValue"> <div class="as-value" *ngIf="showValue()"> <span class="as-value-label" role="option" aria-selected="true"> <ng-template *ngIf="labelTemplate" [ngTemplateOutlet]="labelTemplate" [ngTemplateOutletContext]="getDisplayTemplateContext()"> </ng-template> <span *ngIf="!labelTemplate">{{getLabelValue(value)}}</span> </span> </div> </ng-container> <ng-template #multipleValue> <div class="as-value" *ngFor="let item of value"> <span class="as-clear" (click)="unselect(item)" aria-hidden="true">×</span> <span class="as-value-label" aria-selected="true">{{getLabelValue(item)}}</span> </div> </ng-template> <div *ngIf="showFilter()" class="as-input"> <input #filterInput [value]="filterValue" (input)="onFilter($event)" (focus)="onInputFocus($event)" (blur)="onInputBlur($event)" role="combobox" aria-expanded="false" aria-owns="" aria-haspopup="false"> </div> </span> <spinner class="as-spinner-zone" *ngIf="isLoading"></spinner> <span *ngIf="showClear()" (click)="handleClearClick($event)" class="as-clear-zone" title="Clear all" aria-label="Clear all"> <span class="as-clear" aria-hidden="true">×</span> </span> <span (click)="handleArrowClick($event)" class="as-arrow-zone"> <span class="as-arrow"></span> </span> </div> <div class="as-menu-outer"> <virtual-scroll role="listbox" class="as-menu" [bufferAmount]="4" [items]="itemsList.filteredItems" (update)="viewPortItems = $event"> <div class="as-option" role="option" (click)="toggle(item)" (mousedown)="$event.preventDefault()" (mouseover)="onItemHover(item)" *ngFor="let item of viewPortItems" [class.disabled]="item.disabled" [class.selected]="item.selected" [class.marked]="item === itemsList.markedItem"> <span *ngIf="!optionTemplate">{{item[bindLabel]}}</span> <ng-template *ngIf="optionTemplate" [ngTemplateOutlet]="optionTemplate" [ngTemplateOutletContext]="{ item: item, index: item.index }"> </ng-template> </div> </virtual-scroll> <div class="as-menu" *ngIf="showNoItemsFound()"> <div class="as-option disabled"> {{notFoundText}} </div> </div> <div class="as-menu" *ngIf="showTypeToSearch()"> <div class="as-option disabled"> {{typeToSearchText}} </div> </div> </div> ',styles:["ng-select { position: relative; display: block; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } ng-select div, ng-select input, ng-select span, ng-select virtual-scroll { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } ng-select virtual-scroll { display: block; height: auto; } ng-select.opened > .as-control { border-bottom-right-radius: 0; border-bottom-left-radius: 0; background: #fff; border-color: #b3b3b3 #ccc #d9d9d9; } ng-select.opened > .as-control .as-arrow { top: -2px; border-color: transparent transparent #999; border-width: 0 5px 5px; } ng-select.opened > .as-control .as-arrow:hover { border-color: transparent transparent #666; } ng-select.opened .as-menu-outer { visibility: visible; } ng-select.focused:not(.opened) > .as-control { border-color: #007eff; box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 0 3px rgba(0, 126, 255, 0.1); } ng-select.disabled > .as-control { background-color: #f9f9f9; } ng-select .as-control { background-color: #fff; border-radius: 4px; border: 1px solid #ccc; color: #333; cursor: default; display: table; border-spacing: 0; border-collapse: separate; height: 36px; outline: none; overflow: hidden; position: relative; width: 100%; } ng-select .as-control:hover { box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06); } ng-select .as-placeholder, ng-select.as-single > .as-control .as-value { bottom: 0; color: #aaa; left: 0; line-height: 34px; padding-left: 10px; padding-right: 10px; position: absolute; right: 0; top: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } ng-select .as-placeholder .as-value-label, ng-select.as-single > .as-control .as-value .as-value-label { color: #333; } ng-select.as-multiple.disabled > .as-control .as-value { background-color: #f9f9f9; border: 1px solid #e3e3e3; } ng-select.as-multiple.disabled > .as-control .as-value .as-clear { display: none; } ng-select.as-multiple > .as-control .as-value { background-color: #f5faff; border-radius: 2px; border: 1px solid #c2e0ff; display: inline-block; font-size: 0.9em; line-height: 1.4; margin-left: 5px; margin-top: 5px; vertical-align: top; } ng-select.as-multiple > .as-control .as-value .as-clear { cursor: pointer; border-bottom-right-radius: 2px; border-top-right-radius: 2px; border-right: 1px solid #c2e0ff; padding: 1px 5px 3px; } ng-select.as-multiple > .as-control .as-value .as-clear:hover { background-color: #d8eafd; } ng-select.as-multiple > .as-control .as-value .as-value-label { border-bottom-right-radius: 2px; border-top-right-radius: 2px; cursor: default; padding: 2px 5px; } ng-select .as-input { height: 34px; padding-left: 10px; padding-right: 10px; vertical-align: middle; display: inline-block; } ng-select .as-input > input { min-width: 5px; box-sizing: content-box; background: none transparent; border: 0 none; box-shadow: none; cursor: default; display: inline-block; font-family: inherit; font-size: inherit; margin: 0; outline: none; line-height: 14px; /* For IE 8 compatibility */ padding: 8px 0 12px; /* For IE 8 compatibility */ -webkit-appearance: none; } ng-select .as-menu-outer { visibility: hidden; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: #fff; border: 1px solid #ccc; border-top-color: #e6e6e6; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06); box-sizing: border-box; margin-top: -1px; max-height: 242px; position: absolute; top: 100%; width: 100%; z-index: 1; -webkit-overflow-scrolling: touch; } ng-select .as-menu { max-height: 240px; overflow-y: auto; } ng-select .as-option { box-sizing: border-box; background-color: #fff; color: #666666; cursor: pointer; display: block; padding: 8px 10px; } ng-select .as-option:last-child { border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; } ng-select .as-option.selected { background-color: #f5faff; color: #333; } ng-select .as-option.marked { background-color: #ebf5ff; color: #333; } ng-select .as-option.disabled { color: #cccccc; cursor: default; } ng-select .as-clear-zone { -webkit-animation: Select-animation-fadeIn 200ms; -o-animation: Select-animation-fadeIn 200ms; animation: Select-animation-fadeIn 200ms; color: #999; cursor: pointer; display: table-cell; position: relative; text-align: center; vertical-align: middle; width: 17px; } ng-select .as-clear-zone .as-clear { display: inline-block; font-size: 18px; line-height: 1; } ng-select .as-clear-zone .as-clear:hover { color: #D0021B; } ng-select .as-spinner-zone { cursor: pointer; display: table-cell; position: relative; text-align: center; vertical-align: middle; width: 25px; padding-right: 5px; padding-top: 5px; } ng-select .as-arrow-zone { cursor: pointer; display: table-cell; position: relative; text-align: center; vertical-align: middle; width: 25px; padding-right: 5px; } ng-select .as-arrow-zone .as-arrow { border-color: #999 transparent transparent; border-style: solid; border-width: 5px 5px 2.5px; display: inline-block; height: 0; width: 0; position: relative; } ng-select .as-arrow-zone .as-arrow:hover { border-top-color: #666; } "],providers:[pe],encapsulation:e.ViewEncapsulation.None,changeDetection:e.ChangeDetectionStrategy.OnPush,host:{role:"dropdown"}}]}],t.ctorParameters=function(){return[{type:E,decorators:[{type:e.Optional}]},{type:e.ChangeDetectorRef},{type:e.ElementRef},{type:e.Renderer2}]},t.propDecorators={optionTemplate:[{type:e.ContentChild,args:[g,{read:e.TemplateRef}]}],labelTemplate:[{type:e.ContentChild,args:[v,{read:e.TemplateRef}]}],dropdownList:[{type:e.ViewChild,args:[w]}],filterInput:[{type:e.ViewChild,args:["filterInput"]}],bindLabel:[{type:e.Input}],bindValue:[{type:e.Input}],clearable:[{type:e.Input}],placeholder:[{type:e.Input}],notFoundText:[{type:e.Input}],typeToSearchText:[{type:e.Input}],typeahead:[{type:e.Input}],multiple:[{type:e.Input},{type:e.HostBinding,args:["class.as-multiple"]}],blurEvent:[{type:e.Output,args:["blur"]}],focusEvent:[{type:e.Output,args:["focus"]}],changeEvent:[{type:e.Output,args:["change"]}],openEvent:[{type:e.Output,args:["open"]}],closeEvent:[{type:e.Output,args:["close"]}],searchEvent:[{type:e.Output,args:["search"]}],single:[{type:e.HostBinding,args:["class.as-single"]}],isOpen:[{type:e.HostBinding,args:["class.opened"]}],isFocused:[{type:e.HostBinding,args:["class.focused"]}],isDisabled:[{type:e.HostBinding,args:["class.disabled"]}],items:[{type:e.Input}],handleKeyDown:[{type:e.HostListener,args:["keydown",["$event"]]}]},t}(),de=function(){function t(){}return t.decorators=[{type:e.Component,args:[{selector:"spinner",template:'\n <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"\n width="20px" height="20px" viewBox="0 0 50 50" style="enable-background:new 0 0 50 50;" xml:space="preserve">\n <path fill="#777" d="M43.935,25.145c0-10.318-8.364-18.683-18.683-18.683c-10.318,0-18.683,8.365-18.683,18.683h4.068c0-8.071,6.543-14.615,14.615-14.615c8.072,0,14.615,6.543,14.615,14.615H43.935z">\n <animateTransform attributeType="xml"\n attributeName="transform"\n type="rotate"\n from="0 25 25"\n to="360 25 25"\n dur="0.6s"\n repeatCount="indefinite"/>\n </path>\n </svg>'}]}],t.ctorParameters=function(){return[]},t}(),fe=function(){function t(){}return t.forRoot=function(t){return y(t)},t.forChild=function(t){return y(t)},t.decorators=[{type:e.NgModule,args:[{declarations:[he,g,v,de],imports:[r.FormsModule,i.CommonModule,x],exports:[he,g,v]}]}],t.ctorParameters=function(){return[]},t}();t.NgSelectComponent=he,t.NgSelectModule=fe,t.NgSelectConfig=E,t.ɵb=v,t.ɵa=g,t.ɵe=de,t.ɵc=w,t.ɵd=x,Object.defineProperty(t,"__esModule",{value:!0})});
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@angular/forms"),require("@angular/common")):"function"==typeof define&&define.amd?define(["exports","@angular/core","@angular/forms","@angular/common"],e):e(t.ngSelect=t.ngSelect||{},t.ng.core,t.ng.forms,t.ng.common)}(this,function(t,e,r,i){"use strict";function n(t){var e=function(t){return _[t]||t};return t.replace(/[^\u0000-\u007E]/g,e)}function o(t,e){return e={exports:{}},t(e,e.exports),e.exports}function s(t){return"function"==typeof t}function a(t){return null!=t&&"object"==typeof t}function l(){try{return R.apply(this,arguments)}catch(t){return F.errorObject.e=t,F.errorObject}}function c(t){return R=t,l}function u(t){return t.reduce(function(t,e){return t.concat(e instanceof G.UnsubscriptionError?e.errors:e)},[])}function p(t,e,r){if(t){if(t instanceof ot.Subscriber)return t;if(t[tt.rxSubscriber])return t[tt.rxSubscriber]()}return t||e||r?new ot.Subscriber(t,e,r):new ot.Subscriber(X.empty)}function h(t){return t&&"function"==typeof t.schedule}function d(t){return t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}function f(t,e,r,i){var n=new Jt.InnerSubscriber(t,r,i);if(n.closed)return null;if(e instanceof pt.Observable)return e._isScalar?(n.next(e.value),n.complete(),null):e.subscribe(n);if(Bt.isArrayLike(e)){for(var o=0,s=e.length;o<s&&!n.closed;o++)n.next(e[o]);n.closed||n.complete()}else{if($t.isPromise(e))return e.then(function(t){n.closed||(n.next(t),n.complete())},function(t){return n.error(t)}).then(null,function(t){j.root.setTimeout(function(){throw t})}),n;if(e&&"function"==typeof e[Zt.iterator])for(var a=e[Zt.iterator]();;){var l=a.next();if(l.done){n.complete();break}if(n.next(l.value),n.closed)break}else if(e&&"function"==typeof e[lt.observable]){var c=e[lt.observable]();if("function"==typeof c.subscribe)return c.subscribe(new Jt.InnerSubscriber(t,r,i));n.error(new TypeError("Provided object does not correctly implement Symbol.observable"))}else{var u=H.isObject(e)?"an invalid object":"'"+e+"'",p="You provided "+u+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.";n.error(new TypeError(p))}}return null}function b(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];var r=null;return"function"==typeof t[t.length-1]&&(r=t.pop()),1===t.length&&M.isArray(t[0])&&(t=t[0].slice()),t.unshift(this),this.lift.call(new Mt.ArrayObservable(t),new ie(r))}function m(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];var r=null,i=null;return It.isScheduler(t[t.length-1])&&(i=t.pop()),"function"==typeof t[t.length-1]&&(r=t.pop()),1===t.length&&M.isArray(t[0])&&(t=t[0]),new Mt.ArrayObservable(t,i).lift(new ae.CombineLatestOperator(r))}function y(t){return{ngModule:fe,providers:[{provide:E,useValue:t}]}}var g=function(){function t(t){this.template=t}return t.decorators=[{type:e.Directive,args:[{selector:"[ng-option-tmp]"}]}],t.ctorParameters=function(){return[{type:e.TemplateRef}]},t}(),v=function(){function t(t){this.template=t}return t.decorators=[{type:e.Directive,args:[{selector:"[ng-label-tmp]"}]}],t.ctorParameters=function(){return[{type:e.TemplateRef}]},t}(),w=function(){function t(t,r,i){this.element=t,this.zone=r,this.renderer=i,this.items=[],this.bufferAmount=0,this.update=new e.EventEmitter,this.startupLoop=!0,this.disposeScrollListener=function(){}}return Object.defineProperty(t.prototype,"enabled",{get:function(){return this.items&&this.items.length>20},enumerable:!0,configurable:!0}),t.prototype.handleScroll=function(){var t=this,e=function(){if(!t.enabled)return void t.update.emit(t.items);t.refresh()};this.disposeScrollListener=this.renderer.listen(this.element.nativeElement,"scroll",e)},t.prototype.ngOnInit=function(){this.handleScroll(),this.scrollbarWidth=0,this.scrollbarHeight=0},t.prototype.ngOnDestroy=function(){this.disposeScrollListener()},t.prototype.ngOnChanges=function(t){this.previousStart=void 0,this.previousEnd=void 0;var e=t.items||{};(void 0!==t.items&&void 0===e.previousValue||void 0!==e.previousValue&&0===e.previousValue.length)&&(this.startupLoop=!0),this.items=e.currentValue,this.refresh()},t.prototype.refresh=function(){var t=this;if(!this.enabled)return void this.update.emit(this.items);this.zone.runOutsideAngular(function(){requestAnimationFrame(function(){return t.calculateItems()})})},t.prototype.scrollInto=function(t){var e=this.element.nativeElement,r=(this.items||[]).indexOf(t);if(!(r<0||r>=(this.items||[]).length)){var i=this.calculateDimensions(),n=Math.floor(i.viewHeight/i.childHeight)-1;e.scrollTop=Math.floor(r/i.itemsPerRow)*i.childHeight-i.childHeight*Math.min(r,n),this.refresh()}},t.prototype.countItemsPerRow=function(){var t,e,r=this.contentElementRef.nativeElement.children;for(e=0;e<r.length&&(void 0===t||t===r[e].offsetTop);e++)t=r[e].offsetTop;return e},t.prototype.getElementsOffset=function(){var t=0;return this.containerElementRef&&this.containerElementRef.nativeElement&&(t+=this.containerElementRef.nativeElement.offsetTop),t},t.prototype.calculateDimensions=function(){var t,e=this.element.nativeElement,r=this.items||[],i=r.length,n=e.clientWidth-this.scrollbarWidth,o=e.clientHeight-this.scrollbarHeight;if(void 0===this.childWidth||void 0===this.childHeight){var s=this.contentElementRef.nativeElement;this.containerElementRef&&this.containerElementRef.nativeElement&&(s=this.containerElementRef.nativeElement),t=s.children[0]?s.children[0].getBoundingClientRect():{width:n,height:o}}var a=this.childWidth||t.width,l=this.childHeight||t.height,c=Math.max(1,this.countItemsPerRow()),u=Math.max(1,Math.floor(n/a)),p=Math.max(1,Math.floor(o/l)),h=Math.max(0,e.scrollTop);return 1===p&&Math.floor(h/this.scrollHeight*i)+u>=i&&(c=u),{itemCount:i,viewWidth:n,viewHeight:o,childWidth:a,childHeight:l,itemsPerRow:c,itemsPerCol:p,itemsPerRowByCalc:u}},t.prototype.calculateItems=function(){var t=this;e.NgZone.assertNotInAngularZone();var r=this.element.nativeElement,i=this.calculateDimensions(),n=this.items||[],o=this.getElementsOffset();this.scrollHeight=i.childHeight*i.itemCount/i.itemsPerRow,r.scrollTop>this.scrollHeight&&(r.scrollTop=this.scrollHeight+o);var s=Math.max(0,r.scrollTop-o),a=s/this.scrollHeight*i.itemCount/i.itemsPerRow,l=Math.min(i.itemCount,Math.ceil(a)*i.itemsPerRow+i.itemsPerRow*(i.itemsPerCol+1)),c=l,u=l%i.itemsPerRow;u&&(c=l+i.itemsPerRow-u);var p=Math.max(0,c-i.itemsPerCol*i.itemsPerRow-i.itemsPerRow),h=Math.min(p,Math.floor(a)*i.itemsPerRow);this.topPadding=i.childHeight*Math.ceil(h/i.itemsPerRow)-i.childHeight*Math.min(h,this.bufferAmount),h=isNaN(h)?-1:h,l=isNaN(l)?-1:l,h-=this.bufferAmount,h=Math.max(0,h),l+=this.bufferAmount,l=Math.min(n.length,l),h!==this.previousStart||l!==this.previousEnd?(this.zone.run(function(){t.update.emit(n.slice(h,l))}),this.previousStart=h,this.previousEnd=l,!0===this.startupLoop&&this.refresh()):!0===this.startupLoop&&(this.startupLoop=!1,this.refresh())},t.decorators=[{type:e.Component,args:[{selector:"virtual-scroll,[virtualScroll]",exportAs:"virtualScroll",template:"\n <div *ngIf=\"enabled\" class=\"total-padding\" [style.height]=\"scrollHeight + 'px'\"></div>\n <div #content\n [class.scrollable-content]=\"enabled\"\n [style.transform]=\"enabled ? 'translateY(' + topPadding + 'px)' : 'none'\"\n [style.webkitTransform]=\"enabled ? 'translateY(' + topPadding + 'px)' : 'none'\">\n <ng-content></ng-content>\n </div>\n ",host:{"[style.overflow-y]":"parentScroll ? 'hidden' : 'auto'"},styles:["\n :host {\n overflow: hidden;\n position: relative;\n display: block;\n -webkit-overflow-scrolling: touch;\n }\n\n .scrollable-content {\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n position: absolute;\n }\n\n .total-padding {\n width: 1px;\n opacity: 0;\n }\n "]}]}],t.ctorParameters=function(){return[{type:e.ElementRef},{type:e.NgZone},{type:e.Renderer2}]},t.propDecorators={items:[{type:e.Input}],scrollbarWidth:[{type:e.Input}],scrollbarHeight:[{type:e.Input}],childWidth:[{type:e.Input}],childHeight:[{type:e.Input}],bufferAmount:[{type:e.Input}],update:[{type:e.Output}],contentElementRef:[{type:e.ViewChild,args:["content",{read:e.ElementRef}]}],containerElementRef:[{type:e.ContentChild,args:["container"]}]},t}(),x=function(){function t(){}return t.decorators=[{type:e.NgModule,args:[{imports:[i.CommonModule],exports:[w],declarations:[w]}]}],t.ctorParameters=function(){return[]},t}(),O={};O.Tab=9,O.Enter=13,O.Esc=27,O.Space=32,O.ArrowUp=38,O.ArrowDown=40,O.Backspace=8,O[O.Tab]="Tab",O[O.Enter]="Enter",O[O.Esc]="Esc",O[O.Space]="Space",O[O.ArrowUp]="ArrowUp",O[O.ArrowDown]="ArrowDown",O[O.Backspace]="Backspace";var E=function(){function t(){this.notFoundText="",this.typeToSearchText=""}return t}(),_={"Ⓐ":"A","A":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","B":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","C":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","D":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","DZ":"DZ","DŽ":"DZ","Dz":"Dz","Dž":"Dz","Ⓔ":"E","E":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","F":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","G":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","H":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","I":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","J":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","K":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","L":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","LJ":"LJ","Lj":"Lj","Ⓜ":"M","M":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","N":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","NJ":"NJ","Nj":"Nj","Ⓞ":"O","O":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","P":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Q":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","R":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","S":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","T":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","U":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","V":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","W":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","X":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Y":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Z":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","a":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","b":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","c":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","d":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","dz":"dz","dž":"dz","ⓔ":"e","e":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","f":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","g":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","h":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","i":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","j":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","k":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","l":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","lj":"lj","ⓜ":"m","m":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","n":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ʼn":"n","ꞑ":"n","ꞥ":"n","nj":"nj","ⓞ":"o","o":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","p":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","q":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","r":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","s":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","t":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","u":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","v":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","w":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","x":"x","ẋ":"x","ẍ":"x","ⓨ":"y","y":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","z":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ω":"ω","ς":"σ"},S=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++){e=arguments[r];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}return t},I=function(){function t(){this.items=[],this.filteredItems=[],this._markedIndex=-1,this._selected=[],this._multiple=!1}return Object.defineProperty(t.prototype,"value",{get:function(){return this._multiple?this._selected:this._selected[0]||null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"markedItem",{get:function(){return this.filteredItems[this._markedIndex]},enumerable:!0,configurable:!0}),t.prototype.setItems=function(t){this.items=this.mapItems(t),this.filteredItems=this.items.slice()},t.prototype.setMultiple=function(t){this._multiple=t,this.clearSelected()},t.prototype.select=function(t){this._multiple||this.clearSelected(),this._selected.push(t),t.selected=!0},t.prototype.findItem=function(t,e,r){if(r)return this.items.find(function(e){return e[r]===t});var i=this.items.indexOf(t);return i>-1?this.items[i]:this.items.find(function(r){return r[e]===t[e]})},t.prototype.unselect=function(t){this._selected=this._selected.filter(function(e){return e!==t}),t.selected=!1},t.prototype.unselectLastItem=function(){0!==this._selected.length&&(this._selected[this._selected.length-1].selected=!1,this._selected.splice(this._selected.length-1,1))},t.prototype.clearSelected=function(){this._selected.forEach(function(t){t.selected=!1,t.marked=!1}),this._selected=[]},t.prototype.filter=function(t,e){var r=this.getDefaultFilterFunc(t,e);this.filteredItems=t?this.items.filter(function(t){return r(t)}):this.items,this._markedIndex=0},t.prototype.clearFilter=function(){this.filteredItems=this.items.slice()},t.prototype.markNextItem=function(){this.stepToItem(1)},t.prototype.markPreviousItem=function(){this.stepToItem(-1)},t.prototype.markItem=function(t){void 0===t&&(t=null),0!==this.filteredItems.length&&(t=t||this.lastSelectedItem,this._markedIndex=t?this.filteredItems.indexOf(t):0)},t.prototype.getNextItemIndex=function(t){return t>0?this._markedIndex===this.filteredItems.length-1?0:this._markedIndex+1:0===this._markedIndex?this.filteredItems.length-1:this._markedIndex-1},t.prototype.stepToItem=function(t){if(0!==this.filteredItems.length)for(this._markedIndex=this.getNextItemIndex(t);this.markedItem.disabled;)this.stepToItem(t)},t.prototype.getDefaultFilterFunc=function(t,e){return function(r){return n(r[e]).toUpperCase().indexOf(n(t).toUpperCase())>-1}},Object.defineProperty(t.prototype,"lastSelectedItem",{get:function(){return this._selected[this._selected.length-1]},enumerable:!0,configurable:!0}),t.prototype.mapItems=function(t){return t.map(function(t,e){return S({index:e},t)})},t}(),T="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},k="undefined"!=typeof window&&window,P="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,C=void 0!==T&&T,L=k||C||P,A=L;!function(){if(!L)throw new Error("RxJS could not find any global context (window, self, global)")}();var R,j={root:A},V=s,D={isFunction:V},U=Array.isArray||function(t){return t&&"number"==typeof t.length},M={isArray:U},z=a,H={isObject:z},N={e:{}},F={errorObject:N},W=c,B={tryCatch:W},Y=T&&T.__extends||function(t,e){function r(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},$=function(t){function e(e){t.call(this),this.errors=e;var r=Error.call(this,e?e.length+" errors occurred during unsubscription:\n "+e.map(function(t,e){return e+1+") "+t.toString()}).join("\n "):"");this.name=r.name="UnsubscriptionError",this.stack=r.stack,this.message=r.message}return Y(e,t),e}(Error),Z=$,G={UnsubscriptionError:Z},K=function(){function t(t){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}return t.prototype.unsubscribe=function(){var t,e=!1;if(!this.closed){var r=this,i=r._parent,n=r._parents,o=r._unsubscribe,s=r._subscriptions;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;for(var a=-1,l=n?n.length:0;i;)i.remove(this),i=++a<l&&n[a]||null;if(D.isFunction(o)){var c=B.tryCatch(o).call(this);c===F.errorObject&&(e=!0,t=t||(F.errorObject.e instanceof G.UnsubscriptionError?u(F.errorObject.e.errors):[F.errorObject.e]))}if(M.isArray(s))for(a=-1,l=s.length;++a<l;){var p=s[a];if(H.isObject(p)){var c=B.tryCatch(p.unsubscribe).call(p);if(c===F.errorObject){e=!0,t=t||[];var h=F.errorObject.e;h instanceof G.UnsubscriptionError?t=t.concat(u(h.errors)):t.push(h)}}}if(e)throw new G.UnsubscriptionError(t)}},t.prototype.add=function(e){if(!e||e===t.EMPTY)return t.EMPTY;if(e===this)return this;var r=e;switch(typeof e){case"function":r=new t(e);case"object":if(r.closed||"function"!=typeof r.unsubscribe)return r;if(this.closed)return r.unsubscribe(),r;if("function"!=typeof r._addParent){var i=r;r=new t,r._subscriptions=[i]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}return(this._subscriptions||(this._subscriptions=[])).push(r),r._addParent(this),r},t.prototype.remove=function(t){var e=this._subscriptions;if(e){var r=e.indexOf(t);-1!==r&&e.splice(r,1)}},t.prototype._addParent=function(t){var e=this,r=e._parent,i=e._parents;r&&r!==t?i?-1===i.indexOf(t)&&i.push(t):this._parents=[t]:this._parent=t},t.EMPTY=function(t){return t.closed=!0,t}(new t),t}(),q=K,J={Subscription:q},Q={closed:!0,next:function(t){},error:function(t){throw t},complete:function(){}},X={empty:Q},tt=o(function(t,e){var r=j.root.Symbol;e.rxSubscriber="function"==typeof r&&"function"==typeof r.for?r.for("rxSubscriber"):"@@rxSubscriber",e.$$rxSubscriber=e.rxSubscriber}),et=T&&T.__extends||function(t,e){function r(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},rt=function(t){function e(r,i,n){switch(t.call(this),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=X.empty;break;case 1:if(!r){this.destination=X.empty;break}if("object"==typeof r){r instanceof e?(this.destination=r,this.destination.add(this)):(this.syncErrorThrowable=!0,this.destination=new nt(this,r));break}default:this.syncErrorThrowable=!0,this.destination=new nt(this,r,i,n)}}return et(e,t),e.prototype[tt.rxSubscriber]=function(){return this},e.create=function(t,r,i){var n=new e(t,r,i);return n.syncErrorThrowable=!1,n},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this,e=t._parent,r=t._parents;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=e,this._parents=r,this},e}(J.Subscription),it=rt,nt=function(t){function e(e,r,i,n){t.call(this),this._parentSubscriber=e;var o,s=this;D.isFunction(r)?o=r:r&&(o=r.next,i=r.error,n=r.complete,r!==X.empty&&(s=Object.create(r),D.isFunction(s.unsubscribe)&&this.add(s.unsubscribe.bind(s)),s.unsubscribe=this.unsubscribe.bind(this))),this._context=s,this._next=o,this._error=i,this._complete=n}return et(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber;if(this._error)e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else{if(!e.syncErrorThrowable)throw this.unsubscribe(),t;e.syncErrorValue=t,e.syncErrorThrown=!0,this.unsubscribe()}}},e.prototype.complete=function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var r=function(){return t._complete.call(t._context)};e.syncErrorThrowable?(this.__tryOrSetError(e,r),this.unsubscribe()):(this.__tryOrUnsub(r),this.unsubscribe())}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(t){throw this.unsubscribe(),t}},e.prototype.__tryOrSetError=function(t,e,r){try{e.call(this._context,r)}catch(e){return t.syncErrorValue=e,t.syncErrorThrown=!0,!0}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(rt),ot={Subscriber:it},st=p,at={toSubscriber:st},lt=o(function(t,e){function r(t){var e,r=t.Symbol;return"function"==typeof r?r.observable?e=r.observable:(e=r("observable"),r.observable=e):e="@@observable",e}e.getSymbolObservable=r,e.observable=r(j.root),e.$$observable=e.observable}),ct=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var r=new t;return r.source=this,r.operator=e,r},t.prototype.subscribe=function(t,e,r){var i=this.operator,n=at.toSubscriber(t,e,r);if(i?i.call(n,this.source):n.add(this.source?this._subscribe(n):this._trySubscribe(n)),n.syncErrorThrowable&&(n.syncErrorThrowable=!1,n.syncErrorThrown))throw n.syncErrorValue;return n},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.syncErrorThrown=!0,t.syncErrorValue=e,t.error(e)}},t.prototype.forEach=function(t,e){var r=this;if(e||(j.root.Rx&&j.root.Rx.config&&j.root.Rx.config.Promise?e=j.root.Rx.config.Promise:j.root.Promise&&(e=j.root.Promise)),!e)throw new Error("no Promise impl found");return new e(function(e,i){var n;n=r.subscribe(function(e){if(n)try{t(e)}catch(t){i(t),n.unsubscribe()}else t(e)},i,e)})},t.prototype._subscribe=function(t){return this.source.subscribe(t)},t.prototype[lt.observable]=function(){return this},t.create=function(e){return new t(e)},t}(),ut=ct,pt={Observable:ut},ht=T&&T.__extends||function(t,e){function r(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},dt=function(t){function e(){var e=t.call(this,"object unsubscribed");this.name=e.name="ObjectUnsubscribedError",this.stack=e.stack,this.message=e.message}return ht(e,t),e}(Error),ft=dt,bt={ObjectUnsubscribedError:ft},mt=T&&T.__extends||function(t,e){function r(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},yt=function(t){function e(e,r){t.call(this),this.subject=e,this.subscriber=r,this.closed=!1}return mt(e,t),e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,e=t.observers;if(this.subject=null,e&&0!==e.length&&!t.isStopped&&!t.closed){var r=e.indexOf(this.subscriber);-1!==r&&e.splice(r,1)}}},e}(J.Subscription),gt=yt,vt={SubjectSubscription:gt},wt=T&&T.__extends||function(t,e){function r(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},xt=function(t){function e(e){t.call(this,e),this.destination=e}return wt(e,t),e}(ot.Subscriber),Ot=function(t){function e(){t.call(this),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}return wt(e,t),e.prototype[tt.rxSubscriber]=function(){return new xt(this)},e.prototype.lift=function(t){var e=new _t(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new bt.ObjectUnsubscribedError;if(!this.isStopped)for(var e=this.observers,r=e.length,i=e.slice(),n=0;n<r;n++)i[n].next(t)},e.prototype.error=function(t){if(this.closed)throw new bt.ObjectUnsubscribedError;this.hasError=!0,this.thrownError=t,this.isStopped=!0;for(var e=this.observers,r=e.length,i=e.slice(),n=0;n<r;n++)i[n].error(t);this.observers.length=0},e.prototype.complete=function(){if(this.closed)throw new bt.ObjectUnsubscribedError;this.isStopped=!0;for(var t=this.observers,e=t.length,r=t.slice(),i=0;i<e;i++)r[i].complete();this.observers.length=0},e.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},e.prototype._trySubscribe=function(e){if(this.closed)throw new bt.ObjectUnsubscribedError;return t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){if(this.closed)throw new bt.ObjectUnsubscribedError;return this.hasError?(t.error(this.thrownError),J.Subscription.EMPTY):this.isStopped?(t.complete(),J.Subscription.EMPTY):(this.observers.push(t),new vt.SubjectSubscription(this,t))},e.prototype.asObservable=function(){var t=new pt.Observable;return t.source=this,t},e.create=function(t,e){return new _t(t,e)},e}(pt.Observable),Et=Ot,_t=function(t){function e(e,r){t.call(this),this.destination=e,this.source=r}return wt(e,t),e.prototype.next=function(t){var e=this.destination;e&&e.next&&e.next(t)},e.prototype.error=function(t){var e=this.destination;e&&e.error&&this.destination.error(t)},e.prototype.complete=function(){var t=this.destination;t&&t.complete&&this.destination.complete()},e.prototype._subscribe=function(t){return this.source?this.source.subscribe(t):J.Subscription.EMPTY},e}(Ot),St=h,It={isScheduler:St},Tt=T&&T.__extends||function(t,e){function r(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},kt=function(t){function e(e,r){t.call(this),this.value=e,this.scheduler=r,this._isScalar=!0,r&&(this._isScalar=!1)}return Tt(e,t),e.create=function(t,r){return new e(t,r)},e.dispatch=function(t){var e=t.done,r=t.value,i=t.subscriber;if(e)return void i.complete();i.next(r),i.closed||(t.done=!0,this.schedule(t))},e.prototype._subscribe=function(t){var r=this.value,i=this.scheduler;if(i)return i.schedule(e.dispatch,0,{done:!1,value:r,subscriber:t});t.next(r),t.closed||t.complete()},e}(pt.Observable),Pt=kt,Ct={ScalarObservable:Pt},Lt=T&&T.__extends||function(t,e){function r(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},At=function(t){function e(e){t.call(this),this.scheduler=e}return Lt(e,t),e.create=function(t){return new e(t)},e.dispatch=function(t){t.subscriber.complete()},e.prototype._subscribe=function(t){var r=this.scheduler;if(r)return r.schedule(e.dispatch,0,{subscriber:t});t.complete()},e}(pt.Observable),Rt=At,jt={EmptyObservable:Rt},Vt=T&&T.__extends||function(t,e){function r(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},Dt=function(t){function e(e,r){t.call(this),this.array=e,this.scheduler=r,r||1!==e.length||(this._isScalar=!0,this.value=e[0])}return Vt(e,t),e.create=function(t,r){return new e(t,r)},e.of=function(){for(var t=[],r=0;r<arguments.length;r++)t[r-0]=arguments[r];var i=t[t.length-1];It.isScheduler(i)?t.pop():i=null;var n=t.length;return n>1?new e(t,i):1===n?new Ct.ScalarObservable(t[0],i):new jt.EmptyObservable(i)},e.dispatch=function(t){var e=t.array,r=t.index,i=t.count,n=t.subscriber;if(r>=i)return void n.complete();n.next(e[r]),n.closed||(t.index=r+1,this.schedule(t))},e.prototype._subscribe=function(t){var r=this.array,i=r.length,n=this.scheduler;if(n)return n.schedule(e.dispatch,0,{array:r,index:0,count:i,subscriber:t});for(var o=0;o<i&&!t.closed;o++)t.next(r[o]);t.complete()},e}(pt.Observable),Ut=Dt,Mt={ArrayObservable:Ut},zt=T&&T.__extends||function(t,e){function r(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},Ht=function(t){function e(){t.apply(this,arguments)}return zt(e,t),e.prototype.notifyNext=function(t,e,r,i,n){this.destination.next(e)},e.prototype.notifyError=function(t,e){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.complete()},e
}(ot.Subscriber),Nt=Ht,Ft={OuterSubscriber:Nt},Wt=function(t){return t&&"number"==typeof t.length},Bt={isArrayLike:Wt},Yt=d,$t={isPromise:Yt},Zt=o(function(t,e){function r(t){var e=t.Symbol;if("function"==typeof e)return e.iterator||(e.iterator=e("iterator polyfill")),e.iterator;var r=t.Set;if(r&&"function"==typeof(new r)["@@iterator"])return"@@iterator";var i=t.Map;if(i)for(var n=Object.getOwnPropertyNames(i.prototype),o=0;o<n.length;++o){var s=n[o];if("entries"!==s&&"size"!==s&&i.prototype[s]===i.prototype.entries)return s}return"@@iterator"}e.symbolIteratorPonyfill=r,e.iterator=r(j.root),e.$$iterator=e.iterator}),Gt=T&&T.__extends||function(t,e){function r(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},Kt=function(t){function e(e,r,i){t.call(this),this.parent=e,this.outerValue=r,this.outerIndex=i,this.index=0}return Gt(e,t),e.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)},e.prototype._error=function(t){this.parent.notifyError(t,this),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},e}(ot.Subscriber),qt=Kt,Jt={InnerSubscriber:qt},Qt=f,Xt={subscribeToResult:Qt},te=T&&T.__extends||function(t,e){function r(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},ee={},re=b,ie=function(){function t(t){this.project=t}return t.prototype.call=function(t,e){return e.subscribe(new oe(t,this.project))},t}(),ne=ie,oe=function(t){function e(e,r){t.call(this,e),this.project=r,this.active=0,this.values=[],this.observables=[]}return te(e,t),e.prototype._next=function(t){this.values.push(ee),this.observables.push(t)},e.prototype._complete=function(){var t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(var r=0;r<e;r++){var i=t[r];this.add(Xt.subscribeToResult(this,i,i,r))}}},e.prototype.notifyComplete=function(t){0==(this.active-=1)&&this.destination.complete()},e.prototype.notifyNext=function(t,e,r,i,n){var o=this.values,s=o[r],a=this.toRespond?s===ee?--this.toRespond:this.toRespond:0;o[r]=e,0===a&&(this.project?this._tryProject(o):this.destination.next(o.slice()))},e.prototype._tryProject=function(t){var e;try{e=this.project.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(Ft.OuterSubscriber),se=oe,ae={combineLatest:re,CombineLatestOperator:ne,CombineLatestSubscriber:se},le=m,ce={combineLatest:le};pt.Observable.combineLatest=ce.combineLatest;var ue=T&&T.__extends||function(t,e){function r(){this.constructor=t}for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},pe=(function(t){function e(e,r,i){t.call(this,e),this.observables=r,this.project=i,this.toRespond=[];var n=r.length;this.values=new Array(n);for(var o=0;o<n;o++)this.toRespond.push(o);for(var o=0;o<n;o++){var s=r[o];this.add(Xt.subscribeToResult(this,s,s,o))}}ue(e,t),e.prototype.notifyNext=function(t,e,r,i,n){this.values[r]=e;var o=this.toRespond;if(o.length>0){var s=o.indexOf(r);-1!==s&&o.splice(s,1)}},e.prototype.notifyComplete=function(){},e.prototype._next=function(t){if(0===this.toRespond.length){var e=[t].concat(this.values);this.project?this._tryProject(e):this.destination.next(e)}},e.prototype._tryProject=function(t){var e;try{e=this.project.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)}}(Ft.OuterSubscriber),{provide:r.NG_VALUE_ACCESSOR,useExisting:e.forwardRef(function(){return he}),multi:!0}),he=function(){function t(t,r,i,n){this.changeDetectorRef=r,this.elementRef=i,this.renderer=n,this.clearable=!0,this.notFoundText="No items found",this.typeToSearchText="Type to search",this.multiple=!1,this.blurEvent=new e.EventEmitter,this.focusEvent=new e.EventEmitter,this.changeEvent=new e.EventEmitter,this.openEvent=new e.EventEmitter,this.closeEvent=new e.EventEmitter,this.searchEvent=new e.EventEmitter,this.isOpen=!1,this.isFocused=!1,this.isDisabled=!1,this.itemsList=new I,this.viewPortItems=[],this.isLoading=!1,this.filterValue=null,this._items$=new Et,this._writeValue$=new Et,this._checkWriteValue=!1,this._writeValueHandler$=null,this.onChange=function(t){},this.onTouched=function(){},this.disposeDocumentClickListener=function(){},this.mergeConfig(t),this.handleWriteValue()}return Object.defineProperty(t.prototype,"single",{get:function(){return!this.multiple},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"items",{get:function(){return this.itemsList.items},set:function(t){this.setItems(t||[]),this._items$.next(!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.itemsList.value},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){this.handleDocumentClick(),this.bindLabel=this.bindLabel||"label"},t.prototype.ngOnChanges=function(t){t.multiple&&this.itemsList.setMultiple(t.multiple.currentValue)},t.prototype.ngOnDestroy=function(){this.changeDetectorRef.detach(),this.disposeDocumentClickListener(),this._writeValueHandler$.unsubscribe()},t.prototype.handleKeyDown=function(t){if(O[t.which])switch(t.which){case O.ArrowDown:this.handleArrowDown(t);break;case O.ArrowUp:this.handleArrowUp(t);break;case O.Space:this.handleSpace(t);break;case O.Enter:this.handleEnter(t);break;case O.Tab:this.handleTab(t);break;case O.Esc:this.close();break;case O.Backspace:this.handleBackspace()}},t.prototype.handleArrowClick=function(t){t.stopPropagation(),this.isOpen?this.close():this.open()},t.prototype.handleSelectClick=function(t){t.stopPropagation(),this.open()},t.prototype.handleClearClick=function(t){t.stopPropagation(),this.clear()},t.prototype.clear=function(){this.clearable&&(this.itemsList.clearSelected(),this.clearSearch(),this.notifyModelChanged(),this.isTypeahead()&&this.typeahead.next(this.filterValue))},t.prototype.writeValue=function(t){this._checkWriteValue=!0,this._writeValue$.next(t)},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this.isDisabled=t},t.prototype.open=function(){this.isDisabled||this.isOpen||(this.isOpen=!0,this.itemsList.markItem(),this.scrollToMarked(),this.focusSearchInput(),this.openEvent.emit())},t.prototype.close=function(){this.isOpen&&(this.isOpen=!1,this.clearSearch(),this.closeEvent.emit())},t.prototype.getLabelValue=function(t){return t?t[this.bindLabel]:""},t.prototype.getDisplayTemplateContext=function(){return this.itemsList.value?{item:this.itemsList.value}:{item:{}}},t.prototype.toggle=function(t){!t||t.disabled||this.isDisabled||(this.multiple&&t.selected?this.unselect(t):this.select(t))},t.prototype.select=function(t){this._checkWriteValue=!1,t.selected||(this.itemsList.select(t),this.clearSearch(),this.updateModel()),this.single&&this.close()},t.prototype.unselect=function(t){this.itemsList.unselect(t),this.updateModel()},t.prototype.showPlaceholder=function(){return this.placeholder&&!this.isValueSet(this.value)&&!this.filterValue},t.prototype.showValue=function(){return!this.filterValue&&this.isValueSet(this.value)},t.prototype.showClear=function(){return this.clearable&&(this.isValueSet(this.value)||this.filterValue)&&!this.isDisabled},t.prototype.showFilter=function(){return!this.isDisabled},t.prototype.showNoItemsFound=function(){var t=0===this.itemsList.filteredItems.length;return t&&!this.isTypeahead()||t&&this.isTypeahead()&&this.filterValue&&!this.isLoading},t.prototype.showTypeToSearch=function(){return 0===this.itemsList.filteredItems.length&&this.isTypeahead()&&!this.filterValue&&!this.isLoading},t.prototype.onFilter=function(t){this.isOpen||this.open(),this.filterValue=t.target.value,this.isTypeahead()?(this.isLoading=!0,this.typeahead.next(this.filterValue)):this.itemsList.filter(this.filterValue,this.bindLabel)},t.prototype.onInputFocus=function(){this.isFocused=!0,this.focusEvent.emit(null)},t.prototype.onInputBlur=function(){this.isFocused=!1,this.blurEvent.emit(null),this.isOpen||this.isDisabled||this.onTouched()},t.prototype.onItemHover=function(t){t.disabled||this.itemsList.markItem(t)},t.prototype.handleWriteValue=function(){var t=this;this._writeValueHandler$=ut.combineLatest(this._items$,this._writeValue$).subscribe(function(e){if(t._checkWriteValue){var r=e[1];t.validateWriteValue(r),t.itemsList.clearSelected(),r&&(t.multiple?r.forEach(function(e){t.selectWriteValue(e)}):t.selectWriteValue(r)),t.detectChanges()}})},t.prototype.setItems=function(t){this.itemsList.setItems(t),this.isTypeahead()&&(this.isLoading=!1,this.itemsList.markItem())},t.prototype.handleDocumentClick=function(){var t=this,e=function(e){if(!t.elementRef.nativeElement.contains(e.target)){var r=t.getDropdownMenu();r&&r.contains(e.target)||(t.isFocused&&t.onInputBlur(),t.isOpen&&t.close())}};this.disposeDocumentClickListener=this.renderer.listen("document","click",e)},t.prototype.validateWriteValue=function(t){var e=this;if(t){var r=function(t){if(t instanceof Object&&e.bindValue)throw new Error("Binding object with bindValue is not allowed.")};if(this.multiple){if(!Array.isArray(t))throw new Error("Multiple select model should be array.");t.forEach(function(t){return r(t)})}else r(t)}},t.prototype.selectWriteValue=function(t){var e=this.itemsList.findItem(t,this.bindLabel,this.bindValue);e&&this.itemsList.select(e)},t.prototype.updateModel=function(){this.notifyModelChanged(),this.changeDetectorRef.markForCheck()},t.prototype.clearSearch=function(){this.filterValue=null,this.itemsList.clearFilter()},t.prototype.focusSearchInput=function(){var t=this;setTimeout(function(){t.filterInput.nativeElement.focus()})},t.prototype.scrollToMarked=function(){this.dropdownList.scrollInto(this.itemsList.markedItem)},t.prototype.handleTab=function(t){this.isOpen&&this.close()},t.prototype.handleEnter=function(t){this.isOpen&&this.toggle(this.itemsList.markedItem),t.preventDefault()},t.prototype.handleSpace=function(t){this.isOpen||(this.open(),t.preventDefault())},t.prototype.handleArrowDown=function(t){this.isOpen?(this.itemsList.markNextItem(),this.scrollToMarked()):this.open(),t.preventDefault()},t.prototype.handleArrowUp=function(t){this.itemsList.markPreviousItem(),this.scrollToMarked(),t.preventDefault()},t.prototype.handleBackspace=function(){this.filterValue||(this.multiple?(this.itemsList.unselectLastItem(),this.updateModel()):this.clear())},t.prototype.notifyModelChanged=function(){var t=this,e=this.itemsList.value;if(e)if(this.bindValue){var r=Array.isArray(e)?e.map(function(e){return e[t.bindValue]}):e[this.bindValue];this.onChange(r)}else this.onChange(e);else this.onChange(null);this.changeEvent.emit(e)},t.prototype.getDropdownMenu=function(){return this.isOpen&&this.dropdownList?this.elementRef.nativeElement.querySelector(".as-menu-outer"):null},t.prototype.isTypeahead=function(){return this.typeahead&&this.typeahead.observers.length>0},t.prototype.detectChanges=function(){this.changeDetectorRef.destroyed||this.changeDetectorRef.detectChanges()},t.prototype.isValueSet=function(t){return this.multiple?!!t&&t.length>0:!!t},t.prototype.mergeConfig=function(t){t&&(this.notFoundText=t.notFoundText||this.notFoundText,this.typeToSearchText=t.typeToSearchText||this.typeToSearchText)},t.decorators=[{type:e.Component,args:[{selector:"ng-select",template:'<div (click)="handleSelectClick($event)" class="as-control"> <span class="as-multi-value-wrapper"> <span class="as-placeholder" *ngIf="showPlaceholder()">{{placeholder}}</span> <ng-container *ngIf="!multiple;else multipleValue"> <div class="as-value" *ngIf="showValue()"> <span class="as-value-label" role="option" aria-selected="true"> <ng-template *ngIf="labelTemplate" [ngTemplateOutlet]="labelTemplate" [ngTemplateOutletContext]="getDisplayTemplateContext()"> </ng-template> <span *ngIf="!labelTemplate">{{getLabelValue(value)}}</span> </span> </div> </ng-container> <ng-template #multipleValue> <div class="as-value" *ngFor="let item of value"> <span class="as-clear" (click)="unselect(item)" aria-hidden="true">×</span> <span class="as-value-label" aria-selected="true">{{getLabelValue(item)}}</span> </div> </ng-template> <div *ngIf="showFilter()" class="as-input"> <input #filterInput [value]="filterValue" (input)="onFilter($event)" (focus)="onInputFocus($event)" (blur)="onInputBlur($event)" role="combobox" aria-expanded="false" aria-owns="" aria-haspopup="false"> </div> </span> <spinner class="as-spinner-zone" *ngIf="isLoading"></spinner> <span *ngIf="showClear()" (click)="handleClearClick($event)" class="as-clear-zone" title="Clear all" aria-label="Clear all"> <span class="as-clear" aria-hidden="true">×</span> </span> <span (click)="handleArrowClick($event)" class="as-arrow-zone"> <span class="as-arrow"></span> </span> </div> <div class="as-menu-outer"> <virtual-scroll role="listbox" class="as-menu" [bufferAmount]="4" [items]="itemsList.filteredItems" (update)="viewPortItems = $event"> <div class="as-option" role="option" (click)="toggle(item)" (mousedown)="$event.preventDefault()" (mouseover)="onItemHover(item)" *ngFor="let item of viewPortItems" [class.disabled]="item.disabled" [class.selected]="item.selected" [class.marked]="item === itemsList.markedItem"> <span *ngIf="!optionTemplate">{{item[bindLabel]}}</span> <ng-template *ngIf="optionTemplate" [ngTemplateOutlet]="optionTemplate" [ngTemplateOutletContext]="{ item: item, index: item.index }"> </ng-template> </div> </virtual-scroll> <div class="as-menu" *ngIf="showNoItemsFound()"> <div class="as-option disabled"> {{notFoundText}} </div> </div> <div class="as-menu" *ngIf="showTypeToSearch()"> <div class="as-option disabled"> {{typeToSearchText}} </div> </div> </div> ',styles:["ng-select { position: relative; display: block; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } ng-select div, ng-select input, ng-select span, ng-select virtual-scroll { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } ng-select virtual-scroll { display: block; height: auto; } ng-select.opened > .as-control { border-bottom-right-radius: 0; border-bottom-left-radius: 0; background: #fff; border-color: #b3b3b3 #ccc #d9d9d9; } ng-select.opened > .as-control .as-arrow { top: -2px; border-color: transparent transparent #999; border-width: 0 5px 5px; } ng-select.opened > .as-control .as-arrow:hover { border-color: transparent transparent #666; } ng-select.opened .as-menu-outer { visibility: visible; } ng-select.focused:not(.opened) > .as-control { border-color: #007eff; box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 0 3px rgba(0, 126, 255, 0.1); } ng-select.disabled > .as-control { background-color: #f9f9f9; } ng-select .as-control { background-color: #fff; border-radius: 4px; border: 1px solid #ccc; color: #333; cursor: default; display: table; border-spacing: 0; border-collapse: separate; height: 36px; outline: none; overflow: hidden; position: relative; width: 100%; } ng-select .as-control:hover { box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06); } ng-select .as-placeholder, ng-select.as-single > .as-control .as-value { bottom: 0; color: #aaa; left: 0; line-height: 34px; padding-left: 10px; padding-right: 10px; position: absolute; right: 0; top: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } ng-select .as-placeholder .as-value-label, ng-select.as-single > .as-control .as-value .as-value-label { color: #333; } ng-select.as-multiple.disabled > .as-control .as-value { background-color: #f9f9f9; border: 1px solid #e3e3e3; } ng-select.as-multiple.disabled > .as-control .as-value .as-clear { display: none; } ng-select.as-multiple > .as-control .as-value { background-color: #f5faff; border-radius: 2px; border: 1px solid #c2e0ff; display: inline-block; font-size: 0.9em; line-height: 1.4; margin-left: 5px; margin-top: 5px; vertical-align: top; } ng-select.as-multiple > .as-control .as-value .as-clear { cursor: pointer; border-bottom-right-radius: 2px; border-top-right-radius: 2px; border-right: 1px solid #c2e0ff; padding: 1px 5px 3px; } ng-select.as-multiple > .as-control .as-value .as-clear:hover { background-color: #d8eafd; } ng-select.as-multiple > .as-control .as-value .as-value-label { border-bottom-right-radius: 2px; border-top-right-radius: 2px; cursor: default; padding: 2px 5px; } ng-select .as-input { height: 34px; padding-left: 10px; padding-right: 10px; vertical-align: middle; display: inline-block; } ng-select .as-input > input { min-width: 5px; box-sizing: content-box; background: none transparent; border: 0 none; box-shadow: none; cursor: default; display: inline-block; font-family: inherit; font-size: inherit; margin: 0; outline: none; line-height: 14px; /* For IE 8 compatibility */ padding: 8px 0 12px; /* For IE 8 compatibility */ -webkit-appearance: none; } ng-select .as-menu-outer { visibility: hidden; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: #fff; border: 1px solid #ccc; border-top-color: #e6e6e6; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06); box-sizing: border-box; margin-top: -1px; max-height: 242px; position: absolute; top: 100%; width: 100%; z-index: 1; -webkit-overflow-scrolling: touch; } ng-select .as-menu { max-height: 240px; overflow-y: auto; } ng-select .as-option { box-sizing: border-box; background-color: #fff; color: #666666; cursor: pointer; display: block; padding: 8px 10px; } ng-select .as-option:last-child { border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; } ng-select .as-option.selected { background-color: #f5faff; color: #333; } ng-select .as-option.marked { background-color: #ebf5ff; color: #333; } ng-select .as-option.disabled { color: #cccccc; cursor: default; } ng-select .as-clear-zone { -webkit-animation: Select-animation-fadeIn 200ms; -o-animation: Select-animation-fadeIn 200ms; animation: Select-animation-fadeIn 200ms; color: #999; cursor: pointer; display: table-cell; position: relative; text-align: center; vertical-align: middle; width: 17px; } ng-select .as-clear-zone .as-clear { display: inline-block; font-size: 18px; line-height: 1; } ng-select .as-clear-zone .as-clear:hover { color: #D0021B; } ng-select .as-spinner-zone { cursor: pointer; display: table-cell; position: relative; text-align: center; vertical-align: middle; width: 25px; padding-right: 5px; padding-top: 5px; } ng-select .as-arrow-zone { cursor: pointer; display: table-cell; position: relative; text-align: center; vertical-align: middle; width: 25px; padding-right: 5px; } ng-select .as-arrow-zone .as-arrow { border-color: #999 transparent transparent; border-style: solid; border-width: 5px 5px 2.5px; display: inline-block; height: 0; width: 0; position: relative; } ng-select .as-arrow-zone .as-arrow:hover { border-top-color: #666; } "],providers:[pe],encapsulation:e.ViewEncapsulation.None,changeDetection:e.ChangeDetectionStrategy.OnPush,host:{role:"dropdown"}}]}],t.ctorParameters=function(){return[{type:E,decorators:[{type:e.Optional}]},{type:e.ChangeDetectorRef},{type:e.ElementRef},{type:e.Renderer2}]},t.propDecorators={optionTemplate:[{type:e.ContentChild,args:[g,{read:e.TemplateRef}]}],labelTemplate:[{type:e.ContentChild,args:[v,{read:e.TemplateRef}]}],dropdownList:[{type:e.ViewChild,args:[w]}],filterInput:[{type:e.ViewChild,args:["filterInput"]}],bindLabel:[{type:e.Input}],bindValue:[{type:e.Input}],clearable:[{type:e.Input}],placeholder:[{type:e.Input}],notFoundText:[{type:e.Input}],typeToSearchText:[{type:e.Input}],typeahead:[{type:e.Input}],multiple:[{type:e.Input},{type:e.HostBinding,args:["class.as-multiple"]}],blurEvent:[{type:e.Output,args:["blur"]}],focusEvent:[{type:e.Output,args:["focus"]}],changeEvent:[{type:e.Output,args:["change"]}],openEvent:[{type:e.Output,args:["open"]}],closeEvent:[{type:e.Output,args:["close"]}],searchEvent:[{type:e.Output,args:["search"]}],single:[{type:e.HostBinding,args:["class.as-single"]}],isOpen:[{type:e.HostBinding,args:["class.opened"]}],isFocused:[{type:e.HostBinding,args:["class.focused"]}],isDisabled:[{type:e.HostBinding,args:["class.disabled"]}],items:[{type:e.Input}],handleKeyDown:[{type:e.HostListener,args:["keydown",["$event"]]}]},t}(),de=function(){function t(){}return t.decorators=[{type:e.Component,args:[{selector:"spinner",template:'\n <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"\n width="20px" height="20px" viewBox="0 0 50 50" style="enable-background:new 0 0 50 50;" xml:space="preserve">\n <path fill="#777" d="M43.935,25.145c0-10.318-8.364-18.683-18.683-18.683c-10.318,0-18.683,8.365-18.683,18.683h4.068c0-8.071,6.543-14.615,14.615-14.615c8.072,0,14.615,6.543,14.615,14.615H43.935z">\n <animateTransform attributeType="xml"\n attributeName="transform"\n type="rotate"\n from="0 25 25"\n to="360 25 25"\n dur="0.6s"\n repeatCount="indefinite"/>\n </path>\n </svg>'}]}],t.ctorParameters=function(){return[]},t}(),fe=function(){function t(){}return t.forRoot=function(t){return y(t)},t.forChild=function(t){return y(t)},t.decorators=[{type:e.NgModule,args:[{declarations:[he,g,v,de],imports:[r.FormsModule,i.CommonModule,x],exports:[he,g,v]}]}],t.ctorParameters=function(){return[]},t}();t.NgSelectComponent=he,t.NgSelectModule=fe,t.NgSelectConfig=E,t.ɵb=v,t.ɵa=g,t.ɵe=de,t.ɵc=w,t.ɵd=x,Object.defineProperty(t,"__esModule",{value:!0})});
//# sourceMappingURL=ng-select.umd.min.js.map
{
"name": "@ng-select/ng-select",
"version": "0.2.4",
"version": "0.2.5",
"description": "Angular native ui select",

@@ -5,0 +5,0 @@ "main": "./bundles/ng-select.umd.js",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc