mingyang91 commited on
Commit
9f017df
·
verified ·
1 Parent(s): 7a54c68

include jinyu FE

Browse files

Signed-off-by: 明扬 <[email protected]>

src/lib.rs CHANGED
@@ -395,11 +395,11 @@ pub async fn app(config: &SdkConfig) -> Result<(), std::io::Error> {
395
  .at("/ws/voice", get(stream_single))
396
  .at(
397
  "lesson-speaker",
398
- StaticFileEndpoint::new("./static/index.html"),
399
  )
400
  .at(
401
  "lesson-listener",
402
- StaticFileEndpoint::new("./static/index.html"),
403
  )
404
  .data(ctx);
405
  let addr = format!("{}:{}", SETTINGS.server.host, SETTINGS.server.port);
 
395
  .at("/ws/voice", get(stream_single))
396
  .at(
397
  "lesson-speaker",
398
+ StaticFileEndpoint::new("./static/debug.html"),
399
  )
400
  .at(
401
  "lesson-listener",
402
+ StaticFileEndpoint::new("./static/debug.html"),
403
  )
404
  .data(ctx);
405
  let addr = format!("{}:{}", SETTINGS.server.host, SETTINGS.server.port);
static/1.jpg ADDED
static/2.jpg ADDED
static/android-chrome-192x192.png ADDED
static/android-chrome-512x512.png ADDED
static/apple-touch-icon.png ADDED
static/assets/AngryGesture.fbx ADDED
Binary file (612 kB). View file
 
static/assets/Idle.fbx ADDED
Binary file (962 kB). View file
 
static/assets/ScrollableContent-49b4f3c7.css ADDED
@@ -0,0 +1 @@
 
 
1
+ ._lru-wrapper_1ctad_2{position:relative;display:flex;background-color:#faebf080;color:#603371;border-radius:16px}._lru_1ctad_2{content:"";position:absolute;top:0;left:0;width:100%;height:100%;overflow-y:auto;overflow-x:hidden;-webkit-mask-image:linear-gradient(0deg,transparent,#fff 100px,#fff calc(100% - 100px),transparent);mask-image:linear-gradient(0deg,transparent,#fff 100px,#fff calc(100% - 100px),transparent)}._lru_1ctad_2::-webkit-scrollbar{display:none}._lru-content_1ctad_33{box-sizing:border-box;position:relative;list-style:none;padding-top:30%;margin:0;min-height:100%;padding-bottom:30%}._lru-content_1ctad_33 ._lru-item_1ctad_43{display:block;position:relative;margin:16px auto 0;overflow:hidden;color:#fff;text-align:center;transition:all .5s ease;opacity:.6;line-break:loose;word-wrap:normal;word-break:normal;max-width:70%}._lru-content_1ctad_33 ._lru-item_1ctad_43:nth-last-of-type(2){transform:translateY(16px),scale(1.2);opacity:1}._lru-content_1ctad_33 ._hidden_1ctad_63{display:list-item;opacity:0;position:absolute;left:0;bottom:1px;height:1px;width:10px}._lru-wrapper_1ctad_2 ._lru-item_1ctad_43:last-of-type{transform:translateY(16px),scale(1.2);opacity:1}
static/assets/ScrollableContent-8254898f.js ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import{a as F,n as x,d as V,a3 as X,o as M,c as T,i as D,M as k,F as G,A as I,L as O,C as q,a0 as U}from"./index-01d98e79.js";const mt=F("XIcon",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);var j=globalThis&&globalThis.__awaiter||function(h,t,e,i){function r(n){return n instanceof e?n:new e(function(o){o(n)})}return new(e||(e=Promise))(function(n,o){function s(a){try{l(i.next(a))}catch(d){o(d)}}function c(a){try{l(i.throw(a))}catch(d){o(d)}}function l(a){a.done?n(a.value):r(a.value).then(s,c)}l((i=i.apply(h,t||[])).next())})};function Y(h,t){return j(this,void 0,void 0,function*(){const e=new AudioContext({sampleRate:t});return e.decodeAudioData(h).finally(()=>e.close())})}function J(h){const t=h[0];if(t.some(e=>e>1||e<-1)){const e=t.length;let i=0;for(let r=0;r<e;r++){const n=Math.abs(t[r]);n>i&&(i=n)}for(const r of h)for(let n=0;n<e;n++)r[n]/=i}return h}function Q(h,t){return typeof h[0]=="number"&&(h=[h]),J(h),{duration:t,length:h[0].length,sampleRate:h[0].length/t,numberOfChannels:h.length,getChannelData:e=>h==null?void 0:h[e],copyFromChannel:AudioBuffer.prototype.copyFromChannel,copyToChannel:AudioBuffer.prototype.copyToChannel}}const $={decode:Y,createBuffer:Q};var W=globalThis&&globalThis.__awaiter||function(h,t,e,i){function r(n){return n instanceof e?n:new e(function(o){o(n)})}return new(e||(e=Promise))(function(n,o){function s(a){try{l(i.next(a))}catch(d){o(d)}}function c(a){try{l(i.throw(a))}catch(d){o(d)}}function l(a){a.done?n(a.value):r(a.value).then(s,c)}l((i=i.apply(h,t||[])).next())})};function K(h,t){return W(this,void 0,void 0,function*(){if(!h.body||!h.headers)return;const e=h.body.getReader(),i=Number(h.headers.get("Content-Length"))||0;let r=0;const n=s=>W(this,void 0,void 0,function*(){r+=(s==null?void 0:s.length)||0;const c=Math.round(r/i*100);t(c)}),o=()=>W(this,void 0,void 0,function*(){let s;try{s=yield e.read()}catch{return}s.done||(n(s.value),yield o())});o()})}function Z(h,t,e){return W(this,void 0,void 0,function*(){const i=yield fetch(h,e);return K(i.clone(),t),i.blob()})}const tt={fetchBlob:Z};class L{constructor(){this.listeners={},this.on=this.addEventListener,this.un=this.removeEventListener}addEventListener(t,e,i){if(this.listeners[t]||(this.listeners[t]=new Set),this.listeners[t].add(e),i!=null&&i.once){const r=()=>{this.removeEventListener(t,r),this.removeEventListener(t,e)};return this.addEventListener(t,r),r}return()=>this.removeEventListener(t,e)}removeEventListener(t,e){var i;(i=this.listeners[t])===null||i===void 0||i.delete(e)}once(t,e){return this.on(t,e,{once:!0})}unAll(){this.listeners={}}emit(t,...e){this.listeners[t]&&this.listeners[t].forEach(i=>i(...e))}}class et extends L{constructor(t){super(),this.isExternalMedia=!1,t.media?(this.media=t.media,this.isExternalMedia=!0):this.media=document.createElement("audio"),t.mediaControls&&(this.media.controls=!0),t.autoplay&&(this.media.autoplay=!0),t.playbackRate!=null&&this.onceMediaEvent("canplay",()=>{t.playbackRate!=null&&(this.media.playbackRate=t.playbackRate)})}onMediaEvent(t,e,i){return this.media.addEventListener(t,e,i),()=>this.media.removeEventListener(t,e)}onceMediaEvent(t,e){return this.onMediaEvent(t,e,{once:!0})}getSrc(){return this.media.currentSrc||this.media.src||""}revokeSrc(){const t=this.getSrc();t.startsWith("blob:")&&URL.revokeObjectURL(t)}setSrc(t,e){if(this.getSrc()===t)return;this.revokeSrc();const r=e instanceof Blob?URL.createObjectURL(e):t;this.media.src=r,this.media.load()}destroy(){this.media.pause(),!this.isExternalMedia&&(this.media.remove(),this.revokeSrc(),this.media.src="",this.media.load())}setMediaElement(t){this.media=t}play(){return this.media.play()}pause(){this.media.pause()}isPlaying(){return!this.media.paused&&!this.media.ended}setTime(t){this.media.currentTime=t}getDuration(){return this.media.duration}getCurrentTime(){return this.media.currentTime}getVolume(){return this.media.volume}setVolume(t){this.media.volume=t}getMuted(){return this.media.muted}setMuted(t){this.media.muted=t}getPlaybackRate(){return this.media.playbackRate}setPlaybackRate(t,e){e!=null&&(this.media.preservesPitch=e),this.media.playbackRate=t}getMediaElement(){return this.media}setSinkId(t){return this.media.setSinkId(t)}}function it(h,t,e,i,r=5){let n=()=>{};if(!h)return n;const o=s=>{if(s.button===2)return;s.preventDefault(),s.stopPropagation(),h.style.touchAction="none";let c=s.clientX,l=s.clientY,a=!1;const d=u=>{u.preventDefault(),u.stopPropagation();const m=u.clientX,y=u.clientY;if(a||Math.abs(m-c)>=r||Math.abs(y-l)>=r){const{left:w,top:b}=h.getBoundingClientRect();a||(a=!0,e==null||e(c-w,l-b)),t(m-c,y-l,m-w,y-b),c=m,l=y}},p=u=>{a&&(u.preventDefault(),u.stopPropagation())},f=()=>{h.style.touchAction="",a&&(i==null||i()),n()};document.addEventListener("pointermove",d),document.addEventListener("pointerup",f),document.addEventListener("pointerleave",f),document.addEventListener("click",p,!0),n=()=>{document.removeEventListener("pointermove",d),document.removeEventListener("pointerup",f),document.removeEventListener("pointerleave",f),setTimeout(()=>{document.removeEventListener("click",p,!0)},10)}};return h.addEventListener("pointerdown",o),()=>{n(),h.removeEventListener("pointerdown",o)}}class P extends L{constructor(t,e){super(),this.timeouts=[],this.isScrolling=!1,this.audioData=null,this.resizeObserver=null,this.isDragging=!1,this.options=t;const i=this.parentFromOptionsContainer(t.container);this.parent=i;const[r,n]=this.initHtml();i.appendChild(r),this.container=r,this.scrollContainer=n.querySelector(".scroll"),this.wrapper=n.querySelector(".wrapper"),this.canvasWrapper=n.querySelector(".canvases"),this.progressWrapper=n.querySelector(".progress"),this.cursor=n.querySelector(".cursor"),e&&n.appendChild(e),this.initEvents()}parentFromOptionsContainer(t){let e;if(typeof t=="string"?e=document.querySelector(t):t instanceof HTMLElement&&(e=t),!e)throw new Error("Container not found");return e}initEvents(){const t=i=>{const r=this.wrapper.getBoundingClientRect(),n=i.clientX-r.left,o=i.clientX-r.left,s=n/r.width,c=o/r.height;return[s,c]};this.wrapper.addEventListener("click",i=>{const[r,n]=t(i);this.emit("click",r,n)}),this.wrapper.addEventListener("dblclick",i=>{const[r,n]=t(i);this.emit("dblclick",r,n)}),this.options.dragToSeek&&this.initDrag(),this.scrollContainer.addEventListener("scroll",()=>{const{scrollLeft:i,scrollWidth:r,clientWidth:n}=this.scrollContainer,o=i/r,s=(i+n)/r;this.emit("scroll",o,s)});const e=this.createDelay(100);this.resizeObserver=new ResizeObserver(()=>{e(()=>this.reRender())}),this.resizeObserver.observe(this.scrollContainer)}initDrag(){it(this.wrapper,(t,e,i)=>{this.emit("drag",Math.max(0,Math.min(1,i/this.wrapper.getBoundingClientRect().width)))},()=>this.isDragging=!0,()=>this.isDragging=!1)}getHeight(){return this.options.height==null?128:isNaN(Number(this.options.height))?this.options.height==="auto"&&this.parent.clientHeight||128:Number(this.options.height)}initHtml(){const t=document.createElement("div"),e=t.attachShadow({mode:"open"});return e.innerHTML=`
2
+ <style>
3
+ :host {
4
+ user-select: none;
5
+ min-width: 1px;
6
+ }
7
+ :host audio {
8
+ display: block;
9
+ width: 100%;
10
+ }
11
+ :host .scroll {
12
+ overflow-x: auto;
13
+ overflow-y: hidden;
14
+ width: 100%;
15
+ position: relative;
16
+ }
17
+ :host .noScrollbar {
18
+ scrollbar-color: transparent;
19
+ scrollbar-width: none;
20
+ }
21
+ :host .noScrollbar::-webkit-scrollbar {
22
+ display: none;
23
+ -webkit-appearance: none;
24
+ }
25
+ :host .wrapper {
26
+ position: relative;
27
+ overflow: visible;
28
+ z-index: 2;
29
+ }
30
+ :host .canvases {
31
+ min-height: ${this.getHeight()}px;
32
+ }
33
+ :host .canvases > div {
34
+ position: relative;
35
+ }
36
+ :host canvas {
37
+ display: block;
38
+ position: absolute;
39
+ top: 0;
40
+ image-rendering: pixelated;
41
+ }
42
+ :host .progress {
43
+ pointer-events: none;
44
+ position: absolute;
45
+ z-index: 2;
46
+ top: 0;
47
+ left: 0;
48
+ width: 0;
49
+ height: 100%;
50
+ overflow: hidden;
51
+ }
52
+ :host .progress > div {
53
+ position: relative;
54
+ }
55
+ :host .cursor {
56
+ pointer-events: none;
57
+ position: absolute;
58
+ z-index: 5;
59
+ top: 0;
60
+ left: 0;
61
+ height: 100%;
62
+ border-radius: 2px;
63
+ }
64
+ </style>
65
+
66
+ <div class="scroll" part="scroll">
67
+ <div class="wrapper" part="wrapper">
68
+ <div class="canvases"></div>
69
+ <div class="progress" part="progress"></div>
70
+ <div class="cursor" part="cursor"></div>
71
+ </div>
72
+ </div>
73
+ `,[t,e]}setOptions(t){if(this.options.container!==t.container){const e=this.parentFromOptionsContainer(t.container);e.appendChild(this.container),this.parent=e}t.dragToSeek&&!this.options.dragToSeek&&this.initDrag(),this.options=t,this.reRender()}getWrapper(){return this.wrapper}getScroll(){return this.scrollContainer.scrollLeft}destroy(){var t;this.container.remove(),(t=this.resizeObserver)===null||t===void 0||t.disconnect()}createDelay(t=10){const e={};return this.timeouts.push(e),i=>{e.timeout&&clearTimeout(e.timeout),e.timeout=setTimeout(i,t)}}convertColorValues(t){if(!Array.isArray(t))return t||"";if(t.length<2)return t[0]||"";const e=document.createElement("canvas"),r=e.getContext("2d").createLinearGradient(0,0,0,e.height),n=1/(t.length-1);return t.forEach((o,s)=>{const c=s*n;r.addColorStop(c,o)}),r}renderBarWaveform(t,e,i,r){const n=t[0],o=t[1]||t[0],s=n.length,{width:c,height:l}=i.canvas,a=l/2,d=window.devicePixelRatio||1,p=e.barWidth?e.barWidth*d:1,f=e.barGap?e.barGap*d:e.barWidth?p/2:0,u=e.barRadius||0,m=c/(p+f)/s,y=u&&"roundRect"in i?"roundRect":"rect";i.beginPath();let w=0,b=0,S=0;for(let C=0;C<=s;C++){const g=Math.round(C*m);if(g>w){const A=Math.round(b*a*r),z=Math.round(S*a*r),B=A+z||1;let R=a-A;e.barAlign==="top"?R=0:e.barAlign==="bottom"&&(R=l-B),i[y](w*(p+f),R,p,B,u),w=g,b=0,S=0}const v=Math.abs(n[C]||0),E=Math.abs(o[C]||0);v>b&&(b=v),E>S&&(S=E)}i.fill(),i.closePath()}renderLineWaveform(t,e,i,r){const n=o=>{const s=t[o]||t[0],c=s.length,{height:l}=i.canvas,a=l/2,d=i.canvas.width/c;i.moveTo(0,a);let p=0,f=0;for(let u=0;u<=c;u++){const m=Math.round(u*d);if(m>p){const w=Math.round(f*a*r)||1,b=a+w*(o===0?-1:1);i.lineTo(p,b),p=m,f=0}const y=Math.abs(s[u]||0);y>f&&(f=y)}i.lineTo(p,a)};i.beginPath(),n(0),n(1),i.fill(),i.closePath()}renderWaveform(t,e,i){if(i.fillStyle=this.convertColorValues(e.waveColor),e.renderFunction){e.renderFunction(t,i);return}let r=e.barHeight||1;if(e.normalize){const n=Array.from(t[0]).reduce((o,s)=>Math.max(o,Math.abs(s)),0);r=n?1/n:1}if(e.barWidth||e.barGap||e.barAlign){this.renderBarWaveform(t,e,i,r);return}this.renderLineWaveform(t,e,i,r)}renderSingleCanvas(t,e,i,r,n,o,s,c){const l=window.devicePixelRatio||1,a=document.createElement("canvas"),d=t[0].length;a.width=Math.round(i*(o-n)/d),a.height=r*l,a.style.width=`${Math.floor(a.width/l)}px`,a.style.height=`${r}px`,a.style.left=`${Math.floor(n*i/l/d)}px`,s.appendChild(a);const p=a.getContext("2d");if(this.renderWaveform(t.map(f=>f.slice(n,o)),e,p),a.width>0&&a.height>0){const f=a.cloneNode(),u=f.getContext("2d");u.drawImage(a,0,0),u.globalCompositeOperation="source-in",u.fillStyle=this.convertColorValues(e.progressColor),u.fillRect(0,0,a.width,a.height),c.appendChild(f)}}renderChannel(t,e,i){const r=document.createElement("div"),n=this.getHeight();r.style.height=`${n}px`,this.canvasWrapper.style.minHeight=`${n}px`,this.canvasWrapper.appendChild(r);const o=r.cloneNode();this.progressWrapper.appendChild(o);const{scrollLeft:s,scrollWidth:c,clientWidth:l}=this.scrollContainer,a=t[0].length,d=a/c;let p=Math.min(P.MAX_CANVAS_WIDTH,l);if(e.barWidth||e.barGap){const g=e.barWidth||.5,v=e.barGap||g/2,E=g+v;p%E!==0&&(p=Math.floor(p/E)*E)}const f=Math.floor(Math.abs(s)*d),u=Math.floor(f+p*d),m=u-f,y=(g,v)=>{this.renderSingleCanvas(t,e,i,n,Math.max(0,g),Math.min(v,a),r,o)},w=this.createDelay(),b=this.createDelay(),S=(g,v)=>{y(g,v),g>0&&w(()=>{S(g-m,v-m)})},C=(g,v)=>{y(g,v),v<a&&b(()=>{C(g+m,v+m)})};S(f,u),u<a&&C(u,u+m)}render(t){this.timeouts.forEach(s=>s.timeout&&clearTimeout(s.timeout)),this.timeouts=[],this.canvasWrapper.innerHTML="",this.progressWrapper.innerHTML="",this.wrapper.style.width="",this.options.width!=null&&(this.scrollContainer.style.width=typeof this.options.width=="number"?`${this.options.width}px`:this.options.width);const e=window.devicePixelRatio||1,i=this.scrollContainer.clientWidth,r=Math.ceil(t.duration*(this.options.minPxPerSec||0));this.isScrolling=r>i;const n=this.options.fillParent&&!this.isScrolling,o=(n?i:r)*e;if(this.wrapper.style.width=n?"100%":`${r}px`,this.scrollContainer.style.overflowX=this.isScrolling?"auto":"hidden",this.scrollContainer.classList.toggle("noScrollbar",!!this.options.hideScrollbar),this.cursor.style.backgroundColor=`${this.options.cursorColor||this.options.progressColor}`,this.cursor.style.width=`${this.options.cursorWidth}px`,this.options.splitChannels)for(let s=0;s<t.numberOfChannels;s++){const c=Object.assign(Object.assign({},this.options),this.options.splitChannels[s]);this.renderChannel([t.getChannelData(s)],c,o)}else{const s=[t.getChannelData(0)];t.numberOfChannels>1&&s.push(t.getChannelData(1)),this.renderChannel(s,this.options,o)}this.audioData=t,this.emit("render")}reRender(){if(!this.audioData)return;const t=this.progressWrapper.clientWidth;this.render(this.audioData);const e=this.progressWrapper.clientWidth;this.scrollContainer.scrollLeft+=e-t}zoom(t){this.options.minPxPerSec=t,this.reRender()}scrollIntoView(t,e=!1){const{clientWidth:i,scrollLeft:r,scrollWidth:n}=this.scrollContainer,o=n*t,s=i/2,c=e&&this.options.autoCenter&&!this.isDragging?s:i;if(o>r+c||o<r)if(this.options.autoCenter&&!this.isDragging){const l=s/20;o-(r+s)>=l&&o<r+i?this.scrollContainer.scrollLeft+=l:this.scrollContainer.scrollLeft=o-s}else this.isDragging?this.scrollContainer.scrollLeft=o<r?o-10:o-i+10:this.scrollContainer.scrollLeft=o;{const{scrollLeft:l}=this.scrollContainer,a=l/n,d=(l+i)/n;this.emit("scroll",a,d)}}renderProgress(t,e){if(isNaN(t))return;const i=t*100;this.canvasWrapper.style.clipPath=`polygon(${i}% 0, 100% 0, 100% 100%, ${i}% 100%)`,this.progressWrapper.style.width=`${i}%`,this.cursor.style.left=`${i}%`,this.cursor.style.marginLeft=Math.round(i)===100?`-${this.options.cursorWidth}px`:"",this.isScrolling&&this.options.autoScroll&&this.scrollIntoView(t,e)}}P.MAX_CANVAS_WIDTH=4e3;class st extends L{constructor(){super(...arguments),this.unsubscribe=()=>{}}start(){this.unsubscribe=this.on("tick",()=>{requestAnimationFrame(()=>{this.emit("tick")})}),this.emit("tick")}stop(){this.unsubscribe()}destroy(){this.unsubscribe()}}var N=globalThis&&globalThis.__awaiter||function(h,t,e,i){function r(n){return n instanceof e?n:new e(function(o){o(n)})}return new(e||(e=Promise))(function(n,o){function s(a){try{l(i.next(a))}catch(d){o(d)}}function c(a){try{l(i.throw(a))}catch(d){o(d)}}function l(a){a.done?n(a.value):r(a.value).then(s,c)}l((i=i.apply(h,t||[])).next())})};class nt extends L{constructor(t=new AudioContext){super(),this.bufferNode=null,this.autoplay=!1,this.playStartTime=0,this.playedDuration=0,this._muted=!1,this.buffer=null,this.currentSrc="",this.paused=!0,this.crossOrigin=null,this.audioContext=t,this.gainNode=this.audioContext.createGain(),this.gainNode.connect(this.audioContext.destination)}load(){return N(this,void 0,void 0,function*(){})}get src(){return this.currentSrc}set src(t){this.currentSrc=t,fetch(t).then(e=>e.arrayBuffer()).then(e=>this.audioContext.decodeAudioData(e)).then(e=>{this.buffer=e,this.emit("loadedmetadata"),this.emit("canplay"),this.autoplay&&this.play()})}_play(){var t;this.paused&&(this.paused=!1,(t=this.bufferNode)===null||t===void 0||t.disconnect(),this.bufferNode=this.audioContext.createBufferSource(),this.bufferNode.buffer=this.buffer,this.bufferNode.connect(this.gainNode),this.playedDuration>=this.duration&&(this.playedDuration=0),this.bufferNode.start(this.audioContext.currentTime,this.playedDuration),this.playStartTime=this.audioContext.currentTime,this.bufferNode.onended=()=>{this.currentTime>=this.duration&&(this.pause(),this.emit("ended"))})}_pause(){var t;this.paused||(this.paused=!0,(t=this.bufferNode)===null||t===void 0||t.stop(),this.playedDuration+=this.audioContext.currentTime-this.playStartTime)}play(){return N(this,void 0,void 0,function*(){this._play(),this.emit("play")})}pause(){this._pause(),this.emit("pause")}setSinkId(t){return N(this,void 0,void 0,function*(){return this.audioContext.setSinkId(t)})}get playbackRate(){var t,e;return(e=(t=this.bufferNode)===null||t===void 0?void 0:t.playbackRate.value)!==null&&e!==void 0?e:1}set playbackRate(t){this.bufferNode&&(this.bufferNode.playbackRate.value=t)}get currentTime(){return this.paused?this.playedDuration:this.playedDuration+this.audioContext.currentTime-this.playStartTime}set currentTime(t){this.emit("seeking"),this.paused?this.playedDuration=t:(this._pause(),this.playedDuration=t,this._play()),this.emit("timeupdate")}get duration(){var t;return((t=this.buffer)===null||t===void 0?void 0:t.duration)||0}get volume(){return this.gainNode.gain.value}set volume(t){this.gainNode.gain.value=t,this.emit("volumechange")}get muted(){return this._muted}set muted(t){this._muted!==t&&(this._muted=t,this._muted?this.gainNode.disconnect():this.gainNode.connect(this.audioContext.destination))}getGainNode(){return this.gainNode}}var _=globalThis&&globalThis.__awaiter||function(h,t,e,i){function r(n){return n instanceof e?n:new e(function(o){o(n)})}return new(e||(e=Promise))(function(n,o){function s(a){try{l(i.next(a))}catch(d){o(d)}}function c(a){try{l(i.throw(a))}catch(d){o(d)}}function l(a){a.done?n(a.value):r(a.value).then(s,c)}l((i=i.apply(h,t||[])).next())})};const rt={waveColor:"#999",progressColor:"#555",cursorWidth:1,minPxPerSec:0,fillParent:!0,interact:!0,dragToSeek:!1,autoScroll:!0,autoCenter:!0,sampleRate:8e3};class H extends et{static create(t){return new H(t)}constructor(t){const e=t.media||(t.backend==="WebAudio"?new nt:void 0);super({media:e,mediaControls:t.mediaControls,autoplay:t.autoplay,playbackRate:t.audioRate}),this.plugins=[],this.decodedData=null,this.subscriptions=[],this.mediaSubscriptions=[],this.options=Object.assign({},rt,t),this.timer=new st;const i=e?void 0:this.getMediaElement();this.renderer=new P(this.options,i),this.initPlayerEvents(),this.initRendererEvents(),this.initTimerEvents(),this.initPlugins();const r=this.options.url||this.getSrc()||"";(r||this.options.peaks&&this.options.duration)&&this.load(r,this.options.peaks,this.options.duration)}initTimerEvents(){this.subscriptions.push(this.timer.on("tick",()=>{const t=this.getCurrentTime();this.renderer.renderProgress(t/this.getDuration(),!0),this.emit("timeupdate",t),this.emit("audioprocess",t)}))}initPlayerEvents(){this.mediaSubscriptions.push(this.onMediaEvent("timeupdate",()=>{const t=this.getCurrentTime();this.renderer.renderProgress(t/this.getDuration(),this.isPlaying()),this.emit("timeupdate",t)}),this.onMediaEvent("play",()=>{this.emit("play"),this.timer.start()}),this.onMediaEvent("pause",()=>{this.emit("pause"),this.timer.stop()}),this.onMediaEvent("emptied",()=>{this.timer.stop()}),this.onMediaEvent("ended",()=>{this.emit("finish")}),this.onMediaEvent("seeking",()=>{this.emit("seeking",this.getCurrentTime())}))}initRendererEvents(){this.subscriptions.push(this.renderer.on("click",(t,e)=>{this.options.interact&&(this.seekTo(t),this.emit("interaction",t*this.getDuration()),this.emit("click",t,e))}),this.renderer.on("dblclick",(t,e)=>{this.emit("dblclick",t,e)}),this.renderer.on("scroll",(t,e)=>{const i=this.getDuration();this.emit("scroll",t*i,e*i)}),this.renderer.on("render",()=>{this.emit("redraw")}));{let t;this.subscriptions.push(this.renderer.on("drag",e=>{this.options.interact&&(this.renderer.renderProgress(e),clearTimeout(t),t=setTimeout(()=>{this.seekTo(e)},this.isPlaying()?0:200),this.emit("interaction",e*this.getDuration()),this.emit("drag",e))}))}}initPlugins(){var t;!((t=this.options.plugins)===null||t===void 0)&&t.length&&this.options.plugins.forEach(e=>{this.registerPlugin(e)})}unsubscribePlayerEvents(){this.mediaSubscriptions.forEach(t=>t()),this.mediaSubscriptions=[]}setOptions(t){this.options=Object.assign({},this.options,t),this.renderer.setOptions(this.options),t.audioRate&&this.setPlaybackRate(t.audioRate),t.mediaControls!=null&&(this.getMediaElement().controls=t.mediaControls)}registerPlugin(t){return t.init(this),this.plugins.push(t),this.subscriptions.push(t.once("destroy",()=>{this.plugins=this.plugins.filter(e=>e!==t)})),t}getWrapper(){return this.renderer.getWrapper()}getScroll(){return this.renderer.getScroll()}getActivePlugins(){return this.plugins}loadAudio(t,e,i,r){return _(this,void 0,void 0,function*(){if(this.emit("load",t),!this.options.media&&this.isPlaying()&&this.pause(),this.decodedData=null,!e&&!i){const o=s=>this.emit("loading",s);e=yield tt.fetchBlob(t,o,this.options.fetchParams)}this.setSrc(t,e);const n=(yield Promise.resolve(r||this.getDuration()))||(yield new Promise(o=>{this.onceMediaEvent("loadedmetadata",()=>o(this.getDuration()))}));if(i)this.decodedData=$.createBuffer(i,n||0);else if(e){const o=yield e.arrayBuffer();this.decodedData=yield $.decode(o,this.options.sampleRate)}this.decodedData&&(this.emit("decode",this.getDuration()),this.renderer.render(this.decodedData)),this.emit("ready",this.getDuration())})}load(t,e,i){return _(this,void 0,void 0,function*(){yield this.loadAudio(t,void 0,e,i)})}loadBlob(t,e,i){return _(this,void 0,void 0,function*(){yield this.loadAudio("blob",t,e,i)})}zoom(t){if(!this.decodedData)throw new Error("No audio loaded");this.renderer.zoom(t),this.emit("zoom",t)}getDecodedData(){return this.decodedData}exportPeaks({channels:t=2,maxLength:e=8e3,precision:i=1e4}={}){if(!this.decodedData)throw new Error("The audio has not been decoded yet");const r=Math.min(t,this.decodedData.numberOfChannels),n=[];for(let o=0;o<r;o++){const s=this.decodedData.getChannelData(o),c=[],l=Math.round(s.length/e);for(let a=0;a<e;a++){const d=s.slice(a*l,(a+1)*l),p=Math.max(...d);c.push(Math.round(p*i)/i)}n.push(c)}return n}getDuration(){let t=super.getDuration()||0;return(t===0||t===1/0)&&this.decodedData&&(t=this.decodedData.duration),t}toggleInteraction(t){this.options.interact=t}seekTo(t){const e=this.getDuration()*t;this.setTime(e)}playPause(){return _(this,void 0,void 0,function*(){return this.isPlaying()?this.pause():this.play()})}stop(){this.pause(),this.setTime(0)}skip(t){this.setTime(this.getCurrentTime()+t)}empty(){this.load("",[[0]],.001)}setMediaElement(t){this.unsubscribePlayerEvents(),super.setMediaElement(t),this.initPlayerEvents()}destroy(){this.emit("destroy"),this.plugins.forEach(t=>t.destroy()),this.subscriptions.forEach(t=>t()),this.unsubscribePlayerEvents(),this.timer.destroy(),this.renderer.destroy(),super.destroy()}}const ot=h=>{const t=atob(h),e=Array.from(t).map(i=>i.charCodeAt(0));return new Uint8Array(e)},gt=h=>{h.getTracks().forEach(t=>t.stop())},at=h=>{try{return JSON.parse(h)}catch{return h}},ht=(h="/voice")=>{const t=window.location.protocol==="https:"?"wss:":"ws:",e=window.location.host;return new URL(h,`${t}//${e}`).href},vt=h=>{const t=x(""),e=x([]),i=x([]);return{currentText:t,originals:e,translateds:i,onmessage:o=>{var c,l;const s=at(o);if(typeof s!="string"){if(s.type==="original"&&s.content)s.isFinal?(t.value="",e.value.push(s.content)):t.value=s.content;else if(s.type==="translated")i.value.push(s.content),(c=h==null?void 0:h.ontranslated)==null||c.call(h,s.content);else if(s.type==="audio"&&s.content){const a=ot(s.content),d=new Blob([a],{type:"audio/mp3"});(l=h==null?void 0:h.onAudioData)==null||l.call(h,d)}}},cleanScreen:()=>{t.value="",e.value=[],i.value=[]}}},yt=(h,t)=>{const e=new WebSocket(ht(h)),i=[];return e.onopen=()=>{var o;i.length>0&&(i.forEach(s=>{typeof s=="string"||s instanceof Blob||s instanceof ArrayBuffer?e.send(s):e.send(JSON.stringify(s))}),i.length=0),(o=t.onopen)==null||o.call(t,e)},e.onmessage=o=>{var s;return(s=t.onmessage)==null?void 0:s.call(t,o.data)},e.onerror=o=>{var s;(s=t.onerror)==null||s.call(t,o)},e.onclose=o=>{var s;(s=t.onclose)==null||s.call(t,o)},{ws:e,send:o=>{e.readyState===WebSocket.OPEN?typeof o=="string"||o instanceof Blob||o instanceof ArrayBuffer?e.send(o):e.send(JSON.stringify(o)):i.push(o)},close:()=>{e.close()}}},lt=V({__name:"ScrollableContent",props:{isLoading:{type:Boolean,default:!1},contents:{type:Array,default:()=>[]},current:{type:String}},setup(h){const t=x();return X(t,e=>{var r;const i=(r=t.value)==null?void 0:r.lastElementChild;i&&i.scrollIntoView({behavior:"smooth",block:"end"})},{childList:!0}),(e,i)=>(M(),T("section",{class:k([e.$style["lru-wrapper"]])},[D("section",{class:k([e.$style.lru])},[D("ul",{class:k([e.$style["lru-content"]]),ref_key:"listRef",ref:t},[(M(!0),T(G,null,I(h.contents,(r,n)=>(M(),T("li",{key:r+n,class:k([e.$style["lru-item"]])},O(r),3))),128)),h.current?(M(),T("li",{key:0,class:k([e.$style["lru-item"]])},O(h.current),3)):q("",!0),D("li",{class:k([e.$style.hidden])},null,2)],2)],2)],2))}}),ct="_lru_1ctad_2",dt="_hidden_1ctad_63",ut={"lru-wrapper":"_lru-wrapper_1ctad_2",lru:ct,"lru-content":"_lru-content_1ctad_33","lru-item":"_lru-item_1ctad_43",hidden:dt},pt={$style:ut},bt=U(lt,[["__cssModules",pt]]);export{bt as S,H as W,mt as X,yt as c,gt as s,vt as u};
static/assets/StandingGreeting.fbx ADDED
Binary file (843 kB). View file
 
static/assets/index-01d98e79.js ADDED
The diff for this file is too large to render. See raw diff
 
static/assets/index-23e5b178.js ADDED
@@ -0,0 +1 @@
 
 
1
+ import{d as e,o as n,c as o}from"./index-01d98e79.js";const p=e({name:"ViewSignUp",__name:"index",setup(t){return(a,c)=>(n(),o("div"))}});export{p as default};
static/assets/index-3292270b.css ADDED
The diff for this file is too large to render. See raw diff
 
static/assets/index-487b7fa5.css ADDED
@@ -0,0 +1 @@
 
 
1
+ ._main_113lr_2{display:flex;margin-top:30px;gap:30px;height:calc(100% - 116px)}._options_113lr_9{margin-top:30px;display:flex;flex-direction:column;gap:30px}._main-view_113lr_16{position:relative;flex:1;height:100%}._bar_113lr_22{display:flex;margin-top:.5rem;gap:.5rem;padding:.5rem;height:4rem;border-radius:16px;background-color:#faebf080;color:#fff}._text-content_113lr_33{display:flex;height:calc(100% - 10rem)}
static/assets/index-7e085a21.js ADDED
@@ -0,0 +1,180 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import{a as Ie,B as ce,s as De,b as Me,e as xe,f as Ee,o as f,c as w,r as S,g as T,m as h,h as te,i as I,j,k as pe,u as Ke,l as ie,n as G,p as le,q as Ae,w as se,t as Be,v as Oe,U as ae,x as He,D as y,y as we,z as ne,F as U,A as ue,C as A,E as D,Z as oe,O as z,G as Re,H as Ne,R as je,I as Ge,J as Ue,K as Se,L as H,M as E,N as B,T as We,P as qe,Q as Ce,d as he,S as O,V as $e,W as Ze,X as Xe,Y as Je,_ as Qe,$ as Ye,a0 as _e}from"./index-01d98e79.js";import{s as et,u as tt,X as nt,S as it,c as st}from"./ScrollableContent-8254898f.js";const rt=Ie("CircleIcon",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]),ot=Ie("SquareDotIcon",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}]]);var lt=`
2
+ @layer primevue {
3
+ .p-inline-message {
4
+ display: inline-flex;
5
+ align-items: center;
6
+ justify-content: center;
7
+ vertical-align: top;
8
+ }
9
+
10
+ .p-inline-message-icon {
11
+ flex-shrink: 0;
12
+ }
13
+
14
+ .p-inline-message-icon-only .p-inline-message-text {
15
+ visibility: hidden;
16
+ width: 0;
17
+ }
18
+
19
+ .p-fluid .p-inline-message {
20
+ display: flex;
21
+ }
22
+ }
23
+ `,at={root:function(e){var n=e.props,s=e.instance;return["p-inline-message p-component p-inline-message-"+n.severity,{"p-inline-message-icon-only":!s.$slots.default}]},icon:function(e){var n=e.props;return["p-inline-message-icon",n.icon]},text:"p-inline-message-text"},ut=ce.extend({name:"inlinemessage",css:lt,classes:at}),dt={name:"BaseInlineMessage",extends:pe,props:{severity:{type:String,default:"error"},icon:{type:String,default:void 0}},style:ut,provide:function(){return{$parentInstance:this}}},Le={name:"InlineMessage",extends:dt,timeout:null,data:function(){return{visible:!0}},mounted:function(){var e=this;this.sticky||setTimeout(function(){e.visible=!1},this.life)},computed:{iconComponent:function(){return{info:De,success:Me,warn:xe,error:Ee}[this.severity]}}};function ct(t,e,n,s,r,i){return f(),w("div",h({"aria-live":"polite",class:t.cx("root")},t.ptm("root")),[S(t.$slots,"icon",{},function(){return[(f(),T(te(t.icon?"span":i.iconComponent),h({class:t.cx("icon")},t.ptm("icon")),null,16,["class"]))]}),I("span",h({class:t.cx("text")},t.ptm("text")),[S(t.$slots,"default",{},function(){return[j(" ")]})],16)],16)}Le.render=ct;var C=(t=>(t.STOPPED="STOPPED",t.RECORDING="RECORDING",t.UNAVAILIABLE="UNAVAILIABLE",t.PENDING="PENDING",t.STOPPING="STOPPING",t.PAUSED="PAUSED",t))(C||{});const pt="/assets/worklet-processer-856fc525.js";const ht=t=>{const{audioInputs:e,audioOutputs:n,...s}=Ke({requestPermissions:!0,constraints:{audio:!0,video:!1},onUpdated:t==null?void 0:t.onUpdated}),r=ie(()=>e.value.map(o=>({label:o.label,deviceId:o.deviceId,value:o.deviceId,groupId:o.groupId,kind:o.kind}))),i=ie(()=>n.value.map(o=>({label:o.label,deviceId:o.deviceId,value:o.deviceId,groupId:o.groupId,kind:o.kind})));return{...s,SpeakerList:i,micphoneList:r}},ft=async t=>await navigator.mediaDevices.getUserMedia({audio:{deviceId:t}}),mt=t=>{const e=G(C.UNAVAILIABLE),n=le(),s=le(),r={source:void 0,processor:void 0},i=async l=>{var v;if(e.value===C.RECORDING)return;e.value=C.PENDING,n.value=new AudioContext({latencyHint:"interactive"}),await n.value.audioWorklet.addModule(pt),s.value&&s.value.getTracks().forEach(g=>g.stop()),s.value=await ft(l);const a=n.value.createMediaStreamSource(s.value),d=new AudioWorkletNode(n.value,"recorder.worklet");d.connect(n.value.destination),a.connect(d),r.source=a,r.processor=d,n.value.resume(),e.value=C.RECORDING,d.port.onmessage=g=>{var b;(b=t==null?void 0:t.ondata)==null||b.call(t,g.data)},d.port.onmessageerror=g=>{var b;(b=t==null?void 0:t.onerror)==null||b.call(t,g),o()},(v=t==null?void 0:t.onstart)==null||v.call(t)},o=async()=>{var d;if(e.value===C.STOPPED)return;e.value=C.STOPPING;const{source:l,processor:a}=r;s.value&&et(s.value),l==null||l.disconnect(),a==null||a.disconnect(),n.value&&(await n.value.close(),r.processor=void 0,r.source=void 0),n.value=void 0,e.value=C.STOPPED,(d=t==null?void 0:t.onclose)==null||d.call(t)},u=Ae({name:"microphone"});return se(u,l=>{l==="granted"?e.value=C.STOPPED:e.value=C.UNAVAILIABLE},{immediate:!0}),{status:Be(e),context:n,stream:s,startRecord:i,stopRecord:o}};var Ve={name:"ChevronDownIcon",extends:Oe},gt=I("path",{d:"M7.01744 10.398C6.91269 10.3985 6.8089 10.378 6.71215 10.3379C6.61541 10.2977 6.52766 10.2386 6.45405 10.1641L1.13907 4.84913C1.03306 4.69404 0.985221 4.5065 1.00399 4.31958C1.02276 4.13266 1.10693 3.95838 1.24166 3.82747C1.37639 3.69655 1.55301 3.61742 1.74039 3.60402C1.92777 3.59062 2.11386 3.64382 2.26584 3.75424L7.01744 8.47394L11.769 3.75424C11.9189 3.65709 12.097 3.61306 12.2748 3.62921C12.4527 3.64535 12.6199 3.72073 12.7498 3.84328C12.8797 3.96582 12.9647 4.12842 12.9912 4.30502C13.0177 4.48162 12.9841 4.662 12.8958 4.81724L7.58083 10.1322C7.50996 10.2125 7.42344 10.2775 7.32656 10.3232C7.22968 10.3689 7.12449 10.3944 7.01744 10.398Z",fill:"currentColor"},null,-1),vt=[gt];function yt(t,e,n,s,r,i){return f(),w("svg",h({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),vt,16)}Ve.render=yt;var Pe={name:"FilterIcon",extends:Oe,computed:{pathId:function(){return"pv_icon_clip_".concat(ae())}}},bt=["clipPath"],It=I("path",{d:"M8.64708 14H5.35296C5.18981 13.9979 5.03395 13.9321 4.91858 13.8167C4.8032 13.7014 4.73745 13.5455 4.73531 13.3824V7L0.329431 0.98C0.259794 0.889466 0.217389 0.780968 0.20718 0.667208C0.19697 0.553448 0.219379 0.439133 0.271783 0.337647C0.324282 0.236453 0.403423 0.151519 0.500663 0.0920138C0.597903 0.0325088 0.709548 0.000692754 0.823548 0H13.1765C13.2905 0.000692754 13.4021 0.0325088 13.4994 0.0920138C13.5966 0.151519 13.6758 0.236453 13.7283 0.337647C13.7807 0.439133 13.8031 0.553448 13.7929 0.667208C13.7826 0.780968 13.7402 0.889466 13.6706 0.98L9.26472 7V13.3824C9.26259 13.5455 9.19683 13.7014 9.08146 13.8167C8.96609 13.9321 8.81022 13.9979 8.64708 14ZM5.97061 12.7647H8.02943V6.79412C8.02878 6.66289 8.07229 6.53527 8.15296 6.43177L11.9412 1.23529H2.05884L5.86355 6.43177C5.94422 6.53527 5.98773 6.66289 5.98708 6.79412L5.97061 12.7647Z",fill:"currentColor"},null,-1),Ot=[It],wt=["id"],St=I("rect",{width:"14",height:"14",fill:"white"},null,-1),Ct=[St];function Lt(t,e,n,s,r,i){return f(),w("svg",h({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),[I("g",{clipPath:"url(#".concat(i.pathId,")")},Ot,8,bt),I("defs",null,[I("clipPath",{id:"".concat(i.pathId)},Ct,8,wt)])],16)}Pe.render=Lt;var Vt=He(),Pt=`
24
+ .p-virtualscroller {
25
+ position: relative;
26
+ overflow: auto;
27
+ contain: strict;
28
+ transform: translateZ(0);
29
+ will-change: scroll-position;
30
+ outline: 0 none;
31
+ }
32
+
33
+ .p-virtualscroller-content {
34
+ position: absolute;
35
+ top: 0;
36
+ left: 0;
37
+ /* contain: content; */
38
+ min-height: 100%;
39
+ min-width: 100%;
40
+ will-change: transform;
41
+ }
42
+
43
+ .p-virtualscroller-spacer {
44
+ position: absolute;
45
+ top: 0;
46
+ left: 0;
47
+ height: 1px;
48
+ width: 1px;
49
+ transform-origin: 0 0;
50
+ pointer-events: none;
51
+ }
52
+
53
+ .p-virtualscroller .p-virtualscroller-loader {
54
+ position: sticky;
55
+ top: 0;
56
+ left: 0;
57
+ width: 100%;
58
+ height: 100%;
59
+ }
60
+
61
+ .p-virtualscroller-loader.p-component-overlay {
62
+ display: flex;
63
+ align-items: center;
64
+ justify-content: center;
65
+ }
66
+
67
+ .p-virtualscroller-loading-icon {
68
+ font-size: 2rem;
69
+ }
70
+
71
+ .p-virtualscroller-loading-icon.p-icon {
72
+ width: 2rem;
73
+ height: 2rem;
74
+ }
75
+
76
+ .p-virtualscroller-horizontal > .p-virtualscroller-content {
77
+ display: flex;
78
+ }
79
+
80
+ /* Inline */
81
+ .p-virtualscroller-inline .p-virtualscroller-content {
82
+ position: static;
83
+ }
84
+ `,me=ce.extend({name:"virtualscroller",css:Pt}),Ft={name:"BaseVirtualScroller",extends:pe,props:{id:{type:String,default:null},style:null,class:null,items:{type:Array,default:null},itemSize:{type:[Number,Array],default:0},scrollHeight:null,scrollWidth:null,orientation:{type:String,default:"vertical"},numToleratedItems:{type:Number,default:null},delay:{type:Number,default:0},resizeDelay:{type:Number,default:10},lazy:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},loaderDisabled:{type:Boolean,default:!1},columns:{type:Array,default:null},loading:{type:Boolean,default:!1},showSpacer:{type:Boolean,default:!0},showLoader:{type:Boolean,default:!1},tabindex:{type:Number,default:0},inline:{type:Boolean,default:!1},step:{type:Number,default:0},appendOnly:{type:Boolean,default:!1},autoSize:{type:Boolean,default:!1}},style:me,provide:function(){return{$parentInstance:this}},beforeMount:function(){me.loadStyle()}};function Z(t){"@babel/helpers - typeof";return Z=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Z(t)}function ge(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,s)}return n}function $(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?ge(Object(n),!0).forEach(function(s){Fe(t,s,n[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ge(Object(n)).forEach(function(s){Object.defineProperty(t,s,Object.getOwnPropertyDescriptor(n,s))})}return t}function Fe(t,e,n){return e=zt(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function zt(t){var e=Tt(t,"string");return Z(e)==="symbol"?e:String(e)}function Tt(t,e){if(Z(t)!=="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var s=n.call(t,e||"default");if(Z(s)!=="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var ze={name:"VirtualScroller",extends:Ft,emits:["update:numToleratedItems","scroll","scroll-index-change","lazy-load"],data:function(){return{first:this.isBoth()?{rows:0,cols:0}:0,last:this.isBoth()?{rows:0,cols:0}:0,page:this.isBoth()?{rows:0,cols:0}:0,numItemsInViewport:this.isBoth()?{rows:0,cols:0}:0,lastScrollPos:this.isBoth()?{top:0,left:0}:0,d_numToleratedItems:this.numToleratedItems,d_loading:this.loading,loaderArr:[],spacerStyle:{},contentStyle:{}}},element:null,content:null,lastScrollPos:null,scrollTimeout:null,resizeTimeout:null,defaultWidth:0,defaultHeight:0,defaultContentWidth:0,defaultContentHeight:0,isRangeChanged:!1,lazyLoadState:{},resizeListener:null,initialized:!1,watch:{numToleratedItems:function(e){this.d_numToleratedItems=e},loading:function(e){this.d_loading=e},items:function(e,n){(!n||n.length!==(e||[]).length)&&(this.init(),this.calculateAutoSize())},itemSize:function(){this.init(),this.calculateAutoSize()},orientation:function(){this.lastScrollPos=this.isBoth()?{top:0,left:0}:0},scrollHeight:function(){this.init(),this.calculateAutoSize()},scrollWidth:function(){this.init(),this.calculateAutoSize()}},mounted:function(){this.viewInit(),this.lastScrollPos=this.isBoth()?{top:0,left:0}:0,this.lazyLoadState=this.lazyLoadState||{}},updated:function(){!this.initialized&&this.viewInit()},unmounted:function(){this.unbindResizeListener(),this.initialized=!1},methods:{viewInit:function(){y.isVisible(this.element)&&(this.setContentEl(this.content),this.init(),this.bindResizeListener(),this.defaultWidth=y.getWidth(this.element),this.defaultHeight=y.getHeight(this.element),this.defaultContentWidth=y.getWidth(this.content),this.defaultContentHeight=y.getHeight(this.content),this.initialized=!0)},init:function(){this.disabled||(this.setSize(),this.calculateOptions(),this.setSpacerSize())},isVertical:function(){return this.orientation==="vertical"},isHorizontal:function(){return this.orientation==="horizontal"},isBoth:function(){return this.orientation==="both"},scrollTo:function(e){this.lastScrollPos=this.both?{top:0,left:0}:0,this.element&&this.element.scrollTo(e)},scrollToIndex:function(e){var n=this,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"auto",r=this.isBoth(),i=this.isHorizontal(),o=this.first,u=this.calculateNumItems(),l=u.numToleratedItems,a=this.getContentPosition(),d=this.itemSize,v=function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,m=arguments.length>1?arguments[1]:void 0;return c<=m?0:c},g=function(c,m,F){return c*m+F},b=function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return n.scrollTo({left:c,top:m,behavior:s})},p=r?{rows:0,cols:0}:0,V=!1;r?(p={rows:v(e[0],l[0]),cols:v(e[1],l[1])},b(g(p.cols,d[1],a.left),g(p.rows,d[0],a.top)),V=p.rows!==o.rows||p.cols!==o.cols):(p=v(e,l),i?b(g(p,d,a.left),0):b(0,g(p,d,a.top)),V=p!==o),this.isRangeChanged=V,this.first=p},scrollInView:function(e,n){var s=this,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"auto";if(n){var i=this.isBoth(),o=this.isHorizontal(),u=this.getRenderedRange(),l=u.first,a=u.viewport,d=function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return s.scrollTo({left:P,top:c,behavior:r})},v=n==="to-start",g=n==="to-end";if(v){if(i)a.first.rows-l.rows>e[0]?d(a.first.cols*this.itemSize[1],(a.first.rows-1)*this.itemSize[0]):a.first.cols-l.cols>e[1]&&d((a.first.cols-1)*this.itemSize[1],a.first.rows*this.itemSize[0]);else if(a.first-l>e){var b=(a.first-1)*this.itemSize;o?d(b,0):d(0,b)}}else if(g){if(i)a.last.rows-l.rows<=e[0]+1?d(a.first.cols*this.itemSize[1],(a.first.rows+1)*this.itemSize[0]):a.last.cols-l.cols<=e[1]+1&&d((a.first.cols+1)*this.itemSize[1],a.first.rows*this.itemSize[0]);else if(a.last-l<=e+1){var p=(a.first+1)*this.itemSize;o?d(p,0):d(0,p)}}}else this.scrollToIndex(e,r)},getRenderedRange:function(){var e=function(v,g){return Math.floor(v/(g||v))},n=this.first,s=0;if(this.element){var r=this.isBoth(),i=this.isHorizontal(),o=this.element.scrollTop,u=o.scrollTop,l=o.scrollLeft;if(r)n={rows:e(u,this.itemSize[0]),cols:e(l,this.itemSize[1])},s={rows:n.rows+this.numItemsInViewport.rows,cols:n.cols+this.numItemsInViewport.cols};else{var a=i?l:u;n=e(a,this.itemSize),s=n+this.numItemsInViewport}}return{first:this.first,last:this.last,viewport:{first:n,last:s}}},calculateNumItems:function(){var e=this.isBoth(),n=this.isHorizontal(),s=this.itemSize,r=this.getContentPosition(),i=this.element?this.element.offsetWidth-r.left:0,o=this.element?this.element.offsetHeight-r.top:0,u=function(g,b){return Math.ceil(g/(b||g))},l=function(g){return Math.ceil(g/2)},a=e?{rows:u(o,s[0]),cols:u(i,s[1])}:u(n?i:o,s),d=this.d_numToleratedItems||(e?[l(a.rows),l(a.cols)]:l(a));return{numItemsInViewport:a,numToleratedItems:d}},calculateOptions:function(){var e=this,n=this.isBoth(),s=this.first,r=this.calculateNumItems(),i=r.numItemsInViewport,o=r.numToleratedItems,u=function(d,v,g){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return e.getLast(d+v+(d<g?2:3)*g,b)},l=n?{rows:u(s.rows,i.rows,o[0]),cols:u(s.cols,i.cols,o[1],!0)}:u(s,i,o);this.last=l,this.numItemsInViewport=i,this.d_numToleratedItems=o,this.$emit("update:numToleratedItems",this.d_numToleratedItems),this.showLoader&&(this.loaderArr=n?Array.from({length:i.rows}).map(function(){return Array.from({length:i.cols})}):Array.from({length:i})),this.lazy&&Promise.resolve().then(function(){e.lazyLoadState={first:e.step?n?{rows:0,cols:s.cols}:0:s,last:Math.min(e.step?e.step:l,e.items.length)},e.$emit("lazy-load",e.lazyLoadState)})},calculateAutoSize:function(){var e=this;this.autoSize&&!this.d_loading&&Promise.resolve().then(function(){if(e.content){var n=e.isBoth(),s=e.isHorizontal(),r=e.isVertical();e.content.style.minHeight=e.content.style.minWidth="auto",e.content.style.position="relative",e.element.style.contain="none";var i=[y.getWidth(e.content),y.getHeight(e.content)],o=i[0],u=i[1];o!==e.defaultContentWidth&&(e.element.style.width=""),u!==e.defaultContentHeight&&(e.element.style.height="");var l=[y.getWidth(e.element),y.getHeight(e.element)],a=l[0],d=l[1];(n||s)&&(e.element.style.width=a<e.defaultWidth?a+"px":e.scrollWidth||e.defaultWidth+"px"),(n||r)&&(e.element.style.height=d<e.defaultHeight?d+"px":e.scrollHeight||e.defaultHeight+"px"),e.content.style.minHeight=e.content.style.minWidth="",e.content.style.position="",e.element.style.contain=""}})},getLast:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,n=arguments.length>1?arguments[1]:void 0;return this.items?Math.min(n?(this.columns||this.items[0]).length:this.items.length,e):0},getContentPosition:function(){if(this.content){var e=getComputedStyle(this.content),n=parseFloat(e.paddingLeft)+Math.max(parseFloat(e.left)||0,0),s=parseFloat(e.paddingRight)+Math.max(parseFloat(e.right)||0,0),r=parseFloat(e.paddingTop)+Math.max(parseFloat(e.top)||0,0),i=parseFloat(e.paddingBottom)+Math.max(parseFloat(e.bottom)||0,0);return{left:n,right:s,top:r,bottom:i,x:n+s,y:r+i}}return{left:0,right:0,top:0,bottom:0,x:0,y:0}},setSize:function(){var e=this;if(this.element){var n=this.isBoth(),s=this.isHorizontal(),r=this.element.parentElement,i=this.scrollWidth||"".concat(this.element.offsetWidth||r.offsetWidth,"px"),o=this.scrollHeight||"".concat(this.element.offsetHeight||r.offsetHeight,"px"),u=function(a,d){return e.element.style[a]=d};n||s?(u("height",o),u("width",i)):u("height",o)}},setSpacerSize:function(){var e=this,n=this.items;if(n){var s=this.isBoth(),r=this.isHorizontal(),i=this.getContentPosition(),o=function(l,a,d){var v=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return e.spacerStyle=$($({},e.spacerStyle),Fe({},"".concat(l),(a||[]).length*d+v+"px"))};s?(o("height",n,this.itemSize[0],i.y),o("width",this.columns||n[1],this.itemSize[1],i.x)):r?o("width",this.columns||n,this.itemSize,i.x):o("height",n,this.itemSize,i.y)}},setContentPosition:function(e){var n=this;if(this.content&&!this.appendOnly){var s=this.isBoth(),r=this.isHorizontal(),i=e?e.first:this.first,o=function(d,v){return d*v},u=function(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return n.contentStyle=$($({},n.contentStyle),{transform:"translate3d(".concat(d,"px, ").concat(v,"px, 0)")})};if(s)u(o(i.cols,this.itemSize[1]),o(i.rows,this.itemSize[0]));else{var l=o(i,this.itemSize);r?u(l,0):u(0,l)}}},onScrollPositionChange:function(e){var n=this,s=e.target,r=this.isBoth(),i=this.isHorizontal(),o=this.getContentPosition(),u=function(L,M){return L?L>M?L-M:L:0},l=function(L,M){return Math.floor(L/(M||L))},a=function(L,M,q,_,K,N){return L<=K?K:N?q-_-K:M+K-1},d=function(L,M,q,_,K,N,ee){return L<=N?0:Math.max(0,ee?L<M?q:L-N:L>M?q:L-2*N)},v=function(L,M,q,_,K,N){var ee=M+_+2*K;return L>=K&&(ee+=K+1),n.getLast(ee,N)},g=u(s.scrollTop,o.top),b=u(s.scrollLeft,o.left),p=r?{rows:0,cols:0}:0,V=this.last,P=!1,c=this.lastScrollPos;if(r){var m=this.lastScrollPos.top<=g,F=this.lastScrollPos.left<=b;if(!this.appendOnly||this.appendOnly&&(m||F)){var k={rows:l(g,this.itemSize[0]),cols:l(b,this.itemSize[1])},Q={rows:a(k.rows,this.first.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0],m),cols:a(k.cols,this.first.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],F)};p={rows:d(k.rows,Q.rows,this.first.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0],m),cols:d(k.cols,Q.cols,this.first.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],F)},V={rows:v(k.rows,p.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0]),cols:v(k.cols,p.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],!0)},P=p.rows!==this.first.rows||V.rows!==this.last.rows||p.cols!==this.first.cols||V.cols!==this.last.cols||this.isRangeChanged,c={top:g,left:b}}}else{var W=i?b:g,R=this.lastScrollPos<=W;if(!this.appendOnly||this.appendOnly&&R){var re=l(W,this.itemSize),ke=a(re,this.first,this.last,this.numItemsInViewport,this.d_numToleratedItems,R);p=d(re,ke,this.first,this.last,this.numItemsInViewport,this.d_numToleratedItems,R),V=v(re,p,this.last,this.numItemsInViewport,this.d_numToleratedItems),P=p!==this.first||V!==this.last||this.isRangeChanged,c=W}}return{first:p,last:V,isRangeChanged:P,scrollPos:c}},onScrollChange:function(e){var n=this.onScrollPositionChange(e),s=n.first,r=n.last,i=n.isRangeChanged,o=n.scrollPos;if(i){var u={first:s,last:r};if(this.setContentPosition(u),this.first=s,this.last=r,this.lastScrollPos=o,this.$emit("scroll-index-change",u),this.lazy&&this.isPageChanged(s)){var l={first:this.step?Math.min(this.getPageByFirst(s)*this.step,this.items.length-this.step):s,last:Math.min(this.step?(this.getPageByFirst(s)+1)*this.step:r,this.items.length)},a=this.lazyLoadState.first!==l.first||this.lazyLoadState.last!==l.last;a&&this.$emit("lazy-load",l),this.lazyLoadState=l}}},onScroll:function(e){var n=this;if(this.$emit("scroll",e),this.delay&&this.isPageChanged()){if(this.scrollTimeout&&clearTimeout(this.scrollTimeout),!this.d_loading&&this.showLoader){var s=this.onScrollPositionChange(e),r=s.isRangeChanged,i=r||(this.step?this.isPageChanged():!1);i&&(this.d_loading=!0)}this.scrollTimeout=setTimeout(function(){n.onScrollChange(e),n.d_loading&&n.showLoader&&(!n.lazy||n.loading===void 0)&&(n.d_loading=!1,n.page=n.getPageByFirst())},this.delay)}else this.onScrollChange(e)},onResize:function(){var e=this;this.resizeTimeout&&clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(function(){if(y.isVisible(e.element)){var n=e.isBoth(),s=e.isVertical(),r=e.isHorizontal(),i=[y.getWidth(e.element),y.getHeight(e.element)],o=i[0],u=i[1],l=o!==e.defaultWidth,a=u!==e.defaultHeight,d=n?l||a:r?l:s?a:!1;d&&(e.d_numToleratedItems=e.numToleratedItems,e.defaultWidth=o,e.defaultHeight=u,e.defaultContentWidth=y.getWidth(e.content),e.defaultContentHeight=y.getHeight(e.content),e.init())}},this.resizeDelay)},bindResizeListener:function(){this.resizeListener||(this.resizeListener=this.onResize.bind(this),window.addEventListener("resize",this.resizeListener),window.addEventListener("orientationchange",this.resizeListener))},unbindResizeListener:function(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),window.removeEventListener("orientationchange",this.resizeListener),this.resizeListener=null)},getOptions:function(e){var n=(this.items||[]).length,s=this.isBoth()?this.first.rows+e:this.first+e;return{index:s,count:n,first:s===0,last:s===n-1,even:s%2===0,odd:s%2!==0}},getLoaderOptions:function(e,n){var s=this.loaderArr.length;return $({index:e,count:s,first:e===0,last:e===s-1,even:e%2===0,odd:e%2!==0},n)},getPageByFirst:function(e){return Math.floor(((e??this.first)+this.d_numToleratedItems*4)/(this.step||1))},isPageChanged:function(e){return this.step?this.page!==this.getPageByFirst(e??this.first):!0},setContentEl:function(e){this.content=e||this.content||y.findSingle(this.element,'[data-pc-section="content"]')},elementRef:function(e){this.element=e},contentRef:function(e){this.content=e}},computed:{containerClass:function(){return["p-virtualscroller",this.class,{"p-virtualscroller-inline":this.inline,"p-virtualscroller-both p-both-scroll":this.isBoth(),"p-virtualscroller-horizontal p-horizontal-scroll":this.isHorizontal()}]},contentClass:function(){return["p-virtualscroller-content",{"p-virtualscroller-loading":this.d_loading}]},loaderClass:function(){return["p-virtualscroller-loader",{"p-component-overlay":!this.$slots.loader}]},loadedItems:function(){var e=this;return this.items&&!this.d_loading?this.isBoth()?this.items.slice(this.appendOnly?0:this.first.rows,this.last.rows).map(function(n){return e.columns?n:n.slice(e.appendOnly?0:e.first.cols,e.last.cols)}):this.isHorizontal()&&this.columns?this.items:this.items.slice(this.appendOnly?0:this.first,this.last):[]},loadedRows:function(){return this.d_loading?this.loaderDisabled?this.loaderArr:[]:this.loadedItems},loadedColumns:function(){if(this.columns){var e=this.isBoth(),n=this.isHorizontal();if(e||n)return this.d_loading&&this.loaderDisabled?e?this.loaderArr[0]:this.loaderArr:this.columns.slice(e?this.first.cols:this.first,e?this.last.cols:this.last)}return this.columns}},components:{SpinnerIcon:we}},kt=["tabindex"];function Dt(t,e,n,s,r,i){var o=ne("SpinnerIcon");return t.disabled?(f(),w(U,{key:1},[S(t.$slots,"default"),S(t.$slots,"content",{items:t.items,rows:t.items,columns:i.loadedColumns})],64)):(f(),w("div",h({key:0,ref:i.elementRef,class:i.containerClass,tabindex:t.tabindex,style:t.style,onScroll:e[0]||(e[0]=function(){return i.onScroll&&i.onScroll.apply(i,arguments)})},t.ptm("root"),{"data-pc-name":"virtualscroller"}),[S(t.$slots,"content",{styleClass:i.contentClass,items:i.loadedItems,getItemOptions:i.getOptions,loading:r.d_loading,getLoaderOptions:i.getLoaderOptions,itemSize:t.itemSize,rows:i.loadedRows,columns:i.loadedColumns,contentRef:i.contentRef,spacerStyle:r.spacerStyle,contentStyle:r.contentStyle,vertical:i.isVertical(),horizontal:i.isHorizontal(),both:i.isBoth()},function(){return[I("div",h({ref:i.contentRef,class:i.contentClass,style:r.contentStyle},t.ptm("content")),[(f(!0),w(U,null,ue(i.loadedItems,function(u,l){return S(t.$slots,"item",{key:l,item:u,options:i.getOptions(l)})}),128))],16)]}),t.showSpacer?(f(),w("div",h({key:0,class:"p-virtualscroller-spacer",style:r.spacerStyle},t.ptm("spacer")),null,16)):A("",!0),!t.loaderDisabled&&t.showLoader&&r.d_loading?(f(),w("div",h({key:1,class:i.loaderClass},t.ptm("loader")),[t.$slots&&t.$slots.loader?(f(!0),w(U,{key:0},ue(r.loaderArr,function(u,l){return S(t.$slots,"loader",{key:l,options:i.getLoaderOptions(l,i.isBoth()&&{numCols:t.d_numItemsInViewport.cols})})}),128)):A("",!0),S(t.$slots,"loadingicon",{},function(){return[D(o,h({spin:"",class:"p-virtualscroller-loading-icon"},t.ptm("loadingIcon")),null,16)]})],16)):A("",!0)],16,kt))}ze.render=Dt;var Mt=`
85
+ @layer primevue {
86
+ .p-dropdown {
87
+ display: inline-flex;
88
+ cursor: pointer;
89
+ position: relative;
90
+ user-select: none;
91
+ }
92
+
93
+ .p-dropdown-clear-icon {
94
+ position: absolute;
95
+ top: 50%;
96
+ margin-top: -0.5rem;
97
+ }
98
+
99
+ .p-dropdown-trigger {
100
+ display: flex;
101
+ align-items: center;
102
+ justify-content: center;
103
+ flex-shrink: 0;
104
+ }
105
+
106
+ .p-dropdown-label {
107
+ display: block;
108
+ white-space: nowrap;
109
+ overflow: hidden;
110
+ flex: 1 1 auto;
111
+ width: 1%;
112
+ text-overflow: ellipsis;
113
+ cursor: pointer;
114
+ }
115
+
116
+ .p-dropdown-label-empty {
117
+ overflow: hidden;
118
+ opacity: 0;
119
+ }
120
+
121
+ input.p-dropdown-label {
122
+ cursor: default;
123
+ }
124
+
125
+ .p-dropdown .p-dropdown-panel {
126
+ min-width: 100%;
127
+ }
128
+
129
+ .p-dropdown-panel {
130
+ position: absolute;
131
+ top: 0;
132
+ left: 0;
133
+ }
134
+
135
+ .p-dropdown-items-wrapper {
136
+ overflow: auto;
137
+ }
138
+
139
+ .p-dropdown-item {
140
+ cursor: pointer;
141
+ font-weight: normal;
142
+ white-space: nowrap;
143
+ position: relative;
144
+ overflow: hidden;
145
+ }
146
+
147
+ .p-dropdown-item-group {
148
+ cursor: auto;
149
+ }
150
+
151
+ .p-dropdown-items {
152
+ margin: 0;
153
+ padding: 0;
154
+ list-style-type: none;
155
+ }
156
+
157
+ .p-dropdown-filter {
158
+ width: 100%;
159
+ }
160
+
161
+ .p-dropdown-filter-container {
162
+ position: relative;
163
+ }
164
+
165
+ .p-dropdown-filter-icon {
166
+ position: absolute;
167
+ top: 50%;
168
+ margin-top: -0.5rem;
169
+ }
170
+
171
+ .p-fluid .p-dropdown {
172
+ display: flex;
173
+ }
174
+
175
+ .p-fluid .p-dropdown .p-dropdown-label {
176
+ width: 1%;
177
+ }
178
+ }
179
+ `,xt={root:function(e){var n=e.instance,s=e.props,r=e.state;return["p-dropdown p-component p-inputwrapper",{"p-disabled":s.disabled,"p-dropdown-clearable":s.showClear&&!s.disabled,"p-focus":r.focused,"p-inputwrapper-filled":n.hasSelectedOption,"p-inputwrapper-focus":r.focused||r.overlayVisible,"p-overlay-open":r.overlayVisible}]},input:function(e){var n=e.instance,s=e.props;return["p-dropdown-label p-inputtext",{"p-placeholder":!s.editable&&n.label===s.placeholder,"p-dropdown-label-empty":!s.editable&&!n.$slots.value&&(n.label==="p-emptylabel"||n.label.length===0)}]},clearIcon:"p-dropdown-clear-icon",trigger:"p-dropdown-trigger",loadingicon:"p-dropdown-trigger-icon",dropdownIcon:"p-dropdown-trigger-icon",panel:function(e){var n=e.instance;return["p-dropdown-panel p-component",{"p-input-filled":n.$primevue.config.inputStyle==="filled","p-ripple-disabled":n.$primevue.config.ripple===!1}]},header:"p-dropdown-header",filterContainer:"p-dropdown-filter-container",filterInput:"p-dropdown-filter p-inputtext p-component",filterIcon:"p-dropdown-filter-icon",wrapper:"p-dropdown-items-wrapper",list:"p-dropdown-items",itemGroup:"p-dropdown-item-group",item:function(e){var n=e.instance,s=e.state,r=e.option,i=e.focusedOption;return["p-dropdown-item",{"p-highlight":n.isSelected(r),"p-focus":s.focusedOptionIndex===i,"p-disabled":n.isOptionDisabled(r)}]},emptyMessage:"p-dropdown-empty-message"},Et=ce.extend({name:"dropdown",css:Mt,classes:xt}),Kt={name:"BaseDropdown",extends:pe,props:{modelValue:null,options:Array,optionLabel:[String,Function],optionValue:[String,Function],optionDisabled:[String,Function],optionGroupLabel:[String,Function],optionGroupChildren:[String,Function],scrollHeight:{type:String,default:"200px"},filter:Boolean,filterPlaceholder:String,filterLocale:String,filterMatchMode:{type:String,default:"contains"},filterFields:{type:Array,default:null},editable:Boolean,placeholder:{type:String,default:null},disabled:{type:Boolean,default:!1},dataKey:null,showClear:{type:Boolean,default:!1},inputId:{type:String,default:null},inputClass:{type:[String,Object],default:null},inputStyle:{type:Object,default:null},inputProps:{type:null,default:null},panelClass:{type:[String,Object],default:null},panelStyle:{type:Object,default:null},panelProps:{type:null,default:null},filterInputProps:{type:null,default:null},clearIconProps:{type:null,default:null},appendTo:{type:String,default:"body"},loading:{type:Boolean,default:!1},clearIcon:{type:String,default:void 0},dropdownIcon:{type:String,default:void 0},filterIcon:{type:String,default:void 0},loadingIcon:{type:String,default:void 0},resetFilterOnHide:{type:Boolean,default:!1},virtualScrollerOptions:{type:Object,default:null},autoOptionFocus:{type:Boolean,default:!0},autoFilterFocus:{type:Boolean,default:!1},selectOnFocus:{type:Boolean,default:!1},filterMessage:{type:String,default:null},selectionMessage:{type:String,default:null},emptySelectionMessage:{type:String,default:null},emptyFilterMessage:{type:String,default:null},emptyMessage:{type:String,default:null},tabindex:{type:Number,default:0},"aria-label":{type:String,default:null},"aria-labelledby":{type:String,default:null}},style:Et,provide:function(){return{$parentInstance:this}}};function X(t){"@babel/helpers - typeof";return X=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},X(t)}function At(t){return Nt(t)||Rt(t)||Ht(t)||Bt()}function Bt(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
180
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ht(t,e){if(t){if(typeof t=="string")return de(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return de(t,e)}}function Rt(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Nt(t){if(Array.isArray(t))return de(t)}function de(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,s=new Array(e);n<e;n++)s[n]=t[n];return s}function ve(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,s)}return n}function ye(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?ve(Object(n),!0).forEach(function(s){Te(t,s,n[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ve(Object(n)).forEach(function(s){Object.defineProperty(t,s,Object.getOwnPropertyDescriptor(n,s))})}return t}function Te(t,e,n){return e=jt(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function jt(t){var e=Gt(t,"string");return X(e)==="symbol"?e:String(e)}function Gt(t,e){if(X(t)!=="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var s=n.call(t,e||"default");if(X(s)!=="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var fe={name:"Dropdown",extends:Kt,emits:["update:modelValue","change","focus","blur","before-show","before-hide","show","hide","filter"],outsideClickListener:null,scrollHandler:null,resizeListener:null,overlay:null,list:null,virtualScroller:null,searchTimeout:null,searchValue:null,isModelValueChanged:!1,focusOnHover:!1,data:function(){return{id:this.$attrs.id,focused:!1,focusedOptionIndex:-1,filterValue:null,overlayVisible:!1}},watch:{"$attrs.id":function(e){this.id=e||ae()},modelValue:function(){this.isModelValueChanged=!0},options:function(){this.autoUpdateModel()}},mounted:function(){this.id=this.id||ae(),this.autoUpdateModel()},updated:function(){this.overlayVisible&&this.isModelValueChanged&&this.scrollInView(this.findSelectedOptionIndex()),this.isModelValueChanged=!1},beforeUnmount:function(){this.unbindOutsideClickListener(),this.unbindResizeListener(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.overlay&&(oe.clear(this.overlay),this.overlay=null)},methods:{getOptionIndex:function(e,n){return this.virtualScrollerDisabled?e:n&&n(e).index},getOptionLabel:function(e){return this.optionLabel?z.resolveFieldData(e,this.optionLabel):e},getOptionValue:function(e){return this.optionValue?z.resolveFieldData(e,this.optionValue):e},getOptionRenderKey:function(e,n){return(this.dataKey?z.resolveFieldData(e,this.dataKey):this.getOptionLabel(e))+"_"+n},getPTOptions:function(e,n,s,r){return this.ptm(r,{context:{selected:this.isSelected(e),focused:this.focusedOptionIndex===this.getOptionIndex(s,n),disabled:this.isOptionDisabled(e)}})},isOptionDisabled:function(e){return this.optionDisabled?z.resolveFieldData(e,this.optionDisabled):!1},isOptionGroup:function(e){return this.optionGroupLabel&&e.optionGroup&&e.group},getOptionGroupLabel:function(e){return z.resolveFieldData(e,this.optionGroupLabel)},getOptionGroupChildren:function(e){return z.resolveFieldData(e,this.optionGroupChildren)},getAriaPosInset:function(e){var n=this;return(this.optionGroupLabel?e-this.visibleOptions.slice(0,e).filter(function(s){return n.isOptionGroup(s)}).length:e)+1},show:function(e){this.$emit("before-show"),this.overlayVisible=!0,this.focusedOptionIndex=this.focusedOptionIndex!==-1?this.focusedOptionIndex:this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1,e&&y.focus(this.$refs.focusInput)},hide:function(e){var n=this,s=function(){n.$emit("before-hide"),n.overlayVisible=!1,n.focusedOptionIndex=-1,n.searchValue="",n.resetFilterOnHide&&(n.filterValue=null),e&&y.focus(n.$refs.focusInput)};setTimeout(function(){s()},0)},onFocus:function(e){this.disabled||(this.focused=!0,this.focusedOptionIndex=this.focusedOptionIndex!==-1?this.focusedOptionIndex:this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1,this.overlayVisible&&this.scrollInView(this.focusedOptionIndex),this.$emit("focus",e))},onBlur:function(e){this.focused=!1,this.focusedOptionIndex=-1,this.searchValue="",this.$emit("blur",e)},onKeyDown:function(e){if(this.disabled){e.preventDefault();return}var n=e.metaKey||e.ctrlKey;switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e,this.editable);break;case"ArrowLeft":case"ArrowRight":this.onArrowLeftKey(e,this.editable);break;case"Delete":this.onDeleteKey(e);case"Home":this.onHomeKey(e,this.editable);break;case"End":this.onEndKey(e,this.editable);break;case"PageDown":this.onPageDownKey(e);break;case"PageUp":this.onPageUpKey(e);break;case"Space":this.onSpaceKey(e,this.editable);break;case"Enter":case"NumpadEnter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e);break;case"Backspace":this.onBackspaceKey(e,this.editable);break;case"ShiftLeft":case"ShiftRight":break;default:!n&&z.isPrintableCharacter(e.key)&&(!this.overlayVisible&&this.show(),!this.editable&&this.searchOptions(e,e.key));break}},onEditableInput:function(e){var n=e.target.value;this.searchValue="";var s=this.searchOptions(e,n);!s&&(this.focusedOptionIndex=-1),this.updateModel(e,n)},onContainerClick:function(e){this.disabled||this.loading||e.target.tagName==="INPUT"||e.target.getAttribute("data-pc-section")==="clearicon"||e.target.closest('[data-pc-section="clearicon"]')||(!this.overlay||!this.overlay.contains(e.target))&&(this.overlayVisible?this.hide(!0):this.show(!0))},onClearClick:function(e){this.updateModel(e,null)},onFirstHiddenFocus:function(e){var n=e.relatedTarget===this.$refs.focusInput?y.getFirstFocusableElement(this.overlay,':not([data-p-hidden-focusable="true"])'):this.$refs.focusInput;y.focus(n)},onLastHiddenFocus:function(e){var n=e.relatedTarget===this.$refs.focusInput?y.getLastFocusableElement(this.overlay,':not([data-p-hidden-focusable="true"])'):this.$refs.focusInput;y.focus(n)},onOptionSelect:function(e,n){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,r=this.getOptionValue(n);this.updateModel(e,r),s&&this.hide(!0)},onOptionMouseMove:function(e,n){this.focusOnHover&&this.changeFocusedOptionIndex(e,n)},onFilterChange:function(e){var n=e.target.value;this.filterValue=n,this.focusedOptionIndex=-1,this.$emit("filter",{originalEvent:e,value:n}),!this.virtualScrollerDisabled&&this.virtualScroller.scrollToIndex(0)},onFilterKeyDown:function(e){switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e,!0);break;case"ArrowLeft":case"ArrowRight":this.onArrowLeftKey(e,!0);break;case"Home":this.onHomeKey(e,!0);break;case"End":this.onEndKey(e,!0);break;case"Enter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e,!0);break}},onFilterBlur:function(){this.focusedOptionIndex=-1},onFilterUpdated:function(){this.overlayVisible&&this.alignOverlay()},onOverlayClick:function(e){Vt.emit("overlay-click",{originalEvent:e,target:this.$el})},onOverlayKeyDown:function(e){switch(e.code){case"Escape":this.onEscapeKey(e);break}},onDeleteKey:function(e){this.showClear&&(this.updateModel(e,null),e.preventDefault())},onArrowDownKey:function(e){var n=this.focusedOptionIndex!==-1?this.findNextOptionIndex(this.focusedOptionIndex):this.findFirstFocusedOptionIndex();this.changeFocusedOptionIndex(e,n),!this.overlayVisible&&this.show(),e.preventDefault()},onArrowUpKey:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(e.altKey&&!n)this.focusedOptionIndex!==-1&&this.onOptionSelect(e,this.visibleOptions[this.focusedOptionIndex]),this.overlayVisible&&this.hide(),e.preventDefault();else{var s=this.focusedOptionIndex!==-1?this.findPrevOptionIndex(this.focusedOptionIndex):this.findLastFocusedOptionIndex();this.changeFocusedOptionIndex(e,s),!this.overlayVisible&&this.show(),e.preventDefault()}},onArrowLeftKey:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;n&&(this.focusedOptionIndex=-1)},onHomeKey:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;n?(e.currentTarget.setSelectionRange(0,0),this.focusedOptionIndex=-1):(this.changeFocusedOptionIndex(e,this.findFirstOptionIndex()),!this.overlayVisible&&this.show()),e.preventDefault()},onEndKey:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(n){var s=e.currentTarget,r=s.value.length;s.setSelectionRange(r,r),this.focusedOptionIndex=-1}else this.changeFocusedOptionIndex(e,this.findLastOptionIndex()),!this.overlayVisible&&this.show();e.preventDefault()},onPageUpKey:function(e){this.scrollInView(0),e.preventDefault()},onPageDownKey:function(e){this.scrollInView(this.visibleOptions.length-1),e.preventDefault()},onEnterKey:function(e){this.overlayVisible?(this.focusedOptionIndex!==-1&&this.onOptionSelect(e,this.visibleOptions[this.focusedOptionIndex]),this.hide()):this.onArrowDownKey(e),e.preventDefault()},onSpaceKey:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;!n&&this.onEnterKey(e)},onEscapeKey:function(e){this.overlayVisible&&this.hide(!0),e.preventDefault()},onTabKey:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;n||(this.overlayVisible&&this.hasFocusableElements()?(y.focus(this.$refs.firstHiddenFocusableElementOnOverlay),e.preventDefault()):(this.focusedOptionIndex!==-1&&this.onOptionSelect(e,this.visibleOptions[this.focusedOptionIndex]),this.overlayVisible&&this.hide(this.filter)))},onBackspaceKey:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;n&&!this.overlayVisible&&this.show()},onOverlayEnter:function(e){oe.set("overlay",e,this.$primevue.config.zIndex.overlay),y.addStyles(e,{position:"absolute",top:"0",left:"0"}),this.alignOverlay(),this.scrollInView(),this.autoFilterFocus&&y.focus(this.$refs.filterInput)},onOverlayAfterEnter:function(){this.bindOutsideClickListener(),this.bindScrollListener(),this.bindResizeListener(),this.$emit("show")},onOverlayLeave:function(){this.unbindOutsideClickListener(),this.unbindScrollListener(),this.unbindResizeListener(),this.$emit("hide"),this.overlay=null},onOverlayAfterLeave:function(e){oe.clear(e)},alignOverlay:function(){this.appendTo==="self"?y.relativePosition(this.overlay,this.$el):(this.overlay.style.minWidth=y.getOuterWidth(this.$el)+"px",y.absolutePosition(this.overlay,this.$el))},bindOutsideClickListener:function(){var e=this;this.outsideClickListener||(this.outsideClickListener=function(n){e.overlayVisible&&e.overlay&&!e.$el.contains(n.target)&&!e.overlay.contains(n.target)&&e.hide()},document.addEventListener("click",this.outsideClickListener))},unbindOutsideClickListener:function(){this.outsideClickListener&&(document.removeEventListener("click",this.outsideClickListener),this.outsideClickListener=null)},bindScrollListener:function(){var e=this;this.scrollHandler||(this.scrollHandler=new Re(this.$refs.container,function(){e.overlayVisible&&e.hide()})),this.scrollHandler.bindScrollListener()},unbindScrollListener:function(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()},bindResizeListener:function(){var e=this;this.resizeListener||(this.resizeListener=function(){e.overlayVisible&&!y.isTouchDevice()&&e.hide()},window.addEventListener("resize",this.resizeListener))},unbindResizeListener:function(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)},hasFocusableElements:function(){return y.getFocusableElements(this.overlay,':not([data-p-hidden-focusable="true"])').length>0},isOptionMatched:function(e){return this.isValidOption(e)&&this.getOptionLabel(e).toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale))},isValidOption:function(e){return z.isNotEmpty(e)&&!(this.isOptionDisabled(e)||this.isOptionGroup(e))},isValidSelectedOption:function(e){return this.isValidOption(e)&&this.isSelected(e)},isSelected:function(e){return this.isValidOption(e)&&z.equals(this.modelValue,this.getOptionValue(e),this.equalityKey)},findFirstOptionIndex:function(){var e=this;return this.visibleOptions.findIndex(function(n){return e.isValidOption(n)})},findLastOptionIndex:function(){var e=this;return z.findLastIndex(this.visibleOptions,function(n){return e.isValidOption(n)})},findNextOptionIndex:function(e){var n=this,s=e<this.visibleOptions.length-1?this.visibleOptions.slice(e+1).findIndex(function(r){return n.isValidOption(r)}):-1;return s>-1?s+e+1:e},findPrevOptionIndex:function(e){var n=this,s=e>0?z.findLastIndex(this.visibleOptions.slice(0,e),function(r){return n.isValidOption(r)}):-1;return s>-1?s:e},findSelectedOptionIndex:function(){var e=this;return this.hasSelectedOption?this.visibleOptions.findIndex(function(n){return e.isValidSelectedOption(n)}):-1},findFirstFocusedOptionIndex:function(){var e=this.findSelectedOptionIndex();return e<0?this.findFirstOptionIndex():e},findLastFocusedOptionIndex:function(){var e=this.findSelectedOptionIndex();return e<0?this.findLastOptionIndex():e},searchOptions:function(e,n){var s=this;this.searchValue=(this.searchValue||"")+n;var r=-1,i=!1;return this.focusedOptionIndex!==-1?(r=this.visibleOptions.slice(this.focusedOptionIndex).findIndex(function(o){return s.isOptionMatched(o)}),r=r===-1?this.visibleOptions.slice(0,this.focusedOptionIndex).findIndex(function(o){return s.isOptionMatched(o)}):r+this.focusedOptionIndex):r=this.visibleOptions.findIndex(function(o){return s.isOptionMatched(o)}),r!==-1&&(i=!0),r===-1&&this.focusedOptionIndex===-1&&(r=this.findFirstFocusedOptionIndex()),r!==-1&&this.changeFocusedOptionIndex(e,r),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(function(){s.searchValue="",s.searchTimeout=null},500),i},changeFocusedOptionIndex:function(e,n){this.focusedOptionIndex!==n&&(this.focusedOptionIndex=n,this.scrollInView(),this.selectOnFocus&&this.onOptionSelect(e,this.visibleOptions[n],!1))},scrollInView:function(){var e=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:-1,s=n!==-1?"".concat(this.id,"_").concat(n):this.focusedOptionId,r=y.findSingle(this.list,'li[id="'.concat(s,'"]'));r?r.scrollIntoView&&r.scrollIntoView({block:"nearest",inline:"start"}):this.virtualScrollerDisabled||setTimeout(function(){e.virtualScroller&&e.virtualScroller.scrollToIndex(n!==-1?n:e.focusedOptionIndex)},0)},autoUpdateModel:function(){this.selectOnFocus&&this.autoOptionFocus&&!this.hasSelectedOption&&(this.focusedOptionIndex=this.findFirstFocusedOptionIndex(),this.onOptionSelect(null,this.visibleOptions[this.focusedOptionIndex],!1))},updateModel:function(e,n){this.$emit("update:modelValue",n),this.$emit("change",{originalEvent:e,value:n})},flatOptions:function(e){var n=this;return(e||[]).reduce(function(s,r,i){s.push({optionGroup:r,group:!0,index:i});var o=n.getOptionGroupChildren(r);return o&&o.forEach(function(u){return s.push(u)}),s},[])},overlayRef:function(e){this.overlay=e},listRef:function(e,n){this.list=e,n&&n(e)},virtualScrollerRef:function(e){this.virtualScroller=e}},computed:{visibleOptions:function(){var e=this,n=this.optionGroupLabel?this.flatOptions(this.options):this.options||[];if(this.filterValue){var s=Ne.filter(n,this.searchFields,this.filterValue,this.filterMatchMode,this.filterLocale);if(this.optionGroupLabel){var r=this.options||[],i=[];return r.forEach(function(o){var u=e.getOptionGroupChildren(o),l=u.filter(function(a){return s.includes(a)});l.length>0&&i.push(ye(ye({},o),{},Te({},typeof e.optionGroupChildren=="string"?e.optionGroupChildren:"items",At(l))))}),this.flatOptions(i)}return s}return n},hasSelectedOption:function(){return z.isNotEmpty(this.modelValue)},label:function(){var e=this.findSelectedOptionIndex();return e!==-1?this.getOptionLabel(this.visibleOptions[e]):this.placeholder||"p-emptylabel"},editableInputValue:function(){var e=this.findSelectedOptionIndex();return e!==-1?this.getOptionLabel(this.visibleOptions[e]):this.modelValue||""},equalityKey:function(){return this.optionValue?null:this.dataKey},searchFields:function(){return this.filterFields||[this.optionLabel]},filterResultMessageText:function(){return z.isNotEmpty(this.visibleOptions)?this.filterMessageText.replaceAll("{0}",this.visibleOptions.length):this.emptyFilterMessageText},filterMessageText:function(){return this.filterMessage||this.$primevue.config.locale.searchMessage||""},emptyFilterMessageText:function(){return this.emptyFilterMessage||this.$primevue.config.locale.emptySearchMessage||this.$primevue.config.locale.emptyFilterMessage||""},emptyMessageText:function(){return this.emptyMessage||this.$primevue.config.locale.emptyMessage||""},selectionMessageText:function(){return this.selectionMessage||this.$primevue.config.locale.selectionMessage||""},emptySelectionMessageText:function(){return this.emptySelectionMessage||this.$primevue.config.locale.emptySelectionMessage||""},selectedMessageText:function(){return this.hasSelectedOption?this.selectionMessageText.replaceAll("{0}","1"):this.emptySelectionMessageText},focusedOptionId:function(){return this.focusedOptionIndex!==-1?"".concat(this.id,"_").concat(this.focusedOptionIndex):null},ariaSetSize:function(){var e=this;return this.visibleOptions.filter(function(n){return!e.isOptionGroup(n)}).length},virtualScrollerDisabled:function(){return!this.virtualScrollerOptions}},directives:{ripple:je},components:{VirtualScroller:ze,Portal:Ge,TimesIcon:Ue,ChevronDownIcon:Ve,SpinnerIcon:we,FilterIcon:Pe}};function J(t){"@babel/helpers - typeof";return J=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},J(t)}function be(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,s)}return n}function x(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?be(Object(n),!0).forEach(function(s){Ut(t,s,n[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):be(Object(n)).forEach(function(s){Object.defineProperty(t,s,Object.getOwnPropertyDescriptor(n,s))})}return t}function Ut(t,e,n){return e=Wt(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Wt(t){var e=qt(t,"string");return J(e)==="symbol"?e:String(e)}function qt(t,e){if(J(t)!=="object"||t===null)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var s=n.call(t,e||"default");if(J(s)!=="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var $t=["id"],Zt=["id","value","placeholder","tabindex","disabled","aria-label","aria-labelledby","aria-expanded","aria-controls","aria-activedescendant"],Xt=["id","tabindex","aria-label","aria-labelledby","aria-expanded","aria-controls","aria-activedescendant","aria-disabled"],Jt=["value","placeholder","aria-owns","aria-activedescendant"],Qt=["id"],Yt=["id"],_t=["id","aria-label","aria-selected","aria-disabled","aria-setsize","aria-posinset","onClick","onMousemove","data-p-highlight","data-p-focused","data-p-disabled"];function en(t,e,n,s,r,i){var o=ne("SpinnerIcon"),u=ne("VirtualScroller"),l=ne("Portal"),a=Se("ripple");return f(),w("div",h({ref:"container",id:r.id,class:t.cx("root"),onClick:e[15]||(e[15]=function(){return i.onContainerClick&&i.onContainerClick.apply(i,arguments)})},t.ptm("root"),{"data-pc-name":"dropdown"}),[t.editable?(f(),w("input",h({key:0,ref:"focusInput",id:t.inputId,type:"text",class:[t.cx("input"),t.inputClass],style:t.inputStyle,value:i.editableInputValue,placeholder:t.placeholder,tabindex:t.disabled?-1:t.tabindex,disabled:t.disabled,autocomplete:"off",role:"combobox","aria-label":t.ariaLabel,"aria-labelledby":t.ariaLabelledby,"aria-haspopup":"listbox","aria-expanded":r.overlayVisible,"aria-controls":r.id+"_list","aria-activedescendant":r.focused?i.focusedOptionId:void 0,onFocus:e[0]||(e[0]=function(){return i.onFocus&&i.onFocus.apply(i,arguments)}),onBlur:e[1]||(e[1]=function(){return i.onBlur&&i.onBlur.apply(i,arguments)}),onKeydown:e[2]||(e[2]=function(){return i.onKeyDown&&i.onKeyDown.apply(i,arguments)}),onInput:e[3]||(e[3]=function(){return i.onEditableInput&&i.onEditableInput.apply(i,arguments)})},x(x({},t.inputProps),t.ptm("input"))),null,16,Zt)):(f(),w("span",h({key:1,ref:"focusInput",id:t.inputId,class:[t.cx("input"),t.inputClass],style:t.inputStyle,tabindex:t.disabled?-1:t.tabindex,role:"combobox","aria-label":t.ariaLabel||(i.label==="p-emptylabel"?void 0:i.label),"aria-labelledby":t.ariaLabelledby,"aria-haspopup":"listbox","aria-expanded":r.overlayVisible,"aria-controls":r.id+"_list","aria-activedescendant":r.focused?i.focusedOptionId:void 0,"aria-disabled":t.disabled,onFocus:e[4]||(e[4]=function(){return i.onFocus&&i.onFocus.apply(i,arguments)}),onBlur:e[5]||(e[5]=function(){return i.onBlur&&i.onBlur.apply(i,arguments)}),onKeydown:e[6]||(e[6]=function(){return i.onKeyDown&&i.onKeyDown.apply(i,arguments)})},x(x({},t.inputProps),t.ptm("input"))),[S(t.$slots,"value",{value:t.modelValue,placeholder:t.placeholder},function(){return[j(H(i.label==="p-emptylabel"?" ":i.label||"empty"),1)]})],16,Xt)),t.showClear&&t.modelValue!=null?S(t.$slots,"clearicon",{key:2,class:E(t.cx("clearIcon")),onClick:i.onClearClick,clearCallback:i.onClearClick},function(){return[(f(),T(te(t.clearIcon?"i":"TimesIcon"),h({ref:"clearIcon",class:[t.cx("clearIcon"),t.clearIcon],onClick:i.onClearClick},x(x({},t.clearIconProps),t.ptm("clearIcon")),{"data-pc-section":"clearicon"}),null,16,["class","onClick"]))]}):A("",!0),I("div",h({class:t.cx("trigger")},t.ptm("trigger")),[t.loading?S(t.$slots,"loadingicon",{key:0,class:E(t.cx("loadingIcon"))},function(){return[t.loadingIcon?(f(),w("span",h({key:0,class:[t.cx("loadingIcon"),"pi-spin",t.loadingIcon],"aria-hidden":"true"},t.ptm("loadingIcon")),null,16)):(f(),T(o,h({key:1,class:t.cx("loadingIcon"),spin:"","aria-hidden":"true"},t.ptm("loadingIcon")),null,16,["class"]))]}):S(t.$slots,"dropdownicon",{key:1,class:E(t.cx("dropdownIcon"))},function(){return[(f(),T(te(t.dropdownIcon?"span":"ChevronDownIcon"),h({class:[t.cx("dropdownIcon"),t.dropdownIcon],"aria-hidden":"true"},t.ptm("dropdownIcon")),null,16,["class"]))]})],16),D(l,{appendTo:t.appendTo},{default:B(function(){return[D(We,h({name:"p-connected-overlay",onEnter:i.onOverlayEnter,onAfterEnter:i.onOverlayAfterEnter,onLeave:i.onOverlayLeave,onAfterLeave:i.onOverlayAfterLeave},t.ptm("transition")),{default:B(function(){return[r.overlayVisible?(f(),w("div",h({key:0,ref:i.overlayRef,class:[t.cx("panel"),t.panelClass],style:t.panelStyle,onClick:e[13]||(e[13]=function(){return i.onOverlayClick&&i.onOverlayClick.apply(i,arguments)}),onKeydown:e[14]||(e[14]=function(){return i.onOverlayKeyDown&&i.onOverlayKeyDown.apply(i,arguments)})},x(x({},t.panelProps),t.ptm("panel"))),[I("span",h({ref:"firstHiddenFocusableElementOnOverlay",role:"presentation","aria-hidden":"true",class:"p-hidden-accessible p-hidden-focusable",tabindex:0,onFocus:e[7]||(e[7]=function(){return i.onFirstHiddenFocus&&i.onFirstHiddenFocus.apply(i,arguments)})},t.ptm("hiddenFirstFocusableEl"),{"data-p-hidden-accessible":!0,"data-p-hidden-focusable":!0}),null,16),S(t.$slots,"header",{value:t.modelValue,options:i.visibleOptions}),t.filter?(f(),w("div",h({key:0,class:t.cx("header")},t.ptm("header")),[I("div",h({class:t.cx("filterContainer")},t.ptm("filterContainer")),[I("input",h({ref:"filterInput",type:"text",value:r.filterValue,onVnodeMounted:e[8]||(e[8]=function(){return i.onFilterUpdated&&i.onFilterUpdated.apply(i,arguments)}),class:t.cx("filterInput"),placeholder:t.filterPlaceholder,role:"searchbox",autocomplete:"off","aria-owns":r.id+"_list","aria-activedescendant":i.focusedOptionId,onKeydown:e[9]||(e[9]=function(){return i.onFilterKeyDown&&i.onFilterKeyDown.apply(i,arguments)}),onBlur:e[10]||(e[10]=function(){return i.onFilterBlur&&i.onFilterBlur.apply(i,arguments)}),onInput:e[11]||(e[11]=function(){return i.onFilterChange&&i.onFilterChange.apply(i,arguments)})},x(x({},t.filterInputProps),t.ptm("filterInput"))),null,16,Jt),S(t.$slots,"filtericon",{class:E(t.cx("filterIcon"))},function(){return[(f(),T(te(t.filterIcon?"span":"FilterIcon"),h({class:[t.cx("filterIcon"),t.filterIcon]},t.ptm("filterIcon")),null,16,["class"]))]})],16),I("span",h({role:"status","aria-live":"polite",class:"p-hidden-accessible"},t.ptm("hiddenFilterResult"),{"data-p-hidden-accessible":!0}),H(i.filterResultMessageText),17)],16)):A("",!0),I("div",h({class:t.cx("wrapper"),style:{"max-height":i.virtualScrollerDisabled?t.scrollHeight:""}},t.ptm("wrapper")),[D(u,h({ref:i.virtualScrollerRef},t.virtualScrollerOptions,{items:i.visibleOptions,style:{height:t.scrollHeight},tabindex:-1,disabled:i.virtualScrollerDisabled,pt:t.ptm("virtualScroller")}),qe({content:B(function(d){var v=d.styleClass,g=d.contentRef,b=d.items,p=d.getItemOptions,V=d.contentStyle,P=d.itemSize;return[I("ul",h({ref:function(m){return i.listRef(m,g)},id:r.id+"_list",class:[t.cx("list"),v],style:V,role:"listbox"},t.ptm("list")),[(f(!0),w(U,null,ue(b,function(c,m){return f(),w(U,{key:i.getOptionRenderKey(c,i.getOptionIndex(m,p))},[i.isOptionGroup(c)?(f(),w("li",h({key:0,id:r.id+"_"+i.getOptionIndex(m,p),style:{height:P?P+"px":void 0},class:t.cx("itemGroup"),role:"option"},t.ptm("itemGroup")),[S(t.$slots,"optiongroup",{option:c.optionGroup,index:i.getOptionIndex(m,p)},function(){return[j(H(i.getOptionGroupLabel(c.optionGroup)),1)]})],16,Yt)):Ce((f(),w("li",h({key:1,id:r.id+"_"+i.getOptionIndex(m,p),class:t.cx("item",{option:c,focusedOption:i.getOptionIndex(m,p)}),style:{height:P?P+"px":void 0},role:"option","aria-label":i.getOptionLabel(c),"aria-selected":i.isSelected(c),"aria-disabled":i.isOptionDisabled(c),"aria-setsize":i.ariaSetSize,"aria-posinset":i.getAriaPosInset(i.getOptionIndex(m,p)),onClick:function(k){return i.onOptionSelect(k,c)},onMousemove:function(k){return i.onOptionMouseMove(k,i.getOptionIndex(m,p))},"data-p-highlight":i.isSelected(c),"data-p-focused":r.focusedOptionIndex===i.getOptionIndex(m,p),"data-p-disabled":i.isOptionDisabled(c)},i.getPTOptions(c,p,m,"item")),[S(t.$slots,"option",{option:c,index:i.getOptionIndex(m,p)},function(){return[j(H(i.getOptionLabel(c)),1)]})],16,_t)),[[a]])],64)}),128)),r.filterValue&&(!b||b&&b.length===0)?(f(),w("li",h({key:0,class:t.cx("emptyMessage"),role:"option"},t.ptm("emptyMessage"),{"data-p-hidden-accessible":!0}),[S(t.$slots,"emptyfilter",{},function(){return[j(H(i.emptyFilterMessageText),1)]})],16)):!t.options||t.options&&t.options.length===0?(f(),w("li",h({key:1,class:t.cx("emptyMessage"),role:"option"},t.ptm("emptyMessage"),{"data-p-hidden-accessible":!0}),[S(t.$slots,"empty",{},function(){return[j(H(i.emptyMessageText),1)]})],16)):A("",!0)],16,Qt)]}),_:2},[t.$slots.loader?{name:"loader",fn:B(function(d){var v=d.options;return[S(t.$slots,"loader",{options:v})]}),key:"0"}:void 0]),1040,["items","style","disabled","pt"])],16),S(t.$slots,"footer",{value:t.modelValue,options:i.visibleOptions}),!t.options||t.options&&t.options.length===0?(f(),w("span",h({key:1,role:"status","aria-live":"polite",class:"p-hidden-accessible"},t.ptm("hiddenEmptyMessage"),{"data-p-hidden-accessible":!0}),H(i.emptyMessageText),17)):A("",!0),I("span",h({role:"status","aria-live":"polite",class:"p-hidden-accessible"},t.ptm("hiddenSelectedMessage"),{"data-p-hidden-accessible":!0}),H(i.selectedMessageText),17),I("span",h({ref:"lastHiddenFocusableElementOnOverlay",role:"presentation","aria-hidden":"true",class:"p-hidden-accessible p-hidden-focusable",tabindex:0,onFocus:e[12]||(e[12]=function(){return i.onLastHiddenFocus&&i.onLastHiddenFocus.apply(i,arguments)})},t.ptm("hiddenLastFocusableEl"),{"data-p-hidden-accessible":!0,"data-p-hidden-focusable":!0}),null,16)],16)):A("",!0)]}),_:3},16,["onEnter","onAfterEnter","onLeave","onAfterLeave"])]}),_:3},8,["appendTo"])],16,$t)}fe.render=en;const tn=he({__name:"MediaSelector",props:{disabled:{type:Boolean,default:!1},modelValue:{type:String,default:""}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,s=e,{micphoneList:r}=ht(),i=G(n.modelValue),o=ie({get:()=>i.value,set:u=>{i.value=u,s("update:modelValue",u||"default")}});return se(()=>n.modelValue,u=>{o.value=u}),se(r,u=>{u.length&&!o.value&&(o.value=u[0].value)},{immediate:!0,deep:!0}),(u,l)=>{const a=fe;return f(),T(a,{disabled:t.disabled,"model-value":o.value,"onUpdate:modelValue":l[0]||(l[0]=d=>o.value=d),options:O(r),"option-label":"label","option-value":"value"},null,8,["disabled","model-value","options"])}}}),nn=[{label:"English",value:"en-US"},{label:"Arabic",value:"ar-SA"},{label:"Chinese (Mandarin/China)",value:"zh-CN"},{label:"Hindi",value:"hi-IN"}],sn=he({__name:"SpeechSelector",props:{disabled:{type:Boolean,default:!1},modelValue:{type:String,required:!0}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,s=e,r=G(n.modelValue),i=ie({get(){return r.value},set(o){r.value=o,s("update:modelValue",o)}});return se(()=>n.modelValue,o=>{r.value=o}),(o,u)=>{const l=fe;return f(),T(l,{disabled:t.disabled,options:O(nn),"model-value":i.value,"onUpdate:modelValue":u[0]||(u[0]=a=>i.value=a),"option-label":"label","option-value":"value"},null,8,["disabled","options","model-value"])}}}),rn={class:"main-header un-justify-between"},on=I("h1",{class:"main-header-title"},"Lession - Teacher",-1),ln={class:"main-header-actions un-gap-3"},an={class:"side-view"},un=he({name:"ViewLession",__name:"index",props:{id:{type:String,required:!0}},setup(t){const e=t,n=$e(),s=Ze(e,"id"),r=G("en-US"),i=G(),o=le(),u=G("closed"),{status:l,startRecord:a,stopRecord:d}=mt({onstart(){var c;o.value&&((c=o.value)==null?void 0:c.ws.readyState)===WebSocket.OPEN&&o.value.close(),o.value=st(`/ws/teacher?id=${s.value}&language=${r.value}&prompt=`,{onopen(){u.value="connected"},onerror(m){},onclose(){u.value="closed",d()},onmessage(m){b(m)}})},ondata(c){var m;(m=o.value)==null||m.send(c)},onclose(){P()}}),v=async()=>{i.value&&await a(i.value)},g=async()=>{var c;(c=o.value)==null||c.close(),await d()},{onmessage:b,currentText:p,originals:V,cleanScreen:P}=tt();return Xe(()=>{l.value!==C.STOPPED&&l.value!==C.STOPPING&&g()}),(c,m)=>{const F=Qe,k=Ye,Q=Le,W=Se("tooltip");return f(),T(Je,null,{default:B(()=>[I("header",rn,[on,I("aside",ln,[D(F,{severity:"secondary",label:"Escape",onClick:m[0]||(m[0]=()=>c.$router.push({name:"home"}))},{icon:B(()=>[D(O(nt),{class:"p-icon un-mr-3"})]),_:1})])]),I("main",{class:E(["main-body",[c.$style.main]])},[I("aside",an,[D(k,{class:E([c.$style["personal-appearance"]]),name:O(n).name,role:O(n).role},null,8,["class","name","role"])]),I("section",{class:E([c.$style["main-view"]])},[I("section",{class:E([c.$style["text-content"]])},[D(it,{class:"un-flex-1",contents:O(V),current:O(p)},null,8,["contents","current"])],2),I("section",{class:E([c.$style.bar])},[D(sn,{class:"un-flex-1","model-value":r.value,"onUpdate:modelValue":m[1]||(m[1]=R=>r.value=R),disabled:O(l)!==O(C).STOPPED},null,8,["model-value","disabled"])],2),I("section",{class:E([c.$style.bar])},[D(tn,{class:"un-flex-1","model-value":i.value,"onUpdate:modelValue":m[2]||(m[2]=R=>i.value=R),disabled:O(l)!==O(C).STOPPED},null,8,["model-value","disabled"]),O(l)!==O(C).UNAVAILIABLE?(f(),w(U,{key:0},[O(l)===O(C).STOPPED?Ce((f(),T(F,{key:0,severity:"danger",onClick:v},{icon:B(()=>[D(O(rt),{class:"p-icon"})]),_:1})),[[W,"Start",void 0,{bottom:!0}]]):O(l)===O(C).PENDING?(f(),T(F,{key:1,loading:"",label:"Starting"})):O(l)===O(C).RECORDING?(f(),T(F,{key:2,block:"",severity:"danger",label:"Stop",onClick:g},{icon:B(()=>[D(O(ot),{class:"p-icon"})]),_:1})):O(l)===O(C).STOPPING?(f(),T(F,{key:3,loading:"",label:"Stopping"})):A("",!0)],64)):(f(),T(Q,{key:1,severity:"info"},{default:B(()=>[j(" Micphone is not available. ")]),_:1}))],2)],2)],2)]),_:1})}}}),dn="_main_113lr_2",cn="_options_113lr_9",pn="_bar_113lr_22",hn={main:dn,options:cn,"main-view":"_main-view_113lr_16",bar:pn,"text-content":"_text-content_113lr_33"},fn={$style:hn},vn=_e(un,[["__cssModules",fn]]);export{vn as default};
static/assets/index-a112de75.js ADDED
The diff for this file is too large to render. See raw diff
 
static/assets/index-d99f7f2f.css ADDED
@@ -0,0 +1 @@
 
 
1
+ ._personal-appearance_vqx35_2{position:relative;max-height:720px;min-width:360px;height:320px;border-radius:16px;overflow:hidden}._main_2ffrz_2{display:flex;margin-top:30px;gap:30px;height:calc(100% - 116px)}._main-header_2ffrz_9{height:400px}._options_2ffrz_13{margin-top:30px;display:flex;flex-direction:column;gap:30px}._main-view_2ffrz_20{position:relative;flex:1;height:100%}._bar_2ffrz_26{display:flex;margin-top:.5rem;gap:.5rem;padding:.5rem;height:4rem;border-radius:16px;background-color:#faebf080;color:#fff}._bar-inner_2ffrz_37{height:3rem}._text-content_2ffrz_41{position:relative;display:flex;overflow:hidden;flex:1;width:100%;height:calc(100% - 4.5rem);gap:.5rem}
static/assets/main-10d29984.jpg ADDED
static/assets/main.glb ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:34bc1bf4d0c7fd913a3bb05265f20fee31b0baae94a1cb8b44eb45c80ea00936
3
+ size 1343152
static/assets/worklet-processer-856fc525.js ADDED
@@ -0,0 +1 @@
 
 
1
+ var p=Object.defineProperty;var w=(s,r,t)=>r in s?p(s,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[r]=t;var n=(s,r,t)=>(w(s,typeof r!="symbol"?r+"":r,t),t);class y extends AudioWorkletProcessor{constructor(){super();n(this,"bufferSize",2048);n(this,"_bytesWritten",0);n(this,"_buffer",new Float32Array(this.bufferSize));this.initBuffer()}initBuffer(){this._bytesWritten=0}isBufferEmpty(){return this._bytesWritten===0}isBufferFull(){return this._bytesWritten===this.bufferSize}process(t){return this.append(t[0][0]),!0}append(t){if(this.isBufferFull()&&this.flush(),!!t)for(let e=0;e<t.length;e++)this._buffer[this._bytesWritten++]=t[e]}flush(){const t=this._bytesWritten<this.bufferSize?this._buffer.slice(0,this._bytesWritten):this._buffer,e=this.downsampleBuffer(t,44100,16e3);this.port.postMessage(e),this.initBuffer()}downsampleBuffer(t,e,u){if(u==e)return t;if(u>e)throw"downsampling rate show be smaller than original sample rate";const h=e/u,_=Math.round(t.length/h),o=new Int16Array(_);let i=0,l=0;for(;i<o.length;){const c=Math.round((i+1)*h);let b=0,d=0;for(let f=l;f<c&&f<t.length;f++)b+=t[f],d++;o[i]=Math.min(1,b/d)*32767,i++,l=c}return o.buffer}}registerProcessor("recorder.worklet",y);
static/assets/youtubeBackground.jpg ADDED
static/assets/youtubeBackgroundHawaii.jpg ADDED
static/browserconfig.xml ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <browserconfig>
3
+ <msapplication>
4
+ <tile>
5
+ <square150x150logo src="/mstile-150x150.png"/>
6
+ <TileColor>#da532c</TileColor>
7
+ </tile>
8
+ </msapplication>
9
+ </browserconfig>
static/debug.html ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <link rel="icon" type="image/svg+xml" href="/vite.svg" />
6
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
+ <title>Vite + React</title>
8
+ <script type="module" crossorigin src="/assets/index-49498a48.js"></script>
9
+ <link rel="modulepreload" crossorigin href="/assets/Experience-f42a3bd5.js">
10
+ <link rel="stylesheet" href="/assets/index-983f9492.css">
11
+ </head>
12
+ <body>
13
+ <div id="root"></div>
14
+
15
+ </body>
16
+ </html>
static/favicon-16x16.png ADDED
static/favicon-32x32.png ADDED
static/favicon.ico ADDED
static/index.html CHANGED
@@ -1,16 +1,31 @@
1
  <!DOCTYPE html>
2
  <html lang="en">
3
- <head>
4
- <meta charset="UTF-8" />
5
- <link rel="icon" type="image/svg+xml" href="/vite.svg" />
6
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
- <title>Vite + React</title>
8
- <script type="module" crossorigin src="/assets/index-49498a48.js"></script>
9
- <link rel="modulepreload" crossorigin href="/assets/Experience-f42a3bd5.js">
10
- <link rel="stylesheet" href="/assets/index-983f9492.css">
11
- </head>
12
- <body>
13
- <div id="root"></div>
14
-
15
- </body>
16
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  <!DOCTYPE html>
2
  <html lang="en">
3
+
4
+ <head>
5
+ <meta charset="UTF-8">
6
+ <link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
7
+ <link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
8
+ <link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
9
+ <link rel="manifest" href="/site.webmanifest">
10
+ <link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5">
11
+ <meta name="msapplication-TileColor" content="#da532c">
12
+ <meta name="theme-color" content="#ffffff">
13
+ <link rel="manifest" href="/site.webmanifest" />
14
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
15
+ <title>HR Training System</title>
16
+ <script id="configScript">
17
+ window.__config = {
18
+ apiPathPrefix: "/ws" || '/api',
19
+ }
20
+ Object.freeze(window.__config)
21
+ </script>
22
+ <script type="module" crossorigin src="/assets/index-01d98e79.js"></script>
23
+ <link rel="stylesheet" href="/assets/index-3292270b.css">
24
+ </head>
25
+
26
+ <body>
27
+ <div id="app"></div>
28
+
29
+ </body>
30
+
31
+ </html>
static/mstile-150x150.png ADDED
static/safari-pinned-tab.svg ADDED
static/site.webmanifest ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "",
3
+ "short_name": "",
4
+ "icons": [
5
+ {
6
+ "src": "/android-chrome-192x192.png",
7
+ "sizes": "192x192",
8
+ "type": "image/png"
9
+ },
10
+ {
11
+ "src": "/android-chrome-512x512.png",
12
+ "sizes": "512x512",
13
+ "type": "image/png"
14
+ }
15
+ ],
16
+ "theme_color": "#ffffff",
17
+ "background_color": "#ffffff",
18
+ "display": "standalone"
19
+ }