diff --git a/dist/404.html b/dist/404.html deleted file mode 100644 index 829eda8..0000000 --- a/dist/404.html +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - Page Not Found - - - - -
-

404

-

Page Not Found

-

The specified file was not found on this website. Please check the URL for mistakes and try again.

-

Why am I seeing this?

-

This page was generated by the Firebase Command-Line Interface. To modify it, edit the 404.html file in your project's configured public directory.

-
- - diff --git a/dist/android-chrome-192x192.png b/dist/android-chrome-192x192.png deleted file mode 100644 index 7121479..0000000 Binary files a/dist/android-chrome-192x192.png and /dev/null differ diff --git a/dist/android-chrome-512x512.png b/dist/android-chrome-512x512.png deleted file mode 100644 index 6350ce9..0000000 Binary files a/dist/android-chrome-512x512.png and /dev/null differ diff --git a/dist/apple-touch-icon.png b/dist/apple-touch-icon.png deleted file mode 100644 index fcf6ba0..0000000 Binary files a/dist/apple-touch-icon.png and /dev/null differ diff --git a/dist/assets/SceneryView-20e96b3c.css b/dist/assets/SceneryView-20e96b3c.css deleted file mode 100644 index 0493438..0000000 --- a/dist/assets/SceneryView-20e96b3c.css +++ /dev/null @@ -1 +0,0 @@ -@charset "UTF-8";.info-dispatcher[data-v-dd62eb36]{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:.5em}.info-dispatcher .dispatcher[data-v-dd62eb36]{font-size:2em}.info-dispatcher .dispatcher_level[data-v-dd62eb36]{display:inline-block;margin-right:.3em;background:firebrick;border-radius:.1em;width:1.5em;height:1.5em;line-height:1.5em;font-weight:700}.info-dispatcher .dispatcher_name[data-v-dd62eb36]{cursor:pointer;margin-right:.25em}.info-dispatcher .dispatcher_likes img[data-v-dd62eb36]{height:.7em;margin:0 .25em}.info-dispatcher .status-badge[data-v-dd62eb36]{font-size:1.25em;margin:.5em .25em}.scenery-icon[data-v-4abf0bfd]{display:inline-block;user-select:none;-moz-user-select:none;-webkit-user-select:none;text-align:center;font-weight:700;background-color:#888}.scenery-icon.SPK[data-v-4abf0bfd],.scenery-icon.mechaniczne-SPK[data-v-4abf0bfd],.scenery-icon.r\119 czne-SPK[data-v-4abf0bfd]{color:gold}.scenery-icon.SCS[data-v-4abf0bfd],.scenery-icon.mechaniczne-SCS[data-v-4abf0bfd],.scenery-icon.r\119 czne-SCS[data-v-4abf0bfd]{color:#00fff2}.scenery-icon.SPE[data-v-4abf0bfd]{color:#7cfc00}.scenery-icon.mechaniczne[data-v-4abf0bfd]{color:#ffaa2a}.scenery-icon.r\119 czne[data-v-4abf0bfd]{color:#111}.scenery-icon.SCS-SPK[data-v-4abf0bfd]{color:#fff}.info-icons[data-v-4abf0bfd]{display:flex;justify-content:center;flex-wrap:wrap;margin:1em}.icon-info[data-v-4abf0bfd]{display:flex;justify-content:center;align-items:center;width:3em;margin:.25em;border:2px solid #4e4e4e;border-radius:.5em}.icon-info.level[data-v-4abf0bfd]{border-radius:50%}.info-stats[data-v-58c83895]{padding:1rem 0;display:flex;flex-wrap:wrap;justify-content:center;font-size:1.65em}.info-stats.no-stats[data-v-58c83895]{opacity:.5}.info-stats>span[data-v-58c83895]{display:flex;align-items:center;margin:.3em}.info-stats .likes[data-v-58c83895],.info-stats .spawns[data-v-58c83895]{color:#ffc014}.info-stats span>img[data-v-58c83895]{width:1.2em;margin-right:.5em}.info-user-list[data-v-3f29a180]{width:100%}.info-user-list ul[data-v-3f29a180]{display:flex;flex-wrap:wrap;justify-content:center}.user[data-v-3f29a180]{cursor:pointer}.user_train[data-v-3f29a180]{color:#000;background-color:#aaa;transition:background-color .2s;-ms-transition:background-color .2s;-webkit-transition:background-color .2s}.user.no-timetable .user_train[data-v-3f29a180]{background-color:#aaa}.user.departed>.user_train[data-v-3f29a180]{background-color:#00ff7f}.user.stopped>.user_train[data-v-3f29a180]{background-color:#ffa600}.user.online>.user_train[data-v-3f29a180]{background-color:gold}.user.terminated>.user_train[data-v-3f29a180]{background-color:salmon}.user.disconnected>.user_train[data-v-3f29a180]{background-color:#708090}.user.offline[data-v-3f29a180]{background:firebrick;pointer-events:none}.spawn_length[data-v-1d073143]{background:#ffc014;color:#000}.info-routes[data-v-40c3c1c2]{display:flex;justify-content:center;flex-wrap:wrap;margin:1em 0}.routes[data-v-40c3c1c2]{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;padding:.25em}ul.routes-list[data-v-40c3c1c2]{margin:.45em .25em;display:flex}ul.routes-list li[data-v-40c3c1c2]{background-color:#007599;padding:.2em .25em;margin-left:.25em}ul.routes-list li.no-catenary[data-v-40c3c1c2]{background-color:#686868}ul.routes-list li.internal[data-v-40c3c1c2]{text-decoration:underline}ul.routes-list li b[data-v-40c3c1c2]{color:var(--clr-primary)}.badge{font-weight:600;display:inline-block;padding:0;background:#585858;margin:.25em}.badge span{display:inline-block;padding:.2em .4em}.badge-none{font-weight:600;padding:.2em .4em;background:firebrick;text-align:center}@media only screen and (max-width: 700px){.badge-none{font-size:1em}}h3.section-header{margin:.5em 0;padding:.3em;display:flex;justify-content:center;align-items:center;font-size:1.2em}h3.section-header img{width:1.1em;margin-left:.5em}.info-lists{display:flex;flex-wrap:wrap;justify-content:space-around;margin-top:1em}.info-general{margin-top:1em}.general-list{display:flex;justify-content:center;flex-wrap:wrap}.general-list span{margin:0 .15em}.scenery-topic a{font-weight:700}.scenery-name[data-v-cb812d53]{font-weight:700;position:relative;font-size:3em;text-transform:uppercase}.scenery-hash[data-v-cb812d53]{color:#aaa;font-size:1.2em}.general-status[data-v-8ae274fe]{margin-top:.5em}.general-status span.arriving[data-v-8ae274fe]{color:#ccc}.general-status span.departed[data-v-8ae274fe]{color:#0f0;font-weight:700}.general-status span.departed-away[data-v-8ae274fe]{font-weight:700;color:#5ecc5e}.general-status span.stopped[data-v-8ae274fe]{color:#ffa600;font-weight:700}.general-status span.online[data-v-8ae274fe]{color:gold}.general-status span.terminated[data-v-8ae274fe]{color:salmon;font-weight:700}.timetables-anim-move[data-v-2babfe2a],.timetables-anim-enter-active[data-v-2babfe2a],.timetables-anim-leave-active[data-v-2babfe2a]{transition:all .25s ease}.timetables-anim-enter-from[data-v-2babfe2a],.timetables-anim-leave-to[data-v-2babfe2a]{opacity:0;transform:translateY(30px)}.timetables-anim-leave-active[data-v-2babfe2a]{position:absolute}.scenery-timetable[data-v-2babfe2a]{height:100%;overflow-y:scroll;padding:0 .5em}.timetable-header[data-v-2babfe2a]{display:flex;align-items:center;justify-content:center;flex-direction:column;position:sticky;top:0;z-index:99;background-color:#181818}.timetable-header h3[data-v-2babfe2a]{display:flex;align-items:center;font-size:1.3em}.timetable-count[data-v-2babfe2a]{margin-left:.5em}.timetable-item[data-v-2babfe2a]{margin:.5em auto;padding:.5em;max-width:1100px;display:grid;grid-template-columns:repeat(auto-fit,minmax(350px,1fr));gap:2em .5em;overflow:hidden;background:#353535;cursor:pointer;z-index:10}.timetable-item.empty[data-v-2babfe2a]{padding:1rem;font-size:1.2em;color:#bbb}.timetable-general[data-v-2babfe2a]{display:flex;align-items:center;justify-content:space-between;text-align:left}.timetable-schedule[data-v-2babfe2a]{display:grid;grid-template-columns:repeat(auto-fit,minmax(30px,1fr));width:100%;max-width:400px;margin:0 auto}.timetable-list[data-v-2babfe2a]{position:relative}.timetable-checkpoints[data-v-2babfe2a]{display:flex;justify-content:center;flex-wrap:wrap;font-size:1.1em;padding:.75em 0}.timetable-checkpoints button.checkpoint_item[data-v-2babfe2a]{color:#aaa;display:inline}.timetable-checkpoints .checkpoint_item.current[data-v-2babfe2a]{font-weight:700;color:#ffc014}.arrow[data-v-2babfe2a]{border:solid white;border-width:0 2px 2px 0;display:inline-block;padding:2px;margin-left:50px;position:relative;transform:rotate(-45deg)}.arrow[data-v-2babfe2a]:before{content:"";position:absolute;display:block;width:55px;height:3px;top:4px;left:4px;transform:translate(-100%,-1px) rotate(45deg);transform-origin:right bottom;background:white}.general-info[data-v-2babfe2a]{display:flex;flex-wrap:wrap}.general-info .info-number[data-v-2babfe2a]{color:#ffc014}.general-info .info-route[data-v-2babfe2a]{width:100%}.general-info .g-tooltip>.content[data-v-2babfe2a]{z-index:100;color:#fff;left:110%}.general-info img[data-v-2babfe2a]{width:1.1em}.schedule-arrival[data-v-2babfe2a],.schedule-stop[data-v-2babfe2a],.schedule-departure[data-v-2babfe2a]{display:flex;justify-content:center;align-items:center;margin:0 .3rem;font-size:1.15em}.schedule-stop[data-v-2babfe2a]{position:relative;display:flex;flex-direction:column;font-size:.9em;padding:.3em 0}.schedule-stop .stop-line[data-v-2babfe2a]{display:flex;position:absolute}.schedule-stop .stop-line span[data-v-2babfe2a]{width:65px;word-break:break-all}.schedule-stop .stop-line span[data-v-2babfe2a]:first-child{text-align:right}.schedule-stop .stop-line span[data-v-2babfe2a]:last-child{text-align:left}.schedule-stop .stop-time[data-v-2babfe2a]{position:absolute;transform:translateY(-15px);color:#ffc014}.arrival-time.begins[data-v-2babfe2a],.departure-time.terminates[data-v-2babfe2a]{font-size:.85em}.scenery-timetable-list-anim-enter-from[data-v-2babfe2a],.scenery-timetable-list-anim-leave-to[data-v-2babfe2a]{opacity:0}.scenery-timetable-list-anim-enter-active[data-v-2babfe2a]{transition:all .1s ease-out}.scenery-timetable-list-anim-leave-active[data-v-2babfe2a]{transition:all .1s ease-out .1s}@media only screen and (max-width: 700px){.timetable-item[data-v-2babfe2a]{grid-template-columns:1fr}}.scenery-section[data-v-544bc4da]{position:relative;height:100%;overflow-y:scroll}.list-warning[data-v-544bc4da]{padding:1em .5em;background-color:#444;font-size:1.2em}.history-list[data-v-544bc4da]{padding:0 .5em}.list-item[data-v-544bc4da]{display:grid;grid-template-columns:1fr 2fr 2fr 1fr;gap:1em;align-items:center;background-color:#353535;padding:.5em;margin:.5em 0;line-height:1.5em}@media only screen and (max-width: 700px){.list-item[data-v-544bc4da]{grid-template-columns:1fr 1fr}}.scenery-section[data-v-bf5bb4e7]{position:relative;height:100%;overflow-y:scroll}.list-warning[data-v-bf5bb4e7]{padding:1em .5em;background-color:#444;font-size:1.2em}.history-list[data-v-bf5bb4e7]{padding:0 .5em}.list-item[data-v-bf5bb4e7]{display:flex;flex-wrap:wrap;justify-content:space-between;text-align:left;background-color:#353535;padding:.5em;margin:.5em 0;line-height:1.5em}.dispatcher-online[data-v-bf5bb4e7]{color:#00ff7f}@media only screen and (max-width: 700px){.history-list[data-v-bf5bb4e7]{font-size:1.1em}.list-item[data-v-bf5bb4e7]{align-items:center;flex-direction:column}}button.back-btn img[data-v-818c917d]{width:2em}.scenery-view[data-v-818c917d]{display:flex;justify-content:center;min-height:100vh}.scenery-offline[data-v-818c917d]{align-self:center;text-align:center;padding:2em 1em;color:#ffe15b;display:inline-block;font-size:1.5em}.scenery-offline button[data-v-818c917d]{margin:1em auto}.scenery-wrapper[data-v-818c917d]{display:grid;grid-template-columns:4fr 5fr;gap:0 1em;position:relative;width:100%;max-width:1700px;margin:1rem 0;text-align:center}.scenery-wrapper[data-timetable-only=true][data-v-818c917d]{grid-template-columns:1fr;max-width:1000px}.scenery-left[data-v-818c917d]{position:relative;background-color:#181818;padding:1em .5em;height:95vh;min-height:550px;max-height:1000px;overflow:auto;display:flex;flex-direction:column}.scenery-right[data-v-818c917d]{background:#181818;padding:2em .5em;height:95vh;min-height:550px;max-height:1000px;display:grid;grid-template-rows:auto 1fr;gap:1em}.scenery-actions[data-v-818c917d]{display:flex}.info-actions[data-v-818c917d]{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:.75em}.info-actions .btn[data-v-818c917d]{padding:.5em;box-shadow:0 0 10px 4px #242424}.info-actions .btn[data-checked=true][data-v-818c917d]{color:var(--clr-primary)}.timetable-checkpoints[data-v-818c917d]{display:flex;justify-content:center;flex-wrap:wrap;font-size:1.1em;margin:.75em 0}.timetable-checkpoints .checkpoint_item.current[data-v-818c917d]{font-weight:700;color:#ffc014}.timetable-checkpoints .checkpoint_item[data-v-818c917d]:not(:last-child):after{margin:0 .5em;content:"\2022";color:#fff}@media only screen and (max-width: 1150px){.scenery-wrapper[data-v-818c917d]{grid-template-columns:1fr;gap:0}.scenery-left[data-v-818c917d]{border-radius:1em;margin-bottom:1em;height:auto}.scenery-right[data-v-818c917d]{border-radius:1em;height:auto}}@media only screen and (max-width: 700px){.scenery-left[data-v-818c917d]{max-height:100vh}.scenery-right[data-v-818c917d]{height:100vh}} diff --git a/dist/assets/SceneryView-81fa6c97.js b/dist/assets/SceneryView-81fa6c97.js deleted file mode 100644 index 2862361..0000000 --- a/dist/assets/SceneryView-81fa6c97.js +++ /dev/null @@ -1 +0,0 @@ -import{a as I,b as M,x as P,c as N,_ as b,f as o,g as t,t as n,p as U,C as g,E as D,h as l,n as w,k as $,o as s,m as c,J as V,u as q,e as C,F as k,r as S,l as K,H as Q,L as B,O as X,P as Y,K as Z,Q as x,w as F,q as ee,s as ne,D as j,U as W,R as z,j as E,A as te,V as se,W as oe}from"./index-a65056c2.js";import{s as G,a as ae}from"./styleMixin-6b80ecca.js";const ie=I({mixins:[G,M,P,N],props:{station:{type:Object,default:{}},onlineFrom:{type:Number,default:-1}}});const re={class:"info-dispatcher"},le={key:0,class:"dispatcher"},ce={class:"dispatcher_likes text--primary"},de=["src"],pe={key:1,class:"status-badge"},ue={key:3,class:"status-badge free"};function he(e,p,u,h,_,m){var d;const i=$("router-link");return s(),o("section",re,[e.station.onlineInfo?(s(),o("div",le,[t("span",{class:"dispatcher_level",style:U(e.calculateExpStyle(e.station.onlineInfo.dispatcherExp,e.station.onlineInfo.dispatcherIsSupporter))},n(e.station.onlineInfo.dispatcherExp>1?e.station.onlineInfo.dispatcherExp:"L"),5),g(i,{class:"dispatcher_name",to:`/journal/dispatchers?dispatcherName=${e.station.onlineInfo.dispatcherName}`},{default:D(()=>[c(n(e.station.onlineInfo.dispatcherName),1)]),_:1},8,["to"]),t("span",ce,[t("img",{src:e.getIcon("like"),alt:"icon-like"},null,8,de),t("span",null,n(((d=e.station.onlineInfo)==null?void 0:d.dispatcherRate)||"0"),1)])])):l("",!0),e.station.onlineInfo&&e.onlineFrom>0?(s(),o("span",pe," OD "+n(new Date(e.onlineFrom).toLocaleTimeString("pl-PL",{hour:"2-digit",minute:"2-digit"})),1)):l("",!0),e.station.onlineInfo?(s(),o("span",{key:2,class:w(["status-badge",e.station.onlineInfo.statusID])},n(e.$t(`status.${e.station.onlineInfo.statusID}`))+" "+n(e.station.onlineInfo.statusID=="online"?e.timestampToString(e.station.onlineInfo.statusTimestamp):""),3)):(s(),o("span",ue,n(e.$t("status.free")),1))])}const _e=b(ie,[["render",he],["__scopeId","data-v-dd62eb36"]]),me=I({mixins:[ae,G,N],props:{station:{type:Object,default:{}}}});const ye={class:"info-icons"},fe=["title","innerHTML"],$e=["src","title"],ge=["src","alt","title"],Ie=["src","title"],be=["src","title"],ve=["src","title"],ke=["src","title"],Se=["src","title"];function Te(e,p,u,h,_,m){var i,d,a,f,y,v;return s(),o("section",ye,[e.station.generalInfo&&e.station.generalInfo.reqLevel>=0?(s(),o("span",{key:0,class:"scenery-icon icon-info level",style:U(e.calculateExpStyle(e.station.generalInfo.reqLevel))},n(e.station.generalInfo.reqLevel>=2?e.station.generalInfo.reqLevel:"L"),5)):l("",!0),e.station.generalInfo?(s(),o("span",{key:1,class:w(["scenery-icon icon-info",e.station.generalInfo.controlType.replace("+","-")]),title:e.$t("desc.control-type")+e.$t(`controls.${e.station.generalInfo.controlType}`),innerHTML:e.getControlTypeAbbrev(e.station.generalInfo.controlType)},null,10,fe)):l("",!0),(i=e.station.generalInfo)!=null&&i.SUP?(s(),o("img",{key:2,class:"icon-info",src:e.getIcon("SUP"),alt:"SUP (RASP-UZK)",title:e.$t("desc.SUP")},null,8,$e)):l("",!0),(d=e.station.generalInfo)!=null&&d.signalType?(s(),o("img",{key:3,class:"icon-info",src:e.getIcon(e.station.generalInfo.signalType),alt:e.station.generalInfo.signalType,title:e.$t("desc.signals-type")+e.$t(`signals.${e.station.generalInfo.signalType}`)},null,8,ge)):l("",!0),((a=e.station.generalInfo)==null?void 0:a.availability)=="nonPublic"?(s(),o("img",{key:4,class:"icon-info",src:e.getIcon("lock"),alt:"Non-public scenery",title:e.$t("desc.non-public")},null,8,Ie)):l("",!0),((f=e.station.generalInfo)==null?void 0:f.availability)=="unavailable"?(s(),o("img",{key:5,class:"icon-info",src:e.getIcon("unavailable"),alt:"Unavailable scenery",title:e.$t("desc.unavailable")},null,8,be)):l("",!0),((y=e.station.generalInfo)==null?void 0:y.availability)=="abandoned"?(s(),o("img",{key:6,class:"icon-info",src:e.getIcon("abandoned"),alt:"Abandoned scenery",title:e.$t("desc.abandoned")},null,8,ve)):l("",!0),(v=e.station.generalInfo)!=null&&v.lines?(s(),o("img",{key:7,class:"icon-info",src:e.getIcon("real"),alt:"real scenery",title:`${e.$t("desc.real")} ${e.station.generalInfo.lines}`},null,8,ke)):l("",!0),e.station.generalInfo?l("",!0):(s(),o("img",{key:8,class:"icon-info",src:e.getIcon("unknown"),alt:"icon-unknown",title:e.$t("desc.unknown")},null,8,Se))])}const Le=b(me,[["render",Te],["__scopeId","data-v-4abf0bfd"]]),we=I({mixins:[N],props:{station:{type:Object,default:{}}}});const Ae={class:"likes"},Ne=["src"],Ce={class:"users"},De=["src"],Oe={class:"spawns"},He=["src"],je={class:"schedules"},Ee=["src"],Me={style:{color:"#eee"}},Pe={style:{color:"#bbb"}};function qe(e,p,u,h,_,m){var i,d,a,f,y,v,T,r;return s(),o("section",{class:w(["info-stats",e.station.onlineInfo?"":"no-stats"])},[t("span",Ae,[t("img",{src:e.getIcon("like"),alt:"icon-like"},null,8,Ne),t("span",null,n(((i=e.station.onlineInfo)==null?void 0:i.dispatcherRate)||"0"),1)]),t("span",Ce,[t("img",{src:e.getIcon("user"),alt:"icon-user"},null,8,De),t("span",null,n(((d=e.station.onlineInfo)==null?void 0:d.currentUsers)||"0"),1),c(" / "),t("span",null,n(((a=e.station.onlineInfo)==null?void 0:a.maxUsers)||"0"),1)]),t("span",Oe,[t("img",{src:e.getIcon("spawn"),alt:"icon-spawn"},null,8,He),t("span",null,n(((f=e.station.onlineInfo)==null?void 0:f.spawns.length)||"0"),1)]),t("span",je,[t("img",{src:e.getIcon("timetable"),alt:"icon-timetable"},null,8,Ee),t("span",null,[t("span",Me,n(((v=(y=e.station.onlineInfo)==null?void 0:y.scheduledTrains)==null?void 0:v.length)||"0"),1),c(" / "),t("span",Pe,n(((r=(T=e.station.onlineInfo)==null?void 0:T.scheduledTrains)==null?void 0:r.filter(L=>L.stopInfo.confirmed).length)||"0"),1)])])],2)}const Be=b(we,[["render",qe],["__scopeId","data-v-58c83895"]]),Re=I({mixins:[P,N,V],props:{station:{type:Object,default:{}}},setup(e){const p=q();return{computedStationTrains:C(()=>{if(!e.station)return[];const h=e.station;return h.onlineInfo?h.onlineInfo.stationTrains?h.onlineInfo.stationTrains.map(_=>{var i,d;const m=(d=(i=h.onlineInfo)==null?void 0:i.scheduledTrains)==null?void 0:d.find(a=>a.trainNo===_.trainNo);return{..._,stopStatus:(m==null?void 0:m.stopStatus)||"no-timetable"}}):[]:[]}),store:p}}});const Fe={class:"info-user-list"},Ue={class:"user-header section-header"},Ve=["src"],Ke={class:"text--primary"},Ye={class:"text--primary"},We=["onClick","onKeydown"],ze={class:"user_train"},Ge={class:"user_name"},Je={key:0,class:"badge user badge-none"};function Qe(e,p,u,h,_,m){var i,d;return s(),o("section",Fe,[t("h3",Ue,[t("img",{src:e.getIcon("user"),alt:"icon-user"},null,8,Ve),c("  "+n(e.$t("scenery.users"))+"   ",1),t("span",Ke,n(((i=e.station.onlineInfo)==null?void 0:i.currentUsers)||"0"),1),c(" / "),t("span",Ye,n(((d=e.station.onlineInfo)==null?void 0:d.maxUsers)||"0"),1)]),(s(!0),o(k,null,S(e.computedStationTrains,(a,f)=>(s(),o("div",{class:w(["badge user",a.stopStatus]),key:a.trainId,tabindex:"0",onClick:y=>e.selectModalTrain(a.trainId),onKeydown:K(y=>e.selectModalTrain(a.trainId),["enter"])},[t("span",ze,n(a.trainNo),1),t("span",Ge,n(a.driverName),1)],42,We))),128)),!e.computedStationTrains||e.computedStationTrains.length==0?(s(),o("div",Je,n(e.$t("scenery.no-users")),1)):l("",!0)])}const Xe=b(Re,[["render",Qe],["__scopeId","data-v-3f29a180"]]),Ze=I({mixins:[N],props:{station:{type:Object,default:{}}}});const xe={class:"info-spawn-list"},en={class:"spawn-header section-header"},nn=["src"],tn={class:"text--primary"},sn={key:0},on={class:"spawn_name"},an={class:"spawn_length"},rn={key:1,class:"badge spawn badge-none"};function ln(e,p,u,h,_,m){var i;return s(),o("section",xe,[t("h3",en,[t("img",{src:e.getIcon("spawn"),alt:"icon-spawn"},null,8,nn),c("  "+n(e.$t("scenery.spawns"))+"   ",1),t("span",tn,n(((i=e.station.onlineInfo)==null?void 0:i.spawns.length)||"0"),1)]),e.station.onlineInfo?(s(),o("span",sn,[(s(!0),o(k,null,S(e.station.onlineInfo.spawns,(d,a)=>{var f;return s(),o("span",{class:"badge spawn",key:d.spawnName+((f=e.station.onlineInfo)==null?void 0:f.dispatcherName)+a},[t("span",on,n(d.spawnName),1),t("span",an,n(d.spawnLength)+"m",1)])}),128))])):l("",!0),!e.station.onlineInfo||e.station.onlineInfo.spawns.length==0?(s(),o("span",rn,n(e.$t("scenery.no-spawns")),1)):l("",!0)])}const cn=b(Ze,[["render",ln],["__scopeId","data-v-1d073143"]]),dn=I({props:{station:{type:Object,default:{}}}});const pn={key:0,class:"info-routes"},un={key:0,class:"routes one-way"},hn={class:"routes-list"},_n={key:0},mn={key:1,class:"routes two-way"},yn={class:"routes-list"},fn={key:0};function $n(e,p,u,h,_,m){return e.station.generalInfo?(s(),o("section",pn,[e.station.generalInfo.routes.oneWay.length>0?(s(),o("div",un,[t("b",null,n(e.$t("scenery.one-way-routes")),1),t("ul",hn,[(s(!0),o(k,null,S(e.station.generalInfo.routes.oneWay,i=>(s(),o("li",{class:w({"no-catenary":!i.catenary,internal:i.isInternal})},[c(n(i.name)+" ",1),i.SBL?(s(),o("b",_n,"SBL")):l("",!0)],2))),256))])])):l("",!0),e.station.generalInfo.routes.twoWay.length>0?(s(),o("div",mn,[t("b",null,n(e.$t("scenery.two-way-routes")),1),t("ul",yn,[(s(!0),o(k,null,S(e.station.generalInfo.routes.twoWay,i=>(s(),o("li",{class:w({"no-catenary":!i.catenary,internal:i.isInternal})},[c(n(i.name)+" ",1),i.SBL?(s(),o("b",fn,"SBL")):l("",!0)],2))),256))])])):l("",!0)])):l("",!0)}const gn=b(dn,[["render",$n],["__scopeId","data-v-40c3c1c2"]]),In=I({components:{SceneryInfoDispatcher:_e,SceneryInfoIcons:Le,SceneryInfoStats:Be,SceneryInfoUserList:Xe,SceneryInfoSpawnList:cn,SceneryInfoRoutes:gn},props:{station:{type:Object,default:{}},timetableOnly:Boolean},data:()=>({onlineFrom:-1})});const bn={class:"scenery-info"},vn={key:0},kn={key:0,class:"info-general"},Sn={class:"general-list"},Tn={key:0},Ln={key:0},wn={key:1},An={style:{color:"salmon"}},Nn={key:0,class:"scenery-authors"},Cn=t("br",null,null,-1),Dn={key:1,class:"scenery-topic"},On=["href"],Hn=t("div",{style:{margin:"2em 0",height:"2px","background-color":"white"}},null,-1),jn={class:"info-lists"};function En(e,p,u,h,_,m){const i=$("scenery-info-icons"),d=$("scenery-info-routes"),a=$("scenery-info-dispatcher"),f=$("scenery-info-user-list"),y=$("scenery-info-spawn-list");return s(),o("div",bn,[e.timetableOnly?l("",!0):(s(),o("section",vn,[e.station.generalInfo?(s(),o("div",kn,[g(i,{station:e.station},null,8,["station"]),t("div",Sn,[t("span",null,[t("b",null,n(e.$t("availability.title"))+":",1),c(" "+n(e.$t(`availability.${e.station.generalInfo.availability}`))+" ",1),e.station.generalInfo.reqLevel>-1?(s(),o("span",Tn," - "+n(e.$t("scenery.req-level",{lvl:e.station.generalInfo.reqLevel},e.station.generalInfo.reqLevel)),1)):l("",!0)]),t("span",null,[c(" • "),t("b",null,n(e.$t("controls.title"))+":",1),c(" "+n(e.$t(`controls.${e.station.generalInfo.controlType}`)),1)]),t("span",null,[c(" • "),t("b",null,n(e.$t("signals.title"))+":",1),c(" "+n(e.$t(`signals.${e.station.generalInfo.signalType}`)),1)]),e.station.generalInfo.lines?(s(),o("span",Ln,[c(" • "),t("b",null,n(e.$t("scenery.lines-title"))+":",1),c(" "+n(e.station.generalInfo.lines),1)])):l("",!0),e.station.generalInfo.project?(s(),o("span",wn,[c(" • "),t("b",null,n(e.$t("scenery.project-title"))+": ",1),t("b",An,n(e.station.generalInfo.project),1)])):l("",!0)]),g(d,{station:e.station},null,8,["station"]),e.station.generalInfo.authors&&e.station.generalInfo.authors.length>0?(s(),o("div",Nn,[t("b",null,n(e.$t("scenery.authors-title",{authors:e.station.generalInfo.authors.length},e.station.generalInfo.authors.length))+": ",1),c(" "+n(e.station.generalInfo.authors.join(", ")),1)])):l("",!0),Cn,e.station.generalInfo.url?(s(),o("div",Dn,[t("a",{href:e.station.generalInfo.url,target:"_blank"}," > "+n(e.$t("scenery.forum-topic",{name:e.station.name}))+" < ",9,On)])):l("",!0)])):l("",!0),Hn,g(a,{station:e.station,onlineFrom:e.onlineFrom},null,8,["station","onlineFrom"]),t("div",jn,[g(f,{station:e.station},null,8,["station"]),g(y,{station:e.station},null,8,["station"])])]))])}const Mn=b(In,[["render",En]]),Pn=I({props:{station:{type:Object,default:{}}}});const qn={class:"info-header"},Bn=["href"],Rn={key:0,class:"scenery-hash"};function Fn(e,p,u,h,_,m){var i,d;return s(),o("section",qn,[t("a",{class:"scenery-name",href:(i=e.station.generalInfo)==null?void 0:i.url},n(e.station.name),9,Bn),(d=e.station.onlineInfo)!=null&&d.hash?(s(),o("div",Rn,"#"+n(e.station.onlineInfo.hash),1)):l("",!0)])}const Un=b(Pn,[["render",Fn],["__scopeId","data-v-cb812d53"]]),Vn=I({props:{scheduledTrain:{type:Object,required:!0}}});const Kn={class:"general-status"},Yn={key:0},Wn={key:0},zn={key:1},Gn={key:1},Jn={key:0},Qn={key:2},Xn={key:0},Zn={key:3},xn={key:0},et={key:1},nt={key:2},tt={key:4},st={key:0},ot={key:5};function at(e,p,u,h,_,m){return s(),o("div",Kn,[t("span",{class:w(e.scheduledTrain.stopStatus)},[e.scheduledTrain.stopStatus=="arriving"?(s(),o("span",Yn,[e.scheduledTrain.prevDepartureLine?(s(),o("span",Wn,"("+n(e.scheduledTrain.prevDepartureLine)+")",1)):l("",!0),c(" "+n(e.scheduledTrain.prevStationName)+" >",1),e.scheduledTrain.nextArrivalLine?(s(),o("span",zn," ("+n(e.scheduledTrain.nextArrivalLine)+") ",1)):l("",!0),c(" "+n(e.scheduledTrain.nextStationName||"---"),1)])):e.scheduledTrain.stopStatus=="departed"?(s(),o("span",Gn,[c(" >> "),e.scheduledTrain.nextArrivalLine?(s(),o("span",Jn," ("+n(e.scheduledTrain.nextArrivalLine)+") ",1)):l("",!0),c(" "+n(e.scheduledTrain.nextStationName),1)])):e.scheduledTrain.stopStatus=="departed-away"?(s(),o("span",Qn,[c(" >>> "),e.scheduledTrain.nextArrivalLine?(s(),o("span",Xn," ("+n(e.scheduledTrain.nextArrivalLine)+") ",1)):l("",!0),c(" "+n(e.scheduledTrain.nextStationName),1)])):e.scheduledTrain.stopStatus=="online"?(s(),o("span",Zn,[c(" > "),e.scheduledTrain.nextArrivalLine?(s(),o("span",xn," ("+n(e.scheduledTrain.nextArrivalLine)+") "+n(e.scheduledTrain.nextStationName),1)):e.scheduledTrain.nextStationName?(s(),o("span",nt,n(e.scheduledTrain.nextStationName),1)):(s(),o("span",et,n(e.$t("timetables.end")),1))])):e.scheduledTrain.stopStatus=="stopped"?(s(),o("span",tt,[c(" > "),e.scheduledTrain.nextArrivalLine?(s(),o("span",st," ("+n(e.scheduledTrain.nextArrivalLine)+") ",1)):l("",!0),c(" "+n(e.scheduledTrain.nextStationName),1)])):e.scheduledTrain.stopStatus=="terminated"?(s(),o("span",ot,"X "+n(e.$t("timetables.terminated")),1)):l("",!0)],2)])}const it=b(Vn,[["render",at],["__scopeId","data-v-8ae274fe"]]),rt=I({name:"SceneryTimetable",components:{SelectBox:Q,Loading:B,TrainModal:X,ScheduledTrainStatus:it},mixins:[M,P,N,V],props:{station:{type:Object,required:!0},timetableOnly:{type:Boolean}},data:()=>({listOpen:!1}),setup(e){var i,d,a,f,y;const p=Y(),u=C(()=>`${location.origin}${p.fullPath}`),h=q(),_=Z(((a=(d=(i=e.station)==null?void 0:i.generalInfo)==null?void 0:d.checkpoints)==null?void 0:a.length)==0?"":((y=(f=e.station)==null?void 0:f.generalInfo)==null?void 0:y.checkpoints[0].checkpointName)||""),m=C(()=>{var r,L,O;if(!e.station)return[];const v=e.station;let T=((L=(r=v.generalInfo)==null?void 0:r.checkpoints.find(A=>A.checkpointName===_.value))==null?void 0:L.scheduledTrains)||((O=v.onlineInfo)==null?void 0:O.scheduledTrains)||[];return T?T.sort((A,H)=>A.stopStatusID>H.stopStatusID?1:A.stopStatusIDH.stopInfo.arrivalTimestamp?1:A.stopInfo.arrivalTimestampH.stopInfo.departureTimestamp?1:-1)||[]:[]});return{currentURL:u,selectedCheckpoint:_,computedScheduledTrains:m,store:h}},methods:{loadSelectedOption(){this.station&&this.station.generalInfo&&this.station.generalInfo.checkpoints&&this.station.generalInfo.checkpoints.length!=0&&this.selectedCheckpoint==""&&(this.selectedCheckpoint=this.station.generalInfo.checkpoints[0].checkpointName)},selectCheckpoint(e){this.selectedCheckpoint=e.checkpointName},showTimetableOnlyView(){this.$router.push(`${this.$route.fullPath}&timetableOnly=1`)}},mounted(){this.loadSelectedOption()},activated(){this.loadSelectedOption()}});const R=e=>(ee("data-v-2babfe2a"),e=e(),ne(),e),lt={class:"scenery-timetable"},ct={class:"timetable-header"},dt=["src"],pt={class:"text--primary"},ut=R(()=>t("span",null," / ",-1)),ht={class:"text--grayed"},_t={key:0,class:"timetable-checkpoints"},mt=["onClick"],yt={class:"timetable-list"},ft={key:0,style:{"padding-bottom":"5em"}},$t={key:1,class:"timetable-item empty"},gt={key:2,class:"timetable-item empty"},It=["onClick","onKeydown"],bt={class:"timetable-general"},vt={class:"general-info"},kt={class:"info-number"},St={key:0,class:"g-tooltip"},Tt=["src"],Lt=["innerHTML"],wt={class:"info-route"},At={class:"timetable-schedule"},Nt={class:"schedule-arrival"},Ct={key:0,class:"arrival-time begins"},Dt={key:1,class:"arrival-time"},Ot={key:0},Ht={key:1},jt={style:{"margin-right":"0.2em"},class:"text--grayed"},Et={class:"schedule-stop"},Mt={class:"stop-time"},Pt={key:0},qt={key:1},Bt=R(()=>t("span",{class:"arrow"},null,-1)),Rt={class:"stop-line"},Ft=R(()=>t("span",null,null,-1)),Ut={class:"schedule-departure"},Vt={key:0,class:"departure-time terminates"},Kt={key:1,class:"departure-time"},Yt={key:0},Wt={key:1},zt={style:{"margin-right":"0.2em"},class:"text--grayed"};function Gt(e,p,u,h,_,m){var a,f,y,v,T;const i=$("Loading"),d=$("ScheduledTrainStatus");return s(),o("section",lt,[t("div",ct,[t("h3",null,[t("img",{src:e.getIcon("timetable"),alt:"icon-timetable"},null,8,dt),c("  "),t("span",null,n(e.$t("scenery.timetables")),1),c("   "),t("span",pt,n(((f=(a=e.station.onlineInfo)==null?void 0:a.scheduledTrains)==null?void 0:f.length)||"0"),1),ut,t("span",ht,n(((v=(y=e.station.onlineInfo)==null?void 0:y.scheduledTrains)==null?void 0:v.filter(r=>r.stopInfo.confirmed).length)||"0"),1)]),e.station&&((T=e.station.generalInfo)!=null&&T.checkpoints)?(s(),o("div",_t,[(s(!0),o(k,null,S(e.station.generalInfo.checkpoints,(r,L)=>(s(),o("span",{key:L},[c(n(L>0&&"•"||"")+" ",1),(s(),o("button",{key:r.checkpointName,class:w(["checkpoint_item",{current:e.selectedCheckpoint===r.checkpointName}]),onClick:O=>e.selectCheckpoint(r)},n(r.checkpointName),11,mt))]))),128))])):l("",!0)]),t("div",yt,[e.store.dataStatuses.trains==0&&e.computedScheduledTrains.length==0?(s(),o("div",ft,[g(i)])):e.computedScheduledTrains.length==0&&!e.station.onlineInfo?(s(),o("span",$t,n(e.$t("scenery.offline")),1)):e.computedScheduledTrains.length==0?(s(),o("span",gt,n(e.$t("scenery.no-timetables")),1)):l("",!0),g(x,{name:"timetables-anim"},{default:D(()=>[(s(!0),o(k,null,S(e.computedScheduledTrains,(r,L)=>(s(),o("div",{class:"timetable-item",key:r.trainId,tabindex:"0",onClick:F(O=>e.selectModalTrain(r.trainId),["prevent","stop"]),onKeydown:K(F(O=>e.selectModalTrain(r.trainId),["prevent"]),["enter"])},[t("span",bt,[t("span",vt,[t("span",kt,[t("strong",null,n(r.category),1),c(" "+n(r.trainNo)+" ",1),r.stopInfo.comments?(s(),o("span",St,[t("img",{src:e.getIcon("warning")},null,8,Tt),t("span",{class:"content",innerHTML:r.stopInfo.comments},null,8,Lt)])):l("",!0)]),c("  |  "),t("span",null,n(r.driverName),1),t("div",wt,[t("strong",null,n(r.beginsAt)+" - "+n(r.terminatesAt),1)]),g(d,{scheduledTrain:r},null,8,["scheduledTrain"])])]),t("span",At,[t("span",Nt,[r.stopInfo.beginsHere?(s(),o("span",Ct,n(e.$t("timetables.begins")),1)):(s(),o("span",Dt,[r.stopInfo.arrivalDelay==0?(s(),o("div",Ot,[t("span",null,n(e.timestampToString(r.stopInfo.arrivalTimestamp)),1)])):(s(),o("div",Ht,[t("div",null,[t("s",jt,n(e.timestampToString(r.stopInfo.arrivalTimestamp)),1)]),t("span",null,n(e.timestampToString(r.stopInfo.arrivalRealTimestamp))+" ("+n(r.stopInfo.arrivalDelay>0?"+":"")+n(r.stopInfo.arrivalDelay)+") ",1)]))]))]),t("span",Et,[t("span",Mt,[r.stopInfo.stopTime?(s(),o("span",Pt,n(r.stopInfo.stopTime)+" "+n(r.stopInfo.stopType||"pt"),1)):(s(),o("span",qt," "))]),Bt,t("span",Rt,[t("span",null,n(r.arrivingLine),1),Ft,t("span",null,n(r.departureLine),1)])]),t("span",Ut,[r.stopInfo.terminatesHere?(s(),o("span",Vt,n(e.$t("timetables.terminates")),1)):(s(),o("span",Kt,[r.stopInfo.departureDelay==0?(s(),o("div",Yt,[t("span",null,n(e.timestampToString(r.stopInfo.departureTimestamp)),1)])):(s(),o("div",Wt,[t("div",null,[t("s",zt,n(e.timestampToString(r.stopInfo.departureTimestamp)),1)]),t("span",null,n(e.timestampToString(r.stopInfo.departureRealTimestamp))+" ("+n(r.stopInfo.departureDelay>0?"+":"")+n(r.stopInfo.departureDelay)+") ",1)]))]))])])],40,It))),128))]),_:1})])])}const Jt=b(rt,[["render",Gt],["__scopeId","data-v-2babfe2a"]]),Qt=I({name:"SceneryTimetablesHistory",mixins:[M],props:{station:{type:Object,required:!0}},data(){return{sceneryHistoryList:[],dataStatus:j.Loading}},mounted(){this.fetchAPIData()},methods:{async fetchAPIData(e=0,p=15){try{const u=`${W.stacjownikAPI}/api/getSceneryTimetables?name=${this.station.name}&countFrom=${e}&countLimit=${p}`,h=await(await z.get(u)).data;this.sceneryHistoryList=h.sceneryTimetables,this.dataStatus=j.Loaded}catch(u){console.error(u)}}},components:{Loading:B}});const Xt={class:"scenery-timetables-history scenery-section"},Zt={key:1,class:"list-warning"},xt={key:2,class:"history-list"},es={class:"list-item"},ns={class:"text--grayed"},ts={class:"text--primary"},ss={key:0},os={key:1};function as(e,p,u,h,_,m){const i=$("Loading"),d=$("router-link");return s(),o("section",Xt,[e.dataStatus!=2?(s(),E(i,{key:0})):e.sceneryHistoryList.length==0?(s(),o("div",Zt,n(e.$t("scenery.history-list-empty")),1)):(s(),o("ul",xt,[(s(!0),o(k,null,S(e.sceneryHistoryList,a=>(s(),o("li",es,[t("div",null,[t("b",null,n(e.localeDay(a.beginDate,e.$i18n.locale)),1),c(" "+n(e.localeTime(a.beginDate,e.$i18n.locale)),1)]),t("div",null,[g(d,{to:`/journal/timetables?timetableId=${a.timetableId}`},{default:D(()=>[t("span",ns," #"+n(a.timetableId),1),t("b",ts," "+n(a.trainCategoryCode)+" "+n(a.trainNo),1),t("div",null,n(a.driverName),1)]),_:2},1032,["to"])]),t("div",null,n(a.route.replace("|"," -> ")),1),t("div",null,[c(n(e.$t("scenery.timetable-author-title"))+": ",1),a.authorName?(s(),o("b",ss,n(a.authorName),1)):(s(),o("i",os,n(e.$t("scenery.timetable-author-unknown")),1))])]))),256))]))])}const is=b(Qt,[["render",as],["__scopeId","data-v-544bc4da"]]),rs=I({name:"SceneryDispatchersHistory",mixins:[M],props:{station:{type:Object,required:!0}},data(){return{dispatcherHistoryList:[],dataStatus:j.Loading}},mounted(){this.fetchAPIData()},methods:{async fetchAPIData(e=0,p=30){try{const u=`${W.stacjownikAPI}/api/getDispatchers?stationName=${this.station.name}&countFrom=${e}&countLimit=${p}`,h=await(await z.get(u)).data;this.dispatcherHistoryList=h,this.dataStatus=j.Loaded}catch(u){console.error(u)}}},components:{Loading:B}});const ls={class:"scenery-dispatchers-history scenery-section"},cs={key:1,class:"list-warning"},ds={key:2,class:"history-list"},ps={class:"list-item"},us={class:"text--grayed"},hs={key:0},_s={key:1,class:"dispatcher-online"};function ms(e,p,u,h,_,m){const i=$("Loading"),d=$("router-link");return s(),o("section",ls,[e.dataStatus!=2?(s(),E(i,{key:0})):e.dispatcherHistoryList.length==0?(s(),o("div",cs,n(e.$t("scenery.history-list-empty")),1)):(s(),o("ul",ds,[(s(!0),o(k,null,S(e.dispatcherHistoryList,a=>(s(),o("li",ps,[t("div",null,[g(d,{to:`/journal/dispatchers?dispatcherName=${a.dispatcherName}`},{default:D(()=>[t("span",us,"#"+n(a.stationHash)+" ",1),t("b",null,n(a.dispatcherName),1)]),_:2},1032,["to"])]),a.timestampTo?(s(),o("div",hs,[t("b",null,n(e.$d(a.timestampFrom)),1),c(" "+n(e.timestampToString(a.timestampFrom))+" - "+n(e.timestampToString(a.timestampTo))+" ("+n(e.calculateDuration(a.currentDuration))+") ",1)])):(s(),o("div",_s,[c(n(e.$t("journal.online-since"))+" ",1),t("b",null,n(e.timestampToString(a.timestampFrom)),1),c(" ("+n(e.calculateDuration(a.currentDuration))+") ",1)]))]))),256))]))])}const ys=b(rs,[["render",ms],["__scopeId","data-v-bf5bb4e7"]]);var J=(e=>(e[e.TIMETABLES_ACTIVE=0]="TIMETABLES_ACTIVE",e[e.TIMETABLES_HISTORY=1]="TIMETABLES_HISTORY",e[e.SCENERY_HISTORY=2]="SCENERY_HISTORY",e))(J||{});const fs=I({components:{SceneryInfo:Mn,SceneryTimetable:Jt,ActionButton:te,SceneryHeader:Un,SceneryTimetablesHistory:is,SceneryDispatchersHistory:ys},mixins:[P,N],data:()=>({viewModes:[{id:"scenery.option-active-timetables",component:"SceneryTimetable"},{id:"scenery.option-timetables-history",component:"SceneryTimetablesHistory"},{id:"scenery.option-dispatchers-history",component:"SceneryDispatchersHistory"}],sceneryViewMode:J,selectedCheckpoint:"",currentViewCompontent:"SceneryTimetable",onlineFrom:-1}),activated(){this.loadSelectedCheckpoint()},setup(){const e=Y(),p=q(),u=C(()=>e.query.timetableOnly=="1"),h=C(()=>e.path==="/scenery"),_=C(()=>p.stationList.find(m=>{var i;return m.name===((i=e.query.station)==null?void 0:i.toString().replace(/_/g," "))}));return{timetableOnly:u,isComponentVisible:h,stationInfo:_,store:p}},methods:{setViewMode(e){this.currentViewCompontent=e},loadSelectedCheckpoint(){var e,p;(p=(e=this.stationInfo)==null?void 0:e.generalInfo)!=null&&p.checkpoints&&this.stationInfo.generalInfo.checkpoints.length!=0&&(this.selectedCheckpoint=this.stationInfo.generalInfo.checkpoints[0].checkpointName)},selectCheckpoint(e){this.selectedCheckpoint=e.checkpointName}}});const $s={class:"scenery-view"},gs={key:0,class:"scenery-offline"},Is=["data-timetable-only"],bs={key:0,class:"scenery-left"},vs={class:"scenery-actions"},ks=["title"],Ss=["src"],Ts={class:"scenery-right"},Ls={class:"info-actions"},ws=["onClick","data-checked"];function As(e,p,u,h,_,m){const i=$("router-link"),d=$("action-button"),a=$("SceneryHeader"),f=$("SceneryInfo");return s(),o("div",$s,[!e.stationInfo&&e.isComponentVisible&&e.store.dataStatuses.sceneries==2?(s(),o("div",gs,[t("div",null,n(e.$t("scenery.no-scenery")),1),g(d,null,{default:D(()=>[g(i,{to:"/"},{default:D(()=>[c(n(e.$t("scenery.return-btn")),1)]),_:1})]),_:1})])):l("",!0),e.stationInfo?(s(),o("div",{key:1,class:"scenery-wrapper",ref:"card-wrapper","data-timetable-only":e.timetableOnly},[e.timetableOnly?l("",!0):(s(),o("div",bs,[t("div",vs,[t("button",{class:"back-btn btn",title:e.$t("scenery.return-btn"),onClick:p[0]||(p[0]=y=>e.navigateTo("/"))},[t("img",{src:e.getIcon("back"),alt:"Back to scenery"},null,8,Ss)],8,ks)]),g(a,{station:e.stationInfo},null,8,["station"]),g(f,{station:e.stationInfo},null,8,["station"])])),t("div",Ts,[t("div",Ls,[(s(!0),o(k,null,S(e.viewModes,y=>(s(),o("button",{class:"btn btn--option",onClick:v=>e.setViewMode(y.component),"data-checked":e.currentViewCompontent==y.component},n(e.$t(y.id)),9,ws))),256))]),(s(),E(oe,null,[(s(),E(se(e.currentViewCompontent),{station:e.stationInfo,timetableOnly:e.timetableOnly,key:e.currentViewCompontent},null,8,["station","timetableOnly"]))],1024))])],8,Is)):l("",!0)])}const Ds=b(fs,[["render",As],["__scopeId","data-v-818c917d"]]);export{Ds as default}; diff --git a/dist/assets/StationsView-a5a80075.js b/dist/assets/StationsView-a5a80075.js deleted file mode 100644 index 0ab71b9..0000000 --- a/dist/assets/StationsView-a5a80075.js +++ /dev/null @@ -1 +0,0 @@ -import{d as ue,i as de,S as d,a as V,L as ce,b as fe,c as ie,u as A,e as he,D as pe,_ as R,f as i,g as o,h as f,F as w,r as k,j as le,t as l,k as M,o as a,n as $,w as se,l as D,m as N,p as re,q as me,s as ge,A as Ie,v as ye,x as ve,y as Se,z as F,B as E,C as W,E as _e,T as be,G as $e,H as Ce}from"./index-a65056c2.js";import{r as we}from"./returnBtnMixin-ddf8068c.js";import{s as ke,a as Te}from"./styleMixin-6b80ecca.js";const Le=(e,n,r)=>{var g,y,v,h,t,s,p,m,S,_,c,u,C,T,L,I,b,O,z,P,U,K,B,q,j,G,Y,Z,J,Q,X,x,ee,ne,te,oe;switch(r.index){case 0:return r.dir==1?e.name.localeCompare(n.name):n.name.localeCompare(e.name);case 1:if((((g=e.generalInfo)==null?void 0:g.reqLevel)||0)>(((y=n.generalInfo)==null?void 0:y.reqLevel)||0))return r.dir;if((((v=e.generalInfo)==null?void 0:v.reqLevel)||0)<(((h=n.generalInfo)==null?void 0:h.reqLevel)||0))return-r.dir;break;case 2:if((((t=e.onlineInfo)==null?void 0:t.statusTimestamp)||0)>(((s=n.onlineInfo)==null?void 0:s.statusTimestamp)||0))return r.dir;if((((p=e.onlineInfo)==null?void 0:p.statusTimestamp)||0)<(((m=n.onlineInfo)==null?void 0:m.statusTimestamp)||0))return-r.dir;break;case 3:if((((S=e.onlineInfo)==null?void 0:S.dispatcherName.toLowerCase())||"")>(((_=n.onlineInfo)==null?void 0:_.dispatcherName.toLowerCase())||""))return r.dir;if((((c=e.onlineInfo)==null?void 0:c.dispatcherName.toLowerCase())||"")<(((u=n.onlineInfo)==null?void 0:u.dispatcherName.toLowerCase())||""))return-r.dir;break;case 4:if((((C=e.onlineInfo)==null?void 0:C.dispatcherExp)||0)>(((T=n.onlineInfo)==null?void 0:T.dispatcherExp)||0))return r.dir;if((((L=e.onlineInfo)==null?void 0:L.dispatcherExp)||0)<(((I=n.onlineInfo)==null?void 0:I.dispatcherExp)||0))return-r.dir;break;case 7:if((((b=e.onlineInfo)==null?void 0:b.currentUsers)||0)>(((O=n.onlineInfo)==null?void 0:O.currentUsers)||0))return r.dir;if((((z=e.onlineInfo)==null?void 0:z.currentUsers)||0)<(((P=n.onlineInfo)==null?void 0:P.currentUsers)||0))return-r.dir;if((((U=e.onlineInfo)==null?void 0:U.maxUsers)||0)>(((K=n.onlineInfo)==null?void 0:K.maxUsers)||0))return r.dir;if((((B=e.onlineInfo)==null?void 0:B.maxUsers)||0)<(((q=n.onlineInfo)==null?void 0:q.maxUsers)||0))return-r.dir;break;case 8:if((((j=e.onlineInfo)==null?void 0:j.spawns.length)||0)>(((G=n.onlineInfo)==null?void 0:G.spawns.length)||0))return r.dir;if((((Y=e.onlineInfo)==null?void 0:Y.spawns.length)||0)<(((Z=n.onlineInfo)==null?void 0:Z.spawns.length)||0))return-r.dir;break;case 9:if((((Q=(J=e.onlineInfo)==null?void 0:J.scheduledTrains)==null?void 0:Q.length)||0)>(((x=(X=n.onlineInfo)==null?void 0:X.scheduledTrains)==null?void 0:x.length)||0))return r.dir;if((((ne=(ee=e.onlineInfo)==null?void 0:ee.scheduledTrains)==null?void 0:ne.length)||0)<(((oe=(te=n.onlineInfo)==null?void 0:te.scheduledTrains)==null?void 0:oe.length)||0))return-r.dir}return e.name.localeCompare(n.name)},Fe=(e,n)=>{var g,y,v,h,t,s,p,m,S,_;if((((g=e.generalInfo)==null?void 0:g.availability)=="nonPublic"||!e.generalInfo)&&n.nonPublic||((y=e.onlineInfo)==null?void 0:y.statusID)=="ending"&&n.ending||e.onlineInfo&&e.onlineInfo.statusTimestamp>0&&n.onlineFromHours<8&&e.onlineInfo.statusTimestamp<=Date.now()+n.onlineFromHours*36e5||n.onlineFromHours>0&&e.onlineInfo&&e.onlineInfo.statusTimestamp<=0||n.onlineFromHours==8&&((v=e.onlineInfo)==null?void 0:v.statusID)!="no-limit"||((h=e.onlineInfo)==null?void 0:h.statusID)=="ending"&&n.endingStatus||(((t=e.onlineInfo)==null?void 0:t.statusID)=="not-signed"||((s=e.onlineInfo)==null?void 0:s.statusID)=="unavailable")&&n.unavailableStatus||((p=e.onlineInfo)==null?void 0:p.statusID)=="brb"&&n.afkStatus||((m=e.onlineInfo)==null?void 0:m.statusID)=="no-space"&&n.noSpaceStatus||e.onlineInfo&&n.occupied||!e.onlineInfo&&n.free||((S=e.generalInfo)==null?void 0:S.availability)=="unavailable"&&n.unavailable&&!e.onlineInfo)return!1;if(e.generalInfo){const c=e.generalInfo.routes,u=e.generalInfo.availability;if(n.abandoned&&u=="abandoned"&&!e.onlineInfo||u=="default"&&n.default||u!="default"&&n.notDefault&&!(u=="abandoned"||u=="unavailable")||n.real&&e.generalInfo.lines!=""||n.fictional&&e.generalInfo.lines==""&&u!="abandoned"&&u!="unavailable"||e.generalInfo.reqLevel+(u=="nonPublic"||u=="unavailable"||u=="abandoned"?1:0)n.maxLevel||n["no-1track"]&&(c.oneWayCatenaryRouteNames.length!=0||c.oneWayNoCatenaryRouteNames.length!=0)||n["no-2track"]&&(c.twoWayCatenaryRouteNames.length!=0||c.twoWayNoCatenaryRouteNames.length!=0)||c.oneWayCatenaryRouteNames.length0||n.authors.length>3&&!((_=e.generalInfo.authors)!=null&&_.map(C=>C.toLocaleLowerCase()).includes(n.authors.toLocaleLowerCase())))return!1}return!0},ae={default:!1,notDefault:!1,real:!1,fictional:!1,SPK:!1,SCS:!1,SPE:!1,SUP:!1,ręczne:!1,mechaniczne:!1,współczesna:!1,kształtowa:!1,historyczna:!1,mieszana:!1,SBL:!1,minLevel:0,maxLevel:20,minOneWayCatenary:0,minOneWay:0,minTwoWayCatenary:0,minTwoWay:0,"include-selected":!1,"no-1track":!1,"no-2track":!1,free:!0,occupied:!1,ending:!1,nonPublic:!1,unavailable:!0,abandoned:!0,afkStatus:!1,endingStatus:!1,noSpaceStatus:!1,unavailableStatus:!1,unsignedStatus:!1,authors:"",onlineFromHours:0},H=ue("stationFiltersStore",{state(){return{inputs:de,filters:{...ae},sorterActive:{index:0,dir:1}}},actions:{getFilteredStationList(e,n){return e.map(r=>(r.onlineInfo&&r.onlineInfo.region!=n&&delete r.onlineInfo,r)).filter(r=>Fe(r,this.filters)).sort((r,g)=>Le(r,g,this.sorterActive))},setupFilters(){d.isRegistered("options_saved")&&(this.inputs.options.forEach(e=>{if(!d.isRegistered(e.id))return;const n=d.getBooleanValue(e.id);this.filters[e.id]=n,e.value=!n}),this.inputs.sliders.forEach(e=>{if(!d.isRegistered(e.name))return;const n=d.getNumericValue(e.name);this.filters[e.name]=n,e.value=n}))},changeFilterValue(e){this.filters[e.name]=e.value,d.isRegistered("options_saved")&&d.setValue(e.name,e.value)},resetFilters(){this.filters={...ae},this.inputs.options.forEach(e=>{e.value=e.defaultValue,d.setBooleanValue(e.name,!e.defaultValue)}),this.inputs.sliders.forEach(e=>{e.value=e.defaultValue,d.setNumericValue(e.name,e.defaultValue)})},changeSorter(e){e>4&&e<7||(e==this.sorterActive.index?this.sorterActive.dir=-1*this.sorterActive.dir:this.sorterActive.dir=1,this.sorterActive.index=e)}}}),Ne=V({props:{stations:{type:Array,required:!0}},components:{Loading:ce},mixins:[ke,fe,Te,we,ie],data:()=>({headIds:["station","min-lvl","status","dispatcher","dispatcher-lvl","routes","general"],headIconsIds:["user","spawn","timetable"],lastSelectedStationName:""}),computed:{sorterActive(){return this.stationFiltersStore.sorterActive}},setup(){const e=A(),n=H();return{isDataLoaded:he(()=>e.dataStatuses.sceneries!=pe.Loading),stationFiltersStore:n}},methods:{setScenery(e){const n=this.stations.find(r=>r.name===e);n&&(this.lastSelectedStationName=n.name,this.$router.push({name:"SceneryView",query:{station:n.name.replaceAll(" ","_")}}))},openForumSite(e,n){n&&(e.preventDefault(),window.open(n,"_blank"))},changeSorter(e){this.stationFiltersStore.changeSorter(e)}}});const Me=e=>(me("data-v-947d9fb2"),e=e(),ge(),e),Ve={class:"station_table"},Re=["src"],He={class:"table_wrapper"},Ee=["onClick"],De={class:"header_wrapper"},We=["innerHTML"],Ae=["src"],Oe=["onClick"],ze={class:"header_wrapper"},Pe=["src","alt","title"],Ue=["src"],Ke=["onClick","onContextmenu","onKeydown"],Be={key:0,style:{color:"salmon"}},qe={class:"station_level"},je={key:0},Ge={key:1},Ye=["src","title"],Ze={key:2},Je=["src","title"],Qe={key:3},Xe=["src","title"],xe={key:1},en={class:"station_status"},nn={key:1,class:"status-badge free"},tn={class:"station_dispatcher-name"},on={class:"station_dispatcher-exp"},sn={class:"station_tracks twoway"},rn=["title"],an=["title"],ln=Me(()=>o("span",{class:"separator"},null,-1)),un=["title"],dn=["title"],cn={key:0,class:"station_info"},fn=["title","innerHTML"],hn=["src","title"],pn=["src","alt","title"],mn=["src","title"],gn={key:1,class:"station_info"},In=["src","title"],yn={class:"highlight"},vn={class:"highlight"},Sn={class:"highlight"},_n={style:{color:"#bbb"}},bn={key:2,class:"no-stations"};function $n(e,n,r,g,y,v){const h=M("Loading");return a(),i("section",Ve,[e.showReturnButton?(a(),i("button",{key:0,class:"return-btn",onClick:n[0]||(n[0]=(...t)=>e.scrollToTop&&e.scrollToTop(...t))},[o("img",{src:e.icons.arrow,alt:"return arrow"},null,8,Re)])):f("",!0),o("div",He,[o("table",null,[o("thead",null,[o("tr",null,[(a(!0),i(w,null,k(e.headIds,(t,s)=>(a(),i("th",{key:t,onClick:()=>e.changeSorter(s)},[o("span",De,[o("div",{innerHTML:e.$t(`sceneries.${t}`)},null,8,We),e.sorterActive.index==s?(a(),i("img",{key:0,class:"sort-icon",src:e.sorterActive.dir==1?e.getIcon("arrow-asc"):e.getIcon("arrow-desc"),alt:"sort icon"},null,8,Ae)):f("",!0)])],8,Ee))),128)),(a(!0),i(w,null,k(e.headIconsIds,(t,s)=>(a(),i("th",{key:t,onClick:()=>e.changeSorter(s+7)},[o("span",ze,[o("img",{src:e.getIcon(t),alt:t,title:e.$t(`sceneries.${t}s`)},null,8,Pe),e.sorterActive.index==s+7?(a(),i("img",{key:0,class:"sort-icon",src:e.sorterActive.dir==1?e.getIcon("arrow-asc"):e.getIcon("arrow-desc"),alt:"sort icon"},null,8,Ue)):f("",!0)])],8,Oe))),128))])]),o("tbody",null,[(a(!0),i(w,null,k(e.stations,(t,s)=>{var p,m,S,_,c,u,C,T,L;return a(),i("tr",{class:$(["station",{"last-selected":e.lastSelectedStationName==t.name}]),key:s+t.name,onClick:se(I=>e.setScenery(t.name),["left"]),onContextmenu:se(I=>{var b;return e.openForumSite(I,(b=t.generalInfo)==null?void 0:b.url)},["right"]),onKeydown:[D(I=>e.setScenery(t.name),["enter"]),D(I=>{var b;return e.openForumSite(I,(b=t.generalInfo)==null?void 0:b.url)},["space"])],tabindex:"0"},[o("td",{class:$(["station_name",(p=t.generalInfo)==null?void 0:p.availability])},[(m=t.generalInfo)!=null&&m.project?(a(),i("b",Be,l(t.generalInfo.project),1)):f("",!0),N(" "+l(t.name),1)],2),o("td",qe,[t.generalInfo?(a(),i("span",je,[t.generalInfo.reqLevel>-1&&t.generalInfo.availability!="nonPublic"&&t.generalInfo.availability!="unavailable"?(a(),i("span",{key:0,style:re(e.calculateExpStyle(t.generalInfo.reqLevel))},l(t.generalInfo.reqLevel>=2?t.generalInfo.reqLevel:"L"),5)):t.generalInfo.availability=="abandoned"?(a(),i("span",Ge,[o("img",{src:e.getIcon("abandoned"),alt:"non-public",title:e.$t("desc.abandoned")},null,8,Ye)])):t.generalInfo.availability=="nonPublic"?(a(),i("span",Ze,[o("img",{src:e.getIcon("lock"),alt:"non-public",title:e.$t("desc.non-public")},null,8,Je)])):(a(),i("span",Qe,[o("img",{src:e.getIcon("unavailable"),alt:"unavailable",title:e.$t("desc.unavailable")},null,8,Xe)]))])):(a(),i("span",xe," ? "))]),o("td",en,[t.onlineInfo?(a(),i("span",{key:0,class:$(["status-badge",t.onlineInfo.statusID])},l(e.$t(`status.${t.onlineInfo.statusID}`))+" "+l(t.onlineInfo.statusID=="online"?e.timestampToString(t.onlineInfo.statusTimestamp):""),3)):(a(),i("span",nn,l(e.$t("status.free")),1))]),o("td",tn,l(t.onlineInfo?t.onlineInfo.dispatcherName:""),1),o("td",on,[t.onlineInfo?(a(),i("span",{key:0,style:re(e.calculateExpStyle(t.onlineInfo.dispatcherExp,t.onlineInfo.dispatcherIsSupporter))},l(2>t.onlineInfo.dispatcherExp?"L":t.onlineInfo.dispatcherExp),5)):f("",!0)]),o("td",sn,[t.generalInfo&&t.generalInfo.routes.twoWayCatenaryRouteNames.length>0?(a(),i("span",{key:0,class:"track catenary",title:`Liczba zelektryfikowanych szlaków dwutorowych: ${t.generalInfo.routes.twoWayCatenaryRouteNames.length}`},l(t.generalInfo.routes.twoWayCatenaryRouteNames.length),9,rn)):f("",!0),t.generalInfo&&t.generalInfo.routes.twoWayNoCatenaryRouteNames.length>0?(a(),i("span",{key:1,class:"track no-catenary",title:`Liczba niezelektryfikowanych szlaków dwutorowych: ${t.generalInfo.routes.twoWayNoCatenaryRouteNames.length}`},l(t.generalInfo.routes.twoWayNoCatenaryRouteNames.length),9,an)):f("",!0),ln,t.generalInfo&&t.generalInfo.routes.oneWayCatenaryRouteNames.length>0?(a(),i("span",{key:2,class:"track catenary",title:`Liczba zelektryfikowanych szlaków jednotorowych: ${t.generalInfo.routes.oneWayCatenaryRouteNames.length}`},l(t.generalInfo.routes.oneWayCatenaryRouteNames.length),9,un)):f("",!0),t.generalInfo&&t.generalInfo.routes.oneWayNoCatenaryRouteNames.length>0?(a(),i("span",{key:3,class:"track no-catenary",title:`Liczba niezelektryfikowanych szlaków jednotorowych: ${t.generalInfo.routes.oneWayNoCatenaryRouteNames.length}`},l(t.generalInfo.routes.oneWayNoCatenaryRouteNames.length),9,dn)):f("",!0)]),t.generalInfo?(a(),i("td",cn,[o("span",{class:$(["scenery-icon icon-info",t.generalInfo.controlType.replace("+","-")]),title:e.$t("desc.control-type")+e.$t(`controls.${t.generalInfo.controlType}`),innerHTML:e.getControlTypeAbbrev(t.generalInfo.controlType)},null,10,fn),o("span",null,[t.generalInfo.SUP?(a(),i("img",{key:0,class:"icon-info",src:e.getIcon("SUP"),alt:"SUP (RASP-UZK)",title:e.$t("desc.SUP")},null,8,hn)):f("",!0)]),o("span",null,[t.generalInfo.signalType?(a(),i("img",{key:0,class:"icon-info",src:e.getIcon(t.generalInfo.signalType),alt:t.generalInfo.signalType,title:e.$t("desc.signals-type")+e.$t(`signals.${t.generalInfo.signalType}`)},null,8,pn)):f("",!0)]),o("span",null,[t.generalInfo&&t.generalInfo.routes.sblRouteNames.length>0?(a(),i("img",{key:0,class:"icon-info",src:e.getIcon("SBL"),alt:"SBL",title:e.$t("desc.SBL")+`${t.generalInfo.routes.sblRouteNames.join(",")}`},null,8,mn)):f("",!0)])])):(a(),i("td",gn,[o("img",{class:"icon-info",src:e.getIcon("unknown"),alt:"icon-unknown",title:e.$t("desc.unknown")},null,8,In)])),o("td",{class:$(["station_users",{inactive:!t.onlineInfo}])},[o("span",null,[o("span",yn,l(((S=t.onlineInfo)==null?void 0:S.currentUsers)||"0"),1),N(" / "),o("span",null,l(((_=t.onlineInfo)==null?void 0:_.maxUsers)||"0"),1)])],2),o("td",{class:$(["station_spawns",{inactive:!t.onlineInfo}])},[o("span",vn,l(((c=t.onlineInfo)==null?void 0:c.spawns.length)||"0"),1)],2),o("td",{class:$(["station_schedules",{inactive:!t.onlineInfo}])},[o("span",null,[o("span",Sn,l(((C=(u=t.onlineInfo)==null?void 0:u.scheduledTrains)==null?void 0:C.length)||"0"),1),N(" / "),o("span",_n,l(((L=(T=t.onlineInfo)==null?void 0:T.scheduledTrains)==null?void 0:L.filter(I=>I.stopInfo.confirmed).length)||"0"),1)])],2)],42,Ke)}),128))])])]),!e.isDataLoaded&&e.stations.length==0?(a(),le(h,{key:1})):e.stations.length==0?(a(),i("div",bn,l(e.$t("sceneries.no-stations")),1)):f("",!0)])}const Cn=R(Ne,[["render",$n],["__scopeId","data-v-947d9fb2"]]),wn=V({props:{option:{type:Object,required:!0}},setup(){return{filterStore:H()}},methods:{handleChange(){this.option.value=!this.option.value,this.filterStore.changeFilterValue({name:this.option.name,value:!this.option.value})}}});const kn=["data-selected"];function Tn(e,n,r,g,y,v){return a(),i("button",{class:$(["btn--action",e.option.section]),"data-selected":e.option.value,onClick:n[0]||(n[0]=(...h)=>e.handleChange&&e.handleChange(...h))},l(e.$t(`filters.${e.option.id}`)),11,kn)}const Ln=R(wn,[["render",Tn],["__scopeId","data-v-8a731f66"]]),Fn=V({components:{ActionButton:Ie,FilterOption:Ln},mixins:[ie,ye,ve],data:()=>({saveOptions:!1,STORAGE_KEY:"options_saved",authorsInputValue:"",minimumHours:0,currentRegion:{id:"",value:""},delayInputTimer:-1,chosenSearchScenery:""}),setup(){const e=Se("isFilterCardVisible"),n=A(),r=H();return{isVisible:e,store:n,filterStore:r}},mounted(){this.saveOptions=d.isRegistered(this.STORAGE_KEY),d.isRegistered("onlineFromHours")&&this.saveOptions&&(this.minimumHours=d.getNumericValue("onlineFromHours"),this.changeNumericFilterValue("onlineFromHours",this.minimumHours)),this.currentRegion=this.store.region},computed:{sortedStationList(){return this.store.stationList.filter(e=>e.name.toLocaleLowerCase().includes(this.chosenSearchScenery.toLocaleLowerCase())).sort((e,n)=>e.name>n.name?1:-1)}},watch:{chosenSearchScenery(e){const n=this.store.stationList.find(({name:r})=>r==e);n&&(this.$router.push(`/scenery?station=${n.name.replace(/ /g,"_")}`),this.chosenSearchScenery="")},isVisible(e){this.$nextTick(()=>{e&&this.$refs.cardEl.focus()})}},methods:{onKeyDownFunction(){this.isVisible=!this.isVisible},handleChange(e){this.filterStore.changeFilterValue({name:e.name,value:!e.value}),this.saveOptions&&d.setBooleanValue(e.name,e.value)},handleInput(e){const n=e.target;this.filterStore.changeFilterValue({name:n.name,value:n.value}),this.saveOptions&&d.setStringValue(n.name,n.value)},handleAuthorsInput(e){clearTimeout(this.delayInputTimer),this.delayInputTimer=window.setTimeout(()=>{this.handleInput(e)},400)},changeNumericFilterValue(e,n,r=!1){this.filterStore.changeFilterValue({name:e,value:n}),this.saveOptions&&r&&d.setNumericValue(e,n)},subHour(){this.minimumHours=this.minimumHours<1?8:this.minimumHours-1,this.changeNumericFilterValue("onlineFromHours",this.minimumHours,!0)},addHour(){this.minimumHours=this.minimumHours>7?0:this.minimumHours+1,this.changeNumericFilterValue("onlineFromHours",this.minimumHours,!0)},saveFilters(){if(this.saveOptions=!this.saveOptions,!this.saveOptions){d.unregisterStorage(this.STORAGE_KEY);return}d.registerStorage(this.STORAGE_KEY),this.filterStore.inputs.options.forEach(e=>d.setBooleanValue(e.name,!e.value)),this.filterStore.inputs.sliders.forEach(e=>d.setNumericValue(e.name,e.value))},resetFilters(){this.authorsInputValue="",this.minimumHours=0,this.changeNumericFilterValue("onlineFromHours",this.minimumHours,!0),this.filterStore.resetFilters()},closeCard(){this.isVisible=!1},toggleCard(){this.isVisible=!this.isVisible}}});const Nn={class:"card_controls"},Mn=["src"],Vn={for:"scenery-search"},Rn=["placeholder"],Hn={id:"sceneries"},En=["value"],Dn={key:0,class:"card",tabindex:"0",ref:"cardEl"},Wn={class:"card_content"},An={class:"card_title flex"},On={class:"card_options"},zn={class:"card_timestamp",style:{"text-align":"center"}},Pn={class:"clock"},Un={class:"card_authors-search"},Kn=["placeholder"],Bn={class:"card_sliders"},qn=["name","id","min","max","onUpdate:modelValue"],jn={class:"slider-value"},Gn={class:"slider-content"},Yn={class:"card_actions"},Zn={class:"action-buttons"},Jn=["data-selected"];function Qn(e,n,r,g,y,v){const h=M("filter-option"),t=$e("click-outside");return F((a(),i("section",{class:"filter-card",onKeydown:n[14]||(n[14]=D((...s)=>e.closeCard&&e.closeCard(...s),["esc"]))},[o("div",Nn,[o("button",{class:"btn--filled btn--image",onClick:n[0]||(n[0]=(...s)=>e.toggleCard&&e.toggleCard(...s))},[o("img",{class:"button_icon",src:e.getIcon("filter2"),alt:"filter icon"},null,8,Mn),N(" "+l(e.$t("options.filters"))+" [F] ",1)]),o("label",Vn,[F(o("input",{id:"scenery-search",list:"sceneries",placeholder:e.$t("sceneries.scenery-search"),onFocus:n[1]||(n[1]=s=>e.preventKeyDown=!0),onBlur:n[2]||(n[2]=s=>e.preventKeyDown=!1),"onUpdate:modelValue":n[3]||(n[3]=s=>e.chosenSearchScenery=s)},null,40,Rn),[[E,e.chosenSearchScenery]]),o("datalist",Hn,[(a(!0),i(w,null,k(e.sortedStationList,s=>(a(),i("option",{value:s.name},null,8,En))),256))])])]),W(be,{name:"card-anim"},{default:_e(()=>[e.isVisible?(a(),i("div",Dn,[o("div",Wn,[o("div",An,l(e.$t("filters.title")),1),o("section",On,[(a(!0),i(w,null,k(e.filterStore.inputs.options,(s,p)=>(a(),le(h,{option:s,key:p,onOptionChange:e.handleChange},null,8,["option","onOptionChange"]))),128))]),o("section",zn,[o("div",null,l(e.$t("filters.minimum-hours-title")),1),o("span",Pn,[o("button",{class:"btn--action",onClick:n[4]||(n[4]=(...s)=>e.subHour&&e.subHour(...s))},"-"),o("span",null,l(e.minimumHours==0?e.$t("filters.now"):e.minimumHours<8?e.minimumHours+e.$t("filters.hour"):e.$t("filters.no-limit")),1),o("button",{class:"btn--action",onClick:n[5]||(n[5]=(...s)=>e.addHour&&e.addHour(...s))},"+")])]),o("section",Un,[F(o("input",{type:"text",placeholder:e.$t("filters.authors-search"),name:"authors","onUpdate:modelValue":n[6]||(n[6]=s=>e.authorsInputValue=s),onInput:n[7]||(n[7]=(...s)=>e.handleAuthorsInput&&e.handleAuthorsInput(...s)),onFocus:n[8]||(n[8]=s=>e.preventKeyDown=!0),onBlur:n[9]||(n[9]=s=>e.preventKeyDown=!1)},null,40,Kn),[[E,e.authorsInputValue]])]),o("section",Bn,[(a(!0),i(w,null,k(e.filterStore.inputs.sliders,(s,p)=>(a(),i("div",{class:"slider",key:p},[F(o("input",{class:"slider-input",type:"range",name:s.name,id:s.id,min:s.minRange,max:s.maxRange,"onUpdate:modelValue":m=>s.value=m,onChange:n[10]||(n[10]=(...m)=>e.handleInput&&e.handleInput(...m))},null,40,qn),[[E,s.value]]),o("span",jn,l(s.value),1),o("div",Gn,l(e.$t(`filters.sliders.${s.id}`)),1)]))),128))]),o("section",Yn,[o("div",Zn,[o("button",{class:"btn--action",style:{width:"100%"},onClick:n[11]||(n[11]=(...s)=>e.saveFilters&&e.saveFilters(...s)),"data-selected":e.saveOptions},l(e.$t("filters.save")),9,Jn),o("button",{class:"btn--action",onClick:n[12]||(n[12]=(...s)=>e.resetFilters&&e.resetFilters(...s))},l(e.$t("filters.reset")),1),o("button",{class:"btn--action",onClick:n[13]||(n[13]=(...s)=>e.closeCard&&e.closeCard(...s))},l(e.$t("filters.close")),1)])])])],512)):f("",!0)]),_:1})],32)),[[t,e.closeCard]])}const Xn=R(Fn,[["render",Qn],["__scopeId","data-v-be819deb"]]),xn=V({components:{StationTable:Cn,StationFilterCard:Xn,SelectBox:Ce},data:()=>({filterCardOpen:!1,modalHidden:!0,STORAGE_KEY:"options_saved",focusedStationName:""}),setup(){return{filterStore:H(),store:A()}},computed:{computedStationList(){return this.filterStore.getFilteredStationList(this.store.stationList,this.store.region.id)}},mounted(){this.filterStore.setupFilters()}});const et={class:"stations-view"},nt={class:"wrapper"},tt={class:"body"},ot={class:"options-bar"};function st(e,n,r,g,y,v){const h=M("StationFilterCard"),t=M("StationTable");return a(),i("section",et,[o("div",nt,[o("div",tt,[o("div",ot,[W(h,{showCard:e.filterCardOpen,exit:e.filterCardOpen=!1,ref:"filterCardRef"},null,8,["showCard","exit"])]),W(t,{stations:e.computedStationList},null,8,["stations"])])])])}const lt=R(xn,[["render",st],["__scopeId","data-v-de343171"]]);export{lt as default}; diff --git a/dist/assets/StationsView-efbbd8ee.css b/dist/assets/StationsView-efbbd8ee.css deleted file mode 100644 index 95fedd0..0000000 --- a/dist/assets/StationsView-efbbd8ee.css +++ /dev/null @@ -1 +0,0 @@ -@charset "UTF-8";.scenery-icon[data-v-947d9fb2]{display:inline-block;user-select:none;-moz-user-select:none;-webkit-user-select:none;text-align:center;font-weight:700;background-color:#888}.scenery-icon.SPK[data-v-947d9fb2],.scenery-icon.mechaniczne-SPK[data-v-947d9fb2],.scenery-icon.r\119 czne-SPK[data-v-947d9fb2]{color:gold}.scenery-icon.SCS[data-v-947d9fb2],.scenery-icon.mechaniczne-SCS[data-v-947d9fb2],.scenery-icon.r\119 czne-SCS[data-v-947d9fb2]{color:#00fff2}.scenery-icon.SPE[data-v-947d9fb2]{color:#7cfc00}.scenery-icon.mechaniczne[data-v-947d9fb2]{color:#ffaa2a}.scenery-icon.r\119 czne[data-v-947d9fb2]{color:#111}.scenery-icon.SCS-SPK[data-v-947d9fb2]{color:#fff}.change-anim-enter-active[data-v-947d9fb2],.change-anim-leave-active[data-v-947d9fb2]{transition:opacity .1s ease-in}.change-anim-enter[data-v-947d9fb2],.change-anim-leave-to[data-v-947d9fb2]{opacity:0}.highlight[data-v-947d9fb2]{color:gold}section.station_table[data-v-947d9fb2]{overflow:auto;overflow-y:hidden;font-weight:500}.table_wrapper[data-v-947d9fb2]{overflow:auto;overflow-y:hidden}table[data-v-947d9fb2]{white-space:nowrap;border-collapse:collapse;min-width:1350px}@media only screen and (max-width: 700px){table[data-v-947d9fb2]{min-width:auto}}table thead tr[data-v-947d9fb2]{background-color:#1d1d1d}table thead th[data-v-947d9fb2]{position:sticky;top:0;min-width:75px;padding:.5em;background-color:#1d1d1d;white-space:pre-wrap;cursor:pointer;user-select:none;-moz-user-select:none;-webkit-user-select:none}table thead th span[data-v-947d9fb2]{display:flex;align-items:center;justify-content:center}table thead th span img[data-v-947d9fb2]{width:1.5em;vertical-align:middle}tr.station[data-v-947d9fb2]{background-color:#424242}tr.station[data-v-947d9fb2]:nth-child(even){background-color:#4f4f4f;color:#fff}tr.station[data-v-947d9fb2]:hover,tr.station[data-v-947d9fb2]:focus{background-color:#757575}tr.station td[data-v-947d9fb2]{padding:.25em 1em;text-align:center;cursor:pointer}@media only screen and (max-width: 700px){tr.station td[data-v-947d9fb2]{margin:0;padding:.3em .5em;font-size:1em}}td.station_name[data-v-947d9fb2]{font-weight:700}td.station_name.default[data-v-947d9fb2]{color:#ffc014}td.station_name.nonPublic[data-v-947d9fb2]{color:#bebebe}td.station_name.unavailable[data-v-947d9fb2]{font-weight:500;color:#bebebe}td.station_level span[data-v-947d9fb2],td.station_dispatcher-exp span[data-v-947d9fb2]{display:block;width:2em;height:2em;line-height:2em;margin:0 auto}td.station_level img[data-v-947d9fb2],td.station_dispatcher-exp img[data-v-947d9fb2]{width:2em;border-radius:50%}td.station_level span[data-v-947d9fb2]{background-color:#888;border-radius:50%}td.station_info[data-v-947d9fb2]{display:flex;align-items:center;justify-content:center}td.station_info .icon-info[data-v-947d9fb2]{display:flex;justify-content:center;align-items:center;width:32px;height:32px;font-size:12px;margin:0 .2em;outline:2px solid #444;border-radius:.5em}@media only screen and (max-width: 700px){td.station_info .icon-info[data-v-947d9fb2]{width:24px;height:24px;font-size:10px}}td.station_tracks .no-catenary[data-v-947d9fb2]{background-color:#939393}td.station_tracks .catenary[data-v-947d9fb2]{background-color:#009dce}td.station_tracks .track[data-v-947d9fb2]{margin:0 .35em;padding:.35em;font-size:1.05em;white-space:pre-wrap}td.station_users.inactive[data-v-947d9fb2],td.station_spawns.inactive[data-v-947d9fb2],td.station_schedules.inactive[data-v-947d9fb2]{opacity:.2}.separator[data-v-947d9fb2]{border-left:3px solid #b3b3b3}.no-stations[data-v-947d9fb2]{text-align:center;font-size:1.5em;padding:1em;margin:1em 0;background:#333}button[data-v-8a731f66]{width:100%;padding:.4em;border-radius:.4em}button[data-v-8a731f66]:focus-visible{outline:1px solid white}button[data-selected=true].access[data-v-8a731f66]{background-color:#e03b07;box-shadow:0 0 6px 1px #e03b07}button[data-selected=true].control[data-v-8a731f66]{background-color:#0085ff;box-shadow:0 0 6px 1px #0085ff}button[data-selected=true].signals[data-v-8a731f66]{background-color:#bf7c00;box-shadow:0 0 6px 1px #bf7c00}button[data-selected=true].routes[data-v-8a731f66]{background-color:#9049c0;box-shadow:0 0 6px 1px #9049c0}button[data-selected=true].status[data-v-8a731f66]{background-color:#349b32;box-shadow:0 0 6px 1px #349b32}button[data-selected=true].save[data-v-8a731f66]{background-color:#28a826;box-shadow:0 0 6px 1px #28a826}button[data-selected=true].troll[data-v-8a731f66]{background-color:#b22222;box-shadow:0 0 6px 1px #b22222}button[data-selected=true].mode[data-v-8a731f66]{background-color:#90ee90;color:#000;font-weight:500}.card-dimmer[data-v-be819deb]{position:fixed;top:0;left:0;width:100vw;height:100vh;z-index:100;background:rgba(0,0,0,.65)}.card[data-v-be819deb]{position:fixed;top:50%;left:50%;z-index:100;transform:translate(-50%,-50%);overflow-x:hidden;background:rgba(32,32,32,.8549019608);box-shadow:0 0 15px 5px #303030;width:600px}@media only screen and (max-width: 700px){.card[data-v-be819deb]{width:100%;height:80vh}}.card-exit[data-v-be819deb]{position:absolute;top:0;right:0;margin:.5em;cursor:pointer}.card-exit img[data-v-be819deb]{width:2em}.card-anim-enter-active[data-v-be819deb],.card-anim-leave-active[data-v-be819deb]{transition:all .15s ease-in-out}.card-anim-enter-from[data-v-be819deb],.card-anim-leave-to[data-v-be819deb]{opacity:0;transform:translate(-50%,-50%) scale(.45)}.card_controls[data-v-be819deb]{display:flex;gap:.5em}.card_controls input[data-v-be819deb]{border-radius:.5em .5em 0 0;height:100%}.card_content[data-v-be819deb]{display:flex;flex-direction:column;gap:1em;max-height:90vh;padding:1em}.card_title[data-v-be819deb]{font-size:2em;font-weight:700;color:#ffc014;text-align:center}.card_options[data-v-be819deb]{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(4,1fr);gap:.5em}@media only screen and (max-width: 700px){.card_options[data-v-be819deb]{grid-template-columns:repeat(auto-fit,minmax(8em,1fr));grid-template-rows:auto}}.card_regions[data-v-be819deb]{display:flex;justify-content:center}.card_regions label>input[data-v-be819deb]{display:none}.card_regions label>span[data-v-be819deb]{padding:.25em .5em;margin:0 .25em;cursor:pointer;background-color:gray}.card_regions label>span.checked[data-v-be819deb]{background-color:#2e8b57}.card_timestamp[data-v-be819deb]{display:flex;flex-direction:column;justify-content:center}.card_timestamp .clock[data-v-be819deb]{display:flex;align-items:center;justify-content:center;font-size:1.2em;margin-top:.5em}.card_timestamp .clock span[data-v-be819deb]{min-width:120px;font-weight:700;color:#ffc014}.card_timestamp .clock button[data-v-be819deb]{padding:.2em .6em}.card_modes[data-v-be819deb]{display:flex;justify-content:center}.card_modes .option[data-v-be819deb]{margin:0 1em}.card_authors-search[data-v-be819deb]{display:inline-block;margin:0 auto;width:60%;min-width:240px}.card_authors-search input[data-v-be819deb]{width:100%;padding:.5em;border:1px solid white}.card_actions .filter-option[data-v-be819deb]{max-width:50%;margin:0 auto}.card_actions .action-buttons[data-v-be819deb]{display:flex;gap:.5em;width:100%;margin-top:.5em}.card_actions .action-buttons button[data-v-be819deb]{width:50%;margin:0 auto;padding:.5em}.card_actions .action-buttons button[data-selected=true][data-v-be819deb]{background-color:#90ee90;color:#000}.slider[data-v-be819deb]{display:flex;align-items:center;margin-bottom:1em}.slider-value[data-v-be819deb]{color:#ffc014;margin-right:.5em;padding:.1em .2em}.slider-content[data-v-be819deb]{flex-grow:2}.slider-input[data-v-be819deb]{-webkit-appearance:none;appearance:none;background:none;border:none;outline:none;min-width:25%;max-width:120px}.slider-input:focus-visible~*[data-v-be819deb]{color:gold}.slider-input[data-v-be819deb]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;height:20px;width:20px;margin-top:-7px;border-radius:50%;background:white;border:4px solid #ffc014}@media only screen and (max-width: 700px){.slider-input[data-v-be819deb]::-webkit-slider-thumb{width:15px;height:15px;margin-top:-5px;border:3px solid #ffc014}}.slider-input[data-v-be819deb]::-moz-range-thumb{height:1em;width:1em;border-radius:50%;background:white;border:4px solid #ffc014;cursor:pointer}@media only screen and (max-width: 700px){.slider-input[data-v-be819deb]::-moz-range-thumb{width:1em;height:1em;border:3px solid #ffc014}}.slider-input[data-v-be819deb]::-webkit-slider-runnable-track{width:100%;height:5px;cursor:pointer;background:#ffffff;border-radius:1em}.slider-input[data-v-be819deb]::-moz-range-track{width:100%;height:5px;cursor:pointer;background:#ffffff;border-radius:1em}.slider-input[data-v-be819deb]::-ms-track{width:100%;height:5px;cursor:pointer;background:#ffffff;border-radius:1em}@keyframes blinkAnim-de343171{0%,to{opacity:1}50%{opacity:0}}.indicator-anim-enter-active[data-v-de343171],.indicator-anim-leave-active[data-v-de343171]{transition:all .25s ease-in-out}.indicator-anim-enter[data-v-de343171],.indicator-anim-leave-to[data-v-de343171]{transform:translateY(100%);opacity:0}.stations-view[data-v-de343171]{position:relative;padding:1em 0;min-height:100%}.wrapper[data-v-de343171]{display:flex;justify-content:center}.body[data-v-de343171]{max-width:100%}.options-bar[data-v-de343171]{display:flex;align-items:center;margin-bottom:.5em} diff --git a/dist/assets/TrainsView-6e19131c.js b/dist/assets/TrainsView-6e19131c.js deleted file mode 100644 index 12da6cf..0000000 --- a/dist/assets/TrainsView-6e19131c.js +++ /dev/null @@ -1 +0,0 @@ -import{a as k,H as W,A as K,c as B,v as R,y as _,_ as C,f as h,h as $,g as s,m as O,t as o,C as b,E as w,T as A,l as q,o as p,z as I,B as F,F as y,r as D,e as f,k as T,G as U,L as j,I as P,J as V,u as E,j as z,w as G,q as H,s as J,K as L,M as X,N as S}from"./index-a65056c2.js";import{r as Z}from"./returnBtnMixin-ddf8068c.js";const Q=k({components:{SelectBox:W,ActionButton:K},mixins:[B,R],props:{sorterOptionIds:{type:Array,required:!0}},data(){return{showOptions:!1}},setup(){return{searchedTrain:_("searchedTrain"),searchedDriver:_("searchedDriver"),sorterActive:_("sorterActive"),trainFilterList:_("filterList")}},computed:{translatedSorterOptions(){return this.$props.sorterOptionIds.map(t=>({id:t,value:this.$t(`options.sort-${t}`)}))}},methods:{onKeyDownFunction(){this.toggleShowOptions()},toggleShowOptions(){this.showOptions=!this.showOptions,this.$nextTick(()=>{var t;this.showOptions&&((t=this.$refs.button)==null||t.focus())})},onSorterChange(t){this.sorterActive.id=t.id,this.sorterActive.dir=-1},onFilterChange(t){t.isActive=!t.isActive},clearAllFilters(){this.trainFilterList.forEach(t=>{t.isActive=!1})},resetAllFilters(){this.trainFilterList.forEach(t=>{t.isActive=!0})},onInputClear(t){t=="driver"&&(this.searchedDriver=""),t=="train"&&(this.searchedTrain="")}}});const Y=["src"],x={key:0,class:"options_wrapper"},tt={class:"options_content"},et={class:"option-title"},st={class:"search_content"},it={class:"search-box"},nt=["placeholder"],rt={class:"search-exit"},at=["src"],ot={class:"search-box"},lt=["placeholder"],dt={class:"search-exit"},ct=["src"],ut={class:"option-title"},pt={class:"options_sorters"},ht=["data-selected","onClick"],mt={key:0,class:"option-title"},vt={class:"options_filters"},gt={class:"filter-option"},ft=["data-disabled","onClick"],_t={class:"filter-actions"};function $t(t,e,c,d,a,m){return p(),h("div",{class:"filters-options",onKeydown:e[12]||(e[12]=q(n=>t.showOptions=!1,["esc"]))},[t.showOptions?(p(),h("div",{key:0,class:"bg",onClick:e[0]||(e[0]=n=>t.showOptions=!1)})):$("",!0),s("button",{class:"btn--filled btn--image",onClick:e[1]||(e[1]=(...n)=>t.toggleShowOptions&&t.toggleShowOptions(...n)),ref:"button"},[s("img",{src:t.getIcon("filter2"),alt:"Open filters"},null,8,Y),O(" "+o(t.$t("options.filters"))+" [F] ",1)],512),b(A,{name:"options-anim"},{default:w(()=>[t.showOptions?(p(),h("div",x,[s("div",tt,[s("h1",et,o(t.$t("options.search-title")),1),s("div",st,[s("div",it,[I(s("input",{class:"search-input",ref:"initFocusedElement",onFocus:e[2]||(e[2]=n=>t.preventKeyDown=!0),onBlur:e[3]||(e[3]=n=>t.preventKeyDown=!1),placeholder:t.$t("options.search-train"),"onUpdate:modelValue":e[4]||(e[4]=n=>t.searchedTrain=n)},null,40,nt),[[F,t.searchedTrain]]),s("button",rt,[s("img",{src:t.getIcon("exit"),alt:"exit-icon",onClick:e[5]||(e[5]=n=>t.onInputClear("train"))},null,8,at)])]),s("div",ot,[I(s("input",{class:"search-input",onFocus:e[6]||(e[6]=n=>t.preventKeyDown=!0),onBlur:e[7]||(e[7]=n=>t.preventKeyDown=!1),placeholder:t.$t("options.search-driver"),"onUpdate:modelValue":e[8]||(e[8]=n=>t.searchedDriver=n)},null,40,lt),[[F,t.searchedDriver]]),s("button",dt,[s("img",{src:t.getIcon("exit"),alt:"exit-icon",onClick:e[9]||(e[9]=n=>t.onInputClear("driver"))},null,8,ct)])])]),s("h1",ut,o(t.$t("options.sort-title")),1),s("div",pt,[(p(!0),h(y,null,D(t.translatedSorterOptions,n=>(p(),h("div",null,[s("button",{class:"sort-option btn--option","data-selected":n.id==t.sorterActive.id,onClick:u=>t.onSorterChange(n)},o(n.value.toUpperCase()),9,ht)]))),256))]),t.trainFilterList.length!=0?(p(),h("h1",mt,o(t.$t("options.filter-title")),1)):$("",!0),s("div",vt,[(p(!0),h(y,null,D(t.trainFilterList,n=>(p(),h("div",gt,[s("button",{class:"btn--option","data-disabled":!n.isActive,onClick:u=>t.onFilterChange(n)},o(t.$t(`options.filter-${n.id}`)),9,ft)]))),256)),s("div",_t,[s("button",{class:"btn--action",onClick:e[10]||(e[10]=(...n)=>t.clearAllFilters&&t.clearAllFilters(...n))},o(t.$t("options.filter-clear")),1),s("button",{class:"btn--action",onClick:e[11]||(e[11]=(...n)=>t.resetAllFilters&&t.resetAllFilters(...n))},o(t.$t("options.filter-reset")),1)])])])])):$("",!0)]),_:1})],32)}const bt=C(Q,[["render",$t],["__scopeId","data-v-437ed666"]]),yt=k({components:{ActionButton:K},mixins:[B],props:{trains:{type:Array,required:!0}},data:()=>({trainStatsOpen:!1}),methods:{toggleStatsOpen(){this.trainStatsOpen=!this.trainStatsOpen},closeStats(){this.trainStatsOpen=!1}},setup(t){const e=f(()=>{if(t.trains.length==0)return{avg:"0",min:"0",max:"0"};const u=t.trains.filter(i=>i.timetableData),l=(u.reduce((i,v)=>i+v.speed,0)/u.length).toFixed(2),r=u.reduce((i,v)=>(v.timetableData&&(i[0]=!i[0]||v.speedi[1]?v.speed:i[1]),i),[]);return{avg:l,min:r[0].toString(),max:r[1].toString()}}),c=f(()=>{if(t.trains.length==0)return{avg:"0",min:"0",max:"0"};const u=t.trains.filter(i=>i.timetableData).length,l=(t.trains.reduce((i,v)=>v.timetableData?i+v.timetableData.routeDistance:i,0)/u).toFixed(2),r=t.trains.reduce((i,v)=>(v.timetableData&&(i[0]=!i[0]||v.timetableData.routeDistancei[1]?v.timetableData.routeDistance:i[1]),i),[]);return{avg:l,min:r[0].toString(),max:r[1].toString()}}),d=f(()=>{const u=t.trains.reduce((l,r)=>(!r.timetableData||!r.timetableData.category||l.set(r.timetableData.category,l.get(r.timetableData.category)?l.get(r.timetableData.category)+1:1),l),new Map);return new Map([...u.entries()].sort((l,r)=>r[1]-l[1]))}),a=f(()=>[...t.trains.reduce((r,i)=>(!i.timetableData||!i.locoType||r.set(i.locoType,r.get(i.locoType)?r.get(i.locoType)+1:1),r),new Map).entries()].sort((r,i)=>i[1]-r[1]).filter((r,i)=>i<3)),m=f(()=>{const u=t.trains.filter(r=>r.timetableData&&r.timetableData.TWR),l=t.trains.filter(r=>r.timetableData&&r.timetableData.SKR);return[u.length,l.length]}),n=_("chosenTrainCategories");return{speedStats:e,timetableStats:c,categoryList:d,locoList:a,specialTrainCount:m,chosenTrainCategories:n}}});const Dt={class:"train-stats"},Tt=["src","alt"],St={key:0,class:"stats-body"},wt={class:"stats-header"},kt=["src","alt"],Ct={class:"stats-speed"},Lt={class:"title stats-title"},It={class:"stats-content"},Ot={class:"stats-length"},At={class:"title stats-title"},Ft={class:"stats-content"},Nt={class:"stats-categories"},Mt={class:"title stats-title"},Kt={class:"category-list"},Bt={class:"category-type"},qt={class:"category-count"},Vt={class:"special-list"},Et={class:"special twr"},Wt={class:"special-type"},Rt={class:"special-count"},Ut={class:"special skr"},jt={class:"special-type"},Pt={class:"special-count"},zt={class:"stats-locos"},Gt={class:"title stats-title"},Ht={class:"loco-list stats-content"};function Jt(t,e,c,d,a,m){const n=T("action-button"),u=U("click-outside");return I((p(),h("div",Dt,[b(n,{class:"stats_button",onClick:t.toggleStatsOpen},{default:w(()=>[s("img",{src:t.getIcon("stats"),alt:t.$t("trains.stats")},null,8,Tt),s("p",null,o(t.$t("trains.stats")),1)]),_:1},8,["onClick"]),b(A,{name:"stats-anim",class:"stats_wrapper",tag:"div"},{default:w(()=>[t.trainStatsOpen?(p(),h("div",St,[s("h2",wt,[s("img",{src:t.getIcon("stats"),alt:t.$t("trains.stats")},null,8,kt),O(" "+o(t.$t("trains.stats")),1)]),s("div",Ct,[s("div",Lt,o(t.$t("trains.stats-speed")),1),s("div",It,o(t.speedStats.min)+" | "+o(t.speedStats.avg)+" | "+o(t.speedStats.max),1)]),s("div",Ot,[s("div",At,o(t.$t("trains.stats-length")),1),s("div",Ft,o(t.timetableStats.min)+" | "+o(t.timetableStats.avg)+" | "+o(t.timetableStats.max),1)]),s("div",Nt,[s("div",Mt,o(t.$t("trains.stats-categories")),1),s("div",Kt,[(p(!0),h(y,null,D(t.categoryList,([l,r])=>(p(),h("span",{class:"category",key:l},[s("span",Bt,o(l),1),s("span",qt,o(r),1)]))),128))]),s("div",Vt,[s("span",Et,[s("span",Wt,o(t.$t("trains.stats-special-twr")),1),s("span",Rt,o(t.specialTrainCount[0]),1)]),s("span",Ut,[s("span",jt,o(t.$t("trains.stats-special-skr")),1),s("span",Pt,o(t.specialTrainCount[1]),1)])])]),s("div",zt,[s("div",Gt,o(t.$t("trains.stats-locos")),1),s("div",Ht,[(p(!0),h(y,null,D(t.locoList,(l,r)=>(p(),h("div",{class:"loco-item",key:r},o(l[0])+" | "+o(l[1]),1))),128))])])])):$("",!0)]),_:1})])),[[u,t.closeStats]])}const Xt=C(yt,[["render",Jt],["__scopeId","data-v-e91c5bd9"]]),Zt=k({components:{Loading:j,TrainInfo:P},props:{trains:{type:Array,required:!0}},mixins:[Z,V],setup(t){const e=E(),c=_("searchedTrain"),d=_("searchedDriver"),a=f(()=>t.trains);return{searchedTrain:c,searchedDriver:d,currentTrains:a,store:e,sorterActive:_("sorterActive"),distanceLimitExceeded:f(()=>t.trains.findIndex(({timetableData:m})=>m&&m.routeDistance>200)!=-1)}},computed:{trainNumbersWithTimeouts(){return this.store.trainList.filter(t=>t.isTimeout).map(t=>t.trainNo)}},activated(){const t=this.$route.query;t.trainNo&&t.driverName&&(this.searchedDriver=t.driverName.toString(),this.searchedTrain=t.trainNo.toString(),setTimeout(()=>{this.selectModalTrain(t.driverName+t.trainNo.toString())},20))}});const Qt=t=>(H("data-v-a74058cd"),t=t(),J(),t),Yt={class:"train-table"},xt={key:1,class:"table-info no-trains"},te={key:2,class:"timeouts-warning"},ee=Qt(()=>s("b",{class:"warning-timeout"},"?",-1)),se={class:"train-list"},ie=["onClick","onKeydown"];function ne(t,e,c,d,a,m){const n=T("Loading"),u=T("TrainInfo");return p(),h("div",Yt,[b(A,{name:"anim",mode:"out-in"},{default:w(()=>[(p(),h("div",{key:t.store.dataStatuses.trains},[t.trains.length==0&&t.store.dataStatuses.trains==0?(p(),z(n,{key:0})):$("",!0),t.trains.length==0&&t.store.dataStatuses.trains!=0?(p(),h("div",xt,o(t.$t("trains.no-trains")),1)):$("",!0),t.trainNumbersWithTimeouts.length!=0?(p(),h("div",te,[ee,O(" "+o(t.$t("trains.timeout")),1)])):$("",!0),s("ul",se,[(p(!0),h(y,null,D(t.currentTrains,l=>(p(),h("li",{class:"train-row",key:l.trainId,onClick:G(r=>t.selectModalTrain(l.trainId),["stop"]),onKeydown:q(r=>t.selectModalTrain(l.trainId),["enter"])},[b(u,{train:l},null,8,["train"])],40,ie))),128))])]))]),_:1})])}const re=C(Zt,[["render",ne],["__scopeId","data-v-a74058cd"]]);var g=(t=>(t.comments="comments",t.twr="twr",t.skr="skr",t.passenger="passenger",t.freight="freight",t.other="other",t.noTimetable="noTimetable",t))(g||{});const ae=[{id:g.twr,isActive:!0},{id:g.skr,isActive:!0},{id:g.passenger,isActive:!0},{id:g.freight,isActive:!0},{id:g.other,isActive:!0},{id:g.comments,isActive:!0},{id:g.noTimetable,isActive:!0}];function N(t){return t?Number((t.filter(e=>e.confirmed).length/t.length*100).toFixed(0)):-1}function M(t){var c;return t?((c=t.find((d,a)=>a==0&&!d.confirmed||a>0&&t[a-1].confirmed&&!d.confirmed))==null?void 0:c.departureDelay)||0:-1/0}function oe(t,e,c,d){return t.filter(a=>{const m=d.every(n=>{if(n.isActive)return!0;if(!a.timetableData)return d.find(u=>u.id==g.noTimetable).isActive;switch(n.id){case g.comments:return!a.timetableData.followingStops.some(u=>u.comments);case g.twr:return!a.timetableData.TWR;case g.skr:return!a.timetableData.SKR;case g.passenger:return!/^[AMRE]\D{2}$/.test(a.timetableData.category);case g.freight:return!a.timetableData.category.startsWith("T");case g.other:return!/^[PXZL]\D{2}$/.test(a.timetableData.category);default:return!0}});return(e.length>0?a.trainNo.toString().startsWith(e):!0)&&(c.length>0?a.driverName.toLowerCase().startsWith(c.toLowerCase()):!0)&&m})}function le(t,e){return t.sort((c,d)=>{var a,m,n,u,l,r;switch(e.id){case"mass":return c.mass>d.mass?e.dir:-e.dir;case"distance":return(((a=c.timetableData)==null?void 0:a.routeDistance)||-1)>(((m=d.timetableData)==null?void 0:m.routeDistance)||-1)?e.dir:-e.dir;case"progress":return N((n=c.timetableData)==null?void 0:n.followingStops)>N((u=d.timetableData)==null?void 0:u.followingStops)?e.dir:-e.dir;case"delay":return M((l=c.timetableData)==null?void 0:l.followingStops)>M((r=d.timetableData)==null?void 0:r.followingStops)?e.dir:-e.dir;case"speed":return c.speed>d.speed?e.dir:-e.dir;case"timetable":return c.trainNo>d.trainNo?e.dir:-e.dir;case"length":return c.length>d.length?e.dir:-e.dir}return 0})}function de(t,e,c,d,a){const m=oe(t,e,c,a);return[...le(m,d)]}const ce=k({components:{TrainTable:re,TrainStats:Xt,TrainOptions:bt},mixins:[V],props:{train:{type:String,required:!1},driver:{type:String,required:!1},trainId:{type:String,required:!1}},data:()=>({trainStatsOpen:!1}),setup(){const t=E(),e=L({id:"distance",dir:-1}),c=X([...ae]),d=L(""),a=L("");return S("searchedTrain",a),S("searchedDriver",d),S("sorterActive",e),S("filterList",c),{computedTrains:f(()=>de(t.trainList,a.value,d.value,e.value,c)),searchedTrain:a,searchedDriver:d,sorterActive:e,store:t}},activated(){this.train&&(this.searchedTrain=this.train,this.searchedDriver=this.driver||""),this.$nextTick(()=>{this.trainId&&this.selectModalTrain(this.trainId)})}});const ue={class:"trains-view"},pe={class:"trains_wrapper"};function he(t,e,c,d,a,m){const n=T("TrainOptions"),u=T("TrainTable");return p(),h("section",ue,[s("div",pe,[b(n,{"sorter-option-ids":["distance","progress","delay","mass","speed","length"]}),b(u,{trains:t.computedTrains},null,8,["trains"])])])}const ge=C(ce,[["render",he],["__scopeId","data-v-4c629457"]]);export{ge as default}; diff --git a/dist/assets/TrainsView-9a810e32.css b/dist/assets/TrainsView-9a810e32.css deleted file mode 100644 index 81c4ae6..0000000 --- a/dist/assets/TrainsView-9a810e32.css +++ /dev/null @@ -1 +0,0 @@ -.search label[data-v-437ed666]{display:block;color:#ccc;margin-bottom:.25em}.search-box[data-v-437ed666]{position:relative;display:flex;border-radius:.5em;min-width:200px;margin-right:.25em}.search-input[data-v-437ed666]{border:none;background-color:#424242;padding:.35em .5em;width:100%}.search-exit[data-v-437ed666]{background-color:#424242}.search-exit img[data-v-437ed666]{vertical-align:middle;height:1.3em}.search-button[data-v-437ed666]{width:80%;max-width:300px}@media only screen and (max-width: 700px){.search-box[data-v-437ed666],.search-button[data-v-437ed666]{margin:.5em 0 0}.search-box[data-v-437ed666]{width:100%}}h1.option-title[data-v-437ed666]{position:relative;font-size:1.1em;margin:.7em 0 .25em}h1.option-title[data-v-437ed666]:before{content:"";position:absolute;top:-4px;width:50%;height:2px;background-color:#fff;border-radius:2px}.options-anim-enter-from[data-v-437ed666],.options-anim-leave-to[data-v-437ed666]{opacity:0;transform:translateY(10px)}.options-anim-enter-active[data-v-437ed666],.options-anim-leave-active[data-v-437ed666]{transition:all .15s ease}.bg[data-v-437ed666]{position:fixed;top:0;left:0;width:100vw;height:100vh;z-index:10}.filters-options[data-v-437ed666]{position:relative;margin-bottom:.5em}.options_wrapper[data-v-437ed666]{position:absolute;background-color:#1d1d1d;box-shadow:0 5px 10px 2px #0f0f0f;width:100%;max-width:500px;padding:1em;z-index:100}.options_sorters[data-v-437ed666]{display:flex;align-items:center;flex-wrap:wrap;padding:.25em .25em 0 0}.options_filters[data-v-437ed666]{display:flex;flex-wrap:wrap;margin:.5em 0 0}.sort-option[data-v-437ed666],.filter-option[data-v-437ed666]{margin:.25em .25em .25em 0}.sort-option[data-selected=true][data-v-437ed666]{color:#ffc014;font-weight:700}.filter-option#abandoned[data-v-437ed666]{color:salmon}.filter-option#fulfilled[data-v-437ed666]{color:#90ee90}.filter-option#active[data-v-437ed666]{color:#add8e6}.search_content .search[data-v-437ed666]{margin:.5em auto}.search_content .search_actions[data-v-437ed666]{display:flex;gap:.5em;margin:1em 0;width:100%}.search_content .search_actions button[data-v-437ed666]{width:100%}.search_content .search-box .search-exit[data-v-437ed666]{position:absolute;transform:translateY(-50%);top:50%;right:0}@media only screen and (max-width: 700px){h1[data-v-437ed666]{text-align:center}h1[data-v-437ed666]:before{width:75%;left:50%;transform:translate(-50%)}.options_wrapper[data-v-437ed666]{font-size:1.1em;max-width:100%}.filter-option[data-v-437ed666],.sort-option[data-v-437ed666]{margin:.25em}.options_filters[data-v-437ed666],.options_sorters[data-v-437ed666]{justify-content:center}}.search_content>div[data-v-437ed666]{margin:.5em auto}.search_content>button[data-v-437ed666]{display:flex;justify-content:center;margin:0 auto}.filter-option button[data-v-437ed666]{color:#fff;font-weight:700}.filter-option button[data-disabled=true][data-v-437ed666]{color:#888}.filter-actions[data-v-437ed666]{display:flex;gap:.5em;width:100%;margin-top:1em}.filter-actions button[data-v-437ed666]{width:100%}.stats-anim-enter-active[data-v-e91c5bd9],.stats-anim-leave-active[data-v-e91c5bd9]{transition:all .15s ease-out}.stats-anim-enter-from[data-v-e91c5bd9],.stats-anim-leave-to[data-v-e91c5bd9]{opacity:0;transform:translateY(30px)}.train-stats[data-v-e91c5bd9]{position:relative;top:0;z-index:15}.stats_wrapper[data-v-e91c5bd9]{margin-bottom:.5em;outline:none}.stats-header[data-v-e91c5bd9]{display:flex;margin-bottom:.85em}.stats-header img[data-v-e91c5bd9]{vertical-align:middle;margin-right:.35em}.stats-body[data-v-e91c5bd9]{position:absolute;display:inline-block;max-width:700px;width:100%;top:100%;left:0;background:#222;border-radius:0 1em 1em;padding:1em}.stats-content[data-v-e91c5bd9]{color:#ddd}.category[data-v-e91c5bd9],.special[data-v-e91c5bd9]{margin-right:.4em;margin-bottom:.4em}.category-list[data-v-e91c5bd9],.special-list[data-v-e91c5bd9]{display:flex;flex-wrap:wrap}.category-type[data-v-e91c5bd9],.category-count[data-v-e91c5bd9],.special-type[data-v-e91c5bd9],.special-count[data-v-e91c5bd9]{display:inline-block;padding:.2em .4em}.category-type[data-v-e91c5bd9],.special-type[data-v-e91c5bd9]{background:#585858;font-weight:600}.category-count[data-v-e91c5bd9],.special-count[data-v-e91c5bd9]{background:#ffc014;color:#000}.special-list[data-v-e91c5bd9]{font-size:.85em}.special-count[data-v-e91c5bd9]{background:gray;color:#fff}.special.twr>.special-type[data-v-e91c5bd9]{background-color:var(--clr-twr);color:#000}.special.skr>.special-type[data-v-e91c5bd9]{background-color:var(--clr-skr);color:#fff}.warning[data-v-e91c5bd9]{display:inline-block;margin-right:.4em;padding:.2em .3em;color:#000;font-weight:700;font-size:.85em}@media only screen and (max-width: 700px){.stats-body[data-v-e91c5bd9]{display:block;width:100%;border-radius:0 0 1em 1em}.train-stats[data-v-e91c5bd9]{display:flex;justify-content:center}}.anim-enter-from[data-v-a74058cd],.anim-leave-to[data-v-a74058cd]{opacity:0}.anim-enter-active[data-v-a74058cd],.anim-leave-active[data-v-a74058cd]{transition:all .1s ease-out}.table-info[data-v-a74058cd]{text-align:center;padding:1em 0;font-size:1.5em;background:#1a1a1a}img.train-image[data-v-a74058cd]{width:12em}.traffic-warning[data-v-a74058cd]{padding:1em 0;margin-bottom:.5em;background:var(--clr-warning)}.timeouts-warning[data-v-a74058cd]{background-color:#333;font-weight:700;font-size:1.05em;margin-bottom:.5em;padding:.5em}.warning-timeout[data-v-a74058cd]{background-color:#be3728;color:#fff;display:inline-block;text-align:center;width:1.25em;height:1.25em;border-radius:50%}.train-list[data-v-a74058cd]{overflow:auto}@media only screen and (max-width: 700px){.train-list[data-v-a74058cd]{width:100%}}.train-row[data-v-a74058cd]{background-color:var(--clr-secondary);margin-bottom:1em;cursor:pointer}.train_cars[data-v-a74058cd]{display:flex;align-items:center;overflow:auto}.paginator[data-v-a74058cd]{display:flex;justify-content:center}.paginator_item[data-v-a74058cd]{padding:.25em .5em;margin:0 .5em;outline:2px solid salmon;min-width:30px;text-align:center;cursor:pointer}.paginator_item.page-number[data-v-a74058cd]{font-weight:700;color:gold}.paginator_item.disabled[data-v-a74058cd]{outline:2px solid lightgray;color:#d3d3d3}.paginator_item[data-v-a74058cd]:focus{outline:2px solid white}@media only screen and (max-width: 700px){.info-bottom[data-v-a74058cd]{text-align:center}}.trains-view[data-v-4c629457]{min-height:100%;position:relative}.trains_wrapper[data-v-4c629457]{margin:1rem auto;max-width:1350px} diff --git a/dist/assets/icon-2way-block-49d93818.svg b/dist/assets/icon-2way-block-49d93818.svg deleted file mode 100644 index abcb5e4..0000000 --- a/dist/assets/icon-2way-block-49d93818.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/dist/assets/icon-SBL-f943063d.svg b/dist/assets/icon-SBL-f943063d.svg deleted file mode 100644 index 133207a..0000000 --- a/dist/assets/icon-SBL-f943063d.svg +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/dist/assets/icon-SUP-b8f884de.svg b/dist/assets/icon-SUP-b8f884de.svg deleted file mode 100644 index 1b5942e..0000000 --- a/dist/assets/icon-SUP-b8f884de.svg +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - diff --git a/dist/assets/icon-abandoned-011b110f.svg b/dist/assets/icon-abandoned-011b110f.svg deleted file mode 100644 index 7682de1..0000000 --- a/dist/assets/icon-abandoned-011b110f.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/dist/assets/icon-arrow-asc-21e93faf.svg b/dist/assets/icon-arrow-asc-21e93faf.svg deleted file mode 100644 index 5e7caa7..0000000 --- a/dist/assets/icon-arrow-asc-21e93faf.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/icon-arrow-desc-fb0d9f71.svg b/dist/assets/icon-arrow-desc-fb0d9f71.svg deleted file mode 100644 index a7e0906..0000000 --- a/dist/assets/icon-arrow-desc-fb0d9f71.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/icon-back-c17da045.svg b/dist/assets/icon-back-c17da045.svg deleted file mode 100644 index 027a350..0000000 --- a/dist/assets/icon-back-c17da045.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/dist/assets/icon-clock-dafa8bf3.svg b/dist/assets/icon-clock-dafa8bf3.svg deleted file mode 100644 index 85e41e0..0000000 --- a/dist/assets/icon-clock-dafa8bf3.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/icon-dispatcher-94dba826.svg b/dist/assets/icon-dispatcher-94dba826.svg deleted file mode 100644 index 9ef4fd6..0000000 --- a/dist/assets/icon-dispatcher-94dba826.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/icon-dolar-2ed22951.svg b/dist/assets/icon-dolar-2ed22951.svg deleted file mode 100644 index 6a3c591..0000000 --- a/dist/assets/icon-dolar-2ed22951.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/icon-dollar-a64fa067.svg b/dist/assets/icon-dollar-a64fa067.svg deleted file mode 100644 index cdce7d6..0000000 --- a/dist/assets/icon-dollar-a64fa067.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/dist/assets/icon-en-eb636c9f.jpg b/dist/assets/icon-en-eb636c9f.jpg deleted file mode 100644 index 6f8f97b..0000000 Binary files a/dist/assets/icon-en-eb636c9f.jpg and /dev/null differ diff --git a/dist/assets/icon-error-4059b271.svg b/dist/assets/icon-error-4059b271.svg deleted file mode 100644 index b657b3f..0000000 --- a/dist/assets/icon-error-4059b271.svg +++ /dev/null @@ -1,46 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/dist/assets/icon-exit-775007bd.svg b/dist/assets/icon-exit-775007bd.svg deleted file mode 100644 index 0ffae97..0000000 --- a/dist/assets/icon-exit-775007bd.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/icon-filter2-983b991b.svg b/dist/assets/icon-filter2-983b991b.svg deleted file mode 100644 index 407e690..0000000 --- a/dist/assets/icon-filter2-983b991b.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/icon-historyczna-50a241b3.svg b/dist/assets/icon-historyczna-50a241b3.svg deleted file mode 100644 index 1e9a9d1..0000000 --- a/dist/assets/icon-historyczna-50a241b3.svg +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/dist/assets/icon-kształtowa-c4ec9301.svg b/dist/assets/icon-kształtowa-c4ec9301.svg deleted file mode 100644 index 43801f0..0000000 --- a/dist/assets/icon-kształtowa-c4ec9301.svg +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - diff --git a/dist/assets/icon-legend-e5d9657a.svg b/dist/assets/icon-legend-e5d9657a.svg deleted file mode 100644 index c71b4ef..0000000 --- a/dist/assets/icon-legend-e5d9657a.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/icon-length-de026784.svg b/dist/assets/icon-length-de026784.svg deleted file mode 100644 index 31bc059..0000000 --- a/dist/assets/icon-length-de026784.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/dist/assets/icon-like-6ad5d073.svg b/dist/assets/icon-like-6ad5d073.svg deleted file mode 100644 index 8c4ba66..0000000 --- a/dist/assets/icon-like-6ad5d073.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/icon-lock-02753ec3.svg b/dist/assets/icon-lock-02753ec3.svg deleted file mode 100644 index 1c79bea..0000000 --- a/dist/assets/icon-lock-02753ec3.svg +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/dist/assets/icon-mass-49ddddee.svg b/dist/assets/icon-mass-49ddddee.svg deleted file mode 100644 index c003b14..0000000 --- a/dist/assets/icon-mass-49ddddee.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/dist/assets/icon-mieszana-ac1c6cc4.svg b/dist/assets/icon-mieszana-ac1c6cc4.svg deleted file mode 100644 index b880e85..0000000 --- a/dist/assets/icon-mieszana-ac1c6cc4.svg +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/dist/assets/icon-offline-db86369f.svg b/dist/assets/icon-offline-db86369f.svg deleted file mode 100644 index 12bbee1..0000000 --- a/dist/assets/icon-offline-db86369f.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/dist/assets/icon-paypal-0f29d722.svg b/dist/assets/icon-paypal-0f29d722.svg deleted file mode 100644 index 1a562b4..0000000 --- a/dist/assets/icon-paypal-0f29d722.svg +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - diff --git a/dist/assets/icon-pl-80df7d22.svg b/dist/assets/icon-pl-80df7d22.svg deleted file mode 100644 index 9b5fcf9..0000000 --- a/dist/assets/icon-pl-80df7d22.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/dist/assets/icon-point-1600e4d1.svg b/dist/assets/icon-point-1600e4d1.svg deleted file mode 100644 index 1b6ccbf..0000000 --- a/dist/assets/icon-point-1600e4d1.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/icon-real-b3b507f3.svg b/dist/assets/icon-real-b3b507f3.svg deleted file mode 100644 index cd2ae23..0000000 --- a/dist/assets/icon-real-b3b507f3.svg +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/dist/assets/icon-route-02b20c34.svg b/dist/assets/icon-route-02b20c34.svg deleted file mode 100644 index af2fd9e..0000000 --- a/dist/assets/icon-route-02b20c34.svg +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/dist/assets/icon-scenery-d5858ec4.svg b/dist/assets/icon-scenery-d5858ec4.svg deleted file mode 100644 index 31a0b5d..0000000 --- a/dist/assets/icon-scenery-d5858ec4.svg +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - diff --git a/dist/assets/icon-schedule-746a6c5a.svg b/dist/assets/icon-schedule-746a6c5a.svg deleted file mode 100644 index df508af..0000000 --- a/dist/assets/icon-schedule-746a6c5a.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/icon-search-0af70534.svg b/dist/assets/icon-search-0af70534.svg deleted file mode 100644 index 2b4ae24..0000000 --- a/dist/assets/icon-search-0af70534.svg +++ /dev/null @@ -1 +0,0 @@ - diff --git a/dist/assets/icon-select-50e2c950.svg b/dist/assets/icon-select-50e2c950.svg deleted file mode 100644 index 78de7f6..0000000 --- a/dist/assets/icon-select-50e2c950.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/dist/assets/icon-signal-1a613006.svg b/dist/assets/icon-signal-1a613006.svg deleted file mode 100644 index 00e97c5..0000000 --- a/dist/assets/icon-signal-1a613006.svg +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/dist/assets/icon-sort-f67e54cf.svg b/dist/assets/icon-sort-f67e54cf.svg deleted file mode 100644 index 753f72f..0000000 --- a/dist/assets/icon-sort-f67e54cf.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/icon-spawn-afd1a9d3.svg b/dist/assets/icon-spawn-afd1a9d3.svg deleted file mode 100644 index 2bf6479..0000000 --- a/dist/assets/icon-spawn-afd1a9d3.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/dist/assets/icon-speed-9af526de.svg b/dist/assets/icon-speed-9af526de.svg deleted file mode 100644 index a98433a..0000000 --- a/dist/assets/icon-speed-9af526de.svg +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/dist/assets/icon-stats-4ced322d.svg b/dist/assets/icon-stats-4ced322d.svg deleted file mode 100644 index 1f37487..0000000 --- a/dist/assets/icon-stats-4ced322d.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/icon-td2-307f2ba1.svg b/dist/assets/icon-td2-307f2ba1.svg deleted file mode 100644 index 132c290..0000000 --- a/dist/assets/icon-td2-307f2ba1.svg +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/dist/assets/icon-timetable-7819413a.svg b/dist/assets/icon-timetable-7819413a.svg deleted file mode 100644 index 85263ca..0000000 --- a/dist/assets/icon-timetable-7819413a.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/dist/assets/icon-train-a8fa003d.svg b/dist/assets/icon-train-a8fa003d.svg deleted file mode 100644 index 352a90f..0000000 --- a/dist/assets/icon-train-a8fa003d.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/icon-unavailable-5ef4034d.svg b/dist/assets/icon-unavailable-5ef4034d.svg deleted file mode 100644 index 7a1d3fd..0000000 --- a/dist/assets/icon-unavailable-5ef4034d.svg +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/dist/assets/icon-unknown-805a2650.svg b/dist/assets/icon-unknown-805a2650.svg deleted file mode 100644 index c52254d..0000000 --- a/dist/assets/icon-unknown-805a2650.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/dist/assets/icon-user-bba7ef0f.svg b/dist/assets/icon-user-bba7ef0f.svg deleted file mode 100644 index 6a19172..0000000 --- a/dist/assets/icon-user-bba7ef0f.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/dist/assets/icon-view-84b12121.svg b/dist/assets/icon-view-84b12121.svg deleted file mode 100644 index 592e5f8..0000000 --- a/dist/assets/icon-view-84b12121.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/dist/assets/icon-warning-04405453.svg b/dist/assets/icon-warning-04405453.svg deleted file mode 100644 index d83e557..0000000 --- a/dist/assets/icon-warning-04405453.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/dist/assets/index-92bacebf.css b/dist/assets/index-92bacebf.css deleted file mode 100644 index 087937c..0000000 --- a/dist/assets/index-92bacebf.css +++ /dev/null @@ -1 +0,0 @@ -.clock[data-v-bfbd7cb4]{display:flex;align-items:center}.tooltip-anim-enter-from[data-v-3d31a48c],.tooltip-anim-leave-to[data-v-3d31a48c]{opacity:0}.tooltip-anim-enter-active[data-v-3d31a48c],.tooltip-anim-leave-active[data-v-3d31a48c]{transition:all .1s ease-in-out}.status-indicator[data-v-3d31a48c]{position:absolute;left:50%;bottom:0;transform:translate(12em);z-index:100}.indicator-content[data-v-3d31a48c]{display:flex;position:relative}.indicator-svg[data-v-3d31a48c]{width:1.2em}.indicator-tooltip[data-v-3d31a48c]{position:absolute;top:50%;left:100%;transform:translateY(-50%);padding:.5em;margin-left:1em;background-color:#171717;border-radius:.75em;min-width:13em;text-align:center;overflow:none;font-size:.95em}.indicator-tooltip[data-v-3d31a48c]:before{position:absolute;top:50%;left:1px;transform:translate(-100%,-50%);width:0;height:0;border-top:10px solid transparent;border-bottom:10px solid transparent;border-right:12px solid #171717;content:""}@media only screen and (max-width: 1150px){.indicator-tooltip[data-v-3d31a48c]{left:50%;top:100%;transform:translate(-50%);margin-left:0;margin-top:.75em}.indicator-tooltip[data-v-3d31a48c]:before{border-left:10px solid transparent;border-right:10px solid transparent;border-bottom:10px solid #171717;top:0;left:50%;transform:translate(-50%,-100%)}}@media only screen and (max-width: 700px){.indicator-tooltip[data-v-3d31a48c]{min-width:8em}}.unfold-enter-from[data-v-0aaa9c28],.unfold-leave-to[data-v-0aaa9c28]{opacity:0;transform:translateY(-10px) scale(.85)}.unfold-enter-active[data-v-0aaa9c28],.unfold-leave-active[data-v-0aaa9c28]{transition:all .11s ease-out}.unfold-enter-active[data-v-0aaa9c28]{transition-delay:var(--delay-in)}.unfold-leave-active[data-v-0aaa9c28]{transition-delay:var(--delay-out)}.select-box[data-v-0aaa9c28]{position:relative;width:auto}.arrow[data-v-0aaa9c28]{position:absolute;top:50%;right:0;padding:0;transform:translateY(-50%);pointer-events:none}.arrow img[data-v-0aaa9c28]{vertical-align:middle;width:1.35em}button.selected[data-v-0aaa9c28]{background-color:transparent;color:#afeeee;font-size:1em;font-weight:700;padding:.1em .5em;margin-right:2em;display:flex;width:100%;cursor:pointer;border:none;outline:none;text-align:left}button.selected[data-v-0aaa9c28]:focus{background-color:#262626}.select-box_content[data-v-0aaa9c28]{position:relative;margin:0 auto;height:100%;text-align:center}ul.options[data-v-0aaa9c28]{position:absolute;top:100%;left:0;height:auto;z-index:100;width:100%;font-size:.9em}li.option input[data-v-0aaa9c28]{position:absolute;top:0;left:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;outline:none;background:none}li.option input:focus+span[data-v-0aaa9c28]{color:#ffc014;font-weight:800}li.option:last-child label[data-v-0aaa9c28]{border-radius:0 0 1em 1em}li.option label[data-v-0aaa9c28]{position:relative;display:inline-block;background-color:#262626f2;padding:.5em 0;width:100%;cursor:pointer}li.option label[data-v-0aaa9c28]:hover,li.option label[data-v-0aaa9c28]:focus{background-color:#333333f2}.image-warning[data-v-92a6c2b3]{height:1em;margin-left:.5em}.train-stats[data-v-92a6c2b3]{display:flex;justify-content:center;align-content:center;flex-direction:column;text-align:center}.train-stats img[data-v-92a6c2b3]{margin:.5em 0;width:12em}.train-info[data-v-92a6c2b3]{display:grid;grid-template-columns:2fr 1fr;grid-template-rows:1fr;padding:1em;background-color:#1a1a1a;gap:.5em}.timetable-id[data-v-92a6c2b3]{margin-right:.3em;color:#d2d2d2}.warning-timeout[data-v-92a6c2b3]{background-color:#be3728;display:inline-block;text-align:center;width:1.25em;height:1.25em;border-radius:50%;margin-left:.25em}.timetable_stops[data-v-92a6c2b3]{font-size:.75em}.train_general[data-v-92a6c2b3]{display:flex;align-items:center;flex-wrap:wrap}.train-status-badges[data-v-92a6c2b3]{display:flex;flex-wrap:wrap}.train-badge[data-v-92a6c2b3]{padding:.15em .35em;margin-right:.3em;font-weight:700;font-size:.9em}.train-badge.twr[data-v-92a6c2b3]{background-color:var(--clr-twr)}.train-badge.skr[data-v-92a6c2b3]{background-color:var(--clr-skr)}.train-badge.offline[data-v-92a6c2b3]{background-color:#b83b2d}.train-driver.supporter[data-v-92a6c2b3]{color:orange;text-shadow:orange 0 0 5px}.timetable_route[data-v-92a6c2b3]{display:flex;align-items:center;margin-top:.5em}.timetable_warnings[data-v-92a6c2b3]{color:#000}.timetable_progress[data-v-92a6c2b3]{display:flex;align-items:center;flex-wrap:wrap}.timetable_progress-bar[data-v-92a6c2b3]{position:relative;width:6em;height:1em;margin:.5em 0}.timetable_progress-bar .bar-fg[data-v-92a6c2b3],.timetable_progress-bar .bar-bg[data-v-92a6c2b3]{position:absolute;height:1em;width:100%;left:0}.timetable_progress-bar .bar-fg[data-v-92a6c2b3]{background-color:#00ff7f}.timetable_progress-bar .bar-bg[data-v-92a6c2b3]{background-color:#5b5b5b}.timetable_progress-distance[data-v-92a6c2b3]{margin-right:.25em}.comments[data-v-92a6c2b3]{display:flex;align-items:center;font-size:.9em;margin-top:1em}.comments img[data-v-92a6c2b3]{margin-right:.5em}@media only screen and (max-width: 700px){.train-info[data-v-92a6c2b3]{grid-template-columns:1fr;gap:1em 0;text-align:center;font-size:1.15em}.train-stats[data-v-92a6c2b3]{font-size:1.1em}.train_general[data-v-92a6c2b3],.train-status-badges[data-v-92a6c2b3],.timetable_route[data-v-92a6c2b3],.timetable_progress[data-v-92a6c2b3]{justify-content:center}.comments[data-v-92a6c2b3]{flex-direction:column;justify-content:center}.comments img[data-v-92a6c2b3]{margin:0 0 .5em}}.stop-date[data-v-5c6de354]{display:flex;align-items:center}.stop-date .date[data-v-5c6de354]{background:#525151;padding:.3em .5em}.stop-date .stop[data-v-5c6de354]{background:#252525}.stop-date .stop.ph[data-v-5c6de354],.stop-date .stop.ph-pm[data-v-5c6de354],.stop-date .stop.pm[data-v-5c6de354]{background:#db8e29}.stop-date .arrival.delayed s[data-v-5c6de354],.stop-date .departure.delayed s[data-v-5c6de354]{color:#999}.stop-date .arrival.delayed span[data-v-5c6de354],.stop-date .departure.delayed span[data-v-5c6de354]{color:salmon}.stop-date .arrival.preponed s[data-v-5c6de354],.stop-date .departure.preponed s[data-v-5c6de354]{color:#999}.stop-date .arrival.preponed span[data-v-5c6de354],.stop-date .departure.preponed span[data-v-5c6de354]{color:#0f0}@keyframes blink-d8665452{0%{background-color:#b1b1b1}to{background-color:#18d818}}.train-schedule[data-v-d8665452]{padding:0 .25em}.train-stock[data-v-d8665452]{padding:.25em .5em;display:flex;justify-content:center}ul.stock-list[data-v-d8665452]{display:flex;align-items:flex-end;overflow:auto;padding-bottom:1em}ul.stock-list li>div[data-v-d8665452]{text-align:center;color:#aaa;font-size:.9em}ul.stock-list img[data-v-d8665452]{max-height:60px;max-width:320px}.schedule-wrapper[data-v-d8665452]{overflow-y:auto;width:100%;z-index:5;margin-top:1em}.progress-bar[data-v-d8665452]{position:absolute;z-index:10;top:-1px;left:-17px;height:100%;width:3px;background-color:#b1b1b1}.stop-name[data-v-d8665452]{background:#22a8d1;padding:.3em .5em;display:flex;align-items:center}.stop-name.misc[data-v-d8665452]{background:gray}.stop-comment[data-v-d8665452]{background:forestgreen;padding:.3em .5em;max-width:250px;overflow:hidden;white-space:nowrap;width:2em;cursor:pointer}.stop-comment[data-v-d8665452]:hover{text-overflow:ellipsis;width:100%}.stop-comment img[data-v-d8665452]{width:1em}.stop-comment span[data-v-d8665452]{font-size:.8em}ul.stop_list[data-v-d8665452]{margin-left:2.5em}ul.stop_list>li.stop[data-v-d8665452]{position:relative;display:flex;flex-direction:column;padding:0 .5em}ul.stop_list>li.stop.sbl .stop-date[data-v-d8665452]{display:none}ul.stop_list>li.stop.sbl .stop-name[data-v-d8665452]{background:none;color:#aaa;padding:0}ul.stop_list>li.stop[class*=ph]>.stop_info>.indicator[data-v-d8665452]{border-color:#22a8d1}ul.stop_list>li.stop[class*=pt]>.stop_info>.indicator[data-v-d8665452]{border-color:#818181}ul.stop_list>li.stop.begin .stop_info>.indicator[data-v-d8665452]{border-color:#90ee90}ul.stop_list>li.stop.begin .stop_info>.progress-bar[data-v-d8665452]{background:lightgreen}ul.stop_list>li.stop.end .stop_info>.indicator[data-v-d8665452]{border-color:salmon}ul.stop_list>li.stop.end .stop_info>.progress-bar[data-v-d8665452]{background:salmon}ul.stop_list>li.stop.minor-stop-active .stop_info>.progress-bar[data-v-d8665452]{animation:.5s ease-in-out alternate infinite blink-d8665452}ul.stop_list>li.stop.minor-stop-active .stop_line>.progress-bar[data-v-d8665452]{animation:.5s ease-in-out alternate infinite blink-d8665452}ul.stop_list>li.stop.last-confirmed .stop_line>.progress-bar[data-v-d8665452]{animation:.5s ease-in-out alternate infinite blink-d8665452}ul.stop_list>li.stop.confirmed .stop_info>.progress-bar[data-v-d8665452]{background-color:#18d818}ul.stop_list>li.stop.confirmed .stop_info>.indicator[data-v-d8665452]{border-color:#18d818}ul.stop_list>li.stop.confirmed .stop_line>.progress-bar[data-v-d8665452]{background-color:#18d818}ul.stop_list>li.stop.stopped .stop_info>.indicator[data-v-d8665452]{border-color:#f55f31}ul.stop_list>li.stop.stopped .stop_info>.stop-bar[data-v-d8665452]{background:#f55f31}ul.stop_list>li.stop .stop_line[data-v-d8665452]{font-size:.8em;color:#ccc;padding:.35em 0;position:relative}ul.stop_list>li.stop .stop_line .line-segment[data-v-d8665452]{color:#b1b1b1;font-weight:500}ul.stop_list>li.stop .stop_info[data-v-d8665452]{display:flex;position:relative;text-align:center;flex-wrap:wrap}ul.stop_list>li.stop .stop-bar[data-v-d8665452]{position:absolute;top:0;left:-17px;z-index:10;width:3px;height:100%}ul.stop_list>li.stop .distance[data-v-d8665452]{position:absolute;top:50%;transform:translate(-100%,-50%);margin-left:-1.75rem;font-size:.75em;color:#d6d6d6}ul.stop_list>li.stop .indicator[data-v-d8665452]{position:absolute;z-index:11;top:50%;left:-1rem;transform:translate(-47%,-50%);text-align:right;width:15px;height:15px;background:var(--clr-secondary);border:3px solid #b1b1b1;border-radius:100%}.card-dimmer[data-v-deaf34a4]{position:fixed;top:0;left:0;width:100vw;height:100vh;z-index:100;background:rgba(0,0,0,.65)}.card[data-v-deaf34a4]{position:fixed;top:50%;left:50%;z-index:100;transform:translate(-50%,-50%);overflow-x:hidden;background:rgba(32,32,32,.8549019608);box-shadow:0 0 15px 5px #303030;width:600px}@media only screen and (max-width: 700px){.card[data-v-deaf34a4]{width:100%;height:80vh}}.card-exit[data-v-deaf34a4]{position:absolute;top:0;right:0;margin:.5em;cursor:pointer}.card-exit img[data-v-deaf34a4]{width:2em}.top-info-bar-anim-enter-active[data-v-deaf34a4],.top-info-bar-anim-leave-active[data-v-deaf34a4]{transition:all .15s ease-in-out}.top-info-bar-anim-enter-from[data-v-deaf34a4],.top-info-bar-anim-leave-to[data-v-deaf34a4]{transform:translate(-50%,-50%) scale(.8);opacity:0}.exit[data-v-deaf34a4]{position:absolute;top:0;right:0;margin:.5em 1em;padding:.25em;z-index:201}.exit img[data-v-deaf34a4]{width:1.5rem;vertical-align:middle}.train-modal[data-v-deaf34a4]{position:fixed;top:0;left:0;width:100%;color:#fff;z-index:200;display:flex;justify-content:center;text-align:left}.modal_background[data-v-deaf34a4]{position:absolute;top:0;left:0;width:100vw;height:100vh;cursor:pointer;background-color:#0000008c}.modal_content[data-v-deaf34a4]{position:relative;overflow-y:scroll;margin-top:1em;width:95vw;max-height:96vh;background-color:#1a1a1a;box-shadow:0 0 15px 10px #0e0e0e}@media only screen and (max-width: 1150px){.exit[data-v-deaf34a4]{margin:.5em}.exit img[data-v-deaf34a4]{width:1.75rem}}@media only screen and (max-width: 700px){.modal_content[data-v-deaf34a4]{max-height:85vh}}.app_header[data-v-a6eab42d]{display:flex;justify-content:center;position:relative;background-color:#2c2c2c}.header_body[data-v-a6eab42d]{max-width:21em}@media only screen and (max-width: 700px){.header_body[data-v-a6eab42d]{max-width:18em}}.header_container[data-v-a6eab42d]{display:flex;justify-content:center;position:relative;width:1350px;padding:.5em .3em 0;border-radius:0 0 1em 1em}.header_brand[data-v-a6eab42d]{display:flex}.header_brand img[data-v-a6eab42d]{width:100%;margin:0 auto}.header_info[data-v-a6eab42d]{display:grid;grid-template-columns:1fr 1fr 1fr;max-width:100%;font-size:1.2em}.header_links[data-v-a6eab42d]{display:flex;justify-content:center;border-radius:.7em;font-size:1.25em;padding:.5em}.header_icons[data-v-a6eab42d]{position:absolute;right:0;top:0;height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-end;padding:.5em}@media only screen and (max-width: 700px){.header_icons[data-v-a6eab42d]{right:auto;left:.75em;padding:0;align-items:center}}.icons[data-v-a6eab42d]{position:relative}.icons-top[data-v-a6eab42d]{margin-bottom:.5em}.icons-top img[data-v-a6eab42d]{width:2.5em;cursor:pointer}.icons-bottom[data-v-a6eab42d]{display:flex}.icons-bottom a[data-v-a6eab42d]{margin-left:.6em;user-select:none}.icons-bottom img[data-v-a6eab42d]{width:1.9em}@media only screen and (max-width: 700px){.icons-bottom[data-v-a6eab42d]{flex-direction:column}.icons-bottom a[data-v-a6eab42d]{margin:.25em 0}}.info_counter[data-v-a6eab42d]{display:flex;justify-content:center;align-items:center}.info_counter span[data-v-a6eab42d]{margin:0 .15em}.info_counter img[data-v-a6eab42d]{width:1.35em}.info_region[data-v-a6eab42d]{color:#fff;font-weight:700;display:flex;justify-content:flex-end}.info_region .select-box_content button[data-v-a6eab42d]{background-color:transparent;font-weight:700;padding:.1em .5em;color:#afeeee}.info_region .options[data-v-a6eab42d]{font-size:.9em}:root{--clr-primary: #ffc014;--clr-secondary: #2f2f2f;--clr-bg: #4d4d4d;--clr-bg2: #1b1b1b;--clr-accent: #1085b3;--clr-accent2: #ff3d5d;--clr-skr: #ff5100;--clr-twr: #ffbb00;--clr-error: #df3e3e;--clr-warning: #c59429;font-size:16px}::-webkit-scrollbar{width:1rem;height:1rem;background-color:transparent}::-webkit-scrollbar-track{border-radius:.5em;background-color:#333}::-webkit-scrollbar-thumb{border-radius:.5em;background-color:#666}html{scroll-behavior:smooth}body{background:var(--clr-bg);margin:0;padding:0;font-family:Quicksand,sans-serif;overflow-y:scroll}body.no-scroll{overflow-y:hidden;padding-right:1rem}@media only screen and (max-width: 700px){body.no-scroll{padding:0}}.g-tooltip{position:relative;display:inline-block;vertical-align:middle}.g-tooltip .content{position:absolute;left:0;z-index:100;visibility:hidden;opacity:0;min-width:250px;background-color:#202020;text-align:center;border-radius:.5em;transition:opacity .3s;padding:.25em}.g-tooltip:hover>.content{visibility:visible;opacity:1}button,input,select{border:none;font-family:Quicksand,sans-serif;font-size:1em}input{background:none;color:#fff;font-size:1em;background-color:#333;padding:.15em .5em;outline:none}input::placeholder{color:#cfcfcf}*,*:before,*:after{box-sizing:border-box;padding:0;margin:0;-webkit-tap-highlight-color:transparent}*:focus{outline:none}*:focus-visible{outline:1px solid #ffc014}.title{color:#ffc014;font-weight:600;padding:.35em 0}a{display:inline-block;color:#fff;text-decoration:none;transition:color .3s}a:hover,a:focus{color:#ffc014;border:none}ul{padding:0;list-style:none}.flex{display:flex;align-items:center;justify-content:center;width:100%}.flex-spaced{justify-content:space-between}.flex-column{flex-direction:column}.text--primary{color:var(--clr-primary)}.text--grayed{color:#ccc}button{cursor:pointer;color:#fff;background:none;display:flex;align-items:center;justify-content:center;padding:.25em .5em;transition:all .1s ease}button[data-disabled=true]{user-select:none;pointer-events:none;opacity:.85}button.btn--filled{background-color:#1a1a1a;border-radius:.25em}button.btn--filled:hover{background-color:#2a2a2a}button.btn--action{background-color:#424242;border-radius:.25em}button.btn--action:hover{background-color:#555}button.btn--option{color:#fff;background-color:#333}button.btn--option.checked{color:var(--clr-primary);font-weight:700;background-color:#3c3c3c}button.btn--image{font-weight:700;padding:.35em .75em}button.btn--image img{width:1.5em;margin-right:.5em;vertical-align:middle}.return-btn{display:none;justify-content:center;align-items:center;position:fixed;right:2.5rem;bottom:4rem;z-index:100;width:3.5rem;font-size:3rem;background-color:#555;outline:3px solid #222;color:#fff;border-radius:50%;cursor:pointer}.return-btn:hover{background-color:#3c3c3c}.return-btn img{width:1.3em}@media only screen and (max-width: 700px){.return-btn{bottom:1em;right:0;left:50%;width:1em;height:1em;transform:translate(-50%)}}@media only screen and (max-width: 700px){::-webkit-scrollbar{width:.5em;height:.5em}::-webkit-scrollbar-track{background-color:#222}::-webkit-scrollbar-thumb{background-color:#777}}.status-badge{border-radius:1rem;font-weight:500;padding:.2em .55em;background-color:#09a116}.status-badge.free{background-color:#8a8a8a;font-size:.95em}.status-badge.ending{background-color:#e6c300;color:#000;font-size:.9em}.status-badge.no-limit{background-color:#117fc9;font-size:.85em}.status-badge.not-signed,.status-badge.unavailable{background-color:#ff3d5d;font-size:.85em}.status-badge.brb{background-color:#e6a100;color:#000;font-size:.95em}.status-badge.no-space{background-color:#222;color:#fff;font-size:.85em}.status-badge.unknown{background-color:#b93c3c;font-size:.95em}.view-anim-enter-from,.view-anim-leave-to{opacity:.02}.view-anim-enter-active,.view-anim-leave-active{transition:all .15s ease-in-out;min-height:100%}.modal-anim-enter-active,.modal-anim-leave-active{transition:all .15s ease-in-out}.modal-anim-enter-from,.modal-anim-leave-to{transform:translateY(-25%);opacity:0}.route{margin:0 .2em}.route-active{color:#ffc014;font-weight:700}#app{color:#fff;font-size:1rem}@media only screen and (max-width: 700px){#app{font-size:calc(.55rem + 1vw)}}.app_container{display:flex;flex-flow:column;min-height:100vh}.app_container header{flex:0 0 auto}.app_container main{flex:1 1 auto;padding:0 .5em}.app_container footer{flex:0 1 .2em}.warning{background-color:#b22222;text-align:center;padding:.5em .4em;max-width:1100px;margin:0 auto;border-radius:0 0 1em 1em}footer.app_footer{max-width:100%;padding:.5em;z-index:10;background:#111;color:#fff;text-align:center;vertical-align:middle}.button_content{display:flex;justify-content:center;align-items:center}.search label[data-v-e186669b]{display:block;color:#ccc;margin-bottom:.25em}.search-box[data-v-e186669b]{position:relative;display:flex;border-radius:.5em;min-width:200px;margin-right:.25em}.search-input[data-v-e186669b]{border:none;background-color:#424242;padding:.35em .5em;width:100%}.search-exit[data-v-e186669b]{background-color:#424242}.search-exit img[data-v-e186669b]{vertical-align:middle;height:1.3em}.search-button[data-v-e186669b]{width:80%;max-width:300px}@media only screen and (max-width: 700px){.search-box[data-v-e186669b],.search-button[data-v-e186669b]{margin:.5em 0 0}.search-box[data-v-e186669b]{width:100%}}h1.option-title[data-v-e186669b]{position:relative;font-size:1.1em;margin:.7em 0 .25em}h1.option-title[data-v-e186669b]:before{content:"";position:absolute;top:-4px;width:50%;height:2px;background-color:#fff;border-radius:2px}.options-anim-enter-from[data-v-e186669b],.options-anim-leave-to[data-v-e186669b]{opacity:0;transform:translateY(10px)}.options-anim-enter-active[data-v-e186669b],.options-anim-leave-active[data-v-e186669b]{transition:all .15s ease}.bg[data-v-e186669b]{position:fixed;top:0;left:0;width:100vw;height:100vh;z-index:10}.filters-options[data-v-e186669b]{position:relative;margin-bottom:.5em}.options_wrapper[data-v-e186669b]{position:absolute;background-color:#1d1d1d;box-shadow:0 5px 10px 2px #0f0f0f;width:100%;max-width:500px;padding:1em;z-index:100}.options_sorters[data-v-e186669b]{display:flex;align-items:center;flex-wrap:wrap;padding:.25em .25em 0 0}.options_filters[data-v-e186669b]{display:flex;flex-wrap:wrap;margin:.5em 0 0}.sort-option[data-v-e186669b],.filter-option[data-v-e186669b]{margin:.25em .25em .25em 0}.sort-option[data-selected=true][data-v-e186669b]{color:#ffc014;font-weight:700}.filter-option#abandoned[data-v-e186669b]{color:salmon}.filter-option#fulfilled[data-v-e186669b]{color:#90ee90}.filter-option#active[data-v-e186669b]{color:#add8e6}.search_content .search[data-v-e186669b]{margin:.5em auto}.search_content .search_actions[data-v-e186669b]{display:flex;gap:.5em;margin:1em 0;width:100%}.search_content .search_actions button[data-v-e186669b]{width:100%}.search_content .search-box .search-exit[data-v-e186669b]{position:absolute;transform:translateY(-50%);top:50%;right:0}@media only screen and (max-width: 700px){h1[data-v-e186669b]{text-align:center}h1[data-v-e186669b]:before{width:75%;left:50%;transform:translate(-50%)}.options_wrapper[data-v-e186669b]{font-size:1.1em;max-width:100%}.filter-option[data-v-e186669b],.sort-option[data-v-e186669b]{margin:.25em}.options_filters[data-v-e186669b],.options_sorters[data-v-e186669b]{justify-content:center}}.loading[data-v-c1cfc32f]{position:absolute;left:50%;transform:translate(-50%,-50%);display:flex;justify-content:center;align-items:center;margin-top:2em}.loading-circle[data-v-c1cfc32f]{width:1.25rem;padding-top:1.25rem;border-radius:50%;background-color:#fff;margin:0 .25em;animation:anim-c1cfc32f .45s ease-in-out infinite alternate}.loading-circle[data-v-c1cfc32f]:nth-child(odd){background-color:salmon}.loading-circle[data-v-c1cfc32f]:nth-child(1n){animation-delay:0s}.loading-circle[data-v-c1cfc32f]:nth-child(2n){animation-delay:.15s}.loading-circle[data-v-c1cfc32f]:nth-child(3n){animation-delay:.3s}@keyframes anim-c1cfc32f{0%{transform:scale(1)}to{transform:scale(.45)}}.stats_container[data-v-18012bbe]{position:relative}.stats_card[data-v-18012bbe]{position:absolute;z-index:999;top:120%;right:0;width:500px;max-width:97vw;min-height:100px;overflow:auto;border-radius:1em 0 1em 1em;background-color:#222222f1;box-shadow:0 3px 10px 5px #131313;padding:1em .5em}.last-timetables[data-v-18012bbe]{max-height:400px;margin:.5em 0}.timetable-row[data-v-18012bbe]{width:95%;margin:.5em auto;padding:.5em;background-color:#4d4d4d}h2.card-title[data-v-18012bbe]{font-size:1.8em}h3[data-v-18012bbe]{margin-top:1em}h2[data-v-18012bbe],h3[data-v-18012bbe]{text-align:center}.last-timetables[data-v-18012bbe]{overflow-y:auto}.search-box[data-v-ed43cef4]{position:relative;background:#333;border-radius:.5em;min-width:220px;margin:.5em 0 .5em .5em}@media only screen and (max-width: 700px){.search-box[data-v-ed43cef4]{width:85%}}.search-input[data-v-ed43cef4]{border:none;min-width:85%;padding:.35em .5em}.search-exit[data-v-ed43cef4]{position:absolute;cursor:pointer;top:50%;right:10px;transform:translateY(-50%);width:1em}.warning-enter-from[data-v-87911a70],.warning-leave-to[data-v-87911a70]{opacity:0}.warning-enter-active[data-v-87911a70],.warning-leave-active[data-v-87911a70]{transition:all .15s .1s ease-out}.list_wrapper[data-v-87911a70]{overflow-y:auto;height:90vh;min-height:550px;padding-right:.2em}.journal_wrapper[data-v-87911a70]{max-width:1350px;width:100%;margin:0 auto;padding:1em 0}.journal_warning[data-v-87911a70]{text-align:center;font-size:1.3em}.journal_warning.error[data-v-87911a70]{background-color:var(--clr-error)}.schedule-dates>*[data-v-87911a70]{margin-right:.25em}.journal_item[data-v-87911a70],.journal_warning[data-v-87911a70]{background-color:#1a1a1a;padding:1em;margin-bottom:1em}.journal_top-bar[data-v-87911a70]{display:flex;justify-content:space-between;align-items:center}.btn--load-data[data-v-87911a70]{padding:.5em 1em;display:flex;margin:0 auto;font-size:1.2em}@media only screen and (max-width: 700px){.list_wrapper[data-v-87911a70]{font-size:1.1em}.journal_top-bar[data-v-87911a70]{justify-content:center;flex-wrap:wrap}}@media (orientation: landscape){.list_wrapper[data-v-87911a70]{font-size:1em}}.region-badge[data-v-87911a70]{padding:.1em .5em;border-radius:.5em;font-weight:700}.region-badge.eu[data-v-87911a70]{background-color:#228b22}li.sticky[data-v-87911a70]{position:sticky;top:0}.journal_item[data-v-87911a70]{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;padding:.75em}.journal_item.online[data-v-87911a70]{cursor:pointer}.journal_item span[data-status=true][data-v-87911a70]{color:#00ff7f}.journal_item span[data-status=false][data-v-87911a70]{color:salmon}.journal_day[data-v-87911a70]{margin-bottom:1em;padding:.5em;font-weight:700;background-color:#333}.journal_day span[data-v-87911a70]{position:relative;background-color:inherit;z-index:10;padding-right:1em;font-weight:700}@media only screen and (max-width: 700px){.journal_item[data-v-87911a70]{flex-direction:column}.journal_item span[data-v-87911a70]{margin-top:.25em;text-align:center}}.journal-type-options[data-v-619c2652]{display:flex;justify-content:center;background-color:#2c2c2c;max-width:18em;font-size:1.2em;margin:0 auto;border-radius:0 0 .5em .5em;padding:.1em 0}.journal-section>section[data-v-619c2652]{height:100%;display:flex;justify-content:center}.router-link.active[data-v-619c2652]{color:gold}.warning-enter-from[data-v-f5438d40],.warning-leave-to[data-v-f5438d40]{opacity:0}.warning-enter-active[data-v-f5438d40],.warning-leave-active[data-v-f5438d40]{transition:all .15s .1s ease-out}.list_wrapper[data-v-f5438d40]{overflow-y:auto;height:90vh;min-height:550px;padding-right:.2em}.journal_wrapper[data-v-f5438d40]{max-width:1350px;width:100%;margin:0 auto;padding:1em 0}.journal_warning[data-v-f5438d40]{text-align:center;font-size:1.3em}.journal_warning.error[data-v-f5438d40]{background-color:var(--clr-error)}.schedule-dates>*[data-v-f5438d40]{margin-right:.25em}.journal_item[data-v-f5438d40],.journal_warning[data-v-f5438d40]{background-color:#1a1a1a;padding:1em;margin-bottom:1em}.journal_top-bar[data-v-f5438d40]{display:flex;justify-content:space-between;align-items:center}.btn--load-data[data-v-f5438d40]{padding:.5em 1em;display:flex;margin:0 auto;font-size:1.2em}@media only screen and (max-width: 700px){.list_wrapper[data-v-f5438d40]{font-size:1.1em}.journal_top-bar[data-v-f5438d40]{justify-content:center;flex-wrap:wrap}}@media (orientation: landscape){.list_wrapper[data-v-f5438d40]{font-size:1em}}.stats-tab[data-v-96579c40]{background-color:#1a1a1a;padding:1em;margin-bottom:1em;min-height:100px;display:flex;align-items:flex-end;border-radius:0 0 1em 1em}.info-stats[data-v-96579c40]{display:flex;flex-wrap:wrap;gap:.5em;margin-top:1em}.stat-badge[data-v-96579c40]{display:flex}.stat-badge span[data-v-96579c40]{background-color:#ffc014;color:#000;font-weight:700;padding:.2em .5em}.stat-badge span[data-v-96579c40]:first-child{background-color:#333;color:#fff}@media only screen and (max-width: 700px){.journal-stats[data-v-96579c40]{text-align:center}.info-stats[data-v-96579c40]{justify-content:center}}.badge[data-v-1cbf1d98]{font-weight:600;display:inline-block;padding:0;background:#585858;margin:.25em}.badge span[data-v-1cbf1d98]{display:inline-block;padding:.2em .4em}.badge-none[data-v-1cbf1d98]{font-weight:600;padding:.2em .4em;background:firebrick;text-align:center}@media only screen and (max-width: 700px){.badge-none[data-v-1cbf1d98]{font-size:1em}}.warning-enter-from[data-v-1cbf1d98],.warning-leave-to[data-v-1cbf1d98]{opacity:0}.warning-enter-active[data-v-1cbf1d98],.warning-leave-active[data-v-1cbf1d98]{transition:all .15s .1s ease-out}.list_wrapper[data-v-1cbf1d98]{overflow-y:auto;height:90vh;min-height:550px;padding-right:.2em}.journal_wrapper[data-v-1cbf1d98]{max-width:1350px;width:100%;margin:0 auto;padding:1em 0}.journal_warning[data-v-1cbf1d98]{text-align:center;font-size:1.3em}.journal_warning.error[data-v-1cbf1d98]{background-color:var(--clr-error)}.schedule-dates>*[data-v-1cbf1d98]{margin-right:.25em}.journal_item[data-v-1cbf1d98],.journal_warning[data-v-1cbf1d98]{background-color:#1a1a1a;padding:1em;margin-bottom:1em}.journal_top-bar[data-v-1cbf1d98]{display:flex;justify-content:space-between;align-items:center}.btn--load-data[data-v-1cbf1d98]{padding:.5em 1em;display:flex;margin:0 auto;font-size:1.2em}@media only screen and (max-width: 700px){.list_wrapper[data-v-1cbf1d98]{font-size:1.1em}.journal_top-bar[data-v-1cbf1d98]{justify-content:center;flex-wrap:wrap}}@media (orientation: landscape){.list_wrapper[data-v-1cbf1d98]{font-size:1em}}hr[data-v-1cbf1d98]{margin:.25em 0}.info-date[data-v-1cbf1d98]{margin-right:.5em}.info-status[data-v-1cbf1d98]{padding:.05em .35em;color:#000}.info-status.terminated[data-v-1cbf1d98]{background-color:salmon}.info-status.fulfilled[data-v-1cbf1d98]{background-color:#90ee90}.info-status.active[data-v-1cbf1d98]{background-color:#add8e6}.info-top[data-v-1cbf1d98]{display:flex;flex-wrap:wrap;justify-content:space-between}.info-route[data-v-1cbf1d98]{margin:.25em 0}.info-extended[data-v-1cbf1d98]{margin-top:.5em}ul.stock-list[data-v-1cbf1d98]{display:flex;align-items:flex-end;overflow:auto;padding-bottom:.5em;margin-top:1em}ul.stock-list li>div[data-v-1cbf1d98]{text-align:center;color:#aaa;font-size:.9em}.scenery-list[data-v-1cbf1d98]{color:#adadad}.scenery-list span.confirmed[data-v-1cbf1d98]{color:#a3eba3}.btn--show[data-v-1cbf1d98]{display:flex;margin-top:1em;font-weight:700;padding:.2em .45em}.btn--show img[data-v-1cbf1d98]{height:1.3em}.info-badge span[data-v-1cbf1d98]:last-child{color:#000;background-color:#ffc014}@media only screen and (max-width: 700px){.info-top[data-v-1cbf1d98]{flex-direction:column}.info-top span[data-v-1cbf1d98]{margin:.1em auto}.info-extended[data-v-1cbf1d98]{text-align:center}.info-route[data-v-1cbf1d98]{display:flex;justify-content:center}.btn--show[data-v-1cbf1d98]{margin:1em auto 0}}.daily-stats>span[data-active="0"][data-v-aab1e1c1]{opacity:.75}.stats-tab[data-v-855fd946]{background-color:#1a1a1a;padding:1em;margin-bottom:1em;min-height:100px;display:flex;align-items:flex-end;border-radius:0 0 1em 1em}.info-stats[data-v-855fd946]{display:flex;flex-wrap:wrap;gap:.5em;margin-top:1em}.stat-badge[data-v-855fd946]{display:flex}.stat-badge span[data-v-855fd946]{background-color:#ffc014;color:#000;font-weight:700;padding:.2em .5em}.stat-badge span[data-v-855fd946]:first-child{background-color:#333;color:#fff}@media only screen and (max-width: 700px){.journal-stats[data-v-855fd946]{text-align:center}.info-stats[data-v-855fd946]{justify-content:center}}.tabs[data-v-855fd946]{display:flex;gap:.5em}.tabs button[data-v-855fd946]{font-weight:700;border-radius:.4em .4em 0 0;padding:.5em .75em}.tabs button[data-inactive=true][data-v-855fd946]{color:gray}.tabs button[data-selected=true][data-v-855fd946]{color:#ffc014}.warning-enter-from[data-v-54f4461d],.warning-leave-to[data-v-54f4461d]{opacity:0}.warning-enter-active[data-v-54f4461d],.warning-leave-active[data-v-54f4461d]{transition:all .15s .1s ease-out}.list_wrapper[data-v-54f4461d]{overflow-y:auto;height:90vh;min-height:550px;padding-right:.2em}.journal_wrapper[data-v-54f4461d]{max-width:1350px;width:100%;margin:0 auto;padding:1em 0}.journal_warning[data-v-54f4461d]{text-align:center;font-size:1.3em}.journal_warning.error[data-v-54f4461d]{background-color:var(--clr-error)}.schedule-dates>*[data-v-54f4461d]{margin-right:.25em}.journal_item[data-v-54f4461d],.journal_warning[data-v-54f4461d]{background-color:#1a1a1a;padding:1em;margin-bottom:1em}.journal_top-bar[data-v-54f4461d]{display:flex;justify-content:space-between;align-items:center}.btn--load-data[data-v-54f4461d]{padding:.5em 1em;display:flex;margin:0 auto;font-size:1.2em}@media only screen and (max-width: 700px){.list_wrapper[data-v-54f4461d]{font-size:1.1em}.journal_top-bar[data-v-54f4461d]{justify-content:center;flex-wrap:wrap}}@media (orientation: landscape){.list_wrapper[data-v-54f4461d]{font-size:1em}} diff --git a/dist/assets/index-a65056c2.js b/dist/assets/index-a65056c2.js deleted file mode 100644 index 9b5b036..0000000 --- a/dist/assets/index-a65056c2.js +++ /dev/null @@ -1,16 +0,0 @@ -(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))s(r);new MutationObserver(r=>{for(const i of r)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&s(o)}).observe(document,{childList:!0,subtree:!0});function n(r){const i={};return r.integrity&&(i.integrity=r.integrity),r.referrerpolicy&&(i.referrerPolicy=r.referrerpolicy),r.crossorigin==="use-credentials"?i.credentials="include":r.crossorigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function s(r){if(r.ep)return;r.ep=!0;const i=n(r);fetch(r.href,i)}})();function ji(e,t){const n=Object.create(null),s=e.split(",");for(let r=0;r!!n[r.toLowerCase()]:r=>!!n[r]}function zn(e){if(ee(e)){const t={};for(let n=0;n{if(n){const s=n.split(fd);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function it(e){let t="";if(Be(e))t=e;else if(ee(e))for(let n=0;nNn(n,t))}const N=e=>Be(e)?e:e==null?"":ee(e)||Ce(e)&&(e.toString===Fc||!oe(e.toString))?JSON.stringify(e,$c,2):String(e),$c=(e,t)=>t&&t.__v_isRef?$c(e,t.value):xn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r])=>(n[`${s} =>`]=r,n),{})}:ns(t)?{[`Set(${t.size})`]:[...t.values()]}:Ce(t)&&!ee(t)&&!Mc(t)?String(t):t,Re={},jn=[],Tt=()=>{},_d=()=>!1,yd=/^on[^a-z]/,_r=e=>yd.test(e),Hi=e=>e.startsWith("onUpdate:"),Ge=Object.assign,Vi=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},bd=Object.prototype.hasOwnProperty,ge=(e,t)=>bd.call(e,t),ee=Array.isArray,xn=e=>Bs(e)==="[object Map]",ns=e=>Bs(e)==="[object Set]",Uo=e=>Bs(e)==="[object Date]",oe=e=>typeof e=="function",Be=e=>typeof e=="string",As=e=>typeof e=="symbol",Ce=e=>e!==null&&typeof e=="object",Pc=e=>Ce(e)&&oe(e.then)&&oe(e.catch),Fc=Object.prototype.toString,Bs=e=>Fc.call(e),vd=e=>Bs(e).slice(8,-1),Mc=e=>Bs(e)==="[object Object]",Wi=e=>Be(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,tr=ji(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),yr=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Sd=/-(\w)/g,Bt=yr(e=>e.replace(Sd,(t,n)=>n?n.toUpperCase():"")),Ed=/\B([A-Z])/g,On=yr(e=>e.replace(Ed,"-$1").toLowerCase()),br=yr(e=>e.charAt(0).toUpperCase()+e.slice(1)),xr=yr(e=>e?`on${br(e)}`:""),ks=(e,t)=>!Object.is(e,t),Hn=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Kn=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let jo;const wd=()=>jo||(jo=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let lt;class Bc{constructor(t=!1){this.detached=t,this.active=!0,this.effects=[],this.cleanups=[],this.parent=lt,!t&<&&(this.index=(lt.scopes||(lt.scopes=[])).push(this)-1)}run(t){if(this.active){const n=lt;try{return lt=this,t()}finally{lt=n}}}on(){lt=this}off(){lt=this.parent}stop(t){if(this.active){let n,s;for(n=0,s=this.effects.length;n{const t=new Set(e);return t.w=0,t.n=0,t},Uc=e=>(e.w&dn)>0,jc=e=>(e.n&dn)>0,Ld=({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let s=0;s{(u==="length"||u>=l)&&a.push(c)})}else switch(n!==void 0&&a.push(o.get(n)),t){case"add":ee(e)?Wi(n)&&a.push(o.get("length")):(a.push(o.get(kn)),xn(e)&&a.push(o.get(ii)));break;case"delete":ee(e)||(a.push(o.get(kn)),xn(e)&&a.push(o.get(ii)));break;case"set":xn(e)&&a.push(o.get(kn));break}if(a.length===1)a[0]&&oi(a[0]);else{const l=[];for(const c of a)c&&l.push(...c);oi(Ki(l))}}function oi(e,t){const n=ee(e)?e:[...e];for(const s of n)s.computed&&Ho(s);for(const s of n)s.computed||Ho(s)}function Ho(e,t){(e!==Et||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const Cd=ji("__proto__,__v_isRef,__isVue"),Vc=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(As)),Od=Gi(),Id=Gi(!1,!0),Rd=Gi(!0),Vo=Dd();function Dd(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const s=ye(this);for(let i=0,o=this.length;i{e[t]=function(...n){ss();const s=ye(this)[t].apply(this,n);return rs(),s}}),e}function Gi(e=!1,t=!1){return function(s,r,i){if(r==="__v_isReactive")return!e;if(r==="__v_isReadonly")return e;if(r==="__v_isShallow")return t;if(r==="__v_raw"&&i===(e?t?qd:Gc:t?Yc:Kc).get(s))return s;const o=ee(s);if(!e&&o&&ge(Vo,r))return Reflect.get(Vo,r,i);const a=Reflect.get(s,r,i);return(As(r)?Vc.has(r):Cd(r))||(e||ut(s,"get",r),t)?a:Pe(a)?o&&Wi(r)?a:a.value:Ce(a)?e?qc(a):yt(a):a}}const $d=Wc(),Pd=Wc(!0);function Wc(e=!1){return function(n,s,r,i){let o=n[s];if(Yn(o)&&Pe(o)&&!Pe(r))return!1;if(!e&&(!dr(r)&&!Yn(r)&&(o=ye(o),r=ye(r)),!ee(n)&&Pe(o)&&!Pe(r)))return o.value=r,!0;const a=ee(n)&&Wi(s)?Number(s)e,vr=e=>Reflect.getPrototypeOf(e);function zs(e,t,n=!1,s=!1){e=e.__v_raw;const r=ye(e),i=ye(t);n||(t!==i&&ut(r,"get",t),ut(r,"get",i));const{has:o}=vr(r),a=s?qi:n?Xi:Ls;if(o.call(r,t))return a(e.get(t));if(o.call(r,i))return a(e.get(i));e!==r&&e.get(t)}function Ks(e,t=!1){const n=this.__v_raw,s=ye(n),r=ye(e);return t||(e!==r&&ut(s,"has",e),ut(s,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function Ys(e,t=!1){return e=e.__v_raw,!t&&ut(ye(e),"iterate",kn),Reflect.get(e,"size",e)}function Wo(e){e=ye(e);const t=ye(this);return vr(t).has.call(t,e)||(t.add(e),Kt(t,"add",e,e)),this}function zo(e,t){t=ye(t);const n=ye(this),{has:s,get:r}=vr(n);let i=s.call(n,e);i||(e=ye(e),i=s.call(n,e));const o=r.call(n,e);return n.set(e,t),i?ks(t,o)&&Kt(n,"set",e,t):Kt(n,"add",e,t),this}function Ko(e){const t=ye(this),{has:n,get:s}=vr(t);let r=n.call(t,e);r||(e=ye(e),r=n.call(t,e)),s&&s.call(t,e);const i=t.delete(e);return r&&Kt(t,"delete",e,void 0),i}function Yo(){const e=ye(this),t=e.size!==0,n=e.clear();return t&&Kt(e,"clear",void 0,void 0),n}function Gs(e,t){return function(s,r){const i=this,o=i.__v_raw,a=ye(o),l=t?qi:e?Xi:Ls;return!e&&ut(a,"iterate",kn),o.forEach((c,u)=>s.call(r,l(c),l(u),i))}}function qs(e,t,n){return function(...s){const r=this.__v_raw,i=ye(r),o=xn(i),a=e==="entries"||e===Symbol.iterator&&o,l=e==="keys"&&o,c=r[e](...s),u=n?qi:t?Xi:Ls;return!t&&ut(i,"iterate",l?ii:kn),{next(){const{value:h,done:p}=c.next();return p?{value:h,done:p}:{value:a?[u(h[0]),u(h[1])]:u(h),done:p}},[Symbol.iterator](){return this}}}}function Zt(e){return function(...t){return e==="delete"?!1:this}}function xd(){const e={get(i){return zs(this,i)},get size(){return Ys(this)},has:Ks,add:Wo,set:zo,delete:Ko,clear:Yo,forEach:Gs(!1,!1)},t={get(i){return zs(this,i,!1,!0)},get size(){return Ys(this)},has:Ks,add:Wo,set:zo,delete:Ko,clear:Yo,forEach:Gs(!1,!0)},n={get(i){return zs(this,i,!0)},get size(){return Ys(this,!0)},has(i){return Ks.call(this,i,!0)},add:Zt("add"),set:Zt("set"),delete:Zt("delete"),clear:Zt("clear"),forEach:Gs(!0,!1)},s={get(i){return zs(this,i,!0,!0)},get size(){return Ys(this,!0)},has(i){return Ks.call(this,i,!0)},add:Zt("add"),set:Zt("set"),delete:Zt("delete"),clear:Zt("clear"),forEach:Gs(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=qs(i,!1,!1),n[i]=qs(i,!0,!1),t[i]=qs(i,!1,!0),s[i]=qs(i,!0,!0)}),[e,n,t,s]}const[Hd,Vd,Wd,zd]=xd();function Ji(e,t){const n=t?e?zd:Wd:e?Vd:Hd;return(s,r,i)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?s:Reflect.get(ge(n,r)&&r in s?n:s,r,i)}const Kd={get:Ji(!1,!1)},Yd={get:Ji(!1,!0)},Gd={get:Ji(!0,!1)},Kc=new WeakMap,Yc=new WeakMap,Gc=new WeakMap,qd=new WeakMap;function Jd(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Zd(e){return e.__v_skip||!Object.isExtensible(e)?0:Jd(vd(e))}function yt(e){return Yn(e)?e:Zi(e,!1,zc,Kd,Kc)}function Xd(e){return Zi(e,!1,jd,Yd,Yc)}function qc(e){return Zi(e,!0,Ud,Gd,Gc)}function Zi(e,t,n,s,r){if(!Ce(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=r.get(e);if(i)return i;const o=Zd(e);if(o===0)return e;const a=new Proxy(e,o===2?s:n);return r.set(e,a),a}function un(e){return Yn(e)?un(e.__v_raw):!!(e&&e.__v_isReactive)}function Yn(e){return!!(e&&e.__v_isReadonly)}function dr(e){return!!(e&&e.__v_isShallow)}function Jc(e){return un(e)||Yn(e)}function ye(e){const t=e&&e.__v_raw;return t?ye(t):e}function Gn(e){return fr(e,"__v_skip",!0),e}const Ls=e=>Ce(e)?yt(e):e,Xi=e=>Ce(e)?qc(e):e;function Zc(e){cn&&Et&&(e=ye(e),Hc(e.dep||(e.dep=Ki())))}function Xc(e,t){e=ye(e),e.dep&&oi(e.dep)}function Pe(e){return!!(e&&e.__v_isRef===!0)}function Se(e){return eu(e,!1)}function Qc(e){return eu(e,!0)}function eu(e,t){return Pe(e)?e:new Qd(e,t)}class Qd{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:ye(t),this._value=n?t:Ls(t)}get value(){return Zc(this),this._value}set value(t){const n=this.__v_isShallow||dr(t)||Yn(t);t=n?t:ye(t),ks(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:Ls(t),Xc(this))}}function Pt(e){return Pe(e)?e.value:e}const eh={get:(e,t,n)=>Pt(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const r=e[t];return Pe(r)&&!Pe(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function tu(e){return un(e)?e:new Proxy(e,eh)}function th(e){const t=ee(e)?new Array(e.length):{};for(const n in e)t[n]=sh(e,n);return t}class nh{constructor(t,n,s){this._object=t,this._key=n,this._defaultValue=s,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}}function sh(e,t,n){const s=e[t];return Pe(s)?s:new nh(e,t,n)}var nu;class rh{constructor(t,n,s,r){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this[nu]=!1,this._dirty=!0,this.effect=new Yi(t,()=>{this._dirty||(this._dirty=!0,Xc(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=s}get value(){const t=ye(this);return Zc(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}nu="__v_isReadonly";function ih(e,t,n=!1){let s,r;const i=oe(e);return i?(s=e,r=Tt):(s=e.get,r=e.set),new rh(s,r,i||!r,n)}function fn(e,t,n,s){let r;try{r=s?e(...s):e()}catch(i){Sr(i,t,n)}return r}function mt(e,t,n,s){if(oe(e)){const i=fn(e,t,n,s);return i&&Pc(i)&&i.catch(o=>{Sr(o,t,n)}),i}const r=[];for(let i=0;i>>1;Cs(Qe[s])$t&&Qe.splice(t,1)}function ch(e){ee(e)?Vn.push(...e):(!Vt||!Vt.includes(e,e.allowRecurse?Sn+1:Sn))&&Vn.push(e),ru()}function Go(e,t=Ns?$t+1:0){for(;tCs(n)-Cs(s)),Sn=0;Sne.id==null?1/0:e.id,uh=(e,t)=>{const n=Cs(e)-Cs(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function ou(e){ai=!1,Ns=!0,Qe.sort(uh);const t=Tt;try{for($t=0;$tBe(b)?b.trim():b)),h&&(r=n.map(Kn))}let a,l=s[a=xr(t)]||s[a=xr(Bt(t))];!l&&i&&(l=s[a=xr(On(t))]),l&&mt(l,e,6,r);const c=s[a+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,mt(c,e,6,r)}}function au(e,t,n=!1){const s=t.emitsCache,r=s.get(e);if(r!==void 0)return r;const i=e.emits;let o={},a=!1;if(!oe(e)){const l=c=>{const u=au(c,t,!0);u&&(a=!0,Ge(o,u))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!i&&!a?(Ce(e)&&s.set(e,null),null):(ee(i)?i.forEach(l=>o[l]=null):Ge(o,i),Ce(e)&&s.set(e,o),o)}function Er(e,t){return!e||!_r(t)?!1:(t=t.slice(2).replace(/Once$/,""),ge(e,t[0].toLowerCase()+t.slice(1))||ge(e,On(t))||ge(e,t))}let Xe=null,wr=null;function hr(e){const t=Xe;return Xe=e,wr=e&&e.type.__scopeId||null,t}function In(e){wr=e}function Rn(){wr=null}function je(e,t=Xe,n){if(!t||e._n)return e;const s=(...r)=>{s._d&&ra(-1);const i=hr(t);let o;try{o=e(...r)}finally{hr(i),s._d&&ra(1)}return o};return s._n=!0,s._c=!0,s._d=!0,s}function Hr(e){const{type:t,vnode:n,proxy:s,withProxy:r,props:i,propsOptions:[o],slots:a,attrs:l,emit:c,render:u,renderCache:h,data:p,setupState:b,ctx:E,inheritAttrs:v}=e;let I,_;const S=hr(e);try{if(n.shapeFlag&4){const w=r||s;I=Rt(u.call(w,w,h,i,b,p,E)),_=l}else{const w=t;I=Rt(w.length>1?w(i,{attrs:l,slots:a,emit:c}):w(i,null)),_=t.props?l:dh(l)}}catch(w){bs.length=0,Sr(w,e,1),I=se(_t)}let A=I;if(_&&v!==!1){const w=Object.keys(_),{shapeFlag:L}=A;w.length&&L&7&&(o&&w.some(Hi)&&(_=hh(_,o)),A=Yt(A,_))}return n.dirs&&(A=Yt(A),A.dirs=A.dirs?A.dirs.concat(n.dirs):n.dirs),n.transition&&(A.transition=n.transition),I=A,hr(S),I}const dh=e=>{let t;for(const n in e)(n==="class"||n==="style"||_r(n))&&((t||(t={}))[n]=e[n]);return t},hh=(e,t)=>{const n={};for(const s in e)(!Hi(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function ph(e,t,n){const{props:s,children:r,component:i}=e,{props:o,children:a,patchFlag:l}=t,c=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return s?qo(s,o,c):!!o;if(l&8){const u=t.dynamicProps;for(let h=0;he.__isSuspense;function gh(e,t){t&&t.pendingBranch?ee(e)?t.effects.push(...e):t.effects.push(e):ch(e)}function At(e,t){if(Ke){let n=Ke.provides;const s=Ke.parent&&Ke.parent.provides;s===n&&(n=Ke.provides=Object.create(s)),n[e]=t}}function st(e,t,n=!1){const s=Ke||Xe;if(s){const r=s.parent==null?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&oe(t)?t.call(s.proxy):t}}const Js={};function gt(e,t,n){return cu(e,t,n)}function cu(e,t,{immediate:n,deep:s,flush:r,onTrack:i,onTrigger:o}=Re){const a=Ke;let l,c=!1,u=!1;if(Pe(e)?(l=()=>e.value,c=dr(e)):un(e)?(l=()=>e,s=!0):ee(e)?(u=!0,c=e.some(A=>un(A)||dr(A)),l=()=>e.map(A=>{if(Pe(A))return A.value;if(un(A))return An(A);if(oe(A))return fn(A,a,2)})):oe(e)?t?l=()=>fn(e,a,2):l=()=>{if(!(a&&a.isUnmounted))return h&&h(),mt(e,a,3,[p])}:l=Tt,t&&s){const A=l;l=()=>An(A())}let h,p=A=>{h=_.onStop=()=>{fn(A,a,4)}},b;if(Ds)if(p=Tt,t?n&&mt(t,a,3,[l(),u?[]:void 0,p]):l(),r==="sync"){const A=op();b=A.__watcherHandles||(A.__watcherHandles=[])}else return Tt;let E=u?new Array(e.length).fill(Js):Js;const v=()=>{if(_.active)if(t){const A=_.run();(s||c||(u?A.some((w,L)=>ks(w,E[L])):ks(A,E)))&&(h&&h(),mt(t,a,3,[A,E===Js?void 0:u&&E[0]===Js?[]:E,p]),E=A)}else _.run()};v.allowRecurse=!!t;let I;r==="sync"?I=v:r==="post"?I=()=>Ze(v,a&&a.suspense):(v.pre=!0,a&&(v.id=a.uid),I=()=>to(v));const _=new Yi(l,I);t?n?v():E=_.run():r==="post"?Ze(_.run.bind(_),a&&a.suspense):_.run();const S=()=>{_.stop(),a&&a.scope&&Vi(a.scope.effects,_)};return b&&b.push(S),S}function _h(e,t,n){const s=this.proxy,r=Be(e)?e.includes(".")?uu(s,e):()=>s[e]:e.bind(s,s);let i;oe(t)?i=t:(i=t.handler,n=t);const o=Ke;Jn(this);const a=cu(r,i.bind(s),n);return o?Jn(o):Ln(),a}function uu(e,t){const n=t.split(".");return()=>{let s=e;for(let r=0;r{An(n,t)});else if(Mc(e))for(const n in e)An(e[n],t);return e}function fu(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return kr(()=>{e.isMounted=!0}),ro(()=>{e.isUnmounting=!0}),e}const dt=[Function,Array],yh={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:dt,onEnter:dt,onAfterEnter:dt,onEnterCancelled:dt,onBeforeLeave:dt,onLeave:dt,onAfterLeave:dt,onLeaveCancelled:dt,onBeforeAppear:dt,onAppear:dt,onAfterAppear:dt,onAppearCancelled:dt},setup(e,{slots:t}){const n=Gt(),s=fu();let r;return()=>{const i=t.default&&no(t.default(),!0);if(!i||!i.length)return;let o=i[0];if(i.length>1){for(const v of i)if(v.type!==_t){o=v;break}}const a=ye(e),{mode:l}=a;if(s.isLeaving)return Vr(o);const c=Jo(o);if(!c)return Vr(o);const u=Os(c,a,s,n);qn(c,u);const h=n.subTree,p=h&&Jo(h);let b=!1;const{getTransitionKey:E}=c.type;if(E){const v=E();r===void 0?r=v:v!==r&&(r=v,b=!0)}if(p&&p.type!==_t&&(!En(c,p)||b)){const v=Os(p,a,s,n);if(qn(p,v),l==="out-in")return s.isLeaving=!0,v.afterLeave=()=>{s.isLeaving=!1,n.update.active!==!1&&n.update()},Vr(o);l==="in-out"&&c.type!==_t&&(v.delayLeave=(I,_,S)=>{const A=hu(s,p);A[String(p.key)]=p,I._leaveCb=()=>{_(),I._leaveCb=void 0,delete u.delayedLeave},u.delayedLeave=S})}return o}}},du=yh;function hu(e,t){const{leavingVNodes:n}=e;let s=n.get(t.type);return s||(s=Object.create(null),n.set(t.type,s)),s}function Os(e,t,n,s){const{appear:r,mode:i,persisted:o=!1,onBeforeEnter:a,onEnter:l,onAfterEnter:c,onEnterCancelled:u,onBeforeLeave:h,onLeave:p,onAfterLeave:b,onLeaveCancelled:E,onBeforeAppear:v,onAppear:I,onAfterAppear:_,onAppearCancelled:S}=t,A=String(e.key),w=hu(n,e),L=(x,G)=>{x&&mt(x,s,9,G)},U=(x,G)=>{const Z=G[1];L(x,G),ee(x)?x.every(ne=>ne.length<=1)&&Z():x.length<=1&&Z()},M={mode:i,persisted:o,beforeEnter(x){let G=a;if(!n.isMounted)if(r)G=v||a;else return;x._leaveCb&&x._leaveCb(!0);const Z=w[A];Z&&En(e,Z)&&Z.el._leaveCb&&Z.el._leaveCb(),L(G,[x])},enter(x){let G=l,Z=c,ne=u;if(!n.isMounted)if(r)G=I||l,Z=_||c,ne=S||u;else return;let W=!1;const ae=x._enterCb=we=>{W||(W=!0,we?L(ne,[x]):L(Z,[x]),M.delayedLeave&&M.delayedLeave(),x._enterCb=void 0)};G?U(G,[x,ae]):ae()},leave(x,G){const Z=String(e.key);if(x._enterCb&&x._enterCb(!0),n.isUnmounting)return G();L(h,[x]);let ne=!1;const W=x._leaveCb=ae=>{ne||(ne=!0,G(),ae?L(E,[x]):L(b,[x]),x._leaveCb=void 0,w[Z]===e&&delete w[Z])};w[Z]=e,p?U(p,[x,W]):W()},clone(x){return Os(x,t,n,s)}};return M}function Vr(e){if(Tr(e))return e=Yt(e),e.children=null,e}function Jo(e){return Tr(e)?e.children?e.children[0]:void 0:e}function qn(e,t){e.shapeFlag&6&&e.component?qn(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function no(e,t=!1,n){let s=[],r=0;for(let i=0;i1)for(let i=0;i!!e.type.__asyncLoader,Tr=e=>e.type.__isKeepAlive,bh={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=Gt(),s=n.ctx;if(!s.renderer)return()=>{const S=t.default&&t.default();return S&&S.length===1?S[0]:S};const r=new Map,i=new Set;let o=null;const a=n.suspense,{renderer:{p:l,m:c,um:u,o:{createElement:h}}}=s,p=h("div");s.activate=(S,A,w,L,U)=>{const M=S.component;c(S,A,w,0,a),l(M.vnode,S,A,w,M,a,L,S.slotScopeIds,U),Ze(()=>{M.isDeactivated=!1,M.a&&Hn(M.a);const x=S.props&&S.props.onVnodeMounted;x&&ht(x,M.parent,S)},a)},s.deactivate=S=>{const A=S.component;c(S,p,null,1,a),Ze(()=>{A.da&&Hn(A.da);const w=S.props&&S.props.onVnodeUnmounted;w&&ht(w,A.parent,S),A.isDeactivated=!0},a)};function b(S){Wr(S),u(S,n,a,!0)}function E(S){r.forEach((A,w)=>{const L=pi(A.type);L&&(!S||!S(L))&&v(w)})}function v(S){const A=r.get(S);!o||A.type!==o.type?b(A):o&&Wr(o),r.delete(S),i.delete(S)}gt(()=>[e.include,e.exclude],([S,A])=>{S&&E(w=>gs(S,w)),A&&E(w=>!gs(A,w))},{flush:"post",deep:!0});let I=null;const _=()=>{I!=null&&r.set(I,zr(n.subTree))};return kr(_),so(_),ro(()=>{r.forEach(S=>{const{subTree:A,suspense:w}=n,L=zr(A);if(S.type===L.type){Wr(L);const U=L.component.da;U&&Ze(U,w);return}b(S)})}),()=>{if(I=null,!t.default)return null;const S=t.default(),A=S[0];if(S.length>1)return o=null,S;if(!Rs(A)||!(A.shapeFlag&4)&&!(A.shapeFlag&128))return o=null,A;let w=zr(A);const L=w.type,U=pi(Wn(w)?w.type.__asyncResolved||{}:L),{include:M,exclude:x,max:G}=e;if(M&&(!U||!gs(M,U))||x&&U&&gs(x,U))return o=w,A;const Z=w.key==null?L:w.key,ne=r.get(Z);return w.el&&(w=Yt(w),A.shapeFlag&128&&(A.ssContent=w)),I=Z,ne?(w.el=ne.el,w.component=ne.component,w.transition&&qn(w,w.transition),w.shapeFlag|=512,i.delete(Z),i.add(Z)):(i.add(Z),G&&i.size>parseInt(G,10)&&v(i.values().next().value)),w.shapeFlag|=256,o=w,lu(A.type)?A:w}}},li=bh;function gs(e,t){return ee(e)?e.some(n=>gs(n,t)):Be(e)?e.split(",").includes(t):e.test?e.test(t):!1}function pu(e,t){gu(e,"a",t)}function mu(e,t){gu(e,"da",t)}function gu(e,t,n=Ke){const s=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Ar(t,s,n),n){let r=n.parent;for(;r&&r.parent;)Tr(r.parent.vnode)&&vh(s,t,n,r),r=r.parent}}function vh(e,t,n,s){const r=Ar(t,e,s,!0);io(()=>{Vi(s[t],r)},n)}function Wr(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function zr(e){return e.shapeFlag&128?e.ssContent:e}function Ar(e,t,n=Ke,s=!1){if(n){const r=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{if(n.isUnmounted)return;ss(),Jn(n);const a=mt(t,n,e,o);return Ln(),rs(),a});return s?r.unshift(i):r.push(i),i}}const qt=e=>(t,n=Ke)=>(!Ds||e==="sp")&&Ar(e,(...s)=>t(...s),n),_u=qt("bm"),kr=qt("m"),Sh=qt("bu"),so=qt("u"),ro=qt("bum"),io=qt("um"),Eh=qt("sp"),wh=qt("rtg"),Th=qt("rtc");function Ah(e,t=Ke){Ar("ec",e,t)}function oo(e,t){const n=Xe;if(n===null)return e;const s=Nr(n)||n.proxy,r=e.dirs||(e.dirs=[]);for(let i=0;it(o,a,void 0,i&&i[a]));else{const o=Object.keys(e);r=new Array(o.length);for(let a=0,l=o.length;aRs(t)?!(t.type===_t||t.type===Le&&!bu(t.children)):!0)?e:null}const ci=e=>e?Iu(e)?Nr(e)||e.proxy:ci(e.parent):null,ys=Ge(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>ci(e.parent),$root:e=>ci(e.root),$emit:e=>e.emit,$options:e=>co(e),$forceUpdate:e=>e.f||(e.f=()=>to(e.update)),$nextTick:e=>e.n||(e.n=eo.bind(e.proxy)),$watch:e=>_h.bind(e)}),Kr=(e,t)=>e!==Re&&!e.__isScriptSetup&&ge(e,t),Oh={get({_:e},t){const{ctx:n,setupState:s,data:r,props:i,accessCache:o,type:a,appContext:l}=e;let c;if(t[0]!=="$"){const b=o[t];if(b!==void 0)switch(b){case 1:return s[t];case 2:return r[t];case 4:return n[t];case 3:return i[t]}else{if(Kr(s,t))return o[t]=1,s[t];if(r!==Re&&ge(r,t))return o[t]=2,r[t];if((c=e.propsOptions[0])&&ge(c,t))return o[t]=3,i[t];if(n!==Re&&ge(n,t))return o[t]=4,n[t];ui&&(o[t]=0)}}const u=ys[t];let h,p;if(u)return t==="$attrs"&&ut(e,"get",t),u(e);if((h=a.__cssModules)&&(h=h[t]))return h;if(n!==Re&&ge(n,t))return o[t]=4,n[t];if(p=l.config.globalProperties,ge(p,t))return p[t]},set({_:e},t,n){const{data:s,setupState:r,ctx:i}=e;return Kr(r,t)?(r[t]=n,!0):s!==Re&&ge(s,t)?(s[t]=n,!0):ge(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:r,propsOptions:i}},o){let a;return!!n[o]||e!==Re&&ge(e,o)||Kr(t,o)||(a=i[0])&&ge(a,o)||ge(s,o)||ge(ys,o)||ge(r.config.globalProperties,o)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ge(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};let ui=!0;function Ih(e){const t=co(e),n=e.proxy,s=e.ctx;ui=!1,t.beforeCreate&&Xo(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:o,watch:a,provide:l,inject:c,created:u,beforeMount:h,mounted:p,beforeUpdate:b,updated:E,activated:v,deactivated:I,beforeDestroy:_,beforeUnmount:S,destroyed:A,unmounted:w,render:L,renderTracked:U,renderTriggered:M,errorCaptured:x,serverPrefetch:G,expose:Z,inheritAttrs:ne,components:W,directives:ae,filters:we}=t;if(c&&Rh(c,s,null,e.appContext.config.unwrapInjectedRef),o)for(const ce in o){const ue=o[ce];oe(ue)&&(s[ce]=ue.bind(n))}if(r){const ce=r.call(n,n);Ce(ce)&&(e.data=yt(ce))}if(ui=!0,i)for(const ce in i){const ue=i[ce],ze=oe(ue)?ue.bind(n,n):oe(ue.get)?ue.get.bind(n,n):Tt,ot=!oe(ue)&&oe(ue.set)?ue.set.bind(n):Tt,Je=Te({get:ze,set:ot});Object.defineProperty(s,ce,{enumerable:!0,configurable:!0,get:()=>Je.value,set:Ue=>Je.value=Ue})}if(a)for(const ce in a)vu(a[ce],s,n,ce);if(l){const ce=oe(l)?l.call(n):l;Reflect.ownKeys(ce).forEach(ue=>{At(ue,ce[ue])})}u&&Xo(u,e,"c");function he(ce,ue){ee(ue)?ue.forEach(ze=>ce(ze.bind(n))):ue&&ce(ue.bind(n))}if(he(_u,h),he(kr,p),he(Sh,b),he(so,E),he(pu,v),he(mu,I),he(Ah,x),he(Th,U),he(wh,M),he(ro,S),he(io,w),he(Eh,G),ee(Z))if(Z.length){const ce=e.exposed||(e.exposed={});Z.forEach(ue=>{Object.defineProperty(ce,ue,{get:()=>n[ue],set:ze=>n[ue]=ze})})}else e.exposed||(e.exposed={});L&&e.render===Tt&&(e.render=L),ne!=null&&(e.inheritAttrs=ne),W&&(e.components=W),ae&&(e.directives=ae)}function Rh(e,t,n=Tt,s=!1){ee(e)&&(e=fi(e));for(const r in e){const i=e[r];let o;Ce(i)?"default"in i?o=st(i.from||r,i.default,!0):o=st(i.from||r):o=st(i),Pe(o)&&s?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>o.value,set:a=>o.value=a}):t[r]=o}}function Xo(e,t,n){mt(ee(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function vu(e,t,n,s){const r=s.includes(".")?uu(n,s):()=>n[s];if(Be(e)){const i=t[e];oe(i)&>(r,i)}else if(oe(e))gt(r,e.bind(n));else if(Ce(e))if(ee(e))e.forEach(i=>vu(i,t,n,s));else{const i=oe(e.handler)?e.handler.bind(n):t[e.handler];oe(i)&>(r,i,e)}}function co(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,a=i.get(t);let l;return a?l=a:!r.length&&!n&&!s?l=t:(l={},r.length&&r.forEach(c=>pr(l,c,o,!0)),pr(l,t,o)),Ce(t)&&i.set(t,l),l}function pr(e,t,n,s=!1){const{mixins:r,extends:i}=t;i&&pr(e,i,n,!0),r&&r.forEach(o=>pr(e,o,n,!0));for(const o in t)if(!(s&&o==="expose")){const a=Dh[o]||n&&n[o];e[o]=a?a(e[o],t[o]):t[o]}return e}const Dh={data:Qo,props:vn,emits:vn,methods:vn,computed:vn,beforeCreate:et,created:et,beforeMount:et,mounted:et,beforeUpdate:et,updated:et,beforeDestroy:et,beforeUnmount:et,destroyed:et,unmounted:et,activated:et,deactivated:et,errorCaptured:et,serverPrefetch:et,components:vn,directives:vn,watch:Ph,provide:Qo,inject:$h};function Qo(e,t){return t?e?function(){return Ge(oe(e)?e.call(this,this):e,oe(t)?t.call(this,this):t)}:t:e}function $h(e,t){return vn(fi(e),fi(t))}function fi(e){if(ee(e)){const t={};for(let n=0;n0)&&!(o&16)){if(o&8){const u=e.vnode.dynamicProps;for(let h=0;h{l=!0;const[p,b]=Eu(h,t,!0);Ge(o,p),b&&a.push(...b)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!i&&!l)return Ce(e)&&s.set(e,jn),jn;if(ee(i))for(let u=0;u-1,b[1]=v<0||E-1||ge(b,"default"))&&a.push(h)}}}const c=[o,a];return Ce(e)&&s.set(e,c),c}function ea(e){return e[0]!=="$"}function ta(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:e===null?"null":""}function na(e,t){return ta(e)===ta(t)}function sa(e,t){return ee(t)?t.findIndex(n=>na(n,e)):oe(t)&&na(t,e)?0:-1}const wu=e=>e[0]==="_"||e==="$stable",uo=e=>ee(e)?e.map(Rt):[Rt(e)],Bh=(e,t,n)=>{if(t._n)return t;const s=je((...r)=>uo(t(...r)),n);return s._c=!1,s},Tu=(e,t,n)=>{const s=e._ctx;for(const r in e){if(wu(r))continue;const i=e[r];if(oe(i))t[r]=Bh(r,i,s);else if(i!=null){const o=uo(i);t[r]=()=>o}}},Au=(e,t)=>{const n=uo(t);e.slots.default=()=>n},Uh=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=ye(t),fr(t,"_",n)):Tu(t,e.slots={})}else e.slots={},t&&Au(e,t);fr(e.slots,Lr,1)},jh=(e,t,n)=>{const{vnode:s,slots:r}=e;let i=!0,o=Re;if(s.shapeFlag&32){const a=t._;a?n&&a===1?i=!1:(Ge(r,t),!n&&a===1&&delete r._):(i=!t.$stable,Tu(t,r)),o=t}else t&&(Au(e,t),o={default:1});if(i)for(const a in r)!wu(a)&&!(a in o)&&delete r[a]};function ku(){return{app:null,config:{isNativeTag:_d,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let xh=0;function Hh(e,t){return function(s,r=null){oe(s)||(s=Object.assign({},s)),r!=null&&!Ce(r)&&(r=null);const i=ku(),o=new Set;let a=!1;const l=i.app={_uid:xh++,_component:s,_props:r,_container:null,_context:i,_instance:null,version:ap,get config(){return i.config},set config(c){},use(c,...u){return o.has(c)||(c&&oe(c.install)?(o.add(c),c.install(l,...u)):oe(c)&&(o.add(c),c(l,...u))),l},mixin(c){return i.mixins.includes(c)||i.mixins.push(c),l},component(c,u){return u?(i.components[c]=u,l):i.components[c]},directive(c,u){return u?(i.directives[c]=u,l):i.directives[c]},mount(c,u,h){if(!a){const p=se(s,r);return p.appContext=i,u&&t?t(p,c):e(p,c,h),a=!0,l._container=c,c.__vue_app__=l,Nr(p.component)||p.component.proxy}},unmount(){a&&(e(null,l._container),delete l._container.__vue_app__)},provide(c,u){return i.provides[c]=u,l}};return l}}function hi(e,t,n,s,r=!1){if(ee(e)){e.forEach((p,b)=>hi(p,t&&(ee(t)?t[b]:t),n,s,r));return}if(Wn(s)&&!r)return;const i=s.shapeFlag&4?Nr(s.component)||s.component.proxy:s.el,o=r?null:i,{i:a,r:l}=e,c=t&&t.r,u=a.refs===Re?a.refs={}:a.refs,h=a.setupState;if(c!=null&&c!==l&&(Be(c)?(u[c]=null,ge(h,c)&&(h[c]=null)):Pe(c)&&(c.value=null)),oe(l))fn(l,a,12,[o,u]);else{const p=Be(l),b=Pe(l);if(p||b){const E=()=>{if(e.f){const v=p?ge(h,l)?h[l]:u[l]:l.value;r?ee(v)&&Vi(v,i):ee(v)?v.includes(i)||v.push(i):p?(u[l]=[i],ge(h,l)&&(h[l]=u[l])):(l.value=[i],e.k&&(u[e.k]=l.value))}else p?(u[l]=o,ge(h,l)&&(h[l]=o)):b&&(l.value=o,e.k&&(u[e.k]=o))};o?(E.id=-1,Ze(E,n)):E()}}}const Ze=gh;function Vh(e){return Wh(e)}function Wh(e,t){const n=wd();n.__VUE__=!0;const{insert:s,remove:r,patchProp:i,createElement:o,createText:a,createComment:l,setText:c,setElementText:u,parentNode:h,nextSibling:p,setScopeId:b=Tt,insertStaticContent:E}=e,v=(m,f,d,g=null,T=null,D=null,B=!1,j=null,H=!!f.dynamicChildren)=>{if(m===f)return;m&&!En(m,f)&&(g=V(m),Ue(m,T,D,!0),m=null),f.patchFlag===-2&&(H=!1,f.dynamicChildren=null);const{type:P,ref:k,shapeFlag:C}=f;switch(P){case Us:I(m,f,d,g);break;case _t:_(m,f,d,g);break;case nr:m==null&&S(f,d,g,B);break;case Le:W(m,f,d,g,T,D,B,j,H);break;default:C&1?L(m,f,d,g,T,D,B,j,H):C&6?ae(m,f,d,g,T,D,B,j,H):(C&64||C&128)&&P.process(m,f,d,g,T,D,B,j,H,ie)}k!=null&&T&&hi(k,m&&m.ref,D,f||m,!f)},I=(m,f,d,g)=>{if(m==null)s(f.el=a(f.children),d,g);else{const T=f.el=m.el;f.children!==m.children&&c(T,f.children)}},_=(m,f,d,g)=>{m==null?s(f.el=l(f.children||""),d,g):f.el=m.el},S=(m,f,d,g)=>{[m.el,m.anchor]=E(m.children,f,d,g,m.el,m.anchor)},A=({el:m,anchor:f},d,g)=>{let T;for(;m&&m!==f;)T=p(m),s(m,d,g),m=T;s(f,d,g)},w=({el:m,anchor:f})=>{let d;for(;m&&m!==f;)d=p(m),r(m),m=d;r(f)},L=(m,f,d,g,T,D,B,j,H)=>{B=B||f.type==="svg",m==null?U(f,d,g,T,D,B,j,H):G(m,f,T,D,B,j,H)},U=(m,f,d,g,T,D,B,j)=>{let H,P;const{type:k,props:C,shapeFlag:Y,transition:J,dirs:le}=m;if(H=m.el=o(m.type,D,C&&C.is,C),Y&8?u(H,m.children):Y&16&&x(m.children,H,null,g,T,D&&k!=="foreignObject",B,j),le&&_n(m,null,g,"created"),C){for(const fe in C)fe!=="value"&&!tr(fe)&&i(H,fe,null,C[fe],D,m.children,g,T,z);"value"in C&&i(H,"value",null,C.value),(P=C.onVnodeBeforeMount)&&ht(P,g,m)}M(H,m,m.scopeId,B,g),le&&_n(m,null,g,"beforeMount");const Ee=(!T||T&&!T.pendingBranch)&&J&&!J.persisted;Ee&&J.beforeEnter(H),s(H,f,d),((P=C&&C.onVnodeMounted)||Ee||le)&&Ze(()=>{P&&ht(P,g,m),Ee&&J.enter(H),le&&_n(m,null,g,"mounted")},T)},M=(m,f,d,g,T)=>{if(d&&b(m,d),g)for(let D=0;D{for(let P=H;P{const j=f.el=m.el;let{patchFlag:H,dynamicChildren:P,dirs:k}=f;H|=m.patchFlag&16;const C=m.props||Re,Y=f.props||Re;let J;d&&yn(d,!1),(J=Y.onVnodeBeforeUpdate)&&ht(J,d,f,m),k&&_n(f,m,d,"beforeUpdate"),d&&yn(d,!0);const le=T&&f.type!=="foreignObject";if(P?Z(m.dynamicChildren,P,j,d,g,le,D):B||ue(m,f,j,null,d,g,le,D,!1),H>0){if(H&16)ne(j,f,C,Y,d,g,T);else if(H&2&&C.class!==Y.class&&i(j,"class",null,Y.class,T),H&4&&i(j,"style",C.style,Y.style,T),H&8){const Ee=f.dynamicProps;for(let fe=0;fe{J&&ht(J,d,f,m),k&&_n(f,m,d,"updated")},g)},Z=(m,f,d,g,T,D,B)=>{for(let j=0;j{if(d!==g){if(d!==Re)for(const j in d)!tr(j)&&!(j in g)&&i(m,j,d[j],null,B,f.children,T,D,z);for(const j in g){if(tr(j))continue;const H=g[j],P=d[j];H!==P&&j!=="value"&&i(m,j,P,H,B,f.children,T,D,z)}"value"in g&&i(m,"value",d.value,g.value)}},W=(m,f,d,g,T,D,B,j,H)=>{const P=f.el=m?m.el:a(""),k=f.anchor=m?m.anchor:a("");let{patchFlag:C,dynamicChildren:Y,slotScopeIds:J}=f;J&&(j=j?j.concat(J):J),m==null?(s(P,d,g),s(k,d,g),x(f.children,d,k,T,D,B,j,H)):C>0&&C&64&&Y&&m.dynamicChildren?(Z(m.dynamicChildren,Y,d,T,D,B,j),(f.key!=null||T&&f===T.subTree)&&Lu(m,f,!0)):ue(m,f,d,k,T,D,B,j,H)},ae=(m,f,d,g,T,D,B,j,H)=>{f.slotScopeIds=j,m==null?f.shapeFlag&512?T.ctx.activate(f,d,g,B,H):we(f,d,g,T,D,B,H):Ne(m,f,H)},we=(m,f,d,g,T,D,B)=>{const j=m.component=Qh(m,g,T);if(Tr(m)&&(j.ctx.renderer=ie),ep(j),j.asyncDep){if(T&&T.registerDep(j,he),!m.el){const H=j.subTree=se(_t);_(null,H,f,d)}return}he(j,m,f,d,T,D,B)},Ne=(m,f,d)=>{const g=f.component=m.component;if(ph(m,f,d))if(g.asyncDep&&!g.asyncResolved){ce(g,f,d);return}else g.next=f,lh(g.update),g.update();else f.el=m.el,g.vnode=f},he=(m,f,d,g,T,D,B)=>{const j=()=>{if(m.isMounted){let{next:k,bu:C,u:Y,parent:J,vnode:le}=m,Ee=k,fe;yn(m,!1),k?(k.el=le.el,ce(m,k,B)):k=le,C&&Hn(C),(fe=k.props&&k.props.onVnodeBeforeUpdate)&&ht(fe,J,k,le),yn(m,!0);const $e=Hr(m),ft=m.subTree;m.subTree=$e,v(ft,$e,h(ft.el),V(ft),m,T,D),k.el=$e.el,Ee===null&&mh(m,$e.el),Y&&Ze(Y,T),(fe=k.props&&k.props.onVnodeUpdated)&&Ze(()=>ht(fe,J,k,le),T)}else{let k;const{el:C,props:Y}=f,{bm:J,m:le,parent:Ee}=m,fe=Wn(f);if(yn(m,!1),J&&Hn(J),!fe&&(k=Y&&Y.onVnodeBeforeMount)&&ht(k,Ee,f),yn(m,!0),C&&te){const $e=()=>{m.subTree=Hr(m),te(C,m.subTree,m,T,null)};fe?f.type.__asyncLoader().then(()=>!m.isUnmounted&&$e()):$e()}else{const $e=m.subTree=Hr(m);v(null,$e,d,g,m,T,D),f.el=$e.el}if(le&&Ze(le,T),!fe&&(k=Y&&Y.onVnodeMounted)){const $e=f;Ze(()=>ht(k,Ee,$e),T)}(f.shapeFlag&256||Ee&&Wn(Ee.vnode)&&Ee.vnode.shapeFlag&256)&&m.a&&Ze(m.a,T),m.isMounted=!0,f=d=g=null}},H=m.effect=new Yi(j,()=>to(P),m.scope),P=m.update=()=>H.run();P.id=m.uid,yn(m,!0),P()},ce=(m,f,d)=>{f.component=m;const g=m.vnode.props;m.vnode=f,m.next=null,Mh(m,f.props,g,d),jh(m,f.children,d),ss(),Go(),rs()},ue=(m,f,d,g,T,D,B,j,H=!1)=>{const P=m&&m.children,k=m?m.shapeFlag:0,C=f.children,{patchFlag:Y,shapeFlag:J}=f;if(Y>0){if(Y&128){ot(P,C,d,g,T,D,B,j,H);return}else if(Y&256){ze(P,C,d,g,T,D,B,j,H);return}}J&8?(k&16&&z(P,T,D),C!==P&&u(d,C)):k&16?J&16?ot(P,C,d,g,T,D,B,j,H):z(P,T,D,!0):(k&8&&u(d,""),J&16&&x(C,d,g,T,D,B,j,H))},ze=(m,f,d,g,T,D,B,j,H)=>{m=m||jn,f=f||jn;const P=m.length,k=f.length,C=Math.min(P,k);let Y;for(Y=0;Yk?z(m,T,D,!0,!1,C):x(f,d,g,T,D,B,j,H,C)},ot=(m,f,d,g,T,D,B,j,H)=>{let P=0;const k=f.length;let C=m.length-1,Y=k-1;for(;P<=C&&P<=Y;){const J=m[P],le=f[P]=H?sn(f[P]):Rt(f[P]);if(En(J,le))v(J,le,d,null,T,D,B,j,H);else break;P++}for(;P<=C&&P<=Y;){const J=m[C],le=f[Y]=H?sn(f[Y]):Rt(f[Y]);if(En(J,le))v(J,le,d,null,T,D,B,j,H);else break;C--,Y--}if(P>C){if(P<=Y){const J=Y+1,le=JY)for(;P<=C;)Ue(m[P],T,D,!0),P++;else{const J=P,le=P,Ee=new Map;for(P=le;P<=Y;P++){const at=f[P]=H?sn(f[P]):Rt(f[P]);at.key!=null&&Ee.set(at.key,P)}let fe,$e=0;const ft=Y-le+1;let $n=!1,Fo=0;const cs=new Array(ft);for(P=0;P=ft){Ue(at,T,D,!0);continue}let Ot;if(at.key!=null)Ot=Ee.get(at.key);else for(fe=le;fe<=Y;fe++)if(cs[fe-le]===0&&En(at,f[fe])){Ot=fe;break}Ot===void 0?Ue(at,T,D,!0):(cs[Ot-le]=P+1,Ot>=Fo?Fo=Ot:$n=!0,v(at,f[Ot],d,null,T,D,B,j,H),$e++)}const Mo=$n?zh(cs):jn;for(fe=Mo.length-1,P=ft-1;P>=0;P--){const at=le+P,Ot=f[at],Bo=at+1{const{el:D,type:B,transition:j,children:H,shapeFlag:P}=m;if(P&6){Je(m.component.subTree,f,d,g);return}if(P&128){m.suspense.move(f,d,g);return}if(P&64){B.move(m,f,d,ie);return}if(B===Le){s(D,f,d);for(let C=0;Cj.enter(D),T);else{const{leave:C,delayLeave:Y,afterLeave:J}=j,le=()=>s(D,f,d),Ee=()=>{C(D,()=>{le(),J&&J()})};Y?Y(D,le,Ee):Ee()}else s(D,f,d)},Ue=(m,f,d,g=!1,T=!1)=>{const{type:D,props:B,ref:j,children:H,dynamicChildren:P,shapeFlag:k,patchFlag:C,dirs:Y}=m;if(j!=null&&hi(j,null,d,m,!0),k&256){f.ctx.deactivate(m);return}const J=k&1&&Y,le=!Wn(m);let Ee;if(le&&(Ee=B&&B.onVnodeBeforeUnmount)&&ht(Ee,f,m),k&6)F(m.component,d,g);else{if(k&128){m.suspense.unmount(d,g);return}J&&_n(m,null,f,"beforeUnmount"),k&64?m.type.remove(m,f,d,T,ie,g):P&&(D!==Le||C>0&&C&64)?z(P,f,d,!1,!0):(D===Le&&C&384||!T&&k&16)&&z(H,f,d),g&&bt(m)}(le&&(Ee=B&&B.onVnodeUnmounted)||J)&&Ze(()=>{Ee&&ht(Ee,f,m),J&&_n(m,null,f,"unmounted")},d)},bt=m=>{const{type:f,el:d,anchor:g,transition:T}=m;if(f===Le){vt(d,g);return}if(f===nr){w(m);return}const D=()=>{r(d),T&&!T.persisted&&T.afterLeave&&T.afterLeave()};if(m.shapeFlag&1&&T&&!T.persisted){const{leave:B,delayLeave:j}=T,H=()=>B(d,D);j?j(m.el,D,H):H()}else D()},vt=(m,f)=>{let d;for(;m!==f;)d=p(m),r(m),m=d;r(f)},F=(m,f,d)=>{const{bum:g,scope:T,update:D,subTree:B,um:j}=m;g&&Hn(g),T.stop(),D&&(D.active=!1,Ue(B,m,f,d)),j&&Ze(j,f),Ze(()=>{m.isUnmounted=!0},f),f&&f.pendingBranch&&!f.isUnmounted&&m.asyncDep&&!m.asyncResolved&&m.suspenseId===f.pendingId&&(f.deps--,f.deps===0&&f.resolve())},z=(m,f,d,g=!1,T=!1,D=0)=>{for(let B=D;Bm.shapeFlag&6?V(m.component.subTree):m.shapeFlag&128?m.suspense.next():p(m.anchor||m.el),q=(m,f,d)=>{m==null?f._vnode&&Ue(f._vnode,null,null,!0):v(f._vnode||null,m,f,null,null,null,d),Go(),iu(),f._vnode=m},ie={p:v,um:Ue,m:Je,r:bt,mt:we,mc:x,pc:ue,pbc:Z,n:V,o:e};let be,te;return t&&([be,te]=t(ie)),{render:q,hydrate:be,createApp:Hh(q,be)}}function yn({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Lu(e,t,n=!1){const s=e.children,r=t.children;if(ee(s)&&ee(r))for(let i=0;i>1,e[n[a]]0&&(t[s]=n[i-1]),n[i]=s)}}for(i=n.length,o=n[i-1];i-- >0;)n[i]=o,o=t[o];return n}const Kh=e=>e.__isTeleport,Le=Symbol(void 0),Us=Symbol(void 0),_t=Symbol(void 0),nr=Symbol(void 0),bs=[];let wt=null;function O(e=!1){bs.push(wt=e?null:[])}function Yh(){bs.pop(),wt=bs[bs.length-1]||null}let Is=1;function ra(e){Is+=e}function Nu(e){return e.dynamicChildren=Is>0?wt||jn:null,Yh(),Is>0&&wt&&wt.push(e),e}function R(e,t,n,s,r,i){return Nu(y(e,t,n,s,r,i,!0))}function pt(e,t,n,s,r){return Nu(se(e,t,n,s,r,!0))}function Rs(e){return e?e.__v_isVNode===!0:!1}function En(e,t){return e.type===t.type&&e.key===t.key}const Lr="__vInternal",Cu=({key:e})=>e??null,sr=({ref:e,ref_key:t,ref_for:n})=>e!=null?Be(e)||Pe(e)||oe(e)?{i:Xe,r:e,k:t,f:!!n}:e:null;function y(e,t=null,n=null,s=0,r=null,i=e===Le?0:1,o=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Cu(t),ref:t&&sr(t),scopeId:wr,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:s,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Xe};return a?(fo(l,n),i&128&&e.normalize(l)):n&&(l.shapeFlag|=Be(n)?8:16),Is>0&&!o&&wt&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&wt.push(l),l}const se=Gh;function Gh(e,t=null,n=null,s=0,r=null,i=!1){if((!e||e===yu)&&(e=_t),Rs(e)){const a=Yt(e,t,!0);return n&&fo(a,n),Is>0&&!i&&wt&&(a.shapeFlag&6?wt[wt.indexOf(e)]=a:wt.push(a)),a.patchFlag|=-2,a}if(rp(e)&&(e=e.__vccOpts),t){t=qh(t);let{class:a,style:l}=t;a&&!Be(a)&&(t.class=it(a)),Ce(l)&&(Jc(l)&&!ee(l)&&(l=Ge({},l)),t.style=zn(l))}const o=Be(e)?1:lu(e)?128:Kh(e)?64:Ce(e)?4:oe(e)?2:0;return y(e,t,n,s,r,o,i,!0)}function qh(e){return e?Jc(e)||Lr in e?Ge({},e):e:null}function Yt(e,t,n=!1){const{props:s,ref:r,patchFlag:i,children:o}=e,a=t?Jh(s||{},t):s;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&Cu(a),ref:t&&t.ref?n&&r?ee(r)?r.concat(sr(t)):[r,sr(t)]:sr(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Le?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Yt(e.ssContent),ssFallback:e.ssFallback&&Yt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx}}function me(e=" ",t=0){return se(Us,null,e,t)}function Ou(e,t){const n=se(nr,null,e);return n.staticCount=t,n}function Q(e="",t=!1){return t?(O(),pt(_t,null,e)):se(_t,null,e)}function Rt(e){return e==null||typeof e=="boolean"?se(_t):ee(e)?se(Le,null,e.slice()):typeof e=="object"?sn(e):se(Us,null,String(e))}function sn(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Yt(e)}function fo(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(ee(t))n=16;else if(typeof t=="object")if(s&65){const r=t.default;r&&(r._c&&(r._d=!1),fo(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!(Lr in t)?t._ctx=Xe:r===3&&Xe&&(Xe.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else oe(t)?(t={default:t,_ctx:Xe},n=32):(t=String(t),s&64?(n=16,t=[me(t)]):n=8);e.children=t,e.shapeFlag|=n}function Jh(...e){const t={};for(let n=0;nKe||Xe,Jn=e=>{Ke=e,e.scope.on()},Ln=()=>{Ke&&Ke.scope.off(),Ke=null};function Iu(e){return e.vnode.shapeFlag&4}let Ds=!1;function ep(e,t=!1){Ds=t;const{props:n,children:s}=e.vnode,r=Iu(e);Fh(e,n,r,t),Uh(e,s);const i=r?tp(e,t):void 0;return Ds=!1,i}function tp(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Gn(new Proxy(e.ctx,Oh));const{setup:s}=n;if(s){const r=e.setupContext=s.length>1?sp(e):null;Jn(e),ss();const i=fn(s,e,0,[e.props,r]);if(rs(),Ln(),Pc(i)){if(i.then(Ln,Ln),t)return i.then(o=>{ia(e,o,t)}).catch(o=>{Sr(o,e,0)});e.asyncDep=i}else ia(e,i,t)}else Ru(e,t)}function ia(e,t,n){oe(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Ce(t)&&(e.setupState=tu(t)),Ru(e,n)}let oa;function Ru(e,t,n){const s=e.type;if(!e.render){if(!t&&oa&&!s.render){const r=s.template||co(e).template;if(r){const{isCustomElement:i,compilerOptions:o}=e.appContext.config,{delimiters:a,compilerOptions:l}=s,c=Ge(Ge({isCustomElement:i,delimiters:a},o),l);s.render=oa(r,c)}}e.render=s.render||Tt}Jn(e),ss(),Ih(e),rs(),Ln()}function np(e){return new Proxy(e.attrs,{get(t,n){return ut(e,"get","$attrs"),t[n]}})}function sp(e){const t=s=>{e.exposed=s||{}};let n;return{get attrs(){return n||(n=np(e))},slots:e.slots,emit:e.emit,expose:t}}function Nr(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(tu(Gn(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in ys)return ys[n](e)},has(t,n){return n in t||n in ys}}))}function pi(e,t=!0){return oe(e)?e.displayName||e.name:e.name||t&&e.__name}function rp(e){return oe(e)&&"__vccOpts"in e}const Te=(e,t)=>ih(e,t,Ds);function js(e,t,n){const s=arguments.length;return s===2?Ce(t)&&!ee(t)?Rs(t)?se(e,null,[t]):se(e,t):se(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&Rs(n)&&(n=[n]),se(e,t,n))}const ip=Symbol(""),op=()=>st(ip),ap="3.2.45",lp="http://www.w3.org/2000/svg",wn=typeof document<"u"?document:null,aa=wn&&wn.createElement("template"),cp={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const r=t?wn.createElementNS(lp,e):wn.createElement(e,n?{is:n}:void 0);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:e=>wn.createTextNode(e),createComment:e=>wn.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>wn.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,r,i){const o=n?n.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===i||!(r=r.nextSibling)););else{aa.innerHTML=s?`${e}`:e;const a=aa.content;if(s){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function up(e,t,n){const s=e._vtc;s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function fp(e,t,n){const s=e.style,r=Be(n);if(n&&!r){for(const i in n)mi(s,i,n[i]);if(t&&!Be(t))for(const i in t)n[i]==null&&mi(s,i,"")}else{const i=s.display;r?t!==n&&(s.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(s.display=i)}}const la=/\s*!important$/;function mi(e,t,n){if(ee(n))n.forEach(s=>mi(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=dp(e,t);la.test(n)?e.setProperty(On(s),n.replace(la,""),"important"):e[s]=n}}const ca=["Webkit","Moz","ms"],Yr={};function dp(e,t){const n=Yr[t];if(n)return n;let s=Bt(t);if(s!=="filter"&&s in e)return Yr[t]=s;s=br(s);for(let r=0;rGr||(yp.then(()=>Gr=0),Gr=Date.now());function vp(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;mt(Sp(s,n.value),t,5,[s])};return n.value=e,n.attached=bp(),n}function Sp(e,t){if(ee(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>r=>!r._stopped&&s&&s(r))}else return t}const da=/^on[a-z]/,Ep=(e,t,n,s,r=!1,i,o,a,l)=>{t==="class"?up(e,s,r):t==="style"?fp(e,n,s):_r(t)?Hi(t)||gp(e,t,n,s,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):wp(e,t,s,r))?pp(e,t,s,i,o,a,l):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),hp(e,t,s,r))};function wp(e,t,n,s){return s?!!(t==="innerHTML"||t==="textContent"||t in e&&da.test(t)&&oe(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||da.test(t)&&Be(n)?!1:t in e}const Xt="transition",us="animation",is=(e,{slots:t})=>js(du,$u(e),t);is.displayName="Transition";const Du={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Tp=is.props=Ge({},du.props,Du),bn=(e,t=[])=>{ee(e)?e.forEach(n=>n(...t)):e&&e(...t)},ha=e=>e?ee(e)?e.some(t=>t.length>1):e.length>1:!1;function $u(e){const t={};for(const W in e)W in Du||(t[W]=e[W]);if(e.css===!1)return t;const{name:n="v",type:s,duration:r,enterFromClass:i=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=i,appearActiveClass:c=o,appearToClass:u=a,leaveFromClass:h=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:b=`${n}-leave-to`}=e,E=Ap(r),v=E&&E[0],I=E&&E[1],{onBeforeEnter:_,onEnter:S,onEnterCancelled:A,onLeave:w,onLeaveCancelled:L,onBeforeAppear:U=_,onAppear:M=S,onAppearCancelled:x=A}=t,G=(W,ae,we)=>{nn(W,ae?u:a),nn(W,ae?c:o),we&&we()},Z=(W,ae)=>{W._isLeaving=!1,nn(W,h),nn(W,b),nn(W,p),ae&&ae()},ne=W=>(ae,we)=>{const Ne=W?M:S,he=()=>G(ae,W,we);bn(Ne,[ae,he]),pa(()=>{nn(ae,W?l:i),Ht(ae,W?u:a),ha(Ne)||ma(ae,s,v,he)})};return Ge(t,{onBeforeEnter(W){bn(_,[W]),Ht(W,i),Ht(W,o)},onBeforeAppear(W){bn(U,[W]),Ht(W,l),Ht(W,c)},onEnter:ne(!1),onAppear:ne(!0),onLeave(W,ae){W._isLeaving=!0;const we=()=>Z(W,ae);Ht(W,h),Fu(),Ht(W,p),pa(()=>{W._isLeaving&&(nn(W,h),Ht(W,b),ha(w)||ma(W,s,I,we))}),bn(w,[W,we])},onEnterCancelled(W){G(W,!1),bn(A,[W])},onAppearCancelled(W){G(W,!0),bn(x,[W])},onLeaveCancelled(W){Z(W),bn(L,[W])}})}function Ap(e){if(e==null)return null;if(Ce(e))return[qr(e.enter),qr(e.leave)];{const t=qr(e);return[t,t]}}function qr(e){return Kn(e)}function Ht(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function nn(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.remove(s));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function pa(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let kp=0;function ma(e,t,n,s){const r=e._endId=++kp,i=()=>{r===e._endId&&s()};if(n)return setTimeout(i,n);const{type:o,timeout:a,propCount:l}=Pu(e,t);if(!o)return s();const c=o+"end";let u=0;const h=()=>{e.removeEventListener(c,p),i()},p=b=>{b.target===e&&++u>=l&&h()};setTimeout(()=>{u(n[E]||"").split(", "),r=s(`${Xt}Delay`),i=s(`${Xt}Duration`),o=ga(r,i),a=s(`${us}Delay`),l=s(`${us}Duration`),c=ga(a,l);let u=null,h=0,p=0;t===Xt?o>0&&(u=Xt,h=o,p=i.length):t===us?c>0&&(u=us,h=c,p=l.length):(h=Math.max(o,c),u=h>0?o>c?Xt:us:null,p=u?u===Xt?i.length:l.length:0);const b=u===Xt&&/\b(transform|all)(,|$)/.test(s(`${Xt}Property`).toString());return{type:u,timeout:h,propCount:p,hasTransform:b}}function ga(e,t){for(;e.length_a(n)+_a(e[s])))}function _a(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function Fu(){return document.body.offsetHeight}const Mu=new WeakMap,Bu=new WeakMap,Lp={name:"TransitionGroup",props:Ge({},Tp,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Gt(),s=fu();let r,i;return so(()=>{if(!r.length)return;const o=e.moveClass||`${e.name||"v"}-move`;if(!Ip(r[0].el,n.vnode.el,o))return;r.forEach(Np),r.forEach(Cp);const a=r.filter(Op);Fu(),a.forEach(l=>{const c=l.el,u=c.style;Ht(c,o),u.transform=u.webkitTransform=u.transitionDuration="";const h=c._moveCb=p=>{p&&p.target!==c||(!p||/transform$/.test(p.propertyName))&&(c.removeEventListener("transitionend",h),c._moveCb=null,nn(c,o))};c.addEventListener("transitionend",h)})}),()=>{const o=ye(e),a=$u(o);let l=o.tag||Le;r=i,i=t.default?no(t.default()):[];for(let c=0;c{o.split(/\s+/).forEach(a=>a&&s.classList.remove(a))}),n.split(/\s+/).forEach(o=>o&&s.classList.add(o)),s.style.display="none";const r=t.nodeType===1?t:t.parentNode;r.appendChild(s);const{hasTransform:i}=Pu(s);return r.removeChild(s),i}const hn=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ee(t)?n=>Hn(t,n):t};function Rp(e){e.target.composing=!0}function ya(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const gi={created(e,{modifiers:{lazy:t,trim:n,number:s}},r){e._assign=hn(r);const i=s||r.props&&r.props.type==="number";Wt(e,t?"change":"input",o=>{if(o.target.composing)return;let a=e.value;n&&(a=a.trim()),i&&(a=Kn(a)),e._assign(a)}),n&&Wt(e,"change",()=>{e.value=e.value.trim()}),t||(Wt(e,"compositionstart",Rp),Wt(e,"compositionend",ya),Wt(e,"change",ya))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:s,number:r}},i){if(e._assign=hn(i),e.composing||document.activeElement===e&&e.type!=="range"&&(n||s&&e.value.trim()===t||(r||e.type==="number")&&Kn(e.value)===t))return;const o=t??"";e.value!==o&&(e.value=o)}},Dp={deep:!0,created(e,t,n){e._assign=hn(n),Wt(e,"change",()=>{const s=e._modelValue,r=Zn(e),i=e.checked,o=e._assign;if(ee(s)){const a=xi(s,r),l=a!==-1;if(i&&!l)o(s.concat(r));else if(!i&&l){const c=[...s];c.splice(a,1),o(c)}}else if(ns(s)){const a=new Set(s);i?a.add(r):a.delete(r),o(a)}else o(Uu(e,i))})},mounted:ba,beforeUpdate(e,t,n){e._assign=hn(n),ba(e,t,n)}};function ba(e,{value:t,oldValue:n},s){e._modelValue=t,ee(t)?e.checked=xi(t,s.props.value)>-1:ns(t)?e.checked=t.has(s.props.value):t!==n&&(e.checked=Nn(t,Uu(e,!0)))}const $p={created(e,{value:t},n){e.checked=Nn(t,n.props.value),e._assign=hn(n),Wt(e,"change",()=>{e._assign(Zn(e))})},beforeUpdate(e,{value:t,oldValue:n},s){e._assign=hn(s),t!==n&&(e.checked=Nn(t,s.props.value))}},Pp={deep:!0,created(e,{value:t,modifiers:{number:n}},s){const r=ns(t);Wt(e,"change",()=>{const i=Array.prototype.filter.call(e.options,o=>o.selected).map(o=>n?Kn(Zn(o)):Zn(o));e._assign(e.multiple?r?new Set(i):i:i[0])}),e._assign=hn(s)},mounted(e,{value:t}){va(e,t)},beforeUpdate(e,t,n){e._assign=hn(n)},updated(e,{value:t}){va(e,t)}};function va(e,t){const n=e.multiple;if(!(n&&!ee(t)&&!ns(t))){for(let s=0,r=e.options.length;s-1:i.selected=t.has(o);else if(Nn(Zn(i),t)){e.selectedIndex!==s&&(e.selectedIndex=s);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Zn(e){return"_value"in e?e._value:e.value}function Uu(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Fp={created(e,t,n){Zs(e,t,n,null,"created")},mounted(e,t,n){Zs(e,t,n,null,"mounted")},beforeUpdate(e,t,n,s){Zs(e,t,n,s,"beforeUpdate")},updated(e,t,n,s){Zs(e,t,n,s,"updated")}};function Mp(e,t){switch(e){case"SELECT":return Pp;case"TEXTAREA":return gi;default:switch(t){case"checkbox":return Dp;case"radio":return $p;default:return gi}}}function Zs(e,t,n,s,r){const o=Mp(e.tagName,n.props&&n.props.type)[r];o&&o(e,t,n,s)}const Bp=["ctrl","shift","alt","meta"],Up={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Bp.some(n=>e[`${n}Key`]&&!t.includes(n))},ET=(e,t)=>(n,...s)=>{for(let r=0;rn=>{if(!("key"in n))return;const s=On(n.key);if(t.some(r=>r===s||jp[r]===s))return e(n)},xp=Ge({patchProp:Ep},cp);let Sa;function Hp(){return Sa||(Sa=Vh(xp))}const Vp=(...e)=>{const t=Hp().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=Wp(s);if(!r)return;const i=t._component;!oe(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.innerHTML="";const o=n(r,!1,r instanceof SVGElement);return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),o},t};function Wp(e){return Be(e)?document.querySelector(e):e}const zp=Ae({name:"clock",data:()=>({timestamp:Date.now()}),setup(){let e=Se(Date.now());const t=Te(()=>new Date(e.value).toLocaleString("pl-PL",{hour:"2-digit",minute:"2-digit",second:"2-digit"}));return setInterval(()=>e.value=Date.now(),1e3),{computedDate:t}}});const Fe=(e,t)=>{const n=e.__vccOpts||e;for(const[s,r]of t)n[s]=r;return n},Kp={class:"clock"};function Yp(e,t,n,s,r,i){return O(),R("div",Kp,N(e.computedDate),1)}const ju=Fe(zp,[["render",Yp],["__scopeId","data-v-bfbd7cb4"]]),Gp="stacjownik",qp="1.11.0",Jp={dev:"vite",build:"vue-tsc --noEmit && vite build",deploy:"yarn build && firebase deploy --only hosting",preview:"vite preview"},Zp={"core-js":"^3.12.1",dotenv:"^16.0.3",firebase:"^9.8.1",howler:"^2.2.1",pinia:"^2.0.14",sass:"^1.53.0","socket.io-client":"^4.4.1",vue:"^3.2.37","vue-i18n":"^9.1.6","vue-router":"^4.0.0-0"},Xp={"@types/node":"^18.11.1","@vitejs/plugin-vue":"^4.0.0",axios:"^1.1.2",typescript:"^4.6.4",vite:"^4.0.2","vue-tsc":"^1.0.9"},Qp=["> 1%","last 2 versions","not dead"],em={name:Gp,version:qp,private:!0,scripts:Jp,dependencies:Zp,devDependencies:Xp,browserslist:Qp};var X=(e=>(e[e.Initialized=-1]="Initialized",e[e.Loading=0]="Loading",e[e.Error=1]="Error",e[e.Loaded=2]="Loaded",e[e.Warning=3]="Warning",e))(X||{});function xu(e,t){return function(){return e.apply(t,arguments)}}const{toString:Hu}=Object.prototype,{getPrototypeOf:ho}=Object,po=(e=>t=>{const n=Hu.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Jt=e=>(e=e.toLowerCase(),t=>po(t)===e),Cr=e=>t=>typeof t===e,{isArray:os}=Array,Ps=Cr("undefined");function tm(e){return e!==null&&!Ps(e)&&e.constructor!==null&&!Ps(e.constructor)&&Cn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Vu=Jt("ArrayBuffer");function nm(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Vu(e.buffer),t}const sm=Cr("string"),Cn=Cr("function"),Wu=Cr("number"),mo=e=>e!==null&&typeof e=="object",rm=e=>e===!0||e===!1,rr=e=>{if(po(e)!=="object")return!1;const t=ho(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},im=Jt("Date"),om=Jt("File"),am=Jt("Blob"),lm=Jt("FileList"),cm=e=>mo(e)&&Cn(e.pipe),um=e=>{const t="[object FormData]";return e&&(typeof FormData=="function"&&e instanceof FormData||Hu.call(e)===t||Cn(e.toString)&&e.toString()===t)},fm=Jt("URLSearchParams"),dm=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function xs(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let s,r;if(typeof e!="object"&&(e=[e]),os(e))for(s=0,r=e.length;s0;)if(r=n[s],t===r.toLowerCase())return r;return null}const Ku=typeof self>"u"?typeof global>"u"?globalThis:global:self,Yu=e=>!Ps(e)&&e!==Ku;function _i(){const{caseless:e}=Yu(this)&&this||{},t={},n=(s,r)=>{const i=e&&zu(t,r)||r;rr(t[i])&&rr(s)?t[i]=_i(t[i],s):rr(s)?t[i]=_i({},s):os(s)?t[i]=s.slice():t[i]=s};for(let s=0,r=arguments.length;s(xs(t,(r,i)=>{n&&Cn(r)?e[i]=xu(r,n):e[i]=r},{allOwnKeys:s}),e),pm=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),mm=(e,t,n,s)=>{e.prototype=Object.create(t.prototype,s),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},gm=(e,t,n,s)=>{let r,i,o;const a={};if(t=t||{},e==null)return t;do{for(r=Object.getOwnPropertyNames(e),i=r.length;i-- >0;)o=r[i],(!s||s(o,e,t))&&!a[o]&&(t[o]=e[o],a[o]=!0);e=n!==!1&&ho(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},_m=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const s=e.indexOf(t,n);return s!==-1&&s===n},ym=e=>{if(!e)return null;if(os(e))return e;let t=e.length;if(!Wu(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},bm=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&ho(Uint8Array)),vm=(e,t)=>{const s=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=s.next())&&!r.done;){const i=r.value;t.call(e,i[0],i[1])}},Sm=(e,t)=>{let n;const s=[];for(;(n=e.exec(t))!==null;)s.push(n);return s},Em=Jt("HTMLFormElement"),wm=e=>e.toLowerCase().replace(/[_-\s]([a-z\d])(\w*)/g,function(n,s,r){return s.toUpperCase()+r}),Ea=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Tm=Jt("RegExp"),Gu=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),s={};xs(n,(r,i)=>{t(r,i,e)!==!1&&(s[i]=r)}),Object.defineProperties(e,s)},Am=e=>{Gu(e,(t,n)=>{if(Cn(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const s=e[n];if(Cn(s)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},km=(e,t)=>{const n={},s=r=>{r.forEach(i=>{n[i]=!0})};return os(e)?s(e):s(String(e).split(t)),n},Lm=()=>{},Nm=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Cm=e=>{const t=new Array(10),n=(s,r)=>{if(mo(s)){if(t.indexOf(s)>=0)return;if(!("toJSON"in s)){t[r]=s;const i=os(s)?[]:{};return xs(s,(o,a)=>{const l=n(o,r+1);!Ps(l)&&(i[a]=l)}),t[r]=void 0,i}}return s};return n(e,0)},$={isArray:os,isArrayBuffer:Vu,isBuffer:tm,isFormData:um,isArrayBufferView:nm,isString:sm,isNumber:Wu,isBoolean:rm,isObject:mo,isPlainObject:rr,isUndefined:Ps,isDate:im,isFile:om,isBlob:am,isRegExp:Tm,isFunction:Cn,isStream:cm,isURLSearchParams:fm,isTypedArray:bm,isFileList:lm,forEach:xs,merge:_i,extend:hm,trim:dm,stripBOM:pm,inherits:mm,toFlatObject:gm,kindOf:po,kindOfTest:Jt,endsWith:_m,toArray:ym,forEachEntry:vm,matchAll:Sm,isHTMLForm:Em,hasOwnProperty:Ea,hasOwnProp:Ea,reduceDescriptors:Gu,freezeMethods:Am,toObjectSet:km,toCamelCase:wm,noop:Lm,toFiniteNumber:Nm,findKey:zu,global:Ku,isContextDefined:Yu,toJSONObject:Cm};function _e(e,t,n,s,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),s&&(this.request=s),r&&(this.response=r)}$.inherits(_e,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:$.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const qu=_e.prototype,Ju={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Ju[e]={value:e}});Object.defineProperties(_e,Ju);Object.defineProperty(qu,"isAxiosError",{value:!0});_e.from=(e,t,n,s,r,i)=>{const o=Object.create(qu);return $.toFlatObject(e,o,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),_e.call(o,e.message,t,n,s,r),o.cause=e,o.name=e.name,i&&Object.assign(o,i),o};var Om=typeof self=="object"?self.FormData:window.FormData;const Im=Om;function yi(e){return $.isPlainObject(e)||$.isArray(e)}function Zu(e){return $.endsWith(e,"[]")?e.slice(0,-2):e}function wa(e,t,n){return e?e.concat(t).map(function(r,i){return r=Zu(r),!n&&i?"["+r+"]":r}).join(n?".":""):t}function Rm(e){return $.isArray(e)&&!e.some(yi)}const Dm=$.toFlatObject($,{},null,function(t){return/^is[A-Z]/.test(t)});function $m(e){return e&&$.isFunction(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator]}function Or(e,t,n){if(!$.isObject(e))throw new TypeError("target must be an object");t=t||new(Im||FormData),n=$.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(v,I){return!$.isUndefined(I[v])});const s=n.metaTokens,r=n.visitor||u,i=n.dots,o=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&$m(t);if(!$.isFunction(r))throw new TypeError("visitor must be a function");function c(E){if(E===null)return"";if($.isDate(E))return E.toISOString();if(!l&&$.isBlob(E))throw new _e("Blob is not supported. Use a Buffer instead.");return $.isArrayBuffer(E)||$.isTypedArray(E)?l&&typeof Blob=="function"?new Blob([E]):Buffer.from(E):E}function u(E,v,I){let _=E;if(E&&!I&&typeof E=="object"){if($.endsWith(v,"{}"))v=s?v:v.slice(0,-2),E=JSON.stringify(E);else if($.isArray(E)&&Rm(E)||$.isFileList(E)||$.endsWith(v,"[]")&&(_=$.toArray(E)))return v=Zu(v),_.forEach(function(A,w){!($.isUndefined(A)||A===null)&&t.append(o===!0?wa([v],w,i):o===null?v:v+"[]",c(A))}),!1}return yi(E)?!0:(t.append(wa(I,v,i),c(E)),!1)}const h=[],p=Object.assign(Dm,{defaultVisitor:u,convertValue:c,isVisitable:yi});function b(E,v){if(!$.isUndefined(E)){if(h.indexOf(E)!==-1)throw Error("Circular reference detected in "+v.join("."));h.push(E),$.forEach(E,function(_,S){(!($.isUndefined(_)||_===null)&&r.call(t,_,$.isString(S)?S.trim():S,v,p))===!0&&b(_,v?v.concat(S):[S])}),h.pop()}}if(!$.isObject(e))throw new TypeError("data must be an object");return b(e),t}function Ta(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(s){return t[s]})}function go(e,t){this._pairs=[],e&&Or(e,this,t)}const Xu=go.prototype;Xu.append=function(t,n){this._pairs.push([t,n])};Xu.toString=function(t){const n=t?function(s){return t.call(this,s,Ta)}:Ta;return this._pairs.map(function(r){return n(r[0])+"="+n(r[1])},"").join("&")};function Pm(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Qu(e,t,n){if(!t)return e;const s=n&&n.encode||Pm,r=n&&n.serialize;let i;if(r?i=r(t,n):i=$.isURLSearchParams(t)?t.toString():new go(t,n).toString(s),i){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Fm{constructor(){this.handlers=[]}use(t,n,s){return this.handlers.push({fulfilled:t,rejected:n,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){$.forEach(this.handlers,function(s){s!==null&&t(s)})}}const Aa=Fm,ef={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Mm=typeof URLSearchParams<"u"?URLSearchParams:go,Bm=FormData,Um=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),jm=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),Ft={isBrowser:!0,classes:{URLSearchParams:Mm,FormData:Bm,Blob},isStandardBrowserEnv:Um,isStandardBrowserWebWorkerEnv:jm,protocols:["http","https","file","blob","url","data"]};function xm(e,t){return Or(e,new Ft.classes.URLSearchParams,Object.assign({visitor:function(n,s,r,i){return Ft.isNode&&$.isBuffer(n)?(this.append(s,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function Hm(e){return $.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Vm(e){const t={},n=Object.keys(e);let s;const r=n.length;let i;for(s=0;s=n.length;return o=!o&&$.isArray(r)?r.length:o,l?($.hasOwnProp(r,o)?r[o]=[r[o],s]:r[o]=s,!a):((!r[o]||!$.isObject(r[o]))&&(r[o]=[]),t(n,s,r[o],i)&&$.isArray(r[o])&&(r[o]=Vm(r[o])),!a)}if($.isFormData(e)&&$.isFunction(e.entries)){const n={};return $.forEachEntry(e,(s,r)=>{t(Hm(s),r,n,0)}),n}return null}const Wm={"Content-Type":void 0};function zm(e,t,n){if($.isString(e))try{return(t||JSON.parse)(e),$.trim(e)}catch(s){if(s.name!=="SyntaxError")throw s}return(n||JSON.stringify)(e)}const Ir={transitional:ef,adapter:["xhr","http"],transformRequest:[function(t,n){const s=n.getContentType()||"",r=s.indexOf("application/json")>-1,i=$.isObject(t);if(i&&$.isHTMLForm(t)&&(t=new FormData(t)),$.isFormData(t))return r&&r?JSON.stringify(tf(t)):t;if($.isArrayBuffer(t)||$.isBuffer(t)||$.isStream(t)||$.isFile(t)||$.isBlob(t))return t;if($.isArrayBufferView(t))return t.buffer;if($.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(i){if(s.indexOf("application/x-www-form-urlencoded")>-1)return xm(t,this.formSerializer).toString();if((a=$.isFileList(t))||s.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Or(a?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||r?(n.setContentType("application/json",!1),zm(t)):t}],transformResponse:[function(t){const n=this.transitional||Ir.transitional,s=n&&n.forcedJSONParsing,r=this.responseType==="json";if(t&&$.isString(t)&&(s&&!this.responseType||r)){const o=!(n&&n.silentJSONParsing)&&r;try{return JSON.parse(t)}catch(a){if(o)throw a.name==="SyntaxError"?_e.from(a,_e.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ft.classes.FormData,Blob:Ft.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};$.forEach(["delete","get","head"],function(t){Ir.headers[t]={}});$.forEach(["post","put","patch"],function(t){Ir.headers[t]=$.merge(Wm)});const _o=Ir,Km=$.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Ym=e=>{const t={};let n,s,r;return e&&e.split(` -`).forEach(function(o){r=o.indexOf(":"),n=o.substring(0,r).trim().toLowerCase(),s=o.substring(r+1).trim(),!(!n||t[n]&&Km[n])&&(n==="set-cookie"?t[n]?t[n].push(s):t[n]=[s]:t[n]=t[n]?t[n]+", "+s:s)}),t},ka=Symbol("internals");function fs(e){return e&&String(e).trim().toLowerCase()}function ir(e){return e===!1||e==null?e:$.isArray(e)?e.map(ir):String(e)}function Gm(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=n.exec(e);)t[s[1]]=s[2];return t}function qm(e){return/^[-_a-zA-Z]+$/.test(e.trim())}function La(e,t,n,s){if($.isFunction(s))return s.call(this,t,n);if($.isString(t)){if($.isString(s))return t.indexOf(s)!==-1;if($.isRegExp(s))return s.test(t)}}function Jm(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,s)=>n.toUpperCase()+s)}function Zm(e,t){const n=$.toCamelCase(" "+t);["get","set","has"].forEach(s=>{Object.defineProperty(e,s+n,{value:function(r,i,o){return this[s].call(this,t,r,i,o)},configurable:!0})})}class Rr{constructor(t){t&&this.set(t)}set(t,n,s){const r=this;function i(a,l,c){const u=fs(l);if(!u)throw new Error("header name must be a non-empty string");const h=$.findKey(r,u);(!h||r[h]===void 0||c===!0||c===void 0&&r[h]!==!1)&&(r[h||l]=ir(a))}const o=(a,l)=>$.forEach(a,(c,u)=>i(c,u,l));return $.isPlainObject(t)||t instanceof this.constructor?o(t,n):$.isString(t)&&(t=t.trim())&&!qm(t)?o(Ym(t),n):t!=null&&i(n,t,s),this}get(t,n){if(t=fs(t),t){const s=$.findKey(this,t);if(s){const r=this[s];if(!n)return r;if(n===!0)return Gm(r);if($.isFunction(n))return n.call(this,r,s);if($.isRegExp(n))return n.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=fs(t),t){const s=$.findKey(this,t);return!!(s&&(!n||La(this,this[s],s,n)))}return!1}delete(t,n){const s=this;let r=!1;function i(o){if(o=fs(o),o){const a=$.findKey(s,o);a&&(!n||La(s,s[a],a,n))&&(delete s[a],r=!0)}}return $.isArray(t)?t.forEach(i):i(t),r}clear(){return Object.keys(this).forEach(this.delete.bind(this))}normalize(t){const n=this,s={};return $.forEach(this,(r,i)=>{const o=$.findKey(s,i);if(o){n[o]=ir(r),delete n[i];return}const a=t?Jm(i):String(i).trim();a!==i&&delete n[i],n[a]=ir(r),s[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return $.forEach(this,(s,r)=>{s!=null&&s!==!1&&(n[r]=t&&$.isArray(s)?s.join(", "):s)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` -`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const s=new this(t);return n.forEach(r=>s.set(r)),s}static accessor(t){const s=(this[ka]=this[ka]={accessors:{}}).accessors,r=this.prototype;function i(o){const a=fs(o);s[a]||(Zm(r,o),s[a]=!0)}return $.isArray(t)?t.forEach(i):i(t),this}}Rr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent"]);$.freezeMethods(Rr.prototype);$.freezeMethods(Rr);const zt=Rr;function Jr(e,t){const n=this||_o,s=t||n,r=zt.from(s.headers);let i=s.data;return $.forEach(e,function(a){i=a.call(n,i,r.normalize(),t?t.status:void 0)}),r.normalize(),i}function nf(e){return!!(e&&e.__CANCEL__)}function Hs(e,t,n){_e.call(this,e??"canceled",_e.ERR_CANCELED,t,n),this.name="CanceledError"}$.inherits(Hs,_e,{__CANCEL__:!0});const Xm=null;function Qm(e,t,n){const s=n.config.validateStatus;!n.status||!s||s(n.status)?e(n):t(new _e("Request failed with status code "+n.status,[_e.ERR_BAD_REQUEST,_e.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const eg=Ft.isStandardBrowserEnv?function(){return{write:function(n,s,r,i,o,a){const l=[];l.push(n+"="+encodeURIComponent(s)),$.isNumber(r)&&l.push("expires="+new Date(r).toGMTString()),$.isString(i)&&l.push("path="+i),$.isString(o)&&l.push("domain="+o),a===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(n){const s=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return s?decodeURIComponent(s[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function tg(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function ng(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function sf(e,t){return e&&!tg(t)?ng(e,t):t}const sg=Ft.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let s;function r(i){let o=i;return t&&(n.setAttribute("href",o),o=n.href),n.setAttribute("href",o),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return s=r(window.location.href),function(o){const a=$.isString(o)?r(o):o;return a.protocol===s.protocol&&a.host===s.host}}():function(){return function(){return!0}}();function rg(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function ig(e,t){e=e||10;const n=new Array(e),s=new Array(e);let r=0,i=0,o;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),u=s[i];o||(o=c),n[r]=l,s[r]=c;let h=i,p=0;for(;h!==r;)p+=n[h++],h=h%e;if(r=(r+1)%e,r===i&&(i=(i+1)%e),c-o{const i=r.loaded,o=r.lengthComputable?r.total:void 0,a=i-n,l=s(a),c=i<=o;n=i;const u={loaded:i,total:o,progress:o?i/o:void 0,bytes:a,rate:l||void 0,estimated:l&&o&&c?(o-i)/l:void 0,event:r};u[t?"download":"upload"]=!0,e(u)}}const og=typeof XMLHttpRequest<"u",ag=og&&function(e){return new Promise(function(n,s){let r=e.data;const i=zt.from(e.headers).normalize(),o=e.responseType;let a;function l(){e.cancelToken&&e.cancelToken.unsubscribe(a),e.signal&&e.signal.removeEventListener("abort",a)}$.isFormData(r)&&(Ft.isStandardBrowserEnv||Ft.isStandardBrowserWebWorkerEnv)&&i.setContentType(!1);let c=new XMLHttpRequest;if(e.auth){const b=e.auth.username||"",E=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(b+":"+E))}const u=sf(e.baseURL,e.url);c.open(e.method.toUpperCase(),Qu(u,e.params,e.paramsSerializer),!0),c.timeout=e.timeout;function h(){if(!c)return;const b=zt.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),v={data:!o||o==="text"||o==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:b,config:e,request:c};Qm(function(_){n(_),l()},function(_){s(_),l()},v),c=null}if("onloadend"in c?c.onloadend=h:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(h)},c.onabort=function(){c&&(s(new _e("Request aborted",_e.ECONNABORTED,e,c)),c=null)},c.onerror=function(){s(new _e("Network Error",_e.ERR_NETWORK,e,c)),c=null},c.ontimeout=function(){let E=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const v=e.transitional||ef;e.timeoutErrorMessage&&(E=e.timeoutErrorMessage),s(new _e(E,v.clarifyTimeoutError?_e.ETIMEDOUT:_e.ECONNABORTED,e,c)),c=null},Ft.isStandardBrowserEnv){const b=(e.withCredentials||sg(u))&&e.xsrfCookieName&&eg.read(e.xsrfCookieName);b&&i.set(e.xsrfHeaderName,b)}r===void 0&&i.setContentType(null),"setRequestHeader"in c&&$.forEach(i.toJSON(),function(E,v){c.setRequestHeader(v,E)}),$.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),o&&o!=="json"&&(c.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&c.addEventListener("progress",Na(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",Na(e.onUploadProgress)),(e.cancelToken||e.signal)&&(a=b=>{c&&(s(!b||b.type?new Hs(null,e,c):b),c.abort(),c=null)},e.cancelToken&&e.cancelToken.subscribe(a),e.signal&&(e.signal.aborted?a():e.signal.addEventListener("abort",a)));const p=rg(u);if(p&&Ft.protocols.indexOf(p)===-1){s(new _e("Unsupported protocol "+p+":",_e.ERR_BAD_REQUEST,e));return}c.send(r||null)})},or={http:Xm,xhr:ag};$.forEach(or,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const lg={getAdapter:e=>{e=$.isArray(e)?e:[e];const{length:t}=e;let n,s;for(let r=0;re instanceof zt?e.toJSON():e;function Xn(e,t){t=t||{};const n={};function s(c,u,h){return $.isPlainObject(c)&&$.isPlainObject(u)?$.merge.call({caseless:h},c,u):$.isPlainObject(u)?$.merge({},u):$.isArray(u)?u.slice():u}function r(c,u,h){if($.isUndefined(u)){if(!$.isUndefined(c))return s(void 0,c,h)}else return s(c,u,h)}function i(c,u){if(!$.isUndefined(u))return s(void 0,u)}function o(c,u){if($.isUndefined(u)){if(!$.isUndefined(c))return s(void 0,c)}else return s(void 0,u)}function a(c,u,h){if(h in t)return s(c,u);if(h in e)return s(void 0,c)}const l={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:a,headers:(c,u)=>r(Oa(c),Oa(u),!0)};return $.forEach(Object.keys(e).concat(Object.keys(t)),function(u){const h=l[u]||r,p=h(e[u],t[u],u);$.isUndefined(p)&&h!==a||(n[u]=p)}),n}const rf="1.2.1",yo={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{yo[e]=function(s){return typeof s===e||"a"+(t<1?"n ":" ")+e}});const Ia={};yo.transitional=function(t,n,s){function r(i,o){return"[Axios v"+rf+"] Transitional option '"+i+"'"+o+(s?". "+s:"")}return(i,o,a)=>{if(t===!1)throw new _e(r(o," has been removed"+(n?" in "+n:"")),_e.ERR_DEPRECATED);return n&&!Ia[o]&&(Ia[o]=!0,console.warn(r(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,o,a):!0}};function cg(e,t,n){if(typeof e!="object")throw new _e("options must be an object",_e.ERR_BAD_OPTION_VALUE);const s=Object.keys(e);let r=s.length;for(;r-- >0;){const i=s[r],o=t[i];if(o){const a=e[i],l=a===void 0||o(a,i,e);if(l!==!0)throw new _e("option "+i+" must be "+l,_e.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new _e("Unknown option "+i,_e.ERR_BAD_OPTION)}}const bi={assertOptions:cg,validators:yo},Qt=bi.validators;class mr{constructor(t){this.defaults=t,this.interceptors={request:new Aa,response:new Aa}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Xn(this.defaults,n);const{transitional:s,paramsSerializer:r,headers:i}=n;s!==void 0&&bi.assertOptions(s,{silentJSONParsing:Qt.transitional(Qt.boolean),forcedJSONParsing:Qt.transitional(Qt.boolean),clarifyTimeoutError:Qt.transitional(Qt.boolean)},!1),r!==void 0&&bi.assertOptions(r,{encode:Qt.function,serialize:Qt.function},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o;o=i&&$.merge(i.common,i[n.method]),o&&$.forEach(["delete","get","head","post","put","patch","common"],E=>{delete i[E]}),n.headers=zt.concat(o,i);const a=[];let l=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(n)===!1||(l=l&&v.synchronous,a.unshift(v.fulfilled,v.rejected))});const c=[];this.interceptors.response.forEach(function(v){c.push(v.fulfilled,v.rejected)});let u,h=0,p;if(!l){const E=[Ca.bind(this),void 0];for(E.unshift.apply(E,a),E.push.apply(E,c),p=E.length,u=Promise.resolve(n);h{if(!s._listeners)return;let i=s._listeners.length;for(;i-- >0;)s._listeners[i](r);s._listeners=null}),this.promise.then=r=>{let i;const o=new Promise(a=>{s.subscribe(a),i=a}).then(r);return o.cancel=function(){s.unsubscribe(i)},o},t(function(i,o,a){s.reason||(s.reason=new Hs(i,o,a),n(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new bo(function(r){t=r}),cancel:t}}}const ug=bo;function fg(e){return function(n){return e.apply(null,n)}}function dg(e){return $.isObject(e)&&e.isAxiosError===!0}function of(e){const t=new ar(e),n=xu(ar.prototype.request,t);return $.extend(n,ar.prototype,t,{allOwnKeys:!0}),$.extend(n,t,null,{allOwnKeys:!0}),n.create=function(r){return of(Xn(e,r))},n}const qe=of(_o);qe.Axios=ar;qe.CanceledError=Hs;qe.CancelToken=ug;qe.isCancel=nf;qe.VERSION=rf;qe.toFormData=Or;qe.AxiosError=_e;qe.Cancel=qe.CanceledError;qe.all=function(t){return Promise.all(t)};qe.spread=fg;qe.isAxiosError=dg;qe.mergeConfig=Xn;qe.AxiosHeaders=zt;qe.formToJSON=e=>tf($.isHTMLForm(e)?new FormData(e):e);qe.default=qe;const ct=qe;var hg=!1;let af;const Dr=e=>af=e,lf=Symbol();function vi(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var vs;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(vs||(vs={}));function pg(){const e=zi(!0),t=e.run(()=>Se({}));let n=[],s=[];const r=Gn({install(i){Dr(r),r._a=i,i.provide(lf,r),i.config.globalProperties.$pinia=r,s.forEach(o=>n.push(o)),s=[]},use(i){return!this._a&&!hg?s.push(i):n.push(i),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return r}const cf=()=>{};function Ra(e,t,n,s=cf){e.push(t);const r=()=>{const i=e.indexOf(t);i>-1&&(e.splice(i,1),s())};return!n&&Ad()&&kd(r),r}function Pn(e,...t){e.slice().forEach(n=>{n(...t)})}function Si(e,t){e instanceof Map&&t instanceof Map&&t.forEach((n,s)=>e.set(s,n)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const s=t[n],r=e[n];vi(r)&&vi(s)&&e.hasOwnProperty(n)&&!Pe(s)&&!un(s)?e[n]=Si(r,s):e[n]=s}return e}const mg=Symbol();function gg(e){return!vi(e)||!e.hasOwnProperty(mg)}const{assign:rn}=Object;function _g(e){return!!(Pe(e)&&e.effect)}function yg(e,t,n,s){const{state:r,actions:i,getters:o}=t,a=n.state.value[e];let l;function c(){a||(n.state.value[e]=r?r():{});const u=th(n.state.value[e]);return rn(u,i,Object.keys(o||{}).reduce((h,p)=>(h[p]=Gn(Te(()=>{Dr(n);const b=n._s.get(e);return o[p].call(b,b)})),h),{}))}return l=uf(e,c,t,n,s,!0),l.$reset=function(){const h=r?r():{};this.$patch(p=>{rn(p,h)})},l}function uf(e,t,n={},s,r,i){let o;const a=rn({actions:{}},n),l={deep:!0};let c,u,h=Gn([]),p=Gn([]),b;const E=s.state.value[e];!i&&!E&&(s.state.value[e]={}),Se({});let v;function I(M){let x;c=u=!1,typeof M=="function"?(M(s.state.value[e]),x={type:vs.patchFunction,storeId:e,events:b}):(Si(s.state.value[e],M),x={type:vs.patchObject,payload:M,storeId:e,events:b});const G=v=Symbol();eo().then(()=>{v===G&&(c=!0)}),u=!0,Pn(h,x,s.state.value[e])}const _=cf;function S(){o.stop(),h=[],p=[],s._s.delete(e)}function A(M,x){return function(){Dr(s);const G=Array.from(arguments),Z=[],ne=[];function W(Ne){Z.push(Ne)}function ae(Ne){ne.push(Ne)}Pn(p,{args:G,name:M,store:L,after:W,onError:ae});let we;try{we=x.apply(this&&this.$id===e?this:L,G)}catch(Ne){throw Pn(ne,Ne),Ne}return we instanceof Promise?we.then(Ne=>(Pn(Z,Ne),Ne)).catch(Ne=>(Pn(ne,Ne),Promise.reject(Ne))):(Pn(Z,we),we)}}const w={_p:s,$id:e,$onAction:Ra.bind(null,p),$patch:I,$reset:_,$subscribe(M,x={}){const G=Ra(h,M,x.detached,()=>Z()),Z=o.run(()=>gt(()=>s.state.value[e],ne=>{(x.flush==="sync"?u:c)&&M({storeId:e,type:vs.direct,events:b},ne)},rn({},l,x)));return G},$dispose:S},L=yt(w);s._s.set(e,L);const U=s._e.run(()=>(o=zi(),o.run(()=>t())));for(const M in U){const x=U[M];if(Pe(x)&&!_g(x)||un(x))i||(E&&gg(x)&&(Pe(x)?x.value=E[M]:Si(x,E[M])),s.state.value[e][M]=x);else if(typeof x=="function"){const G=A(M,x);U[M]=G,a.actions[M]=x}}return rn(L,U),rn(ye(L),U),Object.defineProperty(L,"$state",{get:()=>s.state.value[e],set:M=>{I(x=>{rn(x,M)})}}),s._p.forEach(M=>{rn(L,o.run(()=>M({store:L,app:s._a,pinia:s,options:a})))}),E&&i&&n.hydrate&&n.hydrate(L.$state,E),c=!0,u=!0,L}function bg(e,t,n){let s,r;const i=typeof t=="function";typeof e=="string"?(s=e,r=i?n:t):(r=e,s=e.id);function o(a,l){const c=Gt();return a=a||c&&st(lf,null),a&&Dr(a),a=af,a._s.has(s)||(i?uf(s,t,r,a):yg(s,r,a)),a._s.get(s)}return o.$id=s,o}const Ut=Object.create(null);Ut.open="0";Ut.close="1";Ut.ping="2";Ut.pong="3";Ut.message="4";Ut.upgrade="5";Ut.noop="6";const lr=Object.create(null);Object.keys(Ut).forEach(e=>{lr[Ut[e]]=e});const vg={type:"error",data:"parser error"},Sg=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",Eg=typeof ArrayBuffer=="function",wg=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,ff=({type:e,data:t},n,s)=>Sg&&t instanceof Blob?n?s(t):Da(t,s):Eg&&(t instanceof ArrayBuffer||wg(t))?n?s(t):Da(new Blob([t]),s):s(Ut[e]+(t||"")),Da=(e,t)=>{const n=new FileReader;return n.onload=function(){const s=n.result.split(",")[1];t("b"+s)},n.readAsDataURL(e)},$a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",_s=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<$a.length;e++)_s[$a.charCodeAt(e)]=e;const Tg=e=>{let t=e.length*.75,n=e.length,s,r=0,i,o,a,l;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const c=new ArrayBuffer(t),u=new Uint8Array(c);for(s=0;s>4,u[r++]=(o&15)<<4|a>>2,u[r++]=(a&3)<<6|l&63;return c},Ag=typeof ArrayBuffer=="function",df=(e,t)=>{if(typeof e!="string")return{type:"message",data:hf(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:kg(e.substring(1),t)}:lr[n]?e.length>1?{type:lr[n],data:e.substring(1)}:{type:lr[n]}:vg},kg=(e,t)=>{if(Ag){const n=Tg(e);return hf(n,t)}else return{base64:!0,data:e}},hf=(e,t)=>{switch(t){case"blob":return e instanceof ArrayBuffer?new Blob([e]):e;case"arraybuffer":default:return e}},pf=String.fromCharCode(30),Lg=(e,t)=>{const n=e.length,s=new Array(n);let r=0;e.forEach((i,o)=>{ff(i,!1,a=>{s[o]=a,++r===n&&t(s.join(pf))})})},Ng=(e,t)=>{const n=e.split(pf),s=[];for(let r=0;rtypeof self<"u"?self:typeof window<"u"?window:Function("return this")())();function gf(e,...t){return t.reduce((n,s)=>(e.hasOwnProperty(s)&&(n[s]=e[s]),n),{})}const Og=setTimeout,Ig=clearTimeout;function $r(e,t){t.useNativeTimers?(e.setTimeoutFn=Og.bind(an),e.clearTimeoutFn=Ig.bind(an)):(e.setTimeoutFn=setTimeout.bind(an),e.clearTimeoutFn=clearTimeout.bind(an))}const Rg=1.33;function Dg(e){return typeof e=="string"?$g(e):Math.ceil((e.byteLength||e.size)*Rg)}function $g(e){let t=0,n=0;for(let s=0,r=e.length;s=57344?n+=3:(s++,n+=4);return n}class Pg extends Error{constructor(t,n,s){super(t),this.description=n,this.context=s,this.type="TransportError"}}class _f extends xe{constructor(t){super(),this.writable=!1,$r(this,t),this.opts=t,this.query=t.query,this.readyState="",this.socket=t.socket}onError(t,n,s){return super.emitReserved("error",new Pg(t,n,s)),this}open(){return(this.readyState==="closed"||this.readyState==="")&&(this.readyState="opening",this.doOpen()),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(t){this.readyState==="open"&&this.write(t)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){const n=df(t,this.socket.binaryType);this.onPacket(n)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}}const yf="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),Ei=64,Fg={};let Pa=0,Xs=0,Fa;function Ma(e){let t="";do t=yf[e%Ei]+t,e=Math.floor(e/Ei);while(e>0);return t}function bf(){const e=Ma(+new Date);return e!==Fa?(Pa=0,Fa=e):e+"."+Ma(Pa++)}for(;Xs{this.readyState="paused",t()};if(this.polling||!this.writable){let s=0;this.polling&&(s++,this.once("pollComplete",function(){--s||n()})),this.writable||(s++,this.once("drain",function(){--s||n()}))}else n()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const n=s=>{if(this.readyState==="opening"&&s.type==="open"&&this.onOpen(),s.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(s)};Ng(t,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this.poll())}doClose(){const t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,Lg(t,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let t=this.query||{};const n=this.opts.secure?"https":"http";let s="";this.opts.timestampRequests!==!1&&(t[this.opts.timestampParam]=bf()),!this.supportsBinary&&!t.sid&&(t.b64=1),this.opts.port&&(n==="https"&&Number(this.opts.port)!==443||n==="http"&&Number(this.opts.port)!==80)&&(s=":"+this.opts.port);const r=vf(t),i=this.opts.hostname.indexOf(":")!==-1;return n+"://"+(i?"["+this.opts.hostname+"]":this.opts.hostname)+s+this.opts.path+(r.length?"?"+r:"")}request(t={}){return Object.assign(t,{xd:this.xd,xs:this.xs},this.opts),new Mt(this.uri(),t)}doWrite(t,n){const s=this.request({method:"POST",data:t});s.on("success",n),s.on("error",(r,i)=>{this.onError("xhr post error",r,i)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(n,s)=>{this.onError("xhr poll error",n,s)}),this.pollXhr=t}}class Mt extends xe{constructor(t,n){super(),$r(this,n),this.opts=n,this.method=n.method||"GET",this.uri=t,this.async=n.async!==!1,this.data=n.data!==void 0?n.data:null,this.create()}create(){const t=gf(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this.opts.xd,t.xscheme=!!this.opts.xs;const n=this.xhr=new Ef(t);try{n.open(this.method,this.uri,this.async);try{if(this.opts.extraHeaders){n.setDisableHeaderCheck&&n.setDisableHeaderCheck(!0);for(let s in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(s)&&n.setRequestHeader(s,this.opts.extraHeaders[s])}}catch{}if(this.method==="POST")try{n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{n.setRequestHeader("Accept","*/*")}catch{}"withCredentials"in n&&(n.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(n.timeout=this.opts.requestTimeout),n.onreadystatechange=()=>{n.readyState===4&&(n.status===200||n.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof n.status=="number"?n.status:0)},0))},n.send(this.data)}catch(s){this.setTimeoutFn(()=>{this.onError(s)},0);return}typeof document<"u"&&(this.index=Mt.requestsCount++,Mt.requests[this.index]=this)}onError(t){this.emitReserved("error",t,this.xhr),this.cleanup(!0)}cleanup(t){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.xhr.onreadystatechange=Ug,t)try{this.xhr.abort()}catch{}typeof document<"u"&&delete Mt.requests[this.index],this.xhr=null}}onLoad(){const t=this.xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}Mt.requestsCount=0;Mt.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",Ba);else if(typeof addEventListener=="function"){const e="onpagehide"in an?"pagehide":"unload";addEventListener(e,Ba,!1)}}function Ba(){for(let e in Mt.requests)Mt.requests.hasOwnProperty(e)&&Mt.requests[e].abort()}const wf=(()=>typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0))(),Qs=an.WebSocket||an.MozWebSocket,Ua=!0,Hg="arraybuffer",ja=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class Vg extends _f{constructor(t){super(t),this.supportsBinary=!t.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const t=this.uri(),n=this.opts.protocols,s=ja?{}:gf(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(s.headers=this.opts.extraHeaders);try{this.ws=Ua&&!ja?n?new Qs(t,n):new Qs(t):new Qs(t,n,s)}catch(r){return this.emitReserved("error",r)}this.ws.binaryType=this.socket.binaryType||Hg,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let n=0;n{const o={};try{Ua&&this.ws.send(i)}catch{}r&&wf(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){let t=this.query||{};const n=this.opts.secure?"wss":"ws";let s="";this.opts.port&&(n==="wss"&&Number(this.opts.port)!==443||n==="ws"&&Number(this.opts.port)!==80)&&(s=":"+this.opts.port),this.opts.timestampRequests&&(t[this.opts.timestampParam]=bf()),this.supportsBinary||(t.b64=1);const r=vf(t),i=this.opts.hostname.indexOf(":")!==-1;return n+"://"+(i?"["+this.opts.hostname+"]":this.opts.hostname)+s+this.opts.path+(r.length?"?"+r:"")}check(){return!!Qs}}const Wg={websocket:Vg,polling:xg},zg=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,Kg=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function wi(e){const t=e,n=e.indexOf("["),s=e.indexOf("]");n!=-1&&s!=-1&&(e=e.substring(0,n)+e.substring(n,s).replace(/:/g,";")+e.substring(s,e.length));let r=zg.exec(e||""),i={},o=14;for(;o--;)i[Kg[o]]=r[o]||"";return n!=-1&&s!=-1&&(i.source=t,i.host=i.host.substring(1,i.host.length-1).replace(/;/g,":"),i.authority=i.authority.replace("[","").replace("]","").replace(/;/g,":"),i.ipv6uri=!0),i.pathNames=Yg(i,i.path),i.queryKey=Gg(i,i.query),i}function Yg(e,t){const n=/\/{2,9}/g,s=t.replace(n,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&s.splice(0,1),t.slice(-1)=="/"&&s.splice(s.length-1,1),s}function Gg(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(s,r,i){r&&(n[r]=i)}),n}let Tn=class extends xe{constructor(t,n={}){super(),t&&typeof t=="object"&&(n=t,t=null),t?(t=wi(t),n.hostname=t.host,n.secure=t.protocol==="https"||t.protocol==="wss",n.port=t.port,t.query&&(n.query=t.query)):n.host&&(n.hostname=wi(n.host).host),$r(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=n.transports||["polling","websocket"],this.readyState="",this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!0},n),this.opts.path=this.opts.path.replace(/\/$/,"")+"/",typeof this.opts.query=="string"&&(this.opts.query=Mg(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(t){const n=Object.assign({},this.opts.query);n.EIO=mf,n.transport=t,this.id&&(n.sid=this.id);const s=Object.assign({},this.opts.transportOptions[t],this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port});return new Wg[t](s)}open(){let t;if(this.opts.rememberUpgrade&&Tn.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)t="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else t=this.transports[0];this.readyState="opening";try{t=this.createTransport(t)}catch{this.transports.shift(),this.open();return}t.open(),this.setTransport(t)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",n=>this.onClose("transport close",n))}probe(t){let n=this.createTransport(t),s=!1;Tn.priorWebsocketSuccess=!1;const r=()=>{s||(n.send([{type:"ping",data:"probe"}]),n.once("packet",h=>{if(!s)if(h.type==="pong"&&h.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;Tn.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{s||this.readyState!=="closed"&&(u(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const p=new Error("probe error");p.transport=n.name,this.emitReserved("upgradeError",p)}}))};function i(){s||(s=!0,u(),n.close(),n=null)}const o=h=>{const p=new Error("probe error: "+h);p.transport=n.name,i(),this.emitReserved("upgradeError",p)};function a(){o("transport closed")}function l(){o("socket closed")}function c(h){n&&h.name!==n.name&&i()}const u=()=>{n.removeListener("open",r),n.removeListener("error",o),n.removeListener("close",a),this.off("close",l),this.off("upgrading",c)};n.once("open",r),n.once("error",o),n.once("close",a),this.once("close",l),this.once("upgrading",c),n.open()}onOpen(){if(this.readyState="open",Tn.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade&&this.transport.pause){let t=0;const n=this.upgrades.length;for(;t{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this.getWritablePackets();this.transport.send(t),this.prevBufferLen=t.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let s=0;s0&&n>this.maxPayload)return this.writeBuffer.slice(0,s);n+=2}return this.writeBuffer}write(t,n,s){return this.sendPacket("message",t,n,s),this}send(t,n,s){return this.sendPacket("message",t,n,s),this}sendPacket(t,n,s,r){if(typeof n=="function"&&(r=n,n=void 0),typeof s=="function"&&(r=s,s=null),this.readyState==="closing"||this.readyState==="closed")return;s=s||{},s.compress=s.compress!==!1;const i={type:t,data:n,options:s};this.emitReserved("packetCreate",i),this.writeBuffer.push(i),r&&this.once("flush",r),this.flush()}close(){const t=()=>{this.onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),t()},s=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?s():t()}):this.upgrading?s():t()),this}onError(t){Tn.priorWebsocketSuccess=!1,this.emitReserved("error",t),this.onClose("transport error",t)}onClose(t,n){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",t,n),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(t){const n=[];let s=0;const r=t.length;for(;stypeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,Tf=Object.prototype.toString,Xg=typeof Blob=="function"||typeof Blob<"u"&&Tf.call(Blob)==="[object BlobConstructor]",Qg=typeof File=="function"||typeof File<"u"&&Tf.call(File)==="[object FileConstructor]";function vo(e){return Jg&&(e instanceof ArrayBuffer||Zg(e))||Xg&&e instanceof Blob||Qg&&e instanceof File}function cr(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,s=e.length;n=0&&e.num0;case pe.ACK:case pe.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&this.reconstructor.finishedReconstruction()}}class r_{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){const n=t_(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const i_=Object.freeze(Object.defineProperty({__proto__:null,protocol:n_,get PacketType(){return pe},Encoder:s_,Decoder:So},Symbol.toStringTag,{value:"Module"}));function St(e,t,n){return e.on(t,n),function(){e.off(t,n)}}const o_=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class Af extends xe{constructor(t,n,s){super(),this.connected=!1,this.receiveBuffer=[],this.sendBuffer=[],this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=n,s&&s.auth&&(this.auth=s.auth),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const t=this.io;this.subs=[St(t,"open",this.onopen.bind(this)),St(t,"packet",this.onpacket.bind(this)),St(t,"error",this.onerror.bind(this)),St(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...n){if(o_.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');n.unshift(t);const s={type:pe.EVENT,data:n};if(s.options={},s.options.compress=this.flags.compress!==!1,typeof n[n.length-1]=="function"){const o=this.ids++,a=n.pop();this._registerAckCallback(o,a),s.id=o}const r=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return this.flags.volatile&&(!r||!this.connected)||(this.connected?(this.notifyOutgoingListeners(s),this.packet(s)):this.sendBuffer.push(s)),this.flags={},this}_registerAckCallback(t,n){const s=this.flags.timeout;if(s===void 0){this.acks[t]=n;return}const r=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let i=0;i{this.io.clearTimeoutFn(r),n.apply(this,[null,...i])}}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this.packet({type:pe.CONNECT,data:t})}):this.packet({type:pe.CONNECT,data:this.auth})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,n)}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case pe.CONNECT:if(t.data&&t.data.sid){const r=t.data.sid;this.onconnect(r)}else this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case pe.EVENT:case pe.BINARY_EVENT:this.onevent(t);break;case pe.ACK:case pe.BINARY_ACK:this.onack(t);break;case pe.DISCONNECT:this.ondisconnect();break;case pe.CONNECT_ERROR:this.destroy();const s=new Error(t.data.message);s.data=t.data.data,this.emitReserved("connect_error",s);break}}onevent(t){const n=t.data||[];t.id!=null&&n.push(this.ack(t.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const s of n)s.apply(this,t)}super.emit.apply(this,t)}ack(t){const n=this;let s=!1;return function(...r){s||(s=!0,n.packet({type:pe.ACK,id:t,data:r}))}}onack(t){const n=this.acks[t.id];typeof n=="function"&&(n.apply(this,t.data),delete this.acks[t.id])}onconnect(t){this.id=t,this.connected=!0,this.emitBuffered(),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:pe.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const n=this._anyListeners;for(let s=0;s0&&e.jitter<=1?e.jitter:0,this.attempts=0}as.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=Math.floor(t*10)&1?e+n:e-n}return Math.min(e,this.max)|0};as.prototype.reset=function(){this.attempts=0};as.prototype.setMin=function(e){this.ms=e};as.prototype.setMax=function(e){this.max=e};as.prototype.setJitter=function(e){this.jitter=e};class ki extends xe{constructor(t,n){var s;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(n=t,t=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,$r(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((s=n.randomizationFactor)!==null&&s!==void 0?s:.5),this.backoff=new as({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=t;const r=n.parser||i_;this.encoder=new r.Encoder,this.decoder=new r.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var n;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(n=this.backoff)===null||n===void 0||n.setMin(t),this)}randomizationFactor(t){var n;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(n=this.backoff)===null||n===void 0||n.setJitter(t),this)}reconnectionDelayMax(t){var n;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(n=this.backoff)===null||n===void 0||n.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new Tn(this.uri,this.opts);const n=this.engine,s=this;this._readyState="opening",this.skipReconnect=!1;const r=St(n,"open",function(){s.onopen(),t&&t()}),i=St(n,"error",o=>{s.cleanup(),s._readyState="closed",this.emitReserved("error",o),t?t(o):s.maybeReconnectOnOpen()});if(this._timeout!==!1){const o=this._timeout;o===0&&r();const a=this.setTimeoutFn(()=>{r(),n.close(),n.emit("error",new Error("timeout"))},o);this.opts.autoUnref&&a.unref(),this.subs.push(function(){clearTimeout(a)})}return this.subs.push(r),this.subs.push(i),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(St(t,"ping",this.onping.bind(this)),St(t,"data",this.ondata.bind(this)),St(t,"error",this.onerror.bind(this)),St(t,"close",this.onclose.bind(this)),St(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(n){this.onclose("parse error",n)}}ondecoded(t){wf(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,n){let s=this.nsps[t];return s||(s=new Af(this,t,n),this.nsps[t]=s),s}_destroy(t){const n=Object.keys(this.nsps);for(const s of n)if(this.nsps[s].active)return;this._close()}_packet(t){const n=this.encoder.encode(t);for(let s=0;st()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(t,n){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();this._reconnecting=!0;const s=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(r=>{r?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",r)):t.onreconnect()}))},n);this.opts.autoUnref&&s.unref(),this.subs.push(function(){clearTimeout(s)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const ds={};function ur(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=qg(e,t.path||"/socket.io"),s=n.source,r=n.id,i=n.path,o=ds[r]&&i in ds[r].nsps,a=t.forceNew||t["force new connection"]||t.multiplex===!1||o;let l;return a?l=new ki(s,t):(ds[r]||(ds[r]=new ki(s,t)),l=ds[r]),n.query&&!t.query&&(t.query=n.queryKey),l.socket(n.path,t)}Object.assign(ur,{Manager:ki,Socket:Af,io:ur,connect:ur});const kt={stacjownikAPI:"https://stacjownik-api-b9mrc.ondigitalocean.app",stacjownikAPIDev:"localhost:3000"},a_=e=>`https://rj.td2.info.pl/dist/img/thumbnails/${e.includes("EN")?e+"rb":e}.png`,l_=e=>{if(!e)return"unknown";if(e==-1)return"not-signed";const t=e[2],n=e[3];switch(t){case 0:return n-Date.now()>21e6?"no-limit":"online";case 1:return"brb";case 2:if(n==0)return"ending";break;case 3:return"no-space"}return"unavailable"},c_=e=>{if(!e)return-2;const t=e[2],n=e[3];switch(t){case 0:case 1:case 3:return n;case 2:if(n==0)return 0;break}return-1},u_=e=>e?e==="NO_SPAWN"?[]:e.split(";").map(t=>{const n=t.split(","),s=n[6]?n[6]:n[0],r=parseInt(n[2]);return{spawnName:s,spawnLength:r}}):[],f_=(e,t,n)=>{let s="",r="",i=-1;return e.terminatesHere&&e.confirmed?(s="terminated",r="Skończył bieg",i=5):!e.terminatesHere&&e.confirmed&&t==n?(s="departed",r="Odprawiony",i=2):!e.terminatesHere&&e.confirmed&&t!=n?(s="departed-away",r="Odjechał",i=4):t==n&&!e.stopped?(s="online",r="Na stacji",i=0):t==n&&e.stopped?(s="stopped",r="Postój",i=1):t!=n&&(s="arriving",r="W drodze",i=3),{stopStatus:s,stopLabel:r,stopStatusID:i}};function xa(e,t,n){var b,E;const s=e.timetableData,r=s.followingStops,i=r[t],o=f_(i,e.currentStationName,n);let a="",l="",c=null,u=null;for(let v=t-1;v>=0;v--)if(/strong|podg/g.test(r[v].stopName)){a=r[v].stopNameRAW.replace(/,.*/g,"");break}for(let v=t+1;v=0;v--){const I=r[v];if(I.arrivalLine!=null&&!/-|_|it|sbl/gi.test(I.arrivalLine)){p=I.arrivalLine,c=((E=r[v-1])==null?void 0:E.departureLine)||null;break}}return{trainNo:e.trainNo,trainId:e.trainId,signal:e.signal,connectedTrack:e.connectedTrack,driverName:e.driverName,driverId:e.driverId,currentStationName:e.currentStationName,currentStationHash:e.currentStationHash,category:s.category,beginsAt:s.followingStops[0].stopNameRAW,terminatesAt:s.followingStops[s.followingStops.length-1].stopNameRAW,nextStationName:l,prevStationName:a,stopInfo:i,stopLabel:o.stopLabel,stopStatus:o.stopStatus,stopStatusID:o.stopStatusID,arrivingLine:p,departureLine:h,nextArrivalLine:u,prevDepartureLine:c}}const Nt=bg("store",{state:()=>({apiData:{},stationList:[],trainList:[],sceneryData:[],lastDispatcherStatuses:[],region:{id:"eu",value:"PL1"},trainCount:0,stationCount:0,webSocket:void 0,dispatcherStatsName:"",dispatcherStatsData:void 0,driverStatsName:"",driverStatsData:void 0,driverStatsStatus:X.Initialized,chosenModalTrainId:void 0,dataStatuses:{connection:X.Loading,sceneries:X.Loading,timetables:X.Loading,dispatchers:X.Loading,trains:X.Loading},currentStatsTab:"daily",blockScroll:!1,listenerLaunched:!1}),actions:{setTrainsOnlineData(){const{trains:e}=this.apiData;if(!e)return[];this.trainList=e.filter(t=>t.region===this.region.id&&(t.online||t.timetable||t.lastSeen>Date.now()-18e4)).map(t=>{const n=t.stockString.split(";"),s=n?n[0]:t.stockString,r=t.timetable;return{trainId:t.driverName+t.trainNo.toString(),trainNo:t.trainNo,mass:t.mass,length:t.length,speed:t.speed,region:t.region,distance:t.distance,signal:t.signal,online:t.online,driverId:t.driverId,driverName:t.driverName,currentStationName:t.currentStationName,currentStationHash:t.currentStationHash,connectedTrack:t.connectedTrack,locoType:s,locoURL:a_(s),cars:n.slice(1),lastSeen:t.lastSeen,isTimeout:t.isTimeout,isSupporter:t.driverIsSupporter,timetableData:r?{timetableId:r.timetableId,SKR:r.SKR,TWR:r.TWR,route:r.route,category:r.category,followingStops:r.stopList,routeDistance:r.stopList[r.stopList.length-1].stopDistance,sceneries:r.sceneries}:void 0}})},getDispatcherStatus(e){const{dispatchers:t}=this.apiData,n=this.lastDispatcherStatuses.find(o=>o.hash===e.stationHash),s=t?t.find(o=>o[0]==e.stationHash&&o[1]==this.region.id)||-1:void 0,r=n&&!t?n.statusTimestamp:c_(s),i=n&&!t?n.statusID:l_(s);return{hash:e.stationHash,statusID:i,statusTimestamp:r}},getScheduledTrains(e,t){const n=t.stationName.toLowerCase();return e==null||e.checkpoints.forEach(s=>s.scheduledTrains.length=0),this.trainList.reduce((s,r)=>{if(!r.timetableData)return s;const i=r.timetableData;if(!i.sceneries.includes(t.stationHash))return s;const o=i.followingStops.findIndex(l=>{const c=l.stopNameRAW.toLowerCase();return!!(n===c||c.includes(n)&&!l.stopName.includes("po.")&&!l.stopName.includes("podg.")||n.includes(c)&&!l.stopName.includes("po.")&&!l.stopName.includes("podg.")||c.includes("podg.")&&c.split(", podg.")[0]&&n.includes(c.split(", podg.")[0])||e&&e.checkpoints&&e.checkpoints.length>0&&e.checkpoints.some(u=>u.checkpointName.toLowerCase().includes(l.stopNameRAW.toLowerCase())))});if(o==-1)return s;const a=xa(r,o,t.stationName);if(e!=null&&e.checkpoints)for(const l of e.checkpoints){const c=i.followingStops.findIndex(h=>h.stopNameRAW.toLowerCase()==l.checkpointName.toLowerCase());if(c==-1)continue;const u=xa(r,c,t.stationName);l.scheduledTrains.push(u)}return s.push(a),s},[])},getStationTrains(e){return this.trainList.filter(t=>(t==null?void 0:t.region)===this.region.id&&t.online&&t.currentStationName===e.stationName).map(t=>({driverName:t.driverName,driverId:t.driverId,trainNo:t.trainNo,trainId:t.trainId}))},setStationsOnlineInfo(){var n;const e=[],t=[];(n=this.apiData.stations)==null||n.forEach(s=>{if(s.region!==this.region.id||!s.isOnline)return;const r=this.stationList.find(c=>c.name===s.stationName);e.push(s.stationName);const i=this.getDispatcherStatus(s);t.push(i);const o=this.getStationTrains(s),a=this.getScheduledTrains(r==null?void 0:r.generalInfo,s),l={name:s.stationName,hash:s.stationHash,region:s.region,maxUsers:s.maxUsers,currentUsers:s.currentUsers,spawns:u_(s.spawnString),dispatcherName:s.dispatcherName,dispatcherRate:s.dispatcherRate,dispatcherId:s.dispatcherId,dispatcherExp:s.dispatcherExp,dispatcherIsSupporter:s.dispatcherIsSupporter,stationTrains:o,statusTimestamp:i.statusTimestamp,statusID:i.statusID,scheduledTrains:a};if(!r){this.stationList.push({name:s.stationName,onlineInfo:l});return}r.onlineInfo={...l},this.stationList.filter(c=>!e.includes(c.name)&&c.onlineInfo).forEach(c=>{c.onlineInfo=void 0})}),this.apiData.dispatchers!=null&&(this.lastDispatcherStatuses=t)},async fetchStationsGeneralInfo(){const e=await(await ct.get(`${kt.stacjownikAPI}/api/getSceneries?timestamp=${Math.floor(Date.now()/18e5)}`)).data;if(!e){this.dataStatuses.sceneries=X.Error;return}this.stationList=e.map(t=>{var n,s;return{name:t.name,generalInfo:{...t,authors:(n=t.authors)==null?void 0:n.split(",").map(r=>r.trim()),routes:((s=t.routes)==null?void 0:s.split(";").filter(r=>r).reduce((r,i)=>{const o=i.split("_")[0],a=o.startsWith("!"),l=a?o.replace("!",""):o,c=i.split("_")[1].split(""),u=c[0]=="2",h=c[1]=="E",p=c[2]=="S",b=!!c[3],E=u?h?"twoWayCatenaryRouteNames":"twoWayNoCatenaryRouteNames":h?"oneWayCatenaryRouteNames":"oneWayNoCatenaryRouteNames";return r[u?"twoWay":"oneWay"].push({name:l,SBL:p,TWB:b,catenary:h,isInternal:a,tracks:u?2:1}),a||r[E].push(l),p&&r.sblRouteNames.push(l),r},{oneWay:[],twoWay:[],sblRouteNames:[],oneWayCatenaryRouteNames:[],oneWayNoCatenaryRouteNames:[],twoWayCatenaryRouteNames:[],twoWayNoCatenaryRouteNames:[]}))||{},checkpoints:t.checkpoints?t.checkpoints.split(";").map(r=>({checkpointName:r,scheduledTrains:[]})):[]}}})},connectToWebsocket(){const e=ur(kt.stacjownikAPI,{transports:["websocket","polling"],rememberUpgrade:!0,reconnection:!0,timeout:1e4});e.on("connect_error",t=>{this.dataStatuses.connection=X.Error,this.webSocket=void 0}),e.on("UPDATE",t=>{this.apiData=t,this.dataStatuses.connection=X.Loaded,this.setOnlineData()}),e.emit("FETCH_DATA",{},t=>{this.apiData=t,this.setOnlineData()}),this.webSocket=e},async connectToAPI(){await this.fetchStationsGeneralInfo(),this.connectToWebsocket()},async changeRegion(e){this.region=e,await this.setOnlineData()},async setOnlineData(){if(!this.apiData.stations){this.dataStatuses.sceneries=X.Error,this.dataStatuses.trains=X.Error,this.dataStatuses.dispatchers=X.Error;return}this.dataStatuses.sceneries=X.Loaded,this.dataStatuses.trains=this.apiData.trains?X.Loaded:X.Warning,this.dataStatuses.dispatchers=this.apiData.dispatchers?X.Loaded:X.Warning,this.setTrainsOnlineData(),this.setStationsOnlineInfo()}}}),d_=Ae({data(){return{tooltipActive:!1,indicator:{status:X.Loading,message:"data-status.S3"},greenLight:!1,greenBlinkLight:!1,redTopLight:!1,orangeLight:!1,redBottomLight:!1}},mounted(){this.setSignalStatus(X.Loading)},setup(){return{dataStatus:Nt().dataStatuses}},watch:{dataStatus:{deep:!0,handler(e){const t=e.connection,n=e.sceneries,s=e.trains,r=e.dispatchers;if(t==X.Error){this.setSignalStatus(t),this.indicator.status=t,this.indicator.message="data-status.S1a-connection";return}if(n==X.Error){this.setSignalStatus(n),this.indicator.status=n,this.indicator.message="data-status.S1a-sceneries";return}if(s==X.Warning){this.setSignalStatus(s),this.indicator.status=s,this.indicator.message="data-status.S5-trains";return}if(r==X.Warning){this.setSignalStatus(r),this.indicator.status=r,this.indicator.message="data-status.S5-dispatchers";return}n==X.Loaded&&(this.setSignalStatus(X.Loaded),this.indicator.status=X.Loaded,this.indicator.message="data-status.S2")}}},methods:{setSignalStatus(e){this.greenLight=!1,this.greenBlinkLight=!1,this.redTopLight=!1,this.orangeLight=!1,this.redBottomLight=!1,e==X.Loaded&&(this.greenLight=!0),e==X.Warning&&(this.orangeLight=!0),e==X.Error&&(this.redTopLight=!0,this.redBottomLight=!0),e==X.Loading&&(this.greenBlinkLight=!0)}}});const Dn=e=>(In("data-v-3d31a48c"),e=e(),Rn(),e),h_={class:"status-indicator"},p_={class:"indicator-content"},m_={id:"status-signal-icon"},g_=Ou('',6),__={key:0,filter:"url(#filter0_d_843_28)"},y_=Dn(()=>y("circle",{cx:"15",cy:"17",r:"7",fill:"#00FF0A"},null,-1)),b_=[y_],v_={key:1,filter:"url(#filter0_d_843_28)"},S_=Dn(()=>y("circle",{cx:"15",cy:"17",r:"7",fill:"#00FF0A"},null,-1)),E_=Dn(()=>y("animate",{attributeType:"XML",attributeName:"opacity",values:"1;0;1",dur:"1s",repeatCount:"indefinite"},null,-1)),w_=[S_,E_],T_={key:2,filter:"url(#filter1_d_843_28)"},A_=Dn(()=>y("circle",{cx:"15",cy:"36",r:"7",fill:"#F40000"},null,-1)),k_=[A_],L_={key:3,filter:"url(#filter2_d_843_28)"},N_=Dn(()=>y("circle",{cx:"15",cy:"55",r:"7",fill:"#FFB800"},null,-1)),C_=[N_],O_={key:4,filter:"url(#filter3_d_843_28)"},I_=Dn(()=>y("circle",{cx:"15",cy:"74",r:"7",fill:"#F40000"},null,-1)),R_=Dn(()=>y("animate",{attributeType:"XML",attributeName:"opacity",values:"1;0;1",dur:"1s",repeatCount:"indefinite"},null,-1)),D_=[I_,R_],$_=Ou('',1),P_=["innerHTML"];function F_(e,t,n,s,r,i){return O(),R("div",h_,[y("div",p_,[(O(),R("svg",{width:"31",viewBox:"0 0 31 120",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"indicator-svg",onMouseenter:t[0]||(t[0]=()=>e.tooltipActive=!0),onMouseleave:t[1]||(t[1]=()=>e.tooltipActive=!1)},[y("g",m_,[g_,e.greenLight?(O(),R("g",__,b_)):Q("",!0),e.greenBlinkLight?(O(),R("g",v_,w_)):Q("",!0),e.redTopLight?(O(),R("g",T_,k_)):Q("",!0),e.orangeLight?(O(),R("g",L_,C_)):Q("",!0),e.redBottomLight?(O(),R("g",O_,D_)):Q("",!0)]),$_],32)),se(is,{name:"tooltip-anim"},{default:je(()=>[e.tooltipActive?(O(),R("div",{key:0,innerHTML:e.$t(e.indicator.message),class:"indicator-tooltip"},null,8,P_)):Q("",!0)]),_:1})])])}const kf=Fe(d_,[["render",F_],["__scopeId","data-v-3d31a48c"]]),Ha="/assets/icon-2way-block-49d93818.svg",Va="/assets/icon-SBL-f943063d.svg",Wa="/assets/icon-SUP-b8f884de.svg",za="/assets/icon-abandoned-011b110f.svg",Ka="/assets/icon-arrow-asc-21e93faf.svg",Ya="/assets/icon-arrow-desc-fb0d9f71.svg",Ga="/assets/icon-back-c17da045.svg",qa="/assets/icon-clock-dafa8bf3.svg",Ja="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAGKklEQVR4nO2afYgVVRTAfz6WRUREtkVsV3ZIQnQz0VjXWFO4lin0wWaGmpiBxDoYfVAgEiUVkWIhFTlaFKWQVn7RB22UTpiI0Zdsi4SYNWYlYrIsyyLL49Ef5759857z5t33Zp67bvODZXl37px7zpn7ee6BhISEhISEhP8ro6ohVNleCmgA+l3HuhRRVh0wFjjnOlYmDv381MQhRNleDTAfWAS0ATMRpfcCD0QUvwNYClxWttcNHAW+BA67jjUQUXY0ByjbuwV4RCtY73t0AdgPHIoiX/M5kAbuBFr03xNAj7K9vcAO17F+qFR4RUNA2d5iYAPy1bP0Ax8B7wNHCrurHhYTEUeNA8YAtfrxgH6/F7gInA94vwZYAKxCHD7a9/go8JLrWJ3l2lKWA5TttQBbgdt8xT3A68AbrmNd1PXqdZ05wAxgKtCEeY9LA2eBX4Eu4DvgaIH8tcCTQJ3vvW+Ap1zH+snUJiMHKNsbC2zWjaZ0cQbYDmx0Heuisr0ZyHi/GzE6FSQrAhnEGZ8BH7uO1aVsbzzwLPAYOedmgG3ABtex+koJLekAZXtTgC+Ayb7i08Bq4CTwMLAGmG5qSUx0A+8A72nddgHNvuengbtcxzoVJsTkK71NvvF7gPuBlcCfyJC42saj29yqdVgDLAN2+p7fiOgeSmgPULbXDhzQPzO6gRpgOTEtoTGSRj7OANIrsx/3PtexDhZ7qagD9Kz9C7lu1YPM3nGP7bjJIKvJeP37JHBzsU1UmDHt5I+p8SXqDxdS5IwHsaE9rHIx1sel0TCgqC2BDlC2dyvQWjV1rj6t2qYrKNYD7CoqM1QE2nTFJKg3F38hW9WRRD/Q6DpWj78wqAcsZeQZD2LT0sLCIAesrL4uQ8aKwoK8IaBsbwLwD9fGclcJGeB617EuZAsKDb03oGwkkUJszCvwc8/V02XIyLNxcAgo26sF/kVCWSOZPuC6bDjN3wPaiMf4D4CFwA3AXCRYUknsbkC/O1fLWqhlR2UsYiuQf6JTEQWngVWuY+3xlf0BHFO2txsJZI4zlNULLHId63iBrK+V7X2KnP2jnEYVEj3K6wHzA6uas6nA+EG0IR1lyOooMN4vaw+wqQL9/AzamoLBgGOUvX8vEjIrila820BWdzFH+tis26yUVm3zYA+YTrTd32GT+BvwSRx1dFuHDWQVYww6ipV1QEsEYSDxNxN+i6lOOW0WowVyDpgVUZjphGRSL05ZYcyC/CEQBdP3b4qpTjlthr6fdUBzSEUT5ivbawiroDdaV5zGAlii64bJaiD6qtUMkNK3r/UlKpeiFthSos7TyI1xKSbpumFsIXetVin1yvbqRinba0WunuLgFeRGJu0vVLa3FngT84NWBljnOtb2Ajk1wMuUdpApc0Yp21sO7I5JIEgYehcySzcgFxZtoW8U5xjwIfA3ctGxiujD1c+KGuTSMk6aka8UB21U7jwTmlJAYxUbGO40ZlNZSpEuXWXYYaJzQwqzFSB7T3+t0IXoXIp6UwdMRya1Z5CAwnClD9HxFGYbpfoU5qeqJcA8YDbwLsNrWKQRnWYjOppsuAB6U8gydcbwhcXAPmQjMg14C7lwGCr6tQ7TtE77EB1NOAMsS7mOdQ7xmslZHWSZ+xG4A7luagTWAceRDUy1yei21iE3PR1al+8x3yN0A/NcxzrnD4qOQzK8il4lB3AEeNx1rBNaxiTkC9yOrN9x7THOIpuiQ0Cn/mgo25sJvEZ554KDwGrXsXoh+G7wUWQjYxogzSCZGS+6jpU38+qLlhnAFCSw2QBMQO7vR5M70qaBy0gSxgVk5/c7Mpl1+S8ytNypyGT3IObb6z5gvetY2/yFgRkiyvaagFeRia+c/XsnktnZGUcWZ4FOtUjv6tD/y9FrP5I+d7bwYakcoRYkuaAd8wDEeWCW61jnDesboWxvIvAzkmxpQhrp7pvDMklN8wSbgIeQFSNsfc0AC13HihKvC9NjAfAV4V+/GzlA7Qz64oWUnSqrbG8ykrI6D0mKnkIubXWj61gvlCuzzPafA57XPy8j88QJ4FskOGu6pAMxpMv7coDrgJPVSGkPaK8ZuERATnFCQkJCQkJCgin/Ab2LpunaQt5yAAAAAElFTkSuQmCC",Za="/assets/icon-dispatcher-94dba826.svg",Xa="/assets/icon-dolar-2ed22951.svg",Qa="/assets/icon-dollar-a64fa067.svg",el="/assets/icon-en-eb636c9f.jpg",tl="/assets/icon-error-4059b271.svg",nl="/assets/icon-exit-775007bd.svg",sl="/assets/icon-filter2-983b991b.svg",rl="/assets/icon-historyczna-50a241b3.svg",il="/assets/icon-kształtowa-c4ec9301.svg",ol="/assets/icon-legend-e5d9657a.svg",al="/assets/icon-length-de026784.svg",ll="/assets/icon-like-6ad5d073.svg",cl="/assets/icon-lock-02753ec3.svg",ul="/assets/icon-mass-49ddddee.svg",fl="/assets/icon-mieszana-ac1c6cc4.svg",dl="/assets/icon-offline-db86369f.svg",hl="/assets/icon-paypal-0f29d722.svg",pl="/assets/icon-dispatcher-94dba826.svg",ml="/assets/icon-pl-80df7d22.svg",gl="/assets/icon-point-1600e4d1.svg",_l="/assets/icon-real-b3b507f3.svg",yl="/assets/icon-route-02b20c34.svg",bl="/assets/icon-scenery-d5858ec4.svg",vl="/assets/icon-schedule-746a6c5a.svg",Sl="/assets/icon-search-0af70534.svg",El="/assets/icon-select-50e2c950.svg",wl="/assets/icon-signal-1a613006.svg",Tl="/assets/icon-sort-f67e54cf.svg",Al="/assets/icon-spawn-afd1a9d3.svg",kl="/assets/icon-speed-9af526de.svg",Ll="/assets/icon-stats-4ced322d.svg",Nl="/assets/icon-td2-307f2ba1.svg",Cl="/assets/icon-timetable-7819413a.svg",Ol="/assets/icon-train-a8fa003d.svg",Il="/assets/icon-unavailable-5ef4034d.svg",Rl="/assets/icon-unknown-805a2650.svg",Dl="/assets/icon-user-bba7ef0f.svg",$l="/assets/icon-view-84b12121.svg",Pl="/assets/icon-warning-04405453.svg",Fl="/assets/icon-historyczna-50a241b3.svg",M_="/assets/signal-status-indicator-54332b72.svg",B_="/assets/stacjownik-header-logo-e3348deb.svg",U_="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAAAlCAYAAAAHgqbCAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAiWSURBVHja7Jx/bBPnGcc/ts92aKNAmjSJQmBbUiVAtpXOSTXRadOGWTttiP1BMiGhStsfRFu1SdNU2UNaq3ZqdaZbu59sidStdEVrm4otg6lSQJXQmgiGUzIYUzYlXgEDFpDYFBIS49j7w88djnESJzjxbN6vZPl8d7nLPe/7eX6dfRaPx0OaalBSuoel63rIWNbStj0KHFcmUrrHZZkNkBDwM1neAHxZ2UrpHtEbwNX0lemAnAO+L8tPKkCWXiMjIxw7doxgMHg7x62poa6ujqamJurq6pSRlkcv6bp+aj5AlJZJwWCQo0ePzgDDDOOhEKFQCL/fT0tLC5s3b1YGy5OsygT5gWP//v0Eg0Hq6+vRdZ1EImG+/H4/RvPE7/fT09NDIpFQhlOAFL+uX7/OgQMHAPB4PIyMjJDeSXS5XOi6jt/vp7y8nKGhIU6cOEE8HlegKECKW729vdy8eZO2tjZ0XZ9zX5fLRWdnJwAnT55kcnKSeDxOPB5XhlSAFJ9u3LjB8PAw5eXl5sQHOHLkCA0NDVgsFlpaWhgYGDC3tbW14Xa7iUQinD17llgspiD5PwCkBXhMmSf3tQeA2+2mvLwcgHA4THt7O4FAAICBgQE6OjruiCQAFy9eJBqNMj09bdYrSjlT1UIAeQHoUzbLrUKh0IwJD9DV1UU4HKa2tpZt27aZkKSqvr4egEgkwtTUFLdu3TIhUcqZNmVaqdq8y6g1a9Zw/PhxvF4v4XAYt9ttwlBbW8vo6CiAGV0MhcPhpDezWpmamkLTNDRNU4CoGqS41NDQwPbt2wHw+Xxs2bKF7u5unE4npaWlnD592qw7UmVAVFpaSjQaNSOI6motvVQEyQMkO3bsIBAIEAwGqayspLq6mr6+PsbHx2d0rgACgQDd3d3Y7XbKysqYnp424VBSgBSlVq9eTVVVFVNTU0xOTnLw4EHGx8dxu90cPnx4xr7t7e0AVFRU4HA4zKihinSVYhWtLBYLFosFm83GpUuXGB0dxeVyzYAjHA6bLd+ysjIaGxtn/K3FYlGGVIAUseGtVjRN48qVK3fUHQMDAyYcq1atYv369djtdjRNw2azYbVaFSQqxSruCGKz2QCIRqPAzM6V1+slEAhQVVXFhg0bTDDsdntGUJQUIEUHCGBO8nQZNw2bm5ux2+0A2O12HA4HDocDu92OzWZTcKgUq7ghsVqtrF27FoCOjg4zbQoEAlRUVLBixQqsVisOh4OSkhJKSkpwOp1omqaihwLk3tbY2BgTExMz4CgpKcHhcChAFCD3js6fPw9AZ2en2brdtWsXiUSCa9eu4XA4cDqdOJ1OEw6VXuUfkB5lmvzLZrOZYKTXHgqQnOtiNkV6C7d/h/5FZbP8A6Jpmtm5slqtKrVaOtV4vd7dALquv2jWih6P5zngGWWf/OjMmTMcOnQoYxG/detWKisrZ0QQTVONx+WUsnae1dzcTCKRYHBwkAsXLgBQXV1Na2srK1euvAMapfwDEgf+A5QBtWnbQkBEltelbRsGHgKGpLZplLyutoDtMyTvq1Kuu5Lk85M+DnwoNnxIbFOzWEiampqIxWJEo1Gi0SixWCz1ayVTiUTinIxNNl/AWreIa0xXI4XTxBlK+Z8/kvEyFADqM4xnTYYaJAasTQfkD9z+cVSvvO8EnpMB+QWwDxgk+aury8BG4JfA54CfyIB8Dfg7MCbHbSwgOJ4HnpVlowb7IfAq0AHsBx4WON6Xzxtlvx8DXwV83MVjWw0YrFYro6Oju3t6ev66c+fOzn379j0JjAMTwE0gmgmSlAc/rANOZ5kdXAZ+DfiBT8p4PS8T6Kw4yULQh8BnZP4+IXPwJdnWCpQCvwPeEmf2DvBZ4D6gU9Z9xXgultfrXWeAYsnwbF7SPOVbwJ/EY5YD/wb+JSfwCESFHCXMOZr2+Y8SFVpkEr0JfA/4uWw/BTwlXgfgFfG4DnEUv8/gkfdlOG9XIpEY3LNnz6uAE1gBlBgTfNOmTQ/29/cPA5MCR2weQB6Qcx2b41q9wG9JPj2zP8UxGA7yCeDdIhhTj0SGTwGXZN3bsu4ZGdOrQKOu68cWWoNczbBuREg0QtcjwG8k/TgoJBaihjOs+ynwtETKtzNsLwO+lPL5nLz/DfjVLPvfIZ/P1yFw2mTyTwLTMjYJ+a6WAUY2PwIZmwcOJOrvAj4mgOwGXkyzx6SAWoi6KlH9I8ls+oC/ZNpR1/U57ZVtkd5L8qHW30gLz69IhPlnAcPxZ+C7Gdb7Sd4PSoXjTUmxjHx2ItuT+Hy+Xo/H45rDCcWBW/IeMyKa3++/LuumF1CDzKcYsFdSwhoBJt1hfELS7Crg6wU2pmXA54H1wH9ngyOrtGKOFMsAqFvytHczpCGGDgPuAjNiP/M/ucUh3vuu5fP5sk3xLCkvBIhEChgZAZlnHO9Ga4F/pBW+haCHpRSIzbL9vtTx1XU9o7ObrUuxU7xZGDghRc5cPcYfzfGPLMSrxTJ01N6Rc/fnyHBR4GWye6xRdBkH1IDAiBaGPVIjRz5+QnhOas/eHIyxoccAl0TgWIZ5cLd6T2rEuY41AUR0XZ+YDY65Uqw35LWQSRcRL6MtYsK2ygXNZ1Qf8C1pICxETwGvLSQlynm1uHQefrn0eMryp6WQf2GB4z0BfDvF2d0/x77fkebIYlOsUuDG3V50rvrcHwAPAnbx9t/McjIGpHNzKtt5Jud5JKUozmZg9+YTjiLUKWCP2PbyAqLQ/cDrWZ5jr4x3thHl2ZTUtDUXcOQSkHS9BnxBwJmty9AFNCzy+INAsxSXwVn26RJge9V8XjK9J6nSB9y+kZoO0uMku2WRRRx/j4zhy9IISteYjLOL5P2bnGspv2ril38ckn1549GO7+fo+DdItmGflmLr0RwfXyk7BVPG+QGS91aGSd5DypV+IO8bJXVCgIks9cX9bwCnB89gKP8RhQAAAABJRU5ErkJggg==",Ct=Ae({methods:{getIcon(e,t="svg"){return new URL(Object.assign({"../assets/icon-2way-block.svg":Ha,"../assets/icon-SBL.svg":Va,"../assets/icon-SUP.svg":Wa,"../assets/icon-abandoned.svg":za,"../assets/icon-arrow-asc.svg":Ka,"../assets/icon-arrow-desc.svg":Ya,"../assets/icon-back.svg":Ga,"../assets/icon-clock.svg":qa,"../assets/icon-discord.png":Ja,"../assets/icon-dispatcher.svg":Za,"../assets/icon-dolar.svg":Xa,"../assets/icon-dollar.svg":Qa,"../assets/icon-en.jpg":el,"../assets/icon-error.svg":tl,"../assets/icon-exit.svg":nl,"../assets/icon-filter2.svg":sl,"../assets/icon-historyczna.svg":rl,"../assets/icon-kształtowa.svg":il,"../assets/icon-legend.svg":ol,"../assets/icon-length.svg":al,"../assets/icon-like.svg":ll,"../assets/icon-lock.svg":cl,"../assets/icon-mass.svg":ul,"../assets/icon-mieszana.svg":fl,"../assets/icon-offline.svg":dl,"../assets/icon-paypal.svg":hl,"../assets/icon-person.svg":pl,"../assets/icon-pl.svg":ml,"../assets/icon-point.svg":gl,"../assets/icon-real.svg":_l,"../assets/icon-route.svg":yl,"../assets/icon-scenery.svg":bl,"../assets/icon-schedule.svg":vl,"../assets/icon-search.svg":Sl,"../assets/icon-select.svg":El,"../assets/icon-signal.svg":wl,"../assets/icon-sort.svg":Tl,"../assets/icon-spawn.svg":Al,"../assets/icon-speed.svg":kl,"../assets/icon-stats.svg":Ll,"../assets/icon-td2.svg":Nl,"../assets/icon-timetable.svg":Cl,"../assets/icon-train.svg":Ol,"../assets/icon-unavailable.svg":Il,"../assets/icon-unknown.svg":Rl,"../assets/icon-user.svg":Dl,"../assets/icon-view.svg":$l,"../assets/icon-warning.svg":Pl,"../assets/icon-współczesna.svg":Fl})[`../assets/icon-${e}.${t}`],self.location).href},getImage(e){return new URL(Object.assign({"../assets/icon-2way-block.svg":Ha,"../assets/icon-SBL.svg":Va,"../assets/icon-SUP.svg":Wa,"../assets/icon-abandoned.svg":za,"../assets/icon-arrow-asc.svg":Ka,"../assets/icon-arrow-desc.svg":Ya,"../assets/icon-back.svg":Ga,"../assets/icon-clock.svg":qa,"../assets/icon-discord.png":Ja,"../assets/icon-dispatcher.svg":Za,"../assets/icon-dolar.svg":Xa,"../assets/icon-dollar.svg":Qa,"../assets/icon-en.jpg":el,"../assets/icon-error.svg":tl,"../assets/icon-exit.svg":nl,"../assets/icon-filter2.svg":sl,"../assets/icon-historyczna.svg":rl,"../assets/icon-kształtowa.svg":il,"../assets/icon-legend.svg":ol,"../assets/icon-length.svg":al,"../assets/icon-like.svg":ll,"../assets/icon-lock.svg":cl,"../assets/icon-mass.svg":ul,"../assets/icon-mieszana.svg":fl,"../assets/icon-offline.svg":dl,"../assets/icon-paypal.svg":hl,"../assets/icon-person.svg":pl,"../assets/icon-pl.svg":ml,"../assets/icon-point.svg":gl,"../assets/icon-real.svg":_l,"../assets/icon-route.svg":yl,"../assets/icon-scenery.svg":bl,"../assets/icon-schedule.svg":vl,"../assets/icon-search.svg":Sl,"../assets/icon-select.svg":El,"../assets/icon-signal.svg":wl,"../assets/icon-sort.svg":Tl,"../assets/icon-spawn.svg":Al,"../assets/icon-speed.svg":kl,"../assets/icon-stats.svg":Ll,"../assets/icon-td2.svg":Nl,"../assets/icon-timetable.svg":Cl,"../assets/icon-train.svg":Ol,"../assets/icon-unavailable.svg":Il,"../assets/icon-unknown.svg":Rl,"../assets/icon-user.svg":Dl,"../assets/icon-view.svg":$l,"../assets/icon-warning.svg":Pl,"../assets/icon-współczesna.svg":Fl,"../assets/signal-status-indicator.svg":M_,"../assets/stacjownik-header-logo.svg":B_,"../assets/unknown.png":U_})[`../assets/${e}`],self.location).href}}}),j_=Ae({emits:["selected"],mixins:[Ct],props:{itemList:{type:Array,required:!0},defaultItemIndex:{type:Number,default:0},prefix:{type:String,default:""}},setup(e){let t=Se(null),n=Se(null),s=Se(document.activeElement),r=Se(!1),i=Se(e.itemList[e.defaultItemIndex]);return{computedSelectedItem:Te(()=>e.itemList.find(a=>a.id===i.value.id)||e.itemList[e.defaultItemIndex]),listOpen:r,selectedItem:i,listRef:t,buttonRef:n,activeEl:s}},methods:{selectOption(e){this.selectedItem=e,this.listOpen=!1,this.$emit("selected",e)},toggleBox(e){this.listOpen=!this.listOpen,this.listOpen||e.target.blur()},clickedOutside(){var e;this.listOpen=!1,(e=this.buttonRef)==null||e.blur()}}});const x_={class:"select-box"},H_={class:"select-box_content"},V_=["for"],W_=["id","onClick"],z_=["innerHTML"],K_={class:"arrow"},Y_=["src"];function G_(e,t,n,s,r,i){return O(),R("div",x_,[y("div",H_,[y("button",{class:"selected",onClick:t[0]||(t[0]=(...o)=>e.toggleBox&&e.toggleBox(...o))},[y("span",null,N(e.computedSelectedItem.selectedValue||e.computedSelectedItem.value),1)]),y("ul",{class:"options",ref:o=>e.listRef=o},[(O(!0),R(Le,null,nt(e.itemList,(o,a)=>(O(),R("li",{class:"option",key:o.id},[se(is,{name:"unfold",style:zn(` - --delay-in: ${a*55}ms; - --delay-out: ${(e.itemList.length-1-a)*55}ms`)},{default:je(()=>[e.listOpen?(O(),R("label",{key:0,for:o.id},[y("input",{type:"button",id:o.id,name:"select-box",onClick:l=>e.selectOption(o)},null,8,W_),y("span",{style:zn(e.computedSelectedItem.id==o.id?"color: gold;":""),innerHTML:o.value},null,12,z_)],8,V_)):Q("",!0)]),_:2},1032,["style"])]))),128))],512)]),y("div",K_,[y("img",{src:e.listOpen?e.getIcon("arrow-asc"):e.getIcon("arrow-desc"),alt:"arrow-icon"},null,8,Y_)])])}const Eo=Fe(j_,[["render",G_],["__scopeId","data-v-0aaa9c28"]]),wo=Ae({data(){return{store:Nt()}},computed:{chosenTrain(){return this.store.trainList.find(e=>e.trainId==this.store.chosenModalTrainId)}},methods:{selectModalTrain(e){this.store.chosenModalTrainId=e,document.body.classList.add("no-scroll")},closeModal(){this.store.chosenModalTrainId=void 0,setTimeout(()=>{document.body.classList.remove("no-scroll")},150)}}}),Lf=Ae({mixins:[Ct],data:()=>({STATS:{main:[{name:"speed",unit:"km/h"},{name:"length",unit:"m"},{name:"mass",unit:"t",multiplier:.001}],position:[{name:"scenery",prop:"currentStationName"},{name:"route",prop:"connectedTrack"},{name:"signal",prop:"signal"},{name:"distance",prop:"distance",unit:"m"}]}}),methods:{lastSeenMessage(e){const t=Date.now()-e,n=Math.floor(t/6e4);return n<1?this.$t("trains.last-seen-now"):n<2?this.$t("trains.last-seen-min"):this.$t("trains.last-seen-ago",{minutes:n})},displayTrainPosition(e){let t="";return t+=this.$t("trains.current-scenery")+" ",e.currentStationHash?t+=e.currentStationName+" ":t+=e.currentStationName.replace(/.[a-zA-Z0-9]+.sc/,"")+" (offline) ",e.signal&&(t+=this.$t("trains.current-signal")+" "+e.signal+" "),e.connectedTrack&&(t+=this.$t("trains.current-track")+" "+e.connectedTrack+" "),e.distance&&(t+=`(${this.displayDistance(e.distance)})`),t.charAt(0).toUpperCase()+t.slice(1)},displayStopList(e){return e?e.reduce((t,n,s)=>(n.stopType.includes("ph")&&!n.stopNameRAW.includes("po.")?t.push(`${n.stopName}`):s>0&&s${n.stopName}`),t),[]).join(" > "):""},currentDistance(e){var t;return((t=e.filter(n=>n.confirmed).slice(-1)[0])==null?void 0:t.stopDistance)||0},confirmedPercentage(e){return Number((e.filter(t=>t.confirmed).length/e.length*100).toFixed(0))},currentDelay(e){var n;const t=((n=e.find((s,r)=>r==0&&!s.confirmed||r>0&&e[r-1].confirmed&&!s.confirmed))==null?void 0:n.departureDelay)||0;return t>0?`${this.$t("trains.delayed")} ${t} min`:t<0?`${this.$t("trains.preponed")} ${t} min`:this.$t("trains.on-time")},displayLocoInfo(e){return e.includes("EN")?`${this.$t("trains.EZT")}`:e.includes("SN")?`${this.$t("trains.SZT")}`:e.startsWith("E")?`${this.$t("trains.loco-electric")}`:e.startsWith("S")?`${this.$t("trains.loco-diesel")}`:""},getSceneriesWithComments(e){const t=(e==null?void 0:e.followingStops.reduce((s,r,i)=>(r.comments&&s.push(r.stopNameRAW),s),[]))||[],n=t.length-10;return t.slice(0,10).join(", ")+(n>0?`... (+${n})`:"")},displayDistance(e){return e<1e3?`${e}m`:`${(e/1e3).toPrecision(2)}km`},onImageError(e){const t=e.target;t.src=this.getImage("unknown.png")}}}),q_=Ae({props:{train:{type:Object,required:!0},extended:{type:Boolean,default:!0}},mixins:[Lf,Ct]});const Nf=e=>(In("data-v-92a6c2b3"),e=e(),Rn(),e),J_={class:"train-info",tabindex:"0"},Z_={class:"train-route"},X_={class:"train_general"},Q_={key:0,class:"timetable-id"},ey={class:"timetable_warnings"},ty={key:0,class:"train-badge twr"},ny={key:1,class:"train-badge skr"},sy={key:1,class:"timetable-category"},ry={class:"train-number"},iy=["title"],oy={key:0,class:"timetable_route"},ay=["src","title"],ly=Nf(()=>y("hr",{style:{margin:"0.25em 0"}},null,-1)),cy={key:1,class:"timetable_stops"},uy={key:0},fy=["innerHTML"],dy={key:2,class:"timetable_progress",style:{"margin-top":"0.5em"}},hy={class:"timetable_progress-bar"},py=Nf(()=>y("span",{class:"bar-bg"},null,-1)),my={class:"timetable_progress-distance"},gy={class:"text--primary"},_y=["innerHTML"],yy={class:"train-status-badges"},by={key:0,class:"train-badge offline"},vy={key:1,class:"train-badge offline"},Sy={class:"driver_position text--grayed",style:{"margin-top":"0.25em"}},Ey={class:"train-stats"},wy=["src"],Ty={class:"text--grayed"},Ay={key:0},ky={class:"count"},Ly={key:0};function Ny(e,t,n,s,r,i){var o,a;return O(),R("div",J_,[y("section",Z_,[y("div",X_,[y("span",null,[e.train.timetableData?(O(),R("span",Q_,"#"+N(e.train.timetableData.timetableId),1)):Q("",!0),y("span",ey,[(o=e.train.timetableData)!=null&&o.TWR?(O(),R("span",ty,"TWR")):Q("",!0),(a=e.train.timetableData)!=null&&a.SKR?(O(),R("span",ny,"SKR")):Q("",!0)]),e.train.timetableData?(O(),R("strong",sy,N(e.train.timetableData.category),1)):Q("",!0),y("strong",ry," "+N(e.train.trainNo),1),me(" | "),y("span",{class:it(["train-driver",{supporter:e.train.isSupporter}])},N(e.train.driverName),3),e.train.isTimeout?(O(),R("b",{key:2,class:"warning-timeout",title:e.$t("trains.timeout")},"?",8,iy)):Q("",!0)])]),e.train.timetableData?(O(),R("div",oy,[y("strong",null,N(e.train.timetableData.route.replace("|"," - ")),1),e.getSceneriesWithComments(e.train.timetableData).length>0?(O(),R("img",{key:0,class:"image-warning",src:e.getIcon("warning"),title:`${e.$t("trains.timetable-comments")} (${e.getSceneriesWithComments(e.train.timetableData)})`},null,8,ay)):Q("",!0)])):Q("",!0),ly,e.train.timetableData?(O(),R("div",cy,[e.train.timetableData.followingStops.length>2?(O(),R("span",uy,[me(N(e.$t("trains.via-title"))+" ",1),y("span",{innerHTML:e.displayStopList(e.train.timetableData.followingStops)},null,8,fy)])):Q("",!0)])):Q("",!0),e.train.timetableData?(O(),R("div",dy,[y("span",hy,[py,y("span",{class:"bar-fg",style:zn({width:`${Math.floor(e.confirmedPercentage(e.train.timetableData.followingStops))}%`})},null,4)]),y("span",my,[me("   "+N(e.currentDistance(e.train.timetableData.followingStops))+" km / ",1),y("span",gy,N(e.train.timetableData.routeDistance)+" km ",1),me(" | "),y("span",{innerHTML:e.currentDelay(e.train.timetableData.followingStops)},null,8,_y)]),y("div",yy,[e.train.currentStationHash?Q("",!0):(O(),R("div",by,N(e.$t("trains.scenery-offline")),1)),e.train.online?Q("",!0):(O(),R("div",vy,"Offline "+N(e.lastSeenMessage(e.train.lastSeen)),1))])])):Q("",!0),y("div",Sy,N(e.displayTrainPosition(e.train)),1)]),y("section",Ey,[y("div",null,[y("img",{src:e.train.locoURL,loading:"lazy",alt:"Loco image not found",onError:t[0]||(t[0]=(...l)=>e.onImageError&&e.onImageError(...l))},null,40,wy)]),y("div",Ty,[me(N(e.train.locoType)+" ",1),e.train.cars.length>0?(O(),R("span",Ay,[me("  • "+N(e.$t("trains.cars"))+": ",1),y("span",ky,N(e.train.cars.length),1)])):Q("",!0)]),y("div",null,[(O(!0),R(Le,null,nt(e.STATS.main,(l,c)=>(O(),R("span",{key:l.name},[c>0?(O(),R("span",Ly," • ")):Q("",!0),y("span",null,N(`${~~(e.train[l.name]*(l.multiplier||1))}${l.unit}`),1)]))),128))])])])}const Cy=Fe(q_,[["render",Ny],["__scopeId","data-v-92a6c2b3"]]),Vs=Ae({methods:{localeDate(e,t){return new Date(e).toLocaleDateString(t=="pl"?"pl-PL":"en-GB",{weekday:"long",day:"numeric",month:"2-digit",year:"numeric",hour:"2-digit",minute:"2-digit"})},localeDay(e,t){return new Date(e).toLocaleDateString(t=="pl"?"pl-PL":"en-GB",{day:"numeric",month:"2-digit",year:"numeric"})},localeTime(e,t){return new Date(e).toLocaleTimeString(t=="pl"?"pl-PL":"en-GB",{hour:"2-digit",minute:"2-digit"})},timestampToString(e){return e?new Date(e).toLocaleTimeString("pl-PL",{hour:"2-digit",minute:"2-digit"}):""},calculateDuration(e){const t=Math.round(e/6e4),n=Math.floor(t/60),s=t%60;return t>60?this.$t("journal.hours",{hours:n,minutes:s}):this.$t("journal.minutes",{minutes:t})}}}),Oy=Ae({mixins:[Vs],props:{stop:{type:Object,required:!0}},setup(){return{}}});const Iy={class:"stop-date"},Ry={key:0},Dy={key:1},$y={key:0},Py={key:1};function Fy(e,t,n,s,r,i){return O(),R("span",Iy,[e.stop.beginsHere?Q("",!0):(O(),R("span",{key:0,class:it(["date arrival",{delayed:e.stop.arrivalDelay>0&&e.stop.confirmed,preponed:e.stop.arrivalDelay<0&&e.stop.confirmed,"on-time":e.stop.arrivalDelay==0&&e.stop.confirmed}])},[e.stop.arrivalDelay!=0&&e.stop.confirmed?(O(),R("span",Ry,[y("s",null,N(e.timestampToString(e.stop.arrivalTimestamp)),1),me(" "+N(e.timestampToString(e.stop.arrivalRealTimestamp))+" ("+N(e.stop.arrivalDelay>0?"+":"")+N(e.stop.arrivalDelay)+") ",1)])):(O(),R("span",Dy,N(e.timestampToString(e.stop.arrivalTimestamp)),1))],2)),e.stop.stopTime?(O(),R("span",{key:1,class:it(["date stop",e.stop.stopType.replace(", ","-")])},N(e.stop.stopTime)+" "+N(e.stop.stopType==""?"pt":e.stop.stopType),3)):Q("",!0),!e.stop.terminatesHere&&e.stop.stopTime!=0?(O(),R("span",{key:2,class:it(["date departure",{delayed:e.stop.departureDelay>0&&e.stop.confirmed,preponed:e.stop.departureDelay<0&&e.stop.confirmed}])},[e.stop.departureDelay!=0&&e.stop.confirmed?(O(),R("span",$y,[y("s",null,N(e.timestampToString(e.stop.departureTimestamp)),1),me(" "+N(e.timestampToString(e.stop.departureRealTimestamp))+" ("+N(e.stop.departureDelay>0?"+":"")+N(e.stop.departureDelay)+") ",1)])):(O(),R("span",Py,N(e.timestampToString(e.stop.departureTimestamp)),1))],2)):Q("",!0)])}const My=Fe(Oy,[["render",Fy],["__scopeId","data-v-5c6de354"]]),By=Ae({components:{StopDate:My},props:{train:{type:Object,required:!0}},mixins:[Vs,Ct],emits:["click"],setup(e){return{lastConfirmed:Te(()=>e.train.timetableData.followingStops.findIndex((t,n,s)=>{var r,i;return t.confirmed&&!((r=s[n+1])!=null&&r.confirmed)&&!((i=s[n+1])!=null&&i.stopped)})),activeMinorStops:Te(()=>{const t=e.train.timetableData.followingStops.findIndex((s,r,i)=>{var o;return s.confirmed&&!((o=i[r+1])!=null&&o.confirmed)}),n=[];if(t+1>=e.train.timetableData.followingStops.length)return n;for(let s=t+1;s0,sbl:/sbl/gi.test(e.stopName),[e.stopType.replaceAll(", ","-")]:e.stopType.match(new RegExp("ph|pm|pt"))&&!e.confirmed&&!e.beginsHere,"minor-stop-active":this.activeMinorStops.includes(t),"last-confirmed":t==this.lastConfirmed&&!e.terminatesHere}},onImageError(e){const t=e.target;t.src=this.getImage("unknown.png")}}});const Pr=e=>(In("data-v-d8665452"),e=e(),Rn(),e),Uy={class:"train-stock"},jy={class:"stock-list"},xy=["src"],Hy={key:0},Vy=["src"],Wy={key:1},zy=["src"],Ky={key:2},Yy=["src"],Gy=["src"],qy={key:0,class:"schedule-wrapper"},Jy={class:"stop_list"},Zy={class:"stop_info"},Xy=Pr(()=>y("div",{class:"indicator"},null,-1)),Qy=Pr(()=>y("div",{class:"progress-bar"},null,-1)),eb=Pr(()=>y("div",{class:"stop-bar"},null,-1)),tb={key:0,class:"distance"},nb=["innerHTML"],sb={key:0,class:"stop_line"},rb=Pr(()=>y("div",{class:"progress-bar"},null,-1)),ib={key:0,style:{color:"salmon"}},ob=["innerHTML"],ab={key:1},lb={key:2},cb={key:1,class:"stop_line"},ub={key:0,style:{color:"salmon"}},fb=["innerHTML"];function db(e,t,n,s,r,i){const o=De("StopDate");return O(),R("div",{class:"train-schedule",onClick:t[5]||(t[5]=(...a)=>e.toggleShowState&&e.toggleShowState(...a))},[y("div",Uy,[y("ul",jy,[y("li",null,[y("img",{class:"train-image",src:e.train.locoURL,alt:"loco",onError:t[0]||(t[0]=(...a)=>e.onImageError&&e.onImageError(...a))},null,40,xy),y("div",null,N(e.train.locoType),1)]),e.train.locoType.startsWith("EN")?(O(),R("li",Hy,[y("img",{src:e.train.locoURL.replace("rb","s"),onError:t[1]||(t[1]=(...a)=>e.onImageError&&e.onImageError(...a)),alt:""},null,40,Vy),y("div",null,N(e.train.locoType)+"S",1)])):Q("",!0),e.train.locoType.startsWith("EN71")?(O(),R("li",Wy,[y("img",{src:e.train.locoURL.replace("rb","s"),onError:t[2]||(t[2]=(...a)=>e.onImageError&&e.onImageError(...a)),alt:""},null,40,zy),y("div",null,N(e.train.locoType)+"S",1)])):Q("",!0),e.train.locoType.startsWith("EN")?(O(),R("li",Ky,[y("img",{src:e.train.locoURL.replace("rb","ra"),onError:t[3]||(t[3]=(...a)=>e.onImageError&&e.onImageError(...a)),alt:""},null,40,Yy),y("div",null,N(e.train.locoType)+"RA",1)])):Q("",!0),(O(!0),R(Le,null,nt(e.train.cars,(a,l)=>(O(),R("li",{key:l},[y("img",{src:`https://rj.td2.info.pl/dist/img/thumbnails/${a.split(":")[0]}.png`,onError:t[4]||(t[4]=(...c)=>e.onImageError&&e.onImageError(...c)),alt:"car"},null,40,Gy),y("div",null,N(a.replace(/_/g," ").split(":")[0]),1)]))),128))])]),e.train.timetableData?(O(),R("div",qy,[y("ul",Jy,[(O(!0),R(Le,null,nt(e.train.timetableData.followingStops,(a,l)=>(O(),R("li",{key:l,class:it(["stop",e.addClasses(a,l)])},[y("span",Zy,[Xy,Qy,eb,a.stopDistance?(O(),R("span",tb,N(Math.floor(a.stopDistance)),1)):Q("",!0),y("span",{class:"stop-name",innerHTML:a.stopName},null,8,nb),se(o,{stop:a},null,8,["stop"])]),l{e.focus()})},methods:{handleContentScroll(e){const t=this.$refs.trainInfo.$el.getBoundingClientRect().height,n=e.target.scrollTop;this.isTopBarVisible=n>t}}});const mb={class:"modal_content",ref:"content",tabindex:"0"},gb=["src"];function _b(e,t,n,s,r,i){const o=De("TrainInfo"),a=De("TrainSchedule");return e.chosenTrain?(O(),R("div",{key:0,class:"train-modal",onKeydown:t[2]||(t[2]=$s((...l)=>e.closeModal&&e.closeModal(...l),["esc"]))},[y("div",{class:"modal_background",onClick:t[0]||(t[0]=(...l)=>e.closeModal&&e.closeModal(...l))}),y("div",mb,[y("button",{class:"btn exit",onClick:t[1]||(t[1]=(...l)=>e.closeModal&&e.closeModal(...l))},[y("img",{src:e.getIcon("exit"),alt:"close card"},null,8,gb)]),se(o,{train:e.chosenTrain,extended:!1,ref:"trainInfo"},null,8,["train"]),se(a,{train:e.chosenTrain,tabindex:"0"},null,8,["train"])],512)],32)):Q("",!0)}const yb=Fe(pb,[["render",_b],["__scopeId","data-v-deaf34a4"]]);class Ml{static registerStorage(t){window.localStorage.setItem(t,"1")}static unregisterStorage(t){window.localStorage.removeItem(t)}static isRegistered(t){return!!window.localStorage.getItem(t)}static setBooleanValue(t,n){window.localStorage.setItem(t,n.toString())}static setNumericValue(t,n){window.localStorage.setItem(t,n.toString())}static setStringValue(t,n){window.localStorage.setItem(t,n)}static setValue(t,n){typeof n=="boolean"?this.setBooleanValue(t,n):typeof n=="number"?this.setNumericValue(t,n):typeof n=="string"?this.setStringValue(t,n):this.setStringValue(t,n)}static removeValue(t){window.localStorage.removeItem(t)}static getBooleanValue(t){return window.localStorage.getItem(t)==="true"}static getStringValue(t){return window.localStorage.getItem(t)||""}static getNumericValue(t){const n=window.localStorage.getItem(t);return n?parseInt(n):0}}const bb=[{id:"default",name:"default",iconName:"td2",section:"access",value:!0,defaultValue:!0},{id:"not-default",name:"notDefault",iconName:"",section:"access",value:!0,defaultValue:!0},{id:"real",name:"real",iconName:"lock",section:"access",value:!0,defaultValue:!0},{id:"fictional",name:"fictional",iconName:"user",section:"access",value:!0,defaultValue:!0},{id:"non-public",name:"nonPublic",iconName:"user",section:"access",value:!0,defaultValue:!0},{id:"unavailable",name:"unavailable",iconName:"user",section:"access",value:!1,defaultValue:!1},{id:"abandoned",name:"abandoned",iconName:"user",section:"access",value:!1,defaultValue:!1},{id:"SPK",name:"SPK",iconName:"SPK",section:"control",value:!0,defaultValue:!0},{id:"SCS",name:"SCS",iconName:"SCS",section:"control",value:!0,defaultValue:!0},{id:"SPE",name:"SPE",iconName:"SPE",section:"control",value:!0,defaultValue:!0},{id:"manual",name:"ręczne",iconName:"ręczne",section:"control",value:!0,defaultValue:!0},{id:"mechanical",name:"mechaniczne",iconName:"mechaniczne",section:"control",value:!0,defaultValue:!0},{id:"SUP",name:"SUP",iconName:"SUP",section:"control",value:!0,defaultValue:!0},{id:"SBL",name:"SBL",iconName:"SBL",section:"routes",value:!0,defaultValue:!0},{id:"modern",name:"współczesna",iconName:"współczesna",section:"signals",value:!0,defaultValue:!0},{id:"semaphores",name:"kształtowa",iconName:"kształtowa",section:"signals",value:!0,defaultValue:!0},{id:"mixed",name:"mieszana",iconName:"mieszana",section:"signals",value:!0,defaultValue:!0},{id:"historical",name:"historyczna",iconName:"historyczna",section:"signals",value:!0,defaultValue:!0},{id:"free",name:"free",iconName:"",section:"status",value:!1,defaultValue:!1},{id:"occupied",name:"occupied",iconName:"",section:"status",value:!0,defaultValue:!0},{id:"endingStatus",name:"endingStatus",iconName:"",section:"status",value:!0,defaultValue:!0},{id:"afkStatus",name:"afkStatus",iconName:"",section:"status",value:!0,defaultValue:!0},{id:"noSpaceStatus",name:"noSpaceStatus",iconName:"",section:"status",value:!0,defaultValue:!0},{id:"unavailableStatus",name:"unavailableStatus",iconName:"",section:"status",value:!0,defaultValue:!0}],vb=[{id:"min-lvl",name:"minLevel",minRange:0,maxRange:20,value:0,defaultValue:0},{id:"max-lvl",name:"maxLevel",minRange:0,maxRange:20,value:20,defaultValue:20},{id:"routes-1t-cat",name:"minOneWayCatenary",minRange:0,maxRange:5,value:0,defaultValue:0},{id:"routes-1t-other",name:"minOneWay",minRange:0,maxRange:5,value:0,defaultValue:0},{id:"routes-2t-cat",name:"minTwoWayCatenary",minRange:0,maxRange:5,value:0,defaultValue:0},{id:"routes-2t-other",name:"minTwoWay",minRange:0,maxRange:5,value:0,defaultValue:0}],Sb=[{id:"include-selected",name:"include-selected",iconName:"",section:"mode",value:!0,defaultValue:!0},{id:"save",name:"save",iconName:"",section:"mode",value:!0,defaultValue:!0}],Eb=[{id:"eu",value:"PL1"},{id:"cae",value:"PL2"},{id:"usw",value:"DE"},{id:"us",value:"CZE"},{id:"ru",value:"ENG"}],wb={options:bb,sliders:vb,modes:Sb,regions:Eb},Tb=Ae({emits:["changeLang"],mixins:[Ct],props:{currentLang:{type:String,required:!0}},setup(){return{store:Nt()}},methods:{changeRegion(e){this.store.changeRegion(e)},changeLang(e){this.$emit("changeLang",e)}},computed:{onlineTrainsCount(){return this.store.trainList.filter(e=>e.online).length},onlineDispatchersCount(){return this.store.stationList.filter(e=>e.onlineInfo&&e.onlineInfo.region==this.store.region.id).length},computedRegions(){return wb.regions.map(e=>{var s,r;const t=((s=this.store.apiData.stations)==null?void 0:s.filter(i=>i.region==e.id&&i.isOnline).length)||0,n=((r=this.store.apiData.trains)==null?void 0:r.filter(i=>i.region==e.id&&i.online).length)||0;return{id:e.id,value:`${e.value}
${t} / ${n}
`,selectedValue:e.value}})}},components:{SelectBox:Eo,StatusIndicator:kf,Clock:ju}});const Ab=e=>(In("data-v-a6eab42d"),e=e(),Rn(),e),kb={class:"app_header"},Lb={class:"header_container"},Nb={class:"header_icons"},Cb={class:"icons-top"},Ob=["src"],Ib=["src"],Rb={class:"icons-bottom"},Db={href:"https://www.paypal.com/paypalme/spythere",target:"_blank"},$b=["src"],Pb={href:"https://discord.gg/x2mpNN3svk",target:"_blank"},Fb=["src"],Mb={class:"header_body"},Bb={class:"header_brand"},Ub=["src"],jb={class:"header_info"},xb={class:"info_counter"},Hb=["src"],Vb={class:"text--primary"},Wb=Ab(()=>y("span",{class:"text--grayed"}," / ",-1)),zb={class:"text--primary"},Kb=["src"],Yb={class:"info_region"},Gb={class:"header_links"};function qb(e,t,n,s,r,i){const o=De("StatusIndicator"),a=De("Clock"),l=De("SelectBox"),c=De("router-link");return O(),R("header",kb,[y("div",Lb,[y("div",Nb,[y("span",Cb,[e.currentLang=="pl"?(O(),R("img",{key:0,src:e.getIcon("pl"),alt:"icon-pl",onClick:t[0]||(t[0]=u=>e.changeLang("en"))},null,8,Ob)):(O(),R("img",{key:1,src:e.getIcon("en","jpg"),alt:"icon-en",onClick:t[1]||(t[1]=u=>e.changeLang("pl"))},null,8,Ib))]),y("span",Rb,[y("a",Db,[y("img",{src:e.getIcon("dollar"),alt:"icon paypal"},null,8,$b)]),y("a",Pb,[y("img",{src:e.getIcon("discord","png"),alt:"icon discord"},null,8,Fb)])])]),y("div",Mb,[se(o),y("span",Bb,[y("img",{src:e.getImage("stacjownik-header-logo.svg"),alt:"Stacjownik"},null,8,Ub)]),y("span",jb,[se(a),y("div",xb,[y("img",{src:e.getIcon("dispatcher"),alt:"icon dispatcher"},null,8,Hb),y("span",Vb,N(e.onlineDispatchersCount),1),Wb,y("span",zb,N(e.onlineTrainsCount),1),y("img",{src:e.getIcon("train"),alt:"icon train"},null,8,Kb)]),y("span",Yb,[se(l,{itemList:e.computedRegions,defaultItemIndex:0,onSelected:e.changeRegion},null,8,["itemList","onSelected"])])]),y("span",Gb,[se(c,{class:"route","active-class":"route-active",to:"/",exact:""},{default:je(()=>[me(N(e.$t("app.sceneries")),1)]),_:1}),me(" / "),se(c,{class:"route","active-class":"route-active",to:"/trains"},{default:je(()=>[me(N(e.$t("app.trains")),1)]),_:1}),me(" / "),se(c,{class:"route","active-class":"route-active",to:"/journal/timetables"},{default:je(()=>[me(N(e.$t("app.journal")),1)]),_:1})])])])])}const Jb=Fe(Tb,[["render",qb],["__scopeId","data-v-a6eab42d"]]),Zb=Ae({components:{Clock:ju,StatusIndicator:kf,SelectBox:Eo,TrainModal:yb,AppHeader:Jb},mixins:[Ct],setup(){const e=Nt();e.connectToAPI();const t=Se(!1);return At("isFilterCardVisible",t),{store:e,isFilterCardVisible:t,onlineDispatchers:Te(()=>e.stationList.filter(n=>n.onlineInfo&&n.onlineInfo.region==e.region.id)),dispatcherDataStatus:e.dataStatuses.dispatchers}},data:()=>({VERSION:em.version,currentLang:"pl",releaseURL:""}),created(){this.loadLang()},async mounted(){this.setReleaseURL(),gt(()=>this.store.blockScroll,e=>{if(e){document.body.classList.add("no-scroll");return}document.body.classList.remove("no-scroll")})},methods:{changeLang(e){this.$i18n.locale=e,this.currentLang=e,Ml.setStringValue("lang",e)},async setReleaseURL(){try{const e=await(await ct.get("https://api.github.com/repos/Spythere/stacjownik/releases/latest")).data;if(!e)return;this.releaseURL=e.html_url}catch(e){console.error(`Wystąpił błąd podczas pobierania danych z API GitHuba: ${e}`);return}},loadLang(){const e=Ml.getStringValue("lang");if(e){this.changeLang(e);return}if(!window.navigator.language)return;if(window.navigator.language.toString().includes("en")){this.changeLang("en");return}}}});const Xb={class:"app_container"},Qb={class:"app_main"},ev={class:"app_footer"},tv=y("a",{href:"https://td2.info.pl/profile/?u=20777",target:"_blank"},"Spythere",-1),nv=["href"],sv=y("div",{style:{display:"none"}},"∫ ukryta taktyczna całka do programowania w HTMLu",-1);function rv(e,t,n,s,r,i){const o=De("TrainModal"),a=De("AppHeader"),l=De("router-view");return O(),R("div",Xb,[se(is,{name:"modal-anim"},{default:je(()=>[(O(),pt(li,null,[e.store.chosenModalTrainId?(O(),pt(o,{key:0})):Q("",!0)],1024))]),_:1}),se(a,{"current-lang":e.currentLang,onChangeLang:e.changeLang},null,8,["current-lang","onChangeLang"]),y("main",Qb,[se(l,null,{default:je(({Component:c})=>[(O(),pt(li,{exclude:"JournalView"},[(O(),pt(Lh(c),{key:e.$route.name}))],1024))]),_:1})]),y("footer",ev,[me(" © "),tv,me(" "+N(new Date().getUTCFullYear())+" | ",1),y("a",{href:e.releaseURL,target:"_blank"},"v"+N(e.VERSION),9,nv),sv])])}const iv=Fe(Zb,[["render",rv]]),ov="modulepreload",av=function(e){return"/"+e},Bl={},Xr=function(t,n,s){if(!n||n.length===0)return t();const r=document.getElementsByTagName("link");return Promise.all(n.map(i=>{if(i=av(i),i in Bl)return;Bl[i]=!0;const o=i.endsWith(".css"),a=o?'[rel="stylesheet"]':"";if(!!s)for(let u=r.length-1;u>=0;u--){const h=r[u];if(h.href===i&&(!o||h.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${a}`))return;const c=document.createElement("link");if(c.rel=o?"stylesheet":ov,o||(c.as="script",c.crossOrigin=""),c.href=i,document.head.appendChild(c),o)return new Promise((u,h)=>{c.addEventListener("load",u),c.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>t())};const Mn=typeof window<"u";function lv(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const ke=Object.assign;function Qr(e,t){const n={};for(const s in t){const r=t[s];n[s]=Lt(r)?r.map(e):e(r)}return n}const Ss=()=>{},Lt=Array.isArray,cv=/\/$/,uv=e=>e.replace(cv,"");function ei(e,t,n="/"){let s,r={},i="",o="";const a=t.indexOf("#");let l=t.indexOf("?");return a=0&&(l=-1),l>-1&&(s=t.slice(0,l),i=t.slice(l+1,a>-1?a:t.length),r=e(i)),a>-1&&(s=s||t.slice(0,a),o=t.slice(a,t.length)),s=pv(s??t,n),{fullPath:s+(i&&"?")+i+o,path:s,query:r,hash:o}}function fv(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Ul(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function dv(e,t,n){const s=t.matched.length-1,r=n.matched.length-1;return s>-1&&s===r&&Qn(t.matched[s],n.matched[r])&&Cf(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Qn(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Cf(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!hv(e[n],t[n]))return!1;return!0}function hv(e,t){return Lt(e)?jl(e,t):Lt(t)?jl(t,e):e===t}function jl(e,t){return Lt(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function pv(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),s=e.split("/");let r=n.length-1,i,o;for(i=0;i1&&r--;else break;return n.slice(0,r).join("/")+"/"+s.slice(i-(i===s.length?1:0)).join("/")}var Fs;(function(e){e.pop="pop",e.push="push"})(Fs||(Fs={}));var Es;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Es||(Es={}));function mv(e){if(!e)if(Mn){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),uv(e)}const gv=/^[^#]+#/;function _v(e,t){return e.replace(gv,"#")+t}function yv(e,t){const n=document.documentElement.getBoundingClientRect(),s=e.getBoundingClientRect();return{behavior:t.behavior,left:s.left-n.left-(t.left||0),top:s.top-n.top-(t.top||0)}}const Fr=()=>({left:window.pageXOffset,top:window.pageYOffset});function bv(e){let t;if("el"in e){const n=e.el,s=typeof n=="string"&&n.startsWith("#"),r=typeof n=="string"?s?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=yv(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function xl(e,t){return(history.state?history.state.position-t:-1)+e}const Li=new Map;function vv(e,t){Li.set(e,t)}function Sv(e){const t=Li.get(e);return Li.delete(e),t}let Ev=()=>location.protocol+"//"+location.host;function Of(e,t){const{pathname:n,search:s,hash:r}=t,i=e.indexOf("#");if(i>-1){let a=r.includes(e.slice(i))?e.slice(i).length:1,l=r.slice(a);return l[0]!=="/"&&(l="/"+l),Ul(l,"")}return Ul(n,e)+s+r}function wv(e,t,n,s){let r=[],i=[],o=null;const a=({state:p})=>{const b=Of(e,location),E=n.value,v=t.value;let I=0;if(p){if(n.value=b,t.value=p,o&&o===E){o=null;return}I=v?p.position-v.position:0}else s(b);r.forEach(_=>{_(n.value,E,{delta:I,type:Fs.pop,direction:I?I>0?Es.forward:Es.back:Es.unknown})})};function l(){o=n.value}function c(p){r.push(p);const b=()=>{const E=r.indexOf(p);E>-1&&r.splice(E,1)};return i.push(b),b}function u(){const{history:p}=window;p.state&&p.replaceState(ke({},p.state,{scroll:Fr()}),"")}function h(){for(const p of i)p();i=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",u),{pauseListeners:l,listen:c,destroy:h}}function Hl(e,t,n,s=!1,r=!1){return{back:e,current:t,forward:n,replaced:s,position:window.history.length,scroll:r?Fr():null}}function Tv(e){const{history:t,location:n}=window,s={value:Of(e,n)},r={value:t.state};r.value||i(s.value,{back:null,current:s.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(l,c,u){const h=e.indexOf("#"),p=h>-1?(n.host&&document.querySelector("base")?e:e.slice(h))+l:Ev()+e+l;try{t[u?"replaceState":"pushState"](c,"",p),r.value=c}catch(b){console.error(b),n[u?"replace":"assign"](p)}}function o(l,c){const u=ke({},t.state,Hl(r.value.back,l,r.value.forward,!0),c,{position:r.value.position});i(l,u,!0),s.value=l}function a(l,c){const u=ke({},r.value,t.state,{forward:l,scroll:Fr()});i(u.current,u,!0);const h=ke({},Hl(s.value,l,null),{position:u.position+1},c);i(l,h,!1),s.value=l}return{location:s,state:r,push:a,replace:o}}function Av(e){e=mv(e);const t=Tv(e),n=wv(e,t.state,t.location,t.replace);function s(i,o=!0){o||n.pauseListeners(),history.go(i)}const r=ke({location:"",base:e,go:s,createHref:_v.bind(null,e)},t,n);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}function kv(e){return typeof e=="string"||e&&typeof e=="object"}function If(e){return typeof e=="string"||typeof e=="symbol"}const en={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Rf=Symbol("");var Vl;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Vl||(Vl={}));function es(e,t){return ke(new Error,{type:e,[Rf]:!0},t)}function jt(e,t){return e instanceof Error&&Rf in e&&(t==null||!!(e.type&t))}const Wl="[^/]+?",Lv={sensitive:!1,strict:!1,start:!0,end:!0},Nv=/[.+*?^${}()[\]/\\]/g;function Cv(e,t){const n=ke({},Lv,t),s=[];let r=n.start?"^":"";const i=[];for(const c of e){const u=c.length?[]:[90];n.strict&&!c.length&&(r+="/");for(let h=0;ht.length?t.length===1&&t[0]===40+40?1:-1:0}function Iv(e,t){let n=0;const s=e.score,r=t.score;for(;n0&&t[t.length-1]<0}const Rv={type:0,value:""},Dv=/[a-zA-Z0-9_]/;function $v(e){if(!e)return[[]];if(e==="/")return[[Rv]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(b){throw new Error(`ERR (${n})/"${c}": ${b}`)}let n=0,s=n;const r=[];let i;function o(){i&&r.push(i),i=[]}let a=0,l,c="",u="";function h(){c&&(n===0?i.push({type:0,value:c}):n===1||n===2||n===3?(i.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:c,regexp:u,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),c="")}function p(){c+=l}for(;a{o(S)}:Ss}function o(u){if(If(u)){const h=s.get(u);h&&(s.delete(u),n.splice(n.indexOf(h),1),h.children.forEach(o),h.alias.forEach(o))}else{const h=n.indexOf(u);h>-1&&(n.splice(h,1),u.record.name&&s.delete(u.record.name),u.children.forEach(o),u.alias.forEach(o))}}function a(){return n}function l(u){let h=0;for(;h=0&&(u.record.path!==n[h].record.path||!Df(u,n[h]));)h++;n.splice(h,0,u),u.record.name&&!Yl(u)&&s.set(u.record.name,u)}function c(u,h){let p,b={},E,v;if("name"in u&&u.name){if(p=s.get(u.name),!p)throw es(1,{location:u});v=p.record.name,b=ke(Kl(h.params,p.keys.filter(S=>!S.optional).map(S=>S.name)),u.params&&Kl(u.params,p.keys.map(S=>S.name))),E=p.stringify(b)}else if("path"in u)E=u.path,p=n.find(S=>S.re.test(E)),p&&(b=p.parse(E),v=p.record.name);else{if(p=h.name?s.get(h.name):n.find(S=>S.re.test(h.path)),!p)throw es(1,{location:u,currentLocation:h});v=p.record.name,b=ke({},h.params,u.params),E=p.stringify(b)}const I=[];let _=p;for(;_;)I.unshift(_.record),_=_.parent;return{name:v,path:E,params:b,matched:I,meta:Uv(I)}}return e.forEach(u=>i(u)),{addRoute:i,resolve:c,removeRoute:o,getRoutes:a,getRecordMatcher:r}}function Kl(e,t){const n={};for(const s of t)s in e&&(n[s]=e[s]);return n}function Mv(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:Bv(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function Bv(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const s in e.components)t[s]=typeof n=="boolean"?n:n[s];return t}function Yl(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Uv(e){return e.reduce((t,n)=>ke(t,n.meta),{})}function Gl(e,t){const n={};for(const s in e)n[s]=s in t?t[s]:e[s];return n}function Df(e,t){return t.children.some(n=>n===e||Df(e,n))}const $f=/#/g,jv=/&/g,xv=/\//g,Hv=/=/g,Vv=/\?/g,Pf=/\+/g,Wv=/%5B/g,zv=/%5D/g,Ff=/%5E/g,Kv=/%60/g,Mf=/%7B/g,Yv=/%7C/g,Bf=/%7D/g,Gv=/%20/g;function To(e){return encodeURI(""+e).replace(Yv,"|").replace(Wv,"[").replace(zv,"]")}function qv(e){return To(e).replace(Mf,"{").replace(Bf,"}").replace(Ff,"^")}function Ni(e){return To(e).replace(Pf,"%2B").replace(Gv,"+").replace($f,"%23").replace(jv,"%26").replace(Kv,"`").replace(Mf,"{").replace(Bf,"}").replace(Ff,"^")}function Jv(e){return Ni(e).replace(Hv,"%3D")}function Zv(e){return To(e).replace($f,"%23").replace(Vv,"%3F")}function Xv(e){return e==null?"":Zv(e).replace(xv,"%2F")}function gr(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function Qv(e){const t={};if(e===""||e==="?")return t;const s=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;ri&&Ni(i)):[s&&Ni(s)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+n,i!=null&&(t+="="+i))})}return t}function eS(e){const t={};for(const n in e){const s=e[n];s!==void 0&&(t[n]=Lt(s)?s.map(r=>r==null?null:""+r):s==null?s:""+s)}return t}const tS=Symbol(""),Jl=Symbol(""),Ao=Symbol(""),ko=Symbol(""),Ci=Symbol("");function hs(){let e=[];function t(s){return e.push(s),()=>{const r=e.indexOf(s);r>-1&&e.splice(r,1)}}function n(){e=[]}return{add:t,list:()=>e,reset:n}}function on(e,t,n,s,r){const i=s&&(s.enterCallbacks[r]=s.enterCallbacks[r]||[]);return()=>new Promise((o,a)=>{const l=h=>{h===!1?a(es(4,{from:n,to:t})):h instanceof Error?a(h):kv(h)?a(es(2,{from:t,to:h})):(i&&s.enterCallbacks[r]===i&&typeof h=="function"&&i.push(h),o())},c=e.call(s&&s.instances[r],t,n,l);let u=Promise.resolve(c);e.length<3&&(u=u.then(l)),u.catch(h=>a(h))})}function ti(e,t,n,s){const r=[];for(const i of e)for(const o in i.components){let a=i.components[o];if(!(t!=="beforeRouteEnter"&&!i.instances[o]))if(nS(a)){const c=(a.__vccOpts||a)[t];c&&r.push(on(c,n,s,i,o))}else{let l=a();r.push(()=>l.then(c=>{if(!c)return Promise.reject(new Error(`Couldn't resolve component "${o}" at "${i.path}"`));const u=lv(c)?c.default:c;i.components[o]=u;const p=(u.__vccOpts||u)[t];return p&&on(p,n,s,i,o)()}))}}return r}function nS(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Zl(e){const t=st(Ao),n=st(ko),s=Te(()=>t.resolve(Pt(e.to))),r=Te(()=>{const{matched:l}=s.value,{length:c}=l,u=l[c-1],h=n.matched;if(!u||!h.length)return-1;const p=h.findIndex(Qn.bind(null,u));if(p>-1)return p;const b=Xl(l[c-2]);return c>1&&Xl(u)===b&&h[h.length-1].path!==b?h.findIndex(Qn.bind(null,l[c-2])):p}),i=Te(()=>r.value>-1&&oS(n.params,s.value.params)),o=Te(()=>r.value>-1&&r.value===n.matched.length-1&&Cf(n.params,s.value.params));function a(l={}){return iS(l)?t[Pt(e.replace)?"replace":"push"](Pt(e.to)).catch(Ss):Promise.resolve()}return{route:s,href:Te(()=>s.value.href),isActive:i,isExactActive:o,navigate:a}}const sS=Ae({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Zl,setup(e,{slots:t}){const n=yt(Zl(e)),{options:s}=st(Ao),r=Te(()=>({[Ql(e.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[Ql(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=t.default&&t.default(n);return e.custom?i:js("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},i)}}}),rS=sS;function iS(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function oS(e,t){for(const n in t){const s=t[n],r=e[n];if(typeof s=="string"){if(s!==r)return!1}else if(!Lt(r)||r.length!==s.length||s.some((i,o)=>i!==r[o]))return!1}return!0}function Xl(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Ql=(e,t,n)=>e??t??n,aS=Ae({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const s=st(Ci),r=Te(()=>e.route||s.value),i=st(Jl,0),o=Te(()=>{let c=Pt(i);const{matched:u}=r.value;let h;for(;(h=u[c])&&!h.components;)c++;return c}),a=Te(()=>r.value.matched[o.value]);At(Jl,Te(()=>o.value+1)),At(tS,a),At(Ci,r);const l=Se();return gt(()=>[l.value,a.value,e.name],([c,u,h],[p,b,E])=>{u&&(u.instances[h]=c,b&&b!==u&&c&&c===p&&(u.leaveGuards.size||(u.leaveGuards=b.leaveGuards),u.updateGuards.size||(u.updateGuards=b.updateGuards))),c&&u&&(!b||!Qn(u,b)||!p)&&(u.enterCallbacks[h]||[]).forEach(v=>v(c))},{flush:"post"}),()=>{const c=r.value,u=e.name,h=a.value,p=h&&h.components[u];if(!p)return ec(n.default,{Component:p,route:c});const b=h.props[u],E=b?b===!0?c.params:typeof b=="function"?b(c):b:null,I=js(p,ke({},E,t,{onVnodeUnmounted:_=>{_.component.isUnmounted&&(h.instances[u]=null)},ref:l}));return ec(n.default,{Component:I,route:c})||I}}});function ec(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const lS=aS;function cS(e){const t=Fv(e.routes,e),n=e.parseQuery||Qv,s=e.stringifyQuery||ql,r=e.history,i=hs(),o=hs(),a=hs(),l=Qc(en);let c=en;Mn&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Qr.bind(null,F=>""+F),h=Qr.bind(null,Xv),p=Qr.bind(null,gr);function b(F,z){let V,q;return If(F)?(V=t.getRecordMatcher(F),q=z):q=F,t.addRoute(q,V)}function E(F){const z=t.getRecordMatcher(F);z&&t.removeRoute(z)}function v(){return t.getRoutes().map(F=>F.record)}function I(F){return!!t.getRecordMatcher(F)}function _(F,z){if(z=ke({},z||l.value),typeof F=="string"){const m=ei(n,F,z.path),f=t.resolve({path:m.path},z),d=r.createHref(m.fullPath);return ke(m,f,{params:p(f.params),hash:gr(m.hash),redirectedFrom:void 0,href:d})}let V;if("path"in F)V=ke({},F,{path:ei(n,F.path,z.path).path});else{const m=ke({},F.params);for(const f in m)m[f]==null&&delete m[f];V=ke({},F,{params:h(F.params)}),z.params=h(z.params)}const q=t.resolve(V,z),ie=F.hash||"";q.params=u(p(q.params));const be=fv(s,ke({},F,{hash:qv(ie),path:q.path})),te=r.createHref(be);return ke({fullPath:be,hash:ie,query:s===ql?eS(F.query):F.query||{}},q,{redirectedFrom:void 0,href:te})}function S(F){return typeof F=="string"?ei(n,F,l.value.path):ke({},F)}function A(F,z){if(c!==F)return es(8,{from:z,to:F})}function w(F){return M(F)}function L(F){return w(ke(S(F),{replace:!0}))}function U(F){const z=F.matched[F.matched.length-1];if(z&&z.redirect){const{redirect:V}=z;let q=typeof V=="function"?V(F):V;return typeof q=="string"&&(q=q.includes("?")||q.includes("#")?q=S(q):{path:q},q.params={}),ke({query:F.query,hash:F.hash,params:"path"in q?{}:F.params},q)}}function M(F,z){const V=c=_(F),q=l.value,ie=F.state,be=F.force,te=F.replace===!0,m=U(V);if(m)return M(ke(S(m),{state:typeof m=="object"?ke({},ie,m.state):ie,force:be,replace:te}),z||V);const f=V;f.redirectedFrom=z;let d;return!be&&dv(s,q,V)&&(d=es(16,{to:f,from:q}),ot(q,q,!0,!1)),(d?Promise.resolve(d):G(f,q)).catch(g=>jt(g)?jt(g,2)?g:ze(g):ce(g,f,q)).then(g=>{if(g){if(jt(g,2))return M(ke({replace:te},S(g.to),{state:typeof g.to=="object"?ke({},ie,g.to.state):ie,force:be}),z||f)}else g=ne(f,q,!0,te,ie);return Z(f,q,g),g})}function x(F,z){const V=A(F,z);return V?Promise.reject(V):Promise.resolve()}function G(F,z){let V;const[q,ie,be]=uS(F,z);V=ti(q.reverse(),"beforeRouteLeave",F,z);for(const m of q)m.leaveGuards.forEach(f=>{V.push(on(f,F,z))});const te=x.bind(null,F,z);return V.push(te),Fn(V).then(()=>{V=[];for(const m of i.list())V.push(on(m,F,z));return V.push(te),Fn(V)}).then(()=>{V=ti(ie,"beforeRouteUpdate",F,z);for(const m of ie)m.updateGuards.forEach(f=>{V.push(on(f,F,z))});return V.push(te),Fn(V)}).then(()=>{V=[];for(const m of F.matched)if(m.beforeEnter&&!z.matched.includes(m))if(Lt(m.beforeEnter))for(const f of m.beforeEnter)V.push(on(f,F,z));else V.push(on(m.beforeEnter,F,z));return V.push(te),Fn(V)}).then(()=>(F.matched.forEach(m=>m.enterCallbacks={}),V=ti(be,"beforeRouteEnter",F,z),V.push(te),Fn(V))).then(()=>{V=[];for(const m of o.list())V.push(on(m,F,z));return V.push(te),Fn(V)}).catch(m=>jt(m,8)?m:Promise.reject(m))}function Z(F,z,V){for(const q of a.list())q(F,z,V)}function ne(F,z,V,q,ie){const be=A(F,z);if(be)return be;const te=z===en,m=Mn?history.state:{};V&&(q||te?r.replace(F.fullPath,ke({scroll:te&&m&&m.scroll},ie)):r.push(F.fullPath,ie)),l.value=F,ot(F,z,V,te),ze()}let W;function ae(){W||(W=r.listen((F,z,V)=>{if(!vt.listening)return;const q=_(F),ie=U(q);if(ie){M(ke(ie,{replace:!0}),q).catch(Ss);return}c=q;const be=l.value;Mn&&vv(xl(be.fullPath,V.delta),Fr()),G(q,be).catch(te=>jt(te,12)?te:jt(te,2)?(M(te.to,q).then(m=>{jt(m,20)&&!V.delta&&V.type===Fs.pop&&r.go(-1,!1)}).catch(Ss),Promise.reject()):(V.delta&&r.go(-V.delta,!1),ce(te,q,be))).then(te=>{te=te||ne(q,be,!1),te&&(V.delta&&!jt(te,8)?r.go(-V.delta,!1):V.type===Fs.pop&&jt(te,20)&&r.go(-1,!1)),Z(q,be,te)}).catch(Ss)}))}let we=hs(),Ne=hs(),he;function ce(F,z,V){ze(F);const q=Ne.list();return q.length?q.forEach(ie=>ie(F,z,V)):console.error(F),Promise.reject(F)}function ue(){return he&&l.value!==en?Promise.resolve():new Promise((F,z)=>{we.add([F,z])})}function ze(F){return he||(he=!F,ae(),we.list().forEach(([z,V])=>F?V(F):z()),we.reset()),F}function ot(F,z,V,q){const{scrollBehavior:ie}=e;if(!Mn||!ie)return Promise.resolve();const be=!V&&Sv(xl(F.fullPath,0))||(q||!V)&&history.state&&history.state.scroll||null;return eo().then(()=>ie(F,z,be)).then(te=>te&&bv(te)).catch(te=>ce(te,F,z))}const Je=F=>r.go(F);let Ue;const bt=new Set,vt={currentRoute:l,listening:!0,addRoute:b,removeRoute:E,hasRoute:I,getRoutes:v,resolve:_,options:e,push:w,replace:L,go:Je,back:()=>Je(-1),forward:()=>Je(1),beforeEach:i.add,beforeResolve:o.add,afterEach:a.add,onError:Ne.add,isReady:ue,install(F){const z=this;F.component("RouterLink",rS),F.component("RouterView",lS),F.config.globalProperties.$router=z,Object.defineProperty(F.config.globalProperties,"$route",{enumerable:!0,get:()=>Pt(l)}),Mn&&!Ue&&l.value===en&&(Ue=!0,w(r.location).catch(ie=>{}));const V={};for(const ie in en)V[ie]=Te(()=>l.value[ie]);F.provide(Ao,z),F.provide(ko,yt(V)),F.provide(Ci,l);const q=F.unmount;bt.add(F),F.unmount=function(){bt.delete(F),bt.size<1&&(c=en,W&&W(),W=null,l.value=en,Ue=!1,he=!1),q()}}};return vt}function Fn(e){return e.reduce((t,n)=>t.then(()=>n()),Promise.resolve())}function uS(e,t){const n=[],s=[],r=[],i=Math.max(t.matched.length,e.matched.length);for(let o=0;oQn(c,a))?s.push(a):n.push(a));const l=e.matched[o];l&&(t.matched.find(c=>Qn(c,l))||r.push(l))}return[n,s,r]}function TT(){return st(ko)}const fS=Ae({});const dS={class:"action-btn btn--filled"},hS={class:"button_content"};function pS(e,t,n,s,r,i){return O(),R("button",dS,[y("div",hS,[Ch(e.$slots,"default")])])}const Uf=Fe(fS,[["render",pS]]),mS=Ae({data(){return{preventKeyDown:!1}},activated(){window.addEventListener("keydown",this.handleKeyDown)},deactivated(){window.removeEventListener("keydown",this.handleKeyDown)},methods:{onKeyDownFunction(){},handleKeyDown(e){e.key&&e.key.toLowerCase()=="f"&&!this.preventKeyDown&&!e.ctrlKey&&!e.altKey&&this.onKeyDownFunction()}}}),gS=Ae({components:{SelectBox:Eo,ActionButton:Uf},emits:["onSearchConfirm","onOptionsReset"],mixins:[Ct,mS],props:{sorterOptionIds:{type:Array,required:!0},filters:{type:Array,default:[]},dataStatus:{type:Number,default:X.Initialized}},data(){return{showOptions:!1,driverSuggestions:[],dispatcherSuggestions:[],searchTimeout:0,store:Nt(),DataStatus:X}},setup(){return{searchersValues:st("searchersValues"),sorterActive:st("sorterActive"),journalFilterActive:st("journalFilterActive")}},computed:{driverStatsName(){return this.store.driverStatsName},translatedSorterOptions(){return this.$props.sorterOptionIds.map(e=>({id:e,value:this.$t(`options.sort-${e}`)}))}},watch:{async driverStatsName(e){await this.fetchDriverStats(),this.store.currentStatsTab=e?"driver":"daily"},async"searchersValues.search-driver"(e){clearTimeout(this.searchTimeout),!(!e||e=="")&&(e.length<3||(this.searchTimeout=setTimeout(async()=>{try{const t=await(await ct.get(`${kt.stacjownikAPI}/api/getDriverSuggestions?name=${e}`)).data;this.driverSuggestions=t}catch{this.driverSuggestions=[]}},1500)))},async"searchersValues.search-dispatcher"(e){clearTimeout(this.searchTimeout),!(!e||e=="")&&(e.length<3||(this.searchTimeout=setTimeout(async()=>{try{const t=await(await ct.get(`${kt.stacjownikAPI}/api/getDispatcherSuggestions?name=${e}`)).data;this.dispatcherSuggestions=t}catch{this.dispatcherSuggestions=[]}},1500)))}},methods:{async fetchDriverStats(){if(this.store.driverStatsData=void 0,!this.store.driverStatsName){this.store.driverStatsStatus=X.Initialized;return}try{this.store.driverStatsStatus=X.Loading;const e=await(await ct.get(`${kt.stacjownikAPI}/api/getDriverInfo?name=${this.store.driverStatsName}`)).data;this.store.driverStatsData=e,this.store.driverStatsStatus=X.Loaded}catch{this.store.driverStatsStatus=X.Error,console.error("Ups! Wystąpił błąd przy próbie pobrania statystyk maszynisty! :/")}},onKeyDownFunction(){this.showOptions=!this.showOptions,this.$nextTick(()=>{var e;this.showOptions&&((e=this.$refs.button)==null||e.focus())})},focusEnd(){console.log("focus end")},onSorterChange(e){this.sorterActive.id=e.id,this.sorterActive.dir=-1,this.$emit("onSearchConfirm")},onFilterChange(e){this.journalFilterActive=e,this.$emit("onSearchConfirm")},onInputClear(e){this.searchersValues[e]="",this.$emit("onSearchConfirm")},onSearchConfirm(){this.$emit("onSearchConfirm")},onSearchButtonConfirm(){this.showOptions=!1,this.$emit("onSearchConfirm")},onResetButtonClick(){this.$emit("onOptionsReset")}}});const _S=["src"],yS={id:"search-driver"},bS=["value"],vS={id:"search-dispatcher"},SS=["value"],ES={key:0,class:"options_wrapper"},wS={class:"options_content"},TS={class:"option-title"},AS={class:"search_content"},kS={key:0,for:"date"},LS={class:"search-box"},NS=["onUpdate:modelValue","placeholder","type","min","list"],CS={class:"search-exit"},OS=["src","onClick"],IS={class:"search_actions"},RS={class:"option-title"},DS={class:"options_sorters"},$S=["data-selected","onClick"],PS={key:0,class:"option-title"},FS={class:"options_filters"},MS=["id","onClick"];function BS(e,t,n,s,r,i){return O(),R("div",{class:"filters-options",onKeydown:t[7]||(t[7]=$s(o=>e.showOptions=!1,["esc"]))},[e.showOptions?(O(),R("div",{key:0,class:"bg",onClick:t[0]||(t[0]=o=>e.showOptions=!1)})):Q("",!0),y("button",{class:"btn--filled btn--image",onClick:t[1]||(t[1]=o=>e.showOptions=!e.showOptions),ref:"button"},[y("img",{src:e.getIcon("filter2"),alt:"Open filters"},null,8,_S),me(" "+N(e.$t("options.filters"))+" [F] ",1)],512),y("datalist",yS,[(O(!0),R(Le,null,nt(e.driverSuggestions,o=>(O(),R("option",{value:o},null,8,bS))),256))]),y("datalist",vS,[(O(!0),R(Le,null,nt(e.dispatcherSuggestions,o=>(O(),R("option",{value:o},null,8,SS))),256))]),se(is,{name:"options-anim"},{default:je(()=>[e.showOptions?(O(),R("div",ES,[y("div",wS,[y("h1",TS,N(e.$t("options.search-title")),1),y("div",AS,[(O(!0),R(Le,null,nt(e.searchersValues,(o,a)=>(O(),R("div",{class:"search",key:a},[a=="search-date"?(O(),R("label",kS,N(e.$t("options.search-date")),1)):Q("",!0),y("div",LS,[oo(y("input",{class:"search-input","onUpdate:modelValue":l=>e.searchersValues[a]=l,onKeydown:t[2]||(t[2]=$s((...l)=>e.onSearchConfirm&&e.onSearchConfirm(...l),["enter"])),onFocus:t[3]||(t[3]=l=>e.preventKeyDown=!0),onBlur:t[4]||(t[4]=l=>e.preventKeyDown=!1),placeholder:e.$t(`options.${a}`),type:a=="search-date"?"date":"text",min:a=="search-date"?"2022-02-01":void 0,list:a.toString()},null,40,NS),[[Fp,e.searchersValues[a]]]),y("button",CS,[y("img",{src:e.getIcon("exit"),alt:"exit-icon",onClick:l=>e.onInputClear(a)},null,8,OS)])])]))),128)),y("div",IS,[y("button",{class:"btn--action",onClick:t[5]||(t[5]=(...o)=>e.onResetButtonClick&&e.onResetButtonClick(...o))},N(e.$t("options.reset-button")),1),y("button",{class:"btn--action",onClick:t[6]||(t[6]=(...o)=>e.onSearchButtonConfirm&&e.onSearchButtonConfirm(...o))},N(e.$t("options.search-button")),1)])]),y("h1",RS,N(e.$t("options.sort-title")),1),y("div",DS,[(O(!0),R(Le,null,nt(e.translatedSorterOptions,o=>(O(),R("div",null,[y("button",{class:"sort-option btn--option","data-selected":o.id==e.sorterActive.id,onClick:a=>e.onSorterChange(o)},N(o.value.toUpperCase()),9,$S)]))),256))]),e.filters.length!=0?(O(),R("h1",PS,N(e.$t("options.filter-title")),1)):Q("",!0),y("div",FS,[(O(!0),R(Le,null,nt(e.filters,o=>(O(),R("button",{class:it(["filter-option btn--option",{checked:e.journalFilterActive.id===o.id}]),id:o.id,onClick:a=>e.onFilterChange(o)},N(e.$t(`options.filter-${o.id}`)),11,MS))),256))])])])):Q("",!0)]),_:1})],32)}const jf=Fe(gS,[["render",BS],["__scopeId","data-v-e186669b"]]),US=Ae({setup(){return{}}});const Lo=e=>(In("data-v-c1cfc32f"),e=e(),Rn(),e),jS={class:"loading"},xS=Lo(()=>y("span",{class:"loading-circle"},null,-1)),HS=Lo(()=>y("span",{class:"loading-circle"},null,-1)),VS=Lo(()=>y("span",{class:"loading-circle"},null,-1)),WS=[xS,HS,VS];function zS(e,t,n,s,r,i){return O(),R("div",jS,WS)}const No=Fe(US,[["render",zS],["__scopeId","data-v-c1cfc32f"]]),KS=Ae({components:{Loading:No},setup(){const e=Nt(),t=Te(async()=>await(await ct.get(`${kt.stacjownikAPI}/api/getDispatcherInfo?name=${e.dispatcherStatsName}`)).data);return{store:e,statsData2:t}},data(){return{cardVisible:!1,lastDispatcherName:"",timetables:[]}},methods:{toggleCard(){this.store.dispatcherStatsName&&(this.cardVisible=!this.cardVisible,this.cardVisible&&this.fetchDispatcherStats())},async fetchDispatcherStats(){this.lastDispatcherName!=this.store.dispatcherStatsName&&(this.store.dispatcherStatsData=void 0);const e=await(await ct.get(`${kt.stacjownikAPI}/api/getDispatcherInfo?name=${this.store.dispatcherStatsName}`)).data,t=await(await ct.get(`${kt.stacjownikAPI}/api/getTimetables?authorName=${this.store.dispatcherStatsName}`)).data;this.timetables=t,this.store.dispatcherStatsData=e,this.lastDispatcherName=this.store.dispatcherStatsName}}});const ls=e=>(In("data-v-18012bbe"),e=e(),Rn(),e),YS={class:"stats_container"},GS={key:0,class:"stats_card"},qS={key:1,class:"loading"},JS={key:2},ZS=ls(()=>y("h3",null,"STATYSTYKI WYSTAWIONYCH ROZKŁADÓW",-1)),XS={key:0,class:"info-stats"},QS={class:"stat-badge"},eE=ls(()=>y("span",null,"LICZBA",-1)),tE={class:"stat-badge"},nE=ls(()=>y("span",null,"SUMA (KM)",-1)),sE={class:"stat-badge"},rE=ls(()=>y("span",null,"NAJDŁUŻSZY",-1)),iE={class:"stat-badge"},oE=ls(()=>y("span",null,"ŚREDNIO",-1)),aE=ls(()=>y("h3",null,"OSTATNIE WYSTAWIONE ROZKŁADY",-1)),lE={class:"last-timetables"},cE={class:"timetable-row"};function uE(e,t,n,s,r,i){const o=De("Loading"),a=Nh("click-outside");return oo((O(),R("div",YS,[y("button",{class:"stats_button",onClick:t[0]||(t[0]=(...l)=>e.toggleCard&&e.toggleCard(...l))}," Statystyki dyżurnego "+N(e.store.dispatcherStatsName),1),e.store.dispatcherStatsName&&e.cardVisible?(O(),R("div",GS,[y("div",null,[e.store.dispatcherStatsData?e.store.dispatcherStatsData._count._all?(O(),R("div",JS,[ZS,e.store.dispatcherStatsData._count._all?(O(),R("div",XS,[y("span",QS,[eE,y("span",null,N(e.store.dispatcherStatsData._count._all),1)]),y("span",tE,[nE,y("span",null,N(e.store.dispatcherStatsData._sum.routeDistance.toFixed(2))+"km",1)]),y("span",sE,[rE,y("span",null,N(e.store.dispatcherStatsData._max.routeDistance.toFixed(2))+"km",1)]),y("span",iE,[oE,y("span",null,N(e.store.dispatcherStatsData._avg.routeDistance.toFixed(2))+"km",1)])])):Q("",!0),aE,y("div",lE,[(O(!0),R(Le,null,nt(e.timetables,l=>(O(),R("div",cE,[me(" #"+N(l.timetableId)+" | ",1),y("b",null,N(l.trainCategoryCode)+" "+N(l.trainNo),1),me(" | "+N(l.driverName)+" ("+N(l.routeDistance)+"km) ",1),y("div",null,N(l.route.replace("|"," > ")),1)]))),256))])])):(O(),R("div",qS," Ten dyżurny nie ma jeszcze szczegółowych statystyk! ")):(O(),pt(o,{key:0}))])])):Q("",!0)])),[[a,()=>e.cardVisible=!1]])}const fE=Fe(KS,[["render",uE],["__scopeId","data-v-18012bbe"]]),dE=Ae({mixins:[Ct],emits:["update:searchedValue","clearValue"],props:{searchedValue:{type:String,required:!0},updateOnInput:{type:Boolean,default:!0},titleToTranslate:{type:String,required:!0},clearValue:{type:Function}},setup(e,{emit:t}){const n=Se(e.searchedValue);return e.updateOnInput&>(()=>n.value,i=>{t("update:searchedValue",i)}),{compSearchedValue:n,updateValue:i=>{!e.updateOnInput&&i.keyCode==13&&t("update:searchedValue",n.value)},clearValue:()=>{n.value="",t("clearValue")}}}});const hE={class:"search-box"},pE=["placeholder"],mE=["src"];function gE(e,t,n,s,r,i){return O(),R("div",hE,[oo(y("input",{class:"search-input",placeholder:e.$t(e.titleToTranslate),"onUpdate:modelValue":t[0]||(t[0]=o=>e.compSearchedValue=o),onKeypress:t[1]||(t[1]=(...o)=>e.updateValue&&e.updateValue(...o))},null,40,pE),[[gi,e.compSearchedValue]]),y("img",{class:"search-exit",src:e.getIcon("exit"),alt:"exit-icon",onClick:t[2]||(t[2]=(...o)=>e.clearValue&&e.clearValue(...o))},null,8,mE)])}const _E=Fe(dE,[["render",gE],["__scopeId","data-v-ed43cef4"]]),yE=Ae({props:{dispatcherHistory:{type:Array,required:!0}},mixins:[Vs],computed:{computedDispatcherHistory(){return this.dispatcherHistory.reduce((e,t,n)=>(this.isAnotherDay(n-1,n)&&e.push(new Date(t.timestampFrom).toLocaleDateString("pl-PL")),e.push(t),e),[])}},methods:{navigateToScenery(e,t){t&&this.$router.push(`/scenery?station=${e.trim().replace(/ /g,"_")}`)},isAnotherDay(e,t){return t==0?!0:new Date(this.dispatcherHistory[e].timestampFrom).getDate()!=new Date(this.dispatcherHistory[t].timestampFrom).getDate()}}});const bE={class:"journal-list"},vE={key:0,class:"journal_day"},SE=["onClick","onKeydown"],EE={class:"text--primary"},wE={class:"text--grayed"},TE=["data-status"],AE={key:0},kE={key:1};function LE(e,t,n,s,r,i){return O(),R("ul",bE,[(O(!0),R(Le,null,nt(e.computedDispatcherHistory,o=>(O(),R("li",{class:it({sticky:typeof o=="string"})},[typeof o=="string"?(O(),R("div",vE,N(o),1)):(O(),R("div",{key:1,class:it(["journal_item",{online:o.isOnline}]),onClick:a=>e.navigateToScenery(o.stationName,o.isOnline),onKeydown:$s(a=>e.navigateToScenery(o.stationName,o.isOnline),["enter"]),tabindex:"0"},[y("span",null,[y("b",EE,N(o.dispatcherName),1),me(" • "),y("b",null,N(o.stationName),1),y("span",wE," #"+N(o.stationHash)+" ",1),y("span",{class:it(["region-badge",o.region])},"PL1",2)]),y("span",null,[y("span",{"data-status":o.isOnline},N(o.isOnline?e.$t("journal.online-since"):"OFFLINE")+"  ",9,TE),y("span",null,N(new Date(o.timestampFrom).toLocaleTimeString("pl-PL",{timeStyle:"short"})),1),o.currentDuration&&o.isOnline?(O(),R("span",AE," ("+N(e.calculateDuration(o.currentDuration))+") ",1)):Q("",!0),o.timestampTo?(O(),R("span",kE," > "+N(new Date(o.timestampTo).toLocaleTimeString("pl-PL",{timeStyle:"short"}))+" ("+N(e.$t("journal.duty-lasted"))+" "+N(e.calculateDuration(o.currentDuration))+") ",1)):Q("",!0)])],42,SE))],2))),256))])}const NE=Fe(yE,[["render",LE],["__scopeId","data-v-87911a70"]]),CE=Ae({});const OE={class:"journal-header"},IE={class:"journal-type-options"};function RE(e,t,n,s,r,i){const o=De("router-link");return O(),R("section",OE,[y("div",IE,[se(o,{class:"router-link","active-class":"route-active",to:"/journal/timetables",exact:""},{default:je(()=>[me(N(e.$t("journal.section-timetables")),1)]),_:1}),me("  •  "),se(o,{class:"router-link","active-class":"route-active",to:"/journal/dispatchers"},{default:je(()=>[me(N(e.$t("journal.section-dispatchers")),1)]),_:1})])])}const xf=Fe(CE,[["render",RE],["__scopeId","data-v-619c2652"]]),tc=`${kt.stacjownikAPI}/api/getDispatchers`,DE=Ae({components:{SearchBox:_E,ActionButton:Uf,JournalOptions:jf,DispatcherStats:fE,Loading:No,JournalDispatchersList:NE,JournalHeader:xf},name:"JournalDispatchers",props:{sceneryName:{type:String,required:!1},dispatcherName:{type:String,required:!1}},data:()=>({currentQuery:"",scrollDataLoaded:!0,scrollNoMoreData:!1,showReturnButton:!1,statsCardOpen:!1,dataStatus:X.Initialized,DataStatus:X,historyList:[]}),setup(){const e=yt({id:"timestampFrom",dir:-1}),t=Se({}),n=yt({"search-dispatcher":"","search-station":"","search-date":""}),s=Se(0),r=15;At("sorterActive",e),At("journalFilterActive",t),At("searchersValues",n);const i=Se(null);return{store:Nt(),sorterActive:e,searchersValues:n,countFromIndex:s,countLimit:r,scrollElement:i,maxCount:Se(15)}},computed:{computedHistoryList(){return this.historyList.filter(e=>e.isOnline||e.currentDuration&&e.currentDuration>10*6e4)}},activated(){var e,t;(this.sceneryName||this.dispatcherName)&&(this.searchersValues["search-station"]=((e=this.sceneryName)==null?void 0:e.toString())||"",this.searchersValues["search-dispatcher"]=((t=this.dispatcherName)==null?void 0:t.toString())||"",this.searchHistory())},mounted(){!this.sceneryName&&!this.dispatcherName&&this.searchHistory()},methods:{handleScroll(e){const t=e.target,n=t.scrollTop,s=t.scrollHeight-t.offsetHeight;!this.scrollDataLoaded||this.scrollNoMoreData||this.dataStatus!=X.Loaded||n>s*.85&&this.addHistoryData()},resetOptions(){this.searchersValues["search-station"]="",this.searchersValues["search-dispatcher"]="",this.sorterActive.id="timestampFrom",this.searchHistory()},searchHistory(){this.fetchHistoryData({searchers:this.searchersValues}),this.scrollNoMoreData=!1,this.scrollDataLoaded=!0},async addHistoryData(){this.scrollDataLoaded=!1;const e=this.historyList.length,t=await(await ct.get(`${tc}?${this.currentQuery}&countFrom=${e}`)).data;if(t){if(t.length==0){this.scrollNoMoreData=!0;return}this.historyList.push(...t),this.scrollDataLoaded=!0}},async fetchHistoryData(e={}){var a,l,c;this.dataStatus=X.Loading;const t=[],n=(a=e.searchers)==null?void 0:a["search-dispatcher"].trim(),s=(l=e.searchers)==null?void 0:l["search-station"].trim(),r=(c=e.searchers)==null?void 0:c["search-date"].trim(),i=r?Date.parse(new Date(r).toISOString())-120*60*1e3:void 0,o=i?i+864e5:void 0;n&&t.push(`dispatcherName=${n}`),s&&t.push(`stationName=${s}`),i&&o&&t.push(`timestampFrom=${i}`,`timestampTo=${o}`),this.sorterActive.id=="timestampFrom"?t.push("sortBy=timestampFrom"):this.sorterActive.id=="duration"?t.push("sortBy=currentDuration"):t.push("sortBy=timestampFrom"),t.push("countLimit=30"),this.currentQuery=t.join("&");try{const u=await(await ct.get(`${tc}?${this.currentQuery}`)).data;if(!u){this.dataStatus=X.Error;return}if(!u)return;this.historyList=u,this.store.dispatcherStatsName=this.historyList.length>0&&this.searchersValues["search-dispatcher"].trim()?this.historyList[0].dispatcherName:"",this.dataStatus=X.Loaded}catch{this.dataStatus=X.Error}}}});const $E={class:"journal-timetables"},PE={class:"journal_wrapper"},FE={key:1,class:"journal_warning error"},ME={key:2,class:"journal_warning"},BE={key:3},UE={key:4,class:"journal_warning"},jE={key:5,class:"journal_warning"};function xE(e,t,n,s,r,i){const o=De("JournalHeader"),a=De("JournalOptions"),l=De("Loading"),c=De("JournalDispatchersList");return O(),R("section",$E,[se(o),y("div",PE,[se(a,{onOnSearchConfirm:e.searchHistory,onOnOptionsReset:e.resetOptions,"sorter-option-ids":["timestampFrom","duration"],"data-status":e.dataStatus},null,8,["onOnSearchConfirm","onOnOptionsReset","data-status"]),y("div",{class:"list_wrapper",onScroll:t[1]||(t[1]=(...u)=>e.handleScroll&&e.handleScroll(...u))},[e.dataStatus==e.DataStatus.Initialized||e.dataStatus==e.DataStatus.Loading?(O(),pt(l,{key:0})):e.dataStatus==e.DataStatus.Error?(O(),R("div",FE,N(e.$t("app.error")),1)):e.historyList.length==0?(O(),R("div",ME,N(e.$t("app.no-result")),1)):(O(),R("div",BE,[se(c,{dispatcherHistory:e.computedHistoryList},null,8,["dispatcherHistory"]),!e.scrollNoMoreData&&e.scrollDataLoaded&&e.computedHistoryList.length>15?(O(),R("button",{key:0,class:"btn btn--option btn--load-data",onClick:t[0]||(t[0]=(...u)=>e.addHistoryData&&e.addHistoryData(...u))},N(e.$t("journal.load-data")),1)):Q("",!0)])),e.scrollNoMoreData?(O(),R("div",UE,N(e.$t("journal.no-further-data")),1)):e.scrollDataLoaded?Q("",!0):(O(),R("div",jE,N(e.$t("journal.loading-further-data")),1))],32)])])}const HE=Fe(DE,[["render",xE],["__scopeId","data-v-f5438d40"]]),VE=Ae({data(){return{store:Nt(),DataStatus:X}}});const WE={class:"journal-stats"},zE={key:0},KE={class:"text--primary"},YE={class:"info-stats"},GE={class:"stat-badge"},qE={class:"stat-badge"},JE={class:"stat-badge"},ZE={class:"stat-badge"},XE={class:"stat-badge"},QE={key:1},e1={key:2},t1={key:3};function n1(e,t,n,s,r,i){return O(),R("div",WE,[e.store.driverStatsData?(O(),R("span",zE,[y("h3",null,[me(N(e.$t("journal.stats-title"))+" ",1),y("span",KE,N(e.store.driverStatsName.toUpperCase()),1)]),y("div",YE,[y("span",GE,[y("span",null,N(e.$t("journal.stats-timetables")),1),y("span",null,N(e.store.driverStatsData._count.fulfilled)+" / "+N(e.store.driverStatsData._count._all),1)]),y("span",qE,[y("span",null,N(e.$t("journal.stats-longest-timetable")),1),y("span",null,N(e.store.driverStatsData._max.routeDistance.toFixed(2))+"km ",1)]),y("span",JE,[y("span",null,N(e.$t("journal.stats-avg-timetable")),1),y("span",null,N(e.store.driverStatsData._avg.routeDistance.toFixed(2))+"km ",1)]),y("span",ZE,[y("span",null,N(e.$t("journal.stats-distance")),1),y("span",null,N(e.store.driverStatsData._sum.currentDistance.toFixed(2))+" / "+N(e.store.driverStatsData._sum.routeDistance.toFixed(2))+"km ",1)]),y("span",XE,[y("span",null,N(e.$t("journal.stats-stations")),1),y("span",null,N(e.store.driverStatsData._sum.confirmedStopsCount)+" / "+N(e.store.driverStatsData._sum.allStopsCount),1)])])])):e.store.driverStatsStatus==e.DataStatus.Loading?(O(),R("b",QE,N(e.$t("journal.stats-loading")),1)):e.store.driverStatsStatus==e.DataStatus.Error?(O(),R("b",e1,N(e.$t("journal.stats-error ")),1)):(O(),R("b",t1,N(e.$t("journal.driver-stats-info")),1))])}const Hf=Fe(VE,[["render",n1],["__scopeId","data-v-96579c40"]]),s1=Ae({methods:{navigateTo(e,t){this.$router.push({path:e,query:t})}}});var ln=(e=>(e.active="active",e.fulfilled="fulfilled",e.abandoned="abandoned",e.all="all",e))(ln||{});const r1=Ae({props:{timetableHistory:{type:Array,required:!0}},mixins:[Vs,Ct,wo],computed:{computedTimetableHistory(){return this.timetableHistory.map(e=>({timetable:e,sceneryList:this.getSceneryList(e),showStock:Se(!1)}))}},methods:{getSceneryList(e){return e.sceneriesString.split("%").map((t,n)=>{const s=" (o. "+(e.beginDate!=e.scheduledBeginDate?`${this.localeTime(e.beginDate,this.$i18n.locale)} `:"")+`${this.localeTime(e.scheduledBeginDate,this.$i18n.locale)})`,r=" (p. "+(e.endDate!=e.scheduledEndDate&&e.fulfilled?`${this.localeTime(e.fulfilled?e.endDate:e.scheduledEndDate,this.$i18n.locale)} `:"")+`${this.localeTime(e.fulfilled||e.terminated&&!e.fulfilled?e.scheduledEndDate:e.endDate,this.$i18n.locale)})`,i=` (porz. ${this.localeTime(e.fulfilled?e.scheduledEndDate:e.endDate,this.$i18n.locale)})`;return{name:t,confirmed:n(In("data-v-1cbf1d98"),e=e(),Rn(),e),i1={class:"journal-list"},o1={class:"journal_item-info"},a1={class:"info-top"},l1=["onClick","onKeydown"],c1={class:"text--primary"},u1={class:"text--grayed"},f1={class:"info-date"},d1={class:"info-route"},h1=Vf(()=>y("hr",null,null,-1)),p1={class:"scenery-list"},m1={key:0},g1=["innerHTML"],_1=["innerHTML"],y1={style:{margin:"0.5em 0"}},b1={key:0,class:"text--grayed"},v1={key:0},S1={class:"text--grayed"},E1=["onClick"],w1=["src"],T1={key:2,class:"info-extended"},A1=Vf(()=>y("hr",null,null,-1)),k1={class:"badge info-badge"},L1={class:"badge info-badge"},N1={class:"badge info-badge"},C1={class:"stock-list"},O1=["src","alt"];function I1(e,t,n,s,r,i){const o=De("router-link");return O(),R("ul",i1,[(O(!0),R(Le,null,nt(e.computedTimetableHistory,({timetable:a,sceneryList:l,...c})=>(O(),R("li",{class:"journal_item",key:a.timetableId},[y("div",o1,[y("div",a1,[y("span",{tabindex:"0",onClick:u=>e.showTimetable(a),onKeydown:$s(u=>e.showTimetable(a),["enter"]),style:{cursor:"pointer"}},[y("b",c1,N(a.trainCategoryCode)+" ",1),y("b",null,N(a.trainNo),1),me(" | "),y("span",null,N(a.driverName),1),me(" | "),y("span",u1,"#"+N(a.timetableId),1)],40,l1),y("span",null,[y("b",f1,N(e.localeDay(a.beginDate,e.$i18n.locale)),1),y("b",{class:it(["info-status",{fulfilled:a.fulfilled||a.currentDistance>=a.routeDistance*.9,terminated:a.terminated&&!a.fulfilled,active:!a.terminated}])},N(a.terminated?a.fulfilled||a.currentDistance>=a.routeDistance*.9?e.$t("journal.timetable-fulfilled"):`${e.$t("journal.timetable-abandoned")} ${e.localeTime(a.endDate,e.$i18n.locale)}`:e.$t("journal.timetable-active")),3)])]),y("div",d1,[y("b",null,N(a.route.replace("|"," - ")),1)]),h1,y("div",p1,[(O(!0),R(Le,null,nt(l,(u,h)=>(O(),R("span",{key:u.name,class:it({confirmed:u.confirmed})},[h>0?(O(),R("span",m1," >")):Q("",!0),me(" "+N(u.name)+" ",1),h==0?(O(),R("span",{key:1,innerHTML:u.beginDateHTML},null,8,g1)):Q("",!0),h==l.length-1?(O(),R("span",{key:2,innerHTML:u.endDateHTML},null,8,_1)):Q("",!0)],2))),128))]),y("div",y1,[y("span",null,[y("b",null,N(e.$t("journal.route-length")),1),me(" "+N(a.fulfilled?"":a.currentDistance+" /")+" "+N(a.routeDistance)+" km ",1)]),me(" • "),y("span",null,[y("b",null,N(e.$t("journal.station-count")),1),me(" "+N(a.confirmedStopsCount)+" / "+N(a.allStopsCount),1)]),!a.fulfilled&&a.currentSceneryName?(O(),R("span",b1,[me(" • "),y("b",null,N(e.$t(`journal.${a.terminated?"last-seen-at":"currently-at"}`))+" "+N(a.currentSceneryName.replace(/.[a-zA-Z0-9]+.sc/,"")),1)])):Q("",!0)]),a.authorName?(O(),R("div",v1,[y("b",S1,N(e.$t("journal.dispatcher-name"))+" ",1),se(o,{class:"dispatcher-link",to:`/journal/dispatchers?dispatcherName=${a.authorName}`},{default:je(()=>[y("b",null,N(a.authorName),1)]),_:2},1032,["to"])])):Q("",!0),a.stockString?(O(),R("button",{key:1,class:"btn--option btn--show",onClick:u=>c.showStock.value=!c.showStock.value},[me(N(e.$t("journal.stock-info"))+" ",1),y("img",{src:e.getIcon(`arrow-${c.showStock.value?"asc":"desc"}`),alt:"Arrow"},null,8,w1)],8,E1)):Q("",!0),a.stockString&&c.showStock.value?(O(),R("div",T1,[A1,y("div",null,[y("span",k1,[y("span",null,N(e.$t("journal.stock-max-speed")),1),y("span",null,N(a.maxSpeed)+"km/h",1)]),y("span",L1,[y("span",null,N(e.$t("journal.stock-length")),1),y("span",null,N(a.stockLength)+"m",1)]),y("span",N1,[y("span",null,N(e.$t("journal.stock-mass")),1),y("span",null,N(Math.floor(a.stockMass/1e3))+"t",1)])]),y("ul",C1,[(O(!0),R(Le,null,nt(a.stockString.split(";"),(u,h)=>(O(),R("li",{key:h},[y("img",{onError:t[0]||(t[0]=(...p)=>e.onImageError&&e.onImageError(...p)),src:`https://rj.td2.info.pl/dist/img/thumbnails/${u.split(":")[0]}.png`,alt:u},null,40,O1),y("div",null,N(u.replace(/_/g," ").split(":")[0]),1)]))),128))])])):Q("",!0)])]))),128))])}const R1=Fe(r1,[["render",I1],["__scopeId","data-v-1cbf1d98"]]),nc=[{id:ln.all,filterSection:"timetable-status",isActive:!0},{id:ln.active,filterSection:"timetable-status",isActive:!1},{id:ln.fulfilled,filterSection:"timetable-status",isActive:!1},{id:ln.abandoned,filterSection:"timetable-status",isActive:!1}],D1={class:"daily-stats"},$1=["data-active"],P1={key:0},F1={key:1},M1={class:"text--primary"},B1={class:"text--primary"},U1={class:"text--primary"},j1={class:"text--primary"},x1=Ae({__name:"DailyStats",setup(e,{expose:t}){const n=Se(-1),s=yt({statsStatus:X.Loading,stats:{totalTimetables:0,distanceSum:0,distanceAvg:0,timetableAuthor:"",timetableDriver:"",timetableId:0,timetableRouteDistance:0,dispatcherName:"",dispatcherTimetablesCount:0}});async function r(){try{const{distanceAvg:a,distanceSum:l,maxTimetable:c,totalTimetables:u,mostActiveDispatcher:h}=await(await ct.get(`${kt.stacjownikAPI}/api/getDailyTimetableStats`)).data;s.stats={totalTimetables:u,distanceSum:l,distanceAvg:a,timetableAuthor:(c==null?void 0:c.authorName)||"",timetableDriver:(c==null?void 0:c.driverName)||"",timetableId:(c==null?void 0:c.timetableId)||0,timetableRouteDistance:(c==null?void 0:c.routeDistance)||0,dispatcherName:(h==null?void 0:h.name)||"",dispatcherTimetablesCount:(h==null?void 0:h.count)||0},s.statsStatus=X.Loaded}catch{console.error("Ups! Wystąpił błąd podczas pobierania statystyk rozkładów jazdy..."),s.statsStatus=X.Error}}function i(){r(),n.value=setInterval(r,6e4)}function o(){clearInterval(n.value)}return t({startFetchingDailyStats:i,stopFetchingDailyStats:o}),(a,l)=>{const c=De("i18n-t");return O(),R("section",D1,[y("span",{"data-active":s.statsStatus},[s.stats.distanceSum==null?(O(),R("b",P1,N(a.$t("journal.daily-stats-info")),1)):(O(),R("span",F1,[se(c,{keypath:"journal.timetable-stats-total",tag:"p"},{count:je(()=>[y("b",M1,N(s.stats.totalTimetables)+" "+N(a.$t("journal.timetable-count",s.stats.dispatcherTimetablesCount)),1)]),distance:je(()=>[y("b",B1,N(s.stats.distanceSum)+" km ",1)]),_:1}),se(c,{keypath:"journal.timetable-stats-longest",tag:"p"},{id:je(()=>[y("b",null,N(s.stats.timetableId),1)]),author:je(()=>[y("b",null,N(s.stats.timetableAuthor),1)]),driver:je(()=>[y("b",null,N(s.stats.timetableDriver),1)]),distance:je(()=>[y("b",U1,N(s.stats.timetableRouteDistance)+" km",1)]),_:1}),se(c,{keypath:"journal.timetable-stats-most-active",tag:"p"},{dispatcher:je(()=>[y("b",null,N(s.stats.dispatcherName),1)]),count:je(()=>[y("b",j1,N(s.stats.dispatcherTimetablesCount)+" "+N(a.$t("journal.timetable-count",s.stats.dispatcherTimetablesCount)),1)]),_:1})]))],8,$1)])}}});const H1=Fe(x1,[["__scopeId","data-v-aab1e1c1"]]),V1={class:"journal-stats"},W1={class:"tabs"},z1=["data-selected","data-inactive","onClick"],K1={class:"stats-tab"},Y1=Ae({__name:"JournalStats",setup(e){const t=Nt(),n=Se(null);let s=yt({tabs:[{name:"daily",titlePath:"journal.daily-stats-title"},{name:"driver",titlePath:"journal.driver-stats-title",inactive:!0}]});function r(i){t.currentStatsTab=i}return pu(()=>{var i;(i=n.value)==null||i.startFetchingDailyStats()}),mu(()=>{var i;(i=n.value)==null||i.stopFetchingDailyStats()}),gt(Te(()=>t.driverStatsData),i=>{console.log(i),s.tabs[1].inactive=!i}),(i,o)=>(O(),R("div",V1,[y("div",W1,[(O(!0),R(Le,null,nt(Pt(s).tabs,a=>(O(),R("button",{class:"btn--filled","data-selected":a.name==Pt(t).currentStatsTab,"data-inactive":a.inactive,onClick:l=>r(a.name)},N(i.$t(a.titlePath)),9,z1))),256))]),y("div",K1,[(O(),pt(li,null,[Pt(t).currentStatsTab=="daily"?(O(),pt(H1,{key:0,ref_key:"dailyStatsComp",ref:n},null,512)):Pt(t).currentStatsTab=="driver"?(O(),pt(Hf,{key:1})):Q("",!0)],1024))])]))}});const G1=Fe(Y1,[["__scopeId","data-v-855fd946"]]),sc=`${kt.stacjownikAPI}/api/getTimetables`,q1=Ae({components:{DriverStats:Hf,Loading:No,JournalOptions:jf,JournalTimetablesList:R1,JournalStats:G1,JournalHeader:xf},mixins:[Vs,s1,wo,Ct],name:"JournalTimetables",props:{timetableId:{type:String}},data:()=>({currentQuery:"",scrollDataLoaded:!0,scrollNoMoreData:!1,showReturnButton:!1,statsCardOpen:!1,timetableHistory:[],journalTimetableFilters:nc,dataStatus:X.Initialized,dataErrorMessage:"",DataStatus:X}),setup(){const e=yt({id:"timetableId",dir:1}),t=Se(nc[0]),n=yt({"search-train":"","search-driver":"","search-dispatcher":"","search-date":""}),s=Se(0),r=15;At("searchersValues",n),At("sorterActive",e),At("journalFilterActive",t);const i=Se(null);return{sorterActive:e,journalFilterActive:t,searchersValues:n,countFromIndex:s,countLimit:r,scrollElement:i,store:Nt()}},activated(){this.timetableId&&(this.searchersValues["search-train"]=`#${this.timetableId}`,this.searchHistory())},mounted(){console.log("mounted"),this.timetableId||this.searchHistory()},methods:{handleScroll(e){const t=e.target,n=t.scrollTop,s=t.scrollHeight-t.offsetHeight;!this.scrollDataLoaded||this.scrollNoMoreData||this.dataStatus!=X.Loaded||n>s*.85&&this.addHistoryData()},resetOptions(){this.searchersValues["search-date"]="",this.searchersValues["search-driver"]="",this.searchersValues["search-train"]="",this.searchersValues["search-dispatcher"]="",this.journalFilterActive=this.journalTimetableFilters[0],this.sorterActive.id="timetableId",this.searchHistory()},searchHistory(){this.fetchHistoryData({searchers:this.searchersValues,filter:this.journalFilterActive}),this.scrollNoMoreData=!1,this.scrollDataLoaded=!0},async addHistoryData(){this.scrollDataLoaded=!1;const e=this.timetableHistory.length,t=await(await ct.get(`${sc}?${this.currentQuery}&countFrom=${e}`)).data;if(t){if(t.length==0){this.scrollNoMoreData=!0;return}this.timetableHistory.push(...t),this.scrollDataLoaded=!0}},async fetchHistoryData(e={}){var l,c,u,h,p;this.dataStatus=X.Loading;const t=[],n=(l=e.searchers)==null?void 0:l["search-driver"].trim(),s=(c=e.searchers)==null?void 0:c["search-train"].trim(),r=(u=e.searchers)==null?void 0:u["search-dispatcher"].trim(),i=(h=e.searchers)==null?void 0:h["search-date"].trim(),o=i?Date.parse(new Date(i).toISOString())-120*60*1e3:void 0,a=o?o+864e5:void 0;switch(n&&t.push(`driverName=${n}`),s&&t.push(s.startsWith("#")?`timetableId=${s.replace("#","")}`:`trainNo=${s}`),r&&t.push(`authorName=${r}`),o&&a&&t.push(`timestampFrom=${o}`,`timestampTo=${a}`),this.sorterActive.id=="distance"?t.push("sortBy=routeDistance"):this.sorterActive.id=="total-stops"?t.push("sortBy=allStopsCount"):this.sorterActive.id=="beginDate"?t.push("sortBy=beginDate"):t.push("sortBy=timetableId"),t.push("countLimit=15"),(p=e.filter)==null?void 0:p.id){case ln.abandoned:t.push("fulfilled=0","terminated=1");break;case ln.active:t.push("terminated=0");break;case ln.fulfilled:t.push("fulfilled=1");break}this.currentQuery=t.join("&");try{const b=await(await ct.get(`${sc}?${this.currentQuery}`)).data;if(!b){this.dataStatus=X.Error,this.dataErrorMessage="Brak danych!";return}if(!b)return;this.timetableHistory=b,this.store.driverStatsName=this.timetableHistory.length>0&&this.searchersValues["search-driver"].trim()?this.timetableHistory[0].driverName:"",this.dataStatus=X.Loaded}catch{this.dataStatus=X.Error,this.dataErrorMessage="Ups! Coś poszło nie tak!"}}}});const J1={class:"journal-timetables"},Z1={class:"journal_wrapper"},X1={key:1,class:"journal_warning error"},Q1={key:2,class:"journal_warning"},ew={key:3},tw={key:4,class:"journal_warning"},nw={key:5,class:"journal_warning"};function sw(e,t,n,s,r,i){const o=De("JournalHeader"),a=De("JournalStats"),l=De("JournalOptions"),c=De("Loading"),u=De("JournalTimetablesList");return O(),R("section",J1,[se(o),y("div",Z1,[se(a),se(l,{onOnSearchConfirm:e.searchHistory,onOnOptionsReset:e.resetOptions,"sorter-option-ids":["timetableId","beginDate","distance","total-stops"],filters:e.journalTimetableFilters,"data-status":e.dataStatus},null,8,["onOnSearchConfirm","onOnOptionsReset","filters","data-status"]),y("div",{class:"list_wrapper",onScroll:t[1]||(t[1]=(...h)=>e.handleScroll&&e.handleScroll(...h))},[e.dataStatus==e.DataStatus.Initialized||e.dataStatus==e.DataStatus.Loading?(O(),pt(c,{key:0})):e.dataStatus==e.DataStatus.Error?(O(),R("div",X1,N(e.$t("app.error")),1)):e.timetableHistory.length==0?(O(),R("div",Q1,N(e.$t("app.no-result")),1)):(O(),R("div",ew,[se(u,{timetableHistory:e.timetableHistory},null,8,["timetableHistory"]),!e.scrollNoMoreData&&e.scrollDataLoaded&&e.timetableHistory.length>=15?(O(),R("button",{key:0,class:"btn btn--option btn--load-data",onClick:t[0]||(t[0]=(...h)=>e.addHistoryData&&e.addHistoryData(...h))},N(e.$t("journal.load-data")),1)):Q("",!0)])),e.scrollNoMoreData?(O(),R("div",tw,N(e.$t("journal.no-further-data")),1)):e.scrollDataLoaded?Q("",!0):(O(),R("div",nw,N(e.$t("journal.loading-further-data")),1))],32)])])}const rw=Fe(q1,[["render",sw],["__scopeId","data-v-54f4461d"]]),iw=[{path:"/",name:"StationsView",component:()=>Xr(()=>import("./StationsView-a5a80075.js"),["assets/StationsView-a5a80075.js","assets/returnBtnMixin-ddf8068c.js","assets/styleMixin-6b80ecca.js","assets/StationsView-efbbd8ee.css"])},{path:"/trains",name:"TrainsView",component:()=>Xr(()=>import("./TrainsView-6e19131c.js"),["assets/TrainsView-6e19131c.js","assets/returnBtnMixin-ddf8068c.js","assets/TrainsView-9a810e32.css"]),props:e=>({train:e.query.train,driver:e.query.driver,trainId:e.query.trainId})},{path:"/scenery",name:"SceneryView",component:()=>Xr(()=>import("./SceneryView-81fa6c97.js"),["assets/SceneryView-81fa6c97.js","assets/styleMixin-6b80ecca.js","assets/SceneryView-20e96b3c.css"])},{path:"/journal/timetables",name:"JournalTimetables",component:rw,props:e=>({trainNo:e.query.trainNo,driverName:e.query.driverName,timetableId:e.query.timetableId})},{path:"/journal/dispatchers",name:"JournalDispatchers",component:HE,props:e=>({sceneryName:e.query.sceneryName,dispatcherName:e.query.dispatcherName})},{path:"/:catchAll(.*)",redirect:"/"}],ow=cS({scrollBehavior(e,t){if(e.name=="SceneryView"&&t.name)return{el:".app_main"}},history:Av(),routes:iw}),aw={sceneries:"SCENERIES",trains:"TRAINS",journal:"JOURNAL",loading:"Loading data...",support:"Support the project",error:"An error occured while loading data!","no-result":"No results for current search!","migration-warning":"Stacjownik services will be unavailable 2/06/2022 between 1-3am (CEST time) due to the migration of API hostings!","migration-confirm":"Roger that!"},lw={title:"New Stacjownik version is available!",paragraph1:"Enjoy the application and may the green signal be with you!","release-link":"Click here to browse version changelog (GitHub)","confirm-button":"Understood!"},cw={"control-type":"Control type: ","signals-type":"Signals type: ",SBL:"This scenery has automatic line blockade system on following routes: ",SUP:"Requires the SUP application (level crossing remote control simulator)","TWB-all":"This scenery has two-way route blockade on all routes","TWB-routes":"This scenery has two-way route blockade on following routes: ",default:"This scenery is available by default","non-public":"This scenery is not public",unknown:"This scenery isn't recognizable right now",unavailable:"This scenery is unavailable",abandoned:"This scenery is no longer supported by its creators",real:"Scenery with real lines: "},uw={title:"Signal type",współczesna:"modern",mieszana:"mixed",kształtowa:"mechanical",historyczna:"historical"},fw={title:"Control type",SPK:"SPK",SCS:"SCS","SCS-SPK":"SCS/SPK",SPE:"SPE",ręczne:"manual","ręczne+SPK":"manual + SPK","ręczne+SCS":"manual + SCS",mechaniczne:"levers (mechanical)","mechaniczne+SPK":"levers + SPK","mechaniczne+SCS":"levers + SCS"},dw={online:"UNTIL ",free:"FREE",ending:"ENDS SOON","not-signed":"NOT SIGNED IN","no-limit":"NO LIMIT",unavailable:"UNAVAILABLE",brb:"AFK","no-space":"NO SPACE",unknown:"UNKNOWN"},hw={filters:"FILTERS",donate:"DONATE","search-button":"Search","reset-button":"Reset","sort-title":"SORT BY:","filter-title":"FILTER BY:","search-title":"SEARCH:","search-train-no":"Train no. / #","search-train":"Train no.","search-driver":"Driver name","search-dispatcher":"Dispatcher name","search-station":"Scenery name","search-author":"Timetable author name","search-date":"Timetable date (CEST / GMT+2)","sort-mass":"mass","sort-speed":"speed","sort-length":"length","sort-distance":"distance","sort-timetable":"train no.","sort-progress":"route progress","sort-delay":"current delay","sort-total-stops":"total stops","sort-beginDate":"date","sort-timetableId":"timetable ID","sort-timestampFrom":"date","sort-duration":"duration","filter-comments":"COMMENTS","filter-twr":"TWR","filter-skr":"SKR","filter-passenger":"PASSENGER","filter-freight":"FREIGHT","filter-other":"OTHER","filter-noTimetable":"NO TIMETABLE","filter-reset":"RESET FILTERS","filter-clear":"CLEAR FILTERS","filter-all":"ALL ENTRIES","filter-abandoned":"ABANDONED","filter-fulfilled":"FULFILLED","filter-active":"ACTIVE"},pw={endingStatus:"ENDS SOON",afkStatus:"AFK",noSpaceStatus:"NO SPACE",unavailableStatus:"UNAVAILABLE",title:"STATION FILTER",default:"DEFAULT","not-default":"OTHER",real:"REAL",fictional:"FICTIONAL",unavailable:"UNSUPPORTED","non-public":"NON-PUBLIC",abandoned:"ABANDONED",SPK:"SPK",SCS:"SCS",SPE:"SPE",manual:"MANUAL",mechanical:"MECHANICAL",SUP:"SUP",SBL:"SBL",modern:"MODERN",semaphores:"SEMAPHORES",mixed:"MIXED",historical:"HISTORICAL",free:"FREE",occupied:"OCCUPIED",sliders:{"min-lvl":"MIN. REQUIRED DISPATCHER LEVEL","max-lvl":"MAX. REQUIRED DISPATCHER LEVEL","routes-1t-cat":"MIN. CATENARY SINGLE TRACK ROUTES","routes-1t-other":"MIN. OTHER SINGLE TRACK ROUTES","routes-2t-cat":"MIN. CATENARY DOUBLE TRACK ROUTES","routes-2t-other":"MIN. OTHER DOUBLE TRACK ROUTES"},"authors-search":"Search by author (other filters apply)","minimum-hours-title":"SHOW ONLY SCENERIES UNTIL:",now:"NOW",hour:"h","no-limit":"NO LIMIT","include-selected":"INCLUDE SELECTED",save:"SAVE FILTERS",reset:"RESET FILTERS",close:"CLOSE FILTERS"},mw={station:"Station","min-lvl":`Min. dispatcher -level`,status:"Status",dispatcher:"Dispatcher","dispatcher-lvl":`Dispatcher -level`,routes:`Routes -double / single`,general:"General info",users:"Drivers online",spawns:"Spawns online",timetables:"Active timetables","no-stations":"No stations to show here!","scenery-search":"Search for scenery..."},gw={"no-trains":"No trains to show here!",loading:"Loading train data...",offline:"Offline ride",stats:"TRAFFIC STATISTICS","stats-speed":"TRAINS SPEED (MIN, AVG, MAX) [km/h]","stats-length":"TIMETABLES LENGTH (MIN, AVG, MAX) [km]","stats-categories":"TIMETABLE CATEGORIES","stats-special-twr":"HIGH RISK","stats-special-skr":"EXCEEDED STRUCT. GAUGE","stats-locos":"MOST COMMON UNITS","current-scenery":"on scenery","current-signal":"at signal","current-track":"on track",delayed:"Delayed: ",preponed:"Ahead of schedule: ","on-time":"On time","route-progress":"Progress: ","detailed-timetable":"Detailed timetable for train no. ","via-title":"Via: ","no-timetable":"no current timetable","distance-exceeded":"Attention! Due to an internal error, timetables with route distance greater than 200km might be incorrect!",cars:"Car count",EZT:"EMU",SZT:"DMU","loco-electric":"Electric locomotive","loco-diesel":"Diesel locomotive","timetable-comments":"Exploitation comments available for this train",comment:"Exploitation comments for: ","table-limit":"For performance reasons there's a limit of 10 trains shown at the same time.","last-seen-now":"since now","last-seen-min":"since one minute","last-seen-ago":"since {minutes} minutes","scenery-offline":"Offline ride",timeout:"An error occured while trying to refresh SWDR timetable data!"},_w={title:"DISPATCHER HISTORY",loading:"Loading dispatcher history data...","no-history":"No dispatcher history found!","section-timetables":"TIMETABLES","section-dispatchers":"DISPATCHERS","no-further-data":"No further data for current parameters","loading-further-data":"Loading...","route-length":"Route length:","station-count":"Stations:","dispatcher-name":"Created by","timetable-day":"Timetable created at","timetable-active":"ACTIVE","timetable-fulfilled":"FULFILLED","timetable-abandoned":"ABANDONED","online-since":"ONLINE SINCE","duty-lasted":"The duty lasted",minutes:"{minutes} mins",hours:"{hours}h {minutes} mins","stock-info":"STOCK INFO","stock-length":"Length","stock-mass":"Mass","stock-max-speed":"Maximum registered speed","load-data":"Load further data...","last-seen-at":"Last seen at","currently-at":"Currently at","stats-title":"DRIVING STATISTICS OF","stats-timetables":"TIMETABLES","stats-longest-timetable":"LONGEST TIMETABLE","stats-avg-timetable":"AVERAGE TIMETABLE LENGTH","stats-distance":"DISTANCE","stats-stations":"STATIONS","timetable-stats-total":"Today, dispatchers made so far {count} with total distance of {distance}","timetable-stats-longest":"Today's the longest timetable is #{id} made by {author} for {driver} - {distance}","timetable-stats-most-active":"The most active dispatcher is {dispatcher} who created {count}","timetable-count":"timetable | timetables","daily-stats-title":"DAILY STATS","daily-stats-info":"Today's statistics are unavailable yet!","driver-stats-title":"DRIVER STATS","driver-stats-info":"Enter a proper nickname into filters [F] to see user's driving statistics!","stats-loading":"Fetching statistics...","stats-error":"Oops! An unexpected error occurred while trying to fetch statistics! :/"},yw={users:"PLAYERS ONLINE",spawns:"OPEN SPAWNS",timetables:"ACTIVE TIMETABLES","no-timetables":"No active timetables!",offline:"Scenery is offline","no-users":"NO ACTIVE PLAYERS","no-spawns":"NO OPEN SPAWNS","no-scenery":"Oops! This scenery doesn't exist!","return-btn":"Return to main site","history-btn":"View the dispatcher history","info-btn":"Return to the scenery view","authors-title":"Scenery author | Scenery authors","lines-title":"Real lines","project-title":"Project name","one-way-routes":"One way routes","two-way-routes":"Two way routes","option-active-timetables":"Active timetables","option-timetables-history":"Scenery timetables history","option-dispatchers-history":"Scenery dispatchers history","timetable-author-title":"Issued by","timetable-author-unknown":"Author unknown","req-level":"all dispatcher levels | dispatcher level {lvl} required | dispatcher level {lvl} required","history-list-empty":"No recorded scenery history!","forum-topic":"Official {name} forum topic"},bw={title:"Availability",default:"in-game",nonDefault:"additional",unavailable:"unavailable",nonPublic:"private",abandoned:"abandoned"},vw={"timetable-only":"Switch to timetable-only view",end:"Timetable terminates here",terminated:"Timetable terminated",begins:"BEGINS HERE",terminates:`TERMINATES -HERE`},Sw={title:"TIMETABLE JOURNAL","search-train":"Train no.","search-driver":"Driver name"},Ew={app:aw,update:lw,"data-status":{"S1a-connection":"S1a signal
Cannot connect with Stacjownik API service!","S1a-sceneries":"S1a signal
Cannot load online stations data!",S2:"S2 signal
All data loaded successfully!",S3:"S3 signal
Loading data...","S5-timetables":"S5 signal
Timetables might be incorrect or missing!","S5-dispatchers":"S5 signal
Cannot load dispatchers status data!","S5-trains":"S5 signal
Cannot load online trains data!"},desc:cw,signals:uw,controls:fw,status:dw,options:hw,filters:pw,sceneries:mw,trains:gw,journal:_w,scenery:yw,availability:bw,timetables:vw,history:Sw},ww={sceneries:"SCENERIE",trains:"POCIĄGI",journal:"DZIENNIK",loading:"Pobieranie danych...",support:"Wspomóż projekt",error:"Wystąpił problem z załadowaniem danych!","no-result":"Brak wyników o podanych kryteriach!","migration-warning":"Usługi Stacjownika będą niedostępne w godzinach 1:00-3:00 2 czerwca 2022r. z powodu migracji hostingów API!","migration-confirm":"Przyjąłem!"},Tw={title:"Nowa wersja Stacjownika jest dostępna!",paragraph1:"Miłego korzystania z aplikacji i niech S2 będzie z wami!","release-link":"Kliknij, aby przejrzeć listę zmian (GitHub)","confirm-button":"Przyjąłem!"},Aw={"control-type":"Sterowanie: ","signals-type":"Sygnalizacja: ",SBL:"Sceneria posiada SBL na szlakach: ",SUP:"Wymaga programu SUP do kontroli systemu RASP-UZK","TWB-all":"Sceneria posiada blokadę dwukierunkową na wszystkich szlakach","TWB-routes":"Sceneria posiada blokadę dwukierunkową na szlakach: ",default:"Sceneria dostępna domyślnie w paczce z grą","non-public":"Sceneria niepubliczna",unavailable:"Sceneria niedostępna",unknown:"Nieznana sceneria",real:"Sceneria z realnymi liniami kolejowymi: ",abandoned:"Sceneria wycofana z rozgrywki"},kw={title:"Sygnalizacja",współczesna:"współczesna",mieszana:"mieszana",kształtowa:"kształtowa",historyczna:"historyczna"},Lw={title:"Sterowanie",SPK:"SPK",SCS:"SCS","SCS-SPK":"SCS/SPK",SPE:"SPE",ręczne:"ręczne","ręczne+SPK":"ręczne z SPK","ręczne+SCS":"ręczne z SCS",mechaniczne:"mechaniczne","mechaniczne+SPK":"mechaniczne z SPK","mechaniczne+SCS":"mechaniczne z SCS"},Nw={online:"DO ",free:"WOLNA",ending:"KOŃCZY","not-signed":"NIEZALOGOWANY","no-limit":"BEZ LIMITU",unavailable:"NIEDOSTĘPNY",brb:"Z/W","no-space":"BRAK MIEJSCA",unknown:"NIEZNANY"},Cw={filters:"FILTRY",donate:"WESPRZYJ","search-button":"Szukaj","reset-button":"Zresetuj","sort-title":"SORTUJ WG:","filter-title":"FILTRUJ WG:","search-title":"SZUKAJ:","search-train-no":"Nr pociągu","search-train":"Nr pociągu / #","search-driver":"Nick maszynisty","search-dispatcher":"Nick dyżurnego","search-station":"Nazwa scenerii","search-author":"Nick autora rozkładu jazdy","search-date":"Data rozkładu jazdy (czas polski)","sort-distance":"kilometraż","sort-total-stops":"stacje","sort-beginDate":"data","sort-timetableId":"ID rozkładu","sort-timestampFrom":"data","sort-duration":"czas dyżuru","sort-mass":"masa","sort-speed":"prędkość","sort-length":"długość","sort-timetable":"nr pociągu","sort-progress":"przebyta trasa","sort-delay":"opóźnienie","sort-comments":"uwagi ekspl.","filter-comments":"UWAGI EKSPLOATACYJNE","filter-twr":"TWR","filter-skr":"PRZEKR. SKRAJNIA","filter-passenger":"PASAŻERSKIE","filter-freight":"TOWAROWE","filter-other":"INNE","filter-noTimetable":"BEZ RJ","filter-reset":"ZRESETUJ FILTRY","filter-clear":"WYŁĄCZ FILTRY","filter-all":"WSZYSTKIE","filter-abandoned":"PORZUCONE","filter-fulfilled":"WYPEŁNIONE","filter-active":"AKTYWNE"},Ow={endingStatus:"KOŃCZY",afkStatus:"Z/W",noSpaceStatus:"BRAK MIEJSCA",unavailableStatus:"NIEDOSTĘPNY",title:"FILTRUJ STACJE",default:"DOMYŚLNA","not-default":"POZA PACZKĄ",real:"REALNA",fictional:"FIKCYJNA",unavailable:"NIEDOSTĘPNA","non-public":"NIEPUBLICZNA",abandoned:"WYCOFANA",SPK:"SPK",SCS:"SCS",SPE:"SPE",manual:"RĘCZNE",SUP:"SUP",SBL:"SBL",mechanical:"MECHANICZNE",modern:"WSPÓŁCZESNA",semaphores:"KSZTAŁTOWA",mixed:"MIESZANA",historical:"HISTORYCZNA",free:"WOLNA",occupied:"ZAJĘTA",sliders:{"min-lvl":"MIN. WYMAGANY POZIOM DYŻURNEGO","max-lvl":"MAKS. WYMAGANY POZIOM DYŻURNEGO","routes-1t-cat":"SZLAKI JEDNOTOROWE ZELEKTR. (MINIMUM)","routes-1t-other":"SZLAKI JEDNOTOROWE NIEZELEKTR. (MINIMUM)","routes-2t-cat":"SZLAKI DWUTOROWE ZELEKTR. (MINIMUM)","routes-2t-other":"SZLAKI DWUTOROWE NIEZELEKTR. (MINIMUM)"},"authors-search":"Szukaj autora (uwzględnia inne filtry)","minimum-hours-title":"POKAŻ TYLKO SCENERIE DOSTĘPNE MINIMUM DO:",now:"TERAZ",hour:" godz.","no-limit":"BEZ LIMITU","include-selected":"POKAŻ ZAZNACZONE",save:"ZAPISZ FILTRY",reset:"RESETUJ FILTRY",close:"ZAMKNIJ FILTRY"},Iw={station:"Stacja","min-lvl":`Min. poziom -dyżurnego`,status:"Status",dispatcher:"Dyżurny","dispatcher-lvl":`Poziom -dyżurnego`,routes:`Szlaki -2tor / 1tor`,general:`Informacje -ogólne`,users:"Maszyniści online",spawns:"Otwarte spawny",timetables:"Aktywne rozkłady jazdy","no-stations":"Brak stacji do wyświetlenia!","scenery-search":"Wyszukaj scenerię..."},Rw={"no-trains":"Brak pociągów do wyświetlenia!",loading:"Pobieranie danych o pociągach...",offline:"Przejazd offline",stats:"STATYSTYKI RUCHU","stats-speed":"PRĘDKOŚCI POCIĄGÓW (MIN, ŚR, MAX) [km/h]","stats-length":"DŁUGOŚCI ROZKŁADÓW (MIN, ŚR, MAX) [km]","stats-categories":"KATEGORIE RJ","stats-special-twr":"WYSOKIEGO RYZYKA","stats-special-skr":"PRZEKROCZONA SKRAJNIA","stats-locos":"NAJCZĘSTSZE JEDNOSTKI","current-scenery":"na scenerii","current-signal":"przy semaforze","current-track":"na szlaku",delayed:"Opóźniony: ",preponed:"Przed czasem: ","on-time":"Planowo","route-progress":"Postęp: ","detailed-timetable":"Szczegółowy rozkład jazdy pociągu ","via-title":"Przez: ","no-timetable":"brak rozkładu jazdy","distance-exceeded":"Uwaga! Z powodu wewnętrznego błędu serwera TD2, rozkłady jazdy o kilometrażu powyżej 200km mogą być niepoprawne!",cars:"Wagony",EZT:"EZT",SZT:"SZT","loco-electric":"Elektrowóz","loco-diesel":"Spalinowóz","timetable-comments":"Pociąg z uwagami eksploatacyjnymi",comment:"Uwagi eksploatacyjne dla: ","table-limit":"Dla płynności działania strony pokazanych jest tylko 10 pociągów zgodnie z wybranymi filtrami.","last-seen-now":"od niedawna","last-seen-min":"od minuty","last-seen-ago":"od {minutes} minut","scenery-offline":"Przejazd offline",timeout:"Wystąpił problem z aktualizacją rozkładów jazdy z SWDR"},Dw={title:"HISTORIA DYŻURÓW",loading:"Ładowanie historii dyżurów...","no-history":"Brak historii dyżurów dla tej scenerii!","section-timetables":"ROZKŁADY JAZDY","section-dispatchers":"DYŻURNI","no-further-data":"Brak dalszych wyników dla podanych parametrów","loading-further-data":"Ładowanie...","online-since":"ONLINE OD","duty-lasted":"Dyżur trwał",minutes:"{minutes} min.",hours:"{hours} godz. {minutes} min.","route-length":"Kilometraż:","station-count":"Stacje:","dispatcher-name":"Wystawiony przez dyżurnego","timetable-day":"Rozkład z dnia","timetable-active":"AKTYWNY","timetable-fulfilled":"WYPEŁNIONY","timetable-abandoned":"PORZUCONY","stock-info":"INFORMACJE O SKŁADZIE","stock-length":"Długość","stock-mass":"Masa","stock-max-speed":"Maks. zarejestrowana prędkość","load-data":"Pobierz dalszą historię...","stats-title":"STATYSTYKI MASZYNISTY","last-seen-at":"Ostatnio widziany na: ","currently-at":"Obecnie na scenerii: ","stats-timetables":"ROZKŁADY JAZDY","stats-longest-timetable":"NAJDŁUŻSZY RJ","stats-avg-timetable":"ŚREDNIA DŁUGOŚĆ RJ","stats-distance":"DYSTANS","stats-stations":"STACJE","timetable-stats-total":"Dyżurni stworzyli dziś {count} o łącznym dystansie {distance}","timetable-stats-longest":"Najdłuższym rozkładem jazdy jest dzisiaj #{id} stworzony przez dyżurnego {author} dla maszynisty {driver} - {distance}","timetable-stats-most-active":"Dzisiejszym najaktywniejszym dyżurnym jest {dispatcher}, który stworzył {count}","timetable-count":"rozkład jazdy | rozkładów jazdy","daily-stats-title":"STATYSTYKI DNIA","daily-stats-info":"Dzisiejsze statystyki nie są jeszcze dostępne!","driver-stats-title":"STATYSTYKI GRACZA","driver-stats-info":"Wpisz nazwę użytkownika w filtrach [F], aby zobaczyć jego statystyki maszynisty!","stats-loading":"Pobieranie statystyk...","stats-error":"Ups! Wystąpił błąd podczas próby pobrania statystyk! :/"},$w={users:"GRACZE ONLINE",spawns:"OTWARTE SPAWNY",timetables:"AKTYWNE ROZKŁADY JAZDY","no-timetables":"Brak aktywnych rozkładów!",offline:"Sceneria jest offline","no-users":"BRAK AKTYWNYCH GRACZY","no-spawns":"BRAK OTWARTYCH SPAWNÓW","no-scenery":"Ups! Ta sceneria nie istnieje!","return-btn":"Wróć na stronę główną","history-btn":"Przejdź do widoku historii dyżurnych ruchu","info-btn":"Wróc do widoku scenerii","authors-title":"Autor scenerii | Autorzy scenerii","lines-title":"Rzeczywiste linie","project-title":"Projekt","one-way-routes":"Szlaki jednotorowe","two-way-routes":"Szlaki dwutorowe","option-active-timetables":"Aktywne rozkłady jazdy","option-timetables-history":"Historia rozkładów scenerii","option-dispatchers-history":"Historia dyżurów scenerii","timetable-author-title":"Wydany przez","timetable-author-unknown":"Autor nieznany","req-level":"ogólnodostępna | minimum {lvl} poziom dyżurnego | minimum {lvl} poziom dyżurnego","history-list-empty":"Brak historii dla tej scenerii!","forum-topic":"Oficjalny wątek scenerii {name}"},Pw={title:"Dostępność",default:"w paczce",nonDefault:"poza paczką",unavailable:"niedostępna",nonPublic:"niepubliczna",abandoned:"wycofana"},Fw={"timetable-only":"Wyodrębnij rozkłady jazdy",end:"Koniec rozkładu jazdy",terminated:"Rozkład jazdy zakończony",begins:`ROZPOCZYNA -BIEG`,terminates:"KOŃCZY BIEG"},Mw={title:"DZIENNIK ROZKŁADÓW JAZDY"},Bw={app:ww,update:Tw,"data-status":{"S1a-connection":"Sygnał S1a
Błąd podczas próby połączenia się z API Stacjownika!","S1a-sceneries":"Sygnał S1a
Błąd podczas pobierania danych o sceneriach online!",S2:"Sygnał S2
Pomyślnie załadowano dane!",S3:"Sygnał S3
Pobieranie danych...","S5-timetables":"Sygnał S5
Rozkłady jazdy mogą być niekompletne!","S5-dispatchers":"Sygnał S5
Błąd podczas pobierania danych o statusach dyżurnych ruchu!","S5-trains":"Sygnał S5
Błąd podczas pobierania danych o pociągach online!"},desc:Aw,signals:kw,controls:Lw,status:Nw,options:Cw,filters:Ow,sceneries:Iw,trains:Rw,journal:Dw,scenery:$w,availability:Pw,timetables:Fw,history:Mw};const Oi=typeof window<"u",Uw=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",mn=e=>Uw?Symbol(e):e,jw=(e,t,n)=>xw({l:e,k:t,s:n}),xw=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),Ve=e=>typeof e=="number"&&isFinite(e),Hw=e=>Oo(e)==="[object Date]",pn=e=>Oo(e)==="[object RegExp]",Mr=e=>re(e)&&Object.keys(e).length===0;function Vw(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const Ye=Object.assign;let rc;const ws=()=>rc||(rc=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function ic(e){return e.replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}const Ww=Object.prototype.hasOwnProperty;function Co(e,t){return Ww.call(e,t)}const Oe=Array.isArray,Me=e=>typeof e=="function",K=e=>typeof e=="string",de=e=>typeof e=="boolean",Ie=e=>e!==null&&typeof e=="object",Wf=Object.prototype.toString,Oo=e=>Wf.call(e),re=e=>Oo(e)==="[object Object]",zw=e=>e==null?"":Oe(e)||re(e)&&e.toString===Wf?JSON.stringify(e,null,2):String(e);const ve={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,__EXTEND_POINT__:15};function Br(e,t,n={}){const{domain:s,messages:r,args:i}=n,o=e,a=new SyntaxError(String(o));return a.code=e,t&&(a.location=t),a.domain=s,a}function Kw(e){throw e}function Yw(e,t,n){return{line:e,column:t,offset:n}}function Ii(e,t,n){const s={start:e,end:t};return n!=null&&(s.source=n),s}const xt=" ",Gw="\r",tt=` -`,qw=String.fromCharCode(8232),Jw=String.fromCharCode(8233);function Zw(e){const t=e;let n=0,s=1,r=1,i=0;const o=M=>t[M]===Gw&&t[M+1]===tt,a=M=>t[M]===tt,l=M=>t[M]===Jw,c=M=>t[M]===qw,u=M=>o(M)||a(M)||l(M)||c(M),h=()=>n,p=()=>s,b=()=>r,E=()=>i,v=M=>o(M)||l(M)||c(M)?tt:t[M],I=()=>v(n),_=()=>v(n+i);function S(){return i=0,u(n)&&(s++,r=0),o(n)&&n++,n++,r++,t[n]}function A(){return o(n+i)&&i++,i++,t[n+i]}function w(){n=0,s=1,r=1,i=0}function L(M=0){i=M}function U(){const M=n+i;for(;M!==n;)S();i=0}return{index:h,line:p,column:b,peekOffset:E,charAt:v,currentChar:I,currentPeek:_,next:S,peek:A,reset:w,resetPeek:L,skipToPeek:U}}const tn=void 0,oc="'",Xw="tokenizer";function Qw(e,t={}){const n=t.location!==!1,s=Zw(e),r=()=>s.index(),i=()=>Yw(s.line(),s.column(),s.index()),o=i(),a=r(),l={currentType:14,offset:a,startLoc:o,endLoc:o,lastType:14,lastOffset:a,lastStartLoc:o,lastEndLoc:o,braceNest:0,inLinked:!1,text:""},c=()=>l,{onError:u}=t;function h(f,d,g,...T){const D=c();if(d.column+=g,d.offset+=g,u){const B=Ii(D.startLoc,d),j=Br(f,B,{domain:Xw,args:T});u(j)}}function p(f,d,g){f.endLoc=i(),f.currentType=d;const T={type:d};return n&&(T.loc=Ii(f.startLoc,f.endLoc)),g!=null&&(T.value=g),T}const b=f=>p(f,14);function E(f,d){return f.currentChar()===d?(f.next(),d):(h(ve.EXPECTED_TOKEN,i(),0,d),"")}function v(f){let d="";for(;f.currentPeek()===xt||f.currentPeek()===tt;)d+=f.currentPeek(),f.peek();return d}function I(f){const d=v(f);return f.skipToPeek(),d}function _(f){if(f===tn)return!1;const d=f.charCodeAt(0);return d>=97&&d<=122||d>=65&&d<=90||d===95}function S(f){if(f===tn)return!1;const d=f.charCodeAt(0);return d>=48&&d<=57}function A(f,d){const{currentType:g}=d;if(g!==2)return!1;v(f);const T=_(f.currentPeek());return f.resetPeek(),T}function w(f,d){const{currentType:g}=d;if(g!==2)return!1;v(f);const T=f.currentPeek()==="-"?f.peek():f.currentPeek(),D=S(T);return f.resetPeek(),D}function L(f,d){const{currentType:g}=d;if(g!==2)return!1;v(f);const T=f.currentPeek()===oc;return f.resetPeek(),T}function U(f,d){const{currentType:g}=d;if(g!==8)return!1;v(f);const T=f.currentPeek()===".";return f.resetPeek(),T}function M(f,d){const{currentType:g}=d;if(g!==9)return!1;v(f);const T=_(f.currentPeek());return f.resetPeek(),T}function x(f,d){const{currentType:g}=d;if(!(g===8||g===12))return!1;v(f);const T=f.currentPeek()===":";return f.resetPeek(),T}function G(f,d){const{currentType:g}=d;if(g!==10)return!1;const T=()=>{const B=f.currentPeek();return B==="{"?_(f.peek()):B==="@"||B==="%"||B==="|"||B===":"||B==="."||B===xt||!B?!1:B===tt?(f.peek(),T()):_(B)},D=T();return f.resetPeek(),D}function Z(f){v(f);const d=f.currentPeek()==="|";return f.resetPeek(),d}function ne(f){const d=v(f),g=f.currentPeek()==="%"&&f.peek()==="{";return f.resetPeek(),{isModulo:g,hasSpace:d.length>0}}function W(f,d=!0){const g=(D=!1,B="",j=!1)=>{const H=f.currentPeek();return H==="{"?B==="%"?!1:D:H==="@"||!H?B==="%"?!0:D:H==="%"?(f.peek(),g(D,"%",!0)):H==="|"?B==="%"||j?!0:!(B===xt||B===tt):H===xt?(f.peek(),g(!0,xt,j)):H===tt?(f.peek(),g(!0,tt,j)):!0},T=g();return d&&f.resetPeek(),T}function ae(f,d){const g=f.currentChar();return g===tn?tn:d(g)?(f.next(),g):null}function we(f){return ae(f,g=>{const T=g.charCodeAt(0);return T>=97&&T<=122||T>=65&&T<=90||T>=48&&T<=57||T===95||T===36})}function Ne(f){return ae(f,g=>{const T=g.charCodeAt(0);return T>=48&&T<=57})}function he(f){return ae(f,g=>{const T=g.charCodeAt(0);return T>=48&&T<=57||T>=65&&T<=70||T>=97&&T<=102})}function ce(f){let d="",g="";for(;d=Ne(f);)g+=d;return g}function ue(f){I(f);const d=f.currentChar();return d!=="%"&&h(ve.EXPECTED_TOKEN,i(),0,d),f.next(),"%"}function ze(f){let d="";for(;;){const g=f.currentChar();if(g==="{"||g==="}"||g==="@"||g==="|"||!g)break;if(g==="%")if(W(f))d+=g,f.next();else break;else if(g===xt||g===tt)if(W(f))d+=g,f.next();else{if(Z(f))break;d+=g,f.next()}else d+=g,f.next()}return d}function ot(f){I(f);let d="",g="";for(;d=we(f);)g+=d;return f.currentChar()===tn&&h(ve.UNTERMINATED_CLOSING_BRACE,i(),0),g}function Je(f){I(f);let d="";return f.currentChar()==="-"?(f.next(),d+=`-${ce(f)}`):d+=ce(f),f.currentChar()===tn&&h(ve.UNTERMINATED_CLOSING_BRACE,i(),0),d}function Ue(f){I(f),E(f,"'");let d="",g="";const T=B=>B!==oc&&B!==tt;for(;d=ae(f,T);)d==="\\"?g+=bt(f):g+=d;const D=f.currentChar();return D===tt||D===tn?(h(ve.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,i(),0),D===tt&&(f.next(),E(f,"'")),g):(E(f,"'"),g)}function bt(f){const d=f.currentChar();switch(d){case"\\":case"'":return f.next(),`\\${d}`;case"u":return vt(f,d,4);case"U":return vt(f,d,6);default:return h(ve.UNKNOWN_ESCAPE_SEQUENCE,i(),0,d),""}}function vt(f,d,g){E(f,d);let T="";for(let D=0;DD!=="{"&&D!=="}"&&D!==xt&&D!==tt;for(;d=ae(f,T);)g+=d;return g}function z(f){let d="",g="";for(;d=we(f);)g+=d;return g}function V(f){const d=(g=!1,T)=>{const D=f.currentChar();return D==="{"||D==="%"||D==="@"||D==="|"||!D||D===xt?T:D===tt?(T+=D,f.next(),d(g,T)):(T+=D,f.next(),d(!0,T))};return d(!1,"")}function q(f){I(f);const d=E(f,"|");return I(f),d}function ie(f,d){let g=null;switch(f.currentChar()){case"{":return d.braceNest>=1&&h(ve.NOT_ALLOW_NEST_PLACEHOLDER,i(),0),f.next(),g=p(d,2,"{"),I(f),d.braceNest++,g;case"}":return d.braceNest>0&&d.currentType===2&&h(ve.EMPTY_PLACEHOLDER,i(),0),f.next(),g=p(d,3,"}"),d.braceNest--,d.braceNest>0&&I(f),d.inLinked&&d.braceNest===0&&(d.inLinked=!1),g;case"@":return d.braceNest>0&&h(ve.UNTERMINATED_CLOSING_BRACE,i(),0),g=be(f,d)||b(d),d.braceNest=0,g;default:let D=!0,B=!0,j=!0;if(Z(f))return d.braceNest>0&&h(ve.UNTERMINATED_CLOSING_BRACE,i(),0),g=p(d,1,q(f)),d.braceNest=0,d.inLinked=!1,g;if(d.braceNest>0&&(d.currentType===5||d.currentType===6||d.currentType===7))return h(ve.UNTERMINATED_CLOSING_BRACE,i(),0),d.braceNest=0,te(f,d);if(D=A(f,d))return g=p(d,5,ot(f)),I(f),g;if(B=w(f,d))return g=p(d,6,Je(f)),I(f),g;if(j=L(f,d))return g=p(d,7,Ue(f)),I(f),g;if(!D&&!B&&!j)return g=p(d,13,F(f)),h(ve.INVALID_TOKEN_IN_PLACEHOLDER,i(),0,g.value),I(f),g;break}return g}function be(f,d){const{currentType:g}=d;let T=null;const D=f.currentChar();switch((g===8||g===9||g===12||g===10)&&(D===tt||D===xt)&&h(ve.INVALID_LINKED_FORMAT,i(),0),D){case"@":return f.next(),T=p(d,8,"@"),d.inLinked=!0,T;case".":return I(f),f.next(),p(d,9,".");case":":return I(f),f.next(),p(d,10,":");default:return Z(f)?(T=p(d,1,q(f)),d.braceNest=0,d.inLinked=!1,T):U(f,d)||x(f,d)?(I(f),be(f,d)):M(f,d)?(I(f),p(d,12,z(f))):G(f,d)?(I(f),D==="{"?ie(f,d)||T:p(d,11,V(f))):(g===8&&h(ve.INVALID_LINKED_FORMAT,i(),0),d.braceNest=0,d.inLinked=!1,te(f,d))}}function te(f,d){let g={type:14};if(d.braceNest>0)return ie(f,d)||b(d);if(d.inLinked)return be(f,d)||b(d);switch(f.currentChar()){case"{":return ie(f,d)||b(d);case"}":return h(ve.UNBALANCED_CLOSING_BRACE,i(),0),f.next(),p(d,3,"}");case"@":return be(f,d)||b(d);default:if(Z(f))return g=p(d,1,q(f)),d.braceNest=0,d.inLinked=!1,g;const{isModulo:D,hasSpace:B}=ne(f);if(D)return B?p(d,0,ze(f)):p(d,4,ue(f));if(W(f))return p(d,0,ze(f));break}return g}function m(){const{currentType:f,offset:d,startLoc:g,endLoc:T}=l;return l.lastType=f,l.lastOffset=d,l.lastStartLoc=g,l.lastEndLoc=T,l.offset=r(),l.startLoc=i(),s.currentChar()===tn?p(l,14):te(s,l)}return{nextToken:m,currentOffset:r,currentPosition:i,context:c}}const e0="parser",t0=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function n0(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const s=parseInt(t||n,16);return s<=55295||s>=57344?String.fromCodePoint(s):"�"}}}function s0(e={}){const t=e.location!==!1,{onError:n}=e;function s(_,S,A,w,...L){const U=_.currentPosition();if(U.offset+=w,U.column+=w,n){const M=Ii(A,U),x=Br(S,M,{domain:e0,args:L});n(x)}}function r(_,S,A){const w={type:_,start:S,end:S};return t&&(w.loc={start:A,end:A}),w}function i(_,S,A,w){_.end=S,w&&(_.type=w),t&&_.loc&&(_.loc.end=A)}function o(_,S){const A=_.context(),w=r(3,A.offset,A.startLoc);return w.value=S,i(w,_.currentOffset(),_.currentPosition()),w}function a(_,S){const A=_.context(),{lastOffset:w,lastStartLoc:L}=A,U=r(5,w,L);return U.index=parseInt(S,10),_.nextToken(),i(U,_.currentOffset(),_.currentPosition()),U}function l(_,S){const A=_.context(),{lastOffset:w,lastStartLoc:L}=A,U=r(4,w,L);return U.key=S,_.nextToken(),i(U,_.currentOffset(),_.currentPosition()),U}function c(_,S){const A=_.context(),{lastOffset:w,lastStartLoc:L}=A,U=r(9,w,L);return U.value=S.replace(t0,n0),_.nextToken(),i(U,_.currentOffset(),_.currentPosition()),U}function u(_){const S=_.nextToken(),A=_.context(),{lastOffset:w,lastStartLoc:L}=A,U=r(8,w,L);return S.type!==12?(s(_,ve.UNEXPECTED_EMPTY_LINKED_MODIFIER,A.lastStartLoc,0),U.value="",i(U,w,L),{nextConsumeToken:S,node:U}):(S.value==null&&s(_,ve.UNEXPECTED_LEXICAL_ANALYSIS,A.lastStartLoc,0,It(S)),U.value=S.value||"",i(U,_.currentOffset(),_.currentPosition()),{node:U})}function h(_,S){const A=_.context(),w=r(7,A.offset,A.startLoc);return w.value=S,i(w,_.currentOffset(),_.currentPosition()),w}function p(_){const S=_.context(),A=r(6,S.offset,S.startLoc);let w=_.nextToken();if(w.type===9){const L=u(_);A.modifier=L.node,w=L.nextConsumeToken||_.nextToken()}switch(w.type!==10&&s(_,ve.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,It(w)),w=_.nextToken(),w.type===2&&(w=_.nextToken()),w.type){case 11:w.value==null&&s(_,ve.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,It(w)),A.key=h(_,w.value||"");break;case 5:w.value==null&&s(_,ve.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,It(w)),A.key=l(_,w.value||"");break;case 6:w.value==null&&s(_,ve.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,It(w)),A.key=a(_,w.value||"");break;case 7:w.value==null&&s(_,ve.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,It(w)),A.key=c(_,w.value||"");break;default:s(_,ve.UNEXPECTED_EMPTY_LINKED_KEY,S.lastStartLoc,0);const L=_.context(),U=r(7,L.offset,L.startLoc);return U.value="",i(U,L.offset,L.startLoc),A.key=U,i(A,L.offset,L.startLoc),{nextConsumeToken:w,node:A}}return i(A,_.currentOffset(),_.currentPosition()),{node:A}}function b(_){const S=_.context(),A=S.currentType===1?_.currentOffset():S.offset,w=S.currentType===1?S.endLoc:S.startLoc,L=r(2,A,w);L.items=[];let U=null;do{const G=U||_.nextToken();switch(U=null,G.type){case 0:G.value==null&&s(_,ve.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,It(G)),L.items.push(o(_,G.value||""));break;case 6:G.value==null&&s(_,ve.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,It(G)),L.items.push(a(_,G.value||""));break;case 5:G.value==null&&s(_,ve.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,It(G)),L.items.push(l(_,G.value||""));break;case 7:G.value==null&&s(_,ve.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,It(G)),L.items.push(c(_,G.value||""));break;case 8:const Z=p(_);L.items.push(Z.node),U=Z.nextConsumeToken||null;break}}while(S.currentType!==14&&S.currentType!==1);const M=S.currentType===1?S.lastOffset:_.currentOffset(),x=S.currentType===1?S.lastEndLoc:_.currentPosition();return i(L,M,x),L}function E(_,S,A,w){const L=_.context();let U=w.items.length===0;const M=r(1,S,A);M.cases=[],M.cases.push(w);do{const x=b(_);U||(U=x.items.length===0),M.cases.push(x)}while(L.currentType!==14);return U&&s(_,ve.MUST_HAVE_MESSAGES_IN_PLURAL,A,0),i(M,_.currentOffset(),_.currentPosition()),M}function v(_){const S=_.context(),{offset:A,startLoc:w}=S,L=b(_);return S.currentType===14?L:E(_,A,w,L)}function I(_){const S=Qw(_,Ye({},e)),A=S.context(),w=r(0,A.offset,A.startLoc);return t&&w.loc&&(w.loc.source=_),w.body=v(S),A.currentType!==14&&s(S,ve.UNEXPECTED_LEXICAL_ANALYSIS,A.lastStartLoc,0,_[A.offset]||""),i(w,S.currentOffset(),S.currentPosition()),w}return{parse:I}}function It(e){if(e.type===14)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function r0(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:i=>(n.helpers.add(i),i)}}function ac(e,t){for(let n=0;no;function l(v,I){o.code+=v}function c(v,I=!0){const _=I?r:"";l(i?_+" ".repeat(v):_)}function u(v=!0){const I=++o.indentLevel;v&&c(I)}function h(v=!0){const I=--o.indentLevel;v&&c(I)}function p(){c(o.indentLevel)}return{context:a,push:l,indent:u,deindent:h,newline:p,helper:v=>`_${v}`,needIndent:()=>o.needIndent}}function a0(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),ts(e,t.key),t.modifier?(e.push(", "),ts(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function l0(e,t){const{helper:n,needIndent:s}=e;e.push(`${n("normalize")}([`),e.indent(s());const r=t.items.length;for(let i=0;i1){e.push(`${n("plural")}([`),e.indent(s());const r=t.cases.length;for(let i=0;i{const n=K(t.mode)?t.mode:"normal",s=K(t.filename)?t.filename:"message.intl",r=!!t.sourceMap,i=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":` -`,o=t.needIndent?t.needIndent:n!=="arrow",a=e.helpers||[],l=o0(e,{mode:n,filename:s,sourceMap:r,breakLineCode:i,needIndent:o});l.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),l.indent(o),a.length>0&&(l.push(`const { ${a.map(h=>`${h}: _${h}`).join(", ")} } = ctx`),l.newline()),l.push("return "),ts(l,e),l.deindent(o),l.push("}");const{code:c,map:u}=l.context();return{ast:e,code:c,map:u?u.toJSON():void 0}};function d0(e,t={}){const n=Ye({},t),r=s0(n).parse(e);return i0(r,n),f0(r,n)}const zf={I18nInit:"i18n:init",FunctionTranslate:"function:translate"};const gn=[];gn[0]={w:[0],i:[3,0],["["]:[4],o:[7]};gn[1]={w:[1],["."]:[2],["["]:[4],o:[7]};gn[2]={w:[2],i:[3,0],[0]:[3,0]};gn[3]={i:[3,0],[0]:[3,0],w:[1,1],["."]:[2,1],["["]:[4,1],o:[7,1]};gn[4]={["'"]:[5,0],['"']:[6,0],["["]:[4,2],["]"]:[1,3],o:8,l:[4,0]};gn[5]={["'"]:[4,0],o:8,l:[5,0]};gn[6]={['"']:[4,0],o:8,l:[6,0]};const h0=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function p0(e){return h0.test(e)}function m0(e){const t=e.charCodeAt(0),n=e.charCodeAt(e.length-1);return t===n&&(t===34||t===39)?e.slice(1,-1):e}function g0(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function _0(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:p0(t)?m0(t):"*"+t}function y0(e){const t=[];let n=-1,s=0,r=0,i,o,a,l,c,u,h;const p=[];p[0]=()=>{o===void 0?o=a:o+=a},p[1]=()=>{o!==void 0&&(t.push(o),o=void 0)},p[2]=()=>{p[0](),r++},p[3]=()=>{if(r>0)r--,s=4,p[0]();else{if(r=0,o===void 0||(o=_0(o),o===!1))return!1;p[1]()}};function b(){const E=e[n+1];if(s===5&&E==="'"||s===6&&E==='"')return n++,a="\\"+E,p[0](),!0}for(;s!==null;)if(n++,i=e[n],!(i==="\\"&&b())){if(l=g0(i),h=gn[s],c=h[l]||h.l||8,c===8||(s=c[0],c[1]!==void 0&&(u=p[c[1]],u&&(a=i,u()===!1))))return;if(s===7)return t}}const lc=new Map;function b0(e,t){return Ie(e)?e[t]:null}function v0(e,t){if(!Ie(e))return null;let n=lc.get(t);if(n||(n=y0(t),n&&lc.set(t,n)),!n)return null;const s=n.length;let r=e,i=0;for(;ie,E0=e=>"",w0="text",T0=e=>e.length===0?"":e.join(""),A0=zw;function cc(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function k0(e){const t=Ve(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(Ve(e.named.count)||Ve(e.named.n))?Ve(e.named.count)?e.named.count:Ve(e.named.n)?e.named.n:t:t}function L0(e,t){t.count||(t.count=e),t.n||(t.n=e)}function N0(e={}){const t=e.locale,n=k0(e),s=Ie(e.pluralRules)&&K(t)&&Me(e.pluralRules[t])?e.pluralRules[t]:cc,r=Ie(e.pluralRules)&&K(t)&&Me(e.pluralRules[t])?cc:void 0,i=_=>_[s(n,_.length,r)],o=e.list||[],a=_=>o[_],l=e.named||{};Ve(e.pluralIndex)&&L0(n,l);const c=_=>l[_];function u(_){const S=Me(e.messages)?e.messages(_):Ie(e.messages)?e.messages[_]:!1;return S||(e.parent?e.parent.message(_):E0)}const h=_=>e.modifiers?e.modifiers[_]:S0,p=re(e.processor)&&Me(e.processor.normalize)?e.processor.normalize:T0,b=re(e.processor)&&Me(e.processor.interpolate)?e.processor.interpolate:A0,E=re(e.processor)&&K(e.processor.type)?e.processor.type:w0,I={list:a,named:c,plural:i,linked:(_,...S)=>{const[A,w]=S;let L="text",U="";S.length===1?Ie(A)?(U=A.modifier||U,L=A.type||L):K(A)&&(U=A||U):S.length===2&&(K(A)&&(U=A||U),K(w)&&(L=w||L));let M=u(_)(I);return L==="vnode"&&Oe(M)&&U&&(M=M[0]),U?h(U)(M,L):M},message:u,type:E,interpolate:b,normalize:p};return I}let Ms=null;function C0(e){Ms=e}function O0(e,t,n){Ms&&Ms.emit(zf.I18nInit,{timestamp:Date.now(),i18n:e,version:t,meta:n})}const I0=R0(zf.FunctionTranslate);function R0(e){return t=>Ms&&Ms.emit(e,t)}const D0={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,__EXTEND_POINT__:7};function $0(e,t,n){return[...new Set([n,...Oe(t)?t:Ie(t)?Object.keys(t):K(t)?[t]:[n]])]}function Kf(e,t,n){const s=K(n)?n:Ws,r=e;r.__localeChainCache||(r.__localeChainCache=new Map);let i=r.__localeChainCache.get(s);if(!i){i=[];let o=[n];for(;Oe(o);)o=uc(i,o,t);const a=Oe(t)||!re(t)?t:t.default?t.default:null;o=K(a)?[a]:a,Oe(o)&&uc(i,o,!1),r.__localeChainCache.set(s,i)}return i}function uc(e,t,n){let s=!0;for(let r=0;r`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function B0(){return{upper:(e,t)=>t==="text"&&K(e)?e.toUpperCase():t==="vnode"&&Ie(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&K(e)?e.toLowerCase():t==="vnode"&&Ie(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&K(e)?dc(e):t==="vnode"&&Ie(e)&&"__v_isVNode"in e?dc(e.children):e}}let Yf;function U0(e){Yf=e}let Gf;function j0(e){Gf=e}let qf;function x0(e){qf=e}let Jf=null;const hc=e=>{Jf=e},H0=()=>Jf;let Zf=null;const pc=e=>{Zf=e},V0=()=>Zf;let mc=0;function W0(e={}){const t=K(e.version)?e.version:M0,n=K(e.locale)?e.locale:Ws,s=Oe(e.fallbackLocale)||re(e.fallbackLocale)||K(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:n,r=re(e.messages)?e.messages:{[n]:{}},i=re(e.datetimeFormats)?e.datetimeFormats:{[n]:{}},o=re(e.numberFormats)?e.numberFormats:{[n]:{}},a=Ye({},e.modifiers||{},B0()),l=e.pluralRules||{},c=Me(e.missing)?e.missing:null,u=de(e.missingWarn)||pn(e.missingWarn)?e.missingWarn:!0,h=de(e.fallbackWarn)||pn(e.fallbackWarn)?e.fallbackWarn:!0,p=!!e.fallbackFormat,b=!!e.unresolving,E=Me(e.postTranslation)?e.postTranslation:null,v=re(e.processor)?e.processor:null,I=de(e.warnHtmlMessage)?e.warnHtmlMessage:!0,_=!!e.escapeParameter,S=Me(e.messageCompiler)?e.messageCompiler:Yf,A=Me(e.messageResolver)?e.messageResolver:Gf||b0,w=Me(e.localeFallbacker)?e.localeFallbacker:qf||$0,L=Ie(e.fallbackContext)?e.fallbackContext:void 0,U=Me(e.onWarn)?e.onWarn:Vw,M=e,x=Ie(M.__datetimeFormatters)?M.__datetimeFormatters:new Map,G=Ie(M.__numberFormatters)?M.__numberFormatters:new Map,Z=Ie(M.__meta)?M.__meta:{};mc++;const ne={version:t,cid:mc,locale:n,fallbackLocale:s,messages:r,modifiers:a,pluralRules:l,missing:c,missingWarn:u,fallbackWarn:h,fallbackFormat:p,unresolving:b,postTranslation:E,processor:v,warnHtmlMessage:I,escapeParameter:_,messageCompiler:S,messageResolver:A,localeFallbacker:w,fallbackContext:L,onWarn:U,__meta:Z};return ne.datetimeFormats=i,ne.numberFormats=o,ne.__datetimeFormatters=x,ne.__numberFormatters=G,__INTLIFY_PROD_DEVTOOLS__&&O0(ne,t,Z),ne}function Ro(e,t,n,s,r){const{missing:i,onWarn:o}=e;if(i!==null){const a=i(e,n,t,r);return K(a)?a:t}else return t}function ps(e,t,n){const s=e;s.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}const z0=e=>e;let gc=Object.create(null);function K0(e,t={}){{const s=(t.onCacheKey||z0)(e),r=gc[s];if(r)return r;let i=!1;const o=t.onError||Kw;t.onError=c=>{i=!0,o(c)};const{code:a}=d0(e,t),l=new Function(`return ${a}`)();return i?l:gc[s]=l}}let Xf=ve.__EXTEND_POINT__;const ni=()=>++Xf,Bn={INVALID_ARGUMENT:Xf,INVALID_DATE_ARGUMENT:ni(),INVALID_ISO_DATE_ARGUMENT:ni(),__EXTEND_POINT__:ni()};function Un(e){return Br(e,null,void 0)}const _c=()=>"",Dt=e=>Me(e);function yc(e,...t){const{fallbackFormat:n,postTranslation:s,unresolving:r,messageCompiler:i,fallbackLocale:o,messages:a}=e,[l,c]=Ri(...t),u=de(c.missingWarn)?c.missingWarn:e.missingWarn,h=de(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,p=de(c.escapeParameter)?c.escapeParameter:e.escapeParameter,b=!!c.resolvedMessage,E=K(c.default)||de(c.default)?de(c.default)?i?l:()=>l:c.default:n?i?l:()=>l:"",v=n||E!=="",I=K(c.locale)?c.locale:e.locale;p&&Y0(c);let[_,S,A]=b?[l,I,a[I]||{}]:Qf(e,l,I,o,h,u),w=_,L=l;if(!b&&!(K(w)||Dt(w))&&v&&(w=E,L=w),!b&&(!(K(w)||Dt(w))||!K(S)))return r?Ur:l;let U=!1;const M=()=>{U=!0},x=Dt(w)?w:ed(e,l,S,w,L,M);if(U)return w;const G=J0(e,S,A,c),Z=N0(G),ne=G0(e,x,Z),W=s?s(ne,l):ne;if(__INTLIFY_PROD_DEVTOOLS__){const ae={timestamp:Date.now(),key:K(l)?l:Dt(w)?w.key:"",locale:S||(Dt(w)?w.locale:""),format:K(w)?w:Dt(w)?w.source:"",message:W};ae.meta=Ye({},e.__meta,H0()||{}),I0(ae)}return W}function Y0(e){Oe(e.list)?e.list=e.list.map(t=>K(t)?ic(t):t):Ie(e.named)&&Object.keys(e.named).forEach(t=>{K(e.named[t])&&(e.named[t]=ic(e.named[t]))})}function Qf(e,t,n,s,r,i){const{messages:o,onWarn:a,messageResolver:l,localeFallbacker:c}=e,u=c(e,s,n);let h={},p,b=null;const E="translate";for(let v=0;vs;return c.locale=n,c.key=t,c}const l=o(s,q0(e,n,r,s,a,i));return l.locale=n,l.key=t,l.source=s,l}function G0(e,t,n){return t(n)}function Ri(...e){const[t,n,s]=e,r={};if(!K(t)&&!Ve(t)&&!Dt(t))throw Un(Bn.INVALID_ARGUMENT);const i=Ve(t)?String(t):(Dt(t),t);return Ve(n)?r.plural=n:K(n)?r.default=n:re(n)&&!Mr(n)?r.named=n:Oe(n)&&(r.list=n),Ve(s)?r.plural=s:K(s)?r.default=s:re(s)&&Ye(r,s),[i,r]}function q0(e,t,n,s,r,i){return{warnHtmlMessage:r,onError:o=>{throw i&&i(o),o},onCacheKey:o=>jw(t,n,o)}}function J0(e,t,n,s){const{modifiers:r,pluralRules:i,messageResolver:o,fallbackLocale:a,fallbackWarn:l,missingWarn:c,fallbackContext:u}=e,p={locale:t,modifiers:r,pluralRules:i,messages:b=>{let E=o(n,b);if(E==null&&u){const[,,v]=Qf(u,b,t,a,l,c);E=o(v,b)}if(K(E)){let v=!1;const _=ed(e,b,t,E,b,()=>{v=!0});return v?_c:_}else return Dt(E)?E:_c}};return e.processor&&(p.processor=e.processor),s.list&&(p.list=s.list),s.named&&(p.named=s.named),Ve(s.plural)&&(p.pluralIndex=s.plural),p}function bc(e,...t){const{datetimeFormats:n,unresolving:s,fallbackLocale:r,onWarn:i,localeFallbacker:o}=e,{__datetimeFormatters:a}=e,[l,c,u,h]=Di(...t),p=de(u.missingWarn)?u.missingWarn:e.missingWarn;de(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const b=!!u.part,E=K(u.locale)?u.locale:e.locale,v=o(e,r,E);if(!K(l)||l==="")return new Intl.DateTimeFormat(E,h).format(c);let I={},_,S=null;const A="datetime format";for(let U=0;U{td.includes(l)?o[l]=n[l]:i[l]=n[l]}),K(s)?i.locale=s:re(s)&&(o=s),re(r)&&(o=r),[i.key||"",a,i,o]}function vc(e,t,n){const s=e;for(const r in n){const i=`${t}__${r}`;s.__datetimeFormatters.has(i)&&s.__datetimeFormatters.delete(i)}}function Sc(e,...t){const{numberFormats:n,unresolving:s,fallbackLocale:r,onWarn:i,localeFallbacker:o}=e,{__numberFormatters:a}=e,[l,c,u,h]=$i(...t),p=de(u.missingWarn)?u.missingWarn:e.missingWarn;de(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const b=!!u.part,E=K(u.locale)?u.locale:e.locale,v=o(e,r,E);if(!K(l)||l==="")return new Intl.NumberFormat(E,h).format(c);let I={},_,S=null;const A="number format";for(let U=0;U{nd.includes(l)?o[l]=n[l]:i[l]=n[l]}),K(s)?i.locale=s:re(s)&&(o=s),re(r)&&(o=r),[i.key||"",a,i,o]}function Ec(e,t,n){const s=e;for(const r in n){const i=`${t}__${r}`;s.__numberFormatters.has(i)&&s.__numberFormatters.delete(i)}}typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(ws().__INTLIFY_PROD_DEVTOOLS__=!1);const Z0="9.2.2";function X0(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(ws().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(ws().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(ws().__INTLIFY_PROD_DEVTOOLS__=!1)}D0.__EXTEND_POINT__;let sd=ve.__EXTEND_POINT__;const rt=()=>++sd,He={UNEXPECTED_RETURN_TYPE:sd,INVALID_ARGUMENT:rt(),MUST_BE_CALL_SETUP_TOP:rt(),NOT_INSLALLED:rt(),NOT_AVAILABLE_IN_LEGACY_MODE:rt(),REQUIRED_VALUE:rt(),INVALID_VALUE:rt(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:rt(),NOT_INSLALLED_WITH_PROVIDE:rt(),UNEXPECTED_ERROR:rt(),NOT_COMPATIBLE_LEGACY_VUE_I18N:rt(),BRIDGE_SUPPORT_VUE_2_ONLY:rt(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:rt(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:rt(),__EXTEND_POINT__:rt()};function We(e,...t){return Br(e,null,void 0)}const Pi=mn("__transrateVNode"),Fi=mn("__datetimeParts"),Mi=mn("__numberParts"),rd=mn("__setPluralRules");mn("__intlifyMeta");const id=mn("__injectWithOption");function Bi(e){if(!Ie(e))return e;for(const t in e)if(Co(e,t))if(!t.includes("."))Ie(e[t])&&Bi(e[t]);else{const n=t.split("."),s=n.length-1;let r=e;for(let i=0;i{if("locale"in a&&"resource"in a){const{locale:l,resource:c}=a;l?(o[l]=o[l]||{},Ts(c,o[l])):Ts(c,o)}else K(a)&&Ts(JSON.parse(a),o)}),r==null&&i)for(const a in o)Co(o,a)&&Bi(o[a]);return o}const er=e=>!Ie(e)||Oe(e);function Ts(e,t){if(er(e)||er(t))throw We(He.INVALID_VALUE);for(const n in e)Co(e,n)&&(er(e[n])||er(t[n])?t[n]=e[n]:Ts(e[n],t[n]))}function od(e){return e.type}function ad(e,t,n){let s=Ie(t.messages)?t.messages:{};"__i18nGlobal"in n&&(s=jr(e.locale.value,{messages:s,__i18n:n.__i18nGlobal}));const r=Object.keys(s);r.length&&r.forEach(i=>{e.mergeLocaleMessage(i,s[i])});{if(Ie(t.datetimeFormats)){const i=Object.keys(t.datetimeFormats);i.length&&i.forEach(o=>{e.mergeDateTimeFormat(o,t.datetimeFormats[o])})}if(Ie(t.numberFormats)){const i=Object.keys(t.numberFormats);i.length&&i.forEach(o=>{e.mergeNumberFormat(o,t.numberFormats[o])})}}}function wc(e){return se(Us,null,e,0)}const Tc="__INTLIFY_META__";let Ac=0;function kc(e){return(t,n,s,r)=>e(n,s,Gt()||void 0,r)}const Q0=()=>{const e=Gt();let t=null;return e&&(t=od(e)[Tc])?{[Tc]:t}:null};function Do(e={},t){const{__root:n}=e,s=n===void 0;let r=de(e.inheritLocale)?e.inheritLocale:!0;const i=Se(n&&r?n.locale.value:K(e.locale)?e.locale:Ws),o=Se(n&&r?n.fallbackLocale.value:K(e.fallbackLocale)||Oe(e.fallbackLocale)||re(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:i.value),a=Se(jr(i.value,e)),l=Se(re(e.datetimeFormats)?e.datetimeFormats:{[i.value]:{}}),c=Se(re(e.numberFormats)?e.numberFormats:{[i.value]:{}});let u=n?n.missingWarn:de(e.missingWarn)||pn(e.missingWarn)?e.missingWarn:!0,h=n?n.fallbackWarn:de(e.fallbackWarn)||pn(e.fallbackWarn)?e.fallbackWarn:!0,p=n?n.fallbackRoot:de(e.fallbackRoot)?e.fallbackRoot:!0,b=!!e.fallbackFormat,E=Me(e.missing)?e.missing:null,v=Me(e.missing)?kc(e.missing):null,I=Me(e.postTranslation)?e.postTranslation:null,_=n?n.warnHtmlMessage:de(e.warnHtmlMessage)?e.warnHtmlMessage:!0,S=!!e.escapeParameter;const A=n?n.modifiers:re(e.modifiers)?e.modifiers:{};let w=e.pluralRules||n&&n.pluralRules,L;L=(()=>{s&&pc(null);const k={version:Z0,locale:i.value,fallbackLocale:o.value,messages:a.value,modifiers:A,pluralRules:w,missing:v===null?void 0:v,missingWarn:u,fallbackWarn:h,fallbackFormat:b,unresolving:!0,postTranslation:I===null?void 0:I,warnHtmlMessage:_,escapeParameter:S,messageResolver:e.messageResolver,__meta:{framework:"vue"}};k.datetimeFormats=l.value,k.numberFormats=c.value,k.__datetimeFormatters=re(L)?L.__datetimeFormatters:void 0,k.__numberFormatters=re(L)?L.__numberFormatters:void 0;const C=W0(k);return s&&pc(C),C})(),ps(L,i.value,o.value);function M(){return[i.value,o.value,a.value,l.value,c.value]}const x=Te({get:()=>i.value,set:k=>{i.value=k,L.locale=i.value}}),G=Te({get:()=>o.value,set:k=>{o.value=k,L.fallbackLocale=o.value,ps(L,i.value,k)}}),Z=Te(()=>a.value),ne=Te(()=>l.value),W=Te(()=>c.value);function ae(){return Me(I)?I:null}function we(k){I=k,L.postTranslation=k}function Ne(){return E}function he(k){k!==null&&(v=kc(k)),E=k,L.missing=v}const ce=(k,C,Y,J,le,Ee)=>{M();let fe;if(__INTLIFY_PROD_DEVTOOLS__)try{hc(Q0()),s||(L.fallbackContext=n?V0():void 0),fe=k(L)}finally{hc(null),s||(L.fallbackContext=void 0)}else fe=k(L);if(Ve(fe)&&fe===Ur){const[$e,ft]=C();return n&&p?J(n):le($e)}else{if(Ee(fe))return fe;throw We(He.UNEXPECTED_RETURN_TYPE)}};function ue(...k){return ce(C=>Reflect.apply(yc,null,[C,...k]),()=>Ri(...k),"translate",C=>Reflect.apply(C.t,C,[...k]),C=>C,C=>K(C))}function ze(...k){const[C,Y,J]=k;if(J&&!Ie(J))throw We(He.INVALID_ARGUMENT);return ue(C,Y,Ye({resolvedMessage:!0},J||{}))}function ot(...k){return ce(C=>Reflect.apply(bc,null,[C,...k]),()=>Di(...k),"datetime format",C=>Reflect.apply(C.d,C,[...k]),()=>fc,C=>K(C))}function Je(...k){return ce(C=>Reflect.apply(Sc,null,[C,...k]),()=>$i(...k),"number format",C=>Reflect.apply(C.n,C,[...k]),()=>fc,C=>K(C))}function Ue(k){return k.map(C=>K(C)||Ve(C)||de(C)?wc(String(C)):C)}const vt={normalize:Ue,interpolate:k=>k,type:"vnode"};function F(...k){return ce(C=>{let Y;const J=C;try{J.processor=vt,Y=Reflect.apply(yc,null,[J,...k])}finally{J.processor=null}return Y},()=>Ri(...k),"translate",C=>C[Pi](...k),C=>[wc(C)],C=>Oe(C))}function z(...k){return ce(C=>Reflect.apply(Sc,null,[C,...k]),()=>$i(...k),"number format",C=>C[Mi](...k),()=>[],C=>K(C)||Oe(C))}function V(...k){return ce(C=>Reflect.apply(bc,null,[C,...k]),()=>Di(...k),"datetime format",C=>C[Fi](...k),()=>[],C=>K(C)||Oe(C))}function q(k){w=k,L.pluralRules=w}function ie(k,C){const Y=K(C)?C:i.value,J=m(Y);return L.messageResolver(J,k)!==null}function be(k){let C=null;const Y=Kf(L,o.value,i.value);for(let J=0;J{r&&(i.value=k,L.locale=k,ps(L,i.value,o.value))}),gt(n.fallbackLocale,k=>{r&&(o.value=k,L.fallbackLocale=k,ps(L,i.value,o.value))}));const P={id:Ac,locale:x,fallbackLocale:G,get inheritLocale(){return r},set inheritLocale(k){r=k,k&&n&&(i.value=n.locale.value,o.value=n.fallbackLocale.value,ps(L,i.value,o.value))},get availableLocales(){return Object.keys(a.value).sort()},messages:Z,get modifiers(){return A},get pluralRules(){return w||{}},get isGlobal(){return s},get missingWarn(){return u},set missingWarn(k){u=k,L.missingWarn=u},get fallbackWarn(){return h},set fallbackWarn(k){h=k,L.fallbackWarn=h},get fallbackRoot(){return p},set fallbackRoot(k){p=k},get fallbackFormat(){return b},set fallbackFormat(k){b=k,L.fallbackFormat=b},get warnHtmlMessage(){return _},set warnHtmlMessage(k){_=k,L.warnHtmlMessage=k},get escapeParameter(){return S},set escapeParameter(k){S=k,L.escapeParameter=k},t:ue,getLocaleMessage:m,setLocaleMessage:f,mergeLocaleMessage:d,getPostTranslationHandler:ae,setPostTranslationHandler:we,getMissingHandler:Ne,setMissingHandler:he,[rd]:q};return P.datetimeFormats=ne,P.numberFormats=W,P.rt=ze,P.te=ie,P.tm=te,P.d=ot,P.n=Je,P.getDateTimeFormat=g,P.setDateTimeFormat=T,P.mergeDateTimeFormat=D,P.getNumberFormat=B,P.setNumberFormat=j,P.mergeNumberFormat=H,P[id]=e.__injectWithOption,P[Pi]=F,P[Fi]=V,P[Mi]=z,P}function eT(e){const t=K(e.locale)?e.locale:Ws,n=K(e.fallbackLocale)||Oe(e.fallbackLocale)||re(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,s=Me(e.missing)?e.missing:void 0,r=de(e.silentTranslationWarn)||pn(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,i=de(e.silentFallbackWarn)||pn(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,o=de(e.fallbackRoot)?e.fallbackRoot:!0,a=!!e.formatFallbackMessages,l=re(e.modifiers)?e.modifiers:{},c=e.pluralizationRules,u=Me(e.postTranslation)?e.postTranslation:void 0,h=K(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,p=!!e.escapeParameterHtml,b=de(e.sync)?e.sync:!0;let E=e.messages;if(re(e.sharedMessages)){const L=e.sharedMessages;E=Object.keys(L).reduce((M,x)=>{const G=M[x]||(M[x]={});return Ye(G,L[x]),M},E||{})}const{__i18n:v,__root:I,__injectWithOption:_}=e,S=e.datetimeFormats,A=e.numberFormats,w=e.flatJson;return{locale:t,fallbackLocale:n,messages:E,flatJson:w,datetimeFormats:S,numberFormats:A,missing:s,missingWarn:r,fallbackWarn:i,fallbackRoot:o,fallbackFormat:a,modifiers:l,pluralRules:c,postTranslation:u,warnHtmlMessage:h,escapeParameter:p,messageResolver:e.messageResolver,inheritLocale:b,__i18n:v,__root:I,__injectWithOption:_}}function Ui(e={},t){{const n=Do(eT(e)),s={id:n.id,get locale(){return n.locale.value},set locale(r){n.locale.value=r},get fallbackLocale(){return n.fallbackLocale.value},set fallbackLocale(r){n.fallbackLocale.value=r},get messages(){return n.messages.value},get datetimeFormats(){return n.datetimeFormats.value},get numberFormats(){return n.numberFormats.value},get availableLocales(){return n.availableLocales},get formatter(){return{interpolate(){return[]}}},set formatter(r){},get missing(){return n.getMissingHandler()},set missing(r){n.setMissingHandler(r)},get silentTranslationWarn(){return de(n.missingWarn)?!n.missingWarn:n.missingWarn},set silentTranslationWarn(r){n.missingWarn=de(r)?!r:r},get silentFallbackWarn(){return de(n.fallbackWarn)?!n.fallbackWarn:n.fallbackWarn},set silentFallbackWarn(r){n.fallbackWarn=de(r)?!r:r},get modifiers(){return n.modifiers},get formatFallbackMessages(){return n.fallbackFormat},set formatFallbackMessages(r){n.fallbackFormat=r},get postTranslation(){return n.getPostTranslationHandler()},set postTranslation(r){n.setPostTranslationHandler(r)},get sync(){return n.inheritLocale},set sync(r){n.inheritLocale=r},get warnHtmlInMessage(){return n.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(r){n.warnHtmlMessage=r!=="off"},get escapeParameterHtml(){return n.escapeParameter},set escapeParameterHtml(r){n.escapeParameter=r},get preserveDirectiveContent(){return!0},set preserveDirectiveContent(r){},get pluralizationRules(){return n.pluralRules||{}},__composer:n,t(...r){const[i,o,a]=r,l={};let c=null,u=null;if(!K(i))throw We(He.INVALID_ARGUMENT);const h=i;return K(o)?l.locale=o:Oe(o)?c=o:re(o)&&(u=o),Oe(a)?c=a:re(a)&&(u=a),Reflect.apply(n.t,n,[h,c||u||{},l])},rt(...r){return Reflect.apply(n.rt,n,[...r])},tc(...r){const[i,o,a]=r,l={plural:1};let c=null,u=null;if(!K(i))throw We(He.INVALID_ARGUMENT);const h=i;return K(o)?l.locale=o:Ve(o)?l.plural=o:Oe(o)?c=o:re(o)&&(u=o),K(a)?l.locale=a:Oe(a)?c=a:re(a)&&(u=a),Reflect.apply(n.t,n,[h,c||u||{},l])},te(r,i){return n.te(r,i)},tm(r){return n.tm(r)},getLocaleMessage(r){return n.getLocaleMessage(r)},setLocaleMessage(r,i){n.setLocaleMessage(r,i)},mergeLocaleMessage(r,i){n.mergeLocaleMessage(r,i)},d(...r){return Reflect.apply(n.d,n,[...r])},getDateTimeFormat(r){return n.getDateTimeFormat(r)},setDateTimeFormat(r,i){n.setDateTimeFormat(r,i)},mergeDateTimeFormat(r,i){n.mergeDateTimeFormat(r,i)},n(...r){return Reflect.apply(n.n,n,[...r])},getNumberFormat(r){return n.getNumberFormat(r)},setNumberFormat(r,i){n.setNumberFormat(r,i)},mergeNumberFormat(r,i){n.mergeNumberFormat(r,i)},getChoiceIndex(r,i){return-1},__onComponentInstanceCreated(r){const{componentInstanceCreatedListener:i}=e;i&&i(r,s)}};return s}}const $o={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function tT({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((s,r)=>s=[...s,...Oe(r.children)?r.children:[r]],[]):t.reduce((n,s)=>{const r=e[s];return r&&(n[s]=r()),n},{})}function ld(e){return Le}const Lc={name:"i18n-t",props:Ye({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>Ve(e)||!isNaN(e)}},$o),setup(e,t){const{slots:n,attrs:s}=t,r=e.i18n||Po({useScope:e.scope,__useComponent:!0});return()=>{const i=Object.keys(n).filter(h=>h!=="_"),o={};e.locale&&(o.locale=e.locale),e.plural!==void 0&&(o.plural=K(e.plural)?+e.plural:e.plural);const a=tT(t,i),l=r[Pi](e.keypath,a,o),c=Ye({},s),u=K(e.tag)||Ie(e.tag)?e.tag:ld();return js(u,c,l)}}};function nT(e){return Oe(e)&&!K(e[0])}function cd(e,t,n,s){const{slots:r,attrs:i}=t;return()=>{const o={part:!0};let a={};e.locale&&(o.locale=e.locale),K(e.format)?o.key=e.format:Ie(e.format)&&(K(e.format.key)&&(o.key=e.format.key),a=Object.keys(e.format).reduce((p,b)=>n.includes(b)?Ye({},p,{[b]:e.format[b]}):p,{}));const l=s(e.value,o,a);let c=[o.key];Oe(l)?c=l.map((p,b)=>{const E=r[p.type],v=E?E({[p.type]:p.value,index:b,parts:l}):[p.value];return nT(v)&&(v[0].key=`${p.type}-${b}`),v}):K(l)&&(c=[l]);const u=Ye({},i),h=K(e.tag)||Ie(e.tag)?e.tag:ld();return js(h,u,c)}}const Nc={name:"i18n-n",props:Ye({value:{type:Number,required:!0},format:{type:[String,Object]}},$o),setup(e,t){const n=e.i18n||Po({useScope:"parent",__useComponent:!0});return cd(e,t,nd,(...s)=>n[Mi](...s))}},Cc={name:"i18n-d",props:Ye({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},$o),setup(e,t){const n=e.i18n||Po({useScope:"parent",__useComponent:!0});return cd(e,t,td,(...s)=>n[Fi](...s))}};function sT(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const s=n.__getInstance(t);return s!=null?s.__composer:e.global.__composer}}function rT(e){const t=o=>{const{instance:a,modifiers:l,value:c}=o;if(!a||!a.$)throw We(He.UNEXPECTED_ERROR);const u=sT(e,a.$),h=Oc(c);return[Reflect.apply(u.t,u,[...Ic(h)]),u]};return{created:(o,a)=>{const[l,c]=t(a);Oi&&e.global===c&&(o.__i18nWatcher=gt(c.locale,()=>{a.instance&&a.instance.$forceUpdate()})),o.__composer=c,o.textContent=l},unmounted:o=>{Oi&&o.__i18nWatcher&&(o.__i18nWatcher(),o.__i18nWatcher=void 0,delete o.__i18nWatcher),o.__composer&&(o.__composer=void 0,delete o.__composer)},beforeUpdate:(o,{value:a})=>{if(o.__composer){const l=o.__composer,c=Oc(a);o.textContent=Reflect.apply(l.t,l,[...Ic(c)])}},getSSRProps:o=>{const[a]=t(o);return{textContent:a}}}}function Oc(e){if(K(e))return{path:e};if(re(e)){if(!("path"in e))throw We(He.REQUIRED_VALUE,"path");return e}else throw We(He.INVALID_VALUE)}function Ic(e){const{path:t,locale:n,args:s,choice:r,plural:i}=e,o={},a=s||{};return K(n)&&(o.locale=n),Ve(r)&&(o.plural=r),Ve(i)&&(o.plural=i),[t,a,o]}function iT(e,t,...n){const s=re(n[0])?n[0]:{},r=!!s.useI18nComponentName;(de(s.globalInstall)?s.globalInstall:!0)&&(e.component(r?"i18n":Lc.name,Lc),e.component(Nc.name,Nc),e.component(Cc.name,Cc)),e.directive("t",rT(t))}function oT(e,t,n){return{beforeCreate(){const s=Gt();if(!s)throw We(He.UNEXPECTED_ERROR);const r=this.$options;if(r.i18n){const i=r.i18n;r.__i18n&&(i.__i18n=r.__i18n),i.__root=t,this===this.$root?this.$i18n=Rc(e,i):(i.__injectWithOption=!0,this.$i18n=Ui(i))}else r.__i18n?this===this.$root?this.$i18n=Rc(e,r):this.$i18n=Ui({__i18n:r.__i18n,__injectWithOption:!0,__root:t}):this.$i18n=e;r.__i18nGlobal&&ad(t,r,r),e.__onComponentInstanceCreated(this.$i18n),n.__setInstance(s,this.$i18n),this.$t=(...i)=>this.$i18n.t(...i),this.$rt=(...i)=>this.$i18n.rt(...i),this.$tc=(...i)=>this.$i18n.tc(...i),this.$te=(i,o)=>this.$i18n.te(i,o),this.$d=(...i)=>this.$i18n.d(...i),this.$n=(...i)=>this.$i18n.n(...i),this.$tm=i=>this.$i18n.tm(i)},mounted(){},unmounted(){const s=Gt();if(!s)throw We(He.UNEXPECTED_ERROR);delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,n.__deleteInstance(s),delete this.$i18n}}}function Rc(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[rd](t.pluralizationRules||e.pluralizationRules);const n=jr(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(s=>e.mergeLocaleMessage(s,n[s])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(s=>e.mergeDateTimeFormat(s,t.datetimeFormats[s])),t.numberFormats&&Object.keys(t.numberFormats).forEach(s=>e.mergeNumberFormat(s,t.numberFormats[s])),e}const aT=mn("global-vue-i18n");function lT(e={},t){const n=__VUE_I18N_LEGACY_API__&&de(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,s=de(e.globalInjection)?e.globalInjection:!0,r=__VUE_I18N_LEGACY_API__&&n?!!e.allowComposition:!0,i=new Map,[o,a]=cT(e,n),l=mn("");function c(p){return i.get(p)||null}function u(p,b){i.set(p,b)}function h(p){i.delete(p)}{const p={get mode(){return __VUE_I18N_LEGACY_API__&&n?"legacy":"composition"},get allowComposition(){return r},async install(b,...E){b.__VUE_I18N_SYMBOL__=l,b.provide(b.__VUE_I18N_SYMBOL__,p),!n&&s&&yT(b,p.global),__VUE_I18N_FULL_INSTALL__&&iT(b,p,...E),__VUE_I18N_LEGACY_API__&&n&&b.mixin(oT(a,a.__composer,p));const v=b.unmount;b.unmount=()=>{p.dispose(),v()}},get global(){return a},dispose(){o.stop()},__instances:i,__getInstance:c,__setInstance:u,__deleteInstance:h};return p}}function Po(e={}){const t=Gt();if(t==null)throw We(He.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw We(He.NOT_INSLALLED);const n=uT(t),s=dT(n),r=od(t),i=fT(e,r);if(__VUE_I18N_LEGACY_API__&&n.mode==="legacy"&&!e.__useComponent){if(!n.allowComposition)throw We(He.NOT_AVAILABLE_IN_LEGACY_MODE);return mT(t,i,s,e)}if(i==="global")return ad(s,e,r),s;if(i==="parent"){let l=hT(n,t,e.__useComponent);return l==null&&(l=s),l}const o=n;let a=o.__getInstance(t);if(a==null){const l=Ye({},e);"__i18n"in r&&(l.__i18n=r.__i18n),s&&(l.__root=s),a=Do(l),pT(o,t),o.__setInstance(t,a)}return a}function cT(e,t,n){const s=zi();{const r=__VUE_I18N_LEGACY_API__&&t?s.run(()=>Ui(e)):s.run(()=>Do(e));if(r==null)throw We(He.UNEXPECTED_ERROR);return[s,r]}}function uT(e){{const t=st(e.isCE?aT:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw We(e.isCE?He.NOT_INSLALLED_WITH_PROVIDE:He.UNEXPECTED_ERROR);return t}}function fT(e,t){return Mr(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function dT(e){return e.mode==="composition"?e.global:e.global.__composer}function hT(e,t,n=!1){let s=null;const r=t.root;let i=t.parent;for(;i!=null;){const o=e;if(e.mode==="composition")s=o.__getInstance(i);else if(__VUE_I18N_LEGACY_API__){const a=o.__getInstance(i);a!=null&&(s=a.__composer,n&&s&&!s[id]&&(s=null))}if(s!=null||r===i)break;i=i.parent}return s}function pT(e,t,n){kr(()=>{},t),io(()=>{e.__deleteInstance(t)},t)}function mT(e,t,n,s={}){const r=t==="local",i=Qc(null);if(r&&e.proxy&&!(e.proxy.$options.i18n||e.proxy.$options.__i18n))throw We(He.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const o=de(s.inheritLocale)?s.inheritLocale:!0,a=Se(r&&o?n.locale.value:K(s.locale)?s.locale:Ws),l=Se(r&&o?n.fallbackLocale.value:K(s.fallbackLocale)||Oe(s.fallbackLocale)||re(s.fallbackLocale)||s.fallbackLocale===!1?s.fallbackLocale:a.value),c=Se(jr(a.value,s)),u=Se(re(s.datetimeFormats)?s.datetimeFormats:{[a.value]:{}}),h=Se(re(s.numberFormats)?s.numberFormats:{[a.value]:{}}),p=r?n.missingWarn:de(s.missingWarn)||pn(s.missingWarn)?s.missingWarn:!0,b=r?n.fallbackWarn:de(s.fallbackWarn)||pn(s.fallbackWarn)?s.fallbackWarn:!0,E=r?n.fallbackRoot:de(s.fallbackRoot)?s.fallbackRoot:!0,v=!!s.fallbackFormat,I=Me(s.missing)?s.missing:null,_=Me(s.postTranslation)?s.postTranslation:null,S=r?n.warnHtmlMessage:de(s.warnHtmlMessage)?s.warnHtmlMessage:!0,A=!!s.escapeParameter,w=r?n.modifiers:re(s.modifiers)?s.modifiers:{},L=s.pluralRules||r&&n.pluralRules;function U(){return[a.value,l.value,c.value,u.value,h.value]}const M=Te({get:()=>i.value?i.value.locale.value:a.value,set:d=>{i.value&&(i.value.locale.value=d),a.value=d}}),x=Te({get:()=>i.value?i.value.fallbackLocale.value:l.value,set:d=>{i.value&&(i.value.fallbackLocale.value=d),l.value=d}}),G=Te(()=>i.value?i.value.messages.value:c.value),Z=Te(()=>u.value),ne=Te(()=>h.value);function W(){return i.value?i.value.getPostTranslationHandler():_}function ae(d){i.value&&i.value.setPostTranslationHandler(d)}function we(){return i.value?i.value.getMissingHandler():I}function Ne(d){i.value&&i.value.setMissingHandler(d)}function he(d){return U(),d()}function ce(...d){return i.value?he(()=>Reflect.apply(i.value.t,null,[...d])):he(()=>"")}function ue(...d){return i.value?Reflect.apply(i.value.rt,null,[...d]):""}function ze(...d){return i.value?he(()=>Reflect.apply(i.value.d,null,[...d])):he(()=>"")}function ot(...d){return i.value?he(()=>Reflect.apply(i.value.n,null,[...d])):he(()=>"")}function Je(d){return i.value?i.value.tm(d):{}}function Ue(d,g){return i.value?i.value.te(d,g):!1}function bt(d){return i.value?i.value.getLocaleMessage(d):{}}function vt(d,g){i.value&&(i.value.setLocaleMessage(d,g),c.value[d]=g)}function F(d,g){i.value&&i.value.mergeLocaleMessage(d,g)}function z(d){return i.value?i.value.getDateTimeFormat(d):{}}function V(d,g){i.value&&(i.value.setDateTimeFormat(d,g),u.value[d]=g)}function q(d,g){i.value&&i.value.mergeDateTimeFormat(d,g)}function ie(d){return i.value?i.value.getNumberFormat(d):{}}function be(d,g){i.value&&(i.value.setNumberFormat(d,g),h.value[d]=g)}function te(d,g){i.value&&i.value.mergeNumberFormat(d,g)}const m={get id(){return i.value?i.value.id:-1},locale:M,fallbackLocale:x,messages:G,datetimeFormats:Z,numberFormats:ne,get inheritLocale(){return i.value?i.value.inheritLocale:o},set inheritLocale(d){i.value&&(i.value.inheritLocale=d)},get availableLocales(){return i.value?i.value.availableLocales:Object.keys(c.value)},get modifiers(){return i.value?i.value.modifiers:w},get pluralRules(){return i.value?i.value.pluralRules:L},get isGlobal(){return i.value?i.value.isGlobal:!1},get missingWarn(){return i.value?i.value.missingWarn:p},set missingWarn(d){i.value&&(i.value.missingWarn=d)},get fallbackWarn(){return i.value?i.value.fallbackWarn:b},set fallbackWarn(d){i.value&&(i.value.missingWarn=d)},get fallbackRoot(){return i.value?i.value.fallbackRoot:E},set fallbackRoot(d){i.value&&(i.value.fallbackRoot=d)},get fallbackFormat(){return i.value?i.value.fallbackFormat:v},set fallbackFormat(d){i.value&&(i.value.fallbackFormat=d)},get warnHtmlMessage(){return i.value?i.value.warnHtmlMessage:S},set warnHtmlMessage(d){i.value&&(i.value.warnHtmlMessage=d)},get escapeParameter(){return i.value?i.value.escapeParameter:A},set escapeParameter(d){i.value&&(i.value.escapeParameter=d)},t:ce,getPostTranslationHandler:W,setPostTranslationHandler:ae,getMissingHandler:we,setMissingHandler:Ne,rt:ue,d:ze,n:ot,tm:Je,te:Ue,getLocaleMessage:bt,setLocaleMessage:vt,mergeLocaleMessage:F,getDateTimeFormat:z,setDateTimeFormat:V,mergeDateTimeFormat:q,getNumberFormat:ie,setNumberFormat:be,mergeNumberFormat:te};function f(d){d.locale.value=a.value,d.fallbackLocale.value=l.value,Object.keys(c.value).forEach(g=>{d.mergeLocaleMessage(g,c.value[g])}),Object.keys(u.value).forEach(g=>{d.mergeDateTimeFormat(g,u.value[g])}),Object.keys(h.value).forEach(g=>{d.mergeNumberFormat(g,h.value[g])}),d.escapeParameter=A,d.fallbackFormat=v,d.fallbackRoot=E,d.fallbackWarn=b,d.missingWarn=p,d.warnHtmlMessage=S}return _u(()=>{if(e.proxy==null||e.proxy.$i18n==null)throw We(He.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const d=i.value=e.proxy.$i18n.__composer;t==="global"?(a.value=d.locale.value,l.value=d.fallbackLocale.value,c.value=d.messages.value,u.value=d.datetimeFormats.value,h.value=d.numberFormats.value):r&&f(d)}),m}const gT=["locale","fallbackLocale","availableLocales"],_T=["t","rt","d","n","tm"];function yT(e,t){const n=Object.create(null);gT.forEach(s=>{const r=Object.getOwnPropertyDescriptor(t,s);if(!r)throw We(He.UNEXPECTED_ERROR);const i=Pe(r.value)?{get(){return r.value.value},set(o){r.value.value=o}}:{get(){return r.get&&r.get()}};Object.defineProperty(n,s,i)}),e.config.globalProperties.$i18n=n,_T.forEach(s=>{const r=Object.getOwnPropertyDescriptor(t,s);if(!r||!r.value)throw We(He.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${s}`,r)})}U0(K0);j0(v0);x0(Kf);X0();if(__INTLIFY_PROD_DEVTOOLS__){const e=ws();e.__INTLIFY__=!0,C0(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const bT=lT({locale:"pl",legacy:!1,fallbackLocale:"pl",messages:{en:Ew,pl:Bw},enableLegacy:!1}),vT={mounted(e,t){e.clickOutsideEvent=n=>{e==n.target||e.contains(n.target)||t.value()},document.addEventListener("click",e.clickOutsideEvent)}};Vp(iv).provide("isFilterCardVisible",Se(!1)).use(pg()).use(ow).use(bT).directive("click-outside",vT).mount("#app");export{Uf as A,gi as B,se as C,X as D,je as E,Le as F,Nh as G,Eo as H,Cy as I,wo as J,Se as K,No as L,yt as M,At as N,yb as O,TT as P,ST as Q,ct as R,Ml as S,is as T,kt as U,Lh as V,li as W,Fe as _,Ae as a,Vs as b,Ct as c,bg as d,Te as e,R as f,y as g,Q as h,wb as i,pt as j,De as k,$s as l,me as m,it as n,O as o,zn as p,In as q,nt as r,Rn as s,N as t,Nt as u,mS as v,ET as w,s1 as x,st as y,oo as z}; diff --git a/dist/assets/returnBtnMixin-ddf8068c.js b/dist/assets/returnBtnMixin-ddf8068c.js deleted file mode 100644 index 986b006..0000000 --- a/dist/assets/returnBtnMixin-ddf8068c.js +++ /dev/null @@ -1 +0,0 @@ -import{a as e,c as o}from"./index-a65056c2.js";const t=e({mixins:[o],data(){return{icons:{arrow:this.getIcon("arrow-asc")},showReturnButton:!1}},methods:{scrollToTop(){window.scrollTo({top:0})},handleScroll(){this.showReturnButton=window.scrollY>window.innerHeight*.35}},activated(){window.addEventListener("wheel",this.handleScroll)},deactivated(){window.removeEventListener("wheel",this.handleScroll)}});export{t as r}; diff --git a/dist/assets/signal-status-indicator-54332b72.svg b/dist/assets/signal-status-indicator-54332b72.svg deleted file mode 100644 index 2417d66..0000000 --- a/dist/assets/signal-status-indicator-54332b72.svg +++ /dev/null @@ -1,87 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/dist/assets/stacjownik-header-logo-e3348deb.svg b/dist/assets/stacjownik-header-logo-e3348deb.svg deleted file mode 100644 index b4c0e57..0000000 --- a/dist/assets/stacjownik-header-logo-e3348deb.svg +++ /dev/null @@ -1,60 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/dist/assets/styleMixin-6b80ecca.js b/dist/assets/styleMixin-6b80ecca.js deleted file mode 100644 index 7bdc7eb..0000000 --- a/dist/assets/styleMixin-6b80ecca.js +++ /dev/null @@ -1 +0,0 @@ -import{a as n}from"./index-a65056c2.js";const o=n({methods:{getControlTypeAbbrev(e){switch(e){case"mechaniczne":return"M";case"SCS-SPK":return"S/S";case"ręczne":return"R";case"mechaniczne+SPK":return"M";case"ręczne+SPK":return"R";case"mechaniczne+SCS":return"M";default:return e}}}}),i=n({methods:{calculateExpStyle(e,a=!1){const s=e>-1?e<2?"#26B0D9":`hsl(${-e*5+100}, 85%, 50%)`:"#666",r=e>14||e==-1?"white":"black",c=a?`box-shadow: 0 0 10px 2px ${s};`:"";return`background-color: ${s}; color: ${r}; ${c}`},statusClasses(e){let a="";switch(e){case"WOLNA":a="free";break;case"KOŃCZY":a="ending";break;case"NIEZALOGOWANY":a="not-signed";break;case"BEZ LIMITU":a="no-limit";break;case"NIEDOSTĘPNY":a="unavailable";break;case"Z/W":a="brb";break;case"BRAK MIEJSCA":a="no-space";break}return a}}});export{o as a,i as s}; diff --git a/dist/browserconfig.xml b/dist/browserconfig.xml deleted file mode 100644 index b3930d0..0000000 --- a/dist/browserconfig.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - #da532c - - - diff --git a/dist/favicon-16.png b/dist/favicon-16.png deleted file mode 100644 index 2ba6a68..0000000 Binary files a/dist/favicon-16.png and /dev/null differ diff --git a/dist/favicon-16x16.png b/dist/favicon-16x16.png deleted file mode 100644 index 2ba6a68..0000000 Binary files a/dist/favicon-16x16.png and /dev/null differ diff --git a/dist/favicon-32x32.png b/dist/favicon-32x32.png deleted file mode 100644 index 8de581c..0000000 Binary files a/dist/favicon-32x32.png and /dev/null differ diff --git a/dist/favicon.ico b/dist/favicon.ico deleted file mode 100644 index 64974c0..0000000 Binary files a/dist/favicon.ico and /dev/null differ diff --git a/dist/img/icons/android-chrome-192x192.png b/dist/img/icons/android-chrome-192x192.png deleted file mode 100644 index b02aa64..0000000 Binary files a/dist/img/icons/android-chrome-192x192.png and /dev/null differ diff --git a/dist/img/icons/android-chrome-512x512.png b/dist/img/icons/android-chrome-512x512.png deleted file mode 100644 index 06088b0..0000000 Binary files a/dist/img/icons/android-chrome-512x512.png and /dev/null differ diff --git a/dist/img/icons/android-chrome-maskable-192x192.png b/dist/img/icons/android-chrome-maskable-192x192.png deleted file mode 100644 index 791e9c8..0000000 Binary files a/dist/img/icons/android-chrome-maskable-192x192.png and /dev/null differ diff --git a/dist/img/icons/android-chrome-maskable-512x512.png b/dist/img/icons/android-chrome-maskable-512x512.png deleted file mode 100644 index 5f2098e..0000000 Binary files a/dist/img/icons/android-chrome-maskable-512x512.png and /dev/null differ diff --git a/dist/img/icons/apple-touch-icon-120x120.png b/dist/img/icons/apple-touch-icon-120x120.png deleted file mode 100644 index 1427cf6..0000000 Binary files a/dist/img/icons/apple-touch-icon-120x120.png and /dev/null differ diff --git a/dist/img/icons/apple-touch-icon-152x152.png b/dist/img/icons/apple-touch-icon-152x152.png deleted file mode 100644 index f24d454..0000000 Binary files a/dist/img/icons/apple-touch-icon-152x152.png and /dev/null differ diff --git a/dist/img/icons/apple-touch-icon-180x180.png b/dist/img/icons/apple-touch-icon-180x180.png deleted file mode 100644 index 404e192..0000000 Binary files a/dist/img/icons/apple-touch-icon-180x180.png and /dev/null differ diff --git a/dist/img/icons/apple-touch-icon-60x60.png b/dist/img/icons/apple-touch-icon-60x60.png deleted file mode 100644 index cf10a56..0000000 Binary files a/dist/img/icons/apple-touch-icon-60x60.png and /dev/null differ diff --git a/dist/img/icons/apple-touch-icon-76x76.png b/dist/img/icons/apple-touch-icon-76x76.png deleted file mode 100644 index c500769..0000000 Binary files a/dist/img/icons/apple-touch-icon-76x76.png and /dev/null differ diff --git a/dist/img/icons/apple-touch-icon.png b/dist/img/icons/apple-touch-icon.png deleted file mode 100644 index 03c0c5d..0000000 Binary files a/dist/img/icons/apple-touch-icon.png and /dev/null differ diff --git a/dist/img/icons/favicon-16x16.png b/dist/img/icons/favicon-16x16.png deleted file mode 100644 index 42af009..0000000 Binary files a/dist/img/icons/favicon-16x16.png and /dev/null differ diff --git a/dist/img/icons/favicon-32x32.png b/dist/img/icons/favicon-32x32.png deleted file mode 100644 index 46ca04d..0000000 Binary files a/dist/img/icons/favicon-32x32.png and /dev/null differ diff --git a/dist/img/icons/msapplication-icon-144x144.png b/dist/img/icons/msapplication-icon-144x144.png deleted file mode 100644 index 7808237..0000000 Binary files a/dist/img/icons/msapplication-icon-144x144.png and /dev/null differ diff --git a/dist/img/icons/mstile-150x150.png b/dist/img/icons/mstile-150x150.png deleted file mode 100644 index 3b37a43..0000000 Binary files a/dist/img/icons/mstile-150x150.png and /dev/null differ diff --git a/dist/img/icons/safari-pinned-tab.svg b/dist/img/icons/safari-pinned-tab.svg deleted file mode 100644 index e44c0d5..0000000 --- a/dist/img/icons/safari-pinned-tab.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/dist/index.html b/dist/index.html deleted file mode 100644 index bdc238f..0000000 --- a/dist/index.html +++ /dev/null @@ -1,50 +0,0 @@ - - - - - - - - - - - Stacjownik - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - diff --git a/dist/mstile-150x150.png b/dist/mstile-150x150.png deleted file mode 100644 index 1dc8716..0000000 Binary files a/dist/mstile-150x150.png and /dev/null differ diff --git a/dist/robots.txt b/dist/robots.txt deleted file mode 100644 index eb05362..0000000 --- a/dist/robots.txt +++ /dev/null @@ -1,2 +0,0 @@ -User-agent: * -Disallow: diff --git a/dist/safari-pinned-tab.svg b/dist/safari-pinned-tab.svg deleted file mode 100644 index dd3a15f..0000000 --- a/dist/safari-pinned-tab.svg +++ /dev/null @@ -1,23 +0,0 @@ - - - - -Created by potrace 1.14, written by Peter Selinger 2001-2017 - - - - - diff --git a/dist/site.webmanifest b/dist/site.webmanifest deleted file mode 100644 index 98b71b8..0000000 --- a/dist/site.webmanifest +++ /dev/null @@ -1,20 +0,0 @@ -{ - "name": "Stacjownik TD2", - "short_name": "Stacjownik", - "icons": [ - { - "src": "/android-chrome-192x192.png", - "sizes": "192x192", - "type": "image/png" - }, - { - "src": "/android-chrome-512x512.png", - "sizes": "512x512", - "type": "image/png" - } - ], - "theme_color": "#ffc014", - "background_color": "#4d4d4d", - "display": "standalone", - "start_url": "." -}