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