import{r as t,c as i,h as e,H as n,g as s}from"./p-305dfdf4.js";
/*! choices.js v9.0.1 | © 2019 Josh Johnson | https://github.com/jshjohnson/Choices#readme */window.Choices=function(t){var i={};function e(n){if(i[n])return i[n].exports;var s=i[n]={i:n,l:!1,exports:{}};return t[n].call(s.exports,s,s.exports,e),s.l=!0,s.exports}return e.m=t,e.c=i,e.d=function(t,i,n){e.o(t,i)||Object.defineProperty(t,i,{enumerable:!0,get:n})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,i){if(1&i&&(t=e(t)),8&i)return t;if(4&i&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(e.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&i&&"string"!=typeof t)for(var s in t)e.d(n,s,function(i){return t[i]}.bind(null,s));return n},e.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(i,"a",i),i},e.o=function(t,i){return Object.prototype.hasOwnProperty.call(t,i)},e.p="/public/assets/scripts/",e(e.s=4)}([function(t){var i=function(t){return function(t){return!!t&&"object"==typeof t}(t)&&!function(t){var i=Object.prototype.toString.call(t);return"[object RegExp]"===i||"[object Date]"===i||function(t){return t.$$typeof===e}(t)}(t)},e="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(t,i){return!1!==i.clone&&i.isMergeableObject(t)?o(Array.isArray(t)?[]:{},t,i):t}function s(t,i,e){return t.concat(i).map((function(t){return n(t,e)}))}function r(t){return Object.keys(t).concat(function(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter((function(i){return t.propertyIsEnumerable(i)})):[]}(t))}function o(t,e,h){(h=h||{}).arrayMerge=h.arrayMerge||s,h.isMergeableObject=h.isMergeableObject||i,h.cloneUnlessOtherwiseSpecified=n;var u=Array.isArray(e);return u===Array.isArray(t)?u?h.arrayMerge(t,e,h):function(t,i,e){var s={};return e.isMergeableObject(t)&&r(t).forEach((function(i){s[i]=n(t[i],e)})),r(i).forEach((function(r){(function(t,i){try{return i in t&&!(Object.hasOwnProperty.call(t,i)&&Object.propertyIsEnumerable.call(t,i))}catch(t){return!1}})(t,r)||(s[r]=e.isMergeableObject(i[r])&&t[r]?function(t,i){if(!i.customMerge)return o;var e=i.customMerge(t);return"function"==typeof e?e:o}(r,e)(t[r],i[r],e):n(i[r],e))})),s}(t,e,h):n(e,h)}o.all=function(t,i){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce((function(t,e){return o(t,e,i)}),{})},t.exports=o},function(t,i,e){(function(t,n){var s,r=e(3);s="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==t?t:n;var o=Object(r.a)(s);i.a=o}).call(this,e(5),e(6)(t))},function(t){
/*!
 * Fuse.js v3.4.5 - Lightweight fuzzy-search (http://fusejs.io)
 * 
 * Copyright (c) 2012-2017 Kirollos Risk (http://kiro.me)
 * All Rights Reserved. Apache Software License 2.0
 * 
 * http://www.apache.org/licenses/LICENSE-2.0
 */
t.exports=function(t){var i={};function e(n){if(i[n])return i[n].exports;var s=i[n]={i:n,l:!1,exports:{}};return t[n].call(s.exports,s,s.exports,e),s.l=!0,s.exports}return e.m=t,e.c=i,e.d=function(t,i,n){e.o(t,i)||Object.defineProperty(t,i,{enumerable:!0,get:n})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,i){if(1&i&&(t=e(t)),8&i)return t;if(4&i&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(e.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&i&&"string"!=typeof t)for(var s in t)e.d(n,s,function(i){return t[i]}.bind(null,s));return n},e.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(i,"a",i),i},e.o=function(t,i){return Object.prototype.hasOwnProperty.call(t,i)},e.p="",e(e.s=1)}([function(t){t.exports=function(t){return Array.isArray?Array.isArray(t):"[object Array]"===Object.prototype.toString.call(t)}},function(t,i,e){function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var s=e(2),r=e(8),o=e(0),h=function(){function t(i,e){var n=e.location,s=void 0===n?0:n,o=e.distance,h=void 0===o?100:o,u=e.threshold,c=void 0===u?.6:u,a=e.maxPatternLength,l=void 0===a?32:a,f=e.caseSensitive,d=void 0!==f&&f,v=e.tokenSeparator,p=void 0===v?/ +/g:v,m=e.findAllMatches,b=void 0!==m&&m,y=e.minMatchCharLength,g=void 0===y?1:y,w=e.id,O=void 0===w?null:w,I=e.keys,_=void 0===I?[]:I,E=e.shouldSort,C=void 0===E||E,S=e.getFn,j=void 0===S?r:S,k=e.sortFn,T=void 0===k?function(t,i){return t.score-i.score}:k,x=e.tokenize,A=void 0!==x&&x,L=e.matchAllTokens,M=void 0!==L&&L,P=e.includeMatches,N=void 0!==P&&P,D=e.includeScore,R=void 0!==D&&D,H=e.verbose,F=void 0!==H&&H;!function(t,i){if(!(t instanceof i))throw new TypeError("Cannot call a class as a function")}(this,t),this.options={location:s,distance:h,threshold:c,maxPatternLength:l,isCaseSensitive:d,tokenSeparator:p,findAllMatches:b,minMatchCharLength:g,id:O,keys:_,includeMatches:N,includeScore:R,shouldSort:C,getFn:j,sortFn:T,verbose:F,tokenize:A,matchAllTokens:M},this.setCollection(i)}var i;return(i=[{key:"setCollection",value:function(t){return this.list=t,t}},{key:"search",value:function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{limit:!1};this._log('---------\nSearch pattern: "'.concat(t,'"'));var e=this._prepareSearchers(t),n=e.tokenSearchers,s=e.fullSearcher,r=this._search(n,s),o=r.weights,h=r.results;return this._computeScore(o,h),this.options.shouldSort&&this._sort(h),i.limit&&"number"==typeof i.limit&&(h=h.slice(0,i.limit)),this._format(h)}},{key:"_prepareSearchers",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",i=[];if(this.options.tokenize)for(var e=t.split(this.options.tokenSeparator),n=0,r=e.length;n<r;n+=1)i.push(new s(e[n],this.options));return{tokenSearchers:i,fullSearcher:new s(t,this.options)}}},{key:"_search",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],i=arguments.length>1?arguments[1]:void 0,e=this.list,n={},s=[];if("string"==typeof e[0]){for(var r=0,o=e.length;r<o;r+=1)this._analyze({key:"",value:e[r],record:r,index:r},{resultMap:n,results:s,tokenSearchers:t,fullSearcher:i});return{weights:null,results:s}}for(var h={},u=0,c=e.length;u<c;u+=1)for(var a=e[u],l=0,f=this.options.keys.length;l<f;l+=1){var d=this.options.keys[l];if("string"!=typeof d){if(h[d.name]={weight:1-d.weight||1},d.weight<=0||d.weight>1)throw new Error("Key weight has to be > 0 and <= 1");d=d.name}else h[d]={weight:1};this._analyze({key:d,value:this.options.getFn(a,d),record:a,index:u},{resultMap:n,results:s,tokenSearchers:t,fullSearcher:i})}return{weights:h,results:s}}},{key:"_analyze",value:function(t,i){var e=t.key,n=t.arrayIndex,s=void 0===n?-1:n,r=t.value,h=t.record,u=t.index,c=i.tokenSearchers,a=void 0===c?[]:c,l=i.fullSearcher,f=void 0===l?[]:l,d=i.resultMap,v=void 0===d?{}:d,p=i.results,m=void 0===p?[]:p;if(null!=r){var b=!1,y=-1,g=0;if("string"==typeof r){this._log("\nKey: ".concat(""===e?"-":e));var w=f.search(r);if(this._log('Full text: "'.concat(r,'", score: ').concat(w.score)),this.options.tokenize){for(var O=r.split(this.options.tokenSeparator),I=[],_=0;_<a.length;_+=1){var E=a[_];this._log('\nPattern: "'.concat(E.pattern,'"'));for(var C=!1,S=0;S<O.length;S+=1){var j=O[S],k=E.search(j),T={};k.isMatch?(T[j]=k.score,b=!0,C=!0,I.push(k.score)):(T[j]=1,this.options.matchAllTokens||I.push(1)),this._log('Token: "'.concat(j,'", score: ').concat(T[j]))}C&&(g+=1)}y=I[0];for(var x=I.length,A=1;A<x;A+=1)y+=I[A];this._log("Token score average:",y/=x)}var L=w.score;y>-1&&(L=(L+y)/2),this._log("Score average:",L);var M=!this.options.tokenize||!this.options.matchAllTokens||g>=a.length;if(this._log("\nCheck Matches: ".concat(M)),(b||w.isMatch)&&M){var P=v[u];P?P.output.push({key:e,arrayIndex:s,value:r,score:L,matchedIndices:w.matchedIndices}):(v[u]={item:h,output:[{key:e,arrayIndex:s,value:r,score:L,matchedIndices:w.matchedIndices}]},m.push(v[u]))}}else if(o(r))for(var N=0,D=r.length;N<D;N+=1)this._analyze({key:e,arrayIndex:N,value:r[N],record:h,index:u},{resultMap:v,results:m,tokenSearchers:a,fullSearcher:f})}}},{key:"_computeScore",value:function(t,i){this._log("\n\nComputing score:\n");for(var e=0,n=i.length;e<n;e+=1){for(var s=i[e].output,r=s.length,o=1,h=1,u=0;u<r;u+=1){var c=t?t[s[u].key].weight:1,a=(1===c?s[u].score:s[u].score||.001)*c;1!==c?h=Math.min(h,a):(s[u].nScore=a,o*=a)}i[e].score=1===h?o:h,this._log(i[e])}}},{key:"_sort",value:function(t){this._log("\n\nSorting...."),t.sort(this.options.sortFn)}},{key:"_format",value:function(t){var i=[];if(this.options.verbose){var e=[];this._log("\n\nOutput:\n\n",JSON.stringify(t,(function(t,i){if("object"===n(i)&&null!==i){if(-1!==e.indexOf(i))return;e.push(i)}return i}))),e=null}var s=[];this.options.includeMatches&&s.push((function(t,i){var e=t.output;i.matches=[];for(var n=0,s=e.length;n<s;n+=1){var r=e[n];if(0!==r.matchedIndices.length){var o={indices:r.matchedIndices,value:r.value};r.key&&(o.key=r.key),r.hasOwnProperty("arrayIndex")&&r.arrayIndex>-1&&(o.arrayIndex=r.arrayIndex),i.matches.push(o)}}})),this.options.includeScore&&s.push((function(t,i){i.score=t.score}));for(var r=0,o=t.length;r<o;r+=1){var h=t[r];if(this.options.id&&(h.item=this.options.getFn(h.item,this.options.id)[0]),s.length){for(var u={item:h.item},c=0,a=s.length;c<a;c+=1)s[c](h,u);i.push(u)}else i.push(h.item)}return i}},{key:"_log",value:function(){var t;this.options.verbose&&(t=console).log.apply(t,arguments)}}])&&function(t,i){for(var e=0;e<i.length;e++){var n=i[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(t.prototype,i),t}();t.exports=h},function(t,i,e){var n=e(3),s=e(4),r=e(7),o=function(){function t(i,e){var n=e.location,s=void 0===n?0:n,o=e.distance,h=void 0===o?100:o,u=e.threshold,c=void 0===u?.6:u,a=e.maxPatternLength,l=void 0===a?32:a,f=e.isCaseSensitive,d=void 0!==f&&f,v=e.tokenSeparator,p=void 0===v?/ +/g:v,m=e.findAllMatches,b=void 0!==m&&m,y=e.minMatchCharLength,g=void 0===y?1:y;!function(t,i){if(!(t instanceof i))throw new TypeError("Cannot call a class as a function")}(this,t),this.options={location:s,distance:h,threshold:c,maxPatternLength:l,isCaseSensitive:d,tokenSeparator:p,findAllMatches:b,minMatchCharLength:g},this.pattern=this.options.isCaseSensitive?i:i.toLowerCase(),this.pattern.length<=l&&(this.patternAlphabet=r(this.pattern))}var i;return(i=[{key:"search",value:function(t){if(this.options.isCaseSensitive||(t=t.toLowerCase()),this.pattern===t)return{isMatch:!0,score:0,matchedIndices:[[0,t.length-1]]};var i=this.options;if(this.pattern.length>i.maxPatternLength)return n(t,this.pattern,i.tokenSeparator);var e=this.options;return s(t,this.pattern,this.patternAlphabet,{location:e.location,distance:e.distance,threshold:e.threshold,findAllMatches:e.findAllMatches,minMatchCharLength:e.minMatchCharLength})}}])&&function(t,i){for(var e=0;e<i.length;e++){var n=i[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(t.prototype,i),t}();t.exports=o},function(t){var i=/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g;t.exports=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:/ +/g,s=new RegExp(e.replace(i,"\\$&").replace(n,"|")),r=t.match(s),o=!!r,h=[];if(o)for(var u=0,c=r.length;u<c;u+=1){var a=r[u];h.push([t.indexOf(a),a.length-1])}return{score:o?.5:1,isMatch:o,matchedIndices:h}}},function(t,i,e){var n=e(5),s=e(6);t.exports=function(t,i,e,r){for(var o=r.location,h=r.distance,u=void 0===h?100:h,c=r.threshold,a=r.findAllMatches,l=void 0!==a&&a,f=r.minMatchCharLength,d=void 0===f?1:f,v=void 0===o?0:o,p=t.length,m=void 0===c?.6:c,b=t.indexOf(i,v),y=i.length,g=[],w=0;w<p;w+=1)g[w]=0;if(-1!==b){var O=n(i,{errors:0,currentLocation:b,expectedLocation:v,distance:u});if(m=Math.min(O,m),-1!==(b=t.lastIndexOf(i,v+y))){var I=n(i,{errors:0,currentLocation:b,expectedLocation:v,distance:u});m=Math.min(I,m)}}b=-1;for(var _=[],E=1,C=y+p,S=1<<y-1,j=0;j<y;j+=1){for(var k=0,T=C;k<T;)n(i,{errors:j,currentLocation:v+T,expectedLocation:v,distance:u})<=m?k=T:C=T,T=Math.floor((C-k)/2+k);C=T;var x=Math.max(1,v-T+1),A=l?p:Math.min(v+T,p)+y,L=Array(A+2);L[A+1]=(1<<j)-1;for(var M=A;M>=x;M-=1){var P=M-1,N=e[t.charAt(P)];if(N&&(g[P]=1),L[M]=(L[M+1]<<1|1)&N,0!==j&&(L[M]|=(_[M+1]|_[M])<<1|1|_[M+1]),L[M]&S&&(E=n(i,{errors:j,currentLocation:P,expectedLocation:v,distance:u}))<=m){if(m=E,(b=P)<=v)break;x=Math.max(1,2*v-b)}}if(n(i,{errors:j+1,currentLocation:v,expectedLocation:v,distance:u})>m)break;_=L}return{isMatch:b>=0,score:0===E?.001:E,matchedIndices:s(g,d)}}},function(t){t.exports=function(t,i){var e=i.errors,n=i.currentLocation,s=i.expectedLocation,r=i.distance,o=void 0===r?100:r,h=(void 0===e?0:e)/t.length,u=Math.abs((void 0===s?0:s)-(void 0===n?0:n));return o?h+u/o:u?1:h}},function(t){t.exports=function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,e=[],n=-1,s=-1,r=0,o=t.length;r<o;r+=1){var h=t[r];h&&-1===n?n=r:h||-1===n||((s=r-1)-n+1>=i&&e.push([n,s]),n=-1)}return t[r-1]&&r-n>=i&&e.push([n,r-1]),e}},function(t){t.exports=function(t){for(var i={},e=t.length,n=0;n<e;n+=1)i[t.charAt(n)]=0;for(var s=0;s<e;s+=1)i[t.charAt(s)]|=1<<e-s-1;return i}},function(t,i,e){var n=e(0);t.exports=function(t,i){return function t(i,e,s){if(e){var r=e.indexOf("."),o=e,h=null;-1!==r&&(o=e.slice(0,r),h=e.slice(r+1));var u=i[o];if(null!=u)if(h||"string"!=typeof u&&"number"!=typeof u)if(n(u))for(var c=0,a=u.length;c<a;c+=1)t(u[c],h,s);else h&&t(u,h,s);else s.push(u.toString())}else s.push(i);return s}(t,i,[])}}])},function(t,i,e){function n(t){var i,e=t.Symbol;return"function"==typeof e?e.observable?i=e.observable:(i=e("observable"),e.observable=i):i="@@observable",i}e.d(i,"a",(function(){return n}))},function(t,i,e){t.exports=e(7)},function(t){var i;i=function(){return this}();try{i=i||new Function("return this")()}catch(t){"object"==typeof window&&(i=window)}t.exports=i},function(t){t.exports=function(t){if(!t.webpackPolyfill){var i=Object.create(t);i.children||(i.children=[]),Object.defineProperty(i,"loaded",{enumerable:!0,get:function(){return i.l}}),Object.defineProperty(i,"id",{enumerable:!0,get:function(){return i.i}}),Object.defineProperty(i,"exports",{enumerable:!0}),i.webpackPolyfill=1}return i}},function(t,i,e){e.r(i);var n=e(2),s=e.n(n),r=e(0),o=e.n(r),h=e(1),u=function(){return Math.random().toString(36).substring(7).split("").join(".")},c={INIT:"@@redux/INIT"+u(),REPLACE:"@@redux/REPLACE"+u(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+u()}};function a(t){if("object"!=typeof t||null===t)return!1;for(var i=t;null!==Object.getPrototypeOf(i);)i=Object.getPrototypeOf(i);return Object.getPrototypeOf(t)===i}function l(t,i,e){var n;if("function"==typeof i&&"function"==typeof e||"function"==typeof e&&"function"==typeof arguments[3])throw new Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function.");if("function"==typeof i&&void 0===e&&(e=i,i=void 0),void 0!==e){if("function"!=typeof e)throw new Error("Expected the enhancer to be a function.");return e(l)(t,i)}if("function"!=typeof t)throw new Error("Expected the reducer to be a function.");var s=t,r=i,o=[],u=o,f=!1;function d(){u===o&&(u=o.slice())}function v(){if(f)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return r}function p(t){if("function"!=typeof t)throw new Error("Expected the listener to be a function.");if(f)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribe(listener) for more details.");var i=!0;return d(),u.push(t),function(){if(i){if(f)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribe(listener) for more details.");i=!1,d();var e=u.indexOf(t);u.splice(e,1)}}}function m(t){if(!a(t))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===t.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(f)throw new Error("Reducers may not dispatch actions.");try{f=!0,r=s(r,t)}finally{f=!1}for(var i=o=u,e=0;e<i.length;e++)(0,i[e])();return t}return m({type:c.INIT}),(n={dispatch:m,subscribe:p,getState:v,replaceReducer:function(t){if("function"!=typeof t)throw new Error("Expected the nextReducer to be a function.");s=t,m({type:c.REPLACE})}})[h.a]=function(){var t,i=p;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new TypeError("Expected the observer to be an object.");function e(){t.next&&t.next(v())}return e(),{unsubscribe:i(e)}}})[h.a]=function(){return this},t},n}function f(t,i){var e=i&&i.type;return"Given "+(e&&'action "'+String(e)+'"'||"an action")+', reducer "'+t+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.'}var d,v=[],p=[],m=[],b={loading:!1},y=function(t){return Array.from({length:t},(function(){return Math.floor(36*Math.random()+0).toString(36)})).join("")},g=function(t){return Object.prototype.toString.call(t).slice(8,-1)},w=function(t,i){return null!=i&&g(i)===t},O=function(t){return"string"!=typeof t?t:t.replace(/&/g,"&amp;").replace(/>/g,"&rt;").replace(/</g,"&lt;").replace(/"/g,"&quot;")},I=(d=document.createElement("div"),function(t){var i=t.trim();d.innerHTML=i;for(var e=d.children[0];d.firstChild;)d.removeChild(d.firstChild);return e}),_=function(t,i){return t.score-i.score},E=function(t){return JSON.parse(JSON.stringify(t))},C=function(t){for(var i=Object.keys(t),e={},n=0;n<i.length;n++){var s=i[n];"function"==typeof t[s]&&(e[s]=t[s])}var r,o=Object.keys(e);try{!function(t){Object.keys(t).forEach((function(i){var e=t[i];if(void 0===e(void 0,{type:c.INIT}))throw new Error('Reducer "'+i+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");if(void 0===e(void 0,{type:c.PROBE_UNKNOWN_ACTION()}))throw new Error('Reducer "'+i+"\" returned undefined when probed with a random type. Don't try to handle "+c.INIT+' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.')}))}(e)}catch(t){r=t}return function(t,i){if(void 0===t&&(t={}),r)throw r;for(var n=!1,s={},h=0;h<o.length;h++){var u=o[h],c=t[u],a=(0,e[u])(c,i);if(void 0===a){var l=f(u,i);throw new Error(l)}s[u]=a,n=n||a!==c}return n?s:t}}({items:function(t,i){switch(void 0===t&&(t=v),i.type){case"ADD_ITEM":return[].concat(t,[{id:i.id,choiceId:i.choiceId,groupId:i.groupId,value:i.value,label:i.label,active:!0,highlighted:!1,customProperties:i.customProperties,placeholder:i.placeholder||!1,keyCode:null}]).map((function(t){var i=t;return i.highlighted=!1,i}));case"REMOVE_ITEM":return t.map((function(t){var e=t;return e.id===i.id&&(e.active=!1),e}));case"HIGHLIGHT_ITEM":return t.map((function(t){var e=t;return e.id===i.id&&(e.highlighted=i.highlighted),e}));default:return t}},groups:function(t,i){switch(void 0===t&&(t=p),i.type){case"ADD_GROUP":return[].concat(t,[{id:i.id,value:i.value,active:i.active,disabled:i.disabled}]);case"CLEAR_CHOICES":return[];default:return t}},choices:function(t,i){switch(void 0===t&&(t=m),i.type){case"ADD_CHOICE":return[].concat(t,[{id:i.id,elementId:i.elementId,groupId:i.groupId,value:i.value,label:i.label||i.value,disabled:i.disabled||!1,selected:!1,active:!0,score:9999,customProperties:i.customProperties,placeholder:i.placeholder||!1,keyCode:null}]);case"ADD_ITEM":return i.activateOptions?t.map((function(t){var e=t;return e.active=i.active,e})):i.choiceId>-1?t.map((function(t){var e=t;return e.id===parseInt(i.choiceId,10)&&(e.selected=!0),e})):t;case"REMOVE_ITEM":return i.choiceId>-1?t.map((function(t){var e=t;return e.id===parseInt(i.choiceId,10)&&(e.selected=!1),e})):t;case"FILTER_CHOICES":return t.map((function(t){var e=t;return e.active=i.results.some((function(t){return t.item.id===e.id&&(e.score=t.score,!0)})),e}));case"ACTIVATE_CHOICES":return t.map((function(t){var e=t;return e.active=i.active,e}));case"CLEAR_CHOICES":return m;default:return t}},general:function(t,i){switch(void 0===t&&(t=b),i.type){case"SET_IS_LOADING":return{loading:i.isLoading};default:return t}}}),S=function(t,i){var e=t;if("CLEAR_ALL"===i.type)e=void 0;else if("RESET_TO"===i.type)return E(i.state);return C(e,i)},j=function(){function t(){this._store=l(S,window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__())}var i,e=t.prototype;return e.subscribe=function(t){this._store.subscribe(t)},e.dispatch=function(t){this._store.dispatch(t)},e.isLoading=function(){return this.state.general.loading},e.getChoiceById=function(t){return this.activeChoices.find((function(i){return i.id===parseInt(t,10)}))},e.getGroupById=function(t){return this.groups.find((function(i){return i.id===t}))},(i=[{key:"state",get:function(){return this._store.getState()}},{key:"items",get:function(){return this.state.items}},{key:"activeItems",get:function(){return this.items.filter((function(t){return!0===t.active}))}},{key:"highlightedActiveItems",get:function(){return this.items.filter((function(t){return t.active&&t.highlighted}))}},{key:"choices",get:function(){return this.state.choices}},{key:"activeChoices",get:function(){return this.choices.filter((function(t){return!0===t.active}))}},{key:"selectableChoices",get:function(){return this.choices.filter((function(t){return!0!==t.disabled}))}},{key:"searchableChoices",get:function(){return this.selectableChoices.filter((function(t){return!0!==t.placeholder}))}},{key:"placeholderChoice",get:function(){return[].concat(this.choices).reverse().find((function(t){return!0===t.placeholder}))}},{key:"groups",get:function(){return this.state.groups}},{key:"activeGroups",get:function(){var t=this.choices;return this.groups.filter((function(i){var e=!0===i.active&&!1===i.disabled,n=t.some((function(t){return!0===t.active&&!1===t.disabled}));return e&&n}),[])}}])&&function(t,i){for(var e=0;e<i.length;e++){var n=i[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(t.prototype,i),t}(),k=function(){function t(t){var i=t.type,e=t.classNames;this.element=t.element,this.classNames=e,this.type=i,this.isActive=!1}var i,e=t.prototype;return e.getChild=function(t){return this.element.querySelector(t)},e.show=function(){return this.element.classList.add(this.classNames.activeState),this.element.setAttribute("aria-expanded","true"),this.isActive=!0,this},e.hide=function(){return this.element.classList.remove(this.classNames.activeState),this.element.setAttribute("aria-expanded","false"),this.isActive=!1,this},(i=[{key:"distanceFromTopWindow",get:function(){return this.element.getBoundingClientRect().bottom}}])&&function(t,i){for(var e=0;e<i.length;e++){var n=i[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(t.prototype,i),t}(),T={items:[],choices:[],silent:!1,renderChoiceLimit:-1,maxItemCount:-1,addItems:!0,addItemFilter:null,removeItems:!0,removeItemButton:!1,editItems:!1,duplicateItemsAllowed:!0,delimiter:",",paste:!0,searchEnabled:!0,searchChoices:!0,searchFloor:1,searchResultLimit:4,searchFields:["label","value"],position:"auto",resetScrollPosition:!0,shouldSort:!0,shouldSortItems:!1,sorter:function(t,i){var e=t.label,n=i.label;return(void 0===e?t.value:e).localeCompare(void 0===n?i.value:n,[],{sensitivity:"base",ignorePunctuation:!0,numeric:!0})},placeholder:!0,placeholderValue:null,searchPlaceholderValue:null,prependValue:null,appendValue:null,renderSelectedChoices:"auto",loadingText:"Loading...",noResultsText:"No results found",noChoicesText:"No choices to choose from",itemSelectText:"Press to select",uniqueItemText:"Only unique values can be added",customAddItemText:"Only values matching specific conditions can be added",addItemText:function(t){return'Press Enter to add <b>"'+O(t)+'"</b>'},maxItemText:function(t){return"Only "+t+" values can be added"},valueComparer:function(t,i){return t===i},fuseOptions:{includeScore:!0},callbackOnInit:null,callbackOnCreateTemplates:null,classNames:{containerOuter:"choices",containerInner:"choices__inner",input:"choices__input",inputCloned:"choices__input--cloned",list:"choices__list",listItems:"choices__list--multiple",listSingle:"choices__list--single",listDropdown:"choices__list--dropdown",item:"choices__item",itemSelectable:"choices__item--selectable",itemDisabled:"choices__item--disabled",itemChoice:"choices__item--choice",placeholder:"choices__placeholder",group:"choices__group",groupHeading:"choices__heading",button:"choices__button",activeState:"is-active",focusState:"is-focused",openState:"is-open",disabledState:"is-disabled",highlightedState:"is-highlighted",selectedState:"is-selected",flippedState:"is-flipped",loadingState:"is-loading",noResults:"has-no-results",noChoices:"has-no-choices"}},x="highlightItem",A="text",L="select-one",M="select-multiple",P=function(){function t(t){var i=t.type,e=t.classNames,n=t.position;this.element=t.element,this.classNames=e,this.type=i,this.position=n,this.isOpen=!1,this.isFlipped=!1,this.isFocussed=!1,this.isDisabled=!1,this.isLoading=!1,this._onFocus=this._onFocus.bind(this),this._onBlur=this._onBlur.bind(this)}var i=t.prototype;return i.addEventListeners=function(){this.element.addEventListener("focus",this._onFocus),this.element.addEventListener("blur",this._onBlur)},i.removeEventListeners=function(){this.element.removeEventListener("focus",this._onFocus),this.element.removeEventListener("blur",this._onBlur)},i.shouldFlip=function(t){if("number"!=typeof t)return!1;var i=!1;return"auto"===this.position?i=!window.matchMedia("(min-height: "+(t+1)+"px)").matches:"top"===this.position&&(i=!0),i},i.setActiveDescendant=function(t){this.element.setAttribute("aria-activedescendant",t)},i.removeActiveDescendant=function(){this.element.removeAttribute("aria-activedescendant")},i.open=function(t){this.element.classList.add(this.classNames.openState),this.element.setAttribute("aria-expanded","true"),this.isOpen=!0,this.shouldFlip(t)&&(this.element.classList.add(this.classNames.flippedState),this.isFlipped=!0)},i.close=function(){this.element.classList.remove(this.classNames.openState),this.element.setAttribute("aria-expanded","false"),this.removeActiveDescendant(),this.isOpen=!1,this.isFlipped&&(this.element.classList.remove(this.classNames.flippedState),this.isFlipped=!1)},i.focus=function(){this.isFocussed||this.element.focus()},i.addFocusState=function(){this.element.classList.add(this.classNames.focusState)},i.removeFocusState=function(){this.element.classList.remove(this.classNames.focusState)},i.enable=function(){this.element.classList.remove(this.classNames.disabledState),this.element.removeAttribute("aria-disabled"),this.type===L&&this.element.setAttribute("tabindex","0"),this.isDisabled=!1},i.disable=function(){this.element.classList.add(this.classNames.disabledState),this.element.setAttribute("aria-disabled","true"),this.type===L&&this.element.setAttribute("tabindex","-1"),this.isDisabled=!0},i.wrap=function(t){!function(t,i){void 0===i&&(i=document.createElement("div")),t.nextSibling?t.parentNode.insertBefore(i,t.nextSibling):t.parentNode.appendChild(i),i.appendChild(t)}(t,this.element)},i.unwrap=function(t){this.element.parentNode.insertBefore(t,this.element),this.element.parentNode.removeChild(this.element)},i.addLoadingState=function(){this.element.classList.add(this.classNames.loadingState),this.element.setAttribute("aria-busy","true"),this.isLoading=!0},i.removeLoadingState=function(){this.element.classList.remove(this.classNames.loadingState),this.element.removeAttribute("aria-busy"),this.isLoading=!1},i._onFocus=function(){this.isFocussed=!0},i._onBlur=function(){this.isFocussed=!1},t}(),N=function(){function t(t){var i=t.element,e=t.type,n=t.classNames,s=t.preventPaste;this.element=i,this.type=e,this.classNames=n,this.preventPaste=s,this.isFocussed=this.element===document.activeElement,this.isDisabled=i.disabled,this._onPaste=this._onPaste.bind(this),this._onInput=this._onInput.bind(this),this._onFocus=this._onFocus.bind(this),this._onBlur=this._onBlur.bind(this)}var i,e=t.prototype;return e.addEventListeners=function(){this.element.addEventListener("paste",this._onPaste),this.element.addEventListener("input",this._onInput,{passive:!0}),this.element.addEventListener("focus",this._onFocus,{passive:!0}),this.element.addEventListener("blur",this._onBlur,{passive:!0})},e.removeEventListeners=function(){this.element.removeEventListener("input",this._onInput,{passive:!0}),this.element.removeEventListener("paste",this._onPaste),this.element.removeEventListener("focus",this._onFocus,{passive:!0}),this.element.removeEventListener("blur",this._onBlur,{passive:!0})},e.enable=function(){this.element.removeAttribute("disabled"),this.isDisabled=!1},e.disable=function(){this.element.setAttribute("disabled",""),this.isDisabled=!0},e.focus=function(){this.isFocussed||this.element.focus()},e.blur=function(){this.isFocussed&&this.element.blur()},e.clear=function(t){return void 0===t&&(t=!0),this.element.value&&(this.element.value=""),t&&this.setWidth(),this},e.setWidth=function(){var t=this.element,i=t.style,e=t.value;i.minWidth=t.placeholder.length+1+"ch",i.width=e.length+1+"ch"},e.setActiveDescendant=function(t){this.element.setAttribute("aria-activedescendant",t)},e.removeActiveDescendant=function(){this.element.removeAttribute("aria-activedescendant")},e._onInput=function(){this.type!==L&&this.setWidth()},e._onPaste=function(t){this.preventPaste&&t.preventDefault()},e._onFocus=function(){this.isFocussed=!0},e._onBlur=function(){this.isFocussed=!1},(i=[{key:"placeholder",set:function(t){this.element.placeholder=t}},{key:"value",get:function(){return O(this.element.value)},set:function(t){this.element.value=t}}])&&function(t,i){for(var e=0;e<i.length;e++){var n=i[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(t.prototype,i),t}(),D=function(){function t(t){this.element=t.element,this.scrollPos=this.element.scrollTop,this.height=this.element.offsetHeight}var i=t.prototype;return i.clear=function(){this.element.innerHTML=""},i.append=function(t){this.element.appendChild(t)},i.getChild=function(t){return this.element.querySelector(t)},i.hasChildren=function(){return this.element.hasChildNodes()},i.scrollToTop=function(){this.element.scrollTop=0},i.scrollToChildElement=function(t,i){var e=this;if(t){var n=i>0?this.element.scrollTop+(t.offsetTop+t.offsetHeight)-(this.element.scrollTop+this.element.offsetHeight):t.offsetTop;requestAnimationFrame((function(){e._animateScroll(n,i)}))}},i._scrollDown=function(t,i,e){var n=(e-t)/i;this.element.scrollTop=t+(n>1?n:1)},i._scrollUp=function(t,i,e){var n=(t-e)/i;this.element.scrollTop=t-(n>1?n:1)},i._animateScroll=function(t,i){var e=this,n=this.element.scrollTop,s=!1;i>0?(this._scrollDown(n,4,t),n<t&&(s=!0)):(this._scrollUp(n,4,t),n>t&&(s=!0)),s&&requestAnimationFrame((function(){e._animateScroll(t,i)}))},t}(),R=function(){function t(t){var i=t.element,e=t.classNames;if(this.element=i,this.classNames=e,!(i instanceof HTMLInputElement||i instanceof HTMLSelectElement))throw new TypeError("Invalid element passed");this.isDisabled=!1}var i,e=t.prototype;return e.conceal=function(){this.element.classList.add(this.classNames.input),this.element.hidden=!0,this.element.tabIndex=-1;var t=this.element.getAttribute("style");t&&this.element.setAttribute("data-choice-orig-style",t),this.element.setAttribute("data-choice","active")},e.reveal=function(){this.element.classList.remove(this.classNames.input),this.element.hidden=!1,this.element.removeAttribute("tabindex");var t=this.element.getAttribute("data-choice-orig-style");t?(this.element.removeAttribute("data-choice-orig-style"),this.element.setAttribute("style",t)):this.element.removeAttribute("style"),this.element.removeAttribute("data-choice"),this.element.value=this.element.value},e.enable=function(){this.element.removeAttribute("disabled"),this.element.disabled=!1,this.isDisabled=!1},e.disable=function(){this.element.setAttribute("disabled",""),this.element.disabled=!0,this.isDisabled=!0},e.triggerEvent=function(t,i){!function(t,i,e){void 0===e&&(e=null);var n=new CustomEvent(i,{detail:e,bubbles:!0,cancelable:!0});t.dispatchEvent(n)}(this.element,t,i)},(i=[{key:"isActive",get:function(){return"active"===this.element.dataset.choice}},{key:"dir",get:function(){return this.element.dir}},{key:"value",get:function(){return this.element.value},set:function(t){this.element.value=t}}])&&function(t,i){for(var e=0;e<i.length;e++){var n=i[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(t.prototype,i),t}(),H=function(t){var i,e,n;function s(i){var e,n=i.delimiter;return(e=t.call(this,{element:i.element,classNames:i.classNames})||this).delimiter=n,e}return e=t,(i=s).prototype=Object.create(e.prototype),i.prototype.constructor=i,i.__proto__=e,(n=[{key:"value",get:function(){return this.element.value},set:function(t){var i=t.map((function(t){return t.value})).join(this.delimiter);this.element.setAttribute("value",i),this.element.value=i}}])&&function(t,i){for(var e=0;e<i.length;e++){var n=i[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(s.prototype,n),s}(R),F=function(t){var i,e,n;function s(i){var e,n=i.template;return(e=t.call(this,{element:i.element,classNames:i.classNames})||this).template=n,e}return e=t,(i=s).prototype=Object.create(e.prototype),i.prototype.constructor=i,i.__proto__=e,s.prototype.appendDocFragment=function(t){this.element.innerHTML="",this.element.appendChild(t)},(n=[{key:"placeholderOption",get:function(){return this.element.querySelector('option[value=""]')||this.element.querySelector("option[placeholder]")}},{key:"optionGroups",get:function(){return Array.from(this.element.getElementsByTagName("OPTGROUP"))}},{key:"options",get:function(){return Array.from(this.element.options)},set:function(t){var i=this,e=document.createDocumentFragment();t.forEach((function(t){return n=i.template(t),void e.appendChild(n);var n})),this.appendDocFragment(e)}}])&&function(t,i){for(var e=0;e<i.length;e++){var n=i[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(s.prototype,n),s}(R),V={containerOuter:function(t,i,e,n,s,r){var o=t.containerOuter,h=Object.assign(document.createElement("div"),{className:o});return h.dataset.type=r,i&&(h.dir=i),n&&(h.tabIndex=0),e&&(h.setAttribute("role",s?"combobox":"listbox"),s&&h.setAttribute("aria-autocomplete","list")),h.setAttribute("aria-haspopup","true"),h.setAttribute("aria-expanded","false"),h},containerInner:function(t){var i=t.containerInner;return Object.assign(document.createElement("div"),{className:i})},itemList:function(t,i){var e=t.list,n=t.listSingle,s=t.listItems;return Object.assign(document.createElement("div"),{className:e+" "+(i?n:s)})},placeholder:function(t,i){var e=t.placeholder;return Object.assign(document.createElement("div"),{className:e,innerHTML:i})},item:function(t,i,e){var n=t.item,s=t.button,r=t.highlightedState,o=t.itemSelectable,h=t.placeholder,u=i.id,c=i.value,a=i.label,l=i.customProperties,f=i.active,d=i.disabled,v=i.highlighted,p=i.placeholder,m=Object.assign(document.createElement("div"),{className:n,innerHTML:a});if(Object.assign(m.dataset,{item:"",id:u,value:c,customProperties:l}),f&&m.setAttribute("aria-selected","true"),d&&m.setAttribute("aria-disabled","true"),p&&m.classList.add(h),m.classList.add(v?r:o),e){d&&m.classList.remove(o),m.dataset.deletable="";var b=Object.assign(document.createElement("button"),{type:"button",className:s,innerHTML:"Remove item"});b.setAttribute("aria-label","Remove item: '"+c+"'"),b.dataset.button="",m.appendChild(b)}return m},choiceList:function(t,i){var e=t.list,n=Object.assign(document.createElement("div"),{className:e});return i||n.setAttribute("aria-multiselectable","true"),n.setAttribute("role","listbox"),n},choiceGroup:function(t,i){var e=t.group,n=t.groupHeading,s=t.itemDisabled,r=i.id,o=i.value,h=i.disabled,u=Object.assign(document.createElement("div"),{className:e+" "+(h?s:"")});return u.setAttribute("role","group"),Object.assign(u.dataset,{group:"",id:r,value:o}),h&&u.setAttribute("aria-disabled","true"),u.appendChild(Object.assign(document.createElement("div"),{className:n,innerHTML:o})),u},choice:function(t,i,e){var n=t.item,s=t.itemChoice,r=t.itemSelectable,o=t.selectedState,h=t.itemDisabled,u=t.placeholder,c=i.id,a=i.value,l=i.label,f=i.groupId,d=i.elementId,v=i.disabled,p=i.selected,m=i.placeholder,b=Object.assign(document.createElement("div"),{id:d,innerHTML:l,className:n+" "+s});return p&&b.classList.add(o),m&&b.classList.add(u),b.setAttribute("role",f>0?"treeitem":"option"),Object.assign(b.dataset,{choice:"",id:c,value:a,selectText:e}),v?(b.classList.add(h),b.dataset.choiceDisabled="",b.setAttribute("aria-disabled","true")):(b.classList.add(r),b.dataset.choiceSelectable=""),b},input:function(t,i){var e=t.input,n=t.inputCloned,s=Object.assign(document.createElement("input"),{type:"text",className:e+" "+n,autocomplete:"off",autocapitalize:"off",spellcheck:!1});return s.setAttribute("role","textbox"),s.setAttribute("aria-autocomplete","list"),s.setAttribute("aria-label",i),s},dropdown:function(t){var i=t.list,e=t.listDropdown,n=document.createElement("div");return n.classList.add(i,e),n.setAttribute("aria-expanded","false"),n},notice:function(t,i,e){var n=t.noResults;void 0===e&&(e="");var s=[t.item,t.itemChoice];return"no-choices"===e?s.push(t.noChoices):"no-results"===e&&s.push(n),Object.assign(document.createElement("div"),{innerHTML:i,className:s.join(" ")})},option:function(t){var i=t.customProperties,e=t.disabled,n=new Option(t.label,t.value,!1,t.active);return i&&(n.dataset.customProperties=i),n.disabled=e,n}},G=function(t){return void 0===t&&(t=!0),{type:"ACTIVATE_CHOICES",active:t}},q=function(t,i){return{type:"HIGHLIGHT_ITEM",id:t,highlighted:i}},K=function(t){return{type:"ADD_GROUP",value:t.value,id:t.id,active:t.active,disabled:t.disabled}},U=function(t){return{type:"SET_IS_LOADING",isLoading:t}};function z(t,i){for(var e=0;e<i.length;e++){var n=i[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var J="-ms-scroll-limit"in document.documentElement.style&&"-ms-ime-align"in document.documentElement.style,B={},W=function(){var t,i;function e(t,i){var n=this;void 0===t&&(t="[data-choice]"),void 0===i&&(i={}),this.config=o.a.all([T,e.defaults.options,i],{arrayMerge:function(t,i){return[].concat(i)}});var s=function(t,i){var e=Object.keys(t).sort(),n=Object.keys(i).sort();return e.filter((function(t){return n.indexOf(t)<0}))}(this.config,T);s.length&&console.warn("Unknown config option(s) passed",s.join(", "));var r="string"==typeof t?document.querySelector(t):t;if(!(r instanceof HTMLInputElement||r instanceof HTMLSelectElement))throw TypeError("Expected one of the following types text|select-one|select-multiple");if(this._isTextElement=r.type===A,this._isSelectOneElement=r.type===L,this._isSelectMultipleElement=r.type===M,this._isSelectElement=this._isSelectOneElement||this._isSelectMultipleElement,this.config.searchEnabled=this._isSelectMultipleElement||this.config.searchEnabled,["auto","always"].includes(this.config.renderSelectedChoices)||(this.config.renderSelectedChoices="auto"),i.addItemFilter&&"function"!=typeof i.addItemFilter){var h=i.addItemFilter instanceof RegExp?i.addItemFilter:new RegExp(i.addItemFilter);this.config.addItemFilter=h.test.bind(h)}if(this.passedElement=this._isTextElement?new H({element:r,classNames:this.config.classNames,delimiter:this.config.delimiter}):new F({element:r,classNames:this.config.classNames,template:function(t){return n._templates.option(t)}}),this.initialised=!1,this._store=new j,this._initialState={},this._currentState={},this._prevState={},this._currentValue="",this._canSearch=this.config.searchEnabled,this._isScrollingOnIe=!1,this._highlightPosition=0,this._wasTap=!0,this._placeholderValue=this._generatePlaceholderValue(),this._baseId=function(t){return"choices--"+(t.id||t.name&&t.name+"-"+y(2)||y(4)).replace(/(:|\.|\[|\]|,)/g,"")}(this.passedElement.element),this._direction=this.passedElement.dir,!this._direction){var u=window.getComputedStyle(this.passedElement.element).direction;u!==window.getComputedStyle(document.documentElement).direction&&(this._direction=u)}if(this._idNames={itemChoice:"item-choice"},this._presetGroups=this.passedElement.optionGroups,this._presetOptions=this.passedElement.options,this._presetChoices=this.config.choices,this._presetItems=this.config.items,this.passedElement.value&&(this._presetItems=this._presetItems.concat(this.passedElement.value.split(this.config.delimiter))),this.passedElement.options&&this.passedElement.options.forEach((function(t){n._presetChoices.push({value:t.value,label:t.innerHTML,selected:t.selected,disabled:t.disabled||t.parentNode.disabled,placeholder:""===t.value||t.hasAttribute("placeholder"),customProperties:t.getAttribute("data-custom-properties")})})),this._render=this._render.bind(this),this._onFocus=this._onFocus.bind(this),this._onBlur=this._onBlur.bind(this),this._onKeyUp=this._onKeyUp.bind(this),this._onKeyDown=this._onKeyDown.bind(this),this._onClick=this._onClick.bind(this),this._onTouchMove=this._onTouchMove.bind(this),this._onTouchEnd=this._onTouchEnd.bind(this),this._onMouseDown=this._onMouseDown.bind(this),this._onMouseOver=this._onMouseOver.bind(this),this._onFormReset=this._onFormReset.bind(this),this._onAKey=this._onAKey.bind(this),this._onEnterKey=this._onEnterKey.bind(this),this._onEscapeKey=this._onEscapeKey.bind(this),this._onDirectionKey=this._onDirectionKey.bind(this),this._onDeleteKey=this._onDeleteKey.bind(this),this.passedElement.isActive)return this.config.silent||console.warn("Trying to initialise Choices on element already initialised"),void(this.initialised=!0);this.init()}t=e,(i=[{key:"defaults",get:function(){return Object.preventExtensions({get options(){return B},get templates(){return V}})}}])&&z(t,i);var n=e.prototype;return n.init=function(){if(!this.initialised){this._createTemplates(),this._createElements(),this._createStructure(),this._initialState=E(this._store.state),this._store.subscribe(this._render),this._render(),this._addEventListeners(),(!this.config.addItems||this.passedElement.element.hasAttribute("disabled"))&&this.disable(),this.initialised=!0;var t=this.config.callbackOnInit;t&&"function"==typeof t&&t.call(this)}},n.destroy=function(){this.initialised&&(this._removeEventListeners(),this.passedElement.reveal(),this.containerOuter.unwrap(this.passedElement.element),this.clearStore(),this._isSelectElement&&(this.passedElement.options=this._presetOptions),this._templates=null,this.initialised=!1)},n.enable=function(){return this.passedElement.isDisabled&&this.passedElement.enable(),this.containerOuter.isDisabled&&(this._addEventListeners(),this.input.enable(),this.containerOuter.enable()),this},n.disable=function(){return this.passedElement.isDisabled||this.passedElement.disable(),this.containerOuter.isDisabled||(this._removeEventListeners(),this.input.disable(),this.containerOuter.disable()),this},n.highlightItem=function(t,i){if(void 0===i&&(i=!0),!t)return this;var e=t.id,n=t.groupId,s=void 0===n?-1:n,r=t.value,o=void 0===r?"":r,h=t.label,u=void 0===h?"":h,c=s>=0?this._store.getGroupById(s):null;return this._store.dispatch(q(e,!0)),i&&this.passedElement.triggerEvent(x,{id:e,value:o,label:u,groupValue:c&&c.value?c.value:null}),this},n.unhighlightItem=function(t){if(!t)return this;var i=t.id,e=t.groupId,n=void 0===e?-1:e,s=t.value,r=void 0===s?"":s,o=t.label,h=void 0===o?"":o,u=n>=0?this._store.getGroupById(n):null;return this._store.dispatch(q(i,!1)),this.passedElement.triggerEvent(x,{id:i,value:r,label:h,groupValue:u&&u.value?u.value:null}),this},n.highlightAll=function(){var t=this;return this._store.items.forEach((function(i){return t.highlightItem(i)})),this},n.unhighlightAll=function(){var t=this;return this._store.items.forEach((function(i){return t.unhighlightItem(i)})),this},n.removeActiveItemsByValue=function(t){var i=this;return this._store.activeItems.filter((function(i){return i.value===t})).forEach((function(t){return i._removeItem(t)})),this},n.removeActiveItems=function(t){var i=this;return this._store.activeItems.filter((function(i){return i.id!==t})).forEach((function(t){return i._removeItem(t)})),this},n.removeHighlightedItems=function(t){var i=this;return void 0===t&&(t=!1),this._store.highlightedActiveItems.forEach((function(e){i._removeItem(e),t&&i._triggerChange(e.value)})),this},n.showDropdown=function(t){var i=this;return this.dropdown.isActive?this:(requestAnimationFrame((function(){i.dropdown.show(),i.containerOuter.open(i.dropdown.distanceFromTopWindow),!t&&i._canSearch&&i.input.focus(),i.passedElement.triggerEvent("showDropdown",{})})),this)},n.hideDropdown=function(t){var i=this;return this.dropdown.isActive?(requestAnimationFrame((function(){i.dropdown.hide(),i.containerOuter.close(),!t&&i._canSearch&&(i.input.removeActiveDescendant(),i.input.blur()),i.passedElement.triggerEvent("hideDropdown",{})})),this):this},n.getValue=function(t){void 0===t&&(t=!1);var i=this._store.activeItems.reduce((function(i,e){return i.push(t?e.value:e),i}),[]);return this._isSelectOneElement?i[0]:i},n.setValue=function(t){var i=this;return this.initialised?(t.forEach((function(t){return i._setChoiceOrItem(t)})),this):this},n.setChoiceByValue=function(t){var i=this;return!this.initialised||this._isTextElement?this:((Array.isArray(t)?t:[t]).forEach((function(t){return i._findAndSelectChoiceByValue(t)})),this)},n.setChoices=function(t,i,e,n){var s=this;if(void 0===t&&(t=[]),void 0===i&&(i="value"),void 0===e&&(e="label"),void 0===n&&(n=!1),!this.initialised)throw new ReferenceError("setChoices was called on a non-initialized instance of Choices");if(!this._isSelectElement)throw new TypeError("setChoices can't be used with INPUT based Choices");if("string"!=typeof i||!i)throw new TypeError("value parameter must be a name of 'value' field in passed objects");if(n&&this.clearChoices(),"function"==typeof t){var r=t(this);if("function"==typeof Promise&&r instanceof Promise)return new Promise((function(t){return requestAnimationFrame(t)})).then((function(){return s._handleLoadingState(!0)})).then((function(){return r})).then((function(t){return s.setChoices(t,i,e,n)})).catch((function(t){s.config.silent||console.error(t)})).then((function(){return s._handleLoadingState(!1)})).then((function(){return s}));if(!Array.isArray(r))throw new TypeError(".setChoices first argument function must return either array of choices or Promise, got: "+typeof r);return this.setChoices(r,i,e,!1)}if(!Array.isArray(t))throw new TypeError(".setChoices must be called either with array of choices with a function resulting into Promise of array of choices");return this.containerOuter.removeLoadingState(),this._startLoading(),t.forEach((function(t){t.choices?s._addGroup({id:parseInt(t.id,10)||null,group:t,valueKey:i,labelKey:e}):s._addChoice({value:t[i],label:t[e],isSelected:t.selected,isDisabled:t.disabled,customProperties:t.customProperties,placeholder:t.placeholder})})),this._stopLoading(),this},n.clearChoices=function(){return this._store.dispatch({type:"CLEAR_CHOICES"}),this},n.clearStore=function(){return this._store.dispatch({type:"CLEAR_ALL"}),this},n.clearInput=function(){return this.input.clear(!this._isSelectOneElement),!this._isTextElement&&this._canSearch&&(this._isSearching=!1,this._store.dispatch(G(!0))),this},n._render=function(){if(!this._store.isLoading()){this._currentState=this._store.state;var t=this._currentState.items!==this._prevState.items;(this._currentState.choices!==this._prevState.choices||this._currentState.groups!==this._prevState.groups||this._currentState.items!==this._prevState.items)&&(this._isSelectElement&&this._renderChoices(),t&&this._renderItems(),this._prevState=this._currentState)}},n._renderChoices=function(){var t=this,i=this._store,e=i.activeGroups,n=i.activeChoices,s=document.createDocumentFragment();if(this.choiceList.clear(),this.config.resetScrollPosition&&requestAnimationFrame((function(){return t.choiceList.scrollToTop()})),e.length>=1&&!this._isSearching){var r=n.filter((function(t){return!0===t.placeholder&&-1===t.groupId}));r.length>=1&&(s=this._createChoicesFragment(r,s)),s=this._createGroupsFragment(e,n,s)}else n.length>=1&&(s=this._createChoicesFragment(n,s));if(s.childNodes&&s.childNodes.length>0){var o=this._canAddItem(this._store.activeItems,this.input.value);o.response?(this.choiceList.append(s),this._highlightChoice()):this.choiceList.append(this._getTemplate("notice",o.notice))}else{var h,u;this._isSearching?(u="function"==typeof this.config.noResultsText?this.config.noResultsText():this.config.noResultsText,h=this._getTemplate("notice",u,"no-results")):(u="function"==typeof this.config.noChoicesText?this.config.noChoicesText():this.config.noChoicesText,h=this._getTemplate("notice",u,"no-choices")),this.choiceList.append(h)}},n._renderItems=function(){var t=this._store.activeItems||[];this.itemList.clear();var i=this._createItemsFragment(t);i.childNodes&&this.itemList.append(i)},n._createGroupsFragment=function(t,i,e){var n=this;return void 0===e&&(e=document.createDocumentFragment()),this.config.shouldSort&&t.sort(this.config.sorter),t.forEach((function(t){var s=function(t){return i.filter((function(i){return n._isSelectOneElement?i.groupId===t.id:i.groupId===t.id&&("always"===n.config.renderSelectedChoices||!i.selected)}))}(t);if(s.length>=1){var r=n._getTemplate("choiceGroup",t);e.appendChild(r),n._createChoicesFragment(s,e,!0)}})),e},n._createChoicesFragment=function(t,i,e){var n=this;void 0===i&&(i=document.createDocumentFragment()),void 0===e&&(e=!1);var s=this.config,r=s.renderSelectedChoices,o=s.searchResultLimit,h=s.renderChoiceLimit,u=this._isSearching?_:this.config.sorter,c=function(t){if("auto"!==r||n._isSelectOneElement||!t.selected){var e=n._getTemplate("choice",t,n.config.itemSelectText);i.appendChild(e)}},a=t;"auto"!==r||this._isSelectOneElement||(a=t.filter((function(t){return!t.selected})));var l=a.reduce((function(t,i){return i.placeholder?t.placeholderChoices.push(i):t.normalChoices.push(i),t}),{placeholderChoices:[],normalChoices:[]}),f=l.placeholderChoices,d=l.normalChoices;(this.config.shouldSort||this._isSearching)&&d.sort(u);var v=a.length,p=this._isSelectOneElement?[].concat(f,d):d;this._isSearching?v=o:h&&h>0&&!e&&(v=h);for(var m=0;m<v;m+=1)p[m]&&c(p[m]);return i},n._createItemsFragment=function(t,i){var e=this;void 0===i&&(i=document.createDocumentFragment());var n=this.config,s=n.removeItemButton;return n.shouldSortItems&&!this._isSelectOneElement&&t.sort(n.sorter),this._isTextElement?this.passedElement.value=t:this.passedElement.options=t,t.forEach((function(t){var n=e._getTemplate("item",t,s);i.appendChild(n)})),i},n._triggerChange=function(t){null!=t&&this.passedElement.triggerEvent("change",{value:t})},n._selectPlaceholderChoice=function(){var t=this._store.placeholderChoice;t&&(this._addItem({value:t.value,label:t.label,choiceId:t.id,groupId:t.groupId,placeholder:t.placeholder}),this._triggerChange(t.value))},n._handleButtonAction=function(t,i){if(t&&i&&this.config.removeItems&&this.config.removeItemButton){var e=i.parentNode.getAttribute("data-id"),n=t.find((function(t){return t.id===parseInt(e,10)}));this._removeItem(n),this._triggerChange(n.value),this._isSelectOneElement&&this._selectPlaceholderChoice()}},n._handleItemAction=function(t,i,e){var n=this;if(void 0===e&&(e=!1),t&&i&&this.config.removeItems&&!this._isSelectOneElement){var s=i.getAttribute("data-id");t.forEach((function(t){t.id!==parseInt(s,10)||t.highlighted?!e&&t.highlighted&&n.unhighlightItem(t):n.highlightItem(t)})),this.input.focus()}},n._handleChoiceAction=function(t,i){if(t&&i){var e=this._store.getChoiceById(i.dataset.id);if(e){var n=this.dropdown.isActive;e.keyCode=t[0]&&t[0].keyCode?t[0].keyCode:null,this.passedElement.triggerEvent("choice",{choice:e}),e.selected||e.disabled||this._canAddItem(t,e.value).response&&(this._addItem({value:e.value,label:e.label,choiceId:e.id,groupId:e.groupId,customProperties:e.customProperties,placeholder:e.placeholder,keyCode:e.keyCode}),this._triggerChange(e.value)),this.clearInput(),n&&this._isSelectOneElement&&(this.hideDropdown(!0),this.containerOuter.focus())}}},n._handleBackspace=function(t){if(this.config.removeItems&&t){var i=t[t.length-1],e=t.some((function(t){return t.highlighted}));this.config.editItems&&!e&&i?(this.input.value=i.value,this.input.setWidth(),this._removeItem(i),this._triggerChange(i.value)):(e||this.highlightItem(i,!1),this.removeHighlightedItems(!0))}},n._startLoading=function(){this._store.dispatch(U(!0))},n._stopLoading=function(){this._store.dispatch(U(!1))},n._handleLoadingState=function(t){void 0===t&&(t=!0);var i=this.itemList.getChild("."+this.config.classNames.placeholder);t?(this.disable(),this.containerOuter.addLoadingState(),this._isSelectOneElement?i?i.innerHTML=this.config.loadingText:(i=this._getTemplate("placeholder",this.config.loadingText),this.itemList.append(i)):this.input.placeholder=this.config.loadingText):(this.enable(),this.containerOuter.removeLoadingState(),this._isSelectOneElement?i.innerHTML=this._placeholderValue||"":this.input.placeholder=this._placeholderValue||"")},n._handleSearch=function(t){if(t&&this.input.isFocussed){var i=this.config,e=i.searchFloor,n=i.searchChoices,s=this._store.choices.some((function(t){return!t.active}));if(t&&t.length>=e){var r=n?this._searchChoices(t):0;this.passedElement.triggerEvent("search",{value:t,resultCount:r})}else s&&(this._isSearching=!1,this._store.dispatch(G(!0)))}},n._canAddItem=function(t,i){var e=!0,n="function"==typeof this.config.addItemText?this.config.addItemText(i):this.config.addItemText;if(!this._isSelectOneElement){var s=function(t,i,e){return void 0===e&&(e="value"),t.some((function(t){return"string"==typeof i?t[e]===i.trim():t[e]===i}))}(t,i);this.config.maxItemCount>0&&this.config.maxItemCount<=t.length&&(e=!1,n="function"==typeof this.config.maxItemText?this.config.maxItemText(this.config.maxItemCount):this.config.maxItemText),!this.config.duplicateItemsAllowed&&s&&e&&(e=!1,n="function"==typeof this.config.uniqueItemText?this.config.uniqueItemText(i):this.config.uniqueItemText),this._isTextElement&&this.config.addItems&&e&&"function"==typeof this.config.addItemFilter&&!this.config.addItemFilter(i)&&(e=!1,n="function"==typeof this.config.customAddItemText?this.config.customAddItemText(i):this.config.customAddItemText)}return{response:e,notice:n}},n._searchChoices=function(t){var i="string"==typeof t?t.trim():t,e="string"==typeof this._currentValue?this._currentValue.trim():this._currentValue;if(i.length<1&&i===e+" ")return 0;var n=this._store.searchableChoices,r=i,o=[].concat(this.config.searchFields),h=Object.assign(this.config.fuseOptions,{keys:o}),u=new s.a(n,h).search(r);return this._currentValue=i,this._highlightPosition=0,this._isSearching=!0,this._store.dispatch(function(t){return{type:"FILTER_CHOICES",results:t}}(u)),u.length},n._addEventListeners=function(){var t=document.documentElement;t.addEventListener("touchend",this._onTouchEnd,!0),this.containerOuter.element.addEventListener("keydown",this._onKeyDown,!0),this.containerOuter.element.addEventListener("mousedown",this._onMouseDown,!0),t.addEventListener("click",this._onClick,{passive:!0}),t.addEventListener("touchmove",this._onTouchMove,{passive:!0}),this.dropdown.element.addEventListener("mouseover",this._onMouseOver,{passive:!0}),this._isSelectOneElement&&(this.containerOuter.element.addEventListener("focus",this._onFocus,{passive:!0}),this.containerOuter.element.addEventListener("blur",this._onBlur,{passive:!0})),this.input.element.addEventListener("keyup",this._onKeyUp,{passive:!0}),this.input.element.addEventListener("focus",this._onFocus,{passive:!0}),this.input.element.addEventListener("blur",this._onBlur,{passive:!0}),this.input.element.form&&this.input.element.form.addEventListener("reset",this._onFormReset,{passive:!0}),this.input.addEventListeners()},n._removeEventListeners=function(){var t=document.documentElement;t.removeEventListener("touchend",this._onTouchEnd,!0),this.containerOuter.element.removeEventListener("keydown",this._onKeyDown,!0),this.containerOuter.element.removeEventListener("mousedown",this._onMouseDown,!0),t.removeEventListener("click",this._onClick),t.removeEventListener("touchmove",this._onTouchMove),this.dropdown.element.removeEventListener("mouseover",this._onMouseOver),this._isSelectOneElement&&(this.containerOuter.element.removeEventListener("focus",this._onFocus),this.containerOuter.element.removeEventListener("blur",this._onBlur)),this.input.element.removeEventListener("keyup",this._onKeyUp),this.input.element.removeEventListener("focus",this._onFocus),this.input.element.removeEventListener("blur",this._onBlur),this.input.element.form&&this.input.element.form.removeEventListener("reset",this._onFormReset),this.input.removeEventListeners()},n._onKeyDown=function(t){var i,e=t.target,n=t.keyCode,s=t.ctrlKey,r=t.metaKey,o=this._store.activeItems,h=this.input.isFocussed,u=this.dropdown.isActive,c=this.itemList.hasChildren(),a=String.fromCharCode(n),l=s||r;!this._isTextElement&&/[a-zA-Z0-9-_ ]/.test(a)&&this.showDropdown();var f=((i={})[65]=this._onAKey,i[13]=this._onEnterKey,i[27]=this._onEscapeKey,i[38]=this._onDirectionKey,i[33]=this._onDirectionKey,i[40]=this._onDirectionKey,i[34]=this._onDirectionKey,i[8]=this._onDeleteKey,i[46]=this._onDeleteKey,i);f[n]&&f[n]({event:t,target:e,keyCode:n,metaKey:r,activeItems:o,hasFocusedInput:h,hasActiveDropdown:u,hasItems:c,hasCtrlDownKeyPressed:l})},n._onKeyUp=function(t){var i=t.target,e=t.keyCode,n=this.input.value,s=this._canAddItem(this._store.activeItems,n);if(this._isTextElement)if(s.notice&&n){var r=this._getTemplate("notice",s.notice);this.dropdown.element.innerHTML=r.outerHTML,this.showDropdown(!0)}else this.hideDropdown(!0);else 46!==e&&8!==e||i.value||this._isTextElement||!this._isSearching?this._canSearch&&s.response&&this._handleSearch(this.input.value):(this._isSearching=!1,this._store.dispatch(G(!0)));this._canSearch=this.config.searchEnabled},n._onAKey=function(t){t.hasCtrlDownKeyPressed&&t.hasItems&&(this._canSearch=!1,this.config.removeItems&&!this.input.value&&this.input.element===document.activeElement&&this.highlightAll())},n._onEnterKey=function(t){var i=t.event,e=t.target,n=t.activeItems,s=t.hasActiveDropdown,r=e.hasAttribute("data-button");if(this._isTextElement&&e.value){var o=this.input.value;this._canAddItem(n,o).response&&(this.hideDropdown(!0),this._addItem({value:o}),this._triggerChange(o),this.clearInput())}if(r&&(this._handleButtonAction(n,e),i.preventDefault()),s){var h=this.dropdown.getChild("."+this.config.classNames.highlightedState);h&&(n[0]&&(n[0].keyCode=13),this._handleChoiceAction(n,h)),i.preventDefault()}else this._isSelectOneElement&&(this.showDropdown(),i.preventDefault())},n._onEscapeKey=function(t){t.hasActiveDropdown&&(this.hideDropdown(!0),this.containerOuter.focus())},n._onDirectionKey=function(t){var i,e,n,s=t.event,r=t.keyCode,o=t.metaKey;if(t.hasActiveDropdown||this._isSelectOneElement){this.showDropdown(),this._canSearch=!1;var h,u=40===r||34===r?1:-1;if(o||34===r||33===r)h=this.dropdown.element.querySelector(u>0?"[data-choice-selectable]:last-of-type":"[data-choice-selectable]");else{var c=this.dropdown.element.querySelector("."+this.config.classNames.highlightedState);h=c?function(t,i,e){if(void 0===e&&(e=1),t instanceof Element){for(var n=(e>0?"next":"previous")+"ElementSibling",s=t[n];s;){if(s.matches("[data-choice-selectable]"))return s;s=s[n]}return s}}(c,0,u):this.dropdown.element.querySelector("[data-choice-selectable]")}h&&(e=this.choiceList.element,void 0===(n=u)&&(n=1),(i=h)&&(n>0?e.scrollTop+e.offsetHeight>=i.offsetTop+i.offsetHeight:i.offsetTop>=e.scrollTop)||this.choiceList.scrollToChildElement(h,u),this._highlightChoice(h)),s.preventDefault()}},n._onDeleteKey=function(t){var i=t.event;!t.hasFocusedInput||t.target.value||this._isSelectOneElement||(this._handleBackspace(t.activeItems),i.preventDefault())},n._onTouchMove=function(){this._wasTap&&(this._wasTap=!1)},n._onTouchEnd=function(t){var i=(t||t.touches[0]).target;this._wasTap&&this.containerOuter.element.contains(i)&&((i===this.containerOuter.element||i===this.containerInner.element)&&(this._isTextElement?this.input.focus():this._isSelectMultipleElement&&this.showDropdown()),t.stopPropagation()),this._wasTap=!0},n._onMouseDown=function(t){var i=t.target;if(i instanceof HTMLElement){if(J&&this.choiceList.element.contains(i)){var e=this.choiceList.element.firstElementChild;this._isScrollingOnIe="ltr"===this._direction?t.offsetX>=e.offsetWidth:t.offsetX<e.offsetLeft}if(i!==this.input.element){var n=i.closest("[data-button],[data-item],[data-choice]");if(n instanceof HTMLElement){var s=t.shiftKey,r=this._store.activeItems,o=n.dataset;"button"in o?this._handleButtonAction(r,n):"item"in o?this._handleItemAction(r,n,s):"choice"in o&&this._handleChoiceAction(r,n)}t.preventDefault()}}},n._onMouseOver=function(t){var i=t.target;i instanceof HTMLElement&&"choice"in i.dataset&&this._highlightChoice(i)},n._onClick=function(t){var i=t.target;this.containerOuter.element.contains(i)?this.dropdown.isActive||this.containerOuter.isDisabled?this._isSelectOneElement&&i!==this.input.element&&!this.dropdown.element.contains(i)&&this.hideDropdown():this._isTextElement?document.activeElement!==this.input.element&&this.input.focus():(this.showDropdown(),this.containerOuter.focus()):(this._store.highlightedActiveItems.length>0&&this.unhighlightAll(),this.containerOuter.removeFocusState(),this.hideDropdown(!0))},n._onFocus=function(t){var i,e=this,n=t.target;this.containerOuter.element.contains(n)&&((i={})[A]=function(){n===e.input.element&&e.containerOuter.addFocusState()},i[L]=function(){e.containerOuter.addFocusState(),n===e.input.element&&e.showDropdown(!0)},i[M]=function(){n===e.input.element&&(e.showDropdown(!0),e.containerOuter.addFocusState())},i)[this.passedElement.element.type]()},n._onBlur=function(t){var i=this,e=t.target;if(this.containerOuter.element.contains(e)&&!this._isScrollingOnIe){var n,s=this._store.activeItems.some((function(t){return t.highlighted}));((n={})[A]=function(){e===i.input.element&&(i.containerOuter.removeFocusState(),s&&i.unhighlightAll(),i.hideDropdown(!0))},n[L]=function(){i.containerOuter.removeFocusState(),(e===i.input.element||e===i.containerOuter.element&&!i._canSearch)&&i.hideDropdown(!0)},n[M]=function(){e===i.input.element&&(i.containerOuter.removeFocusState(),i.hideDropdown(!0),s&&i.unhighlightAll())},n)[this.passedElement.element.type]()}else this._isScrollingOnIe=!1,this.input.element.focus()},n._onFormReset=function(){this._store.dispatch({type:"RESET_TO",state:this._initialState})},n._highlightChoice=function(t){var i=this;void 0===t&&(t=null);var e=Array.from(this.dropdown.element.querySelectorAll("[data-choice-selectable]"));if(e.length){var n=t;Array.from(this.dropdown.element.querySelectorAll("."+this.config.classNames.highlightedState)).forEach((function(t){t.classList.remove(i.config.classNames.highlightedState),t.setAttribute("aria-selected","false")})),n?this._highlightPosition=e.indexOf(n):(n=e.length>this._highlightPosition?e[this._highlightPosition]:e[e.length-1])||(n=e[0]),n.classList.add(this.config.classNames.highlightedState),n.setAttribute("aria-selected","true"),this.passedElement.triggerEvent("highlightChoice",{el:n}),this.dropdown.isActive&&(this.input.setActiveDescendant(n.id),this.containerOuter.setActiveDescendant(n.id))}},n._addItem=function(t){var i=t.value,e=t.label,n=void 0===e?null:e,s=t.choiceId,r=void 0===s?-1:s,o=t.groupId,h=void 0===o?-1:o,u=t.customProperties,c=void 0===u?null:u,a=t.placeholder,l=void 0!==a&&a,f=t.keyCode,d=void 0===f?null:f,v="string"==typeof i?i.trim():i,p=d,m=c,b=this._store.items,y=n||v,g=r||-1,w=h>=0?this._store.getGroupById(h):null,O=b?b.length+1:1;return this.config.prependValue&&(v=this.config.prependValue+v.toString()),this.config.appendValue&&(v+=this.config.appendValue.toString()),this._store.dispatch(function(t){return{type:"ADD_ITEM",value:t.value,label:t.label,id:t.id,choiceId:t.choiceId,groupId:t.groupId,customProperties:t.customProperties,placeholder:t.placeholder,keyCode:t.keyCode}}({value:v,label:y,id:O,choiceId:g,groupId:h,customProperties:c,placeholder:l,keyCode:p})),this._isSelectOneElement&&this.removeActiveItems(O),this.passedElement.triggerEvent("addItem",{id:O,value:v,label:y,customProperties:m,groupValue:w&&w.value?w.value:void 0,keyCode:p}),this},n._removeItem=function(t){if(!t||!w("Object",t))return this;var i=t.id,e=t.value,n=t.label,s=t.choiceId,r=t.groupId,o=r>=0?this._store.getGroupById(r):null;return this._store.dispatch(function(t,i){return{type:"REMOVE_ITEM",id:t,choiceId:i}}(i,s)),this.passedElement.triggerEvent("removeItem",o&&o.value?{id:i,value:e,label:n,groupValue:o.value}:{id:i,value:e,label:n}),this},n._addChoice=function(t){var i=t.value,e=t.label,n=t.isSelected,s=void 0!==n&&n,r=t.isDisabled,o=t.groupId,h=t.customProperties,u=void 0===h?null:h,c=t.placeholder,a=void 0!==c&&c,l=t.keyCode,f=void 0===l?null:l;if(null!=i){var d=this._store.choices,v=(void 0===e?null:e)||i,p=d?d.length+1:1;this._store.dispatch(function(t){return{type:"ADD_CHOICE",value:t.value,label:t.label,id:t.id,groupId:t.groupId,disabled:t.disabled,elementId:t.elementId,customProperties:t.customProperties,placeholder:t.placeholder,keyCode:t.keyCode}}({id:p,groupId:void 0===o?-1:o,elementId:this._baseId+"-"+this._idNames.itemChoice+"-"+p,value:i,label:v,disabled:void 0!==r&&r,customProperties:u,placeholder:a,keyCode:f})),s&&this._addItem({value:i,label:v,choiceId:p,customProperties:u,placeholder:a,keyCode:f})}},n._addGroup=function(t){var i=this,e=t.group,n=t.id,s=t.valueKey,r=void 0===s?"value":s,o=t.labelKey,h=void 0===o?"label":o,u=w("Object",e)?e.choices:Array.from(e.getElementsByTagName("OPTION")),c=n||Math.floor((new Date).valueOf()*Math.random());u?(this._store.dispatch(K({value:e.label,id:c,active:!0,disabled:!!e.disabled&&e.disabled})),u.forEach((function(t){var e=t.disabled||t.parentNode&&t.parentNode.disabled;i._addChoice({value:t[r],label:w("Object",t)?t[h]:t.innerHTML,isSelected:t.selected,isDisabled:e,groupId:c,customProperties:t.customProperties,placeholder:t.placeholder})}))):this._store.dispatch(K({value:e.label,id:e.id,active:!1,disabled:e.disabled}))},n._getTemplate=function(t){var i;if(!t)return null;for(var e=this.config.classNames,n=arguments.length,s=new Array(n>1?n-1:0),r=1;r<n;r++)s[r-1]=arguments[r];return(i=this._templates[t]).call.apply(i,[this,e].concat(s))},n._createTemplates=function(){var t=this.config.callbackOnCreateTemplates,i={};t&&"function"==typeof t&&(i=t.call(this,I)),this._templates=o()(V,i)},n._createElements=function(){this.containerOuter=new P({element:this._getTemplate("containerOuter",this._direction,this._isSelectElement,this._isSelectOneElement,this.config.searchEnabled,this.passedElement.element.type),classNames:this.config.classNames,type:this.passedElement.element.type,position:this.config.position}),this.containerInner=new P({element:this._getTemplate("containerInner"),classNames:this.config.classNames,type:this.passedElement.element.type,position:this.config.position}),this.input=new N({element:this._getTemplate("input",this._placeholderValue),classNames:this.config.classNames,type:this.passedElement.element.type,preventPaste:!this.config.paste}),this.choiceList=new D({element:this._getTemplate("choiceList",this._isSelectOneElement)}),this.itemList=new D({element:this._getTemplate("itemList",this._isSelectOneElement)}),this.dropdown=new k({element:this._getTemplate("dropdown"),classNames:this.config.classNames,type:this.passedElement.element.type})},n._createStructure=function(){this.passedElement.conceal(),this.containerInner.wrap(this.passedElement.element),this.containerOuter.wrap(this.containerInner.element),this._isSelectOneElement?this.input.placeholder=this.config.searchPlaceholderValue||"":this._placeholderValue&&(this.input.placeholder=this._placeholderValue,this.input.setWidth()),this.containerOuter.element.appendChild(this.containerInner.element),this.containerOuter.element.appendChild(this.dropdown.element),this.containerInner.element.appendChild(this.itemList.element),this._isTextElement||this.dropdown.element.appendChild(this.choiceList.element),this._isSelectOneElement?this.config.searchEnabled&&this.dropdown.element.insertBefore(this.input.element,this.dropdown.element.firstChild):this.containerInner.element.appendChild(this.input.element),this._isSelectElement&&(this._highlightPosition=0,this._isSearching=!1,this._startLoading(),this._presetGroups.length?this._addPredefinedGroups(this._presetGroups):this._addPredefinedChoices(this._presetChoices),this._stopLoading()),this._isTextElement&&this._addPredefinedItems(this._presetItems)},n._addPredefinedGroups=function(t){var i=this,e=this.passedElement.placeholderOption;e&&"SELECT"===e.parentNode.tagName&&this._addChoice({value:e.value,label:e.innerHTML,isSelected:e.selected,isDisabled:e.disabled,placeholder:!0}),t.forEach((function(t){return i._addGroup({group:t,id:t.id||null})}))},n._addPredefinedChoices=function(t){var i=this;this.config.shouldSort&&t.sort(this.config.sorter);var e=t.some((function(t){return t.selected})),n=t.findIndex((function(t){return void 0===t.disabled||!t.disabled}));t.forEach((function(t,s){var r=t.value,o=t.label,h=t.customProperties,u=t.placeholder;i._isSelectElement?t.choices?i._addGroup({group:t,id:t.id||null}):i._addChoice({value:r,label:o,isSelected:!(!i._isSelectOneElement||e||s!==n)||t.selected,isDisabled:t.disabled,customProperties:h,placeholder:u}):i._addChoice({value:r,label:o,isSelected:t.selected,isDisabled:t.disabled,customProperties:h,placeholder:u})}))},n._addPredefinedItems=function(t){var i=this;t.forEach((function(t){"object"==typeof t&&t.value&&i._addItem({value:t.value,label:t.label,choiceId:t.id,customProperties:t.customProperties,placeholder:t.placeholder}),"string"==typeof t&&i._addItem({value:t})}))},n._setChoiceOrItem=function(t){var i=this;({object:function(){t.value&&(i._isTextElement?i._addItem({value:t.value,label:t.label,choiceId:t.id,customProperties:t.customProperties,placeholder:t.placeholder}):i._addChoice({value:t.value,label:t.label,isSelected:!0,isDisabled:!1,customProperties:t.customProperties,placeholder:t.placeholder}))},string:function(){i._isTextElement?i._addItem({value:t}):i._addChoice({value:t,label:t,isSelected:!0,isDisabled:!1})}})[g(t).toLowerCase()]()},n._findAndSelectChoiceByValue=function(t){var i=this,e=this._store.choices.find((function(e){return i.config.valueComparer(e.value,t)}));e&&!e.selected&&this._addItem({value:e.value,label:e.label,choiceId:e.id,groupId:e.groupId,customProperties:e.customProperties,placeholder:e.placeholder,keyCode:e.keyCode})},n._generatePlaceholderValue=function(){if(this._isSelectElement){var t=this.passedElement.placeholderOption;return!!t&&t.text}var i=this.config,e=i.placeholderValue,n=this.passedElement.element.dataset;if(i.placeholder){if(e)return e;if(n.placeholder)return n.placeholder}return!1},e}();i.default=W}]).default;const r=class{constructor(e){t(this,e),this._choices=[],this.label="",this.error=!1,this.disabled=!1,this.fieldReadonly=!1,this.placeholder="",this.name="",this.currentValue="",this.iconName="chevron-down",this.color="primary",this.type="single",this.noResultsText="No se encontraron resultados",this.noChoicesText="No se encontraron opciones",this.border=!0,this.bgField="",this.loader=!1,this.iconOnly=!1,this.openDropdown=!1,this.mutationObserver=new MutationObserver(t=>{t.forEach(t=>{const i=t.target.getAttribute("class").split(" ");"attributes"===t.type&&-1!==i.indexOf("choices__list--dropdown")&&(this.openDropdown=-1!==i.indexOf("is-active"))})}),this.toggleDropdown=t=>{t.stopPropagation();const i=this.el.querySelector("choicesjs-stencil");this.el.querySelector(".choices__list--dropdown.is-active")?i.hideDropdown(!0):i.showDropdown(!0)},this.changeChoice=i(this,"changeChoice",7),this.clickDropdown=i(this,"clickDropdown",7)}setChoices(t,i){JSON.stringify(t)!==JSON.stringify(i)&&(this._choices=t)}setDisabled(t,i){const e=this.el.querySelector("choicesjs-stencil");!i&&t&&e.disable(),i&&!t&&e.enable()}changeChoiceHandler(t){let i=t;if("single"===this.type)this.openDropdown=!1,i=t;else if("multiple"===this.type){const t=this.el.querySelectorAll(".choices__list.choices__list--multiple .choices__item.choices__item--selectable");i=Array.from(t).map(t=>t.dataset.value)}this.changeChoice.emit(i)}clickDropdownHandler(t){this.clickDropdown.emit(t)}componentWillLoad(){this._choices=this.choices}componentDidLoad(){const t=this.el.querySelector("choicesjs-stencil");this.disabled&&t.disable(),this.mutationObserver.observe(t,{attributes:!0,characterData:!1,childList:!1,subtree:!0,attributeOldValue:!1,characterDataOldValue:!1})}render(){return e(n,{"data-testid":"cc-dropdown"},e("div",{class:{dropdown:!0,"dropdown--readonly":this.fieldReadonly||this.loader||this.iconOnly,"dropdown--disabled":this.disabled,"dropdown--secondary":"secondary"===this.color,"dropdown--error":this.error&&!this.disabled,"dropdown--no-border":!this.border,"dropdown--no-background":!this.bgField,"dropdown--icon-only":this.iconOnly}},this.label&&e("span",{class:"dropdown__label"},this.label),e("div",{class:{dropdown__input:!0,[`${this.bgField}`]:!!this.bgField}},e("choicesjs-stencil",{searchEnabled:!1,name:this.name,choices:this._choices,onClick:t=>this.clickDropdownHandler(t),removeItems:!0,removeItemButton:"multiple"===this.type,noResultsText:this.noResultsText,noChoicesText:this.noChoicesText,onChange:t=>{var i;return this.changeChoiceHandler(null===(i=t.target)||void 0===i?void 0:i.value)},type:this.type},this.loader?e("div",{class:"dropdown__loader"},e("cc-loader",null)):e("cc-icon",{onClick:this.toggleDropdown,class:{dropdown__icon:!0,"dropdown__icon--inverted":this.openDropdown},name:this.error?"x":this.iconName}))),this.helperText&&this.error&&!this.disabled&&e("span",{class:"dropdown__helperText"},this.helperText)))}get el(){return s(this)}static get watchers(){return{choices:["setChoices"],disabled:["setDisabled"]}}static get style(){return".choices{position:relative;margin-bottom:24px;font-size:16px}.choices:focus{outline:0}.choices:last-child{margin-bottom:0}.choices.is-disabled .choices__inner,.choices.is-disabled .choices__input{background-color:#eaeaea;cursor:not-allowed;-webkit-user-select:none;-ms-user-select:none;-moz-user-select:none;user-select:none}.choices.is-disabled .choices__item{cursor:not-allowed}.choices [hidden]{display:none!important}.choices[data-type*=select-one]{cursor:pointer}.choices[data-type*=select-one] .choices__inner{padding-bottom:7.5px}.choices[data-type*=select-one] .choices__input{display:block;width:100%;padding:10px;border-bottom:1px solid #ddd;background-color:#fff;margin:0}.choices[data-type*=select-one] .choices__button{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMjEiIHZpZXdCb3g9IjAgMCAyMSAyMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSIjMDAwIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0yLjU5Mi4wNDRsMTguMzY0IDE4LjM2NC0yLjU0OCAyLjU0OEwuMDQ0IDIuNTkyeiIvPjxwYXRoIGQ9Ik0wIDE4LjM2NEwxOC4zNjQgMGwyLjU0OCAyLjU0OEwyLjU0OCAyMC45MTJ6Ii8+PC9nPjwvc3ZnPg==);padding:0;background-size:8px;position:absolute;top:50%;right:0;margin-top:-10px;margin-right:25px;height:20px;width:20px;border-radius:10em;opacity:.5}.choices[data-type*=select-one] .choices__button:focus,.choices[data-type*=select-one] .choices__button:hover{opacity:1}.choices[data-type*=select-one] .choices__button:focus{-webkit-box-shadow:0 0 0 2px #00bcd4;box-shadow:0 0 0 2px #00bcd4}.choices[data-type*=select-one] .choices__item[data-value=\"\"] .choices__button{display:none}.choices[data-type*=select-one]:after{content:\"\";height:0;width:0;border-style:solid;border-color:#333 transparent transparent;border-width:5px;position:absolute;right:11.5px;top:50%;margin-top:-2.5px;pointer-events:none}.choices[data-type*=select-one].is-open:after{border-color:transparent transparent #333;margin-top:-7.5px}.choices[data-type*=select-one][dir=rtl]:after{left:11.5px;right:auto}.choices[data-type*=select-one][dir=rtl] .choices__button{right:auto;left:0;margin-left:25px;margin-right:0}.choices[data-type*=select-multiple] .choices__inner,.choices[data-type*=text] .choices__inner{cursor:text}.choices[data-type*=select-multiple] .choices__button,.choices[data-type*=text] .choices__button{position:relative;display:inline-block;margin:0 -4px 0 8px;padding-left:16px;border-left:1px solid #008fa1;background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMjEiIHZpZXdCb3g9IjAgMCAyMSAyMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSIjRkZGIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGQ9Ik0yLjU5Mi4wNDRsMTguMzY0IDE4LjM2NC0yLjU0OCAyLjU0OEwuMDQ0IDIuNTkyeiIvPjxwYXRoIGQ9Ik0wIDE4LjM2NEwxOC4zNjQgMGwyLjU0OCAyLjU0OEwyLjU0OCAyMC45MTJ6Ii8+PC9nPjwvc3ZnPg==);background-size:8px;width:8px;line-height:1;opacity:.75;border-radius:0}.choices[data-type*=select-multiple] .choices__button:focus,.choices[data-type*=select-multiple] .choices__button:hover,.choices[data-type*=text] .choices__button:focus,.choices[data-type*=text] .choices__button:hover{opacity:1}.choices__inner{display:inline-block;vertical-align:top;width:100%;background-color:#f9f9f9;padding:7.5px 7.5px 3.75px;border:1px solid #ddd;border-radius:2.5px;font-size:14px;min-height:44px;overflow:hidden}.is-focused .choices__inner,.is-open .choices__inner{border-color:#b7b7b7}.is-open .choices__inner{border-radius:2.5px 2.5px 0 0}.is-flipped.is-open .choices__inner{border-radius:0 0 2.5px 2.5px}.choices__list{margin:0;padding-left:0;list-style:none}.choices__list--single{display:inline-block;padding:4px 16px 4px 4px;width:100%}[dir=rtl] .choices__list--single{padding-right:4px;padding-left:16px}.choices__list--single .choices__item{width:100%}.choices__list--multiple{display:inline}.choices__list--multiple .choices__item{display:inline-block;vertical-align:middle;border-radius:20px;padding:4px 10px;font-size:12px;font-weight:500;margin-right:3.75px;margin-bottom:3.75px;background-color:#00bcd4;border:1px solid #00a5bb;color:#fff;word-break:break-all;-webkit-box-sizing:border-box;box-sizing:border-box}.choices__list--multiple .choices__item[data-deletable]{padding-right:5px}[dir=rtl] .choices__list--multiple .choices__item{margin-right:0;margin-left:3.75px}.choices__list--multiple .choices__item.is-highlighted{background-color:#00a5bb;border:1px solid #008fa1}.is-disabled .choices__list--multiple .choices__item{background-color:#aaa;border:1px solid #919191}.choices__list--dropdown{visibility:hidden;z-index:1;position:absolute;width:100%;background-color:#fff;border:1px solid #ddd;top:100%;margin-top:-1px;border-bottom-left-radius:2.5px;border-bottom-right-radius:2.5px;overflow:hidden;word-break:break-all;will-change:visibility}.choices__list--dropdown.is-active{visibility:visible}.is-open .choices__list--dropdown{border-color:#b7b7b7}.is-flipped .choices__list--dropdown{top:auto;bottom:100%;margin-top:0;margin-bottom:-1px;border-radius:.25rem .25rem 0 0}.choices__list--dropdown .choices__list{position:relative;max-height:300px;overflow:auto;-webkit-overflow-scrolling:touch;will-change:scroll-position}.choices__list--dropdown .choices__item{position:relative;padding:10px;font-size:14px}[dir=rtl] .choices__list--dropdown .choices__item{text-align:right}\@media (min-width:640px){.choices__list--dropdown .choices__item--selectable{padding-right:100px}.choices__list--dropdown .choices__item--selectable:after{content:attr(data-select-text);font-size:12px;opacity:0;position:absolute;right:10px;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}[dir=rtl] .choices__list--dropdown .choices__item--selectable{text-align:right;padding-left:100px;padding-right:10px}[dir=rtl] .choices__list--dropdown .choices__item--selectable:after{right:auto;left:10px}}.choices__list--dropdown .choices__item--selectable.is-highlighted{background-color:#f2f2f2}.choices__list--dropdown .choices__item--selectable.is-highlighted:after{opacity:.5}.choices__item{cursor:default}.choices__item--selectable{cursor:pointer}.choices__item--disabled{cursor:not-allowed;-webkit-user-select:none;-ms-user-select:none;-moz-user-select:none;user-select:none;opacity:.5}.choices__heading{font-weight:600;font-size:12px;padding:10px;border-bottom:1px solid #f7f7f7;color:grey}.choices__button{text-indent:-9999px;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:0;background-color:transparent;background-repeat:no-repeat;background-position:50%;cursor:pointer}.choices__button:focus,.choices__input:focus{outline:0}.choices__input{display:inline-block;vertical-align:baseline;background-color:#f9f9f9;font-size:14px;margin-bottom:5px;border:0;border-radius:0;max-width:100%;padding:4px 0 4px 2px}[dir=rtl] .choices__input{padding-right:2px;padding-left:0}.choices__placeholder{opacity:.5}.dropdown{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;min-width:150px;-webkit-transition:all .4s ease-in-out;transition:all .4s ease-in-out;position:relative}.dropdown,.dropdown choicesjs-stencil{display:-webkit-box;display:-ms-flexbox;display:flex}.dropdown choicesjs-stencil{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-webkit-box-align:end;-ms-flex-align:end;align-items:flex-end}.dropdown__helperText{display:block;font-size:1.1rem;margin-top:.4rem;color:var(--error)}.dropdown .choices{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;position:static;width:100%}.dropdown .choices__item--selectable.choices__item,.dropdown .choices__item.choices__placeholder{padding-left:.8rem;padding-right:.8rem;font-size:1.4rem;font-weight:300;margin:0;color:var(--neutral-03)}.dropdown .choices__item--disabled.choices__item{color:var(--disabled-text)}.dropdown .choices__inner{margin:0;padding:0;min-height:auto}.dropdown .choices__inner .choices__item.choices__item--selectable{margin:0;padding:0}.dropdown .choices__inner .choices__list--multiple .choices__item.choices__item--selectable,.dropdown .choices__inner .choices__list--multiple .choices__item.choices__placeholder,.dropdown .choices__inner .choices__list--multiple .choices__item.is-highlighted{font-size:1.2rem;border-width:0;color:var(--neutral-03);background:var(--background-01);padding:.2rem .8rem .2rem 1.2rem;margin:0 .4rem 0 0;border-radius:10px}.dropdown .choices__inner .choices__list--multiple .choices__item.choices__item--selectable .choices__button,.dropdown .choices__inner .choices__list--multiple .choices__item.choices__placeholder .choices__button,.dropdown .choices__inner .choices__list--multiple .choices__item.is-highlighted .choices__button{border-width:0;background-image:url(\"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAiIGhlaWdodD0iMTAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CgogPGc+CiAgPHRpdGxlPmJhY2tncm91bmQ8L3RpdGxlPgogIDxyZWN0IGZpbGw9Im5vbmUiIGlkPSJjYW52YXNfYmFja2dyb3VuZCIgaGVpZ2h0PSIxMiIgd2lkdGg9IjEyIiB5PSItMSIgeD0iLTEiLz4KIDwvZz4KIDxnPgogIDx0aXRsZT5MYXllciAxPC90aXRsZT4KICA8cGF0aCBzdHJva2U9Im51bGwiIGlkPSJDbG9zZSIgZmlsbD0iIzRhNGE0YSIgZD0ibTUuNzA4MTYsNS4wMDcyNjlsMy45OTMwNTcsLTMuOTcxMjQ4YzAuMTkxNDM4LC0wLjE4OTQ5OSAwLjE5MTQzOCwtMC40OTYyODUgMCwtMC42ODUzYy0wLjE5MDk1MywtMC4xODk0OTkgLTAuNTAxMTMxLC0wLjE4OTQ5OSAtMC42OTIwODUsMGwtMy45ODk2NjUsMy45Njc4NTVsLTQuMDI2NDk4LC00LjAyNjk4M2MtMC4xOTA5NTMsLTAuMTkxNDM4IC0wLjUwMTEzMSwtMC4xOTE0MzggLTAuNjkyMDg1LDBjLTAuMTkwOTUzLDAuMTkxOTIzIC0wLjE5MDk1MywwLjUwMjU4NSAwLDAuNjk0MDIzbDQuMDIzNTkxLDQuMDI0MDc1bC00LjAzODEzLDQuMDE1ODM2Yy0wLjE5MDk1MywwLjE4OTQ5OSAtMC4xOTA5NTMsMC40OTYyODUgMCwwLjY4NTNjMC4xOTA5NTMsMC4xODk0OTkgMC41MDExMzEsMC4xODk0OTkgMC42OTIwODUsMGw0LjAzNDczOCwtNC4wMTI0NDRsNC4wMTA1MDUsNC4wMTA5OWMwLjE5MDk1MywwLjE5MTQzOCAwLjUwMTEzMSwwLjE5MTQzOCAwLjY5MjA4NSwwYzAuMTkwOTUzLC0wLjE5MTkyMyAwLjE5MDk1MywtMC41MDI1ODUgMCwtMC42OTQwMjNsLTQuMDA3NTk3LC00LjAwODA4MnoiLz4KIDwvZz4KPC9zdmc+\")}.dropdown .choices.is-flipped .choices__list.choices__list--dropdown{-webkit-transform:translateY(-.8rem);transform:translateY(-.8rem)}.dropdown .choices__input{margin:0;padding:0;min-height:auto}.dropdown .choices__list{margin-top:.8rem;border-radius:.4rem;border-width:0;-webkit-box-shadow:0 4px 16px -8px #b0c0ca;box-shadow:0 4px 16px -8px #b0c0ca}.dropdown .choices__list--single{margin:0;padding:0}.dropdown .choices__list--dropdown{left:0}.dropdown .choices__list--dropdown .choices__item--selectable,.dropdown .choices__list--dropdown .choices__item.choices__placeholder,.dropdown .choices__list--dropdown .choices__item.is-selected{opacity:1;color:var(--neutral-03)}.dropdown .choices__list--dropdown .choices__item--selectable.is-selected,.dropdown .choices__list--dropdown .choices__item--selectable:focus{font-weight:700;color:var(--neutral-02);background:var(--background-01)}.dropdown .choices__list--dropdown .choices__item--selectable.is-selected:hover,.dropdown .choices__list--dropdown .choices__item--selectable:hover{font-weight:700;color:var(--neutral-03);background:var(--background-02)}.dropdown .choices__list--dropdown .choices__item--selectable:after{display:none}.dropdown .choices[data-type*=select-one] .choices__inner{padding:0}.dropdown .choices[data-type*=select-one]:after{display:none}.dropdown__input{padding-left:1.6rem;padding-right:1.6rem;padding-top:.8rem;padding-bottom:.8rem;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;border-radius:.4rem;border:1px solid var(--neutral-02)}.dropdown__input:focus-within,.dropdown__input:hover{border:1px solid var(--primary)}.dropdown__input .choices__inner,.dropdown__input .choices__input{background:transparent;border:0}.dropdown__text{border-width:0;outline:0;background:transparent}.dropdown__text:hover{outline:none}.dropdown__icon,.dropdown__loader{border-width:0;-webkit-box-ordinal-group:2;-ms-flex-order:1;order:1;color:var(--primary)}.dropdown__icon--inverted,.dropdown__loader--inverted{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.dropdown__label{padding-top:.4rem;padding-bottom:.4rem;font-size:1.1rem;font-weight:900;color:var(--neutral-03)}.dropdown.dropdown--icon-only{min-width:42px;width:42px}.dropdown.dropdown--icon-only .choices{display:none}.dropdown.dropdown--icon-only .dropdown__input{padding:.8rem}.dropdown.dropdown--secondary .dropdown__input:focus-within,.dropdown.dropdown--secondary .dropdown__input:hover{border:1px solid var(--secondary)}.dropdown.dropdown--secondary .dropdown__icon,.dropdown.dropdown--secondary .dropdown__loader{color:var(--secondary)}.dropdown.dropdown--readonly:after{position:absolute;width:100%;height:100%;top:0;left:0;content:\"\";background:transparent}.dropdown.dropdown--error .dropdown__input{border-color:var(--error)}.dropdown.dropdown--error .dropdown__input:focus-within,.dropdown.dropdown--error .dropdown__input:hover{border-color:var(--error)}.dropdown.dropdown--error .dropdown__icon{color:var(--error)}.dropdown.dropdown--no-background{background:transparent}.dropdown.dropdown--no-border .dropdown__input{border-width:0}.dropdown.dropdown--no-border .dropdown__input:focus-within,.dropdown.dropdown--no-border .dropdown__input:hover{border-width:0}.dropdown.dropdown--disabled .dropdown__input{border-color:var(--disabled-background)}.dropdown.dropdown--disabled .dropdown__input:focus-within,.dropdown.dropdown--disabled .dropdown__input:hover{border-color:var(--disabled-background)}.dropdown.dropdown--disabled .dropdown__icon{color:var(--disabled-text)}.dropdown.dropdown--disabled .choices.is-disabled{background:transparent}.dropdown.dropdown--disabled .choices.is-disabled .choices__inner,.dropdown.dropdown--disabled .choices.is-disabled .choices__input{background-color:transparent}.dropdown.dropdown--disabled .choices.is-disabled .choices__item--selectable{color:var(--disabled-text)}\@media (min-width:640px){.dropdown .choices__list--dropdown .choices__item--selectable{padding-left:.8rem;padding-right:.8rem}}"}};export{r as cc_dropdown};