@ng-select/ng-select 2.20.2 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (104) hide show
  1. package/README.md +3 -3
  2. package/bundles/ng-select-ng-select.umd.js +4525 -0
  3. package/bundles/ng-select-ng-select.umd.js.map +1 -0
  4. package/bundles/ng-select-ng-select.umd.min.js +2 -0
  5. package/bundles/ng-select-ng-select.umd.min.js.map +1 -0
  6. package/esm2015/lib/config.service.js +40 -0
  7. package/esm2015/lib/console.service.js +20 -0
  8. package/esm2015/lib/id.js +21 -0
  9. package/esm2015/lib/items-list.js +661 -0
  10. package/esm2015/lib/ng-dropdown-panel.component.js +661 -0
  11. package/esm2015/lib/ng-dropdown-panel.service.js +127 -0
  12. package/esm2015/lib/ng-option.component.js +74 -0
  13. package/esm2015/lib/ng-select.component.js +1384 -0
  14. package/esm2015/lib/ng-select.module.js +57 -0
  15. package/esm2015/lib/ng-select.types.js +48 -0
  16. package/esm2015/{ng-select → lib}/ng-templates.directive.js +2 -3
  17. package/esm2015/lib/search-helper.js +862 -0
  18. package/esm2015/lib/selection-model.js +166 -0
  19. package/esm2015/lib/value-utils.js +33 -0
  20. package/esm2015/ng-select-ng-select.js +15 -0
  21. package/esm2015/public-api.js +11 -0
  22. package/esm5/lib/config.service.js +42 -0
  23. package/esm5/lib/console.service.js +28 -0
  24. package/esm5/lib/id.js +21 -0
  25. package/esm5/lib/items-list.js +888 -0
  26. package/esm5/lib/ng-dropdown-panel.component.js +770 -0
  27. package/esm5/lib/ng-dropdown-panel.service.js +150 -0
  28. package/esm5/lib/ng-option.component.js +86 -0
  29. package/esm5/lib/ng-select.component.js +1637 -0
  30. package/esm5/lib/ng-select.module.js +61 -0
  31. package/esm5/lib/ng-select.types.js +48 -0
  32. package/esm5/{ng-select → lib}/ng-templates.directive.js +2 -3
  33. package/esm5/lib/search-helper.js +862 -0
  34. package/esm5/{ng-select → lib}/selection-model.js +69 -22
  35. package/esm5/lib/value-utils.js +33 -0
  36. package/esm5/ng-select-ng-select.js +15 -0
  37. package/esm5/public-api.js +11 -0
  38. package/fesm2015/ng-select-ng-select.js +3804 -0
  39. package/fesm2015/ng-select-ng-select.js.map +1 -0
  40. package/fesm5/ng-select-ng-select.js +4442 -0
  41. package/fesm5/ng-select-ng-select.js.map +1 -0
  42. package/{ng-select → lib}/config.service.d.ts +0 -0
  43. package/{ng-select → lib}/console.service.d.ts +0 -0
  44. package/{ng-select → lib}/id.d.ts +0 -0
  45. package/{ng-select → lib}/items-list.d.ts +1 -1
  46. package/{ng-select → lib}/ng-dropdown-panel.component.d.ts +0 -0
  47. package/{ng-select → lib}/ng-dropdown-panel.service.d.ts +0 -0
  48. package/{ng-select → lib}/ng-option.component.d.ts +0 -0
  49. package/{ng-select → lib}/ng-select.component.d.ts +9 -9
  50. package/{ng-select → lib}/ng-select.module.d.ts +0 -0
  51. package/{ng-select → lib}/ng-select.types.d.ts +0 -0
  52. package/{ng-select → lib}/ng-templates.directive.d.ts +0 -0
  53. package/{ng-select → lib}/search-helper.d.ts +0 -0
  54. package/{ng-select → lib}/selection-model.d.ts +0 -0
  55. package/{ng-select → lib}/value-utils.d.ts +0 -0
  56. package/ng-select-ng-select.d.ts +10 -0
  57. package/ng-select-ng-select.metadata.json +1 -0
  58. package/package.json +13 -14
  59. package/public-api.d.ts +5 -0
  60. package/scss/material.theme.scss +1 -1
  61. package/themes/material.theme.css +1 -1
  62. package/bundles/ng-select.umd.js +0 -4283
  63. package/bundles/ng-select.umd.js.map +0 -1
  64. package/bundles/ng-select.umd.min.js +0 -2
  65. package/bundles/ng-select.umd.min.js.map +0 -1
  66. package/esm2015/index.js +0 -9
  67. package/esm2015/ng-select/config.service.js +0 -41
  68. package/esm2015/ng-select/console.service.js +0 -21
  69. package/esm2015/ng-select/id.js +0 -17
  70. package/esm2015/ng-select/items-list.js +0 -542
  71. package/esm2015/ng-select/ng-dropdown-panel.component.js +0 -562
  72. package/esm2015/ng-select/ng-dropdown-panel.service.js +0 -121
  73. package/esm2015/ng-select/ng-option-highlight.directive.js +0 -98
  74. package/esm2015/ng-select/ng-option.component.js +0 -71
  75. package/esm2015/ng-select/ng-select.component.js +0 -1214
  76. package/esm2015/ng-select/ng-select.module.js +0 -61
  77. package/esm2015/ng-select/ng-select.types.js +0 -49
  78. package/esm2015/ng-select/search-helper.js +0 -859
  79. package/esm2015/ng-select/selection-model.js +0 -122
  80. package/esm2015/ng-select/value-utils.js +0 -34
  81. package/esm2015/ng-select.js +0 -17
  82. package/esm5/index.js +0 -9
  83. package/esm5/ng-select/config.service.js +0 -43
  84. package/esm5/ng-select/console.service.js +0 -29
  85. package/esm5/ng-select/id.js +0 -17
  86. package/esm5/ng-select/items-list.js +0 -761
  87. package/esm5/ng-select/ng-dropdown-panel.component.js +0 -654
  88. package/esm5/ng-select/ng-dropdown-panel.service.js +0 -144
  89. package/esm5/ng-select/ng-option-highlight.directive.js +0 -113
  90. package/esm5/ng-select/ng-option.component.js +0 -82
  91. package/esm5/ng-select/ng-select.component.js +0 -1430
  92. package/esm5/ng-select/ng-select.module.js +0 -65
  93. package/esm5/ng-select/ng-select.types.js +0 -49
  94. package/esm5/ng-select/search-helper.js +0 -859
  95. package/esm5/ng-select/value-utils.js +0 -34
  96. package/esm5/ng-select.js +0 -17
  97. package/fesm2015/ng-select.js +0 -3559
  98. package/fesm2015/ng-select.js.map +0 -1
  99. package/fesm5/ng-select.js +0 -4145
  100. package/fesm5/ng-select.js.map +0 -1
  101. package/index.d.ts +0 -5
  102. package/ng-select/ng-option-highlight.directive.d.ts +0 -14
  103. package/ng-select.d.ts +0 -11
  104. package/ng-select.metadata.json +0 -1
@@ -1,2 +0,0 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/common"),require("rxjs"),require("rxjs/operators"),require("@angular/forms")):"function"==typeof define&&define.amd?define("@ng-select/ng-select",["exports","@angular/core","@angular/common","rxjs","rxjs/operators","@angular/forms"],t):t((e["ng-select"]=e["ng-select"]||{},e["ng-select"]["ng-select"]={}),e.ng.core,e.ng.common,e.rxjs,e.rxjs.operators,e.ng.forms)}(this,function(e,c,t,p,r,n){"use strict";function I(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,r,s=n.call(e),o=[];try{for(;(void 0===t||0<t--)&&!(i=s.next()).done;)o.push(i.value)}catch(l){r={error:l}}finally{try{i&&!i.done&&(n=s["return"])&&n.call(s)}finally{if(r)throw r.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(){function e(e){this.template=e}return e.decorators=[{type:c.Directive,args:[{selector:"[ng-option-tmp]"}]}],e.ctorParameters=function(){return[{type:c.TemplateRef}]},e}(),s=function(){function e(e){this.template=e}return e.decorators=[{type:c.Directive,args:[{selector:"[ng-optgroup-tmp]"}]}],e.ctorParameters=function(){return[{type:c.TemplateRef}]},e}(),o=function(){function e(e){this.template=e}return e.decorators=[{type:c.Directive,args:[{selector:"[ng-label-tmp]"}]}],e.ctorParameters=function(){return[{type:c.TemplateRef}]},e}(),l=function(){function e(e){this.template=e}return e.decorators=[{type:c.Directive,args:[{selector:"[ng-multi-label-tmp]"}]}],e.ctorParameters=function(){return[{type:c.TemplateRef}]},e}(),a=function(){function e(e){this.template=e}return e.decorators=[{type:c.Directive,args:[{selector:"[ng-header-tmp]"}]}],e.ctorParameters=function(){return[{type:c.TemplateRef}]},e}(),d=function(){function e(e){this.template=e}return e.decorators=[{type:c.Directive,args:[{selector:"[ng-footer-tmp]"}]}],e.ctorParameters=function(){return[{type:c.TemplateRef}]},e}(),u=function(){function e(e){this.template=e}return e.decorators=[{type:c.Directive,args:[{selector:"[ng-notfound-tmp]"}]}],e.ctorParameters=function(){return[{type:c.TemplateRef}]},e}(),h=function(){function e(e){this.template=e}return e.decorators=[{type:c.Directive,args:[{selector:"[ng-typetosearch-tmp]"}]}],e.ctorParameters=function(){return[{type:c.TemplateRef}]},e}(),m=function(){function e(e){this.template=e}return e.decorators=[{type:c.Directive,args:[{selector:"[ng-loadingtext-tmp]"}]}],e.ctorParameters=function(){return[{type:c.TemplateRef}]},e}(),g=function(){function e(e){this.template=e}return e.decorators=[{type:c.Directive,args:[{selector:"[ng-tag-tmp]"}]}],e.ctorParameters=function(){return[{type:c.TemplateRef}]},e}(),_=function(){function e(e){this.template=e}return e.decorators=[{type:c.Directive,args:[{selector:"[ng-loadingspinner-tmp]"}]}],e.ctorParameters=function(){return[{type:c.TemplateRef}]},e}(),v=function(){function e(){}return e.prototype.warn=function(e){console.warn(e)},e.decorators=[{type:c.Injectable,args:[{providedIn:"root"}]}],e.ngInjectableDef=c.defineInjectable({factory:function(){return new e},token:e,providedIn:"root"}),e}();function T(e){return e!==undefined&&null!==e}function b(e){return"object"==typeof e&&T(e)}function w(e){return e instanceof Function}var O={"Ⓐ":"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 S(e){return e.replace(/[^\u0000-\u007E]/g,function(e){return O[e]||e})}function x(){return"axxxxxxxxxxx".replace(/[x]/g,function(e){return(16*Math.random()|0).toString(16)})}var E=function(){function e(e,t){this._ngSelect=e,this._selectionModel=t,this._items=[],this._filteredItems=[],this._markedIndex=-1}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,"markedIndex",{get:function(){return this._markedIndex},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selectedItems",{get:function(){return this._selectionModel.value},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"markedItem",{get:function(){return this._filteredItems[this._markedIndex]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"noItemsToSelect",{get:function(){return this._ngSelect.hideSelected&&this._items.length===this.selectedItems.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maxItemsSelected",{get:function(){return this._ngSelect.multiple&&this._ngSelect.maxSelectedItems<=this.selectedItems.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lastSelectedItem",{get:function(){for(var e=this.selectedItems.length-1;0<=e;e--){var t=this.selectedItems[e];if(!t.disabled)return t}return null},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(e){if(!e.selected&&!this.maxItemsSelected){var t=this._ngSelect.multiple;t||this.clearSelected(),this._selectionModel.select(e,t,this._ngSelect.selectableGroupAsModel),this._ngSelect.hideSelected&&this._hideSelected(e)}},e.prototype.unselect=function(e){e.selected&&(this._selectionModel.unselect(e,this._ngSelect.multiple),this._ngSelect.hideSelected&&T(e.index)&&this._ngSelect.multiple&&this._showSelected(e))},e.prototype.findItem=function(t){var n,i=this;return n=this._ngSelect.compareWith?function(e){return i._ngSelect.compareWith(e.value,t)}:this._ngSelect.bindValue?function(e){return!e.children&&i.resolveNested(e.value,i._ngSelect.bindValue)===t}:function(e){return e.value===t||!e.children&&e.label&&e.label===i.resolveNested(t,i._ngSelect.bindLabel)},this._items.find(function(e){return n(e)})},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(t){void 0===t&&(t=!1),this._selectionModel.clear(t),this._items.forEach(function(e){e.selected=t&&e.selected&&e.disabled,e.marked=!1}),this._ngSelect.hideSelected&&this.resetFilteredItems()},e.prototype.findByLabel=function(t){return t=S(t).toLocaleLowerCase(),this.filteredItems.find(function(e){return S(e.label).toLocaleLowerCase().substr(0,t.length)===t})},e.prototype.filter=function(u){var e,t;if(u){this._filteredItems=[],u=this._ngSelect.searchFn?u:S(u).toLocaleLowerCase();var h=this._ngSelect.searchFn||this._defaultSearchFn,m=this._ngSelect.hideSelected,n=function(e){var t,n,i,r=[];try{for(var s=I(g._groups.get(e)),o=s.next();!o.done;o=s.next()){var l=o.value;if(!m||!(l.parent&&l.parent.selected||l.selected)){var a=g._ngSelect.searchFn?l.value:l;h(u,a)&&r.push(l)}}}catch(d){t={error:d}}finally{try{o&&!o.done&&(n=s["return"])&&n.call(s)}finally{if(t)throw t.error}}if(0<r.length){var c=f(r.slice(-1),1)[0];if(c.parent){var p=g._items.find(function(e){return e===c.parent});g._filteredItems.push(p)}(i=g._filteredItems).push.apply(i,y(r))}},g=this;try{for(var i=I(Array.from(this._groups.keys())),r=i.next();!r.done;r=i.next()){n(r.value)}}catch(s){e={error:s}}finally{try{r&&!r.done&&(t=i["return"])&&t.call(i)}finally{if(e)throw e.error}}}else this.resetFilteredItems()},e.prototype.resetFilteredItems=function(){this._filteredItems.length!==this._items.length&&(this._ngSelect.hideSelected&&0<this.selectedItems.length?this._filteredItems=this._items.filter(function(e){return!e.selected}):this._filteredItems=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._getLastMarkedIndex();-1<t?this._markedIndex=t:this._ngSelect.excludeGroupsFromDefaultSelection?this._markedIndex=e?this.filteredItems.findIndex(function(e){return!e.disabled&&!e.children}):-1:this._markedIndex=e?this.filteredItems.findIndex(function(e){return!e.disabled}):-1}},e.prototype.resolveNested=function(e,t){if(!b(e))return e;if(-1===t.indexOf("."))return e[t];for(var n=t.split("."),i=e,r=0,s=n.length;r<s;++r){if(null==i)return null;i=i[n[r]]}return i},e.prototype.mapItem=function(e,t){var n=T(e.$ngOptionLabel)?e.$ngOptionLabel:this.resolveNested(e,this._ngSelect.bindLabel),i=T(e.$ngOptionValue)?e.$ngOptionValue:e;return{index:t,label:T(n)?n.toString():"",value:i,disabled:e.disabled,htmlId:x()}},e.prototype.mapSelectedItems=function(){var e,t,n=this,i=this._ngSelect.multiple;try{for(var r=I(this.selectedItems),s=r.next();!s.done;s=r.next()){var o=s.value,l=this._ngSelect.bindValue?this.resolveNested(o.value,this._ngSelect.bindValue):o.value,a=T(l)?this.findItem(l):null;this._selectionModel.unselect(o,i),this._selectionModel.select(a||o,i,this._ngSelect.selectableGroupAsModel)}}catch(c){e={error:c}}finally{try{s&&!s.done&&(t=r["return"])&&t.call(r)}finally{if(e)throw e.error}}this._ngSelect.hideSelected&&(this._filteredItems=this.filteredItems.filter(function(e){return-1===n.selectedItems.indexOf(e)}))},e.prototype._showSelected=function(e){var t,n;if(this._filteredItems.push(e),e.parent){var i=e.parent;this._filteredItems.find(function(e){return e===i})||this._filteredItems.push(i)}else if(e.children)try{for(var r=I(e.children),s=r.next();!s.done;s=r.next()){var o=s.value;o.selected=!1,this._filteredItems.push(o)}}catch(l){t={error:l}}finally{try{s&&!s.done&&(n=r["return"])&&n.call(r)}finally{if(t)throw t.error}}this._filteredItems=y(this._filteredItems.sort(function(e,t){return e.index-t.index}))},e.prototype._hideSelected=function(t){(this._filteredItems=this._filteredItems.filter(function(e){return e!==t}),t.parent)?t.parent.children.every(function(e){return e.selected})&&(this._filteredItems=this._filteredItems.filter(function(e){return e!==t.parent})):t.children&&(this._filteredItems=this.filteredItems.filter(function(e){return e.parent!==t}))},e.prototype._defaultSearchFn=function(e,t){return-1<S(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))},e.prototype._getLastMarkedIndex=function(){if(this._ngSelect.hideSelected)return-1;var e=this._filteredItems.indexOf(this.lastSelectedItem);return this.lastSelectedItem&&e<0?-1:Math.max(this.markedIndex,e)},e.prototype._groupBy=function(e,t){var n,i,r,s,o=this,l=new Map;if(0===e.length)return l;if(Array.isArray(e[0].value[t])){try{for(var a=I(e),c=a.next();!c.done;c=a.next()){var p=((f=c.value).value[t]||[]).map(function(e,t){return o.mapItem(e,t)});l.set(f,p)}}catch(v){n={error:v}}finally{try{c&&!c.done&&(i=a["return"])&&i.call(a)}finally{if(n)throw n.error}}return l}var d,u,h=w(this._ngSelect.groupBy);try{for(var m=I(e),g=m.next();!g.done;g=m.next()){var f=g.value,y=(d=f,void 0,T(u=h?t(d.value):d.value[t])?u:undefined),_=l.get(y);_?_.push(f):l.set(y,[f])}}catch(b){r={error:b}}finally{try{g&&!g.done&&(s=m["return"])&&s.call(m)}finally{if(r)throw r.error}}return l},e.prototype._flatten=function(o){var e,t,l=w(this._ngSelect.groupBy),a=[],n=o.get(undefined)||[];a.push.apply(a,y(n));var c=n.length,i=function(t){if(!T(t))return"continue";var n=b(t),i={label:n?"":t,children:undefined,parent:null,index:c++,disabled:!p._ngSelect.selectableGroup,htmlId:x()},r=l?p._ngSelect.bindLabel:p._ngSelect.groupBy,e=p._ngSelect.groupValue||function(){var e;return n?t.value:((e={})[r]=t,e)},s=o.get(t).map(function(e){return e.parent=i,e.children=undefined,e.index=c++,e});i.children=s,i.value=e(t,s.map(function(e){return e.value})),a.push(i),a.push.apply(a,y(s))},p=this;try{for(var r=I(Array.from(o.keys())),s=r.next();!s.done;s=r.next()){i(s.value)}}catch(d){e={error:d}}finally{try{s&&!s.done&&(t=r["return"])&&t.call(r)}finally{if(e)throw e.error}}return a},e}(),k={Tab:9,Enter:13,Esc:27,Space:32,ArrowUp:38,ArrowDown:40,Backspace:8};k[k.Tab]="Tab",k[k.Enter]="Enter",k[k.Esc]="Esc",k[k.Space]="Space",k[k.ArrowUp]="ArrowUp",k[k.ArrowDown]="ArrowDown",k[k.Backspace]="Backspace";var C=function(){function e(){this._dimensions={itemHeight:0,panelHeight:0,itemsPerViewport:0}}return Object.defineProperty(e.prototype,"dimensions",{get:function(){return this._dimensions},enumerable:!0,configurable:!0}),e.prototype.calculateItems=function(e,t,n){var i=this._dimensions,r=i.itemHeight*t,s=Math.max(0,e)/r*t,o=Math.min(t,Math.ceil(s)+(i.itemsPerViewport+1)),l=o,a=Math.max(0,l-i.itemsPerViewport),c=Math.min(a,Math.floor(s)),p=i.itemHeight*Math.ceil(c)-i.itemHeight*Math.min(c,n);return p=isNaN(p)?0:p,c=isNaN(c)?-1:c,o=isNaN(o)?-1:o,c-=n,o+=n,{topPadding:p,scrollHeight:r,start:c=Math.max(0,c),end:o=Math.min(t,o)}},e.prototype.setDimensions=function(e,t){var n=Math.max(1,Math.floor(t/e));this._dimensions={itemHeight:e,panelHeight:t,itemsPerViewport:n}},e.prototype.getScrollTo=function(e,t,n){var i=e+t,r=n,s=r+this.dimensions.panelHeight;return s<i?r+i-s:e<=r?e:null},e}(),L="ng-select-top",P="ng-select-bottom",A="undefined"!=typeof requestAnimationFrame?p.animationFrameScheduler:p.asapScheduler,V=function(){function e(e,t,n,i,r){this._renderer=e,this._zone=t,this._panelService=n,this._document=r,this.items=[],this.position="auto",this.virtualScroll=!1,this.filterValue=null,this.update=new c.EventEmitter,this.scroll=new c.EventEmitter,this.scrollToEnd=new c.EventEmitter,this.outsideClick=new c.EventEmitter,this._destroy$=new p.Subject,this._scrollToEndFired=!1,this._updateScrollHeight=!1,this._lastScrollPosition=0,this._dropdown=i.nativeElement}return Object.defineProperty(e.prototype,"currentPosition",{get:function(){return this._currentPosition},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"itemsLength",{get:function(){return this._itemsLength},set:function(e){e!==this._itemsLength&&(this._itemsLength=e,this._onItemsLengthChanged())},enumerable:!0,configurable:!0}),e.prototype.handleMousedown=function(e){"INPUT"!==e.target.tagName&&e.preventDefault()},e.prototype.ngOnInit=function(){this._select=this._dropdown.parentElement,this._virtualPadding=this.paddingElementRef.nativeElement,this._scrollablePanel=this.scrollElementRef.nativeElement,this._contentPanel=this.contentElementRef.nativeElement,this._handleScroll(),this._handleOutsideClick(),this._appendDropdown()},e.prototype.ngOnChanges=function(e){if(e.items){var t=e.items;this._onItemsChange(t.currentValue,t.firstChange)}},e.prototype.ngOnDestroy=function(){this._destroy$.next(),this._destroy$.complete(),this._destroy$.unsubscribe(),this.appendTo&&this._renderer.removeChild(this._dropdown.parentNode,this._dropdown)},e.prototype.scrollTo=function(e,t){if(void 0===t&&(t=!1),e){var n=this.items.indexOf(e);if(!(n<0||n>=this.itemsLength)){var i;if(this.virtualScroll){var r=this._panelService.dimensions.itemHeight;i=this._panelService.getScrollTo(n*r,r,this._lastScrollPosition)}else{var s=this._dropdown.querySelector("#"+e.htmlId),o=t?s.offsetTop:this._lastScrollPosition;i=this._panelService.getScrollTo(s.offsetTop,s.clientHeight,o)}T(i)&&(this._scrollablePanel.scrollTop=i)}}},e.prototype.scrollToTag=function(){var e=this._scrollablePanel;e.scrollTop=e.scrollHeight-e.clientHeight},e.prototype.adjustPosition=function(){if("top"!==this._currentPosition){var e=this._parent.getBoundingClientRect(),t=this._select.getBoundingClientRect();this._setOffset(e,t)}},e.prototype._handleDropdownPosition=function(){this._currentPosition=this._calculateCurrentPosition(this._dropdown),"top"===this._currentPosition?(this._renderer.addClass(this._dropdown,L),this._renderer.removeClass(this._dropdown,P),this._renderer.addClass(this._select,L),this._renderer.removeClass(this._select,P)):(this._renderer.addClass(this._dropdown,P),this._renderer.removeClass(this._dropdown,L),this._renderer.addClass(this._select,P),this._renderer.removeClass(this._select,L)),this.appendTo&&this._updatePosition(),this._dropdown.style.opacity="1"},e.prototype._handleScroll=function(){var t=this;this._zone.runOutsideAngular(function(){p.fromEvent(t.scrollElementRef.nativeElement,"scroll").pipe(r.takeUntil(t._destroy$),r.auditTime(0,A)).subscribe(function(e){return t._onContentScrolled(e.srcElement.scrollTop)})})},e.prototype._handleOutsideClick=function(){var t=this;this._document&&this._zone.runOutsideAngular(function(){p.merge(p.fromEvent(t._document,"touchstart",{capture:!0}),p.fromEvent(t._document,"mousedown",{capture:!0})).pipe(r.takeUntil(t._destroy$)).subscribe(function(e){return t._checkToClose(e)})})},e.prototype._checkToClose=function(e){if(!this._select.contains(e.target)&&!this._dropdown.contains(e.target)){var t=e.path||e.composedPath&&e.composedPath();e.target&&e.target.shadowRoot&&t&&t[0]&&this._select.contains(t[0])||this.outsideClick.emit()}},e.prototype._onItemsChange=function(e,t){this.items=e||[],this._scrollToEndFired=!1,this.itemsLength=e.length,this.virtualScroll?this._updateItemsRange(t):this._updateItems(t)},e.prototype._updateItems=function(t){var n=this;this.update.emit(this.items),!1!==t&&this._zone.runOutsideAngular(function(){Promise.resolve().then(function(){var e=n._scrollablePanel.clientHeight;n._panelService.setDimensions(0,e),n._handleDropdownPosition(),n.scrollTo(n.markedItem,t)})})},e.prototype._updateItemsRange=function(e){var t=this;this._zone.runOutsideAngular(function(){t._measureDimensions().then(function(){e?(t._renderItemsRange(t._startOffset),t._handleDropdownPosition()):t._renderItemsRange()})})},e.prototype._onContentScrolled=function(e){this.virtualScroll&&this._renderItemsRange(e),this._lastScrollPosition=e,this._fireScrollToEnd(e)},e.prototype._updateVirtualHeight=function(e){this._updateScrollHeight&&(this._virtualPadding.style.height=e+"px",this._updateScrollHeight=!1)},e.prototype._onItemsLengthChanged=function(){this._updateScrollHeight=!0},Object.defineProperty(e.prototype,"_startOffset",{get:function(){return this.markedItem?this.markedItem.index*this._panelService.dimensions.itemHeight:0},enumerable:!0,configurable:!0}),e.prototype._renderItemsRange=function(e){var t=this;if(void 0===e&&(e=null),!e||this._lastScrollPosition!==e){e=e||this._scrollablePanel.scrollTop;var n=this._panelService.calculateItems(e,this.itemsLength,this.bufferAmount);this._updateVirtualHeight(n.scrollHeight),this._contentPanel.style.transform="translateY("+n.topPadding+"px)",this._zone.run(function(){t.update.emit(t.items.slice(n.start,n.end)),t.scroll.emit({start:n.start,end:n.end})}),T(e)&&0===this._lastScrollPosition&&(this._scrollablePanel.scrollTop=e,this._lastScrollPosition=e)}},e.prototype._measureDimensions=function(){var n=this;if(0<this._panelService.dimensions.itemHeight||0===this.itemsLength)return Promise.resolve(this._panelService.dimensions);var i=f(this.items,1)[0];return this.update.emit([i]),Promise.resolve().then(function(){var e=n._dropdown.querySelector("#"+i.htmlId).clientHeight;n._virtualPadding.style.height=e*n.itemsLength+"px";var t=n._scrollablePanel.clientHeight;return n._panelService.setDimensions(e,t),n._panelService.dimensions})},e.prototype._fireScrollToEnd=function(e){var t=this;if(!this._scrollToEndFired&&0!==e){var n=this.virtualScroll?this._virtualPadding:this._contentPanel;e+this._dropdown.clientHeight>=n.clientHeight&&(this._zone.run(function(){return t.scrollToEnd.emit()}),this._scrollToEndFired=!0)}},e.prototype._calculateCurrentPosition=function(e){if("auto"!==this.position)return this.position;var t=this._select.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(){if(this.appendTo){if(this._parent=document.querySelector(this.appendTo),!parent)throw new Error("appendTo selector "+this.appendTo+" did not found any parent element");this._parent.appendChild(this._dropdown)}},e.prototype._updatePosition=function(){var e=this._select.getBoundingClientRect(),t=this._parent.getBoundingClientRect(),n=e.left-t.left;this._setOffset(t,e),this._dropdown.style.left=n+"px",this._dropdown.style.width=e.width+"px",this._dropdown.style.minWidth=e.width+"px"},e.prototype._setOffset=function(e,t){var n=t.height;if("top"===this._currentPosition){var i=e.bottom-t.bottom;this._dropdown.style.bottom=i+n+"px",this._dropdown.style.top="auto"}else if("bottom"===this._currentPosition){var r=t.top-e.top;this._dropdown.style.top=r+n+"px",this._dropdown.style.bottom="auto"}},e.decorators=[{type:c.Component,args:[{changeDetection:c.ChangeDetectionStrategy.OnPush,encapsulation:c.ViewEncapsulation.None,selector:"ng-dropdown-panel",template:'\n <div *ngIf="headerTemplate" class="ng-dropdown-header">\n <ng-container [ngTemplateOutlet]="headerTemplate" [ngTemplateOutletContext]="{ searchTerm: filterValue }"></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">\n <ng-content></ng-content>\n </div>\n </div>\n <div *ngIf="footerTemplate" class="ng-dropdown-footer">\n <ng-container [ngTemplateOutlet]="footerTemplate" [ngTemplateOutletContext]="{ searchTerm: filterValue }"></ng-container>\n </div>\n '}]}],e.ctorParameters=function(){return[{type:c.Renderer2},{type:c.NgZone},{type:C},{type:c.ElementRef},{type:undefined,decorators:[{type:c.Optional},{type:c.Inject,args:[t.DOCUMENT]}]}]},e.propDecorators={items:[{type:c.Input}],markedItem:[{type:c.Input}],position:[{type:c.Input}],appendTo:[{type:c.Input}],bufferAmount:[{type:c.Input}],virtualScroll:[{type:c.Input}],headerTemplate:[{type:c.Input}],footerTemplate:[{type:c.Input}],filterValue:[{type:c.Input}],update:[{type:c.Output}],scroll:[{type:c.Output}],scrollToEnd:[{type:c.Output}],outsideClick:[{type:c.Output}],contentElementRef:[{type:c.ViewChild,args:["content",{read:c.ElementRef}]}],scrollElementRef:[{type:c.ViewChild,args:["scroll",{read:c.ElementRef}]}],paddingElementRef:[{type:c.ViewChild,args:["padding",{read:c.ElementRef}]}],handleMousedown:[{type:c.HostListener,args:["mousedown",["$event"]]}]},e}(),D=function(){function e(e){this.elementRef=e,this.stateChange$=new p.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.decorators=[{type:c.Component,args:[{selector:"ng-option",changeDetection:c.ChangeDetectionStrategy.OnPush,template:"<ng-content></ng-content>"}]}],e.ctorParameters=function(){return[{type:c.ElementRef}]},e.propDecorators={value:[{type:c.Input}],disabled:[{type:c.Input}]},e}(),R=function(){function e(){this.notFoundText="No items found",this.typeToSearchText="Type to search",this.addTagText="Add item",this.loadingText="Loading...",this.clearAllText="Clear all",this.disableVirtualScroll=!0,this.openOnEnter=!0}return e.decorators=[{type:c.Injectable,args:[{providedIn:"root"}]}],e.ngInjectableDef=c.defineInjectable({factory:function(){return new e},token:e,providedIn:"root"}),e}(),F=new c.InjectionToken("ng-select-selection-model"),H=function(){function e(e,t,n,i,r,s,o,l){var a=this;this.classes=e,this.tabIndex=t,this.autoFocus=n,this._cd=o,this._console=l,this.markFirst=!0,this.dropdownPosition="auto",this.loading=!1,this.closeOnSelect=!0,this.hideSelected=!1,this.selectOnTab=!1,this.bufferAmount=4,this.selectableGroup=!1,this.selectableGroupAsModel=!0,this.searchFn=null,this.trackByFn=null,this.excludeGroupsFromDefaultSelection=!1,this.clearOnBackspace=!0,this.labelForId=null,this.autoCorrect="off",this.autoCapitalize="off",this.multiple=!1,this.addTag=!1,this.searchable=!0,this.clearable=!0,this.isOpen=!1,this.blurEvent=new c.EventEmitter,this.focusEvent=new c.EventEmitter,this.changeEvent=new c.EventEmitter,this.openEvent=new c.EventEmitter,this.closeEvent=new c.EventEmitter,this.searchEvent=new c.EventEmitter,this.clearEvent=new c.EventEmitter,this.addEvent=new c.EventEmitter,this.removeEvent=new c.EventEmitter,this.scroll=new c.EventEmitter,this.scrollToEnd=new c.EventEmitter,this.disabled=!1,this.viewPortItems=[],this.filterValue=null,this.dropdownId=x(),this._items=[],this._defaultLabel="label",this._pressedKeys=[],this._destroy$=new p.Subject,this._keyPress$=new p.Subject,this._onChange=function(e){},this._onTouched=function(){},this.clearItem=function(t){var e=a.selectedItems.find(function(e){return e.value===t});a.unselect(e)},this.trackByOption=function(e,t){return a.trackByFn?a.trackByFn(t.value):null},this._mergeGlobalConfig(i),this.itemsList=new E(this,r()),this.element=s.nativeElement}return Object.defineProperty(e.prototype,"items",{get:function(){return this._items},set:function(e){this._itemsAreUsed=!0,this._items=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"compareWith",{get:function(){return this._compareWith},set:function(e){if(!w(e))throw Error("`compareWith` must be a function.");this._compareWith=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"clearSearchOnAdd",{get:function(){return T(this._clearSearchOnAdd)?this._clearSearchOnAdd:this.closeOnSelect},set:function(e){this._clearSearchOnAdd=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"filtered",{get:function(){return!!this.filterValue&&this.searchable},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selectedItems",{get:function(){return this.itemsList.selectedItems},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,"hasValue",{get:function(){return 0<this.selectedItems.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"currentPanelPosition",{get:function(){return this.dropdownPanel?this.dropdownPanel.currentPosition:undefined},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this._handleKeyPresses()},e.prototype.ngOnChanges=function(e){e.multiple&&this.itemsList.clearSelected(),e.items&&this._setItems(e.items.currentValue||[]),e.isOpen&&(this._manualOpen=T(e.isOpen.currentValue))},e.prototype.ngAfterViewInit=function(){this._itemsAreUsed||this._setItemsFromNgOptions(),T(this.autoFocus)&&this.focus()},e.prototype.ngOnDestroy=function(){this._destroy$.next(),this._destroy$.complete()},e.prototype.handleKeyDown=function(e){if(k[e.which])switch(e.which){case k.ArrowDown:this._handleArrowDown(e);break;case k.ArrowUp:this._handleArrowUp(e);break;case k.Space:this._handleSpace(e);break;case k.Enter:this._handleEnter(e);break;case k.Tab:this._handleTab(e);break;case k.Esc:this.close(),e.preventDefault();break;case k.Backspace:this._handleBackspace()}else e.key&&1===e.key.length&&this._keyPress$.next(e.key.toLocaleLowerCase())},e.prototype.handleMousedown=function(e){var t=e.target;"INPUT"!==t.tagName&&e.preventDefault(),t.classList.contains("ng-clear-wrapper")?this.handleClearClick():t.classList.contains("ng-arrow-wrapper")?this.handleArrowClick():t.classList.contains("ng-value-icon")||(this.focused||this.focus(),this.searchable?this.open():this.toggle())},e.prototype.handleArrowClick=function(){this.isOpen?this.close():this.open()},e.prototype.handleClearClick=function(){this.hasValue&&(this.itemsList.clearSelected(!0),this._updateNgModel()),this._clearSearch(),this.focus(),this._isTypeahead&&this.typeahead.next(null),this.clearEvent.emit(),this._onSelectionChanged()},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.disabled=e,this._cd.markForCheck()},e.prototype.toggle=function(){this.isOpen?this.close():this.open()},e.prototype.open=function(){this.disabled||this.isOpen||this.itemsList.maxItemsSelected||this._manualOpen||(this._isTypeahead||this.addTag||!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._manualOpen&&(this.isOpen=!1,this._clearSearch(),this.itemsList.unmarkItem(),this._onTouched(),this.closeEvent.emit(),this._cd.markForCheck())},e.prototype.toggleItem=function(e){!e||e.disabled||this.disabled||(this.multiple&&e.selected?this.unselect(e):this.select(e),this._onSelectionChanged())},e.prototype.select=function(e){e.selected||(this.itemsList.select(e),this.clearSearchOnAdd&&this._clearSearch(),this.multiple&&this.addEvent.emit(e.value),this._updateNgModel()),(this.closeOnSelect||this.itemsList.noItemsToSelect)&&this.close()},e.prototype.focus=function(){this.filterInput.nativeElement.focus()},e.prototype.unselect=function(e){e&&(this.itemsList.unselect(e),this.focus(),this._updateNgModel(),this.removeEvent.emit(e))},e.prototype.selectTag=function(){var e,t,n=this;t=w(this.addTag)?this.addTag(this.filterValue):this._primitive?this.filterValue:((e={})[this.bindLabel]=this.filterValue,e);var i=function(e){return n._isTypeahead||!n.isOpen?n.itemsList.mapItem(e,null):n.itemsList.addItem(e)};!function r(e){return e instanceof Promise}(t)?t&&this.select(i(t)):t.then(function(e){return n.select(i(e))})["catch"](function(){})},e.prototype.showClear=function(){return this.clearable&&(this.hasValue||this.filterValue)&&!this.disabled},Object.defineProperty(e.prototype,"showAddTag",{get:function(){if(!this.filterValue)return!1;var t=this.filterValue.toLowerCase();return this.addTag&&!this.itemsList.filteredItems.some(function(e){return e.label.toLowerCase()===t})&&(!this.hideSelected&&this.isOpen||!this.selectedItems.some(function(e){return e.label.toLowerCase()===t}))&&!this.loading},enumerable:!0,configurable:!0}),e.prototype.showNoItemsFound=function(){var e=0===this.itemsList.filteredItems.length;return(e&&!this._isTypeahead&&!this.loading||e&&this._isTypeahead&&this.filterValue&&!this.loading)&&!this.showAddTag},e.prototype.showTypeToSearch=function(){return 0===this.itemsList.filteredItems.length&&this._isTypeahead&&!this.filterValue&&!this.loading},e.prototype.filter=function(e){this.filterValue=e,this._isTypeahead?this.typeahead.next(this.filterValue):(this.itemsList.filter(this.filterValue),this.isOpen&&this.itemsList.markSelectedOrDefault(this.markFirst)),this.searchEvent.emit({term:e,items:this.itemsList.filteredItems.map(function(e){return e.value})}),this.open()},e.prototype.onInputFocus=function(e){this.focused||(this.element.classList.add("ng-select-focused"),this.focusEvent.emit(e),this.focused=!0)},e.prototype.onInputBlur=function(e){this.element.classList.remove("ng-select-focused"),this.blurEvent.emit(e),this.isOpen||this.disabled||this._onTouched(),this.focused=!1},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=T(t)?!b(t):this._primitive||this.bindLabel===this._defaultLabel,this.itemsList.setItems(e),0<e.length&&this.hasValue&&this.itemsList.mapSelectedItems(),this.isOpen&&T(this.filterValue)&&!this._isTypeahead&&this.itemsList.filter(this.filterValue),(this._isTypeahead||this.isOpen)&&this.itemsList.markSelectedOrDefault(this.markFirst)},e.prototype._setItemsFromNgOptions=function(){var i=this;this.ngOptions.changes.pipe(r.startWith(this.ngOptions),r.takeUntil(this._destroy$)).subscribe(function(e){var t,n;i.bindLabel=i._defaultLabel,t=e,i.items=t.map(function(e){return{$ngOptionValue:e.value,$ngOptionLabel:e.elementRef.nativeElement.innerHTML,disabled:e.disabled}}),i.itemsList.setItems(i.items),i.hasValue&&i.itemsList.mapSelectedItems(),i.detectChanges(),n=p.merge(i.ngOptions.changes,i._destroy$),p.merge.apply(void 0,y(i.ngOptions.map(function(e){return e.stateChange$}))).pipe(r.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!(!T(t.compareWith)&&b(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 s=this;if(this._isValidWriteValue(e)){var t=function(e){var t,n=s.itemsList.findItem(e);if(n)s.itemsList.select(n);else{var i=b(e),r=!i&&!s.bindValue;i||r?s.itemsList.select(s.itemsList.mapItem(e,null)):s.bindValue&&((t={})[s.bindLabel]=null,t[s.bindValue]=e,n=t,s.itemsList.select(s.itemsList.mapItem(n,null)))}};this.multiple?e.forEach(function(e){return t(e)}):t(e)}},e.prototype._handleKeyPresses=function(){var n=this;this.searchable||this._keyPress$.pipe(r.takeUntil(this._destroy$),r.tap(function(e){return n._pressedKeys.push(e)}),r.debounceTime(200),r.filter(function(){return 0<n._pressedKeys.length}),r.map(function(){return n._pressedKeys.join("")})).subscribe(function(e){var t=n.itemsList.findByLabel(e);t&&(n.isOpen?(n.itemsList.markItem(t),n._cd.markForCheck()):n.select(t)),n._pressedKeys=[]})},e.prototype._updateNgModel=function(){var e,t,n=[];try{for(var i=I(this.selectedItems),r=i.next();!r.done;r=i.next()){var s=r.value;if(this.bindValue){var o=null;if(s.children){var l=this.groupValue?this.bindValue:this.groupBy;o=s.value[l||this.groupBy]}else o=this.itemsList.resolveNested(s.value,this.bindValue);n.push(o)}else n.push(s.value)}}catch(c){e={error:c}}finally{try{r&&!r.done&&(t=i["return"])&&t.call(i)}finally{if(e)throw e.error}}var a=this.selectedItems.map(function(e){return e.value});this.multiple?(this._onChange(n),this.changeEvent.emit(a)):(this._onChange(T(n[0])?n[0]:null),this.changeEvent.emit(a[0])),this._cd.markForCheck()},e.prototype._clearSearch=function(){this.filterValue&&(this.filterValue=null,this.itemsList.resetFilteredItems())},e.prototype._scrollToMarked=function(){this.isOpen&&this.dropdownPanel&&this.dropdownPanel.scrollTo(this.itemsList.markedItem)},e.prototype._scrollToTag=function(){this.isOpen&&this.dropdownPanel&&this.dropdownPanel.scrollToTag()},e.prototype._onSelectionChanged=function(){this.isOpen&&this.multiple&&this.appendTo&&(this._cd.detectChanges(),this.dropdownPanel.adjustPosition())},e.prototype._handleTab=function(e){(!1!==this.isOpen||this.addTag)&&(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){if(this.isOpen||this._manualOpen)this.itemsList.markedItem?this.toggleItem(this.itemsList.markedItem):this.showAddTag&&this.selectTag();else{if(!this.openOnEnter)return;this.open()}e.preventDefault()},e.prototype._handleSpace=function(e){this.isOpen||this._manualOpen||(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.clearOnBackspace&&this.hasValue&&(this.multiple?this.unselect(this.itemsList.lastSelectedItem):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.placeholder=this.placeholder||e.placeholder,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,this.virtualScroll=T(this.virtualScroll)?this.virtualScroll:!!T(e.disableVirtualScroll)&&!e.disableVirtualScroll,this.openOnEnter=T(this.openOnEnter)?this.openOnEnter:e.openOnEnter},e.decorators=[{type:c.Component,args:[{selector:"ng-select",template:'<div (mousedown)="handleMousedown($event)" [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.ng-value-disabled]="item.disabled" class="ng-value" *ngFor="let item of selectedItems; trackBy: trackByOption">\n <ng-template #defaultLabelTemplate>\n <span class="ng-value-icon left" (click)="unselect(item);" 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 class="ng-input">\n <input #filterInput\n type="text"\n [attr.autocomplete]="labelForId ? \'off\' : dropdownId"\n [attr.id]="labelForId"\n [attr.tabindex]="tabIndex"\n [attr.autocorrect]="autoCorrect"\n [attr.autocapitalize]="autoCapitalize"\n [readOnly]="!searchable || itemsList.maxItemsSelected"\n [disabled]="disabled"\n [value]="filterValue ? filterValue : \'\'"\n (input)="filter(filterInput.value)"\n (focus)="onInputFocus($event)"\n (blur)="onInputBlur($event)"\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 <ng-container *ngIf="loading">\n <ng-template #defautlLoadingSpinnerTemplate>\n <div class="ng-spinner-loader"></div>\n </ng-template>\n\n <ng-template\n [ngTemplateOutlet]="loadingSpinnerTemplate || defautlLoadingSpinnerTemplate">\n </ng-template>\n </ng-container>\n\n <span *ngIf="showClear()" class="ng-clear-wrapper" title="{{clearAllText}}">\n <span class="ng-clear" aria-hidden="true">×</span>\n </span>\n\n <span class="ng-arrow-wrapper">\n <span class="ng-arrow"></span>\n </span>\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 [filterValue]="filterValue"\n [items]="itemsList.filteredItems"\n [markedItem]="itemsList.markedItem"\n (update)="viewPortItems = $event"\n (scroll)="scroll.emit($event)"\n (scrollToEnd)="scrollToEnd.emit($event)"\n (outsideClick)="close()"\n [class.ng-select-multiple]="multiple"\n [ngClass]="appendTo ? classes : null"\n [id]="dropdownId">\n\n <ng-container>\n <div class="ng-option" [attr.role]="item.children ? \'group\' : \'option\'" (click)="toggleItem(item)" (mouseover)="onItemHover(item)"\n *ngFor="let item of viewPortItems; trackBy: trackByOption"\n [class.ng-option-disabled]="item.disabled"\n [class.ng-option-selected]="item.selected"\n [class.ng-optgroup]="item.children"\n [class.ng-option]="!item.children"\n [class.ng-option-child]="!!item.parent"\n [class.ng-option-marked]="item === itemsList.markedItem"\n [attr.aria-selected]="item.selected"\n [attr.id]="item?.htmlId">\n\n <ng-template #defaultOptionTemplate>\n <span class="ng-option-label">{{item.label}}</span>\n </ng-template>\n\n <ng-template\n [ngTemplateOutlet]="item.children ? (optgroupTemplate || defaultOptionTemplate) : (optionTemplate || defaultOptionTemplate)"\n [ngTemplateOutletContext]="{ item: item.value, item$:item, 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 <ng-template #defaultTagTemplate>\n <span><span class="ng-tag-label">{{addTagText}}</span>"{{filterValue}}"</span>\n </ng-template>\n\n <ng-template\n [ngTemplateOutlet]="tagTemplate || defaultTagTemplate"\n [ngTemplateOutletContext]="{ searchTerm: filterValue }">\n </ng-template>\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="loading && 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',providers:[{provide:n.NG_VALUE_ACCESSOR,useExisting:c.forwardRef(function(){return e}),multi:!0},C],encapsulation:c.ViewEncapsulation.None,changeDetection:c.ChangeDetectionStrategy.OnPush,host:{role:"listbox","class":"ng-select","[class.ng-select-single]":"!multiple"},styles:[".ng-select{position:relative;display:block;box-sizing:border-box}.ng-select div,.ng-select input,.ng-select span{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:flex;outline:0;overflow:hidden;position:relative;width:100%}.ng-select .ng-select-container .ng-value-container{display:flex;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{box-sizing:content-box;background:none;border:0;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-container .ng-value-container .ng-input>input[readonly]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:0;padding:0}.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{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.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{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;pointer-events:none}.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{pointer-events:none;display:inline-block;height:0;width:0;position:relative}.ng-dropdown-panel{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;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{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}"]}]}],e.ctorParameters=function(){return[{type:String,decorators:[{type:c.Attribute,args:["class"]}]},{type:String,decorators:[{type:c.Attribute,args:["tabindex"]}]},{type:undefined,decorators:[{type:c.Attribute,args:["autofocus"]}]},{type:R},{type:undefined,decorators:[{type:c.Inject,args:[F]}]},{type:c.ElementRef},{type:c.ChangeDetectorRef},{type:v}]},e.propDecorators={bindLabel:[{type:c.Input}],bindValue:[{type:c.Input}],markFirst:[{type:c.Input}],placeholder:[{type:c.Input}],notFoundText:[{type:c.Input}],typeToSearchText:[{type:c.Input}],addTagText:[{type:c.Input}],loadingText:[{type:c.Input}],clearAllText:[{type:c.Input}],dropdownPosition:[{type:c.Input}],appendTo:[{type:c.Input}],loading:[{type:c.Input}],closeOnSelect:[{type:c.Input}],hideSelected:[{type:c.Input}],selectOnTab:[{type:c.Input}],openOnEnter:[{type:c.Input}],maxSelectedItems:[{type:c.Input}],groupBy:[{type:c.Input}],groupValue:[{type:c.Input}],bufferAmount:[{type:c.Input}],virtualScroll:[{type:c.Input}],selectableGroup:[{type:c.Input}],selectableGroupAsModel:[{type:c.Input}],searchFn:[{type:c.Input}],trackByFn:[{type:c.Input}],excludeGroupsFromDefaultSelection:[{type:c.Input}],clearOnBackspace:[{type:c.Input}],labelForId:[{type:c.Input}],autoCorrect:[{type:c.Input}],autoCapitalize:[{type:c.Input}],typeahead:[{type:c.Input},{type:c.HostBinding,args:["class.ng-select-typeahead"]}],multiple:[{type:c.Input},{type:c.HostBinding,args:["class.ng-select-multiple"]}],addTag:[{type:c.Input},{type:c.HostBinding,args:["class.ng-select-taggable"]}],searchable:[{type:c.Input},{type:c.HostBinding,args:["class.ng-select-searchable"]}],clearable:[{type:c.Input},{type:c.HostBinding,args:["class.ng-select-clearable"]}],isOpen:[{type:c.Input},{type:c.HostBinding,args:["class.ng-select-opened"]}],items:[{type:c.Input}],compareWith:[{type:c.Input}],clearSearchOnAdd:[{type:c.Input}],blurEvent:[{type:c.Output,args:["blur"]}],focusEvent:[{type:c.Output,args:["focus"]}],changeEvent:[{type:c.Output,args:["change"]}],openEvent:[{type:c.Output,args:["open"]}],closeEvent:[{type:c.Output,args:["close"]}],searchEvent:[{type:c.Output,args:["search"]}],clearEvent:[{type:c.Output,args:["clear"]}],addEvent:[{type:c.Output,args:["add"]}],removeEvent:[{type:c.Output,args:["remove"]}],scroll:[{type:c.Output,args:["scroll"]}],scrollToEnd:[{type:c.Output,args:["scrollToEnd"]}],optionTemplate:[{type:c.ContentChild,args:[i,{read:c.TemplateRef}]}],optgroupTemplate:[{type:c.ContentChild,args:[s,{read:c.TemplateRef}]}],labelTemplate:[{type:c.ContentChild,args:[o,{read:c.TemplateRef}]}],multiLabelTemplate:[{type:c.ContentChild,args:[l,{read:c.TemplateRef}]}],headerTemplate:[{type:c.ContentChild,args:[a,{read:c.TemplateRef}]}],footerTemplate:[{type:c.ContentChild,args:[d,{read:c.TemplateRef}]}],notFoundTemplate:[{type:c.ContentChild,args:[u,{read:c.TemplateRef}]}],typeToSearchTemplate:[{type:c.ContentChild,args:[h,{read:c.TemplateRef}]}],loadingTextTemplate:[{type:c.ContentChild,args:[m,{read:c.TemplateRef}]}],tagTemplate:[{type:c.ContentChild,args:[g,{read:c.TemplateRef}]}],loadingSpinnerTemplate:[{type:c.ContentChild,args:[_,{read:c.TemplateRef}]}],dropdownPanel:[{type:c.ViewChild,args:[c.forwardRef(function(){return V})]}],ngOptions:[{type:c.ContentChildren,args:[D,{descendants:!0}]}],filterInput:[{type:c.ViewChild,args:["filterInput"]}],disabled:[{type:c.HostBinding,args:["class.ng-select-disabled"]}],filtered:[{type:c.HostBinding,args:["class.ng-select-filtered"]}],handleKeyDown:[{type:c.HostListener,args:["keydown",["$event"]]}]},e}(),j=function(){function e(e,t){this.elementRef=e,this.renderer=t,this.element=this.elementRef.nativeElement}return e.prototype.ngOnChanges=function(){this._canHighlight&&this._highlightLabel()},e.prototype.ngAfterViewInit=function(){this.label=this.element.innerHTML,this._canHighlight&&this._highlightLabel()},e.prototype._highlightLabel=function(){var e=this.label;if(this.term){var t=S(e).toLowerCase().indexOf(S(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)},Object.defineProperty(e.prototype,"_canHighlight",{get:function(){return T(this.term)&&T(this.label)},enumerable:!0,configurable:!0}),e.prototype._setInnerHtml=function(e){this.renderer.setProperty(this.elementRef.nativeElement,"innerHTML",e)},e.decorators=[{type:c.Directive,args:[{selector:"[ngOptionHighlight]"}]}],e.ctorParameters=function(){return[{type:c.ElementRef},{type:c.Renderer2}]},e.propDecorators={term:[{type:c.Input,args:["ngOptionHighlight"]}]},e}();function M(){return new N}var N=function(){function e(){this._selected=[]}return Object.defineProperty(e.prototype,"value",{get:function(){return this._selected},enumerable:!0,configurable:!0}),e.prototype.select=function(e,t,n){if(e.selected=!0,!n&&e.children||this._selected.push(e),t)if(e.parent){var i=e.parent.children.length,r=e.parent.children.filter(function(e){return e.selected}).length;e.parent.selected=i===r}else e.children&&(this._setChildrenSelectedState(e.children,!0),this._removeChildren(e),n||(this._selected=y(this._selected,e.children)))},e.prototype.unselect=function(t,e){var n;if(this._selected=this._selected.filter(function(e){return e!==t}),t.selected=!1,e)if(t.parent&&t.parent.selected){var i=t.parent.children;this._removeParent(t.parent),this._removeChildren(t.parent),(n=this._selected).push.apply(n,y(i.filter(function(e){return e!==t}))),t.parent.selected=!1}else t.children&&(this._setChildrenSelectedState(t.children,!1),this._removeChildren(t))},e.prototype.clear=function(e){this._selected=e?this._selected.filter(function(e){return e.disabled}):[]},e.prototype._setChildrenSelectedState=function(e,t){e.forEach(function(e){return e.selected=t})},e.prototype._removeChildren=function(t){this._selected=this._selected.filter(function(e){return e.parent!==t})},e.prototype._removeParent=function(t){this._selected=this._selected.filter(function(e){return e!==t})},e}(),B=M,U=function(){function e(){}return e.decorators=[{type:c.NgModule,args:[{declarations:[V,D,H,j,s,i,o,l,a,d,u,h,m,g,_],imports:[t.CommonModule],exports:[H,D,j,s,i,o,l,a,d,u,h,m,g,_],providers:[{provide:F,useValue:B}]}]}],e}();e.NgSelectComponent=H,e.SELECTION_MODEL_FACTORY=F,e.NgSelectModule=U,e.NgSelectConfig=R,e.ɵr=v,e.ɵp=V,e.ɵd=C,e.ɵs=j,e.ɵq=D,e.ɵj=d,e.ɵi=a,e.ɵg=o,e.ɵo=_,e.ɵm=m,e.ɵh=l,e.ɵk=u,e.ɵf=s,e.ɵe=i,e.ɵn=g,e.ɵl=h,e.ɵc=N,e.ɵb=M,Object.defineProperty(e,"__esModule",{value:!0})});
2
- //# sourceMappingURL=ng-select.umd.min.js.map