PageSourceSearch

https://pixelsurplus.com/cdn/shop/t/41/assets/custom_bundle.aio.min.js?v=67296031757085081661738087556

js pixelsurplus.com collected 2026-09-24 09:50:19 UTC 81,841 bytes, 5 lines download raw bytes

1/*
2Generated time: January 28, 2025 18:05
3This file was created by the app developer. Feel free to contact the original developer with any questions. It was minified (compressed) by AVADA. AVADA do NOT own this script.
4*/
5(i=>{var n={};function o(e){var t;return(n[e]||(t=n[e]={i:e,l:!1,exports:{}},i[e].call(t.exports,t,t.exports,o),t.l=!0,t)).exports}o.m=i,o.c=n,o.d=function(e,t,i){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(o.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)o.d(i,n,function(e){return t[e]}.bind(null,n));return i},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=1)})([function(e,t,i){window,e.exports=function(){return i={282:function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.clearChoices=t.activateChoices=t.filterChoices=t.addChoice=void 0;var n=i(883);t.addChoice=function(e){var t=e.value;return{type:n.ACTION_TYPES.ADD_CHOICE,value:t,label:e.label,id:e.id,groupId:e.groupId,disabled:e.disabled,elementId:e.elementId,customProperties:e.customProperties,placeholder:e.placeholder,keyCode:e.keyCode}},t.filterChoices=function(e){return{type:n.ACTION_TYPES.FILTER_CHOICES,results:e}},t.activateChoices=function(e){return{type:n.ACTION_TYPES.ACTIVATE_CHOICES,active:e=void 0===e?!0:e}},t.clearChoices=function(){return{type:n.ACTION_TYPES.CLEAR_CHOICES}}},783:function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.addGroup=void 0;var n=i(883);t.addGroup=function(e){var t=e.value;return{type:n.ACTION_TYPES.ADD_GROUP,value:t,id:e.id,active:e.active,disabled:e.disabled}}},464:function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.highlightItem=t.removeItem=t.addItem=void 0;var n=i(883);t.addItem=function(e){var t=e.value;return{type:n.ACTION_TYPES.ADD_ITEM,value:t,label:e.label,id:e.id,choiceId:e.choiceId,groupId:e.groupId,customProperties:e.customProperties,placeholder:e.placeholder,keyCode:e.keyCode}},t.removeItem=function(e,t){return{type:n.ACTION_TYPES.REMOVE_ITEM,id:e,choiceId:t}},t.highlightItem=function(e,t){return{type:n.ACTION_TYPES.HIGHLIGHT_ITEM,id:e,highlighted:t}}},137:function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.setIsLoading=t.resetTo=t.clearAll=void 0;var n=i(883);t.clearAll=function(){return{type:n.ACTION_TYPES.CLEAR_ALL}},t.resetTo=function(e){return{type:n.ACTION_TYPES.RESET_TO,state:e}},t.setIsLoading=function(e){return{type:n.ACTION_TYPES.SET_IS_LOADING,isLoading:e}}},373:function(e,t,i){var f=this&&this.__spreadArray||function(e,t,i){if(i||2===arguments.length)for(var n,o=0,r=t.length;o<r;o++)!n&&o in t||((n=n||Array.prototype.slice.call(t,0,o))[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))},n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},o=(Object.defineProperty(t,"__esModule",{value:!0}),n(i(996))),r=n(i(70)),h=i(282),c=i(783),l=i(464),s=i(137),a=i(520),_=i(883),u=i(789),m=i(799),d=i(655),p=n(i(744)),v=n(i(686)),g="-ms-scroll-limit"in document.documentElement.style&&"-ms-ime-align"in document.documentElement.style,y={};function E(e,t){var i=this,n=(void 0===e&&(e="[data-choice]"),this.config=o.default.all([u.DEFAULT_CONFIG,E.defaults.options,t=void 0===t?{}:t],{arrayMerge:function(e,t){return f([],t,!0)}}),(0,m.diff)(this.config,u.DEFAULT_CONFIG)),n=(n.length&&console.warn("Unknown config option(s) passed",n.join(", ")),"string"==typeof e?document.querySelector(e):e);if(!(n instanceof HTMLInputElement||n instanceof HTMLSelectElement))throw TypeError("Expected one of the following types text|select-one|select-multiple");this._isTextElement=n.type===_.TEXT_TYPE,this._isSelectOneElement=n.type===_.SELECT_ONE_TYPE,this._isSelectMultipleElement=n.type===_.SELECT_MULTIPLE_TYPE,this._isSelectElement=this._isSelectOneElement||this._isSelectMultipleElement,this.config.searchEnabled=this._isSelectMultipleElement||this.config.searchEnabled,["auto","always"].includes("".concat(this.config.render
5SelectedChoices))||(this.config.renderSelectedChoices="auto"),t.addItemFilter&&"function"!=typeof t.addItemFilter&&(t=t.addItemFilter instanceof RegExp?t.addItemFilter:new RegExp(t.addItemFilter),this.config.addItemFilter=t.test.bind(t)),this._isTextElement?this.passedElement=new a.WrappedInput({element:n,classNames:this.config.classNames,delimiter:this.config.delimiter}):this.passedElement=new a.WrappedSelect({element:n,classNames:this.config.classNames,template:function(e){return i._templates.option(e)}}),this.initialised=!1,this._store=new p.default,this._initialState=d.defaultState,this._currentState=d.defaultState,this._prevState=d.defaultState,this._currentValue="",this._canSearch=!!this.config.searchEnabled,this._isScrollingOnIe=!1,this._highlightPosition=0,this._wasTap=!0,this._placeholderValue=this._generatePlaceholderValue(),this._baseId=(0,m.generateId)(this.passedElement.element,"choices-"),this._direction=this.passedElement.dir,this._direction||(t=window.getComputedStyle(this.passedElement.element).direction)!==window.getComputedStyle(document.documentElement).direction&&(this._direction=t),this._idNames={itemChoice:"item-choice"},this._isSelectElement&&(this._presetGroups=this.passedElement.optionGroups,this._presetOptions=this.passedElement.options),this._presetChoices=this.config.choices,this._presetItems=this.config.items,this.passedElement.value&&this._isTextElement&&(n=this.passedElement.value.split(this.config.delimiter),this._presetItems=this._presetItems.concat(n)),this.passedElement.options&&this.passedElement.options.forEach(function(e){i._presetChoices.push({value:e.value,label:e.innerHTML,selected:!!e.selected,disabled:e.disabled||e.parentNode.disabled,placeholder:""===e.value||e.hasAttribute("placeholder"),customProperties:e.dataset["custom-properties"]})}),this._render=this._render.bind(this),this._onFocus=this._onFocus.bind(this),this._onBlur=this._onBlur.bind(this),this._onKeyUp=this._onKeyUp.bind(this),this._onKeyDown=this._onKeyDown.bind(this),this._onClick=this._onClick.bind(this),this._onTouchMove=this._onTouchMove.bind(this),this._onTouchEnd=this._onTouchEnd.bind(this),this._onMouseDown=this._onMouseDown.bind(this),this._onMouseOver=this._onMouseOver.bind(this),this._onFormReset=this._onFormReset.bind(this),this._onSelectKey=this._onSelectKey.bind(this),this._onEnterKey=this._onEnterKey.bind(this),this._onEscapeKey=this._onEscapeKey.bind(this),this._onDirectionKey=this._onDirectionKey.bind(this),this._onDeleteKey=this._onDeleteKey.bind(this),this.passedElement.isActive?(this.config.silent||console.warn("Trying to initialise Choices on element already initialised",{element:e}),this.initialised=!0):this.init()}Object.defineProperty(E,"defaults",{get:function(){return Object.preventExtensions({get options(){return y},get templates(){return v.default}})},enumerable:!1,configurable:!0}),E.prototype.init=function(){var e;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,(e=this.config.callbackOnInit)&&"function"==typeof e&&e.call(this))},E.prototype.destroy=function(){this.initialised&&(this._removeEventListeners(),this.passedElement.reveal(),this.containerOuter.unwrap(this.passedElement.element),this.clearStore(),this._isSelectElement&&(this.passedElement.options=this._presetOptions),this._templates=v.default,this.initialised=!1)},E.prototype.enable=function(){return this.passedElement.isDisabled&&this.passedElement.enable(),this.containerOuter.isDisabled&&(this._addEventListeners(),this.input.enable(),this.containerOuter.enable()),this},E.prototype.disable=function(){return this.passedElement.isDisabled||this.passedElement.disable(),this.containerOuter.isDisabled||(this._removeEventListeners(),this.input.disable(),this.containerOuter.disable()),this},E.prototype.highlightItem=function(e,t){var i,n,o;return void 0===t&&(t=!0),e&&e.id&&(i=e.id,n=void 0===(n=e.value)?"":n,o=void 0===(o=e.label)?"":o,e=0<=(e=void 0===(e=e.groupId)?-1:e)?this._store.getGroupById(e):null,this._store.dispatch((0,l.highlightItem)(i,!0)),t&&this.passedElement.triggerEvent(_.EVENTS.highlightItem,{id:i,value:n,label:o,groupValue:e&&e.value?e.value:null})),this},E.prototype.unhighlightItem=function(e){var t,i,n;return e&&e.id&&(t=e.id,i=void 0===(i=e.value)?"":i,n=void 0===(n=e.label)?"":n,e=0<=(e=void 0===(e=e.groupId)?-1:e)?this._store.getGroupById(e):null,this._store.dispatch((0,l.highlightItem)(t,!1)),this.passedElement.triggerEvent(_.EVENTS.highlightItem,{id:t,value:i,label:n,groupValue:e&&e.value?e.value:null})),this},E.prototype.highlightAll=function(){var t=this;
5return this._store.items.forEach(function(e){return t.highlightItem(e)}),this},E.prototype.unhighlightAll=function(){var t=this;return this._store.items.forEach(function(e){return t.unhighlightItem(e)}),this},E.prototype.removeActiveItemsByValue=function(t){var i=this;return this._store.activeItems.filter(function(e){return e.value===t}).forEach(function(e){return i._removeItem(e)}),this},E.prototype.removeActiveItems=function(t){var i=this;return this._store.activeItems.filter(function(e){return e.id!==t}).forEach(function(e){return i._removeItem(e)}),this},E.prototype.removeHighlightedItems=function(t){var i=this;return void 0===t&&(t=!1),this._store.highlightedActiveItems.forEach(function(e){i._removeItem(e),t&&i._triggerChange(e.value)}),this},E.prototype.showDropdown=function(e){var t=this;return this.dropdown.isActive||requestAnimationFrame(function(){t.dropdown.show(),t.containerOuter.open(t.dropdown.distanceFromTopWindow),!e&&t._canSearch&&t.input.focus(),t.passedElement.triggerEvent(_.EVENTS.showDropdown,{})}),this},E.prototype.hideDropdown=function(e){var t=this;return this.dropdown.isActive&&requestAnimationFrame(function(){t.dropdown.hide(),t.containerOuter.close(),!e&&t._canSearch&&(t.input.removeActiveDescendant(),t.input.blur()),t.passedElement.triggerEvent(_.EVENTS.hideDropdown,{})}),this},E.prototype.getValue=function(i){void 0===i&&(i=!1);var e=this._store.activeItems.reduce(function(e,t){t=i?t.value:t;return e.push(t),e},[]);return this._isSelectOneElement?e[0]:e},E.prototype.setValue=function(e){var t=this;return this.initialised&&e.forEach(function(e){return t._setChoiceOrItem(e)}),this},E.prototype.setChoiceByValue=function(e){var t=this;return this.initialised&&!this._isTextElement&&(Array.isArray(e)?e:[e]).forEach(function(e){return t._findAndSelectChoiceByValue(e)}),this},E.prototype.setChoices=function(e,t,i,n){var o=this;if(void 0===e&&(e=[]),void 0===t&&(t="value"),void 0===i&&(i="label"),void 0===n&&(n=!1),!this.initialised)throw new ReferenceError("setChoices was called on a non-initialized instance of Choices");if(!this._isSelectElement)throw new TypeError("setChoices can't be used with INPUT based Choices");if("string"!=typeof t||!t)throw new TypeError("value parameter must be a name of 'value' field in passed objects");if(n&&this.clearChoices(),"function"==typeof e){var r=e(this);if("function"==typeof Promise&&r instanceof Promise)return new Promise(function(e){return requestAnimationFrame(e)}).then(function(){return o._handleLoadingState(!0)}).then(function(){return r}).then(function(e){return o.setChoices(e,t,i,n)}).catch(function(e){o.config.silent||console.error(e)}).then(function(){return o._handleLoadingState(!1)}).then(function(){return o});if(Array.isArray(r))return this.setChoices(r,t,i,!1);throw new TypeError(".setChoices first argument function must return either array of choices or Promise, got: ".concat(typeof r))}if(Array.isArray(e))return this.containerOuter.removeLoadingState(),this._startLoading(),e.forEach(function(e){e.choices?o._addGroup({id:e.id?parseInt("".concat(e.id),10):null,group:e,valueKey:t,labelKey:i}):o._addChoice({value:e[t],label:e[i],isSelected:!!e.selected,isDisabled:!!e.disabled,placeholder:!!e.placeholder,customProperties:e.customProperties})}),this._stopLoading(),this;throw new TypeError(".setChoices must be called either with array of choices with a function resulting into Promise of array of choices")},E.prototype.clearChoices=function(){return this._store.dispatch((0,h.clearChoices)()),this},E.prototype.clearStore=function(){return this._store.dispatch((0,s.clearAll)()),this},E.prototype.clearInput=function(){var e=!this._isSelectOneElement;return this.input.clear(e),!this._isTextElement&&this._canSearch&&(this._isSearching=!1,this._store.dispatch((0,h.activateChoices)(!0))),this},E.prototype._render=function(){var e,t,i;this._store.isLoading()||(this._currentState=this._store.state,e=this._currentState.choices!==this._prevState.choices||this._currentState.groups!==this._prevState.groups||this._currentState.items!==this._prevState.items,t=this._isSelectElement,i=this._currentState.items!==this._prevState.items,e&&(t&&this._renderChoices(),i&&this._renderItems(),this._prevState=this._currentState))},E.prototype._renderChoices=function(){var e,t,i=this,n=this._store,o=n.activeGroups,n=n.activeChoices,r=document.createDocumentFragment();this.choiceList.clear(),this.config.resetScrollPosition&&requestAnimationFrame(function(){return i.choiceList.scrollToTop()}),1<=o.length&&!this._isSearching?(1<=(e=n.filter(function(e){return!0===e.placeholder&&-1===e.groupId})).length&&(r=this._createChoicesFragment(e,r)),r=this._createGroupsFragment(o,n,r)):1<=n.length&&(r=this._createChoicesFragment(n,r)),r.childNodes&&0<r.childNodes.length?(e=this._store.activeItems,(o=this._canAddItem(e,this.input.value)).response?(this.choiceList.append(r),this._highlightChoice()):(t=this._getTemplate("notice",o.notice),this.choiceList.append(t))):(t=n=void 0,n=this._isSearching?(t="function"==typeof this.config.noResultsText?this.config.noResultsText():this.config.noResultsText,this._getTemplate("notice",t,"no-results")):(t="function"==typeof this.config.noChoicesText?this.config.noChoicesText():this.config.noChoicesText,this._getTemplate("notice",t,"no-choices")),this.choiceList.append(n))},E.prototype._renderItems=function(){var e=this._store.activeItems||[],e=(this.itemList.clear(),this._createItemsFragment(e));e.childNodes&&this.itemList.append(e)},E.prototype._createGroupsFragment=function(e,n,o){var r=this;return void 0===o&&(o=document.createDocumentFragment()),this.config.shouldSort&&e.sort(this.config.sorter),e.forEach(function(e){t=e;var t,i=n.filter(function(e){return r._isSelectOneElement?e.groupId===t.id:e.groupId===t.id&&("always"===r.config.render
5SelectedChoices||!e.selected)});1<=i.length&&(e=r._getTemplate("choiceGroup",e),o.appendChild(e),r._createChoicesFragment(i,o,!0))}),o},E.prototype._createChoicesFragment=function(e,t,i){var n=this,o=(void 0===t&&(t=document.createDocumentFragment()),void 0===i&&(i=!1),this.config),r=o.renderSelectedChoices,s=o.searchResultLimit,o=o.renderChoiceLimit,a=this._isSearching?m.sortByScore:this.config.sorter,c=e,e=(c="auto"!==r||this._isSelectOneElement?c:e.filter(function(e){return!e.selected})).reduce(function(e,t){return(t.placeholder?e.placeholderChoices:e.normalChoices).push(t),e},{placeholderChoices:[],normalChoices:[]}),l=e.placeholderChoices,e=e.normalChoices,h=((this.config.shouldSort||this._isSearching)&&e.sort(a),c.length),u=this._isSelectOneElement?f(f([],l,!0),e,!0):e;this._isSearching?h=s:o&&0<o&&!i&&(h=o);for(var d,p=0;p<h;p+=1)u[p]&&(d=u[p],"auto"===r&&!n._isSelectOneElement&&d.selected||(d=n._getTemplate("choice",d,n.config.itemSelectText),t.appendChild(d)));return t},E.prototype._createItemsFragment=function(e,t){var i=this,n=(void 0===t&&(t=document.createDocumentFragment()),this.config),o=n.shouldSortItems,r=n.removeItemButton;return o&&!this._isSelectOneElement&&e.sort(n.sorter),this._isTextElement?this.passedElement.value=e.map(function(e){return e.value}).join(this.config.delimiter):this.passedElement.options=e,e.forEach(function(e){e=i._getTemplate("item",e,r);t.appendChild(e)}),t},E.prototype._triggerChange=function(e){null!=e&&this.passedElement.triggerEvent(_.EVENTS.change,{value:e})},E.prototype._selectPlaceholderChoice=function(e){this._addItem({value:e.value,label:e.label,choiceId:e.id,groupId:e.groupId,placeholder:e.placeholder}),this._triggerChange(e.value)},E.prototype._handleButtonAction=function(e,t){var i;e&&t&&this.config.removeItems&&this.config.removeItemButton&&(t=(i=t.parentNode&&t.parentNode.dataset.id)&&e.find(function(e){return e.id===parseInt(i,10)}))&&(this._removeItem(t),this._triggerChange(t.value),this._isSelectOneElement)&&this._store.placeholderChoice&&this._selectPlaceholderChoice(this._store.placeholderChoice)},E.prototype._handleItemAction=function(e,t,i){var n,o=this;void 0===i&&(i=!1),e&&t&&this.config.removeItems&&!this._isSelectOneElement&&(n=t.dataset.id,e.forEach(function(e){e.id!==parseInt("".concat(n),10)||e.highlighted?!i&&e.highlighted&&o.unhighlightItem(e):o.highlightItem(e)}),this.input.focus())},E.prototype._handleChoiceAction=function(e,t){var i,n;e&&t&&(t=(t=t.dataset.id)&&this._store.getChoiceById(t))&&(i=e[0]&&e[0].keyCode?e[0].keyCode:void 0,n=this.dropdown.isActive,t.keyCode=i,this.passedElement.triggerEvent(_.EVENTS.choice,{choice:t}),t.selected||t.disabled||this._canAddItem(e,t.value).response&&(this._addItem({value:t.value,label:t.label,choiceId:t.id,groupId:t.groupId,customProperties:t.customProperties,placeholder:t.placeholder,keyCode:t.keyCode}),this._triggerChange(t.value)),this.clearInput(),n)&&this._isSelectOneElement&&(this.hideDropdown(!0),this.containerOuter.focus())},E.prototype._handleBackspace=function(e){var t;this.config.removeItems&&e&&(t=e[e.length-1],e=e.some(function(e){return e.highlighted}),this.config.editItems&&!e&&t?(this.input.value=t.value,this.input.setWidth(),this._removeItem(t),this._triggerChange(t.value)):(e||this.highlightItem(t,!1),this.removeHighlightedItems(!0)))},E.prototype._startLoading=function(){this._store.dispatch((0,s.setIsLoading)(!0))},E.prototype._stopLoading=function(){this._store.dispatch((0,s.setIsLoading)(!1))},E.prototype._handleLoadingState=function(e){void 0===e&&(e=!0);var t=this.itemList.getChild(".".concat(this.config.classNames.placeholder));e?(this.disable(),this.containerOuter.addLoadingState(),this._isSelectOneElement?t?t.innerHTML=this.config.loadingText:(t=this._getTemplate("placeholder",this.config.loadingText))&&this.itemList.append(t):this.input.placeholder=this.config.loadingText):(this.enable(),this.containerOuter.removeLoadingState(),this._isSelectOneElement?t&&(t.innerHTML=this._placeholderValue||""):this.input.placeholder=this._placeholderValue||"")},E.prototype._handleSearch=function(e){var t,i,n;e&&this.input.isFocussed&&(i=this._store.choices,n=(t=this.config).searchFloor,t=t.searchChoices,i=i.some(function(e){return!e.active}),e&&e.length>=n?(n=t?this._searchChoices(e):0,this.passedElement.triggerEvent(_.EVENTS.search,{value:e,resultCount:n})):i&&(this._isSearching=!1,this._store.dispatch((0,h.activateChoices)(!0))))},E.prototype._canAddItem=function(e,t){var i,n=!0,o="function"==typeof this.config.addItemText?this.config.addItemText(t):this.config.addItemText;return this._isSelectOneElement||(i=(0,m.existsInArray)(e,t),0<this.config.maxItemCount&&this.config.maxItemCount<=e.length&&(n=!1,o="function"==typeof this.config.maxItemText?this.config.maxItemText(this.config.maxItemCount):this.config.maxItemText),!this.config.duplicateItemsAllowed&&i&&n&&(n=!1,o="function"==typeof this.config.uniqueItemText?this.config.uniqueItemText(t):this.config.uniqueItemText),this._isTextElement&&this.config.addItems&&n&&"function"==typeof this.config.addItemFilter&&!this.config.addItemFilter(t)&&(n=!1,o="function"==typeof this.config.customAddItemText?this.config.customAddItemText(t):this.config.customAddItemText)),{response:n,notice:o}},E.prototype._searchChoices=function(e){var t,i,e="string"==typeof e?e.trim():e,n="string"==typeof this._currentValue?this._currentValue.trim():this._currentValue;return e.length<1&&e==="".concat(n," ")?0:(n=this._store.searchableChoices,t=e,i=f([],this.config.searchFields,!0),i=Object.assign(this.config.fuseOptions,{keys:i,includeMatches:!0}),n=new r.default(n,i).search(t),this._currentValue=e,this._highlightPosition=0,this._isSearching=!0,this._store.dispatch((0,h.filterChoices)(n)),n.length)},E.prototype._addEventListeners=function(){var e=document.documentElement;e.addEventListener("touchend",this._onTouchEnd,!0),this.containerOuter.element.addEventListener("keydown",this._onKeyDown,!0),this.containerOuter.element.addEventListener("mousedown",this._onMouseDown,!0),e.addEventListener("click",this._onClick,{passive:!0}),e.addEventListener("touchmove",this._onTouchMove,{passive:!0}),this.dropdown.element.addEventListener("mouseover",this._onMouseOver,{passive:!0}),this._isSelectOneElement&&(this.containerOuter.element.addEventListener("focus",this._onFocus,{passive:!0}),this.containerOuter.element.addEventListener("blur",this._onBlur,{passive:!0})),this.input.element.addEventListener("keyup",this._onKeyUp,{passive:!0}),this.input.element.addEventListener("focus",this._onFocus,{passive:!0}),this.input.element.addEventListener("blur",this._onBlur,{passive:!0}),this.input.element.form&&this.input.element.form.addEventListener("reset",this._onFormReset,{passive:!0}),this.input.addEventListeners()},E.prototype._removeEventListeners=function(){var e=document.documentElement;e.removeEventListener("touchend",this._onTouchEnd,!0),this.containerOuter.element.removeEventListener("keydown",this._onKeyDown,!0),this.containerOuter.element.removeEventListener("mousedown",this._onMouseDown,!0),e.removeEventListener("click",this._onClick),e.removeEventListener("touchmove",this._onTouchMove),this.dropdown.element.removeEventListener("mouseover",this._onMouseOver),this._isSelectOneElement&&(this.containerOuter.element.removeEventListener("focus",this._onFocus),this.containerOuter.element.removeEventListener("blur",this._onBlur)),this.input.element.removeEventListener("keyup",this._onKeyUp),this.input.element.removeEventListener("focus",this._onFocus),this.input.element.removeEventListener("blur",this._onBlur),this.input.element.form&&this.input.element.form.removeEventListener("reset",this._onFormReset),this.input.removeEventListeners()},E.prototype._onKeyDown=function(e){var t=e.keyCode,i=this._store.activeItems,n=this.input.isFocussed,o=this.dropdown.isActive,r=this.itemList.hasChildren(),s=String.fromCharCode(t),a=/[a-zA-Z0-9-_ ]/.test(s),c=_.KEY_CODES.BACK_KEY,l=_.
5KEY_CODES.DELETE_KEY,h=_.KEY_CODES.ENTER_KEY,u=_.KEY_CODES.A_KEY,d=_.KEY_CODES.ESC_KEY,p=_.KEY_CODES.UP_KEY,f=_.KEY_CODES.DOWN_KEY,m=_.KEY_CODES.PAGE_UP_KEY,v=_.KEY_CODES.PAGE_DOWN_KEY;switch(this._isTextElement||o||!a||(this.showDropdown(),this.input.isFocussed)||(this.input.value+=s.toLowerCase()),t){case u:return this._onSelectKey(e,r);case h:return this._onEnterKey(e,i,o);case d:return this._onEscapeKey(o);case p:case m:case f:case v:return this._onDirectionKey(e,o);case l:case c:return this._onDeleteKey(e,i,n)}},E.prototype._onKeyUp=function(e){var t=e.target,e=e.keyCode,i=this.input.value,n=this._store.activeItems,n=this._canAddItem(n,i),o=_.KEY_CODES.BACK_KEY,r=_.KEY_CODES.DELETE_KEY;this._isTextElement?n.notice&&i?(i=this._getTemplate("notice",n.notice),this.dropdown.element.innerHTML=i.outerHTML,this.showDropdown(!0)):this.hideDropdown(!0):(i=(e===o||e===r)&&t&&!t.value,o=!this._isTextElement&&this._isSearching,e=this._canSearch&&n.response,i&&o?(this._isSearching=!1,this._store.dispatch((0,h.activateChoices)(!0))):e&&this._handleSearch(this.input.value)),this._canSearch=this.config.searchEnabled},E.prototype._onSelectKey=function(e,t){(e.ctrlKey||e.metaKey)&&t&&(this._canSearch=!1,this.config.removeItems)&&!this.input.value&&this.input.element===document.activeElement&&this.highlightAll()},E.prototype._onEnterKey=function(e,t,i){var n,o=e.target,r=_.KEY_CODES.ENTER_KEY,s=o&&o.hasAttribute("data-button");this._isTextElement&&o&&o.value&&(n=this.input.value,this._canAddItem(t,n).response)&&(this.hideDropdown(!0),this._addItem({value:n}),this._triggerChange(n),this.clearInput()),s&&(this._handleButtonAction(t,o),e.preventDefault()),i?((n=this.dropdown.getChild(".".concat(this.config.classNames.highlightedState)))&&(t[0]&&(t[0].keyCode=r),this._handleChoiceAction(t,n)),e.preventDefault()):this._isSelectOneElement&&(this.showDropdown(),e.preventDefault())},E.prototype._onEscapeKey=function(e){e&&(this.hideDropdown(!0),this.containerOuter.focus())},E.prototype._onDirectionKey=function(e,t){var i=e.keyCode,n=e.metaKey,o=_.KEY_CODES.DOWN_KEY,r=_.KEY_CODES.PAGE_UP_KEY,s=_.KEY_CODES.PAGE_DOWN_KEY;(t||this._isSelectOneElement)&&(this.showDropdown(),this._canSearch=!1,t=i===o||i===s?1:-1,o=void 0,(o=n||i===s||i===r?0<t?this.dropdown.element.querySelector("".concat("[data-choice-selectable]",":last-of-type")):this.dropdown.element.querySelector("[data-choice-selectable]"):(n=this.dropdown.element.querySelector(".".concat(this.config.classNames.highlightedState)))?(0,m.getAdjacentEl)(n,"[data-choice-selectable]",t):this.dropdown.element.querySelector("[data-choice-selectable]"))&&((0,m.isScrolledIntoView)(o,this.choiceList.element,t)||this.choiceList.scrollToChildElement(o,t),this._highlightChoice(o)),e.preventDefault())},E.prototype._onDeleteKey=function(e,t,i){var n=e.target;this._isSelectOneElement||n.value||!i||(this._handleBackspace(t),e.preventDefault())},E.prototype._onTouchMove=function(){this._wasTap&&(this._wasTap=!1)},E.prototype._onTouchEnd=function(e){var t=(e||e.touches[0]).target;this._wasTap&&this.containerOuter.element.contains(t)&&(t!==this.containerOuter.element&&t!==this.containerInner.element||(this._isTextElement?this.input.focus():this._isSelectMultipleElement&&this.showDropdown()),e.stopPropagation()),this._wasTap=!0},E.prototype._onMouseDown=function(e){var t,i,n,o=e.target;o instanceof HTMLElement&&(g&&this.choiceList.element.contains(o)&&(t=this.choiceList.element.firstElementChild,t="ltr"===this._direction?e.offsetX>=t.offsetWidth:e.offsetX<t.offsetLeft,this._isScrollingOnIe=t),o!==this.input.element)&&((t=o.closest("[data-button],[data-item],[data-choice]"))instanceof HTMLElement&&(o=e.shiftKey,i=this._store.activeItems,"button"in(n=t.dataset)?this._handleButtonAction(i,t):"item"in n?this._handleItemAction(i,t,o):"choice"in n&&this._handleChoiceAction(i,t)),e.preventDefault())},E.prototype._onMouseOver=function(e){e=e.target;e instanceof HTMLElement&&"choice"in e.dataset&&this._highlightChoice(e)},E.prototype._onClick=function(e){e=e.target;this.containerOuter.element.contains(e)?this.dropdown.isActive||this.containerOuter.isDisabled?this._isSelectOneElement&&e!==this.input.element&&!this.dropdown.element.contains(e)&&this.hideDropdown():this._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))},E.prototype._onFocus=function(e){var t=this,i=e.target;i&&this.containerOuter.element.contains(i)&&((e={})[_.TEXT_TYPE]=function(){i===t.input.element&&t.containerOuter.addFocusState()},e[_.SELECT_ONE_TYPE]=function(){t.containerOuter.addFocusState(),i===t.input.element&&t.showDropdown(!0)},e[_.SELECT_MULTIPLE_TYPE]=function(){i===t.input.element&&(t.showDropdown(!0),t.containerOuter.addFocusState())},e[this.passedElement.element.type]())},E.prototype._onBlur=function(e){var t,i=this,n=e.target;n&&this.containerOuter.element.contains(n)&&!this._isScrollingOnIe?(t=this._store.activeItems.some(function(e){return e.highlighted}),(e={})[_.TEXT_TYPE]=function(){n===i.input.element&&(i.containerOuter.removeFocusState(),t&&i.unhighlightAll(),i.hideDropdown(!0))},e[_.SELECT_ONE_TYPE]=function(){i.containerOuter.removeFocusState(),n!==i.input.element&&(n!==i.containerOuter.element||i._canSearch)||i.hideDropdown(!0)},e[_.SELECT_MULTIPLE_TYPE]=function(){n===i.input.element&&(i.containerOuter.removeFocusState(),i.hideDropdown(!0),t)&&i.unhighlightAll()},e[this.passedElement.element.type]()):(this._isScrollingOnIe=!1,this.input.element.focus())},E.prototype._onFormReset=function(){this._store.dispatch((0,s.resetTo)(this._initialState))},E.prototype._highlightChoice=function(e){var t=this,i=(void 0===e&&(e=null),Array.from(this.dropdown.element.querySelectorAll("[data-choice-selectable]")));i.length&&(e=e,Array.from(this.dropdown.element.querySelectorAll(".".concat(this.config.classNames.highlightedState))).forEac
5h(function(e){e.classList.remove(t.config.classNames.highlightedState),e.setAttribute("aria-selected","false")}),e?this._highlightPosition=i.indexOf(e):e=(e=i.length>this._highlightPosition?i[this._highlightPosition]:i[i.length-1])||i[0],e.classList.add(this.config.classNames.highlightedState),e.setAttribute("aria-selected","true"),this.passedElement.triggerEvent(_.EVENTS.highlightChoice,{el:e}),this.dropdown.isActive)&&(this.input.setActiveDescendant(e.id),this.containerOuter.setActiveDescendant(e.id))},E.prototype._addItem=function(e){var t=e.value,i=e.label,i=void 0===i?null:i,n=e.choiceId,n=void 0===n?-1:n,o=e.groupId,o=void 0===o?-1:o,r=e.customProperties,r=void 0===r?{}:r,s=e.placeholder,s=void 0!==s&&s,e=e.keyCode,e=void 0===e?-1:e,t="string"==typeof t?t.trim():t,a=this._store.items,i=i||t,n=n||-1,c=0<=o?this._store.getGroupById(o):null,a=a?a.length+1:1;this.config.prependValue&&(t=this.config.prependValue+t.toString()),this.config.appendValue&&(t+=this.config.appendValue.toString()),this._store.dispatch((0,l.addItem)({value:t,label:i,id:a,choiceId:n,groupId:o,customProperties:r,placeholder:s,keyCode:e})),this._isSelectOneElement&&this.removeActiveItems(a),this.passedElement.triggerEvent(_.EVENTS.addItem,{id:a,value:t,label:i,customProperties:r,groupValue:c&&c.value?c.value:null,keyCode:e})},E.prototype._removeItem=function(e){var t=e.id,i=e.value,n=e.label,o=e.customProperties,r=e.choiceId,e=e.groupId,e=e&&0<=e?this._store.getGroupById(e):null;t&&r&&(this._store.dispatch((0,l.removeItem)(t,r)),this.passedElement.triggerEvent(_.EVENTS.removeItem,{id:t,value:i,label:n,customProperties:o,groupValue:e&&e.value?e.value:null}))},E.prototype._addChoice=function(e){var t,i,n=e.value,o=e.label,r=e.isSelected,r=void 0!==r&&r,s=e.isDisabled,s=void 0!==s&&s,a=e.groupId,a=void 0===a?-1:a,c=e.customProperties,c=void 0===c?{}:c,l=e.placeholder,l=void 0!==l&&l,e=e.keyCode,e=void 0===e?-1:e;null!=n&&(o=(void 0===o?null:o)||n,t=(t=this._store.choices)?t.length+1:1,i="".concat(this._baseId,"-").concat(this._idNames.itemChoice,"-").concat(t),this._store.dispatch((0,h.addChoice)({id:t,groupId:a,elementId:i,value:n,label:o,disabled:s,customProperties:c,placeholder:l,keyCode:e})),r)&&this._addItem({value:n,label:o,choiceId:t,customProperties:c,placeholder:l,keyCode:e})},E.prototype._addGroup=function(e){var i=this,t=e.group,n=e.id,o=e.valueKey,r=void 0===o?"value":o,o=e.labelKey,s=void 0===o?"label":o,e=(0,m.isType)("Object",t)?t.choices:Array.from(t.getElementsByTagName("OPTION")),a=n||Math.floor((new Date).valueOf()*Math.random()),o=!!t.disabled&&t.disabled;e?(this._store.dispatch((0,c.addGroup)({value:t.label,id:a,active:!0,disabled:o})),e.forEach(function(e){var t=e.disabled||e.parentNode&&e.parentNode.disabled;i._addChoice({value:e[r],label:(0,m.isType)("Object",e)?e[s]:e.innerHTML,isSelected:e.selected,isDisabled:t,groupId:a,customProperties:e.customProperties,placeholder:e.placeholder})})):this._store.dispatch((0,c.addGroup)({value:t.label,id:t.id,active:!1,disabled:t.disabled}))},E.prototype._getTemplate=function(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];var n=this.config.classNames;return(e=this._templates[e]).call.apply(e,f([this,n],t,!1))},E.prototype._createTemplates=function(){var e=this.config.callbackOnCreateTemplates,t={};e&&"function"==typeof e&&(t=e.call(this,m.strToEl)),this._templates=(0,o.default)(v.default,t)},E.prototype._createElements=function(){this.containerOuter=new a.Container({element:this._getTemplate("containerOuter",this._direction,this._isSelectElement,this._isSelectOneElement,this.config.searchEnabled,this.passedElement.element.type),classNames:this.config.classNames,type:this.passedElement.element.type,position:this.config.position}),this.containerInner=new a.Container({element:this._getTemplate("containerInner"),classNames:this.config.classNames,type:this.passedElement.element.type,position:this.config.position}),this.input=new a.Input({element:this._getTemplate("input",this._placeholderValue),classNames:this.config.classNames,type:this.passedElement.element.type,preventPaste:!this.config.paste}),this.choiceList=new a.List({element:this._getTemplate("choiceList",this._isSelectOneElement)}),this.itemList=new a.List({element:this._getTemplate("itemList",this._isSelectOneElement)}),this.dropdown=new a.Dropdown({element:this._getTemplate("dropdown"),classNames:this.config.classNames,type:this.passedElement.element.type})},E.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,this.input.setWidth()),this.containerOuter.element.appendChild(this.containerInner.element),this.containerOuter.element.appendChild(this.dropdown.element),this.containerInner.element.appendChild(this.itemList.element),this._isTextElement||this.dropdown.element.appendChild(this.choiceList.element),this._isSelectOneElement?this.config.searchEnabled&&this.dropdown.element.insertBefore(this.input.element,this.dropdown.element.firstChild):this.containerInner.element.appendChild(this.input.element),this._isSelectElement&&(this._highlightPosition=0,this._isSearching=!1,this._startLoading(),this._presetGroups.length?this._addPredefinedGroups(this._presetGroups):this._addPredefinedChoices(this._presetChoices),this._stopLoading()),this._isTextElement&&this._addPredefinedItems(this._presetItems)},E.prototype._addPredefinedGroups=function(e){var t=this,i=this.passedElement.placeholderOption;i&&i.parentNode&&"SELECT"===i.parentNode.tagName&&this._addChoice({value:i.value,label:i.innerHTML,isSelected:i.selected,isDisabled:i.disabled,placeholder:!0}),e.forEach(function(e){return t._addGroup({group:e,id:e.id||null})})},E.prototype._addPredefinedChoices=function(e){var a=this,c=(this.config.shouldSort&&e.sort(this.config.sorter),e.some(function(e){return e.selected})),l=e.findIndex(function(e){return void 0===e.disabled||!e.disabled});e.forEach(function(e,t){var i,n=e.value,n=void 0===n?"":n,o=e.label,r=e.customProperties,s=e.placeholder;a._isSelectElement?e.choices?a._addGroup({group:e,id:e.id||null}):(t=!(!a._isSelectOneElement||c||t!==l)||e.selected,i=e.disabled,a._addChoice({value:n,label:o,isSelected:!!t,isDisabled:!!i,placeholder:!!s,customProperties:r})):a._addChoice({value:n,label:o,isSelected:!!e.selected,isDisabled:!!e.disabled,placeholder:!!e.placeholder,customProperties:r})})},E.prototype._addPredefinedItems=function(e){var t=this;e.forEach(function(e){"object"==typeof e&&e.value&&t._addItem({value:e.value,label:e.label,choiceId:e.id,customProperties:e.customProperties,placeholder:e.placeholder}),"string"==typeof e&&t._addItem({value:e})})},E.prototype._setChoiceOrItem=function(e){var t=this;({object:function(){e.value&&(t._isTextElement?t._addItem({value:e.value,label:e.label,choiceId:e.id,customProperties:e.customProperties,placeholder:e.placeholder}):t._addChoice({value:e.value,label:e.label,isSelected:!0,isDisabled:!1,customProperties:e.customProperties,placeholder:e.placeholder}))},string:function(){t._isTextElement?t._addItem({value:e}):t._addChoice({value:e,label:e,isSelected:!0,isDisabled:!1})}})[(0,m.getType)(e).toLowerCase()]()},E.prototype._findAndSelectChoiceByValue=function(t){var i=this,e=this._store.choices.find(function(e){return i.config.valueComparer(e.value,t)});e&&!e.selected&&this._addItem({value:e.value,label:e.label,choiceId:e.id,groupId:e.groupId,customProperties:e.customProperties,placeholder:e.placeholder,ke
5yCode:e.keyCode})},E.prototype._generatePlaceholderValue=function(){if(this._isSelectElement&&this.passedElement.placeholderOption)return(e=this.passedElement.placeholderOption)?e.text:null;var e=this.config,t=e.placeholder,e=e.placeholderValue,i=this.passedElement.element.dataset;if(t){if(e)return e;if(i.placeholder)return i.placeholder}return null},t.default=E},613:function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var n=i(799),o=i(883);function r(e){var t=e.element,i=e.type,n=e.classNames,e=e.position;this.element=t,this.classNames=n,this.type=i,this.position=e,this.isOpen=!1,this.isFlipped=!1,this.isFocussed=!1,this.isDisabled=!1,this.isLoading=!1,this._onFocus=this._onFocus.bind(this),this._onBlur=this._onBlur.bind(this)}r.prototype.addEventListeners=function(){this.element.addEventListener("focus",this._onFocus),this.element.addEventListener("blur",this._onBlur)},r.prototype.removeEventListeners=function(){this.element.removeEventListener("focus",this._onFocus),this.element.removeEventListener("blur",this._onBlur)},r.prototype.shouldFlip=function(e){var t;return"number"==typeof e&&(t=!1,"auto"===this.position?t=!window.matchMedia("(min-height: ".concat(e+1,"px)")).matches:"top"===this.position&&(t=!0),t)},r.prototype.setActiveDescendant=function(e){this.element.setAttribute("aria-activedescendant",e)},r.prototype.removeActiveDescendant=function(){this.element.removeAttribute("aria-activedescendant")},r.prototype.open=function(e){this.element.classList.add(this.classNames.openState),this.element.setAttribute("aria-expanded","true"),this.isOpen=!0,this.shouldFlip(e)&&(this.element.classList.add(this.classNames.flippedState),this.isFlipped=!0)},r.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)},r.prototype.focus=function(){this.isFocussed||this.element.focus()},r.prototype.addFocusState=function(){this.element.classList.add(this.classNames.focusState)},r.prototype.removeFocusState=function(){this.element.classList.remove(this.classNames.focusState)},r.prototype.enable=function(){this.element.classList.remove(this.classNames.disabledState),this.element.removeAttribute("aria-disabled"),this.type===o.SELECT_ONE_TYPE&&this.element.setAttribute("tabindex","0"),this.isDisabled=!1},r.prototype.disable=function(){this.element.classList.add(this.classNames.disabledState),this.element.setAttribute("aria-disabled","true"),this.type===o.SELECT_ONE_TYPE&&this.element.setAttribute("tabindex","-1"),this.isDisabled=!0},r.prototype.wrap=function(e){(0,n.wrap)(e,this.element)},r.prototype.unwrap=function(e){this.element.parentNode&&(this.element.parentNode.insertBefore(e,this.element),this.element.parentNode.removeChild(this.element))},r.prototype.addLoadingState=function(){this.element.classList.add(this.classNames.loadingState),this.element.setAttribute("aria-busy","true"),this.isLoading=!0},r.prototype.removeLoadingState=function(){this.element.classList.remove(this.classNames.loadingState),this.element.removeAttribute("aria-busy"),this.isLoading=!1},r.prototype._onFocus=function(){this.isFocussed=!0},r.prototype._onBlur=function(){this.isFocussed=!1},t.default=r},217:function(e,t){function i(e){var t=e.element,i=e.type,e=e.classNames;this.element=t,this.classNames=e,this.type=i,this.isActive=!1}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(i.prototype,"distanceFromTopWindow",{get:function(){return this.element.getBoundingClientRect().bottom},enumerable:!1,configurable:!0}),i.prototype.getChild=function(e){return this.element.querySelector(e)},i.prototype.show=function(){return this.element.classList.add(this.classNames.activeState),this.element.setAttribute("aria-expanded","true"),this.isActive=!0,this},i.prototype.hide=function(){return this.element.classList.remove(this.classNames.activeState),this.element.setAttribute("aria-expanded","false"),this.isActive=!1,this},t.default=i},520:function(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esMo
5dule?e:{default:e}},o=(Object.defineProperty(t,"__esModule",{value:!0}),t.WrappedSelect=t.WrappedInput=t.List=t.Input=t.Container=t.Dropdown=void 0,n(i(217))),o=(t.Dropdown=o.default,n(i(613))),o=(t.Container=o.default,n(i(11))),o=(t.Input=o.default,n(i(624))),o=(t.List=o.default,n(i(541))),o=(t.WrappedInput=o.default,n(i(982)));t.WrappedSelect=o.default},11:function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var n=i(799),o=i(883);function r(e){var t=e.element,i=e.type,n=e.classNames,e=e.preventPaste;this.element=t,this.type=i,this.classNames=n,this.preventPaste=e,this.isFocussed=this.element.isEqualNode(document.activeElement),this.isDisabled=t.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(r.prototype,"placeholder",{set:function(e){this.element.placeholder=e},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"value",{get:function(){return(0,n.sanitise)(this.element.value)},set:function(e){this.element.value=e},enumerable:!1,configurable:!0}),r.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})},r.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)},r.prototype.enable=function(){this.element.removeAttribute("disabled"),this.isDisabled=!1},r.prototype.disable=function(){this.element.setAttribute("disabled",""),this.isDisabled=!0},r.prototype.focus=function(){this.isFocussed||this.element.focus()},r.prototype.blur=function(){this.isFocussed&&this.element.blur()},r.prototype.clear=function(e){return void 0===e&&(e=!0),this.element.value&&(this.element.value=""),e&&this.setWidth(),this},r.prototype.setWidth=function(){var e=this.element,t=e.style,i=e.value;t.minWidth="".concat(e.placeholder.length+1,"ch"),t.width="".concat(i.length+1,"ch")},r.prototype.setActiveDescendant=function(e){this.element.setAttribute("aria-activedescendant",e)},r.prototype.removeActiveDescendant=function(){this.element.removeAttribute("aria-activedescendant")},r.prototype._onInput=function(){this.type!==o.SELECT_ONE_TYPE&&this.setWidth()},r.prototype._onPaste=function(e){this.preventPaste&&e.preventDefault()},r.prototype._onFocus=function(){this.isFocussed=!0},r.prototype._onBlur=function(){this.isFocussed=!1},t.default=r},624:function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var s=i(883);function n(e){e=e.element;this.element=e,this.scrollPos=this.element.scrollTop,this.height=this.element.offsetHeight}n.prototype.clear=function(){this.element.innerHTML=""},n.prototype.append=function(e){this.element.appendChild(e)},n.prototype.getChild=function(e){return this.element.querySelector(e)},n.prototype.hasChildren=function(){return this.element.hasChildNodes()},n.prototype.scrollToTop=function(){this.element.scrollTop=0},n.prototype.scrollToChildElement=function(e,t){var i,n,o,r=this;e&&(i=this.element.offsetHeight,i=this.element.scrollTop+i,n=e.offsetHeight,o=0<t?this.element.scrollTop+(e.offsetTop+n)-i:e.offsetTop,requestAnimationFrame(function(){r._animateScroll(o,t)}))},n.prototype._scrollDown=function(e,t,i){i=(i-e)/t;this.element.scrollTop=e+(1<i?i:1)},n.prototype._scrollUp=function(e,t,i){i=(e-i)/t;this.element.scrollTop=e-(1<i?i:1)},n.prototype._animateScroll=function(e,t){var i=this,n=s.SCROLLING_SPEED,o=this.element.scrollTop,r=!1;0<t?(this._scrollDown(o,n,e),o<e&&(r=!0)):(this._scrollUp(o,n,e),e<o&&(r=!0)),r&&requestAnimationFrame(function(){i._animateScroll(e,t)})},t.default=n},730:function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var n=i(799);function o(e){var t=e.element,e=e.classNames;if(this.element=t,this.classNames=e,!(t instanceof HTMLInputElement||t instanceof HTMLSelectElement))throw new TypeError("Invalid element passed");this.isDisabled=!1}Object.defineProperty(o.prototype,"isActive",{get:function(){return"active"===this.element.dataset.choice}
5,enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"dir",{get:function(){return this.element.dir},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"value",{get:function(){return this.element.value},set:function(e){this.element.value=e},enumerable:!1,configurable:!0}),o.prototype.conceal=function(){this.element.classList.add(this.classNames.input),this.element.hidden=!0,this.element.tabIndex=-1;var e=this.element.getAttribute("style");e&&this.element.setAttribute("data-choice-orig-style",e),this.element.setAttribute("data-choice","active")},o.prototype.reveal=function(){this.element.classList.remove(this.classNames.input),this.element.hidden=!1,this.element.removeAttribute("tabindex");var e=this.element.getAttribute("data-choice-orig-style");e?(this.element.removeAttribute("data-choice-orig-style"),this.element.setAttribute("style",e)):this.element.removeAttribute("style"),this.element.removeAttribute("data-choice"),this.element.value=this.element.value},o.prototype.enable=function(){this.element.removeAttribute("disabled"),this.element.disabled=!1,this.isDisabled=!1},o.prototype.disable=function(){this.element.setAttribute("disabled",""),this.element.disabled=!0,this.isDisabled=!0},o.prototype.triggerEvent=function(e,t){(0,n.dispatchEvent)(this.element,e,t)},t.default=o},541:function(e,t,i){var n,o,r=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},s=(Object.defineProperty(t,"__esModule",{value:!0}),o=s(i(730)).default,r(a,o),Object.defineProperty(a.prototype,"value",{get:function(){return this.element.value},set:function(e){this.element.setAttribute("value",e),this.element.value=e},enumerable:!1,configurable:!0}),a);function a(e){var t=e.element,i=e.delimiter,t=o.call(this,{element:t,classNames:e.classNames})||this;return t.delimiter=i,t}t.default=s},982:function(e,t,i){var n,o,r=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},s=(Object.defineProperty(t,"__esModule",{value:!0}),o=s(i(730)).default,r(a,o),Object.defineProperty(a.prototype,"placeholderOption",{get:function(){return this.element.querySelector('option[value=""]')||this.element.querySelector("option[placeholder]")},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"optionGroups",{get:function(){return Array.from(this.element.getElementsByTagName("OPTGROUP"))},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"options",{get:function(){return Array.from(this.element.options)},set:function(e){var t=this,i=document.createDocumentFragment();e.forEach(function(e){e=t.template(e);i.appendChild(e)}),this.appendDocFragment(i)},enumerable:!1,configurable:!0}),a.prototype.appendDocFragment=function(e){this.element.innerHTML="",this.element.appendChild(e)},a);function a(e){var t=e.element,i=e.template,t=o.call(this,{element:t,classNames:e.classNames})||this;return t.template=i,t}t.default=s},883:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.SCROLLING_SPEED=t.SELECT_MULTIPLE_TYPE=t.SELECT_ONE_TYPE=t.TEXT_TYPE=t.KEY_CODES=t.ACTION_TYPES=t.EVENTS=void 0,t.EVENTS={showDropdown:"showDropdown",hideDropdown:"hideDropdown",change:"change",choice:"choice",search:"search",addItem:"addItem",removeItem:"removeItem",highlightItem:"highlightItem",highlightChoice:"highlightChoice",unhighlightItem:"unhighlightItem"},t.ACTION_TYPES={ADD_CHOICE:"ADD_CHOICE",FILTER_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"},t.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},t.TEXT_TYPE="text",t.SELECT_ONE_TYPE="select-one",t.SELECT_MULTIPLE_TYPE="select-multiple",t.SCROLLING_SPEED=4}
5,789:function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_CONFIG=t.DEFAULT_CLASSNAMES=void 0;var n=i(799);t.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",itemChoice:"choices__item--choice",placeholder:"choices__placeholder",group:"choices__group",groupHeading:"choices__heading",button:"choices__button",activeState:"is-active",focusState:"is-focused",openState:"is-open",disabledState:"is-disabled",highlightedState:"is-highlighted",selectedState:"is-selected",flippedState:"is-flipped",loadingState:"is-loading",noResults:"has-no-results",noChoices:"has-no-choices"},t.DEFAULT_CONFIG={items:[],choices:[],silent:!1,renderChoiceLimit:-1,maxItemCount:-1,addItems:!0,addItemFilter:null,removeItems:!0,removeItemButton:!1,editItems:!1,duplicateItemsAllowed:!0,delimiter:",",paste:!0,searchEnabled:!0,searchChoices:!0,searchFloor:1,searchResultLimit:4,searchFields:["label","value"],position:"auto",resetScrollPosition:!0,shouldSort:!0,shouldSortItems:!1,sorter:n.sortByAlpha,placeholder:!0,placeholderValue:null,searchPlaceholderValue:null,prependValue:null,appendValue:null,renderSelectedChoices:"auto",loadingText:"Loading...",noResultsText:"No results found",noChoicesText:"No choices to choose from",itemSelectText:"Press to select",uniqueItemText:"Only unique values can be added",customAddItemText:"Only values matching specific conditions can be added",addItemText:function(e){return'Press Enter to add <b>"'.concat((0,n.sanitise)(e),'"</b>')},maxItemText:function(e){return"Only ".concat(e," values can be added")},valueComparer:function(e,t){return e===t},fuseOptions:{includeScore:!0},callbackOnInit:null,callbackOnCreateTemplates:null,classNames:t.DEFAULT_CLASSNAMES}},799:function(e,i){var t;Object.defineProperty(i,"__esModule",{value:!0}),i.diff=i.cloneObject=i.existsInArray=i.dispatchEvent=i.sortByScore=i.sortByAlpha=i.strToEl=i.sanitise=i.isScrolledIntoView=i.getAdjacentEl=i.wrap=i.isType=i.getType=i.generateId=i.generateChars=i.getRandomNumber=void 0,i.getRandomNumber=function(e,t){return Math.floor(Math.random()*(t-e)+e)},i.generateChars=function(e){return Array.from({length:e},function(){return(0,i.getRandomNumber)(0,36).toString(36)}).join("")},i.generateId=function(e,t){e=(e=e.id||e.name&&"".concat(e.name,"-").concat((0,i.generateChars)(2))||(0,i.generateChars)(4)).replace(/(:|\.|\[|\]|,)/g,"");return"".concat(t,"-").concat(e)},i.getType=function(e){return Object.prototype.toString.call(e).slice(8,-1)},i.isType=function(e,t){return null!=t&&(0,i.getType)(t)===e},i.wrap=function(e,t){return void 0===t&&(t=document.createElement("div")),e.parentNode&&(e.nextSibling?e.parentNode.insertBefore(t,e.nextSibling):e.parentNode.appendChild(t)),t.appendChild(e)},i.getAdjacentEl=function(e,t,i){for(var n="".concat(0<(i=void 0===i?1:i)?"next":"previous","ElementSibling"),o=e[n];o;){if(o.matches(t))return o;o=o[n]}return o},i.isScrolledIntoView=function(e,t,i){return void 0===i&&(i=1),!!e&&(0<i?t.scrollTop+t.offsetHeight>=e.offsetTop+e.offsetHeight:e.offsetTop>=t.scrollTop)},i.sanitise=function(e){return"string"!=typeof e?e:e.replace(/&/g,"&amp;").replace(/>/g,"&rt;").replace(/</g,"&lt;").replace(/"/g,"&quot;")},i.strToEl=(t=document.createElement("div"),function(e){e=e.trim();t.innerHTML=e;for(e=t.children[0];t.firstChild;)t.removeChild(t.firstChild);return e}),i.sortByAlpha=function(e,t){var i=e.value,e=e.label,i=void 0===e?i:e,e=t.value,t=t.label;return i.localeCompare(void 0===t?e:t,[],{sensitivity:"base",ignorePunctuation:!0,numeric:!0})},i.sortByScore=function(e,t){e=e.score,t=t.score;return(void 0===e?0:e)-(void 0===t?0:t)},i.dispatchEvent=function(e,t,i){void 0===i&&(i=null);t=new CustomEvent(t,{detail:i,bubbles:!0,cancelable:!0});return e.dispatchEvent(t)},i.existsInArray=function(e,t,i){return void 0===i&&(i="value"),e.some(function(e){return"string"==typeof t?e[i]===t.trim():e[i]===t})},i.cloneObject=function(e){return JSON.parse(JSON.stringify(e))},i.diff=function(e,t){var e=Object.keys(e).sort(),i=Object.keys(t).sort();return e.filter(function(e){return i.indexOf(e)<0})}},273:function(e,a){var c=this&&this.__spreadArray||function(e,t,i){if(i||2===arguments.length)for(var n,o=0,r=t.length;o<r;o++)!n&&o in t||((n=n||Array.prototype.slice.call(t,0,o))[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))};Object.defineProperty(a,"__esModule",{value:!0}),a.defaultState=void 0,a.defaultState=[],a.default=function(e,t){switch(void 0===e&&(e=a.defaultState),(t=void 0===t?{}:t).type){case"ADD_CHOICE":var i=t,i={id:i.id,elementId:i.elementId,groupId:i.groupId,value:i.value,label:i.label||i.value,disabled:i.disabled||!1,selected:!1,active:!0,score:9999,customProperties:i.customProperties,placeholder:i.placeholder||!1};return c(c([],e,!0),[i],!1);case"ADD_ITEM":var n=t;return-1<n.choiceId?e.map(function(e){return e.id===parseInt("".concat(n.choiceId),10)&&(e.selected=!0),e}):e;case"REMOVE_ITEM":var o=t;return o.choiceId&&-1<o.choiceId?e.map(function(e){return e.id===parseInt("".concat(o.choiceId),10)&&(e.selected=!1),e}):e;case"FILTER_CHOICES":var r=t;return e.map(function(e){var t=e;return t.active=r.results.some(function(e){return e.item.id===t.id&&(t.score=e.score,!0)}),t});case"ACTIVATE_CHOICES":var s=t;return e.map(function(e){return e.active=s.active,e});case"CLEAR_CHOICES":return a.defaultState;default:return e}}},871:function(e,n){var o=this&&this.__spreadArray||function(e,t,i){if(i||2===arguments.length)for(var n,o=0,r=t.length;o<r;o++)!n&&o in t||((n=n||Array.prototype.slice.call(t,0,o))[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))};Object.defineProperty(n,"__esModule",{value:!0}),n.defaultState=void 0,n.defaultState=[],n.default=function(e,t){switch(void 0===e&&(e=n.defaultState),(t=void 0===t?{}:t).type){case"ADD_GROUP":var i=t;return o(o([],e,!0),[{id:i.id,value:i.value,active:i.active,disabled:i.disabled}],!1);case"CLEAR_CHOICES":return[];default:return e}}},655:function(e,i,t){var n=this&&this.__importDefault||function(e){return e&&e.__esMo
5dule?e:{default:e}},o=(Object.defineProperty(i,"__esModule",{value:!0}),i.defaultState=void 0,t(857)),r=n(t(52)),s=n(t(871)),a=n(t(273)),n=n(t(502)),c=t(799),l=(i.defaultState={groups:[],items:[],choices:[],loading:!1},(0,o.combineReducers)({items:r.default,groups:s.default,choices:a.default,loading:n.default}));i.default=function(e,t){if("CLEAR_ALL"===t.type)e=i.defaultState;else if("RESET_TO"===t.type)return(0,c.cloneObject)(t.state);return l(e,t)}},52:function(e,o){var r=this&&this.__spreadArray||function(e,t,i){if(i||2===arguments.length)for(var n,o=0,r=t.length;o<r;o++)!n&&o in t||((n=n||Array.prototype.slice.call(t,0,o))[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))};Object.defineProperty(o,"__esModule",{value:!0}),o.defaultState=void 0,o.defaultState=[],o.default=function(e,t){switch(void 0===e&&(e=o.defaultState),(t=void 0===t?{}:t).type){case"ADD_ITEM":var i=t;return r(r([],e,!0),[{id:i.id,choiceId:i.choiceId,groupId:i.groupId,value:i.value,label:i.label,active:!0,highlighted:!1,customProperties:i.customProperties,placeholder:i.placeholder||!1,keyCode:null}],!1).map(function(e){return e.highlighted=!1,e});case"REMOVE_ITEM":return e.map(function(e){return e.id===t.id&&(e.active=!1),e});case"HIGHLIGHT_ITEM":var n=t;return e.map(function(e){return e.id===n.id&&(e.highlighted=n.highlighted),e});default:return e}}},502:function(e,i){Object.defineProperty(i,"__esModule",{value:!0}),i.defaultState=void 0,i.defaultState=!1,i.default=function(e,t){return"SET_IS_LOADING"!==(void 0===e&&(e=i.defaultState),(t=void 0===t?{}:t).type)?e:t.isLoading}},744:function(e,t,i){var n=this&&this.__spreadArray||function(e,t,i){if(i||2===arguments.length)for(var n,o=0,r=t.length;o<r;o++)!n&&o in t||((n=n||Array.prototype.slice.call(t,0,o))[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},r=(Object.defineProperty(t,"__esModule",{value:!0}),i(857)),s=o(i(655));function a(){this._store=(0,r.createStore)(s.default,window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__())}a.prototype.subscribe=function(e){this._store.subscribe(e)},a.prototype.dispatch=function(e){this._store.dispatch(e)},Object.defineProperty(a.prototype,"state",{get:function(){return this._store.getState()},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"items",{get:function(){return this.state.items},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"activeItems",{get:function(){return this.items.filter(function(e){return!0===e.active})},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"highlightedActiveItems",{get:function(){return this.items.filter(function(e){return e.active&&e.highlighted})},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"choices",{get:function(){return this.state.choices},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"activeChoices",{get:function(){return this.choices.filter(function(e){return!0===e.active})},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"selectableChoices",{get:function(){return this.choices.filter(function(e){return!0!==e.disabled})},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"searchableChoices",{get:function(){return this.selectableChoices.filter(function(e){return!0!==e.placeholder})},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"placeholderChoice",{get:function(){return n([],this.choices,!0).reverse().find(function(e){return!0===e.placeholder})},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"groups",{get:function(){return this.state.groups},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"activeGroups",{get:function(){var e=this.groups,i=this.choices;return e.filter(function(e){var e=!0===e.active&&!1===e.disabled,t=i.some(function(e){return!0===e.active&&!1===e.disabled});return e&&t},[])},enumerable:!1,configurable:!0}),a.prototype.isLoading=function(){return this.state.loading},a.prototype.getChoiceById=function(t){return this.activeChoices.find(function(e){return e.id===parseInt(t,10)})},a.prototype.getGroupById=function(t){return this.groups.find(function(e){return e.id===t})},t.default=a}
5,686:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default={containerOuter:function(e,t,i,n,o,r){e=e.containerOuter,e=Object.assign(document.createElement("div"),{className:e});return e.dataset.type=r,t&&(e.dir=t),n&&(e.tabIndex=0),i&&(e.setAttribute("role",o?"combobox":"listbox"),o)&&e.setAttribute("aria-autocomplete","list"),e.setAttribute("aria-haspopup","true"),e.setAttribute("aria-expanded","false"),e},containerInner:function(e){e=e.containerInner;return Object.assign(document.createElement("div"),{className:e})},itemList:function(e,t){var i=e.list,n=e.listSingle,e=e.listItems;return Object.assign(document.createElement("div"),{className:"".concat(i," ").concat(t?n:e)})},placeholder:function(e,t){e=e.placeholder;return Object.assign(document.createElement("div"),{className:e,innerHTML:t})},item:function(e,t,i){var n=e.item,o=e.button,r=e.highlightedState,s=e.itemSelectable,e=e.placeholder,a=t.id,c=t.value,l=t.label,h=t.customProperties,u=t.active,d=t.disabled,p=t.highlighted,t=t.placeholder,n=Object.assign(document.createElement("div"),{className:n,innerHTML:l});return Object.assign(n.dataset,{item:"",id:a,value:c,customProperties:h}),u&&n.setAttribute("aria-selected","true"),d&&n.setAttribute("aria-disabled","true"),t&&n.classList.add(e),n.classList.add(p?r:s),i&&(d&&n.classList.remove(s),n.dataset.deletable="",(l=Object.assign(document.createElement("button"),{type:"button",className:o,innerHTML:"Remove item"})).setAttribute("aria-label","".concat("Remove item",": '").concat(c,"'")),l.dataset.button="",n.appendChild(l)),n},choiceList:function(e,t){e=e.list,e=Object.assign(document.createElement("div"),{className:e});return t||e.setAttribute("aria-multiselectable","true"),e.setAttribute("role","listbox"),e},choiceGroup:function(e,t){var i=e.group,n=e.groupHeading,e=e.itemDisabled,o=t.id,r=t.value,t=t.disabled,i=Object.assign(document.createElement("div"),{className:"".concat(i," ").concat(t?e:"")});return i.setAttribute("role","group"),Object.assign(i.dataset,{group:"",id:o,value:r}),t&&i.setAttribute("aria-disabled","true"),i.appendChild(Object.assign(document.createElement("div"),{className:n,innerHTML:r})),i},choice:function(e,t,i){var n=e.item,o=e.itemChoice,r=e.itemSelectable,s=e.selectedState,a=e.itemDisabled,e=e.placeholder,c=t.id,l=t.value,h=t.label,u=t.groupId,d=t.elementId,p=t.disabled,f=t.selected,t=t.placeholder,d=Object.assign(document.createElement("div"),{id:d,innerHTML:h,className:"".concat(n," ").concat(o)});return f&&d.classList.add(s),t&&d.classList.add(e),d.setAttribute("role",u&&0<u?"treeitem":"option"),Object.assign(d.dataset,{choice:"",id:c,value:l,selectText:i}),p?(d.classList.add(a),d.dataset.choiceDisabled="",d.setAttribute("aria-disabled","true")):(d.classList.add(r),d.dataset.choiceSelectable=""),d},input:function(e,t){var i=e.input,e=e.inputCloned,i=Object.assign(document.createElement("input"),{type:"text",className:"".concat(i," ").concat(e),autocomplete:"off",autocapitalize:"off",spellcheck:!1});return i.setAttribute("role","textbox"),i.setAttribute("aria-autocomplete","list"),i.setAttribute("aria-label",t),i},dropdown:function(e){var t=e.list,e=e.listDropdown,i=document.createElement("div");return i.classList.add(t,e),i.setAttribute("aria-expanded","false"),i},notice:function(e,t,i){var n=e.item,o=e.noResults,n=[n,e.itemChoice];return"no-choices"===(i=void 0===i?"":i)?n.push(e.noChoices):"no-results"===i&&n.push(o),Object.assign(document.createElement("div"),{innerHTML:t,className:n.join(" ")})},option:function(e){var t=e.label,i=e.customProperties,n=e.disabled,t=new Option(t,e.value,!1,e.active);return i&&(t.dataset.customProperties="".concat(i)),t.disabled=!!n,t}}},996:function(e){var o=function(e){return!(!e||"object"!=typeof e||(e=e,"[object RegExp]"===(t=Object.prototype.toString.call(e)))||"[object Date]"===t||e.$$typeof===i);var t},i="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function a(e,t){return!1!==t.clone&&t.isMergeableObject(e)?l(Array.isArray(e)?[]:{},e,t):e}function r(e,t,i){return e.concat(t).map(function(e){return a(e,i)})}function t(e){return Object.keys(e).concat((t=e,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return t.propertyIsEnumerable(e)}):[]));var t}function c(e,t){try{return t in e}catch(e){return!1}}function s(n,o,r){var s={};
5return r.isMergeableObject(n)&&t(n).forEach(function(e){s[e]=a(n[e],r)}),t(o).forEach(function(e){var t,i;(!c(t=n,i=e)||Object.hasOwnProperty.call(t,i)&&Object.propertyIsEnumerable.call(t,i))&&(c(n,e)&&r.isMergeableObject(o[e])?s[e]=((t=r).customMerge&&"function"==typeof(t=t.customMerge(e))?t:l)(n[e],o[e],r):s[e]=a(o[e],r))}),s}function l(e,t,i){(i=i||{}).arrayMerge=i.arrayMerge||r,i.isMergeableObject=i.isMergeableObject||o,i.cloneUnlessOtherwiseSpecified=a;var n=Array.isArray(t);return n===Array.isArray(e)?n?i.arrayMerge(e,t,i):s(e,t,i):a(t,i)}l.all=function(e,i){if(Array.isArray(e))return e.reduce(function(e,t){return l(e,t,i)},{});throw new Error("first argument should be an array")},e.exports=l},70:function(e){function o(e){var t;return(n[e]||(t=n[e]={i:e,l:!1,exports:{}},i[e].call(t.exports,t,t.exports,o),t.l=!0,t)).exports}var i,n;e.exports=(i=[function(e,t){e.exports=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===Object.prototype.toString.call(e)}},function(e,t,i){function h(e){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var r=i(2),E=i(8),L=i(0),i=(()=>{function y(e,t){var i=t.location,i=void 0===i?0:i,n=t.distance,n=void 0===n?100:n,o=t.threshold,o=void 0===o?.6:o,r=t.maxPatternLength,r=void 0===r?32:r,s=t.caseSensitive,s=void 0!==s&&s,a=t.tokenSeparator,a=void 0===a?/ +/g:a,c=t.findAllMatches,c=void 0!==c&&c,l=t.minMatchCharLength,l=void 0===l?1:l,h=t.id,h=void 0===h?null:h,u=t.keys,u=void 0===u?[]:u,d=t.shouldSort,d=void 0===d||d,p=t.getFn,p=void 0===p?E:p,f=t.sortFn,f=void 0===f?function(e,t){return e.score-t.score}:f,m=t.tokenize,m=void 0!==m&&m,v=t.matchAllTokens,v=void 0!==v&&v,_=t.includeMatches,_=void 0!==_&&_,g=t.includeScore,g=void 0!==g&&g,t=t.verbose,t=void 0!==t&&t;if(!(this instanceof y))throw new TypeError("Cannot call a class as a function");this.options={location:i,distance:n,threshold:o,maxPatternLength:r,isCaseSensitive:s,tokenSeparator:a,findAllMatches:c,minMatchCharLength:l,id:h,keys:u,includeMatches:_,includeScore:g,shouldSort:d,getFn:p,sortFn:f,verbose:t,tokenize:m,matchAllTokens:v},this.setCollection(e)}for(var e=y.prototype,t=[{key:"setCollection",value:function(e){return this.list=e}},{key:"search",value:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{limit:!1},e=(this._log('---------\nSearch pattern: "'.concat(e,'"')),this._prepareSearchers(e)),i=e.tokenSearchers,i=this._search(i,e.fullSearcher),e=i.weights,i=i.results;return this._computeScore(e,i),this.options.shouldSort&&this._sort(i),t.limit&&"number"==typeof t.limit&&(i=i.slice(0,t.limit)),this._format(i)}},{key:"_prepareSearchers",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"",t=[];if(this.options.tokenize)for(var i=e.split(this.options.tokenSeparator),n=0,o=i.length;n<o;n+=1)t.push(new r(i[n],this.options));return{tokenSearchers:t,fullSearcher:new r(e,this.options)}}},{key:"_search",value:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],t=1<arguments.length?arguments[1]:void 0,i=this.list,n={},o=[];if("string"==typeof i[0]){for(var r=0,s=i.length;r<s;r+=1)this._analyze({key:"",value:i[r],record:r,index:r},{resultMap:n,results:o,tokenSearchers:e,fullSearcher:t});return{weights:null,results:o}}for(var a={},c=0,l=i.length;c<l;c+=1)for(var h=i[c],u=0,d=this.options.keys.length;u<d;u+=1){var p=this.options.keys[u];if("string"!=typeof p){if(a[p.name]={weight:1-p.weight||1},p.weight<=0||1<p.weight)throw new Error("Key weight has to be > 0 and <= 1");p=p.name}else a[p]={weight:1};this._analyze({key:p,value:this.options.getFn(h,p),record:h,index:c},{resultMap:n,results:o,tokenSearchers:e,fullSearcher:t})}return{weights:a,results:o}}},{key:"_analyze",value:function(e,t){var i=e.key,n=e.arrayIndex,n=void 0===n?-1:n,o=e.value,r=e.record,s=e.index,e=t.tokenSearchers,a=void 0===e?[]:e,e=t.fullSearcher,c=void 0===e?[]:e,e=t.resultMap,l=void 0===e?{}:e,e=t.results,h=void 0===e?[]:e;if(null!=o){var u=!1,d=-1,p=0;if("string"==typeof o){this._log("\nKey: ".concat(""===i?"-":i));t=c.search(o);if(this._log('Full text: "'.concat(o,'", score: ').concat(t.score)),this.options.tokenize){for(var f=o.split(this.options.tokenSeparator),m=[],v=0;v<a.length;v+=1){var _=a[v];this._log('\nPattern: "'.concat(_.pattern,'"'));for(var g=!1,y=0;y<f.length;y+=1){var E=f[y],b=_.search(E),S={};b.isMatch?(S[E]=b.score,g=u=!0,m.push(b.score)):(S[E]=1,this.options.matchAllTokens||m.push(1)),this._log('Token: "'.concat(E,'", score: ').concat(S[E]))}g&&(p+=1)}for(var d=m[0],O=m.length,I=1;I<O;I+=1)d+=m[I];this._log("Token score average:",d/=O)}
5var e=t.score,C=(this._log("Score average:",e=-1<d?(e+d)/2:e),!this.options.tokenize||!this.options.matchAllTokens||p>=a.length);this._log("\nCheck Matches: ".concat(C)),(u||t.isMatch)&&C&&((C=l[s])?C.output.push({key:i,arrayIndex:n,value:o,score:e,matchedIndices:t.matchedIndices}):(l[s]={item:r,output:[{key:i,arrayIndex:n,value:o,score:e,matchedIndices:t.matchedIndices}]},h.push(l[s])))}else if(L(o))for(var T=0,A=o.length;T<A;T+=1)this._analyze({key:i,arrayIndex:T,value:o[T],record:r,index:s},{resultMap:l,results:h,tokenSearchers:a,fullSearcher:c})}}},{key:"_computeScore",value:function(e,t){this._log("\n\nComputing score:\n");for(var i=0,n=t.length;i<n;i+=1){for(var o=t[i].output,r=o.length,s=1,a=1,c=0;c<r;c+=1){var l=e?e[o[c].key].weight:1,h=(1===l?o[c].score:o[c].score||.001)*l;1!==l?a=Math.min(a,h):s*=o[c].nScore=h}t[i].score=1===a?s:a,this._log(t[i])}}},{key:"_sort",value:function(e){this._log("\n\nSorting...."),e.sort(this.options.sortFn)}},{key:"_format",value:function(e){var i,t=[],n=(this.options.verbose&&(i=[],this._log("\n\nOutput:\n\n",JSON.stringify(e,function(e,t){if("object"===h(t)&&null!==t){if(-1!==i.indexOf(t))return;i.push(t)}return t})),i=null),[]);this.options.includeMatches&&n.push(function(e,t){var i=e.output;t.matches=[];for(var n=0,o=i.length;n<o;n+=1){var r,s=i[n];0!==s.matchedIndices.length&&(r={indices:s.matchedIndices,value:s.value},s.key&&(r.key=s.key),s.hasOwnProperty("arrayIndex")&&-1<s.arrayIndex&&(r.arrayIndex=s.arrayIndex),t.matches.push(r))}}),this.options.includeScore&&n.push(function(e,t){t.score=e.score});for(var o=0,r=e.length;o<r;o+=1){var s=e[o];if(this.options.id&&(s.item=this.options.getFn(s.item,this.options.id)[0]),n.length){for(var a={item:s.item},c=0,l=n.length;c<l;c+=1)n[c](s,a);t.push(a)}else t.push(s.item)}return t}},{key:"_log",value:function(){var e;this.options.verbose&&(e=console).log.apply(e,arguments)}}],i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}return y})();e.exports=i},function(e,t,i){var o=i(3),r=i(4),h=i(7),i=(()=>{function l(e,t){var i=t.location,i=void 0===i?0:i,n=t.distance,n=void 0===n?100:n,o=t.threshold,o=void 0===o?.6:o,r=t.maxPatternLength,r=void 0===r?32:r,s=t.isCaseSensitive,s=void 0!==s&&s,a=t.tokenSeparator,a=void 0===a?/ +/g:a,c=t.findAllMatches,c=void 0!==c&&c,t=t.minMatchCharLength,t=void 0===t?1:t;if(!(this instanceof l))throw new TypeError("Cannot call a class as a function");this.options={location:i,distance:n,threshold:o,maxPatternLength:r,isCaseSensitive:s,tokenSeparator:a,findAllMatches:c,minMatchCharLength:t},this.pattern=this.options.isCaseSensitive?e:e.toLowerCase(),this.pattern.length<=r&&(this.patternAlphabet=h(this.pattern))}for(var e=l.prototype,t=[{key:"search",value:function(e){var t,i;return this.options.isCaseSensitive||(e=e.toLowerCase()),this.pattern===e?{isMatch:!0,score:0,matchedIndices:[[0,e.length-1]]}:(t=(i=this.options).maxPatternLength,this.pattern.length>t?o(e,this.pattern,i.tokenSeparator):(i=(t=this.options).location,r(e,this.pattern,this.patternAlphabet,{location:i,distance:t.distance,threshold:t.threshold,findAllMatches:t.findAllMatches,minMatchCharLength:t.minMatchCharLength})))}}],i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}return l})();e.exports=i},function(e,t){var c=/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g;e.exports=function(e,t){var i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:/ +/g,t=new RegExp(t.replace(c,"\\$&").replace(i,"|")),n=e.match(t),i=!!n,o=[];if(i)for(var r=0,s=n.length;r<s;r+=1){var a=n[r];o.push([e.indexOf(a),a.length-1])}return{score:i?.5:1,isMatch:i,matchedIndices:o}}},function(e,t,i){var w=i(5),P=i(6);e.exports=function(e,t,i,n){for(var o=n.location,r=n.distance,s=void 0===r?100:r,r=n.threshold,a=n.findAllMatches,c=void 0!==a&&a,a=n.minMatchCharLength,n=void 0===a?1:a,l=void 0===o?0:o,h=e.length,u=void 0===r?.6:r,d=e.indexOf(t,l),p=t.length,f=[],m=0;m<h;m+=1)f[m]=0;-1!==d&&(a=w(t,{errors:0,currentLocation:d,expectedLocation:l,distance:s}),u=Math.min(a,u),-1!==(d=e.lastIndexOf(t,l+p)))&&(o=w(t,{errors:0,currentLocation:d,expectedLocation:l,distance:s}),u=Math.min(o,u));for(var d=-1,v=[],_=1,g=p+h,y=1<<(p<=31?p-1:30),E=0;E<p;E+=1){for(var b=0,S=g;b<S;)w(t,{errors:E,currentLocation:l+S,expectedLocation:l,distance:s})<=u?b=S:g=S,S=Math.floor((g-b)/2+b);var g=S,O=Math.max(1,l-S+1),I=c?h:Math.min(l+S,h)+p,C=Array(I+2);C[I+1]=(1<<E)-1;
5for(var T=I;O<=T;--T){var A=T-1,L=i[e.charAt(A)];if(L&&(f[A]=1),C[T]=(C[T+1]<<1|1)&L,0!==E&&(C[T]|=(v[T+1]|v[T])<<1|1|v[T+1]),C[T]&y&&(_=w(t,{errors:E,currentLocation:A,expectedLocation:l,distance:s}))<=u){if(u=_,(d=A)<=l)break;O=Math.max(1,2*l-d)}}if(w(t,{errors:E+1,currentLocation:l,expectedLocation:l,distance:s})>u)break;v=C}return{isMatch:0<=d,score:0===_?.001:_,matchedIndices:P(f,n)}}},function(e,t){e.exports=function(e,t){var i=t.errors,n=t.currentLocation,o=t.expectedLocation,t=t.distance,t=void 0===t?100:t,i=(void 0===i?0:i)/e.length,e=Math.abs((void 0===o?0:o)-(void 0===n?0:n));return t?i+e/t:e?1:i}},function(e,t){e.exports=function(){for(var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:1,i=[],n=-1,o=0,r=e.length;o<r;o+=1){var s=e[o];s&&-1===n?n=o:s||-1===n||((s=o-1)-n+1>=t&&i.push([n,s]),n=-1)}return e[o-1]&&t<=o-n&&i.push([n,o-1]),i}},function(e,t){e.exports=function(e){for(var t={},i=e.length,n=0;n<i;n+=1)t[e.charAt(n)]=0;for(var o=0;o<i;o+=1)t[e.charAt(o)]|=1<<i-o-1;return t}},function(e,t,i){var h=i(0);e.exports=function(e,t){return function e(t,i,n){if(i){var o=i.indexOf("."),r=i,s=null,a=(-1!==o&&(r=i.slice(0,o),s=i.slice(o+1)),t[r]);if(null!=a)if(s||"string"!=typeof a&&"number"!=typeof a)if(h(a))for(var c=0,l=a.length;c<l;c+=1)e(a[c],s,n);else s&&e(a,s,n);else n.push(a.toString())}else n.push(t);return n}(e,t,[])}}],n={},o.m=i,o.c=n,o.d=function(e,t,i){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(o.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)o.d(i,n,function(e){return t[e]}.bind(null,n));return i},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=1))},857:function(e,t,i){function r(t,e){var i,n=Object.keys(t);return Object.getOwnPropertySymbols&&(i=Object.getOwnPropertySymbols(t),e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)),n}function s(n){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?r(Object(o),!0).forEach(function(e){var t,i;t=n,i=o[e=e],e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(o)):r(Object(o)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(o,e))})}return n}function d(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}i.r(t),i.d(t,{__DO_NOT_USE__ActionTypes:function(){return f},applyMiddleware:function(){return h},bindActionCreators:function(){return c},combineReducers:function(){return o},compose:function(){return l},createStore:function(){return m}});function n(){return Math.random().toString(36).substring(7).split("").join(".")}var p="function"==typeof Symbol&&Symbol.observable||"@@observable",f={INIT:"@@redux/INIT"+n(),REPLACE:"@@redux/REPLACE"+n(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+n()}};function m(e,t,i){if("function"==typeof t&&"function"==typeof i||"function"==typeof i&&"function"==typeof arguments[3])throw new Error(d(0));if("function"==typeof t&&void 0===i&&(i=t,t=void 0),void 0!==i){if("function"!=typeof i)throw new Error(d(1));return i(m)(e,t)}if("function"!=typeof e)throw new Error(d(2));var n=e,o=t,r=[],s=r,a=!1;function c(){s===r&&(s=r.slice())}function l(){if(a)throw new Error(d(3));return o}function h(t){if("function"!=typeof t)throw new Error(d(4));if(a)throw new Error(d(5));var i=!0;return c(),s.push(t),function(){if(i){if(a)throw new Error(d(6));i=!1,c();var e=s.indexOf(t);s.splice(e,1),r=null}}}function u(e){if(!(e=>{if("object"==typeof e&&null!==e){for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}})(e))throw new Error(d(7));if(void 0===e.type)throw new Error(d(8));if(a)throw new Error(d(9));try{a=!0,o=n(o,e)}finally{a=!1}
5for(var t=r=s,i=0;i<t.length;i++)(0,t[i])();return e}return u({type:f.INIT}),(i={dispatch:u,subscribe:h,getState:l,replaceReducer:function(e){if("function"!=typeof e)throw new Error(d(10));n=e,u({type:f.REPLACE})}})[p]=function(){var e,i=h;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(d(11));function t(){e.next&&e.next(l())}return t(),{unsubscribe:i(t)}}})[p]=function(){return this},e},i}function o(e){for(var t=Object.keys(e),c={},i=0;i<t.length;i++){var n=t[i];"function"==typeof e[n]&&(c[n]=e[n])}var l,o,h=Object.keys(c);try{o=c,Object.keys(o).forEach(function(e){e=o[e];if(void 0===e(void 0,{type:f.INIT}))throw new Error(d(12));if(void 0===e(void 0,{type:f.PROBE_UNKNOWN_ACTION()}))throw new Error(d(13))})}catch(e){l=e}return function(e,t){if(void 0===e&&(e={}),l)throw l;for(var i=!1,n={},o=0;o<h.length;o++){var r=h[o],s=c[r],a=e[r],s=s(a,t);if(void 0===s)throw t&&t.type,new Error(d(14));n[r]=s,i=i||s!==a}return(i=i||h.length!==Object.keys(e).length)?n:e}}function a(e,t){return function(){return t(e.apply(this,arguments))}}function c(e,t){if("function"==typeof e)return a(e,t);if("object"!=typeof e||null===e)throw new Error(d(16));var i,n={};for(i in e){var o=e[i];"function"==typeof o&&(n[i]=a(o,t))}return n}function l(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce(function(e,t){return function(){return e(t.apply(void 0,arguments))}})}function h(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return function(o){return function(){var e=o.apply(void 0,arguments),t=function(){throw new Error(d(15))},i={getState:e.getState,dispatch:function(){return t.apply(void 0,arguments)}},n=r.map(function(e){return e(i)}),t=l.apply(void 0,n)(e.dispatch);return s(s({},e),{},{dispatch:t})}}}}},o={},n.d=function(e,t){for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n(373).default;function n(e){var t=o[e];return void 0!==t||(t=o[e]={exports:{}},i[e].call(t.exports,t,t.exports,n)),t.exports}var i,o}()},function(e,t,i){e.exports=i(2)},function(e,t,i){i.r(t);var t=i(0),i=i.n(t),n=document.querySelectorAll(".js-font-pick-textarea")[0],t=document.querySelectorAll(".js-font-pick-range")[0],o=document.querySelectorAll(".js-font-pick-range-value")[0],r=document.querySelectorAll(".js-font-pick-example-text")[0],s=document.querySelectorAll(".js-font-pick")[0],a={searchEnabled:!1,shouldSort:!1};new i.a(r,a),new i.a(s,a),t.addEventListener("input",function(e){var e=e.target,t=n,i=o,e=e.value;t.style.fontSize="".concat(e,"pt"),i.innerHTML=e}),r.addEventListener("change",function(e){e=e.target.value;n.innerHTML=e,n.value=e}),s.addEventListener("change",function(e){e=e.target.value;n.style.fontFamily="'".concat(e,"', serif")})}]);

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.