import{n as e,r as t,t as n}from"./axios-D3CjrHSW.js";var r=t(e(((e,t)=>{(function(){var e=this;(function(){(function(){this.Turbolinks={supported:function(){return window.history.pushState!=null&&window.requestAnimationFrame!=null&&window.addEventListener!=null}(),visit:function(e,t){return n.controller.visit(e,t)},clearCache:function(){return n.controller.clearCache()},setProgressBarDelay:function(e){return n.controller.setProgressBarDelay(e)}}}).call(this)}).call(e);var n=e.Turbolinks;(function(){(function(){var e,t,r,i=[].slice;n.copyObject=function(e){var t,n={},r;for(t in e)r=e[t],n[t]=r;return n},n.closest=function(t,n){return e.call(t,n)},e=function(){var e;return e=document.documentElement,e.closest??function(e){var n;for(n=this;n;){if(n.nodeType===Node.ELEMENT_NODE&&t.call(n,e))return n;n=n.parentNode}}}(),n.defer=function(e){return setTimeout(e,1)},n.throttle=function(e){var t;return t=null,function(){var n;return n=1<=arguments.length?i.call(arguments,0):[],t??=requestAnimationFrame(function(r){return function(){return t=null,e.apply(r,n)}}(this))}},n.dispatch=function(e,t){var n,i,a,o,s,c;return s=t??{},c=s.target,n=s.cancelable,i=s.data,a=document.createEvent(`Events`),a.initEvent(e,!0,n===!0),a.data=i??{},a.cancelable&&!r&&(o=a.preventDefault,a.preventDefault=function(){return this.defaultPrevented||Object.defineProperty(this,`defaultPrevented`,{get:function(){return!0}}),o.call(this)}),(c??document).dispatchEvent(a),a},r=function(){var e;return e=document.createEvent(`Events`),e.initEvent(`test`,!0,!0),e.preventDefault(),e.defaultPrevented}(),n.match=function(e,n){return t.call(e,n)},t=function(){var e;return e=document.documentElement,e.matchesSelector??e.webkitMatchesSelector??e.msMatchesSelector??e.mozMatchesSelector}(),n.uuid=function(){var e,t,n;for(n=``,e=t=1;36>=t;e=++t)n+=e===9||e===14||e===19||e===24?`-`:e===15?`4`:e===20?(Math.floor(4*Math.random())+8).toString(16):Math.floor(15*Math.random()).toString(16);return n}}).call(this),function(){n.Location=function(){function e(e){var t,n;e??=``,n=document.createElement(`a`),n.href=e.toString(),this.absoluteURL=n.href,t=n.hash.length,2>t?this.requestURL=this.absoluteURL:(this.requestURL=this.absoluteURL.slice(0,-t),this.anchor=n.hash.slice(1))}var t,n,r,i;return e.wrap=function(e){return e instanceof this?e:new this(e)},e.prototype.getOrigin=function(){return this.absoluteURL.split(`/`,3).join(`/`)},e.prototype.getPath=function(){return this.requestURL.match(/\/\/[^\/]*(\/[^?;]*)/)?.[1]??`/`},e.prototype.getPathComponents=function(){return this.getPath().split(`/`).slice(1)},e.prototype.getLastPathComponent=function(){return this.getPathComponents().slice(-1)[0]},e.prototype.getExtension=function(){return this.getLastPathComponent().match(/\.[^.]*$/)?.[0]??``},e.prototype.isHTML=function(){return this.getExtension().match(/^(?:|\.(?:htm|html|xhtml))$/)},e.prototype.isPrefixedBy=function(e){var t;return t=n(e),this.isEqualTo(e)||i(this.absoluteURL,t)},e.prototype.isEqualTo=function(e){return this.absoluteURL===e?.absoluteURL},e.prototype.toCacheKey=function(){return this.requestURL},e.prototype.toJSON=function(){return this.absoluteURL},e.prototype.toString=function(){return this.absoluteURL},e.prototype.valueOf=function(){return this.absoluteURL},n=function(e){return t(e.getOrigin()+e.getPath())},t=function(e){return r(e,`/`)?e:e+`/`},i=function(e,t){return e.slice(0,t.length)===t},r=function(e,t){return e.slice(-t.length)===t},e}()}.call(this),function(){var e=function(e,t){return function(){return e.apply(t,arguments)}};n.HttpRequest=function(){function t(t,r,i){this.delegate=t,this.requestCanceled=e(this.requestCanceled,this),this.requestTimedOut=e(this.requestTimedOut,this),this.requestFailed=e(this.requestFailed,this),this.requestLoaded=e(this.requestLoaded,this),this.requestProgressed=e(this.requestProgressed,this),this.url=n.Location.wrap(r).requestURL,this.referrer=n.Location.wrap(i).absoluteURL,this.createXHR()}return t.NETWORK_FAILURE=0,t.TIMEOUT_FAILURE=-1,t.timeout=60,t.prototype.send=function(){var e;return this.xhr&&!this.sent?(this.notifyApplicationBeforeRequestStart(),this.setProgress(0),this.xhr.send(),this.sent=!0,typeof(e=this.delegate).requestStarted==`function`?e.requestStarted():void 0):void 0},t.prototype.cancel=function(){return this.xhr&&this.sent?this.xhr.abort():void 0},t.prototype.requestProgressed=function(e){return e.lengthComputable?this.setProgress(e.loaded/e.total):void 0},t.prototype.requestLoaded=function(){return this.endRequest(function(e){return function(){var t;return 200<=(t=e.xhr.status)&&300>t?e.delegate.requestCompletedWithResponse(e.xhr.responseText,e.xhr.getResponseHeader(`Turbolinks-Location`)):(e.failed=!0,e.delegate.requestFailedWithStatusCode(e.xhr.status,e.xhr.responseText))}}(this))},t.prototype.requestFailed=function(){return this.endRequest(function(e){return function(){return e.failed=!0,e.delegate.requestFailedWithStatusCode(e.constructor.NETWORK_FAILURE)}}(this))},t.prototype.requestTimedOut=function(){return this.endRequest(function(e){return function(){return e.failed=!0,e.delegate.requestFailedWithStatusCode(e.constructor.TIMEOUT_FAILURE)}}(this))},t.prototype.requestCanceled=function(){return this.endRequest()},t.prototype.notifyApplicationBeforeRequestStart=function(){return n.dispatch(`turbolinks:request-start`,{data:{url:this.url,xhr:this.xhr}})},t.prototype.notifyApplicationAfterRequestEnd=function(){return n.dispatch(`turbolinks:request-end`,{data:{url:this.url,xhr:this.xhr}})},t.prototype.createXHR=function(){return this.xhr=new XMLHttpRequest,this.xhr.open(`GET`,this.url,!0),this.xhr.timeout=1e3*this.constructor.timeout,this.xhr.setRequestHeader(`Accept`,`text/html, application/xhtml+xml`),this.xhr.setRequestHeader(`Turbolinks-Referrer`,this.referrer),this.xhr.onprogress=this.requestProgressed,this.xhr.onload=this.requestLoaded,this.xhr.onerror=this.requestFailed,this.xhr.ontimeout=this.requestTimedOut,this.xhr.onabort=this.requestCanceled},t.prototype.endRequest=function(e){return this.xhr?(this.notifyApplicationAfterRequestEnd(),e?.call(this),this.destroy()):void 0},t.prototype.setProgress=function(e){var t;return this.progress=e,typeof(t=this.delegate).requestProgressed==`function`?t.requestProgressed(this.progress):void 0},t.prototype.destroy=function(){var e;return this.setProgress(1),typeof(e=this.delegate).requestFinished==`function`&&e.requestFinished(),this.delegate=null,this.xhr=null},t}()}.call(this),function(){var e=function(e,t){return function(){return e.apply(t,arguments)}};n.ProgressBar=function(){function t(){this.trickle=e(this.trickle,this),this.stylesheetElement=this.createStylesheetElement(),this.progressElement=this.createProgressElement()}var n;return n=300,t.defaultCSS=`.turbolinks-progress-bar { position: fixed; display: block; top: 0; left: 0; height: 3px; background: #0076ff; z-index: 9999; transition: width `+n+`ms ease-out, opacity `+n/2+`ms `+n/2+`ms ease-in; transform: translate3d(0, 0, 0); }`,t.prototype.show=function(){return this.visible?void 0:(this.visible=!0,this.installStylesheetElement(),this.installProgressElement(),this.startTrickling())},t.prototype.hide=function(){return this.visible&&!this.hiding?(this.hiding=!0,this.fadeProgressElement(function(e){return function(){return e.uninstallProgressElement(),e.stopTrickling(),e.visible=!1,e.hiding=!1}}(this))):void 0},t.prototype.setValue=function(e){return this.value=e,this.refresh()},t.prototype.installStylesheetElement=function(){return document.head.insertBefore(this.stylesheetElement,document.head.firstChild)},t.prototype.installProgressElement=function(){return this.progressElement.style.width=0,this.progressElement.style.opacity=1,document.documentElement.insertBefore(this.progressElement,document.body),this.refresh()},t.prototype.fadeProgressElement=function(e){return this.progressElement.style.opacity=0,setTimeout(e,1.5*n)},t.prototype.uninstallProgressElement=function(){return this.progressElement.parentNode?document.documentElement.removeChild(this.progressElement):void 0},t.prototype.startTrickling=function(){return this.trickleInterval==null?this.trickleInterval=setInterval(this.trickle,n):this.trickleInterval},t.prototype.stopTrickling=function(){return clearInterval(this.trickleInterval),this.trickleInterval=null},t.prototype.trickle=function(){return this.setValue(this.value+Math.random()/100)},t.prototype.refresh=function(){return requestAnimationFrame(function(e){return function(){return e.progressElement.style.width=10+90*e.value+`%`}}(this))},t.prototype.createStylesheetElement=function(){var e;return e=document.createElement(`style`),e.type=`text/css`,e.textContent=this.constructor.defaultCSS,e},t.prototype.createProgressElement=function(){var e;return e=document.createElement(`div`),e.className=`turbolinks-progress-bar`,e},t}()}.call(this),function(){var e=function(e,t){return function(){return e.apply(t,arguments)}};n.BrowserAdapter=function(){function t(t){this.controller=t,this.showProgressBar=e(this.showProgressBar,this),this.progressBar=new n.ProgressBar}var r,i,a;return a=n.HttpRequest,r=a.NETWORK_FAILURE,i=a.TIMEOUT_FAILURE,t.prototype.visitProposedToLocationWithAction=function(e,t){return this.controller.startVisitToLocationWithAction(e,t)},t.prototype.visitStarted=function(e){return e.issueRequest(),e.changeHistory(),e.loadCachedSnapshot()},t.prototype.visitRequestStarted=function(e){return this.progressBar.setValue(0),e.hasCachedSnapshot()||e.action!==`restore`?this.showProgressBarAfterDelay():this.showProgressBar()},t.prototype.visitRequestProgressed=function(e){return this.progressBar.setValue(e.progress)},t.prototype.visitRequestCompleted=function(e){return e.loadResponse()},t.prototype.visitRequestFailedWithStatusCode=function(e,t){switch(t){case r:case i:return this.reload();default:return e.loadResponse()}},t.prototype.visitRequestFinished=function(e){return this.hideProgressBar()},t.prototype.visitCompleted=function(e){return e.followRedirect()},t.prototype.pageInvalidated=function(){return this.reload()},t.prototype.showProgressBarAfterDelay=function(){return this.progressBarTimeout=setTimeout(this.showProgressBar,this.controller.progressBarDelay)},t.prototype.showProgressBar=function(){return this.progressBar.show()},t.prototype.hideProgressBar=function(){return this.progressBar.hide(),clearTimeout(this.progressBarTimeout)},t.prototype.reload=function(){return window.location.reload()},t}()}.call(this),function(){var e=function(e,t){return function(){return e.apply(t,arguments)}};n.History=function(){function t(t){this.delegate=t,this.onPageLoad=e(this.onPageLoad,this),this.onPopState=e(this.onPopState,this)}return t.prototype.start=function(){return this.started?void 0:(addEventListener(`popstate`,this.onPopState,!1),addEventListener(`load`,this.onPageLoad,!1),this.started=!0)},t.prototype.stop=function(){return this.started?(removeEventListener(`popstate`,this.onPopState,!1),removeEventListener(`load`,this.onPageLoad,!1),this.started=!1):void 0},t.prototype.push=function(e,t){return e=n.Location.wrap(e),this.update(`push`,e,t)},t.prototype.replace=function(e,t){return e=n.Location.wrap(e),this.update(`replace`,e,t)},t.prototype.onPopState=function(e){var t,r,i;return this.shouldHandlePopState()&&(i=e.state?.turbolinks)?(t=n.Location.wrap(window.location),r=i.restorationIdentifier,this.delegate.historyPoppedToLocationWithRestorationIdentifier(t,r)):void 0},t.prototype.onPageLoad=function(e){return n.defer(function(e){return function(){return e.pageLoaded=!0}}(this))},t.prototype.shouldHandlePopState=function(){return this.pageIsLoaded()},t.prototype.pageIsLoaded=function(){return this.pageLoaded||document.readyState===`complete`},t.prototype.update=function(e,t,n){var r;return r={turbolinks:{restorationIdentifier:n}},history[e+`State`](r,null,t)},t}()}.call(this),function(){n.HeadDetails=function(){function e(e){var t,n,r,o,s,c;for(this.elements={},r=0,s=e.length;s>r;r++)c=e[r],c.nodeType===Node.ELEMENT_NODE&&(o=c.outerHTML,n=(t=this.elements)[o]==null?t[o]={type:a(c),tracked:i(c),elements:[]}:t[o],n.elements.push(c))}var t,n,r,i,a;return e.fromHeadElement=function(e){return new this(e?.childNodes??[])},e.prototype.hasElementWithKey=function(e){return e in this.elements},e.prototype.getTrackedElementSignature=function(){var e,t;return function(){var n=this.elements,r=[];for(e in n)t=n[e].tracked,t&&r.push(e);return r}.call(this).join(``)},e.prototype.getScriptElementsNotInDetails=function(e){return this.getElementsMatchingTypeNotInDetails(`script`,e)},e.prototype.getStylesheetElementsNotInDetails=function(e){return this.getElementsMatchingTypeNotInDetails(`stylesheet`,e)},e.prototype.getElementsMatchingTypeNotInDetails=function(e,t){var n,r,i=this.elements,a,o=[],s;for(r in i)a=i[r],s=a.type,n=a.elements,s!==e||t.hasElementWithKey(r)||o.push(n[0]);return o},e.prototype.getProvisionalElements=function(){var e,t,n=[],r=this.elements,i,a,o;for(t in r)i=r[t],o=i.type,a=i.tracked,e=i.elements,o!=null||a?e.length>1&&n.push.apply(n,e.slice(1)):n.push.apply(n,e);return n},e.prototype.getMetaValue=function(e){return this.findMetaElementByName(e)?.getAttribute(`content`)},e.prototype.findMetaElementByName=function(e){var n=void 0,r,i,a=this.elements;for(i in a)r=a[i].elements,t(r[0],e)&&(n=r[0]);return n},a=function(e){return n(e)?`script`:r(e)?`stylesheet`:void 0},i=function(e){return e.getAttribute(`data-turbolinks-track`)===`reload`},n=function(e){var t;return t=e.tagName.toLowerCase(),t===`script`},r=function(e){var t;return t=e.tagName.toLowerCase(),t===`style`||t===`link`&&e.getAttribute(`rel`)===`stylesheet`},t=function(e,t){var n;return n=e.tagName.toLowerCase(),n===`meta`&&e.getAttribute(`name`)===t},e}()}.call(this),function(){n.Snapshot=function(){function e(e,t){this.headDetails=e,this.bodyElement=t}return e.wrap=function(e){return e instanceof this?e:typeof e==`string`?this.fromHTMLString(e):this.fromHTMLElement(e)},e.fromHTMLString=function(e){var t;return t=document.createElement(`html`),t.innerHTML=e,this.fromHTMLElement(t)},e.fromHTMLElement=function(e){var t,r,i;return i=e.querySelector(`head`),t=e.querySelector(`body`)??document.createElement(`body`),r=n.HeadDetails.fromHeadElement(i),new this(r,t)},e.prototype.clone=function(){return new this.constructor(this.headDetails,this.bodyElement.cloneNode(!0))},e.prototype.getRootLocation=function(){var e;return e=this.getSetting(`root`)??`/`,new n.Location(e)},e.prototype.getCacheControlValue=function(){return this.getSetting(`cache-control`)},e.prototype.getElementForAnchor=function(e){try{return this.bodyElement.querySelector(`[id='`+e+`'], a[name='`+e+`']`)}catch{}},e.prototype.getPermanentElements=function(){return this.bodyElement.querySelectorAll(`[id][data-turbolinks-permanent]`)},e.prototype.getPermanentElementById=function(e){return this.bodyElement.querySelector(`#`+e+`[data-turbolinks-permanent]`)},e.prototype.getPermanentElementsPresentInSnapshot=function(e){var t,n,r,i,a;for(i=this.getPermanentElements(),a=[],n=0,r=i.length;r>n;n++)t=i[n],e.getPermanentElementById(t.id)&&a.push(t);return a},e.prototype.findFirstAutofocusableElement=function(){return this.bodyElement.querySelector(`[autofocus]`)},e.prototype.hasAnchor=function(e){return this.getElementForAnchor(e)!=null},e.prototype.isPreviewable=function(){return this.getCacheControlValue()!==`no-preview`},e.prototype.isCacheable=function(){return this.getCacheControlValue()!==`no-cache`},e.prototype.isVisitable=function(){return this.getSetting(`visit-control`)!==`reload`},e.prototype.getSetting=function(e){return this.headDetails.getMetaValue(`turbolinks-`+e)},e}()}.call(this),function(){var e=[].slice;n.Renderer=function(){function t(){}var n;return t.render=function(){var t,n,r,i;return r=arguments[0],n=arguments[1],t=3<=arguments.length?e.call(arguments,2):[],i=function(e,t,n){n.prototype=e.prototype;var r=new n,i=e.apply(r,t);return Object(i)===i?i:r}(this,t,function(){}),i.delegate=r,i.render(n),i},t.prototype.renderView=function(e){return this.delegate.viewWillRender(this.newBody),e(),this.delegate.viewRendered(this.newBody)},t.prototype.invalidateView=function(){return this.delegate.viewInvalidated()},t.prototype.createScriptElement=function(e){var t;return e.getAttribute(`data-turbolinks-eval`)===`false`?e:(t=document.createElement(`script`),t.textContent=e.textContent,t.async=!1,n(t,e),t)},n=function(e,t){var n,r,i,a,o,s,c;for(a=t.attributes,s=[],n=0,r=a.length;r>n;n++)o=a[n],i=o.name,c=o.value,s.push(e.setAttribute(i,c));return s},t}()}.call(this),function(){var e,t,r=function(e,t){function n(){this.constructor=e}for(var r in t)i.call(t,r)&&(e[r]=t[r]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},i={}.hasOwnProperty;n.SnapshotRenderer=function(n){function i(e,t,n){this.currentSnapshot=e,this.newSnapshot=t,this.isPreview=n,this.currentHeadDetails=this.currentSnapshot.headDetails,this.newHeadDetails=this.newSnapshot.headDetails,this.currentBody=this.currentSnapshot.bodyElement,this.newBody=this.newSnapshot.bodyElement}return r(i,n),i.prototype.render=function(e){return this.shouldRender()?(this.mergeHead(),this.renderView(function(t){return function(){return t.replaceBody(),t.isPreview||t.focusFirstAutofocusableElement(),e()}}(this))):this.invalidateView()},i.prototype.mergeHead=function(){return this.copyNewHeadStylesheetElements(),this.copyNewHeadScriptElements(),this.removeCurrentHeadProvisionalElements(),this.copyNewHeadProvisionalElements()},i.prototype.replaceBody=function(){var e;return e=this.relocateCurrentBodyPermanentElements(),this.activateNewBodyScriptElements(),this.assignNewBody(),this.replacePlaceholderElementsWithClonedPermanentElements(e)},i.prototype.shouldRender=function(){return this.newSnapshot.isVisitable()&&this.trackedElementsAreIdentical()},i.prototype.trackedElementsAreIdentical=function(){return this.currentHeadDetails.getTrackedElementSignature()===this.newHeadDetails.getTrackedElementSignature()},i.prototype.copyNewHeadStylesheetElements=function(){var e,t,n,r,i;for(r=this.getNewHeadStylesheetElements(),i=[],t=0,n=r.length;n>t;t++)e=r[t],i.push(document.head.appendChild(e));return i},i.prototype.copyNewHeadScriptElements=function(){var e,t,n,r,i;for(r=this.getNewHeadScriptElements(),i=[],t=0,n=r.length;n>t;t++)e=r[t],i.push(document.head.appendChild(this.createScriptElement(e)));return i},i.prototype.removeCurrentHeadProvisionalElements=function(){var e,t,n,r,i;for(r=this.getCurrentHeadProvisionalElements(),i=[],t=0,n=r.length;n>t;t++)e=r[t],i.push(document.head.removeChild(e));return i},i.prototype.copyNewHeadProvisionalElements=function(){var e,t,n,r,i;for(r=this.getNewHeadProvisionalElements(),i=[],t=0,n=r.length;n>t;t++)e=r[t],i.push(document.head.appendChild(e));return i},i.prototype.relocateCurrentBodyPermanentElements=function(){var n,r,i,a,o,s,c;for(s=this.getCurrentBodyPermanentElements(),c=[],n=0,r=s.length;r>n;n++)a=s[n],o=e(a),i=this.newSnapshot.getPermanentElementById(a.id),t(a,o.element),t(i,a),c.push(o);return c},i.prototype.replacePlaceholderElementsWithClonedPermanentElements=function(e){var n,r,i,a,o,s,c;for(c=[],i=0,a=e.length;a>i;i++)s=e[i],r=s.element,o=s.permanentElement,n=o.cloneNode(!0),c.push(t(r,n));return c},i.prototype.activateNewBodyScriptElements=function(){var e,n,r,i,a,o;for(a=this.getNewBodyScriptElements(),o=[],n=0,i=a.length;i>n;n++)r=a[n],e=this.createScriptElement(r),o.push(t(r,e));return o},i.prototype.assignNewBody=function(){return document.body=this.newBody},i.prototype.focusFirstAutofocusableElement=function(){return this.newSnapshot.findFirstAutofocusableElement()?.focus()},i.prototype.getNewHeadStylesheetElements=function(){return this.newHeadDetails.getStylesheetElementsNotInDetails(this.currentHeadDetails)},i.prototype.getNewHeadScriptElements=function(){return this.newHeadDetails.getScriptElementsNotInDetails(this.currentHeadDetails)},i.prototype.getCurrentHeadProvisionalElements=function(){return this.currentHeadDetails.getProvisionalElements()},i.prototype.getNewHeadProvisionalElements=function(){return this.newHeadDetails.getProvisionalElements()},i.prototype.getCurrentBodyPermanentElements=function(){return this.currentSnapshot.getPermanentElementsPresentInSnapshot(this.newSnapshot)},i.prototype.getNewBodyScriptElements=function(){return this.newBody.querySelectorAll(`script`)},i}(n.Renderer),e=function(e){var t;return t=document.createElement(`meta`),t.setAttribute(`name`,`turbolinks-permanent-placeholder`),t.setAttribute(`content`,e.id),{element:t,permanentElement:e}},t=function(e,t){var n;return(n=e.parentNode)?n.replaceChild(t,e):void 0}}.call(this),function(){var e=function(e,n){function r(){this.constructor=e}for(var i in n)t.call(n,i)&&(e[i]=n[i]);return r.prototype=n.prototype,e.prototype=new r,e.__super__=n.prototype,e},t={}.hasOwnProperty;n.ErrorRenderer=function(t){function n(e){var t=document.createElement(`html`);t.innerHTML=e,this.newHead=t.querySelector(`head`),this.newBody=t.querySelector(`body`)}return e(n,t),n.prototype.render=function(e){return this.renderView(function(t){return function(){return t.replaceHeadAndBody(),t.activateBodyScriptElements(),e()}}(this))},n.prototype.replaceHeadAndBody=function(){var e,t;return t=document.head,e=document.body,t.parentNode.replaceChild(this.newHead,t),e.parentNode.replaceChild(this.newBody,e)},n.prototype.activateBodyScriptElements=function(){var e,t,n,r,i,a;for(r=this.getScriptElements(),a=[],t=0,n=r.length;n>t;t++)i=r[t],e=this.createScriptElement(i),a.push(i.parentNode.replaceChild(e,i));return a},n.prototype.getScriptElements=function(){return document.documentElement.querySelectorAll(`script`)},n}(n.Renderer)}.call(this),function(){n.View=function(){function e(e){this.delegate=e,this.htmlElement=document.documentElement}return e.prototype.getRootLocation=function(){return this.getSnapshot().getRootLocation()},e.prototype.getElementForAnchor=function(e){return this.getSnapshot().getElementForAnchor(e)},e.prototype.getSnapshot=function(){return n.Snapshot.fromHTMLElement(this.htmlElement)},e.prototype.render=function(e,t){var n,r,i;return i=e.snapshot,n=e.error,r=e.isPreview,this.markAsPreview(r),i==null?this.renderError(n,t):this.renderSnapshot(i,r,t)},e.prototype.markAsPreview=function(e){return e?this.htmlElement.setAttribute(`data-turbolinks-preview`,``):this.htmlElement.removeAttribute(`data-turbolinks-preview`)},e.prototype.renderSnapshot=function(e,t,r){return n.SnapshotRenderer.render(this.delegate,r,this.getSnapshot(),n.Snapshot.wrap(e),t)},e.prototype.renderError=function(e,t){return n.ErrorRenderer.render(this.delegate,t,e)},e}()}.call(this),function(){var e=function(e,t){return function(){return e.apply(t,arguments)}};n.ScrollManager=function(){function t(t){this.delegate=t,this.onScroll=e(this.onScroll,this),this.onScroll=n.throttle(this.onScroll)}return t.prototype.start=function(){return this.started?void 0:(addEventListener(`scroll`,this.onScroll,!1),this.onScroll(),this.started=!0)},t.prototype.stop=function(){return this.started?(removeEventListener(`scroll`,this.onScroll,!1),this.started=!1):void 0},t.prototype.scrollToElement=function(e){return e.scrollIntoView()},t.prototype.scrollToPosition=function(e){var t,n;return t=e.x,n=e.y,window.scrollTo(t,n)},t.prototype.onScroll=function(e){return this.updatePosition({x:window.pageXOffset,y:window.pageYOffset})},t.prototype.updatePosition=function(e){return this.position=e,this.delegate?.scrollPositionChanged(this.position)},t}()}.call(this),function(){n.SnapshotCache=function(){function e(e){this.size=e,this.keys=[],this.snapshots={}}var t;return e.prototype.has=function(e){var n;return n=t(e),n in this.snapshots},e.prototype.get=function(e){var t;if(this.has(e))return t=this.read(e),this.touch(e),t},e.prototype.put=function(e,t){return this.write(e,t),this.touch(e),t},e.prototype.read=function(e){var n;return n=t(e),this.snapshots[n]},e.prototype.write=function(e,n){var r;return r=t(e),this.snapshots[r]=n},e.prototype.touch=function(e){var n,r;return r=t(e),n=this.keys.indexOf(r),n>-1&&this.keys.splice(n,1),this.keys.unshift(r),this.trim()},e.prototype.trim=function(){var e,t,n,r,i;for(r=this.keys.splice(this.size),i=[],e=0,n=r.length;n>e;e++)t=r[e],i.push(delete this.snapshots[t]);return i},t=function(e){return n.Location.wrap(e).toCacheKey()},e}()}.call(this),function(){var e=function(e,t){return function(){return e.apply(t,arguments)}};n.Visit=function(){function t(t,r,i){this.controller=t,this.action=i,this.performScroll=e(this.performScroll,this),this.identifier=n.uuid(),this.location=n.Location.wrap(r),this.adapter=this.controller.adapter,this.state=`initialized`,this.timingMetrics={}}var r;return t.prototype.start=function(){return this.state===`initialized`?(this.recordTimingMetric(`visitStart`),this.state=`started`,this.adapter.visitStarted(this)):void 0},t.prototype.cancel=function(){var e;return this.state===`started`?((e=this.request)!=null&&e.cancel(),this.cancelRender(),this.state=`canceled`):void 0},t.prototype.complete=function(){var e;return this.state===`started`?(this.recordTimingMetric(`visitEnd`),this.state=`completed`,typeof(e=this.adapter).visitCompleted==`function`&&e.visitCompleted(this),this.controller.visitCompleted(this)):void 0},t.prototype.fail=function(){var e;return this.state===`started`?(this.state=`failed`,typeof(e=this.adapter).visitFailed==`function`?e.visitFailed(this):void 0):void 0},t.prototype.changeHistory=function(){var e,t;return this.historyChanged?void 0:(e=this.location.isEqualTo(this.referrer)?`replace`:this.action,t=r(e),this.controller[t](this.location,this.restorationIdentifier),this.historyChanged=!0)},t.prototype.issueRequest=function(){return this.shouldIssueRequest()&&this.request==null?(this.progress=0,this.request=new n.HttpRequest(this,this.location,this.referrer),this.request.send()):void 0},t.prototype.getCachedSnapshot=function(){var e;return!(e=this.controller.getCachedSnapshotForLocation(this.location))||this.location.anchor!=null&&!e.hasAnchor(this.location.anchor)||this.action!==`restore`&&!e.isPreviewable()?void 0:e},t.prototype.hasCachedSnapshot=function(){return this.getCachedSnapshot()!=null},t.prototype.loadCachedSnapshot=function(){var e,t;return(t=this.getCachedSnapshot())?(e=this.shouldIssueRequest(),this.render(function(){var n;return this.cacheSnapshot(),this.controller.render({snapshot:t,isPreview:e},this.performScroll),typeof(n=this.adapter).visitRendered==`function`&&n.visitRendered(this),e?void 0:this.complete()})):void 0},t.prototype.loadResponse=function(){return this.response==null?void 0:this.render(function(){var e,t;return this.cacheSnapshot(),this.request.failed?(this.controller.render({error:this.response},this.performScroll),typeof(e=this.adapter).visitRendered==`function`&&e.visitRendered(this),this.fail()):(this.controller.render({snapshot:this.response},this.performScroll),typeof(t=this.adapter).visitRendered==`function`&&t.visitRendered(this),this.complete())})},t.prototype.followRedirect=function(){return this.redirectedToLocation&&!this.followedRedirect?(this.location=this.redirectedToLocation,this.controller.replaceHistoryWithLocationAndRestorationIdentifier(this.redirectedToLocation,this.restorationIdentifier),this.followedRedirect=!0):void 0},t.prototype.requestStarted=function(){var e;return this.recordTimingMetric(`requestStart`),typeof(e=this.adapter).visitRequestStarted==`function`?e.visitRequestStarted(this):void 0},t.prototype.requestProgressed=function(e){var t;return this.progress=e,typeof(t=this.adapter).visitRequestProgressed==`function`?t.visitRequestProgressed(this):void 0},t.prototype.requestCompletedWithResponse=function(e,t){return this.response=e,t!=null&&(this.redirectedToLocation=n.Location.wrap(t)),this.adapter.visitRequestCompleted(this)},t.prototype.requestFailedWithStatusCode=function(e,t){return this.response=t,this.adapter.visitRequestFailedWithStatusCode(this,e)},t.prototype.requestFinished=function(){var e;return this.recordTimingMetric(`requestEnd`),typeof(e=this.adapter).visitRequestFinished==`function`?e.visitRequestFinished(this):void 0},t.prototype.performScroll=function(){return this.scrolled?void 0:(this.action===`restore`?this.scrollToRestoredPosition()||this.scrollToTop():this.scrollToAnchor()||this.scrollToTop(),this.scrolled=!0)},t.prototype.scrollToRestoredPosition=function(){var e;return e=this.restorationData?.scrollPosition,e==null?void 0:(this.controller.scrollToPosition(e),!0)},t.prototype.scrollToAnchor=function(){return this.location.anchor==null?void 0:(this.controller.scrollToAnchor(this.location.anchor),!0)},t.prototype.scrollToTop=function(){return this.controller.scrollToPosition({x:0,y:0})},t.prototype.recordTimingMetric=function(e){var t;return(t=this.timingMetrics)[e]==null?t[e]=new Date().getTime():t[e]},t.prototype.getTimingMetrics=function(){return n.copyObject(this.timingMetrics)},r=function(e){switch(e){case`replace`:return`replaceHistoryWithLocationAndRestorationIdentifier`;case`advance`:case`restore`:return`pushHistoryWithLocationAndRestorationIdentifier`}},t.prototype.shouldIssueRequest=function(){return this.action===`restore`?!this.hasCachedSnapshot():!0},t.prototype.cacheSnapshot=function(){return this.snapshotCached?void 0:(this.controller.cacheSnapshot(),this.snapshotCached=!0)},t.prototype.render=function(e){return this.cancelRender(),this.frame=requestAnimationFrame(function(t){return function(){return t.frame=null,e.call(t)}}(this))},t.prototype.cancelRender=function(){return this.frame?cancelAnimationFrame(this.frame):void 0},t}()}.call(this),function(){var e=function(e,t){return function(){return e.apply(t,arguments)}};n.Controller=function(){function t(){this.clickBubbled=e(this.clickBubbled,this),this.clickCaptured=e(this.clickCaptured,this),this.pageLoaded=e(this.pageLoaded,this),this.history=new n.History(this),this.view=new n.View(this),this.scrollManager=new n.ScrollManager(this),this.restorationData={},this.clearCache(),this.setProgressBarDelay(500)}return t.prototype.start=function(){return n.supported&&!this.started?(addEventListener(`click`,this.clickCaptured,!0),addEventListener(`DOMContentLoaded`,this.pageLoaded,!1),this.scrollManager.start(),this.startHistory(),this.started=!0,this.enabled=!0):void 0},t.prototype.disable=function(){return this.enabled=!1},t.prototype.stop=function(){return this.started?(removeEventListener(`click`,this.clickCaptured,!0),removeEventListener(`DOMContentLoaded`,this.pageLoaded,!1),this.scrollManager.stop(),this.stopHistory(),this.started=!1):void 0},t.prototype.clearCache=function(){return this.cache=new n.SnapshotCache(10)},t.prototype.visit=function(e,t){var r;return t??={},e=n.Location.wrap(e),this.applicationAllowsVisitingLocation(e)?this.locationIsVisitable(e)?(r=t.action??`advance`,this.adapter.visitProposedToLocationWithAction(e,r)):window.location=e:void 0},t.prototype.startVisitToLocationWithAction=function(e,t,r){var i;return n.supported?(i=this.getRestorationDataForIdentifier(r),this.startVisit(e,t,{restorationData:i})):window.location=e},t.prototype.setProgressBarDelay=function(e){return this.progressBarDelay=e},t.prototype.startHistory=function(){return this.location=n.Location.wrap(window.location),this.restorationIdentifier=n.uuid(),this.history.start(),this.history.replace(this.location,this.restorationIdentifier)},t.prototype.stopHistory=function(){return this.history.stop()},t.prototype.pushHistoryWithLocationAndRestorationIdentifier=function(e,t){return this.restorationIdentifier=t,this.location=n.Location.wrap(e),this.history.push(this.location,this.restorationIdentifier)},t.prototype.replaceHistoryWithLocationAndRestorationIdentifier=function(e,t){return this.restorationIdentifier=t,this.location=n.Location.wrap(e),this.history.replace(this.location,this.restorationIdentifier)},t.prototype.historyPoppedToLocationWithRestorationIdentifier=function(e,t){var r;return this.restorationIdentifier=t,this.enabled?(r=this.getRestorationDataForIdentifier(this.restorationIdentifier),this.startVisit(e,`restore`,{restorationIdentifier:this.restorationIdentifier,restorationData:r,historyChanged:!0}),this.location=n.Location.wrap(e)):this.adapter.pageInvalidated()},t.prototype.getCachedSnapshotForLocation=function(e){return this.cache.get(e)?.clone()},t.prototype.shouldCacheSnapshot=function(){return this.view.getSnapshot().isCacheable()},t.prototype.cacheSnapshot=function(){var e,t;return this.shouldCacheSnapshot()?(this.notifyApplicationBeforeCachingSnapshot(),t=this.view.getSnapshot(),e=this.lastRenderedLocation,n.defer(function(n){return function(){return n.cache.put(e,t.clone())}}(this))):void 0},t.prototype.scrollToAnchor=function(e){var t;return(t=this.view.getElementForAnchor(e))?this.scrollToElement(t):this.scrollToPosition({x:0,y:0})},t.prototype.scrollToElement=function(e){return this.scrollManager.scrollToElement(e)},t.prototype.scrollToPosition=function(e){return this.scrollManager.scrollToPosition(e)},t.prototype.scrollPositionChanged=function(e){var t;return t=this.getCurrentRestorationData(),t.scrollPosition=e},t.prototype.render=function(e,t){return this.view.render(e,t)},t.prototype.viewInvalidated=function(){return this.adapter.pageInvalidated()},t.prototype.viewWillRender=function(e){return this.notifyApplicationBeforeRender(e)},t.prototype.viewRendered=function(){return this.lastRenderedLocation=this.currentVisit.location,this.notifyApplicationAfterRender()},t.prototype.pageLoaded=function(){return this.lastRenderedLocation=this.location,this.notifyApplicationAfterPageLoad()},t.prototype.clickCaptured=function(){return removeEventListener(`click`,this.clickBubbled,!1),addEventListener(`click`,this.clickBubbled,!1)},t.prototype.clickBubbled=function(e){var t,n,r;return this.enabled&&this.clickEventIsSignificant(e)&&(n=this.getVisitableLinkForNode(e.target))&&(r=this.getVisitableLocationForLink(n))&&this.applicationAllowsFollowingLinkToLocation(n,r)?(e.preventDefault(),t=this.getActionForLink(n),this.visit(r,{action:t})):void 0},t.prototype.applicationAllowsFollowingLinkToLocation=function(e,t){var n;return n=this.notifyApplicationAfterClickingLinkToLocation(e,t),!n.defaultPrevented},t.prototype.applicationAllowsVisitingLocation=function(e){var t;return t=this.notifyApplicationBeforeVisitingLocation(e),!t.defaultPrevented},t.prototype.notifyApplicationAfterClickingLinkToLocation=function(e,t){return n.dispatch(`turbolinks:click`,{target:e,data:{url:t.absoluteURL},cancelable:!0})},t.prototype.notifyApplicationBeforeVisitingLocation=function(e){return n.dispatch(`turbolinks:before-visit`,{data:{url:e.absoluteURL},cancelable:!0})},t.prototype.notifyApplicationAfterVisitingLocation=function(e){return n.dispatch(`turbolinks:visit`,{data:{url:e.absoluteURL}})},t.prototype.notifyApplicationBeforeCachingSnapshot=function(){return n.dispatch(`turbolinks:before-cache`)},t.prototype.notifyApplicationBeforeRender=function(e){return n.dispatch(`turbolinks:before-render`,{data:{newBody:e}})},t.prototype.notifyApplicationAfterRender=function(){return n.dispatch(`turbolinks:render`)},t.prototype.notifyApplicationAfterPageLoad=function(e){return e??={},n.dispatch(`turbolinks:load`,{data:{url:this.location.absoluteURL,timing:e}})},t.prototype.startVisit=function(e,t,n){var r;return(r=this.currentVisit)!=null&&r.cancel(),this.currentVisit=this.createVisit(e,t,n),this.currentVisit.start(),this.notifyApplicationAfterVisitingLocation(e)},t.prototype.createVisit=function(e,t,r){var i,a,o,s,c;return a=r??{},s=a.restorationIdentifier,o=a.restorationData,i=a.historyChanged,c=new n.Visit(this,e,t),c.restorationIdentifier=s??n.uuid(),c.restorationData=n.copyObject(o),c.historyChanged=i,c.referrer=this.location,c},t.prototype.visitCompleted=function(e){return this.notifyApplicationAfterPageLoad(e.getTimingMetrics())},t.prototype.clickEventIsSignificant=function(e){return!(e.defaultPrevented||e.target.isContentEditable||e.which>1||e.altKey||e.ctrlKey||e.metaKey||e.shiftKey)},t.prototype.getVisitableLinkForNode=function(e){return this.nodeIsVisitable(e)?n.closest(e,`a[href]:not([target]):not([download])`):void 0},t.prototype.getVisitableLocationForLink=function(e){var t;return t=new n.Location(e.getAttribute(`href`)),this.locationIsVisitable(t)?t:void 0},t.prototype.getActionForLink=function(e){return e.getAttribute(`data-turbolinks-action`)??`advance`},t.prototype.nodeIsVisitable=function(e){var t;return(t=n.closest(e,`[data-turbolinks]`))?t.getAttribute(`data-turbolinks`)!==`false`:!0},t.prototype.locationIsVisitable=function(e){return e.isPrefixedBy(this.view.getRootLocation())&&e.isHTML()},t.prototype.getCurrentRestorationData=function(){return this.getRestorationDataForIdentifier(this.restorationIdentifier)},t.prototype.getRestorationDataForIdentifier=function(e){var t;return(t=this.restorationData)[e]==null?t[e]={}:t[e]},t}()}.call(this),function(){(function(){var e,t;if((e=t=document.currentScript)&&!t.hasAttribute(`data-turbolinks-suppress-warning`)){for(;e=e.parentNode;)if(e===document.body)return console.warn(`You are loading Turbolinks from a