{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./node_modules/axios/lib/utils.js","webpack:///./node_modules/@babel/runtime/regenerator/index.js","webpack:///./node_modules/ieee754/index.js","webpack:///./node_modules/isarray/index.js","webpack:///./app/assets/javascripts/shared/currentLocale.js","webpack:///./app/assets/javascripts/controllers/accommodation_controller.js","webpack:///./app/assets/javascripts/controllers/accommodation_request_controller.js","webpack:///./app/assets/javascripts/controllers/accordion_controller.js","webpack:///./app/assets/javascripts/controllers/add_in_place_controller.js","webpack:///./app/assets/javascripts/controllers/alert_controller.js","webpack:///./app/assets/javascripts/controllers/birthdate_controller.js","webpack:///./app/assets/javascripts/controllers/booking_resource_sku_association_controller.js","webpack:///./app/assets/javascripts/controllers/booking_room_assignment_controller.js","webpack:///./app/assets/javascripts/controllers/contact_card_controller.js","webpack:///./app/assets/javascripts/controllers/copy_to_clipboard_controller.js","webpack:///./app/assets/javascripts/controllers/custom_select_controller.js","webpack:///./app/assets/javascripts/controllers/date_range_filter_controller.js","webpack:///./app/assets/javascripts/controllers/dropdown_controller.js","webpack:///./app/assets/javascripts/controllers/due_on_controller.js","webpack:///./app/assets/javascripts/controllers/easybill_settings_controller.js","webpack:///./app/assets/javascripts/controllers/edit_in_place_controller.js","webpack:///./app/assets/javascripts/controllers/expandable_controller.js","webpack:///./app/assets/javascripts/controllers/final_submit_controller.js","webpack:///./app/assets/javascripts/controllers/flight_update_profile_controller.js","webpack:///./app/assets/javascripts/controllers/flights_controller.js","webpack:///./app/assets/javascripts/controllers/flightsearch_result_controller.js","webpack:///./app/assets/javascripts/controllers/flightsearch_results_controller.js","webpack:///./app/assets/javascripts/controllers/floating_action_controller.js","webpack:///./app/assets/javascripts/controllers/form_validation_controller.js","webpack:///./app/assets/javascripts/controllers/gallery_controller.js","webpack:///./app/assets/javascripts/controllers/grouped_booking_transfers_controller.js","webpack:///./app/assets/javascripts/controllers/grouped_skus_controller.js","webpack:///./app/assets/javascripts/controllers/mobile_nav_controller.js","webpack:///./app/assets/javascripts/controllers/my_carousel_controller.js","webpack:///./app/assets/javascripts/controllers/participant_autocomplete_controller.js","webpack:///./app/assets/javascripts/controllers/payment_item_controller.js","webpack:///./app/assets/javascripts/controllers/pickup_dropoff_modal_controller.js","webpack:///./app/assets/javascripts/controllers/pnr_parser_controller.js","webpack:///./app/assets/javascripts/controllers/poll_invoice_status_controller.js","webpack:///./app/assets/javascripts/controllers/process_payment_controller.js","webpack:///./app/assets/javascripts/controllers/refund_payments_controller.js","webpack:///./app/assets/javascripts/controllers/request_step_controller.js","webpack:///./app/assets/javascripts/controllers/resources_controller.js","webpack:///./app/assets/javascripts/controllers/scroll_controller.js","webpack:///./app/assets/javascripts/controllers/search_controller.js","webpack:///./app/assets/javascripts/controllers/secondary_state_controller.js","webpack:///./app/assets/javascripts/controllers/select_all_controller.js","webpack:///./app/assets/javascripts/controllers/select_participant_controller.js","webpack:///./app/assets/javascripts/controllers/select_participants_controller.js","webpack:///./app/assets/javascripts/controllers/select_payments_controller.js","webpack:///./app/assets/javascripts/controllers/sorted_checkbox_collection_controller.js","webpack:///./app/assets/javascripts/controllers/sorting_controller.js","webpack:///./app/assets/javascripts/controllers/tabs_controller.js","webpack:///./app/assets/javascripts/controllers/tooltip_controller.js","webpack:///./app/assets/javascripts/controllers/transfer_autocomplete_controller.js","webpack:///./app/assets/javascripts/controllers/turbo_frame_overlay_controller.js","webpack:///./app/assets/javascripts/controllers/validate_dates_controller.js","webpack:///./app/assets/javascripts/controllers/validation_check_controller.js","webpack:///./app/assets/javascripts/controllers/room_controller.js","webpack:///./app/assets/javascripts/frontoffice/services/bookingRoomService/create.js","webpack:///./app/assets/javascripts/frontoffice/services/bookingRoomService/roomChosen.js","webpack:///./app/assets/javascripts/controllers/edit_booking_controller.js","webpack:///./app/assets/javascripts/frontoffice/services/bookingService/fetchTotalPrice.js","webpack:///./node_modules/sortablejs/modular/sortable.esm.js","webpack:///./app/assets/javascripts/controllers/drag_drop_controller.js","webpack:///./node_modules/stimulus-flatpickr/dist/index.m.js","webpack:///./app/assets/javascripts/controllers/flatpickr_controller.js","webpack:///./app/assets/javascripts/controllers/flight_selection_modal_controller.js","webpack:///./app/assets/javascripts/services/bookingResourceSkuFlightsService/fetchFlights.js","webpack:///./node_modules/axios/lib/helpers/AxiosURLSearchParams.js","webpack:///./node_modules/axios/lib/helpers/buildURL.js","webpack:///./node_modules/axios/lib/core/InterceptorManager.js","webpack:///./node_modules/axios/lib/platform/common/utils.js","webpack:///./node_modules/axios/lib/defaults/transitional.js","webpack:///./node_modules/axios/lib/platform/browser/index.js","webpack:///./node_modules/axios/lib/platform/browser/classes/URLSearchParams.js","webpack:///./node_modules/axios/lib/platform/browser/classes/FormData.js","webpack:///./node_modules/axios/lib/platform/browser/classes/Blob.js","webpack:///./node_modules/axios/lib/platform/index.js","webpack:///./node_modules/axios/lib/helpers/formDataToJSON.js","webpack:///./node_modules/axios/lib/defaults/index.js","webpack:///./node_modules/axios/lib/helpers/toURLEncodedForm.js","webpack:///./node_modules/axios/lib/helpers/parseHeaders.js","webpack:///./node_modules/axios/lib/core/AxiosHeaders.js","webpack:///./node_modules/axios/lib/core/transformData.js","webpack:///./node_modules/axios/lib/cancel/isCancel.js","webpack:///./node_modules/axios/lib/cancel/CanceledError.js","webpack:///./node_modules/axios/lib/core/settle.js","webpack:///./node_modules/axios/lib/helpers/speedometer.js","webpack:///./node_modules/axios/lib/helpers/throttle.js","webpack:///./node_modules/axios/lib/helpers/progressEventReducer.js","webpack:///./node_modules/axios/lib/helpers/isURLSameOrigin.js","webpack:///./node_modules/axios/lib/helpers/cookies.js","webpack:///./node_modules/axios/lib/core/buildFullPath.js","webpack:///./node_modules/axios/lib/helpers/isAbsoluteURL.js","webpack:///./node_modules/axios/lib/helpers/combineURLs.js","webpack:///./node_modules/axios/lib/core/mergeConfig.js","webpack:///./node_modules/axios/lib/helpers/resolveConfig.js","webpack:///./node_modules/axios/lib/adapters/xhr.js","webpack:///./node_modules/axios/lib/helpers/parseProtocol.js","webpack:///./node_modules/axios/lib/helpers/composeSignals.js","webpack:///./node_modules/axios/lib/helpers/trackStream.js","webpack:///./node_modules/axios/lib/adapters/fetch.js","webpack:///./node_modules/axios/lib/adapters/adapters.js","webpack:///./node_modules/axios/lib/core/dispatchRequest.js","webpack:///./node_modules/axios/lib/env/data.js","webpack:///./node_modules/axios/lib/helpers/validator.js","webpack:///./node_modules/axios/lib/core/Axios.js","webpack:///./node_modules/axios/lib/cancel/CancelToken.js","webpack:///./node_modules/axios/lib/helpers/HttpStatusCode.js","webpack:///./node_modules/axios/lib/axios.js","webpack:///./node_modules/axios/lib/helpers/spread.js","webpack:///./node_modules/axios/lib/helpers/isAxiosError.js","webpack:///./node_modules/flatpickr/dist/esm/utils/polyfills.js","webpack:///./app/assets/javascripts/controllers sync _controller\\.js$","webpack:///./app/components sync _controller\\.js$","webpack:///./app/components/flights/flight_item_component/flight_item_controller.js","webpack:///./node_modules/axios/lib/helpers/toFormData.js","webpack:///./app/components/frontoffice/rentalbikes/booked_rentalbike_option_component/booked_rentalbike_option_controller.js","webpack:///./app/components/frontoffice/rentalbikes/booked_rentalbikes_component/booked_rentalbikes_controller.js","webpack:///./app/components/frontoffice/rentalbikes/details_component/details_controller.js","webpack:///./app/components/frontoffice/steps/rentalbike_request_component/select_rentalbike_controller.js","webpack:///./app/components/frontoffice/steps/training_package_step_component/training_package_step_controller.js","webpack:///./app/components/frontoffice/steps/transfer_step_component/transfer_step_controller.js","webpack:///./app/components/frontoffice/training_packages/booked_training_package_component/booked_training_package_controller.js","webpack:///./app/components/frontoffice/training_packages/training_package_option_component/training_package_option_controller.js","webpack:///./app/components/frontoffice/transfers/booked_transfer_component/booked_transfer_controller.js","webpack:///./app/components/frontoffice/transfers/transfer_option_component/transfer_option_controller.js","webpack:///./node_modules/@hotwired/stimulus/dist/stimulus.js","webpack:///./app/components/inventories/calendar_component/calendar_controller.js","webpack:///./app/assets/javascripts/frontoffice/services/resourceSkusService/fetchAvailable.js","webpack:///./app/assets/javascripts/frontoffice/services/resourceSkusService/fetchAvailability.js","webpack:///./app/assets/javascripts/frontoffice/services/resourceSkusService/fetchPrice.js","webpack:///./node_modules/stimulus-autocomplete/src/autocomplete.js","webpack:///./app/assets/javascripts/controllers/index.js","webpack:///(webpack)/buildin/global.js","webpack:///./node_modules/axios/lib/core/AxiosError.js","webpack:///./app/assets/javascripts/controllers/modal_controller.js","webpack:///./node_modules/axios/lib/helpers/bind.js","webpack:///./node_modules/axios/lib/helpers/null.js","webpack:///./app/assets/javascripts/frontoffice/services/bookingRoomAssignments/index.js","webpack:///./app/assets/javascripts/frontoffice/services/bookingRoomAssignments/bookingRoomAssignmentChosen.js","webpack:///./node_modules/flatpickr/dist/l10n/de.js","webpack:///./node_modules/flatpickr/dist/l10n/fr.js","webpack:///./node_modules/flatpickr/dist/esm/types/options.js","webpack:///./node_modules/flatpickr/dist/esm/l10n/default.js","webpack:///./node_modules/flatpickr/dist/esm/utils/index.js","webpack:///./node_modules/flatpickr/dist/esm/utils/dom.js","webpack:///./node_modules/flatpickr/dist/esm/utils/formatting.js","webpack:///./node_modules/flatpickr/dist/esm/utils/dates.js","webpack:///./node_modules/flatpickr/dist/esm/index.js","webpack:///./app/assets/javascripts/packs/logged_out.js","webpack:///./app/assets/javascripts/controllers sync \\.js$","webpack:///./node_modules/@hotwired/stimulus-webpack-helpers/dist/stimulus-webpack-helpers.js","webpack:///./app/assets/javascripts/shared/date_picker.js","webpack:///./node_modules/@rails/ujs/lib/assets/compiled/rails-ujs.js","webpack:///./node_modules/process/browser.js","webpack:///./app/assets/javascripts/backoffice/bookingResourceSkus/edit/transfer.js","webpack:///./app/assets/javascripts/backoffice/bookingResourceSkus/edit/index.js","webpack:///./app/assets/javascripts/backoffice/bookingResourceSkus/edit/flightSearch.js","webpack:///./app/assets/javascripts/controllers/booking_resource_sku_association/validation_handlers.js","webpack:///./app/assets/javascripts/controllers/booking_resource_sku_association/drag_drop_handlers.js","webpack:///./node_modules/@hotwired/turbo/dist/turbo.es2017-esm.js","webpack:///./node_modules/@hotwired/turbo-rails/app/javascript/turbo/cable.js","webpack:///./node_modules/@hotwired/turbo-rails/app/javascript/turbo/snakeize.js","webpack:///./node_modules/@hotwired/turbo-rails/app/javascript/turbo/cable_stream_source_element.js","webpack:///./node_modules/@hotwired/turbo-rails/app/javascript/turbo/index.js","webpack:///./node_modules/@hotwired/turbo-rails/app/javascript/turbo/fetch_requests.js","webpack:///./app/assets/javascripts/backoffice/services/bookingResourceSkusService/updateAssociations.js","webpack:///./app/assets/javascripts/controllers/booking_resource_sku_association/association_handlers.js","webpack:///./app/assets/javascripts/backoffice/services/bookingResourceSkusService/removeAssociations.js","webpack:///./app/assets/javascripts/backoffice/flights/index.js","webpack:///./app/assets/javascripts/backoffice/flights/edit/updateApproval.js","webpack:///./node_modules/timers-browserify/main.js","webpack:///./app/assets/javascripts/frontoffice/services/bookingResourceSkusService/remove.js","webpack:///./app/assets/javascripts/frontoffice/services/bookingResourceSkusService/create.js","webpack:///./app/assets/javascripts/frontoffice/services/bookingResourceSkusService/update.js","webpack:///(webpack)/buildin/module.js","webpack:///./node_modules/regenerator-runtime/runtime.js","webpack:///./node_modules/flatpickr/dist/l10n/default.js","webpack:///./node_modules/setimmediate/setImmediate.js","webpack:///./node_modules/buffer/index.js","webpack:///./node_modules/base64-js/index.js"],"names":["webpackJsonpCallback","data","moduleId","chunkId","chunkIds","moreModules","i","resolves","length","Object","prototype","hasOwnProperty","call","installedChunks","push","modules","parentJsonpFunction","shift","installedModules","6","0","__webpack_require__","exports","module","l","e","promises","installedChunkData","promise","Promise","resolve","reject","onScriptComplete","script","document","createElement","charset","timeout","nc","setAttribute","src","p","jsonpScriptSrc","error","Error","event","onerror","onload","clearTimeout","chunk","errorType","type","realSrc","target","message","name","request","undefined","setTimeout","head","appendChild","all","m","c","d","getter","o","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","oe","err","console","jsonpArray","window","oldJsonpFunction","slice","s","_arrayLikeToArray","arr","len","arr2","Array","_typeof","obj","iterator","constructor","cache","toString","getPrototypeOf","kindOf","thing","str","toLowerCase","kindOfTest","typeOfTest","isArray","isUndefined","isArrayBuffer","isString","isFunction","isNumber","isObject","isPlainObject","val","isDate","isFile","isBlob","isFileList","isURLSearchParams","_map","map","_map2","_arrayWithHoles","_i","_s","_e","_arr","_n","_d","next","done","_iterableToArrayLimit","minLen","from","test","_unsupportedIterableToArray","TypeError","_nonIterableRest","isReadableStream","isRequest","isResponse","isHeaders","forEach","fn","_ref","arguments","_ref$allOwnKeys","allOwnKeys","keys","getOwnPropertyNames","findKey","_key","_global","globalThis","self","global","isContextDefined","context","TypedArray","isTypedArray","Uint8Array","isHTMLForm","_ref4","prop","isRegExp","reduceDescriptors","reducer","descriptors","getOwnPropertyDescriptors","reducedDescriptors","descriptor","ret","defineProperties","ALPHA","DIGIT","ALPHABET","ALPHA_DIGIT","toUpperCase","setImmediateSupported","postMessageSupported","token","callbacks","isAsyncFn","_setImmediate","setImmediate","postMessage","concat","Math","random","addEventListener","_ref5","source","cb","asap","queueMicrotask","process","nextTick","isBuffer","isFormData","kind","FormData","append","isArrayBufferView","ArrayBuffer","isView","buffer","isBoolean","isStream","pipe","merge","_ref2","this","caseless","result","assignValue","targetKey","extend","a","b","thisArg","_ref3","trim","replace","stripBOM","content","charCodeAt","inherits","superConstructor","props","assign","toFlatObject","sourceObj","destObj","filter","propFilter","merged","endsWith","searchString","position","String","lastIndex","indexOf","toArray","forEachEntry","pair","matchAll","regExp","matches","exec","hasOwnProp","freezeMethods","writable","set","toObjectSet","arrayOrString","delimiter","define","split","toCamelCase","p1","p2","noop","toFiniteNumber","defaultValue","Number","isFinite","generateString","size","alphabet","isSpecCompliantForm","toJSONObject","stack","visit","reducedValue","isThenable","then","catch","read","offset","isLE","mLen","nBytes","eLen","eMax","eBias","nBits","NaN","Infinity","pow","write","rt","abs","isNaN","floor","log","LN2","location","pathname","AccommodationController","classList","accommodationTarget","detail","focusedAssignmentId","bookingRoomAssignmentIdValue","add","showClass","remove","hideClass","Controller","targets","classes","values","bookingRoomAssignmentId","accommodationId","AccommodationRequestController","roomMissingInfoValue","some","el","room_missing","nextButtonTarget","disabledButtonClasses","bookingRoomAssignmentChosen","focusedAssignmentIdValue","response","nextBookingRoomAssignment","findNextBookingRoomAssignment","id","requestedRoomsSectionTarget","scrollIntoView","behavior","focusedIndex","newInfo","findIndex","info","updatedMissingInfo","find","roomMissingInfo","AccordionController","growDiv","collapsibleTarget","clientHeight","toggleOverflow","toggle","collapsibleIconTarget","rotateClass","contains","buttonTextTarget","innerHTML","showLessValue","showMoreValue","showMore","showLess","addItemEvent","CustomEvent","bubbles","cancelable","composed","element","dispatchEvent","preventDefault","hasTemplateTarget","node","templateTarget","firstElementChild","cloneNode","hasTrTarget","trTarget","parentElement","insertBefore","hasPlaceholderTarget","placeholderTarget","newRowTarget","leavingClasses","hasAutoCloseTarget","close","day","month","year","min","maxDay","maxMonth","max","saveFullDate","dayTarget","monthTarget","focus","yearTarget","inRange","fullDateTarget","Date","errorEvent","draggedData","targetData","transferDirection","customEvent","AssociationHandlers","ValidationHandlers","DragDropHandlers","flightData","contextData","handleAssociation","showError","option","showFlightSelectionModal","BookingRoomAssignmentController","bookingRoomAssignmentTarget","activeBookingRoomAssignmentClasses","attributes","bookingRoomAssignmentTextTarget","summary_text","updateBookingTotalPrice","bookingResourceSkusChanged","infoTarget","actionsTarget","showTarget","rotateClasses","tempInput","urlValue","body","select","execCommand","removeChild","hasCopyButtonTarget","hasTooltipTarget","tooltipTarget","successValue","copyButtonTarget","url","success","listTarget","getAttribute","show","hide","closest","dropdownTarget","selectedLi","dataset","availabilityIdTarget","liTargets","item","checkmarkTargets","showCheckmark","hideCheckmarks","selectedDates","toLocaleDateString","startDateTarget","endDateTarget","activeClasses","inactiveClasses","buttonTarget","blur","editDateTarget","dateFieldTarget","activeColor","href","activateProducts","activateEmployees","employeesButtonTarget","productsButtonTarget","newEmployeeTarget","newProductTarget","employeesTarget","productsTarget","hasNewEmployeeModalTarget","newEmployeeModalTarget","hasNewProductModalTarget","newProductModalTarget","newlyAddedValue","activateEditField","editItemTargets","editFieldTarget","hasContentTarget","contentTarget","hasEditItemTarget","hasEditFieldTarget","newlyAdded","Boolean","hasSubmenuTarget","currentPathValue","includes","submenuNameValue","submenuNameAlternativesValue","expandSubmenu","submenuTarget","chevronTarget","submenuName","submenuNameAlternatives","currentPath","FinalSubmitController","updatedObj","handleSubmit","partialPaymentTarget","checked","partialPaymentFieldTarget","singlePaymentTarget","paymentButtonTarget","disabled","paymentOptionsTarget","spinnerTarget","termsOfServiceTarget","privacyPolicyTarget","tosAndPpAccepted","errorTosPpTarget","tosAndPpMessageValue","allParticipantsAssigned","bookingResourceSkusValue","bookingResourceSkuHandlesValue","startsWith","bookingResourceSkuParticipantIdsValue","bookingResourceSkuQuantitiesValue","checkTermsOfServiceAndPrivacyPolicy","errorMessageTarget","errorMessageValue","submitButtonTarget","bookingResourceSkuId","selectedParticipantsIds","updateObject","modalTarget","bookingResourceSkus","bookingResourceSkuParticipantIds","bookingResourceSkuQuantities","bookingResourceSkuHandles","errorMessage","tosAndPpMessage","toggleProducts","newNode","containerTarget","newIndex","intervalTargets","querySelectorAll","tagName","newVal","intervalItem","globalLevelTarget","dateErrorMessage","dateMissingValue","dateValid","loadUpdateTarget","flightItem","flightItemTargets","flight","index","regex","textContent","updateNode","flightItemTitle","initializeFlatpickr","carrierTarget","carrierErrorTarget","flightNumberTarget","flightNumberErrorTarget","dateTarget","dateErrorTarget","today","lowerLimit","getFullYear","getMonth","getDate","upperLimit","requestedDate","setHours","getHours","dateInvalidValue","errorMessageTargets","validateOnTarget","loadResultsTarget","searchButtonTarget","flightSearch","carrier","flightNumber","onDate","resultsTarget","style","display","sendResponse","flights","airports","handleMissingFields","dateMissing","dateInvalid","sendFlightData","airlineCode","airlineTarget","innerText","takeoffAt","departureTimeTarget","takeoffAirportCode","departureAirportTarget","landingAt","arrivalTimeTarget","landingAirportCode","arrivalAirportTarget","locale","dateTimeString","dateTime","time","toLocaleTimeString","localeValue","hour","minute","date","depTime","arrTime","departure","arrival","suffix","timeDifference","utc_offset_hours","totalTime","hours","parseInt","hoursString","hoursValue","minutes","minutesString","minutesValue","itemTargets","emptyMessageTarget","itemTarget","fillData","parentNode","airlineTargets","carrier_fs_code","flightNumberTargets","flight_number","departureAirportTargets","departure_airport_fs_code","arrivalAirportTargets","arrival_airport_fs_code","timeSpanTargets","timeSpan","departure_time","arrival_time","travelTimeTargets","travelTime","departureTimeTargets","arrivalTimeTargets","fabContainerTarget","openActions","closeActions","backgroundTarget","toggleActionsTarget","closeButtonTarget","FormValidationController","eventName","isValid","validateFirstName","validateLastName","validateGender","validateAddress","validateZipCity","validateCountry","validateLocale","validateBirthdate","validateEmail","validatePhone","hasFirstNameTarget","validateInput","firstNameTarget","firstNameValidEvent","createCustomEvent","hasLastNameTarget","lastNameTarget","lastNameValidEvent","hasGenderTarget","genderTarget","genderValidEvent","hasAddressTarget","addressTarget","addressValidEvent","hasZipTarget","hasCityTarget","zipTarget","cityTarget","zipCityValidEvent","hasCountryTarget","countryTarget","countryValidEvent","hasLocaleTarget","localeTarget","localeValidEvent","hasBirthdateTarget","birthdate","birthdateTarget","birthdateValidEvent","hasEmailTarget","validEmailRegex","validateRegex","emailTarget","emailValidEvent","hasPhoneTarget","phoneTarget","phoneValidEvent","handleButtons","galleryTarget","indexValue","offsetWidth","controlImageHeight","height","screen","children","offsetHeight","imagesValue","prevButtonTarget","wrapperTarget","images","resourceSkuHandle","personTransferParticipantsValue","alertTarget","splice","onwardTransferId","returnTransferId","groupedTransferIdsValue","booking_resource_sku","participant_ids","updatePosition","personTransferParticipants","groupedTransferIds","participantsValue","participants","mobileNavTarget","mobileNavBackgroundTarget","hideMobileNavTarget","width","visibleImages","thumbsPositionMax","topGalleryWidth","thumbsGalleryWidth","highlightCurrentThumb","galleryTopTarget","adjustThumbsGallery","galleryThumbsTarget","thumbnailTargets","thumb","connect","hasInputTarget","inputTarget","setCustomValidity","validationMessageValue","fetchCustomer","idTarget","first_name","last_name","email","participantTypeTarget","participant_type","gender","fetch","method","headers","ContentType","Accept","json","results","handleResponse","Honeybadger","notify","validationMessage","messageTarget","messageValue","resourceType","openModal","currentTarget","closeModal","dispatchSuccess","ModalController","PnrParserController","firstFlight","secondFlight","flightForm","airlineCodeInput","querySelector","flightNumberInput","arrivalAtInput","arrivalAirportInput","departureAtInput","departureAirportInput","match","takeoffAtDateAndTime","takeoffAtDate","takeoffAtTime","takeoffAtYear","takeoffAtMonth","takeoffAtDay","landingAtDateAndTime","landingAtDate","landingAtTime","landingAtYear","landingAtMonth","landingAtDay","dayOffsetOperator","offsetDays","now","departureDate","substr","setFullYear","arrivalDate","setDate","takeoffAtHour","takeoffAtMinute","landingAtHour","landingAtMinute","pnr","parsedFlights","pastedString","bistroMatches","amadeusMatches","manualMatches","parseBistro","parseAmadeus","parseManual","sort","sortByDateAndTime","prepareNode","updateFlightItem","lastElementChild","parsePNR","updateFlights","scrollToNewFlight","invoicePdfAvailableValue","invoiceWebAvailableValue","pollBookingInvoiceStatus","iteration","invoiceScrambledIdValue","invoice_pdf_available","invoiceScrambledId","invoicePdfAvailable","invoiceWebAvailable","pollPaymentStatus","payment_status","successUrlValue","successUrl","secondRefundTarget","RequestStepController","targetNode","newTitle","roomItem","roomItemTargets","room","updateRoom","overflowTarget","scrollTarget","container","containerValue","section","behaviorValue","default","urlTarget","editSecondaryStateTarget","selectFieldTarget","checkboxTargets","checkbox","selectAll","deselectAll","allChecked","selectAllTarget","sendParticipant","checkmarkTarget","participantIdValue","participantNameValue","bookingResourceSkuIdValue","resourceSkuHandleValue","participantId","participantName","currentParticipantName","currentParticipant","nameList","dstTarget","participantsListTarget","hideParticipantsList","selectedParticipantsIdsValue","sendSelectedParticipantIds","highlightParticipantSelectField","toggleParticipantId","removeParticipant","bookingResourceSkuQuantityValue","checkmark","join","participantSelectFieldTarget","invalidClasses","validClasses","title","invalidValue","emptyValue","skipQuantityCheckValue","updateParticipantSelectField","bookingResourceSkuQuantity","empty","invalid","skipQuantityCheck","amount","paymentIds","amountFieldTarget","paymentIdsFieldTarget","groups","searchInputTimeout","updateElementVisibilityByQueryInput","query","searchInputTarget","listElementsTarget","labelElem","labelMatchesQuery","letter","group","groupContainsVisibleChildren","elements","x","domElement","sortBy","sortOrder","sortByTarget","sortOrderTarget","label","TabsController","URL","activeTabClasses","inactiveTabClasses","anchor","showTab","options","selectedIndex","tabTargets","tab","panel","panelTargets","panelTarget","dropdownOption","dropdownTargets","hash","top_classes","bottom_classes","shift_right","shift_left","full_right","full_left","center_x","center_y","triangle_up","triangle_down","triangle_right","triangle_left","positionTooltip","triangleTarget","clearClasses","elem","getBoundingClientRect","top","left","innerWidth","bottom","innerHeight","TransferAutocomplete","flightsTarget","updateFlight","dropoffTarget","updateTransferFields","pickupTarget","dropoffLocation","pickupTemplateTarget","dropoffTemplateTarget","span","departureAsOption","arrivalAsOption","renderOption","flightsEl","axios","renderOptions","getTwoDigits","getUTCHours","mins","getUTCMinutes","startsOnInput","startTimeInput","pickupLocation","reference","startson","starttime","pickuplocation","dropofflocation","arrivalAt","arrival_at","display_flight","arrival_airport","startTime","formatTime","startsOn","formatDate","departureAt","departure_at","departure_airport","overlay","targetFrame","identifier","identifierValue","targetElement","hideAfterValue","removeOverlay","hideAfter","valid","formTarget","submit","showModal","removeAttribute","displayClass","checkTarget","isValidValue","currentCheckMark","RoomController","Rails","ajax","dataType","currentLocale","booking_room_assignment_id","beforeSend","xhr","setRequestHeader","JSON","stringify","resource_sku_id","roomIdValue","booking_scrambled_id","bookingScrambledIdValue","roomChosen","roomId","bookingScrambledId","fetchTotalPrice","bookingIdValue","totalPriceTarget","bookingId","ownKeys","enumerableOnly","getOwnPropertySymbols","symbols","sym","getOwnPropertyDescriptor","apply","_objectSpread2","_defineProperty","configurable","_extends","_objectWithoutProperties","excluded","sourceKeys","_objectWithoutPropertiesLoose","sourceSymbolKeys","propertyIsEnumerable","userAgent","pattern","navigator","IE11OrLess","Edge","FireFox","Safari","IOS","ChromeForAndroid","captureMode","capture","passive","on","off","removeEventListener","selector","substring","msMatchesSelector","webkitMatchesSelector","_","getParentOrHost","host","nodeType","ctx","includeCTX","_throttleTimeout","R_SPACE","toggleClass","state","className","css","defaultView","getComputedStyle","currentStyle","matrix","selfOnly","appliedTransforms","transform","matrixFn","DOMMatrix","WebKitCSSMatrix","CSSMatrix","MSCSSMatrix","list","getElementsByTagName","getWindowScrollingElement","scrollingElement","documentElement","getRect","relativeToContainingBlock","relativeToNonStaticParent","undoScale","elRect","right","containerRect","elMatrix","scaleX","scaleY","isScrolledPast","elSide","parentSide","parent","getParentAutoScrollElement","elSideVal","parentSideVal","getChild","childNum","includeDragEl","currentChild","Sortable","ghost","dragged","draggable","lastChild","last","previousElementSibling","nodeName","clone","getRelativeScrollOffset","offsetLeft","offsetTop","winScroller","scrollLeft","scrollTop","includeSelf","gotSelf","clientWidth","scrollWidth","scrollHeight","elemCSS","overflowX","overflowY","isRectEqual","rect1","rect2","round","throttle","callback","ms","args","_this","scrollBy","y","Polymer","$","jQuery","Zepto","dom","getChildContainingRectFromElement","ghostEl","rect","child","_rect$left","_rect$top","_rect$right","_rect$bottom","animated","childRect","expando","getTime","AnimationStateManager","animationCallbackId","animationStates","captureAnimationState","animation","fromRect","thisAnimationDuration","childMatrix","f","addAnimationState","removeAnimationState","indexOfObject","animateAll","animating","animationTime","toRect","prevFromRect","prevToRect","animatingRect","targetMatrix","sqrt","calculateRealTime","animate","animationResetTimer","currentRect","duration","translateX","translateY","animatingX","animatingY","forRepaintDummy","repaint","easing","plugins","defaults","initializeByDefault","PluginManager","mount","plugin","pluginName","pluginEvent","sortable","evt","eventCanceled","cancel","eventNameGlobal","initializePlugins","initialized","modified","modifyOption","getEventProperties","eventProperties","modifiedValue","optionListeners","rootEl","targetEl","cloneEl","toEl","fromEl","oldIndex","oldDraggableIndex","newDraggableIndex","originalEvent","putSortable","extraEventProperties","onName","charAt","createEvent","initEvent","to","pullMode","lastPutMode","allEventProperties","_excluded","dragEl","parentEl","nextEl","lastDownEl","cloneHidden","dragStarted","moved","activeSortable","active","hideGhostForTarget","_hideGhostForTarget","unhideGhostForTarget","_unhideGhostForTarget","cloneNowHidden","cloneNowShown","dispatchSortableEvent","_dispatchEvent","activeGroup","tapEvt","touchEvt","lastDx","lastDy","tapDistanceLeft","tapDistanceTop","lastTarget","lastDirection","targetMoveDistance","ghostRelativeParent","awaitingDragStarted","ignoreNextClick","sortables","pastFirstInvertThresh","isCircumstantialInvert","ghostRelativeParentInitialScroll","_silent","savedInputChecked","documentExists","PositionGhostAbsolutely","CSSFloatProperty","supportDraggable","supportCssPointerEvents","cssText","pointerEvents","_detectDirection","elCSS","elWidth","paddingLeft","paddingRight","borderLeftWidth","borderRightWidth","child1","child2","firstChildCSS","secondChildCSS","firstChildWidth","marginLeft","marginRight","secondChildWidth","flexDirection","gridTemplateColumns","touchingSideChild2","clear","_prepareGroup","toFn","pull","sameGroup","otherGroup","originalGroup","checkPull","checkPut","put","revertClone","stopPropagation","stopImmediatePropagation","nearestEmptyInsertDetectEvent","touches","nearest","clientX","clientY","threshold","emptyInsertThreshold","insideHorizontally","insideVertically","_onDragOver","_checkOutsideTargetEl","_isOutsideThisEl","store","handle","swapThreshold","invertSwap","invertedSwapThreshold","removeCloneOnHide","direction","ghostClass","chosenClass","dragClass","ignore","preventOnFilter","setData","dataTransfer","dropBubble","dragoverBubble","dataIdAttr","delay","delayOnTouchOnly","touchStartThreshold","devicePixelRatio","forceFallback","fallbackClass","fallbackOnBody","fallbackTolerance","fallbackOffset","supportPointer","nativeDraggable","_onTapStart","_onMove","dragRect","targetRect","willInsertAfter","retVal","onMoveFn","onMove","draggedRect","related","relatedRect","_disableDraggable","_unsilent","_generateId","sum","_nextTick","_cancelNextTick","_getDirection","touch","pointerType","originalTarget","shadowRoot","path","composedPath","root","inputs","idx","_saveInputCheckedState","button","isContentEditable","criteria","_prepareDragStart","dragStartFn","ownerDocument","nextSibling","_lastX","_lastY","_onDrop","_disableDelayedDragEvents","_triggerDragStart","_disableDelayedDrag","_delayedDragTouchMoveHandler","_dragStartTimer","_onTouchMove","_onDragStart","selection","getSelection","removeAllRanges","_dragStarted","fallback","_appendGhost","_nulling","_emulateDragOver","elementFromPoint","ghostMatrix","relativeScrollOffset","dx","dy","cssMatrix","_hideClone","cloneId","_loopId","setInterval","effectAllowed","_dragStartId","revert","vertical","isOwner","canSort","fromSortable","completedFired","dragOverEvent","_ignoreWhileAnimating","completed","elLastChild","lastElRect","childContainingRect","spacer","_ghostIsLast","changed","firstElRect","_ghostIsFirst","firstChild","targetBeforeFirstSwap","sibling","differentLevel","differentRowCol","dragElS1Opp","dragElS2Opp","dragElOppLength","targetS1Opp","targetS2Opp","targetOppLength","_dragElInRowColumn","side1","scrolledPastTop","scrollBefore","isLastTarget","mouseOnAxis","targetLength","targetS1","targetS2","invert","_getInsertDirection","_getSwapDirection","dragIndex","nextElementSibling","after","moveVector","extra","axis","insertion","_showClone","_offMoveEvents","_offUpEvents","clearInterval","save","handleEvent","dropEffect","_globalDragOver","order","useAnimation","items","destroy","utils","is","dst","cancelNextTick","detectDirection","_len","version","scrollEl","scrollRootEl","lastAutoScrollX","lastAutoScrollY","touchEvt$1","pointerElemChangedInterval","autoScrolls","scrolling","clearAutoScrolls","autoScroll","pid","clearPointerElemChangedInterval","isFallback","scroll","scrollCustomFn","sens","scrollSensitivity","speed","scrollSpeed","scrollThisInstance","scrollFn","layersOut","currentParent","canScrollX","canScrollY","scrollPosX","scrollPosY","vx","vy","layer","scrollOffsetY","scrollOffsetX","bubbleScroll","drop","toSortable","changedTouches","onSpill","Revert","Remove","startIndex","dragStart","parentSortable","AutoScroll","forceAutoScrollFallback","_handleAutoScroll","_handleFallbackAutoScroll","dragOverCompleted","dragOverBubble","nulling","ogElemScroller","newElem","groupValue","handleValue","onEnd","handleDrop","draggedItem","dropTarget","__defineProperties","_slicedToArray","_defineProperty2","_classCallCheck2","instance","Constructor","_setPrototypeOf2","setPrototypeOf","__proto__","_createSuper2","Derived","hasNativeReflectConstruct","Reflect","construct","sham","Proxy","valueOf","_isNativeReflectConstruct2","Super","_getPrototypeOf2","NewTarget","_possibleConstructorReturn2","ReferenceError","_assertThisInitialized2","_toConsumableArray","_arrayWithoutHoles","iter","_iterableToArray","_nonIterableSpread","_classCallCheck","_defineProperties","_getPrototypeOf","_setPrototypeOf","_isNativeReflectConstruct","_possibleConstructorReturn","_assertThisInitialized","camelize","char","capitalize","readInheritableStaticArrayValues","propertyName","ancestors","getAncestorsForConstructor","reduce","definition","getOwnStaticArrayValues","Set","readInheritableStaticObjectPairs","pairs","getOwnStaticObjectPairs","reverse","extendWithReflect","extended","_constructor","subClass","superClass","_inherits2","_super2","parseValueDefinitionPair","typeDefinition","typeFromObject","typeObject","parseValueTypeConstant","defaultValueType","parseValueTypeDefault","parseValueTypeObject","typeFromDefaultValue","typeFromConstant","parseValueTypeDefinition","constant","defaultValuesByType","defaultValueForDefinition","reader","readers","writer","writers","valueDescriptorForTokenAndTypeDefinition","boolean","number","string","array","parse","writeJSON","protoProps","staticProps","application","scope","_ref6","_ref6$target","_ref6$detail","_ref6$prefix","prefix","_ref6$bubbles","_ref6$cancelable","blessings","properties","classDefinition","has","attribute","getAttributeName","getAll","targetDefinition","findAll","valueDefinitionPairs","propertyDescriptorMap","valueDescriptorMap","valueDefinitionPair","valueDescriptor","attributeName","getAttributeNameForKey","delete","hasCustomDefaultValue","propertiesForValueDefinitionPair","dateFormats","events","mapping","strftimeRegex","RegExp","_Controller","_inherits","StimulusFlatpickr","_super","config","_initializeEvents","_initializeOptions","_initializeDateFormats","fp","flatpickrElement","_initializeElements","_this2","hook","_this3","optionType","optionKebab","_handleDaysOfWeek","disableDaysOfWeek","_validateDaysOfWeek","disable","_disable","enableDaysOfWeek","enable","_enable","days","getDay","_this4","dateFormat","_this5","hasInstanceTarget","instanceTarget","locales","fr","French","en","english","de","German","altInput","showMonths","dateStr","dispatch","Flatpickr","row","rowTemplateTarget","bookingResourceSkuFlightId","airline_code","toLocaleString","flightListTarget","addFlightRow","dispatchError","noFlightsAvailableValue","errorFetchingFlightsValue","flightSelectionNotAvailableValue","departureAirport","arrivalAirport","noFlightsAvailable","errorFetchingFlights","flightSelectionNotAvailable","charMap","encodeURIComponent","AxiosURLSearchParams","params","_pairs","toFormData","encoder","_encode","buildURL","serializedParams","encode","serializeFn","serialize","hashmarkIndex","product","InterceptorManager","handlers","fulfilled","rejected","synchronous","runWhen","h","silentJSONParsing","forcedJSONParsing","clarifyTimeoutError","isBrowser","URLSearchParams","Blob","protocols","hasBrowserEnv","hasStandardBrowserEnv","hasStandardBrowserWebWorkerEnv","WorkerGlobalScope","importScripts","origin","_objectSpread","formData","buildPath","isNumericKey","isLast","arrayToObject","entries","parsePropPath","transitional","adapter","transformRequest","contentType","getContentType","hasJSONContentType","isObjectPayload","setContentType","platform","visitor","helpers","isNode","defaultVisitor","toURLEncodedForm","formSerializer","_FormData","env","rawValue","parser","stringifySafely","transformResponse","JSONRequested","responseType","strictJSONParsing","AxiosError","ERR_BAD_RESPONSE","xsrfCookieName","xsrfHeaderName","maxContentLength","maxBodyLength","validateStatus","status","common","ignoreDuplicateOf","$internals","normalizeHeader","header","normalizeValue","matchHeaderValue","isHeaderNameFilter","_Symbol$iterator","_Symbol$toStringTag","AxiosHeaders","first","computed","_len2","_key2","accessors","defineAccessor","_header","lHeader","accessorName","methodName","arg1","arg2","arg3","buildAccessors","valueOrRewrite","rewrite","setHeader","_value","_rewrite","setHeaders","parsed","rawHeaders","line","parseHeaders","_step","_iterator","allowArrayLike","it","F","_e2","normalCompletion","didErr","step","_e3","return","_createForOfIteratorHelper","tokens","tokensRE","parseTokens","matcher","deleted","deleteHeader","format","normalized","w","formatHeader","_this$constructor","asStrings","toJSON","accessor","mapped","headerValue","transformData","fns","normalize","isCancel","__CANCEL__","CanceledError","ERR_CANCELED","settle","ERR_BAD_REQUEST","samplesCount","firstSampleTS","bytes","timestamps","tail","chunkLength","startedAt","bytesCount","passed","freq","lastArgs","timer","timestamp","invoke","listener","isDownloadStream","bytesNotified","_speedometer","loaded","total","lengthComputable","progressBytes","rate","progress","estimated","progressEventDecorator","throttled","originURL","msie","urlParsingNode","resolveURL","protocol","search","hostname","port","requestURL","expires","domain","secure","cookie","toGMTString","decodeURIComponent","buildFullPath","baseURL","requestedURL","relativeURL","combineURLs","mergeConfig","config1","config2","getMergedValue","mergeDeepProperties","valueFromConfig2","defaultToConfig2","mergeDirectKeys","mergeMap","paramsSerializer","timeoutMessage","withCredentials","withXSRFToken","onUploadProgress","onDownloadProgress","decompress","beforeRedirect","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding","configValue","_toArray","newConfig","auth","btoa","username","password","unescape","xsrfValue","cookies","XMLHttpRequest","onCanceled","uploadThrottled","downloadThrottled","flushUpload","flushDownload","_config","resolveConfig","requestData","requestHeaders","unsubscribe","signal","onloadend","responseHeaders","getAllResponseHeaders","responseText","statusText","open","onreadystatechange","readyState","responseURL","onabort","ECONNABORTED","ERR_NETWORK","ontimeout","timeoutErrorMessage","ETIMEDOUT","_progressEventReducer2","upload","_progressEventReducer4","abort","subscribe","aborted","send","signals","controller","AbortController","reason","asyncGeneratorStep","gen","_next","_throw","arg","_AsyncGenerator","front","back","resume","wrappedAwait","_AwaitValue","wrapped","_invoke","_awaitAsyncGenerator","_asyncGeneratorDelegate","inner","awaitWrap","waiting","pump","throw","_asyncIterator","iterable","asyncIterator","streamChunk","mark","_callee","chunkSize","pos","end","wrap","_context","prev","byteLength","abrupt","stop","readBytes","_callee2","_iteratorAbruptCompletion","_didIteratorError","_iteratorError","_context2","sent","t0","t1","t2","t3","t4","t5","t6","t7","t8","delegateYield","t10","finish","_x","_x2","_x3","stream","onProgress","onFinish","_onFinish","ReadableStream","_callee3","_yield$iterator$next","_done","loadedBytes","_context3","enqueue","highWaterMark","res","isFetchSupported","Request","Response","isReadableStreamSupported","encodeText","TextEncoder","arrayBuffer","supportsRequestStream","duplexAccessed","hasContentType","supportsResponseStream","resolvers","ERR_NOT_SUPPORT","getBodyLength","resolveBodyLength","getContentLength","_x4","_callee4","_resolveConfig","_resolveConfig$withCr","fetchOptions","composedSignal","stopTimeout","finished","requestContentLength","_request","contentTypeHeader","_progressEventDecorat","_progressEventDecorat2","flush","isStreamResponse","responseContentLength","_ref7","_ref8","_onProgress","_flush","responseData","_context4","duplex","credentials","cause","code","_x5","knownAdapters","http","renderReason","adapters","nameOrAdapter","rejectedReasons","reasons","throwIfCancellationRequested","throwIfRequested","dispatchRequest","VERSION","validators","deprecatedWarnings","validator","formatMessage","opt","desc","opts","ERR_DEPRECATED","warn","assertOptions","schema","allowUnknown","ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","Axios","instanceConfig","interceptors","_request2","configOrUrl","dummy","captureStackTrace","function","contextHeaders","requestInterceptorChain","synchronousRequestInterceptors","interceptor","unshift","responseInterceptorChain","chain","onFulfilled","onRejected","generateHTTPMethod","isForm","CancelToken","executor","resolvePromise","_listeners","onfulfilled","_resolve","HttpStatusCode","Continue","SwitchingProtocols","Processing","EarlyHints","Ok","Created","Accepted","NonAuthoritativeInformation","NoContent","ResetContent","PartialContent","MultiStatus","AlreadyReported","ImUsed","MultipleChoices","MovedPermanently","Found","SeeOther","NotModified","UseProxy","Unused","TemporaryRedirect","PermanentRedirect","BadRequest","Unauthorized","PaymentRequired","Forbidden","NotFound","MethodNotAllowed","NotAcceptable","ProxyAuthenticationRequired","RequestTimeout","Conflict","Gone","LengthRequired","PreconditionFailed","PayloadTooLarge","UriTooLong","UnsupportedMediaType","RangeNotSatisfiable","ExpectationFailed","ImATeapot","MisdirectedRequest","UnprocessableEntity","Locked","FailedDependency","TooEarly","UpgradeRequired","PreconditionRequired","TooManyRequests","RequestHeaderFieldsTooLarge","UnavailableForLegalReasons","InternalServerError","NotImplemented","BadGateway","ServiceUnavailable","GatewayTimeout","HttpVersionNotSupported","VariantAlsoNegotiates","InsufficientStorage","LoopDetected","NotExtended","NetworkAuthenticationRequired","createInstance","defaultConfig","Cancel","spread","isAxiosError","payload","formToJSON","getAdapter","_loop","_args","webpackContext","req","webpackContextResolve","flightValue","lastVersionId","lastVersionIdValue","currentUserId","currentUserIdValue","approvableId","approvableIdValue","approvableType","approvableTypeValue","approved","updateApproval","hasMessageTarget","isVisitable","removeBrackets","renderKey","dots","predicates","metaTokens","indexes","useBlob","convertValue","toISOString","Buffer","isFlatArray","exposedHelpers","build","pop","bookingResourceSku","updateDetails","teaser_image","description","localized_price","nameTarget","descriptionTarget","priceTarget","heightTarget","imageTarget","bookingResourceSkuRemoved","updateCtaSectionVisibility","bookedRentalbikeTemplateTarget","bookedRentalbikesSectionTarget","ctaSectionTarget","scrollTo","priceValue","startObservingVisiblity","loadingValue","stopObservingVisibility","quantity","selectedDatesValue","endsOn","resourceId","selectedResourceSkuIdValue","resourceSkuSelectTarget","resourceSku","reset","fetchPrice","price","fetchAvailableResourceSkus","showLoadingOverlay","updatePrice","fetchAvailable","resourceSkusValue","booking_id","starts_on","ends_on","bookingResourceSkuCreated","loadingOverlayTarget","observer","MutationObserver","mutationsList","mutation","observe","disconnect","resourceSkus","selectedResourceSkuId","setActive","showDetails","optionTargets","activeOptionClass","rentalbikeTargets","hiddenClass","optionTarget","bookedPackageTemplateTarget","bookedPackagesSectionTarget","bookedTransferTemplateTarget","onwardJourneyBookingResourceSku","onwardJourneyData","returnJourneyBookingResourceSku","returnJourneyData","transferType","resourceSkuId","bookedTransfersSectionTarget","quantityName","dateRangeTarget","removeButtonTarget","bookingDatesValue","available","fetchAvailabilityForQuantity","errorClasses","resetForm","quantityTarget","bookablePackagesCountValue","hideError","bookButtonTarget","startPriceValue","pricingTarget","resourceSkuIdValue","notAvailableValue","fetchAvailability","availability","toggleBookButton","bookingResourceSkuAdded","startPrice","notAvailable","bookingDates","bookablePackagesCount","onwardJourneyIdValue","returnJourneyIdValue","transferTypeValue","localized_starts_on","returnJourneyQuantity","returnJourneyPrice","returnJourneyStartsOn","transferName","onwardJourneyNameTarget","returnJourneyNameTarget","onwardJourneyStartsOnTargets","returnJourneyStartsOnTargets","total_price","addLocalizedCurrencies","onwardJourneyQuantityValue","returnJourneyQuantityValue","value1","value2","totalVal","parseLocalizedCurrency","getCurrencyPrefix","formatCurrency","trimmed","firstDigitIndex","mainPart","parseFloat","formattedValue","toFixed","onwardJourneyId","returnJourneyId","onwardJourneyQuantity","bookableTransfersCountValue","availableTransfersCountValue","entireDateRange","bookableTransfersCount","availableTransfersCount","_createSuper","_createClass","EventListener","eventTarget","eventOptions","unorderedBindings","binding","extendedEvent","_stopImmediatePropagation","immediatePropagationStopped","extendEvent","bindings","leftIndex","rightIndex","Dispatcher","eventListenerMaps","Map","started","eventListeners","eventListener","listeners","fetchEventListenerForBinding","bindingConnected","clearEventListeners","bindingDisconnected","clearEventListenersForBinding","handleError","hasBindings","removeMappedEventListenerFor","eventListenerMap","fetchEventListenerMapForEventTarget","cacheKey","fetchEventListener","createEventListener","parts","defaultActionDescriptorFilters","prevent","descriptorPattern","parseEventTarget","eventTargetName","namespaceCamelize","dasherize","isSomething","hasProperty","allModifiers","Action","defaultEventNames","getDefaultEventNameForElement","keyFilter","eventFilter","filters","keyFilterDissatisfied","standardFilter","keyMappings","_Array$from","typecast","_allModifiers$map2","modifier","meta","ctrl","alt","metaKey","ctrlKey","altKey","shiftKey","descriptorString","form","details","input","textarea","o_O","Binding","action","actionEvent","prepareActionEvent","willBeInvokedByEvent","applyEventModifiers","invokeWithEvent","actionDescriptorFilters","passes","_i2","_Object$entries","logDebugActivity","KeyboardEvent","shouldIgnoreKeyboardEvent","MouseEvent","shouldIgnoreMouseEvent","Element","containsElement","ElementObserver","delegate","mutationObserverInit","childList","subtree","mutationObserver","mutations","processMutations","refresh","takeRecords","matchElementsInTree","_i3","_Array$from2","removeElement","_i4","_Array$from3","_element2","addElement","_step2","_iterator2","processMutation","processAttributeChange","processRemovedNodes","removedNodes","processAddedNodes","addedNodes","elementAttributeChanged","matchElement","nodes","_i5","_Array$from4","elementFromNode","processTree","_i6","_Array$from5","elementIsActive","tree","processor","_step3","_iterator3","Node","ELEMENT_NODE","isConnected","elementMatched","elementUnmatched","AttributeObserver","elementObserver","start","pause","hasAttribute","elementMatchedAttribute","elementUnmatchedAttribute","elementAttributeValueChanged","_add","del","prune","Multimap","valuesByKey","_ref9","_ref10","_ref11","_ref12","SelectorObserver","_selector","matchesByElement","selectorMatchElement","selectorMatched","_step4","_iterator4","getKeysForValue","selectorUnmatched","_attributeName","matchedBefore","StringMapObserver","stringMap","attributeOldValue","_step5","_iterator5","knownAttributeNames","refreshAttribute","_step6","_iterator6","oldValue","getStringMapKeyForAttribute","stringMapKeyAdded","stringMapValueChanged","_oldValue","stringMapKeyRemoved","currentAttributeNames","recordedAttributeNames","TokenListObserver","attributeObserver","tokensByElement","tokensMatched","readTokensForElement","_this$refreshTokensFo2","refreshTokensForElement","unmatchedTokens","matchedTokens","tokensUnmatched","getValuesForKey","tokenMatched","_this6","tokenUnmatched","previousTokens","currentTokens","firstDifferingIndex","_ref13","_ref14","tokensAreEqual","tokenString","parseTokenString","ValueListObserver","tokenListObserver","parseResultsByToken","WeakMap","valuesByTokenByElement","fetchParseResultForToken","fetchValuesByTokenForElement","elementMatchedValue","elementUnmatchedValue","parseResult","parseToken","valuesByToken","parseValueForToken","BindingObserver","bindingsByAction","valueListObserver","actionAttribute","disconnectAllActions","_this7","forToken","connectAction","disconnectAction","ValueObserver","receiver","stringMapObserver","invokeChangedCallbacksForDefaultValues","hasValue","invokeChangedCallback","valueDescriptorNameMap","_step7","_iterator7","valueDescriptors","_ref16","rawOldValue","changedMethodName","changedMethod","_this8","hasMethodName","TargetObserver","targetsByName","disconnectAllTargets","_ref17","connectTarget","_ref18","disconnectTarget","_a","_this9","targetConnected","_this10","targetDisconnected","_step8","_iterator8","_step9","_iterator9","OutletObserver","outletsByName","outletElementsByName","selectorObserverMap","attributeObserverMap","_this11","outletDefinitions","outletName","setupSelectorObserverForOutlet","setupAttributeObserverForOutlet","dependentContexts","disconnectAllOutlets","stopSelectorObservers","stopAttributeObservers","_ref19","outlet","getOutlet","connectOutlet","_ref20","getOutletFromMap","disconnectOutlet","_ref21","hasOutlet","hasOutletController","controllerAttribute","_element","getOutletNameFromOutletAttributeName","updateSelectorObserverForOutlet","_this12","outletConnected","_this13","outletDisconnected","_step10","_iterator10","_step11","_iterator11","_step12","_iterator12","selectorObserver","attributeNameForOutletName","outlets","getSelectorForOutletName","outletAttributeForScope","_this14","dependencies","router","controllerConstructor","outletDependencies","identifiers","dependentControllerIdentifiers","contexts","getControllerForElementAndIdentifier","Context","_this15","functionName","bindingObserver","dispatcher","valueObserver","targetObserver","outletObserver","initialize","invokeControllerMethod","bless","shadowConstructor","shadowProperties","getOwnKeys","shadowingDescriptor","getShadowedDescriptor","getShadowProperties","shadow","blessedProperties","blessing","getBlessedProperties","Module","blessDefinition","contextsByScope","connectedContexts","fetchContextForScope","ClassMap","getDataKey","DataMap","Guide","logger","warnedKeysByObject","warnedKeys","attributeValueContainsToken","TargetSet","targetName","_this16","targetNames","_key3","findTarget","findLegacyTarget","_this17","_len3","_key4","findAllTargets","findAllLegacyTargets","getSelectorForTargetName","findElement","findAllElements","targetAttributeForScope","getLegacySelectorForTargetName","deprecate","_this18","targetDescriptor","targetAttribute","revisedAttributeName","guide","OutletSet","controllerElement","_this19","_len4","outletNames","_key5","findOutlet","_this20","_len5","_key6","findAllOutlets","_this21","queryElements","matchesElement","_this22","Scope","_this23","controllerSelector","documentScope","isDocumentScope","ScopeObserver","scopesByIdentifierByElement","scopeReferenceCounts","parseValueForElementAndIdentifier","scopesByIdentifier","fetchScopesByIdentifierForElement","createScopeForElementAndIdentifier","referenceCount","scopeConnected","scopeDisconnected","Router","scopeObserver","modulesByIdentifier","unloadIdentifier","connectModule","afterLoad","disconnectModule","connectContextForScope","disconnectContextForScope","defaultSchema","enter","esc","space","up","down","home","page_up","page_down","objectFromEntries","memo","_ref22","_ref23","k","v","Application","_this24","debug","logFormattedMessage","_start","load","_this25","_len6","rest","_key7","definitions","shouldLoad","loadDefinition","_this26","_len7","_key8","getContextForElementAndIdentifier","groupCollapsed","groupEnd","getOutletController","getControllerAndEnsureConnectedScope","outletController","proposeToConnectScopeForElementAndIdentifier","_ref28","_ref29","hasType","hasDefault","fullObject","onlyType","onlyDefault","propertyPath","constantFromType","_ref30","_ref30$target","_ref30$detail","_ref30$prefix","_ref30$bubbles","_ref30$cancelable","_identifier","_application","_ref24","_ref26","_this28","_ref27","outletDefinition","camelizedName","_ref25","outletElement","_this27","highlightClasses","availabilityId","availabilityTargets","eventItemTargets","eventItem","flag","_asyncToGenerator","optionSelector","Autocomplete","onKeydown","handler","onEscapeKeydown","isHidden","hideAndRemoveOptions","onArrowDownKeydown","onArrowUpKeydown","onTabKeydown","selected","selectedOption","commit","onEnterKeydown","hasSubmitOnEnterValue","onInputBlur","mouseDown","onResultsClick","onResultsMouseDown","once","onInputChange","debounce","hasHiddenTarget","hiddenTarget","fetchResults","html","hasUrlValue","buildQueryURL","doFetch","replaceResults","headersForFetch","text","readyValue","onInputFocus","hasResultsTarget","def","_target$classList","_previouslySelected$c","previouslySelected","selectedClassesOrDefault","HTMLAnchorElement","click","textValue","Event","minLengthValue","identifyOptions","hasSkipHiddenPropertyValue","hidden","hasSelectedClass","selectedClasses","ready","submitOnEnter","minLength","skipHiddenProperty","timeoutId","require","contextComponents","definitionsFromContext","register","g","Function","fileName","lineNumber","columnNumber","customProps","axiosError","hasHeaderTarget","headerTarget","hasEditableTarget","editableTarget","factory","flatpickr","l10ns","weekdays","shorthand","longhand","months","firstDayOfWeek","weekAbbreviation","rangeSeparator","scrollTitle","toggleTitle","time_24hr","ordinal","nth","HOOKS","allowInput","allowInvalidPreload","altFormat","altInputClass","ariaDateFormat","autoFillDefaultTime","clickOpens","closeOnSelect","conjunction","defaultHour","defaultMinute","defaultSeconds","disableMobile","enableSeconds","enableTime","errorHandler","getWeek","givenDate","week1","hourIncrement","ignoredFocusElements","inline","minuteIncrement","monthSelectorType","nextArrow","noCalendar","onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition","positionElement","prevArrow","shorthandCurrentMonth","static","weekNumbers","daysInMonth","amPM","yearAriaLabel","monthAriaLabel","hourAriaLabel","minuteAriaLabel","pad","bool","wait","_arguments","arrayify","tag","clearNode","findParent","condition","createNumberInput","inputClassName","wrapper","numInput","arrowUp","arrowDown","getEventTarget","doNothing","monthToStr","monthNumber","revFormat","D","dateObj","monthName","setMonth","G","H","J","K","M","shortMonth","S","seconds","setSeconds","U","unixSeconds","W","weekNum","weekNumber","Y","Z","ISODate","setMinutes","j","u","unixMillSeconds","tokenRegex","getSeconds","getMinutes","_ref$config","_ref$l10n","l10n","_ref$isMobile","isMobile","frmt","overrideLocale","_ref2$config","_ref2$l10n","givenFormat","timeless","customLocale","parsedDate","dateOrig","datestr","parseDate","matched","ops","matchIndex","regexStr","isBackSlash","escaped","compareDates","date1","date2","getDefaultHours","minDate","minHour","minMinutes","minSeconds","maxDate","maxHr","maxMinutes","FlatpickrInstance","bindToInstance","setCalendarWidth","requestAnimationFrame","calendarContainer","visibility","daysContainer","daysWidth","weekWrapper","removeProperty","updateTime","defaultDate","getMilliseconds","latestSelectedDateObj","isKeyDown","curValue","delta","which","newValue","isHourElem","hourElement","isMinuteElem","minuteElement","incrementNumInput","timeWrapper","prevValue","_input","setHoursFromInputs","updateValue","_debouncedChange","secondElement","limitMinHours","minTime","minDateHasTime","maxTime","maxDateHasTime","setHoursFromDate","onYearInput","changeYear","ev","_handlers","triggerChange","triggerEvent","jumpToDate","jumpDate","jumpTo","oldYear","currentYear","oldMonth","currentMonth","buildMonthSwitch","redraw","timeIncrement","inputElem","createDay","dayNumber","dateIsEnabled","isEnabled","dayElement","$i","todayDateElem","tabIndex","isDateSelected","selectedDateElem","isDateInRange","insertAdjacentHTML","focusOnDayElem","onMouseOver","getFirstAvailableDay","startMonth","endMonth","endIndex","focusOnDay","current","dayFocused","isInView","activeElement","startElem","givenMonth","loopDelta","numMonthDays","changeMonth","getNextAvailableDay","buildMonthDays","firstOfMonth","prevMonthDays","getDaysInMonth","createDocumentFragment","isMultiMonth","prevMonthDayClass","nextMonthDayClass","dayIndex","dayNum","dayContainer","buildDays","frag","shouldBuildMonth","monthsDropdownContainer","buildMonth","monthElement","monthNavFragment","selectedMonth","yearInput","tabindex","yearElement","buildMonths","monthNav","prevMonthNav","yearElements","monthElements","nextMonthNav","buildWeekdays","weekdayContainer","updateWeekdays","isOffset","_hidePrevMonthArrow","_hideNextMonthArrow","updateNavigationCurrentMonth","isCalendarElem","appendTo","documentClick","isOpen","isCalendarElement","isInput","lostFocus","relatedTarget","isIgnored","timeContainer","newYear","newYearNum","isNewYear","dateToCheck","onBlur","allowKeydown","allowInlineKeydown","keyCode","isTimeObj","focusAndClose","selectDate","_delta","currentYearElement","elems","pluginElements","hoverDate","initialDate","rangeStartDate","rangeEndDate","containsDisabled","minRange","maxRange","ts","ts1","ts2","dayElem","outOfRange","onResize","positionCalendar","minMaxDateSetter","inverseDateObj","getInputElem","setupLocale","customPositionElement","_positionElement","calendarHeight","acc","calendarWidth","configPos","configPosVertical","configPosHorizontal","inputBounds","distanceFromBottom","showOnTop","pageYOffset","pageXOffset","isCenter","isRight","rightMost","centerMost","doc","editableSheet","styleSheets","sheet","cssRules","getDocumentStyleSheet","bodyWidth","centerLeft","centerIndex","centerStyle","insertRule","msMaxTouchPoints","selectedDate","shouldChangeMonth","single","range","loadedPlugins","_bind","_setHoursFromDate","_positionCalendar","triggerChangeEvent","toInitial","mobileInput","_initialDate","_getDefaultHours","_createElement","_type","wasOpen","CALLBACKS","setSelectedDate","inputDate","dates","parseDateRules","rule","hooks","getDateStr","dObj","mobileFormatStr","onMonthNavClick","isPrevMonth","isNextMonth","boolOpts","userConfig","formats","timeMode","defaultDateFormat","defaultAltFormat","_minDate","_maxDate","minMaxTimeSetter","_minTime","_maxTime","pluginConf","parseConfig","placeholder","required","setupInputs","preloadedDate","setupDates","yr","fragment","__hidePrevMonthArrow","__hideNextMonthArrow","innerContainer","_buildWeeks","buildWeeks","rContainer","separator","hourInput","minuteInput","military2ampm","secondInput","buildTime","customAppend","inputType","setupMobile","debouncedResize","ontouchstart","selText","bindEvents","isSafari","init","_flatpickr","nodeList","HTMLElement","instances","HTMLCollection","NodeList","localize","setDefaults","fp_incr","logicalName","identifierForContextKey","definitionForModuleAndIdentifier","definitionForModuleWithContextAndKey","userLanguage","language","isDateTimeLocalSupported","linkClickSelector","buttonClickSelector","exclude","inputChangeSelector","formSubmitSelector","formInputClickSelector","formDisableSelector","formEnableSelector","fileInputSelector","linkDisableSelector","buttonDisableSelector","nonce","loadCSPNonce","ref","cspNonce","matchesSelector","mozMatchesSelector","oMatchesSelector","getData","csrfParam","csrfToken","CSRFProtection","refreshCSRFTokens","param","fire","initCustomEvent","defaultPrevented","stopEverything","eventType","AcceptHeaders","createXHR","prepareOptions","processResponse","xml","getResponseHeader","complete","OPENED","accept","crossDomain","DONE","DOMParser","parseFromString","isCrossDomain","originAnchor","urlAnchor","serializeElement","additionalParam","formElements","allowAction","handleConfirm","confirm","answer","disableFormElement","disableFormElements","disableLinkElement","enableFormElement","enableFormElements","enableLinkElement","isXhrRedirect","handleDisabledElement","enableElement","disableElement","replacement","originalText","handleMethod","formContent","link","isRemote","handleRemote","enctype","formSubmitButtonClick","formNoValidate","preventInsignificantClick","insignificantMetaClick","rails","ajaxPrefilter","originalOptions","_rails_loaded","cachedSetTimeout","cachedClearTimeout","defaultSetTimout","defaultClearTimeout","runTimeout","fun","currentQueue","queue","draining","queueIndex","cleanUpNextTick","drainQueue","run","marker","runClearTimeout","Item","browser","argv","versions","addListener","removeListener","removeAllListeners","emit","prependListener","prependOnceListener","cwd","chdir","dir","umask","handleClick","flightIdInput","validBookingResourceSkuAssociation","bookingResourceSkuTransferFlightId","bookingResourceSkuTransferAccommodationId","showInvalidDropIndicator","startEvent","onDragDrop","draggedElement","resourceSkuType","associatedBookingResourceSkuIdFromInverse","onDragDropSuccess","onDragDropFailure","showPickupDropoffModal","_draggedData","_templateObject","_templateObject2","_taggedTemplateLiteral","strings","raw","freeze","_get","base","_superPropBase","_classPrivateFieldLooseBase","privateKey","_classPrivateFieldLooseKey","_wrapNativeSuper","Class","_cache","Wrapper","_construct","Parent","raise","errorConstructor","requestSubmit","submitter","DOMException","validateSubmitter","HTMLFormElement","submittersByForm","clickCaptured","candidate","prototypeOfSubmitEvent","SubmitEvent","vendor","FrameLoadingStyle","eager","lazy","FrameElement","_HTMLElement","delegateConstructor","sourceURLReloaded","loadingStyleChanged","sourceURLChanged","disabledChanged","frameLoadingStyleFromString","isLoading","isPreview","_this$ownerDocument","_this$ownerDocument$d","drive","enabled","progressBarDelay","unvisitableExtensions","activateScriptElement","createdScriptElement","getCspNonce","async","destinationElement","sourceElement","copyElementAttributes","cancelEvent","nextRepaint","visibilityState","nextEventLoopTick","nextAnimationFrame","parseHTMLDocument","unindent","lines","interpolate","indent","uuid","markAsBusy","_elements","localName","clearBusyState","_elements2","waitForLoad","timeoutInMilliseconds","onComplete","getHistoryMethodForAction","history","replaceState","pushState","isAction","getVisitAction","getMetaElement","getMetaContent","findClosestRecursively","_element$getRootNode","assignedSlot","getRootNode","elementIsFocusable","queryAutofocusableElement","elementOrDocumentFragment","around","_around","_callee46","before","_context46","doesNotTargetIFrame","getElementsByName","HTMLIFrameElement","findLinkFromClickTarget","getLocationForLink","expandURL","beforeSubmit","afterSubmit","_submitter","forms","Config","locatable","baseURI","getAnchor","anchorMatch","getAction$1","getExtension","getPathComponents","getLastPathComponent","isPrefixedBy","getPrefix","locationIsVisitable","rootLocation","getRequestURL","toCacheKey","FetchResponse","ok","succeeded","statusCode","redirected","isHTML","recentRequests","_Set","LimitedSet","maxSize","oldestValue","nativeFetch","fetchWithTurboHeaders","modifiedHeaders","Headers","requestUID","fetchMethodFromString","FetchMethod","post","patch","fetchEnctypeFromString","encoding","FetchEnctype","multipart","plain","urlEncoded","_resolveRequestPromise","_allowRequestToBeIntercepted","_willDelegateErrorHandling","FetchRequest","_this$delegate$referr","requestBody","_willDelegateErrorHandling2","_allowRequestToBeIntercepted2","abortController","_buildResourceAndBody","buildResourceAndBody","_buildResourceAndBody2","redirect","defaultHeaders","abortSignal","referrer","_receive","_perform","fetchBody","isSafe","searchParams","fetchMethod","_buildResourceAndBody4","prepareRequest","requestStarted","fetchRequest","receive","requestErrored","requestFinished","fetchResponse","requestPreventedHandlingResponse","requestSucceededWithResponse","requestFailedWithResponse","mimeType","_x40","_allowRequestToBeIntercepted3","_callee50","requestInterception","_this53","_context50","resource","entriesExcludingFiles","mergeIntoURLSearchParams","File","AppearanceObserver","intersect","lastEntry","isIntersecting","elementAppearedInViewport","intersectionObserver","IntersectionObserver","unobserve","StreamMessage","streamElement","importNode","templateElement","inertScriptElement","replaceWith","importStreamElements","template","_prefetchTimeout","_prefetched","prefetchCache","PrefetchCache","expire","ttl","perform","FormSubmissionState","FormSubmission","formElement","mustRedirect","getMethod","getAction","getFormAction","buildFormData","getEnctype","requesting","confirmationMessage","confirmMethod","stopping","stopped","cookieName","getCookieValue","requestAcceptsTurboStreamResponse","acceptResponseType","setSubmitsWith","formSubmission","formSubmissionStarted","clientError","serverError","formSubmissionFailedWithResponse","requestMustRedirect","responseSucceededWithoutRedirect","formSubmissionErrored","formSubmissionSucceededWithResponse","resetSubmitterText","formSubmissionFinished","submitsWith","originalSubmitText","_this$submitter","formElementAction","formAction","Snapshot","getElementForAnchor","queryPermanentElementsAll","_getPermanentElementById","snapshot","permanentElementMap","permanentElements","currentPermanentElement","_id","newPermanentElement","getPermanentElementById","FormSubmitObserver","submitCaptured","submitBubbled","_submitter2","submissionDoesNotDismissDialog","submissionDoesNotTargetIFrame","willSubmitForm","formSubmitted","_resolveRenderPromise","_resolveInterceptionPromise","View","_renderSnapshot","_prepareToRenderSnapshot","_render","scrollToElement","focusElement","scrollToPosition","scrollToAnchor","scrollRoot","renderer","shouldRender","willRender","shouldInvalidate","renderInterception","newSnapshot","renderPromise","prepareToRenderSnapshot","render","renderElement","renderMethod","allowsImmediateRender","renderSnapshot","viewRenderedSnapshot","preloadOnLoadLinksForView","finishRenderingSnapshot","invalidate","reloadReason","viewInvalidated","_callee5","_context5","markAsPreview","prepareToRender","_callee6","_context6","_x6","finishRendering","FrameView","_View2","_super3","LinkInterceptor","clickBubbled","clickEventIsSignificant","clickEvent","linkClicked","shouldInterceptLinkClick","linkClickIntercepted","willVisit","_event","_event$target","LinkClickObserver","_location2","willFollowLinkToLocation","followedLinkToLocation","FormLinkClickObserver","linkInterceptor","willSubmitFormLinkToLocation","turboFrame","turboAction","turboConfirm","submittedFormLinkToLocation","Bardo","_preservingPermanentElements","_id2","_this$permanentElemen","enteringBardo","replaceNewPermanentElementWithPlaceholder","_id3","replaceCurrentPermanentElementWithClone","replacePlaceholderWithPermanentElement","leavingBardo","permanentElement","createPlaceholderForPermanentElement","getPlaceholderById","placeholders","_callee7","bardo","_context7","leave","_x7","_x8","_x9","_activeElement","Renderer","currentSnapshot","resolvingFunctions","_preservingPermanentElements2","_callee8","_context8","preservingPermanentElements","_x10","shouldAutofocus","connectedSnapshot","firstAutofocusableElement","getPermanentElementMapForSnapshot","currentElement","newElement","_Renderer2","FrameRenderer","_render2","_super4","_callee9","_context9","loadFrameElement","scrollFrameIntoView","focusFirstAutofocusableElement","activateScriptElements","willRenderFrame","autoscroll","block","readScrollBehavior","newScriptElements","activatedScriptElement","_frameElement$ownerDo","destinationRange","createRange","selectNodeContents","deleteContents","frameElement","sourceRange","extractContents","Idiomorph","EMPTY_SET","morphStyle","beforeNodeAdded","noOp","afterNodeAdded","beforeNodeMorphed","afterNodeMorphed","beforeNodeRemoved","afterNodeRemoved","beforeAttributeUpdated","shouldPreserve","elt","shouldReAppend","shouldRemove","afterHeadMorphed","morphNormalizedContent","oldNode","normalizedNewContent","oldHead","newHead","handleHeadElement","morphChildren","bestMatch","newContent","bestElement","score","newScore","scoreElement","findBestNodeMatch","previousSibling","morphedNode","morphOldNodeTo","added","insertSiblings","ignoreValueOfActiveElement","possibleActiveElement","ignoreActiveValue","ignoreActive","isSoftMatch","HTMLHeadElement","fromAttributes","toAttributes","fromAttribute","ignoreAttribute","toAttribute","nodeValue","HTMLInputElement","fromValue","toValue","syncBooleanAttribute","HTMLOptionElement","HTMLTextAreaElement","_fromValue","_toValue","syncInputValue","syncNodeFrom","replaceChild","newParent","oldParent","newChild","nextNewChild","insertionPoint","isIdSetMatch","removeIdsFromConsideration","idSetMatch","findIdSetMatch","removeNodesBetween","softMatch","findSoftMatch","tempNode","removeNode","attr","updateType","ignoreUpdate","newHeadTag","currentHead","removed","preserved","nodesToAppend","headMergeStyle","srcToNewHeadNodes","newHeadChild","outerHTML","currentHeadElt","inNewContent","isReAppended","isPreserved","_nodesToAppend","newElt","createContextualFragment","_removed","removedElement","kept","createMorphContext","finalConfig","mergeDefaults","idMap","createIdMap","deadIds","node1","node2","getIdIntersectionCount","startInclusive","endExclusive","newChildPotentialIdCount","_potentialMatch","otherMatchCount","potentialSoftMatch","siblingSoftMatchCount","parseContent","contentWithSvgsRemoved","generatedByIdiomorph","htmlElement","_content","normalizeContent","_dummyParent","_dummyParent2","_arr2","isIdInConsideration","idIsWithinNode","_step13","_iterator13","_id4","_step14","matchCount","_iterator14","_id5","populateIdMapForNode","_step15","nodeParent","_iterator15","idSet","oldContent","morph","Document","normalizedContent","morphElements","DefaultIdiomorphCallbacks","_beforeNodeMorphed","getElementById","mutationType","_FrameRenderer","MorphingFrameRenderer","_preservingPermanentElements3","_super5","_callee10","_context10","_x11","ProgressBar","hiding","visible","trickle","setValue","stylesheetElement","createStylesheetElement","progressElement","createProgressElement","installStylesheetElement","installProgressElement","startTrickling","fadeProgressElement","uninstallProgressElement","stopTrickling","opacity","animationDuration","trickleInterval","defaultCSS","HeadSnapshot","_Snapshot","_super6","_len8","detailsByOuterHTML","elementIsNoscript","elementWithoutNonce","elementType","tracked","elementIsTracked","getElementsMatchingTypeNotInSnapshot","matchedType","_this20$detailsByOute","findMetaElementByName","elementIsMetaElementWithName","elementIsScript","elementIsStylesheet","PageSnapshot","_Snapshot2","_super7","headSnapshot","_step16","clonedElement","selectElements","clonedSelectElements","_iterator16","_step18","_iterator18","selectedOptions","_step19","_iterator19","_option","_step17","_iterator17","_this$getSetting","getSetting","cacheControlValue","getMetaValue","fromDocument","_viewTransitionStarted","_lastOperation","ViewTransitioner","useViewTransition","viewTransitionsAvailable","_callee11","_context11","startViewTransition","defaultOptions","historyChanged","visitCachedSnapshot","updateHistory","shouldCacheSnapshot","acceptsStreamResponse","TimingMetric","VisitState","SystemStatusCode","Direction","advance","restore","Visit","restorationIdentifier","timingMetrics","followedRedirect","scrolled","snapshotCached","viewTransitioner","_defaultOptions$optio","snapshotHTML","isSamePage","locationWithActionIsSamePage","isPageRefresh","view","_renderPageSnapshot","_render3","_requestFailedWithResponse","_requestSucceededWithResponse","getRestorationDataForIdentifier","recordTimingMetric","visitStarted","cancelRender","visitCompleted","followRedirect","visitFailed","_this$referrer","update","hasPreloadedResponse","simulateRequest","shouldIssueRequest","startRequest","recordResponse","finishRequest","visitRequestStarted","isSuccessful","visitRequestCompleted","visitRequestFailedWithStatusCode","visitRequestFinished","_this$response","responseHTML","_callee12","_context12","cacheSnapshot","fromHTMLString","renderPageSnapshot","visitRendered","renderError","fail","getCachedSnapshotForLocation","getPreloadedSnapshot","hasAnchor","isPreviewable","getCachedSnapshot","_callee13","_context13","_this$response2","redirectedToLocation","visitProposedToLocation","_callee14","_context14","performScroll","changeHistory","_response","_callee15","_context15","_x12","_x13","_callee16","_context16","_x14","_x15","_error","forceReloaded","shouldPreserveScrollPosition","scrollToRestoredPosition","scrollToTop","visitScrolledToSamePageLocation","lastRenderedLocation","scrollPosition","restorationData","metric","hasCachedSnapshot","_callee17","_context17","frame","_x16","_callee19","_context19","renderChange","shouldTransitionTo","_callee18","_context18","renderPage","_x17","_x18","cancelAnimationFrame","BrowserAdapter","session","_this29","progressBar","showProgressBar","startVisit","loadCachedSnapshot","issueRequest","goToSamePageAnchor","showVisitProgressBarAfterDelay","loadResponse","reload","_visit","hideVisitProgressBar","_formSubmission","showFormProgressBarAfterDelay","hideFormProgressBar","visitProgressBarTimeout","formProgressBarTimeout","_this$location","CacheObserver","_this30","deprecatedSelector","removeTemporaryElements","_step20","_iterator20","temporaryElements","temporaryElementsWithDeprecation","_shouldSubmit","_shouldRedirect","_findFrameElement","FrameRedirector","_findFrameElement2","_shouldRedirect2","_shouldSubmit2","formSubmitObserver","_location","_meta$content2","submissionIsNavigatable","elementIsNavigatable","History","_this31","pageLoaded","currentIndex","onPopState","shouldHandlePopState","turbo","restorationIndex","historyPoppedToLocationWithRestorationIdentifierAndDirection","onPageLoad","_callee20","_context20","_x19","_history$state","_history$state$turbo","additionalData","_history$scrollRestor","previousScrollRestoration","scrollRestoration","pageIsLoaded","_prefetchedLink","_tryToPrefetchRequest","_cancelRequestIfObsolete","_cancelPrefetchRequest","_tryToUsePrefetchedRequest","_cacheTtl","_isPrefetchable","LinkPrefetchObserver","_this32","_isPrefetchable2","_get_cacheTtl","_location3","canPrefetchRequestToLocation","setLater","cached","turboFrameTarget","unfetchableLink","linkToTheSamePage","linkOptsOut","nonSafeLink","eventPrevented","turboPrefetchParent","turboMethod","isUJS","_getActionForFormSubmission","_getDefaultAction","Navigator","_getDefaultAction2","_getActionForFormSubmission2","_formSubmissionFailedWithResponse","_formSubmissionSucceededWithResponse","allowsVisitingLocationWithAction","currentVisit","_callee21","visitOptions","_context21","clearSnapshotCache","proposeVisit","_x20","_x21","_callee22","_context22","_x22","_x23","currentAnchor","isRestorationToTop","oldURL","newURL","_this$location2","PageStage","PageObserver","_this33","stage","interpretReadyState","pageIsInteractive","pageIsComplete","pageWillUnload","pageBecameInteractive","ScrollObserver","_this34","onScroll","scrollPositionChanged","StreamMessageRenderer","_step21","permanentElementsInDocument","_iterator21","_step22","permanentElementInDocument","_id6","_iterator22","elementInStream","getPermanentElementMapForFragment","_x24","_x25","_withAutofocusFromFragment","withAutofocusFromFragment","_x26","_withPreservedFocus","withPreservedFocus","_callee47","generatedID","turboStreams","elementWithAutofocus","willAutofocusId","elementToAutofocus","_context47","firstAutofocusableElementInStreams","_callee48","_yield$around","_yield$around2","activeElementBeforeRender","activeElementAfterRender","restoreFocusTo","elementToFocus","_context48","nodeListOfStreamElements","_step23","_iterator23","_started","StreamObserver","_this35","sources","inspectFetchResponse","_event$detail","fetchResponseFromEvent","_response$contentType","fetchResponseIsStream","receiveMessageResponse","receiveMessageEvent","receiveMessageHTML","_receiveMessageResponse","streamSourceIsConnected","_callee23","_context23","_x27","receivedMessageFromStream","_Renderer3","ErrorRenderer","_render4","_super8","_callee24","_context24","replaceHeadAndBody","_document","_step24","_iterator24","scriptElements","replaceableElement","_document2","_setLanguage","_Renderer4","PageRenderer","_assignNewBody","_mergeProvisionalElements","_copyNewHeadStylesheetElements","_replaceBody","_mergeHead","_render5","_prepareToRender","_super9","_this36","_len9","_key9","_setLanguage2","trackedElementsAreIdentical","_callee25","_context25","mergeHead","_callee26","_context26","replaceBody","_callee27","mergedHeadElements","newStylesheetElements","_context27","mergeProvisionalElements","copyNewHeadStylesheetElements","copyNewHeadScriptElements","removeUnusedDynamicStylesheetElements","_callee29","_this37","_context29","_callee28","_context28","activateNewBody","assignNewBody","currentHeadSnapshot","trackedElementSignature","newHeadSnapshot","_callee30","loadingElements","_iterator25","_step25","_context30","newHeadStylesheetElements","_step26","_iterator26","newHeadScriptElements","_step27","_iterator27","unusedDynamicStylesheetElements","_callee31","newHeadElements","_iterator28","_step28","_iterator29","_step29","_context31","newHeadProvisionalElements","currentHeadProvisionalElements","isCurrentElementInElementList","elementList","_step30","_iterator30","isEqualNode","_step31","_iterator31","_step32","_iterator32","adoptNode","activateNewBodyScriptElements","_step33","_iterator33","newBodyScriptElements","_callee32","_context32","oldHeadStylesheetElements","getStylesheetElementsNotInSnapshot","getScriptElementsNotInSnapshot","provisionalElements","HTMLBodyElement","lang","_PageRenderer2","MorphingPageRenderer","_preservingPermanentElements4","_super10","_callee33","_context33","_x28","canRefreshFrame","_step34","_iterator34","SnapshotCache","snapshots","_step35","_iterator35","_View3","PageView","_cacheSnapshot","_super11","_this38","_len10","_key10","snapshotCache","prefersViewTransitions","shouldMorphPage","rendererClass","_callee34","_location4","cachedSnapshot","_args34","_context34","isCacheable","viewWillCacheSnapshot","fromElement","_preloadAll","Preloader","_this39","_requestSucceededWithResponse2","_preloadURL","_step36","_iterator36","shouldPreloadLink","preloadURL","_callee35","_context35","_x29","_callee36","_context36","_x30","_x31","_setCacheControl","Cache","_setCacheControl2","clearCache","_pageRefreshDebouncePeriod","extendURLWithDeprecatedProperties","deprecatedLocationPropertyDescriptors","absoluteURL","Session","pageObserver","cacheObserver","linkPrefetchObserver","linkClickObserver","scrollObserver","streamObserver","formLinkClickObserver","frameRedirector","streamMessageRenderer","preloader","debouncedRefresh","pageRefreshDebouncePeriod","proposeVisitIfNavigatedWithAction","requestId","connectStreamSource","disconnectStreamSource","isUnsafe","frameTarget","_location5","pageInvalidated","updateRestorationData","applicationAllowsFollowingLinkToLocation","getActionForLink","applicationAllowsVisitingLocation","markVisitDirection","silent","notifyApplicationAfterVisitingLocation","unmarkVisitDirection","notifyApplicationAfterPageLoad","getTimingMetrics","notifyApplicationAfterVisitingSamePageLocation","submitForm","assumeControlOfScrollRestoration","relinquishControlOfScrollRestoration","renderStreamMessage","_this$navigator$curre","notifyApplicationBeforeCachingSnapshot","_ref31","notifyApplicationBeforeRender","_snapshot","_isPreview","notifyApplicationAfterRender","notifyApplicationAfterFrameLoad","notifyApplicationAfterFrameRender","notifyApplicationAfterClickingLinkToLocation","notifyApplicationBeforeVisitingLocation","newBody","timing","HashChangeEvent","submitterIsNavigatable","withinFrame","navigator$1","registerAdapter","setProgressBarDelay","setConfirmMethod","setFormMode","Turbo","TurboFrameMissingError","_Error","_super12","_currentFetchRequest","_resolveVisitPromise","_connected","_hasBeenLoaded","_ignoredAttributes","_shouldMorphFrame","_loadSourceURL","_loadFrameResponse","_visit2","_navigateFrame","_handleUnvisitableFrameResponse","_willHandleFrameMissingFromResponse","_handleFrameMissingFromResponse","_throwFrameMissingError","_visitResponse","_findFrameElement3","_formActionIsVisitable","_shouldInterceptNavigation","_isIgnoringChangesTo","_ignoringChangesToAttribute","_withCurrentNavigationElement","FrameController","_element3","_this40","_withCurrentNavigationElement2","_ignoringChangesToAttribute2","_isIgnoringChangesTo2","_shouldInterceptNavigation2","_formActionIsVisitable2","_findFrameElement4","_visitResponse2","_throwFrameMissingError2","_handleFrameMissingFromResponse2","_willHandleFrameMissingFromResponse2","_handleUnvisitableFrameResponse2","_navigateFrame2","_visit3","_loadFrameResponse2","_loadSourceURL2","fetchResponseLoaded","_fetchResponse","_ref32","previousFrameElement","replaceChildren","appearanceObserver","_extractForeignFrameElement","_requestFailedWithResponse2","_requestSucceededWithResponse3","_loadResponse","loadingStyle","_this$element","_callee37","_document3","_context37","sourceURL","_x32","_this$currentNavigati","currentNavigationElement","_callee38","_context38","_x33","_x34","_callee39","_context39","_x35","_x36","_ref33","_ref34","_ref35","newFrame","_renderMethod","_newElement","_this41","pageSnapshot","_ref36","_callee40","_context40","_x37","_callee41","_context41","CSS","escape","activateElement","extractForeignFrameElement","_x38","_this42","loading","isActive","_meta$content","_loadSourceURL3","_callee51","_context51","_x41","_x42","_loadFrameResponse3","_callee52","newFrameElement","_context52","frameRendered","frameLoaded","_x43","_visit4","_callee53","_classPrivateFieldLoo","_this54","_context53","_x44","_handleUnvisitableFrameResponse3","_callee54","_context54","_this52","_ref38","_callee49","_context49","_x45","_x46","missing","_x47","_visitResponse3","_callee55","_context55","_getFrameElementById","getFrameElementById","currentURL","connectedCallback","disconnectedCallback","StreamActions","_this43","targetElements","_e$parentElement","templateContent","_this44","removeDuplicateTargetChildren","_this45","_e$parentElement2","prepend","_this46","_this47","_this48","_raise","_HTMLElement2","StreamElement","_renderElement","_render6","_connectedCallback","_super13","_this49","_len11","_key11","_raise2","_callee42","_context42","_callee44","_this$renderPromise","_this50","_context44","_callee43","_context43","beforeRenderEvent","_unused","duplicateChildren","_this$templateContent","existingChildren","flatMap","newChildrenIds","actionFunction","targetElementsById","targetElementsByQuery","HTMLTemplateElement","_2","_this$outerHTML$match","newStream","_this$ownerDocument2","_this$ownerDocument3","_callee45","_context45","performAction","_x39","consumer","StreamSourceElement","_HTMLElement3","_super14","_this51","_len12","_key12","streamSource","WebSocket","EventSource","getConsumer","_getConsumer","setConsumer","newConsumer","_createConsumer","_yield$import","createConsumer","subscribeTo","_subscribeTo","channel","mixin","_yield$getConsumer","subscriptions","walk","customElements","currentScript","TurboCableStreamSourceElement","received","dispatchMessageEvent","connected","subscriptionConnected","disconnected","subscriptionDisconnected","subscription","MessageEvent","signed_stream_name","observedAttributes","isBodyInit","formMethod","HTMLButtonElement","determineFormMethod","overrideMethod","determineFetchMethod","associatedBookingResourceSkuId","associationType","booking_resource_sku_id","associated_booking_resource_sku_id","association_type","transfer_direction","booking_resource_sku_flight_id","addLoadingOverlay","removeLoadingOverlay","updateUI","associations","transfer","createTransferParentChildAssociation","accommodation","createTransferAccomodationAssociation","createTransferFlightAssociation","createTransferAssociation","updateAssociations","breakRelationship","removeAssociations","last_version_id","approved_by_user_id","approvable_id","approvable_type","Timeout","clearFn","_clearFn","unref","enroll","msecs","_idleTimeoutId","_idleTimeout","unenroll","_unrefActive","_onTimeout","clearImmediate","webpackPolyfill","paths","runtime","Op","hasOwn","$Symbol","iteratorSymbol","asyncIteratorSymbol","toStringTagSymbol","innerFn","outerFn","tryLocsList","protoGenerator","Generator","generator","GenStateSuspendedStart","GenStateExecuting","GenStateCompleted","doneResult","delegateResult","maybeInvokeDelegate","ContinueSentinel","_sent","dispatchException","record","tryCatch","GenStateSuspendedYield","makeInvokeMethod","GeneratorFunction","GeneratorFunctionPrototype","IteratorPrototype","getProto","NativeIteratorPrototype","Gp","defineIteratorMethods","AsyncIterator","PromiseImpl","__await","unwrapped","previousPromise","callInvokeWithMethodAndArg","resultName","nextLoc","pushTryEntry","locs","entry","tryLoc","catchLoc","finallyLoc","afterLoc","tryEntries","resetTryEntry","completion","iteratorMethod","displayName","isGeneratorFunction","genFun","ctor","awrap","skipTempReset","rootRecord","rval","exception","loc","caught","hasCatch","hasFinally","finallyEntry","thrown","regeneratorRuntime","accidentalStrictMode","registerImmediate","messagePrefix","onGlobalMessage","nextHandle","tasksByHandle","currentlyRunningATask","attachTo","runIfPresent","postMessageIsAsynchronous","oldOnMessage","onmessage","canUsePostMessage","MessageChannel","port1","port2","attachEvent","task","base64","ieee754","kMaxLength","TYPED_ARRAY_SUPPORT","createBuffer","that","RangeError","encodingOrOffset","allocUnsafe","byteOffset","fromArrayLike","fromArrayBuffer","isEncoding","actual","fromString","copy","fromObject","assertSize","loweredCase","utf8ToBytes","base64ToBytes","slowToString","hexSlice","utf8Slice","asciiSlice","latin1Slice","base64Slice","utf16leSlice","swap","bidirectionalIndexOf","arrayIndexOf","lastIndexOf","indexSize","arrLength","valLength","buf","readUInt16BE","foundIndex","found","hexWrite","remaining","strLen","utf8Write","blitBuffer","asciiWrite","byteArray","asciiToBytes","latin1Write","base64Write","ucs2Write","units","hi","lo","utf16leToBytes","fromByteArray","secondByte","thirdByte","fourthByte","tempCodePoint","firstByte","codePoint","bytesPerSequence","codePoints","MAX_ARGUMENTS_LENGTH","fromCharCode","decodeCodePointsArray","SlowBuffer","alloc","INSPECT_MAX_BYTES","foo","subarray","typedArraySupport","poolSize","_augment","species","fill","allocUnsafeSlow","_isBuffer","compare","swap16","swap32","swap64","equals","inspect","thisStart","thisEnd","thisCopy","targetCopy","out","toHex","checkOffset","ext","checkInt","objectWriteUInt16","littleEndian","objectWriteUInt32","checkIEEE754","writeFloat","noAssert","writeDouble","newBuf","sliceLen","readUIntLE","mul","readUIntBE","readUInt8","readUInt16LE","readUInt32LE","readUInt32BE","readIntLE","readIntBE","readInt8","readInt16LE","readInt16BE","readInt32LE","readInt32BE","readFloatLE","readFloatBE","readDoubleLE","readDoubleBE","writeUIntLE","writeUIntBE","writeUInt8","writeUInt16LE","writeUInt16BE","writeUInt32LE","writeUInt32BE","writeIntLE","limit","sub","writeIntBE","writeInt8","writeInt16LE","writeInt16BE","writeInt32LE","writeInt32BE","writeFloatLE","writeFloatBE","writeDoubleLE","writeDoubleBE","targetStart","INVALID_BASE64_RE","leadSurrogate","toByteArray","stringtrim","base64clean","b64","lens","getLens","validLen","placeHoldersLen","tmp","Arr","_byteLength","curByte","revLookup","uint8","extraBytes","maxChunkLength","len2","encodeChunk","lookup","num","output"],"mappings":";aACE,SAASA,EAAqBC,GAQ7B,IAPA,IAMIC,EAAUC,EANVC,EAAWH,EAAK,GAChBI,EAAcJ,EAAK,GAKAK,EAAI,EAAGC,EAAW,GACpCD,EAAIF,EAASI,OAAQF,IACzBH,EAAUC,EAASE,GAChBG,OAAOC,UAAUC,eAAeC,KAAKC,EAAiBV,IAAYU,EAAgBV,IACpFI,EAASO,KAAKD,EAAgBV,GAAS,IAExCU,EAAgBV,GAAW,EAE5B,IAAID,KAAYG,EACZI,OAAOC,UAAUC,eAAeC,KAAKP,EAAaH,KACpDa,EAAQb,GAAYG,EAAYH,IAKlC,IAFGc,GAAqBA,EAAoBf,GAEtCM,EAASC,QACdD,EAASU,OAATV,GAOF,IAAIW,EAAmB,GAKnBL,EAAkB,CACrBM,EAAG,EACHC,EAAG,GAWJ,SAASC,EAAoBnB,GAG5B,GAAGgB,EAAiBhB,GACnB,OAAOgB,EAAiBhB,GAAUoB,QAGnC,IAAIC,EAASL,EAAiBhB,GAAY,CACzCI,EAAGJ,EACHsB,GAAG,EACHF,QAAS,IAUV,OANAP,EAAQb,GAAUU,KAAKW,EAAOD,QAASC,EAAQA,EAAOD,QAASD,GAG/DE,EAAOC,GAAI,EAGJD,EAAOD,QAKfD,EAAoBI,EAAI,SAAuBtB,GAC9C,IAAIuB,EAAW,GAKXC,EAAqBd,EAAgBV,GACzC,GAA0B,IA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M7/C,KAAK,KA3GpB,IALA,IAAImmI,EAAS,GACTN,EAAY,GACZH,EAA4B,qBAAfvyJ,WAA6BA,WAAarE,MACvDo9D,EAAO,mEAEF9iE,EAAI,EAAGwF,EAAMs9D,EAAK5iE,OAAQF,EAAIwF,IAAOxF,EAC5C+8J,EAAO/8J,GAAK8iE,EAAK9iE,GACjBy8J,EAAU35F,EAAK90D,WAAWhO,IAAMA,EAQlC,SAASk8J,EAAQF,GACf,IAAIx2J,EAAMw2J,EAAI97J,OAEd,GAAIsF,EAAM,EAAI,EACZ,MAAM,IAAIlD,MAAM,kDAKlB,IAAI65J,EAAWH,EAAIhtJ,QAAQ,KAG3B,OAFkB,IAAdmtJ,IAAiBA,EAAW32J,GAEzB,CAAC22J,EADcA,IAAa32J,EAAM,EAAI,EAAI22J,EAAW,GAoD9D,SAASW,EAAYJ,EAAO3/E,EAAOpf,GAIjC,IAHA,IAAI0+F,EALmBW,EAMnBC,EAAS,GAEJj9J,EAAI+8E,EAAO/8E,EAAI29D,EAAK39D,GAAK,EAChCq8J,GAAOK,EAAM18J,IAAM,GAAK,WAAa08J,EAAM18J,EAAI,IAAM,EAAI,QAA0B,IAAf08J,EAAM18J,EAAI,IAC9Ei9J,EAAOz8J,KATFu8J,GADgBC,EAUOX,IATT,GAAK,IAAQU,EAAOC,GAAO,GAAK,IAAQD,EAAOC,GAAO,EAAI,IAAQD,EAAa,GAANC,IAY9F,OAAOC,EAAOrmI,KAAK,IA3ErB6lI,EAAU,IAAIzuJ,WAAW,IAAM,GAC/ByuJ,EAAU,IAAIzuJ,WAAW,IAAM","file":"js/logged_out-92d634fa452c377a17d9.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tfunction webpackJsonpCallback(data) {\n \t\tvar chunkIds = data[0];\n \t\tvar moreModules = data[1];\n\n\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [];\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(data);\n\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n\n \t};\n\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// object to store loaded and loading chunks\n \t// undefined = chunk not loaded, null = chunk preloaded/prefetched\n \t// Promise = chunk loading, 0 = chunk loaded\n \tvar installedChunks = {\n \t\t6: 0,\n \t\t0: 0\n \t};\n\n\n\n \t// script path function\n \tfunction jsonpScriptSrc(chunkId) {\n \t\treturn __webpack_require__.p + \"js/\" + ({\"7\":\"vendors~actioncable\"}[chunkId]||chunkId) + \"-\" + {\"0\":\"8b8ad043e4c75e58545f\",\"7\":\"126c91ae2d63d4fc6f6f\"}[chunkId] + \".chunk.js\"\n \t}\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 \t// This file contains only the entry chunk.\n \t// The chunk loading function for additional chunks\n \t__webpack_require__.e = function requireEnsure(chunkId) {\n \t\tvar promises = [];\n\n\n \t\t// JSONP chunk loading for javascript\n\n \t\tvar installedChunkData = installedChunks[chunkId];\n \t\tif(installedChunkData !== 0) { // 0 means \"already installed\".\n\n \t\t\t// a Promise means \"currently loading\".\n \t\t\tif(installedChunkData) {\n \t\t\t\tpromises.push(installedChunkData[2]);\n \t\t\t} else {\n \t\t\t\t// setup Promise in chunk cache\n \t\t\t\tvar promise = new Promise(function(resolve, reject) {\n \t\t\t\t\tinstalledChunkData = installedChunks[chunkId] = [resolve, reject];\n \t\t\t\t});\n \t\t\t\tpromises.push(installedChunkData[2] = promise);\n\n \t\t\t\t// start chunk loading\n \t\t\t\tvar script = document.createElement('script');\n \t\t\t\tvar onScriptComplete;\n\n \t\t\t\tscript.charset = 'utf-8';\n \t\t\t\tscript.timeout = 120;\n \t\t\t\tif (__webpack_require__.nc) {\n \t\t\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n \t\t\t\t}\n \t\t\t\tscript.src = jsonpScriptSrc(chunkId);\n\n \t\t\t\t// create error before stack unwound to get useful stacktrace later\n \t\t\t\tvar error = new Error();\n \t\t\t\tonScriptComplete = function (event) {\n \t\t\t\t\t// avoid mem leaks in IE.\n \t\t\t\t\tscript.onerror = script.onload = null;\n \t\t\t\t\tclearTimeout(timeout);\n \t\t\t\t\tvar chunk = installedChunks[chunkId];\n \t\t\t\t\tif(chunk !== 0) {\n \t\t\t\t\t\tif(chunk) {\n \t\t\t\t\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n \t\t\t\t\t\t\tvar realSrc = event && event.target && event.target.src;\n \t\t\t\t\t\t\terror.message = 'Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')';\n \t\t\t\t\t\t\terror.name = 'ChunkLoadError';\n \t\t\t\t\t\t\terror.type = errorType;\n \t\t\t\t\t\t\terror.request = realSrc;\n \t\t\t\t\t\t\tchunk[1](error);\n \t\t\t\t\t\t}\n \t\t\t\t\t\tinstalledChunks[chunkId] = undefined;\n \t\t\t\t\t}\n \t\t\t\t};\n \t\t\t\tvar timeout = setTimeout(function(){\n \t\t\t\t\tonScriptComplete({ type: 'timeout', target: script });\n \t\t\t\t}, 120000);\n \t\t\t\tscript.onerror = script.onload = onScriptComplete;\n \t\t\t\tdocument.head.appendChild(script);\n \t\t\t}\n \t\t}\n \t\treturn Promise.all(promises);\n \t};\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 \t// on error function for async loading\n \t__webpack_require__.oe = function(err) { console.error(err); throw err; };\n\n \tvar jsonpArray = window[\"webpackJsonp\"] = window[\"webpackJsonp\"] || [];\n \tvar oldJsonpFunction = jsonpArray.push.bind(jsonpArray);\n \tjsonpArray.push = webpackJsonpCallback;\n \tjsonpArray = jsonpArray.slice();\n \tfor(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);\n \tvar parentJsonpFunction = oldJsonpFunction;\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 530);\n","'use strict';\n\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nimport bind from './helpers/bind.js'; // utils is a library of generic helper functions non-specific to axios\n\nvar toString = Object.prototype.toString;\nvar getPrototypeOf = Object.getPrototypeOf;\n\nvar kindOf = function (cache) {\n return function (thing) {\n var str = toString.call(thing);\n return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());\n };\n}(Object.create(null));\n\nvar kindOfTest = function kindOfTest(type) {\n type = type.toLowerCase();\n return function (thing) {\n return kindOf(thing) === type;\n };\n};\n\nvar typeOfTest = function typeOfTest(type) {\n return function (thing) {\n return _typeof(thing) === type;\n };\n};\n/**\n * Determine if a value is an Array\n *\n * @param {Object} val The value to test\n *\n * @returns {boolean} True if value is an Array, otherwise false\n */\n\n\nvar isArray = Array.isArray;\n/**\n * Determine if a value is undefined\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if the value is undefined, otherwise false\n */\n\nvar isUndefined = typeOfTest('undefined');\n/**\n * Determine if a value is a Buffer\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Buffer, otherwise false\n */\n\nfunction isBuffer(val) {\n return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor) && isFunction(val.constructor.isBuffer) && val.constructor.isBuffer(val);\n}\n/**\n * Determine if a value is an ArrayBuffer\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is an ArrayBuffer, otherwise false\n */\n\n\nvar isArrayBuffer = kindOfTest('ArrayBuffer');\n/**\n * Determine if a value is a view on an ArrayBuffer\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false\n */\n\nfunction isArrayBufferView(val) {\n var result;\n\n if (typeof ArrayBuffer !== 'undefined' && ArrayBuffer.isView) {\n result = ArrayBuffer.isView(val);\n } else {\n result = val && val.buffer && isArrayBuffer(val.buffer);\n }\n\n return result;\n}\n/**\n * Determine if a value is a String\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a String, otherwise false\n */\n\n\nvar isString = typeOfTest('string');\n/**\n * Determine if a value is a Function\n *\n * @param {*} val The value to test\n * @returns {boolean} True if value is a Function, otherwise false\n */\n\nvar isFunction = typeOfTest('function');\n/**\n * Determine if a value is a Number\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Number, otherwise false\n */\n\nvar isNumber = typeOfTest('number');\n/**\n * Determine if a value is an Object\n *\n * @param {*} thing The value to test\n *\n * @returns {boolean} True if value is an Object, otherwise false\n */\n\nvar isObject = function isObject(thing) {\n return thing !== null && _typeof(thing) === 'object';\n};\n/**\n * Determine if a value is a Boolean\n *\n * @param {*} thing The value to test\n * @returns {boolean} True if value is a Boolean, otherwise false\n */\n\n\nvar isBoolean = function isBoolean(thing) {\n return thing === true || thing === false;\n};\n/**\n * Determine if a value is a plain Object\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a plain Object, otherwise false\n */\n\n\nvar isPlainObject = function isPlainObject(val) {\n if (kindOf(val) !== 'object') {\n return false;\n }\n\n var prototype = getPrototypeOf(val);\n return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in val) && !(Symbol.iterator in val);\n};\n/**\n * Determine if a value is a Date\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Date, otherwise false\n */\n\n\nvar isDate = kindOfTest('Date');\n/**\n * Determine if a value is a File\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a File, otherwise false\n */\n\nvar isFile = kindOfTest('File');\n/**\n * Determine if a value is a Blob\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Blob, otherwise false\n */\n\nvar isBlob = kindOfTest('Blob');\n/**\n * Determine if a value is a FileList\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a File, otherwise false\n */\n\nvar isFileList = kindOfTest('FileList');\n/**\n * Determine if a value is a Stream\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a Stream, otherwise false\n */\n\nvar isStream = function isStream(val) {\n return isObject(val) && isFunction(val.pipe);\n};\n/**\n * Determine if a value is a FormData\n *\n * @param {*} thing The value to test\n *\n * @returns {boolean} True if value is an FormData, otherwise false\n */\n\n\nvar isFormData = function isFormData(thing) {\n var kind;\n return thing && (typeof FormData === 'function' && thing instanceof FormData || isFunction(thing.append) && ((kind = kindOf(thing)) === 'formdata' || // detect form-data instance\n kind === 'object' && isFunction(thing.toString) && thing.toString() === '[object FormData]'));\n};\n/**\n * Determine if a value is a URLSearchParams object\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a URLSearchParams object, otherwise false\n */\n\n\nvar isURLSearchParams = kindOfTest('URLSearchParams');\n\nvar _map = ['ReadableStream', 'Request', 'Response', 'Headers'].map(kindOfTest),\n _map2 = _slicedToArray(_map, 4),\n isReadableStream = _map2[0],\n isRequest = _map2[1],\n isResponse = _map2[2],\n isHeaders = _map2[3];\n/**\n * Trim excess whitespace off the beginning and end of a string\n *\n * @param {String} str The String to trim\n *\n * @returns {String} The String freed of excess whitespace\n */\n\n\nvar trim = function trim(str) {\n return str.trim ? str.trim() : str.replace(/^[\\s\\uFEFF\\xA0]+|[\\s\\uFEFF\\xA0]+$/g, '');\n};\n/**\n * Iterate over an Array or an Object invoking a function for each item.\n *\n * If `obj` is an Array callback will be called passing\n * the value, index, and complete array for each item.\n *\n * If 'obj' is an Object callback will be called passing\n * the value, key, and complete object for each property.\n *\n * @param {Object|Array} obj The object to iterate\n * @param {Function} fn The callback to invoke for each item\n *\n * @param {Boolean} [allOwnKeys = false]\n * @returns {any}\n */\n\n\nfunction forEach(obj, fn) {\n var _ref = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {},\n _ref$allOwnKeys = _ref.allOwnKeys,\n allOwnKeys = _ref$allOwnKeys === void 0 ? false : _ref$allOwnKeys;\n\n // Don't bother if no value provided\n if (obj === null || typeof obj === 'undefined') {\n return;\n }\n\n var i;\n var l; // Force an array if not already something iterable\n\n if (_typeof(obj) !== 'object') {\n /*eslint no-param-reassign:0*/\n obj = [obj];\n }\n\n if (isArray(obj)) {\n // Iterate over array values\n for (i = 0, l = obj.length; i < l; i++) {\n fn.call(null, obj[i], i, obj);\n }\n } else {\n // Iterate over object keys\n var keys = allOwnKeys ? Object.getOwnPropertyNames(obj) : Object.keys(obj);\n var len = keys.length;\n var key;\n\n for (i = 0; i < len; i++) {\n key = keys[i];\n fn.call(null, obj[key], key, obj);\n }\n }\n}\n\nfunction findKey(obj, key) {\n key = key.toLowerCase();\n var keys = Object.keys(obj);\n var i = keys.length;\n\n var _key;\n\n while (i-- > 0) {\n _key = keys[i];\n\n if (key === _key.toLowerCase()) {\n return _key;\n }\n }\n\n return null;\n}\n\nvar _global = function () {\n /*eslint no-undef:0*/\n if (typeof globalThis !== \"undefined\") return globalThis;\n return typeof self !== \"undefined\" ? self : typeof window !== 'undefined' ? window : global;\n}();\n\nvar isContextDefined = function isContextDefined(context) {\n return !isUndefined(context) && context !== _global;\n};\n/**\n * Accepts varargs expecting each argument to be an object, then\n * immutably merges the properties of each object and returns result.\n *\n * When multiple objects contain the same key the later object in\n * the arguments list will take precedence.\n *\n * Example:\n *\n * ```js\n * var result = merge({foo: 123}, {foo: 456});\n * console.log(result.foo); // outputs 456\n * ```\n *\n * @param {Object} obj1 Object to merge\n *\n * @returns {Object} Result of all merge properties\n */\n\n\nfunction merge() {\n var _ref2 = isContextDefined(this) && this || {},\n caseless = _ref2.caseless;\n\n var result = {};\n\n var assignValue = function assignValue(val, key) {\n var targetKey = caseless && findKey(result, key) || key;\n\n if (isPlainObject(result[targetKey]) && isPlainObject(val)) {\n result[targetKey] = merge(result[targetKey], val);\n } else if (isPlainObject(val)) {\n result[targetKey] = merge({}, val);\n } else if (isArray(val)) {\n result[targetKey] = val.slice();\n } else {\n result[targetKey] = val;\n }\n };\n\n for (var i = 0, l = arguments.length; i < l; i++) {\n arguments[i] && forEach(arguments[i], assignValue);\n }\n\n return result;\n}\n/**\n * Extends object a by mutably adding to it the properties of object b.\n *\n * @param {Object} a The object to be extended\n * @param {Object} b The object to copy properties from\n * @param {Object} thisArg The object to bind function to\n *\n * @param {Boolean} [allOwnKeys]\n * @returns {Object} The resulting value of object a\n */\n\n\nvar extend = function extend(a, b, thisArg) {\n var _ref3 = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {},\n allOwnKeys = _ref3.allOwnKeys;\n\n forEach(b, function (val, key) {\n if (thisArg && isFunction(val)) {\n a[key] = bind(val, thisArg);\n } else {\n a[key] = val;\n }\n }, {\n allOwnKeys: allOwnKeys\n });\n return a;\n};\n/**\n * Remove byte order marker. This catches EF BB BF (the UTF-8 BOM)\n *\n * @param {string} content with BOM\n *\n * @returns {string} content value without BOM\n */\n\n\nvar stripBOM = function stripBOM(content) {\n if (content.charCodeAt(0) === 0xFEFF) {\n content = content.slice(1);\n }\n\n return content;\n};\n/**\n * Inherit the prototype methods from one constructor into another\n * @param {function} constructor\n * @param {function} superConstructor\n * @param {object} [props]\n * @param {object} [descriptors]\n *\n * @returns {void}\n */\n\n\nvar inherits = function inherits(constructor, superConstructor, props, descriptors) {\n constructor.prototype = Object.create(superConstructor.prototype, descriptors);\n constructor.prototype.constructor = constructor;\n Object.defineProperty(constructor, 'super', {\n value: superConstructor.prototype\n });\n props && Object.assign(constructor.prototype, props);\n};\n/**\n * Resolve object with deep prototype chain to a flat object\n * @param {Object} sourceObj source object\n * @param {Object} [destObj]\n * @param {Function|Boolean} [filter]\n * @param {Function} [propFilter]\n *\n * @returns {Object}\n */\n\n\nvar toFlatObject = function toFlatObject(sourceObj, destObj, filter, propFilter) {\n var props;\n var i;\n var prop;\n var merged = {};\n destObj = destObj || {}; // eslint-disable-next-line no-eq-null,eqeqeq\n\n if (sourceObj == null) return destObj;\n\n do {\n props = Object.getOwnPropertyNames(sourceObj);\n i = props.length;\n\n while (i-- > 0) {\n prop = props[i];\n\n if ((!propFilter || propFilter(prop, sourceObj, destObj)) && !merged[prop]) {\n destObj[prop] = sourceObj[prop];\n merged[prop] = true;\n }\n }\n\n sourceObj = filter !== false && getPrototypeOf(sourceObj);\n } while (sourceObj && (!filter || filter(sourceObj, destObj)) && sourceObj !== Object.prototype);\n\n return destObj;\n};\n/**\n * Determines whether a string ends with the characters of a specified string\n *\n * @param {String} str\n * @param {String} searchString\n * @param {Number} [position= 0]\n *\n * @returns {boolean}\n */\n\n\nvar endsWith = function endsWith(str, searchString, position) {\n str = String(str);\n\n if (position === undefined || position > str.length) {\n position = str.length;\n }\n\n position -= searchString.length;\n var lastIndex = str.indexOf(searchString, position);\n return lastIndex !== -1 && lastIndex === position;\n};\n/**\n * Returns new array from array like object or null if failed\n *\n * @param {*} [thing]\n *\n * @returns {?Array}\n */\n\n\nvar toArray = function toArray(thing) {\n if (!thing) return null;\n if (isArray(thing)) return thing;\n var i = thing.length;\n if (!isNumber(i)) return null;\n var arr = new Array(i);\n\n while (i-- > 0) {\n arr[i] = thing[i];\n }\n\n return arr;\n};\n/**\n * Checking if the Uint8Array exists and if it does, it returns a function that checks if the\n * thing passed in is an instance of Uint8Array\n *\n * @param {TypedArray}\n *\n * @returns {Array}\n */\n// eslint-disable-next-line func-names\n\n\nvar isTypedArray = function (TypedArray) {\n // eslint-disable-next-line func-names\n return function (thing) {\n return TypedArray && thing instanceof TypedArray;\n };\n}(typeof Uint8Array !== 'undefined' && getPrototypeOf(Uint8Array));\n/**\n * For each entry in the object, call the function with the key and value.\n *\n * @param {Object} obj - The object to iterate over.\n * @param {Function} fn - The function to call for each entry.\n *\n * @returns {void}\n */\n\n\nvar forEachEntry = function forEachEntry(obj, fn) {\n var generator = obj && obj[Symbol.iterator];\n var iterator = generator.call(obj);\n var result;\n\n while ((result = iterator.next()) && !result.done) {\n var pair = result.value;\n fn.call(obj, pair[0], pair[1]);\n }\n};\n/**\n * It takes a regular expression and a string, and returns an array of all the matches\n *\n * @param {string} regExp - The regular expression to match against.\n * @param {string} str - The string to search.\n *\n * @returns {Array}\n */\n\n\nvar matchAll = function matchAll(regExp, str) {\n var matches;\n var arr = [];\n\n while ((matches = regExp.exec(str)) !== null) {\n arr.push(matches);\n }\n\n return arr;\n};\n/* Checking if the kindOfTest function returns true when passed an HTMLFormElement. */\n\n\nvar isHTMLForm = kindOfTest('HTMLFormElement');\n\nvar toCamelCase = function toCamelCase(str) {\n return str.toLowerCase().replace(/[-_\\s]([a-z\\d])(\\w*)/g, function replacer(m, p1, p2) {\n return p1.toUpperCase() + p2;\n });\n};\n/* Creating a function that will check if an object has a property. */\n\n\nvar hasOwnProperty = function (_ref4) {\n var hasOwnProperty = _ref4.hasOwnProperty;\n return function (obj, prop) {\n return hasOwnProperty.call(obj, prop);\n };\n}(Object.prototype);\n/**\n * Determine if a value is a RegExp object\n *\n * @param {*} val The value to test\n *\n * @returns {boolean} True if value is a RegExp object, otherwise false\n */\n\n\nvar isRegExp = kindOfTest('RegExp');\n\nvar reduceDescriptors = function reduceDescriptors(obj, reducer) {\n var descriptors = Object.getOwnPropertyDescriptors(obj);\n var reducedDescriptors = {};\n forEach(descriptors, function (descriptor, name) {\n var ret;\n\n if ((ret = reducer(descriptor, name, obj)) !== false) {\n reducedDescriptors[name] = ret || descriptor;\n }\n });\n Object.defineProperties(obj, reducedDescriptors);\n};\n/**\n * Makes all methods read-only\n * @param {Object} obj\n */\n\n\nvar freezeMethods = function freezeMethods(obj) {\n reduceDescriptors(obj, function (descriptor, name) {\n // skip restricted props in strict mode\n if (isFunction(obj) && ['arguments', 'caller', 'callee'].indexOf(name) !== -1) {\n return false;\n }\n\n var value = obj[name];\n if (!isFunction(value)) return;\n descriptor.enumerable = false;\n\n if ('writable' in descriptor) {\n descriptor.writable = false;\n return;\n }\n\n if (!descriptor.set) {\n descriptor.set = function () {\n throw Error('Can not rewrite read-only method \\'' + name + '\\'');\n };\n }\n });\n};\n\nvar toObjectSet = function toObjectSet(arrayOrString, delimiter) {\n var obj = {};\n\n var define = function define(arr) {\n arr.forEach(function (value) {\n obj[value] = true;\n });\n };\n\n isArray(arrayOrString) ? define(arrayOrString) : define(String(arrayOrString).split(delimiter));\n return obj;\n};\n\nvar noop = function noop() {};\n\nvar toFiniteNumber = function toFiniteNumber(value, defaultValue) {\n return value != null && Number.isFinite(value = +value) ? value : defaultValue;\n};\n\nvar ALPHA = 'abcdefghijklmnopqrstuvwxyz';\nvar DIGIT = '0123456789';\nvar ALPHABET = {\n DIGIT: DIGIT,\n ALPHA: ALPHA,\n ALPHA_DIGIT: ALPHA + ALPHA.toUpperCase() + DIGIT\n};\n\nvar generateString = function generateString() {\n var size = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 16;\n var alphabet = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ALPHABET.ALPHA_DIGIT;\n var str = '';\n var length = alphabet.length;\n\n while (size--) {\n str += alphabet[Math.random() * length | 0];\n }\n\n return str;\n};\n/**\n * If the thing is a FormData object, return true, otherwise return false.\n *\n * @param {unknown} thing - The thing to check.\n *\n * @returns {boolean}\n */\n\n\nfunction isSpecCompliantForm(thing) {\n return !!(thing && isFunction(thing.append) && thing[Symbol.toStringTag] === 'FormData' && thing[Symbol.iterator]);\n}\n\nvar toJSONObject = function toJSONObject(obj) {\n var stack = new Array(10);\n\n var visit = function visit(source, i) {\n if (isObject(source)) {\n if (stack.indexOf(source) >= 0) {\n return;\n }\n\n if (!('toJSON' in source)) {\n stack[i] = source;\n var target = isArray(source) ? [] : {};\n forEach(source, function (value, key) {\n var reducedValue = visit(value, i + 1);\n !isUndefined(reducedValue) && (target[key] = reducedValue);\n });\n stack[i] = undefined;\n return target;\n }\n }\n\n return source;\n };\n\n return visit(obj, 0);\n};\n\nvar isAsyncFn = kindOfTest('AsyncFunction');\n\nvar isThenable = function isThenable(thing) {\n return thing && (isObject(thing) || isFunction(thing)) && isFunction(thing.then) && isFunction(thing.catch);\n}; // original code\n// https://github.com/DigitalBrainJS/AxiosPromise/blob/16deab13710ec09779922131f3fa5954320f83ab/lib/utils.js#L11-L34\n\n\nvar _setImmediate = function (setImmediateSupported, postMessageSupported) {\n if (setImmediateSupported) {\n return setImmediate;\n }\n\n return postMessageSupported ? function (token, callbacks) {\n _global.addEventListener(\"message\", function (_ref5) {\n var source = _ref5.source,\n data = _ref5.data;\n\n if (source === _global && data === token) {\n callbacks.length && callbacks.shift()();\n }\n }, false);\n\n return function (cb) {\n callbacks.push(cb);\n\n _global.postMessage(token, \"*\");\n };\n }(\"axios@\".concat(Math.random()), []) : function (cb) {\n return setTimeout(cb);\n };\n}(typeof setImmediate === 'function', isFunction(_global.postMessage));\n\nvar asap = typeof queueMicrotask !== 'undefined' ? queueMicrotask.bind(_global) : typeof process !== 'undefined' && process.nextTick || _setImmediate; // *********************\n\nexport default {\n isArray: isArray,\n isArrayBuffer: isArrayBuffer,\n isBuffer: isBuffer,\n isFormData: isFormData,\n isArrayBufferView: isArrayBufferView,\n isString: isString,\n isNumber: isNumber,\n isBoolean: isBoolean,\n isObject: isObject,\n isPlainObject: isPlainObject,\n isReadableStream: isReadableStream,\n isRequest: isRequest,\n isResponse: isResponse,\n isHeaders: isHeaders,\n isUndefined: isUndefined,\n isDate: isDate,\n isFile: isFile,\n isBlob: isBlob,\n isRegExp: isRegExp,\n isFunction: isFunction,\n isStream: isStream,\n isURLSearchParams: isURLSearchParams,\n isTypedArray: isTypedArray,\n isFileList: isFileList,\n forEach: forEach,\n merge: merge,\n extend: extend,\n trim: trim,\n stripBOM: stripBOM,\n inherits: inherits,\n toFlatObject: toFlatObject,\n kindOf: kindOf,\n kindOfTest: kindOfTest,\n endsWith: endsWith,\n toArray: toArray,\n forEachEntry: forEachEntry,\n matchAll: matchAll,\n isHTMLForm: isHTMLForm,\n hasOwnProperty: hasOwnProperty,\n hasOwnProp: hasOwnProperty,\n // an alias to avoid ESLint no-prototype-builtins detection\n reduceDescriptors: reduceDescriptors,\n freezeMethods: freezeMethods,\n toObjectSet: toObjectSet,\n toCamelCase: toCamelCase,\n noop: noop,\n toFiniteNumber: toFiniteNumber,\n findKey: findKey,\n global: _global,\n isContextDefined: isContextDefined,\n ALPHABET: ALPHABET,\n generateString: generateString,\n isSpecCompliantForm: isSpecCompliantForm,\n toJSONObject: toJSONObject,\n isAsyncFn: isAsyncFn,\n isThenable: isThenable,\n setImmediate: _setImmediate,\n asap: asap\n};","module.exports = require(\"regenerator-runtime\");\n","/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */\nexports.read = function (buffer, offset, isLE, mLen, nBytes) {\n var e, m;\n var eLen = nBytes * 8 - mLen - 1;\n var eMax = (1 << eLen) - 1;\n var eBias = eMax >> 1;\n var nBits = -7;\n var i = isLE ? nBytes - 1 : 0;\n var d = isLE ? -1 : 1;\n var s = buffer[offset + i];\n i += d;\n e = s & (1 << -nBits) - 1;\n s >>= -nBits;\n nBits += eLen;\n\n for (; nBits > 0; e = e * 256 + buffer[offset + i], i += d, nBits -= 8) {}\n\n m = e & (1 << -nBits) - 1;\n e >>= -nBits;\n nBits += mLen;\n\n for (; nBits > 0; m = m * 256 + buffer[offset + i], i += d, nBits -= 8) {}\n\n if (e === 0) {\n e = 1 - eBias;\n } else if (e === eMax) {\n return m ? NaN : (s ? -1 : 1) * Infinity;\n } else {\n m = m + Math.pow(2, mLen);\n e = e - eBias;\n }\n\n return (s ? -1 : 1) * m * Math.pow(2, e - mLen);\n};\n\nexports.write = function (buffer, value, offset, isLE, mLen, nBytes) {\n var e, m, c;\n var eLen = nBytes * 8 - mLen - 1;\n var eMax = (1 << eLen) - 1;\n var eBias = eMax >> 1;\n var rt = mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0;\n var i = isLE ? 0 : nBytes - 1;\n var d = isLE ? 1 : -1;\n var s = value < 0 || value === 0 && 1 / value < 0 ? 1 : 0;\n value = Math.abs(value);\n\n if (isNaN(value) || value === Infinity) {\n m = isNaN(value) ? 1 : 0;\n e = eMax;\n } else {\n e = Math.floor(Math.log(value) / Math.LN2);\n\n if (value * (c = Math.pow(2, -e)) < 1) {\n e--;\n c *= 2;\n }\n\n if (e + eBias >= 1) {\n value += rt / c;\n } else {\n value += rt * Math.pow(2, 1 - eBias);\n }\n\n if (value * c >= 2) {\n e++;\n c /= 2;\n }\n\n if (e + eBias >= eMax) {\n m = 0;\n e = eMax;\n } else if (e + eBias >= 1) {\n m = (value * c - 1) * Math.pow(2, mLen);\n e = e + eBias;\n } else {\n m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen);\n e = 0;\n }\n }\n\n for (; mLen >= 8; buffer[offset + i] = m & 0xff, i += d, m /= 256, mLen -= 8) {}\n\n e = e << mLen | m;\n eLen += mLen;\n\n for (; eLen > 0; buffer[offset + i] = e & 0xff, i += d, e /= 256, eLen -= 8) {}\n\n buffer[offset + i - d] |= s * 128;\n};","var toString = {}.toString;\n\nmodule.exports = Array.isArray || function (arr) {\n return toString.call(arr) == '[object Array]';\n};","export default () => window.location.pathname.split(\"/\")[1] || \"en\";\n","import { Controller } from \"@hotwired/stimulus\";\n\nexport default class AccommodationController extends Controller {\n static targets = [\"accommodation\"];\n\n static classes = [\"show\", \"hide\"];\n\n static values = {\n bookingRoomAssignmentId: Number,\n accommodationId: Number,\n };\n\n showByBookingRoomAssignment(event) {\n const { classList } = this.accommodationTarget;\n\n if (\n event.detail.focusedAssignmentId === this.bookingRoomAssignmentIdValue\n ) {\n classList.add(this.showClass);\n classList.remove(this.hideClass);\n } else {\n classList.remove(this.showClass);\n classList.add(this.hideClass);\n }\n }\n}\n","import { Controller } from \"@hotwired/stimulus\";\nimport bookingRoomAssignmentChosen from \"frontoffice/services/bookingRoomAssignments\";\n\nexport default class AccommodationRequestController extends Controller {\n static targets = [\n \"bookingRoomAssignment\",\n \"requestedRoomsSection\",\n \"nextButton\",\n ];\n\n static classes = [\"disabledButton\"];\n\n static values = {\n focusedAssignmentId: Number,\n roomMissingInfo: Array,\n };\n\n connect() {\n const roomsMissing = this.roomMissingInfoValue.some(\n (el) => el.room_missing === true\n );\n\n if (roomsMissing) {\n this.nextButtonTarget.classList.add(...this.disabledButtonClasses);\n } else {\n this.nextButtonTarget.classList.remove(...this.disabledButtonClasses);\n }\n\n setTimeout(\n () => bookingRoomAssignmentChosen(this.focusedAssignmentIdValue),\n 10\n );\n }\n\n switchToNextTab(response) {\n const { focusedAssignmentId } = response.detail;\n\n const nextBookingRoomAssignment =\n this.findNextBookingRoomAssignment(focusedAssignmentId);\n\n if (nextBookingRoomAssignment) {\n bookingRoomAssignmentChosen(nextBookingRoomAssignment.id);\n this.requestedRoomsSectionTarget.scrollIntoView({\n behavior: \"smooth\",\n });\n } else {\n this.nextButtonTarget.classList.remove(...this.disabledButtonClasses);\n this.nextButtonTarget.scrollIntoView({\n behavior: \"smooth\",\n });\n }\n }\n\n updatedMissingInfo(focusedIndex) {\n const newInfo = this.roomMissingInfoValue;\n\n newInfo[focusedIndex].room_missing = false;\n\n return newInfo;\n }\n\n findNextBookingRoomAssignment(focusedAssignmentId) {\n const focusedIndex = this.roomMissingInfoValue.findIndex(\n (info) => info.id === focusedAssignmentId\n );\n\n this.roomMissingInfoValue = this.updatedMissingInfo(focusedIndex);\n\n return this.roomMissingInfoValue.find((info) => info.room_missing === true);\n }\n}\n","import { Controller } from \"@hotwired/stimulus\";\n\nexport default class AccordionController extends Controller {\n static targets = [\"collapsible\", \"collapsibleIcon\", \"wrapper\", \"buttonText\"];\n\n static classes = [\"rotate\"];\n\n static values = {\n showMore: String,\n showLess: String,\n };\n\n collapse() {\n this.collapsibleIconTarget.classList.toggle(this.rotateClass);\n\n if (this.collapsibleIconTarget.classList.contains(this.rotateClass)) {\n this.buttonTextTarget.innerHTML = this.showLessValue;\n } else {\n this.buttonTextTarget.innerHTML = this.showMoreValue;\n }\n\n AccordionController.growDiv.bind(this)();\n }\n\n static growDiv() {\n const growDiv = this.collapsibleTarget;\n\n if (growDiv.clientHeight) {\n AccordionController.toggleOverflow(growDiv);\n\n this.collapsibleTarget.classList.add(\"h-0\");\n this.collapsibleTarget.classList.remove(\"h-full\");\n } else {\n setTimeout(() => AccordionController.toggleOverflow(growDiv), 400);\n\n this.collapsibleTarget.classList.remove(\"h-0\");\n this.collapsibleTarget.classList.add(\"h-full\");\n }\n }\n\n static toggleOverflow(growDiv) {\n growDiv.classList.toggle(\"overflow-hidden\");\n }\n}\n","import { Controller } from \"@hotwired/stimulus\";\n\nexport default class extends Controller {\n static targets = [\"tr\", \"template\", \"newRow\", \"placeholder\"];\n\n addItemEvent(event) {\n const addItemEvent = new CustomEvent(\"add-item-event\", {\n bubbles: true,\n cancelable: true,\n composed: false,\n });\n\n this.element.dispatchEvent(addItemEvent);\n\n event.preventDefault();\n }\n\n addItem() {\n if (this.hasTemplateTarget) {\n const node =\n this.templateTarget.content.firstElementChild.cloneNode(true);\n\n if (this.hasTrTarget) {\n this.trTarget.parentElement.insertBefore(node, this.trTarget);\n } else if (this.hasPlaceholderTarget) {\n this.placeholderTarget.parentElement.appendChild(node);\n this.placeholderTarget.classList.add(\"hidden\");\n }\n }\n }\n\n abortAddition(event) {\n this.newRowTarget.remove();\n if (!this.hasTrTarget) this.placeholderTarget.classList.remove(\"hidden\");\n\n event.preventDefault();\n }\n}\n","import { Controller } from \"@hotwired/stimulus\";\n\nexport default class extends Controller {\n static targets = [\"autoClose\"];\n\n connect() {\n this.leavingClasses = \"transition ease-in duration-100 opacity-0\".split(\n \" \"\n );\n\n if (this.hasAutoCloseTarget) {\n setTimeout(() => this.close(), 5000);\n }\n }\n\n close() {\n if (this.element) {\n // add the animation class to make element leave from dom\n this.element.classList.add(...this.leavingClasses);\n setTimeout(() => this.element.remove(), 1000); // remove from dom after 1 second\n }\n }\n}\n","import { Controller } from \"@hotwired/stimulus\";\n\nexport default class extends Controller {\n static targets = [\"day\", \"month\", \"year\", \"fullDate\"];\n\n connect() {\n this.day = \"\";\n this.month = \"\";\n this.year = \"\";\n this.min = 1;\n this.maxDay = 31;\n this.maxMonth = 12;\n }\n\n inRange(value, max) {\n return value >= this.min && value <= max;\n }\n\n saveDay() {\n this.saveFullDate();\n\n if (this.dayTarget.value.length === 2) {\n this.monthTarget.focus();\n }\n }\n\n saveMonth() {\n this.saveFullDate();\n\n if (this.monthTarget.value.length === 2) {\n this.yearTarget.focus();\n }\n }\n\n saveFullDate() {\n if (\n this.inRange(this.dayTarget.value, this.maxDay) &&\n this.inRange(this.monthTarget.value, this.maxMonth) &&\n this.yearTarget.value.length === 4\n ) {\n this.day = this.dayTarget.value;\n this.month = this.monthTarget.value;\n this.year = this.yearTarget.value;\n this.fullDateTarget.value = new Date(this.year, this.month - 1, this.day);\n } else {\n this.fullDateTarget.value = \"\";\n }\n }\n}\n","import { Controller } from \"@hotwired/stimulus\";\n\nimport AssociationHandlers from \"./booking_resource_sku_association/association_handlers\";\nimport ValidationHandlers from \"./booking_resource_sku_association/validation_handlers\";\nimport DragDropHandlers from \"./booking_resource_sku_association/drag_drop_handlers\";\n\nexport default class extends Controller {\n static targets = [\"loadingOverlayTemplate\", \"invalidDropIndicatorTemplate\"];\n\n initialize() {\n Object.assign(this, AssociationHandlers);\n Object.assign(this, ValidationHandlers);\n Object.assign(this, DragDropHandlers);\n }\n\n static showError(message) {\n const errorEvent = new CustomEvent(\"error:show\", {\n detail: {\n message,\n },\n });\n window.dispatchEvent(errorEvent);\n }\n\n static showFlightSelectionModal(draggedData, targetData, transferDirection) {\n const customEvent = new CustomEvent(\n \"booking-resource-sku-association:showFlightSelectionModal\",\n {\n detail: {\n draggedData,\n targetData,\n transferDirection,\n },\n }\n );\n\n window.dispatchEvent(customEvent);\n }\n\n onFlightSelected(event) {\n const { flightData, contextData } = event.detail;\n const { draggedData, targetData, transferDirection } = contextData;\n\n this.handleAssociation(\n draggedData,\n targetData,\n transferDirection,\n flightData\n );\n }\n\n onFlightError(event) {\n const { message } = event.detail;\n this.constructor.showError(message || \"Error selecting flight\");\n }\n\n static showPickupDropoffModal(draggedData, targetData) {\n const customEvent = new CustomEvent(\n \"booking-resource-sku-association:showPickupDropoffModal\",\n {\n detail: { draggedData, targetData },\n }\n );\n window.dispatchEvent(customEvent);\n }\n\n onPickupDropoffSelected(event) {\n const { option, contextData } = event.detail;\n const { draggedData, targetData } = contextData;\n\n if (option === \"cancel\") {\n return;\n }\n\n if (draggedData.type === \"flight\") {\n this.constructor.showFlightSelectionModal(\n draggedData,\n targetData,\n option\n );\n } else {\n this.handleAssociation(draggedData, targetData, option);\n }\n }\n\n onPickupDropoffError(event) {\n const { message } = event.detail;\n this.constructor.showError(message || \"Error selecting pickup/dropoff\");\n }\n}\n","import { Controller } from \"@hotwired/stimulus\";\nimport bookingRoomAssignmentChosen from \"frontoffice/services/bookingRoomAssignments\";\n\nexport default class BookingRoomAssignmentController extends Controller {\n static targets = [\"bookingRoomAssignment\", \"bookingRoomAssignmentText\"];\n\n static classes = [\"activeBookingRoomAssignment\"];\n\n static values = {\n bookingRoomAssignmentId: Number,\n };\n\n select(event) {\n event.preventDefault();\n\n if (\n event.detail.focusedAssignmentId === this.bookingRoomAssignmentIdValue\n ) {\n this.bookingRoomAssignmentTarget.classList.add(\n ...this.activeBookingRoomAssignmentClasses\n );\n } else {\n this.bookingRoomAssignmentTarget.classList.remove(\n ...this.activeBookingRoomAssignmentClasses\n );\n }\n }\n\n selectTab(e) {\n e.preventDefault();\n\n bookingRoomAssignmentChosen(this.bookingRoomAssignmentIdValue);\n }\n\n replaceText(event) {\n const { focusedAssignmentId, response } = event.detail;\n\n if (focusedAssignmentId !== this.bookingRoomAssignmentIdValue) {\n return;\n }\n\n const { attributes } = response.data;\n\n this.bookingRoomAssignmentTextTarget.innerHTML = attributes.summary_text;\n\n this.updateBookingTotalPrice();\n }\n\n updateBookingTotalPrice() {\n const bookingResourceSkusChanged = new CustomEvent(\n \"booking-resource-skus-changed\",\n {\n bubbles: true,\n cancelable: true,\n composed: false,\n }\n );\n\n this.element.dispatchEvent(bookingResourceSkusChanged);\n }\n}\n","import { Controller } from \"@hotwired/stimulus\";\n\nexport default class extends Controller {\n static targets = [\"show\", \"info\", \"actions\"];\n\n show(event) {\n event.preventDefault();\n\n this.infoTarget.classList.remove(\"hidden\");\n this.actionsTarget.classList.remove(\"hidden\");\n this.showTarget.classList.add(\"hidden\");\n }\n\n hide(event) {\n event.preventDefault();\n\n this.infoTarget.classList.add(\"hidden\");\n this.actionsTarget.classList.add(\"hidden\");\n this.showTarget.classList.remove(\"hidden\");\n }\n}\n","import { Controller } from \"@hotwired/stimulus\";\n\nexport default class extends Controller {\n static targets = [\"copyButton\", \"tooltip\"];\n\n static values = {\n url: String,\n success: String,\n };\n\n connect() {\n this.rotateClasses = \"transform rotate-12\".split(\" \");\n }\n\n copy(event) {\n event.preventDefault();\n\n // Create a temporary input element to hold the URL\n const tempInput = document.createElement(\"input\");\n tempInput.value = this.urlValue;\n document.body.appendChild(tempInput);\n\n // Select and copy the URL\n tempInput.select();\n document.execCommand(\"copy\");\n\n // Remove the temporary input element\n document.body.removeChild(tempInput);\n\n if (this.hasCopyButtonTarget && this.hasTooltipTarget) {\n this.tooltipTarget.firstElementChild.innerHTML = this.successValue;\n this.copyButtonTarget.classList.add(...this.rotateClasses);\n setTimeout(() => {\n this.copyButtonTarget.classList.remove(...this.rotateClasses);\n }, 500);\n }\n }\n}\n","import { Controller } from \"@hotwired/stimulus\";\n\nexport default class extends Controller {\n static targets = [\n \"list\",\n \"availabilityId\",\n \"show\",\n \"checkmark\",\n \"li\",\n \"dropdown\",\n ];\n\n toggle(event) {\n event.preventDefault();\n\n if (this.listTarget.getAttribute(\"aria-expanded\") === \"false\") {\n this.show();\n } else {\n this.hide();\n }\n }\n\n handleClick(event) {\n if (event.target.closest(\"div\") === this.dropdownTarget) {\n this.toggle(event);\n } else if (event.target !== this.showTarget) {\n this.hide();\n }\n }\n\n show() {\n this.listTarget.classList.remove(\"hidden\");\n this.listTarget.setAttribute(\"aria-expanded\", \"true\");\n }\n\n hide() {\n this.listTarget.classList.add(\"hidden\");\n this.listTarget.setAttribute(\"aria-expanded\", \"false\");\n }\n\n saveOption(event) {\n this.selectedLi = event.target.closest(\"li\");\n this.id = this.selectedLi.dataset.id;\n this.availabilityIdTarget.value = this.id;\n this.showTarget.value = this.selectedLi.dataset.name;\n this.liTargets.forEach((item) => item.classList.remove(\"font-semibold\"));\n this.selectedLi.classList.add(\"font-semibold\");\n\n [this.showCheckmark] = this.checkmarkTargets.filter(\n (item) => item.dataset.id === this.id\n );\n this.showCheckmark.classList.remove(\"hidden\");\n\n this.hideCheckmarks = this.checkmarkTargets.filter(\n (item) => item.dataset.id !== this.id\n );\n this.hideCheckmarks.forEach((item) => item.classList.add(\"hidden\"));\n\n this.listTarget.classList.add(\"hidden\");\n }\n}\n","import { Controller } from \"@hotwired/stimulus\";\n\nexport default class extends Controller {\n static targets = [\"startDate\", \"endDate\"];\n\n selectDateRange(event) {\n const {\n detail: { selectedDates },\n } = event;\n\n if (selectedDates.length === 2) {\n [this.startDateTarget.value, this.endDateTarget.value] = [\n selectedDates[0].toLocaleDateString(\"se\"),\n selectedDates[1].toLocaleDateString(\"se\"),\n ];\n }\n }\n}\n","import { Controller } from \"@hotwired/stimulus\";\n\nexport default class extends Controller {\n static targets = [\"button\", \"dropdown\"];\n\n connect() {\n this.activeClasses = \"opacity-100 scale-100 ease-in duration-75\".split(\" \");\n this.inactiveClasses =\n \"opacity-0 scale-95 ease-out duration-100 pointer-events-none\".split(\" \");\n }\n\n toggle(event) {\n event.preventDefault();\n\n if (this.buttonTarget.getAttribute(\"aria-expanded\") === \"false\") {\n this.show();\n } else {\n this.hide(null);\n }\n }\n\n show() {\n this.buttonTarget.setAttribute(\"aria-expanded\", \"true\");\n this.buttonTarget.focus();\n this.dropdownTarget.classList.remove(...this.inactiveClasses);\n this.dropdownTarget.classList.add(...this.activeClasses);\n }\n\n hide(event) {\n if (\n event &&\n ((this.dropdownTarget.contains(event.target) &&\n event.type !== \"mouseleave\") ||\n this.buttonTarget.contains(event.target))\n ) {\n return;\n }\n\n this.buttonTarget.setAttribute(\"aria-expanded\", \"false\");\n this.buttonTarget.blur();\n this.dropdownTarget.classList.add(...this.inactiveClasses);\n this.dropdownTarget.classList.remove(...this.activeClasses);\n }\n}\n","import { Controller } from \"@hotwired/stimulus\";\n\nexport default class extends Controller {\n static targets = [\"editDate\", \"dateField\"];\n\n editDueOn(event) {\n this.editDateTarget.classList.add(\"hidden\");\n this.dateFieldTarget.classList.remove(\"hidden\");\n\n event.preventDefault();\n }\n\n saveDueOn() {\n setTimeout(() => {\n this.dateFieldTarget.classList.add(\"hidden\");\n this.editDateTarget.classList.remove(\"hidden\");\n }, 500);\n }\n\n closeDueOn(event) {\n this.editDateTarget.classList.remove(\"hidden\");\n this.dateFieldTarget.classList.add(\"hidden\");\n\n event.preventDefault();\n }\n}\n","import { Controller } from \"@hotwired/stimulus\";\n\nexport default class extends Controller {\n static targets = [\n \"employeesButton\",\n \"productsButton\",\n \"newEmployee\",\n \"newProduct\",\n \"newEmployeeModal\",\n \"newProductModal\",\n \"employees\",\n \"products\",\n ];\n\n connect() {\n this.activeColor = \"bg-tourrise-aqua opacity-100\".split(\" \");\n\n if (window.location.href.split(\"#\")[1] === \"products\") {\n this.activateProducts();\n } else {\n this.activateEmployees();\n }\n }\n\n activateEmployees() {\n this.employeesButtonTarget.classList.add(...this.activeColor);\n this.productsButtonTarget.classList.remove(...this.activeColor);\n\n this.newEmployeeTarget.classList.remove(\"hidden\");\n this.newProductTarget.classList.add(\"hidden\");\n\n this.employeesTarget.classList.remove(\"hidden\");\n this.productsTarget.classList.add(\"hidden\");\n\n if (this.hasNewEmployeeModalTarget) this.newEmployeeModalTarget.remove();\n }\n\n activateProducts() {\n this.employeesButtonTarget.classList.remove(...this.activeColor);\n this.productsButtonTarget.classList.add(...this.activeColor);\n\n this.newEmployeeTarget.classList.add(\"hidden\");\n this.newProductTarget.classList.remove(\"hidden\");\n\n this.employeesTarget.classList.add(\"hidden\");\n this.productsTarget.classList.remove(\"hidden\");\n\n if (this.hasNewProductModalTarget) this.newProductModalTarget.remove();\n }\n}\n","import { Controller } from \"@hotwired/stimulus\";\n\nexport default class extends Controller {\n static targets = [\"editItem\", \"editField\", \"content\", \"tr\", \"actions\"];\n\n static values = {\n newlyAdded: Boolean,\n };\n\n connect() {\n if (this.newlyAddedValue) {\n this.activateEditField();\n }\n }\n\n activateEditField() {\n this.editItemTargets.forEach((target) => {\n target.classList.add(\"hidden\");\n });\n this.editFieldTarget.classList.remove(\"hidden\");\n if (this.hasContentTarget) this.contentTarget.select();\n }\n\n editItem(event) {\n if (this.hasEditItemTarget && this.hasEditFieldTarget) {\n this.actionsTarget.classList.add(\"hidden\");\n this.activateEditField();\n\n if (event) event.preventDefault();\n }\n }\n\n saveItem() {\n setTimeout(() => {\n this.editFieldTarget.classList.add(\"hidden\");\n this.actionsTarget.classList.remove(\"hidden\");\n this.editItemTargets.forEach((target) => {\n target.classList.remove(\"hidden\");\n });\n }, 500);\n }\n\n abortEdit(event) {\n this.editItemTargets.forEach((target) => {\n target.classList.remove(\"hidden\");\n });\n this.actionsTarget.classList.remove(\"hidden\");\n this.editFieldTarget.classList.add(\"hidden\");\n\n event.preventDefault();\n }\n}\n","import { Controller } from \"@hotwired/stimulus\";\n\nexport default class extends Controller {\n static targets = [\"submenu\", \"chevron\"];\n\n static values = {\n submenuName: String,\n submenuNameAlternatives: Array,\n currentPath: String,\n };\n\n connect() {\n if (this.hasSubmenuTarget) {\n if (\n this.currentPathValue.includes(this.submenuNameValue) ||\n this.submenuNameAlternativesValue.includes(this.currentPathValue)\n )\n this.expandSubmenu();\n }\n }\n\n toggleSubmenu(event) {\n event.preventDefault();\n\n if (this.submenuTarget.getAttribute(\"aria-expanded\") === \"false\") {\n this.expandSubmenu();\n } else {\n this.submenuTarget.classList.add(\"hidden\");\n this.chevronTarget.classList.remove(\"rotate-90\");\n this.submenuTarget.setAttribute(\"aria-expanded\", \"false\");\n }\n }\n\n expandSubmenu() {\n this.submenuTarget.classList.remove(\"hidden\");\n this.chevronTarget.classList.add(\"rotate-90\");\n this.submenuTarget.setAttribute(\"aria-expanded\", \"true\");\n }\n}\n","import { Controller } from \"@hotwired/stimulus\";\n\nexport default class FinalSubmitController extends Controller {\n static targets = [\n \"submitButton\",\n \"errorMessage\",\n \"errorTosPp\",\n \"termsOfService\",\n \"privacyPolicy\",\n \"modal\",\n \"spinner\",\n \"paymentOptions\",\n \"partialPayment\",\n \"singlePayment\",\n \"partialPaymentField\",\n \"paymentButton\",\n ];\n\n static values = {\n bookingResourceSkus: Array,\n bookingResourceSkuParticipantIds: Object,\n bookingResourceSkuQuantities: Object,\n bookingResourceSkuHandles: Object,\n errorMessage: String,\n tosAndPpMessage: String,\n };\n\n connect() {\n this.handleSubmit();\n }\n\n handleChange() {\n if (this.partialPaymentTarget.checked) {\n this.partialPaymentFieldTarget.value = true;\n } else if (this.singlePaymentTarget.checked) {\n this.partialPaymentFieldTarget.value = false;\n }\n\n this.paymentButtonTarget.disabled = false;\n }\n\n showSpinner() {\n this.paymentOptionsTarget.classList.add(\"hidden\");\n this.spinnerTarget.classList.remove(\"hidden\");\n }\n\n checkTermsOfServiceAndPrivacyPolicy() {\n if (this.termsOfServiceTarget.checked && this.privacyPolicyTarget.checked) {\n this.tosAndPpAccepted = true;\n this.errorTosPpTarget.innerHTML = \"\";\n } else {\n this.tosAndPpAccepted = false;\n this.errorTosPpTarget.innerHTML = this.tosAndPpMessageValue;\n }\n }\n\n handleSubmit() {\n this.allParticipantsAssigned = true;\n this.bookingResourceSkusValue.forEach((el) => {\n const { id } = el;\n\n if (\n this.bookingResourceSkuHandlesValue[id].startsWith(\"transfer-others\")\n ) {\n // in case of other transfer resources, atleast 1 participant should be assigned\n if (this.bookingResourceSkuParticipantIdsValue[id].length === 0) {\n this.allParticipantsAssigned = false;\n }\n } else if (\n this.bookingResourceSkuParticipantIdsValue[id].length !==\n this.bookingResourceSkuQuantitiesValue[id]\n ) {\n this.allParticipantsAssigned = false;\n }\n });\n\n this.checkTermsOfServiceAndPrivacyPolicy();\n\n if (this.allParticipantsAssigned) {\n this.errorMessageTarget.innerHTML = \"\";\n } else {\n this.errorMessageTarget.innerHTML = this.errorMessageValue;\n }\n\n if (this.allParticipantsAssigned && this.tosAndPpAccepted) {\n this.submitButtonTarget.disabled = false;\n } else {\n this.submitButtonTarget.disabled = true;\n }\n }\n\n handleParticipantAssignment(event) {\n const { bookingResourceSkuId, selectedParticipantsIds } = event.detail;\n\n this.bookingResourceSkuParticipantIdsValue =\n FinalSubmitController.updateObject(\n this.bookingResourceSkuParticipantIdsValue,\n bookingResourceSkuId,\n selectedParticipantsIds\n );\n\n this.handleSubmit();\n }\n\n showCheckoutModal() {\n this.modalTarget.classList.remove(\"hidden\");\n }\n\n closeCheckoutModal() {\n this.modalTarget.classList.add(\"hidden\");\n this.partialPaymentFieldTarget.value = false;\n this.partialPaymentTarget.checked = false;\n this.singlePaymentTarget.checked = false;\n this.paymentButtonTarget.disabled = true;\n }\n\n static updateObject(obj, key, value) {\n const updatedObj = obj;\n updatedObj[key] = value;\n return updatedObj;\n }\n}\n","import { Controller } from \"@hotwired/stimulus\";\n\nexport default class extends Controller {\n static targets = [\n \"container\",\n \"interval\",\n \"template\",\n \"globalLevel\",\n \"productLevel\",\n \"products\",\n ];\n\n connect() {\n this.toggleProducts();\n }\n\n addInterval() {\n const newNode = this.containerTarget.insertBefore(\n this.templateTarget.content.firstElementChild.cloneNode(true),\n null\n );\n\n const newIndex = this.intervalTargets.length - 1;\n\n Array.from(newNode.querySelectorAll(\"label, select, input\")).forEach(\n (element) => {\n const el = element;\n\n if (el.tagName === \"LABEL\") {\n const newVal = el\n .getAttribute(\"for\")\n .replace(\"_ID_\", `_${newIndex}_`);\n el.setAttribute(\"for\", newVal);\n } else {\n el.id = el.id.replace(\"_ID_\", `_${newIndex}_`);\n el.name = el.name.replace(\"[ID]\", `[${newIndex}]`);\n }\n }\n );\n }\n\n removeInterval(event) {\n this.intervalItem = event.target.closest(\"li\");\n\n this.intervalItem.remove();\n }\n\n toggleProducts() {\n if (this.globalLevelTarget.checked) {\n this.productsTarget.classList.add(\"hidden\");\n } else {\n this.productsTarget.classList.remove(\"hidden\");\n }\n }\n}\n","import { Controller } from \"@hotwired/stimulus\";\nimport flightSearch from \"backoffice/bookingResourceSkus/edit\";\nimport initializeFlatpickr from \"@shared/date_picker\";\n\nexport default class extends Controller {\n static targets = [\n \"container\",\n \"template\",\n \"flightItem\",\n \"carrier\",\n \"flightNumber\",\n \"date\",\n \"results\",\n \"errorMessage\",\n \"carrierError\",\n \"flightNumberError\",\n \"dateError\",\n \"searchButton\",\n \"loadResults\",\n \"loadUpdate\",\n ];\n\n static values = {\n dateMissing: String,\n dateInvalid: String,\n };\n\n connect() {\n this.inactiveClasses = \"text-opacity-0 pointer-events-none\".split(\" \");\n this.dateErrorMessage = this.dateMissingValue;\n this.dateValid = false;\n }\n\n waitForUpdate() {\n this.loadUpdateTarget.classList.add(\"pointer-events-none\");\n this.loadUpdateTarget.firstElementChild.classList.add(\"animate-spin\");\n }\n\n removeFlight(event) {\n this.flightItem = event.target.closest(\"li\");\n\n this.flightItem.remove();\n\n this.flightItemTargets.forEach((flight, index) => {\n this.node = flight;\n this.index = index;\n this.regex = /\\d+/.exec(flight.firstElementChild.textContent) - 1;\n\n this.updateNode();\n\n const flightItemTitle = flight.firstElementChild;\n flightItemTitle.textContent = flightItemTitle.textContent.replace(\n /\\d+/,\n this.index + 1\n );\n });\n\n event.preventDefault();\n }\n\n addFlight(event) {\n this.node = this.containerTarget.insertBefore(\n this.templateTarget.content.firstElementChild.cloneNode(true),\n null\n );\n\n this.index = this.flightItemTargets.length - 1;\n this.regex = \"FLIGHT_ID\";\n\n this.updateNode();\n\n this.node.firstElementChild.textContent = `${this.flightItemTargets.length}. ${this.node.firstElementChild.textContent}`;\n\n initializeFlatpickr();\n\n event.preventDefault();\n }\n\n updateNode() {\n Array.from(\n this.node.querySelectorAll(\"label, select, input, textarea\")\n ).forEach((element) => {\n const el = element;\n\n if (el.tagName === \"LABEL\") {\n const newVal = el.getAttribute(\"for\").replace(this.regex, this.index);\n el.setAttribute(\"for\", newVal);\n } else {\n el.id = el.id.replace(this.regex, this.index);\n el.name = el.name.replace(this.regex, this.index);\n }\n });\n }\n\n handleMissingFields() {\n if (!this.carrierTarget.value) {\n this.carrierTarget.classList.add(\"border-red-600\");\n this.carrierErrorTarget.classList.remove(\"hidden\");\n }\n if (!this.flightNumberTarget.value) {\n this.flightNumberTarget.classList.add(\"border-red-600\");\n this.flightNumberErrorTarget.classList.remove(\"hidden\");\n }\n if (!this.dateValid) {\n this.dateTarget.classList.add(\"border-red-600\");\n this.dateErrorTarget.innerHTML = this.dateErrorMessage;\n this.dateErrorTarget.classList.remove(\"hidden\");\n }\n }\n\n validateOnTarget() {\n if (!this.dateTarget.value) {\n this.dateErrorMessage = this.dateMissingValue;\n this.dateValid = false;\n } else {\n const today = new Date();\n const lowerLimit = new Date(\n today.getFullYear(),\n today.getMonth() - 1,\n today.getDate()\n );\n const upperLimit = new Date(\n today.getFullYear(),\n today.getMonth() + 13,\n today.getDate()\n );\n\n const requestedDate = new Date(this.dateTarget.value);\n requestedDate.setHours(requestedDate.getHours() - 1);\n\n if (lowerLimit > requestedDate || requestedDate > upperLimit) {\n this.dateErrorMessage = this.dateInvalidValue;\n this.dateValid = false;\n } else {\n this.dateValid = true;\n }\n }\n }\n\n searchFlight() {\n this.carrierTarget.classList.remove(\"border-red-600\");\n this.flightNumberTarget.classList.remove(\"border-red-600\");\n this.dateTarget.classList.remove(\"border-red-600\");\n this.errorMessageTargets.forEach((message) =>\n message.classList.add(\"hidden\")\n );\n\n this.validateOnTarget();\n\n if (\n !(\n this.carrierTarget.value &&\n this.flightNumberTarget.value &&\n this.dateValid\n )\n ) {\n this.handleMissingFields();\n return;\n }\n\n this.loadResultsTarget.classList.remove(\"hidden\");\n this.searchButtonTarget.classList.add(...this.inactiveClasses);\n this.searchButtonTarget.setAttribute(\"disabled\", true);\n\n const success = (response) => {\n this.resultsTarget.style.display = \"block\";\n this.loadResultsTarget.classList.add(\"hidden\");\n this.searchButtonTarget.classList.remove(...this.inactiveClasses);\n this.searchButtonTarget.setAttribute(\"disabled\", false);\n\n const sendResponse = new CustomEvent(\"send-response\", {\n detail: {\n flights: response.flights,\n airports: response.airports,\n error: response.error,\n },\n });\n\n window.dispatchEvent(sendResponse);\n };\n\n const error = () => {\n \"not found\";\n };\n\n flightSearch({\n carrier: this.carrierTarget.value.trim(),\n flightNumber: this.flightNumberTarget.value.trim(),\n onDate: this.dateTarget.value,\n success,\n error,\n });\n }\n\n stopSearch() {\n this.loadResultsTarget.classList.add(\"hidden\");\n this.searchButtonTarget.classList.remove(...this.inactiveClasses);\n this.searchButtonTarget.setAttribute(\"disabled\", false);\n }\n\n // changeFromTo() {\n // const from = this.fromTarget.value;\n // const to = this.toTarget.value;\n\n // this.fromTarget.value = to;\n // this.toTarget.value = from;\n // }\n}\n","import { Controller } from \"@hotwired/stimulus\";\n\nexport default class extends Controller {\n static targets = [\n \"airline\",\n \"flightNumber\",\n \"departureAirport\",\n \"arrivalAirport\",\n \"departureTime\",\n \"arrivalTime\",\n ];\n\n static values = {\n locale: String,\n };\n\n selectFlight(event) {\n const sendFlightData = new CustomEvent(\"new-flight\", {\n detail: {\n airlineCode: this.airlineTarget.innerText,\n flightNumber: this.flightNumberTarget.innerText,\n takeoffAt: this.departureTimeTarget.innerText,\n takeoffAirportCode: this.departureAirportTarget.innerText,\n landingAt: this.arrivalTimeTarget.innerText,\n landingAirportCode: this.arrivalAirportTarget.innerText,\n },\n });\n\n window.dispatchEvent(sendFlightData);\n\n event.preventDefault();\n }\n}\n","import { Controller } from \"@hotwired/stimulus\";\n\nexport default class extends Controller {\n static targets = [\n \"airline\",\n \"flightNumber\",\n \"departureAirport\",\n \"arrivalAirport\",\n \"departureTime\",\n \"arrivalTime\",\n \"timeSpan\",\n \"travelTime\",\n \"item\",\n \"emptyMessage\",\n ];\n\n static values = {\n locale: String,\n minutes: String,\n hours: String,\n };\n\n localeDateTime(dateTimeString) {\n const dateTime = new Date(dateTimeString);\n\n const time = dateTime.toLocaleTimeString(`${this.localeValue}`, {\n hour: \"2-digit\",\n minute: \"2-digit\",\n });\n const date = dateTime.toLocaleDateString(`${this.localeValue}`);\n\n return `${date}, ${time}`;\n }\n\n timeSpan(depTime, arrTime) {\n let departure = new Date(depTime);\n let arrival = new Date(arrTime);\n const suffix = arrival.getDate() > departure.getDate() ? \" (+1)\" : \"\";\n\n departure = departure.toLocaleTimeString(`${this.localeValue}`, {\n hour: \"2-digit\",\n minute: \"2-digit\",\n });\n\n arrival = arrival.toLocaleTimeString(`${this.localeValue}`, {\n hour: \"2-digit\",\n minute: \"2-digit\",\n });\n\n return `${departure} - ${arrival}${suffix}`;\n }\n\n travelTime(depTime, arrTime, airports) {\n const timeDifference =\n airports.departure.utc_offset_hours - airports.arrival.utc_offset_hours;\n const departure = new Date(depTime);\n const arrival = new Date(arrTime);\n\n const totalTime = (arrival - departure) / 1000 / 60;\n\n const hours = parseInt(totalTime / 60, 10);\n const hoursString =\n hours + timeDifference > 0\n ? `${hours + timeDifference} ${this.hoursValue}`\n : \"\";\n\n const minutes = totalTime - 60 * hours;\n const minutesString = minutes > 0 ? ` ${minutes} ${this.minutesValue}` : \"\";\n\n return `${hoursString}${minutesString}`;\n }\n\n handleResults(event) {\n this.itemTargets.forEach((item, index) => {\n item.classList.remove(\"hidden\");\n if (index !== 0) item.remove();\n });\n\n if (event.detail.error) {\n this.emptyMessageTarget.classList.remove(\"hidden\");\n this.itemTarget.classList.add(\"hidden\");\n } else {\n const { flights, airports } = event.detail;\n\n this.fillData(flights, airports);\n }\n\n event.preventDefault();\n }\n\n fillData(data, airports) {\n this.emptyMessageTarget.classList.add(\"hidden\");\n\n const parentNode = this.itemTarget.parentElement;\n\n data.forEach((element, index) => {\n if (!this.itemTargets[index]) {\n parentNode.insertBefore(this.itemTarget.cloneNode(true), null);\n }\n this.airlineTargets[index].innerHTML = element.carrier_fs_code;\n this.flightNumberTargets[index].innerHTML = element.flight_number;\n this.departureAirportTargets[index].innerHTML =\n element.departure_airport_fs_code;\n this.arrivalAirportTargets[index].innerHTML =\n element.arrival_airport_fs_code;\n this.timeSpanTargets[index].innerHTML = this.timeSpan(\n element.departure_time,\n element.arrival_time\n );\n this.travelTimeTargets[index].innerHTML = this.travelTime(\n element.departure_time,\n element.arrival_time,\n airports\n );\n this.departureTimeTargets[index].innerHTML = element.departure_time;\n this.arrivalTimeTargets[index].innerHTML = element.arrival_time;\n });\n }\n}\n","import { Controller } from \"@hotwired/stimulus\";\n\nexport default class extends Controller {\n static targets = [\n \"toggleActions\",\n \"fabContainer\",\n \"actions\",\n \"background\",\n \"closeButton\",\n ];\n\n connect() {\n this.fabContainerTarget.classList.add(\"hidden\");\n }\n\n toggleActions(event) {\n event.preventDefault();\n if (this.fabContainerTarget.classList.contains(\"hidden\")) {\n this.openActions();\n } else {\n this.closeActions();\n }\n }\n\n openActions() {\n this.fabContainerTarget.classList.remove(\"hidden\");\n setTimeout(() => {\n this.backgroundTarget.classList.remove(\"opacity-0\");\n this.backgroundTarget.classList.add(\"opacity-100\");\n this.actionsTarget.classList.remove(\"translate-y-full\");\n this.actionsTarget.classList.add(\"translate-y-0\");\n this.toggleActionsTarget.classList.add(\"hidden\");\n this.closeButtonTarget.classList.remove(\"opacity-0\");\n this.closeButtonTarget.classList.add(\"opacity-100\");\n }, 100);\n }\n\n closeActions() {\n this.closeButtonTarget.classList.remove(\"opacity-100\");\n this.closeButtonTarget.classList.add(\"opacity-0\");\n this.actionsTarget.classList.add(\"translate-y-full\");\n this.actionsTarget.classList.remove(\"translate-y-0\");\n this.backgroundTarget.classList.add(\"opacity-0\");\n this.backgroundTarget.classList.remove(\"opacity-100\");\n this.toggleActionsTarget.classList.remove(\"hidden\");\n setTimeout(() => {\n this.fabContainerTarget.classList.add(\"hidden\");\n }, 300);\n }\n}\n","import { Controller } from \"@hotwired/stimulus\";\n\nexport default class FormValidationController extends Controller {\n static targets = [\n \"firstName\",\n \"lastName\",\n \"gender\",\n \"address\",\n \"zip\",\n \"city\",\n \"country\",\n \"locale\",\n \"birthdate\",\n \"email\",\n \"phone\",\n ];\n\n initialize() {\n this.validateFirstName();\n this.validateLastName();\n this.validateGender();\n this.validateAddress();\n this.validateZipCity();\n this.validateCountry();\n this.validateLocale();\n this.validateBirthdate();\n this.validateEmail();\n this.validatePhone();\n }\n\n static createCustomEvent(eventName, isValid, element) {\n const event = new CustomEvent(eventName, {\n detail: {\n isValid,\n element,\n },\n });\n\n return event;\n }\n\n static validateInput(value) {\n if (value !== \"\") {\n return true;\n }\n\n return false;\n }\n\n static validateRegex(value, regex) {\n if (regex.test(value)) {\n return true;\n }\n\n return false;\n }\n\n validateFirstName() {\n if (this.hasFirstNameTarget) {\n setTimeout(() => {\n const isValid = FormValidationController.validateInput(\n this.firstNameTarget.value\n );\n\n const firstNameValidEvent = FormValidationController.createCustomEvent(\n \"first-name-valid\",\n isValid,\n this.firstNameTarget\n );\n\n window.dispatchEvent(firstNameValidEvent);\n }, 100);\n }\n }\n\n validateLastName() {\n if (this.hasLastNameTarget) {\n setTimeout(() => {\n const isValid = FormValidationController.validateInput(\n this.lastNameTarget.value\n );\n\n const lastNameValidEvent = FormValidationController.createCustomEvent(\n \"last-name-valid\",\n isValid,\n this.lastNameTarget\n );\n\n window.dispatchEvent(lastNameValidEvent);\n }, 100);\n }\n }\n\n validateGender() {\n if (this.hasGenderTarget) {\n setTimeout(() => {\n const isValid = FormValidationController.validateInput(\n this.genderTarget.value\n );\n\n const genderValidEvent = FormValidationController.createCustomEvent(\n \"gender-valid\",\n isValid,\n this.genderTarget\n );\n\n window.dispatchEvent(genderValidEvent);\n }, 100);\n }\n }\n\n validateAddress() {\n if (this.hasAddressTarget) {\n setTimeout(() => {\n const isValid = FormValidationController.validateInput(\n this.addressTarget.value\n );\n\n const addressValidEvent = FormValidationController.createCustomEvent(\n \"address-valid\",\n isValid,\n this.addressTarget\n );\n\n window.dispatchEvent(addressValidEvent);\n }, 100);\n }\n }\n\n validateZipCity() {\n if (this.hasZipTarget && this.hasCityTarget) {\n setTimeout(() => {\n const isValid =\n this.zipTarget.value !== \"\" && this.cityTarget.value !== \"\";\n\n const zipCityValidEvent = FormValidationController.createCustomEvent(\n \"zip-city-valid\",\n isValid,\n this.cityTarget.parentElement\n );\n\n window.dispatchEvent(zipCityValidEvent);\n }, 100);\n }\n }\n\n validateCountry() {\n if (this.hasCountryTarget) {\n setTimeout(() => {\n const isValid = FormValidationController.validateInput(\n this.countryTarget.value\n );\n\n const countryValidEvent = FormValidationController.createCustomEvent(\n \"country-valid\",\n isValid,\n this.countryTarget\n );\n\n window.dispatchEvent(countryValidEvent);\n }, 100);\n }\n }\n\n validateLocale() {\n if (this.hasLocaleTarget) {\n setTimeout(() => {\n const isValid = FormValidationController.validateInput(\n this.localeTarget.value\n );\n\n const localeValidEvent = FormValidationController.createCustomEvent(\n \"locale-valid\",\n isValid,\n this.localeTarget\n );\n\n window.dispatchEvent(localeValidEvent);\n }, 100);\n }\n }\n\n validateBirthdate() {\n if (this.hasBirthdateTarget) {\n const today = new Date();\n const birthdate = new Date(this.birthdateTarget.value);\n let isValid = false;\n\n setTimeout(() => {\n if (this.birthdateTarget.value !== \"\" && birthdate < today) {\n isValid = true;\n } else {\n isValid = false;\n }\n\n const birthdateValidEvent = FormValidationController.createCustomEvent(\n \"birthdate-valid\",\n isValid,\n this.birthdateTarget\n );\n\n window.dispatchEvent(birthdateValidEvent);\n }, 100);\n }\n }\n\n validateEmail() {\n if (this.hasEmailTarget) {\n const validEmailRegex = /^\\w+([.-]?\\w+)*@\\w+([.-]?\\w+)*(\\.\\w{2,3})+$/;\n\n setTimeout(() => {\n const isValid = FormValidationController.validateRegex(\n this.emailTarget.value,\n validEmailRegex\n );\n\n const emailValidEvent = FormValidationController.createCustomEvent(\n \"email-valid\",\n isValid,\n this.emailTarget\n );\n\n window.dispatchEvent(emailValidEvent);\n }, 100);\n }\n }\n\n validatePhone() {\n if (this.hasPhoneTarget) {\n setTimeout(() => {\n const isValid = FormValidationController.validateInput(\n this.phoneTarget.value\n );\n\n const phoneValidEvent = FormValidationController.createCustomEvent(\n \"phone-valid\",\n isValid,\n this.phoneTarget\n );\n\n window.dispatchEvent(phoneValidEvent);\n }, 100);\n }\n }\n}\n","import { Controller } from \"@hotwired/stimulus\";\n\nexport default class extends Controller {\n static targets = [\"wrapper\", \"gallery\", \"nextButton\", \"prevButton\"];\n\n static values = {\n index: Number,\n images: Number,\n };\n\n connect() {\n this.handleButtons();\n this.timeout = 500;\n }\n\n indexValueChanged() {\n this.galleryTarget.style = `--tw-translate-x: -${\n this.indexValue * this.galleryTarget.offsetWidth\n }px;`;\n this.controlImageHeight();\n\n this.handleButtons();\n }\n\n controlImageHeight() {\n if (this.indexValue >= 0) {\n const height =\n window.screen.height > 500\n ? this.galleryTarget.children[this.indexValue].offsetHeight\n : 350;\n setTimeout(() => {\n this.galleryTarget.parentElement.style.height = `${height}px`;\n }, this.timeout);\n\n this.timeout = 0;\n }\n }\n\n handleButtons() {\n if (this.imagesValue > 1) {\n if (this.indexValue === 0) {\n this.prevButtonTarget.disabled = true;\n this.nextButtonTarget.disabled = false;\n } else if (this.indexValue >= this.imagesValue - 1) {\n this.nextButtonTarget.disabled = true;\n this.prevButtonTarget.disabled = false;\n } else {\n this.nextButtonTarget.disabled = false;\n this.prevButtonTarget.disabled = false;\n }\n }\n }\n\n showGallery(event) {\n this.indexValue = event.target.dataset.index;\n this.wrapperTarget.classList.remove(\"hidden\");\n\n event.preventDefault();\n }\n\n hideGallery(event) {\n this.wrapperTarget.classList.add(\"hidden\");\n\n event.preventDefault();\n }\n\n next(event) {\n this.prevButtonTarget.disabled = false;\n this.indexValue += 1;\n\n if (this.indexValue >= this.imagesValue - 1)\n this.nextButtonTarget.disabled = true;\n\n event.preventDefault();\n }\n\n previous(event) {\n this.nextButtonTarget.disabled = false;\n this.indexValue -= 1;\n\n if (this.indexValue === 0) this.prevButtonTarget.disabled = true;\n\n event.preventDefault();\n }\n}\n","import { Controller } from \"@hotwired/stimulus\";\nimport { update as updatePosition } from \"frontoffice/services/bookingResourceSkusService\";\n\nexport default class extends Controller {\n static targets = [\"alert\"];\n\n static values = {\n personTransferParticipants: Array,\n groupedTransferIds: Object,\n };\n\n checkParticipants(event) {\n if (event.detail.resourceSkuHandle.startsWith(\"transfer-person\")) {\n if (this.personTransferParticipantsValue.includes(event.detail.name)) {\n this.alertTarget.classList.remove(\"hidden\");\n } else {\n this.alertTarget.classList.add(\"hidden\");\n }\n this.personTransferParticipantsValue = [\n ...this.personTransferParticipantsValue,\n event.detail.name,\n ];\n }\n }\n\n closeAlert(event) {\n this.alertTarget.classList.add(\"hidden\");\n\n event.preventDefault();\n }\n\n removeParticipant(event) {\n if (event.detail.resourceSkuHandle.startsWith(\"transfer-person\")) {\n const index = this.personTransferParticipantsValue.indexOf(\n event.detail.name\n );\n const arr = this.personTransferParticipantsValue;\n\n if (index !== -1) arr.splice(index, 1);\n\n this.personTransferParticipantsValue = arr;\n }\n }\n\n handleParticipantAssignment(event) {\n const onwardTransferId = event.detail.bookingResourceSkuId;\n const { selectedParticipantsIds } = event.detail;\n\n const returnTransferId = this.groupedTransferIdsValue[onwardTransferId];\n if (!returnTransferId) {\n // if transfer id does not exit, it means its for return transfer\n // event for return transfer is raised by this controller only, so no need to handle it\n return;\n }\n\n const success = () => {\n // raise the event so that final_submit_controller can handle and update its internal data\n this.element.dispatchEvent(\n new CustomEvent(\"selectedParticipantsIds\", {\n detail: {\n bookingResourceSkuId: returnTransferId,\n selectedParticipantsIds,\n },\n bubbles: true,\n })\n );\n };\n const error = () => {};\n\n const data = {\n booking_resource_sku: {\n participant_ids: selectedParticipantsIds,\n },\n };\n\n updatePosition({\n id: returnTransferId,\n data,\n success,\n error,\n });\n }\n}\n","import { Controller } from \"@hotwired/stimulus\";\n\nexport default class extends Controller {\n static targets = [\"alert\"];\n\n static values = {\n participants: Array,\n };\n\n checkParticipants(event) {\n if (this.participantsValue.includes(event.detail.name)) {\n this.alertTarget.classList.remove(\"hidden\");\n } else {\n this.alertTarget.classList.add(\"hidden\");\n }\n this.participantsValue = [...this.participantsValue, event.detail.name];\n }\n\n closeAlert(event) {\n this.alertTarget.classList.add(\"hidden\");\n\n event.preventDefault();\n }\n\n removeParticipant(event) {\n const index = this.participantsValue.indexOf(event.detail.name);\n const arr = this.participantsValue;\n\n if (index !== -1) arr.splice(index, 1);\n\n this.participantsValue = arr;\n }\n}\n","import { Controller } from \"@hotwired/stimulus\";\n\nexport default class extends Controller {\n static targets = [\n \"hideMobileNav\",\n \"mobileNav\",\n \"showMobileNav\",\n \"mobileNavBackground\",\n ];\n\n hideMobileNav(event) {\n event.preventDefault();\n\n if (\n this.mobileNavTarget &&\n this.mobileNavBackgroundTarget &&\n this.hideMobileNavTarget\n ) {\n this.mobileNavTarget.classList.remove(\"translate-x-0\");\n this.mobileNavTarget.classList.add(\"-translate-x-full\");\n\n this.hideMobileNavTarget.classList.remove(\"opacity-100\");\n this.hideMobileNavTarget.classList.add(\"opacity-0\");\n\n this.mobileNavBackgroundTarget.classList.remove(\"opacity-100\");\n this.mobileNavBackgroundTarget.classList.add(\"opacity-0\");\n\n setTimeout(() => {\n this.mobileNavTarget.parentElement.classList.add(\"hidden\");\n }, 300);\n }\n }\n\n showMobileNav(event) {\n event.preventDefault();\n\n if (\n this.mobileNavTarget &&\n this.mobileNavBackgroundTarget &&\n this.hideMobileNavTarget\n ) {\n this.mobileNavTarget.parentElement.classList.remove(\"hidden\");\n\n setTimeout(() => {\n this.mobileNavTarget.classList.remove(\"-translate-x-full\");\n this.mobileNavTarget.classList.add(\"translate-x-0\");\n\n this.hideMobileNavTarget.classList.remove(\"opacity-0\");\n this.hideMobileNavTarget.classList.add(\"opacity-100\");\n\n this.mobileNavBackgroundTarget.classList.remove(\"opacity-0\");\n this.mobileNavBackgroundTarget.classList.add(\"opacity-100\");\n }, 100);\n }\n }\n}\n","import { Controller } from \"@hotwired/stimulus\";\n\nexport default class extends Controller {\n static targets = [\n \"galleryTop\",\n \"galleryThumbs\",\n \"thumbnail\",\n \"nextButton\",\n \"prevButton\",\n ];\n\n static values = {\n index: Number,\n images: Number,\n };\n\n connect() {\n if (window.screen.width >= 768) {\n this.visibleImages = 3;\n this.thumbsPositionMax = this.imagesValue - 3;\n this.topGalleryWidth = 360;\n this.thumbsGalleryWidth = 124;\n } else {\n this.visibleImages = 2;\n this.thumbsPositionMax = this.imagesValue - 2;\n this.topGalleryWidth = 288;\n this.thumbsGalleryWidth = 144;\n }\n\n if (this.imagesValue > 1) {\n if (this.indexValue === 0) {\n this.prevButtonTarget.disabled = true;\n this.nextButtonTarget.disabled = false;\n } else if (this.indexValue >= this.imagesValue - 1) {\n this.nextButtonTarget.disabled = true;\n this.prevButtonTarget.disabled = false;\n }\n\n this.highlightCurrentThumb();\n }\n }\n\n indexValueChanged() {\n this.galleryTopTarget.style = `--tw-translate-x: -${\n this.indexValue * this.topGalleryWidth\n }px;`;\n\n if (this.imagesValue > this.visibleImages) this.adjustThumbsGallery();\n\n if (this.imagesValue > 1) this.highlightCurrentThumb();\n }\n\n adjustThumbsGallery() {\n if (this.indexValue === 0) {\n this.galleryThumbsTarget.style = `--tw-translate-x: 0px;`;\n } else if (this.indexValue > this.thumbsPositionMax) {\n this.galleryThumbsTarget.style = `--tw-translate-x: -${\n this.thumbsPositionMax * this.thumbsGalleryWidth\n }px;`;\n } else if (this.indexValue > 0) {\n if (window.screen.width >= 768) {\n this.galleryThumbsTarget.style = `--tw-translate-x: -${\n (this.indexValue - 1) * this.thumbsGalleryWidth\n }px;`;\n } else {\n this.galleryThumbsTarget.style = `--tw-translate-x: -${\n (this.indexValue - 0.5) * this.thumbsGalleryWidth\n }px;`;\n }\n }\n }\n\n highlightCurrentThumb() {\n this.thumbnailTargets.forEach((thumb) => {\n if (Number(thumb.dataset.index) === this.indexValue) {\n thumb.classList.remove(\"opacity-50\");\n } else {\n thumb.classList.add(\"opacity-50\");\n }\n });\n }\n\n next(event) {\n this.prevButtonTarget.disabled = false;\n this.indexValue += 1;\n\n if (this.indexValue >= this.imagesValue - 1)\n this.nextButtonTarget.disabled = true;\n\n event.preventDefault();\n }\n\n previous(event) {\n this.nextButtonTarget.disabled = false;\n this.indexValue -= 1;\n\n if (this.indexValue === 0) this.prevButtonTarget.disabled = true;\n\n event.preventDefault();\n }\n\n showImage(event) {\n if (this.imagesValue > 1) {\n this.indexValue = event.target.dataset.index;\n\n if (this.indexValue === 0) {\n this.prevButtonTarget.disabled = true;\n this.nextButtonTarget.disabled = false;\n } else if (this.indexValue < this.imagesValue - 1) {\n this.prevButtonTarget.disabled = false;\n this.nextButtonTarget.disabled = false;\n } else if (this.indexValue >= this.imagesValue - 1) {\n this.prevButtonTarget.disabled = false;\n this.nextButtonTarget.disabled = true;\n }\n }\n }\n\n resizeGallery() {\n this.connect();\n\n this.galleryTopTarget.style = `--tw-translate-x: -${\n this.indexValue * this.topGalleryWidth\n }px;`;\n\n if (this.imagesValue > this.visibleImages) this.adjustThumbsGallery();\n }\n}\n","import { Controller } from \"@hotwired/stimulus\";\n\nexport default class extends Controller {\n static targets = [\n \"firstName\",\n \"lastName\",\n \"email\",\n \"birthdate\",\n \"participantType\",\n \"gender\",\n \"input\",\n \"id\",\n ];\n\n static values = {\n validationMessage: String,\n };\n\n connect() {\n if (this.hasInputTarget) {\n this.inputTarget.value = \"\";\n this.inputTarget.setCustomValidity(this.validationMessageValue);\n }\n }\n\n handleChange() {\n this.fetchCustomer(this.idTarget.value);\n }\n\n handleResponse(data) {\n this.firstNameTarget.value = data.attributes.first_name;\n this.lastNameTarget.value = data.attributes.last_name;\n this.emailTarget.value = data.attributes.email;\n this.birthdateTarget.value = data.attributes.birthdate;\n this.participantTypeTarget.value = data.attributes.participant_type;\n this.genderTarget.value = data.attributes.gender;\n }\n\n fetchCustomer(id) {\n fetch(`/api/customers/${id}.json`, {\n method: \"GET\",\n headers: {\n ContentType: \"application/json\",\n Accept: \"application/json\",\n },\n })\n .then((response) => response.json())\n .then((results) => this.handleResponse(results.data))\n .catch((error) => {\n window.Honeybadger.notify(\"Cannot fetch customer\", error);\n });\n }\n\n showCustomer() {\n window.location = `/customers/${this.idTarget.value}`;\n }\n\n inputInvalid() {\n if (this.inputTarget)\n this.inputTarget.setCustomValidity(this.validationMessageValue);\n }\n\n inputValid() {\n if (this.inputTarget) this.inputTarget.setCustomValidity(\"\");\n }\n}\n","import { Controller } from \"@hotwired/stimulus\";\n\nexport default class extends Controller {\n static targets = [\"modal\"];\n\n showDetails(event) {\n event.preventDefault();\n\n this.modalTarget.style.display = \"block\";\n }\n\n hideDetails(event) {\n event.preventDefault();\n\n this.modalTarget.style.display = \"none\";\n }\n}\n","import ModalController from \"./modal_controller\";\n\nexport default class extends ModalController {\n static targets = [\"message\"];\n\n static values = {\n message: String,\n };\n\n initialize() {\n super.initialize();\n this.contextData = {};\n }\n\n showModal(event) {\n const { draggedData, targetData } = event.detail;\n this.contextData = { draggedData, targetData };\n\n this.messageTarget.textContent = this.messageValue.replace(\n \"%{resource_type}\",\n draggedData.resourceType\n );\n\n this.openModal();\n }\n\n dispatchSuccess(option) {\n const customEvent = new CustomEvent(\n \"pickup-dropoff-modal:pickupDropoffSelected\",\n {\n detail: {\n option,\n contextData: this.contextData,\n },\n bubbles: true,\n }\n );\n\n this.element.dispatchEvent(customEvent);\n }\n\n selectOption(event) {\n event.preventDefault();\n const { option } = event.currentTarget.dataset;\n\n this.closeModal(event);\n this.dispatchSuccess(option);\n }\n\n hide(event) {\n this.closeModal(event);\n }\n}\n","import { Controller } from \"@hotwired/stimulus\";\n\nexport default class PnrParserController extends Controller {\n static targets = [\"container\", \"template\", \"flightItem\"];\n\n static sortByDateAndTime(firstFlight, secondFlight) {\n return new Date(firstFlight.takeoffAt) - new Date(secondFlight.takeoffAt);\n }\n\n static updateFlightItem(flightForm, flightData) {\n const airlineCodeInput = flightForm.querySelector(\n 'input[id$=\"airline_code\"]'\n );\n const flightNumberInput = flightForm.querySelector(\n 'input[id$=\"flight_number\"]'\n );\n const arrivalAtInput = flightForm.querySelector('input[id$=\"arrival_at\"]');\n const arrivalAirportInput = flightForm.querySelector(\n 'input[id$=\"arrival_airport\"]'\n );\n const departureAtInput = flightForm.querySelector(\n 'input[id$=\"departure_at\"]'\n );\n const departureAirportInput = flightForm.querySelector(\n 'input[id$=\"departure_airport\"]'\n );\n\n if (airlineCodeInput)\n airlineCodeInput.value = flightData.airlineCode.trim();\n if (flightNumberInput)\n flightNumberInput.value = flightData.flightNumber.trim();\n if (arrivalAtInput) arrivalAtInput.value = flightData.landingAt;\n if (arrivalAirportInput)\n arrivalAirportInput.value = flightData.landingAirportCode.trim();\n if (departureAtInput) departureAtInput.value = flightData.takeoffAt;\n if (departureAirportInput)\n departureAirportInput.value = flightData.takeoffAirportCode.trim();\n\n return true;\n }\n\n connect() {\n this.index = this.flightItemTargets.length;\n }\n\n prepareNode() {\n this.node = this.containerTarget.insertBefore(\n this.templateTarget.content.firstElementChild.cloneNode(true),\n null\n );\n\n this.index = this.flightItemTargets.length - 1;\n this.regex = \"FLIGHT_ID\";\n\n this.updateNode();\n\n return this.node;\n }\n\n updateNode() {\n Array.from(this.node.querySelectorAll(\"label, select, input\")).forEach(\n (element) => {\n const el = element;\n\n if (el.tagName === \"LABEL\") {\n const newVal = el.getAttribute(\"for\").replace(this.regex, this.index);\n el.setAttribute(\"for\", newVal);\n } else {\n el.id = el.id.replace(this.regex, this.index);\n el.name = el.name.replace(this.regex, this.index);\n }\n }\n );\n\n this.node.firstElementChild.textContent = `${this.index + 1}. ${\n this.node.firstElementChild.textContent\n }`;\n }\n\n updateFlights(flights) {\n flights.forEach((flight) => {\n const newNode = this.prepareNode();\n\n PnrParserController.updateFlightItem(newNode, flight);\n });\n }\n\n static parseBistro(match) {\n const takeoffAtDateAndTime = match[3].split(\" \");\n const takeoffAtDate = takeoffAtDateAndTime[0];\n const takeoffAtTime = takeoffAtDateAndTime[1];\n\n const takeoffAtYear = takeoffAtDate.split(\".\")[2];\n const takeoffAtMonth = `0${takeoffAtDate.split(\".\")[1]}`.slice(-2);\n const takeoffAtDay = `0${takeoffAtDate.split(\".\")[0]}`.slice(-2);\n\n const landingAtDateAndTime = match[5].split(\" \");\n const landingAtDate = landingAtDateAndTime[0];\n const landingAtTime = landingAtDateAndTime[1];\n\n const landingAtYear = landingAtDate.split(\".\")[2];\n const landingAtMonth = `0${landingAtDate.split(\".\")[1]}`.slice(-2);\n const landingAtDay = `0${landingAtDate.split(\".\")[0]}`.slice(-2);\n\n const bistroData = {\n airlineCode: match[1],\n flightNumber: match[2],\n takeoffAt: `${takeoffAtYear}-${takeoffAtMonth}-${takeoffAtDay}T${takeoffAtTime}`,\n takeoffAirportCode: match[4],\n landingAt: `${landingAtYear}-${landingAtMonth}-${landingAtDay}T${landingAtTime}`,\n landingAirportCode: match[6],\n };\n\n return bistroData;\n }\n\n static parseAmadeus(match) {\n const carrier = match[1];\n const flightNumber = match[2];\n const dayOffsetOperator = match[6].slice(4, 5);\n const offsetDays = Number(match[6].slice(5));\n const now = new Date();\n\n const departureDate = new Date(\n `${match[3].substr(0, 2)} ${match[3].substr(2)} ${now.getFullYear()}`\n );\n\n if (departureDate < now) {\n departureDate.setFullYear(departureDate.getFullYear() + 1);\n }\n\n const arrivalDate = new Date(departureDate);\n\n if (dayOffsetOperator === \"+\" && !Number.isNaN(offsetDays)) {\n arrivalDate.setDate(departureDate.getDate() + offsetDays);\n }\n\n if (dayOffsetOperator === \"-\" && !Number.isNaN(offsetDays)) {\n arrivalDate.setDate(departureDate.getDate() - offsetDays);\n }\n\n const takeoffAtYear = departureDate.getFullYear();\n const takeoffAtMonth = `0${departureDate.getMonth() + 1}`.slice(-2);\n const takeoffAtDay = `0${departureDate.getDate()}`.slice(-2);\n const takeoffAtHour = match[5].slice(0, 2);\n const takeoffAtMinute = match[5].slice(2, 4);\n\n const landingAtYear = arrivalDate.getFullYear();\n const landingAtMonth = `0${arrivalDate.getMonth() + 1}`.slice(-2);\n const landingAtDay = `0${arrivalDate.getDate()}`.slice(-2);\n const landingAtHour = match[6].slice(0, 2);\n const landingAtMinute = match[6].slice(2, 4);\n\n const takeoffAt = `${takeoffAtYear}-${takeoffAtMonth}-${takeoffAtDay}T${takeoffAtHour}:${takeoffAtMinute}`;\n const landingAt = `${landingAtYear}-${landingAtMonth}-${landingAtDay}T${landingAtHour}:${landingAtMinute}`;\n\n const amadeusData = {\n airlineCode: carrier,\n flightNumber: flightNumber.replace(/\\s/g, \"0\"),\n takeoffAt,\n takeoffAirportCode: match[4].slice(0, 3),\n landingAt,\n landingAirportCode: match[4].slice(3),\n };\n\n return amadeusData;\n }\n\n static parseManual(match) {\n const airlineCode = match[1];\n const flightNumber = match[2];\n const takeoffAirportCode = match[3];\n const landingAirportCode = match[4];\n const dayOffsetOperator = match[8];\n const offsetDays = Number(match[9]);\n\n const takeoffAtYear = match[5].slice(4);\n const takeoffAtMonth = `0${Number(match[5].slice(2, 4))}`.slice(-2);\n const takeoffAtDay = `0${Number(match[5].slice(0, 2))}`.slice(-2);\n const takeoffAtHour = match[6].slice(0, 2);\n const takeoffAtMinute = match[6].slice(2, 4);\n\n let landingAtDay = Number(match[5].slice(0, 2));\n\n if (dayOffsetOperator === \"+\" && !Number.isNaN(offsetDays)) {\n landingAtDay += offsetDays;\n }\n\n if (dayOffsetOperator === \"-\" && !Number.isNaN(offsetDays)) {\n landingAtDay -= offsetDays;\n }\n\n const landingAtYear = match[5].slice(4);\n const landingAtMonth = `0${Number(match[5].slice(2, 4))}`.slice(-2);\n landingAtDay = `0${landingAtDay}`.slice(-2);\n const landingAtHour = match[7].slice(0, 2);\n const landingAtMinute = match[7].slice(2, 4);\n\n const takeoffAt = `${takeoffAtYear}-${takeoffAtMonth}-${takeoffAtDay}T${takeoffAtHour}:${takeoffAtMinute}`;\n const landingAt = `${landingAtYear}-${landingAtMonth}-${landingAtDay}T${landingAtHour}:${landingAtMinute}`;\n\n const manualData = {\n airlineCode,\n flightNumber,\n takeoffAt,\n takeoffAirportCode,\n landingAt,\n landingAirportCode,\n };\n\n return manualData;\n }\n\n static parsePNR(pnr) {\n const bistroRegex =\n /(\\S{2,3})\\s(\\S{3,4})\\s(\\d{1,2}\\.\\d{1,2}\\.\\d{4}\\s\\d{1,2}:\\d{2})\\s(\\w{3})\\s{1,2}(\\d{1,2}\\.\\d{1,2}\\.\\d{4}\\s\\d{1,2}:\\d{2})\\s(\\w{3})\\s(.*)$/gm;\n const amadeusRegex =\n /^\\s{0,2}\\d{1,2}\\s{1,2}(\\w{2}\\D{0,1})\\s?(\\w{3,4}).{3}(\\d{2}\\w{3}).{3}(\\w{6}).*(\\d{4})\\s(\\d{4}(?:\\s{1,2}|[+-]\\d)).*$/gm;\n const manualRegex =\n /^(\\w{2}\\D{0,1})(\\d{3,4})\\s([A-Z]{3})\\s([A-Z]{3})\\s(\\d{8})\\s(\\d{4})\\s(\\d{4})([+-]?)(\\d?)$/gm;\n\n const parsedFlights = [];\n\n const pastedString = pnr.toUpperCase();\n\n const bistroMatches = [...pastedString.matchAll(bistroRegex)];\n const amadeusMatches = [...pastedString.matchAll(amadeusRegex)];\n const manualMatches = [...pastedString.matchAll(manualRegex)];\n\n if (bistroMatches.length >= 1) {\n bistroMatches.forEach((match) =>\n parsedFlights.push(PnrParserController.parseBistro(match))\n );\n }\n\n if (amadeusMatches.length >= 1) {\n amadeusMatches.forEach((match) =>\n parsedFlights.push(PnrParserController.parseAmadeus(match))\n );\n }\n\n if (manualMatches.length >= 1) {\n manualMatches.forEach((match) =>\n parsedFlights.push(PnrParserController.parseManual(match))\n );\n }\n\n return parsedFlights.sort(PnrParserController.sortByDateAndTime);\n }\n\n scrollToNewFlight() {\n this.containerTarget.lastElementChild.scrollIntoView();\n }\n\n addFlights(event) {\n const pastedString = event.target.value;\n const parsedFlights = PnrParserController.parsePNR(pastedString);\n\n this.updateFlights(parsedFlights);\n\n this.scrollToNewFlight();\n }\n\n addFlight(event) {\n const newNode = this.prepareNode();\n\n PnrParserController.updateFlightItem(newNode, event.detail);\n\n this.scrollToNewFlight();\n }\n}\n","import { Controller } from \"@hotwired/stimulus\";\n\nexport default class extends Controller {\n static values = {\n invoiceScrambledId: String,\n invoicePdfAvailable: Boolean,\n invoiceWebAvailable: Boolean,\n };\n\n connect() {\n if (!this.invoicePdfAvailableValue && !this.invoiceWebAvailableValue) {\n this.pollBookingInvoiceStatus(0);\n }\n }\n\n pollBookingInvoiceStatus(iteration) {\n if (iteration < 24) {\n fetch(`../../invoices/${this.invoiceScrambledIdValue}/poll_status`)\n .then((response) => response.json())\n .then((data) => {\n if (data.invoice_pdf_available === true) {\n window.location.href = \"./success\";\n } else {\n setTimeout(\n () => this.pollBookingInvoiceStatus(iteration + 1),\n 5000\n );\n }\n });\n } else {\n window.location.href = \"./success?web_invoice_available=true\";\n }\n }\n}\n","import { Controller } from \"@hotwired/stimulus\";\n\nexport default class extends Controller {\n static values = {\n successUrl: String,\n };\n\n connect() {\n this.pollPaymentStatus(0);\n }\n\n pollPaymentStatus(iteration) {\n if (iteration < 40) {\n fetch(\"./poll_status\")\n .then((response) => response.json())\n .then((data) => {\n if (\n data.payment_status === \"paid\" ||\n data.payment_status === \"pending_sepa\"\n ) {\n window.location.href = this.successUrlValue;\n } else {\n setTimeout(() => this.pollPaymentStatus(iteration + 1), 5000);\n }\n });\n } else {\n window.location.href = \"./failed\";\n }\n }\n}\n","import { Controller } from \"@hotwired/stimulus\";\n\nexport default class extends Controller {\n static targets = [\"container\", \"template\", \"secondRefund\"];\n\n handlePartialPayment(event) {\n if (event.target.checked) {\n this.containerTarget.insertBefore(\n this.templateTarget.content.firstElementChild.cloneNode(true),\n null\n );\n } else {\n this.secondRefundTarget.remove();\n }\n\n event.preventDefault();\n }\n\n // add method to disable same selection in reference_payment select\n}\n","import { Controller } from \"@hotwired/stimulus\";\n\nexport default class RequestStepController extends Controller {\n static targets = [\"container\", \"template\", \"roomItem\"];\n\n removeRoom(event) {\n this.roomItem = event.target.closest(\"li\");\n\n this.roomItem.remove();\n\n this.roomItemTargets.forEach((room, index) => {\n RequestStepController.updateRoom(room, index, /\\d+/);\n });\n\n event.preventDefault();\n }\n\n addRoom(event) {\n const newNode = this.containerTarget.insertBefore(\n this.templateTarget.content.firstElementChild.cloneNode(true),\n null\n );\n\n const index = this.roomItemTargets.length - 1;\n\n RequestStepController.updateRoom(newNode, index, \"ROOM_ID\");\n\n event.preventDefault();\n }\n\n static updateRoom(targetNode, index, regex) {\n const node = targetNode;\n Array.from(node.querySelectorAll(\"label, select, input\")).forEach(\n (element) => {\n const el = element;\n\n if (el.tagName === \"LABEL\") {\n const newVal = el.getAttribute(\"for\").replace(regex, index);\n el.setAttribute(\"for\", newVal);\n } else {\n el.id = el.id.replace(regex, index);\n el.name = el.name.replace(regex, index);\n }\n }\n );\n\n const newTitle = node.firstElementChild.textContent.replace(\n /\\d+/,\n index + 1\n );\n node.firstElementChild.textContent = newTitle;\n }\n}\n","import { Controller } from \"@hotwired/stimulus\";\n\nexport default class extends Controller {\n static targets = [\"overflow\"];\n\n showLoadingState() {\n this.overflowTarget.classList.remove(\"hidden\");\n }\n}\n","import { Controller } from \"@hotwired/stimulus\";\n\nexport default class extends Controller {\n static values = {\n behavior: { type: String, default: \"smooth\" },\n container: { type: String, default: \"\" },\n };\n\n scrollToSection(event) {\n event.preventDefault();\n\n const targetKey = event.target.dataset.scrollTarget;\n if (!targetKey) return;\n\n const container = this.containerValue\n ? document.querySelector(this.containerValue)\n : this.element.parentElement;\n\n if (!container) {\n return;\n }\n\n const section = container.querySelector(`[data-scroll-key=\"${targetKey}\"]`);\n if (section) {\n section.scrollIntoView({ behavior: this.behaviorValue });\n }\n }\n}\n","import { Controller } from \"@hotwired/stimulus\";\n\nexport default class extends Controller {\n static targets = [\"input\", \"url\"];\n\n loadResult() {\n window.location = `${this.urlTarget.value}`;\n }\n}\n","import { Controller } from \"@hotwired/stimulus\";\n\nexport default class extends Controller {\n static targets = [\"editSecondaryState\", \"selectField\"];\n\n editState(event) {\n this.editSecondaryStateTarget.classList.add(\"hidden\");\n this.selectFieldTarget.classList.remove(\"hidden\");\n\n event.preventDefault();\n }\n\n saveState() {\n setTimeout(() => {\n this.selectFieldTarget.classList.add(\"hidden\");\n this.editSecondaryStateTarget.classList.remove(\"hidden\");\n }, 500);\n }\n\n closeSelect(event) {\n this.editSecondaryStateTarget.classList.remove(\"hidden\");\n this.selectFieldTarget.classList.add(\"hidden\");\n\n event.preventDefault();\n }\n}\n","import { Controller } from \"@hotwired/stimulus\";\n\nexport default class extends Controller {\n static targets = [\"checkbox\", \"selectAll\"];\n\n selectAll() {\n this.checkboxTargets.forEach((checkbox) => {\n const current = checkbox;\n current.checked = true;\n });\n }\n\n deselectAll() {\n this.checkboxTargets.forEach((checkbox) => {\n const current = checkbox;\n current.checked = false;\n });\n }\n\n handleChange(event) {\n if (event.target.checked) {\n this.selectAll();\n } else {\n this.deselectAll();\n }\n }\n\n checkboxChanged() {\n let allChecked = true;\n this.checkboxTargets.forEach((checkbox) => {\n if (checkbox.checked === false) allChecked = false;\n });\n this.selectAllTarget.checked = allChecked;\n }\n}\n","import { Controller } from \"@hotwired/stimulus\";\n\nexport default class extends Controller {\n static targets = [\"checkmark\"];\n\n static values = {\n bookingResourceSkuId: Number,\n resourceSkuHandle: String,\n participantId: Number,\n participantName: String,\n };\n\n toggle() {\n this.sendParticipant();\n this.checkmarkTarget.classList.toggle(\"hidden\");\n }\n\n sendParticipant() {\n this.element.dispatchEvent(\n new CustomEvent(\"participantToggled\", {\n detail: {\n id: this.participantIdValue,\n name: this.participantNameValue,\n bookingResourceSkuId: this.bookingResourceSkuIdValue,\n resourceSkuHandle: this.resourceSkuHandleValue,\n },\n bubbles: true,\n })\n );\n }\n}\n","import { Controller } from \"@hotwired/stimulus\";\nimport { update as updatePosition } from \"frontoffice/services/bookingResourceSkusService\";\n\nexport default class extends Controller {\n static targets = [\n \"participantSelectField\",\n \"participantsList\",\n \"dst\",\n \"button\",\n \"background\",\n \"errorMessage\",\n \"placeholder\",\n \"checkmark\",\n ];\n\n static values = {\n bookingResourceSkuId: Number,\n bookingResourceSkuQuantity: Number,\n selectedParticipantsIds: Array,\n empty: String,\n invalid: String,\n skipQuantityCheck: Boolean,\n };\n\n static classes = [\"active\", \"inactive\", \"valid\", \"invalid\"];\n\n connect() {\n this.currentParticipantName = null;\n this.currentParticipant = null;\n\n this.nameList =\n this.dstTarget.innerText.length === 0\n ? []\n : this.dstTarget.innerText.split(\", \");\n }\n\n toggleParticipantsList() {\n if (this.buttonTarget.getAttribute(\"aria-expanded\") === \"false\") {\n this.backgroundTarget.classList.remove(\"hidden\");\n this.participantsListTarget.classList.remove(...this.inactiveClasses);\n this.participantsListTarget.classList.add(...this.activeClasses);\n this.buttonTarget.setAttribute(\"aria-expanded\", \"true\");\n } else {\n this.hideParticipantsList();\n }\n }\n\n hideParticipantsList(event) {\n if (\n event &&\n (this.buttonTarget.contains(event.target) ||\n this.participantsListTarget.contains(event.target))\n )\n return;\n\n if (this.buttonTarget.getAttribute(\"aria-expanded\") === \"true\") {\n this.participantsListTarget.classList.add(...this.inactiveClasses);\n this.participantsListTarget.classList.remove(...this.activeClasses);\n this.buttonTarget.setAttribute(\"aria-expanded\", \"false\");\n this.backgroundTarget.classList.add(\"hidden\");\n this.buttonTarget.blur();\n }\n }\n\n selectedParticipantsIdsValueChanged() {\n const id = this.bookingResourceSkuIdValue;\n const data = {\n booking_resource_sku: {\n participant_ids: this.selectedParticipantsIdsValue,\n },\n };\n\n const success = () => {\n this.sendSelectedParticipantIds();\n this.highlightParticipantSelectField();\n };\n\n const error = () => {};\n\n updatePosition({\n id,\n data,\n success,\n error,\n });\n }\n\n sendSelectedParticipantIds() {\n this.element.dispatchEvent(\n new CustomEvent(\"selectedParticipantsIds\", {\n detail: {\n bookingResourceSkuId: this.bookingResourceSkuIdValue,\n selectedParticipantsIds: this.selectedParticipantsIdsValue,\n },\n bubbles: true,\n })\n );\n }\n\n sendParticipant(id, name, bookingResourceSkuId, resourceSkuHandle) {\n this.element.dispatchEvent(\n new CustomEvent(\"participantAssigned\", {\n detail: {\n id,\n name,\n bookingResourceSkuId,\n resourceSkuHandle,\n },\n bubbles: true,\n })\n );\n }\n\n removeParticipant(id, name, bookingResourceSkuId, resourceSkuHandle) {\n this.element.dispatchEvent(\n new CustomEvent(\"participantRemoved\", {\n detail: {\n id,\n name,\n bookingResourceSkuId,\n resourceSkuHandle,\n },\n bubbles: true,\n })\n );\n }\n\n toggleParticipant(event) {\n const { id, name, bookingResourceSkuId, resourceSkuHandle } = event.detail;\n\n this.toggleParticipantId(id);\n\n if (this.nameList.includes(name)) {\n this.nameList = this.nameList.filter((el) => el !== name);\n this.removeParticipant(id, name, bookingResourceSkuId, resourceSkuHandle);\n } else if (this.bookingResourceSkuQuantityValue === 1) {\n this.removeParticipant(\n id,\n this.nameList[0],\n bookingResourceSkuId,\n resourceSkuHandle\n );\n this.nameList = [name];\n this.checkmarkTargets.forEach((checkmark) => {\n checkmark.classList.add(\"hidden\");\n });\n this.sendParticipant(id, name, bookingResourceSkuId, resourceSkuHandle);\n } else {\n this.nameList.push(name);\n this.sendParticipant(id, name, bookingResourceSkuId, resourceSkuHandle);\n }\n\n this.dstTarget.innerHTML = this.nameList.join(\", \");\n }\n\n toggleParticipantId(participantId) {\n if (this.selectedParticipantsIdsValue.includes(participantId)) {\n this.selectedParticipantsIdsValue =\n this.selectedParticipantsIdsValue.filter(\n (id) => Number(id) !== participantId\n );\n } else if (this.bookingResourceSkuQuantityValue === 1) {\n this.selectedParticipantsIdsValue = [participantId];\n } else {\n this.selectedParticipantsIdsValue = [\n ...this.selectedParticipantsIdsValue,\n participantId,\n ];\n }\n }\n\n updateParticipantSelectField(isValid) {\n if (isValid) {\n this.participantSelectFieldTarget.classList.remove(\n ...this.invalidClasses\n );\n this.participantSelectFieldTarget.classList.add(...this.validClasses);\n this.errorMessageTarget.classList.add(\"hidden\");\n this.placeholderTarget.innerHTML = this.nameList.join(\", \");\n this.placeholderTarget.title = this.nameList.join(\", \");\n } else {\n this.participantSelectFieldTarget.classList.remove(...this.validClasses);\n this.participantSelectFieldTarget.classList.add(...this.invalidClasses);\n this.errorMessageTarget.classList.remove(\"hidden\");\n\n if (this.selectedParticipantsIdsValue.length > 0) {\n this.placeholderTarget.innerHTML = this.invalidValue;\n this.placeholderTarget.title = this.invalidValue;\n } else {\n this.placeholderTarget.innerHTML = this.emptyValue;\n this.placeholderTarget.title = this.emptyValue;\n }\n }\n }\n\n highlightParticipantSelectField() {\n if (this.skipQuantityCheckValue) {\n this.updateParticipantSelectField(\n this.selectedParticipantsIdsValue.length > 0\n );\n } else {\n this.updateParticipantSelectField(\n this.bookingResourceSkuQuantityValue ===\n this.selectedParticipantsIdsValue.length\n );\n }\n }\n}\n","import { Controller } from \"@hotwired/stimulus\";\n\nexport default class extends Controller {\n static targets = [\"modal\", \"amountField\", \"paymentIdsField\", \"paymentButton\"];\n\n showCheckoutModal() {\n this.modalTarget.classList.remove(\"hidden\");\n }\n\n closeCheckoutModal() {\n this.modalTarget.classList.add(\"hidden\");\n }\n\n handleChange(event) {\n this.amount = event.target.dataset.amount;\n this.paymentIds = event.target.dataset.paymentIds.split(\",\");\n\n this.amountFieldTarget.value = this.amount;\n this.paymentIdsFieldTarget.value = this.paymentIds;\n\n this.paymentButtonTarget.disabled = false;\n }\n}\n","import { Controller } from \"@hotwired/stimulus\";\n\nexport default class extends Controller {\n static targets = [\"alphabetLinks\", \"listElements\", \"searchInput\"];\n\n groups = {};\n\n searchInputTimeout = null;\n\n handleSearchInput() {\n if (this.searchInputTimeout) {\n clearTimeout(this.searchInputTimeout);\n }\n\n this.searchInputTimeout = setTimeout(() => {\n this.updateElementVisibilityByQueryInput();\n }, 500);\n }\n\n updateElementVisibilityByQueryInput() {\n const query = this.searchInputTarget.value.toLowerCase();\n\n const checkboxes =\n this.listElementsTarget.querySelectorAll(\".sorted-checkbox\");\n\n checkboxes.forEach((checkbox) => {\n const labelElem = checkbox.querySelector(\"label\");\n const label = labelElem ? labelElem.innerText.toLowerCase() : \"\";\n\n const labelMatchesQuery = label.includes(query);\n checkbox.setAttribute(\n \"style\",\n `display: ${labelMatchesQuery ? \"\" : \"none\"};`\n );\n });\n\n Object.keys(this.groups).forEach((letter) => {\n const group = this.groups[letter];\n const matchingElements = group.elements || [];\n const groupContainsVisibleChildren = matchingElements.some(\n (x) => x.style.display !== \"none\"\n );\n\n group.domElement.style.display = groupContainsVisibleChildren\n ? \"\"\n : \"none\";\n });\n }\n}\n","import { Controller } from \"@hotwired/stimulus\";\n\nexport default class extends Controller {\n static targets = [\n \"list\",\n \"sortBy\",\n \"sortOrder\",\n \"show\",\n \"checkmark\",\n \"li\",\n \"dropdown\",\n ];\n\n toggle(event) {\n event.preventDefault();\n\n if (this.listTarget.getAttribute(\"aria-expanded\") === \"false\") {\n this.show();\n } else {\n this.hide();\n }\n }\n\n handleClick(event) {\n if (event.target.closest(\"div\") === this.dropdownTarget) {\n this.toggle(event);\n } else if (event.target !== this.showTarget) {\n this.hide();\n }\n }\n\n show() {\n this.listTarget.classList.remove(\"hidden\");\n this.listTarget.setAttribute(\"aria-expanded\", \"true\");\n }\n\n hide() {\n this.listTarget.classList.add(\"hidden\");\n this.listTarget.setAttribute(\"aria-expanded\", \"false\");\n }\n\n saveOption(event) {\n this.selectedLi = event.target.closest(\"li\");\n this.sortBy = this.selectedLi.dataset.sortBy;\n this.sortOrder = this.selectedLi.dataset.sortOrder;\n this.sortByTarget.value = this.sortBy;\n this.sortOrderTarget.value = this.sortOrder;\n this.showTarget.value = this.selectedLi.dataset.name;\n this.showTarget.innerHTML = this.selectedLi.dataset.label;\n this.liTargets.forEach((item) => item.classList.remove(\"font-semibold\"));\n this.selectedLi.classList.add(\"font-semibold\");\n\n [this.showCheckmark] = this.checkmarkTargets.filter(\n (item) => item.dataset.name === this.showTarget.value\n );\n this.showCheckmark.classList.remove(\"hidden\");\n\n this.hideCheckmarks = this.checkmarkTargets.filter(\n (item) => item.dataset.name !== this.showTarget.value\n );\n this.hideCheckmarks.forEach((item) => item.classList.add(\"hidden\"));\n\n this.listTarget.classList.add(\"hidden\");\n }\n}\n","import { Controller } from \"@hotwired/stimulus\";\n\nexport default class TabsController extends Controller {\n static targets = [\"tab\", \"panel\", \"dropdown\"];\n\n connect() {\n this.activeTabClasses = \"border-tourrise-blue text-tourrise-blue\".split(\n \" \"\n );\n this.inactiveTabClasses =\n \"border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300\".split(\n \" \"\n );\n if (TabsController.anchor) this.index = TabsController.anchor;\n this.showTab();\n }\n\n change(event) {\n event.preventDefault();\n\n if (event.currentTarget.id) {\n this.index = event.currentTarget.id;\n } else if (\n event.currentTarget.options &&\n event.currentTarget.selectedIndex !== \"undefined\"\n ) {\n this.index =\n event.currentTarget.options[event.currentTarget.selectedIndex].id;\n }\n }\n\n showTab() {\n this.tabTargets.forEach((tab) => {\n const panel = this.panelTargets.find(\n (panelTarget) => panelTarget.id === tab.id\n );\n const dropdownOption = this.dropdownTargets.find(\n (option) => option.id === tab.id\n );\n\n if (tab.id === this.index) {\n panel.classList.remove(\"hidden\");\n tab.classList.remove(...this.inactiveTabClasses);\n tab.classList.add(...this.activeTabClasses);\n\n dropdownOption.parentElement.selectedIndex =\n this.tabTargets.indexOf(tab);\n\n // Update URL with the tab ID if it has one\n // This will be automatically selected on page load\n if (tab.id) {\n window.location.hash = tab.id;\n }\n } else {\n panel.classList.add(\"hidden\");\n tab.classList.remove(...this.activeTabClasses);\n tab.classList.add(...this.inactiveTabClasses);\n }\n });\n }\n\n get index() {\n return this.data.get(\"index\") || this.tabTargets[0].id;\n }\n\n set index(value) {\n this.data.set(\"index\", value);\n this.showTab();\n }\n\n static get anchor() {\n return document.URL.split(\"#\").length > 1\n ? document.URL.split(\"#\")[1]\n : null;\n }\n}\n","import { Controller } from \"@hotwired/stimulus\";\n\nexport default class extends Controller {\n static targets = [\"tooltip\", \"triangle\"];\n\n connect() {\n this.top_classes = \"-translate-y-full -top-1.5\".split(\" \");\n this.bottom_classes = \"translate-y-full -bottom-1.5\".split(\" \");\n this.shift_right = [\"-left-0.5\"];\n this.shift_left = [\"-right-0.5\"];\n this.full_right = \"translate-x-full -right-1.5\".split(\" \");\n this.full_left = \"-translate-x-full -left-1.5\".split(\" \");\n this.center_x = \"-translate-x-1/2 left-1/2\".split(\" \");\n this.center_y = \"-translate-y-1/2 top-1/2\".split(\" \");\n\n this.triangle_up =\n \"rotate-0 -translate-x-1/2 left-1/2 -translate-y-1/2 -top-px\".split(\" \");\n this.triangle_down =\n \"rotate-180 -translate-x-1/2 left-1/2 translate-y-1/2 -bottom-px\".split(\n \" \"\n );\n this.triangle_right = \"rotate-90 translate-x-1/2 -right-px\".split(\" \");\n this.triangle_left = \"-rotate-90 -translate-x-1/2 -left-px\".split(\" \");\n\n this.positionTooltip();\n }\n\n clearClasses() {\n this.tooltipTarget.classList.remove(\n ...this.top_classes,\n ...this.bottom_classes,\n ...this.shift_right,\n ...this.shift_left,\n ...this.full_right,\n ...this.full_left,\n ...this.center_x,\n ...this.center_y\n );\n\n this.triangleTarget.classList.remove(\n ...this.triangle_up,\n ...this.triangle_down,\n ...this.triangle_right,\n ...this.triangle_left\n );\n }\n\n positionTooltip() {\n this.clearClasses();\n const elem = this.tooltipTarget.getBoundingClientRect();\n\n if (elem.top < elem.height) {\n this.tooltipTarget.classList.add(...this.bottom_classes);\n this.triangleTarget.classList.add(...this.triangle_down);\n if (elem.left + elem.width / 1.5 > window.innerWidth) {\n this.tooltipTarget.classList.add(...this.shift_left);\n } else if (elem.left < elem.width / 2) {\n this.tooltipTarget.classList.add(...this.shift_right);\n } else {\n this.tooltipTarget.classList.add(...this.center_x);\n }\n } else if (elem.bottom > window.innerHeight) {\n this.tooltipTarget.classList.add(...this.top_classes);\n this.triangleTarget.classList.add(...this.triangle_up);\n if (elem.left + elem.width / 1.5 > window.innerWidth) {\n this.tooltipTarget.classList.add(...this.shift_left);\n } else if (elem.left < elem.width / 2) {\n this.tooltipTarget.classList.add(...this.shift_right);\n } else {\n this.tooltipTarget.classList.add(...this.center_x);\n }\n } else if (elem.left + elem.width / 1.5 > window.innerWidth) {\n this.triangleTarget.classList.add(...this.triangle_left);\n this.tooltipTarget.classList.add(...this.full_left);\n } else if (elem.left < elem.width / 2) {\n this.triangleTarget.classList.add(...this.triangle_right);\n this.tooltipTarget.classList.add(...this.full_right);\n } else {\n this.tooltipTarget.classList.add(...this.top_classes);\n this.triangleTarget.classList.add(...this.triangle_up);\n this.tooltipTarget.classList.add(...this.center_x);\n }\n }\n}\n","import { Controller } from \"@hotwired/stimulus\";\nimport axios from \"axios\";\n\nexport default class TransferAutocomplete extends Controller {\n static targets = [\n \"flights\",\n \"dropoffTemplate\",\n \"pickupTemplate\",\n \"transferOption\",\n \"dropoff\",\n \"pickup\",\n ];\n\n handleChange(event) {\n this.flightsTarget.innerHTML = \"\";\n this.updateFlight(event.target.value, this.flightsTarget);\n }\n\n static getTwoDigits(value) {\n return value < 10 ? `0${value}` : value;\n }\n\n static formatDate(date) {\n const day = TransferAutocomplete.getTwoDigits(date.getDate());\n const month = TransferAutocomplete.getTwoDigits(date.getMonth() + 1); // add 1 since getMonth returns 0-11 for the months\n const year = date.getFullYear();\n\n return `${year}-${month}-${day}`;\n }\n\n static formatTime(date) {\n const hours = TransferAutocomplete.getTwoDigits(date.getUTCHours());\n const mins = TransferAutocomplete.getTwoDigits(date.getUTCMinutes());\n\n return `${hours}:${mins}`;\n }\n\n static updateTransferFields(attributes) {\n const startsOnInput = document.querySelector(\".js-InputElement--starts_on\");\n const startTimeInput = document.querySelector(\n \".js-InputElement--start_time\"\n );\n const pickupLocation = document.querySelector(\n \".js-InputElement--pickup_location\"\n );\n const dropoffLocation = document.querySelector(\n \".js-InputElement--dropoff_location\"\n );\n const reference = document.querySelector(\".js-InputElement--reference\");\n\n startsOnInput.value = attributes.startson;\n startTimeInput.value = attributes.starttime;\n pickupLocation.value = attributes.pickuplocation || \"\";\n dropoffLocation.value = attributes.dropofflocation || \"\";\n reference.value = attributes.reference;\n }\n\n static arrivalAsOption(attributes) {\n const arrivalAt = new Date(attributes.arrival_at);\n\n return {\n reference: attributes.display_flight,\n pickupLocation: attributes.arrival_airport,\n dropoffLocation: \"\",\n startTime: TransferAutocomplete.formatTime(arrivalAt),\n startsOn: TransferAutocomplete.formatDate(arrivalAt),\n };\n }\n\n static departureAsOption(attributes) {\n const departureAt = new Date(attributes.departure_at);\n\n return {\n reference: attributes.display_flight,\n pickupLocation: \"\",\n dropoffLocation: attributes.departure_airport,\n startTime: TransferAutocomplete.formatTime(departureAt),\n startsOn: TransferAutocomplete.formatDate(departureAt),\n };\n }\n\n handleClick(event) {\n if (event.target.parentElement.parentElement === this.dropoffTarget) {\n TransferAutocomplete.updateTransferFields({\n ...this.dropoffTarget.dataset,\n });\n } else if (event.target.parentElement.parentElement === this.pickupTarget) {\n TransferAutocomplete.updateTransferFields({\n ...this.pickupTarget.dataset,\n });\n }\n }\n\n renderOption(option) {\n const element = document.createElement(\"div\");\n let templateTarget;\n if (option.dropoffLocation === \"\") {\n element.setAttribute(`data-transfer-autocomplete-target`, \"pickup\");\n templateTarget = this.pickupTemplateTarget;\n } else {\n element.setAttribute(`data-transfer-autocomplete-target`, \"dropoff\");\n templateTarget = this.dropoffTemplateTarget;\n }\n\n Object.keys(option).forEach((key) => {\n element.setAttribute(`data-${key}`, option[key]);\n });\n\n const newNode = templateTarget.content.firstElementChild.cloneNode(true);\n element.appendChild(newNode);\n\n Object.keys(option).forEach((key) => {\n const span = element.querySelector(`.js-Transfer-${key}`);\n\n if (option[key].length > 1) {\n span.innerHTML += option[key];\n } else {\n span.remove();\n }\n });\n\n return element;\n }\n\n renderOptions(attributes) {\n const options = [\n TransferAutocomplete.departureAsOption(attributes),\n TransferAutocomplete.arrivalAsOption(attributes),\n ];\n\n return options.map((option) => this.renderOption(option));\n }\n\n async updateFlight(id, flightsEl) {\n try {\n const response = await axios.get(`/api/flights/${id}`);\n const json = await response.data;\n const { attributes } = json.data;\n this.renderOptions(attributes).forEach((option) =>\n flightsEl.appendChild(option)\n );\n } catch (err) {\n Honeybadger.notify(`Error to fetch the ${id} flight`, err);\n }\n }\n}\n","import { Controller } from \"@hotwired/stimulus\";\n\nexport default class extends Controller {\n static values = {\n identifier: String,\n hideAfter: { type: Number, default: 0 },\n };\n\n show(event) {\n if (event.detail.identifier !== this.identifierValue) return;\n const targetFrame = event.detail.targetElement.closest(\"turbo-frame\");\n if (!targetFrame) return;\n\n // Set position relative on the frame\n targetFrame.style.position = \"relative\";\n\n // Clone from template\n const fragment = this.element.content.cloneNode(true);\n const overlay = fragment.querySelector(\"div\");\n\n // Add the cloned overlay to the frame\n targetFrame.appendChild(overlay);\n\n // autohide if requested at the time of configuration\n if (this.hideAfterValue > 0) {\n setTimeout(() => {\n // NOTE: This violate DRY, ideally we should call this.hide, or raise event, but that doesn't work\n this.constructor.removeOverlay(overlay, targetFrame);\n }, this.hideAfterValue);\n }\n }\n\n /* eslint-disable-next-line class-methods-use-this */\n hide(event) {\n if (event.detail.identifier !== this.identifierValue) return;\n\n const targetFrame = event.detail.targetElement.closest(\"turbo-frame\");\n if (!targetFrame) return;\n\n const overlay = targetFrame.querySelector(\".absolute\");\n if (overlay) {\n this.constructor.removeOverlay(overlay, targetFrame);\n }\n }\n\n static removeOverlay(overlay, targetFrame) {\n /* eslint-disable-next-line no-param-reassign */\n targetFrame.style.position = \"\";\n overlay.remove();\n }\n}\n","import { Controller } from \"@hotwired/stimulus\";\n\nexport default class extends Controller {\n static targets = [\"flightItem\", \"form\", \"modal\", \"submitButton\"];\n\n validate(event) {\n event.preventDefault();\n this.submitButtonTarget.setAttribute(\"disabled\", \"true\");\n let valid = true;\n\n this.flightItemTargets.forEach((flightItem) => {\n const departureAt = new Date(\n flightItem.querySelector(\"[data-target='departureAt']\").value\n );\n const arrivalAt = new Date(\n flightItem.querySelector(\"[data-target='arrivalAt']\").value\n );\n\n if (arrivalAt < departureAt) {\n valid = false;\n }\n });\n\n if (!valid) {\n this.showModal();\n } else {\n this.formTarget.submit();\n }\n setTimeout(() => this.submitButtonTarget.removeAttribute(\"disabled\"), 2000);\n }\n\n showModal() {\n this.modalTarget.style.display = \"block\";\n }\n\n confirm() {\n this.modalTarget.style.display = \"none\";\n this.formTarget.submit();\n }\n\n cancel(event) {\n event.preventDefault();\n this.modalTarget.style.display = \"none\";\n }\n}\n","import { Controller } from \"@hotwired/stimulus\";\n\nexport default class extends Controller {\n static targets = [\"check\", \"spinner\"];\n\n static values = { isValid: Boolean };\n\n connect() {\n this.displayClass = \"hidden\";\n }\n\n currentCheckMark(el) {\n const inNodeList =\n Array.from(el.parentElement.parentElement.children).indexOf(\n this.checkTarget\n ) > -1;\n\n return inNodeList;\n }\n\n isValidValueChanged() {\n this.spinnerTarget.classList.remove(this.displayClass);\n this.checkTarget.classList.add(this.displayClass);\n\n setTimeout(() => {\n this.spinnerTarget.classList.add(this.displayClass);\n\n if (this.isValidValue) {\n this.checkTarget.classList.remove(this.displayClass);\n } else {\n this.checkTarget.classList.add(this.displayClass);\n }\n }, 400);\n }\n\n isValid(event) {\n if (this.currentCheckMark(event.detail.element)) {\n if (event.detail.isValid) {\n this.isValidValue = true;\n } else {\n this.isValidValue = false;\n }\n }\n }\n}\n","import { Controller } from \"@hotwired/stimulus\";\nimport { create, roomChosen } from \"frontoffice/services/bookingRoomService\";\n\nexport default class RoomController extends Controller {\n static targets = [\"room\"];\n\n static values = {\n bookingRoomAssignmentId: Number,\n roomId: Number,\n bookingScrambledId: String,\n };\n\n select(event) {\n event.preventDefault();\n\n const success = (response) => {\n roomChosen(this.bookingRoomAssignmentIdValue, response);\n };\n\n const error = () => {};\n\n const data = {\n resource_sku_id: this.roomIdValue,\n booking_scrambled_id: this.bookingScrambledIdValue,\n booking_room_assignment_id: this.bookingRoomAssignmentIdValue,\n };\n\n create({\n data,\n success,\n error,\n });\n }\n}\n","import Rails from \"@rails/ujs\";\n\nimport currentLocale from \"shared/currentLocale\";\n\nexport default ({ data, success, error }) => {\n Rails.ajax({\n type: \"POST\",\n dataType: \"json\",\n url: `/${currentLocale()}/frontoffice/api/booking_room_assignments/${\n data.booking_room_assignment_id\n }/booking_rooms`,\n beforeSend: (xhr, options) => {\n // Workaround: add options.data late to avoid Content-Type header to already being set in stone\n // https://github.com/rails/rails/blob/master/actionview/app/assets/javascripts/rails-ujs/utils/ajax.coffee#L53\n xhr.setRequestHeader(\"Content-Type\", \"application/json; charset=UTF-8\");\n // eslint-disable-next-line no-param-reassign\n options.data = JSON.stringify(data);\n\n return true;\n },\n success,\n error,\n });\n};\n","export default (bookingRoomAssignmentId, response) => {\n const event = new CustomEvent(\"room-chosen\", {\n detail: {\n focusedAssignmentId: bookingRoomAssignmentId,\n response,\n },\n bubbles: true,\n cancelable: true,\n composed: false,\n });\n\n window.dispatchEvent(event);\n};\n","import { Controller } from \"@hotwired/stimulus\";\n\nimport { fetchTotalPrice } from \"frontoffice/services/bookingService\";\n\nexport default class extends Controller {\n static targets = [\"totalPrice\"];\n\n static values = {\n bookingId: Number,\n };\n\n updatePrice() {\n const success = (response) => {\n this.totalPriceTarget.innerHTML = response;\n };\n const error = () => {};\n\n fetchTotalPrice({\n id: this.bookingIdValue,\n success,\n error,\n });\n }\n}\n","import Rails from \"@rails/ujs\";\n\nimport currentLocale from \"shared/currentLocale\";\n\nexport default ({ id, success, error }) => {\n Rails.ajax({\n type: \"GET\",\n dataType: \"json\",\n url: `/${currentLocale()}/frontoffice/api/bookings/${id}/total_price`,\n success,\n error,\n });\n};\n","/**!\n * Sortable 1.15.3\n * @author\tRubaXa \n * @author\towenm \n * @license MIT\n */\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n\n if (enumerableOnly) {\n symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n }\n\n keys.push.apply(keys, symbols);\n }\n\n return keys;\n}\n\nfunction _objectSpread2(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n\n if (i % 2) {\n ownKeys(Object(source), true).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n });\n } else if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys(Object(source)).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n }\n\n return target;\n}\n\nfunction _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") {\n _typeof = function _typeof(obj) {\n return typeof obj;\n };\n } else {\n _typeof = function _typeof(obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n }\n\n return _typeof(obj);\n}\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}\n\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n\n return target;\n}\n\nfunction _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n\n var target = _objectWithoutPropertiesLoose(source, excluded);\n\n var key, i;\n\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n\n return target;\n}\n\nfunction _toConsumableArray(arr) {\n return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();\n}\n\nfunction _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) return _arrayLikeToArray(arr);\n}\n\nfunction _iterableToArray(iter) {\n if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter);\n}\n\nfunction _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return _arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);\n}\n\nfunction _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n\n for (var i = 0, arr2 = new Array(len); i < len; i++) {\n arr2[i] = arr[i];\n }\n\n return arr2;\n}\n\nfunction _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\n\nvar version = \"1.15.3\";\n\nfunction userAgent(pattern) {\n if (typeof window !== 'undefined' && window.navigator) {\n return !! /*@__PURE__*/navigator.userAgent.match(pattern);\n }\n}\n\nvar IE11OrLess = userAgent(/(?:Trident.*rv[ :]?11\\.|msie|iemobile|Windows Phone)/i);\nvar Edge = userAgent(/Edge/i);\nvar FireFox = userAgent(/firefox/i);\nvar Safari = userAgent(/safari/i) && !userAgent(/chrome/i) && !userAgent(/android/i);\nvar IOS = userAgent(/iP(ad|od|hone)/i);\nvar ChromeForAndroid = userAgent(/chrome/i) && userAgent(/android/i);\nvar captureMode = {\n capture: false,\n passive: false\n};\n\nfunction on(el, event, fn) {\n el.addEventListener(event, fn, !IE11OrLess && captureMode);\n}\n\nfunction off(el, event, fn) {\n el.removeEventListener(event, fn, !IE11OrLess && captureMode);\n}\n\nfunction matches(\n/**HTMLElement*/\nel,\n/**String*/\nselector) {\n if (!selector) return;\n selector[0] === '>' && (selector = selector.substring(1));\n\n if (el) {\n try {\n if (el.matches) {\n return el.matches(selector);\n } else if (el.msMatchesSelector) {\n return el.msMatchesSelector(selector);\n } else if (el.webkitMatchesSelector) {\n return el.webkitMatchesSelector(selector);\n }\n } catch (_) {\n return false;\n }\n }\n\n return false;\n}\n\nfunction getParentOrHost(el) {\n return el.host && el !== document && el.host.nodeType ? el.host : el.parentNode;\n}\n\nfunction closest(\n/**HTMLElement*/\nel,\n/**String*/\nselector,\n/**HTMLElement*/\nctx, includeCTX) {\n if (el) {\n ctx = ctx || document;\n\n do {\n if (selector != null && (selector[0] === '>' ? el.parentNode === ctx && matches(el, selector) : matches(el, selector)) || includeCTX && el === ctx) {\n return el;\n }\n\n if (el === ctx) break;\n /* jshint boss:true */\n } while (el = getParentOrHost(el));\n }\n\n return null;\n}\n\nvar R_SPACE = /\\s+/g;\n\nfunction toggleClass(el, name, state) {\n if (el && name) {\n if (el.classList) {\n el.classList[state ? 'add' : 'remove'](name);\n } else {\n var className = (' ' + el.className + ' ').replace(R_SPACE, ' ').replace(' ' + name + ' ', ' ');\n el.className = (className + (state ? ' ' + name : '')).replace(R_SPACE, ' ');\n }\n }\n}\n\nfunction css(el, prop, val) {\n var style = el && el.style;\n\n if (style) {\n if (val === void 0) {\n if (document.defaultView && document.defaultView.getComputedStyle) {\n val = document.defaultView.getComputedStyle(el, '');\n } else if (el.currentStyle) {\n val = el.currentStyle;\n }\n\n return prop === void 0 ? val : val[prop];\n } else {\n if (!(prop in style) && prop.indexOf('webkit') === -1) {\n prop = '-webkit-' + prop;\n }\n\n style[prop] = val + (typeof val === 'string' ? '' : 'px');\n }\n }\n}\n\nfunction matrix(el, selfOnly) {\n var appliedTransforms = '';\n\n if (typeof el === 'string') {\n appliedTransforms = el;\n } else {\n do {\n var transform = css(el, 'transform');\n\n if (transform && transform !== 'none') {\n appliedTransforms = transform + ' ' + appliedTransforms;\n }\n /* jshint boss:true */\n\n } while (!selfOnly && (el = el.parentNode));\n }\n\n var matrixFn = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;\n /*jshint -W056 */\n\n return matrixFn && new matrixFn(appliedTransforms);\n}\n\nfunction find(ctx, tagName, iterator) {\n if (ctx) {\n var list = ctx.getElementsByTagName(tagName),\n i = 0,\n n = list.length;\n\n if (iterator) {\n for (; i < n; i++) {\n iterator(list[i], i);\n }\n }\n\n return list;\n }\n\n return [];\n}\n\nfunction getWindowScrollingElement() {\n var scrollingElement = document.scrollingElement;\n\n if (scrollingElement) {\n return scrollingElement;\n } else {\n return document.documentElement;\n }\n}\n/**\r\n * Returns the \"bounding client rect\" of given element\r\n * @param {HTMLElement} el The element whose boundingClientRect is wanted\r\n * @param {[Boolean]} relativeToContainingBlock Whether the rect should be relative to the containing block of (including) the container\r\n * @param {[Boolean]} relativeToNonStaticParent Whether the rect should be relative to the relative parent of (including) the contaienr\r\n * @param {[Boolean]} undoScale Whether the container's scale() should be undone\r\n * @param {[HTMLElement]} container The parent the element will be placed in\r\n * @return {Object} The boundingClientRect of el, with specified adjustments\r\n */\n\n\nfunction getRect(el, relativeToContainingBlock, relativeToNonStaticParent, undoScale, container) {\n if (!el.getBoundingClientRect && el !== window) return;\n var elRect, top, left, bottom, right, height, width;\n\n if (el !== window && el.parentNode && el !== getWindowScrollingElement()) {\n elRect = el.getBoundingClientRect();\n top = elRect.top;\n left = elRect.left;\n bottom = elRect.bottom;\n right = elRect.right;\n height = elRect.height;\n width = elRect.width;\n } else {\n top = 0;\n left = 0;\n bottom = window.innerHeight;\n right = window.innerWidth;\n height = window.innerHeight;\n width = window.innerWidth;\n }\n\n if ((relativeToContainingBlock || relativeToNonStaticParent) && el !== window) {\n // Adjust for translate()\n container = container || el.parentNode; // solves #1123 (see: https://stackoverflow.com/a/37953806/6088312)\n // Not needed on <= IE11\n\n if (!IE11OrLess) {\n do {\n if (container && container.getBoundingClientRect && (css(container, 'transform') !== 'none' || relativeToNonStaticParent && css(container, 'position') !== 'static')) {\n var containerRect = container.getBoundingClientRect(); // Set relative to edges of padding box of container\n\n top -= containerRect.top + parseInt(css(container, 'border-top-width'));\n left -= containerRect.left + parseInt(css(container, 'border-left-width'));\n bottom = top + elRect.height;\n right = left + elRect.width;\n break;\n }\n /* jshint boss:true */\n\n } while (container = container.parentNode);\n }\n }\n\n if (undoScale && el !== window) {\n // Adjust for scale()\n var elMatrix = matrix(container || el),\n scaleX = elMatrix && elMatrix.a,\n scaleY = elMatrix && elMatrix.d;\n\n if (elMatrix) {\n top /= scaleY;\n left /= scaleX;\n width /= scaleX;\n height /= scaleY;\n bottom = top + height;\n right = left + width;\n }\n }\n\n return {\n top: top,\n left: left,\n bottom: bottom,\n right: right,\n width: width,\n height: height\n };\n}\n/**\r\n * Checks if a side of an element is scrolled past a side of its parents\r\n * @param {HTMLElement} el The element who's side being scrolled out of view is in question\r\n * @param {String} elSide Side of the element in question ('top', 'left', 'right', 'bottom')\r\n * @param {String} parentSide Side of the parent in question ('top', 'left', 'right', 'bottom')\r\n * @return {HTMLElement} The parent scroll element that the el's side is scrolled past, or null if there is no such element\r\n */\n\n\nfunction isScrolledPast(el, elSide, parentSide) {\n var parent = getParentAutoScrollElement(el, true),\n elSideVal = getRect(el)[elSide];\n /* jshint boss:true */\n\n while (parent) {\n var parentSideVal = getRect(parent)[parentSide],\n visible = void 0;\n\n if (parentSide === 'top' || parentSide === 'left') {\n visible = elSideVal >= parentSideVal;\n } else {\n visible = elSideVal <= parentSideVal;\n }\n\n if (!visible) return parent;\n if (parent === getWindowScrollingElement()) break;\n parent = getParentAutoScrollElement(parent, false);\n }\n\n return false;\n}\n/**\r\n * Gets nth child of el, ignoring hidden children, sortable's elements (does not ignore clone if it's visible)\r\n * and non-draggable elements\r\n * @param {HTMLElement} el The parent element\r\n * @param {Number} childNum The index of the child\r\n * @param {Object} options Parent Sortable's options\r\n * @return {HTMLElement} The child at index childNum, or null if not found\r\n */\n\n\nfunction getChild(el, childNum, options, includeDragEl) {\n var currentChild = 0,\n i = 0,\n children = el.children;\n\n while (i < children.length) {\n if (children[i].style.display !== 'none' && children[i] !== Sortable.ghost && (includeDragEl || children[i] !== Sortable.dragged) && closest(children[i], options.draggable, el, false)) {\n if (currentChild === childNum) {\n return children[i];\n }\n\n currentChild++;\n }\n\n i++;\n }\n\n return null;\n}\n/**\r\n * Gets the last child in the el, ignoring ghostEl or invisible elements (clones)\r\n * @param {HTMLElement} el Parent element\r\n * @param {selector} selector Any other elements that should be ignored\r\n * @return {HTMLElement} The last child, ignoring ghostEl\r\n */\n\n\nfunction lastChild(el, selector) {\n var last = el.lastElementChild;\n\n while (last && (last === Sortable.ghost || css(last, 'display') === 'none' || selector && !matches(last, selector))) {\n last = last.previousElementSibling;\n }\n\n return last || null;\n}\n/**\r\n * Returns the index of an element within its parent for a selected set of\r\n * elements\r\n * @param {HTMLElement} el\r\n * @param {selector} selector\r\n * @return {number}\r\n */\n\n\nfunction index(el, selector) {\n var index = 0;\n\n if (!el || !el.parentNode) {\n return -1;\n }\n /* jshint boss:true */\n\n\n while (el = el.previousElementSibling) {\n if (el.nodeName.toUpperCase() !== 'TEMPLATE' && el !== Sortable.clone && (!selector || matches(el, selector))) {\n index++;\n }\n }\n\n return index;\n}\n/**\r\n * Returns the scroll offset of the given element, added with all the scroll offsets of parent elements.\r\n * The value is returned in real pixels.\r\n * @param {HTMLElement} el\r\n * @return {Array} Offsets in the format of [left, top]\r\n */\n\n\nfunction getRelativeScrollOffset(el) {\n var offsetLeft = 0,\n offsetTop = 0,\n winScroller = getWindowScrollingElement();\n\n if (el) {\n do {\n var elMatrix = matrix(el),\n scaleX = elMatrix.a,\n scaleY = elMatrix.d;\n offsetLeft += el.scrollLeft * scaleX;\n offsetTop += el.scrollTop * scaleY;\n } while (el !== winScroller && (el = el.parentNode));\n }\n\n return [offsetLeft, offsetTop];\n}\n/**\r\n * Returns the index of the object within the given array\r\n * @param {Array} arr Array that may or may not hold the object\r\n * @param {Object} obj An object that has a key-value pair unique to and identical to a key-value pair in the object you want to find\r\n * @return {Number} The index of the object in the array, or -1\r\n */\n\n\nfunction indexOfObject(arr, obj) {\n for (var i in arr) {\n if (!arr.hasOwnProperty(i)) continue;\n\n for (var key in obj) {\n if (obj.hasOwnProperty(key) && obj[key] === arr[i][key]) return Number(i);\n }\n }\n\n return -1;\n}\n\nfunction getParentAutoScrollElement(el, includeSelf) {\n // skip to window\n if (!el || !el.getBoundingClientRect) return getWindowScrollingElement();\n var elem = el;\n var gotSelf = false;\n\n do {\n // we don't need to get elem css if it isn't even overflowing in the first place (performance)\n if (elem.clientWidth < elem.scrollWidth || elem.clientHeight < elem.scrollHeight) {\n var elemCSS = css(elem);\n\n if (elem.clientWidth < elem.scrollWidth && (elemCSS.overflowX == 'auto' || elemCSS.overflowX == 'scroll') || elem.clientHeight < elem.scrollHeight && (elemCSS.overflowY == 'auto' || elemCSS.overflowY == 'scroll')) {\n if (!elem.getBoundingClientRect || elem === document.body) return getWindowScrollingElement();\n if (gotSelf || includeSelf) return elem;\n gotSelf = true;\n }\n }\n /* jshint boss:true */\n\n } while (elem = elem.parentNode);\n\n return getWindowScrollingElement();\n}\n\nfunction extend(dst, src) {\n if (dst && src) {\n for (var key in src) {\n if (src.hasOwnProperty(key)) {\n dst[key] = src[key];\n }\n }\n }\n\n return dst;\n}\n\nfunction isRectEqual(rect1, rect2) {\n return Math.round(rect1.top) === Math.round(rect2.top) && Math.round(rect1.left) === Math.round(rect2.left) && Math.round(rect1.height) === Math.round(rect2.height) && Math.round(rect1.width) === Math.round(rect2.width);\n}\n\nvar _throttleTimeout;\n\nfunction throttle(callback, ms) {\n return function () {\n if (!_throttleTimeout) {\n var args = arguments,\n _this = this;\n\n if (args.length === 1) {\n callback.call(_this, args[0]);\n } else {\n callback.apply(_this, args);\n }\n\n _throttleTimeout = setTimeout(function () {\n _throttleTimeout = void 0;\n }, ms);\n }\n };\n}\n\nfunction cancelThrottle() {\n clearTimeout(_throttleTimeout);\n _throttleTimeout = void 0;\n}\n\nfunction scrollBy(el, x, y) {\n el.scrollLeft += x;\n el.scrollTop += y;\n}\n\nfunction clone(el) {\n var Polymer = window.Polymer;\n var $ = window.jQuery || window.Zepto;\n\n if (Polymer && Polymer.dom) {\n return Polymer.dom(el).cloneNode(true);\n } else if ($) {\n return $(el).clone(true)[0];\n } else {\n return el.cloneNode(true);\n }\n}\n\nfunction setRect(el, rect) {\n css(el, 'position', 'absolute');\n css(el, 'top', rect.top);\n css(el, 'left', rect.left);\n css(el, 'width', rect.width);\n css(el, 'height', rect.height);\n}\n\nfunction unsetRect(el) {\n css(el, 'position', '');\n css(el, 'top', '');\n css(el, 'left', '');\n css(el, 'width', '');\n css(el, 'height', '');\n}\n\nfunction getChildContainingRectFromElement(container, options, ghostEl) {\n var rect = {};\n Array.from(container.children).forEach(function (child) {\n var _rect$left, _rect$top, _rect$right, _rect$bottom;\n\n if (!closest(child, options.draggable, container, false) || child.animated || child === ghostEl) return;\n var childRect = getRect(child);\n rect.left = Math.min((_rect$left = rect.left) !== null && _rect$left !== void 0 ? _rect$left : Infinity, childRect.left);\n rect.top = Math.min((_rect$top = rect.top) !== null && _rect$top !== void 0 ? _rect$top : Infinity, childRect.top);\n rect.right = Math.max((_rect$right = rect.right) !== null && _rect$right !== void 0 ? _rect$right : -Infinity, childRect.right);\n rect.bottom = Math.max((_rect$bottom = rect.bottom) !== null && _rect$bottom !== void 0 ? _rect$bottom : -Infinity, childRect.bottom);\n });\n rect.width = rect.right - rect.left;\n rect.height = rect.bottom - rect.top;\n rect.x = rect.left;\n rect.y = rect.top;\n return rect;\n}\n\nvar expando = 'Sortable' + new Date().getTime();\n\nfunction AnimationStateManager() {\n var animationStates = [],\n animationCallbackId;\n return {\n captureAnimationState: function captureAnimationState() {\n animationStates = [];\n if (!this.options.animation) return;\n var children = [].slice.call(this.el.children);\n children.forEach(function (child) {\n if (css(child, 'display') === 'none' || child === Sortable.ghost) return;\n animationStates.push({\n target: child,\n rect: getRect(child)\n });\n\n var fromRect = _objectSpread2({}, animationStates[animationStates.length - 1].rect); // If animating: compensate for current animation\n\n\n if (child.thisAnimationDuration) {\n var childMatrix = matrix(child, true);\n\n if (childMatrix) {\n fromRect.top -= childMatrix.f;\n fromRect.left -= childMatrix.e;\n }\n }\n\n child.fromRect = fromRect;\n });\n },\n addAnimationState: function addAnimationState(state) {\n animationStates.push(state);\n },\n removeAnimationState: function removeAnimationState(target) {\n animationStates.splice(indexOfObject(animationStates, {\n target: target\n }), 1);\n },\n animateAll: function animateAll(callback) {\n var _this = this;\n\n if (!this.options.animation) {\n clearTimeout(animationCallbackId);\n if (typeof callback === 'function') callback();\n return;\n }\n\n var animating = false,\n animationTime = 0;\n animationStates.forEach(function (state) {\n var time = 0,\n target = state.target,\n fromRect = target.fromRect,\n toRect = getRect(target),\n prevFromRect = target.prevFromRect,\n prevToRect = target.prevToRect,\n animatingRect = state.rect,\n targetMatrix = matrix(target, true);\n\n if (targetMatrix) {\n // Compensate for current animation\n toRect.top -= targetMatrix.f;\n toRect.left -= targetMatrix.e;\n }\n\n target.toRect = toRect;\n\n if (target.thisAnimationDuration) {\n // Could also check if animatingRect is between fromRect and toRect\n if (isRectEqual(prevFromRect, toRect) && !isRectEqual(fromRect, toRect) && // Make sure animatingRect is on line between toRect & fromRect\n (animatingRect.top - toRect.top) / (animatingRect.left - toRect.left) === (fromRect.top - toRect.top) / (fromRect.left - toRect.left)) {\n // If returning to same place as started from animation and on same axis\n time = calculateRealTime(animatingRect, prevFromRect, prevToRect, _this.options);\n }\n } // if fromRect != toRect: animate\n\n\n if (!isRectEqual(toRect, fromRect)) {\n target.prevFromRect = fromRect;\n target.prevToRect = toRect;\n\n if (!time) {\n time = _this.options.animation;\n }\n\n _this.animate(target, animatingRect, toRect, time);\n }\n\n if (time) {\n animating = true;\n animationTime = Math.max(animationTime, time);\n clearTimeout(target.animationResetTimer);\n target.animationResetTimer = setTimeout(function () {\n target.animationTime = 0;\n target.prevFromRect = null;\n target.fromRect = null;\n target.prevToRect = null;\n target.thisAnimationDuration = null;\n }, time);\n target.thisAnimationDuration = time;\n }\n });\n clearTimeout(animationCallbackId);\n\n if (!animating) {\n if (typeof callback === 'function') callback();\n } else {\n animationCallbackId = setTimeout(function () {\n if (typeof callback === 'function') callback();\n }, animationTime);\n }\n\n animationStates = [];\n },\n animate: function animate(target, currentRect, toRect, duration) {\n if (duration) {\n css(target, 'transition', '');\n css(target, 'transform', '');\n var elMatrix = matrix(this.el),\n scaleX = elMatrix && elMatrix.a,\n scaleY = elMatrix && elMatrix.d,\n translateX = (currentRect.left - toRect.left) / (scaleX || 1),\n translateY = (currentRect.top - toRect.top) / (scaleY || 1);\n target.animatingX = !!translateX;\n target.animatingY = !!translateY;\n css(target, 'transform', 'translate3d(' + translateX + 'px,' + translateY + 'px,0)');\n this.forRepaintDummy = repaint(target); // repaint\n\n css(target, 'transition', 'transform ' + duration + 'ms' + (this.options.easing ? ' ' + this.options.easing : ''));\n css(target, 'transform', 'translate3d(0,0,0)');\n typeof target.animated === 'number' && clearTimeout(target.animated);\n target.animated = setTimeout(function () {\n css(target, 'transition', '');\n css(target, 'transform', '');\n target.animated = false;\n target.animatingX = false;\n target.animatingY = false;\n }, duration);\n }\n }\n };\n}\n\nfunction repaint(target) {\n return target.offsetWidth;\n}\n\nfunction calculateRealTime(animatingRect, fromRect, toRect, options) {\n return Math.sqrt(Math.pow(fromRect.top - animatingRect.top, 2) + Math.pow(fromRect.left - animatingRect.left, 2)) / Math.sqrt(Math.pow(fromRect.top - toRect.top, 2) + Math.pow(fromRect.left - toRect.left, 2)) * options.animation;\n}\n\nvar plugins = [];\nvar defaults = {\n initializeByDefault: true\n};\nvar PluginManager = {\n mount: function mount(plugin) {\n // Set default static properties\n for (var option in defaults) {\n if (defaults.hasOwnProperty(option) && !(option in plugin)) {\n plugin[option] = defaults[option];\n }\n }\n\n plugins.forEach(function (p) {\n if (p.pluginName === plugin.pluginName) {\n throw \"Sortable: Cannot mount plugin \".concat(plugin.pluginName, \" more than once\");\n }\n });\n plugins.push(plugin);\n },\n pluginEvent: function pluginEvent(eventName, sortable, evt) {\n var _this = this;\n\n this.eventCanceled = false;\n\n evt.cancel = function () {\n _this.eventCanceled = true;\n };\n\n var eventNameGlobal = eventName + 'Global';\n plugins.forEach(function (plugin) {\n if (!sortable[plugin.pluginName]) return; // Fire global events if it exists in this sortable\n\n if (sortable[plugin.pluginName][eventNameGlobal]) {\n sortable[plugin.pluginName][eventNameGlobal](_objectSpread2({\n sortable: sortable\n }, evt));\n } // Only fire plugin event if plugin is enabled in this sortable,\n // and plugin has event defined\n\n\n if (sortable.options[plugin.pluginName] && sortable[plugin.pluginName][eventName]) {\n sortable[plugin.pluginName][eventName](_objectSpread2({\n sortable: sortable\n }, evt));\n }\n });\n },\n initializePlugins: function initializePlugins(sortable, el, defaults, options) {\n plugins.forEach(function (plugin) {\n var pluginName = plugin.pluginName;\n if (!sortable.options[pluginName] && !plugin.initializeByDefault) return;\n var initialized = new plugin(sortable, el, sortable.options);\n initialized.sortable = sortable;\n initialized.options = sortable.options;\n sortable[pluginName] = initialized; // Add default options from plugin\n\n _extends(defaults, initialized.defaults);\n });\n\n for (var option in sortable.options) {\n if (!sortable.options.hasOwnProperty(option)) continue;\n var modified = this.modifyOption(sortable, option, sortable.options[option]);\n\n if (typeof modified !== 'undefined') {\n sortable.options[option] = modified;\n }\n }\n },\n getEventProperties: function getEventProperties(name, sortable) {\n var eventProperties = {};\n plugins.forEach(function (plugin) {\n if (typeof plugin.eventProperties !== 'function') return;\n\n _extends(eventProperties, plugin.eventProperties.call(sortable[plugin.pluginName], name));\n });\n return eventProperties;\n },\n modifyOption: function modifyOption(sortable, name, value) {\n var modifiedValue;\n plugins.forEach(function (plugin) {\n // Plugin must exist on the Sortable\n if (!sortable[plugin.pluginName]) return; // If static option listener exists for this option, call in the context of the Sortable's instance of this plugin\n\n if (plugin.optionListeners && typeof plugin.optionListeners[name] === 'function') {\n modifiedValue = plugin.optionListeners[name].call(sortable[plugin.pluginName], value);\n }\n });\n return modifiedValue;\n }\n};\n\nfunction dispatchEvent(_ref) {\n var sortable = _ref.sortable,\n rootEl = _ref.rootEl,\n name = _ref.name,\n targetEl = _ref.targetEl,\n cloneEl = _ref.cloneEl,\n toEl = _ref.toEl,\n fromEl = _ref.fromEl,\n oldIndex = _ref.oldIndex,\n newIndex = _ref.newIndex,\n oldDraggableIndex = _ref.oldDraggableIndex,\n newDraggableIndex = _ref.newDraggableIndex,\n originalEvent = _ref.originalEvent,\n putSortable = _ref.putSortable,\n extraEventProperties = _ref.extraEventProperties;\n sortable = sortable || rootEl && rootEl[expando];\n if (!sortable) return;\n var evt,\n options = sortable.options,\n onName = 'on' + name.charAt(0).toUpperCase() + name.substr(1); // Support for new CustomEvent feature\n\n if (window.CustomEvent && !IE11OrLess && !Edge) {\n evt = new CustomEvent(name, {\n bubbles: true,\n cancelable: true\n });\n } else {\n evt = document.createEvent('Event');\n evt.initEvent(name, true, true);\n }\n\n evt.to = toEl || rootEl;\n evt.from = fromEl || rootEl;\n evt.item = targetEl || rootEl;\n evt.clone = cloneEl;\n evt.oldIndex = oldIndex;\n evt.newIndex = newIndex;\n evt.oldDraggableIndex = oldDraggableIndex;\n evt.newDraggableIndex = newDraggableIndex;\n evt.originalEvent = originalEvent;\n evt.pullMode = putSortable ? putSortable.lastPutMode : undefined;\n\n var allEventProperties = _objectSpread2(_objectSpread2({}, extraEventProperties), PluginManager.getEventProperties(name, sortable));\n\n for (var option in allEventProperties) {\n evt[option] = allEventProperties[option];\n }\n\n if (rootEl) {\n rootEl.dispatchEvent(evt);\n }\n\n if (options[onName]) {\n options[onName].call(sortable, evt);\n }\n}\n\nvar _excluded = [\"evt\"];\n\nvar pluginEvent = function pluginEvent(eventName, sortable) {\n var _ref = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {},\n originalEvent = _ref.evt,\n data = _objectWithoutProperties(_ref, _excluded);\n\n PluginManager.pluginEvent.bind(Sortable)(eventName, sortable, _objectSpread2({\n dragEl: dragEl,\n parentEl: parentEl,\n ghostEl: ghostEl,\n rootEl: rootEl,\n nextEl: nextEl,\n lastDownEl: lastDownEl,\n cloneEl: cloneEl,\n cloneHidden: cloneHidden,\n dragStarted: moved,\n putSortable: putSortable,\n activeSortable: Sortable.active,\n originalEvent: originalEvent,\n oldIndex: oldIndex,\n oldDraggableIndex: oldDraggableIndex,\n newIndex: newIndex,\n newDraggableIndex: newDraggableIndex,\n hideGhostForTarget: _hideGhostForTarget,\n unhideGhostForTarget: _unhideGhostForTarget,\n cloneNowHidden: function cloneNowHidden() {\n cloneHidden = true;\n },\n cloneNowShown: function cloneNowShown() {\n cloneHidden = false;\n },\n dispatchSortableEvent: function dispatchSortableEvent(name) {\n _dispatchEvent({\n sortable: sortable,\n name: name,\n originalEvent: originalEvent\n });\n }\n }, data));\n};\n\nfunction _dispatchEvent(info) {\n dispatchEvent(_objectSpread2({\n putSortable: putSortable,\n cloneEl: cloneEl,\n targetEl: dragEl,\n rootEl: rootEl,\n oldIndex: oldIndex,\n oldDraggableIndex: oldDraggableIndex,\n newIndex: newIndex,\n newDraggableIndex: newDraggableIndex\n }, info));\n}\n\nvar dragEl,\n parentEl,\n ghostEl,\n rootEl,\n nextEl,\n lastDownEl,\n cloneEl,\n cloneHidden,\n oldIndex,\n newIndex,\n oldDraggableIndex,\n newDraggableIndex,\n activeGroup,\n putSortable,\n awaitingDragStarted = false,\n ignoreNextClick = false,\n sortables = [],\n tapEvt,\n touchEvt,\n lastDx,\n lastDy,\n tapDistanceLeft,\n tapDistanceTop,\n moved,\n lastTarget,\n lastDirection,\n pastFirstInvertThresh = false,\n isCircumstantialInvert = false,\n targetMoveDistance,\n // For positioning ghost absolutely\nghostRelativeParent,\n ghostRelativeParentInitialScroll = [],\n // (left, top)\n_silent = false,\n savedInputChecked = [];\n/** @const */\n\nvar documentExists = typeof document !== 'undefined',\n PositionGhostAbsolutely = IOS,\n CSSFloatProperty = Edge || IE11OrLess ? 'cssFloat' : 'float',\n // This will not pass for IE9, because IE9 DnD only works on anchors\nsupportDraggable = documentExists && !ChromeForAndroid && !IOS && 'draggable' in document.createElement('div'),\n supportCssPointerEvents = function () {\n if (!documentExists) return; // false when <= IE11\n\n if (IE11OrLess) {\n return false;\n }\n\n var el = document.createElement('x');\n el.style.cssText = 'pointer-events:auto';\n return el.style.pointerEvents === 'auto';\n}(),\n _detectDirection = function _detectDirection(el, options) {\n var elCSS = css(el),\n elWidth = parseInt(elCSS.width) - parseInt(elCSS.paddingLeft) - parseInt(elCSS.paddingRight) - parseInt(elCSS.borderLeftWidth) - parseInt(elCSS.borderRightWidth),\n child1 = getChild(el, 0, options),\n child2 = getChild(el, 1, options),\n firstChildCSS = child1 && css(child1),\n secondChildCSS = child2 && css(child2),\n firstChildWidth = firstChildCSS && parseInt(firstChildCSS.marginLeft) + parseInt(firstChildCSS.marginRight) + getRect(child1).width,\n secondChildWidth = secondChildCSS && parseInt(secondChildCSS.marginLeft) + parseInt(secondChildCSS.marginRight) + getRect(child2).width;\n\n if (elCSS.display === 'flex') {\n return elCSS.flexDirection === 'column' || elCSS.flexDirection === 'column-reverse' ? 'vertical' : 'horizontal';\n }\n\n if (elCSS.display === 'grid') {\n return elCSS.gridTemplateColumns.split(' ').length <= 1 ? 'vertical' : 'horizontal';\n }\n\n if (child1 && firstChildCSS[\"float\"] && firstChildCSS[\"float\"] !== 'none') {\n var touchingSideChild2 = firstChildCSS[\"float\"] === 'left' ? 'left' : 'right';\n return child2 && (secondChildCSS.clear === 'both' || secondChildCSS.clear === touchingSideChild2) ? 'vertical' : 'horizontal';\n }\n\n return child1 && (firstChildCSS.display === 'block' || firstChildCSS.display === 'flex' || firstChildCSS.display === 'table' || firstChildCSS.display === 'grid' || firstChildWidth >= elWidth && elCSS[CSSFloatProperty] === 'none' || child2 && elCSS[CSSFloatProperty] === 'none' && firstChildWidth + secondChildWidth > elWidth) ? 'vertical' : 'horizontal';\n},\n _dragElInRowColumn = function _dragElInRowColumn(dragRect, targetRect, vertical) {\n var dragElS1Opp = vertical ? dragRect.left : dragRect.top,\n dragElS2Opp = vertical ? dragRect.right : dragRect.bottom,\n dragElOppLength = vertical ? dragRect.width : dragRect.height,\n targetS1Opp = vertical ? targetRect.left : targetRect.top,\n targetS2Opp = vertical ? targetRect.right : targetRect.bottom,\n targetOppLength = vertical ? targetRect.width : targetRect.height;\n return dragElS1Opp === targetS1Opp || dragElS2Opp === targetS2Opp || dragElS1Opp + dragElOppLength / 2 === targetS1Opp + targetOppLength / 2;\n},\n\n/**\r\n * Detects first nearest empty sortable to X and Y position using emptyInsertThreshold.\r\n * @param {Number} x X position\r\n * @param {Number} y Y position\r\n * @return {HTMLElement} Element of the first found nearest Sortable\r\n */\n_detectNearestEmptySortable = function _detectNearestEmptySortable(x, y) {\n var ret;\n sortables.some(function (sortable) {\n var threshold = sortable[expando].options.emptyInsertThreshold;\n if (!threshold || lastChild(sortable)) return;\n var rect = getRect(sortable),\n insideHorizontally = x >= rect.left - threshold && x <= rect.right + threshold,\n insideVertically = y >= rect.top - threshold && y <= rect.bottom + threshold;\n\n if (insideHorizontally && insideVertically) {\n return ret = sortable;\n }\n });\n return ret;\n},\n _prepareGroup = function _prepareGroup(options) {\n function toFn(value, pull) {\n return function (to, from, dragEl, evt) {\n var sameGroup = to.options.group.name && from.options.group.name && to.options.group.name === from.options.group.name;\n\n if (value == null && (pull || sameGroup)) {\n // Default pull value\n // Default pull and put value if same group\n return true;\n } else if (value == null || value === false) {\n return false;\n } else if (pull && value === 'clone') {\n return value;\n } else if (typeof value === 'function') {\n return toFn(value(to, from, dragEl, evt), pull)(to, from, dragEl, evt);\n } else {\n var otherGroup = (pull ? to : from).options.group.name;\n return value === true || typeof value === 'string' && value === otherGroup || value.join && value.indexOf(otherGroup) > -1;\n }\n };\n }\n\n var group = {};\n var originalGroup = options.group;\n\n if (!originalGroup || _typeof(originalGroup) != 'object') {\n originalGroup = {\n name: originalGroup\n };\n }\n\n group.name = originalGroup.name;\n group.checkPull = toFn(originalGroup.pull, true);\n group.checkPut = toFn(originalGroup.put);\n group.revertClone = originalGroup.revertClone;\n options.group = group;\n},\n _hideGhostForTarget = function _hideGhostForTarget() {\n if (!supportCssPointerEvents && ghostEl) {\n css(ghostEl, 'display', 'none');\n }\n},\n _unhideGhostForTarget = function _unhideGhostForTarget() {\n if (!supportCssPointerEvents && ghostEl) {\n css(ghostEl, 'display', '');\n }\n}; // #1184 fix - Prevent click event on fallback if dragged but item not changed position\n\n\nif (documentExists && !ChromeForAndroid) {\n document.addEventListener('click', function (evt) {\n if (ignoreNextClick) {\n evt.preventDefault();\n evt.stopPropagation && evt.stopPropagation();\n evt.stopImmediatePropagation && evt.stopImmediatePropagation();\n ignoreNextClick = false;\n return false;\n }\n }, true);\n}\n\nvar nearestEmptyInsertDetectEvent = function nearestEmptyInsertDetectEvent(evt) {\n if (dragEl) {\n evt = evt.touches ? evt.touches[0] : evt;\n\n var nearest = _detectNearestEmptySortable(evt.clientX, evt.clientY);\n\n if (nearest) {\n // Create imitation event\n var event = {};\n\n for (var i in evt) {\n if (evt.hasOwnProperty(i)) {\n event[i] = evt[i];\n }\n }\n\n event.target = event.rootEl = nearest;\n event.preventDefault = void 0;\n event.stopPropagation = void 0;\n\n nearest[expando]._onDragOver(event);\n }\n }\n};\n\nvar _checkOutsideTargetEl = function _checkOutsideTargetEl(evt) {\n if (dragEl) {\n dragEl.parentNode[expando]._isOutsideThisEl(evt.target);\n }\n};\n/**\r\n * @class Sortable\r\n * @param {HTMLElement} el\r\n * @param {Object} [options]\r\n */\n\n\nfunction Sortable(el, options) {\n if (!(el && el.nodeType && el.nodeType === 1)) {\n throw \"Sortable: `el` must be an HTMLElement, not \".concat({}.toString.call(el));\n }\n\n this.el = el; // root element\n\n this.options = options = _extends({}, options); // Export instance\n\n el[expando] = this;\n var defaults = {\n group: null,\n sort: true,\n disabled: false,\n store: null,\n handle: null,\n draggable: /^[uo]l$/i.test(el.nodeName) ? '>li' : '>*',\n swapThreshold: 1,\n // percentage; 0 <= x <= 1\n invertSwap: false,\n // invert always\n invertedSwapThreshold: null,\n // will be set to same as swapThreshold if default\n removeCloneOnHide: true,\n direction: function direction() {\n return _detectDirection(el, this.options);\n },\n ghostClass: 'sortable-ghost',\n chosenClass: 'sortable-chosen',\n dragClass: 'sortable-drag',\n ignore: 'a, img',\n filter: null,\n preventOnFilter: true,\n animation: 0,\n easing: null,\n setData: function setData(dataTransfer, dragEl) {\n dataTransfer.setData('Text', dragEl.textContent);\n },\n dropBubble: false,\n dragoverBubble: false,\n dataIdAttr: 'data-id',\n delay: 0,\n delayOnTouchOnly: false,\n touchStartThreshold: (Number.parseInt ? Number : window).parseInt(window.devicePixelRatio, 10) || 1,\n forceFallback: false,\n fallbackClass: 'sortable-fallback',\n fallbackOnBody: false,\n fallbackTolerance: 0,\n fallbackOffset: {\n x: 0,\n y: 0\n },\n supportPointer: Sortable.supportPointer !== false && 'PointerEvent' in window && !Safari,\n emptyInsertThreshold: 5\n };\n PluginManager.initializePlugins(this, el, defaults); // Set default options\n\n for (var name in defaults) {\n !(name in options) && (options[name] = defaults[name]);\n }\n\n _prepareGroup(options); // Bind all private methods\n\n\n for (var fn in this) {\n if (fn.charAt(0) === '_' && typeof this[fn] === 'function') {\n this[fn] = this[fn].bind(this);\n }\n } // Setup drag mode\n\n\n this.nativeDraggable = options.forceFallback ? false : supportDraggable;\n\n if (this.nativeDraggable) {\n // Touch start threshold cannot be greater than the native dragstart threshold\n this.options.touchStartThreshold = 1;\n } // Bind events\n\n\n if (options.supportPointer) {\n on(el, 'pointerdown', this._onTapStart);\n } else {\n on(el, 'mousedown', this._onTapStart);\n on(el, 'touchstart', this._onTapStart);\n }\n\n if (this.nativeDraggable) {\n on(el, 'dragover', this);\n on(el, 'dragenter', this);\n }\n\n sortables.push(this.el); // Restore sorting\n\n options.store && options.store.get && this.sort(options.store.get(this) || []); // Add animation state manager\n\n _extends(this, AnimationStateManager());\n}\n\nSortable.prototype =\n/** @lends Sortable.prototype */\n{\n constructor: Sortable,\n _isOutsideThisEl: function _isOutsideThisEl(target) {\n if (!this.el.contains(target) && target !== this.el) {\n lastTarget = null;\n }\n },\n _getDirection: function _getDirection(evt, target) {\n return typeof this.options.direction === 'function' ? this.options.direction.call(this, evt, target, dragEl) : this.options.direction;\n },\n _onTapStart: function _onTapStart(\n /** Event|TouchEvent */\n evt) {\n if (!evt.cancelable) return;\n\n var _this = this,\n el = this.el,\n options = this.options,\n preventOnFilter = options.preventOnFilter,\n type = evt.type,\n touch = evt.touches && evt.touches[0] || evt.pointerType && evt.pointerType === 'touch' && evt,\n target = (touch || evt).target,\n originalTarget = evt.target.shadowRoot && (evt.path && evt.path[0] || evt.composedPath && evt.composedPath()[0]) || target,\n filter = options.filter;\n\n _saveInputCheckedState(el); // Don't trigger start event when an element is been dragged, otherwise the evt.oldindex always wrong when set option.group.\n\n\n if (dragEl) {\n return;\n }\n\n if (/mousedown|pointerdown/.test(type) && evt.button !== 0 || options.disabled) {\n return; // only left button and enabled\n } // cancel dnd if original target is content editable\n\n\n if (originalTarget.isContentEditable) {\n return;\n } // Safari ignores further event handling after mousedown\n\n\n if (!this.nativeDraggable && Safari && target && target.tagName.toUpperCase() === 'SELECT') {\n return;\n }\n\n target = closest(target, options.draggable, el, false);\n\n if (target && target.animated) {\n return;\n }\n\n if (lastDownEl === target) {\n // Ignoring duplicate `down`\n return;\n } // Get the index of the dragged element within its parent\n\n\n oldIndex = index(target);\n oldDraggableIndex = index(target, options.draggable); // Check filter\n\n if (typeof filter === 'function') {\n if (filter.call(this, evt, target, this)) {\n _dispatchEvent({\n sortable: _this,\n rootEl: originalTarget,\n name: 'filter',\n targetEl: target,\n toEl: el,\n fromEl: el\n });\n\n pluginEvent('filter', _this, {\n evt: evt\n });\n preventOnFilter && evt.cancelable && evt.preventDefault();\n return; // cancel dnd\n }\n } else if (filter) {\n filter = filter.split(',').some(function (criteria) {\n criteria = closest(originalTarget, criteria.trim(), el, false);\n\n if (criteria) {\n _dispatchEvent({\n sortable: _this,\n rootEl: criteria,\n name: 'filter',\n targetEl: target,\n fromEl: el,\n toEl: el\n });\n\n pluginEvent('filter', _this, {\n evt: evt\n });\n return true;\n }\n });\n\n if (filter) {\n preventOnFilter && evt.cancelable && evt.preventDefault();\n return; // cancel dnd\n }\n }\n\n if (options.handle && !closest(originalTarget, options.handle, el, false)) {\n return;\n } // Prepare `dragstart`\n\n\n this._prepareDragStart(evt, touch, target);\n },\n _prepareDragStart: function _prepareDragStart(\n /** Event */\n evt,\n /** Touch */\n touch,\n /** HTMLElement */\n target) {\n var _this = this,\n el = _this.el,\n options = _this.options,\n ownerDocument = el.ownerDocument,\n dragStartFn;\n\n if (target && !dragEl && target.parentNode === el) {\n var dragRect = getRect(target);\n rootEl = el;\n dragEl = target;\n parentEl = dragEl.parentNode;\n nextEl = dragEl.nextSibling;\n lastDownEl = target;\n activeGroup = options.group;\n Sortable.dragged = dragEl;\n tapEvt = {\n target: dragEl,\n clientX: (touch || evt).clientX,\n clientY: (touch || evt).clientY\n };\n tapDistanceLeft = tapEvt.clientX - dragRect.left;\n tapDistanceTop = tapEvt.clientY - dragRect.top;\n this._lastX = (touch || evt).clientX;\n this._lastY = (touch || evt).clientY;\n dragEl.style['will-change'] = 'all';\n\n dragStartFn = function dragStartFn() {\n pluginEvent('delayEnded', _this, {\n evt: evt\n });\n\n if (Sortable.eventCanceled) {\n _this._onDrop();\n\n return;\n } // Delayed drag has been triggered\n // we can re-enable the events: touchmove/mousemove\n\n\n _this._disableDelayedDragEvents();\n\n if (!FireFox && _this.nativeDraggable) {\n dragEl.draggable = true;\n } // Bind the events: dragstart/dragend\n\n\n _this._triggerDragStart(evt, touch); // Drag start event\n\n\n _dispatchEvent({\n sortable: _this,\n name: 'choose',\n originalEvent: evt\n }); // Chosen item\n\n\n toggleClass(dragEl, options.chosenClass, true);\n }; // Disable \"draggable\"\n\n\n options.ignore.split(',').forEach(function (criteria) {\n find(dragEl, criteria.trim(), _disableDraggable);\n });\n on(ownerDocument, 'dragover', nearestEmptyInsertDetectEvent);\n on(ownerDocument, 'mousemove', nearestEmptyInsertDetectEvent);\n on(ownerDocument, 'touchmove', nearestEmptyInsertDetectEvent);\n on(ownerDocument, 'mouseup', _this._onDrop);\n on(ownerDocument, 'touchend', _this._onDrop);\n on(ownerDocument, 'touchcancel', _this._onDrop); // Make dragEl draggable (must be before delay for FireFox)\n\n if (FireFox && this.nativeDraggable) {\n this.options.touchStartThreshold = 4;\n dragEl.draggable = true;\n }\n\n pluginEvent('delayStart', this, {\n evt: evt\n }); // Delay is impossible for native DnD in Edge or IE\n\n if (options.delay && (!options.delayOnTouchOnly || touch) && (!this.nativeDraggable || !(Edge || IE11OrLess))) {\n if (Sortable.eventCanceled) {\n this._onDrop();\n\n return;\n } // If the user moves the pointer or let go the click or touch\n // before the delay has been reached:\n // disable the delayed drag\n\n\n on(ownerDocument, 'mouseup', _this._disableDelayedDrag);\n on(ownerDocument, 'touchend', _this._disableDelayedDrag);\n on(ownerDocument, 'touchcancel', _this._disableDelayedDrag);\n on(ownerDocument, 'mousemove', _this._delayedDragTouchMoveHandler);\n on(ownerDocument, 'touchmove', _this._delayedDragTouchMoveHandler);\n options.supportPointer && on(ownerDocument, 'pointermove', _this._delayedDragTouchMoveHandler);\n _this._dragStartTimer = setTimeout(dragStartFn, options.delay);\n } else {\n dragStartFn();\n }\n }\n },\n _delayedDragTouchMoveHandler: function _delayedDragTouchMoveHandler(\n /** TouchEvent|PointerEvent **/\n e) {\n var touch = e.touches ? e.touches[0] : e;\n\n if (Math.max(Math.abs(touch.clientX - this._lastX), Math.abs(touch.clientY - this._lastY)) >= Math.floor(this.options.touchStartThreshold / (this.nativeDraggable && window.devicePixelRatio || 1))) {\n this._disableDelayedDrag();\n }\n },\n _disableDelayedDrag: function _disableDelayedDrag() {\n dragEl && _disableDraggable(dragEl);\n clearTimeout(this._dragStartTimer);\n\n this._disableDelayedDragEvents();\n },\n _disableDelayedDragEvents: function _disableDelayedDragEvents() {\n var ownerDocument = this.el.ownerDocument;\n off(ownerDocument, 'mouseup', this._disableDelayedDrag);\n off(ownerDocument, 'touchend', this._disableDelayedDrag);\n off(ownerDocument, 'touchcancel', this._disableDelayedDrag);\n off(ownerDocument, 'mousemove', this._delayedDragTouchMoveHandler);\n off(ownerDocument, 'touchmove', this._delayedDragTouchMoveHandler);\n off(ownerDocument, 'pointermove', this._delayedDragTouchMoveHandler);\n },\n _triggerDragStart: function _triggerDragStart(\n /** Event */\n evt,\n /** Touch */\n touch) {\n touch = touch || evt.pointerType == 'touch' && evt;\n\n if (!this.nativeDraggable || touch) {\n if (this.options.supportPointer) {\n on(document, 'pointermove', this._onTouchMove);\n } else if (touch) {\n on(document, 'touchmove', this._onTouchMove);\n } else {\n on(document, 'mousemove', this._onTouchMove);\n }\n } else {\n on(dragEl, 'dragend', this);\n on(rootEl, 'dragstart', this._onDragStart);\n }\n\n try {\n if (document.selection) {\n // Timeout neccessary for IE9\n _nextTick(function () {\n document.selection.empty();\n });\n } else {\n window.getSelection().removeAllRanges();\n }\n } catch (err) {}\n },\n _dragStarted: function _dragStarted(fallback, evt) {\n awaitingDragStarted = false;\n\n if (rootEl && dragEl) {\n pluginEvent('dragStarted', this, {\n evt: evt\n });\n\n if (this.nativeDraggable) {\n on(document, 'dragover', _checkOutsideTargetEl);\n }\n\n var options = this.options; // Apply effect\n\n !fallback && toggleClass(dragEl, options.dragClass, false);\n toggleClass(dragEl, options.ghostClass, true);\n Sortable.active = this;\n fallback && this._appendGhost(); // Drag start event\n\n _dispatchEvent({\n sortable: this,\n name: 'start',\n originalEvent: evt\n });\n } else {\n this._nulling();\n }\n },\n _emulateDragOver: function _emulateDragOver() {\n if (touchEvt) {\n this._lastX = touchEvt.clientX;\n this._lastY = touchEvt.clientY;\n\n _hideGhostForTarget();\n\n var target = document.elementFromPoint(touchEvt.clientX, touchEvt.clientY);\n var parent = target;\n\n while (target && target.shadowRoot) {\n target = target.shadowRoot.elementFromPoint(touchEvt.clientX, touchEvt.clientY);\n if (target === parent) break;\n parent = target;\n }\n\n dragEl.parentNode[expando]._isOutsideThisEl(target);\n\n if (parent) {\n do {\n if (parent[expando]) {\n var inserted = void 0;\n inserted = parent[expando]._onDragOver({\n clientX: touchEvt.clientX,\n clientY: touchEvt.clientY,\n target: target,\n rootEl: parent\n });\n\n if (inserted && !this.options.dragoverBubble) {\n break;\n }\n }\n\n target = parent; // store last element\n }\n /* jshint boss:true */\n while (parent = getParentOrHost(parent));\n }\n\n _unhideGhostForTarget();\n }\n },\n _onTouchMove: function _onTouchMove(\n /**TouchEvent*/\n evt) {\n if (tapEvt) {\n var options = this.options,\n fallbackTolerance = options.fallbackTolerance,\n fallbackOffset = options.fallbackOffset,\n touch = evt.touches ? evt.touches[0] : evt,\n ghostMatrix = ghostEl && matrix(ghostEl, true),\n scaleX = ghostEl && ghostMatrix && ghostMatrix.a,\n scaleY = ghostEl && ghostMatrix && ghostMatrix.d,\n relativeScrollOffset = PositionGhostAbsolutely && ghostRelativeParent && getRelativeScrollOffset(ghostRelativeParent),\n dx = (touch.clientX - tapEvt.clientX + fallbackOffset.x) / (scaleX || 1) + (relativeScrollOffset ? relativeScrollOffset[0] - ghostRelativeParentInitialScroll[0] : 0) / (scaleX || 1),\n dy = (touch.clientY - tapEvt.clientY + fallbackOffset.y) / (scaleY || 1) + (relativeScrollOffset ? relativeScrollOffset[1] - ghostRelativeParentInitialScroll[1] : 0) / (scaleY || 1); // only set the status to dragging, when we are actually dragging\n\n if (!Sortable.active && !awaitingDragStarted) {\n if (fallbackTolerance && Math.max(Math.abs(touch.clientX - this._lastX), Math.abs(touch.clientY - this._lastY)) < fallbackTolerance) {\n return;\n }\n\n this._onDragStart(evt, true);\n }\n\n if (ghostEl) {\n if (ghostMatrix) {\n ghostMatrix.e += dx - (lastDx || 0);\n ghostMatrix.f += dy - (lastDy || 0);\n } else {\n ghostMatrix = {\n a: 1,\n b: 0,\n c: 0,\n d: 1,\n e: dx,\n f: dy\n };\n }\n\n var cssMatrix = \"matrix(\".concat(ghostMatrix.a, \",\").concat(ghostMatrix.b, \",\").concat(ghostMatrix.c, \",\").concat(ghostMatrix.d, \",\").concat(ghostMatrix.e, \",\").concat(ghostMatrix.f, \")\");\n css(ghostEl, 'webkitTransform', cssMatrix);\n css(ghostEl, 'mozTransform', cssMatrix);\n css(ghostEl, 'msTransform', cssMatrix);\n css(ghostEl, 'transform', cssMatrix);\n lastDx = dx;\n lastDy = dy;\n touchEvt = touch;\n }\n\n evt.cancelable && evt.preventDefault();\n }\n },\n _appendGhost: function _appendGhost() {\n // Bug if using scale(): https://stackoverflow.com/questions/2637058\n // Not being adjusted for\n if (!ghostEl) {\n var container = this.options.fallbackOnBody ? document.body : rootEl,\n rect = getRect(dragEl, true, PositionGhostAbsolutely, true, container),\n options = this.options; // Position absolutely\n\n if (PositionGhostAbsolutely) {\n // Get relatively positioned parent\n ghostRelativeParent = container;\n\n while (css(ghostRelativeParent, 'position') === 'static' && css(ghostRelativeParent, 'transform') === 'none' && ghostRelativeParent !== document) {\n ghostRelativeParent = ghostRelativeParent.parentNode;\n }\n\n if (ghostRelativeParent !== document.body && ghostRelativeParent !== document.documentElement) {\n if (ghostRelativeParent === document) ghostRelativeParent = getWindowScrollingElement();\n rect.top += ghostRelativeParent.scrollTop;\n rect.left += ghostRelativeParent.scrollLeft;\n } else {\n ghostRelativeParent = getWindowScrollingElement();\n }\n\n ghostRelativeParentInitialScroll = getRelativeScrollOffset(ghostRelativeParent);\n }\n\n ghostEl = dragEl.cloneNode(true);\n toggleClass(ghostEl, options.ghostClass, false);\n toggleClass(ghostEl, options.fallbackClass, true);\n toggleClass(ghostEl, options.dragClass, true);\n css(ghostEl, 'transition', '');\n css(ghostEl, 'transform', '');\n css(ghostEl, 'box-sizing', 'border-box');\n css(ghostEl, 'margin', 0);\n css(ghostEl, 'top', rect.top);\n css(ghostEl, 'left', rect.left);\n css(ghostEl, 'width', rect.width);\n css(ghostEl, 'height', rect.height);\n css(ghostEl, 'opacity', '0.8');\n css(ghostEl, 'position', PositionGhostAbsolutely ? 'absolute' : 'fixed');\n css(ghostEl, 'zIndex', '100000');\n css(ghostEl, 'pointerEvents', 'none');\n Sortable.ghost = ghostEl;\n container.appendChild(ghostEl); // Set transform-origin\n\n css(ghostEl, 'transform-origin', tapDistanceLeft / parseInt(ghostEl.style.width) * 100 + '% ' + tapDistanceTop / parseInt(ghostEl.style.height) * 100 + '%');\n }\n },\n _onDragStart: function _onDragStart(\n /**Event*/\n evt,\n /**boolean*/\n fallback) {\n var _this = this;\n\n var dataTransfer = evt.dataTransfer;\n var options = _this.options;\n pluginEvent('dragStart', this, {\n evt: evt\n });\n\n if (Sortable.eventCanceled) {\n this._onDrop();\n\n return;\n }\n\n pluginEvent('setupClone', this);\n\n if (!Sortable.eventCanceled) {\n cloneEl = clone(dragEl);\n cloneEl.removeAttribute(\"id\");\n cloneEl.draggable = false;\n cloneEl.style['will-change'] = '';\n\n this._hideClone();\n\n toggleClass(cloneEl, this.options.chosenClass, false);\n Sortable.clone = cloneEl;\n } // #1143: IFrame support workaround\n\n\n _this.cloneId = _nextTick(function () {\n pluginEvent('clone', _this);\n if (Sortable.eventCanceled) return;\n\n if (!_this.options.removeCloneOnHide) {\n rootEl.insertBefore(cloneEl, dragEl);\n }\n\n _this._hideClone();\n\n _dispatchEvent({\n sortable: _this,\n name: 'clone'\n });\n });\n !fallback && toggleClass(dragEl, options.dragClass, true); // Set proper drop events\n\n if (fallback) {\n ignoreNextClick = true;\n _this._loopId = setInterval(_this._emulateDragOver, 50);\n } else {\n // Undo what was set in _prepareDragStart before drag started\n off(document, 'mouseup', _this._onDrop);\n off(document, 'touchend', _this._onDrop);\n off(document, 'touchcancel', _this._onDrop);\n\n if (dataTransfer) {\n dataTransfer.effectAllowed = 'move';\n options.setData && options.setData.call(_this, dataTransfer, dragEl);\n }\n\n on(document, 'drop', _this); // #1276 fix:\n\n css(dragEl, 'transform', 'translateZ(0)');\n }\n\n awaitingDragStarted = true;\n _this._dragStartId = _nextTick(_this._dragStarted.bind(_this, fallback, evt));\n on(document, 'selectstart', _this);\n moved = true;\n\n if (Safari) {\n css(document.body, 'user-select', 'none');\n }\n },\n // Returns true - if no further action is needed (either inserted or another condition)\n _onDragOver: function _onDragOver(\n /**Event*/\n evt) {\n var el = this.el,\n target = evt.target,\n dragRect,\n targetRect,\n revert,\n options = this.options,\n group = options.group,\n activeSortable = Sortable.active,\n isOwner = activeGroup === group,\n canSort = options.sort,\n fromSortable = putSortable || activeSortable,\n vertical,\n _this = this,\n completedFired = false;\n\n if (_silent) return;\n\n function dragOverEvent(name, extra) {\n pluginEvent(name, _this, _objectSpread2({\n evt: evt,\n isOwner: isOwner,\n axis: vertical ? 'vertical' : 'horizontal',\n revert: revert,\n dragRect: dragRect,\n targetRect: targetRect,\n canSort: canSort,\n fromSortable: fromSortable,\n target: target,\n completed: completed,\n onMove: function onMove(target, after) {\n return _onMove(rootEl, el, dragEl, dragRect, target, getRect(target), evt, after);\n },\n changed: changed\n }, extra));\n } // Capture animation state\n\n\n function capture() {\n dragOverEvent('dragOverAnimationCapture');\n\n _this.captureAnimationState();\n\n if (_this !== fromSortable) {\n fromSortable.captureAnimationState();\n }\n } // Return invocation when dragEl is inserted (or completed)\n\n\n function completed(insertion) {\n dragOverEvent('dragOverCompleted', {\n insertion: insertion\n });\n\n if (insertion) {\n // Clones must be hidden before folding animation to capture dragRectAbsolute properly\n if (isOwner) {\n activeSortable._hideClone();\n } else {\n activeSortable._showClone(_this);\n }\n\n if (_this !== fromSortable) {\n // Set ghost class to new sortable's ghost class\n toggleClass(dragEl, putSortable ? putSortable.options.ghostClass : activeSortable.options.ghostClass, false);\n toggleClass(dragEl, options.ghostClass, true);\n }\n\n if (putSortable !== _this && _this !== Sortable.active) {\n putSortable = _this;\n } else if (_this === Sortable.active && putSortable) {\n putSortable = null;\n } // Animation\n\n\n if (fromSortable === _this) {\n _this._ignoreWhileAnimating = target;\n }\n\n _this.animateAll(function () {\n dragOverEvent('dragOverAnimationComplete');\n _this._ignoreWhileAnimating = null;\n });\n\n if (_this !== fromSortable) {\n fromSortable.animateAll();\n fromSortable._ignoreWhileAnimating = null;\n }\n } // Null lastTarget if it is not inside a previously swapped element\n\n\n if (target === dragEl && !dragEl.animated || target === el && !target.animated) {\n lastTarget = null;\n } // no bubbling and not fallback\n\n\n if (!options.dragoverBubble && !evt.rootEl && target !== document) {\n dragEl.parentNode[expando]._isOutsideThisEl(evt.target); // Do not detect for empty insert if already inserted\n\n\n !insertion && nearestEmptyInsertDetectEvent(evt);\n }\n\n !options.dragoverBubble && evt.stopPropagation && evt.stopPropagation();\n return completedFired = true;\n } // Call when dragEl has been inserted\n\n\n function changed() {\n newIndex = index(dragEl);\n newDraggableIndex = index(dragEl, options.draggable);\n\n _dispatchEvent({\n sortable: _this,\n name: 'change',\n toEl: el,\n newIndex: newIndex,\n newDraggableIndex: newDraggableIndex,\n originalEvent: evt\n });\n }\n\n if (evt.preventDefault !== void 0) {\n evt.cancelable && evt.preventDefault();\n }\n\n target = closest(target, options.draggable, el, true);\n dragOverEvent('dragOver');\n if (Sortable.eventCanceled) return completedFired;\n\n if (dragEl.contains(evt.target) || target.animated && target.animatingX && target.animatingY || _this._ignoreWhileAnimating === target) {\n return completed(false);\n }\n\n ignoreNextClick = false;\n\n if (activeSortable && !options.disabled && (isOwner ? canSort || (revert = parentEl !== rootEl) // Reverting item into the original list\n : putSortable === this || (this.lastPutMode = activeGroup.checkPull(this, activeSortable, dragEl, evt)) && group.checkPut(this, activeSortable, dragEl, evt))) {\n vertical = this._getDirection(evt, target) === 'vertical';\n dragRect = getRect(dragEl);\n dragOverEvent('dragOverValid');\n if (Sortable.eventCanceled) return completedFired;\n\n if (revert) {\n parentEl = rootEl; // actualization\n\n capture();\n\n this._hideClone();\n\n dragOverEvent('revert');\n\n if (!Sortable.eventCanceled) {\n if (nextEl) {\n rootEl.insertBefore(dragEl, nextEl);\n } else {\n rootEl.appendChild(dragEl);\n }\n }\n\n return completed(true);\n }\n\n var elLastChild = lastChild(el, options.draggable);\n\n if (!elLastChild || _ghostIsLast(evt, vertical, this) && !elLastChild.animated) {\n // Insert to end of list\n // If already at end of list: Do not insert\n if (elLastChild === dragEl) {\n return completed(false);\n } // if there is a last element, it is the target\n\n\n if (elLastChild && el === evt.target) {\n target = elLastChild;\n }\n\n if (target) {\n targetRect = getRect(target);\n }\n\n if (_onMove(rootEl, el, dragEl, dragRect, target, targetRect, evt, !!target) !== false) {\n capture();\n\n if (elLastChild && elLastChild.nextSibling) {\n // the last draggable element is not the last node\n el.insertBefore(dragEl, elLastChild.nextSibling);\n } else {\n el.appendChild(dragEl);\n }\n\n parentEl = el; // actualization\n\n changed();\n return completed(true);\n }\n } else if (elLastChild && _ghostIsFirst(evt, vertical, this)) {\n // Insert to start of list\n var firstChild = getChild(el, 0, options, true);\n\n if (firstChild === dragEl) {\n return completed(false);\n }\n\n target = firstChild;\n targetRect = getRect(target);\n\n if (_onMove(rootEl, el, dragEl, dragRect, target, targetRect, evt, false) !== false) {\n capture();\n el.insertBefore(dragEl, firstChild);\n parentEl = el; // actualization\n\n changed();\n return completed(true);\n }\n } else if (target.parentNode === el) {\n targetRect = getRect(target);\n var direction = 0,\n targetBeforeFirstSwap,\n differentLevel = dragEl.parentNode !== el,\n differentRowCol = !_dragElInRowColumn(dragEl.animated && dragEl.toRect || dragRect, target.animated && target.toRect || targetRect, vertical),\n side1 = vertical ? 'top' : 'left',\n scrolledPastTop = isScrolledPast(target, 'top', 'top') || isScrolledPast(dragEl, 'top', 'top'),\n scrollBefore = scrolledPastTop ? scrolledPastTop.scrollTop : void 0;\n\n if (lastTarget !== target) {\n targetBeforeFirstSwap = targetRect[side1];\n pastFirstInvertThresh = false;\n isCircumstantialInvert = !differentRowCol && options.invertSwap || differentLevel;\n }\n\n direction = _getSwapDirection(evt, target, targetRect, vertical, differentRowCol ? 1 : options.swapThreshold, options.invertedSwapThreshold == null ? options.swapThreshold : options.invertedSwapThreshold, isCircumstantialInvert, lastTarget === target);\n var sibling;\n\n if (direction !== 0) {\n // Check if target is beside dragEl in respective direction (ignoring hidden elements)\n var dragIndex = index(dragEl);\n\n do {\n dragIndex -= direction;\n sibling = parentEl.children[dragIndex];\n } while (sibling && (css(sibling, 'display') === 'none' || sibling === ghostEl));\n } // If dragEl is already beside target: Do not insert\n\n\n if (direction === 0 || sibling === target) {\n return completed(false);\n }\n\n lastTarget = target;\n lastDirection = direction;\n var nextSibling = target.nextElementSibling,\n after = false;\n after = direction === 1;\n\n var moveVector = _onMove(rootEl, el, dragEl, dragRect, target, targetRect, evt, after);\n\n if (moveVector !== false) {\n if (moveVector === 1 || moveVector === -1) {\n after = moveVector === 1;\n }\n\n _silent = true;\n setTimeout(_unsilent, 30);\n capture();\n\n if (after && !nextSibling) {\n el.appendChild(dragEl);\n } else {\n target.parentNode.insertBefore(dragEl, after ? nextSibling : target);\n } // Undo chrome's scroll adjustment (has no effect on other browsers)\n\n\n if (scrolledPastTop) {\n scrollBy(scrolledPastTop, 0, scrollBefore - scrolledPastTop.scrollTop);\n }\n\n parentEl = dragEl.parentNode; // actualization\n // must be done before animation\n\n if (targetBeforeFirstSwap !== undefined && !isCircumstantialInvert) {\n targetMoveDistance = Math.abs(targetBeforeFirstSwap - getRect(target)[side1]);\n }\n\n changed();\n return completed(true);\n }\n }\n\n if (el.contains(dragEl)) {\n return completed(false);\n }\n }\n\n return false;\n },\n _ignoreWhileAnimating: null,\n _offMoveEvents: function _offMoveEvents() {\n off(document, 'mousemove', this._onTouchMove);\n off(document, 'touchmove', this._onTouchMove);\n off(document, 'pointermove', this._onTouchMove);\n off(document, 'dragover', nearestEmptyInsertDetectEvent);\n off(document, 'mousemove', nearestEmptyInsertDetectEvent);\n off(document, 'touchmove', nearestEmptyInsertDetectEvent);\n },\n _offUpEvents: function _offUpEvents() {\n var ownerDocument = this.el.ownerDocument;\n off(ownerDocument, 'mouseup', this._onDrop);\n off(ownerDocument, 'touchend', this._onDrop);\n off(ownerDocument, 'pointerup', this._onDrop);\n off(ownerDocument, 'touchcancel', this._onDrop);\n off(document, 'selectstart', this);\n },\n _onDrop: function _onDrop(\n /**Event*/\n evt) {\n var el = this.el,\n options = this.options; // Get the index of the dragged element within its parent\n\n newIndex = index(dragEl);\n newDraggableIndex = index(dragEl, options.draggable);\n pluginEvent('drop', this, {\n evt: evt\n });\n parentEl = dragEl && dragEl.parentNode; // Get again after plugin event\n\n newIndex = index(dragEl);\n newDraggableIndex = index(dragEl, options.draggable);\n\n if (Sortable.eventCanceled) {\n this._nulling();\n\n return;\n }\n\n awaitingDragStarted = false;\n isCircumstantialInvert = false;\n pastFirstInvertThresh = false;\n clearInterval(this._loopId);\n clearTimeout(this._dragStartTimer);\n\n _cancelNextTick(this.cloneId);\n\n _cancelNextTick(this._dragStartId); // Unbind events\n\n\n if (this.nativeDraggable) {\n off(document, 'drop', this);\n off(el, 'dragstart', this._onDragStart);\n }\n\n this._offMoveEvents();\n\n this._offUpEvents();\n\n if (Safari) {\n css(document.body, 'user-select', '');\n }\n\n css(dragEl, 'transform', '');\n\n if (evt) {\n if (moved) {\n evt.cancelable && evt.preventDefault();\n !options.dropBubble && evt.stopPropagation();\n }\n\n ghostEl && ghostEl.parentNode && ghostEl.parentNode.removeChild(ghostEl);\n\n if (rootEl === parentEl || putSortable && putSortable.lastPutMode !== 'clone') {\n // Remove clone(s)\n cloneEl && cloneEl.parentNode && cloneEl.parentNode.removeChild(cloneEl);\n }\n\n if (dragEl) {\n if (this.nativeDraggable) {\n off(dragEl, 'dragend', this);\n }\n\n _disableDraggable(dragEl);\n\n dragEl.style['will-change'] = ''; // Remove classes\n // ghostClass is added in dragStarted\n\n if (moved && !awaitingDragStarted) {\n toggleClass(dragEl, putSortable ? putSortable.options.ghostClass : this.options.ghostClass, false);\n }\n\n toggleClass(dragEl, this.options.chosenClass, false); // Drag stop event\n\n _dispatchEvent({\n sortable: this,\n name: 'unchoose',\n toEl: parentEl,\n newIndex: null,\n newDraggableIndex: null,\n originalEvent: evt\n });\n\n if (rootEl !== parentEl) {\n if (newIndex >= 0) {\n // Add event\n _dispatchEvent({\n rootEl: parentEl,\n name: 'add',\n toEl: parentEl,\n fromEl: rootEl,\n originalEvent: evt\n }); // Remove event\n\n\n _dispatchEvent({\n sortable: this,\n name: 'remove',\n toEl: parentEl,\n originalEvent: evt\n }); // drag from one list and drop into another\n\n\n _dispatchEvent({\n rootEl: parentEl,\n name: 'sort',\n toEl: parentEl,\n fromEl: rootEl,\n originalEvent: evt\n });\n\n _dispatchEvent({\n sortable: this,\n name: 'sort',\n toEl: parentEl,\n originalEvent: evt\n });\n }\n\n putSortable && putSortable.save();\n } else {\n if (newIndex !== oldIndex) {\n if (newIndex >= 0) {\n // drag & drop within the same list\n _dispatchEvent({\n sortable: this,\n name: 'update',\n toEl: parentEl,\n originalEvent: evt\n });\n\n _dispatchEvent({\n sortable: this,\n name: 'sort',\n toEl: parentEl,\n originalEvent: evt\n });\n }\n }\n }\n\n if (Sortable.active) {\n /* jshint eqnull:true */\n if (newIndex == null || newIndex === -1) {\n newIndex = oldIndex;\n newDraggableIndex = oldDraggableIndex;\n }\n\n _dispatchEvent({\n sortable: this,\n name: 'end',\n toEl: parentEl,\n originalEvent: evt\n }); // Save sorting\n\n\n this.save();\n }\n }\n }\n\n this._nulling();\n },\n _nulling: function _nulling() {\n pluginEvent('nulling', this);\n rootEl = dragEl = parentEl = ghostEl = nextEl = cloneEl = lastDownEl = cloneHidden = tapEvt = touchEvt = moved = newIndex = newDraggableIndex = oldIndex = oldDraggableIndex = lastTarget = lastDirection = putSortable = activeGroup = Sortable.dragged = Sortable.ghost = Sortable.clone = Sortable.active = null;\n savedInputChecked.forEach(function (el) {\n el.checked = true;\n });\n savedInputChecked.length = lastDx = lastDy = 0;\n },\n handleEvent: function handleEvent(\n /**Event*/\n evt) {\n switch (evt.type) {\n case 'drop':\n case 'dragend':\n this._onDrop(evt);\n\n break;\n\n case 'dragenter':\n case 'dragover':\n if (dragEl) {\n this._onDragOver(evt);\n\n _globalDragOver(evt);\n }\n\n break;\n\n case 'selectstart':\n evt.preventDefault();\n break;\n }\n },\n\n /**\r\n * Serializes the item into an array of string.\r\n * @returns {String[]}\r\n */\n toArray: function toArray() {\n var order = [],\n el,\n children = this.el.children,\n i = 0,\n n = children.length,\n options = this.options;\n\n for (; i < n; i++) {\n el = children[i];\n\n if (closest(el, options.draggable, this.el, false)) {\n order.push(el.getAttribute(options.dataIdAttr) || _generateId(el));\n }\n }\n\n return order;\n },\n\n /**\r\n * Sorts the elements according to the array.\r\n * @param {String[]} order order of the items\r\n */\n sort: function sort(order, useAnimation) {\n var items = {},\n rootEl = this.el;\n this.toArray().forEach(function (id, i) {\n var el = rootEl.children[i];\n\n if (closest(el, this.options.draggable, rootEl, false)) {\n items[id] = el;\n }\n }, this);\n useAnimation && this.captureAnimationState();\n order.forEach(function (id) {\n if (items[id]) {\n rootEl.removeChild(items[id]);\n rootEl.appendChild(items[id]);\n }\n });\n useAnimation && this.animateAll();\n },\n\n /**\r\n * Save the current sorting\r\n */\n save: function save() {\n var store = this.options.store;\n store && store.set && store.set(this);\n },\n\n /**\r\n * For each element in the set, get the first element that matches the selector by testing the element itself and traversing up through its ancestors in the DOM tree.\r\n * @param {HTMLElement} el\r\n * @param {String} [selector] default: `options.draggable`\r\n * @returns {HTMLElement|null}\r\n */\n closest: function closest$1(el, selector) {\n return closest(el, selector || this.options.draggable, this.el, false);\n },\n\n /**\r\n * Set/get option\r\n * @param {string} name\r\n * @param {*} [value]\r\n * @returns {*}\r\n */\n option: function option(name, value) {\n var options = this.options;\n\n if (value === void 0) {\n return options[name];\n } else {\n var modifiedValue = PluginManager.modifyOption(this, name, value);\n\n if (typeof modifiedValue !== 'undefined') {\n options[name] = modifiedValue;\n } else {\n options[name] = value;\n }\n\n if (name === 'group') {\n _prepareGroup(options);\n }\n }\n },\n\n /**\r\n * Destroy\r\n */\n destroy: function destroy() {\n pluginEvent('destroy', this);\n var el = this.el;\n el[expando] = null;\n off(el, 'mousedown', this._onTapStart);\n off(el, 'touchstart', this._onTapStart);\n off(el, 'pointerdown', this._onTapStart);\n\n if (this.nativeDraggable) {\n off(el, 'dragover', this);\n off(el, 'dragenter', this);\n } // Remove draggable attributes\n\n\n Array.prototype.forEach.call(el.querySelectorAll('[draggable]'), function (el) {\n el.removeAttribute('draggable');\n });\n\n this._onDrop();\n\n this._disableDelayedDragEvents();\n\n sortables.splice(sortables.indexOf(this.el), 1);\n this.el = el = null;\n },\n _hideClone: function _hideClone() {\n if (!cloneHidden) {\n pluginEvent('hideClone', this);\n if (Sortable.eventCanceled) return;\n css(cloneEl, 'display', 'none');\n\n if (this.options.removeCloneOnHide && cloneEl.parentNode) {\n cloneEl.parentNode.removeChild(cloneEl);\n }\n\n cloneHidden = true;\n }\n },\n _showClone: function _showClone(putSortable) {\n if (putSortable.lastPutMode !== 'clone') {\n this._hideClone();\n\n return;\n }\n\n if (cloneHidden) {\n pluginEvent('showClone', this);\n if (Sortable.eventCanceled) return; // show clone at dragEl or original position\n\n if (dragEl.parentNode == rootEl && !this.options.group.revertClone) {\n rootEl.insertBefore(cloneEl, dragEl);\n } else if (nextEl) {\n rootEl.insertBefore(cloneEl, nextEl);\n } else {\n rootEl.appendChild(cloneEl);\n }\n\n if (this.options.group.revertClone) {\n this.animate(dragEl, cloneEl);\n }\n\n css(cloneEl, 'display', '');\n cloneHidden = false;\n }\n }\n};\n\nfunction _globalDragOver(\n/**Event*/\nevt) {\n if (evt.dataTransfer) {\n evt.dataTransfer.dropEffect = 'move';\n }\n\n evt.cancelable && evt.preventDefault();\n}\n\nfunction _onMove(fromEl, toEl, dragEl, dragRect, targetEl, targetRect, originalEvent, willInsertAfter) {\n var evt,\n sortable = fromEl[expando],\n onMoveFn = sortable.options.onMove,\n retVal; // Support for new CustomEvent feature\n\n if (window.CustomEvent && !IE11OrLess && !Edge) {\n evt = new CustomEvent('move', {\n bubbles: true,\n cancelable: true\n });\n } else {\n evt = document.createEvent('Event');\n evt.initEvent('move', true, true);\n }\n\n evt.to = toEl;\n evt.from = fromEl;\n evt.dragged = dragEl;\n evt.draggedRect = dragRect;\n evt.related = targetEl || toEl;\n evt.relatedRect = targetRect || getRect(toEl);\n evt.willInsertAfter = willInsertAfter;\n evt.originalEvent = originalEvent;\n fromEl.dispatchEvent(evt);\n\n if (onMoveFn) {\n retVal = onMoveFn.call(sortable, evt, originalEvent);\n }\n\n return retVal;\n}\n\nfunction _disableDraggable(el) {\n el.draggable = false;\n}\n\nfunction _unsilent() {\n _silent = false;\n}\n\nfunction _ghostIsFirst(evt, vertical, sortable) {\n var firstElRect = getRect(getChild(sortable.el, 0, sortable.options, true));\n var childContainingRect = getChildContainingRectFromElement(sortable.el, sortable.options, ghostEl);\n var spacer = 10;\n return vertical ? evt.clientX < childContainingRect.left - spacer || evt.clientY < firstElRect.top && evt.clientX < firstElRect.right : evt.clientY < childContainingRect.top - spacer || evt.clientY < firstElRect.bottom && evt.clientX < firstElRect.left;\n}\n\nfunction _ghostIsLast(evt, vertical, sortable) {\n var lastElRect = getRect(lastChild(sortable.el, sortable.options.draggable));\n var childContainingRect = getChildContainingRectFromElement(sortable.el, sortable.options, ghostEl);\n var spacer = 10;\n return vertical ? evt.clientX > childContainingRect.right + spacer || evt.clientY > lastElRect.bottom && evt.clientX > lastElRect.left : evt.clientY > childContainingRect.bottom + spacer || evt.clientX > lastElRect.right && evt.clientY > lastElRect.top;\n}\n\nfunction _getSwapDirection(evt, target, targetRect, vertical, swapThreshold, invertedSwapThreshold, invertSwap, isLastTarget) {\n var mouseOnAxis = vertical ? evt.clientY : evt.clientX,\n targetLength = vertical ? targetRect.height : targetRect.width,\n targetS1 = vertical ? targetRect.top : targetRect.left,\n targetS2 = vertical ? targetRect.bottom : targetRect.right,\n invert = false;\n\n if (!invertSwap) {\n // Never invert or create dragEl shadow when target movemenet causes mouse to move past the end of regular swapThreshold\n if (isLastTarget && targetMoveDistance < targetLength * swapThreshold) {\n // multiplied only by swapThreshold because mouse will already be inside target by (1 - threshold) * targetLength / 2\n // check if past first invert threshold on side opposite of lastDirection\n if (!pastFirstInvertThresh && (lastDirection === 1 ? mouseOnAxis > targetS1 + targetLength * invertedSwapThreshold / 2 : mouseOnAxis < targetS2 - targetLength * invertedSwapThreshold / 2)) {\n // past first invert threshold, do not restrict inverted threshold to dragEl shadow\n pastFirstInvertThresh = true;\n }\n\n if (!pastFirstInvertThresh) {\n // dragEl shadow (target move distance shadow)\n if (lastDirection === 1 ? mouseOnAxis < targetS1 + targetMoveDistance // over dragEl shadow\n : mouseOnAxis > targetS2 - targetMoveDistance) {\n return -lastDirection;\n }\n } else {\n invert = true;\n }\n } else {\n // Regular\n if (mouseOnAxis > targetS1 + targetLength * (1 - swapThreshold) / 2 && mouseOnAxis < targetS2 - targetLength * (1 - swapThreshold) / 2) {\n return _getInsertDirection(target);\n }\n }\n }\n\n invert = invert || invertSwap;\n\n if (invert) {\n // Invert of regular\n if (mouseOnAxis < targetS1 + targetLength * invertedSwapThreshold / 2 || mouseOnAxis > targetS2 - targetLength * invertedSwapThreshold / 2) {\n return mouseOnAxis > targetS1 + targetLength / 2 ? 1 : -1;\n }\n }\n\n return 0;\n}\n/**\r\n * Gets the direction dragEl must be swapped relative to target in order to make it\r\n * seem that dragEl has been \"inserted\" into that element's position\r\n * @param {HTMLElement} target The target whose position dragEl is being inserted at\r\n * @return {Number} Direction dragEl must be swapped\r\n */\n\n\nfunction _getInsertDirection(target) {\n if (index(dragEl) < index(target)) {\n return 1;\n } else {\n return -1;\n }\n}\n/**\r\n * Generate id\r\n * @param {HTMLElement} el\r\n * @returns {String}\r\n * @private\r\n */\n\n\nfunction _generateId(el) {\n var str = el.tagName + el.className + el.src + el.href + el.textContent,\n i = str.length,\n sum = 0;\n\n while (i--) {\n sum += str.charCodeAt(i);\n }\n\n return sum.toString(36);\n}\n\nfunction _saveInputCheckedState(root) {\n savedInputChecked.length = 0;\n var inputs = root.getElementsByTagName('input');\n var idx = inputs.length;\n\n while (idx--) {\n var el = inputs[idx];\n el.checked && savedInputChecked.push(el);\n }\n}\n\nfunction _nextTick(fn) {\n return setTimeout(fn, 0);\n}\n\nfunction _cancelNextTick(id) {\n return clearTimeout(id);\n} // Fixed #973:\n\n\nif (documentExists) {\n on(document, 'touchmove', function (evt) {\n if ((Sortable.active || awaitingDragStarted) && evt.cancelable) {\n evt.preventDefault();\n }\n });\n} // Export utils\n\n\nSortable.utils = {\n on: on,\n off: off,\n css: css,\n find: find,\n is: function is(el, selector) {\n return !!closest(el, selector, el, false);\n },\n extend: extend,\n throttle: throttle,\n closest: closest,\n toggleClass: toggleClass,\n clone: clone,\n index: index,\n nextTick: _nextTick,\n cancelNextTick: _cancelNextTick,\n detectDirection: _detectDirection,\n getChild: getChild,\n expando: expando\n};\n/**\r\n * Get the Sortable instance of an element\r\n * @param {HTMLElement} element The element\r\n * @return {Sortable|undefined} The instance of Sortable\r\n */\n\nSortable.get = function (element) {\n return element[expando];\n};\n/**\r\n * Mount a plugin to Sortable\r\n * @param {...SortablePlugin|SortablePlugin[]} plugins Plugins being mounted\r\n */\n\n\nSortable.mount = function () {\n for (var _len = arguments.length, plugins = new Array(_len), _key = 0; _key < _len; _key++) {\n plugins[_key] = arguments[_key];\n }\n\n if (plugins[0].constructor === Array) plugins = plugins[0];\n plugins.forEach(function (plugin) {\n if (!plugin.prototype || !plugin.prototype.constructor) {\n throw \"Sortable: Mounted plugin must be a constructor function, not \".concat({}.toString.call(plugin));\n }\n\n if (plugin.utils) Sortable.utils = _objectSpread2(_objectSpread2({}, Sortable.utils), plugin.utils);\n PluginManager.mount(plugin);\n });\n};\n/**\r\n * Create sortable instance\r\n * @param {HTMLElement} el\r\n * @param {Object} [options]\r\n */\n\n\nSortable.create = function (el, options) {\n return new Sortable(el, options);\n}; // Export\n\n\nSortable.version = version;\nvar autoScrolls = [],\n scrollEl,\n scrollRootEl,\n scrolling = false,\n lastAutoScrollX,\n lastAutoScrollY,\n touchEvt$1,\n pointerElemChangedInterval;\n\nfunction AutoScrollPlugin() {\n function AutoScroll() {\n this.defaults = {\n scroll: true,\n forceAutoScrollFallback: false,\n scrollSensitivity: 30,\n scrollSpeed: 10,\n bubbleScroll: true\n }; // Bind all private methods\n\n for (var fn in this) {\n if (fn.charAt(0) === '_' && typeof this[fn] === 'function') {\n this[fn] = this[fn].bind(this);\n }\n }\n }\n\n AutoScroll.prototype = {\n dragStarted: function dragStarted(_ref) {\n var originalEvent = _ref.originalEvent;\n\n if (this.sortable.nativeDraggable) {\n on(document, 'dragover', this._handleAutoScroll);\n } else {\n if (this.options.supportPointer) {\n on(document, 'pointermove', this._handleFallbackAutoScroll);\n } else if (originalEvent.touches) {\n on(document, 'touchmove', this._handleFallbackAutoScroll);\n } else {\n on(document, 'mousemove', this._handleFallbackAutoScroll);\n }\n }\n },\n dragOverCompleted: function dragOverCompleted(_ref2) {\n var originalEvent = _ref2.originalEvent; // For when bubbling is canceled and using fallback (fallback 'touchmove' always reached)\n\n if (!this.options.dragOverBubble && !originalEvent.rootEl) {\n this._handleAutoScroll(originalEvent);\n }\n },\n drop: function drop() {\n if (this.sortable.nativeDraggable) {\n off(document, 'dragover', this._handleAutoScroll);\n } else {\n off(document, 'pointermove', this._handleFallbackAutoScroll);\n off(document, 'touchmove', this._handleFallbackAutoScroll);\n off(document, 'mousemove', this._handleFallbackAutoScroll);\n }\n\n clearPointerElemChangedInterval();\n clearAutoScrolls();\n cancelThrottle();\n },\n nulling: function nulling() {\n touchEvt$1 = scrollRootEl = scrollEl = scrolling = pointerElemChangedInterval = lastAutoScrollX = lastAutoScrollY = null;\n autoScrolls.length = 0;\n },\n _handleFallbackAutoScroll: function _handleFallbackAutoScroll(evt) {\n this._handleAutoScroll(evt, true);\n },\n _handleAutoScroll: function _handleAutoScroll(evt, fallback) {\n var _this = this;\n\n var x = (evt.touches ? evt.touches[0] : evt).clientX,\n y = (evt.touches ? evt.touches[0] : evt).clientY,\n elem = document.elementFromPoint(x, y);\n touchEvt$1 = evt; // IE does not seem to have native autoscroll,\n // Edge's autoscroll seems too conditional,\n // MACOS Safari does not have autoscroll,\n // Firefox and Chrome are good\n\n if (fallback || this.options.forceAutoScrollFallback || Edge || IE11OrLess || Safari) {\n autoScroll(evt, this.options, elem, fallback); // Listener for pointer element change\n\n var ogElemScroller = getParentAutoScrollElement(elem, true);\n\n if (scrolling && (!pointerElemChangedInterval || x !== lastAutoScrollX || y !== lastAutoScrollY)) {\n pointerElemChangedInterval && clearPointerElemChangedInterval(); // Detect for pointer elem change, emulating native DnD behaviour\n\n pointerElemChangedInterval = setInterval(function () {\n var newElem = getParentAutoScrollElement(document.elementFromPoint(x, y), true);\n\n if (newElem !== ogElemScroller) {\n ogElemScroller = newElem;\n clearAutoScrolls();\n }\n\n autoScroll(evt, _this.options, newElem, fallback);\n }, 10);\n lastAutoScrollX = x;\n lastAutoScrollY = y;\n }\n } else {\n // if DnD is enabled (and browser has good autoscrolling), first autoscroll will already scroll, so get parent autoscroll of first autoscroll\n if (!this.options.bubbleScroll || getParentAutoScrollElement(elem, true) === getWindowScrollingElement()) {\n clearAutoScrolls();\n return;\n }\n\n autoScroll(evt, this.options, getParentAutoScrollElement(elem, false), false);\n }\n }\n };\n return _extends(AutoScroll, {\n pluginName: 'scroll',\n initializeByDefault: true\n });\n}\n\nfunction clearAutoScrolls() {\n autoScrolls.forEach(function (autoScroll) {\n clearInterval(autoScroll.pid);\n });\n autoScrolls = [];\n}\n\nfunction clearPointerElemChangedInterval() {\n clearInterval(pointerElemChangedInterval);\n}\n\nvar autoScroll = throttle(function (evt, options, rootEl, isFallback) {\n // Bug: https://bugzilla.mozilla.org/show_bug.cgi?id=505521\n if (!options.scroll) return;\n var x = (evt.touches ? evt.touches[0] : evt).clientX,\n y = (evt.touches ? evt.touches[0] : evt).clientY,\n sens = options.scrollSensitivity,\n speed = options.scrollSpeed,\n winScroller = getWindowScrollingElement();\n var scrollThisInstance = false,\n scrollCustomFn; // New scroll root, set scrollEl\n\n if (scrollRootEl !== rootEl) {\n scrollRootEl = rootEl;\n clearAutoScrolls();\n scrollEl = options.scroll;\n scrollCustomFn = options.scrollFn;\n\n if (scrollEl === true) {\n scrollEl = getParentAutoScrollElement(rootEl, true);\n }\n }\n\n var layersOut = 0;\n var currentParent = scrollEl;\n\n do {\n var el = currentParent,\n rect = getRect(el),\n top = rect.top,\n bottom = rect.bottom,\n left = rect.left,\n right = rect.right,\n width = rect.width,\n height = rect.height,\n canScrollX = void 0,\n canScrollY = void 0,\n scrollWidth = el.scrollWidth,\n scrollHeight = el.scrollHeight,\n elCSS = css(el),\n scrollPosX = el.scrollLeft,\n scrollPosY = el.scrollTop;\n\n if (el === winScroller) {\n canScrollX = width < scrollWidth && (elCSS.overflowX === 'auto' || elCSS.overflowX === 'scroll' || elCSS.overflowX === 'visible');\n canScrollY = height < scrollHeight && (elCSS.overflowY === 'auto' || elCSS.overflowY === 'scroll' || elCSS.overflowY === 'visible');\n } else {\n canScrollX = width < scrollWidth && (elCSS.overflowX === 'auto' || elCSS.overflowX === 'scroll');\n canScrollY = height < scrollHeight && (elCSS.overflowY === 'auto' || elCSS.overflowY === 'scroll');\n }\n\n var vx = canScrollX && (Math.abs(right - x) <= sens && scrollPosX + width < scrollWidth) - (Math.abs(left - x) <= sens && !!scrollPosX);\n var vy = canScrollY && (Math.abs(bottom - y) <= sens && scrollPosY + height < scrollHeight) - (Math.abs(top - y) <= sens && !!scrollPosY);\n\n if (!autoScrolls[layersOut]) {\n for (var i = 0; i <= layersOut; i++) {\n if (!autoScrolls[i]) {\n autoScrolls[i] = {};\n }\n }\n }\n\n if (autoScrolls[layersOut].vx != vx || autoScrolls[layersOut].vy != vy || autoScrolls[layersOut].el !== el) {\n autoScrolls[layersOut].el = el;\n autoScrolls[layersOut].vx = vx;\n autoScrolls[layersOut].vy = vy;\n clearInterval(autoScrolls[layersOut].pid);\n\n if (vx != 0 || vy != 0) {\n scrollThisInstance = true;\n /* jshint loopfunc:true */\n\n autoScrolls[layersOut].pid = setInterval(function () {\n // emulate drag over during autoscroll (fallback), emulating native DnD behaviour\n if (isFallback && this.layer === 0) {\n Sortable.active._onTouchMove(touchEvt$1); // To move ghost if it is positioned absolutely\n\n }\n\n var scrollOffsetY = autoScrolls[this.layer].vy ? autoScrolls[this.layer].vy * speed : 0;\n var scrollOffsetX = autoScrolls[this.layer].vx ? autoScrolls[this.layer].vx * speed : 0;\n\n if (typeof scrollCustomFn === 'function') {\n if (scrollCustomFn.call(Sortable.dragged.parentNode[expando], scrollOffsetX, scrollOffsetY, evt, touchEvt$1, autoScrolls[this.layer].el) !== 'continue') {\n return;\n }\n }\n\n scrollBy(autoScrolls[this.layer].el, scrollOffsetX, scrollOffsetY);\n }.bind({\n layer: layersOut\n }), 24);\n }\n }\n\n layersOut++;\n } while (options.bubbleScroll && currentParent !== winScroller && (currentParent = getParentAutoScrollElement(currentParent, false)));\n\n scrolling = scrollThisInstance; // in case another function catches scrolling as false in between when it is not\n}, 30);\n\nvar drop = function drop(_ref) {\n var originalEvent = _ref.originalEvent,\n putSortable = _ref.putSortable,\n dragEl = _ref.dragEl,\n activeSortable = _ref.activeSortable,\n dispatchSortableEvent = _ref.dispatchSortableEvent,\n hideGhostForTarget = _ref.hideGhostForTarget,\n unhideGhostForTarget = _ref.unhideGhostForTarget;\n if (!originalEvent) return;\n var toSortable = putSortable || activeSortable;\n hideGhostForTarget();\n var touch = originalEvent.changedTouches && originalEvent.changedTouches.length ? originalEvent.changedTouches[0] : originalEvent;\n var target = document.elementFromPoint(touch.clientX, touch.clientY);\n unhideGhostForTarget();\n\n if (toSortable && !toSortable.el.contains(target)) {\n dispatchSortableEvent('spill');\n this.onSpill({\n dragEl: dragEl,\n putSortable: putSortable\n });\n }\n};\n\nfunction Revert() {}\n\nRevert.prototype = {\n startIndex: null,\n dragStart: function dragStart(_ref2) {\n var oldDraggableIndex = _ref2.oldDraggableIndex;\n this.startIndex = oldDraggableIndex;\n },\n onSpill: function onSpill(_ref3) {\n var dragEl = _ref3.dragEl,\n putSortable = _ref3.putSortable;\n this.sortable.captureAnimationState();\n\n if (putSortable) {\n putSortable.captureAnimationState();\n }\n\n var nextSibling = getChild(this.sortable.el, this.startIndex, this.options);\n\n if (nextSibling) {\n this.sortable.el.insertBefore(dragEl, nextSibling);\n } else {\n this.sortable.el.appendChild(dragEl);\n }\n\n this.sortable.animateAll();\n\n if (putSortable) {\n putSortable.animateAll();\n }\n },\n drop: drop\n};\n\n_extends(Revert, {\n pluginName: 'revertOnSpill'\n});\n\nfunction Remove() {}\n\nRemove.prototype = {\n onSpill: function onSpill(_ref4) {\n var dragEl = _ref4.dragEl,\n putSortable = _ref4.putSortable;\n var parentSortable = putSortable || this.sortable;\n parentSortable.captureAnimationState();\n dragEl.parentNode && dragEl.parentNode.removeChild(dragEl);\n parentSortable.animateAll();\n },\n drop: drop\n};\n\n_extends(Remove, {\n pluginName: 'removeOnSpill'\n});\n\nvar lastSwapEl;\n\nfunction SwapPlugin() {\n function Swap() {\n this.defaults = {\n swapClass: 'sortable-swap-highlight'\n };\n }\n\n Swap.prototype = {\n dragStart: function dragStart(_ref) {\n var dragEl = _ref.dragEl;\n lastSwapEl = dragEl;\n },\n dragOverValid: function dragOverValid(_ref2) {\n var completed = _ref2.completed,\n target = _ref2.target,\n onMove = _ref2.onMove,\n activeSortable = _ref2.activeSortable,\n changed = _ref2.changed,\n cancel = _ref2.cancel;\n if (!activeSortable.options.swap) return;\n var el = this.sortable.el,\n options = this.options;\n\n if (target && target !== el) {\n var prevSwapEl = lastSwapEl;\n\n if (onMove(target) !== false) {\n toggleClass(target, options.swapClass, true);\n lastSwapEl = target;\n } else {\n lastSwapEl = null;\n }\n\n if (prevSwapEl && prevSwapEl !== lastSwapEl) {\n toggleClass(prevSwapEl, options.swapClass, false);\n }\n }\n\n changed();\n completed(true);\n cancel();\n },\n drop: function drop(_ref3) {\n var activeSortable = _ref3.activeSortable,\n putSortable = _ref3.putSortable,\n dragEl = _ref3.dragEl;\n var toSortable = putSortable || this.sortable;\n var options = this.options;\n lastSwapEl && toggleClass(lastSwapEl, options.swapClass, false);\n\n if (lastSwapEl && (options.swap || putSortable && putSortable.options.swap)) {\n if (dragEl !== lastSwapEl) {\n toSortable.captureAnimationState();\n if (toSortable !== activeSortable) activeSortable.captureAnimationState();\n swapNodes(dragEl, lastSwapEl);\n toSortable.animateAll();\n if (toSortable !== activeSortable) activeSortable.animateAll();\n }\n }\n },\n nulling: function nulling() {\n lastSwapEl = null;\n }\n };\n return _extends(Swap, {\n pluginName: 'swap',\n eventProperties: function eventProperties() {\n return {\n swapItem: lastSwapEl\n };\n }\n });\n}\n\nfunction swapNodes(n1, n2) {\n var p1 = n1.parentNode,\n p2 = n2.parentNode,\n i1,\n i2;\n if (!p1 || !p2 || p1.isEqualNode(n2) || p2.isEqualNode(n1)) return;\n i1 = index(n1);\n i2 = index(n2);\n\n if (p1.isEqualNode(p2) && i1 < i2) {\n i2++;\n }\n\n p1.insertBefore(n2, p1.children[i1]);\n p2.insertBefore(n1, p2.children[i2]);\n}\n\nvar multiDragElements = [],\n multiDragClones = [],\n lastMultiDragSelect,\n // for selection with modifier key down (SHIFT)\nmultiDragSortable,\n initialFolding = false,\n // Initial multi-drag fold when drag started\nfolding = false,\n // Folding any other time\ndragStarted = false,\n dragEl$1,\n clonesFromRect,\n clonesHidden;\n\nfunction MultiDragPlugin() {\n function MultiDrag(sortable) {\n // Bind all private methods\n for (var fn in this) {\n if (fn.charAt(0) === '_' && typeof this[fn] === 'function') {\n this[fn] = this[fn].bind(this);\n }\n }\n\n if (!sortable.options.avoidImplicitDeselect) {\n if (sortable.options.supportPointer) {\n on(document, 'pointerup', this._deselectMultiDrag);\n } else {\n on(document, 'mouseup', this._deselectMultiDrag);\n on(document, 'touchend', this._deselectMultiDrag);\n }\n }\n\n on(document, 'keydown', this._checkKeyDown);\n on(document, 'keyup', this._checkKeyUp);\n this.defaults = {\n selectedClass: 'sortable-selected',\n multiDragKey: null,\n avoidImplicitDeselect: false,\n setData: function setData(dataTransfer, dragEl) {\n var data = '';\n\n if (multiDragElements.length && multiDragSortable === sortable) {\n multiDragElements.forEach(function (multiDragElement, i) {\n data += (!i ? '' : ', ') + multiDragElement.textContent;\n });\n } else {\n data = dragEl.textContent;\n }\n\n dataTransfer.setData('Text', data);\n }\n };\n }\n\n MultiDrag.prototype = {\n multiDragKeyDown: false,\n isMultiDrag: false,\n delayStartGlobal: function delayStartGlobal(_ref) {\n var dragged = _ref.dragEl;\n dragEl$1 = dragged;\n },\n delayEnded: function delayEnded() {\n this.isMultiDrag = ~multiDragElements.indexOf(dragEl$1);\n },\n setupClone: function setupClone(_ref2) {\n var sortable = _ref2.sortable,\n cancel = _ref2.cancel;\n if (!this.isMultiDrag) return;\n\n for (var i = 0; i < multiDragElements.length; i++) {\n multiDragClones.push(clone(multiDragElements[i]));\n multiDragClones[i].sortableIndex = multiDragElements[i].sortableIndex;\n multiDragClones[i].draggable = false;\n multiDragClones[i].style['will-change'] = '';\n toggleClass(multiDragClones[i], this.options.selectedClass, false);\n multiDragElements[i] === dragEl$1 && toggleClass(multiDragClones[i], this.options.chosenClass, false);\n }\n\n sortable._hideClone();\n\n cancel();\n },\n clone: function clone(_ref3) {\n var sortable = _ref3.sortable,\n rootEl = _ref3.rootEl,\n dispatchSortableEvent = _ref3.dispatchSortableEvent,\n cancel = _ref3.cancel;\n if (!this.isMultiDrag) return;\n\n if (!this.options.removeCloneOnHide) {\n if (multiDragElements.length && multiDragSortable === sortable) {\n insertMultiDragClones(true, rootEl);\n dispatchSortableEvent('clone');\n cancel();\n }\n }\n },\n showClone: function showClone(_ref4) {\n var cloneNowShown = _ref4.cloneNowShown,\n rootEl = _ref4.rootEl,\n cancel = _ref4.cancel;\n if (!this.isMultiDrag) return;\n insertMultiDragClones(false, rootEl);\n multiDragClones.forEach(function (clone) {\n css(clone, 'display', '');\n });\n cloneNowShown();\n clonesHidden = false;\n cancel();\n },\n hideClone: function hideClone(_ref5) {\n var _this = this;\n\n var sortable = _ref5.sortable,\n cloneNowHidden = _ref5.cloneNowHidden,\n cancel = _ref5.cancel;\n if (!this.isMultiDrag) return;\n multiDragClones.forEach(function (clone) {\n css(clone, 'display', 'none');\n\n if (_this.options.removeCloneOnHide && clone.parentNode) {\n clone.parentNode.removeChild(clone);\n }\n });\n cloneNowHidden();\n clonesHidden = true;\n cancel();\n },\n dragStartGlobal: function dragStartGlobal(_ref6) {\n var sortable = _ref6.sortable;\n\n if (!this.isMultiDrag && multiDragSortable) {\n multiDragSortable.multiDrag._deselectMultiDrag();\n }\n\n multiDragElements.forEach(function (multiDragElement) {\n multiDragElement.sortableIndex = index(multiDragElement);\n }); // Sort multi-drag elements\n\n multiDragElements = multiDragElements.sort(function (a, b) {\n return a.sortableIndex - b.sortableIndex;\n });\n dragStarted = true;\n },\n dragStarted: function dragStarted(_ref7) {\n var _this2 = this;\n\n var sortable = _ref7.sortable;\n if (!this.isMultiDrag) return;\n\n if (this.options.sort) {\n // Capture rects,\n // hide multi drag elements (by positioning them absolute),\n // set multi drag elements rects to dragRect,\n // show multi drag elements,\n // animate to rects,\n // unset rects & remove from DOM\n sortable.captureAnimationState();\n\n if (this.options.animation) {\n multiDragElements.forEach(function (multiDragElement) {\n if (multiDragElement === dragEl$1) return;\n css(multiDragElement, 'position', 'absolute');\n });\n var dragRect = getRect(dragEl$1, false, true, true);\n multiDragElements.forEach(function (multiDragElement) {\n if (multiDragElement === dragEl$1) return;\n setRect(multiDragElement, dragRect);\n });\n folding = true;\n initialFolding = true;\n }\n }\n\n sortable.animateAll(function () {\n folding = false;\n initialFolding = false;\n\n if (_this2.options.animation) {\n multiDragElements.forEach(function (multiDragElement) {\n unsetRect(multiDragElement);\n });\n } // Remove all auxiliary multidrag items from el, if sorting enabled\n\n\n if (_this2.options.sort) {\n removeMultiDragElements();\n }\n });\n },\n dragOver: function dragOver(_ref8) {\n var target = _ref8.target,\n completed = _ref8.completed,\n cancel = _ref8.cancel;\n\n if (folding && ~multiDragElements.indexOf(target)) {\n completed(false);\n cancel();\n }\n },\n revert: function revert(_ref9) {\n var fromSortable = _ref9.fromSortable,\n rootEl = _ref9.rootEl,\n sortable = _ref9.sortable,\n dragRect = _ref9.dragRect;\n\n if (multiDragElements.length > 1) {\n // Setup unfold animation\n multiDragElements.forEach(function (multiDragElement) {\n sortable.addAnimationState({\n target: multiDragElement,\n rect: folding ? getRect(multiDragElement) : dragRect\n });\n unsetRect(multiDragElement);\n multiDragElement.fromRect = dragRect;\n fromSortable.removeAnimationState(multiDragElement);\n });\n folding = false;\n insertMultiDragElements(!this.options.removeCloneOnHide, rootEl);\n }\n },\n dragOverCompleted: function dragOverCompleted(_ref10) {\n var sortable = _ref10.sortable,\n isOwner = _ref10.isOwner,\n insertion = _ref10.insertion,\n activeSortable = _ref10.activeSortable,\n parentEl = _ref10.parentEl,\n putSortable = _ref10.putSortable;\n var options = this.options;\n\n if (insertion) {\n // Clones must be hidden before folding animation to capture dragRectAbsolute properly\n if (isOwner) {\n activeSortable._hideClone();\n }\n\n initialFolding = false; // If leaving sort:false root, or already folding - Fold to new location\n\n if (options.animation && multiDragElements.length > 1 && (folding || !isOwner && !activeSortable.options.sort && !putSortable)) {\n // Fold: Set all multi drag elements's rects to dragEl's rect when multi-drag elements are invisible\n var dragRectAbsolute = getRect(dragEl$1, false, true, true);\n multiDragElements.forEach(function (multiDragElement) {\n if (multiDragElement === dragEl$1) return;\n setRect(multiDragElement, dragRectAbsolute); // Move element(s) to end of parentEl so that it does not interfere with multi-drag clones insertion if they are inserted\n // while folding, and so that we can capture them again because old sortable will no longer be fromSortable\n\n parentEl.appendChild(multiDragElement);\n });\n folding = true;\n } // Clones must be shown (and check to remove multi drags) after folding when interfering multiDragElements are moved out\n\n\n if (!isOwner) {\n // Only remove if not folding (folding will remove them anyways)\n if (!folding) {\n removeMultiDragElements();\n }\n\n if (multiDragElements.length > 1) {\n var clonesHiddenBefore = clonesHidden;\n\n activeSortable._showClone(sortable); // Unfold animation for clones if showing from hidden\n\n\n if (activeSortable.options.animation && !clonesHidden && clonesHiddenBefore) {\n multiDragClones.forEach(function (clone) {\n activeSortable.addAnimationState({\n target: clone,\n rect: clonesFromRect\n });\n clone.fromRect = clonesFromRect;\n clone.thisAnimationDuration = null;\n });\n }\n } else {\n activeSortable._showClone(sortable);\n }\n }\n }\n },\n dragOverAnimationCapture: function dragOverAnimationCapture(_ref11) {\n var dragRect = _ref11.dragRect,\n isOwner = _ref11.isOwner,\n activeSortable = _ref11.activeSortable;\n multiDragElements.forEach(function (multiDragElement) {\n multiDragElement.thisAnimationDuration = null;\n });\n\n if (activeSortable.options.animation && !isOwner && activeSortable.multiDrag.isMultiDrag) {\n clonesFromRect = _extends({}, dragRect);\n var dragMatrix = matrix(dragEl$1, true);\n clonesFromRect.top -= dragMatrix.f;\n clonesFromRect.left -= dragMatrix.e;\n }\n },\n dragOverAnimationComplete: function dragOverAnimationComplete() {\n if (folding) {\n folding = false;\n removeMultiDragElements();\n }\n },\n drop: function drop(_ref12) {\n var evt = _ref12.originalEvent,\n rootEl = _ref12.rootEl,\n parentEl = _ref12.parentEl,\n sortable = _ref12.sortable,\n dispatchSortableEvent = _ref12.dispatchSortableEvent,\n oldIndex = _ref12.oldIndex,\n putSortable = _ref12.putSortable;\n var toSortable = putSortable || this.sortable;\n if (!evt) return;\n var options = this.options,\n children = parentEl.children; // Multi-drag selection\n\n if (!dragStarted) {\n if (options.multiDragKey && !this.multiDragKeyDown) {\n this._deselectMultiDrag();\n }\n\n toggleClass(dragEl$1, options.selectedClass, !~multiDragElements.indexOf(dragEl$1));\n\n if (!~multiDragElements.indexOf(dragEl$1)) {\n multiDragElements.push(dragEl$1);\n dispatchEvent({\n sortable: sortable,\n rootEl: rootEl,\n name: 'select',\n targetEl: dragEl$1,\n originalEvent: evt\n }); // Modifier activated, select from last to dragEl\n\n if (evt.shiftKey && lastMultiDragSelect && sortable.el.contains(lastMultiDragSelect)) {\n var lastIndex = index(lastMultiDragSelect),\n currentIndex = index(dragEl$1);\n\n if (~lastIndex && ~currentIndex && lastIndex !== currentIndex) {\n // Must include lastMultiDragSelect (select it), in case modified selection from no selection\n // (but previous selection existed)\n var n, i;\n\n if (currentIndex > lastIndex) {\n i = lastIndex;\n n = currentIndex;\n } else {\n i = currentIndex;\n n = lastIndex + 1;\n }\n\n for (; i < n; i++) {\n if (~multiDragElements.indexOf(children[i])) continue;\n toggleClass(children[i], options.selectedClass, true);\n multiDragElements.push(children[i]);\n dispatchEvent({\n sortable: sortable,\n rootEl: rootEl,\n name: 'select',\n targetEl: children[i],\n originalEvent: evt\n });\n }\n }\n } else {\n lastMultiDragSelect = dragEl$1;\n }\n\n multiDragSortable = toSortable;\n } else {\n multiDragElements.splice(multiDragElements.indexOf(dragEl$1), 1);\n lastMultiDragSelect = null;\n dispatchEvent({\n sortable: sortable,\n rootEl: rootEl,\n name: 'deselect',\n targetEl: dragEl$1,\n originalEvent: evt\n });\n }\n } // Multi-drag drop\n\n\n if (dragStarted && this.isMultiDrag) {\n folding = false; // Do not \"unfold\" after around dragEl if reverted\n\n if ((parentEl[expando].options.sort || parentEl !== rootEl) && multiDragElements.length > 1) {\n var dragRect = getRect(dragEl$1),\n multiDragIndex = index(dragEl$1, ':not(.' + this.options.selectedClass + ')');\n if (!initialFolding && options.animation) dragEl$1.thisAnimationDuration = null;\n toSortable.captureAnimationState();\n\n if (!initialFolding) {\n if (options.animation) {\n dragEl$1.fromRect = dragRect;\n multiDragElements.forEach(function (multiDragElement) {\n multiDragElement.thisAnimationDuration = null;\n\n if (multiDragElement !== dragEl$1) {\n var rect = folding ? getRect(multiDragElement) : dragRect;\n multiDragElement.fromRect = rect; // Prepare unfold animation\n\n toSortable.addAnimationState({\n target: multiDragElement,\n rect: rect\n });\n }\n });\n } // Multi drag elements are not necessarily removed from the DOM on drop, so to reinsert\n // properly they must all be removed\n\n\n removeMultiDragElements();\n multiDragElements.forEach(function (multiDragElement) {\n if (children[multiDragIndex]) {\n parentEl.insertBefore(multiDragElement, children[multiDragIndex]);\n } else {\n parentEl.appendChild(multiDragElement);\n }\n\n multiDragIndex++;\n }); // If initial folding is done, the elements may have changed position because they are now\n // unfolding around dragEl, even though dragEl may not have his index changed, so update event\n // must be fired here as Sortable will not.\n\n if (oldIndex === index(dragEl$1)) {\n var update = false;\n multiDragElements.forEach(function (multiDragElement) {\n if (multiDragElement.sortableIndex !== index(multiDragElement)) {\n update = true;\n return;\n }\n });\n\n if (update) {\n dispatchSortableEvent('update');\n dispatchSortableEvent('sort');\n }\n }\n } // Must be done after capturing individual rects (scroll bar)\n\n\n multiDragElements.forEach(function (multiDragElement) {\n unsetRect(multiDragElement);\n });\n toSortable.animateAll();\n }\n\n multiDragSortable = toSortable;\n } // Remove clones if necessary\n\n\n if (rootEl === parentEl || putSortable && putSortable.lastPutMode !== 'clone') {\n multiDragClones.forEach(function (clone) {\n clone.parentNode && clone.parentNode.removeChild(clone);\n });\n }\n },\n nullingGlobal: function nullingGlobal() {\n this.isMultiDrag = dragStarted = false;\n multiDragClones.length = 0;\n },\n destroyGlobal: function destroyGlobal() {\n this._deselectMultiDrag();\n\n off(document, 'pointerup', this._deselectMultiDrag);\n off(document, 'mouseup', this._deselectMultiDrag);\n off(document, 'touchend', this._deselectMultiDrag);\n off(document, 'keydown', this._checkKeyDown);\n off(document, 'keyup', this._checkKeyUp);\n },\n _deselectMultiDrag: function _deselectMultiDrag(evt) {\n if (typeof dragStarted !== \"undefined\" && dragStarted) return; // Only deselect if selection is in this sortable\n\n if (multiDragSortable !== this.sortable) return; // Only deselect if target is not item in this sortable\n\n if (evt && closest(evt.target, this.options.draggable, this.sortable.el, false)) return; // Only deselect if left click\n\n if (evt && evt.button !== 0) return;\n\n while (multiDragElements.length) {\n var el = multiDragElements[0];\n toggleClass(el, this.options.selectedClass, false);\n multiDragElements.shift();\n dispatchEvent({\n sortable: this.sortable,\n rootEl: this.sortable.el,\n name: 'deselect',\n targetEl: el,\n originalEvent: evt\n });\n }\n },\n _checkKeyDown: function _checkKeyDown(evt) {\n if (evt.key === this.options.multiDragKey) {\n this.multiDragKeyDown = true;\n }\n },\n _checkKeyUp: function _checkKeyUp(evt) {\n if (evt.key === this.options.multiDragKey) {\n this.multiDragKeyDown = false;\n }\n }\n };\n return _extends(MultiDrag, {\n // Static methods & properties\n pluginName: 'multiDrag',\n utils: {\n /**\r\n * Selects the provided multi-drag item\r\n * @param {HTMLElement} el The element to be selected\r\n */\n select: function select(el) {\n var sortable = el.parentNode[expando];\n if (!sortable || !sortable.options.multiDrag || ~multiDragElements.indexOf(el)) return;\n\n if (multiDragSortable && multiDragSortable !== sortable) {\n multiDragSortable.multiDrag._deselectMultiDrag();\n\n multiDragSortable = sortable;\n }\n\n toggleClass(el, sortable.options.selectedClass, true);\n multiDragElements.push(el);\n },\n\n /**\r\n * Deselects the provided multi-drag item\r\n * @param {HTMLElement} el The element to be deselected\r\n */\n deselect: function deselect(el) {\n var sortable = el.parentNode[expando],\n index = multiDragElements.indexOf(el);\n if (!sortable || !sortable.options.multiDrag || !~index) return;\n toggleClass(el, sortable.options.selectedClass, false);\n multiDragElements.splice(index, 1);\n }\n },\n eventProperties: function eventProperties() {\n var _this3 = this;\n\n var oldIndicies = [],\n newIndicies = [];\n multiDragElements.forEach(function (multiDragElement) {\n oldIndicies.push({\n multiDragElement: multiDragElement,\n index: multiDragElement.sortableIndex\n }); // multiDragElements will already be sorted if folding\n\n var newIndex;\n\n if (folding && multiDragElement !== dragEl$1) {\n newIndex = -1;\n } else if (folding) {\n newIndex = index(multiDragElement, ':not(.' + _this3.options.selectedClass + ')');\n } else {\n newIndex = index(multiDragElement);\n }\n\n newIndicies.push({\n multiDragElement: multiDragElement,\n index: newIndex\n });\n });\n return {\n items: _toConsumableArray(multiDragElements),\n clones: [].concat(multiDragClones),\n oldIndicies: oldIndicies,\n newIndicies: newIndicies\n };\n },\n optionListeners: {\n multiDragKey: function multiDragKey(key) {\n key = key.toLowerCase();\n\n if (key === 'ctrl') {\n key = 'Control';\n } else if (key.length > 1) {\n key = key.charAt(0).toUpperCase() + key.substr(1);\n }\n\n return key;\n }\n }\n });\n}\n\nfunction insertMultiDragElements(clonesInserted, rootEl) {\n multiDragElements.forEach(function (multiDragElement, i) {\n var target = rootEl.children[multiDragElement.sortableIndex + (clonesInserted ? Number(i) : 0)];\n\n if (target) {\n rootEl.insertBefore(multiDragElement, target);\n } else {\n rootEl.appendChild(multiDragElement);\n }\n });\n}\n/**\r\n * Insert multi-drag clones\r\n * @param {[Boolean]} elementsInserted Whether the multi-drag elements are inserted\r\n * @param {HTMLElement} rootEl\r\n */\n\n\nfunction insertMultiDragClones(elementsInserted, rootEl) {\n multiDragClones.forEach(function (clone, i) {\n var target = rootEl.children[clone.sortableIndex + (elementsInserted ? Number(i) : 0)];\n\n if (target) {\n rootEl.insertBefore(clone, target);\n } else {\n rootEl.appendChild(clone);\n }\n });\n}\n\nfunction removeMultiDragElements() {\n multiDragElements.forEach(function (multiDragElement) {\n if (multiDragElement === dragEl$1) return;\n multiDragElement.parentNode && multiDragElement.parentNode.removeChild(multiDragElement);\n });\n}\n\nSortable.mount(new AutoScrollPlugin());\nSortable.mount(Remove, Revert);\nexport default Sortable;\nexport { MultiDragPlugin as MultiDrag, Sortable, SwapPlugin as Swap };","import { Controller } from \"@hotwired/stimulus\";\nimport Sortable from \"sortablejs\";\n\nexport default class extends Controller {\n static values = {\n group: String,\n handle: String,\n };\n\n connect() {\n this.sortable = new Sortable(this.element, {\n group: this.groupValue,\n sort: false,\n animation: 150,\n handle: this.handleValue,\n direction: \"vertical\",\n onEnd: this.handleDrop.bind(this),\n });\n }\n\n disconnect() {\n this.sortable.destroy();\n }\n\n handleDrop(event) {\n const customEvent = new CustomEvent(\"drag-drop:ended\", {\n detail: {\n draggedItem: event.item,\n dropTarget: event.originalEvent.target,\n originalEvent: event,\n },\n bubbles: true,\n });\n\n this.element.dispatchEvent(customEvent);\n }\n}\n","function __defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass2(Constructor, protoProps, staticProps) { if (protoProps) __defineProperties(Constructor.prototype, protoProps); if (staticProps) __defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\nfunction _defineProperty2(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _classCallCheck2(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _inherits2(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf2(subClass, superClass); }\n\nfunction _setPrototypeOf2(o, p) { _setPrototypeOf2 = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf2(o, p); }\n\nfunction _createSuper2(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct2(); return function _createSuperInternal() { var Super = _getPrototypeOf2(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf2(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn2(this, result); }; }\n\nfunction _possibleConstructorReturn2(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized2(self); }\n\nfunction _assertThisInitialized2(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _isNativeReflectConstruct2() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\nfunction _getPrototypeOf2(o) { _getPrototypeOf2 = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf2(o); }\n\nfunction _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }\n\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _iterableToArray(iter) { if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter); }\n\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nimport flatpickr from 'flatpickr';\n\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nfunction _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\n\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n if (enumerableOnly) symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n keys.push.apply(keys, symbols);\n }\n\n return keys;\n}\n\nfunction _objectSpread2(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n\n if (i % 2) {\n ownKeys(Object(source), true).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n });\n } else if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys(Object(source)).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n }\n\n return target;\n}\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n if (superClass) _setPrototypeOf(subClass, superClass);\n}\n\nfunction _getPrototypeOf(o) {\n _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n };\n return _getPrototypeOf(o);\n}\n\nfunction _setPrototypeOf(o, p) {\n _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n\n return _setPrototypeOf(o, p);\n}\n\nfunction _isNativeReflectConstruct() {\n if (typeof Reflect === \"undefined\" || !Reflect.construct) return false;\n if (Reflect.construct.sham) return false;\n if (typeof Proxy === \"function\") return true;\n\n try {\n Date.prototype.toString.call(Reflect.construct(Date, [], function () {}));\n return true;\n } catch (e) {\n return false;\n }\n}\n\nfunction _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return self;\n}\n\nfunction _possibleConstructorReturn(self, call) {\n if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) {\n return call;\n }\n\n return _assertThisInitialized(self);\n}\n\nfunction _createSuper(Derived) {\n return function () {\n var Super = _getPrototypeOf(Derived),\n result;\n\n if (_isNativeReflectConstruct()) {\n var NewTarget = _getPrototypeOf(this).constructor;\n\n result = Reflect.construct(Super, arguments, NewTarget);\n } else {\n result = Super.apply(this, arguments);\n }\n\n return _possibleConstructorReturn(this, result);\n };\n}\n/*\nStimulus 3.0.0\nCopyright © 2021 Basecamp, LLC\n */\n\n\nfunction camelize(value) {\n return value.replace(/(?:[_-])([a-z0-9])/g, function (_, char) {\n return char.toUpperCase();\n });\n}\n\nfunction capitalize(value) {\n return value.charAt(0).toUpperCase() + value.slice(1);\n}\n\nfunction dasherize(value) {\n return value.replace(/([A-Z])/g, function (_, char) {\n return \"-\".concat(char.toLowerCase());\n });\n}\n\nfunction readInheritableStaticArrayValues(constructor, propertyName) {\n var ancestors = getAncestorsForConstructor(constructor);\n return Array.from(ancestors.reduce(function (values, constructor) {\n getOwnStaticArrayValues(constructor, propertyName).forEach(function (name) {\n return values.add(name);\n });\n return values;\n }, new Set()));\n}\n\nfunction readInheritableStaticObjectPairs(constructor, propertyName) {\n var ancestors = getAncestorsForConstructor(constructor);\n return ancestors.reduce(function (pairs, constructor) {\n pairs.push.apply(pairs, _toConsumableArray(getOwnStaticObjectPairs(constructor, propertyName)));\n return pairs;\n }, []);\n}\n\nfunction getAncestorsForConstructor(constructor) {\n var ancestors = [];\n\n while (constructor) {\n ancestors.push(constructor);\n constructor = Object.getPrototypeOf(constructor);\n }\n\n return ancestors.reverse();\n}\n\nfunction getOwnStaticArrayValues(constructor, propertyName) {\n var definition = constructor[propertyName];\n return Array.isArray(definition) ? definition : [];\n}\n\nfunction getOwnStaticObjectPairs(constructor, propertyName) {\n var definition = constructor[propertyName];\n return definition ? Object.keys(definition).map(function (key) {\n return [key, definition[key]];\n }) : [];\n}\n\nvar extend = function () {\n function extendWithReflect(constructor) {\n function extended() {\n return Reflect.construct(constructor, arguments, this instanceof extended ? this.constructor : void 0);\n }\n\n extended.prototype = Object.create(constructor.prototype, {\n constructor: {\n value: extended\n }\n });\n Reflect.setPrototypeOf(extended, constructor);\n return extended;\n }\n\n function testReflectExtension() {\n var a = function a() {\n this.a.call(this);\n };\n\n var b = extendWithReflect(a);\n\n b.prototype.a = function () {};\n\n return new b();\n }\n\n try {\n testReflectExtension();\n return extendWithReflect;\n } catch (error) {\n return function (constructor) {\n return /*#__PURE__*/function (_constructor) {\n _inherits2(extended, _constructor);\n\n var _super2 = _createSuper2(extended);\n\n function extended() {\n _classCallCheck2(this, extended);\n\n return _super2.apply(this, arguments);\n }\n\n return extended;\n }(constructor);\n };\n }\n}();\n\nfunction ClassPropertiesBlessing(constructor) {\n var classes = readInheritableStaticArrayValues(constructor, \"classes\");\n return classes.reduce(function (properties, classDefinition) {\n return Object.assign(properties, propertiesForClassDefinition(classDefinition));\n }, {});\n}\n\nfunction propertiesForClassDefinition(key) {\n var _ref;\n\n return _ref = {}, _defineProperty2(_ref, \"\".concat(key, \"Class\"), {\n get: function get() {\n var classes = this.classes;\n\n if (classes.has(key)) {\n return classes.get(key);\n } else {\n var attribute = classes.getAttributeName(key);\n throw new Error(\"Missing attribute \\\"\".concat(attribute, \"\\\"\"));\n }\n }\n }), _defineProperty2(_ref, \"\".concat(key, \"Classes\"), {\n get: function get() {\n return this.classes.getAll(key);\n }\n }), _defineProperty2(_ref, \"has\".concat(capitalize(key), \"Class\"), {\n get: function get() {\n return this.classes.has(key);\n }\n }), _ref;\n}\n\nfunction TargetPropertiesBlessing(constructor) {\n var targets = readInheritableStaticArrayValues(constructor, \"targets\");\n return targets.reduce(function (properties, targetDefinition) {\n return Object.assign(properties, propertiesForTargetDefinition(targetDefinition));\n }, {});\n}\n\nfunction propertiesForTargetDefinition(name) {\n var _ref2;\n\n return _ref2 = {}, _defineProperty2(_ref2, \"\".concat(name, \"Target\"), {\n get: function get() {\n var target = this.targets.find(name);\n\n if (target) {\n return target;\n } else {\n throw new Error(\"Missing target element \\\"\".concat(name, \"\\\" for \\\"\").concat(this.identifier, \"\\\" controller\"));\n }\n }\n }), _defineProperty2(_ref2, \"\".concat(name, \"Targets\"), {\n get: function get() {\n return this.targets.findAll(name);\n }\n }), _defineProperty2(_ref2, \"has\".concat(capitalize(name), \"Target\"), {\n get: function get() {\n return this.targets.has(name);\n }\n }), _ref2;\n}\n\nfunction ValuePropertiesBlessing(constructor) {\n var valueDefinitionPairs = readInheritableStaticObjectPairs(constructor, \"values\");\n var propertyDescriptorMap = {\n valueDescriptorMap: {\n get: function get() {\n var _this = this;\n\n return valueDefinitionPairs.reduce(function (result, valueDefinitionPair) {\n var valueDescriptor = parseValueDefinitionPair(valueDefinitionPair);\n\n var attributeName = _this.data.getAttributeNameForKey(valueDescriptor.key);\n\n return Object.assign(result, _defineProperty2({}, attributeName, valueDescriptor));\n }, {});\n }\n }\n };\n return valueDefinitionPairs.reduce(function (properties, valueDefinitionPair) {\n return Object.assign(properties, propertiesForValueDefinitionPair(valueDefinitionPair));\n }, propertyDescriptorMap);\n}\n\nfunction propertiesForValueDefinitionPair(valueDefinitionPair) {\n var _ref3;\n\n var definition = parseValueDefinitionPair(valueDefinitionPair);\n var key = definition.key,\n name = definition.name,\n read = definition.reader,\n write = definition.writer;\n return _ref3 = {}, _defineProperty2(_ref3, name, {\n get: function get() {\n var value = this.data.get(key);\n\n if (value !== null) {\n return read(value);\n } else {\n return definition.defaultValue;\n }\n },\n set: function set(value) {\n if (value === undefined) {\n this.data.delete(key);\n } else {\n this.data.set(key, write(value));\n }\n }\n }), _defineProperty2(_ref3, \"has\".concat(capitalize(name)), {\n get: function get() {\n return this.data.has(key) || definition.hasCustomDefaultValue;\n }\n }), _ref3;\n}\n\nfunction parseValueDefinitionPair(_ref4) {\n var _ref5 = _slicedToArray(_ref4, 2),\n token = _ref5[0],\n typeDefinition = _ref5[1];\n\n return valueDescriptorForTokenAndTypeDefinition(token, typeDefinition);\n}\n\nfunction parseValueTypeConstant(constant) {\n switch (constant) {\n case Array:\n return \"array\";\n\n case Boolean:\n return \"boolean\";\n\n case Number:\n return \"number\";\n\n case Object:\n return \"object\";\n\n case String:\n return \"string\";\n }\n}\n\nfunction parseValueTypeDefault(defaultValue) {\n switch (_typeof(defaultValue)) {\n case \"boolean\":\n return \"boolean\";\n\n case \"number\":\n return \"number\";\n\n case \"string\":\n return \"string\";\n }\n\n if (Array.isArray(defaultValue)) return \"array\";\n if (Object.prototype.toString.call(defaultValue) === \"[object Object]\") return \"object\";\n}\n\nfunction parseValueTypeObject(typeObject) {\n var typeFromObject = parseValueTypeConstant(typeObject.type);\n\n if (typeFromObject) {\n var defaultValueType = parseValueTypeDefault(typeObject.default);\n\n if (typeFromObject !== defaultValueType) {\n throw new Error(\"Type \\\"\".concat(typeFromObject, \"\\\" must match the type of the default value. Given default value: \\\"\").concat(typeObject.default, \"\\\" as \\\"\").concat(defaultValueType, \"\\\"\"));\n }\n\n return typeFromObject;\n }\n}\n\nfunction parseValueTypeDefinition(typeDefinition) {\n var typeFromObject = parseValueTypeObject(typeDefinition);\n var typeFromDefaultValue = parseValueTypeDefault(typeDefinition);\n var typeFromConstant = parseValueTypeConstant(typeDefinition);\n var type = typeFromObject || typeFromDefaultValue || typeFromConstant;\n if (type) return type;\n throw new Error(\"Unknown value type \\\"\".concat(typeDefinition, \"\\\"\"));\n}\n\nfunction defaultValueForDefinition(typeDefinition) {\n var constant = parseValueTypeConstant(typeDefinition);\n if (constant) return defaultValuesByType[constant];\n var defaultValue = typeDefinition.default;\n if (defaultValue !== undefined) return defaultValue;\n return typeDefinition;\n}\n\nfunction valueDescriptorForTokenAndTypeDefinition(token, typeDefinition) {\n var key = \"\".concat(dasherize(token), \"-value\");\n var type = parseValueTypeDefinition(typeDefinition);\n return {\n type: type,\n key: key,\n name: camelize(key),\n\n get defaultValue() {\n return defaultValueForDefinition(typeDefinition);\n },\n\n get hasCustomDefaultValue() {\n return parseValueTypeDefault(typeDefinition) !== undefined;\n },\n\n reader: readers[type],\n writer: writers[type] || writers.default\n };\n}\n\nvar defaultValuesByType = {\n get array() {\n return [];\n },\n\n boolean: false,\n number: 0,\n\n get object() {\n return {};\n },\n\n string: \"\"\n};\nvar readers = {\n array: function array(value) {\n var array = JSON.parse(value);\n\n if (!Array.isArray(array)) {\n throw new TypeError(\"Expected array\");\n }\n\n return array;\n },\n boolean: function boolean(value) {\n return !(value == \"0\" || value == \"false\");\n },\n number: function number(value) {\n return Number(value);\n },\n object: function object(value) {\n var object = JSON.parse(value);\n\n if (object === null || _typeof(object) != \"object\" || Array.isArray(object)) {\n throw new TypeError(\"Expected object\");\n }\n\n return object;\n },\n string: function string(value) {\n return value;\n }\n};\nvar writers = {\n default: writeString,\n array: writeJSON,\n object: writeJSON\n};\n\nfunction writeJSON(value) {\n return JSON.stringify(value);\n}\n\nfunction writeString(value) {\n return \"\".concat(value);\n}\n\nvar Controller = /*#__PURE__*/function () {\n function Controller(context) {\n _classCallCheck2(this, Controller);\n\n this.context = context;\n }\n\n _createClass2(Controller, [{\n key: \"application\",\n get: function get() {\n return this.context.application;\n }\n }, {\n key: \"scope\",\n get: function get() {\n return this.context.scope;\n }\n }, {\n key: \"element\",\n get: function get() {\n return this.scope.element;\n }\n }, {\n key: \"identifier\",\n get: function get() {\n return this.scope.identifier;\n }\n }, {\n key: \"targets\",\n get: function get() {\n return this.scope.targets;\n }\n }, {\n key: \"classes\",\n get: function get() {\n return this.scope.classes;\n }\n }, {\n key: \"data\",\n get: function get() {\n return this.scope.data;\n }\n }, {\n key: \"initialize\",\n value: function initialize() {}\n }, {\n key: \"connect\",\n value: function connect() {}\n }, {\n key: \"disconnect\",\n value: function disconnect() {}\n }, {\n key: \"dispatch\",\n value: function dispatch(eventName) {\n var _ref6 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},\n _ref6$target = _ref6.target,\n target = _ref6$target === void 0 ? this.element : _ref6$target,\n _ref6$detail = _ref6.detail,\n detail = _ref6$detail === void 0 ? {} : _ref6$detail,\n _ref6$prefix = _ref6.prefix,\n prefix = _ref6$prefix === void 0 ? this.identifier : _ref6$prefix,\n _ref6$bubbles = _ref6.bubbles,\n bubbles = _ref6$bubbles === void 0 ? true : _ref6$bubbles,\n _ref6$cancelable = _ref6.cancelable,\n cancelable = _ref6$cancelable === void 0 ? true : _ref6$cancelable;\n\n var type = prefix ? \"\".concat(prefix, \":\").concat(eventName) : eventName;\n var event = new CustomEvent(type, {\n detail: detail,\n bubbles: bubbles,\n cancelable: cancelable\n });\n target.dispatchEvent(event);\n return event;\n }\n }], [{\n key: \"shouldLoad\",\n get: function get() {\n return true;\n }\n }]);\n\n return Controller;\n}();\n\nController.blessings = [ClassPropertiesBlessing, TargetPropertiesBlessing, ValuePropertiesBlessing];\nController.targets = [];\nController.values = {};\n\nvar kebabCase = function kebabCase(string) {\n return string.replace(/([a-z])([A-Z])/g, \"$1-$2\").replace(/[\\s_]+/g, \"-\").toLowerCase();\n};\n\nvar capitalize$1 = function capitalize$1(string) {\n return string.charAt(0).toUpperCase() + string.slice(1);\n};\n\nvar booleanOptions = ['allowInput', 'altInput', 'animate', 'clickOpens', 'closeOnSelect', 'disableMobile', 'enableSeconds', 'enableTime', 'inline', 'noCalendar', 'shorthandCurrentMonth', 'static', 'time_24hr', 'weekNumbers', 'wrap'];\nvar stringOptions = ['altInputClass', 'conjunction', 'mode', 'nextArrow', 'position', 'prevArrow', 'monthSelectorType'];\nvar numberOptions = ['defaultHour', 'defaultMinute', 'defaultSeconds', 'hourIncrement', 'minuteIncrement', 'showMonths'];\nvar arrayOptions = ['disable', 'enable', 'disableDaysOfWeek', 'enableDaysOfWeek'];\nvar arrayOrStringOptions = ['defaultDate'];\nvar dateOptions = ['maxDate', 'minDate', 'maxTime', 'minTime', 'now'];\nvar dateFormats = ['altFormat', 'ariaDateFormat', 'dateFormat'];\nvar options = {\n string: stringOptions,\n boolean: booleanOptions,\n date: dateOptions,\n array: arrayOptions,\n number: numberOptions,\n arrayOrString: arrayOrStringOptions\n};\nvar events = ['change', 'open', 'close', 'monthChange', 'yearChange', 'ready', 'valueUpdate', 'dayCreate'];\nvar elements = ['calendarContainer', 'currentYearElement', 'days', 'daysContainer', 'input', 'nextMonthNav', 'monthNav', 'prevMonthNav', 'rContainer', 'selectedDateElem', 'todayDateElem', 'weekdayContainer'];\nvar mapping = {\n '%Y': 'Y',\n '%y': 'y',\n '%C': 'Y',\n '%m': 'm',\n '%-m': 'n',\n '%_m': 'n',\n '%B': 'F',\n '%^B': 'F',\n '%b': 'M',\n '%^b': 'M',\n '%h': 'M',\n '%^h': 'M',\n '%d': 'd',\n '%-d': 'j',\n '%e': 'j',\n '%H': 'H',\n '%k': 'H',\n '%I': 'h',\n '%l': 'h',\n '%-l': 'h',\n '%P': 'K',\n '%p': 'K',\n '%M': 'i',\n '%S': 'S',\n '%A': 'l',\n '%a': 'D',\n '%w': 'w'\n};\nvar strftimeRegex = new RegExp(Object.keys(mapping).join('|').replace(new RegExp('\\\\^', 'g'), '\\\\^'), 'g');\n\nvar convertDateFormat = function convertDateFormat(format) {\n return format.replace(strftimeRegex, function (match) {\n return mapping[match];\n });\n};\n\nvar StimulusFlatpickr = /*#__PURE__*/function (_Controller) {\n _inherits(StimulusFlatpickr, _Controller);\n\n var _super = _createSuper(StimulusFlatpickr);\n\n function StimulusFlatpickr() {\n _classCallCheck(this, StimulusFlatpickr);\n\n return _super.apply(this, arguments);\n }\n\n _createClass(StimulusFlatpickr, [{\n key: \"initialize\",\n value: function initialize() {\n this.config = {};\n }\n }, {\n key: \"connect\",\n value: function connect() {\n this._initializeEvents();\n\n this._initializeOptions();\n\n this._initializeDateFormats();\n\n this.fp = flatpickr(this.flatpickrElement, _objectSpread2({}, this.config));\n\n this._initializeElements();\n }\n }, {\n key: \"disconnect\",\n value: function disconnect() {\n var value = this.inputTarget.value;\n this.fp.destroy();\n this.inputTarget.value = value;\n }\n }, {\n key: \"_initializeEvents\",\n value: function _initializeEvents() {\n var _this2 = this;\n\n events.forEach(function (event) {\n if (_this2[event]) {\n var hook = \"on\".concat(capitalize$1(event));\n _this2.config[hook] = _this2[event].bind(_this2);\n }\n });\n }\n }, {\n key: \"_initializeOptions\",\n value: function _initializeOptions() {\n var _this3 = this;\n\n Object.keys(options).forEach(function (optionType) {\n var optionsCamelCase = options[optionType];\n optionsCamelCase.forEach(function (option) {\n var optionKebab = kebabCase(option);\n\n if (_this3.data.has(optionKebab)) {\n _this3.config[option] = _this3[\"_\".concat(optionType)](optionKebab);\n }\n });\n });\n\n this._handleDaysOfWeek();\n }\n }, {\n key: \"_handleDaysOfWeek\",\n value: function _handleDaysOfWeek() {\n if (this.config.disableDaysOfWeek) {\n this.config.disableDaysOfWeek = this._validateDaysOfWeek(this.config.disableDaysOfWeek);\n this.config.disable = [].concat(_toConsumableArray(this.config.disable || []), [this._disable.bind(this)]);\n }\n\n if (this.config.enableDaysOfWeek) {\n this.config.enableDaysOfWeek = this._validateDaysOfWeek(this.config.enableDaysOfWeek);\n this.config.enable = [].concat(_toConsumableArray(this.config.enable || []), [this._enable.bind(this)]);\n }\n }\n }, {\n key: \"_validateDaysOfWeek\",\n value: function _validateDaysOfWeek(days) {\n if (Array.isArray(days)) {\n return days.map(function (day) {\n return parseInt(day);\n });\n } else {\n console.error('days of week must be a valid array');\n return [];\n }\n }\n }, {\n key: \"_disable\",\n value: function _disable(date) {\n var disabledDays = this.config.disableDaysOfWeek;\n return disabledDays.includes(date.getDay());\n }\n }, {\n key: \"_enable\",\n value: function _enable(date) {\n var enabledDays = this.config.enableDaysOfWeek;\n return enabledDays.includes(date.getDay());\n }\n }, {\n key: \"_initializeDateFormats\",\n value: function _initializeDateFormats() {\n var _this4 = this;\n\n dateFormats.forEach(function (dateFormat) {\n if (_this4.data.has(dateFormat)) {\n _this4.config[dateFormat] = convertDateFormat(_this4.data.get(dateFormat));\n }\n });\n }\n }, {\n key: \"_initializeElements\",\n value: function _initializeElements() {\n var _this5 = this;\n\n elements.forEach(function (element) {\n _this5[\"\".concat(element, \"Target\")] = _this5.fp[element];\n });\n }\n }, {\n key: \"_string\",\n value: function _string(option) {\n return this.data.get(option);\n }\n }, {\n key: \"_date\",\n value: function _date(option) {\n return this.data.get(option);\n }\n }, {\n key: \"_boolean\",\n value: function _boolean(option) {\n return !(this.data.get(option) == '0' || this.data.get(option) == 'false');\n }\n }, {\n key: \"_array\",\n value: function _array(option) {\n return JSON.parse(this.data.get(option));\n }\n }, {\n key: \"_number\",\n value: function _number(option) {\n return parseInt(this.data.get(option));\n }\n }, {\n key: \"_arrayOrString\",\n value: function _arrayOrString(option) {\n var val = this.data.get(option);\n\n try {\n return JSON.parse(val);\n } catch (e) {\n return val;\n }\n }\n }, {\n key: \"flatpickrElement\",\n get: function get() {\n return this.hasInstanceTarget && this.instanceTarget || this.element;\n }\n }]);\n\n return StimulusFlatpickr;\n}(Controller);\n\n_defineProperty(StimulusFlatpickr, \"targets\", ['instance']);\n\nexport default StimulusFlatpickr;","import Flatpickr from \"stimulus-flatpickr\";\n\n// import the translation files and create a translation mapping\nimport { French } from \"flatpickr/dist/l10n/fr\";\nimport { english } from \"flatpickr/dist/l10n/default\";\nimport { German } from \"flatpickr/dist/l10n/de\";\n\n// create a new Stimulus controller by extending stimulus-flatpickr wrapper controller\nexport default class extends Flatpickr {\n static classes = [\"hover\", \"selected\"];\n\n locales = {\n fr: French,\n en: english,\n de: German,\n };\n\n connect() {\n this.config = {\n locale: this.locale,\n altInput: true,\n showMonths: 2,\n };\n\n super.connect();\n }\n\n change(selectedDates, dateStr, instance) {\n this.dispatch(\"change\", {\n detail: {\n selectedDates,\n dateStr,\n instance,\n },\n });\n }\n\n get locale() {\n if (this.locales && this.data.has(\"locale\")) {\n return this.locales[this.data.get(\"locale\")];\n }\n return \"\";\n }\n\n dispatch(\n eventName,\n {\n target = this.element,\n detail = {},\n prefix = this.identifier,\n bubbles = true,\n cancelable = true,\n } = {}\n ) {\n const type = prefix ? `${prefix}:${eventName}` : eventName;\n const event = new CustomEvent(type, { detail, bubbles, cancelable });\n target.dispatchEvent(event);\n return event;\n }\n}\n","import ModalController from \"./modal_controller\";\nimport fetchFlights from \"../services/bookingResourceSkuFlightsService/fetchFlights\";\n\nexport default class extends ModalController {\n static targets = [\"flightList\", \"rowTemplate\"];\n\n static values = {\n noFlightsAvailable: String,\n errorFetchingFlights: String,\n flightSelectionNotAvailable: String,\n };\n\n initialize() {\n super.initialize();\n this.bookingResourceSkuId = null;\n this.contextData = {};\n }\n\n showModal(event) {\n const { draggedData, targetData, transferDirection } = event.detail;\n\n this.bookingResourceSkuId = draggedData.id;\n this.contextData = {\n draggedData,\n targetData,\n transferDirection,\n };\n\n this.openModal();\n }\n\n dispatchError(message, error) {\n const customEvent = new CustomEvent(\"flight-selection-modal:error\", {\n detail: {\n message,\n error,\n bookingResourceSkuId: this.bookingResourceSkuId,\n contextData: this.contextData,\n },\n });\n\n window.dispatchEvent(customEvent);\n }\n\n dispatchSuccess(flightData) {\n const customEvent = new CustomEvent(\n \"flight-selection-modal:flightSelected\",\n {\n detail: {\n flightData,\n bookingResourceSkuId: this.bookingResourceSkuId,\n contextData: this.contextData,\n },\n bubbles: true,\n }\n );\n\n this.element.dispatchEvent(customEvent);\n }\n\n addFlightRow(flightData) {\n const template = this.rowTemplateTarget.content.cloneNode(true);\n const row = template.querySelector(\"tr\");\n\n row.dataset.bookingResourceSkuFlightId =\n flightData.bookingResourceSkuFlightId;\n row.dataset.departureAt = flightData.flight.departure_at;\n row.dataset.arrivalAt = flightData.flight.arrival_at;\n\n row.querySelector(\"[data-airline-code]\").textContent =\n flightData.flight.airline_code;\n row.querySelector(\"[data-flight-number]\").textContent =\n flightData.flight.flight_number;\n row.querySelector(\"[data-departure-airport]\").textContent =\n flightData.flight.departure_airport;\n row.querySelector(\"[data-arrival-airport]\").textContent =\n flightData.flight.arrival_airport;\n row.querySelector(\"[data-departure-time]\").textContent = new Date(\n flightData.flight.departure_at\n ).toLocaleString();\n row.querySelector(\"[data-arrival-time]\").textContent = new Date(\n flightData.flight.arrival_at\n ).toLocaleString();\n\n this.flightListTarget.appendChild(row);\n }\n\n openModal() {\n if (!this.bookingResourceSkuId) {\n this.dispatchError(this.flightSelectionNotAvailableValue, null);\n return;\n }\n\n super.openModal();\n\n fetchFlights({\n bookingResourceSkuId: this.bookingResourceSkuId,\n success: (response) => {\n const { flights } = response;\n if (!flights || !flights.length) {\n this.dispatchError(this.noFlightsAvailableValue, null);\n return;\n }\n this.flightListTarget.innerHTML = \"\";\n flights.forEach((flightData) => this.addFlightRow(flightData));\n },\n error: (error) => {\n this.dispatchError(this.errorFetchingFlightsValue, error);\n },\n });\n }\n\n selectFlight(event) {\n const row = event.target.closest(\"tr\");\n const flightData = {\n bookingResourceSkuFlightId: row.dataset.bookingResourceSkuFlightId,\n airlineCode: row.querySelector(\"[data-airline-code]\").textContent,\n flightNumber: row.querySelector(\"[data-flight-number]\").textContent,\n departureAirport: row.querySelector(\"[data-departure-airport]\")\n .textContent,\n arrivalAirport: row.querySelector(\"[data-arrival-airport]\").textContent,\n departureAt: row.dataset.departureAt,\n arrivalAt: row.dataset.arrivalAt,\n };\n\n this.closeModal(event);\n this.dispatchSuccess(flightData);\n }\n\n hide(event) {\n this.closeModal(event);\n }\n}\n","import Rails from \"@rails/ujs\";\n\nexport default ({ bookingResourceSkuId, success, error }) => {\n Rails.ajax({\n type: \"GET\",\n dataType: \"json\",\n url: `/api/booking_resource_skus/${bookingResourceSkuId}/fetch_flights`,\n success,\n error,\n });\n};\n","'use strict';\n\nimport toFormData from './toFormData.js';\n/**\n * It encodes a string by replacing all characters that are not in the unreserved set with\n * their percent-encoded equivalents\n *\n * @param {string} str - The string to encode.\n *\n * @returns {string} The encoded string.\n */\n\nfunction encode(str) {\n var charMap = {\n '!': '%21',\n \"'\": '%27',\n '(': '%28',\n ')': '%29',\n '~': '%7E',\n '%20': '+',\n '%00': '\\x00'\n };\n return encodeURIComponent(str).replace(/[!'()~]|%20|%00/g, function replacer(match) {\n return charMap[match];\n });\n}\n/**\n * It takes a params object and converts it to a FormData object\n *\n * @param {Object} params - The parameters to be converted to a FormData object.\n * @param {Object} options - The options object passed to the Axios constructor.\n *\n * @returns {void}\n */\n\n\nfunction AxiosURLSearchParams(params, options) {\n this._pairs = [];\n params && toFormData(params, this, options);\n}\n\nvar prototype = AxiosURLSearchParams.prototype;\n\nprototype.append = function append(name, value) {\n this._pairs.push([name, value]);\n};\n\nprototype.toString = function toString(encoder) {\n var _encode = encoder ? function (value) {\n return encoder.call(this, value, encode);\n } : encode;\n\n return this._pairs.map(function each(pair) {\n return _encode(pair[0]) + '=' + _encode(pair[1]);\n }, '').join('&');\n};\n\nexport default AxiosURLSearchParams;","'use strict';\n\nimport utils from '../utils.js';\nimport AxiosURLSearchParams from '../helpers/AxiosURLSearchParams.js';\n/**\n * It replaces all instances of the characters `:`, `$`, `,`, `+`, `[`, and `]` with their\n * URI encoded counterparts\n *\n * @param {string} val The value to be encoded.\n *\n * @returns {string} The encoded value.\n */\n\nfunction encode(val) {\n return encodeURIComponent(val).replace(/%3A/gi, ':').replace(/%24/g, '$').replace(/%2C/gi, ',').replace(/%20/g, '+').replace(/%5B/gi, '[').replace(/%5D/gi, ']');\n}\n/**\n * Build a URL by appending params to the end\n *\n * @param {string} url The base of the url (e.g., http://www.google.com)\n * @param {object} [params] The params to be appended\n * @param {?object} options\n *\n * @returns {string} The formatted url\n */\n\n\nexport default function buildURL(url, params, options) {\n /*eslint no-param-reassign:0*/\n if (!params) {\n return url;\n }\n\n var _encode = options && options.encode || encode;\n\n var serializeFn = options && options.serialize;\n var serializedParams;\n\n if (serializeFn) {\n serializedParams = serializeFn(params, options);\n } else {\n serializedParams = utils.isURLSearchParams(params) ? params.toString() : new AxiosURLSearchParams(params, options).toString(_encode);\n }\n\n if (serializedParams) {\n var hashmarkIndex = url.indexOf(\"#\");\n\n if (hashmarkIndex !== -1) {\n url = url.slice(0, hashmarkIndex);\n }\n\n url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;\n }\n\n return url;\n}","'use strict';\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nimport utils from './../utils.js';\n\nvar InterceptorManager = /*#__PURE__*/function () {\n function InterceptorManager() {\n _classCallCheck(this, InterceptorManager);\n\n this.handlers = [];\n }\n /**\n * Add a new interceptor to the stack\n *\n * @param {Function} fulfilled The function to handle `then` for a `Promise`\n * @param {Function} rejected The function to handle `reject` for a `Promise`\n *\n * @return {Number} An ID used to remove interceptor later\n */\n\n\n _createClass(InterceptorManager, [{\n key: \"use\",\n value: function use(fulfilled, rejected, options) {\n this.handlers.push({\n fulfilled: fulfilled,\n rejected: rejected,\n synchronous: options ? options.synchronous : false,\n runWhen: options ? options.runWhen : null\n });\n return this.handlers.length - 1;\n }\n /**\n * Remove an interceptor from the stack\n *\n * @param {Number} id The ID that was returned by `use`\n *\n * @returns {Boolean} `true` if the interceptor was removed, `false` otherwise\n */\n\n }, {\n key: \"eject\",\n value: function eject(id) {\n if (this.handlers[id]) {\n this.handlers[id] = null;\n }\n }\n /**\n * Clear all interceptors from the stack\n *\n * @returns {void}\n */\n\n }, {\n key: \"clear\",\n value: function clear() {\n if (this.handlers) {\n this.handlers = [];\n }\n }\n /**\n * Iterate over all the registered interceptors\n *\n * This method is particularly useful for skipping over any\n * interceptors that may have become `null` calling `eject`.\n *\n * @param {Function} fn The function to call for each interceptor\n *\n * @returns {void}\n */\n\n }, {\n key: \"forEach\",\n value: function forEach(fn) {\n utils.forEach(this.handlers, function forEachHandler(h) {\n if (h !== null) {\n fn(h);\n }\n });\n }\n }]);\n\n return InterceptorManager;\n}();\n\nexport default InterceptorManager;","var hasBrowserEnv = typeof window !== 'undefined' && typeof document !== 'undefined';\n/**\n * Determine if we're running in a standard browser environment\n *\n * This allows axios to run in a web worker, and react-native.\n * Both environments support XMLHttpRequest, but not fully standard globals.\n *\n * web workers:\n * typeof window -> undefined\n * typeof document -> undefined\n *\n * react-native:\n * navigator.product -> 'ReactNative'\n * nativescript\n * navigator.product -> 'NativeScript' or 'NS'\n *\n * @returns {boolean}\n */\n\nvar hasStandardBrowserEnv = function (product) {\n return hasBrowserEnv && ['ReactNative', 'NativeScript', 'NS'].indexOf(product) < 0;\n}(typeof navigator !== 'undefined' && navigator.product);\n/**\n * Determine if we're running in a standard browser webWorker environment\n *\n * Although the `isStandardBrowserEnv` method indicates that\n * `allows axios to run in a web worker`, the WebWorker will still be\n * filtered out due to its judgment standard\n * `typeof window !== 'undefined' && typeof document !== 'undefined'`.\n * This leads to a problem when axios post `FormData` in webWorker\n */\n\n\nvar hasStandardBrowserWebWorkerEnv = function () {\n return typeof WorkerGlobalScope !== 'undefined' && // eslint-disable-next-line no-undef\n self instanceof WorkerGlobalScope && typeof self.importScripts === 'function';\n}();\n\nvar origin = hasBrowserEnv && window.location.href || 'http://localhost';\nexport { hasBrowserEnv, hasStandardBrowserWebWorkerEnv, hasStandardBrowserEnv, origin };","'use strict';\n\nexport default {\n silentJSONParsing: true,\n forcedJSONParsing: true,\n clarifyTimeoutError: false\n};","import URLSearchParams from './classes/URLSearchParams.js';\nimport FormData from './classes/FormData.js';\nimport Blob from './classes/Blob.js';\nexport default {\n isBrowser: true,\n classes: {\n URLSearchParams: URLSearchParams,\n FormData: FormData,\n Blob: Blob\n },\n protocols: ['http', 'https', 'file', 'blob', 'url', 'data']\n};","'use strict';\n\nimport AxiosURLSearchParams from '../../../helpers/AxiosURLSearchParams.js';\nexport default typeof URLSearchParams !== 'undefined' ? URLSearchParams : AxiosURLSearchParams;","'use strict';\n\nexport default typeof FormData !== 'undefined' ? FormData : null;","'use strict';\n\nexport default typeof Blob !== 'undefined' ? Blob : null;","function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nimport platform from './node/index.js';\nimport * as utils from './common/utils.js';\nexport default _objectSpread(_objectSpread({}, utils), platform);","'use strict';\n\nimport utils from '../utils.js';\n/**\n * It takes a string like `foo[x][y][z]` and returns an array like `['foo', 'x', 'y', 'z']\n *\n * @param {string} name - The name of the property to get.\n *\n * @returns An array of strings.\n */\n\nfunction parsePropPath(name) {\n // foo[x][y][z]\n // foo.x.y.z\n // foo-x-y-z\n // foo x y z\n return utils.matchAll(/\\w+|\\[(\\w*)]/g, name).map(function (match) {\n return match[0] === '[]' ? '' : match[1] || match[0];\n });\n}\n/**\n * Convert an array to an object.\n *\n * @param {Array} arr - The array to convert to an object.\n *\n * @returns An object with the same keys and values as the array.\n */\n\n\nfunction arrayToObject(arr) {\n var obj = {};\n var keys = Object.keys(arr);\n var i;\n var len = keys.length;\n var key;\n\n for (i = 0; i < len; i++) {\n key = keys[i];\n obj[key] = arr[key];\n }\n\n return obj;\n}\n/**\n * It takes a FormData object and returns a JavaScript object\n *\n * @param {string} formData The FormData object to convert to JSON.\n *\n * @returns {Object | null} The converted object.\n */\n\n\nfunction formDataToJSON(formData) {\n function buildPath(path, value, target, index) {\n var name = path[index++];\n if (name === '__proto__') return true;\n var isNumericKey = Number.isFinite(+name);\n var isLast = index >= path.length;\n name = !name && utils.isArray(target) ? target.length : name;\n\n if (isLast) {\n if (utils.hasOwnProp(target, name)) {\n target[name] = [target[name], value];\n } else {\n target[name] = value;\n }\n\n return !isNumericKey;\n }\n\n if (!target[name] || !utils.isObject(target[name])) {\n target[name] = [];\n }\n\n var result = buildPath(path, value, target[name], index);\n\n if (result && utils.isArray(target[name])) {\n target[name] = arrayToObject(target[name]);\n }\n\n return !isNumericKey;\n }\n\n if (utils.isFormData(formData) && utils.isFunction(formData.entries)) {\n var obj = {};\n utils.forEachEntry(formData, function (name, value) {\n buildPath(parsePropPath(name), value, obj, 0);\n });\n return obj;\n }\n\n return null;\n}\n\nexport default formDataToJSON;","'use strict';\n\nimport utils from '../utils.js';\nimport AxiosError from '../core/AxiosError.js';\nimport transitionalDefaults from './transitional.js';\nimport toFormData from '../helpers/toFormData.js';\nimport toURLEncodedForm from '../helpers/toURLEncodedForm.js';\nimport platform from '../platform/index.js';\nimport formDataToJSON from '../helpers/formDataToJSON.js';\n/**\n * It takes a string, tries to parse it, and if it fails, it returns the stringified version\n * of the input\n *\n * @param {any} rawValue - The value to be stringified.\n * @param {Function} parser - A function that parses a string into a JavaScript object.\n * @param {Function} encoder - A function that takes a value and returns a string.\n *\n * @returns {string} A stringified version of the rawValue.\n */\n\nfunction stringifySafely(rawValue, parser, encoder) {\n if (utils.isString(rawValue)) {\n try {\n (parser || JSON.parse)(rawValue);\n return utils.trim(rawValue);\n } catch (e) {\n if (e.name !== 'SyntaxError') {\n throw e;\n }\n }\n }\n\n return (encoder || JSON.stringify)(rawValue);\n}\n\nvar defaults = {\n transitional: transitionalDefaults,\n adapter: ['xhr', 'http', 'fetch'],\n transformRequest: [function transformRequest(data, headers) {\n var contentType = headers.getContentType() || '';\n var hasJSONContentType = contentType.indexOf('application/json') > -1;\n var isObjectPayload = utils.isObject(data);\n\n if (isObjectPayload && utils.isHTMLForm(data)) {\n data = new FormData(data);\n }\n\n var isFormData = utils.isFormData(data);\n\n if (isFormData) {\n return hasJSONContentType ? JSON.stringify(formDataToJSON(data)) : data;\n }\n\n if (utils.isArrayBuffer(data) || utils.isBuffer(data) || utils.isStream(data) || utils.isFile(data) || utils.isBlob(data) || utils.isReadableStream(data)) {\n return data;\n }\n\n if (utils.isArrayBufferView(data)) {\n return data.buffer;\n }\n\n if (utils.isURLSearchParams(data)) {\n headers.setContentType('application/x-www-form-urlencoded;charset=utf-8', false);\n return data.toString();\n }\n\n var isFileList;\n\n if (isObjectPayload) {\n if (contentType.indexOf('application/x-www-form-urlencoded') > -1) {\n return toURLEncodedForm(data, this.formSerializer).toString();\n }\n\n if ((isFileList = utils.isFileList(data)) || contentType.indexOf('multipart/form-data') > -1) {\n var _FormData = this.env && this.env.FormData;\n\n return toFormData(isFileList ? {\n 'files[]': data\n } : data, _FormData && new _FormData(), this.formSerializer);\n }\n }\n\n if (isObjectPayload || hasJSONContentType) {\n headers.setContentType('application/json', false);\n return stringifySafely(data);\n }\n\n return data;\n }],\n transformResponse: [function transformResponse(data) {\n var transitional = this.transitional || defaults.transitional;\n var forcedJSONParsing = transitional && transitional.forcedJSONParsing;\n var JSONRequested = this.responseType === 'json';\n\n if (utils.isResponse(data) || utils.isReadableStream(data)) {\n return data;\n }\n\n if (data && utils.isString(data) && (forcedJSONParsing && !this.responseType || JSONRequested)) {\n var silentJSONParsing = transitional && transitional.silentJSONParsing;\n var strictJSONParsing = !silentJSONParsing && JSONRequested;\n\n try {\n return JSON.parse(data);\n } catch (e) {\n if (strictJSONParsing) {\n if (e.name === 'SyntaxError') {\n throw AxiosError.from(e, AxiosError.ERR_BAD_RESPONSE, this, null, this.response);\n }\n\n throw e;\n }\n }\n }\n\n return data;\n }],\n\n /**\n * A timeout in milliseconds to abort a request. If set to 0 (default) a\n * timeout is not created.\n */\n timeout: 0,\n xsrfCookieName: 'XSRF-TOKEN',\n xsrfHeaderName: 'X-XSRF-TOKEN',\n maxContentLength: -1,\n maxBodyLength: -1,\n env: {\n FormData: platform.classes.FormData,\n Blob: platform.classes.Blob\n },\n validateStatus: function validateStatus(status) {\n return status >= 200 && status < 300;\n },\n headers: {\n common: {\n 'Accept': 'application/json, text/plain, */*',\n 'Content-Type': undefined\n }\n }\n};\nutils.forEach(['delete', 'get', 'head', 'post', 'put', 'patch'], function (method) {\n defaults.headers[method] = {};\n});\nexport default defaults;","'use strict';\n\nimport utils from '../utils.js';\nimport toFormData from './toFormData.js';\nimport platform from '../platform/index.js';\nexport default function toURLEncodedForm(data, options) {\n return toFormData(data, new platform.classes.URLSearchParams(), Object.assign({\n visitor: function visitor(value, key, path, helpers) {\n if (platform.isNode && utils.isBuffer(value)) {\n this.append(key, value.toString('base64'));\n return false;\n }\n\n return helpers.defaultVisitor.apply(this, arguments);\n }\n }, options));\n}","'use strict';\n\nimport utils from './../utils.js'; // RawAxiosHeaders whose duplicates are ignored by node\n// c.f. https://nodejs.org/api/http.html#http_message_headers\n\nvar ignoreDuplicateOf = utils.toObjectSet(['age', 'authorization', 'content-length', 'content-type', 'etag', 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since', 'last-modified', 'location', 'max-forwards', 'proxy-authorization', 'referer', 'retry-after', 'user-agent']);\n/**\n * Parse headers into an object\n *\n * ```\n * Date: Wed, 27 Aug 2014 08:58:49 GMT\n * Content-Type: application/json\n * Connection: keep-alive\n * Transfer-Encoding: chunked\n * ```\n *\n * @param {String} rawHeaders Headers needing to be parsed\n *\n * @returns {Object} Headers parsed into an object\n */\n\nexport default (function (rawHeaders) {\n var parsed = {};\n var key;\n var val;\n var i;\n rawHeaders && rawHeaders.split('\\n').forEach(function parser(line) {\n i = line.indexOf(':');\n key = line.substring(0, i).trim().toLowerCase();\n val = line.substring(i + 1).trim();\n\n if (!key || parsed[key] && ignoreDuplicateOf[key]) {\n return;\n }\n\n if (key === 'set-cookie') {\n if (parsed[key]) {\n parsed[key].push(val);\n } else {\n parsed[key] = [val];\n }\n } else {\n parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;\n }\n });\n return parsed;\n});","'use strict';\n\nfunction _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== \"undefined\" && o[Symbol.iterator] || o[\"@@iterator\"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e2) { throw _e2; }, f: F }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e3) { didErr = true; err = _e3; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }\n\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nimport utils from '../utils.js';\nimport parseHeaders from '../helpers/parseHeaders.js';\nvar $internals = Symbol('internals');\n\nfunction normalizeHeader(header) {\n return header && String(header).trim().toLowerCase();\n}\n\nfunction normalizeValue(value) {\n if (value === false || value == null) {\n return value;\n }\n\n return utils.isArray(value) ? value.map(normalizeValue) : String(value);\n}\n\nfunction parseTokens(str) {\n var tokens = Object.create(null);\n var tokensRE = /([^\\s,;=]+)\\s*(?:=\\s*([^,;]+))?/g;\n var match;\n\n while (match = tokensRE.exec(str)) {\n tokens[match[1]] = match[2];\n }\n\n return tokens;\n}\n\nvar isValidHeaderName = function isValidHeaderName(str) {\n return /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());\n};\n\nfunction matchHeaderValue(context, value, header, filter, isHeaderNameFilter) {\n if (utils.isFunction(filter)) {\n return filter.call(this, value, header);\n }\n\n if (isHeaderNameFilter) {\n value = header;\n }\n\n if (!utils.isString(value)) return;\n\n if (utils.isString(filter)) {\n return value.indexOf(filter) !== -1;\n }\n\n if (utils.isRegExp(filter)) {\n return filter.test(value);\n }\n}\n\nfunction formatHeader(header) {\n return header.trim().toLowerCase().replace(/([a-z\\d])(\\w*)/g, function (w, char, str) {\n return char.toUpperCase() + str;\n });\n}\n\nfunction buildAccessors(obj, header) {\n var accessorName = utils.toCamelCase(' ' + header);\n ['get', 'set', 'has'].forEach(function (methodName) {\n Object.defineProperty(obj, methodName + accessorName, {\n value: function value(arg1, arg2, arg3) {\n return this[methodName].call(this, header, arg1, arg2, arg3);\n },\n configurable: true\n });\n });\n}\n\nvar AxiosHeaders = /*#__PURE__*/function (_Symbol$iterator, _Symbol$toStringTag) {\n function AxiosHeaders(headers) {\n _classCallCheck(this, AxiosHeaders);\n\n headers && this.set(headers);\n }\n\n _createClass(AxiosHeaders, [{\n key: \"set\",\n value: function set(header, valueOrRewrite, rewrite) {\n var self = this;\n\n function setHeader(_value, _header, _rewrite) {\n var lHeader = normalizeHeader(_header);\n\n if (!lHeader) {\n throw new Error('header name must be a non-empty string');\n }\n\n var key = utils.findKey(self, lHeader);\n\n if (!key || self[key] === undefined || _rewrite === true || _rewrite === undefined && self[key] !== false) {\n self[key || _header] = normalizeValue(_value);\n }\n }\n\n var setHeaders = function setHeaders(headers, _rewrite) {\n return utils.forEach(headers, function (_value, _header) {\n return setHeader(_value, _header, _rewrite);\n });\n };\n\n if (utils.isPlainObject(header) || header instanceof this.constructor) {\n setHeaders(header, valueOrRewrite);\n } else if (utils.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {\n setHeaders(parseHeaders(header), valueOrRewrite);\n } else if (utils.isHeaders(header)) {\n var _iterator = _createForOfIteratorHelper(header.entries()),\n _step;\n\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var _ref3 = _step.value;\n\n var _ref2 = _slicedToArray(_ref3, 2);\n\n var key = _ref2[0];\n var value = _ref2[1];\n setHeader(value, key, rewrite);\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n } else {\n header != null && setHeader(valueOrRewrite, header, rewrite);\n }\n\n return this;\n }\n }, {\n key: \"get\",\n value: function get(header, parser) {\n header = normalizeHeader(header);\n\n if (header) {\n var key = utils.findKey(this, header);\n\n if (key) {\n var value = this[key];\n\n if (!parser) {\n return value;\n }\n\n if (parser === true) {\n return parseTokens(value);\n }\n\n if (utils.isFunction(parser)) {\n return parser.call(this, value, key);\n }\n\n if (utils.isRegExp(parser)) {\n return parser.exec(value);\n }\n\n throw new TypeError('parser must be boolean|regexp|function');\n }\n }\n }\n }, {\n key: \"has\",\n value: function has(header, matcher) {\n header = normalizeHeader(header);\n\n if (header) {\n var key = utils.findKey(this, header);\n return !!(key && this[key] !== undefined && (!matcher || matchHeaderValue(this, this[key], key, matcher)));\n }\n\n return false;\n }\n }, {\n key: \"delete\",\n value: function _delete(header, matcher) {\n var self = this;\n var deleted = false;\n\n function deleteHeader(_header) {\n _header = normalizeHeader(_header);\n\n if (_header) {\n var key = utils.findKey(self, _header);\n\n if (key && (!matcher || matchHeaderValue(self, self[key], key, matcher))) {\n delete self[key];\n deleted = true;\n }\n }\n }\n\n if (utils.isArray(header)) {\n header.forEach(deleteHeader);\n } else {\n deleteHeader(header);\n }\n\n return deleted;\n }\n }, {\n key: \"clear\",\n value: function clear(matcher) {\n var keys = Object.keys(this);\n var i = keys.length;\n var deleted = false;\n\n while (i--) {\n var key = keys[i];\n\n if (!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {\n delete this[key];\n deleted = true;\n }\n }\n\n return deleted;\n }\n }, {\n key: \"normalize\",\n value: function normalize(format) {\n var self = this;\n var headers = {};\n utils.forEach(this, function (value, header) {\n var key = utils.findKey(headers, header);\n\n if (key) {\n self[key] = normalizeValue(value);\n delete self[header];\n return;\n }\n\n var normalized = format ? formatHeader(header) : String(header).trim();\n\n if (normalized !== header) {\n delete self[header];\n }\n\n self[normalized] = normalizeValue(value);\n headers[normalized] = true;\n });\n return this;\n }\n }, {\n key: \"concat\",\n value: function concat() {\n var _this$constructor;\n\n for (var _len = arguments.length, targets = new Array(_len), _key = 0; _key < _len; _key++) {\n targets[_key] = arguments[_key];\n }\n\n return (_this$constructor = this.constructor).concat.apply(_this$constructor, [this].concat(targets));\n }\n }, {\n key: \"toJSON\",\n value: function toJSON(asStrings) {\n var obj = Object.create(null);\n utils.forEach(this, function (value, header) {\n value != null && value !== false && (obj[header] = asStrings && utils.isArray(value) ? value.join(', ') : value);\n });\n return obj;\n }\n }, {\n key: _Symbol$iterator,\n value: function value() {\n return Object.entries(this.toJSON())[Symbol.iterator]();\n }\n }, {\n key: \"toString\",\n value: function toString() {\n return Object.entries(this.toJSON()).map(function (_ref4) {\n var _ref5 = _slicedToArray(_ref4, 2),\n header = _ref5[0],\n value = _ref5[1];\n\n return header + ': ' + value;\n }).join('\\n');\n }\n }, {\n key: _Symbol$toStringTag,\n get: function get() {\n return 'AxiosHeaders';\n }\n }], [{\n key: \"from\",\n value: function from(thing) {\n return thing instanceof this ? thing : new this(thing);\n }\n }, {\n key: \"concat\",\n value: function concat(first) {\n var computed = new this(first);\n\n for (var _len2 = arguments.length, targets = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {\n targets[_key2 - 1] = arguments[_key2];\n }\n\n targets.forEach(function (target) {\n return computed.set(target);\n });\n return computed;\n }\n }, {\n key: \"accessor\",\n value: function accessor(header) {\n var internals = this[$internals] = this[$internals] = {\n accessors: {}\n };\n var accessors = internals.accessors;\n var prototype = this.prototype;\n\n function defineAccessor(_header) {\n var lHeader = normalizeHeader(_header);\n\n if (!accessors[lHeader]) {\n buildAccessors(prototype, _header);\n accessors[lHeader] = true;\n }\n }\n\n utils.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header);\n return this;\n }\n }]);\n\n return AxiosHeaders;\n}(Symbol.iterator, Symbol.toStringTag);\n\nAxiosHeaders.accessor(['Content-Type', 'Content-Length', 'Accept', 'Accept-Encoding', 'User-Agent', 'Authorization']); // reserved names hotfix\n\nutils.reduceDescriptors(AxiosHeaders.prototype, function (_ref6, key) {\n var value = _ref6.value;\n var mapped = key[0].toUpperCase() + key.slice(1); // map `set` => `Set`\n\n return {\n get: function get() {\n return value;\n },\n set: function set(headerValue) {\n this[mapped] = headerValue;\n }\n };\n});\nutils.freezeMethods(AxiosHeaders);\nexport default AxiosHeaders;","'use strict';\n\nimport utils from './../utils.js';\nimport defaults from '../defaults/index.js';\nimport AxiosHeaders from '../core/AxiosHeaders.js';\n/**\n * Transform the data for a request or a response\n *\n * @param {Array|Function} fns A single function or Array of functions\n * @param {?Object} response The response object\n *\n * @returns {*} The resulting transformed data\n */\n\nexport default function transformData(fns, response) {\n var config = this || defaults;\n var context = response || config;\n var headers = AxiosHeaders.from(context.headers);\n var data = context.data;\n utils.forEach(fns, function transform(fn) {\n data = fn.call(config, data, headers.normalize(), response ? response.status : undefined);\n });\n headers.normalize();\n return data;\n}","'use strict';\n\nexport default function isCancel(value) {\n return !!(value && value.__CANCEL__);\n}","'use strict';\n\nimport AxiosError from '../core/AxiosError.js';\nimport utils from '../utils.js';\n/**\n * A `CanceledError` is an object that is thrown when an operation is canceled.\n *\n * @param {string=} message The message.\n * @param {Object=} config The config.\n * @param {Object=} request The request.\n *\n * @returns {CanceledError} The created error.\n */\n\nfunction CanceledError(message, config, request) {\n // eslint-disable-next-line no-eq-null,eqeqeq\n AxiosError.call(this, message == null ? 'canceled' : message, AxiosError.ERR_CANCELED, config, request);\n this.name = 'CanceledError';\n}\n\nutils.inherits(CanceledError, AxiosError, {\n __CANCEL__: true\n});\nexport default CanceledError;","'use strict';\n\nimport AxiosError from './AxiosError.js';\n/**\n * Resolve or reject a Promise based on response status.\n *\n * @param {Function} resolve A function that resolves the promise.\n * @param {Function} reject A function that rejects the promise.\n * @param {object} response The response.\n *\n * @returns {object} The response.\n */\n\nexport default function settle(resolve, reject, response) {\n var validateStatus = response.config.validateStatus;\n\n if (!response.status || !validateStatus || validateStatus(response.status)) {\n resolve(response);\n } else {\n reject(new AxiosError('Request failed with status code ' + response.status, [AxiosError.ERR_BAD_REQUEST, AxiosError.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4], response.config, response.request, response));\n }\n}","'use strict';\n/**\n * Calculate data maxRate\n * @param {Number} [samplesCount= 10]\n * @param {Number} [min= 1000]\n * @returns {Function}\n */\n\nfunction speedometer(samplesCount, min) {\n samplesCount = samplesCount || 10;\n var bytes = new Array(samplesCount);\n var timestamps = new Array(samplesCount);\n var head = 0;\n var tail = 0;\n var firstSampleTS;\n min = min !== undefined ? min : 1000;\n return function push(chunkLength) {\n var now = Date.now();\n var startedAt = timestamps[tail];\n\n if (!firstSampleTS) {\n firstSampleTS = now;\n }\n\n bytes[head] = chunkLength;\n timestamps[head] = now;\n var i = tail;\n var bytesCount = 0;\n\n while (i !== head) {\n bytesCount += bytes[i++];\n i = i % samplesCount;\n }\n\n head = (head + 1) % samplesCount;\n\n if (head === tail) {\n tail = (tail + 1) % samplesCount;\n }\n\n if (now - firstSampleTS < min) {\n return;\n }\n\n var passed = startedAt && now - startedAt;\n return passed ? Math.round(bytesCount * 1000 / passed) : undefined;\n };\n}\n\nexport default speedometer;","/**\n * Throttle decorator\n * @param {Function} fn\n * @param {Number} freq\n * @return {Function}\n */\nfunction throttle(fn, freq) {\n var timestamp = 0;\n var threshold = 1000 / freq;\n var lastArgs;\n var timer;\n\n var invoke = function invoke(args) {\n var now = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : Date.now();\n timestamp = now;\n lastArgs = null;\n\n if (timer) {\n clearTimeout(timer);\n timer = null;\n }\n\n fn.apply(null, args);\n };\n\n var throttled = function throttled() {\n var now = Date.now();\n var passed = now - timestamp;\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n if (passed >= threshold) {\n invoke(args, now);\n } else {\n lastArgs = args;\n\n if (!timer) {\n timer = setTimeout(function () {\n timer = null;\n invoke(lastArgs);\n }, threshold - passed);\n }\n }\n };\n\n var flush = function flush() {\n return lastArgs && invoke(lastArgs);\n };\n\n return [throttled, flush];\n}\n\nexport default throttle;","function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nimport speedometer from \"./speedometer.js\";\nimport throttle from \"./throttle.js\";\nimport utils from \"../utils.js\";\nexport var progressEventReducer = function progressEventReducer(listener, isDownloadStream) {\n var freq = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 3;\n var bytesNotified = 0;\n\n var _speedometer = speedometer(50, 250);\n\n return throttle(function (e) {\n var loaded = e.loaded;\n var total = e.lengthComputable ? e.total : undefined;\n var progressBytes = loaded - bytesNotified;\n\n var rate = _speedometer(progressBytes);\n\n var inRange = loaded <= total;\n bytesNotified = loaded;\n\n var data = _defineProperty({\n loaded: loaded,\n total: total,\n progress: total ? loaded / total : undefined,\n bytes: progressBytes,\n rate: rate ? rate : undefined,\n estimated: rate && total && inRange ? (total - loaded) / rate : undefined,\n event: e,\n lengthComputable: total != null\n }, isDownloadStream ? 'download' : 'upload', true);\n\n listener(data);\n }, freq);\n};\nexport var progressEventDecorator = function progressEventDecorator(total, throttled) {\n var lengthComputable = total != null;\n return [function (loaded) {\n return throttled[0]({\n lengthComputable: lengthComputable,\n total: total,\n loaded: loaded\n });\n }, throttled[1]];\n};\nexport var asyncDecorator = function asyncDecorator(fn) {\n return function () {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return utils.asap(function () {\n return fn.apply(void 0, args);\n });\n };\n};","'use strict';\n\nimport utils from './../utils.js';\nimport platform from '../platform/index.js';\nexport default platform.hasStandardBrowserEnv ? // Standard browser envs have full support of the APIs needed to test\n// whether the request URL is of the same origin as current location.\nfunction standardBrowserEnv() {\n var msie = /(msie|trident)/i.test(navigator.userAgent);\n var urlParsingNode = document.createElement('a');\n var originURL;\n /**\n * Parse a URL to discover its components\n *\n * @param {String} url The URL to be parsed\n * @returns {Object}\n */\n\n function resolveURL(url) {\n var href = url;\n\n if (msie) {\n // IE needs attribute set twice to normalize properties\n urlParsingNode.setAttribute('href', href);\n href = urlParsingNode.href;\n }\n\n urlParsingNode.setAttribute('href', href); // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils\n\n return {\n href: urlParsingNode.href,\n protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',\n host: urlParsingNode.host,\n search: urlParsingNode.search ? urlParsingNode.search.replace(/^\\?/, '') : '',\n hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',\n hostname: urlParsingNode.hostname,\n port: urlParsingNode.port,\n pathname: urlParsingNode.pathname.charAt(0) === '/' ? urlParsingNode.pathname : '/' + urlParsingNode.pathname\n };\n }\n\n originURL = resolveURL(window.location.href);\n /**\n * Determine if a URL shares the same origin as the current location\n *\n * @param {String} requestURL The URL to test\n * @returns {boolean} True if URL shares the same origin, otherwise false\n */\n\n return function isURLSameOrigin(requestURL) {\n var parsed = utils.isString(requestURL) ? resolveURL(requestURL) : requestURL;\n return parsed.protocol === originURL.protocol && parsed.host === originURL.host;\n };\n}() : // Non standard browser envs (web workers, react-native) lack needed support.\nfunction nonStandardBrowserEnv() {\n return function isURLSameOrigin() {\n return true;\n };\n}();","import utils from './../utils.js';\nimport platform from '../platform/index.js';\nexport default platform.hasStandardBrowserEnv ? // Standard browser envs support document.cookie\n{\n write: function write(name, value, expires, path, domain, secure) {\n var cookie = [name + '=' + encodeURIComponent(value)];\n utils.isNumber(expires) && cookie.push('expires=' + new Date(expires).toGMTString());\n utils.isString(path) && cookie.push('path=' + path);\n utils.isString(domain) && cookie.push('domain=' + domain);\n secure === true && cookie.push('secure');\n document.cookie = cookie.join('; ');\n },\n read: function read(name) {\n var match = document.cookie.match(new RegExp('(^|;\\\\s*)(' + name + ')=([^;]*)'));\n return match ? decodeURIComponent(match[3]) : null;\n },\n remove: function remove(name) {\n this.write(name, '', Date.now() - 86400000);\n }\n} : // Non-standard browser env (web workers, react-native) lack needed support.\n{\n write: function write() {},\n read: function read() {\n return null;\n },\n remove: function remove() {}\n};","'use strict';\n\nimport isAbsoluteURL from '../helpers/isAbsoluteURL.js';\nimport combineURLs from '../helpers/combineURLs.js';\n/**\n * Creates a new URL by combining the baseURL with the requestedURL,\n * only when the requestedURL is not already an absolute URL.\n * If the requestURL is absolute, this function returns the requestedURL untouched.\n *\n * @param {string} baseURL The base URL\n * @param {string} requestedURL Absolute or relative URL to combine\n *\n * @returns {string} The combined full path\n */\n\nexport default function buildFullPath(baseURL, requestedURL) {\n if (baseURL && !isAbsoluteURL(requestedURL)) {\n return combineURLs(baseURL, requestedURL);\n }\n\n return requestedURL;\n}","'use strict';\n/**\n * Determines whether the specified URL is absolute\n *\n * @param {string} url The URL to test\n *\n * @returns {boolean} True if the specified URL is absolute, otherwise false\n */\n\nexport default function isAbsoluteURL(url) {\n // A URL is considered absolute if it begins with \"://\" or \"//\" (protocol-relative URL).\n // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed\n // by any combination of letters, digits, plus, period, or hyphen.\n return /^([a-z][a-z\\d+\\-.]*:)?\\/\\//i.test(url);\n}","'use strict';\n/**\n * Creates a new URL by combining the specified URLs\n *\n * @param {string} baseURL The base URL\n * @param {string} relativeURL The relative URL\n *\n * @returns {string} The combined URL\n */\n\nexport default function combineURLs(baseURL, relativeURL) {\n return relativeURL ? baseURL.replace(/\\/?\\/$/, '') + '/' + relativeURL.replace(/^\\/+/, '') : baseURL;\n}","'use strict';\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nimport utils from '../utils.js';\nimport AxiosHeaders from \"./AxiosHeaders.js\";\n\nvar headersToObject = function headersToObject(thing) {\n return thing instanceof AxiosHeaders ? _objectSpread({}, thing) : thing;\n};\n/**\n * Config-specific merge-function which creates a new config-object\n * by merging two configuration objects together.\n *\n * @param {Object} config1\n * @param {Object} config2\n *\n * @returns {Object} New object resulting from merging config2 to config1\n */\n\n\nexport default function mergeConfig(config1, config2) {\n // eslint-disable-next-line no-param-reassign\n config2 = config2 || {};\n var config = {};\n\n function getMergedValue(target, source, caseless) {\n if (utils.isPlainObject(target) && utils.isPlainObject(source)) {\n return utils.merge.call({\n caseless: caseless\n }, target, source);\n } else if (utils.isPlainObject(source)) {\n return utils.merge({}, source);\n } else if (utils.isArray(source)) {\n return source.slice();\n }\n\n return source;\n } // eslint-disable-next-line consistent-return\n\n\n function mergeDeepProperties(a, b, caseless) {\n if (!utils.isUndefined(b)) {\n return getMergedValue(a, b, caseless);\n } else if (!utils.isUndefined(a)) {\n return getMergedValue(undefined, a, caseless);\n }\n } // eslint-disable-next-line consistent-return\n\n\n function valueFromConfig2(a, b) {\n if (!utils.isUndefined(b)) {\n return getMergedValue(undefined, b);\n }\n } // eslint-disable-next-line consistent-return\n\n\n function defaultToConfig2(a, b) {\n if (!utils.isUndefined(b)) {\n return getMergedValue(undefined, b);\n } else if (!utils.isUndefined(a)) {\n return getMergedValue(undefined, a);\n }\n } // eslint-disable-next-line consistent-return\n\n\n function mergeDirectKeys(a, b, prop) {\n if (prop in config2) {\n return getMergedValue(a, b);\n } else if (prop in config1) {\n return getMergedValue(undefined, a);\n }\n }\n\n var mergeMap = {\n url: valueFromConfig2,\n method: valueFromConfig2,\n data: valueFromConfig2,\n baseURL: defaultToConfig2,\n transformRequest: defaultToConfig2,\n transformResponse: defaultToConfig2,\n paramsSerializer: defaultToConfig2,\n timeout: defaultToConfig2,\n timeoutMessage: defaultToConfig2,\n withCredentials: defaultToConfig2,\n withXSRFToken: defaultToConfig2,\n adapter: defaultToConfig2,\n responseType: defaultToConfig2,\n xsrfCookieName: defaultToConfig2,\n xsrfHeaderName: defaultToConfig2,\n onUploadProgress: defaultToConfig2,\n onDownloadProgress: defaultToConfig2,\n decompress: defaultToConfig2,\n maxContentLength: defaultToConfig2,\n maxBodyLength: defaultToConfig2,\n beforeRedirect: defaultToConfig2,\n transport: defaultToConfig2,\n httpAgent: defaultToConfig2,\n httpsAgent: defaultToConfig2,\n cancelToken: defaultToConfig2,\n socketPath: defaultToConfig2,\n responseEncoding: defaultToConfig2,\n validateStatus: mergeDirectKeys,\n headers: function headers(a, b) {\n return mergeDeepProperties(headersToObject(a), headersToObject(b), true);\n }\n };\n utils.forEach(Object.keys(Object.assign({}, config1, config2)), function computeConfigValue(prop) {\n var merge = mergeMap[prop] || mergeDeepProperties;\n var configValue = merge(config1[prop], config2[prop], prop);\n utils.isUndefined(configValue) && merge !== mergeDirectKeys || (config[prop] = configValue);\n });\n return config;\n}","function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }\n\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }\n\nfunction _toArray(arr) { return _arrayWithHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _iterableToArray(iter) { if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter); }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\nimport platform from \"../platform/index.js\";\nimport utils from \"../utils.js\";\nimport isURLSameOrigin from \"./isURLSameOrigin.js\";\nimport cookies from \"./cookies.js\";\nimport buildFullPath from \"../core/buildFullPath.js\";\nimport mergeConfig from \"../core/mergeConfig.js\";\nimport AxiosHeaders from \"../core/AxiosHeaders.js\";\nimport buildURL from \"./buildURL.js\";\nexport default (function (config) {\n var newConfig = mergeConfig({}, config);\n var data = newConfig.data,\n withXSRFToken = newConfig.withXSRFToken,\n xsrfHeaderName = newConfig.xsrfHeaderName,\n xsrfCookieName = newConfig.xsrfCookieName,\n headers = newConfig.headers,\n auth = newConfig.auth;\n newConfig.headers = headers = AxiosHeaders.from(headers);\n newConfig.url = buildURL(buildFullPath(newConfig.baseURL, newConfig.url), config.params, config.paramsSerializer); // HTTP basic authentication\n\n if (auth) {\n headers.set('Authorization', 'Basic ' + btoa((auth.username || '') + ':' + (auth.password ? unescape(encodeURIComponent(auth.password)) : '')));\n }\n\n var contentType;\n\n if (utils.isFormData(data)) {\n if (platform.hasStandardBrowserEnv || platform.hasStandardBrowserWebWorkerEnv) {\n headers.setContentType(undefined); // Let the browser set it\n } else if ((contentType = headers.getContentType()) !== false) {\n // fix semicolon duplication issue for ReactNative FormData implementation\n var _ref = contentType ? contentType.split(';').map(function (token) {\n return token.trim();\n }).filter(Boolean) : [],\n _ref2 = _toArray(_ref),\n type = _ref2[0],\n tokens = _ref2.slice(1);\n\n headers.setContentType([type || 'multipart/form-data'].concat(_toConsumableArray(tokens)).join('; '));\n }\n } // Add xsrf header\n // This is only done if running in a standard browser environment.\n // Specifically not if we're in a web worker, or react-native.\n\n\n if (platform.hasStandardBrowserEnv) {\n withXSRFToken && utils.isFunction(withXSRFToken) && (withXSRFToken = withXSRFToken(newConfig));\n\n if (withXSRFToken || withXSRFToken !== false && isURLSameOrigin(newConfig.url)) {\n // Add xsrf header\n var xsrfValue = xsrfHeaderName && xsrfCookieName && cookies.read(xsrfCookieName);\n\n if (xsrfValue) {\n headers.set(xsrfHeaderName, xsrfValue);\n }\n }\n }\n\n return newConfig;\n});","function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\nimport utils from './../utils.js';\nimport settle from './../core/settle.js';\nimport transitionalDefaults from '../defaults/transitional.js';\nimport AxiosError from '../core/AxiosError.js';\nimport CanceledError from '../cancel/CanceledError.js';\nimport parseProtocol from '../helpers/parseProtocol.js';\nimport platform from '../platform/index.js';\nimport AxiosHeaders from '../core/AxiosHeaders.js';\nimport { progressEventReducer } from '../helpers/progressEventReducer.js';\nimport resolveConfig from \"../helpers/resolveConfig.js\";\nvar isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined';\nexport default isXHRAdapterSupported && function (config) {\n return new Promise(function dispatchXhrRequest(resolve, reject) {\n var _config = resolveConfig(config);\n\n var requestData = _config.data;\n var requestHeaders = AxiosHeaders.from(_config.headers).normalize();\n var responseType = _config.responseType,\n onUploadProgress = _config.onUploadProgress,\n onDownloadProgress = _config.onDownloadProgress;\n var onCanceled;\n var uploadThrottled, downloadThrottled;\n var flushUpload, flushDownload;\n\n function done() {\n flushUpload && flushUpload(); // flush events\n\n flushDownload && flushDownload(); // flush events\n\n _config.cancelToken && _config.cancelToken.unsubscribe(onCanceled);\n _config.signal && _config.signal.removeEventListener('abort', onCanceled);\n }\n\n var request = new XMLHttpRequest();\n request.open(_config.method.toUpperCase(), _config.url, true); // Set the request timeout in MS\n\n request.timeout = _config.timeout;\n\n function onloadend() {\n if (!request) {\n return;\n } // Prepare the response\n\n\n var responseHeaders = AxiosHeaders.from('getAllResponseHeaders' in request && request.getAllResponseHeaders());\n var responseData = !responseType || responseType === 'text' || responseType === 'json' ? request.responseText : request.response;\n var response = {\n data: responseData,\n status: request.status,\n statusText: request.statusText,\n headers: responseHeaders,\n config: config,\n request: request\n };\n settle(function _resolve(value) {\n resolve(value);\n done();\n }, function _reject(err) {\n reject(err);\n done();\n }, response); // Clean up request\n\n request = null;\n }\n\n if ('onloadend' in request) {\n // Use onloadend if available\n request.onloadend = onloadend;\n } else {\n // Listen for ready state to emulate onloadend\n request.onreadystatechange = function handleLoad() {\n if (!request || request.readyState !== 4) {\n return;\n } // The request errored out and we didn't get a response, this will be\n // handled by onerror instead\n // With one exception: request that using file: protocol, most browsers\n // will return status as 0 even though it's a successful request\n\n\n if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) {\n return;\n } // readystate handler is calling before onerror or ontimeout handlers,\n // so we should call onloadend on the next 'tick'\n\n\n setTimeout(onloadend);\n };\n } // Handle browser request cancellation (as opposed to a manual cancellation)\n\n\n request.onabort = function handleAbort() {\n if (!request) {\n return;\n }\n\n reject(new AxiosError('Request aborted', AxiosError.ECONNABORTED, config, request)); // Clean up request\n\n request = null;\n }; // Handle low level network errors\n\n\n request.onerror = function handleError() {\n // Real errors are hidden from us by the browser\n // onerror should only fire if it's a network error\n reject(new AxiosError('Network Error', AxiosError.ERR_NETWORK, config, request)); // Clean up request\n\n request = null;\n }; // Handle timeout\n\n\n request.ontimeout = function handleTimeout() {\n var timeoutErrorMessage = _config.timeout ? 'timeout of ' + _config.timeout + 'ms exceeded' : 'timeout exceeded';\n var transitional = _config.transitional || transitionalDefaults;\n\n if (_config.timeoutErrorMessage) {\n timeoutErrorMessage = _config.timeoutErrorMessage;\n }\n\n reject(new AxiosError(timeoutErrorMessage, transitional.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED, config, request)); // Clean up request\n\n request = null;\n }; // Remove Content-Type if data is undefined\n\n\n requestData === undefined && requestHeaders.setContentType(null); // Add headers to the request\n\n if ('setRequestHeader' in request) {\n utils.forEach(requestHeaders.toJSON(), function setRequestHeader(val, key) {\n request.setRequestHeader(key, val);\n });\n } // Add withCredentials to request if needed\n\n\n if (!utils.isUndefined(_config.withCredentials)) {\n request.withCredentials = !!_config.withCredentials;\n } // Add responseType to request if needed\n\n\n if (responseType && responseType !== 'json') {\n request.responseType = _config.responseType;\n } // Handle progress if needed\n\n\n if (onDownloadProgress) {\n var _progressEventReducer = progressEventReducer(onDownloadProgress, true);\n\n var _progressEventReducer2 = _slicedToArray(_progressEventReducer, 2);\n\n downloadThrottled = _progressEventReducer2[0];\n flushDownload = _progressEventReducer2[1];\n request.addEventListener('progress', downloadThrottled);\n } // Not all browsers support upload events\n\n\n if (onUploadProgress && request.upload) {\n var _progressEventReducer3 = progressEventReducer(onUploadProgress);\n\n var _progressEventReducer4 = _slicedToArray(_progressEventReducer3, 2);\n\n uploadThrottled = _progressEventReducer4[0];\n flushUpload = _progressEventReducer4[1];\n request.upload.addEventListener('progress', uploadThrottled);\n request.upload.addEventListener('loadend', flushUpload);\n }\n\n if (_config.cancelToken || _config.signal) {\n // Handle cancellation\n // eslint-disable-next-line func-names\n onCanceled = function onCanceled(cancel) {\n if (!request) {\n return;\n }\n\n reject(!cancel || cancel.type ? new CanceledError(null, config, request) : cancel);\n request.abort();\n request = null;\n };\n\n _config.cancelToken && _config.cancelToken.subscribe(onCanceled);\n\n if (_config.signal) {\n _config.signal.aborted ? onCanceled() : _config.signal.addEventListener('abort', onCanceled);\n }\n }\n\n var protocol = parseProtocol(_config.url);\n\n if (protocol && platform.protocols.indexOf(protocol) === -1) {\n reject(new AxiosError('Unsupported protocol ' + protocol + ':', AxiosError.ERR_BAD_REQUEST, config));\n return;\n } // Send the request\n\n\n request.send(requestData || null);\n });\n};","'use strict';\n\nexport default function parseProtocol(url) {\n var match = /^([-+\\w]{1,25})(:?\\/\\/|:)/.exec(url);\n return match && match[1] || '';\n}","import CanceledError from \"../cancel/CanceledError.js\";\nimport AxiosError from \"../core/AxiosError.js\";\n\nvar composeSignals = function composeSignals(signals, timeout) {\n var controller = new AbortController();\n var aborted;\n\n var onabort = function onabort(cancel) {\n if (!aborted) {\n aborted = true;\n unsubscribe();\n var err = cancel instanceof Error ? cancel : this.reason;\n controller.abort(err instanceof AxiosError ? err : new CanceledError(err instanceof Error ? err.message : err));\n }\n };\n\n var timer = timeout && setTimeout(function () {\n onabort(new AxiosError(\"timeout \".concat(timeout, \" of ms exceeded\"), AxiosError.ETIMEDOUT));\n }, timeout);\n\n var unsubscribe = function unsubscribe() {\n if (signals) {\n timer && clearTimeout(timer);\n timer = null;\n signals.forEach(function (signal) {\n signal && (signal.removeEventListener ? signal.removeEventListener('abort', onabort) : signal.unsubscribe(onabort));\n });\n signals = null;\n }\n };\n\n signals.forEach(function (signal) {\n return signal && signal.addEventListener && signal.addEventListener('abort', onabort);\n });\n var signal = controller.signal;\n signal.unsubscribe = unsubscribe;\n return [signal, function () {\n timer && clearTimeout(timer);\n timer = null;\n }];\n};\n\nexport default composeSignals;","function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }\n\nfunction _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err); } _next(undefined); }); }; }\n\nimport _regeneratorRuntime from \"@babel/runtime/regenerator\";\n\nfunction _wrapAsyncGenerator(fn) { return function () { return new _AsyncGenerator(fn.apply(this, arguments)); }; }\n\nfunction _AsyncGenerator(gen) { var front, back; function send(key, arg) { return new Promise(function (resolve, reject) { var request = { key: key, arg: arg, resolve: resolve, reject: reject, next: null }; if (back) { back = back.next = request; } else { front = back = request; resume(key, arg); } }); } function resume(key, arg) { try { var result = gen[key](arg); var value = result.value; var wrappedAwait = value instanceof _AwaitValue; Promise.resolve(wrappedAwait ? value.wrapped : value).then(function (arg) { if (wrappedAwait) { resume(key === \"return\" ? \"return\" : \"next\", arg); return; } settle(result.done ? \"return\" : \"normal\", arg); }, function (err) { resume(\"throw\", err); }); } catch (err) { settle(\"throw\", err); } } function settle(type, value) { switch (type) { case \"return\": front.resolve({ value: value, done: true }); break; case \"throw\": front.reject(value); break; default: front.resolve({ value: value, done: false }); break; } front = front.next; if (front) { resume(front.key, front.arg); } else { back = null; } } this._invoke = send; if (typeof gen.return !== \"function\") { this.return = undefined; } }\n\n_AsyncGenerator.prototype[typeof Symbol === \"function\" && Symbol.asyncIterator || \"@@asyncIterator\"] = function () { return this; };\n\n_AsyncGenerator.prototype.next = function (arg) { return this._invoke(\"next\", arg); };\n\n_AsyncGenerator.prototype.throw = function (arg) { return this._invoke(\"throw\", arg); };\n\n_AsyncGenerator.prototype.return = function (arg) { return this._invoke(\"return\", arg); };\n\nfunction _awaitAsyncGenerator(value) { return new _AwaitValue(value); }\n\nfunction _AwaitValue(value) { this.wrapped = value; }\n\nfunction _asyncGeneratorDelegate(inner, awaitWrap) { var iter = {}, waiting = false; function pump(key, value) { waiting = true; value = new Promise(function (resolve) { resolve(inner[key](value)); }); return { done: false, value: awaitWrap(value) }; } ; iter[typeof Symbol !== \"undefined\" && Symbol.iterator || \"@@iterator\"] = function () { return this; }; iter.next = function (value) { if (waiting) { waiting = false; return value; } return pump(\"next\", value); }; if (typeof inner.throw === \"function\") { iter.throw = function (value) { if (waiting) { waiting = false; throw value; } return pump(\"throw\", value); }; } if (typeof inner.return === \"function\") { iter.return = function (value) { if (waiting) { waiting = false; return value; } return pump(\"return\", value); }; } return iter; }\n\nfunction _asyncIterator(iterable) { var method; if (typeof Symbol !== \"undefined\") { if (Symbol.asyncIterator) method = iterable[Symbol.asyncIterator]; if (method == null && Symbol.iterator) method = iterable[Symbol.iterator]; } if (method == null) method = iterable[\"@@asyncIterator\"]; if (method == null) method = iterable[\"@@iterator\"]; if (method == null) throw new TypeError(\"Object is not async iterable\"); return method.call(iterable); }\n\nexport var streamChunk = /*#__PURE__*/_regeneratorRuntime.mark(function _callee(chunk, chunkSize) {\n var len, pos, end;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n len = chunk.byteLength;\n\n if (!(!chunkSize || len < chunkSize)) {\n _context.next = 5;\n break;\n }\n\n _context.next = 4;\n return chunk;\n\n case 4:\n return _context.abrupt(\"return\");\n\n case 5:\n pos = 0;\n\n case 6:\n if (!(pos < len)) {\n _context.next = 13;\n break;\n }\n\n end = pos + chunkSize;\n _context.next = 10;\n return chunk.slice(pos, end);\n\n case 10:\n pos = end;\n _context.next = 6;\n break;\n\n case 13:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee);\n});\nexport var readBytes = /*#__PURE__*/function () {\n var _ref = _wrapAsyncGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(iterable, chunkSize, encode) {\n var _iteratorAbruptCompletion, _didIteratorError, _iteratorError, _iterator, _step, chunk;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n _iteratorAbruptCompletion = false;\n _didIteratorError = false;\n _context2.prev = 2;\n _iterator = _asyncIterator(iterable);\n\n case 4:\n _context2.next = 6;\n return _awaitAsyncGenerator(_iterator.next());\n\n case 6:\n if (!(_iteratorAbruptCompletion = !(_step = _context2.sent).done)) {\n _context2.next = 27;\n break;\n }\n\n chunk = _step.value;\n _context2.t0 = _asyncGeneratorDelegate;\n _context2.t1 = _asyncIterator;\n _context2.t2 = streamChunk;\n\n if (!ArrayBuffer.isView(chunk)) {\n _context2.next = 15;\n break;\n }\n\n _context2.t3 = chunk;\n _context2.next = 18;\n break;\n\n case 15:\n _context2.next = 17;\n return _awaitAsyncGenerator(encode(String(chunk)));\n\n case 17:\n _context2.t3 = _context2.sent;\n\n case 18:\n _context2.t4 = _context2.t3;\n _context2.t5 = chunkSize;\n _context2.t6 = (0, _context2.t2)(_context2.t4, _context2.t5);\n _context2.t7 = (0, _context2.t1)(_context2.t6);\n _context2.t8 = _awaitAsyncGenerator;\n return _context2.delegateYield((0, _context2.t0)(_context2.t7, _context2.t8), \"t9\", 24);\n\n case 24:\n _iteratorAbruptCompletion = false;\n _context2.next = 4;\n break;\n\n case 27:\n _context2.next = 33;\n break;\n\n case 29:\n _context2.prev = 29;\n _context2.t10 = _context2[\"catch\"](2);\n _didIteratorError = true;\n _iteratorError = _context2.t10;\n\n case 33:\n _context2.prev = 33;\n _context2.prev = 34;\n\n if (!(_iteratorAbruptCompletion && _iterator.return != null)) {\n _context2.next = 38;\n break;\n }\n\n _context2.next = 38;\n return _awaitAsyncGenerator(_iterator.return());\n\n case 38:\n _context2.prev = 38;\n\n if (!_didIteratorError) {\n _context2.next = 41;\n break;\n }\n\n throw _iteratorError;\n\n case 41:\n return _context2.finish(38);\n\n case 42:\n return _context2.finish(33);\n\n case 43:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, null, [[2, 29, 33, 43], [34,, 38, 42]]);\n }));\n\n return function readBytes(_x, _x2, _x3) {\n return _ref.apply(this, arguments);\n };\n}();\nexport var trackStream = function trackStream(stream, chunkSize, onProgress, onFinish, encode) {\n var iterator = readBytes(stream, chunkSize, encode);\n var bytes = 0;\n var done;\n\n var _onFinish = function _onFinish(e) {\n if (!done) {\n done = true;\n onFinish && onFinish(e);\n }\n };\n\n return new ReadableStream({\n pull: function pull(controller) {\n return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n var _yield$iterator$next, _done, value, len, loadedBytes;\n\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n _context3.prev = 0;\n _context3.next = 3;\n return iterator.next();\n\n case 3:\n _yield$iterator$next = _context3.sent;\n _done = _yield$iterator$next.done;\n value = _yield$iterator$next.value;\n\n if (!_done) {\n _context3.next = 10;\n break;\n }\n\n _onFinish();\n\n controller.close();\n return _context3.abrupt(\"return\");\n\n case 10:\n len = value.byteLength;\n\n if (onProgress) {\n loadedBytes = bytes += len;\n onProgress(loadedBytes);\n }\n\n controller.enqueue(new Uint8Array(value));\n _context3.next = 19;\n break;\n\n case 15:\n _context3.prev = 15;\n _context3.t0 = _context3[\"catch\"](0);\n\n _onFinish(_context3.t0);\n\n throw _context3.t0;\n\n case 19:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, null, [[0, 15]]);\n }))();\n },\n cancel: function cancel(reason) {\n _onFinish(reason);\n\n return iterator.return();\n }\n }, {\n highWaterMark: 2\n });\n};","function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\nimport _regeneratorRuntime from \"@babel/runtime/regenerator\";\n\nfunction asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }\n\nfunction _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err); } _next(undefined); }); }; }\n\nimport platform from \"../platform/index.js\";\nimport utils from \"../utils.js\";\nimport AxiosError from \"../core/AxiosError.js\";\nimport composeSignals from \"../helpers/composeSignals.js\";\nimport { trackStream } from \"../helpers/trackStream.js\";\nimport AxiosHeaders from \"../core/AxiosHeaders.js\";\nimport { progressEventReducer, progressEventDecorator, asyncDecorator } from \"../helpers/progressEventReducer.js\";\nimport resolveConfig from \"../helpers/resolveConfig.js\";\nimport settle from \"../core/settle.js\";\nvar isFetchSupported = typeof fetch === 'function' && typeof Request === 'function' && typeof Response === 'function';\nvar isReadableStreamSupported = isFetchSupported && typeof ReadableStream === 'function'; // used only inside the fetch adapter\n\nvar encodeText = isFetchSupported && (typeof TextEncoder === 'function' ? function (encoder) {\n return function (str) {\n return encoder.encode(str);\n };\n}(new TextEncoder()) : /*#__PURE__*/function () {\n var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(str) {\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.t0 = Uint8Array;\n _context.next = 3;\n return new Response(str).arrayBuffer();\n\n case 3:\n _context.t1 = _context.sent;\n return _context.abrupt(\"return\", new _context.t0(_context.t1));\n\n case 5:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee);\n }));\n\n return function (_x) {\n return _ref.apply(this, arguments);\n };\n}());\n\nvar test = function test(fn) {\n try {\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n\n return !!fn.apply(void 0, args);\n } catch (e) {\n return false;\n }\n};\n\nvar supportsRequestStream = isReadableStreamSupported && test(function () {\n var duplexAccessed = false;\n var hasContentType = new Request(platform.origin, {\n body: new ReadableStream(),\n method: 'POST',\n\n get duplex() {\n duplexAccessed = true;\n return 'half';\n }\n\n }).headers.has('Content-Type');\n return duplexAccessed && !hasContentType;\n});\nvar DEFAULT_CHUNK_SIZE = 64 * 1024;\nvar supportsResponseStream = isReadableStreamSupported && test(function () {\n return utils.isReadableStream(new Response('').body);\n});\nvar resolvers = {\n stream: supportsResponseStream && function (res) {\n return res.body;\n }\n};\nisFetchSupported && function (res) {\n ['text', 'arrayBuffer', 'blob', 'formData', 'stream'].forEach(function (type) {\n !resolvers[type] && (resolvers[type] = utils.isFunction(res[type]) ? function (res) {\n return res[type]();\n } : function (_, config) {\n throw new AxiosError(\"Response type '\".concat(type, \"' is not supported\"), AxiosError.ERR_NOT_SUPPORT, config);\n });\n });\n}(new Response());\n\nvar getBodyLength = /*#__PURE__*/function () {\n var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(body) {\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n if (!(body == null)) {\n _context2.next = 2;\n break;\n }\n\n return _context2.abrupt(\"return\", 0);\n\n case 2:\n if (!utils.isBlob(body)) {\n _context2.next = 4;\n break;\n }\n\n return _context2.abrupt(\"return\", body.size);\n\n case 4:\n if (!utils.isSpecCompliantForm(body)) {\n _context2.next = 8;\n break;\n }\n\n _context2.next = 7;\n return new Request(body).arrayBuffer();\n\n case 7:\n return _context2.abrupt(\"return\", _context2.sent.byteLength);\n\n case 8:\n if (!(utils.isArrayBufferView(body) || utils.isArrayBuffer(body))) {\n _context2.next = 10;\n break;\n }\n\n return _context2.abrupt(\"return\", body.byteLength);\n\n case 10:\n if (utils.isURLSearchParams(body)) {\n body = body + '';\n }\n\n if (!utils.isString(body)) {\n _context2.next = 15;\n break;\n }\n\n _context2.next = 14;\n return encodeText(body);\n\n case 14:\n return _context2.abrupt(\"return\", _context2.sent.byteLength);\n\n case 15:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2);\n }));\n\n return function getBodyLength(_x2) {\n return _ref2.apply(this, arguments);\n };\n}();\n\nvar resolveBodyLength = /*#__PURE__*/function () {\n var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3(headers, body) {\n var length;\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n length = utils.toFiniteNumber(headers.getContentLength());\n return _context3.abrupt(\"return\", length == null ? getBodyLength(body) : length);\n\n case 2:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3);\n }));\n\n return function resolveBodyLength(_x3, _x4) {\n return _ref3.apply(this, arguments);\n };\n}();\n\nexport default isFetchSupported && /*#__PURE__*/function () {\n var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee4(config) {\n var _resolveConfig, url, method, data, signal, cancelToken, timeout, onDownloadProgress, onUploadProgress, responseType, headers, _resolveConfig$withCr, withCredentials, fetchOptions, _ref5, _ref6, composedSignal, stopTimeout, finished, request, onFinish, requestContentLength, _request, contentTypeHeader, _progressEventDecorat, _progressEventDecorat2, onProgress, flush, response, isStreamResponse, options, responseContentLength, _ref7, _ref8, _onProgress, _flush, responseData;\n\n return _regeneratorRuntime.wrap(function _callee4$(_context4) {\n while (1) {\n switch (_context4.prev = _context4.next) {\n case 0:\n _resolveConfig = resolveConfig(config), url = _resolveConfig.url, method = _resolveConfig.method, data = _resolveConfig.data, signal = _resolveConfig.signal, cancelToken = _resolveConfig.cancelToken, timeout = _resolveConfig.timeout, onDownloadProgress = _resolveConfig.onDownloadProgress, onUploadProgress = _resolveConfig.onUploadProgress, responseType = _resolveConfig.responseType, headers = _resolveConfig.headers, _resolveConfig$withCr = _resolveConfig.withCredentials, withCredentials = _resolveConfig$withCr === void 0 ? 'same-origin' : _resolveConfig$withCr, fetchOptions = _resolveConfig.fetchOptions;\n responseType = responseType ? (responseType + '').toLowerCase() : 'text';\n _ref5 = signal || cancelToken || timeout ? composeSignals([signal, cancelToken], timeout) : [], _ref6 = _slicedToArray(_ref5, 2), composedSignal = _ref6[0], stopTimeout = _ref6[1];\n\n onFinish = function onFinish() {\n !finished && setTimeout(function () {\n composedSignal && composedSignal.unsubscribe();\n });\n finished = true;\n };\n\n _context4.prev = 4;\n _context4.t0 = onUploadProgress && supportsRequestStream && method !== 'get' && method !== 'head';\n\n if (!_context4.t0) {\n _context4.next = 11;\n break;\n }\n\n _context4.next = 9;\n return resolveBodyLength(headers, data);\n\n case 9:\n _context4.t1 = requestContentLength = _context4.sent;\n _context4.t0 = _context4.t1 !== 0;\n\n case 11:\n if (!_context4.t0) {\n _context4.next = 15;\n break;\n }\n\n _request = new Request(url, {\n method: 'POST',\n body: data,\n duplex: \"half\"\n });\n\n if (utils.isFormData(data) && (contentTypeHeader = _request.headers.get('content-type'))) {\n headers.setContentType(contentTypeHeader);\n }\n\n if (_request.body) {\n _progressEventDecorat = progressEventDecorator(requestContentLength, progressEventReducer(asyncDecorator(onUploadProgress))), _progressEventDecorat2 = _slicedToArray(_progressEventDecorat, 2), onProgress = _progressEventDecorat2[0], flush = _progressEventDecorat2[1];\n data = trackStream(_request.body, DEFAULT_CHUNK_SIZE, onProgress, flush, encodeText);\n }\n\n case 15:\n if (!utils.isString(withCredentials)) {\n withCredentials = withCredentials ? 'include' : 'omit';\n }\n\n request = new Request(url, _objectSpread(_objectSpread({}, fetchOptions), {}, {\n signal: composedSignal,\n method: method.toUpperCase(),\n headers: headers.normalize().toJSON(),\n body: data,\n duplex: \"half\",\n credentials: withCredentials\n }));\n _context4.next = 19;\n return fetch(request);\n\n case 19:\n response = _context4.sent;\n isStreamResponse = supportsResponseStream && (responseType === 'stream' || responseType === 'response');\n\n if (supportsResponseStream && (onDownloadProgress || isStreamResponse)) {\n options = {};\n ['status', 'statusText', 'headers'].forEach(function (prop) {\n options[prop] = response[prop];\n });\n responseContentLength = utils.toFiniteNumber(response.headers.get('content-length'));\n _ref7 = onDownloadProgress && progressEventDecorator(responseContentLength, progressEventReducer(asyncDecorator(onDownloadProgress), true)) || [], _ref8 = _slicedToArray(_ref7, 2), _onProgress = _ref8[0], _flush = _ref8[1];\n response = new Response(trackStream(response.body, DEFAULT_CHUNK_SIZE, _onProgress, function () {\n _flush && _flush();\n isStreamResponse && onFinish();\n }, encodeText), options);\n }\n\n responseType = responseType || 'text';\n _context4.next = 25;\n return resolvers[utils.findKey(resolvers, responseType) || 'text'](response, config);\n\n case 25:\n responseData = _context4.sent;\n !isStreamResponse && onFinish();\n stopTimeout && stopTimeout();\n _context4.next = 30;\n return new Promise(function (resolve, reject) {\n settle(resolve, reject, {\n data: responseData,\n headers: AxiosHeaders.from(response.headers),\n status: response.status,\n statusText: response.statusText,\n config: config,\n request: request\n });\n });\n\n case 30:\n return _context4.abrupt(\"return\", _context4.sent);\n\n case 33:\n _context4.prev = 33;\n _context4.t2 = _context4[\"catch\"](4);\n onFinish();\n\n if (!(_context4.t2 && _context4.t2.name === 'TypeError' && /fetch/i.test(_context4.t2.message))) {\n _context4.next = 38;\n break;\n }\n\n throw Object.assign(new AxiosError('Network Error', AxiosError.ERR_NETWORK, config, request), {\n cause: _context4.t2.cause || _context4.t2\n });\n\n case 38:\n throw AxiosError.from(_context4.t2, _context4.t2 && _context4.t2.code, config, request);\n\n case 39:\n case \"end\":\n return _context4.stop();\n }\n }\n }, _callee4, null, [[4, 33]]);\n }));\n\n return function (_x5) {\n return _ref4.apply(this, arguments);\n };\n}();","function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\nimport utils from '../utils.js';\nimport httpAdapter from './http.js';\nimport xhrAdapter from './xhr.js';\nimport fetchAdapter from './fetch.js';\nimport AxiosError from \"../core/AxiosError.js\";\nvar knownAdapters = {\n http: httpAdapter,\n xhr: xhrAdapter,\n fetch: fetchAdapter\n};\nutils.forEach(knownAdapters, function (fn, value) {\n if (fn) {\n try {\n Object.defineProperty(fn, 'name', {\n value: value\n });\n } catch (e) {// eslint-disable-next-line no-empty\n }\n\n Object.defineProperty(fn, 'adapterName', {\n value: value\n });\n }\n});\n\nvar renderReason = function renderReason(reason) {\n return \"- \".concat(reason);\n};\n\nvar isResolvedHandle = function isResolvedHandle(adapter) {\n return utils.isFunction(adapter) || adapter === null || adapter === false;\n};\n\nexport default {\n getAdapter: function getAdapter(adapters) {\n adapters = utils.isArray(adapters) ? adapters : [adapters];\n var _adapters = adapters,\n length = _adapters.length;\n var nameOrAdapter;\n var adapter;\n var rejectedReasons = {};\n\n for (var i = 0; i < length; i++) {\n nameOrAdapter = adapters[i];\n var id = void 0;\n adapter = nameOrAdapter;\n\n if (!isResolvedHandle(nameOrAdapter)) {\n adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];\n\n if (adapter === undefined) {\n throw new AxiosError(\"Unknown adapter '\".concat(id, \"'\"));\n }\n }\n\n if (adapter) {\n break;\n }\n\n rejectedReasons[id || '#' + i] = adapter;\n }\n\n if (!adapter) {\n var reasons = Object.entries(rejectedReasons).map(function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n id = _ref2[0],\n state = _ref2[1];\n\n return \"adapter \".concat(id, \" \") + (state === false ? 'is not supported by the environment' : 'is not available in the build');\n });\n var s = length ? reasons.length > 1 ? 'since :\\n' + reasons.map(renderReason).join('\\n') : ' ' + renderReason(reasons[0]) : 'as no adapter specified';\n throw new AxiosError(\"There is no suitable adapter to dispatch the request \" + s, 'ERR_NOT_SUPPORT');\n }\n\n return adapter;\n },\n adapters: knownAdapters\n};","'use strict';\n\nimport transformData from './transformData.js';\nimport isCancel from '../cancel/isCancel.js';\nimport defaults from '../defaults/index.js';\nimport CanceledError from '../cancel/CanceledError.js';\nimport AxiosHeaders from '../core/AxiosHeaders.js';\nimport adapters from \"../adapters/adapters.js\";\n/**\n * Throws a `CanceledError` if cancellation has been requested.\n *\n * @param {Object} config The config that is to be used for the request\n *\n * @returns {void}\n */\n\nfunction throwIfCancellationRequested(config) {\n if (config.cancelToken) {\n config.cancelToken.throwIfRequested();\n }\n\n if (config.signal && config.signal.aborted) {\n throw new CanceledError(null, config);\n }\n}\n/**\n * Dispatch a request to the server using the configured adapter.\n *\n * @param {object} config The config that is to be used for the request\n *\n * @returns {Promise} The Promise to be fulfilled\n */\n\n\nexport default function dispatchRequest(config) {\n throwIfCancellationRequested(config);\n config.headers = AxiosHeaders.from(config.headers); // Transform request data\n\n config.data = transformData.call(config, config.transformRequest);\n\n if (['post', 'put', 'patch'].indexOf(config.method) !== -1) {\n config.headers.setContentType('application/x-www-form-urlencoded', false);\n }\n\n var adapter = adapters.getAdapter(config.adapter || defaults.adapter);\n return adapter(config).then(function onAdapterResolution(response) {\n throwIfCancellationRequested(config); // Transform response data\n\n response.data = transformData.call(config, config.transformResponse, response);\n response.headers = AxiosHeaders.from(response.headers);\n return response;\n }, function onAdapterRejection(reason) {\n if (!isCancel(reason)) {\n throwIfCancellationRequested(config); // Transform response data\n\n if (reason && reason.response) {\n reason.response.data = transformData.call(config, config.transformResponse, reason.response);\n reason.response.headers = AxiosHeaders.from(reason.response.headers);\n }\n }\n\n return Promise.reject(reason);\n });\n}","export var VERSION = \"1.7.4\";","'use strict';\n\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nimport { VERSION } from '../env/data.js';\nimport AxiosError from '../core/AxiosError.js';\nvar validators = {}; // eslint-disable-next-line func-names\n\n['object', 'boolean', 'number', 'function', 'string', 'symbol'].forEach(function (type, i) {\n validators[type] = function validator(thing) {\n return _typeof(thing) === type || 'a' + (i < 1 ? 'n ' : ' ') + type;\n };\n});\nvar deprecatedWarnings = {};\n/**\n * Transitional option validator\n *\n * @param {function|boolean?} validator - set to false if the transitional option has been removed\n * @param {string?} version - deprecated version / removed since version\n * @param {string?} message - some message with additional info\n *\n * @returns {function}\n */\n\nvalidators.transitional = function transitional(validator, version, message) {\n function formatMessage(opt, desc) {\n return '[Axios v' + VERSION + '] Transitional option \\'' + opt + '\\'' + desc + (message ? '. ' + message : '');\n } // eslint-disable-next-line func-names\n\n\n return function (value, opt, opts) {\n if (validator === false) {\n throw new AxiosError(formatMessage(opt, ' has been removed' + (version ? ' in ' + version : '')), AxiosError.ERR_DEPRECATED);\n }\n\n if (version && !deprecatedWarnings[opt]) {\n deprecatedWarnings[opt] = true; // eslint-disable-next-line no-console\n\n console.warn(formatMessage(opt, ' has been deprecated since v' + version + ' and will be removed in the near future'));\n }\n\n return validator ? validator(value, opt, opts) : true;\n };\n};\n/**\n * Assert object's properties type\n *\n * @param {object} options\n * @param {object} schema\n * @param {boolean?} allowUnknown\n *\n * @returns {object}\n */\n\n\nfunction assertOptions(options, schema, allowUnknown) {\n if (_typeof(options) !== 'object') {\n throw new AxiosError('options must be an object', AxiosError.ERR_BAD_OPTION_VALUE);\n }\n\n var keys = Object.keys(options);\n var i = keys.length;\n\n while (i-- > 0) {\n var opt = keys[i];\n var validator = schema[opt];\n\n if (validator) {\n var value = options[opt];\n var result = value === undefined || validator(value, opt, options);\n\n if (result !== true) {\n throw new AxiosError('option ' + opt + ' must be ' + result, AxiosError.ERR_BAD_OPTION_VALUE);\n }\n\n continue;\n }\n\n if (allowUnknown !== true) {\n throw new AxiosError('Unknown option ' + opt, AxiosError.ERR_BAD_OPTION);\n }\n }\n}\n\nexport default {\n assertOptions: assertOptions,\n validators: validators\n};","'use strict';\n\nimport _regeneratorRuntime from \"@babel/runtime/regenerator\";\n\nfunction asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }\n\nfunction _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err); } _next(undefined); }); }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nimport utils from './../utils.js';\nimport buildURL from '../helpers/buildURL.js';\nimport InterceptorManager from './InterceptorManager.js';\nimport dispatchRequest from './dispatchRequest.js';\nimport mergeConfig from './mergeConfig.js';\nimport buildFullPath from './buildFullPath.js';\nimport validator from '../helpers/validator.js';\nimport AxiosHeaders from './AxiosHeaders.js';\nvar validators = validator.validators;\n/**\n * Create a new instance of Axios\n *\n * @param {Object} instanceConfig The default config for the instance\n *\n * @return {Axios} A new instance of Axios\n */\n\nvar Axios = /*#__PURE__*/function () {\n function Axios(instanceConfig) {\n _classCallCheck(this, Axios);\n\n this.defaults = instanceConfig;\n this.interceptors = {\n request: new InterceptorManager(),\n response: new InterceptorManager()\n };\n }\n /**\n * Dispatch a request\n *\n * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)\n * @param {?Object} config\n *\n * @returns {Promise} The Promise to be fulfilled\n */\n\n\n _createClass(Axios, [{\n key: \"request\",\n value: function () {\n var _request2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(configOrUrl, config) {\n var dummy, stack;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.prev = 0;\n _context.next = 3;\n return this._request(configOrUrl, config);\n\n case 3:\n return _context.abrupt(\"return\", _context.sent);\n\n case 6:\n _context.prev = 6;\n _context.t0 = _context[\"catch\"](0);\n\n if (_context.t0 instanceof Error) {\n Error.captureStackTrace ? Error.captureStackTrace(dummy = {}) : dummy = new Error(); // slice off the Error: ... line\n\n stack = dummy.stack ? dummy.stack.replace(/^.+\\n/, '') : '';\n\n try {\n if (!_context.t0.stack) {\n _context.t0.stack = stack; // match without the 2 top stack lines\n } else if (stack && !String(_context.t0.stack).endsWith(stack.replace(/^.+\\n.+\\n/, ''))) {\n _context.t0.stack += '\\n' + stack;\n }\n } catch (e) {// ignore the case where \"stack\" is an un-writable property\n }\n }\n\n throw _context.t0;\n\n case 10:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this, [[0, 6]]);\n }));\n\n function request(_x, _x2) {\n return _request2.apply(this, arguments);\n }\n\n return request;\n }()\n }, {\n key: \"_request\",\n value: function _request(configOrUrl, config) {\n /*eslint no-param-reassign:0*/\n // Allow for axios('example/url'[, config]) a la fetch API\n if (typeof configOrUrl === 'string') {\n config = config || {};\n config.url = configOrUrl;\n } else {\n config = configOrUrl || {};\n }\n\n config = mergeConfig(this.defaults, config);\n var _config = config,\n transitional = _config.transitional,\n paramsSerializer = _config.paramsSerializer,\n headers = _config.headers;\n\n if (transitional !== undefined) {\n validator.assertOptions(transitional, {\n silentJSONParsing: validators.transitional(validators.boolean),\n forcedJSONParsing: validators.transitional(validators.boolean),\n clarifyTimeoutError: validators.transitional(validators.boolean)\n }, false);\n }\n\n if (paramsSerializer != null) {\n if (utils.isFunction(paramsSerializer)) {\n config.paramsSerializer = {\n serialize: paramsSerializer\n };\n } else {\n validator.assertOptions(paramsSerializer, {\n encode: validators.function,\n serialize: validators.function\n }, true);\n }\n } // Set config.method\n\n\n config.method = (config.method || this.defaults.method || 'get').toLowerCase(); // Flatten headers\n\n var contextHeaders = headers && utils.merge(headers.common, headers[config.method]);\n headers && utils.forEach(['delete', 'get', 'head', 'post', 'put', 'patch', 'common'], function (method) {\n delete headers[method];\n });\n config.headers = AxiosHeaders.concat(contextHeaders, headers); // filter out skipped interceptors\n\n var requestInterceptorChain = [];\n var synchronousRequestInterceptors = true;\n this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {\n if (typeof interceptor.runWhen === 'function' && interceptor.runWhen(config) === false) {\n return;\n }\n\n synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;\n requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);\n });\n var responseInterceptorChain = [];\n this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {\n responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);\n });\n var promise;\n var i = 0;\n var len;\n\n if (!synchronousRequestInterceptors) {\n var chain = [dispatchRequest.bind(this), undefined];\n chain.unshift.apply(chain, requestInterceptorChain);\n chain.push.apply(chain, responseInterceptorChain);\n len = chain.length;\n promise = Promise.resolve(config);\n\n while (i < len) {\n promise = promise.then(chain[i++], chain[i++]);\n }\n\n return promise;\n }\n\n len = requestInterceptorChain.length;\n var newConfig = config;\n i = 0;\n\n while (i < len) {\n var onFulfilled = requestInterceptorChain[i++];\n var onRejected = requestInterceptorChain[i++];\n\n try {\n newConfig = onFulfilled(newConfig);\n } catch (error) {\n onRejected.call(this, error);\n break;\n }\n }\n\n try {\n promise = dispatchRequest.call(this, newConfig);\n } catch (error) {\n return Promise.reject(error);\n }\n\n i = 0;\n len = responseInterceptorChain.length;\n\n while (i < len) {\n promise = promise.then(responseInterceptorChain[i++], responseInterceptorChain[i++]);\n }\n\n return promise;\n }\n }, {\n key: \"getUri\",\n value: function getUri(config) {\n config = mergeConfig(this.defaults, config);\n var fullPath = buildFullPath(config.baseURL, config.url);\n return buildURL(fullPath, config.params, config.paramsSerializer);\n }\n }]);\n\n return Axios;\n}(); // Provide aliases for supported request methods\n\n\nutils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {\n /*eslint func-names:0*/\n Axios.prototype[method] = function (url, config) {\n return this.request(mergeConfig(config || {}, {\n method: method,\n url: url,\n data: (config || {}).data\n }));\n };\n});\nutils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {\n /*eslint func-names:0*/\n function generateHTTPMethod(isForm) {\n return function httpMethod(url, data, config) {\n return this.request(mergeConfig(config || {}, {\n method: method,\n headers: isForm ? {\n 'Content-Type': 'multipart/form-data'\n } : {},\n url: url,\n data: data\n }));\n };\n }\n\n Axios.prototype[method] = generateHTTPMethod();\n Axios.prototype[method + 'Form'] = generateHTTPMethod(true);\n});\nexport default Axios;","'use strict';\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nimport CanceledError from './CanceledError.js';\n/**\n * A `CancelToken` is an object that can be used to request cancellation of an operation.\n *\n * @param {Function} executor The executor function.\n *\n * @returns {CancelToken}\n */\n\nvar CancelToken = /*#__PURE__*/function () {\n function CancelToken(executor) {\n _classCallCheck(this, CancelToken);\n\n if (typeof executor !== 'function') {\n throw new TypeError('executor must be a function.');\n }\n\n var resolvePromise;\n this.promise = new Promise(function promiseExecutor(resolve) {\n resolvePromise = resolve;\n });\n var token = this; // eslint-disable-next-line func-names\n\n this.promise.then(function (cancel) {\n if (!token._listeners) return;\n var i = token._listeners.length;\n\n while (i-- > 0) {\n token._listeners[i](cancel);\n }\n\n token._listeners = null;\n }); // eslint-disable-next-line func-names\n\n this.promise.then = function (onfulfilled) {\n var _resolve; // eslint-disable-next-line func-names\n\n\n var promise = new Promise(function (resolve) {\n token.subscribe(resolve);\n _resolve = resolve;\n }).then(onfulfilled);\n\n promise.cancel = function reject() {\n token.unsubscribe(_resolve);\n };\n\n return promise;\n };\n\n executor(function cancel(message, config, request) {\n if (token.reason) {\n // Cancellation has already been requested\n return;\n }\n\n token.reason = new CanceledError(message, config, request);\n resolvePromise(token.reason);\n });\n }\n /**\n * Throws a `CanceledError` if cancellation has been requested.\n */\n\n\n _createClass(CancelToken, [{\n key: \"throwIfRequested\",\n value: function throwIfRequested() {\n if (this.reason) {\n throw this.reason;\n }\n }\n /**\n * Subscribe to the cancel signal\n */\n\n }, {\n key: \"subscribe\",\n value: function subscribe(listener) {\n if (this.reason) {\n listener(this.reason);\n return;\n }\n\n if (this._listeners) {\n this._listeners.push(listener);\n } else {\n this._listeners = [listener];\n }\n }\n /**\n * Unsubscribe from the cancel signal\n */\n\n }, {\n key: \"unsubscribe\",\n value: function unsubscribe(listener) {\n if (!this._listeners) {\n return;\n }\n\n var index = this._listeners.indexOf(listener);\n\n if (index !== -1) {\n this._listeners.splice(index, 1);\n }\n }\n /**\n * Returns an object that contains a new `CancelToken` and a function that, when called,\n * cancels the `CancelToken`.\n */\n\n }], [{\n key: \"source\",\n value: function source() {\n var cancel;\n var token = new CancelToken(function executor(c) {\n cancel = c;\n });\n return {\n token: token,\n cancel: cancel\n };\n }\n }]);\n\n return CancelToken;\n}();\n\nexport default CancelToken;","function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\nvar HttpStatusCode = {\n Continue: 100,\n SwitchingProtocols: 101,\n Processing: 102,\n EarlyHints: 103,\n Ok: 200,\n Created: 201,\n Accepted: 202,\n NonAuthoritativeInformation: 203,\n NoContent: 204,\n ResetContent: 205,\n PartialContent: 206,\n MultiStatus: 207,\n AlreadyReported: 208,\n ImUsed: 226,\n MultipleChoices: 300,\n MovedPermanently: 301,\n Found: 302,\n SeeOther: 303,\n NotModified: 304,\n UseProxy: 305,\n Unused: 306,\n TemporaryRedirect: 307,\n PermanentRedirect: 308,\n BadRequest: 400,\n Unauthorized: 401,\n PaymentRequired: 402,\n Forbidden: 403,\n NotFound: 404,\n MethodNotAllowed: 405,\n NotAcceptable: 406,\n ProxyAuthenticationRequired: 407,\n RequestTimeout: 408,\n Conflict: 409,\n Gone: 410,\n LengthRequired: 411,\n PreconditionFailed: 412,\n PayloadTooLarge: 413,\n UriTooLong: 414,\n UnsupportedMediaType: 415,\n RangeNotSatisfiable: 416,\n ExpectationFailed: 417,\n ImATeapot: 418,\n MisdirectedRequest: 421,\n UnprocessableEntity: 422,\n Locked: 423,\n FailedDependency: 424,\n TooEarly: 425,\n UpgradeRequired: 426,\n PreconditionRequired: 428,\n TooManyRequests: 429,\n RequestHeaderFieldsTooLarge: 431,\n UnavailableForLegalReasons: 451,\n InternalServerError: 500,\n NotImplemented: 501,\n BadGateway: 502,\n ServiceUnavailable: 503,\n GatewayTimeout: 504,\n HttpVersionNotSupported: 505,\n VariantAlsoNegotiates: 506,\n InsufficientStorage: 507,\n LoopDetected: 508,\n NotExtended: 510,\n NetworkAuthenticationRequired: 511\n};\nObject.entries(HttpStatusCode).forEach(function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n key = _ref2[0],\n value = _ref2[1];\n\n HttpStatusCode[value] = key;\n});\nexport default HttpStatusCode;","'use strict';\n\nimport utils from './utils.js';\nimport bind from './helpers/bind.js';\nimport Axios from './core/Axios.js';\nimport mergeConfig from './core/mergeConfig.js';\nimport defaults from './defaults/index.js';\nimport formDataToJSON from './helpers/formDataToJSON.js';\nimport CanceledError from './cancel/CanceledError.js';\nimport CancelToken from './cancel/CancelToken.js';\nimport isCancel from './cancel/isCancel.js';\nimport { VERSION } from './env/data.js';\nimport toFormData from './helpers/toFormData.js';\nimport AxiosError from './core/AxiosError.js';\nimport spread from './helpers/spread.js';\nimport isAxiosError from './helpers/isAxiosError.js';\nimport AxiosHeaders from \"./core/AxiosHeaders.js\";\nimport adapters from './adapters/adapters.js';\nimport HttpStatusCode from './helpers/HttpStatusCode.js';\n/**\n * Create an instance of Axios\n *\n * @param {Object} defaultConfig The default config for the instance\n *\n * @returns {Axios} A new instance of Axios\n */\n\nfunction createInstance(defaultConfig) {\n var context = new Axios(defaultConfig);\n var instance = bind(Axios.prototype.request, context); // Copy axios.prototype to instance\n\n utils.extend(instance, Axios.prototype, context, {\n allOwnKeys: true\n }); // Copy context to instance\n\n utils.extend(instance, context, null, {\n allOwnKeys: true\n }); // Factory for creating new instances\n\n instance.create = function create(instanceConfig) {\n return createInstance(mergeConfig(defaultConfig, instanceConfig));\n };\n\n return instance;\n} // Create the default instance to be exported\n\n\nvar axios = createInstance(defaults); // Expose Axios class to allow class inheritance\n\naxios.Axios = Axios; // Expose Cancel & CancelToken\n\naxios.CanceledError = CanceledError;\naxios.CancelToken = CancelToken;\naxios.isCancel = isCancel;\naxios.VERSION = VERSION;\naxios.toFormData = toFormData; // Expose AxiosError class\n\naxios.AxiosError = AxiosError; // alias for CanceledError for backward compatibility\n\naxios.Cancel = axios.CanceledError; // Expose all/spread\n\naxios.all = function all(promises) {\n return Promise.all(promises);\n};\n\naxios.spread = spread; // Expose isAxiosError\n\naxios.isAxiosError = isAxiosError; // Expose mergeConfig\n\naxios.mergeConfig = mergeConfig;\naxios.AxiosHeaders = AxiosHeaders;\n\naxios.formToJSON = function (thing) {\n return formDataToJSON(utils.isHTMLForm(thing) ? new FormData(thing) : thing);\n};\n\naxios.getAdapter = adapters.getAdapter;\naxios.HttpStatusCode = HttpStatusCode;\naxios.default = axios; // this module should only have a default export\n\nexport default axios;","'use strict';\n/**\n * Syntactic sugar for invoking a function and expanding an array for arguments.\n *\n * Common use case would be to use `Function.prototype.apply`.\n *\n * ```js\n * function f(x, y, z) {}\n * var args = [1, 2, 3];\n * f.apply(null, args);\n * ```\n *\n * With `spread` this example can be re-written.\n *\n * ```js\n * spread(function(x, y, z) {})([1, 2, 3]);\n * ```\n *\n * @param {Function} callback\n *\n * @returns {Function}\n */\n\nexport default function spread(callback) {\n return function wrap(arr) {\n return callback.apply(null, arr);\n };\n}","'use strict';\n\nimport utils from './../utils.js';\n/**\n * Determines whether the payload is an error thrown by Axios\n *\n * @param {*} payload The value to test\n *\n * @returns {boolean} True if the payload is an error thrown by Axios, otherwise false\n */\n\nexport default function isAxiosError(payload) {\n return utils.isObject(payload) && payload.isAxiosError === true;\n}","\"use strict\";\n\nif (typeof Object.assign !== \"function\") {\n Object.assign = function (target) {\n if (!target) {\n throw TypeError(\"Cannot convert undefined or null to object\");\n }\n\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n\n var _loop = function _loop() {\n var source = _args[_i];\n\n if (source) {\n Object.keys(source).forEach(function (key) {\n return target[key] = source[key];\n });\n }\n };\n\n for (var _i = 0, _args = args; _i < _args.length; _i++) {\n _loop();\n }\n\n return target;\n };\n}","var map = {\n\t\"./accommodation_controller.js\": 127,\n\t\"./accommodation_request_controller.js\": 128,\n\t\"./accordion_controller.js\": 129,\n\t\"./add_in_place_controller.js\": 130,\n\t\"./alert_controller.js\": 131,\n\t\"./birthdate_controller.js\": 132,\n\t\"./booking_resource_sku_association_controller.js\": 133,\n\t\"./booking_room_assignment_controller.js\": 134,\n\t\"./contact_card_controller.js\": 135,\n\t\"./copy_to_clipboard_controller.js\": 136,\n\t\"./custom_select_controller.js\": 137,\n\t\"./date_range_filter_controller.js\": 138,\n\t\"./drag_drop_controller.js\": 182,\n\t\"./dropdown_controller.js\": 139,\n\t\"./due_on_controller.js\": 140,\n\t\"./easybill_settings_controller.js\": 141,\n\t\"./edit_booking_controller.js\": 181,\n\t\"./edit_in_place_controller.js\": 142,\n\t\"./expandable_controller.js\": 143,\n\t\"./final_submit_controller.js\": 144,\n\t\"./flatpickr_controller.js\": 183,\n\t\"./flight_selection_modal_controller.js\": 184,\n\t\"./flight_update_profile_controller.js\": 145,\n\t\"./flights_controller.js\": 146,\n\t\"./flightsearch_result_controller.js\": 147,\n\t\"./flightsearch_results_controller.js\": 148,\n\t\"./floating_action_controller.js\": 149,\n\t\"./form_validation_controller.js\": 150,\n\t\"./gallery_controller.js\": 151,\n\t\"./grouped_booking_transfers_controller.js\": 152,\n\t\"./grouped_skus_controller.js\": 153,\n\t\"./mobile_nav_controller.js\": 154,\n\t\"./modal_controller.js\": 36,\n\t\"./my_carousel_controller.js\": 155,\n\t\"./participant_autocomplete_controller.js\": 156,\n\t\"./payment_item_controller.js\": 157,\n\t\"./pickup_dropoff_modal_controller.js\": 158,\n\t\"./pnr_parser_controller.js\": 159,\n\t\"./poll_invoice_status_controller.js\": 160,\n\t\"./process_payment_controller.js\": 161,\n\t\"./refund_payments_controller.js\": 162,\n\t\"./request_step_controller.js\": 163,\n\t\"./resources_controller.js\": 164,\n\t\"./room_controller.js\": 180,\n\t\"./scroll_controller.js\": 165,\n\t\"./search_controller.js\": 166,\n\t\"./secondary_state_controller.js\": 167,\n\t\"./select_all_controller.js\": 168,\n\t\"./select_participant_controller.js\": 169,\n\t\"./select_participants_controller.js\": 170,\n\t\"./select_payments_controller.js\": 171,\n\t\"./sorted_checkbox_collection_controller.js\": 172,\n\t\"./sorting_controller.js\": 173,\n\t\"./tabs_controller.js\": 174,\n\t\"./tooltip_controller.js\": 175,\n\t\"./transfer_autocomplete_controller.js\": 176,\n\t\"./turbo_frame_overlay_controller.js\": 177,\n\t\"./validate_dates_controller.js\": 178,\n\t\"./validation_check_controller.js\": 179\n};\n\n\nfunction webpackContext(req) {\n\tvar id = webpackContextResolve(req);\n\treturn __webpack_require__(id);\n}\nfunction webpackContextResolve(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\treturn map[req];\n}\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = 187;","var map = {\n\t\"./flights/flight_item_component/flight_item_controller.js\": 189,\n\t\"./frontoffice/rentalbikes/booked_rentalbike_option_component/booked_rentalbike_option_controller.js\": 190,\n\t\"./frontoffice/rentalbikes/booked_rentalbikes_component/booked_rentalbikes_controller.js\": 191,\n\t\"./frontoffice/rentalbikes/details_component/details_controller.js\": 192,\n\t\"./frontoffice/steps/rentalbike_request_component/select_rentalbike_controller.js\": 193,\n\t\"./frontoffice/steps/training_package_step_component/training_package_step_controller.js\": 194,\n\t\"./frontoffice/steps/transfer_step_component/transfer_step_controller.js\": 195,\n\t\"./frontoffice/training_packages/booked_training_package_component/booked_training_package_controller.js\": 196,\n\t\"./frontoffice/training_packages/training_package_option_component/training_package_option_controller.js\": 197,\n\t\"./frontoffice/transfers/booked_transfer_component/booked_transfer_controller.js\": 198,\n\t\"./frontoffice/transfers/transfer_option_component/transfer_option_controller.js\": 199,\n\t\"./inventories/calendar_component/calendar_controller.js\": 200\n};\n\n\nfunction webpackContext(req) {\n\tvar id = webpackContextResolve(req);\n\treturn __webpack_require__(id);\n}\nfunction webpackContextResolve(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\treturn map[req];\n}\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = 188;","import { Controller } from \"@hotwired/stimulus\";\nimport updateApproval from \"backoffice/flights\";\n\nexport default class extends Controller {\n static targets = [\"modal\", \"message\"];\n\n static values = {\n flight: Object,\n lastVersionId: Number,\n currentUserId: Number,\n approvableId: Number,\n approvableType: String,\n };\n\n handleChange(event) {\n event.preventDefault();\n\n const { id } = this.flightValue;\n const lastVersionId = this.lastVersionIdValue;\n const currentUserId = this.currentUserIdValue;\n const approvableId = this.approvableIdValue;\n const approvableType = this.approvableTypeValue;\n let approved = false;\n\n if (event.target.checked) approved = true;\n\n const success = () => {\n if (event.target.checked && this.hasMessageTarget)\n this.messageTarget.remove();\n };\n\n const error = () => {};\n\n updateApproval({\n id,\n lastVersionId,\n currentUserId,\n approvableId,\n approvableType,\n approved,\n success,\n error,\n });\n }\n\n showDetails() {\n this.modalTarget.style.display = \"block\";\n }\n}\n","'use strict';\n\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nimport utils from '../utils.js';\nimport AxiosError from '../core/AxiosError.js'; // temporary hotfix to avoid circular references until AxiosURLSearchParams is refactored\n\nimport PlatformFormData from '../platform/node/classes/FormData.js';\n/**\n * Determines if the given thing is a array or js object.\n *\n * @param {string} thing - The object or array to be visited.\n *\n * @returns {boolean}\n */\n\nfunction isVisitable(thing) {\n return utils.isPlainObject(thing) || utils.isArray(thing);\n}\n/**\n * It removes the brackets from the end of a string\n *\n * @param {string} key - The key of the parameter.\n *\n * @returns {string} the key without the brackets.\n */\n\n\nfunction removeBrackets(key) {\n return utils.endsWith(key, '[]') ? key.slice(0, -2) : key;\n}\n/**\n * It takes a path, a key, and a boolean, and returns a string\n *\n * @param {string} path - The path to the current key.\n * @param {string} key - The key of the current object being iterated over.\n * @param {string} dots - If true, the key will be rendered with dots instead of brackets.\n *\n * @returns {string} The path to the current key.\n */\n\n\nfunction renderKey(path, key, dots) {\n if (!path) return key;\n return path.concat(key).map(function each(token, i) {\n // eslint-disable-next-line no-param-reassign\n token = removeBrackets(token);\n return !dots && i ? '[' + token + ']' : token;\n }).join(dots ? '.' : '');\n}\n/**\n * If the array is an array and none of its elements are visitable, then it's a flat array.\n *\n * @param {Array} arr - The array to check\n *\n * @returns {boolean}\n */\n\n\nfunction isFlatArray(arr) {\n return utils.isArray(arr) && !arr.some(isVisitable);\n}\n\nvar predicates = utils.toFlatObject(utils, {}, null, function filter(prop) {\n return /^is[A-Z]/.test(prop);\n});\n/**\n * Convert a data object to FormData\n *\n * @param {Object} obj\n * @param {?Object} [formData]\n * @param {?Object} [options]\n * @param {Function} [options.visitor]\n * @param {Boolean} [options.metaTokens = true]\n * @param {Boolean} [options.dots = false]\n * @param {?Boolean} [options.indexes = false]\n *\n * @returns {Object}\n **/\n\n/**\n * It converts an object into a FormData object\n *\n * @param {Object} obj - The object to convert to form data.\n * @param {string} formData - The FormData object to append to.\n * @param {Object} options\n *\n * @returns\n */\n\nfunction toFormData(obj, formData, options) {\n if (!utils.isObject(obj)) {\n throw new TypeError('target must be an object');\n } // eslint-disable-next-line no-param-reassign\n\n\n formData = formData || new (PlatformFormData || FormData)(); // eslint-disable-next-line no-param-reassign\n\n options = utils.toFlatObject(options, {\n metaTokens: true,\n dots: false,\n indexes: false\n }, false, function defined(option, source) {\n // eslint-disable-next-line no-eq-null,eqeqeq\n return !utils.isUndefined(source[option]);\n });\n var metaTokens = options.metaTokens; // eslint-disable-next-line no-use-before-define\n\n var visitor = options.visitor || defaultVisitor;\n var dots = options.dots;\n var indexes = options.indexes;\n\n var _Blob = options.Blob || typeof Blob !== 'undefined' && Blob;\n\n var useBlob = _Blob && utils.isSpecCompliantForm(formData);\n\n if (!utils.isFunction(visitor)) {\n throw new TypeError('visitor must be a function');\n }\n\n function convertValue(value) {\n if (value === null) return '';\n\n if (utils.isDate(value)) {\n return value.toISOString();\n }\n\n if (!useBlob && utils.isBlob(value)) {\n throw new AxiosError('Blob is not supported. Use a Buffer instead.');\n }\n\n if (utils.isArrayBuffer(value) || utils.isTypedArray(value)) {\n return useBlob && typeof Blob === 'function' ? new Blob([value]) : Buffer.from(value);\n }\n\n return value;\n }\n /**\n * Default visitor.\n *\n * @param {*} value\n * @param {String|Number} key\n * @param {Array} path\n * @this {FormData}\n *\n * @returns {boolean} return true to visit the each prop of the value recursively\n */\n\n\n function defaultVisitor(value, key, path) {\n var arr = value;\n\n if (value && !path && _typeof(value) === 'object') {\n if (utils.endsWith(key, '{}')) {\n // eslint-disable-next-line no-param-reassign\n key = metaTokens ? key : key.slice(0, -2); // eslint-disable-next-line no-param-reassign\n\n value = JSON.stringify(value);\n } else if (utils.isArray(value) && isFlatArray(value) || (utils.isFileList(value) || utils.endsWith(key, '[]')) && (arr = utils.toArray(value))) {\n // eslint-disable-next-line no-param-reassign\n key = removeBrackets(key);\n arr.forEach(function each(el, index) {\n !(utils.isUndefined(el) || el === null) && formData.append( // eslint-disable-next-line no-nested-ternary\n indexes === true ? renderKey([key], index, dots) : indexes === null ? key : key + '[]', convertValue(el));\n });\n return false;\n }\n }\n\n if (isVisitable(value)) {\n return true;\n }\n\n formData.append(renderKey(path, key, dots), convertValue(value));\n return false;\n }\n\n var stack = [];\n var exposedHelpers = Object.assign(predicates, {\n defaultVisitor: defaultVisitor,\n convertValue: convertValue,\n isVisitable: isVisitable\n });\n\n function build(value, path) {\n if (utils.isUndefined(value)) return;\n\n if (stack.indexOf(value) !== -1) {\n throw Error('Circular reference detected in ' + path.join('.'));\n }\n\n stack.push(value);\n utils.forEach(value, function each(el, key) {\n var result = !(utils.isUndefined(el) || el === null) && visitor.call(formData, el, utils.isString(key) ? key.trim() : key, path, exposedHelpers);\n\n if (result === true) {\n build(el, path ? path.concat(key) : [key]);\n }\n });\n stack.pop();\n }\n\n if (!utils.isObject(obj)) {\n throw new TypeError('data must be an object');\n }\n\n build(obj);\n return formData;\n}\n\nexport default toFormData;","/* eslint-disable camelcase */\nimport { Controller } from \"@hotwired/stimulus\";\n\nimport { remove } from \"frontoffice/services/bookingResourceSkusService\";\n\nexport default class extends Controller {\n static targets = [\"image\", \"name\", \"description\", \"price\", \"height\"];\n\n initialize() {\n if (this.element.dataset.bookingResourceSku) {\n this.bookingResourceSku = JSON.parse(\n this.element.dataset.bookingResourceSku\n );\n this.element.dataset.id = this.bookingResourceSku.attributes.id;\n this.updateDetails();\n }\n }\n\n updateBookingTotalPrice() {\n const bookingResourceSkusChanged = new CustomEvent(\"booking-resource-skus-changed\", {\n bubbles: true,\n cancelable: true,\n composed: false,\n });\n\n this.element.dispatchEvent(bookingResourceSkusChanged);\n }\n\n updateDetails() {\n const { teaser_image, name, description, localized_price, height } =\n this.bookingResourceSku.attributes;\n\n this.nameTarget.innerHTML = name;\n this.descriptionTarget.innerHTML = description;\n this.priceTarget.innerHTML = localized_price;\n this.heightTarget.innerHTML = height;\n\n if (teaser_image) {\n this.imageTarget.src = teaser_image;\n }\n }\n\n remove() {\n const { id } = this.element.dataset;\n\n const bookingResourceSkuRemoved = new CustomEvent(\n \"booking-resource-sku-removed\",\n {\n detail: {\n element: this.element,\n },\n bubbles: true,\n cancelable: true,\n composed: false,\n }\n );\n\n const success = () => {\n this.updateBookingTotalPrice();\n this.element.remove();\n window.dispatchEvent(bookingResourceSkuRemoved);\n };\n\n const error = (response) => console.log(response);\n\n remove({\n id,\n success,\n error,\n });\n }\n}\n","import { Controller } from \"@hotwired/stimulus\";\n\nexport default class extends Controller {\n static targets = [\n \"bookedRentalbikeTemplate\",\n \"bookedRentalbikesSection\",\n \"ctaSection\",\n ];\n\n initialize() {\n this.updateCtaSectionVisibility();\n }\n\n updateBookedPositions(event) {\n const node =\n this.bookedRentalbikeTemplateTarget.content.firstElementChild.cloneNode(\n true\n );\n\n node.dataset.bookingResourceSku = JSON.stringify(event.detail.data);\n\n this.bookedRentalbikesSectionTarget.appendChild(node);\n this.ctaSectionTarget.classList.remove(\"hidden\");\n\n if (node.scrollIntoView) {\n this.bookedRentalbikesSectionTarget.scrollIntoView({\n behavior: \"smooth\",\n });\n } else {\n window.scrollTo(node);\n }\n }\n\n positionRemoved() {\n this.updateCtaSectionVisibility();\n }\n\n updateCtaSectionVisibility() {\n if (this.bookedRentalbikesSectionTarget.children.length <= 0) {\n this.ctaSectionTarget.classList.add(\"hidden\");\n } else {\n this.ctaSectionTarget.classList.remove(\"hidden\");\n }\n }\n}\n","import { Controller } from \"@hotwired/stimulus\";\n\nimport { create } from \"frontoffice/services/bookingResourceSkusService\";\nimport {\n fetchAvailable,\n fetchPrice,\n} from \"frontoffice/services/resourceSkusService\";\n\nexport default class extends Controller {\n static targets = [\"price\", \"resourceSkuSelect\", \"loadingOverlay\", \"height\"];\n\n static values = {\n price: String,\n resourceSkus: Array,\n selectedResourceSkuId: Number,\n selectedDates: Array,\n };\n\n static observer;\n\n connect() {\n this.priceTarget.innerHTML = this.priceValue;\n\n this.startObservingVisiblity();\n }\n\n disconnect() {\n this.loadingValue = false;\n\n this.stopObservingVisibility();\n }\n\n initialize() {\n this.quantity = 1;\n [this.startsOn, this.endsOn] = this.selectedDatesValue;\n this.resourceId = this.element.dataset.id;\n }\n\n priceValueChanged(value) {\n this.priceTarget.innerHTML = value;\n }\n\n resourceSkusValueChanged(value) {\n if (value.length === 0) {\n this.disable();\n\n return;\n }\n\n const [firstResourceSku] = value;\n\n [this.selectedResourceSkuIdValue] = firstResourceSku;\n\n this.resourceSkuSelectTarget.innerHTML = value\n .map((resourceSku) => {\n return ``;\n })\n .join(\"\\n\");\n }\n\n selectedDatesValueChanged(value) {\n [this.startsOn, this.endsOn] = value;\n\n this.reset();\n }\n\n selectedResourceSkuIdValueChanged() {\n this.fetchPrice();\n }\n\n selectDateRange(event) {\n const {\n detail: { selectedDates },\n } = event;\n\n if (selectedDates.length === 2) {\n this.selectedDatesValue = [\n selectedDates[0].toLocaleDateString(\"se\"),\n selectedDates[1].toLocaleDateString(\"se\"),\n ];\n }\n }\n\n selectResourceSku(event) {\n this.selectedResourceSkuIdValue = event.target.value;\n }\n\n updatePrice(price) {\n this.priceValue = price;\n }\n\n reset() {\n this.fetchAvailableResourceSkus();\n this.fetchPrice();\n }\n\n fetchPrice() {\n this.showLoadingOverlay(true);\n\n const success = (response) => {\n this.updatePrice(response.price);\n };\n const error = () => {\n this.priceValue = \"Not available\";\n };\n\n fetchPrice({\n id: this.selectedResourceSkuIdValue,\n startsOn: this.startsOn,\n endsOn: this.endsOn,\n quantity: this.quantity,\n success,\n error,\n });\n\n this.showLoadingOverlay(false);\n }\n\n fetchAvailableResourceSkus() {\n this.showLoadingOverlay(true);\n\n const success = (response) => {\n this.resourceSkusValue = response.map((resourceSku) => [\n resourceSku.id,\n resourceSku.name,\n ]);\n };\n\n const error = () => {\n this.resourceSkusValue = [];\n };\n\n fetchAvailable({\n resourceId: this.resourceId,\n startsOn: this.startsOn,\n endsOn: this.endsOn,\n quantity: this.quantity,\n success,\n error,\n });\n\n this.showLoadingOverlay(false);\n }\n\n book() {\n this.showLoadingOverlay(true);\n\n const success = (response) => {\n const bookingResourceSkuCreated = new CustomEvent(\n \"booking-resource-sku-created\",\n {\n detail: {\n element: this.element,\n data: response.data,\n },\n bubbles: true,\n cancelable: true,\n composed: false,\n }\n );\n\n window.dispatchEvent(bookingResourceSkuCreated);\n\n this.updateBookingTotalPrice();\n };\n\n const error = () => {};\n\n const data = {\n booking_resource_sku: {\n booking_id: this.element.dataset.bookingId,\n resource_sku_id: this.selectedResourceSkuIdValue,\n starts_on: this.selectedDatesValue[0],\n ends_on: this.selectedDatesValue[1],\n quantity: 1,\n height: this.heightTarget.value,\n },\n };\n\n create({\n data,\n success,\n error,\n });\n\n this.showLoadingOverlay(false);\n }\n\n showLoadingOverlay(value) {\n if (value) {\n this.loadingOverlayTarget.classList.remove(\"hidden\");\n } else {\n this.loadingOverlayTarget.classList.add(\"hidden\");\n }\n }\n\n startObservingVisiblity() {\n const targetNode = this.element;\n\n const config = { attributes: true };\n\n const callback = (mutationsList) => {\n mutationsList.forEach((mutation) => {\n if (\n mutation.type === \"attributes\" &&\n mutation.attributeName === \"class\"\n ) {\n this.reset();\n }\n });\n };\n\n this.observer = new MutationObserver(callback);\n\n this.observer.observe(targetNode, config);\n }\n\n stopObservingVisibility() {\n this.observer.disconnect();\n }\n\n updateBookingTotalPrice() {\n const bookingResourceSkusChanged = new CustomEvent(\"booking-resource-skus-changed\", {\n bubbles: true,\n cancelable: true,\n composed: false,\n });\n\n this.element.dispatchEvent(bookingResourceSkusChanged);\n }\n\n // eslint-disable-next-line class-methods-use-this\n disable() {}\n}\n","import { Controller } from \"@hotwired/stimulus\";\n\nexport default class extends Controller {\n static targets = [\"option\", \"rentalbike\"];\n\n static classes = [\"activeOption\", \"hidden\"];\n\n initialize() {\n this.reset();\n }\n\n show(event) {\n const { id } = event.currentTarget.dataset;\n\n this.setActive(id);\n this.showDetails(id);\n }\n\n setActive(id) {\n this.optionTargets.forEach((element) => {\n if (element.dataset.id === id) {\n element.classList.add(this.activeOptionClass);\n } else {\n element.classList.remove(this.activeOptionClass);\n }\n });\n }\n\n showDetails(id) {\n this.rentalbikeTargets.forEach((element) => {\n if (element.dataset.id === id) {\n element.classList.remove(this.hiddenClass);\n } else {\n element.classList.add(this.hiddenClass);\n }\n });\n }\n\n reset() {\n const { id } = this.optionTarget.dataset;\n\n this.setActive(id);\n this.showDetails(id);\n }\n}\n","import { Controller } from \"@hotwired/stimulus\";\n\nexport default class extends Controller {\n static targets = [\"bookedPackageTemplate\", \"bookedPackagesSection\"];\n\n updateBookedPositions(event) {\n const node =\n this.bookedPackageTemplateTarget.content.firstElementChild.cloneNode(\n true\n );\n\n node.dataset.bookingResourceSku = JSON.stringify(event.detail.data);\n\n this.bookedPackagesSectionTarget.appendChild(node);\n\n if (node.scrollIntoView) {\n this.element.scrollIntoView({\n behavior: \"smooth\",\n });\n } else {\n window.scrollTo(node);\n }\n }\n}\n","import { Controller } from \"@hotwired/stimulus\";\n\nexport default class extends Controller {\n static targets = [\"bookedTransferTemplate\", \"bookedTransfersSection\"];\n\n updateBookedPositions(event) {\n const node =\n this.bookedTransferTemplateTarget.content.firstElementChild.cloneNode(\n true\n );\n\n node.dataset.onwardJourneyBookingResourceSku = JSON.stringify(event.detail.onwardJourneyData);\n node.dataset.returnJourneyBookingResourceSku = JSON.stringify(event.detail.returnJourneyData);\n node.dataset.transferType = event.detail.transferType;\n node.dataset.resourceSkuId = event.detail.resourceSkuId;\n\n this.bookedTransfersSectionTarget.appendChild(node);\n\n if (node.scrollIntoView) {\n this.element.scrollIntoView({\n behavior: \"smooth\",\n });\n } else {\n window.scrollTo(node);\n }\n }\n}\n","/* eslint-disable camelcase */\nimport { Controller } from \"@hotwired/stimulus\";\n\nimport { remove } from \"frontoffice/services/bookingResourceSkusService\";\n\nexport default class extends Controller {\n static targets = [\n \"item\",\n \"image\",\n \"name\",\n \"dateRange\",\n \"price\",\n \"removeButton\",\n ];\n\n initialize() {\n if (this.element.dataset.bookingResourceSku) {\n this.bookingResourceSku = JSON.parse(\n this.element.dataset.bookingResourceSku\n );\n this.element.dataset.id = this.bookingResourceSku.attributes.id;\n this.updateDetails();\n }\n }\n\n updateDetails() {\n const { id, teaser_image, name, quantity, description, localized_price } =\n this.bookingResourceSku.attributes;\n\n this.quantity = quantity;\n\n const quantityName = `${quantity}x ${name.split(\" - \")[1]}`;\n\n this.nameTarget.innerHTML = quantityName;\n this.dateRangeTarget.innerHTML = description;\n this.priceTarget.innerHTML = localized_price;\n this.removeButtonTarget.dataset.id = id;\n\n if (teaser_image) {\n this.imageTarget.src = teaser_image;\n }\n }\n\n updateBookingTotalPrice() {\n const bookingResourceSkusChanged = new CustomEvent(\n \"booking-resource-skus-changed\",\n {\n bubbles: true,\n cancelable: true,\n composed: false,\n }\n );\n\n this.element.dispatchEvent(bookingResourceSkusChanged);\n }\n\n remove(event) {\n const { id } = event.target.dataset;\n\n const success = () => {\n this.updateBookingTotalPrice();\n this.itemTarget.remove();\n\n const bookingResourceSkuRemoved = new CustomEvent(\"item-removed\", {\n detail: {\n quantity: this.quantity,\n }\n });\n\n window.dispatchEvent(bookingResourceSkuRemoved);\n };\n\n const error = () => {};\n\n remove({\n id,\n success,\n error,\n });\n }\n}\n","import { Controller } from \"@hotwired/stimulus\";\n\nimport { create } from \"frontoffice/services/bookingResourceSkusService\";\nimport {\n fetchAvailability,\n fetchPrice,\n} from \"frontoffice/services/resourceSkusService\";\n\nexport default class extends Controller {\n static targets = [\n \"price\",\n \"pricing\",\n \"quantity\",\n \"bookButton\",\n \"errorMessage\",\n ];\n\n static values = {\n price: String,\n startPrice: String,\n notAvailable: String,\n resourceSkus: Array,\n\n resourceSkuId: Number,\n bookingDates: Array,\n bookablePackagesCount: Number,\n };\n\n initialize() {\n [this.startsOn, this.endsOn] = this.bookingDatesValue;\n this.available = true;\n }\n\n connect() {\n this.fetchAvailabilityForQuantity();\n this.errorClasses = \"border border-red-600\".split(\" \");\n this.resetForm();\n }\n\n priceValueChanged(value) {\n this.priceTarget.innerHTML = value;\n }\n\n quantityChanged() {\n if (\n this.startsOn &&\n this.endsOn &&\n this.quantityTarget.value &&\n this.bookablePackagesCountValue >= this.quantityTarget.value\n ) {\n this.fetchAvailabilityForQuantity();\n this.hideError();\n } else if (this.bookablePackagesCountValue < this.quantityTarget.value) {\n this.showError();\n }\n }\n\n toggleBookButton() {\n if (Number(this.quantityTarget.value) > 0 && this.available === true) {\n this.bookButtonTarget.disabled = false;\n } else {\n this.bookButtonTarget.disabled = true;\n }\n }\n\n updatePrice(price, quantity) {\n if (quantity === \"0\") {\n this.priceValue = this.startPriceValue;\n this.pricingTarget.classList.remove(\"hidden\");\n } else {\n this.priceValue = price;\n this.pricingTarget.classList.add(\"hidden\");\n }\n }\n\n fetchPrice() {\n const success = (response) => {\n this.updatePrice(response.price, this.quantityTarget.value);\n };\n const error = () => {\n this.updatePrice(this.notAvailableValue, 1);\n };\n\n fetchPrice({\n id: this.resourceSkuIdValue,\n startsOn: this.startsOn,\n endsOn: this.endsOn,\n quantity: Number(this.quantityTarget.value),\n success,\n error,\n });\n }\n\n fetchAvailabilityForQuantity() {\n const success = (response) => {\n this.available = response.availability;\n if (this.available) {\n this.fetchPrice();\n } else {\n this.updatePrice(this.notAvailableValue, this.quantityTarget.value);\n }\n this.toggleBookButton();\n };\n\n const error = () => {\n this.updatePrice(this.notAvailableValue, 1);\n };\n\n fetchAvailability({\n id: this.resourceSkuIdValue,\n startsOn: this.startsOn,\n endsOn: this.endsOn,\n quantity: Number(this.quantityTarget.value),\n success,\n error,\n });\n }\n\n updateBookingTotalPrice() {\n const bookingResourceSkusChanged = new CustomEvent(\n \"booking-resource-skus-changed\",\n {\n bubbles: true,\n cancelable: true,\n composed: false,\n }\n );\n\n this.element.dispatchEvent(bookingResourceSkusChanged);\n }\n\n book(event) {\n const success = (response) => {\n const bookingResourceSkuCreated = new CustomEvent(\"item-created\", {\n detail: {\n data: response.data,\n },\n bubbles: true,\n cancelable: true,\n composed: false,\n });\n\n event.target.dispatchEvent(bookingResourceSkuCreated);\n\n this.updateBookingTotalPrice();\n\n const bookingResourceSkuAdded = new CustomEvent(\"item-added\", {\n detail: {\n quantity: Number(this.quantityTarget.value),\n }\n });\n\n window.dispatchEvent(bookingResourceSkuAdded);\n };\n\n const error = () => {};\n\n const data = {\n booking_resource_sku: {\n booking_id: this.element.dataset.bookingId,\n resource_sku_id: this.resourceSkuIdValue,\n starts_on: this.startsOn,\n ends_on: this.endsOn,\n quantity: Number(this.quantityTarget.value),\n },\n };\n\n create({\n data,\n success,\n error,\n });\n }\n\n handleBooked(event) {\n this.bookablePackagesCountValue -= event.detail.quantity;\n this.resetForm();\n }\n\n handleRemoved(event) {\n this.bookablePackagesCountValue += event.detail.quantity;\n this.resetForm();\n }\n\n resetForm() {\n this.errorMessageTarget.classList.add(\"hidden\");\n this.quantityTarget.classList.remove(...this.errorClasses);\n this.quantityTarget.value = \"0\";\n this.updatePrice(null, \"0\");\n this.toggleBookButton();\n }\n\n hideError() {\n this.quantityTarget.classList.remove(...this.errorClasses);\n this.errorMessageTarget.classList.add(\"hidden\");\n }\n\n showError() {\n this.quantityTarget.classList.add(...this.errorClasses);\n this.quantityTarget.blur();\n this.errorMessageTarget.classList.remove(\"hidden\");\n }\n}\n","/* eslint-disable camelcase */\nimport { Controller } from \"@hotwired/stimulus\";\n\nimport { remove } from \"frontoffice/services/bookingResourceSkusService\";\n\nexport default class extends Controller {\n static targets = [\n \"item\",\n \"image\",\n \"name\",\n \"onwardJourneyStartsOn\",\n \"returnJourneyStartsOn\",\n \"onwardJourneyName\",\n \"returnJourneyName\",\n \"price\",\n \"removeButton\",\n ];\n\n static values = {\n transferType: String,\n resourceSkuId: Number,\n onwardJourneyId: String,\n returnJourneyId: String,\n onwardJourneyQuantity: String,\n returnJourneyQuantity: String\n };\n\n initialize() {\n if (this.element.dataset.onwardJourneyBookingResourceSku) {\n this.onwardJourneyBookingResourceSku = JSON.parse(\n this.element.dataset.onwardJourneyBookingResourceSku\n );\n this.onwardJourneyIdValue = this.onwardJourneyBookingResourceSku.attributes.id;\n\n this.returnJourneyBookingResourceSku = JSON.parse(\n this.element.dataset.returnJourneyBookingResourceSku\n );\n this.returnJourneyIdValue = this.returnJourneyBookingResourceSku.attributes.id;\n\n this.transferTypeValue = this.element.dataset.transferType;\n this.resourceSkuIdValue = this.element.dataset.resourceSkuId;\n\n this.updateDetails();\n }\n }\n\n updateDetails() {\n const { id, teaser_image, name, quantity, localized_starts_on, localized_price } =\n this.onwardJourneyBookingResourceSku.attributes;\n\n const returnJourneyQuantity = this.returnJourneyBookingResourceSku.attributes.quantity;\n const returnJourneyPrice = this.returnJourneyBookingResourceSku.attributes.localized_price;\n const returnJourneyStartsOn = this.returnJourneyBookingResourceSku.attributes.localized_starts_on;\n \n const transferName = name.split(\" - \").slice(1).join(\" - \")\n this.onwardJourneyNameTarget.innerHTML = `${quantity}x ${transferName}`;\n this.returnJourneyNameTarget.innerHTML = `${returnJourneyQuantity}x ${transferName}`;\n \n this.onwardJourneyStartsOnTargets.forEach(target => target.innerHTML = localized_starts_on);\n this.returnJourneyStartsOnTargets.forEach(target => target.innerHTML = returnJourneyStartsOn);\n \n const total_price = this.addLocalizedCurrencies(localized_price, returnJourneyPrice);\n this.priceTarget.innerHTML = total_price;\n \n this.onwardJourneyQuantityValue = quantity;\n this.returnJourneyQuantityValue = returnJourneyQuantity;\n\n if (teaser_image) {\n this.imageTarget.src = teaser_image;\n }\n }\n\n updateBookingTotalPrice() {\n const bookingResourceSkusChanged = new CustomEvent(\n \"booking-resource-skus-changed\",\n {\n bubbles: true,\n cancelable: true,\n composed: false,\n }\n );\n\n this.element.dispatchEvent(bookingResourceSkusChanged);\n }\n\n remove(event) {\n const error = () => { };\n const success = () => {\n // remove return journey sku as well\n remove({\n id: this.returnJourneyIdValue,\n success: () => {\n this.updateBookingTotalPrice();\n this.itemTarget.remove();\n\n const bookingResourceSkuRemoved = new CustomEvent(\"item-removed\", {\n detail: {\n resourceSkuId: this.resourceSkuIdValue,\n transferType: this.transferTypeValue,\n quantity: parseInt(this.onwardJourneyQuantityValue),\n }\n });\n\n window.dispatchEvent(bookingResourceSkuRemoved);\n },\n error\n });\n };\n\n // remove onward journey sku\n remove({\n id: this.onwardJourneyIdValue,\n success,\n error,\n });\n }\n\n addLocalizedCurrencies(value1, value2) {\n let totalVal = this.parseLocalizedCurrency(value1) + this.parseLocalizedCurrency(value2);\n let prefix = this.getCurrencyPrefix(value1);\n return this.formatCurrency(prefix, totalVal);\n }\n\n parseLocalizedCurrency(val) {\n // Trim any leading/trailing whitespace\n const trimmed = val.trim();\n\n // Find the first digit in the string\n const firstDigitIndex = trimmed.search(/\\d/);\n \n // Get the main part\n const mainPart = trimmed.slice(firstDigitIndex);\n\n // Parse the numeric value\n return parseFloat(mainPart.replace(',', '.'));\n }\n\n getCurrencyPrefix(val) {\n // Trim any leading/trailing whitespace\n const trimmed = val.trim();\n\n // Find the first digit in the string\n const firstDigitIndex = trimmed.search(/\\d/);\n\n // Get the prefix\n return trimmed.slice(0, firstDigitIndex).trim();\n }\n\n formatCurrency(prefix, val) {\n // Format the value\n const formattedValue = val.toFixed(2).replace('.', ',');\n\n // Reconstruct the string\n return `${prefix}${formattedValue}`;\n }\n}\n","import { Controller } from \"@hotwired/stimulus\";\n\nimport { create } from \"frontoffice/services/bookingResourceSkusService\";\nimport {\n fetchAvailability,\n fetchPrice,\n} from \"frontoffice/services/resourceSkusService\";\n\nexport default class extends Controller {\n static targets = [\n \"price\",\n \"pricing\",\n \"quantity\",\n \"bookButton\",\n \"errorMessage\",\n ];\n\n static values = {\n price: String,\n startPrice: String,\n notAvailable: String,\n transferType: String,\n resourceSkuId: Number,\n bookingDates: Array,\n bookableTransfersCount: Number,\n availableTransfersCount: Number,\n };\n\n initialize() {\n [this.startsOn, this.endsOn] = this.bookingDatesValue;\n this.available = true;\n }\n\n connect() {\n this.fetchAvailabilityForQuantity();\n this.errorClasses = \"border border-red-600\".split(\" \");\n this.resetForm();\n }\n\n priceValueChanged(value) {\n this.priceTarget.innerHTML = value;\n }\n\n quantityChanged() {\n const quantity = Number(this.quantityTarget.value);\n if (\n this.startsOn &&\n this.endsOn &&\n quantity &&\n this.bookableTransfersCountValue >= quantity &&\n this.availableTransfersCountValue >= quantity\n ) {\n this.fetchAvailabilityForQuantity();\n this.hideError();\n } else if (\n this.bookableTransfersCountValue < quantity ||\n this.availableTransfersCountValue < quantity\n ) {\n this.available = false;\n this.showError();\n this.toggleBookButton();\n } else if (!quantity) {\n this.available = false;\n this.hideError();\n this.toggleBookButton();\n } else {\n this.hideError();\n }\n }\n\n toggleBookButton() {\n if (Number(this.quantityTarget.value) > 0 && this.available === true) {\n this.bookButtonTarget.disabled = false;\n } else {\n this.bookButtonTarget.disabled = true;\n }\n }\n\n updatePrice(price, quantity) {\n if (quantity === \"0\") {\n this.priceValue = this.startPriceValue;\n this.pricingTarget.classList.remove(\"hidden\");\n } else {\n this.priceValue = price;\n this.pricingTarget.classList.add(\"hidden\");\n }\n }\n\n fetchPrice() {\n const success = (response) => {\n this.updatePrice(response.price, this.quantityTarget.value);\n };\n const error = () => {\n this.updatePrice(this.notAvailableValue, 1);\n };\n\n fetchPrice({\n id: this.resourceSkuIdValue,\n startsOn: this.startsOn,\n endsOn: this.endsOn,\n quantity: Number(this.quantityTarget.value),\n success,\n error,\n });\n }\n\n fetchAvailabilityForQuantity() {\n const success = (response) => {\n this.available = response.availability;\n if (this.available) {\n this.fetchPrice();\n } else {\n this.updatePrice(this.notAvailableValue, this.quantityTarget.value);\n }\n this.toggleBookButton();\n };\n\n const error = () => {\n this.updatePrice(this.notAvailableValue, 1);\n };\n\n fetchAvailability({\n id: this.resourceSkuIdValue,\n startsOn: this.startsOn,\n endsOn: this.endsOn,\n entireDateRange: false,\n quantity: Number(this.quantityTarget.value),\n success,\n error,\n });\n }\n\n updateBookingTotalPrice() {\n const bookingResourceSkusChanged = new CustomEvent(\n \"booking-resource-skus-changed\",\n {\n bubbles: true,\n cancelable: true,\n composed: false,\n }\n );\n\n this.element.dispatchEvent(bookingResourceSkusChanged);\n }\n\n book(event) {\n // onward journey transfer data\n const data = {\n booking_resource_sku: {\n booking_id: this.element.dataset.bookingId,\n resource_sku_id: this.resourceSkuIdValue,\n starts_on: this.startsOn,\n ends_on: this.startsOn,\n quantity: Number(this.quantityTarget.value),\n }\n }\n\n const error = () => { };\n\n const success = (response) => {\n const onwardJourneyData = response.data;\n\n // create another resource sku for return journey\n data.booking_resource_sku.starts_on = this.endsOn;\n data.booking_resource_sku.ends_on = this.endsOn;\n\n create({\n data,\n success: (response) => { \n const returnJourneyData = response.data;\n\n const bookingResourceSkuCreated = new CustomEvent(\"item-created\", {\n detail: {\n resourceSkuId: this.resourceSkuIdValue,\n transferType: this.transferTypeValue,\n onwardJourneyData: onwardJourneyData,\n returnJourneyData: returnJourneyData\n },\n bubbles: true,\n cancelable: true,\n composed: false,\n });\n\n event.target.dispatchEvent(bookingResourceSkuCreated);\n\n this.updateBookingTotalPrice();\n\n const bookingResourceSkuAdded = new CustomEvent(\"item-added\", {\n detail: {\n resourceSkuId: this.resourceSkuIdValue,\n transferType: this.transferTypeValue,\n quantity: Number(this.quantityTarget.value),\n }\n });\n\n window.dispatchEvent(bookingResourceSkuAdded);\n },\n error,\n }); \n };\n\n // create transfer for onward journey\n create({\n data,\n success,\n error,\n });\n }\n\n handleBooked(event) {\n if (this.transferTypeValue == event.detail.transferType) {\n this.bookableTransfersCountValue -= event.detail.quantity;\n this.resetForm();\n\n if (this.resourceSkuIdValue == event.detail.resourceSkuId) {\n this.availableTransfersCountValue -= event.detail.quantity;\n }\n }\n }\n\n handleRemoved(event) {\n if (this.transferTypeValue == event.detail.transferType) {\n this.bookableTransfersCountValue += event.detail.quantity;\n\n if (this.resourceSkuIdValue == event.detail.resourceSkuId) {\n this.availableTransfersCountValue += event.detail.quantity;\n }\n\n this.resetForm();\n }\n }\n\n resetForm() {\n this.errorMessageTarget.classList.add(\"hidden\");\n this.quantityTarget.classList.remove(...this.errorClasses);\n this.quantityTarget.value = \"0\";\n this.updatePrice(null, \"0\");\n this.toggleBookButton();\n }\n\n hideError() {\n this.quantityTarget.classList.remove(...this.errorClasses);\n this.errorMessageTarget.classList.add(\"hidden\");\n }\n\n showError() {\n this.quantityTarget.classList.add(...this.errorClasses);\n this.quantityTarget.blur();\n this.errorMessageTarget.classList.remove(\"hidden\");\n }\n}\n","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nimport _regeneratorRuntime from \"@babel/runtime/regenerator\";\n\nfunction asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }\n\nfunction _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err); } _next(undefined); }); }; }\n\nfunction _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }\n\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _iterableToArray(iter) { if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter); }\n\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }\n\nfunction _get(target, property, receiver) { if (typeof Reflect !== \"undefined\" && Reflect.get) { _get = Reflect.get; } else { _get = function _get(target, property, receiver) { var base = _superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(receiver); } return desc.value; }; } return _get(target, property, receiver || target); }\n\nfunction _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== \"undefined\" && o[Symbol.iterator] || o[\"@@iterator\"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e2) { throw _e2; }, f: F }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e3) { didErr = true; err = _e3; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\n/*\nStimulus 3.2.1\nCopyright © 2023 Basecamp, LLC\n */\nvar EventListener = /*#__PURE__*/function () {\n function EventListener(eventTarget, eventName, eventOptions) {\n _classCallCheck(this, EventListener);\n\n this.eventTarget = eventTarget;\n this.eventName = eventName;\n this.eventOptions = eventOptions;\n this.unorderedBindings = new Set();\n }\n\n _createClass(EventListener, [{\n key: \"connect\",\n value: function connect() {\n this.eventTarget.addEventListener(this.eventName, this, this.eventOptions);\n }\n }, {\n key: \"disconnect\",\n value: function disconnect() {\n this.eventTarget.removeEventListener(this.eventName, this, this.eventOptions);\n }\n }, {\n key: \"bindingConnected\",\n value: function bindingConnected(binding) {\n this.unorderedBindings.add(binding);\n }\n }, {\n key: \"bindingDisconnected\",\n value: function bindingDisconnected(binding) {\n this.unorderedBindings.delete(binding);\n }\n }, {\n key: \"handleEvent\",\n value: function handleEvent(event) {\n var extendedEvent = extendEvent(event);\n\n var _iterator = _createForOfIteratorHelper(this.bindings),\n _step;\n\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var binding = _step.value;\n\n if (extendedEvent.immediatePropagationStopped) {\n break;\n } else {\n binding.handleEvent(extendedEvent);\n }\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n }\n }, {\n key: \"hasBindings\",\n value: function hasBindings() {\n return this.unorderedBindings.size > 0;\n }\n }, {\n key: \"bindings\",\n get: function get() {\n return Array.from(this.unorderedBindings).sort(function (left, right) {\n var leftIndex = left.index,\n rightIndex = right.index;\n return leftIndex < rightIndex ? -1 : leftIndex > rightIndex ? 1 : 0;\n });\n }\n }]);\n\n return EventListener;\n}();\n\nfunction extendEvent(event) {\n if (\"immediatePropagationStopped\" in event) {\n return event;\n } else {\n var _stopImmediatePropagation = event.stopImmediatePropagation;\n return Object.assign(event, {\n immediatePropagationStopped: false,\n stopImmediatePropagation: function stopImmediatePropagation() {\n this.immediatePropagationStopped = true;\n\n _stopImmediatePropagation.call(this);\n }\n });\n }\n}\n\nvar Dispatcher = /*#__PURE__*/function () {\n function Dispatcher(application) {\n _classCallCheck(this, Dispatcher);\n\n this.application = application;\n this.eventListenerMaps = new Map();\n this.started = false;\n }\n\n _createClass(Dispatcher, [{\n key: \"start\",\n value: function start() {\n if (!this.started) {\n this.started = true;\n this.eventListeners.forEach(function (eventListener) {\n return eventListener.connect();\n });\n }\n }\n }, {\n key: \"stop\",\n value: function stop() {\n if (this.started) {\n this.started = false;\n this.eventListeners.forEach(function (eventListener) {\n return eventListener.disconnect();\n });\n }\n }\n }, {\n key: \"eventListeners\",\n get: function get() {\n return Array.from(this.eventListenerMaps.values()).reduce(function (listeners, map) {\n return listeners.concat(Array.from(map.values()));\n }, []);\n }\n }, {\n key: \"bindingConnected\",\n value: function bindingConnected(binding) {\n this.fetchEventListenerForBinding(binding).bindingConnected(binding);\n }\n }, {\n key: \"bindingDisconnected\",\n value: function bindingDisconnected(binding) {\n var clearEventListeners = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n this.fetchEventListenerForBinding(binding).bindingDisconnected(binding);\n if (clearEventListeners) this.clearEventListenersForBinding(binding);\n }\n }, {\n key: \"handleError\",\n value: function handleError(error, message) {\n var detail = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n this.application.handleError(error, \"Error \".concat(message), detail);\n }\n }, {\n key: \"clearEventListenersForBinding\",\n value: function clearEventListenersForBinding(binding) {\n var eventListener = this.fetchEventListenerForBinding(binding);\n\n if (!eventListener.hasBindings()) {\n eventListener.disconnect();\n this.removeMappedEventListenerFor(binding);\n }\n }\n }, {\n key: \"removeMappedEventListenerFor\",\n value: function removeMappedEventListenerFor(binding) {\n var eventTarget = binding.eventTarget,\n eventName = binding.eventName,\n eventOptions = binding.eventOptions;\n var eventListenerMap = this.fetchEventListenerMapForEventTarget(eventTarget);\n var cacheKey = this.cacheKey(eventName, eventOptions);\n eventListenerMap.delete(cacheKey);\n if (eventListenerMap.size == 0) this.eventListenerMaps.delete(eventTarget);\n }\n }, {\n key: \"fetchEventListenerForBinding\",\n value: function fetchEventListenerForBinding(binding) {\n var eventTarget = binding.eventTarget,\n eventName = binding.eventName,\n eventOptions = binding.eventOptions;\n return this.fetchEventListener(eventTarget, eventName, eventOptions);\n }\n }, {\n key: \"fetchEventListener\",\n value: function fetchEventListener(eventTarget, eventName, eventOptions) {\n var eventListenerMap = this.fetchEventListenerMapForEventTarget(eventTarget);\n var cacheKey = this.cacheKey(eventName, eventOptions);\n var eventListener = eventListenerMap.get(cacheKey);\n\n if (!eventListener) {\n eventListener = this.createEventListener(eventTarget, eventName, eventOptions);\n eventListenerMap.set(cacheKey, eventListener);\n }\n\n return eventListener;\n }\n }, {\n key: \"createEventListener\",\n value: function createEventListener(eventTarget, eventName, eventOptions) {\n var eventListener = new EventListener(eventTarget, eventName, eventOptions);\n\n if (this.started) {\n eventListener.connect();\n }\n\n return eventListener;\n }\n }, {\n key: \"fetchEventListenerMapForEventTarget\",\n value: function fetchEventListenerMapForEventTarget(eventTarget) {\n var eventListenerMap = this.eventListenerMaps.get(eventTarget);\n\n if (!eventListenerMap) {\n eventListenerMap = new Map();\n this.eventListenerMaps.set(eventTarget, eventListenerMap);\n }\n\n return eventListenerMap;\n }\n }, {\n key: \"cacheKey\",\n value: function cacheKey(eventName, eventOptions) {\n var parts = [eventName];\n Object.keys(eventOptions).sort().forEach(function (key) {\n parts.push(\"\".concat(eventOptions[key] ? \"\" : \"!\").concat(key));\n });\n return parts.join(\":\");\n }\n }]);\n\n return Dispatcher;\n}();\n\nvar defaultActionDescriptorFilters = {\n stop: function stop(_ref) {\n var event = _ref.event,\n value = _ref.value;\n if (value) event.stopPropagation();\n return true;\n },\n prevent: function prevent(_ref2) {\n var event = _ref2.event,\n value = _ref2.value;\n if (value) event.preventDefault();\n return true;\n },\n self: function self(_ref3) {\n var event = _ref3.event,\n value = _ref3.value,\n element = _ref3.element;\n\n if (value) {\n return element === event.target;\n } else {\n return true;\n }\n }\n};\nvar descriptorPattern = /^(?:(?:([^.]+?)\\+)?(.+?)(?:\\.(.+?))?(?:@(window|document))?->)?(.+?)(?:#([^:]+?))(?::(.+))?$/;\n\nfunction parseActionDescriptorString(descriptorString) {\n var source = descriptorString.trim();\n var matches = source.match(descriptorPattern) || [];\n var eventName = matches[2];\n var keyFilter = matches[3];\n\n if (keyFilter && ![\"keydown\", \"keyup\", \"keypress\"].includes(eventName)) {\n eventName += \".\".concat(keyFilter);\n keyFilter = \"\";\n }\n\n return {\n eventTarget: parseEventTarget(matches[4]),\n eventName: eventName,\n eventOptions: matches[7] ? parseEventOptions(matches[7]) : {},\n identifier: matches[5],\n methodName: matches[6],\n keyFilter: matches[1] || keyFilter\n };\n}\n\nfunction parseEventTarget(eventTargetName) {\n if (eventTargetName == \"window\") {\n return window;\n } else if (eventTargetName == \"document\") {\n return document;\n }\n}\n\nfunction parseEventOptions(eventOptions) {\n return eventOptions.split(\":\").reduce(function (options, token) {\n return Object.assign(options, _defineProperty({}, token.replace(/^!/, \"\"), !/^!/.test(token)));\n }, {});\n}\n\nfunction stringifyEventTarget(eventTarget) {\n if (eventTarget == window) {\n return \"window\";\n } else if (eventTarget == document) {\n return \"document\";\n }\n}\n\nfunction camelize(value) {\n return value.replace(/(?:[_-])([a-z0-9])/g, function (_, char) {\n return char.toUpperCase();\n });\n}\n\nfunction namespaceCamelize(value) {\n return camelize(value.replace(/--/g, \"-\").replace(/__/g, \"_\"));\n}\n\nfunction capitalize(value) {\n return value.charAt(0).toUpperCase() + value.slice(1);\n}\n\nfunction dasherize(value) {\n return value.replace(/([A-Z])/g, function (_, char) {\n return \"-\".concat(char.toLowerCase());\n });\n}\n\nfunction tokenize(value) {\n return value.match(/[^\\s]+/g) || [];\n}\n\nfunction isSomething(object) {\n return object !== null && object !== undefined;\n}\n\nfunction hasProperty(object, property) {\n return Object.prototype.hasOwnProperty.call(object, property);\n}\n\nvar allModifiers = [\"meta\", \"ctrl\", \"alt\", \"shift\"];\n\nvar Action = /*#__PURE__*/function () {\n function Action(element, index, descriptor, schema) {\n _classCallCheck(this, Action);\n\n this.element = element;\n this.index = index;\n this.eventTarget = descriptor.eventTarget || element;\n this.eventName = descriptor.eventName || getDefaultEventNameForElement(element) || error(\"missing event name\");\n this.eventOptions = descriptor.eventOptions || {};\n this.identifier = descriptor.identifier || error(\"missing identifier\");\n this.methodName = descriptor.methodName || error(\"missing method name\");\n this.keyFilter = descriptor.keyFilter || \"\";\n this.schema = schema;\n }\n\n _createClass(Action, [{\n key: \"toString\",\n value: function toString() {\n var eventFilter = this.keyFilter ? \".\".concat(this.keyFilter) : \"\";\n var eventTarget = this.eventTargetName ? \"@\".concat(this.eventTargetName) : \"\";\n return \"\".concat(this.eventName).concat(eventFilter).concat(eventTarget, \"->\").concat(this.identifier, \"#\").concat(this.methodName);\n }\n }, {\n key: \"shouldIgnoreKeyboardEvent\",\n value: function shouldIgnoreKeyboardEvent(event) {\n if (!this.keyFilter) {\n return false;\n }\n\n var filters = this.keyFilter.split(\"+\");\n\n if (this.keyFilterDissatisfied(event, filters)) {\n return true;\n }\n\n var standardFilter = filters.filter(function (key) {\n return !allModifiers.includes(key);\n })[0];\n\n if (!standardFilter) {\n return false;\n }\n\n if (!hasProperty(this.keyMappings, standardFilter)) {\n error(\"contains unknown key filter: \".concat(this.keyFilter));\n }\n\n return this.keyMappings[standardFilter].toLowerCase() !== event.key.toLowerCase();\n }\n }, {\n key: \"shouldIgnoreMouseEvent\",\n value: function shouldIgnoreMouseEvent(event) {\n if (!this.keyFilter) {\n return false;\n }\n\n var filters = [this.keyFilter];\n\n if (this.keyFilterDissatisfied(event, filters)) {\n return true;\n }\n\n return false;\n }\n }, {\n key: \"params\",\n get: function get() {\n var params = {};\n var pattern = new RegExp(\"^data-\".concat(this.identifier, \"-(.+)-param$\"), \"i\");\n\n for (var _i = 0, _Array$from = Array.from(this.element.attributes); _i < _Array$from.length; _i++) {\n var _ref5 = _Array$from[_i];\n var name = _ref5.name;\n var value = _ref5.value;\n var match = name.match(pattern);\n var key = match && match[1];\n\n if (key) {\n params[camelize(key)] = typecast(value);\n }\n }\n\n return params;\n }\n }, {\n key: \"eventTargetName\",\n get: function get() {\n return stringifyEventTarget(this.eventTarget);\n }\n }, {\n key: \"keyMappings\",\n get: function get() {\n return this.schema.keyMappings;\n }\n }, {\n key: \"keyFilterDissatisfied\",\n value: function keyFilterDissatisfied(event, filters) {\n var _allModifiers$map = allModifiers.map(function (modifier) {\n return filters.includes(modifier);\n }),\n _allModifiers$map2 = _slicedToArray(_allModifiers$map, 4),\n meta = _allModifiers$map2[0],\n ctrl = _allModifiers$map2[1],\n alt = _allModifiers$map2[2],\n shift = _allModifiers$map2[3];\n\n return event.metaKey !== meta || event.ctrlKey !== ctrl || event.altKey !== alt || event.shiftKey !== shift;\n }\n }], [{\n key: \"forToken\",\n value: function forToken(token, schema) {\n return new this(token.element, token.index, parseActionDescriptorString(token.content), schema);\n }\n }]);\n\n return Action;\n}();\n\nvar defaultEventNames = {\n a: function a() {\n return \"click\";\n },\n button: function button() {\n return \"click\";\n },\n form: function form() {\n return \"submit\";\n },\n details: function details() {\n return \"toggle\";\n },\n input: function input(e) {\n return e.getAttribute(\"type\") == \"submit\" ? \"click\" : \"input\";\n },\n select: function select() {\n return \"change\";\n },\n textarea: function textarea() {\n return \"input\";\n }\n};\n\nfunction getDefaultEventNameForElement(element) {\n var tagName = element.tagName.toLowerCase();\n\n if (tagName in defaultEventNames) {\n return defaultEventNames[tagName](element);\n }\n}\n\nfunction error(message) {\n throw new Error(message);\n}\n\nfunction typecast(value) {\n try {\n return JSON.parse(value);\n } catch (o_O) {\n return value;\n }\n}\n\nvar Binding = /*#__PURE__*/function () {\n function Binding(context, action) {\n _classCallCheck(this, Binding);\n\n this.context = context;\n this.action = action;\n }\n\n _createClass(Binding, [{\n key: \"index\",\n get: function get() {\n return this.action.index;\n }\n }, {\n key: \"eventTarget\",\n get: function get() {\n return this.action.eventTarget;\n }\n }, {\n key: \"eventOptions\",\n get: function get() {\n return this.action.eventOptions;\n }\n }, {\n key: \"identifier\",\n get: function get() {\n return this.context.identifier;\n }\n }, {\n key: \"handleEvent\",\n value: function handleEvent(event) {\n var actionEvent = this.prepareActionEvent(event);\n\n if (this.willBeInvokedByEvent(event) && this.applyEventModifiers(actionEvent)) {\n this.invokeWithEvent(actionEvent);\n }\n }\n }, {\n key: \"eventName\",\n get: function get() {\n return this.action.eventName;\n }\n }, {\n key: \"method\",\n get: function get() {\n var method = this.controller[this.methodName];\n\n if (typeof method == \"function\") {\n return method;\n }\n\n throw new Error(\"Action \\\"\".concat(this.action, \"\\\" references undefined method \\\"\").concat(this.methodName, \"\\\"\"));\n }\n }, {\n key: \"applyEventModifiers\",\n value: function applyEventModifiers(event) {\n var element = this.action.element;\n var actionDescriptorFilters = this.context.application.actionDescriptorFilters;\n var controller = this.context.controller;\n var passes = true;\n\n for (var _i2 = 0, _Object$entries = Object.entries(this.eventOptions); _i2 < _Object$entries.length; _i2++) {\n var _ref8 = _Object$entries[_i2];\n\n var _ref7 = _slicedToArray(_ref8, 2);\n\n var name = _ref7[0];\n var value = _ref7[1];\n\n if (name in actionDescriptorFilters) {\n var filter = actionDescriptorFilters[name];\n passes = passes && filter({\n name: name,\n value: value,\n event: event,\n element: element,\n controller: controller\n });\n } else {\n continue;\n }\n }\n\n return passes;\n }\n }, {\n key: \"prepareActionEvent\",\n value: function prepareActionEvent(event) {\n return Object.assign(event, {\n params: this.action.params\n });\n }\n }, {\n key: \"invokeWithEvent\",\n value: function invokeWithEvent(event) {\n var target = event.target,\n currentTarget = event.currentTarget;\n\n try {\n this.method.call(this.controller, event);\n this.context.logDebugActivity(this.methodName, {\n event: event,\n target: target,\n currentTarget: currentTarget,\n action: this.methodName\n });\n } catch (error) {\n var identifier = this.identifier,\n controller = this.controller,\n element = this.element,\n index = this.index;\n var detail = {\n identifier: identifier,\n controller: controller,\n element: element,\n index: index,\n event: event\n };\n this.context.handleError(error, \"invoking action \\\"\".concat(this.action, \"\\\"\"), detail);\n }\n }\n }, {\n key: \"willBeInvokedByEvent\",\n value: function willBeInvokedByEvent(event) {\n var eventTarget = event.target;\n\n if (event instanceof KeyboardEvent && this.action.shouldIgnoreKeyboardEvent(event)) {\n return false;\n }\n\n if (event instanceof MouseEvent && this.action.shouldIgnoreMouseEvent(event)) {\n return false;\n }\n\n if (this.element === eventTarget) {\n return true;\n } else if (eventTarget instanceof Element && this.element.contains(eventTarget)) {\n return this.scope.containsElement(eventTarget);\n } else {\n return this.scope.containsElement(this.action.element);\n }\n }\n }, {\n key: \"controller\",\n get: function get() {\n return this.context.controller;\n }\n }, {\n key: \"methodName\",\n get: function get() {\n return this.action.methodName;\n }\n }, {\n key: \"element\",\n get: function get() {\n return this.scope.element;\n }\n }, {\n key: \"scope\",\n get: function get() {\n return this.context.scope;\n }\n }]);\n\n return Binding;\n}();\n\nvar ElementObserver = /*#__PURE__*/function () {\n function ElementObserver(element, delegate) {\n var _this = this;\n\n _classCallCheck(this, ElementObserver);\n\n this.mutationObserverInit = {\n attributes: true,\n childList: true,\n subtree: true\n };\n this.element = element;\n this.started = false;\n this.delegate = delegate;\n this.elements = new Set();\n this.mutationObserver = new MutationObserver(function (mutations) {\n return _this.processMutations(mutations);\n });\n }\n\n _createClass(ElementObserver, [{\n key: \"start\",\n value: function start() {\n if (!this.started) {\n this.started = true;\n this.mutationObserver.observe(this.element, this.mutationObserverInit);\n this.refresh();\n }\n }\n }, {\n key: \"pause\",\n value: function pause(callback) {\n if (this.started) {\n this.mutationObserver.disconnect();\n this.started = false;\n }\n\n callback();\n\n if (!this.started) {\n this.mutationObserver.observe(this.element, this.mutationObserverInit);\n this.started = true;\n }\n }\n }, {\n key: \"stop\",\n value: function stop() {\n if (this.started) {\n this.mutationObserver.takeRecords();\n this.mutationObserver.disconnect();\n this.started = false;\n }\n }\n }, {\n key: \"refresh\",\n value: function refresh() {\n if (this.started) {\n var matches = new Set(this.matchElementsInTree());\n\n for (var _i3 = 0, _Array$from2 = Array.from(this.elements); _i3 < _Array$from2.length; _i3++) {\n var element = _Array$from2[_i3];\n\n if (!matches.has(element)) {\n this.removeElement(element);\n }\n }\n\n for (var _i4 = 0, _Array$from3 = Array.from(matches); _i4 < _Array$from3.length; _i4++) {\n var _element2 = _Array$from3[_i4];\n this.addElement(_element2);\n }\n }\n }\n }, {\n key: \"processMutations\",\n value: function processMutations(mutations) {\n if (this.started) {\n var _iterator2 = _createForOfIteratorHelper(mutations),\n _step2;\n\n try {\n for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {\n var mutation = _step2.value;\n this.processMutation(mutation);\n }\n } catch (err) {\n _iterator2.e(err);\n } finally {\n _iterator2.f();\n }\n }\n }\n }, {\n key: \"processMutation\",\n value: function processMutation(mutation) {\n if (mutation.type == \"attributes\") {\n this.processAttributeChange(mutation.target, mutation.attributeName);\n } else if (mutation.type == \"childList\") {\n this.processRemovedNodes(mutation.removedNodes);\n this.processAddedNodes(mutation.addedNodes);\n }\n }\n }, {\n key: \"processAttributeChange\",\n value: function processAttributeChange(element, attributeName) {\n if (this.elements.has(element)) {\n if (this.delegate.elementAttributeChanged && this.matchElement(element)) {\n this.delegate.elementAttributeChanged(element, attributeName);\n } else {\n this.removeElement(element);\n }\n } else if (this.matchElement(element)) {\n this.addElement(element);\n }\n }\n }, {\n key: \"processRemovedNodes\",\n value: function processRemovedNodes(nodes) {\n for (var _i5 = 0, _Array$from4 = Array.from(nodes); _i5 < _Array$from4.length; _i5++) {\n var node = _Array$from4[_i5];\n var element = this.elementFromNode(node);\n\n if (element) {\n this.processTree(element, this.removeElement);\n }\n }\n }\n }, {\n key: \"processAddedNodes\",\n value: function processAddedNodes(nodes) {\n for (var _i6 = 0, _Array$from5 = Array.from(nodes); _i6 < _Array$from5.length; _i6++) {\n var node = _Array$from5[_i6];\n var element = this.elementFromNode(node);\n\n if (element && this.elementIsActive(element)) {\n this.processTree(element, this.addElement);\n }\n }\n }\n }, {\n key: \"matchElement\",\n value: function matchElement(element) {\n return this.delegate.matchElement(element);\n }\n }, {\n key: \"matchElementsInTree\",\n value: function matchElementsInTree() {\n var tree = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.element;\n return this.delegate.matchElementsInTree(tree);\n }\n }, {\n key: \"processTree\",\n value: function processTree(tree, processor) {\n var _iterator3 = _createForOfIteratorHelper(this.matchElementsInTree(tree)),\n _step3;\n\n try {\n for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {\n var element = _step3.value;\n processor.call(this, element);\n }\n } catch (err) {\n _iterator3.e(err);\n } finally {\n _iterator3.f();\n }\n }\n }, {\n key: \"elementFromNode\",\n value: function elementFromNode(node) {\n if (node.nodeType == Node.ELEMENT_NODE) {\n return node;\n }\n }\n }, {\n key: \"elementIsActive\",\n value: function elementIsActive(element) {\n if (element.isConnected != this.element.isConnected) {\n return false;\n } else {\n return this.element.contains(element);\n }\n }\n }, {\n key: \"addElement\",\n value: function addElement(element) {\n if (!this.elements.has(element)) {\n if (this.elementIsActive(element)) {\n this.elements.add(element);\n\n if (this.delegate.elementMatched) {\n this.delegate.elementMatched(element);\n }\n }\n }\n }\n }, {\n key: \"removeElement\",\n value: function removeElement(element) {\n if (this.elements.has(element)) {\n this.elements.delete(element);\n\n if (this.delegate.elementUnmatched) {\n this.delegate.elementUnmatched(element);\n }\n }\n }\n }]);\n\n return ElementObserver;\n}();\n\nvar AttributeObserver = /*#__PURE__*/function () {\n function AttributeObserver(element, attributeName, delegate) {\n _classCallCheck(this, AttributeObserver);\n\n this.attributeName = attributeName;\n this.delegate = delegate;\n this.elementObserver = new ElementObserver(element, this);\n }\n\n _createClass(AttributeObserver, [{\n key: \"element\",\n get: function get() {\n return this.elementObserver.element;\n }\n }, {\n key: \"selector\",\n get: function get() {\n return \"[\".concat(this.attributeName, \"]\");\n }\n }, {\n key: \"start\",\n value: function start() {\n this.elementObserver.start();\n }\n }, {\n key: \"pause\",\n value: function pause(callback) {\n this.elementObserver.pause(callback);\n }\n }, {\n key: \"stop\",\n value: function stop() {\n this.elementObserver.stop();\n }\n }, {\n key: \"refresh\",\n value: function refresh() {\n this.elementObserver.refresh();\n }\n }, {\n key: \"started\",\n get: function get() {\n return this.elementObserver.started;\n }\n }, {\n key: \"matchElement\",\n value: function matchElement(element) {\n return element.hasAttribute(this.attributeName);\n }\n }, {\n key: \"matchElementsInTree\",\n value: function matchElementsInTree(tree) {\n var match = this.matchElement(tree) ? [tree] : [];\n var matches = Array.from(tree.querySelectorAll(this.selector));\n return match.concat(matches);\n }\n }, {\n key: \"elementMatched\",\n value: function elementMatched(element) {\n if (this.delegate.elementMatchedAttribute) {\n this.delegate.elementMatchedAttribute(element, this.attributeName);\n }\n }\n }, {\n key: \"elementUnmatched\",\n value: function elementUnmatched(element) {\n if (this.delegate.elementUnmatchedAttribute) {\n this.delegate.elementUnmatchedAttribute(element, this.attributeName);\n }\n }\n }, {\n key: \"elementAttributeChanged\",\n value: function elementAttributeChanged(element, attributeName) {\n if (this.delegate.elementAttributeValueChanged && this.attributeName == attributeName) {\n this.delegate.elementAttributeValueChanged(element, attributeName);\n }\n }\n }]);\n\n return AttributeObserver;\n}();\n\nfunction _add(map, key, value) {\n fetch(map, key).add(value);\n}\n\nfunction del(map, key, value) {\n fetch(map, key).delete(value);\n prune(map, key);\n}\n\nfunction fetch(map, key) {\n var values = map.get(key);\n\n if (!values) {\n values = new Set();\n map.set(key, values);\n }\n\n return values;\n}\n\nfunction prune(map, key) {\n var values = map.get(key);\n\n if (values != null && values.size == 0) {\n map.delete(key);\n }\n}\n\nvar Multimap = /*#__PURE__*/function () {\n function Multimap() {\n _classCallCheck(this, Multimap);\n\n this.valuesByKey = new Map();\n }\n\n _createClass(Multimap, [{\n key: \"keys\",\n get: function get() {\n return Array.from(this.valuesByKey.keys());\n }\n }, {\n key: \"values\",\n get: function get() {\n var sets = Array.from(this.valuesByKey.values());\n return sets.reduce(function (values, set) {\n return values.concat(Array.from(set));\n }, []);\n }\n }, {\n key: \"size\",\n get: function get() {\n var sets = Array.from(this.valuesByKey.values());\n return sets.reduce(function (size, set) {\n return size + set.size;\n }, 0);\n }\n }, {\n key: \"add\",\n value: function add(key, value) {\n _add(this.valuesByKey, key, value);\n }\n }, {\n key: \"delete\",\n value: function _delete(key, value) {\n del(this.valuesByKey, key, value);\n }\n }, {\n key: \"has\",\n value: function has(key, value) {\n var values = this.valuesByKey.get(key);\n return values != null && values.has(value);\n }\n }, {\n key: \"hasKey\",\n value: function hasKey(key) {\n return this.valuesByKey.has(key);\n }\n }, {\n key: \"hasValue\",\n value: function hasValue(value) {\n var sets = Array.from(this.valuesByKey.values());\n return sets.some(function (set) {\n return set.has(value);\n });\n }\n }, {\n key: \"getValuesForKey\",\n value: function getValuesForKey(key) {\n var values = this.valuesByKey.get(key);\n return values ? Array.from(values) : [];\n }\n }, {\n key: \"getKeysForValue\",\n value: function getKeysForValue(value) {\n return Array.from(this.valuesByKey).filter(function (_ref9) {\n var _ref10 = _slicedToArray(_ref9, 2),\n _key = _ref10[0],\n values = _ref10[1];\n\n return values.has(value);\n }).map(function (_ref11) {\n var _ref12 = _slicedToArray(_ref11, 2),\n key = _ref12[0],\n _values = _ref12[1];\n\n return key;\n });\n }\n }]);\n\n return Multimap;\n}();\n\nvar IndexedMultimap = /*#__PURE__*/function (_Multimap) {\n _inherits(IndexedMultimap, _Multimap);\n\n var _super = _createSuper(IndexedMultimap);\n\n function IndexedMultimap() {\n var _this2;\n\n _classCallCheck(this, IndexedMultimap);\n\n _this2 = _super.call(this);\n _this2.keysByValue = new Map();\n return _this2;\n }\n\n _createClass(IndexedMultimap, [{\n key: \"values\",\n get: function get() {\n return Array.from(this.keysByValue.keys());\n }\n }, {\n key: \"add\",\n value: function add(key, value) {\n _get(_getPrototypeOf(IndexedMultimap.prototype), \"add\", this).call(this, key, value);\n\n _add(this.keysByValue, value, key);\n }\n }, {\n key: \"delete\",\n value: function _delete(key, value) {\n _get(_getPrototypeOf(IndexedMultimap.prototype), \"delete\", this).call(this, key, value);\n\n del(this.keysByValue, value, key);\n }\n }, {\n key: \"hasValue\",\n value: function hasValue(value) {\n return this.keysByValue.has(value);\n }\n }, {\n key: \"getKeysForValue\",\n value: function getKeysForValue(value) {\n var set = this.keysByValue.get(value);\n return set ? Array.from(set) : [];\n }\n }]);\n\n return IndexedMultimap;\n}(Multimap);\n\nvar SelectorObserver = /*#__PURE__*/function () {\n function SelectorObserver(element, selector, delegate, details) {\n _classCallCheck(this, SelectorObserver);\n\n this._selector = selector;\n this.details = details;\n this.elementObserver = new ElementObserver(element, this);\n this.delegate = delegate;\n this.matchesByElement = new Multimap();\n }\n\n _createClass(SelectorObserver, [{\n key: \"started\",\n get: function get() {\n return this.elementObserver.started;\n }\n }, {\n key: \"selector\",\n get: function get() {\n return this._selector;\n },\n set: function set(selector) {\n this._selector = selector;\n this.refresh();\n }\n }, {\n key: \"start\",\n value: function start() {\n this.elementObserver.start();\n }\n }, {\n key: \"pause\",\n value: function pause(callback) {\n this.elementObserver.pause(callback);\n }\n }, {\n key: \"stop\",\n value: function stop() {\n this.elementObserver.stop();\n }\n }, {\n key: \"refresh\",\n value: function refresh() {\n this.elementObserver.refresh();\n }\n }, {\n key: \"element\",\n get: function get() {\n return this.elementObserver.element;\n }\n }, {\n key: \"matchElement\",\n value: function matchElement(element) {\n var selector = this.selector;\n\n if (selector) {\n var matches = element.matches(selector);\n\n if (this.delegate.selectorMatchElement) {\n return matches && this.delegate.selectorMatchElement(element, this.details);\n }\n\n return matches;\n } else {\n return false;\n }\n }\n }, {\n key: \"matchElementsInTree\",\n value: function matchElementsInTree(tree) {\n var _this3 = this;\n\n var selector = this.selector;\n\n if (selector) {\n var match = this.matchElement(tree) ? [tree] : [];\n var matches = Array.from(tree.querySelectorAll(selector)).filter(function (match) {\n return _this3.matchElement(match);\n });\n return match.concat(matches);\n } else {\n return [];\n }\n }\n }, {\n key: \"elementMatched\",\n value: function elementMatched(element) {\n var selector = this.selector;\n\n if (selector) {\n this.selectorMatched(element, selector);\n }\n }\n }, {\n key: \"elementUnmatched\",\n value: function elementUnmatched(element) {\n var selectors = this.matchesByElement.getKeysForValue(element);\n\n var _iterator4 = _createForOfIteratorHelper(selectors),\n _step4;\n\n try {\n for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {\n var selector = _step4.value;\n this.selectorUnmatched(element, selector);\n }\n } catch (err) {\n _iterator4.e(err);\n } finally {\n _iterator4.f();\n }\n }\n }, {\n key: \"elementAttributeChanged\",\n value: function elementAttributeChanged(element, _attributeName) {\n var selector = this.selector;\n\n if (selector) {\n var matches = this.matchElement(element);\n var matchedBefore = this.matchesByElement.has(selector, element);\n\n if (matches && !matchedBefore) {\n this.selectorMatched(element, selector);\n } else if (!matches && matchedBefore) {\n this.selectorUnmatched(element, selector);\n }\n }\n }\n }, {\n key: \"selectorMatched\",\n value: function selectorMatched(element, selector) {\n this.delegate.selectorMatched(element, selector, this.details);\n this.matchesByElement.add(selector, element);\n }\n }, {\n key: \"selectorUnmatched\",\n value: function selectorUnmatched(element, selector) {\n this.delegate.selectorUnmatched(element, selector, this.details);\n this.matchesByElement.delete(selector, element);\n }\n }]);\n\n return SelectorObserver;\n}();\n\nvar StringMapObserver = /*#__PURE__*/function () {\n function StringMapObserver(element, delegate) {\n var _this4 = this;\n\n _classCallCheck(this, StringMapObserver);\n\n this.element = element;\n this.delegate = delegate;\n this.started = false;\n this.stringMap = new Map();\n this.mutationObserver = new MutationObserver(function (mutations) {\n return _this4.processMutations(mutations);\n });\n }\n\n _createClass(StringMapObserver, [{\n key: \"start\",\n value: function start() {\n if (!this.started) {\n this.started = true;\n this.mutationObserver.observe(this.element, {\n attributes: true,\n attributeOldValue: true\n });\n this.refresh();\n }\n }\n }, {\n key: \"stop\",\n value: function stop() {\n if (this.started) {\n this.mutationObserver.takeRecords();\n this.mutationObserver.disconnect();\n this.started = false;\n }\n }\n }, {\n key: \"refresh\",\n value: function refresh() {\n if (this.started) {\n var _iterator5 = _createForOfIteratorHelper(this.knownAttributeNames),\n _step5;\n\n try {\n for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {\n var attributeName = _step5.value;\n this.refreshAttribute(attributeName, null);\n }\n } catch (err) {\n _iterator5.e(err);\n } finally {\n _iterator5.f();\n }\n }\n }\n }, {\n key: \"processMutations\",\n value: function processMutations(mutations) {\n if (this.started) {\n var _iterator6 = _createForOfIteratorHelper(mutations),\n _step6;\n\n try {\n for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {\n var mutation = _step6.value;\n this.processMutation(mutation);\n }\n } catch (err) {\n _iterator6.e(err);\n } finally {\n _iterator6.f();\n }\n }\n }\n }, {\n key: \"processMutation\",\n value: function processMutation(mutation) {\n var attributeName = mutation.attributeName;\n\n if (attributeName) {\n this.refreshAttribute(attributeName, mutation.oldValue);\n }\n }\n }, {\n key: \"refreshAttribute\",\n value: function refreshAttribute(attributeName, oldValue) {\n var key = this.delegate.getStringMapKeyForAttribute(attributeName);\n\n if (key != null) {\n if (!this.stringMap.has(attributeName)) {\n this.stringMapKeyAdded(key, attributeName);\n }\n\n var value = this.element.getAttribute(attributeName);\n\n if (this.stringMap.get(attributeName) != value) {\n this.stringMapValueChanged(value, key, oldValue);\n }\n\n if (value == null) {\n var _oldValue = this.stringMap.get(attributeName);\n\n this.stringMap.delete(attributeName);\n if (_oldValue) this.stringMapKeyRemoved(key, attributeName, _oldValue);\n } else {\n this.stringMap.set(attributeName, value);\n }\n }\n }\n }, {\n key: \"stringMapKeyAdded\",\n value: function stringMapKeyAdded(key, attributeName) {\n if (this.delegate.stringMapKeyAdded) {\n this.delegate.stringMapKeyAdded(key, attributeName);\n }\n }\n }, {\n key: \"stringMapValueChanged\",\n value: function stringMapValueChanged(value, key, oldValue) {\n if (this.delegate.stringMapValueChanged) {\n this.delegate.stringMapValueChanged(value, key, oldValue);\n }\n }\n }, {\n key: \"stringMapKeyRemoved\",\n value: function stringMapKeyRemoved(key, attributeName, oldValue) {\n if (this.delegate.stringMapKeyRemoved) {\n this.delegate.stringMapKeyRemoved(key, attributeName, oldValue);\n }\n }\n }, {\n key: \"knownAttributeNames\",\n get: function get() {\n return Array.from(new Set(this.currentAttributeNames.concat(this.recordedAttributeNames)));\n }\n }, {\n key: \"currentAttributeNames\",\n get: function get() {\n return Array.from(this.element.attributes).map(function (attribute) {\n return attribute.name;\n });\n }\n }, {\n key: \"recordedAttributeNames\",\n get: function get() {\n return Array.from(this.stringMap.keys());\n }\n }]);\n\n return StringMapObserver;\n}();\n\nvar TokenListObserver = /*#__PURE__*/function () {\n function TokenListObserver(element, attributeName, delegate) {\n _classCallCheck(this, TokenListObserver);\n\n this.attributeObserver = new AttributeObserver(element, attributeName, this);\n this.delegate = delegate;\n this.tokensByElement = new Multimap();\n }\n\n _createClass(TokenListObserver, [{\n key: \"started\",\n get: function get() {\n return this.attributeObserver.started;\n }\n }, {\n key: \"start\",\n value: function start() {\n this.attributeObserver.start();\n }\n }, {\n key: \"pause\",\n value: function pause(callback) {\n this.attributeObserver.pause(callback);\n }\n }, {\n key: \"stop\",\n value: function stop() {\n this.attributeObserver.stop();\n }\n }, {\n key: \"refresh\",\n value: function refresh() {\n this.attributeObserver.refresh();\n }\n }, {\n key: \"element\",\n get: function get() {\n return this.attributeObserver.element;\n }\n }, {\n key: \"attributeName\",\n get: function get() {\n return this.attributeObserver.attributeName;\n }\n }, {\n key: \"elementMatchedAttribute\",\n value: function elementMatchedAttribute(element) {\n this.tokensMatched(this.readTokensForElement(element));\n }\n }, {\n key: \"elementAttributeValueChanged\",\n value: function elementAttributeValueChanged(element) {\n var _this$refreshTokensFo = this.refreshTokensForElement(element),\n _this$refreshTokensFo2 = _slicedToArray(_this$refreshTokensFo, 2),\n unmatchedTokens = _this$refreshTokensFo2[0],\n matchedTokens = _this$refreshTokensFo2[1];\n\n this.tokensUnmatched(unmatchedTokens);\n this.tokensMatched(matchedTokens);\n }\n }, {\n key: \"elementUnmatchedAttribute\",\n value: function elementUnmatchedAttribute(element) {\n this.tokensUnmatched(this.tokensByElement.getValuesForKey(element));\n }\n }, {\n key: \"tokensMatched\",\n value: function tokensMatched(tokens) {\n var _this5 = this;\n\n tokens.forEach(function (token) {\n return _this5.tokenMatched(token);\n });\n }\n }, {\n key: \"tokensUnmatched\",\n value: function tokensUnmatched(tokens) {\n var _this6 = this;\n\n tokens.forEach(function (token) {\n return _this6.tokenUnmatched(token);\n });\n }\n }, {\n key: \"tokenMatched\",\n value: function tokenMatched(token) {\n this.delegate.tokenMatched(token);\n this.tokensByElement.add(token.element, token);\n }\n }, {\n key: \"tokenUnmatched\",\n value: function tokenUnmatched(token) {\n this.delegate.tokenUnmatched(token);\n this.tokensByElement.delete(token.element, token);\n }\n }, {\n key: \"refreshTokensForElement\",\n value: function refreshTokensForElement(element) {\n var previousTokens = this.tokensByElement.getValuesForKey(element);\n var currentTokens = this.readTokensForElement(element);\n var firstDifferingIndex = zip(previousTokens, currentTokens).findIndex(function (_ref13) {\n var _ref14 = _slicedToArray(_ref13, 2),\n previousToken = _ref14[0],\n currentToken = _ref14[1];\n\n return !tokensAreEqual(previousToken, currentToken);\n });\n\n if (firstDifferingIndex == -1) {\n return [[], []];\n } else {\n return [previousTokens.slice(firstDifferingIndex), currentTokens.slice(firstDifferingIndex)];\n }\n }\n }, {\n key: \"readTokensForElement\",\n value: function readTokensForElement(element) {\n var attributeName = this.attributeName;\n var tokenString = element.getAttribute(attributeName) || \"\";\n return parseTokenString(tokenString, element, attributeName);\n }\n }]);\n\n return TokenListObserver;\n}();\n\nfunction parseTokenString(tokenString, element, attributeName) {\n return tokenString.trim().split(/\\s+/).filter(function (content) {\n return content.length;\n }).map(function (content, index) {\n return {\n element: element,\n attributeName: attributeName,\n content: content,\n index: index\n };\n });\n}\n\nfunction zip(left, right) {\n var length = Math.max(left.length, right.length);\n return Array.from({\n length: length\n }, function (_, index) {\n return [left[index], right[index]];\n });\n}\n\nfunction tokensAreEqual(left, right) {\n return left && right && left.index == right.index && left.content == right.content;\n}\n\nvar ValueListObserver = /*#__PURE__*/function () {\n function ValueListObserver(element, attributeName, delegate) {\n _classCallCheck(this, ValueListObserver);\n\n this.tokenListObserver = new TokenListObserver(element, attributeName, this);\n this.delegate = delegate;\n this.parseResultsByToken = new WeakMap();\n this.valuesByTokenByElement = new WeakMap();\n }\n\n _createClass(ValueListObserver, [{\n key: \"started\",\n get: function get() {\n return this.tokenListObserver.started;\n }\n }, {\n key: \"start\",\n value: function start() {\n this.tokenListObserver.start();\n }\n }, {\n key: \"stop\",\n value: function stop() {\n this.tokenListObserver.stop();\n }\n }, {\n key: \"refresh\",\n value: function refresh() {\n this.tokenListObserver.refresh();\n }\n }, {\n key: \"element\",\n get: function get() {\n return this.tokenListObserver.element;\n }\n }, {\n key: \"attributeName\",\n get: function get() {\n return this.tokenListObserver.attributeName;\n }\n }, {\n key: \"tokenMatched\",\n value: function tokenMatched(token) {\n var element = token.element;\n\n var _this$fetchParseResul = this.fetchParseResultForToken(token),\n value = _this$fetchParseResul.value;\n\n if (value) {\n this.fetchValuesByTokenForElement(element).set(token, value);\n this.delegate.elementMatchedValue(element, value);\n }\n }\n }, {\n key: \"tokenUnmatched\",\n value: function tokenUnmatched(token) {\n var element = token.element;\n\n var _this$fetchParseResul2 = this.fetchParseResultForToken(token),\n value = _this$fetchParseResul2.value;\n\n if (value) {\n this.fetchValuesByTokenForElement(element).delete(token);\n this.delegate.elementUnmatchedValue(element, value);\n }\n }\n }, {\n key: \"fetchParseResultForToken\",\n value: function fetchParseResultForToken(token) {\n var parseResult = this.parseResultsByToken.get(token);\n\n if (!parseResult) {\n parseResult = this.parseToken(token);\n this.parseResultsByToken.set(token, parseResult);\n }\n\n return parseResult;\n }\n }, {\n key: \"fetchValuesByTokenForElement\",\n value: function fetchValuesByTokenForElement(element) {\n var valuesByToken = this.valuesByTokenByElement.get(element);\n\n if (!valuesByToken) {\n valuesByToken = new Map();\n this.valuesByTokenByElement.set(element, valuesByToken);\n }\n\n return valuesByToken;\n }\n }, {\n key: \"parseToken\",\n value: function parseToken(token) {\n try {\n var value = this.delegate.parseValueForToken(token);\n return {\n value: value\n };\n } catch (error) {\n return {\n error: error\n };\n }\n }\n }]);\n\n return ValueListObserver;\n}();\n\nvar BindingObserver = /*#__PURE__*/function () {\n function BindingObserver(context, delegate) {\n _classCallCheck(this, BindingObserver);\n\n this.context = context;\n this.delegate = delegate;\n this.bindingsByAction = new Map();\n }\n\n _createClass(BindingObserver, [{\n key: \"start\",\n value: function start() {\n if (!this.valueListObserver) {\n this.valueListObserver = new ValueListObserver(this.element, this.actionAttribute, this);\n this.valueListObserver.start();\n }\n }\n }, {\n key: \"stop\",\n value: function stop() {\n if (this.valueListObserver) {\n this.valueListObserver.stop();\n delete this.valueListObserver;\n this.disconnectAllActions();\n }\n }\n }, {\n key: \"element\",\n get: function get() {\n return this.context.element;\n }\n }, {\n key: \"identifier\",\n get: function get() {\n return this.context.identifier;\n }\n }, {\n key: \"actionAttribute\",\n get: function get() {\n return this.schema.actionAttribute;\n }\n }, {\n key: \"schema\",\n get: function get() {\n return this.context.schema;\n }\n }, {\n key: \"bindings\",\n get: function get() {\n return Array.from(this.bindingsByAction.values());\n }\n }, {\n key: \"connectAction\",\n value: function connectAction(action) {\n var binding = new Binding(this.context, action);\n this.bindingsByAction.set(action, binding);\n this.delegate.bindingConnected(binding);\n }\n }, {\n key: \"disconnectAction\",\n value: function disconnectAction(action) {\n var binding = this.bindingsByAction.get(action);\n\n if (binding) {\n this.bindingsByAction.delete(action);\n this.delegate.bindingDisconnected(binding);\n }\n }\n }, {\n key: \"disconnectAllActions\",\n value: function disconnectAllActions() {\n var _this7 = this;\n\n this.bindings.forEach(function (binding) {\n return _this7.delegate.bindingDisconnected(binding, true);\n });\n this.bindingsByAction.clear();\n }\n }, {\n key: \"parseValueForToken\",\n value: function parseValueForToken(token) {\n var action = Action.forToken(token, this.schema);\n\n if (action.identifier == this.identifier) {\n return action;\n }\n }\n }, {\n key: \"elementMatchedValue\",\n value: function elementMatchedValue(element, action) {\n this.connectAction(action);\n }\n }, {\n key: \"elementUnmatchedValue\",\n value: function elementUnmatchedValue(element, action) {\n this.disconnectAction(action);\n }\n }]);\n\n return BindingObserver;\n}();\n\nvar ValueObserver = /*#__PURE__*/function () {\n function ValueObserver(context, receiver) {\n _classCallCheck(this, ValueObserver);\n\n this.context = context;\n this.receiver = receiver;\n this.stringMapObserver = new StringMapObserver(this.element, this);\n this.valueDescriptorMap = this.controller.valueDescriptorMap;\n }\n\n _createClass(ValueObserver, [{\n key: \"start\",\n value: function start() {\n this.stringMapObserver.start();\n this.invokeChangedCallbacksForDefaultValues();\n }\n }, {\n key: \"stop\",\n value: function stop() {\n this.stringMapObserver.stop();\n }\n }, {\n key: \"element\",\n get: function get() {\n return this.context.element;\n }\n }, {\n key: \"controller\",\n get: function get() {\n return this.context.controller;\n }\n }, {\n key: \"getStringMapKeyForAttribute\",\n value: function getStringMapKeyForAttribute(attributeName) {\n if (attributeName in this.valueDescriptorMap) {\n return this.valueDescriptorMap[attributeName].name;\n }\n }\n }, {\n key: \"stringMapKeyAdded\",\n value: function stringMapKeyAdded(key, attributeName) {\n var descriptor = this.valueDescriptorMap[attributeName];\n\n if (!this.hasValue(key)) {\n this.invokeChangedCallback(key, descriptor.writer(this.receiver[key]), descriptor.writer(descriptor.defaultValue));\n }\n }\n }, {\n key: \"stringMapValueChanged\",\n value: function stringMapValueChanged(value, name, oldValue) {\n var descriptor = this.valueDescriptorNameMap[name];\n if (value === null) return;\n\n if (oldValue === null) {\n oldValue = descriptor.writer(descriptor.defaultValue);\n }\n\n this.invokeChangedCallback(name, value, oldValue);\n }\n }, {\n key: \"stringMapKeyRemoved\",\n value: function stringMapKeyRemoved(key, attributeName, oldValue) {\n var descriptor = this.valueDescriptorNameMap[key];\n\n if (this.hasValue(key)) {\n this.invokeChangedCallback(key, descriptor.writer(this.receiver[key]), oldValue);\n } else {\n this.invokeChangedCallback(key, descriptor.writer(descriptor.defaultValue), oldValue);\n }\n }\n }, {\n key: \"invokeChangedCallbacksForDefaultValues\",\n value: function invokeChangedCallbacksForDefaultValues() {\n var _iterator7 = _createForOfIteratorHelper(this.valueDescriptors),\n _step7;\n\n try {\n for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {\n var _ref16 = _step7.value;\n var key = _ref16.key;\n var name = _ref16.name;\n var defaultValue = _ref16.defaultValue;\n var writer = _ref16.writer;\n\n if (defaultValue != undefined && !this.controller.data.has(key)) {\n this.invokeChangedCallback(name, writer(defaultValue), undefined);\n }\n }\n } catch (err) {\n _iterator7.e(err);\n } finally {\n _iterator7.f();\n }\n }\n }, {\n key: \"invokeChangedCallback\",\n value: function invokeChangedCallback(name, rawValue, rawOldValue) {\n var changedMethodName = \"\".concat(name, \"Changed\");\n var changedMethod = this.receiver[changedMethodName];\n\n if (typeof changedMethod == \"function\") {\n var descriptor = this.valueDescriptorNameMap[name];\n\n try {\n var value = descriptor.reader(rawValue);\n var oldValue = rawOldValue;\n\n if (rawOldValue) {\n oldValue = descriptor.reader(rawOldValue);\n }\n\n changedMethod.call(this.receiver, value, oldValue);\n } catch (error) {\n if (error instanceof TypeError) {\n error.message = \"Stimulus Value \\\"\".concat(this.context.identifier, \".\").concat(descriptor.name, \"\\\" - \").concat(error.message);\n }\n\n throw error;\n }\n }\n }\n }, {\n key: \"valueDescriptors\",\n get: function get() {\n var valueDescriptorMap = this.valueDescriptorMap;\n return Object.keys(valueDescriptorMap).map(function (key) {\n return valueDescriptorMap[key];\n });\n }\n }, {\n key: \"valueDescriptorNameMap\",\n get: function get() {\n var _this8 = this;\n\n var descriptors = {};\n Object.keys(this.valueDescriptorMap).forEach(function (key) {\n var descriptor = _this8.valueDescriptorMap[key];\n descriptors[descriptor.name] = descriptor;\n });\n return descriptors;\n }\n }, {\n key: \"hasValue\",\n value: function hasValue(attributeName) {\n var descriptor = this.valueDescriptorNameMap[attributeName];\n var hasMethodName = \"has\".concat(capitalize(descriptor.name));\n return this.receiver[hasMethodName];\n }\n }]);\n\n return ValueObserver;\n}();\n\nvar TargetObserver = /*#__PURE__*/function () {\n function TargetObserver(context, delegate) {\n _classCallCheck(this, TargetObserver);\n\n this.context = context;\n this.delegate = delegate;\n this.targetsByName = new Multimap();\n }\n\n _createClass(TargetObserver, [{\n key: \"start\",\n value: function start() {\n if (!this.tokenListObserver) {\n this.tokenListObserver = new TokenListObserver(this.element, this.attributeName, this);\n this.tokenListObserver.start();\n }\n }\n }, {\n key: \"stop\",\n value: function stop() {\n if (this.tokenListObserver) {\n this.disconnectAllTargets();\n this.tokenListObserver.stop();\n delete this.tokenListObserver;\n }\n }\n }, {\n key: \"tokenMatched\",\n value: function tokenMatched(_ref17) {\n var element = _ref17.element,\n name = _ref17.content;\n\n if (this.scope.containsElement(element)) {\n this.connectTarget(element, name);\n }\n }\n }, {\n key: \"tokenUnmatched\",\n value: function tokenUnmatched(_ref18) {\n var element = _ref18.element,\n name = _ref18.content;\n this.disconnectTarget(element, name);\n }\n }, {\n key: \"connectTarget\",\n value: function connectTarget(element, name) {\n var _this9 = this;\n\n var _a;\n\n if (!this.targetsByName.has(name, element)) {\n this.targetsByName.add(name, element);\n (_a = this.tokenListObserver) === null || _a === void 0 ? void 0 : _a.pause(function () {\n return _this9.delegate.targetConnected(element, name);\n });\n }\n }\n }, {\n key: \"disconnectTarget\",\n value: function disconnectTarget(element, name) {\n var _this10 = this;\n\n var _a;\n\n if (this.targetsByName.has(name, element)) {\n this.targetsByName.delete(name, element);\n (_a = this.tokenListObserver) === null || _a === void 0 ? void 0 : _a.pause(function () {\n return _this10.delegate.targetDisconnected(element, name);\n });\n }\n }\n }, {\n key: \"disconnectAllTargets\",\n value: function disconnectAllTargets() {\n var _iterator8 = _createForOfIteratorHelper(this.targetsByName.keys),\n _step8;\n\n try {\n for (_iterator8.s(); !(_step8 = _iterator8.n()).done;) {\n var name = _step8.value;\n\n var _iterator9 = _createForOfIteratorHelper(this.targetsByName.getValuesForKey(name)),\n _step9;\n\n try {\n for (_iterator9.s(); !(_step9 = _iterator9.n()).done;) {\n var element = _step9.value;\n this.disconnectTarget(element, name);\n }\n } catch (err) {\n _iterator9.e(err);\n } finally {\n _iterator9.f();\n }\n }\n } catch (err) {\n _iterator8.e(err);\n } finally {\n _iterator8.f();\n }\n }\n }, {\n key: \"attributeName\",\n get: function get() {\n return \"data-\".concat(this.context.identifier, \"-target\");\n }\n }, {\n key: \"element\",\n get: function get() {\n return this.context.element;\n }\n }, {\n key: \"scope\",\n get: function get() {\n return this.context.scope;\n }\n }]);\n\n return TargetObserver;\n}();\n\nfunction readInheritableStaticArrayValues(constructor, propertyName) {\n var ancestors = getAncestorsForConstructor(constructor);\n return Array.from(ancestors.reduce(function (values, constructor) {\n getOwnStaticArrayValues(constructor, propertyName).forEach(function (name) {\n return values.add(name);\n });\n return values;\n }, new Set()));\n}\n\nfunction readInheritableStaticObjectPairs(constructor, propertyName) {\n var ancestors = getAncestorsForConstructor(constructor);\n return ancestors.reduce(function (pairs, constructor) {\n pairs.push.apply(pairs, _toConsumableArray(getOwnStaticObjectPairs(constructor, propertyName)));\n return pairs;\n }, []);\n}\n\nfunction getAncestorsForConstructor(constructor) {\n var ancestors = [];\n\n while (constructor) {\n ancestors.push(constructor);\n constructor = Object.getPrototypeOf(constructor);\n }\n\n return ancestors.reverse();\n}\n\nfunction getOwnStaticArrayValues(constructor, propertyName) {\n var definition = constructor[propertyName];\n return Array.isArray(definition) ? definition : [];\n}\n\nfunction getOwnStaticObjectPairs(constructor, propertyName) {\n var definition = constructor[propertyName];\n return definition ? Object.keys(definition).map(function (key) {\n return [key, definition[key]];\n }) : [];\n}\n\nvar OutletObserver = /*#__PURE__*/function () {\n function OutletObserver(context, delegate) {\n _classCallCheck(this, OutletObserver);\n\n this.started = false;\n this.context = context;\n this.delegate = delegate;\n this.outletsByName = new Multimap();\n this.outletElementsByName = new Multimap();\n this.selectorObserverMap = new Map();\n this.attributeObserverMap = new Map();\n }\n\n _createClass(OutletObserver, [{\n key: \"start\",\n value: function start() {\n var _this11 = this;\n\n if (!this.started) {\n this.outletDefinitions.forEach(function (outletName) {\n _this11.setupSelectorObserverForOutlet(outletName);\n\n _this11.setupAttributeObserverForOutlet(outletName);\n });\n this.started = true;\n this.dependentContexts.forEach(function (context) {\n return context.refresh();\n });\n }\n }\n }, {\n key: \"refresh\",\n value: function refresh() {\n this.selectorObserverMap.forEach(function (observer) {\n return observer.refresh();\n });\n this.attributeObserverMap.forEach(function (observer) {\n return observer.refresh();\n });\n }\n }, {\n key: \"stop\",\n value: function stop() {\n if (this.started) {\n this.started = false;\n this.disconnectAllOutlets();\n this.stopSelectorObservers();\n this.stopAttributeObservers();\n }\n }\n }, {\n key: \"stopSelectorObservers\",\n value: function stopSelectorObservers() {\n if (this.selectorObserverMap.size > 0) {\n this.selectorObserverMap.forEach(function (observer) {\n return observer.stop();\n });\n this.selectorObserverMap.clear();\n }\n }\n }, {\n key: \"stopAttributeObservers\",\n value: function stopAttributeObservers() {\n if (this.attributeObserverMap.size > 0) {\n this.attributeObserverMap.forEach(function (observer) {\n return observer.stop();\n });\n this.attributeObserverMap.clear();\n }\n }\n }, {\n key: \"selectorMatched\",\n value: function selectorMatched(element, _selector, _ref19) {\n var outletName = _ref19.outletName;\n var outlet = this.getOutlet(element, outletName);\n\n if (outlet) {\n this.connectOutlet(outlet, element, outletName);\n }\n }\n }, {\n key: \"selectorUnmatched\",\n value: function selectorUnmatched(element, _selector, _ref20) {\n var outletName = _ref20.outletName;\n var outlet = this.getOutletFromMap(element, outletName);\n\n if (outlet) {\n this.disconnectOutlet(outlet, element, outletName);\n }\n }\n }, {\n key: \"selectorMatchElement\",\n value: function selectorMatchElement(element, _ref21) {\n var outletName = _ref21.outletName;\n var selector = this.selector(outletName);\n var hasOutlet = this.hasOutlet(element, outletName);\n var hasOutletController = element.matches(\"[\".concat(this.schema.controllerAttribute, \"~=\").concat(outletName, \"]\"));\n\n if (selector) {\n return hasOutlet && hasOutletController && element.matches(selector);\n } else {\n return false;\n }\n }\n }, {\n key: \"elementMatchedAttribute\",\n value: function elementMatchedAttribute(_element, attributeName) {\n var outletName = this.getOutletNameFromOutletAttributeName(attributeName);\n\n if (outletName) {\n this.updateSelectorObserverForOutlet(outletName);\n }\n }\n }, {\n key: \"elementAttributeValueChanged\",\n value: function elementAttributeValueChanged(_element, attributeName) {\n var outletName = this.getOutletNameFromOutletAttributeName(attributeName);\n\n if (outletName) {\n this.updateSelectorObserverForOutlet(outletName);\n }\n }\n }, {\n key: \"elementUnmatchedAttribute\",\n value: function elementUnmatchedAttribute(_element, attributeName) {\n var outletName = this.getOutletNameFromOutletAttributeName(attributeName);\n\n if (outletName) {\n this.updateSelectorObserverForOutlet(outletName);\n }\n }\n }, {\n key: \"connectOutlet\",\n value: function connectOutlet(outlet, element, outletName) {\n var _this12 = this;\n\n var _a;\n\n if (!this.outletElementsByName.has(outletName, element)) {\n this.outletsByName.add(outletName, outlet);\n this.outletElementsByName.add(outletName, element);\n (_a = this.selectorObserverMap.get(outletName)) === null || _a === void 0 ? void 0 : _a.pause(function () {\n return _this12.delegate.outletConnected(outlet, element, outletName);\n });\n }\n }\n }, {\n key: \"disconnectOutlet\",\n value: function disconnectOutlet(outlet, element, outletName) {\n var _this13 = this;\n\n var _a;\n\n if (this.outletElementsByName.has(outletName, element)) {\n this.outletsByName.delete(outletName, outlet);\n this.outletElementsByName.delete(outletName, element);\n (_a = this.selectorObserverMap.get(outletName)) === null || _a === void 0 ? void 0 : _a.pause(function () {\n return _this13.delegate.outletDisconnected(outlet, element, outletName);\n });\n }\n }\n }, {\n key: \"disconnectAllOutlets\",\n value: function disconnectAllOutlets() {\n var _iterator10 = _createForOfIteratorHelper(this.outletElementsByName.keys),\n _step10;\n\n try {\n for (_iterator10.s(); !(_step10 = _iterator10.n()).done;) {\n var outletName = _step10.value;\n\n var _iterator11 = _createForOfIteratorHelper(this.outletElementsByName.getValuesForKey(outletName)),\n _step11;\n\n try {\n for (_iterator11.s(); !(_step11 = _iterator11.n()).done;) {\n var element = _step11.value;\n\n var _iterator12 = _createForOfIteratorHelper(this.outletsByName.getValuesForKey(outletName)),\n _step12;\n\n try {\n for (_iterator12.s(); !(_step12 = _iterator12.n()).done;) {\n var outlet = _step12.value;\n this.disconnectOutlet(outlet, element, outletName);\n }\n } catch (err) {\n _iterator12.e(err);\n } finally {\n _iterator12.f();\n }\n }\n } catch (err) {\n _iterator11.e(err);\n } finally {\n _iterator11.f();\n }\n }\n } catch (err) {\n _iterator10.e(err);\n } finally {\n _iterator10.f();\n }\n }\n }, {\n key: \"updateSelectorObserverForOutlet\",\n value: function updateSelectorObserverForOutlet(outletName) {\n var observer = this.selectorObserverMap.get(outletName);\n\n if (observer) {\n observer.selector = this.selector(outletName);\n }\n }\n }, {\n key: \"setupSelectorObserverForOutlet\",\n value: function setupSelectorObserverForOutlet(outletName) {\n var selector = this.selector(outletName);\n var selectorObserver = new SelectorObserver(document.body, selector, this, {\n outletName: outletName\n });\n this.selectorObserverMap.set(outletName, selectorObserver);\n selectorObserver.start();\n }\n }, {\n key: \"setupAttributeObserverForOutlet\",\n value: function setupAttributeObserverForOutlet(outletName) {\n var attributeName = this.attributeNameForOutletName(outletName);\n var attributeObserver = new AttributeObserver(this.scope.element, attributeName, this);\n this.attributeObserverMap.set(outletName, attributeObserver);\n attributeObserver.start();\n }\n }, {\n key: \"selector\",\n value: function selector(outletName) {\n return this.scope.outlets.getSelectorForOutletName(outletName);\n }\n }, {\n key: \"attributeNameForOutletName\",\n value: function attributeNameForOutletName(outletName) {\n return this.scope.schema.outletAttributeForScope(this.identifier, outletName);\n }\n }, {\n key: \"getOutletNameFromOutletAttributeName\",\n value: function getOutletNameFromOutletAttributeName(attributeName) {\n var _this14 = this;\n\n return this.outletDefinitions.find(function (outletName) {\n return _this14.attributeNameForOutletName(outletName) === attributeName;\n });\n }\n }, {\n key: \"outletDependencies\",\n get: function get() {\n var dependencies = new Multimap();\n this.router.modules.forEach(function (module) {\n var constructor = module.definition.controllerConstructor;\n var outlets = readInheritableStaticArrayValues(constructor, \"outlets\");\n outlets.forEach(function (outlet) {\n return dependencies.add(outlet, module.identifier);\n });\n });\n return dependencies;\n }\n }, {\n key: \"outletDefinitions\",\n get: function get() {\n return this.outletDependencies.getKeysForValue(this.identifier);\n }\n }, {\n key: \"dependentControllerIdentifiers\",\n get: function get() {\n return this.outletDependencies.getValuesForKey(this.identifier);\n }\n }, {\n key: \"dependentContexts\",\n get: function get() {\n var identifiers = this.dependentControllerIdentifiers;\n return this.router.contexts.filter(function (context) {\n return identifiers.includes(context.identifier);\n });\n }\n }, {\n key: \"hasOutlet\",\n value: function hasOutlet(element, outletName) {\n return !!this.getOutlet(element, outletName) || !!this.getOutletFromMap(element, outletName);\n }\n }, {\n key: \"getOutlet\",\n value: function getOutlet(element, outletName) {\n return this.application.getControllerForElementAndIdentifier(element, outletName);\n }\n }, {\n key: \"getOutletFromMap\",\n value: function getOutletFromMap(element, outletName) {\n return this.outletsByName.getValuesForKey(outletName).find(function (outlet) {\n return outlet.element === element;\n });\n }\n }, {\n key: \"scope\",\n get: function get() {\n return this.context.scope;\n }\n }, {\n key: \"schema\",\n get: function get() {\n return this.context.schema;\n }\n }, {\n key: \"identifier\",\n get: function get() {\n return this.context.identifier;\n }\n }, {\n key: \"application\",\n get: function get() {\n return this.context.application;\n }\n }, {\n key: \"router\",\n get: function get() {\n return this.application.router;\n }\n }]);\n\n return OutletObserver;\n}();\n\nvar Context = /*#__PURE__*/function () {\n function Context(module, scope) {\n var _this15 = this;\n\n _classCallCheck(this, Context);\n\n this.logDebugActivity = function (functionName) {\n var detail = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var identifier = _this15.identifier,\n controller = _this15.controller,\n element = _this15.element;\n detail = Object.assign({\n identifier: identifier,\n controller: controller,\n element: element\n }, detail);\n\n _this15.application.logDebugActivity(_this15.identifier, functionName, detail);\n };\n\n this.module = module;\n this.scope = scope;\n this.controller = new module.controllerConstructor(this);\n this.bindingObserver = new BindingObserver(this, this.dispatcher);\n this.valueObserver = new ValueObserver(this, this.controller);\n this.targetObserver = new TargetObserver(this, this);\n this.outletObserver = new OutletObserver(this, this);\n\n try {\n this.controller.initialize();\n this.logDebugActivity(\"initialize\");\n } catch (error) {\n this.handleError(error, \"initializing controller\");\n }\n }\n\n _createClass(Context, [{\n key: \"connect\",\n value: function connect() {\n this.bindingObserver.start();\n this.valueObserver.start();\n this.targetObserver.start();\n this.outletObserver.start();\n\n try {\n this.controller.connect();\n this.logDebugActivity(\"connect\");\n } catch (error) {\n this.handleError(error, \"connecting controller\");\n }\n }\n }, {\n key: \"refresh\",\n value: function refresh() {\n this.outletObserver.refresh();\n }\n }, {\n key: \"disconnect\",\n value: function disconnect() {\n try {\n this.controller.disconnect();\n this.logDebugActivity(\"disconnect\");\n } catch (error) {\n this.handleError(error, \"disconnecting controller\");\n }\n\n this.outletObserver.stop();\n this.targetObserver.stop();\n this.valueObserver.stop();\n this.bindingObserver.stop();\n }\n }, {\n key: \"application\",\n get: function get() {\n return this.module.application;\n }\n }, {\n key: \"identifier\",\n get: function get() {\n return this.module.identifier;\n }\n }, {\n key: \"schema\",\n get: function get() {\n return this.application.schema;\n }\n }, {\n key: \"dispatcher\",\n get: function get() {\n return this.application.dispatcher;\n }\n }, {\n key: \"element\",\n get: function get() {\n return this.scope.element;\n }\n }, {\n key: \"parentElement\",\n get: function get() {\n return this.element.parentElement;\n }\n }, {\n key: \"handleError\",\n value: function handleError(error, message) {\n var detail = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n var identifier = this.identifier,\n controller = this.controller,\n element = this.element;\n detail = Object.assign({\n identifier: identifier,\n controller: controller,\n element: element\n }, detail);\n this.application.handleError(error, \"Error \".concat(message), detail);\n }\n }, {\n key: \"targetConnected\",\n value: function targetConnected(element, name) {\n this.invokeControllerMethod(\"\".concat(name, \"TargetConnected\"), element);\n }\n }, {\n key: \"targetDisconnected\",\n value: function targetDisconnected(element, name) {\n this.invokeControllerMethod(\"\".concat(name, \"TargetDisconnected\"), element);\n }\n }, {\n key: \"outletConnected\",\n value: function outletConnected(outlet, element, name) {\n this.invokeControllerMethod(\"\".concat(namespaceCamelize(name), \"OutletConnected\"), outlet, element);\n }\n }, {\n key: \"outletDisconnected\",\n value: function outletDisconnected(outlet, element, name) {\n this.invokeControllerMethod(\"\".concat(namespaceCamelize(name), \"OutletDisconnected\"), outlet, element);\n }\n }, {\n key: \"invokeControllerMethod\",\n value: function invokeControllerMethod(methodName) {\n var controller = this.controller;\n\n if (typeof controller[methodName] == \"function\") {\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key2 = 1; _key2 < _len; _key2++) {\n args[_key2 - 1] = arguments[_key2];\n }\n\n controller[methodName].apply(controller, args);\n }\n }\n }]);\n\n return Context;\n}();\n\nfunction bless(constructor) {\n return shadow(constructor, getBlessedProperties(constructor));\n}\n\nfunction shadow(constructor, properties) {\n var shadowConstructor = extend(constructor);\n var shadowProperties = getShadowProperties(constructor.prototype, properties);\n Object.defineProperties(shadowConstructor.prototype, shadowProperties);\n return shadowConstructor;\n}\n\nfunction getBlessedProperties(constructor) {\n var blessings = readInheritableStaticArrayValues(constructor, \"blessings\");\n return blessings.reduce(function (blessedProperties, blessing) {\n var properties = blessing(constructor);\n\n for (var key in properties) {\n var descriptor = blessedProperties[key] || {};\n blessedProperties[key] = Object.assign(descriptor, properties[key]);\n }\n\n return blessedProperties;\n }, {});\n}\n\nfunction getShadowProperties(prototype, properties) {\n return getOwnKeys(properties).reduce(function (shadowProperties, key) {\n var descriptor = getShadowedDescriptor(prototype, properties, key);\n\n if (descriptor) {\n Object.assign(shadowProperties, _defineProperty({}, key, descriptor));\n }\n\n return shadowProperties;\n }, {});\n}\n\nfunction getShadowedDescriptor(prototype, properties, key) {\n var shadowingDescriptor = Object.getOwnPropertyDescriptor(prototype, key);\n var shadowedByValue = shadowingDescriptor && \"value\" in shadowingDescriptor;\n\n if (!shadowedByValue) {\n var descriptor = Object.getOwnPropertyDescriptor(properties, key).value;\n\n if (shadowingDescriptor) {\n descriptor.get = shadowingDescriptor.get || descriptor.get;\n descriptor.set = shadowingDescriptor.set || descriptor.set;\n }\n\n return descriptor;\n }\n}\n\nvar getOwnKeys = function () {\n if (typeof Object.getOwnPropertySymbols == \"function\") {\n return function (object) {\n return [].concat(_toConsumableArray(Object.getOwnPropertyNames(object)), _toConsumableArray(Object.getOwnPropertySymbols(object)));\n };\n } else {\n return Object.getOwnPropertyNames;\n }\n}();\n\nvar extend = function () {\n function extendWithReflect(constructor) {\n function extended() {\n return Reflect.construct(constructor, arguments, this instanceof extended ? this.constructor : void 0);\n }\n\n extended.prototype = Object.create(constructor.prototype, {\n constructor: {\n value: extended\n }\n });\n Reflect.setPrototypeOf(extended, constructor);\n return extended;\n }\n\n function testReflectExtension() {\n var a = function a() {\n this.a.call(this);\n };\n\n var b = extendWithReflect(a);\n\n b.prototype.a = function () {};\n\n return new b();\n }\n\n try {\n testReflectExtension();\n return extendWithReflect;\n } catch (error) {\n return function (constructor) {\n return /*#__PURE__*/function (_constructor) {\n _inherits(extended, _constructor);\n\n var _super2 = _createSuper(extended);\n\n function extended() {\n _classCallCheck(this, extended);\n\n return _super2.apply(this, arguments);\n }\n\n return extended;\n }(constructor);\n };\n }\n}();\n\nfunction blessDefinition(definition) {\n return {\n identifier: definition.identifier,\n controllerConstructor: bless(definition.controllerConstructor)\n };\n}\n\nvar Module = /*#__PURE__*/function () {\n function Module(application, definition) {\n _classCallCheck(this, Module);\n\n this.application = application;\n this.definition = blessDefinition(definition);\n this.contextsByScope = new WeakMap();\n this.connectedContexts = new Set();\n }\n\n _createClass(Module, [{\n key: \"identifier\",\n get: function get() {\n return this.definition.identifier;\n }\n }, {\n key: \"controllerConstructor\",\n get: function get() {\n return this.definition.controllerConstructor;\n }\n }, {\n key: \"contexts\",\n get: function get() {\n return Array.from(this.connectedContexts);\n }\n }, {\n key: \"connectContextForScope\",\n value: function connectContextForScope(scope) {\n var context = this.fetchContextForScope(scope);\n this.connectedContexts.add(context);\n context.connect();\n }\n }, {\n key: \"disconnectContextForScope\",\n value: function disconnectContextForScope(scope) {\n var context = this.contextsByScope.get(scope);\n\n if (context) {\n this.connectedContexts.delete(context);\n context.disconnect();\n }\n }\n }, {\n key: \"fetchContextForScope\",\n value: function fetchContextForScope(scope) {\n var context = this.contextsByScope.get(scope);\n\n if (!context) {\n context = new Context(this, scope);\n this.contextsByScope.set(scope, context);\n }\n\n return context;\n }\n }]);\n\n return Module;\n}();\n\nvar ClassMap = /*#__PURE__*/function () {\n function ClassMap(scope) {\n _classCallCheck(this, ClassMap);\n\n this.scope = scope;\n }\n\n _createClass(ClassMap, [{\n key: \"has\",\n value: function has(name) {\n return this.data.has(this.getDataKey(name));\n }\n }, {\n key: \"get\",\n value: function get(name) {\n return this.getAll(name)[0];\n }\n }, {\n key: \"getAll\",\n value: function getAll(name) {\n var tokenString = this.data.get(this.getDataKey(name)) || \"\";\n return tokenize(tokenString);\n }\n }, {\n key: \"getAttributeName\",\n value: function getAttributeName(name) {\n return this.data.getAttributeNameForKey(this.getDataKey(name));\n }\n }, {\n key: \"getDataKey\",\n value: function getDataKey(name) {\n return \"\".concat(name, \"-class\");\n }\n }, {\n key: \"data\",\n get: function get() {\n return this.scope.data;\n }\n }]);\n\n return ClassMap;\n}();\n\nvar DataMap = /*#__PURE__*/function () {\n function DataMap(scope) {\n _classCallCheck(this, DataMap);\n\n this.scope = scope;\n }\n\n _createClass(DataMap, [{\n key: \"element\",\n get: function get() {\n return this.scope.element;\n }\n }, {\n key: \"identifier\",\n get: function get() {\n return this.scope.identifier;\n }\n }, {\n key: \"get\",\n value: function get(key) {\n var name = this.getAttributeNameForKey(key);\n return this.element.getAttribute(name);\n }\n }, {\n key: \"set\",\n value: function set(key, value) {\n var name = this.getAttributeNameForKey(key);\n this.element.setAttribute(name, value);\n return this.get(key);\n }\n }, {\n key: \"has\",\n value: function has(key) {\n var name = this.getAttributeNameForKey(key);\n return this.element.hasAttribute(name);\n }\n }, {\n key: \"delete\",\n value: function _delete(key) {\n if (this.has(key)) {\n var name = this.getAttributeNameForKey(key);\n this.element.removeAttribute(name);\n return true;\n } else {\n return false;\n }\n }\n }, {\n key: \"getAttributeNameForKey\",\n value: function getAttributeNameForKey(key) {\n return \"data-\".concat(this.identifier, \"-\").concat(dasherize(key));\n }\n }]);\n\n return DataMap;\n}();\n\nvar Guide = /*#__PURE__*/function () {\n function Guide(logger) {\n _classCallCheck(this, Guide);\n\n this.warnedKeysByObject = new WeakMap();\n this.logger = logger;\n }\n\n _createClass(Guide, [{\n key: \"warn\",\n value: function warn(object, key, message) {\n var warnedKeys = this.warnedKeysByObject.get(object);\n\n if (!warnedKeys) {\n warnedKeys = new Set();\n this.warnedKeysByObject.set(object, warnedKeys);\n }\n\n if (!warnedKeys.has(key)) {\n warnedKeys.add(key);\n this.logger.warn(message, object);\n }\n }\n }]);\n\n return Guide;\n}();\n\nfunction attributeValueContainsToken(attributeName, token) {\n return \"[\".concat(attributeName, \"~=\\\"\").concat(token, \"\\\"]\");\n}\n\nvar TargetSet = /*#__PURE__*/function () {\n function TargetSet(scope) {\n _classCallCheck(this, TargetSet);\n\n this.scope = scope;\n }\n\n _createClass(TargetSet, [{\n key: \"element\",\n get: function get() {\n return this.scope.element;\n }\n }, {\n key: \"identifier\",\n get: function get() {\n return this.scope.identifier;\n }\n }, {\n key: \"schema\",\n get: function get() {\n return this.scope.schema;\n }\n }, {\n key: \"has\",\n value: function has(targetName) {\n return this.find(targetName) != null;\n }\n }, {\n key: \"find\",\n value: function find() {\n var _this16 = this;\n\n for (var _len2 = arguments.length, targetNames = new Array(_len2), _key3 = 0; _key3 < _len2; _key3++) {\n targetNames[_key3] = arguments[_key3];\n }\n\n return targetNames.reduce(function (target, targetName) {\n return target || _this16.findTarget(targetName) || _this16.findLegacyTarget(targetName);\n }, undefined);\n }\n }, {\n key: \"findAll\",\n value: function findAll() {\n var _this17 = this;\n\n for (var _len3 = arguments.length, targetNames = new Array(_len3), _key4 = 0; _key4 < _len3; _key4++) {\n targetNames[_key4] = arguments[_key4];\n }\n\n return targetNames.reduce(function (targets, targetName) {\n return [].concat(_toConsumableArray(targets), _toConsumableArray(_this17.findAllTargets(targetName)), _toConsumableArray(_this17.findAllLegacyTargets(targetName)));\n }, []);\n }\n }, {\n key: \"findTarget\",\n value: function findTarget(targetName) {\n var selector = this.getSelectorForTargetName(targetName);\n return this.scope.findElement(selector);\n }\n }, {\n key: \"findAllTargets\",\n value: function findAllTargets(targetName) {\n var selector = this.getSelectorForTargetName(targetName);\n return this.scope.findAllElements(selector);\n }\n }, {\n key: \"getSelectorForTargetName\",\n value: function getSelectorForTargetName(targetName) {\n var attributeName = this.schema.targetAttributeForScope(this.identifier);\n return attributeValueContainsToken(attributeName, targetName);\n }\n }, {\n key: \"findLegacyTarget\",\n value: function findLegacyTarget(targetName) {\n var selector = this.getLegacySelectorForTargetName(targetName);\n return this.deprecate(this.scope.findElement(selector), targetName);\n }\n }, {\n key: \"findAllLegacyTargets\",\n value: function findAllLegacyTargets(targetName) {\n var _this18 = this;\n\n var selector = this.getLegacySelectorForTargetName(targetName);\n return this.scope.findAllElements(selector).map(function (element) {\n return _this18.deprecate(element, targetName);\n });\n }\n }, {\n key: \"getLegacySelectorForTargetName\",\n value: function getLegacySelectorForTargetName(targetName) {\n var targetDescriptor = \"\".concat(this.identifier, \".\").concat(targetName);\n return attributeValueContainsToken(this.schema.targetAttribute, targetDescriptor);\n }\n }, {\n key: \"deprecate\",\n value: function deprecate(element, targetName) {\n if (element) {\n var identifier = this.identifier;\n var attributeName = this.schema.targetAttribute;\n var revisedAttributeName = this.schema.targetAttributeForScope(identifier);\n this.guide.warn(element, \"target:\".concat(targetName), \"Please replace \".concat(attributeName, \"=\\\"\").concat(identifier, \".\").concat(targetName, \"\\\" with \").concat(revisedAttributeName, \"=\\\"\").concat(targetName, \"\\\". \") + \"The \".concat(attributeName, \" attribute is deprecated and will be removed in a future version of Stimulus.\"));\n }\n\n return element;\n }\n }, {\n key: \"guide\",\n get: function get() {\n return this.scope.guide;\n }\n }]);\n\n return TargetSet;\n}();\n\nvar OutletSet = /*#__PURE__*/function () {\n function OutletSet(scope, controllerElement) {\n _classCallCheck(this, OutletSet);\n\n this.scope = scope;\n this.controllerElement = controllerElement;\n }\n\n _createClass(OutletSet, [{\n key: \"element\",\n get: function get() {\n return this.scope.element;\n }\n }, {\n key: \"identifier\",\n get: function get() {\n return this.scope.identifier;\n }\n }, {\n key: \"schema\",\n get: function get() {\n return this.scope.schema;\n }\n }, {\n key: \"has\",\n value: function has(outletName) {\n return this.find(outletName) != null;\n }\n }, {\n key: \"find\",\n value: function find() {\n var _this19 = this;\n\n for (var _len4 = arguments.length, outletNames = new Array(_len4), _key5 = 0; _key5 < _len4; _key5++) {\n outletNames[_key5] = arguments[_key5];\n }\n\n return outletNames.reduce(function (outlet, outletName) {\n return outlet || _this19.findOutlet(outletName);\n }, undefined);\n }\n }, {\n key: \"findAll\",\n value: function findAll() {\n var _this20 = this;\n\n for (var _len5 = arguments.length, outletNames = new Array(_len5), _key6 = 0; _key6 < _len5; _key6++) {\n outletNames[_key6] = arguments[_key6];\n }\n\n return outletNames.reduce(function (outlets, outletName) {\n return [].concat(_toConsumableArray(outlets), _toConsumableArray(_this20.findAllOutlets(outletName)));\n }, []);\n }\n }, {\n key: \"getSelectorForOutletName\",\n value: function getSelectorForOutletName(outletName) {\n var attributeName = this.schema.outletAttributeForScope(this.identifier, outletName);\n return this.controllerElement.getAttribute(attributeName);\n }\n }, {\n key: \"findOutlet\",\n value: function findOutlet(outletName) {\n var selector = this.getSelectorForOutletName(outletName);\n if (selector) return this.findElement(selector, outletName);\n }\n }, {\n key: \"findAllOutlets\",\n value: function findAllOutlets(outletName) {\n var selector = this.getSelectorForOutletName(outletName);\n return selector ? this.findAllElements(selector, outletName) : [];\n }\n }, {\n key: \"findElement\",\n value: function findElement(selector, outletName) {\n var _this21 = this;\n\n var elements = this.scope.queryElements(selector);\n return elements.filter(function (element) {\n return _this21.matchesElement(element, selector, outletName);\n })[0];\n }\n }, {\n key: \"findAllElements\",\n value: function findAllElements(selector, outletName) {\n var _this22 = this;\n\n var elements = this.scope.queryElements(selector);\n return elements.filter(function (element) {\n return _this22.matchesElement(element, selector, outletName);\n });\n }\n }, {\n key: \"matchesElement\",\n value: function matchesElement(element, selector, outletName) {\n var controllerAttribute = element.getAttribute(this.scope.schema.controllerAttribute) || \"\";\n return element.matches(selector) && controllerAttribute.split(\" \").includes(outletName);\n }\n }]);\n\n return OutletSet;\n}();\n\nvar Scope = /*#__PURE__*/function () {\n function Scope(schema, element, identifier, logger) {\n var _this23 = this;\n\n _classCallCheck(this, Scope);\n\n this.targets = new TargetSet(this);\n this.classes = new ClassMap(this);\n this.data = new DataMap(this);\n\n this.containsElement = function (element) {\n return element.closest(_this23.controllerSelector) === _this23.element;\n };\n\n this.schema = schema;\n this.element = element;\n this.identifier = identifier;\n this.guide = new Guide(logger);\n this.outlets = new OutletSet(this.documentScope, element);\n }\n\n _createClass(Scope, [{\n key: \"findElement\",\n value: function findElement(selector) {\n return this.element.matches(selector) ? this.element : this.queryElements(selector).find(this.containsElement);\n }\n }, {\n key: \"findAllElements\",\n value: function findAllElements(selector) {\n return [].concat(_toConsumableArray(this.element.matches(selector) ? [this.element] : []), _toConsumableArray(this.queryElements(selector).filter(this.containsElement)));\n }\n }, {\n key: \"queryElements\",\n value: function queryElements(selector) {\n return Array.from(this.element.querySelectorAll(selector));\n }\n }, {\n key: \"controllerSelector\",\n get: function get() {\n return attributeValueContainsToken(this.schema.controllerAttribute, this.identifier);\n }\n }, {\n key: \"isDocumentScope\",\n get: function get() {\n return this.element === document.documentElement;\n }\n }, {\n key: \"documentScope\",\n get: function get() {\n return this.isDocumentScope ? this : new Scope(this.schema, document.documentElement, this.identifier, this.guide.logger);\n }\n }]);\n\n return Scope;\n}();\n\nvar ScopeObserver = /*#__PURE__*/function () {\n function ScopeObserver(element, schema, delegate) {\n _classCallCheck(this, ScopeObserver);\n\n this.element = element;\n this.schema = schema;\n this.delegate = delegate;\n this.valueListObserver = new ValueListObserver(this.element, this.controllerAttribute, this);\n this.scopesByIdentifierByElement = new WeakMap();\n this.scopeReferenceCounts = new WeakMap();\n }\n\n _createClass(ScopeObserver, [{\n key: \"start\",\n value: function start() {\n this.valueListObserver.start();\n }\n }, {\n key: \"stop\",\n value: function stop() {\n this.valueListObserver.stop();\n }\n }, {\n key: \"controllerAttribute\",\n get: function get() {\n return this.schema.controllerAttribute;\n }\n }, {\n key: \"parseValueForToken\",\n value: function parseValueForToken(token) {\n var element = token.element,\n identifier = token.content;\n return this.parseValueForElementAndIdentifier(element, identifier);\n }\n }, {\n key: \"parseValueForElementAndIdentifier\",\n value: function parseValueForElementAndIdentifier(element, identifier) {\n var scopesByIdentifier = this.fetchScopesByIdentifierForElement(element);\n var scope = scopesByIdentifier.get(identifier);\n\n if (!scope) {\n scope = this.delegate.createScopeForElementAndIdentifier(element, identifier);\n scopesByIdentifier.set(identifier, scope);\n }\n\n return scope;\n }\n }, {\n key: \"elementMatchedValue\",\n value: function elementMatchedValue(element, value) {\n var referenceCount = (this.scopeReferenceCounts.get(value) || 0) + 1;\n this.scopeReferenceCounts.set(value, referenceCount);\n\n if (referenceCount == 1) {\n this.delegate.scopeConnected(value);\n }\n }\n }, {\n key: \"elementUnmatchedValue\",\n value: function elementUnmatchedValue(element, value) {\n var referenceCount = this.scopeReferenceCounts.get(value);\n\n if (referenceCount) {\n this.scopeReferenceCounts.set(value, referenceCount - 1);\n\n if (referenceCount == 1) {\n this.delegate.scopeDisconnected(value);\n }\n }\n }\n }, {\n key: \"fetchScopesByIdentifierForElement\",\n value: function fetchScopesByIdentifierForElement(element) {\n var scopesByIdentifier = this.scopesByIdentifierByElement.get(element);\n\n if (!scopesByIdentifier) {\n scopesByIdentifier = new Map();\n this.scopesByIdentifierByElement.set(element, scopesByIdentifier);\n }\n\n return scopesByIdentifier;\n }\n }]);\n\n return ScopeObserver;\n}();\n\nvar Router = /*#__PURE__*/function () {\n function Router(application) {\n _classCallCheck(this, Router);\n\n this.application = application;\n this.scopeObserver = new ScopeObserver(this.element, this.schema, this);\n this.scopesByIdentifier = new Multimap();\n this.modulesByIdentifier = new Map();\n }\n\n _createClass(Router, [{\n key: \"element\",\n get: function get() {\n return this.application.element;\n }\n }, {\n key: \"schema\",\n get: function get() {\n return this.application.schema;\n }\n }, {\n key: \"logger\",\n get: function get() {\n return this.application.logger;\n }\n }, {\n key: \"controllerAttribute\",\n get: function get() {\n return this.schema.controllerAttribute;\n }\n }, {\n key: \"modules\",\n get: function get() {\n return Array.from(this.modulesByIdentifier.values());\n }\n }, {\n key: \"contexts\",\n get: function get() {\n return this.modules.reduce(function (contexts, module) {\n return contexts.concat(module.contexts);\n }, []);\n }\n }, {\n key: \"start\",\n value: function start() {\n this.scopeObserver.start();\n }\n }, {\n key: \"stop\",\n value: function stop() {\n this.scopeObserver.stop();\n }\n }, {\n key: \"loadDefinition\",\n value: function loadDefinition(definition) {\n this.unloadIdentifier(definition.identifier);\n var module = new Module(this.application, definition);\n this.connectModule(module);\n var afterLoad = definition.controllerConstructor.afterLoad;\n\n if (afterLoad) {\n afterLoad.call(definition.controllerConstructor, definition.identifier, this.application);\n }\n }\n }, {\n key: \"unloadIdentifier\",\n value: function unloadIdentifier(identifier) {\n var module = this.modulesByIdentifier.get(identifier);\n\n if (module) {\n this.disconnectModule(module);\n }\n }\n }, {\n key: \"getContextForElementAndIdentifier\",\n value: function getContextForElementAndIdentifier(element, identifier) {\n var module = this.modulesByIdentifier.get(identifier);\n\n if (module) {\n return module.contexts.find(function (context) {\n return context.element == element;\n });\n }\n }\n }, {\n key: \"proposeToConnectScopeForElementAndIdentifier\",\n value: function proposeToConnectScopeForElementAndIdentifier(element, identifier) {\n var scope = this.scopeObserver.parseValueForElementAndIdentifier(element, identifier);\n\n if (scope) {\n this.scopeObserver.elementMatchedValue(scope.element, scope);\n } else {\n console.error(\"Couldn't find or create scope for identifier: \\\"\".concat(identifier, \"\\\" and element:\"), element);\n }\n }\n }, {\n key: \"handleError\",\n value: function handleError(error, message, detail) {\n this.application.handleError(error, message, detail);\n }\n }, {\n key: \"createScopeForElementAndIdentifier\",\n value: function createScopeForElementAndIdentifier(element, identifier) {\n return new Scope(this.schema, element, identifier, this.logger);\n }\n }, {\n key: \"scopeConnected\",\n value: function scopeConnected(scope) {\n this.scopesByIdentifier.add(scope.identifier, scope);\n var module = this.modulesByIdentifier.get(scope.identifier);\n\n if (module) {\n module.connectContextForScope(scope);\n }\n }\n }, {\n key: \"scopeDisconnected\",\n value: function scopeDisconnected(scope) {\n this.scopesByIdentifier.delete(scope.identifier, scope);\n var module = this.modulesByIdentifier.get(scope.identifier);\n\n if (module) {\n module.disconnectContextForScope(scope);\n }\n }\n }, {\n key: \"connectModule\",\n value: function connectModule(module) {\n this.modulesByIdentifier.set(module.identifier, module);\n var scopes = this.scopesByIdentifier.getValuesForKey(module.identifier);\n scopes.forEach(function (scope) {\n return module.connectContextForScope(scope);\n });\n }\n }, {\n key: \"disconnectModule\",\n value: function disconnectModule(module) {\n this.modulesByIdentifier.delete(module.identifier);\n var scopes = this.scopesByIdentifier.getValuesForKey(module.identifier);\n scopes.forEach(function (scope) {\n return module.disconnectContextForScope(scope);\n });\n }\n }]);\n\n return Router;\n}();\n\nvar defaultSchema = {\n controllerAttribute: \"data-controller\",\n actionAttribute: \"data-action\",\n targetAttribute: \"data-target\",\n targetAttributeForScope: function targetAttributeForScope(identifier) {\n return \"data-\".concat(identifier, \"-target\");\n },\n outletAttributeForScope: function outletAttributeForScope(identifier, outlet) {\n return \"data-\".concat(identifier, \"-\").concat(outlet, \"-outlet\");\n },\n keyMappings: Object.assign(Object.assign({\n enter: \"Enter\",\n tab: \"Tab\",\n esc: \"Escape\",\n space: \" \",\n up: \"ArrowUp\",\n down: \"ArrowDown\",\n left: \"ArrowLeft\",\n right: \"ArrowRight\",\n home: \"Home\",\n end: \"End\",\n page_up: \"PageUp\",\n page_down: \"PageDown\"\n }, objectFromEntries(\"abcdefghijklmnopqrstuvwxyz\".split(\"\").map(function (c) {\n return [c, c];\n }))), objectFromEntries(\"0123456789\".split(\"\").map(function (n) {\n return [n, n];\n })))\n};\n\nfunction objectFromEntries(array) {\n return array.reduce(function (memo, _ref22) {\n var _ref23 = _slicedToArray(_ref22, 2),\n k = _ref23[0],\n v = _ref23[1];\n\n return Object.assign(Object.assign({}, memo), _defineProperty({}, k, v));\n }, {});\n}\n\nvar Application = /*#__PURE__*/function () {\n function Application() {\n var _this24 = this;\n\n var element = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : document.documentElement;\n var schema = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : defaultSchema;\n\n _classCallCheck(this, Application);\n\n this.logger = console;\n this.debug = false;\n\n this.logDebugActivity = function (identifier, functionName) {\n var detail = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n\n if (_this24.debug) {\n _this24.logFormattedMessage(identifier, functionName, detail);\n }\n };\n\n this.element = element;\n this.schema = schema;\n this.dispatcher = new Dispatcher(this);\n this.router = new Router(this);\n this.actionDescriptorFilters = Object.assign({}, defaultActionDescriptorFilters);\n }\n\n _createClass(Application, [{\n key: \"start\",\n value: function () {\n var _start = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.next = 2;\n return domReady();\n\n case 2:\n this.logDebugActivity(\"application\", \"starting\");\n this.dispatcher.start();\n this.router.start();\n this.logDebugActivity(\"application\", \"start\");\n\n case 6:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function start() {\n return _start.apply(this, arguments);\n }\n\n return start;\n }()\n }, {\n key: \"stop\",\n value: function stop() {\n this.logDebugActivity(\"application\", \"stopping\");\n this.dispatcher.stop();\n this.router.stop();\n this.logDebugActivity(\"application\", \"stop\");\n }\n }, {\n key: \"register\",\n value: function register(identifier, controllerConstructor) {\n this.load({\n identifier: identifier,\n controllerConstructor: controllerConstructor\n });\n }\n }, {\n key: \"registerActionOption\",\n value: function registerActionOption(name, filter) {\n this.actionDescriptorFilters[name] = filter;\n }\n }, {\n key: \"load\",\n value: function load(head) {\n var _this25 = this;\n\n for (var _len6 = arguments.length, rest = new Array(_len6 > 1 ? _len6 - 1 : 0), _key7 = 1; _key7 < _len6; _key7++) {\n rest[_key7 - 1] = arguments[_key7];\n }\n\n var definitions = Array.isArray(head) ? head : [head].concat(rest);\n definitions.forEach(function (definition) {\n if (definition.controllerConstructor.shouldLoad) {\n _this25.router.loadDefinition(definition);\n }\n });\n }\n }, {\n key: \"unload\",\n value: function unload(head) {\n var _this26 = this;\n\n for (var _len7 = arguments.length, rest = new Array(_len7 > 1 ? _len7 - 1 : 0), _key8 = 1; _key8 < _len7; _key8++) {\n rest[_key8 - 1] = arguments[_key8];\n }\n\n var identifiers = Array.isArray(head) ? head : [head].concat(rest);\n identifiers.forEach(function (identifier) {\n return _this26.router.unloadIdentifier(identifier);\n });\n }\n }, {\n key: \"controllers\",\n get: function get() {\n return this.router.contexts.map(function (context) {\n return context.controller;\n });\n }\n }, {\n key: \"getControllerForElementAndIdentifier\",\n value: function getControllerForElementAndIdentifier(element, identifier) {\n var context = this.router.getContextForElementAndIdentifier(element, identifier);\n return context ? context.controller : null;\n }\n }, {\n key: \"handleError\",\n value: function handleError(error, message, detail) {\n var _a;\n\n this.logger.error(\"%s\\n\\n%o\\n\\n%o\", message, error, detail);\n (_a = window.onerror) === null || _a === void 0 ? void 0 : _a.call(window, message, \"\", 0, 0, error);\n }\n }, {\n key: \"logFormattedMessage\",\n value: function logFormattedMessage(identifier, functionName) {\n var detail = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n detail = Object.assign({\n application: this\n }, detail);\n this.logger.groupCollapsed(\"\".concat(identifier, \" #\").concat(functionName));\n this.logger.log(\"details:\", Object.assign({}, detail));\n this.logger.groupEnd();\n }\n }], [{\n key: \"start\",\n value: function start(element, schema) {\n var application = new this(element, schema);\n application.start();\n return application;\n }\n }]);\n\n return Application;\n}();\n\nfunction domReady() {\n return new Promise(function (resolve) {\n if (document.readyState == \"loading\") {\n document.addEventListener(\"DOMContentLoaded\", function () {\n return resolve();\n });\n } else {\n resolve();\n }\n });\n}\n\nfunction ClassPropertiesBlessing(constructor) {\n var classes = readInheritableStaticArrayValues(constructor, \"classes\");\n return classes.reduce(function (properties, classDefinition) {\n return Object.assign(properties, propertiesForClassDefinition(classDefinition));\n }, {});\n}\n\nfunction propertiesForClassDefinition(key) {\n var _ref24;\n\n return _ref24 = {}, _defineProperty(_ref24, \"\".concat(key, \"Class\"), {\n get: function get() {\n var classes = this.classes;\n\n if (classes.has(key)) {\n return classes.get(key);\n } else {\n var attribute = classes.getAttributeName(key);\n throw new Error(\"Missing attribute \\\"\".concat(attribute, \"\\\"\"));\n }\n }\n }), _defineProperty(_ref24, \"\".concat(key, \"Classes\"), {\n get: function get() {\n return this.classes.getAll(key);\n }\n }), _defineProperty(_ref24, \"has\".concat(capitalize(key), \"Class\"), {\n get: function get() {\n return this.classes.has(key);\n }\n }), _ref24;\n}\n\nfunction OutletPropertiesBlessing(constructor) {\n var outlets = readInheritableStaticArrayValues(constructor, \"outlets\");\n return outlets.reduce(function (properties, outletDefinition) {\n return Object.assign(properties, propertiesForOutletDefinition(outletDefinition));\n }, {});\n}\n\nfunction getOutletController(controller, element, identifier) {\n return controller.application.getControllerForElementAndIdentifier(element, identifier);\n}\n\nfunction getControllerAndEnsureConnectedScope(controller, element, outletName) {\n var outletController = getOutletController(controller, element, outletName);\n if (outletController) return outletController;\n controller.application.router.proposeToConnectScopeForElementAndIdentifier(element, outletName);\n outletController = getOutletController(controller, element, outletName);\n if (outletController) return outletController;\n}\n\nfunction propertiesForOutletDefinition(name) {\n var _ref25;\n\n var camelizedName = namespaceCamelize(name);\n return _ref25 = {}, _defineProperty(_ref25, \"\".concat(camelizedName, \"Outlet\"), {\n get: function get() {\n var outletElement = this.outlets.find(name);\n var selector = this.outlets.getSelectorForOutletName(name);\n\n if (outletElement) {\n var outletController = getControllerAndEnsureConnectedScope(this, outletElement, name);\n if (outletController) return outletController;\n throw new Error(\"The provided outlet element is missing an outlet controller \\\"\".concat(name, \"\\\" instance for host controller \\\"\").concat(this.identifier, \"\\\"\"));\n }\n\n throw new Error(\"Missing outlet element \\\"\".concat(name, \"\\\" for host controller \\\"\").concat(this.identifier, \"\\\". Stimulus couldn't find a matching outlet element using selector \\\"\").concat(selector, \"\\\".\"));\n }\n }), _defineProperty(_ref25, \"\".concat(camelizedName, \"Outlets\"), {\n get: function get() {\n var _this27 = this;\n\n var outlets = this.outlets.findAll(name);\n\n if (outlets.length > 0) {\n return outlets.map(function (outletElement) {\n var outletController = getControllerAndEnsureConnectedScope(_this27, outletElement, name);\n if (outletController) return outletController;\n console.warn(\"The provided outlet element is missing an outlet controller \\\"\".concat(name, \"\\\" instance for host controller \\\"\").concat(_this27.identifier, \"\\\"\"), outletElement);\n }).filter(function (controller) {\n return controller;\n });\n }\n\n return [];\n }\n }), _defineProperty(_ref25, \"\".concat(camelizedName, \"OutletElement\"), {\n get: function get() {\n var outletElement = this.outlets.find(name);\n var selector = this.outlets.getSelectorForOutletName(name);\n\n if (outletElement) {\n return outletElement;\n } else {\n throw new Error(\"Missing outlet element \\\"\".concat(name, \"\\\" for host controller \\\"\").concat(this.identifier, \"\\\". Stimulus couldn't find a matching outlet element using selector \\\"\").concat(selector, \"\\\".\"));\n }\n }\n }), _defineProperty(_ref25, \"\".concat(camelizedName, \"OutletElements\"), {\n get: function get() {\n return this.outlets.findAll(name);\n }\n }), _defineProperty(_ref25, \"has\".concat(capitalize(camelizedName), \"Outlet\"), {\n get: function get() {\n return this.outlets.has(name);\n }\n }), _ref25;\n}\n\nfunction TargetPropertiesBlessing(constructor) {\n var targets = readInheritableStaticArrayValues(constructor, \"targets\");\n return targets.reduce(function (properties, targetDefinition) {\n return Object.assign(properties, propertiesForTargetDefinition(targetDefinition));\n }, {});\n}\n\nfunction propertiesForTargetDefinition(name) {\n var _ref26;\n\n return _ref26 = {}, _defineProperty(_ref26, \"\".concat(name, \"Target\"), {\n get: function get() {\n var target = this.targets.find(name);\n\n if (target) {\n return target;\n } else {\n throw new Error(\"Missing target element \\\"\".concat(name, \"\\\" for \\\"\").concat(this.identifier, \"\\\" controller\"));\n }\n }\n }), _defineProperty(_ref26, \"\".concat(name, \"Targets\"), {\n get: function get() {\n return this.targets.findAll(name);\n }\n }), _defineProperty(_ref26, \"has\".concat(capitalize(name), \"Target\"), {\n get: function get() {\n return this.targets.has(name);\n }\n }), _ref26;\n}\n\nfunction ValuePropertiesBlessing(constructor) {\n var valueDefinitionPairs = readInheritableStaticObjectPairs(constructor, \"values\");\n var propertyDescriptorMap = {\n valueDescriptorMap: {\n get: function get() {\n var _this28 = this;\n\n return valueDefinitionPairs.reduce(function (result, valueDefinitionPair) {\n var valueDescriptor = parseValueDefinitionPair(valueDefinitionPair, _this28.identifier);\n\n var attributeName = _this28.data.getAttributeNameForKey(valueDescriptor.key);\n\n return Object.assign(result, _defineProperty({}, attributeName, valueDescriptor));\n }, {});\n }\n }\n };\n return valueDefinitionPairs.reduce(function (properties, valueDefinitionPair) {\n return Object.assign(properties, propertiesForValueDefinitionPair(valueDefinitionPair));\n }, propertyDescriptorMap);\n}\n\nfunction propertiesForValueDefinitionPair(valueDefinitionPair, controller) {\n var _ref27;\n\n var definition = parseValueDefinitionPair(valueDefinitionPair, controller);\n var key = definition.key,\n name = definition.name,\n read = definition.reader,\n write = definition.writer;\n return _ref27 = {}, _defineProperty(_ref27, name, {\n get: function get() {\n var value = this.data.get(key);\n\n if (value !== null) {\n return read(value);\n } else {\n return definition.defaultValue;\n }\n },\n set: function set(value) {\n if (value === undefined) {\n this.data.delete(key);\n } else {\n this.data.set(key, write(value));\n }\n }\n }), _defineProperty(_ref27, \"has\".concat(capitalize(name)), {\n get: function get() {\n return this.data.has(key) || definition.hasCustomDefaultValue;\n }\n }), _ref27;\n}\n\nfunction parseValueDefinitionPair(_ref28, controller) {\n var _ref29 = _slicedToArray(_ref28, 2),\n token = _ref29[0],\n typeDefinition = _ref29[1];\n\n return valueDescriptorForTokenAndTypeDefinition({\n controller: controller,\n token: token,\n typeDefinition: typeDefinition\n });\n}\n\nfunction parseValueTypeConstant(constant) {\n switch (constant) {\n case Array:\n return \"array\";\n\n case Boolean:\n return \"boolean\";\n\n case Number:\n return \"number\";\n\n case Object:\n return \"object\";\n\n case String:\n return \"string\";\n }\n}\n\nfunction parseValueTypeDefault(defaultValue) {\n switch (_typeof(defaultValue)) {\n case \"boolean\":\n return \"boolean\";\n\n case \"number\":\n return \"number\";\n\n case \"string\":\n return \"string\";\n }\n\n if (Array.isArray(defaultValue)) return \"array\";\n if (Object.prototype.toString.call(defaultValue) === \"[object Object]\") return \"object\";\n}\n\nfunction parseValueTypeObject(payload) {\n var controller = payload.controller,\n token = payload.token,\n typeObject = payload.typeObject;\n var hasType = isSomething(typeObject.type);\n var hasDefault = isSomething(typeObject.default);\n var fullObject = hasType && hasDefault;\n var onlyType = hasType && !hasDefault;\n var onlyDefault = !hasType && hasDefault;\n var typeFromObject = parseValueTypeConstant(typeObject.type);\n var typeFromDefaultValue = parseValueTypeDefault(payload.typeObject.default);\n if (onlyType) return typeFromObject;\n if (onlyDefault) return typeFromDefaultValue;\n\n if (typeFromObject !== typeFromDefaultValue) {\n var propertyPath = controller ? \"\".concat(controller, \".\").concat(token) : token;\n throw new Error(\"The specified default value for the Stimulus Value \\\"\".concat(propertyPath, \"\\\" must match the defined type \\\"\").concat(typeFromObject, \"\\\". The provided default value of \\\"\").concat(typeObject.default, \"\\\" is of type \\\"\").concat(typeFromDefaultValue, \"\\\".\"));\n }\n\n if (fullObject) return typeFromObject;\n}\n\nfunction parseValueTypeDefinition(payload) {\n var controller = payload.controller,\n token = payload.token,\n typeDefinition = payload.typeDefinition;\n var typeObject = {\n controller: controller,\n token: token,\n typeObject: typeDefinition\n };\n var typeFromObject = parseValueTypeObject(typeObject);\n var typeFromDefaultValue = parseValueTypeDefault(typeDefinition);\n var typeFromConstant = parseValueTypeConstant(typeDefinition);\n var type = typeFromObject || typeFromDefaultValue || typeFromConstant;\n if (type) return type;\n var propertyPath = controller ? \"\".concat(controller, \".\").concat(typeDefinition) : token;\n throw new Error(\"Unknown value type \\\"\".concat(propertyPath, \"\\\" for \\\"\").concat(token, \"\\\" value\"));\n}\n\nfunction defaultValueForDefinition(typeDefinition) {\n var constant = parseValueTypeConstant(typeDefinition);\n if (constant) return defaultValuesByType[constant];\n var hasDefault = hasProperty(typeDefinition, \"default\");\n var hasType = hasProperty(typeDefinition, \"type\");\n var typeObject = typeDefinition;\n if (hasDefault) return typeObject.default;\n\n if (hasType) {\n var type = typeObject.type;\n var constantFromType = parseValueTypeConstant(type);\n if (constantFromType) return defaultValuesByType[constantFromType];\n }\n\n return typeDefinition;\n}\n\nfunction valueDescriptorForTokenAndTypeDefinition(payload) {\n var token = payload.token,\n typeDefinition = payload.typeDefinition;\n var key = \"\".concat(dasherize(token), \"-value\");\n var type = parseValueTypeDefinition(payload);\n return {\n type: type,\n key: key,\n name: camelize(key),\n\n get defaultValue() {\n return defaultValueForDefinition(typeDefinition);\n },\n\n get hasCustomDefaultValue() {\n return parseValueTypeDefault(typeDefinition) !== undefined;\n },\n\n reader: readers[type],\n writer: writers[type] || writers.default\n };\n}\n\nvar defaultValuesByType = {\n get array() {\n return [];\n },\n\n boolean: false,\n number: 0,\n\n get object() {\n return {};\n },\n\n string: \"\"\n};\nvar readers = {\n array: function array(value) {\n var array = JSON.parse(value);\n\n if (!Array.isArray(array)) {\n throw new TypeError(\"expected value of type \\\"array\\\" but instead got value \\\"\".concat(value, \"\\\" of type \\\"\").concat(parseValueTypeDefault(array), \"\\\"\"));\n }\n\n return array;\n },\n boolean: function boolean(value) {\n return !(value == \"0\" || String(value).toLowerCase() == \"false\");\n },\n number: function number(value) {\n return Number(value.replace(/_/g, \"\"));\n },\n object: function object(value) {\n var object = JSON.parse(value);\n\n if (object === null || _typeof(object) != \"object\" || Array.isArray(object)) {\n throw new TypeError(\"expected value of type \\\"object\\\" but instead got value \\\"\".concat(value, \"\\\" of type \\\"\").concat(parseValueTypeDefault(object), \"\\\"\"));\n }\n\n return object;\n },\n string: function string(value) {\n return value;\n }\n};\nvar writers = {\n default: writeString,\n array: writeJSON,\n object: writeJSON\n};\n\nfunction writeJSON(value) {\n return JSON.stringify(value);\n}\n\nfunction writeString(value) {\n return \"\".concat(value);\n}\n\nvar Controller = /*#__PURE__*/function () {\n function Controller(context) {\n _classCallCheck(this, Controller);\n\n this.context = context;\n }\n\n _createClass(Controller, [{\n key: \"application\",\n get: function get() {\n return this.context.application;\n }\n }, {\n key: \"scope\",\n get: function get() {\n return this.context.scope;\n }\n }, {\n key: \"element\",\n get: function get() {\n return this.scope.element;\n }\n }, {\n key: \"identifier\",\n get: function get() {\n return this.scope.identifier;\n }\n }, {\n key: \"targets\",\n get: function get() {\n return this.scope.targets;\n }\n }, {\n key: \"outlets\",\n get: function get() {\n return this.scope.outlets;\n }\n }, {\n key: \"classes\",\n get: function get() {\n return this.scope.classes;\n }\n }, {\n key: \"data\",\n get: function get() {\n return this.scope.data;\n }\n }, {\n key: \"initialize\",\n value: function initialize() {}\n }, {\n key: \"connect\",\n value: function connect() {}\n }, {\n key: \"disconnect\",\n value: function disconnect() {}\n }, {\n key: \"dispatch\",\n value: function dispatch(eventName) {\n var _ref30 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},\n _ref30$target = _ref30.target,\n target = _ref30$target === void 0 ? this.element : _ref30$target,\n _ref30$detail = _ref30.detail,\n detail = _ref30$detail === void 0 ? {} : _ref30$detail,\n _ref30$prefix = _ref30.prefix,\n prefix = _ref30$prefix === void 0 ? this.identifier : _ref30$prefix,\n _ref30$bubbles = _ref30.bubbles,\n bubbles = _ref30$bubbles === void 0 ? true : _ref30$bubbles,\n _ref30$cancelable = _ref30.cancelable,\n cancelable = _ref30$cancelable === void 0 ? true : _ref30$cancelable;\n\n var type = prefix ? \"\".concat(prefix, \":\").concat(eventName) : eventName;\n var event = new CustomEvent(type, {\n detail: detail,\n bubbles: bubbles,\n cancelable: cancelable\n });\n target.dispatchEvent(event);\n return event;\n }\n }], [{\n key: \"shouldLoad\",\n get: function get() {\n return true;\n }\n }, {\n key: \"afterLoad\",\n value: function afterLoad(_identifier, _application) {\n return;\n }\n }]);\n\n return Controller;\n}();\n\nController.blessings = [ClassPropertiesBlessing, TargetPropertiesBlessing, ValuePropertiesBlessing, OutletPropertiesBlessing];\nController.targets = [];\nController.outlets = [];\nController.values = {};\nexport { Application, AttributeObserver, Context, Controller, ElementObserver, IndexedMultimap, Multimap, SelectorObserver, StringMapObserver, TokenListObserver, ValueListObserver, _add as add, defaultSchema, del, fetch, prune };","import { Controller } from \"@hotwired/stimulus\";\n\nexport default class extends Controller {\n static targets = [\"availability\", \"eventItem\"];\n\n connect() {\n this.highlightClasses = \"ring-1 ring-tourrise-blue\".split(\" \");\n }\n\n highlightAvailability(event) {\n const { availabilityId } = event.target.closest(\"a\").dataset;\n\n this.availabilityTargets\n .filter((availability) => availability.dataset.id === availabilityId)[0]\n .classList.add(...this.highlightClasses);\n\n event.preventDefault();\n }\n\n highlightEvents(event) {\n const { id } = event.target.closest(\"div\").dataset;\n\n if (id !== undefined) {\n this.eventItemTargets.forEach((eventItem) => {\n if (eventItem.dataset.availabilityId === id) {\n eventItem.classList.add(...this.highlightClasses);\n }\n });\n }\n\n event.preventDefault();\n }\n\n dropHighlight(event) {\n const { availabilityId } = event.target.closest(\"a\").dataset;\n\n this.availabilityTargets\n .filter((availability) => availability.dataset.id === availabilityId)[0]\n .classList.remove(...this.highlightClasses);\n\n event.preventDefault();\n }\n\n dropEventItem(event) {\n const { id } = event.target.closest(\"div\").dataset;\n\n if (id !== undefined) {\n this.eventItemTargets.forEach((eventItem) => {\n if (eventItem.dataset.availabilityId === id) {\n eventItem.classList.remove(...this.highlightClasses);\n }\n });\n }\n\n event.preventDefault();\n }\n}\n","import Rails from \"@rails/ujs\";\n\nimport currentLocale from \"shared/currentLocale\";\n\nexport default ({ resourceId, startsOn, endsOn, quantity, success, error }) => {\n const params = `resource_id=${resourceId}&starts_on=${startsOn}&ends_on=${endsOn}&quantity=${quantity}`;\n\n Rails.ajax({\n type: \"GET\",\n dataType: \"json\",\n url: `/${currentLocale()}/frontoffice/api/resource_skus/available?${params}`,\n success,\n error,\n });\n};\n","import Rails from \"@rails/ujs\";\n\nimport currentLocale from \"shared/currentLocale\";\n\nexport default ({\n id,\n startsOn,\n endsOn,\n quantity,\n entireDateRange,\n success,\n error,\n}) => {\n const flag = !!entireDateRange;\n const params = `starts_on=${startsOn}&ends_on=${endsOn}&entire_date_range=${flag}&quantity=${quantity}`;\n\n Rails.ajax({\n type: \"GET\",\n dataType: \"json\",\n url: `/${currentLocale()}/frontoffice/api/resource_skus/${id}/quantity_available?${params}`,\n success,\n error,\n });\n};\n","import Rails from \"@rails/ujs\";\n\nimport currentLocale from \"shared/currentLocale\";\n\nexport default ({ id, startsOn, endsOn, quantity, success, error }) => {\n const params = `starts_on=${startsOn}&ends_on=${endsOn}&quantity=${quantity}`;\n\n Rails.ajax({\n type: \"GET\",\n dataType: \"json\",\n url: `/${currentLocale()}/frontoffice/api/resource_skus/${id}/calculate_price?${params}`,\n success,\n error,\n });\n};\n","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nfunction _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }\n\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _iterableToArray(iter) { if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter); }\n\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nimport _regeneratorRuntime from \"@babel/runtime/regenerator\";\n\nfunction asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }\n\nfunction _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err); } _next(undefined); }); }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nimport { Controller } from \"@hotwired/stimulus\";\nvar optionSelector = \"[role='option']:not([aria-disabled])\";\nvar activeSelector = \"[aria-selected='true']\";\n\nvar Autocomplete = /*#__PURE__*/function (_Controller) {\n _inherits(Autocomplete, _Controller);\n\n var _super = _createSuper(Autocomplete);\n\n function Autocomplete() {\n var _this;\n\n _classCallCheck(this, Autocomplete);\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n _this = _super.call.apply(_super, [this].concat(args));\n\n _this.onKeydown = function (event) {\n var handler = _this[\"on\".concat(event.key, \"Keydown\")];\n\n if (handler) handler(event);\n };\n\n _this.onEscapeKeydown = function (event) {\n if (_this.isHidden) return;\n\n _this.hideAndRemoveOptions();\n\n event.stopPropagation();\n event.preventDefault();\n };\n\n _this.onArrowDownKeydown = function (event) {\n var item = _this.sibling(true);\n\n if (item) _this.select(item);\n event.preventDefault();\n };\n\n _this.onArrowUpKeydown = function (event) {\n var item = _this.sibling(false);\n\n if (item) _this.select(item);\n event.preventDefault();\n };\n\n _this.onTabKeydown = function (event) {\n var selected = _this.selectedOption;\n if (selected) _this.commit(selected);\n };\n\n _this.onEnterKeydown = function (event) {\n var selected = _this.selectedOption;\n\n if (selected && !_this.isHidden) {\n _this.commit(selected);\n\n if (!_this.hasSubmitOnEnterValue) {\n event.preventDefault();\n }\n }\n };\n\n _this.onInputBlur = function () {\n if (_this.mouseDown) return;\n\n _this.close();\n };\n\n _this.onResultsClick = function (event) {\n if (!(event.target instanceof Element)) return;\n var selected = event.target.closest(optionSelector);\n if (selected) _this.commit(selected);\n };\n\n _this.onResultsMouseDown = function () {\n _this.mouseDown = true;\n\n _this.resultsTarget.addEventListener(\"mouseup\", function () {\n _this.mouseDown = false;\n }, {\n once: true\n });\n };\n\n _this.onInputChange = debounce(function () {\n _this.element.removeAttribute(\"value\");\n\n if (_this.hasHiddenTarget) _this.hiddenTarget.value = \"\";\n\n _this.fetchResults();\n }, 300);\n _this.fetchResults = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var url, html;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n if (_this.hasUrlValue) {\n _context.next = 2;\n break;\n }\n\n return _context.abrupt(\"return\");\n\n case 2:\n url = _this.buildQueryURL();\n\n if (url) {\n _context.next = 5;\n break;\n }\n\n return _context.abrupt(\"return\");\n\n case 5:\n _context.prev = 5;\n\n _this.element.dispatchEvent(new CustomEvent(\"loadstart\"));\n\n _context.next = 9;\n return _this.doFetch(url);\n\n case 9:\n html = _context.sent;\n\n _this.replaceResults(html);\n\n _this.element.dispatchEvent(new CustomEvent(\"load\"));\n\n _this.element.dispatchEvent(new CustomEvent(\"loadend\"));\n\n _context.next = 20;\n break;\n\n case 15:\n _context.prev = 15;\n _context.t0 = _context[\"catch\"](5);\n\n _this.element.dispatchEvent(new CustomEvent(\"error\"));\n\n _this.element.dispatchEvent(new CustomEvent(\"loadend\"));\n\n throw _context.t0;\n\n case 20:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, null, [[5, 15]]);\n }));\n\n _this.doFetch = /*#__PURE__*/function () {\n var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(url) {\n var response, html;\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n _context2.next = 2;\n return fetch(url, _this.headersForFetch());\n\n case 2:\n response = _context2.sent;\n _context2.next = 5;\n return response.text();\n\n case 5:\n html = _context2.sent;\n return _context2.abrupt(\"return\", html);\n\n case 7:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2);\n }));\n\n return function (_x) {\n return _ref2.apply(this, arguments);\n };\n }();\n\n return _this;\n }\n\n _createClass(Autocomplete, [{\n key: \"connect\",\n value: function connect() {\n this.close();\n if (!this.inputTarget.hasAttribute(\"autocomplete\")) this.inputTarget.setAttribute(\"autocomplete\", \"off\");\n this.inputTarget.setAttribute(\"spellcheck\", \"false\");\n this.mouseDown = false;\n this.inputTarget.addEventListener(\"keydown\", this.onKeydown);\n this.inputTarget.addEventListener(\"blur\", this.onInputBlur);\n this.inputTarget.addEventListener(\"input\", this.onInputChange);\n this.resultsTarget.addEventListener(\"mousedown\", this.onResultsMouseDown);\n this.resultsTarget.addEventListener(\"click\", this.onResultsClick);\n\n if (this.inputTarget.hasAttribute(\"autofocus\")) {\n this.inputTarget.focus();\n }\n\n this.readyValue = true;\n }\n }, {\n key: \"disconnect\",\n value: function disconnect() {\n if (this.hasInputTarget) {\n this.inputTarget.removeEventListener(\"keydown\", this.onKeydown);\n this.inputTarget.removeEventListener(\"focus\", this.onInputFocus);\n this.inputTarget.removeEventListener(\"blur\", this.onInputBlur);\n this.inputTarget.removeEventListener(\"input\", this.onInputChange);\n }\n\n if (this.hasResultsTarget) {\n this.resultsTarget.removeEventListener(\"mousedown\", this.onResultsMouseDown);\n this.resultsTarget.removeEventListener(\"click\", this.onResultsClick);\n }\n }\n }, {\n key: \"sibling\",\n value: function sibling(next) {\n var options = this.options;\n var selected = this.selectedOption;\n var index = options.indexOf(selected);\n var sibling = next ? options[index + 1] : options[index - 1];\n var def = next ? options[0] : options[options.length - 1];\n return sibling || def;\n }\n }, {\n key: \"select\",\n value: function select(target) {\n var _target$classList;\n\n var previouslySelected = this.selectedOption;\n\n if (previouslySelected) {\n var _previouslySelected$c;\n\n previouslySelected.removeAttribute(\"aria-selected\");\n\n (_previouslySelected$c = previouslySelected.classList).remove.apply(_previouslySelected$c, _toConsumableArray(this.selectedClassesOrDefault));\n }\n\n target.setAttribute(\"aria-selected\", \"true\");\n\n (_target$classList = target.classList).add.apply(_target$classList, _toConsumableArray(this.selectedClassesOrDefault));\n\n this.inputTarget.setAttribute(\"aria-activedescendant\", target.id);\n target.scrollIntoView(false);\n }\n }, {\n key: \"commit\",\n value: function commit(selected) {\n if (selected.getAttribute(\"aria-disabled\") === \"true\") return;\n\n if (selected instanceof HTMLAnchorElement) {\n selected.click();\n this.close();\n return;\n }\n\n var textValue = selected.getAttribute(\"data-autocomplete-label\") || selected.textContent.trim();\n var value = selected.getAttribute(\"data-autocomplete-value\") || textValue;\n this.inputTarget.value = textValue;\n\n if (this.hasHiddenTarget) {\n this.hiddenTarget.value = value;\n this.hiddenTarget.dispatchEvent(new Event(\"input\"));\n this.hiddenTarget.dispatchEvent(new Event(\"change\"));\n } else {\n this.inputTarget.value = value;\n }\n\n this.inputTarget.focus();\n this.hideAndRemoveOptions();\n this.element.dispatchEvent(new CustomEvent(\"autocomplete.change\", {\n bubbles: true,\n detail: {\n value: value,\n textValue: textValue,\n selected: selected\n }\n }));\n }\n }, {\n key: \"clear\",\n value: function clear() {\n this.inputTarget.value = \"\";\n if (this.hasHiddenTarget) this.hiddenTarget.value = \"\";\n }\n }, {\n key: \"identifyOptions\",\n value: function identifyOptions() {\n var _this2 = this;\n\n var id = 0;\n var optionsWithoutId = this.resultsTarget.querySelectorAll(\"\".concat(optionSelector, \":not([id])\"));\n optionsWithoutId.forEach(function (el) {\n el.id = \"\".concat(_this2.resultsTarget.id, \"-option-\").concat(id++);\n });\n }\n }, {\n key: \"hideAndRemoveOptions\",\n value: function hideAndRemoveOptions() {\n this.close();\n this.resultsTarget.innerHTML = null;\n }\n }, {\n key: \"buildQueryURL\",\n value: function buildQueryURL() {\n var query = this.inputTarget.value.trim();\n\n if (!query || query.length < this.minLengthValue) {\n this.hideAndRemoveOptions();\n return null;\n }\n\n var url = new URL(this.urlValue, window.location.href);\n var params = new URLSearchParams(url.search.slice(1));\n params.append(\"q\", query);\n url.search = params.toString();\n return url.toString();\n }\n }, {\n key: \"replaceResults\",\n value: function replaceResults(html) {\n this.resultsTarget.innerHTML = html;\n this.identifyOptions();\n\n if (!!this.options) {\n this.open();\n } else {\n this.close();\n }\n }\n }, {\n key: \"open\",\n value: function open() {\n if (!this.isHidden) return;\n\n if (!this.hasSkipHiddenPropertyValue) {\n this.resultsTarget.hidden = false;\n }\n\n this.isHidden = false;\n this.element.setAttribute(\"aria-expanded\", \"true\");\n this.element.dispatchEvent(new CustomEvent(\"toggle\", {\n detail: {\n action: \"open\",\n inputTarget: this.inputTarget,\n resultsTarget: this.resultsTarget\n }\n }));\n }\n }, {\n key: \"close\",\n value: function close() {\n if (this.isHidden) return;\n\n if (!this.hasSkipHiddenPropertyValue) {\n this.resultsTarget.hidden = true;\n }\n\n this.isHidden = true;\n this.inputTarget.removeAttribute(\"aria-activedescendant\");\n this.element.setAttribute(\"aria-expanded\", \"false\");\n this.element.dispatchEvent(new CustomEvent(\"toggle\", {\n detail: {\n action: \"close\",\n inputTarget: this.inputTarget,\n resultsTarget: this.resultsTarget\n }\n }));\n }\n }, {\n key: \"options\",\n get: function get() {\n return Array.from(this.resultsTarget.querySelectorAll(optionSelector));\n }\n }, {\n key: \"selectedOption\",\n get: function get() {\n return this.resultsTarget.querySelector(activeSelector);\n }\n }, {\n key: \"selectedClassesOrDefault\",\n get: function get() {\n return this.hasSelectedClass ? this.selectedClasses : [\"active\"];\n }\n }, {\n key: \"headersForFetch\",\n value: function headersForFetch() {\n return {\n \"X-Requested-With\": \"XMLHttpRequest\"\n }; // override if you need\n }\n }]);\n\n return Autocomplete;\n}(Controller);\n\nAutocomplete.targets = [\"input\", \"hidden\", \"results\"];\nAutocomplete.classes = [\"selected\"];\nAutocomplete.values = {\n ready: Boolean,\n submitOnEnter: Boolean,\n url: String,\n minLength: Number,\n\n /*\n * Should we skip adding/removing the \"hidden\" property from resultsTarget?\n *\n * If set, you must listen to the \"toggle\" event from this\n * controller to manually show/hide the results target.\n */\n skipHiddenProperty: Boolean\n};\nexport { Autocomplete as default };\n\nvar debounce = function debounce(fn) {\n var delay = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 10;\n var timeoutId = null;\n return function () {\n clearTimeout(timeoutId);\n timeoutId = setTimeout(fn, delay);\n };\n};\n\nexport { Autocomplete };","// Load all the controllers within this directory and all subdirectories.\n// Controller files must be named *_controller.js.\n\nimport { Application } from \"@hotwired/stimulus\";\nimport { definitionsFromContext } from \"@hotwired/stimulus-webpack-helpers\";\nimport { Autocomplete } from \"stimulus-autocomplete\";\n\nconst application = Application.start();\nconst context = require.context(\"controllers\", true, /_controller\\.js$/);\nconst contextComponents = require.context(\n \"../../../components\",\n true,\n /_controller\\.js$/\n);\napplication.load(\n definitionsFromContext(context).concat(\n definitionsFromContext(contextComponents)\n )\n);\n\napplication.register(\"autocomplete\", Autocomplete);\n","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nvar 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 === \"undefined\" ? \"undefined\" : _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;","'use strict';\n\nimport utils from '../utils.js';\n/**\n * Create an Error with the specified message, config, error code, request and response.\n *\n * @param {string} message The error message.\n * @param {string} [code] The error code (for example, 'ECONNABORTED').\n * @param {Object} [config] The config.\n * @param {Object} [request] The request.\n * @param {Object} [response] The response.\n *\n * @returns {Error} The created error.\n */\n\nfunction AxiosError(message, code, config, request, response) {\n Error.call(this);\n\n if (Error.captureStackTrace) {\n Error.captureStackTrace(this, this.constructor);\n } else {\n this.stack = new Error().stack;\n }\n\n this.message = message;\n this.name = 'AxiosError';\n code && (this.code = code);\n config && (this.config = config);\n request && (this.request = request);\n response && (this.response = response);\n}\n\nutils.inherits(AxiosError, Error, {\n toJSON: function toJSON() {\n return {\n // Standard\n message: this.message,\n name: this.name,\n // Microsoft\n description: this.description,\n number: this.number,\n // Mozilla\n fileName: this.fileName,\n lineNumber: this.lineNumber,\n columnNumber: this.columnNumber,\n stack: this.stack,\n // Axios\n config: utils.toJSONObject(this.config),\n code: this.code,\n status: this.response && this.response.status ? this.response.status : null\n };\n }\n});\nvar prototype = AxiosError.prototype;\nvar descriptors = {};\n['ERR_BAD_OPTION_VALUE', 'ERR_BAD_OPTION', 'ECONNABORTED', 'ETIMEDOUT', 'ERR_NETWORK', 'ERR_FR_TOO_MANY_REDIRECTS', 'ERR_DEPRECATED', 'ERR_BAD_RESPONSE', 'ERR_BAD_REQUEST', 'ERR_CANCELED', 'ERR_NOT_SUPPORT', 'ERR_INVALID_URL' // eslint-disable-next-line func-names\n].forEach(function (code) {\n descriptors[code] = {\n value: code\n };\n});\nObject.defineProperties(AxiosError, descriptors);\nObject.defineProperty(prototype, 'isAxiosError', {\n value: true\n}); // eslint-disable-next-line func-names\n\nAxiosError.from = function (error, code, config, request, response, customProps) {\n var axiosError = Object.create(prototype);\n utils.toFlatObject(error, axiosError, function filter(obj) {\n return obj !== Error.prototype;\n }, function (prop) {\n return prop !== 'isAxiosError';\n });\n AxiosError.call(axiosError, error.message, code, config, request, response);\n axiosError.cause = error;\n axiosError.name = error.name;\n customProps && Object.assign(axiosError, customProps);\n return axiosError;\n};\n\nexport default AxiosError;","import { Controller } from \"@hotwired/stimulus\";\n\nexport default class extends Controller {\n static targets = [\"modal\", \"background\", \"editable\", \"header\", \"message\"];\n\n openModal(event) {\n if (event) {\n event.preventDefault();\n\n const { header, message } = event.detail || {};\n\n if (this.hasHeaderTarget && header) {\n this.headerTarget.textContent = header;\n }\n\n if (this.hasMessageTarget && message) {\n this.messageTarget.textContent = message;\n }\n }\n\n this.modalTarget.style.display = \"block\";\n if (this.hasEditableTarget) this.editableTarget.select();\n }\n\n closeModal(event) {\n if (event) {\n event.preventDefault();\n }\n\n this.modalTarget.style.display = \"none\";\n }\n}\n","'use strict';\n\nexport default function bind(fn, thisArg) {\n return function wrap() {\n return fn.apply(thisArg, arguments);\n };\n}","// eslint-disable-next-line strict\nexport default null;","import bookingRoomAssignmentChosen from \"./bookingRoomAssignmentChosen\";\n\nexport default bookingRoomAssignmentChosen;\n","export default (bookingRoomAssignmentId) => {\n const event = new CustomEvent(\"booking-room-assignment-chosen\", {\n detail: {\n focusedAssignmentId: bookingRoomAssignmentId,\n },\n bubbles: true,\n cancelable: true,\n composed: false,\n });\n\n window.dispatchEvent(event);\n};\n","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' ? factory(exports) : typeof define === 'function' && define.amd ? define(['exports'], factory) : (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.de = {}));\n})(this, function (exports) {\n 'use strict';\n\n var fp = typeof window !== \"undefined\" && window.flatpickr !== undefined ? window.flatpickr : {\n l10ns: {}\n };\n var German = {\n weekdays: {\n shorthand: [\"So\", \"Mo\", \"Di\", \"Mi\", \"Do\", \"Fr\", \"Sa\"],\n longhand: [\"Sonntag\", \"Montag\", \"Dienstag\", \"Mittwoch\", \"Donnerstag\", \"Freitag\", \"Samstag\"]\n },\n months: {\n shorthand: [\"Jan\", \"Feb\", \"Mär\", \"Apr\", \"Mai\", \"Jun\", \"Jul\", \"Aug\", \"Sep\", \"Okt\", \"Nov\", \"Dez\"],\n longhand: [\"Januar\", \"Februar\", \"März\", \"April\", \"Mai\", \"Juni\", \"Juli\", \"August\", \"September\", \"Oktober\", \"November\", \"Dezember\"]\n },\n firstDayOfWeek: 1,\n weekAbbreviation: \"KW\",\n rangeSeparator: \" bis \",\n scrollTitle: \"Zum Ändern scrollen\",\n toggleTitle: \"Zum Umschalten klicken\",\n time_24hr: true\n };\n fp.l10ns.de = German;\n var de = fp.l10ns;\n exports.German = German;\n exports.default = de;\n Object.defineProperty(exports, '__esModule', {\n value: true\n });\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n(function (global, factory) {\n (typeof exports === \"undefined\" ? \"undefined\" : _typeof(exports)) === 'object' && typeof module !== 'undefined' ? factory(exports) : typeof define === 'function' && define.amd ? define(['exports'], factory) : (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.fr = {}));\n})(this, function (exports) {\n 'use strict';\n\n var fp = typeof window !== \"undefined\" && window.flatpickr !== undefined ? window.flatpickr : {\n l10ns: {}\n };\n var French = {\n firstDayOfWeek: 1,\n weekdays: {\n shorthand: [\"dim\", \"lun\", \"mar\", \"mer\", \"jeu\", \"ven\", \"sam\"],\n longhand: [\"dimanche\", \"lundi\", \"mardi\", \"mercredi\", \"jeudi\", \"vendredi\", \"samedi\"]\n },\n months: {\n shorthand: [\"janv\", \"févr\", \"mars\", \"avr\", \"mai\", \"juin\", \"juil\", \"août\", \"sept\", \"oct\", \"nov\", \"déc\"],\n longhand: [\"janvier\", \"février\", \"mars\", \"avril\", \"mai\", \"juin\", \"juillet\", \"août\", \"septembre\", \"octobre\", \"novembre\", \"décembre\"]\n },\n ordinal: function ordinal(nth) {\n if (nth > 1) return \"\";\n return \"er\";\n },\n rangeSeparator: \" au \",\n weekAbbreviation: \"Sem\",\n scrollTitle: \"Défiler pour augmenter la valeur\",\n toggleTitle: \"Cliquer pour basculer\",\n time_24hr: true\n };\n fp.l10ns.fr = French;\n var fr = fp.l10ns;\n exports.French = French;\n exports.default = fr;\n Object.defineProperty(exports, '__esModule', {\n value: true\n });\n});","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nexport var HOOKS = [\"onChange\", \"onClose\", \"onDayCreate\", \"onDestroy\", \"onKeyDown\", \"onMonthChange\", \"onOpen\", \"onParseConfig\", \"onReady\", \"onValueUpdate\", \"onYearChange\", \"onPreCalendarPosition\"];\nexport var defaults = {\n _disable: [],\n allowInput: false,\n allowInvalidPreload: false,\n altFormat: \"F j, Y\",\n altInput: false,\n altInputClass: \"form-control input\",\n animate: (typeof window === \"undefined\" ? \"undefined\" : _typeof(window)) === \"object\" && window.navigator.userAgent.indexOf(\"MSIE\") === -1,\n ariaDateFormat: \"F j, Y\",\n autoFillDefaultTime: true,\n clickOpens: true,\n closeOnSelect: true,\n conjunction: \", \",\n dateFormat: \"Y-m-d\",\n defaultHour: 12,\n defaultMinute: 0,\n defaultSeconds: 0,\n disable: [],\n disableMobile: false,\n enableSeconds: false,\n enableTime: false,\n errorHandler: function errorHandler(err) {\n return typeof console !== \"undefined\" && console.warn(err);\n },\n getWeek: function getWeek(givenDate) {\n var date = new Date(givenDate.getTime());\n date.setHours(0, 0, 0, 0);\n date.setDate(date.getDate() + 3 - (date.getDay() + 6) % 7);\n var week1 = new Date(date.getFullYear(), 0, 4);\n return 1 + Math.round(((date.getTime() - week1.getTime()) / 86400000 - 3 + (week1.getDay() + 6) % 7) / 7);\n },\n hourIncrement: 1,\n ignoredFocusElements: [],\n inline: false,\n locale: \"default\",\n minuteIncrement: 5,\n mode: \"single\",\n monthSelectorType: \"dropdown\",\n nextArrow: \"\",\n noCalendar: false,\n now: new Date(),\n onChange: [],\n onClose: [],\n onDayCreate: [],\n onDestroy: [],\n onKeyDown: [],\n onMonthChange: [],\n onOpen: [],\n onParseConfig: [],\n onReady: [],\n onValueUpdate: [],\n onYearChange: [],\n onPreCalendarPosition: [],\n plugins: [],\n position: \"auto\",\n positionElement: undefined,\n prevArrow: \"\",\n shorthandCurrentMonth: false,\n showMonths: 1,\n static: false,\n time_24hr: false,\n weekNumbers: false,\n wrap: false\n};","export var english = {\n weekdays: {\n shorthand: [\"Sun\", \"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\"],\n longhand: [\"Sunday\", \"Monday\", \"Tuesday\", \"Wednesday\", \"Thursday\", \"Friday\", \"Saturday\"]\n },\n months: {\n shorthand: [\"Jan\", \"Feb\", \"Mar\", \"Apr\", \"May\", \"Jun\", \"Jul\", \"Aug\", \"Sep\", \"Oct\", \"Nov\", \"Dec\"],\n longhand: [\"January\", \"February\", \"March\", \"April\", \"May\", \"June\", \"July\", \"August\", \"September\", \"October\", \"November\", \"December\"]\n },\n daysInMonth: [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31],\n firstDayOfWeek: 0,\n ordinal: function ordinal(nth) {\n var s = nth % 100;\n if (s > 3 && s < 21) return \"th\";\n\n switch (s % 10) {\n case 1:\n return \"st\";\n\n case 2:\n return \"nd\";\n\n case 3:\n return \"rd\";\n\n default:\n return \"th\";\n }\n },\n rangeSeparator: \" to \",\n weekAbbreviation: \"Wk\",\n scrollTitle: \"Scroll to increment\",\n toggleTitle: \"Click to toggle\",\n amPM: [\"AM\", \"PM\"],\n yearAriaLabel: \"Year\",\n monthAriaLabel: \"Month\",\n hourAriaLabel: \"Hour\",\n minuteAriaLabel: \"Minute\",\n time_24hr: false\n};\nexport default english;","export var pad = function pad(number) {\n var length = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2;\n return \"000\".concat(number).slice(length * -1);\n};\nexport var int = function int(bool) {\n return bool === true ? 1 : 0;\n};\nexport function debounce(fn, wait) {\n var t;\n return function () {\n var _arguments = arguments,\n _this = this;\n\n clearTimeout(t);\n t = setTimeout(function () {\n return fn.apply(_this, _arguments);\n }, wait);\n };\n}\nexport var arrayify = function arrayify(obj) {\n return obj instanceof Array ? obj : [obj];\n};","export function toggleClass(elem, className, bool) {\n if (bool === true) return elem.classList.add(className);\n elem.classList.remove(className);\n}\nexport function createElement(tag, className, content) {\n var e = window.document.createElement(tag);\n className = className || \"\";\n content = content || \"\";\n e.className = className;\n if (content !== undefined) e.textContent = content;\n return e;\n}\nexport function clearNode(node) {\n while (node.firstChild) {\n node.removeChild(node.firstChild);\n }\n}\nexport function findParent(node, condition) {\n if (condition(node)) return node;else if (node.parentNode) return findParent(node.parentNode, condition);\n return undefined;\n}\nexport function createNumberInput(inputClassName, opts) {\n var wrapper = createElement(\"div\", \"numInputWrapper\"),\n numInput = createElement(\"input\", \"numInput \" + inputClassName),\n arrowUp = createElement(\"span\", \"arrowUp\"),\n arrowDown = createElement(\"span\", \"arrowDown\");\n\n if (navigator.userAgent.indexOf(\"MSIE 9.0\") === -1) {\n numInput.type = \"number\";\n } else {\n numInput.type = \"text\";\n numInput.pattern = \"\\\\d*\";\n }\n\n if (opts !== undefined) for (var key in opts) {\n numInput.setAttribute(key, opts[key]);\n }\n wrapper.appendChild(numInput);\n wrapper.appendChild(arrowUp);\n wrapper.appendChild(arrowDown);\n return wrapper;\n}\nexport function getEventTarget(event) {\n try {\n if (typeof event.composedPath === \"function\") {\n var path = event.composedPath();\n return path[0];\n }\n\n return event.target;\n } catch (error) {\n return event.target;\n }\n}","import { int, pad } from \"../utils\";\n\nvar doNothing = function doNothing() {\n return undefined;\n};\n\nexport var monthToStr = function monthToStr(monthNumber, shorthand, locale) {\n return locale.months[shorthand ? \"shorthand\" : \"longhand\"][monthNumber];\n};\nexport var revFormat = {\n D: doNothing,\n F: function F(dateObj, monthName, locale) {\n dateObj.setMonth(locale.months.longhand.indexOf(monthName));\n },\n G: function G(dateObj, hour) {\n dateObj.setHours(parseFloat(hour));\n },\n H: function H(dateObj, hour) {\n dateObj.setHours(parseFloat(hour));\n },\n J: function J(dateObj, day) {\n dateObj.setDate(parseFloat(day));\n },\n K: function K(dateObj, amPM, locale) {\n dateObj.setHours(dateObj.getHours() % 12 + 12 * int(new RegExp(locale.amPM[1], \"i\").test(amPM)));\n },\n M: function M(dateObj, shortMonth, locale) {\n dateObj.setMonth(locale.months.shorthand.indexOf(shortMonth));\n },\n S: function S(dateObj, seconds) {\n dateObj.setSeconds(parseFloat(seconds));\n },\n U: function U(_, unixSeconds) {\n return new Date(parseFloat(unixSeconds) * 1000);\n },\n W: function W(dateObj, weekNum, locale) {\n var weekNumber = parseInt(weekNum);\n var date = new Date(dateObj.getFullYear(), 0, 2 + (weekNumber - 1) * 7, 0, 0, 0, 0);\n date.setDate(date.getDate() - date.getDay() + locale.firstDayOfWeek);\n return date;\n },\n Y: function Y(dateObj, year) {\n dateObj.setFullYear(parseFloat(year));\n },\n Z: function Z(_, ISODate) {\n return new Date(ISODate);\n },\n d: function d(dateObj, day) {\n dateObj.setDate(parseFloat(day));\n },\n h: function h(dateObj, hour) {\n dateObj.setHours(parseFloat(hour));\n },\n i: function i(dateObj, minutes) {\n dateObj.setMinutes(parseFloat(minutes));\n },\n j: function j(dateObj, day) {\n dateObj.setDate(parseFloat(day));\n },\n l: doNothing,\n m: function m(dateObj, month) {\n dateObj.setMonth(parseFloat(month) - 1);\n },\n n: function n(dateObj, month) {\n dateObj.setMonth(parseFloat(month) - 1);\n },\n s: function s(dateObj, seconds) {\n dateObj.setSeconds(parseFloat(seconds));\n },\n u: function u(_, unixMillSeconds) {\n return new Date(parseFloat(unixMillSeconds));\n },\n w: doNothing,\n y: function y(dateObj, year) {\n dateObj.setFullYear(2000 + parseFloat(year));\n }\n};\nexport var tokenRegex = {\n D: \"(\\\\w+)\",\n F: \"(\\\\w+)\",\n G: \"(\\\\d\\\\d|\\\\d)\",\n H: \"(\\\\d\\\\d|\\\\d)\",\n J: \"(\\\\d\\\\d|\\\\d)\\\\w+\",\n K: \"\",\n M: \"(\\\\w+)\",\n S: \"(\\\\d\\\\d|\\\\d)\",\n U: \"(.+)\",\n W: \"(\\\\d\\\\d|\\\\d)\",\n Y: \"(\\\\d{4})\",\n Z: \"(.+)\",\n d: \"(\\\\d\\\\d|\\\\d)\",\n h: \"(\\\\d\\\\d|\\\\d)\",\n i: \"(\\\\d\\\\d|\\\\d)\",\n j: \"(\\\\d\\\\d|\\\\d)\",\n l: \"(\\\\w+)\",\n m: \"(\\\\d\\\\d|\\\\d)\",\n n: \"(\\\\d\\\\d|\\\\d)\",\n s: \"(\\\\d\\\\d|\\\\d)\",\n u: \"(.+)\",\n w: \"(\\\\d\\\\d|\\\\d)\",\n y: \"(\\\\d{2})\"\n};\nexport var formats = {\n Z: function Z(date) {\n return date.toISOString();\n },\n D: function D(date, locale, options) {\n return locale.weekdays.shorthand[formats.w(date, locale, options)];\n },\n F: function F(date, locale, options) {\n return monthToStr(formats.n(date, locale, options) - 1, false, locale);\n },\n G: function G(date, locale, options) {\n return pad(formats.h(date, locale, options));\n },\n H: function H(date) {\n return pad(date.getHours());\n },\n J: function J(date, locale) {\n return locale.ordinal !== undefined ? date.getDate() + locale.ordinal(date.getDate()) : date.getDate();\n },\n K: function K(date, locale) {\n return locale.amPM[int(date.getHours() > 11)];\n },\n M: function M(date, locale) {\n return monthToStr(date.getMonth(), true, locale);\n },\n S: function S(date) {\n return pad(date.getSeconds());\n },\n U: function U(date) {\n return date.getTime() / 1000;\n },\n W: function W(date, _, options) {\n return options.getWeek(date);\n },\n Y: function Y(date) {\n return pad(date.getFullYear(), 4);\n },\n d: function d(date) {\n return pad(date.getDate());\n },\n h: function h(date) {\n return date.getHours() % 12 ? date.getHours() % 12 : 12;\n },\n i: function i(date) {\n return pad(date.getMinutes());\n },\n j: function j(date) {\n return date.getDate();\n },\n l: function l(date, locale) {\n return locale.weekdays.longhand[date.getDay()];\n },\n m: function m(date) {\n return pad(date.getMonth() + 1);\n },\n n: function n(date) {\n return date.getMonth() + 1;\n },\n s: function s(date) {\n return date.getSeconds();\n },\n u: function u(date) {\n return date.getTime();\n },\n w: function w(date) {\n return date.getDay();\n },\n y: function y(date) {\n return String(date.getFullYear()).substring(2);\n }\n};","import { tokenRegex, revFormat, formats } from \"./formatting\";\nimport { defaults } from \"../types/options\";\nimport { english } from \"../l10n/default\";\nexport var createDateFormatter = function createDateFormatter(_ref) {\n var _ref$config = _ref.config,\n config = _ref$config === void 0 ? defaults : _ref$config,\n _ref$l10n = _ref.l10n,\n l10n = _ref$l10n === void 0 ? english : _ref$l10n,\n _ref$isMobile = _ref.isMobile,\n isMobile = _ref$isMobile === void 0 ? false : _ref$isMobile;\n return function (dateObj, frmt, overrideLocale) {\n var locale = overrideLocale || l10n;\n\n if (config.formatDate !== undefined && !isMobile) {\n return config.formatDate(dateObj, frmt, locale);\n }\n\n return frmt.split(\"\").map(function (c, i, arr) {\n return formats[c] && arr[i - 1] !== \"\\\\\" ? formats[c](dateObj, locale, config) : c !== \"\\\\\" ? c : \"\";\n }).join(\"\");\n };\n};\nexport var createDateParser = function createDateParser(_ref2) {\n var _ref2$config = _ref2.config,\n config = _ref2$config === void 0 ? defaults : _ref2$config,\n _ref2$l10n = _ref2.l10n,\n l10n = _ref2$l10n === void 0 ? english : _ref2$l10n;\n return function (date, givenFormat, timeless, customLocale) {\n if (date !== 0 && !date) return undefined;\n var locale = customLocale || l10n;\n var parsedDate;\n var dateOrig = date;\n if (date instanceof Date) parsedDate = new Date(date.getTime());else if (typeof date !== \"string\" && date.toFixed !== undefined) parsedDate = new Date(date);else if (typeof date === \"string\") {\n var format = givenFormat || (config || defaults).dateFormat;\n var datestr = String(date).trim();\n\n if (datestr === \"today\") {\n parsedDate = new Date();\n timeless = true;\n } else if (/Z$/.test(datestr) || /GMT$/.test(datestr)) parsedDate = new Date(date);else if (config && config.parseDate) parsedDate = config.parseDate(date, format);else {\n parsedDate = !config || !config.noCalendar ? new Date(new Date().getFullYear(), 0, 1, 0, 0, 0, 0) : new Date(new Date().setHours(0, 0, 0, 0));\n var matched,\n ops = [];\n\n for (var i = 0, matchIndex = 0, regexStr = \"\"; i < format.length; i++) {\n var token = format[i];\n var isBackSlash = token === \"\\\\\";\n var escaped = format[i - 1] === \"\\\\\" || isBackSlash;\n\n if (tokenRegex[token] && !escaped) {\n regexStr += tokenRegex[token];\n var match = new RegExp(regexStr).exec(date);\n\n if (match && (matched = true)) {\n ops[token !== \"Y\" ? \"push\" : \"unshift\"]({\n fn: revFormat[token],\n val: match[++matchIndex]\n });\n }\n } else if (!isBackSlash) regexStr += \".\";\n\n ops.forEach(function (_ref3) {\n var fn = _ref3.fn,\n val = _ref3.val;\n return parsedDate = fn(parsedDate, val, locale) || parsedDate;\n });\n }\n\n parsedDate = matched ? parsedDate : undefined;\n }\n }\n\n if (!(parsedDate instanceof Date && !isNaN(parsedDate.getTime()))) {\n config.errorHandler(new Error(\"Invalid date provided: \".concat(dateOrig)));\n return undefined;\n }\n\n if (timeless === true) parsedDate.setHours(0, 0, 0, 0);\n return parsedDate;\n };\n};\nexport function compareDates(date1, date2) {\n var timeless = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;\n\n if (timeless !== false) {\n return new Date(date1.getTime()).setHours(0, 0, 0, 0) - new Date(date2.getTime()).setHours(0, 0, 0, 0);\n }\n\n return date1.getTime() - date2.getTime();\n}\nexport function compareTimes(date1, date2) {\n return 3600 * (date1.getHours() - date2.getHours()) + 60 * (date1.getMinutes() - date2.getMinutes()) + date1.getSeconds() - date2.getSeconds();\n}\nexport var isBetween = function isBetween(ts, ts1, ts2) {\n return ts > Math.min(ts1, ts2) && ts < Math.max(ts1, ts2);\n};\nexport var duration = {\n DAY: 86400000\n};\nexport function getDefaultHours(config) {\n var hours = config.defaultHour;\n var minutes = config.defaultMinute;\n var seconds = config.defaultSeconds;\n\n if (config.minDate !== undefined) {\n var minHour = config.minDate.getHours();\n var minMinutes = config.minDate.getMinutes();\n var minSeconds = config.minDate.getSeconds();\n\n if (hours < minHour) {\n hours = minHour;\n }\n\n if (hours === minHour && minutes < minMinutes) {\n minutes = minMinutes;\n }\n\n if (hours === minHour && minutes === minMinutes && seconds < minSeconds) seconds = config.minDate.getSeconds();\n }\n\n if (config.maxDate !== undefined) {\n var maxHr = config.maxDate.getHours();\n var maxMinutes = config.maxDate.getMinutes();\n hours = Math.min(hours, maxHr);\n if (hours === maxHr) minutes = Math.min(maxMinutes, minutes);\n if (hours === maxHr && minutes === maxMinutes) seconds = config.maxDate.getSeconds();\n }\n\n return {\n hours: hours,\n minutes: minutes,\n seconds: seconds\n };\n}","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nfunction _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }\n\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _iterableToArray(iter) { if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter); }\n\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nimport { defaults as defaultOptions, HOOKS } from \"./types/options\";\nimport English from \"./l10n/default\";\nimport { arrayify, debounce, int, pad } from \"./utils\";\nimport { clearNode, createElement, createNumberInput, findParent, toggleClass, getEventTarget } from \"./utils/dom\";\nimport { compareDates, createDateParser, createDateFormatter, duration, isBetween, getDefaultHours } from \"./utils/dates\";\nimport { tokenRegex, monthToStr } from \"./utils/formatting\";\nimport \"./utils/polyfills\";\nvar DEBOUNCED_CHANGE_MS = 300;\n\nfunction FlatpickrInstance(element, instanceConfig) {\n var self = {\n config: Object.assign(Object.assign({}, defaultOptions), flatpickr.defaultConfig),\n l10n: English\n };\n self.parseDate = createDateParser({\n config: self.config,\n l10n: self.l10n\n });\n self._handlers = [];\n self.pluginElements = [];\n self.loadedPlugins = [];\n self._bind = bind;\n self._setHoursFromDate = setHoursFromDate;\n self._positionCalendar = positionCalendar;\n self.changeMonth = changeMonth;\n self.changeYear = changeYear;\n self.clear = clear;\n self.close = close;\n self._createElement = createElement;\n self.destroy = destroy;\n self.isEnabled = isEnabled;\n self.jumpToDate = jumpToDate;\n self.open = open;\n self.redraw = redraw;\n self.set = set;\n self.setDate = setDate;\n self.toggle = toggle;\n\n function setupHelperFunctions() {\n self.utils = {\n getDaysInMonth: function getDaysInMonth() {\n var month = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : self.currentMonth;\n var yr = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : self.currentYear;\n if (month === 1 && (yr % 4 === 0 && yr % 100 !== 0 || yr % 400 === 0)) return 29;\n return self.l10n.daysInMonth[month];\n }\n };\n }\n\n function init() {\n self.element = self.input = element;\n self.isOpen = false;\n parseConfig();\n setupLocale();\n setupInputs();\n setupDates();\n setupHelperFunctions();\n if (!self.isMobile) build();\n bindEvents();\n\n if (self.selectedDates.length || self.config.noCalendar) {\n if (self.config.enableTime) {\n setHoursFromDate(self.config.noCalendar ? self.latestSelectedDateObj : undefined);\n }\n\n updateValue(false);\n }\n\n setCalendarWidth();\n var isSafari = /^((?!chrome|android).)*safari/i.test(navigator.userAgent);\n\n if (!self.isMobile && isSafari) {\n positionCalendar();\n }\n\n triggerEvent(\"onReady\");\n }\n\n function bindToInstance(fn) {\n return fn.bind(self);\n }\n\n function setCalendarWidth() {\n var config = self.config;\n\n if (config.weekNumbers === false && config.showMonths === 1) {\n return;\n } else if (config.noCalendar !== true) {\n window.requestAnimationFrame(function () {\n if (self.calendarContainer !== undefined) {\n self.calendarContainer.style.visibility = \"hidden\";\n self.calendarContainer.style.display = \"block\";\n }\n\n if (self.daysContainer !== undefined) {\n var daysWidth = (self.days.offsetWidth + 1) * config.showMonths;\n self.daysContainer.style.width = daysWidth + \"px\";\n self.calendarContainer.style.width = daysWidth + (self.weekWrapper !== undefined ? self.weekWrapper.offsetWidth : 0) + \"px\";\n self.calendarContainer.style.removeProperty(\"visibility\");\n self.calendarContainer.style.removeProperty(\"display\");\n }\n });\n }\n }\n\n function updateTime(e) {\n if (self.selectedDates.length === 0) {\n var defaultDate = self.config.minDate === undefined || compareDates(new Date(), self.config.minDate) >= 0 ? new Date() : new Date(self.config.minDate.getTime());\n var defaults = getDefaultHours(self.config);\n defaultDate.setHours(defaults.hours, defaults.minutes, defaults.seconds, defaultDate.getMilliseconds());\n self.selectedDates = [defaultDate];\n self.latestSelectedDateObj = defaultDate;\n }\n\n if (e !== undefined && e.type !== \"blur\") {\n timeWrapper(e);\n }\n\n var prevValue = self._input.value;\n setHoursFromInputs();\n updateValue();\n\n if (self._input.value !== prevValue) {\n self._debouncedChange();\n }\n }\n\n function ampm2military(hour, amPM) {\n return hour % 12 + 12 * int(amPM === self.l10n.amPM[1]);\n }\n\n function military2ampm(hour) {\n switch (hour % 24) {\n case 0:\n case 12:\n return 12;\n\n default:\n return hour % 12;\n }\n }\n\n function setHoursFromInputs() {\n if (self.hourElement === undefined || self.minuteElement === undefined) return;\n var hours = (parseInt(self.hourElement.value.slice(-2), 10) || 0) % 24,\n minutes = (parseInt(self.minuteElement.value, 10) || 0) % 60,\n seconds = self.secondElement !== undefined ? (parseInt(self.secondElement.value, 10) || 0) % 60 : 0;\n\n if (self.amPM !== undefined) {\n hours = ampm2military(hours, self.amPM.textContent);\n }\n\n var limitMinHours = self.config.minTime !== undefined || self.config.minDate && self.minDateHasTime && self.latestSelectedDateObj && compareDates(self.latestSelectedDateObj, self.config.minDate, true) === 0;\n var limitMaxHours = self.config.maxTime !== undefined || self.config.maxDate && self.maxDateHasTime && self.latestSelectedDateObj && compareDates(self.latestSelectedDateObj, self.config.maxDate, true) === 0;\n\n if (limitMaxHours) {\n var maxTime = self.config.maxTime !== undefined ? self.config.maxTime : self.config.maxDate;\n hours = Math.min(hours, maxTime.getHours());\n if (hours === maxTime.getHours()) minutes = Math.min(minutes, maxTime.getMinutes());\n if (minutes === maxTime.getMinutes()) seconds = Math.min(seconds, maxTime.getSeconds());\n }\n\n if (limitMinHours) {\n var minTime = self.config.minTime !== undefined ? self.config.minTime : self.config.minDate;\n hours = Math.max(hours, minTime.getHours());\n if (hours === minTime.getHours() && minutes < minTime.getMinutes()) minutes = minTime.getMinutes();\n if (minutes === minTime.getMinutes()) seconds = Math.max(seconds, minTime.getSeconds());\n }\n\n setHours(hours, minutes, seconds);\n }\n\n function setHoursFromDate(dateObj) {\n var date = dateObj || self.latestSelectedDateObj;\n\n if (date) {\n setHours(date.getHours(), date.getMinutes(), date.getSeconds());\n }\n }\n\n function setHours(hours, minutes, seconds) {\n if (self.latestSelectedDateObj !== undefined) {\n self.latestSelectedDateObj.setHours(hours % 24, minutes, seconds || 0, 0);\n }\n\n if (!self.hourElement || !self.minuteElement || self.isMobile) return;\n self.hourElement.value = pad(!self.config.time_24hr ? (12 + hours) % 12 + 12 * int(hours % 12 === 0) : hours);\n self.minuteElement.value = pad(minutes);\n if (self.amPM !== undefined) self.amPM.textContent = self.l10n.amPM[int(hours >= 12)];\n if (self.secondElement !== undefined) self.secondElement.value = pad(seconds);\n }\n\n function onYearInput(event) {\n var eventTarget = getEventTarget(event);\n var year = parseInt(eventTarget.value) + (event.delta || 0);\n\n if (year / 1000 > 1 || event.key === \"Enter\" && !/[^\\d]/.test(year.toString())) {\n changeYear(year);\n }\n }\n\n function bind(element, event, handler, options) {\n if (event instanceof Array) return event.forEach(function (ev) {\n return bind(element, ev, handler, options);\n });\n if (element instanceof Array) return element.forEach(function (el) {\n return bind(el, event, handler, options);\n });\n element.addEventListener(event, handler, options);\n\n self._handlers.push({\n remove: function remove() {\n return element.removeEventListener(event, handler);\n }\n });\n }\n\n function triggerChange() {\n triggerEvent(\"onChange\");\n }\n\n function bindEvents() {\n if (self.config.wrap) {\n [\"open\", \"close\", \"toggle\", \"clear\"].forEach(function (evt) {\n Array.prototype.forEach.call(self.element.querySelectorAll(\"[data-\".concat(evt, \"]\")), function (el) {\n return bind(el, \"click\", self[evt]);\n });\n });\n }\n\n if (self.isMobile) {\n setupMobile();\n return;\n }\n\n var debouncedResize = debounce(onResize, 50);\n self._debouncedChange = debounce(triggerChange, DEBOUNCED_CHANGE_MS);\n if (self.daysContainer && !/iPhone|iPad|iPod/i.test(navigator.userAgent)) bind(self.daysContainer, \"mouseover\", function (e) {\n if (self.config.mode === \"range\") onMouseOver(getEventTarget(e));\n });\n bind(window.document.body, \"keydown\", onKeyDown);\n if (!self.config.inline && !self.config.static) bind(window, \"resize\", debouncedResize);\n if (window.ontouchstart !== undefined) bind(window.document, \"touchstart\", documentClick);else bind(window.document, \"mousedown\", documentClick);\n bind(window.document, \"focus\", documentClick, {\n capture: true\n });\n\n if (self.config.clickOpens === true) {\n bind(self._input, \"focus\", self.open);\n bind(self._input, \"click\", self.open);\n }\n\n if (self.daysContainer !== undefined) {\n bind(self.monthNav, \"click\", onMonthNavClick);\n bind(self.monthNav, [\"keyup\", \"increment\"], onYearInput);\n bind(self.daysContainer, \"click\", selectDate);\n }\n\n if (self.timeContainer !== undefined && self.minuteElement !== undefined && self.hourElement !== undefined) {\n var selText = function selText(e) {\n return getEventTarget(e).select();\n };\n\n bind(self.timeContainer, [\"increment\"], updateTime);\n bind(self.timeContainer, \"blur\", updateTime, {\n capture: true\n });\n bind(self.timeContainer, \"click\", timeIncrement);\n bind([self.hourElement, self.minuteElement], [\"focus\", \"click\"], selText);\n if (self.secondElement !== undefined) bind(self.secondElement, \"focus\", function () {\n return self.secondElement && self.secondElement.select();\n });\n\n if (self.amPM !== undefined) {\n bind(self.amPM, \"click\", function (e) {\n updateTime(e);\n triggerChange();\n });\n }\n }\n\n if (self.config.allowInput) {\n bind(self._input, \"blur\", onBlur);\n }\n }\n\n function jumpToDate(jumpDate, triggerChange) {\n var jumpTo = jumpDate !== undefined ? self.parseDate(jumpDate) : self.latestSelectedDateObj || (self.config.minDate && self.config.minDate > self.now ? self.config.minDate : self.config.maxDate && self.config.maxDate < self.now ? self.config.maxDate : self.now);\n var oldYear = self.currentYear;\n var oldMonth = self.currentMonth;\n\n try {\n if (jumpTo !== undefined) {\n self.currentYear = jumpTo.getFullYear();\n self.currentMonth = jumpTo.getMonth();\n }\n } catch (e) {\n e.message = \"Invalid date supplied: \" + jumpTo;\n self.config.errorHandler(e);\n }\n\n if (triggerChange && self.currentYear !== oldYear) {\n triggerEvent(\"onYearChange\");\n buildMonthSwitch();\n }\n\n if (triggerChange && (self.currentYear !== oldYear || self.currentMonth !== oldMonth)) {\n triggerEvent(\"onMonthChange\");\n }\n\n self.redraw();\n }\n\n function timeIncrement(e) {\n var eventTarget = getEventTarget(e);\n if (~eventTarget.className.indexOf(\"arrow\")) incrementNumInput(e, eventTarget.classList.contains(\"arrowUp\") ? 1 : -1);\n }\n\n function incrementNumInput(e, delta, inputElem) {\n var target = e && getEventTarget(e);\n var input = inputElem || target && target.parentNode && target.parentNode.firstChild;\n var event = createEvent(\"increment\");\n event.delta = delta;\n input && input.dispatchEvent(event);\n }\n\n function build() {\n var fragment = window.document.createDocumentFragment();\n self.calendarContainer = createElement(\"div\", \"flatpickr-calendar\");\n self.calendarContainer.tabIndex = -1;\n\n if (!self.config.noCalendar) {\n fragment.appendChild(buildMonthNav());\n self.innerContainer = createElement(\"div\", \"flatpickr-innerContainer\");\n\n if (self.config.weekNumbers) {\n var _buildWeeks = buildWeeks(),\n weekWrapper = _buildWeeks.weekWrapper,\n weekNumbers = _buildWeeks.weekNumbers;\n\n self.innerContainer.appendChild(weekWrapper);\n self.weekNumbers = weekNumbers;\n self.weekWrapper = weekWrapper;\n }\n\n self.rContainer = createElement(\"div\", \"flatpickr-rContainer\");\n self.rContainer.appendChild(buildWeekdays());\n\n if (!self.daysContainer) {\n self.daysContainer = createElement(\"div\", \"flatpickr-days\");\n self.daysContainer.tabIndex = -1;\n }\n\n buildDays();\n self.rContainer.appendChild(self.daysContainer);\n self.innerContainer.appendChild(self.rContainer);\n fragment.appendChild(self.innerContainer);\n }\n\n if (self.config.enableTime) {\n fragment.appendChild(buildTime());\n }\n\n toggleClass(self.calendarContainer, \"rangeMode\", self.config.mode === \"range\");\n toggleClass(self.calendarContainer, \"animate\", self.config.animate === true);\n toggleClass(self.calendarContainer, \"multiMonth\", self.config.showMonths > 1);\n self.calendarContainer.appendChild(fragment);\n var customAppend = self.config.appendTo !== undefined && self.config.appendTo.nodeType !== undefined;\n\n if (self.config.inline || self.config.static) {\n self.calendarContainer.classList.add(self.config.inline ? \"inline\" : \"static\");\n\n if (self.config.inline) {\n if (!customAppend && self.element.parentNode) self.element.parentNode.insertBefore(self.calendarContainer, self._input.nextSibling);else if (self.config.appendTo !== undefined) self.config.appendTo.appendChild(self.calendarContainer);\n }\n\n if (self.config.static) {\n var wrapper = createElement(\"div\", \"flatpickr-wrapper\");\n if (self.element.parentNode) self.element.parentNode.insertBefore(wrapper, self.element);\n wrapper.appendChild(self.element);\n if (self.altInput) wrapper.appendChild(self.altInput);\n wrapper.appendChild(self.calendarContainer);\n }\n }\n\n if (!self.config.static && !self.config.inline) (self.config.appendTo !== undefined ? self.config.appendTo : window.document.body).appendChild(self.calendarContainer);\n }\n\n function createDay(className, date, dayNumber, i) {\n var dateIsEnabled = isEnabled(date, true),\n dayElement = createElement(\"span\", \"flatpickr-day \" + className, date.getDate().toString());\n dayElement.dateObj = date;\n dayElement.$i = i;\n dayElement.setAttribute(\"aria-label\", self.formatDate(date, self.config.ariaDateFormat));\n\n if (className.indexOf(\"hidden\") === -1 && compareDates(date, self.now) === 0) {\n self.todayDateElem = dayElement;\n dayElement.classList.add(\"today\");\n dayElement.setAttribute(\"aria-current\", \"date\");\n }\n\n if (dateIsEnabled) {\n dayElement.tabIndex = -1;\n\n if (isDateSelected(date)) {\n dayElement.classList.add(\"selected\");\n self.selectedDateElem = dayElement;\n\n if (self.config.mode === \"range\") {\n toggleClass(dayElement, \"startRange\", self.selectedDates[0] && compareDates(date, self.selectedDates[0], true) === 0);\n toggleClass(dayElement, \"endRange\", self.selectedDates[1] && compareDates(date, self.selectedDates[1], true) === 0);\n if (className === \"nextMonthDay\") dayElement.classList.add(\"inRange\");\n }\n }\n } else {\n dayElement.classList.add(\"flatpickr-disabled\");\n }\n\n if (self.config.mode === \"range\") {\n if (isDateInRange(date) && !isDateSelected(date)) dayElement.classList.add(\"inRange\");\n }\n\n if (self.weekNumbers && self.config.showMonths === 1 && className !== \"prevMonthDay\" && dayNumber % 7 === 1) {\n self.weekNumbers.insertAdjacentHTML(\"beforeend\", \"\" + self.config.getWeek(date) + \"\");\n }\n\n triggerEvent(\"onDayCreate\", dayElement);\n return dayElement;\n }\n\n function focusOnDayElem(targetNode) {\n targetNode.focus();\n if (self.config.mode === \"range\") onMouseOver(targetNode);\n }\n\n function getFirstAvailableDay(delta) {\n var startMonth = delta > 0 ? 0 : self.config.showMonths - 1;\n var endMonth = delta > 0 ? self.config.showMonths : -1;\n\n for (var m = startMonth; m != endMonth; m += delta) {\n var month = self.daysContainer.children[m];\n var startIndex = delta > 0 ? 0 : month.children.length - 1;\n var endIndex = delta > 0 ? month.children.length : -1;\n\n for (var i = startIndex; i != endIndex; i += delta) {\n var c = month.children[i];\n if (c.className.indexOf(\"hidden\") === -1 && isEnabled(c.dateObj)) return c;\n }\n }\n\n return undefined;\n }\n\n function getNextAvailableDay(current, delta) {\n var givenMonth = current.className.indexOf(\"Month\") === -1 ? current.dateObj.getMonth() : self.currentMonth;\n var endMonth = delta > 0 ? self.config.showMonths : -1;\n var loopDelta = delta > 0 ? 1 : -1;\n\n for (var m = givenMonth - self.currentMonth; m != endMonth; m += loopDelta) {\n var month = self.daysContainer.children[m];\n var startIndex = givenMonth - self.currentMonth === m ? current.$i + delta : delta < 0 ? month.children.length - 1 : 0;\n var numMonthDays = month.children.length;\n\n for (var i = startIndex; i >= 0 && i < numMonthDays && i != (delta > 0 ? numMonthDays : -1); i += loopDelta) {\n var c = month.children[i];\n if (c.className.indexOf(\"hidden\") === -1 && isEnabled(c.dateObj) && Math.abs(current.$i - i) >= Math.abs(delta)) return focusOnDayElem(c);\n }\n }\n\n self.changeMonth(loopDelta);\n focusOnDay(getFirstAvailableDay(loopDelta), 0);\n return undefined;\n }\n\n function focusOnDay(current, offset) {\n var dayFocused = isInView(document.activeElement || document.body);\n var startElem = current !== undefined ? current : dayFocused ? document.activeElement : self.selectedDateElem !== undefined && isInView(self.selectedDateElem) ? self.selectedDateElem : self.todayDateElem !== undefined && isInView(self.todayDateElem) ? self.todayDateElem : getFirstAvailableDay(offset > 0 ? 1 : -1);\n\n if (startElem === undefined) {\n self._input.focus();\n } else if (!dayFocused) {\n focusOnDayElem(startElem);\n } else {\n getNextAvailableDay(startElem, offset);\n }\n }\n\n function buildMonthDays(year, month) {\n var firstOfMonth = (new Date(year, month, 1).getDay() - self.l10n.firstDayOfWeek + 7) % 7;\n var prevMonthDays = self.utils.getDaysInMonth((month - 1 + 12) % 12, year);\n var daysInMonth = self.utils.getDaysInMonth(month, year),\n days = window.document.createDocumentFragment(),\n isMultiMonth = self.config.showMonths > 1,\n prevMonthDayClass = isMultiMonth ? \"prevMonthDay hidden\" : \"prevMonthDay\",\n nextMonthDayClass = isMultiMonth ? \"nextMonthDay hidden\" : \"nextMonthDay\";\n var dayNumber = prevMonthDays + 1 - firstOfMonth,\n dayIndex = 0;\n\n for (; dayNumber <= prevMonthDays; dayNumber++, dayIndex++) {\n days.appendChild(createDay(prevMonthDayClass, new Date(year, month - 1, dayNumber), dayNumber, dayIndex));\n }\n\n for (dayNumber = 1; dayNumber <= daysInMonth; dayNumber++, dayIndex++) {\n days.appendChild(createDay(\"\", new Date(year, month, dayNumber), dayNumber, dayIndex));\n }\n\n for (var dayNum = daysInMonth + 1; dayNum <= 42 - firstOfMonth && (self.config.showMonths === 1 || dayIndex % 7 !== 0); dayNum++, dayIndex++) {\n days.appendChild(createDay(nextMonthDayClass, new Date(year, month + 1, dayNum % daysInMonth), dayNum, dayIndex));\n }\n\n var dayContainer = createElement(\"div\", \"dayContainer\");\n dayContainer.appendChild(days);\n return dayContainer;\n }\n\n function buildDays() {\n if (self.daysContainer === undefined) {\n return;\n }\n\n clearNode(self.daysContainer);\n if (self.weekNumbers) clearNode(self.weekNumbers);\n var frag = document.createDocumentFragment();\n\n for (var i = 0; i < self.config.showMonths; i++) {\n var d = new Date(self.currentYear, self.currentMonth, 1);\n d.setMonth(self.currentMonth + i);\n frag.appendChild(buildMonthDays(d.getFullYear(), d.getMonth()));\n }\n\n self.daysContainer.appendChild(frag);\n self.days = self.daysContainer.firstChild;\n\n if (self.config.mode === \"range\" && self.selectedDates.length === 1) {\n onMouseOver();\n }\n }\n\n function buildMonthSwitch() {\n if (self.config.showMonths > 1 || self.config.monthSelectorType !== \"dropdown\") return;\n\n var shouldBuildMonth = function shouldBuildMonth(month) {\n if (self.config.minDate !== undefined && self.currentYear === self.config.minDate.getFullYear() && month < self.config.minDate.getMonth()) {\n return false;\n }\n\n return !(self.config.maxDate !== undefined && self.currentYear === self.config.maxDate.getFullYear() && month > self.config.maxDate.getMonth());\n };\n\n self.monthsDropdownContainer.tabIndex = -1;\n self.monthsDropdownContainer.innerHTML = \"\";\n\n for (var i = 0; i < 12; i++) {\n if (!shouldBuildMonth(i)) continue;\n var month = createElement(\"option\", \"flatpickr-monthDropdown-month\");\n month.value = new Date(self.currentYear, i).getMonth().toString();\n month.textContent = monthToStr(i, self.config.shorthandCurrentMonth, self.l10n);\n month.tabIndex = -1;\n\n if (self.currentMonth === i) {\n month.selected = true;\n }\n\n self.monthsDropdownContainer.appendChild(month);\n }\n }\n\n function buildMonth() {\n var container = createElement(\"div\", \"flatpickr-month\");\n var monthNavFragment = window.document.createDocumentFragment();\n var monthElement;\n\n if (self.config.showMonths > 1 || self.config.monthSelectorType === \"static\") {\n monthElement = createElement(\"span\", \"cur-month\");\n } else {\n self.monthsDropdownContainer = createElement(\"select\", \"flatpickr-monthDropdown-months\");\n self.monthsDropdownContainer.setAttribute(\"aria-label\", self.l10n.monthAriaLabel);\n bind(self.monthsDropdownContainer, \"change\", function (e) {\n var target = getEventTarget(e);\n var selectedMonth = parseInt(target.value, 10);\n self.changeMonth(selectedMonth - self.currentMonth);\n triggerEvent(\"onMonthChange\");\n });\n buildMonthSwitch();\n monthElement = self.monthsDropdownContainer;\n }\n\n var yearInput = createNumberInput(\"cur-year\", {\n tabindex: \"-1\"\n });\n var yearElement = yearInput.getElementsByTagName(\"input\")[0];\n yearElement.setAttribute(\"aria-label\", self.l10n.yearAriaLabel);\n\n if (self.config.minDate) {\n yearElement.setAttribute(\"min\", self.config.minDate.getFullYear().toString());\n }\n\n if (self.config.maxDate) {\n yearElement.setAttribute(\"max\", self.config.maxDate.getFullYear().toString());\n yearElement.disabled = !!self.config.minDate && self.config.minDate.getFullYear() === self.config.maxDate.getFullYear();\n }\n\n var currentMonth = createElement(\"div\", \"flatpickr-current-month\");\n currentMonth.appendChild(monthElement);\n currentMonth.appendChild(yearInput);\n monthNavFragment.appendChild(currentMonth);\n container.appendChild(monthNavFragment);\n return {\n container: container,\n yearElement: yearElement,\n monthElement: monthElement\n };\n }\n\n function buildMonths() {\n clearNode(self.monthNav);\n self.monthNav.appendChild(self.prevMonthNav);\n\n if (self.config.showMonths) {\n self.yearElements = [];\n self.monthElements = [];\n }\n\n for (var m = self.config.showMonths; m--;) {\n var month = buildMonth();\n self.yearElements.push(month.yearElement);\n self.monthElements.push(month.monthElement);\n self.monthNav.appendChild(month.container);\n }\n\n self.monthNav.appendChild(self.nextMonthNav);\n }\n\n function buildMonthNav() {\n self.monthNav = createElement(\"div\", \"flatpickr-months\");\n self.yearElements = [];\n self.monthElements = [];\n self.prevMonthNav = createElement(\"span\", \"flatpickr-prev-month\");\n self.prevMonthNav.innerHTML = self.config.prevArrow;\n self.nextMonthNav = createElement(\"span\", \"flatpickr-next-month\");\n self.nextMonthNav.innerHTML = self.config.nextArrow;\n buildMonths();\n Object.defineProperty(self, \"_hidePrevMonthArrow\", {\n get: function get() {\n return self.__hidePrevMonthArrow;\n },\n set: function set(bool) {\n if (self.__hidePrevMonthArrow !== bool) {\n toggleClass(self.prevMonthNav, \"flatpickr-disabled\", bool);\n self.__hidePrevMonthArrow = bool;\n }\n }\n });\n Object.defineProperty(self, \"_hideNextMonthArrow\", {\n get: function get() {\n return self.__hideNextMonthArrow;\n },\n set: function set(bool) {\n if (self.__hideNextMonthArrow !== bool) {\n toggleClass(self.nextMonthNav, \"flatpickr-disabled\", bool);\n self.__hideNextMonthArrow = bool;\n }\n }\n });\n self.currentYearElement = self.yearElements[0];\n updateNavigationCurrentMonth();\n return self.monthNav;\n }\n\n function buildTime() {\n self.calendarContainer.classList.add(\"hasTime\");\n if (self.config.noCalendar) self.calendarContainer.classList.add(\"noCalendar\");\n var defaults = getDefaultHours(self.config);\n self.timeContainer = createElement(\"div\", \"flatpickr-time\");\n self.timeContainer.tabIndex = -1;\n var separator = createElement(\"span\", \"flatpickr-time-separator\", \":\");\n var hourInput = createNumberInput(\"flatpickr-hour\", {\n \"aria-label\": self.l10n.hourAriaLabel\n });\n self.hourElement = hourInput.getElementsByTagName(\"input\")[0];\n var minuteInput = createNumberInput(\"flatpickr-minute\", {\n \"aria-label\": self.l10n.minuteAriaLabel\n });\n self.minuteElement = minuteInput.getElementsByTagName(\"input\")[0];\n self.hourElement.tabIndex = self.minuteElement.tabIndex = -1;\n self.hourElement.value = pad(self.latestSelectedDateObj ? self.latestSelectedDateObj.getHours() : self.config.time_24hr ? defaults.hours : military2ampm(defaults.hours));\n self.minuteElement.value = pad(self.latestSelectedDateObj ? self.latestSelectedDateObj.getMinutes() : defaults.minutes);\n self.hourElement.setAttribute(\"step\", self.config.hourIncrement.toString());\n self.minuteElement.setAttribute(\"step\", self.config.minuteIncrement.toString());\n self.hourElement.setAttribute(\"min\", self.config.time_24hr ? \"0\" : \"1\");\n self.hourElement.setAttribute(\"max\", self.config.time_24hr ? \"23\" : \"12\");\n self.hourElement.setAttribute(\"maxlength\", \"2\");\n self.minuteElement.setAttribute(\"min\", \"0\");\n self.minuteElement.setAttribute(\"max\", \"59\");\n self.minuteElement.setAttribute(\"maxlength\", \"2\");\n self.timeContainer.appendChild(hourInput);\n self.timeContainer.appendChild(separator);\n self.timeContainer.appendChild(minuteInput);\n if (self.config.time_24hr) self.timeContainer.classList.add(\"time24hr\");\n\n if (self.config.enableSeconds) {\n self.timeContainer.classList.add(\"hasSeconds\");\n var secondInput = createNumberInput(\"flatpickr-second\");\n self.secondElement = secondInput.getElementsByTagName(\"input\")[0];\n self.secondElement.value = pad(self.latestSelectedDateObj ? self.latestSelectedDateObj.getSeconds() : defaults.seconds);\n self.secondElement.setAttribute(\"step\", self.minuteElement.getAttribute(\"step\"));\n self.secondElement.setAttribute(\"min\", \"0\");\n self.secondElement.setAttribute(\"max\", \"59\");\n self.secondElement.setAttribute(\"maxlength\", \"2\");\n self.timeContainer.appendChild(createElement(\"span\", \"flatpickr-time-separator\", \":\"));\n self.timeContainer.appendChild(secondInput);\n }\n\n if (!self.config.time_24hr) {\n self.amPM = createElement(\"span\", \"flatpickr-am-pm\", self.l10n.amPM[int((self.latestSelectedDateObj ? self.hourElement.value : self.config.defaultHour) > 11)]);\n self.amPM.title = self.l10n.toggleTitle;\n self.amPM.tabIndex = -1;\n self.timeContainer.appendChild(self.amPM);\n }\n\n return self.timeContainer;\n }\n\n function buildWeekdays() {\n if (!self.weekdayContainer) self.weekdayContainer = createElement(\"div\", \"flatpickr-weekdays\");else clearNode(self.weekdayContainer);\n\n for (var i = self.config.showMonths; i--;) {\n var container = createElement(\"div\", \"flatpickr-weekdaycontainer\");\n self.weekdayContainer.appendChild(container);\n }\n\n updateWeekdays();\n return self.weekdayContainer;\n }\n\n function updateWeekdays() {\n if (!self.weekdayContainer) {\n return;\n }\n\n var firstDayOfWeek = self.l10n.firstDayOfWeek;\n\n var weekdays = _toConsumableArray(self.l10n.weekdays.shorthand);\n\n if (firstDayOfWeek > 0 && firstDayOfWeek < weekdays.length) {\n weekdays = [].concat(_toConsumableArray(weekdays.splice(firstDayOfWeek, weekdays.length)), _toConsumableArray(weekdays.splice(0, firstDayOfWeek)));\n }\n\n for (var i = self.config.showMonths; i--;) {\n self.weekdayContainer.children[i].innerHTML = \"\\n \\n \".concat(weekdays.join(\"\"), \"\\n \\n \");\n }\n }\n\n function buildWeeks() {\n self.calendarContainer.classList.add(\"hasWeeks\");\n var weekWrapper = createElement(\"div\", \"flatpickr-weekwrapper\");\n weekWrapper.appendChild(createElement(\"span\", \"flatpickr-weekday\", self.l10n.weekAbbreviation));\n var weekNumbers = createElement(\"div\", \"flatpickr-weeks\");\n weekWrapper.appendChild(weekNumbers);\n return {\n weekWrapper: weekWrapper,\n weekNumbers: weekNumbers\n };\n }\n\n function changeMonth(value) {\n var isOffset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;\n var delta = isOffset ? value : value - self.currentMonth;\n if (delta < 0 && self._hidePrevMonthArrow === true || delta > 0 && self._hideNextMonthArrow === true) return;\n self.currentMonth += delta;\n\n if (self.currentMonth < 0 || self.currentMonth > 11) {\n self.currentYear += self.currentMonth > 11 ? 1 : -1;\n self.currentMonth = (self.currentMonth + 12) % 12;\n triggerEvent(\"onYearChange\");\n buildMonthSwitch();\n }\n\n buildDays();\n triggerEvent(\"onMonthChange\");\n updateNavigationCurrentMonth();\n }\n\n function clear() {\n var triggerChangeEvent = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;\n var toInitial = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;\n self.input.value = \"\";\n if (self.altInput !== undefined) self.altInput.value = \"\";\n if (self.mobileInput !== undefined) self.mobileInput.value = \"\";\n self.selectedDates = [];\n self.latestSelectedDateObj = undefined;\n\n if (toInitial === true) {\n self.currentYear = self._initialDate.getFullYear();\n self.currentMonth = self._initialDate.getMonth();\n }\n\n if (self.config.enableTime === true) {\n var _getDefaultHours = getDefaultHours(self.config),\n hours = _getDefaultHours.hours,\n minutes = _getDefaultHours.minutes,\n seconds = _getDefaultHours.seconds;\n\n setHours(hours, minutes, seconds);\n }\n\n self.redraw();\n if (triggerChangeEvent) triggerEvent(\"onChange\");\n }\n\n function close() {\n self.isOpen = false;\n\n if (!self.isMobile) {\n if (self.calendarContainer !== undefined) {\n self.calendarContainer.classList.remove(\"open\");\n }\n\n if (self._input !== undefined) {\n self._input.classList.remove(\"active\");\n }\n }\n\n triggerEvent(\"onClose\");\n }\n\n function destroy() {\n if (self.config !== undefined) triggerEvent(\"onDestroy\");\n\n for (var i = self._handlers.length; i--;) {\n self._handlers[i].remove();\n }\n\n self._handlers = [];\n\n if (self.mobileInput) {\n if (self.mobileInput.parentNode) self.mobileInput.parentNode.removeChild(self.mobileInput);\n self.mobileInput = undefined;\n } else if (self.calendarContainer && self.calendarContainer.parentNode) {\n if (self.config.static && self.calendarContainer.parentNode) {\n var wrapper = self.calendarContainer.parentNode;\n wrapper.lastChild && wrapper.removeChild(wrapper.lastChild);\n\n if (wrapper.parentNode) {\n while (wrapper.firstChild) {\n wrapper.parentNode.insertBefore(wrapper.firstChild, wrapper);\n }\n\n wrapper.parentNode.removeChild(wrapper);\n }\n } else self.calendarContainer.parentNode.removeChild(self.calendarContainer);\n }\n\n if (self.altInput) {\n self.input.type = \"text\";\n if (self.altInput.parentNode) self.altInput.parentNode.removeChild(self.altInput);\n delete self.altInput;\n }\n\n if (self.input) {\n self.input.type = self.input._type;\n self.input.classList.remove(\"flatpickr-input\");\n self.input.removeAttribute(\"readonly\");\n }\n\n [\"_showTimeInput\", \"latestSelectedDateObj\", \"_hideNextMonthArrow\", \"_hidePrevMonthArrow\", \"__hideNextMonthArrow\", \"__hidePrevMonthArrow\", \"isMobile\", \"isOpen\", \"selectedDateElem\", \"minDateHasTime\", \"maxDateHasTime\", \"days\", \"daysContainer\", \"_input\", \"_positionElement\", \"innerContainer\", \"rContainer\", \"monthNav\", \"todayDateElem\", \"calendarContainer\", \"weekdayContainer\", \"prevMonthNav\", \"nextMonthNav\", \"monthsDropdownContainer\", \"currentMonthElement\", \"currentYearElement\", \"navigationCurrentMonth\", \"selectedDateElem\", \"config\"].forEach(function (k) {\n try {\n delete self[k];\n } catch (_) {}\n });\n }\n\n function isCalendarElem(elem) {\n if (self.config.appendTo && self.config.appendTo.contains(elem)) return true;\n return self.calendarContainer.contains(elem);\n }\n\n function documentClick(e) {\n if (self.isOpen && !self.config.inline) {\n var eventTarget = getEventTarget(e);\n var isCalendarElement = isCalendarElem(eventTarget);\n var isInput = eventTarget === self.input || eventTarget === self.altInput || self.element.contains(eventTarget) || e.path && e.path.indexOf && (~e.path.indexOf(self.input) || ~e.path.indexOf(self.altInput));\n var lostFocus = e.type === \"blur\" ? isInput && e.relatedTarget && !isCalendarElem(e.relatedTarget) : !isInput && !isCalendarElement && !isCalendarElem(e.relatedTarget);\n var isIgnored = !self.config.ignoredFocusElements.some(function (elem) {\n return elem.contains(eventTarget);\n });\n\n if (lostFocus && isIgnored) {\n if (self.timeContainer !== undefined && self.minuteElement !== undefined && self.hourElement !== undefined && self.input.value !== \"\" && self.input.value !== undefined) {\n updateTime();\n }\n\n self.close();\n\n if (self.config && self.config.mode === \"range\" && self.selectedDates.length === 1) {\n self.clear(false);\n self.redraw();\n }\n }\n }\n }\n\n function changeYear(newYear) {\n if (!newYear || self.config.minDate && newYear < self.config.minDate.getFullYear() || self.config.maxDate && newYear > self.config.maxDate.getFullYear()) return;\n var newYearNum = newYear,\n isNewYear = self.currentYear !== newYearNum;\n self.currentYear = newYearNum || self.currentYear;\n\n if (self.config.maxDate && self.currentYear === self.config.maxDate.getFullYear()) {\n self.currentMonth = Math.min(self.config.maxDate.getMonth(), self.currentMonth);\n } else if (self.config.minDate && self.currentYear === self.config.minDate.getFullYear()) {\n self.currentMonth = Math.max(self.config.minDate.getMonth(), self.currentMonth);\n }\n\n if (isNewYear) {\n self.redraw();\n triggerEvent(\"onYearChange\");\n buildMonthSwitch();\n }\n }\n\n function isEnabled(date) {\n var timeless = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;\n\n var _a;\n\n var dateToCheck = self.parseDate(date, undefined, timeless);\n if (self.config.minDate && dateToCheck && compareDates(dateToCheck, self.config.minDate, timeless !== undefined ? timeless : !self.minDateHasTime) < 0 || self.config.maxDate && dateToCheck && compareDates(dateToCheck, self.config.maxDate, timeless !== undefined ? timeless : !self.maxDateHasTime) > 0) return false;\n if (!self.config.enable && self.config.disable.length === 0) return true;\n if (dateToCheck === undefined) return false;\n var bool = !!self.config.enable,\n array = (_a = self.config.enable) !== null && _a !== void 0 ? _a : self.config.disable;\n\n for (var i = 0, d; i < array.length; i++) {\n d = array[i];\n if (typeof d === \"function\" && d(dateToCheck)) return bool;else if (d instanceof Date && dateToCheck !== undefined && d.getTime() === dateToCheck.getTime()) return bool;else if (typeof d === \"string\") {\n var parsed = self.parseDate(d, undefined, true);\n return parsed && parsed.getTime() === dateToCheck.getTime() ? bool : !bool;\n } else if (_typeof(d) === \"object\" && dateToCheck !== undefined && d.from && d.to && dateToCheck.getTime() >= d.from.getTime() && dateToCheck.getTime() <= d.to.getTime()) return bool;\n }\n\n return !bool;\n }\n\n function isInView(elem) {\n if (self.daysContainer !== undefined) return elem.className.indexOf(\"hidden\") === -1 && elem.className.indexOf(\"flatpickr-disabled\") === -1 && self.daysContainer.contains(elem);\n return false;\n }\n\n function onBlur(e) {\n var isInput = e.target === self._input;\n\n if (isInput && (self.selectedDates.length > 0 || self._input.value.length > 0) && !(e.relatedTarget && isCalendarElem(e.relatedTarget))) {\n self.setDate(self._input.value, true, e.target === self.altInput ? self.config.altFormat : self.config.dateFormat);\n }\n }\n\n function onKeyDown(e) {\n var eventTarget = getEventTarget(e);\n var isInput = self.config.wrap ? element.contains(eventTarget) : eventTarget === self._input;\n var allowInput = self.config.allowInput;\n var allowKeydown = self.isOpen && (!allowInput || !isInput);\n var allowInlineKeydown = self.config.inline && isInput && !allowInput;\n\n if (e.keyCode === 13 && isInput) {\n if (allowInput) {\n self.setDate(self._input.value, true, eventTarget === self.altInput ? self.config.altFormat : self.config.dateFormat);\n return eventTarget.blur();\n } else {\n self.open();\n }\n } else if (isCalendarElem(eventTarget) || allowKeydown || allowInlineKeydown) {\n var isTimeObj = !!self.timeContainer && self.timeContainer.contains(eventTarget);\n\n switch (e.keyCode) {\n case 13:\n if (isTimeObj) {\n e.preventDefault();\n updateTime();\n focusAndClose();\n } else selectDate(e);\n\n break;\n\n case 27:\n e.preventDefault();\n focusAndClose();\n break;\n\n case 8:\n case 46:\n if (isInput && !self.config.allowInput) {\n e.preventDefault();\n self.clear();\n }\n\n break;\n\n case 37:\n case 39:\n if (!isTimeObj && !isInput) {\n e.preventDefault();\n\n if (self.daysContainer !== undefined && (allowInput === false || document.activeElement && isInView(document.activeElement))) {\n var _delta = e.keyCode === 39 ? 1 : -1;\n\n if (!e.ctrlKey) focusOnDay(undefined, _delta);else {\n e.stopPropagation();\n changeMonth(_delta);\n focusOnDay(getFirstAvailableDay(1), 0);\n }\n }\n } else if (self.hourElement) self.hourElement.focus();\n\n break;\n\n case 38:\n case 40:\n e.preventDefault();\n var delta = e.keyCode === 40 ? 1 : -1;\n\n if (self.daysContainer && eventTarget.$i !== undefined || eventTarget === self.input || eventTarget === self.altInput) {\n if (e.ctrlKey) {\n e.stopPropagation();\n changeYear(self.currentYear - delta);\n focusOnDay(getFirstAvailableDay(1), 0);\n } else if (!isTimeObj) focusOnDay(undefined, delta * 7);\n } else if (eventTarget === self.currentYearElement) {\n changeYear(self.currentYear - delta);\n } else if (self.config.enableTime) {\n if (!isTimeObj && self.hourElement) self.hourElement.focus();\n updateTime(e);\n\n self._debouncedChange();\n }\n\n break;\n\n case 9:\n if (isTimeObj) {\n var elems = [self.hourElement, self.minuteElement, self.secondElement, self.amPM].concat(self.pluginElements).filter(function (x) {\n return x;\n });\n var i = elems.indexOf(eventTarget);\n\n if (i !== -1) {\n var target = elems[i + (e.shiftKey ? -1 : 1)];\n e.preventDefault();\n\n (target || self._input).focus();\n }\n } else if (!self.config.noCalendar && self.daysContainer && self.daysContainer.contains(eventTarget) && e.shiftKey) {\n e.preventDefault();\n\n self._input.focus();\n }\n\n break;\n\n default:\n break;\n }\n }\n\n if (self.amPM !== undefined && eventTarget === self.amPM) {\n switch (e.key) {\n case self.l10n.amPM[0].charAt(0):\n case self.l10n.amPM[0].charAt(0).toLowerCase():\n self.amPM.textContent = self.l10n.amPM[0];\n setHoursFromInputs();\n updateValue();\n break;\n\n case self.l10n.amPM[1].charAt(0):\n case self.l10n.amPM[1].charAt(0).toLowerCase():\n self.amPM.textContent = self.l10n.amPM[1];\n setHoursFromInputs();\n updateValue();\n break;\n }\n }\n\n if (isInput || isCalendarElem(eventTarget)) {\n triggerEvent(\"onKeyDown\", e);\n }\n }\n\n function onMouseOver(elem) {\n if (self.selectedDates.length !== 1 || elem && (!elem.classList.contains(\"flatpickr-day\") || elem.classList.contains(\"flatpickr-disabled\"))) return;\n var hoverDate = elem ? elem.dateObj.getTime() : self.days.firstElementChild.dateObj.getTime(),\n initialDate = self.parseDate(self.selectedDates[0], undefined, true).getTime(),\n rangeStartDate = Math.min(hoverDate, self.selectedDates[0].getTime()),\n rangeEndDate = Math.max(hoverDate, self.selectedDates[0].getTime());\n var containsDisabled = false;\n var minRange = 0,\n maxRange = 0;\n\n for (var t = rangeStartDate; t < rangeEndDate; t += duration.DAY) {\n if (!isEnabled(new Date(t), true)) {\n containsDisabled = containsDisabled || t > rangeStartDate && t < rangeEndDate;\n if (t < initialDate && (!minRange || t > minRange)) minRange = t;else if (t > initialDate && (!maxRange || t < maxRange)) maxRange = t;\n }\n }\n\n for (var m = 0; m < self.config.showMonths; m++) {\n var month = self.daysContainer.children[m];\n\n var _loop = function _loop(i, l) {\n var dayElem = month.children[i],\n date = dayElem.dateObj;\n var timestamp = date.getTime();\n var outOfRange = minRange > 0 && timestamp < minRange || maxRange > 0 && timestamp > maxRange;\n\n if (outOfRange) {\n dayElem.classList.add(\"notAllowed\");\n [\"inRange\", \"startRange\", \"endRange\"].forEach(function (c) {\n dayElem.classList.remove(c);\n });\n return \"continue\";\n } else if (containsDisabled && !outOfRange) return \"continue\";\n\n [\"startRange\", \"inRange\", \"endRange\", \"notAllowed\"].forEach(function (c) {\n dayElem.classList.remove(c);\n });\n\n if (elem !== undefined) {\n elem.classList.add(hoverDate <= self.selectedDates[0].getTime() ? \"startRange\" : \"endRange\");\n if (initialDate < hoverDate && timestamp === initialDate) dayElem.classList.add(\"startRange\");else if (initialDate > hoverDate && timestamp === initialDate) dayElem.classList.add(\"endRange\");\n if (timestamp >= minRange && (maxRange === 0 || timestamp <= maxRange) && isBetween(timestamp, initialDate, hoverDate)) dayElem.classList.add(\"inRange\");\n }\n };\n\n for (var i = 0, l = month.children.length; i < l; i++) {\n var _ret = _loop(i, l);\n\n if (_ret === \"continue\") continue;\n }\n }\n }\n\n function onResize() {\n if (self.isOpen && !self.config.static && !self.config.inline) positionCalendar();\n }\n\n function open(e) {\n var positionElement = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : self._positionElement;\n\n if (self.isMobile === true) {\n if (e) {\n e.preventDefault();\n var eventTarget = getEventTarget(e);\n\n if (eventTarget) {\n eventTarget.blur();\n }\n }\n\n if (self.mobileInput !== undefined) {\n self.mobileInput.focus();\n self.mobileInput.click();\n }\n\n triggerEvent(\"onOpen\");\n return;\n } else if (self._input.disabled || self.config.inline) {\n return;\n }\n\n var wasOpen = self.isOpen;\n self.isOpen = true;\n\n if (!wasOpen) {\n self.calendarContainer.classList.add(\"open\");\n\n self._input.classList.add(\"active\");\n\n triggerEvent(\"onOpen\");\n positionCalendar(positionElement);\n }\n\n if (self.config.enableTime === true && self.config.noCalendar === true) {\n if (self.config.allowInput === false && (e === undefined || !self.timeContainer.contains(e.relatedTarget))) {\n setTimeout(function () {\n return self.hourElement.select();\n }, 50);\n }\n }\n }\n\n function minMaxDateSetter(type) {\n return function (date) {\n var dateObj = self.config[\"_\".concat(type, \"Date\")] = self.parseDate(date, self.config.dateFormat);\n var inverseDateObj = self.config[\"_\".concat(type === \"min\" ? \"max\" : \"min\", \"Date\")];\n\n if (dateObj !== undefined) {\n self[type === \"min\" ? \"minDateHasTime\" : \"maxDateHasTime\"] = dateObj.getHours() > 0 || dateObj.getMinutes() > 0 || dateObj.getSeconds() > 0;\n }\n\n if (self.selectedDates) {\n self.selectedDates = self.selectedDates.filter(function (d) {\n return isEnabled(d);\n });\n if (!self.selectedDates.length && type === \"min\") setHoursFromDate(dateObj);\n updateValue();\n }\n\n if (self.daysContainer) {\n redraw();\n if (dateObj !== undefined) self.currentYearElement[type] = dateObj.getFullYear().toString();else self.currentYearElement.removeAttribute(type);\n self.currentYearElement.disabled = !!inverseDateObj && dateObj !== undefined && inverseDateObj.getFullYear() === dateObj.getFullYear();\n }\n };\n }\n\n function parseConfig() {\n var boolOpts = [\"wrap\", \"weekNumbers\", \"allowInput\", \"allowInvalidPreload\", \"clickOpens\", \"time_24hr\", \"enableTime\", \"noCalendar\", \"altInput\", \"shorthandCurrentMonth\", \"inline\", \"static\", \"enableSeconds\", \"disableMobile\"];\n var userConfig = Object.assign(Object.assign({}, JSON.parse(JSON.stringify(element.dataset || {}))), instanceConfig);\n var formats = {};\n self.config.parseDate = userConfig.parseDate;\n self.config.formatDate = userConfig.formatDate;\n Object.defineProperty(self.config, \"enable\", {\n get: function get() {\n return self.config._enable;\n },\n set: function set(dates) {\n self.config._enable = parseDateRules(dates);\n }\n });\n Object.defineProperty(self.config, \"disable\", {\n get: function get() {\n return self.config._disable;\n },\n set: function set(dates) {\n self.config._disable = parseDateRules(dates);\n }\n });\n var timeMode = userConfig.mode === \"time\";\n\n if (!userConfig.dateFormat && (userConfig.enableTime || timeMode)) {\n var defaultDateFormat = flatpickr.defaultConfig.dateFormat || defaultOptions.dateFormat;\n formats.dateFormat = userConfig.noCalendar || timeMode ? \"H:i\" + (userConfig.enableSeconds ? \":S\" : \"\") : defaultDateFormat + \" H:i\" + (userConfig.enableSeconds ? \":S\" : \"\");\n }\n\n if (userConfig.altInput && (userConfig.enableTime || timeMode) && !userConfig.altFormat) {\n var defaultAltFormat = flatpickr.defaultConfig.altFormat || defaultOptions.altFormat;\n formats.altFormat = userConfig.noCalendar || timeMode ? \"h:i\" + (userConfig.enableSeconds ? \":S K\" : \" K\") : defaultAltFormat + \" h:i\".concat(userConfig.enableSeconds ? \":S\" : \"\", \" K\");\n }\n\n Object.defineProperty(self.config, \"minDate\", {\n get: function get() {\n return self.config._minDate;\n },\n set: minMaxDateSetter(\"min\")\n });\n Object.defineProperty(self.config, \"maxDate\", {\n get: function get() {\n return self.config._maxDate;\n },\n set: minMaxDateSetter(\"max\")\n });\n\n var minMaxTimeSetter = function minMaxTimeSetter(type) {\n return function (val) {\n self.config[type === \"min\" ? \"_minTime\" : \"_maxTime\"] = self.parseDate(val, \"H:i:S\");\n };\n };\n\n Object.defineProperty(self.config, \"minTime\", {\n get: function get() {\n return self.config._minTime;\n },\n set: minMaxTimeSetter(\"min\")\n });\n Object.defineProperty(self.config, \"maxTime\", {\n get: function get() {\n return self.config._maxTime;\n },\n set: minMaxTimeSetter(\"max\")\n });\n\n if (userConfig.mode === \"time\") {\n self.config.noCalendar = true;\n self.config.enableTime = true;\n }\n\n Object.assign(self.config, formats, userConfig);\n\n for (var i = 0; i < boolOpts.length; i++) {\n self.config[boolOpts[i]] = self.config[boolOpts[i]] === true || self.config[boolOpts[i]] === \"true\";\n }\n\n HOOKS.filter(function (hook) {\n return self.config[hook] !== undefined;\n }).forEach(function (hook) {\n self.config[hook] = arrayify(self.config[hook] || []).map(bindToInstance);\n });\n self.isMobile = !self.config.disableMobile && !self.config.inline && self.config.mode === \"single\" && !self.config.disable.length && !self.config.enable && !self.config.weekNumbers && /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);\n\n for (var _i = 0; _i < self.config.plugins.length; _i++) {\n var pluginConf = self.config.plugins[_i](self) || {};\n\n for (var key in pluginConf) {\n if (HOOKS.indexOf(key) > -1) {\n self.config[key] = arrayify(pluginConf[key]).map(bindToInstance).concat(self.config[key]);\n } else if (typeof userConfig[key] === \"undefined\") self.config[key] = pluginConf[key];\n }\n }\n\n if (!userConfig.altInputClass) {\n self.config.altInputClass = getInputElem().className + \" \" + self.config.altInputClass;\n }\n\n triggerEvent(\"onParseConfig\");\n }\n\n function getInputElem() {\n return self.config.wrap ? element.querySelector(\"[data-input]\") : element;\n }\n\n function setupLocale() {\n if (_typeof(self.config.locale) !== \"object\" && typeof flatpickr.l10ns[self.config.locale] === \"undefined\") self.config.errorHandler(new Error(\"flatpickr: invalid locale \".concat(self.config.locale)));\n self.l10n = Object.assign(Object.assign({}, flatpickr.l10ns.default), _typeof(self.config.locale) === \"object\" ? self.config.locale : self.config.locale !== \"default\" ? flatpickr.l10ns[self.config.locale] : undefined);\n tokenRegex.K = \"(\".concat(self.l10n.amPM[0], \"|\").concat(self.l10n.amPM[1], \"|\").concat(self.l10n.amPM[0].toLowerCase(), \"|\").concat(self.l10n.amPM[1].toLowerCase(), \")\");\n var userConfig = Object.assign(Object.assign({}, instanceConfig), JSON.parse(JSON.stringify(element.dataset || {})));\n\n if (userConfig.time_24hr === undefined && flatpickr.defaultConfig.time_24hr === undefined) {\n self.config.time_24hr = self.l10n.time_24hr;\n }\n\n self.formatDate = createDateFormatter(self);\n self.parseDate = createDateParser({\n config: self.config,\n l10n: self.l10n\n });\n }\n\n function positionCalendar(customPositionElement) {\n if (typeof self.config.position === \"function\") {\n return void self.config.position(self, customPositionElement);\n }\n\n if (self.calendarContainer === undefined) return;\n triggerEvent(\"onPreCalendarPosition\");\n var positionElement = customPositionElement || self._positionElement;\n var calendarHeight = Array.prototype.reduce.call(self.calendarContainer.children, function (acc, child) {\n return acc + child.offsetHeight;\n }, 0),\n calendarWidth = self.calendarContainer.offsetWidth,\n configPos = self.config.position.split(\" \"),\n configPosVertical = configPos[0],\n configPosHorizontal = configPos.length > 1 ? configPos[1] : null,\n inputBounds = positionElement.getBoundingClientRect(),\n distanceFromBottom = window.innerHeight - inputBounds.bottom,\n showOnTop = configPosVertical === \"above\" || configPosVertical !== \"below\" && distanceFromBottom < calendarHeight && inputBounds.top > calendarHeight;\n var top = window.pageYOffset + inputBounds.top + (!showOnTop ? positionElement.offsetHeight + 2 : -calendarHeight - 2);\n toggleClass(self.calendarContainer, \"arrowTop\", !showOnTop);\n toggleClass(self.calendarContainer, \"arrowBottom\", showOnTop);\n if (self.config.inline) return;\n var left = window.pageXOffset + inputBounds.left;\n var isCenter = false;\n var isRight = false;\n\n if (configPosHorizontal === \"center\") {\n left -= (calendarWidth - inputBounds.width) / 2;\n isCenter = true;\n } else if (configPosHorizontal === \"right\") {\n left -= calendarWidth - inputBounds.width;\n isRight = true;\n }\n\n toggleClass(self.calendarContainer, \"arrowLeft\", !isCenter && !isRight);\n toggleClass(self.calendarContainer, \"arrowCenter\", isCenter);\n toggleClass(self.calendarContainer, \"arrowRight\", isRight);\n var right = window.document.body.offsetWidth - (window.pageXOffset + inputBounds.right);\n var rightMost = left + calendarWidth > window.document.body.offsetWidth;\n var centerMost = right + calendarWidth > window.document.body.offsetWidth;\n toggleClass(self.calendarContainer, \"rightMost\", rightMost);\n if (self.config.static) return;\n self.calendarContainer.style.top = \"\".concat(top, \"px\");\n\n if (!rightMost) {\n self.calendarContainer.style.left = \"\".concat(left, \"px\");\n self.calendarContainer.style.right = \"auto\";\n } else if (!centerMost) {\n self.calendarContainer.style.left = \"auto\";\n self.calendarContainer.style.right = \"\".concat(right, \"px\");\n } else {\n var doc = getDocumentStyleSheet();\n if (doc === undefined) return;\n var bodyWidth = window.document.body.offsetWidth;\n var centerLeft = Math.max(0, bodyWidth / 2 - calendarWidth / 2);\n var centerBefore = \".flatpickr-calendar.centerMost:before\";\n var centerAfter = \".flatpickr-calendar.centerMost:after\";\n var centerIndex = doc.cssRules.length;\n var centerStyle = \"{left:\".concat(inputBounds.left, \"px;right:auto;}\");\n toggleClass(self.calendarContainer, \"rightMost\", false);\n toggleClass(self.calendarContainer, \"centerMost\", true);\n doc.insertRule(\"\".concat(centerBefore, \",\").concat(centerAfter).concat(centerStyle), centerIndex);\n self.calendarContainer.style.left = \"\".concat(centerLeft, \"px\");\n self.calendarContainer.style.right = \"auto\";\n }\n }\n\n function getDocumentStyleSheet() {\n var editableSheet = null;\n\n for (var i = 0; i < document.styleSheets.length; i++) {\n var sheet = document.styleSheets[i];\n\n try {\n sheet.cssRules;\n } catch (err) {\n continue;\n }\n\n editableSheet = sheet;\n break;\n }\n\n return editableSheet != null ? editableSheet : createStyleSheet();\n }\n\n function createStyleSheet() {\n var style = document.createElement(\"style\");\n document.head.appendChild(style);\n return style.sheet;\n }\n\n function redraw() {\n if (self.config.noCalendar || self.isMobile) return;\n buildMonthSwitch();\n updateNavigationCurrentMonth();\n buildDays();\n }\n\n function focusAndClose() {\n self._input.focus();\n\n if (window.navigator.userAgent.indexOf(\"MSIE\") !== -1 || navigator.msMaxTouchPoints !== undefined) {\n setTimeout(self.close, 0);\n } else {\n self.close();\n }\n }\n\n function selectDate(e) {\n e.preventDefault();\n e.stopPropagation();\n\n var isSelectable = function isSelectable(day) {\n return day.classList && day.classList.contains(\"flatpickr-day\") && !day.classList.contains(\"flatpickr-disabled\") && !day.classList.contains(\"notAllowed\");\n };\n\n var t = findParent(getEventTarget(e), isSelectable);\n if (t === undefined) return;\n var target = t;\n var selectedDate = self.latestSelectedDateObj = new Date(target.dateObj.getTime());\n var shouldChangeMonth = (selectedDate.getMonth() < self.currentMonth || selectedDate.getMonth() > self.currentMonth + self.config.showMonths - 1) && self.config.mode !== \"range\";\n self.selectedDateElem = target;\n if (self.config.mode === \"single\") self.selectedDates = [selectedDate];else if (self.config.mode === \"multiple\") {\n var selectedIndex = isDateSelected(selectedDate);\n if (selectedIndex) self.selectedDates.splice(parseInt(selectedIndex), 1);else self.selectedDates.push(selectedDate);\n } else if (self.config.mode === \"range\") {\n if (self.selectedDates.length === 2) {\n self.clear(false, false);\n }\n\n self.latestSelectedDateObj = selectedDate;\n self.selectedDates.push(selectedDate);\n if (compareDates(selectedDate, self.selectedDates[0], true) !== 0) self.selectedDates.sort(function (a, b) {\n return a.getTime() - b.getTime();\n });\n }\n setHoursFromInputs();\n\n if (shouldChangeMonth) {\n var isNewYear = self.currentYear !== selectedDate.getFullYear();\n self.currentYear = selectedDate.getFullYear();\n self.currentMonth = selectedDate.getMonth();\n\n if (isNewYear) {\n triggerEvent(\"onYearChange\");\n buildMonthSwitch();\n }\n\n triggerEvent(\"onMonthChange\");\n }\n\n updateNavigationCurrentMonth();\n buildDays();\n updateValue();\n if (!shouldChangeMonth && self.config.mode !== \"range\" && self.config.showMonths === 1) focusOnDayElem(target);else if (self.selectedDateElem !== undefined && self.hourElement === undefined) {\n self.selectedDateElem && self.selectedDateElem.focus();\n }\n if (self.hourElement !== undefined) self.hourElement !== undefined && self.hourElement.focus();\n\n if (self.config.closeOnSelect) {\n var single = self.config.mode === \"single\" && !self.config.enableTime;\n var range = self.config.mode === \"range\" && self.selectedDates.length === 2 && !self.config.enableTime;\n\n if (single || range) {\n focusAndClose();\n }\n }\n\n triggerChange();\n }\n\n var CALLBACKS = {\n locale: [setupLocale, updateWeekdays],\n showMonths: [buildMonths, setCalendarWidth, buildWeekdays],\n minDate: [jumpToDate],\n maxDate: [jumpToDate],\n clickOpens: [function () {\n if (self.config.clickOpens === true) {\n bind(self._input, \"focus\", self.open);\n bind(self._input, \"click\", self.open);\n } else {\n self._input.removeEventListener(\"focus\", self.open);\n\n self._input.removeEventListener(\"click\", self.open);\n }\n }]\n };\n\n function set(option, value) {\n if (option !== null && _typeof(option) === \"object\") {\n Object.assign(self.config, option);\n\n for (var key in option) {\n if (CALLBACKS[key] !== undefined) CALLBACKS[key].forEach(function (x) {\n return x();\n });\n }\n } else {\n self.config[option] = value;\n if (CALLBACKS[option] !== undefined) CALLBACKS[option].forEach(function (x) {\n return x();\n });else if (HOOKS.indexOf(option) > -1) self.config[option] = arrayify(value);\n }\n\n self.redraw();\n updateValue(true);\n }\n\n function setSelectedDate(inputDate, format) {\n var dates = [];\n if (inputDate instanceof Array) dates = inputDate.map(function (d) {\n return self.parseDate(d, format);\n });else if (inputDate instanceof Date || typeof inputDate === \"number\") dates = [self.parseDate(inputDate, format)];else if (typeof inputDate === \"string\") {\n switch (self.config.mode) {\n case \"single\":\n case \"time\":\n dates = [self.parseDate(inputDate, format)];\n break;\n\n case \"multiple\":\n dates = inputDate.split(self.config.conjunction).map(function (date) {\n return self.parseDate(date, format);\n });\n break;\n\n case \"range\":\n dates = inputDate.split(self.l10n.rangeSeparator).map(function (date) {\n return self.parseDate(date, format);\n });\n break;\n\n default:\n break;\n }\n } else self.config.errorHandler(new Error(\"Invalid date supplied: \".concat(JSON.stringify(inputDate))));\n self.selectedDates = self.config.allowInvalidPreload ? dates : dates.filter(function (d) {\n return d instanceof Date && isEnabled(d, false);\n });\n if (self.config.mode === \"range\") self.selectedDates.sort(function (a, b) {\n return a.getTime() - b.getTime();\n });\n }\n\n function setDate(date) {\n var triggerChange = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n var format = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : self.config.dateFormat;\n if (date !== 0 && !date || date instanceof Array && date.length === 0) return self.clear(triggerChange);\n setSelectedDate(date, format);\n self.latestSelectedDateObj = self.selectedDates[self.selectedDates.length - 1];\n self.redraw();\n jumpToDate(undefined, triggerChange);\n setHoursFromDate();\n\n if (self.selectedDates.length === 0) {\n self.clear(false);\n }\n\n updateValue(triggerChange);\n if (triggerChange) triggerEvent(\"onChange\");\n }\n\n function parseDateRules(arr) {\n return arr.slice().map(function (rule) {\n if (typeof rule === \"string\" || typeof rule === \"number\" || rule instanceof Date) {\n return self.parseDate(rule, undefined, true);\n } else if (rule && _typeof(rule) === \"object\" && rule.from && rule.to) return {\n from: self.parseDate(rule.from, undefined),\n to: self.parseDate(rule.to, undefined)\n };\n\n return rule;\n }).filter(function (x) {\n return x;\n });\n }\n\n function setupDates() {\n self.selectedDates = [];\n self.now = self.parseDate(self.config.now) || new Date();\n var preloadedDate = self.config.defaultDate || ((self.input.nodeName === \"INPUT\" || self.input.nodeName === \"TEXTAREA\") && self.input.placeholder && self.input.value === self.input.placeholder ? null : self.input.value);\n if (preloadedDate) setSelectedDate(preloadedDate, self.config.dateFormat);\n self._initialDate = self.selectedDates.length > 0 ? self.selectedDates[0] : self.config.minDate && self.config.minDate.getTime() > self.now.getTime() ? self.config.minDate : self.config.maxDate && self.config.maxDate.getTime() < self.now.getTime() ? self.config.maxDate : self.now;\n self.currentYear = self._initialDate.getFullYear();\n self.currentMonth = self._initialDate.getMonth();\n if (self.selectedDates.length > 0) self.latestSelectedDateObj = self.selectedDates[0];\n if (self.config.minTime !== undefined) self.config.minTime = self.parseDate(self.config.minTime, \"H:i\");\n if (self.config.maxTime !== undefined) self.config.maxTime = self.parseDate(self.config.maxTime, \"H:i\");\n self.minDateHasTime = !!self.config.minDate && (self.config.minDate.getHours() > 0 || self.config.minDate.getMinutes() > 0 || self.config.minDate.getSeconds() > 0);\n self.maxDateHasTime = !!self.config.maxDate && (self.config.maxDate.getHours() > 0 || self.config.maxDate.getMinutes() > 0 || self.config.maxDate.getSeconds() > 0);\n }\n\n function setupInputs() {\n self.input = getInputElem();\n\n if (!self.input) {\n self.config.errorHandler(new Error(\"Invalid input element specified\"));\n return;\n }\n\n self.input._type = self.input.type;\n self.input.type = \"text\";\n self.input.classList.add(\"flatpickr-input\");\n self._input = self.input;\n\n if (self.config.altInput) {\n self.altInput = createElement(self.input.nodeName, self.config.altInputClass);\n self._input = self.altInput;\n self.altInput.placeholder = self.input.placeholder;\n self.altInput.disabled = self.input.disabled;\n self.altInput.required = self.input.required;\n self.altInput.tabIndex = self.input.tabIndex;\n self.altInput.type = \"text\";\n self.input.setAttribute(\"type\", \"hidden\");\n if (!self.config.static && self.input.parentNode) self.input.parentNode.insertBefore(self.altInput, self.input.nextSibling);\n }\n\n if (!self.config.allowInput) self._input.setAttribute(\"readonly\", \"readonly\");\n self._positionElement = self.config.positionElement || self._input;\n }\n\n function setupMobile() {\n var inputType = self.config.enableTime ? self.config.noCalendar ? \"time\" : \"datetime-local\" : \"date\";\n self.mobileInput = createElement(\"input\", self.input.className + \" flatpickr-mobile\");\n self.mobileInput.tabIndex = 1;\n self.mobileInput.type = inputType;\n self.mobileInput.disabled = self.input.disabled;\n self.mobileInput.required = self.input.required;\n self.mobileInput.placeholder = self.input.placeholder;\n self.mobileFormatStr = inputType === \"datetime-local\" ? \"Y-m-d\\\\TH:i:S\" : inputType === \"date\" ? \"Y-m-d\" : \"H:i:S\";\n\n if (self.selectedDates.length > 0) {\n self.mobileInput.defaultValue = self.mobileInput.value = self.formatDate(self.selectedDates[0], self.mobileFormatStr);\n }\n\n if (self.config.minDate) self.mobileInput.min = self.formatDate(self.config.minDate, \"Y-m-d\");\n if (self.config.maxDate) self.mobileInput.max = self.formatDate(self.config.maxDate, \"Y-m-d\");\n if (self.input.getAttribute(\"step\")) self.mobileInput.step = String(self.input.getAttribute(\"step\"));\n self.input.type = \"hidden\";\n if (self.altInput !== undefined) self.altInput.type = \"hidden\";\n\n try {\n if (self.input.parentNode) self.input.parentNode.insertBefore(self.mobileInput, self.input.nextSibling);\n } catch (_a) {}\n\n bind(self.mobileInput, \"change\", function (e) {\n self.setDate(getEventTarget(e).value, false, self.mobileFormatStr);\n triggerEvent(\"onChange\");\n triggerEvent(\"onClose\");\n });\n }\n\n function toggle(e) {\n if (self.isOpen === true) return self.close();\n self.open(e);\n }\n\n function triggerEvent(event, data) {\n if (self.config === undefined) return;\n var hooks = self.config[event];\n\n if (hooks !== undefined && hooks.length > 0) {\n for (var i = 0; hooks[i] && i < hooks.length; i++) {\n hooks[i](self.selectedDates, self.input.value, self, data);\n }\n }\n\n if (event === \"onChange\") {\n self.input.dispatchEvent(createEvent(\"change\"));\n self.input.dispatchEvent(createEvent(\"input\"));\n }\n }\n\n function createEvent(name) {\n var e = document.createEvent(\"Event\");\n e.initEvent(name, true, true);\n return e;\n }\n\n function isDateSelected(date) {\n for (var i = 0; i < self.selectedDates.length; i++) {\n if (compareDates(self.selectedDates[i], date) === 0) return \"\" + i;\n }\n\n return false;\n }\n\n function isDateInRange(date) {\n if (self.config.mode !== \"range\" || self.selectedDates.length < 2) return false;\n return compareDates(date, self.selectedDates[0]) >= 0 && compareDates(date, self.selectedDates[1]) <= 0;\n }\n\n function updateNavigationCurrentMonth() {\n if (self.config.noCalendar || self.isMobile || !self.monthNav) return;\n self.yearElements.forEach(function (yearElement, i) {\n var d = new Date(self.currentYear, self.currentMonth, 1);\n d.setMonth(self.currentMonth + i);\n\n if (self.config.showMonths > 1 || self.config.monthSelectorType === \"static\") {\n self.monthElements[i].textContent = monthToStr(d.getMonth(), self.config.shorthandCurrentMonth, self.l10n) + \" \";\n } else {\n self.monthsDropdownContainer.value = d.getMonth().toString();\n }\n\n yearElement.value = d.getFullYear().toString();\n });\n self._hidePrevMonthArrow = self.config.minDate !== undefined && (self.currentYear === self.config.minDate.getFullYear() ? self.currentMonth <= self.config.minDate.getMonth() : self.currentYear < self.config.minDate.getFullYear());\n self._hideNextMonthArrow = self.config.maxDate !== undefined && (self.currentYear === self.config.maxDate.getFullYear() ? self.currentMonth + 1 > self.config.maxDate.getMonth() : self.currentYear > self.config.maxDate.getFullYear());\n }\n\n function getDateStr(format) {\n return self.selectedDates.map(function (dObj) {\n return self.formatDate(dObj, format);\n }).filter(function (d, i, arr) {\n return self.config.mode !== \"range\" || self.config.enableTime || arr.indexOf(d) === i;\n }).join(self.config.mode !== \"range\" ? self.config.conjunction : self.l10n.rangeSeparator);\n }\n\n function updateValue() {\n var triggerChange = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;\n\n if (self.mobileInput !== undefined && self.mobileFormatStr) {\n self.mobileInput.value = self.latestSelectedDateObj !== undefined ? self.formatDate(self.latestSelectedDateObj, self.mobileFormatStr) : \"\";\n }\n\n self.input.value = getDateStr(self.config.dateFormat);\n\n if (self.altInput !== undefined) {\n self.altInput.value = getDateStr(self.config.altFormat);\n }\n\n if (triggerChange !== false) triggerEvent(\"onValueUpdate\");\n }\n\n function onMonthNavClick(e) {\n var eventTarget = getEventTarget(e);\n var isPrevMonth = self.prevMonthNav.contains(eventTarget);\n var isNextMonth = self.nextMonthNav.contains(eventTarget);\n\n if (isPrevMonth || isNextMonth) {\n changeMonth(isPrevMonth ? -1 : 1);\n } else if (self.yearElements.indexOf(eventTarget) >= 0) {\n eventTarget.select();\n } else if (eventTarget.classList.contains(\"arrowUp\")) {\n self.changeYear(self.currentYear + 1);\n } else if (eventTarget.classList.contains(\"arrowDown\")) {\n self.changeYear(self.currentYear - 1);\n }\n }\n\n function timeWrapper(e) {\n e.preventDefault();\n var isKeyDown = e.type === \"keydown\",\n eventTarget = getEventTarget(e),\n input = eventTarget;\n\n if (self.amPM !== undefined && eventTarget === self.amPM) {\n self.amPM.textContent = self.l10n.amPM[int(self.amPM.textContent === self.l10n.amPM[0])];\n }\n\n var min = parseFloat(input.getAttribute(\"min\")),\n max = parseFloat(input.getAttribute(\"max\")),\n step = parseFloat(input.getAttribute(\"step\")),\n curValue = parseInt(input.value, 10),\n delta = e.delta || (isKeyDown ? e.which === 38 ? 1 : -1 : 0);\n var newValue = curValue + step * delta;\n\n if (typeof input.value !== \"undefined\" && input.value.length === 2) {\n var isHourElem = input === self.hourElement,\n isMinuteElem = input === self.minuteElement;\n\n if (newValue < min) {\n newValue = max + newValue + int(!isHourElem) + (int(isHourElem) && int(!self.amPM));\n if (isMinuteElem) incrementNumInput(undefined, -1, self.hourElement);\n } else if (newValue > max) {\n newValue = input === self.hourElement ? newValue - max - int(!self.amPM) : min;\n if (isMinuteElem) incrementNumInput(undefined, 1, self.hourElement);\n }\n\n if (self.amPM && isHourElem && (step === 1 ? newValue + curValue === 23 : Math.abs(newValue - curValue) > step)) {\n self.amPM.textContent = self.l10n.amPM[int(self.amPM.textContent === self.l10n.amPM[0])];\n }\n\n input.value = pad(newValue);\n }\n }\n\n init();\n return self;\n}\n\nfunction _flatpickr(nodeList, config) {\n var nodes = Array.prototype.slice.call(nodeList).filter(function (x) {\n return x instanceof HTMLElement;\n });\n var instances = [];\n\n for (var i = 0; i < nodes.length; i++) {\n var node = nodes[i];\n\n try {\n if (node.getAttribute(\"data-fp-omit\") !== null) continue;\n\n if (node._flatpickr !== undefined) {\n node._flatpickr.destroy();\n\n node._flatpickr = undefined;\n }\n\n node._flatpickr = FlatpickrInstance(node, config || {});\n instances.push(node._flatpickr);\n } catch (e) {\n console.error(e);\n }\n }\n\n return instances.length === 1 ? instances[0] : instances;\n}\n\nif (typeof HTMLElement !== \"undefined\" && typeof HTMLCollection !== \"undefined\" && typeof NodeList !== \"undefined\") {\n HTMLCollection.prototype.flatpickr = NodeList.prototype.flatpickr = function (config) {\n return _flatpickr(this, config);\n };\n\n HTMLElement.prototype.flatpickr = function (config) {\n return _flatpickr([this], config);\n };\n}\n\nvar flatpickr = function flatpickr(selector, config) {\n if (typeof selector === \"string\") {\n return _flatpickr(window.document.querySelectorAll(selector), config);\n } else if (selector instanceof Node) {\n return _flatpickr([selector], config);\n } else {\n return _flatpickr(selector, config);\n }\n};\n\nflatpickr.defaultConfig = {};\nflatpickr.l10ns = {\n en: Object.assign({}, English),\n default: Object.assign({}, English)\n};\n\nflatpickr.localize = function (l10n) {\n flatpickr.l10ns.default = Object.assign(Object.assign({}, flatpickr.l10ns.default), l10n);\n};\n\nflatpickr.setDefaults = function (config) {\n flatpickr.defaultConfig = Object.assign(Object.assign({}, flatpickr.defaultConfig), config);\n};\n\nflatpickr.parseDate = createDateParser({});\nflatpickr.formatDate = createDateFormatter({});\nflatpickr.compareDates = compareDates;\n\nif (typeof jQuery !== \"undefined\" && typeof jQuery.fn !== \"undefined\") {\n jQuery.fn.flatpickr = function (config) {\n return _flatpickr(this, config);\n };\n}\n\nDate.prototype.fp_incr = function (days) {\n return new Date(this.getFullYear(), this.getMonth(), this.getDate() + (typeof days === \"string\" ? parseInt(days, 10) : days));\n};\n\nif (typeof window !== \"undefined\") {\n window.flatpickr = flatpickr;\n}\n\nexport default flatpickr;","import \"../../stylesheets/logged_out.scss\";\nimport { Application } from \"@hotwired/stimulus\";\nimport { definitionsFromContext } from \"@hotwired/stimulus-webpack-helpers\";\n\nconst application = Application.start();\nconst context = require.context(\"../controllers\", true, /\\.js$/);\napplication.load(definitionsFromContext(context));\n","var map = {\n\t\"./accommodation_controller.js\": 127,\n\t\"./accommodation_request_controller.js\": 128,\n\t\"./accordion_controller.js\": 129,\n\t\"./add_in_place_controller.js\": 130,\n\t\"./alert_controller.js\": 131,\n\t\"./birthdate_controller.js\": 132,\n\t\"./booking_resource_sku_association/association_handlers.js\": 77,\n\t\"./booking_resource_sku_association/drag_drop_handlers.js\": 76,\n\t\"./booking_resource_sku_association/validation_handlers.js\": 75,\n\t\"./booking_resource_sku_association_controller.js\": 133,\n\t\"./booking_room_assignment_controller.js\": 134,\n\t\"./contact_card_controller.js\": 135,\n\t\"./copy_to_clipboard_controller.js\": 136,\n\t\"./custom_select_controller.js\": 137,\n\t\"./date_range_filter_controller.js\": 138,\n\t\"./drag_drop_controller.js\": 182,\n\t\"./dropdown_controller.js\": 139,\n\t\"./due_on_controller.js\": 140,\n\t\"./easybill_settings_controller.js\": 141,\n\t\"./edit_booking_controller.js\": 181,\n\t\"./edit_in_place_controller.js\": 142,\n\t\"./expandable_controller.js\": 143,\n\t\"./final_submit_controller.js\": 144,\n\t\"./flatpickr_controller.js\": 183,\n\t\"./flight_selection_modal_controller.js\": 184,\n\t\"./flight_update_profile_controller.js\": 145,\n\t\"./flights_controller.js\": 146,\n\t\"./flightsearch_result_controller.js\": 147,\n\t\"./flightsearch_results_controller.js\": 148,\n\t\"./floating_action_controller.js\": 149,\n\t\"./form_validation_controller.js\": 150,\n\t\"./gallery_controller.js\": 151,\n\t\"./grouped_booking_transfers_controller.js\": 152,\n\t\"./grouped_skus_controller.js\": 153,\n\t\"./index.js\": 227,\n\t\"./mobile_nav_controller.js\": 154,\n\t\"./modal_controller.js\": 36,\n\t\"./my_carousel_controller.js\": 155,\n\t\"./participant_autocomplete_controller.js\": 156,\n\t\"./payment_item_controller.js\": 157,\n\t\"./pickup_dropoff_modal_controller.js\": 158,\n\t\"./pnr_parser_controller.js\": 159,\n\t\"./poll_invoice_status_controller.js\": 160,\n\t\"./process_payment_controller.js\": 161,\n\t\"./refund_payments_controller.js\": 162,\n\t\"./request_step_controller.js\": 163,\n\t\"./resources_controller.js\": 164,\n\t\"./room_controller.js\": 180,\n\t\"./scroll_controller.js\": 165,\n\t\"./search_controller.js\": 166,\n\t\"./secondary_state_controller.js\": 167,\n\t\"./select_all_controller.js\": 168,\n\t\"./select_participant_controller.js\": 169,\n\t\"./select_participants_controller.js\": 170,\n\t\"./select_payments_controller.js\": 171,\n\t\"./sorted_checkbox_collection_controller.js\": 172,\n\t\"./sorting_controller.js\": 173,\n\t\"./tabs_controller.js\": 174,\n\t\"./tooltip_controller.js\": 175,\n\t\"./transfer_autocomplete_controller.js\": 176,\n\t\"./turbo_frame_overlay_controller.js\": 177,\n\t\"./validate_dates_controller.js\": 178,\n\t\"./validation_check_controller.js\": 179\n};\n\n\nfunction webpackContext(req) {\n\tvar id = webpackContextResolve(req);\n\treturn __webpack_require__(id);\n}\nfunction webpackContextResolve(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\treturn map[req];\n}\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = 532;","/*\nStimulus Webpack Helpers 1.0.0\nCopyright © 2021 Basecamp, LLC\n */\nfunction definitionsFromContext(context) {\n return context.keys().map(function (key) {\n return definitionForModuleWithContextAndKey(context, key);\n }).filter(function (value) {\n return value;\n });\n}\n\nfunction definitionForModuleWithContextAndKey(context, key) {\n var identifier = identifierForContextKey(key);\n\n if (identifier) {\n return definitionForModuleAndIdentifier(context(key), identifier);\n }\n}\n\nfunction definitionForModuleAndIdentifier(module, identifier) {\n var controllerConstructor = module.default;\n\n if (typeof controllerConstructor == \"function\") {\n return {\n identifier: identifier,\n controllerConstructor: controllerConstructor\n };\n }\n}\n\nfunction identifierForContextKey(key) {\n var logicalName = (key.match(/^(?:\\.\\/)?(.+)(?:[_-]controller\\..+?)$/) || [])[1];\n\n if (logicalName) {\n return logicalName.replace(/_/g, \"-\").replace(/\\//g, \"--\");\n }\n}\n\nexport { definitionForModuleAndIdentifier, definitionForModuleWithContextAndKey, definitionsFromContext, identifierForContextKey };","import { German } from \"flatpickr/dist/l10n/de\";\nimport { French } from \"flatpickr/dist/l10n/fr\";\n\nfunction isDateSupported() {\n const input = document.createElement(\"input\");\n const value = \"a\";\n input.setAttribute(\"type\", \"date\");\n input.setAttribute(\"value\", value);\n return input.value !== value;\n}\n\nfunction isDateTimeLocalSupported() {\n const input = document.createElement(\"input\");\n const value = \"a\";\n input.setAttribute(\"type\", \"datetime-local\");\n input.setAttribute(\"value\", value);\n return input.value !== value;\n}\n\nfunction getPreferredLanguage() {\n let language = \"en\";\n language = window.navigator.userLanguage || window.navigator.language;\n return language;\n}\n\nfunction initializeFlatpickr() {\n let locale;\n\n switch (getPreferredLanguage()) {\n case \"de\":\n locale = German;\n break;\n case \"fr\":\n locale = French;\n break;\n default:\n locale = null;\n break;\n }\n\n if (!isDateSupported()) {\n import(\"flatpickr\").then((flatpickr) => {\n flatpickr.default(document.querySelectorAll(\"input[type='date']\"), {\n locale,\n });\n });\n }\n\n if (!isDateTimeLocalSupported()) {\n import(\"flatpickr\").then((flatpickr) => {\n flatpickr.default(\n document.querySelectorAll(\"input[type='datetime-local']\"),\n { locale, enableTime: true, dateFormat: \"Y-m-dTH:i\", time_24hr: true }\n );\n });\n }\n}\n\ndocument.addEventListener(\"DOMContentLoaded\", () => {\n initializeFlatpickr();\n});\n\nexport default initializeFlatpickr;\n","function _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\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',\n formInputClickSelector: 'form input[type=submit], form input[type=image], form button[type=submit], form 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 CustomEvent(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 get() {\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 prepareOptions(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 createXHR(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 processResponse(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 toArray(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 allowAction(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 disableLinkElement(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 enableLinkElement(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 disableFormElements(form) {\n return formElements(form, Rails.formDisableSelector).forEach(disableFormElement);\n };\n\n disableFormElement = function disableFormElement(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 enableFormElements(form) {\n return formElements(form, Rails.formEnableSelector).forEach(enableFormElement);\n };\n\n enableFormElement = function enableFormElement(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 isXhrRedirect(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 = \"\";\n\n if (csrfParam != null && csrfToken != null && !Rails.isCrossDomain(href)) {\n formContent += \"\";\n }\n\n formContent += '';\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 isRemote(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 beforeSend(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 success() {\n var args;\n args = 1 <= arguments.length ? slice.call(arguments, 0) : [];\n return fire(element, 'ajax:success', args);\n },\n error: function error() {\n var args;\n args = 1 <= arguments.length ? slice.call(arguments, 0) : [];\n return fire(element, 'ajax:error', args);\n },\n complete: function complete() {\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 === \"undefined\" ? \"undefined\" : _typeof(module)) === \"object\" && module.exports) {\n module.exports = Rails;\n } else if (typeof define === \"function\" && define.amd) {\n define(Rails);\n }\n}).call(this);","// 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};","import axios from \"axios\";\n\nconst getTwoDigits = (value) => (value < 10 ? `0${value}` : value);\n\nconst formatDate = (date) => {\n const day = getTwoDigits(date.getDate());\n const month = getTwoDigits(date.getMonth() + 1); // add 1 since getMonth returns 0-11 for the months\n const year = date.getFullYear();\n\n return `${year}-${month}-${day}`;\n};\n\nconst formatTime = (date) => {\n const hours = getTwoDigits(date.getUTCHours());\n const mins = getTwoDigits(date.getUTCMinutes());\n\n return `${hours}:${mins}`;\n};\n\nfunction updateTransferFields(attributes) {\n const startsOnInput = document.querySelector(\".js-InputElement--starts_on\");\n const startTimeInput = document.querySelector(\".js-InputElement--start_time\");\n const pickupLocation = document.querySelector(\n \".js-InputElement--pickup_location\"\n );\n const dropoffLocation = document.querySelector(\n \".js-InputElement--dropoff_location\"\n );\n const reference = document.querySelector(\".js-InputElement--reference\");\n\n startsOnInput.value = attributes.startson;\n startTimeInput.value = attributes.starttime;\n pickupLocation.value = attributes.pickuplocation || \"\";\n dropoffLocation.value = attributes.dropofflocation || \"\";\n reference.value = attributes.reference;\n}\n\nfunction arrivalAsOption(attributes) {\n const arrivalAt = new Date(attributes.arrival_at);\n\n return {\n reference: attributes.display_flight,\n pickupLocation: attributes.arrival_airport,\n dropoffLocation: \"\",\n startTime: formatTime(arrivalAt),\n startsOn: formatDate(arrivalAt),\n };\n}\n\nfunction departureAsOption(attributes) {\n const departureAt = new Date(attributes.departure_at);\n\n return {\n reference: attributes.display_flight,\n pickupLocation: \"\",\n dropoffLocation: attributes.departure_airport,\n startTime: formatTime(departureAt),\n startsOn: formatDate(departureAt),\n };\n}\n\nfunction handleClick(event) {\n event.preventDefault();\n updateTransferFields({\n ...event.target.closest(\".js-Transfer-FlightOption\").dataset,\n });\n}\n\nfunction renderOption(option) {\n const element = document.createElement(\"div\");\n\n element.addEventListener(\"click\", (event) => handleClick(event));\n element.classList = \"js-Transfer-FlightOption\";\n\n Object.keys(option).forEach((key) => {\n element.setAttribute(`data-${key}`, option[key]);\n });\n\n const template = document.querySelector(\".js-Transfer-template\");\n const newNode = template.content.firstElementChild.cloneNode(true);\n element.appendChild(newNode);\n\n Object.keys(option).forEach((key) => {\n const span = element.querySelector(`.js-Transfer-${key}`);\n\n if (option[key].length > 1) {\n span.innerHTML += option[key];\n } else {\n span.remove();\n }\n });\n\n return element;\n}\n\nfunction renderOptions(attributes) {\n const options = [departureAsOption(attributes), arrivalAsOption(attributes)];\n\n return options.map((option) => renderOption(option));\n}\n\nasync function updateFlight(id, flightsEl) {\n if (id) {\n const response = await axios.get(`/api/flights/${id}`);\n const json = await response.data;\n const { attributes } = json.data;\n\n renderOptions(attributes).forEach((option) =>\n flightsEl.appendChild(option)\n );\n }\n}\n\ndocument.addEventListener(\"DOMContentLoaded\", () => {\n if (document.querySelector(\".js-Transfer-FlightReferenceSelect\")) {\n const flightIdInput = document.querySelector(\".js-SelectedFlightId\");\n const flightsEl = document.querySelector(\".js-Transfer-Flights\");\n\n flightIdInput.addEventListener(\"input\", (event) => {\n flightsEl.innerHTML = \"\";\n updateFlight(event.target.value, flightsEl);\n });\n }\n});\n","import \"./transfer\";\nimport flightSearch from \"./flightSearch\";\n\nexport default flightSearch;\n","import Rails from \"@rails/ujs\";\n\nexport default ({ carrier, flightNumber, onDate, success, error }) => {\n const params = `carrier=${carrier}&flight_number=${flightNumber}&on_date=${onDate}`;\n\n Rails.ajax({\n type: \"GET\",\n dataType: \"json\",\n url: `/api/flights/search?${params}`,\n success,\n error,\n });\n};\n","export default {\n validBookingResourceSkuAssociation(draggedData, targetData) {\n if (!targetData.handle.startsWith(\"transfer-person\")) {\n return false;\n }\n\n switch (draggedData.type) {\n case \"transfer\":\n return draggedData.handle.startsWith(\"transfer-other\");\n\n case \"flight\":\n return [null, undefined, \"\"].includes(\n targetData.bookingResourceSkuTransferFlightId\n );\n\n case \"accommodation\":\n return [null, undefined, \"\"].includes(\n targetData.bookingResourceSkuTransferAccommodationId\n );\n\n default:\n return false;\n }\n },\n};\n","export default {\n showInvalidDropIndicator(targetElement) {\n const startEvent = new CustomEvent(\"turbo-frame-loading:start\", {\n detail: {\n targetElement,\n identifier: \"invalid-action-indicator\",\n },\n });\n\n window.dispatchEvent(startEvent);\n },\n\n onDragDrop(event) {\n const { draggedItem, dropTarget } = event.detail;\n\n const draggedElement = draggedItem.querySelector(\n \"[data-resource-sku-handle]\"\n );\n\n const targetElement = dropTarget.closest(\"[data-resource-sku-handle]\");\n\n if (!draggedElement || !targetElement) return;\n\n const draggedData = {\n id: draggedElement.dataset.bookingResourceSkuId,\n type: draggedElement.dataset.resourceSkuType,\n handle: draggedElement.dataset.resourceSkuHandle,\n resourceType: draggedElement.dataset.resourceSkuType,\n associatedBookingResourceSkuIdFromInverse:\n draggedElement.dataset.associatedBookingResourceSkuIdFromInverse,\n element: draggedElement,\n event,\n };\n\n const targetData = {\n id: targetElement.dataset.bookingResourceSkuId,\n type: targetElement.dataset.resourceSkuType,\n handle: targetElement.dataset.resourceSkuHandle,\n element: targetElement,\n bookingResourceSkuTransferFlightId:\n targetElement.dataset.bookingResourceSkuTransferFlightId,\n bookingResourceSkuTransferAccommodationId:\n targetElement.dataset.bookingResourceSkuTransferAccommodationId,\n event,\n };\n\n if (this.validBookingResourceSkuAssociation(draggedData, targetData)) {\n this.onDragDropSuccess(draggedData, targetData);\n } else {\n this.onDragDropFailure(draggedData, targetData);\n }\n },\n\n onDragDropSuccess(draggedData, targetData) {\n if (draggedData.type === \"transfer\") {\n this.handleAssociation(draggedData, targetData);\n } else {\n this.constructor.showPickupDropoffModal(draggedData, targetData);\n }\n },\n\n onDragDropFailure(_draggedData, targetData) {\n this.showInvalidDropIndicator(targetData.element);\n },\n};\n","var _templateObject, _templateObject2;\n\nvar _excluded = [\"callbacks\"];\n\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nfunction _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }\n\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\nfunction _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }\n\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _iterableToArray(iter) { if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter); }\n\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }\n\nimport _regeneratorRuntime from \"@babel/runtime/regenerator\";\n\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _get(target, property, receiver) { if (typeof Reflect !== \"undefined\" && Reflect.get) { _get = Reflect.get; } else { _get = function _get(target, property, receiver) { var base = _superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(receiver); } return desc.value; }; } return _get(target, property, receiver || target); }\n\nfunction _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; }\n\nfunction _classPrivateFieldLooseBase(receiver, privateKey) { if (!Object.prototype.hasOwnProperty.call(receiver, privateKey)) { throw new TypeError(\"attempted to use private field on non-instance\"); } return receiver; }\n\nvar id = 0;\n\nfunction _classPrivateFieldLooseKey(name) { return \"__private_\" + id++ + \"_\" + name; }\n\nfunction asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }\n\nfunction _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err); } _next(undefined); }); }; }\n\nfunction _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== \"undefined\" && o[Symbol.iterator] || o[\"@@iterator\"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e2) { throw _e2; }, f: F }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e3) { didErr = true; err = _e3; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _wrapNativeSuper(Class) { var _cache = typeof Map === \"function\" ? new Map() : undefined; _wrapNativeSuper = function _wrapNativeSuper(Class) { if (Class === null || !_isNativeFunction(Class)) return Class; if (typeof Class !== \"function\") { throw new TypeError(\"Super expression must either be null or a function\"); } if (typeof _cache !== \"undefined\") { if (_cache.has(Class)) return _cache.get(Class); _cache.set(Class, Wrapper); } function Wrapper() { return _construct(Class, arguments, _getPrototypeOf(this).constructor); } Wrapper.prototype = Object.create(Class.prototype, { constructor: { value: Wrapper, enumerable: false, writable: true, configurable: true } }); return _setPrototypeOf(Wrapper, Class); }; return _wrapNativeSuper(Class); }\n\nfunction _construct(Parent, args, Class) { if (_isNativeReflectConstruct()) { _construct = Reflect.construct; } else { _construct = function _construct(Parent, args, Class) { var a = [null]; a.push.apply(a, args); var Constructor = Function.bind.apply(Parent, a); var instance = new Constructor(); if (Class) _setPrototypeOf(instance, Class.prototype); return instance; }; } return _construct.apply(null, arguments); }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\nfunction _isNativeFunction(fn) { return Function.toString.call(fn).indexOf(\"[native code]\") !== -1; }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n/*!\nTurbo 8.0.12\nCopyright © 2024 37signals LLC\n */\n\n/**\n * The MIT License (MIT)\n *\n * Copyright (c) 2019 Javan Makhmali\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\n(function (prototype) {\n if (typeof prototype.requestSubmit == \"function\") return;\n\n prototype.requestSubmit = function (submitter) {\n if (submitter) {\n validateSubmitter(submitter, this);\n submitter.click();\n } else {\n submitter = document.createElement(\"input\");\n submitter.type = \"submit\";\n submitter.hidden = true;\n this.appendChild(submitter);\n submitter.click();\n this.removeChild(submitter);\n }\n };\n\n function validateSubmitter(submitter, form) {\n submitter instanceof HTMLElement || raise(TypeError, \"parameter 1 is not of type 'HTMLElement'\");\n submitter.type == \"submit\" || raise(TypeError, \"The specified element is not a submit button\");\n submitter.form == form || raise(DOMException, \"The specified element is not owned by this form element\", \"NotFoundError\");\n }\n\n function raise(errorConstructor, message, name) {\n throw new errorConstructor(\"Failed to execute 'requestSubmit' on 'HTMLFormElement': \" + message + \".\", name);\n }\n})(HTMLFormElement.prototype);\n\nvar submittersByForm = new WeakMap();\n\nfunction findSubmitterFromClickTarget(target) {\n var element = target instanceof Element ? target : target instanceof Node ? target.parentElement : null;\n var candidate = element ? element.closest(\"input, button\") : null;\n return (candidate === null || candidate === void 0 ? void 0 : candidate.type) == \"submit\" ? candidate : null;\n}\n\nfunction clickCaptured(event) {\n var submitter = findSubmitterFromClickTarget(event.target);\n\n if (submitter && submitter.form) {\n submittersByForm.set(submitter.form, submitter);\n }\n}\n\n(function () {\n if (\"submitter\" in Event.prototype) return;\n var prototype = window.Event.prototype; // Certain versions of Safari 15 have a bug where they won't\n // populate the submitter. This hurts TurboDrive's enable/disable detection.\n // See https://bugs.webkit.org/show_bug.cgi?id=229660\n\n if (\"SubmitEvent\" in window) {\n var prototypeOfSubmitEvent = window.SubmitEvent.prototype;\n\n if (/Apple Computer/.test(navigator.vendor) && !(\"submitter\" in prototypeOfSubmitEvent)) {\n prototype = prototypeOfSubmitEvent;\n } else {\n return; // polyfill not needed\n }\n }\n\n addEventListener(\"click\", clickCaptured, true);\n Object.defineProperty(prototype, \"submitter\", {\n get: function get() {\n if (this.type == \"submit\" && this.target instanceof HTMLFormElement) {\n return submittersByForm.get(this.target);\n }\n }\n });\n})();\n\nvar FrameLoadingStyle = {\n eager: \"eager\",\n lazy: \"lazy\"\n};\n/**\n * Contains a fragment of HTML which is updated based on navigation within\n * it (e.g. via links or form submissions).\n *\n * @customElement turbo-frame\n * @example\n * \n * \n * Show all expanded messages in this frame.\n * \n *\n *
\n * Show response from this form within this frame.\n *
\n *
\n */\n\nvar FrameElement = /*#__PURE__*/function (_HTMLElement) {\n _inherits(FrameElement, _HTMLElement);\n\n var _super = _createSuper(FrameElement);\n\n function FrameElement() {\n var _this;\n\n _classCallCheck(this, FrameElement);\n\n _this = _super.call(this);\n _this.loaded = Promise.resolve();\n _this.delegate = new FrameElement.delegateConstructor(_assertThisInitialized(_this));\n return _this;\n }\n\n _createClass(FrameElement, [{\n key: \"connectedCallback\",\n value: function connectedCallback() {\n this.delegate.connect();\n }\n }, {\n key: \"disconnectedCallback\",\n value: function disconnectedCallback() {\n this.delegate.disconnect();\n }\n }, {\n key: \"reload\",\n value: function reload() {\n return this.delegate.sourceURLReloaded();\n }\n }, {\n key: \"attributeChangedCallback\",\n value: function attributeChangedCallback(name) {\n if (name == \"loading\") {\n this.delegate.loadingStyleChanged();\n } else if (name == \"src\") {\n this.delegate.sourceURLChanged();\n } else if (name == \"disabled\") {\n this.delegate.disabledChanged();\n }\n }\n /**\n * Gets the URL to lazily load source HTML from\n */\n\n }, {\n key: \"src\",\n get: function get() {\n return this.getAttribute(\"src\");\n }\n /**\n * Sets the URL to lazily load source HTML from\n */\n ,\n set: function set(value) {\n if (value) {\n this.setAttribute(\"src\", value);\n } else {\n this.removeAttribute(\"src\");\n }\n }\n /**\n * Gets the refresh mode for the frame.\n */\n\n }, {\n key: \"refresh\",\n get: function get() {\n return this.getAttribute(\"refresh\");\n }\n /**\n * Sets the refresh mode for the frame.\n */\n ,\n set: function set(value) {\n if (value) {\n this.setAttribute(\"refresh\", value);\n } else {\n this.removeAttribute(\"refresh\");\n }\n }\n }, {\n key: \"shouldReloadWithMorph\",\n get: function get() {\n return this.src && this.refresh === \"morph\";\n }\n /**\n * Determines if the element is loading\n */\n\n }, {\n key: \"loading\",\n get: function get() {\n return frameLoadingStyleFromString(this.getAttribute(\"loading\") || \"\");\n }\n /**\n * Sets the value of if the element is loading\n */\n ,\n set: function set(value) {\n if (value) {\n this.setAttribute(\"loading\", value);\n } else {\n this.removeAttribute(\"loading\");\n }\n }\n /**\n * Gets the disabled state of the frame.\n *\n * If disabled, no requests will be intercepted by the frame.\n */\n\n }, {\n key: \"disabled\",\n get: function get() {\n return this.hasAttribute(\"disabled\");\n }\n /**\n * Sets the disabled state of the frame.\n *\n * If disabled, no requests will be intercepted by the frame.\n */\n ,\n set: function set(value) {\n if (value) {\n this.setAttribute(\"disabled\", \"\");\n } else {\n this.removeAttribute(\"disabled\");\n }\n }\n /**\n * Gets the autoscroll state of the frame.\n *\n * If true, the frame will be scrolled into view automatically on update.\n */\n\n }, {\n key: \"autoscroll\",\n get: function get() {\n return this.hasAttribute(\"autoscroll\");\n }\n /**\n * Sets the autoscroll state of the frame.\n *\n * If true, the frame will be scrolled into view automatically on update.\n */\n ,\n set: function set(value) {\n if (value) {\n this.setAttribute(\"autoscroll\", \"\");\n } else {\n this.removeAttribute(\"autoscroll\");\n }\n }\n /**\n * Determines if the element has finished loading\n */\n\n }, {\n key: \"complete\",\n get: function get() {\n return !this.delegate.isLoading;\n }\n /**\n * Gets the active state of the frame.\n *\n * If inactive, source changes will not be observed.\n */\n\n }, {\n key: \"isActive\",\n get: function get() {\n return this.ownerDocument === document && !this.isPreview;\n }\n /**\n * Sets the active state of the frame.\n *\n * If inactive, source changes will not be observed.\n */\n\n }, {\n key: \"isPreview\",\n get: function get() {\n var _this$ownerDocument, _this$ownerDocument$d;\n\n return (_this$ownerDocument = this.ownerDocument) === null || _this$ownerDocument === void 0 ? void 0 : (_this$ownerDocument$d = _this$ownerDocument.documentElement) === null || _this$ownerDocument$d === void 0 ? void 0 : _this$ownerDocument$d.hasAttribute(\"data-turbo-preview\");\n }\n }], [{\n key: \"observedAttributes\",\n get: function get() {\n return [\"disabled\", \"loading\", \"src\"];\n }\n }]);\n\n return FrameElement;\n}( /*#__PURE__*/_wrapNativeSuper(HTMLElement));\n\nFrameElement.delegateConstructor = undefined;\n\nfunction frameLoadingStyleFromString(style) {\n switch (style.toLowerCase()) {\n case \"lazy\":\n return FrameLoadingStyle.lazy;\n\n default:\n return FrameLoadingStyle.eager;\n }\n}\n\nvar drive = {\n enabled: true,\n progressBarDelay: 500,\n unvisitableExtensions: new Set([\".7z\", \".aac\", \".apk\", \".avi\", \".bmp\", \".bz2\", \".css\", \".csv\", \".deb\", \".dmg\", \".doc\", \".docx\", \".exe\", \".gif\", \".gz\", \".heic\", \".heif\", \".ico\", \".iso\", \".jpeg\", \".jpg\", \".js\", \".json\", \".m4a\", \".mkv\", \".mov\", \".mp3\", \".mp4\", \".mpeg\", \".mpg\", \".msi\", \".ogg\", \".ogv\", \".pdf\", \".pkg\", \".png\", \".ppt\", \".pptx\", \".rar\", \".rtf\", \".svg\", \".tar\", \".tif\", \".tiff\", \".txt\", \".wav\", \".webm\", \".webp\", \".wma\", \".wmv\", \".xls\", \".xlsx\", \".xml\", \".zip\"])\n};\n\nfunction activateScriptElement(element) {\n if (element.getAttribute(\"data-turbo-eval\") == \"false\") {\n return element;\n } else {\n var createdScriptElement = document.createElement(\"script\");\n var cspNonce = getCspNonce();\n\n if (cspNonce) {\n createdScriptElement.nonce = cspNonce;\n }\n\n createdScriptElement.textContent = element.textContent;\n createdScriptElement.async = false;\n copyElementAttributes(createdScriptElement, element);\n return createdScriptElement;\n }\n}\n\nfunction copyElementAttributes(destinationElement, sourceElement) {\n var _iterator = _createForOfIteratorHelper(sourceElement.attributes),\n _step;\n\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var _ref2 = _step.value;\n var name = _ref2.name;\n var value = _ref2.value;\n destinationElement.setAttribute(name, value);\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n}\n\nfunction createDocumentFragment(html) {\n var template = document.createElement(\"template\");\n template.innerHTML = html;\n return template.content;\n}\n\nfunction dispatch(eventName) {\n var _ref3 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},\n target = _ref3.target,\n cancelable = _ref3.cancelable,\n detail = _ref3.detail;\n\n var event = new CustomEvent(eventName, {\n cancelable: cancelable,\n bubbles: true,\n composed: true,\n detail: detail\n });\n\n if (target && target.isConnected) {\n target.dispatchEvent(event);\n } else {\n document.documentElement.dispatchEvent(event);\n }\n\n return event;\n}\n\nfunction cancelEvent(event) {\n event.preventDefault();\n event.stopImmediatePropagation();\n}\n\nfunction nextRepaint() {\n if (document.visibilityState === \"hidden\") {\n return nextEventLoopTick();\n } else {\n return nextAnimationFrame();\n }\n}\n\nfunction nextAnimationFrame() {\n return new Promise(function (resolve) {\n return requestAnimationFrame(function () {\n return resolve();\n });\n });\n}\n\nfunction nextEventLoopTick() {\n return new Promise(function (resolve) {\n return setTimeout(function () {\n return resolve();\n }, 0);\n });\n}\n\nfunction nextMicrotask() {\n return Promise.resolve();\n}\n\nfunction parseHTMLDocument() {\n var html = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : \"\";\n return new DOMParser().parseFromString(html, \"text/html\");\n}\n\nfunction unindent(strings) {\n for (var _len = arguments.length, values = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n values[_key - 1] = arguments[_key];\n }\n\n var lines = interpolate(strings, values).replace(/^\\n/, \"\").split(\"\\n\");\n var match = lines[0].match(/^\\s+/);\n var indent = match ? match[0].length : 0;\n return lines.map(function (line) {\n return line.slice(indent);\n }).join(\"\\n\");\n}\n\nfunction interpolate(strings, values) {\n return strings.reduce(function (result, string, i) {\n var value = values[i] == undefined ? \"\" : values[i];\n return result + string + value;\n }, \"\");\n}\n\nfunction uuid() {\n return Array.from({\n length: 36\n }).map(function (_, i) {\n if (i == 8 || i == 13 || i == 18 || i == 23) {\n return \"-\";\n } else if (i == 14) {\n return \"4\";\n } else if (i == 19) {\n return (Math.floor(Math.random() * 4) + 8).toString(16);\n } else {\n return Math.floor(Math.random() * 15).toString(16);\n }\n }).join(\"\");\n}\n\nfunction getAttribute(attributeName) {\n for (var _len2 = arguments.length, elements = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {\n elements[_key2 - 1] = arguments[_key2];\n }\n\n var _iterator2 = _createForOfIteratorHelper(elements.map(function (element) {\n return element === null || element === void 0 ? void 0 : element.getAttribute(attributeName);\n })),\n _step2;\n\n try {\n for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {\n var value = _step2.value;\n if (typeof value == \"string\") return value;\n }\n } catch (err) {\n _iterator2.e(err);\n } finally {\n _iterator2.f();\n }\n\n return null;\n}\n\nfunction hasAttribute(attributeName) {\n for (var _len3 = arguments.length, elements = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {\n elements[_key3 - 1] = arguments[_key3];\n }\n\n return elements.some(function (element) {\n return element && element.hasAttribute(attributeName);\n });\n}\n\nfunction markAsBusy() {\n for (var _len4 = arguments.length, elements = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {\n elements[_key4] = arguments[_key4];\n }\n\n for (var _i = 0, _elements = elements; _i < _elements.length; _i++) {\n var element = _elements[_i];\n\n if (element.localName == \"turbo-frame\") {\n element.setAttribute(\"busy\", \"\");\n }\n\n element.setAttribute(\"aria-busy\", \"true\");\n }\n}\n\nfunction clearBusyState() {\n for (var _len5 = arguments.length, elements = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {\n elements[_key5] = arguments[_key5];\n }\n\n for (var _i2 = 0, _elements2 = elements; _i2 < _elements2.length; _i2++) {\n var element = _elements2[_i2];\n\n if (element.localName == \"turbo-frame\") {\n element.removeAttribute(\"busy\");\n }\n\n element.removeAttribute(\"aria-busy\");\n }\n}\n\nfunction waitForLoad(element) {\n var timeoutInMilliseconds = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2000;\n return new Promise(function (resolve) {\n var onComplete = function onComplete() {\n element.removeEventListener(\"error\", onComplete);\n element.removeEventListener(\"load\", onComplete);\n resolve();\n };\n\n element.addEventListener(\"load\", onComplete, {\n once: true\n });\n element.addEventListener(\"error\", onComplete, {\n once: true\n });\n setTimeout(resolve, timeoutInMilliseconds);\n });\n}\n\nfunction getHistoryMethodForAction(action) {\n switch (action) {\n case \"replace\":\n return history.replaceState;\n\n case \"advance\":\n case \"restore\":\n return history.pushState;\n }\n}\n\nfunction isAction(action) {\n return action == \"advance\" || action == \"replace\" || action == \"restore\";\n}\n\nfunction getVisitAction() {\n for (var _len6 = arguments.length, elements = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {\n elements[_key6] = arguments[_key6];\n }\n\n var action = getAttribute.apply(void 0, [\"data-turbo-action\"].concat(elements));\n return isAction(action) ? action : null;\n}\n\nfunction getMetaElement(name) {\n return document.querySelector(\"meta[name=\\\"\".concat(name, \"\\\"]\"));\n}\n\nfunction getMetaContent(name) {\n var element = getMetaElement(name);\n return element && element.content;\n}\n\nfunction getCspNonce() {\n var element = getMetaElement(\"csp-nonce\");\n\n if (element) {\n var nonce = element.nonce,\n content = element.content;\n return nonce == \"\" ? content : nonce;\n }\n}\n\nfunction setMetaContent(name, content) {\n var element = getMetaElement(name);\n\n if (!element) {\n element = document.createElement(\"meta\");\n element.setAttribute(\"name\", name);\n document.head.appendChild(element);\n }\n\n element.setAttribute(\"content\", content);\n return element;\n}\n\nfunction findClosestRecursively(element, selector) {\n if (element instanceof Element) {\n var _element$getRootNode;\n\n return element.closest(selector) || findClosestRecursively(element.assignedSlot || ((_element$getRootNode = element.getRootNode()) === null || _element$getRootNode === void 0 ? void 0 : _element$getRootNode.host), selector);\n }\n}\n\nfunction elementIsFocusable(element) {\n var inertDisabledOrHidden = \"[inert], :disabled, [hidden], details:not([open]), dialog:not([open])\";\n return !!element && element.closest(inertDisabledOrHidden) == null && typeof element.focus == \"function\";\n}\n\nfunction queryAutofocusableElement(elementOrDocumentFragment) {\n return Array.from(elementOrDocumentFragment.querySelectorAll(\"[autofocus]\")).find(elementIsFocusable);\n}\n\nfunction around(_x, _x2) {\n return _around.apply(this, arguments);\n}\n\nfunction _around() {\n _around = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee46(callback, reader) {\n var before, after;\n return _regeneratorRuntime.wrap(function _callee46$(_context46) {\n while (1) {\n switch (_context46.prev = _context46.next) {\n case 0:\n before = reader();\n callback();\n _context46.next = 4;\n return nextAnimationFrame();\n\n case 4:\n after = reader();\n return _context46.abrupt(\"return\", [before, after]);\n\n case 6:\n case \"end\":\n return _context46.stop();\n }\n }\n }, _callee46);\n }));\n return _around.apply(this, arguments);\n}\n\nfunction doesNotTargetIFrame(name) {\n if (name === \"_blank\") {\n return false;\n } else if (name) {\n var _iterator3 = _createForOfIteratorHelper(document.getElementsByName(name)),\n _step3;\n\n try {\n for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {\n var element = _step3.value;\n if (element instanceof HTMLIFrameElement) return false;\n }\n } catch (err) {\n _iterator3.e(err);\n } finally {\n _iterator3.f();\n }\n\n return true;\n } else {\n return true;\n }\n}\n\nfunction findLinkFromClickTarget(target) {\n return findClosestRecursively(target, \"a[href]:not([target^=_]):not([download])\");\n}\n\nfunction getLocationForLink(link) {\n return expandURL(link.getAttribute(\"href\") || \"\");\n}\n\nfunction debounce(fn, delay) {\n var _this2 = this;\n\n var timeoutId = null;\n return function () {\n for (var _len7 = arguments.length, args = new Array(_len7), _key7 = 0; _key7 < _len7; _key7++) {\n args[_key7] = arguments[_key7];\n }\n\n var callback = function callback() {\n return fn.apply(_this2, args);\n };\n\n clearTimeout(timeoutId);\n timeoutId = setTimeout(callback, delay);\n };\n}\n\nvar submitter = {\n \"aria-disabled\": {\n beforeSubmit: function beforeSubmit(submitter) {\n submitter.setAttribute(\"aria-disabled\", \"true\");\n submitter.addEventListener(\"click\", cancelEvent);\n },\n afterSubmit: function afterSubmit(submitter) {\n submitter.removeAttribute(\"aria-disabled\");\n submitter.removeEventListener(\"click\", cancelEvent);\n }\n },\n \"disabled\": {\n beforeSubmit: function beforeSubmit(submitter) {\n return submitter.disabled = true;\n },\n afterSubmit: function afterSubmit(submitter) {\n return submitter.disabled = false;\n }\n }\n};\n\nvar _submitter = /*#__PURE__*/_classPrivateFieldLooseKey(\"submitter\");\n\nvar Config = /*#__PURE__*/function () {\n function Config(config) {\n _classCallCheck(this, Config);\n\n Object.defineProperty(this, _submitter, {\n writable: true,\n value: null\n });\n Object.assign(this, config);\n }\n\n _createClass(Config, [{\n key: \"submitter\",\n get: function get() {\n return _classPrivateFieldLooseBase(this, _submitter)[_submitter];\n },\n set: function set(value) {\n _classPrivateFieldLooseBase(this, _submitter)[_submitter] = submitter[value] || value;\n }\n }]);\n\n return Config;\n}();\n\nvar forms = new Config({\n mode: \"on\",\n submitter: \"disabled\"\n});\nvar config = {\n drive: drive,\n forms: forms\n};\n\nfunction expandURL(locatable) {\n return new URL(locatable.toString(), document.baseURI);\n}\n\nfunction getAnchor(url) {\n var anchorMatch;\n\n if (url.hash) {\n return url.hash.slice(1); // eslint-disable-next-line no-cond-assign\n } else if (anchorMatch = url.href.match(/#(.*)$/)) {\n return anchorMatch[1];\n }\n}\n\nfunction getAction$1(form, submitter) {\n var action = (submitter === null || submitter === void 0 ? void 0 : submitter.getAttribute(\"formaction\")) || form.getAttribute(\"action\") || form.action;\n return expandURL(action);\n}\n\nfunction getExtension(url) {\n return (getLastPathComponent(url).match(/\\.[^.]*$/) || [])[0] || \"\";\n}\n\nfunction isPrefixedBy(baseURL, url) {\n var prefix = getPrefix(url);\n return baseURL.href === expandURL(prefix).href || baseURL.href.startsWith(prefix);\n}\n\nfunction locationIsVisitable(location, rootLocation) {\n return isPrefixedBy(location, rootLocation) && !config.drive.unvisitableExtensions.has(getExtension(location));\n}\n\nfunction getRequestURL(url) {\n var anchor = getAnchor(url);\n return anchor != null ? url.href.slice(0, -(anchor.length + 1)) : url.href;\n}\n\nfunction toCacheKey(url) {\n return getRequestURL(url);\n}\n\nfunction urlsAreEqual(left, right) {\n return expandURL(left).href == expandURL(right).href;\n}\n\nfunction getPathComponents(url) {\n return url.pathname.split(\"/\").slice(1);\n}\n\nfunction getLastPathComponent(url) {\n return getPathComponents(url).slice(-1)[0];\n}\n\nfunction getPrefix(url) {\n return addTrailingSlash(url.origin + url.pathname);\n}\n\nfunction addTrailingSlash(value) {\n return value.endsWith(\"/\") ? value : value + \"/\";\n}\n\nvar FetchResponse = /*#__PURE__*/function () {\n function FetchResponse(response) {\n _classCallCheck(this, FetchResponse);\n\n this.response = response;\n }\n\n _createClass(FetchResponse, [{\n key: \"succeeded\",\n get: function get() {\n return this.response.ok;\n }\n }, {\n key: \"failed\",\n get: function get() {\n return !this.succeeded;\n }\n }, {\n key: \"clientError\",\n get: function get() {\n return this.statusCode >= 400 && this.statusCode <= 499;\n }\n }, {\n key: \"serverError\",\n get: function get() {\n return this.statusCode >= 500 && this.statusCode <= 599;\n }\n }, {\n key: \"redirected\",\n get: function get() {\n return this.response.redirected;\n }\n }, {\n key: \"location\",\n get: function get() {\n return expandURL(this.response.url);\n }\n }, {\n key: \"isHTML\",\n get: function get() {\n return this.contentType && this.contentType.match(/^(?:text\\/([^\\s;,]+\\b)?html|application\\/xhtml\\+xml)\\b/);\n }\n }, {\n key: \"statusCode\",\n get: function get() {\n return this.response.status;\n }\n }, {\n key: \"contentType\",\n get: function get() {\n return this.header(\"Content-Type\");\n }\n }, {\n key: \"responseText\",\n get: function get() {\n return this.response.clone().text();\n }\n }, {\n key: \"responseHTML\",\n get: function get() {\n if (this.isHTML) {\n return this.response.clone().text();\n } else {\n return Promise.resolve(undefined);\n }\n }\n }, {\n key: \"header\",\n value: function header(name) {\n return this.response.headers.get(name);\n }\n }]);\n\n return FetchResponse;\n}();\n\nvar LimitedSet = /*#__PURE__*/function (_Set) {\n _inherits(LimitedSet, _Set);\n\n var _super2 = _createSuper(LimitedSet);\n\n function LimitedSet(maxSize) {\n var _this3;\n\n _classCallCheck(this, LimitedSet);\n\n _this3 = _super2.call(this);\n _this3.maxSize = maxSize;\n return _this3;\n }\n\n _createClass(LimitedSet, [{\n key: \"add\",\n value: function add(value) {\n if (this.size >= this.maxSize) {\n var iterator = this.values();\n var oldestValue = iterator.next().value;\n this.delete(oldestValue);\n }\n\n _get(_getPrototypeOf(LimitedSet.prototype), \"add\", this).call(this, value);\n }\n }]);\n\n return LimitedSet;\n}( /*#__PURE__*/_wrapNativeSuper(Set));\n\nvar recentRequests = new LimitedSet(20);\nvar nativeFetch = window.fetch;\n\nfunction fetchWithTurboHeaders(url) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var modifiedHeaders = new Headers(options.headers || {});\n var requestUID = uuid();\n recentRequests.add(requestUID);\n modifiedHeaders.append(\"X-Turbo-Request-Id\", requestUID);\n return nativeFetch(url, _objectSpread(_objectSpread({}, options), {}, {\n headers: modifiedHeaders\n }));\n}\n\nfunction fetchMethodFromString(method) {\n switch (method.toLowerCase()) {\n case \"get\":\n return FetchMethod.get;\n\n case \"post\":\n return FetchMethod.post;\n\n case \"put\":\n return FetchMethod.put;\n\n case \"patch\":\n return FetchMethod.patch;\n\n case \"delete\":\n return FetchMethod.delete;\n }\n}\n\nvar FetchMethod = {\n get: \"get\",\n post: \"post\",\n put: \"put\",\n patch: \"patch\",\n delete: \"delete\"\n};\n\nfunction fetchEnctypeFromString(encoding) {\n switch (encoding.toLowerCase()) {\n case FetchEnctype.multipart:\n return FetchEnctype.multipart;\n\n case FetchEnctype.plain:\n return FetchEnctype.plain;\n\n default:\n return FetchEnctype.urlEncoded;\n }\n}\n\nvar FetchEnctype = {\n urlEncoded: \"application/x-www-form-urlencoded\",\n multipart: \"multipart/form-data\",\n plain: \"text/plain\"\n};\n\nvar _resolveRequestPromise = /*#__PURE__*/_classPrivateFieldLooseKey(\"resolveRequestPromise\");\n\nvar _allowRequestToBeIntercepted = /*#__PURE__*/_classPrivateFieldLooseKey(\"allowRequestToBeIntercepted\");\n\nvar _willDelegateErrorHandling = /*#__PURE__*/_classPrivateFieldLooseKey(\"willDelegateErrorHandling\");\n\nvar FetchRequest = /*#__PURE__*/function () {\n function FetchRequest(delegate, method, location) {\n var _this$delegate$referr;\n\n var requestBody = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : new URLSearchParams();\n var target = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : null;\n var enctype = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : FetchEnctype.urlEncoded;\n\n _classCallCheck(this, FetchRequest);\n\n Object.defineProperty(this, _willDelegateErrorHandling, {\n value: _willDelegateErrorHandling2\n });\n Object.defineProperty(this, _allowRequestToBeIntercepted, {\n value: _allowRequestToBeIntercepted2\n });\n this.abortController = new AbortController();\n Object.defineProperty(this, _resolveRequestPromise, {\n writable: true,\n value: function value(_value) {}\n });\n\n var _buildResourceAndBody = buildResourceAndBody(expandURL(location), method, requestBody, enctype),\n _buildResourceAndBody2 = _slicedToArray(_buildResourceAndBody, 2),\n url = _buildResourceAndBody2[0],\n body = _buildResourceAndBody2[1];\n\n this.delegate = delegate;\n this.url = url;\n this.target = target;\n this.fetchOptions = {\n credentials: \"same-origin\",\n redirect: \"follow\",\n method: method.toUpperCase(),\n headers: _objectSpread({}, this.defaultHeaders),\n body: body,\n signal: this.abortSignal,\n referrer: (_this$delegate$referr = this.delegate.referrer) === null || _this$delegate$referr === void 0 ? void 0 : _this$delegate$referr.href\n };\n this.enctype = enctype;\n }\n\n _createClass(FetchRequest, [{\n key: \"method\",\n get: function get() {\n return this.fetchOptions.method;\n },\n set: function set(value) {\n var fetchBody = this.isSafe ? this.url.searchParams : this.fetchOptions.body || new FormData();\n var fetchMethod = fetchMethodFromString(value) || FetchMethod.get;\n this.url.search = \"\";\n\n var _buildResourceAndBody3 = buildResourceAndBody(this.url, fetchMethod, fetchBody, this.enctype),\n _buildResourceAndBody4 = _slicedToArray(_buildResourceAndBody3, 2),\n url = _buildResourceAndBody4[0],\n body = _buildResourceAndBody4[1];\n\n this.url = url;\n this.fetchOptions.body = body;\n this.fetchOptions.method = fetchMethod.toUpperCase();\n }\n }, {\n key: \"headers\",\n get: function get() {\n return this.fetchOptions.headers;\n },\n set: function set(value) {\n this.fetchOptions.headers = value;\n }\n }, {\n key: \"body\",\n get: function get() {\n if (this.isSafe) {\n return this.url.searchParams;\n } else {\n return this.fetchOptions.body;\n }\n },\n set: function set(value) {\n this.fetchOptions.body = value;\n }\n }, {\n key: \"location\",\n get: function get() {\n return this.url;\n }\n }, {\n key: \"params\",\n get: function get() {\n return this.url.searchParams;\n }\n }, {\n key: \"entries\",\n get: function get() {\n return this.body ? Array.from(this.body.entries()) : [];\n }\n }, {\n key: \"cancel\",\n value: function cancel() {\n this.abortController.abort();\n }\n }, {\n key: \"perform\",\n value: function () {\n var _perform = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var fetchOptions, event, response;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n fetchOptions = this.fetchOptions;\n this.delegate.prepareRequest(this);\n _context.next = 4;\n return _classPrivateFieldLooseBase(this, _allowRequestToBeIntercepted)[_allowRequestToBeIntercepted](fetchOptions);\n\n case 4:\n event = _context.sent;\n _context.prev = 5;\n this.delegate.requestStarted(this);\n\n if (event.detail.fetchRequest) {\n this.response = event.detail.fetchRequest.response;\n } else {\n this.response = fetchWithTurboHeaders(this.url.href, fetchOptions);\n }\n\n _context.next = 10;\n return this.response;\n\n case 10:\n response = _context.sent;\n _context.next = 13;\n return this.receive(response);\n\n case 13:\n return _context.abrupt(\"return\", _context.sent);\n\n case 16:\n _context.prev = 16;\n _context.t0 = _context[\"catch\"](5);\n\n if (!(_context.t0.name !== \"AbortError\")) {\n _context.next = 21;\n break;\n }\n\n if (_classPrivateFieldLooseBase(this, _willDelegateErrorHandling)[_willDelegateErrorHandling](_context.t0)) {\n this.delegate.requestErrored(this, _context.t0);\n }\n\n throw _context.t0;\n\n case 21:\n _context.prev = 21;\n this.delegate.requestFinished(this);\n return _context.finish(21);\n\n case 24:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this, [[5, 16, 21, 24]]);\n }));\n\n function perform() {\n return _perform.apply(this, arguments);\n }\n\n return perform;\n }()\n }, {\n key: \"receive\",\n value: function () {\n var _receive = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(response) {\n var fetchResponse, event;\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n fetchResponse = new FetchResponse(response);\n event = dispatch(\"turbo:before-fetch-response\", {\n cancelable: true,\n detail: {\n fetchResponse: fetchResponse\n },\n target: this.target\n });\n\n if (event.defaultPrevented) {\n this.delegate.requestPreventedHandlingResponse(this, fetchResponse);\n } else if (fetchResponse.succeeded) {\n this.delegate.requestSucceededWithResponse(this, fetchResponse);\n } else {\n this.delegate.requestFailedWithResponse(this, fetchResponse);\n }\n\n return _context2.abrupt(\"return\", fetchResponse);\n\n case 4:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function receive(_x3) {\n return _receive.apply(this, arguments);\n }\n\n return receive;\n }()\n }, {\n key: \"defaultHeaders\",\n get: function get() {\n return {\n Accept: \"text/html, application/xhtml+xml\"\n };\n }\n }, {\n key: \"isSafe\",\n get: function get() {\n return isSafe(this.method);\n }\n }, {\n key: \"abortSignal\",\n get: function get() {\n return this.abortController.signal;\n }\n }, {\n key: \"acceptResponseType\",\n value: function acceptResponseType(mimeType) {\n this.headers[\"Accept\"] = [mimeType, this.headers[\"Accept\"]].join(\", \");\n }\n }]);\n\n return FetchRequest;\n}();\n\nfunction _allowRequestToBeIntercepted2(_x40) {\n return _allowRequestToBeIntercepted3.apply(this, arguments);\n}\n\nfunction _allowRequestToBeIntercepted3() {\n _allowRequestToBeIntercepted3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee50(fetchOptions) {\n var _this53 = this;\n\n var requestInterception, event;\n return _regeneratorRuntime.wrap(function _callee50$(_context50) {\n while (1) {\n switch (_context50.prev = _context50.next) {\n case 0:\n requestInterception = new Promise(function (resolve) {\n return _classPrivateFieldLooseBase(_this53, _resolveRequestPromise)[_resolveRequestPromise] = resolve;\n });\n event = dispatch(\"turbo:before-fetch-request\", {\n cancelable: true,\n detail: {\n fetchOptions: fetchOptions,\n url: this.url,\n resume: _classPrivateFieldLooseBase(this, _resolveRequestPromise)[_resolveRequestPromise]\n },\n target: this.target\n });\n this.url = event.detail.url;\n\n if (!event.defaultPrevented) {\n _context50.next = 6;\n break;\n }\n\n _context50.next = 6;\n return requestInterception;\n\n case 6:\n return _context50.abrupt(\"return\", event);\n\n case 7:\n case \"end\":\n return _context50.stop();\n }\n }\n }, _callee50, this);\n }));\n return _allowRequestToBeIntercepted3.apply(this, arguments);\n}\n\nfunction _willDelegateErrorHandling2(error) {\n var event = dispatch(\"turbo:fetch-request-error\", {\n target: this.target,\n cancelable: true,\n detail: {\n request: this,\n error: error\n }\n });\n return !event.defaultPrevented;\n}\n\nfunction isSafe(fetchMethod) {\n return fetchMethodFromString(fetchMethod) == FetchMethod.get;\n}\n\nfunction buildResourceAndBody(resource, method, requestBody, enctype) {\n var searchParams = Array.from(requestBody).length > 0 ? new URLSearchParams(entriesExcludingFiles(requestBody)) : resource.searchParams;\n\n if (isSafe(method)) {\n return [mergeIntoURLSearchParams(resource, searchParams), null];\n } else if (enctype == FetchEnctype.urlEncoded) {\n return [resource, searchParams];\n } else {\n return [resource, requestBody];\n }\n}\n\nfunction entriesExcludingFiles(requestBody) {\n var entries = [];\n\n var _iterator4 = _createForOfIteratorHelper(requestBody),\n _step4;\n\n try {\n for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {\n var _ref6 = _step4.value;\n\n var _ref5 = _slicedToArray(_ref6, 2);\n\n var name = _ref5[0];\n var value = _ref5[1];\n if (value instanceof File) continue;else entries.push([name, value]);\n }\n } catch (err) {\n _iterator4.e(err);\n } finally {\n _iterator4.f();\n }\n\n return entries;\n}\n\nfunction mergeIntoURLSearchParams(url, requestBody) {\n var searchParams = new URLSearchParams(entriesExcludingFiles(requestBody));\n url.search = searchParams.toString();\n return url;\n}\n\nvar AppearanceObserver = /*#__PURE__*/function () {\n function AppearanceObserver(delegate, element) {\n var _this4 = this;\n\n _classCallCheck(this, AppearanceObserver);\n\n this.started = false;\n\n this.intersect = function (entries) {\n var lastEntry = entries.slice(-1)[0];\n\n if (lastEntry !== null && lastEntry !== void 0 && lastEntry.isIntersecting) {\n _this4.delegate.elementAppearedInViewport(_this4.element);\n }\n };\n\n this.delegate = delegate;\n this.element = element;\n this.intersectionObserver = new IntersectionObserver(this.intersect);\n }\n\n _createClass(AppearanceObserver, [{\n key: \"start\",\n value: function start() {\n if (!this.started) {\n this.started = true;\n this.intersectionObserver.observe(this.element);\n }\n }\n }, {\n key: \"stop\",\n value: function stop() {\n if (this.started) {\n this.started = false;\n this.intersectionObserver.unobserve(this.element);\n }\n }\n }]);\n\n return AppearanceObserver;\n}();\n\nvar StreamMessage = /*#__PURE__*/function () {\n function StreamMessage(fragment) {\n _classCallCheck(this, StreamMessage);\n\n this.fragment = importStreamElements(fragment);\n }\n\n _createClass(StreamMessage, null, [{\n key: \"wrap\",\n value: function wrap(message) {\n if (typeof message == \"string\") {\n return new this(createDocumentFragment(message));\n } else {\n return message;\n }\n }\n }]);\n\n return StreamMessage;\n}();\n\nStreamMessage.contentType = \"text/vnd.turbo-stream.html\";\n\nfunction importStreamElements(fragment) {\n var _iterator5 = _createForOfIteratorHelper(fragment.querySelectorAll(\"turbo-stream\")),\n _step5;\n\n try {\n for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {\n var element = _step5.value;\n var streamElement = document.importNode(element, true);\n\n var _iterator6 = _createForOfIteratorHelper(streamElement.templateElement.content.querySelectorAll(\"script\")),\n _step6;\n\n try {\n for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {\n var inertScriptElement = _step6.value;\n inertScriptElement.replaceWith(activateScriptElement(inertScriptElement));\n }\n } catch (err) {\n _iterator6.e(err);\n } finally {\n _iterator6.f();\n }\n\n element.replaceWith(streamElement);\n }\n } catch (err) {\n _iterator5.e(err);\n } finally {\n _iterator5.f();\n }\n\n return fragment;\n}\n\nvar PREFETCH_DELAY = 100;\n\nvar _prefetchTimeout = /*#__PURE__*/_classPrivateFieldLooseKey(\"prefetchTimeout\");\n\nvar _prefetched = /*#__PURE__*/_classPrivateFieldLooseKey(\"prefetched\");\n\nvar PrefetchCache = /*#__PURE__*/function () {\n function PrefetchCache() {\n _classCallCheck(this, PrefetchCache);\n\n Object.defineProperty(this, _prefetchTimeout, {\n writable: true,\n value: null\n });\n Object.defineProperty(this, _prefetched, {\n writable: true,\n value: null\n });\n }\n\n _createClass(PrefetchCache, [{\n key: \"get\",\n value: function get(url) {\n if (_classPrivateFieldLooseBase(this, _prefetched)[_prefetched] && _classPrivateFieldLooseBase(this, _prefetched)[_prefetched].url === url && _classPrivateFieldLooseBase(this, _prefetched)[_prefetched].expire > Date.now()) {\n return _classPrivateFieldLooseBase(this, _prefetched)[_prefetched].request;\n }\n }\n }, {\n key: \"setLater\",\n value: function setLater(url, request, ttl) {\n var _this5 = this;\n\n this.clear();\n _classPrivateFieldLooseBase(this, _prefetchTimeout)[_prefetchTimeout] = setTimeout(function () {\n request.perform();\n\n _this5.set(url, request, ttl);\n\n _classPrivateFieldLooseBase(_this5, _prefetchTimeout)[_prefetchTimeout] = null;\n }, PREFETCH_DELAY);\n }\n }, {\n key: \"set\",\n value: function set(url, request, ttl) {\n _classPrivateFieldLooseBase(this, _prefetched)[_prefetched] = {\n url: url,\n request: request,\n expire: new Date(new Date().getTime() + ttl)\n };\n }\n }, {\n key: \"clear\",\n value: function clear() {\n if (_classPrivateFieldLooseBase(this, _prefetchTimeout)[_prefetchTimeout]) clearTimeout(_classPrivateFieldLooseBase(this, _prefetchTimeout)[_prefetchTimeout]);\n _classPrivateFieldLooseBase(this, _prefetched)[_prefetched] = null;\n }\n }]);\n\n return PrefetchCache;\n}();\n\nvar cacheTtl = 10 * 1000;\nvar prefetchCache = new PrefetchCache();\nvar FormSubmissionState = {\n initialized: \"initialized\",\n requesting: \"requesting\",\n waiting: \"waiting\",\n receiving: \"receiving\",\n stopping: \"stopping\",\n stopped: \"stopped\"\n};\n\nvar FormSubmission = /*#__PURE__*/function () {\n function FormSubmission(delegate, formElement, submitter) {\n var mustRedirect = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;\n\n _classCallCheck(this, FormSubmission);\n\n this.state = FormSubmissionState.initialized;\n var method = getMethod(formElement, submitter);\n var action = getAction(getFormAction(formElement, submitter), method);\n var body = buildFormData(formElement, submitter);\n var enctype = getEnctype(formElement, submitter);\n this.delegate = delegate;\n this.formElement = formElement;\n this.submitter = submitter;\n this.fetchRequest = new FetchRequest(this, method, action, body, formElement, enctype);\n this.mustRedirect = mustRedirect;\n }\n\n _createClass(FormSubmission, [{\n key: \"method\",\n get: function get() {\n return this.fetchRequest.method;\n },\n set: function set(value) {\n this.fetchRequest.method = value;\n }\n }, {\n key: \"action\",\n get: function get() {\n return this.fetchRequest.url.toString();\n },\n set: function set(value) {\n this.fetchRequest.url = expandURL(value);\n }\n }, {\n key: \"body\",\n get: function get() {\n return this.fetchRequest.body;\n }\n }, {\n key: \"enctype\",\n get: function get() {\n return this.fetchRequest.enctype;\n }\n }, {\n key: \"isSafe\",\n get: function get() {\n return this.fetchRequest.isSafe;\n }\n }, {\n key: \"location\",\n get: function get() {\n return this.fetchRequest.url;\n } // The submission process\n\n }, {\n key: \"start\",\n value: function () {\n var _start = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {\n var initialized, requesting, confirmationMessage, confirmMethod, answer;\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n initialized = FormSubmissionState.initialized, requesting = FormSubmissionState.requesting;\n confirmationMessage = getAttribute(\"data-turbo-confirm\", this.submitter, this.formElement);\n\n if (!(typeof confirmationMessage === \"string\")) {\n _context3.next = 9;\n break;\n }\n\n confirmMethod = typeof config.forms.confirm === \"function\" ? config.forms.confirm : FormSubmission.confirmMethod;\n _context3.next = 6;\n return confirmMethod(confirmationMessage, this.formElement, this.submitter);\n\n case 6:\n answer = _context3.sent;\n\n if (answer) {\n _context3.next = 9;\n break;\n }\n\n return _context3.abrupt(\"return\");\n\n case 9:\n if (!(this.state == initialized)) {\n _context3.next = 12;\n break;\n }\n\n this.state = requesting;\n return _context3.abrupt(\"return\", this.fetchRequest.perform());\n\n case 12:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, this);\n }));\n\n function start() {\n return _start.apply(this, arguments);\n }\n\n return start;\n }()\n }, {\n key: \"stop\",\n value: function stop() {\n var stopping = FormSubmissionState.stopping,\n stopped = FormSubmissionState.stopped;\n\n if (this.state != stopping && this.state != stopped) {\n this.state = stopping;\n this.fetchRequest.cancel();\n return true;\n }\n } // Fetch request delegate\n\n }, {\n key: \"prepareRequest\",\n value: function prepareRequest(request) {\n if (!request.isSafe) {\n var token = getCookieValue(getMetaContent(\"csrf-param\")) || getMetaContent(\"csrf-token\");\n\n if (token) {\n request.headers[\"X-CSRF-Token\"] = token;\n }\n }\n\n if (this.requestAcceptsTurboStreamResponse(request)) {\n request.acceptResponseType(StreamMessage.contentType);\n }\n }\n }, {\n key: \"requestStarted\",\n value: function requestStarted(_request) {\n this.state = FormSubmissionState.waiting;\n if (this.submitter) config.forms.submitter.beforeSubmit(this.submitter);\n this.setSubmitsWith();\n markAsBusy(this.formElement);\n dispatch(\"turbo:submit-start\", {\n target: this.formElement,\n detail: {\n formSubmission: this\n }\n });\n this.delegate.formSubmissionStarted(this);\n }\n }, {\n key: \"requestPreventedHandlingResponse\",\n value: function requestPreventedHandlingResponse(request, response) {\n prefetchCache.clear();\n this.result = {\n success: response.succeeded,\n fetchResponse: response\n };\n }\n }, {\n key: \"requestSucceededWithResponse\",\n value: function requestSucceededWithResponse(request, response) {\n if (response.clientError || response.serverError) {\n this.delegate.formSubmissionFailedWithResponse(this, response);\n return;\n }\n\n prefetchCache.clear();\n\n if (this.requestMustRedirect(request) && responseSucceededWithoutRedirect(response)) {\n var error = new Error(\"Form responses must redirect to another location\");\n this.delegate.formSubmissionErrored(this, error);\n } else {\n this.state = FormSubmissionState.receiving;\n this.result = {\n success: true,\n fetchResponse: response\n };\n this.delegate.formSubmissionSucceededWithResponse(this, response);\n }\n }\n }, {\n key: \"requestFailedWithResponse\",\n value: function requestFailedWithResponse(request, response) {\n this.result = {\n success: false,\n fetchResponse: response\n };\n this.delegate.formSubmissionFailedWithResponse(this, response);\n }\n }, {\n key: \"requestErrored\",\n value: function requestErrored(request, error) {\n this.result = {\n success: false,\n error: error\n };\n this.delegate.formSubmissionErrored(this, error);\n }\n }, {\n key: \"requestFinished\",\n value: function requestFinished(_request) {\n this.state = FormSubmissionState.stopped;\n if (this.submitter) config.forms.submitter.afterSubmit(this.submitter);\n this.resetSubmitterText();\n clearBusyState(this.formElement);\n dispatch(\"turbo:submit-end\", {\n target: this.formElement,\n detail: _objectSpread({\n formSubmission: this\n }, this.result)\n });\n this.delegate.formSubmissionFinished(this);\n } // Private\n\n }, {\n key: \"setSubmitsWith\",\n value: function setSubmitsWith() {\n if (!this.submitter || !this.submitsWith) return;\n\n if (this.submitter.matches(\"button\")) {\n this.originalSubmitText = this.submitter.innerHTML;\n this.submitter.innerHTML = this.submitsWith;\n } else if (this.submitter.matches(\"input\")) {\n var input = this.submitter;\n this.originalSubmitText = input.value;\n input.value = this.submitsWith;\n }\n }\n }, {\n key: \"resetSubmitterText\",\n value: function resetSubmitterText() {\n if (!this.submitter || !this.originalSubmitText) return;\n\n if (this.submitter.matches(\"button\")) {\n this.submitter.innerHTML = this.originalSubmitText;\n } else if (this.submitter.matches(\"input\")) {\n var input = this.submitter;\n input.value = this.originalSubmitText;\n }\n }\n }, {\n key: \"requestMustRedirect\",\n value: function requestMustRedirect(request) {\n return !request.isSafe && this.mustRedirect;\n }\n }, {\n key: \"requestAcceptsTurboStreamResponse\",\n value: function requestAcceptsTurboStreamResponse(request) {\n return !request.isSafe || hasAttribute(\"data-turbo-stream\", this.submitter, this.formElement);\n }\n }, {\n key: \"submitsWith\",\n get: function get() {\n var _this$submitter;\n\n return (_this$submitter = this.submitter) === null || _this$submitter === void 0 ? void 0 : _this$submitter.getAttribute(\"data-turbo-submits-with\");\n }\n }], [{\n key: \"confirmMethod\",\n value: function confirmMethod(message) {\n return Promise.resolve(confirm(message));\n }\n }]);\n\n return FormSubmission;\n}();\n\nfunction buildFormData(formElement, submitter) {\n var formData = new FormData(formElement);\n var name = submitter === null || submitter === void 0 ? void 0 : submitter.getAttribute(\"name\");\n var value = submitter === null || submitter === void 0 ? void 0 : submitter.getAttribute(\"value\");\n\n if (name) {\n formData.append(name, value || \"\");\n }\n\n return formData;\n}\n\nfunction getCookieValue(cookieName) {\n if (cookieName != null) {\n var cookies = document.cookie ? document.cookie.split(\"; \") : [];\n var cookie = cookies.find(function (cookie) {\n return cookie.startsWith(cookieName);\n });\n\n if (cookie) {\n var value = cookie.split(\"=\").slice(1).join(\"=\");\n return value ? decodeURIComponent(value) : undefined;\n }\n }\n}\n\nfunction responseSucceededWithoutRedirect(response) {\n return response.statusCode == 200 && !response.redirected;\n}\n\nfunction getFormAction(formElement, submitter) {\n var formElementAction = typeof formElement.action === \"string\" ? formElement.action : null;\n\n if (submitter !== null && submitter !== void 0 && submitter.hasAttribute(\"formaction\")) {\n return submitter.getAttribute(\"formaction\") || \"\";\n } else {\n return formElement.getAttribute(\"action\") || formElementAction || \"\";\n }\n}\n\nfunction getAction(formAction, fetchMethod) {\n var action = expandURL(formAction);\n\n if (isSafe(fetchMethod)) {\n action.search = \"\";\n }\n\n return action;\n}\n\nfunction getMethod(formElement, submitter) {\n var method = (submitter === null || submitter === void 0 ? void 0 : submitter.getAttribute(\"formmethod\")) || formElement.getAttribute(\"method\") || \"\";\n return fetchMethodFromString(method.toLowerCase()) || FetchMethod.get;\n}\n\nfunction getEnctype(formElement, submitter) {\n return fetchEnctypeFromString((submitter === null || submitter === void 0 ? void 0 : submitter.getAttribute(\"formenctype\")) || formElement.enctype);\n}\n\nvar Snapshot = /*#__PURE__*/function () {\n function Snapshot(element) {\n _classCallCheck(this, Snapshot);\n\n this.element = element;\n }\n\n _createClass(Snapshot, [{\n key: \"activeElement\",\n get: function get() {\n return this.element.ownerDocument.activeElement;\n }\n }, {\n key: \"children\",\n get: function get() {\n return _toConsumableArray(this.element.children);\n }\n }, {\n key: \"hasAnchor\",\n value: function hasAnchor(anchor) {\n return this.getElementForAnchor(anchor) != null;\n }\n }, {\n key: \"getElementForAnchor\",\n value: function getElementForAnchor(anchor) {\n return anchor ? this.element.querySelector(\"[id='\".concat(anchor, \"'], a[name='\").concat(anchor, \"']\")) : null;\n }\n }, {\n key: \"isConnected\",\n get: function get() {\n return this.element.isConnected;\n }\n }, {\n key: \"firstAutofocusableElement\",\n get: function get() {\n return queryAutofocusableElement(this.element);\n }\n }, {\n key: \"permanentElements\",\n get: function get() {\n return queryPermanentElementsAll(this.element);\n }\n }, {\n key: \"getPermanentElementById\",\n value: function getPermanentElementById(id) {\n return _getPermanentElementById(this.element, id);\n }\n }, {\n key: \"getPermanentElementMapForSnapshot\",\n value: function getPermanentElementMapForSnapshot(snapshot) {\n var permanentElementMap = {};\n\n var _iterator7 = _createForOfIteratorHelper(this.permanentElements),\n _step7;\n\n try {\n for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {\n var currentPermanentElement = _step7.value;\n var _id = currentPermanentElement.id;\n var newPermanentElement = snapshot.getPermanentElementById(_id);\n\n if (newPermanentElement) {\n permanentElementMap[_id] = [currentPermanentElement, newPermanentElement];\n }\n }\n } catch (err) {\n _iterator7.e(err);\n } finally {\n _iterator7.f();\n }\n\n return permanentElementMap;\n }\n }]);\n\n return Snapshot;\n}();\n\nfunction _getPermanentElementById(node, id) {\n return node.querySelector(\"#\".concat(id, \"[data-turbo-permanent]\"));\n}\n\nfunction queryPermanentElementsAll(node) {\n return node.querySelectorAll(\"[id][data-turbo-permanent]\");\n}\n\nvar FormSubmitObserver = /*#__PURE__*/function () {\n function FormSubmitObserver(delegate, eventTarget) {\n var _this6 = this;\n\n _classCallCheck(this, FormSubmitObserver);\n\n this.started = false;\n\n this.submitCaptured = function () {\n _this6.eventTarget.removeEventListener(\"submit\", _this6.submitBubbled, false);\n\n _this6.eventTarget.addEventListener(\"submit\", _this6.submitBubbled, false);\n };\n\n this.submitBubbled = function (event) {\n if (!event.defaultPrevented) {\n var form = event.target instanceof HTMLFormElement ? event.target : undefined;\n\n var _submitter2 = event.submitter || undefined;\n\n if (form && submissionDoesNotDismissDialog(form, _submitter2) && submissionDoesNotTargetIFrame(form, _submitter2) && _this6.delegate.willSubmitForm(form, _submitter2)) {\n event.preventDefault();\n event.stopImmediatePropagation();\n\n _this6.delegate.formSubmitted(form, _submitter2);\n }\n }\n };\n\n this.delegate = delegate;\n this.eventTarget = eventTarget;\n }\n\n _createClass(FormSubmitObserver, [{\n key: \"start\",\n value: function start() {\n if (!this.started) {\n this.eventTarget.addEventListener(\"submit\", this.submitCaptured, true);\n this.started = true;\n }\n }\n }, {\n key: \"stop\",\n value: function stop() {\n if (this.started) {\n this.eventTarget.removeEventListener(\"submit\", this.submitCaptured, true);\n this.started = false;\n }\n }\n }]);\n\n return FormSubmitObserver;\n}();\n\nfunction submissionDoesNotDismissDialog(form, submitter) {\n var method = (submitter === null || submitter === void 0 ? void 0 : submitter.getAttribute(\"formmethod\")) || form.getAttribute(\"method\");\n return method != \"dialog\";\n}\n\nfunction submissionDoesNotTargetIFrame(form, submitter) {\n var target = (submitter === null || submitter === void 0 ? void 0 : submitter.getAttribute(\"formtarget\")) || form.getAttribute(\"target\");\n return doesNotTargetIFrame(target);\n}\n\nvar _resolveRenderPromise = /*#__PURE__*/_classPrivateFieldLooseKey(\"resolveRenderPromise\");\n\nvar _resolveInterceptionPromise = /*#__PURE__*/_classPrivateFieldLooseKey(\"resolveInterceptionPromise\");\n\nvar View = /*#__PURE__*/function () {\n function View(delegate, element) {\n _classCallCheck(this, View);\n\n Object.defineProperty(this, _resolveRenderPromise, {\n writable: true,\n value: function value(_value) {}\n });\n Object.defineProperty(this, _resolveInterceptionPromise, {\n writable: true,\n value: function value(_value) {}\n });\n this.delegate = delegate;\n this.element = element;\n } // Scrolling\n\n\n _createClass(View, [{\n key: \"scrollToAnchor\",\n value: function scrollToAnchor(anchor) {\n var element = this.snapshot.getElementForAnchor(anchor);\n\n if (element) {\n this.scrollToElement(element);\n this.focusElement(element);\n } else {\n this.scrollToPosition({\n x: 0,\n y: 0\n });\n }\n }\n }, {\n key: \"scrollToAnchorFromLocation\",\n value: function scrollToAnchorFromLocation(location) {\n this.scrollToAnchor(getAnchor(location));\n }\n }, {\n key: \"scrollToElement\",\n value: function scrollToElement(element) {\n element.scrollIntoView();\n }\n }, {\n key: \"focusElement\",\n value: function focusElement(element) {\n if (element instanceof HTMLElement) {\n if (element.hasAttribute(\"tabindex\")) {\n element.focus();\n } else {\n element.setAttribute(\"tabindex\", \"-1\");\n element.focus();\n element.removeAttribute(\"tabindex\");\n }\n }\n }\n }, {\n key: \"scrollToPosition\",\n value: function scrollToPosition(_ref7) {\n var x = _ref7.x,\n y = _ref7.y;\n this.scrollRoot.scrollTo(x, y);\n }\n }, {\n key: \"scrollToTop\",\n value: function scrollToTop() {\n this.scrollToPosition({\n x: 0,\n y: 0\n });\n }\n }, {\n key: \"scrollRoot\",\n get: function get() {\n return window;\n } // Rendering\n\n }, {\n key: \"render\",\n value: function () {\n var _render = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee4(renderer) {\n var _this7 = this;\n\n var isPreview, shouldRender, willRender, snapshot, shouldInvalidate, renderInterception, options, immediateRender;\n return _regeneratorRuntime.wrap(function _callee4$(_context4) {\n while (1) {\n switch (_context4.prev = _context4.next) {\n case 0:\n isPreview = renderer.isPreview, shouldRender = renderer.shouldRender, willRender = renderer.willRender, snapshot = renderer.newSnapshot; // A workaround to ignore tracked element mismatch reloads when performing\n // a promoted Visit from a frame navigation\n\n shouldInvalidate = willRender;\n\n if (!shouldRender) {\n _context4.next = 26;\n break;\n }\n\n _context4.prev = 3;\n this.renderPromise = new Promise(function (resolve) {\n return _classPrivateFieldLooseBase(_this7, _resolveRenderPromise)[_resolveRenderPromise] = resolve;\n });\n this.renderer = renderer;\n _context4.next = 8;\n return this.prepareToRenderSnapshot(renderer);\n\n case 8:\n renderInterception = new Promise(function (resolve) {\n return _classPrivateFieldLooseBase(_this7, _resolveInterceptionPromise)[_resolveInterceptionPromise] = resolve;\n });\n options = {\n resume: _classPrivateFieldLooseBase(this, _resolveInterceptionPromise)[_resolveInterceptionPromise],\n render: this.renderer.renderElement,\n renderMethod: this.renderer.renderMethod\n };\n immediateRender = this.delegate.allowsImmediateRender(snapshot, options);\n\n if (immediateRender) {\n _context4.next = 14;\n break;\n }\n\n _context4.next = 14;\n return renderInterception;\n\n case 14:\n _context4.next = 16;\n return this.renderSnapshot(renderer);\n\n case 16:\n this.delegate.viewRenderedSnapshot(snapshot, isPreview, this.renderer.renderMethod);\n this.delegate.preloadOnLoadLinksForView(this.element);\n this.finishRenderingSnapshot(renderer);\n\n case 19:\n _context4.prev = 19;\n delete this.renderer;\n\n _classPrivateFieldLooseBase(this, _resolveRenderPromise)[_resolveRenderPromise](undefined);\n\n delete this.renderPromise;\n return _context4.finish(19);\n\n case 24:\n _context4.next = 27;\n break;\n\n case 26:\n if (shouldInvalidate) {\n this.invalidate(renderer.reloadReason);\n }\n\n case 27:\n case \"end\":\n return _context4.stop();\n }\n }\n }, _callee4, this, [[3,, 19, 24]]);\n }));\n\n function render(_x4) {\n return _render.apply(this, arguments);\n }\n\n return render;\n }()\n }, {\n key: \"invalidate\",\n value: function invalidate(reason) {\n this.delegate.viewInvalidated(reason);\n }\n }, {\n key: \"prepareToRenderSnapshot\",\n value: function () {\n var _prepareToRenderSnapshot = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee5(renderer) {\n return _regeneratorRuntime.wrap(function _callee5$(_context5) {\n while (1) {\n switch (_context5.prev = _context5.next) {\n case 0:\n this.markAsPreview(renderer.isPreview);\n _context5.next = 3;\n return renderer.prepareToRender();\n\n case 3:\n case \"end\":\n return _context5.stop();\n }\n }\n }, _callee5, this);\n }));\n\n function prepareToRenderSnapshot(_x5) {\n return _prepareToRenderSnapshot.apply(this, arguments);\n }\n\n return prepareToRenderSnapshot;\n }()\n }, {\n key: \"markAsPreview\",\n value: function markAsPreview(isPreview) {\n if (isPreview) {\n this.element.setAttribute(\"data-turbo-preview\", \"\");\n } else {\n this.element.removeAttribute(\"data-turbo-preview\");\n }\n }\n }, {\n key: \"markVisitDirection\",\n value: function markVisitDirection(direction) {\n this.element.setAttribute(\"data-turbo-visit-direction\", direction);\n }\n }, {\n key: \"unmarkVisitDirection\",\n value: function unmarkVisitDirection() {\n this.element.removeAttribute(\"data-turbo-visit-direction\");\n }\n }, {\n key: \"renderSnapshot\",\n value: function () {\n var _renderSnapshot = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee6(renderer) {\n return _regeneratorRuntime.wrap(function _callee6$(_context6) {\n while (1) {\n switch (_context6.prev = _context6.next) {\n case 0:\n _context6.next = 2;\n return renderer.render();\n\n case 2:\n case \"end\":\n return _context6.stop();\n }\n }\n }, _callee6);\n }));\n\n function renderSnapshot(_x6) {\n return _renderSnapshot.apply(this, arguments);\n }\n\n return renderSnapshot;\n }()\n }, {\n key: \"finishRenderingSnapshot\",\n value: function finishRenderingSnapshot(renderer) {\n renderer.finishRendering();\n }\n }]);\n\n return View;\n}();\n\nvar FrameView = /*#__PURE__*/function (_View2) {\n _inherits(FrameView, _View2);\n\n var _super3 = _createSuper(FrameView);\n\n function FrameView() {\n _classCallCheck(this, FrameView);\n\n return _super3.apply(this, arguments);\n }\n\n _createClass(FrameView, [{\n key: \"missing\",\n value: function missing() {\n this.element.innerHTML = \"Content missing\";\n }\n }, {\n key: \"snapshot\",\n get: function get() {\n return new Snapshot(this.element);\n }\n }]);\n\n return FrameView;\n}(View);\n\nvar LinkInterceptor = /*#__PURE__*/function () {\n function LinkInterceptor(delegate, element) {\n var _this8 = this;\n\n _classCallCheck(this, LinkInterceptor);\n\n this.clickBubbled = function (event) {\n if (_this8.clickEventIsSignificant(event)) {\n _this8.clickEvent = event;\n } else {\n delete _this8.clickEvent;\n }\n };\n\n this.linkClicked = function (event) {\n if (_this8.clickEvent && _this8.clickEventIsSignificant(event)) {\n if (_this8.delegate.shouldInterceptLinkClick(event.target, event.detail.url, event.detail.originalEvent)) {\n _this8.clickEvent.preventDefault();\n\n event.preventDefault();\n\n _this8.delegate.linkClickIntercepted(event.target, event.detail.url, event.detail.originalEvent);\n }\n }\n\n delete _this8.clickEvent;\n };\n\n this.willVisit = function (_event) {\n delete _this8.clickEvent;\n };\n\n this.delegate = delegate;\n this.element = element;\n }\n\n _createClass(LinkInterceptor, [{\n key: \"start\",\n value: function start() {\n this.element.addEventListener(\"click\", this.clickBubbled);\n document.addEventListener(\"turbo:click\", this.linkClicked);\n document.addEventListener(\"turbo:before-visit\", this.willVisit);\n }\n }, {\n key: \"stop\",\n value: function stop() {\n this.element.removeEventListener(\"click\", this.clickBubbled);\n document.removeEventListener(\"turbo:click\", this.linkClicked);\n document.removeEventListener(\"turbo:before-visit\", this.willVisit);\n }\n }, {\n key: \"clickEventIsSignificant\",\n value: function clickEventIsSignificant(event) {\n var _event$target;\n\n var target = event.composed ? (_event$target = event.target) === null || _event$target === void 0 ? void 0 : _event$target.parentElement : event.target;\n var element = findLinkFromClickTarget(target) || target;\n return element instanceof Element && element.closest(\"turbo-frame, html\") == this.element;\n }\n }]);\n\n return LinkInterceptor;\n}();\n\nvar LinkClickObserver = /*#__PURE__*/function () {\n function LinkClickObserver(delegate, eventTarget) {\n var _this9 = this;\n\n _classCallCheck(this, LinkClickObserver);\n\n this.started = false;\n\n this.clickCaptured = function () {\n _this9.eventTarget.removeEventListener(\"click\", _this9.clickBubbled, false);\n\n _this9.eventTarget.addEventListener(\"click\", _this9.clickBubbled, false);\n };\n\n this.clickBubbled = function (event) {\n if (event instanceof MouseEvent && _this9.clickEventIsSignificant(event)) {\n var target = event.composedPath && event.composedPath()[0] || event.target;\n var link = findLinkFromClickTarget(target);\n\n if (link && doesNotTargetIFrame(link.target)) {\n var _location2 = getLocationForLink(link);\n\n if (_this9.delegate.willFollowLinkToLocation(link, _location2, event)) {\n event.preventDefault();\n\n _this9.delegate.followedLinkToLocation(link, _location2);\n }\n }\n }\n };\n\n this.delegate = delegate;\n this.eventTarget = eventTarget;\n }\n\n _createClass(LinkClickObserver, [{\n key: \"start\",\n value: function start() {\n if (!this.started) {\n this.eventTarget.addEventListener(\"click\", this.clickCaptured, true);\n this.started = true;\n }\n }\n }, {\n key: \"stop\",\n value: function stop() {\n if (this.started) {\n this.eventTarget.removeEventListener(\"click\", this.clickCaptured, true);\n this.started = false;\n }\n }\n }, {\n key: \"clickEventIsSignificant\",\n value: function clickEventIsSignificant(event) {\n return !(event.target && event.target.isContentEditable || event.defaultPrevented || event.which > 1 || event.altKey || event.ctrlKey || event.metaKey || event.shiftKey);\n }\n }]);\n\n return LinkClickObserver;\n}();\n\nvar FormLinkClickObserver = /*#__PURE__*/function () {\n function FormLinkClickObserver(delegate, element) {\n _classCallCheck(this, FormLinkClickObserver);\n\n this.delegate = delegate;\n this.linkInterceptor = new LinkClickObserver(this, element);\n }\n\n _createClass(FormLinkClickObserver, [{\n key: \"start\",\n value: function start() {\n this.linkInterceptor.start();\n }\n }, {\n key: \"stop\",\n value: function stop() {\n this.linkInterceptor.stop();\n } // Link hover observer delegate\n\n }, {\n key: \"canPrefetchRequestToLocation\",\n value: function canPrefetchRequestToLocation(link, location) {\n return false;\n }\n }, {\n key: \"prefetchAndCacheRequestToLocation\",\n value: function prefetchAndCacheRequestToLocation(link, location) {\n return;\n } // Link click observer delegate\n\n }, {\n key: \"willFollowLinkToLocation\",\n value: function willFollowLinkToLocation(link, location, originalEvent) {\n return this.delegate.willSubmitFormLinkToLocation(link, location, originalEvent) && (link.hasAttribute(\"data-turbo-method\") || link.hasAttribute(\"data-turbo-stream\"));\n }\n }, {\n key: \"followedLinkToLocation\",\n value: function followedLinkToLocation(link, location) {\n var form = document.createElement(\"form\");\n var type = \"hidden\";\n\n var _iterator8 = _createForOfIteratorHelper(location.searchParams),\n _step8;\n\n try {\n for (_iterator8.s(); !(_step8 = _iterator8.n()).done;) {\n var _ref10 = _step8.value;\n\n var _ref9 = _slicedToArray(_ref10, 2);\n\n var name = _ref9[0];\n var value = _ref9[1];\n form.append(Object.assign(document.createElement(\"input\"), {\n type: type,\n name: name,\n value: value\n }));\n }\n } catch (err) {\n _iterator8.e(err);\n } finally {\n _iterator8.f();\n }\n\n var action = Object.assign(location, {\n search: \"\"\n });\n form.setAttribute(\"data-turbo\", \"true\");\n form.setAttribute(\"action\", action.href);\n form.setAttribute(\"hidden\", \"\");\n var method = link.getAttribute(\"data-turbo-method\");\n if (method) form.setAttribute(\"method\", method);\n var turboFrame = link.getAttribute(\"data-turbo-frame\");\n if (turboFrame) form.setAttribute(\"data-turbo-frame\", turboFrame);\n var turboAction = getVisitAction(link);\n if (turboAction) form.setAttribute(\"data-turbo-action\", turboAction);\n var turboConfirm = link.getAttribute(\"data-turbo-confirm\");\n if (turboConfirm) form.setAttribute(\"data-turbo-confirm\", turboConfirm);\n var turboStream = link.hasAttribute(\"data-turbo-stream\");\n if (turboStream) form.setAttribute(\"data-turbo-stream\", \"\");\n this.delegate.submittedFormLinkToLocation(link, location, form);\n document.body.appendChild(form);\n form.addEventListener(\"turbo:submit-end\", function () {\n return form.remove();\n }, {\n once: true\n });\n requestAnimationFrame(function () {\n return form.requestSubmit();\n });\n }\n }]);\n\n return FormLinkClickObserver;\n}();\n\nvar Bardo = /*#__PURE__*/function () {\n function Bardo(delegate, permanentElementMap) {\n _classCallCheck(this, Bardo);\n\n this.delegate = delegate;\n this.permanentElementMap = permanentElementMap;\n }\n\n _createClass(Bardo, [{\n key: \"enter\",\n value: function enter() {\n for (var _id2 in this.permanentElementMap) {\n var _this$permanentElemen = _slicedToArray(this.permanentElementMap[_id2], 2),\n currentPermanentElement = _this$permanentElemen[0],\n newPermanentElement = _this$permanentElemen[1];\n\n this.delegate.enteringBardo(currentPermanentElement, newPermanentElement);\n this.replaceNewPermanentElementWithPlaceholder(newPermanentElement);\n }\n }\n }, {\n key: \"leave\",\n value: function leave() {\n for (var _id3 in this.permanentElementMap) {\n var _this$permanentElemen2 = _slicedToArray(this.permanentElementMap[_id3], 1),\n currentPermanentElement = _this$permanentElemen2[0];\n\n this.replaceCurrentPermanentElementWithClone(currentPermanentElement);\n this.replacePlaceholderWithPermanentElement(currentPermanentElement);\n this.delegate.leavingBardo(currentPermanentElement);\n }\n }\n }, {\n key: \"replaceNewPermanentElementWithPlaceholder\",\n value: function replaceNewPermanentElementWithPlaceholder(permanentElement) {\n var placeholder = createPlaceholderForPermanentElement(permanentElement);\n permanentElement.replaceWith(placeholder);\n }\n }, {\n key: \"replaceCurrentPermanentElementWithClone\",\n value: function replaceCurrentPermanentElementWithClone(permanentElement) {\n var clone = permanentElement.cloneNode(true);\n permanentElement.replaceWith(clone);\n }\n }, {\n key: \"replacePlaceholderWithPermanentElement\",\n value: function replacePlaceholderWithPermanentElement(permanentElement) {\n var placeholder = this.getPlaceholderById(permanentElement.id);\n placeholder === null || placeholder === void 0 ? void 0 : placeholder.replaceWith(permanentElement);\n }\n }, {\n key: \"getPlaceholderById\",\n value: function getPlaceholderById(id) {\n return this.placeholders.find(function (element) {\n return element.content == id;\n });\n }\n }, {\n key: \"placeholders\",\n get: function get() {\n return _toConsumableArray(document.querySelectorAll(\"meta[name=turbo-permanent-placeholder][content]\"));\n }\n }], [{\n key: \"preservingPermanentElements\",\n value: function () {\n var _preservingPermanentElements = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee7(delegate, permanentElementMap, callback) {\n var bardo;\n return _regeneratorRuntime.wrap(function _callee7$(_context7) {\n while (1) {\n switch (_context7.prev = _context7.next) {\n case 0:\n bardo = new this(delegate, permanentElementMap);\n bardo.enter();\n _context7.next = 4;\n return callback();\n\n case 4:\n bardo.leave();\n\n case 5:\n case \"end\":\n return _context7.stop();\n }\n }\n }, _callee7, this);\n }));\n\n function preservingPermanentElements(_x7, _x8, _x9) {\n return _preservingPermanentElements.apply(this, arguments);\n }\n\n return preservingPermanentElements;\n }()\n }]);\n\n return Bardo;\n}();\n\nfunction createPlaceholderForPermanentElement(permanentElement) {\n var element = document.createElement(\"meta\");\n element.setAttribute(\"name\", \"turbo-permanent-placeholder\");\n element.setAttribute(\"content\", permanentElement.id);\n return element;\n}\n\nvar _activeElement = /*#__PURE__*/_classPrivateFieldLooseKey(\"activeElement\");\n\nvar Renderer = /*#__PURE__*/function () {\n function Renderer(currentSnapshot, newSnapshot, isPreview) {\n var _this10 = this;\n\n var willRender = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true;\n\n _classCallCheck(this, Renderer);\n\n Object.defineProperty(this, _activeElement, {\n writable: true,\n value: null\n });\n this.currentSnapshot = currentSnapshot;\n this.newSnapshot = newSnapshot;\n this.isPreview = isPreview;\n this.willRender = willRender;\n this.renderElement = this.constructor.renderElement;\n this.promise = new Promise(function (resolve, reject) {\n return _this10.resolvingFunctions = {\n resolve: resolve,\n reject: reject\n };\n });\n }\n\n _createClass(Renderer, [{\n key: \"shouldRender\",\n get: function get() {\n return true;\n }\n }, {\n key: \"shouldAutofocus\",\n get: function get() {\n return true;\n }\n }, {\n key: \"reloadReason\",\n get: function get() {\n return;\n }\n }, {\n key: \"prepareToRender\",\n value: function prepareToRender() {\n return;\n }\n }, {\n key: \"render\",\n value: function render() {// Abstract method\n }\n }, {\n key: \"finishRendering\",\n value: function finishRendering() {\n if (this.resolvingFunctions) {\n this.resolvingFunctions.resolve();\n delete this.resolvingFunctions;\n }\n }\n }, {\n key: \"preservingPermanentElements\",\n value: function () {\n var _preservingPermanentElements2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee8(callback) {\n return _regeneratorRuntime.wrap(function _callee8$(_context8) {\n while (1) {\n switch (_context8.prev = _context8.next) {\n case 0:\n _context8.next = 2;\n return Bardo.preservingPermanentElements(this, this.permanentElementMap, callback);\n\n case 2:\n case \"end\":\n return _context8.stop();\n }\n }\n }, _callee8, this);\n }));\n\n function preservingPermanentElements(_x10) {\n return _preservingPermanentElements2.apply(this, arguments);\n }\n\n return preservingPermanentElements;\n }()\n }, {\n key: \"focusFirstAutofocusableElement\",\n value: function focusFirstAutofocusableElement() {\n if (this.shouldAutofocus) {\n var element = this.connectedSnapshot.firstAutofocusableElement;\n\n if (element) {\n element.focus();\n }\n }\n } // Bardo delegate\n\n }, {\n key: \"enteringBardo\",\n value: function enteringBardo(currentPermanentElement) {\n if (_classPrivateFieldLooseBase(this, _activeElement)[_activeElement]) return;\n\n if (currentPermanentElement.contains(this.currentSnapshot.activeElement)) {\n _classPrivateFieldLooseBase(this, _activeElement)[_activeElement] = this.currentSnapshot.activeElement;\n }\n }\n }, {\n key: \"leavingBardo\",\n value: function leavingBardo(currentPermanentElement) {\n if (currentPermanentElement.contains(_classPrivateFieldLooseBase(this, _activeElement)[_activeElement]) && _classPrivateFieldLooseBase(this, _activeElement)[_activeElement] instanceof HTMLElement) {\n _classPrivateFieldLooseBase(this, _activeElement)[_activeElement].focus();\n\n _classPrivateFieldLooseBase(this, _activeElement)[_activeElement] = null;\n }\n }\n }, {\n key: \"connectedSnapshot\",\n get: function get() {\n return this.newSnapshot.isConnected ? this.newSnapshot : this.currentSnapshot;\n }\n }, {\n key: \"currentElement\",\n get: function get() {\n return this.currentSnapshot.element;\n }\n }, {\n key: \"newElement\",\n get: function get() {\n return this.newSnapshot.element;\n }\n }, {\n key: \"permanentElementMap\",\n get: function get() {\n return this.currentSnapshot.getPermanentElementMapForSnapshot(this.newSnapshot);\n }\n }, {\n key: \"renderMethod\",\n get: function get() {\n return \"replace\";\n }\n }], [{\n key: \"renderElement\",\n value: function renderElement(currentElement, newElement) {// Abstract method\n }\n }]);\n\n return Renderer;\n}();\n\nvar FrameRenderer = /*#__PURE__*/function (_Renderer2) {\n _inherits(FrameRenderer, _Renderer2);\n\n var _super4 = _createSuper(FrameRenderer);\n\n function FrameRenderer(delegate, currentSnapshot, newSnapshot, renderElement, isPreview) {\n var _this11;\n\n var willRender = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : true;\n\n _classCallCheck(this, FrameRenderer);\n\n _this11 = _super4.call(this, currentSnapshot, newSnapshot, renderElement, isPreview, willRender);\n _this11.delegate = delegate;\n return _this11;\n }\n\n _createClass(FrameRenderer, [{\n key: \"shouldRender\",\n get: function get() {\n return true;\n }\n }, {\n key: \"render\",\n value: function () {\n var _render2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee9() {\n var _this12 = this;\n\n return _regeneratorRuntime.wrap(function _callee9$(_context9) {\n while (1) {\n switch (_context9.prev = _context9.next) {\n case 0:\n _context9.next = 2;\n return nextRepaint();\n\n case 2:\n this.preservingPermanentElements(function () {\n _this12.loadFrameElement();\n });\n this.scrollFrameIntoView();\n _context9.next = 6;\n return nextRepaint();\n\n case 6:\n this.focusFirstAutofocusableElement();\n _context9.next = 9;\n return nextRepaint();\n\n case 9:\n this.activateScriptElements();\n\n case 10:\n case \"end\":\n return _context9.stop();\n }\n }\n }, _callee9, this);\n }));\n\n function render() {\n return _render2.apply(this, arguments);\n }\n\n return render;\n }()\n }, {\n key: \"loadFrameElement\",\n value: function loadFrameElement() {\n this.delegate.willRenderFrame(this.currentElement, this.newElement);\n this.renderElement(this.currentElement, this.newElement);\n }\n }, {\n key: \"scrollFrameIntoView\",\n value: function scrollFrameIntoView() {\n if (this.currentElement.autoscroll || this.newElement.autoscroll) {\n var element = this.currentElement.firstElementChild;\n var block = readScrollLogicalPosition(this.currentElement.getAttribute(\"data-autoscroll-block\"), \"end\");\n var behavior = readScrollBehavior(this.currentElement.getAttribute(\"data-autoscroll-behavior\"), \"auto\");\n\n if (element) {\n element.scrollIntoView({\n block: block,\n behavior: behavior\n });\n return true;\n }\n }\n\n return false;\n }\n }, {\n key: \"activateScriptElements\",\n value: function activateScriptElements() {\n var _iterator9 = _createForOfIteratorHelper(this.newScriptElements),\n _step9;\n\n try {\n for (_iterator9.s(); !(_step9 = _iterator9.n()).done;) {\n var inertScriptElement = _step9.value;\n var activatedScriptElement = activateScriptElement(inertScriptElement);\n inertScriptElement.replaceWith(activatedScriptElement);\n }\n } catch (err) {\n _iterator9.e(err);\n } finally {\n _iterator9.f();\n }\n }\n }, {\n key: \"newScriptElements\",\n get: function get() {\n return this.currentElement.querySelectorAll(\"script\");\n }\n }], [{\n key: \"renderElement\",\n value: function renderElement(currentElement, newElement) {\n var _frameElement$ownerDo;\n\n var destinationRange = document.createRange();\n destinationRange.selectNodeContents(currentElement);\n destinationRange.deleteContents();\n var frameElement = newElement;\n var sourceRange = (_frameElement$ownerDo = frameElement.ownerDocument) === null || _frameElement$ownerDo === void 0 ? void 0 : _frameElement$ownerDo.createRange();\n\n if (sourceRange) {\n sourceRange.selectNodeContents(frameElement);\n currentElement.appendChild(sourceRange.extractContents());\n }\n }\n }]);\n\n return FrameRenderer;\n}(Renderer);\n\nfunction readScrollLogicalPosition(value, defaultValue) {\n if (value == \"end\" || value == \"start\" || value == \"center\" || value == \"nearest\") {\n return value;\n } else {\n return defaultValue;\n }\n}\n\nfunction readScrollBehavior(value, defaultValue) {\n if (value == \"auto\" || value == \"smooth\") {\n return value;\n } else {\n return defaultValue;\n }\n} // base IIFE to define idiomorph\n\n\nvar Idiomorph = function () {\n //=============================================================================\n // AND NOW IT BEGINS...\n //=============================================================================\n var EMPTY_SET = new Set(); // default configuration values, updatable by users now\n\n var defaults = {\n morphStyle: \"outerHTML\",\n callbacks: {\n beforeNodeAdded: noOp,\n afterNodeAdded: noOp,\n beforeNodeMorphed: noOp,\n afterNodeMorphed: noOp,\n beforeNodeRemoved: noOp,\n afterNodeRemoved: noOp,\n beforeAttributeUpdated: noOp\n },\n head: {\n style: 'merge',\n shouldPreserve: function shouldPreserve(elt) {\n return elt.getAttribute(\"im-preserve\") === \"true\";\n },\n shouldReAppend: function shouldReAppend(elt) {\n return elt.getAttribute(\"im-re-append\") === \"true\";\n },\n shouldRemove: noOp,\n afterHeadMorphed: noOp\n }\n }; //=============================================================================\n // Core Morphing Algorithm - morph, morphNormalizedContent, morphOldNodeTo, morphChildren\n //=============================================================================\n\n function morph(oldNode, newContent) {\n var config = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n\n if (oldNode instanceof Document) {\n oldNode = oldNode.documentElement;\n }\n\n if (typeof newContent === 'string') {\n newContent = parseContent(newContent);\n }\n\n var normalizedContent = normalizeContent(newContent);\n var ctx = createMorphContext(oldNode, normalizedContent, config);\n return morphNormalizedContent(oldNode, normalizedContent, ctx);\n }\n\n function morphNormalizedContent(oldNode, normalizedNewContent, ctx) {\n if (ctx.head.block) {\n var oldHead = oldNode.querySelector('head');\n var newHead = normalizedNewContent.querySelector('head');\n\n if (oldHead && newHead) {\n var promises = handleHeadElement(newHead, oldHead, ctx); // when head promises resolve, call morph again, ignoring the head tag\n\n Promise.all(promises).then(function () {\n morphNormalizedContent(oldNode, normalizedNewContent, Object.assign(ctx, {\n head: {\n block: false,\n ignore: true\n }\n }));\n });\n return;\n }\n }\n\n if (ctx.morphStyle === \"innerHTML\") {\n // innerHTML, so we are only updating the children\n morphChildren(normalizedNewContent, oldNode, ctx);\n return oldNode.children;\n } else if (ctx.morphStyle === \"outerHTML\" || ctx.morphStyle == null) {\n // otherwise find the best element match in the new content, morph that, and merge its siblings\n // into either side of the best match\n var bestMatch = findBestNodeMatch(normalizedNewContent, oldNode, ctx); // stash the siblings that will need to be inserted on either side of the best match\n\n var previousSibling = bestMatch === null || bestMatch === void 0 ? void 0 : bestMatch.previousSibling;\n var nextSibling = bestMatch === null || bestMatch === void 0 ? void 0 : bestMatch.nextSibling; // morph it\n\n var morphedNode = morphOldNodeTo(oldNode, bestMatch, ctx);\n\n if (bestMatch) {\n // if there was a best match, merge the siblings in too and return the\n // whole bunch\n return insertSiblings(previousSibling, morphedNode, nextSibling);\n } else {\n // otherwise nothing was added to the DOM\n return [];\n }\n } else {\n throw \"Do not understand how to morph style \" + ctx.morphStyle;\n }\n }\n /**\n * @param possibleActiveElement\n * @param ctx\n * @returns {boolean}\n */\n\n\n function ignoreValueOfActiveElement(possibleActiveElement, ctx) {\n return ctx.ignoreActiveValue && possibleActiveElement === document.activeElement && possibleActiveElement !== document.body;\n }\n /**\n * @param oldNode root node to merge content into\n * @param newContent new content to merge\n * @param ctx the merge context\n * @returns {Element} the element that ended up in the DOM\n */\n\n\n function morphOldNodeTo(oldNode, newContent, ctx) {\n if (ctx.ignoreActive && oldNode === document.activeElement) ;else if (newContent == null) {\n if (ctx.callbacks.beforeNodeRemoved(oldNode) === false) return oldNode;\n oldNode.remove();\n ctx.callbacks.afterNodeRemoved(oldNode);\n return null;\n } else if (!isSoftMatch(oldNode, newContent)) {\n if (ctx.callbacks.beforeNodeRemoved(oldNode) === false) return oldNode;\n if (ctx.callbacks.beforeNodeAdded(newContent) === false) return oldNode;\n oldNode.parentElement.replaceChild(newContent, oldNode);\n ctx.callbacks.afterNodeAdded(newContent);\n ctx.callbacks.afterNodeRemoved(oldNode);\n return newContent;\n } else {\n if (ctx.callbacks.beforeNodeMorphed(oldNode, newContent) === false) return oldNode;\n if (oldNode instanceof HTMLHeadElement && ctx.head.ignore) ;else if (oldNode instanceof HTMLHeadElement && ctx.head.style !== \"morph\") {\n handleHeadElement(newContent, oldNode, ctx);\n } else {\n syncNodeFrom(newContent, oldNode, ctx);\n\n if (!ignoreValueOfActiveElement(oldNode, ctx)) {\n morphChildren(newContent, oldNode, ctx);\n }\n }\n ctx.callbacks.afterNodeMorphed(oldNode, newContent);\n return oldNode;\n }\n }\n /**\n * This is the core algorithm for matching up children. The idea is to use id sets to try to match up\n * nodes as faithfully as possible. We greedily match, which allows us to keep the algorithm fast, but\n * by using id sets, we are able to better match up with content deeper in the DOM.\n *\n * Basic algorithm is, for each node in the new content:\n *\n * - if we have reached the end of the old parent, append the new content\n * - if the new content has an id set match with the current insertion point, morph\n * - search for an id set match\n * - if id set match found, morph\n * - otherwise search for a \"soft\" match\n * - if a soft match is found, morph\n * - otherwise, prepend the new node before the current insertion point\n *\n * The two search algorithms terminate if competing node matches appear to outweigh what can be achieved\n * with the current node. See findIdSetMatch() and findSoftMatch() for details.\n *\n * @param {Element} newParent the parent element of the new content\n * @param {Element } oldParent the old content that we are merging the new content into\n * @param ctx the merge context\n */\n\n\n function morphChildren(newParent, oldParent, ctx) {\n var nextNewChild = newParent.firstChild;\n var insertionPoint = oldParent.firstChild;\n var newChild; // run through all the new content\n\n while (nextNewChild) {\n newChild = nextNewChild;\n nextNewChild = newChild.nextSibling; // if we are at the end of the exiting parent's children, just append\n\n if (insertionPoint == null) {\n if (ctx.callbacks.beforeNodeAdded(newChild) === false) return;\n oldParent.appendChild(newChild);\n ctx.callbacks.afterNodeAdded(newChild);\n removeIdsFromConsideration(ctx, newChild);\n continue;\n } // if the current node has an id set match then morph\n\n\n if (isIdSetMatch(newChild, insertionPoint, ctx)) {\n morphOldNodeTo(insertionPoint, newChild, ctx);\n insertionPoint = insertionPoint.nextSibling;\n removeIdsFromConsideration(ctx, newChild);\n continue;\n } // otherwise search forward in the existing old children for an id set match\n\n\n var idSetMatch = findIdSetMatch(newParent, oldParent, newChild, insertionPoint, ctx); // if we found a potential match, remove the nodes until that point and morph\n\n if (idSetMatch) {\n insertionPoint = removeNodesBetween(insertionPoint, idSetMatch, ctx);\n morphOldNodeTo(idSetMatch, newChild, ctx);\n removeIdsFromConsideration(ctx, newChild);\n continue;\n } // no id set match found, so scan forward for a soft match for the current node\n\n\n var softMatch = findSoftMatch(newParent, oldParent, newChild, insertionPoint, ctx); // if we found a soft match for the current node, morph\n\n if (softMatch) {\n insertionPoint = removeNodesBetween(insertionPoint, softMatch, ctx);\n morphOldNodeTo(softMatch, newChild, ctx);\n removeIdsFromConsideration(ctx, newChild);\n continue;\n } // abandon all hope of morphing, just insert the new child before the insertion point\n // and move on\n\n\n if (ctx.callbacks.beforeNodeAdded(newChild) === false) return;\n oldParent.insertBefore(newChild, insertionPoint);\n ctx.callbacks.afterNodeAdded(newChild);\n removeIdsFromConsideration(ctx, newChild);\n } // remove any remaining old nodes that didn't match up with new content\n\n\n while (insertionPoint !== null) {\n var tempNode = insertionPoint;\n insertionPoint = insertionPoint.nextSibling;\n removeNode(tempNode, ctx);\n }\n } //=============================================================================\n // Attribute Syncing Code\n //=============================================================================\n\n /**\n * @param attr {String} the attribute to be mutated\n * @param to {Element} the element that is going to be updated\n * @param updateType {(\"update\"|\"remove\")}\n * @param ctx the merge context\n * @returns {boolean} true if the attribute should be ignored, false otherwise\n */\n\n\n function ignoreAttribute(attr, to, updateType, ctx) {\n if (attr === 'value' && ctx.ignoreActiveValue && to === document.activeElement) {\n return true;\n }\n\n return ctx.callbacks.beforeAttributeUpdated(attr, to, updateType) === false;\n }\n /**\n * syncs a given node with another node, copying over all attributes and\n * inner element state from the 'from' node to the 'to' node\n *\n * @param {Element} from the element to copy attributes & state from\n * @param {Element} to the element to copy attributes & state to\n * @param ctx the merge context\n */\n\n\n function syncNodeFrom(from, to, ctx) {\n var type = from.nodeType; // if is an element type, sync the attributes from the\n // new node into the new node\n\n if (type === 1\n /* element type */\n ) {\n var fromAttributes = from.attributes;\n var toAttributes = to.attributes;\n\n var _iterator10 = _createForOfIteratorHelper(fromAttributes),\n _step10;\n\n try {\n for (_iterator10.s(); !(_step10 = _iterator10.n()).done;) {\n var fromAttribute = _step10.value;\n\n if (ignoreAttribute(fromAttribute.name, to, 'update', ctx)) {\n continue;\n }\n\n if (to.getAttribute(fromAttribute.name) !== fromAttribute.value) {\n to.setAttribute(fromAttribute.name, fromAttribute.value);\n }\n } // iterate backwards to avoid skipping over items when a delete occurs\n\n } catch (err) {\n _iterator10.e(err);\n } finally {\n _iterator10.f();\n }\n\n for (var i = toAttributes.length - 1; 0 <= i; i--) {\n var toAttribute = toAttributes[i];\n\n if (ignoreAttribute(toAttribute.name, to, 'remove', ctx)) {\n continue;\n }\n\n if (!from.hasAttribute(toAttribute.name)) {\n to.removeAttribute(toAttribute.name);\n }\n }\n } // sync text nodes\n\n\n if (type === 8\n /* comment */\n || type === 3\n /* text */\n ) {\n if (to.nodeValue !== from.nodeValue) {\n to.nodeValue = from.nodeValue;\n }\n }\n\n if (!ignoreValueOfActiveElement(to, ctx)) {\n // sync input values\n syncInputValue(from, to, ctx);\n }\n }\n /**\n * @param from {Element} element to sync the value from\n * @param to {Element} element to sync the value to\n * @param attributeName {String} the attribute name\n * @param ctx the merge context\n */\n\n\n function syncBooleanAttribute(from, to, attributeName, ctx) {\n if (from[attributeName] !== to[attributeName]) {\n var ignoreUpdate = ignoreAttribute(attributeName, to, 'update', ctx);\n\n if (!ignoreUpdate) {\n to[attributeName] = from[attributeName];\n }\n\n if (from[attributeName]) {\n if (!ignoreUpdate) {\n to.setAttribute(attributeName, from[attributeName]);\n }\n } else {\n if (!ignoreAttribute(attributeName, to, 'remove', ctx)) {\n to.removeAttribute(attributeName);\n }\n }\n }\n }\n /**\n * NB: many bothans died to bring us information:\n *\n * https://github.com/patrick-steele-idem/morphdom/blob/master/src/specialElHandlers.js\n * https://github.com/choojs/nanomorph/blob/master/lib/morph.jsL113\n *\n * @param from {Element} the element to sync the input value from\n * @param to {Element} the element to sync the input value to\n * @param ctx the merge context\n */\n\n\n function syncInputValue(from, to, ctx) {\n if (from instanceof HTMLInputElement && to instanceof HTMLInputElement && from.type !== 'file') {\n var fromValue = from.value;\n var toValue = to.value; // sync boolean attributes\n\n syncBooleanAttribute(from, to, 'checked', ctx);\n syncBooleanAttribute(from, to, 'disabled', ctx);\n\n if (!from.hasAttribute('value')) {\n if (!ignoreAttribute('value', to, 'remove', ctx)) {\n to.value = '';\n to.removeAttribute('value');\n }\n } else if (fromValue !== toValue) {\n if (!ignoreAttribute('value', to, 'update', ctx)) {\n to.setAttribute('value', fromValue);\n to.value = fromValue;\n }\n }\n } else if (from instanceof HTMLOptionElement) {\n syncBooleanAttribute(from, to, 'selected', ctx);\n } else if (from instanceof HTMLTextAreaElement && to instanceof HTMLTextAreaElement) {\n var _fromValue = from.value;\n var _toValue = to.value;\n\n if (ignoreAttribute('value', to, 'update', ctx)) {\n return;\n }\n\n if (_fromValue !== _toValue) {\n to.value = _fromValue;\n }\n\n if (to.firstChild && to.firstChild.nodeValue !== _fromValue) {\n to.firstChild.nodeValue = _fromValue;\n }\n }\n } //=============================================================================\n // the HEAD tag can be handled specially, either w/ a 'merge' or 'append' style\n //=============================================================================\n\n\n function handleHeadElement(newHeadTag, currentHead, ctx) {\n var added = [];\n var removed = [];\n var preserved = [];\n var nodesToAppend = [];\n var headMergeStyle = ctx.head.style; // put all new head elements into a Map, by their outerHTML\n\n var srcToNewHeadNodes = new Map();\n\n var _iterator11 = _createForOfIteratorHelper(newHeadTag.children),\n _step11;\n\n try {\n for (_iterator11.s(); !(_step11 = _iterator11.n()).done;) {\n var newHeadChild = _step11.value;\n srcToNewHeadNodes.set(newHeadChild.outerHTML, newHeadChild);\n } // for each elt in the current head\n\n } catch (err) {\n _iterator11.e(err);\n } finally {\n _iterator11.f();\n }\n\n var _iterator12 = _createForOfIteratorHelper(currentHead.children),\n _step12;\n\n try {\n for (_iterator12.s(); !(_step12 = _iterator12.n()).done;) {\n var currentHeadElt = _step12.value;\n // If the current head element is in the map\n var inNewContent = srcToNewHeadNodes.has(currentHeadElt.outerHTML);\n var isReAppended = ctx.head.shouldReAppend(currentHeadElt);\n var isPreserved = ctx.head.shouldPreserve(currentHeadElt);\n\n if (inNewContent || isPreserved) {\n if (isReAppended) {\n // remove the current version and let the new version replace it and re-execute\n removed.push(currentHeadElt);\n } else {\n // this element already exists and should not be re-appended, so remove it from\n // the new content map, preserving it in the DOM\n srcToNewHeadNodes.delete(currentHeadElt.outerHTML);\n preserved.push(currentHeadElt);\n }\n } else {\n if (headMergeStyle === \"append\") {\n // we are appending and this existing element is not new content\n // so if and only if it is marked for re-append do we do anything\n if (isReAppended) {\n removed.push(currentHeadElt);\n nodesToAppend.push(currentHeadElt);\n }\n } else {\n // if this is a merge, we remove this content since it is not in the new head\n if (ctx.head.shouldRemove(currentHeadElt) !== false) {\n removed.push(currentHeadElt);\n }\n }\n }\n } // Push the remaining new head elements in the Map into the\n // nodes to append to the head tag\n\n } catch (err) {\n _iterator12.e(err);\n } finally {\n _iterator12.f();\n }\n\n nodesToAppend.push.apply(nodesToAppend, _toConsumableArray(srcToNewHeadNodes.values()));\n var promises = [];\n\n for (var _i3 = 0, _nodesToAppend = nodesToAppend; _i3 < _nodesToAppend.length; _i3++) {\n var newNode = _nodesToAppend[_i3];\n var newElt = document.createRange().createContextualFragment(newNode.outerHTML).firstChild;\n\n if (ctx.callbacks.beforeNodeAdded(newElt) !== false) {\n if (newElt.href || newElt.src) {\n (function () {\n var resolve = null;\n var promise = new Promise(function (_resolve) {\n resolve = _resolve;\n });\n newElt.addEventListener('load', function () {\n resolve();\n });\n promises.push(promise);\n })();\n }\n\n currentHead.appendChild(newElt);\n ctx.callbacks.afterNodeAdded(newElt);\n added.push(newElt);\n }\n } // remove all removed elements, after we have appended the new elements to avoid\n // additional network requests for things like style sheets\n\n\n for (var _i4 = 0, _removed = removed; _i4 < _removed.length; _i4++) {\n var removedElement = _removed[_i4];\n\n if (ctx.callbacks.beforeNodeRemoved(removedElement) !== false) {\n currentHead.removeChild(removedElement);\n ctx.callbacks.afterNodeRemoved(removedElement);\n }\n }\n\n ctx.head.afterHeadMorphed(currentHead, {\n added: added,\n kept: preserved,\n removed: removed\n });\n return promises;\n }\n\n function noOp() {}\n /*\n Deep merges the config object and the Idiomoroph.defaults object to\n produce a final configuration object\n */\n\n\n function mergeDefaults(config) {\n var finalConfig = {}; // copy top level stuff into final config\n\n Object.assign(finalConfig, defaults);\n Object.assign(finalConfig, config); // copy callbacks into final config (do this to deep merge the callbacks)\n\n finalConfig.callbacks = {};\n Object.assign(finalConfig.callbacks, defaults.callbacks);\n Object.assign(finalConfig.callbacks, config.callbacks); // copy head config into final config (do this to deep merge the head)\n\n finalConfig.head = {};\n Object.assign(finalConfig.head, defaults.head);\n Object.assign(finalConfig.head, config.head);\n return finalConfig;\n }\n\n function createMorphContext(oldNode, newContent, config) {\n config = mergeDefaults(config);\n return {\n target: oldNode,\n newContent: newContent,\n config: config,\n morphStyle: config.morphStyle,\n ignoreActive: config.ignoreActive,\n ignoreActiveValue: config.ignoreActiveValue,\n idMap: createIdMap(oldNode, newContent),\n deadIds: new Set(),\n callbacks: config.callbacks,\n head: config.head\n };\n }\n\n function isIdSetMatch(node1, node2, ctx) {\n if (node1 == null || node2 == null) {\n return false;\n }\n\n if (node1.nodeType === node2.nodeType && node1.tagName === node2.tagName) {\n if (node1.id !== \"\" && node1.id === node2.id) {\n return true;\n } else {\n return getIdIntersectionCount(ctx, node1, node2) > 0;\n }\n }\n\n return false;\n }\n\n function isSoftMatch(node1, node2) {\n if (node1 == null || node2 == null) {\n return false;\n }\n\n return node1.nodeType === node2.nodeType && node1.tagName === node2.tagName;\n }\n\n function removeNodesBetween(startInclusive, endExclusive, ctx) {\n while (startInclusive !== endExclusive) {\n var tempNode = startInclusive;\n startInclusive = startInclusive.nextSibling;\n removeNode(tempNode, ctx);\n }\n\n removeIdsFromConsideration(ctx, endExclusive);\n return endExclusive.nextSibling;\n } //=============================================================================\n // Scans forward from the insertionPoint in the old parent looking for a potential id match\n // for the newChild. We stop if we find a potential id match for the new child OR\n // if the number of potential id matches we are discarding is greater than the\n // potential id matches for the new child\n //=============================================================================\n\n\n function findIdSetMatch(newContent, oldParent, newChild, insertionPoint, ctx) {\n // max id matches we are willing to discard in our search\n var newChildPotentialIdCount = getIdIntersectionCount(ctx, newChild, oldParent);\n var potentialMatch = null; // only search forward if there is a possibility of an id match\n\n if (newChildPotentialIdCount > 0) {\n var _potentialMatch = insertionPoint; // if there is a possibility of an id match, scan forward\n // keep track of the potential id match count we are discarding (the\n // newChildPotentialIdCount must be greater than this to make it likely\n // worth it)\n\n var otherMatchCount = 0;\n\n while (_potentialMatch != null) {\n // If we have an id match, return the current potential match\n if (isIdSetMatch(newChild, _potentialMatch, ctx)) {\n return _potentialMatch;\n } // computer the other potential matches of this new content\n\n\n otherMatchCount += getIdIntersectionCount(ctx, _potentialMatch, newContent);\n\n if (otherMatchCount > newChildPotentialIdCount) {\n // if we have more potential id matches in _other_ content, we\n // do not have a good candidate for an id match, so return null\n return null;\n } // advanced to the next old content child\n\n\n _potentialMatch = _potentialMatch.nextSibling;\n }\n }\n\n return potentialMatch;\n } //=============================================================================\n // Scans forward from the insertionPoint in the old parent looking for a potential soft match\n // for the newChild. We stop if we find a potential soft match for the new child OR\n // if we find a potential id match in the old parents children OR if we find two\n // potential soft matches for the next two pieces of new content\n //=============================================================================\n\n\n function findSoftMatch(newContent, oldParent, newChild, insertionPoint, ctx) {\n var potentialSoftMatch = insertionPoint;\n var nextSibling = newChild.nextSibling;\n var siblingSoftMatchCount = 0;\n\n while (potentialSoftMatch != null) {\n if (getIdIntersectionCount(ctx, potentialSoftMatch, newContent) > 0) {\n // the current potential soft match has a potential id set match with the remaining new\n // content so bail out of looking\n return null;\n } // if we have a soft match with the current node, return it\n\n\n if (isSoftMatch(newChild, potentialSoftMatch)) {\n return potentialSoftMatch;\n }\n\n if (isSoftMatch(nextSibling, potentialSoftMatch)) {\n // the next new node has a soft match with this node, so\n // increment the count of future soft matches\n siblingSoftMatchCount++;\n nextSibling = nextSibling.nextSibling; // If there are two future soft matches, bail to allow the siblings to soft match\n // so that we don't consume future soft matches for the sake of the current node\n\n if (siblingSoftMatchCount >= 2) {\n return null;\n }\n } // advanced to the next old content child\n\n\n potentialSoftMatch = potentialSoftMatch.nextSibling;\n }\n\n return potentialSoftMatch;\n }\n\n function parseContent(newContent) {\n var parser = new DOMParser(); // remove svgs to avoid false-positive matches on head, etc.\n\n var contentWithSvgsRemoved = newContent.replace(/]*>|>)([\\s\\S]*?)<\\/svg>/gim, ''); // if the newContent contains a html, head or body tag, we can simply parse it w/o wrapping\n\n if (contentWithSvgsRemoved.match(/<\\/html>/) || contentWithSvgsRemoved.match(/<\\/head>/) || contentWithSvgsRemoved.match(/<\\/body>/)) {\n var content = parser.parseFromString(newContent, \"text/html\"); // if it is a full HTML document, return the document itself as the parent container\n\n if (contentWithSvgsRemoved.match(/<\\/html>/)) {\n content.generatedByIdiomorph = true;\n return content;\n } else {\n // otherwise return the html element as the parent container\n var htmlElement = content.firstChild;\n\n if (htmlElement) {\n htmlElement.generatedByIdiomorph = true;\n return htmlElement;\n } else {\n return null;\n }\n }\n } else {\n // if it is partial HTML, wrap it in a template tag to provide a parent element and also to help\n // deal with touchy tags like tr, tbody, etc.\n var responseDoc = parser.parseFromString(\"\", \"text/html\");\n var _content = responseDoc.body.querySelector('template').content;\n _content.generatedByIdiomorph = true;\n return _content;\n }\n }\n\n function normalizeContent(newContent) {\n if (newContent == null) {\n // noinspection UnnecessaryLocalVariableJS\n var dummyParent = document.createElement('div');\n return dummyParent;\n } else if (newContent.generatedByIdiomorph) {\n // the template tag created by idiomorph parsing can serve as a dummy parent\n return newContent;\n } else if (newContent instanceof Node) {\n // a single node is added as a child to a dummy parent\n var _dummyParent = document.createElement('div');\n\n _dummyParent.append(newContent);\n\n return _dummyParent;\n } else {\n // all nodes in the array or HTMLElement collection are consolidated under\n // a single dummy parent element\n var _dummyParent2 = document.createElement('div');\n\n for (var _i5 = 0, _arr2 = _toConsumableArray(newContent); _i5 < _arr2.length; _i5++) {\n var elt = _arr2[_i5];\n\n _dummyParent2.append(elt);\n }\n\n return _dummyParent2;\n }\n }\n\n function insertSiblings(previousSibling, morphedNode, nextSibling) {\n var stack = [];\n var added = [];\n\n while (previousSibling != null) {\n stack.push(previousSibling);\n previousSibling = previousSibling.previousSibling;\n }\n\n while (stack.length > 0) {\n var node = stack.pop();\n added.push(node); // push added preceding siblings on in order and insert\n\n morphedNode.parentElement.insertBefore(node, morphedNode);\n }\n\n added.push(morphedNode);\n\n while (nextSibling != null) {\n stack.push(nextSibling);\n added.push(nextSibling); // here we are going in order, so push on as we scan, rather than add\n\n nextSibling = nextSibling.nextSibling;\n }\n\n while (stack.length > 0) {\n morphedNode.parentElement.insertBefore(stack.pop(), morphedNode.nextSibling);\n }\n\n return added;\n }\n\n function findBestNodeMatch(newContent, oldNode, ctx) {\n var currentElement;\n currentElement = newContent.firstChild;\n var bestElement = currentElement;\n var score = 0;\n\n while (currentElement) {\n var newScore = scoreElement(currentElement, oldNode, ctx);\n\n if (newScore > score) {\n bestElement = currentElement;\n score = newScore;\n }\n\n currentElement = currentElement.nextSibling;\n }\n\n return bestElement;\n }\n\n function scoreElement(node1, node2, ctx) {\n if (isSoftMatch(node1, node2)) {\n return .5 + getIdIntersectionCount(ctx, node1, node2);\n }\n\n return 0;\n }\n\n function removeNode(tempNode, ctx) {\n removeIdsFromConsideration(ctx, tempNode);\n if (ctx.callbacks.beforeNodeRemoved(tempNode) === false) return;\n tempNode.remove();\n ctx.callbacks.afterNodeRemoved(tempNode);\n } //=============================================================================\n // ID Set Functions\n //=============================================================================\n\n\n function isIdInConsideration(ctx, id) {\n return !ctx.deadIds.has(id);\n }\n\n function idIsWithinNode(ctx, id, targetNode) {\n var idSet = ctx.idMap.get(targetNode) || EMPTY_SET;\n return idSet.has(id);\n }\n\n function removeIdsFromConsideration(ctx, node) {\n var idSet = ctx.idMap.get(node) || EMPTY_SET;\n\n var _iterator13 = _createForOfIteratorHelper(idSet),\n _step13;\n\n try {\n for (_iterator13.s(); !(_step13 = _iterator13.n()).done;) {\n var _id4 = _step13.value;\n ctx.deadIds.add(_id4);\n }\n } catch (err) {\n _iterator13.e(err);\n } finally {\n _iterator13.f();\n }\n }\n\n function getIdIntersectionCount(ctx, node1, node2) {\n var sourceSet = ctx.idMap.get(node1) || EMPTY_SET;\n var matchCount = 0;\n\n var _iterator14 = _createForOfIteratorHelper(sourceSet),\n _step14;\n\n try {\n for (_iterator14.s(); !(_step14 = _iterator14.n()).done;) {\n var _id5 = _step14.value;\n\n // a potential match is an id in the source and potentialIdsSet, but\n // that has not already been merged into the DOM\n if (isIdInConsideration(ctx, _id5) && idIsWithinNode(ctx, _id5, node2)) {\n ++matchCount;\n }\n }\n } catch (err) {\n _iterator14.e(err);\n } finally {\n _iterator14.f();\n }\n\n return matchCount;\n }\n /**\n * A bottom up algorithm that finds all elements with ids inside of the node\n * argument and populates id sets for those nodes and all their parents, generating\n * a set of ids contained within all nodes for the entire hierarchy in the DOM\n *\n * @param node {Element}\n * @param {Map>} idMap\n */\n\n\n function populateIdMapForNode(node, idMap) {\n var nodeParent = node.parentElement; // find all elements with an id property\n\n var idElements = node.querySelectorAll('[id]');\n\n var _iterator15 = _createForOfIteratorHelper(idElements),\n _step15;\n\n try {\n for (_iterator15.s(); !(_step15 = _iterator15.n()).done;) {\n var elt = _step15.value;\n var current = elt; // walk up the parent hierarchy of that element, adding the id\n // of element to the parent's id set\n\n while (current !== nodeParent && current != null) {\n var idSet = idMap.get(current); // if the id set doesn't exist, create it and insert it in the map\n\n if (idSet == null) {\n idSet = new Set();\n idMap.set(current, idSet);\n }\n\n idSet.add(elt.id);\n current = current.parentElement;\n }\n }\n } catch (err) {\n _iterator15.e(err);\n } finally {\n _iterator15.f();\n }\n }\n /**\n * This function computes a map of nodes to all ids contained within that node (inclusive of the\n * node). This map can be used to ask if two nodes have intersecting sets of ids, which allows\n * for a looser definition of \"matching\" than tradition id matching, and allows child nodes\n * to contribute to a parent nodes matching.\n *\n * @param {Element} oldContent the old content that will be morphed\n * @param {Element} newContent the new content to morph to\n * @returns {Map>} a map of nodes to id sets for the\n */\n\n\n function createIdMap(oldContent, newContent) {\n var idMap = new Map();\n populateIdMapForNode(oldContent, idMap);\n populateIdMapForNode(newContent, idMap);\n return idMap;\n } //=============================================================================\n // This is what ends up becoming the Idiomorph global object\n //=============================================================================\n\n\n return {\n morph: morph,\n defaults: defaults\n };\n}();\n\nfunction morphElements(currentElement, newElement) {\n var _ref11 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n\n var callbacks = _ref11.callbacks,\n options = _objectWithoutProperties(_ref11, _excluded);\n\n Idiomorph.morph(currentElement, newElement, _objectSpread(_objectSpread({}, options), {}, {\n callbacks: new DefaultIdiomorphCallbacks(callbacks)\n }));\n}\n\nfunction morphChildren(currentElement, newElement) {\n morphElements(currentElement, newElement.children, {\n morphStyle: \"innerHTML\"\n });\n}\n\nvar _beforeNodeMorphed = /*#__PURE__*/_classPrivateFieldLooseKey(\"beforeNodeMorphed\");\n\nvar DefaultIdiomorphCallbacks = function DefaultIdiomorphCallbacks() {\n var _this13 = this;\n\n var _ref12 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n beforeNodeMorphed = _ref12.beforeNodeMorphed;\n\n _classCallCheck(this, DefaultIdiomorphCallbacks);\n\n Object.defineProperty(this, _beforeNodeMorphed, {\n writable: true,\n value: void 0\n });\n\n this.beforeNodeAdded = function (node) {\n return !(node.id && node.hasAttribute(\"data-turbo-permanent\") && document.getElementById(node.id));\n };\n\n this.beforeNodeMorphed = function (currentElement, newElement) {\n if (currentElement instanceof Element) {\n if (!currentElement.hasAttribute(\"data-turbo-permanent\") && _classPrivateFieldLooseBase(_this13, _beforeNodeMorphed)[_beforeNodeMorphed](currentElement, newElement)) {\n var event = dispatch(\"turbo:before-morph-element\", {\n cancelable: true,\n target: currentElement,\n detail: {\n currentElement: currentElement,\n newElement: newElement\n }\n });\n return !event.defaultPrevented;\n } else {\n return false;\n }\n }\n };\n\n this.beforeAttributeUpdated = function (attributeName, target, mutationType) {\n var event = dispatch(\"turbo:before-morph-attribute\", {\n cancelable: true,\n target: target,\n detail: {\n attributeName: attributeName,\n mutationType: mutationType\n }\n });\n return !event.defaultPrevented;\n };\n\n this.beforeNodeRemoved = function (node) {\n return _this13.beforeNodeMorphed(node);\n };\n\n this.afterNodeMorphed = function (currentElement, newElement) {\n if (currentElement instanceof Element) {\n dispatch(\"turbo:morph-element\", {\n target: currentElement,\n detail: {\n currentElement: currentElement,\n newElement: newElement\n }\n });\n }\n };\n\n _classPrivateFieldLooseBase(this, _beforeNodeMorphed)[_beforeNodeMorphed] = beforeNodeMorphed || function () {\n return true;\n };\n};\n\nvar MorphingFrameRenderer = /*#__PURE__*/function (_FrameRenderer) {\n _inherits(MorphingFrameRenderer, _FrameRenderer);\n\n var _super5 = _createSuper(MorphingFrameRenderer);\n\n function MorphingFrameRenderer() {\n _classCallCheck(this, MorphingFrameRenderer);\n\n return _super5.apply(this, arguments);\n }\n\n _createClass(MorphingFrameRenderer, [{\n key: \"preservingPermanentElements\",\n value: function () {\n var _preservingPermanentElements3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee10(callback) {\n return _regeneratorRuntime.wrap(function _callee10$(_context10) {\n while (1) {\n switch (_context10.prev = _context10.next) {\n case 0:\n _context10.next = 2;\n return callback();\n\n case 2:\n return _context10.abrupt(\"return\", _context10.sent);\n\n case 3:\n case \"end\":\n return _context10.stop();\n }\n }\n }, _callee10);\n }));\n\n function preservingPermanentElements(_x11) {\n return _preservingPermanentElements3.apply(this, arguments);\n }\n\n return preservingPermanentElements;\n }()\n }], [{\n key: \"renderElement\",\n value: function renderElement(currentElement, newElement) {\n dispatch(\"turbo:before-frame-morph\", {\n target: currentElement,\n detail: {\n currentElement: currentElement,\n newElement: newElement\n }\n });\n morphChildren(currentElement, newElement);\n }\n }]);\n\n return MorphingFrameRenderer;\n}(FrameRenderer);\n\nvar ProgressBar = /*#__PURE__*/function () {\n function ProgressBar() {\n var _this14 = this;\n\n _classCallCheck(this, ProgressBar);\n\n this.hiding = false;\n this.value = 0;\n this.visible = false;\n\n this.trickle = function () {\n _this14.setValue(_this14.value + Math.random() / 100);\n };\n\n this.stylesheetElement = this.createStylesheetElement();\n this.progressElement = this.createProgressElement();\n this.installStylesheetElement();\n this.setValue(0);\n }\n\n _createClass(ProgressBar, [{\n key: \"show\",\n value: function show() {\n if (!this.visible) {\n this.visible = true;\n this.installProgressElement();\n this.startTrickling();\n }\n }\n }, {\n key: \"hide\",\n value: function hide() {\n var _this15 = this;\n\n if (this.visible && !this.hiding) {\n this.hiding = true;\n this.fadeProgressElement(function () {\n _this15.uninstallProgressElement();\n\n _this15.stopTrickling();\n\n _this15.visible = false;\n _this15.hiding = false;\n });\n }\n }\n }, {\n key: \"setValue\",\n value: function setValue(value) {\n this.value = value;\n this.refresh();\n } // Private\n\n }, {\n key: \"installStylesheetElement\",\n value: function installStylesheetElement() {\n document.head.insertBefore(this.stylesheetElement, document.head.firstChild);\n }\n }, {\n key: \"installProgressElement\",\n value: function installProgressElement() {\n this.progressElement.style.width = \"0\";\n this.progressElement.style.opacity = \"1\";\n document.documentElement.insertBefore(this.progressElement, document.body);\n this.refresh();\n }\n }, {\n key: \"fadeProgressElement\",\n value: function fadeProgressElement(callback) {\n this.progressElement.style.opacity = \"0\";\n setTimeout(callback, ProgressBar.animationDuration * 1.5);\n }\n }, {\n key: \"uninstallProgressElement\",\n value: function uninstallProgressElement() {\n if (this.progressElement.parentNode) {\n document.documentElement.removeChild(this.progressElement);\n }\n }\n }, {\n key: \"startTrickling\",\n value: function startTrickling() {\n if (!this.trickleInterval) {\n this.trickleInterval = window.setInterval(this.trickle, ProgressBar.animationDuration);\n }\n }\n }, {\n key: \"stopTrickling\",\n value: function stopTrickling() {\n window.clearInterval(this.trickleInterval);\n delete this.trickleInterval;\n }\n }, {\n key: \"refresh\",\n value: function refresh() {\n var _this16 = this;\n\n requestAnimationFrame(function () {\n _this16.progressElement.style.width = \"\".concat(10 + _this16.value * 90, \"%\");\n });\n }\n }, {\n key: \"createStylesheetElement\",\n value: function createStylesheetElement() {\n var element = document.createElement(\"style\");\n element.type = \"text/css\";\n element.textContent = ProgressBar.defaultCSS;\n var cspNonce = getCspNonce();\n\n if (cspNonce) {\n element.nonce = cspNonce;\n }\n\n return element;\n }\n }, {\n key: \"createProgressElement\",\n value: function createProgressElement() {\n var element = document.createElement(\"div\");\n element.className = \"turbo-progress-bar\";\n return element;\n }\n }], [{\n key: \"defaultCSS\",\n get:\n /*ms*/\n function get() {\n return unindent(_templateObject || (_templateObject = _taggedTemplateLiteral([\"\\n .turbo-progress-bar {\\n position: fixed;\\n display: block;\\n top: 0;\\n left: 0;\\n height: 3px;\\n background: #0076ff;\\n z-index: 2147483647;\\n transition:\\n width \", \"ms ease-out,\\n opacity \", \"ms \", \"ms ease-in;\\n transform: translate3d(0, 0, 0);\\n }\\n \"])), ProgressBar.animationDuration, ProgressBar.animationDuration / 2, ProgressBar.animationDuration / 2);\n }\n }]);\n\n return ProgressBar;\n}();\n\nProgressBar.animationDuration = 300;\n\nvar HeadSnapshot = /*#__PURE__*/function (_Snapshot) {\n _inherits(HeadSnapshot, _Snapshot);\n\n var _super6 = _createSuper(HeadSnapshot);\n\n function HeadSnapshot() {\n var _this17;\n\n _classCallCheck(this, HeadSnapshot);\n\n for (var _len8 = arguments.length, args = new Array(_len8), _key8 = 0; _key8 < _len8; _key8++) {\n args[_key8] = arguments[_key8];\n }\n\n _this17 = _super6.call.apply(_super6, [this].concat(args));\n _this17.detailsByOuterHTML = _this17.children.filter(function (element) {\n return !elementIsNoscript(element);\n }).map(function (element) {\n return elementWithoutNonce(element);\n }).reduce(function (result, element) {\n var outerHTML = element.outerHTML;\n var details = outerHTML in result ? result[outerHTML] : {\n type: elementType(element),\n tracked: elementIsTracked(element),\n elements: []\n };\n return _objectSpread(_objectSpread({}, result), {}, _defineProperty({}, outerHTML, _objectSpread(_objectSpread({}, details), {}, {\n elements: [].concat(_toConsumableArray(details.elements), [element])\n })));\n }, {});\n return _this17;\n }\n\n _createClass(HeadSnapshot, [{\n key: \"trackedElementSignature\",\n get: function get() {\n var _this18 = this;\n\n return Object.keys(this.detailsByOuterHTML).filter(function (outerHTML) {\n return _this18.detailsByOuterHTML[outerHTML].tracked;\n }).join(\"\");\n }\n }, {\n key: \"getScriptElementsNotInSnapshot\",\n value: function getScriptElementsNotInSnapshot(snapshot) {\n return this.getElementsMatchingTypeNotInSnapshot(\"script\", snapshot);\n }\n }, {\n key: \"getStylesheetElementsNotInSnapshot\",\n value: function getStylesheetElementsNotInSnapshot(snapshot) {\n return this.getElementsMatchingTypeNotInSnapshot(\"stylesheet\", snapshot);\n }\n }, {\n key: \"getElementsMatchingTypeNotInSnapshot\",\n value: function getElementsMatchingTypeNotInSnapshot(matchedType, snapshot) {\n var _this19 = this;\n\n return Object.keys(this.detailsByOuterHTML).filter(function (outerHTML) {\n return !(outerHTML in snapshot.detailsByOuterHTML);\n }).map(function (outerHTML) {\n return _this19.detailsByOuterHTML[outerHTML];\n }).filter(function (_ref13) {\n var type = _ref13.type;\n return type == matchedType;\n }).map(function (_ref14) {\n var _ref14$elements = _slicedToArray(_ref14.elements, 1),\n element = _ref14$elements[0];\n\n return element;\n });\n }\n }, {\n key: \"provisionalElements\",\n get: function get() {\n var _this20 = this;\n\n return Object.keys(this.detailsByOuterHTML).reduce(function (result, outerHTML) {\n var _this20$detailsByOute = _this20.detailsByOuterHTML[outerHTML],\n type = _this20$detailsByOute.type,\n tracked = _this20$detailsByOute.tracked,\n elements = _this20$detailsByOute.elements;\n\n if (type == null && !tracked) {\n return [].concat(_toConsumableArray(result), _toConsumableArray(elements));\n } else if (elements.length > 1) {\n return [].concat(_toConsumableArray(result), _toConsumableArray(elements.slice(1)));\n } else {\n return result;\n }\n }, []);\n }\n }, {\n key: \"getMetaValue\",\n value: function getMetaValue(name) {\n var element = this.findMetaElementByName(name);\n return element ? element.getAttribute(\"content\") : null;\n }\n }, {\n key: \"findMetaElementByName\",\n value: function findMetaElementByName(name) {\n var _this21 = this;\n\n return Object.keys(this.detailsByOuterHTML).reduce(function (result, outerHTML) {\n var _this21$detailsByOute = _slicedToArray(_this21.detailsByOuterHTML[outerHTML].elements, 1),\n element = _this21$detailsByOute[0];\n\n return elementIsMetaElementWithName(element, name) ? element : result;\n }, undefined | undefined);\n }\n }]);\n\n return HeadSnapshot;\n}(Snapshot);\n\nfunction elementType(element) {\n if (elementIsScript(element)) {\n return \"script\";\n } else if (elementIsStylesheet(element)) {\n return \"stylesheet\";\n }\n}\n\nfunction elementIsTracked(element) {\n return element.getAttribute(\"data-turbo-track\") == \"reload\";\n}\n\nfunction elementIsScript(element) {\n var tagName = element.localName;\n return tagName == \"script\";\n}\n\nfunction elementIsNoscript(element) {\n var tagName = element.localName;\n return tagName == \"noscript\";\n}\n\nfunction elementIsStylesheet(element) {\n var tagName = element.localName;\n return tagName == \"style\" || tagName == \"link\" && element.getAttribute(\"rel\") == \"stylesheet\";\n}\n\nfunction elementIsMetaElementWithName(element, name) {\n var tagName = element.localName;\n return tagName == \"meta\" && element.getAttribute(\"name\") == name;\n}\n\nfunction elementWithoutNonce(element) {\n if (element.hasAttribute(\"nonce\")) {\n element.setAttribute(\"nonce\", \"\");\n }\n\n return element;\n}\n\nvar PageSnapshot = /*#__PURE__*/function (_Snapshot2) {\n _inherits(PageSnapshot, _Snapshot2);\n\n var _super7 = _createSuper(PageSnapshot);\n\n function PageSnapshot(documentElement, body, headSnapshot) {\n var _this22;\n\n _classCallCheck(this, PageSnapshot);\n\n _this22 = _super7.call(this, body);\n _this22.documentElement = documentElement;\n _this22.headSnapshot = headSnapshot;\n return _this22;\n }\n\n _createClass(PageSnapshot, [{\n key: \"clone\",\n value: function clone() {\n var clonedElement = this.element.cloneNode(true);\n var selectElements = this.element.querySelectorAll(\"select\");\n var clonedSelectElements = clonedElement.querySelectorAll(\"select\");\n\n var _iterator16 = _createForOfIteratorHelper(selectElements.entries()),\n _step16;\n\n try {\n for (_iterator16.s(); !(_step16 = _iterator16.n()).done;) {\n var _ref17 = _step16.value;\n\n var _ref16 = _slicedToArray(_ref17, 2);\n\n var index = _ref16[0];\n var source = _ref16[1];\n var clone = clonedSelectElements[index];\n\n var _iterator18 = _createForOfIteratorHelper(clone.selectedOptions),\n _step18;\n\n try {\n for (_iterator18.s(); !(_step18 = _iterator18.n()).done;) {\n var option = _step18.value;\n option.selected = false;\n }\n } catch (err) {\n _iterator18.e(err);\n } finally {\n _iterator18.f();\n }\n\n var _iterator19 = _createForOfIteratorHelper(source.selectedOptions),\n _step19;\n\n try {\n for (_iterator19.s(); !(_step19 = _iterator19.n()).done;) {\n var _option = _step19.value;\n clone.options[_option.index].selected = true;\n }\n } catch (err) {\n _iterator19.e(err);\n } finally {\n _iterator19.f();\n }\n }\n } catch (err) {\n _iterator16.e(err);\n } finally {\n _iterator16.f();\n }\n\n var _iterator17 = _createForOfIteratorHelper(clonedElement.querySelectorAll('input[type=\"password\"]')),\n _step17;\n\n try {\n for (_iterator17.s(); !(_step17 = _iterator17.n()).done;) {\n var clonedPasswordInput = _step17.value;\n clonedPasswordInput.value = \"\";\n }\n } catch (err) {\n _iterator17.e(err);\n } finally {\n _iterator17.f();\n }\n\n return new PageSnapshot(this.documentElement, clonedElement, this.headSnapshot);\n }\n }, {\n key: \"lang\",\n get: function get() {\n return this.documentElement.getAttribute(\"lang\");\n }\n }, {\n key: \"headElement\",\n get: function get() {\n return this.headSnapshot.element;\n }\n }, {\n key: \"rootLocation\",\n get: function get() {\n var _this$getSetting;\n\n var root = (_this$getSetting = this.getSetting(\"root\")) !== null && _this$getSetting !== void 0 ? _this$getSetting : \"/\";\n return expandURL(root);\n }\n }, {\n key: \"cacheControlValue\",\n get: function get() {\n return this.getSetting(\"cache-control\");\n }\n }, {\n key: \"isPreviewable\",\n get: function get() {\n return this.cacheControlValue != \"no-preview\";\n }\n }, {\n key: \"isCacheable\",\n get: function get() {\n return this.cacheControlValue != \"no-cache\";\n }\n }, {\n key: \"isVisitable\",\n get: function get() {\n return this.getSetting(\"visit-control\") != \"reload\";\n }\n }, {\n key: \"prefersViewTransitions\",\n get: function get() {\n return this.headSnapshot.getMetaValue(\"view-transition\") === \"same-origin\";\n }\n }, {\n key: \"shouldMorphPage\",\n get: function get() {\n return this.getSetting(\"refresh-method\") === \"morph\";\n }\n }, {\n key: \"shouldPreserveScrollPosition\",\n get: function get() {\n return this.getSetting(\"refresh-scroll\") === \"preserve\";\n } // Private\n\n }, {\n key: \"getSetting\",\n value: function getSetting(name) {\n return this.headSnapshot.getMetaValue(\"turbo-\".concat(name));\n }\n }], [{\n key: \"fromHTMLString\",\n value: function fromHTMLString() {\n var html = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : \"\";\n return this.fromDocument(parseHTMLDocument(html));\n }\n }, {\n key: \"fromElement\",\n value: function fromElement(element) {\n return this.fromDocument(element.ownerDocument);\n }\n }, {\n key: \"fromDocument\",\n value: function fromDocument(_ref18) {\n var documentElement = _ref18.documentElement,\n body = _ref18.body,\n head = _ref18.head;\n return new this(documentElement, body, new HeadSnapshot(head));\n }\n }]);\n\n return PageSnapshot;\n}(Snapshot);\n\nvar _viewTransitionStarted = /*#__PURE__*/_classPrivateFieldLooseKey(\"viewTransitionStarted\");\n\nvar _lastOperation = /*#__PURE__*/_classPrivateFieldLooseKey(\"lastOperation\");\n\nvar ViewTransitioner = /*#__PURE__*/function () {\n function ViewTransitioner() {\n _classCallCheck(this, ViewTransitioner);\n\n Object.defineProperty(this, _viewTransitionStarted, {\n writable: true,\n value: false\n });\n Object.defineProperty(this, _lastOperation, {\n writable: true,\n value: Promise.resolve()\n });\n }\n\n _createClass(ViewTransitioner, [{\n key: \"renderChange\",\n value: function renderChange(useViewTransition, render) {\n if (useViewTransition && this.viewTransitionsAvailable && !_classPrivateFieldLooseBase(this, _viewTransitionStarted)[_viewTransitionStarted]) {\n _classPrivateFieldLooseBase(this, _viewTransitionStarted)[_viewTransitionStarted] = true;\n _classPrivateFieldLooseBase(this, _lastOperation)[_lastOperation] = _classPrivateFieldLooseBase(this, _lastOperation)[_lastOperation].then( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee11() {\n return _regeneratorRuntime.wrap(function _callee11$(_context11) {\n while (1) {\n switch (_context11.prev = _context11.next) {\n case 0:\n _context11.next = 2;\n return document.startViewTransition(render).finished;\n\n case 2:\n case \"end\":\n return _context11.stop();\n }\n }\n }, _callee11);\n })));\n } else {\n _classPrivateFieldLooseBase(this, _lastOperation)[_lastOperation] = _classPrivateFieldLooseBase(this, _lastOperation)[_lastOperation].then(render);\n }\n\n return _classPrivateFieldLooseBase(this, _lastOperation)[_lastOperation];\n }\n }, {\n key: \"viewTransitionsAvailable\",\n get: function get() {\n return document.startViewTransition;\n }\n }]);\n\n return ViewTransitioner;\n}();\n\nvar defaultOptions = {\n action: \"advance\",\n historyChanged: false,\n visitCachedSnapshot: function visitCachedSnapshot() {},\n willRender: true,\n updateHistory: true,\n shouldCacheSnapshot: true,\n acceptsStreamResponse: false\n};\nvar TimingMetric = {\n visitStart: \"visitStart\",\n requestStart: \"requestStart\",\n requestEnd: \"requestEnd\",\n visitEnd: \"visitEnd\"\n};\nvar VisitState = {\n initialized: \"initialized\",\n started: \"started\",\n canceled: \"canceled\",\n failed: \"failed\",\n completed: \"completed\"\n};\nvar SystemStatusCode = {\n networkFailure: 0,\n timeoutFailure: -1,\n contentTypeMismatch: -2\n};\nvar Direction = {\n advance: \"forward\",\n restore: \"back\",\n replace: \"none\"\n};\n\nvar Visit = /*#__PURE__*/function () {\n function Visit(delegate, location, restorationIdentifier) {\n var options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};\n\n _classCallCheck(this, Visit);\n\n this.identifier = uuid();\n // Required by turbo-ios\n this.timingMetrics = {};\n this.followedRedirect = false;\n this.historyChanged = false;\n this.scrolled = false;\n this.shouldCacheSnapshot = true;\n this.acceptsStreamResponse = false;\n this.snapshotCached = false;\n this.state = VisitState.initialized;\n this.viewTransitioner = new ViewTransitioner();\n this.delegate = delegate;\n this.location = location;\n this.restorationIdentifier = restorationIdentifier || uuid();\n\n var _defaultOptions$optio = _objectSpread(_objectSpread({}, defaultOptions), options),\n action = _defaultOptions$optio.action,\n historyChanged = _defaultOptions$optio.historyChanged,\n referrer = _defaultOptions$optio.referrer,\n snapshot = _defaultOptions$optio.snapshot,\n snapshotHTML = _defaultOptions$optio.snapshotHTML,\n response = _defaultOptions$optio.response,\n visitCachedSnapshot = _defaultOptions$optio.visitCachedSnapshot,\n willRender = _defaultOptions$optio.willRender,\n updateHistory = _defaultOptions$optio.updateHistory,\n shouldCacheSnapshot = _defaultOptions$optio.shouldCacheSnapshot,\n acceptsStreamResponse = _defaultOptions$optio.acceptsStreamResponse,\n direction = _defaultOptions$optio.direction;\n\n this.action = action;\n this.historyChanged = historyChanged;\n this.referrer = referrer;\n this.snapshot = snapshot;\n this.snapshotHTML = snapshotHTML;\n this.response = response;\n this.isSamePage = this.delegate.locationWithActionIsSamePage(this.location, this.action);\n this.isPageRefresh = this.view.isPageRefresh(this);\n this.visitCachedSnapshot = visitCachedSnapshot;\n this.willRender = willRender;\n this.updateHistory = updateHistory;\n this.scrolled = !willRender;\n this.shouldCacheSnapshot = shouldCacheSnapshot;\n this.acceptsStreamResponse = acceptsStreamResponse;\n this.direction = direction || Direction[action];\n }\n\n _createClass(Visit, [{\n key: \"adapter\",\n get: function get() {\n return this.delegate.adapter;\n }\n }, {\n key: \"view\",\n get: function get() {\n return this.delegate.view;\n }\n }, {\n key: \"history\",\n get: function get() {\n return this.delegate.history;\n }\n }, {\n key: \"restorationData\",\n get: function get() {\n return this.history.getRestorationDataForIdentifier(this.restorationIdentifier);\n }\n }, {\n key: \"silent\",\n get: function get() {\n return this.isSamePage;\n }\n }, {\n key: \"start\",\n value: function start() {\n if (this.state == VisitState.initialized) {\n this.recordTimingMetric(TimingMetric.visitStart);\n this.state = VisitState.started;\n this.adapter.visitStarted(this);\n this.delegate.visitStarted(this);\n }\n }\n }, {\n key: \"cancel\",\n value: function cancel() {\n if (this.state == VisitState.started) {\n if (this.request) {\n this.request.cancel();\n }\n\n this.cancelRender();\n this.state = VisitState.canceled;\n }\n }\n }, {\n key: \"complete\",\n value: function complete() {\n if (this.state == VisitState.started) {\n this.recordTimingMetric(TimingMetric.visitEnd);\n this.adapter.visitCompleted(this);\n this.state = VisitState.completed;\n this.followRedirect();\n\n if (!this.followedRedirect) {\n this.delegate.visitCompleted(this);\n }\n }\n }\n }, {\n key: \"fail\",\n value: function fail() {\n if (this.state == VisitState.started) {\n this.state = VisitState.failed;\n this.adapter.visitFailed(this);\n this.delegate.visitCompleted(this);\n }\n }\n }, {\n key: \"changeHistory\",\n value: function changeHistory() {\n if (!this.historyChanged && this.updateHistory) {\n var _this$referrer;\n\n var actionForHistory = this.location.href === ((_this$referrer = this.referrer) === null || _this$referrer === void 0 ? void 0 : _this$referrer.href) ? \"replace\" : this.action;\n var method = getHistoryMethodForAction(actionForHistory);\n this.history.update(method, this.location, this.restorationIdentifier);\n this.historyChanged = true;\n }\n }\n }, {\n key: \"issueRequest\",\n value: function issueRequest() {\n if (this.hasPreloadedResponse()) {\n this.simulateRequest();\n } else if (this.shouldIssueRequest() && !this.request) {\n this.request = new FetchRequest(this, FetchMethod.get, this.location);\n this.request.perform();\n }\n }\n }, {\n key: \"simulateRequest\",\n value: function simulateRequest() {\n if (this.response) {\n this.startRequest();\n this.recordResponse();\n this.finishRequest();\n }\n }\n }, {\n key: \"startRequest\",\n value: function startRequest() {\n this.recordTimingMetric(TimingMetric.requestStart);\n this.adapter.visitRequestStarted(this);\n }\n }, {\n key: \"recordResponse\",\n value: function recordResponse() {\n var response = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.response;\n this.response = response;\n\n if (response) {\n var statusCode = response.statusCode;\n\n if (isSuccessful(statusCode)) {\n this.adapter.visitRequestCompleted(this);\n } else {\n this.adapter.visitRequestFailedWithStatusCode(this, statusCode);\n }\n }\n }\n }, {\n key: \"finishRequest\",\n value: function finishRequest() {\n this.recordTimingMetric(TimingMetric.requestEnd);\n this.adapter.visitRequestFinished(this);\n }\n }, {\n key: \"loadResponse\",\n value: function loadResponse() {\n var _this23 = this;\n\n if (this.response) {\n var _this$response = this.response,\n statusCode = _this$response.statusCode,\n responseHTML = _this$response.responseHTML;\n this.render( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee12() {\n var snapshot;\n return _regeneratorRuntime.wrap(function _callee12$(_context12) {\n while (1) {\n switch (_context12.prev = _context12.next) {\n case 0:\n if (_this23.shouldCacheSnapshot) _this23.cacheSnapshot();\n\n if (!_this23.view.renderPromise) {\n _context12.next = 4;\n break;\n }\n\n _context12.next = 4;\n return _this23.view.renderPromise;\n\n case 4:\n if (!(isSuccessful(statusCode) && responseHTML != null)) {\n _context12.next = 12;\n break;\n }\n\n snapshot = PageSnapshot.fromHTMLString(responseHTML);\n _context12.next = 8;\n return _this23.renderPageSnapshot(snapshot, false);\n\n case 8:\n _this23.adapter.visitRendered(_this23);\n\n _this23.complete();\n\n _context12.next = 16;\n break;\n\n case 12:\n _context12.next = 14;\n return _this23.view.renderError(PageSnapshot.fromHTMLString(responseHTML), _this23);\n\n case 14:\n _this23.adapter.visitRendered(_this23);\n\n _this23.fail();\n\n case 16:\n case \"end\":\n return _context12.stop();\n }\n }\n }, _callee12);\n })));\n }\n }\n }, {\n key: \"getCachedSnapshot\",\n value: function getCachedSnapshot() {\n var snapshot = this.view.getCachedSnapshotForLocation(this.location) || this.getPreloadedSnapshot();\n\n if (snapshot && (!getAnchor(this.location) || snapshot.hasAnchor(getAnchor(this.location)))) {\n if (this.action == \"restore\" || snapshot.isPreviewable) {\n return snapshot;\n }\n }\n }\n }, {\n key: \"getPreloadedSnapshot\",\n value: function getPreloadedSnapshot() {\n if (this.snapshotHTML) {\n return PageSnapshot.fromHTMLString(this.snapshotHTML);\n }\n }\n }, {\n key: \"hasCachedSnapshot\",\n value: function hasCachedSnapshot() {\n return this.getCachedSnapshot() != null;\n }\n }, {\n key: \"loadCachedSnapshot\",\n value: function loadCachedSnapshot() {\n var _this24 = this;\n\n var snapshot = this.getCachedSnapshot();\n\n if (snapshot) {\n var isPreview = this.shouldIssueRequest();\n this.render( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee13() {\n return _regeneratorRuntime.wrap(function _callee13$(_context13) {\n while (1) {\n switch (_context13.prev = _context13.next) {\n case 0:\n _this24.cacheSnapshot();\n\n if (!(_this24.isSamePage || _this24.isPageRefresh)) {\n _context13.next = 5;\n break;\n }\n\n _this24.adapter.visitRendered(_this24);\n\n _context13.next = 12;\n break;\n\n case 5:\n if (!_this24.view.renderPromise) {\n _context13.next = 8;\n break;\n }\n\n _context13.next = 8;\n return _this24.view.renderPromise;\n\n case 8:\n _context13.next = 10;\n return _this24.renderPageSnapshot(snapshot, isPreview);\n\n case 10:\n _this24.adapter.visitRendered(_this24);\n\n if (!isPreview) {\n _this24.complete();\n }\n\n case 12:\n case \"end\":\n return _context13.stop();\n }\n }\n }, _callee13);\n })));\n }\n }\n }, {\n key: \"followRedirect\",\n value: function followRedirect() {\n var _this$response2;\n\n if (this.redirectedToLocation && !this.followedRedirect && (_this$response2 = this.response) !== null && _this$response2 !== void 0 && _this$response2.redirected) {\n this.adapter.visitProposedToLocation(this.redirectedToLocation, {\n action: \"replace\",\n response: this.response,\n shouldCacheSnapshot: false,\n willRender: false\n });\n this.followedRedirect = true;\n }\n }\n }, {\n key: \"goToSamePageAnchor\",\n value: function goToSamePageAnchor() {\n var _this25 = this;\n\n if (this.isSamePage) {\n this.render( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee14() {\n return _regeneratorRuntime.wrap(function _callee14$(_context14) {\n while (1) {\n switch (_context14.prev = _context14.next) {\n case 0:\n _this25.cacheSnapshot();\n\n _this25.performScroll();\n\n _this25.changeHistory();\n\n _this25.adapter.visitRendered(_this25);\n\n case 4:\n case \"end\":\n return _context14.stop();\n }\n }\n }, _callee14);\n })));\n }\n } // Fetch request delegate\n\n }, {\n key: \"prepareRequest\",\n value: function prepareRequest(request) {\n if (this.acceptsStreamResponse) {\n request.acceptResponseType(StreamMessage.contentType);\n }\n }\n }, {\n key: \"requestStarted\",\n value: function requestStarted() {\n this.startRequest();\n }\n }, {\n key: \"requestPreventedHandlingResponse\",\n value: function requestPreventedHandlingResponse(_request, _response) {}\n }, {\n key: \"requestSucceededWithResponse\",\n value: function () {\n var _requestSucceededWithResponse = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee15(request, response) {\n var responseHTML, redirected, statusCode;\n return _regeneratorRuntime.wrap(function _callee15$(_context15) {\n while (1) {\n switch (_context15.prev = _context15.next) {\n case 0:\n _context15.next = 2;\n return response.responseHTML;\n\n case 2:\n responseHTML = _context15.sent;\n redirected = response.redirected, statusCode = response.statusCode;\n\n if (responseHTML == undefined) {\n this.recordResponse({\n statusCode: SystemStatusCode.contentTypeMismatch,\n redirected: redirected\n });\n } else {\n this.redirectedToLocation = response.redirected ? response.location : undefined;\n this.recordResponse({\n statusCode: statusCode,\n responseHTML: responseHTML,\n redirected: redirected\n });\n }\n\n case 5:\n case \"end\":\n return _context15.stop();\n }\n }\n }, _callee15, this);\n }));\n\n function requestSucceededWithResponse(_x12, _x13) {\n return _requestSucceededWithResponse.apply(this, arguments);\n }\n\n return requestSucceededWithResponse;\n }()\n }, {\n key: \"requestFailedWithResponse\",\n value: function () {\n var _requestFailedWithResponse = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee16(request, response) {\n var responseHTML, redirected, statusCode;\n return _regeneratorRuntime.wrap(function _callee16$(_context16) {\n while (1) {\n switch (_context16.prev = _context16.next) {\n case 0:\n _context16.next = 2;\n return response.responseHTML;\n\n case 2:\n responseHTML = _context16.sent;\n redirected = response.redirected, statusCode = response.statusCode;\n\n if (responseHTML == undefined) {\n this.recordResponse({\n statusCode: SystemStatusCode.contentTypeMismatch,\n redirected: redirected\n });\n } else {\n this.recordResponse({\n statusCode: statusCode,\n responseHTML: responseHTML,\n redirected: redirected\n });\n }\n\n case 5:\n case \"end\":\n return _context16.stop();\n }\n }\n }, _callee16, this);\n }));\n\n function requestFailedWithResponse(_x14, _x15) {\n return _requestFailedWithResponse.apply(this, arguments);\n }\n\n return requestFailedWithResponse;\n }()\n }, {\n key: \"requestErrored\",\n value: function requestErrored(_request, _error) {\n this.recordResponse({\n statusCode: SystemStatusCode.networkFailure,\n redirected: false\n });\n }\n }, {\n key: \"requestFinished\",\n value: function requestFinished() {\n this.finishRequest();\n } // Scrolling\n\n }, {\n key: \"performScroll\",\n value: function performScroll() {\n if (!this.scrolled && !this.view.forceReloaded && !this.view.shouldPreserveScrollPosition(this)) {\n if (this.action == \"restore\") {\n this.scrollToRestoredPosition() || this.scrollToAnchor() || this.view.scrollToTop();\n } else {\n this.scrollToAnchor() || this.view.scrollToTop();\n }\n\n if (this.isSamePage) {\n this.delegate.visitScrolledToSamePageLocation(this.view.lastRenderedLocation, this.location);\n }\n\n this.scrolled = true;\n }\n }\n }, {\n key: \"scrollToRestoredPosition\",\n value: function scrollToRestoredPosition() {\n var scrollPosition = this.restorationData.scrollPosition;\n\n if (scrollPosition) {\n this.view.scrollToPosition(scrollPosition);\n return true;\n }\n }\n }, {\n key: \"scrollToAnchor\",\n value: function scrollToAnchor() {\n var anchor = getAnchor(this.location);\n\n if (anchor != null) {\n this.view.scrollToAnchor(anchor);\n return true;\n }\n } // Instrumentation\n\n }, {\n key: \"recordTimingMetric\",\n value: function recordTimingMetric(metric) {\n this.timingMetrics[metric] = new Date().getTime();\n }\n }, {\n key: \"getTimingMetrics\",\n value: function getTimingMetrics() {\n return _objectSpread({}, this.timingMetrics);\n } // Private\n\n }, {\n key: \"getHistoryMethodForAction\",\n value: function getHistoryMethodForAction(action) {\n switch (action) {\n case \"replace\":\n return history.replaceState;\n\n case \"advance\":\n case \"restore\":\n return history.pushState;\n }\n }\n }, {\n key: \"hasPreloadedResponse\",\n value: function hasPreloadedResponse() {\n return _typeof(this.response) == \"object\";\n }\n }, {\n key: \"shouldIssueRequest\",\n value: function shouldIssueRequest() {\n if (this.isSamePage) {\n return false;\n } else if (this.action == \"restore\") {\n return !this.hasCachedSnapshot();\n } else {\n return this.willRender;\n }\n }\n }, {\n key: \"cacheSnapshot\",\n value: function cacheSnapshot() {\n var _this26 = this;\n\n if (!this.snapshotCached) {\n this.view.cacheSnapshot(this.snapshot).then(function (snapshot) {\n return snapshot && _this26.visitCachedSnapshot(snapshot);\n });\n this.snapshotCached = true;\n }\n }\n }, {\n key: \"render\",\n value: function () {\n var _render3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee17(callback) {\n var _this27 = this;\n\n return _regeneratorRuntime.wrap(function _callee17$(_context17) {\n while (1) {\n switch (_context17.prev = _context17.next) {\n case 0:\n this.cancelRender();\n _context17.next = 3;\n return new Promise(function (resolve) {\n _this27.frame = document.visibilityState === \"hidden\" ? setTimeout(function () {\n return resolve();\n }, 0) : requestAnimationFrame(function () {\n return resolve();\n });\n });\n\n case 3:\n _context17.next = 5;\n return callback();\n\n case 5:\n delete this.frame;\n\n case 6:\n case \"end\":\n return _context17.stop();\n }\n }\n }, _callee17, this);\n }));\n\n function render(_x16) {\n return _render3.apply(this, arguments);\n }\n\n return render;\n }()\n }, {\n key: \"renderPageSnapshot\",\n value: function () {\n var _renderPageSnapshot = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee19(snapshot, isPreview) {\n var _this28 = this;\n\n return _regeneratorRuntime.wrap(function _callee19$(_context19) {\n while (1) {\n switch (_context19.prev = _context19.next) {\n case 0:\n _context19.next = 2;\n return this.viewTransitioner.renderChange(this.view.shouldTransitionTo(snapshot), /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee18() {\n return _regeneratorRuntime.wrap(function _callee18$(_context18) {\n while (1) {\n switch (_context18.prev = _context18.next) {\n case 0:\n _context18.next = 2;\n return _this28.view.renderPage(snapshot, isPreview, _this28.willRender, _this28);\n\n case 2:\n _this28.performScroll();\n\n case 3:\n case \"end\":\n return _context18.stop();\n }\n }\n }, _callee18);\n })));\n\n case 2:\n case \"end\":\n return _context19.stop();\n }\n }\n }, _callee19, this);\n }));\n\n function renderPageSnapshot(_x17, _x18) {\n return _renderPageSnapshot.apply(this, arguments);\n }\n\n return renderPageSnapshot;\n }()\n }, {\n key: \"cancelRender\",\n value: function cancelRender() {\n if (this.frame) {\n cancelAnimationFrame(this.frame);\n delete this.frame;\n }\n }\n }]);\n\n return Visit;\n}();\n\nfunction isSuccessful(statusCode) {\n return statusCode >= 200 && statusCode < 300;\n}\n\nvar BrowserAdapter = /*#__PURE__*/function () {\n function BrowserAdapter(session) {\n var _this29 = this;\n\n _classCallCheck(this, BrowserAdapter);\n\n this.progressBar = new ProgressBar();\n\n this.showProgressBar = function () {\n _this29.progressBar.show();\n };\n\n this.session = session;\n }\n\n _createClass(BrowserAdapter, [{\n key: \"visitProposedToLocation\",\n value: function visitProposedToLocation(location, options) {\n if (locationIsVisitable(location, this.navigator.rootLocation)) {\n this.navigator.startVisit(location, (options === null || options === void 0 ? void 0 : options.restorationIdentifier) || uuid(), options);\n } else {\n window.location.href = location.toString();\n }\n }\n }, {\n key: \"visitStarted\",\n value: function visitStarted(visit) {\n this.location = visit.location;\n visit.loadCachedSnapshot();\n visit.issueRequest();\n visit.goToSamePageAnchor();\n }\n }, {\n key: \"visitRequestStarted\",\n value: function visitRequestStarted(visit) {\n this.progressBar.setValue(0);\n\n if (visit.hasCachedSnapshot() || visit.action != \"restore\") {\n this.showVisitProgressBarAfterDelay();\n } else {\n this.showProgressBar();\n }\n }\n }, {\n key: \"visitRequestCompleted\",\n value: function visitRequestCompleted(visit) {\n visit.loadResponse();\n }\n }, {\n key: \"visitRequestFailedWithStatusCode\",\n value: function visitRequestFailedWithStatusCode(visit, statusCode) {\n switch (statusCode) {\n case SystemStatusCode.networkFailure:\n case SystemStatusCode.timeoutFailure:\n case SystemStatusCode.contentTypeMismatch:\n return this.reload({\n reason: \"request_failed\",\n context: {\n statusCode: statusCode\n }\n });\n\n default:\n return visit.loadResponse();\n }\n }\n }, {\n key: \"visitRequestFinished\",\n value: function visitRequestFinished(_visit) {}\n }, {\n key: \"visitCompleted\",\n value: function visitCompleted(_visit) {\n this.progressBar.setValue(1);\n this.hideVisitProgressBar();\n }\n }, {\n key: \"pageInvalidated\",\n value: function pageInvalidated(reason) {\n this.reload(reason);\n }\n }, {\n key: \"visitFailed\",\n value: function visitFailed(_visit) {\n this.progressBar.setValue(1);\n this.hideVisitProgressBar();\n }\n }, {\n key: \"visitRendered\",\n value: function visitRendered(_visit) {} // Form Submission Delegate\n\n }, {\n key: \"formSubmissionStarted\",\n value: function formSubmissionStarted(_formSubmission) {\n this.progressBar.setValue(0);\n this.showFormProgressBarAfterDelay();\n }\n }, {\n key: \"formSubmissionFinished\",\n value: function formSubmissionFinished(_formSubmission) {\n this.progressBar.setValue(1);\n this.hideFormProgressBar();\n } // Private\n\n }, {\n key: \"showVisitProgressBarAfterDelay\",\n value: function showVisitProgressBarAfterDelay() {\n this.visitProgressBarTimeout = window.setTimeout(this.showProgressBar, this.session.progressBarDelay);\n }\n }, {\n key: \"hideVisitProgressBar\",\n value: function hideVisitProgressBar() {\n this.progressBar.hide();\n\n if (this.visitProgressBarTimeout != null) {\n window.clearTimeout(this.visitProgressBarTimeout);\n delete this.visitProgressBarTimeout;\n }\n }\n }, {\n key: \"showFormProgressBarAfterDelay\",\n value: function showFormProgressBarAfterDelay() {\n if (this.formProgressBarTimeout == null) {\n this.formProgressBarTimeout = window.setTimeout(this.showProgressBar, this.session.progressBarDelay);\n }\n }\n }, {\n key: \"hideFormProgressBar\",\n value: function hideFormProgressBar() {\n this.progressBar.hide();\n\n if (this.formProgressBarTimeout != null) {\n window.clearTimeout(this.formProgressBarTimeout);\n delete this.formProgressBarTimeout;\n }\n }\n }, {\n key: \"reload\",\n value: function reload(reason) {\n var _this$location;\n\n dispatch(\"turbo:reload\", {\n detail: reason\n });\n window.location.href = ((_this$location = this.location) === null || _this$location === void 0 ? void 0 : _this$location.toString()) || window.location.href;\n }\n }, {\n key: \"navigator\",\n get: function get() {\n return this.session.navigator;\n }\n }]);\n\n return BrowserAdapter;\n}();\n\nvar CacheObserver = /*#__PURE__*/function () {\n function CacheObserver() {\n var _this30 = this;\n\n _classCallCheck(this, CacheObserver);\n\n this.selector = \"[data-turbo-temporary]\";\n this.deprecatedSelector = \"[data-turbo-cache=false]\";\n this.started = false;\n\n this.removeTemporaryElements = function (_event) {\n var _iterator20 = _createForOfIteratorHelper(_this30.temporaryElements),\n _step20;\n\n try {\n for (_iterator20.s(); !(_step20 = _iterator20.n()).done;) {\n var element = _step20.value;\n element.remove();\n }\n } catch (err) {\n _iterator20.e(err);\n } finally {\n _iterator20.f();\n }\n };\n }\n\n _createClass(CacheObserver, [{\n key: \"start\",\n value: function start() {\n if (!this.started) {\n this.started = true;\n addEventListener(\"turbo:before-cache\", this.removeTemporaryElements, false);\n }\n }\n }, {\n key: \"stop\",\n value: function stop() {\n if (this.started) {\n this.started = false;\n removeEventListener(\"turbo:before-cache\", this.removeTemporaryElements, false);\n }\n }\n }, {\n key: \"temporaryElements\",\n get: function get() {\n return [].concat(_toConsumableArray(document.querySelectorAll(this.selector)), _toConsumableArray(this.temporaryElementsWithDeprecation));\n }\n }, {\n key: \"temporaryElementsWithDeprecation\",\n get: function get() {\n var elements = document.querySelectorAll(this.deprecatedSelector);\n\n if (elements.length) {\n console.warn(\"The \".concat(this.deprecatedSelector, \" selector is deprecated and will be removed in a future version. Use \").concat(this.selector, \" instead.\"));\n }\n\n return _toConsumableArray(elements);\n }\n }]);\n\n return CacheObserver;\n}();\n\nvar _shouldSubmit = /*#__PURE__*/_classPrivateFieldLooseKey(\"shouldSubmit\");\n\nvar _shouldRedirect = /*#__PURE__*/_classPrivateFieldLooseKey(\"shouldRedirect\");\n\nvar _findFrameElement = /*#__PURE__*/_classPrivateFieldLooseKey(\"findFrameElement\");\n\nvar FrameRedirector = /*#__PURE__*/function () {\n function FrameRedirector(session, _element) {\n _classCallCheck(this, FrameRedirector);\n\n Object.defineProperty(this, _findFrameElement, {\n value: _findFrameElement2\n });\n Object.defineProperty(this, _shouldRedirect, {\n value: _shouldRedirect2\n });\n Object.defineProperty(this, _shouldSubmit, {\n value: _shouldSubmit2\n });\n this.session = session;\n this.element = _element;\n this.linkInterceptor = new LinkInterceptor(this, _element);\n this.formSubmitObserver = new FormSubmitObserver(this, _element);\n }\n\n _createClass(FrameRedirector, [{\n key: \"start\",\n value: function start() {\n this.linkInterceptor.start();\n this.formSubmitObserver.start();\n }\n }, {\n key: \"stop\",\n value: function stop() {\n this.linkInterceptor.stop();\n this.formSubmitObserver.stop();\n } // Link interceptor delegate\n\n }, {\n key: \"shouldInterceptLinkClick\",\n value: function shouldInterceptLinkClick(element, _location, _event) {\n return _classPrivateFieldLooseBase(this, _shouldRedirect)[_shouldRedirect](element);\n }\n }, {\n key: \"linkClickIntercepted\",\n value: function linkClickIntercepted(element, url, event) {\n var frame = _classPrivateFieldLooseBase(this, _findFrameElement)[_findFrameElement](element);\n\n if (frame) {\n frame.delegate.linkClickIntercepted(element, url, event);\n }\n } // Form submit observer delegate\n\n }, {\n key: \"willSubmitForm\",\n value: function willSubmitForm(element, submitter) {\n return element.closest(\"turbo-frame\") == null && _classPrivateFieldLooseBase(this, _shouldSubmit)[_shouldSubmit](element, submitter) && _classPrivateFieldLooseBase(this, _shouldRedirect)[_shouldRedirect](element, submitter);\n }\n }, {\n key: \"formSubmitted\",\n value: function formSubmitted(element, submitter) {\n var frame = _classPrivateFieldLooseBase(this, _findFrameElement)[_findFrameElement](element, submitter);\n\n if (frame) {\n frame.delegate.formSubmitted(element, submitter);\n }\n }\n }]);\n\n return FrameRedirector;\n}();\n\nfunction _shouldSubmit2(form, submitter) {\n var _meta$content2;\n\n var action = getAction$1(form, submitter);\n var meta = this.element.ownerDocument.querySelector(\"meta[name=\\\"turbo-root\\\"]\");\n var rootLocation = expandURL((_meta$content2 = meta === null || meta === void 0 ? void 0 : meta.content) !== null && _meta$content2 !== void 0 ? _meta$content2 : \"/\");\n return _classPrivateFieldLooseBase(this, _shouldRedirect)[_shouldRedirect](form, submitter) && locationIsVisitable(action, rootLocation);\n}\n\nfunction _shouldRedirect2(element, submitter) {\n var isNavigatable = element instanceof HTMLFormElement ? this.session.submissionIsNavigatable(element, submitter) : this.session.elementIsNavigatable(element);\n\n if (isNavigatable) {\n var frame = _classPrivateFieldLooseBase(this, _findFrameElement)[_findFrameElement](element, submitter);\n\n return frame ? frame != element.closest(\"turbo-frame\") : false;\n } else {\n return false;\n }\n}\n\nfunction _findFrameElement2(element, submitter) {\n var id = (submitter === null || submitter === void 0 ? void 0 : submitter.getAttribute(\"data-turbo-frame\")) || element.getAttribute(\"data-turbo-frame\");\n\n if (id && id != \"_top\") {\n var frame = this.element.querySelector(\"#\".concat(id, \":not([disabled])\"));\n\n if (frame instanceof FrameElement) {\n return frame;\n }\n }\n}\n\nvar History = /*#__PURE__*/function () {\n function History(delegate) {\n var _this31 = this;\n\n _classCallCheck(this, History);\n\n this.location = void 0;\n this.restorationIdentifier = uuid();\n this.restorationData = {};\n this.started = false;\n this.pageLoaded = false;\n this.currentIndex = 0;\n\n // Event handlers\n this.onPopState = function (event) {\n if (_this31.shouldHandlePopState()) {\n var _ref24 = event.state || {},\n turbo = _ref24.turbo;\n\n if (turbo) {\n _this31.location = new URL(window.location.href);\n var restorationIdentifier = turbo.restorationIdentifier,\n restorationIndex = turbo.restorationIndex;\n _this31.restorationIdentifier = restorationIdentifier;\n var direction = restorationIndex > _this31.currentIndex ? \"forward\" : \"back\";\n\n _this31.delegate.historyPoppedToLocationWithRestorationIdentifierAndDirection(_this31.location, restorationIdentifier, direction);\n\n _this31.currentIndex = restorationIndex;\n }\n }\n };\n\n this.onPageLoad = /*#__PURE__*/function () {\n var _ref25 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee20(_event) {\n return _regeneratorRuntime.wrap(function _callee20$(_context20) {\n while (1) {\n switch (_context20.prev = _context20.next) {\n case 0:\n _context20.next = 2;\n return nextMicrotask();\n\n case 2:\n _this31.pageLoaded = true;\n\n case 3:\n case \"end\":\n return _context20.stop();\n }\n }\n }, _callee20);\n }));\n\n return function (_x19) {\n return _ref25.apply(this, arguments);\n };\n }();\n\n this.delegate = delegate;\n }\n\n _createClass(History, [{\n key: \"start\",\n value: function start() {\n if (!this.started) {\n var _history$state, _history$state$turbo;\n\n addEventListener(\"popstate\", this.onPopState, false);\n addEventListener(\"load\", this.onPageLoad, false);\n this.currentIndex = ((_history$state = history.state) === null || _history$state === void 0 ? void 0 : (_history$state$turbo = _history$state.turbo) === null || _history$state$turbo === void 0 ? void 0 : _history$state$turbo.restorationIndex) || 0;\n this.started = true;\n this.replace(new URL(window.location.href));\n }\n }\n }, {\n key: \"stop\",\n value: function stop() {\n if (this.started) {\n removeEventListener(\"popstate\", this.onPopState, false);\n removeEventListener(\"load\", this.onPageLoad, false);\n this.started = false;\n }\n }\n }, {\n key: \"push\",\n value: function push(location, restorationIdentifier) {\n this.update(history.pushState, location, restorationIdentifier);\n }\n }, {\n key: \"replace\",\n value: function replace(location, restorationIdentifier) {\n this.update(history.replaceState, location, restorationIdentifier);\n }\n }, {\n key: \"update\",\n value: function update(method, location) {\n var restorationIdentifier = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : uuid();\n if (method === history.pushState) ++this.currentIndex;\n var state = {\n turbo: {\n restorationIdentifier: restorationIdentifier,\n restorationIndex: this.currentIndex\n }\n };\n method.call(history, state, \"\", location.href);\n this.location = location;\n this.restorationIdentifier = restorationIdentifier;\n } // Restoration data\n\n }, {\n key: \"getRestorationDataForIdentifier\",\n value: function getRestorationDataForIdentifier(restorationIdentifier) {\n return this.restorationData[restorationIdentifier] || {};\n }\n }, {\n key: \"updateRestorationData\",\n value: function updateRestorationData(additionalData) {\n var restorationIdentifier = this.restorationIdentifier;\n var restorationData = this.restorationData[restorationIdentifier];\n this.restorationData[restorationIdentifier] = _objectSpread(_objectSpread({}, restorationData), additionalData);\n } // Scroll restoration\n\n }, {\n key: \"assumeControlOfScrollRestoration\",\n value: function assumeControlOfScrollRestoration() {\n if (!this.previousScrollRestoration) {\n var _history$scrollRestor;\n\n this.previousScrollRestoration = (_history$scrollRestor = history.scrollRestoration) !== null && _history$scrollRestor !== void 0 ? _history$scrollRestor : \"auto\";\n history.scrollRestoration = \"manual\";\n }\n }\n }, {\n key: \"relinquishControlOfScrollRestoration\",\n value: function relinquishControlOfScrollRestoration() {\n if (this.previousScrollRestoration) {\n history.scrollRestoration = this.previousScrollRestoration;\n delete this.previousScrollRestoration;\n }\n }\n }, {\n key: \"shouldHandlePopState\",\n value: // Private\n function shouldHandlePopState() {\n // Safari dispatches a popstate event after window's load event, ignore it\n return this.pageIsLoaded();\n }\n }, {\n key: \"pageIsLoaded\",\n value: function pageIsLoaded() {\n return this.pageLoaded || document.readyState == \"complete\";\n }\n }]);\n\n return History;\n}();\n\nvar _prefetchedLink = /*#__PURE__*/_classPrivateFieldLooseKey(\"prefetchedLink\");\n\nvar _enable = /*#__PURE__*/_classPrivateFieldLooseKey(\"enable\");\n\nvar _tryToPrefetchRequest = /*#__PURE__*/_classPrivateFieldLooseKey(\"tryToPrefetchRequest\");\n\nvar _cancelRequestIfObsolete = /*#__PURE__*/_classPrivateFieldLooseKey(\"cancelRequestIfObsolete\");\n\nvar _cancelPrefetchRequest = /*#__PURE__*/_classPrivateFieldLooseKey(\"cancelPrefetchRequest\");\n\nvar _tryToUsePrefetchedRequest = /*#__PURE__*/_classPrivateFieldLooseKey(\"tryToUsePrefetchedRequest\");\n\nvar _cacheTtl = /*#__PURE__*/_classPrivateFieldLooseKey(\"cacheTtl\");\n\nvar _isPrefetchable = /*#__PURE__*/_classPrivateFieldLooseKey(\"isPrefetchable\");\n\nvar LinkPrefetchObserver = /*#__PURE__*/function () {\n function LinkPrefetchObserver(delegate, eventTarget) {\n var _this32 = this;\n\n _classCallCheck(this, LinkPrefetchObserver);\n\n Object.defineProperty(this, _isPrefetchable, {\n value: _isPrefetchable2\n });\n Object.defineProperty(this, _cacheTtl, {\n get: _get_cacheTtl,\n set: void 0\n });\n this.started = false;\n Object.defineProperty(this, _prefetchedLink, {\n writable: true,\n value: null\n });\n Object.defineProperty(this, _enable, {\n writable: true,\n value: function value() {\n _this32.eventTarget.addEventListener(\"mouseenter\", _classPrivateFieldLooseBase(_this32, _tryToPrefetchRequest)[_tryToPrefetchRequest], {\n capture: true,\n passive: true\n });\n\n _this32.eventTarget.addEventListener(\"mouseleave\", _classPrivateFieldLooseBase(_this32, _cancelRequestIfObsolete)[_cancelRequestIfObsolete], {\n capture: true,\n passive: true\n });\n\n _this32.eventTarget.addEventListener(\"turbo:before-fetch-request\", _classPrivateFieldLooseBase(_this32, _tryToUsePrefetchedRequest)[_tryToUsePrefetchedRequest], true);\n\n _this32.started = true;\n }\n });\n Object.defineProperty(this, _tryToPrefetchRequest, {\n writable: true,\n value: function value(event) {\n if (getMetaContent(\"turbo-prefetch\") === \"false\") return;\n var target = event.target;\n var isLink = target.matches && target.matches(\"a[href]:not([target^=_]):not([download])\");\n\n if (isLink && _classPrivateFieldLooseBase(_this32, _isPrefetchable)[_isPrefetchable](target)) {\n var link = target;\n\n var _location3 = getLocationForLink(link);\n\n if (_this32.delegate.canPrefetchRequestToLocation(link, _location3)) {\n _classPrivateFieldLooseBase(_this32, _prefetchedLink)[_prefetchedLink] = link;\n var fetchRequest = new FetchRequest(_this32, FetchMethod.get, _location3, new URLSearchParams(), target);\n prefetchCache.setLater(_location3.toString(), fetchRequest, _classPrivateFieldLooseBase(_this32, _cacheTtl)[_cacheTtl]);\n }\n }\n }\n });\n Object.defineProperty(this, _cancelRequestIfObsolete, {\n writable: true,\n value: function value(event) {\n if (event.target === _classPrivateFieldLooseBase(_this32, _prefetchedLink)[_prefetchedLink]) _classPrivateFieldLooseBase(_this32, _cancelPrefetchRequest)[_cancelPrefetchRequest]();\n }\n });\n Object.defineProperty(this, _cancelPrefetchRequest, {\n writable: true,\n value: function value() {\n prefetchCache.clear();\n _classPrivateFieldLooseBase(_this32, _prefetchedLink)[_prefetchedLink] = null;\n }\n });\n Object.defineProperty(this, _tryToUsePrefetchedRequest, {\n writable: true,\n value: function value(event) {\n if (event.target.tagName !== \"FORM\" && event.detail.fetchOptions.method === \"GET\") {\n var cached = prefetchCache.get(event.detail.url.toString());\n\n if (cached) {\n // User clicked link, use cache response\n event.detail.fetchRequest = cached;\n }\n\n prefetchCache.clear();\n }\n }\n });\n this.delegate = delegate;\n this.eventTarget = eventTarget;\n }\n\n _createClass(LinkPrefetchObserver, [{\n key: \"start\",\n value: function start() {\n if (this.started) return;\n\n if (this.eventTarget.readyState === \"loading\") {\n this.eventTarget.addEventListener(\"DOMContentLoaded\", _classPrivateFieldLooseBase(this, _enable)[_enable], {\n once: true\n });\n } else {\n _classPrivateFieldLooseBase(this, _enable)[_enable]();\n }\n }\n }, {\n key: \"stop\",\n value: function stop() {\n if (!this.started) return;\n this.eventTarget.removeEventListener(\"mouseenter\", _classPrivateFieldLooseBase(this, _tryToPrefetchRequest)[_tryToPrefetchRequest], {\n capture: true,\n passive: true\n });\n this.eventTarget.removeEventListener(\"mouseleave\", _classPrivateFieldLooseBase(this, _cancelRequestIfObsolete)[_cancelRequestIfObsolete], {\n capture: true,\n passive: true\n });\n this.eventTarget.removeEventListener(\"turbo:before-fetch-request\", _classPrivateFieldLooseBase(this, _tryToUsePrefetchedRequest)[_tryToUsePrefetchedRequest], true);\n this.started = false;\n }\n }, {\n key: \"prepareRequest\",\n value: function prepareRequest(request) {\n var link = request.target;\n request.headers[\"X-Sec-Purpose\"] = \"prefetch\";\n var turboFrame = link.closest(\"turbo-frame\");\n var turboFrameTarget = link.getAttribute(\"data-turbo-frame\") || (turboFrame === null || turboFrame === void 0 ? void 0 : turboFrame.getAttribute(\"target\")) || (turboFrame === null || turboFrame === void 0 ? void 0 : turboFrame.id);\n\n if (turboFrameTarget && turboFrameTarget !== \"_top\") {\n request.headers[\"Turbo-Frame\"] = turboFrameTarget;\n }\n } // Fetch request interface\n\n }, {\n key: \"requestSucceededWithResponse\",\n value: function requestSucceededWithResponse() {}\n }, {\n key: \"requestStarted\",\n value: function requestStarted(fetchRequest) {}\n }, {\n key: \"requestErrored\",\n value: function requestErrored(fetchRequest) {}\n }, {\n key: \"requestFinished\",\n value: function requestFinished(fetchRequest) {}\n }, {\n key: \"requestPreventedHandlingResponse\",\n value: function requestPreventedHandlingResponse(fetchRequest, fetchResponse) {}\n }, {\n key: \"requestFailedWithResponse\",\n value: function requestFailedWithResponse(fetchRequest, fetchResponse) {}\n }]);\n\n return LinkPrefetchObserver;\n}();\n\nfunction _get_cacheTtl() {\n return Number(getMetaContent(\"turbo-prefetch-cache-time\")) || cacheTtl;\n}\n\nfunction _isPrefetchable2(link) {\n var href = link.getAttribute(\"href\");\n if (!href) return false;\n if (unfetchableLink(link)) return false;\n if (linkToTheSamePage(link)) return false;\n if (linkOptsOut(link)) return false;\n if (nonSafeLink(link)) return false;\n if (eventPrevented(link)) return false;\n return true;\n}\n\nvar unfetchableLink = function unfetchableLink(link) {\n return link.origin !== document.location.origin || ![\"http:\", \"https:\"].includes(link.protocol) || link.hasAttribute(\"target\");\n};\n\nvar linkToTheSamePage = function linkToTheSamePage(link) {\n return link.pathname + link.search === document.location.pathname + document.location.search || link.href.startsWith(\"#\");\n};\n\nvar linkOptsOut = function linkOptsOut(link) {\n if (link.getAttribute(\"data-turbo-prefetch\") === \"false\") return true;\n if (link.getAttribute(\"data-turbo\") === \"false\") return true;\n var turboPrefetchParent = findClosestRecursively(link, \"[data-turbo-prefetch]\");\n if (turboPrefetchParent && turboPrefetchParent.getAttribute(\"data-turbo-prefetch\") === \"false\") return true;\n return false;\n};\n\nvar nonSafeLink = function nonSafeLink(link) {\n var turboMethod = link.getAttribute(\"data-turbo-method\");\n if (turboMethod && turboMethod.toLowerCase() !== \"get\") return true;\n if (isUJS(link)) return true;\n if (link.hasAttribute(\"data-turbo-confirm\")) return true;\n if (link.hasAttribute(\"data-turbo-stream\")) return true;\n return false;\n};\n\nvar isUJS = function isUJS(link) {\n return link.hasAttribute(\"data-remote\") || link.hasAttribute(\"data-behavior\") || link.hasAttribute(\"data-confirm\") || link.hasAttribute(\"data-method\");\n};\n\nvar eventPrevented = function eventPrevented(link) {\n var event = dispatch(\"turbo:before-prefetch\", {\n target: link,\n cancelable: true\n });\n return event.defaultPrevented;\n};\n\nvar _getActionForFormSubmission = /*#__PURE__*/_classPrivateFieldLooseKey(\"getActionForFormSubmission\");\n\nvar _getDefaultAction = /*#__PURE__*/_classPrivateFieldLooseKey(\"getDefaultAction\");\n\nvar Navigator = /*#__PURE__*/function () {\n function Navigator(delegate) {\n _classCallCheck(this, Navigator);\n\n Object.defineProperty(this, _getDefaultAction, {\n value: _getDefaultAction2\n });\n Object.defineProperty(this, _getActionForFormSubmission, {\n value: _getActionForFormSubmission2\n });\n this.delegate = delegate;\n }\n\n _createClass(Navigator, [{\n key: \"proposeVisit\",\n value: function proposeVisit(location) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n if (this.delegate.allowsVisitingLocationWithAction(location, options.action)) {\n this.delegate.visitProposedToLocation(location, options);\n }\n }\n }, {\n key: \"startVisit\",\n value: function startVisit(locatable, restorationIdentifier) {\n var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n this.stop();\n this.currentVisit = new Visit(this, expandURL(locatable), restorationIdentifier, _objectSpread({\n referrer: this.location\n }, options));\n this.currentVisit.start();\n }\n }, {\n key: \"submitForm\",\n value: function submitForm(form, submitter) {\n this.stop();\n this.formSubmission = new FormSubmission(this, form, submitter, true);\n this.formSubmission.start();\n }\n }, {\n key: \"stop\",\n value: function stop() {\n if (this.formSubmission) {\n this.formSubmission.stop();\n delete this.formSubmission;\n }\n\n if (this.currentVisit) {\n this.currentVisit.cancel();\n delete this.currentVisit;\n }\n }\n }, {\n key: \"adapter\",\n get: function get() {\n return this.delegate.adapter;\n }\n }, {\n key: \"view\",\n get: function get() {\n return this.delegate.view;\n }\n }, {\n key: \"rootLocation\",\n get: function get() {\n return this.view.snapshot.rootLocation;\n }\n }, {\n key: \"history\",\n get: function get() {\n return this.delegate.history;\n } // Form submission delegate\n\n }, {\n key: \"formSubmissionStarted\",\n value: function formSubmissionStarted(formSubmission) {\n // Not all adapters implement formSubmissionStarted\n if (typeof this.adapter.formSubmissionStarted === \"function\") {\n this.adapter.formSubmissionStarted(formSubmission);\n }\n }\n }, {\n key: \"formSubmissionSucceededWithResponse\",\n value: function () {\n var _formSubmissionSucceededWithResponse = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee21(formSubmission, fetchResponse) {\n var responseHTML, shouldCacheSnapshot, statusCode, redirected, action, visitOptions;\n return _regeneratorRuntime.wrap(function _callee21$(_context21) {\n while (1) {\n switch (_context21.prev = _context21.next) {\n case 0:\n if (!(formSubmission == this.formSubmission)) {\n _context21.next = 5;\n break;\n }\n\n _context21.next = 3;\n return fetchResponse.responseHTML;\n\n case 3:\n responseHTML = _context21.sent;\n\n if (responseHTML) {\n shouldCacheSnapshot = formSubmission.isSafe;\n\n if (!shouldCacheSnapshot) {\n this.view.clearSnapshotCache();\n }\n\n statusCode = fetchResponse.statusCode, redirected = fetchResponse.redirected;\n action = _classPrivateFieldLooseBase(this, _getActionForFormSubmission)[_getActionForFormSubmission](formSubmission, fetchResponse);\n visitOptions = {\n action: action,\n shouldCacheSnapshot: shouldCacheSnapshot,\n response: {\n statusCode: statusCode,\n responseHTML: responseHTML,\n redirected: redirected\n }\n };\n this.proposeVisit(fetchResponse.location, visitOptions);\n }\n\n case 5:\n case \"end\":\n return _context21.stop();\n }\n }\n }, _callee21, this);\n }));\n\n function formSubmissionSucceededWithResponse(_x20, _x21) {\n return _formSubmissionSucceededWithResponse.apply(this, arguments);\n }\n\n return formSubmissionSucceededWithResponse;\n }()\n }, {\n key: \"formSubmissionFailedWithResponse\",\n value: function () {\n var _formSubmissionFailedWithResponse = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee22(formSubmission, fetchResponse) {\n var responseHTML, snapshot;\n return _regeneratorRuntime.wrap(function _callee22$(_context22) {\n while (1) {\n switch (_context22.prev = _context22.next) {\n case 0:\n _context22.next = 2;\n return fetchResponse.responseHTML;\n\n case 2:\n responseHTML = _context22.sent;\n\n if (!responseHTML) {\n _context22.next = 14;\n break;\n }\n\n snapshot = PageSnapshot.fromHTMLString(responseHTML);\n\n if (!fetchResponse.serverError) {\n _context22.next = 10;\n break;\n }\n\n _context22.next = 8;\n return this.view.renderError(snapshot, this.currentVisit);\n\n case 8:\n _context22.next = 12;\n break;\n\n case 10:\n _context22.next = 12;\n return this.view.renderPage(snapshot, false, true, this.currentVisit);\n\n case 12:\n if (!snapshot.shouldPreserveScrollPosition) {\n this.view.scrollToTop();\n }\n\n this.view.clearSnapshotCache();\n\n case 14:\n case \"end\":\n return _context22.stop();\n }\n }\n }, _callee22, this);\n }));\n\n function formSubmissionFailedWithResponse(_x22, _x23) {\n return _formSubmissionFailedWithResponse.apply(this, arguments);\n }\n\n return formSubmissionFailedWithResponse;\n }()\n }, {\n key: \"formSubmissionErrored\",\n value: function formSubmissionErrored(formSubmission, error) {\n console.error(error);\n }\n }, {\n key: \"formSubmissionFinished\",\n value: function formSubmissionFinished(formSubmission) {\n // Not all adapters implement formSubmissionFinished\n if (typeof this.adapter.formSubmissionFinished === \"function\") {\n this.adapter.formSubmissionFinished(formSubmission);\n }\n } // Visit delegate\n\n }, {\n key: \"visitStarted\",\n value: function visitStarted(visit) {\n this.delegate.visitStarted(visit);\n }\n }, {\n key: \"visitCompleted\",\n value: function visitCompleted(visit) {\n this.delegate.visitCompleted(visit);\n delete this.currentVisit;\n }\n }, {\n key: \"locationWithActionIsSamePage\",\n value: function locationWithActionIsSamePage(location, action) {\n var anchor = getAnchor(location);\n var currentAnchor = getAnchor(this.view.lastRenderedLocation);\n var isRestorationToTop = action === \"restore\" && typeof anchor === \"undefined\";\n return action !== \"replace\" && getRequestURL(location) === getRequestURL(this.view.lastRenderedLocation) && (isRestorationToTop || anchor != null && anchor !== currentAnchor);\n }\n }, {\n key: \"visitScrolledToSamePageLocation\",\n value: function visitScrolledToSamePageLocation(oldURL, newURL) {\n this.delegate.visitScrolledToSamePageLocation(oldURL, newURL);\n } // Visits\n\n }, {\n key: \"location\",\n get: function get() {\n return this.history.location;\n }\n }, {\n key: \"restorationIdentifier\",\n get: function get() {\n return this.history.restorationIdentifier;\n }\n }]);\n\n return Navigator;\n}();\n\nfunction _getActionForFormSubmission2(formSubmission, fetchResponse) {\n var submitter = formSubmission.submitter,\n formElement = formSubmission.formElement;\n return getVisitAction(submitter, formElement) || _classPrivateFieldLooseBase(this, _getDefaultAction)[_getDefaultAction](fetchResponse);\n}\n\nfunction _getDefaultAction2(fetchResponse) {\n var _this$location2;\n\n var sameLocationRedirect = fetchResponse.redirected && fetchResponse.location.href === ((_this$location2 = this.location) === null || _this$location2 === void 0 ? void 0 : _this$location2.href);\n return sameLocationRedirect ? \"replace\" : \"advance\";\n}\n\nvar PageStage = {\n initial: 0,\n loading: 1,\n interactive: 2,\n complete: 3\n};\n\nvar PageObserver = /*#__PURE__*/function () {\n function PageObserver(delegate) {\n var _this33 = this;\n\n _classCallCheck(this, PageObserver);\n\n this.stage = PageStage.initial;\n this.started = false;\n\n this.interpretReadyState = function () {\n var readyState = _this33.readyState;\n\n if (readyState == \"interactive\") {\n _this33.pageIsInteractive();\n } else if (readyState == \"complete\") {\n _this33.pageIsComplete();\n }\n };\n\n this.pageWillUnload = function () {\n _this33.delegate.pageWillUnload();\n };\n\n this.delegate = delegate;\n }\n\n _createClass(PageObserver, [{\n key: \"start\",\n value: function start() {\n if (!this.started) {\n if (this.stage == PageStage.initial) {\n this.stage = PageStage.loading;\n }\n\n document.addEventListener(\"readystatechange\", this.interpretReadyState, false);\n addEventListener(\"pagehide\", this.pageWillUnload, false);\n this.started = true;\n }\n }\n }, {\n key: \"stop\",\n value: function stop() {\n if (this.started) {\n document.removeEventListener(\"readystatechange\", this.interpretReadyState, false);\n removeEventListener(\"pagehide\", this.pageWillUnload, false);\n this.started = false;\n }\n }\n }, {\n key: \"pageIsInteractive\",\n value: function pageIsInteractive() {\n if (this.stage == PageStage.loading) {\n this.stage = PageStage.interactive;\n this.delegate.pageBecameInteractive();\n }\n }\n }, {\n key: \"pageIsComplete\",\n value: function pageIsComplete() {\n this.pageIsInteractive();\n\n if (this.stage == PageStage.interactive) {\n this.stage = PageStage.complete;\n this.delegate.pageLoaded();\n }\n }\n }, {\n key: \"readyState\",\n get: function get() {\n return document.readyState;\n }\n }]);\n\n return PageObserver;\n}();\n\nvar ScrollObserver = /*#__PURE__*/function () {\n function ScrollObserver(delegate) {\n var _this34 = this;\n\n _classCallCheck(this, ScrollObserver);\n\n this.started = false;\n\n this.onScroll = function () {\n _this34.updatePosition({\n x: window.pageXOffset,\n y: window.pageYOffset\n });\n };\n\n this.delegate = delegate;\n }\n\n _createClass(ScrollObserver, [{\n key: \"start\",\n value: function start() {\n if (!this.started) {\n addEventListener(\"scroll\", this.onScroll, false);\n this.onScroll();\n this.started = true;\n }\n }\n }, {\n key: \"stop\",\n value: function stop() {\n if (this.started) {\n removeEventListener(\"scroll\", this.onScroll, false);\n this.started = false;\n }\n }\n }, {\n key: \"updatePosition\",\n value: // Private\n function updatePosition(position) {\n this.delegate.scrollPositionChanged(position);\n }\n }]);\n\n return ScrollObserver;\n}();\n\nvar StreamMessageRenderer = /*#__PURE__*/function () {\n function StreamMessageRenderer() {\n _classCallCheck(this, StreamMessageRenderer);\n }\n\n _createClass(StreamMessageRenderer, [{\n key: \"render\",\n value: function render(_ref26) {\n var fragment = _ref26.fragment;\n Bardo.preservingPermanentElements(this, getPermanentElementMapForFragment(fragment), function () {\n withAutofocusFromFragment(fragment, function () {\n withPreservedFocus(function () {\n document.documentElement.appendChild(fragment);\n });\n });\n });\n } // Bardo delegate\n\n }, {\n key: \"enteringBardo\",\n value: function enteringBardo(currentPermanentElement, newPermanentElement) {\n newPermanentElement.replaceWith(currentPermanentElement.cloneNode(true));\n }\n }, {\n key: \"leavingBardo\",\n value: function leavingBardo() {}\n }]);\n\n return StreamMessageRenderer;\n}();\n\nfunction getPermanentElementMapForFragment(fragment) {\n var permanentElementsInDocument = queryPermanentElementsAll(document.documentElement);\n var permanentElementMap = {};\n\n var _iterator21 = _createForOfIteratorHelper(permanentElementsInDocument),\n _step21;\n\n try {\n for (_iterator21.s(); !(_step21 = _iterator21.n()).done;) {\n var permanentElementInDocument = _step21.value;\n var _id6 = permanentElementInDocument.id;\n\n var _iterator22 = _createForOfIteratorHelper(fragment.querySelectorAll(\"turbo-stream\")),\n _step22;\n\n try {\n for (_iterator22.s(); !(_step22 = _iterator22.n()).done;) {\n var streamElement = _step22.value;\n\n var elementInStream = _getPermanentElementById(streamElement.templateElement.content, _id6);\n\n if (elementInStream) {\n permanentElementMap[_id6] = [permanentElementInDocument, elementInStream];\n }\n }\n } catch (err) {\n _iterator22.e(err);\n } finally {\n _iterator22.f();\n }\n }\n } catch (err) {\n _iterator21.e(err);\n } finally {\n _iterator21.f();\n }\n\n return permanentElementMap;\n}\n\nfunction withAutofocusFromFragment(_x24, _x25) {\n return _withAutofocusFromFragment.apply(this, arguments);\n}\n\nfunction _withAutofocusFromFragment() {\n _withAutofocusFromFragment = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee47(fragment, callback) {\n var generatedID, turboStreams, elementWithAutofocus, willAutofocusId, hasNoActiveElement, elementToAutofocus;\n return _regeneratorRuntime.wrap(function _callee47$(_context47) {\n while (1) {\n switch (_context47.prev = _context47.next) {\n case 0:\n generatedID = \"turbo-stream-autofocus-\".concat(uuid());\n turboStreams = fragment.querySelectorAll(\"turbo-stream\");\n elementWithAutofocus = firstAutofocusableElementInStreams(turboStreams);\n willAutofocusId = null;\n\n if (elementWithAutofocus) {\n if (elementWithAutofocus.id) {\n willAutofocusId = elementWithAutofocus.id;\n } else {\n willAutofocusId = generatedID;\n }\n\n elementWithAutofocus.id = willAutofocusId;\n }\n\n callback();\n _context47.next = 8;\n return nextRepaint();\n\n case 8:\n hasNoActiveElement = document.activeElement == null || document.activeElement == document.body;\n\n if (hasNoActiveElement && willAutofocusId) {\n elementToAutofocus = document.getElementById(willAutofocusId);\n\n if (elementIsFocusable(elementToAutofocus)) {\n elementToAutofocus.focus();\n }\n\n if (elementToAutofocus && elementToAutofocus.id == generatedID) {\n elementToAutofocus.removeAttribute(\"id\");\n }\n }\n\n case 10:\n case \"end\":\n return _context47.stop();\n }\n }\n }, _callee47);\n }));\n return _withAutofocusFromFragment.apply(this, arguments);\n}\n\nfunction withPreservedFocus(_x26) {\n return _withPreservedFocus.apply(this, arguments);\n}\n\nfunction _withPreservedFocus() {\n _withPreservedFocus = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee48(callback) {\n var _yield$around, _yield$around2, activeElementBeforeRender, activeElementAfterRender, restoreFocusTo, elementToFocus;\n\n return _regeneratorRuntime.wrap(function _callee48$(_context48) {\n while (1) {\n switch (_context48.prev = _context48.next) {\n case 0:\n _context48.next = 2;\n return around(callback, function () {\n return document.activeElement;\n });\n\n case 2:\n _yield$around = _context48.sent;\n _yield$around2 = _slicedToArray(_yield$around, 2);\n activeElementBeforeRender = _yield$around2[0];\n activeElementAfterRender = _yield$around2[1];\n restoreFocusTo = activeElementBeforeRender && activeElementBeforeRender.id;\n\n if (restoreFocusTo) {\n elementToFocus = document.getElementById(restoreFocusTo);\n\n if (elementIsFocusable(elementToFocus) && elementToFocus != activeElementAfterRender) {\n elementToFocus.focus();\n }\n }\n\n case 8:\n case \"end\":\n return _context48.stop();\n }\n }\n }, _callee48);\n }));\n return _withPreservedFocus.apply(this, arguments);\n}\n\nfunction firstAutofocusableElementInStreams(nodeListOfStreamElements) {\n var _iterator23 = _createForOfIteratorHelper(nodeListOfStreamElements),\n _step23;\n\n try {\n for (_iterator23.s(); !(_step23 = _iterator23.n()).done;) {\n var streamElement = _step23.value;\n var elementWithAutofocus = queryAutofocusableElement(streamElement.templateElement.content);\n if (elementWithAutofocus) return elementWithAutofocus;\n }\n } catch (err) {\n _iterator23.e(err);\n } finally {\n _iterator23.f();\n }\n\n return null;\n}\n\nvar _started = /*#__PURE__*/_classPrivateFieldLooseKey(\"started\");\n\nvar StreamObserver = /*#__PURE__*/function () {\n function StreamObserver(delegate) {\n var _this35 = this;\n\n _classCallCheck(this, StreamObserver);\n\n this.sources = new Set();\n Object.defineProperty(this, _started, {\n writable: true,\n value: false\n });\n\n this.inspectFetchResponse = function (event) {\n var response = fetchResponseFromEvent(event);\n\n if (response && fetchResponseIsStream(response)) {\n event.preventDefault();\n\n _this35.receiveMessageResponse(response);\n }\n };\n\n this.receiveMessageEvent = function (event) {\n if (_classPrivateFieldLooseBase(_this35, _started)[_started] && typeof event.data == \"string\") {\n _this35.receiveMessageHTML(event.data);\n }\n };\n\n this.delegate = delegate;\n }\n\n _createClass(StreamObserver, [{\n key: \"start\",\n value: function start() {\n if (!_classPrivateFieldLooseBase(this, _started)[_started]) {\n _classPrivateFieldLooseBase(this, _started)[_started] = true;\n addEventListener(\"turbo:before-fetch-response\", this.inspectFetchResponse, false);\n }\n }\n }, {\n key: \"stop\",\n value: function stop() {\n if (_classPrivateFieldLooseBase(this, _started)[_started]) {\n _classPrivateFieldLooseBase(this, _started)[_started] = false;\n removeEventListener(\"turbo:before-fetch-response\", this.inspectFetchResponse, false);\n }\n }\n }, {\n key: \"connectStreamSource\",\n value: function connectStreamSource(source) {\n if (!this.streamSourceIsConnected(source)) {\n this.sources.add(source);\n source.addEventListener(\"message\", this.receiveMessageEvent, false);\n }\n }\n }, {\n key: \"disconnectStreamSource\",\n value: function disconnectStreamSource(source) {\n if (this.streamSourceIsConnected(source)) {\n this.sources.delete(source);\n source.removeEventListener(\"message\", this.receiveMessageEvent, false);\n }\n }\n }, {\n key: \"streamSourceIsConnected\",\n value: function streamSourceIsConnected(source) {\n return this.sources.has(source);\n }\n }, {\n key: \"receiveMessageResponse\",\n value: function () {\n var _receiveMessageResponse = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee23(response) {\n var html;\n return _regeneratorRuntime.wrap(function _callee23$(_context23) {\n while (1) {\n switch (_context23.prev = _context23.next) {\n case 0:\n _context23.next = 2;\n return response.responseHTML;\n\n case 2:\n html = _context23.sent;\n\n if (html) {\n this.receiveMessageHTML(html);\n }\n\n case 4:\n case \"end\":\n return _context23.stop();\n }\n }\n }, _callee23, this);\n }));\n\n function receiveMessageResponse(_x27) {\n return _receiveMessageResponse.apply(this, arguments);\n }\n\n return receiveMessageResponse;\n }()\n }, {\n key: \"receiveMessageHTML\",\n value: function receiveMessageHTML(html) {\n this.delegate.receivedMessageFromStream(StreamMessage.wrap(html));\n }\n }]);\n\n return StreamObserver;\n}();\n\nfunction fetchResponseFromEvent(event) {\n var _event$detail;\n\n var fetchResponse = (_event$detail = event.detail) === null || _event$detail === void 0 ? void 0 : _event$detail.fetchResponse;\n\n if (fetchResponse instanceof FetchResponse) {\n return fetchResponse;\n }\n}\n\nfunction fetchResponseIsStream(response) {\n var _response$contentType;\n\n var contentType = (_response$contentType = response.contentType) !== null && _response$contentType !== void 0 ? _response$contentType : \"\";\n return contentType.startsWith(StreamMessage.contentType);\n}\n\nvar ErrorRenderer = /*#__PURE__*/function (_Renderer3) {\n _inherits(ErrorRenderer, _Renderer3);\n\n var _super8 = _createSuper(ErrorRenderer);\n\n function ErrorRenderer() {\n _classCallCheck(this, ErrorRenderer);\n\n return _super8.apply(this, arguments);\n }\n\n _createClass(ErrorRenderer, [{\n key: \"render\",\n value: function () {\n var _render4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee24() {\n return _regeneratorRuntime.wrap(function _callee24$(_context24) {\n while (1) {\n switch (_context24.prev = _context24.next) {\n case 0:\n this.replaceHeadAndBody();\n this.activateScriptElements();\n\n case 2:\n case \"end\":\n return _context24.stop();\n }\n }\n }, _callee24, this);\n }));\n\n function render() {\n return _render4.apply(this, arguments);\n }\n\n return render;\n }()\n }, {\n key: \"replaceHeadAndBody\",\n value: function replaceHeadAndBody() {\n var _document = document,\n documentElement = _document.documentElement,\n head = _document.head;\n documentElement.replaceChild(this.newHead, head);\n this.renderElement(this.currentElement, this.newElement);\n }\n }, {\n key: \"activateScriptElements\",\n value: function activateScriptElements() {\n var _iterator24 = _createForOfIteratorHelper(this.scriptElements),\n _step24;\n\n try {\n for (_iterator24.s(); !(_step24 = _iterator24.n()).done;) {\n var replaceableElement = _step24.value;\n var parentNode = replaceableElement.parentNode;\n\n if (parentNode) {\n var element = activateScriptElement(replaceableElement);\n parentNode.replaceChild(element, replaceableElement);\n }\n }\n } catch (err) {\n _iterator24.e(err);\n } finally {\n _iterator24.f();\n }\n }\n }, {\n key: \"newHead\",\n get: function get() {\n return this.newSnapshot.headSnapshot.element;\n }\n }, {\n key: \"scriptElements\",\n get: function get() {\n return document.documentElement.querySelectorAll(\"script\");\n }\n }], [{\n key: \"renderElement\",\n value: function renderElement(currentElement, newElement) {\n var _document2 = document,\n documentElement = _document2.documentElement,\n body = _document2.body;\n documentElement.replaceChild(newElement, body);\n }\n }]);\n\n return ErrorRenderer;\n}(Renderer);\n\nvar _setLanguage = /*#__PURE__*/_classPrivateFieldLooseKey(\"setLanguage\");\n\nvar PageRenderer = /*#__PURE__*/function (_Renderer4) {\n _inherits(PageRenderer, _Renderer4);\n\n var _super9 = _createSuper(PageRenderer);\n\n function PageRenderer() {\n var _this36;\n\n _classCallCheck(this, PageRenderer);\n\n for (var _len9 = arguments.length, args = new Array(_len9), _key9 = 0; _key9 < _len9; _key9++) {\n args[_key9] = arguments[_key9];\n }\n\n _this36 = _super9.call.apply(_super9, [this].concat(args));\n Object.defineProperty(_assertThisInitialized(_this36), _setLanguage, {\n value: _setLanguage2\n });\n return _this36;\n }\n\n _createClass(PageRenderer, [{\n key: \"shouldRender\",\n get: function get() {\n return this.newSnapshot.isVisitable && this.trackedElementsAreIdentical;\n }\n }, {\n key: \"reloadReason\",\n get: function get() {\n if (!this.newSnapshot.isVisitable) {\n return {\n reason: \"turbo_visit_control_is_reload\"\n };\n }\n\n if (!this.trackedElementsAreIdentical) {\n return {\n reason: \"tracked_element_mismatch\"\n };\n }\n }\n }, {\n key: \"prepareToRender\",\n value: function () {\n var _prepareToRender = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee25() {\n return _regeneratorRuntime.wrap(function _callee25$(_context25) {\n while (1) {\n switch (_context25.prev = _context25.next) {\n case 0:\n _classPrivateFieldLooseBase(this, _setLanguage)[_setLanguage]();\n\n _context25.next = 3;\n return this.mergeHead();\n\n case 3:\n case \"end\":\n return _context25.stop();\n }\n }\n }, _callee25, this);\n }));\n\n function prepareToRender() {\n return _prepareToRender.apply(this, arguments);\n }\n\n return prepareToRender;\n }()\n }, {\n key: \"render\",\n value: function () {\n var _render5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee26() {\n return _regeneratorRuntime.wrap(function _callee26$(_context26) {\n while (1) {\n switch (_context26.prev = _context26.next) {\n case 0:\n if (!this.willRender) {\n _context26.next = 3;\n break;\n }\n\n _context26.next = 3;\n return this.replaceBody();\n\n case 3:\n case \"end\":\n return _context26.stop();\n }\n }\n }, _callee26, this);\n }));\n\n function render() {\n return _render5.apply(this, arguments);\n }\n\n return render;\n }()\n }, {\n key: \"finishRendering\",\n value: function finishRendering() {\n _get(_getPrototypeOf(PageRenderer.prototype), \"finishRendering\", this).call(this);\n\n if (!this.isPreview) {\n this.focusFirstAutofocusableElement();\n }\n }\n }, {\n key: \"currentHeadSnapshot\",\n get: function get() {\n return this.currentSnapshot.headSnapshot;\n }\n }, {\n key: \"newHeadSnapshot\",\n get: function get() {\n return this.newSnapshot.headSnapshot;\n }\n }, {\n key: \"newElement\",\n get: function get() {\n return this.newSnapshot.element;\n }\n }, {\n key: \"mergeHead\",\n value: function () {\n var _mergeHead = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee27() {\n var mergedHeadElements, newStylesheetElements;\n return _regeneratorRuntime.wrap(function _callee27$(_context27) {\n while (1) {\n switch (_context27.prev = _context27.next) {\n case 0:\n mergedHeadElements = this.mergeProvisionalElements();\n newStylesheetElements = this.copyNewHeadStylesheetElements();\n this.copyNewHeadScriptElements();\n _context27.next = 5;\n return mergedHeadElements;\n\n case 5:\n _context27.next = 7;\n return newStylesheetElements;\n\n case 7:\n if (this.willRender) {\n this.removeUnusedDynamicStylesheetElements();\n }\n\n case 8:\n case \"end\":\n return _context27.stop();\n }\n }\n }, _callee27, this);\n }));\n\n function mergeHead() {\n return _mergeHead.apply(this, arguments);\n }\n\n return mergeHead;\n }()\n }, {\n key: \"replaceBody\",\n value: function () {\n var _replaceBody = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee29() {\n var _this37 = this;\n\n return _regeneratorRuntime.wrap(function _callee29$(_context29) {\n while (1) {\n switch (_context29.prev = _context29.next) {\n case 0:\n _context29.next = 2;\n return this.preservingPermanentElements( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee28() {\n return _regeneratorRuntime.wrap(function _callee28$(_context28) {\n while (1) {\n switch (_context28.prev = _context28.next) {\n case 0:\n _this37.activateNewBody();\n\n _context28.next = 3;\n return _this37.assignNewBody();\n\n case 3:\n case \"end\":\n return _context28.stop();\n }\n }\n }, _callee28);\n })));\n\n case 2:\n case \"end\":\n return _context29.stop();\n }\n }\n }, _callee29, this);\n }));\n\n function replaceBody() {\n return _replaceBody.apply(this, arguments);\n }\n\n return replaceBody;\n }()\n }, {\n key: \"trackedElementsAreIdentical\",\n get: function get() {\n return this.currentHeadSnapshot.trackedElementSignature == this.newHeadSnapshot.trackedElementSignature;\n }\n }, {\n key: \"copyNewHeadStylesheetElements\",\n value: function () {\n var _copyNewHeadStylesheetElements = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee30() {\n var loadingElements, _iterator25, _step25, element;\n\n return _regeneratorRuntime.wrap(function _callee30$(_context30) {\n while (1) {\n switch (_context30.prev = _context30.next) {\n case 0:\n loadingElements = [];\n _iterator25 = _createForOfIteratorHelper(this.newHeadStylesheetElements);\n\n try {\n for (_iterator25.s(); !(_step25 = _iterator25.n()).done;) {\n element = _step25.value;\n loadingElements.push(waitForLoad(element));\n document.head.appendChild(element);\n }\n } catch (err) {\n _iterator25.e(err);\n } finally {\n _iterator25.f();\n }\n\n _context30.next = 5;\n return Promise.all(loadingElements);\n\n case 5:\n case \"end\":\n return _context30.stop();\n }\n }\n }, _callee30, this);\n }));\n\n function copyNewHeadStylesheetElements() {\n return _copyNewHeadStylesheetElements.apply(this, arguments);\n }\n\n return copyNewHeadStylesheetElements;\n }()\n }, {\n key: \"copyNewHeadScriptElements\",\n value: function copyNewHeadScriptElements() {\n var _iterator26 = _createForOfIteratorHelper(this.newHeadScriptElements),\n _step26;\n\n try {\n for (_iterator26.s(); !(_step26 = _iterator26.n()).done;) {\n var element = _step26.value;\n document.head.appendChild(activateScriptElement(element));\n }\n } catch (err) {\n _iterator26.e(err);\n } finally {\n _iterator26.f();\n }\n }\n }, {\n key: \"removeUnusedDynamicStylesheetElements\",\n value: function removeUnusedDynamicStylesheetElements() {\n var _iterator27 = _createForOfIteratorHelper(this.unusedDynamicStylesheetElements),\n _step27;\n\n try {\n for (_iterator27.s(); !(_step27 = _iterator27.n()).done;) {\n var element = _step27.value;\n document.head.removeChild(element);\n }\n } catch (err) {\n _iterator27.e(err);\n } finally {\n _iterator27.f();\n }\n }\n }, {\n key: \"mergeProvisionalElements\",\n value: function () {\n var _mergeProvisionalElements = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee31() {\n var newHeadElements, _iterator28, _step28, element, _iterator29, _step29, _element2;\n\n return _regeneratorRuntime.wrap(function _callee31$(_context31) {\n while (1) {\n switch (_context31.prev = _context31.next) {\n case 0:\n newHeadElements = _toConsumableArray(this.newHeadProvisionalElements);\n _iterator28 = _createForOfIteratorHelper(this.currentHeadProvisionalElements);\n\n try {\n for (_iterator28.s(); !(_step28 = _iterator28.n()).done;) {\n element = _step28.value;\n\n if (!this.isCurrentElementInElementList(element, newHeadElements)) {\n document.head.removeChild(element);\n }\n }\n } catch (err) {\n _iterator28.e(err);\n } finally {\n _iterator28.f();\n }\n\n _iterator29 = _createForOfIteratorHelper(newHeadElements);\n\n try {\n for (_iterator29.s(); !(_step29 = _iterator29.n()).done;) {\n _element2 = _step29.value;\n document.head.appendChild(_element2);\n }\n } catch (err) {\n _iterator29.e(err);\n } finally {\n _iterator29.f();\n }\n\n case 5:\n case \"end\":\n return _context31.stop();\n }\n }\n }, _callee31, this);\n }));\n\n function mergeProvisionalElements() {\n return _mergeProvisionalElements.apply(this, arguments);\n }\n\n return mergeProvisionalElements;\n }()\n }, {\n key: \"isCurrentElementInElementList\",\n value: function isCurrentElementInElementList(element, elementList) {\n var _iterator30 = _createForOfIteratorHelper(elementList.entries()),\n _step30;\n\n try {\n for (_iterator30.s(); !(_step30 = _iterator30.n()).done;) {\n var _ref30 = _step30.value;\n\n var _ref29 = _slicedToArray(_ref30, 2);\n\n var index = _ref29[0];\n var newElement = _ref29[1];\n\n // if title element...\n if (element.tagName == \"TITLE\") {\n if (newElement.tagName != \"TITLE\") {\n continue;\n }\n\n if (element.innerHTML == newElement.innerHTML) {\n elementList.splice(index, 1);\n return true;\n }\n } // if any other element...\n\n\n if (newElement.isEqualNode(element)) {\n elementList.splice(index, 1);\n return true;\n }\n }\n } catch (err) {\n _iterator30.e(err);\n } finally {\n _iterator30.f();\n }\n\n return false;\n }\n }, {\n key: \"removeCurrentHeadProvisionalElements\",\n value: function removeCurrentHeadProvisionalElements() {\n var _iterator31 = _createForOfIteratorHelper(this.currentHeadProvisionalElements),\n _step31;\n\n try {\n for (_iterator31.s(); !(_step31 = _iterator31.n()).done;) {\n var element = _step31.value;\n document.head.removeChild(element);\n }\n } catch (err) {\n _iterator31.e(err);\n } finally {\n _iterator31.f();\n }\n }\n }, {\n key: \"copyNewHeadProvisionalElements\",\n value: function copyNewHeadProvisionalElements() {\n var _iterator32 = _createForOfIteratorHelper(this.newHeadProvisionalElements),\n _step32;\n\n try {\n for (_iterator32.s(); !(_step32 = _iterator32.n()).done;) {\n var element = _step32.value;\n document.head.appendChild(element);\n }\n } catch (err) {\n _iterator32.e(err);\n } finally {\n _iterator32.f();\n }\n }\n }, {\n key: \"activateNewBody\",\n value: function activateNewBody() {\n document.adoptNode(this.newElement);\n this.activateNewBodyScriptElements();\n }\n }, {\n key: \"activateNewBodyScriptElements\",\n value: function activateNewBodyScriptElements() {\n var _iterator33 = _createForOfIteratorHelper(this.newBodyScriptElements),\n _step33;\n\n try {\n for (_iterator33.s(); !(_step33 = _iterator33.n()).done;) {\n var inertScriptElement = _step33.value;\n var activatedScriptElement = activateScriptElement(inertScriptElement);\n inertScriptElement.replaceWith(activatedScriptElement);\n }\n } catch (err) {\n _iterator33.e(err);\n } finally {\n _iterator33.f();\n }\n }\n }, {\n key: \"assignNewBody\",\n value: function () {\n var _assignNewBody = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee32() {\n return _regeneratorRuntime.wrap(function _callee32$(_context32) {\n while (1) {\n switch (_context32.prev = _context32.next) {\n case 0:\n _context32.next = 2;\n return this.renderElement(this.currentElement, this.newElement);\n\n case 2:\n case \"end\":\n return _context32.stop();\n }\n }\n }, _callee32, this);\n }));\n\n function assignNewBody() {\n return _assignNewBody.apply(this, arguments);\n }\n\n return assignNewBody;\n }()\n }, {\n key: \"unusedDynamicStylesheetElements\",\n get: function get() {\n return this.oldHeadStylesheetElements.filter(function (element) {\n return element.getAttribute(\"data-turbo-track\") === \"dynamic\";\n });\n }\n }, {\n key: \"oldHeadStylesheetElements\",\n get: function get() {\n return this.currentHeadSnapshot.getStylesheetElementsNotInSnapshot(this.newHeadSnapshot);\n }\n }, {\n key: \"newHeadStylesheetElements\",\n get: function get() {\n return this.newHeadSnapshot.getStylesheetElementsNotInSnapshot(this.currentHeadSnapshot);\n }\n }, {\n key: \"newHeadScriptElements\",\n get: function get() {\n return this.newHeadSnapshot.getScriptElementsNotInSnapshot(this.currentHeadSnapshot);\n }\n }, {\n key: \"currentHeadProvisionalElements\",\n get: function get() {\n return this.currentHeadSnapshot.provisionalElements;\n }\n }, {\n key: \"newHeadProvisionalElements\",\n get: function get() {\n return this.newHeadSnapshot.provisionalElements;\n }\n }, {\n key: \"newBodyScriptElements\",\n get: function get() {\n return this.newElement.querySelectorAll(\"script\");\n }\n }], [{\n key: \"renderElement\",\n value: function renderElement(currentElement, newElement) {\n if (document.body && newElement instanceof HTMLBodyElement) {\n document.body.replaceWith(newElement);\n } else {\n document.documentElement.appendChild(newElement);\n }\n }\n }]);\n\n return PageRenderer;\n}(Renderer);\n\nfunction _setLanguage2() {\n var documentElement = this.currentSnapshot.documentElement;\n var lang = this.newSnapshot.lang;\n\n if (lang) {\n documentElement.setAttribute(\"lang\", lang);\n } else {\n documentElement.removeAttribute(\"lang\");\n }\n}\n\nvar MorphingPageRenderer = /*#__PURE__*/function (_PageRenderer2) {\n _inherits(MorphingPageRenderer, _PageRenderer2);\n\n var _super10 = _createSuper(MorphingPageRenderer);\n\n function MorphingPageRenderer() {\n _classCallCheck(this, MorphingPageRenderer);\n\n return _super10.apply(this, arguments);\n }\n\n _createClass(MorphingPageRenderer, [{\n key: \"preservingPermanentElements\",\n value: function () {\n var _preservingPermanentElements4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee33(callback) {\n return _regeneratorRuntime.wrap(function _callee33$(_context33) {\n while (1) {\n switch (_context33.prev = _context33.next) {\n case 0:\n _context33.next = 2;\n return callback();\n\n case 2:\n return _context33.abrupt(\"return\", _context33.sent);\n\n case 3:\n case \"end\":\n return _context33.stop();\n }\n }\n }, _callee33);\n }));\n\n function preservingPermanentElements(_x28) {\n return _preservingPermanentElements4.apply(this, arguments);\n }\n\n return preservingPermanentElements;\n }()\n }, {\n key: \"renderMethod\",\n get: function get() {\n return \"morph\";\n }\n }, {\n key: \"shouldAutofocus\",\n get: function get() {\n return false;\n }\n }], [{\n key: \"renderElement\",\n value: function renderElement(currentElement, newElement) {\n morphElements(currentElement, newElement, {\n callbacks: {\n beforeNodeMorphed: function beforeNodeMorphed(element) {\n return !canRefreshFrame(element);\n }\n }\n });\n\n var _iterator34 = _createForOfIteratorHelper(currentElement.querySelectorAll(\"turbo-frame\")),\n _step34;\n\n try {\n for (_iterator34.s(); !(_step34 = _iterator34.n()).done;) {\n var frame = _step34.value;\n if (canRefreshFrame(frame)) frame.reload();\n }\n } catch (err) {\n _iterator34.e(err);\n } finally {\n _iterator34.f();\n }\n\n dispatch(\"turbo:morph\", {\n detail: {\n currentElement: currentElement,\n newElement: newElement\n }\n });\n }\n }]);\n\n return MorphingPageRenderer;\n}(PageRenderer);\n\nfunction canRefreshFrame(frame) {\n return frame instanceof FrameElement && frame.src && frame.refresh === \"morph\" && !frame.closest(\"[data-turbo-permanent]\");\n}\n\nvar SnapshotCache = /*#__PURE__*/function () {\n function SnapshotCache(size) {\n _classCallCheck(this, SnapshotCache);\n\n this.keys = [];\n this.snapshots = {};\n this.size = size;\n }\n\n _createClass(SnapshotCache, [{\n key: \"has\",\n value: function has(location) {\n return toCacheKey(location) in this.snapshots;\n }\n }, {\n key: \"get\",\n value: function get(location) {\n if (this.has(location)) {\n var snapshot = this.read(location);\n this.touch(location);\n return snapshot;\n }\n }\n }, {\n key: \"put\",\n value: function put(location, snapshot) {\n this.write(location, snapshot);\n this.touch(location);\n return snapshot;\n }\n }, {\n key: \"clear\",\n value: function clear() {\n this.snapshots = {};\n } // Private\n\n }, {\n key: \"read\",\n value: function read(location) {\n return this.snapshots[toCacheKey(location)];\n }\n }, {\n key: \"write\",\n value: function write(location, snapshot) {\n this.snapshots[toCacheKey(location)] = snapshot;\n }\n }, {\n key: \"touch\",\n value: function touch(location) {\n var key = toCacheKey(location);\n var index = this.keys.indexOf(key);\n if (index > -1) this.keys.splice(index, 1);\n this.keys.unshift(key);\n this.trim();\n }\n }, {\n key: \"trim\",\n value: function trim() {\n var _iterator35 = _createForOfIteratorHelper(this.keys.splice(this.size)),\n _step35;\n\n try {\n for (_iterator35.s(); !(_step35 = _iterator35.n()).done;) {\n var key = _step35.value;\n delete this.snapshots[key];\n }\n } catch (err) {\n _iterator35.e(err);\n } finally {\n _iterator35.f();\n }\n }\n }]);\n\n return SnapshotCache;\n}();\n\nvar PageView = /*#__PURE__*/function (_View3) {\n _inherits(PageView, _View3);\n\n var _super11 = _createSuper(PageView);\n\n function PageView() {\n var _this38;\n\n _classCallCheck(this, PageView);\n\n for (var _len10 = arguments.length, args = new Array(_len10), _key10 = 0; _key10 < _len10; _key10++) {\n args[_key10] = arguments[_key10];\n }\n\n _this38 = _super11.call.apply(_super11, [this].concat(args));\n _this38.snapshotCache = new SnapshotCache(10);\n _this38.lastRenderedLocation = new URL(location.href);\n _this38.forceReloaded = false;\n return _this38;\n }\n\n _createClass(PageView, [{\n key: \"shouldTransitionTo\",\n value: function shouldTransitionTo(newSnapshot) {\n return this.snapshot.prefersViewTransitions && newSnapshot.prefersViewTransitions;\n }\n }, {\n key: \"renderPage\",\n value: function renderPage(snapshot) {\n var isPreview = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n var willRender = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;\n var visit = arguments.length > 3 ? arguments[3] : undefined;\n var shouldMorphPage = this.isPageRefresh(visit) && this.snapshot.shouldMorphPage;\n var rendererClass = shouldMorphPage ? MorphingPageRenderer : PageRenderer;\n var renderer = new rendererClass(this.snapshot, snapshot, isPreview, willRender);\n\n if (!renderer.shouldRender) {\n this.forceReloaded = true;\n } else {\n visit === null || visit === void 0 ? void 0 : visit.changeHistory();\n }\n\n return this.render(renderer);\n }\n }, {\n key: \"renderError\",\n value: function renderError(snapshot, visit) {\n visit === null || visit === void 0 ? void 0 : visit.changeHistory();\n var renderer = new ErrorRenderer(this.snapshot, snapshot, false);\n return this.render(renderer);\n }\n }, {\n key: \"clearSnapshotCache\",\n value: function clearSnapshotCache() {\n this.snapshotCache.clear();\n }\n }, {\n key: \"cacheSnapshot\",\n value: function () {\n var _cacheSnapshot = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee34() {\n var snapshot,\n _location4,\n cachedSnapshot,\n _args34 = arguments;\n\n return _regeneratorRuntime.wrap(function _callee34$(_context34) {\n while (1) {\n switch (_context34.prev = _context34.next) {\n case 0:\n snapshot = _args34.length > 0 && _args34[0] !== undefined ? _args34[0] : this.snapshot;\n\n if (!snapshot.isCacheable) {\n _context34.next = 9;\n break;\n }\n\n this.delegate.viewWillCacheSnapshot();\n _location4 = this.lastRenderedLocation;\n _context34.next = 6;\n return nextEventLoopTick();\n\n case 6:\n cachedSnapshot = snapshot.clone();\n this.snapshotCache.put(_location4, cachedSnapshot);\n return _context34.abrupt(\"return\", cachedSnapshot);\n\n case 9:\n case \"end\":\n return _context34.stop();\n }\n }\n }, _callee34, this);\n }));\n\n function cacheSnapshot() {\n return _cacheSnapshot.apply(this, arguments);\n }\n\n return cacheSnapshot;\n }()\n }, {\n key: \"getCachedSnapshotForLocation\",\n value: function getCachedSnapshotForLocation(location) {\n return this.snapshotCache.get(location);\n }\n }, {\n key: \"isPageRefresh\",\n value: function isPageRefresh(visit) {\n return !visit || this.lastRenderedLocation.pathname === visit.location.pathname && visit.action === \"replace\";\n }\n }, {\n key: \"shouldPreserveScrollPosition\",\n value: function shouldPreserveScrollPosition(visit) {\n return this.isPageRefresh(visit) && this.snapshot.shouldPreserveScrollPosition;\n }\n }, {\n key: \"snapshot\",\n get: function get() {\n return PageSnapshot.fromElement(this.element);\n }\n }]);\n\n return PageView;\n}(View);\n\nvar _preloadAll = /*#__PURE__*/_classPrivateFieldLooseKey(\"preloadAll\");\n\nvar Preloader = /*#__PURE__*/function () {\n function Preloader(delegate, snapshotCache) {\n var _this39 = this;\n\n _classCallCheck(this, Preloader);\n\n this.selector = \"a[data-turbo-preload]\";\n Object.defineProperty(this, _preloadAll, {\n writable: true,\n value: function value() {\n _this39.preloadOnLoadLinksForView(document.body);\n }\n });\n this.delegate = delegate;\n this.snapshotCache = snapshotCache;\n }\n\n _createClass(Preloader, [{\n key: \"start\",\n value: function start() {\n if (document.readyState === \"loading\") {\n document.addEventListener(\"DOMContentLoaded\", _classPrivateFieldLooseBase(this, _preloadAll)[_preloadAll]);\n } else {\n this.preloadOnLoadLinksForView(document.body);\n }\n }\n }, {\n key: \"stop\",\n value: function stop() {\n document.removeEventListener(\"DOMContentLoaded\", _classPrivateFieldLooseBase(this, _preloadAll)[_preloadAll]);\n }\n }, {\n key: \"preloadOnLoadLinksForView\",\n value: function preloadOnLoadLinksForView(element) {\n var _iterator36 = _createForOfIteratorHelper(element.querySelectorAll(this.selector)),\n _step36;\n\n try {\n for (_iterator36.s(); !(_step36 = _iterator36.n()).done;) {\n var link = _step36.value;\n\n if (this.delegate.shouldPreloadLink(link)) {\n this.preloadURL(link);\n }\n }\n } catch (err) {\n _iterator36.e(err);\n } finally {\n _iterator36.f();\n }\n }\n }, {\n key: \"preloadURL\",\n value: function () {\n var _preloadURL = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee35(link) {\n var location, fetchRequest;\n return _regeneratorRuntime.wrap(function _callee35$(_context35) {\n while (1) {\n switch (_context35.prev = _context35.next) {\n case 0:\n location = new URL(link.href);\n\n if (!this.snapshotCache.has(location)) {\n _context35.next = 3;\n break;\n }\n\n return _context35.abrupt(\"return\");\n\n case 3:\n fetchRequest = new FetchRequest(this, FetchMethod.get, location, new URLSearchParams(), link);\n _context35.next = 6;\n return fetchRequest.perform();\n\n case 6:\n case \"end\":\n return _context35.stop();\n }\n }\n }, _callee35, this);\n }));\n\n function preloadURL(_x29) {\n return _preloadURL.apply(this, arguments);\n }\n\n return preloadURL;\n }() // Fetch request delegate\n\n }, {\n key: \"prepareRequest\",\n value: function prepareRequest(fetchRequest) {\n fetchRequest.headers[\"X-Sec-Purpose\"] = \"prefetch\";\n }\n }, {\n key: \"requestSucceededWithResponse\",\n value: function () {\n var _requestSucceededWithResponse2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee36(fetchRequest, fetchResponse) {\n var responseHTML, snapshot;\n return _regeneratorRuntime.wrap(function _callee36$(_context36) {\n while (1) {\n switch (_context36.prev = _context36.next) {\n case 0:\n _context36.prev = 0;\n _context36.next = 3;\n return fetchResponse.responseHTML;\n\n case 3:\n responseHTML = _context36.sent;\n snapshot = PageSnapshot.fromHTMLString(responseHTML);\n this.snapshotCache.put(fetchRequest.url, snapshot);\n _context36.next = 10;\n break;\n\n case 8:\n _context36.prev = 8;\n _context36.t0 = _context36[\"catch\"](0);\n\n case 10:\n case \"end\":\n return _context36.stop();\n }\n }\n }, _callee36, this, [[0, 8]]);\n }));\n\n function requestSucceededWithResponse(_x30, _x31) {\n return _requestSucceededWithResponse2.apply(this, arguments);\n }\n\n return requestSucceededWithResponse;\n }()\n }, {\n key: \"requestStarted\",\n value: function requestStarted(fetchRequest) {}\n }, {\n key: \"requestErrored\",\n value: function requestErrored(fetchRequest) {}\n }, {\n key: \"requestFinished\",\n value: function requestFinished(fetchRequest) {}\n }, {\n key: \"requestPreventedHandlingResponse\",\n value: function requestPreventedHandlingResponse(fetchRequest, fetchResponse) {}\n }, {\n key: \"requestFailedWithResponse\",\n value: function requestFailedWithResponse(fetchRequest, fetchResponse) {}\n }]);\n\n return Preloader;\n}();\n\nvar _setCacheControl = /*#__PURE__*/_classPrivateFieldLooseKey(\"setCacheControl\");\n\nvar Cache = /*#__PURE__*/function () {\n function Cache(session) {\n _classCallCheck(this, Cache);\n\n Object.defineProperty(this, _setCacheControl, {\n value: _setCacheControl2\n });\n this.session = session;\n }\n\n _createClass(Cache, [{\n key: \"clear\",\n value: function clear() {\n this.session.clearCache();\n }\n }, {\n key: \"resetCacheControl\",\n value: function resetCacheControl() {\n _classPrivateFieldLooseBase(this, _setCacheControl)[_setCacheControl](\"\");\n }\n }, {\n key: \"exemptPageFromCache\",\n value: function exemptPageFromCache() {\n _classPrivateFieldLooseBase(this, _setCacheControl)[_setCacheControl](\"no-cache\");\n }\n }, {\n key: \"exemptPageFromPreview\",\n value: function exemptPageFromPreview() {\n _classPrivateFieldLooseBase(this, _setCacheControl)[_setCacheControl](\"no-preview\");\n }\n }]);\n\n return Cache;\n}();\n\nfunction _setCacheControl2(value) {\n setMetaContent(\"turbo-cache-control\", value);\n}\n\nvar _pageRefreshDebouncePeriod = /*#__PURE__*/_classPrivateFieldLooseKey(\"pageRefreshDebouncePeriod\");\n\nvar Session = /*#__PURE__*/function () {\n function Session(recentRequests) {\n _classCallCheck(this, Session);\n\n this.navigator = new Navigator(this);\n this.history = new History(this);\n this.view = new PageView(this, document.documentElement);\n this.adapter = new BrowserAdapter(this);\n this.pageObserver = new PageObserver(this);\n this.cacheObserver = new CacheObserver();\n this.linkPrefetchObserver = new LinkPrefetchObserver(this, document);\n this.linkClickObserver = new LinkClickObserver(this, window);\n this.formSubmitObserver = new FormSubmitObserver(this, document);\n this.scrollObserver = new ScrollObserver(this);\n this.streamObserver = new StreamObserver(this);\n this.formLinkClickObserver = new FormLinkClickObserver(this, document.documentElement);\n this.frameRedirector = new FrameRedirector(this, document.documentElement);\n this.streamMessageRenderer = new StreamMessageRenderer();\n this.cache = new Cache(this);\n this.enabled = true;\n this.started = false;\n Object.defineProperty(this, _pageRefreshDebouncePeriod, {\n writable: true,\n value: 150\n });\n this.recentRequests = recentRequests;\n this.preloader = new Preloader(this, this.view.snapshotCache);\n this.debouncedRefresh = this.refresh;\n this.pageRefreshDebouncePeriod = this.pageRefreshDebouncePeriod;\n }\n\n _createClass(Session, [{\n key: \"start\",\n value: function start() {\n if (!this.started) {\n this.pageObserver.start();\n this.cacheObserver.start();\n this.linkPrefetchObserver.start();\n this.formLinkClickObserver.start();\n this.linkClickObserver.start();\n this.formSubmitObserver.start();\n this.scrollObserver.start();\n this.streamObserver.start();\n this.frameRedirector.start();\n this.history.start();\n this.preloader.start();\n this.started = true;\n this.enabled = true;\n }\n }\n }, {\n key: \"disable\",\n value: function disable() {\n this.enabled = false;\n }\n }, {\n key: \"stop\",\n value: function stop() {\n if (this.started) {\n this.pageObserver.stop();\n this.cacheObserver.stop();\n this.linkPrefetchObserver.stop();\n this.formLinkClickObserver.stop();\n this.linkClickObserver.stop();\n this.formSubmitObserver.stop();\n this.scrollObserver.stop();\n this.streamObserver.stop();\n this.frameRedirector.stop();\n this.history.stop();\n this.preloader.stop();\n this.started = false;\n }\n }\n }, {\n key: \"registerAdapter\",\n value: function registerAdapter(adapter) {\n this.adapter = adapter;\n }\n }, {\n key: \"visit\",\n value: function visit(location) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var frameElement = options.frame ? document.getElementById(options.frame) : null;\n\n if (frameElement instanceof FrameElement) {\n var action = options.action || getVisitAction(frameElement);\n frameElement.delegate.proposeVisitIfNavigatedWithAction(frameElement, action);\n frameElement.src = location.toString();\n } else {\n this.navigator.proposeVisit(expandURL(location), options);\n }\n }\n }, {\n key: \"refresh\",\n value: function refresh(url, requestId) {\n var isRecentRequest = requestId && this.recentRequests.has(requestId);\n\n if (!isRecentRequest && !this.navigator.currentVisit) {\n this.visit(url, {\n action: \"replace\",\n shouldCacheSnapshot: false\n });\n }\n }\n }, {\n key: \"connectStreamSource\",\n value: function connectStreamSource(source) {\n this.streamObserver.connectStreamSource(source);\n }\n }, {\n key: \"disconnectStreamSource\",\n value: function disconnectStreamSource(source) {\n this.streamObserver.disconnectStreamSource(source);\n }\n }, {\n key: \"renderStreamMessage\",\n value: function renderStreamMessage(message) {\n this.streamMessageRenderer.render(StreamMessage.wrap(message));\n }\n }, {\n key: \"clearCache\",\n value: function clearCache() {\n this.view.clearSnapshotCache();\n }\n }, {\n key: \"setProgressBarDelay\",\n value: function setProgressBarDelay(delay) {\n console.warn(\"Please replace `session.setProgressBarDelay(delay)` with `session.progressBarDelay = delay`. The function is deprecated and will be removed in a future version of Turbo.`\");\n this.progressBarDelay = delay;\n }\n }, {\n key: \"progressBarDelay\",\n get: function get() {\n return config.drive.progressBarDelay;\n },\n set: function set(delay) {\n config.drive.progressBarDelay = delay;\n }\n }, {\n key: \"drive\",\n get: function get() {\n return config.drive.enabled;\n },\n set: function set(value) {\n config.drive.enabled = value;\n }\n }, {\n key: \"formMode\",\n get: function get() {\n return config.forms.mode;\n },\n set: function set(value) {\n config.forms.mode = value;\n }\n }, {\n key: \"location\",\n get: function get() {\n return this.history.location;\n }\n }, {\n key: \"restorationIdentifier\",\n get: function get() {\n return this.history.restorationIdentifier;\n }\n }, {\n key: \"pageRefreshDebouncePeriod\",\n get: function get() {\n return _classPrivateFieldLooseBase(this, _pageRefreshDebouncePeriod)[_pageRefreshDebouncePeriod];\n },\n set: function set(value) {\n this.refresh = debounce(this.debouncedRefresh.bind(this), value);\n _classPrivateFieldLooseBase(this, _pageRefreshDebouncePeriod)[_pageRefreshDebouncePeriod] = value;\n } // Preloader delegate\n\n }, {\n key: \"shouldPreloadLink\",\n value: function shouldPreloadLink(element) {\n var isUnsafe = element.hasAttribute(\"data-turbo-method\");\n var isStream = element.hasAttribute(\"data-turbo-stream\");\n var frameTarget = element.getAttribute(\"data-turbo-frame\");\n var frame = frameTarget == \"_top\" ? null : document.getElementById(frameTarget) || findClosestRecursively(element, \"turbo-frame:not([disabled])\");\n\n if (isUnsafe || isStream || frame instanceof FrameElement) {\n return false;\n } else {\n var _location5 = new URL(element.href);\n\n return this.elementIsNavigatable(element) && locationIsVisitable(_location5, this.snapshot.rootLocation);\n }\n } // History delegate\n\n }, {\n key: \"historyPoppedToLocationWithRestorationIdentifierAndDirection\",\n value: function historyPoppedToLocationWithRestorationIdentifierAndDirection(location, restorationIdentifier, direction) {\n if (this.enabled) {\n this.navigator.startVisit(location, restorationIdentifier, {\n action: \"restore\",\n historyChanged: true,\n direction: direction\n });\n } else {\n this.adapter.pageInvalidated({\n reason: \"turbo_disabled\"\n });\n }\n } // Scroll observer delegate\n\n }, {\n key: \"scrollPositionChanged\",\n value: function scrollPositionChanged(position) {\n this.history.updateRestorationData({\n scrollPosition: position\n });\n } // Form click observer delegate\n\n }, {\n key: \"willSubmitFormLinkToLocation\",\n value: function willSubmitFormLinkToLocation(link, location) {\n return this.elementIsNavigatable(link) && locationIsVisitable(location, this.snapshot.rootLocation);\n }\n }, {\n key: \"submittedFormLinkToLocation\",\n value: function submittedFormLinkToLocation() {} // Link hover observer delegate\n\n }, {\n key: \"canPrefetchRequestToLocation\",\n value: function canPrefetchRequestToLocation(link, location) {\n return this.elementIsNavigatable(link) && locationIsVisitable(location, this.snapshot.rootLocation);\n } // Link click observer delegate\n\n }, {\n key: \"willFollowLinkToLocation\",\n value: function willFollowLinkToLocation(link, location, event) {\n return this.elementIsNavigatable(link) && locationIsVisitable(location, this.snapshot.rootLocation) && this.applicationAllowsFollowingLinkToLocation(link, location, event);\n }\n }, {\n key: \"followedLinkToLocation\",\n value: function followedLinkToLocation(link, location) {\n var action = this.getActionForLink(link);\n var acceptsStreamResponse = link.hasAttribute(\"data-turbo-stream\");\n this.visit(location.href, {\n action: action,\n acceptsStreamResponse: acceptsStreamResponse\n });\n } // Navigator delegate\n\n }, {\n key: \"allowsVisitingLocationWithAction\",\n value: function allowsVisitingLocationWithAction(location, action) {\n return this.locationWithActionIsSamePage(location, action) || this.applicationAllowsVisitingLocation(location);\n }\n }, {\n key: \"visitProposedToLocation\",\n value: function visitProposedToLocation(location, options) {\n extendURLWithDeprecatedProperties(location);\n this.adapter.visitProposedToLocation(location, options);\n } // Visit delegate\n\n }, {\n key: \"visitStarted\",\n value: function visitStarted(visit) {\n if (!visit.acceptsStreamResponse) {\n markAsBusy(document.documentElement);\n this.view.markVisitDirection(visit.direction);\n }\n\n extendURLWithDeprecatedProperties(visit.location);\n\n if (!visit.silent) {\n this.notifyApplicationAfterVisitingLocation(visit.location, visit.action);\n }\n }\n }, {\n key: \"visitCompleted\",\n value: function visitCompleted(visit) {\n this.view.unmarkVisitDirection();\n clearBusyState(document.documentElement);\n this.notifyApplicationAfterPageLoad(visit.getTimingMetrics());\n }\n }, {\n key: \"locationWithActionIsSamePage\",\n value: function locationWithActionIsSamePage(location, action) {\n return this.navigator.locationWithActionIsSamePage(location, action);\n }\n }, {\n key: \"visitScrolledToSamePageLocation\",\n value: function visitScrolledToSamePageLocation(oldURL, newURL) {\n this.notifyApplicationAfterVisitingSamePageLocation(oldURL, newURL);\n } // Form submit observer delegate\n\n }, {\n key: \"willSubmitForm\",\n value: function willSubmitForm(form, submitter) {\n var action = getAction$1(form, submitter);\n return this.submissionIsNavigatable(form, submitter) && locationIsVisitable(expandURL(action), this.snapshot.rootLocation);\n }\n }, {\n key: \"formSubmitted\",\n value: function formSubmitted(form, submitter) {\n this.navigator.submitForm(form, submitter);\n } // Page observer delegate\n\n }, {\n key: \"pageBecameInteractive\",\n value: function pageBecameInteractive() {\n this.view.lastRenderedLocation = this.location;\n this.notifyApplicationAfterPageLoad();\n }\n }, {\n key: \"pageLoaded\",\n value: function pageLoaded() {\n this.history.assumeControlOfScrollRestoration();\n }\n }, {\n key: \"pageWillUnload\",\n value: function pageWillUnload() {\n this.history.relinquishControlOfScrollRestoration();\n } // Stream observer delegate\n\n }, {\n key: \"receivedMessageFromStream\",\n value: function receivedMessageFromStream(message) {\n this.renderStreamMessage(message);\n } // Page view delegate\n\n }, {\n key: \"viewWillCacheSnapshot\",\n value: function viewWillCacheSnapshot() {\n var _this$navigator$curre;\n\n if (!((_this$navigator$curre = this.navigator.currentVisit) !== null && _this$navigator$curre !== void 0 && _this$navigator$curre.silent)) {\n this.notifyApplicationBeforeCachingSnapshot();\n }\n }\n }, {\n key: \"allowsImmediateRender\",\n value: function allowsImmediateRender(_ref31, options) {\n var element = _ref31.element;\n var event = this.notifyApplicationBeforeRender(element, options);\n var defaultPrevented = event.defaultPrevented,\n render = event.detail.render;\n\n if (this.view.renderer && render) {\n this.view.renderer.renderElement = render;\n }\n\n return !defaultPrevented;\n }\n }, {\n key: \"viewRenderedSnapshot\",\n value: function viewRenderedSnapshot(_snapshot, _isPreview, renderMethod) {\n this.view.lastRenderedLocation = this.history.location;\n this.notifyApplicationAfterRender(renderMethod);\n }\n }, {\n key: \"preloadOnLoadLinksForView\",\n value: function preloadOnLoadLinksForView(element) {\n this.preloader.preloadOnLoadLinksForView(element);\n }\n }, {\n key: \"viewInvalidated\",\n value: function viewInvalidated(reason) {\n this.adapter.pageInvalidated(reason);\n } // Frame element\n\n }, {\n key: \"frameLoaded\",\n value: function frameLoaded(frame) {\n this.notifyApplicationAfterFrameLoad(frame);\n }\n }, {\n key: \"frameRendered\",\n value: function frameRendered(fetchResponse, frame) {\n this.notifyApplicationAfterFrameRender(fetchResponse, frame);\n } // Application events\n\n }, {\n key: \"applicationAllowsFollowingLinkToLocation\",\n value: function applicationAllowsFollowingLinkToLocation(link, location, ev) {\n var event = this.notifyApplicationAfterClickingLinkToLocation(link, location, ev);\n return !event.defaultPrevented;\n }\n }, {\n key: \"applicationAllowsVisitingLocation\",\n value: function applicationAllowsVisitingLocation(location) {\n var event = this.notifyApplicationBeforeVisitingLocation(location);\n return !event.defaultPrevented;\n }\n }, {\n key: \"notifyApplicationAfterClickingLinkToLocation\",\n value: function notifyApplicationAfterClickingLinkToLocation(link, location, event) {\n return dispatch(\"turbo:click\", {\n target: link,\n detail: {\n url: location.href,\n originalEvent: event\n },\n cancelable: true\n });\n }\n }, {\n key: \"notifyApplicationBeforeVisitingLocation\",\n value: function notifyApplicationBeforeVisitingLocation(location) {\n return dispatch(\"turbo:before-visit\", {\n detail: {\n url: location.href\n },\n cancelable: true\n });\n }\n }, {\n key: \"notifyApplicationAfterVisitingLocation\",\n value: function notifyApplicationAfterVisitingLocation(location, action) {\n return dispatch(\"turbo:visit\", {\n detail: {\n url: location.href,\n action: action\n }\n });\n }\n }, {\n key: \"notifyApplicationBeforeCachingSnapshot\",\n value: function notifyApplicationBeforeCachingSnapshot() {\n return dispatch(\"turbo:before-cache\");\n }\n }, {\n key: \"notifyApplicationBeforeRender\",\n value: function notifyApplicationBeforeRender(newBody, options) {\n return dispatch(\"turbo:before-render\", {\n detail: _objectSpread({\n newBody: newBody\n }, options),\n cancelable: true\n });\n }\n }, {\n key: \"notifyApplicationAfterRender\",\n value: function notifyApplicationAfterRender(renderMethod) {\n return dispatch(\"turbo:render\", {\n detail: {\n renderMethod: renderMethod\n }\n });\n }\n }, {\n key: \"notifyApplicationAfterPageLoad\",\n value: function notifyApplicationAfterPageLoad() {\n var timing = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n return dispatch(\"turbo:load\", {\n detail: {\n url: this.location.href,\n timing: timing\n }\n });\n }\n }, {\n key: \"notifyApplicationAfterVisitingSamePageLocation\",\n value: function notifyApplicationAfterVisitingSamePageLocation(oldURL, newURL) {\n dispatchEvent(new HashChangeEvent(\"hashchange\", {\n oldURL: oldURL.toString(),\n newURL: newURL.toString()\n }));\n }\n }, {\n key: \"notifyApplicationAfterFrameLoad\",\n value: function notifyApplicationAfterFrameLoad(frame) {\n return dispatch(\"turbo:frame-load\", {\n target: frame\n });\n }\n }, {\n key: \"notifyApplicationAfterFrameRender\",\n value: function notifyApplicationAfterFrameRender(fetchResponse, frame) {\n return dispatch(\"turbo:frame-render\", {\n detail: {\n fetchResponse: fetchResponse\n },\n target: frame,\n cancelable: true\n });\n } // Helpers\n\n }, {\n key: \"submissionIsNavigatable\",\n value: function submissionIsNavigatable(form, submitter) {\n if (config.forms.mode == \"off\") {\n return false;\n } else {\n var submitterIsNavigatable = submitter ? this.elementIsNavigatable(submitter) : true;\n\n if (config.forms.mode == \"optin\") {\n return submitterIsNavigatable && form.closest('[data-turbo=\"true\"]') != null;\n } else {\n return submitterIsNavigatable && this.elementIsNavigatable(form);\n }\n }\n }\n }, {\n key: \"elementIsNavigatable\",\n value: function elementIsNavigatable(element) {\n var container = findClosestRecursively(element, \"[data-turbo]\");\n var withinFrame = findClosestRecursively(element, \"turbo-frame\"); // Check if Drive is enabled on the session or we're within a Frame.\n\n if (config.drive.enabled || withinFrame) {\n // Element is navigatable by default, unless `data-turbo=\"false\"`.\n if (container) {\n return container.getAttribute(\"data-turbo\") != \"false\";\n } else {\n return true;\n }\n } else {\n // Element isn't navigatable by default, unless `data-turbo=\"true\"`.\n if (container) {\n return container.getAttribute(\"data-turbo\") == \"true\";\n } else {\n return false;\n }\n }\n } // Private\n\n }, {\n key: \"getActionForLink\",\n value: function getActionForLink(link) {\n return getVisitAction(link) || \"advance\";\n }\n }, {\n key: \"snapshot\",\n get: function get() {\n return this.view.snapshot;\n }\n }]);\n\n return Session;\n}(); // Older versions of the Turbo Native adapters referenced the\n// `Location#absoluteURL` property in their implementations of\n// the `Adapter#visitProposedToLocation()` and `#visitStarted()`\n// methods. The Location class has since been removed in favor\n// of the DOM URL API, and accordingly all Adapter methods now\n// receive URL objects.\n//\n// We alias #absoluteURL to #toString() here to avoid crashing\n// older adapters which do not expect URL objects. We should\n// consider removing this support at some point in the future.\n\n\nfunction extendURLWithDeprecatedProperties(url) {\n Object.defineProperties(url, deprecatedLocationPropertyDescriptors);\n}\n\nvar deprecatedLocationPropertyDescriptors = {\n absoluteURL: {\n get: function get() {\n return this.toString();\n }\n }\n};\nvar session = new Session(recentRequests);\nvar cache = session.cache,\n navigator$1 = session.navigator;\n/**\n * Starts the main session.\n * This initialises any necessary observers such as those to monitor\n * link interactions.\n */\n\nfunction start() {\n session.start();\n}\n/**\n * Registers an adapter for the main session.\n *\n * @param adapter Adapter to register\n */\n\n\nfunction registerAdapter(adapter) {\n session.registerAdapter(adapter);\n}\n/**\n * Performs an application visit to the given location.\n *\n * @param location Location to visit (a URL or path)\n * @param options Options to apply\n * @param options.action Type of history navigation to apply (\"restore\",\n * \"replace\" or \"advance\")\n * @param options.historyChanged Specifies whether the browser history has\n * already been changed for this visit or not\n * @param options.referrer Specifies the referrer of this visit such that\n * navigations to the same page will not result in a new history entry.\n * @param options.snapshotHTML Cached snapshot to render\n * @param options.response Response of the specified location\n */\n\n\nfunction visit(location, options) {\n session.visit(location, options);\n}\n/**\n * Connects a stream source to the main session.\n *\n * @param source Stream source to connect\n */\n\n\nfunction connectStreamSource(source) {\n session.connectStreamSource(source);\n}\n/**\n * Disconnects a stream source from the main session.\n *\n * @param source Stream source to disconnect\n */\n\n\nfunction disconnectStreamSource(source) {\n session.disconnectStreamSource(source);\n}\n/**\n * Renders a stream message to the main session by appending it to the\n * current document.\n *\n * @param message Message to render\n */\n\n\nfunction renderStreamMessage(message) {\n session.renderStreamMessage(message);\n}\n/**\n * Removes all entries from the Turbo Drive page cache.\n * Call this when state has changed on the server that may affect cached pages.\n *\n * @deprecated since version 7.2.0 in favor of `Turbo.cache.clear()`\n */\n\n\nfunction clearCache() {\n console.warn(\"Please replace `Turbo.clearCache()` with `Turbo.cache.clear()`. The top-level function is deprecated and will be removed in a future version of Turbo.`\");\n session.clearCache();\n}\n/**\n * Sets the delay after which the progress bar will appear during navigation.\n *\n * The progress bar appears after 500ms by default.\n *\n * Note that this method has no effect when used with the iOS or Android\n * adapters.\n *\n * @param delay Time to delay in milliseconds\n */\n\n\nfunction setProgressBarDelay(delay) {\n console.warn(\"Please replace `Turbo.setProgressBarDelay(delay)` with `Turbo.config.drive.progressBarDelay = delay`. The top-level function is deprecated and will be removed in a future version of Turbo.`\");\n config.drive.progressBarDelay = delay;\n}\n\nfunction setConfirmMethod(confirmMethod) {\n console.warn(\"Please replace `Turbo.setConfirmMethod(confirmMethod)` with `Turbo.config.forms.confirm = confirmMethod`. The top-level function is deprecated and will be removed in a future version of Turbo.`\");\n config.forms.confirm = confirmMethod;\n}\n\nfunction setFormMode(mode) {\n console.warn(\"Please replace `Turbo.setFormMode(mode)` with `Turbo.config.forms.mode = mode`. The top-level function is deprecated and will be removed in a future version of Turbo.`\");\n config.forms.mode = mode;\n}\n\nvar Turbo = /*#__PURE__*/Object.freeze({\n __proto__: null,\n navigator: navigator$1,\n session: session,\n cache: cache,\n PageRenderer: PageRenderer,\n PageSnapshot: PageSnapshot,\n FrameRenderer: FrameRenderer,\n fetch: fetchWithTurboHeaders,\n config: config,\n start: start,\n registerAdapter: registerAdapter,\n visit: visit,\n connectStreamSource: connectStreamSource,\n disconnectStreamSource: disconnectStreamSource,\n renderStreamMessage: renderStreamMessage,\n clearCache: clearCache,\n setProgressBarDelay: setProgressBarDelay,\n setConfirmMethod: setConfirmMethod,\n setFormMode: setFormMode\n});\n\nvar TurboFrameMissingError = /*#__PURE__*/function (_Error) {\n _inherits(TurboFrameMissingError, _Error);\n\n var _super12 = _createSuper(TurboFrameMissingError);\n\n function TurboFrameMissingError() {\n _classCallCheck(this, TurboFrameMissingError);\n\n return _super12.apply(this, arguments);\n }\n\n return TurboFrameMissingError;\n}( /*#__PURE__*/_wrapNativeSuper(Error));\n\nvar _currentFetchRequest = /*#__PURE__*/_classPrivateFieldLooseKey(\"currentFetchRequest\");\n\nvar _resolveVisitPromise = /*#__PURE__*/_classPrivateFieldLooseKey(\"resolveVisitPromise\");\n\nvar _connected = /*#__PURE__*/_classPrivateFieldLooseKey(\"connected\");\n\nvar _hasBeenLoaded = /*#__PURE__*/_classPrivateFieldLooseKey(\"hasBeenLoaded\");\n\nvar _ignoredAttributes = /*#__PURE__*/_classPrivateFieldLooseKey(\"ignoredAttributes\");\n\nvar _shouldMorphFrame = /*#__PURE__*/_classPrivateFieldLooseKey(\"shouldMorphFrame\");\n\nvar _loadSourceURL = /*#__PURE__*/_classPrivateFieldLooseKey(\"loadSourceURL\");\n\nvar _loadFrameResponse = /*#__PURE__*/_classPrivateFieldLooseKey(\"loadFrameResponse\");\n\nvar _visit2 = /*#__PURE__*/_classPrivateFieldLooseKey(\"visit\");\n\nvar _navigateFrame = /*#__PURE__*/_classPrivateFieldLooseKey(\"navigateFrame\");\n\nvar _handleUnvisitableFrameResponse = /*#__PURE__*/_classPrivateFieldLooseKey(\"handleUnvisitableFrameResponse\");\n\nvar _willHandleFrameMissingFromResponse = /*#__PURE__*/_classPrivateFieldLooseKey(\"willHandleFrameMissingFromResponse\");\n\nvar _handleFrameMissingFromResponse = /*#__PURE__*/_classPrivateFieldLooseKey(\"handleFrameMissingFromResponse\");\n\nvar _throwFrameMissingError = /*#__PURE__*/_classPrivateFieldLooseKey(\"throwFrameMissingError\");\n\nvar _visitResponse = /*#__PURE__*/_classPrivateFieldLooseKey(\"visitResponse\");\n\nvar _findFrameElement3 = /*#__PURE__*/_classPrivateFieldLooseKey(\"findFrameElement\");\n\nvar _formActionIsVisitable = /*#__PURE__*/_classPrivateFieldLooseKey(\"formActionIsVisitable\");\n\nvar _shouldInterceptNavigation = /*#__PURE__*/_classPrivateFieldLooseKey(\"shouldInterceptNavigation\");\n\nvar _isIgnoringChangesTo = /*#__PURE__*/_classPrivateFieldLooseKey(\"isIgnoringChangesTo\");\n\nvar _ignoringChangesToAttribute = /*#__PURE__*/_classPrivateFieldLooseKey(\"ignoringChangesToAttribute\");\n\nvar _withCurrentNavigationElement = /*#__PURE__*/_classPrivateFieldLooseKey(\"withCurrentNavigationElement\");\n\nvar FrameController = /*#__PURE__*/function () {\n function FrameController(_element3) {\n var _this40 = this;\n\n _classCallCheck(this, FrameController);\n\n Object.defineProperty(this, _withCurrentNavigationElement, {\n value: _withCurrentNavigationElement2\n });\n Object.defineProperty(this, _ignoringChangesToAttribute, {\n value: _ignoringChangesToAttribute2\n });\n Object.defineProperty(this, _isIgnoringChangesTo, {\n value: _isIgnoringChangesTo2\n });\n Object.defineProperty(this, _shouldInterceptNavigation, {\n value: _shouldInterceptNavigation2\n });\n Object.defineProperty(this, _formActionIsVisitable, {\n value: _formActionIsVisitable2\n });\n Object.defineProperty(this, _findFrameElement3, {\n value: _findFrameElement4\n });\n Object.defineProperty(this, _visitResponse, {\n value: _visitResponse2\n });\n Object.defineProperty(this, _throwFrameMissingError, {\n value: _throwFrameMissingError2\n });\n Object.defineProperty(this, _handleFrameMissingFromResponse, {\n value: _handleFrameMissingFromResponse2\n });\n Object.defineProperty(this, _willHandleFrameMissingFromResponse, {\n value: _willHandleFrameMissingFromResponse2\n });\n Object.defineProperty(this, _handleUnvisitableFrameResponse, {\n value: _handleUnvisitableFrameResponse2\n });\n Object.defineProperty(this, _navigateFrame, {\n value: _navigateFrame2\n });\n Object.defineProperty(this, _visit2, {\n value: _visit3\n });\n // Private\n Object.defineProperty(this, _loadFrameResponse, {\n value: _loadFrameResponse2\n });\n Object.defineProperty(this, _loadSourceURL, {\n value: _loadSourceURL2\n });\n\n this.fetchResponseLoaded = function (_fetchResponse) {\n return Promise.resolve();\n };\n\n Object.defineProperty(this, _currentFetchRequest, {\n writable: true,\n value: null\n });\n Object.defineProperty(this, _resolveVisitPromise, {\n writable: true,\n value: function value() {}\n });\n Object.defineProperty(this, _connected, {\n writable: true,\n value: false\n });\n Object.defineProperty(this, _hasBeenLoaded, {\n writable: true,\n value: false\n });\n Object.defineProperty(this, _ignoredAttributes, {\n writable: true,\n value: new Set()\n });\n Object.defineProperty(this, _shouldMorphFrame, {\n writable: true,\n value: false\n });\n this.action = null;\n\n this.visitCachedSnapshot = function (_ref32) {\n var element = _ref32.element;\n var frame = element.querySelector(\"#\" + _this40.element.id);\n\n if (frame && _this40.previousFrameElement) {\n frame.replaceChildren.apply(frame, _toConsumableArray(_this40.previousFrameElement.children));\n }\n\n delete _this40.previousFrameElement;\n };\n\n this.element = _element3;\n this.view = new FrameView(this, this.element);\n this.appearanceObserver = new AppearanceObserver(this, this.element);\n this.formLinkClickObserver = new FormLinkClickObserver(this, this.element);\n this.linkInterceptor = new LinkInterceptor(this, this.element);\n this.restorationIdentifier = uuid();\n this.formSubmitObserver = new FormSubmitObserver(this, this.element);\n } // Frame delegate\n\n\n _createClass(FrameController, [{\n key: \"connect\",\n value: function connect() {\n if (!_classPrivateFieldLooseBase(this, _connected)[_connected]) {\n _classPrivateFieldLooseBase(this, _connected)[_connected] = true;\n\n if (this.loadingStyle == FrameLoadingStyle.lazy) {\n this.appearanceObserver.start();\n } else {\n _classPrivateFieldLooseBase(this, _loadSourceURL)[_loadSourceURL]();\n }\n\n this.formLinkClickObserver.start();\n this.linkInterceptor.start();\n this.formSubmitObserver.start();\n }\n }\n }, {\n key: \"disconnect\",\n value: function disconnect() {\n if (_classPrivateFieldLooseBase(this, _connected)[_connected]) {\n _classPrivateFieldLooseBase(this, _connected)[_connected] = false;\n this.appearanceObserver.stop();\n this.formLinkClickObserver.stop();\n this.linkInterceptor.stop();\n this.formSubmitObserver.stop();\n }\n }\n }, {\n key: \"disabledChanged\",\n value: function disabledChanged() {\n if (this.loadingStyle == FrameLoadingStyle.eager) {\n _classPrivateFieldLooseBase(this, _loadSourceURL)[_loadSourceURL]();\n }\n }\n }, {\n key: \"sourceURLChanged\",\n value: function sourceURLChanged() {\n if (_classPrivateFieldLooseBase(this, _isIgnoringChangesTo)[_isIgnoringChangesTo](\"src\")) return;\n\n if (this.element.isConnected) {\n this.complete = false;\n }\n\n if (this.loadingStyle == FrameLoadingStyle.eager || _classPrivateFieldLooseBase(this, _hasBeenLoaded)[_hasBeenLoaded]) {\n _classPrivateFieldLooseBase(this, _loadSourceURL)[_loadSourceURL]();\n }\n }\n }, {\n key: \"sourceURLReloaded\",\n value: function sourceURLReloaded() {\n var _this$element = this.element,\n refresh = _this$element.refresh,\n src = _this$element.src;\n _classPrivateFieldLooseBase(this, _shouldMorphFrame)[_shouldMorphFrame] = src && refresh === \"morph\";\n this.element.removeAttribute(\"complete\");\n this.element.src = null;\n this.element.src = src;\n return this.element.loaded;\n }\n }, {\n key: \"loadingStyleChanged\",\n value: function loadingStyleChanged() {\n if (this.loadingStyle == FrameLoadingStyle.lazy) {\n this.appearanceObserver.start();\n } else {\n this.appearanceObserver.stop();\n\n _classPrivateFieldLooseBase(this, _loadSourceURL)[_loadSourceURL]();\n }\n }\n }, {\n key: \"loadResponse\",\n value: function () {\n var _loadResponse = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee37(fetchResponse) {\n var html, _document3, pageSnapshot;\n\n return _regeneratorRuntime.wrap(function _callee37$(_context37) {\n while (1) {\n switch (_context37.prev = _context37.next) {\n case 0:\n if (fetchResponse.redirected || fetchResponse.succeeded && fetchResponse.isHTML) {\n this.sourceURL = fetchResponse.response.url;\n }\n\n _context37.prev = 1;\n _context37.next = 4;\n return fetchResponse.responseHTML;\n\n case 4:\n html = _context37.sent;\n\n if (!html) {\n _context37.next = 15;\n break;\n }\n\n _document3 = parseHTMLDocument(html);\n pageSnapshot = PageSnapshot.fromDocument(_document3);\n\n if (!pageSnapshot.isVisitable) {\n _context37.next = 13;\n break;\n }\n\n _context37.next = 11;\n return _classPrivateFieldLooseBase(this, _loadFrameResponse)[_loadFrameResponse](fetchResponse, _document3);\n\n case 11:\n _context37.next = 15;\n break;\n\n case 13:\n _context37.next = 15;\n return _classPrivateFieldLooseBase(this, _handleUnvisitableFrameResponse)[_handleUnvisitableFrameResponse](fetchResponse);\n\n case 15:\n _context37.prev = 15;\n _classPrivateFieldLooseBase(this, _shouldMorphFrame)[_shouldMorphFrame] = false;\n\n this.fetchResponseLoaded = function () {\n return Promise.resolve();\n };\n\n return _context37.finish(15);\n\n case 19:\n case \"end\":\n return _context37.stop();\n }\n }\n }, _callee37, this, [[1,, 15, 19]]);\n }));\n\n function loadResponse(_x32) {\n return _loadResponse.apply(this, arguments);\n }\n\n return loadResponse;\n }() // Appearance observer delegate\n\n }, {\n key: \"elementAppearedInViewport\",\n value: function elementAppearedInViewport(element) {\n this.proposeVisitIfNavigatedWithAction(element, getVisitAction(element));\n\n _classPrivateFieldLooseBase(this, _loadSourceURL)[_loadSourceURL]();\n } // Form link click observer delegate\n\n }, {\n key: \"willSubmitFormLinkToLocation\",\n value: function willSubmitFormLinkToLocation(link) {\n return _classPrivateFieldLooseBase(this, _shouldInterceptNavigation)[_shouldInterceptNavigation](link);\n }\n }, {\n key: \"submittedFormLinkToLocation\",\n value: function submittedFormLinkToLocation(link, _location, form) {\n var frame = _classPrivateFieldLooseBase(this, _findFrameElement3)[_findFrameElement3](link);\n\n if (frame) form.setAttribute(\"data-turbo-frame\", frame.id);\n } // Link interceptor delegate\n\n }, {\n key: \"shouldInterceptLinkClick\",\n value: function shouldInterceptLinkClick(element, _location, _event) {\n return _classPrivateFieldLooseBase(this, _shouldInterceptNavigation)[_shouldInterceptNavigation](element);\n }\n }, {\n key: \"linkClickIntercepted\",\n value: function linkClickIntercepted(element, location) {\n _classPrivateFieldLooseBase(this, _navigateFrame)[_navigateFrame](element, location);\n } // Form submit observer delegate\n\n }, {\n key: \"willSubmitForm\",\n value: function willSubmitForm(element, submitter) {\n return element.closest(\"turbo-frame\") == this.element && _classPrivateFieldLooseBase(this, _shouldInterceptNavigation)[_shouldInterceptNavigation](element, submitter);\n }\n }, {\n key: \"formSubmitted\",\n value: function formSubmitted(element, submitter) {\n if (this.formSubmission) {\n this.formSubmission.stop();\n }\n\n this.formSubmission = new FormSubmission(this, element, submitter);\n var fetchRequest = this.formSubmission.fetchRequest;\n this.prepareRequest(fetchRequest);\n this.formSubmission.start();\n } // Fetch request delegate\n\n }, {\n key: \"prepareRequest\",\n value: function prepareRequest(request) {\n var _this$currentNavigati;\n\n request.headers[\"Turbo-Frame\"] = this.id;\n\n if ((_this$currentNavigati = this.currentNavigationElement) !== null && _this$currentNavigati !== void 0 && _this$currentNavigati.hasAttribute(\"data-turbo-stream\")) {\n request.acceptResponseType(StreamMessage.contentType);\n }\n }\n }, {\n key: \"requestStarted\",\n value: function requestStarted(_request) {\n markAsBusy(this.element);\n }\n }, {\n key: \"requestPreventedHandlingResponse\",\n value: function requestPreventedHandlingResponse(_request, _response) {\n _classPrivateFieldLooseBase(this, _resolveVisitPromise)[_resolveVisitPromise]();\n }\n }, {\n key: \"requestSucceededWithResponse\",\n value: function () {\n var _requestSucceededWithResponse3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee38(request, response) {\n return _regeneratorRuntime.wrap(function _callee38$(_context38) {\n while (1) {\n switch (_context38.prev = _context38.next) {\n case 0:\n _context38.next = 2;\n return this.loadResponse(response);\n\n case 2:\n _classPrivateFieldLooseBase(this, _resolveVisitPromise)[_resolveVisitPromise]();\n\n case 3:\n case \"end\":\n return _context38.stop();\n }\n }\n }, _callee38, this);\n }));\n\n function requestSucceededWithResponse(_x33, _x34) {\n return _requestSucceededWithResponse3.apply(this, arguments);\n }\n\n return requestSucceededWithResponse;\n }()\n }, {\n key: \"requestFailedWithResponse\",\n value: function () {\n var _requestFailedWithResponse2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee39(request, response) {\n return _regeneratorRuntime.wrap(function _callee39$(_context39) {\n while (1) {\n switch (_context39.prev = _context39.next) {\n case 0:\n _context39.next = 2;\n return this.loadResponse(response);\n\n case 2:\n _classPrivateFieldLooseBase(this, _resolveVisitPromise)[_resolveVisitPromise]();\n\n case 3:\n case \"end\":\n return _context39.stop();\n }\n }\n }, _callee39, this);\n }));\n\n function requestFailedWithResponse(_x35, _x36) {\n return _requestFailedWithResponse2.apply(this, arguments);\n }\n\n return requestFailedWithResponse;\n }()\n }, {\n key: \"requestErrored\",\n value: function requestErrored(request, error) {\n console.error(error);\n\n _classPrivateFieldLooseBase(this, _resolveVisitPromise)[_resolveVisitPromise]();\n }\n }, {\n key: \"requestFinished\",\n value: function requestFinished(_request) {\n clearBusyState(this.element);\n } // Form submission delegate\n\n }, {\n key: \"formSubmissionStarted\",\n value: function formSubmissionStarted(_ref33) {\n var formElement = _ref33.formElement;\n markAsBusy(formElement, _classPrivateFieldLooseBase(this, _findFrameElement3)[_findFrameElement3](formElement));\n }\n }, {\n key: \"formSubmissionSucceededWithResponse\",\n value: function formSubmissionSucceededWithResponse(formSubmission, response) {\n var frame = _classPrivateFieldLooseBase(this, _findFrameElement3)[_findFrameElement3](formSubmission.formElement, formSubmission.submitter);\n\n frame.delegate.proposeVisitIfNavigatedWithAction(frame, getVisitAction(formSubmission.submitter, formSubmission.formElement, frame));\n frame.delegate.loadResponse(response);\n\n if (!formSubmission.isSafe) {\n session.clearCache();\n }\n }\n }, {\n key: \"formSubmissionFailedWithResponse\",\n value: function formSubmissionFailedWithResponse(formSubmission, fetchResponse) {\n this.element.delegate.loadResponse(fetchResponse);\n session.clearCache();\n }\n }, {\n key: \"formSubmissionErrored\",\n value: function formSubmissionErrored(formSubmission, error) {\n console.error(error);\n }\n }, {\n key: \"formSubmissionFinished\",\n value: function formSubmissionFinished(_ref34) {\n var formElement = _ref34.formElement;\n clearBusyState(formElement, _classPrivateFieldLooseBase(this, _findFrameElement3)[_findFrameElement3](formElement));\n } // View delegate\n\n }, {\n key: \"allowsImmediateRender\",\n value: function allowsImmediateRender(_ref35, options) {\n var newFrame = _ref35.element;\n var event = dispatch(\"turbo:before-frame-render\", {\n target: this.element,\n detail: _objectSpread({\n newFrame: newFrame\n }, options),\n cancelable: true\n });\n var defaultPrevented = event.defaultPrevented,\n render = event.detail.render;\n\n if (this.view.renderer && render) {\n this.view.renderer.renderElement = render;\n }\n\n return !defaultPrevented;\n }\n }, {\n key: \"viewRenderedSnapshot\",\n value: function viewRenderedSnapshot(_snapshot, _isPreview, _renderMethod) {}\n }, {\n key: \"preloadOnLoadLinksForView\",\n value: function preloadOnLoadLinksForView(element) {\n session.preloadOnLoadLinksForView(element);\n }\n }, {\n key: \"viewInvalidated\",\n value: function viewInvalidated() {} // Frame renderer delegate\n\n }, {\n key: \"willRenderFrame\",\n value: function willRenderFrame(currentElement, _newElement) {\n this.previousFrameElement = currentElement.cloneNode(true);\n }\n }, {\n key: \"proposeVisitIfNavigatedWithAction\",\n value: function proposeVisitIfNavigatedWithAction(frame) {\n var _this41 = this;\n\n var action = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n this.action = action;\n\n if (this.action) {\n var pageSnapshot = PageSnapshot.fromElement(frame).clone();\n var visitCachedSnapshot = frame.delegate.visitCachedSnapshot;\n\n frame.delegate.fetchResponseLoaded = /*#__PURE__*/function () {\n var _ref36 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee40(fetchResponse) {\n var statusCode, redirected, responseHTML, response, options;\n return _regeneratorRuntime.wrap(function _callee40$(_context40) {\n while (1) {\n switch (_context40.prev = _context40.next) {\n case 0:\n if (!frame.src) {\n _context40.next = 9;\n break;\n }\n\n statusCode = fetchResponse.statusCode, redirected = fetchResponse.redirected;\n _context40.next = 4;\n return fetchResponse.responseHTML;\n\n case 4:\n responseHTML = _context40.sent;\n response = {\n statusCode: statusCode,\n redirected: redirected,\n responseHTML: responseHTML\n };\n options = {\n response: response,\n visitCachedSnapshot: visitCachedSnapshot,\n willRender: false,\n updateHistory: false,\n restorationIdentifier: _this41.restorationIdentifier,\n snapshot: pageSnapshot\n };\n if (_this41.action) options.action = _this41.action;\n session.visit(frame.src, options);\n\n case 9:\n case \"end\":\n return _context40.stop();\n }\n }\n }, _callee40);\n }));\n\n return function (_x37) {\n return _ref36.apply(this, arguments);\n };\n }();\n }\n }\n }, {\n key: \"changeHistory\",\n value: function changeHistory() {\n if (this.action) {\n var method = getHistoryMethodForAction(this.action);\n session.history.update(method, expandURL(this.element.src || \"\"), this.restorationIdentifier);\n }\n }\n }, {\n key: \"extractForeignFrameElement\",\n value: function () {\n var _extractForeignFrameElement = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee41(container) {\n var element, id;\n return _regeneratorRuntime.wrap(function _callee41$(_context41) {\n while (1) {\n switch (_context41.prev = _context41.next) {\n case 0:\n id = CSS.escape(this.id);\n _context41.prev = 1;\n element = activateElement(container.querySelector(\"turbo-frame#\".concat(id)), this.sourceURL);\n\n if (!element) {\n _context41.next = 5;\n break;\n }\n\n return _context41.abrupt(\"return\", element);\n\n case 5:\n element = activateElement(container.querySelector(\"turbo-frame[src][recurse~=\".concat(id, \"]\")), this.sourceURL);\n\n if (!element) {\n _context41.next = 12;\n break;\n }\n\n _context41.next = 9;\n return element.loaded;\n\n case 9:\n _context41.next = 11;\n return this.extractForeignFrameElement(element);\n\n case 11:\n return _context41.abrupt(\"return\", _context41.sent);\n\n case 12:\n _context41.next = 18;\n break;\n\n case 14:\n _context41.prev = 14;\n _context41.t0 = _context41[\"catch\"](1);\n console.error(_context41.t0);\n return _context41.abrupt(\"return\", new FrameElement());\n\n case 18:\n return _context41.abrupt(\"return\", null);\n\n case 19:\n case \"end\":\n return _context41.stop();\n }\n }\n }, _callee41, this, [[1, 14]]);\n }));\n\n function extractForeignFrameElement(_x38) {\n return _extractForeignFrameElement.apply(this, arguments);\n }\n\n return extractForeignFrameElement;\n }()\n }, {\n key: \"id\",\n get: // Computed properties\n function get() {\n return this.element.id;\n }\n }, {\n key: \"enabled\",\n get: function get() {\n return !this.element.disabled;\n }\n }, {\n key: \"sourceURL\",\n get: function get() {\n if (this.element.src) {\n return this.element.src;\n }\n },\n set: function set(sourceURL) {\n var _this42 = this;\n\n _classPrivateFieldLooseBase(this, _ignoringChangesToAttribute)[_ignoringChangesToAttribute](\"src\", function () {\n _this42.element.src = sourceURL !== null && sourceURL !== void 0 ? sourceURL : null;\n });\n }\n }, {\n key: \"loadingStyle\",\n get: function get() {\n return this.element.loading;\n }\n }, {\n key: \"isLoading\",\n get: function get() {\n return this.formSubmission !== undefined || _classPrivateFieldLooseBase(this, _resolveVisitPromise)[_resolveVisitPromise]() !== undefined;\n }\n }, {\n key: \"complete\",\n get: function get() {\n return this.element.hasAttribute(\"complete\");\n },\n set: function set(value) {\n if (value) {\n this.element.setAttribute(\"complete\", \"\");\n } else {\n this.element.removeAttribute(\"complete\");\n }\n }\n }, {\n key: \"isActive\",\n get: function get() {\n return this.element.isActive && _classPrivateFieldLooseBase(this, _connected)[_connected];\n }\n }, {\n key: \"rootLocation\",\n get: function get() {\n var _meta$content;\n\n var meta = this.element.ownerDocument.querySelector(\"meta[name=\\\"turbo-root\\\"]\");\n var root = (_meta$content = meta === null || meta === void 0 ? void 0 : meta.content) !== null && _meta$content !== void 0 ? _meta$content : \"/\";\n return expandURL(root);\n }\n }]);\n\n return FrameController;\n}();\n\nfunction _loadSourceURL2() {\n return _loadSourceURL3.apply(this, arguments);\n}\n\nfunction _loadSourceURL3() {\n _loadSourceURL3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee51() {\n return _regeneratorRuntime.wrap(function _callee51$(_context51) {\n while (1) {\n switch (_context51.prev = _context51.next) {\n case 0:\n if (!(this.enabled && this.isActive && !this.complete && this.sourceURL)) {\n _context51.next = 6;\n break;\n }\n\n this.element.loaded = _classPrivateFieldLooseBase(this, _visit2)[_visit2](expandURL(this.sourceURL));\n this.appearanceObserver.stop();\n _context51.next = 5;\n return this.element.loaded;\n\n case 5:\n _classPrivateFieldLooseBase(this, _hasBeenLoaded)[_hasBeenLoaded] = true;\n\n case 6:\n case \"end\":\n return _context51.stop();\n }\n }\n }, _callee51, this);\n }));\n return _loadSourceURL3.apply(this, arguments);\n}\n\nfunction _loadFrameResponse2(_x41, _x42) {\n return _loadFrameResponse3.apply(this, arguments);\n}\n\nfunction _loadFrameResponse3() {\n _loadFrameResponse3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee52(fetchResponse, document) {\n var newFrameElement, rendererClass, snapshot, renderer;\n return _regeneratorRuntime.wrap(function _callee52$(_context52) {\n while (1) {\n switch (_context52.prev = _context52.next) {\n case 0:\n _context52.next = 2;\n return this.extractForeignFrameElement(document.body);\n\n case 2:\n newFrameElement = _context52.sent;\n rendererClass = _classPrivateFieldLooseBase(this, _shouldMorphFrame)[_shouldMorphFrame] ? MorphingFrameRenderer : FrameRenderer;\n\n if (!newFrameElement) {\n _context52.next = 20;\n break;\n }\n\n snapshot = new Snapshot(newFrameElement);\n renderer = new rendererClass(this, this.view.snapshot, snapshot, false, false);\n\n if (!this.view.renderPromise) {\n _context52.next = 10;\n break;\n }\n\n _context52.next = 10;\n return this.view.renderPromise;\n\n case 10:\n this.changeHistory();\n _context52.next = 13;\n return this.view.render(renderer);\n\n case 13:\n this.complete = true;\n session.frameRendered(fetchResponse, this.element);\n session.frameLoaded(this.element);\n _context52.next = 18;\n return this.fetchResponseLoaded(fetchResponse);\n\n case 18:\n _context52.next = 21;\n break;\n\n case 20:\n if (_classPrivateFieldLooseBase(this, _willHandleFrameMissingFromResponse)[_willHandleFrameMissingFromResponse](fetchResponse)) {\n _classPrivateFieldLooseBase(this, _handleFrameMissingFromResponse)[_handleFrameMissingFromResponse](fetchResponse);\n }\n\n case 21:\n case \"end\":\n return _context52.stop();\n }\n }\n }, _callee52, this);\n }));\n return _loadFrameResponse3.apply(this, arguments);\n}\n\nfunction _visit3(_x43) {\n return _visit4.apply(this, arguments);\n}\n\nfunction _visit4() {\n _visit4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee53(url) {\n var _classPrivateFieldLoo,\n _this54 = this;\n\n var request;\n return _regeneratorRuntime.wrap(function _callee53$(_context53) {\n while (1) {\n switch (_context53.prev = _context53.next) {\n case 0:\n request = new FetchRequest(this, FetchMethod.get, url, new URLSearchParams(), this.element);\n (_classPrivateFieldLoo = _classPrivateFieldLooseBase(this, _currentFetchRequest)[_currentFetchRequest]) === null || _classPrivateFieldLoo === void 0 ? void 0 : _classPrivateFieldLoo.cancel();\n _classPrivateFieldLooseBase(this, _currentFetchRequest)[_currentFetchRequest] = request;\n return _context53.abrupt(\"return\", new Promise(function (resolve) {\n _classPrivateFieldLooseBase(_this54, _resolveVisitPromise)[_resolveVisitPromise] = function () {\n _classPrivateFieldLooseBase(_this54, _resolveVisitPromise)[_resolveVisitPromise] = function () {};\n\n _classPrivateFieldLooseBase(_this54, _currentFetchRequest)[_currentFetchRequest] = null;\n resolve();\n };\n\n request.perform();\n }));\n\n case 4:\n case \"end\":\n return _context53.stop();\n }\n }\n }, _callee53, this);\n }));\n return _visit4.apply(this, arguments);\n}\n\nfunction _navigateFrame2(element, url, submitter) {\n var frame = _classPrivateFieldLooseBase(this, _findFrameElement3)[_findFrameElement3](element, submitter);\n\n frame.delegate.proposeVisitIfNavigatedWithAction(frame, getVisitAction(submitter, element, frame));\n\n _classPrivateFieldLooseBase(this, _withCurrentNavigationElement)[_withCurrentNavigationElement](element, function () {\n frame.src = url;\n });\n}\n\nfunction _handleUnvisitableFrameResponse2(_x44) {\n return _handleUnvisitableFrameResponse3.apply(this, arguments);\n}\n\nfunction _handleUnvisitableFrameResponse3() {\n _handleUnvisitableFrameResponse3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee54(fetchResponse) {\n return _regeneratorRuntime.wrap(function _callee54$(_context54) {\n while (1) {\n switch (_context54.prev = _context54.next) {\n case 0:\n console.warn(\"The response (\".concat(fetchResponse.statusCode, \") from is performing a full page visit due to turbo-visit-control.\"));\n _context54.next = 3;\n return _classPrivateFieldLooseBase(this, _visitResponse)[_visitResponse](fetchResponse.response);\n\n case 3:\n case \"end\":\n return _context54.stop();\n }\n }\n }, _callee54, this);\n }));\n return _handleUnvisitableFrameResponse3.apply(this, arguments);\n}\n\nfunction _willHandleFrameMissingFromResponse2(fetchResponse) {\n var _this52 = this;\n\n this.element.setAttribute(\"complete\", \"\");\n var response = fetchResponse.response;\n\n var visit = /*#__PURE__*/function () {\n var _ref38 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee49(url, options) {\n return _regeneratorRuntime.wrap(function _callee49$(_context49) {\n while (1) {\n switch (_context49.prev = _context49.next) {\n case 0:\n if (url instanceof Response) {\n _classPrivateFieldLooseBase(_this52, _visitResponse)[_visitResponse](url);\n } else {\n session.visit(url, options);\n }\n\n case 1:\n case \"end\":\n return _context49.stop();\n }\n }\n }, _callee49);\n }));\n\n return function visit(_x45, _x46) {\n return _ref38.apply(this, arguments);\n };\n }();\n\n var event = dispatch(\"turbo:frame-missing\", {\n target: this.element,\n detail: {\n response: response,\n visit: visit\n },\n cancelable: true\n });\n return !event.defaultPrevented;\n}\n\nfunction _handleFrameMissingFromResponse2(fetchResponse) {\n this.view.missing();\n\n _classPrivateFieldLooseBase(this, _throwFrameMissingError)[_throwFrameMissingError](fetchResponse);\n}\n\nfunction _throwFrameMissingError2(fetchResponse) {\n var message = \"The response (\".concat(fetchResponse.statusCode, \") did not contain the expected and will be ignored. To perform a full page visit instead, set turbo-visit-control to reload.\");\n throw new TurboFrameMissingError(message);\n}\n\nfunction _visitResponse2(_x47) {\n return _visitResponse3.apply(this, arguments);\n}\n\nfunction _visitResponse3() {\n _visitResponse3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee55(response) {\n var wrapped, responseHTML, location, redirected, statusCode;\n return _regeneratorRuntime.wrap(function _callee55$(_context55) {\n while (1) {\n switch (_context55.prev = _context55.next) {\n case 0:\n wrapped = new FetchResponse(response);\n _context55.next = 3;\n return wrapped.responseHTML;\n\n case 3:\n responseHTML = _context55.sent;\n location = wrapped.location, redirected = wrapped.redirected, statusCode = wrapped.statusCode;\n return _context55.abrupt(\"return\", session.visit(location, {\n response: {\n redirected: redirected,\n statusCode: statusCode,\n responseHTML: responseHTML\n }\n }));\n\n case 6:\n case \"end\":\n return _context55.stop();\n }\n }\n }, _callee55);\n }));\n return _visitResponse3.apply(this, arguments);\n}\n\nfunction _findFrameElement4(element, submitter) {\n var _getFrameElementById;\n\n var id = getAttribute(\"data-turbo-frame\", submitter, element) || this.element.getAttribute(\"target\");\n return (_getFrameElementById = getFrameElementById(id)) !== null && _getFrameElementById !== void 0 ? _getFrameElementById : this.element;\n}\n\nfunction _formActionIsVisitable2(form, submitter) {\n var action = getAction$1(form, submitter);\n return locationIsVisitable(expandURL(action), this.rootLocation);\n}\n\nfunction _shouldInterceptNavigation2(element, submitter) {\n var id = getAttribute(\"data-turbo-frame\", submitter, element) || this.element.getAttribute(\"target\");\n\n if (element instanceof HTMLFormElement && !_classPrivateFieldLooseBase(this, _formActionIsVisitable)[_formActionIsVisitable](element, submitter)) {\n return false;\n }\n\n if (!this.enabled || id == \"_top\") {\n return false;\n }\n\n if (id) {\n var frameElement = getFrameElementById(id);\n\n if (frameElement) {\n return !frameElement.disabled;\n }\n }\n\n if (!session.elementIsNavigatable(element)) {\n return false;\n }\n\n if (submitter && !session.elementIsNavigatable(submitter)) {\n return false;\n }\n\n return true;\n}\n\nfunction _isIgnoringChangesTo2(attributeName) {\n return _classPrivateFieldLooseBase(this, _ignoredAttributes)[_ignoredAttributes].has(attributeName);\n}\n\nfunction _ignoringChangesToAttribute2(attributeName, callback) {\n _classPrivateFieldLooseBase(this, _ignoredAttributes)[_ignoredAttributes].add(attributeName);\n\n callback();\n\n _classPrivateFieldLooseBase(this, _ignoredAttributes)[_ignoredAttributes].delete(attributeName);\n}\n\nfunction _withCurrentNavigationElement2(element, callback) {\n this.currentNavigationElement = element;\n callback();\n delete this.currentNavigationElement;\n}\n\nfunction getFrameElementById(id) {\n if (id != null) {\n var element = document.getElementById(id);\n\n if (element instanceof FrameElement) {\n return element;\n }\n }\n}\n\nfunction activateElement(element, currentURL) {\n if (element) {\n var src = element.getAttribute(\"src\");\n\n if (src != null && currentURL != null && urlsAreEqual(src, currentURL)) {\n throw new Error(\"Matching element has a source URL which references itself\"));\n }\n\n if (element.ownerDocument !== document) {\n element = document.importNode(element, true);\n }\n\n if (element instanceof FrameElement) {\n element.connectedCallback();\n element.disconnectedCallback();\n return element;\n }\n }\n}\n\nvar StreamActions = {\n after: function after() {\n var _this43 = this;\n\n this.targetElements.forEach(function (e) {\n var _e$parentElement;\n\n return (_e$parentElement = e.parentElement) === null || _e$parentElement === void 0 ? void 0 : _e$parentElement.insertBefore(_this43.templateContent, e.nextSibling);\n });\n },\n append: function append() {\n var _this44 = this;\n\n this.removeDuplicateTargetChildren();\n this.targetElements.forEach(function (e) {\n return e.append(_this44.templateContent);\n });\n },\n before: function before() {\n var _this45 = this;\n\n this.targetElements.forEach(function (e) {\n var _e$parentElement2;\n\n return (_e$parentElement2 = e.parentElement) === null || _e$parentElement2 === void 0 ? void 0 : _e$parentElement2.insertBefore(_this45.templateContent, e);\n });\n },\n prepend: function prepend() {\n var _this46 = this;\n\n this.removeDuplicateTargetChildren();\n this.targetElements.forEach(function (e) {\n return e.prepend(_this46.templateContent);\n });\n },\n remove: function remove() {\n this.targetElements.forEach(function (e) {\n return e.remove();\n });\n },\n replace: function replace() {\n var _this47 = this;\n\n var method = this.getAttribute(\"method\");\n this.targetElements.forEach(function (targetElement) {\n if (method === \"morph\") {\n morphElements(targetElement, _this47.templateContent);\n } else {\n targetElement.replaceWith(_this47.templateContent);\n }\n });\n },\n update: function update() {\n var _this48 = this;\n\n var method = this.getAttribute(\"method\");\n this.targetElements.forEach(function (targetElement) {\n if (method === \"morph\") {\n morphChildren(targetElement, _this48.templateContent);\n } else {\n targetElement.innerHTML = \"\";\n targetElement.append(_this48.templateContent);\n }\n });\n },\n refresh: function refresh() {\n session.refresh(this.baseURI, this.requestId);\n }\n}; //