83 lines
146 KiB
JavaScript
83 lines
146 KiB
JavaScript
|
(function(){var e=t();function t(){if(typeof window.CustomEvent=="function")return window.CustomEvent;function r(s,o){o=o||{bubbles:!1,cancelable:!1,detail:void 0};var a=document.createEvent("CustomEvent");return a.initCustomEvent(s,o.bubbles,o.cancelable,o.detail),a}return r.prototype=window.Event.prototype,r}function i(r,s){var o=document.createElement("input");return o.type="hidden",o.name=r,o.value=s,o}function n(r,s){var o=r.getAttribute("data-to"),a=i("_method",r.getAttribute("data-method")),l=i("_csrf_token",r.getAttribute("data-csrf")),c=document.createElement("form"),d=r.getAttribute("target");c.method=r.getAttribute("data-method")==="get"?"get":"post",c.action=o,c.style.display="hidden",d?c.target=d:s&&(c.target="_blank"),c.appendChild(l),c.appendChild(a),document.body.appendChild(c),c.submit()}window.addEventListener("click",function(r){var s=r.target;if(!r.defaultPrevented)for(;s&&s.getAttribute;){var o=new e("phoenix.link.click",{bubbles:!0,cancelable:!0});if(!s.dispatchEvent(o))return r.preventDefault(),r.stopImmediatePropagation(),!1;if(s.getAttribute("data-method"))return n(s,r.metaKey||r.shiftKey),r.preventDefault(),!1;s=s.parentNode}},!1),window.addEventListener("phoenix.link.click",function(r){var s=r.target.getAttribute("data-confirm");s&&!window.confirm(s)&&r.preventDefault()},!1)})();var tt=e=>typeof e=="function"?e:function(){return e},nr=typeof self<"u"?self:null,et=typeof window<"u"?window:null,it=nr||et||it,rr="2.0.0",_e={connecting:0,open:1,closing:2,closed:3},sr=1e4,or=1e3,se={closed:"closed",errored:"errored",joined:"joined",joining:"joining",leaving:"leaving"},we={close:"phx_close",error:"phx_error",join:"phx_join",reply:"phx_reply",leave:"phx_leave"},ii={longpoll:"longpoll",websocket:"websocket"},ar={complete:4},ut=class{constructor(e,t,i,n){this.channel=e,this.event=t,this.payload=i||function(){return{}},this.receivedResp=null,this.timeout=n,this.timeoutTimer=null,this.recHooks=[],this.sent=!1}resend(e){this.timeout=e,this.reset(),this.send()}send(){this.hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload(),ref:this.ref,join_ref:this.channel.joinRef()}))}receive(e,t){return this.hasReceived(e)&&t(this.receivedResp.response),this.recHooks.push({status:e,callback:t}),this}reset(){this.cancelRefEvent(),this.ref=null,this.refEvent=null,this.receivedResp=null,this.sent=!1}matchReceive({status:e,response:t,_ref:i}){this.recHooks.filter(n=>n.status===e).forEach(n=>n.callback(t))}cancelRefEvent(){!this.refEvent||this.channel.off(this.refEvent)}cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=null}startTimeout(){this.timeoutTimer&&this.cancelTimeout(),this.ref=this.channel.socket.makeRef(),this.refEvent=this.channel.replyEventName(this.ref),this.channel.on(this.refEvent,e=>{this.cancelRefEvent(),this.cancelTimeout(),this.receivedResp=e,this.matchReceive(e)}),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}hasReceived(e){return this.receivedResp&&this.receivedResp.status===e}trigger(e,t){this.channel.trigger(this.refEvent,{status:e,response:t})}},_n=class{constructor(e,t){this.callback=e,this.timerCalc=t,this.timer=null,this.tries=0}reset(){this.tries=0,clearTimeout(this.timer)}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}},lr=class{constructor(e,t,i){this.state=se.closed,this.topic=e,this.params=tt(t||{}),this.socket=i,this.bindings=[],this.bindingRef=0,this.timeout=this.socket.timeout,this.joinedOnce=!1,this.joinPush=new ut(this,we.join,this.params,this.timeout),this.pushBuffer=[],this.stateChangeRefs=[],this.rejoinTimer=new _n(()=>{this.socket.isConnected()&&this.rejoin()},this.socket.rejoinAfterMs),this.stateChangeRefs.push(this.socket.onError(()=>this.rejoinTimer.reset())),this.stateChangeRefs.push(this.socket.onOpen(()=>{this.rejoinTimer.reset(),this.isErrored()&&this.rejoin()})),this.joinPush.receive("ok",()=>{this.state=se.joined,this.rejoinTimer.reset(),this
|
||
|
* @license MIT
|
||
|
* topbar 1.0.0, 2021-01-06
|
||
|
* http://buunguyen.github.io/topbar
|
||
|
* Copyright (c) 2021 Buu Nguyen
|
||
|
*/(function(e){(function(t,i){(function(){for(var h=0,g=["ms","moz","webkit","o"],u=0;u<g.length&&!t.requestAnimationFrame;++u)t.requestAnimationFrame=t[g[u]+"RequestAnimationFrame"],t.cancelAnimationFrame=t[g[u]+"CancelAnimationFrame"]||t[g[u]+"CancelRequestAnimationFrame"];t.requestAnimationFrame||(t.requestAnimationFrame=function(b,m){var y=new Date().getTime(),S=Math.max(0,16-(y-h)),N=t.setTimeout(function(){b(y+S)},S);return h=y+S,N}),t.cancelAnimationFrame||(t.cancelAnimationFrame=function(b){clearTimeout(b)})})();function n(){r.width=t.innerWidth,r.height=5*c.barThickness;var h=r.getContext("2d");h.shadowBlur=c.shadowBlur,h.shadowColor=c.shadowColor;var g,u=h.createLinearGradient(0,0,r.width,0);for(g in c.barColors)u.addColorStop(g,c.barColors[g]);h.lineWidth=c.barThickness,h.beginPath(),h.moveTo(0,c.barThickness/2),h.lineTo(Math.ceil(a*r.width),c.barThickness/2),h.strokeStyle=u,h.stroke()}var r,s,o,a,l,c={autoRun:!0,barThickness:3,barColors:{0:"rgba(26, 188, 156, .9)",".25":"rgba(52, 152, 219, .9)",".50":"rgba(241, 196, 15, .9)",".75":"rgba(230, 126, 34, .9)","1.0":"rgba(211, 84, 0, .9)"},shadowBlur:10,shadowColor:"rgba(0, 0, 0, .6)",className:null},d={config:function(h){for(var g in h)c.hasOwnProperty(g)&&(c[g]=h[g])},show:function(){var h,g,u;l||(l=!0,o!==null&&t.cancelAnimationFrame(o),r||((u=(r=i.createElement("canvas")).style).position="fixed",u.top=u.left=u.right=u.margin=u.padding=0,u.zIndex=100001,u.display="none",c.className&&r.classList.add(c.className),i.body.appendChild(r),h="resize",g=n,(u=t).addEventListener?u.addEventListener(h,g,!1):u.attachEvent?u.attachEvent("on"+h,g):u["on"+h]=g),r.style.opacity=1,r.style.display="block",d.progress(0),c.autoRun&&function b(){s=t.requestAnimationFrame(b),d.progress("+"+.05*Math.pow(1-Math.sqrt(a),2))}())},progress:function(h){return h===void 0||(typeof h=="string"&&(h=(0<=h.indexOf("+")||0<=h.indexOf("-")?a:0)+parseFloat(h)),a=1<h?1:h,n()),a},hide:function(){l&&(l=!1,s!=null&&(t.cancelAnimationFrame(s),s=null),function h(){return 1<=d.progress("+.1")&&(r.style.opacity-=.05,r.style.opacity<=.05)?(r.style.display="none",void(o=null)):void(o=t.requestAnimationFrame(h))}())}};e.exports=d}).call(Z,window,document)})(yn);const ui=yn.exports;var En="consecutive-reloads",dr=10,ur=5e3,fr=1e4,pr=3e4,An=["phx-click-loading","phx-change-loading","phx-submit-loading","phx-keydown-loading","phx-keyup-loading","phx-blur-loading","phx-focus-loading"],ae="data-phx-component",$t="data-phx-link",gr="track-static",mr="data-phx-link-state",be="data-phx-ref",Re="data-phx-ref-src",wn="track-uploads",Ie="data-phx-upload-ref",fi="data-phx-preflighted-refs",vr="data-phx-done-refs",xi="drop-target",ni="data-phx-active-refs",ri="phx:live-file:updated",si="data-phx-skip",Ri="data-phx-prune",Ni="page-loading",Ii="phx-connected",jt="phx-loading",Mi="phx-no-feedback",Hi="phx-error",je="data-phx-parent-id",pi="data-phx-main",at="data-phx-root-id",br="trigger-action",oi="feedback-for",Cn="phx-has-focused",_r=["text","textarea","number","email","password","search","tel","url","date","time","datetime-local","color","range"],Tn=["checkbox","radio"],Sn="phx-has-submitted",De="data-phx-session",Be=`[${De}]`,$i="data-phx-sticky",nt="data-phx-static",Bt="data-phx-readonly",pt="data-phx-disabled",ai="disable-with",gt="data-phx-disable-with-restore",ze="hook",yr="debounce",Er="throttle",li="update",Ar="key",ge="phxPrivate",ji="auto-recover",mt="phx:live-socket:debug",Ft="phx:live-socket:profiling",Ut="phx:live-socket:latency-sim",wr="progress",Cr=1,Tr=200,Sr="phx-",kr=3e4,Ye="debounce-trigger",vt="throttled",Bi="debounce-prev-key",Or={debounce:300,throttle:300},Fi="d",me="s",oe="c",Ui="e",Vi="r",Wi="t",Dr="p",Lr=class{constructor(e,t,i){this.liveSocket=i,this.entry=e,this.offset=0,this.chunkSize=t,this.chunkTimer=null,this.uploadChannel=i.channel(`lvu:${e.ref}`,{token:e.metadata()})}error(e){clearTimeout(this.chunkTimer),this.uploadChannel.leave(),this.entry.error(e)}upload(){this.uploadChannel.onError(e=>this.error(e)),this.uploadChannel.join().receive("ok",e=>this.readNextChunk()).receiv
|
||
|
|
||
|
removing illegal node: "${(n.outerHTML||n.nodeValue).trim()}"
|
||
|
|
||
|
`),i.push(n))}),i.forEach(n=>n.remove())}},replaceRootContainer(e,t,i){let n=new Set(["id",De,nt,pi,at]);if(e.tagName.toLowerCase()===t.toLowerCase())return Array.from(e.attributes).filter(r=>!n.has(r.name.toLowerCase())).forEach(r=>e.removeAttribute(r.name)),Object.keys(i).filter(r=>!n.has(r.toLowerCase())).forEach(r=>e.setAttribute(r,i[r])),e;{let r=document.createElement(t);return Object.keys(i).forEach(s=>r.setAttribute(s,i[s])),n.forEach(s=>r.setAttribute(s,e.getAttribute(s))),r.innerHTML=e.innerHTML,e.replaceWith(r),r}},getSticky(e,t,i){let n=(fe.private(e,"sticky")||[]).find(([r])=>t===r);if(n){let[r,s,o]=n;return o}else return typeof i=="function"?i():i},deleteSticky(e,t){this.updatePrivate(e,"sticky",[],i=>i.filter(([n,r])=>n!==t))},putSticky(e,t,i){let n=i(e);this.updatePrivate(e,"sticky",[],r=>{let s=r.findIndex(([o])=>t===o);return s>=0?r[s]=[t,i,n]:r.push([t,i,n]),r})},applyStickyOperations(e){let t=fe.private(e,"sticky");!t||t.forEach(([i,n,r])=>this.putSticky(e,i,n))}},_=fe,Wt=class{static isActive(e,t){let i=t._phxRef===void 0,r=e.getAttribute(ni).split(",").indexOf(G.genFileRef(t))>=0;return t.size>0&&(i||r)}static isPreflighted(e,t){return e.getAttribute(fi).split(",").indexOf(G.genFileRef(t))>=0&&this.isActive(e,t)}constructor(e,t,i){this.ref=G.genFileRef(t),this.fileEl=e,this.file=t,this.view=i,this.meta=null,this._isCancelled=!1,this._isDone=!1,this._progress=0,this._lastProgressSent=-1,this._onDone=function(){},this._onElUpdated=this.onElUpdated.bind(this),this.fileEl.addEventListener(ri,this._onElUpdated)}metadata(){return this.meta}progress(e){this._progress=Math.floor(e),this._progress>this._lastProgressSent&&(this._progress>=100?(this._progress=100,this._lastProgressSent=100,this._isDone=!0,this.view.pushFileProgress(this.fileEl,this.ref,100,()=>{G.untrackFile(this.fileEl,this.file),this._onDone()})):(this._lastProgressSent=this._progress,this.view.pushFileProgress(this.fileEl,this.ref,this._progress)))}cancel(){this._isCancelled=!0,this._isDone=!0,this._onDone()}isDone(){return this._isDone}error(e="failed"){this.view.pushFileProgress(this.fileEl,this.ref,{error:e}),G.clearFiles(this.fileEl)}onDone(e){this._onDone=()=>{this.fileEl.removeEventListener(ri,this._onElUpdated),e()}}onElUpdated(){this.fileEl.getAttribute(ni).split(",").indexOf(this.ref)===-1&&this.cancel()}toPreflightPayload(){return{last_modified:this.file.lastModified,name:this.file.name,size:this.file.size,type:this.file.type,ref:this.ref}}uploader(e){if(this.meta.uploader){let t=e[this.meta.uploader]||Q(`no uploader configured for ${this.meta.uploader}`);return{name:this.meta.uploader,callback:t}}else return{name:"channel",callback:Nr}}zipPostFlight(e){this.meta=e.entries[this.ref],this.meta||Q(`no preflight upload response returned with ref ${this.ref}`,{input:this.fileEl,response:e})}},Ir=0,G=class{static genFileRef(e){let t=e._phxRef;return t!==void 0?t:(e._phxRef=(Ir++).toString(),e._phxRef)}static getEntryDataURL(e,t,i){let n=this.activeFiles(e).find(r=>this.genFileRef(r)===t);i(URL.createObjectURL(n))}static hasUploadsInProgress(e){let t=0;return _.findUploadInputs(e).forEach(i=>{i.getAttribute(fi)!==i.getAttribute(vr)&&t++}),t>0}static serializeUploads(e){let t=this.activeFiles(e),i={};return t.forEach(n=>{let r={path:e.name},s=e.getAttribute(Ie);i[s]=i[s]||[],r.ref=this.genFileRef(n),r.name=n.name||r.ref,r.type=n.type,r.size=n.size,i[s].push(r)}),i}static clearFiles(e){e.value=null,e.removeAttribute(Ie),_.putPrivate(e,"files",[])}static untrackFile(e,t){_.putPrivate(e,"files",_.private(e,"files").filter(i=>!Object.is(i,t)))}static trackFiles(e,t){if(e.getAttribute("multiple")!==null){let i=t.filter(n=>!this.activeFiles(e).find(r=>Object.is(r,n)));_.putPrivate(e,"files",this.activeFiles(e).concat(i)),e.value=null}else _.putPrivate(e,"files",t)}static activeFileInputs(e){let t=_.findUploadInputs(e);return Array.from(t).filter(i=>i.files&&this.activeFiles(i).length>0)}static activeFiles(e){return(_.private(e,"files")||[]).filter(t=>Wt.isActive(e,t))}static inputsAwaitingPreflight(e){let t=_.findUploadInputs(e);return Array.
|
||
|
|
||
|
got: "${h.nodeValue.trim()}"
|
||
|
|
||
|
within:
|
||
|
`,r.innerHTML.trim()),h.replaceWith(this.createSpan(h.nodeValue,t)),[!0,d]):(h.remove(),[c,d]),[!1,!1]);return!a&&!l?(Q(`expected at least one HTML element tag inside a component, but the component is empty:
|
||
|
`,r.innerHTML.trim()),this.createSpan("",t).outerHTML):(!a&&l&&Q("expected at least one HTML element tag directly inside a component, but only subcomponents were found. A component must render at least one HTML tag directly inside itself.",r.innerHTML.trim()),r.innerHTML)}createSpan(e,t){let i=document.createElement("span");return i.innerText=e,i.setAttribute(ae,t),i}},Zr=1,Ze=class{static makeID(){return Zr++}static elementID(e){return e.phxHookId}constructor(e,t,i){this.__view=e,this.liveSocket=e.liveSocket,this.__callbacks=i,this.__listeners=new Set,this.__isDisconnected=!1,this.el=t,this.el.phxHookId=this.constructor.makeID();for(let n in this.__callbacks)this[n]=this.__callbacks[n]}__mounted(){this.mounted&&this.mounted()}__updated(){this.updated&&this.updated()}__beforeUpdate(){this.beforeUpdate&&this.beforeUpdate()}__destroyed(){this.destroyed&&this.destroyed()}__reconnected(){this.__isDisconnected&&(this.__isDisconnected=!1,this.reconnected&&this.reconnected())}__disconnected(){this.__isDisconnected=!0,this.disconnected&&this.disconnected()}pushEvent(e,t={},i=function(){}){return this.__view.pushHookEvent(null,e,t,i)}pushEventTo(e,t,i={},n=function(){}){return this.__view.withinTargets(e,(r,s)=>r.pushHookEvent(s,t,i,n))}handleEvent(e,t){let i=(n,r)=>r?e:t(n.detail);return window.addEventListener(`phx:${e}`,i),this.__listeners.add(i),i}removeHandleEvent(e){let t=e(null,!0);window.removeEventListener(`phx:${t}`,e),this.__listeners.delete(e)}upload(e,t){return this.__view.dispatchUploads(e,t)}uploadTo(e,t,i){return this.__view.withinTargets(e,n=>n.dispatchUploads(t,i))}__cleanup__(){this.__listeners.forEach(e=>this.removeHandleEvent(e))}},es={exec(e,t,i,n,r){let[s,o]=r||[null,{}];(t.charAt(0)==="["?JSON.parse(t):[[s,o]]).forEach(([l,c])=>{l===s&&o.data&&(c.data=Object.assign(c.data||{},o.data)),this.filterToEls(n,c).forEach(d=>{this[`exec_${l}`](e,t,i,n,d,c)})})},isVisible(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length>0)},exec_dispatch(e,t,i,n,r,{to:s,event:o,detail:a,bubbles:l}){a=a||{},a.dispatcher=n,_.dispatchEvent(r,o,{detail:a,bubbles:l})},exec_push(e,t,i,n,r,s){if(!i.isConnected())return;let{event:o,data:a,target:l,page_loading:c,loading:d,value:h,dispatcher:g}=s,u={loading:d,value:h,target:l,page_loading:!!c},b=e==="change"&&g?g:n,m=l||b.getAttribute(i.binding("target"))||b;i.withinTargets(m,(y,S)=>{if(e==="change"){let{newCid:N,_target:f,callback:A}=s;f=f||(n instanceof HTMLInputElement?n.name:void 0),f&&(u._target=f),y.pushInput(n,S,N,o||t,u,A)}else e==="submit"?y.submitForm(n,S,o||t,u):y.pushEvent(e,n,S,o||t,a,u)})},exec_add_class(e,t,i,n,r,{names:s,transition:o,time:a}){this.addOrRemoveClasses(r,s,[],o,a,i)},exec_remove_class(e,t,i,n,r,{names:s,transition:o,time:a}){this.addOrRemoveClasses(r,[],s,o,a,i)},exec_transition(e,t,i,n,r,{time:s,transition:o}){let[a,l,c]=o,d=()=>this.addOrRemoveClasses(r,a.concat(l),[]),h=()=>this.addOrRemoveClasses(r,c,a.concat(l));i.transition(s,d,h)},exec_toggle(e,t,i,n,r,{display:s,ins:o,outs:a,time:l}){this.toggle(e,i,r,s,o,a,l)},exec_show(e,t,i,n,r,{display:s,transition:o,time:a}){this.show(e,i,r,s,o,a)},exec_hide(e,t,i,n,r,{display:s,transition:o,time:a}){this.hide(e,i,r,s,o,a)},exec_set_attr(e,t,i,n,r,{attr:[s,o]}){this.setOrRemoveAttrs(r,[[s,o]],[])},exec_remove_attr(e,t,i,n,r,{attr:s}){this.setOrRemoveAttrs(r,[],[s])},show(e,t,i,n,r,s){this.isVisible(i)||this.toggle(e,t,i,n,r,null,s)},hide(e,t,i,n,r,s){this.isVisible(i)&&this.toggle(e,t,i,n,null,r,s)},toggle(e,t,i,n,r,s,o){let[a,l,c]=r||[[],[],[]],[d,h,g]=s||[[],[],[]];if(a.length>0||d.length>0)if(this.isVisible(i)){let u=()=>{this.addOrRemoveClasses(i,h,a.concat(l).concat(c)),window.requestAnimationFrame(()=>{this.addOrRemoveClasses(i,d,[]),window.requestAnimationFrame(()=>this.addOrRemoveClasses(i,g,h))})};i.dispatchEvent(new Event("phx:hide-start")),t.transition(o,u,()=>{this.addOrRemoveClasses(i,[],d.concat(g)),_.putSticky(i,"toggle",b=>b.style.display="none"),i.dispatchEvent(new Event("phx:hide-end"))})}else{if(e==="remove")return;let u=()=>{this.addOrRemoveClasses(i,l,d.concat(h).concat(g))
|
||
|
a phoenix Socket must be provided as the second argument to the LiveSocket constructor. For example:
|
||
|
|
||
|
import {Socket} from "phoenix"
|
||
|
import {LiveSocket} from "phoenix_live_view"
|
||
|
let liveSocket = new LiveSocket("/live", Socket, {...})
|
||
|
`);this.socket=new t(e,i),this.bindingPrefix=i.bindingPrefix||Sr,this.opts=i,this.params=Vt(i.params||{}),this.viewLogger=i.viewLogger,this.metadataCallbacks=i.metadata||{},this.defaults=Object.assign(Tt(Or),i.defaults||{}),this.activeElement=null,this.prevActive=null,this.silenced=!1,this.main=null,this.outgoingMainEl=null,this.clickStartedAtTarget=null,this.linkRef=1,this.roots={},this.href=window.location.href,this.pendingLink=null,this.currentLocation=Tt(window.location),this.hooks=i.hooks||{},this.uploaders=i.uploaders||{},this.loaderTimeout=i.loaderTimeout||Cr,this.reloadWithJitterTimer=null,this.maxReloads=i.maxReloads||dr,this.reloadJitterMin=i.reloadJitterMin||ur,this.reloadJitterMax=i.reloadJitterMax||fr,this.failsafeJitter=i.failsafeJitter||pr,this.localStorage=i.localStorage||window.localStorage,this.sessionStorage=i.sessionStorage||window.sessionStorage,this.boundTopLevelEvents=!1,this.domCallbacks=Object.assign({onNodeAdded:Vt(),onBeforeElUpdated:Vt()},i.dom||{}),this.transitions=new is,window.addEventListener("pagehide",n=>{this.unloaded=!0}),this.socket.onOpen(()=>{this.isUnloaded()&&window.location.reload()})}isProfileEnabled(){return this.sessionStorage.getItem(Ft)==="true"}isDebugEnabled(){return this.sessionStorage.getItem(mt)==="true"}isDebugDisabled(){return this.sessionStorage.getItem(mt)==="false"}enableDebug(){this.sessionStorage.setItem(mt,"true")}enableProfiling(){this.sessionStorage.setItem(Ft,"true")}disableDebug(){this.sessionStorage.setItem(mt,"false")}disableProfiling(){this.sessionStorage.removeItem(Ft)}enableLatencySim(e){this.enableDebug(),console.log("latency simulator enabled for the duration of this browser session. Call disableLatencySim() to disable"),this.sessionStorage.setItem(Ut,e)}disableLatencySim(){this.sessionStorage.removeItem(Ut)}getLatencySim(){let e=this.sessionStorage.getItem(Ut);return e?parseInt(e):null}getSocket(){return this.socket}connect(){window.location.hostname==="localhost"&&!this.isDebugDisabled()&&this.enableDebug();let e=()=>{this.joinRootViews()?(this.bindTopLevelEvents(),this.socket.connect()):this.main&&this.socket.connect()};["complete","loaded","interactive"].indexOf(document.readyState)>=0?e():document.addEventListener("DOMContentLoaded",()=>e())}disconnect(e){clearTimeout(this.reloadWithJitterTimer),this.socket.disconnect(e)}replaceTransport(e){clearTimeout(this.reloadWithJitterTimer),this.socket.replaceTransport(e),this.connect()}execJS(e,t,i=null){this.owner(e,n=>ve.exec(i,t,n,e))}triggerDOM(e,t){this.domCallbacks[e](...t)}time(e,t){if(!this.isProfileEnabled()||!console.time)return t();console.time(e);let i=t();return console.timeEnd(e),i}log(e,t,i){if(this.viewLogger){let[n,r]=i();this.viewLogger(e,t,n,r)}else if(this.isDebugEnabled()){let[n,r]=i();xr(e,t,n,r)}}requestDOMUpdate(e){this.transitions.after(e)}transition(e,t,i=function(){}){this.transitions.addTransition(e,t,i)}onChannel(e,t,i){e.on(t,n=>{let r=this.getLatencySim();r?(console.log(`simulating ${r}ms of latency from server to client`),setTimeout(()=>i(n),r)):i(n)})}wrapPush(e,t,i){let n=this.getLatencySim(),r=e.joinCount;if(!n)return this.isConnected()&&t.timeout?i().receive("timeout",()=>{e.joinCount===r&&!e.isDestroyed()&&this.reloadWithJitter(e,()=>{this.log(e,"timeout",()=>["received timeout while communicating with server. Falling back to hard refresh for recovery"])})}):i();console.log(`simulating ${n}ms of latency from client to server`);let s={receives:[],receive(o,a){this.receives.push([o,a])}};return setTimeout(()=>{e.isDestroyed()||s.receives.reduce((o,[a,l])=>o.receive(a,l),i())},n),s}reloadWithJitter(e,t){clearTimeout(this.reloadWithJitterTimer),this.disconnect();let i=this.reloadJitterMin,n=this.reloadJitterMax,r=Math.floor(Math.random()*(n-i+1))+i,s=ke.updateLocal(this.localStorage,window.location.pathname,En,0,o=>o+1);s>this.maxReloads&&(r=this.failsafeJitter),this.reloadWithJitterTimer=setTimeout(()=>{e.isDestroyed()||e.isConnected()||(e.destroy(),t?t():this.log(e,"join",()=>[`encountered ${s} consecutive reloads`]),s>this.maxReloads&&this.log(e,"join",()=>[`exce
|
||
|
* Bootstrap index.js v5.2.0 (https://getbootstrap.com/)
|
||
|
* Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||
|
*/var Qi;function pe(){return Qi||(Qi=1,function(e,t){(function(i,n){n(t)})(Z,function(i){const s="transitionend",o=p=>p==null?`${p}`:Object.prototype.toString.call(p).match(/\s([a-z]+)/i)[1].toLowerCase(),a=p=>{do p+=Math.floor(Math.random()*1e6);while(document.getElementById(p));return p},l=p=>{let O=p.getAttribute("data-bs-target");if(!O||O==="#"){let R=p.getAttribute("href");if(!R||!R.includes("#")&&!R.startsWith("."))return null;R.includes("#")&&!R.startsWith("#")&&(R=`#${R.split("#")[1]}`),O=R&&R!=="#"?R.trim():null}return O},c=p=>{const O=l(p);return O&&document.querySelector(O)?O:null},d=p=>{const O=l(p);return O?document.querySelector(O):null},h=p=>{if(!p)return 0;let{transitionDuration:O,transitionDelay:R}=window.getComputedStyle(p);const T=Number.parseFloat(O),w=Number.parseFloat(R);return!T&&!w?0:(O=O.split(",")[0],R=R.split(",")[0],(Number.parseFloat(O)+Number.parseFloat(R))*1e3)},g=p=>{p.dispatchEvent(new Event(s))},u=p=>!p||typeof p!="object"?!1:(typeof p.jquery<"u"&&(p=p[0]),typeof p.nodeType<"u"),b=p=>u(p)?p.jquery?p[0]:p:typeof p=="string"&&p.length>0?document.querySelector(p):null,m=p=>{if(!u(p)||p.getClientRects().length===0)return!1;const O=getComputedStyle(p).getPropertyValue("visibility")==="visible",R=p.closest("details:not([open])");if(!R)return O;if(R!==p){const T=p.closest("summary");if(T&&T.parentNode!==R||T===null)return!1}return O},y=p=>!p||p.nodeType!==Node.ELEMENT_NODE||p.classList.contains("disabled")?!0:typeof p.disabled<"u"?p.disabled:p.hasAttribute("disabled")&&p.getAttribute("disabled")!=="false",S=p=>{if(!document.documentElement.attachShadow)return null;if(typeof p.getRootNode=="function"){const O=p.getRootNode();return O instanceof ShadowRoot?O:null}return p instanceof ShadowRoot?p:p.parentNode?S(p.parentNode):null},N=()=>{},f=p=>{p.offsetHeight},A=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,P=[],E=p=>{document.readyState==="loading"?(P.length||document.addEventListener("DOMContentLoaded",()=>{for(const O of P)O()}),P.push(p)):p()},C=()=>document.documentElement.dir==="rtl",x=p=>{E(()=>{const O=A();if(O){const R=p.NAME,T=O.fn[R];O.fn[R]=p.jQueryInterface,O.fn[R].Constructor=p,O.fn[R].noConflict=()=>(O.fn[R]=T,p.jQueryInterface)}})},k=p=>{typeof p=="function"&&p()},I=(p,O,R=!0)=>{if(!R){k(p);return}const T=5,w=h(O)+T;let v=!1;const D=({target:M})=>{M===O&&(v=!0,O.removeEventListener(s,D),k(p))};O.addEventListener(s,D),setTimeout(()=>{v||g(O)},w)},H=(p,O,R,T)=>{const w=p.length;let v=p.indexOf(O);return v===-1?!R&&T?p[w-1]:p[0]:(v+=R?1:-1,T&&(v=(v+w)%w),p[Math.max(0,Math.min(v,w-1))])};i.defineJQueryPlugin=x,i.execute=k,i.executeAfterTransition=I,i.findShadowRoot=S,i.getElement=b,i.getElementFromSelector=d,i.getNextActiveElement=H,i.getSelectorFromElement=c,i.getTransitionDurationFromElement=h,i.getUID=a,i.getjQuery=A,i.isDisabled=y,i.isElement=u,i.isRTL=C,i.isVisible=m,i.noop=N,i.onDOMContentLoaded=E,i.reflow=f,i.toType=o,i.triggerTransitionEnd=g,Object.defineProperties(i,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})}(At,At.exports)),At.exports}var Kt={exports:{}};/*!
|
||
|
* Bootstrap event-handler.js v5.2.0 (https://getbootstrap.com/)
|
||
|
* Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||
|
*/var Zi;function Le(){return Zi||(Zi=1,function(e,t){(function(i,n){e.exports=n(pe())})(Z,function(i){const n=/[^.]*(?=\..*)\.|.*/,r=/\..*/,s=/::\d+$/,o={};let a=1;const l={mouseenter:"mouseover",mouseleave:"mouseout"},c=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function d(E,C){return C&&`${C}::${a++}`||E.uidEvent||a++}function h(E){const C=d(E);return E.uidEvent=C,o[C]=o[C]||{},o[C]}function g(E,C){return function x(k){return P(k,{delegateTarget:E}),x.oneOff&&A.off(E,k.type,C),C.apply(E,[k])}}function u(E,C,x){return function k(I){const H=E.querySelectorAll(C);for(let{target:p}=I;p&&p!==this;p=p.parentNode)for(const O of H)if(O===p)return P(I,{delegateTarget:p}),k.oneOff&&A.off(E,I.type,C,x),x.apply(p,[I])}}function b(E,C,x=null){return Object.values(E).find(k=>k.callable===C&&k.delegationSelector===x)}function m(E,C,x){const k=typeof C=="string",I=k?x:C||x;let H=f(E);return c.has(H)||(H=E),[k,I,H]}function y(E,C,x,k,I){if(typeof C!="string"||!E)return;let[H,p,O]=m(C,x,k);C in l&&(p=(F=>function(B){if(!B.relatedTarget||B.relatedTarget!==B.delegateTarget&&!B.delegateTarget.contains(B.relatedTarget))return F.call(this,B)})(p));const R=h(E),T=R[O]||(R[O]={}),w=b(T,p,H?x:null);if(w){w.oneOff=w.oneOff&&I;return}const v=d(p,C.replace(n,"")),D=H?u(E,x,p):g(E,p);D.delegationSelector=H?x:null,D.callable=p,D.oneOff=I,D.uidEvent=v,T[v]=D,E.addEventListener(O,D,H)}function S(E,C,x,k,I){const H=b(C[x],k,I);!H||(E.removeEventListener(x,H,Boolean(I)),delete C[x][H.uidEvent])}function N(E,C,x,k){const I=C[x]||{};for(const H of Object.keys(I))if(H.includes(k)){const p=I[H];S(E,C,x,p.callable,p.delegationSelector)}}function f(E){return E=E.replace(r,""),l[E]||E}const A={on(E,C,x,k){y(E,C,x,k,!1)},one(E,C,x,k){y(E,C,x,k,!0)},off(E,C,x,k){if(typeof C!="string"||!E)return;const[I,H,p]=m(C,x,k),O=p!==C,R=h(E),T=R[p]||{},w=C.startsWith(".");if(typeof H<"u"){if(!Object.keys(T).length)return;S(E,R,p,H,I?x:null);return}if(w)for(const v of Object.keys(R))N(E,R,v,C.slice(1));for(const v of Object.keys(T)){const D=v.replace(s,"");if(!O||C.includes(D)){const M=T[v];S(E,R,p,M.callable,M.delegationSelector)}}},trigger(E,C,x){if(typeof C!="string"||!E)return null;const k=i.getjQuery(),I=f(C),H=C!==I;let p=null,O=!0,R=!0,T=!1;H&&k&&(p=k.Event(C,x),k(E).trigger(p),O=!p.isPropagationStopped(),R=!p.isImmediatePropagationStopped(),T=p.isDefaultPrevented());let w=new Event(C,{bubbles:O,cancelable:!0});return w=P(w,x),T&&w.preventDefault(),R&&E.dispatchEvent(w),w.defaultPrevented&&p&&p.preventDefault(),w}};function P(E,C){for(const[x,k]of Object.entries(C||{}))try{E[x]=k}catch{Object.defineProperty(E,x,{configurable:!0,get(){return k}})}return E}return A})}(Kt)),Kt.exports}var Jt={exports:{}},Xt={exports:{}};/*!
|
||
|
* Bootstrap data.js v5.2.0 (https://getbootstrap.com/)
|
||
|
* Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||
|
*/var en;function rs(){return en||(en=1,function(e,t){(function(i,n){e.exports=n()})(Z,function(){const i=new Map;return{set(r,s,o){i.has(r)||i.set(r,new Map);const a=i.get(r);if(!a.has(s)&&a.size!==0){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(a.keys())[0]}.`);return}a.set(s,o)},get(r,s){return i.has(r)&&i.get(r).get(s)||null},remove(r,s){if(!i.has(r))return;const o=i.get(r);o.delete(s),o.size===0&&i.delete(r)}}})}(Xt)),Xt.exports}var zt={exports:{}},Yt={exports:{}};/*!
|
||
|
* Bootstrap manipulator.js v5.2.0 (https://getbootstrap.com/)
|
||
|
* Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||
|
*/var tn;function gi(){return tn||(tn=1,function(e,t){(function(i,n){e.exports=n()})(Z,function(){function i(s){if(s==="true")return!0;if(s==="false")return!1;if(s===Number(s).toString())return Number(s);if(s===""||s==="null")return null;if(typeof s!="string")return s;try{return JSON.parse(decodeURIComponent(s))}catch{return s}}function n(s){return s.replace(/[A-Z]/g,o=>`-${o.toLowerCase()}`)}return{setDataAttribute(s,o,a){s.setAttribute(`data-bs-${n(o)}`,a)},removeDataAttribute(s,o){s.removeAttribute(`data-bs-${n(o)}`)},getDataAttributes(s){if(!s)return{};const o={},a=Object.keys(s.dataset).filter(l=>l.startsWith("bs")&&!l.startsWith("bsConfig"));for(const l of a){let c=l.replace(/^bs/,"");c=c.charAt(0).toLowerCase()+c.slice(1,c.length),o[c]=i(s.dataset[l])}return o},getDataAttribute(s,o){return i(s.getAttribute(`data-bs-${n(o)}`))}}})}(Yt)),Yt.exports}/*!
|
||
|
* Bootstrap config.js v5.2.0 (https://getbootstrap.com/)
|
||
|
* Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||
|
*/var nn;function mi(){return nn||(nn=1,function(e,t){(function(i,n){e.exports=n(pe(),gi())})(Z,function(i,n){const s=(a=>a&&typeof a=="object"&&"default"in a?a:{default:a})(n);class o{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(l){return l=this._mergeConfigObj(l),l=this._configAfterMerge(l),this._typeCheckConfig(l),l}_configAfterMerge(l){return l}_mergeConfigObj(l,c){const d=i.isElement(c)?s.default.getDataAttribute(c,"config"):{};return{...this.constructor.Default,...typeof d=="object"?d:{},...i.isElement(c)?s.default.getDataAttributes(c):{},...typeof l=="object"?l:{}}}_typeCheckConfig(l,c=this.constructor.DefaultType){for(const d of Object.keys(c)){const h=c[d],g=l[d],u=i.isElement(g)?"element":i.toType(g);if(!new RegExp(h).test(u))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${d}" provided type "${u}" but expected type "${h}".`)}}}return o})}(zt)),zt.exports}/*!
|
||
|
* Bootstrap base-component.js v5.2.0 (https://getbootstrap.com/)
|
||
|
* Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||
|
*/var rn;function Dt(){return rn||(rn=1,function(e,t){(function(i,n){e.exports=n(rs(),pe(),Le(),mi())})(Z,function(i,n,r,s){const o=g=>g&&typeof g=="object"&&"default"in g?g:{default:g},a=o(i),l=o(r),c=o(s),d="5.2.0";class h extends c.default{constructor(u,b){super(),u=n.getElement(u),u&&(this._element=u,this._config=this._getConfig(b),a.default.set(this._element,this.constructor.DATA_KEY,this))}dispose(){a.default.remove(this._element,this.constructor.DATA_KEY),l.default.off(this._element,this.constructor.EVENT_KEY);for(const u of Object.getOwnPropertyNames(this))this[u]=null}_queueCallback(u,b,m=!0){n.executeAfterTransition(u,b,m)}_getConfig(u){return u=this._mergeConfigObj(u,this._element),u=this._configAfterMerge(u),this._typeCheckConfig(u),u}static getInstance(u){return a.default.get(n.getElement(u),this.DATA_KEY)}static getOrCreateInstance(u,b={}){return this.getInstance(u)||new this(u,typeof b=="object"?b:null)}static get VERSION(){return d}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(u){return`${u}${this.EVENT_KEY}`}}return h})}(Jt)),Jt.exports}var wt={exports:{}};/*!
|
||
|
* Bootstrap component-functions.js v5.2.0 (https://getbootstrap.com/)
|
||
|
* Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||
|
*/var sn;function Dn(){return sn||(sn=1,function(e,t){(function(i,n){n(t,Le(),pe())})(Z,function(i,n,r){const o=(l=>l&&typeof l=="object"&&"default"in l?l:{default:l})(n),a=(l,c="hide")=>{const d=`click.dismiss${l.EVENT_KEY}`,h=l.NAME;o.default.on(document,d,`[data-bs-dismiss="${h}"]`,function(g){if(["A","AREA"].includes(this.tagName)&&g.preventDefault(),r.isDisabled(this))return;const u=r.getElementFromSelector(this)||this.closest(`.${h}`);l.getOrCreateInstance(u)[c]()})};i.enableDismissTrigger=a,Object.defineProperties(i,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})}(wt,wt.exports)),wt.exports}/*!
|
||
|
* Bootstrap alert.js v5.2.0 (https://getbootstrap.com/)
|
||
|
* Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||
|
*/(function(e,t){(function(i,n){e.exports=n(pe(),Le(),Dt(),Dn())})(Z,function(i,n,r,s){const o=S=>S&&typeof S=="object"&&"default"in S?S:{default:S},a=o(n),l=o(r),c="alert",h=".bs.alert",g=`close${h}`,u=`closed${h}`,b="fade",m="show";class y extends l.default{static get NAME(){return c}close(){if(a.default.trigger(this._element,g).defaultPrevented)return;this._element.classList.remove(m);const f=this._element.classList.contains(b);this._queueCallback(()=>this._destroyElement(),this._element,f)}_destroyElement(){this._element.remove(),a.default.trigger(this._element,u),this.dispose()}static jQueryInterface(N){return this.each(function(){const f=y.getOrCreateInstance(this);if(typeof N=="string"){if(f[N]===void 0||N.startsWith("_")||N==="constructor")throw new TypeError(`No method named "${N}"`);f[N](this)}})}}return s.enableDismissTrigger(y,"close"),i.defineJQueryPlugin(y),y})})(ns);var Ln={exports:{}},Gt={exports:{}};/*!
|
||
|
* Bootstrap selector-engine.js v5.2.0 (https://getbootstrap.com/)
|
||
|
* Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||
|
*/var on;function lt(){return on||(on=1,function(e,t){(function(i,n){e.exports=n(pe())})(Z,function(i){return{find(r,s=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(s,r))},findOne(r,s=document.documentElement){return Element.prototype.querySelector.call(s,r)},children(r,s){return[].concat(...r.children).filter(o=>o.matches(s))},parents(r,s){const o=[];let a=r.parentNode.closest(s);for(;a;)o.push(a),a=a.parentNode.closest(s);return o},prev(r,s){let o=r.previousElementSibling;for(;o;){if(o.matches(s))return[o];o=o.previousElementSibling}return[]},next(r,s){let o=r.nextElementSibling;for(;o;){if(o.matches(s))return[o];o=o.nextElementSibling}return[]},focusableChildren(r){const s=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(o=>`${o}:not([tabindex^="-"])`).join(",");return this.find(s,r).filter(o=>!i.isDisabled(o)&&i.isVisible(o))}}})}(Gt)),Gt.exports}/*!
|
||
|
* Bootstrap collapse.js v5.2.0 (https://getbootstrap.com/)
|
||
|
* Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||
|
*/(function(e,t){(function(i,n){e.exports=n(pe(),Le(),lt(),Dt())})(Z,function(i,n,r,s){const o=w=>w&&typeof w=="object"&&"default"in w?w:{default:w},a=o(n),l=o(r),c=o(s),d="collapse",g=".bs.collapse",u=".data-api",b=`show${g}`,m=`shown${g}`,y=`hide${g}`,S=`hidden${g}`,N=`click${g}${u}`,f="show",A="collapse",P="collapsing",E="collapsed",C=`:scope .${A} .${A}`,x="collapse-horizontal",k="width",I="height",H=".collapse.show, .collapse.collapsing",p='[data-bs-toggle="collapse"]',O={parent:null,toggle:!0},R={parent:"(null|element)",toggle:"boolean"};class T extends c.default{constructor(v,D){super(v,D),this._isTransitioning=!1,this._triggerArray=[];const M=l.default.find(p);for(const F of M){const B=i.getSelectorFromElement(F),J=l.default.find(B).filter(V=>V===this._element);B!==null&&J.length&&this._triggerArray.push(F)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return O}static get DefaultType(){return R}static get NAME(){return d}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let v=[];if(this._config.parent&&(v=this._getFirstLevelChildren(H).filter(V=>V!==this._element).map(V=>T.getOrCreateInstance(V,{toggle:!1}))),v.length&&v[0]._isTransitioning||a.default.trigger(this._element,b).defaultPrevented)return;for(const V of v)V.hide();const M=this._getDimension();this._element.classList.remove(A),this._element.classList.add(P),this._element.style[M]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const F=()=>{this._isTransitioning=!1,this._element.classList.remove(P),this._element.classList.add(A,f),this._element.style[M]="",a.default.trigger(this._element,m)},J=`scroll${M[0].toUpperCase()+M.slice(1)}`;this._queueCallback(F,this._element,!0),this._element.style[M]=`${this._element[J]}px`}hide(){if(this._isTransitioning||!this._isShown()||a.default.trigger(this._element,y).defaultPrevented)return;const D=this._getDimension();this._element.style[D]=`${this._element.getBoundingClientRect()[D]}px`,i.reflow(this._element),this._element.classList.add(P),this._element.classList.remove(A,f);for(const F of this._triggerArray){const B=i.getElementFromSelector(F);B&&!this._isShown(B)&&this._addAriaAndCollapsedClass([F],!1)}this._isTransitioning=!0;const M=()=>{this._isTransitioning=!1,this._element.classList.remove(P),this._element.classList.add(A),a.default.trigger(this._element,S)};this._element.style[D]="",this._queueCallback(M,this._element,!0)}_isShown(v=this._element){return v.classList.contains(f)}_configAfterMerge(v){return v.toggle=Boolean(v.toggle),v.parent=i.getElement(v.parent),v}_getDimension(){return this._element.classList.contains(x)?k:I}_initializeChildren(){if(!this._config.parent)return;const v=this._getFirstLevelChildren(p);for(const D of v){const M=i.getElementFromSelector(D);M&&this._addAriaAndCollapsedClass([D],this._isShown(M))}}_getFirstLevelChildren(v){const D=l.default.find(C,this._config.parent);return l.default.find(v,this._config.parent).filter(M=>!D.includes(M))}_addAriaAndCollapsedClass(v,D){if(!!v.length)for(const M of v)M.classList.toggle(E,!D),M.setAttribute("aria-expanded",D)}static jQueryInterface(v){const D={};return typeof v=="string"&&/show|hide/.test(v)&&(D.toggle=!1),this.each(function(){const M=T.getOrCreateInstance(this,D);if(typeof v=="string"){if(typeof M[v]>"u")throw new TypeError(`No method named "${v}"`);M[v]()}})}}return a.default.on(document,N,p,function(w){(w.target.tagName==="A"||w.delegateTarget&&w.delegateTarget.tagName==="A")&&w.preventDefault();const v=i.getSelectorFromElement(this),D=l.default.find(v);for(const M of D)T.getOrCreateInstance(M,{toggle:!1}).toggle()}),i.defineJQueryPlugin(T),T})})(Ln);const ss=Ln.exports;var os={exports:{}},te="top",le="bottom",ce="right",ie="left",Lt="auto",Ke=[te,le,ce,ie],Me="start",Fe="end",Pn="clippingParents",vi="viewport",$e="popper",xn="reference",ci=Ke.reduce(function(e,t){return e.concat([t+"-"+Me,t+"-"+Fe])},[]),bi=[].conca
|
||
|
* Bootstrap dropdown.js v5.2.0 (https://getbootstrap.com/)
|
||
|
* Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||
|
*/(function(e,t){(function(i,n){e.exports=n(zs,pe(),Le(),gi(),lt(),Dt())})(Z,function(i,n,r,s,o,a){const l=X=>X&&typeof X=="object"&&"default"in X?X:{default:X};function c(X){if(X&&X.__esModule)return X;const L=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(X){for(const j in X)if(j!=="default"){const q=Object.getOwnPropertyDescriptor(X,j);Object.defineProperty(L,j,q.get?q:{enumerable:!0,get:()=>X[j]})}}return L.default=X,Object.freeze(L)}const d=c(i),h=l(r),g=l(s),u=l(o),b=l(a),m="dropdown",S=".bs.dropdown",N=".data-api",f="Escape",A="Tab",P="ArrowUp",E="ArrowDown",C=2,x=`hide${S}`,k=`hidden${S}`,I=`show${S}`,H=`shown${S}`,p=`click${S}${N}`,O=`keydown${S}${N}`,R=`keyup${S}${N}`,T="show",w="dropup",v="dropend",D="dropstart",M="dropup-center",F="dropdown-center",B='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',J=`${B}.${T}`,V=".dropdown-menu",ee=".navbar",U=".navbar-nav",K=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",$=n.isRTL()?"top-end":"top-start",W=n.isRTL()?"top-start":"top-end",z=n.isRTL()?"bottom-end":"bottom-start",Ae=n.isRTL()?"bottom-start":"bottom-end",Je=n.isRTL()?"left-start":"right-start",Nt=n.isRTL()?"right-start":"left-start",ht="top",It="bottom",Mt={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},dt={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class ne extends b.default{constructor(L,j){super(L,j),this._popper=null,this._parent=this._element.parentNode,this._menu=u.default.findOne(V,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return Mt}static get DefaultType(){return dt}static get NAME(){return m}toggle(){return this._isShown()?this.hide():this.show()}show(){if(n.isDisabled(this._element)||this._isShown())return;const L={relatedTarget:this._element};if(!h.default.trigger(this._element,I,L).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(U))for(const q of[].concat(...document.body.children))h.default.on(q,"mouseover",n.noop);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(T),this._element.classList.add(T),h.default.trigger(this._element,H,L)}}hide(){if(n.isDisabled(this._element)||!this._isShown())return;const L={relatedTarget:this._element};this._completeHide(L)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(L){if(!h.default.trigger(this._element,x,L).defaultPrevented){if("ontouchstart"in document.documentElement)for(const q of[].concat(...document.body.children))h.default.off(q,"mouseover",n.noop);this._popper&&this._popper.destroy(),this._menu.classList.remove(T),this._element.classList.remove(T),this._element.setAttribute("aria-expanded","false"),g.default.removeDataAttribute(this._menu,"popper"),h.default.trigger(this._element,k,L)}}_getConfig(L){if(L=super._getConfig(L),typeof L.reference=="object"&&!n.isElement(L.reference)&&typeof L.reference.getBoundingClientRect!="function")throw new TypeError(`${m.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return L}_createPopper(){if(typeof d>"u")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let L=this._element;this._config.reference==="parent"?L=this._parent:n.isElement(this._config.reference)?L=n.getElement(this._config.reference):typeof this._config.reference=="object"&&(L=this._config.reference);const j=this._getPopperConfig();this._popper=d.createPopper(L,this._menu,j)}_isShown(){return this._menu.classList.contains(T)}_getPlacement(){const L=this._parent;if(L.classList.contains(v))return Je;if(L.classList.contains(D))return Nt;if(L.classList.contains(M))return ht;if(L.classList.contains(F))return It;const j=getComputedStyle(this._menu).getPropertyValue("--bs-position").tr
|
||
|
* Bootstrap scrollbar.js v5.2.0 (https://getbootstrap.com/)
|
||
|
* Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||
|
*/var mn;function Qs(){return mn||(mn=1,function(e,t){(function(i,n){e.exports=n(lt(),gi(),pe())})(Z,function(i,n,r){const s=u=>u&&typeof u=="object"&&"default"in u?u:{default:u},o=s(i),a=s(n),l=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",c=".sticky-top",d="padding-right",h="margin-right";class g{constructor(){this._element=document.body}getWidth(){const b=document.documentElement.clientWidth;return Math.abs(window.innerWidth-b)}hide(){const b=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,d,m=>m+b),this._setElementAttributes(l,d,m=>m+b),this._setElementAttributes(c,h,m=>m-b)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,d),this._resetElementAttributes(l,d),this._resetElementAttributes(c,h)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(b,m,y){const S=this.getWidth(),N=f=>{if(f!==this._element&&window.innerWidth>f.clientWidth+S)return;this._saveInitialAttribute(f,m);const A=window.getComputedStyle(f).getPropertyValue(m);f.style.setProperty(m,`${y(Number.parseFloat(A))}px`)};this._applyManipulationCallback(b,N)}_saveInitialAttribute(b,m){const y=b.style.getPropertyValue(m);y&&a.default.setDataAttribute(b,m,y)}_resetElementAttributes(b,m){const y=S=>{const N=a.default.getDataAttribute(S,m);if(N===null){S.style.removeProperty(m);return}a.default.removeDataAttribute(S,m),S.style.setProperty(m,N)};this._applyManipulationCallback(b,y)}_applyManipulationCallback(b,m){if(r.isElement(b)){m(b);return}for(const y of o.default.find(b,this._element))m(y)}}return g})}(Zt)),Zt.exports}var ei={exports:{}};/*!
|
||
|
* Bootstrap backdrop.js v5.2.0 (https://getbootstrap.com/)
|
||
|
* Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||
|
*/var vn;function Zs(){return vn||(vn=1,function(e,t){(function(i,n){e.exports=n(Le(),pe(),mi())})(Z,function(i,n,r){const s=m=>m&&typeof m=="object"&&"default"in m?m:{default:m},o=s(i),a=s(r),l="backdrop",c="fade",d="show",h=`mousedown.bs.${l}`,g={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},u={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class b extends a.default{constructor(y){super(),this._config=this._getConfig(y),this._isAppended=!1,this._element=null}static get Default(){return g}static get DefaultType(){return u}static get NAME(){return l}show(y){if(!this._config.isVisible){n.execute(y);return}this._append();const S=this._getElement();this._config.isAnimated&&n.reflow(S),S.classList.add(d),this._emulateAnimation(()=>{n.execute(y)})}hide(y){if(!this._config.isVisible){n.execute(y);return}this._getElement().classList.remove(d),this._emulateAnimation(()=>{this.dispose(),n.execute(y)})}dispose(){!this._isAppended||(o.default.off(this._element,h),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const y=document.createElement("div");y.className=this._config.className,this._config.isAnimated&&y.classList.add(c),this._element=y}return this._element}_configAfterMerge(y){return y.rootElement=n.getElement(y.rootElement),y}_append(){if(this._isAppended)return;const y=this._getElement();this._config.rootElement.append(y),o.default.on(y,h,()=>{n.execute(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(y){n.executeAfterTransition(y,this._getElement(),this._config.isAnimated)}}return b})}(ei)),ei.exports}var ti={exports:{}};/*!
|
||
|
* Bootstrap focustrap.js v5.2.0 (https://getbootstrap.com/)
|
||
|
* Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||
|
*/var bn;function eo(){return bn||(bn=1,function(e,t){(function(i,n){e.exports=n(Le(),lt(),mi())})(Z,function(i,n,r){const s=A=>A&&typeof A=="object"&&"default"in A?A:{default:A},o=s(i),a=s(n),l=s(r),c="focustrap",h=".bs.focustrap",g=`focusin${h}`,u=`keydown.tab${h}`,b="Tab",m="forward",y="backward",S={autofocus:!0,trapElement:null},N={autofocus:"boolean",trapElement:"element"};class f extends l.default{constructor(P){super(),this._config=this._getConfig(P),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return S}static get DefaultType(){return N}static get NAME(){return c}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),o.default.off(document,h),o.default.on(document,g,P=>this._handleFocusin(P)),o.default.on(document,u,P=>this._handleKeydown(P)),this._isActive=!0)}deactivate(){!this._isActive||(this._isActive=!1,o.default.off(document,h))}_handleFocusin(P){const{trapElement:E}=this._config;if(P.target===document||P.target===E||E.contains(P.target))return;const C=a.default.focusableChildren(E);C.length===0?E.focus():this._lastTabNavDirection===y?C[C.length-1].focus():C[0].focus()}_handleKeydown(P){P.key===b&&(this._lastTabNavDirection=P.shiftKey?y:m)}}return f})}(ti)),ti.exports}/*!
|
||
|
* Bootstrap modal.js v5.2.0 (https://getbootstrap.com/)
|
||
|
* Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||
|
*/(function(e,t){(function(i,n){e.exports=n(pe(),Le(),lt(),Qs(),Dt(),Zs(),eo(),Dn())})(Z,function(i,n,r,s,o,a,l,c){const d=K=>K&&typeof K=="object"&&"default"in K?K:{default:K},h=d(n),g=d(r),u=d(s),b=d(o),m=d(a),y=d(l),S="modal",f=".bs.modal",A=".data-api",P="Escape",E=`hide${f}`,C=`hidePrevented${f}`,x=`hidden${f}`,k=`show${f}`,I=`shown${f}`,H=`resize${f}`,p=`mousedown.dismiss${f}`,O=`keydown.dismiss${f}`,R=`click${f}${A}`,T="modal-open",w="fade",v="show",D="modal-static",M=".modal.show",F=".modal-dialog",B=".modal-body",J='[data-bs-toggle="modal"]',V={backdrop:!0,focus:!0,keyboard:!0},ee={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class U extends b.default{constructor($,W){super($,W),this._dialog=g.default.findOne(F,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new u.default,this._addEventListeners()}static get Default(){return V}static get DefaultType(){return ee}static get NAME(){return S}toggle($){return this._isShown?this.hide():this.show($)}show($){this._isShown||this._isTransitioning||h.default.trigger(this._element,k,{relatedTarget:$}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(T),this._adjustDialog(),this._backdrop.show(()=>this._showElement($)))}hide(){!this._isShown||this._isTransitioning||h.default.trigger(this._element,E).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(v),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){for(const $ of[window,this._dialog])h.default.off($,f);this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new m.default({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new y.default({trapElement:this._element})}_showElement($){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const W=g.default.findOne(B,this._dialog);W&&(W.scrollTop=0),i.reflow(this._element),this._element.classList.add(v);const z=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,h.default.trigger(this._element,I,{relatedTarget:$})};this._queueCallback(z,this._dialog,this._isAnimated())}_addEventListeners(){h.default.on(this._element,O,$=>{if($.key===P){if(this._config.keyboard){$.preventDefault(),this.hide();return}this._triggerBackdropTransition()}}),h.default.on(window,H,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),h.default.on(this._element,p,$=>{if($.target===$.currentTarget){if(this._config.backdrop==="static"){this._triggerBackdropTransition();return}this._config.backdrop&&this.hide()}})}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(T),this._resetAdjustments(),this._scrollBar.reset(),h.default.trigger(this._element,x)})}_isAnimated(){return this._element.classList.contains(w)}_triggerBackdropTransition(){if(h.default.trigger(this._element,C).defaultPrevented)return;const W=this._element.scrollHeight>document.documentElement.clientHeight,z=this._element.style.overflowY;z==="hidden"||this._element.classList.contains(D)||(W||(this._element.style.overflowY="hidden"),this._element.classList.add(D),this._queueCallback(()=>{this._element.classList.remove(D),this._queueCallback(()=>{this._element.style.overflowY=z},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const $=this._element.scrollHeight>document.documentElement.clientHeight,W=this._scrollBar.getWidth(),z=W>0;if(z&&!$){const Ae=i
|