/*! For license information please see front-pages.js.LICENSE.txt */ (()=>{var __webpack_modules__={6495:e=>{!function(t,n){var r=n.jQuery;e.exports=r?t(n,r):function(e){if(e&&!e.fn)throw"Provide jQuery or null";return t(n,e)}}((function(e,t){"use strict";var n=!1===t;t=t&&t.fn?t:e.jQuery;var r,i,s,o,a,c,u,l,h,d,f,p,m,g,v,b,w,y,_,S,E,C,L="v1.0.15",k="_ocp",T=/[ \t]*(\r\n|\n|\r)/g,A=/\\(['"\\])/g,R=/['"\\]/g,x=/(?:\x08|^)(onerror:)?(?:(~?)(([\w$.]+):)?([^\x08]+))\x08(,)?([^\x08]+)/gi,P=/^if\s/,M=/<(\w+)[>\s]/,$=/[\x00`><\"'&=]/,F=/^on[A-Z]|^convert(Back)?$/,I=/^\#\d+_`[\s\S]*\/\d+_`$/,j=/[\x00`><"'&=]/g,O=/[&<>]/g,B=/&(amp|gt|lt);/g,q=/\[['"]?|['"]?\]/g,N=0,H={"&":"&","<":"<",">":">","\0":"�","'":"'",'"':""","`":"`","=":"="},D={amp:"&",gt:">",lt:"<"},V="html",W="string",U="object",z="data-jsv-tmpl",Y="jsvTmpl",K="For #index in nested block use #getIndex().",J={},Z={},G=e.jsrender,X=G&&t&&!t.render,Q={template:{compile:function e(n,r,i,s){function a(r){var o,a;if(typeof r===W||r.nodeType>0&&(c=r)){if(!c&&(/^\.?\/[^\\:*?"<>]*$/.test(r)?(a=l[n=n||r])?r=a:c=document.getElementById(r):"#"===r.charAt(0)&&(c=document.getElementById(r.slice(1))),!c&&t.fn&&!p.rTmpl.test(r)))try{c=t(r,document)[0]}catch(e){}c&&("SCRIPT"!==c.tagName&&Ee(r+": Use script block, not "+c.tagName),s?r=c.innerHTML:((o=c.getAttribute(z))&&(o!==Y?(r=l[o],delete l[o]):t.fn&&(r=t.data(c)[Y])),o&&r||(n=n||(t.fn?Y:r),r=e(n,c.innerHTML,i,s)),r.tmplName=n=n||o,n!==Y&&(l[n]=r),c.setAttribute(z,n),t.fn&&t.data(c,Y,r))),c=void 0}else r.fn||(r=void 0);return r}var c,u,d=r=r||"";p._html=h.html,0===s&&(s=void 0,d=a(d));(s=s||(r.markup?r.bnds?oe({},r):r:{})).tmplName=s.tmplName||n||"unnamed",i&&(s._parentTmpl=i);!d&&r.markup&&(d=a(r.markup))&&d.fn&&(d=d.markup);if(void 0!==d)return d.render||r.render?d.tmpls&&(u=d):(r=ve(d,s),Le(d.replace(R,"\\$&"),r)),u||(u=oe((function(){return u.render.apply(u,arguments)}),r),function(e){var t,n,r;for(t in Q)e[n=t+"s"]&&(r=e[n],e[n]={},o[n](r,e))}(u)),u}},tag:{compile:function(e,t,n){var r,i,s,o=new p._tg;function a(){var t=this;t._={unlinked:!0},t.inline=!0,t.tagName=e}c(t)?t={depends:t.depends,render:t}:typeof t===W&&(t={template:t});if(i=t.baseTag)for(s in t.flow=!!t.flow,(i=typeof i===W?n&&n.tags[i]||f[i]:i)||Ee('baseTag: "'+t.baseTag+'" not found'),o=oe(o,i),t)o[s]=te(i[s],t[s]);else o=oe(o,t);void 0!==(r=o.template)&&(o.template=typeof r===W?l[r]||l(r):r);(a.prototype=o).constructor=o._ctr=a,n&&(o._parentTmpl=n);return o}},viewModel:{compile:function(e,n){var r,i,s,o=this,l=n.getters,h=n.extend,d=n.id,f=t.extend({_is:e||"unnamed",unmap:E,merge:S},h),p="",m="",g=l?l.length:0,v=t.observable,b={};function w(e){i.apply(this,e)}function y(){return new w(arguments)}function _(e,t){for(var n,r,i,s,a,c=0;c1,v=m.ctx;if(n){if(m._||(l=m.index,m=m.tag),h=m,v&&v.hasOwnProperty(n)||(v=d).hasOwnProperty(n)){if(a=v[n],"tag"===n||"tagCtx"===n||"root"===n||"parentTags"===n)return a}else v=void 0;if((!C&&m.tagCtx||m.linked)&&(a&&a._cxp||(m=m.tagCtx||c(a)?m:!(m=m.scope||m).isTop&&m.ctx.tag||m,void 0!==a&&m.tagCtx&&(m=m.tagCtx.view.scope),v=m._ocps,(a=v&&v.hasOwnProperty(n)&&v[n]||a)&&a._cxp||!i&&!g||((v||(m._ocps=m._ocps||{}))[n]=a=[{_ocp:a,_vw:h,_key:n}],a._cxp={path:k,ind:0,updateValue:function(e,n){return t.observable(a[0]).setProperty(k,e),this}})),u=a&&a._cxp)){if(arguments.length>2)return(o=a[1]?p._ceo(a[1].deps):[k]).unshift(a[0]),o._cxp=u,o;if(l=u.tagElse,f=a[1]?u.tag&&u.tag.cvtArgs?u.tag.cvtArgs(l,1)[u.ind]:a[1](a[0].data,a[0],p):a[0]._ocp,g)return p._ucp(n,r,m,u),m;a=f}return a&&c(a)&&(s=function(){return a.apply(this&&this!==e?this:h,arguments)},oe(s,a)),s||a}}function he(e,t){var n,r,i,s,o,a,c,l=this;if(l.tagName){if(!(l=((a=l).tagCtxs||[l])[e||0]))return}else a=l.tag;if(o=a.bindFrom,s=l.args,(c=a.convert)&&typeof c===W&&(c="true"===c?void 0:l.view.getRsc("converters",c)||Ee("Unknown converter: '"+c+"'")),c&&!t&&(s=s.slice()),o){for(i=[],n=o.length;n--;)r=o[n],i.unshift(de(l,r));t&&(s=i)}if(c){if(void 0===(c=c.apply(a,i||s)))return s;if(n=(o=o||[0]).length,u(c)&&(!1===c.arg0||1!==n&&c.length===n&&!c.arg0)||(c=[c],o=[0],n=1),t)s=c;else for(;n--;)+(r=o[n])===r&&(s[r]=c[n])}return s}function de(e,t){return(e=e[+t===t?"args":"props"])&&e[t]}function fe(e){return this.cvtArgs(e,1)}function pe(e,t,n,r,i,s,o,a){var c,u,l,h=this,d="array"===t;h.content=a,h.views=d?[]:{},h.data=r,h.tmpl=i,l=h._={key:0,useKey:d?0:1,id:""+N++,onRender:o,bnds:{}},h.linked=!!o,h.type=t||"top",t&&(h.cache={_ct:m._cchCt}),n&&"top"!==n.type||((h.ctx=e||{}).root=h.data),(h.parent=n)?(h.root=n.root||h,c=n.views,u=n._,h.isTop=u.scp,h.scope=(!e.tag||e.tag===n.ctx.tag)&&!h.isTop&&n.scope||h,u.useKey?(c[l.key="_"+u.useKey++]=h,h.index=K,h.getIndex=ae):c.length===(l.key=h.index=s)?c.push(h):c.splice(s,0,h),h.ctx=e||n.ctx):t&&(h.root=h)}function me(e,t){return c(e)?e.call(t):e}function ge(e,t,n){Object.defineProperty(e,t,{value:n,configurable:!0})}function ve(e,n){var r,i=g._wm||{},s={tmpls:[],links:{},bnds:[],_is:"template",render:_e};return n&&(s=oe(s,n)),s.markup=e,s.htmlTag||(r=M.exec(e),s.htmlTag=r?r[1].toLowerCase():""),(r=i[s.htmlTag])&&r!==i.div&&(s.markup=t.trim(s.markup)),s}function be(e,t){var n=e+"s";o[n]=function r(i,s,a){var c,u,l,h=p.onStore[e];if(i&&typeof i===U&&!i.nodeType&&!i.markup&&!i.getTgt&&!("viewModel"===e&&i.getters||i.extend)){for(u in i)r(u,i[u],s);return s||o}return i&&typeof i!==W&&(a=s,s=i,i=void 0),l=a?"viewModel"===e?a:a[n]=a[n]||{}:r,c=t.compile,void 0===s&&(s=c?i:l[i],i=void 0),null===s?i&&delete l[i]:(c&&((s=c.call(l,i,s,a,0)||{})._is=e),i&&(l[i]=s)),h&&h(i,s,a,c),s}}function we(e){v[e]=v[e]||function(t){return arguments.length?(m[e]=t,v):m[e]}}function ye(e){function t(t,n){this.tgt=e.getTgt(t,n),n.map=this}return c(e)&&(e={getTgt:e}),e.baseMap&&(e=oe(oe({},e.baseMap),e)),e.map=function(e,n){return new t(e,n)},e}function _e(e,t,n,r,i,o){var a,l,h,d,f,m,v,b=r,w="";if(!0===t?(n=t,t=void 0):typeof t!==U&&(t=void 0),(h=this.tag)?(d=(b=b||this.view)._getTmpl(h.template||this.tmpl),arguments.length||(e=h.contentCtx&&c(h.contentCtx)?e=h.contentCtx(e):b)):d=this,d){if(!r&&e&&"view"===e._is&&(b=e),b&&e===b&&(e=b.data),f=!b,C=C||f,f&&((t=t||{}).root=e),!C||g.useViews||d.useViews||b&&b!==s)w=Se(d,e,t,n,b,i,o,h);else{if(b?(m=b.data,v=b.index,b.index=K):(m=(b=s).data,b.data=e,b.ctx=t),u(e)&&!n)for(a=0,l=e.length;aee-(z||0)){if(z=t.trim(U.slice(z,ee+r.length)),Y=o||d[v-1].bd,(K=Y[Y.length-1])&&K.prm){for(;K.sb&&K.sb.prm;)K=K.sb;Z=K.sb={path:K.sb,bnd:K.bnd}}else Y.push(Z={path:Y.pop()});K&&K.sb===Z&&(C[v]=C[v-1].slice(K._cpPthSt)+C[v],C[v-1]=C[v-1].slice(0,K._cpPthSt)),Z._cpPthSt=E[v-1],Z._cpKey=z,C[v]+=U.slice(L,W),L=W,Z._cpfn=J[z]=J[z]||new Function("data,view,j","//"+z+"\nvar v;\nreturn ((v="+C[v]+("]"===N?")]":N)+")!=null?v:null);"),C[v-1]+=_[m]&&g.cache?'view.getCache("'+z.replace(R,"\\$&")+'"':C[v],Z.prm=h.bd,Z.bnd=Z.bnd||Z.path&&Z.path.indexOf("^")>=0}C[v]=""}"["===I&&(I="[j._sq("),"["===k&&(k="[j._sq(")}return Q=u?(u=!B)?r:O+'"':c?(c=!q)?r:O+'"':(k?(y[++m]=!0,b[m]=0,l&&(S[v++]=ee++,h=d[v]={bd:[]},C[v]="",E[v]=1),k):"")+(V?m?"":(f=U.slice(f,ee),(s?(s=o=!1,"\b"):"\b,")+f+(f=ee+r.length,l&&n.push(h.bd=[]),"\b")):M?(v&&Ce(e),l&&n.pop(),s="_"+A,f=ee+r.length,l&&((l=h.bd=n[s]=[]).skp=!T),A+":"):A?A.split("^").join(".").replace(p.rPath,(function(e,t,r,a,c,u,d,f){if(G="."===r,r&&(A=A.slice(t.length),/^\.?constructor$/.test(f||A)&&Ce(e),G||(e=(F?(i?"":"(ltOb.lt=ltOb.lt||")+"(ob=":"")+(a?'view.ctxPrm("'+a+'")':c?"view":"data")+(F?")===undefined"+(i?"":")")+'?"":view._getOb(ob,"':"")+(f?(u?"."+u:a||c?"":"."+r)+(d||""):(f=a?"":c?u||"":r,"")),e=t+("view.data"===(e+=f?"."+f:"").slice(0,9)?e.slice(5):e)+(F?(i?'"':'",ltOb')+(I?",1)":")"):"")),l)){if(Y="_linkTo"===s?o=n._jsvto=n._jsvto||[]:h.bd,K=G&&Y[Y.length-1]){if(K._cpfn){for(;K.sb;)K=K.sb;K.prm&&(K.bnd&&(A="^"+A.slice(1)),K.sb=A,K.bnd=K.bnd||"^"===A[0])}}else Y.push(A);I&&!G&&(S[v]=ee,E[v]=C[v].length)}return e}))+(I||x):x||(N?"]"===N?")]":")":j?(_[m]||Ce(e),","):a?"":(u=B,c=q,'"'))),u||c||N&&(_[m]=!1,m--),l&&(u||c||(N&&(y[m+1]&&(h=d[--v],y[m+1]=!1),w=b[m+1]),I&&(b[m+1]=C[v].length+(k?1:0),(A||N)&&(h=d[++v]={bd:[]},y[m+1]=!0))),C[v]=(C[v]||"")+U.slice(L,W),L=W+r.length,u||c||((X=k&&y[m+1])&&(C[v-1]+=k,E[v-1]++),"("===I&&G&&!Z&&(C[v]=C[v-1].slice(w)+C[v],C[v-1]=C[v-1].slice(0,w))),C[v]+=X?Q.slice(1):Q),u||c||!I||(m++,A&&"("===I&&(_[m]=!0)),u||c||!D||(l&&(C[v]+=I),Q+=I),Q})),l&&(a=C[0]),!m&&a||Ce(e)}function Re(e,t,n){var r,i,s,o,a,c,u,l,h,d,p,v,b,w,y,_,S,E,C,L,k,R,x,P,M,$,F,I,j,O,B,q,N,H,D=0,U=g.useViews||t.useViews||t.tags||t.templates||t.helpers||t.converters,z="",Y={},K=e.length;for(typeof t===W?(S=n?'data-link="'+t.replace(T," ").slice(1,-1)+'"':t,t=0):(S=t.tmplName||"unnamed",t.allowCode&&(Y.allowCode=!0),t.debug&&(Y.debug=!0),d=t.bnds,_=t.tmpls),r=0;r":o+s):(L&&((E=ve(k,Y)).tmplName=S+"/"+s,E.useViews=E.useViews||U,Re(L,E),U=E.useViews,_.push(E)),P||(C=s,U=U||s&&(!f[s]||!f[s].flow),x=z,z=""),R=(R=e[r+1])&&"else"===R[0]),I=F?";\ntry{\nret+=":"\n+",b="",w="",M&&(p||j||o&&o!==V||O)){if(($=new Function("data,view,j","// "+S+" "+ ++D+" "+s+B+"{"+a+"};"+q))._er=F,$._tag=s,$._bd=!!p,$._lr=O,n)return $;ke($,p),h=!0,b=(y='c("'+o+'",view,')+D+",",w=")"}if(z+=M?(n?(F?"try{\n":"")+"return ":I)+(h?(h=void 0,U=l=!0,y+($?(d[D-1]=$,D):"{"+a+"}")+")"):">"===s?(u=!0,"h("+v[0]+")"):"((v="+v[0]+")!=null?v:"+(n?"null)":'"")')):(c=!0,"\n{view:view,content:false,tmpl:"+(L?_.length:"false")+","+a+"},"),C&&!R){if(z="["+z.slice(0,-1)+"]",y='t("'+C+'",view,this,',n||p){if((z=new Function("data,view,j"," // "+S+" "+D+" "+C+B+z+q))._er=F,z._tag=C,p&&ke(d[D-1]=z,p),z._lr=O,n)return z;b=y+D+",undefined,",w=")"}z=x+I+y+(p&&D||z)+")",p=0,C=0}F&&!R&&(U=!0,z+=";\n}catch(e){ret"+(n?"urn ":"+=")+b+"j._err(e,view,"+F+")"+w+";}"+(n?"":"\nret=ret"))}z="// "+S+(Y.debug?"\ndebugger;":"")+"\nvar v"+(c?",t=j._tag":"")+(l?",c=j._cnvt":"")+(u?",h=j._html":"")+(n?(i[8]?", ob":"")+";\n":',ret=""')+z+(n?"\n":";\nreturn ret;");try{z=new Function("data,view,j",z)}catch(e){Ce("Compiled template code:\n\n"+z+'\n: "'+(e.message||e)+'"')}return t&&(t.fn=z,t.useViews=!!U),z}function xe(e,t){return e&&e!==t?t?oe(oe({},t),e):e:t&&oe({},t)}function Pe(e,n){var r,i,s,o=n.tag,a=n.props,l=n.params.props,h=a.filter,d=a.sort,f=!0===d,p=parseInt(a.step),m=a.reverse?-1:1;if(!u(e))return e;if(f||d&&typeof d===W?((r=e.map((function(e,t){return{i:t,v:typeof(e=f?e:ue(e,d))===W?e.toLowerCase():e}}))).sort((function(e,t){return e.v>t.v?m:e.ve.length?e.length:+s,e=e.slice(i,s)),p>1){for(i=0,s=e.length,r=[];i=|[<>%*:?\/]|(=))\s*|(!*?(@)?[#~]?[\w$.^]+)([([])?)|(,\s*)|(?:(\()\s*)?\\?(?:(')|("))|(?:\s*(([)\]])(?=[.^]|\s*$|[^([])|[)\]])([([]?))|(\s+)/g,View:pe,Err:se,tmplFn:Le,parse:Ae,extend:oe,extendCtx:xe,syntaxErr:Ce,onStore:{template:function(e,t){null===t?delete Z[e]:e&&(Z[e]=t)}},addSetting:we,settings:{allowCode:!1},advSet:ie,_thp:ne,_gm:te,_tg:function(){},_cnvt:function(e,t,n,r){var i,s,o,a,c,u="number"==typeof n&&t.tmpl.bnds[n-1];void 0===r&&u&&u._lr&&(r="");void 0!==r?n=r={props:{},args:[r]}:u&&(n=u(t.data,t,p));if(u=u._bd&&u,e||u){if(i=(s=t._lc)&&s.tag,n.view=t,!i){if(i=oe(new p._tg,{_:{bnd:u,unlinked:!0,lt:n.lt},inline:!s,tagName:":",convert:e,onArrayChange:!0,flow:!0,tagCtx:n,tagCtxs:[n],_is:"tag"}),(a=n.args.length)>1)for(c=i.bindTo=[];a--;)c.unshift(a);s&&(s.tag=i,i.linkCtx=s),n.ctx=xe(n.ctx,(s?s.view:t).ctx),ne(i,n)}i._er=r&&o,i.ctx=n.ctx||i.ctx||{},n.ctx=void 0,o=i.cvtArgs()[0],i._er=r&&o}else o=n.args[0];return null!=(o=u&&t._.onRender?t._.onRender(o,t,i):o)?o:""},_tag:function(e,t,n,r,i,o){function a(e){var t=c[e];if(void 0!==t)for(t=u(t)?t:[t],v=t.length;v--;)j=t[v],isNaN(parseInt(j))||(t[v]=parseInt(j));return t||[0]}var c,l,d,f,m,g,v,b,w,y,_,S,E,C,L,k,T,A,R,x,P,M,$,F,j,O,B,q,N,H=0,D="",W=(t=t||s)._lc||!1,U=t.ctx,z=n||t.tmpl,Y="number"==typeof r&&t.tmpl.bnds[r-1];"tag"===e._is?(e=(c=e).tagName,r=c.tagCtxs,c.template):(l=t.getRsc("tags",e)||Ee("Unknown tag: {{"+e+"}} ")).template;void 0===o&&Y&&(Y._lr=l.lateRender&&!1!==Y._lr||Y._lr)&&(o="");void 0!==o?(D+=o,r=o=[{props:{},args:[],params:{props:{}}}]):Y&&(r=Y(t.data,t,p));for(g=r.length;H)|(\\*))\\s*((?:[^\\"+y+"]|\\"+y+"(?!\\"+_+"))*?)",p.rTag="(?:"+i+")",i=new RegExp("(?:"+t+i+"(\\/)?|\\"+b+"(\\"+S+")?\\"+w+"(?:(?:\\/(\\w+))\\s*|!--[\\s\\S]*?--))"+n,"g"),p.rTmpl=new RegExp("^\\s|\\s$|<.*>|([^\\\\]|^)[{}]|"+t+".*"+n),v},advanced:function(e){return e?(oe(g,e),p.advSet(),v):g}},map:ye},(se.prototype=new Error).constructor=se,ae.depends=function(){return[this.get("item"),"index"]},ce.depends="index",pe.prototype={get:function(e,t){t||!0===e||(t=e,e=void 0);var n,r,i,s,o=this,a="root"===t;if(e){if(!(s=t&&o.type===t&&o))if(n=o.views,o._.useKey){for(r in n)if(s=t?n[r].get(e,t):n[r])break}else for(r=0,i=n.length;!s&&rthis.cache._ct&&(this.cache={_ct:m._cchCt}),void 0!==this.cache[e]?this.cache[e]:this.cache[e]=J[e](this.data,this,p)},_is:"view"},p=o.sub,v=o.settings,!(G||t&&t.render)){for(r in Q)be(r,Q[r]);if(h=o.converters,d=o.helpers,f=o.tags,p._tg.prototype={baseApply:function(e){return this.base.apply(this,e)},cvtArgs:he,bndArgs:fe,ctxPrm:le},s=p.topView=new pe,t){if(t.fn.render=Me,a=t.expando,t.observable){if(L!==(L=t.views.jsviews))throw"jquery.observable.js requires jsrender.js "+L;oe(p,t.views.sub),o.map=t.views.map}}else t={},n&&(e.jsrender=t),t.renderFile=t.__express=t.compile=function(){throw"Node.js: use npm jsrender, or jsrender-node.js"},t.isFunction=function(e){return"function"==typeof e},t.isArray=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},p._jq=function(e){e!==t&&(oe(e,t),(t=e).fn.render=Me,delete t.jsrender,a=t.expando)},t.jsrender=L;for(E in(m=p.settings).allowCode=!1,c=t.isFunction,t.render=Z,t.views=o,t.templates=l=o.templates,m)we(E);(v.debugMode=function(e){return void 0===e?m.debugMode:(m._clFns&&m._clFns(),m.debugMode=e,m.onError=typeof e===W?function(){return e}:c(e)?e:void 0,v)})(!1),g=m.advanced={cache:!0,useViews:!1,_jsv:!1},f({if:{render:function(e){var t=this,n=t.tagCtx;return t.rendering.done||!e&&(n.args.length||!n.index)?"":(t.rendering.done=!0,void(t.selected=n.index))},contentCtx:!0,flow:!0},for:{sortDataMap:ye(Pe),init:function(e,t){this.setDataMap(this.tagCtxs)},render:function(e){var t,n,r,i,s,o=this,a=o.tagCtx,c=!1===a.argDefault,l=a.props,h=c||a.args.length,d="",f=0;if(!o.rendering.done){if(t=h?e:a.view.data,c)for(c=l.reverse?"unshift":"push",i=+l.end,s=+l.step||1,t=[],r=+l.start||0;(i-r)*s>0;r+=s)t[c](r);void 0!==t&&(n=u(t),d+=a.render(t,!h||l.noIteration),f+=n?t.length:1),(o.rendering.done=f)&&(o.selected=a.index)}return d},setDataMap:function(e){for(var t,n,r,i=e.length;i--;)n=(t=e[i]).props,r=t.params.props,t.argDefault=void 0===n.end||t.args.length>0,n.dataMap=!1!==t.argDefault&&u(t.args[0])&&(r.sort||r.start||r.end||r.step||r.filter||r.reverse||n.sort||n.start||n.end||n.step||n.filter||n.reverse)&&this.sortDataMap},flow:!0},props:{baseTag:"for",dataMap:ye((function(e,n){var r,i,s=n.map,o=s&&s.propsArr;if(!o){if(o=[],typeof e===U||c(e))for(r in e)i=e[r],r===a||!e.hasOwnProperty(r)||n.props.noFunctions&&t.isFunction(i)||o.push({key:r,prop:i});s&&(s.propsArr=s.options&&o)}return Pe(o,n)})),init:ie,flow:!0},include:{flow:!0},"*":{render:re,flow:!0},":*":{render:re,flow:!0},dbg:d.dbg=h.dbg=function(e){try{throw console.log("JsRender dbg breakpoint: "+e),"dbg breakpoint"}catch(e){}return this.base?this.baseApply(arguments):e}}),h({html:Ie,attr:Ie,encode:function(e){return typeof e===W?e.replace(O,$e):e},unencode:function(e){return typeof e===W?e.replace(B,Fe):e},url:function(e){return null!=e?encodeURI(""+e):null===e?e:""}})}return m=p.settings,u=(t||G).isArray,v.delimiters("{{","}}","^"),X&&G.views.sub._jq(t),t||G}),window)},2543:function(e,t,n){var r;e=n.nmd(e),function(){var i,s="Expected a function",o="__lodash_hash_undefined__",a="__lodash_placeholder__",c=16,u=32,l=64,h=128,d=256,f=1/0,p=9007199254740991,m=NaN,g=4294967295,v=[["ary",h],["bind",1],["bindKey",2],["curry",8],["curryRight",c],["flip",512],["partial",u],["partialRight",l],["rearg",d]],b="[object Arguments]",w="[object Array]",y="[object Boolean]",_="[object Date]",S="[object Error]",E="[object Function]",C="[object GeneratorFunction]",L="[object Map]",k="[object Number]",T="[object Object]",A="[object Promise]",R="[object RegExp]",x="[object Set]",P="[object String]",M="[object Symbol]",$="[object WeakMap]",F="[object ArrayBuffer]",I="[object DataView]",j="[object Float32Array]",O="[object Float64Array]",B="[object Int8Array]",q="[object Int16Array]",N="[object Int32Array]",H="[object Uint8Array]",D="[object Uint8ClampedArray]",V="[object Uint16Array]",W="[object Uint32Array]",U=/\b__p \+= '';/g,z=/\b(__p \+=) '' \+/g,Y=/(__e\(.*?\)|\b__t\)) \+\n'';/g,K=/&(?:amp|lt|gt|quot|#39);/g,J=/[&<>"']/g,Z=RegExp(K.source),G=RegExp(J.source),X=/<%-([\s\S]+?)%>/g,Q=/<%([\s\S]+?)%>/g,ee=/<%=([\s\S]+?)%>/g,te=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ne=/^\w*$/,re=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ie=/[\\^$.*+?()[\]{}|]/g,se=RegExp(ie.source),oe=/^\s+/,ae=/\s/,ce=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ue=/\{\n\/\* \[wrapped with (.+)\] \*/,le=/,? & /,he=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,de=/[()=,{}\[\]\/\s]/,fe=/\\(\\)?/g,pe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,me=/\w*$/,ge=/^[-+]0x[0-9a-f]+$/i,ve=/^0b[01]+$/i,be=/^\[object .+?Constructor\]$/,we=/^0o[0-7]+$/i,ye=/^(?:0|[1-9]\d*)$/,_e=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Se=/($^)/,Ee=/['\n\r\u2028\u2029\\]/g,Ce="\\ud800-\\udfff",Le="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",ke="\\u2700-\\u27bf",Te="a-z\\xdf-\\xf6\\xf8-\\xff",Ae="A-Z\\xc0-\\xd6\\xd8-\\xde",Re="\\ufe0e\\ufe0f",xe="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Pe="['’]",Me="["+Ce+"]",$e="["+xe+"]",Fe="["+Le+"]",Ie="\\d+",je="["+ke+"]",Oe="["+Te+"]",Be="[^"+Ce+xe+Ie+ke+Te+Ae+"]",qe="\\ud83c[\\udffb-\\udfff]",Ne="[^"+Ce+"]",He="(?:\\ud83c[\\udde6-\\uddff]){2}",De="[\\ud800-\\udbff][\\udc00-\\udfff]",Ve="["+Ae+"]",We="\\u200d",Ue="(?:"+Oe+"|"+Be+")",ze="(?:"+Ve+"|"+Be+")",Ye="(?:['’](?:d|ll|m|re|s|t|ve))?",Ke="(?:['’](?:D|LL|M|RE|S|T|VE))?",Je="(?:"+Fe+"|"+qe+")"+"?",Ze="["+Re+"]?",Ge=Ze+Je+("(?:"+We+"(?:"+[Ne,He,De].join("|")+")"+Ze+Je+")*"),Xe="(?:"+[je,He,De].join("|")+")"+Ge,Qe="(?:"+[Ne+Fe+"?",Fe,He,De,Me].join("|")+")",et=RegExp(Pe,"g"),tt=RegExp(Fe,"g"),nt=RegExp(qe+"(?="+qe+")|"+Qe+Ge,"g"),rt=RegExp([Ve+"?"+Oe+"+"+Ye+"(?="+[$e,Ve,"$"].join("|")+")",ze+"+"+Ke+"(?="+[$e,Ve+Ue,"$"].join("|")+")",Ve+"?"+Ue+"+"+Ye,Ve+"+"+Ke,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ie,Xe].join("|"),"g"),it=RegExp("["+We+Ce+Le+Re+"]"),st=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ot=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],at=-1,ct={};ct[j]=ct[O]=ct[B]=ct[q]=ct[N]=ct[H]=ct[D]=ct[V]=ct[W]=!0,ct[b]=ct[w]=ct[F]=ct[y]=ct[I]=ct[_]=ct[S]=ct[E]=ct[L]=ct[k]=ct[T]=ct[R]=ct[x]=ct[P]=ct[$]=!1;var ut={};ut[b]=ut[w]=ut[F]=ut[I]=ut[y]=ut[_]=ut[j]=ut[O]=ut[B]=ut[q]=ut[N]=ut[L]=ut[k]=ut[T]=ut[R]=ut[x]=ut[P]=ut[M]=ut[H]=ut[D]=ut[V]=ut[W]=!0,ut[S]=ut[E]=ut[$]=!1;var lt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ht=parseFloat,dt=parseInt,ft="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,pt="object"==typeof self&&self&&self.Object===Object&&self,mt=ft||pt||Function("return this")(),gt=t&&!t.nodeType&&t,vt=gt&&e&&!e.nodeType&&e,bt=vt&&vt.exports===gt,wt=bt&&ft.process,yt=function(){try{var e=vt&&vt.require&&vt.require("util").types;return e||wt&&wt.binding&&wt.binding("util")}catch(e){}}(),_t=yt&&yt.isArrayBuffer,St=yt&&yt.isDate,Et=yt&&yt.isMap,Ct=yt&&yt.isRegExp,Lt=yt&&yt.isSet,kt=yt&&yt.isTypedArray;function Tt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function At(e,t,n,r){for(var i=-1,s=null==e?0:e.length;++i-1}function Ft(e,t,n){for(var r=-1,i=null==e?0:e.length;++r-1;);return n}function rn(e,t){for(var n=e.length;n--&&Vt(t,e[n],0)>-1;);return n}var sn=Kt({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),on=Kt({"&":"&","<":"<",">":">",'"':""","'":"'"});function an(e){return"\\"+lt[e]}function cn(e){return it.test(e)}function un(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function ln(e,t){return function(n){return e(t(n))}}function hn(e,t){for(var n=-1,r=e.length,i=0,s=[];++n",""":'"',"'":"'"});var bn=function e(t){var n,r=(t=null==t?mt:bn.defaults(mt.Object(),t,bn.pick(mt,ot))).Array,ae=t.Date,Ce=t.Error,Le=t.Function,ke=t.Math,Te=t.Object,Ae=t.RegExp,Re=t.String,xe=t.TypeError,Pe=r.prototype,Me=Le.prototype,$e=Te.prototype,Fe=t["__core-js_shared__"],Ie=Me.toString,je=$e.hasOwnProperty,Oe=0,Be=(n=/[^.]+$/.exec(Fe&&Fe.keys&&Fe.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",qe=$e.toString,Ne=Ie.call(Te),He=mt._,De=Ae("^"+Ie.call(je).replace(ie,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ve=bt?t.Buffer:i,We=t.Symbol,Ue=t.Uint8Array,ze=Ve?Ve.allocUnsafe:i,Ye=ln(Te.getPrototypeOf,Te),Ke=Te.create,Je=$e.propertyIsEnumerable,Ze=Pe.splice,Ge=We?We.isConcatSpreadable:i,Xe=We?We.iterator:i,Qe=We?We.toStringTag:i,nt=function(){try{var e=ds(Te,"defineProperty");return e({},"",{}),e}catch(e){}}(),it=t.clearTimeout!==mt.clearTimeout&&t.clearTimeout,lt=ae&&ae.now!==mt.Date.now&&ae.now,ft=t.setTimeout!==mt.setTimeout&&t.setTimeout,pt=ke.ceil,gt=ke.floor,vt=Te.getOwnPropertySymbols,wt=Ve?Ve.isBuffer:i,yt=t.isFinite,Nt=Pe.join,Kt=ln(Te.keys,Te),wn=ke.max,yn=ke.min,_n=ae.now,Sn=t.parseInt,En=ke.random,Cn=Pe.reverse,Ln=ds(t,"DataView"),kn=ds(t,"Map"),Tn=ds(t,"Promise"),An=ds(t,"Set"),Rn=ds(t,"WeakMap"),xn=ds(Te,"create"),Pn=Rn&&new Rn,Mn={},$n=Bs(Ln),Fn=Bs(kn),In=Bs(Tn),jn=Bs(An),On=Bs(Rn),Bn=We?We.prototype:i,qn=Bn?Bn.valueOf:i,Nn=Bn?Bn.toString:i;function Hn(e){if(na(e)&&!Uo(e)&&!(e instanceof Un)){if(e instanceof Wn)return e;if(je.call(e,"__wrapped__"))return qs(e)}return new Wn(e)}var Dn=function(){function e(){}return function(t){if(!ta(t))return{};if(Ke)return Ke(t);e.prototype=t;var n=new e;return e.prototype=i,n}}();function Vn(){}function Wn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}function Un(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=g,this.__views__=[]}function zn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function ur(e,t,n,r,s,o){var a,c=1&t,u=2&t,l=4&t;if(n&&(a=s?n(e,r,s,o):n(e)),a!==i)return a;if(!ta(e))return e;var h=Uo(e);if(h){if(a=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&je.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!c)return xi(e,a)}else{var d=ms(e),f=d==E||d==C;if(Jo(e))return Ci(e,c);if(d==T||d==b||f&&!s){if(a=u||f?{}:vs(e),!c)return u?function(e,t){return Pi(e,ps(e),t)}(e,function(e,t){return e&&Pi(t,$a(t),e)}(a,e)):function(e,t){return Pi(e,fs(e),t)}(e,sr(a,e))}else{if(!ut[d])return s?e:{};a=function(e,t,n){var r=e.constructor;switch(t){case F:return Li(e);case y:case _:return new r(+e);case I:return function(e,t){var n=t?Li(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case j:case O:case B:case q:case N:case H:case D:case V:case W:return ki(e,n);case L:return new r;case k:case P:return new r(e);case R:return function(e){var t=new e.constructor(e.source,me.exec(e));return t.lastIndex=e.lastIndex,t}(e);case x:return new r;case M:return i=e,qn?Te(qn.call(i)):{}}var i}(e,d,c)}}o||(o=new Zn);var p=o.get(e);if(p)return p;o.set(e,a),aa(e)?e.forEach((function(r){a.add(ur(r,t,n,r,e,o))})):ra(e)&&e.forEach((function(r,i){a.set(i,ur(r,t,n,i,e,o))}));var m=h?i:(l?u?ss:is:u?$a:Ma)(e);return Rt(m||e,(function(r,i){m&&(r=e[i=r]),nr(a,i,ur(r,t,n,i,e,o))})),a}function lr(e,t,n){var r=n.length;if(null==e)return!r;for(e=Te(e);r--;){var s=n[r],o=t[s],a=e[s];if(a===i&&!(s in e)||!o(a))return!1}return!0}function hr(e,t,n){if("function"!=typeof e)throw new xe(s);return Ps((function(){e.apply(i,n)}),t)}function dr(e,t,n,r){var i=-1,s=$t,o=!0,a=e.length,c=[],u=t.length;if(!a)return c;n&&(t=It(t,Qt(n))),r?(s=Ft,o=!1):t.length>=200&&(s=tn,o=!1,t=new Jn(t));e:for(;++i-1},Yn.prototype.set=function(e,t){var n=this.__data__,r=rr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Kn.prototype.clear=function(){this.size=0,this.__data__={hash:new zn,map:new(kn||Yn),string:new zn}},Kn.prototype.delete=function(e){var t=ls(this,e).delete(e);return this.size-=t?1:0,t},Kn.prototype.get=function(e){return ls(this,e).get(e)},Kn.prototype.has=function(e){return ls(this,e).has(e)},Kn.prototype.set=function(e,t){var n=ls(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Jn.prototype.add=Jn.prototype.push=function(e){return this.__data__.set(e,o),this},Jn.prototype.has=function(e){return this.__data__.has(e)},Zn.prototype.clear=function(){this.__data__=new Yn,this.size=0},Zn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Zn.prototype.get=function(e){return this.__data__.get(e)},Zn.prototype.has=function(e){return this.__data__.has(e)},Zn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Yn){var r=n.__data__;if(!kn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Kn(r)}return n.set(e,t),this.size=n.size,this};var fr=Fi(_r),pr=Fi(Sr,!0);function mr(e,t){var n=!0;return fr(e,(function(e,r,i){return n=!!t(e,r,i)})),n}function gr(e,t,n){for(var r=-1,s=e.length;++r0&&n(a)?t>1?br(a,t-1,n,r,i):jt(i,a):r||(i[i.length]=a)}return i}var wr=Ii(),yr=Ii(!0);function _r(e,t){return e&&wr(e,t,Ma)}function Sr(e,t){return e&&yr(e,t,Ma)}function Er(e,t){return Mt(t,(function(t){return Xo(e[t])}))}function Cr(e,t){for(var n=0,r=(t=yi(t,e)).length;null!=e&&nt}function Ar(e,t){return null!=e&&je.call(e,t)}function Rr(e,t){return null!=e&&t in Te(e)}function xr(e,t,n){for(var s=n?Ft:$t,o=e[0].length,a=e.length,c=a,u=r(a),l=1/0,h=[];c--;){var d=e[c];c&&t&&(d=It(d,Qt(t))),l=yn(d.length,l),u[c]=!n&&(t||o>=120&&d.length>=120)?new Jn(c&&d):i}d=e[0];var f=-1,p=u[0];e:for(;++f=a?c:c*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function zr(e,t,n){for(var r=-1,i=t.length,s={};++r-1;)a!==e&&Ze.call(a,c,1),Ze.call(e,c,1);return e}function Kr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==s){var s=i;ws(i)?Ze.call(e,i,1):di(e,i)}}return e}function Jr(e,t){return e+gt(En()*(t-e+1))}function Zr(e,t){var n="";if(!e||t<1||t>p)return n;do{t%2&&(n+=e),(t=gt(t/2))&&(e+=e)}while(t);return n}function Gr(e,t){return Ms(Ts(e,t,ic),e+"")}function Xr(e){return Xn(Ha(e))}function Qr(e,t){var n=Ha(e);return Is(n,cr(t,0,n.length))}function ei(e,t,n,r){if(!ta(e))return e;for(var s=-1,o=(t=yi(t,e)).length,a=o-1,c=e;null!=c&&++ss?0:s+t),(n=n>s?s:n)<0&&(n+=s),s=t>n?0:n-t>>>0,t>>>=0;for(var o=r(s);++i>>1,o=e[s];null!==o&&!ua(o)&&(n?o<=t:o=200){var u=t?null:Zi(e);if(u)return dn(u);o=!1,i=tn,c=new Jn}else c=t?[]:a;e:for(;++r=r?e:ii(e,t,n)}var Ei=it||function(e){return mt.clearTimeout(e)};function Ci(e,t){if(t)return e.slice();var n=e.length,r=ze?ze(n):new e.constructor(n);return e.copy(r),r}function Li(e){var t=new e.constructor(e.byteLength);return new Ue(t).set(new Ue(e)),t}function ki(e,t){var n=t?Li(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Ti(e,t){if(e!==t){var n=e!==i,r=null===e,s=e==e,o=ua(e),a=t!==i,c=null===t,u=t==t,l=ua(t);if(!c&&!l&&!o&&e>t||o&&a&&u&&!c&&!l||r&&a&&u||!n&&u||!s)return 1;if(!r&&!o&&!l&&e1?n[s-1]:i,a=s>2?n[2]:i;for(o=e.length>3&&"function"==typeof o?(s--,o):i,a&&ys(n[0],n[1],a)&&(o=s<3?i:o,s=1),t=Te(t);++r-1?s[o?t[a]:a]:i}}function Ni(e){return rs((function(t){var n=t.length,r=n,o=Wn.prototype.thru;for(e&&t.reverse();r--;){var a=t[r];if("function"!=typeof a)throw new xe(s);if(o&&!c&&"wrapper"==as(a))var c=new Wn([],!0)}for(r=c?r:n;++r1&&y.reverse(),f&&lc))return!1;var l=o.get(e),h=o.get(t);if(l&&h)return l==t&&h==e;var d=-1,f=!0,p=2&n?new Jn:i;for(o.set(e,t),o.set(t,e);++d-1&&e%1==0&&e1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(ce,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Rt(v,(function(n){var r="_."+n[0];t&n[1]&&!$t(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(ue);return t?t[1].split(le):[]}(r),n)))}function Fs(e){var t=0,n=0;return function(){var r=_n(),s=16-(r-n);if(n=r,s>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(i,arguments)}}function Is(e,t){var n=-1,r=e.length,s=r-1;for(t=t===i?r:t;++n1?e[t-1]:i;return n="function"==typeof n?(e.pop(),n):i,so(e,n)}));function fo(e){var t=Hn(e);return t.__chain__=!0,t}function po(e,t){return t(e)}var mo=rs((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,s=function(t){return ar(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Un&&ws(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:po,args:[s],thisArg:i}),new Wn(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(i),e}))):this.thru(s)}));var go=Mi((function(e,t,n){je.call(e,n)?++e[n]:or(e,n,1)}));var vo=qi(Vs),bo=qi(Ws);function wo(e,t){return(Uo(e)?Rt:fr)(e,us(t,3))}function yo(e,t){return(Uo(e)?xt:pr)(e,us(t,3))}var _o=Mi((function(e,t,n){je.call(e,n)?e[n].push(t):or(e,n,[t])}));var So=Gr((function(e,t,n){var i=-1,s="function"==typeof t,o=Yo(e)?r(e.length):[];return fr(e,(function(e){o[++i]=s?Tt(t,e,n):Pr(e,t,n)})),o})),Eo=Mi((function(e,t,n){or(e,n,t)}));function Co(e,t){return(Uo(e)?It:Nr)(e,us(t,3))}var Lo=Mi((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var ko=Gr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&ys(e,t[0],t[1])?t=[]:n>2&&ys(t[0],t[1],t[2])&&(t=[t[0]]),Ur(e,br(t,1),[])})),To=lt||function(){return mt.Date.now()};function Ao(e,t,n){return t=n?i:t,t=e&&null==t?e.length:t,Xi(e,h,i,i,i,i,t)}function Ro(e,t){var n;if("function"!=typeof t)throw new xe(s);return e=ma(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var xo=Gr((function(e,t,n){var r=1;if(n.length){var i=hn(n,cs(xo));r|=u}return Xi(e,r,t,n,i)})),Po=Gr((function(e,t,n){var r=3;if(n.length){var i=hn(n,cs(Po));r|=u}return Xi(t,r,e,n,i)}));function Mo(e,t,n){var r,o,a,c,u,l,h=0,d=!1,f=!1,p=!0;if("function"!=typeof e)throw new xe(s);function m(t){var n=r,s=o;return r=o=i,h=t,c=e.apply(s,n)}function g(e){var n=e-l;return l===i||n>=t||n<0||f&&e-h>=a}function v(){var e=To();if(g(e))return b(e);u=Ps(v,function(e){var n=t-(e-l);return f?yn(n,a-(e-h)):n}(e))}function b(e){return u=i,p&&r?m(e):(r=o=i,c)}function w(){var e=To(),n=g(e);if(r=arguments,o=this,l=e,n){if(u===i)return function(e){return h=e,u=Ps(v,t),d?m(e):c}(l);if(f)return Ei(u),u=Ps(v,t),m(l)}return u===i&&(u=Ps(v,t)),c}return t=va(t)||0,ta(n)&&(d=!!n.leading,a=(f="maxWait"in n)?wn(va(n.maxWait)||0,t):a,p="trailing"in n?!!n.trailing:p),w.cancel=function(){u!==i&&Ei(u),h=0,r=l=o=u=i},w.flush=function(){return u===i?c:b(To())},w}var $o=Gr((function(e,t){return hr(e,1,t)})),Fo=Gr((function(e,t,n){return hr(e,va(t)||0,n)}));function Io(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new xe(s);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],s=n.cache;if(s.has(i))return s.get(i);var o=e.apply(this,r);return n.cache=s.set(i,o)||s,o};return n.cache=new(Io.Cache||Kn),n}function jo(e){if("function"!=typeof e)throw new xe(s);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Io.Cache=Kn;var Oo=_i((function(e,t){var n=(t=1==t.length&&Uo(t[0])?It(t[0],Qt(us())):It(br(t,1),Qt(us()))).length;return Gr((function(r){for(var i=-1,s=yn(r.length,n);++i=t})),Wo=Mr(function(){return arguments}())?Mr:function(e){return na(e)&&je.call(e,"callee")&&!Je.call(e,"callee")},Uo=r.isArray,zo=_t?Qt(_t):function(e){return na(e)&&kr(e)==F};function Yo(e){return null!=e&&ea(e.length)&&!Xo(e)}function Ko(e){return na(e)&&Yo(e)}var Jo=wt||vc,Zo=St?Qt(St):function(e){return na(e)&&kr(e)==_};function Go(e){if(!na(e))return!1;var t=kr(e);return t==S||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!sa(e)}function Xo(e){if(!ta(e))return!1;var t=kr(e);return t==E||t==C||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Qo(e){return"number"==typeof e&&e==ma(e)}function ea(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=p}function ta(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function na(e){return null!=e&&"object"==typeof e}var ra=Et?Qt(Et):function(e){return na(e)&&ms(e)==L};function ia(e){return"number"==typeof e||na(e)&&kr(e)==k}function sa(e){if(!na(e)||kr(e)!=T)return!1;var t=Ye(e);if(null===t)return!0;var n=je.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Ie.call(n)==Ne}var oa=Ct?Qt(Ct):function(e){return na(e)&&kr(e)==R};var aa=Lt?Qt(Lt):function(e){return na(e)&&ms(e)==x};function ca(e){return"string"==typeof e||!Uo(e)&&na(e)&&kr(e)==P}function ua(e){return"symbol"==typeof e||na(e)&&kr(e)==M}var la=kt?Qt(kt):function(e){return na(e)&&ea(e.length)&&!!ct[kr(e)]};var ha=Yi(qr),da=Yi((function(e,t){return e<=t}));function fa(e){if(!e)return[];if(Yo(e))return ca(e)?mn(e):xi(e);if(Xe&&e[Xe])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Xe]());var t=ms(e);return(t==L?un:t==x?dn:Ha)(e)}function pa(e){return e?(e=va(e))===f||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function ma(e){var t=pa(e),n=t%1;return t==t?n?t-n:t:0}function ga(e){return e?cr(ma(e),0,g):0}function va(e){if("number"==typeof e)return e;if(ua(e))return m;if(ta(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ta(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Xt(e);var n=ve.test(e);return n||we.test(e)?dt(e.slice(2),n?2:8):ge.test(e)?m:+e}function ba(e){return Pi(e,$a(e))}function wa(e){return null==e?"":li(e)}var ya=$i((function(e,t){if(Cs(t)||Yo(t))Pi(t,Ma(t),e);else for(var n in t)je.call(t,n)&&nr(e,n,t[n])})),_a=$i((function(e,t){Pi(t,$a(t),e)})),Sa=$i((function(e,t,n,r){Pi(t,$a(t),e,r)})),Ea=$i((function(e,t,n,r){Pi(t,Ma(t),e,r)})),Ca=rs(ar);var La=Gr((function(e,t){e=Te(e);var n=-1,r=t.length,s=r>2?t[2]:i;for(s&&ys(t[0],t[1],s)&&(r=1);++n1),t})),Pi(e,ss(e),n),r&&(n=ur(n,7,ts));for(var i=t.length;i--;)di(n,t[i]);return n}));var Oa=rs((function(e,t){return null==e?{}:function(e,t){return zr(e,t,(function(t,n){return Aa(e,n)}))}(e,t)}));function Ba(e,t){if(null==e)return{};var n=It(ss(e),(function(e){return[e]}));return t=us(t),zr(e,n,(function(e,n){return t(e,n[0])}))}var qa=Gi(Ma),Na=Gi($a);function Ha(e){return null==e?[]:en(e,Ma(e))}var Da=Oi((function(e,t,n){return t=t.toLowerCase(),e+(n?Va(t):t)}));function Va(e){return Ga(wa(e).toLowerCase())}function Wa(e){return(e=wa(e))&&e.replace(_e,sn).replace(tt,"")}var Ua=Oi((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),za=Oi((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Ya=ji("toLowerCase");var Ka=Oi((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Ja=Oi((function(e,t,n){return e+(n?" ":"")+Ga(t)}));var Za=Oi((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Ga=ji("toUpperCase");function Xa(e,t,n){return e=wa(e),(t=n?i:t)===i?function(e){return st.test(e)}(e)?function(e){return e.match(rt)||[]}(e):function(e){return e.match(he)||[]}(e):e.match(t)||[]}var Qa=Gr((function(e,t){try{return Tt(e,i,t)}catch(e){return Go(e)?e:new Ce(e)}})),ec=rs((function(e,t){return Rt(t,(function(t){t=Os(t),or(e,t,xo(e[t],e))})),e}));function tc(e){return function(){return e}}var nc=Ni(),rc=Ni(!0);function ic(e){return e}function sc(e){return jr("function"==typeof e?e:ur(e,1))}var oc=Gr((function(e,t){return function(n){return Pr(n,e,t)}})),ac=Gr((function(e,t){return function(n){return Pr(e,n,t)}}));function cc(e,t,n){var r=Ma(t),i=Er(t,r);null!=n||ta(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=Er(t,Ma(t)));var s=!(ta(n)&&"chain"in n&&!n.chain),o=Xo(e);return Rt(i,(function(n){var r=t[n];e[n]=r,o&&(e.prototype[n]=function(){var t=this.__chain__;if(s||t){var n=e(this.__wrapped__);return(n.__actions__=xi(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,jt([this.value()],arguments))})})),e}function uc(){}var lc=Wi(It),hc=Wi(Pt),dc=Wi(qt);function fc(e){return _s(e)?Yt(Os(e)):function(e){return function(t){return Cr(t,e)}}(e)}var pc=zi(),mc=zi(!0);function gc(){return[]}function vc(){return!1}var bc=Vi((function(e,t){return e+t}),0),wc=Ji("ceil"),yc=Vi((function(e,t){return e/t}),1),_c=Ji("floor");var Sc,Ec=Vi((function(e,t){return e*t}),1),Cc=Ji("round"),Lc=Vi((function(e,t){return e-t}),0);return Hn.after=function(e,t){if("function"!=typeof t)throw new xe(s);return e=ma(e),function(){if(--e<1)return t.apply(this,arguments)}},Hn.ary=Ao,Hn.assign=ya,Hn.assignIn=_a,Hn.assignInWith=Sa,Hn.assignWith=Ea,Hn.at=Ca,Hn.before=Ro,Hn.bind=xo,Hn.bindAll=ec,Hn.bindKey=Po,Hn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Uo(e)?e:[e]},Hn.chain=fo,Hn.chunk=function(e,t,n){t=(n?ys(e,t,n):t===i)?1:wn(ma(t),0);var s=null==e?0:e.length;if(!s||t<1)return[];for(var o=0,a=0,c=r(pt(s/t));os?0:s+n),(r=r===i||r>s?s:ma(r))<0&&(r+=s),r=n>r?0:ga(r);n>>0)?(e=wa(e))&&("string"==typeof t||null!=t&&!oa(t))&&!(t=li(t))&&cn(e)?Si(mn(e),0,n):e.split(t,n):[]},Hn.spread=function(e,t){if("function"!=typeof e)throw new xe(s);return t=null==t?0:wn(ma(t),0),Gr((function(n){var r=n[t],i=Si(n,0,t);return r&&jt(i,r),Tt(e,this,i)}))},Hn.tail=function(e){var t=null==e?0:e.length;return t?ii(e,1,t):[]},Hn.take=function(e,t,n){return e&&e.length?ii(e,0,(t=n||t===i?1:ma(t))<0?0:t):[]},Hn.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?ii(e,(t=r-(t=n||t===i?1:ma(t)))<0?0:t,r):[]},Hn.takeRightWhile=function(e,t){return e&&e.length?pi(e,us(t,3),!1,!0):[]},Hn.takeWhile=function(e,t){return e&&e.length?pi(e,us(t,3)):[]},Hn.tap=function(e,t){return t(e),e},Hn.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new xe(s);return ta(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Mo(e,t,{leading:r,maxWait:t,trailing:i})},Hn.thru=po,Hn.toArray=fa,Hn.toPairs=qa,Hn.toPairsIn=Na,Hn.toPath=function(e){return Uo(e)?It(e,Os):ua(e)?[e]:xi(js(wa(e)))},Hn.toPlainObject=ba,Hn.transform=function(e,t,n){var r=Uo(e),i=r||Jo(e)||la(e);if(t=us(t,4),null==n){var s=e&&e.constructor;n=i?r?new s:[]:ta(e)&&Xo(s)?Dn(Ye(e)):{}}return(i?Rt:_r)(e,(function(e,r,i){return t(n,e,r,i)})),n},Hn.unary=function(e){return Ao(e,1)},Hn.union=to,Hn.unionBy=no,Hn.unionWith=ro,Hn.uniq=function(e){return e&&e.length?hi(e):[]},Hn.uniqBy=function(e,t){return e&&e.length?hi(e,us(t,2)):[]},Hn.uniqWith=function(e,t){return t="function"==typeof t?t:i,e&&e.length?hi(e,i,t):[]},Hn.unset=function(e,t){return null==e||di(e,t)},Hn.unzip=io,Hn.unzipWith=so,Hn.update=function(e,t,n){return null==e?e:fi(e,t,wi(n))},Hn.updateWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:fi(e,t,wi(n),r)},Hn.values=Ha,Hn.valuesIn=function(e){return null==e?[]:en(e,$a(e))},Hn.without=oo,Hn.words=Xa,Hn.wrap=function(e,t){return Bo(wi(t),e)},Hn.xor=ao,Hn.xorBy=co,Hn.xorWith=uo,Hn.zip=lo,Hn.zipObject=function(e,t){return vi(e||[],t||[],nr)},Hn.zipObjectDeep=function(e,t){return vi(e||[],t||[],ei)},Hn.zipWith=ho,Hn.entries=qa,Hn.entriesIn=Na,Hn.extend=_a,Hn.extendWith=Sa,cc(Hn,Hn),Hn.add=bc,Hn.attempt=Qa,Hn.camelCase=Da,Hn.capitalize=Va,Hn.ceil=wc,Hn.clamp=function(e,t,n){return n===i&&(n=t,t=i),n!==i&&(n=(n=va(n))==n?n:0),t!==i&&(t=(t=va(t))==t?t:0),cr(va(e),t,n)},Hn.clone=function(e){return ur(e,4)},Hn.cloneDeep=function(e){return ur(e,5)},Hn.cloneDeepWith=function(e,t){return ur(e,5,t="function"==typeof t?t:i)},Hn.cloneWith=function(e,t){return ur(e,4,t="function"==typeof t?t:i)},Hn.conformsTo=function(e,t){return null==t||lr(e,t,Ma(t))},Hn.deburr=Wa,Hn.defaultTo=function(e,t){return null==e||e!=e?t:e},Hn.divide=yc,Hn.endsWith=function(e,t,n){e=wa(e),t=li(t);var r=e.length,s=n=n===i?r:cr(ma(n),0,r);return(n-=t.length)>=0&&e.slice(n,s)==t},Hn.eq=Ho,Hn.escape=function(e){return(e=wa(e))&&G.test(e)?e.replace(J,on):e},Hn.escapeRegExp=function(e){return(e=wa(e))&&se.test(e)?e.replace(ie,"\\$&"):e},Hn.every=function(e,t,n){var r=Uo(e)?Pt:mr;return n&&ys(e,t,n)&&(t=i),r(e,us(t,3))},Hn.find=vo,Hn.findIndex=Vs,Hn.findKey=function(e,t){return Ht(e,us(t,3),_r)},Hn.findLast=bo,Hn.findLastIndex=Ws,Hn.findLastKey=function(e,t){return Ht(e,us(t,3),Sr)},Hn.floor=_c,Hn.forEach=wo,Hn.forEachRight=yo,Hn.forIn=function(e,t){return null==e?e:wr(e,us(t,3),$a)},Hn.forInRight=function(e,t){return null==e?e:yr(e,us(t,3),$a)},Hn.forOwn=function(e,t){return e&&_r(e,us(t,3))},Hn.forOwnRight=function(e,t){return e&&Sr(e,us(t,3))},Hn.get=Ta,Hn.gt=Do,Hn.gte=Vo,Hn.has=function(e,t){return null!=e&&gs(e,t,Ar)},Hn.hasIn=Aa,Hn.head=zs,Hn.identity=ic,Hn.includes=function(e,t,n,r){e=Yo(e)?e:Ha(e),n=n&&!r?ma(n):0;var i=e.length;return n<0&&(n=wn(i+n,0)),ca(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&Vt(e,t,n)>-1},Hn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:ma(n);return i<0&&(i=wn(r+i,0)),Vt(e,t,i)},Hn.inRange=function(e,t,n){return t=pa(t),n===i?(n=t,t=0):n=pa(n),function(e,t,n){return e>=yn(t,n)&&e=-9007199254740991&&e<=p},Hn.isSet=aa,Hn.isString=ca,Hn.isSymbol=ua,Hn.isTypedArray=la,Hn.isUndefined=function(e){return e===i},Hn.isWeakMap=function(e){return na(e)&&ms(e)==$},Hn.isWeakSet=function(e){return na(e)&&"[object WeakSet]"==kr(e)},Hn.join=function(e,t){return null==e?"":Nt.call(e,t)},Hn.kebabCase=Ua,Hn.last=Zs,Hn.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var s=r;return n!==i&&(s=(s=ma(n))<0?wn(r+s,0):yn(s,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,s):Dt(e,Ut,s,!0)},Hn.lowerCase=za,Hn.lowerFirst=Ya,Hn.lt=ha,Hn.lte=da,Hn.max=function(e){return e&&e.length?gr(e,ic,Tr):i},Hn.maxBy=function(e,t){return e&&e.length?gr(e,us(t,2),Tr):i},Hn.mean=function(e){return zt(e,ic)},Hn.meanBy=function(e,t){return zt(e,us(t,2))},Hn.min=function(e){return e&&e.length?gr(e,ic,qr):i},Hn.minBy=function(e,t){return e&&e.length?gr(e,us(t,2),qr):i},Hn.stubArray=gc,Hn.stubFalse=vc,Hn.stubObject=function(){return{}},Hn.stubString=function(){return""},Hn.stubTrue=function(){return!0},Hn.multiply=Ec,Hn.nth=function(e,t){return e&&e.length?Wr(e,ma(t)):i},Hn.noConflict=function(){return mt._===this&&(mt._=He),this},Hn.noop=uc,Hn.now=To,Hn.pad=function(e,t,n){e=wa(e);var r=(t=ma(t))?pn(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return Ui(gt(i),n)+e+Ui(pt(i),n)},Hn.padEnd=function(e,t,n){e=wa(e);var r=(t=ma(t))?pn(e):0;return t&&rt){var r=e;e=t,t=r}if(n||e%1||t%1){var s=En();return yn(e+s*(t-e+ht("1e-"+((s+"").length-1))),t)}return Jr(e,t)},Hn.reduce=function(e,t,n){var r=Uo(e)?Ot:Jt,i=arguments.length<3;return r(e,us(t,4),n,i,fr)},Hn.reduceRight=function(e,t,n){var r=Uo(e)?Bt:Jt,i=arguments.length<3;return r(e,us(t,4),n,i,pr)},Hn.repeat=function(e,t,n){return t=(n?ys(e,t,n):t===i)?1:ma(t),Zr(wa(e),t)},Hn.replace=function(){var e=arguments,t=wa(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Hn.result=function(e,t,n){var r=-1,s=(t=yi(t,e)).length;for(s||(s=1,e=i);++rp)return[];var n=g,r=yn(e,g);t=us(t),e-=g;for(var i=Gt(r,t);++n=o)return e;var c=n-pn(r);if(c<1)return r;var u=a?Si(a,0,c).join(""):e.slice(0,c);if(s===i)return u+r;if(a&&(c+=u.length-c),oa(s)){if(e.slice(c).search(s)){var l,h=u;for(s.global||(s=Ae(s.source,wa(me.exec(s))+"g")),s.lastIndex=0;l=s.exec(h);)var d=l.index;u=u.slice(0,d===i?c:d)}}else if(e.indexOf(li(s),c)!=c){var f=u.lastIndexOf(s);f>-1&&(u=u.slice(0,f))}return u+r},Hn.unescape=function(e){return(e=wa(e))&&Z.test(e)?e.replace(K,vn):e},Hn.uniqueId=function(e){var t=++Oe;return wa(e)+t},Hn.upperCase=Za,Hn.upperFirst=Ga,Hn.each=wo,Hn.eachRight=yo,Hn.first=zs,cc(Hn,(Sc={},_r(Hn,(function(e,t){je.call(Hn.prototype,t)||(Sc[t]=e)})),Sc),{chain:!1}),Hn.VERSION="4.17.21",Rt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Hn[e].placeholder=Hn})),Rt(["drop","take"],(function(e,t){Un.prototype[e]=function(n){n=n===i?1:wn(ma(n),0);var r=this.__filtered__&&!t?new Un(this):this.clone();return r.__filtered__?r.__takeCount__=yn(n,r.__takeCount__):r.__views__.push({size:yn(n,g),type:e+(r.__dir__<0?"Right":"")}),r},Un.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Rt(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Un.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:us(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),Rt(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Un.prototype[e]=function(){return this[n](1).value()[0]}})),Rt(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Un.prototype[e]=function(){return this.__filtered__?new Un(this):this[n](1)}})),Un.prototype.compact=function(){return this.filter(ic)},Un.prototype.find=function(e){return this.filter(e).head()},Un.prototype.findLast=function(e){return this.reverse().find(e)},Un.prototype.invokeMap=Gr((function(e,t){return"function"==typeof e?new Un(this):this.map((function(n){return Pr(n,e,t)}))})),Un.prototype.reject=function(e){return this.filter(jo(us(e)))},Un.prototype.slice=function(e,t){e=ma(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Un(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(n=(t=ma(t))<0?n.dropRight(-t):n.take(t-e)),n)},Un.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Un.prototype.toArray=function(){return this.take(g)},_r(Un.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),s=Hn[r?"take"+("last"==t?"Right":""):t],o=r||/^find/.test(t);s&&(Hn.prototype[t]=function(){var t=this.__wrapped__,a=r?[1]:arguments,c=t instanceof Un,u=a[0],l=c||Uo(t),h=function(e){var t=s.apply(Hn,jt([e],a));return r&&d?t[0]:t};l&&n&&"function"==typeof u&&1!=u.length&&(c=l=!1);var d=this.__chain__,f=!!this.__actions__.length,p=o&&!d,m=c&&!f;if(!o&&l){t=m?t:new Un(this);var g=e.apply(t,a);return g.__actions__.push({func:po,args:[h],thisArg:i}),new Wn(g,d)}return p&&m?e.apply(this,a):(g=this.thru(h),p?r?g.value()[0]:g.value():g)})})),Rt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Pe[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Hn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(Uo(i)?i:[],e)}return this[n]((function(n){return t.apply(Uo(n)?n:[],e)}))}})),_r(Un.prototype,(function(e,t){var n=Hn[t];if(n){var r=n.name+"";je.call(Mn,r)||(Mn[r]=[]),Mn[r].push({name:t,func:n})}})),Mn[Hi(i,2).name]=[{name:"wrapper",func:i}],Un.prototype.clone=function(){var e=new Un(this.__wrapped__);return e.__actions__=xi(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=xi(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=xi(this.__views__),e},Un.prototype.reverse=function(){if(this.__filtered__){var e=new Un(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Un.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Uo(e),r=t<0,i=n?e.length:0,s=function(e,t,n){var r=-1,i=n.length;for(;++r=this.__values__.length;return{done:e,value:e?i:this.__values__[this.__index__++]}},Hn.prototype.plant=function(e){for(var t,n=this;n instanceof Vn;){var r=qs(n);r.__index__=0,r.__values__=i,t?s.__wrapped__=r:t=r;var s=r;n=n.__wrapped__}return s.__wrapped__=e,t},Hn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Un){var t=e;return this.__actions__.length&&(t=new Un(this)),(t=t.reverse()).__actions__.push({func:po,args:[eo],thisArg:i}),new Wn(t,this.__chain__)}return this.thru(eo)},Hn.prototype.toJSON=Hn.prototype.valueOf=Hn.prototype.value=function(){return mi(this.__wrapped__,this.__actions__)},Hn.prototype.first=Hn.prototype.head,Xe&&(Hn.prototype[Xe]=function(){return this}),Hn}();mt._=bn,(r=function(){return bn}.call(t,n,t,e))===i||(e.exports=r)}.call(this)}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var n=__webpack_module_cache__[e]={id:e,loaded:!1,exports:{}};return __webpack_modules__[e].call(n.exports,n,n.exports,__webpack_require__),n.loaded=!0,n.exports}__webpack_require__.d=(e,t)=>{for(var n in t)__webpack_require__.o(t,n)&&!__webpack_require__.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},__webpack_require__.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var __webpack_exports__={};(()=>{"use strict";var e={};__webpack_require__.r(e),__webpack_require__.d(e,{FrameElement:()=>u,FrameLoadingStyle:()=>r,FrameRenderer:()=>J,PageRenderer:()=>ge,PageSnapshot:()=>ee,StreamActions:()=>Se,StreamElement:()=>Ne,StreamSourceElement:()=>He,cache:()=>Ce,clearCache:()=>Me,connectStreamSource:()=>Re,disconnectStreamSource:()=>xe,navigator:()=>Le,registerAdapter:()=>Te,renderStreamMessage:()=>Pe,session:()=>Ee,setConfirmMethod:()=>Fe,setFormMode:()=>Ie,setProgressBarDelay:()=>$e,start:()=>ke,visit:()=>Ae}),function(){if(void 0===window.Reflect||void 0===window.customElements||window.customElements.polyfillWrapFlushCallback)return;const e=HTMLElement,t=function(){return Reflect.construct(e,[],this.constructor)};window.HTMLElement=t,HTMLElement.prototype=e.prototype,HTMLElement.prototype.constructor=HTMLElement,Object.setPrototypeOf(HTMLElement,e)}(),function(e){function t(e,t,n){throw new e("Failed to execute 'requestSubmit' on 'HTMLFormElement': "+t+".",n)}"function"!=typeof e.requestSubmit&&(e.requestSubmit=function(e){e?(!function(e,n){e instanceof HTMLElement||t(TypeError,"parameter 1 is not of type 'HTMLElement'"),"submit"==e.type||t(TypeError,"The specified element is not a submit button"),e.form==n||t(DOMException,"The specified element is not owned by this form element","NotFoundError")}(e,this),e.click()):((e=document.createElement("input")).type="submit",e.hidden=!0,this.appendChild(e),e.click(),this.removeChild(e))})}(HTMLFormElement.prototype);const t=new WeakMap;function n(e){const n=function(e){const t=e instanceof Element?e:e instanceof Node?e.parentElement:null,n=t?t.closest("input, button"):null;return"submit"==(null==n?void 0:n.type)?n:null}(e.target);n&&n.form&&t.set(n.form,n)}var r,i,s,o,a,c;!function(){if("submitter"in Event.prototype)return;let e=window.Event.prototype;if("SubmitEvent"in window&&/Apple Computer/.test(navigator.vendor))e=window.SubmitEvent.prototype;else if("SubmitEvent"in window)return;addEventListener("click",n,!0),Object.defineProperty(e,"submitter",{get(){if("submit"==this.type&&this.target instanceof HTMLFormElement)return t.get(this.target)}})}(),function(e){e.eager="eager",e.lazy="lazy"}(r||(r={}));class u extends HTMLElement{static get observedAttributes(){return["disabled","complete","loading","src"]}constructor(){super(),this.loaded=Promise.resolve(),this.delegate=new u.delegateConstructor(this)}connectedCallback(){this.delegate.connect()}disconnectedCallback(){this.delegate.disconnect()}reload(){return this.delegate.sourceURLReloaded()}attributeChangedCallback(e){"loading"==e?this.delegate.loadingStyleChanged():"complete"==e?this.delegate.completeChanged():"src"==e?this.delegate.sourceURLChanged():this.delegate.disabledChanged()}get src(){return this.getAttribute("src")}set src(e){e?this.setAttribute("src",e):this.removeAttribute("src")}get loading(){return function(e){if("lazy"===e.toLowerCase())return r.lazy;return r.eager}(this.getAttribute("loading")||"")}set loading(e){e?this.setAttribute("loading",e):this.removeAttribute("loading")}get disabled(){return this.hasAttribute("disabled")}set disabled(e){e?this.setAttribute("disabled",""):this.removeAttribute("disabled")}get autoscroll(){return this.hasAttribute("autoscroll")}set autoscroll(e){e?this.setAttribute("autoscroll",""):this.removeAttribute("autoscroll")}get complete(){return!this.delegate.isLoading}get isActive(){return this.ownerDocument===document&&!this.isPreview}get isPreview(){var e,t;return null===(t=null===(e=this.ownerDocument)||void 0===e?void 0:e.documentElement)||void 0===t?void 0:t.hasAttribute("data-turbo-preview")}}function l(e){return new URL(e.toString(),document.baseURI)}function h(e){let t;return e.hash?e.hash.slice(1):(t=e.href.match(/#(.*)$/))?t[1]:void 0}function d(e,t){return l((null==t?void 0:t.getAttribute("formaction"))||e.getAttribute("action")||e.action)}function f(e){return(function(e){return function(e){return e.pathname.split("/").slice(1)}(e).slice(-1)[0]}(e).match(/\.[^.]*$/)||[])[0]||""}function p(e,t){const n=function(e){return t=e.origin+e.pathname,t.endsWith("/")?t:t+"/";var t}(t);return e.href===l(n).href||e.href.startsWith(n)}function m(e,t){return p(e,t)&&!!f(e).match(/^(?:|\.(?:htm|html|xhtml|php))$/)}function g(e){const t=h(e);return null!=t?e.href.slice(0,-(t.length+1)):e.href}function v(e){return g(e)}class b{constructor(e){this.response=e}get succeeded(){return this.response.ok}get failed(){return!this.succeeded}get clientError(){return this.statusCode>=400&&this.statusCode<=499}get serverError(){return this.statusCode>=500&&this.statusCode<=599}get redirected(){return this.response.redirected}get location(){return l(this.response.url)}get isHTML(){return this.contentType&&this.contentType.match(/^(?:text\/([^\s;,]+\b)?html|application\/xhtml\+xml)\b/)}get statusCode(){return this.response.status}get contentType(){return this.header("Content-Type")}get responseText(){return this.response.clone().text()}get responseHTML(){return this.isHTML?this.response.clone().text():Promise.resolve(void 0)}header(e){return this.response.headers.get(e)}}function w(e){if("false"==e.getAttribute("data-turbo-eval"))return e;{const t=document.createElement("script"),n=M("csp-nonce");return n&&(t.nonce=n),t.textContent=e.textContent,t.async=!1,function(e,t){for(const{name:n,value:r}of t.attributes)e.setAttribute(n,r)}(t,e),t}}function y(e,{target:t,cancelable:n,detail:r}={}){const i=new CustomEvent(e,{cancelable:n,bubbles:!0,composed:!0,detail:r});return t&&t.isConnected?t.dispatchEvent(i):document.documentElement.dispatchEvent(i),i}function _(){return new Promise((e=>requestAnimationFrame((()=>e()))))}function S(e=""){return(new DOMParser).parseFromString(e,"text/html")}function E(e,...t){const n=function(e,t){return e.reduce(((e,n,r)=>e+n+(null==t[r]?"":t[r])),"")}(e,t).replace(/^\n/,"").split("\n"),r=n[0].match(/^\s+/),i=r?r[0].length:0;return n.map((e=>e.slice(i))).join("\n")}function C(){return Array.from({length:36}).map(((e,t)=>8==t||13==t||18==t||23==t?"-":14==t?"4":19==t?(Math.floor(4*Math.random())+8).toString(16):Math.floor(15*Math.random()).toString(16))).join("")}function L(e,...t){for(const n of t.map((t=>null==t?void 0:t.getAttribute(e))))if("string"==typeof n)return n;return null}function k(...e){for(const t of e)"turbo-frame"==t.localName&&t.setAttribute("busy",""),t.setAttribute("aria-busy","true")}function T(...e){for(const t of e)"turbo-frame"==t.localName&&t.removeAttribute("busy"),t.removeAttribute("aria-busy")}function A(e,t=2e3){return new Promise((n=>{const r=()=>{e.removeEventListener("error",r),e.removeEventListener("load",r),n()};e.addEventListener("load",r,{once:!0}),e.addEventListener("error",r,{once:!0}),setTimeout(n,t)}))}function R(e){switch(e){case"replace":return history.replaceState;case"advance":case"restore":return history.pushState}}function x(...e){const t=L("data-turbo-action",...e);return function(e){return"advance"==e||"replace"==e||"restore"==e}(t)?t:null}function P(e){return document.querySelector(`meta[name="${e}"]`)}function M(e){const t=P(e);return t&&t.content}function $(e,t){var n;if(e instanceof Element)return e.closest(t)||$(e.assignedSlot||(null===(n=e.getRootNode())||void 0===n?void 0:n.host),t)}!function(e){e[e.get=0]="get",e[e.post=1]="post",e[e.put=2]="put",e[e.patch=3]="patch",e[e.delete=4]="delete"}(i||(i={}));class F{constructor(e,t,n,r=new URLSearchParams,i=null){this.abortController=new AbortController,this.resolveRequestPromise=e=>{},this.delegate=e,this.method=t,this.headers=this.defaultHeaders,this.body=r,this.url=n,this.target=i}get location(){return this.url}get params(){return this.url.searchParams}get entries(){return this.body?Array.from(this.body.entries()):[]}cancel(){this.abortController.abort()}async perform(){const{fetchOptions:e}=this;this.delegate.prepareRequest(this),await this.allowRequestToBeIntercepted(e);try{this.delegate.requestStarted(this);const t=await fetch(this.url.href,e);return await this.receive(t)}catch(e){if("AbortError"!==e.name)throw this.willDelegateErrorHandling(e)&&this.delegate.requestErrored(this,e),e}finally{this.delegate.requestFinished(this)}}async receive(e){const t=new b(e);return y("turbo:before-fetch-response",{cancelable:!0,detail:{fetchResponse:t},target:this.target}).defaultPrevented?this.delegate.requestPreventedHandlingResponse(this,t):t.succeeded?this.delegate.requestSucceededWithResponse(this,t):this.delegate.requestFailedWithResponse(this,t),t}get fetchOptions(){var e;return{method:i[this.method].toUpperCase(),credentials:"same-origin",headers:this.headers,redirect:"follow",body:this.isSafe?null:this.body,signal:this.abortSignal,referrer:null===(e=this.delegate.referrer)||void 0===e?void 0:e.href}}get defaultHeaders(){return{Accept:"text/html, application/xhtml+xml"}}get isSafe(){return this.method===i.get}get abortSignal(){return this.abortController.signal}acceptResponseType(e){this.headers.Accept=[e,this.headers.Accept].join(", ")}async allowRequestToBeIntercepted(e){const t=new Promise((e=>this.resolveRequestPromise=e));y("turbo:before-fetch-request",{cancelable:!0,detail:{fetchOptions:e,url:this.url,resume:this.resolveRequestPromise},target:this.target}).defaultPrevented&&await t}willDelegateErrorHandling(e){return!y("turbo:fetch-request-error",{target:this.target,cancelable:!0,detail:{request:this,error:e}}).defaultPrevented}}class I{constructor(e,t){this.started=!1,this.intersect=e=>{const t=e.slice(-1)[0];(null==t?void 0:t.isIntersecting)&&this.delegate.elementAppearedInViewport(this.element)},this.delegate=e,this.element=t,this.intersectionObserver=new IntersectionObserver(this.intersect)}start(){this.started||(this.started=!0,this.intersectionObserver.observe(this.element))}stop(){this.started&&(this.started=!1,this.intersectionObserver.unobserve(this.element))}}class j{static wrap(e){return"string"==typeof e?new this(function(e){const t=document.createElement("template");return t.innerHTML=e,t.content}(e)):e}constructor(e){this.fragment=function(e){for(const t of e.querySelectorAll("turbo-stream")){const e=document.importNode(t,!0);for(const t of e.templateElement.content.querySelectorAll("script"))t.replaceWith(w(t));t.replaceWith(e)}return e}(e)}}j.contentType="text/vnd.turbo-stream.html",function(e){e[e.initialized=0]="initialized",e[e.requesting=1]="requesting",e[e.waiting=2]="waiting",e[e.receiving=3]="receiving",e[e.stopping=4]="stopping",e[e.stopped=5]="stopped"}(s||(s={})),function(e){e.urlEncoded="application/x-www-form-urlencoded",e.multipart="multipart/form-data",e.plain="text/plain"}(o||(o={}));class O{static confirmMethod(e,t,n){return Promise.resolve(confirm(e))}constructor(e,t,n,r=!1){this.state=s.initialized,this.delegate=e,this.formElement=t,this.submitter=n,this.formData=function(e,t){const n=new FormData(e),r=null==t?void 0:t.getAttribute("name"),i=null==t?void 0:t.getAttribute("value");r&&n.append(r,i||"");return n}(t,n),this.location=l(this.action),this.method==i.get&&function(e,t){const n=new URLSearchParams;for(const[e,r]of t)r instanceof File||n.append(e,r);e.search=n.toString()}(this.location,[...this.body.entries()]),this.fetchRequest=new F(this,this.method,this.location,this.body,this.formElement),this.mustRedirect=r}get method(){var e;return function(e){switch(e.toLowerCase()){case"get":return i.get;case"post":return i.post;case"put":return i.put;case"patch":return i.patch;case"delete":return i.delete}}(((null===(e=this.submitter)||void 0===e?void 0:e.getAttribute("formmethod"))||this.formElement.getAttribute("method")||"").toLowerCase())||i.get}get action(){var e;const t="string"==typeof this.formElement.action?this.formElement.action:null;return(null===(e=this.submitter)||void 0===e?void 0:e.hasAttribute("formaction"))?this.submitter.getAttribute("formaction")||"":this.formElement.getAttribute("action")||t||""}get body(){return this.enctype==o.urlEncoded||this.method==i.get?new URLSearchParams(this.stringFormData):this.formData}get enctype(){var e;return function(e){switch(e.toLowerCase()){case o.multipart:return o.multipart;case o.plain:return o.plain;default:return o.urlEncoded}}((null===(e=this.submitter)||void 0===e?void 0:e.getAttribute("formenctype"))||this.formElement.enctype)}get isSafe(){return this.fetchRequest.isSafe}get stringFormData(){return[...this.formData].reduce(((e,[t,n])=>e.concat("string"==typeof n?[[t,n]]:[])),[])}async start(){const{initialized:e,requesting:t}=s,n=L("data-turbo-confirm",this.submitter,this.formElement);if("string"==typeof n){if(!await O.confirmMethod(n,this.formElement,this.submitter))return}if(this.state==e)return this.state=t,this.fetchRequest.perform()}stop(){const{stopping:e,stopped:t}=s;if(this.state!=e&&this.state!=t)return this.state=e,this.fetchRequest.cancel(),!0}prepareRequest(e){if(!e.isSafe){const t=function(e){if(null!=e){const t=(document.cookie?document.cookie.split("; "):[]).find((t=>t.startsWith(e)));if(t){const e=t.split("=").slice(1).join("=");return e?decodeURIComponent(e):void 0}}}(M("csrf-param"))||M("csrf-token");t&&(e.headers["X-CSRF-Token"]=t)}this.requestAcceptsTurboStreamResponse(e)&&e.acceptResponseType(j.contentType)}requestStarted(e){var t;this.state=s.waiting,null===(t=this.submitter)||void 0===t||t.setAttribute("disabled",""),this.setSubmitsWith(),y("turbo:submit-start",{target:this.formElement,detail:{formSubmission:this}}),this.delegate.formSubmissionStarted(this)}requestPreventedHandlingResponse(e,t){this.result={success:t.succeeded,fetchResponse:t}}requestSucceededWithResponse(e,t){if(t.clientError||t.serverError)this.delegate.formSubmissionFailedWithResponse(this,t);else if(this.requestMustRedirect(e)&&function(e){return 200==e.statusCode&&!e.redirected}(t)){const e=new Error("Form responses must redirect to another location");this.delegate.formSubmissionErrored(this,e)}else this.state=s.receiving,this.result={success:!0,fetchResponse:t},this.delegate.formSubmissionSucceededWithResponse(this,t)}requestFailedWithResponse(e,t){this.result={success:!1,fetchResponse:t},this.delegate.formSubmissionFailedWithResponse(this,t)}requestErrored(e,t){this.result={success:!1,error:t},this.delegate.formSubmissionErrored(this,t)}requestFinished(e){var t;this.state=s.stopped,null===(t=this.submitter)||void 0===t||t.removeAttribute("disabled"),this.resetSubmitterText(),y("turbo:submit-end",{target:this.formElement,detail:Object.assign({formSubmission:this},this.result)}),this.delegate.formSubmissionFinished(this)}setSubmitsWith(){if(this.submitter&&this.submitsWith)if(this.submitter.matches("button"))this.originalSubmitText=this.submitter.innerHTML,this.submitter.innerHTML=this.submitsWith;else if(this.submitter.matches("input")){const e=this.submitter;this.originalSubmitText=e.value,e.value=this.submitsWith}}resetSubmitterText(){if(this.submitter&&this.originalSubmitText)if(this.submitter.matches("button"))this.submitter.innerHTML=this.originalSubmitText;else if(this.submitter.matches("input")){this.submitter.value=this.originalSubmitText}}requestMustRedirect(e){return!e.isSafe&&this.mustRedirect}requestAcceptsTurboStreamResponse(e){return!e.isSafe||function(e,...t){return t.some((t=>t&&t.hasAttribute(e)))}("data-turbo-stream",this.submitter,this.formElement)}get submitsWith(){var e;return null===(e=this.submitter)||void 0===e?void 0:e.getAttribute("data-turbo-submits-with")}}class B{constructor(e){this.element=e}get activeElement(){return this.element.ownerDocument.activeElement}get children(){return[...this.element.children]}hasAnchor(e){return null!=this.getElementForAnchor(e)}getElementForAnchor(e){return e?this.element.querySelector(`[id='${e}'], a[name='${e}']`):null}get isConnected(){return this.element.isConnected}get firstAutofocusableElement(){for(const e of this.element.querySelectorAll("[autofocus]"))if(null==e.closest("[inert], :disabled, [hidden], details:not([open]), dialog:not([open])"))return e;return null}get permanentElements(){return N(this.element)}getPermanentElementById(e){return q(this.element,e)}getPermanentElementMapForSnapshot(e){const t={};for(const n of this.permanentElements){const{id:r}=n,i=e.getPermanentElementById(r);i&&(t[r]=[n,i])}return t}}function q(e,t){return e.querySelector(`#${t}[data-turbo-permanent]`)}function N(e){return e.querySelectorAll("[id][data-turbo-permanent]")}class H{constructor(e,t){this.started=!1,this.submitCaptured=()=>{this.eventTarget.removeEventListener("submit",this.submitBubbled,!1),this.eventTarget.addEventListener("submit",this.submitBubbled,!1)},this.submitBubbled=e=>{if(!e.defaultPrevented){const t=e.target instanceof HTMLFormElement?e.target:void 0,n=e.submitter||void 0;t&&function(e,t){const n=(null==t?void 0:t.getAttribute("formmethod"))||e.getAttribute("method");return"dialog"!=n}(t,n)&&function(e,t){if((null==t?void 0:t.hasAttribute("formtarget"))||e.hasAttribute("target")){const n=(null==t?void 0:t.getAttribute("formtarget"))||e.target;for(const e of document.getElementsByName(n))if(e instanceof HTMLIFrameElement)return!1;return!0}return!0}(t,n)&&this.delegate.willSubmitForm(t,n)&&(e.preventDefault(),e.stopImmediatePropagation(),this.delegate.formSubmitted(t,n))}},this.delegate=e,this.eventTarget=t}start(){this.started||(this.eventTarget.addEventListener("submit",this.submitCaptured,!0),this.started=!0)}stop(){this.started&&(this.eventTarget.removeEventListener("submit",this.submitCaptured,!0),this.started=!1)}}class D{constructor(e,t){this.resolveRenderPromise=e=>{},this.resolveInterceptionPromise=e=>{},this.delegate=e,this.element=t}scrollToAnchor(e){const t=this.snapshot.getElementForAnchor(e);t?(this.scrollToElement(t),this.focusElement(t)):this.scrollToPosition({x:0,y:0})}scrollToAnchorFromLocation(e){this.scrollToAnchor(h(e))}scrollToElement(e){e.scrollIntoView()}focusElement(e){e instanceof HTMLElement&&(e.hasAttribute("tabindex")?e.focus():(e.setAttribute("tabindex","-1"),e.focus(),e.removeAttribute("tabindex")))}scrollToPosition({x:e,y:t}){this.scrollRoot.scrollTo(e,t)}scrollToTop(){this.scrollToPosition({x:0,y:0})}get scrollRoot(){return window}async render(e){const{isPreview:t,shouldRender:n,newSnapshot:r}=e;if(n)try{this.renderPromise=new Promise((e=>this.resolveRenderPromise=e)),this.renderer=e,await this.prepareToRenderSnapshot(e);const n=new Promise((e=>this.resolveInterceptionPromise=e)),i={resume:this.resolveInterceptionPromise,render:this.renderer.renderElement};this.delegate.allowsImmediateRender(r,i)||await n,await this.renderSnapshot(e),this.delegate.viewRenderedSnapshot(r,t),this.delegate.preloadOnLoadLinksForView(this.element),this.finishRenderingSnapshot(e)}finally{delete this.renderer,this.resolveRenderPromise(void 0),delete this.renderPromise}else this.invalidate(e.reloadReason)}invalidate(e){this.delegate.viewInvalidated(e)}async prepareToRenderSnapshot(e){this.markAsPreview(e.isPreview),await e.prepareToRender()}markAsPreview(e){e?this.element.setAttribute("data-turbo-preview",""):this.element.removeAttribute("data-turbo-preview")}async renderSnapshot(e){await e.render()}finishRenderingSnapshot(e){e.finishRendering()}}class V extends D{missing(){this.element.innerHTML='Content missing'}get snapshot(){return new B(this.element)}}class W{constructor(e,t){this.clickBubbled=e=>{this.respondsToEventTarget(e.target)?this.clickEvent=e:delete this.clickEvent},this.linkClicked=e=>{this.clickEvent&&this.respondsToEventTarget(e.target)&&e.target instanceof Element&&this.delegate.shouldInterceptLinkClick(e.target,e.detail.url,e.detail.originalEvent)&&(this.clickEvent.preventDefault(),e.preventDefault(),this.delegate.linkClickIntercepted(e.target,e.detail.url,e.detail.originalEvent)),delete this.clickEvent},this.willVisit=e=>{delete this.clickEvent},this.delegate=e,this.element=t}start(){this.element.addEventListener("click",this.clickBubbled),document.addEventListener("turbo:click",this.linkClicked),document.addEventListener("turbo:before-visit",this.willVisit)}stop(){this.element.removeEventListener("click",this.clickBubbled),document.removeEventListener("turbo:click",this.linkClicked),document.removeEventListener("turbo:before-visit",this.willVisit)}respondsToEventTarget(e){const t=e instanceof Element?e:e instanceof Node?e.parentElement:null;return t&&t.closest("turbo-frame, html")==this.element}}class U{constructor(e,t){this.started=!1,this.clickCaptured=()=>{this.eventTarget.removeEventListener("click",this.clickBubbled,!1),this.eventTarget.addEventListener("click",this.clickBubbled,!1)},this.clickBubbled=e=>{if(e instanceof MouseEvent&&this.clickEventIsSignificant(e)){const t=e.composedPath&&e.composedPath()[0]||e.target,n=this.findLinkFromClickTarget(t);if(n&&function(e){if(e.hasAttribute("target")){for(const t of document.getElementsByName(e.target))if(t instanceof HTMLIFrameElement)return!1;return!0}return!0}(n)){const t=this.getLocationForLink(n);this.delegate.willFollowLinkToLocation(n,t,e)&&(e.preventDefault(),this.delegate.followedLinkToLocation(n,t))}}},this.delegate=e,this.eventTarget=t}start(){this.started||(this.eventTarget.addEventListener("click",this.clickCaptured,!0),this.started=!0)}stop(){this.started&&(this.eventTarget.removeEventListener("click",this.clickCaptured,!0),this.started=!1)}clickEventIsSignificant(e){return!(e.target&&e.target.isContentEditable||e.defaultPrevented||e.which>1||e.altKey||e.ctrlKey||e.metaKey||e.shiftKey)}findLinkFromClickTarget(e){return $(e,"a[href]:not([target^=_]):not([download])")}getLocationForLink(e){return l(e.getAttribute("href")||"")}}class z{constructor(e,t){this.delegate=e,this.linkInterceptor=new U(this,t)}start(){this.linkInterceptor.start()}stop(){this.linkInterceptor.stop()}willFollowLinkToLocation(e,t,n){return this.delegate.willSubmitFormLinkToLocation(e,t,n)&&e.hasAttribute("data-turbo-method")}followedLinkToLocation(e,t){const n=document.createElement("form");for(const[e,r]of t.searchParams)n.append(Object.assign(document.createElement("input"),{type:"hidden",name:e,value:r}));const r=Object.assign(t,{search:""});n.setAttribute("data-turbo","true"),n.setAttribute("action",r.href),n.setAttribute("hidden","");const i=e.getAttribute("data-turbo-method");i&&n.setAttribute("method",i);const s=e.getAttribute("data-turbo-frame");s&&n.setAttribute("data-turbo-frame",s);const o=x(e);o&&n.setAttribute("data-turbo-action",o);const a=e.getAttribute("data-turbo-confirm");a&&n.setAttribute("data-turbo-confirm",a);e.hasAttribute("data-turbo-stream")&&n.setAttribute("data-turbo-stream",""),this.delegate.submittedFormLinkToLocation(e,t,n),document.body.appendChild(n),n.addEventListener("turbo:submit-end",(()=>n.remove()),{once:!0}),requestAnimationFrame((()=>n.requestSubmit()))}}class Y{static async preservingPermanentElements(e,t,n){const r=new this(e,t);r.enter(),await n(),r.leave()}constructor(e,t){this.delegate=e,this.permanentElementMap=t}enter(){for(const e in this.permanentElementMap){const[t,n]=this.permanentElementMap[e];this.delegate.enteringBardo(t,n),this.replaceNewPermanentElementWithPlaceholder(n)}}leave(){for(const e in this.permanentElementMap){const[t]=this.permanentElementMap[e];this.replaceCurrentPermanentElementWithClone(t),this.replacePlaceholderWithPermanentElement(t),this.delegate.leavingBardo(t)}}replaceNewPermanentElementWithPlaceholder(e){const t=function(e){const t=document.createElement("meta");return t.setAttribute("name","turbo-permanent-placeholder"),t.setAttribute("content",e.id),t}(e);e.replaceWith(t)}replaceCurrentPermanentElementWithClone(e){const t=e.cloneNode(!0);e.replaceWith(t)}replacePlaceholderWithPermanentElement(e){const t=this.getPlaceholderById(e.id);null==t||t.replaceWith(e)}getPlaceholderById(e){return this.placeholders.find((t=>t.content==e))}get placeholders(){return[...document.querySelectorAll("meta[name=turbo-permanent-placeholder][content]")]}}class K{constructor(e,t,n,r,i=!0){this.activeElement=null,this.currentSnapshot=e,this.newSnapshot=t,this.isPreview=r,this.willRender=i,this.renderElement=n,this.promise=new Promise(((e,t)=>this.resolvingFunctions={resolve:e,reject:t}))}get shouldRender(){return!0}get reloadReason(){}prepareToRender(){}finishRendering(){this.resolvingFunctions&&(this.resolvingFunctions.resolve(),delete this.resolvingFunctions)}async preservingPermanentElements(e){await Y.preservingPermanentElements(this,this.permanentElementMap,e)}focusFirstAutofocusableElement(){const e=this.connectedSnapshot.firstAutofocusableElement;(function(e){return e&&"function"==typeof e.focus})(e)&&e.focus()}enteringBardo(e){this.activeElement||e.contains(this.currentSnapshot.activeElement)&&(this.activeElement=this.currentSnapshot.activeElement)}leavingBardo(e){e.contains(this.activeElement)&&this.activeElement instanceof HTMLElement&&(this.activeElement.focus(),this.activeElement=null)}get connectedSnapshot(){return this.newSnapshot.isConnected?this.newSnapshot:this.currentSnapshot}get currentElement(){return this.currentSnapshot.element}get newElement(){return this.newSnapshot.element}get permanentElementMap(){return this.currentSnapshot.getPermanentElementMapForSnapshot(this.newSnapshot)}}class J extends K{static renderElement(e,t){var n;const r=document.createRange();r.selectNodeContents(e),r.deleteContents();const i=t,s=null===(n=i.ownerDocument)||void 0===n?void 0:n.createRange();s&&(s.selectNodeContents(i),e.appendChild(s.extractContents()))}constructor(e,t,n,r,i,s=!0){super(t,n,r,i,s),this.delegate=e}get shouldRender(){return!0}async render(){await _(),this.preservingPermanentElements((()=>{this.loadFrameElement()})),this.scrollFrameIntoView(),await _(),this.focusFirstAutofocusableElement(),await _(),this.activateScriptElements()}loadFrameElement(){this.delegate.willRenderFrame(this.currentElement,this.newElement),this.renderElement(this.currentElement,this.newElement)}scrollFrameIntoView(){if(this.currentElement.autoscroll||this.newElement.autoscroll){const n=this.currentElement.firstElementChild,r=(e=this.currentElement.getAttribute("data-autoscroll-block"),t="end","end"==e||"start"==e||"center"==e||"nearest"==e?e:t),i=function(e,t){return"auto"==e||"smooth"==e?e:t}(this.currentElement.getAttribute("data-autoscroll-behavior"),"auto");if(n)return n.scrollIntoView({block:r,behavior:i}),!0}var e,t;return!1}activateScriptElements(){for(const e of this.newScriptElements){const t=w(e);e.replaceWith(t)}}get newScriptElements(){return this.currentElement.querySelectorAll("script")}}class Z{static get defaultCSS(){return E` .turbo-progress-bar { position: fixed; display: block; top: 0; left: 0; height: 3px; background: #0076ff; z-index: 2147483647; transition: width ${Z.animationDuration}ms ease-out, opacity ${Z.animationDuration/2}ms ${Z.animationDuration/2}ms ease-in; transform: translate3d(0, 0, 0); } `}constructor(){this.hiding=!1,this.value=0,this.visible=!1,this.trickle=()=>{this.setValue(this.value+Math.random()/100)},this.stylesheetElement=this.createStylesheetElement(),this.progressElement=this.createProgressElement(),this.installStylesheetElement(),this.setValue(0)}show(){this.visible||(this.visible=!0,this.installProgressElement(),this.startTrickling())}hide(){this.visible&&!this.hiding&&(this.hiding=!0,this.fadeProgressElement((()=>{this.uninstallProgressElement(),this.stopTrickling(),this.visible=!1,this.hiding=!1})))}setValue(e){this.value=e,this.refresh()}installStylesheetElement(){document.head.insertBefore(this.stylesheetElement,document.head.firstChild)}installProgressElement(){this.progressElement.style.width="0",this.progressElement.style.opacity="1",document.documentElement.insertBefore(this.progressElement,document.body),this.refresh()}fadeProgressElement(e){this.progressElement.style.opacity="0",setTimeout(e,1.5*Z.animationDuration)}uninstallProgressElement(){this.progressElement.parentNode&&document.documentElement.removeChild(this.progressElement)}startTrickling(){this.trickleInterval||(this.trickleInterval=window.setInterval(this.trickle,Z.animationDuration))}stopTrickling(){window.clearInterval(this.trickleInterval),delete this.trickleInterval}refresh(){requestAnimationFrame((()=>{this.progressElement.style.width=10+90*this.value+"%"}))}createStylesheetElement(){const e=document.createElement("style");return e.type="text/css",e.textContent=Z.defaultCSS,this.cspNonce&&(e.nonce=this.cspNonce),e}createProgressElement(){const e=document.createElement("div");return e.className="turbo-progress-bar",e}get cspNonce(){return M("csp-nonce")}}Z.animationDuration=300;class G extends B{constructor(){super(...arguments),this.detailsByOuterHTML=this.children.filter((e=>!function(e){const t=e.localName;return"noscript"==t}(e))).map((e=>function(e){e.hasAttribute("nonce")&&e.setAttribute("nonce","");return e}(e))).reduce(((e,t)=>{const{outerHTML:n}=t,r=n in e?e[n]:{type:X(t),tracked:Q(t),elements:[]};return Object.assign(Object.assign({},e),{[n]:Object.assign(Object.assign({},r),{elements:[...r.elements,t]})})}),{})}get trackedElementSignature(){return Object.keys(this.detailsByOuterHTML).filter((e=>this.detailsByOuterHTML[e].tracked)).join("")}getScriptElementsNotInSnapshot(e){return this.getElementsMatchingTypeNotInSnapshot("script",e)}getStylesheetElementsNotInSnapshot(e){return this.getElementsMatchingTypeNotInSnapshot("stylesheet",e)}getElementsMatchingTypeNotInSnapshot(e,t){return Object.keys(this.detailsByOuterHTML).filter((e=>!(e in t.detailsByOuterHTML))).map((e=>this.detailsByOuterHTML[e])).filter((({type:t})=>t==e)).map((({elements:[e]})=>e))}get provisionalElements(){return Object.keys(this.detailsByOuterHTML).reduce(((e,t)=>{const{type:n,tracked:r,elements:i}=this.detailsByOuterHTML[t];return null!=n||r?i.length>1?[...e,...i.slice(1)]:e:[...e,...i]}),[])}getMetaValue(e){const t=this.findMetaElementByName(e);return t?t.getAttribute("content"):null}findMetaElementByName(e){return Object.keys(this.detailsByOuterHTML).reduce(((t,n)=>{const{elements:[r]}=this.detailsByOuterHTML[n];return function(e,t){const n=e.localName;return"meta"==n&&e.getAttribute("name")==t}(r,e)?r:t}),void 0)}}function X(e){return function(e){const t=e.localName;return"script"==t}(e)?"script":function(e){const t=e.localName;return"style"==t||"link"==t&&"stylesheet"==e.getAttribute("rel")}(e)?"stylesheet":void 0}function Q(e){return"reload"==e.getAttribute("data-turbo-track")}class ee extends B{static fromHTMLString(e=""){return this.fromDocument(S(e))}static fromElement(e){return this.fromDocument(e.ownerDocument)}static fromDocument({head:e,body:t}){return new this(t,new G(e))}constructor(e,t){super(e),this.headSnapshot=t}clone(){const e=this.element.cloneNode(!0),t=this.element.querySelectorAll("select"),n=e.querySelectorAll("select");for(const[e,r]of t.entries()){const t=n[e];for(const e of t.selectedOptions)e.selected=!1;for(const e of r.selectedOptions)t.options[e.index].selected=!0}for(const t of e.querySelectorAll('input[type="password"]'))t.value="";return new ee(e,this.headSnapshot)}get headElement(){return this.headSnapshot.element}get rootLocation(){var e;return l(null!==(e=this.getSetting("root"))&&void 0!==e?e:"/")}get cacheControlValue(){return this.getSetting("cache-control")}get isPreviewable(){return"no-preview"!=this.cacheControlValue}get isCacheable(){return"no-cache"!=this.cacheControlValue}get isVisitable(){return"reload"!=this.getSetting("visit-control")}getSetting(e){return this.headSnapshot.getMetaValue(`turbo-${e}`)}}!function(e){e.visitStart="visitStart",e.requestStart="requestStart",e.requestEnd="requestEnd",e.visitEnd="visitEnd"}(a||(a={})),function(e){e.initialized="initialized",e.started="started",e.canceled="canceled",e.failed="failed",e.completed="completed"}(c||(c={}));const te={action:"advance",historyChanged:!1,visitCachedSnapshot:()=>{},willRender:!0,updateHistory:!0,shouldCacheSnapshot:!0,acceptsStreamResponse:!1};var ne,re;!function(e){e[e.networkFailure=0]="networkFailure",e[e.timeoutFailure=-1]="timeoutFailure",e[e.contentTypeMismatch=-2]="contentTypeMismatch"}(ne||(ne={}));class ie{constructor(e,t,n,r={}){this.identifier=C(),this.timingMetrics={},this.followedRedirect=!1,this.historyChanged=!1,this.scrolled=!1,this.shouldCacheSnapshot=!0,this.acceptsStreamResponse=!1,this.snapshotCached=!1,this.state=c.initialized,this.delegate=e,this.location=t,this.restorationIdentifier=n||C();const{action:i,historyChanged:s,referrer:o,snapshot:a,snapshotHTML:u,response:l,visitCachedSnapshot:h,willRender:d,updateHistory:f,shouldCacheSnapshot:p,acceptsStreamResponse:m}=Object.assign(Object.assign({},te),r);this.action=i,this.historyChanged=s,this.referrer=o,this.snapshot=a,this.snapshotHTML=u,this.response=l,this.isSamePage=this.delegate.locationWithActionIsSamePage(this.location,this.action),this.visitCachedSnapshot=h,this.willRender=d,this.updateHistory=f,this.scrolled=!d,this.shouldCacheSnapshot=p,this.acceptsStreamResponse=m}get adapter(){return this.delegate.adapter}get view(){return this.delegate.view}get history(){return this.delegate.history}get restorationData(){return this.history.getRestorationDataForIdentifier(this.restorationIdentifier)}get silent(){return this.isSamePage}start(){this.state==c.initialized&&(this.recordTimingMetric(a.visitStart),this.state=c.started,this.adapter.visitStarted(this),this.delegate.visitStarted(this))}cancel(){this.state==c.started&&(this.request&&this.request.cancel(),this.cancelRender(),this.state=c.canceled)}complete(){this.state==c.started&&(this.recordTimingMetric(a.visitEnd),this.state=c.completed,this.followRedirect(),this.followedRedirect||(this.adapter.visitCompleted(this),this.delegate.visitCompleted(this)))}fail(){this.state==c.started&&(this.state=c.failed,this.adapter.visitFailed(this))}changeHistory(){var e;if(!this.historyChanged&&this.updateHistory){const t=R(this.location.href===(null===(e=this.referrer)||void 0===e?void 0:e.href)?"replace":this.action);this.history.update(t,this.location,this.restorationIdentifier),this.historyChanged=!0}}issueRequest(){this.hasPreloadedResponse()?this.simulateRequest():this.shouldIssueRequest()&&!this.request&&(this.request=new F(this,i.get,this.location),this.request.perform())}simulateRequest(){this.response&&(this.startRequest(),this.recordResponse(),this.finishRequest())}startRequest(){this.recordTimingMetric(a.requestStart),this.adapter.visitRequestStarted(this)}recordResponse(e=this.response){if(this.response=e,e){const{statusCode:t}=e;se(t)?this.adapter.visitRequestCompleted(this):this.adapter.visitRequestFailedWithStatusCode(this,t)}}finishRequest(){this.recordTimingMetric(a.requestEnd),this.adapter.visitRequestFinished(this)}loadResponse(){if(this.response){const{statusCode:e,responseHTML:t}=this.response;this.render((async()=>{this.shouldCacheSnapshot&&this.cacheSnapshot(),this.view.renderPromise&&await this.view.renderPromise,se(e)&&null!=t?(await this.view.renderPage(ee.fromHTMLString(t),!1,this.willRender,this),this.performScroll(),this.adapter.visitRendered(this),this.complete()):(await this.view.renderError(ee.fromHTMLString(t),this),this.adapter.visitRendered(this),this.fail())}))}}getCachedSnapshot(){const e=this.view.getCachedSnapshotForLocation(this.location)||this.getPreloadedSnapshot();if(e&&(!h(this.location)||e.hasAnchor(h(this.location)))&&("restore"==this.action||e.isPreviewable))return e}getPreloadedSnapshot(){if(this.snapshotHTML)return ee.fromHTMLString(this.snapshotHTML)}hasCachedSnapshot(){return null!=this.getCachedSnapshot()}loadCachedSnapshot(){const e=this.getCachedSnapshot();if(e){const t=this.shouldIssueRequest();this.render((async()=>{this.cacheSnapshot(),this.isSamePage?this.adapter.visitRendered(this):(this.view.renderPromise&&await this.view.renderPromise,await this.view.renderPage(e,t,this.willRender,this),this.performScroll(),this.adapter.visitRendered(this),t||this.complete())}))}}followRedirect(){var e;this.redirectedToLocation&&!this.followedRedirect&&(null===(e=this.response)||void 0===e?void 0:e.redirected)&&(this.adapter.visitProposedToLocation(this.redirectedToLocation,{action:"replace",response:this.response,shouldCacheSnapshot:!1,willRender:!1}),this.followedRedirect=!0)}goToSamePageAnchor(){this.isSamePage&&this.render((async()=>{this.cacheSnapshot(),this.performScroll(),this.changeHistory(),this.adapter.visitRendered(this)}))}prepareRequest(e){this.acceptsStreamResponse&&e.acceptResponseType(j.contentType)}requestStarted(){this.startRequest()}requestPreventedHandlingResponse(e,t){}async requestSucceededWithResponse(e,t){const n=await t.responseHTML,{redirected:r,statusCode:i}=t;null==n?this.recordResponse({statusCode:ne.contentTypeMismatch,redirected:r}):(this.redirectedToLocation=t.redirected?t.location:void 0,this.recordResponse({statusCode:i,responseHTML:n,redirected:r}))}async requestFailedWithResponse(e,t){const n=await t.responseHTML,{redirected:r,statusCode:i}=t;null==n?this.recordResponse({statusCode:ne.contentTypeMismatch,redirected:r}):this.recordResponse({statusCode:i,responseHTML:n,redirected:r})}requestErrored(e,t){this.recordResponse({statusCode:ne.networkFailure,redirected:!1})}requestFinished(){this.finishRequest()}performScroll(){this.scrolled||this.view.forceReloaded||("restore"==this.action?this.scrollToRestoredPosition()||this.scrollToAnchor()||this.view.scrollToTop():this.scrollToAnchor()||this.view.scrollToTop(),this.isSamePage&&this.delegate.visitScrolledToSamePageLocation(this.view.lastRenderedLocation,this.location),this.scrolled=!0)}scrollToRestoredPosition(){const{scrollPosition:e}=this.restorationData;if(e)return this.view.scrollToPosition(e),!0}scrollToAnchor(){const e=h(this.location);if(null!=e)return this.view.scrollToAnchor(e),!0}recordTimingMetric(e){this.timingMetrics[e]=(new Date).getTime()}getTimingMetrics(){return Object.assign({},this.timingMetrics)}getHistoryMethodForAction(e){switch(e){case"replace":return history.replaceState;case"advance":case"restore":return history.pushState}}hasPreloadedResponse(){return"object"==typeof this.response}shouldIssueRequest(){return!this.isSamePage&&("restore"==this.action?!this.hasCachedSnapshot():this.willRender)}cacheSnapshot(){this.snapshotCached||(this.view.cacheSnapshot(this.snapshot).then((e=>e&&this.visitCachedSnapshot(e))),this.snapshotCached=!0)}async render(e){this.cancelRender(),await new Promise((e=>{this.frame=requestAnimationFrame((()=>e()))})),await e(),delete this.frame}cancelRender(){this.frame&&(cancelAnimationFrame(this.frame),delete this.frame)}}function se(e){return e>=200&&e<300}class oe{constructor(e){this.progressBar=new Z,this.showProgressBar=()=>{this.progressBar.show()},this.session=e}visitProposedToLocation(e,t){this.navigator.startVisit(e,(null==t?void 0:t.restorationIdentifier)||C(),t)}visitStarted(e){this.location=e.location,e.loadCachedSnapshot(),e.issueRequest(),e.goToSamePageAnchor()}visitRequestStarted(e){this.progressBar.setValue(0),e.hasCachedSnapshot()||"restore"!=e.action?this.showVisitProgressBarAfterDelay():this.showProgressBar()}visitRequestCompleted(e){e.loadResponse()}visitRequestFailedWithStatusCode(e,t){switch(t){case ne.networkFailure:case ne.timeoutFailure:case ne.contentTypeMismatch:return this.reload({reason:"request_failed",context:{statusCode:t}});default:return e.loadResponse()}}visitRequestFinished(e){this.progressBar.setValue(1),this.hideVisitProgressBar()}visitCompleted(e){}pageInvalidated(e){this.reload(e)}visitFailed(e){}visitRendered(e){}formSubmissionStarted(e){this.progressBar.setValue(0),this.showFormProgressBarAfterDelay()}formSubmissionFinished(e){this.progressBar.setValue(1),this.hideFormProgressBar()}showVisitProgressBarAfterDelay(){this.visitProgressBarTimeout=window.setTimeout(this.showProgressBar,this.session.progressBarDelay)}hideVisitProgressBar(){this.progressBar.hide(),null!=this.visitProgressBarTimeout&&(window.clearTimeout(this.visitProgressBarTimeout),delete this.visitProgressBarTimeout)}showFormProgressBarAfterDelay(){null==this.formProgressBarTimeout&&(this.formProgressBarTimeout=window.setTimeout(this.showProgressBar,this.session.progressBarDelay))}hideFormProgressBar(){this.progressBar.hide(),null!=this.formProgressBarTimeout&&(window.clearTimeout(this.formProgressBarTimeout),delete this.formProgressBarTimeout)}reload(e){var t;y("turbo:reload",{detail:e}),window.location.href=(null===(t=this.location)||void 0===t?void 0:t.toString())||window.location.href}get navigator(){return this.session.navigator}}class ae{constructor(){this.selector="[data-turbo-temporary]",this.deprecatedSelector="[data-turbo-cache=false]",this.started=!1,this.removeTemporaryElements=e=>{for(const e of this.temporaryElements)e.remove()}}start(){this.started||(this.started=!0,addEventListener("turbo:before-cache",this.removeTemporaryElements,!1))}stop(){this.started&&(this.started=!1,removeEventListener("turbo:before-cache",this.removeTemporaryElements,!1))}get temporaryElements(){return[...document.querySelectorAll(this.selector),...this.temporaryElementsWithDeprecation]}get temporaryElementsWithDeprecation(){const e=document.querySelectorAll(this.deprecatedSelector);return e.length&&console.warn(`The ${this.deprecatedSelector} selector is deprecated and will be removed in a future version. Use ${this.selector} instead.`),[...e]}}class ce{constructor(e,t){this.session=e,this.element=t,this.linkInterceptor=new W(this,t),this.formSubmitObserver=new H(this,t)}start(){this.linkInterceptor.start(),this.formSubmitObserver.start()}stop(){this.linkInterceptor.stop(),this.formSubmitObserver.stop()}shouldInterceptLinkClick(e,t,n){return this.shouldRedirect(e)}linkClickIntercepted(e,t,n){const r=this.findFrameElement(e);r&&r.delegate.linkClickIntercepted(e,t,n)}willSubmitForm(e,t){return null==e.closest("turbo-frame")&&this.shouldSubmit(e,t)&&this.shouldRedirect(e,t)}formSubmitted(e,t){const n=this.findFrameElement(e,t);n&&n.delegate.formSubmitted(e,t)}shouldSubmit(e,t){var n;const r=d(e,t),i=this.element.ownerDocument.querySelector('meta[name="turbo-root"]'),s=l(null!==(n=null==i?void 0:i.content)&&void 0!==n?n:"/");return this.shouldRedirect(e,t)&&m(r,s)}shouldRedirect(e,t){if(e instanceof HTMLFormElement?this.session.submissionIsNavigatable(e,t):this.session.elementIsNavigatable(e)){const n=this.findFrameElement(e,t);return!!n&&n!=e.closest("turbo-frame")}return!1}findFrameElement(e,t){const n=(null==t?void 0:t.getAttribute("data-turbo-frame"))||e.getAttribute("data-turbo-frame");if(n&&"_top"!=n){const e=this.element.querySelector(`#${n}:not([disabled])`);if(e instanceof u)return e}}}class ue{constructor(e){this.restorationIdentifier=C(),this.restorationData={},this.started=!1,this.pageLoaded=!1,this.onPopState=e=>{if(this.shouldHandlePopState()){const{turbo:t}=e.state||{};if(t){this.location=new URL(window.location.href);const{restorationIdentifier:e}=t;this.restorationIdentifier=e,this.delegate.historyPoppedToLocationWithRestorationIdentifier(this.location,e)}}},this.onPageLoad=async e=>{await Promise.resolve(),this.pageLoaded=!0},this.delegate=e}start(){this.started||(addEventListener("popstate",this.onPopState,!1),addEventListener("load",this.onPageLoad,!1),this.started=!0,this.replace(new URL(window.location.href)))}stop(){this.started&&(removeEventListener("popstate",this.onPopState,!1),removeEventListener("load",this.onPageLoad,!1),this.started=!1)}push(e,t){this.update(history.pushState,e,t)}replace(e,t){this.update(history.replaceState,e,t)}update(e,t,n=C()){const r={turbo:{restorationIdentifier:n}};e.call(history,r,"",t.href),this.location=t,this.restorationIdentifier=n}getRestorationDataForIdentifier(e){return this.restorationData[e]||{}}updateRestorationData(e){const{restorationIdentifier:t}=this,n=this.restorationData[t];this.restorationData[t]=Object.assign(Object.assign({},n),e)}assumeControlOfScrollRestoration(){var e;this.previousScrollRestoration||(this.previousScrollRestoration=null!==(e=history.scrollRestoration)&&void 0!==e?e:"auto",history.scrollRestoration="manual")}relinquishControlOfScrollRestoration(){this.previousScrollRestoration&&(history.scrollRestoration=this.previousScrollRestoration,delete this.previousScrollRestoration)}shouldHandlePopState(){return this.pageIsLoaded()}pageIsLoaded(){return this.pageLoaded||"complete"==document.readyState}}class le{constructor(e){this.delegate=e}proposeVisit(e,t={}){this.delegate.allowsVisitingLocationWithAction(e,t.action)&&(m(e,this.view.snapshot.rootLocation)?this.delegate.visitProposedToLocation(e,t):window.location.href=e.toString())}startVisit(e,t,n={}){this.stop(),this.currentVisit=new ie(this,l(e),t,Object.assign({referrer:this.location},n)),this.currentVisit.start()}submitForm(e,t){this.stop(),this.formSubmission=new O(this,e,t,!0),this.formSubmission.start()}stop(){this.formSubmission&&(this.formSubmission.stop(),delete this.formSubmission),this.currentVisit&&(this.currentVisit.cancel(),delete this.currentVisit)}get adapter(){return this.delegate.adapter}get view(){return this.delegate.view}get history(){return this.delegate.history}formSubmissionStarted(e){"function"==typeof this.adapter.formSubmissionStarted&&this.adapter.formSubmissionStarted(e)}async formSubmissionSucceededWithResponse(e,t){if(e==this.formSubmission){const n=await t.responseHTML;if(n){const r=e.isSafe;r||this.view.clearSnapshotCache();const{statusCode:i,redirected:s}=t,o={action:this.getActionForFormSubmission(e),shouldCacheSnapshot:r,response:{statusCode:i,responseHTML:n,redirected:s}};this.proposeVisit(t.location,o)}}}async formSubmissionFailedWithResponse(e,t){const n=await t.responseHTML;if(n){const e=ee.fromHTMLString(n);t.serverError?await this.view.renderError(e,this.currentVisit):await this.view.renderPage(e,!1,!0,this.currentVisit),this.view.scrollToTop(),this.view.clearSnapshotCache()}}formSubmissionErrored(e,t){console.error(t)}formSubmissionFinished(e){"function"==typeof this.adapter.formSubmissionFinished&&this.adapter.formSubmissionFinished(e)}visitStarted(e){this.delegate.visitStarted(e)}visitCompleted(e){this.delegate.visitCompleted(e)}locationWithActionIsSamePage(e,t){const n=h(e),r=h(this.view.lastRenderedLocation),i="restore"===t&&void 0===n;return"replace"!==t&&g(e)===g(this.view.lastRenderedLocation)&&(i||null!=n&&n!==r)}visitScrolledToSamePageLocation(e,t){this.delegate.visitScrolledToSamePageLocation(e,t)}get location(){return this.history.location}get restorationIdentifier(){return this.history.restorationIdentifier}getActionForFormSubmission({submitter:e,formElement:t}){return x(e,t)||"advance"}}!function(e){e[e.initial=0]="initial",e[e.loading=1]="loading",e[e.interactive=2]="interactive",e[e.complete=3]="complete"}(re||(re={}));class he{constructor(e){this.stage=re.initial,this.started=!1,this.interpretReadyState=()=>{const{readyState:e}=this;"interactive"==e?this.pageIsInteractive():"complete"==e&&this.pageIsComplete()},this.pageWillUnload=()=>{this.delegate.pageWillUnload()},this.delegate=e}start(){this.started||(this.stage==re.initial&&(this.stage=re.loading),document.addEventListener("readystatechange",this.interpretReadyState,!1),addEventListener("pagehide",this.pageWillUnload,!1),this.started=!0)}stop(){this.started&&(document.removeEventListener("readystatechange",this.interpretReadyState,!1),removeEventListener("pagehide",this.pageWillUnload,!1),this.started=!1)}pageIsInteractive(){this.stage==re.loading&&(this.stage=re.interactive,this.delegate.pageBecameInteractive())}pageIsComplete(){this.pageIsInteractive(),this.stage==re.interactive&&(this.stage=re.complete,this.delegate.pageLoaded())}get readyState(){return document.readyState}}class de{constructor(e){this.started=!1,this.onScroll=()=>{this.updatePosition({x:window.pageXOffset,y:window.pageYOffset})},this.delegate=e}start(){this.started||(addEventListener("scroll",this.onScroll,!1),this.onScroll(),this.started=!0)}stop(){this.started&&(removeEventListener("scroll",this.onScroll,!1),this.started=!1)}updatePosition(e){this.delegate.scrollPositionChanged(e)}}class fe{render({fragment:e}){Y.preservingPermanentElements(this,function(e){const t=N(document.documentElement),n={};for(const r of t){const{id:t}=r;for(const i of e.querySelectorAll("turbo-stream")){const e=q(i.templateElement.content,t);e&&(n[t]=[r,e])}}return n}(e),(()=>document.documentElement.appendChild(e)))}enteringBardo(e,t){t.replaceWith(e.cloneNode(!0))}leavingBardo(){}}class pe{constructor(e){this.sources=new Set,this.started=!1,this.inspectFetchResponse=e=>{const t=function(e){var t;const n=null===(t=e.detail)||void 0===t?void 0:t.fetchResponse;if(n instanceof b)return n}(e);t&&function(e){var t;const n=null!==(t=e.contentType)&&void 0!==t?t:"";return n.startsWith(j.contentType)}(t)&&(e.preventDefault(),this.receiveMessageResponse(t))},this.receiveMessageEvent=e=>{this.started&&"string"==typeof e.data&&this.receiveMessageHTML(e.data)},this.delegate=e}start(){this.started||(this.started=!0,addEventListener("turbo:before-fetch-response",this.inspectFetchResponse,!1))}stop(){this.started&&(this.started=!1,removeEventListener("turbo:before-fetch-response",this.inspectFetchResponse,!1))}connectStreamSource(e){this.streamSourceIsConnected(e)||(this.sources.add(e),e.addEventListener("message",this.receiveMessageEvent,!1))}disconnectStreamSource(e){this.streamSourceIsConnected(e)&&(this.sources.delete(e),e.removeEventListener("message",this.receiveMessageEvent,!1))}streamSourceIsConnected(e){return this.sources.has(e)}async receiveMessageResponse(e){const t=await e.responseHTML;t&&this.receiveMessageHTML(t)}receiveMessageHTML(e){this.delegate.receivedMessageFromStream(j.wrap(e))}}class me extends K{static renderElement(e,t){const{documentElement:n,body:r}=document;n.replaceChild(t,r)}async render(){this.replaceHeadAndBody(),this.activateScriptElements()}replaceHeadAndBody(){const{documentElement:e,head:t}=document;e.replaceChild(this.newHead,t),this.renderElement(this.currentElement,this.newElement)}activateScriptElements(){for(const e of this.scriptElements){const t=e.parentNode;if(t){const n=w(e);t.replaceChild(n,e)}}}get newHead(){return this.newSnapshot.headSnapshot.element}get scriptElements(){return document.documentElement.querySelectorAll("script")}}class ge extends K{static renderElement(e,t){document.body&&t instanceof HTMLBodyElement?document.body.replaceWith(t):document.documentElement.appendChild(t)}get shouldRender(){return this.newSnapshot.isVisitable&&this.trackedElementsAreIdentical}get reloadReason(){return this.newSnapshot.isVisitable?this.trackedElementsAreIdentical?void 0:{reason:"tracked_element_mismatch"}:{reason:"turbo_visit_control_is_reload"}}async prepareToRender(){await this.mergeHead()}async render(){this.willRender&&await this.replaceBody()}finishRendering(){super.finishRendering(),this.isPreview||this.focusFirstAutofocusableElement()}get currentHeadSnapshot(){return this.currentSnapshot.headSnapshot}get newHeadSnapshot(){return this.newSnapshot.headSnapshot}get newElement(){return this.newSnapshot.element}async mergeHead(){const e=this.mergeProvisionalElements(),t=this.copyNewHeadStylesheetElements();this.copyNewHeadScriptElements(),await e,await t}async replaceBody(){await this.preservingPermanentElements((async()=>{this.activateNewBody(),await this.assignNewBody()}))}get trackedElementsAreIdentical(){return this.currentHeadSnapshot.trackedElementSignature==this.newHeadSnapshot.trackedElementSignature}async copyNewHeadStylesheetElements(){const e=[];for(const t of this.newHeadStylesheetElements)e.push(A(t)),document.head.appendChild(t);await Promise.all(e)}copyNewHeadScriptElements(){for(const e of this.newHeadScriptElements)document.head.appendChild(w(e))}async mergeProvisionalElements(){const e=[...this.newHeadProvisionalElements];for(const t of this.currentHeadProvisionalElements)this.isCurrentElementInElementList(t,e)||document.head.removeChild(t);for(const t of e)document.head.appendChild(t)}isCurrentElementInElementList(e,t){for(const[n,r]of t.entries()){if("TITLE"==e.tagName){if("TITLE"!=r.tagName)continue;if(e.innerHTML==r.innerHTML)return t.splice(n,1),!0}if(r.isEqualNode(e))return t.splice(n,1),!0}return!1}removeCurrentHeadProvisionalElements(){for(const e of this.currentHeadProvisionalElements)document.head.removeChild(e)}copyNewHeadProvisionalElements(){for(const e of this.newHeadProvisionalElements)document.head.appendChild(e)}activateNewBody(){document.adoptNode(this.newElement),this.activateNewBodyScriptElements()}activateNewBodyScriptElements(){for(const e of this.newBodyScriptElements){const t=w(e);e.replaceWith(t)}}async assignNewBody(){await this.renderElement(this.currentElement,this.newElement)}get newHeadStylesheetElements(){return this.newHeadSnapshot.getStylesheetElementsNotInSnapshot(this.currentHeadSnapshot)}get newHeadScriptElements(){return this.newHeadSnapshot.getScriptElementsNotInSnapshot(this.currentHeadSnapshot)}get currentHeadProvisionalElements(){return this.currentHeadSnapshot.provisionalElements}get newHeadProvisionalElements(){return this.newHeadSnapshot.provisionalElements}get newBodyScriptElements(){return this.newElement.querySelectorAll("script")}}class ve{constructor(e){this.keys=[],this.snapshots={},this.size=e}has(e){return v(e)in this.snapshots}get(e){if(this.has(e)){const t=this.read(e);return this.touch(e),t}}put(e,t){return this.write(e,t),this.touch(e),t}clear(){this.snapshots={}}read(e){return this.snapshots[v(e)]}write(e,t){this.snapshots[v(e)]=t}touch(e){const t=v(e),n=this.keys.indexOf(t);n>-1&&this.keys.splice(n,1),this.keys.unshift(t),this.trim()}trim(){for(const e of this.keys.splice(this.size))delete this.snapshots[e]}}class be extends D{constructor(){super(...arguments),this.snapshotCache=new ve(10),this.lastRenderedLocation=new URL(location.href),this.forceReloaded=!1}renderPage(e,t=!1,n=!0,r){const i=new ge(this.snapshot,e,ge.renderElement,t,n);return i.shouldRender?null==r||r.changeHistory():this.forceReloaded=!0,this.render(i)}renderError(e,t){null==t||t.changeHistory();const n=new me(this.snapshot,e,me.renderElement,!1);return this.render(n)}clearSnapshotCache(){this.snapshotCache.clear()}async cacheSnapshot(e=this.snapshot){if(e.isCacheable){this.delegate.viewWillCacheSnapshot();const{lastRenderedLocation:t}=this;await new Promise((e=>setTimeout((()=>e()),0)));const n=e.clone();return this.snapshotCache.put(t,n),n}}getCachedSnapshotForLocation(e){return this.snapshotCache.get(e)}get snapshot(){return ee.fromElement(this.element)}}class we{constructor(e){this.selector="a[data-turbo-preload]",this.delegate=e}get snapshotCache(){return this.delegate.navigator.view.snapshotCache}start(){if("loading"===document.readyState)return document.addEventListener("DOMContentLoaded",(()=>{this.preloadOnLoadLinksForView(document.body)}));this.preloadOnLoadLinksForView(document.body)}preloadOnLoadLinksForView(e){for(const t of e.querySelectorAll(this.selector))this.preloadURL(t)}async preloadURL(e){const t=new URL(e.href);if(!this.snapshotCache.has(t))try{const e=await fetch(t.toString(),{headers:{"VND.PREFETCH":"true",Accept:"text/html"}}),n=await e.text(),r=ee.fromHTMLString(n);this.snapshotCache.put(t,r)}catch(e){}}}function ye(e){Object.defineProperties(e,_e)}const _e={absoluteURL:{get(){return this.toString()}}};const Se={after(){this.targetElements.forEach((e=>{var t;return null===(t=e.parentElement)||void 0===t?void 0:t.insertBefore(this.templateContent,e.nextSibling)}))},append(){this.removeDuplicateTargetChildren(),this.targetElements.forEach((e=>e.append(this.templateContent)))},before(){this.targetElements.forEach((e=>{var t;return null===(t=e.parentElement)||void 0===t?void 0:t.insertBefore(this.templateContent,e)}))},prepend(){this.removeDuplicateTargetChildren(),this.targetElements.forEach((e=>e.prepend(this.templateContent)))},remove(){this.targetElements.forEach((e=>e.remove()))},replace(){this.targetElements.forEach((e=>e.replaceWith(this.templateContent)))},update(){this.targetElements.forEach((e=>{e.innerHTML="",e.append(this.templateContent)}))}},Ee=new class{constructor(){this.navigator=new le(this),this.history=new ue(this),this.preloader=new we(this),this.view=new be(this,document.documentElement),this.adapter=new oe(this),this.pageObserver=new he(this),this.cacheObserver=new ae,this.linkClickObserver=new U(this,window),this.formSubmitObserver=new H(this,document),this.scrollObserver=new de(this),this.streamObserver=new pe(this),this.formLinkClickObserver=new z(this,document.documentElement),this.frameRedirector=new ce(this,document.documentElement),this.streamMessageRenderer=new fe,this.drive=!0,this.enabled=!0,this.progressBarDelay=500,this.started=!1,this.formMode="on"}start(){this.started||(this.pageObserver.start(),this.cacheObserver.start(),this.formLinkClickObserver.start(),this.linkClickObserver.start(),this.formSubmitObserver.start(),this.scrollObserver.start(),this.streamObserver.start(),this.frameRedirector.start(),this.history.start(),this.preloader.start(),this.started=!0,this.enabled=!0)}disable(){this.enabled=!1}stop(){this.started&&(this.pageObserver.stop(),this.cacheObserver.stop(),this.formLinkClickObserver.stop(),this.linkClickObserver.stop(),this.formSubmitObserver.stop(),this.scrollObserver.stop(),this.streamObserver.stop(),this.frameRedirector.stop(),this.history.stop(),this.started=!1)}registerAdapter(e){this.adapter=e}visit(e,t={}){const n=t.frame?document.getElementById(t.frame):null;n instanceof u?(n.src=e.toString(),n.loaded):this.navigator.proposeVisit(l(e),t)}connectStreamSource(e){this.streamObserver.connectStreamSource(e)}disconnectStreamSource(e){this.streamObserver.disconnectStreamSource(e)}renderStreamMessage(e){this.streamMessageRenderer.render(j.wrap(e))}clearCache(){this.view.clearSnapshotCache()}setProgressBarDelay(e){this.progressBarDelay=e}setFormMode(e){this.formMode=e}get location(){return this.history.location}get restorationIdentifier(){return this.history.restorationIdentifier}historyPoppedToLocationWithRestorationIdentifier(e,t){this.enabled?this.navigator.startVisit(e,t,{action:"restore",historyChanged:!0}):this.adapter.pageInvalidated({reason:"turbo_disabled"})}scrollPositionChanged(e){this.history.updateRestorationData({scrollPosition:e})}willSubmitFormLinkToLocation(e,t){return this.elementIsNavigatable(e)&&m(t,this.snapshot.rootLocation)}submittedFormLinkToLocation(){}willFollowLinkToLocation(e,t,n){return this.elementIsNavigatable(e)&&m(t,this.snapshot.rootLocation)&&this.applicationAllowsFollowingLinkToLocation(e,t,n)}followedLinkToLocation(e,t){const n=this.getActionForLink(e),r=e.hasAttribute("data-turbo-stream");this.visit(t.href,{action:n,acceptsStreamResponse:r})}allowsVisitingLocationWithAction(e,t){return this.locationWithActionIsSamePage(e,t)||this.applicationAllowsVisitingLocation(e)}visitProposedToLocation(e,t){ye(e),this.adapter.visitProposedToLocation(e,t)}visitStarted(e){e.acceptsStreamResponse||k(document.documentElement),ye(e.location),e.silent||this.notifyApplicationAfterVisitingLocation(e.location,e.action)}visitCompleted(e){T(document.documentElement),this.notifyApplicationAfterPageLoad(e.getTimingMetrics())}locationWithActionIsSamePage(e,t){return this.navigator.locationWithActionIsSamePage(e,t)}visitScrolledToSamePageLocation(e,t){this.notifyApplicationAfterVisitingSamePageLocation(e,t)}willSubmitForm(e,t){const n=d(e,t);return this.submissionIsNavigatable(e,t)&&m(l(n),this.snapshot.rootLocation)}formSubmitted(e,t){this.navigator.submitForm(e,t)}pageBecameInteractive(){this.view.lastRenderedLocation=this.location,this.notifyApplicationAfterPageLoad()}pageLoaded(){this.history.assumeControlOfScrollRestoration()}pageWillUnload(){this.history.relinquishControlOfScrollRestoration()}receivedMessageFromStream(e){this.renderStreamMessage(e)}viewWillCacheSnapshot(){var e;(null===(e=this.navigator.currentVisit)||void 0===e?void 0:e.silent)||this.notifyApplicationBeforeCachingSnapshot()}allowsImmediateRender({element:e},t){const n=this.notifyApplicationBeforeRender(e,t),{defaultPrevented:r,detail:{render:i}}=n;return this.view.renderer&&i&&(this.view.renderer.renderElement=i),!r}viewRenderedSnapshot(e,t){this.view.lastRenderedLocation=this.history.location,this.notifyApplicationAfterRender()}preloadOnLoadLinksForView(e){this.preloader.preloadOnLoadLinksForView(e)}viewInvalidated(e){this.adapter.pageInvalidated(e)}frameLoaded(e){this.notifyApplicationAfterFrameLoad(e)}frameRendered(e,t){this.notifyApplicationAfterFrameRender(e,t)}applicationAllowsFollowingLinkToLocation(e,t,n){return!this.notifyApplicationAfterClickingLinkToLocation(e,t,n).defaultPrevented}applicationAllowsVisitingLocation(e){return!this.notifyApplicationBeforeVisitingLocation(e).defaultPrevented}notifyApplicationAfterClickingLinkToLocation(e,t,n){return y("turbo:click",{target:e,detail:{url:t.href,originalEvent:n},cancelable:!0})}notifyApplicationBeforeVisitingLocation(e){return y("turbo:before-visit",{detail:{url:e.href},cancelable:!0})}notifyApplicationAfterVisitingLocation(e,t){return y("turbo:visit",{detail:{url:e.href,action:t}})}notifyApplicationBeforeCachingSnapshot(){return y("turbo:before-cache")}notifyApplicationBeforeRender(e,t){return y("turbo:before-render",{detail:Object.assign({newBody:e},t),cancelable:!0})}notifyApplicationAfterRender(){return y("turbo:render")}notifyApplicationAfterPageLoad(e={}){return y("turbo:load",{detail:{url:this.location.href,timing:e}})}notifyApplicationAfterVisitingSamePageLocation(e,t){dispatchEvent(new HashChangeEvent("hashchange",{oldURL:e.toString(),newURL:t.toString()}))}notifyApplicationAfterFrameLoad(e){return y("turbo:frame-load",{target:e})}notifyApplicationAfterFrameRender(e,t){return y("turbo:frame-render",{detail:{fetchResponse:e},target:t,cancelable:!0})}submissionIsNavigatable(e,t){if("off"==this.formMode)return!1;{const n=!t||this.elementIsNavigatable(t);return"optin"==this.formMode?n&&null!=e.closest('[data-turbo="true"]'):n&&this.elementIsNavigatable(e)}}elementIsNavigatable(e){const t=$(e,"[data-turbo]"),n=$(e,"turbo-frame");return this.drive||n?!t||"false"!=t.getAttribute("data-turbo"):!!t&&"true"==t.getAttribute("data-turbo")}getActionForLink(e){return x(e)||"advance"}get snapshot(){return this.view.snapshot}},Ce=new class{constructor(e){this.session=e}clear(){this.session.clearCache()}resetCacheControl(){this.setCacheControl("")}exemptPageFromCache(){this.setCacheControl("no-cache")}exemptPageFromPreview(){this.setCacheControl("no-preview")}setCacheControl(e){!function(e,t){let n=P(e);n||(n=document.createElement("meta"),n.setAttribute("name",e),document.head.appendChild(n)),n.setAttribute("content",t)}("turbo-cache-control",e)}}(Ee),{navigator:Le}=Ee;function ke(){Ee.start()}function Te(e){Ee.registerAdapter(e)}function Ae(e,t){Ee.visit(e,t)}function Re(e){Ee.connectStreamSource(e)}function xe(e){Ee.disconnectStreamSource(e)}function Pe(e){Ee.renderStreamMessage(e)}function Me(){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.`"),Ee.clearCache()}function $e(e){Ee.setProgressBarDelay(e)}function Fe(e){O.confirmMethod=e}function Ie(e){Ee.setFormMode(e)}var je=Object.freeze({__proto__:null,navigator:Le,session:Ee,cache:Ce,PageRenderer:ge,PageSnapshot:ee,FrameRenderer:J,start:ke,registerAdapter:Te,visit:Ae,connectStreamSource:Re,disconnectStreamSource:xe,renderStreamMessage:Pe,clearCache:Me,setProgressBarDelay:$e,setConfirmMethod:Fe,setFormMode:Ie,StreamActions:Se});class Oe extends Error{}function Be(e){if(null!=e){const t=document.getElementById(e);if(t instanceof u)return t}}function qe(e,t){if(e){const r=e.getAttribute("src");if(null!=r&&null!=t&&(n=t,l(r).href==l(n).href))throw new Error(`Matching element has a source URL which references itself`);if(e.ownerDocument!==document&&(e=document.importNode(e,!0)),e instanceof u)return e.connectedCallback(),e.disconnectedCallback(),e}var n}class Ne extends HTMLElement{static async renderElement(e){await e.performAction()}async connectedCallback(){try{await this.render()}catch(e){console.error(e)}finally{this.disconnect()}}async render(){var e;return null!==(e=this.renderPromise)&&void 0!==e?e:this.renderPromise=(async()=>{const e=this.beforeRenderEvent;this.dispatchEvent(e)&&(await _(),await e.detail.render(this))})()}disconnect(){try{this.remove()}catch(e){}}removeDuplicateTargetChildren(){this.duplicateChildren.forEach((e=>e.remove()))}get duplicateChildren(){var e;const t=this.targetElements.flatMap((e=>[...e.children])).filter((e=>!!e.id)),n=[...(null===(e=this.templateContent)||void 0===e?void 0:e.children)||[]].filter((e=>!!e.id)).map((e=>e.id));return t.filter((e=>n.includes(e.id)))}get performAction(){if(this.action){const e=Se[this.action];if(e)return e;this.raise("unknown action")}this.raise("action attribute is missing")}get targetElements(){return this.target?this.targetElementsById:this.targets?this.targetElementsByQuery:void this.raise("target or targets attribute is missing")}get templateContent(){return this.templateElement.content.cloneNode(!0)}get templateElement(){if(null===this.firstElementChild){const e=this.ownerDocument.createElement("template");return this.appendChild(e),e}if(this.firstElementChild instanceof HTMLTemplateElement)return this.firstElementChild;this.raise("first child element must be a