{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./app/javascript/packs/shared/util/format.js","webpack:///./node_modules/setimmediate/setImmediate.js","webpack:///./node_modules/process/browser.js","webpack:///./app/javascript/bulma/init/select2.js","webpack:///./node_modules/@rails/ujs/lib/assets/compiled/rails-ujs.js","webpack:///./node_modules/choices.js/public/assets/scripts/choices.min.js","webpack:///./app/javascript/shared/init/links.js","webpack:///./app/javascript/shared/init/multi-choice-selects.js","webpack:///./app/javascript/shared/init/index.js","webpack:///./node_modules/toastify-js/src/toastify.js","webpack:///./app/javascript/packs/shared/util/index.js","webpack:///./app/javascript/bulma/init/input-required.js","webpack:///./app/javascript/bulma/init/input-hours.js","webpack:///./app/javascript/bulma/init/input-numeric.js","webpack:///./app/javascript/bulma/init/index.js","webpack:///./app/javascript/bulma/init/field-errors.js","webpack:///./app/javascript/bulma/init/select.js","webpack:///./app/javascript/bulma/init/input-percentage.js","webpack:///./app/javascript/bulma/init/input-text-min-max.js","webpack:///./app/javascript/bulma/init/meters.js","webpack:///./app/javascript/packs/application-bulma.js","webpack:///(webpack)/buildin/global.js","webpack:///./node_modules/timers-browserify/main.js"],"names":["installedModules","__webpack_require__","moduleId","exports","module","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","NUMBER_REGEX","toHoursMinutes","seconds","tokens","h","Math","floor","round","push","join","formatHours","hours","negative","minutes","integerHours","clauses","String","padStart","length","parseHours","timeString","includes","split","Number","match","isNaN","global","setImmediate","registerImmediate","html","channel","messagePrefix","onGlobalMessage","nextHandle","tasksByHandle","currentlyRunningATask","doc","document","attachTo","getPrototypeOf","setTimeout","toString","process","handle","nextTick","runIfPresent","postMessage","importScripts","postMessageIsAsynchronous","oldOnMessage","onmessage","canUsePostMessage","MessageChannel","port1","event","data","port2","createElement","documentElement","script","onreadystatechange","removeChild","appendChild","random","source","indexOf","slice","addEventListener","attachEvent","callback","Function","args","Array","arguments","task","clearImmediate","apply","run","self","this","cachedSetTimeout","cachedClearTimeout","defaultSetTimout","Error","defaultClearTimeout","runTimeout","fun","e","clearTimeout","currentQueue","queue","draining","queueIndex","cleanUpNextTick","concat","drainQueue","timeout","len","marker","runClearTimeout","Item","array","noop","title","browser","env","argv","version","versions","on","addListener","once","off","removeListener","removeAllListeners","emit","prependListener","prependOnceListener","listeners","binding","cwd","chdir","dir","umask","querySelectorAll","forEach","select","$","select2","width","placeholder","gon","prompt","Rails","linkClickSelector","buttonClickSelector","selector","exclude","inputChangeSelector","formSubmitSelector","formInputClickSelector","formDisableSelector","formEnableSelector","fileInputSelector","linkDisableSelector","buttonDisableSelector","nonce","loadCSPNonce","ref","querySelector","content","cspNonce","Element","matches","matchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector","webkitMatchesSelector","element","getData","setData","csrfParam","csrfToken","meta","CSRFProtection","xhr","token","setRequestHeader","refreshCSRFTokens","param","input","CustomEvent","fire","preventDefault","window","params","evt","createEvent","initCustomEvent","bubbles","cancelable","detail","Event","result","defaultPrevented","obj","dispatchEvent","stopEverything","target","stopPropagation","stopImmediatePropagation","delegate","eventType","handler","parentNode","AcceptHeaders","createXHR","prepareOptions","processResponse","text","xml","json","ajax","options","response","responseText","getResponseHeader","status","success","statusText","error","complete","beforeSend","readyState","XMLHttpRequest","OPENED","send","url","location","href","type","toUpperCase","dataType","accept","done","open","crossDomain","withCredentials","DONE","parser","JSON","parse","setAttribute","head","DOMParser","replace","parseFromString","isCrossDomain","originAnchor","urlAnchor","protocol","host","toArray","serializeElement","additionalParam","inputs","elements","disabled","option","selected","checked","map","encodeURIComponent","formElements","form","filter","el","allowAction","handleConfirm","confirm","message","answer","getAttribute","disableFormElement","disableFormElements","disableLinkElement","enableFormElement","enableFormElements","enableLinkElement","isXhrRedirect","handleDisabledElement","enableElement","disableElement","replacement","innerHTML","originalText","removeEventListener","handleMethod","formContent","link","method","action","style","display","body","click","isRemote","handleRemote","button","enctype","FormData","append","formSubmitButtonClick","formNoValidate","preventInsignificantClick","insignificantMetaClick","metaKey","ctrlKey","jQuery","rails","ajaxPrefilter","originalOptions","start","_rails_loaded","default","isArray","a","$$typeof","for","clone","isMergeableObject","keys","getOwnPropertySymbols","propertyIsEnumerable","customMerge","arrayMerge","cloneUnlessOtherwiseSpecified","all","reduce","charAt","RegExp","score","isMatch","matchedIndices","errors","currentLocation","expectedLocation","distance","u","abs","threshold","findAllMatches","f","minMatchCharLength","v","g","_","b","y","E","S","I","min","lastIndexOf","w","C","O","A","x","T","L","k","D","max","P","F","j","M","N","configurable","writable","maxPatternLength","isCaseSensitive","tokenSeparator","TypeError","pattern","toLowerCase","patternAlphabet","iterator","constructor","caseSensitive","id","shouldSort","getFn","sortFn","tokenize","matchAllTokens","includeMatches","includeScore","K","verbose","R","setCollection","list","limit","_log","_prepareSearchers","tokenSearchers","fullSearcher","_search","weights","results","_computeScore","_sort","_format","_analyze","record","index","resultMap","weight","arrayIndex","search","output","item","nScore","sort","stringify","indices","console","log","observable","delegateEvent","Map","add","has","set","remove","splice","webpackPolyfill","children","substring","INIT","REPLACE","PROBE_UNKNOWN_ACTION","dispatch","subscribe","getState","replaceReducer","next","unsubscribe","loading","isLoading","hasAttribute","parentElement","trim","firstChild","substr","items","choiceId","groupId","label","active","highlighted","customProperties","keyCode","groups","choices","elementId","activateOptions","parseInt","some","general","state","_store","__REDUX_DEVTOOLS_EXTENSION__","getChoiceById","activeChoices","find","getGroupById","selectableChoices","reverse","classNames","assign","isActive","distanceFromTopWindow","dimensions","getBoundingClientRect","position","ceil","top","pageYOffset","offsetHeight","getChild","show","classList","activeState","hide","isOpen","isFlipped","isFocussed","isDisabled","_onFocus","_onBlur","addEventListeners","removeEventListeners","shouldFlip","scrollHeight","clientHeight","setActiveDescendant","removeActiveDescendant","removeAttribute","openState","flippedState","close","focus","addFocusState","focusState","removeFocusState","enable","disabledState","disable","wrap","nextSibling","insertBefore","unwrap","addLoadingState","loadingState","removeLoadingState","placeholderValue","activeElement","_onPaste","_onInput","_onFormReset","blur","clear","setWidth","_placeholderValue","calcWidth","offsetWidth","padding","left","whiteSpace","contains","getComputedStyle","fontSize","fontFamily","fontWeight","fontStyle","letterSpacing","textTransform","paddingLeft","paddingRight","requestAnimationFrame","preventPaste","silent","renderChoiceLimit","maxItemCount","addItems","addItemFilterFn","removeItems","removeItemButton","editItems","duplicateItemsAllowed","delimiter","paste","searchEnabled","searchChoices","searchFloor","searchResultLimit","searchFields","resetScrollPosition","shouldSortItems","searchPlaceholderValue","prependValue","appendValue","renderSelectedChoices","loadingText","noResultsText","noChoicesText","itemSelectText","uniqueItemText","customAddItemText","addItemText","maxItemText","itemComparer","fuseOptions","callbackOnInit","callbackOnCreateTemplates","containerOuter","containerInner","inputCloned","listItems","listSingle","listDropdown","itemSelectable","itemDisabled","itemChoice","group","groupHeading","highlightedState","hiddenState","noResults","noChoices","B","V","H","G","q","W","U","z","X","Y","J","Z","Q","ee","te","ie","ne","se","re","oe","ae","le","ce","he","ue","de","scrollPos","scrollTop","height","hasChildren","scrollToTop","scrollToChoice","offsetTop","_animateScroll","_scrollDown","_scrollUp","pe","fe","conceal","tabIndex","reveal","triggerEvent","me","ve","__proto__","ge","_e","template","appendDocFragment","from","getElementsByTagName","createDocumentFragment","be","ye","Ee","itemList","choiceList","choiceGroup","choice","dropdown","notice","Se","Ie","we","Ce","_generateInstances","config","userDefaults","warn","_isTextElement","_isSelectOneElement","_isSelectMultipleElement","_isSelectElement","passedElement","templates","initialised","render","_initialState","_currentState","_prevState","_currentValue","_canSearch","_isScrollingOnIe","_highlightPosition","_wasTap","_generatePlaceholderValue","_baseId","_direction","_idNames","_presetChoices","_presetItems","_render","_onKeyUp","_onKeyDown","_onClick","_onTouchMove","_onTouchEnd","_onMouseDown","_onMouseOver","_onAKey","_onEnterKey","_onEscapeKey","_onDirectionKey","_onDeleteKey","init","_createTemplates","_createElements","_createStructure","_addEventListeners","destroy","_removeEventListeners","clearStore","highlightItem","groupValue","unhighlightItem","highlightAll","unhighlightAll","removeActiveItemsByValue","activeItems","_removeItem","removeActiveItems","removeHighlightedItems","highlightedActiveItems","_triggerChange","showDropdown","hideDropdown","getValue","setValue","_setChoiceOrItem","setChoiceByValue","_findAndSelectChoiceByValue","setChoices","clearChoices","_setLoading","_addGroup","valueKey","labelKey","_addChoice","isSelected","clearInput","_isSearching","_handleLoadingState","_ajaxCallback","_renderChoices","_renderItems","activeGroups","_createChoicesFragment","_createGroupsFragment","childNodes","_canAddItem","_highlightChoice","_getTemplate","_createItemsFragment","placeholderChoices","normalChoices","_selectPlaceholderChoice","placeholderChoice","_addItem","_handleButtonAction","_handleItemAction","_handleChoiceAction","_handleBackspace","_handleSearch","_searchChoices","resultCount","searchableChoices","fromCharCode","test","hasFocusedInput","hasActiveDropdown","hasItems","hasCtrlDownKeyPressed","outerHTML","pop","touches","shiftKey","navigator","userAgent","Date","valueOf","_addPredefinedChoices","_addPredefinedItems","optionGroups","placeholderOption","tagName","string","locale","nodes","anchor","Choices","root","factory","Toastify","lib","getAxisOffsetAValue","axis","offset","containsClass","elem","yourClass","className","defaults","oldestFirst","node","undefined","duration","destination","newWindow","gravity","positionLeft","backgroundColor","avatar","stopOnFocus","onClick","escapeMarkup","ariaLive","background","toastify","toastElement","buildToast","divElement","nodeType","Node","ELEMENT_NODE","innerText","avatarElement","src","insertAdjacentElement","closeElement","removeElement","timeOutValue","innerWidth","screen","xOffset","yOffset","transform","showToast","rootElement","getElementById","HTMLElement","ShadowRoot","elementToInsert","lastChild","reposition","hideToast","classUsed","topLeftOffsetSize","bottom","topRightOffsetSize","offsetSize","allToasts","getElementsByClassName","toggleDisabled","toggleAttribute","attributeName","present","toggleClass","isIncluded","toggleHidden","isHidden","toggleAriaExpanded","isExpanded","toggleRequired","isRequired","toggleSubmitting","toggle","dispatchChangeEvent","toggleActive","debounceTime","timer","toastError","updateField","inputElement","required","fieldElement","closest","setValues","dummyInput","timeValue","formattedTime","formatParseHours","help","field","hint","attributes","getNamedItem","number","setAttributes","meter","observer","MutationObserver","mutations","mutation","observe","meters","inputRequired","initShared","Timeout","clearFn","_id","_clearFn","scope","setInterval","clearInterval","unref","enroll","msecs","_idleTimeoutId","_idleTimeout","unenroll","_unrefActive","_onTimeout"],"mappings":";aACE,IAAIA,EAAmB,CAAC,EAGxB,SAASC,EAAoBC,GAG5B,GAAGF,EAAiBE,GACnB,OAAOF,EAAiBE,GAAUC,QAGnC,IAAIC,EAASJ,EAAiBE,GAAY,CACzCG,EAAGH,EACHI,GAAG,EACHH,QAAS,CAAC,GAUX,OANAI,EAAQL,GAAUM,KAAKJ,EAAOD,QAASC,EAAQA,EAAOD,QAASF,GAG/DG,EAAOE,GAAI,EAGJF,EAAOD,OACf,CAIAF,EAAoBQ,EAAIF,EAGxBN,EAAoBS,EAAIV,EAGxBC,EAAoBU,EAAI,SAASR,EAASS,EAAMC,GAC3CZ,EAAoBa,EAAEX,EAASS,IAClCG,OAAOC,eAAeb,EAASS,EAAM,CAAEK,YAAY,EAAMC,IAAKL,GAEhE,EAGAZ,EAAoBkB,EAAI,SAAShB,GACX,qBAAXiB,QAA0BA,OAAOC,aAC1CN,OAAOC,eAAeb,EAASiB,OAAOC,YAAa,CAAEC,MAAO,WAE7DP,OAAOC,eAAeb,EAAS,aAAc,CAAEmB,OAAO,GACvD,EAOArB,EAAoBsB,EAAI,SAASD,EAAOE,GAEvC,GADU,EAAPA,IAAUF,EAAQrB,EAAoBqB,IAC/B,EAAPE,EAAU,OAAOF,EACpB,GAAW,EAAPE,GAA8B,kBAAVF,GAAsBA,GAASA,EAAMG,WAAY,OAAOH,EAChF,IAAII,EAAKX,OAAOY,OAAO,MAGvB,GAFA1B,EAAoBkB,EAAEO,GACtBX,OAAOC,eAAeU,EAAI,UAAW,CAAET,YAAY,EAAMK,MAAOA,IACtD,EAAPE,GAA4B,iBAATF,EAAmB,IAAI,IAAIM,KAAON,EAAOrB,EAAoBU,EAAEe,EAAIE,EAAK,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5yB,WAAYe,aAC/D,EAEA1H,EAAQw5B,YAAc,WACpB,OAAO,IAAIL,EAAQryB,EAAMzG,KAAKm5B,YAAaD,EAAO5yB,WAAY8yB,cAChE,EAEAz5B,EAAQ0H,aAAe1H,EAAQy5B,cAAgB,SAAUvxB,GACnDA,GACFA,EAAQ8Y,OAEZ,EAOAmY,EAAQr3B,UAAU43B,MAAQP,EAAQr3B,UAAUwJ,IAAM,WAAa,EAE/D6tB,EAAQr3B,UAAUkf,MAAQ,WACxB/Z,KAAKqyB,SAASj5B,KAAKk5B,EAAOtyB,KAAKoyB,IACjC,EAGAr5B,EAAQ25B,OAAS,SAAUre,EAAMse,GAC/BlyB,aAAa4T,EAAKue,gBAClBve,EAAKwe,aAAeF,CACtB,EAEA55B,EAAQ+5B,SAAW,SAAUze,GAC3B5T,aAAa4T,EAAKue,gBAClBve,EAAKwe,cAAgB,CACvB,EAEA95B,EAAQg6B,aAAeh6B,EAAQ4d,OAAS,SAAUtC,GAChD5T,aAAa4T,EAAKue,gBAClB,IAAID,EAAQte,EAAKwe,aAEbF,GAAS,IACXte,EAAKue,eAAiBn1B,YAAW,WAC3B4W,EAAK2e,YAAY3e,EAAK2e,YAC5B,GAAGL,GAEP,EAGA,EAAQ,IAKR55B,EAAQ6D,aAA+B,qBAATmD,MAAwBA,KAAKnD,cAAkC,qBAAXD,GAA0BA,EAAOC,cAAgBoD,MAAQA,KAAKpD,aAChJ7D,EAAQ6G,eAAiC,qBAATG,MAAwBA,KAAKH,gBAAoC,qBAAXjD,GAA0BA,EAAOiD,gBAAkBI,MAAQA,KAAKJ,c","file":"js/application-bulma-d1430846a24ddcef984d.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/packs/\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 48);\n","const NUMBER_REGEX = /[+-]?([0-9]*[.])?[0-9]+/;\n\nconst toHoursMinutes = (seconds) => {\n  if (!seconds || seconds <= 0) {\n    return '-'\n  }\n\n  const tokens = []\n  const h = Math.floor(seconds / 3600.0)\n  const m = Math.round(((seconds / 3600.0) % 1.0) * 60.0)\n\n  if (h > 0) {\n    tokens.push(`${h}h`)\n  }\n  if (h === 0 || m > 0) {\n    tokens.push(`${m}m`)\n  }\n\n  return tokens.join(' ')\n}\n\nfunction formatHours(hours) {\n  const negative = hours < 0;\n\n  const minutes = Math.round((hours % 1) * 60);\n  const integerHours = Math.floor(hours)\n\n  const clauses = [];\n\n  if (negative) {\n    clauses.push('-')\n  }\n\n  if (hours != 0) {\n    clauses.push(`${integerHours}h`)\n  }\n\n  if (minutes != 0) {\n    clauses.push(`${String(minutes).padStart('0', 2)}m`)\n  }\n\n  if (clauses.length === 0) {\n    clauses.push('0h')\n  }\n\n  return clauses.join(' ')\n}\n\nfunction parseHours(timeString) {\n  let hours, minutes;\n\n  if (timeString.includes('h')) {\n    [hours, minutes] = timeString.split('h');\n  } else if (timeString.includes('m')) {\n    minutes = timeString;\n  } else {\n    hours = timeString;\n  }\n\n  hours = Number(hours?.match(NUMBER_REGEX)?.[0]);\n  minutes = Number(minutes?.match(NUMBER_REGEX)?.[0]);\n  if (Number.isNaN(hours)) {\n    hours = 0;\n  }\n\n  if (Number.isNaN(minutes)) {\n    minutes = 0;\n  }\n\n  if (hours < 0 || minutes < 0) {\n    hours = 0;\n    minutes = 0;\n  }\n\n  const totalMinutes = Math.round(hours * 60 + minutes);\n\n  hours = totalMinutes / 60;\n\n  return hours\n}\n\nexport {\n  toHoursMinutes,\n  formatHours,\n  parseHours,\n}\n","(function (global, undefined) {\n  \"use strict\";\n\n  if (global.setImmediate) {\n    return;\n  }\n\n  var nextHandle = 1; // Spec says greater than zero\n\n  var tasksByHandle = {};\n  var currentlyRunningATask = false;\n  var doc = global.document;\n  var registerImmediate;\n\n  function setImmediate(callback) {\n    // Callback can either be a function or a string\n    if (typeof callback !== \"function\") {\n      callback = new Function(\"\" + callback);\n    } // Copy function arguments\n\n\n    var args = new Array(arguments.length - 1);\n\n    for (var i = 0; i < args.length; i++) {\n      args[i] = arguments[i + 1];\n    } // Store and register the task\n\n\n    var task = {\n      callback: callback,\n      args: args\n    };\n    tasksByHandle[nextHandle] = task;\n    registerImmediate(nextHandle);\n    return nextHandle++;\n  }\n\n  function clearImmediate(handle) {\n    delete tasksByHandle[handle];\n  }\n\n  function run(task) {\n    var callback = task.callback;\n    var args = task.args;\n\n    switch (args.length) {\n      case 0:\n        callback();\n        break;\n\n      case 1:\n        callback(args[0]);\n        break;\n\n      case 2:\n        callback(args[0], args[1]);\n        break;\n\n      case 3:\n        callback(args[0], args[1], args[2]);\n        break;\n\n      default:\n        callback.apply(undefined, args);\n        break;\n    }\n  }\n\n  function runIfPresent(handle) {\n    // From the spec: \"Wait until any invocations of this algorithm started before this one have completed.\"\n    // So if we're currently running a task, we'll need to delay this invocation.\n    if (currentlyRunningATask) {\n      // Delay by doing a setTimeout. setImmediate was tried instead, but in Firefox 7 it generated a\n      // \"too much recursion\" error.\n      setTimeout(runIfPresent, 0, handle);\n    } else {\n      var task = tasksByHandle[handle];\n\n      if (task) {\n        currentlyRunningATask = true;\n\n        try {\n          run(task);\n        } finally {\n          clearImmediate(handle);\n          currentlyRunningATask = false;\n        }\n      }\n    }\n  }\n\n  function installNextTickImplementation() {\n    registerImmediate = function (handle) {\n      process.nextTick(function () {\n        runIfPresent(handle);\n      });\n    };\n  }\n\n  function canUsePostMessage() {\n    // The test against `importScripts` prevents this implementation from being installed inside a web worker,\n    // where `global.postMessage` means something completely different and can't be used for this purpose.\n    if (global.postMessage && !global.importScripts) {\n      var postMessageIsAsynchronous = true;\n      var oldOnMessage = global.onmessage;\n\n      global.onmessage = function () {\n        postMessageIsAsynchronous = false;\n      };\n\n      global.postMessage(\"\", \"*\");\n      global.onmessage = oldOnMessage;\n      return postMessageIsAsynchronous;\n    }\n  }\n\n  function installPostMessageImplementation() {\n    // Installs an event handler on `global` for the `message` event: see\n    // * https://developer.mozilla.org/en/DOM/window.postMessage\n    // * http://www.whatwg.org/specs/web-apps/current-work/multipage/comms.html#crossDocumentMessages\n    var messagePrefix = \"setImmediate$\" + Math.random() + \"$\";\n\n    var onGlobalMessage = function (event) {\n      if (event.source === global && typeof event.data === \"string\" && event.data.indexOf(messagePrefix) === 0) {\n        runIfPresent(+event.data.slice(messagePrefix.length));\n      }\n    };\n\n    if (global.addEventListener) {\n      global.addEventListener(\"message\", onGlobalMessage, false);\n    } else {\n      global.attachEvent(\"onmessage\", onGlobalMessage);\n    }\n\n    registerImmediate = function (handle) {\n      global.postMessage(messagePrefix + handle, \"*\");\n    };\n  }\n\n  function installMessageChannelImplementation() {\n    var channel = new MessageChannel();\n\n    channel.port1.onmessage = function (event) {\n      var handle = event.data;\n      runIfPresent(handle);\n    };\n\n    registerImmediate = function (handle) {\n      channel.port2.postMessage(handle);\n    };\n  }\n\n  function installReadyStateChangeImplementation() {\n    var html = doc.documentElement;\n\n    registerImmediate = function (handle) {\n      // Create a <script> element; its readystatechange event will be fired asynchronously once it is inserted\n      // into the document. Do so, thus queuing up the task. Remember to clean up once it's been called.\n      var script = doc.createElement(\"script\");\n\n      script.onreadystatechange = function () {\n        runIfPresent(handle);\n        script.onreadystatechange = null;\n        html.removeChild(script);\n        script = null;\n      };\n\n      html.appendChild(script);\n    };\n  }\n\n  function installSetTimeoutImplementation() {\n    registerImmediate = function (handle) {\n      setTimeout(runIfPresent, 0, handle);\n    };\n  } // If supported, we should attach to the prototype of global, since that is where setTimeout et al. live.\n\n\n  var attachTo = Object.getPrototypeOf && Object.getPrototypeOf(global);\n  attachTo = attachTo && attachTo.setTimeout ? attachTo : global; // Don't get fooled by e.g. browserify environments.\n\n  if ({}.toString.call(global.process) === \"[object process]\") {\n    // For Node.js before 0.9\n    installNextTickImplementation();\n  } else if (canUsePostMessage()) {\n    // For non-IE10 modern browsers\n    installPostMessageImplementation();\n  } else if (global.MessageChannel) {\n    // For web workers, where supported\n    installMessageChannelImplementation();\n  } else if (doc && \"onreadystatechange\" in doc.createElement(\"script\")) {\n    // For IE 6–8\n    installReadyStateChangeImplementation();\n  } else {\n    // For older browsers\n    installSetTimeoutImplementation();\n  }\n\n  attachTo.setImmediate = setImmediate;\n  attachTo.clearImmediate = clearImmediate;\n})(typeof self === \"undefined\" ? typeof global === \"undefined\" ? this : global : self);","// shim for using process in browser\nvar process = module.exports = {}; // cached from whatever global is present so that test runners that stub it\n// don't break things.  But we need to wrap it in a try catch in case it is\n// wrapped in strict mode code which doesn't define any globals.  It's inside a\n// function because try/catches deoptimize in certain engines.\n\nvar cachedSetTimeout;\nvar cachedClearTimeout;\n\nfunction defaultSetTimout() {\n  throw new Error('setTimeout has not been defined');\n}\n\nfunction defaultClearTimeout() {\n  throw new Error('clearTimeout has not been defined');\n}\n\n(function () {\n  try {\n    if (typeof setTimeout === 'function') {\n      cachedSetTimeout = setTimeout;\n    } else {\n      cachedSetTimeout = defaultSetTimout;\n    }\n  } catch (e) {\n    cachedSetTimeout = defaultSetTimout;\n  }\n\n  try {\n    if (typeof clearTimeout === 'function') {\n      cachedClearTimeout = clearTimeout;\n    } else {\n      cachedClearTimeout = defaultClearTimeout;\n    }\n  } catch (e) {\n    cachedClearTimeout = defaultClearTimeout;\n  }\n})();\n\nfunction runTimeout(fun) {\n  if (cachedSetTimeout === setTimeout) {\n    //normal enviroments in sane situations\n    return setTimeout(fun, 0);\n  } // if setTimeout wasn't available but was latter defined\n\n\n  if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {\n    cachedSetTimeout = setTimeout;\n    return setTimeout(fun, 0);\n  }\n\n  try {\n    // when when somebody has screwed with setTimeout but no I.E. maddness\n    return cachedSetTimeout(fun, 0);\n  } catch (e) {\n    try {\n      // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n      return cachedSetTimeout.call(null, fun, 0);\n    } catch (e) {\n      // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error\n      return cachedSetTimeout.call(this, fun, 0);\n    }\n  }\n}\n\nfunction runClearTimeout(marker) {\n  if (cachedClearTimeout === clearTimeout) {\n    //normal enviroments in sane situations\n    return clearTimeout(marker);\n  } // if clearTimeout wasn't available but was latter defined\n\n\n  if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {\n    cachedClearTimeout = clearTimeout;\n    return clearTimeout(marker);\n  }\n\n  try {\n    // when when somebody has screwed with setTimeout but no I.E. maddness\n    return cachedClearTimeout(marker);\n  } catch (e) {\n    try {\n      // When we are in I.E. but the script has been evaled so I.E. doesn't  trust the global object when called normally\n      return cachedClearTimeout.call(null, marker);\n    } catch (e) {\n      // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.\n      // Some versions of I.E. have different rules for clearTimeout vs setTimeout\n      return cachedClearTimeout.call(this, marker);\n    }\n  }\n}\n\nvar queue = [];\nvar draining = false;\nvar currentQueue;\nvar queueIndex = -1;\n\nfunction cleanUpNextTick() {\n  if (!draining || !currentQueue) {\n    return;\n  }\n\n  draining = false;\n\n  if (currentQueue.length) {\n    queue = currentQueue.concat(queue);\n  } else {\n    queueIndex = -1;\n  }\n\n  if (queue.length) {\n    drainQueue();\n  }\n}\n\nfunction drainQueue() {\n  if (draining) {\n    return;\n  }\n\n  var timeout = runTimeout(cleanUpNextTick);\n  draining = true;\n  var len = queue.length;\n\n  while (len) {\n    currentQueue = queue;\n    queue = [];\n\n    while (++queueIndex < len) {\n      if (currentQueue) {\n        currentQueue[queueIndex].run();\n      }\n    }\n\n    queueIndex = -1;\n    len = queue.length;\n  }\n\n  currentQueue = null;\n  draining = false;\n  runClearTimeout(timeout);\n}\n\nprocess.nextTick = function (fun) {\n  var args = new Array(arguments.length - 1);\n\n  if (arguments.length > 1) {\n    for (var i = 1; i < arguments.length; i++) {\n      args[i - 1] = arguments[i];\n    }\n  }\n\n  queue.push(new Item(fun, args));\n\n  if (queue.length === 1 && !draining) {\n    runTimeout(drainQueue);\n  }\n}; // v8 likes predictible objects\n\n\nfunction Item(fun, array) {\n  this.fun = fun;\n  this.array = array;\n}\n\nItem.prototype.run = function () {\n  this.fun.apply(null, this.array);\n};\n\nprocess.title = 'browser';\nprocess.browser = true;\nprocess.env = {};\nprocess.argv = [];\nprocess.version = ''; // empty string to avoid regexp issues\n\nprocess.versions = {};\n\nfunction noop() {}\n\nprocess.on = noop;\nprocess.addListener = noop;\nprocess.once = noop;\nprocess.off = noop;\nprocess.removeListener = noop;\nprocess.removeAllListeners = noop;\nprocess.emit = noop;\nprocess.prependListener = noop;\nprocess.prependOnceListener = noop;\n\nprocess.listeners = function (name) {\n  return [];\n};\n\nprocess.binding = function (name) {\n  throw new Error('process.binding is not supported');\n};\n\nprocess.cwd = function () {\n  return '/';\n};\n\nprocess.chdir = function (dir) {\n  throw new Error('process.chdir is not supported');\n};\n\nprocess.umask = function () {\n  return 0;\n};","export default () => {\n  document.querySelectorAll('[data-select2-static=\"true\"]').forEach((select) => {\n    $(select).select2({\n      width: '100%',\n      placeholder: gon.t.prompt,\n    });\n  });\n};\n","/*\nUnobtrusive JavaScript\nhttps://github.com/rails/rails/blob/main/actionview/app/assets/javascripts\nReleased under the MIT license\n */\n;\n(function () {\n  var context = this;\n  (function () {\n    (function () {\n      this.Rails = {\n        linkClickSelector: 'a[data-confirm], a[data-method], a[data-remote]:not([disabled]), a[data-disable-with], a[data-disable]',\n        buttonClickSelector: {\n          selector: 'button[data-remote]:not([form]), button[data-confirm]:not([form])',\n          exclude: 'form button'\n        },\n        inputChangeSelector: 'select[data-remote], input[data-remote], textarea[data-remote]',\n        formSubmitSelector: 'form:not([data-turbo=true])',\n        formInputClickSelector: 'form:not([data-turbo=true]) input[type=submit], form:not([data-turbo=true]) input[type=image], form:not([data-turbo=true]) button[type=submit], form:not([data-turbo=true]) button:not([type]), input[type=submit][form], input[type=image][form], button[type=submit][form], button[form]:not([type])',\n        formDisableSelector: 'input[data-disable-with]:enabled, button[data-disable-with]:enabled, textarea[data-disable-with]:enabled, input[data-disable]:enabled, button[data-disable]:enabled, textarea[data-disable]:enabled',\n        formEnableSelector: 'input[data-disable-with]:disabled, button[data-disable-with]:disabled, textarea[data-disable-with]:disabled, input[data-disable]:disabled, button[data-disable]:disabled, textarea[data-disable]:disabled',\n        fileInputSelector: 'input[name][type=file]:not([disabled])',\n        linkDisableSelector: 'a[data-disable-with], a[data-disable]',\n        buttonDisableSelector: 'button[data-remote][data-disable-with], button[data-remote][data-disable]'\n      };\n    }).call(this);\n  }).call(context);\n  var Rails = context.Rails;\n  (function () {\n    (function () {\n      var nonce;\n      nonce = null;\n\n      Rails.loadCSPNonce = function () {\n        var ref;\n        return nonce = (ref = document.querySelector(\"meta[name=csp-nonce]\")) != null ? ref.content : void 0;\n      };\n\n      Rails.cspNonce = function () {\n        return nonce != null ? nonce : Rails.loadCSPNonce();\n      };\n    }).call(this);\n    (function () {\n      var expando, m;\n      m = Element.prototype.matches || Element.prototype.matchesSelector || Element.prototype.mozMatchesSelector || Element.prototype.msMatchesSelector || Element.prototype.oMatchesSelector || Element.prototype.webkitMatchesSelector;\n\n      Rails.matches = function (element, selector) {\n        if (selector.exclude != null) {\n          return m.call(element, selector.selector) && !m.call(element, selector.exclude);\n        } else {\n          return m.call(element, selector);\n        }\n      };\n\n      expando = '_ujsData';\n\n      Rails.getData = function (element, key) {\n        var ref;\n        return (ref = element[expando]) != null ? ref[key] : void 0;\n      };\n\n      Rails.setData = function (element, key, value) {\n        if (element[expando] == null) {\n          element[expando] = {};\n        }\n\n        return element[expando][key] = value;\n      };\n\n      Rails.$ = function (selector) {\n        return Array.prototype.slice.call(document.querySelectorAll(selector));\n      };\n    }).call(this);\n    (function () {\n      var $, csrfParam, csrfToken;\n      $ = Rails.$;\n\n      csrfToken = Rails.csrfToken = function () {\n        var meta;\n        meta = document.querySelector('meta[name=csrf-token]');\n        return meta && meta.content;\n      };\n\n      csrfParam = Rails.csrfParam = function () {\n        var meta;\n        meta = document.querySelector('meta[name=csrf-param]');\n        return meta && meta.content;\n      };\n\n      Rails.CSRFProtection = function (xhr) {\n        var token;\n        token = csrfToken();\n\n        if (token != null) {\n          return xhr.setRequestHeader('X-CSRF-Token', token);\n        }\n      };\n\n      Rails.refreshCSRFTokens = function () {\n        var param, token;\n        token = csrfToken();\n        param = csrfParam();\n\n        if (token != null && param != null) {\n          return $('form input[name=\"' + param + '\"]').forEach(function (input) {\n            return input.value = token;\n          });\n        }\n      };\n    }).call(this);\n    (function () {\n      var CustomEvent, fire, matches, preventDefault;\n      matches = Rails.matches;\n      CustomEvent = window.CustomEvent;\n\n      if (typeof CustomEvent !== 'function') {\n        CustomEvent = function (event, params) {\n          var evt;\n          evt = document.createEvent('CustomEvent');\n          evt.initCustomEvent(event, params.bubbles, params.cancelable, params.detail);\n          return evt;\n        };\n\n        CustomEvent.prototype = window.Event.prototype;\n        preventDefault = CustomEvent.prototype.preventDefault;\n\n        CustomEvent.prototype.preventDefault = function () {\n          var result;\n          result = preventDefault.call(this);\n\n          if (this.cancelable && !this.defaultPrevented) {\n            Object.defineProperty(this, 'defaultPrevented', {\n              get: function () {\n                return true;\n              }\n            });\n          }\n\n          return result;\n        };\n      }\n\n      fire = Rails.fire = function (obj, name, data) {\n        var event;\n        event = new CustomEvent(name, {\n          bubbles: true,\n          cancelable: true,\n          detail: data\n        });\n        obj.dispatchEvent(event);\n        return !event.defaultPrevented;\n      };\n\n      Rails.stopEverything = function (e) {\n        fire(e.target, 'ujs:everythingStopped');\n        e.preventDefault();\n        e.stopPropagation();\n        return e.stopImmediatePropagation();\n      };\n\n      Rails.delegate = function (element, selector, eventType, handler) {\n        return element.addEventListener(eventType, function (e) {\n          var target;\n          target = e.target;\n\n          while (!(!(target instanceof Element) || matches(target, selector))) {\n            target = target.parentNode;\n          }\n\n          if (target instanceof Element && handler.call(target, e) === false) {\n            e.preventDefault();\n            return e.stopPropagation();\n          }\n        });\n      };\n    }).call(this);\n    (function () {\n      var AcceptHeaders, CSRFProtection, createXHR, cspNonce, fire, prepareOptions, processResponse;\n      cspNonce = Rails.cspNonce, CSRFProtection = Rails.CSRFProtection, fire = Rails.fire;\n      AcceptHeaders = {\n        '*': '*/*',\n        text: 'text/plain',\n        html: 'text/html',\n        xml: 'application/xml, text/xml',\n        json: 'application/json, text/javascript',\n        script: 'text/javascript, application/javascript, application/ecmascript, application/x-ecmascript'\n      };\n\n      Rails.ajax = function (options) {\n        var xhr;\n        options = prepareOptions(options);\n        xhr = createXHR(options, function () {\n          var ref, response;\n          response = processResponse((ref = xhr.response) != null ? ref : xhr.responseText, xhr.getResponseHeader('Content-Type'));\n\n          if (Math.floor(xhr.status / 100) === 2) {\n            if (typeof options.success === \"function\") {\n              options.success(response, xhr.statusText, xhr);\n            }\n          } else {\n            if (typeof options.error === \"function\") {\n              options.error(response, xhr.statusText, xhr);\n            }\n          }\n\n          return typeof options.complete === \"function\" ? options.complete(xhr, xhr.statusText) : void 0;\n        });\n\n        if (options.beforeSend != null && !options.beforeSend(xhr, options)) {\n          return false;\n        }\n\n        if (xhr.readyState === XMLHttpRequest.OPENED) {\n          return xhr.send(options.data);\n        }\n      };\n\n      prepareOptions = function (options) {\n        options.url = options.url || location.href;\n        options.type = options.type.toUpperCase();\n\n        if (options.type === 'GET' && options.data) {\n          if (options.url.indexOf('?') < 0) {\n            options.url += '?' + options.data;\n          } else {\n            options.url += '&' + options.data;\n          }\n        }\n\n        if (AcceptHeaders[options.dataType] == null) {\n          options.dataType = '*';\n        }\n\n        options.accept = AcceptHeaders[options.dataType];\n\n        if (options.dataType !== '*') {\n          options.accept += ', */*; q=0.01';\n        }\n\n        return options;\n      };\n\n      createXHR = function (options, done) {\n        var xhr;\n        xhr = new XMLHttpRequest();\n        xhr.open(options.type, options.url, true);\n        xhr.setRequestHeader('Accept', options.accept);\n\n        if (typeof options.data === 'string') {\n          xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8');\n        }\n\n        if (!options.crossDomain) {\n          xhr.setRequestHeader('X-Requested-With', 'XMLHttpRequest');\n          CSRFProtection(xhr);\n        }\n\n        xhr.withCredentials = !!options.withCredentials;\n\n        xhr.onreadystatechange = function () {\n          if (xhr.readyState === XMLHttpRequest.DONE) {\n            return done(xhr);\n          }\n        };\n\n        return xhr;\n      };\n\n      processResponse = function (response, type) {\n        var parser, script;\n\n        if (typeof response === 'string' && typeof type === 'string') {\n          if (type.match(/\\bjson\\b/)) {\n            try {\n              response = JSON.parse(response);\n            } catch (error) {}\n          } else if (type.match(/\\b(?:java|ecma)script\\b/)) {\n            script = document.createElement('script');\n            script.setAttribute('nonce', cspNonce());\n            script.text = response;\n            document.head.appendChild(script).parentNode.removeChild(script);\n          } else if (type.match(/\\b(xml|html|svg)\\b/)) {\n            parser = new DOMParser();\n            type = type.replace(/;.+/, '');\n\n            try {\n              response = parser.parseFromString(response, type);\n            } catch (error) {}\n          }\n        }\n\n        return response;\n      };\n\n      Rails.href = function (element) {\n        return element.href;\n      };\n\n      Rails.isCrossDomain = function (url) {\n        var e, originAnchor, urlAnchor;\n        originAnchor = document.createElement('a');\n        originAnchor.href = location.href;\n        urlAnchor = document.createElement('a');\n\n        try {\n          urlAnchor.href = url;\n          return !((!urlAnchor.protocol || urlAnchor.protocol === ':') && !urlAnchor.host || originAnchor.protocol + '//' + originAnchor.host === urlAnchor.protocol + '//' + urlAnchor.host);\n        } catch (error) {\n          e = error;\n          return true;\n        }\n      };\n    }).call(this);\n    (function () {\n      var matches, toArray;\n      matches = Rails.matches;\n\n      toArray = function (e) {\n        return Array.prototype.slice.call(e);\n      };\n\n      Rails.serializeElement = function (element, additionalParam) {\n        var inputs, params;\n        inputs = [element];\n\n        if (matches(element, 'form')) {\n          inputs = toArray(element.elements);\n        }\n\n        params = [];\n        inputs.forEach(function (input) {\n          if (!input.name || input.disabled) {\n            return;\n          }\n\n          if (matches(input, 'fieldset[disabled] *')) {\n            return;\n          }\n\n          if (matches(input, 'select')) {\n            return toArray(input.options).forEach(function (option) {\n              if (option.selected) {\n                return params.push({\n                  name: input.name,\n                  value: option.value\n                });\n              }\n            });\n          } else if (input.checked || ['radio', 'checkbox', 'submit'].indexOf(input.type) === -1) {\n            return params.push({\n              name: input.name,\n              value: input.value\n            });\n          }\n        });\n\n        if (additionalParam) {\n          params.push(additionalParam);\n        }\n\n        return params.map(function (param) {\n          if (param.name != null) {\n            return encodeURIComponent(param.name) + \"=\" + encodeURIComponent(param.value);\n          } else {\n            return param;\n          }\n        }).join('&');\n      };\n\n      Rails.formElements = function (form, selector) {\n        if (matches(form, 'form')) {\n          return toArray(form.elements).filter(function (el) {\n            return matches(el, selector);\n          });\n        } else {\n          return toArray(form.querySelectorAll(selector));\n        }\n      };\n    }).call(this);\n    (function () {\n      var allowAction, fire, stopEverything;\n      fire = Rails.fire, stopEverything = Rails.stopEverything;\n\n      Rails.handleConfirm = function (e) {\n        if (!allowAction(this)) {\n          return stopEverything(e);\n        }\n      };\n\n      Rails.confirm = function (message, element) {\n        return confirm(message);\n      };\n\n      allowAction = function (element) {\n        var answer, callback, message;\n        message = element.getAttribute('data-confirm');\n\n        if (!message) {\n          return true;\n        }\n\n        answer = false;\n\n        if (fire(element, 'confirm')) {\n          try {\n            answer = Rails.confirm(message, element);\n          } catch (error) {}\n\n          callback = fire(element, 'confirm:complete', [answer]);\n        }\n\n        return answer && callback;\n      };\n    }).call(this);\n    (function () {\n      var disableFormElement, disableFormElements, disableLinkElement, enableFormElement, enableFormElements, enableLinkElement, formElements, getData, isXhrRedirect, matches, setData, stopEverything;\n      matches = Rails.matches, getData = Rails.getData, setData = Rails.setData, stopEverything = Rails.stopEverything, formElements = Rails.formElements;\n\n      Rails.handleDisabledElement = function (e) {\n        var element;\n        element = this;\n\n        if (element.disabled) {\n          return stopEverything(e);\n        }\n      };\n\n      Rails.enableElement = function (e) {\n        var element;\n\n        if (e instanceof Event) {\n          if (isXhrRedirect(e)) {\n            return;\n          }\n\n          element = e.target;\n        } else {\n          element = e;\n        }\n\n        if (matches(element, Rails.linkDisableSelector)) {\n          return enableLinkElement(element);\n        } else if (matches(element, Rails.buttonDisableSelector) || matches(element, Rails.formEnableSelector)) {\n          return enableFormElement(element);\n        } else if (matches(element, Rails.formSubmitSelector)) {\n          return enableFormElements(element);\n        }\n      };\n\n      Rails.disableElement = function (e) {\n        var element;\n        element = e instanceof Event ? e.target : e;\n\n        if (matches(element, Rails.linkDisableSelector)) {\n          return disableLinkElement(element);\n        } else if (matches(element, Rails.buttonDisableSelector) || matches(element, Rails.formDisableSelector)) {\n          return disableFormElement(element);\n        } else if (matches(element, Rails.formSubmitSelector)) {\n          return disableFormElements(element);\n        }\n      };\n\n      disableLinkElement = function (element) {\n        var replacement;\n\n        if (getData(element, 'ujs:disabled')) {\n          return;\n        }\n\n        replacement = element.getAttribute('data-disable-with');\n\n        if (replacement != null) {\n          setData(element, 'ujs:enable-with', element.innerHTML);\n          element.innerHTML = replacement;\n        }\n\n        element.addEventListener('click', stopEverything);\n        return setData(element, 'ujs:disabled', true);\n      };\n\n      enableLinkElement = function (element) {\n        var originalText;\n        originalText = getData(element, 'ujs:enable-with');\n\n        if (originalText != null) {\n          element.innerHTML = originalText;\n          setData(element, 'ujs:enable-with', null);\n        }\n\n        element.removeEventListener('click', stopEverything);\n        return setData(element, 'ujs:disabled', null);\n      };\n\n      disableFormElements = function (form) {\n        return formElements(form, Rails.formDisableSelector).forEach(disableFormElement);\n      };\n\n      disableFormElement = function (element) {\n        var replacement;\n\n        if (getData(element, 'ujs:disabled')) {\n          return;\n        }\n\n        replacement = element.getAttribute('data-disable-with');\n\n        if (replacement != null) {\n          if (matches(element, 'button')) {\n            setData(element, 'ujs:enable-with', element.innerHTML);\n            element.innerHTML = replacement;\n          } else {\n            setData(element, 'ujs:enable-with', element.value);\n            element.value = replacement;\n          }\n        }\n\n        element.disabled = true;\n        return setData(element, 'ujs:disabled', true);\n      };\n\n      enableFormElements = function (form) {\n        return formElements(form, Rails.formEnableSelector).forEach(enableFormElement);\n      };\n\n      enableFormElement = function (element) {\n        var originalText;\n        originalText = getData(element, 'ujs:enable-with');\n\n        if (originalText != null) {\n          if (matches(element, 'button')) {\n            element.innerHTML = originalText;\n          } else {\n            element.value = originalText;\n          }\n\n          setData(element, 'ujs:enable-with', null);\n        }\n\n        element.disabled = false;\n        return setData(element, 'ujs:disabled', null);\n      };\n\n      isXhrRedirect = function (event) {\n        var ref, xhr;\n        xhr = (ref = event.detail) != null ? ref[0] : void 0;\n        return (xhr != null ? xhr.getResponseHeader(\"X-Xhr-Redirect\") : void 0) != null;\n      };\n    }).call(this);\n    (function () {\n      var stopEverything;\n      stopEverything = Rails.stopEverything;\n\n      Rails.handleMethod = function (e) {\n        var csrfParam, csrfToken, form, formContent, href, link, method;\n        link = this;\n        method = link.getAttribute('data-method');\n\n        if (!method) {\n          return;\n        }\n\n        href = Rails.href(link);\n        csrfToken = Rails.csrfToken();\n        csrfParam = Rails.csrfParam();\n        form = document.createElement('form');\n        formContent = \"<input name='_method' value='\" + method + \"' type='hidden' />\";\n\n        if (csrfParam != null && csrfToken != null && !Rails.isCrossDomain(href)) {\n          formContent += \"<input name='\" + csrfParam + \"' value='\" + csrfToken + \"' type='hidden' />\";\n        }\n\n        formContent += '<input type=\"submit\" />';\n        form.method = 'post';\n        form.action = href;\n        form.target = link.target;\n        form.innerHTML = formContent;\n        form.style.display = 'none';\n        document.body.appendChild(form);\n        form.querySelector('[type=\"submit\"]').click();\n        return stopEverything(e);\n      };\n    }).call(this);\n    (function () {\n      var ajax,\n          fire,\n          getData,\n          isCrossDomain,\n          isRemote,\n          matches,\n          serializeElement,\n          setData,\n          stopEverything,\n          slice = [].slice;\n      matches = Rails.matches, getData = Rails.getData, setData = Rails.setData, fire = Rails.fire, stopEverything = Rails.stopEverything, ajax = Rails.ajax, isCrossDomain = Rails.isCrossDomain, serializeElement = Rails.serializeElement;\n\n      isRemote = function (element) {\n        var value;\n        value = element.getAttribute('data-remote');\n        return value != null && value !== 'false';\n      };\n\n      Rails.handleRemote = function (e) {\n        var button, data, dataType, element, method, url, withCredentials;\n        element = this;\n\n        if (!isRemote(element)) {\n          return true;\n        }\n\n        if (!fire(element, 'ajax:before')) {\n          fire(element, 'ajax:stopped');\n          return false;\n        }\n\n        withCredentials = element.getAttribute('data-with-credentials');\n        dataType = element.getAttribute('data-type') || 'script';\n\n        if (matches(element, Rails.formSubmitSelector)) {\n          button = getData(element, 'ujs:submit-button');\n          method = getData(element, 'ujs:submit-button-formmethod') || element.method;\n          url = getData(element, 'ujs:submit-button-formaction') || element.getAttribute('action') || location.href;\n\n          if (method.toUpperCase() === 'GET') {\n            url = url.replace(/\\?.*$/, '');\n          }\n\n          if (element.enctype === 'multipart/form-data') {\n            data = new FormData(element);\n\n            if (button != null) {\n              data.append(button.name, button.value);\n            }\n          } else {\n            data = serializeElement(element, button);\n          }\n\n          setData(element, 'ujs:submit-button', null);\n          setData(element, 'ujs:submit-button-formmethod', null);\n          setData(element, 'ujs:submit-button-formaction', null);\n        } else if (matches(element, Rails.buttonClickSelector) || matches(element, Rails.inputChangeSelector)) {\n          method = element.getAttribute('data-method');\n          url = element.getAttribute('data-url');\n          data = serializeElement(element, element.getAttribute('data-params'));\n        } else {\n          method = element.getAttribute('data-method');\n          url = Rails.href(element);\n          data = element.getAttribute('data-params');\n        }\n\n        ajax({\n          type: method || 'GET',\n          url: url,\n          data: data,\n          dataType: dataType,\n          beforeSend: function (xhr, options) {\n            if (fire(element, 'ajax:beforeSend', [xhr, options])) {\n              return fire(element, 'ajax:send', [xhr]);\n            } else {\n              fire(element, 'ajax:stopped');\n              return false;\n            }\n          },\n          success: function () {\n            var args;\n            args = 1 <= arguments.length ? slice.call(arguments, 0) : [];\n            return fire(element, 'ajax:success', args);\n          },\n          error: function () {\n            var args;\n            args = 1 <= arguments.length ? slice.call(arguments, 0) : [];\n            return fire(element, 'ajax:error', args);\n          },\n          complete: function () {\n            var args;\n            args = 1 <= arguments.length ? slice.call(arguments, 0) : [];\n            return fire(element, 'ajax:complete', args);\n          },\n          crossDomain: isCrossDomain(url),\n          withCredentials: withCredentials != null && withCredentials !== 'false'\n        });\n        return stopEverything(e);\n      };\n\n      Rails.formSubmitButtonClick = function (e) {\n        var button, form;\n        button = this;\n        form = button.form;\n\n        if (!form) {\n          return;\n        }\n\n        if (button.name) {\n          setData(form, 'ujs:submit-button', {\n            name: button.name,\n            value: button.value\n          });\n        }\n\n        setData(form, 'ujs:formnovalidate-button', button.formNoValidate);\n        setData(form, 'ujs:submit-button-formaction', button.getAttribute('formaction'));\n        return setData(form, 'ujs:submit-button-formmethod', button.getAttribute('formmethod'));\n      };\n\n      Rails.preventInsignificantClick = function (e) {\n        var data, insignificantMetaClick, link, metaClick, method, nonPrimaryMouseClick;\n        link = this;\n        method = (link.getAttribute('data-method') || 'GET').toUpperCase();\n        data = link.getAttribute('data-params');\n        metaClick = e.metaKey || e.ctrlKey;\n        insignificantMetaClick = metaClick && method === 'GET' && !data;\n        nonPrimaryMouseClick = e.button != null && e.button !== 0;\n\n        if (nonPrimaryMouseClick || insignificantMetaClick) {\n          return e.stopImmediatePropagation();\n        }\n      };\n    }).call(this);\n    (function () {\n      var $, CSRFProtection, delegate, disableElement, enableElement, fire, formSubmitButtonClick, getData, handleConfirm, handleDisabledElement, handleMethod, handleRemote, loadCSPNonce, preventInsignificantClick, refreshCSRFTokens;\n      fire = Rails.fire, delegate = Rails.delegate, getData = Rails.getData, $ = Rails.$, refreshCSRFTokens = Rails.refreshCSRFTokens, CSRFProtection = Rails.CSRFProtection, loadCSPNonce = Rails.loadCSPNonce, enableElement = Rails.enableElement, disableElement = Rails.disableElement, handleDisabledElement = Rails.handleDisabledElement, handleConfirm = Rails.handleConfirm, preventInsignificantClick = Rails.preventInsignificantClick, handleRemote = Rails.handleRemote, formSubmitButtonClick = Rails.formSubmitButtonClick, handleMethod = Rails.handleMethod;\n\n      if (typeof jQuery !== \"undefined\" && jQuery !== null && jQuery.ajax != null) {\n        if (jQuery.rails) {\n          throw new Error('If you load both jquery_ujs and rails-ujs, use rails-ujs only.');\n        }\n\n        jQuery.rails = Rails;\n        jQuery.ajaxPrefilter(function (options, originalOptions, xhr) {\n          if (!options.crossDomain) {\n            return CSRFProtection(xhr);\n          }\n        });\n      }\n\n      Rails.start = function () {\n        if (window._rails_loaded) {\n          throw new Error('rails-ujs has already been loaded!');\n        }\n\n        window.addEventListener('pageshow', function () {\n          $(Rails.formEnableSelector).forEach(function (el) {\n            if (getData(el, 'ujs:disabled')) {\n              return enableElement(el);\n            }\n          });\n          return $(Rails.linkDisableSelector).forEach(function (el) {\n            if (getData(el, 'ujs:disabled')) {\n              return enableElement(el);\n            }\n          });\n        });\n        delegate(document, Rails.linkDisableSelector, 'ajax:complete', enableElement);\n        delegate(document, Rails.linkDisableSelector, 'ajax:stopped', enableElement);\n        delegate(document, Rails.buttonDisableSelector, 'ajax:complete', enableElement);\n        delegate(document, Rails.buttonDisableSelector, 'ajax:stopped', enableElement);\n        delegate(document, Rails.linkClickSelector, 'click', preventInsignificantClick);\n        delegate(document, Rails.linkClickSelector, 'click', handleDisabledElement);\n        delegate(document, Rails.linkClickSelector, 'click', handleConfirm);\n        delegate(document, Rails.linkClickSelector, 'click', disableElement);\n        delegate(document, Rails.linkClickSelector, 'click', handleRemote);\n        delegate(document, Rails.linkClickSelector, 'click', handleMethod);\n        delegate(document, Rails.buttonClickSelector, 'click', preventInsignificantClick);\n        delegate(document, Rails.buttonClickSelector, 'click', handleDisabledElement);\n        delegate(document, Rails.buttonClickSelector, 'click', handleConfirm);\n        delegate(document, Rails.buttonClickSelector, 'click', disableElement);\n        delegate(document, Rails.buttonClickSelector, 'click', handleRemote);\n        delegate(document, Rails.inputChangeSelector, 'change', handleDisabledElement);\n        delegate(document, Rails.inputChangeSelector, 'change', handleConfirm);\n        delegate(document, Rails.inputChangeSelector, 'change', handleRemote);\n        delegate(document, Rails.formSubmitSelector, 'submit', handleDisabledElement);\n        delegate(document, Rails.formSubmitSelector, 'submit', handleConfirm);\n        delegate(document, Rails.formSubmitSelector, 'submit', handleRemote);\n        delegate(document, Rails.formSubmitSelector, 'submit', function (e) {\n          return setTimeout(function () {\n            return disableElement(e);\n          }, 13);\n        });\n        delegate(document, Rails.formSubmitSelector, 'ajax:send', disableElement);\n        delegate(document, Rails.formSubmitSelector, 'ajax:complete', enableElement);\n        delegate(document, Rails.formInputClickSelector, 'click', preventInsignificantClick);\n        delegate(document, Rails.formInputClickSelector, 'click', handleDisabledElement);\n        delegate(document, Rails.formInputClickSelector, 'click', handleConfirm);\n        delegate(document, Rails.formInputClickSelector, 'click', formSubmitButtonClick);\n        document.addEventListener('DOMContentLoaded', refreshCSRFTokens);\n        document.addEventListener('DOMContentLoaded', loadCSPNonce);\n        return window._rails_loaded = true;\n      };\n\n      if (window.Rails === Rails && fire(document, 'rails:attachBindings')) {\n        Rails.start();\n      }\n    }).call(this);\n  }).call(this);\n\n  if (typeof module === \"object\" && module.exports) {\n    module.exports = Rails;\n  } else if (typeof define === \"function\" && define.amd) {\n    define(Rails);\n  }\n}).call(this);","/*! choices.js v7.1.5 | © 2019 Josh Johnson | https://github.com/jshjohnson/Choices#readme */\n!function (e, t) {\n  \"object\" == typeof exports && \"object\" == typeof module ? module.exports = t() : \"function\" == typeof define && define.amd ? define([], t) : \"object\" == typeof exports ? exports.Choices = t() : e.Choices = t();\n}(window, function () {\n  return function (e) {\n    var t = {};\n\n    function i(n) {\n      if (t[n]) return t[n].exports;\n      var s = t[n] = {\n        i: n,\n        l: !1,\n        exports: {}\n      };\n      return e[n].call(s.exports, s, s.exports, i), s.l = !0, s.exports;\n    }\n\n    return i.m = e, i.c = t, i.d = function (e, t, n) {\n      i.o(e, t) || Object.defineProperty(e, t, {\n        enumerable: !0,\n        get: n\n      });\n    }, i.r = function (e) {\n      \"undefined\" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(e, Symbol.toStringTag, {\n        value: \"Module\"\n      }), Object.defineProperty(e, \"__esModule\", {\n        value: !0\n      });\n    }, i.t = function (e, t) {\n      if (1 & t && (e = i(e)), 8 & t) return e;\n      if (4 & t && \"object\" == typeof e && e && e.__esModule) return e;\n      var n = Object.create(null);\n      if (i.r(n), Object.defineProperty(n, \"default\", {\n        enumerable: !0,\n        value: e\n      }), 2 & t && \"string\" != typeof e) for (var s in e) i.d(n, s, function (t) {\n        return e[t];\n      }.bind(null, s));\n      return n;\n    }, i.n = function (e) {\n      var t = e && e.__esModule ? function () {\n        return e.default;\n      } : function () {\n        return e;\n      };\n      return i.d(t, \"a\", t), t;\n    }, i.o = function (e, t) {\n      return Object.prototype.hasOwnProperty.call(e, t);\n    }, i.p = \"/public/assets/scripts/\", i(i.s = 5);\n  }([function (e, t, i) {\n    var n;\n    /*!\n      Copyright (c) 2017 Jed Watson.\n      Licensed under the MIT License (MIT), see\n      http://jedwatson.github.io/classnames\n    */\n\n    !function () {\n      \"use strict\";\n\n      var i = {}.hasOwnProperty;\n\n      function s() {\n        for (var e = [], t = 0; t < arguments.length; t++) {\n          var n = arguments[t];\n\n          if (n) {\n            var r = typeof n;\n            if (\"string\" === r || \"number\" === r) e.push(n);else if (Array.isArray(n) && n.length) {\n              var o = s.apply(null, n);\n              o && e.push(o);\n            } else if (\"object\" === r) for (var a in n) i.call(n, a) && n[a] && e.push(a);\n          }\n        }\n\n        return e.join(\" \");\n      }\n\n      e.exports ? (s.default = s, e.exports = s) : void 0 === (n = function () {\n        return s;\n      }.apply(t, [])) || (e.exports = n);\n    }();\n  }, function (e, t, i) {\n    \"use strict\";\n\n    var n = function (e) {\n      return function (e) {\n        return !!e && \"object\" == typeof e;\n      }(e) && !function (e) {\n        var t = Object.prototype.toString.call(e);\n        return \"[object RegExp]\" === t || \"[object Date]\" === t || function (e) {\n          return e.$$typeof === s;\n        }(e);\n      }(e);\n    };\n\n    var s = \"function\" == typeof Symbol && Symbol.for ? Symbol.for(\"react.element\") : 60103;\n\n    function r(e, t) {\n      return !1 !== t.clone && t.isMergeableObject(e) ? c((i = e, Array.isArray(i) ? [] : {}), e, t) : e;\n      var i;\n    }\n\n    function o(e, t, i) {\n      return e.concat(t).map(function (e) {\n        return r(e, i);\n      });\n    }\n\n    function a(e) {\n      return Object.keys(e).concat(function (e) {\n        return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function (t) {\n          return e.propertyIsEnumerable(t);\n        }) : [];\n      }(e));\n    }\n\n    function l(e, t, i) {\n      var n = {};\n      return i.isMergeableObject(e) && a(e).forEach(function (t) {\n        n[t] = r(e[t], i);\n      }), a(t).forEach(function (s) {\n        (function (e, t) {\n          try {\n            return t in e && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));\n          } catch (e) {\n            return !1;\n          }\n        })(e, s) || (i.isMergeableObject(t[s]) && e[s] ? n[s] = function (e, t) {\n          if (!t.customMerge) return c;\n          var i = t.customMerge(e);\n          return \"function\" == typeof i ? i : c;\n        }(s, i)(e[s], t[s], i) : n[s] = r(t[s], i));\n      }), n;\n    }\n\n    function c(e, t, i) {\n      (i = i || {}).arrayMerge = i.arrayMerge || o, i.isMergeableObject = i.isMergeableObject || n, i.cloneUnlessOtherwiseSpecified = r;\n      var s = Array.isArray(t);\n      return s === Array.isArray(e) ? s ? i.arrayMerge(e, t, i) : l(e, t, i) : r(t, i);\n    }\n\n    c.all = function (e, t) {\n      if (!Array.isArray(e)) throw new Error(\"first argument should be an array\");\n      return e.reduce(function (e, i) {\n        return c(e, i, t);\n      }, {});\n    };\n\n    var h = c;\n    e.exports = h;\n  }, function (e, t, i) {\n    \"use strict\";\n\n    (function (e, n) {\n      var s,\n          r = i(4);\n      s = \"undefined\" != typeof self ? self : \"undefined\" != typeof window ? window : void 0 !== e ? e : n;\n      var o = Object(r.a)(s);\n      t.a = o;\n    }).call(this, i(7), i(8)(e));\n  }, function (e, t, i) {\n    /*!\n     * Fuse.js v3.4.2 - Lightweight fuzzy-search (http://fusejs.io)\n     * \n     * Copyright (c) 2012-2017 Kirollos Risk (http://kiro.me)\n     * All Rights Reserved. Apache Software License 2.0\n     * \n     * http://www.apache.org/licenses/LICENSE-2.0\n     */\n    var n;\n    n = function () {\n      return function (e) {\n        var t = {};\n\n        function i(n) {\n          if (t[n]) return t[n].exports;\n          var s = t[n] = {\n            i: n,\n            l: !1,\n            exports: {}\n          };\n          return e[n].call(s.exports, s, s.exports, i), s.l = !0, s.exports;\n        }\n\n        return i.m = e, i.c = t, i.d = function (e, t, n) {\n          i.o(e, t) || Object.defineProperty(e, t, {\n            enumerable: !0,\n            get: n\n          });\n        }, i.r = function (e) {\n          \"undefined\" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(e, Symbol.toStringTag, {\n            value: \"Module\"\n          }), Object.defineProperty(e, \"__esModule\", {\n            value: !0\n          });\n        }, i.t = function (e, t) {\n          if (1 & t && (e = i(e)), 8 & t) return e;\n          if (4 & t && \"object\" == typeof e && e && e.__esModule) return e;\n          var n = Object.create(null);\n          if (i.r(n), Object.defineProperty(n, \"default\", {\n            enumerable: !0,\n            value: e\n          }), 2 & t && \"string\" != typeof e) for (var s in e) i.d(n, s, function (t) {\n            return e[t];\n          }.bind(null, s));\n          return n;\n        }, i.n = function (e) {\n          var t = e && e.__esModule ? function () {\n            return e.default;\n          } : function () {\n            return e;\n          };\n          return i.d(t, \"a\", t), t;\n        }, i.o = function (e, t) {\n          return Object.prototype.hasOwnProperty.call(e, t);\n        }, i.p = \"\", i(i.s = \"./src/index.js\");\n      }({\n        \"./src/bitap/bitap_matched_indices.js\":\n        /*!********************************************!*\\\n          !*** ./src/bitap/bitap_matched_indices.js ***!\n          \\********************************************/\n\n        /*! no static exports found */\n        function (e, t) {\n          e.exports = function () {\n            for (var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : [], t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 1, i = [], n = -1, s = -1, r = 0, o = e.length; r < o; r += 1) {\n              var a = e[r];\n              a && -1 === n ? n = r : a || -1 === n || ((s = r - 1) - n + 1 >= t && i.push([n, s]), n = -1);\n            }\n\n            return e[r - 1] && r - n >= t && i.push([n, r - 1]), i;\n          };\n        },\n        \"./src/bitap/bitap_pattern_alphabet.js\":\n        /*!*********************************************!*\\\n          !*** ./src/bitap/bitap_pattern_alphabet.js ***!\n          \\*********************************************/\n\n        /*! no static exports found */\n        function (e, t) {\n          e.exports = function (e) {\n            for (var t = {}, i = e.length, n = 0; n < i; n += 1) t[e.charAt(n)] = 0;\n\n            for (var s = 0; s < i; s += 1) t[e.charAt(s)] |= 1 << i - s - 1;\n\n            return t;\n          };\n        },\n        \"./src/bitap/bitap_regex_search.js\":\n        /*!*****************************************!*\\\n          !*** ./src/bitap/bitap_regex_search.js ***!\n          \\*****************************************/\n\n        /*! no static exports found */\n        function (e, t) {\n          var i = /[\\-\\[\\]\\/\\{\\}\\(\\)\\*\\+\\?\\.\\\\\\^\\$\\|]/g;\n\n          e.exports = function (e, t) {\n            var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : / +/g,\n                s = new RegExp(t.replace(i, \"\\\\$&\").replace(n, \"|\")),\n                r = e.match(s),\n                o = !!r,\n                a = [];\n            if (o) for (var l = 0, c = r.length; l < c; l += 1) {\n              var h = r[l];\n              a.push([e.indexOf(h), h.length - 1]);\n            }\n            return {\n              score: o ? .5 : 1,\n              isMatch: o,\n              matchedIndices: a\n            };\n          };\n        },\n        \"./src/bitap/bitap_score.js\":\n        /*!**********************************!*\\\n          !*** ./src/bitap/bitap_score.js ***!\n          \\**********************************/\n\n        /*! no static exports found */\n        function (e, t) {\n          e.exports = function (e, t) {\n            var i = t.errors,\n                n = void 0 === i ? 0 : i,\n                s = t.currentLocation,\n                r = void 0 === s ? 0 : s,\n                o = t.expectedLocation,\n                a = void 0 === o ? 0 : o,\n                l = t.distance,\n                c = void 0 === l ? 100 : l,\n                h = n / e.length,\n                u = Math.abs(a - r);\n            return c ? h + u / c : u ? 1 : h;\n          };\n        },\n        \"./src/bitap/bitap_search.js\":\n        /*!***********************************!*\\\n          !*** ./src/bitap/bitap_search.js ***!\n          \\***********************************/\n\n        /*! no static exports found */\n        function (e, t, i) {\n          var n = i(\n          /*! ./bitap_score */\n          \"./src/bitap/bitap_score.js\"),\n              s = i(\n          /*! ./bitap_matched_indices */\n          \"./src/bitap/bitap_matched_indices.js\");\n\n          e.exports = function (e, t, i, r) {\n            for (var o = r.location, a = void 0 === o ? 0 : o, l = r.distance, c = void 0 === l ? 100 : l, h = r.threshold, u = void 0 === h ? .6 : h, d = r.findAllMatches, p = void 0 !== d && d, f = r.minMatchCharLength, m = void 0 === f ? 1 : f, v = a, g = e.length, _ = u, b = e.indexOf(t, v), y = t.length, E = [], S = 0; S < g; S += 1) E[S] = 0;\n\n            if (-1 !== b) {\n              var I = n(t, {\n                errors: 0,\n                currentLocation: b,\n                expectedLocation: v,\n                distance: c\n              });\n\n              if (_ = Math.min(I, _), -1 !== (b = e.lastIndexOf(t, v + y))) {\n                var w = n(t, {\n                  errors: 0,\n                  currentLocation: b,\n                  expectedLocation: v,\n                  distance: c\n                });\n                _ = Math.min(w, _);\n              }\n            }\n\n            b = -1;\n\n            for (var C = [], O = 1, A = y + g, x = 1 << y - 1, T = 0; T < y; T += 1) {\n              for (var L = 0, k = A; L < k;) n(t, {\n                errors: T,\n                currentLocation: v + k,\n                expectedLocation: v,\n                distance: c\n              }) <= _ ? L = k : A = k, k = Math.floor((A - L) / 2 + L);\n\n              A = k;\n              var D = Math.max(1, v - k + 1),\n                  P = p ? g : Math.min(v + k, g) + y,\n                  F = Array(P + 2);\n              F[P + 1] = (1 << T) - 1;\n\n              for (var j = P; j >= D; j -= 1) {\n                var M = j - 1,\n                    N = i[e.charAt(M)];\n\n                if (N && (E[M] = 1), F[j] = (F[j + 1] << 1 | 1) & N, 0 !== T && (F[j] |= (C[j + 1] | C[j]) << 1 | 1 | C[j + 1]), F[j] & x && (O = n(t, {\n                  errors: T,\n                  currentLocation: M,\n                  expectedLocation: v,\n                  distance: c\n                })) <= _) {\n                  if (_ = O, (b = M) <= v) break;\n                  D = Math.max(1, 2 * v - b);\n                }\n              }\n\n              if (n(t, {\n                errors: T + 1,\n                currentLocation: v,\n                expectedLocation: v,\n                distance: c\n              }) > _) break;\n              C = F;\n            }\n\n            return {\n              isMatch: b >= 0,\n              score: 0 === O ? .001 : O,\n              matchedIndices: s(E, m)\n            };\n          };\n        },\n        \"./src/bitap/index.js\":\n        /*!****************************!*\\\n          !*** ./src/bitap/index.js ***!\n          \\****************************/\n\n        /*! no static exports found */\n        function (e, t, i) {\n          function n(e, t) {\n            for (var i = 0; i < t.length; i++) {\n              var n = t[i];\n              n.enumerable = n.enumerable || !1, n.configurable = !0, \"value\" in n && (n.writable = !0), Object.defineProperty(e, n.key, n);\n            }\n          }\n\n          var s = i(\n          /*! ./bitap_regex_search */\n          \"./src/bitap/bitap_regex_search.js\"),\n              r = i(\n          /*! ./bitap_search */\n          \"./src/bitap/bitap_search.js\"),\n              o = i(\n          /*! ./bitap_pattern_alphabet */\n          \"./src/bitap/bitap_pattern_alphabet.js\"),\n              a = function () {\n            function e(t, i) {\n              var n = i.location,\n                  s = void 0 === n ? 0 : n,\n                  r = i.distance,\n                  a = void 0 === r ? 100 : r,\n                  l = i.threshold,\n                  c = void 0 === l ? .6 : l,\n                  h = i.maxPatternLength,\n                  u = void 0 === h ? 32 : h,\n                  d = i.isCaseSensitive,\n                  p = void 0 !== d && d,\n                  f = i.tokenSeparator,\n                  m = void 0 === f ? / +/g : f,\n                  v = i.findAllMatches,\n                  g = void 0 !== v && v,\n                  _ = i.minMatchCharLength,\n                  b = void 0 === _ ? 1 : _;\n              !function (e, t) {\n                if (!(e instanceof t)) throw new TypeError(\"Cannot call a class as a function\");\n              }(this, e), this.options = {\n                location: s,\n                distance: a,\n                threshold: c,\n                maxPatternLength: u,\n                isCaseSensitive: p,\n                tokenSeparator: m,\n                findAllMatches: g,\n                minMatchCharLength: b\n              }, this.pattern = this.options.isCaseSensitive ? t : t.toLowerCase(), this.pattern.length <= u && (this.patternAlphabet = o(this.pattern));\n            }\n\n            var t, i, a;\n            return t = e, (i = [{\n              key: \"search\",\n              value: function (e) {\n                if (this.options.isCaseSensitive || (e = e.toLowerCase()), this.pattern === e) return {\n                  isMatch: !0,\n                  score: 0,\n                  matchedIndices: [[0, e.length - 1]]\n                };\n                var t = this.options,\n                    i = t.maxPatternLength,\n                    n = t.tokenSeparator;\n                if (this.pattern.length > i) return s(e, this.pattern, n);\n                var o = this.options,\n                    a = o.location,\n                    l = o.distance,\n                    c = o.threshold,\n                    h = o.findAllMatches,\n                    u = o.minMatchCharLength;\n                return r(e, this.pattern, this.patternAlphabet, {\n                  location: a,\n                  distance: l,\n                  threshold: c,\n                  findAllMatches: h,\n                  minMatchCharLength: u\n                });\n              }\n            }]) && n(t.prototype, i), a && n(t, a), e;\n          }();\n\n          e.exports = a;\n        },\n        \"./src/helpers/deep_value.js\":\n        /*!***********************************!*\\\n          !*** ./src/helpers/deep_value.js ***!\n          \\***********************************/\n\n        /*! no static exports found */\n        function (e, t, i) {\n          var n = i(\n          /*! ./is_array */\n          \"./src/helpers/is_array.js\");\n\n          e.exports = function (e, t) {\n            return function e(t, i, s) {\n              if (i) {\n                var r = i.indexOf(\".\"),\n                    o = i,\n                    a = null;\n                -1 !== r && (o = i.slice(0, r), a = i.slice(r + 1));\n                var l = t[o];\n                if (null != l) if (a || \"string\" != typeof l && \"number\" != typeof l) {\n                  if (n(l)) for (var c = 0, h = l.length; c < h; c += 1) e(l[c], a, s);else a && e(l, a, s);\n                } else s.push(l.toString());\n              } else s.push(t);\n\n              return s;\n            }(e, t, []);\n          };\n        },\n        \"./src/helpers/is_array.js\":\n        /*!*********************************!*\\\n          !*** ./src/helpers/is_array.js ***!\n          \\*********************************/\n\n        /*! no static exports found */\n        function (e, t) {\n          e.exports = function (e) {\n            return Array.isArray ? Array.isArray(e) : \"[object Array]\" === Object.prototype.toString.call(e);\n          };\n        },\n        \"./src/index.js\":\n        /*!**********************!*\\\n          !*** ./src/index.js ***!\n          \\**********************/\n\n        /*! no static exports found */\n        function (e, t, i) {\n          function n(e) {\n            return (n = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (e) {\n              return typeof e;\n            } : function (e) {\n              return e && \"function\" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? \"symbol\" : typeof e;\n            })(e);\n          }\n\n          function s(e, t) {\n            for (var i = 0; i < t.length; i++) {\n              var n = t[i];\n              n.enumerable = n.enumerable || !1, n.configurable = !0, \"value\" in n && (n.writable = !0), Object.defineProperty(e, n.key, n);\n            }\n          }\n\n          var r = i(\n          /*! ./bitap */\n          \"./src/bitap/index.js\"),\n              o = i(\n          /*! ./helpers/deep_value */\n          \"./src/helpers/deep_value.js\"),\n              a = i(\n          /*! ./helpers/is_array */\n          \"./src/helpers/is_array.js\"),\n              l = function () {\n            function e(t, i) {\n              var n = i.location,\n                  s = void 0 === n ? 0 : n,\n                  r = i.distance,\n                  a = void 0 === r ? 100 : r,\n                  l = i.threshold,\n                  c = void 0 === l ? .6 : l,\n                  h = i.maxPatternLength,\n                  u = void 0 === h ? 32 : h,\n                  d = i.caseSensitive,\n                  p = void 0 !== d && d,\n                  f = i.tokenSeparator,\n                  m = void 0 === f ? / +/g : f,\n                  v = i.findAllMatches,\n                  g = void 0 !== v && v,\n                  _ = i.minMatchCharLength,\n                  b = void 0 === _ ? 1 : _,\n                  y = i.id,\n                  E = void 0 === y ? null : y,\n                  S = i.keys,\n                  I = void 0 === S ? [] : S,\n                  w = i.shouldSort,\n                  C = void 0 === w || w,\n                  O = i.getFn,\n                  A = void 0 === O ? o : O,\n                  x = i.sortFn,\n                  T = void 0 === x ? function (e, t) {\n                return e.score - t.score;\n              } : x,\n                  L = i.tokenize,\n                  k = void 0 !== L && L,\n                  D = i.matchAllTokens,\n                  P = void 0 !== D && D,\n                  F = i.includeMatches,\n                  j = void 0 !== F && F,\n                  M = i.includeScore,\n                  N = void 0 !== M && M,\n                  K = i.verbose,\n                  R = void 0 !== K && K;\n              !function (e, t) {\n                if (!(e instanceof t)) throw new TypeError(\"Cannot call a class as a function\");\n              }(this, e), this.options = {\n                location: s,\n                distance: a,\n                threshold: c,\n                maxPatternLength: u,\n                isCaseSensitive: p,\n                tokenSeparator: m,\n                findAllMatches: g,\n                minMatchCharLength: b,\n                id: E,\n                keys: I,\n                includeMatches: j,\n                includeScore: N,\n                shouldSort: C,\n                getFn: A,\n                sortFn: T,\n                verbose: R,\n                tokenize: k,\n                matchAllTokens: P\n              }, this.setCollection(t);\n            }\n\n            var t, i, l;\n            return t = e, (i = [{\n              key: \"setCollection\",\n              value: function (e) {\n                return this.list = e, e;\n              }\n            }, {\n              key: \"search\",\n              value: function (e) {\n                var t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {\n                  limit: !1\n                };\n\n                this._log('---------\\nSearch pattern: \"'.concat(e, '\"'));\n\n                var i = this._prepareSearchers(e),\n                    n = i.tokenSearchers,\n                    s = i.fullSearcher,\n                    r = this._search(n, s),\n                    o = r.weights,\n                    a = r.results;\n\n                return this._computeScore(o, a), this.options.shouldSort && this._sort(a), t.limit && \"number\" == typeof t.limit && (a = a.slice(0, t.limit)), this._format(a);\n              }\n            }, {\n              key: \"_prepareSearchers\",\n              value: function () {\n                var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : \"\",\n                    t = [];\n                if (this.options.tokenize) for (var i = e.split(this.options.tokenSeparator), n = 0, s = i.length; n < s; n += 1) t.push(new r(i[n], this.options));\n                var o = new r(e, this.options);\n                return {\n                  tokenSearchers: t,\n                  fullSearcher: o\n                };\n              }\n            }, {\n              key: \"_search\",\n              value: function () {\n                var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : [],\n                    t = arguments.length > 1 ? arguments[1] : void 0,\n                    i = this.list,\n                    n = {},\n                    s = [];\n\n                if (\"string\" == typeof i[0]) {\n                  for (var r = 0, o = i.length; r < o; r += 1) this._analyze({\n                    key: \"\",\n                    value: i[r],\n                    record: r,\n                    index: r\n                  }, {\n                    resultMap: n,\n                    results: s,\n                    tokenSearchers: e,\n                    fullSearcher: t\n                  });\n\n                  return {\n                    weights: null,\n                    results: s\n                  };\n                }\n\n                for (var a = {}, l = 0, c = i.length; l < c; l += 1) for (var h = i[l], u = 0, d = this.options.keys.length; u < d; u += 1) {\n                  var p = this.options.keys[u];\n\n                  if (\"string\" != typeof p) {\n                    if (a[p.name] = {\n                      weight: 1 - p.weight || 1\n                    }, p.weight <= 0 || p.weight > 1) throw new Error(\"Key weight has to be > 0 and <= 1\");\n                    p = p.name;\n                  } else a[p] = {\n                    weight: 1\n                  };\n\n                  this._analyze({\n                    key: p,\n                    value: this.options.getFn(h, p),\n                    record: h,\n                    index: l\n                  }, {\n                    resultMap: n,\n                    results: s,\n                    tokenSearchers: e,\n                    fullSearcher: t\n                  });\n                }\n\n                return {\n                  weights: a,\n                  results: s\n                };\n              }\n            }, {\n              key: \"_analyze\",\n              value: function (e, t) {\n                var i = e.key,\n                    n = e.arrayIndex,\n                    s = void 0 === n ? -1 : n,\n                    r = e.value,\n                    o = e.record,\n                    l = e.index,\n                    c = t.tokenSearchers,\n                    h = void 0 === c ? [] : c,\n                    u = t.fullSearcher,\n                    d = void 0 === u ? [] : u,\n                    p = t.resultMap,\n                    f = void 0 === p ? {} : p,\n                    m = t.results,\n                    v = void 0 === m ? [] : m;\n\n                if (null != r) {\n                  var g = !1,\n                      _ = -1,\n                      b = 0;\n\n                  if (\"string\" == typeof r) {\n                    this._log(\"\\nKey: \".concat(\"\" === i ? \"-\" : i));\n\n                    var y = d.search(r);\n\n                    if (this._log('Full text: \"'.concat(r, '\", score: ').concat(y.score)), this.options.tokenize) {\n                      for (var E = r.split(this.options.tokenSeparator), S = [], I = 0; I < h.length; I += 1) {\n                        var w = h[I];\n\n                        this._log('\\nPattern: \"'.concat(w.pattern, '\"'));\n\n                        for (var C = !1, O = 0; O < E.length; O += 1) {\n                          var A = E[O],\n                              x = w.search(A),\n                              T = {};\n                          x.isMatch ? (T[A] = x.score, g = !0, C = !0, S.push(x.score)) : (T[A] = 1, this.options.matchAllTokens || S.push(1)), this._log('Token: \"'.concat(A, '\", score: ').concat(T[A]));\n                        }\n\n                        C && (b += 1);\n                      }\n\n                      _ = S[0];\n\n                      for (var L = S.length, k = 1; k < L; k += 1) _ += S[k];\n\n                      _ /= L, this._log(\"Token score average:\", _);\n                    }\n\n                    var D = y.score;\n                    _ > -1 && (D = (D + _) / 2), this._log(\"Score average:\", D);\n                    var P = !this.options.tokenize || !this.options.matchAllTokens || b >= h.length;\n\n                    if (this._log(\"\\nCheck Matches: \".concat(P)), (g || y.isMatch) && P) {\n                      var F = f[l];\n                      F ? F.output.push({\n                        key: i,\n                        arrayIndex: s,\n                        value: r,\n                        score: D,\n                        matchedIndices: y.matchedIndices\n                      }) : (f[l] = {\n                        item: o,\n                        output: [{\n                          key: i,\n                          arrayIndex: s,\n                          value: r,\n                          score: D,\n                          matchedIndices: y.matchedIndices\n                        }]\n                      }, v.push(f[l]));\n                    }\n                  } else if (a(r)) for (var j = 0, M = r.length; j < M; j += 1) this._analyze({\n                    key: i,\n                    arrayIndex: j,\n                    value: r[j],\n                    record: o,\n                    index: l\n                  }, {\n                    resultMap: f,\n                    results: v,\n                    tokenSearchers: h,\n                    fullSearcher: d\n                  });\n                }\n              }\n            }, {\n              key: \"_computeScore\",\n              value: function (e, t) {\n                this._log(\"\\n\\nComputing score:\\n\");\n\n                for (var i = 0, n = t.length; i < n; i += 1) {\n                  for (var s = t[i].output, r = s.length, o = 1, a = 1, l = 0; l < r; l += 1) {\n                    var c = e ? e[s[l].key].weight : 1,\n                        h = (1 === c ? s[l].score : s[l].score || .001) * c;\n                    1 !== c ? a = Math.min(a, h) : (s[l].nScore = h, o *= h);\n                  }\n\n                  t[i].score = 1 === a ? o : a, this._log(t[i]);\n                }\n              }\n            }, {\n              key: \"_sort\",\n              value: function (e) {\n                this._log(\"\\n\\nSorting....\"), e.sort(this.options.sortFn);\n              }\n            }, {\n              key: \"_format\",\n              value: function (e) {\n                var t = [];\n\n                if (this.options.verbose) {\n                  var i = [];\n                  this._log(\"\\n\\nOutput:\\n\\n\", JSON.stringify(e, function (e, t) {\n                    if (\"object\" === n(t) && null !== t) {\n                      if (-1 !== i.indexOf(t)) return;\n                      i.push(t);\n                    }\n\n                    return t;\n                  })), i = null;\n                }\n\n                var s = [];\n                this.options.includeMatches && s.push(function (e, t) {\n                  var i = e.output;\n                  t.matches = [];\n\n                  for (var n = 0, s = i.length; n < s; n += 1) {\n                    var r = i[n];\n\n                    if (0 !== r.matchedIndices.length) {\n                      var o = {\n                        indices: r.matchedIndices,\n                        value: r.value\n                      };\n                      r.key && (o.key = r.key), r.hasOwnProperty(\"arrayIndex\") && r.arrayIndex > -1 && (o.arrayIndex = r.arrayIndex), t.matches.push(o);\n                    }\n                  }\n                }), this.options.includeScore && s.push(function (e, t) {\n                  t.score = e.score;\n                });\n\n                for (var r = 0, o = e.length; r < o; r += 1) {\n                  var a = e[r];\n\n                  if (this.options.id && (a.item = this.options.getFn(a.item, this.options.id)[0]), s.length) {\n                    for (var l = {\n                      item: a.item\n                    }, c = 0, h = s.length; c < h; c += 1) s[c](a, l);\n\n                    t.push(l);\n                  } else t.push(a.item);\n                }\n\n                return t;\n              }\n            }, {\n              key: \"_log\",\n              value: function () {\n                var e;\n                this.options.verbose && (e = console).log.apply(e, arguments);\n              }\n            }]) && s(t.prototype, i), l && s(t, l), e;\n          }();\n\n          e.exports = l;\n        }\n      });\n    }, e.exports = n();\n  }, function (e, t, i) {\n    \"use strict\";\n\n    function n(e) {\n      var t,\n          i = e.Symbol;\n      return \"function\" == typeof i ? i.observable ? t = i.observable : (t = i(\"observable\"), i.observable = t) : t = \"@@observable\", t;\n    }\n\n    i.d(t, \"a\", function () {\n      return n;\n    });\n  }, function (e, t, i) {\n    e.exports = i(9);\n  }, function (e, t) {\n    window.delegateEvent = function () {\n      var e, t;\n\n      function i(t) {\n        var i = e.get(t.type);\n        i && i.forEach(function (e) {\n          return e(t);\n        });\n      }\n\n      return void 0 === e && (e = new Map()), void 0 === t && (t = []), {\n        add: function (n, s) {\n          e.has(n) ? e.get(n).push(s) : e.set(n, [s]), -1 === t.indexOf(n) && (document.documentElement.addEventListener(n, i, !0), t.push(n));\n        },\n        remove: function (i, n) {\n          e.get(i) && (e.set(i, e.get(i).filter(function (e) {\n            return e !== n;\n          })), e.get(i).length || t.splice(t.indexOf(i), 1));\n        }\n      };\n    }();\n  }, function (e, t) {\n    var i;\n\n    i = function () {\n      return this;\n    }();\n\n    try {\n      i = i || new Function(\"return this\")();\n    } catch (e) {\n      \"object\" == typeof window && (i = window);\n    }\n\n    e.exports = i;\n  }, function (e, t) {\n    e.exports = function (e) {\n      if (!e.webpackPolyfill) {\n        var t = Object.create(e);\n        t.children || (t.children = []), Object.defineProperty(t, \"loaded\", {\n          enumerable: !0,\n          get: function () {\n            return t.l;\n          }\n        }), Object.defineProperty(t, \"id\", {\n          enumerable: !0,\n          get: function () {\n            return t.i;\n          }\n        }), Object.defineProperty(t, \"exports\", {\n          enumerable: !0\n        }), t.webpackPolyfill = 1;\n      }\n\n      return t;\n    };\n  }, function (e, t, i) {\n    \"use strict\";\n\n    i.r(t);\n\n    var n = i(3),\n        s = i.n(n),\n        r = i(1),\n        o = i.n(r),\n        a = (i(6), i(2)),\n        l = function () {\n      return Math.random().toString(36).substring(7).split(\"\").join(\".\");\n    },\n        c = {\n      INIT: \"@@redux/INIT\" + l(),\n      REPLACE: \"@@redux/REPLACE\" + l(),\n      PROBE_UNKNOWN_ACTION: function () {\n        return \"@@redux/PROBE_UNKNOWN_ACTION\" + l();\n      }\n    };\n\n    function h(e) {\n      if (\"object\" != typeof e || null === e) return !1;\n\n      for (var t = e; null !== Object.getPrototypeOf(t);) t = Object.getPrototypeOf(t);\n\n      return Object.getPrototypeOf(e) === t;\n    }\n\n    function u(e, t, i) {\n      var n;\n      if (\"function\" == typeof t && \"function\" == typeof i || \"function\" == typeof i && \"function\" == typeof arguments[3]) throw new Error(\"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function.\");\n\n      if (\"function\" == typeof t && void 0 === i && (i = t, t = void 0), void 0 !== i) {\n        if (\"function\" != typeof i) throw new Error(\"Expected the enhancer to be a function.\");\n        return i(u)(e, t);\n      }\n\n      if (\"function\" != typeof e) throw new Error(\"Expected the reducer to be a function.\");\n      var s = e,\n          r = t,\n          o = [],\n          l = o,\n          d = !1;\n\n      function p() {\n        l === o && (l = o.slice());\n      }\n\n      function f() {\n        if (d) throw new Error(\"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.\");\n        return r;\n      }\n\n      function m(e) {\n        if (\"function\" != typeof e) throw new Error(\"Expected the listener to be a function.\");\n        if (d) throw new Error(\"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribe(listener) for more details.\");\n        var t = !0;\n        return p(), l.push(e), function () {\n          if (t) {\n            if (d) throw new Error(\"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribe(listener) for more details.\");\n            t = !1, p();\n            var i = l.indexOf(e);\n            l.splice(i, 1);\n          }\n        };\n      }\n\n      function v(e) {\n        if (!h(e)) throw new Error(\"Actions must be plain objects. Use custom middleware for async actions.\");\n        if (void 0 === e.type) throw new Error('Actions may not have an undefined \"type\" property. Have you misspelled a constant?');\n        if (d) throw new Error(\"Reducers may not dispatch actions.\");\n\n        try {\n          d = !0, r = s(r, e);\n        } finally {\n          d = !1;\n        }\n\n        for (var t = o = l, i = 0; i < t.length; i++) {\n          (0, t[i])();\n        }\n\n        return e;\n      }\n\n      return v({\n        type: c.INIT\n      }), (n = {\n        dispatch: v,\n        subscribe: m,\n        getState: f,\n        replaceReducer: function (e) {\n          if (\"function\" != typeof e) throw new Error(\"Expected the nextReducer to be a function.\");\n          s = e, v({\n            type: c.REPLACE\n          });\n        }\n      })[a.a] = function () {\n        var e,\n            t = m;\n        return (e = {\n          subscribe: function (e) {\n            if (\"object\" != typeof e || null === e) throw new TypeError(\"Expected the observer to be an object.\");\n\n            function i() {\n              e.next && e.next(f());\n            }\n\n            return i(), {\n              unsubscribe: t(i)\n            };\n          }\n        })[a.a] = function () {\n          return this;\n        }, e;\n      }, n;\n    }\n\n    function d(e, t) {\n      var i = t && t.type;\n      return \"Given \" + (i && 'action \"' + String(i) + '\"' || \"an action\") + ', reducer \"' + e + '\" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.';\n    }\n\n    var p = [];\n    var f = [];\n    var m = [];\n\n    var v,\n        g = {\n      loading: !1\n    },\n        _ = function (e, t) {\n      switch (void 0 === e && (e = g), t.type) {\n        case \"SET_IS_LOADING\":\n          return {\n            loading: t.isLoading\n          };\n\n        default:\n          return e;\n      }\n    },\n        b = function (e) {\n      for (var t, i, n = \"\", s = 0; s < e; s++) {\n        n += (t = 0, i = 36, Math.floor(Math.random() * (i - t) + t)).toString(36);\n      }\n\n      return n;\n    },\n        y = function (e, t) {\n      var i = e.id || e.name && e.name + \"-\" + b(2) || b(4);\n      return i = t + \"-\" + (i = i.replace(/(:|\\.|\\[|\\]|,)/g, \"\"));\n    },\n        E = function (e) {\n      return Object.prototype.toString.call(e).slice(8, -1);\n    },\n        S = function (e, t) {\n      return null != t && E(t) === e;\n    },\n        I = function (e) {\n      return e instanceof Element;\n    },\n        w = function (e, t) {\n      for (var i = e; i;) {\n        if (i.hasAttribute(t)) return i;\n        i = i.parentElement;\n      }\n\n      return null;\n    },\n        C = function (e) {\n      return S(\"String\", e) ? e.replace(/&/g, \"&amp;\").replace(/>/g, \"&rt;\").replace(/</g, \"&lt;\").replace(/\"/g, \"&quot;\") : e;\n    },\n        O = (v = document.createElement(\"div\"), function (e) {\n      var t = e.trim();\n      v.innerHTML = t;\n\n      for (var i = v.children[0]; v.firstChild;) v.removeChild(v.firstChild);\n\n      return i;\n    }),\n        A = function (e, t) {\n      return e.score - t.score;\n    },\n        x = function e(t, i) {\n      var n = i.indexOf(\".\");\n      return n > -1 ? e(t[i.substring(0, n)], i.substr(n + 1)) : t[i];\n    },\n        T = function (e) {\n      return JSON.parse(JSON.stringify(e));\n    },\n        L = function (e, t) {\n      var i = Object.keys(e).sort(),\n          n = Object.keys(t).sort();\n      return i.filter(function (e) {\n        return n.indexOf(e) < 0;\n      });\n    },\n        k = function (e) {\n      for (var t = Object.keys(e), i = {}, n = 0; n < t.length; n++) {\n        var s = t[n];\n        0, \"function\" == typeof e[s] && (i[s] = e[s]);\n      }\n\n      var r,\n          o = Object.keys(i);\n\n      try {\n        !function (e) {\n          Object.keys(e).forEach(function (t) {\n            var i = e[t];\n            if (void 0 === i(void 0, {\n              type: c.INIT\n            })) throw new Error('Reducer \"' + t + \"\\\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.\");\n            if (void 0 === i(void 0, {\n              type: c.PROBE_UNKNOWN_ACTION()\n            })) throw new Error('Reducer \"' + t + \"\\\" returned undefined when probed with a random type. Don't try to handle \" + c.INIT + ' or other actions in \"redux/*\" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.');\n          });\n        }(i);\n      } catch (e) {\n        r = e;\n      }\n\n      return function (e, t) {\n        if (void 0 === e && (e = {}), r) throw r;\n\n        for (var n = !1, s = {}, a = 0; a < o.length; a++) {\n          var l = o[a],\n              c = i[l],\n              h = e[l],\n              u = c(h, t);\n\n          if (void 0 === u) {\n            var p = d(l, t);\n            throw new Error(p);\n          }\n\n          s[l] = u, n = n || u !== h;\n        }\n\n        return n ? s : e;\n      };\n    }({\n      items: function (e, t) {\n        switch (void 0 === e && (e = p), t.type) {\n          case \"ADD_ITEM\":\n            return [].concat(e, [{\n              id: t.id,\n              choiceId: t.choiceId,\n              groupId: t.groupId,\n              value: t.value,\n              label: t.label,\n              active: !0,\n              highlighted: !1,\n              customProperties: t.customProperties,\n              placeholder: t.placeholder || !1,\n              keyCode: null\n            }]).map(function (e) {\n              var t = e;\n              return t.highlighted = !1, t;\n            });\n\n          case \"REMOVE_ITEM\":\n            return e.map(function (e) {\n              var i = e;\n              return i.id === t.id && (i.active = !1), i;\n            });\n\n          case \"HIGHLIGHT_ITEM\":\n            return e.map(function (e) {\n              var i = e;\n              return i.id === t.id && (i.highlighted = t.highlighted), i;\n            });\n\n          default:\n            return e;\n        }\n      },\n      groups: function (e, t) {\n        switch (void 0 === e && (e = f), t.type) {\n          case \"ADD_GROUP\":\n            return [].concat(e, [{\n              id: t.id,\n              value: t.value,\n              active: t.active,\n              disabled: t.disabled\n            }]);\n\n          case \"CLEAR_CHOICES\":\n            return [];\n\n          default:\n            return e;\n        }\n      },\n      choices: function (e, t) {\n        switch (void 0 === e && (e = m), t.type) {\n          case \"ADD_CHOICE\":\n            return [].concat(e, [{\n              id: t.id,\n              elementId: t.elementId,\n              groupId: t.groupId,\n              value: t.value,\n              label: t.label || t.value,\n              disabled: t.disabled || !1,\n              selected: !1,\n              active: !0,\n              score: 9999,\n              customProperties: t.customProperties,\n              placeholder: t.placeholder || !1,\n              keyCode: null\n            }]);\n\n          case \"ADD_ITEM\":\n            return t.activateOptions ? e.map(function (e) {\n              var i = e;\n              return i.active = t.active, i;\n            }) : t.choiceId > -1 ? e.map(function (e) {\n              var i = e;\n              return i.id === parseInt(t.choiceId, 10) && (i.selected = !0), i;\n            }) : e;\n\n          case \"REMOVE_ITEM\":\n            return t.choiceId > -1 ? e.map(function (e) {\n              var i = e;\n              return i.id === parseInt(t.choiceId, 10) && (i.selected = !1), i;\n            }) : e;\n\n          case \"FILTER_CHOICES\":\n            return e.map(function (e) {\n              var i = e;\n              return i.active = t.results.some(function (e) {\n                var t = e.item,\n                    n = e.score;\n                return t.id === i.id && (i.score = n, !0);\n              }), i;\n            });\n\n          case \"ACTIVATE_CHOICES\":\n            return e.map(function (e) {\n              var i = e;\n              return i.active = t.active, i;\n            });\n\n          case \"CLEAR_CHOICES\":\n            return m;\n\n          default:\n            return e;\n        }\n      },\n      general: _\n    }),\n        D = function (e, t) {\n      var i = e;\n      if (\"CLEAR_ALL\" === t.type) i = void 0;else if (\"RESET_TO\" === t.type) return T(t.state);\n      return k(i, t);\n    };\n\n    function P(e, t) {\n      for (var i = 0; i < t.length; i++) {\n        var n = t[i];\n        n.enumerable = n.enumerable || !1, n.configurable = !0, \"value\" in n && (n.writable = !0), Object.defineProperty(e, n.key, n);\n      }\n    }\n\n    var F = function () {\n      function e() {\n        this._store = u(D, window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__());\n      }\n\n      var t,\n          i,\n          n,\n          s = e.prototype;\n      return s.subscribe = function (e) {\n        this._store.subscribe(e);\n      }, s.dispatch = function (e) {\n        this._store.dispatch(e);\n      }, s.isLoading = function () {\n        return this.state.general.loading;\n      }, s.getChoiceById = function (e) {\n        return !!e && this.activeChoices.find(function (t) {\n          return t.id === parseInt(e, 10);\n        });\n      }, s.getGroupById = function (e) {\n        return this.groups.find(function (t) {\n          return t.id === parseInt(e, 10);\n        });\n      }, t = e, (i = [{\n        key: \"state\",\n        get: function () {\n          return this._store.getState();\n        }\n      }, {\n        key: \"items\",\n        get: function () {\n          return this.state.items;\n        }\n      }, {\n        key: \"activeItems\",\n        get: function () {\n          return this.items.filter(function (e) {\n            return !0 === e.active;\n          });\n        }\n      }, {\n        key: \"highlightedActiveItems\",\n        get: function () {\n          return this.items.filter(function (e) {\n            return e.active && e.highlighted;\n          });\n        }\n      }, {\n        key: \"choices\",\n        get: function () {\n          return this.state.choices;\n        }\n      }, {\n        key: \"activeChoices\",\n        get: function () {\n          return this.choices.filter(function (e) {\n            return !0 === e.active;\n          });\n        }\n      }, {\n        key: \"selectableChoices\",\n        get: function () {\n          return this.choices.filter(function (e) {\n            return !0 !== e.disabled;\n          });\n        }\n      }, {\n        key: \"searchableChoices\",\n        get: function () {\n          return this.selectableChoices.filter(function (e) {\n            return !0 !== e.placeholder;\n          });\n        }\n      }, {\n        key: \"placeholderChoice\",\n        get: function () {\n          return [].concat(this.choices).reverse().find(function (e) {\n            return !0 === e.placeholder;\n          });\n        }\n      }, {\n        key: \"groups\",\n        get: function () {\n          return this.state.groups;\n        }\n      }, {\n        key: \"activeGroups\",\n        get: function () {\n          var e = this.groups,\n              t = this.choices;\n          return e.filter(function (e) {\n            var i = !0 === e.active && !1 === e.disabled,\n                n = t.some(function (e) {\n              return !0 === e.active && !1 === e.disabled;\n            });\n            return i && n;\n          }, []);\n        }\n      }]) && P(t.prototype, i), n && P(t, n), e;\n    }(),\n        j = function () {\n      function e(e) {\n        var t = e.element,\n            i = e.type,\n            n = e.classNames;\n        Object.assign(this, {\n          element: t,\n          type: i,\n          classNames: n\n        }), this.isActive = !1;\n      }\n\n      var t = e.prototype;\n      return t.distanceFromTopWindow = function () {\n        return this.dimensions = this.element.getBoundingClientRect(), this.position = Math.ceil(this.dimensions.top + window.pageYOffset + this.element.offsetHeight), this.position;\n      }, t.getChild = function (e) {\n        return this.element.querySelector(e);\n      }, t.show = function () {\n        return this.element.classList.add(this.classNames.activeState), this.element.setAttribute(\"aria-expanded\", \"true\"), this.isActive = !0, this;\n      }, t.hide = function () {\n        return this.element.classList.remove(this.classNames.activeState), this.element.setAttribute(\"aria-expanded\", \"false\"), this.isActive = !1, this;\n      }, e;\n    }(),\n        M = function () {\n      function e(e) {\n        var t = e.element,\n            i = e.type,\n            n = e.classNames,\n            s = e.position;\n        Object.assign(this, {\n          element: t,\n          classNames: n,\n          type: i,\n          position: s\n        }), this.isOpen = !1, this.isFlipped = !1, this.isFocussed = !1, this.isDisabled = !1, this.isLoading = !1, this._onFocus = this._onFocus.bind(this), this._onBlur = this._onBlur.bind(this);\n      }\n\n      var t = e.prototype;\n      return t.addEventListeners = function () {\n        this.element.addEventListener(\"focus\", this._onFocus), this.element.addEventListener(\"blur\", this._onBlur);\n      }, t.removeEventListeners = function () {\n        this.element.removeEventListener(\"focus\", this._onFocus), this.element.removeEventListener(\"blur\", this._onBlur);\n      }, t.shouldFlip = function (e, t) {\n        var i, n;\n        if (void 0 === t && (i = document.body, n = document.documentElement, t = Math.max(i.scrollHeight, i.offsetHeight, n.clientHeight, n.scrollHeight, n.offsetHeight)), void 0 === e) return !1;\n        var s = !1;\n        return \"auto\" === this.position ? s = e >= t : \"top\" === this.position && (s = !0), s;\n      }, t.setActiveDescendant = function (e) {\n        this.element.setAttribute(\"aria-activedescendant\", e);\n      }, t.removeActiveDescendant = function () {\n        this.element.removeAttribute(\"aria-activedescendant\");\n      }, t.open = function (e) {\n        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);\n      }, t.close = function () {\n        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);\n      }, t.focus = function () {\n        this.isFocussed || this.element.focus();\n      }, t.addFocusState = function () {\n        this.element.classList.add(this.classNames.focusState);\n      }, t.removeFocusState = function () {\n        this.element.classList.remove(this.classNames.focusState);\n      }, t.enable = function () {\n        this.element.classList.remove(this.classNames.disabledState), this.element.removeAttribute(\"aria-disabled\"), \"select-one\" === this.type && this.element.setAttribute(\"tabindex\", \"0\"), this.isDisabled = !1;\n      }, t.disable = function () {\n        this.element.classList.add(this.classNames.disabledState), this.element.setAttribute(\"aria-disabled\", \"true\"), \"select-one\" === this.type && this.element.setAttribute(\"tabindex\", \"-1\"), this.isDisabled = !0;\n      }, t.wrap = function (e) {\n        !function (e, t) {\n          void 0 === t && (t = document.createElement(\"div\")), e.nextSibling ? e.parentNode.insertBefore(t, e.nextSibling) : e.parentNode.appendChild(t), t.appendChild(e);\n        }(e, this.element);\n      }, t.unwrap = function (e) {\n        this.element.parentNode.insertBefore(e, this.element), this.element.parentNode.removeChild(this.element);\n      }, t.addLoadingState = function () {\n        this.element.classList.add(this.classNames.loadingState), this.element.setAttribute(\"aria-busy\", \"true\"), this.isLoading = !0;\n      }, t.removeLoadingState = function () {\n        this.element.classList.remove(this.classNames.loadingState), this.element.removeAttribute(\"aria-busy\"), this.isLoading = !1;\n      }, t._onFocus = function () {\n        this.isFocussed = !0;\n      }, t._onBlur = function () {\n        this.isFocussed = !1;\n      }, e;\n    }();\n\n    function N(e, t) {\n      for (var i = 0; i < t.length; i++) {\n        var n = t[i];\n        n.enumerable = n.enumerable || !1, n.configurable = !0, \"value\" in n && (n.writable = !0), Object.defineProperty(e, n.key, n);\n      }\n    }\n\n    var K = function () {\n      function e(e) {\n        var t = e.element,\n            i = e.type,\n            n = e.classNames,\n            s = e.placeholderValue;\n        Object.assign(this, {\n          element: t,\n          type: i,\n          classNames: n,\n          placeholderValue: s\n        }), this.element = t, this.classNames = n, this.isFocussed = this.element === document.activeElement, this.isDisabled = !1, this._onPaste = this._onPaste.bind(this), this._onInput = this._onInput.bind(this), this._onFocus = this._onFocus.bind(this), this._onBlur = this._onBlur.bind(this);\n      }\n\n      var t,\n          i,\n          n,\n          s = e.prototype;\n      return s.addEventListeners = function () {\n        this.element.addEventListener(\"input\", this._onInput), this.element.addEventListener(\"paste\", this._onPaste), this.element.addEventListener(\"focus\", this._onFocus), this.element.addEventListener(\"blur\", this._onBlur), this.element.form && this.element.form.addEventListener(\"reset\", this._onFormReset);\n      }, s.removeEventListeners = function () {\n        this.element.removeEventListener(\"input\", this._onInput), this.element.removeEventListener(\"paste\", this._onPaste), this.element.removeEventListener(\"focus\", this._onFocus), this.element.removeEventListener(\"blur\", this._onBlur), this.element.form && this.element.form.removeEventListener(\"reset\", this._onFormReset);\n      }, s.enable = function () {\n        this.element.removeAttribute(\"disabled\"), this.isDisabled = !1;\n      }, s.disable = function () {\n        this.element.setAttribute(\"disabled\", \"\"), this.isDisabled = !0;\n      }, s.focus = function () {\n        this.isFocussed || this.element.focus();\n      }, s.blur = function () {\n        this.isFocussed && this.element.blur();\n      }, s.clear = function (e) {\n        return void 0 === e && (e = !0), this.element.value && (this.element.value = \"\"), e && this.setWidth(), this;\n      }, s.setWidth = function (e) {\n        var t = this,\n            i = function (e) {\n          t.element.style.width = e;\n        };\n\n        if (this._placeholderValue) {\n          var n = this.element.value.length >= this._placeholderValue.length / 1.25;\n          (this.element.value && n || e) && this.calcWidth(i);\n        } else this.calcWidth(i);\n      }, s.calcWidth = function (e) {\n        return function (e, t) {\n          var i = e.value || e.placeholder,\n              n = e.offsetWidth;\n\n          if (i) {\n            var s = O(\"<span>\" + C(i) + \"</span>\");\n\n            if (s.style.position = \"absolute\", s.style.padding = \"0\", s.style.top = \"-9999px\", s.style.left = \"-9999px\", s.style.width = \"auto\", s.style.whiteSpace = \"pre\", document.body.contains(e) && window.getComputedStyle) {\n              var r = window.getComputedStyle(e);\n              r && (s.style.fontSize = r.fontSize, s.style.fontFamily = r.fontFamily, s.style.fontWeight = r.fontWeight, s.style.fontStyle = r.fontStyle, s.style.letterSpacing = r.letterSpacing, s.style.textTransform = r.textTransform, s.style.paddingLeft = r.paddingLeft, s.style.paddingRight = r.paddingRight);\n            }\n\n            document.body.appendChild(s), requestAnimationFrame(function () {\n              i && s.offsetWidth !== e.offsetWidth && (n = s.offsetWidth + 4), document.body.removeChild(s), t.call(void 0, n + \"px\");\n            });\n          } else t.call(void 0, n + \"px\");\n        }(this.element, e);\n      }, s.setActiveDescendant = function (e) {\n        this.element.setAttribute(\"aria-activedescendant\", e);\n      }, s.removeActiveDescendant = function () {\n        this.element.removeAttribute(\"aria-activedescendant\");\n      }, s._onInput = function () {\n        \"select-one\" !== this.type && this.setWidth();\n      }, s._onPaste = function (e) {\n        e.target === this.element && this.preventPaste && e.preventDefault();\n      }, s._onFocus = function () {\n        this.isFocussed = !0;\n      }, s._onBlur = function () {\n        this.isFocussed = !1;\n      }, t = e, (i = [{\n        key: \"placeholder\",\n        set: function (e) {\n          this.element.placeholder = e;\n        }\n      }, {\n        key: \"value\",\n        set: function (e) {\n          this.element.value = e;\n        },\n        get: function () {\n          return C(this.element.value);\n        }\n      }]) && N(t.prototype, i), n && N(t, n), e;\n    }(),\n        R = {\n      items: [],\n      choices: [],\n      silent: !1,\n      renderChoiceLimit: -1,\n      maxItemCount: -1,\n      addItems: !0,\n      addItemFilterFn: null,\n      removeItems: !0,\n      removeItemButton: !1,\n      editItems: !1,\n      duplicateItemsAllowed: !0,\n      delimiter: \",\",\n      paste: !0,\n      searchEnabled: !0,\n      searchChoices: !0,\n      searchFloor: 1,\n      searchResultLimit: 4,\n      searchFields: [\"label\", \"value\"],\n      position: \"auto\",\n      resetScrollPosition: !0,\n      shouldSort: !0,\n      shouldSortItems: !1,\n      sortFn: function (e, t) {\n        var i = (\"\" + (e.label || e.value)).toLowerCase(),\n            n = (\"\" + (t.label || t.value)).toLowerCase();\n        return i < n ? -1 : i > n ? 1 : 0;\n      },\n      placeholder: !0,\n      placeholderValue: null,\n      searchPlaceholderValue: null,\n      prependValue: null,\n      appendValue: null,\n      renderSelectedChoices: \"auto\",\n      loadingText: \"Loading...\",\n      noResultsText: \"No results found\",\n      noChoicesText: \"No choices to choose from\",\n      itemSelectText: \"Press to select\",\n      uniqueItemText: \"Only unique values can be added\",\n      customAddItemText: \"Only values matching specific conditions can be added\",\n      addItemText: function (e) {\n        return 'Press Enter to add <b>\"' + C(e) + '\"</b>';\n      },\n      maxItemText: function (e) {\n        return \"Only \" + e + \" values can be added\";\n      },\n      itemComparer: function (e, t) {\n        return e === t;\n      },\n      fuseOptions: {\n        includeScore: !0\n      },\n      callbackOnInit: null,\n      callbackOnCreateTemplates: null,\n      classNames: {\n        containerOuter: \"choices\",\n        containerInner: \"choices__inner\",\n        input: \"choices__input\",\n        inputCloned: \"choices__input--cloned\",\n        list: \"choices__list\",\n        listItems: \"choices__list--multiple\",\n        listSingle: \"choices__list--single\",\n        listDropdown: \"choices__list--dropdown\",\n        item: \"choices__item\",\n        itemSelectable: \"choices__item--selectable\",\n        itemDisabled: \"choices__item--disabled\",\n        itemChoice: \"choices__item--choice\",\n        placeholder: \"choices__placeholder\",\n        group: \"choices__group\",\n        groupHeading: \"choices__heading\",\n        button: \"choices__button\",\n        activeState: \"is-active\",\n        focusState: \"is-focused\",\n        openState: \"is-open\",\n        disabledState: \"is-disabled\",\n        highlightedState: \"is-highlighted\",\n        hiddenState: \"is-hidden\",\n        flippedState: \"is-flipped\",\n        loadingState: \"is-loading\",\n        noResults: \"has-no-results\",\n        noChoices: \"has-no-choices\"\n      }\n    },\n        B = \"showDropdown\",\n        V = \"hideDropdown\",\n        H = \"change\",\n        G = \"choice\",\n        q = \"search\",\n        W = \"addItem\",\n        U = \"removeItem\",\n        z = \"highlightItem\",\n        X = \"highlightChoice\",\n        Y = \"ADD_CHOICE\",\n        $ = \"FILTER_CHOICES\",\n        J = \"ACTIVATE_CHOICES\",\n        Z = \"CLEAR_CHOICES\",\n        Q = \"ADD_GROUP\",\n        ee = \"ADD_ITEM\",\n        te = \"REMOVE_ITEM\",\n        ie = \"HIGHLIGHT_ITEM\",\n        ne = 46,\n        se = 8,\n        re = 13,\n        oe = 65,\n        ae = 27,\n        le = 38,\n        ce = 40,\n        he = 33,\n        ue = 34,\n        de = function () {\n      function e(e) {\n        var t = e.element;\n        Object.assign(this, {\n          element: t\n        }), this.scrollPos = this.element.scrollTop, this.height = this.element.offsetHeight, this.hasChildren = !!this.element.children;\n      }\n\n      var t = e.prototype;\n      return t.clear = function () {\n        this.element.innerHTML = \"\";\n      }, t.append = function (e) {\n        this.element.appendChild(e);\n      }, t.getChild = function (e) {\n        return this.element.querySelector(e);\n      }, t.scrollToTop = function () {\n        this.element.scrollTop = 0;\n      }, t.scrollToChoice = function (e, t) {\n        var i = this;\n\n        if (e) {\n          var n = this.element.offsetHeight,\n              s = e.offsetHeight,\n              r = e.offsetTop + s,\n              o = this.element.scrollTop + n,\n              a = t > 0 ? this.element.scrollTop + r - o : e.offsetTop;\n          requestAnimationFrame(function (e) {\n            i._animateScroll(e, a, t);\n          });\n        }\n      }, t._scrollDown = function (e, t, i) {\n        var n = (i - e) / t,\n            s = n > 1 ? n : 1;\n        this.element.scrollTop = e + s;\n      }, t._scrollUp = function (e, t, i) {\n        var n = (e - i) / t,\n            s = n > 1 ? n : 1;\n        this.element.scrollTop = e - s;\n      }, t._animateScroll = function (e, t, i) {\n        var n = this,\n            s = this.element.scrollTop,\n            r = !1;\n        i > 0 ? (this._scrollDown(s, 4, t), s < t && (r = !0)) : (this._scrollUp(s, 4, t), s > t && (r = !0)), r && requestAnimationFrame(function () {\n          n._animateScroll(e, t, i);\n        });\n      }, e;\n    }();\n\n    function pe(e, t) {\n      for (var i = 0; i < t.length; i++) {\n        var n = t[i];\n        n.enumerable = n.enumerable || !1, n.configurable = !0, \"value\" in n && (n.writable = !0), Object.defineProperty(e, n.key, n);\n      }\n    }\n\n    var fe = function () {\n      function e(e) {\n        var t = e.element,\n            i = e.classNames;\n        if (Object.assign(this, {\n          element: t,\n          classNames: i\n        }), !I(t)) throw new TypeError(\"Invalid element passed\");\n        this.isDisabled = !1;\n      }\n\n      var t,\n          i,\n          n,\n          s = e.prototype;\n      return s.conceal = function () {\n        this.element.classList.add(this.classNames.input), this.element.classList.add(this.classNames.hiddenState), this.element.tabIndex = \"-1\";\n        var e = this.element.getAttribute(\"style\");\n        e && this.element.setAttribute(\"data-choice-orig-style\", e), this.element.setAttribute(\"aria-hidden\", \"true\"), this.element.setAttribute(\"data-choice\", \"active\");\n      }, s.reveal = function () {\n        this.element.classList.remove(this.classNames.input), this.element.classList.remove(this.classNames.hiddenState), this.element.removeAttribute(\"tabindex\");\n        var e = this.element.getAttribute(\"data-choice-orig-style\");\n        e ? (this.element.removeAttribute(\"data-choice-orig-style\"), this.element.setAttribute(\"style\", e)) : this.element.removeAttribute(\"style\"), this.element.removeAttribute(\"aria-hidden\"), this.element.removeAttribute(\"data-choice\"), this.element.value = this.element.value;\n      }, s.enable = function () {\n        this.element.removeAttribute(\"disabled\"), this.element.disabled = !1, this.isDisabled = !1;\n      }, s.disable = function () {\n        this.element.setAttribute(\"disabled\", \"\"), this.element.disabled = !0, this.isDisabled = !0;\n      }, s.triggerEvent = function (e, t) {\n        !function (e, t, i) {\n          void 0 === i && (i = null);\n          var n = new CustomEvent(t, {\n            detail: i,\n            bubbles: !0,\n            cancelable: !0\n          });\n          e.dispatchEvent(n);\n        }(this.element, e, t);\n      }, t = e, (i = [{\n        key: \"value\",\n        get: function () {\n          return this.element.value;\n        },\n        set: function (e) {\n          this.element.value = e;\n        }\n      }]) && pe(t.prototype, i), n && pe(t, n), e;\n    }();\n\n    function me(e, t) {\n      for (var i = 0; i < t.length; i++) {\n        var n = t[i];\n        n.enumerable = n.enumerable || !1, n.configurable = !0, \"value\" in n && (n.writable = !0), Object.defineProperty(e, n.key, n);\n      }\n    }\n\n    var ve = function (e) {\n      var t, i, n, s, r;\n\n      function o(t) {\n        var i,\n            n = t.element,\n            s = t.classNames,\n            r = t.delimiter;\n        return (i = e.call(this, {\n          element: n,\n          classNames: s\n        }) || this).delimiter = r, i;\n      }\n\n      return i = e, (t = o).prototype = Object.create(i.prototype), t.prototype.constructor = t, t.__proto__ = i, n = o, (s = [{\n        key: \"value\",\n        set: function (e) {\n          var t = e.map(function (e) {\n            return e.value;\n          }).join(this.delimiter);\n          this.element.setAttribute(\"value\", t), this.element.value = t;\n        },\n        get: function () {\n          return this.element.value;\n        }\n      }]) && me(n.prototype, s), r && me(n, r), o;\n    }(fe);\n\n    function ge(e, t) {\n      for (var i = 0; i < t.length; i++) {\n        var n = t[i];\n        n.enumerable = n.enumerable || !1, n.configurable = !0, \"value\" in n && (n.writable = !0), Object.defineProperty(e, n.key, n);\n      }\n    }\n\n    var _e = function (e) {\n      var t, i, n, s, r;\n\n      function o(t) {\n        var i,\n            n = t.element,\n            s = t.classNames,\n            r = t.template;\n        return (i = e.call(this, {\n          element: n,\n          classNames: s\n        }) || this).template = r, i;\n      }\n\n      return i = e, (t = o).prototype = Object.create(i.prototype), t.prototype.constructor = t, t.__proto__ = i, o.prototype.appendDocFragment = function (e) {\n        this.element.innerHTML = \"\", this.element.appendChild(e);\n      }, n = o, (s = [{\n        key: \"placeholderOption\",\n        get: function () {\n          return this.element.querySelector('option[value=\"\"]') || this.element.querySelector(\"option[placeholder]\");\n        }\n      }, {\n        key: \"optionGroups\",\n        get: function () {\n          return Array.from(this.element.getElementsByTagName(\"OPTGROUP\"));\n        }\n      }, {\n        key: \"options\",\n        get: function () {\n          return Array.from(this.element.options);\n        },\n        set: function (e) {\n          var t = this,\n              i = document.createDocumentFragment();\n          e.forEach(function (e) {\n            return n = e, s = t.template(n), void i.appendChild(s);\n            var n, s;\n          }), this.appendDocFragment(i);\n        }\n      }]) && ge(n.prototype, s), r && ge(n, r), o;\n    }(fe),\n        be = i(0),\n        ye = i.n(be),\n        Ee = {\n      containerOuter: function (e, t, i, n, s, r) {\n        var o = n ? 'tabindex=\"0\"' : \"\",\n            a = i ? 'role=\"listbox\"' : \"\",\n            l = \"\";\n        return i && s && (a = 'role=\"combobox\"', l = 'aria-autocomplete=\"list\"'), O('\\n      <div\\n        class=\"' + e.containerOuter + '\"\\n        data-type=\"' + r + '\"\\n        ' + a + \"\\n        \" + o + \"\\n        \" + l + '\\n        aria-haspopup=\"true\"\\n        aria-expanded=\"false\"\\n        dir=\"' + t + '\"\\n        >\\n      </div>\\n    ');\n      },\n      containerInner: function (e) {\n        return O('\\n      <div class=\"' + e.containerInner + '\"></div>\\n    ');\n      },\n      itemList: function (e, t) {\n        var i,\n            n = ye()(e.list, ((i = {})[e.listSingle] = t, i[e.listItems] = !t, i));\n        return O('\\n      <div class=\"' + n + '\"></div>\\n    ');\n      },\n      placeholder: function (e, t) {\n        return O('\\n      <div class=\"' + e.placeholder + '\">\\n        ' + t + \"\\n      </div>\\n    \");\n      },\n      item: function (e, t, i) {\n        var n,\n            s,\n            r = t.active ? 'aria-selected=\"true\"' : \"\",\n            o = t.disabled ? 'aria-disabled=\"true\"' : \"\",\n            a = ye()(e.item, ((n = {})[e.highlightedState] = t.highlighted, n[e.itemSelectable] = !t.highlighted, n[e.placeholder] = t.placeholder, n));\n        return i ? (a = ye()(e.item, ((s = {})[e.highlightedState] = t.highlighted, s[e.itemSelectable] = !t.disabled, s[e.placeholder] = t.placeholder, s)), O('\\n        <div\\n          class=\"' + a + '\"\\n          data-item\\n          data-id=\"' + t.id + '\"\\n          data-value=\"' + t.value + \"\\\"\\n          data-custom-properties='\" + t.customProperties + \"'\\n          data-deletable\\n          \" + r + \"\\n          \" + o + \"\\n          >\\n          \" + t.label + '\\x3c!--\\n       --\\x3e<button\\n            type=\"button\"\\n            class=\"' + e.button + '\"\\n            data-button\\n            aria-label=\"Remove item: \\'' + t.value + \"'\\\"\\n            >\\n            Remove item\\n          </button>\\n        </div>\\n      \")) : O('\\n      <div\\n        class=\"' + a + '\"\\n        data-item\\n        data-id=\"' + t.id + '\"\\n        data-value=\"' + t.value + '\"\\n        ' + r + \"\\n        \" + o + \"\\n        >\\n        \" + t.label + \"\\n      </div>\\n    \");\n      },\n      choiceList: function (e, t) {\n        var i = t ? \"\" : 'aria-multiselectable=\"true\"';\n        return O('\\n      <div\\n        class=\"' + e.list + '\"\\n        dir=\"ltr\"\\n        role=\"listbox\"\\n        ' + i + \"\\n        >\\n      </div>\\n    \");\n      },\n      choiceGroup: function (e, t) {\n        var i,\n            n = t.disabled ? 'aria-disabled=\"true\"' : \"\",\n            s = ye()(e.group, ((i = {})[e.itemDisabled] = t.disabled, i));\n        return O('\\n      <div\\n        class=\"' + s + '\"\\n        data-group\\n        data-id=\"' + t.id + '\"\\n        data-value=\"' + t.value + '\"\\n        role=\"group\"\\n        ' + n + '\\n        >\\n        <div class=\"' + e.groupHeading + '\">' + t.value + \"</div>\\n      </div>\\n    \");\n      },\n      choice: function (e, t, i) {\n        var n,\n            s = t.groupId > 0 ? 'role=\"treeitem\"' : 'role=\"option\"',\n            r = ye()(e.item, e.itemChoice, ((n = {})[e.itemDisabled] = t.disabled, n[e.itemSelectable] = !t.disabled, n[e.placeholder] = t.placeholder, n));\n        return O('\\n      <div\\n        class=\"' + r + '\"\\n        data-select-text=\"' + i + '\"\\n        data-choice\\n        data-id=\"' + t.id + '\"\\n        data-value=\"' + t.value + '\"\\n        ' + (t.disabled ? 'data-choice-disabled aria-disabled=\"true\"' : \"data-choice-selectable\") + '\\n        id=\"' + t.elementId + '\"\\n        ' + s + \"\\n        >\\n        \" + t.label + \"\\n      </div>\\n    \");\n      },\n      input: function (e, t) {\n        var i = ye()(e.input, e.inputCloned);\n        return O('\\n      <input\\n        type=\"text\"\\n        class=\"' + i + '\"\\n        autocomplete=\"off\"\\n        autocapitalize=\"off\"\\n        spellcheck=\"false\"\\n        role=\"textbox\"\\n        aria-autocomplete=\"list\"\\n        aria-label=\"' + t + '\"\\n        >\\n    ');\n      },\n      dropdown: function (e) {\n        var t = ye()(e.list, e.listDropdown);\n        return O('\\n      <div\\n        class=\"' + t + '\"\\n        aria-expanded=\"false\"\\n        >\\n      </div>\\n    ');\n      },\n      notice: function (e, t, i) {\n        var n;\n        void 0 === i && (i = \"\");\n        var s = ye()(e.item, e.itemChoice, ((n = {})[e.noResults] = \"no-results\" === i, n[e.noChoices] = \"no-choices\" === i, n));\n        return O('\\n      <div class=\"' + s + '\">\\n        ' + t + \"\\n      </div>\\n    \");\n      },\n      option: function (e) {\n        return O('\\n      <option value=\"' + e.value + '\" ' + (e.active ? \"selected\" : \"\") + \" \" + (e.disabled ? \"disabled\" : \"\") + \" \" + (e.customProperties ? \"data-custom-properties=\" + e.customProperties : \"\") + \">\" + e.label + \"</option>\\n    \");\n      }\n    },\n        Se = function (e) {\n      return void 0 === e && (e = !0), {\n        type: J,\n        active: e\n      };\n    },\n        Ie = function (e, t) {\n      return {\n        type: ie,\n        id: e,\n        highlighted: t\n      };\n    },\n        we = function (e, t, i, n) {\n      return {\n        type: Q,\n        value: e,\n        id: t,\n        active: i,\n        disabled: n\n      };\n    },\n        Ce = function () {\n      function e(t, i) {\n        var n = this;\n\n        if (void 0 === t && (t = \"[data-choice]\"), void 0 === i && (i = {}), S(\"String\", t)) {\n          var s = Array.from(document.querySelectorAll(t));\n          if (s.length > 1) return this._generateInstances(s, i);\n        }\n\n        this.config = o.a.all([R, e.userDefaults, i], {\n          arrayMerge: function (e, t) {\n            return [].concat(t);\n          }\n        });\n        var r = L(this.config, R);\n        r.length && console.warn(\"Unknown config option(s) passed\", r.join(\", \")), [\"auto\", \"always\"].includes(this.config.renderSelectedChoices) || (this.config.renderSelectedChoices = \"auto\");\n        var a = S(\"String\", t) ? document.querySelector(t) : t;\n\n        if (a) {\n          if (this._isTextElement = \"text\" === a.type, this._isSelectOneElement = \"select-one\" === a.type, this._isSelectMultipleElement = \"select-multiple\" === a.type, this._isSelectElement = this._isSelectOneElement || this._isSelectMultipleElement, this._isTextElement ? this.passedElement = new ve({\n            element: a,\n            classNames: this.config.classNames,\n            delimiter: this.config.delimiter\n          }) : this._isSelectElement && (this.passedElement = new _e({\n            element: a,\n            classNames: this.config.classNames,\n            template: function (e) {\n              return n.config.templates.option(e);\n            }\n          })), !this.passedElement) return console.error(\"Passed element was of an invalid type\");\n          this.initialised = !1, this._store = new F(this.render), this._initialState = {}, this._currentState = {}, this._prevState = {}, this._currentValue = \"\", this._canSearch = this.config.searchEnabled, this._isScrollingOnIe = !1, this._highlightPosition = 0, this._wasTap = !0, this._placeholderValue = this._generatePlaceholderValue(), this._baseId = y(this.passedElement.element, \"choices-\"), this._direction = this.passedElement.element.getAttribute(\"dir\") || \"ltr\", this._idNames = {\n            itemChoice: \"item-choice\"\n          }, this._presetChoices = this.config.choices, this._presetItems = this.config.items, this.passedElement.value && (this._presetItems = this._presetItems.concat(this.passedElement.value.split(this.config.delimiter))), this._render = this._render.bind(this), this._onFocus = this._onFocus.bind(this), this._onBlur = this._onBlur.bind(this), this._onKeyUp = this._onKeyUp.bind(this), this._onKeyDown = this._onKeyDown.bind(this), this._onClick = this._onClick.bind(this), this._onTouchMove = this._onTouchMove.bind(this), this._onTouchEnd = this._onTouchEnd.bind(this), this._onMouseDown = this._onMouseDown.bind(this), this._onMouseOver = this._onMouseOver.bind(this), this._onFormReset = this._onFormReset.bind(this), this._onAKey = this._onAKey.bind(this), this._onEnterKey = this._onEnterKey.bind(this), this._onEscapeKey = this._onEscapeKey.bind(this), this._onDirectionKey = this._onDirectionKey.bind(this), this._onDeleteKey = this._onDeleteKey.bind(this), this.config.silent || (!0 === this.config.shouldSortItems && this._isSelectOneElement && console.warn(\"shouldSortElements: Type of passed element is 'select-one', falling back to false.\"), \"active\" === this.passedElement.element.getAttribute(\"data-choice\") && console.warn(\"Trying to initialise Choices on element already initialised\")), this.init();\n        } else this.config.silent || console.error(\"Could not find passed element or passed element was of an invalid type\");\n      }\n\n      var t = e.prototype;\n      return t.init = function () {\n        if (!this.initialised) {\n          this._createTemplates(), this._createElements(), this._createStructure(), this._initialState = T(this._store.state), this._store.subscribe(this._render), this._render(), this._addEventListeners(), (!this.config.addItems || this.passedElement.element.hasAttribute(\"disabled\")) && this.disable(), this.initialised = !0;\n          var e = this.config.callbackOnInit;\n          e && S(\"Function\", e) && e.call(this);\n        }\n      }, t.destroy = function () {\n        this.initialised && (this._removeEventListeners(), this.passedElement.reveal(), this.containerOuter.unwrap(this.passedElement.element), this._isSelectElement && (this.passedElement.options = this._presetChoices), this.clearStore(), this.config.templates = null, this.initialised = !1);\n      }, t.enable = function () {\n        return this.passedElement.isDisabled && this.passedElement.enable(), this.containerOuter.isDisabled && (this._addEventListeners(), this.input.enable(), this.containerOuter.enable()), this;\n      }, t.disable = function () {\n        return this.passedElement.isDisabled || this.passedElement.disable(), this.containerOuter.isDisabled || (this._removeEventListeners(), this.input.disable(), this.containerOuter.disable()), this;\n      }, t.highlightItem = function (e, t) {\n        if (void 0 === t && (t = !0), !e) return this;\n        var i = e.id,\n            n = e.groupId,\n            s = void 0 === n ? -1 : n,\n            r = e.value,\n            o = void 0 === r ? \"\" : r,\n            a = e.label,\n            l = void 0 === a ? \"\" : a,\n            c = s >= 0 ? this._store.getGroupById(s) : null;\n        return this._store.dispatch(Ie(i, !0)), t && this.passedElement.triggerEvent(z, {\n          id: i,\n          value: o,\n          label: l,\n          groupValue: c && c.value ? c.value : null\n        }), this;\n      }, t.unhighlightItem = function (e) {\n        if (!e) return this;\n        var t = e.id,\n            i = e.groupId,\n            n = void 0 === i ? -1 : i,\n            s = e.value,\n            r = void 0 === s ? \"\" : s,\n            o = e.label,\n            a = void 0 === o ? \"\" : o,\n            l = n >= 0 ? this._store.getGroupById(n) : null;\n        return this._store.dispatch(Ie(t, !1)), this.passedElement.triggerEvent(z, {\n          id: t,\n          value: r,\n          label: a,\n          groupValue: l && l.value ? l.value : null\n        }), this;\n      }, t.highlightAll = function () {\n        var e = this;\n        return this._store.items.forEach(function (t) {\n          return e.highlightItem(t);\n        }), this;\n      }, t.unhighlightAll = function () {\n        var e = this;\n        return this._store.items.forEach(function (t) {\n          return e.unhighlightItem(t);\n        }), this;\n      }, t.removeActiveItemsByValue = function (e) {\n        var t = this;\n        return this._store.activeItems.filter(function (t) {\n          return t.value === e;\n        }).forEach(function (e) {\n          return t._removeItem(e);\n        }), this;\n      }, t.removeActiveItems = function (e) {\n        var t = this;\n        return this._store.activeItems.filter(function (t) {\n          return t.id !== e;\n        }).forEach(function (e) {\n          return t._removeItem(e);\n        }), this;\n      }, t.removeHighlightedItems = function (e) {\n        var t = this;\n        return void 0 === e && (e = !1), this._store.highlightedActiveItems.forEach(function (i) {\n          t._removeItem(i), e && t._triggerChange(i.value);\n        }), this;\n      }, t.showDropdown = function (e) {\n        var t = this;\n        return this.dropdown.isActive ? this : (requestAnimationFrame(function () {\n          t.dropdown.show(), t.containerOuter.open(t.dropdown.distanceFromTopWindow()), !e && t._canSearch && t.input.focus(), t.passedElement.triggerEvent(B, {});\n        }), this);\n      }, t.hideDropdown = function (e) {\n        var t = this;\n        return this.dropdown.isActive ? (requestAnimationFrame(function () {\n          t.dropdown.hide(), t.containerOuter.close(), !e && t._canSearch && (t.input.removeActiveDescendant(), t.input.blur()), t.passedElement.triggerEvent(V, {});\n        }), this) : this;\n      }, t.getValue = function (e) {\n        void 0 === e && (e = !1);\n\n        var t = this._store.activeItems.reduce(function (t, i) {\n          var n = e ? i.value : i;\n          return t.push(n), t;\n        }, []);\n\n        return this._isSelectOneElement ? t[0] : t;\n      }, t.setValue = function (e) {\n        var t = this;\n        return this.initialised ? ([].concat(e).forEach(function (e) {\n          return t._setChoiceOrItem(e);\n        }), this) : this;\n      }, t.setChoiceByValue = function (e) {\n        var t = this;\n        return !this.initialised || this._isTextElement ? this : ((S(\"Array\", e) ? e : [e]).forEach(function (e) {\n          return t._findAndSelectChoiceByValue(e);\n        }), this);\n      }, t.setChoices = function (e, t, i, n) {\n        var s = this;\n        if (void 0 === e && (e = []), void 0 === t && (t = \"\"), void 0 === i && (i = \"\"), void 0 === n && (n = !1), !this._isSelectElement || !t) return this;\n        n && this.clearChoices(), this.containerOuter.removeLoadingState();\n        return this._setLoading(!0), e.forEach(function (e) {\n          e.choices ? s._addGroup({\n            group: e,\n            id: e.id || null,\n            valueKey: t,\n            labelKey: i\n          }) : s._addChoice({\n            value: e[t],\n            label: e[i],\n            isSelected: e.selected,\n            isDisabled: e.disabled,\n            customProperties: e.customProperties,\n            placeholder: e.placeholder\n          });\n        }), this._setLoading(!1), this;\n      }, t.clearChoices = function () {\n        this._store.dispatch({\n          type: Z\n        });\n      }, t.clearStore = function () {\n        return this._store.dispatch({\n          type: \"CLEAR_ALL\"\n        }), this;\n      }, t.clearInput = function () {\n        var e = !this._isSelectOneElement;\n        return this.input.clear(e), !this._isTextElement && this._canSearch && (this._isSearching = !1, this._store.dispatch(Se(!0))), this;\n      }, t.ajax = function (e) {\n        var t = this;\n        return this.initialised && this._isSelectElement && e ? (requestAnimationFrame(function () {\n          return t._handleLoadingState(!0);\n        }), e(this._ajaxCallback()), this) : this;\n      }, t._render = function () {\n        if (!this._store.isLoading()) {\n          this._currentState = this._store.state;\n          var e = this._currentState.choices !== this._prevState.choices || this._currentState.groups !== this._prevState.groups || this._currentState.items !== this._prevState.items,\n              t = this._isSelectElement,\n              i = this._currentState.items !== this._prevState.items;\n          e && (t && this._renderChoices(), i && this._renderItems(), this._prevState = this._currentState);\n        }\n      }, t._renderChoices = function () {\n        var e = this,\n            t = this._store,\n            i = t.activeGroups,\n            n = t.activeChoices,\n            s = document.createDocumentFragment();\n\n        if (this.choiceList.clear(), this.config.resetScrollPosition && requestAnimationFrame(function () {\n          return e.choiceList.scrollToTop();\n        }), i.length >= 1 && !this._isSearching) {\n          var r = n.filter(function (e) {\n            return !0 === e.placeholder && -1 === e.groupId;\n          });\n          r.length >= 1 && (s = this._createChoicesFragment(r, s)), s = this._createGroupsFragment(i, n, s);\n        } else n.length >= 1 && (s = this._createChoicesFragment(n, s));\n\n        if (s.childNodes && s.childNodes.length > 0) {\n          var o = this._store.activeItems,\n              a = this._canAddItem(o, this.input.value);\n\n          a.response ? (this.choiceList.append(s), this._highlightChoice()) : this.choiceList.append(this._getTemplate(\"notice\", a.notice));\n        } else {\n          var l, c;\n          this._isSearching ? (c = S(\"Function\", this.config.noResultsText) ? this.config.noResultsText() : this.config.noResultsText, l = this._getTemplate(\"notice\", c, \"no-results\")) : (c = S(\"Function\", this.config.noChoicesText) ? this.config.noChoicesText() : this.config.noChoicesText, l = this._getTemplate(\"notice\", c, \"no-choices\")), this.choiceList.append(l);\n        }\n      }, t._renderItems = function () {\n        var e = this._store.activeItems || [];\n        this.itemList.clear();\n\n        var t = this._createItemsFragment(e);\n\n        t.childNodes && this.itemList.append(t);\n      }, t._createGroupsFragment = function (e, t, i) {\n        var n = this,\n            s = i || document.createDocumentFragment();\n        return this.config.shouldSort && e.sort(this.config.sortFn), e.forEach(function (e) {\n          var i = function (e) {\n            return t.filter(function (t) {\n              return n._isSelectOneElement ? t.groupId === e.id : t.groupId === e.id && (\"always\" === n.config.renderSelectedChoices || !t.selected);\n            });\n          }(e);\n\n          if (i.length >= 1) {\n            var r = n._getTemplate(\"choiceGroup\", e);\n\n            s.appendChild(r), n._createChoicesFragment(i, s, !0);\n          }\n        }), s;\n      }, t._createChoicesFragment = function (e, t, i) {\n        var n = this;\n        void 0 === i && (i = !1);\n\n        var s = t || document.createDocumentFragment(),\n            r = this.config,\n            o = r.renderSelectedChoices,\n            a = r.searchResultLimit,\n            l = r.renderChoiceLimit,\n            c = this._isSearching ? A : this.config.sortFn,\n            h = function (e) {\n          if (\"auto\" !== o || n._isSelectOneElement || !e.selected) {\n            var t = n._getTemplate(\"choice\", e, n.config.itemSelectText);\n\n            s.appendChild(t);\n          }\n        },\n            u = e;\n\n        \"auto\" !== o || this._isSelectOneElement || (u = e.filter(function (e) {\n          return !e.selected;\n        }));\n        var d = u.reduce(function (e, t) {\n          return t.placeholder ? e.placeholderChoices.push(t) : e.normalChoices.push(t), e;\n        }, {\n          placeholderChoices: [],\n          normalChoices: []\n        }),\n            p = d.placeholderChoices,\n            f = d.normalChoices;\n        (this.config.shouldSort || this._isSearching) && f.sort(c);\n        var m = u.length,\n            v = [].concat(p, f);\n        this._isSearching ? m = a : l > 0 && !i && (m = l);\n\n        for (var g = 0; g < m; g += 1) v[g] && h(v[g]);\n\n        return s;\n      }, t._createItemsFragment = function (e, t) {\n        var i = this;\n        void 0 === t && (t = null);\n        var n = this.config,\n            s = n.shouldSortItems,\n            r = n.sortFn,\n            o = n.removeItemButton,\n            a = t || document.createDocumentFragment();\n        s && !this._isSelectOneElement && e.sort(r), this._isTextElement ? this.passedElement.value = e : this.passedElement.options = e;\n        return e.forEach(function (e) {\n          return function (e) {\n            var t = i._getTemplate(\"item\", e, o);\n\n            a.appendChild(t);\n          }(e);\n        }), a;\n      }, t._triggerChange = function (e) {\n        null != e && this.passedElement.triggerEvent(H, {\n          value: e\n        });\n      }, t._selectPlaceholderChoice = function () {\n        var e = this._store.placeholderChoice;\n        e && (this._addItem({\n          value: e.value,\n          label: e.label,\n          choiceId: e.id,\n          groupId: e.groupId,\n          placeholder: e.placeholder\n        }), this._triggerChange(e.value));\n      }, t._handleButtonAction = function (e, t) {\n        if (e && t && this.config.removeItems && this.config.removeItemButton) {\n          var i = t.parentNode.getAttribute(\"data-id\"),\n              n = e.find(function (e) {\n            return e.id === parseInt(i, 10);\n          });\n          this._removeItem(n), this._triggerChange(n.value), this._isSelectOneElement && this._selectPlaceholderChoice();\n        }\n      }, t._handleItemAction = function (e, t, i) {\n        var n = this;\n\n        if (void 0 === i && (i = !1), e && t && this.config.removeItems && !this._isSelectOneElement) {\n          var s = t.getAttribute(\"data-id\");\n          e.forEach(function (e) {\n            e.id !== parseInt(s, 10) || e.highlighted ? !i && e.highlighted && n.unhighlightItem(e) : n.highlightItem(e);\n          }), this.input.focus();\n        }\n      }, t._handleChoiceAction = function (e, t) {\n        if (e && t) {\n          var i = t.getAttribute(\"data-id\"),\n              n = this._store.getChoiceById(i),\n              s = e[0] && e[0].keyCode ? e[0].keyCode : null,\n              r = this.dropdown.isActive;\n\n          if (n.keyCode = s, this.passedElement.triggerEvent(G, {\n            choice: n\n          }), n && !n.selected && !n.disabled) this._canAddItem(e, n.value).response && (this._addItem({\n            value: n.value,\n            label: n.label,\n            choiceId: n.id,\n            groupId: n.groupId,\n            customProperties: n.customProperties,\n            placeholder: n.placeholder,\n            keyCode: n.keyCode\n          }), this._triggerChange(n.value));\n          this.clearInput(), r && this._isSelectOneElement && (this.hideDropdown(!0), this.containerOuter.focus());\n        }\n      }, t._handleBackspace = function (e) {\n        if (this.config.removeItems && e) {\n          var t = e[e.length - 1],\n              i = e.some(function (e) {\n            return e.highlighted;\n          });\n          this.config.editItems && !i && t ? (this.input.value = t.value, this.input.setWidth(), this._removeItem(t), this._triggerChange(t.value)) : (i || this.highlightItem(t, !1), this.removeHighlightedItems(!0));\n        }\n      }, t._setLoading = function (e) {\n        this._store.dispatch(function (e) {\n          return {\n            type: \"SET_IS_LOADING\",\n            isLoading: e\n          };\n        }(e));\n      }, t._handleLoadingState = function (e) {\n        void 0 === e && (e = !0);\n        var t = this.itemList.getChild(\".\" + this.config.classNames.placeholder);\n        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.innerHTML = this._placeholderValue || \"\" : this.input.placeholder = this._placeholderValue || \"\");\n      }, t._handleSearch = function (e) {\n        if (e && this.input.isFocussed) {\n          var t = this._store.choices,\n              i = this.config,\n              n = i.searchFloor,\n              s = i.searchChoices,\n              r = t.some(function (e) {\n            return !e.active;\n          });\n\n          if (e && e.length >= n) {\n            var o = s ? this._searchChoices(e) : 0;\n            this.passedElement.triggerEvent(q, {\n              value: e,\n              resultCount: o\n            });\n          } else r && (this._isSearching = !1, this._store.dispatch(Se(!0)));\n        }\n      }, t._canAddItem = function (e, t) {\n        var i = !0,\n            n = S(\"Function\", this.config.addItemText) ? this.config.addItemText(t) : this.config.addItemText;\n\n        if (!this._isSelectOneElement) {\n          var s = function (e, t, i) {\n            return void 0 === i && (i = \"value\"), e.some(function (e) {\n              return S(\"String\", t) ? e[i] === t.trim() : e[i] === t;\n            });\n          }(e, t);\n\n          this.config.maxItemCount > 0 && this.config.maxItemCount <= e.length && (i = !1, n = S(\"Function\", this.config.maxItemText) ? this.config.maxItemText(this.config.maxItemCount) : this.config.maxItemText), !this.config.duplicateItemsAllowed && s && i && (i = !1, n = S(\"Function\", this.config.uniqueItemText) ? this.config.uniqueItemText(t) : this.config.uniqueItemText), this._isTextElement && this.config.addItems && i && S(\"Function\", this.config.addItemFilterFn) && !this.config.addItemFilterFn(t) && (i = !1, n = S(\"Function\", this.config.customAddItemText) ? this.config.customAddItemText(t) : this.config.customAddItemText);\n        }\n\n        return {\n          response: i,\n          notice: n\n        };\n      }, t._ajaxCallback = function () {\n        var e = this;\n        return function (t, i, n) {\n          if (t && i) {\n            var s = S(\"Object\", t) ? [t] : t;\n            s && S(\"Array\", s) && s.length ? (e._handleLoadingState(!1), e._setLoading(!0), s.forEach(function (t) {\n              t.choices ? e._addGroup({\n                group: t,\n                id: t.id || null,\n                valueKey: i,\n                labelKey: n\n              }) : e._addChoice({\n                value: x(t, i),\n                label: x(t, n),\n                isSelected: t.selected,\n                isDisabled: t.disabled,\n                customProperties: t.customProperties,\n                placeholder: t.placeholder\n              });\n            }), e._setLoading(!1), e._isSelectOneElement && e._selectPlaceholderChoice()) : e._handleLoadingState(!1);\n          }\n        };\n      }, t._searchChoices = function (e) {\n        var t = S(\"String\", e) ? e.trim() : e,\n            i = S(\"String\", this._currentValue) ? this._currentValue.trim() : this._currentValue;\n        if (t.length < 1 && t === i + \" \") return 0;\n        var n = this._store.searchableChoices,\n            r = t,\n            o = [].concat(this.config.searchFields),\n            a = Object.assign(this.config.fuseOptions, {\n          keys: o\n        }),\n            l = new s.a(n, a).search(r);\n        return this._currentValue = t, this._highlightPosition = 0, this._isSearching = !0, this._store.dispatch(function (e) {\n          return {\n            type: $,\n            results: e\n          };\n        }(l)), l.length;\n      }, t._addEventListeners = function () {\n        window.delegateEvent.add(\"keyup\", this._onKeyUp), window.delegateEvent.add(\"keydown\", this._onKeyDown), window.delegateEvent.add(\"click\", this._onClick), window.delegateEvent.add(\"touchmove\", this._onTouchMove), window.delegateEvent.add(\"touchend\", this._onTouchEnd), window.delegateEvent.add(\"mousedown\", this._onMouseDown), window.delegateEvent.add(\"mouseover\", this._onMouseOver), this._isSelectOneElement && (this.containerOuter.element.addEventListener(\"focus\", this._onFocus), this.containerOuter.element.addEventListener(\"blur\", this._onBlur)), this.input.element.addEventListener(\"focus\", this._onFocus), this.input.element.addEventListener(\"blur\", this._onBlur), this.input.element.form && this.input.element.form.addEventListener(\"reset\", this._onFormReset), this.input.addEventListeners();\n      }, t._removeEventListeners = function () {\n        window.delegateEvent.remove(\"keyup\", this._onKeyUp), window.delegateEvent.remove(\"keydown\", this._onKeyDown), window.delegateEvent.remove(\"click\", this._onClick), window.delegateEvent.remove(\"touchmove\", this._onTouchMove), window.delegateEvent.remove(\"touchend\", this._onTouchEnd), window.delegateEvent.remove(\"mousedown\", this._onMouseDown), window.delegateEvent.remove(\"mouseover\", this._onMouseOver), this._isSelectOneElement && (this.containerOuter.element.removeEventListener(\"focus\", this._onFocus), this.containerOuter.element.removeEventListener(\"blur\", this._onBlur)), this.input.element.removeEventListener(\"focus\", this._onFocus), this.input.element.removeEventListener(\"blur\", this._onBlur), this.input.element.form && this.input.element.form.removeEventListener(\"reset\", this._onFormReset), this.input.removeEventListeners();\n      }, t._onKeyDown = function (e) {\n        var t,\n            i = e.target,\n            n = e.keyCode,\n            s = e.ctrlKey,\n            r = e.metaKey;\n\n        if (i === this.input.element || this.containerOuter.element.contains(i)) {\n          var o = this._store.activeItems,\n              a = this.input.isFocussed,\n              l = this.dropdown.isActive,\n              c = this.itemList.hasChildren,\n              h = String.fromCharCode(n),\n              u = ne,\n              d = se,\n              p = re,\n              f = oe,\n              m = ae,\n              v = le,\n              g = ce,\n              _ = he,\n              b = ue,\n              y = s || r;\n          !this._isTextElement && /[a-zA-Z0-9-_ ]/.test(h) && this.showDropdown();\n          var E = ((t = {})[f] = this._onAKey, t[p] = this._onEnterKey, t[m] = this._onEscapeKey, t[v] = this._onDirectionKey, t[_] = this._onDirectionKey, t[g] = this._onDirectionKey, t[b] = this._onDirectionKey, t[d] = this._onDeleteKey, t[u] = this._onDeleteKey, t);\n          E[n] && E[n]({\n            event: e,\n            target: i,\n            keyCode: n,\n            metaKey: r,\n            activeItems: o,\n            hasFocusedInput: a,\n            hasActiveDropdown: l,\n            hasItems: c,\n            hasCtrlDownKeyPressed: y\n          });\n        }\n      }, t._onKeyUp = function (e) {\n        var t = e.target,\n            i = e.keyCode;\n\n        if (t === this.input.element) {\n          var n = this.input.value,\n              s = this._store.activeItems,\n              r = this._canAddItem(s, n),\n              o = ne,\n              a = se;\n\n          if (this._isTextElement) {\n            if (r.notice && n) {\n              var l = this._getTemplate(\"notice\", r.notice);\n\n              this.dropdown.element.innerHTML = l.outerHTML, this.showDropdown(!0);\n            } else this.hideDropdown(!0);\n          } else {\n            var c = (i === o || i === a) && !t.value,\n                h = !this._isTextElement && this._isSearching,\n                u = this._canSearch && r.response;\n            c && h ? (this._isSearching = !1, this._store.dispatch(Se(!0))) : u && this._handleSearch(this.input.value);\n          }\n\n          this._canSearch = this.config.searchEnabled;\n        }\n      }, t._onAKey = function (e) {\n        var t = e.hasItems;\n        e.hasCtrlDownKeyPressed && t && (this._canSearch = !1, this.config.removeItems && !this.input.value && this.input.element === document.activeElement && this.highlightAll());\n      }, t._onEnterKey = function (e) {\n        var t = e.event,\n            i = e.target,\n            n = e.activeItems,\n            s = e.hasActiveDropdown,\n            r = re,\n            o = i.hasAttribute(\"data-button\");\n\n        if (this._isTextElement && i.value) {\n          var a = this.input.value;\n          this._canAddItem(n, a).response && (this.hideDropdown(!0), this._addItem({\n            value: a\n          }), this._triggerChange(a), this.clearInput());\n        }\n\n        if (o && (this._handleButtonAction(n, i), t.preventDefault()), s) {\n          var l = this.dropdown.getChild(\".\" + this.config.classNames.highlightedState);\n          l && (n[0] && (n[0].keyCode = r), this._handleChoiceAction(n, l)), t.preventDefault();\n        } else this._isSelectOneElement && (this.showDropdown(), t.preventDefault());\n      }, t._onEscapeKey = function (e) {\n        e.hasActiveDropdown && (this.hideDropdown(!0), this.containerOuter.focus());\n      }, t._onDirectionKey = function (e) {\n        var t = e.event,\n            i = e.hasActiveDropdown,\n            n = e.keyCode,\n            s = e.metaKey,\n            r = ce,\n            o = he,\n            a = ue;\n\n        if (i || this._isSelectOneElement) {\n          this.showDropdown(), this._canSearch = !1;\n          var l,\n              c = n === r || n === a ? 1 : -1;\n          if (s || n === a || n === o) l = c > 0 ? Array.from(this.dropdown.element.querySelectorAll(\"[data-choice-selectable]\")).pop() : this.dropdown.element.querySelector(\"[data-choice-selectable]\");else {\n            var h = this.dropdown.element.querySelector(\".\" + this.config.classNames.highlightedState);\n            l = h ? function (e, t, i) {\n              if (void 0 === i && (i = 1), e && t) {\n                var n = e.parentNode.parentNode,\n                    s = Array.from(n.querySelectorAll(t)),\n                    r = s.indexOf(e);\n                return s[r + (i > 0 ? 1 : -1)];\n              }\n            }(h, \"[data-choice-selectable]\", c) : this.dropdown.element.querySelector(\"[data-choice-selectable]\");\n          }\n          l && (function (e, t, i) {\n            if (void 0 === i && (i = 1), e) return i > 0 ? t.scrollTop + t.offsetHeight >= e.offsetTop + e.offsetHeight : e.offsetTop >= t.scrollTop;\n          }(l, this.choiceList.element, c) || this.choiceList.scrollToChoice(l, c), this._highlightChoice(l)), t.preventDefault();\n        }\n      }, t._onDeleteKey = function (e) {\n        var t = e.event,\n            i = e.target,\n            n = e.hasFocusedInput,\n            s = e.activeItems;\n        !n || i.value || this._isSelectOneElement || (this._handleBackspace(s), t.preventDefault());\n      }, t._onTouchMove = function () {\n        this._wasTap && (this._wasTap = !1);\n      }, t._onTouchEnd = function (e) {\n        var t = (e || e.touches[0]).target;\n        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());\n        this._wasTap = !0;\n      }, t._onMouseDown = function (e) {\n        var t = e.target,\n            i = e.shiftKey;\n\n        if (this.choiceList.element.contains(t) && navigator.userAgent.match(/Trident/) && navigator.userAgent.match(/rv[ :]11/) && (this._isScrollingOnIe = !0), this.containerOuter.element.contains(t) && t !== this.input.element) {\n          var n = this._store.activeItems,\n              s = i,\n              r = w(t, \"data-button\"),\n              o = w(t, \"data-item\"),\n              a = w(t, \"data-choice\");\n          r ? this._handleButtonAction(n, r) : o ? this._handleItemAction(n, o, s) : a && this._handleChoiceAction(n, a), e.preventDefault();\n        }\n      }, t._onMouseOver = function (e) {\n        var t = e.target;\n        (t === this.dropdown || this.dropdown.element.contains(t)) && t.hasAttribute(\"data-choice\") && this._highlightChoice(t);\n      }, t._onClick = function (e) {\n        var t = e.target;\n        this.containerOuter.element.contains(t) ? this.dropdown.isActive || this.containerOuter.isDisabled ? this._isSelectOneElement && t !== this.input.element && !this.dropdown.element.contains(t) && this.hideDropdown() : this._isTextElement ? document.activeElement !== this.input.element && this.input.focus() : (this.showDropdown(), this.containerOuter.focus()) : (this._store.highlightedActiveItems.length > 0 && this.unhighlightAll(), this.containerOuter.removeFocusState(), this.hideDropdown(!0));\n      }, t._onFocus = function (e) {\n        var t = this,\n            i = e.target;\n        this.containerOuter.element.contains(i) && {\n          text: function () {\n            i === t.input.element && t.containerOuter.addFocusState();\n          },\n          \"select-one\": function () {\n            t.containerOuter.addFocusState(), i === t.input.element && t.showDropdown(!0);\n          },\n          \"select-multiple\": function () {\n            i === t.input.element && (t.showDropdown(!0), t.containerOuter.addFocusState());\n          }\n        }[this.passedElement.element.type]();\n      }, t._onBlur = function (e) {\n        var t = this,\n            i = e.target;\n\n        if (this.containerOuter.element.contains(i) && !this._isScrollingOnIe) {\n          var n = this._store.activeItems.some(function (e) {\n            return e.highlighted;\n          });\n\n          ({\n            text: function () {\n              i === t.input.element && (t.containerOuter.removeFocusState(), n && t.unhighlightAll(), t.hideDropdown(!0));\n            },\n            \"select-one\": function () {\n              t.containerOuter.removeFocusState(), (i === t.input.element || i === t.containerOuter.element && !t._canSearch) && t.hideDropdown(!0);\n            },\n            \"select-multiple\": function () {\n              i === t.input.element && (t.containerOuter.removeFocusState(), t.hideDropdown(!0), n && t.unhighlightAll());\n            }\n          })[this.passedElement.element.type]();\n        } else this._isScrollingOnIe = !1, this.input.element.focus();\n      }, t._onFormReset = function () {\n        this._store.dispatch({\n          type: \"RESET_TO\",\n          state: this._initialState\n        });\n      }, t._highlightChoice = function (e) {\n        var t = this;\n        void 0 === e && (e = null);\n        var i = Array.from(this.dropdown.element.querySelectorAll(\"[data-choice-selectable]\"));\n\n        if (i.length) {\n          var n = e;\n          Array.from(this.dropdown.element.querySelectorAll(\".\" + this.config.classNames.highlightedState)).forEach(function (e) {\n            e.classList.remove(t.config.classNames.highlightedState), e.setAttribute(\"aria-selected\", \"false\");\n          }), n ? this._highlightPosition = i.indexOf(n) : (n = i.length > this._highlightPosition ? i[this._highlightPosition] : i[i.length - 1]) || (n = i[0]), n.classList.add(this.config.classNames.highlightedState), n.setAttribute(\"aria-selected\", \"true\"), this.passedElement.triggerEvent(X, {\n            el: n\n          }), this.dropdown.isActive && (this.input.setActiveDescendant(n.id), this.containerOuter.setActiveDescendant(n.id));\n        }\n      }, t._addItem = function (e) {\n        var t = e.value,\n            i = e.label,\n            n = void 0 === i ? null : i,\n            s = e.choiceId,\n            r = void 0 === s ? -1 : s,\n            o = e.groupId,\n            a = void 0 === o ? -1 : o,\n            l = e.customProperties,\n            c = void 0 === l ? null : l,\n            h = e.placeholder,\n            u = void 0 !== h && h,\n            d = e.keyCode,\n            p = void 0 === d ? null : d,\n            f = S(\"String\", t) ? t.trim() : t,\n            m = p,\n            v = c,\n            g = this._store.items,\n            _ = n || f,\n            b = parseInt(r, 10) || -1,\n            y = a >= 0 ? this._store.getGroupById(a) : null,\n            E = g ? g.length + 1 : 1;\n\n        return this.config.prependValue && (f = this.config.prependValue + f.toString()), this.config.appendValue && (f += this.config.appendValue.toString()), this._store.dispatch(function (e) {\n          var t = e.value,\n              i = e.label,\n              n = e.id,\n              s = e.choiceId,\n              r = e.groupId,\n              o = e.customProperties,\n              a = e.placeholder,\n              l = e.keyCode;\n          return {\n            type: ee,\n            value: t,\n            label: i,\n            id: n,\n            choiceId: s,\n            groupId: r,\n            customProperties: o,\n            placeholder: a,\n            keyCode: l\n          };\n        }({\n          value: f,\n          label: _,\n          id: E,\n          choiceId: b,\n          groupId: a,\n          customProperties: c,\n          placeholder: u,\n          keyCode: m\n        })), this._isSelectOneElement && this.removeActiveItems(E), this.passedElement.triggerEvent(W, {\n          id: E,\n          value: f,\n          label: _,\n          customProperties: v,\n          groupValue: y && y.value ? y.value : void 0,\n          keyCode: m\n        }), this;\n      }, t._removeItem = function (e) {\n        if (!e || !S(\"Object\", e)) return this;\n        var t = e.id,\n            i = e.value,\n            n = e.label,\n            s = e.choiceId,\n            r = e.groupId,\n            o = r >= 0 ? this._store.getGroupById(r) : null;\n        return this._store.dispatch(function (e, t) {\n          return {\n            type: te,\n            id: e,\n            choiceId: t\n          };\n        }(t, s)), o && o.value ? this.passedElement.triggerEvent(U, {\n          id: t,\n          value: i,\n          label: n,\n          groupValue: o.value\n        }) : this.passedElement.triggerEvent(U, {\n          id: t,\n          value: i,\n          label: n\n        }), this;\n      }, t._addChoice = function (e) {\n        var t = e.value,\n            i = e.label,\n            n = void 0 === i ? null : i,\n            s = e.isSelected,\n            r = void 0 !== s && s,\n            o = e.isDisabled,\n            a = void 0 !== o && o,\n            l = e.groupId,\n            c = void 0 === l ? -1 : l,\n            h = e.customProperties,\n            u = void 0 === h ? null : h,\n            d = e.placeholder,\n            p = void 0 !== d && d,\n            f = e.keyCode,\n            m = void 0 === f ? null : f;\n\n        if (null != t) {\n          var v = this._store.choices,\n              g = n || t,\n              _ = v ? v.length + 1 : 1,\n              b = this._baseId + \"-\" + this._idNames.itemChoice + \"-\" + _;\n\n          this._store.dispatch(function (e) {\n            var t = e.value,\n                i = e.label,\n                n = e.id,\n                s = e.groupId,\n                r = e.disabled,\n                o = e.elementId,\n                a = e.customProperties,\n                l = e.placeholder,\n                c = e.keyCode;\n            return {\n              type: Y,\n              value: t,\n              label: i,\n              id: n,\n              groupId: s,\n              disabled: r,\n              elementId: o,\n              customProperties: a,\n              placeholder: l,\n              keyCode: c\n            };\n          }({\n            value: t,\n            label: g,\n            id: _,\n            groupId: c,\n            disabled: a,\n            elementId: b,\n            customProperties: u,\n            placeholder: p,\n            keyCode: m\n          })), r && this._addItem({\n            value: t,\n            label: g,\n            choiceId: _,\n            customProperties: u,\n            placeholder: p,\n            keyCode: m\n          });\n        }\n      }, t._addGroup = function (e) {\n        var t = this,\n            i = e.group,\n            n = e.id,\n            s = e.valueKey,\n            r = void 0 === s ? \"value\" : s,\n            o = e.labelKey,\n            a = void 0 === o ? \"label\" : o,\n            l = S(\"Object\", i) ? i.choices : Array.from(i.getElementsByTagName(\"OPTION\")),\n            c = n || Math.floor(new Date().valueOf() * Math.random()),\n            h = !!i.disabled && i.disabled;\n\n        if (l) {\n          this._store.dispatch(we(i.label, c, !0, h));\n\n          l.forEach(function (e) {\n            var i = e.disabled || e.parentNode && e.parentNode.disabled;\n\n            t._addChoice({\n              value: e[r],\n              label: S(\"Object\", e) ? e[a] : e.innerHTML,\n              isSelected: e.selected,\n              isDisabled: i,\n              groupId: c,\n              customProperties: e.customProperties,\n              placeholder: e.placeholder\n            });\n          });\n        } else this._store.dispatch(we(i.label, i.id, !1, i.disabled));\n      }, t._getTemplate = function (e) {\n        var t;\n        if (!e) return null;\n\n        for (var i = this.config, n = i.templates, s = i.classNames, r = arguments.length, o = new Array(r > 1 ? r - 1 : 0), a = 1; a < r; a++) o[a - 1] = arguments[a];\n\n        return (t = n[e]).call.apply(t, [this, s].concat(o));\n      }, t._createTemplates = function () {\n        var e = this.config.callbackOnCreateTemplates,\n            t = {};\n        e && S(\"Function\", e) && (t = e.call(this, O)), this.config.templates = o()(Ee, t);\n      }, t._createElements = function () {\n        this.containerOuter = new M({\n          element: this._getTemplate(\"containerOuter\", this._direction, this._isSelectElement, this._isSelectOneElement, this.config.searchEnabled, this.passedElement.element.type),\n          classNames: this.config.classNames,\n          type: this.passedElement.element.type,\n          position: this.config.position\n        }), this.containerInner = new M({\n          element: this._getTemplate(\"containerInner\"),\n          classNames: this.config.classNames,\n          type: this.passedElement.element.type,\n          position: this.config.position\n        }), this.input = new K({\n          element: this._getTemplate(\"input\", this._placeholderValue),\n          classNames: this.config.classNames,\n          type: this.passedElement.element.type\n        }), this.choiceList = new de({\n          element: this._getTemplate(\"choiceList\", this._isSelectOneElement)\n        }), this.itemList = new de({\n          element: this._getTemplate(\"itemList\", this._isSelectOneElement)\n        }), this.dropdown = new j({\n          element: this._getTemplate(\"dropdown\"),\n          classNames: this.config.classNames,\n          type: this.passedElement.element.type\n        });\n      }, t._createStructure = function () {\n        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(!0)), 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._addPredefinedChoices() : this._isTextElement && this._addPredefinedItems();\n      }, t._addPredefinedChoices = function () {\n        var e = this,\n            t = this.passedElement.optionGroups;\n\n        if (this._highlightPosition = 0, this._isSearching = !1, this._setLoading(!0), t && t.length) {\n          var i = this.passedElement.placeholderOption;\n          i && \"SELECT\" === i.parentNode.tagName && this._addChoice({\n            value: i.value,\n            label: i.innerHTML,\n            isSelected: i.selected,\n            isDisabled: i.disabled,\n            placeholder: !0\n          }), t.forEach(function (t) {\n            return e._addGroup({\n              group: t,\n              id: t.id || null\n            });\n          });\n        } else {\n          var n = this.passedElement.options,\n              s = this.config.sortFn,\n              r = this._presetChoices;\n          n.forEach(function (e) {\n            r.push({\n              value: e.value,\n              label: e.innerHTML,\n              selected: e.selected,\n              disabled: e.disabled || e.parentNode.disabled,\n              placeholder: e.hasAttribute(\"placeholder\"),\n              customProperties: e.getAttribute(\"data-custom-properties\")\n            });\n          }), this.config.shouldSort && r.sort(s);\n          var o = r.some(function (e) {\n            return e.selected;\n          });\n          r.forEach(function (t, i) {\n            return function (t, i) {\n              var n = t.value,\n                  s = t.label,\n                  r = t.customProperties,\n                  a = t.placeholder;\n              if (e._isSelectElement) {\n                if (t.choices) e._addGroup({\n                  group: t,\n                  id: t.id || null\n                });else {\n                  var l = e._isSelectOneElement && !o && 0 === i,\n                      c = !!l || t.selected,\n                      h = !l && t.disabled;\n\n                  e._addChoice({\n                    value: n,\n                    label: s,\n                    isSelected: c,\n                    isDisabled: h,\n                    customProperties: r,\n                    placeholder: a\n                  });\n                }\n              } else e._addChoice({\n                value: n,\n                label: s,\n                isSelected: t.selected,\n                isDisabled: t.disabled,\n                customProperties: r,\n                placeholder: a\n              });\n            }(t, i);\n          });\n        }\n\n        this._setLoading(!1);\n      }, t._addPredefinedItems = function () {\n        var e = this;\n\n        this._presetItems.forEach(function (t) {\n          return function (t) {\n            var i = E(t);\n            \"Object\" === i && t.value ? e._addItem({\n              value: t.value,\n              label: t.label,\n              choiceId: t.id,\n              customProperties: t.customProperties,\n              placeholder: t.placeholder\n            }) : \"String\" === i && e._addItem({\n              value: t\n            });\n          }(t);\n        });\n      }, t._setChoiceOrItem = function (e) {\n        var t = this;\n        ({\n          object: function () {\n            e.value && (t._isTextElement ? t._addItem({\n              value: e.value,\n              label: e.label,\n              choiceId: e.id,\n              customProperties: e.customProperties,\n              placeholder: e.placeholder\n            }) : t._addChoice({\n              value: e.value,\n              label: e.label,\n              isSelected: !0,\n              isDisabled: !1,\n              customProperties: e.customProperties,\n              placeholder: e.placeholder\n            }));\n          },\n          string: function () {\n            t._isTextElement ? t._addItem({\n              value: e\n            }) : t._addChoice({\n              value: e,\n              label: e,\n              isSelected: !0,\n              isDisabled: !1\n            });\n          }\n        })[E(e).toLowerCase()]();\n      }, t._findAndSelectChoiceByValue = function (e) {\n        var t = this,\n            i = this._store.choices.find(function (i) {\n          return t.config.itemComparer(i.value, e);\n        });\n\n        i && !i.selected && this._addItem({\n          value: i.value,\n          label: i.label,\n          choiceId: i.id,\n          groupId: i.groupId,\n          customProperties: i.customProperties,\n          placeholder: i.placeholder,\n          keyCode: i.keyCode\n        });\n      }, t._generateInstances = function (t, i) {\n        return t.reduce(function (t, n) {\n          return t.push(new e(n, i)), t;\n        }, [this]);\n      }, t._generatePlaceholderValue = function () {\n        return !this._isSelectOneElement && !!this.config.placeholder && (this.config.placeholderValue || this.passedElement.element.getAttribute(\"placeholder\"));\n      }, e;\n    }();\n\n    Ce.userDefaults = {};\n    t.default = Ce;\n  }]).default;\n});","export default () => {\n  const anchors = document.querySelectorAll('a')\n\n  anchors.forEach((anchor) => {\n    // prevents default event from firing on empty anchors, disabled anchors\n    anchor.addEventListener('click', (e) => {\n      if (anchor.getAttribute('href') === '#' || anchor.classList.contains('disabled')) {\n        e.preventDefault();\n      }\n    })\n  })\n}\n","import Choices from 'choices.js'\n\nconst options = {\n  classNames: {\n    hiddenState: 'd-none'\n  },\n  removeItemButton: true,\n  shouldSort: false,\n}\n\nif (gon.locale === 'fr') {\n  options.noResultsText = 'Aucun résultat trouvé'\n  options.noChoicesText = 'Aucun choix possible'\n  options.itemSelectText = 'Sélectionner'\n}\n\nconst nodes = []\n\nexport default () => {\n  const selects = document.querySelectorAll('.choices')\n\n  selects.forEach((element) => {\n    const choices = new Choices(element, options)\n\n    nodes.push(choices)\n  })\n}\n","import links from './links';\nimport multiChoiceSelects from './multi-choice-selects';\n\nexport default () => {\n  links();\n  multiChoiceSelects();\n}\n","/*!\n * Toastify js 1.12.0\n * https://github.com/apvarun/toastify-js\n * @license MIT licensed\n *\n * Copyright (C) 2018 Varun A P\n */\n(function (root, factory) {\n  if (typeof module === \"object\" && module.exports) {\n    module.exports = factory();\n  } else {\n    root.Toastify = factory();\n  }\n})(this, function (global) {\n  // Object initialization\n  var Toastify = function (options) {\n    // Returning a new init object\n    return new Toastify.lib.init(options);\n  },\n      // Library version\n  version = \"1.12.0\"; // Set the default global options\n\n\n  Toastify.defaults = {\n    oldestFirst: true,\n    text: \"Toastify is awesome!\",\n    node: undefined,\n    duration: 3000,\n    selector: undefined,\n    callback: function () {},\n    destination: undefined,\n    newWindow: false,\n    close: false,\n    gravity: \"toastify-top\",\n    positionLeft: false,\n    position: '',\n    backgroundColor: '',\n    avatar: \"\",\n    className: \"\",\n    stopOnFocus: true,\n    onClick: function () {},\n    offset: {\n      x: 0,\n      y: 0\n    },\n    escapeMarkup: true,\n    ariaLive: 'polite',\n    style: {\n      background: ''\n    }\n  }; // Defining the prototype of the object\n\n  Toastify.lib = Toastify.prototype = {\n    toastify: version,\n    constructor: Toastify,\n    // Initializing the object with required parameters\n    init: function (options) {\n      // Verifying and validating the input object\n      if (!options) {\n        options = {};\n      } // Creating the options object\n\n\n      this.options = {};\n      this.toastElement = null; // Validating the options\n\n      this.options.text = options.text || Toastify.defaults.text; // Display message\n\n      this.options.node = options.node || Toastify.defaults.node; // Display content as node\n\n      this.options.duration = options.duration === 0 ? 0 : options.duration || Toastify.defaults.duration; // Display duration\n\n      this.options.selector = options.selector || Toastify.defaults.selector; // Parent selector\n\n      this.options.callback = options.callback || Toastify.defaults.callback; // Callback after display\n\n      this.options.destination = options.destination || Toastify.defaults.destination; // On-click destination\n\n      this.options.newWindow = options.newWindow || Toastify.defaults.newWindow; // Open destination in new window\n\n      this.options.close = options.close || Toastify.defaults.close; // Show toast close icon\n\n      this.options.gravity = options.gravity === \"bottom\" ? \"toastify-bottom\" : Toastify.defaults.gravity; // toast position - top or bottom\n\n      this.options.positionLeft = options.positionLeft || Toastify.defaults.positionLeft; // toast position - left or right\n\n      this.options.position = options.position || Toastify.defaults.position; // toast position - left or right\n\n      this.options.backgroundColor = options.backgroundColor || Toastify.defaults.backgroundColor; // toast background color\n\n      this.options.avatar = options.avatar || Toastify.defaults.avatar; // img element src - url or a path\n\n      this.options.className = options.className || Toastify.defaults.className; // additional class names for the toast\n\n      this.options.stopOnFocus = options.stopOnFocus === undefined ? Toastify.defaults.stopOnFocus : options.stopOnFocus; // stop timeout on focus\n\n      this.options.onClick = options.onClick || Toastify.defaults.onClick; // Callback after click\n\n      this.options.offset = options.offset || Toastify.defaults.offset; // toast offset\n\n      this.options.escapeMarkup = options.escapeMarkup !== undefined ? options.escapeMarkup : Toastify.defaults.escapeMarkup;\n      this.options.ariaLive = options.ariaLive || Toastify.defaults.ariaLive;\n      this.options.style = options.style || Toastify.defaults.style;\n\n      if (options.backgroundColor) {\n        this.options.style.background = options.backgroundColor;\n      } // Returning the current object for chaining functions\n\n\n      return this;\n    },\n    // Building the DOM element\n    buildToast: function () {\n      // Validating if the options are defined\n      if (!this.options) {\n        throw \"Toastify is not initialized\";\n      } // Creating the DOM object\n\n\n      var divElement = document.createElement(\"div\");\n      divElement.className = \"toastify on \" + this.options.className; // Positioning toast to left or right or center\n\n      if (!!this.options.position) {\n        divElement.className += \" toastify-\" + this.options.position;\n      } else {\n        // To be depreciated in further versions\n        if (this.options.positionLeft === true) {\n          divElement.className += \" toastify-left\";\n          console.warn('Property `positionLeft` will be depreciated in further versions. Please use `position` instead.');\n        } else {\n          // Default position\n          divElement.className += \" toastify-right\";\n        }\n      } // Assigning gravity of element\n\n\n      divElement.className += \" \" + this.options.gravity;\n\n      if (this.options.backgroundColor) {\n        // This is being deprecated in favor of using the style HTML DOM property\n        console.warn('DEPRECATION NOTICE: \"backgroundColor\" is being deprecated. Please use the \"style.background\" property.');\n      } // Loop through our style object and apply styles to divElement\n\n\n      for (var property in this.options.style) {\n        divElement.style[property] = this.options.style[property];\n      } // Announce the toast to screen readers\n\n\n      if (this.options.ariaLive) {\n        divElement.setAttribute('aria-live', this.options.ariaLive);\n      } // Adding the toast message/node\n\n\n      if (this.options.node && this.options.node.nodeType === Node.ELEMENT_NODE) {\n        // If we have a valid node, we insert it\n        divElement.appendChild(this.options.node);\n      } else {\n        if (this.options.escapeMarkup) {\n          divElement.innerText = this.options.text;\n        } else {\n          divElement.innerHTML = this.options.text;\n        }\n\n        if (this.options.avatar !== \"\") {\n          var avatarElement = document.createElement(\"img\");\n          avatarElement.src = this.options.avatar;\n          avatarElement.className = \"toastify-avatar\";\n\n          if (this.options.position == \"left\" || this.options.positionLeft === true) {\n            // Adding close icon on the left of content\n            divElement.appendChild(avatarElement);\n          } else {\n            // Adding close icon on the right of content\n            divElement.insertAdjacentElement(\"afterbegin\", avatarElement);\n          }\n        }\n      } // Adding a close icon to the toast\n\n\n      if (this.options.close === true) {\n        // Create a span for close element\n        var closeElement = document.createElement(\"button\");\n        closeElement.type = \"button\";\n        closeElement.setAttribute(\"aria-label\", \"Close\");\n        closeElement.className = \"toast-close\";\n        closeElement.innerHTML = \"&#10006;\"; // Triggering the removal of toast from DOM on close click\n\n        closeElement.addEventListener(\"click\", function (event) {\n          event.stopPropagation();\n          this.removeElement(this.toastElement);\n          window.clearTimeout(this.toastElement.timeOutValue);\n        }.bind(this)); //Calculating screen width\n\n        var width = window.innerWidth > 0 ? window.innerWidth : screen.width; // Adding the close icon to the toast element\n        // Display on the right if screen width is less than or equal to 360px\n\n        if ((this.options.position == \"left\" || this.options.positionLeft === true) && width > 360) {\n          // Adding close icon on the left of content\n          divElement.insertAdjacentElement(\"afterbegin\", closeElement);\n        } else {\n          // Adding close icon on the right of content\n          divElement.appendChild(closeElement);\n        }\n      } // Clear timeout while toast is focused\n\n\n      if (this.options.stopOnFocus && this.options.duration > 0) {\n        var self = this; // stop countdown\n\n        divElement.addEventListener(\"mouseover\", function (event) {\n          window.clearTimeout(divElement.timeOutValue);\n        }); // add back the timeout\n\n        divElement.addEventListener(\"mouseleave\", function () {\n          divElement.timeOutValue = window.setTimeout(function () {\n            // Remove the toast from DOM\n            self.removeElement(divElement);\n          }, self.options.duration);\n        });\n      } // Adding an on-click destination path\n\n\n      if (typeof this.options.destination !== \"undefined\") {\n        divElement.addEventListener(\"click\", function (event) {\n          event.stopPropagation();\n\n          if (this.options.newWindow === true) {\n            window.open(this.options.destination, \"_blank\");\n          } else {\n            window.location = this.options.destination;\n          }\n        }.bind(this));\n      }\n\n      if (typeof this.options.onClick === \"function\" && typeof this.options.destination === \"undefined\") {\n        divElement.addEventListener(\"click\", function (event) {\n          event.stopPropagation();\n          this.options.onClick();\n        }.bind(this));\n      } // Adding offset\n\n\n      if (typeof this.options.offset === \"object\") {\n        var x = getAxisOffsetAValue(\"x\", this.options);\n        var y = getAxisOffsetAValue(\"y\", this.options);\n        var xOffset = this.options.position == \"left\" ? x : \"-\" + x;\n        var yOffset = this.options.gravity == \"toastify-top\" ? y : \"-\" + y;\n        divElement.style.transform = \"translate(\" + xOffset + \",\" + yOffset + \")\";\n      } // Returning the generated element\n\n\n      return divElement;\n    },\n    // Displaying the toast\n    showToast: function () {\n      // Creating the DOM object for the toast\n      this.toastElement = this.buildToast(); // Getting the root element to with the toast needs to be added\n\n      var rootElement;\n\n      if (typeof this.options.selector === \"string\") {\n        rootElement = document.getElementById(this.options.selector);\n      } else if (this.options.selector instanceof HTMLElement || typeof ShadowRoot !== 'undefined' && this.options.selector instanceof ShadowRoot) {\n        rootElement = this.options.selector;\n      } else {\n        rootElement = document.body;\n      } // Validating if root element is present in DOM\n\n\n      if (!rootElement) {\n        throw \"Root element is not defined\";\n      } // Adding the DOM element\n\n\n      var elementToInsert = Toastify.defaults.oldestFirst ? rootElement.firstChild : rootElement.lastChild;\n      rootElement.insertBefore(this.toastElement, elementToInsert); // Repositioning the toasts in case multiple toasts are present\n\n      Toastify.reposition();\n\n      if (this.options.duration > 0) {\n        this.toastElement.timeOutValue = window.setTimeout(function () {\n          // Remove the toast from DOM\n          this.removeElement(this.toastElement);\n        }.bind(this), this.options.duration); // Binding `this` for function invocation\n      } // Supporting function chaining\n\n\n      return this;\n    },\n    hideToast: function () {\n      if (this.toastElement.timeOutValue) {\n        clearTimeout(this.toastElement.timeOutValue);\n      }\n\n      this.removeElement(this.toastElement);\n    },\n    // Removing the element from the DOM\n    removeElement: function (toastElement) {\n      // Hiding the element\n      // toastElement.classList.remove(\"on\");\n      toastElement.className = toastElement.className.replace(\" on\", \"\"); // Removing the element from DOM after transition end\n\n      window.setTimeout(function () {\n        // remove options node if any\n        if (this.options.node && this.options.node.parentNode) {\n          this.options.node.parentNode.removeChild(this.options.node);\n        } // Remove the element from the DOM, only when the parent node was not removed before.\n\n\n        if (toastElement.parentNode) {\n          toastElement.parentNode.removeChild(toastElement);\n        } // Calling the callback function\n\n\n        this.options.callback.call(toastElement); // Repositioning the toasts again\n\n        Toastify.reposition();\n      }.bind(this), 400); // Binding `this` for function invocation\n    }\n  }; // Positioning the toasts on the DOM\n\n  Toastify.reposition = function () {\n    // Top margins with gravity\n    var topLeftOffsetSize = {\n      top: 15,\n      bottom: 15\n    };\n    var topRightOffsetSize = {\n      top: 15,\n      bottom: 15\n    };\n    var offsetSize = {\n      top: 15,\n      bottom: 15\n    }; // Get all toast messages on the DOM\n\n    var allToasts = document.getElementsByClassName(\"toastify\");\n    var classUsed; // Modifying the position of each toast element\n\n    for (var i = 0; i < allToasts.length; i++) {\n      // Getting the applied gravity\n      if (containsClass(allToasts[i], \"toastify-top\") === true) {\n        classUsed = \"toastify-top\";\n      } else {\n        classUsed = \"toastify-bottom\";\n      }\n\n      var height = allToasts[i].offsetHeight;\n      classUsed = classUsed.substr(9, classUsed.length - 1); // Spacing between toasts\n\n      var offset = 15;\n      var width = window.innerWidth > 0 ? window.innerWidth : screen.width; // Show toast in center if screen with less than or equal to 360px\n\n      if (width <= 360) {\n        // Setting the position\n        allToasts[i].style[classUsed] = offsetSize[classUsed] + \"px\";\n        offsetSize[classUsed] += height + offset;\n      } else {\n        if (containsClass(allToasts[i], \"toastify-left\") === true) {\n          // Setting the position\n          allToasts[i].style[classUsed] = topLeftOffsetSize[classUsed] + \"px\";\n          topLeftOffsetSize[classUsed] += height + offset;\n        } else {\n          // Setting the position\n          allToasts[i].style[classUsed] = topRightOffsetSize[classUsed] + \"px\";\n          topRightOffsetSize[classUsed] += height + offset;\n        }\n      }\n    } // Supporting function chaining\n\n\n    return this;\n  }; // Helper function to get offset.\n\n\n  function getAxisOffsetAValue(axis, options) {\n    if (options.offset[axis]) {\n      if (isNaN(options.offset[axis])) {\n        return options.offset[axis];\n      } else {\n        return options.offset[axis] + 'px';\n      }\n    }\n\n    return '0px';\n  }\n\n  function containsClass(elem, yourClass) {\n    if (!elem || typeof yourClass !== \"string\") {\n      return false;\n    } else if (elem.className && elem.className.trim().split(/\\s+/gi).indexOf(yourClass) > -1) {\n      return true;\n    } else {\n      return false;\n    }\n  } // Setting up the prototype for the init object\n\n\n  Toastify.lib.init.prototype = Toastify.lib; // Returning the Toastify function to be assigned to the window object/module\n\n  return Toastify;\n});","import Toastify from 'toastify-js';\n\nexport function toggleDisabled(element, isDisabled) {\n  if (isDisabled) {\n    element.setAttribute('disabled', true);\n  } else {\n    element.removeAttribute('disabled');\n  }\n}\n\nexport function toggleAttribute(element, attributeName, present) {\n  if (present && !element.hasAttribute(attributeName)) {\n    element.setAttribute(attributeName, present);\n  } else if (element.hasAttribute(attributeName)) {\n    element.removeAttribute(attributeName);\n  }\n}\n\nexport function toggleClass(element, className, isIncluded) {\n  if (!element) {\n    return;\n  }\n\n  if (isIncluded) {\n    element.classList?.add(className);\n  } else {\n    element.classList?.remove(className);\n  }\n}\n\nexport function toggleHidden(element, isHidden) {\n  toggleClass(element, 'hidden', isHidden);\n}\n\nexport function toggleAriaExpanded(element, isExpanded) {\n  if (element) {\n    element.setAttribute('aria-expanded', isExpanded);\n  }\n}\n\nexport function toggleRequired(element, isRequired) {\n  if (isRequired) {\n    element.setAttribute('required', true);\n  } else {\n    element.removeAttribute('required');\n  }\n}\n\nexport function toggleSubmitting(element, state) {\n  element.classList.toggle('is-submitting', state);\n}\n\nexport function dispatchChangeEvent(element) {\n  const event = new Event('change');\n\n  element.dispatchEvent(event);\n}\n\nexport function toggleActive(element, isActive) {\n  if (element) {\n    element.classList.toggle('is-active', isActive);\n  }\n}\n\nexport function debounceTime(callback, timeout = 300) {\n  let timer;\n\n\n  return (...args) => {\n    clearTimeout(timer);\n    timer = setTimeout(() => {\n      callback.apply(this, args);\n    }, timeout);\n  };\n}\n\nexport function toastError(message, options = {}) {\n  Toastify({\n    text: message,\n    duration: 4000,\n    close: true,\n    gravity: 'top',\n    position: 'right',\n    offset: {\n      x: '2rem',\n      y: '6rem'\n    },\n    stopOnFocus: true,\n    ...options\n  }).showToast();\n}\n","import { toggleClass } from '../../packs/shared/util';\n\nfunction updateField(inputElement, required) {\n  const fieldElement = inputElement.closest('.field');\n\n  if (!fieldElement || !fieldElement.classList.contains('field')) {\n    return;\n  }\n\n  toggleClass(fieldElement, 'is-required', required);\n}\n\nexport default () => {\n  setImmediate(() => {\n    document.querySelectorAll('*[required=\"required\"], *[required=\"true\"], select.choices[required=\"required\"], select.choices[required=\"true\"]').forEach((inputElement) => {\n      updateField(inputElement, true)\n    });\n\n    document.querySelectorAll('input, select, textarea').forEach((inputElement) => {\n      inputElement.addEventListener('required', () => {\n        const required = inputElement.hasAttribute('required')\n\n        updateField(inputElement, required);\n      })\n    })\n  })\n}\n","import { formatHours, parseHours } from '../../packs/shared/util/format';\n\nexport default () => {\n  document.querySelectorAll('[data-hour-minute-input=\"true\"]').forEach((input) => {\n    const dummyInput = document.createElement('input');\n\n    dummyInput.setAttribute('placeholder', '00h 00m')\n\n    input.type = 'hidden';\n    input.insertAdjacentElement('afterEnd', dummyInput)\n    dummyInput.classList = input.classList;\n\n    if (input.hasAttribute('required')) {\n      dummyInput.setAttribute('required', input.getAttribute('required'))\n    }\n\n    dummyInput.value = input.value;\n    setValues(input, dummyInput);\n\n    dummyInput.addEventListener('change', () => {\n      setValues(input, dummyInput);\n    });\n  });\n};\n\nfunction setValues(input, dummyInput) {\n  const { formattedTime, hours } = formatParseHours(dummyInput.value);\n\n  dummyInput.value = formattedTime;\n  input.value = hours;\n  input.dispatchEvent(new Event('input'));\n}\n\nfunction formatParseHours(timeValue) {\n  const timeString = timeValue.toLowerCase().replace(',', '.').trim();\n\n  if (timeString.length < 1) {\n    return {\n      formattedTime: null,\n      hours: null\n    }\n  }\n\n  const hours = parseHours(timeString);\n\n  return {\n    formattedTime: formatHours(hours),\n    hours\n  };\n}\n","export default () => {\n  document.querySelectorAll('[data-integer-input=\"true\"]').forEach((input) => {\n    input.addEventListener('change', () => {\n      input.value = parseInt(input.value, 10);\n    });\n  });\n\n  document.querySelectorAll('input[type=\"number\"]').forEach((input) => {\n    input.addEventListener('change', (event) => {\n      let number = Number(input.value);\n      const min = Number(input.attributes.getNamedItem('min')?.value);\n      const max = Number(input.attributes.getNamedItem('max')?.value);\n\n      event.stopPropagation();\n\n      if (Number.isNaN(number)) {\n        input.value = null;\n\n        return true;\n      }\n\n      if (!Number.isNaN(min)) {\n        number = Math.max(number, min);\n      }\n\n      if (!Number.isNaN(max)) {\n        number = Math.min(number, max);\n      }\n\n      input.value = number;\n\n      return true;\n    });\n  });\n}\n","import fieldErrors from './field-errors';\nimport inputHours from './input-hours';\nimport inputNumeric from './input-numeric';\nimport inputPercentage from './input-percentage';\nimport inputRequired from './input-required';\nimport inputTextMinMax from './input-text-min-max';\nimport meters from './meters';\nimport select from './select';\nimport select2 from './select2';\n\nexport default () => {\n  fieldErrors();\n  select();\n  inputPercentage();\n  select2();\n  inputTextMinMax();\n  inputNumeric();\n  meters();\n  inputHours();\n  inputRequired();\n}\n","export default () => {\n  document.querySelectorAll('.form .field .help.is-danger').forEach((help) => {\n    const field = help.closest('.field');\n\n    help.remove();\n    field.appendChild(help);\n  });\n\n  /*\n    Removes field error messages that are generated by active record validations (see customize_error.rb), when the\n    field input values are updated.\n\n    PLEASE REMOVE THIS CODE if/when the need ever comes to implement custom error messages on fields that should\n    rendered BEFORE the form submission. This code will otherwise conflict and remove the messages each time\n    the input value is updated.\n  */\n  document.querySelectorAll('input.is-error, select.is-error, textarea.is-error').forEach((input) => {\n    input.addEventListener('change', () => {\n      const field = input.closest('.field');\n\n      if (!field) {\n        return;\n      }\n\n      input.classList.remove('is-danger');\n      input.classList.remove('is-error');\n\n      field.querySelectorAll('.form-input-hint.is-danger').forEach((hint) => {\n        hint.remove()\n      })\n    })\n  })\n}\n","export default () => {\n  document.querySelectorAll('.select .is-danger').forEach((select) => {\n    select.parentElement.classList.add('is-danger');\n  });\n}\n","export default () => {\n  document.querySelectorAll('input[data-validation-percentage]').forEach((input) => {\n    input.addEventListener('change', (e) => {\n      if (e.target.value < 0) {\n        e.target.value = 0;\n      } else if (e.target.value > 100) {\n        e.target.value = 100;\n      }\n    });\n  })\n}\n","export default () => {\n  document.querySelectorAll('input:not([type=\"number\"]):not([type=\"date\"])').forEach((input) => {\n    input.addEventListener('change', () => {\n      const max = input.attributes.getNamedItem('max');\n\n      if (max) {\n        input.value = input.value.substring(0, max.value)\n      }\n    })\n  });\n};\n","export default () => {\n  function setAttributes(meter) {\n    meter.setAttribute('min', 0);\n    meter.setAttribute('low', 0);\n    const max = Number(meter.attributes.getNamedItem('max')?.value);\n    const value = Number(meter.attributes.getNamedItem('value')?.value);\n\n    if (!Number.isNaN(max) && !Number.isNaN(value)) {\n      if (value === max) {\n        meter.setAttribute('high', max);\n      } else {\n        meter.setAttribute('high', max - 1e-10);\n      }\n    }\n  }\n\n  const observer = new MutationObserver((mutations) => {\n    mutations.forEach((mutation) => {\n      if (mutation.type === 'attributes' && (mutation.attributeName === 'max' || mutation.attributeName === 'value')) {\n        setAttributes(mutation.target);\n      }\n    });\n  });\n\n  document.querySelectorAll('meter.meter').forEach((element) => {\n    observer.observe(element, { attributes: true });\n    setAttributes(element);\n  });\n}\n","import Rails from '@rails/ujs'\nimport { default as init } from '../bulma/init';\nimport { default as initShared } from '../shared/init'\n\n\nRails.start()\n\ndocument.addEventListener('DOMContentLoaded', () => {\n  initShared()\n  init()\n})\n","var g; // This works in non-strict mode\n\ng = function () {\n  return this;\n}();\n\ntry {\n  // This works if eval is allowed (see CSP)\n  g = g || new Function(\"return this\")();\n} catch (e) {\n  // This works if the window reference is available\n  if (typeof window === \"object\") g = window;\n} // g can still be undefined, but nothing to do about it...\n// We return undefined, instead of nothing here, so it's\n// easier to handle this case. if(!global) { ...}\n\n\nmodule.exports = g;","var scope = typeof global !== \"undefined\" && global || typeof self !== \"undefined\" && self || window;\nvar apply = Function.prototype.apply; // DOM APIs, for completeness\n\nexports.setTimeout = function () {\n  return new Timeout(apply.call(setTimeout, scope, arguments), clearTimeout);\n};\n\nexports.setInterval = function () {\n  return new Timeout(apply.call(setInterval, scope, arguments), clearInterval);\n};\n\nexports.clearTimeout = exports.clearInterval = function (timeout) {\n  if (timeout) {\n    timeout.close();\n  }\n};\n\nfunction Timeout(id, clearFn) {\n  this._id = id;\n  this._clearFn = clearFn;\n}\n\nTimeout.prototype.unref = Timeout.prototype.ref = function () {};\n\nTimeout.prototype.close = function () {\n  this._clearFn.call(scope, this._id);\n}; // Does not start the time, just sets up the members needed.\n\n\nexports.enroll = function (item, msecs) {\n  clearTimeout(item._idleTimeoutId);\n  item._idleTimeout = msecs;\n};\n\nexports.unenroll = function (item) {\n  clearTimeout(item._idleTimeoutId);\n  item._idleTimeout = -1;\n};\n\nexports._unrefActive = exports.active = function (item) {\n  clearTimeout(item._idleTimeoutId);\n  var msecs = item._idleTimeout;\n\n  if (msecs >= 0) {\n    item._idleTimeoutId = setTimeout(function onTimeout() {\n      if (item._onTimeout) item._onTimeout();\n    }, msecs);\n  }\n}; // setimmediate attaches itself to the global object\n\n\nrequire(\"setimmediate\"); // On some exotic environments, it's not clear which object `setimmediate` was\n// able to install onto.  Search each possibility in the same order as the\n// `setimmediate` library.\n\n\nexports.setImmediate = typeof self !== \"undefined\" && self.setImmediate || typeof global !== \"undefined\" && global.setImmediate || this && this.setImmediate;\nexports.clearImmediate = typeof self !== \"undefined\" && self.clearImmediate || typeof global !== \"undefined\" && global.clearImmediate || this && this.clearImmediate;"],"sourceRoot":""}