Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ng-select/ng-select

Package Overview
Dependencies
Maintainers
2
Versions
282
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.36.2 to 1.0.1-rc.0

2

bundles/ng-select.umd.min.js

@@ -1,2 +0,2 @@

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("rxjs/Subject"),require("rxjs/observable/merge"),require("rxjs/operators"),require("@angular/forms"),require("@angular/common")):"function"==typeof define&&define.amd?define("@ng-select/ng-select",["exports","@angular/core","rxjs/Subject","rxjs/observable/merge","rxjs/operators","@angular/forms","@angular/common"],t):t((e["ng-select"]=e["ng-select"]||{},e["ng-select"]["ng-select"]={}),e.ng.core,e.Rx,e.Rx.Observable,e.Rx.Observable.prototype,e.ng.forms,e.ng.common)}(this,function(e,s,r,o,l,t,n){"use strict";function g(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function f(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,o,r=n.call(e),s=[];try{for(;(void 0===t||0<t--)&&!(i=r.next()).done;)s.push(i.value)}catch(l){o={error:l}}finally{try{i&&!i.done&&(n=r["return"])&&n.call(r)}finally{if(o)throw o.error}}return s}function y(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(f(arguments[t]));return e}var i=function(e){this.template=e};i.decorators=[{type:s.Directive,args:[{selector:"[ng-option-tmp]"}]}],i.ctorParameters=function(){return[{type:s.TemplateRef}]};var a=function(e){this.template=e};a.decorators=[{type:s.Directive,args:[{selector:"[ng-optgroup-tmp]"}]}],a.ctorParameters=function(){return[{type:s.TemplateRef}]};var c=function(e){this.template=e};c.decorators=[{type:s.Directive,args:[{selector:"[ng-label-tmp]"}]}],c.ctorParameters=function(){return[{type:s.TemplateRef}]};var p=function(e){this.template=e};p.decorators=[{type:s.Directive,args:[{selector:"[ng-multi-label-tmp]"}]}],p.ctorParameters=function(){return[{type:s.TemplateRef}]};var d=function(e){this.template=e};d.decorators=[{type:s.Directive,args:[{selector:"[ng-header-tmp]"}]}],d.ctorParameters=function(){return[{type:s.TemplateRef}]};var u=function(e){this.template=e};u.decorators=[{type:s.Directive,args:[{selector:"[ng-footer-tmp]"}]}],u.ctorParameters=function(){return[{type:s.TemplateRef}]};var h=function(e){this.template=e};h.decorators=[{type:s.Directive,args:[{selector:"[ng-notfound-tmp]"}]}],h.ctorParameters=function(){return[{type:s.TemplateRef}]};var m=function(e){this.template=e};m.decorators=[{type:s.Directive,args:[{selector:"[ng-typetosearch-tmp]"}]}],m.ctorParameters=function(){return[{type:s.TemplateRef}]};var v=function(e){this.template=e};v.decorators=[{type:s.Directive,args:[{selector:"[ng-loadingtext-tmp]"}]}],v.ctorParameters=function(){return[{type:s.TemplateRef}]};var b={Tab:9,Enter:13,Esc:27,Space:32,ArrowUp:38,ArrowDown:40,Backspace:8};b[b.Tab]="Tab",b[b.Enter]="Enter",b[b.Esc]="Esc",b[b.Space]="Space",b[b.ArrowUp]="ArrowUp",b[b.ArrowDown]="ArrowDown",b[b.Backspace]="Backspace";var _={"Ⓐ":"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","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ω":"ω","ς":"σ"};function I(e){return e.replace(/[^\u0000-\u007E]/g,function(e){return _[e]||e})}function T(e){return null!==e&&e!==undefined}function w(e){return T(e)&&"object"==typeof e}function x(e){return e instanceof Function}function E(){return"axxxxxxxxxxx".replace(/[x]/g,function(e){return(16*Math.random()|0).toString(16)})}var S=function(){function e(e){this._ngSelect=e,this._items=[],this._filteredItems=[],this._markedIndex=-1,this._selected=[]}return Object.defineProperty(e.prototype,"items",{get:function(){return this._items},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"filteredItems",{get:function(){return this._filteredItems},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._selected},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"markedItem",{get:function(){return this._filteredItems[this._markedIndex]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"markedIndex",{get:function(){return this._markedIndex},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"noItemsToSelect",{get:function(){return this._ngSelect.hideSelected&&this._items.length===this._selected.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maxItemsSelected",{get:function(){return this._ngSelect.multiple&&this._ngSelect.maxSelectedItems<=this._selected.length},enumerable:!0,configurable:!0}),e.prototype.setItems=function(e){var n=this;this._items=e.map(function(e,t){return n.mapItem(e,t)}),this._ngSelect.groupBy?(this._groups=this._groupBy(this._items,this._ngSelect.groupBy),this._items=this._flatten(this._groups)):(this._groups=new Map,this._groups.set(undefined,this._items)),this._filteredItems=y(this._items)},e.prototype.select=function(t){t.selected||this.maxItemsSelected||(this._ngSelect.multiple||this.clearSelected(),this._selected.push(t),t.selected=!0,this._ngSelect.hideSelected&&(this._filteredItems=this._filteredItems.filter(function(e){return e!==t})))},e.prototype.findItem=function(t){var n=this;if(this._ngSelect.bindValue)return this._items.find(function(e){return!e.hasChildren&&n.resolveNested(e.value,n._ngSelect.bindValue)===t});var e=this._items.find(function(e){return e.value===t}),i=this._ngSelect.compareWith?function(e){return n._ngSelect.compareWith(e.value,t)}:function(e){return!e.hasChildren&&e.label&&e.label===n.resolveNested(t,n._ngSelect.bindLabel)};return e||this._items.find(function(e){return i(e)})},e.prototype.unselect=function(t){this._selected=this._selected.filter(function(e){return e!==t}),t.selected=!1,this._ngSelect.hideSelected&&(this._filteredItems.splice(t.index,0,t),this._filteredItems=y(this._filteredItems.sort(function(e,t){return e.index-t.index})))},e.prototype.unselectLast=function(){0!==this._selected.length&&this.unselect(this._lastSelectedItem)},e.prototype.addItem=function(e){var t=this.mapItem(e,this._items.length);return this._items.push(t),this._filteredItems.push(t),t},e.prototype.clearSelected=function(){this._selected.forEach(function(e){e.selected=!1,e.marked=!1}),this._selected=[],this._ngSelect.hideSelected&&this.resetItems()},e.prototype.filter=function(u){if(u){this._filteredItems=[],u=this._ngSelect.searchFn?u:I(u).toLocaleLowerCase();var e,t,h=this._ngSelect.searchFn||this._defaultSearchFn,n=function(e){var t,n,i,o=[];try{for(var r=g(m._groups.get(e)),s=r.next();!s.done;s=r.next()){var l=s.value;if(!(m._ngSelect.hideSelected&&-1<m._selected.indexOf(l))){var a=m._ngSelect.searchFn?l.value:l;h(u,a)&&o.push(l)}}}catch(d){t={error:d}}finally{try{s&&!s.done&&(n=r["return"])&&n.call(r)}finally{if(t)throw t.error}}if(0<o.length){var c=f(o.slice(-1),1)[0];if(c.parent){var p=m._items.find(function(e){return e===c.parent});m._filteredItems.push(p)}(i=m._filteredItems).push.apply(i,y(o))}},m=this;try{for(var i=g(Array.from(this._groups.keys())),o=i.next();!o.done;o=i.next()){n(o.value)}}catch(r){e={error:r}}finally{try{o&&!o.done&&(t=i["return"])&&t.call(i)}finally{if(e)throw e.error}}}else this.resetItems()},e.prototype.resetItems=function(){var t=this;this._filteredItems.length!==this._items.length&&(this._filteredItems=this._ngSelect.hideSelected?this._items.filter(function(e){return-1===t._selected.indexOf(e)}):this._items)},e.prototype.unmarkItem=function(){this._markedIndex=-1},e.prototype.markNextItem=function(){this._stepToItem(1)},e.prototype.markPreviousItem=function(){this._stepToItem(-1)},e.prototype.markItem=function(e){this._markedIndex=this._filteredItems.indexOf(e)},e.prototype.markSelectedOrDefault=function(e){if(0!==this._filteredItems.length){var t=this._ngSelect.hideSelected?-1:this._filteredItems.indexOf(this._lastSelectedItem);this._lastSelectedItem&&-1<t?this._markedIndex=t:this._markedIndex=e?this.filteredItems.findIndex(function(e){return!e.disabled}):-1}},e.prototype.resolveNested=function(e,t){if(!w(e))return e;if(-1===t.indexOf("."))return e[t];for(var n=t.split("."),i=e,o=0,r=n.length;o<r;++o){if(null==i)return null;i=i[n[o]]}return i},e.prototype.mapItem=function(e,t){var n=this.resolveNested(e,this._ngSelect.bindLabel);return{index:t,label:T(n)?n.toString():"",value:e,disabled:e.disabled,htmlId:E()}},e.prototype.mapSelectedItems=function(){var o=this;this._selected.forEach(function(e,t){var n=o._ngSelect.bindValue?e.value[o._ngSelect.bindValue]:e.value,i=o.findItem(n);i&&e!==i&&(i.selected=!0,o._selected[t]=i)}),this._ngSelect.hideSelected&&(this._filteredItems=this.filteredItems.filter(function(e){return-1===o._selected.indexOf(e)}))},e.prototype._defaultSearchFn=function(e,t){return-1<I(t.label).toLocaleLowerCase().indexOf(e)},e.prototype._getNextItemIndex=function(e){return 0<e?this._markedIndex===this._filteredItems.length-1?0:this._markedIndex+1:this._markedIndex<=0?this._filteredItems.length-1:this._markedIndex-1},e.prototype._stepToItem=function(e){0===this._filteredItems.length||this._filteredItems.every(function(e){return e.disabled})||(this._markedIndex=this._getNextItemIndex(e),this.markedItem.disabled&&this._stepToItem(e))},Object.defineProperty(e.prototype,"_lastSelectedItem",{get:function(){return this._selected[this._selected.length-1]},enumerable:!0,configurable:!0}),e.prototype._groupBy=function(e,o){var r=this,s=o instanceof Function;return e.reduce(function(e,t){var n=s?o.apply(r,[t.value]):t.value[o],i=e.get(n);return i?i.push(t):e.set(n,[t]),e},new Map)},e.prototype._flatten=function(o){var r=this,s=0;return Array.from(o.keys()).reduce(function(e,t){var n={label:t,hasChildren:!0,index:s,disabled:!r._ngSelect.selectableGroup,htmlId:E(),value:{}};n.value[r._ngSelect.groupBy]=t,e.push(n),s++;var i=o.get(t).map(function(e){return e.parent=n,e.hasChildren=!1,s++,e});return e.push.apply(e,y(i)),e},[])},e}(),O=function(){function e(e){this.elementRef=e,this.stateChange$=new r.Subject,this._disabled=!1}return Object.defineProperty(e.prototype,"disabled",{get:function(){return this._disabled},set:function(e){this._disabled=this._isDisabled(e)},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){e.disabled&&this.stateChange$.next({value:this.value,disabled:this._disabled})},e.prototype._isDisabled=function(e){return null!=e&&""+e!="false"},e}();O.decorators=[{type:s.Component,args:[{selector:"ng-option",changeDetection:s.ChangeDetectionStrategy.OnPush,template:"<ng-content></ng-content>"}]}],O.ctorParameters=function(){return[{type:s.ElementRef}]},O.propDecorators={value:[{type:s.Input}],disabled:[{type:s.Input}]};var L=function(){function e(){}return e.prototype.requestAnimationFrame=function(e){return window.requestAnimationFrame(e)},e}();L.decorators=[{type:s.Injectable}],L.ctorParameters=function(){return[]};var k=function(){function e(){}return e.prototype.calculateItems=function(e,t,n){var i=e.childHeight*e.itemsLength;t.scrollTop>i&&(t.scrollTop=i);var o=Math.max(0,t.scrollTop)/i*e.itemsLength,r=Math.min(e.itemsLength,Math.ceil(o)+(e.itemsPerCol+1)),s=r,l=Math.max(0,s-e.itemsPerCol-1),a=Math.min(l,Math.floor(o)),c=e.childHeight*Math.ceil(a)-e.childHeight*Math.min(a,n);return c=isNaN(c)?0:c,a=isNaN(a)?-1:a,r=isNaN(r)?-1:r,a-=n,r+=n,{topPadding:c,scrollHeight:i,start:a=Math.max(0,a),end:r=Math.min(e.itemsLength,r)}},e.prototype.calculateDimensions=function(e,t,n,i){var o=n.getBoundingClientRect(),r=i.children[t]?i.children[t].getBoundingClientRect():{width:o.width,height:o.height,top:0},s=Math.max(1,Math.floor(o.height/r.height));return{itemsLength:e,viewWidth:o.width,viewHeight:o.height,childWidth:r.width,childHeight:r.height,itemsPerCol:s}},e}();k.decorators=[{type:s.Injectable}],k.ctorParameters=function(){return[]};var C="top",A="bottom",R=function(){function e(e,t,n,i,o,r){this._renderer=t,this._elementRef=n,this._zone=i,this._virtualScrollService=o,this._window=r,this.items=[],this.position="auto",this.bufferAmount=4,this.virtualScroll=!1,this.update=new s.EventEmitter,this.scrollToEnd=new s.EventEmitter,this._startupLoop=!0,this._isScrolledToMarked=!1,this._scrollToEndFired=!1,this._disposeScrollListener=function(){},this._disposeDocumentResizeListener=function(){},this._selectElementRef=e.elementRef,this._itemsList=e.itemsList}return e.prototype.ngOnInit=function(){this._handleScroll()},e.prototype.ngOnChanges=function(e){e.items&&this._handleItemsChange(e.items)},e.prototype.ngOnDestroy=function(){this._disposeDocumentResizeListener(),this._disposeScrollListener(),this.appendTo&&this._renderer.removeChild(this._elementRef.nativeElement.parentNode,this._elementRef.nativeElement)},e.prototype.ngAfterContentInit=function(){var e=this;this._whenContentReady().then(function(){e._handleDropdownPosition()})},e.prototype.refresh=function(){var t=this;return new Promise(function(e){t._zone.runOutsideAngular(function(){t._window.requestAnimationFrame(function(){t._updateItems().then(e)})})})},e.prototype.scrollInto=function(e){if(e){var t=this.items.indexOf(e);if(!(t<0||t>=this.items.length)){var n=this._calculateDimensions(this.virtualScroll?0:t),i=this.scrollElementRef.nativeElement,o=Math.floor(n.viewHeight/n.childHeight)-1;if(this.virtualScroll)i.scrollTop=t*n.childHeight-n.childHeight*Math.min(t,o);else{var r=this.contentElementRef.nativeElement,s=Array.from(r.children).slice(0,t).reduce(function(e,t){return e+t.clientHeight},0);i.scrollTop=s-n.childHeight*Math.min(t,o)}}}},e.prototype.scrollIntoTag=function(){var e=this.scrollElementRef.nativeElement,t=this._calculateDimensions();e.scrollTop=t.childHeight*(t.itemsLength+1)},e.prototype._handleScroll=function(){var e=this;this._disposeScrollListener=this._renderer.listen(this.scrollElementRef.nativeElement,"scroll",function(){e.refresh(),e._fireScrollToEnd()})},e.prototype._handleItemsChange=function(e){var t=this;this._scrollToEndFired=!1,this._previousStart=undefined,this._previousEnd=undefined,(e!==undefined&&e.previousValue===undefined||e.previousValue!==undefined&&0===e.previousValue.length)&&(this._startupLoop=!0),this.items=e.currentValue||[],this.refresh().then(function(){t.appendTo&&"top"===t._currentPosition&&t._updateAppendedDropdownPosition()})},e.prototype._updateItems=function(){var o=this;if(s.NgZone.assertNotInAngularZone(),!this.virtualScroll)return this._zone.run(function(){o.update.emit(o.items.slice()),o._scrollToMarked()}),Promise.resolve();var r=function(e){var t=o._calculateDimensions(),n=o._virtualScrollService.calculateItems(t,o.scrollElementRef.nativeElement,o.bufferAmount||0);o.paddingElementRef.nativeElement.style.height=n.scrollHeight+"px";var i="translateY("+n.topPadding+"px)";o.contentElementRef.nativeElement.style.transform=i,n.start!==o._previousStart||n.end!==o._previousEnd?(o._zone.run(function(){o.update.emit(o.items.slice(n.start,n.end))}),o._previousStart=n.start,o._previousEnd=n.end,!0===o._startupLoop&&r(e)):!0===o._startupLoop&&(o._startupLoop=!1,o._scrollToMarked(),e())};return new Promise(function(e){return r(e)})},e.prototype._fireScrollToEnd=function(){if(!this._scrollToEndFired){var e=this.scrollElementRef.nativeElement,t=this._elementRef.nativeElement,n=this.virtualScroll?this.paddingElementRef.nativeElement:this.contentElementRef.nativeElement;e.scrollTop+t.clientHeight>=n.clientHeight&&(this.scrollToEnd.emit(),this._scrollToEndFired=!0)}},e.prototype._calculateDimensions=function(e){return void 0===e&&(e=0),this._virtualScrollService.calculateDimensions(this.items.length,e,this.scrollElementRef.nativeElement,this.contentElementRef.nativeElement)},e.prototype._handleDocumentResize=function(){var e=this;this.appendTo&&(this._disposeDocumentResizeListener=this._renderer.listen("window","resize",function(){e._updateAppendedDropdownPosition()}))},e.prototype._scrollToMarked=function(){this._isScrolledToMarked||(this._isScrolledToMarked=!0,this.scrollInto(this._itemsList.markedItem))},e.prototype._handleDropdownPosition=function(){this.appendTo&&(this._appendDropdown(),this._handleDocumentResize());var e=this._elementRef.nativeElement;this._currentPosition=this._calculateCurrentPosition(e);var t=this._selectElementRef.nativeElement;"top"===this._currentPosition?(this._renderer.addClass(e,C),this._renderer.removeClass(e,A),this._renderer.addClass(t,C),this._renderer.removeClass(t,A)):(this._renderer.addClass(e,A),this._renderer.removeClass(e,C),this._renderer.addClass(t,A),this._renderer.removeClass(t,C)),this.appendTo&&this._updateAppendedDropdownPosition(),e.style.opacity="1"},e.prototype._calculateCurrentPosition=function(e){if("auto"!==this.position)return this.position;var t=this._selectElementRef.nativeElement.getBoundingClientRect(),n=document.documentElement.scrollTop||document.body.scrollTop;return t.top+window.pageYOffset+t.height+e.getBoundingClientRect().height>n+document.documentElement.clientHeight?"top":"bottom"},e.prototype._appendDropdown=function(){var e=document.querySelector(this.appendTo);if(!e)throw new Error("appendTo selector "+this.appendTo+" did not found any parent element");e.appendChild(this._elementRef.nativeElement)},e.prototype._updateAppendedDropdownPosition=function(){var e=document.querySelector(this.appendTo)||document.body,t=this._selectElementRef.nativeElement.getBoundingClientRect(),n=this._elementRef.nativeElement,i=e.getBoundingClientRect(),o=t.top-i.top,r=t.left-i.left,s="bottom"===this._currentPosition?t.height:-n.clientHeight;n.style.top=o+s+"px",n.style.bottom="auto",n.style.left=r+"px",n.style.width=t.width+"px"},e.prototype._whenContentReady=function(){var t=this;if(0===this.items.length)return Promise.resolve();var n=this._elementRef.nativeElement,i=function(e){n.querySelector(".ng-option")?e():t._zone.runOutsideAngular(function(){setTimeout(function(){return i(e)},5)})};return new Promise(function(e){return i(e)})},e}();R.decorators=[{type:s.Component,args:[{changeDetection:s.ChangeDetectionStrategy.OnPush,encapsulation:s.ViewEncapsulation.None,selector:"ng-dropdown-panel",template:'\n <div *ngIf="headerTemplate" class="ng-dropdown-header" ngProjectAs="header" header>\n <ng-container [ngTemplateOutlet]="headerTemplate"></ng-container>\n </div>\n <div #scroll class="ng-dropdown-panel-items scroll-host">\n <div #padding [class.total-padding]="virtualScroll"></div>\n <div #content [class.scrollable-content]="virtualScroll && items.length > 0">\n <ng-content></ng-content>\n </div>\n </div>\n <div *ngIf="footerTemplate" class="ng-dropdown-footer" ngProjectAs="footer" footer>\n <ng-container [ngTemplateOutlet]="footerTemplate"></ng-container>\n </div>\n ',styles:[".ng-dropdown-panel{-webkit-box-sizing:border-box;box-sizing:border-box;position:absolute;opacity:0;width:100%;z-index:1050;-webkit-overflow-scrolling:touch}.ng-dropdown-panel .ng-dropdown-panel-items{display:block;height:auto;-webkit-box-sizing:border-box;box-sizing:border-box;max-height:240px;overflow-y:auto}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option{-webkit-box-sizing:border-box;box-sizing:border-box;cursor:pointer;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .highlighted{font-weight:700;text-decoration:underline}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.disabled{cursor:default}.ng-dropdown-panel .scroll-host{overflow:hidden;overflow-y:auto;position:relative;display:block;-webkit-overflow-scrolling:touch}.ng-dropdown-panel .scrollable-content{top:0;left:0;width:100%;height:100%;position:absolute}.ng-dropdown-panel .total-padding{width:1px;opacity:0}"]}]}],R.ctorParameters=function(){return[{type:V,decorators:[{type:s.Inject,args:[s.forwardRef(function(){return V})]}]},{type:s.Renderer2},{type:s.ElementRef},{type:s.NgZone},{type:k},{type:L}]},R.propDecorators={items:[{type:s.Input}],position:[{type:s.Input}],appendTo:[{type:s.Input}],bufferAmount:[{type:s.Input}],virtualScroll:[{type:s.Input}],headerTemplate:[{type:s.Input}],footerTemplate:[{type:s.Input}],update:[{type:s.Output}],scrollToEnd:[{type:s.Output}],contentElementRef:[{type:s.ViewChild,args:["content",{read:s.ElementRef}]}],scrollElementRef:[{type:s.ViewChild,args:["scroll",{read:s.ElementRef}]}],paddingElementRef:[{type:s.ViewChild,args:["padding",{read:s.ElementRef}]}]};var D=function(){function e(){}return e.prototype.warn=function(e){console.warn(e)},e}();D.decorators=[{type:s.Injectable}],D.ctorParameters=function(){return[]};var P=new s.InjectionToken("ng-select-default-options"),V=function(){function e(e,t,n,i){var o=this;this._cd=t,this._console=n,this.elementRef=i,this.items=[],this.clearable=!0,this.markFirst=!0,this.dropdownPosition="auto",this.loading=!1,this.closeOnSelect=!0,this.hideSelected=!1,this.selectOnTab=!1,this.bufferAmount=4,this.virtualScroll=!1,this.selectableGroup=!1,this.searchFn=null,this.multiple=!1,this.addTag=!1,this.searchable=!0,this.blurEvent=new s.EventEmitter,this.focusEvent=new s.EventEmitter,this.changeEvent=new s.EventEmitter,this.openEvent=new s.EventEmitter,this.closeEvent=new s.EventEmitter,this.searchEvent=new s.EventEmitter,this.clearEvent=new s.EventEmitter,this.addEvent=new s.EventEmitter,this.removeEvent=new s.EventEmitter,this.scrollToEnd=new s.EventEmitter,this.isOpen=!1,this.isFocused=!1,this.isDisabled=!1,this.itemsList=new S(this),this.viewPortItems=[],this.filterValue=null,this.dropdownId=E(),this.selectedItemId=0,this._defaultLabel="label",this._defaultValue="value",this._typeaheadLoading=!1,this._destroy$=new r.Subject,this._onChange=function(e){},this._onTouched=function(){},this.clearItem=function(t){var e=o.selectedItems.find(function(e){return e.value===t});o.unselect(e)},this._mergeGlobalConfig(e)}return Object.defineProperty(e.prototype,"compareWith",{get:function(){return this._compareWith},set:function(e){if(!x(e))throw Error("`compareWith` must be a function.");this._compareWith=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"filtered",{get:function(){return!!this.filterValue},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selectedItems",{get:function(){return this.itemsList.value},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selectedValues",{get:function(){return this.selectedItems.map(function(e){return e.value})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isLoading",{get:function(){return this.loading||this._typeaheadLoading},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasValue",{get:function(){return 0<this.selectedItems.length},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){e.multiple&&this.itemsList.clearSelected(),e.items&&this._setItems(e.items.currentValue||[])},e.prototype.ngAfterViewInit=function(){0<this.ngOptions.length&&0===this.items.length&&this._setItemsFromNgOptions()},e.prototype.ngOnDestroy=function(){this._destroy$.next(),this._destroy$.complete()},e.prototype.handleKeyDown=function(e){if(b[e.which])switch(e.which){case b.ArrowDown:this._handleArrowDown(e);break;case b.ArrowUp:this._handleArrowUp(e);break;case b.Space:this._handleSpace(e);break;case b.Enter:this._handleEnter(e);break;case b.Tab:this._handleTab(e);break;case b.Esc:this.close();break;case b.Backspace:this._handleBackspace()}},e.prototype.handleArrowClick=function(e){e.stopPropagation(),this.isOpen?this.close():this.open()},e.prototype.handleClearClick=function(e){e.stopPropagation(),this.hasValue&&this.clearModel(),this._clearSearch(),this.focusSearchInput(),this._isTypeahead&&this.typeahead.next(null),this.clearEvent.emit()},e.prototype.clearModel=function(){this.clearable&&(this.itemsList.clearSelected(),this._updateNgModel())},e.prototype.writeValue=function(e){this.itemsList.clearSelected(),this._handleWriteValue(e),this._cd.markForCheck()},e.prototype.registerOnChange=function(e){this._onChange=e},e.prototype.registerOnTouched=function(e){this._onTouched=e},e.prototype.setDisabledState=function(e){this.isDisabled=e,this._cd.markForCheck()},e.prototype.toggle=function(){this.isOpen?this.close():this.open()},e.prototype.open=function(){this.isDisabled||this.isOpen||this.itemsList.maxItemsSelected||!this._isTypeahead&&this.itemsList.noItemsToSelect||(this.isOpen=!0,this.itemsList.markSelectedOrDefault(this.markFirst),this.openEvent.emit(),this.filterValue||this.focusSearchInput(),this.detectChanges())},e.prototype.close=function(){this.isOpen&&(this.isOpen=!1,this._clearSearch(),this._onTouched(),this.closeEvent.emit(),this.detectChanges())},e.prototype.toggleItem=function(e){!e||e.disabled||this.isDisabled||(this.multiple&&e.selected?this.unselect(e):this.select(e))},e.prototype.select=function(e){e.selected||(this.itemsList.select(e),this._clearSearch(),this._updateNgModel(),this.addEvent.emit(e.value)),(this.closeOnSelect||this.itemsList.noItemsToSelect)&&this.close()},e.prototype.unselect=function(e){this.itemsList.unselect(e),this._updateNgModel(),this.removeEvent.emit(e)},e.prototype.selectTag=function(){var e,t,n=this;e=x(this.addTag)?this.addTag(this.filterValue):this._primitive?this.filterValue:((t={})[this.bindLabel]=this.filterValue,t),e instanceof Promise?e.then(function(e){return n.select(n.itemsList.addItem(e))})["catch"](function(){}):e&&this.select(this.itemsList.addItem(e))},e.prototype.showClear=function(){return this.clearable&&(this.hasValue||this.filterValue)&&!this.isDisabled},e.prototype.showAddTag=function(){var t=this;return this.addTag&&this.filterValue&&!this.itemsList.filteredItems.some(function(e){return e.label.toLowerCase()===t.filterValue.toLowerCase()})&&!this.isLoading},e.prototype.showFilter=function(){return!this.isDisabled},e.prototype.showNoItemsFound=function(){var e=0===this.itemsList.filteredItems.length;return(e&&!this._isTypeahead&&!this.loading||e&&this._isTypeahead&&this.filterValue&&!this.isLoading)&&!this.showAddTag()},e.prototype.showTypeToSearch=function(){return 0===this.itemsList.filteredItems.length&&this._isTypeahead&&!this.filterValue&&!this.isLoading},e.prototype.filter=function(e){this.searchable&&(this.filterValue=e,this.open(),this._isTypeahead?(this._typeaheadLoading=!0,this.typeahead.next(this.filterValue)):(this.itemsList.filter(this.filterValue),this.itemsList.markSelectedOrDefault(this.markFirst)))},e.prototype.onInputFocus=function(){this.isFocused=!0,this.focusEvent.emit(null)},e.prototype.onInputBlur=function(){this.isFocused=!1,this.blurEvent.emit(null),this.isOpen||this.isDisabled||this._onTouched()},e.prototype.onItemHover=function(e){e.disabled||this.itemsList.markItem(e)},e.prototype.detectChanges=function(){this._cd.destroyed||this._cd.detectChanges()},e.prototype.focusSearchInput=function(){this.filterInput.nativeElement.focus(),this.filterInput.nativeElement.select()},e.prototype._setItems=function(e){var t=e[0];this.bindLabel=this.bindLabel||this._defaultLabel,this._primitive=!w(t),this.itemsList.setItems(e),0<e.length&&this.hasValue&&this.itemsList.mapSelectedItems(),this._isTypeahead&&(this._typeaheadLoading=!1,this.itemsList.markSelectedOrDefault(this.markFirst))},e.prototype._setItemsFromNgOptions=function(){var i=this;this.bindLabel=this.bindLabel||this._defaultLabel,this.bindValue=this.bindValue||this._defaultValue;this.ngOptions.changes.pipe(l.startWith(this.ngOptions),l.takeUntil(this._destroy$)).subscribe(function(e){var t,n;t=e,i.items=t.map(function(e){return{value:e.value,label:e.elementRef.nativeElement.innerHTML,disabled:e.disabled}}),i.itemsList.setItems(i.items),i.hasValue&&i.itemsList.mapSelectedItems(),i.detectChanges(),n=o.merge(i.ngOptions.changes,i._destroy$),o.merge.apply(void 0,y(i.ngOptions.map(function(e){return e.stateChange$}))).pipe(l.takeUntil(n)).subscribe(function(e){i.itemsList.findItem(e.value).disabled=e.disabled,i._cd.markForCheck()})})},e.prototype._isValidWriteValue=function(e){var t=this;if(!T(e)||this.multiple&&""===e||Array.isArray(e)&&0===e.length)return!1;var n=function(e){return!w(e)||!t.bindValue||(t._console.warn("Binding object("+JSON.stringify(e)+") with bindValue is not allowed."),!1)};return this.multiple?Array.isArray(e)?e.every(function(e){return n(e)}):(this._console.warn("Multiple select ngModel should be array."),!1):n(e)},e.prototype._handleWriteValue=function(e){var r=this;if(this._isValidWriteValue(e)){var t=function(e){var t,n=r.itemsList.findItem(e);if(n)r.itemsList.select(n);else{var i=w(e),o=!i&&!r.bindValue;i||o?r.itemsList.select(r.itemsList.mapItem(e,null)):r.bindValue&&((t={})[r.bindLabel]=null,t[r.bindValue]=e,n=t,r.itemsList.select(r.itemsList.mapItem(n,null)))}};this.multiple?e.forEach(function(e){t(e)}):t(e)}},e.prototype._updateNgModel=function(){var e,t,n=[];try{for(var i=g(this.selectedItems),o=i.next();!o.done;o=i.next()){var r=o.value;if(this.bindValue){var s=null;s=r.hasChildren?r.value[this.groupBy]:this.itemsList.resolveNested(r.value,this.bindValue),n.push(s)}else n.push(r.value)}}catch(l){e={error:l}}finally{try{o&&!o.done&&(t=i["return"])&&t.call(i)}finally{if(e)throw e.error}}this.multiple?(this._onChange(n),this.changeEvent.emit(this.selectedItems.map(function(e){return e.value}))):(this._onChange(T(n[0])?n[0]:null),this.changeEvent.emit(this.selectedItems[0]&&this.selectedItems[0].value)),this._cd.markForCheck()},e.prototype._clearSearch=function(){this.filterValue&&(this.filterValue=null,this.itemsList.resetItems())},e.prototype._scrollToMarked=function(){this.isOpen&&this.dropdownPanel&&this.dropdownPanel.scrollInto(this.itemsList.markedItem)},e.prototype._scrollToTag=function(){this.isOpen&&this.dropdownPanel&&this.dropdownPanel.scrollIntoTag()},e.prototype._handleTab=function(e){this.isOpen&&(this.selectOnTab?this.itemsList.markedItem?(this.toggleItem(this.itemsList.markedItem),e.preventDefault()):this.showAddTag()?(this.selectTag(),e.preventDefault()):this.close():this.close())},e.prototype._handleEnter=function(e){this.isOpen&&(this.itemsList.markedItem?this.toggleItem(this.itemsList.markedItem):this.addTag&&this.selectTag()),e.preventDefault(),e.stopPropagation()},e.prototype._handleSpace=function(e){this.isOpen||(this.open(),e.preventDefault())},e.prototype._handleArrowDown=function(e){this.nextItemIsTag(1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markNextItem(),this._scrollToMarked()),this.open(),e.preventDefault()},e.prototype._handleArrowUp=function(e){this.isOpen&&(this.nextItemIsTag(-1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markPreviousItem(),this._scrollToMarked()),e.preventDefault())},e.prototype.nextItemIsTag=function(e){var t=this.itemsList.markedIndex+e;return this.addTag&&this.filterValue&&this.itemsList.markedItem&&(t<0||t===this.itemsList.filteredItems.length)},e.prototype._handleBackspace=function(){!this.filterValue&&this.clearable&&this.hasValue&&(this.multiple?(this.itemsList.unselectLast(),this._updateNgModel()):this.clearModel())},Object.defineProperty(e.prototype,"_isTypeahead",{get:function(){return this.typeahead&&0<this.typeahead.observers.length},enumerable:!0,configurable:!0}),e.prototype._mergeGlobalConfig=function(e){this.notFoundText=this.notFoundText||e.notFoundText,this.typeToSearchText=this.typeToSearchText||e.typeToSearchText,this.addTagText=this.addTagText||e.addTagText,this.loadingText=this.loadingText||e.loadingText,this.clearAllText=this.clearAllText||e.clearAllText},e}();V.decorators=[{type:s.Component,args:[{selector:"ng-select",template:'<div (mousedown)="searchable ? open() : toggle()" [class.ng-has-value]="hasValue" class="ng-control">\n <div class="ng-value-container">\n <div class="ng-placeholder">{{placeholder}}</div>\n <ng-container *ngIf="!multiLabelTemplate && selectedItems.length > 0">\n <div [class.disabled]="item.disabled" class="ng-value" *ngFor="let item of selectedItems">\n <ng-template #defaultLabelTemplate>\n <span class="ng-value-icon left" (click)="unselect(item); $event.stopPropagation()" aria-hidden="true">×</span>\n <span class="ng-value-label">{{item.label}}</span>\n </ng-template>\n <ng-template\n [ngTemplateOutlet]="labelTemplate || defaultLabelTemplate"\n [ngTemplateOutletContext]="{ item: item.value, clear: clearItem, label: item.label }">\n </ng-template>\n </div>\n </ng-container>\n <ng-template *ngIf="multiLabelTemplate && selectedValues.length > 0"\n [ngTemplateOutlet]="multiLabelTemplate"\n [ngTemplateOutletContext]="{ items: selectedValues, clear: clearItem }">\n </ng-template>\n <div *ngIf="showFilter()" class="ng-input">\n <input #filterInput\n type="text"\n autocomplete="off"\n [readOnly]="!searchable"\n [value]="filterValue"\n (input)="filter(filterInput.value)"\n (focus)="onInputFocus()"\n (blur)="onInputBlur()"\n (change)="$event.stopPropagation()"\n role="combobox"\n [attr.aria-expanded]="isOpen"\n [attr.aria-owns]="isOpen ? dropdownId : null"\n [attr.aria-activedescendant]="isOpen ? itemsList?.markedItem?.htmlId : null">\n </div>\n </div>\n <div class="ng-spinner-loader" *ngIf="isLoading"></div>\n <span *ngIf="showClear()" (click)="handleClearClick($event)" class="ng-clear-zone" title="{{clearAllText}}">\n <span class="ng-clear" aria-hidden="true">×</span>\n </span>\n <span (mousedown)="handleArrowClick($event)" class="ng-arrow-zone">\n <span class="ng-arrow"></span>\n </span>\n</div>\n<div class="ng-overlay-container" *ngIf="isOpen">\n <div class="ng-overlay" (click)="close()" ></div>\n</div>\n<ng-dropdown-panel *ngIf="isOpen"\n class="ng-dropdown-panel"\n [virtualScroll]="virtualScroll"\n [bufferAmount]="bufferAmount"\n [appendTo]="appendTo"\n [position]="dropdownPosition"\n [headerTemplate]="headerTemplate"\n [footerTemplate]="footerTemplate"\n [items]="itemsList.filteredItems"\n (update)="viewPortItems = $event"\n (scrollToEnd)="scrollToEnd.emit($event)"\n [ngClass]="{\'multiple\': multiple}"\n [id]="dropdownId">\n <ng-container>\n <div class="ng-option" [attr.role]="item.hasChildren ? \'group\' : \'option\'" (click)="toggleItem(item)" (mousedown)="$event.preventDefault()" (mouseover)="onItemHover(item)"\n *ngFor="let item of viewPortItems"\n [class.disabled]="item.disabled"\n [class.selected]="item.selected"\n [class.ng-optgroup]="item.hasChildren"\n [class.ng-option]="!item.hasChildren"\n [class.ng-option-child]="!!item.parent"\n [class.marked]="item === itemsList.markedItem"\n id="{{item?.htmlId || null}}">\n <ng-template #defaultOptionTemplate>\n <span class="ng-option-label">{{item.label}}</span>\n </ng-template>\n <ng-template\n [ngTemplateOutlet]="item.hasChildren ? (optgroupTemplate || defaultOptionTemplate) : (optionTemplate || defaultOptionTemplate)"\n [ngTemplateOutletContext]="{ item: item.value, index: item.index, searchTerm: filterValue }">\n </ng-template>\n </div>\n <div class="ng-option" [class.marked]="!itemsList.markedItem" (mouseover)="itemsList.unmarkItem()" role="option" (click)="selectTag()" *ngIf="showAddTag()">\n <span><span class="ng-tag-label">{{addTagText}}</span>"{{filterValue}}"</span>\n </div>\n </ng-container>\n <ng-container *ngIf="showNoItemsFound()">\n <ng-template #defaultNotFoundTemplate>\n <div class="ng-option disabled">{{notFoundText}}</div>\n </ng-template>\n <ng-template\n [ngTemplateOutlet]="notFoundTemplate || defaultNotFoundTemplate"\n [ngTemplateOutletContext]="{ searchTerm: filterValue }">\n </ng-template>\n </ng-container>\n <ng-container *ngIf="showTypeToSearch()">\n <ng-template #defaultTypeToSearchTemplate>\n <div class="ng-option disabled">{{typeToSearchText}}</div>\n </ng-template>\n <ng-template\n [ngTemplateOutlet]="typeToSearchTemplate || defaultTypeToSearchTemplate">\n </ng-template>\n </ng-container>\n <ng-container *ngIf="isLoading && itemsList.filteredItems.length === 0">\n <ng-template #defaultLoadingTextTemplate>\n <div class="ng-option disabled">{{loadingText}}</div>\n </ng-template>\n <ng-template\n [ngTemplateOutlet]="loadingTextTemplate || defaultLoadingTextTemplate"\n [ngTemplateOutletContext]="{ searchTerm: filterValue }">\n </ng-template>\n </ng-container>\n</ng-dropdown-panel>\n',styles:[".ng-select{position:relative;display:block;-webkit-box-sizing:border-box;box-sizing:border-box}.ng-select div,.ng-select input,.ng-select span{-webkit-box-sizing:border-box;box-sizing:border-box}.ng-select [hidden]{display:none}.ng-select.searchable .ng-control .ng-value-container .ng-input{opacity:1}.ng-select.opened .ng-control{z-index:1001}.ng-select.disabled .ng-control .ng-value-container .ng-placeholder,.ng-select.disabled .ng-control .ng-value-container .ng-value{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.ng-select.disabled .ng-arrow-zone{cursor:default}.ng-select.filtered .ng-placeholder{display:none}.ng-select .ng-control{color:#333;cursor:default;display:-webkit-box;display:-ms-flexbox;display:flex;outline:0;overflow:hidden;position:relative;width:100%}.ng-select .ng-control .ng-value-container{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-ms-flex:1;flex:1}.ng-select .ng-control .ng-value-container .ng-input{opacity:0}.ng-select .ng-control .ng-value-container .ng-input>input{-webkit-box-sizing:content-box;box-sizing:content-box;background:none;border:0;-webkit-box-shadow:none;box-shadow:none;outline:0;cursor:default;width:100%}.ng-select .ng-control .ng-value-container .ng-input>input::-ms-clear{display:none}.ng-select.ng-single.filtered .ng-control .ng-value-container .ng-value{visibility:hidden}.ng-select.ng-single .ng-control .ng-value-container,.ng-select.ng-single .ng-control .ng-value-container .ng-value{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-select.ng-single .ng-control .ng-value-container .ng-value .ng-value-icon{display:none}.ng-select.ng-single .ng-control .ng-value-container .ng-input{position:absolute;left:0;width:100%}.ng-select.ng-multiple.disabled>.ng-control .ng-value-container .ng-value .ng-value-icon{display:none}.ng-select.ng-multiple .ng-control .ng-value-container{-ms-flex-wrap:wrap;flex-wrap:wrap}.ng-select.ng-multiple .ng-control .ng-value-container .ng-value{white-space:nowrap}.ng-select.ng-multiple .ng-control .ng-value-container .ng-value.disabled .ng-value-icon{display:none}.ng-select.ng-multiple .ng-control .ng-value-container .ng-value .ng-value-icon{cursor:pointer}.ng-select.ng-multiple .ng-control .ng-value-container .ng-input{-webkit-box-flex:1;-ms-flex:1;flex:1;z-index:2}.ng-select.ng-multiple .ng-control .ng-value-container .ng-placeholder{position:absolute;z-index:1}.ng-select .ng-clear-zone{cursor:pointer;position:relative;width:17px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ng-select .ng-clear-zone .ng-clear{display:inline-block;font-size:18px;line-height:1}.ng-select .ng-spinner-loader{border-radius:50%;width:17px;height:17px;margin-right:5px;font-size:10px;position:relative;text-indent:-9999em;border-top:2px solid rgba(66,66,66,.2);border-right:2px solid rgba(66,66,66,.2);border-bottom:2px solid rgba(66,66,66,.2);border-left:2px solid #424242;-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-animation:.8s linear infinite load8;animation:.8s linear infinite load8}.ng-select .ng-spinner-loader:after{border-radius:50%;width:17px;height:17px}@-webkit-keyframes load8{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes load8{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.ng-select .ng-arrow-zone{cursor:pointer;position:relative;text-align:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ng-select .ng-arrow-zone .ng-arrow{display:inline-block;height:0;width:0;position:relative}.ng-select .ng-overlay-container{pointer-events:none;top:0;left:0;height:100%;width:100%;position:fixed;z-index:1000}.ng-select .ng-overlay-container .ng-overlay{top:0;bottom:0;left:0;right:0;opacity:0;position:absolute;pointer-events:auto;z-index:1000}"],providers:[{provide:t.NG_VALUE_ACCESSOR,useExisting:s.forwardRef(function(){return V}),multi:!0}],encapsulation:s.ViewEncapsulation.None,changeDetection:s.ChangeDetectionStrategy.OnPush,host:{role:"listbox","class":"ng-select","[class.ng-single]":"!multiple"}}]}],V.ctorParameters=function(){return[{type:undefined,decorators:[{type:s.Inject,args:[P]}]},{type:s.ChangeDetectorRef},{type:D},{type:s.ElementRef}]},V.propDecorators={items:[{type:s.Input}],bindLabel:[{type:s.Input}],bindValue:[{type:s.Input}],clearable:[{type:s.Input}],markFirst:[{type:s.Input}],placeholder:[{type:s.Input}],notFoundText:[{type:s.Input}],typeToSearchText:[{type:s.Input}],addTagText:[{type:s.Input}],loadingText:[{type:s.Input}],clearAllText:[{type:s.Input}],dropdownPosition:[{type:s.Input}],appendTo:[{type:s.Input}],loading:[{type:s.Input}],closeOnSelect:[{type:s.Input}],hideSelected:[{type:s.Input}],selectOnTab:[{type:s.Input}],maxSelectedItems:[{type:s.Input}],groupBy:[{type:s.Input}],bufferAmount:[{type:s.Input}],virtualScroll:[{type:s.Input}],selectableGroup:[{type:s.Input}],searchFn:[{type:s.Input}],typeahead:[{type:s.Input},{type:s.HostBinding,args:["class.typeahead"]}],multiple:[{type:s.Input},{type:s.HostBinding,args:["class.ng-multiple"]}],addTag:[{type:s.Input},{type:s.HostBinding,args:["class.taggable"]}],searchable:[{type:s.Input},{type:s.HostBinding,args:["class.searchable"]}],compareWith:[{type:s.Input}],blurEvent:[{type:s.Output,args:["blur"]}],focusEvent:[{type:s.Output,args:["focus"]}],changeEvent:[{type:s.Output,args:["change"]}],openEvent:[{type:s.Output,args:["open"]}],closeEvent:[{type:s.Output,args:["close"]}],searchEvent:[{type:s.Output,args:["search"]}],clearEvent:[{type:s.Output,args:["clear"]}],addEvent:[{type:s.Output,args:["add"]}],removeEvent:[{type:s.Output,args:["remove"]}],scrollToEnd:[{type:s.Output,args:["scrollToEnd"]}],optionTemplate:[{type:s.ContentChild,args:[i,{read:s.TemplateRef}]}],optgroupTemplate:[{type:s.ContentChild,args:[a,{read:s.TemplateRef}]}],labelTemplate:[{type:s.ContentChild,args:[c,{read:s.TemplateRef}]}],multiLabelTemplate:[{type:s.ContentChild,args:[p,{read:s.TemplateRef}]}],headerTemplate:[{type:s.ContentChild,args:[d,{read:s.TemplateRef}]}],footerTemplate:[{type:s.ContentChild,args:[u,{read:s.TemplateRef}]}],notFoundTemplate:[{type:s.ContentChild,args:[h,{read:s.TemplateRef}]}],typeToSearchTemplate:[{type:s.ContentChild,args:[m,{read:s.TemplateRef}]}],loadingTextTemplate:[{type:s.ContentChild,args:[v,{read:s.TemplateRef}]}],dropdownPanel:[{type:s.ViewChild,args:[s.forwardRef(function(){return R})]}],ngOptions:[{type:s.ContentChildren,args:[O,{descendants:!0}]}],filterInput:[{type:s.ViewChild,args:["filterInput"]}],isOpen:[{type:s.HostBinding,args:["class.opened"]}],isFocused:[{type:s.HostBinding,args:["class.focused"]}],isDisabled:[{type:s.HostBinding,args:["class.disabled"]}],filtered:[{type:s.HostBinding,args:["class.filtered"]}],handleKeyDown:[{type:s.HostListener,args:["keydown",["$event"]]}]};var z=function(){function e(e,t){this.elementRef=e,this.renderer=t,this.element=this.elementRef.nativeElement}return e.prototype.ngOnChanges=function(e){T(e.term.currentValue)&&T(this.label)&&this._highlightLabelWithSearchTerm()},e.prototype.ngAfterViewInit=function(){this.label=this.element.innerHTML},e.prototype._highlightLabelWithSearchTerm=function(){var e=this.label;if(this.term){var t=I(e).toLowerCase().indexOf(I(this.term).toLowerCase());-1<t?this._setInnerHtml(e.substring(0,t)+'<span class="highlighted">'+e.substr(t,this.term.length)+"</span>"+e.substring(t+this.term.length,e.length)):this._setInnerHtml(e)}else this._setInnerHtml(e)},e.prototype._setInnerHtml=function(e){this.renderer.setProperty(this.elementRef.nativeElement,"innerHTML",e)},e}();z.decorators=[{type:s.Directive,args:[{selector:"[ngOptionHighlight]"}]}],z.ctorParameters=function(){return[{type:s.ElementRef},{type:s.Renderer2}]};z.propDecorators={term:[{type:s.Input,args:["ngOptionHighlight"]}]};var N=function(){};N.decorators=[{type:s.NgModule,args:[{declarations:[R,O,V,z,a,i,c,p,d,u,h,m,v],imports:[n.CommonModule],exports:[V,O,z,a,i,c,p,d,u,h,m,v],providers:[D,L,k,{provide:P,useValue:{notFoundText:"No items found",typeToSearchText:"Type to search",addTagText:"Add item",loadingText:"Loading...",clearAllText:"Clear all",disableVirtualScroll:!1}}]}]}],N.ctorParameters=function(){return[]},e.NgSelectComponent=V,e.NG_SELECT_DEFAULT_CONFIG=P,e.NgSelectModule=N,e.ɵn=D,e.ɵj=R,e.ɵo=z,e.ɵm=O,e.ɵf=u,e.ɵe=d,e.ɵc=c,e.ɵi=v,e.ɵd=p,e.ɵg=h,e.ɵb=a,e.ɵa=i,e.ɵh=m,e.ɵk=k,e.ɵl=L,Object.defineProperty(e,"__esModule",{value:!0})});
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("rxjs/Subject"),require("rxjs/observable/merge"),require("rxjs/operators"),require("@angular/forms"),require("@angular/common")):"function"==typeof define&&define.amd?define("@ng-select/ng-select",["exports","@angular/core","rxjs/Subject","rxjs/observable/merge","rxjs/operators","@angular/forms","@angular/common"],t):t((e["ng-select"]=e["ng-select"]||{},e["ng-select"]["ng-select"]={}),e.ng.core,e.Rx,e.Rx.Observable,e.Rx.Observable.prototype,e.ng.forms,e.ng.common)}(this,function(e,o,r,s,l,t,n){"use strict";function g(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function f(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,s,r=n.call(e),o=[];try{for(;(void 0===t||0<t--)&&!(i=r.next()).done;)o.push(i.value)}catch(l){s={error:l}}finally{try{i&&!i.done&&(n=r["return"])&&n.call(r)}finally{if(s)throw s.error}}return o}function y(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(f(arguments[t]));return e}var i=function(e){this.template=e};i.decorators=[{type:o.Directive,args:[{selector:"[ng-option-tmp]"}]}],i.ctorParameters=function(){return[{type:o.TemplateRef}]};var a=function(e){this.template=e};a.decorators=[{type:o.Directive,args:[{selector:"[ng-optgroup-tmp]"}]}],a.ctorParameters=function(){return[{type:o.TemplateRef}]};var c=function(e){this.template=e};c.decorators=[{type:o.Directive,args:[{selector:"[ng-label-tmp]"}]}],c.ctorParameters=function(){return[{type:o.TemplateRef}]};var p=function(e){this.template=e};p.decorators=[{type:o.Directive,args:[{selector:"[ng-multi-label-tmp]"}]}],p.ctorParameters=function(){return[{type:o.TemplateRef}]};var d=function(e){this.template=e};d.decorators=[{type:o.Directive,args:[{selector:"[ng-header-tmp]"}]}],d.ctorParameters=function(){return[{type:o.TemplateRef}]};var u=function(e){this.template=e};u.decorators=[{type:o.Directive,args:[{selector:"[ng-footer-tmp]"}]}],u.ctorParameters=function(){return[{type:o.TemplateRef}]};var h=function(e){this.template=e};h.decorators=[{type:o.Directive,args:[{selector:"[ng-notfound-tmp]"}]}],h.ctorParameters=function(){return[{type:o.TemplateRef}]};var m=function(e){this.template=e};m.decorators=[{type:o.Directive,args:[{selector:"[ng-typetosearch-tmp]"}]}],m.ctorParameters=function(){return[{type:o.TemplateRef}]};var v=function(e){this.template=e};v.decorators=[{type:o.Directive,args:[{selector:"[ng-loadingtext-tmp]"}]}],v.ctorParameters=function(){return[{type:o.TemplateRef}]};var b={Tab:9,Enter:13,Esc:27,Space:32,ArrowUp:38,ArrowDown:40,Backspace:8};b[b.Tab]="Tab",b[b.Enter]="Enter",b[b.Esc]="Esc",b[b.Space]="Space",b[b.ArrowUp]="ArrowUp",b[b.ArrowDown]="ArrowDown",b[b.Backspace]="Backspace";var _={"Ⓐ":"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","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ω":"ω","ς":"σ"};function I(e){return e.replace(/[^\u0000-\u007E]/g,function(e){return _[e]||e})}function T(e){return null!==e&&e!==undefined}function w(e){return T(e)&&"object"==typeof e}function x(e){return e instanceof Function}function E(){return"axxxxxxxxxxx".replace(/[x]/g,function(e){return(16*Math.random()|0).toString(16)})}var O=function(){function e(e){this._ngSelect=e,this._items=[],this._filteredItems=[],this._markedIndex=-1,this._selected=[]}return Object.defineProperty(e.prototype,"items",{get:function(){return this._items},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"filteredItems",{get:function(){return this._filteredItems},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._selected},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"markedItem",{get:function(){return this._filteredItems[this._markedIndex]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"markedIndex",{get:function(){return this._markedIndex},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"noItemsToSelect",{get:function(){return this._ngSelect.hideSelected&&this._items.length===this._selected.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maxItemsSelected",{get:function(){return this._ngSelect.multiple&&this._ngSelect.maxSelectedItems<=this._selected.length},enumerable:!0,configurable:!0}),e.prototype.setItems=function(e){var n=this;this._items=e.map(function(e,t){return n.mapItem(e,t)}),this._ngSelect.groupBy?(this._groups=this._groupBy(this._items,this._ngSelect.groupBy),this._items=this._flatten(this._groups)):(this._groups=new Map,this._groups.set(undefined,this._items)),this._filteredItems=y(this._items)},e.prototype.select=function(t){t.selected||this.maxItemsSelected||(this._ngSelect.multiple||this.clearSelected(),this._selected.push(t),t.selected=!0,this._ngSelect.hideSelected&&(this._filteredItems=this._filteredItems.filter(function(e){return e!==t})))},e.prototype.findItem=function(t){var n=this;if(this._ngSelect.bindValue)return this._items.find(function(e){return!e.hasChildren&&n.resolveNested(e.value,n._ngSelect.bindValue)===t});var e=this._items.find(function(e){return e.value===t}),i=this._ngSelect.compareWith?function(e){return n._ngSelect.compareWith(e.value,t)}:function(e){return!e.hasChildren&&e.label&&e.label===n.resolveNested(t,n._ngSelect.bindLabel)};return e||this._items.find(function(e){return i(e)})},e.prototype.unselect=function(t){this._selected=this._selected.filter(function(e){return e!==t}),t.selected=!1,this._ngSelect.hideSelected&&(this._filteredItems.splice(t.index,0,t),this._filteredItems=y(this._filteredItems.sort(function(e,t){return e.index-t.index})))},e.prototype.unselectLast=function(){0!==this._selected.length&&this.unselect(this._lastSelectedItem)},e.prototype.addItem=function(e){var t=this.mapItem(e,this._items.length);return this._items.push(t),this._filteredItems.push(t),t},e.prototype.clearSelected=function(){this._selected.forEach(function(e){e.selected=!1,e.marked=!1}),this._selected=[],this._ngSelect.hideSelected&&this.resetItems()},e.prototype.filter=function(u){if(u){this._filteredItems=[],u=this._ngSelect.searchFn?u:I(u).toLocaleLowerCase();var e,t,h=this._ngSelect.searchFn||this._defaultSearchFn,n=function(e){var t,n,i,s=[];try{for(var r=g(m._groups.get(e)),o=r.next();!o.done;o=r.next()){var l=o.value;if(!(m._ngSelect.hideSelected&&-1<m._selected.indexOf(l))){var a=m._ngSelect.searchFn?l.value:l;h(u,a)&&s.push(l)}}}catch(d){t={error:d}}finally{try{o&&!o.done&&(n=r["return"])&&n.call(r)}finally{if(t)throw t.error}}if(0<s.length){var c=f(s.slice(-1),1)[0];if(c.parent){var p=m._items.find(function(e){return e===c.parent});m._filteredItems.push(p)}(i=m._filteredItems).push.apply(i,y(s))}},m=this;try{for(var i=g(Array.from(this._groups.keys())),s=i.next();!s.done;s=i.next()){n(s.value)}}catch(r){e={error:r}}finally{try{s&&!s.done&&(t=i["return"])&&t.call(i)}finally{if(e)throw e.error}}}else this.resetItems()},e.prototype.resetItems=function(){var t=this;this._filteredItems.length!==this._items.length&&(this._filteredItems=this._ngSelect.hideSelected?this._items.filter(function(e){return-1===t._selected.indexOf(e)}):this._items)},e.prototype.unmarkItem=function(){this._markedIndex=-1},e.prototype.markNextItem=function(){this._stepToItem(1)},e.prototype.markPreviousItem=function(){this._stepToItem(-1)},e.prototype.markItem=function(e){this._markedIndex=this._filteredItems.indexOf(e)},e.prototype.markSelectedOrDefault=function(e){if(0!==this._filteredItems.length){var t=this._ngSelect.hideSelected?-1:this._filteredItems.indexOf(this._lastSelectedItem);this._lastSelectedItem&&-1<t?this._markedIndex=t:this._markedIndex=e?this.filteredItems.findIndex(function(e){return!e.disabled}):-1}},e.prototype.resolveNested=function(e,t){if(!w(e))return e;if(-1===t.indexOf("."))return e[t];for(var n=t.split("."),i=e,s=0,r=n.length;s<r;++s){if(null==i)return null;i=i[n[s]]}return i},e.prototype.mapItem=function(e,t){var n=this.resolveNested(e,this._ngSelect.bindLabel);return{index:t,label:T(n)?n.toString():"",value:e,disabled:e.disabled,htmlId:E()}},e.prototype.mapSelectedItems=function(){var s=this;this._selected.forEach(function(e,t){var n=s._ngSelect.bindValue?e.value[s._ngSelect.bindValue]:e.value,i=s.findItem(n);i&&e!==i&&(i.selected=!0,s._selected[t]=i)}),this._ngSelect.hideSelected&&(this._filteredItems=this.filteredItems.filter(function(e){return-1===s._selected.indexOf(e)}))},e.prototype._defaultSearchFn=function(e,t){return-1<I(t.label).toLocaleLowerCase().indexOf(e)},e.prototype._getNextItemIndex=function(e){return 0<e?this._markedIndex===this._filteredItems.length-1?0:this._markedIndex+1:this._markedIndex<=0?this._filteredItems.length-1:this._markedIndex-1},e.prototype._stepToItem=function(e){0===this._filteredItems.length||this._filteredItems.every(function(e){return e.disabled})||(this._markedIndex=this._getNextItemIndex(e),this.markedItem.disabled&&this._stepToItem(e))},Object.defineProperty(e.prototype,"_lastSelectedItem",{get:function(){return this._selected[this._selected.length-1]},enumerable:!0,configurable:!0}),e.prototype._groupBy=function(e,s){var r=this,o=s instanceof Function;return e.reduce(function(e,t){var n=o?s.apply(r,[t.value]):t.value[s],i=e.get(n);return i?i.push(t):e.set(n,[t]),e},new Map)},e.prototype._flatten=function(s){var r=this,o=0;return Array.from(s.keys()).reduce(function(e,t){var n={label:t,hasChildren:!0,index:o,disabled:!r._ngSelect.selectableGroup,htmlId:E(),value:{}};n.value[r._ngSelect.groupBy]=t,e.push(n),o++;var i=s.get(t).map(function(e){return e.parent=n,e.hasChildren=!1,o++,e});return e.push.apply(e,y(i)),e},[])},e}(),S=function(){function e(e){this.elementRef=e,this.stateChange$=new r.Subject,this._disabled=!1}return Object.defineProperty(e.prototype,"disabled",{get:function(){return this._disabled},set:function(e){this._disabled=this._isDisabled(e)},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){e.disabled&&this.stateChange$.next({value:this.value,disabled:this._disabled})},e.prototype._isDisabled=function(e){return null!=e&&""+e!="false"},e}();S.decorators=[{type:o.Component,args:[{selector:"ng-option",changeDetection:o.ChangeDetectionStrategy.OnPush,template:"<ng-content></ng-content>"}]}],S.ctorParameters=function(){return[{type:o.ElementRef}]},S.propDecorators={value:[{type:o.Input}],disabled:[{type:o.Input}]};var L=function(){function e(){}return e.prototype.requestAnimationFrame=function(e){return window.requestAnimationFrame(e)},e}();L.decorators=[{type:o.Injectable}],L.ctorParameters=function(){return[]};var k=function(){function e(){}return e.prototype.calculateItems=function(e,t,n){var i=e.childHeight*e.itemsLength;t.scrollTop>i&&(t.scrollTop=i);var s=Math.max(0,t.scrollTop)/i*e.itemsLength,r=Math.min(e.itemsLength,Math.ceil(s)+(e.itemsPerCol+1)),o=r,l=Math.max(0,o-e.itemsPerCol-1),a=Math.min(l,Math.floor(s)),c=e.childHeight*Math.ceil(a)-e.childHeight*Math.min(a,n);return c=isNaN(c)?0:c,a=isNaN(a)?-1:a,r=isNaN(r)?-1:r,a-=n,r+=n,{topPadding:c,scrollHeight:i,start:a=Math.max(0,a),end:r=Math.min(e.itemsLength,r)}},e.prototype.calculateDimensions=function(e,t,n,i){var s=n.getBoundingClientRect(),r=i.children[t]?i.children[t].getBoundingClientRect():{width:s.width,height:s.height,top:0},o=Math.max(1,Math.floor(s.height/r.height));return{itemsLength:e,viewWidth:s.width,viewHeight:s.height,childWidth:r.width,childHeight:r.height,itemsPerCol:o}},e}();k.decorators=[{type:o.Injectable}],k.ctorParameters=function(){return[]};var C="ng-select-top",A="ng-select-bottom",R=function(){function e(e,t,n,i,s,r){this._renderer=t,this._elementRef=n,this._zone=i,this._virtualScrollService=s,this._window=r,this.items=[],this.position="auto",this.bufferAmount=4,this.virtualScroll=!1,this.update=new o.EventEmitter,this.scrollToEnd=new o.EventEmitter,this._startupLoop=!0,this._isScrolledToMarked=!1,this._scrollToEndFired=!1,this._disposeScrollListener=function(){},this._disposeDocumentResizeListener=function(){},this._selectElementRef=e.elementRef,this._itemsList=e.itemsList}return e.prototype.ngOnInit=function(){this._handleScroll()},e.prototype.ngOnChanges=function(e){e.items&&this._handleItemsChange(e.items)},e.prototype.ngOnDestroy=function(){this._disposeDocumentResizeListener(),this._disposeScrollListener(),this.appendTo&&this._renderer.removeChild(this._elementRef.nativeElement.parentNode,this._elementRef.nativeElement)},e.prototype.ngAfterContentInit=function(){var e=this;this._whenContentReady().then(function(){e._handleDropdownPosition()})},e.prototype.refresh=function(){var t=this;return new Promise(function(e){t._zone.runOutsideAngular(function(){t._window.requestAnimationFrame(function(){t._updateItems().then(e)})})})},e.prototype.scrollInto=function(e){if(e){var t=this.items.indexOf(e);if(!(t<0||t>=this.items.length)){var n=this._calculateDimensions(this.virtualScroll?0:t),i=this.scrollElementRef.nativeElement,s=Math.floor(n.viewHeight/n.childHeight)-1;if(this.virtualScroll)i.scrollTop=t*n.childHeight-n.childHeight*Math.min(t,s);else{var r=this.contentElementRef.nativeElement,o=Array.from(r.children).slice(0,t).reduce(function(e,t){return e+t.clientHeight},0);i.scrollTop=o-n.childHeight*Math.min(t,s)}}}},e.prototype.scrollIntoTag=function(){var e=this.scrollElementRef.nativeElement,t=this._calculateDimensions();e.scrollTop=t.childHeight*(t.itemsLength+1)},e.prototype._handleScroll=function(){var e=this;this._disposeScrollListener=this._renderer.listen(this.scrollElementRef.nativeElement,"scroll",function(){e.refresh(),e._fireScrollToEnd()})},e.prototype._handleItemsChange=function(e){var t=this;this._scrollToEndFired=!1,this._previousStart=undefined,this._previousEnd=undefined,(e!==undefined&&e.previousValue===undefined||e.previousValue!==undefined&&0===e.previousValue.length)&&(this._startupLoop=!0),this.items=e.currentValue||[],this.refresh().then(function(){t.appendTo&&"top"===t._currentPosition&&t._updateAppendedDropdownPosition()})},e.prototype._updateItems=function(){var s=this;if(o.NgZone.assertNotInAngularZone(),!this.virtualScroll)return this._zone.run(function(){s.update.emit(s.items.slice()),s._scrollToMarked()}),Promise.resolve();var r=function(e){var t=s._calculateDimensions(),n=s._virtualScrollService.calculateItems(t,s.scrollElementRef.nativeElement,s.bufferAmount||0);s.paddingElementRef.nativeElement.style.height=n.scrollHeight+"px";var i="translateY("+n.topPadding+"px)";s.contentElementRef.nativeElement.style.transform=i,n.start!==s._previousStart||n.end!==s._previousEnd?(s._zone.run(function(){s.update.emit(s.items.slice(n.start,n.end))}),s._previousStart=n.start,s._previousEnd=n.end,!0===s._startupLoop&&r(e)):!0===s._startupLoop&&(s._startupLoop=!1,s._scrollToMarked(),e())};return new Promise(function(e){return r(e)})},e.prototype._fireScrollToEnd=function(){if(!this._scrollToEndFired){var e=this.scrollElementRef.nativeElement,t=this._elementRef.nativeElement,n=this.virtualScroll?this.paddingElementRef.nativeElement:this.contentElementRef.nativeElement;e.scrollTop+t.clientHeight>=n.clientHeight&&(this.scrollToEnd.emit(),this._scrollToEndFired=!0)}},e.prototype._calculateDimensions=function(e){return void 0===e&&(e=0),this._virtualScrollService.calculateDimensions(this.items.length,e,this.scrollElementRef.nativeElement,this.contentElementRef.nativeElement)},e.prototype._handleDocumentResize=function(){var e=this;this.appendTo&&(this._disposeDocumentResizeListener=this._renderer.listen("window","resize",function(){e._updateAppendedDropdownPosition()}))},e.prototype._scrollToMarked=function(){this._isScrolledToMarked||(this._isScrolledToMarked=!0,this.scrollInto(this._itemsList.markedItem))},e.prototype._handleDropdownPosition=function(){this.appendTo&&(this._appendDropdown(),this._handleDocumentResize());var e=this._elementRef.nativeElement;this._currentPosition=this._calculateCurrentPosition(e);var t=this._selectElementRef.nativeElement;"top"===this._currentPosition?(this._renderer.addClass(e,C),this._renderer.removeClass(e,A),this._renderer.addClass(t,C),this._renderer.removeClass(t,A)):(this._renderer.addClass(e,A),this._renderer.removeClass(e,C),this._renderer.addClass(t,A),this._renderer.removeClass(t,C)),this.appendTo&&this._updateAppendedDropdownPosition(),e.style.opacity="1"},e.prototype._calculateCurrentPosition=function(e){if("auto"!==this.position)return this.position;var t=this._selectElementRef.nativeElement.getBoundingClientRect(),n=document.documentElement.scrollTop||document.body.scrollTop;return t.top+window.pageYOffset+t.height+e.getBoundingClientRect().height>n+document.documentElement.clientHeight?"top":"bottom"},e.prototype._appendDropdown=function(){var e=document.querySelector(this.appendTo);if(!e)throw new Error("appendTo selector "+this.appendTo+" did not found any parent element");e.appendChild(this._elementRef.nativeElement)},e.prototype._updateAppendedDropdownPosition=function(){var e=document.querySelector(this.appendTo)||document.body,t=this._selectElementRef.nativeElement.getBoundingClientRect(),n=this._elementRef.nativeElement,i=e.getBoundingClientRect(),s=t.top-i.top,r=t.left-i.left,o="bottom"===this._currentPosition?t.height:-n.clientHeight;n.style.top=s+o+"px",n.style.bottom="auto",n.style.left=r+"px",n.style.width=t.width+"px"},e.prototype._whenContentReady=function(){var t=this;if(0===this.items.length)return Promise.resolve();var n=this._elementRef.nativeElement,i=function(e){n.querySelector(".ng-option")?e():t._zone.runOutsideAngular(function(){setTimeout(function(){return i(e)},5)})};return new Promise(function(e){return i(e)})},e}();R.decorators=[{type:o.Component,args:[{changeDetection:o.ChangeDetectionStrategy.OnPush,encapsulation:o.ViewEncapsulation.None,selector:"ng-dropdown-panel",template:'\n <div *ngIf="headerTemplate" class="ng-dropdown-header" ngProjectAs="header" header>\n <ng-container [ngTemplateOutlet]="headerTemplate"></ng-container>\n </div>\n <div #scroll class="ng-dropdown-panel-items scroll-host">\n <div #padding [class.total-padding]="virtualScroll"></div>\n <div #content [class.scrollable-content]="virtualScroll && items.length > 0">\n <ng-content></ng-content>\n </div>\n </div>\n <div *ngIf="footerTemplate" class="ng-dropdown-footer" ngProjectAs="footer" footer>\n <ng-container [ngTemplateOutlet]="footerTemplate"></ng-container>\n </div>\n ',styles:[".ng-dropdown-panel{-webkit-box-sizing:border-box;box-sizing:border-box;position:absolute;opacity:0;width:100%;z-index:1050;-webkit-overflow-scrolling:touch}.ng-dropdown-panel .ng-dropdown-panel-items{display:block;height:auto;-webkit-box-sizing:border-box;box-sizing:border-box;max-height:240px;overflow-y:auto}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option{-webkit-box-sizing:border-box;box-sizing:border-box;cursor:pointer;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .highlighted{font-weight:700;text-decoration:underline}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.disabled{cursor:default}.ng-dropdown-panel .scroll-host{overflow:hidden;overflow-y:auto;position:relative;display:block;-webkit-overflow-scrolling:touch}.ng-dropdown-panel .scrollable-content{top:0;left:0;width:100%;height:100%;position:absolute}.ng-dropdown-panel .total-padding{width:1px;opacity:0}"]}]}],R.ctorParameters=function(){return[{type:V,decorators:[{type:o.Inject,args:[o.forwardRef(function(){return V})]}]},{type:o.Renderer2},{type:o.ElementRef},{type:o.NgZone},{type:k},{type:L}]},R.propDecorators={items:[{type:o.Input}],position:[{type:o.Input}],appendTo:[{type:o.Input}],bufferAmount:[{type:o.Input}],virtualScroll:[{type:o.Input}],headerTemplate:[{type:o.Input}],footerTemplate:[{type:o.Input}],update:[{type:o.Output}],scrollToEnd:[{type:o.Output}],contentElementRef:[{type:o.ViewChild,args:["content",{read:o.ElementRef}]}],scrollElementRef:[{type:o.ViewChild,args:["scroll",{read:o.ElementRef}]}],paddingElementRef:[{type:o.ViewChild,args:["padding",{read:o.ElementRef}]}]};var D=function(){function e(){}return e.prototype.warn=function(e){console.warn(e)},e}();D.decorators=[{type:o.Injectable}],D.ctorParameters=function(){return[]};var P=new o.InjectionToken("ng-select-default-options"),V=function(){function e(e,t,n,i){var s=this;this._cd=t,this._console=n,this.elementRef=i,this.items=[],this.clearable=!0,this.markFirst=!0,this.dropdownPosition="auto",this.loading=!1,this.closeOnSelect=!0,this.hideSelected=!1,this.selectOnTab=!1,this.bufferAmount=4,this.virtualScroll=!1,this.selectableGroup=!1,this.searchFn=null,this.multiple=!1,this.addTag=!1,this.searchable=!0,this.blurEvent=new o.EventEmitter,this.focusEvent=new o.EventEmitter,this.changeEvent=new o.EventEmitter,this.openEvent=new o.EventEmitter,this.closeEvent=new o.EventEmitter,this.searchEvent=new o.EventEmitter,this.clearEvent=new o.EventEmitter,this.addEvent=new o.EventEmitter,this.removeEvent=new o.EventEmitter,this.scrollToEnd=new o.EventEmitter,this.isOpen=!1,this.isFocused=!1,this.isDisabled=!1,this.itemsList=new O(this),this.viewPortItems=[],this.filterValue=null,this.dropdownId=E(),this.selectedItemId=0,this._defaultLabel="label",this._defaultValue="value",this._typeaheadLoading=!1,this._destroy$=new r.Subject,this._onChange=function(e){},this._onTouched=function(){},this.clearItem=function(t){var e=s.selectedItems.find(function(e){return e.value===t});s.unselect(e)},this._mergeGlobalConfig(e)}return Object.defineProperty(e.prototype,"compareWith",{get:function(){return this._compareWith},set:function(e){if(!x(e))throw Error("`compareWith` must be a function.");this._compareWith=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"filtered",{get:function(){return!!this.filterValue},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selectedItems",{get:function(){return this.itemsList.value},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selectedValues",{get:function(){return this.selectedItems.map(function(e){return e.value})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isLoading",{get:function(){return this.loading||this._typeaheadLoading},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasValue",{get:function(){return 0<this.selectedItems.length},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){e.multiple&&this.itemsList.clearSelected(),e.items&&this._setItems(e.items.currentValue||[])},e.prototype.ngAfterViewInit=function(){0<this.ngOptions.length&&0===this.items.length&&this._setItemsFromNgOptions()},e.prototype.ngOnDestroy=function(){this._destroy$.next(),this._destroy$.complete()},e.prototype.handleKeyDown=function(e){if(b[e.which])switch(e.which){case b.ArrowDown:this._handleArrowDown(e);break;case b.ArrowUp:this._handleArrowUp(e);break;case b.Space:this._handleSpace(e);break;case b.Enter:this._handleEnter(e);break;case b.Tab:this._handleTab(e);break;case b.Esc:this.close();break;case b.Backspace:this._handleBackspace()}},e.prototype.handleArrowClick=function(e){e.stopPropagation(),this.isOpen?this.close():this.open()},e.prototype.handleClearClick=function(e){e.stopPropagation(),this.hasValue&&this.clearModel(),this._clearSearch(),this.focus(),this._isTypeahead&&this.typeahead.next(null),this.clearEvent.emit()},e.prototype.clearModel=function(){this.clearable&&(this.itemsList.clearSelected(),this._updateNgModel())},e.prototype.writeValue=function(e){this.itemsList.clearSelected(),this._handleWriteValue(e),this._cd.markForCheck()},e.prototype.registerOnChange=function(e){this._onChange=e},e.prototype.registerOnTouched=function(e){this._onTouched=e},e.prototype.setDisabledState=function(e){this.isDisabled=e,this._cd.markForCheck()},e.prototype.toggle=function(){this.isOpen?this.close():this.open()},e.prototype.open=function(){this.isDisabled||this.isOpen||this.itemsList.maxItemsSelected||!this._isTypeahead&&this.itemsList.noItemsToSelect||(this.isOpen=!0,this.itemsList.markSelectedOrDefault(this.markFirst),this.openEvent.emit(),this.filterValue||this.focus(),this.detectChanges())},e.prototype.close=function(){this.isOpen&&(this.isOpen=!1,this._clearSearch(),this._onTouched(),this.closeEvent.emit(),this.detectChanges())},e.prototype.toggleItem=function(e){!e||e.disabled||this.isDisabled||(this.multiple&&e.selected?this.unselect(e):this.select(e))},e.prototype.select=function(e){e.selected||(this.itemsList.select(e),this._clearSearch(),this._updateNgModel(),this.addEvent.emit(e.value)),(this.closeOnSelect||this.itemsList.noItemsToSelect)&&this.close()},e.prototype.focus=function(){this.filterInput&&this.filterInput.nativeElement.focus()},e.prototype.unselect=function(e){this.itemsList.unselect(e),this._updateNgModel(),this.removeEvent.emit(e)},e.prototype.selectTag=function(){var e,t,n=this;e=x(this.addTag)?this.addTag(this.filterValue):this._primitive?this.filterValue:((t={})[this.bindLabel]=this.filterValue,t),e instanceof Promise?e.then(function(e){return n.select(n.itemsList.addItem(e))})["catch"](function(){}):e&&this.select(this.itemsList.addItem(e))},e.prototype.showClear=function(){return this.clearable&&(this.hasValue||this.filterValue)&&!this.isDisabled},e.prototype.showAddTag=function(){var t=this;return this.addTag&&this.filterValue&&!this.itemsList.filteredItems.some(function(e){return e.label.toLowerCase()===t.filterValue.toLowerCase()})&&!this.isLoading},e.prototype.showNoItemsFound=function(){var e=0===this.itemsList.filteredItems.length;return(e&&!this._isTypeahead&&!this.loading||e&&this._isTypeahead&&this.filterValue&&!this.isLoading)&&!this.showAddTag()},e.prototype.showTypeToSearch=function(){return 0===this.itemsList.filteredItems.length&&this._isTypeahead&&!this.filterValue&&!this.isLoading},e.prototype.filter=function(e){this.searchable&&(this.filterValue=e,this.open(),this._isTypeahead?(this._typeaheadLoading=!0,this.typeahead.next(this.filterValue)):(this.itemsList.filter(this.filterValue),this.itemsList.markSelectedOrDefault(this.markFirst)))},e.prototype.onInputFocus=function(){this.isFocused=!0,this.focusEvent.emit(null)},e.prototype.onInputBlur=function(){this.isFocused=!1,this.blurEvent.emit(null),this.isOpen||this.isDisabled||this._onTouched()},e.prototype.onItemHover=function(e){e.disabled||this.itemsList.markItem(e)},e.prototype.detectChanges=function(){this._cd.destroyed||this._cd.detectChanges()},e.prototype._setItems=function(e){var t=e[0];this.bindLabel=this.bindLabel||this._defaultLabel,this._primitive=!w(t),this.itemsList.setItems(e),0<e.length&&this.hasValue&&this.itemsList.mapSelectedItems(),this._isTypeahead&&(this._typeaheadLoading=!1,this.itemsList.markSelectedOrDefault(this.markFirst))},e.prototype._setItemsFromNgOptions=function(){var i=this;this.bindLabel=this.bindLabel||this._defaultLabel,this.bindValue=this.bindValue||this._defaultValue;this.ngOptions.changes.pipe(l.startWith(this.ngOptions),l.takeUntil(this._destroy$)).subscribe(function(e){var t,n;t=e,i.items=t.map(function(e){return{value:e.value,label:e.elementRef.nativeElement.innerHTML,disabled:e.disabled}}),i.itemsList.setItems(i.items),i.hasValue&&i.itemsList.mapSelectedItems(),i.detectChanges(),n=s.merge(i.ngOptions.changes,i._destroy$),s.merge.apply(void 0,y(i.ngOptions.map(function(e){return e.stateChange$}))).pipe(l.takeUntil(n)).subscribe(function(e){i.itemsList.findItem(e.value).disabled=e.disabled,i._cd.markForCheck()})})},e.prototype._isValidWriteValue=function(e){var t=this;if(!T(e)||this.multiple&&""===e||Array.isArray(e)&&0===e.length)return!1;var n=function(e){return!w(e)||!t.bindValue||(t._console.warn("Binding object("+JSON.stringify(e)+") with bindValue is not allowed."),!1)};return this.multiple?Array.isArray(e)?e.every(function(e){return n(e)}):(this._console.warn("Multiple select ngModel should be array."),!1):n(e)},e.prototype._handleWriteValue=function(e){var r=this;if(this._isValidWriteValue(e)){var t=function(e){var t,n=r.itemsList.findItem(e);if(n)r.itemsList.select(n);else{var i=w(e),s=!i&&!r.bindValue;i||s?r.itemsList.select(r.itemsList.mapItem(e,null)):r.bindValue&&((t={})[r.bindLabel]=null,t[r.bindValue]=e,n=t,r.itemsList.select(r.itemsList.mapItem(n,null)))}};this.multiple?e.forEach(function(e){t(e)}):t(e)}},e.prototype._updateNgModel=function(){var e,t,n=[];try{for(var i=g(this.selectedItems),s=i.next();!s.done;s=i.next()){var r=s.value;if(this.bindValue){var o=null;o=r.hasChildren?r.value[this.groupBy]:this.itemsList.resolveNested(r.value,this.bindValue),n.push(o)}else n.push(r.value)}}catch(l){e={error:l}}finally{try{s&&!s.done&&(t=i["return"])&&t.call(i)}finally{if(e)throw e.error}}this.multiple?(this._onChange(n),this.changeEvent.emit(this.selectedItems.map(function(e){return e.value}))):(this._onChange(T(n[0])?n[0]:null),this.changeEvent.emit(this.selectedItems[0]&&this.selectedItems[0].value)),this._cd.markForCheck()},e.prototype._clearSearch=function(){this.filterValue&&(this.filterValue=null,this.itemsList.resetItems())},e.prototype._scrollToMarked=function(){this.isOpen&&this.dropdownPanel&&this.dropdownPanel.scrollInto(this.itemsList.markedItem)},e.prototype._scrollToTag=function(){this.isOpen&&this.dropdownPanel&&this.dropdownPanel.scrollIntoTag()},e.prototype._handleTab=function(e){this.isOpen&&(this.selectOnTab?this.itemsList.markedItem?(this.toggleItem(this.itemsList.markedItem),e.preventDefault()):this.showAddTag()?(this.selectTag(),e.preventDefault()):this.close():this.close())},e.prototype._handleEnter=function(e){this.isOpen&&(this.itemsList.markedItem?this.toggleItem(this.itemsList.markedItem):this.addTag&&this.selectTag()),e.preventDefault(),e.stopPropagation()},e.prototype._handleSpace=function(e){this.isOpen||(this.open(),e.preventDefault())},e.prototype._handleArrowDown=function(e){this.nextItemIsTag(1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markNextItem(),this._scrollToMarked()),this.open(),e.preventDefault()},e.prototype._handleArrowUp=function(e){this.isOpen&&(this.nextItemIsTag(-1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markPreviousItem(),this._scrollToMarked()),e.preventDefault())},e.prototype.nextItemIsTag=function(e){var t=this.itemsList.markedIndex+e;return this.addTag&&this.filterValue&&this.itemsList.markedItem&&(t<0||t===this.itemsList.filteredItems.length)},e.prototype._handleBackspace=function(){!this.filterValue&&this.clearable&&this.hasValue&&(this.multiple?(this.itemsList.unselectLast(),this._updateNgModel()):this.clearModel())},Object.defineProperty(e.prototype,"_isTypeahead",{get:function(){return this.typeahead&&0<this.typeahead.observers.length},enumerable:!0,configurable:!0}),e.prototype._mergeGlobalConfig=function(e){this.notFoundText=this.notFoundText||e.notFoundText,this.typeToSearchText=this.typeToSearchText||e.typeToSearchText,this.addTagText=this.addTagText||e.addTagText,this.loadingText=this.loadingText||e.loadingText,this.clearAllText=this.clearAllText||e.clearAllText},e}();V.decorators=[{type:o.Component,args:[{selector:"ng-select",template:'<div (mousedown)="searchable ? open() : toggle()" [class.ng-has-value]="hasValue" class="ng-select-container">\n <div class="ng-value-container">\n <div class="ng-placeholder">{{placeholder}}</div>\n <ng-container *ngIf="!multiLabelTemplate && selectedItems.length > 0">\n <div [class.disabled]="item.disabled" class="ng-value" *ngFor="let item of selectedItems">\n <ng-template #defaultLabelTemplate>\n <span class="ng-value-icon left" (click)="unselect(item); $event.stopPropagation()" aria-hidden="true">×</span>\n <span class="ng-value-label">{{item.label}}</span>\n </ng-template>\n <ng-template\n [ngTemplateOutlet]="labelTemplate || defaultLabelTemplate"\n [ngTemplateOutletContext]="{ item: item.value, clear: clearItem, label: item.label }">\n </ng-template>\n </div>\n </ng-container>\n <ng-template *ngIf="multiLabelTemplate && selectedValues.length > 0"\n [ngTemplateOutlet]="multiLabelTemplate"\n [ngTemplateOutletContext]="{ items: selectedValues, clear: clearItem }">\n </ng-template>\n <div *ngIf="!isDisabled" class="ng-input">\n <div *ngIf="!searchable"\n #filterInput\n tabindex="0"\n (focus)="onInputFocus()"\n (blur)="onInputBlur()"\n role="combobox"\n [attr.aria-expanded]="isOpen"\n [attr.aria-owns]="isOpen ? dropdownId : null"\n [attr.aria-activedescendant]="isOpen ? itemsList?.markedItem?.htmlId : null">\n </div>\n <input #filterInput\n *ngIf="searchable"\n type="text"\n autocomplete="off"\n [value]="filterValue"\n (input)="filter(filterInput.value)"\n (focus)="onInputFocus()"\n (blur)="onInputBlur()"\n (change)="$event.stopPropagation()"\n role="combobox"\n [attr.aria-expanded]="isOpen"\n [attr.aria-owns]="isOpen ? dropdownId : null"\n [attr.aria-activedescendant]="isOpen ? itemsList?.markedItem?.htmlId : null">\n </div>\n </div>\n <div class="ng-spinner-loader" *ngIf="isLoading"></div>\n <span *ngIf="showClear()" (click)="handleClearClick($event)" class="ng-clear-wrapper" title="{{clearAllText}}">\n <span class="ng-clear" aria-hidden="true">×</span>\n </span>\n <span (mousedown)="handleArrowClick($event)" class="ng-arrow-wrapper">\n <span class="ng-arrow"></span>\n </span>\n</div>\n<div class="ng-overlay-container" *ngIf="isOpen">\n <div class="ng-overlay" (click)="close()" ></div>\n</div>\n<ng-dropdown-panel *ngIf="isOpen"\n class="ng-dropdown-panel"\n [virtualScroll]="virtualScroll"\n [bufferAmount]="bufferAmount"\n [appendTo]="appendTo"\n [position]="dropdownPosition"\n [headerTemplate]="headerTemplate"\n [footerTemplate]="footerTemplate"\n [items]="itemsList.filteredItems"\n (update)="viewPortItems = $event"\n (scrollToEnd)="scrollToEnd.emit($event)"\n [ngClass]="{\'multiple\': multiple}"\n [id]="dropdownId">\n <ng-container>\n <div class="ng-option" [attr.role]="item.hasChildren ? \'group\' : \'option\'" (click)="toggleItem(item)" (mousedown)="$event.preventDefault()" (mouseover)="onItemHover(item)"\n *ngFor="let item of viewPortItems"\n [class.ng-option-disabled]="item.disabled"\n [class.ng-option-selected]="item.selected"\n [class.ng-optgroup]="item.hasChildren"\n [class.ng-option]="!item.hasChildren"\n [class.ng-option-child]="!!item.parent"\n [class.ng-option-marked]="item === itemsList.markedItem"\n id="{{item?.htmlId || null}}">\n <ng-template #defaultOptionTemplate>\n <span class="ng-option-label">{{item.label}}</span>\n </ng-template>\n <ng-template\n [ngTemplateOutlet]="item.hasChildren ? (optgroupTemplate || defaultOptionTemplate) : (optionTemplate || defaultOptionTemplate)"\n [ngTemplateOutletContext]="{ item: item.value, index: item.index, searchTerm: filterValue }">\n </ng-template>\n </div>\n <div class="ng-option" [class.ng-option-marked]="!itemsList.markedItem" (mouseover)="itemsList.unmarkItem()" role="option" (click)="selectTag()" *ngIf="showAddTag()">\n <span><span class="ng-tag-label">{{addTagText}}</span>"{{filterValue}}"</span>\n </div>\n </ng-container>\n <ng-container *ngIf="showNoItemsFound()">\n <ng-template #defaultNotFoundTemplate>\n <div class="ng-option ng-option-disabled">{{notFoundText}}</div>\n </ng-template>\n <ng-template\n [ngTemplateOutlet]="notFoundTemplate || defaultNotFoundTemplate"\n [ngTemplateOutletContext]="{ searchTerm: filterValue }">\n </ng-template>\n </ng-container>\n <ng-container *ngIf="showTypeToSearch()">\n <ng-template #defaultTypeToSearchTemplate>\n <div class="ng-option ng-option-disabled">{{typeToSearchText}}</div>\n </ng-template>\n <ng-template\n [ngTemplateOutlet]="typeToSearchTemplate || defaultTypeToSearchTemplate">\n </ng-template>\n </ng-container>\n <ng-container *ngIf="isLoading && itemsList.filteredItems.length === 0">\n <ng-template #defaultLoadingTextTemplate>\n <div class="ng-option ng-option-disabled">{{loadingText}}</div>\n </ng-template>\n <ng-template\n [ngTemplateOutlet]="loadingTextTemplate || defaultLoadingTextTemplate"\n [ngTemplateOutletContext]="{ searchTerm: filterValue }">\n </ng-template>\n </ng-container>\n</ng-dropdown-panel>\n',styles:[".ng-select{position:relative;display:block;-webkit-box-sizing:border-box;box-sizing:border-box}.ng-select div,.ng-select input,.ng-select span{-webkit-box-sizing:border-box;box-sizing:border-box}.ng-select [hidden]{display:none}.ng-select.ng-select-searchable .ng-select-container .ng-value-container .ng-input{opacity:1}.ng-select.ng-select-opened .ng-select-container{z-index:1001}.ng-select.ng-select-disabled .ng-select-container .ng-value-container .ng-placeholder,.ng-select.ng-select-disabled .ng-select-container .ng-value-container .ng-value{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.ng-select.ng-select-disabled .ng-arrow-wrapper{cursor:default}.ng-select.ng-select-filtered .ng-placeholder{display:none}.ng-select .ng-select-container{color:#333;cursor:default;display:-webkit-box;display:-ms-flexbox;display:flex;outline:0;overflow:hidden;position:relative;width:100%}.ng-select .ng-select-container .ng-value-container{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-ms-flex:1;flex:1}.ng-select .ng-select-container .ng-value-container .ng-input{opacity:0}.ng-select .ng-select-container .ng-value-container .ng-input>input{-webkit-box-sizing:content-box;box-sizing:content-box;background:none;border:0;-webkit-box-shadow:none;box-shadow:none;outline:0;cursor:default;width:100%}.ng-select .ng-select-container .ng-value-container .ng-input>input::-ms-clear{display:none}.ng-select.ng-select-single.ng-select-filtered .ng-select-container .ng-value-container .ng-value{visibility:hidden}.ng-select.ng-select-single .ng-select-container .ng-value-container,.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-value{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-value .ng-value-icon{display:none}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-input{position:absolute;left:0;width:100%}.ng-select.ng-select-multiple.ng-select-disabled>.ng-select-container .ng-value-container .ng-value .ng-value-icon{display:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container{-ms-flex-wrap:wrap;flex-wrap:wrap}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{white-space:nowrap}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.disabled .ng-value-icon{display:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon{cursor:pointer}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-input{-webkit-box-flex:1;-ms-flex:1;flex:1;z-index:2}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{position:absolute;z-index:1}.ng-select .ng-clear-wrapper{cursor:pointer;position:relative;width:17px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ng-select .ng-clear-wrapper .ng-clear{display:inline-block;font-size:18px;line-height:1}.ng-select .ng-spinner-loader{border-radius:50%;width:17px;height:17px;margin-right:5px;font-size:10px;position:relative;text-indent:-9999em;border-top:2px solid rgba(66,66,66,.2);border-right:2px solid rgba(66,66,66,.2);border-bottom:2px solid rgba(66,66,66,.2);border-left:2px solid #424242;-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-animation:.8s linear infinite load8;animation:.8s linear infinite load8}.ng-select .ng-spinner-loader:after{border-radius:50%;width:17px;height:17px}@-webkit-keyframes load8{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes load8{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.ng-select .ng-arrow-wrapper{cursor:pointer;position:relative;text-align:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ng-select .ng-arrow-wrapper .ng-arrow{display:inline-block;height:0;width:0;position:relative}.ng-select .ng-overlay-container{pointer-events:none;top:0;left:0;height:100%;width:100%;position:fixed;z-index:1000}.ng-select .ng-overlay-container .ng-overlay{top:0;bottom:0;left:0;right:0;opacity:0;position:absolute;pointer-events:auto;z-index:1000}"],providers:[{provide:t.NG_VALUE_ACCESSOR,useExisting:o.forwardRef(function(){return V}),multi:!0}],encapsulation:o.ViewEncapsulation.None,changeDetection:o.ChangeDetectionStrategy.OnPush,host:{role:"listbox","class":"ng-select","[class.ng-select-single]":"!multiple"}}]}],V.ctorParameters=function(){return[{type:undefined,decorators:[{type:o.Inject,args:[P]}]},{type:o.ChangeDetectorRef},{type:D},{type:o.ElementRef}]},V.propDecorators={items:[{type:o.Input}],bindLabel:[{type:o.Input}],bindValue:[{type:o.Input}],clearable:[{type:o.Input}],markFirst:[{type:o.Input}],placeholder:[{type:o.Input}],notFoundText:[{type:o.Input}],typeToSearchText:[{type:o.Input}],addTagText:[{type:o.Input}],loadingText:[{type:o.Input}],clearAllText:[{type:o.Input}],dropdownPosition:[{type:o.Input}],appendTo:[{type:o.Input}],loading:[{type:o.Input}],closeOnSelect:[{type:o.Input}],hideSelected:[{type:o.Input}],selectOnTab:[{type:o.Input}],maxSelectedItems:[{type:o.Input}],groupBy:[{type:o.Input}],bufferAmount:[{type:o.Input}],virtualScroll:[{type:o.Input}],selectableGroup:[{type:o.Input}],searchFn:[{type:o.Input}],typeahead:[{type:o.Input},{type:o.HostBinding,args:["class.ng-select-typeahead"]}],multiple:[{type:o.Input},{type:o.HostBinding,args:["class.ng-select-multiple"]}],addTag:[{type:o.Input},{type:o.HostBinding,args:["class.ng-select-taggable"]}],searchable:[{type:o.Input},{type:o.HostBinding,args:["class.ng-select-searchable"]}],compareWith:[{type:o.Input}],blurEvent:[{type:o.Output,args:["blur"]}],focusEvent:[{type:o.Output,args:["focus"]}],changeEvent:[{type:o.Output,args:["change"]}],openEvent:[{type:o.Output,args:["open"]}],closeEvent:[{type:o.Output,args:["close"]}],searchEvent:[{type:o.Output,args:["search"]}],clearEvent:[{type:o.Output,args:["clear"]}],addEvent:[{type:o.Output,args:["add"]}],removeEvent:[{type:o.Output,args:["remove"]}],scrollToEnd:[{type:o.Output,args:["scrollToEnd"]}],optionTemplate:[{type:o.ContentChild,args:[i,{read:o.TemplateRef}]}],optgroupTemplate:[{type:o.ContentChild,args:[a,{read:o.TemplateRef}]}],labelTemplate:[{type:o.ContentChild,args:[c,{read:o.TemplateRef}]}],multiLabelTemplate:[{type:o.ContentChild,args:[p,{read:o.TemplateRef}]}],headerTemplate:[{type:o.ContentChild,args:[d,{read:o.TemplateRef}]}],footerTemplate:[{type:o.ContentChild,args:[u,{read:o.TemplateRef}]}],notFoundTemplate:[{type:o.ContentChild,args:[h,{read:o.TemplateRef}]}],typeToSearchTemplate:[{type:o.ContentChild,args:[m,{read:o.TemplateRef}]}],loadingTextTemplate:[{type:o.ContentChild,args:[v,{read:o.TemplateRef}]}],dropdownPanel:[{type:o.ViewChild,args:[o.forwardRef(function(){return R})]}],ngOptions:[{type:o.ContentChildren,args:[S,{descendants:!0}]}],filterInput:[{type:o.ViewChild,args:["filterInput"]}],isOpen:[{type:o.HostBinding,args:["class.ng-select-opened"]}],isFocused:[{type:o.HostBinding,args:["class.ng-select-focused"]}],isDisabled:[{type:o.HostBinding,args:["class.ng-select-disabled"]}],filtered:[{type:o.HostBinding,args:["class.ng-select-filtered"]}],handleKeyDown:[{type:o.HostListener,args:["keydown",["$event"]]}]};var N=function(){function e(e,t){this.elementRef=e,this.renderer=t,this.element=this.elementRef.nativeElement}return e.prototype.ngOnChanges=function(e){T(e.term.currentValue)&&T(this.label)&&this._highlightLabelWithSearchTerm()},e.prototype.ngAfterViewInit=function(){this.label=this.element.innerHTML},e.prototype._highlightLabelWithSearchTerm=function(){var e=this.label;if(this.term){var t=I(e).toLowerCase().indexOf(I(this.term).toLowerCase());-1<t?this._setInnerHtml(e.substring(0,t)+'<span class="highlighted">'+e.substr(t,this.term.length)+"</span>"+e.substring(t+this.term.length,e.length)):this._setInnerHtml(e)}else this._setInnerHtml(e)},e.prototype._setInnerHtml=function(e){this.renderer.setProperty(this.elementRef.nativeElement,"innerHTML",e)},e}();N.decorators=[{type:o.Directive,args:[{selector:"[ngOptionHighlight]"}]}],N.ctorParameters=function(){return[{type:o.ElementRef},{type:o.Renderer2}]};N.propDecorators={term:[{type:o.Input,args:["ngOptionHighlight"]}]};var F=function(){};F.decorators=[{type:o.NgModule,args:[{declarations:[R,S,V,N,a,i,c,p,d,u,h,m,v],imports:[n.CommonModule],exports:[V,S,N,a,i,c,p,d,u,h,m,v],providers:[D,L,k,{provide:P,useValue:{notFoundText:"No items found",typeToSearchText:"Type to search",addTagText:"Add item",loadingText:"Loading...",clearAllText:"Clear all",disableVirtualScroll:!1}}]}]}],F.ctorParameters=function(){return[]},e.NgSelectComponent=V,e.NG_SELECT_DEFAULT_CONFIG=P,e.NgSelectModule=F,e.ɵn=D,e.ɵj=R,e.ɵo=N,e.ɵm=S,e.ɵf=u,e.ɵe=d,e.ɵc=c,e.ɵi=v,e.ɵd=p,e.ɵg=h,e.ɵb=a,e.ɵa=i,e.ɵh=m,e.ɵk=k,e.ɵl=L,Object.defineProperty(e,"__esModule",{value:!0})});
//# sourceMappingURL=ng-select.umd.min.js.map

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

{"__symbolic":"module","version":4,"metadata":{"NgSelectComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":54,"character":1},"arguments":[{"selector":"ng-select","template":"<div (mousedown)=\"searchable ? open() : toggle()\" [class.ng-has-value]=\"hasValue\" class=\"ng-control\">\n <div class=\"ng-value-container\">\n <div class=\"ng-placeholder\">{{placeholder}}</div>\n\n <ng-container *ngIf=\"!multiLabelTemplate && selectedItems.length > 0\">\n <div [class.disabled]=\"item.disabled\" class=\"ng-value\" *ngFor=\"let item of selectedItems\">\n <ng-template #defaultLabelTemplate>\n <span class=\"ng-value-icon left\" (click)=\"unselect(item); $event.stopPropagation()\" aria-hidden=\"true\">×</span>\n <span class=\"ng-value-label\">{{item.label}}</span>\n </ng-template>\n \n <ng-template\n [ngTemplateOutlet]=\"labelTemplate || defaultLabelTemplate\"\n [ngTemplateOutletContext]=\"{ item: item.value, clear: clearItem, label: item.label }\">\n </ng-template>\n </div>\n </ng-container>\n\n <ng-template *ngIf=\"multiLabelTemplate && selectedValues.length > 0\"\n [ngTemplateOutlet]=\"multiLabelTemplate\"\n [ngTemplateOutletContext]=\"{ items: selectedValues, clear: clearItem }\">\n </ng-template>\n\n <div *ngIf=\"showFilter()\" class=\"ng-input\">\n <input #filterInput\n type=\"text\"\n autocomplete=\"off\"\n [readOnly]=\"!searchable\"\n [value]=\"filterValue\"\n (input)=\"filter(filterInput.value)\"\n (focus)=\"onInputFocus()\"\n (blur)=\"onInputBlur()\"\n (change)=\"$event.stopPropagation()\"\n role=\"combobox\"\n [attr.aria-expanded]=\"isOpen\"\n [attr.aria-owns]=\"isOpen ? dropdownId : null\"\n [attr.aria-activedescendant]=\"isOpen ? itemsList?.markedItem?.htmlId : null\">\n </div>\n </div>\n\n <div class=\"ng-spinner-loader\" *ngIf=\"isLoading\"></div>\n\n <span *ngIf=\"showClear()\" (click)=\"handleClearClick($event)\" class=\"ng-clear-zone\" title=\"{{clearAllText}}\">\n <span class=\"ng-clear\" aria-hidden=\"true\">×</span>\n </span>\n\n <span (mousedown)=\"handleArrowClick($event)\" class=\"ng-arrow-zone\">\n <span class=\"ng-arrow\"></span>\n </span>\n</div>\n\n<div class=\"ng-overlay-container\" *ngIf=\"isOpen\">\n <div class=\"ng-overlay\" (click)=\"close()\" ></div>\n</div>\n\n<ng-dropdown-panel *ngIf=\"isOpen\"\n class=\"ng-dropdown-panel\"\n [virtualScroll]=\"virtualScroll\"\n [bufferAmount]=\"bufferAmount\"\n [appendTo]=\"appendTo\"\n [position]=\"dropdownPosition\"\n [headerTemplate]=\"headerTemplate\"\n [footerTemplate]=\"footerTemplate\"\n [items]=\"itemsList.filteredItems\"\n (update)=\"viewPortItems = $event\"\n (scrollToEnd)=\"scrollToEnd.emit($event)\"\n [ngClass]=\"{'multiple': multiple}\"\n [id]=\"dropdownId\">\n \n <ng-container>\n <div class=\"ng-option\" [attr.role]=\"item.hasChildren ? 'group' : 'option'\" (click)=\"toggleItem(item)\" (mousedown)=\"$event.preventDefault()\" (mouseover)=\"onItemHover(item)\"\n *ngFor=\"let item of viewPortItems\"\n [class.disabled]=\"item.disabled\"\n [class.selected]=\"item.selected\"\n [class.ng-optgroup]=\"item.hasChildren\"\n [class.ng-option]=\"!item.hasChildren\"\n [class.ng-option-child]=\"!!item.parent\"\n [class.marked]=\"item === itemsList.markedItem\"\n id=\"{{item?.htmlId || null}}\">\n\n <ng-template #defaultOptionTemplate>\n <span class=\"ng-option-label\">{{item.label}}</span>\n </ng-template>\n\n <ng-template\n [ngTemplateOutlet]=\"item.hasChildren ? (optgroupTemplate || defaultOptionTemplate) : (optionTemplate || defaultOptionTemplate)\"\n [ngTemplateOutletContext]=\"{ item: item.value, index: item.index, searchTerm: filterValue }\">\n </ng-template>\n </div>\n\n <div class=\"ng-option\" [class.marked]=\"!itemsList.markedItem\" (mouseover)=\"itemsList.unmarkItem()\" role=\"option\" (click)=\"selectTag()\" *ngIf=\"showAddTag()\">\n <span><span class=\"ng-tag-label\">{{addTagText}}</span>\"{{filterValue}}\"</span>\n </div>\n </ng-container>\n\n <ng-container *ngIf=\"showNoItemsFound()\">\n <ng-template #defaultNotFoundTemplate>\n <div class=\"ng-option disabled\">{{notFoundText}}</div>\n </ng-template>\n \n <ng-template\n [ngTemplateOutlet]=\"notFoundTemplate || defaultNotFoundTemplate\"\n [ngTemplateOutletContext]=\"{ searchTerm: filterValue }\">\n </ng-template>\n </ng-container>\n\n <ng-container *ngIf=\"showTypeToSearch()\">\n <ng-template #defaultTypeToSearchTemplate>\n <div class=\"ng-option disabled\">{{typeToSearchText}}</div>\n </ng-template>\n \n <ng-template\n [ngTemplateOutlet]=\"typeToSearchTemplate || defaultTypeToSearchTemplate\">\n </ng-template>\n </ng-container>\n \n <ng-container *ngIf=\"isLoading && itemsList.filteredItems.length === 0\">\n <ng-template #defaultLoadingTextTemplate>\n <div class=\"ng-option disabled\">{{loadingText}}</div>\n </ng-template>\n \n <ng-template\n [ngTemplateOutlet]=\"loadingTextTemplate || defaultLoadingTextTemplate\"\n [ngTemplateOutletContext]=\"{ searchTerm: filterValue }\">\n </ng-template>\n </ng-container>\n\n</ng-dropdown-panel>\n","styles":[".ng-select{position:relative;display:block;-webkit-box-sizing:border-box;box-sizing:border-box}.ng-select div,.ng-select input,.ng-select span{-webkit-box-sizing:border-box;box-sizing:border-box}.ng-select [hidden]{display:none}.ng-select.searchable .ng-control .ng-value-container .ng-input{opacity:1}.ng-select.opened .ng-control{z-index:1001}.ng-select.disabled .ng-control .ng-value-container .ng-placeholder,.ng-select.disabled .ng-control .ng-value-container .ng-value{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.ng-select.disabled .ng-arrow-zone{cursor:default}.ng-select.filtered .ng-placeholder{display:none}.ng-select .ng-control{color:#333;cursor:default;display:-webkit-box;display:-ms-flexbox;display:flex;outline:0;overflow:hidden;position:relative;width:100%}.ng-select .ng-control .ng-value-container{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-ms-flex:1;flex:1}.ng-select .ng-control .ng-value-container .ng-input{opacity:0}.ng-select .ng-control .ng-value-container .ng-input>input{-webkit-box-sizing:content-box;box-sizing:content-box;background:none;border:0;-webkit-box-shadow:none;box-shadow:none;outline:0;cursor:default;width:100%}.ng-select .ng-control .ng-value-container .ng-input>input::-ms-clear{display:none}.ng-select.ng-single.filtered .ng-control .ng-value-container .ng-value{visibility:hidden}.ng-select.ng-single .ng-control .ng-value-container,.ng-select.ng-single .ng-control .ng-value-container .ng-value{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-select.ng-single .ng-control .ng-value-container .ng-value .ng-value-icon{display:none}.ng-select.ng-single .ng-control .ng-value-container .ng-input{position:absolute;left:0;width:100%}.ng-select.ng-multiple.disabled>.ng-control .ng-value-container .ng-value .ng-value-icon{display:none}.ng-select.ng-multiple .ng-control .ng-value-container{-ms-flex-wrap:wrap;flex-wrap:wrap}.ng-select.ng-multiple .ng-control .ng-value-container .ng-value{white-space:nowrap}.ng-select.ng-multiple .ng-control .ng-value-container .ng-value.disabled .ng-value-icon{display:none}.ng-select.ng-multiple .ng-control .ng-value-container .ng-value .ng-value-icon{cursor:pointer}.ng-select.ng-multiple .ng-control .ng-value-container .ng-input{-webkit-box-flex:1;-ms-flex:1;flex:1;z-index:2}.ng-select.ng-multiple .ng-control .ng-value-container .ng-placeholder{position:absolute;z-index:1}.ng-select .ng-clear-zone{cursor:pointer;position:relative;width:17px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ng-select .ng-clear-zone .ng-clear{display:inline-block;font-size:18px;line-height:1}.ng-select .ng-spinner-loader{border-radius:50%;width:17px;height:17px;margin-right:5px;font-size:10px;position:relative;text-indent:-9999em;border-top:2px solid rgba(66,66,66,.2);border-right:2px solid rgba(66,66,66,.2);border-bottom:2px solid rgba(66,66,66,.2);border-left:2px solid #424242;-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-animation:.8s linear infinite load8;animation:.8s linear infinite load8}.ng-select .ng-spinner-loader:after{border-radius:50%;width:17px;height:17px}@-webkit-keyframes load8{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes load8{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.ng-select .ng-arrow-zone{cursor:pointer;position:relative;text-align:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ng-select .ng-arrow-zone .ng-arrow{display:inline-block;height:0;width:0;position:relative}.ng-select .ng-overlay-container{pointer-events:none;top:0;left:0;height:100%;width:100%;position:fixed;z-index:1000}.ng-select .ng-overlay-container .ng-overlay{top:0;bottom:0;left:0;right:0;opacity:0;position:absolute;pointer-events:auto;z-index:1000}"],"providers":[{"provide":{"__symbolic":"reference","module":"@angular/forms","name":"NG_VALUE_ACCESSOR","line":187,"character":17},"useExisting":{"__symbolic":"reference","name":"NgSelectComponent"},"multi":true}],"encapsulation":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewEncapsulation","line":191,"character":19},"member":"None"},"changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":192,"character":21},"member":"OnPush"},"host":{"role":"listbox","class":"ng-select","[class.ng-single]":"!multiple"}}]}],"members":{"items":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":202,"character":5}}]}],"bindLabel":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":203,"character":5}}]}],"bindValue":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":204,"character":5}}]}],"clearable":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":205,"character":5}}]}],"markFirst":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":206,"character":5}}]}],"placeholder":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":207,"character":5}}]}],"notFoundText":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":208,"character":5}}]}],"typeToSearchText":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":209,"character":5}}]}],"addTagText":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":210,"character":5}}]}],"loadingText":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":211,"character":5}}]}],"clearAllText":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":212,"character":5}}]}],"dropdownPosition":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":213,"character":5}}]}],"appendTo":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":214,"character":5}}]}],"loading":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":215,"character":5}}]}],"closeOnSelect":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":216,"character":5}}]}],"hideSelected":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":217,"character":5}}]}],"selectOnTab":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":218,"character":5}}]}],"maxSelectedItems":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":219,"character":5}}]}],"groupBy":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":220,"character":5}}]}],"bufferAmount":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":221,"character":5}}]}],"virtualScroll":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":222,"character":5}}]}],"selectableGroup":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":223,"character":5}}]}],"searchFn":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":224,"character":5}}]}],"typeahead":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":225,"character":5}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":225,"character":14},"arguments":["class.typeahead"]}]}],"multiple":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":226,"character":5}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":226,"character":14},"arguments":["class.ng-multiple"]}]}],"addTag":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":227,"character":5}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":227,"character":14},"arguments":["class.taggable"]}]}],"searchable":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":228,"character":5}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":228,"character":14},"arguments":["class.searchable"]}]}],"compareWith":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":230,"character":5}}]}],"blurEvent":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":240,"character":5},"arguments":["blur"]}]}],"focusEvent":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":241,"character":5},"arguments":["focus"]}]}],"changeEvent":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":242,"character":5},"arguments":["change"]}]}],"openEvent":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":243,"character":5},"arguments":["open"]}]}],"closeEvent":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":244,"character":5},"arguments":["close"]}]}],"searchEvent":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":245,"character":5},"arguments":["search"]}]}],"clearEvent":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":246,"character":5},"arguments":["clear"]}]}],"addEvent":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":247,"character":5},"arguments":["add"]}]}],"removeEvent":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":248,"character":5},"arguments":["remove"]}]}],"scrollToEnd":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":249,"character":5},"arguments":["scrollToEnd"]}]}],"optionTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChild","line":252,"character":5},"arguments":[{"__symbolic":"reference","name":"ɵa"},{"read":{"__symbolic":"reference","module":"@angular/core","name":"TemplateRef","line":252,"character":53}}]}]}],"optgroupTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChild","line":253,"character":5},"arguments":[{"__symbolic":"reference","name":"ɵb"},{"read":{"__symbolic":"reference","module":"@angular/core","name":"TemplateRef","line":253,"character":55}}]}]}],"labelTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChild","line":254,"character":5},"arguments":[{"__symbolic":"reference","name":"ɵc"},{"read":{"__symbolic":"reference","module":"@angular/core","name":"TemplateRef","line":254,"character":52}}]}]}],"multiLabelTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChild","line":255,"character":5},"arguments":[{"__symbolic":"reference","name":"ɵd"},{"read":{"__symbolic":"reference","module":"@angular/core","name":"TemplateRef","line":255,"character":57}}]}]}],"headerTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChild","line":256,"character":5},"arguments":[{"__symbolic":"reference","name":"ɵe"},{"read":{"__symbolic":"reference","module":"@angular/core","name":"TemplateRef","line":256,"character":53}}]}]}],"footerTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChild","line":257,"character":5},"arguments":[{"__symbolic":"reference","name":"ɵf"},{"read":{"__symbolic":"reference","module":"@angular/core","name":"TemplateRef","line":257,"character":53}}]}]}],"notFoundTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChild","line":258,"character":5},"arguments":[{"__symbolic":"reference","name":"ɵg"},{"read":{"__symbolic":"reference","module":"@angular/core","name":"TemplateRef","line":258,"character":55}}]}]}],"typeToSearchTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChild","line":259,"character":5},"arguments":[{"__symbolic":"reference","name":"ɵh"},{"read":{"__symbolic":"reference","module":"@angular/core","name":"TemplateRef","line":259,"character":59}}]}]}],"loadingTextTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChild","line":260,"character":5},"arguments":[{"__symbolic":"reference","name":"ɵi"},{"read":{"__symbolic":"reference","module":"@angular/core","name":"TemplateRef","line":260,"character":58}}]}]}],"dropdownPanel":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":262,"character":5},"arguments":[{"__symbolic":"reference","name":"ɵj"}]}]}],"ngOptions":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChildren","line":263,"character":5},"arguments":[{"__symbolic":"reference","name":"ɵm"},{"descendants":true}]}]}],"filterInput":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":264,"character":5},"arguments":["filterInput"]}]}],"isOpen":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":266,"character":5},"arguments":["class.opened"]}]}],"isFocused":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":267,"character":5},"arguments":["class.focused"]}]}],"isDisabled":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":268,"character":5},"arguments":["class.disabled"]}]}],"filtered":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":269,"character":5},"arguments":["class.filtered"]}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":292,"character":17},"arguments":[{"__symbolic":"reference","name":"NG_SELECT_DEFAULT_CONFIG"}]}],null,null,null],"parameters":[{"__symbolic":"reference","name":"NgSelectConfig"},{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectorRef","line":293,"character":21},{"__symbolic":"reference","name":"ɵn"},{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":295,"character":27}]}],"ngOnChanges":[{"__symbolic":"method"}],"ngAfterViewInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"handleKeyDown":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener","line":336,"character":5},"arguments":["keydown",["$event"]]}]}],"handleArrowClick":[{"__symbolic":"method"}],"handleClearClick":[{"__symbolic":"method"}],"clearModel":[{"__symbolic":"method"}],"writeValue":[{"__symbolic":"method"}],"registerOnChange":[{"__symbolic":"method"}],"registerOnTouched":[{"__symbolic":"method"}],"setDisabledState":[{"__symbolic":"method"}],"toggle":[{"__symbolic":"method"}],"open":[{"__symbolic":"method"}],"close":[{"__symbolic":"method"}],"toggleItem":[{"__symbolic":"method"}],"select":[{"__symbolic":"method"}],"unselect":[{"__symbolic":"method"}],"selectTag":[{"__symbolic":"method"}],"showClear":[{"__symbolic":"method"}],"showAddTag":[{"__symbolic":"method"}],"showFilter":[{"__symbolic":"method"}],"showNoItemsFound":[{"__symbolic":"method"}],"showTypeToSearch":[{"__symbolic":"method"}],"filter":[{"__symbolic":"method"}],"onInputFocus":[{"__symbolic":"method"}],"onInputBlur":[{"__symbolic":"method"}],"onItemHover":[{"__symbolic":"method"}],"detectChanges":[{"__symbolic":"method"}],"focusSearchInput":[{"__symbolic":"method"}],"_setItems":[{"__symbolic":"method"}],"_setItemsFromNgOptions":[{"__symbolic":"method"}],"_isValidWriteValue":[{"__symbolic":"method"}],"_handleWriteValue":[{"__symbolic":"method"}],"_updateNgModel":[{"__symbolic":"method"}],"_clearSearch":[{"__symbolic":"method"}],"_scrollToMarked":[{"__symbolic":"method"}],"_scrollToTag":[{"__symbolic":"method"}],"_handleTab":[{"__symbolic":"method"}],"_handleEnter":[{"__symbolic":"method"}],"_handleSpace":[{"__symbolic":"method"}],"_handleArrowDown":[{"__symbolic":"method"}],"_handleArrowUp":[{"__symbolic":"method"}],"nextItemIsTag":[{"__symbolic":"method"}],"_handleBackspace":[{"__symbolic":"method"}],"_mergeGlobalConfig":[{"__symbolic":"method"}]}},"NG_SELECT_DEFAULT_CONFIG":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":49,"character":44},"arguments":["ng-select-default-options"]},"NgSelectModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":21,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"ɵj"},{"__symbolic":"reference","name":"ɵm"},{"__symbolic":"reference","name":"NgSelectComponent"},{"__symbolic":"reference","name":"ɵo"},{"__symbolic":"reference","name":"ɵb"},{"__symbolic":"reference","name":"ɵa"},{"__symbolic":"reference","name":"ɵc"},{"__symbolic":"reference","name":"ɵd"},{"__symbolic":"reference","name":"ɵe"},{"__symbolic":"reference","name":"ɵf"},{"__symbolic":"reference","name":"ɵg"},{"__symbolic":"reference","name":"ɵh"},{"__symbolic":"reference","name":"ɵi"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":38,"character":8}],"exports":[{"__symbolic":"reference","name":"NgSelectComponent"},{"__symbolic":"reference","name":"ɵm"},{"__symbolic":"reference","name":"ɵo"},{"__symbolic":"reference","name":"ɵb"},{"__symbolic":"reference","name":"ɵa"},{"__symbolic":"reference","name":"ɵc"},{"__symbolic":"reference","name":"ɵd"},{"__symbolic":"reference","name":"ɵe"},{"__symbolic":"reference","name":"ɵf"},{"__symbolic":"reference","name":"ɵg"},{"__symbolic":"reference","name":"ɵh"},{"__symbolic":"reference","name":"ɵi"}],"providers":[{"__symbolic":"reference","name":"ɵn"},{"__symbolic":"reference","name":"ɵl"},{"__symbolic":"reference","name":"ɵk"},{"provide":{"__symbolic":"reference","name":"NG_SELECT_DEFAULT_CONFIG"},"useValue":{"notFoundText":"No items found","typeToSearchText":"Type to search","addTagText":"Add item","loadingText":"Loading...","clearAllText":"Clear all","disableVirtualScroll":false}}]}]}],"members":{}},"NgOption":{"__symbolic":"interface"},"NgSelectConfig":{"__symbolic":"interface"},"ɵa":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":2,"character":1},"arguments":[{"selector":"[ng-option-tmp]"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"TemplateRef","module":"@angular/core","arguments":[{"__symbolic":"reference","name":"any"}]}]}]}},"ɵb":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":8,"character":1},"arguments":[{"selector":"[ng-optgroup-tmp]"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"TemplateRef","module":"@angular/core","arguments":[{"__symbolic":"reference","name":"any"}]}]}]}},"ɵc":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":14,"character":1},"arguments":[{"selector":"[ng-label-tmp]"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"TemplateRef","module":"@angular/core","arguments":[{"__symbolic":"reference","name":"any"}]}]}]}},"ɵd":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":20,"character":1},"arguments":[{"selector":"[ng-multi-label-tmp]"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"TemplateRef","module":"@angular/core","arguments":[{"__symbolic":"reference","name":"any"}]}]}]}},"ɵe":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":26,"character":1},"arguments":[{"selector":"[ng-header-tmp]"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"TemplateRef","module":"@angular/core","arguments":[{"__symbolic":"reference","name":"any"}]}]}]}},"ɵf":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":32,"character":1},"arguments":[{"selector":"[ng-footer-tmp]"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"TemplateRef","module":"@angular/core","arguments":[{"__symbolic":"reference","name":"any"}]}]}]}},"ɵg":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":38,"character":1},"arguments":[{"selector":"[ng-notfound-tmp]"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"TemplateRef","module":"@angular/core","arguments":[{"__symbolic":"reference","name":"any"}]}]}]}},"ɵh":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":44,"character":1},"arguments":[{"selector":"[ng-typetosearch-tmp]"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"TemplateRef","module":"@angular/core","arguments":[{"__symbolic":"reference","name":"any"}]}]}]}},"ɵi":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":50,"character":1},"arguments":[{"selector":"[ng-loadingtext-tmp]"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"TemplateRef","module":"@angular/core","arguments":[{"__symbolic":"reference","name":"any"}]}]}]}},"ɵj":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":30,"character":1},"arguments":[{"changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":31,"character":21},"member":"OnPush"},"encapsulation":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewEncapsulation","line":32,"character":19},"member":"None"},"selector":"ng-dropdown-panel","template":"\n <div *ngIf=\"headerTemplate\" class=\"ng-dropdown-header\" ngProjectAs=\"header\" header>\n <ng-container [ngTemplateOutlet]=\"headerTemplate\"></ng-container>\n </div>\n <div #scroll class=\"ng-dropdown-panel-items scroll-host\">\n <div #padding [class.total-padding]=\"virtualScroll\"></div>\n <div #content [class.scrollable-content]=\"virtualScroll && items.length > 0\">\n <ng-content></ng-content>\n </div>\n </div>\n <div *ngIf=\"footerTemplate\" class=\"ng-dropdown-footer\" ngProjectAs=\"footer\" footer>\n <ng-container [ngTemplateOutlet]=\"footerTemplate\"></ng-container>\n </div>\n ","styles":[".ng-dropdown-panel{-webkit-box-sizing:border-box;box-sizing:border-box;position:absolute;opacity:0;width:100%;z-index:1050;-webkit-overflow-scrolling:touch}.ng-dropdown-panel .ng-dropdown-panel-items{display:block;height:auto;-webkit-box-sizing:border-box;box-sizing:border-box;max-height:240px;overflow-y:auto}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option{-webkit-box-sizing:border-box;box-sizing:border-box;cursor:pointer;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .highlighted{font-weight:700;text-decoration:underline}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.disabled{cursor:default}.ng-dropdown-panel .scroll-host{overflow:hidden;overflow-y:auto;position:relative;display:block;-webkit-overflow-scrolling:touch}.ng-dropdown-panel .scrollable-content{top:0;left:0;width:100%;height:100%;position:absolute}.ng-dropdown-panel .total-padding{width:1px;opacity:0}"]}]}],"members":{"items":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":52,"character":5}}]}],"position":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":53,"character":5}}]}],"appendTo":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":54,"character":5}}]}],"bufferAmount":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":55,"character":5}}]}],"virtualScroll":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":56,"character":5}}]}],"headerTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":57,"character":5}}]}],"footerTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":58,"character":5}}]}],"update":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":60,"character":5}}]}],"scrollToEnd":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":61,"character":5}}]}],"contentElementRef":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":63,"character":5},"arguments":["content",{"read":{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":63,"character":34}}]}]}],"scrollElementRef":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":64,"character":5},"arguments":["scroll",{"read":{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":64,"character":33}}]}]}],"paddingElementRef":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":65,"character":5},"arguments":["padding",{"read":{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":65,"character":34}}]}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":79,"character":9},"arguments":[{"__symbolic":"reference","name":"NgSelectComponent"}]}],null,null,null,null,null],"parameters":[{"__symbolic":"reference","name":"NgSelectComponent"},{"__symbolic":"reference","module":"@angular/core","name":"Renderer2","line":80,"character":27},{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":81,"character":29},{"__symbolic":"reference","module":"@angular/core","name":"NgZone","line":82,"character":23},{"__symbolic":"reference","name":"ɵk"},{"__symbolic":"reference","name":"ɵl"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"ngAfterContentInit":[{"__symbolic":"method"}],"refresh":[{"__symbolic":"method"}],"scrollInto":[{"__symbolic":"method"}],"scrollIntoTag":[{"__symbolic":"method"}],"_handleScroll":[{"__symbolic":"method"}],"_handleItemsChange":[{"__symbolic":"method"}],"_updateItems":[{"__symbolic":"method"}],"_fireScrollToEnd":[{"__symbolic":"method"}],"_calculateDimensions":[{"__symbolic":"method"}],"_handleDocumentResize":[{"__symbolic":"method"}],"_scrollToMarked":[{"__symbolic":"method"}],"_handleDropdownPosition":[{"__symbolic":"method"}],"_calculateCurrentPosition":[{"__symbolic":"method"}],"_appendDropdown":[{"__symbolic":"method"}],"_updateAppendedDropdownPosition":[{"__symbolic":"method"}],"_whenContentReady":[{"__symbolic":"method"}]}},"ɵk":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":18,"character":1}}],"members":{"calculateItems":[{"__symbolic":"method"}],"calculateDimensions":[{"__symbolic":"method"}]}},"ɵl":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":2,"character":1}}],"members":{"requestAnimationFrame":[{"__symbolic":"method"}]}},"ɵm":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":10,"character":1},"arguments":[{"selector":"ng-option","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":12,"character":21},"member":"OnPush"},"template":"<ng-content></ng-content>"}]}],"members":{"value":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":17,"character":5}}]}],"disabled":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":18,"character":5}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":25,"character":35}]}],"ngOnChanges":[{"__symbolic":"method"}],"_isDisabled":[{"__symbolic":"method"}]}},"ɵn":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":2,"character":1}}],"members":{"warn":[{"__symbolic":"method"}]}},"ɵo":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":12,"character":1},"arguments":[{"selector":"[ngOptionHighlight]"}]}],"members":{"term":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":17,"character":5},"arguments":["ngOptionHighlight"]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":23,"character":28},{"__symbolic":"reference","module":"@angular/core","name":"Renderer2","line":24,"character":26}]}],"ngOnChanges":[{"__symbolic":"method"}],"ngAfterViewInit":[{"__symbolic":"method"}],"_highlightLabelWithSearchTerm":[{"__symbolic":"method"}],"_setInnerHtml":[{"__symbolic":"method"}]}}},"origins":{"NgSelectComponent":"./ng-select/ng-select.component","NG_SELECT_DEFAULT_CONFIG":"./ng-select/ng-select.component","NgSelectModule":"./ng-select/ng-select.module","NgOption":"./ng-select/ng-select.types","NgSelectConfig":"./ng-select/ng-select.types","ɵa":"./ng-select/ng-templates.directive","ɵb":"./ng-select/ng-templates.directive","ɵc":"./ng-select/ng-templates.directive","ɵd":"./ng-select/ng-templates.directive","ɵe":"./ng-select/ng-templates.directive","ɵf":"./ng-select/ng-templates.directive","ɵg":"./ng-select/ng-templates.directive","ɵh":"./ng-select/ng-templates.directive","ɵi":"./ng-select/ng-templates.directive","ɵj":"./ng-select/ng-dropdown-panel.component","ɵk":"./ng-select/virtual-scroll.service","ɵl":"./ng-select/window.service","ɵm":"./ng-select/ng-option.component","ɵn":"./ng-select/console.service","ɵo":"./ng-select/ng-option-highlight.directive"},"importAs":"@ng-select/ng-select"}
{"__symbolic":"module","version":4,"metadata":{"NgSelectComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":54,"character":1},"arguments":[{"selector":"ng-select","template":"<div (mousedown)=\"searchable ? open() : toggle()\" [class.ng-has-value]=\"hasValue\" class=\"ng-select-container\">\n <div class=\"ng-value-container\">\n <div class=\"ng-placeholder\">{{placeholder}}</div>\n\n <ng-container *ngIf=\"!multiLabelTemplate && selectedItems.length > 0\">\n <div [class.disabled]=\"item.disabled\" class=\"ng-value\" *ngFor=\"let item of selectedItems\">\n <ng-template #defaultLabelTemplate>\n <span class=\"ng-value-icon left\" (click)=\"unselect(item); $event.stopPropagation()\" aria-hidden=\"true\">×</span>\n <span class=\"ng-value-label\">{{item.label}}</span>\n </ng-template>\n \n <ng-template\n [ngTemplateOutlet]=\"labelTemplate || defaultLabelTemplate\"\n [ngTemplateOutletContext]=\"{ item: item.value, clear: clearItem, label: item.label }\">\n </ng-template>\n </div>\n </ng-container>\n\n <ng-template *ngIf=\"multiLabelTemplate && selectedValues.length > 0\"\n [ngTemplateOutlet]=\"multiLabelTemplate\"\n [ngTemplateOutletContext]=\"{ items: selectedValues, clear: clearItem }\">\n </ng-template>\n\n <div *ngIf=\"!isDisabled\" class=\"ng-input\">\n <div *ngIf=\"!searchable\"\n #filterInput\n tabindex=\"0\"\n (focus)=\"onInputFocus()\"\n (blur)=\"onInputBlur()\"\n role=\"combobox\"\n [attr.aria-expanded]=\"isOpen\"\n [attr.aria-owns]=\"isOpen ? dropdownId : null\"\n [attr.aria-activedescendant]=\"isOpen ? itemsList?.markedItem?.htmlId : null\">\n </div>\n <input #filterInput\n *ngIf=\"searchable\"\n type=\"text\"\n autocomplete=\"off\"\n [value]=\"filterValue\"\n (input)=\"filter(filterInput.value)\"\n (focus)=\"onInputFocus()\"\n (blur)=\"onInputBlur()\"\n (change)=\"$event.stopPropagation()\"\n role=\"combobox\"\n [attr.aria-expanded]=\"isOpen\"\n [attr.aria-owns]=\"isOpen ? dropdownId : null\"\n [attr.aria-activedescendant]=\"isOpen ? itemsList?.markedItem?.htmlId : null\">\n </div>\n </div>\n\n <div class=\"ng-spinner-loader\" *ngIf=\"isLoading\"></div>\n\n <span *ngIf=\"showClear()\" (click)=\"handleClearClick($event)\" class=\"ng-clear-wrapper\" title=\"{{clearAllText}}\">\n <span class=\"ng-clear\" aria-hidden=\"true\">×</span>\n </span>\n\n <span (mousedown)=\"handleArrowClick($event)\" class=\"ng-arrow-wrapper\">\n <span class=\"ng-arrow\"></span>\n </span>\n</div>\n\n<div class=\"ng-overlay-container\" *ngIf=\"isOpen\">\n <div class=\"ng-overlay\" (click)=\"close()\" ></div>\n</div>\n\n<ng-dropdown-panel *ngIf=\"isOpen\"\n class=\"ng-dropdown-panel\"\n [virtualScroll]=\"virtualScroll\"\n [bufferAmount]=\"bufferAmount\"\n [appendTo]=\"appendTo\"\n [position]=\"dropdownPosition\"\n [headerTemplate]=\"headerTemplate\"\n [footerTemplate]=\"footerTemplate\"\n [items]=\"itemsList.filteredItems\"\n (update)=\"viewPortItems = $event\"\n (scrollToEnd)=\"scrollToEnd.emit($event)\"\n [ngClass]=\"{'multiple': multiple}\"\n [id]=\"dropdownId\">\n \n <ng-container>\n <div class=\"ng-option\" [attr.role]=\"item.hasChildren ? 'group' : 'option'\" (click)=\"toggleItem(item)\" (mousedown)=\"$event.preventDefault()\" (mouseover)=\"onItemHover(item)\"\n *ngFor=\"let item of viewPortItems\"\n [class.ng-option-disabled]=\"item.disabled\"\n [class.ng-option-selected]=\"item.selected\"\n [class.ng-optgroup]=\"item.hasChildren\"\n [class.ng-option]=\"!item.hasChildren\"\n [class.ng-option-child]=\"!!item.parent\"\n [class.ng-option-marked]=\"item === itemsList.markedItem\"\n id=\"{{item?.htmlId || null}}\">\n\n <ng-template #defaultOptionTemplate>\n <span class=\"ng-option-label\">{{item.label}}</span>\n </ng-template>\n\n <ng-template\n [ngTemplateOutlet]=\"item.hasChildren ? (optgroupTemplate || defaultOptionTemplate) : (optionTemplate || defaultOptionTemplate)\"\n [ngTemplateOutletContext]=\"{ item: item.value, index: item.index, searchTerm: filterValue }\">\n </ng-template>\n </div>\n\n <div class=\"ng-option\" [class.ng-option-marked]=\"!itemsList.markedItem\" (mouseover)=\"itemsList.unmarkItem()\" role=\"option\" (click)=\"selectTag()\" *ngIf=\"showAddTag()\">\n <span><span class=\"ng-tag-label\">{{addTagText}}</span>\"{{filterValue}}\"</span>\n </div>\n </ng-container>\n\n <ng-container *ngIf=\"showNoItemsFound()\">\n <ng-template #defaultNotFoundTemplate>\n <div class=\"ng-option ng-option-disabled\">{{notFoundText}}</div>\n </ng-template>\n \n <ng-template\n [ngTemplateOutlet]=\"notFoundTemplate || defaultNotFoundTemplate\"\n [ngTemplateOutletContext]=\"{ searchTerm: filterValue }\">\n </ng-template>\n </ng-container>\n\n <ng-container *ngIf=\"showTypeToSearch()\">\n <ng-template #defaultTypeToSearchTemplate>\n <div class=\"ng-option ng-option-disabled\">{{typeToSearchText}}</div>\n </ng-template>\n \n <ng-template\n [ngTemplateOutlet]=\"typeToSearchTemplate || defaultTypeToSearchTemplate\">\n </ng-template>\n </ng-container>\n \n <ng-container *ngIf=\"isLoading && itemsList.filteredItems.length === 0\">\n <ng-template #defaultLoadingTextTemplate>\n <div class=\"ng-option ng-option-disabled\">{{loadingText}}</div>\n </ng-template>\n \n <ng-template\n [ngTemplateOutlet]=\"loadingTextTemplate || defaultLoadingTextTemplate\"\n [ngTemplateOutletContext]=\"{ searchTerm: filterValue }\">\n </ng-template>\n </ng-container>\n\n</ng-dropdown-panel>\n","styles":[".ng-select{position:relative;display:block;-webkit-box-sizing:border-box;box-sizing:border-box}.ng-select div,.ng-select input,.ng-select span{-webkit-box-sizing:border-box;box-sizing:border-box}.ng-select [hidden]{display:none}.ng-select.ng-select-searchable .ng-select-container .ng-value-container .ng-input{opacity:1}.ng-select.ng-select-opened .ng-select-container{z-index:1001}.ng-select.ng-select-disabled .ng-select-container .ng-value-container .ng-placeholder,.ng-select.ng-select-disabled .ng-select-container .ng-value-container .ng-value{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.ng-select.ng-select-disabled .ng-arrow-wrapper{cursor:default}.ng-select.ng-select-filtered .ng-placeholder{display:none}.ng-select .ng-select-container{color:#333;cursor:default;display:-webkit-box;display:-ms-flexbox;display:flex;outline:0;overflow:hidden;position:relative;width:100%}.ng-select .ng-select-container .ng-value-container{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-ms-flex:1;flex:1}.ng-select .ng-select-container .ng-value-container .ng-input{opacity:0}.ng-select .ng-select-container .ng-value-container .ng-input>input{-webkit-box-sizing:content-box;box-sizing:content-box;background:none;border:0;-webkit-box-shadow:none;box-shadow:none;outline:0;cursor:default;width:100%}.ng-select .ng-select-container .ng-value-container .ng-input>input::-ms-clear{display:none}.ng-select.ng-select-single.ng-select-filtered .ng-select-container .ng-value-container .ng-value{visibility:hidden}.ng-select.ng-select-single .ng-select-container .ng-value-container,.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-value{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-value .ng-value-icon{display:none}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-input{position:absolute;left:0;width:100%}.ng-select.ng-select-multiple.ng-select-disabled>.ng-select-container .ng-value-container .ng-value .ng-value-icon{display:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container{-ms-flex-wrap:wrap;flex-wrap:wrap}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{white-space:nowrap}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.disabled .ng-value-icon{display:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon{cursor:pointer}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-input{-webkit-box-flex:1;-ms-flex:1;flex:1;z-index:2}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{position:absolute;z-index:1}.ng-select .ng-clear-wrapper{cursor:pointer;position:relative;width:17px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ng-select .ng-clear-wrapper .ng-clear{display:inline-block;font-size:18px;line-height:1}.ng-select .ng-spinner-loader{border-radius:50%;width:17px;height:17px;margin-right:5px;font-size:10px;position:relative;text-indent:-9999em;border-top:2px solid rgba(66,66,66,.2);border-right:2px solid rgba(66,66,66,.2);border-bottom:2px solid rgba(66,66,66,.2);border-left:2px solid #424242;-webkit-transform:translateZ(0);transform:translateZ(0);-webkit-animation:.8s linear infinite load8;animation:.8s linear infinite load8}.ng-select .ng-spinner-loader:after{border-radius:50%;width:17px;height:17px}@-webkit-keyframes load8{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes load8{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.ng-select .ng-arrow-wrapper{cursor:pointer;position:relative;text-align:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ng-select .ng-arrow-wrapper .ng-arrow{display:inline-block;height:0;width:0;position:relative}.ng-select .ng-overlay-container{pointer-events:none;top:0;left:0;height:100%;width:100%;position:fixed;z-index:1000}.ng-select .ng-overlay-container .ng-overlay{top:0;bottom:0;left:0;right:0;opacity:0;position:absolute;pointer-events:auto;z-index:1000}"],"providers":[{"provide":{"__symbolic":"reference","module":"@angular/forms","name":"NG_VALUE_ACCESSOR","line":197,"character":17},"useExisting":{"__symbolic":"reference","name":"NgSelectComponent"},"multi":true}],"encapsulation":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewEncapsulation","line":201,"character":19},"member":"None"},"changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":202,"character":21},"member":"OnPush"},"host":{"role":"listbox","class":"ng-select","[class.ng-select-single]":"!multiple"}}]}],"members":{"items":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":212,"character":5}}]}],"bindLabel":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":213,"character":5}}]}],"bindValue":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":214,"character":5}}]}],"clearable":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":215,"character":5}}]}],"markFirst":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":216,"character":5}}]}],"placeholder":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":217,"character":5}}]}],"notFoundText":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":218,"character":5}}]}],"typeToSearchText":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":219,"character":5}}]}],"addTagText":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":220,"character":5}}]}],"loadingText":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":221,"character":5}}]}],"clearAllText":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":222,"character":5}}]}],"dropdownPosition":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":223,"character":5}}]}],"appendTo":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":224,"character":5}}]}],"loading":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":225,"character":5}}]}],"closeOnSelect":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":226,"character":5}}]}],"hideSelected":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":227,"character":5}}]}],"selectOnTab":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":228,"character":5}}]}],"maxSelectedItems":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":229,"character":5}}]}],"groupBy":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":230,"character":5}}]}],"bufferAmount":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":231,"character":5}}]}],"virtualScroll":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":232,"character":5}}]}],"selectableGroup":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":233,"character":5}}]}],"searchFn":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":234,"character":5}}]}],"typeahead":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":235,"character":5}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":235,"character":14},"arguments":["class.ng-select-typeahead"]}]}],"multiple":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":236,"character":5}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":236,"character":14},"arguments":["class.ng-select-multiple"]}]}],"addTag":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":237,"character":5}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":237,"character":14},"arguments":["class.ng-select-taggable"]}]}],"searchable":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":238,"character":5}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":238,"character":14},"arguments":["class.ng-select-searchable"]}]}],"compareWith":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":240,"character":5}}]}],"blurEvent":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":250,"character":5},"arguments":["blur"]}]}],"focusEvent":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":251,"character":5},"arguments":["focus"]}]}],"changeEvent":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":252,"character":5},"arguments":["change"]}]}],"openEvent":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":253,"character":5},"arguments":["open"]}]}],"closeEvent":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":254,"character":5},"arguments":["close"]}]}],"searchEvent":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":255,"character":5},"arguments":["search"]}]}],"clearEvent":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":256,"character":5},"arguments":["clear"]}]}],"addEvent":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":257,"character":5},"arguments":["add"]}]}],"removeEvent":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":258,"character":5},"arguments":["remove"]}]}],"scrollToEnd":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":259,"character":5},"arguments":["scrollToEnd"]}]}],"optionTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChild","line":262,"character":5},"arguments":[{"__symbolic":"reference","name":"ɵa"},{"read":{"__symbolic":"reference","module":"@angular/core","name":"TemplateRef","line":262,"character":53}}]}]}],"optgroupTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChild","line":263,"character":5},"arguments":[{"__symbolic":"reference","name":"ɵb"},{"read":{"__symbolic":"reference","module":"@angular/core","name":"TemplateRef","line":263,"character":55}}]}]}],"labelTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChild","line":264,"character":5},"arguments":[{"__symbolic":"reference","name":"ɵc"},{"read":{"__symbolic":"reference","module":"@angular/core","name":"TemplateRef","line":264,"character":52}}]}]}],"multiLabelTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChild","line":265,"character":5},"arguments":[{"__symbolic":"reference","name":"ɵd"},{"read":{"__symbolic":"reference","module":"@angular/core","name":"TemplateRef","line":265,"character":57}}]}]}],"headerTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChild","line":266,"character":5},"arguments":[{"__symbolic":"reference","name":"ɵe"},{"read":{"__symbolic":"reference","module":"@angular/core","name":"TemplateRef","line":266,"character":53}}]}]}],"footerTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChild","line":267,"character":5},"arguments":[{"__symbolic":"reference","name":"ɵf"},{"read":{"__symbolic":"reference","module":"@angular/core","name":"TemplateRef","line":267,"character":53}}]}]}],"notFoundTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChild","line":268,"character":5},"arguments":[{"__symbolic":"reference","name":"ɵg"},{"read":{"__symbolic":"reference","module":"@angular/core","name":"TemplateRef","line":268,"character":55}}]}]}],"typeToSearchTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChild","line":269,"character":5},"arguments":[{"__symbolic":"reference","name":"ɵh"},{"read":{"__symbolic":"reference","module":"@angular/core","name":"TemplateRef","line":269,"character":59}}]}]}],"loadingTextTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChild","line":270,"character":5},"arguments":[{"__symbolic":"reference","name":"ɵi"},{"read":{"__symbolic":"reference","module":"@angular/core","name":"TemplateRef","line":270,"character":58}}]}]}],"dropdownPanel":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":272,"character":5},"arguments":[{"__symbolic":"reference","name":"ɵj"}]}]}],"ngOptions":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ContentChildren","line":273,"character":5},"arguments":[{"__symbolic":"reference","name":"ɵm"},{"descendants":true}]}]}],"filterInput":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":274,"character":5},"arguments":["filterInput"]}]}],"isOpen":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":276,"character":5},"arguments":["class.ng-select-opened"]}]}],"isFocused":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":277,"character":5},"arguments":["class.ng-select-focused"]}]}],"isDisabled":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":278,"character":5},"arguments":["class.ng-select-disabled"]}]}],"filtered":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostBinding","line":279,"character":5},"arguments":["class.ng-select-filtered"]}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":302,"character":17},"arguments":[{"__symbolic":"reference","name":"NG_SELECT_DEFAULT_CONFIG"}]}],null,null,null],"parameters":[{"__symbolic":"reference","name":"NgSelectConfig"},{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectorRef","line":303,"character":21},{"__symbolic":"reference","name":"ɵn"},{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":305,"character":27}]}],"ngOnChanges":[{"__symbolic":"method"}],"ngAfterViewInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"handleKeyDown":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener","line":346,"character":5},"arguments":["keydown",["$event"]]}]}],"handleArrowClick":[{"__symbolic":"method"}],"handleClearClick":[{"__symbolic":"method"}],"clearModel":[{"__symbolic":"method"}],"writeValue":[{"__symbolic":"method"}],"registerOnChange":[{"__symbolic":"method"}],"registerOnTouched":[{"__symbolic":"method"}],"setDisabledState":[{"__symbolic":"method"}],"toggle":[{"__symbolic":"method"}],"open":[{"__symbolic":"method"}],"close":[{"__symbolic":"method"}],"toggleItem":[{"__symbolic":"method"}],"select":[{"__symbolic":"method"}],"focus":[{"__symbolic":"method"}],"unselect":[{"__symbolic":"method"}],"selectTag":[{"__symbolic":"method"}],"showClear":[{"__symbolic":"method"}],"showAddTag":[{"__symbolic":"method"}],"showNoItemsFound":[{"__symbolic":"method"}],"showTypeToSearch":[{"__symbolic":"method"}],"filter":[{"__symbolic":"method"}],"onInputFocus":[{"__symbolic":"method"}],"onInputBlur":[{"__symbolic":"method"}],"onItemHover":[{"__symbolic":"method"}],"detectChanges":[{"__symbolic":"method"}],"_setItems":[{"__symbolic":"method"}],"_setItemsFromNgOptions":[{"__symbolic":"method"}],"_isValidWriteValue":[{"__symbolic":"method"}],"_handleWriteValue":[{"__symbolic":"method"}],"_updateNgModel":[{"__symbolic":"method"}],"_clearSearch":[{"__symbolic":"method"}],"_scrollToMarked":[{"__symbolic":"method"}],"_scrollToTag":[{"__symbolic":"method"}],"_handleTab":[{"__symbolic":"method"}],"_handleEnter":[{"__symbolic":"method"}],"_handleSpace":[{"__symbolic":"method"}],"_handleArrowDown":[{"__symbolic":"method"}],"_handleArrowUp":[{"__symbolic":"method"}],"nextItemIsTag":[{"__symbolic":"method"}],"_handleBackspace":[{"__symbolic":"method"}],"_mergeGlobalConfig":[{"__symbolic":"method"}]}},"NG_SELECT_DEFAULT_CONFIG":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":49,"character":44},"arguments":["ng-select-default-options"]},"NgSelectModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":21,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"ɵj"},{"__symbolic":"reference","name":"ɵm"},{"__symbolic":"reference","name":"NgSelectComponent"},{"__symbolic":"reference","name":"ɵo"},{"__symbolic":"reference","name":"ɵb"},{"__symbolic":"reference","name":"ɵa"},{"__symbolic":"reference","name":"ɵc"},{"__symbolic":"reference","name":"ɵd"},{"__symbolic":"reference","name":"ɵe"},{"__symbolic":"reference","name":"ɵf"},{"__symbolic":"reference","name":"ɵg"},{"__symbolic":"reference","name":"ɵh"},{"__symbolic":"reference","name":"ɵi"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":38,"character":8}],"exports":[{"__symbolic":"reference","name":"NgSelectComponent"},{"__symbolic":"reference","name":"ɵm"},{"__symbolic":"reference","name":"ɵo"},{"__symbolic":"reference","name":"ɵb"},{"__symbolic":"reference","name":"ɵa"},{"__symbolic":"reference","name":"ɵc"},{"__symbolic":"reference","name":"ɵd"},{"__symbolic":"reference","name":"ɵe"},{"__symbolic":"reference","name":"ɵf"},{"__symbolic":"reference","name":"ɵg"},{"__symbolic":"reference","name":"ɵh"},{"__symbolic":"reference","name":"ɵi"}],"providers":[{"__symbolic":"reference","name":"ɵn"},{"__symbolic":"reference","name":"ɵl"},{"__symbolic":"reference","name":"ɵk"},{"provide":{"__symbolic":"reference","name":"NG_SELECT_DEFAULT_CONFIG"},"useValue":{"notFoundText":"No items found","typeToSearchText":"Type to search","addTagText":"Add item","loadingText":"Loading...","clearAllText":"Clear all","disableVirtualScroll":false}}]}]}],"members":{}},"NgOption":{"__symbolic":"interface"},"NgSelectConfig":{"__symbolic":"interface"},"ɵa":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":2,"character":1},"arguments":[{"selector":"[ng-option-tmp]"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"TemplateRef","module":"@angular/core","arguments":[{"__symbolic":"reference","name":"any"}]}]}]}},"ɵb":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":8,"character":1},"arguments":[{"selector":"[ng-optgroup-tmp]"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"TemplateRef","module":"@angular/core","arguments":[{"__symbolic":"reference","name":"any"}]}]}]}},"ɵc":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":14,"character":1},"arguments":[{"selector":"[ng-label-tmp]"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"TemplateRef","module":"@angular/core","arguments":[{"__symbolic":"reference","name":"any"}]}]}]}},"ɵd":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":20,"character":1},"arguments":[{"selector":"[ng-multi-label-tmp]"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"TemplateRef","module":"@angular/core","arguments":[{"__symbolic":"reference","name":"any"}]}]}]}},"ɵe":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":26,"character":1},"arguments":[{"selector":"[ng-header-tmp]"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"TemplateRef","module":"@angular/core","arguments":[{"__symbolic":"reference","name":"any"}]}]}]}},"ɵf":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":32,"character":1},"arguments":[{"selector":"[ng-footer-tmp]"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"TemplateRef","module":"@angular/core","arguments":[{"__symbolic":"reference","name":"any"}]}]}]}},"ɵg":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":38,"character":1},"arguments":[{"selector":"[ng-notfound-tmp]"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"TemplateRef","module":"@angular/core","arguments":[{"__symbolic":"reference","name":"any"}]}]}]}},"ɵh":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":44,"character":1},"arguments":[{"selector":"[ng-typetosearch-tmp]"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"TemplateRef","module":"@angular/core","arguments":[{"__symbolic":"reference","name":"any"}]}]}]}},"ɵi":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":50,"character":1},"arguments":[{"selector":"[ng-loadingtext-tmp]"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"TemplateRef","module":"@angular/core","arguments":[{"__symbolic":"reference","name":"any"}]}]}]}},"ɵj":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":30,"character":1},"arguments":[{"changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":31,"character":21},"member":"OnPush"},"encapsulation":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewEncapsulation","line":32,"character":19},"member":"None"},"selector":"ng-dropdown-panel","template":"\n <div *ngIf=\"headerTemplate\" class=\"ng-dropdown-header\" ngProjectAs=\"header\" header>\n <ng-container [ngTemplateOutlet]=\"headerTemplate\"></ng-container>\n </div>\n <div #scroll class=\"ng-dropdown-panel-items scroll-host\">\n <div #padding [class.total-padding]=\"virtualScroll\"></div>\n <div #content [class.scrollable-content]=\"virtualScroll && items.length > 0\">\n <ng-content></ng-content>\n </div>\n </div>\n <div *ngIf=\"footerTemplate\" class=\"ng-dropdown-footer\" ngProjectAs=\"footer\" footer>\n <ng-container [ngTemplateOutlet]=\"footerTemplate\"></ng-container>\n </div>\n ","styles":[".ng-dropdown-panel{-webkit-box-sizing:border-box;box-sizing:border-box;position:absolute;opacity:0;width:100%;z-index:1050;-webkit-overflow-scrolling:touch}.ng-dropdown-panel .ng-dropdown-panel-items{display:block;height:auto;-webkit-box-sizing:border-box;box-sizing:border-box;max-height:240px;overflow-y:auto}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option{-webkit-box-sizing:border-box;box-sizing:border-box;cursor:pointer;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .highlighted{font-weight:700;text-decoration:underline}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.disabled{cursor:default}.ng-dropdown-panel .scroll-host{overflow:hidden;overflow-y:auto;position:relative;display:block;-webkit-overflow-scrolling:touch}.ng-dropdown-panel .scrollable-content{top:0;left:0;width:100%;height:100%;position:absolute}.ng-dropdown-panel .total-padding{width:1px;opacity:0}"]}]}],"members":{"items":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":52,"character":5}}]}],"position":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":53,"character":5}}]}],"appendTo":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":54,"character":5}}]}],"bufferAmount":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":55,"character":5}}]}],"virtualScroll":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":56,"character":5}}]}],"headerTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":57,"character":5}}]}],"footerTemplate":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":58,"character":5}}]}],"update":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":60,"character":5}}]}],"scrollToEnd":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":61,"character":5}}]}],"contentElementRef":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":63,"character":5},"arguments":["content",{"read":{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":63,"character":34}}]}]}],"scrollElementRef":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":64,"character":5},"arguments":["scroll",{"read":{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":64,"character":33}}]}]}],"paddingElementRef":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":65,"character":5},"arguments":["padding",{"read":{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":65,"character":34}}]}]}],"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":79,"character":9},"arguments":[{"__symbolic":"reference","name":"NgSelectComponent"}]}],null,null,null,null,null],"parameters":[{"__symbolic":"reference","name":"NgSelectComponent"},{"__symbolic":"reference","module":"@angular/core","name":"Renderer2","line":80,"character":27},{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":81,"character":29},{"__symbolic":"reference","module":"@angular/core","name":"NgZone","line":82,"character":23},{"__symbolic":"reference","name":"ɵk"},{"__symbolic":"reference","name":"ɵl"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"ngAfterContentInit":[{"__symbolic":"method"}],"refresh":[{"__symbolic":"method"}],"scrollInto":[{"__symbolic":"method"}],"scrollIntoTag":[{"__symbolic":"method"}],"_handleScroll":[{"__symbolic":"method"}],"_handleItemsChange":[{"__symbolic":"method"}],"_updateItems":[{"__symbolic":"method"}],"_fireScrollToEnd":[{"__symbolic":"method"}],"_calculateDimensions":[{"__symbolic":"method"}],"_handleDocumentResize":[{"__symbolic":"method"}],"_scrollToMarked":[{"__symbolic":"method"}],"_handleDropdownPosition":[{"__symbolic":"method"}],"_calculateCurrentPosition":[{"__symbolic":"method"}],"_appendDropdown":[{"__symbolic":"method"}],"_updateAppendedDropdownPosition":[{"__symbolic":"method"}],"_whenContentReady":[{"__symbolic":"method"}]}},"ɵk":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":18,"character":1}}],"members":{"calculateItems":[{"__symbolic":"method"}],"calculateDimensions":[{"__symbolic":"method"}]}},"ɵl":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":2,"character":1}}],"members":{"requestAnimationFrame":[{"__symbolic":"method"}]}},"ɵm":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":10,"character":1},"arguments":[{"selector":"ng-option","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":12,"character":21},"member":"OnPush"},"template":"<ng-content></ng-content>"}]}],"members":{"value":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":17,"character":5}}]}],"disabled":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":18,"character":5}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":25,"character":35}]}],"ngOnChanges":[{"__symbolic":"method"}],"_isDisabled":[{"__symbolic":"method"}]}},"ɵn":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":2,"character":1}}],"members":{"warn":[{"__symbolic":"method"}]}},"ɵo":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":12,"character":1},"arguments":[{"selector":"[ngOptionHighlight]"}]}],"members":{"term":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":17,"character":5},"arguments":["ngOptionHighlight"]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":23,"character":28},{"__symbolic":"reference","module":"@angular/core","name":"Renderer2","line":24,"character":26}]}],"ngOnChanges":[{"__symbolic":"method"}],"ngAfterViewInit":[{"__symbolic":"method"}],"_highlightLabelWithSearchTerm":[{"__symbolic":"method"}],"_setInnerHtml":[{"__symbolic":"method"}]}}},"origins":{"NgSelectComponent":"./ng-select/ng-select.component","NG_SELECT_DEFAULT_CONFIG":"./ng-select/ng-select.component","NgSelectModule":"./ng-select/ng-select.module","NgOption":"./ng-select/ng-select.types","NgSelectConfig":"./ng-select/ng-select.types","ɵa":"./ng-select/ng-templates.directive","ɵb":"./ng-select/ng-templates.directive","ɵc":"./ng-select/ng-templates.directive","ɵd":"./ng-select/ng-templates.directive","ɵe":"./ng-select/ng-templates.directive","ɵf":"./ng-select/ng-templates.directive","ɵg":"./ng-select/ng-templates.directive","ɵh":"./ng-select/ng-templates.directive","ɵi":"./ng-select/ng-templates.directive","ɵj":"./ng-select/ng-dropdown-panel.component","ɵk":"./ng-select/virtual-scroll.service","ɵl":"./ng-select/window.service","ɵm":"./ng-select/ng-option.component","ɵn":"./ng-select/console.service","ɵo":"./ng-select/ng-option-highlight.directive"},"importAs":"@ng-select/ng-select"}

@@ -109,2 +109,3 @@ import { Subject } from 'rxjs/Subject';

select(item: NgOption): void;
focus(): void;
unselect(item: NgOption): void;

@@ -114,3 +115,2 @@ selectTag(): void;

showAddTag(): boolean;
showFilter(): boolean;
showNoItemsFound(): boolean;

@@ -123,3 +123,2 @@ showTypeToSearch(): boolean;

detectChanges(): void;
focusSearchInput(): void;
private _setItems(items);

@@ -126,0 +125,0 @@ private _setItemsFromNgOptions();

{
"$schema": "../node_modules/ng-packagr/package.schema.json",
"name": "@ng-select/ng-select",
"version": "0.36.2",
"version": "1.0.1-rc.0",
"description": "Angular ng-select - All in One UI Select, Multiselect and Autocomplete",

@@ -6,0 +6,0 @@ "author": "@ng-select/ng-select",

@@ -20,10 +20,5 @@ [![npm version](https://badge.fury.io/js/%40ng-select%2Fng-select.svg)](https://badge.fury.io/js/%40ng-select%2Fng-select)

* [Getting started](#getting-started)
* [Roadmap](#roadmap)
* [API](#api)
* [Change detection](#change-detection)
* [Custom styles](#custom-styles)
* [Examples](#examples)
* [Basic example](#basic-example)
* [Flexible autocomplete](#flexible-autocomplete)
* [Custom display templates](#custom-display-templates)
* [Validation state](#validation-state)

@@ -35,14 +30,20 @@ * [Contributing](#contributing)

## Features
- [x] Custom model bindings to property or object
- [x] Custom binding to property or object
- [x] Custom option, label, header and footer templates
- [x] Virtual Scroll support with large data sets (>5000 items).
- [x] Infinite scroll
- [x] Keyboard navigation
- [x] Multiselect
- [x] Flexible autocomplete with client/server filtering
- [x] Custom search
- [x] Custom tags
- [x] Append to body
- [x] Append to
- [x] Group items
- [x] Output events
- [x] Accessibility
- [x] Good base functionality test coverage
- [x] Themes
## Warning
Library is under active development and may have API breaking changes until stable 1.0.0 release or subsequent major versions after 1.0.0.
Library is under active development and may have API breaking changes for subsequent major versions after 1.0.0.

@@ -106,22 +107,4 @@ ## Getting started

## Roadmap
- [x] Custom binding to property or object
- [x] Custom option and label templates
- [x] Virtual Scroll support with large data sets (>5000 items).
- [x] Filter data by display text
- [x] Filter data by custom filter function
- [x] Expose useful events like blur, change, focus, close, open ...
- [x] Correct keyboard events behaviour
- [x] Integration app generated with angular-cli
- [x] Good base functionality test coverage
- [x] Multiselect support
- [x] Autocomplete
- [x] Custom tags
- [x] Themes
- [x] Items grouping
- [ ] Accessibility
- [ ] Many more
## API
### Inputs
| Input | Type | Default | Required | Description |

@@ -135,9 +118,9 @@ | ------------- | ------------- | ------------- | ------------- | ------------- |

| closeOnSelect | `boolean` | true | no | Whether to close the menu when a value is selected |
| clearAllText | `string` | `Clear all` | no | Set custom text for clear all icon title |
| [clearable] | `boolean` | `true` | no | Allow to clear selected value. Default `true`|
| clearAllText | `string` | `Clear all` | no | Set custom text for clear all icon title |
| [compareWith] | `(a: any, b: any) => boolean` | `(a, b) => a === b` | no | A function to compare the option values with the selected values |
| dropdownPosition | `bottom` \| `top` \| `auto` | `auto` | no | Set the dropdown position on open |
| [groupBy] | `string` \| `Function` | null | no | Allow to group items by key or function expression |
| [selectableGroup] | `boolean` | false | no | Allow to select group when groupBy is used |
| [items] | `Array<NgOption>` | `[]` | yes | Items array |
| [compareWith] | `(a: any, b: any) => boolean` | `(a, b) => a === b` | no | A function to compare the option values with the selected values |
| [items] | `Array<any>` | `[]` | yes | Items array |
| loading | `boolean` | `-` | no | You can set the loading state from the outside (e.g. async items loading) |

@@ -158,2 +141,4 @@ | loadingText | `string` | `Loading...` | no | Set custom text when for loading items |

### Outputs
| Output | Description |

@@ -171,2 +156,15 @@ | ------------- | ------------- |

### Methods
Name | Description |
| ------------- | ------------- |
| open | Opens the select dropdown panel |
| close | Closes the select dropdown panel |
| focus | Focuses the select element |
### Other
Name | Type | Description |
| ------------- | ------------- | ------------- |
| [ngOptionHighlight] | directive | Highlights search term in option. Accepts search term. Should be used on option element. |
## Change Detection

@@ -192,3 +190,3 @@ Ng-select component implements `OnPush` change detection which means the dirty checking checks for immutable

## Custom styles
If you are not happy with default styles you can easily override them with increased selector specificity. E.g.
If you are not happy with default styles you can easily override them with increased selector specificity or creating your own theme. E.g.

@@ -205,3 +203,3 @@ ```html

}
.ng-select.custom .ng-control {
.ng-select.custom .ng-select-container {
min-height: 0px;

@@ -212,151 +210,7 @@ border-radius: 0;

## Examples
### Basic example
This example in [Plunkr](https://plnkr.co/edit/hjZX6W?p=preview)
```js
@Component({
selector: 'cities-page',
template: `
<label>City</label>
<ng-select [items]="cities"
bindLabel="name"
bindValue="id"
placeholder="Select city"
[(ngModel)]="selectedCityId">
</ng-select>
<p>
Selected city ID: {{selectedCityId}}
</p>
`
})
export class CitiesPageComponent {
cities = [
{id: 1, name: 'Vilnius'},
{id: 2, name: 'Kaunas'},
{id: 3, name: 'Pabradė'}
];
selectedCityId: any;
}
```
### Flexible autocomplete
This example in [Plunkr](https://plnkr.co/edit/KFpvA9?p=preview)
In case of autocomplete you can get full control by creating simple `EventEmmiter` and passing it as an input to ng-select. When you type text, ng-select will fire events to EventEmmiter to which you can subscribe and control bunch of things like debounce, http cancellation and so on.
```js
import { Component, ChangeDetectionStrategy, EventEmitter } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { Observable } from 'rxjs/Observable';
import { catchError, map, debounceTime, switchMap } from 'rxjs/operators';
import { of } from 'rxjs/observable/of';
import { ChangeDetectorRef } from '@angular/core';
@Component({
selector: 'select-autocomplete',
template: `
<label>Search with autocomplete in Github accounts</label>
<ng-select [items]="items"
bindLabel="login"
placeholder="Type to search"
[typeahead]="typeahead"
[(ngModel)]="githubAccount">
<ng-template ng-option-tmp let-item="item">
<img [src]="item.avatar_url" width="20px" height="20px"> {{item.login}}
</ng-template>
</ng-select>
<p>
Selected github account:
<span *ngIf="githubAccount">
<img [src]="githubAccount.avatar_url" width="20px" height="20px"> {{githubAccount.login}}
</span>
</p>
`
})
export class SelectAutocompleteComponent {
githubAccount: any;
items = [];
typeahead = new EventEmitter<string>();
constructor(private http: HttpClient, private cd: ChangeDetectorRef) {
this.typeahead
.pipe(
debounceTime(200),
switchMap(term => this.loadGithubUsers(term))
)
.subscribe(items => {
this.items = items;
this.cd.markForCheck();
}, (err) => {
console.log('error', err);
this.items = [];
this.cd.markForCheck();
});
}
loadGithubUsers(term: string): Observable<any[]> {
return this.http.get<any>(`https://api.github.com/search/users?q=${term}`).pipe(
catchError(() => of(({items: []}))),
map(rsp => rsp.items),
);
}
}
```
### Custom display templates
This example in [Plunkr](https://plnkr.co/edit/csZbjH?p=preview)
To customize look of ng-select you can use `ng-template` with `ng-label-tmp`, `ng-option-tmp`, `ng-header-tmp`, `ng-footer-tmp` directives applied to it.
```js
import {Component, NgModule} from '@angular/core';
import {BrowserModule} from '@angular/platform-browser';
import {FormsModule} from '@angular/forms';
import {NgSelectModule} from '@ng-select/ng-select';
import {HttpClient, HttpClientModule} from '@angular/common/http';
@Component({
selector: 'select-custom-templates',
template: `
<label>Demo for ng-select with custom templates</label>
<ng-select [items]="albums"
[(ngModel)]="selectedAlbumId"
bindLabel="title"
bindValue="id"
placeholder="Select album">
<ng-template ng-header-tmp>
Custom header
</ng-template>
<ng-template ng-label-tmp let-item="item">
<b>({{item.id}})</b> {{item.title}}
</ng-template>
<ng-template ng-option-tmp let-item="item">
<div>Title: {{item.title}}</div>
<small><b>Id:</b> {{item.id}} | <b>UserId:</b> {{item.userId}}</small>
</ng-template>
<ng-template ng-footer-tmp>
Custom footer
</ng-template>
</ng-select>
<p>Selected album ID: {{selectedAlbumId || 'none'}}</p>
`
})
export class SelectCustomTemplatesComponent {
albums = [];
selectedAlbumId = null;
constructor(http: HttpClient) {
http.get<any[]>('https://jsonplaceholder.typicode.com/albums').subscribe(albums => {
this.albums = albums;
});
}
}
```
### Validation state
By default when you use reactive forms validators or template driven forms validators css class `ng-invalid` will be applied on ng-select. You can show errors state by having adding this custom css style
By default when you use reactive forms validators or template driven forms validators css class `ng-invalid` will be applied on ng-select. You can show errors state by adding custom css style
```css
ng-select.ng-invalid.ng-touched .ng-control {
ng-select.ng-invalid.ng-touched .ng-select-container {
border-color: #dc3545;

@@ -367,6 +221,2 @@ box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 0 3px #fde6e8;

### More demos
Visit [demos](https://github.com/ng-select/ng-select/tree/master/demo/app/examples) for more examples.
## Contributing

@@ -373,0 +223,0 @@

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

Sorry, the diff of this file is not supported yet

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