vendor: 4,649 bytes, lines 1-13
1/* 2 choices.js v10.2.0 | © 2022 Josh Johnson | https://github.com/jshjohnson/Choices#readme */ 3var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.arrayIteratorImpl=function(v){var G=0;return function(){return G<v.length?{done:!1,value:v[G++]}:{done:!0}}};$jscomp.arrayIterator=function(v){return{next:$jscomp.arrayIteratorImpl(v)}};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.SIMPLE_FROUND_POLYFILL=!1;$jscomp.ISOLATE_POLYFILLS=!1;$jscomp.FORCE_POLYFILL_PROMISE=!1;$jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION=!1; 4$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(v,G,H){if(v==Array.prototype||v==Object.prototype)return v;v[G]=H.value;return v};$jscomp.getGlobal=function(v){v=["object"==typeof globalThis&&globalThis,v,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var G=0;G<v.length;++G){var H=v[G];if(H&&H.Math==Math)return H}throw Error("Cannot find global object");};$jscomp.global=$jscomp.getGlobal(this); 5$jscomp.IS_SYMBOL_NATIVE="function"===typeof Symbol&&"symbol"===typeof Symbol("x");$jscomp.TRUST_ES6_POLYFILLS=!$jscomp.ISOLATE_POLYFILLS||$jscomp.IS_SYMBOL_NATIVE;$jscomp.polyfills={};$jscomp.propertyToPolyfillSymbol={};$jscomp.POLYFILL_PREFIX="$jscp$";var $jscomp$lookupPolyfilledValue=function(v,G){var H=$jscomp.propertyToPolyfillSymbol[G];if(null==H)return v[G];H=v[H];return void 0!==H?H:v[G]}; 6$jscomp.polyfill=function(v,G,H,P){G&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(v,G,H,P):$jscomp.polyfillUnisolated(v,G,H,P))};$jscomp.polyfillUnisolated=function(v,G,H,P){H=$jscomp.global;v=v.split(".");for(P=0;P<v.length-1;P++){var q=v[P];if(!(q in H))return;H=H[q]}v=v[v.length-1];P=H[v];G=G(P);G!=P&&null!=G&&$jscomp.defineProperty(H,v,{configurable:!0,writable:!0,value:G})}; 7$jscomp.polyfillIsolated=function(v,G,H,P){var q=v.split(".");v=1===q.length;P=q[0];P=!v&&P in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var f=0;f<q.length-1;f++){var c=q[f];if(!(c in P))return;P=P[c]}q=q[q.length-1];H=$jscomp.IS_SYMBOL_NATIVE&&"es6"===H?P[q]:null;G=G(H);null!=G&&(v?$jscomp.defineProperty($jscomp.polyfills,q,{configurable:!0,writable:!0,value:G}):G!==H&&(void 0===$jscomp.propertyToPolyfillSymbol[q]&&($jscomp.propertyToPolyfillSymbol[q]=$jscomp.IS_SYMBOL_NATIVE?$jscomp.global.Symbol(q): 8$jscomp.POLYFILL_PREFIX+q),q=$jscomp.propertyToPolyfillSymbol[q],$jscomp.defineProperty(P,q,{configurable:!0,writable:!0,value:G})))};$jscomp.initSymbol=function(){}; 9$jscomp.polyfill("Symbol",function(v){if(v)return v;var G=function(q,f){this.$jscomp$symbol$id_=q;$jscomp.defineProperty(this,"description",{configurable:!0,writable:!0,value:f})};G.prototype.toString=function(){return this.$jscomp$symbol$id_};var H=0,P=function(q){if(this instanceof P)throw new TypeError("Symbol is not a constructor");return new G("jscomp_symbol_"+(q||"")+"_"+H++,q)};return P},"es6","es3"); 10$jscomp.polyfill("Symbol.iterator",function(v){if(v)return v;v=Symbol("Symbol.iterator");for(var G="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),H=0;H<G.length;H++){var P=$jscomp.global[G[H]];"function"===typeof P&&"function"!=typeof P.prototype[v]&&$jscomp.defineProperty(P.prototype,v,{configurable:!0,writable:!0,value:function(){return $jscomp.iteratorPrototype($jscomp.arrayIteratorImpl(this))}})}return v},"es6", 11"es3");$jscomp.iteratorPrototype=function(v){v={next:v};v[Symbol.iterator]=function(){return this};return v};$jscomp.createTemplateTagFirstArg=function(v){return v.raw=v};$jscomp.createTemplateTagFirstArgWithRaw=function(v,G){v.raw=G;return v};$jscomp.makeIterator=function(v){var G="undefined"!=typeof Symbol&&Symbol.iterator&&v[Symbol.iterator];return G?G.call(v):$jscomp.arrayIterator(v)};$jscomp.arrayFromIterator=function(v){for(var G,H=[];!(G=v.next()).done;)H.push(G.value);return H}; 12$jscomp.arrayFromIterable=function(v){return v instanceof Array?v:$jscomp.arrayFromIterator($jscomp.makeIterator(v))};$jscomp.objectCreate=$jscomp.ASSUME_ES5||"function"==typeof Object.create?Object.create:function(v){var G=function(){};G.prototype=v;return new G}; 13$jscomp.getConstructImplementation=function(){function v(){function H(){}new H;Reflect.construct(H,[],function(){});return new H instanceof H}if($jscomp.TRUST_ES6_POLYFILLS&&"undefined"!=typeof Reflect&&Reflect.construct){if(v())return Reflect.construct;var G=Reflect.construct;return function(H,P,q){H=G(H,P);q&&Reflect.setPrototypeOf(H,q.prototype);return H}}return function(H,P,q){void 0===q&&(q=H);
13q=$jscomp.objectCreate(q.prototype||Object.prototype);return Function.prototype.apply.call(H,q,P)|| 14q}};$jscomp.construct={valueOf:$jscomp.getConstructImplementation}.valueOf();$jscomp.underscoreProtoCanBeSet=function(){var v={a:!0},G={};try{return G.__proto__=v,G.a}catch(H){}return!1};$jscomp.setPrototypeOf=$jscomp.TRUST_ES6_POLYFILLS&&"function"==typeof Object.setPrototypeOf?Object.setPrototypeOf:$jscomp.underscoreProtoCanBeSet()?function(v,G){v.__proto__=G;if(v.__proto__!==G)throw new TypeError(v+" is not extensible");return v}:null; 15$jscomp.inherits=function(v,G){v.prototype=$jscomp.objectCreate(G.prototype);v.prototype.constructor=v;if($jscomp.setPrototypeOf){var H=$jscomp.setPrototypeOf;H(v,G)}else for(H in G)if("prototype"!=H)if(Object.defineProperties){var P=Object.getOwnPropertyDescriptor(G,H);P&&Object.defineProperty(v,H,P)}else v[H]=G[H];v.superClass_=G.prototype}; 16(function(v,G){"object"===typeof exports&&"object"===typeof module?module.exports=G():"function"===typeof define&&define.amd?define([],G):"object"===typeof exports?exports.Choices=G():v.Choices=G()})(window,function(){return function(){function v(q){var f=H[q];if(void 0!==f)return f.exports;f=H[q]={exports:{}};G[q].call(f.exports,f,f.exports,v);return f.exports}var G={282:function(q,f,c){Object.defineProperty(f,"__esModule",{value:!0});f.clearChoices=f.activateChoices=f.filterChoices=f.addChoice= 17void 0;var k=c(883);f.addChoice=function(g){return{type:k.ACTION_TYPES.ADD_CHOICE,value:g.value,label:g.label,id:g.id,groupId:g.groupId,disabled:g.disabled,elementId:g.elementId,customProperties:g.customProperties,placeholder:g.placeholder,keyCode:g.keyCode}};f.filterChoices=function(g){return{type:k.ACTION_TYPES.FILTER_CHOICES,results:g}};f.activateChoices=function(g){void 0===g&&(g=!0);return{type:k.ACTION_TYPES.ACTIVATE_CHOICES,active:g}};f.clearChoices=function(){return{type:k.ACTION_TYPES.CLEAR_CHOICES}}}, 18783:function(q,f,c){Object.defineProperty(f,"__esModule",{value:!0});f.addGroup=void 0;var k=c(883);f.addGroup=function(g){return{type:k.ACTION_TYPES.ADD_GROUP,value:g.value,id:g.id,active:g.active,disabled:g.disabled}}},464:function(q,f,c){Object.defineProperty(f,"__esModule",{value:!0});f.highlightItem=f.removeItem=f.addItem=void 0;var k=c(883);f.addItem=function(g){return{type:k.ACTION_TYPES.ADD_ITEM,value:g.value,label:g.label,id:g.id,choiceId:g.choiceId,groupId:g.groupId,customProperties:g.customProperties, 19placeholder:g.placeholder,keyCode:g.keyCode}};f.removeItem=function(g,p){return{type:k.ACTION_TYPES.REMOVE_ITEM,id:g,choiceId:p}};f.highlightItem=function(g,p){return{type:k.ACTION_TYPES.HIGHLIGHT_ITEM,id:g,highlighted:p}}},137:function(q,f,c){Object.defineProperty(f,"__esModule",{value:!0});f.setIsLoading=f.resetTo=f.clearAll=void 0;var k=c(883);f.clearAll=function(){return{type:k.ACTION_TYPES.CLEAR_ALL}};f.resetTo=function(g){return{type:k.ACTION_TYPES.RESET_TO,state:g}};f.setIsLoading=function(g){return{type:k.ACTION_TYPES.SET_IS_LOADING, 20isLoading:g}}},373:function(q,f,c){var k=this&&this.__spreadArray||function(t,a,b){if(b||2===arguments.length)for(var d=0,m=a.length,u;d<m;d++)!u&&d in a||(u||(u=Array.prototype.slice.call(a,0,d)),u[d]=a[d]);return t.concat(u||Array.prototype.slice.call(a))};q=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{"default":t}};Object.defineProperty(f,"__esModule",{value:!0});var g=q(c(996)),p=q(c(221)),h=c(282),r=c(783),w=c(464),A=c(137),E=c(520),C=c(883),Q=c(789),T=c(799),U=c(655),aa= 21q(c(744)),da=q(c(686)),ka="-ms-scroll-limit"in document.documentElement.style&&"-ms-ime-align"in document.documentElement.style,K={};c=function(){function t(a,b){void 0===a&&(a="[data-choice]");void 0===b&&(b={});var d=this;void 0===b.allowHTML&&console.warn("Deprecation warning: allowHTML will default to false in a future release. To render HTML in Choices, you will need to set it to true. Setting allowHTML will suppress this message.");this.config=g.default.all([Q.DEFAULT_CONFIG,t.defaults.options, 22b],{arrayMerge:function(u,z){return k([],z,!0)}});var m=(0,T.diff)(this.config,Q.DEFAULT_CONFIG);m.length&&console.warn("Unknown config option(s) passed",m.join(", "));m="string"===typeof a?document.querySelector(a):a;if(!(m instanceof HTMLInputElement||m instanceof HTMLSelectElement))throw TypeError("Expected one of the following types text|select-one|select-multiple");this._isTextElement=m.type===C.TEXT_TYPE;this._isSelectOneElement=m.type===C.SELECT_ONE_TYPE;this._isSelectMultipleElement=m.type=== 23C.SELECT_MULTIPLE_TYPE;this._isSelectElement=this._isSelectOneElement||this._isSelectMultipleElement;this.config.searchEnabled=this._isSelectMultipleElement||this.config.searchEnabled;
23["auto","always"].includes("".concat(this.config.renderSelectedChoices))||(this.config.renderSelectedChoices="auto");b.addItemFilter&&"function"!==typeof b.addItemFilter&&(b=b.addItemFilter instanceof RegExp?b.addItemFilter:new RegExp(b.addItemFilter),this.config.addItemFilter=b.test.bind(b));this.passedElement=this._isTextElement? 24new E.WrappedInput({element:m,classNames:this.config.classNames,delimiter:this.config.delimiter}):new E.WrappedSelect({element:m,classNames:this.config.classNames,template:function(u){return d._templates.option(u)}});this.initialised=!1;this._store=new aa.default;this._prevState=this._currentState=this._initialState=U.defaultState;this._currentValue="";this._canSearch=!!this.config.searchEnabled;this._isScrollingOnIe=!1;this._highlightPosition=0;this._wasTap=!0;this._placeholderValue=this._generatePlaceholderValue(); 25this._baseId=(0,T.generateId)(this.passedElement.element,"choices-");this._direction=this.passedElement.dir;this._direction||(b=window.getComputedStyle(this.passedElement.element).direction,m=window.getComputedStyle(document.documentElement).direction,b!==m&&(this._direction=b));this._idNames={itemChoice:"item-choice"};this._isSelectElement&&(this._presetGroups=this.passedElement.optionGroups,this._presetOptions=this.passedElement.options);this._presetChoices=this.config.choices;this._presetItems= 26this.config.items;this.passedElement.value&&this._isTextElement&&(b=this.passedElement.value.split(this.config.delimiter),this._presetItems=this._presetItems.concat(b));this.passedElement.options&&this.passedElement.options.forEach(function(u){d._presetChoices.push({value:u.value,label:u.innerHTML,selected:!!u.selected,disabled:u.disabled||u.parentNode.disabled,placeholder:""===u.value||u.hasAttribute("placeholder"),customProperties:(0,T.parseCustomProperties)(u.dataset.customProperties)})});this._render= 27this._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._onSelectKey=this._onSelectKey.bind(this); 28this._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?(this.config.silent||console.warn("Trying to initialise Choices on element already initialised",{element:a}),this.initialised=!0):this.init()}Object.defineProperty(t,"defaults",{get:function(){return Object.preventExtensions({get options(){return K},get templates(){return da.default}})}, 29enumerable:!1,configurable:!0});t.prototype.init=function(){if(!this.initialised){this._createTemplates();this._createElements();this._createStructure();this._store.subscribe(this._render);this._render();this._addEventListeners();this.config.addItems&&!this.passedElement.element.hasAttribute("disabled")||this.disable();this.initialised=!0;var a=this.config.callbackOnInit;a&&"function"===typeof a&&a.call(this)}};t.prototype.destroy=function(){this.initialised&&(this._removeEventListeners(),this.passedElement.reveal(), 30this.containerOuter.unwrap(this.passedElement.element),this.clearStore(),this._isSelectElement&&(this.passedElement.options=this._presetOptions),this._templates=da.default,this.initialised=!1)};t.prototype.enable=function(){this.passedElement.isDisabled&&this.passedElement.enable();this.containerOuter.isDisabled&&(this._addEventListeners(),this.input.enable(),this.containerOuter.enable());return this};t.prototype.disable=function(){this.passedElement.isDisabled||this.passedElement.disable();this.containerOuter.isDisabled|| 31(this._removeEventListeners(),this.input.disable(),this.containerOuter.disable());return this};t.prototype.highlightItem=function(a,b){void 0===b&&(b=!0);if(!a||!a.id)return this;var d=a.id,m=a.groupId;m=void 0===m?-1:m;var u=a.value;u=void 0===u?"":u;a=a.label;a=void 0===a?"":a;m=0<=m?this._store.getGroupById(m):null;this._store.dispatch((0,w.highlightItem)(d,!0));b&&this.passedElement.triggerEvent(C.EVENTS.highlightItem,{id:d,value:u,label:a,groupValue:m&&m.value?m.value:null});return this};t.prototype.unhighlightItem=
32function(a){if(!a||!a.id)return this;var b=a.id,d=a.groupId;d=void 0===d?-1:d;var m=a.value;m=void 0===m?"":m;a=a.label;a=void 0===a?"":a;d=0<=d?this._store.getGroupById(d):null;this._store.dispatch((0,w.highlightItem)(b,!1));this.passedElement.triggerEvent(C.EVENTS.highlightItem,{id:b,value:m,label:a,groupValue:d&&d.value?d.value:null});return this};t.prototype.highlightAll=function(){var a=this;this._store.items.forEach(function(b){return a.highlightItem(b)});return this};t.prototype.unhighlightAll= 33function(){var a=this;this._store.items.forEach(function(b){return a.unhighlightItem(b)});return this};t.prototype.removeActiveItemsByValue=function(a){var b=this;this._store.activeItems.filter(function(d){return d.value===a}).forEach(function(d){return b._removeItem(d)});return this};t.prototype.removeActiveItems=function(a){var b=this;this._store.activeItems.filter(function(d){return d.id!==a}).forEach(function(d){return b._removeItem(d)});return this};t.prototype.removeHighlightedItems=function(a){var b= 34this;void 0===a&&(a=!1);this._store.highlightedActiveItems.forEach(function(d){b._removeItem(d);a&&b._triggerChange(d.value)});return this};t.prototype.showDropdown=function(a){var b=this;if(this.dropdown.isActive)return this;requestAnimationFrame(function(){b.dropdown.show();b.containerOuter.open(b.dropdown.distanceFromTopWindow);!a&&b._canSearch&&b.input.focus();b.passedElement.triggerEvent(C.EVENTS.showDropdown,{})});return this};t.prototype.hideDropdown=function(a){var b=this;if(!this.dropdown.isActive)return this; 35requestAnimationFrame(function(){b.dropdown.hide();b.containerOuter.close();!a&&b._canSearch&&(b.input.removeActiveDescendant(),b.input.blur());b.passedElement.triggerEvent(C.EVENTS.hideDropdown,{})});return this};t.prototype.getValue=function(a){void 0===a&&(a=!1);var b=this._store.activeItems.reduce(function(d,m){d.push(a?m.value:m);return d},[]);return this._isSelectOneElement?b[0]:b};t.prototype.setValue=function(a){var b=this;if(!this.initialised)return this;a.forEach(function(d){return b._setChoiceOrItem(d)}); 36return this};t.prototype.setChoiceByValue=function(a){var b=this;if(!this.initialised||this._isTextElement)return this;(Array.isArray(a)?a:[a]).forEach(function(d){return b._findAndSelectChoiceByValue(d)});return this};t.prototype.setChoices=function(a,b,d,m){var u=this;void 0===a&&(a=[]);void 0===b&&(b="value");void 0===d&&(d="label");void 0===m&&(m=!1);if(!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"); 37if("string"!==typeof b||!b)throw new TypeError("value parameter must be a name of 'value' field in passed objects");m&&this.clearChoices();if("function"===typeof a){var z=a(this);if("function"===typeof Promise&&z instanceof Promise)return(new Promise(function(F){return requestAnimationFrame(F)})).then(function(){return u._handleLoadingState(!0)}).then(function(){return z}).then(function(F){return u.setChoices(F,b,d,m)}).catch(function(F){u.config.silent||console.error(F)}).then(function(){return u._handleLoadingState(!1)}).then(function(){return u}); 38if(!Array.isArray(z))throw new TypeError(".setChoices first argument function must return either array of choices or Promise, got: ".concat(typeof z));return this.setChoices(z,b,d,!1)}if(!Array.isArray(a))throw new TypeError(".setChoices must be called either with array of choices with a function resulting into Promise of array of choices");this.containerOuter.removeLoadingState();this._startLoading();a.forEach(function(F){F.choices?u._addGroup({id:F.id?parseInt("".concat(F.id),10):null,group:F,valueKey:b, 39labelKey:d}):u._addChoice({value:F[b],label:F[d],isSelected:!!F.selected,isDisabled:!!F.disabled,placeholder:!!F.placeholder,customProperties:F.customProperties})});this._stopLoading();return this};t.prototype.clearChoices=function(){this._store.dispatch((0,h.clearChoices)());return this};t.prototype.clearStore=function(){this._store.dispatch((0,A.clearAll)());return this};t.prototype.clearInput=function(){this.input.clear(!this._isSelectOneElement);!this._isTextElement&&this._canSearch&&(this._isSearching= 40!1,this._store.dispatch((0,h.activateChoices)(!0)));return this};t.prototype._render=function(){if(!this._store.isLoading()){this._currentState=this._store.state;var a=this._currentState.items!==this._prevState.items;if(this._currentState.choices!==this._prevState.choices||this._currentState.groups!==this._prevState.groups||this._currentState.items!==this._prevState.items)this._isSelectElement&&this._renderChoices(),a&&this._renderItems(),this._prevState=this._currentState}};t.prototype._renderChoices= 41function(){var a=this,b=this._store,d=b.activeGroups,m=b.activeChoices;b=document.createDocumentFragment();this.choiceList.clear();this.config.resetScrollPosition&&requestAnimationFrame(function(){return a.choiceList.scrollToTop()});if(1<=d.length&&!this._isSearching){var u=m.filter(function(z){return!0===z.placeholder&&-1===z.groupId});1<=u.length&&(b=this._createChoicesFragment(u,b));b=this._createGroupsFragment(d,m,b)}else 1<=m.length&&(b=this._createChoicesFragment(m,b));b.childNodes&&0<b.childNodes.length? 42(d=this._canAddItem(this._store.activeItems,this.input.value),d.response?(this.choiceList.append(b),this._highlightChoice()):(d=this._getTemplate("notice",d.notice),this.choiceList.append(d))):(d=d=void 0,this._isSearching?(d="function"===typeof this.config.noResultsText?this.config.noResultsText():this.config.noResultsText,d=this._getTemplate("notice",d,"no-results")):(d="function"===typeof this.config.noChoicesText?this.config.noChoicesText():this.config.noChoicesText,d=this._getTemplate("notice", 43d,"no-choices")),this.choiceList.append(d))};t.prototype._renderItems=function(){var a=this._store.activeItems||[];this.itemList.clear();a=this._createItemsFragment(a);a.childNodes&&this.itemList.append(a)};t.prototype._createGroupsFragment=function(a,b,d){var m=this;void 0===d&&(d=document.createDocumentFragment());
43var u=function(z){return b.filter(function(F){return m._isSelectOneElement?F.groupId===z.id:F.groupId===z.id&&("always"===m.config.renderSelectedChoices||!F.selected)})};this.config.shouldSort&& 44a.sort(this.config.sorter);a.forEach(function(z){var F=u(z);1<=F.length&&(z=m._getTemplate("choiceGroup",z),d.appendChild(z),m._createChoicesFragment(F,d,!0))});return d};t.prototype._createChoicesFragment=function(a,b,d){var m=this;void 0===b&&(b=document.createDocumentFragment());void 0===d&&(d=!1);var u=this.config,z=u.renderSelectedChoices,F=u.searchResultLimit,N=u.renderChoiceLimit,L=this._isSearching?T.sortByScore:this.config.sorter;u=function(M){if("auto"===z?m._isSelectOneElement||!M.selected: 451)M=m._getTemplate("choice",M,m.config.itemSelectText),b.appendChild(M)};var S=a;"auto"!==z||this._isSelectOneElement||(S=a.filter(function(M){return!M.selected}));var W=S.reduce(function(M,R){R.placeholder?M.placeholderChoices.push(R):M.normalChoices.push(R);return M},{placeholderChoices:[],normalChoices:[]});a=W.placeholderChoices;W=W.normalChoices;(this.config.shouldSort||this._isSearching)&&W.sort(L);L=S.length;S=this._isSelectOneElement?k(k([],a,!0),W,!0):W;this._isSearching?L=F:N&&0<N&&!d&& 46(L=N);for(d=0;d<L;d+=1)S[d]&&u(S[d]);return b};t.prototype._createItemsFragment=function(a,b){var d=this;void 0===b&&(b=document.createDocumentFragment());var m=this.config,u=m.sorter,z=m.removeItemButton;m.shouldSortItems&&!this._isSelectOneElement&&a.sort(u);this._isTextElement?this.passedElement.value=a.map(function(F){return F.value}).join(this.config.delimiter):this.passedElement.options=a;a.forEach(function(F){F=d._getTemplate("item",F,z);b.appendChild(F)});return b};t.prototype._triggerChange= 47function(a){void 0!==a&&null!==a&&this.passedElement.triggerEvent(C.EVENTS.change,{value:a})};t.prototype._selectPlaceholderChoice=function(a){this._addItem({value:a.value,label:a.label,choiceId:a.id,groupId:a.groupId,placeholder:a.placeholder});this._triggerChange(a.value)};t.prototype._handleButtonAction=function(a,b){if(a&&b&&this.config.removeItems&&this.config.removeItemButton){var d=b.parentNode&&b.parentNode.dataset.id;if(a=d&&a.find(function(m){return m.id===parseInt(d,10)}))this._removeItem(a), 48this._triggerChange(a.value),this._isSelectOneElement&&this._store.placeholderChoice&&this._selectPlaceholderChoice(this._store.placeholderChoice)}};t.prototype._handleItemAction=function(a,b,d){var m=this;void 0===d&&(d=!1);if(a&&b&&this.config.removeItems&&!this._isSelectOneElement){var u=b.dataset.id;a.forEach(function(z){z.id!==parseInt("".concat(u),10)||z.highlighted?!d&&z.highlighted&&m.unhighlightItem(z):m.highlightItem(z)});this.input.focus()}};t.prototype._handleChoiceAction=function(a,b){if(a&& 49b&&(b=(b=b.dataset.id)&&this._store.getChoiceById(b))){var d=this.dropdown.isActive;b.keyCode=a[0]&&a[0].keyCode?a[0].keyCode:void 0;this.passedElement.triggerEvent(C.EVENTS.choice,{choice:b});b.selected||b.disabled||!this._canAddItem(a,b.value).response||(this._addItem({value:b.value,label:b.label,choiceId:b.id,groupId:b.groupId,customProperties:b.customProperties,placeholder:b.placeholder,keyCode:b.keyCode}),this._triggerChange(b.value));this.clearInput();d&&this._isSelectOneElement&&(this.hideDropdown(!0), 50this.containerOuter.focus())}};t.prototype._handleBackspace=function(a){if(this.config.removeItems&&a){var b=a[a.length-1];a=a.some(function(d){return d.highlighted});this.config.editItems&&!a&&b?(this.input.value=b.value,this.input.setWidth(),this._removeItem(b),this._triggerChange(b.value)):(a||this.highlightItem(b,!1),this.removeHighlightedItems(!0))}};t.prototype._startLoading=function(){this._store.dispatch((0,A.setIsLoading)(!0))};t.prototype._stopLoading=function(){this._store.dispatch((0, 51A.setIsLoading)(!1))};t.prototype._handleLoadingState=function(a){void 0===a&&(a=!0);var b=this.itemList.getChild(".".concat(this.config.classNames.placeholder));a?(this.disable(),this.containerOuter.addLoadingState(),this._isSelectOneElement?b?b.innerHTML=this.config.loadingText:(b=this._getTemplate("placeholder",this.config.loadingText))&&this.itemList.append(b):this.input.placeholder=this.config.loadingText):(this.enable(),this.containerOuter.removeLoadingState(),this._isSelectOneElement?b&&(b.innerHTML= 52this._placeholderValue||""):this.input.placeholder=this._placeholderValue||"")};
52t.prototype._handleSearch=function(a){if(this.input.isFocussed){var b=this.config,d=b.searchFloor;b=b.searchChoices;var m=this._store.choices.some(function(u){return!u.active});null!==a&&"undefined"!==typeof a&&a.length>=d?(d=b?this._searchChoices(a):0,this.passedElement.triggerEvent(C.EVENTS.search,{value:a,resultCount:d})):m&&(this._isSearching=!1,this._store.dispatch((0,h.activateChoices)(!0)))}};t.prototype._canAddItem= 53function(a,b){var d=!0,m="function"===typeof this.config.addItemText?this.config.addItemText(b):this.config.addItemText;if(!this._isSelectOneElement){var u=(0,T.existsInArray)(a,b);0<this.config.maxItemCount&&this.config.maxItemCount<=a.length&&(d=!1,m="function"===typeof this.config.maxItemText?this.config.maxItemText(this.config.maxItemCount):this.config.maxItemText);!this.config.duplicateItemsAllowed&&u&&d&&(d=!1,m="function"===typeof this.config.uniqueItemText?this.config.uniqueItemText(b):this.config.uniqueItemText); 54this._isTextElement&&this.config.addItems&&d&&"function"===typeof this.config.addItemFilter&&!this.config.addItemFilter(b)&&(d=!1,m="function"===typeof this.config.customAddItemText?this.config.customAddItemText(b):this.config.customAddItemText)}return{response:d,notice:m}};t.prototype._searchChoices=function(a){a="string"===typeof a?a.trim():a;var b="string"===typeof this._currentValue?this._currentValue.trim():this._currentValue;if(1>a.length&&a==="".concat(b," "))return 0;b=this._store.searchableChoices; 55var d=Object.assign(this.config.fuseOptions,{keys:k([],this.config.searchFields,!0),includeMatches:!0});b=(new p.default(b,d)).search(a);this._currentValue=a;this._highlightPosition=0;this._isSearching=!0;this._store.dispatch((0,h.filterChoices)(b));return b.length};t.prototype._addEventListeners=function(){var a=document.documentElement;a.addEventListener("touchend",this._onTouchEnd,!0);this.containerOuter.element.addEventListener("keydown",this._onKeyDown,!0);this.containerOuter.element.addEventListener("mousedown", 56this._onMouseDown,!0);a.addEventListener("click",this._onClick,{passive:!0});a.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", 57this._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()};t.prototype._removeEventListeners=function(){var a=document.documentElement;a.removeEventListener("touchend",this._onTouchEnd,!0);this.containerOuter.element.removeEventListener("keydown",this._onKeyDown,!0);this.containerOuter.element.removeEventListener("mousedown", 58this._onMouseDown,!0);a.removeEventListener("click",this._onClick);a.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", 59this._onBlur);this.input.element.form&&this.input.element.form.removeEventListener("reset",this._onFormReset);this.input.removeEventListeners()};t.prototype._onKeyDown=function(a){var b=a.keyCode,d=this._store.activeItems,m=this.input.isFocussed,u=this.dropdown.isActive,z=this.itemList.hasChildren(),F=String.fromCharCode(b);F=/[^\x00-\x1F]/.test(F);var N=C.KEY_CODES.BACK_KEY,L=C.KEY_CODES.DELETE_KEY,S=C.KEY_CODES.ENTER_KEY,W=C.KEY_CODES.A_KEY,M=C.KEY_CODES.ESC_KEY,R=C.KEY_CODES.UP_KEY,ea=C.KEY_CODES.DOWN_KEY, 60Aa=C.KEY_CODES.PAGE_UP_KEY,Ea=C.KEY_CODES.PAGE_DOWN_KEY;this._isTextElement||u||!F||(this.showDropdown(),this.input.isFocussed||(this.input.value+=a.key.toLowerCase()));switch(b){case W:return this._onSelectKey(a,z);case S:return this._onEnterKey(a,d,u);case M:return this._onEscapeKey(u);case R:case Aa:case ea:case Ea:return this._onDirectionKey(a,u);case L:case N:return this._onDeleteKey(a,d,m)}};t.prototype._onKeyUp=function(a){var b=a.target;a=a.keyCode;var d=this.input.value,m=this._canAddItem(this._store.activeItems, 61d),u=C.KEY_CODES.BACK_KEY,z=C.KEY_CODES.DELETE_KEY;this._isTextElement?m.notice&&d?(b=this._getTemplate("notice",m.notice),this.dropdown.element.innerHTML=b.outerHTML,this.showDropdown(!0)):this.hideDropdown(!0):(d=!this._isTextElement&&this._isSearching,m=this._canSearch&&m.response,a!==u&&a!==z||!b||b.value||!d?m&&this._handleSearch(this.input.rawValue):(this._isSearching=!1,this._store.dispatch((0,h.activateChoices)(!0))));this._canSearch=this.config.searchEnabled};t.prototype._onSelectKey=function(a, 62b){var d=a.metaKey;(a.ctrlKey||d)&&b&&(this._canSearch=!1,this.config.removeItems&&!this.input.value&&this.input.element===document.activeElement&&this.highlightAll())};t.prototype._onEnterKey=function(a,b,d){var m=a.target,u=C.KEY_CODES.ENTER_KEY,z=m&&m.hasAttribute("data-button");if(this._isTextElement&&m&&m.value){var F=this.input.value;this._canAddItem(b,F).response&&(this.hideDropdown(!0),this._addItem({value:F}),this._triggerChange(F),this.clearInput())}z&&(this._handleButtonAction(b,m),a.preventDefault()); 63if(d){if(d=this.dropdown.getChild(".".concat(this.config.classNames.highlightedState)))b[0]&&(b[0].keyCode=u),this._handleChoiceAction(b,d);a.preventDefault()}else this._isSelectOneElement&&(this.showDropdown(),a.preventDefault())};t.prototype._onEscapeKey=function(a){a&&(this.hideDropdown(!0),this.containerOuter.focus())};t.prototype._onDirectionKey=function(a,b){var d=a.keyCode,m=a.metaKey,u=C.KEY_CODES.DOWN_KEY,z=C.KEY_CODES.PAGE_UP_KEY,F=C.KEY_CODES.PAGE_DOWN_KEY;if(b||this._isSelectOneElement)this.showDropdown(), 64this._canSearch=!1,b=d===u||d===F?1:-1,d=m||d===F||d===z?0<b?this.dropdown.element.querySelector("".concat("[data-choice-selectable]",":last-of-type")):this.dropdown.element.querySelector("[data-choice-selectable]"):(d=this.dropdown.element.querySelector(".".concat(this.config.classNames.highlightedState)))?(0,T.getAdjacentEl)(d,"[data-choice-selectable]",b):this.dropdown.element.querySelector("[data-choice-selectable]"),d&&((0,T.isScrolledIntoView)(d,this.choiceList.element,b)||this.choiceList.scrollToChildElement(d, 65b),this._highlightChoice(d)),a.preventDefault()};t.prototype._onDeleteKey=function(a,b,d){var m=a.target;this._isSelectOneElement||m.value||!d||(this._handleBackspace(b),a.preventDefault())};t.prototype._onTouchMove=function(){this._wasTap&&(this._wasTap=!1)};t.prototype._onTouchEnd=function(a){var b=(a||a.touches[0]).target;if(this._wasTap&&this.containerOuter.element.contains(b)){if(b===this.containerOuter.element||b===this.containerInner.element)this._isTextElement?this.input.focus():this._isSelectMultipleElement&& 66this.showDropdown();a.stopPropagation()}this._wasTap=!0};t.prototype._onMouseDown=function(a){var b=a.target;if(b instanceof HTMLElement){if(ka&&this.choiceList.element.contains(b)){var d=this.choiceList.element.firstElementChild;this._isScrollingOnIe="ltr"===this._direction?a.offsetX>=d.offsetWidth:a.offsetX<d.offsetLeft}if(b!==this.input.element){b=b.closest("[data-button],[data-item],[data-choice]");if(b instanceof HTMLElement){d=a.shiftKey;var m=this._store.activeItems,u=b.dataset;"button"in u? 67this._handleButtonAction(m,b):"item"in u?this._handleItemAction(m,b,d):"choice"in u&&this._handleChoiceAction(m,b)}a.preventDefault()}}};t.prototype._onMouseOver=function(a){a=a.target;a instanceof HTMLElement&&"choice"in a.dataset&&this._highlightChoice(a)};t.prototype._onClick=function(a){a=a.target;this.containerOuter.element.contains(a)?this.dropdown.isActive||this.containerOuter.isDisabled?this._isSelectOneElement&&a!==this.input.element&&!this.dropdown.element.contains(a)&&this.hideDropdown(): 68this._isTextElement?document.activeElement!==this.input.element&&this.input.focus():(this.showDropdown(),this.containerOuter.focus()):(0<this._store.highlightedActiveItems.length&&this.unhighlightAll(),this.containerOuter.removeFocusState(),this.hideDropdown(!0))};t.prototype._onFocus=function(a){var b,d=this,m=a.target;if(m&&this.containerOuter.element.contains(m))(b={},b[C.TEXT_TYPE]=function(){m===d.input.element&&d.containerOuter.addFocusState()},b[C.SELECT_ONE_TYPE]=function(){d.containerOuter.addFocusState(); 69m===d.input.element&&d.showDropdown(!0)},b[C.SELECT_MULTIPLE_TYPE]=function(){m===d.input.element&&(d.showDropdown(!0),d.containerOuter.addFocusState())},b)[this.passedElement.element.type]()};t.prototype._onBlur=function(a){var b,d=this,m=a.target;if(m&&this.containerOuter.element.contains(m)&&!this._isScrollingOnIe){var u=this._store.activeItems.some(function(z){return z.highlighted});(b={},b[C.TEXT_TYPE]=function(){m===d.input.element&&(d.containerOuter.removeFocusState(),u&&d.unhighlightAll(), 70d.hideDropdown(!0))},b[C.SELECT_ONE_TYPE]=function(){d.containerOuter.removeFocusState();
70(m===d.input.element||m===d.containerOuter.element&&!d._canSearch)&&d.hideDropdown(!0)},b[C.SELECT_MULTIPLE_TYPE]=function(){m===d.input.element&&(d.containerOuter.removeFocusState(),d.hideDropdown(!0),u&&d.unhighlightAll())},b)[this.passedElement.element.type]()}else this._isScrollingOnIe=!1,this.input.element.focus()};t.prototype._onFormReset=function(){this._store.dispatch((0,A.resetTo)(this._initialState))}; 71t.prototype._highlightChoice=function(a){var b=this;void 0===a&&(a=null);var d=Array.from(this.dropdown.element.querySelectorAll("[data-choice-selectable]"));d.length&&(Array.from(this.dropdown.element.querySelectorAll(".".concat(this.config.classNames.highlightedState))).forEach(function(m){m.classList.remove(b.config.classNames.highlightedState);m.setAttribute("aria-selected","false")}),a?this._highlightPosition=d.indexOf(a):(a=d.length>this._highlightPosition?d[this._highlightPosition]:d[d.length- 721])||(a=d[0]),a.classList.add(this.config.classNames.highlightedState),a.setAttribute("aria-selected","true"),this.passedElement.triggerEvent(C.EVENTS.highlightChoice,{el:a}),this.dropdown.isActive&&(this.input.setActiveDescendant(a.id),this.containerOuter.setActiveDescendant(a.id)))};t.prototype._addItem=function(a){var b=a.value,d=a.label,m=void 0===d?null:d;d=a.choiceId;var u=void 0===d?-1:d;d=a.groupId;d=void 0===d?-1:d;var z=a.customProperties;z=void 0===z?{}:z;var F=a.placeholder;F=void 0=== 73F?!1:F;a=a.keyCode;a=void 0===a?-1:a;b="string"===typeof b?b.trim():b;var N=this._store.items;m=m||b;u=u||-1;var L=0<=d?this._store.getGroupById(d):null;N=N?N.length+1:1;this.config.prependValue&&(b=this.config.prependValue+b.toString());this.config.appendValue&&(b+=this.config.appendValue.toString());this._store.dispatch((0,w.addItem)({value:b,label:m,id:N,choiceId:u,groupId:d,customProperties:z,placeholder:F,keyCode:a}));this._isSelectOneElement&&this.removeActiveItems(N);this.passedElement.triggerEvent(C.EVENTS.addItem, 74{id:N,value:b,label:m,customProperties:z,groupValue:L&&L.value?L.value:null,keyCode:a})};t.prototype._removeItem=function(a){var b=a.id,d=a.value,m=a.label,u=a.customProperties,z=a.choiceId;a=(a=a.groupId)&&0<=a?this._store.getGroupById(a):null;b&&z&&(this._store.dispatch((0,w.removeItem)(b,z)),this.passedElement.triggerEvent(C.EVENTS.removeItem,{id:b,value:d,label:m,customProperties:u,groupValue:a&&a.value?a.value:null}))};t.prototype._addChoice=function(a){var b=a.value,d=a.label,m=a.isSelected; 75m=void 0===m?!1:m;var u=a.isDisabled;u=void 0===u?!1:u;var z=a.groupId;z=void 0===z?-1:z;var F=a.customProperties;F=void 0===F?{}:F;var N=a.placeholder;N=void 0===N?!1:N;a=a.keyCode;a=void 0===a?-1:a;if("undefined"!==typeof b&&null!==b){var L=this._store.choices;d=(void 0===d?null:d)||b;L=L?L.length+1:1;var S="".concat(this._baseId,"-").concat(this._idNames.itemChoice,"-").concat(L);this._store.dispatch((0,h.addChoice)({id:L,groupId:z,elementId:S,value:b,label:d,disabled:u,customProperties:F,placeholder:N, 76keyCode:a}));m&&this._addItem({value:b,label:d,choiceId:L,customProperties:F,placeholder:N,keyCode:a})}};t.prototype._addGroup=function(a){var b=this,d=a.group,m=a.id,u=a.valueKey,z=void 0===u?"value":u;a=a.labelKey;var F=void 0===a?"label":a;a=(0,T.isType)("Object",d)?d.choices:Array.from(d.getElementsByTagName("OPTION"));var N=m||Math.floor((new Date).valueOf()*Math.random());m=d.disabled?d.disabled:!1;a?(this._store.dispatch((0,r.addGroup)({value:d.label,id:N,active:!0,disabled:m})),a.forEach(function(L){var S= 77L.disabled||L.parentNode&&L.parentNode.disabled;b._addChoice({value:L[z],label:(0,T.isType)("Object",L)?L[F]:L.innerHTML,isSelected:L.selected,isDisabled:S,groupId:N,customProperties:L.customProperties,placeholder:L.placeholder})})):this._store.dispatch((0,r.addGroup)({value:d.label,id:d.id,active:!1,disabled:d.disabled}))};t.prototype._getTemplate=function(a){for(var b,d=[],m=1;m<arguments.length;m++)d[m-1]=arguments[m];return(b=this._templates[a]).call.apply(b,k([this,this.config],d,!1))};t.prototype._createTemplates= 78function(){var a=this.config.callbackOnCreateTemplates,b={};a&&"function"===typeof a&&(b=a.call(this,T.strToEl));this._templates=(0,g.default)(da.default,b)};t.prototype._createElements=function(){this.containerOuter=new E.Container({element:this._getTemplate("containerOuter",this._direction,this._isSelectElement,this._isSelectOneElement,this.config.searchEnabled,this.passedElement.element.type,this.config.labelId),classNames:this.config.classNames,type:this.passedElement.element.type,position:this.config.position}); 79this.containerInner=new E.Container({element:this._getTemplate("containerInner"),classNames:this.config.classNames,type:this.passedElement.element.type,position:this.config.position});this.input=new E.Input({element:this._getTemplate("input",this._placeholderValue),classNames:this.config.classNames,type:this.passedElement.element.type,preventPaste:!this.config.paste});this.choiceList=new E.List({element:this._getTemplate("choiceList",this._isSelectOneElement)});this.itemList=new E.List({element:this._getTemplate("itemList", 80this._isSelectOneElement)});this.dropdown=new E.Dropdown({element:this._getTemplate("dropdown"),classNames:this.config.classNames,type:this.passedElement.element.type})};t.prototype._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, 81this.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&& 82(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)};t.prototype._addPredefinedGroups=function(a){var b=this,d=this.passedElement.placeholderOption;d&&d.parentNode&&"SELECT"===d.parentNode.tagName&&this._addChoice({value:d.value,label:d.innerHTML,isSelected:d.selected,isDisabled:d.disabled, 83placeholder:!0});a.forEach(function(m){return b._addGroup({group:m,id:m.id||null})})};t.prototype._addPredefinedChoices=function(a){var b=this;this.config.shouldSort&&a.sort(this.config.sorter);var d=a.some(function(u){return u.selected}),m=a.findIndex(function(u){return void 0===u.disabled||!u.disabled});a.forEach(function(u,z){var F=u.value;F=void 0===F?"":F;var N=u.label,L=u.customProperties,S=u.placeholder;b._isSelectElement?u.choices?b._addGroup({group:u,id:u.id||null}):b._addChoice({value:F, 84label:N,isSelected:!!(b._isSelectOneElement&&!d&&z===m||u.selected),isDisabled:!!u.disabled,placeholder:!!S,customProperties:L}):b._addChoice({value:F,label:N,isSelected:!!u.selected,isDisabled:!!u.disabled,placeholder:!!u.placeholder,customProperties:L})})};t.prototype._addPredefinedItems=function(a){var b=this;a.forEach(function(d){"object"===typeof d&&d.value&&b._addItem({value:d.value,label:d.label,choiceId:d.id,customProperties:d.customProperties,placeholder:d.placeholder});"string"===typeof d&& 85b._addItem({value:d})})};t.prototype._setChoiceOrItem=function(a){var b=this;({object:function(){a.value&&(b._isTextElement?b._addItem({value:a.value,label:a.label,choiceId:a.id,customProperties:a.customProperties,placeholder:a.placeholder}):b._addChoice({value:a.value,label:a.label,isSelected:!0,isDisabled:!1,customProperties:a.customProperties,placeholder:a.placeholder}))},string:function(){b._isTextElement?b._addItem({value:a}):b._addChoice({value:a,label:a,isSelected:!0,isDisabled:!1})}})[(0, 86T.getType)(a).toLowerCase()]()};t.prototype._findAndSelectChoiceByValue=function(a){var b=this,d=this._store.choices.find(function(m){return b.config.valueComparer(m.value,a)});d&&!d.selected&&this._addItem({value:d.value,label:d.label,choiceId:d.id,groupId:d.groupId,customProperties:d.customProperties,placeholder:d.placeholder,ke
86yCode:d.keyCode})};t.prototype._generatePlaceholderValue=function(){if(this._isSelectElement&&this.passedElement.placeholderOption){var a=this.passedElement.placeholderOption; 87return a?a.text:null}a=this.config;var b=a.placeholderValue,d=this.passedElement.element.dataset;if(a.placeholder){if(b)return b;if(d.placeholder)return d.placeholder}return null};return t}();f["default"]=c},613:function(q,f,c){Object.defineProperty(f,"__esModule",{value:!0});var k=c(799),g=c(883);q=function(){function p(h){var r=h.type,w=h.classNames,A=h.position;this.element=h.element;this.classNames=w;this.type=r;this.position=A;this.isLoading=this.isDisabled=this.isFocussed=this.isFlipped=this.isOpen= 88!1;this._onFocus=this._onFocus.bind(this);this._onBlur=this._onBlur.bind(this)}p.prototype.addEventListeners=function(){this.element.addEventListener("focus",this._onFocus);this.element.addEventListener("blur",this._onBlur)};p.prototype.removeEventListeners=function(){this.element.removeEventListener("focus",this._onFocus);this.element.removeEventListener("blur",this._onBlur)};p.prototype.shouldFlip=function(h){if("number"!==typeof h)return!1;var r=!1;"auto"===this.position?r=!window.matchMedia("(min-height: ".concat(h+ 891,"px)")).matches:"top"===this.position&&(r=!0);return r};p.prototype.setActiveDescendant=function(h){this.element.setAttribute("aria-activedescendant",h)};p.prototype.removeActiveDescendant=function(){this.element.removeAttribute("aria-activedescendant")};p.prototype.open=function(h){this.element.classList.add(this.classNames.openState);this.element.setAttribute("aria-expanded","true");this.isOpen=!0;this.shouldFlip(h)&&(this.element.classList.add(this.classNames.flippedState),this.isFlipped=!0)}; 90p.prototype.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)};p.prototype.focus=function(){this.isFocussed||this.element.focus()};p.prototype.addFocusState=function(){this.element.classList.add(this.classNames.focusState)};p.prototype.removeFocusState=function(){this.element.classList.remove(this.classNames.focusState)}; 91p.prototype.enable=function(){this.element.classList.remove(this.classNames.disabledState);this.element.removeAttribute("aria-disabled");this.type===g.SELECT_ONE_TYPE&&this.element.setAttribute("tabindex","0");this.isDisabled=!1};p.prototype.disable=function(){this.element.classList.add(this.classNames.disabledState);this.element.setAttribute("aria-disabled","true");this.type===g.SELECT_ONE_TYPE&&this.element.setAttribute("tabindex","-1");this.isDisabled=!0};p.prototype.wrap=function(h){(0,k.wrap)(h, 92this.element)};p.prototype.unwrap=function(h){this.element.parentNode&&(this.element.parentNode.insertBefore(h,this.element),this.element.parentNode.removeChild(this.element))};p.prototype.addLoadingState=function(){this.element.classList.add(this.classNames.loadingState);this.element.setAttribute("aria-busy","true");this.isLoading=!0};p.prototype.removeLoadingState=function(){this.element.classList.remove(this.classNames.loadingState);this.element.removeAttribute("aria-busy");this.isLoading=!1}; 93p.prototype._onFocus=function(){this.isFocussed=!0};p.prototype._onBlur=function(){this.isFocussed=!1};return p}();f["default"]=q},217:function(q,f){Object.defineProperty(f,"__esModule",{value:!0});q=function(){function c(k){var g=k.type,p=k.classNames;this.element=k.element;this.classNames=p;this.type=g;this.isActive=!1}Object.defineProperty(c.prototype,"distanceFromTopWindow",{get:function(){return this.element.getBoundingClientRect().bottom},enumerable:!1,configurable:!0});c.prototype.getChild= 94function(k){return this.element.querySelector(k)};c.prototype.show=function(){this.element.classList.add(this.classNames.activeState);this.element.setAttribute("aria-expanded","true");this.isActive=!0;return this};c.prototype.hide=function(){this.element.classList.remove(this.classNames.activeState);
94this.element.setAttribute("aria-expanded","false");this.isActive=!1;return this};return c}();f["default"]=q},520:function(q,f,c){q=this&&this.__importDefault||function(g){return g&&g.__esModule?g:{"default":g}}; 95Object.defineProperty(f,"__esModule",{value:!0});f.WrappedSelect=f.WrappedInput=f.List=f.Input=f.Container=f.Dropdown=void 0;var k=q(c(217));f.Dropdown=k.default;k=q(c(613));f.Container=k.default;k=q(c(11));f.Input=k.default;k=q(c(624));f.List=k.default;k=q(c(541));f.WrappedInput=k.default;c=q(c(982));f.WrappedSelect=c.default},11:function(q,f,c){Object.defineProperty(f,"__esModule",{value:!0});var k=c(799),g=c(883);q=function(){function p(h){var r=h.element,w=h.type,A=h.classNames;h=h.preventPaste; 96this.element=r;this.type=w;this.classNames=A;this.preventPaste=h;this.isFocussed=this.element.isEqualNode(document.activeElement);this.isDisabled=r.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)}Object.defineProperty(p.prototype,"placeholder",{set:function(h){this.element.placeholder=h},enumerable:!1,configurable:!0});Object.defineProperty(p.prototype,"value",{get:function(){return(0, 97k.sanitise)(this.element.value)},set:function(h){this.element.value=h},enumerable:!1,configurable:!0});Object.defineProperty(p.prototype,"rawValue",{get:function(){return this.element.value},enumerable:!1,configurable:!0});p.prototype.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})}; 98p.prototype.removeEventListeners=function(){this.element.removeEventListener("input",this._onInput);this.element.removeEventListener("paste",this._onPaste);this.element.removeEventListener("focus",this._onFocus);this.element.removeEventListener("blur",this._onBlur)};p.prototype.enable=function(){this.element.removeAttribute("disabled");this.isDisabled=!1};p.prototype.disable=function(){this.element.setAttribute("disabled","");this.isDisabled=!0};p.prototype.focus=function(){this.isFocussed||this.element.focus()}; 99p.prototype.blur=function(){this.isFocussed&&this.element.blur()};p.prototype.clear=function(h){void 0===h&&(h=!0);this.element.value&&(this.element.value="");h&&this.setWidth();return this};p.prototype.setWidth=function(){var h=this.element,r=h.style,w=h.value;r.minWidth="".concat(h.placeholder.length+1,"ch");r.width="".concat(w.length+1,"ch")};p.prototype.setActiveDescendant=function(h){this.element.setAttribute("aria-activedescendant",h)};p.prototype.removeActiveDescendant=function(){this.element.removeAttribute("aria-activedescendant")}; 100p.prototype._onInput=function(){this.type!==g.SELECT_ONE_TYPE&&this.setWidth()};p.prototype._onPaste=function(h){this.preventPaste&&h.preventDefault()};p.prototype._onFocus=function(){this.isFocussed=!0};p.prototype._onBlur=function(){this.isFocussed=!1};return p}();f["default"]=q},624:function(q,f,c){Object.defineProperty(f,"__esModule",{value:!0});var k=c(883);q=function(){function g(p){this.element=p.element;this.scrollPos=this.element.scrollTop;this.height=this.element.offsetHeight}g.prototype.clear= 101function(){this.element.innerHTML=""};g.prototype.append=function(p){this.element.appendChild(p)};g.prototype.getChild=function(p){return this.element.querySelector(p)};g.prototype.hasChildren=function(){return this.element.hasChildNodes()};g.prototype.scrollToTop=function(){this.element.scrollTop=0};g.prototype.scrollToChildElement=function(p,h){var r=this;if(p){var w=this.element.scrollTop+this.element.offsetHeight,A=p.offsetTop+p.offsetHeight,E=0<h?this.element.scrollTop+A-w:p.offsetTop;requestAnimationFrame(function(){r._animateScroll(E, 102h)})}};g.prototype._scrollDown=function(p,h,r){h=(r-p)/h;this.element.scrollTop=p+(1<h?h:1)};g.prototype._scrollUp=function(p,h,r){h=(p-r)/h;this.element.scrollTop=p-(1<h?h:1)};g.prototype._animateScroll=function(p,h){var r=this,w=k.SCROLLING_SPEED,A=this.element.scrollTop,E=!1;0<h?(this._scrollDown(A,w,p),A<p&&(E=!0)):(this._scrollUp(A,w,p),A>p&&(E=!0));E&&requestAnimationFrame(function(){r._animateScroll(p,h)})};return g}();f["default"]=q}
102,730:function(q,f,c){Object.defineProperty(f,"__esModule", 103{value:!0});var k=c(799);q=function(){function g(p){var h=p.element;p=p.classNames;this.element=h;this.classNames=p;if(!(h instanceof HTMLInputElement||h instanceof HTMLSelectElement))throw new TypeError("Invalid element passed");this.isDisabled=!1}Object.defineProperty(g.prototype,"isActive",{get:function(){return"active"===this.element.dataset.choice},enumerable:!1,configurable:!0});Object.defineProperty(g.prototype,"dir",{get:function(){return this.element.dir},enumerable:!1,configurable:!0}); 104Object.defineProperty(g.prototype,"value",{get:function(){return this.element.value},set:function(p){this.element.value=p},enumerable:!1,configurable:!0});g.prototype.conceal=function(){this.element.classList.add(this.classNames.input);this.element.hidden=!0;this.element.tabIndex=-1;var p=this.element.getAttribute("style");p&&this.element.setAttribute("data-choice-orig-style",p);this.element.setAttribute("data-choice","active")};g.prototype.reveal=function(){this.element.classList.remove(this.classNames.input); 105this.element.hidden=!1;this.element.removeAttribute("tabindex");var p=this.element.getAttribute("data-choice-orig-style");p?(this.element.removeAttribute("data-choice-orig-style"),this.element.setAttribute("style",p)):this.element.removeAttribute("style");this.element.removeAttribute("data-choice");this.element.value=this.element.value};g.prototype.enable=function(){this.element.removeAttribute("disabled");this.isDisabled=this.element.disabled=!1};g.prototype.disable=function(){this.element.setAttribute("disabled", 106"");this.isDisabled=this.element.disabled=!0};g.prototype.triggerEvent=function(p,h){(0,k.dispatchEvent)(this.element,p,h)};return g}();f["default"]=q},541:function(q,f,c){var k=this&&this.__extends||function(){var g=function(p,h){g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,w){r.__proto__=w}||function(r,w){for(var A in w)Object.prototype.hasOwnProperty.call(w,A)&&(r[A]=w[A])};return g(p,h)};return function(p,h){function r(){this.constructor=p}if("function"!==typeof h&&null!== 107h)throw new TypeError("Class extends value "+String(h)+" is not a constructor or null");g(p,h);p.prototype=null===h?Object.create(h):(r.prototype=h.prototype,new r)}}();q=this&&this.__importDefault||function(g){return g&&g.__esModule?g:{"default":g}};Object.defineProperty(f,"__esModule",{value:!0});c=function(g){function p(h){var r=h.delimiter;h=g.call(this,{element:h.element,classNames:h.classNames})||this;h.delimiter=r;return h}k(p,g);Object.defineProperty(p.prototype,"value",{get:function(){return this.element.value}, 108set:function(h){this.element.setAttribute("value",h);this.element.value=h},enumerable:!1,configurable:!0});return p}(q(c(730)).default);f["default"]=c},982:function(q,f,c){var k=this&&this.__extends||function(){var g=function(p,h){g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,w){r.__proto__=w}||function(r,w){for(var A in w)Object.prototype.hasOwnProperty.call(w,A)&&(r[A]=w[A])};return g(p,h)};return function(p,h){function r(){this.constructor=p}if("function"!==typeof h&&null!== 109h)throw new TypeError("Class extends value "+String(h)+" is not a constructor or null");g(p,h);p.prototype=null===h?Object.create(h):(r.prototype=h.prototype,new r)}}();q=this&&this.__importDefault||function(g){return g&&g.__esModule?g:{"default":g}};Object.defineProperty(f,"__esModule",{value:!0});c=function(g){function p(h){var r=h.template;h=g.call(this,{element:h.element,classNames:h.classNames})||this;h.template=r;return h}k(p,g);Object.defineProperty(p.prototype,"placeholderOption",{get:function(){return this.element.querySelector('option[value\x3d""]')|| 110this.element.querySelector("option[placeholder]")},enumerable:!1,configurable:!0});Object.defineProperty(p.prototype,"optionGroups",{get:function(){return Array.from(this.element.getElementsByTagName("OPTGROUP"))},enumerable:!1,configurable:!0});Object.defineProperty(p.prototype,"options",{get:function(){return Array.from(this.element.options)},set:function(h){var r=this,w=document.createDocumentFragment();h.forEach(function(A){A=r.template(A);w.appendChild(A)});this.appendDocFragment(w)},enumerable:!1, 111configurable:!0});p.prototype.appendDocFragment=function(h){this.element.innerHTML="";this.element.appendChild(h)};return p}(q(c(730)).default);f["default"]=c}
111,883:function(q,f){Object.defineProperty(f,"__esModule",{value:!0});f.EVENTS={showDropdown:"showDropdown",hideDropdown:"hideDropdown",change:"change",choice:"choice",search:"search",addItem:"addItem",removeItem:"removeItem",highlightItem:"highlightItem",highlightChoice:"highlightChoice",unhighlightItem:"unhighlightItem"};f.ACTION_TYPES={ADD_CHOICE:"ADD_CHOICE", 112FILTER_CHOICES:"FILTER_CHOICES",ACTIVATE_CHOICES:"ACTIVATE_CHOICES",CLEAR_CHOICES:"CLEAR_CHOICES",ADD_GROUP:"ADD_GROUP",ADD_ITEM:"ADD_ITEM",REMOVE_ITEM:"REMOVE_ITEM",HIGHLIGHT_ITEM:"HIGHLIGHT_ITEM",CLEAR_ALL:"CLEAR_ALL",RESET_TO:"RESET_TO",SET_IS_LOADING:"SET_IS_LOADING"};f.KEY_CODES={BACK_KEY:46,DELETE_KEY:8,ENTER_KEY:13,A_KEY:65,ESC_KEY:27,UP_KEY:38,DOWN_KEY:40,PAGE_UP_KEY:33,PAGE_DOWN_KEY:34};f.TEXT_TYPE="text";f.SELECT_ONE_TYPE="select-one";f.SELECT_MULTIPLE_TYPE="select-multiple";f.SCROLLING_SPEED= 1134},789:function(q,f,c){Object.defineProperty(f,"__esModule",{value:!0});f.DEFAULT_CONFIG=f.DEFAULT_CLASSNAMES=void 0;var k=c(799);f.DEFAULT_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", 114itemChoice:"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"};f.DEFAULT_CONFIG={items:[],choices:[],silent:!1,renderChoiceLimit:-1,maxItemCount:-1,addItems:!0, 115addItemFilter:null,removeItems:!0,removeItemButton:!1,editItems:!1,allowHTML:!0,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:k.sortByAlpha,placeholder:!0,placeholderValue:null,searchPlaceholderValue:null,prependValue:null,appendValue:null,renderSelectedChoices:"auto",loadingText:"Loading...",noResultsText:"No results found", 116noChoicesText:"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(g){return'Press Enter to add \x3cb\x3e"'.concat((0,k.sanitise)(g),'"\x3c/b\x3e')},maxItemText:function(g){return"Only ".concat(g," values can be added")},valueComparer:function(g,p){return g===p},fuseOptions:{includeScore:!0},labelId:"",callbackOnInit:null,callbackOnCreateTemplates:null, 117classNames:f.DEFAULT_CLASSNAMES}},18:function(q,f){Object.defineProperty(f,"__esModule",{value:!0})},978:function(q,f){Object.defineProperty(f,"__esModule",{value:!0})},948:function(q,f){Object.defineProperty(f,"__esModule",{value:!0})},359:function(q,f){Object.defineProperty(f,"__esModule",{value:!0})},285:function(q,f){Object.defineProperty(f,"__esModule",{value:!0})},533:function(q,f){Object.defineProperty(f,"__esModule",{value:!0})},187:function(q,f,c){var k=this&&this.__createBinding||(Object.create? 118function(g,p,h,r){void 0===r&&(r=h);var w=Object.getOwnPropertyDescriptor(p,h);if(!w||("get"in w?!p.__esModule:w.writable||w.configurable))w={enumerable:!0,get:function(){return p[h]}};Object.defineProperty(g,r,w)}:function(g,p,h,r){void 0===r&&(r=h);g[r]=p[h]});q=this&&this.__exportStar||function(g,p){for(var h in g)"default"===h||Object.prototype.hasOwnProperty.call(p,h)||k(p,g,h)};Object.defineProperty(f,"__esModule",{value:!0});q(c(18),f);q(c(978),f);q(c(948),f);q(c(359),f);q(c(285),f);q(c(533), 119f);q(c(287),f);q(c(132),f);q(c(837),f);q(c(598),f);q(c(369),f);q(c(37),f);q(c(47),f);q(c(923),f);q(c(876),f)},287:function(q,f){Object.defineProperty(f,"__esModule",{value:!0})}
119,132:function(q,f){Object.defineProperty(f,"__esModule",{value:!0})},837:function(q,f){Object.defineProperty(f,"__esModule",{value:!0})},598:function(q,f){Object.defineProperty(f,"__esModule",{value:!0})},37:function(q,f){Object.defineProperty(f,"__esModule",{value:!0})},369:function(q,f){Object.defineProperty(f,"__esModule", 120{value:!0})},47:function(q,f){Object.defineProperty(f,"__esModule",{value:!0})},923:function(q,f){Object.defineProperty(f,"__esModule",{value:!0})},876:function(q,f){Object.defineProperty(f,"__esModule",{value:!0})},799:function(q,f){Object.defineProperty(f,"__esModule",{value:!0});f.parseCustomProperties=f.diff=f.cloneObject=f.existsInArray=f.dispatchEvent=f.sortByScore=f.sortByAlpha=f.strToEl=f.sanitise=f.isScrolledIntoView=f.getAdjacentEl=f.wrap=f.isType=f.getType=f.generateId=f.generateChars= 121f.getRandomNumber=void 0;f.getRandomNumber=function(c,k){return Math.floor(Math.random()*(k-c)+c)};f.generateChars=function(c){return Array.from({length:c},function(){return(0,f.getRandomNumber)(0,36).toString(36)}).join("")};f.generateId=function(c,k){c=c.id||c.name&&"".concat(c.name,"-").concat((0,f.generateChars)(2))||(0,f.generateChars)(4);c=c.replace(/(:|\.|\[|\]|,)/g,"");return c="".concat(k,"-").concat(c)};f.getType=function(c){return Object.prototype.toString.call(c).slice(8,-1)};f.isType= 122function(c,k){return void 0!==k&&null!==k&&(0,f.getType)(k)===c};f.wrap=function(c,k){void 0===k&&(k=document.createElement("div"));c.parentNode&&(c.nextSibling?c.parentNode.insertBefore(k,c.nextSibling):c.parentNode.appendChild(k));return k.appendChild(c)};f.getAdjacentEl=function(c,k,g){void 0===g&&(g=1);g="".concat(0<g?"next":"previous","ElementSibling");for(c=c[g];c&&!c.matches(k);)c=c[g];return c};f.isScrolledIntoView=function(c,k,g){void 0===g&&(g=1);return c?0<g?k.scrollTop+k.offsetHeight>= 123c.offsetTop+c.offsetHeight:c.offsetTop>=k.scrollTop:!1};f.sanitise=function(c){return"string"!==typeof c?c:c.replace(/&/g,"\x26amp;").replace(/>/g,"\x26gt;").replace(/</g,"\x26lt;").replace(/"/g,"\x26quot;")};f.strToEl=function(){var c=document.createElement("div");return function(k){k=k.trim();c.innerHTML=k;for(k=c.children[0];c.firstChild;)c.removeChild(c.firstChild);return k}}();f.sortByAlpha=function(c,k){var g=c.value;c=c.label;var p=k.value;k=k.label;return(void 0===c?g:c).localeCompare(void 0=== 124k?p:k,[],{sensitivity:"base",ignorePunctuation:!0,numeric:!0})};f.sortByScore=function(c,k){c=c.score;k=k.score;return(void 0===c?0:c)-(void 0===k?0:k)};f.dispatchEvent=function(c,k,g){void 0===g&&(g=null);k=new CustomEvent(k,{detail:g,bubbles:!0,cancelable:!0});return c.dispatchEvent(k)};f.existsInArray=function(c,k,g){void 0===g&&(g="value");return c.some(function(p){return"string"===typeof k?p[g]===k.trim():p[g]===k})};f.cloneObject=function(c){return JSON.parse(JSON.stringify(c))};f.diff=function(c, 125k){c=Object.keys(c).sort();var g=Object.keys(k).sort();return c.filter(function(p){return 0>g.indexOf(p)})};f.parseCustomProperties=function(c){if("undefined"!==typeof c)try{return JSON.parse(c)}catch(k){return c}return{}}},273:function(q,f){var c=this&&this.__spreadArray||function(k,g,p){if(p||2===arguments.length)for(var h=0,r=g.length,w;h<r;h++)!w&&h in g||(w||(w=Array.prototype.slice.call(g,0,h)),w[h]=g[h]);return k.concat(w||Array.prototype.slice.call(g))};Object.defineProperty(f,"__esModule", 126{value:!0});f.defaultState=void 0;f.defaultState=[];f["default"]=function(k,g){void 0===k&&(k=f.defaultState);void 0===g&&(g={});switch(g.type){case "ADD_CHOICE":return g={id:g.id,elementId:g.elementId,groupId:g.groupId,value:g.value,label:g.label||g.value,disabled:g.disabled||!1,selected:!1,active:!0,score:9999,customProperties:g.customProperties,placeholder:g.placeholder||!1},c(c([],k,!0),[g],!1);case "ADD_ITEM":var p=g;return-1<p.choiceId?k.map(function(A){A.id===parseInt("".concat(p.choiceId), 12710)&&(A.selected=!0);return A}):k;case "REMOVE_ITEM":var h=g;return h.choiceId&&-1<h.choiceId?k.map(function(A){A.id===parseInt("".concat(h.choiceId),10)&&(A.selected=!1);return A}):k;case "FILTER_CHOICES":var r=g;return k.map(function(A){A.active=r.results.some(function(E){var C=E.score;return E.item.id===A.id?(A.score=C,!0):!1});return A});case "ACTIVATE_CHOICES":var w=g;return k.map(function(A){A.active=w.active;return A});case "CLEAR_CHOICES":return f.defaultState;default:return k}}},871:function(q, 128f){var c=this&&this.__spreadArray||function(k,g,p){if(p||2===arguments.length)for(var h=0,r=g.length,w;h<r;h++)!w&&h in g||(w||(w=Array.prototype.slice.call(g,0,h)),w[h]=g[h]);return k.concat(w||Array.prototype.slice.call(g))};
128Object.defineProperty(f,"__esModule",{value:!0});f.defaultState=void 0;f.defaultState=[];f["default"]=function(k,g){void 0===k&&(k=f.defaultState);void 0===g&&(g={});switch(g.type){case "ADD_GROUP":return c(c([],k,!0),[{id:g.id,value:g.value,active:g.active,disabled:g.disabled}], 129!1);case "CLEAR_CHOICES":return[];default:return k}}},655:function(q,f,c){var k=this&&this.__importDefault||function(A){return A&&A.__esModule?A:{"default":A}};Object.defineProperty(f,"__esModule",{value:!0});f.defaultState=void 0;q=c(791);var g=k(c(52)),p=k(c(871)),h=k(c(273));k=k(c(502));var r=c(799);f.defaultState={groups:[],items:[],choices:[],loading:!1};var w=(0,q.combineReducers)({items:g.default,groups:p.default,choices:h.default,loading:k.default});f["default"]=function(A,E){if("CLEAR_ALL"=== 130E.type)A=f.defaultState;else if("RESET_TO"===E.type)return(0,r.cloneObject)(E.state);return w(A,E)}},52:function(q,f){var c=this&&this.__spreadArray||function(k,g,p){if(p||2===arguments.length)for(var h=0,r=g.length,w;h<r;h++)!w&&h in g||(w||(w=Array.prototype.slice.call(g,0,h)),w[h]=g[h]);return k.concat(w||Array.prototype.slice.call(g))};Object.defineProperty(f,"__esModule",{value:!0});f.defaultState=void 0;f.defaultState=[];f["default"]=function(k,g){void 0===k&&(k=f.defaultState);void 0===g&& 131(g={});switch(g.type){case "ADD_ITEM":var p=g;return c(c([],k,!0),[{id:p.id,choiceId:p.choiceId,groupId:p.groupId,value:p.value,label:p.label,active:!0,highlighted:!1,customProperties:p.customProperties,placeholder:p.placeholder||!1,keyCode:null}],!1).map(function(r){r.highlighted=!1;return r});case "REMOVE_ITEM":return k.map(function(r){r.id===g.id&&(r.active=!1);return r});case "HIGHLIGHT_ITEM":var h=g;return k.map(function(r){r.id===h.id&&(r.highlighted=h.highlighted);return r});default:return k}}}, 132502:function(q,f){Object.defineProperty(f,"__esModule",{value:!0});f.defaultState=void 0;f.defaultState=!1;f["default"]=function(c,k){void 0===c&&(c=f.defaultState);void 0===k&&(k={});switch(k.type){case "SET_IS_LOADING":return k.isLoading;default:return c}}},744:function(q,f,c){var k=this&&this.__spreadArray||function(h,r,w){if(w||2===arguments.length)for(var A=0,E=r.length,C;A<E;A++)!C&&A in r||(C||(C=Array.prototype.slice.call(r,0,A)),C[A]=r[A]);return h.concat(C||Array.prototype.slice.call(r))}; 133q=this&&this.__importDefault||function(h){return h&&h.__esModule?h:{"default":h}};Object.defineProperty(f,"__esModule",{value:!0});var g=c(791),p=q(c(655));c=function(){function h(){this._store=(0,g.createStore)(p.default,window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__())}h.prototype.subscribe=function(r){this._store.subscribe(r)};h.prototype.dispatch=function(r){this._store.dispatch(r)};Object.defineProperty(h.prototype,"state",{get:function(){return this._store.getState()}, 134enumerable:!1,configurable:!0});Object.defineProperty(h.prototype,"items",{get:function(){return this.state.items},enumerable:!1,configurable:!0});Object.defineProperty(h.prototype,"activeItems",{get:function(){return this.items.filter(function(r){return!0===r.active})},enumerable:!1,configurable:!0});Object.defineProperty(h.prototype,"highlightedActiveItems",{get:function(){return this.items.filter(function(r){return r.active&&r.highlighted})},enumerable:!1,configurable:!0});Object.defineProperty(h.prototype, 135"choices",{get:function(){return this.state.choices},enumerable:!1,configurable:!0});Object.defineProperty(h.prototype,"activeChoices",{get:function(){return this.choices.filter(function(r){return!0===r.active})},enumerable:!1,configurable:!0});Object.defineProperty(h.prototype,"selectableChoices",{get:function(){return this.choices.filter(function(r){return!0!==r.disabled})},enumerable:!1,configurable:!0});Object.defineProperty(h.prototype,"searchableChoices",{get:function(){return this.selectableChoices.filter(function(r){return!0!== 136r.placeholder})},enumerable:!1,configurable:!0});Object.defineProperty(h.prototype,"placeholderChoice",{get:function(){return k([],this.choices,!0).reverse().find(function(r){return!0===r.placeholder})},enumerable:!1,configurable:!0});Object.defineProperty(h.prototype,"groups",{get:function(){return this.state.groups}
136,enumerable:!1,configurable:!0});Object.defineProperty(h.prototype,"activeGroups",{get:function(){var r=this.choices;return this.groups.filter(function(w){w=!0===w.active&&!1===w.disabled; 137var A=r.some(function(E){return!0===E.active&&!1===E.disabled});return w&&A},[])},enumerable:!1,configurable:!0});h.prototype.isLoading=function(){return this.state.loading};h.prototype.getChoiceById=function(r){return this.activeChoices.find(function(w){return w.id===parseInt(r,10)})};h.prototype.getGroupById=function(r){return this.groups.find(function(w){return w.id===r})};return h}();f["default"]=c},686:function(q,f){Object.defineProperty(f,"__esModule",{value:!0});f["default"]={containerOuter:function(c, 138k,g,p,h,r,w){c=c.classNames.containerOuter;c=Object.assign(document.createElement("div"),{className:c});c.dataset.type=r;k&&(c.dir=k);p&&(c.tabIndex=0);g&&(c.setAttribute("role",h?"combobox":"listbox"),h&&c.setAttribute("aria-autocomplete","list"));c.setAttribute("aria-haspopup","true");c.setAttribute("aria-expanded","false");w&&c.setAttribute("aria-labelledby",w);return c},containerInner:function(c){c=c.classNames.containerInner;return Object.assign(document.createElement("div"),{className:c})}, 139itemList:function(c,k){var g=c.classNames;c=g.list;var p=g.listSingle;g=g.listItems;return Object.assign(document.createElement("div"),{className:"".concat(c," ").concat(k?p:g)})},placeholder:function(c,k){var g,p=c.allowHTML;c=c.classNames.placeholder;return Object.assign(document.createElement("div"),(g={className:c},g[p?"innerHTML":"innerText"]=k,g))},item:function(c,k,g){var p,h,r=c.allowHTML,w=c.classNames,A=w.item;c=w.button;var E=w.highlightedState,C=w.itemSelectable,Q=w.placeholder,T=k.id; 140w=k.value;var U=k.label,aa=k.customProperties,da=k.active,ka=k.disabled,K=k.highlighted;k=k.placeholder;A=Object.assign(document.createElement("div"),(p={className:A},p[r?"innerHTML":"innerText"]=U,p));Object.assign(A.dataset,{item:"",id:T,value:w,customProperties:aa});da&&A.setAttribute("aria-selected","true");ka&&A.setAttribute("aria-disabled","true");k&&A.classList.add(Q);A.classList.add(K?E:C);g&&(ka&&A.classList.remove(C),A.dataset.deletable="",g=Object.assign(document.createElement("button"), 141(h={type:"button",className:c},h[r?"innerHTML":"innerText"]="Remove item",h)),g.setAttribute("aria-label","".concat("Remove item",": '").concat(w,"'")),g.dataset.button="",A.appendChild(g));return A},choiceList:function(c,k){c=c.classNames.list;c=Object.assign(document.createElement("div"),{className:c});k||c.setAttribute("aria-multiselectable","true");c.setAttribute("role","listbox");return c},choiceGroup:function(c,k){var g,p=c.allowHTML,h=c.classNames,r=h.group;c=h.groupHeading;var w=h.itemDisabled; 142h=k.id;var A=k.value;k=k.disabled;r=Object.assign(document.createElement("div"),{className:"".concat(r," ").concat(k?w:"")});r.setAttribute("role","group");Object.assign(r.dataset,{group:"",id:h,value:A});k&&r.setAttribute("aria-disabled","true");r.appendChild(Object.assign(document.createElement("div"),(g={className:c},g[p?"innerHTML":"innerText"]=A,g)));return r},choice:function(c,k,g){var p,h=c.allowHTML,r=c.classNames,w=r.item,A=r.itemChoice;c=r.itemSelectable;var E=r.selectedState,C=r.itemDisabled; 143r=r.placeholder;var Q=k.id,T=k.value,U=k.label,aa=k.groupId,da=k.elementId,ka=k.disabled,K=k.selected;k=k.placeholder;h=Object.assign(document.createElement("div"),(p={id:da},p[h?"innerHTML":"innerText"]=U,p.className="".concat(w," ").concat(A),p));K&&h.classList.add(E);k&&h.classList.add(r);h.setAttribute("role",aa&&0<aa?"treeitem":"option");Object.assign(h.dataset,{choice:"",id:Q,value:T,selectText:g});ka?(h.classList.add(C),h.dataset.choiceDisabled="",h.setAttribute("aria-disabled","true")):(h.classList.add(c), 144h.dataset.choiceSelectable="");return h},input:function(c,k){var g=c.classNames;c=g.input;g=g.inputCloned;c=Object.assign(document.createElement("input"),{type:"search",name:"search_terms",className:"".concat(c," ").concat(g),autocomplete:"off",autocapitalize:"off",spellcheck:!1});c.setAttribute("role","textbox");c.setAttribute("aria-autocomplete","list");c.setAttribute("aria-label",k);return c},dropdown:function(c){var k=c.classNames;c=k.list;k=k.listDropdown;var g=document.createElement("div"); 145g.classList.add(c,k);
145g.setAttribute("aria-expanded","false");return g},notice:function(c,k,g){var p,h=c.allowHTML,r=c.classNames,w=r.item,A=r.itemChoice;c=r.noResults;r=r.noChoices;void 0===g&&(g="");w=[w,A];"no-choices"===g?w.push(r):"no-results"===g&&w.push(c);return Object.assign(document.createElement("div"),(p={},p[h?"innerHTML":"innerText"]=k,p.className=w.join(" "),p))},option:function(c){var k=c.customProperties,g=c.disabled;c=new Option(c.label,c.value,!1,c.active);k&&(c.dataset.customProperties= 146"".concat(k));c.disabled=!!g;return c}}},996:function(q){function f(E,C){return!1!==C.clone&&C.isMergeableObject(E)?r(Array.isArray(E)?[]:{},E,C):E}function c(E,C,Q){return E.concat(C).map(function(T){return f(T,Q)})}function k(E){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(E).filter(function(C){return E.propertyIsEnumerable(C)}):[]}function g(E){return Object.keys(E).concat(k(E))}function p(E,C){try{return C in E}catch(Q){return!1}}function h(E,C,Q){var T={};Q.isMergeableObject(E)&& 147g(E).forEach(function(U){T[U]=f(E[U],Q)});g(C).forEach(function(U){if(!p(E,U)||Object.hasOwnProperty.call(E,U)&&Object.propertyIsEnumerable.call(E,U))if(p(E,U)&&Q.isMergeableObject(C[U])){if(Q.customMerge){var aa=Q.customMerge(U);aa="function"===typeof aa?aa:r}else aa=r;T[U]=aa(E[U],C[U],Q)}else T[U]=f(C[U],Q)});return T}function r(E,C,Q){Q=Q||{};Q.arrayMerge=Q.arrayMerge||c;Q.isMergeableObject=Q.isMergeableObject||w;Q.cloneUnlessOtherwiseSpecified=f;var T=Array.isArray(C),U=Array.isArray(E);return T!== 148U?f(C,Q):T?Q.arrayMerge(E,C,Q):h(E,C,Q)}var w=function(E){var C;if(C=!!E&&"object"===typeof E)C=Object.prototype.toString.call(E),C=!("[object RegExp]"===C||"[object Date]"===C||E.$$typeof===A);return C},A="function"===typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;r.all=function(E,C){if(!Array.isArray(E))throw Error("first argument should be an array");return E.reduce(function(Q,T){return r(Q,T,C)},{})};q.exports=r},221:function(q,f,c){function k(e){return Array.isArray?Array.isArray(e): 149"[object Array]"===h(e)}function g(e){return"string"===typeof e}function p(e){return void 0!==e&&null!==e}function h(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}function r(e){var n=1,l=null;if(g(e)||k(e)){var B=e;var D=k(e)?e:e.split(".");var x=w(e)}else{if(!b.call(e,"name"))throw Error("Missing name property in key");B=x=e.name;if(b.call(e,"weight")&&(n=e.weight,0>=n))throw Error("Property 'weight' in key '"+x+"' must be a positive integer"); 150D=k(x)?x:x.split(".");x=w(x);l=e.getFn}return{path:D,id:x,weight:n,src:B,getFn:l}}function w(e){return k(e)?e.join("."):e}function A(e,n){e=void 0===e?1:e;n=void 0===n?3:n;var l=new Map,B=Math.pow(10,n);return{get:function(D){D=D.match(u).length;if(l.has(D))return l.get(D);var x=parseFloat(Math.round(1/Math.pow(D,.5*e)*B)/B);l.set(D,x);return x},clear:function(){l.clear()}}}function E(e,n,l){l=void 0===l?{}:l;l=new z({getFn:void 0===l.getFn?m.getFn:l.getFn,fieldNormWeight:void 0===l.fieldNormWeight? 151m.fieldNormWeight:l.fieldNormWeight});l.setKeys(e.map(r));l.setSources(n);l.create();return l}function C(e,n){var l=void 0===n?{}:n;n=void 0===l.distance?m.distance:l.distance;e=(void 0===l.errors?0:l.errors)/e.length;if(void 0===l.ignoreLocation?m.ignoreLocation:l.ignoreLocation)return e;l=Math.abs((void 0===l.expectedLocation?0:l.expectedLocation)-(void 0===l.currentLocation?0:l.currentLocation));return n?e+l/n:l?1:e}function Q(e,n){return(e=e.match(n))?e[1]:null}function T(e,n){n=void 0===n?{}: 152n;return e.split("|").map(function(l){l=l.trim().split(Ea).filter(function(Y){return Y&&!!Y.trim()});for(var B=[],D=0,x=l.length;D<x;D+=1){for(var y=l[D],I=!1,J=-1;!I&&++J<Aa;){var O=ea[J],Z=O.isMultiMatch(y);Z&&(B.push(new O(Z,n)),I=!0)}if(!I)for(J=-1;++J<Aa;)if(I=ea[J],O=I.isSingleMatch(y)){B.push(new I(O,n));break}}return B})}function U(e,n){for(var l=0,B=Ba.length;l<B;l+=1){var D=Ba[l];if(D.condition(e,n))return new D(e,n)}return new F(e,n)}function aa(e,n,l){l=void 0===l?{}:l;var B=void 0=== 153l.auto?!0:l.auto,D=function(x){var y=Object.keys(x),I=!!x[Fa.PATH];if(!I&&1<y.length&&!x[xa]&&!x[Ga])return D(Ia(x));if(Ka(x)){y=I?x[Fa.PATH]:y[0];I=I?x[Fa.PATTERN]:x[y];if(!g(I))throw Error("Invalid value for key "+y);y={keyId:w(y),pattern:I};B&&(y.searcher=U(I,n));return y}var J={children:[],operator:y[0]};
153y.forEach(function(O){O=x[O];k(O)&&O.forEach(function(Z){J.children.push(D(Z))})});return J};e[xa]||e[Ga]||(e=Ia(e));return D(e)}function da(e,n){var l=void 0===n.ignoreFieldNorm?m.ignoreFieldNorm: 154n.ignoreFieldNorm;e.forEach(function(B){var D=1;B.matches.forEach(function(x){var y=x.key,I=x.norm;x=x.score;y=y?y.weight:null;D*=Math.pow(0===x&&y?Number.EPSILON:x,(y||1)*(l?1:I))});B.score=D})}function ka(e,n){e=e.matches;n.matches=[];p(e)&&e.forEach(function(l){if(p(l.indices)&&l.indices.length){var B={indices:l.indices,value:l.value};l.key&&(B.key=l.key.src);-1<l.idx&&(B.refIndex=l.idx);n.matches.push(B)}})}function K(e,n){n.score=e.score}function t(e,n,l){l=void 0===l?{}:l;var B=void 0===l.includeScore? 155m.includeScore:l.includeScore,D=[];(void 0===l.includeMatches?m.includeMatches:l.includeMatches)&&D.push(ka);B&&D.push(K);return e.map(function(x){var y=x.idx,I={item:n[y],refIndex:y};D.length&&D.forEach(function(J){J(x,I)});return I})}c.r(f);c.d(f,{"default":function(){return ba}});var a=1/0,b=Object.prototype.hasOwnProperty,d=function(e){var n=this;this._keys=[];this._keyMap={};var l=0;e.forEach(function(B){B=r(B);l+=B.weight;n._keys.push(B);n._keyMap[B.id]=B;l+=B.weight});this._keys.forEach(function(B){B.weight/= 156l})};d.prototype.get=function(e){return this._keyMap[e]};d.prototype.keys=function(){return this._keys};d.prototype.toJSON=function(){return JSON.stringify(this._keys)};var m=Object.assign({},{isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:function(e,n){return e.score===n.score?e.idx<n.idx?-1:1:e.score<n.score?-1:1}},{includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},{location:0,threshold:.6,distance:100},{useExtendedSearch:!1,getFn:function(e,n){var l=[],B=!1,D=function(x, 157y,I){if(p(x))if(y[I]){if(x=x[y[I]],p(x))if(I===y.length-1&&(g(x)||"number"===typeof x||!0===x||!1===x||"object"===typeof x&&null!==x&&"[object Boolean]"==h(x)))y=l.push,null==x?x="":"string"!=typeof x&&(I=x+"",x="0"==I&&1/x==-a?"-0":I),y.call(l,x);else if(k(x)){B=!0;for(var J=0,O=x.length;J<O;J+=1)D(x[J],y,I+1)}else y.length&&D(x,y,I+1)}else l.push(x)};D(e,g(n)?n.split("."):n,0);return B?l:l[0]},ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1}),u=/[^ ]+/g,z=function(e){e=void 0===e?{}:e;var n= 158void 0===e.getFn?m.getFn:e.getFn;this.norm=A(void 0===e.fieldNormWeight?m.fieldNormWeight:e.fieldNormWeight,3);this.getFn=n;this.isCreated=!1;this.setIndexRecords()};z.prototype.setSources=function(e){this.docs=e=void 0===e?[]:e};z.prototype.setIndexRecords=function(e){this.records=e=void 0===e?[]:e};z.prototype.setKeys=function(e){var n=this;this.keys=e=void 0===e?[]:e;this._keysMap={};e.forEach(function(l,B){n._keysMap[l.id]=B})};z.prototype.create=function(){var e=this;!this.isCreated&&this.docs.length&& 159(this.isCreated=!0,g(this.docs[0])?this.docs.forEach(function(n,l){e._addString(n,l)}):this.docs.forEach(function(n,l){e._addObject(n,l)}),this.norm.clear())};z.prototype.add=function(e){var n=this.size();g(e)?this._addString(e,n):this._addObject(e,n)};z.prototype.removeAt=function(e){this.records.splice(e,1);for(var n=this.size();e<n;e+=1)--this.records[e].i};z.prototype.getValueForItemAtKeyId=function(e,n){return e[this._keysMap[n]]};z.prototype.size=function(){return this.records.length};z.prototype._addString= 160function(e,n){p(e)&&e.trim().length&&(e={v:e,i:n,n:this.norm.get(e)},this.records.push(e))};z.prototype._addObject=function(e,n){var l=this,B={i:n,$:{}};this.keys.forEach(function(D,x){var y=D.getFn?D.getFn(e):l.getFn(e,D.path);if(p(y))if(k(y)){D=[];for(var I=[{nestedArrIndex:-1,value:y}];I.length;){var J=I.pop();y=J.nestedArrIndex;J=J.value;p(J)&&(g(J)&&J.trim().length?(y={v:J,i:y,n:l.norm.get(J)},D.push(y)):k(J)&&J.forEach(function(O,Z){I.push({nestedArrIndex:Z,value:O})}))}B.$[x]=D}else g(y)&& 161y.trim().length&&(D={v:y,n:l.norm.get(y)},B.$[x]=D)});this.records.push(B)};z.prototype.toJSON=function(){return{keys:this.keys,records:this.records}};var F=function(e,n){var l=this;n=void 0===n?{}:n;var B=void 0===n.isCaseSensitive?m.isCaseSensitive:n.isCaseSensitive;this.options={location:void 0===n.location?m.location:n.location,threshold:void 0===n.threshold?m.threshold:n.threshold,distance:void 0===n.distance?m.distance:n.distance,includeMatches:void 0===n.includeMatches?m.includeMatches:n.includeMatches, 162findAllMatches:void 0===n.findAllMatches?m.findAllMatches:n.findAllMatches,minMatchCharLength:void 0===n.minMatchCharLength?m.minMatchCharLength:n.minMatchCharLength,isCaseSensitive:B,ignoreLocation:void 0===n.ignoreLocation?m.ignoreLocation:n.ignoreLocation};this.pattern=B?e:e.toLowerCase();this.chunks=[];if(this.pattern.length)if(e=function(y,I){for(var J=l.chunks,O=J.push,Z={},Y=0,X=y.length;Y<X;Y+=1){var fa=y.charAt(Y);Z[fa]=(Z[fa]||0)|1<<X-Y-1}O.call(J,{pattern:y,alphabet:Z,startIndex:I})},n= 163this.pattern.length,32<n){B=0;for(var D=n%32,x=n-D;B<x;)e(this.pattern.substr(B,32),B),B+=32;D&&(n-=32,e(this.pattern.substr(n),n))}else e(this.pattern,0)};F.prototype.searchIn=function(e){var n=this.options,l=n.includeMatches;n.isCaseSensitive||(e=e.toLowerCase());if(this.pattern===e)return n={isMatch:!0,score:0},l&&(n.indices=[[0,e.length-1]]),n;n=this.options;var B=n.location,D=n.distance,x=n.threshold,y=n.findAllMatches,I=n.minMatchCharLength,J=n.ignoreLocation,O=[],Z=0,Y=!1;this.chunks.forEach(function(X){var fa= 164e,ia=X.pattern,qa=X.alphabet;X={location:B+X.startIndex,distance:D,threshold:x,findAllMatches:y,minMatchCharLength:I,includeMatches:l,ignoreLocation:J};var V=void 0===X?{}:X,ya=void 0===V.location?m.location:V.location,na=void 0===V.distance?m.distance:V.distance,za=void 0===V.threshold?m.threshold:V.threshold,la=void 0===V.findAllMatches?m.findAllMatches:V.findAllMatches,va=void 0===V.minMatchCharLength?m.minMatchCharLength:V.minMatchCharLength;X=void 0===V.includeMatches?m.includeMatches:V.includeMatches; 165V=void 0===V.ignoreLocation?m.ignoreLocation:V.ignoreLocation;if(32<ia.length)throw Error("Pattern length exceeds max of 32.");var ra=ia.length,ma=fa.length,ja=Math.max(0,Math.min(ya,ma)),wa=za,oa=ja;ya=(za=1<va||X)?Array(ma):[];for(var pa;-1<(pa=fa.indexOf(ia,oa));
165)if(oa=C(ia,{currentLocation:pa,expectedLocation:ja,distance:na,ignoreLocation:V}),wa=Math.min(oa,wa),oa=pa+ra,za)for(var sa=0;sa<ra;)ya[pa+sa]=1,sa+=1;oa=-1;sa=[];pa=1;for(var Ca=ra+ma,La=1<<ra-1,ta=0;ta<ra;ta+=1){for(var ua=0,ca=Ca;ua< 166ca;)C(ia,{errors:ta,currentLocation:ja+ca,expectedLocation:ja,distance:na,ignoreLocation:V})<=wa?ua=ca:Ca=ca,ca=Math.floor((Ca-ua)/2+ua);Ca=ca;ua=Math.max(1,ja-ca+1);var ha=la?ma:Math.min(ja+ca,ma)+ra;ca=Array(ha+2);for(ca[ha+1]=(1<<ta)-1;ha>=ua;--ha){var Da=ha-1,Ja=qa[fa.charAt(Da)];za&&(ya[Da]=+!!Ja);ca[ha]=(ca[ha+1]<<1|1)&Ja;ta&&(ca[ha]=ca[ha]|(sa[ha+1]|sa[ha])<<1|1|sa[ha+1]);if(ca[ha]&La&&(pa=C(ia,{errors:ta,currentLocation:Da,expectedLocation:ja,distance:na,ignoreLocation:V}),pa<=wa)){wa=pa; 167oa=Da;if(oa<=ja)break;ua=Math.max(1,2*ja-oa)}}if(C(ia,{errors:ta+1,currentLocation:ja,expectedLocation:ja,distance:na,ignoreLocation:V})>wa)break;sa=ca}ia=0<=oa;fa=Math.max(.001,pa);var Ha;if(za){qa=ya;qa=void 0===qa?[]:qa;va=void 0===va?m.minMatchCharLength:va;na=[];la=-1;V=0;for(ra=qa.length;V<ra;V+=1)(ma=qa[V])&&-1===la?la=V:ma||-1===la||(ma=V-1,ma-la+1>=va&&na.push([la,ma]),la=-1);qa[V-1]&&V-la>=va&&na.push([la,V-1]);na.length?X&&(Ha=na):ia=!1}(X=ia)&&(Y=!0);Z+=fa;X&&Ha&&(O=[].concat($jscomp.arrayFromIterable(O), 168$jscomp.arrayFromIterable(Ha)))});n={isMatch:Y,score:Y?Z/this.chunks.length:1};Y&&l&&(n.indices=O);return n};q=function(e){this.pattern=e};q.isMultiMatch=function(e){return Q(e,this.multiRegex)};q.isSingleMatch=function(e){return Q(e,this.singleRegex)};q.prototype.search=function(){};f=function(e){this.pattern=e;return this};$jscomp.inherits(f,q);f.prototype.search=function(e){e=e===this.pattern;return{isMatch:e,score:e?0:1,indices:[0,this.pattern.length-1]}};$jscomp.global.Object.defineProperties(f, 169{type:{configurable:!0,enumerable:!0,get:function(){return"exact"}},multiRegex:{configurable:!0,enumerable:!0,get:function(){return/^="(.*)"$/}},singleRegex:{configurable:!0,enumerable:!0,get:function(){return/^=(.*)$/}}});c=function(e){this.pattern=e;return this};$jscomp.inherits(c,q);c.prototype.search=function(e){var n=-1===e.indexOf(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,e.length-1]}};$jscomp.global.Object.defineProperties(c,{type:{configurable:!0,enumerable:!0,get:function(){return"inverse-exact"}}, 170multiRegex:{configurable:!0,enumerable:!0,get:function(){return/^!"(.*)"$/}},singleRegex:{configurable:!0,enumerable:!0,get:function(){return/^!(.*)$/}}});var N=function(e){this.pattern=e;return this};$jscomp.inherits(N,q);N.prototype.search=function(e){e=e.startsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,this.pattern.length-1]}};$jscomp.global.Object.defineProperties(N,{type:{configurable:!0,enumerable:!0,get:function(){return"prefix-exact"}},multiRegex:{configurable:!0,enumerable:!0, 171get:function(){return/^\^"(.*)"$/}},singleRegex:{configurable:!0,enumerable:!0,get:function(){return/^\^(.*)$/}}});var L=function(e){this.pattern=e;return this};$jscomp.inherits(L,q);L.prototype.search=function(e){var n=!e.startsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,e.length-1]}};$jscomp.global.Object.defineProperties(L,{type:{configurable:!0,enumerable:!0,get:function(){return"inverse-prefix-exact"}},multiRegex:{configurable:!0,enumerable:!0,get:function(){return/^!\^"(.*)"$/}}, 172singleRegex:{configurable:!0,enumerable:!0,get:function(){return/^!\^(.*)$/}}});var S=function(e){this.pattern=e;return this};$jscomp.inherits(S,q);S.prototype.search=function(e){var n=e.endsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[e.length-this.pattern.length,e.length-1]}};$jscomp.global.Object.defineProperties(S,{type:{configurable:!0,enumerable:!0,get:function(){return"suffix-exact"}},multiRegex:{configurable:!0,enumerable:!0,get:function(){return/^"(.*)"\$$/}},singleRegex:{configurable:!0, 173enumerable:!0,get:function(){return/^(.*)\$$/}}});var W=function(e){this.pattern=e;return this};$jscomp.inherits(W,q);W.prototype.search=function(e){var n=!e.endsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,e.length-1]}};$jscomp.global.Object.defineProperties(W,{type:{configurable:!0,enumerable:!0,get:function(){return"inverse-suffix-exact"}},multiRegex:{configurable:!0,enumerable:!0,get:function(){return/^!"(.*)"\$$/}},singleRegex:{configurable:!0,enumerable:!0,get:function(){return/^!(.*)\$$/}}}); 174var M=function(e,n){var l=void 0===n?{}:n;n=void 0===l.location?m.location:l.location;var B=void 0===l.threshold?m.threshold:l.threshold,D=void 0===l.distance?m.distance:l.distance,x=void 0===l.includeMatches?m.includeMatches:l.includeMatches,y=void 0===l.findAllMatches?m.findAllMatches:l.findAllMatches,I=void 0===l.minMatchCharLength?m.minMatchCharLength:l.minMatchCharLength,J=void 0===l.isCaseSensitive?m.isCaseSensitive:l.isCaseSensitive;l=void 0===l.ignoreLocation?m.ignoreLocation:l.ignoreLocation; 175this.pattern=e;this._bitapSearch=new F(e,{location:n,threshold:B,distance:D,includeMatches:x,findAllMatches:y,minMatchCharLength:I,isCaseSensitive:J,ignoreLocation:l});return this};$jscomp.inherits(M,q);M.prototype.search=function(e){return this._bitapSearch.searchIn(e)};$jscomp.global.Object.defineProperties(M,{type:{configurable:!0,enumerable:!0,get:function(){return"fuzzy"}},multiRegex:{configurable:!0,enumerable:!0,get:function(){return/^"(.*)"$/}},singleRegex:{configurable:!0,enumerable:!0,get:function(){return/^(.*)$/}}}); 176var R=function(e){this.pattern=e;return this};$jscomp.inherits(R,q);R.prototype.search=function(e){for(var n=0,l,B=[],D=this.pattern.length;-1<(l=e.indexOf(this.pattern,n));)n=l+D,B.push([l,n-1]);e=!!B.length;return{isMatch:e,score:e?0:1,indices:B}};$jscomp.global.Object.defineProperties(R,{type:{configurable:!0,enumerable:!0,get:function(){return"include"}},multiRegex:{configurable:!0,enumerable:!0,get:function(){return/^'"(.*)"$/}},singleRegex:{configurable:!0,enumerable:!0,get:function(){return/^'(.*)$/}}}); 177var ea=[f,R,N,L,W,S,c,M],Aa=ea.length,Ea=/ +(?=(?:[^"]*"[^"]*")*[^"]*$)/,Ma=new Set([M.type,R.type]);q=function(e,n){var l=void 0===n?{}:n;n=void 0===l.isCaseSensitive?m.isCaseSensitive:l.isCaseSensitive;var B=void 0===l.includeMatches?m.includeMatches:l.includeMatches,D=void 0===l.minMatchCharLength?m.minMatchCharLength:l.minMatchCharLength,x=void 0===l.ignoreLocation?m.ignoreLocation:l.ignoreLocation,y=void 0===l.findAllMatches?m.findAllMatches:l.findAllMatches,I=void 0===l.location?m.location: 178l.location,J=void 0===l.threshold?m.threshold:l.threshold;l=void 0===l.distance?m.distance:l.distance;this.query=null;this.options={isCaseSensitive:n,includeMatches:B,minMatchCharLength:D,findAllMatches:y,ignoreLocation:x,location:I,threshold:J,distance:l};this.pattern=n?e:e.toLowerCase();this.query=T(this.pattern,this.options)};q.condition=function(e,n){return n.useExtendedSearch};q.prototype.searchIn=function(e){var n=this.query;if(!n)return{isMatch:!1,score:1};var l=this.options,B=l.includeMatches; 179e=l.isCaseSensitive?e:e.toLowerCase();var D;l=[];for(var x=0,y=0,I=n.length;y<I;y+=1){for(var J=n[y],O=D=l.length=0,Z=J.length;O<Z;O+=1){var Y=J[O],X=Y.search(e),fa=X.indices,ia=X.score;if(X.isMatch)D+=1,x+=ia,B&&(Ma.has(Y.constructor.type)?l=[].concat($jscomp.arrayFromIterable(l),$jscomp.arrayFromIterable(fa)):l.push(fa));else{D=x=0;l.length=0;break}}if(D)return e={isMatch:!0,score:x/D},B&&(e.indices=l),e}return{isMatch:!1,score:1}};var Ba=[],xa="$and",Ga="$or",Fa={PATH:"$path",PATTERN:"$val"},Ka= 180function(e){return!k(e)&&"object"===typeof e&&!(e[xa]||e[Ga])},Ia=function(e){var n={};return n[xa]=Object.keys(e).map(function(l){var B={};return B[l]=e[l],B}),n},ba=function(e,n,l){n=void 0===n?{}:n;this.options=Object.assign({},m,n);this._keyStore=new d(this.options.keys);this.setCollection(e,l)};ba.prototype.setCollection=function(e,n){this._docs=e;if(n&&!(n instanceof z))throw Error("Incorrect 'index' type");this._myIndex=n||E(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}; 181ba.prototype.add=function(e){p(e)&&(this._docs.push(e),this._myIndex.add(e))};ba.prototype.remove=function(e){e=void 0===e?function(){return!1}:e;for(var n=[],l=0,B=this._docs.length;l<B;l+=1){var D=this._docs[l];e(D,l)&&(this.removeAt(l),--l,--B,n.push(D))}return n};ba.prototype.removeAt=function(e){this._docs.splice(e,1);this._myIndex.removeAt(e)};ba.prototype.getIndex=function(){return this._myIndex};
181ba.prototype.search=function(e,n){n=void 0===n?{}:n;n=void 0===n.limit?-1:n.limit;var l=this.options, 182B=l.includeMatches,D=l.includeScore,x=l.shouldSort,y=l.sortFn;l=l.ignoreFieldNorm;e=g(e)?g(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);da(e,{ignoreFieldNorm:l});x&&e.sort(y);"number"===typeof n&&-1<n&&(e=e.slice(0,n));return t(e,this._docs,{includeMatches:B,includeScore:D})};ba.prototype._searchStringList=function(e){var n=U(e,this.options),l=[];this._myIndex.records.forEach(function(B){var D=B.v,x=B.i;B=B.n;if(p(D)){var y=n.searchIn(D),I=y.score,J=y.indices; 183y.isMatch&&l.push({item:D,idx:x,matches:[{score:I,value:D,norm:B,indices:J}]})}});return l};ba.prototype._searchLogical=function(e){var n=this,l=aa(e,this.options),B=function(y,I,J){if(!y.children){var O=y.keyId;y=y.searcher;return(y=n._findMatches({key:n._keyStore.get(O),value:n._myIndex.getValueForItemAtKeyId(I,O),searcher:y}))&&y.length?[{idx:J,item:I,matches:y}]:[]}O=[];for(var Z=0,Y=y.children.length;Z<Y;Z+=1){var X=B(y.children[Z],I,J);if(X.length)O.push.apply(O,$jscomp.arrayFromIterable(X)); 184else if(y.operator===xa)return[]}return O},D={},x=[];this._myIndex.records.forEach(function(y){var I=y.$,J=y.i;p(I)&&(y=B(l,I,J),y.length&&(D[J]||(D[J]={idx:J,item:I,matches:[]},x.push(D[J])),y.forEach(function(O){D[J].matches.push.apply(D[J].matches,$jscomp.arrayFromIterable(O.matches))})))});return x};ba.prototype._searchObjectList=function(e){var n=this,l=U(e,this.options);e=this._myIndex;var B=e.keys,D=[];e.records.forEach(function(x){var y=x.$;x=x.i;if(p(y)){var I=[];B.forEach(function(J,O){I.push.apply(I, 185$jscomp.arrayFromIterable(n._findMatches({key:J,value:y[O],searcher:l})))});I.length&&D.push({idx:x,item:y,matches:I})}});return D};ba.prototype._findMatches=function(e){var n=e.key,l=e.value,B=e.searcher;if(!p(l))return[];var D=[];if(k(l))l.forEach(function(J){var O=J.v,Z=J.i;J=J.n;if(p(O)){var Y=B.searchIn(O),X=Y.score,fa=Y.indices;Y.isMatch&&D.push({score:X,key:n,value:O,idx:Z,norm:J,indices:fa})}});else{e=l.v;l=l.n;var x=B.searchIn(e),y=x.score,I=x.indices;x.isMatch&&D.push({score:y,key:n,value:e, 186norm:l,indices:I})}return D};ba.version="6.6.2";ba.createIndex=E;ba.parseIndex=function(e,n){var l=void 0===n?{}:n;n=e.keys;e=e.records;l=new z({getFn:void 0===l.getFn?m.getFn:l.getFn,fieldNormWeight:void 0===l.fieldNormWeight?m.fieldNormWeight:l.fieldNormWeight});l.setKeys(n);l.setIndexRecords(e);return l};ba.config=m;ba.parseQuery=aa;(function(e){for(var n=[],l=0;l<arguments.length;++l)n[l-0]=arguments[l];Ba.push.apply(Ba,$jscomp.arrayFromIterable(n))})(q)},791:function(q,f,c){function k(K){"@babel/helpers - typeof"; 187return k="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},k(K)}function g(K,t){var a=Object.keys(K);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(K);t&&(b=b.filter(function(d){return Object.getOwnPropertyDescriptor(K,d).enumerable}));a.push.apply(a,b)}return a}function p(K){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]? 188arguments[t]:{};t%2?g(Object(a),!0).forEach(function(b){var d=a[b];a:if("object"===k(b)&&null!==b){var m=b[Symbol.toPrimitive];if(void 0!==m){b=m.call(b,"string");if("object"!==k(b))break a;throw new TypeError("@@toPrimitive must return a primitive value.");}b=String(b)}b="symbol"===k(b)?b:String(b);b in K?Object.defineProperty(K,b,{value:d,enumerable:!0,configurable:!0,writable:!0}):K[b]=d}):Object.getOwnPropertyDescriptors?Object.defineProperties(K,Object.getOwnPropertyDescriptors(a)):g(Object(a)).forEach(function(b){Object.defineProperty(K, 189b,Object.getOwnPropertyDescriptor(a,b))})}return K}function h(K){return"Minified Redux error #"+K+"; visit https://redux.js.org/Errors?code\x3d"+K+" for the full message or use the non-minified dev environment for full errors. "}function r(K,t,a,b){function d(){if(W)throw Error(h(3));return N}function m(M){if("function"!==typeof M)throw Error(h(4));if(W)throw Error(h(5));var R=!0;S===L&&(S=L.slice());S.push(M);return function(){if(R){if(W)throw Error(h(6));R=!1;S===L&&(S=L.slice());var ea=S.indexOf(M); 190S.splice(ea,1);L=null}}}function u(M){if("object"!==typeof M||null===M)var R=!1;else{for(R=M;null!==Object.getPrototypeOf(R);)R=Object.getPrototypeOf(R);R=Object.getPrototypeOf(M)===R}if(!R)throw Error(h(7));if("undefined"===typeof M.type)throw Error(h(8));if(W)throw Error(h(9));try{W=!0,N=F(N,M)}finally{W=!1}
190R=L=S;for(var ea=0;ea<R.length;ea++)(0,R[ea])();return M}var z;if("function"===typeof t&&"function"===typeof a||"function"===typeof a&&"function"===typeof b)throw Error(h(0));"function"===typeof t&& 191"undefined"===typeof a&&(a=t,t=void 0);if("undefined"!==typeof a){if("function"!==typeof a)throw Error(h(1));return a(r)(K,t)}if("function"!==typeof K)throw Error(h(2));var F=K,N=t,L=[],S=L,W=!1;u({type:da.INIT});return z={dispatch:u,subscribe:m,getState:d,replaceReducer:function(M){if("function"!==typeof M)throw Error(h(10));F=M;u({type:da.REPLACE})}},z[U]=function(){var M;return M={subscribe:function(R){function ea(){R.next&&R.next(d())}if("object"!==typeof R||null===R)throw Error(h(11));ea();return{unsubscribe:m(ea)}}}, 192M[U]=function(){return this},M},z}function w(K){Object.keys(K).forEach(function(t){t=K[t];if("undefined"===typeof t(void 0,{type:da.INIT}))throw Error(h(12));if("undefined"===typeof t(void 0,{type:da.PROBE_UNKNOWN_ACTION()}))throw Error(h(13));})}function A(K){for(var t=Object.keys(K),a={},b=0;b<t.length;b++){var d=t[b];"function"===typeof K[d]&&(a[d]=K[d])}var m=Object.keys(a);try{w(a)}catch(z){var u=z}return function(z,F){void 0===z&&(z={});if(u)throw u;for(var N=!1,L={},S=0;S<m.length;S++){var W= 193m[S],M=z[W],R=(0,a[W])(M,F);if("undefined"===typeof R)throw Error(h(14));L[W]=R;N=N||R!==M}return(N=N||m.length!==Object.keys(z).length)?L:z}}function E(K,t){return function(){return t(K.apply(this,arguments))}}function C(K,t){if("function"===typeof K)return E(K,t);if("object"!==typeof K||null===K)throw Error(h(16));var a={},b;for(b in K){var d=K[b];"function"===typeof d&&(a[b]=E(d,t))}return a}function Q(){for(var K=arguments.length,t=Array(K),a=0;a<K;a++)t[a]=arguments[a];return 0===t.length?function(b){return b}: 1941===t.length?t[0]:t.reduce(function(b,d){return function(){return b(d.apply(void 0,arguments))}})}function T(){for(var K=arguments.length,t=Array(K),a=0;a<K;a++)t[a]=arguments[a];return function(b){return function(){var d=b.apply(void 0,arguments),m=function(){throw Error(h(15));},u={getState:d.getState,dispatch:function(){return m.apply(void 0,arguments)}},z=t.map(function(F){return F(u)});m=Q.apply(void 0,z)(d.dispatch);return p(p({},d),{},{dispatch:m})}}}c.r(f);c.d(f,{__DO_NOT_USE__ActionTypes:function(){return da}, 195applyMiddleware:function(){return T},bindActionCreators:function(){return C},combineReducers:function(){return A},compose:function(){return Q},createStore:function(){return r},legacy_createStore:function(){return ka}});var U="function"===typeof Symbol&&Symbol.observable||"@@observable",aa=function(){return Math.random().toString(36).substring(7).split("").join(".")},da={INIT:"@@redux/INIT"+aa(),REPLACE:"@@redux/REPLACE"+aa(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+aa()}}, 196ka=r}},H={};!function(){v.n=function(q){var f=q&&q.__esModule?function(){return q["default"]}:function(){return q};v.d(f,{a:f});return f}}();!function(){v.d=function(q,f){for(var c in f)v.o(f,c)&&!v.o(q,c)&&Object.defineProperty(q,c,{enumerable:!0,get:f[c]})}}();!function(){v.o=function(q,f){return Object.prototype.hasOwnProperty.call(q,f)}}();!function(){v.r=function(q){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(q,Symbol.toStringTag,{value:"Module"});Object.defineProperty(q, 197"__esModule",{value:!0})}}();var P={};!function(){var q=v(373);q=v.n(q);var f=v(187);v.n(f);v(883);v(789);v(686);P["default"]=q()}();return P=P["default"]}()});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.