@opendesign-plus-test/components 0.0.1-rc.77 → 0.0.1-rc.79

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -221,4 +221,4 @@ ${Xn(e)}`),i.map&&!i.map.bytes&&(this.logger_("going to request init segment."),
221
221
  `,o=n,l=i;this.start_=o,e.forEach((c,d)=>{const m=this.storage_.get(l),g=o,C=g+c.duration,b=!!(m&&m.segmentSyncInfo&&m.segmentSyncInfo.isAppended),k=new Ud({start:g,end:C,appended:b,segmentIndex:d});c.syncInfo=k;let v=o;const T=(c.parts||[]).map((E,I)=>{const w=v,$=v+E.duration,q=!!(m&&m.partsSyncInfo&&m.partsSyncInfo[I]&&m.partsSyncInfo[I].isAppended),z=new Ud({start:w,end:$,appended:q,segmentIndex:d,partIndex:I});return v=$,a+=`Media Sequence: ${l}.${I} | Range: ${w} --> ${$} | Appended: ${q}
222
222
  `,E.syncInfo=z,z});s.set(l,new jb(k,T)),a+=`${jf(c.resolvedUri)} | Media Sequence: ${l} | Range: ${g} --> ${C} | Appended: ${b}
223
223
  `,l++,o=C}),this.end_=o,this.storage_=s,this.diagnostics_=a}calculateBaseTime_(e,i,n){if(!this.storage_.size)return 0;if(this.storage_.has(e))return this.storage_.get(e).segmentSyncInfo.start;const s=Math.min(...this.storage_.keys());if(e<s){const a=s-e;let o=this.storage_.get(s).segmentSyncInfo.start;for(let l=0;l<a;l++){const c=i[l];o-=c.duration}return o}return n}isReliablePlaylist_(e,i){return e!=null&&Array.isArray(i)&&i.length}}class $d extends Kf{constructor(e){super(),this.parent_=e}calculateBaseTime_(e,i,n){if(!this.storage_.size){const s=this.parent_.getSyncInfoForMediaSequence(e);return s?s.segmentSyncInfo.start:0}return super.calculateBaseTime_(e,i,n)}}const Gb=86400,Go=[{name:"VOD",run:(r,e,i,n,s)=>i!==1/0?{time:0,segmentIndex:0,partIndex:null}:null},{name:"MediaSequence",run:(r,e,i,n,s,a)=>{const o=r.getMediaSequenceSync(a);if(!o||!o.isReliable)return null;const l=o.getSyncInfoForTime(s);return l?{time:l.start,partIndex:l.partIndex,segmentIndex:l.segmentIndex}:null}},{name:"ProgramDateTime",run:(r,e,i,n,s)=>{if(!Object.keys(r.timelineToDatetimeMappings).length)return null;let a=null,o=null;const l=fl(e);s=s||0;for(let c=0;c<l.length;c++){const d=e.endList||s===0?c:l.length-(c+1),m=l[d],g=m.segment,C=r.timelineToDatetimeMappings[g.timeline];if(!C||!g.dateTimeObject)continue;let k=g.dateTimeObject.getTime()/1e3+C;if(g.parts&&typeof m.partIndex=="number")for(let T=0;T<m.partIndex;T++)k+=g.parts[T].duration;const v=Math.abs(s-k);if(o!==null&&(v===0||o<v))break;o=v,a={time:k,segmentIndex:m.segmentIndex,partIndex:m.partIndex}}return a}},{name:"Segment",run:(r,e,i,n,s)=>{let a=null,o=null;s=s||0;const l=fl(e);for(let c=0;c<l.length;c++){const d=e.endList||s===0?c:l.length-(c+1),m=l[d],g=m.segment,C=m.part&&m.part.start||g&&g.start;if(g.timeline===n&&typeof C<"u"){const b=Math.abs(s-C);if(o!==null&&o<b)break;(!a||o===null||o>=b)&&(o=b,a={time:C,segmentIndex:m.segmentIndex,partIndex:m.partIndex})}}return a}},{name:"Discontinuity",run:(r,e,i,n,s)=>{let a=null;if(s=s||0,e.discontinuityStarts&&e.discontinuityStarts.length){let o=null;for(let l=0;l<e.discontinuityStarts.length;l++){const c=e.discontinuityStarts[l],d=e.discontinuitySequence+l+1,m=r.discontinuities[d];if(m){const g=Math.abs(s-m.time);if(o!==null&&o<g)break;(!a||o===null||o>=g)&&(o=g,a={time:m.time,segmentIndex:c,partIndex:null})}}}return a}},{name:"Playlist",run:(r,e,i,n,s)=>e.syncInfo?{time:e.syncInfo.time,segmentIndex:e.syncInfo.mediaSequence-e.mediaSequence,partIndex:null}:null}];class Wb extends ae.EventTarget{constructor(e={}){super(),this.timelines=[],this.discontinuities=[],this.timelineToDatetimeMappings={};const i=new Kf,n=new $d(i),s=new $d(i);this.mediaSequenceStorage_={main:i,audio:n,vtt:s},this.logger_=Ei("SyncController")}getMediaSequenceSync(e){return this.mediaSequenceStorage_[e]||null}getSyncPoint(e,i,n,s,a){if(i!==1/0)return Go.find(({name:c})=>c==="VOD").run(this,e,i);const o=this.runStrategies_(e,i,n,s,a);if(!o.length)return null;for(const l of o){const{syncPoint:c,strategy:d}=l,{segmentIndex:m,time:g}=c;if(m<0)continue;const C=e.segments[m],b=g,k=b+C.duration;if(this.logger_(`Strategy: ${d}. Current time: ${s}. selected segment: ${m}. Time: [${b} -> ${k}]}`),s>=b&&s<k)return this.logger_("Found sync point with exact match: ",c),c}return this.selectSyncPoint_(o,{key:"time",value:s})}getExpiredTime(e,i){if(!e||!e.segments)return null;const n=this.runStrategies_(e,i,e.discontinuitySequence,0);if(!n.length)return null;const s=this.selectSyncPoint_(n,{key:"segmentIndex",value:0});return s.segmentIndex>0&&(s.time*=-1),Math.abs(s.time+Zr({defaultDuration:e.targetDuration,durationList:e.segments,startIndex:s.segmentIndex,endIndex:0}))}runStrategies_(e,i,n,s,a){const o=[];for(let l=0;l<Go.length;l++){const c=Go[l],d=c.run(this,e,i,n,s,a);d&&(d.strategy=c.name,o.push({strategy:c.name,syncPoint:d}))}return o}selectSyncPoint_(e,i){let n=e[0].syncPoint,s=Math.abs(e[0].syncPoint[i.key]-i.value),a=e[0].strategy;for(let o=1;o<e.length;o++){const l=Math.abs(e[o].syncPoint[i.key]-i.value);l<s&&(s=l,n=e[o].syncPoint,a=e[o].strategy)}return this.logger_(`syncPoint for [${i.key}: ${i.value}] chosen with strategy [${a}]: [time:${n.time}, segmentIndex:${n.segmentIndex}`+(typeof n.partIndex=="number"?`,partIndex:${n.partIndex}`:"")+"]"),n}saveExpiredSegmentInfo(e,i){const n=i.mediaSequence-e.mediaSequence;if(n>Gb){ae.log.warn(`Not saving expired segment info. Media sequence gap ${n} is too large.`);return}for(let s=n-1;s>=0;s--){const a=e.segments[s];if(a&&typeof a.start<"u"){i.syncInfo={mediaSequence:e.mediaSequence+s,time:a.start},this.logger_(`playlist refresh sync: [time:${i.syncInfo.time}, mediaSequence: ${i.syncInfo.mediaSequence}]`),this.trigger("syncinfoupdate");break}}}setDateTimeMappingForStart(e){if(this.timelineToDatetimeMappings={},e.segments&&e.segments.length&&e.segments[0].dateTimeObject){const i=e.segments[0],n=i.dateTimeObject.getTime()/1e3;this.timelineToDatetimeMappings[i.timeline]=-n}}saveSegmentTimingInfo({segmentInfo:e,shouldSaveTimelineMapping:i}){const n=this.calculateSegmentTimeMapping_(e,e.timingInfo,i),s=e.segment;n&&(this.saveDiscontinuitySyncInfo_(e),e.playlist.syncInfo||(e.playlist.syncInfo={mediaSequence:e.playlist.mediaSequence+e.mediaIndex,time:s.start}));const a=s.dateTimeObject;s.discontinuity&&i&&a&&(this.timelineToDatetimeMappings[s.timeline]=-(a.getTime()/1e3))}timestampOffsetForTimeline(e){return typeof this.timelines[e]>"u"?null:this.timelines[e].time}mappingForTimeline(e){return typeof this.timelines[e]>"u"?null:this.timelines[e].mapping}calculateSegmentTimeMapping_(e,i,n){const s=e.segment,a=e.part;let o=this.timelines[e.timeline],l,c;if(typeof e.timestampOffset=="number")o={time:e.startOfSegment,mapping:e.startOfSegment-i.start},n&&(this.timelines[e.timeline]=o,this.trigger("timestampoffset"),this.logger_(`time mapping for timeline ${e.timeline}: [time: ${o.time}] [mapping: ${o.mapping}]`)),l=e.startOfSegment,c=i.end+o.mapping;else if(o)l=i.start+o.mapping,c=i.end+o.mapping;else return!1;return a&&(a.start=l,a.end=c),(!s.start||l<s.start)&&(s.start=l),s.end=c,!0}saveDiscontinuitySyncInfo_(e){const i=e.playlist,n=e.segment;if(n.discontinuity)this.discontinuities[n.timeline]={time:n.start,accuracy:0};else if(i.discontinuityStarts&&i.discontinuityStarts.length)for(let s=0;s<i.discontinuityStarts.length;s++){const a=i.discontinuityStarts[s],o=i.discontinuitySequence+s+1,l=a-e.mediaIndex,c=Math.abs(l);if(!this.discontinuities[o]||this.discontinuities[o].accuracy>c){let d;l<0?d=n.start-Zr({defaultDuration:i.targetDuration,durationList:i.segments,startIndex:e.mediaIndex,endIndex:a}):d=n.end+Zr({defaultDuration:i.targetDuration,durationList:i.segments,startIndex:e.mediaIndex+1,endIndex:a}),this.discontinuities[o]={time:d,accuracy:c}}}}dispose(){this.trigger("dispose"),this.off()}}class Yb extends ae.EventTarget{constructor(){super(),this.pendingTimelineChanges_={},this.lastTimelineChanges_={}}clearPendingTimelineChange(e){this.pendingTimelineChanges_[e]=null,this.trigger("pendingtimelinechange")}pendingTimelineChange({type:e,from:i,to:n}){return typeof i=="number"&&typeof n=="number"&&(this.pendingTimelineChanges_[e]={type:e,from:i,to:n},this.trigger("pendingtimelinechange")),this.pendingTimelineChanges_[e]}lastTimelineChange({type:e,from:i,to:n}){if(typeof i=="number"&&typeof n=="number"){this.lastTimelineChanges_[e]={type:e,from:i,to:n},delete this.pendingTimelineChanges_[e];const s={timelineChangeInfo:{from:i,to:n}};this.trigger({type:"timelinechange",metadata:s})}return this.lastTimelineChanges_[e]}dispose(){this.trigger("dispose"),this.pendingTimelineChanges_={},this.lastTimelineChanges_={},this.off()}}const Kb=Bf(Lf(function(){var r=(function(){function v(){this.listeners={}}var T=v.prototype;return T.on=function(I,w){this.listeners[I]||(this.listeners[I]=[]),this.listeners[I].push(w)},T.off=function(I,w){if(!this.listeners[I])return!1;var $=this.listeners[I].indexOf(w);return this.listeners[I]=this.listeners[I].slice(0),this.listeners[I].splice($,1),$>-1},T.trigger=function(I){var w=this.listeners[I];if(w)if(arguments.length===2)for(var $=w.length,q=0;q<$;++q)w[q].call(this,arguments[1]);else for(var z=Array.prototype.slice.call(arguments,1),N=w.length,U=0;U<N;++U)w[U].apply(this,z)},T.dispose=function(){this.listeners={}},T.pipe=function(I){this.on("data",function(w){I.push(w)})},v})();/*! @name pkcs7 @version 1.0.4 @license Apache-2.0 */function e(v){return v.subarray(0,v.byteLength-v[v.byteLength-1])}/*! @name aes-decrypter @version 4.0.2 @license Apache-2.0 */const i=function(){const v=[[[],[],[],[],[]],[[],[],[],[],[]]],T=v[0],E=v[1],I=T[4],w=E[4];let $,q,z;const N=[],U=[];let x,D,B,F,P,L;for($=0;$<256;$++)U[(N[$]=$<<1^($>>7)*283)^$]=$;for(q=z=0;!I[q];q^=x||1,z=U[z]||1)for(F=z^z<<1^z<<2^z<<3^z<<4,F=F>>8^F&255^99,I[q]=F,w[F]=q,B=N[D=N[x=N[q]]],L=B*16843009^D*65537^x*257^q*16843008,P=N[F]*257^F*16843008,$=0;$<4;$++)T[$][q]=P=P<<24^P>>>8,E[$][F]=L=L<<24^L>>>8;for($=0;$<5;$++)T[$]=T[$].slice(0),E[$]=E[$].slice(0);return v};let n=null;class s{constructor(T){n||(n=i()),this._tables=[[n[0][0].slice(),n[0][1].slice(),n[0][2].slice(),n[0][3].slice(),n[0][4].slice()],[n[1][0].slice(),n[1][1].slice(),n[1][2].slice(),n[1][3].slice(),n[1][4].slice()]];let E,I,w;const $=this._tables[0][4],q=this._tables[1],z=T.length;let N=1;if(z!==4&&z!==6&&z!==8)throw new Error("Invalid aes key size");const U=T.slice(0),x=[];for(this._key=[U,x],E=z;E<4*z+28;E++)w=U[E-1],(E%z===0||z===8&&E%z===4)&&(w=$[w>>>24]<<24^$[w>>16&255]<<16^$[w>>8&255]<<8^$[w&255],E%z===0&&(w=w<<8^w>>>24^N<<24,N=N<<1^(N>>7)*283)),U[E]=U[E-z]^w;for(I=0;E;I++,E--)w=U[I&3?E:E-4],E<=4||I<4?x[I]=w:x[I]=q[0][$[w>>>24]]^q[1][$[w>>16&255]]^q[2][$[w>>8&255]]^q[3][$[w&255]]}decrypt(T,E,I,w,$,q){const z=this._key[1];let N=T^z[0],U=w^z[1],x=I^z[2],D=E^z[3],B,F,P;const L=z.length/4-2;let R,te=4;const ee=this._tables[1],H=ee[0],X=ee[1],Z=ee[2],se=ee[3],Q=ee[4];for(R=0;R<L;R++)B=H[N>>>24]^X[U>>16&255]^Z[x>>8&255]^se[D&255]^z[te],F=H[U>>>24]^X[x>>16&255]^Z[D>>8&255]^se[N&255]^z[te+1],P=H[x>>>24]^X[D>>16&255]^Z[N>>8&255]^se[U&255]^z[te+2],D=H[D>>>24]^X[N>>16&255]^Z[U>>8&255]^se[x&255]^z[te+3],te+=4,N=B,U=F,x=P;for(R=0;R<4;R++)$[(3&-R)+q]=Q[N>>>24]<<24^Q[U>>16&255]<<16^Q[x>>8&255]<<8^Q[D&255]^z[te++],B=N,N=U,U=x,x=D,D=B}}class a extends r{constructor(){super(r),this.jobs=[],this.delay=1,this.timeout_=null}processJob_(){this.jobs.shift()(),this.jobs.length?this.timeout_=setTimeout(this.processJob_.bind(this),this.delay):this.timeout_=null}push(T){this.jobs.push(T),this.timeout_||(this.timeout_=setTimeout(this.processJob_.bind(this),this.delay))}}const o=function(v){return v<<24|(v&65280)<<8|(v&16711680)>>8|v>>>24},l=function(v,T,E){const I=new Int32Array(v.buffer,v.byteOffset,v.byteLength>>2),w=new s(Array.prototype.slice.call(T)),$=new Uint8Array(v.byteLength),q=new Int32Array($.buffer);let z,N,U,x,D,B,F,P,L;for(z=E[0],N=E[1],U=E[2],x=E[3],L=0;L<I.length;L+=4)D=o(I[L]),B=o(I[L+1]),F=o(I[L+2]),P=o(I[L+3]),w.decrypt(D,B,F,P,q,L),q[L]=o(q[L]^z),q[L+1]=o(q[L+1]^N),q[L+2]=o(q[L+2]^U),q[L+3]=o(q[L+3]^x),z=D,N=B,U=F,x=P;return $};class c{constructor(T,E,I,w){const $=c.STEP,q=new Int32Array(T.buffer),z=new Uint8Array(T.byteLength);let N=0;for(this.asyncStream_=new a,this.asyncStream_.push(this.decryptChunk_(q.subarray(N,N+$),E,I,z)),N=$;N<q.length;N+=$)I=new Uint32Array([o(q[N-4]),o(q[N-3]),o(q[N-2]),o(q[N-1])]),this.asyncStream_.push(this.decryptChunk_(q.subarray(N,N+$),E,I,z));this.asyncStream_.push(function(){w(null,e(z))})}static get STEP(){return 32e3}decryptChunk_(T,E,I,w){return function(){const $=l(T,E,I);w.set($,T.byteOffset)}}}var d=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},m;typeof window<"u"?m=window:typeof d<"u"?m=d:typeof self<"u"?m=self:m={};var g=m,C=function(T){return ArrayBuffer.isView==="function"?ArrayBuffer.isView(T):T&&T.buffer instanceof ArrayBuffer},b=g.BigInt||Number;b("0x1"),b("0x100"),b("0x10000"),b("0x1000000"),b("0x100000000"),b("0x10000000000"),b("0x1000000000000"),b("0x100000000000000"),b("0x10000000000000000"),(function(){var v=new Uint16Array([65484]),T=new Uint8Array(v.buffer,v.byteOffset,v.byteLength);return T[0]===255?"big":T[0]===204?"little":"unknown"})();const k=function(v){const T={};return Object.keys(v).forEach(E=>{const I=v[E];C(I)?T[E]={bytes:I.buffer,byteOffset:I.byteOffset,byteLength:I.byteLength}:T[E]=I}),T};self.onmessage=function(v){const T=v.data,E=new Uint8Array(T.encrypted.bytes,T.encrypted.byteOffset,T.encrypted.byteLength),I=new Uint32Array(T.key.bytes,T.key.byteOffset,T.key.byteLength/4),w=new Uint32Array(T.iv.bytes,T.iv.byteOffset,T.iv.byteLength/4);new c(E,I,w,function($,q){self.postMessage(k({source:T.source,decrypted:q}),[q.buffer])})}}));var Qb=Of(Kb);const Jb=r=>{let e=r.default?"main":"alternative";return r.characteristics&&r.characteristics.indexOf("public.accessibility.describes-video")>=0&&(e="main-desc"),e},Qf=(r,e)=>{r.abort(),r.pause(),e&&e.activePlaylistLoader&&(e.activePlaylistLoader.pause(),e.activePlaylistLoader=null)},Sl=(r,e)=>{e.activePlaylistLoader=r,r.load()},Zb=(r,e)=>()=>{const{segmentLoaders:{[r]:i,main:n},mediaTypes:{[r]:s}}=e,a=s.activeTrack(),o=s.getActiveGroup(),l=s.activePlaylistLoader,c=s.lastGroup_;if(!(o&&c&&o.id===c.id)&&(s.lastGroup_=o,s.lastTrack_=a,Qf(i,s),!(!o||o.isMainPlaylist))){if(!o.playlistLoader){l&&n.resetEverything();return}i.resyncLoader(),Sl(o.playlistLoader,s)}},eT=(r,e)=>()=>{const{segmentLoaders:{[r]:i},mediaTypes:{[r]:n}}=e;n.lastGroup_=null,i.abort(),i.pause()},tT=(r,e)=>()=>{const{mainPlaylistLoader:i,segmentLoaders:{[r]:n,main:s},mediaTypes:{[r]:a}}=e,o=a.activeTrack(),l=a.getActiveGroup(),c=a.activePlaylistLoader,d=a.lastTrack_;if(!(d&&o&&d.id===o.id)&&(a.lastGroup_=l,a.lastTrack_=o,Qf(n,a),!!l)){if(l.isMainPlaylist){if(!o||!d||o.id===d.id)return;const m=e.vhs.playlistController_,g=m.selectPlaylist();if(m.media()===g)return;a.logger_(`track change. Switching main audio from ${d.id} to ${o.id}`),i.pause(),s.resetEverything(),m.fastQualityChange_(g);return}if(r==="AUDIO"){if(!l.playlistLoader){s.setAudio(!0),s.resetEverything();return}n.setAudio(!0),s.setAudio(!1)}if(c===l.playlistLoader){Sl(l.playlistLoader,a);return}n.track&&n.track(o),n.resetEverything(),Sl(l.playlistLoader,a)}},_a={AUDIO:(r,e)=>()=>{const{mediaTypes:{[r]:i},excludePlaylist:n}=e,s=i.activeTrack(),a=i.activeGroup(),o=(a.filter(c=>c.default)[0]||a[0]).id,l=i.tracks[o];if(s===l){n({error:{message:"Problem encountered loading the default audio track."}});return}ae.log.warn("Problem encountered loading the alternate audio track.Switching back to default.");for(const c in i.tracks)i.tracks[c].enabled=i.tracks[c]===l;i.onTrackChanged()},SUBTITLES:(r,e)=>()=>{const{mediaTypes:{[r]:i}}=e;ae.log.warn("Problem encountered loading the subtitle track.Disabling subtitle track.");const n=i.activeTrack();n&&(n.mode="disabled"),i.onTrackChanged()}},zd={AUDIO:(r,e,i)=>{if(!e)return;const{tech:n,requestOptions:s,segmentLoaders:{[r]:a}}=i;e.on("loadedmetadata",()=>{const o=e.media();a.playlist(o,s),(!n.paused()||o.endList&&n.preload()!=="none")&&a.load()}),e.on("loadedplaylist",()=>{a.playlist(e.media(),s),n.paused()||a.load()}),e.on("error",_a[r](r,i))},SUBTITLES:(r,e,i)=>{const{tech:n,requestOptions:s,segmentLoaders:{[r]:a},mediaTypes:{[r]:o}}=i;e.on("loadedmetadata",()=>{const l=e.media();a.playlist(l,s),a.track(o.activeTrack()),(!n.paused()||l.endList&&n.preload()!=="none")&&a.load()}),e.on("loadedplaylist",()=>{a.playlist(e.media(),s),n.paused()||a.load()}),e.on("error",_a[r](r,i))}},iT={AUDIO:(r,e)=>{const{vhs:i,sourceType:n,segmentLoaders:{[r]:s},requestOptions:a,main:{mediaGroups:o},mediaTypes:{[r]:{groups:l,tracks:c,logger_:d}},mainPlaylistLoader:m}=e,g=hs(m.main);(!o[r]||Object.keys(o[r]).length===0)&&(o[r]={main:{default:{default:!0}}},g&&(o[r].main.default.playlists=m.main.playlists));for(const C in o[r]){l[C]||(l[C]=[]);for(const b in o[r][C]){let k=o[r][C][b],v;if(g?(d(`AUDIO group '${C}' label '${b}' is a main playlist`),k.isMainPlaylist=!0,v=null):n==="vhs-json"&&k.playlists?v=new Wn(k.playlists[0],i,a):k.resolvedUri?v=new Wn(k.resolvedUri,i,a):k.playlists&&n==="dash"?v=new _l(k.playlists[0],i,a,m):v=null,k=at({id:b,playlistLoader:v},k),zd[r](r,k.playlistLoader,e),l[C].push(k),typeof c[b]>"u"){const T=new ae.AudioTrack({id:b,kind:Jb(k),enabled:!1,language:k.language,default:k.default,label:b});c[b]=T}}}s.on("error",_a[r](r,e))},SUBTITLES:(r,e)=>{const{tech:i,vhs:n,sourceType:s,segmentLoaders:{[r]:a},requestOptions:o,main:{mediaGroups:l},mediaTypes:{[r]:{groups:c,tracks:d}},mainPlaylistLoader:m}=e;for(const g in l[r]){c[g]||(c[g]=[]);for(const C in l[r][g]){if(!n.options_.useForcedSubtitles&&l[r][g][C].forced)continue;let b=l[r][g][C],k;if(s==="hls")k=new Wn(b.resolvedUri,n,o);else if(s==="dash"){if(!b.playlists.filter(T=>T.excludeUntil!==1/0).length)return;k=new _l(b.playlists[0],n,o,m)}else s==="vhs-json"&&(k=new Wn(b.playlists?b.playlists[0]:b.resolvedUri,n,o));if(b=at({id:C,playlistLoader:k},b),zd[r](r,b.playlistLoader,e),c[g].push(b),typeof d[C]>"u"){const v=i.addRemoteTextTrack({id:C,kind:"subtitles",default:b.default&&b.autoselect,language:b.language,label:C},!1).track;d[C]=v}}}a.on("error",_a[r](r,e))},"CLOSED-CAPTIONS":(r,e)=>{const{tech:i,main:{mediaGroups:n},mediaTypes:{[r]:{groups:s,tracks:a}}}=e;for(const o in n[r]){s[o]||(s[o]=[]);for(const l in n[r][o]){const c=n[r][o][l];if(!/^(?:CC|SERVICE)/.test(c.instreamId))continue;const d=i.options_.vhs&&i.options_.vhs.captionServices||{};let m={label:l,language:c.language,instreamId:c.instreamId,default:c.default&&c.autoselect};if(d[m.instreamId]&&(m=at(m,d[m.instreamId])),m.default===void 0&&delete m.default,s[o].push(at({id:l},c)),typeof a[l]>"u"){const g=i.addRemoteTextTrack({id:m.instreamId,kind:"captions",default:m.default,language:m.language,label:m.label},!1).track;a[l]=g}}}}},Jf=(r,e)=>{for(let i=0;i<r.length;i++)if(cu(e,r[i])||r[i].playlists&&Jf(r[i].playlists,e))return!0;return!1},nT=(r,e)=>i=>{const{mainPlaylistLoader:n,mediaTypes:{[r]:{groups:s}}}=e,a=n.media();if(!a)return null;let o=null;a.attributes[r]&&(o=s[a.attributes[r]]);const l=Object.keys(s);if(!o)if(r==="AUDIO"&&l.length>1&&hs(e.main))for(let c=0;c<l.length;c++){const d=s[l[c]];if(Jf(d,a)){o=d;break}}else s.main?o=s.main:l.length===1&&(o=s[l[0]]);return typeof i>"u"?o:i===null||!o?null:o.filter(c=>c.id===i.id)[0]||null},rT={AUDIO:(r,e)=>()=>{const{mediaTypes:{[r]:{tracks:i}}}=e;for(const n in i)if(i[n].enabled)return i[n];return null},SUBTITLES:(r,e)=>()=>{const{mediaTypes:{[r]:{tracks:i}}}=e;for(const n in i)if(i[n].mode==="showing"||i[n].mode==="hidden")return i[n];return null}},sT=(r,{mediaTypes:e})=>()=>{const i=e[r].activeTrack();return i?e[r].activeGroup(i):null},aT=r=>{["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(d=>{iT[d](d,r)});const{mediaTypes:e,mainPlaylistLoader:i,tech:n,vhs:s,segmentLoaders:{["AUDIO"]:a,main:o}}=r;["AUDIO","SUBTITLES"].forEach(d=>{e[d].activeGroup=nT(d,r),e[d].activeTrack=rT[d](d,r),e[d].onGroupChanged=Zb(d,r),e[d].onGroupChanging=eT(d,r),e[d].onTrackChanged=tT(d,r),e[d].getActiveGroup=sT(d,r)});const l=e.AUDIO.activeGroup();if(l){const d=(l.filter(g=>g.default)[0]||l[0]).id;e.AUDIO.tracks[d].enabled=!0,e.AUDIO.onGroupChanged(),e.AUDIO.onTrackChanged(),e.AUDIO.getActiveGroup().playlistLoader?(o.setAudio(!1),a.setAudio(!0)):o.setAudio(!0)}i.on("mediachange",()=>{["AUDIO","SUBTITLES"].forEach(d=>e[d].onGroupChanged())}),i.on("mediachanging",()=>{["AUDIO","SUBTITLES"].forEach(d=>e[d].onGroupChanging())});const c=()=>{e.AUDIO.onTrackChanged(),n.trigger({type:"usage",name:"vhs-audio-change"})};n.audioTracks().addEventListener("change",c),n.remoteTextTracks().addEventListener("change",e.SUBTITLES.onTrackChanged),s.on("dispose",()=>{n.audioTracks().removeEventListener("change",c),n.remoteTextTracks().removeEventListener("change",e.SUBTITLES.onTrackChanged)}),n.clearTracks("audio");for(const d in e.AUDIO.tracks)n.audioTracks().addTrack(e.AUDIO.tracks[d])},oT=()=>{const r={};return["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(e=>{r[e]={groups:{},tracks:{},activePlaylistLoader:null,activeGroup:tn,activeTrack:tn,getActiveGroup:tn,onGroupChanged:tn,onTrackChanged:tn,lastTrack_:null,logger_:Ei(`MediaGroups[${e}]`)}}),r};class Hd{constructor(){this.priority_=[],this.pathwayClones_=new Map}set version(e){e===1&&(this.version_=e)}set ttl(e){this.ttl_=e||300}set reloadUri(e){e&&(this.reloadUri_=oi(this.reloadUri_,e))}set priority(e){e&&e.length&&(this.priority_=e)}set pathwayClones(e){e&&e.length&&(this.pathwayClones_=new Map(e.map(i=>[i.ID,i])))}get version(){return this.version_}get ttl(){return this.ttl_}get reloadUri(){return this.reloadUri_}get priority(){return this.priority_}get pathwayClones(){return this.pathwayClones_}}class lT extends ae.EventTarget{constructor(e,i){super(),this.currentPathway=null,this.defaultPathway=null,this.queryBeforeStart=!1,this.availablePathways_=new Set,this.steeringManifest=new Hd,this.proxyServerUrl_=null,this.manifestType_=null,this.ttlTimeout_=null,this.request_=null,this.currentPathwayClones=new Map,this.nextPathwayClones=new Map,this.excludedSteeringManifestURLs=new Set,this.logger_=Ei("Content Steering"),this.xhr_=e,this.getBandwidth_=i}assignTagProperties(e,i){this.manifestType_=i.serverUri?"HLS":"DASH";const n=i.serverUri||i.serverURL;if(!n){this.logger_(`steering manifest URL is ${n}, cannot request steering manifest.`),this.trigger("error");return}if(n.startsWith("data:")){this.decodeDataUriManifest_(n.substring(n.indexOf(",")+1));return}this.steeringManifest.reloadUri=oi(e,n),this.defaultPathway=i.pathwayId||i.defaultServiceLocation,this.queryBeforeStart=i.queryBeforeStart,this.proxyServerUrl_=i.proxyServerURL,this.defaultPathway&&!this.queryBeforeStart&&this.trigger("content-steering")}requestSteeringManifest(e){const i=this.steeringManifest.reloadUri;if(!i)return;const n=e?i:this.getRequestURI(i);if(!n){this.logger_("No valid content steering manifest URIs. Stopping content steering."),this.trigger("error"),this.dispose();return}const s={contentSteeringInfo:{uri:n}};this.trigger({type:"contentsteeringloadstart",metadata:s}),this.request_=this.xhr_({uri:n,requestType:"content-steering-manifest"},(a,o)=>{if(a){if(o.status===410){this.logger_(`manifest request 410 ${a}.`),this.logger_(`There will be no more content steering requests to ${n} this session.`),this.excludedSteeringManifestURLs.add(n);return}if(o.status===429){const d=o.responseHeaders["retry-after"];this.logger_(`manifest request 429 ${a}.`),this.logger_(`content steering will retry in ${d} seconds.`),this.startTTLTimeout_(parseInt(d,10));return}this.logger_(`manifest failed to load ${a}.`),this.startTTLTimeout_();return}this.trigger({type:"contentsteeringloadcomplete",metadata:s});let l;try{l=JSON.parse(this.request_.responseText)}catch(d){const m={errorType:ae.Error.StreamingContentSteeringParserError,error:d};this.trigger({type:"error",metadata:m})}this.assignSteeringProperties_(l);const c={contentSteeringInfo:s.contentSteeringInfo,contentSteeringManifest:{version:this.steeringManifest.version,reloadUri:this.steeringManifest.reloadUri,priority:this.steeringManifest.priority}};this.trigger({type:"contentsteeringparsed",metadata:c}),this.startTTLTimeout_()})}setProxyServerUrl_(e){const i=new G.URL(e),n=new G.URL(this.proxyServerUrl_);return n.searchParams.set("url",encodeURI(i.toString())),this.setSteeringParams_(n.toString())}decodeDataUriManifest_(e){const i=JSON.parse(G.atob(e));this.assignSteeringProperties_(i)}setSteeringParams_(e){const i=new G.URL(e),n=this.getPathway(),s=this.getBandwidth_();if(n){const a=`_${this.manifestType_}_pathway`;i.searchParams.set(a,n)}if(s){const a=`_${this.manifestType_}_throughput`;i.searchParams.set(a,s)}return i.toString()}assignSteeringProperties_(e){if(this.steeringManifest.version=e.VERSION,!this.steeringManifest.version){this.logger_(`manifest version is ${e.VERSION}, which is not supported.`),this.trigger("error");return}this.steeringManifest.ttl=e.TTL,this.steeringManifest.reloadUri=e["RELOAD-URI"],this.steeringManifest.priority=e["PATHWAY-PRIORITY"]||e["SERVICE-LOCATION-PRIORITY"],this.steeringManifest.pathwayClones=e["PATHWAY-CLONES"],this.nextPathwayClones=this.steeringManifest.pathwayClones,this.availablePathways_.size||(this.logger_("There are no available pathways for content steering. Ending content steering."),this.trigger("error"),this.dispose());const n=(s=>{for(const a of s)if(this.availablePathways_.has(a))return a;return[...this.availablePathways_][0]})(this.steeringManifest.priority);this.currentPathway!==n&&(this.currentPathway=n,this.trigger("content-steering"))}getPathway(){return this.currentPathway||this.defaultPathway}getRequestURI(e){if(!e)return null;const i=s=>this.excludedSteeringManifestURLs.has(s);if(this.proxyServerUrl_){const s=this.setProxyServerUrl_(e);if(!i(s))return s}const n=this.setSteeringParams_(e);return i(n)?null:n}startTTLTimeout_(e=this.steeringManifest.ttl){const i=e*1e3;this.ttlTimeout_=G.setTimeout(()=>{this.requestSteeringManifest()},i)}clearTTLTimeout_(){G.clearTimeout(this.ttlTimeout_),this.ttlTimeout_=null}abort(){this.request_&&this.request_.abort(),this.request_=null}dispose(){this.off("content-steering"),this.off("error"),this.abort(),this.clearTTLTimeout_(),this.currentPathway=null,this.defaultPathway=null,this.queryBeforeStart=null,this.proxyServerUrl_=null,this.manifestType_=null,this.ttlTimeout_=null,this.request_=null,this.excludedSteeringManifestURLs=new Set,this.availablePathways_=new Set,this.steeringManifest=new Hd}addAvailablePathway(e){e&&this.availablePathways_.add(e)}clearAvailablePathways(){this.availablePathways_.clear()}excludePathway(e){return this.availablePathways_.delete(e)}didDASHTagChange(e,i){return!i&&this.steeringManifest.reloadUri||i&&(oi(e,i.serverURL)!==this.steeringManifest.reloadUri||i.defaultServiceLocation!==this.defaultPathway||i.queryBeforeStart!==this.queryBeforeStart||i.proxyServerURL!==this.proxyServerUrl_)}getAvailablePathways(){return this.availablePathways_}}const uT=(r,e)=>{let i=null;return(...n)=>{clearTimeout(i),i=setTimeout(()=>{r.apply(null,n)},e)}},cT=10;let Qi;const dT=["mediaRequests","mediaRequestsAborted","mediaRequestsTimedout","mediaRequestsErrored","mediaTransferDuration","mediaBytesTransferred","mediaAppends"],hT=function(r){return this.audioSegmentLoader_[r]+this.mainSegmentLoader_[r]},fT=function({currentPlaylist:r,buffered:e,currentTime:i,nextPlaylist:n,bufferLowWaterLine:s,bufferHighWaterLine:a,duration:o,bufferBasedABR:l,log:c}){if(!n)return ae.log.warn("We received no playlist to switch to. Please check your stream."),!1;const d=`allowing switch ${r&&r.id||"null"} -> ${n.id}`;if(!r)return c(`${d} as current playlist is not set`),!0;if(n.id===r.id)return!1;const m=!!Gn(e,i).length;if(!r.endList)return!m&&typeof r.partTargetDuration=="number"?(c(`not ${d} as current playlist is live llhls, but currentTime isn't in buffered.`),!1):(c(`${d} as current playlist is live`),!0);const g=ou(e,i),C=l?Bt.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE:Bt.MAX_BUFFER_LOW_WATER_LINE;if(o<C)return c(`${d} as duration < max low water line (${o} < ${C})`),!0;const b=n.attributes.BANDWIDTH,k=r.attributes.BANDWIDTH;if(b<k&&(!l||g<a)){let v=`${d} as next bandwidth < current bandwidth (${b} < ${k})`;return l&&(v+=` and forwardBuffer < bufferHighWaterLine (${g} < ${a})`),c(v),!0}if((!l||b>k)&&g>=s){let v=`${d} as forwardBuffer >= bufferLowWaterLine (${g} >= ${s})`;return l&&(v+=` and next bandwidth > current bandwidth (${b} > ${k})`),c(v),!0}return c(`not ${d} as no switching criteria met`),!1};class pT extends ae.EventTarget{constructor(e){super(),this.fastQualityChange_=uT(this.fastQualityChange_.bind(this),100);const{src:i,withCredentials:n,tech:s,bandwidth:a,externVhs:o,useCueTags:l,playlistExclusionDuration:c,enableLowInitialPlaylist:d,sourceType:m,cacheEncryptionKeys:g,bufferBasedABR:C,leastPixelDiffSelector:b,captionServices:k,experimentalUseMMS:v}=e;if(!i)throw new Error("A non-empty playlist URL or JSON manifest string is required");let{maxPlaylistRetries:T}=e;(T===null||typeof T>"u")&&(T=1/0),Qi=o,this.bufferBasedABR=!!C,this.leastPixelDiffSelector=!!b,this.withCredentials=n,this.tech_=s,this.vhs_=s.vhs,this.player_=e.player_,this.sourceType_=m,this.useCueTags_=l,this.playlistExclusionDuration=c,this.maxPlaylistRetries=T,this.enableLowInitialPlaylist=d,this.usingManagedMediaSource_=!1,this.useCueTags_&&(this.cueTagsTrack_=this.tech_.addTextTrack("metadata","ad-cues"),this.cueTagsTrack_.inBandMetadataTrackDispatchType=""),this.requestOptions_={withCredentials:n,maxPlaylistRetries:T,timeout:null},this.on("error",this.pauseLoading),this.mediaTypes_=oT(),v&&G.ManagedMediaSource?(this.tech_.el_.disableRemotePlayback=!0,this.mediaSource=new G.ManagedMediaSource,this.usingManagedMediaSource_=!0,ae.log("Using ManagedMediaSource")):G.MediaSource&&(this.mediaSource=new G.MediaSource),this.handleDurationChange_=this.handleDurationChange_.bind(this),this.handleSourceOpen_=this.handleSourceOpen_.bind(this),this.handleSourceEnded_=this.handleSourceEnded_.bind(this),this.load=this.load.bind(this),this.pause=this.pause.bind(this),this.mediaSource.addEventListener("durationchange",this.handleDurationChange_),this.mediaSource.addEventListener("sourceopen",this.handleSourceOpen_),this.mediaSource.addEventListener("sourceended",this.handleSourceEnded_),this.mediaSource.addEventListener("startstreaming",this.load),this.mediaSource.addEventListener("endstreaming",this.pause),this.seekable_=Mt(),this.hasPlayed_=!1,this.syncController_=new Wb(e),this.segmentMetadataTrack_=s.addRemoteTextTrack({kind:"metadata",label:"segment-metadata"},!1).track,this.segmentMetadataTrack_.mode="hidden",this.decrypter_=new Qb,this.sourceUpdater_=new Yf(this.mediaSource),this.inbandTextTracks_={},this.timelineChangeController_=new Yb,this.keyStatusMap_=new Map;const E={vhs:this.vhs_,parse708captions:e.parse708captions,useDtsForTimestampOffset:e.useDtsForTimestampOffset,captionServices:k,mediaSource:this.mediaSource,currentTime:this.tech_.currentTime.bind(this.tech_),seekable:()=>this.seekable(),seeking:()=>this.tech_.seeking(),duration:()=>this.duration(),hasPlayed:()=>this.hasPlayed_,goalBufferLength:()=>this.goalBufferLength(),bandwidth:a,syncController:this.syncController_,decrypter:this.decrypter_,sourceType:this.sourceType_,inbandTextTracks:this.inbandTextTracks_,cacheEncryptionKeys:g,sourceUpdater:this.sourceUpdater_,timelineChangeController:this.timelineChangeController_,exactManifestTimings:e.exactManifestTimings,addMetadataToTextTrack:this.addMetadataToTextTrack.bind(this)};this.mainPlaylistLoader_=this.sourceType_==="dash"?new _l(i,this.vhs_,at(this.requestOptions_,{addMetadataToTextTrack:this.addMetadataToTextTrack.bind(this)})):new Wn(i,this.vhs_,at(this.requestOptions_,{addDateRangesToTextTrack:this.addDateRangesToTextTrack_.bind(this)})),this.setupMainPlaylistLoaderListeners_(),this.mainSegmentLoader_=new xl(at(E,{segmentMetadataTrack:this.segmentMetadataTrack_,loaderType:"main"}),e),this.audioSegmentLoader_=new xl(at(E,{loaderType:"audio"}),e),this.subtitleSegmentLoader_=new zb(at(E,{loaderType:"vtt",featuresNativeTextTracks:this.tech_.featuresNativeTextTracks,loadVttJs:()=>new Promise(($,q)=>{function z(){s.off("vttjserror",N),$()}function N(){s.off("vttjsloaded",z),q()}s.one("vttjsloaded",z),s.one("vttjserror",N),s.addWebVttScript_()})}),e);const I=()=>this.mainSegmentLoader_.bandwidth;this.contentSteeringController_=new lT(this.vhs_.xhr,I),this.setupSegmentLoaderListeners_(),this.bufferBasedABR&&(this.mainPlaylistLoader_.one("loadedplaylist",()=>this.startABRTimer_()),this.tech_.on("pause",()=>this.stopABRTimer_()),this.tech_.on("play",()=>this.startABRTimer_())),dT.forEach($=>{this[$+"_"]=hT.bind(this,$)}),this.logger_=Ei("pc"),this.triggeredFmp4Usage=!1,this.tech_.preload()==="none"?(this.loadOnPlay_=()=>{this.loadOnPlay_=null,this.mainPlaylistLoader_.load()},this.tech_.one("play",this.loadOnPlay_)):this.mainPlaylistLoader_.load(),this.timeToLoadedData__=-1,this.mainAppendsToLoadedData__=-1,this.audioAppendsToLoadedData__=-1;const w=this.tech_.preload()==="none"?"play":"loadstart";this.tech_.one(w,()=>{const $=Date.now();this.tech_.one("loadeddata",()=>{this.timeToLoadedData__=Date.now()-$,this.mainAppendsToLoadedData__=this.mainSegmentLoader_.mediaAppends,this.audioAppendsToLoadedData__=this.audioSegmentLoader_.mediaAppends})})}mainAppendsToLoadedData_(){return this.mainAppendsToLoadedData__}audioAppendsToLoadedData_(){return this.audioAppendsToLoadedData__}appendsToLoadedData_(){const e=this.mainAppendsToLoadedData_(),i=this.audioAppendsToLoadedData_();return e===-1||i===-1?-1:e+i}timeToLoadedData_(){return this.timeToLoadedData__}checkABR_(e="abr"){const i=this.selectPlaylist();i&&this.shouldSwitchToMedia_(i)&&this.switchMedia_(i,e)}switchMedia_(e,i,n){const s=this.media(),a=s&&(s.id||s.uri),o=e&&(e.id||e.uri);if(a&&a!==o){this.logger_(`switch media ${a} -> ${o} from ${i}`);const l={renditionInfo:{id:o,bandwidth:e.attributes.BANDWIDTH,resolution:e.attributes.RESOLUTION,codecs:e.attributes.CODECS},cause:i};this.trigger({type:"renditionselected",metadata:l}),this.tech_.trigger({type:"usage",name:`vhs-rendition-change-${i}`})}this.mainPlaylistLoader_.media(e,n)}switchMediaForDASHContentSteering_(){["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(e=>{const i=this.mediaTypes_[e],n=i?i.activeGroup():null,s=this.contentSteeringController_.getPathway();if(n&&s){const o=(n.length?n[0].playlists:n.playlists).filter(l=>l.attributes.serviceLocation===s);o.length&&this.mediaTypes_[e].activePlaylistLoader.media(o[0])}})}startABRTimer_(){this.stopABRTimer_(),this.abrTimer_=G.setInterval(()=>this.checkABR_(),250)}stopABRTimer_(){this.tech_.scrubbing&&this.tech_.scrubbing()||(G.clearInterval(this.abrTimer_),this.abrTimer_=null)}getAudioTrackPlaylists_(){const e=this.main(),i=e&&e.playlists||[];if(!e||!e.mediaGroups||!e.mediaGroups.AUDIO)return i;const n=e.mediaGroups.AUDIO,s=Object.keys(n);let a;if(Object.keys(this.mediaTypes_.AUDIO.groups).length)a=this.mediaTypes_.AUDIO.activeTrack();else{const l=n.main||s.length&&n[s[0]];for(const c in l)if(l[c].default){a={label:c};break}}if(!a)return i;const o=[];for(const l in n)if(n[l][a.label]){const c=n[l][a.label];if(c.playlists&&c.playlists.length)o.push.apply(o,c.playlists);else if(c.uri)o.push(c);else if(e.playlists.length)for(let d=0;d<e.playlists.length;d++){const m=e.playlists[d];m.attributes&&m.attributes.AUDIO&&m.attributes.AUDIO===l&&o.push(m)}}return o.length?o:i}setupMainPlaylistLoaderListeners_(){this.mainPlaylistLoader_.on("loadedmetadata",()=>{const i=this.mainPlaylistLoader_.media(),n=i.targetDuration*1.5*1e3;pl(this.mainPlaylistLoader_.main,this.mainPlaylistLoader_.media())?this.requestOptions_.timeout=0:this.requestOptions_.timeout=n,i.endList&&this.tech_.preload()!=="none"&&(this.mainSegmentLoader_.playlist(i,this.requestOptions_),this.mainSegmentLoader_.load()),aT({sourceType:this.sourceType_,segmentLoaders:{AUDIO:this.audioSegmentLoader_,SUBTITLES:this.subtitleSegmentLoader_,main:this.mainSegmentLoader_},tech:this.tech_,requestOptions:this.requestOptions_,mainPlaylistLoader:this.mainPlaylistLoader_,vhs:this.vhs_,main:this.main(),mediaTypes:this.mediaTypes_,excludePlaylist:this.excludePlaylist.bind(this)}),this.triggerPresenceUsage_(this.main(),i),this.setupFirstPlay(),!this.mediaTypes_.AUDIO.activePlaylistLoader||this.mediaTypes_.AUDIO.activePlaylistLoader.media()?this.trigger("selectedinitialmedia"):this.mediaTypes_.AUDIO.activePlaylistLoader.one("loadedmetadata",()=>{this.trigger("selectedinitialmedia")})}),this.mainPlaylistLoader_.on("loadedplaylist",()=>{this.loadOnPlay_&&this.tech_.off("play",this.loadOnPlay_);let i=this.mainPlaylistLoader_.media();if(!i){this.attachContentSteeringListeners_(),this.initContentSteeringController_(),this.excludeUnsupportedVariants_();let n;if(this.enableLowInitialPlaylist&&(n=this.selectInitialPlaylist()),n||(n=this.selectPlaylist()),!n||!this.shouldSwitchToMedia_(n)||(this.initialMedia_=n,this.switchMedia_(this.initialMedia_,"initial"),!(this.sourceType_==="vhs-json"&&this.initialMedia_.segments)))return;i=this.initialMedia_}this.handleUpdatedMediaPlaylist(i)}),this.mainPlaylistLoader_.on("error",()=>{const i=this.mainPlaylistLoader_.error;this.excludePlaylist({playlistToExclude:i.playlist,error:i})}),this.mainPlaylistLoader_.on("mediachanging",()=>{this.mainSegmentLoader_.abort(),this.mainSegmentLoader_.pause()}),this.mainPlaylistLoader_.on("mediachange",()=>{const i=this.mainPlaylistLoader_.media(),n=i.targetDuration*1.5*1e3;pl(this.mainPlaylistLoader_.main,this.mainPlaylistLoader_.media())?this.requestOptions_.timeout=0:this.requestOptions_.timeout=n,this.sourceType_==="dash"&&this.mainPlaylistLoader_.isPaused&&this.mainPlaylistLoader_.load(),this.mainSegmentLoader_.pause(),this.mainSegmentLoader_.playlist(i,this.requestOptions_),this.waitingForFastQualityPlaylistReceived_?this.runFastQualitySwitch_():this.mainSegmentLoader_.load(),this.tech_.trigger({type:"mediachange",bubbles:!0})}),this.mainPlaylistLoader_.on("playlistunchanged",()=>{const i=this.mainPlaylistLoader_.media();if(i.lastExcludeReason_==="playlist-unchanged")return;this.stuckAtPlaylistEnd_(i)&&(this.excludePlaylist({error:{message:"Playlist no longer updating.",reason:"playlist-unchanged"}}),this.tech_.trigger("playliststuck"))}),this.mainPlaylistLoader_.on("renditiondisabled",()=>{this.tech_.trigger({type:"usage",name:"vhs-rendition-disabled"})}),this.mainPlaylistLoader_.on("renditionenabled",()=>{this.tech_.trigger({type:"usage",name:"vhs-rendition-enabled"})}),["manifestrequeststart","manifestrequestcomplete","manifestparsestart","manifestparsecomplete","playlistrequeststart","playlistrequestcomplete","playlistparsestart","playlistparsecomplete","renditiondisabled","renditionenabled"].forEach(i=>{this.mainPlaylistLoader_.on(i,n=>{this.player_.trigger(St({},n))})})}handleUpdatedMediaPlaylist(e){this.useCueTags_&&this.updateAdCues_(e),this.mainSegmentLoader_.pause(),this.mainSegmentLoader_.playlist(e,this.requestOptions_),this.waitingForFastQualityPlaylistReceived_&&this.runFastQualitySwitch_(),this.updateDuration(!e.endList),this.tech_.paused()||(this.mainSegmentLoader_.load(),this.audioSegmentLoader_&&this.audioSegmentLoader_.load())}triggerPresenceUsage_(e,i){const n=e.mediaGroups||{};let s=!0;const a=Object.keys(n.AUDIO);for(const o in n.AUDIO)for(const l in n.AUDIO[o])n.AUDIO[o][l].uri||(s=!1);s&&this.tech_.trigger({type:"usage",name:"vhs-demuxed"}),Object.keys(n.SUBTITLES).length&&this.tech_.trigger({type:"usage",name:"vhs-webvtt"}),Qi.Playlist.isAes(i)&&this.tech_.trigger({type:"usage",name:"vhs-aes"}),a.length&&Object.keys(n.AUDIO[a[0]]).length>1&&this.tech_.trigger({type:"usage",name:"vhs-alternate-audio"}),this.useCueTags_&&this.tech_.trigger({type:"usage",name:"vhs-playlist-cue-tags"})}shouldSwitchToMedia_(e){const i=this.mainPlaylistLoader_.media()||this.mainPlaylistLoader_.pendingMedia_,n=this.tech_.currentTime(),s=this.bufferLowWaterLine(),a=this.bufferHighWaterLine(),o=this.tech_.buffered();return fT({buffered:o,currentTime:n,currentPlaylist:i,nextPlaylist:e,bufferLowWaterLine:s,bufferHighWaterLine:a,duration:this.duration(),bufferBasedABR:this.bufferBasedABR,log:this.logger_})}setupSegmentLoaderListeners_(){this.mainSegmentLoader_.on("bandwidthupdate",()=>{this.checkABR_("bandwidthupdate"),this.tech_.trigger("bandwidthupdate")}),this.mainSegmentLoader_.on("timeout",()=>{this.bufferBasedABR&&this.mainSegmentLoader_.load()}),this.bufferBasedABR||this.mainSegmentLoader_.on("progress",()=>{this.trigger("progress")}),this.mainSegmentLoader_.on("error",()=>{const n=this.mainSegmentLoader_.error();this.excludePlaylist({playlistToExclude:n.playlist,error:n})}),this.mainSegmentLoader_.on("appenderror",()=>{this.error=this.mainSegmentLoader_.error_,this.trigger("error")}),this.mainSegmentLoader_.on("syncinfoupdate",()=>{this.onSyncInfoUpdate_()}),this.mainSegmentLoader_.on("timestampoffset",()=>{this.tech_.trigger({type:"usage",name:"vhs-timestamp-offset"})}),this.audioSegmentLoader_.on("syncinfoupdate",()=>{this.onSyncInfoUpdate_()}),this.audioSegmentLoader_.on("appenderror",()=>{this.error=this.audioSegmentLoader_.error_,this.trigger("error")}),this.mainSegmentLoader_.on("ended",()=>{this.logger_("main segment loader ended"),this.onEndOfStream()}),this.timelineChangeController_.on("audioTimelineBehind",()=>{const n=this.audioSegmentLoader_.pendingSegment_;if(!n||!n.segment||!n.segment.syncInfo)return;const s=n.segment.syncInfo.end+.01;this.tech_.setCurrentTime(s)}),this.timelineChangeController_.on("fixBadTimelineChange",()=>{this.logger_("Fix bad timeline change. Restarting al segment loaders..."),this.mainSegmentLoader_.pause(),this.mainSegmentLoader_.resetEverything(),this.mediaTypes_.AUDIO.activePlaylistLoader&&(this.audioSegmentLoader_.pause(),this.audioSegmentLoader_.resetEverything()),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&(this.subtitleSegmentLoader_.pause(),this.subtitleSegmentLoader_.resetEverything()),this.load()}),this.mainSegmentLoader_.on("earlyabort",n=>{this.bufferBasedABR||(this.delegateLoaders_("all",["abort"]),this.excludePlaylist({error:{message:"Aborted early because there isn't enough bandwidth to complete the request without rebuffering."},playlistExclusionDuration:cT}))});const e=()=>{if(!this.sourceUpdater_.hasCreatedSourceBuffers())return this.tryToCreateSourceBuffers_();const n=this.getCodecsOrExclude_();n&&this.sourceUpdater_.addOrChangeSourceBuffers(n)};this.mainSegmentLoader_.on("trackinfo",e),this.audioSegmentLoader_.on("trackinfo",e),this.mainSegmentLoader_.on("fmp4",()=>{this.triggeredFmp4Usage||(this.tech_.trigger({type:"usage",name:"vhs-fmp4"}),this.triggeredFmp4Usage=!0)}),this.audioSegmentLoader_.on("fmp4",()=>{this.triggeredFmp4Usage||(this.tech_.trigger({type:"usage",name:"vhs-fmp4"}),this.triggeredFmp4Usage=!0)}),this.audioSegmentLoader_.on("ended",()=>{this.logger_("audioSegmentLoader ended"),this.onEndOfStream()}),["segmentselected","segmentloadstart","segmentloaded","segmentkeyloadstart","segmentkeyloadcomplete","segmentdecryptionstart","segmentdecryptioncomplete","segmenttransmuxingstart","segmenttransmuxingcomplete","segmenttransmuxingtrackinfoavailable","segmenttransmuxingtiminginfoavailable","segmentappendstart","appendsdone","bandwidthupdated","timelinechange","codecschange"].forEach(n=>{this.mainSegmentLoader_.on(n,s=>{this.player_.trigger(St({},s))}),this.audioSegmentLoader_.on(n,s=>{this.player_.trigger(St({},s))}),this.subtitleSegmentLoader_.on(n,s=>{this.player_.trigger(St({},s))})})}mediaSecondsLoaded_(){return Math.max(this.audioSegmentLoader_.mediaSecondsLoaded+this.mainSegmentLoader_.mediaSecondsLoaded)}load(){this.mainSegmentLoader_.load(),this.mediaTypes_.AUDIO.activePlaylistLoader&&this.audioSegmentLoader_.load(),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&this.subtitleSegmentLoader_.load()}pause(){this.mainSegmentLoader_.pause(),this.mediaTypes_.AUDIO.activePlaylistLoader&&this.audioSegmentLoader_.pause(),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&this.subtitleSegmentLoader_.pause()}fastQualityChange_(e=this.selectPlaylist()){if(e&&e===this.mainPlaylistLoader_.media()){this.logger_("skipping fastQualityChange because new media is same as old");return}this.switchMedia_(e,"fast-quality"),this.waitingForFastQualityPlaylistReceived_=!0}runFastQualitySwitch_(){this.waitingForFastQualityPlaylistReceived_=!1,this.mainSegmentLoader_.pause(),this.mainSegmentLoader_.resetEverything(),this.mediaTypes_.AUDIO.activePlaylistLoader&&(this.audioSegmentLoader_.pause(),this.audioSegmentLoader_.resetEverything()),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&(this.subtitleSegmentLoader_.pause(),this.subtitleSegmentLoader_.resetEverything()),this.load()}play(){if(this.setupFirstPlay())return;this.tech_.ended()&&this.tech_.setCurrentTime(0),this.hasPlayed_&&this.load();const e=this.tech_.seekable();if(this.tech_.duration()===1/0&&this.tech_.currentTime()<e.start(0))return this.tech_.setCurrentTime(e.end(e.length-1))}setupFirstPlay(){const e=this.mainPlaylistLoader_.media();if(!e||this.tech_.paused()||this.hasPlayed_)return!1;if(!e.endList||e.start){const i=this.seekable();if(!i.length)return!1;const n=i.end(0);let s=n;if(e.start){const a=e.start.timeOffset;if(a<0){const o=this.mainPlaylistLoader_.main,l=Qi.Playlist.liveEdgeDelay(o,e),c=n+l;s=Math.max(Math.min(c+a,n),i.start(0))}else s=Math.min(n,a)}this.trigger("firstplay"),this.tech_.setCurrentTime(s)}return this.hasPlayed_=!0,this.load(),!0}handleSourceOpen_(){if(this.tryToCreateSourceBuffers_(),this.tech_.autoplay()){const e=this.tech_.play();typeof e<"u"&&typeof e.then=="function"&&e.then(null,i=>{})}this.trigger("sourceopen")}handleSourceEnded_(){if(!this.inbandTextTracks_.metadataTrack_)return;const e=this.inbandTextTracks_.metadataTrack_.cues;if(!e||!e.length)return;const i=this.duration();e[e.length-1].endTime=isNaN(i)||Math.abs(i)===1/0?Number.MAX_VALUE:i}handleDurationChange_(){this.tech_.trigger("durationchange")}onEndOfStream(){let e=this.mainSegmentLoader_.ended_;if(this.mediaTypes_.AUDIO.activePlaylistLoader){const i=this.mainSegmentLoader_.getCurrentMediaInfo_();!i||i.hasVideo?e=e&&this.audioSegmentLoader_.ended_:e=this.audioSegmentLoader_.ended_}e&&(this.stopABRTimer_(),this.sourceUpdater_.endOfStream())}stuckAtPlaylistEnd_(e){if(!this.seekable().length)return!1;const n=this.syncController_.getExpiredTime(e,this.duration());if(n===null)return!1;const s=Qi.Playlist.playlistEnd(e,n),a=this.tech_.currentTime(),o=this.tech_.buffered();if(!o.length)return s-a<=zi;const l=o.end(o.length-1);return l-a<=zi&&s-l<=zi}excludePlaylist({playlistToExclude:e=this.mainPlaylistLoader_.media(),error:i={},playlistExclusionDuration:n}){if(e=e||this.mainPlaylistLoader_.media(),n=n||i.playlistExclusionDuration||this.playlistExclusionDuration,!e){this.error=i,this.mediaSource.readyState!=="open"?this.trigger("error"):this.sourceUpdater_.endOfStream("network");return}e.playlistErrors_++;const s=this.mainPlaylistLoader_.main.playlists,a=s.filter(Xa),o=a.length===1&&a[0]===e;if(s.length===1&&n!==1/0)return ae.log.warn(`Problem encountered with playlist ${e.id}. Trying again since it is the only playlist.`),this.tech_.trigger("retryplaylist"),this.mainPlaylistLoader_.load(o);if(o){if(this.main().contentSteering){const k=this.pathwayAttribute_(e),v=this.contentSteeringController_.steeringManifest.ttl*1e3;this.contentSteeringController_.excludePathway(k),this.excludeThenChangePathway_(),setTimeout(()=>{this.contentSteeringController_.addAvailablePathway(k)},v);return}let b=!1;s.forEach(k=>{if(k===e)return;const v=k.excludeUntil;typeof v<"u"&&v!==1/0&&(b=!0,delete k.excludeUntil)}),b&&(ae.log.warn("Removing other playlists from the exclusion list because the last rendition is about to be excluded."),this.tech_.trigger("retryplaylist"))}let l;e.playlistErrors_>this.maxPlaylistRetries?l=1/0:l=Date.now()+n*1e3,e.excludeUntil=l,i.reason&&(e.lastExcludeReason_=i.reason),this.tech_.trigger("excludeplaylist"),this.tech_.trigger({type:"usage",name:"vhs-rendition-excluded"});const c=this.selectPlaylist();if(!c){this.error="Playback cannot continue. No available working or supported playlists.",this.trigger("error");return}const d=i.internal?this.logger_:ae.log.warn,m=i.message?" "+i.message:"";d(`${i.internal?"Internal problem":"Problem"} encountered with playlist ${e.id}.${m} Switching to playlist ${c.id}.`),c.attributes.AUDIO!==e.attributes.AUDIO&&this.delegateLoaders_("audio",["abort","pause"]),c.attributes.SUBTITLES!==e.attributes.SUBTITLES&&this.delegateLoaders_("subtitle",["abort","pause"]),this.delegateLoaders_("main",["abort","pause"]);const g=c.targetDuration/2*1e3||5*1e3,C=typeof c.lastRequest=="number"&&Date.now()-c.lastRequest<=g;return this.switchMedia_(c,"exclude",o||C)}pauseLoading(){this.delegateLoaders_("all",["abort","pause"]),this.stopABRTimer_()}delegateLoaders_(e,i){const n=[],s=e==="all";(s||e==="main")&&n.push(this.mainPlaylistLoader_);const a=[];(s||e==="audio")&&a.push("AUDIO"),(s||e==="subtitle")&&(a.push("CLOSED-CAPTIONS"),a.push("SUBTITLES")),a.forEach(o=>{const l=this.mediaTypes_[o]&&this.mediaTypes_[o].activePlaylistLoader;l&&n.push(l)}),["main","audio","subtitle"].forEach(o=>{const l=this[`${o}SegmentLoader_`];l&&(e===o||e==="all")&&n.push(l)}),n.forEach(o=>i.forEach(l=>{typeof o[l]=="function"&&o[l]()}))}setCurrentTime(e){const i=Gn(this.tech_.buffered(),e);if(!(this.mainPlaylistLoader_&&this.mainPlaylistLoader_.media())||!this.mainPlaylistLoader_.media().segments)return 0;if(i&&i.length)return e;this.mainSegmentLoader_.pause(),this.mainSegmentLoader_.resetEverything(),this.mediaTypes_.AUDIO.activePlaylistLoader&&(this.audioSegmentLoader_.pause(),this.audioSegmentLoader_.resetEverything()),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&(this.subtitleSegmentLoader_.pause(),this.subtitleSegmentLoader_.resetEverything()),this.load()}duration(){if(!this.mainPlaylistLoader_)return 0;const e=this.mainPlaylistLoader_.media();return e?e.endList?this.mediaSource?this.mediaSource.duration:Qi.Playlist.duration(e):1/0:0}seekable(){return this.seekable_}getSeekableRange_(e,i){const n=e.media();if(!n)return null;const s=this.syncController_.getMediaSequenceSync(i);if(s&&s.isReliable){const l=s.start,c=s.end;if(!isFinite(l)||!isFinite(c))return null;const d=Qi.Playlist.liveEdgeDelay(this.mainPlaylistLoader_.main,n),m=Math.max(l,c-d);return Mt([[l,m]])}const a=this.syncController_.getExpiredTime(n,this.duration());if(a===null)return null;const o=Qi.Playlist.seekable(n,a,Qi.Playlist.liveEdgeDelay(this.mainPlaylistLoader_.main,n));return o.length?o:null}computeFinalSeekable_(e,i){if(!i)return e;const n=e.start(0),s=e.end(0),a=i.start(0),o=i.end(0);return a>s||n>o?e:Mt([[Math.max(n,a),Math.min(s,o)]])}onSyncInfoUpdate_(){if(!this.mainPlaylistLoader_)return;const e=this.getSeekableRange_(this.mainPlaylistLoader_,"main");if(!e)return;let i;if(this.mediaTypes_.AUDIO.activePlaylistLoader&&(i=this.getSeekableRange_(this.mediaTypes_.AUDIO.activePlaylistLoader,"audio"),!i))return;const n=this.seekable_;if(this.seekable_=this.computeFinalSeekable_(e,i),!this.seekable_||n&&n.length&&this.seekable_.length&&n.start(0)===this.seekable_.start(0)&&n.end(0)===this.seekable_.end(0))return;this.logger_(`seekable updated [${lf(this.seekable_)}]`);const s={seekableRanges:this.seekable_};this.trigger({type:"seekablerangeschanged",metadata:s}),this.tech_.trigger("seekablechanged")}updateDuration(e){if(this.updateDuration_&&(this.mediaSource.removeEventListener("sourceopen",this.updateDuration_),this.updateDuration_=null),this.mediaSource.readyState!=="open"){this.updateDuration_=this.updateDuration.bind(this,e),this.mediaSource.addEventListener("sourceopen",this.updateDuration_);return}if(e){const s=this.seekable();if(!s.length)return;(isNaN(this.mediaSource.duration)||this.mediaSource.duration<s.end(s.length-1))&&this.sourceUpdater_.setDuration(s.end(s.length-1));return}const i=this.tech_.buffered();let n=Qi.Playlist.duration(this.mainPlaylistLoader_.media());i.length>0&&(n=Math.max(n,i.end(i.length-1))),this.mediaSource.duration!==n&&this.sourceUpdater_.setDuration(n)}dispose(){this.trigger("dispose"),this.decrypter_.terminate(),this.mainPlaylistLoader_.dispose(),this.mainSegmentLoader_.dispose(),this.contentSteeringController_.dispose(),this.keyStatusMap_.clear(),this.loadOnPlay_&&this.tech_.off("play",this.loadOnPlay_),["AUDIO","SUBTITLES"].forEach(e=>{const i=this.mediaTypes_[e].groups;for(const n in i)i[n].forEach(s=>{s.playlistLoader&&s.playlistLoader.dispose()})}),this.audioSegmentLoader_.dispose(),this.subtitleSegmentLoader_.dispose(),this.sourceUpdater_.dispose(),this.timelineChangeController_.dispose(),this.stopABRTimer_(),this.updateDuration_&&this.mediaSource.removeEventListener("sourceopen",this.updateDuration_),this.mediaSource.removeEventListener("durationchange",this.handleDurationChange_),this.mediaSource.removeEventListener("sourceopen",this.handleSourceOpen_),this.mediaSource.removeEventListener("sourceended",this.handleSourceEnded_),this.off()}main(){return this.mainPlaylistLoader_.main}media(){return this.mainPlaylistLoader_.media()||this.initialMedia_}areMediaTypesKnown_(){const e=!!this.mediaTypes_.AUDIO.activePlaylistLoader,i=!!this.mainSegmentLoader_.getCurrentMediaInfo_(),n=e?!!this.audioSegmentLoader_.getCurrentMediaInfo_():!0;return!(!i||!n)}getCodecsOrExclude_(){const e={main:this.mainSegmentLoader_.getCurrentMediaInfo_()||{},audio:this.audioSegmentLoader_.getCurrentMediaInfo_()||{}},i=this.mainSegmentLoader_.getPendingSegmentPlaylist()||this.media();e.video=e.main;const n=es(this.main(),i),s={},a=!!this.mediaTypes_.AUDIO.activePlaylistLoader;if(e.main.hasVideo&&(s.video=n.video||e.main.videoCodec||iv),e.main.isMuxed&&(s.video+=`,${n.audio||e.main.audioCodec||Pc}`),(e.main.hasAudio&&!e.main.isMuxed||e.audio.hasAudio||a)&&(s.audio=n.audio||e.main.audioCodec||e.audio.audioCodec||Pc,e.audio.isFmp4=e.main.hasAudio&&!e.main.isMuxed?e.main.isFmp4:e.audio.isFmp4),!s.audio&&!s.video){this.excludePlaylist({playlistToExclude:i,error:{message:"Could not determine codecs for playlist."},playlistExclusionDuration:1/0});return}const o=(d,m)=>d?Yr(m,this.usingManagedMediaSource_):wo(m),l={};let c;if(["video","audio"].forEach(function(d){if(s.hasOwnProperty(d)&&!o(e[d].isFmp4,s[d])){const m=e[d].isFmp4?"browser":"muxer";l[m]=l[m]||[],l[m].push(s[d]),d==="audio"&&(c=m)}}),a&&c&&i.attributes.AUDIO){const d=i.attributes.AUDIO;this.main().playlists.forEach(m=>{(m.attributes&&m.attributes.AUDIO)===d&&m!==i&&(m.excludeUntil=1/0)}),this.logger_(`excluding audio group ${d} as ${c} does not support codec(s): "${s.audio}"`)}if(Object.keys(l).length){const d=Object.keys(l).reduce((m,g)=>(m&&(m+=", "),m+=`${g} does not support codec(s): "${l[g].join(",")}"`,m),"")+".";this.excludePlaylist({playlistToExclude:i,error:{internal:!0,message:d},playlistExclusionDuration:1/0});return}if(this.sourceUpdater_.hasCreatedSourceBuffers()&&!this.sourceUpdater_.canChangeType()){const d=[];if(["video","audio"].forEach(m=>{const g=(qi(this.sourceUpdater_.codecs[m]||"")[0]||{}).type,C=(qi(s[m]||"")[0]||{}).type;g&&C&&g.toLowerCase()!==C.toLowerCase()&&d.push(`"${this.sourceUpdater_.codecs[m]}" -> "${s[m]}"`)}),d.length){this.excludePlaylist({playlistToExclude:i,error:{message:`Codec switching not supported: ${d.join(", ")}.`,internal:!0},playlistExclusionDuration:1/0});return}}return s}tryToCreateSourceBuffers_(){if(this.mediaSource.readyState!=="open"||this.sourceUpdater_.hasCreatedSourceBuffers()||!this.areMediaTypesKnown_())return;const e=this.getCodecsOrExclude_();if(!e)return;this.sourceUpdater_.createSourceBuffers(e);const i=[e.video,e.audio].filter(Boolean).join(",");this.excludeIncompatibleVariants_(i)}excludeUnsupportedVariants_(){const e=this.main().playlists,i=[];Object.keys(e).forEach(n=>{const s=e[n];if(i.indexOf(s.id)!==-1)return;i.push(s.id);const a=es(this.main,s),o=[];a.audio&&!wo(a.audio)&&!Yr(a.audio,this.usingManagedMediaSource_)&&o.push(`audio codec ${a.audio}`),a.video&&!wo(a.video)&&!Yr(a.video,this.usingManagedMediaSource_)&&o.push(`video codec ${a.video}`),a.text&&a.text==="stpp.ttml.im1t"&&o.push(`text codec ${a.text}`),o.length&&(s.excludeUntil=1/0,this.logger_(`excluding ${s.id} for unsupported: ${o.join(", ")}`))})}excludeIncompatibleVariants_(e){const i=[],n=this.main().playlists,s=as(qi(e)),a=kd(s),o=s.video&&qi(s.video)[0]||null,l=s.audio&&qi(s.audio)[0]||null;Object.keys(n).forEach(c=>{const d=n[c];if(i.indexOf(d.id)!==-1||d.excludeUntil===1/0)return;i.push(d.id);const m=[],g=es(this.mainPlaylistLoader_.main,d),C=kd(g);if(!(!g.audio&&!g.video)){if(C!==a&&m.push(`codec count "${C}" !== "${a}"`),!this.sourceUpdater_.canChangeType()){const b=g.video&&qi(g.video)[0]||null,k=g.audio&&qi(g.audio)[0]||null;b&&o&&b.type.toLowerCase()!==o.type.toLowerCase()&&m.push(`video codec "${b.type}" !== "${o.type}"`),k&&l&&k.type.toLowerCase()!==l.type.toLowerCase()&&m.push(`audio codec "${k.type}" !== "${l.type}"`)}m.length&&(d.excludeUntil=1/0,this.logger_(`excluding ${d.id}: ${m.join(" && ")}`))}})}updateAdCues_(e){let i=0;const n=this.seekable();n.length&&(i=n.start(0)),Xb(e,this.cueTagsTrack_,i)}goalBufferLength(){const e=this.tech_.currentTime(),i=Bt.GOAL_BUFFER_LENGTH,n=Bt.GOAL_BUFFER_LENGTH_RATE,s=Math.max(i,Bt.MAX_GOAL_BUFFER_LENGTH);return Math.min(i+e*n,s)}bufferLowWaterLine(){const e=this.tech_.currentTime(),i=Bt.BUFFER_LOW_WATER_LINE,n=Bt.BUFFER_LOW_WATER_LINE_RATE,s=Math.max(i,Bt.MAX_BUFFER_LOW_WATER_LINE),a=Math.max(i,Bt.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE);return Math.min(i+e*n,this.bufferBasedABR?a:s)}bufferHighWaterLine(){return Bt.BUFFER_HIGH_WATER_LINE}addDateRangesToTextTrack_(e){Od(this.inbandTextTracks_,"com.apple.streaming",this.tech_),Sb({inbandTextTracks:this.inbandTextTracks_,dateRanges:e})}addMetadataToTextTrack(e,i,n){const s=this.sourceUpdater_.videoBuffer?this.sourceUpdater_.videoTimestampOffset():this.sourceUpdater_.audioTimestampOffset();Od(this.inbandTextTracks_,e,this.tech_),Tb({inbandTextTracks:this.inbandTextTracks_,metadataArray:i,timestampOffset:s,videoDuration:n})}pathwayAttribute_(e){return e.attributes["PATHWAY-ID"]||e.attributes.serviceLocation}initContentSteeringController_(){const e=this.main();if(e.contentSteering){for(const i of e.playlists)this.contentSteeringController_.addAvailablePathway(this.pathwayAttribute_(i));if(this.contentSteeringController_.assignTagProperties(e.uri,e.contentSteering),this.contentSteeringController_.queryBeforeStart){this.contentSteeringController_.requestSteeringManifest(!0);return}this.tech_.one("canplay",()=>{this.contentSteeringController_.requestSteeringManifest()})}}resetContentSteeringController_(){this.contentSteeringController_.clearAvailablePathways(),this.contentSteeringController_.dispose(),this.initContentSteeringController_()}attachContentSteeringListeners_(){this.contentSteeringController_.on("content-steering",this.excludeThenChangePathway_.bind(this)),["contentsteeringloadstart","contentsteeringloadcomplete","contentsteeringparsed"].forEach(i=>{this.contentSteeringController_.on(i,n=>{this.trigger(St({},n))})}),this.sourceType_==="dash"&&this.mainPlaylistLoader_.on("loadedplaylist",()=>{const i=this.main();(this.contentSteeringController_.didDASHTagChange(i.uri,i.contentSteering)||(()=>{const a=this.contentSteeringController_.getAvailablePathways(),o=[];for(const l of i.playlists){const c=l.attributes.serviceLocation;if(c&&(o.push(c),!a.has(c)))return!0}return!!(!o.length&&a.size)})())&&this.resetContentSteeringController_()})}excludeThenChangePathway_(){const e=this.contentSteeringController_.getPathway();if(!e)return;this.handlePathwayClones_();const n=this.main().playlists,s=new Set;let a=!1;Object.keys(n).forEach(o=>{const l=n[o],c=this.pathwayAttribute_(l),d=c&&e!==c;l.excludeUntil===1/0&&l.lastExcludeReason_==="content-steering"&&!d&&(delete l.excludeUntil,delete l.lastExcludeReason_,a=!0);const g=!l.excludeUntil&&l.excludeUntil!==1/0;!s.has(l.id)&&d&&g&&(s.add(l.id),l.excludeUntil=1/0,l.lastExcludeReason_="content-steering",this.logger_(`excluding ${l.id} for ${l.lastExcludeReason_}`))}),this.contentSteeringController_.manifestType_==="DASH"&&Object.keys(this.mediaTypes_).forEach(o=>{const l=this.mediaTypes_[o];if(l.activePlaylistLoader){const c=l.activePlaylistLoader.media_;c&&c.attributes.serviceLocation!==e&&(a=!0)}}),a&&this.changeSegmentPathway_()}handlePathwayClones_(){const i=this.main().playlists,n=this.contentSteeringController_.currentPathwayClones,s=this.contentSteeringController_.nextPathwayClones;if(n&&n.size||s&&s.size){for(const[o,l]of n.entries())s.get(o)||(this.mainPlaylistLoader_.updateOrDeleteClone(l),this.contentSteeringController_.excludePathway(o));for(const[o,l]of s.entries()){const c=n.get(o);if(!c){i.filter(m=>m.attributes["PATHWAY-ID"]===l["BASE-ID"]).forEach(m=>{this.mainPlaylistLoader_.addClonePathway(l,m)}),this.contentSteeringController_.addAvailablePathway(o);continue}this.equalPathwayClones_(c,l)||(this.mainPlaylistLoader_.updateOrDeleteClone(l,!0),this.contentSteeringController_.addAvailablePathway(o))}this.contentSteeringController_.currentPathwayClones=new Map(JSON.parse(JSON.stringify([...s])))}}equalPathwayClones_(e,i){if(e["BASE-ID"]!==i["BASE-ID"]||e.ID!==i.ID||e["URI-REPLACEMENT"].HOST!==i["URI-REPLACEMENT"].HOST)return!1;const n=e["URI-REPLACEMENT"].PARAMS,s=i["URI-REPLACEMENT"].PARAMS;for(const a in n)if(n[a]!==s[a])return!1;for(const a in s)if(n[a]!==s[a])return!1;return!0}changeSegmentPathway_(){const e=this.selectPlaylist();this.pauseLoading(),this.contentSteeringController_.manifestType_==="DASH"&&this.switchMediaForDASHContentSteering_(),this.switchMedia_(e,"content-steering")}excludeNonUsablePlaylistsByKeyId_(){if(!this.mainPlaylistLoader_||!this.mainPlaylistLoader_.main)return;let e=0;const i="non-usable";this.mainPlaylistLoader_.main.playlists.forEach(n=>{const s=this.mainPlaylistLoader_.getKeyIdSet(n);!s||!s.size||s.forEach(a=>{const o="usable",l=this.keyStatusMap_.has(a)&&this.keyStatusMap_.get(a)===o,c=n.lastExcludeReason_===i&&n.excludeUntil===1/0;l?l&&c&&(delete n.excludeUntil,delete n.lastExcludeReason_,this.logger_(`enabling playlist ${n.id} because key ID ${a} is ${o}`)):(n.excludeUntil!==1/0&&n.lastExcludeReason_!==i&&(n.excludeUntil=1/0,n.lastExcludeReason_=i,this.logger_(`excluding playlist ${n.id} because the key ID ${a} doesn't exist in the keyStatusMap or is not ${o}`)),e++)})}),e>=this.mainPlaylistLoader_.main.playlists.length&&this.mainPlaylistLoader_.main.playlists.forEach(n=>{const s=n&&n.attributes&&n.attributes.RESOLUTION&&n.attributes.RESOLUTION.height<720,a=n.excludeUntil===1/0&&n.lastExcludeReason_===i;s&&a&&(delete n.excludeUntil,ae.log.warn(`enabling non-HD playlist ${n.id} because all playlists were excluded due to ${i} key IDs`))})}addKeyStatus_(e,i){const a=(typeof e=="string"?e:Ub(e)).slice(0,32).toLowerCase();this.logger_(`KeyStatus '${i}' with key ID ${a} added to the keyStatusMap`),this.keyStatusMap_.set(a,i)}updatePlaylistByKeyStatus(e,i){this.addKeyStatus_(e,i),this.waitingForFastQualityPlaylistReceived_||this.excludeNonUsableThenChangePlaylist_(),this.mainPlaylistLoader_.off("loadedplaylist",this.excludeNonUsableThenChangePlaylist_.bind(this)),this.mainPlaylistLoader_.on("loadedplaylist",this.excludeNonUsableThenChangePlaylist_.bind(this))}excludeNonUsableThenChangePlaylist_(){this.excludeNonUsablePlaylistsByKeyId_(),this.fastQualityChange_()}}const mT=(r,e,i)=>n=>{const s=r.main.playlists[e],a=uu(s),o=Xa(s);if(typeof n>"u")return o;n?delete s.disabled:s.disabled=!0;const l={renditionInfo:{id:e,bandwidth:s.attributes.BANDWIDTH,resolution:s.attributes.RESOLUTION,codecs:s.attributes.CODECS},cause:"fast-quality"};return n!==o&&!a&&(n?(i(s),r.trigger({type:"renditionenabled",metadata:l})):r.trigger({type:"renditiondisabled",metadata:l})),n};class gT{constructor(e,i,n){const{playlistController_:s}=e,a=s.fastQualityChange_.bind(s);if(i.attributes){const o=i.attributes.RESOLUTION;this.width=o&&o.width,this.height=o&&o.height,this.bandwidth=i.attributes.BANDWIDTH,this.frameRate=i.attributes["FRAME-RATE"]}this.codecs=es(s.main(),i),this.playlist=i,this.id=n,this.enabled=mT(e.playlists,i.id,a)}}const vT=function(r){r.representations=()=>{const e=r.playlistController_.main(),i=hs(e)?r.playlistController_.getAudioTrackPlaylists_():e.playlists;return i?i.filter(n=>!uu(n)).map((n,s)=>new gT(r,n,n.id)):[]}},Xd=["seeking","seeked","pause","playing","error"];class yT extends ae.EventTarget{constructor(e){super(),this.playlistController_=e.playlistController,this.tech_=e.tech,this.seekable=e.seekable,this.allowSeeksWithinUnsafeLiveWindow=e.allowSeeksWithinUnsafeLiveWindow,this.liveRangeSafeTimeDelta=e.liveRangeSafeTimeDelta,this.media=e.media,this.playedRanges_=[],this.consecutiveUpdates=0,this.lastRecordedTime=null,this.checkCurrentTimeTimeout_=null,this.logger_=Ei("PlaybackWatcher"),this.logger_("initialize");const i=()=>this.monitorCurrentTime_(),n=()=>this.monitorCurrentTime_(),s=()=>this.techWaiting_(),a=()=>this.resetTimeUpdate_(),o=this.playlistController_,l=["main","subtitle","audio"],c={};l.forEach(m=>{c[m]={reset:()=>this.resetSegmentDownloads_(m),updateend:()=>this.checkSegmentDownloads_(m)},o[`${m}SegmentLoader_`].on("appendsdone",c[m].updateend),o[`${m}SegmentLoader_`].on("playlistupdate",c[m].reset),this.tech_.on(["seeked","seeking"],c[m].reset)});const d=m=>{["main","audio"].forEach(g=>{o[`${g}SegmentLoader_`][m]("appended",this.seekingAppendCheck_)})};this.seekingAppendCheck_=()=>{this.fixesBadSeeks_()&&(this.consecutiveUpdates=0,this.lastRecordedTime=this.tech_.currentTime(),d("off"))},this.clearSeekingAppendCheck_=()=>d("off"),this.watchForBadSeeking_=()=>{this.clearSeekingAppendCheck_(),d("on")},this.tech_.on("seeked",this.clearSeekingAppendCheck_),this.tech_.on("seeking",this.watchForBadSeeking_),this.tech_.on("waiting",s),this.tech_.on(Xd,a),this.tech_.on("canplay",n),this.tech_.one("play",i),this.dispose=()=>{this.clearSeekingAppendCheck_(),this.logger_("dispose"),this.tech_.off("waiting",s),this.tech_.off(Xd,a),this.tech_.off("canplay",n),this.tech_.off("play",i),this.tech_.off("seeking",this.watchForBadSeeking_),this.tech_.off("seeked",this.clearSeekingAppendCheck_),l.forEach(m=>{o[`${m}SegmentLoader_`].off("appendsdone",c[m].updateend),o[`${m}SegmentLoader_`].off("playlistupdate",c[m].reset),this.tech_.off(["seeked","seeking"],c[m].reset)}),this.checkCurrentTimeTimeout_&&G.clearTimeout(this.checkCurrentTimeTimeout_),this.resetTimeUpdate_()}}monitorCurrentTime_(){this.checkCurrentTime_(),this.checkCurrentTimeTimeout_&&G.clearTimeout(this.checkCurrentTimeTimeout_),this.checkCurrentTimeTimeout_=G.setTimeout(this.monitorCurrentTime_.bind(this),250)}resetSegmentDownloads_(e){const i=this.playlistController_[`${e}SegmentLoader_`];this[`${e}StalledDownloads_`]>0&&this.logger_(`resetting possible stalled download count for ${e} loader`),this[`${e}StalledDownloads_`]=0,this[`${e}Buffered_`]=i.buffered_()}checkSegmentDownloads_(e){const i=this.playlistController_,n=i[`${e}SegmentLoader_`],s=n.buffered_(),a=n3(this[`${e}Buffered_`],s);if(this[`${e}Buffered_`]=s,a){const o={bufferedRanges:s};i.trigger({type:"bufferedrangeschanged",metadata:o}),this.resetSegmentDownloads_(e);return}this[`${e}StalledDownloads_`]++,this.logger_(`found #${this[`${e}StalledDownloads_`]} ${e} appends that did not increase buffer (possible stalled download)`,{playlistId:n.playlist_&&n.playlist_.id,buffered:In(s)}),!(this[`${e}StalledDownloads_`]<10)&&(this.logger_(`${e} loader stalled download exclusion`),this.resetSegmentDownloads_(e),this.tech_.trigger({type:"usage",name:`vhs-${e}-download-exclusion`}),e!=="subtitle"&&i.excludePlaylist({error:{message:`Excessive ${e} segment downloading detected.`},playlistExclusionDuration:1/0}))}checkCurrentTime_(){if(this.tech_.paused()||this.tech_.seeking())return;const e=this.tech_.currentTime(),i=this.tech_.buffered();if(this.lastRecordedTime===e&&(!i.length||e+zi>=i.end(i.length-1)))return this.techWaiting_();if(this.consecutiveUpdates>=5&&e===this.lastRecordedTime)this.consecutiveUpdates++,this.waiting_();else if(e===this.lastRecordedTime)this.consecutiveUpdates++;else{this.playedRanges_.push(Mt([this.lastRecordedTime,e]));const n={playedRanges:this.playedRanges_};this.playlistController_.trigger({type:"playedrangeschanged",metadata:n}),this.consecutiveUpdates=0,this.lastRecordedTime=e}}resetTimeUpdate_(){this.consecutiveUpdates=0}fixesBadSeeks_(){if(!this.tech_.seeking())return!1;const i=this.seekable(),n=this.tech_.currentTime(),s=this.afterSeekableWindow_(i,n,this.media(),this.allowSeeksWithinUnsafeLiveWindow);let a;if(s&&(a=i.end(i.length-1)),this.beforeSeekableWindow_(i,n)){const k=i.start(0);a=k+(k===i.end(0)?0:zi)}if(typeof a<"u")return this.logger_(`Trying to seek outside of seekable at time ${n} with seekable range ${lf(i)}. Seeking to ${a}.`),this.tech_.setCurrentTime(a),!0;const o=this.playlistController_.sourceUpdater_,l=this.tech_.buffered(),c=o.audioBuffer?o.audioBuffered():null,d=o.videoBuffer?o.videoBuffered():null,m=this.media(),g=m.partTargetDuration?m.partTargetDuration:(m.targetDuration-$i)*2,C=[c,d];for(let k=0;k<C.length;k++){if(!C[k])continue;if(ou(C[k],n)<g)return!1}const b=Fs(l,n);return b.length===0?!1:(a=b.start(0)+zi,this.logger_(`Buffered region starts (${b.start(0)}) just beyond seek point (${n}). Seeking to ${a}.`),this.tech_.setCurrentTime(a),!0)}waiting_(){if(this.techWaiting_())return;const e=this.tech_.currentTime(),i=this.tech_.buffered(),n=Gn(i,e);if(n.length&&e+3<=n.end(0)){this.resetTimeUpdate_(),this.tech_.setCurrentTime(e),this.logger_(`Stopped at ${e} while inside a buffered region [${n.start(0)} -> ${n.end(0)}]. Attempting to resume playback by seeking to the current time.`),this.tech_.trigger({type:"usage",name:"vhs-unknown-waiting"});return}}techWaiting_(){const e=this.seekable(),i=this.tech_.currentTime();if(this.tech_.seeking())return!0;if(this.beforeSeekableWindow_(e,i)){const l=e.end(e.length-1);return this.logger_(`Fell out of live window at time ${i}. Seeking to live point (seekable end) ${l}`),this.resetTimeUpdate_(),this.tech_.setCurrentTime(l),this.tech_.trigger({type:"usage",name:"vhs-live-resync"}),!0}const n=this.tech_.vhs.playlistController_.sourceUpdater_,s=this.tech_.buffered();if(this.videoUnderflow_({audioBuffered:n.audioBuffered(),videoBuffered:n.videoBuffered(),currentTime:i}))return this.resetTimeUpdate_(),this.tech_.setCurrentTime(i),this.tech_.trigger({type:"usage",name:"vhs-video-underflow"}),!0;const o=Fs(s,i);return o.length>0?(this.logger_(`Stopped at ${i} and seeking to ${o.start(0)}`),this.resetTimeUpdate_(),this.skipTheGap_(i),!0):!1}afterSeekableWindow_(e,i,n,s=!1){if(!e.length)return!1;let a=e.end(e.length-1)+zi;const o=!n.endList,l=typeof n.partTargetDuration=="number";return o&&(l||s)&&(a=e.end(e.length-1)+n.targetDuration*3),i>a}beforeSeekableWindow_(e,i){return!!(e.length&&e.start(0)>0&&i<e.start(0)-this.liveRangeSafeTimeDelta)}videoUnderflow_({videoBuffered:e,audioBuffered:i,currentTime:n}){if(!e)return;let s;if(e.length&&i.length){const a=Gn(e,n-3),o=Gn(e,n),l=Gn(i,n);l.length&&!o.length&&a.length&&(s={start:a.end(0),end:l.end(0)})}else Fs(e,n).length||(s=this.gapFromVideoUnderflow_(e,n));return s?(this.logger_(`Encountered a gap in video from ${s.start} to ${s.end}. Seeking to current time ${n}`),!0):!1}skipTheGap_(e){const i=this.tech_.buffered(),n=this.tech_.currentTime(),s=Fs(i,n);if(this.resetTimeUpdate_(),s.length===0||n!==e)return;this.logger_("skipTheGap_:","currentTime:",n,"scheduled currentTime:",e,"nextRange start:",s.start(0)),this.tech_.setCurrentTime(s.start(0)+$i);const a={gapInfo:{from:n,to:s.start(0)}};this.playlistController_.trigger({type:"gapjumped",metadata:a}),this.tech_.trigger({type:"usage",name:"vhs-gap-skip"})}gapFromVideoUnderflow_(e,i){const n=e3(e);for(let s=0;s<n.length;s++){const a=n.start(s),o=n.end(s);if(i-a<4&&i-a>2)return{start:a,end:o}}return null}}const _T={errorInterval:30,getSource(r){const i=this.tech({IWillNotUseThisInPlugins:!0}).currentSource_||this.currentSource();return r(i)}},Zf=function(r,e){let i=0,n=0;const s=at(_T,e);r.ready(()=>{r.trigger({type:"usage",name:"vhs-error-reload-initialized"})});const a=function(){n&&r.currentTime(n)},o=function(m){m!=null&&(n=r.duration()!==1/0&&r.currentTime()||0,r.one("loadedmetadata",a),r.src(m),r.trigger({type:"usage",name:"vhs-error-reload"}),r.play())},l=function(){if(Date.now()-i<s.errorInterval*1e3){r.trigger({type:"usage",name:"vhs-error-reload-canceled"});return}if(!s.getSource||typeof s.getSource!="function"){ae.log.error("ERROR: reloadSourceOnError - The option getSource must be a function!");return}return i=Date.now(),s.getSource.call(r,o)},c=function(){r.off("loadedmetadata",a),r.off("error",l),r.off("dispose",c)},d=function(m){c(),Zf(r,m)};r.on("error",l),r.on("dispose",c),r.reloadSourceOnError=d},bT=function(r){Zf(this,r)};var ep="3.17.3",TT="7.1.0",xT="1.3.1",CT="7.2.0",ST="4.0.2";const yt={PlaylistLoader:Wn,Playlist:li,utils:V3,STANDARD_PLAYLIST_SELECTOR:Pd,INITIAL_PLAYLIST_SELECTOR:gb,lastBandwidthSelector:Pd,movingAverageBandwidthSelector:pb,comparePlaylistBandwidth:hu,comparePlaylistResolution:fb,xhr:wf()};Object.keys(Bt).forEach(r=>{Object.defineProperty(yt,r,{get(){return ae.log.warn(`using Vhs.${r} is UNSAFE be sure you know what you are doing`),Bt[r]},set(e){if(ae.log.warn(`using Vhs.${r} is UNSAFE be sure you know what you are doing`),typeof e!="number"||e<0){ae.log.warn(`value of Vhs.${r} must be greater than or equal to 0`);return}Bt[r]=e}})});const tp="videojs-vhs",ip=function(r,e){const i=e.media();let n=-1;for(let s=0;s<r.length;s++)if(r[s].id===i.id){n=s;break}r.selectedIndex_=n,r.trigger({selectedIndex:n,type:"change"})},ET=function(r,e){e.representations().forEach(i=>{r.addQualityLevel(i)}),ip(r,e.playlists)};yt.canPlaySource=function(){return ae.log.warn("VHS is no longer a tech. Please remove it from your player's techOrder.")};const kT=(r,e,i)=>{if(!r)return r;let n={};e&&e.attributes&&e.attributes.CODECS&&(n=as(qi(e.attributes.CODECS))),i&&i.attributes&&i.attributes.CODECS&&(n.audio=i.attributes.CODECS);const s=rr(n.video),a=rr(n.audio),o={};for(const l in r)o[l]={},a&&(o[l].audioContentType=a),s&&(o[l].videoContentType=s),e.contentProtection&&e.contentProtection[l]&&e.contentProtection[l].pssh&&(o[l].pssh=e.contentProtection[l].pssh),typeof r[l]=="string"&&(o[l].url=r[l]);return at(r,o)},wT=(r,e)=>r.reduce((i,n)=>{if(!n.contentProtection)return i;const s=e.reduce((a,o)=>{const l=n.contentProtection[o];return l&&l.pssh&&(a[o]={pssh:l.pssh}),a},{});return Object.keys(s).length&&i.push(s),i},[]),DT=({player:r,sourceKeySystems:e,audioMedia:i,mainPlaylists:n})=>{if(!r.eme.initializeMediaKeys)return Promise.resolve();const s=i?n.concat([i]):n,a=wT(s,Object.keys(e)),o=[],l=[];return a.forEach(c=>{l.push(new Promise((d,m)=>{r.tech_.one("keysessioncreated",d)})),o.push(new Promise((d,m)=>{r.eme.initializeMediaKeys({keySystems:c},g=>{if(g){m(g);return}d()})}))}),Promise.race([Promise.all(o),Promise.race(l)])},VT=({player:r,sourceKeySystems:e,media:i,audioMedia:n})=>{const s=kT(e,i,n);return s?(r.currentSource().keySystems=s,s&&!r.eme?(ae.log.warn("DRM encrypted source cannot be decrypted without a DRM plugin"),!1):!0):!1},np=()=>{if(!G.localStorage)return null;const r=G.localStorage.getItem(tp);if(!r)return null;try{return JSON.parse(r)}catch{return null}},AT=r=>{if(!G.localStorage)return!1;let e=np();e=e?at(e,r):r;try{G.localStorage.setItem(tp,JSON.stringify(e))}catch{return!1}return e},IT=r=>r.toLowerCase().indexOf("data:application/vnd.videojs.vhs+json,")===0?JSON.parse(r.substring(r.indexOf(",")+1)):r,rp=(r,e)=>{r._requestCallbackSet||(r._requestCallbackSet=new Set),r._requestCallbackSet.add(e)},sp=(r,e)=>{r._responseCallbackSet||(r._responseCallbackSet=new Set),r._responseCallbackSet.add(e)},ap=(r,e)=>{r._requestCallbackSet&&(r._requestCallbackSet.delete(e),r._requestCallbackSet.size||delete r._requestCallbackSet)},op=(r,e)=>{r._responseCallbackSet&&(r._responseCallbackSet.delete(e),r._responseCallbackSet.size||delete r._responseCallbackSet)};yt.supportsNativeHls=(function(){if(!be||!be.createElement)return!1;const r=be.createElement("video");return ae.getTech("Html5").isSupported()?["application/vnd.apple.mpegurl","audio/mpegurl","audio/x-mpegurl","application/x-mpegurl","video/x-mpegurl","video/mpegurl","application/mpegurl"].some(function(i){return/maybe|probably/i.test(r.canPlayType(i))}):!1})();yt.supportsNativeDash=(function(){return!be||!be.createElement||!ae.getTech("Html5").isSupported()?!1:/maybe|probably/i.test(be.createElement("video").canPlayType("application/dash+xml"))})();yt.supportsTypeNatively=r=>r==="hls"?yt.supportsNativeHls:r==="dash"?yt.supportsNativeDash:!1;yt.isSupported=function(){return ae.log.warn("VHS is no longer a tech. Please remove it from your player's techOrder.")};yt.xhr.onRequest=function(r){rp(yt.xhr,r)};yt.xhr.onResponse=function(r){sp(yt.xhr,r)};yt.xhr.offRequest=function(r){ap(yt.xhr,r)};yt.xhr.offResponse=function(r){op(yt.xhr,r)};const NT=ae.getComponent("Component");class lp extends NT{constructor(e,i,n){if(super(i,n.vhs),typeof n.initialBandwidth=="number"&&(this.options_.bandwidth=n.initialBandwidth),this.logger_=Ei("VhsHandler"),i.options_&&i.options_.playerId){const s=ae.getPlayer(i.options_.playerId);this.player_=s}if(this.tech_=i,this.source_=e,this.stats={},this.ignoreNextSeekingEvent_=!1,this.setOptions_(),this.options_.overrideNative&&i.overrideNativeAudioTracks&&i.overrideNativeVideoTracks)i.overrideNativeAudioTracks(!0),i.overrideNativeVideoTracks(!0);else if(this.options_.overrideNative&&(i.featuresNativeVideoTracks||i.featuresNativeAudioTracks))throw new Error("Overriding native VHS requires emulated tracks. See https://git.io/vMpjB");this.on(be,["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],s=>{const a=be.fullscreenElement||be.webkitFullscreenElement||be.mozFullScreenElement||be.msFullscreenElement;a&&a.contains(this.tech_.el())?this.playlistController_.fastQualityChange_():this.playlistController_.checkABR_()}),this.on(this.tech_,"seeking",function(){if(this.ignoreNextSeekingEvent_){this.ignoreNextSeekingEvent_=!1;return}this.setCurrentTime(this.tech_.currentTime())}),this.on(this.tech_,"error",function(){this.tech_.error()&&this.playlistController_&&this.playlistController_.pauseLoading()}),this.on(this.tech_,"play",this.play)}setOptions_(e={}){if(this.options_=at(this.options_,e),this.options_.withCredentials=this.options_.withCredentials||!1,this.options_.limitRenditionByPlayerDimensions=this.options_.limitRenditionByPlayerDimensions!==!1,this.options_.useDevicePixelRatio=this.options_.useDevicePixelRatio||!1,this.options_.usePlayerObjectFit=this.options_.usePlayerObjectFit||!1,this.options_.useBandwidthFromLocalStorage=typeof this.source_.useBandwidthFromLocalStorage<"u"?this.source_.useBandwidthFromLocalStorage:this.options_.useBandwidthFromLocalStorage||!1,this.options_.useForcedSubtitles=this.options_.useForcedSubtitles||!1,this.options_.useNetworkInformationApi=typeof this.options_.useNetworkInformationApi<"u"?this.options_.useNetworkInformationApi:!0,this.options_.useDtsForTimestampOffset=this.options_.useDtsForTimestampOffset||!1,this.options_.customTagParsers=this.options_.customTagParsers||[],this.options_.customTagMappers=this.options_.customTagMappers||[],this.options_.cacheEncryptionKeys=this.options_.cacheEncryptionKeys||!1,this.options_.llhls=this.options_.llhls!==!1,this.options_.bufferBasedABR=this.options_.bufferBasedABR||!1,typeof this.options_.playlistExclusionDuration!="number"&&(this.options_.playlistExclusionDuration=60),typeof this.options_.bandwidth!="number"&&this.options_.useBandwidthFromLocalStorage){const n=np();n&&n.bandwidth&&(this.options_.bandwidth=n.bandwidth,this.tech_.trigger({type:"usage",name:"vhs-bandwidth-from-local-storage"})),n&&n.throughput&&(this.options_.throughput=n.throughput,this.tech_.trigger({type:"usage",name:"vhs-throughput-from-local-storage"}))}typeof this.options_.bandwidth!="number"&&(this.options_.bandwidth=Bt.INITIAL_BANDWIDTH),this.options_.enableLowInitialPlaylist=this.options_.enableLowInitialPlaylist&&this.options_.bandwidth===Bt.INITIAL_BANDWIDTH,["withCredentials","useDevicePixelRatio","usePlayerObjectFit","customPixelRatio","limitRenditionByPlayerDimensions","bandwidth","customTagParsers","customTagMappers","cacheEncryptionKeys","playlistSelector","initialPlaylistSelector","bufferBasedABR","liveRangeSafeTimeDelta","llhls","useForcedSubtitles","useNetworkInformationApi","useDtsForTimestampOffset","exactManifestTimings","leastPixelDiffSelector"].forEach(n=>{typeof this.source_[n]<"u"&&(this.options_[n]=this.source_[n])}),this.limitRenditionByPlayerDimensions=this.options_.limitRenditionByPlayerDimensions,this.useDevicePixelRatio=this.options_.useDevicePixelRatio,this.usePlayerObjectFit=this.options_.usePlayerObjectFit;const i=this.options_.customPixelRatio;typeof i=="number"&&i>=0&&(this.customPixelRatio=i)}setOptions(e={}){this.setOptions_(e)}src(e,i){if(!e)return;this.setOptions_(),this.options_.src=IT(this.source_.src),this.options_.tech=this.tech_,this.options_.externVhs=yt,this.options_.sourceType=Dh(i),this.options_.seekTo=a=>{this.tech_.setCurrentTime(a)},this.options_.player_=this.player_,this.playlistController_=new pT(this.options_);const n=at({liveRangeSafeTimeDelta:zi},this.options_,{seekable:()=>this.seekable(),media:()=>this.playlistController_.media(),playlistController:this.playlistController_});this.playbackWatcher_=new yT(n),this.attachStreamingEventListeners_(),this.playlistController_.on("error",()=>{const a=ae.players[this.tech_.options_.playerId];let o=this.playlistController_.error;typeof o=="object"&&!o.code?o.code=3:typeof o=="string"&&(o={message:o,code:3}),a.error(o)});const s=this.options_.bufferBasedABR?yt.movingAverageBandwidthSelector(.55):yt.STANDARD_PLAYLIST_SELECTOR;this.playlistController_.selectPlaylist=this.selectPlaylist?this.selectPlaylist.bind(this):s.bind(this),this.playlistController_.selectInitialPlaylist=yt.INITIAL_PLAYLIST_SELECTOR.bind(this),this.playlists=this.playlistController_.mainPlaylistLoader_,this.mediaSource=this.playlistController_.mediaSource,Object.defineProperties(this,{selectPlaylist:{get(){return this.playlistController_.selectPlaylist},set(a){this.playlistController_.selectPlaylist=a.bind(this)}},throughput:{get(){return this.playlistController_.mainSegmentLoader_.throughput.rate},set(a){this.playlistController_.mainSegmentLoader_.throughput.rate=a,this.playlistController_.mainSegmentLoader_.throughput.count=1}},bandwidth:{get(){let a=this.playlistController_.mainSegmentLoader_.bandwidth;const o=G.navigator.connection||G.navigator.mozConnection||G.navigator.webkitConnection,l=1e7;if(this.options_.useNetworkInformationApi&&o){const c=o.downlink*1e3*1e3;c>=l&&a>=l?a=Math.max(a,c):a=c}return a},set(a){this.playlistController_.mainSegmentLoader_.bandwidth=a,this.playlistController_.mainSegmentLoader_.throughput={rate:0,count:0}}},systemBandwidth:{get(){const a=1/(this.bandwidth||1);let o;return this.throughput>0?o=1/this.throughput:o=0,Math.floor(1/(a+o))},set(){ae.log.error('The "systemBandwidth" property is read-only')}}}),this.options_.bandwidth&&(this.bandwidth=this.options_.bandwidth),this.options_.throughput&&(this.throughput=this.options_.throughput),Object.defineProperties(this.stats,{bandwidth:{get:()=>this.bandwidth||0,enumerable:!0},mediaRequests:{get:()=>this.playlistController_.mediaRequests_()||0,enumerable:!0},mediaRequestsAborted:{get:()=>this.playlistController_.mediaRequestsAborted_()||0,enumerable:!0},mediaRequestsTimedout:{get:()=>this.playlistController_.mediaRequestsTimedout_()||0,enumerable:!0},mediaRequestsErrored:{get:()=>this.playlistController_.mediaRequestsErrored_()||0,enumerable:!0},mediaTransferDuration:{get:()=>this.playlistController_.mediaTransferDuration_()||0,enumerable:!0},mediaBytesTransferred:{get:()=>this.playlistController_.mediaBytesTransferred_()||0,enumerable:!0},mediaSecondsLoaded:{get:()=>this.playlistController_.mediaSecondsLoaded_()||0,enumerable:!0},mediaAppends:{get:()=>this.playlistController_.mediaAppends_()||0,enumerable:!0},mainAppendsToLoadedData:{get:()=>this.playlistController_.mainAppendsToLoadedData_()||0,enumerable:!0},audioAppendsToLoadedData:{get:()=>this.playlistController_.audioAppendsToLoadedData_()||0,enumerable:!0},appendsToLoadedData:{get:()=>this.playlistController_.appendsToLoadedData_()||0,enumerable:!0},timeToLoadedData:{get:()=>this.playlistController_.timeToLoadedData_()||0,enumerable:!0},buffered:{get:()=>In(this.tech_.buffered()),enumerable:!0},currentTime:{get:()=>this.tech_.currentTime(),enumerable:!0},currentSource:{get:()=>this.tech_.currentSource_,enumerable:!0},currentTech:{get:()=>this.tech_.name_,enumerable:!0},duration:{get:()=>this.tech_.duration(),enumerable:!0},main:{get:()=>this.playlists.main,enumerable:!0},playerDimensions:{get:()=>this.tech_.currentDimensions(),enumerable:!0},seekable:{get:()=>In(this.tech_.seekable()),enumerable:!0},timestamp:{get:()=>Date.now(),enumerable:!0},videoPlaybackQuality:{get:()=>this.tech_.getVideoPlaybackQuality(),enumerable:!0}}),this.tech_.one("canplay",this.playlistController_.setupFirstPlay.bind(this.playlistController_)),this.tech_.on("bandwidthupdate",()=>{this.options_.useBandwidthFromLocalStorage&&AT({bandwidth:this.bandwidth,throughput:Math.round(this.throughput)})}),this.playlistController_.on("selectedinitialmedia",()=>{vT(this)}),this.playlistController_.sourceUpdater_.on("createdsourcebuffers",()=>{this.setupEme_()}),this.on(this.playlistController_,"progress",function(){this.tech_.trigger("progress")}),this.on(this.playlistController_,"firstplay",function(){this.ignoreNextSeekingEvent_=!0}),this.setupQualityLevels_(),this.tech_.el()&&(this.mediaSourceUrl_=G.URL.createObjectURL(this.playlistController_.mediaSource),(ae.browser.IS_ANY_SAFARI||ae.browser.IS_IOS)&&this.options_.overrideNative&&this.options_.sourceType==="hls"&&typeof this.tech_.addSourceElement=="function"?(this.tech_.addSourceElement(this.mediaSourceUrl_),this.tech_.addSourceElement(this.source_.src)):this.tech_.src(this.mediaSourceUrl_))}createKeySessions_(){const e=this.playlistController_.mediaTypes_.AUDIO.activePlaylistLoader;this.logger_("waiting for EME key session creation"),DT({player:this.player_,sourceKeySystems:this.source_.keySystems,audioMedia:e&&e.media(),mainPlaylists:this.playlists.main.playlists}).then(()=>{this.logger_("created EME key session"),this.playlistController_.sourceUpdater_.initializedEme()}).catch(i=>{this.logger_("error while creating EME key session",i),this.player_.error({message:"Failed to initialize media keys for EME",code:3})})}handleWaitingForKey_(){this.logger_("waitingforkey fired, attempting to create any new key sessions"),this.createKeySessions_()}setupEme_(){const e=this.playlistController_.mediaTypes_.AUDIO.activePlaylistLoader,i=VT({player:this.player_,sourceKeySystems:this.source_.keySystems,media:this.playlists.media(),audioMedia:e&&e.media()});if(this.player_.tech_.on("keystatuschange",n=>{this.playlistController_.updatePlaylistByKeyStatus(n.keyId,n.status)}),this.handleWaitingForKey_=this.handleWaitingForKey_.bind(this),this.player_.tech_.on("waitingforkey",this.handleWaitingForKey_),!i){this.playlistController_.sourceUpdater_.initializedEme();return}this.createKeySessions_()}setupQualityLevels_(){const e=ae.players[this.tech_.options_.playerId];!e||!e.qualityLevels||this.qualityLevels_||(this.qualityLevels_=e.qualityLevels(),this.playlistController_.on("selectedinitialmedia",()=>{ET(this.qualityLevels_,this)}),this.playlists.on("mediachange",()=>{ip(this.qualityLevels_,this.playlists)}))}static version(){return{"@videojs/http-streaming":ep,"mux.js":TT,"mpd-parser":xT,"m3u8-parser":CT,"aes-decrypter":ST}}version(){return this.constructor.version()}canChangeType(){return Yf.canChangeType()}play(){this.playlistController_.play()}setCurrentTime(e){this.playlistController_.setCurrentTime(e)}duration(){return this.playlistController_.duration()}seekable(){return this.playlistController_.seekable()}dispose(){this.playbackWatcher_&&this.playbackWatcher_.dispose(),this.playlistController_&&this.playlistController_.dispose(),this.qualityLevels_&&this.qualityLevels_.dispose(),this.tech_&&this.tech_.vhs&&delete this.tech_.vhs,this.mediaSourceUrl_&&G.URL.revokeObjectURL&&(G.URL.revokeObjectURL(this.mediaSourceUrl_),this.mediaSourceUrl_=null),this.tech_&&this.tech_.off("waitingforkey",this.handleWaitingForKey_),super.dispose()}convertToProgramTime(e,i){return L3({playlist:this.playlistController_.media(),time:e,callback:i})}seekToProgramTime(e,i,n=!0,s=2){return Nf({programTime:e,playlist:this.playlistController_.media(),retryCount:s,pauseAfterSeek:n,seekTo:this.options_.seekTo,tech:this.options_.tech,callback:i})}setupXhrHooks_(){this.xhr.onRequest=e=>{rp(this.xhr,e)},this.xhr.onResponse=e=>{sp(this.xhr,e)},this.xhr.offRequest=e=>{ap(this.xhr,e)},this.xhr.offResponse=e=>{op(this.xhr,e)},this.player_.trigger("xhr-hooks-ready")}attachStreamingEventListeners_(){const e=["seekablerangeschanged","bufferedrangeschanged","contentsteeringloadstart","contentsteeringloadcomplete","contentsteeringparsed"],i=["gapjumped","playedrangeschanged"];e.forEach(n=>{this.playlistController_.on(n,s=>{this.player_.trigger(St({},s))})}),i.forEach(n=>{this.playbackWatcher_.on(n,s=>{this.player_.trigger(St({},s))})})}}const ba={name:"videojs-http-streaming",VERSION:ep,canHandleSource(r,e={}){const i=at(ae.options,e);return!i.vhs.experimentalUseMMS&&!Yr("avc1.4d400d,mp4a.40.2",!1)?!1:ba.canPlayType(r.type,i)},handleSource(r,e,i={}){const n=at(ae.options,i);return e.vhs=new lp(r,e,n),e.vhs.xhr=wf(),e.vhs.setupXhrHooks_(),e.vhs.src(r.src,r.type),e.vhs},canPlayType(r,e){const i=Dh(r);if(!i)return"";const n=ba.getOverrideNative(e);return!yt.supportsTypeNatively(i)||n?"maybe":""},getOverrideNative(r={}){const{vhs:e={}}=r,i=!(ae.browser.IS_ANY_SAFARI||ae.browser.IS_IOS),{overrideNative:n=i}=e;return n}},PT=()=>Yr("avc1.4d400d,mp4a.40.2",!0);PT()&&ae.getTech("Html5").registerSourceHandler(ba,0);ae.VhsHandler=lp;ae.VhsSourceHandler=ba;ae.Vhs=yt;ae.use||ae.registerComponent("Vhs",yt);ae.options.vhs=ae.options.vhs||{};(!ae.getPlugin||!ae.getPlugin("reloadSourceOnError"))&&ae.registerPlugin("reloadSourceOnError",bT);const OT="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAB4AAAAQ4AQMAAADSHVMAAAAAAXNSR0IB2cksfwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAANQTFRFAAAAp3o92gAAAAF0Uk5TAEDm2GYAAASYSURBVHic7c8BDQAgDMAw7t80Lk5SVgXbnM/M64BtDesa1jWsa1jXsK5hXcO6hnUN6xrWNaxrWNewrmFdw7qGdQ3rGtY1rGtY17CuYV3DuoZ1Desa1jWsa1jXsK5hXcO6hnUN6xrWNaxrWNewrmFdw7qGdQ3rGtY1rGtY17CuYV3DuoZ1Desa1jWsa1jXsK5hXcO6hnUN6xrWNaxrWNewrmFdw7qGdQ3rGtY1rGtY17CuYV3DuoZ1Desa1jWsa1jXsK5hXcO6hnUN6xrWNaxrWNewrmFdw7qGdQ3rGtY1rGtY17CuYV3DuoZ1Desa1jWsa1jXsK5hXcO6hnUN6xrWNaxrWNewrmFdw7qGdQ3rGtY1rGtY17CuYV3DuoZ1Desa1jWsa1jXsK5hXcO6hnUN6xrWNaxrWNewrmFdw7qGdQ3rGtY1rGtY17CuYV3DuoZ1Desa1jWsa1jXsK5hXcO6hnUN6xrWNaxrWNewrmFdw7qGdQ3rGtY1rGtY17CuYV3DuoZ1Desa1jWsa1jXsK5hXcO6hnUN6xrWNaxrWNewrmFdw7qGdQ3rGtY1rGtY17CuYV3DuoZ1Desa1jWsa1jXsK5hXcO6hnUN6xrWNaxrWNewrmFdw7qGdQ3rGtY1rGtY17CuYV3DuoZ1Desa1jWsa1jXsK5hXcO6hnUN6xrWNaxrWNewrmFdw7qGdQ3rGtY1rGtY17CuYV3DuoZ1Desa1jWsa1jXsK5hXcO6hnUN6xrWNaxrWNewrmFdw7qGdQ3rGtY1rGtY17CuYV3DuoZ1Desa1jWsa1jXsK5hXcO6hnUN6xrWNaxrWNewrmFdw7qGdQ3rGtY1rGtY17CuYV3DuoZ1Desa1jWsa1jXsK5hXcO6hnUN6xrWNaxrWNewrmFdw7qGdQ3rGtY1rGtY17CuYV3DuoZ1Desa1jWsa1jXsK5hXcO6hnUN6xrWNaxrWNewrmFdw7qGdQ3rGtY1rGtY17CuYV3DuoZ1Desa1jWsa1jXsK5hXcO6hnUN6xrWNaxrWNewrmFdw7qGdQ3rGtY1rGtY17CuYV3DuoZ1Desa1jWsa1jXsK5hXcO6hnUN6xrWNaxrWNewrmFdw7qGdQ3rGtY1rGtY17CuYV3DuoZ1Desa1jWsa1jXsK5hXcO6hnUN6xrWNaxrWNewrmFdw7qGdQ3rGtY1rGtY17CuYV3DuoZ1Desa1jWsa1jXsK5hXcO6hnUN6xrWNaxrWNewrmFdw7qGdQ3rGtY1rGtY17CuYV3DuoZ1Desa1jWsa1jXsK5hXcO6hnUN6xrWNaxrWNewrmFdw7qGdQ3rGtY1rGtY17CuYV3DuoZ1Desa1jWsa1jXsK5hXcO6hnUN6xrWNaxrWNewrmFdw7qGdQ3rGtY1rGtY17CuYV3DuoZ1Desa1jWsa1jXsK5hXcO6hnUN6xrWNaxrWNewrmFdw7qGdQ3rGtY1rGtY17CuYV3DuoZ1Desa1jWsa1jXsK5hXcO6hnUN6xrWNaxrWNewrmFdw7qGdQ3rGtY1rGtY17CuYV3DuoZ1Desa1jWsa1jXsK5hXcO6hnUN6xrWNay7Fz0EOVPDeGwAAAAASUVORK5CYII=",BT={class:"o-meeting-playback-video"},LT={key:0,class:"poster-title"},MT=t.defineComponent({__name:"OMeetingPlaybackVideo",props:{src:{default:""},vtt:{default:""},captions:{default:()=>[]},poster:{},posterTitle:{},instance:{},trackIdx:{}},emits:["getDuration","getInstance","setTrackIdx"],setup(r,{expose:e,emit:i}){const n=r,s=t.ref(),a=t.ref(),o=t.ref(),l=i,c=t.ref(!1),d=()=>{c.value=!1},m=(v,T=!1)=>{var w,$;const E=n.instance;if(!E)return;const I=(w=v.activeCues)==null?void 0:w[0];if(s.value&&clearInterval(s.value),I){I.text=(($=I==null?void 0:I.text)==null?void 0:$.replace(/\[(SPEAKER_)\d+]: /g,""))||"";const q=I.text.split(`
224
- `),z=q.length,N=I.endTime-I.startTime,U=parseFloat((N/z).toFixed(3));let x=0;if(T){const F=(E.currentTime()-I.startTime)/(I.endTime-I.startTime);for(;(x+1)/z<F;)x++}x<z?I.text=q.length?q[x]:I==null?void 0:I.text:I.text=q.length?q[0]:I==null?void 0:I.text;let D=U*1e3;const B=()=>{s.value=setInterval(()=>{v.mode="hidden",x++,x>q.length-1?clearInterval(s.value):x===q.length-1?(I.text=q[x],clearInterval(s.value),D=U*(z-x)*1e3,B()):I.text=q[x],v.mode="showing"},D)};B()}},g=t.ref([]);t.watch(()=>g.value,v=>{const T=n.instance;if(T){const E=T.textTracks();for(let I=0;I<E.length;I++)E[I].kind==="subtitles"&&(m(E[I],!0),E[I].mode=v.length?"showing":"hidden")}},{deep:!0});const C=t.ref(!1),b=t.ref("init"),k=async()=>{if(!n.src)return;const v=ae("playerId",{controls:!0,autoplay:!1,preload:"auto",fluid:!0,poster:n.poster||OT,playbackRates:[.5,.75,1,1.25,1.5,2],controlBar:{skipButtons:{backward:5,forward:5},children:{playToggle:!0,SkipBackward:{backward:5},skipForward:{forward:5},currentTimeDisplay:!0,timeDivider:!0,durationDisplay:!0,progressControl:!0,PlaybackRateMenuButton:!0,volumePanel:{inline:!1},FullscreenToggle:!0}}});l("getInstance",v),v.src(n.src),v.addRemoteTextTrack({kind:"subtitles",src:n.vtt,srclang:"zh",label:"中文",default:!1}),C.value=!0;class T extends ae.getComponent("Button"){constructor(w,$){super(w,$),this.addClass("vjs-subtitle-toggle-button","vjs-subtitle-hidden"),this.controlText("Toggle Subtitles")}buildCSSClass(){return`vjs-subtitle-toggle-button ${super.buildCSSClass()}`}handleClick(){const w=this.player().textTracks();for(let $=0;$<w.length;$++)w[$].kind==="subtitles"&&(m(w[$],!0),w[$].mode=w[$].mode==="showing"?"hidden":"showing",w[$].mode==="showing"?(this.removeClass("vjs-subtitle-hidden"),this.addClass("vjs-subtitle-showing")):(this.removeClass("vjs-subtitle-showing"),this.addClass("vjs-subtitle-hidden")))}}n.vtt&&(ae.registerComponent("SubtitleToggleButton",T),v.controlBar.children_.some(I=>I.name_==="SubtitleToggleButton")||v.controlBar.addChild("SubtitleToggleButton",{},8)),(v==null?void 0:v.textTracks().tracks_).forEach(I=>{I==null||I.addEventListener("cuechange",()=>{m(I)})}),v.on("play",()=>{b.value="playing"}),v.on("timeupdate",()=>{const I=v.currentTime()||0,w=n.captions.findIndex($=>Qo($.start_time)>I);l("setTrackIdx",w)}),v.one("loadedmetadata",()=>{l("getDuration",v.duration())}),t.nextTick(()=>{const I=document.getElementsByClassName("o-meeting-playback-video")[0];a.value=I.offsetHeight}),o.value=v};return t.onMounted(()=>{k(),document.addEventListener("click",d)}),t.watch(()=>n.src,()=>{k()}),t.onUnmounted(()=>{var v;(v=n==null?void 0:n.instance)==null||v.dispose(),document.removeEventListener("click",d)}),e({changeTime:v=>{var T;(T=o.value)==null||T.currentTime(v)}}),(v,T)=>(t.openBlock(),t.createElementBlock("div",BT,[t.createElementVNode("div",{class:t.normalizeClass(["video-placeholder",{loaded:C.value,"no-poster":!r.poster,[b.value]:!0}])},[T[0]||(T[0]=t.createElementVNode("video",{class:"video-js",id:"playerId"},null,-1)),r.posterTitle?(t.openBlock(),t.createElementBlock("div",LT,t.toDisplayString(r.posterTitle),1)):t.createCommentVNode("",!0)],2)]))}}),RT={class:"o-meeting-playback"},qT={class:"video-header"},FT={class:"video-title"},UT={class:"video-content"},$T={class:"info-wrapper"},zT={key:0,class:"base-info"},HT={class:"info-item"},XT={class:"info-item"},jT={class:"info-item"},GT={class:"info-item"},WT={key:1,class:"subject-list"},YT={class:"subject-title"},KT={key:0,class:"subject-progress"},QT=["data-start","data-end"],jd=t.defineComponent({__name:"OMeetingPlayback",props:{dates:{default:()=>[]},detail:{default:()=>({})},data:{default:()=>({})}},emits:["change-date"],setup(r,{emit:e}){const i=r,n=e,{t:s}=Xe.useI18n(),a=t.ref(null),o=H=>{a.value=H},l=t.ref(0),c=H=>{l.value=H},d=t.ref([]),m=async H=>{const Z=await(await fetch(H)).json();d.value=(Z.segments||[]).map(se=>{const Q=tg(se.speaker);return{...se,contentHtml:se.content,speakerIdx:Q,speakerLabel:`${s("meeting.speaker")}${Q}`}})},g=t.ref([]),C=H=>s1[H%3],b=t.ref(0),k=H=>{b.value=H},v=t.ref(),T=t.ref(""),E=t.ref([0,0]);function I(H,X){const Z=X.getBoundingClientRect(),Q=(H.clientX-Z.left)/Z.width;return E.value[1]=`${X.offsetTop+X.parentElement.offsetTop}px`,E.value[0]=`${Q*100}%`,Q*b.value}const w=H=>{let X=H;for(;X&&X.className!=="subject-progress";)X=X.parentElement;return X},$=H=>{let X=w(H.target);X&&(T.value=ig(I(H,X)))},q=()=>{T.value=""},z=H=>{var Z;let X=w(H.target);X&&((Z=v.value)==null||Z.changeTime(I(H,X)))},N=async H=>{const Z=await(await fetch(H)).json();g.value=(Z||[]).map(se=>({...se,startTimeNumber:Qo(se.startTime),endTimeNumber:Qo(se.endTime)}))},U=t.ref("info"),x=t.computed(()=>{const H=[{label:s("meeting.baseInfo"),value:"info"}];return g.value.length&&H.push({label:s("meeting.subject"),value:"subject"}),H}),D=()=>{i.data&&(i.data.textJson&&m(i.data.textJson),i.data.topicJson&&N(i.data.topicJson))};t.watchEffect(()=>{D()});const B=H=>{n("change-date",H)},F=t.ref(null),P=t.ref("auto");let L=null,R=null;const te=()=>{F.value&&(P.value=`${F.value.offsetHeight}px`)},ee=()=>{cancelAnimationFrame(R),R=requestAnimationFrame(te)};return t.onMounted(()=>{F.value&&(L=new ResizeObserver(ee),L.observe(F.value),te())}),t.onUnmounted(()=>{cancelAnimationFrame(R),L==null||L.disconnect()}),(H,X)=>{var Z,se,Q,ie;return t.openBlock(),t.createElementBlock("div",RT,[t.createElementVNode("div",{class:"left-card card-wrapper",ref_key:"leftRef",ref:F},[t.createElementVNode("div",qT,[t.createElementVNode("div",FT,t.toDisplayString((Z=r.detail)==null?void 0:Z.topic)+"("+t.toDisplayString((se=r.detail)==null?void 0:se.date)+")",1),(Q=r.dates)!=null&&Q.length?(t.openBlock(),t.createBlock(t.unref(V.OSelect),{key:0,size:"large",clearable:!1,"model-value":(ie=r.detail)==null?void 0:ie.date,placeholder:t.unref(s)("meeting.selectDate"),onChange:B},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.dates,K=>(t.openBlock(),t.createBlock(t.unref(V.OOption),{key:K,value:K,label:K},null,8,["value","label"]))),128))]),_:1},8,["model-value","placeholder"])):t.createCommentVNode("",!0)]),t.createElementVNode("div",UT,[r.data?(t.openBlock(),t.createBlock(MT,{key:0,ref_key:"playerRef",ref:v,src:r.data.video,vtt:r.data.textVtt,poster:r.data.poster,captions:d.value,onGetDuration:k,instance:a.value,onGetInstance:o,trackIdx:l.value,onSetTrackIdx:c},null,8,["src","vtt","poster","captions","instance","trackIdx"])):t.createCommentVNode("",!0)]),t.createElementVNode("div",$T,[t.createVNode(t.unref(V.OTab),{modelValue:U.value,"onUpdate:modelValue":X[0]||(X[0]=K=>U.value=K),"max-show":9999},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(x.value,K=>(t.openBlock(),t.createBlock(t.unref(V.OTabPane),{key:K.value,value:K.value,label:K.label},null,8,["value","label"]))),128))]),_:1},8,["modelValue"]),t.createVNode(t.unref(V.OScroller),{class:t.normalizeClass(["tab-content",`tab-content-${U.value}`]),"show-type":"hover"},{default:t.withCtx(()=>{var K;return[U.value===x.value[0].value?(t.openBlock(),t.createElementBlock("div",zT,[t.createElementVNode("div",HT,[t.createElementVNode("span",null,t.toDisplayString(t.unref(s)("meeting.item1")),1),t.createElementVNode("span",null,t.toDisplayString(r.detail.sponsor),1)]),t.createElementVNode("div",XT,[t.createElementVNode("span",null,t.toDisplayString(t.unref(s)("meeting.item2")),1),t.createElementVNode("span",null,t.toDisplayString(r.detail.groupName),1)]),t.createElementVNode("div",jT,[t.createElementVNode("span",null,t.toDisplayString(t.unref(s)("meeting.item3")),1),t.createElementVNode("span",null,t.toDisplayString(r.detail.date)+"  "+t.toDisplayString(r.detail.start)+"~"+t.toDisplayString(r.detail.end),1)]),t.createElementVNode("div",GT,[t.createElementVNode("span",null,t.toDisplayString(t.unref(s)("meeting.item4")),1),t.createElementVNode("span",null,t.toDisplayString(r.detail.agenda||"-"),1)])])):t.createCommentVNode("",!0),U.value===((K=x.value[1])==null?void 0:K.value)?(t.openBlock(),t.createElementBlock("div",WT,[T.value?(t.openBlock(),t.createElementBlock("div",{key:0,class:"mouse-current-time",style:t.normalizeStyle({top:E.value[1],left:E.value[0]})},t.toDisplayString(T.value),5)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(g.value,(J,le)=>(t.openBlock(),t.createElementBlock("div",{class:"subject-item",key:J.title},[t.createElementVNode("div",YT,t.toDisplayString(J.title),1),b.value?(t.openBlock(),t.createElementBlock("div",KT,[t.createElementVNode("div",{class:"subject-progress-item",onClick:z,onMousemove:$,onMouseleave:q,"data-start":J.startTime,"data-end":J.endTime,style:t.normalizeStyle({"--start":(J.startTimeNumber<0?0:J.startTimeNumber)/b.value,"--end":(J.endTimeNumber>b.value?b.value:J.endTimeNumber)/b.value,background:C(le)})},null,44,QT)])):t.createCommentVNode("",!0)]))),128))])):t.createCommentVNode("",!0)]}),_:1},8,["class"])])],512),t.createElementVNode("div",{class:"right-card card-wrapper",style:t.normalizeStyle({height:P.value})},[t.createVNode(D2,{captions:d.value,trackIdx:l.value,instance:a.value},{empty:t.withCtx(()=>[t.renderSlot(H.$slots,"empty")]),_:3},8,["captions","trackIdx","instance"])],4)])}}}),JT={version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};function ZT(r,e){return t.openBlock(),t.createElementBlock("svg",JT,[...e[0]||(e[0]=[t.createElementVNode("path",{d:"M12.032 2.355c1.632 0 3.205 0.404 4.611 1.166 0.34 0.182 0.466 0.609 0.281 0.949s-0.609 0.463-0.949 0.281c-1.201-0.65-2.546-0.996-3.943-0.996-4.585 0-8.3 3.715-8.3 8.297 0 4.588 3.715 8.303 8.3 8.303s8.3-3.715 8.3-8.303c0-2.063-0.753-4.002-2.098-5.514-0.258-0.287-0.231-0.732 0.059-0.984 0.287-0.258 0.729-0.234 0.987 0.053 1.57 1.764 2.452 4.037 2.452 6.445 0 5.361-4.342 9.703-9.7 9.703s-9.7-4.342-9.7-9.703c0-5.355 4.342-9.697 9.7-9.697zM10.866 7.658c0-0.627 0.507-1.131 1.134-1.131s1.134 0.504 1.134 1.131c0 0.627-0.507 1.131-1.134 1.131s-1.134-0.504-1.134-1.131zM12.706 10.002c-0.044-0.346-0.337-0.609-0.691-0.609-0.387 0-0.7 0.311-0.703 0.697l-0.023 6.762 0.006 0.1c0.044 0.34 0.337 0.603 0.691 0.603 0.387 0.006 0.7-0.311 0.703-0.697l0.023-6.762-0.006-0.094z"},null,-1)])])}const e4={name:"components-icon-tips",render:ZT},t4={class:"o-sig-meeting-aside"},i4={class:"month"},n4={class:"days"},r4=["onClick"],s4={class:"day-d"},a4={class:"day-c"},o4={class:"arrow-wrapper"},zs=1,l4=t.defineComponent({__name:"OMeetingSigAside",props:{data:{},current:{},total:{},active:{},meetingDates:{},eventsDates:{}},emits:["click-date","change-month"],setup(r,{emit:e}){const{getConfig:i}=bn(),n=r,s=e,a=l=>{s("click-date",l)},o=l=>{n.current+l>=n.total||n.current+l<0||s("change-month",l)};return(l,c)=>(t.openBlock(),t.createElementBlock("div",t4,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.data,(d,m)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:m},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(d,g=>(t.openBlock(),t.createElementBlock("div",{key:g.month,class:"month-item"},[t.createElementVNode("div",i4,t.toDisplayString(g.month.replace(/-/g,"/")),1),t.createElementVNode("div",n4,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(g.days,C=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["day-item",r.active===`${g.month}-${C}`&&"active"]),key:C,onClick:b=>a(`${g.month}-${C}`)},[t.createElementVNode("div",s4,t.toDisplayString(C),1),t.createElementVNode("div",a4,[r.meetingDates.includes(`${g.month}-${C}`)?(t.openBlock(),t.createBlock(t.unref(V.OIcon),{key:0,style:t.normalizeStyle({zIndex:t.unref(i)(t.unref(Ie).MEETING,"zIndex"),backgroundColor:t.unref(i)(t.unref(Ie).MEETING,"color")})},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(t.unref(i)(t.unref(Ie).MEETING,"icon"))))]),_:1},8,["style"])):t.createCommentVNode("",!0),r.eventsDates.includes(`${g.month}-${C}`)?(t.openBlock(),t.createBlock(t.unref(V.OIcon),{key:1,style:t.normalizeStyle({zIndex:t.unref(i)(t.unref(Ie).EVENTS,"zIndex"),backgroundColor:t.unref(i)(t.unref(Ie).EVENTS,"color")})},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(t.unref(i)(t.unref(Ie).EVENTS,"icon"))))]),_:1},8,["style"])):t.createCommentVNode("",!0)])],10,r4))),128))])]))),128))],64))),128)),t.createElementVNode("div",o4,[t.createVNode(t.unref(V.OIcon),{onClick:c[0]||(c[0]=d=>o(0-zs)),class:t.normalizeClass(r.current-zs<0&&"disabled")},{default:t.withCtx(()=>[t.createVNode(t.unref(V.OIconArrowLeft))]),_:1},8,["class"]),t.createVNode(t.unref(V.OIcon),{onClick:c[1]||(c[1]=d=>o(zs)),class:t.normalizeClass(r.current+zs>=r.total&&"disabled")},{default:t.withCtx(()=>[t.createVNode(t.unref(V.OIconArrowRight))]),_:1},8,["class"])])]))}}),u4={class:"o-sig-meeting-calendar"},c4={class:"meeting-card-header"},d4={key:0,class:"header-left"},h4={key:0,class:"phone-filter-wrapper"},f4={class:"date-select"},p4={class:"meeting-card-content"},Gd=t.defineComponent({__name:"OMeetingSigCalendar",props:{sigName:{},getMeetingListRequest:{},getDateListRequest:{},getEventsListRequest:{},dates:{},emptyImg:{},emptyText:{}},setup(r){const e=r,{t:i,meetingTabs:n}=bn(),{lePadV:s}=Et.useScreen(),a=t.ref(""),o=t.ref(!1),l=t.ref([]),c=t.computed(()=>s.value?100:5),d=t.ref(""),m=t.ref([]),g=t.ref([]),C=t.ref([]),b=t.ref(-1),k=F=>{T(F)},v=F=>{T(F)},T=async F=>{if(e.getMeetingListRequest)try{o.value=!0,a.value=xe(F).format("YYYY-MM-DD");const P=await e.getMeetingListRequest(a.value,e.sigName);l.value=P.map(L=>({...L,time:`${L.start}-${L.end}`,date:L.date||a.value,type:Ie.MEETING}))}finally{o.value=!1}},E=async()=>{e.getDateListRequest&&(m.value=await e.getDateListRequest()),e.getEventsListRequest&&(C.value=(await e.getEventsListRequest(a.value,e.sigName)).map(F=>({...F,type:Ie.EVENTS})),g.value=(C.value||[]).map(F=>F.dates||[]).flat())},I=t.ref(Ie.ALL),w=()=>{E()},$=F=>{const P=xe(F).format("YYYY-MM-DD");return[P.slice(0,7),P.slice(8,10)]},q=t.computed(()=>{let F;return I.value===Ie.ALL?F=[...m.value||[],...g.value]:I.value===Ie.MEETING?F=m.value||[]:I.value===Ie.EVENTS?F=g.value||[]:F=[],[...new Set(F)].sort((P,L)=>xe(P).isAfter(xe(L))?1:-1).map(P=>xe(P).format("YYYY-MM-DD"))}),z=()=>{let F=q.value.find(P=>P===xe().format("YYYY-MM-DD"));F||(F=q.value.find(P=>xe(P).isAfter(xe()))||[...q.value].reverse().find(P=>xe().isAfter(xe(P)))),d.value=F};t.watch(()=>q.value,F=>{F.length&&(z(),t.nextTick(()=>{T(d.value)}))});const N=t.computed(()=>{const F=q.value.reduce((te,ee)=>{var Z,se;const[H,X]=$(ee);return te[H]={count:(((Z=te[H])==null?void 0:Z.count)||0)+1,days:[...((se=te[H])==null?void 0:se.days)||[],X]},te},{}),P=Object.keys(F).map(te=>({...F[te],month:te})),L=[];let R=[];return P.forEach(te=>{for(;te.days.length;)if(!R.length)te.days.splice(0,6).forEach(ee=>{R.push({month:te.month,day:ee})}),R.length>=5&&(L.push(R),R=[]);else{let ee=R.length;ee%2===1&&(ee+=1),te.days.length+R.length<=6?(te.days.splice(0,6).forEach(H=>{R.push({month:te.month,day:H})}),R.length>=5&&(L.push(R),R=[])):(te.days.splice(0,6-ee).forEach(H=>{R.push({month:te.month,day:H})}),R.length>=5&&(L.push(R),R=[]))}}),R.length&&(L.push(R),R=[]),L}),U=t.computed(()=>N.value.map(F=>{const P=F.reduce((L,R)=>(L[R.month]=L[R.month]||[],L[R.month].push(R.day),L),{});return Object.keys(P).map(L=>({month:L,days:P[L]||[]}))})),x=()=>{N.value.length?(b.value=N.value.findIndex(F=>F.some(P=>d.value===`${P.month}-${P.day}`)),b.value===-1&&(b.value=N.value.findIndex(F=>F.some(P=>d.value.includes(P.month))))):b.value=-1};t.watch([()=>N.value,()=>d.value],()=>{x()},{deep:!0});const D=F=>{b.value+=F};t.onMounted(()=>{E()});const B=t.computed(()=>{let F;return I.value===Ie.ALL?F=[...l.value||[],...C.value]:I.value===Ie.MEETING?F=l.value||[]:I.value===Ie.EVENTS?F=C.value||[]:F=[],F});return(F,P)=>(t.openBlock(),t.createElementBlock("div",u4,[t.createElementVNode("div",c4,[d.value?(t.openBlock(),t.createElementBlock("div",d4,[t.createElementVNode("span",null,t.toDisplayString(t.unref(i)("meeting.latestMeeting")),1),t.createElementVNode("span",null,t.toDisplayString(t.unref(xe)(d.value).format("YYYY/MM/DD")),1),t.createVNode(t.unref(V.OPopover),null,{target:t.withCtx(()=>[t.createVNode(t.unref(V.OIcon),{class:"tips"},{default:t.withCtx(()=>[t.createVNode(t.unref(e4))]),_:1})]),default:t.withCtx(()=>[t.createElementVNode("div",null,[t.createElementVNode("p",null,t.toDisplayString(t.unref(i)("meeting.detailHalfYearMeetings")),1)])]),_:1})])):t.createCommentVNode("",!0),t.createVNode(t.unref(V.OTab),{modelValue:I.value,"onUpdate:modelValue":P[0]||(P[0]=L=>I.value=L),onChange:w,line:!1,"max-show":9999},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(n).slice(0,-1),L=>(t.openBlock(),t.createBlock(t.unref(V.OTabPane),{key:L.value,value:L.value},{nav:t.withCtx(()=>[t.createVNode(t.unref(V.OIcon),null,{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(L.icon)))]),_:2},1024),t.createTextVNode(" "+t.toDisplayString(L.label),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue"])]),t.unref(s)&&q.value.length?(t.openBlock(),t.createElementBlock("div",h4,[t.createElementVNode("div",f4,[t.createVNode(t.unref(V.OSelect),{modelValue:a.value,"onUpdate:modelValue":P[1]||(P[1]=L=>a.value=L),onChange:v},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(q.value,L=>(t.openBlock(),t.createBlock(t.unref(V.OOption),{key:L,value:L,label:t.unref(ct)(L)},null,8,["value","label"]))),128))]),_:1},8,["modelValue"])]),t.createElementVNode("div",null,[t.createVNode(t.unref(V.OTab),{modelValue:I.value,"onUpdate:modelValue":P[2]||(P[2]=L=>I.value=L),onChange:w,line:!1,"max-show":9999},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(n).slice(0,-1),L=>(t.openBlock(),t.createBlock(t.unref(V.OTabPane),{key:L.value,value:L.value},{nav:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(L.label),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue"])])])):t.createCommentVNode("",!0),!t.unref(s)||t.unref(s)&&q.value.length?(t.openBlock(),t.createBlock(t.unref(V.ODivider),{key:1,class:"meeting-divider"})):t.createCommentVNode("",!0),t.createElementVNode("div",p4,[!t.unref(s)&&b.value!==-1?(t.openBlock(),t.createBlock(l4,{key:0,data:U.value.slice(b.value,b.value+1),meetingDates:I.value!==t.unref(Ie).EVENTS?m.value:[],eventsDates:I.value!==t.unref(Ie).MEETING?g.value:[],onClickDate:k,onChangeMonth:D,current:b.value,total:U.value.length,active:a.value},null,8,["data","meetingDates","eventsDates","current","total","active"])):t.createCommentVNode("",!0),t.createVNode(t.unref(V.OScroller),{class:"list-content","show-type":"hover",size:"small"},{default:t.withCtx(()=>[t.createVNode(Th,{list:B.value,rows:c.value},{empty:t.withCtx(()=>[t.renderSlot(F.$slots,"empty",{},()=>[t.createVNode(t.unref(V.OResult),{class:"empty-result"},{image:t.withCtx(()=>[t.createVNode(t.unref(V.OFigure),{class:"img",src:r.emptyImg??t.unref(xh)},null,8,["src"])]),description:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(r.emptyText??t.unref(i)("meeting.meetingEmptyText")),1)]),_:1})])]),_:3},8,["list","rows"])]),_:3})])]))}}),m4={class:"o-my-meeting-calendar"},g4={class:"meeting-list"},v4={class:"list-calendar-mb"},y4={class:"list-calendar"},_4=["onClick"],b4={class:"date-cell-text"},T4={class:"list-body"},x4=["id"],C4={class:"item-header"},S4={class:"item-header-left"},E4={class:"header-info"},k4={class:"meeting-title"},w4={key:0},D4={class:"title-wrapper"},V4={class:"title-text"},A4={key:1,class:"tag-wrapper"},I4={class:"meeting-info"},N4={key:0,class:"item-header-right"},P4={class:"meeting-detail"},O4={key:0,class:"meeting-btn"},B4={key:0,class:"load-text"},L4={class:"dialog-content"},Wd=t.defineComponent({__name:"OMeetingMyCalendar",props:{cancelSubMeetingRequest:{},deleteMeetingRequest:{},getMeetingListRequest:{},groupType:{default:_i.SIG}},emits:["edit"],setup(r,{emit:e}){const i=V.useMessage(null),n=t.ref(!1),s=t.ref(1),a=t.ref(50),o=t.ref(null),l=t.ref([]),c=t.ref([]),d=t.computed(()=>o.value===null||c.value.length<o.value),m=t.ref(!1),{t:g,locale:C,getPointStr:b,getConfig:k,getWeekFromDate:v}=bn(),T=t.computed(()=>C.value===Xe.Locales.EN),E=r,I=t.ref(!1),{isPhone:w}=Et.useScreen(),$=t.ref([]),q=e,z=t.ref(!1),N=t.ref(!1),U=async()=>{if(E.getMeetingListRequest&&!z.value)try{if(o.value!==null&&o.value>0&&(s.value-1)*a.value>o.value)return;if(!d.value&&w.value){$e("next-month");return}n.value=!0,z.value=!0;const pe=await E.getMeetingListRequest({page:s.value,size:a.value,order_by:"date",order_type:"asc",month:xe(Be.value).format("YYYY-MM")}),ye=(pe.data||[]).map(Ce=>{var ni,qt,gi;const{is_cycle:he,date:ue,start:ve,end:Le,cycle_sub:De,cycle_start_date:ht,cycle_end_date:Me,cycle_start:It,cycle_end:vt,cycle_type:Nt,cycle_interval:wt,cycle_point:Rt}=Ce;if(he){let Pt="",vi="";Nt===gn&&(vi=g("meeting.cycleDay")),Nt===vn&&(wt>1?vi=g("meeting.cycleWeek.other",[b(Nt,Rt),wt]):vi=g("meeting.cycleWeek.one",[b(Nt,Rt)])),Nt===nn&&(vi=g("meeting.cycleMonth",[b(Nt,Rt)])),Pt=g("meeting.cycleMeetingText2",{startDate:ht,endDate:Me,startTime:It,endTime:vt,cycleType:vi});const S=((ni=Ce.obs_data)==null?void 0:ni.filter(A=>A.text_video_url))||[];return De.filter(A=>xe(A.date).isBefore(xe(Be.value).add(1,"month").format("YYYY-MM-01"))&&!xe(A.date).isBefore(xe(Be.value).format("YYYY-MM-01"))).map(({id:A,...Y})=>({...Ce,...Y,timeRange:Pt,dateRange:`${Y.start}-${Y.end}`,hasObsData:S.find(oe=>oe.sub_id===Y.sub_id),time:`${Y.start}-${Y.end}`,isExpired:xe(`${Y.date} ${Y.start}`).isBefore(xe())}))}return[{...Ce,dateRange:`${ve} - ${Le}`,timeRange:`${ve} - ${Le}`,hasObsData:!!((gi=(qt=Ce.obs_data)==null?void 0:qt.filter(Pt=>Pt.text_video_url))!=null&&gi.length),time:`${ve}-${Le}`,isExpired:xe(`${ue} ${ve}`).isBefore(xe())}]}).flat().filter(Ce=>Ce.date.slice(0,7)===ct(Be.value,"YYYY-MM-DD").slice(0,7));m.value?(c.value=pe.data||[],l.value=ye):s.value===1&&!w.value?(c.value=pe.data||[],l.value=ye):(c.value=[...c.value,...pe.data||[]],l.value=[...l.value,...ye]),l.value.sort((Ce,he)=>Ce.date===he.date?Nn(Ce.start)>Nn(he.start)?1:-1:xe(Ce.date).isAfter(xe(he.date))?1:-1),o.value=(pe==null?void 0:pe.total)||0,t.nextTick(()=>{Je(),it.value&&!w.value&&P()})}finally{n.value=!1,z.value=!1,N.value=!1,m.value=!1}},x=fi.useDebounceFn(()=>{d.value&&(w.value||(N.value=!0,s.value++,U()))},200),D=fi.useDebounceFn(()=>{if(!d.value||!w.value)return;const pe=window.scrollY||window.pageYOffset,ye=window.innerHeight;document.documentElement.scrollHeight-(pe+ye)<=300&&!z.value&&(N.value=!0,s.value++,U())},200),B=pe=>{const ye=l.value.filter(Ce=>Ce.date===pe);return ye.length&&ye.every(Ce=>Ce.is_delete)},F=pe=>{const ye=pe.target;if(!ye)return;const Ce=ye.scrollTop,he=ye.scrollHeight,ue=ye.clientHeight;Ce+ue>=he&&x()},P=()=>{it.value.getContainerEl().addEventListener("scroll",F)},L=t.ref({}),R=(pe,ye)=>{pe&&ye&&(L.value[ye]=pe)},te=async pe=>{await L.value[pe].copyInfo(),i.success({content:g("common.copySuccess")})},ee=t.ref(!1),H=t.ref(null),X=pe=>{q("edit",pe,"whole")},Z=pe=>{H.value=pe,ee.value=!0},se=async()=>{if(E.deleteMeetingRequest&&H.value)try{I.value=!0;const pe=await E.deleteMeetingRequest(H.value.id);if(typeof pe=="boolean"&&!pe)return;ee.value=!1,i.success({content:`${g("meeting.meetingCancel",[H.value.topic])}`}),m.value=!0,U()}finally{I.value=!1}},Q=t.ref(!1),ie=t.ref(""),K=t.ref(null),J=[{label:g("meeting.meetingSingle"),value:"single"},{label:g("meeting.meetingCycle"),value:"whole"}],le=t.ref("single"),ge=(pe,ye)=>{pe.is_cycle?(K.value=pe,ie.value=ye,Q.value=!0):ye==="cancel"?Z(pe):X(pe)},Ne=()=>{Q.value=!1,K.value=null,ie.value="",le.value="single"},Te=async()=>{const pe=K.value;if(pe)if(ie.value==="cancel")try{let ye;if(I.value=!0,le.value==="single"&&pe.is_cycle){if(!E.cancelSubMeetingRequest)return;ye=await E.cancelSubMeetingRequest(pe.sub_id)}else{if(!E.deleteMeetingRequest)return;ye=await E.deleteMeetingRequest(pe.id)}if(typeof ye=="boolean"&&!ye)return;i.success({content:`${g("meeting.meetingCancel",[pe.topic])}`}),Ne(),m.value=!0,U()}finally{I.value=!1}else q("edit",pe,le.value),Ne()},Oe=t.ref(),He=t.computed(()=>[...new Set(l.value.map(pe=>pe.date))].sort((pe,ye)=>xe(pe).isBefore(xe(ye))?-1:1)),Ke=t.computed(()=>[...new Set(l.value.filter(pe=>!pe.isExpired&&!pe.is_delete).map(pe=>pe.date))].sort((pe,ye)=>xe(pe).isBefore(xe(ye))?-1:1)),Be=t.ref(),Je=()=>{var Ce;const pe=Ke.value.find(he=>!xe(he).isBefore(xe(new Date).format("YYYY-MM-DD")));pe?Be.value=pe:Be.value||(Be.value=xe().format("YYYY-MM-DD")),(Ce=Oe.value)==null||Ce.pickDay(xe(Be.value)),Be.value=xe(Be.value).format("YYYY-MM-DD");const ye=l.value.find(he=>he.date===Be.value&&!he.isExpired&&!he.is_delete);ye&&($.value=[ye.sub_id||ye.id])},tt=(pe,ye)=>{var Ce;(!ye||!((Ce=pe.target)!=null&&Ce.className.includes("date-cell-text")))&&(pe.stopPropagation(),pe.preventDefault())},$e=pe=>{Oe.value&&(s.value=1,o.value=null,window.scrollTo({top:0,behavior:"smooth"}),Oe.value.selectDate(pe),m.value=!0,t.nextTick(()=>{Be.value=xe(Oe.value.selectedDay).format("YYYY-MM-DD"),U()}))},gt=t.computed(()=>l.value.reduce((pe,ye)=>{if(pe.length){const Ce=pe.at(-1);return(Ce==null?void 0:Ce.date)===ye.date?Ce.list.push(ye):pe.push({date:ye.date,list:[ye]}),pe}else return[{date:ye.date,list:[ye]}]},[])),it=t.ref();t.watch(()=>Be.value,()=>{Pe(Be.value)});const Pe=pe=>{var he,ue,ve;const ye=xe(pe).format("YYYY-MM-DD"),Ce=document.querySelector(`#group-title-${ye}`);Ce&&(w.value?window.scrollTo({top:(((he=Ce.parentElement)==null?void 0:he.offsetTop)||0)-52,behavior:"smooth"}):(ve=it.value)==null||ve.scrollTo({top:((ue=Ce.parentElement)==null?void 0:ue.offsetTop)||0,behavior:"smooth"}))};t.onMounted(()=>{U(),window.addEventListener("scroll",D),window.addEventListener("resize",D)}),t.onUnmounted(()=>{var ye;window.removeEventListener("scroll",D),window.removeEventListener("resize",D);const pe=(ye=it.value)==null?void 0:ye.getContainerEl();pe==null||pe.removeEventListener("scroll",F)});const Ee=pe=>{const ye=xe(pe||void 0);return T.value?ye.format("MMMM YYYY"):ye.format("YYYY MM月")},me=t.computed(()=>[{id:"confirm",color:"primary",label:g("common.confirm"),variant:"solid",size:"large",round:"pill",loading:I.value,onClick:()=>{Te()}},{id:"cancel",color:"primary",label:g("common.cancel"),variant:"outline",size:"large",round:"pill",onClick:()=>{Ne()}}]),qe=t.computed(()=>[{id:"confirm",color:"primary",label:g("common.confirm"),variant:"solid",size:"large",round:"pill",loading:I.value,onClick:()=>{se()}},{id:"cancel",color:"primary",label:g("common.cancel"),variant:"outline",size:"large",round:"pill",onClick:()=>{ee.value=!1}}]);return(pe,ye)=>(t.openBlock(),t.createElementBlock("div",m4,[t.createElementVNode("div",g4,[t.createElementVNode("div",v4,[t.createElementVNode("span",null,t.toDisplayString(Ee(Be.value)),1),t.createElementVNode("span",null,[t.createVNode(t.unref(V.OIcon),{onClick:ye[0]||(ye[0]=Ce=>$e("prev-month"))},{default:t.withCtx(()=>[t.createVNode(t.unref(V.OIconChevronLeft))]),_:1}),t.createVNode(t.unref(V.OIcon),{onClick:ye[1]||(ye[1]=Ce=>$e("next-month"))},{default:t.withCtx(()=>[t.createVNode(t.unref(V.OIconChevronRight))]),_:1})])]),t.createElementVNode("div",y4,[t.createVNode(t.unref(rt.ElCalendar),{ref_key:"calendarRef",ref:Oe,modelValue:Be.value,"onUpdate:modelValue":ye[4]||(ye[4]=Ce=>Be.value=Ce)},{header:t.withCtx(()=>[t.createElementVNode("span",null,t.toDisplayString(Ee(Be.value)),1),t.createElementVNode("div",null,[t.createVNode(t.unref(V.OIcon),{onClick:ye[2]||(ye[2]=Ce=>$e("prev-month"))},{default:t.withCtx(()=>[t.createVNode(t.unref(V.OIconChevronLeft))]),_:1}),t.createVNode(t.unref(V.OIcon),{onClick:ye[3]||(ye[3]=Ce=>$e("next-month"))},{default:t.withCtx(()=>[t.createVNode(t.unref(V.OIconChevronRight))]),_:1})])]),"date-cell":t.withCtx(({data:Ce})=>[t.createElementVNode("div",{onClick:he=>tt(he,He.value.includes(Ce.day)),class:t.normalizeClass({"date-cell":!0,"is-selected":Ce.isSelected,"is-today":t.unref(ct)(Ce.day)===t.unref(ct)(),clickable:He.value.includes(Ce.day),expired:t.unref(xe)(t.unref(ct)()).isAfter(t.unref(xe)(Ce.day)),"all-deleted":B(Ce.day)}),style:t.normalizeStyle({"--dot-bg":`${t.unref(k)(t.unref(Ie).MEETING,"color")}`})},[t.createElementVNode("div",b4,t.toDisplayString(Number(Ce.day.split("-")[2])),1)],14,_4)]),_:1},8,["modelValue"])]),t.createElementVNode("div",{class:t.normalizeClass(["list-wrapper",l.value.length?"":"is-empty"])},[l.value.length?(t.openBlock(),t.createBlock(t.unref(V.OScroller),{key:0,ref_key:"scrollerRef",ref:it,onScrollend:t.unref(x),class:"scroller-container","show-type":"hover"},{default:t.withCtx(()=>[t.createElementVNode("div",T4,[t.createVNode(t.unref(V.OCollapse),{modelValue:$.value,"onUpdate:modelValue":ye[7]||(ye[7]=Ce=>$.value=Ce),accordion:t.unref(w)},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(gt.value,(Ce,he)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:Ce.date},[he===0?(t.openBlock(),t.createElementBlock("div",{key:0,class:"list-month-change prev-month",onClick:ye[5]||(ye[5]=ue=>$e("prev-month"))},[t.createVNode(t.unref(V.OIcon),null,{default:t.withCtx(()=>[t.createVNode(t.unref(V.OIconArrowLeft))]),_:1}),t.createElementVNode("span",null,t.toDisplayString(t.unref(g)("meeting.preMonth")),1)])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(["group-item",he===gt.value.length-1&&"last-item"])},[t.createElementVNode("div",{class:t.normalizeClass({"group-bar":!0,"is-active":t.unref(xe)(Be.value).format("YYYY-MM-DD")===Ce.date,"is-end":Ce.list.every(ue=>ue.isExpired)})},[...ye[11]||(ye[11]=[t.createElementVNode("div",{class:"group-bar-line"},null,-1),t.createElementVNode("div",{class:"group-bar-dot"},null,-1)])],2),t.createElementVNode("div",{class:t.normalizeClass({"group-title":!0,"is-end":Ce.list.every(ue=>ue.isExpired)}),id:`group-title-${t.unref(xe)(new Date(Ce.date)).format("YYYY-MM-DD")}`},t.toDisplayString(t.unref(xe)(Ce.date).format("MM/DD"))+" "+t.toDisplayString(t.unref(v)(Ce.date)),11,x4),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Ce.list,(ue,ve)=>(t.openBlock(),t.createBlock(t.unref(V.OCollapseItem),{key:ue.sub_id||ue.id,value:ue.sub_id||ue.id,class:t.normalizeClass({"last-item":he===gt.value.length-1&&ve===Ce.list.length-1,"is-delete":ue.is_delete,"is-end":ue.isExpired})},{title:t.withCtx(()=>[t.createElementVNode("div",C4,[t.createElementVNode("div",S4,[t.createElementVNode("div",{class:"meeting-icon",style:t.normalizeStyle({backgroundColor:`${ue.is_delete?"var(--o-color-info4)":t.unref(k)(t.unref(Ie).MEETING,"color")}`})},[t.createVNode(t.unref(V.OIcon),null,{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(t.unref(k)(t.unref(Ie).MEETING,"icon"))))]),_:1})],4),t.createElementVNode("div",E4,[t.createElementVNode("div",k4,[ue.is_delete?(t.openBlock(),t.createElementBlock("div",w4,t.toDisplayString(t.unref(g)("meeting.meetingCancelled")),1)):t.createCommentVNode("",!0),t.createElementVNode("div",D4,[t.createElementVNode("div",V4,t.toDisplayString(ue.topic),1)]),ue.is_cycle?(t.openBlock(),t.createElementBlock("div",A4,[t.createVNode(t.unref(V.OTag),{color:"primary",variant:"outline"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(g)("meeting.cycle")),1)]),_:1})])):t.createCommentVNode("",!0)]),t.createElementVNode("div",I4,[t.createElementVNode("span",null,t.toDisplayString(ue.dateRange),1),t.createVNode(t.unref(V.ODivider),{direction:"v"}),t.createElementVNode("span",null,t.toDisplayString(r.groupType===t.unref(_i).GROUP?t.unref(g)("meeting.groups"):t.unref(g)("meeting.sigs"))+": "+t.toDisplayString(ue.group_name),1)])])]),ue.is_delete?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",N4,[ue.isExpired?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[ue.etherpad?(t.openBlock(),t.createBlock(t.unref(V.OLink),{key:0,"hover-underline":!1,target:"_blank",href:ue.etherpad},{suffix:t.withCtx(()=>[t.createVNode(t.unref(V.OIcon),null,{default:t.withCtx(()=>[t.createVNode(t.unref(V.OIconChevronRight))]),_:1})]),default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(g)("meeting.meetingSummary"))+" ",1)]),_:1},8,["href"])):t.createCommentVNode("",!0),ue.hasObsData?(t.openBlock(),t.createBlock(t.unref(V.OLink),{key:1,"hover-underline":!1,target:"_blank",href:`/${t.unref(C)}/video/${ue.group_name}/${ue.mid}/${ue.date}`},{suffix:t.withCtx(()=>[t.createVNode(t.unref(V.OIcon),null,{default:t.withCtx(()=>[t.createVNode(t.unref(V.OIconChevronRight))]),_:1})]),default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(g)("meeting.viewRecord"))+" ",1)]),_:1},8,["href"])):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createBlock(t.unref(V.OLink),{key:0,"hover-underline":!1,target:"_blank",href:ue.join_url,rel:"noopener noreferrer"},{suffix:t.withCtx(()=>[t.createVNode(t.unref(V.OIcon),null,{default:t.withCtx(()=>[t.createVNode(t.unref(V.OIconChevronRight))]),_:1})]),default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(g)("meeting.joinMeeting"))+" ",1)]),_:1},8,["href"]))]))]),t.createVNode(t.unref(V.OIcon),{onClick:t.withModifiers(()=>te(ue.sub_id||ue.id),["stop"]),class:"copy-icon"},{default:t.withCtx(()=>[t.createVNode(t.unref(kl))]),_:1},8,["onClick"])]),default:t.withCtx(()=>[t.createElementVNode("div",P4,[t.createVNode(ts,{show:$.value.includes(ue.sub_id||ue.id),data:ue,ref_for:!0,ref:Le=>R(Le,ue.sub_id||ue.id),from:"my"},null,8,["show","data"]),!ue.isExpired&&!ue.is_delete?(t.openBlock(),t.createElementBlock("div",O4,[t.createVNode(t.unref(V.OButton),{color:"normal",variant:"text",onClick:Le=>ge(ue,"edit")},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(g)("meeting.editMeeting")),1)]),_:1},8,["onClick"]),t.createVNode(t.unref(V.OButton),{color:"normal",variant:"text",onClick:Le=>ge(ue,"cancel")},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(g)("meeting.cancelMeeting")),1)]),_:1},8,["onClick"])])):t.createCommentVNode("",!0)])]),_:2},1032,["value","class"]))),128)),ye[12]||(ye[12]=t.createElementVNode("div",{class:"height-placeholder"},null,-1))],2),he===gt.value.length-1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[N.value?(t.openBlock(),t.createElementBlock("div",B4,t.toDisplayString(t.unref(g)("common.loading")),1)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"list-month-change next-month",onClick:ye[6]||(ye[6]=ue=>$e("next-month"))},[t.createVNode(t.unref(V.OIcon),null,{default:t.withCtx(()=>[t.createVNode(t.unref(V.OIconArrowRight))]),_:1}),t.createElementVNode("span",null,t.toDisplayString(t.unref(g)("meeting.nextMonth")),1)])],64)):t.createCommentVNode("",!0)],64))),128))]),_:1},8,["modelValue","accordion"])])]),_:1},8,["onScrollend"])):n.value?t.createCommentVNode("",!0):t.renderSlot(pe.$slots,"empty",{key:1})],2),t.createVNode(t.unref(V.ODialog),{visible:Q.value,"onUpdate:visible":ye[9]||(ye[9]=Ce=>Q.value=Ce),"main-class":"handle-dialog",onClose:Ne,actions:me.value},{header:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(g)("meeting.meetingHandleText",[ie.value==="edit"?t.unref(g)("meeting.edit"):t.unref(g)("meeting.cancel")])),1)]),default:t.withCtx(()=>[t.createVNode(t.unref(V.ORadioGroup),{modelValue:le.value,"onUpdate:modelValue":ye[8]||(ye[8]=Ce=>le.value=Ce)},{default:t.withCtx(()=>[(t.openBlock(),t.createElementBlock(t.Fragment,null,t.renderList(J,Ce=>t.createVNode(t.unref(V.ORadio),{value:Ce.value,key:Ce.value},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(Ce.label),1)]),_:2},1032,["value"])),64))]),_:1},8,["modelValue"])]),_:1},8,["visible","actions"]),t.createVNode(t.unref(V.ODialog),{visible:ee.value,"onUpdate:visible":ye[10]||(ye[10]=Ce=>ee.value=Ce),"main-class":"cancel-dialog",actions:qe.value},{header:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(g)("meeting.confirmCancel")),1)]),default:t.withCtx(()=>{var Ce;return[t.createElementVNode("div",L4,t.toDisplayString(t.unref(g)("meeting.confirmCancelDesc",[(Ce=H.value)==null?void 0:Ce.topic])),1)]}),_:1},8,["visible","actions"])])]))}}),M4=Object.assign(fc,{install(r){r.component("OMeetingCalendar",fc)}}),R4=Object.assign(gc,{install(r){r.component("OMeetingForm",gc)}}),q4=Object.assign(jd,{install(r){r.component("OMeetingPlayback",jd)}}),F4=Object.assign(Gd,{install(r){r.component("OMeetingSigCalendar",Gd)}}),U4=Object.assign(Wd,{install(r){r.component("OMeetingMyCalendar",Wd)}}),$4={class:"o-activity-table"},z4={key:0,class:"table-wrapper"},H4={class:"expand-detail"},X4={class:"sort-btn"},j4={class:"activity-btn"},G4={key:0,class:"pagination-wrapper"},W4={key:1,class:"collapse-wrapper"},Y4={class:"title-top"},K4={class:"act-title"},Q4={class:"act-sponsor"},J4={class:"sponsor"},Z4={class:"activity-btn"},e8={class:"activity-detail"},t8={key:0,class:"pagination"},i8={class:"dialog-content"},n8={class:"dialog-content"},Yd=t.defineComponent({__name:"OActivityApproval",props:{getTableDataRequest:{},applicantList:{},cancelActivityRequest:{},deleteActivityRequest:{},approveActivityRequest:{},rejectActivityRequest:{},getActivityDetailRequest:{}},setup(r){const{t:e,locale:i}=Xe.useI18n(),n=t.computed(()=>i.value==="zh"),{approvalStatusMap:s,statusMap:a,activityTypeMap:o}=xa(),l=V.useMessage(null),{isPhone:c,lePadV:d}=Et.useScreen(),m=r,g=t.reactive({page:1,size:10,status:"",is_delete:0,search:"",sponsor:"",order_by:""}),C=t.ref([]),b=t.computed(()=>m.applicantList.map(Pe=>({value:Pe,label:Pe}))),k=()=>{g.sponsor=C.value.join(",")},v=t.ref("desc"),T=()=>{v.value=v.value==="asc"?"desc":"asc",g.order_by=v.value},E=t.ref(),I=t.computed(()=>{const Pe=[];return s.value.forEach(Ee=>{Pe.push(Ee)}),Pe.slice(1)}),w=()=>{g.status=E.value,E.value==="cancel"?g.is_delete=1:g.is_delete=0},$=t.ref([]),q=t.ref(0),z=[10,20,30,40],N=async()=>{const{page:Pe,size:Ee,status:me,sponsor:qe,order_by:pe,search:ye,is_delete:Ce}=g;let he={page:Pe,size:Ee,sponsor:qe,order_by:pe,search:ye};if(me!=="all"&&me!==""&&(he.is_delete=Ce),me==="cancel"?he.status="":he.status=me,!m.getTableDataRequest)return;const ue=await m.getTableDataRequest(he);$.value=(ue.data||[]).map(ve=>{var vt;const{start_date:Le,end_date:De,start:ht,end:Me,activity_type:It}=ve;return[{...ve,time:`${Le}-${Me}`,start_date_time:`${Le} ${ht}`,end_date_time:`${De} ${Me}`,type:Ie.EVENTS,dateRange:`${Le} ${ht}-${De} ${Me}`,activity_type:(vt=o.value.get(It))==null?void 0:vt.label}]}).flat(),q.value=ue.total},U=Pe=>{Pe.pageSize!==g.size?g.page=1:g.page=Pe.page,g.size=Pe.pageSize,N()},x=t.ref({reason:""}),D=t.ref(),B=t.ref(!1),F=t.ref(null),P=t.ref(""),L=t.ref(0),R=t.ref(!1),te=t.ref({reason:[{required:!0,message:e("meeting.enterReviewNotes")}]}),ee=async()=>{var Pe,Ee,me,qe;if(!(!m.approveActivityRequest||!m.rejectActivityRequest))try{B.value=!0;const pe=await((Pe=D.value)==null?void 0:Pe.validate());if(!pe||pe.some(ye=>!!ye)){B.value=!1;return}L.value===1?await m.approveActivityRequest((Ee=F.value)==null?void 0:Ee.id,x.value):await m.rejectActivityRequest((me=F.value)==null?void 0:me.id,x.value),N(),H(),l.success({content:e("meeting.reviewSuccess",[(qe=F.value)==null?void 0:qe.title])})}finally{R.value=!1,B.value=!1}},H=()=>{R.value=!1,Z.value=!1,B.value=!1,x.value.reason=""},X=async()=>{var Pe;if(m.deleteActivityRequest&&m.cancelActivityRequest)try{B.value=!0,ie.value===1?await m.cancelActivityRequest(F.value.id,x.value):await m.deleteActivityRequest(F.value.id,x.value),N(),H(),l.success({content:e("meeting.activityActionSuccess",[(Pe=F.value)==null?void 0:Pe.title,Q.value])})}finally{B.value=!1,Z.value=!1}},Z=t.ref(!1),se=t.ref(""),Q=t.ref(""),ie=t.ref(0),K=Pe=>{se.value=e("meeting.deleteActivity"),Q.value=e("meeting.deleteActivity").toLowerCase(),F.value=Pe,ie.value=0,Z.value=!0},J=Pe=>{se.value=e("meeting.cancelActivity"),Q.value=e("common.cancel").toLowerCase(),F.value=Pe,ie.value=1,Z.value=!0},le=Pe=>{F.value=Pe,P.value=e("meeting.approveReview"),L.value=1,R.value=!0},ge=Pe=>{F.value=Pe,P.value=e("meeting.rejectReview"),L.value=0,R.value=!0},Ne=t.ref([]),Te=t.ref([]),Oe=Pe=>{const Ee=Pe.toString();if(!m.getActivityDetailRequest)return;Ne.value.includes(Ee)||(Ne.value.push(Ee),m.getActivityDetailRequest(Ee).then(qe=>{var pe;(pe=$.value)==null||pe.forEach(ye=>{ye.id===qe.id&&(ye.approve_record=qe.approve_record,ye.approver=qe.approver)})}));const me=Te.value.indexOf(Ee);Te.value.includes(Ee)?Te.value.splice(me,1):Te.value.push(Ee)},He=Pe=>{Oe(Pe.id)},Ke=Pe=>Pe.id.toString(),Be=t.ref([]),Je=Pe=>{Pe.length&&Pe.forEach(Ee=>{Oe(Ee)})},tt=t.ref({}),$e=(Pe,Ee)=>{Pe&&Ee&&(tt.value[Ee]=Pe)};t.onMounted(()=>{N()}),t.watch(()=>[g.status,g.sponsor,g.order_by,g.search,g.is_delete],()=>{N()},{deep:!0});const gt=t.computed(()=>[{id:"confirm",loading:B.value,color:"primary",variant:d.value?"text":"solid",round:"pill",size:"large",label:e("meeting.confirmBtn"),onClick:()=>{X()}},{id:"cancel",color:"primary",variant:d.value?"text":"outline",round:"pill",size:"large",label:e("meeting.cancelBtn"),onClick:()=>{H()}}]),it=t.computed(()=>[{id:"confirm",loading:B.value,color:"primary",variant:d.value?"text":"solid",round:"pill",size:"large",label:e("meeting.confirmBtn"),onClick:()=>{ee()}},{id:"cancel",color:"primary",variant:d.value?"text":"outline",round:"pill",size:"large",label:e("meeting.cancelBtn"),onClick:()=>{H()}}]);return(Pe,Ee)=>(t.openBlock(),t.createElementBlock("div",$4,[t.unref(c)?(t.openBlock(),t.createElementBlock("div",W4,[t.createVNode(t.unref(V.OCollapse),{modelValue:Be.value,"onUpdate:modelValue":Ee[2]||(Ee[2]=me=>Be.value=me),accordion:t.unref(c),onChange:Je},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList($.value,me=>{var qe;return t.openBlock(),t.createElementBlock(t.Fragment,{key:me.id},[t.createElementVNode("div",Y4,[t.createElementVNode("p",K4,t.toDisplayString(me.title),1),me.is_delete!==1?(t.openBlock(),t.createBlock(t.unref(V.OTag),{key:0,color:"primary",variant:"outline",class:t.normalizeClass([`tag-${(qe=t.unref(a).get(me.status))==null?void 0:qe.id}`])},{default:t.withCtx(()=>{var pe;return[t.createTextVNode(t.toDisplayString((pe=t.unref(a).get(me.status))==null?void 0:pe.text),1)]}),_:2},1032,["class"])):(t.openBlock(),t.createBlock(t.unref(V.OTag),{key:1,color:"primary",variant:"outline",class:"tag-cancel"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(e)("meeting.statusCanceled")),1)]),_:1}))]),t.createVNode(t.unref(V.OCollapseItem),{value:me.id},{title:t.withCtx(()=>[t.createElementVNode("div",Q4,[t.createElementVNode("p",J4,t.toDisplayString(me.sponsor),1),t.createElementVNode("p",null,t.toDisplayString(t.unref(rt.dayjs)(me.create_time).format("YYYY/MM/DD HH:mm:ss")),1)]),t.createElementVNode("div",Z4,[me.status===7||me.is_delete?(t.openBlock(),t.createBlock(t.unref(V.OLink),{key:0,color:"danger",variant:"text",onClick:t.withModifiers(pe=>K(me),["stop"])},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(e)("meeting.deleteActivity")),1)]),_:1},8,["onClick"])):t.createCommentVNode("",!0),(me.status===3||me.status===4)&&me.is_delete!==1?(t.openBlock(),t.createBlock(t.unref(V.OLink),{key:1,color:"danger",variant:"text",onClick:t.withModifiers(pe=>J(me),["stop"])},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(e)("meeting.cancelActivity")),1)]),_:1},8,["onClick"])):t.createCommentVNode("",!0),me.status===2?(t.openBlock(),t.createBlock(t.unref(V.OLink),{key:2,color:"primary",variant:"text",onClick:t.withModifiers(pe=>le(me),["stop"])},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(e)("meeting.approve")),1)]),_:1},8,["onClick"])):t.createCommentVNode("",!0),me.status===2?(t.openBlock(),t.createBlock(t.unref(V.OLink),{key:3,color:"primary",variant:"text",onClick:t.withModifiers(pe=>ge(me),["stop"])},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(e)("meeting.reject")),1)]),_:1},8,["onClick"])):t.createCommentVNode("",!0)])]),default:t.withCtx(()=>[t.createElementVNode("div",e8,[t.createVNode(ts,{show:Be.value.includes(me.id),data:me,ref_for:!0,ref:pe=>$e(pe,me.id),page:t.unref(Ie).APPROVAL},null,8,["show","data","page"])])]),_:2},1032,["value"])],64)}),128))]),_:1},8,["modelValue","accordion"]),q.value>z[0]?(t.openBlock(),t.createElementBlock("div",t8,[t.createVNode(t.unref(V.OPagination),{total:q.value,page:g.page,"page-size":g.size,"page-sizes":z,layout:["total","jumper","pager","pagesize"],"show-more":!1,simple:!0,onChange:U},null,8,["total","page","page-size"])])):t.createCommentVNode("",!0)])):(t.openBlock(),t.createElementBlock("div",z4,[t.createVNode(t.unref(rt.ElTable),{data:$.value,onExpandChange:He,"row-key":Ke,"expand-row-keys":Te.value},{default:t.withCtx(()=>[t.createVNode(t.unref(rt.ElTableColumn),{type:"expand"},{default:t.withCtx(me=>[t.createElementVNode("div",H4,[t.createVNode(ts,{data:me.row,page:t.unref(Ie).APPROVAL,show:""},null,8,["data","page"])])]),_:1}),t.createVNode(t.unref(rt.ElTableColumn),{label:t.unref(e)("meeting.activityName"),prop:"title"},null,8,["label"]),t.createVNode(t.unref(rt.ElTableColumn),{prop:"sponsor"},{header:t.withCtx(()=>[t.createVNode(uc,{modelValue:C.value,"onUpdate:modelValue":Ee[0]||(Ee[0]=me=>C.value=me),onConfirm:k,list:b.value,multiple:!0},{empty:t.withCtx(()=>[t.renderSlot(Pe.$slots,"filter-empty")]),default:t.withCtx(()=>[t.createTextVNode(" "+t.toDisplayString(t.unref(e)("meeting.applicant")),1)]),_:3},8,["modelValue","list"])]),_:3}),t.createVNode(t.unref(rt.ElTableColumn),{prop:"create_time"},{header:t.withCtx(()=>[t.createElementVNode("div",{class:"sort-time",onClick:T},[t.createElementVNode("span",null,t.toDisplayString(t.unref(e)("meeting.submissionTime")),1),t.createElementVNode("div",X4,[t.createElementVNode("div",{class:t.normalizeClass(["sort-asc sort-item",{active:v.value==="asc"}])},null,2),t.createElementVNode("div",{class:t.normalizeClass(["sort-desc sort-item",{active:v.value==="desc"}])},null,2)])])]),default:t.withCtx(me=>[t.createTextVNode(t.toDisplayString(t.unref(rt.dayjs)(me.row.create_time).format("YYYY/MM/DD HH:mm:ss")),1)]),_:1}),t.createVNode(t.unref(rt.ElTableColumn),{prop:"status",width:"90px"},{header:t.withCtx(()=>[t.createVNode(uc,{modelValue:E.value,"onUpdate:modelValue":Ee[1]||(Ee[1]=me=>E.value=me),onConfirm:w,list:I.value},{empty:t.withCtx(()=>[t.renderSlot(Pe.$slots,"filter-empty")]),default:t.withCtx(()=>[t.createTextVNode(" "+t.toDisplayString(t.unref(e)("meeting.status")),1)]),_:3},8,["modelValue","list"])]),default:t.withCtx(me=>{var qe;return[me.row.is_delete!==1?(t.openBlock(),t.createBlock(t.unref(V.OTag),{key:0,color:"primary",variant:"outline",class:t.normalizeClass([`tag-${(qe=t.unref(a).get(me.row.status))==null?void 0:qe.id}`])},{default:t.withCtx(()=>{var pe;return[t.createTextVNode(t.toDisplayString((pe=t.unref(a).get(me.row.status))==null?void 0:pe.text),1)]}),_:2},1032,["class"])):(t.openBlock(),t.createBlock(t.unref(V.OTag),{key:1,color:"primary",variant:"outline",class:"tag-cancel"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(e)("meeting.statusCanceled")),1)]),_:1}))]}),_:3}),t.createVNode(t.unref(rt.ElTableColumn),{label:t.unref(e)("meeting.action")},{default:t.withCtx(me=>[t.createElementVNode("div",j4,[me.row.status===7||me.row.is_delete?(t.openBlock(),t.createBlock(t.unref(V.OLink),{key:0,color:"danger",onClick:qe=>K(me.row)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(e)("meeting.deleteActivity")),1)]),_:1},8,["onClick"])):t.createCommentVNode("",!0),(me.row.status===3||me.row.status===4)&&me.row.is_delete!==1?(t.openBlock(),t.createBlock(t.unref(V.OLink),{key:1,color:"danger",onClick:qe=>J(me.row)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(e)("meeting.cancelActivity")),1)]),_:1},8,["onClick"])):t.createCommentVNode("",!0),me.row.status===2?(t.openBlock(),t.createBlock(t.unref(V.OLink),{key:2,color:"primary",onClick:qe=>le(me.row)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(e)("meeting.approve")),1)]),_:1},8,["onClick"])):t.createCommentVNode("",!0),me.row.status===2?(t.openBlock(),t.createBlock(t.unref(V.OLink),{key:3,color:"primary",onClick:qe=>ge(me.row)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(e)("meeting.reject")),1)]),_:1},8,["onClick"])):t.createCommentVNode("",!0)])]),_:1},8,["label"])]),_:3},8,["data","expand-row-keys"]),q.value>z[0]?(t.openBlock(),t.createElementBlock("div",G4,[t.createVNode(t.unref(V.OPagination),{total:q.value,page:g.page,"page-size":g.size,"page-sizes":z,layout:["total","jumper","pager","pagesize"],"show-more":!1,onChange:U},null,8,["total","page","page-size"])])):t.createCommentVNode("",!0)])),t.createVNode(t.unref(V.ODialog),{visible:R.value,"onUpdate:visible":Ee[4]||(Ee[4]=me=>R.value=me),"phone-half-full":t.unref(d),"main-class":"handle-dialog-approval review-dialog",actions:it.value},{header:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(P.value),1)]),default:t.withCtx(()=>[t.createElementVNode("div",i8,[t.createVNode(t.unref(V.OForm),{model:x.value,ref_key:"formRef",ref:D,"has-required":"",layout:"v",class:"form-wrapper"},{default:t.withCtx(()=>[t.createVNode(t.unref(V.OFormItem),{rules:te.value.reason,label:`${t.unref(e)("meeting.reviewNotesLabel")}${n.value?":":": "}`,field:"reason"},{default:t.withCtx(()=>[t.createVNode(t.unref(V.OTextarea),{size:"large",placeholder:t.unref(e)("meeting.enterReviewNotes"),rows:4,resize:"none","max-length":1e3,"input-on-outlimit":!1,modelValue:x.value.reason,"onUpdate:modelValue":Ee[3]||(Ee[3]=me=>x.value.reason=me)},null,8,["placeholder","modelValue"])]),_:1},8,["rules","label"])]),_:1},8,["model"])])]),_:1},8,["visible","phone-half-full","actions"]),t.createVNode(t.unref(V.ODialog),{visible:Z.value,"onUpdate:visible":Ee[5]||(Ee[5]=me=>Z.value=me),"phone-half-full":t.unref(d),"main-class":"handle-dialog-approval cancel-dialog",actions:gt.value},{header:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(se.value),1)]),default:t.withCtx(()=>{var me,qe;return[t.createElementVNode("div",n8,t.toDisplayString(ie.value===1?t.unref(e)("meeting.confirmCancelActivity",[(me=F.value)==null?void 0:me.title]):t.unref(e)("meeting.confirmDeleteActivity",[(qe=F.value)==null?void 0:qe.title])),1)]}),_:1},8,["visible","phone-half-full","actions"])]))}}),r8={class:"o-my-activity-calendar"},s8={class:"activity-list"},a8={key:0,class:"list-calendar-mb"},o8={class:"left-calendar"},l8=["onClick"],u8={class:"date-cell-text"},c8={class:"right-meeting"},d8={class:"list-body"},h8=["id"],f8={class:"item-header-left"},p8={class:"header-info"},m8={class:"act-title"},g8={class:"title-text"},v8={class:"act-info"},y8={class:"date-range"},_8={key:0,class:"item-header-right"},b8={class:"activity-detail"},T8={key:0,class:"activity-btn"},x8={key:0,class:"load-text"},C8={class:"dialog-content"},S8={class:"dialog-content"},E8=t.defineComponent({__name:"OActivityMyCalendar",props:{getListRequest:{},revokeActivityRequest:{},deleteActivityRequest:{},editActivityRequest:{},getActivityDetailRequest:{}},emits:["edit"],setup(r,{emit:e}){const{t:i,locale:n}=Xe.useI18n(),s=t.computed(()=>n.value===Xe.Locales.ZH),{statusMap:a,activityTypeMap:o}=xa(),{getConfig:l}=bn(),c=he=>{const ue=xe(he||new Date);return s.value?ue.format("YYYY MM月"):ue.format("MMMM YYYY")},d=V.useMessage(null),{isPhone:m}=Et.useScreen(),g=r,C=e,b=t.ref([]),k=t.ref([]),v=t.ref(1),T=t.ref(50),E=t.ref(null),I=t.ref(!1),w=t.ref([]),$=t.ref(!1),q=t.ref(!1),z=t.computed(()=>E.value===null||k.value.length<E.value),N=async()=>{if(g.getListRequest&&!$.value)try{if(E.value!==null&&E.value>0&&(v.value-1)*T.value>E.value)return;if(!z.value&&m.value){Z("next-month");return}$.value=!0;const he=await g.getListRequest({page:v.value,size:T.value,start_date:R.value}),ue=(he.data||[]).map(ve=>{const{start_date:Le,end_date:De,start:ht,end:Me}=ve;return[{...ve,time:`${Le}-${Me}`,start_date_time:`${Le} ${ht}`,end_date_time:`${De} ${Me}`,type:Ie.EVENTS,dateRange:`${Le} ${ht}-${De} ${Me}`,isExpired:xe(`${Le} ${ht}`).isBefore(xe())}]}).flat().filter(ve=>ve.start_date.slice(0,7)===ct(R.value,"YYYY-MM-DD").slice(0,7));I.value?(k.value=he.data||[],b.value=ue):v.value===1&&!m.value?(k.value=he.data||[],b.value=ue):(k.value=[...k.value,...he.data||[]],b.value=[...b.value,...ue]),b.value.sort((ve,Le)=>ve.start_date===Le.start_date?Nn(ve.start)>Nn(Le.start)?1:-1:xe(ve.start_date).isAfter(xe(Le.start_date))?1:-1),E.value=(he==null?void 0:he.total)||0,t.nextTick(()=>{H(),J.value&&!m.value&&P()})}finally{$.value=!1,q.value=!1,I.value=!1}},U=t.ref([]),x=he=>{g.getActivityDetailRequest&&(U.value.includes(he)||(U.value.push(he),g.getActivityDetailRequest(he).then(ue=>{var ve;(ve=b.value)==null||ve.forEach(Le=>{Le.id===ue.id&&(Le.approve_record=ue.approve_record)})})))},D=he=>{he.length&&he.forEach(ue=>{x(ue)})},B=he=>{const ue=b.value.filter(ve=>ve.start_date===he);return ue.length&&ue.every(ve=>ve.status===3||ve.status===4)},F=he=>{const ue=he.target;if(!ue)return;const ve=ue.scrollTop,Le=ue.scrollHeight,De=ue.clientHeight;ve+De>=Le&&ge()},P=()=>{J.value.getContainerEl().addEventListener("scroll",F)},L=t.ref(),R=t.ref(xe().format("YYYY-MM-DD")),te=t.computed(()=>[...new Set(b.value.map(he=>he.start_date))].sort((he,ue)=>xe(he).isBefore(xe(ue))?-1:1)),ee=t.computed(()=>[...new Set(b.value.filter(he=>!he.isExpired&&!he.is_delete).map(he=>he.start_date))].sort((he,ue)=>xe(he).isBefore(xe(ue))?-1:1)),H=()=>{var ve;const he=ee.value.find(Le=>!xe(Le).isBefore(xe(new Date).format("YYYY-MM-DD")));he?R.value=he:R.value||(R.value=xe().format("YYYY-MM-DD")),(ve=L.value)==null||ve.pickDay(xe(R.value)),R.value=xe(R.value).format("YYYY-MM-DD");const ue=b.value.find(Le=>Le.start_date===R.value&&!Le.isExpired&&!Le.is_delete);ue&&(x(ue.id),w.value=[ue.id])},X=(he,ue)=>{var ve;(!ue||!((ve=he.target)!=null&&ve.className.includes("date-cell-text")))&&(he.stopPropagation(),he.preventDefault())},Z=he=>{L.value&&(v.value=1,E.value=null,U.value=[],window.scrollTo({top:0,behavior:"smooth"}),L.value.selectDate(he),I.value=!0,t.nextTick(()=>{R.value=xe(L.value.selectedDay).format("YYYY-MM-DD"),N()}))},se=t.computed(()=>b.value.reduce((he,ue)=>{if(he.length){const ve=he.at(-1);return(ve==null?void 0:ve.start_date)===ue.start_date?ve==null||ve.list.push(ue):he.push({start_date:ue.start_date,list:[ue]}),he}else return[{start_date:ue.start_date,list:[ue]}]},[])),Q=t.ref({}),ie=(he,ue)=>{he&&ue&&(Q.value[ue]=he)},K=async he=>{await Q.value[he].copyInfo(),d.success({content:i("common.copySuccess")})},J=t.ref(),le=he=>{var Le,De,ht;const ue=xe(he).format("YYYY-MM-DD"),ve=document.querySelector(`#group-title-${ue}`);ve&&(m.value?window.scrollTo({top:(((Le=ve.parentElement)==null?void 0:Le.offsetTop)||0)-52,behavior:"smooth"}):(ht=J.value)==null||ht.scrollTo({top:((De=ve.parentElement)==null?void 0:De.offsetTop)||0,behavior:"smooth"}))};t.watch(()=>R.value,()=>{le(R.value)});const ge=fi.useDebounceFn(()=>{z.value&&(m.value||(q.value=!0,v.value++,N()))},200),Ne=t.ref(!1),Te=t.ref(null),Oe=t.ref(!1),He=he=>{Te.value=he,Oe.value=!0},Ke=()=>{var he;g.revokeActivityRequest&&Te.value&&(Ne.value=!0,g.revokeActivityRequest((he=Te.value)==null?void 0:he.id).then(ue=>{var ve;typeof ue=="boolean"&&!ue||(d.success({content:i("meeting.revokeActivitySuccess",[(ve=Te.value)==null?void 0:ve.title])}),I.value=!0,N())}).finally(()=>{Oe.value=!1,Ne.value=!1}))},Be=()=>{Oe.value=!1},Je=he=>{C("edit",he)},tt=he=>{if(!g.editActivityRequest)return;const{title:ue,start_date:ve,end_date:Le,register_end_date:De,activity_type:ht,synopsis:Me,register_url:It,content_url:vt,address:Nt,start:wt,end:Rt,approver:ni}=he;let qt={title:ue,start_date:ve,end_date:Le,register_end_date:De,activity_type:ht,synopsis:Me,register_url:It,content_url:vt,address:Nt,start:wt,end:Rt,approver:ni,is_publish:"true"};g.editActivityRequest(he.id,qt).then(gi=>{typeof gi=="boolean"&&!gi||(d.success({content:i("meeting.submitReviewSuccess",[he.title])}),I.value=!0,N())})},$e=t.ref(!1),gt=he=>{Te.value=he,$e.value=!0},it=()=>{var he;g.deleteActivityRequest&&(Ne.value=!0,g.deleteActivityRequest((he=Te.value)==null?void 0:he.id).then(ue=>{var ve;typeof ue=="boolean"&&!ue||(d.success({content:i("meeting.deleteActivitySuccess",[(ve=Te.value)==null?void 0:ve.title])}),I.value=!0,N())}).finally(()=>{$e.value=!1,Ne.value=!1}))},Pe=()=>{$e.value=!1},Ee=t.ref(),me=t.ref(0),qe=()=>{var he;me.value=((he=Ee.value)==null?void 0:he.clientHeight)||0},pe=fi.useDebounceFn(()=>{if(!z.value||!m.value)return;const he=window.scrollY||window.pageYOffset,ue=window.innerHeight;document.documentElement.scrollHeight-(he+ue)<=300&&!$.value&&(q.value=!0,v.value++,N())},200);t.onMounted(()=>{N(),window.addEventListener("scroll",pe),window.addEventListener("resize",pe),qe(),window.addEventListener("resize",qe)}),t.onUnmounted(()=>{var ue;window.removeEventListener("scroll",pe),window.removeEventListener("resize",pe),window.removeEventListener("resize",qe);const he=(ue=J.value)==null?void 0:ue.getContainerEl();he==null||he.removeEventListener("scroll",F)});const ye=t.computed(()=>[{id:"confirm",loading:Ne.value,color:"primary",variant:"outline",round:"pill",size:"large",label:i("meeting.confirmBtn"),onClick:()=>{Ke()}},{id:"cancel",color:"primary",variant:"solid",round:"pill",size:"large",label:i("meeting.cancelBtn"),onClick:()=>{Be()}}]),Ce=t.computed(()=>[{id:"confirm",loading:Ne.value,color:"primary",variant:"outline",round:"pill",size:"large",label:i("meeting.confirmBtn"),onClick:()=>{it()}},{id:"cancel",color:"primary",variant:"solid",round:"pill",size:"large",label:i("meeting.cancelBtn"),onClick:()=>{Pe()}}]);return(he,ue)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("div",r8,[t.createElementVNode("div",s8,[t.unref(m)?(t.openBlock(),t.createElementBlock("div",a8,[t.createElementVNode("span",null,t.toDisplayString(c(R.value)),1),t.createElementVNode("span",null,[t.createVNode(t.unref(V.OIcon),{onClick:ue[0]||(ue[0]=ve=>Z("prev-month"))},{default:t.withCtx(()=>[t.createVNode(t.unref(V.OIconChevronLeft))]),_:1}),t.createVNode(t.unref(V.OIcon),{onClick:ue[1]||(ue[1]=ve=>Z("next-month"))},{default:t.withCtx(()=>[t.createVNode(t.unref(V.OIconChevronRight))]),_:1})])])):t.createCommentVNode("",!0),t.createElementVNode("div",o8,[t.createVNode(t.unref(rt.ElCalendar),{ref_key:"calendarRef",ref:L,modelValue:R.value,"onUpdate:modelValue":ue[4]||(ue[4]=ve=>R.value=ve)},{header:t.withCtx(()=>[t.createElementVNode("span",null,t.toDisplayString(c(R.value)),1),t.createElementVNode("div",null,[t.createVNode(t.unref(V.OIcon),{onClick:ue[2]||(ue[2]=ve=>Z("prev-month"))},{default:t.withCtx(()=>[t.createVNode(t.unref(V.OIconChevronLeft))]),_:1}),t.createVNode(t.unref(V.OIcon),{onClick:ue[3]||(ue[3]=ve=>Z("next-month"))},{default:t.withCtx(()=>[t.createVNode(t.unref(V.OIconChevronRight))]),_:1})])]),"date-cell":t.withCtx(({data:ve})=>[t.createElementVNode("div",{onClick:Le=>X(Le,te.value.includes(ve.day)),class:t.normalizeClass({"date-cell":!0,"is-selected":ve.isSelected,"is-today":t.unref(ct)(ve.day)===t.unref(ct)(),clickable:te.value.includes(ve.day),approved:B(ve.day)}),style:t.normalizeStyle({"--dot-bg":`${t.unref(l)(t.unref(Ie).EVENTS,"color")}`})},[t.createElementVNode("div",u8,t.toDisplayString(Number(ve.day.split("-")[2])),1)],14,l8)]),_:1},8,["modelValue"])]),t.createElementVNode("div",c8,[b.value.length?(t.openBlock(),t.createBlock(t.unref(V.OScroller),{key:0,ref_key:"scrollerRef",ref:J,onScrollend:t.unref(ge),style:t.normalizeStyle({"--header-height":me.value}),"show-type":"hover",class:"scroller-container"},{default:t.withCtx(()=>[t.createElementVNode("div",d8,[t.createVNode(t.unref(V.OCollapse),{modelValue:w.value,"onUpdate:modelValue":ue[7]||(ue[7]=ve=>w.value=ve),accordion:t.unref(m),onChange:D},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(se.value,(ve,Le)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:ve.start_date},[Le===0?(t.openBlock(),t.createElementBlock("div",{key:0,class:"list-month-change prev-month",onClick:ue[5]||(ue[5]=De=>Z("prev-month"))},[t.createVNode(t.unref(V.OIcon),null,{default:t.withCtx(()=>[t.createVNode(t.unref(V.OIconArrowLeft))]),_:1}),t.createElementVNode("span",null,t.toDisplayString(t.unref(i)("meeting.preMonth")),1)])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(["act-item",Le===se.value.length-1&&"last-item"])},[t.createElementVNode("div",{class:t.normalizeClass({"act-bar":!0,"is-active":t.unref(xe)(R.value).format("YYYY-MM-DD")===ve.start_date,"is-end":ve.list.every(De=>De.isExpired),approved:ve.list.every(De=>De.status===3||De.status===4)})},[...ue[10]||(ue[10]=[t.createElementVNode("div",{class:"act-bar-line"},null,-1),t.createElementVNode("div",{class:"act-bar-dot"},null,-1)])],2),t.createElementVNode("div",{class:t.normalizeClass({"group-title":!0,"is-end":ve.list.every(De=>De.isExpired)}),id:`group-title-${t.unref(xe)(new Date(ve.start_date)).format("YYYY-MM-DD")}`},t.toDisplayString(t.unref(xe)(ve.start_date).format("MM/DD")),11,h8),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(ve.list,(De,ht)=>(t.openBlock(),t.createBlock(t.unref(V.OCollapseItem),{key:De.sub_id||De.id,value:De.sub_id||De.id,class:t.normalizeClass({"last-item":Le===se.value.length-1&&ht===ve.list.length-1,"is-delete":De.is_delete,"is-end":De.isExpired})},{title:t.withCtx(()=>{var Me,It;return[t.createElementVNode("div",f8,[t.createElementVNode("div",{class:"act-icon",style:t.normalizeStyle({backgroundColor:`${De.is_delete?"var(--o-color-info4)":t.unref(l)(t.unref(Ie).EVENTS,"color")}`})},[t.createVNode(t.unref(V.OIcon),null,{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(t.unref(l)(t.unref(Ie).EVENTS,"icon"))))]),_:1})],4),t.createElementVNode("div",p8,[t.createElementVNode("div",m8,[t.createElementVNode("div",g8,t.toDisplayString(De.title),1),t.createVNode(t.unref(V.OTag),{color:"primary",variant:"outline",class:t.normalizeClass([`tag-${De.is_delete?"delete":(Me=t.unref(a).get(De.status))==null?void 0:Me.id}`])},{default:t.withCtx(()=>{var vt;return[t.createTextVNode(t.toDisplayString(De.is_delete===1?t.unref(i)("meeting.statusCanceled"):(vt=t.unref(a).get(De.status))==null?void 0:vt.text),1)]}),_:2},1032,["class"])]),t.createElementVNode("div",v8,[t.createElementVNode("span",y8,t.toDisplayString(De.dateRange),1),t.createVNode(t.unref(V.ODivider),{direction:"v"}),t.createElementVNode("span",null,t.toDisplayString((It=t.unref(o).get(De.activity_type))==null?void 0:It.label),1)])])]),De.content_url&&!De.is_delete&&[3,4,5,6].includes(De.status)?(t.openBlock(),t.createElementBlock("div",_8,[De.content_url?(t.openBlock(),t.createBlock(t.unref(V.OLink),{key:0,"hover-underline":!1,href:De.content_url,target:"_blank",rel:"noopener noreferrer"},{suffix:t.withCtx(()=>[t.createVNode(t.unref(V.OIcon),null,{default:t.withCtx(()=>[t.createVNode(t.unref(V.OIconChevronRight))]),_:1})]),default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(i)("meeting.activityDetail"))+" ",1)]),_:1},8,["href"])):t.createCommentVNode("",!0),De.register_url&&(De.status===3||De.status===4||De.status===2&&De.update_activity_id&&new Date(De.register_end_date).getTime()>new Date().getTime())?(t.openBlock(),t.createBlock(t.unref(V.OLink),{key:1,"hover-underline":!1,href:De.register_url,target:"_blank",rel:"noopener noreferrer"},{suffix:t.withCtx(()=>[t.createVNode(t.unref(V.OIcon),null,{default:t.withCtx(()=>[t.createVNode(t.unref(V.OIconChevronRight))]),_:1})]),default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(i)("meeting.registerNow"))+" ",1)]),_:1},8,["href"])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createVNode(t.unref(V.OIcon),{onClick:t.withModifiers(()=>K(ht),["stop"]),class:"copy-icon"},{default:t.withCtx(()=>[t.createVNode(t.unref(kl))]),_:1},8,["onClick"])]}),default:t.withCtx(()=>[t.createElementVNode("div",b8,[t.createVNode(ts,{show:w.value.includes(De.id),data:De,ref_for:!0,ref:Me=>ie(Me,De.id)},null,8,["show","data"]),!De.isExpired&&!De.is_delete?(t.openBlock(),t.createElementBlock("div",T8,[De.status===2?(t.openBlock(),t.createBlock(t.unref(V.OButton),{key:0,variant:"text",onClick:Me=>He(De)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(i)("meeting.withdrawReview")),1)]),_:1},8,["onClick"])):t.createCommentVNode("",!0),De.status===1||De.status===3||De.status===4||De.status===7?(t.openBlock(),t.createBlock(t.unref(V.OButton),{key:1,variant:"text",onClick:Me=>Je(De)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(i)("meeting.modifyActivity")),1)]),_:1},8,["onClick"])):t.createCommentVNode("",!0),De.status===1||De.status===7?(t.openBlock(),t.createBlock(t.unref(V.OButton),{key:2,variant:"text",onClick:Me=>gt(De)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(i)("meeting.deleteActivity")),1)]),_:1},8,["onClick"])):t.createCommentVNode("",!0),De.status===1||De.status===7?(t.openBlock(),t.createBlock(t.unref(V.OButton),{key:3,variant:"text",onClick:Me=>tt(De)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(i)("meeting.submitReview")),1)]),_:1},8,["onClick"])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)])]),_:2},1032,["value","class"]))),128)),ue[11]||(ue[11]=t.createElementVNode("div",{class:"height-placeholder"},null,-1))],2),Le===se.value.length-1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[q.value?(t.openBlock(),t.createElementBlock("div",x8,t.toDisplayString(t.unref(i)("meeting.loading")),1)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"list-month-change next-month",onClick:ue[6]||(ue[6]=De=>Z("next-month"))},[t.createVNode(t.unref(V.OIcon),null,{default:t.withCtx(()=>[t.createVNode(t.unref(V.OIconArrowRight))]),_:1}),t.createElementVNode("span",null,t.toDisplayString(t.unref(i)("meeting.nextMonth")),1)])],64)):t.createCommentVNode("",!0)],64))),128))]),_:1},8,["modelValue","accordion"])])]),_:1},8,["onScrollend","style"])):t.renderSlot(he.$slots,"empty",{key:1})])])]),t.createVNode(t.unref(V.ODialog),{visible:Oe.value,"onUpdate:visible":ue[8]||(ue[8]=ve=>Oe.value=ve),"main-class":"handle-dialog-active",actions:ye.value},{header:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(i)("meeting.withdrawReview")),1)]),default:t.withCtx(()=>{var ve;return[t.createElementVNode("div",C8,t.toDisplayString(t.unref(i)("meeting.confirmRevokeActivity",[(ve=Te.value)==null?void 0:ve.title])),1)]}),_:1},8,["visible","actions"]),t.createVNode(t.unref(V.ODialog),{visible:$e.value,"onUpdate:visible":ue[9]||(ue[9]=ve=>$e.value=ve),"main-class":"handle-dialog-active",actions:Ce.value},{header:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(i)("meeting.deleteActivity")),1)]),default:t.withCtx(()=>{var ve;return[t.createElementVNode("div",S8,t.toDisplayString(t.unref(i)("meeting.confirmDeleteActivity",[(ve=Te.value)==null?void 0:ve.title])),1)]}),_:1},8,["visible","actions"])],64))}}),k8=Object.assign(ec,{install(r){r.component("OActivityForm",ec)}}),w8=Object.assign(Yd,{install(r){r.component("OActivityApproval",Yd)}}),up=Object.assign(E8,{install(r){r.component("OActivityMyCalendar",up)}}),D8=t.defineComponent({__name:"ContentWrapper",props:{verticalPadding:{type:[Boolean,String,Array],default:void 0}},setup(r){const e=Symbol("default"),i=r,n=t.computed(()=>i.verticalPadding?V.isBoolean(i.verticalPadding)?e:V.isString(i.verticalPadding)?i.verticalPadding:i.verticalPadding[0]:0),s=t.computed(()=>i.verticalPadding?V.isBoolean(i.verticalPadding)?e:V.isString(i.verticalPadding)?i.verticalPadding:V.isUndefined(i.verticalPadding[1])?i.verticalPadding[0]:i.verticalPadding[1]:0);return(a,o)=>(t.openBlock(),t.createElementBlock("div",{class:"content-wrapper",style:t.normalizeStyle({"--content-wrapper-vertical-paddingTop":n.value===t.unref(e)?void 0:n.value,"--content-wrapper-vertical-paddingBottom":s.value===t.unref(e)?void 0:s.value})},[t.renderSlot(a.$slots,"default",{},void 0,!0)],4))}}),sn=Xe._export_sfc(D8,[["__scopeId","data-v-9e217f8f"]]),V8={class:"banner-content"},A8=["src"],I8={key:4,class:"banner-opts"},N8=t.defineComponent({__name:"OBannerContent",props:{info:{},size:{},contentJustifyCenter:{type:Boolean},isPhone:{type:Boolean},isLight:{type:Boolean}},emits:["click"],setup(r,{emit:e}){const i=e,n=(s,a)=>{s&&!a&&(window.open(s),i("click",s))};return(s,a)=>(t.openBlock(),t.createBlock(t.unref(V.OFigure),{class:t.normalizeClass(["banner-bg",{"with-sticky-bg":r.info.withStickyBg,"cursor-pointer":r.info.href&&!r.info.btn}]),src:r.info.bg,style:t.normalizeStyle({"--pad-offset":r.info.pad_offset}),onClick:a[0]||(a[0]=o=>n(r.info.href,r.info.btn))},{default:t.withCtx(()=>[t.createVNode(sn,{class:t.normalizeClass(["banner-wrapper",["banner-wrapper",r.contentJustifyCenter?"content-center":""]])},{default:t.withCtx(()=>[t.createElementVNode("div",V8,[!r.isPhone&&r.info.attach?(t.openBlock(),t.createElementBlock("img",{key:0,src:r.info.attach,class:"banner-attach"},null,8,A8)):t.createCommentVNode("",!0),r.info.title?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass({"banner-title":!0,"text-dark":r.info.text_theme==="dark"})},t.toDisplayString(r.info.title),3)):t.createCommentVNode("",!0),r.info.subtitle?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass({"banner-subtitle":!0,"text-dark":r.info.text_theme==="dark"})},t.toDisplayString(r.info.subtitle),3)):t.createCommentVNode("",!0),r.info.bg_text?(t.openBlock(),t.createElementBlock("div",{key:3,class:"banner-text",style:t.normalizeStyle({backgroundImage:`url(${r.info.bg_text})`,"--pc-width":r.info.pc_text_width,"--pc-height":r.info.pc_text_height,"--pad-width":r.info.pad_text_width,"--pad-height":r.info.pad_text_height})},null,4)):t.createCommentVNode("",!0),r.info.btn?(t.openBlock(),t.createElementBlock("div",I8,[t.createVNode(t.unref(V.OButton),{href:r.info.href,target:"_blank",variant:"solid",color:"primary",size:r.size==="tiny"?void 0:r.size},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(r.info.btn),1)]),_:1},8,["href","size"])])):t.createCommentVNode("",!0)])]),_:1},8,["class"])]),_:1},8,["src","class","style"]))}}),Ta=Xe._export_sfc(N8,[["__scopeId","data-v-1904d05a"]]),P8={key:0,class:"content-height"},O8={key:0},B8={key:1,class:"content-height"},L8={key:2,class:"content-height"},M8=t.defineComponent({__name:"OBanner",props:{options:{},size:{},contentJustifyCenter:{type:Boolean},autoPlay:{type:Boolean}},emits:["click"],setup(r,{emit:e}){const i=r,n=e,{isLight:s}=Et.useTheme(),{isPhone:a}=Et.useScreen(),o=t.computed(()=>{if(i.options)return Array.isArray(i.options)?i.options.length===1?i.options[0]:void 0:i.options}),l=t.computed(()=>{if(!(!Array.isArray(i.options)||i.options.length<=1))return i.options});return(c,d)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["home-banner",r.size])},[o.value?(t.openBlock(),t.createElementBlock("div",P8,[r.size==="tiny"?(t.openBlock(),t.createElementBlock("div",O8,t.toDisplayString(o.value.title),1)):t.unref(a)?(t.openBlock(),t.createBlock(sn,{key:2,class:"banner-wrapper"},{default:t.withCtx(()=>[t.createVNode(t.unref(V.OFigure),{class:"banner-bg",src:o.value.bg,fit:"cover"},null,8,["src"])]),_:1})):(t.openBlock(),t.createBlock(Ta,{key:1,info:o.value,size:r.size,"content-justify-center":r.contentJustifyCenter,"is-phone":t.unref(a),"is-light":t.unref(s),onClick:d[0]||(d[0]=m=>n("click",m))},null,8,["info","size","content-justify-center","is-phone","is-light"]))])):l.value?(t.openBlock(),t.createElementBlock("div",B8,[t.unref(a)?(t.openBlock(),t.createBlock(t.unref(V.OCarousel),{key:1,class:"banner-carousel",effect:"gallery","indicator-click":"",arrow:"never","auto-play":r.autoPlay},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.value,(m,g)=>(t.openBlock(),t.createBlock(t.unref(V.OCarouselItem),{key:g,class:t.normalizeClass(["banner-item",`banner-item${g}`])},{default:t.withCtx(()=>[t.createVNode(sn,{class:"banner-wrapper"},{default:t.withCtx(()=>[t.createVNode(t.unref(V.OFigure),{class:"banner-bg",src:m.bg,onClick:C=>n("click",m.href)},null,8,["src","onClick"])]),_:2},1024)]),_:2},1032,["class"]))),128))]),_:1},8,["auto-play"])):(t.openBlock(),t.createBlock(t.unref(V.OCarousel),{key:0,class:"banner-carousel",effect:"toggle","active-class":"current-slide","indicator-click":"","auto-play":r.autoPlay},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.value,(m,g)=>(t.openBlock(),t.createBlock(t.unref(V.OCarouselItem),{key:g,class:t.normalizeClass(["banner-item",`banner-item${g}`])},{default:t.withCtx(()=>[t.createVNode(Ta,{info:m,size:r.size,"content-justify-center":r.contentJustifyCenter,"is-phone":t.unref(a),"is-light":t.unref(s),onClick:d[1]||(d[1]=C=>n("click",C))},null,8,["info","size","content-justify-center","is-phone","is-light"])]),_:2},1032,["class"]))),128))]),_:1},8,["auto-play"]))])):(t.openBlock(),t.createElementBlock("div",L8,[...d[2]||(d[2]=[t.createElementVNode("p",null,"No data.",-1)])]))],2))}}),Kd=Xe._export_sfc(M8,[["__scopeId","data-v-fddea127"]]),R8=Object.assign(Kd,{install(r){r.component("OBanner",Kd)}}),q8=Object.assign(Ta,{install(r){r.component("OBannerContent",Ta)}}),F8={locale:"zh-CN","common.more":"更多","common.empty":"暂无数据","common.loading":"加载中...","common.checkAll":"全选","common.filter":"筛选","common.confirm":"确认","common.reset":"重置","common.search":"搜索","pagination.goto":"前往","pagination.page":"页","pagination.countPerPage":"条/页","pagination.total":"共 {0} 条","upload.buttonLabel":"点击上传","upload.drag":"点击或拖拽文件到此处上传","upload.dragHover":"释放文件并开始上传","upload.retry":"点击重试","upload.delete":"删除","upload.preview":"预览","upload.edit":"编辑","upload.loading":"上传中","upload.failed":"上传失败","upload.download":"下载文件","select.cancel":"取消","select.confirm":"确定","input.limit":"<b>{0}</b>/{1}","table.filterEmptyOption":"空","table.filterPlaceholder":"请输入搜索内容","timePicker.time":"时间","timePicker.selectTime":"选择时间","timePicker.placeholder":"请选择时间","timePicker.now":"此刻","timePicker.startTime":"开始时间","timePicker.endTime":"结束时间","datePicker.date":"日期","datePicker.time":"时间","datePicker.selectDate":"选择日期","datePicker.selectTime":"选择时间","datePicker.placeholder":"请选择日期","datePicker.yearPlaceholder":"请选择年份","datePicker.monthPlaceholder":"请选择月份","datePicker.today":"今天","datePicker.year":"年","datePicker.yearUnit":"年","datePicker.monthUnit":"月","datePicker.dayUnit":"日","datePicker.weekdays.0":"日","datePicker.weekdays.1":"一","datePicker.weekdays.2":"二","datePicker.weekdays.3":"三","datePicker.weekdays.4":"四","datePicker.weekdays.5":"五","datePicker.weekdays.6":"六","datePicker.months.0":"一月","datePicker.months.1":"二月","datePicker.months.2":"三月","datePicker.months.3":"四月","datePicker.months.4":"五月","datePicker.months.5":"六月","datePicker.months.6":"七月","datePicker.months.7":"八月","datePicker.months.8":"九月","datePicker.months.9":"十月","datePicker.months.10":"十一月","datePicker.months.11":"十二月","datePicker.monthsShort.0":"01月","datePicker.monthsShort.1":"02月","datePicker.monthsShort.2":"03月","datePicker.monthsShort.3":"04月","datePicker.monthsShort.4":"05月","datePicker.monthsShort.5":"06月","datePicker.monthsShort.6":"07月","datePicker.monthsShort.7":"08月","datePicker.monthsShort.8":"09月","datePicker.monthsShort.9":"10月","datePicker.monthsShort.10":"11月","datePicker.monthsShort.11":"12月","dateRangePicker.placeholderStart":"开始日期","dateRangePicker.placeholderEnd":"结束日期","dateRangePicker.selectRange":"选择日期范围"},U8={locale:"en-US","common.more":"more","common.empty":"No Data","common.loading":"Loading...","common.checkAll":"Check All","common.filter":"Filter","common.confirm":"Confirm","common.reset":"Reset","common.search":"Search","pagination.goto":"Go to","pagination.page":"Page","pagination.countPerPage":"/page","pagination.total":"Total: {0}","upload.buttonLabel":"Upload","upload.drag":"Click or drag file to this area to upload","upload.dragHover":"Release to upload","upload.retry":"Click to retry","upload.delete":"Delete","upload.preview":"Preview","upload.edit":"Edit","upload.loading":"Uploading","upload.failed":"Upload failed","upload.download":"Download the file","select.cancel":"Cancel","select.confirm":"Ok","input.limit":"<b>{0}</b>/{1}","table.filterEmptyOption":"empty","table.filterPlaceholder":"Enter keywords","timePicker.time":"time","timePicker.selectTime":"Select time","timePicker.placeholder":"Select time","timePicker.now":"Now","timePicker.startTime":"Start Time","timePicker.endTime":"End Time","datePicker.date":"Date","datePicker.time":"Time","datePicker.selectDate":"Select date","datePicker.selectTime":"Select Time","datePicker.placeholder":"Select date","datePicker.yearPlaceholder":"Select year","datePicker.monthPlaceholder":"Select month","datePicker.today":"Today","datePicker.year":"","datePicker.yearUnit":"","datePicker.monthUnit":"","datePicker.dayUnit":"","datePicker.weekdays.0":"Su","datePicker.weekdays.1":"Mo","datePicker.weekdays.2":"Tu","datePicker.weekdays.3":"We","datePicker.weekdays.4":"Th","datePicker.weekdays.5":"Fr","datePicker.weekdays.6":"Sa","datePicker.months.0":"January","datePicker.months.1":"February","datePicker.months.2":"March","datePicker.months.3":"April","datePicker.months.4":"May","datePicker.months.5":"June","datePicker.months.6":"July","datePicker.months.7":"August","datePicker.months.8":"September","datePicker.months.9":"October","datePicker.months.10":"November","datePicker.months.11":"December","datePicker.monthsShort.0":"Jan","datePicker.monthsShort.1":"Feb","datePicker.monthsShort.2":"Mar","datePicker.monthsShort.3":"Apr","datePicker.monthsShort.4":"May","datePicker.monthsShort.5":"Jun","datePicker.monthsShort.6":"Jul","datePicker.monthsShort.7":"Aug","datePicker.monthsShort.8":"Sep","datePicker.monthsShort.9":"Oct","datePicker.monthsShort.10":"Nov","datePicker.monthsShort.11":"Dec","dateRangePicker.placeholderStart":"Start date","dateRangePicker.placeholderEnd":"End date","dateRangePicker.selectRange":"Select date range"},Qd=t.defineComponent({__name:"OPlusConfigProvider",props:{locale:{default:"zh"},theme:{default:"light"}},setup(r){const e=r,i=t.reactive({locale:t.computed(()=>e.locale),theme:t.computed(()=>e.theme)});return t.provide(Xe.configProviderInjectKey,i),(n,s)=>(t.openBlock(),t.createBlock(t.unref(V.OConfigProvider),{locale:r.locale==="zh"?t.unref(F8):t.unref(U8)},{default:t.withCtx(()=>[t.renderSlot(n.$slots,"default")]),_:3},8,["locale"]))}}),$8=Object.assign(Qd,{install(r){r.component("OPlusConfigProvider",Qd)}}),z8={class:"cookie-notice-content"},H8=["type"],X8={class:"cookie-title"},j8={style:{transform:"rotate(180deg)"},xmlns:"http://www.w3.org/2000/svg",version:"1.1",width:"24",height:"24",viewBox:"0 0 24 24"},G8={class:"cookie-zh-title",style:{"margin-top":"0"}},W8=["href"],Y8={key:1,class:"cookie-en-title"},K8={key:0,class:"cookie-en-content"},Q8={class:"cookie-en-desc"},J8=["href"],Z8={class:"cookie-notice-right"},e7={class:"cookie-dlg-title"},t7={class:"cookie-dlg-content"},i7={class:"content-item"},n7={class:"item-header"},r7={class:"item-title"},s7={class:"item-extra"},a7={class:"item-detail"},o7={class:"content-item"},l7={class:"item-header"},u7={class:"item-title"},c7={class:"item-extra"},d7={class:"item-detail"},h7="0",Jd="1",f7="2",Hs="3",p7="agreed-cookiepolicy-zh",m7="agreed-cookiepolicy-en",g7=t.defineComponent({__name:"OCookieNotice",props:{visible:{type:Boolean},community:{},detailUrl:{},wrapper:{},cookieDomain:{}},emits:["update:visible"],setup(r,{expose:e,emit:i}){const n=r,s=i,{lePadV:a,leLaptop:o,isPhone:l}=Et.useScreen(),{locale:c,t:d}=Xe.useI18n(),m=t.computed(()=>c.value==="zh"),g=t.ref(),C=t.computed(()=>g.value?!!getComputedStyle(g.value).getPropertyValue("--grid-content-width"):!1),b=t.computed(()=>m.value?p7:m7),k=t.ref(!1),v=fi.useVModel(n,"visible",s,{defaultValue:!1}),T=F=>{const P=document.cookie.split(";").find(L=>L.split("=")[0].trim()===encodeURIComponent(F));return P?decodeURIComponent(P.split("=")[1]):null},E=(F,P,L,R)=>{const te=`; max-age=${L*24*60*60}`;document.cookie=`${encodeURIComponent(F)}=${encodeURIComponent(P)}${te}; path=/; domain=${R}`},I=(F,P)=>{document.cookie=`${encodeURIComponent(F)}=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; domain=${P}`},w=F=>{typeof F=="boolean"?v.value=F:v.value=!v.value,t.nextTick(()=>{!v.value&&m.value&&T(b.value)!==Hs&&E(b.value,Hs,180,n.cookieDomain??location.hostname)})},$=t.ref(!1),q=F=>{typeof F=="boolean"?$.value=F:$.value=!$.value},z=()=>m.value?T(b.value)!==Hs:(T(b.value)??"0")===h7,N=()=>m.value?T(b.value)===Hs:T(b.value)===Jd;t.onMounted(()=>{z()&&w(!0)}),t.watch(c,()=>{w(z())});const U=()=>{k.value=!0,I(b.value,n.cookieDomain??location.hostname),E(b.value,Jd,180,n.cookieDomain??location.hostname),w(!1)},x=()=>{k.value=!1,I(b.value,n.cookieDomain??location.hostname),E(b.value,f7,180,n.cookieDomain??location.hostname),w(!1)},D=t.computed(()=>l.value?[{id:"save",label:d("cookie.saveSetting"),variant:"text",onClick:()=>{k.value?U():x(),q(!1)}},{id:"allowAll",label:d("cookie.acceptAll"),variant:"text",onClick:()=>{k.value=!0,U(),q(!1)}}]:[{id:"save",color:"primary",label:d("cookie.saveSetting"),variant:"outline",size:"medium",round:"pill",onClick:()=>{k.value?U():x(),q(!1)}},{id:"allowAll",color:"primary",label:d("cookie.acceptAll"),variant:"outline",size:"medium",round:"pill",onClick:()=>{k.value=!0,U(),q(!1)}}]),B=F=>{F&&(k.value=N())};return e({check(){N()===v.value&&w()}}),(F,P)=>(t.openBlock(),t.createBlock(Xe._sfc_main,null,{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.Teleport,{to:r.wrapper||"#app"},[t.unref(v)?(t.openBlock(),t.createElementBlock("div",{key:0,ref_key:"cookieNoticeRef",ref:g,class:"cookie-notice"},[t.createElementVNode("div",z8,[t.createElementVNode("div",{type:t.unref(c),class:t.normalizeClass({"cookie-notice-wrap-grid":C.value,"cookie-notice-wrap":!C.value})},[t.createElementVNode("div",X8,[m.value?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createVNode(t.unref(V.OIcon),{style:{display:"inline-block","font-size":"24px","margin-right":"4px"}},{default:t.withCtx(()=>[(t.openBlock(),t.createElementBlock("svg",j8,[...P[4]||(P[4]=[t.createElementVNode("path",{fill:"#002fa7",d:"M21 12c0 4.971-4.029 9-9 9s-9-4.029-9-9c0-4.971 4.029-9 9-9s9 4.029 9 9z"},null,-1),t.createElementVNode("path",{fill:"#fff",d:"M12 9.4c0.552 0 1-0.448 1-1s-0.448-1-1-1c-0.552 0-1 0.448-1 1s0.448 1 1 1zM12.492 10.943c-0.042-0.233-0.246-0.41-0.492-0.41-0.276 0-0.5 0.224-0.5 0.5v5.5l0.008 0.090c0.042 0.233 0.246 0.41 0.492 0.41 0.276 0 0.5-0.224 0.5-0.5v-5.5l-0.008-0.090z"},null,-1)])]))]),_:1}),t.createElementVNode("p",G8,[t.createTextVNode(t.toDisplayString(t.unref(d)("cookie.desc"))+" ",1),t.createElementVNode("a",{href:r.detailUrl,target:"_blank",rel:"noopener noreferrer"},t.toDisplayString(t.unref(d)("cookie.about")),9,W8)])],64)):(t.openBlock(),t.createElementBlock("p",Y8,t.toDisplayString(t.unref(d)("cookie.title",[r.community])),1)),t.createVNode(t.unref(V.OIcon),{class:"cookie-notice-close",onClick:P[0]||(P[0]=L=>w(!1))},{default:t.withCtx(()=>[t.createVNode(t.unref(V.OIconClose))]),_:1})]),m.value?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",K8,[t.createElementVNode("p",Q8,[t.createTextVNode(t.toDisplayString(t.unref(d)("cookie.desc"))+" ",1),t.createElementVNode("a",{href:r.detailUrl,target:"_blank",rel:"noopener noreferrer"},t.toDisplayString(t.unref(d)("cookie.about")),9,J8),P[5]||(P[5]=t.createTextVNode(". ",-1))]),t.createElementVNode("div",Z8,[t.createVNode(t.unref(V.OButton),{round:"pill",variant:"outline",color:"primary",onClick:U},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(d)("cookie.acceptAll")),1)]),_:1}),t.createVNode(t.unref(V.OButton),{round:"pill",variant:"outline",color:"primary",onClick:x},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(d)("cookie.rejectAll")),1)]),_:1}),t.createVNode(t.unref(V.OButton),{round:"pill",variant:"outline",color:"primary",onClick:P[1]||(P[1]=L=>q(!0))},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(d)("cookie.manage")),1)]),_:1})])]))],10,H8)]),t.createVNode(t.unref(V.ODialog),{visible:$.value,"onUpdate:visible":P[3]||(P[3]=L=>$.value=L),size:t.unref(o)?"medium":"large","phone-half-full":t.unref(a),"main-class":C.value?"o-cookie-notice-dlg-main":"",class:"cookie-dlg",actions:D.value,onChange:B,style:{"--dlg-radius":"4px"}},{header:t.withCtx(()=>[t.createElementVNode("span",e7,t.toDisplayString(t.unref(d)("cookie.manage")),1)]),default:t.withCtx(()=>[t.createElementVNode("div",t7,[t.createElementVNode("div",i7,[t.createElementVNode("div",n7,[t.createElementVNode("span",r7,t.toDisplayString(t.unref(d)("cookie.necessaryCookie")),1),t.createElementVNode("span",s7,t.toDisplayString(t.unref(d)("cookie.alwaysOn")),1)]),t.createElementVNode("div",a7,t.toDisplayString(t.unref(d)("cookie.necessaryCookieDetail")),1)]),t.createElementVNode("div",o7,[t.createElementVNode("div",l7,[t.createElementVNode("span",u7,t.toDisplayString(t.unref(d)("cookie.analyticalCookie")),1),t.createElementVNode("span",c7,[t.createVNode(t.unref(V.OSwitch),{modelValue:k.value,"onUpdate:modelValue":P[2]||(P[2]=L=>k.value=L)},null,8,["modelValue"])])]),t.createElementVNode("div",d7,t.toDisplayString(t.unref(d)("cookie.analyticalCookieDetail")),1)])])]),_:1},8,["visible","size","phone-half-full","main-class","actions"])],512)):t.createCommentVNode("",!0)],8,["to"]))]),_:1}))}}),Zd=Xe._export_sfc(g7,[["__scopeId","data-v-b731c798"]]),v7=Object.assign(Zd,{install(r){r.component("OCookieNotice",Zd)}}),y7={viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"24.000000",height:"24.000000",fill:"none",customFrame:"#000000"};function _7(r,e){return t.openBlock(),t.createElementBlock("svg",y7,[...e[0]||(e[0]=[t.createElementVNode("rect",{id:"峰会",width:"24.000000",height:"24.000000",x:"0.000000",y:"0.000000"},null,-1),t.createElementVNode("path",{id:"矢量 425",d:"M8.36719 4.75439L8.36523 4.75537L8.36523 4.75537C7.63184 5.05518 6.93555 5.44629 6.27734 5.9292C6.00098 6.13184 5.94238 6.5083 6.14551 6.78516C6.34766 7.06201 6.72461 7.11963 7.00098 6.91699C7.61035 6.47119 8.25391 6.11475 8.93262 5.84766C9.05371 5.7998 9.17676 5.75488 9.30078 5.71289C9.73242 5.56641 10.1699 5.45752 10.6143 5.38672C10.6191 5.38574 10.624 5.38525 10.6289 5.38428L10.6289 5.38428C11.0439 5.31836 11.4639 5.28564 11.8896 5.28564C12.3193 5.28564 12.7451 5.31934 13.1641 5.38672L13.165 5.38672C13.6084 5.45752 14.0459 5.56641 14.4775 5.71289C14.6016 5.75488 14.7246 5.7998 14.8457 5.84766C15.5254 6.11475 16.1689 6.47119 16.7773 6.91699C17.0537 7.11963 17.4307 7.06201 17.6328 6.78516C17.8359 6.5083 17.7783 6.13184 17.501 5.9292C16.8418 5.4458 16.1455 5.0542 15.4111 4.75439C15.2334 4.68213 15.0537 4.61475 14.8711 4.55273C14.376 4.38477 13.873 4.25977 13.3643 4.17773C12.8789 4.09961 12.3877 4.06055 11.8896 4.06055C11.3916 4.06055 10.8994 4.09961 10.4141 4.17773L10.4141 4.17773C9.90527 4.25977 9.40332 4.38477 8.90723 4.55273C8.72559 4.61475 8.54492 4.68213 8.36719 4.75439L8.36719 4.75439ZM20.377 14.2979L20.377 13.4229C20.377 13.0801 20.1074 12.8105 19.7646 12.8105C19.4219 12.8105 19.1523 13.0801 19.1523 13.4229L19.1523 14.2979C19.1523 14.334 19.1455 14.3677 19.1328 14.3984L19.1328 14.3989C19.1074 14.4243 19.0215 14.5283 18.9902 14.5415C18.96 14.5542 18.9258 14.5605 18.8896 14.5605L4.88965 14.5605C4.85352 14.5605 4.82031 14.5542 4.78906 14.5415C4.76367 14.5156 4.65918 14.4297 4.64648 14.3989C4.63379 14.3677 4.62695 14.3345 4.62695 14.2979L4.62695 9.04785C4.62695 9.01172 4.63379 8.97803 4.64648 8.94727C4.67188 8.92188 4.75781 8.81738 4.78906 8.80469L4.78906 8.80469C4.82031 8.79199 4.85352 8.78564 4.88965 8.78564L18.8896 8.78564C18.9258 8.78564 18.96 8.79199 18.9902 8.80469C19.0166 8.83057 19.1201 8.9165 19.1328 8.94727C19.1455 8.97803 19.1523 9.01172 19.1523 9.04785L19.1523 11.6729C19.1523 12.0161 19.4219 12.2856 19.7646 12.2856C20.1074 12.2856 20.377 12.0161 20.377 11.6729L20.377 9.04785C20.377 8.94141 20.3662 8.83691 20.3447 8.73535L20.3447 8.73438L20.3447 8.73389C20.3252 8.64355 20.2969 8.55518 20.2598 8.46875C20.2236 8.3833 20.1807 8.30225 20.1299 8.22559C20.0752 8.14355 20.0127 8.06738 19.9414 7.99609C19.8701 7.92529 19.7939 7.8623 19.7119 7.80811C19.6357 7.75732 19.5547 7.71387 19.4688 7.67773C19.3828 7.64111 19.2939 7.61328 19.2041 7.59375C19.1016 7.57178 18.9971 7.56055 18.8896 7.56055L4.88965 7.56055C4.78418 7.56055 4.68066 7.57129 4.5791 7.59277L4.5791 7.59277C4.57812 7.59326 4.57715 7.59326 4.57617 7.59375L4.5752 7.59375C4.48535 7.61328 4.39746 7.64111 4.31055 7.67773C4.22461 7.71387 4.14355 7.75732 4.06738 7.80811C3.98535 7.8623 3.90918 7.92529 3.83789 7.99609C3.7666 8.06738 3.7041 8.14355 3.64941 8.22559C3.64941 8.22656 3.64844 8.22705 3.64844 8.22803C3.59863 8.30371 3.55566 8.38379 3.51953 8.46875C3.48242 8.55518 3.45508 8.64355 3.43555 8.73389C3.41309 8.83643 3.40234 8.94092 3.40234 9.04785L3.40234 14.2979C3.40234 14.4053 3.41309 14.5098 3.43555 14.6123C3.45508 14.7021 3.48242 14.7905 3.51953 14.8774C3.55566 14.9629 3.59961 15.0439 3.64941 15.1201C3.7041 15.2021 3.7666 15.2788 3.83789 15.3501C3.90918 15.4209 3.98535 15.4834 4.06738 15.5381C4.14355 15.5889 4.22461 15.6323 4.31055 15.6685C4.39746 15.7051 4.48535 15.7329 4.5752 15.7524C4.67773 15.7744 4.78223 15.7856 4.88965 15.7856L18.8896 15.7856C18.9971 15.7856 19.1016 15.7744 19.2041 15.7524C19.2939 15.7329 19.3828 15.7051 19.4688 15.6685C19.5547 15.6318 19.6357 15.5889 19.7119 15.5381C19.7939 15.4834 19.8701 15.4209 19.9414 15.3501C20.0127 15.2788 20.0752 15.2021 20.1299 15.1201C20.1807 15.0439 20.2236 14.9629 20.2598 14.8774C20.2969 14.7905 20.3252 14.7021 20.3447 14.6123C20.3662 14.5098 20.377 14.4053 20.377 14.2979ZM14.8291 16.3438L14.8291 16.3438C14.9189 16.3633 15.0078 16.3911 15.0938 16.4277C15.1797 16.4639 15.2607 16.5073 15.3369 16.5581C15.4189 16.6123 15.4951 16.6753 15.5664 16.7461C15.6377 16.8174 15.7002 16.8936 15.7549 16.9756C15.8057 17.0522 15.8486 17.1328 15.8848 17.2188C15.9219 17.3052 15.9502 17.3936 15.9697 17.4839C15.9912 17.5864 16.002 17.6909 16.002 17.7979C16.002 17.9053 15.9912 18.0098 15.9697 18.1123C15.9502 18.2021 15.9219 18.2905 15.8848 18.3774C15.8486 18.4629 15.8057 18.5439 15.7549 18.6201C15.7002 18.7021 15.6377 18.7788 15.5664 18.8501C15.4951 18.9209 15.4189 18.9834 15.3369 19.0381C15.2607 19.0889 15.1797 19.1318 15.0938 19.1685C15.0078 19.2051 14.9189 19.2329 14.8291 19.2524C14.7266 19.2744 14.6221 19.2856 14.5146 19.2856L9.26465 19.2856C9.1582 19.2856 9.05273 19.2744 8.9502 19.2524C8.86035 19.2329 8.77246 19.2051 8.68555 19.1685C8.59961 19.1318 8.51855 19.0889 8.44238 19.0381C8.36035 18.9834 8.28418 18.9209 8.21289 18.8501C8.1416 18.7788 8.0791 18.7021 8.02441 18.6201C7.97461 18.5439 7.93066 18.4629 7.89453 18.3774C7.85742 18.2905 7.83008 18.2021 7.81055 18.1123C7.78809 18.0098 7.77734 17.9053 7.77734 17.7979C7.77734 17.6909 7.78809 17.5864 7.81055 17.4839C7.83008 17.3936 7.85742 17.3052 7.89453 17.2188C7.93066 17.1328 7.97461 17.0522 8.02441 16.9756C8.0791 16.8936 8.1416 16.8174 8.21289 16.7461C8.28418 16.6753 8.36035 16.6123 8.44238 16.5581C8.51855 16.5073 8.59961 16.4639 8.68555 16.4277C8.77246 16.3911 8.86035 16.3633 8.9502 16.3438C9.05273 16.3218 9.1582 16.3105 9.26465 16.3105L14.5146 16.3105C14.6221 16.3105 14.7266 16.3218 14.8291 16.3438ZM9.2666 17.5352L14.5166 17.5352C14.5527 17.5352 14.5859 17.5415 14.6172 17.5547C14.6426 17.5801 14.7471 17.666 14.7598 17.6973C14.7725 17.728 14.7793 17.7617 14.7793 17.7979C14.7793 17.834 14.7725 17.8677 14.7598 17.8984C14.7344 17.9243 14.6484 18.0283 14.6172 18.041C14.5859 18.0542 14.5527 18.0605 14.5166 18.0605L9.2666 18.0605C9.23047 18.0605 9.19629 18.0542 9.16602 18.041C9.13965 18.0156 9.03613 17.9297 9.02344 17.8984C9.01074 17.8677 9.00391 17.834 9.00391 17.7979C9.00391 17.7617 9.01074 17.728 9.02344 17.6973C9.04883 17.6714 9.13477 17.5674 9.16602 17.5547C9.19629 17.5415 9.23047 17.5352 9.2666 17.5352Z",fill:"rgb(255,255,255)","fill-rule":"evenodd"},null,-1)])])}const b7={name:"events-icon-summit",render:_7},T7={viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"24.000000",height:"24.000000",fill:"none",customFrame:"#000000"};function x7(r,e){return t.openBlock(),t.createElementBlock("svg",T7,[...e[0]||(e[0]=[t.createElementVNode("rect",{id:"活动",width:"24.000000",height:"24.000000",x:"0.000000",y:"0.000000"},null,-1),t.createElementVNode("path",{id:"矢量 426",d:"M18.3065 11.0924L17.7206 11.6295C17.455 11.8722 17.4384 12.2711 17.6806 12.5362C17.9237 12.8009 18.3221 12.8185 18.5868 12.5758L19.1737 12.0387L20.0418 11.2433C20.1746 11.1217 20.2811 10.9859 20.3631 10.8365C20.4256 10.7198 20.4735 10.5948 20.5057 10.4615C20.5369 10.3316 20.5516 10.2017 20.5496 10.0723C20.5467 9.92 20.5213 9.76765 20.4725 9.61531C20.4237 9.46345 20.3553 9.32478 20.2684 9.19978C20.1942 9.09333 20.1063 8.99665 20.0057 8.90925C19.9012 8.81989 19.7899 8.74616 19.6698 8.68854C19.5165 8.61481 19.3504 8.56744 19.1717 8.54645L15.3212 8.09185C15.2997 8.08355 15.2119 8.05572 15.1923 8.04156C15.1777 8.02398 15.1142 7.9566 15.1044 7.93511L13.4697 4.43751C13.3945 4.27638 13.2978 4.13477 13.1816 4.0127L13.1816 4.0127C13.0898 3.91797 12.9853 3.83496 12.8691 3.76416C12.7549 3.69531 12.6367 3.64209 12.5137 3.60498L12.5137 3.60498C12.3682 3.56104 12.2168 3.53906 12.0586 3.53906C11.8994 3.53906 11.7481 3.56104 11.6025 3.60498L11.6025 3.60498C11.4795 3.64209 11.3613 3.69531 11.2471 3.76416C11.1309 3.83496 11.0264 3.91797 10.9356 4.0127C10.8184 4.13477 10.7217 4.27589 10.6465 4.43751L9.01178 7.93511C8.99713 7.95269 8.94342 8.0274 8.92389 8.04156C8.90241 8.04986 8.81843 8.08892 8.79499 8.09185L4.94448 8.54645C4.76577 8.56744 4.59976 8.61481 4.44644 8.68854L4.44644 8.68854C4.32731 8.74616 4.215 8.81989 4.11149 8.90925C4.00993 8.99665 3.92204 9.09333 3.8488 9.19978C3.76091 9.32478 3.69353 9.46345 3.64373 9.61531C3.5949 9.76765 3.56951 9.92 3.56658 10.0723C3.56463 10.2017 3.57927 10.3316 3.61052 10.4615C3.64275 10.5948 3.6906 10.7198 3.75407 10.8365C3.83513 10.9859 3.94157 11.1217 4.07438 11.2433L6.90635 13.837C6.91807 13.8566 6.97374 13.9313 6.98155 13.9542C6.98155 13.9606 6.98252 13.9713 6.98448 13.9845L6.98448 13.986C6.98838 14.0226 6.99327 14.0763 6.98936 14.0939L6.2384 17.8488C6.20324 18.0241 6.19738 18.196 6.21985 18.3635C6.23645 18.4948 6.2716 18.6232 6.32434 18.7497C6.37512 18.8727 6.43957 18.986 6.51671 19.0891C6.60851 19.2106 6.71788 19.3181 6.84679 19.4118C6.97471 19.5061 7.11045 19.5778 7.254 19.6281C7.37607 19.6711 7.50302 19.698 7.63583 19.7097C7.77157 19.7209 7.90438 19.7155 8.03524 19.6926L8.03524 19.6926C8.20223 19.6628 8.36336 19.6047 8.52058 19.5183L11.9248 17.6369C11.9473 17.631 12.0342 17.6022 12.0586 17.6022C12.0801 17.6081 12.1709 17.6252 12.1914 17.6369L15.5117 19.4719C15.6718 19.5603 15.8368 19.6189 16.0068 19.6481L16.0077 19.6481C16.1396 19.6706 16.2743 19.675 16.412 19.6618C16.5468 19.6491 16.6747 19.6203 16.7968 19.5754C16.9423 19.5222 17.079 19.447 17.2079 19.3488C17.3368 19.2512 17.4462 19.1394 17.537 19.0139C17.6132 18.9079 17.6747 18.7917 17.7235 18.6662C17.7733 18.5368 17.8046 18.4055 17.8182 18.2722C17.8368 18.1008 17.8241 17.926 17.7821 17.7482L16.3495 11.7125C16.2665 11.3629 15.9267 11.1534 15.5771 11.2359C15.2275 11.3189 15.0175 11.6593 15.1005 12.0089L16.5331 18.0446C16.5468 18.1027 16.5458 18.155 16.5292 18.2023C16.5116 18.2492 16.4794 18.2907 16.4325 18.3268C16.3847 18.363 16.3359 18.383 16.286 18.3864C16.2362 18.3903 16.1855 18.3776 16.1327 18.3488L12.8115 16.5133C12.6943 16.4489 12.5732 16.4001 12.4473 16.3678L12.4473 16.3678C12.3223 16.3351 12.1924 16.319 12.0586 16.319C11.9238 16.319 11.794 16.3351 11.669 16.3678C11.543 16.4001 11.4219 16.4489 11.3047 16.5133L7.8995 18.3952C7.84872 18.4235 7.79794 18.4362 7.74911 18.4328C7.69931 18.4299 7.65146 18.4108 7.60458 18.3762C7.55673 18.342 7.52451 18.3015 7.50693 18.2556C7.48837 18.2097 7.48545 18.1579 7.49716 18.1003L8.24813 14.3453C8.27449 14.2116 8.28426 14.0792 8.27644 13.9474C8.26863 13.816 8.24324 13.6852 8.20125 13.5558C8.15926 13.4259 8.10262 13.3058 8.03036 13.1949C7.95907 13.0841 7.87313 12.983 7.77255 12.8907L4.94155 10.297C4.89761 10.2569 4.87026 10.213 4.85757 10.1651C4.84487 10.1173 4.8478 10.0655 4.86538 10.0094C4.88393 9.95369 4.91128 9.90975 4.94936 9.8785C4.98842 9.84676 5.03628 9.82771 5.09487 9.82088L8.94538 9.36628C9.07916 9.35066 9.20709 9.31892 9.32916 9.27155C9.45025 9.22419 9.56646 9.16071 9.67583 9.0821C9.7852 9.003 9.8809 8.91315 9.96391 8.81256C10.0479 8.71198 10.1172 8.60065 10.1748 8.47858L11.8086 4.98097C11.834 4.92824 11.8672 4.88869 11.9082 4.86183C11.9502 4.83546 12 4.82228 12.0586 4.82228C12.1162 4.82228 12.166 4.83546 12.208 4.86183C12.25 4.88869 12.2822 4.92824 12.3076 4.98097L13.9414 8.47858C13.999 8.60065 14.0693 8.71198 14.1523 8.81256C14.2353 8.91315 14.332 9.003 14.4414 9.0821C14.5507 9.16071 14.666 9.22419 14.7871 9.27155C14.9091 9.31892 15.0371 9.35066 15.1708 9.36628L19.0213 9.82088C19.0799 9.82771 19.1278 9.84676 19.1668 9.8785C19.2049 9.90975 19.2333 9.95369 19.2508 10.0094C19.2694 10.0655 19.2713 10.1173 19.2586 10.1651C19.2459 10.213 19.2186 10.2569 19.1747 10.297L18.3065 11.0924ZM9.31256 13.2311L7.93856 11.8561C7.68368 11.6017 7.68368 11.2027 7.93856 10.9483C8.19246 10.6944 8.59187 10.6944 8.84577 10.9483L10.2207 12.3233C10.4746 12.5777 10.4746 12.9772 10.2207 13.2311C9.96586 13.485 9.56743 13.485 9.31256 13.2311Z",fill:"rgb(255,255,255)","fill-rule":"evenodd"},null,-1)])])}const C7={name:"events-icon-events",render:x7},S7={viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"24.000000",height:"24.000000",fill:"none",customFrame:"#000000"};function E7(r,e){return t.openBlock(),t.createElementBlock("svg",S7,[...e[0]||(e[0]=[t.createElementVNode("rect",{id:"高校 & 比赛",width:"24.000000",height:"24.000000",x:"0.000000",y:"0.000000"},null,-1),t.createElementVNode("path",{id:"矢量 578",d:"M3.05078 7.51904L11.6914 4.13965C11.8086 4.09424 11.9219 4.07178 12.0391 4.07178C12.1523 4.07178 12.2695 4.09473 12.3867 4.14062L20.9609 7.51953C21.0625 7.55957 21.1523 7.61328 21.2305 7.67969C21.2969 7.73779 21.3555 7.80566 21.4062 7.88379C21.5078 8.03857 21.5586 8.20898 21.5625 8.39502C21.5625 8.58057 21.5156 8.75195 21.418 8.9082C21.3125 9.07861 21.1641 9.20264 20.9766 9.28076L19.457 9.91309L19.457 12.2915C19.457 12.6558 19.168 12.9419 18.8047 12.9419C18.4414 12.9419 18.1562 12.6558 18.1562 12.292L18.1562 10.4531L16.0742 11.3188L16.0742 14.7134C16.2852 14.897 16.418 15.1675 16.418 15.4692C16.418 16.0215 15.9688 16.4692 15.418 16.4692C14.8672 16.4692 14.418 16.0215 14.418 15.4692C14.418 15.1626 14.5547 14.8887 14.7734 14.7051L14.7734 11.8589L12.4023 12.8442C12.2852 12.8926 12.1641 12.917 12.0391 12.917C11.9141 12.9175 11.793 12.8936 11.6758 12.8452L5.63281 10.354L5.61328 17.6836C5.61328 17.7285 5.62109 17.771 5.63281 17.8101C5.65234 17.854 5.67969 17.894 5.71484 17.9307C5.75 17.9658 5.78906 17.9917 5.83203 18.0088C5.87109 18.0259 5.91797 18.0342 5.96484 18.0342L17.7812 18.0342C17.832 18.0342 17.875 18.0254 17.918 18.0083C17.957 17.9912 17.9961 17.9658 18.0312 17.9316C18.0625 17.8975 18.0898 17.8599 18.1055 17.8184C18.125 17.7773 18.1328 17.7324 18.1328 17.6841L18.1328 14.1411C18.1328 13.7773 18.418 13.4912 18.7812 13.4912C19.1445 13.4912 19.4336 13.7773 19.4336 14.1411L19.4336 17.6841C19.4336 17.8032 19.418 17.9194 19.3945 18.0332C19.375 18.1333 19.3438 18.231 19.3008 18.3267C19.2188 18.5239 19.1016 18.6987 18.9492 18.8511C18.8711 18.9297 18.7852 18.9995 18.6953 19.0596C18.6094 19.1157 18.5195 19.1641 18.4258 19.2041C18.3281 19.2446 18.2305 19.2759 18.1328 19.2974L18.1328 19.2974C18.0156 19.3218 17.9023 19.334 17.7812 19.334L5.96484 19.334C5.84375 19.334 5.73047 19.3218 5.61719 19.2979C5.51562 19.2759 5.41797 19.2446 5.32031 19.2036C5.12109 19.1201 4.94922 19.002 4.79688 18.8501C4.64453 18.6978 4.52734 18.5225 4.44141 18.3252C4.35547 18.1196 4.3125 17.9048 4.3125 17.6797L4.33594 9.81836L3.03125 9.28174C2.84375 9.2041 2.69531 9.08008 2.58984 8.90967C2.54297 8.83496 2.50781 8.75684 2.48438 8.67578C2.45703 8.58643 2.44531 8.49268 2.44531 8.39502C2.44531 8.29736 2.46094 8.20361 2.48828 8.11475C2.51562 8.03369 2.55078 7.95654 2.59766 7.8833C2.65234 7.80469 2.71094 7.73682 2.77734 7.67871C2.85547 7.61182 2.94922 7.55859 3.05078 7.51904ZM18.5547 8.87891L15.457 10.1665L11.5 8.05322C11.1758 7.88184 10.7891 7.99951 10.6172 8.32031C10.4492 8.6416 10.5664 9.02832 10.8867 9.19971L13.9062 10.8115L12.0352 11.5884L5.23438 8.78271L4.33594 8.41211L12.0352 5.40039L19.6797 8.41211L18.5547 8.87891Z",fill:"rgb(255,254.745,254.745)","fill-rule":"evenodd"},null,-1)])])}const k7={name:"events-icon-competition",render:E7},w7={viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"24.000000",height:"24.000000",fill:"none",customFrame:"#000000"};function D7(r,e){return t.openBlock(),t.createElementBlock("svg",w7,[...e[0]||(e[0]=[t.createElementVNode("rect",{id:"版本发布计划",width:"24.000000",height:"24.000000",x:"0.000000",y:"0.000000"},null,-1),t.createElementVNode("path",{id:"矢量 579",d:"M8.94922 6.90332L8.94922 6.3335C8.94922 6.23779 8.95703 6.14404 8.97656 6.05225L8.97656 6.05225C8.99609 5.97119 9.01953 5.89209 9.05469 5.81396C9.08594 5.7373 9.125 5.66455 9.17188 5.59619C9.21875 5.52246 9.27734 5.4541 9.33984 5.39062C9.40234 5.32715 9.47266 5.271 9.54297 5.22217L9.54297 5.22217L9.54297 5.22217C9.61328 5.17676 9.6875 5.1377 9.76172 5.10498C9.83984 5.07227 9.91797 5.04688 10 5.02979L10 5.02979C10.0938 5.00977 10.1875 5 10.2812 5L18.668 5C18.7617 5 18.8555 5.00977 18.9492 5.02979L18.9492 5.02979C19.0273 5.04688 19.1094 5.07227 19.1875 5.10498C19.2617 5.1377 19.3359 5.17676 19.4023 5.22217C19.4766 5.271 19.5469 5.32715 19.6094 5.39062C19.6719 5.4541 19.7305 5.52246 19.7773 5.59619L19.7773 5.59619C19.8242 5.66455 19.8633 5.7373 19.8945 5.81396C19.9297 5.89209 19.9531 5.97119 19.9688 6.05225C19.9883 6.14404 20 6.23779 20 6.3335L20 12.2441C20 12.3398 19.9883 12.4336 19.9688 12.5249C19.9531 12.606 19.9297 12.6855 19.8945 12.7632C19.8633 12.8403 19.8242 12.9131 19.7773 12.9814C19.7305 13.0547 19.6719 13.123 19.6094 13.187C19.5469 13.2505 19.4766 13.3066 19.4023 13.3555C19.3359 13.4009 19.2617 13.4399 19.1875 13.4722C19.1094 13.5054 19.0273 13.5303 18.9492 13.5479C18.8555 13.5674 18.7617 13.5771 18.668 13.5771L18.3906 13.5771C18.0664 13.5771 17.8125 13.3232 17.8125 13C17.8125 12.6768 18.0664 12.4229 18.3906 12.4229L18.668 12.4229C18.6914 12.4229 18.7734 12.3789 18.793 12.3701C18.8086 12.353 18.8359 12.2651 18.8438 12.2441L18.8438 6.3335C18.8438 6.30859 18.8008 6.22803 18.793 6.20703C18.7773 6.18945 18.6875 6.16357 18.668 6.15479L10.2812 6.15479C10.2578 6.15479 10.1758 6.19824 10.1562 6.20703C10.1367 6.22461 10.1133 6.3125 10.1016 6.3335L10.1016 6.90332C10.1016 7.22656 9.84766 7.48047 9.52734 7.48047C9.20312 7.48047 8.94922 7.22656 8.94922 6.90332ZM6.47266 9.39307L6.47266 9.21973C6.47266 9.12402 6.48438 9.03027 6.50391 8.93896C6.51953 8.85791 6.54688 8.77832 6.57812 8.70068C6.61328 8.62354 6.65234 8.55127 6.69531 8.48242C6.74609 8.40918 6.80078 8.34082 6.86328 8.27734C6.92969 8.21338 6.99609 8.15723 7.07031 8.10889C7.13672 8.06299 7.21094 8.02441 7.28906 7.9917C7.36719 7.9585 7.44531 7.93359 7.52734 7.91602C7.61719 7.89648 7.71094 7.88672 7.80859 7.88672L16.1914 7.88672C16.2891 7.88672 16.3828 7.89648 16.4727 7.91602C16.5547 7.93359 16.6328 7.9585 16.7109 7.9917C16.7891 8.02441 16.8594 8.06299 16.9297 8.1084C17.0039 8.15723 17.0703 8.21338 17.1367 8.27734C17.1992 8.34082 17.2539 8.40918 17.3047 8.48242C17.3477 8.55127 17.3867 8.62354 17.4219 8.70068C17.4531 8.77832 17.4805 8.85791 17.4961 8.93896C17.5156 9.03027 17.5273 9.12402 17.5273 9.21973L17.5273 15.1304C17.5273 15.2266 17.5156 15.3198 17.4961 15.4116C17.4805 15.4927 17.4531 15.5718 17.4219 15.6499C17.3867 15.7266 17.3477 15.7993 17.3047 15.8682C17.2539 15.9414 17.1992 16.0098 17.1367 16.0732C17.0703 16.1367 17.0039 16.1929 16.9297 16.2417C16.8633 16.2871 16.7891 16.3262 16.7109 16.3589C16.6328 16.3916 16.5547 16.417 16.4727 16.4346C16.3828 16.4541 16.2891 16.4639 16.1914 16.4639L15.8789 16.4639C15.5547 16.4639 15.3008 16.21 15.3008 15.8867C15.3008 15.5635 15.5547 15.3091 15.8789 15.3091L16.1914 15.3091C16.2188 15.3091 16.2969 15.2656 16.3203 15.2568C16.3359 15.2393 16.3633 15.1519 16.3711 15.1304L16.3711 9.21973C16.3711 9.19531 16.3281 9.11475 16.3203 9.09375C16.3008 9.07617 16.2148 9.0498 16.1914 9.04102L7.80859 9.04102C7.78125 9.04102 7.70312 9.08496 7.67969 9.09375C7.66406 9.11084 7.63672 9.19873 7.62891 9.21973L7.62891 9.39307C7.62891 9.71631 7.375 9.97021 7.05078 9.97021C6.72656 9.97021 6.47266 9.71631 6.47266 9.39307ZM14 10.3901C13.9062 10.3706 13.8125 10.3608 13.7188 10.3608L5.33203 10.3608C5.23828 10.3608 5.14453 10.3706 5.05078 10.3901L5.05078 10.3901C4.97266 10.4077 4.89062 10.4331 4.8125 10.4658C4.73828 10.4985 4.66406 10.5376 4.59766 10.583L4.59766 10.583L4.59766 10.583C4.52344 10.6318 4.45312 10.688 4.39062 10.7515C4.32812 10.8149 4.26953 10.8833 4.22266 10.957C4.17578 11.0254 4.13672 11.0981 4.10547 11.1748C4.07031 11.2529 4.04688 11.332 4.03125 11.4131L4.03125 11.4131C4.01172 11.5049 4 11.5981 4 11.6943L4 17.605C4 17.7007 4.01172 17.7944 4.03125 17.8857C4.04688 17.9668 4.07031 18.0464 4.10547 18.124C4.13672 18.2012 4.17578 18.2739 4.22266 18.3423C4.26953 18.4155 4.32812 18.4839 4.39062 18.5479C4.45312 18.6113 4.52344 18.6675 4.59766 18.7163C4.66406 18.7617 4.73828 18.8008 4.8125 18.833C4.89062 18.8662 4.97266 18.8911 5.05078 18.9087L5.05078 18.9087C5.14453 18.9282 5.23828 18.938 5.33203 18.938L13.7188 18.938C13.8125 18.938 13.9062 18.9282 14 18.9087C14.082 18.8911 14.1602 18.8662 14.2383 18.833C14.3125 18.8008 14.3867 18.7617 14.457 18.7163C14.5273 18.6675 14.5977 18.6113 14.6602 18.5479C14.7227 18.4839 14.7812 18.4155 14.8281 18.3423C14.875 18.2739 14.9141 18.2012 14.9453 18.124C14.9805 18.0464 15.0039 17.9668 15.0234 17.8857C15.043 17.7944 15.0508 17.7007 15.0508 17.605L15.0508 11.6943C15.0508 11.5981 15.043 11.5049 15.0234 11.4131C15.0039 11.332 14.9805 11.2529 14.9453 11.1748C14.9141 11.0981 14.875 11.0254 14.8281 10.957C14.7812 10.8833 14.7227 10.8149 14.6602 10.7515C14.5977 10.688 14.5273 10.6318 14.457 10.583C14.3867 10.5376 14.3125 10.4985 14.2383 10.4658C14.1602 10.4331 14.082 10.4077 14 10.3901ZM5.33203 11.5156L13.7188 11.5156C13.7383 11.5244 13.8281 11.5503 13.8438 11.5679C13.8516 11.5889 13.8984 11.6694 13.8984 11.6943L13.8984 17.605C13.8867 17.626 13.8633 17.7139 13.8438 17.731C13.8242 17.7397 13.7422 17.7837 13.7188 17.7837L5.33203 17.7837C5.3125 17.7749 5.22266 17.7485 5.20703 17.731C5.19922 17.71 5.15625 17.6294 5.15625 17.605L5.15625 11.6943C5.16406 11.6733 5.19141 11.5854 5.20703 11.5679C5.22266 11.5503 5.3125 11.5244 5.33203 11.5156ZM11 12.7754C10.8086 12.5776 10.5 12.5742 10.3008 12.7676C10.1055 12.9614 10.1016 13.2695 10.293 13.4678L11 14.1875L8.36719 14.1875C8.08984 14.1875 7.87109 14.4053 7.87109 14.6826C7.87109 14.9595 8.08984 15.1772 8.36719 15.1772L10.9414 15.1772L10.2969 15.8286C10.1016 16.0254 10.1016 16.3335 10.3008 16.5283C10.4961 16.7236 10.8047 16.7222 11 16.5254L12.5039 15.0078C12.6172 14.8926 12.6758 14.7769 12.6758 14.6611C12.6758 14.5459 12.6172 14.4297 12.5039 14.3135L11 12.7754ZM7.39453 13.6792L7.39453 15.9336C7.39453 16.2109 7.17969 16.4287 6.90234 16.4287C6.625 16.4287 6.40625 16.2109 6.40625 15.9336L6.40625 13.6792C6.40625 13.4019 6.625 13.1841 6.90234 13.1841C7.17969 13.1841 7.39453 13.4019 7.39453 13.6792Z",fill:"rgb(255,255,255)","fill-rule":"evenodd"},null,-1)])])}const V7={name:"events-icon-release",render:D7},A7={summit:"--o-orange-6",events:"--o-cyan-6",competition:"--o-blue-6",release:"--o-purple-6"},I7={events:C7,competition:k7,release:V7,summit:b7},Xs={上海:"https://infrastructure-website.osinfra.cn/picture/city/shanghai.jpg",北京:"https://infrastructure-website.osinfra.cn/picture/city/beijing.jpg",南京:"https://infrastructure-website.osinfra.cn/picture/city/nanjing.jpg",天津:"https://infrastructure-website.osinfra.cn/picture/city/tianjin.jpg",成都:"https://infrastructure-website.osinfra.cn/picture/city/chengdu.jpg",无锡:"https://infrastructure-website.osinfra.cn/picture/city/wuxi.jpg",杭州:"https://infrastructure-website.osinfra.cn/picture/city/hangzhou.jpg",深圳:["https://infrastructure-website.osinfra.cn/picture/city/shenzhen1.jpg","https://infrastructure-website.osinfra.cn/picture/city/shenzhen2.jpg"],苏州:"https://infrastructure-website.osinfra.cn/picture/city/suzhou.jpg",西安:"https://infrastructure-website.osinfra.cn/picture/city/xian.jpg",郑州:"https://infrastructure-website.osinfra.cn/picture/city/zhengzhou.jpg",武汉:"https://infrastructure-website.osinfra.cn/picture/city/wuhan.jpg"},N7="https://infrastructure-website.osinfra.cn/picture/city/default-cover.jpg",P7={class:"o-events-calendar"},O7={key:0,class:"month-list"},B7={class:"collapse-header"},L7={class:"collapse-title"},M7={key:0,class:"collapse-desc"},R7={key:0,class:"month-content month-content-span"},q7={key:0,class:"event-location"},F7={class:"event-name"},U7={key:1},$7={key:0,class:"month-content-row"},z7={class:"month-name"},H7={class:"event-name"},X7={class:"event-location"},j7={class:"event-name"},G7={class:"event-location"},W7={key:1,class:"month-content month-content-column"},Y7={class:"event-location"},K7={class:"event-name"},Q7={key:1},eh=t.defineComponent({__name:"OEventsCalendar",props:{data:{default:()=>[]}},setup(r){const e=Ca(),{lePadV:i}=Et.useScreen(),n=r,s=["JAN","FEB","MAR","Apr","May","JUN","Jul","Aug","Sep","Oct","Nov","Dec"],a=t.ref([]);t.watch([()=>n.data,()=>i.value],()=>{var g;n.data.length?i.value?a.value=[(g=n.data[0])==null?void 0:g.name]:a.value=n.data.map(C=>C.name):a.value=[]},{immediate:!0});const o=g=>{const C=g.split("/");return parseInt(C[1],10)},l=g=>{const C=new Array(12).fill(0),b=[];return g.forEach((k,v)=>{const[T,E]=Array.isArray(k.date)?[o(k.date[0]),o(k.date[1])]:[o(k.date),o(k.date)];let I=0;for(let $=T-1;$<E;$++)I=Math.max(I,C[$]);const w=I+1;for(let $=T-1;$<E;$++)C[$]=w;b.push({event:k,row:w,eventIndex:v,start:T,end:E})}),b},c=g=>{const C=Array.from({length:12},()=>[]);return g.forEach(b=>{const k=Array.isArray(b.date)?o(b.date[0]):o(b.date);C[k-1].push(b)}),C},d=g=>{const C=g.color||A7[g.type];return C!=null&&C.startsWith("--")?`var(${C})`:C},m=g=>g.icon?g.icon:I7[g.type];return(g,C)=>(t.openBlock(),t.createElementBlock("div",P7,[t.unref(i)?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",O7,[(t.openBlock(),t.createElementBlock(t.Fragment,null,t.renderList(s,b=>t.createElementVNode("div",{class:"month-header",key:b},t.toDisplayString(b),1)),64))])),t.createVNode(t.unref(V.OCollapse),{modelValue:a.value,"onUpdate:modelValue":C[0]||(C[0]=b=>a.value=b)},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.data,(b,k)=>(t.openBlock(),t.createBlock(t.unref(V.OCollapseItem),{key:k,value:b.name},{title:t.withCtx(()=>[t.createElementVNode("div",B7,[t.createElementVNode("div",L7,[t.createElementVNode("div",{class:"title-icon",style:t.normalizeStyle({"--bg-color":d(b)})},[t.createVNode(t.unref(V.OIcon),null,{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(m(b))))]),_:2},1024)],4),t.createElementVNode("span",null,t.toDisplayString(b.name),1)]),b.desc?(t.openBlock(),t.createElementBlock("div",M7,[t.withDirectives(t.createElementVNode("div",null,null,512),[[t.unref(e),b.desc]])])):t.createCommentVNode("",!0)])]),default:t.withCtx(()=>[b.isSpanMonth?(t.openBlock(),t.createElementBlock("div",R7,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l(b.data),({event:v,row:T,eventIndex:E,start:I,end:w})=>(t.openBlock(),t.createElementBlock("div",{key:E,class:t.normalizeClass(["event-item",{"event-item-center":v.align==="center","has-link":v.link}]),style:t.normalizeStyle({gridColumn:`${I} / ${w+1}`,gridRow:T,"--bg-color":d(b)||void 0})},[v.location?(t.openBlock(),t.createElementBlock("div",q7,t.toDisplayString(v.location),1)):t.createCommentVNode("",!0),t.createElementVNode("div",F7,[v.link?(t.openBlock(),t.createBlock(t.unref(V.OLink),t.mergeProps({key:0,href:v.link,target:"_blank"},{ref_for:!0},v.linkProps||{}),{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(v.name),1)]),_:2},1040,["href"])):(t.openBlock(),t.createElementBlock("span",U7,t.toDisplayString(v.name),1))])],6))),128))])):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.unref(i)?(t.openBlock(),t.createElementBlock("div",$7,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c(b.data),(v,T)=>(t.openBlock(),t.createElementBlock("div",{key:T,class:t.normalizeClass(["month-row",{"empty-month":v.length===0}])},[t.createElementVNode("div",z7,t.toDisplayString(s[T]),1),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(v,(E,I)=>(t.openBlock(),t.createElementBlock("div",{key:I,class:t.normalizeClass(["event-item",E.link?"has-link":""]),style:t.normalizeStyle({"--bd-color":d(b)||void 0})},[E.link?(t.openBlock(),t.createBlock(t.unref(V.OLink),{key:0,href:E.link,target:"_blank"},{default:t.withCtx(()=>[t.createElementVNode("div",null,[t.createElementVNode("div",H7,[t.createElementVNode("span",null,t.toDisplayString(E.name),1)]),t.createElementVNode("div",X7,t.toDisplayString(E.location),1)]),t.createVNode(t.unref(V.OIcon),null,{default:t.withCtx(()=>[t.createVNode(t.unref(V.OIconChevronRight))]),_:1})]),_:2},1032,["href"])):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",j7,t.toDisplayString(E.name),1),t.createElementVNode("div",G7,t.toDisplayString(E.location),1)],64))],6))),128))],2))),128))])):(t.openBlock(),t.createElementBlock("div",W7,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c(b.data),(v,T)=>(t.openBlock(),t.createElementBlock("div",{key:T,class:"month-column"},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(v,(E,I)=>(t.openBlock(),t.createElementBlock("div",{key:I,class:t.normalizeClass(["event-item",E.link?"has-link":""]),style:t.normalizeStyle({"--bg-color":d(b)||void 0})},[t.createElementVNode("div",Y7,t.toDisplayString(E.location),1),t.createElementVNode("div",K7,[E.link?(t.openBlock(),t.createBlock(t.unref(V.OLink),{key:0,href:E.link,target:"_blank"},{suffix:t.withCtx(()=>[t.createVNode(t.unref(V.OIcon),null,{default:t.withCtx(()=>[t.createVNode(t.unref(V.OIconChevronRight))]),_:1})]),default:t.withCtx(()=>[t.createElementVNode("span",null,t.toDisplayString(E.name),1)]),_:2},1032,["href"])):(t.openBlock(),t.createElementBlock("span",Q7,t.toDisplayString(E.name),1))])],6))),128))]))),128))]))],64))]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue"])]))}});var Ji=(r=>(r.FINISH="finish",r.ING="ing",r.ALL="",r))(Ji||{});const js=(r,e)=>new Date(r).getTime()>new Date(e).getTime(),J7={class:"o-events-list"},Z7={class:"filter-slot-wrapper"},e6={class:"filter-wrapper"},t6={class:"filter-left"},i6={class:"list-content"},n6={class:"tags-wrapper"},r6={class:"event-name"},s6={class:"event-desc"},a6={class:"event-date"},o6={key:0,class:"event-location"},th=t.defineComponent({__name:"OEventsList",props:{data:{default:()=>[]},page:{},pageSize:{},total:{}},emits:["search"],setup(r,{emit:e}){const{t:i}=Xe.useI18n(),{lePadV:n}=Et.useScreen(),s=r,a=[{label:i("events.statusAll"),value:Ji.ALL},{label:i("events.statusIng"),value:Ji.ING},{label:i("events.statusFinish"),value:Ji.FINISH}],o=e,l=t.ref(Ji.ALL),c=t.ref(""),d=t.ref(""),m=(k={})=>{o("search",Object.assign({page:s.page,pageSize:s.pageSize,status:l.value,keyword:d.value},k))},g=()=>{m()},C=()=>{d.value=c.value,m()},b=t.computed(()=>s.data.map(k=>{let v=k.startDate,T=k.endDate,E=xe(k.date).format("YYYY/MM/DD");if(v&&T){const I=xe().format("YYYY-01-01");js(I,v)&&(v=I);const w=xe().format("YYYY-12-31");js(T,w)&&(T=w),E=`${xe(v).format("YYYY/MM/DD")}-${xe(T).format("MM/DD")}`}return{...k,startDate:v,endDate:T,dateStr:E,status:js(new Date,k.date||k.endDate)?Ji.FINISH:Ji.ING}}).sort((k,v)=>js(k.date||k.endDate,v.date||v.endDate)?-1:1).map(k=>{var E,I,w;const v=(w=(I=(E=k.city)==null?void 0:E.replace("市",""))==null?void 0:I.replace("中国",""))==null?void 0:w.replaceAll(" ","");let T=null;return Array.isArray(Xs[v])?T=Xs[v][k.name.length%Xs[v].length]:T=Xs[v],T||(T=N7),{...k,cover:T}}));return(k,v)=>(t.openBlock(),t.createElementBlock("div",J7,[t.createElementVNode("div",Z7,[t.renderSlot(k.$slots,"filter",{},()=>[t.createElementVNode("div",e6,[t.createElementVNode("div",t6,[t.createElementVNode("span",null,t.toDisplayString(t.unref(i)("events.status")),1),t.createVNode(t.unref(V.ORadioGroup),{modelValue:l.value,"onUpdate:modelValue":v[0]||(v[0]=T=>l.value=T),style:{"--radio-group-gap":"8px"},onChange:g},{default:t.withCtx(()=>[(t.openBlock(),t.createElementBlock(t.Fragment,null,t.renderList(a,T=>t.createVNode(t.unref(V.ORadio),{key:T.value,value:T.value},{radio:t.withCtx(({checked:E})=>[t.createVNode(t.unref(V.OToggle),{checked:E},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(T.label),1)]),_:2},1032,["checked"])]),_:2},1032,["value"])),64))]),_:1},8,["modelValue"])]),t.createVNode(t.unref(V.OInput),{size:"large",modelValue:c.value,"onUpdate:modelValue":v[1]||(v[1]=T=>c.value=T),placeholder:t.unref(i)("events.searchPlaceholder"),onPressEnter:C,onClear:C,clearable:""},{prefix:t.withCtx(()=>[t.createVNode(t.unref(V.OIcon),{class:"input-icon"},{default:t.withCtx(()=>[t.createVNode(t.unref(V.OIconSearch))]),_:1})]),_:1},8,["modelValue","placeholder"])])])]),t.createElementVNode("div",i6,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(b.value,T=>(t.openBlock(),t.createBlock(t.unref(V.OCard),{key:T.name,cover:T.cover,href:T.link},{default:t.withCtx(()=>{var E;return[t.createElementVNode("div",n6,[(E=T.tags)!=null&&E.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(T.tags,I=>(t.openBlock(),t.createBlock(t.unref(V.OTag),{key:I.title,size:"medium"},t.createSlots({default:t.withCtx(()=>[t.createElementVNode("span",null,t.toDisplayString(I.title),1)]),_:2},[I.icon?{name:"icon",fn:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(I.icon)))]),key:"0"}:void 0]),1024))),128)):t.createCommentVNode("",!0),t.createVNode(t.unref(V.OTag),{class:"event-status"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(T.status===t.unref(Ji).ING?t.unref(i)("events.statusIng"):t.unref(i)("events.statusFinish")),1)]),_:2},1024)]),t.createElementVNode("div",r6,t.toDisplayString(T.name),1),t.createElementVNode("div",s6,[t.createElementVNode("div",a6,t.toDisplayString(T.dateStr),1),t.createVNode(t.unref(V.ODivider),{direction:"v"}),T.city?(t.openBlock(),t.createElementBlock("div",o6,t.toDisplayString(T.city),1)):t.createCommentVNode("",!0)])]}),_:2},1032,["cover","href"]))),128))]),b.value.length?t.createCommentVNode("",!0):t.renderSlot(k.$slots,"empty",{key:0}),r.total>8?(t.openBlock(),t.createBlock(t.unref(V.OPagination),{key:1,page:r.page,simple:t.unref(n),"show-total":!0,pageSize:r.pageSize,total:r.total,onChange:m,pageSizes:[4,12,24,36,48]},null,8,["page","simple","pageSize","total"])):t.createCommentVNode("",!0)]))}}),l6={version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};function u6(r,e){return t.openBlock(),t.createElementBlock("svg",l6,[...e[0]||(e[0]=[t.createElementVNode("path",{fill:"#1da9ff",d:"M20.4 5.95c0.27-0.27 0.71-0.27 0.99 0 0.24 0.25 0.27 0.63 0.070 0.91l-0.070 0.080-10.5 10.47c-0.53 0.53-1.36 0.56-1.93 0.1l-0.11-0.1-5.23-5.2c-0.28-0.28-0.28-0.72-0.010-0.99 0.25-0.25 0.63-0.28 0.91-0.080l0.080 0.070 5.24 5.21c0.010 0.010 0.030 0.010 0.040 0.010l0.030-0.010 10.49-10.47z"},null,-1)])])}const c6={name:"events-icon-checked",render:u6},d6={class:"o-events-apply"},h6={class:"events-apply-grid"},f6={class:"timeline-number"},p6={class:"number-circle"},m6={class:"step-title"},g6={class:"step-idx"},v6={class:"step-desc"},y6={key:0},_6={class:"desc-list-wrapper"},b6={key:0,class:"desc-list-title"},T6={class:"desc-list-content"},x6={class:"desc-list-item-title"},C6={class:"desc-list-item-desc"},ih=t.defineComponent({__name:"OEventsApply",props:{steps:{}},setup(r){const{isDark:e}=Et.useTheme(),i=Ca();return(n,s)=>(t.openBlock(),t.createElementBlock("div",d6,[t.createElementVNode("div",h6,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.steps,(a,o)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:o},[t.createElementVNode("div",f6,[t.createElementVNode("div",p6,t.toDisplayString(o+1),1)]),t.createElementVNode("div",{class:t.normalizeClass(["step-item",`step-${o+1} ${t.unref(e)?"is-dark":""}`]),style:{}},[t.createElementVNode("div",m6,[t.createElementVNode("div",g6,t.toDisplayString(o+1),1),t.createElementVNode("span",null,t.toDisplayString(a.title),1)]),t.createElementVNode("div",v6,[a.desc?t.withDirectives((t.openBlock(),t.createElementBlock("div",y6,null,512)),[[t.unref(i),a.desc]]):t.createCommentVNode("",!0),t.renderSlot(n.$slots,`step${o+1}`),t.createElementVNode("div",_6,[a.listTitle?(t.openBlock(),t.createElementBlock("div",b6,t.toDisplayString(a.listTitle),1)):t.createCommentVNode("",!0),t.createElementVNode("div",T6,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.list,(l,c)=>(t.openBlock(),t.createElementBlock("div",{class:"desc-list-item",key:c},[t.createElementVNode("div",x6,[t.createVNode(t.unref(V.OIcon),null,{default:t.withCtx(()=>[t.createVNode(t.unref(c6))]),_:1}),t.createElementVNode("span",null,t.toDisplayString(l.title),1)]),t.createElementVNode("div",C6,t.toDisplayString(l.desc),1)]))),128))])])]),a.img?(t.openBlock(),t.createElementBlock("div",{key:0,class:"img-wrapper",style:t.normalizeStyle({backgroundImage:`url(${a.img})`})},null,4)):t.createCommentVNode("",!0),a.imgPhone?(t.openBlock(),t.createElementBlock("div",{key:1,class:"img-wrapper-phone",style:t.normalizeStyle({backgroundImage:`url(${a.imgPhone})`})},null,4)):t.createCommentVNode("",!0)],2)],64))),128))])]))}}),S6=Object.assign(eh,{install(r){r.component("OEventsCalendar",eh)}}),E6=Object.assign(th,{install(r){r.component("OEventsList",th)}}),k6=Object.assign(ih,{install(r){r.component("OEventsApply",ih)}}),w6={key:0,class:"atom"},D6={class:"atom-text"},V6=["href"],A6=["src"],I6={key:0,class:"quick-nav"},N6={class:"category-title"},P6={class:"navs"},O6=["href"],B6={key:0,class:"friendship-link"},L6={class:"friendship-link-title"},M6={class:"friendship-link-box"},R6=["href"],q6={key:0,class:"footer-logo"},F6=["src"],U6=["src"],$6=["href"],z6={key:1,class:"footer-option"},H6={class:"footer-option-item"},X6=["href"],j6={class:"license"},G6={class:"copyright"},W6={class:"filing"},Y6=["href"],K6=["src"],Q6={key:2,class:"footer-right"},J6={key:0,class:"code-box"},Z6=["src"],e5={class:"code-layer"},t5=["src"],i5={class:"txt"},n5={class:"app-footer-pc"},r5={key:0,class:"footer-left"},s5=["href"],a5=["src"],o5={key:0,class:"footer-right"},l5=["href"],u5={class:"app-footer-mb"},c5={key:0,class:"links"},d5=["href"],h5={class:"copyright"},f5={key:0,class:"approval"},p5=["href"],m5=["src"],g5=t.defineComponent({__name:"OFooter",props:{simple:{default:!1},atom:{default:void 0},lang:{default:void 0},quickNav:{default:void 0},friendshipLink:{default:void 0},footerLogo:{default:void 0},footerOption:{default:void 0},qrcode:{default:void 0},footerBg:{default:void 0}},setup(r){const e=r;return(i,n)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass([e.simple?"app-footer-simple":"app-footer"])},[e.simple?(t.openBlock(),t.createBlock(sn,{key:1},{default:t.withCtx(()=>[t.createElementVNode("div",n5,[i.$slots.left||e.footerOption?t.renderSlot(i.$slots,"left",{key:0},()=>[e.footerOption?(t.openBlock(),t.createElementBlock("div",r5,[t.createElementVNode("span",null,t.toDisplayString(e.footerOption[e.lang].copyright),1),t.createElementVNode("a",{class:"approval",href:e.footerOption[e.lang].beianLink,target:"_blank",rel:"noopener noreferrer"},t.toDisplayString(e.footerOption[e.lang].beianInfo1),9,s5),t.createElementVNode("img",{class:"police-img",src:e.footerOption[e.lang].policeIcon},null,8,a5),t.createElementVNode("span",null,t.toDisplayString(e.footerOption[e.lang].beianInfo2),1)])):t.createCommentVNode("",!0)],!0):t.createCommentVNode("",!0),i.$slots.right||e.footerOption?t.renderSlot(i.$slots,"right",{key:1},()=>[e.footerOption?(t.openBlock(),t.createElementBlock("div",o5,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.footerOption[e.lang].link,(s,a)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:s.url},[t.createElementVNode("a",{target:"_blank",href:s.url,class:"link"},t.toDisplayString(s.name),9,l5),a!==e.footerOption[e.lang].link.length-1?(t.openBlock(),t.createBlock(t.unref(V.ODivider),{key:0,direction:"v"})):t.createCommentVNode("",!0)],64))),128))])):t.createCommentVNode("",!0)],!0):t.createCommentVNode("",!0)]),t.createElementVNode("div",u5,[i.$slots.right||e.footerOption?t.renderSlot(i.$slots,"right",{key:0},()=>[e.footerOption?(t.openBlock(),t.createElementBlock("div",c5,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.footerOption[e.lang].link,(s,a)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:s.url},[t.createElementVNode("a",{target:"_blank",href:s.url,class:"link"},t.toDisplayString(s.name),9,d5),a!==e.footerOption[e.lang].link.length-1?(t.openBlock(),t.createBlock(t.unref(V.ODivider),{key:0,direction:"v"})):t.createCommentVNode("",!0)],64))),128))])):t.createCommentVNode("",!0)],!0):t.createCommentVNode("",!0),t.renderSlot(i.$slots,"copyright",{},()=>[t.createElementVNode("div",h5,t.toDisplayString(e.footerOption[e.lang].copyright),1)],!0),i.$slots.left||e.footerOption?t.renderSlot(i.$slots,"left",{key:1},()=>[e.footerOption?(t.openBlock(),t.createElementBlock("div",f5,[t.createElementVNode("a",{href:e.footerOption[e.lang].beianLink,target:"_blank",rel:"noopener noreferrer"},t.toDisplayString(e.footerOption[e.lang].beianInfo1),9,p5),t.createElementVNode("img",{class:"police-img",src:e.footerOption[e.lang].policeIcon},null,8,m5),t.createElementVNode("span",null,t.toDisplayString(e.footerOption[e.lang].beianInfo2),1)])):t.createCommentVNode("",!0)],!0):t.createCommentVNode("",!0)])]),_:3})):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[i.$slots.atom||e.atom?(t.openBlock(),t.createBlock(sn,{key:0},{default:t.withCtx(()=>[t.renderSlot(i.$slots,"atom",{},()=>{var s,a,o;return[e.atom?(t.openBlock(),t.createElementBlock("div",w6,[t.createElementVNode("p",D6,t.toDisplayString((s=e.atom[e.lang])==null?void 0:s.title),1),t.createElementVNode("a",{href:(a=e.atom[e.lang])==null?void 0:a.href,target:"_blank"},[t.createElementVNode("img",{src:(o=e.atom[e.lang])==null?void 0:o.img,class:"atom-logo",alt:""},null,8,A6)],8,V6)])):t.createCommentVNode("",!0),t.createVNode(t.unref(V.ODivider),{class:"atom-divider"})]},!0)]),_:3})):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"footer-content",style:t.normalizeStyle({backgroundImage:`url(${e.footerBg})`})},[t.createVNode(sn,null,{default:t.withCtx(()=>[i.$slots.quickNav||e.quickNav?t.renderSlot(i.$slots,"quickNav",{key:0},()=>[e.quickNav?(t.openBlock(),t.createElementBlock("div",I6,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.quickNav[e.lang],s=>(t.openBlock(),t.createElementBlock("div",{key:s.title,class:"category"},[t.createElementVNode("div",N6,t.toDisplayString(s.title),1),t.createElementVNode("ul",P6,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.list,a=>(t.openBlock(),t.createElementBlock("li",{key:a.title,class:"nav"},[t.createElementVNode("a",{href:a.link,target:"_blank",rel:"noopener noreferrer"},t.toDisplayString(a.title),9,O6)]))),128))])]))),128))])):t.createCommentVNode("",!0)],!0):t.createCommentVNode("",!0),i.$slots.friendshipLink||e.friendshipLink?t.renderSlot(i.$slots,"friendshipLink",{key:1},()=>[e.friendshipLink?(t.openBlock(),t.createElementBlock("div",B6,[t.createElementVNode("div",L6,t.toDisplayString(e.friendshipLink.title[e.lang]),1),t.createElementVNode("div",M6,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.friendshipLink.link[e.lang],s=>(t.openBlock(),t.createElementBlock("a",{href:s.link,key:s.link,target:"_blank"},t.toDisplayString(s.title),9,R6))),128))])])):t.createCommentVNode("",!0)],!0):t.createCommentVNode("",!0),t.renderSlot(i.$slots,"footer",{},()=>[t.createElementVNode("div",{class:t.normalizeClass(["inner",{"inner-en":e.lang==="en"}])},[e.footerLogo?(t.openBlock(),t.createElementBlock("div",q6,[t.createElementVNode("img",{class:"show-pc",src:e.footerLogo.logo,alt:""},null,8,F6),t.createElementVNode("img",{class:"show-mo",src:e.footerLogo.logoMb,alt:""},null,8,U6),t.createElementVNode("p",null,[t.createElementVNode("a",{class:"email",href:`mailto:${e.footerLogo.email}`,target:"_blank"},t.toDisplayString(e.footerLogo.email),9,$6)])])):t.createCommentVNode("",!0),e.footerOption?(t.openBlock(),t.createElementBlock("div",z6,[t.createElementVNode("div",H6,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.footerOption[e.lang].link,(s,a)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:s.url},[t.createElementVNode("a",{target:"_blank",href:s.url},t.toDisplayString(s.name),9,X6),a!==e.footerOption[e.lang].link.length-1?(t.openBlock(),t.createBlock(t.unref(V.ODivider),{key:0,style:{"--o-divider-bd-color":"var(--o-color-info3-inverse)","--o-divider-label-gap":"0 8px"},direction:"v"})):t.createCommentVNode("",!0)],64))),128))]),t.createElementVNode("p",j6,[t.createElementVNode("span",null,t.toDisplayString(e.footerOption[e.lang].licenseText),1),t.createTextVNode(" "+t.toDisplayString(e.footerOption[e.lang].licenseInfo),1)]),t.createElementVNode("div",G6,[t.createElementVNode("p",null,t.toDisplayString(e.footerOption[e.lang].copyright),1),t.createElementVNode("div",W6,[t.createElementVNode("a",{href:e.footerOption[e.lang].beianLink,target:"_blank"},t.toDisplayString(e.footerOption[e.lang].beianInfo1),9,Y6),t.createElementVNode("img",{src:e.footerOption[e.lang].policeIcon,class:"filing-img"},null,8,K6),t.createElementVNode("p",null,t.toDisplayString(e.footerOption[e.lang].beianInfo2),1)])])])):t.createCommentVNode("",!0),e.qrcode?(t.openBlock(),t.createElementBlock("div",Q6,[e.lang==="zh"?(t.openBlock(),t.createElementBlock("div",J6,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.qrcode,(s,a)=>(t.openBlock(),t.createElementBlock("div",{key:a,class:"code-pop"},[t.createElementVNode("img",{src:s.img,class:"code-img",alt:""},null,8,Z6),t.createElementVNode("div",e5,[t.createElementVNode("img",{src:s.code,alt:""},null,8,t5),t.createElementVNode("p",i5,t.toDisplayString(s.label),1)])]))),128))])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)],2)],!0)]),_:3})],4)],64))],2))}}),nh=Xe._export_sfc(g5,[["__scopeId","data-v-a9088eaf"]]),v5=Object.assign(nh,{install(r){r.component("OFooter",nh)}}),y5={version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};function _5(r,e){return t.openBlock(),t.createElementBlock("svg",y5,[...e[0]||(e[0]=[t.createElementVNode("path",{fill:"currentColor",d:"M9.461 11.616l4.719-3.932c0.212-0.177 0.527-0.148 0.704 0.064 0.075 0.090 0.116 0.203 0.116 0.32v7.865c0 0.276-0.224 0.5-0.5 0.5-0.117 0-0.23-0.041-0.32-0.116l-4.719-3.932c-0.212-0.177-0.241-0.492-0.064-0.704 0.019-0.023 0.041-0.045 0.064-0.064z"},null,-1)])])}const b5={name:"components-icon-caret-left",render:_5},T5={version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};function x5(r,e){return t.openBlock(),t.createElementBlock("svg",T5,[...e[0]||(e[0]=[t.createElementVNode("path",{fill:"currentColor",d:"M14.539 11.616l-4.719-3.932c-0.212-0.177-0.527-0.148-0.704 0.064-0.075 0.090-0.116 0.203-0.116 0.32v7.865c0 0.276 0.224 0.5 0.5 0.5 0.117 0 0.23-0.041 0.32-0.116l4.719-3.932c0.212-0.177 0.241-0.492 0.064-0.704-0.019-0.023-0.041-0.045-0.064-0.064z"},null,-1)])])}const C5={name:"components-icon-caret-right",render:x5},S5={class:"header-nav-wrap"},E5={key:0,class:"right-icon"},k5=["onMouseenter","onMouseleave"],w5=["id"],D5={class:"nav-text"},V5=["id","onClick"],A5={class:"nav-text"},I5={key:1,class:"right-icon"},N5=t.defineComponent({__name:"HeaderNav",props:{navData:{},activeIndex:{},hoverId:{}},emits:["handle-mouseenter","handle-mouseleave","handle-click"],setup(r,{emit:e}){const i=e,{isDark:n}=Et.useTheme(),s=r,a=t.ref(),o=t.ref(),l=t.ref(null),c=t.ref(!1),d=t.ref(!1),m=t.ref(),g=fi.useDebounceFn((q,z)=>{m.value=q==null?void 0:q.id,z==="mouseenter"&&i("handle-mouseenter",q),z==="mouseleave"&&(m.value="",i("handle-mouseleave",q))},100),C=q=>{i("handle-click",q)},b=()=>{d.value=!0,t.nextTick(()=>{a.value.scrollTo({left:a.value.clientWidth,behavior:"smooth"})})},k=()=>{a.value.scrollTo({left:0,behavior:"smooth"}),d.value=!1},v=()=>{var q,z;((q=a.value)==null?void 0:q.clientWidth)<((z=o.value)==null?void 0:z.clientWidth)?c.value=!0:c.value=!1};let T=0,E=0;const I=()=>E=0,w=q=>E>0?void E++:(E++,T=Date.now(),{event:"hover",properties:{module:"navigation",level1:q,target:q}}),$=q=>({properties:{module:"navigation",level1:q.label,target:q.label,steps:E,url:q.href,duration:Date.now()-T}});return t.onMounted(()=>{window.addEventListener("resize",v),t.nextTick(()=>{v(),l.value=setTimeout(()=>{v()},1e3)})}),t.onUnmounted(()=>{window.removeEventListener("resize",v),clearTimeout(l.value)}),(q,z)=>{const N=t.resolveDirective("analytics");return t.openBlock(),t.createElementBlock("div",S5,[t.createElementVNode("div",{class:t.normalizeClass(["header-nav",{"header-nav-scroll":d.value}])},[d.value?(t.openBlock(),t.createElementBlock("div",E5,[t.createVNode(t.unref(V.OIcon),{onClick:k},{default:t.withCtx(()=>[t.createVNode(t.unref(b5))]),_:1})])):t.createCommentVNode("",!0),t.createElementVNode("div",{ref_key:"navRef",ref:a,class:t.normalizeClass(["o-nav",{"o-nav-scroll":d.value||!c.value,dark:t.unref(n)}])},[t.createElementVNode("ul",{ref_key:"navListRef",ref:o,class:"o-nav-list",onMouseenter:I},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.navData,(U,x)=>{var D;return t.withDirectives((t.openBlock(),t.createElementBlock("li",{key:U.id,class:t.normalizeClass({"is-selected":m.value===U.id||s.hoverId===U.id,"is-active":s.activeIndex===x}),onMouseenter:B=>t.unref(g)(U,"mouseenter"),onMouseleave:B=>t.unref(g)(U,"mouseleave")},[(D=U==null?void 0:U.children)!=null&&D.length?(t.openBlock(),t.createElementBlock("div",{key:0,id:"tour_headerNav_"+U.id,class:"nav-item"},[t.createElementVNode("span",D5,t.toDisplayString(U.label),1)],8,w5)):(t.openBlock(),t.createElementBlock("div",{key:1,id:"tour_headerNav_"+U.id,class:"nav-item item-other",onClick:B=>C(U)},[t.createElementVNode("span",A5,t.toDisplayString(U.label),1),U.tag?(t.openBlock(),t.createBlock(t.unref(V.OTag),{key:0,round:"pill",color:"danger",size:"small",class:"content-tag"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(U.tag),1)]),_:2},1024)):t.createCommentVNode("",!0)],8,V5))],42,k5)),[[N,w(U.label),"mouseenter"],[N,$(U),void 0,{catchBubble:!0}]])}),128))],544)],2),c.value&&!d.value?(t.openBlock(),t.createElementBlock("div",I5,[t.createVNode(t.unref(V.OIcon),{onClick:b},{default:t.withCtx(()=>[t.createVNode(t.unref(C5))]),_:1})])):t.createCommentVNode("",!0)],2)])}}}),P5=Xe._export_sfc(N5,[["__scopeId","data-v-fe042238"]]),O5={class:"nav-sub-content"},B5={class:"content-left"},L5={class:"content-label"},M5={class:"content-container"},R5=["href","target"],q5={class:"item-name"},F5={key:0,class:"desc-container"},U5=["title"],$5={key:0,class:"split-line"},z5={key:1,class:"content-right"},H5={class:"content-label"},X5=["href","target"],j5=["href","target"],G5=["src"],W5={class:"review-content"},Y5={class:"review-label"},K5={class:"review-property"},Q5=t.defineComponent({__name:"HeaderContent",props:{itemData:{},itemVisible:{type:Boolean},community:{},bgLeft:{},bgRight:{},hoverIndex:{}},emits:["handle-mouseenter-sub","handle-mouseleave-sub"],setup(r,{emit:e}){const i=e,n=r,{locale:s}=Et.useLocale(),{theme:a}=Et.useTheme(),o=t.ref(!1),l=()=>{var b;i("handle-mouseenter-sub",(b=n.itemData)==null?void 0:b.id),o.value=!0},c=()=>{i("handle-mouseenter-sub",""),o.value=!1},d=t.ref(!1),m=b=>{if(!b||!b.target)return;const k=b.target;d.value=k.clientHeight<k.scrollHeight},g=(b,k)=>({properties:{module:"navigation",level1:b.label,level2:k.label,target:k.label,url:b.href}}),C=b=>({properties:{module:"navigation",level1:s.value==="zh"?"快捷链接":"Quick Link",level2:b.label,target:b.label,url:b.href}});return(b,k)=>{var T,E,I;const v=t.resolveDirective("analytics");return t.openBlock(),t.createElementBlock("div",{onMouseenter:l,onMouseleave:c},[(n.itemVisible||o.value)&&((E=(T=n.itemData)==null?void 0:T.children)!=null&&E.length)?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["nav-content",[(I=n.community)==null?void 0:I.toLowerCase(),n.hoverIndex,t.unref(a),`${n.hoverIndex}-${t.unref(s)}`]])},[t.createElementVNode("div",{class:"nav-background-left",style:t.normalizeStyle({backgroundImage:`url(${n.bgLeft})`})},null,4),t.createElementVNode("div",{class:"nav-background-right",style:t.normalizeStyle({backgroundImage:`url(${n.bgRight})`})},null,4),t.createVNode(sn,null,{default:t.withCtx(()=>[t.createVNode(t.unref(V.OScroller),{class:"nav-scroller","show-type":"always",size:"small","disabled-y":""},{default:t.withCtx(()=>{var w,$,q,z,N,U,x,D;return[t.createElementVNode("div",O5,[t.createElementVNode("div",B5,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((w=n.itemData)==null?void 0:w.children,(B,F)=>(t.openBlock(),t.createElementBlock("div",{class:"item-sub",key:F},[t.createElementVNode("span",L5,t.toDisplayString(B.label),1),t.createElementVNode("div",M5,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(B.children,P=>(t.openBlock(),t.createElementBlock("div",{key:P.label,class:"content-item"},[t.withDirectives((t.openBlock(),t.createElementBlock("a",{href:P.href,target:(P==null?void 0:P.target)||"_self",rel:"noopener noreferrer",class:"item-label"},[t.createElementVNode("span",q5,t.toDisplayString(P.label),1),P.icon?(t.openBlock(),t.createBlock(t.unref(V.OIcon),{key:0},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(P.icon)))]),_:2},1024)):t.createCommentVNode("",!0),P.tag?(t.openBlock(),t.createBlock(t.unref(V.OTag),{key:1,round:"pill",color:"danger",size:"small",class:"content-tag"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(P.tag),1)]),_:2},1024)):t.createCommentVNode("",!0)],8,R5)),[[v,()=>g(B,P)]]),P.description?(t.openBlock(),t.createElementBlock("div",F5,[t.createElementVNode("p",{class:"item-desc",title:d.value?P.description:void 0,onMouseenter:k[0]||(k[0]=L=>m(L))},t.toDisplayString(P.description),41,U5)])):t.createCommentVNode("",!0)]))),128))])]))),128))]),(q=($=n.itemData)==null?void 0:$.shortcut)!=null&&q.length?(t.openBlock(),t.createElementBlock("div",$5)):t.createCommentVNode("",!0),(N=(z=n.itemData)==null?void 0:z.shortcut)!=null&&N.length?(t.openBlock(),t.createElementBlock("div",z5,[t.createElementVNode("span",H5,t.toDisplayString(t.unref(s)==="zh"?"快捷链接":"Quick Link"),1),(U=n.itemData)!=null&&U.withPicture?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList((D=n.itemData)==null?void 0:D.shortcut,B=>t.withDirectives((t.openBlock(),t.createElementBlock("a",{key:B.label,href:B.href,target:(B==null?void 0:B.target)||"_self",rel:"noopener noreferrer",class:"review"},[t.createElementVNode("img",{src:B.picture,class:"review-picture"},null,8,G5),t.createElementVNode("div",W5,[t.createElementVNode("p",Y5,t.toDisplayString(B.label),1),t.createElementVNode("div",K5,t.toDisplayString(B.remark),1)])],8,j5)),[[v,()=>C(B)]])),128)):(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList((x=n.itemData)==null?void 0:x.shortcut,B=>(t.openBlock(),t.createElementBlock("div",{key:B.label,class:"shortcut"},[t.withDirectives((t.openBlock(),t.createElementBlock("a",{href:B.href,target:(B==null?void 0:B.target)||"_self",rel:"noopener noreferrer",class:"shortcut-link"},[t.createElementVNode("span",null,t.toDisplayString(B.label),1),B.icon?(t.openBlock(),t.createBlock(t.unref(V.OIcon),{key:0},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(B.icon)))]),_:2},1024)):t.createCommentVNode("",!0)],8,X5)),[[v,()=>C(B)]])]))),128))])):t.createCommentVNode("",!0)])]}),_:1})]),_:1})],2)):t.createCommentVNode("",!0)],32)}}}),J5=Xe._export_sfc(Q5,[["__scopeId","data-v-a2219e83"]]),Z5={class:"header"},ex=["src"],tx={class:"header-nav"},ix={key:0,class:"header-toolbar"},nx={class:"header-nav-content"},rx=t.defineComponent({__name:"OHeader",props:{logo:{},community:{},navData:{},bgLeft:{},bgRight:{},activeIndex:{},codeData:{},langData:{},isSimpleHeader:{type:Boolean},headerTitle:{}},emits:["go-home","handle-click"],setup(r,{emit:e}){const{isDark:i}=Et.useTheme(),n=e,s=r,a=t.ref(),o=t.ref(),l=t.ref(),c=t.ref(!1),d=()=>{n("go-home")},m=v=>{var T;l.value=v,a.value=v.id,(T=v==null?void 0:v.children)!=null&&T.length&&(c.value=!0)},g=()=>{c.value=!1},C=v=>{n("handle-click",v)},b=v=>{o.value=v},k=v=>{o.value=v};return(v,T)=>(t.openBlock(),t.createElementBlock("div",Z5,[t.createElementVNode("div",{class:t.normalizeClass(["header-wrap",{"header-wrap-dark":t.unref(i)}])},[t.createVNode(sn,{class:"header-content"},{default:t.withCtx(()=>[t.createElementVNode("div",{class:"header-logo",onClick:d},[t.renderSlot(v.$slots,"logo",{},()=>[s.logo?(t.openBlock(),t.createElementBlock("img",{key:0,class:"logo",alt:"logo",src:s.logo},null,8,ex)):t.createCommentVNode("",!0)],!0)]),t.createElementVNode("div",tx,[t.renderSlot(v.$slots,"nav",{},()=>[s.navData?(t.openBlock(),t.createBlock(P5,{key:0,"nav-data":s.navData,hoverId:o.value,"active-index":s.activeIndex,onHandleMouseenter:m,onHandleMouseleave:g,onHandleClick:C},null,8,["nav-data","hoverId","active-index"])):t.createCommentVNode("",!0)],!0)]),v.$slots.toolbar?(t.openBlock(),t.createElementBlock("div",ix,[t.renderSlot(v.$slots,"toolbar",{},void 0,!0)])):t.createCommentVNode("",!0)]),_:3})],2),t.createElementVNode("div",nx,[t.createVNode(J5,{itemData:l.value,"item-visible":c.value,"bg-left":s.bgLeft,"bg-right":s.bgRight,community:s.community,"hover-index":a.value,onHandleMouseenterSub:b,onHandleMouseleaveSub:k},null,8,["itemData","item-visible","bg-left","bg-right","community","hover-index"])])]))}}),rh=Xe._export_sfc(rx,[["__scopeId","data-v-269d575f"]]);var Zi=(r=>(r.NAV="nav",r.CODE="code",r.LANG="lang",r))(Zi||{});const sx={class:"o-nav"},ax={class:"o-nav-list"},ox=["onClick"],lx={class:"nav-aside"},ux={key:0,class:"nav-aside-wrapper"},cx=["value"],dx={class:"content-label"},hx={class:"container-mobile"},fx=["onClick"],px={class:"item-label"},mx={class:"desc-container"},gx={class:"item-desc"},vx=["onClick"],yx={class:"item-label"},_x={key:1,class:"nav-aside-wrapper"},bx=["onClick"],Tx={class:"header-tool"},xx={key:2,class:"other-tool"},Cx=t.defineComponent({__name:"HeaderNavMobile",props:{menuShow:{type:Boolean,default:!1},navData:{default:()=>[]},codeData:{default:()=>[]},langData:{default:()=>[]}},emits:["on-click","lang-click","handle-click"],setup(r,{emit:e}){const i=e,n=r,s=t.ref(""),a=t.ref({}),o=(d,m)=>{var g;m===Zi.NAV?(g=d==null?void 0:d.children)!=null&&g.length?(s.value=d.id,a.value=d):i("handle-click",d):m===Zi.CODE?(s.value=m,a.value=n.codeData.list):m===Zi.LANG&&(s.value=m,a.value=n.langData.list)},l=(d,m)=>{window.open(d,m||"_self"),i("on-click")},c=d=>{s.value===Zi.CODE?l(d.href,d==null?void 0:d.target):s.value===Zi.LANG&&i("lang-click",d)};return t.onMounted(()=>{s.value=n.navData[0].id,a.value=n.navData[0]}),t.watch(()=>n.navData||n.codeData||n.langData,()=>{s.value===Zi.CODE?a.value=n.codeData.list:s.value===Zi.LANG?a.value=n.langData.list:a.value=n.navData.find(d=>d.id===s.value)},{deep:!0}),(d,m)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["header-nav",{active:r.menuShow}])},[t.createElementVNode("div",sx,[t.createElementVNode("ul",ax,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.navData,g=>(t.openBlock(),t.createElementBlock("li",{key:g.id,class:t.normalizeClass({active:s.value===g.id})},[t.createElementVNode("span",{onClick:C=>o(g,"nav")},t.toDisplayString(g.label),9,ox)],2))),128))]),t.createElementVNode("div",lx,[s.value!=="code"&&s.value!=="lang"?(t.openBlock(),t.createElementBlock("ul",ux,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.value.children,g=>(t.openBlock(),t.createElementBlock("li",{value:g.label,key:g.label,class:"nav-aside-content"},[g!=null&&g.children?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("p",dx,t.toDisplayString(g.label),1),t.createElementVNode("div",hx,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(g==null?void 0:g.children,C=>(t.openBlock(),t.createElementBlock("div",{key:C.label,class:"content-container-mobile"},[t.createElementVNode("a",{onClick:b=>l(C.href,C==null?void 0:C.target),rel:"noopener noreferrer",class:"content-subtitle"},[t.createElementVNode("span",px,t.toDisplayString(C.label),1),C.icon?(t.openBlock(),t.createBlock(t.unref(V.OIcon),{key:0},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(C.icon),{class:"icon"}))]),_:2},1024)):t.createCommentVNode("",!0),C.tag?(t.openBlock(),t.createBlock(t.unref(V.OTag),{key:1,round:"pill",color:"danger",size:"small",class:"content-tag"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(C.tag),1)]),_:2},1024)):t.createCommentVNode("",!0)],8,fx),t.createElementVNode("div",mx,[t.createElementVNode("p",gx,t.toDisplayString(C.description),1)])]))),128))])],64)):(t.openBlock(),t.createElementBlock("a",{key:1,onClick:C=>l(g.href,g==null?void 0:g.target),rel:"noopener noreferrer",class:"content-subtitle item-not-children"},[t.createElementVNode("span",yx,t.toDisplayString(g.label),1),g.icon?(t.openBlock(),t.createBlock(t.unref(V.OIcon),{key:0},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(g.icon),{class:"icon"}))]),_:2},1024)):t.createCommentVNode("",!0),g.tag?(t.openBlock(),t.createBlock(t.unref(V.OTag),{key:1,round:"pill",color:"danger",size:"small"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(g.tag),1)]),_:2},1024)):t.createCommentVNode("",!0)],8,vx))],8,cx))),128))])):(t.openBlock(),t.createElementBlock("div",_x,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.value,g=>(t.openBlock(),t.createElementBlock("a",{key:g.label,onClick:C=>c(g),class:"source-code-item"},[t.createElementVNode("span",null,t.toDisplayString(g.label),1),g.icon?(t.openBlock(),t.createBlock(t.unref(V.OIcon),{key:0},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(g.icon),{class:"icon"}))]),_:2},1024)):t.createCommentVNode("",!0)],8,bx))),128))]))])]),t.createElementVNode("div",Tx,[r.codeData?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["header-tool-item",{active:s.value==="code"}]),onClick:m[0]||(m[0]=g=>o(null,"code"))},t.toDisplayString(r.codeData.label),3)):t.createCommentVNode("",!0),r.langData?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["header-tool-item",{active:s.value==="lang"}]),onClick:m[1]||(m[1]=g=>o(null,"lang"))},t.toDisplayString(r.langData.label),3)):t.createCommentVNode("",!0),d.$slots.tool?(t.openBlock(),t.createElementBlock("div",xx,[t.renderSlot(d.$slots,"tool",{},void 0,!0)])):t.createCommentVNode("",!0)])],2))}}),Sx=Xe._export_sfc(Cx,[["__scopeId","data-v-9169adf0"]]),Ex={version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};function kx(r,e){return t.openBlock(),t.createElementBlock("svg",Ex,[...e[0]||(e[0]=[t.createElementVNode("path",{fill:"currentColor",d:"M3.8 5h16.4c0.442 0 0.8 0.359 0.8 0.8s-0.358 0.8-0.8 0.8h-16.4c-0.442 0-0.8-0.358-0.8-0.8s0.358-0.8 0.8-0.8zM3.8 11h16.4c0.442 0 0.8 0.359 0.8 0.8s-0.358 0.8-0.8 0.8h-16.4c-0.442 0-0.8-0.358-0.8-0.8s0.358-0.8 0.8-0.8zM3.8 17h16.4c0.442 0 0.8 0.358 0.8 0.8s-0.358 0.8-0.8 0.8h-16.4c-0.442 0-0.8-0.359-0.8-0.8s0.358-0.8 0.8-0.8z"},null,-1)])])}const wx={name:"components-icon-header-menu",render:kx},Dx={class:"header"},Vx={class:"header-box"},Ax={key:0,class:"header-simple"},Ix={class:"simple-header-left"},Nx={key:0,class:"header-title"},Px={key:0,class:"simple-header-right"},Ox={class:"header-left"},Bx={class:"header-center"},Lx=["src"],Mx={class:"header-right"},Rx=t.defineComponent({__name:"OHeaderMobile",props:{logo:{},community:{},navData:{},bgLeft:{},bgRight:{},activeIndex:{},codeData:{},langData:{},isSimpleHeader:{type:Boolean},headerTitle:{}},emits:["go-back","lang-click","go-home"],setup(r,{emit:e}){const i=e,n=r,s=()=>{i("go-back")},a=()=>{i("go-home")},o=t.ref(!1),l=()=>{setTimeout(()=>{o.value=!o.value},200)},c=()=>{l()},d=()=>{l()},m=g=>{i("lang-click",g),l()};return(g,C)=>(t.openBlock(),t.createElementBlock("div",Dx,[t.createElementVNode("div",Vx,[t.createVNode(sn,{class:"header-wrap"},{default:t.withCtx(()=>[r.isSimpleHeader?(t.openBlock(),t.createElementBlock("div",Ax,[t.createElementVNode("div",Ix,[t.createVNode(t.unref(V.OIcon),{onClick:s},{default:t.withCtx(()=>[t.createVNode(t.unref(V.OIconArrowLeft))]),_:1}),r.headerTitle?(t.openBlock(),t.createElementBlock("div",Nx,t.toDisplayString(r.headerTitle),1)):t.createCommentVNode("",!0)]),g.$slots.rightConfig?(t.openBlock(),t.createElementBlock("div",Px,[t.renderSlot(g.$slots,"rightConfig",{},void 0,!0)])):t.createCommentVNode("",!0)])):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",Ox,[t.createVNode(t.unref(V.OIcon),{onClick:l},{default:t.withCtx(()=>[o.value?(t.openBlock(),t.createBlock(t.unref(Dl),{key:1})):(t.openBlock(),t.createBlock(t.unref(wx),{key:0}))]),_:1})]),t.createElementVNode("div",Bx,[t.createElementVNode("div",{class:"header-logo",onClick:a},[t.renderSlot(g.$slots,"logo",{},()=>[n.logo?(t.openBlock(),t.createElementBlock("img",{key:0,class:"logo",alt:"logo",src:n.logo},null,8,Lx)):t.createCommentVNode("",!0)],!0)])]),t.createElementVNode("div",Mx,[t.renderSlot(g.$slots,"toolbar",{},void 0,!0)])],64))]),_:3})]),t.createElementVNode("div",{class:t.normalizeClass(["header-content-mb",{"header-content-active":o.value}])},[t.createVNode(Sx,{ref:"mobileNav","nav-data":r.navData,"code-data":r.codeData,"lang-data":r.langData,"menu-show":o.value,onHandleClick:d,onOnClick:c,onLangClick:m},{tool:t.withCtx(()=>[t.renderSlot(g.$slots,"tool",{},void 0,!0)]),_:3},8,["nav-data","code-data","lang-data","menu-show"])],2)]))}}),sh=Xe._export_sfc(Rx,[["__scopeId","data-v-1d6060f9"]]),qx=Object.assign(rh,{install(r){r.component("OHeader",rh)}}),Fx=Object.assign(sh,{install(r){r.component("OHeaderMobile",sh)}}),Ux={version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};function $x(r,e){return t.openBlock(),t.createElementBlock("svg",Ux,[...e[0]||(e[0]=[t.createElementVNode("path",{opacity:"0.8",fill:"currentColor",d:"M12.066 3.3c4.775 0.035 8.634 3.917 8.634 8.7s-3.859 8.664-8.633 8.699c-0.024 0.003-0.049 0.004-0.073 0.004-0.019 0-0.038-0.001-0.057-0.003l-0.005-0c-4.774-0.036-8.633-3.918-8.633-8.7s3.859-8.664 8.634-8.7h0.005c0.022-0.002 0.045-0.003 0.067-0.003 0.020 0 0.040 0.001 0.060 0.003zM4.733 11.3h2.589c0.021-0.33 0.058-0.658 0.109-0.984 0.045-0.288 0.103-0.573 0.172-0.857 0.096-0.393 0.213-0.778 0.352-1.155 0.146-0.398 0.317-0.787 0.511-1.168 0.171-0.336 0.36-0.661 0.564-0.975 0.239-0.366 0.501-0.718 0.785-1.055 0.028-0.033 0.056-0.066 0.084-0.099-2.793 0.837-4.882 3.302-5.167 6.293zM4.733 12.7c0.284 2.991 2.374 5.456 5.167 6.293l-0.084-0.099c-0.284-0.337-0.546-0.689-0.785-1.055-0.205-0.314-0.393-0.639-0.564-0.975-0.195-0.38-0.365-0.77-0.511-1.168-0.139-0.377-0.256-0.762-0.352-1.155-0.069-0.284-0.126-0.57-0.172-0.857-0.052-0.326-0.088-0.654-0.109-0.984h-2.589zM8.726 12.7c0.020 0.274 0.053 0.547 0.097 0.817 0.038 0.232 0.085 0.464 0.141 0.693 0.171 0.702 0.42 1.374 0.749 2.017 0.147 0.288 0.309 0.567 0.484 0.837 0.21 0.322 0.439 0.631 0.689 0.927 0.242 0.287 0.5 0.558 0.774 0.812l0.071 0.065q0.132 0.121 0.27 0.237 0.137-0.116 0.27-0.237l0.071-0.065c0.273-0.254 0.531-0.525 0.774-0.812 0.25-0.296 0.479-0.605 0.689-0.927 0.175-0.27 0.337-0.549 0.484-0.837 0.329-0.643 0.578-1.316 0.749-2.017 0.056-0.23 0.103-0.461 0.141-0.693 0.044-0.27 0.077-0.543 0.097-0.817h-6.548zM15.274 11.3c-0.020-0.274-0.053-0.547-0.097-0.817-0.038-0.233-0.085-0.464-0.141-0.694-0.082-0.34-0.184-0.673-0.304-0.999-0.128-0.347-0.276-0.687-0.445-1.018-0.147-0.288-0.309-0.567-0.484-0.837-0.209-0.322-0.439-0.631-0.689-0.927-0.242-0.287-0.501-0.558-0.774-0.813l-0.071-0.065q-0.132-0.121-0.27-0.237-0.137 0.116-0.27 0.237l-0.071 0.065c-0.273 0.254-0.531 0.525-0.774 0.813-0.25 0.296-0.479 0.605-0.689 0.927-0.176 0.27-0.337 0.549-0.484 0.837-0.169 0.332-0.318 0.671-0.445 1.018-0.12 0.326-0.221 0.659-0.304 0.999-0.056 0.23-0.103 0.461-0.141 0.694-0.044 0.27-0.077 0.543-0.097 0.817h6.548zM16.677 11.3h2.589c-0.284-2.991-2.374-5.456-5.167-6.293l0.084 0.099c0.284 0.337 0.546 0.689 0.785 1.055 0.205 0.314 0.393 0.639 0.564 0.975 0.195 0.381 0.365 0.77 0.511 1.168 0.139 0.377 0.256 0.762 0.351 1.155 0.069 0.284 0.126 0.57 0.172 0.857 0.051 0.326 0.088 0.654 0.109 0.984zM16.677 12.7c-0.021 0.33-0.058 0.658-0.109 0.984-0.045 0.288-0.103 0.573-0.172 0.857-0.096 0.393-0.213 0.778-0.351 1.155-0.147 0.398-0.317 0.788-0.511 1.168-0.171 0.336-0.36 0.661-0.564 0.975-0.239 0.366-0.501 0.718-0.785 1.055l-0.084 0.099c2.793-0.838 4.882-3.302 5.167-6.293h-2.589z"},null,-1)])])}const zx={name:"components-icon-locale",render:$x},Hx={class:"info-wrap"},Xx=["onClick"],jx=t.defineComponent({__name:"OHeaderLanguageSwitcher",props:{options:{type:Array,default(){return[{id:"zh",label:"简体中文",simple:"中"},{id:"en",label:"English",simple:"EN"}]}},type:{type:String,default:"auto"},auto:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1}},emits:["change"],setup(r,{emit:e}){const i=r,{changeLocale:n,locale:s}=Et.useLocale(),{lePadV:a}=Et.useScreen(),o=t.computed(()=>s.value),l=e,c=g=>{i.auto&&n(),l("change",g)},d=(g,C)=>{const b=i.options.find(v=>v.id===g);if(b)return C?b.simple:b.label;const k=i.options[0];return C?k.simple:k.label},m=t.computed(()=>i.type==="common"||i.type==="auto"&&!a.value);return(g,C)=>m.value?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass([r.options.length<=1?"hide-lang":"header-lang",r.disabled?"is-disabled":""])},[t.createVNode(t.unref(V.ODropdown),{trigger:"hover",optionPosition:"bottom","option-width-mode":"auto",optionWrapClass:{dropdown:!0,"is-disabled":r.disabled}},{dropdown:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.options,b=>(t.openBlock(),t.createBlock(t.unref(V.ODropdownItem),{onClick:k=>c(b),key:b.id,class:t.normalizeClass(["list",{"is-active":o.value===b.id}])},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(d(b.id)),1)]),_:2},1032,["onClick","class"]))),128))]),default:t.withCtx(()=>[t.createElementVNode("div",Hx,[t.createVNode(t.unref(V.OIcon),{class:"icon"},{default:t.withCtx(()=>[t.createVNode(t.unref(zx)),t.createElementVNode("div",{class:t.normalizeClass(["locale-tag",{"is-en":o.value==="en"}])},t.toDisplayString(d(o.value,!0)),3)]),_:1})])]),_:1},8,["optionWrapClass"])],2)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass([r.options.length<=1?"hide-lang":"mobile-change-language",r.disabled?"is-disabled":""])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.options,(b,k)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:b.id},[k!==0?(t.openBlock(),t.createBlock(t.unref(V.ODivider),{key:0,direction:"v"})):t.createCommentVNode("",!0),t.createElementVNode("span",{class:t.normalizeClass({active:o.value===b.id}),onClick:t.withModifiers(v=>c(b),["stop"])},t.toDisplayString(d(b.id,!0)),11,Xx)],64))),128))],2))}}),ah=Xe._export_sfc(jx,[["__scopeId","data-v-07aa851a"]]),Gx=Object.assign(ah,{install(r){r.component("OHeaderLanguageSwitcher",ah)}});function Wx(r){const e=t.ref(""),i=t.ref(null),n=t.ref(""),s=t.ref(!1);let a=null;const o=T=>{var w,$,q,z;const E=(w=r.allowedImageTypes)==null?void 0:w.value,I=E&&E.length>0?E.includes(T.type):($=T.type)==null?void 0:$.startsWith("image/");return!T.type||!I?((q=r.onValidationError)==null||q.call(r,"type",T),!1):r.maxImageSize.value>0&&T.size>r.maxImageSize.value?((z=r.onValidationError)==null||z.call(r,"size",T),!1):!0},l=()=>{if(e.value)try{URL.revokeObjectURL(e.value)}catch{}e.value="",i.value=null,n.value="",s.value=!1,a=null},c=T=>{if(!T){i.value||l();return}if(n.value!==T){if(e.value&&e.value.startsWith("blob:"))try{URL.revokeObjectURL(e.value)}catch{}n.value=T,e.value=T,i.value=null}},d=T=>{var I,w;if(!o(T))return;l(),i.value=T,e.value=URL.createObjectURL(T),(I=r.onUploadStart)==null||I.call(r,T);const E=(w=r.uploadImage)==null?void 0:w.value;E&&(s.value=!0,a=Promise.resolve().then(()=>E(T)).then($=>{var q;$&&i.value===T&&(n.value=$,(q=r.onUploadSuccess)==null||q.call(r,$,T))}).catch($=>{var q;(q=r.onUploadError)==null||q.call(r,$,T)}).finally(()=>{s.value=!1}))},m=T=>{var I;const E=(I=T.clipboardData)==null?void 0:I.items;if(E)for(let w=0;w<E.length;w++){const $=E[w];if($.type.startsWith("image/")){const q=$.getAsFile();q&&d(q);break}}},g=T=>{T.preventDefault(),T.stopPropagation()},C=T=>{var I,w;T.preventDefault(),T.stopPropagation();const E=(w=(I=T.dataTransfer)==null?void 0:I.files)==null?void 0:w[0];E&&E.type.startsWith("image/")&&d(E)},b=T=>{var w;const E=T.target,I=(w=E.files)==null?void 0:w[0];I&&d(I),E&&(E.value="")},k=T=>{T&&(T.value="",T.click())},v=()=>a??Promise.resolve();return t.onBeforeUnmount(l),{previewUrl:e,file:i,uploadedUrl:n,isUploading:s,onPaste:m,onDrop:C,onDragOver:g,onFileChange:b,pickFile:k,handleImageFile:d,reset:l,setExternalUrl:c,awaitUpload:v}}const Yx={version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32"};function Kx(r,e){return t.openBlock(),t.createElementBlock("svg",Yx,[...e[0]||(e[0]=[t.createElementVNode("path",{opacity:"0.8",fill:"currentColor",d:"M13.215 0.524c-7.048 0-12.762 5.714-12.762 12.762s5.714 12.762 12.762 12.762c7.048 0 12.762-5.714 12.762-12.762s-5.714-12.762-12.762-12.762zM13.215 2.809c5.786 0 10.476 4.69 10.476 10.476s-4.69 10.476-10.476 10.476c-5.786 0-10.476-4.69-10.476-10.476s4.69-10.476 10.476-10.476z"},null,-1),t.createElementVNode("path",{opacity:"0.8",fill:"currentColor",d:"M23.33 23.22c0.446-0.447 1.169-0.448 1.616-0.002l4.771 4.759c0.447 0.446 0.448 1.169 0.002 1.616s-1.169 0.448-1.616 0.002l-4.771-4.759c-0.447-0.446-0.448-1.169-0.002-1.616z"},null,-1)])])}const cp={name:"components-icon-header-search",render:Kx},Qx={version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};function Jx(r,e){return t.openBlock(),t.createElementBlock("svg",Qx,[...e[0]||(e[0]=[t.createElementVNode("path",{opacity:"0.8",d:"M19.724 4.238c1.105 0 2 0.895 2 2v6.772c0 0.387-0.313 0.7-0.7 0.7s-0.7-0.313-0.7-0.7v-0.816l-3.544 3.84c-0.248 0.268-0.661 0.301-0.948 0.075l-4.13-3.256-3.925 3.843c-0.249 0.243-0.632 0.264-0.904 0.064l-0.086-0.075c-0.27-0.276-0.266-0.72 0.011-0.99l4.365-4.273c0.251-0.246 0.647-0.267 0.923-0.050l4.104 3.235 4.134-4.478v-3.892c0-0.331-0.269-0.6-0.6-0.6h-15.45c-0.331 0-0.6 0.269-0.6 0.6v11.501c0 0.331 0.269 0.6 0.6 0.6h9.781c0.387 0 0.7 0.313 0.7 0.7s-0.313 0.7-0.7 0.7h-9.781c-1.105 0-2-0.895-2-2v-11.501c0-1.105 0.895-2 2-2h15.45zM9.532 8.878c0-0.695-0.579-1.259-1.294-1.259s-1.294 0.564-1.294 1.259c0 0.695 0.579 1.259 1.294 1.259s1.294-0.564 1.294-1.259zM16.561 18.645c-0.195-0.195-0.195-0.512 0-0.707l2.090-2.090c0.010-0.011 0.020-0.021 0.030-0.030l0.001-0.001c0.195-0.195 0.512-0.195 0.707 0l2.121 2.121c0.195 0.195 0.195 0.512 0 0.707s-0.512 0.195-0.707 0l-1.284-1.284v3.57c0 0.276-0.224 0.5-0.5 0.5s-0.5-0.224-0.5-0.5v-3.538l-1.251 1.251c-0.174 0.174-0.443 0.193-0.638 0.058l-0.069-0.058z"},null,-1)])])}const Zx={name:"components-icon-image-upload",render:Jx},eC={version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};function tC(r,e){return t.openBlock(),t.createElementBlock("svg",eC,[...e[0]||(e[0]=[t.createElementVNode("path",{fill:"#6f6f75",d:"M22.5 12c0 5.799-4.701 10.5-10.5 10.5s-10.5-4.701-10.5-10.5c0-5.799 4.701-10.5 10.5-10.5s10.5 4.701 10.5 10.5z"},null,-1),t.createElementVNode("path",{fill:"#ffffff",d:"M15.3 7.631c0.274-0.197 0.657-0.172 0.903 0.074 0.273 0.273 0.273 0.717 0 0.99l-3.259 3.259 3.259 3.259c0.273 0.273 0.273 0.717 0 0.99-0.246 0.246-0.63 0.271-0.903 0.074l-0.087-0.074-3.259-3.259-3.259 3.259-0.087 0.074c-0.274 0.197-0.657 0.172-0.903-0.074-0.273-0.273-0.273-0.717 0-0.99l3.259-3.259-3.259-3.259c-0.273-0.273-0.273-0.717 0-0.99 0.246-0.246 0.63-0.271 0.903-0.074l0.087 0.074 3.259 3.259 3.259-3.259 0.087-0.074z"},null,-1)])])}const El={name:"components-icon-delete-hover",render:tC},iC={version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};function nC(r,e){return t.openBlock(),t.createElementBlock("svg",iC,[...e[0]||(e[0]=[t.createElementVNode("path",{fill:"currentColor",d:"M3.398 10.877c0-4.099 3.323-7.423 7.423-7.423s7.423 3.323 7.423 7.423c0 4.099-3.323 7.423-7.423 7.423s-7.423-3.323-7.423-7.423zM16.774 10.877c0-3.326-2.657-6.023-5.935-6.023s-5.935 2.696-5.935 6.023c0 3.326 2.657 6.023 5.935 6.023s5.935-2.696 5.935-6.023zM11.499 13.369c0 0.365-0.296 0.661-0.661 0.661s-0.661-0.296-0.661-0.661v-1.821h-1.775c-0.371 0-0.671-0.3-0.671-0.671s0.3-0.671 0.671-0.671h1.775v-1.821c0-0.365 0.296-0.661 0.661-0.661s0.661 0.296 0.661 0.661v1.821h1.775c0.371 0 0.671 0.3 0.671 0.671s-0.3 0.671-0.671 0.671h-1.775v1.821zM16.579 16.598c0.242-0.246 0.62-0.271 0.89-0.075l0.086 0.074 2.72 2.754c0.27 0.273 0.27 0.716 0.001 0.99-0.242 0.246-0.62 0.271-0.89 0.075l-0.086-0.074-2.72-2.754c-0.27-0.273-0.27-0.716-0.001-0.99z"},null,-1)])])}const oh={name:"components-icon-image-zoomin",render:nC},rC={class:"o-search-image-input-row"},sC={key:0,class:"o-search-image-input-thumb"},aC={key:0,class:"o-search-image-input-preview"},oC={class:"o-search-image-input-preview-wrapper"},lC={class:"o-search-image-input-preview-zoom"},uC=["accept"],cC=t.defineComponent({__name:"SearchImageInput",props:{modelValue:{default:""},imageUrl:{default:""},placeholder:{},imagePlaceholder:{},size:{default:"medium"},enableImageSearch:{type:Boolean,default:!1},uploadImage:{},maxImageSize:{default:10*1024*1024},imageUploadTooltip:{},expanded:{type:Boolean,default:!0},clearable:{type:Boolean,default:!0},showSuffix:{type:Boolean,default:!0},inlineThumbnail:{type:Boolean,default:!1},preview:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},allowedImageTypes:{default:()=>["image/jpeg","image/png","image/gif","image/webp"]}},emits:["update:modelValue","update:imageUrl","focus","blur","enter","clear","image-clear","image-upload-start","image-upload-success","image-upload-error","image-validate-error","preview-change"],setup(r,{expose:e,emit:i}){const n=r,s=i,{t:a}=Xe.useI18n(),o=t.computed(()=>n.uploadImage),l=t.computed(()=>n.maxImageSize),c=t.computed(()=>n.allowedImageTypes),d=t.computed(()=>(n.allowedImageTypes??[]).join(",")),m=Wx({uploadImage:o,maxImageSize:l,allowedImageTypes:c,onUploadStart:B=>s("image-upload-start",B),onUploadSuccess:(B,F)=>{s("update:imageUrl",B),s("image-upload-success",B,F)},onUploadError:(B,F)=>s("image-upload-error",B,F),onValidationError:(B,F)=>s("image-validate-error",B,F)}),g=t.ref(),C=t.ref(),b=t.ref(null),k=t.computed({get:()=>n.modelValue,set:B=>s("update:modelValue",B)});t.watch(()=>n.imageUrl,B=>{m.setExternalUrl(B)},{immediate:!0});const v=t.computed(()=>!!m.previewUrl.value),T=t.computed(()=>v.value?n.imagePlaceholder??a("search.extendedPlaceholder"):n.placeholder??a("search.placeholder")),E=()=>{k.value="",v.value&&I(),s("clear")},I=()=>{m.reset(),s("update:imageUrl",""),s("image-clear")},w=()=>{m.pickFile(g.value),t.nextTick(()=>{var B,F;return(F=(B=C.value)==null?void 0:B.focus)==null?void 0:F.call(B)})},$=B=>{m.onFileChange(B),t.nextTick(()=>{var F,P;return(P=(F=C.value)==null?void 0:F.focus)==null?void 0:P.call(F)})},q=B=>{n.enableImageSearch&&m.onPaste(B)},z=B=>{n.enableImageSearch&&m.onDragOver(B)},N=B=>{n.enableImageSearch&&m.onDrop(B)},U=B=>{s("preview-change",B)},x=t.computed(()=>!!k.value||v.value);return e({focus:()=>{var B,F;return(F=(B=C.value)==null?void 0:B.focus)==null?void 0:F.call(B)},blur:()=>{var B,F;return(F=(B=C.value)==null?void 0:B.blur)==null?void 0:F.call(B)},awaitUpload:()=>m.awaitUpload(),getUploadedUrl:()=>m.uploadedUrl.value,getIsUploading:()=>m.isUploading.value,resetImage:()=>{m.reset(),s("update:imageUrl","")}}),(B,F)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["o-search-image-input",{"has-image":v.value,"is-expanded":r.expanded&&v.value}]),onDragover:z,onDrop:N},[t.createElementVNode("div",rC,[t.createVNode(t.unref(V.OInput),{ref_key:"inputRef",ref:C,modelValue:k.value,"onUpdate:modelValue":F[3]||(F[3]=P=>k.value=P),placeholder:T.value,size:r.size,disabled:r.disabled,class:"o-search-image-input-input",onPressEnter:F[4]||(F[4]=P=>s("enter")),onFocus:F[5]||(F[5]=P=>s("focus",P)),onBlur:F[6]||(F[6]=P=>s("blur",P)),onPaste:q},t.createSlots({prefix:t.withCtx(()=>[t.renderSlot(B.$slots,"prefix",{},()=>[t.createVNode(t.unref(V.OIcon),{class:"o-search-image-input-icon"},{default:t.withCtx(()=>[t.createVNode(t.unref(cp))]),_:1})],!0),r.inlineThumbnail&&v.value?(t.openBlock(),t.createElementBlock("div",sC,[t.createVNode(t.unref(V.OFigure),{src:t.unref(m).previewUrl.value,alt:"",class:"o-search-image-input-thumb-figure"},null,8,["src"]),t.createElementVNode("div",{class:"o-search-image-input-thumb-zoom",onMousedown:F[0]||(F[0]=t.withModifiers(()=>{},["prevent"]))},[t.createVNode(t.unref(V.OIcon),{class:"o-search-image-input-thumb-zoom-icon"},{default:t.withCtx(()=>[t.createVNode(t.unref(oh))]),_:1})],32),t.createVNode(t.unref(V.OIcon),{class:"o-search-image-input-thumb-remove",onMousedown:F[1]||(F[1]=t.withModifiers(()=>{},["prevent"])),onClick:t.withModifiers(I,["stop"])},{default:t.withCtx(()=>[t.createVNode(t.unref(El))]),_:1})])):t.createCommentVNode("",!0)]),_:2},[r.showSuffix?{name:"suffix",fn:t.withCtx(()=>[t.renderSlot(B.$slots,"suffix",{hasValue:x.value},()=>[r.enableImageSearch?(t.openBlock(),t.createElementBlock("span",{key:0,ref_key:"uploadBtnRef",ref:b,class:"o-search-image-input-upload-btn"},[t.createVNode(t.unref(V.OIcon),{class:"o-search-image-input-icon upload",onClick:t.withModifiers(w,["stop"])},{default:t.withCtx(()=>[t.createVNode(t.unref(Zx))]),_:1})],512)):t.createCommentVNode("",!0),r.enableImageSearch&&b.value?(t.openBlock(),t.createBlock(t.unref(V.OPopover),{key:1,trigger:"hover",position:"bottom",target:b.value,"body-class":"o-search-image-input-tooltip"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(r.imageUploadTooltip??t.unref(a)("search.imageUploadTooltip")),1)]),_:1},8,["target"])):t.createCommentVNode("",!0),r.clearable&&x.value?(t.openBlock(),t.createBlock(t.unref(V.OIcon),{key:2,class:"o-search-image-input-icon close",onMousedown:F[2]||(F[2]=t.withModifiers(()=>{},["prevent"])),onClick:t.withModifiers(E,["stop"])},{default:t.withCtx(()=>[t.createVNode(t.unref(Dl))]),_:1})):t.createCommentVNode("",!0)],!0)]),key:"0"}:void 0]),1032,["modelValue","placeholder","size","disabled"])]),r.expanded&&v.value?(t.openBlock(),t.createElementBlock("div",aC,[t.renderSlot(B.$slots,"preview",{previewUrl:t.unref(m).previewUrl.value,remove:I},()=>[t.createElementVNode("div",oC,[t.createVNode(t.unref(V.OFigure),{src:t.unref(m).previewUrl.value,preview:r.preview,alt:"",class:"o-search-image-input-preview-figure",onPreview:U},null,8,["src","preview"]),t.createElementVNode("div",lC,[t.createVNode(t.unref(V.OIcon),{class:"o-search-image-input-preview-zoom-icon"},{default:t.withCtx(()=>[t.createVNode(t.unref(oh))]),_:1})]),t.createVNode(t.unref(V.OIcon),{class:"o-search-image-input-preview-remove",onClick:t.withModifiers(I,["stop"])},{default:t.withCtx(()=>[t.createVNode(t.unref(El))]),_:1})])],!0)])):t.createCommentVNode("",!0),r.enableImageSearch?(t.openBlock(),t.createElementBlock("input",{key:1,ref_key:"fileInputRef",ref:g,type:"file",accept:d.value,class:"o-search-image-input-file",onChange:$},null,40,uC)):t.createCommentVNode("",!0)],34))}}),dp=Xe._export_sfc(cC,[["__scopeId","data-v-f28dde35"]]),dC={version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};function hC(r,e){return t.openBlock(),t.createElementBlock("svg",dC,[...e[0]||(e[0]=[t.createStaticVNode('<path opacity="0.8" fill="currentColor" d="M5.616 4.34c0.368 0 0.674 0.265 0.738 0.615l0.012 0.135v14.968c0 0.213 0.148 0.391 0.347 0.438l0.103 0.012h10.719c0.213 0 0.391-0.148 0.438-0.347l0.012-0.103v-11.712c0-0.414 0.336-0.75 0.75-0.75 0.368 0 0.674 0.265 0.738 0.615l0.012 0.135v11.712c0 1.010-0.767 1.84-1.751 1.94l-0.199 0.010h-10.719c-1.010 0-1.84-0.767-1.94-1.751l-0.010-0.199v-14.968c0-0.414 0.336-0.75 0.75-0.75z"></path><path opacity="0.8" fill="currentColor" d="M20.19 4.34c0.414 0 0.75 0.336 0.75 0.75 0 0.368-0.265 0.674-0.615 0.738l-0.135 0.012h-16.333c-0.414 0-0.75-0.336-0.75-0.75 0-0.368 0.265-0.674 0.615-0.738l0.135-0.012h16.333z"></path><path opacity="0.8" fill="currentColor" d="M14.256 1.936c0.414 0 0.75 0.336 0.75 0.75 0 0.368-0.265 0.674-0.615 0.738l-0.135 0.012h-4.535c-0.414 0-0.75-0.336-0.75-0.75 0-0.368 0.265-0.674 0.615-0.738l0.135-0.012h4.535z"></path><path opacity="0.8" fill="currentColor" d="M10.096 9.419c0.368 0 0.674 0.265 0.738 0.615l0.012 0.135v6.484c0 0.414-0.336 0.75-0.75 0.75-0.368 0-0.674-0.265-0.738-0.615l-0.012-0.135v-6.484c0-0.414 0.336-0.75 0.75-0.75z"></path><path opacity="0.8" fill="currentColor" d="M14.596 9.419c0.368 0 0.674 0.265 0.738 0.615l0.012 0.135v6.484c0 0.414-0.336 0.75-0.75 0.75-0.368 0-0.674-0.265-0.738-0.615l-0.012-0.135v-6.484c0-0.414 0.336-0.75 0.75-0.75z"></path>',5)])])}const fC={name:"components-icon-delete",render:hC},pC={version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};function mC(r,e){return t.openBlock(),t.createElementBlock("svg",pC,[...e[0]||(e[0]=[t.createElementVNode("path",{opacity:"0.8",fill:"currentColor",d:"M17.947 4.273c-1.676-1.292-3.752-2.023-5.948-2.023-5.385 0-9.75 4.365-9.75 9.75s4.365 9.75 9.75 9.75c4.032 0 7.604-2.47 9.066-6.156 0.153-0.385-0.035-0.821-0.42-0.974s-0.821 0.036-0.974 0.42c-1.237 3.119-4.26 5.209-7.672 5.209-4.556 0-8.25-3.694-8.25-8.25s3.694-8.25 8.25-8.25c1.837 0 3.574 0.604 4.983 1.673l-1.305 1.556c-0.077 0.092-0.021 0.232 0.098 0.246l4.873 0.539c0.106 0.012 0.191-0.088 0.16-0.191l-1.377-4.706c-0.034-0.115-0.182-0.146-0.259-0.054l-1.226 1.461z"},null,-1)])])}const gC={name:"components-icon-refresh",render:mC},vC=/[.*+?^${}()|[\]\\]/g;function yC(r,e){const i=(e||"").trim();if(!i)return[{text:r,match:!1}];const n=i.replace(vC,"\\$&"),s=new RegExp(n,"gi"),a=[];let o=0,l;for(;(l=s.exec(r))!==null;){if(l.index===s.lastIndex){s.lastIndex++;continue}l.index>o&&a.push({text:r.slice(o,l.index),match:!1}),a.push({text:l[0],match:!0}),o=l.index+l[0].length}return o<r.length&&a.push({text:r.slice(o),match:!1}),a}const _C={class:"o-search-highlight-text"},bC=t.defineComponent({__name:"HighlightText",props:{text:{},keyword:{},enabled:{type:Boolean,default:!0}},setup(r){const e=r,i=t.computed(()=>!e.enabled||!e.keyword?[{text:e.text,match:!1}]:yC(e.text,e.keyword));return(n,s)=>(t.openBlock(),t.createElementBlock("span",_C,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.value,(a,o)=>(t.openBlock(),t.createElementBlock("span",{key:o,class:t.normalizeClass({"is-match":a.match})},t.toDisplayString(a.text),3))),128))]))}}),lh=Xe._export_sfc(bC,[["__scopeId","data-v-2a99e23c"]]),TC={class:"o-search-panel"},xC={key:0,class:"o-search-panel-section o-search-panel-onestep"},CC={class:"o-search-panel-section-title onestep"},SC=["onClick"],EC={key:0,class:"o-search-panel-onestep-tag"},kC={key:1,class:"o-search-panel-divider"},wC={key:2,class:"o-search-panel-section o-search-panel-suggest"},DC={class:"o-search-panel-section-title suggest"},VC=["onClick"],AC={key:1,class:"o-search-panel-no-data"},IC={key:3,class:"o-search-panel-section o-search-panel-recommend"},NC=["onClick"],PC={key:4,class:"o-search-panel-section o-search-panel-history"},OC={class:"o-search-panel-common-header"},BC={class:"o-search-panel-section-title"},LC=["onClick"],MC={class:"o-search-panel-history-row-text"},RC={key:1,class:"o-search-panel-history-list"},qC=["onClick"],FC={class:"o-search-panel-history-text"},UC={key:5,class:"o-search-panel-divider"},$C={key:6,class:"o-search-panel-section o-search-panel-hot"},zC={class:"o-search-panel-common-header"},HC={class:"o-search-panel-section-title"},XC={class:"o-search-panel-hot-list"},jC=["onClick"],GC=t.defineComponent({__name:"SearchPanel",props:{keyword:{default:""},onestepItems:{default:()=>[]},onestepTitle:{},suggestItems:{default:()=>[]},suggestTitle:{},recommendItems:{default:()=>[]},historyItems:{default:()=>[]},historyTitle:{},hotItems:{default:()=>[]},hotTitle:{},noDataText:{},highlightKeyword:{type:Boolean,default:!0},hideOnKeyword:{type:Boolean,default:!1},showSuggestEmpty:{type:Boolean,default:!1},isDark:{type:Boolean,default:!1},historyLayout:{default:"chips"}},emits:["onestep-click","suggest-click","recommend-click","history-click","hot-click","history-remove","history-clear","hot-refresh"],setup(r,{emit:e}){const i=r,n=e,{t:s}=Xe.useI18n(),a=t.computed(()=>{var b;return!!((b=i.keyword)!=null&&b.trim())}),o=t.computed(()=>a.value&&i.onestepItems.length>0),l=t.computed(()=>a.value&&(i.suggestItems.length>0||i.showSuggestEmpty)),c=t.computed(()=>!a.value&&i.recommendItems.length>0),d=t.computed(()=>(!i.hideOnKeyword||!a.value)&&i.historyItems.length>0),m=t.computed(()=>(!i.hideOnKeyword||!a.value)&&i.hotItems.length>0),g=t.computed(()=>o.value&&l.value),C=t.computed(()=>d.value&&m.value);return(b,k)=>(t.openBlock(),t.createElementBlock("div",TC,[o.value?(t.openBlock(),t.createElementBlock("div",xC,[t.renderSlot(b.$slots,"onestep-header",{items:r.onestepItems},()=>[t.createElementVNode("div",CC,t.toDisplayString(r.onestepTitle??t.unref(s)("search.onestep")),1)],!0),t.renderSlot(b.$slots,"onestep-content",{items:r.onestepItems,keyword:r.keyword},()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.onestepItems,v=>(t.openBlock(),t.createElementBlock("div",{key:v.key+(v.path??""),class:"o-search-panel-item o-search-panel-onestep-item",onClick:T=>n("onestep-click",v)},[t.createVNode(lh,{text:v.key,keyword:r.keyword,enabled:r.highlightKeyword},null,8,["text","keyword","enabled"]),v.type?(t.openBlock(),t.createElementBlock("span",EC,t.toDisplayString(v.type),1)):t.createCommentVNode("",!0)],8,SC))),128))],!0)])):t.createCommentVNode("",!0),g.value?(t.openBlock(),t.createElementBlock("div",kC)):t.createCommentVNode("",!0),l.value?(t.openBlock(),t.createElementBlock("div",wC,[t.renderSlot(b.$slots,"suggest-header",{items:r.suggestItems},()=>[t.createElementVNode("div",DC,t.toDisplayString(r.suggestTitle??t.unref(s)("search.suggest")),1)],!0),t.renderSlot(b.$slots,"suggest-content",{items:r.suggestItems,keyword:r.keyword},()=>[r.suggestItems.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(r.suggestItems,v=>(t.openBlock(),t.createElementBlock("div",{key:v.key,class:"o-search-panel-item",onClick:T=>n("suggest-click",v)},[t.createVNode(lh,{text:v.key,keyword:r.keyword,enabled:r.highlightKeyword},null,8,["text","keyword","enabled"])],8,VC))),128)):(t.openBlock(),t.createElementBlock("div",AC,t.toDisplayString(r.noDataText??t.unref(s)("search.noData")),1))],!0)])):t.createCommentVNode("",!0),c.value?(t.openBlock(),t.createElementBlock("div",IC,[t.renderSlot(b.$slots,"recommend-header",{items:r.recommendItems},void 0,!0),t.renderSlot(b.$slots,"recommend-content",{items:r.recommendItems},()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.recommendItems,v=>(t.openBlock(),t.createElementBlock("div",{key:v,class:"o-search-panel-recommend-item",onClick:T=>n("recommend-click",v)},t.toDisplayString(v),9,NC))),128))],!0)])):t.createCommentVNode("",!0),d.value?(t.openBlock(),t.createElementBlock("div",PC,[t.renderSlot(b.$slots,"history-header",{items:r.historyItems},()=>[t.createElementVNode("div",OC,[t.createElementVNode("span",BC,t.toDisplayString(r.historyTitle??t.unref(s)("search.history")),1),r.historyLayout!=="list"?(t.openBlock(),t.createBlock(t.unref(V.OIcon),{key:0,class:"o-search-panel-icon",onClick:k[0]||(k[0]=t.withModifiers(v=>n("history-clear"),["stop"]))},{default:t.withCtx(()=>[t.createVNode(t.unref(fC))]),_:1})):t.createCommentVNode("",!0)])],!0),t.renderSlot(b.$slots,"history-content",{items:r.historyItems},()=>[r.historyLayout==="list"?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(r.historyItems,v=>(t.openBlock(),t.createElementBlock("div",{key:v,class:"o-search-panel-history-row",onClick:T=>n("history-click",v)},[t.createElementVNode("span",MC,t.toDisplayString(v),1)],8,LC))),128)):(t.openBlock(),t.createElementBlock("div",RC,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.historyItems,v=>(t.openBlock(),t.createElementBlock("div",{key:v,class:t.normalizeClass(["o-search-panel-history-item",{"is-dark":r.isDark}]),onClick:T=>n("history-click",v)},[t.createElementVNode("span",FC,t.toDisplayString(v),1),t.createVNode(t.unref(V.OIcon),{class:"o-search-panel-history-remove",onClick:t.withModifiers(T=>n("history-remove",v),["stop"])},{default:t.withCtx(()=>[t.createVNode(t.unref(El))]),_:1},8,["onClick"])],10,qC))),128))]))],!0)])):t.createCommentVNode("",!0),C.value?(t.openBlock(),t.createElementBlock("div",UC)):t.createCommentVNode("",!0),m.value?(t.openBlock(),t.createElementBlock("div",$C,[t.renderSlot(b.$slots,"hot-header",{items:r.hotItems},()=>[t.createElementVNode("div",zC,[t.createElementVNode("div",HC,t.toDisplayString(r.hotTitle??t.unref(s)("search.hot")),1),t.createVNode(t.unref(V.OIcon),{class:"o-search-panel-icon",onClick:k[1]||(k[1]=t.withModifiers(v=>n("hot-refresh"),["stop"]))},{default:t.withCtx(()=>[t.createVNode(t.unref(gC))]),_:1})])],!0),t.renderSlot(b.$slots,"hot-content",{items:r.hotItems},()=>[t.createElementVNode("div",XC,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.hotItems,v=>(t.openBlock(),t.createElementBlock("div",{key:v,class:"o-search-panel-hot-item",onClick:T=>n("hot-click",v)},t.toDisplayString(v),9,jC))),128))])],!0)])):t.createCommentVNode("",!0)]))}}),hp=Xe._export_sfc(GC,[["__scopeId","data-v-5b9cbb86"]]);function fp(r){const{initial:e,storageKey:i,storeHistory:n,maxHistoryCount:s,onChange:a}=r,o=t.ref([...e.value]),l=()=>{if(!(!n.value||typeof localStorage>"u"))try{o.value.length?localStorage.setItem(i.value,JSON.stringify(o.value)):localStorage.removeItem(i.value)}catch{}},c=b=>{o.value=b,l(),a==null||a(o.value)},d=()=>{if(!(!n.value||typeof localStorage>"u"))try{const b=localStorage.getItem(i.value);if(!b)return;const k=JSON.parse(b);if(Array.isArray(k)&&k.length){const v=Array.from(new Set([...k,...o.value]));o.value=v.slice(0,s.value),a==null||a(o.value)}}catch{}},m=b=>{const k=b==null?void 0:b.trim();if(!k)return;const v=[k,...o.value.filter(T=>T!==k)];v.length>s.value&&(v.length=s.value),c(v)},g=b=>{c(o.value.filter(k=>k!==b))},C=()=>{c([])};return t.watch(e,b=>{b!==o.value&&(o.value=[...b])}),t.onMounted(d),{items:o,push:m,remove:g,clearAll:C}}const WC={version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"36",height:"32",viewBox:"0 0 36 32"};function YC(r,e){return t.openBlock(),t.createElementBlock("svg",WC,[...e[0]||(e[0]=[t.createElementVNode("path",{fill:"currentColor",d:"M5.886 19.111l10.672 10.677c0.46 0.524 0.44 1.322-0.060 1.822s-1.298 0.52-1.822 0.060l-0.064-0.060-12.498-12.498h3.772zM14.613 0.391c0.521-0.521 1.365-0.521 1.886 0 0.5 0.5 0.52 1.298 0.060 1.822l-0.060 0.064-12.391 12.391h29.67c0.71 0 1.291 0.555 1.331 1.255l0.002 0.078c0 0.71-0.555 1.291-1.255 1.331l-0.078 0.002h-31.816c-0.472 0-0.924-0.187-1.257-0.521-0.671-0.671-0.694-1.745-0.067-2.443l0.067-0.071 13.908-13.908z"},null,-1)])])}const KC={name:"components-icon-header-back",render:YC},QC={key:0,class:"o-header-search-drawer"},JC=t.defineComponent({__name:"OHeaderSearch",props:{modelValue:{default:""},placeholder:{},expandedPlaceholder:{},expandDirection:{default:"left"},clearable:{type:Boolean,default:!0},historyItems:{default:()=>[]},maxHistoryCount:{default:6},storeHistory:{type:Boolean,default:!1},historyTitle:{},storageKey:{default:"search-history"},hotItems:{default:()=>[]},hotTitle:{},recommendItems:{default:()=>[]},searchUrl:{},searchUrlOpenBlank:{type:Boolean,default:!0},searchTextMobile:{},imagePlaceholder:{},enableImageSearch:{type:Boolean,default:!1},imageUrl:{default:""},uploadImage:{},maxImageSize:{default:10*1024*1024},imageUploadTooltip:{},suggestItems:{default:()=>[]},onestepItems:{default:()=>[]},suggestTitle:{},onestepTitle:{},noDataText:{},highlightKeyword:{type:Boolean,default:!0},debounce:{default:300},autoSaveHistory:{type:Boolean,default:!0},showSuggestEmpty:{type:Boolean,default:!0},allowedImageTypes:{},mobile:{type:Boolean}},emits:["update:modelValue","update:historyItems","update:imageUrl","focus","blur","input","clear","search","recommend-click","onestep-click","history-click","hot-click","hot-refresh","delete-history","delete-history-item","image-upload-start","image-upload-success","image-upload-error","image-validate-error"],setup(r,{expose:e,emit:i}){const n=r,s=i,{lePadV:a}=Et.useScreen(),{t:o}=Xe.useI18n(),l=t.computed(()=>n.mobile===!0||a.value),c=t.ref(null),d=t.ref(),m=t.ref(!1),g=t.ref(!1),C=t.ref(""),b=t.computed(()=>!!n.imageUrl||g.value),k=t.computed({get:()=>n.modelValue,set:K=>s("update:modelValue",K)}),v=t.toRef(n,"historyItems"),T=t.toRef(n,"storageKey"),E=t.toRef(n,"storeHistory"),I=t.toRef(n,"maxHistoryCount"),w=fp({initial:v,storageKey:T,storeHistory:E,maxHistoryCount:I,onChange:K=>s("update:historyItems",K)}),$=t.computed(()=>n.imageUrl?n.imagePlaceholder??o("search.extendedPlaceholder"):m.value&&n.enableImageSearch?n.imagePlaceholder??o("search.imagePlaceholder"):m.value?n.expandedPlaceholder??o("search.expandedPlaceholder"):n.placeholder??o("search.placeholder")),q=fi.useDebounceFn(K=>s("input",K),()=>n.debounce);t.watch(k,K=>q(K)),fi.onClickOutside(c,()=>{l.value||N()});const z=()=>{m.value=!0},N=()=>{l.value||(m.value=!1)},U=()=>{z(),s("focus")},x=()=>{s("blur")},D=async K=>{var ge,Ne,Te,Oe,He,Ke,Be,Je;(Ne=(ge=d.value)==null?void 0:ge.getIsUploading)!=null&&Ne.call(ge)&&await((Oe=(Te=d.value).awaitUpload)==null?void 0:Oe.call(Te));const J=K!==void 0?K.trim():k.value.trim(),le=C.value||((Ke=(He=d.value)==null?void 0:He.getUploadedUrl)==null?void 0:Ke.call(He))||n.imageUrl;if(!(!J&&!le)&&(n.autoSaveHistory&&J&&w.push(J),s("search",{keyword:J,imageUrl:le||void 0}),(Je=(Be=d.value)==null?void 0:Be.blur)==null||Je.call(Be),m.value=!1,n.searchUrl)){const tt=new URLSearchParams;J&&tt.set("q",J),le&&tt.set("imageUrl",le);const $e=n.searchUrl.includes("?")?"&":"?",gt=`${n.searchUrl}${$e}${tt.toString()}`;typeof window<"u"&&window.open(gt,n.searchUrlOpenBlank?"_blank":"_self",n.searchUrlOpenBlank?"noopener,noreferrer":"")}},B=()=>{var K,J;k.value="",s("clear"),(J=(K=d.value)==null?void 0:K.focus)==null||J.call(K)},F=K=>{s("recommend-click",K),k.value=K.key,D(K.key??"")},P=K=>{s("recommend-click",K),D(K)},L=K=>{s("onestep-click",K),K.path&&typeof window<"u"&&window.open(K.path,"_blank","noopener,noreferrer")},R=K=>{s("history-click",K),D(K)},te=K=>{s("hot-click",K),D(K)},ee=K=>{w.remove(K),s("delete-history-item",K)},H=()=>{const K=[...w.items.value];w.clearAll(),s("delete-history",K)},X=()=>{k.value="",g.value=!1,s("update:imageUrl",""),m.value=!1},Z=K=>{g.value=!0,C.value="",s("image-upload-start",K)},se=(K,J)=>{C.value=K,s("update:imageUrl",K),s("image-upload-success",K,J)},Q=()=>{g.value=!1,C.value="",s("update:imageUrl","")},ie=t.computed(()=>!(!m.value||b.value));return e({focus:()=>{var K,J;return(J=(K=d.value)==null?void 0:K.focus)==null?void 0:J.call(K)},blur:()=>{var K,J;return(J=(K=d.value)==null?void 0:K.blur)==null?void 0:J.call(K)},open:z,close:N,search:D}),(K,J)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["o-header-search",{"is-mobile-mode":l.value}])},[t.createElementVNode("div",{ref_key:"wrapperRef",ref:c,class:t.normalizeClass(["o-header-search-pos",{"is-pc":!l.value,"is-mobile":l.value,"is-left":r.expandDirection==="left","is-right":r.expandDirection==="right","is-focus":m.value}])},[t.createElementVNode("div",{class:t.normalizeClass(["o-header-search-row",{"is-focus":m.value}])},[l.value&&m.value?(t.openBlock(),t.createBlock(t.unref(V.OIcon),{key:0,class:"o-header-search-back-icon",onClick:X},{default:t.withCtx(()=>[t.createVNode(t.unref(KC))]),_:1})):t.createCommentVNode("",!0),t.createVNode(dp,{ref_key:"inputRef",ref:d,modelValue:k.value,"onUpdate:modelValue":J[0]||(J[0]=le=>k.value=le),"image-url":r.imageUrl,placeholder:$.value,"enable-image-search":r.enableImageSearch,"upload-image":r.uploadImage,"max-image-size":r.maxImageSize,"image-upload-tooltip":r.imageUploadTooltip,clearable:r.clearable&&m.value,expanded:m.value&&b.value,"allowed-image-types":r.allowedImageTypes,size:"medium",class:t.normalizeClass(["o-header-search-input",{"is-collapsed":!m.value}]),"onUpdate:imageUrl":J[1]||(J[1]=le=>s("update:imageUrl",le)),onFocus:U,onBlur:x,onEnter:D,onClear:B,onImageClear:Q,onImageUploadStart:Z,onImageUploadSuccess:se,onImageUploadError:J[2]||(J[2]=(le,ge)=>s("image-upload-error",le,ge)),onImageValidateError:J[3]||(J[3]=(le,ge)=>s("image-validate-error",le,ge))},t.createSlots({prefix:t.withCtx(()=>[t.renderSlot(K.$slots,"input-prefix",{},void 0,!0)]),suffix:t.withCtx(le=>[t.renderSlot(K.$slots,"input-suffix",t.normalizeProps(t.guardReactiveProps(le)),void 0,!0)]),_:2},[K.$slots["image-preview"]?{name:"preview",fn:t.withCtx(le=>[t.renderSlot(K.$slots,"image-preview",t.normalizeProps(t.guardReactiveProps(le)),void 0,!0)]),key:"0"}:void 0]),1032,["modelValue","image-url","placeholder","enable-image-search","upload-image","max-image-size","image-upload-tooltip","clearable","expanded","allowed-image-types","class"]),l.value&&m.value?(t.openBlock(),t.createElementBlock("span",{key:1,class:"o-header-search-text",onClick:D},t.toDisplayString(r.searchTextMobile??t.unref(o)("search")),1)):t.createCommentVNode("",!0)],2),t.createVNode(t.Transition,{name:"o-header-search-drawer"},{default:t.withCtx(()=>[ie.value?(t.openBlock(),t.createElementBlock("div",QC,[t.renderSlot(K.$slots,"drawer",{recommendItems:r.recommendItems,historyItems:t.unref(w).items.value,hotItems:r.hotItems,suggestItems:r.suggestItems,onestepItems:r.onestepItems,keyword:r.modelValue},()=>[t.createVNode(hp,{keyword:r.modelValue,"onestep-items":r.onestepItems,"onestep-title":r.onestepTitle,"suggest-items":r.suggestItems,"suggest-title":r.suggestTitle,"recommend-items":r.recommendItems,"history-items":t.unref(w).items.value,"history-title":r.historyTitle,"hot-items":r.hotItems,"hot-title":r.hotTitle,"no-data-text":r.noDataText,"highlight-keyword":r.highlightKeyword,"hide-on-keyword":!0,"show-suggest-empty":r.showSuggestEmpty,onOnestepClick:L,onSuggestClick:F,onRecommendClick:P,onHistoryClick:R,onHistoryRemove:ee,onHistoryClear:H,onHotClick:te,onHotRefresh:J[4]||(J[4]=le=>s("hot-refresh"))},t.createSlots({_:2},[K.$slots["recommend-header"]?{name:"recommend-header",fn:t.withCtx(le=>[t.renderSlot(K.$slots,"recommend-header",t.normalizeProps(t.guardReactiveProps(le)),void 0,!0)]),key:"0"}:void 0,K.$slots["recommend-content"]?{name:"recommend-content",fn:t.withCtx(le=>[t.renderSlot(K.$slots,"recommend-content",t.normalizeProps(t.guardReactiveProps(le)),void 0,!0)]),key:"1"}:void 0,K.$slots["onestep-header"]?{name:"onestep-header",fn:t.withCtx(le=>[t.renderSlot(K.$slots,"onestep-header",t.normalizeProps(t.guardReactiveProps(le)),void 0,!0)]),key:"2"}:void 0,K.$slots["onestep-content"]?{name:"onestep-content",fn:t.withCtx(le=>[t.renderSlot(K.$slots,"onestep-content",t.normalizeProps(t.guardReactiveProps(le)),void 0,!0)]),key:"3"}:void 0,K.$slots["suggest-header"]?{name:"suggest-header",fn:t.withCtx(le=>[t.renderSlot(K.$slots,"suggest-header",t.normalizeProps(t.guardReactiveProps(le)),void 0,!0)]),key:"4"}:void 0,K.$slots["suggest-content"]?{name:"suggest-content",fn:t.withCtx(le=>[t.renderSlot(K.$slots,"suggest-content",t.normalizeProps(t.guardReactiveProps(le)),void 0,!0)]),key:"5"}:void 0,K.$slots["history-header"]?{name:"history-header",fn:t.withCtx(le=>[t.renderSlot(K.$slots,"history-header",t.normalizeProps(t.guardReactiveProps(le)),void 0,!0)]),key:"6"}:void 0,K.$slots["history-content"]?{name:"history-content",fn:t.withCtx(le=>[t.renderSlot(K.$slots,"history-content",t.normalizeProps(t.guardReactiveProps(le)),void 0,!0)]),key:"7"}:void 0,K.$slots["hot-header"]?{name:"hot-header",fn:t.withCtx(le=>[t.renderSlot(K.$slots,"hot-header",t.normalizeProps(t.guardReactiveProps(le)),void 0,!0)]),key:"8"}:void 0,K.$slots["hot-content"]?{name:"hot-content",fn:t.withCtx(le=>[t.renderSlot(K.$slots,"hot-content",t.normalizeProps(t.guardReactiveProps(le)),void 0,!0)]),key:"9"}:void 0]),1032,["keyword","onestep-items","onestep-title","suggest-items","suggest-title","recommend-items","history-items","history-title","hot-items","hot-title","no-data-text","highlight-keyword","show-suggest-empty"])],!0)])):t.createCommentVNode("",!0)]),_:3})],2),l.value?(t.openBlock(),t.createBlock(t.unref(V.OIcon),{key:0,class:"o-header-search-mobile-icon",onClick:z},{default:t.withCtx(()=>[t.createVNode(t.unref(cp))]),_:1})):t.createCommentVNode("",!0)],2))}}),uh=Xe._export_sfc(JC,[["__scopeId","data-v-a97b8e7c"]]),ZC=Object.assign(uh,{install(r){r.component("OHeaderSearch",uh)}}),e9={class:"source-code"},t9={class:"title"},i9={class:"info-wrap hover-icon-rotate"},n9={class:"title"},r9=t.defineComponent({__name:"OHeaderSourceCode",props:{title:{},options:{},href:{},target:{},icon:{},justify:{default:"center"}},setup(r){const e=s=>{window.open(s.href,s.target?s.target:"_blank")},i=t.ref(!1),n=s=>{i.value=s};return(s,a)=>(t.openBlock(),t.createElementBlock("div",e9,[r.href?(t.openBlock(),t.createElementBlock("div",{key:0,class:"info-wrap",onClick:a[0]||(a[0]=o=>e({href:r.href,target:r.target}))},[t.createElementVNode("span",t9,t.toDisplayString(r.title),1),r.icon?(t.openBlock(),t.createBlock(t.unref(V.OIcon),{key:0},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(r.icon),{class:"icon"}))]),_:1})):t.createCommentVNode("",!0)])):(t.openBlock(),t.createBlock(t.unref(V.ODropdown),{key:1,trigger:"hover",optionPosition:"bottom","option-wrap-class":"dropdown",class:t.normalizeClass({"dropdown-active":i.value}),onVisibleChange:n},{dropdown:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.options,o=>(t.openBlock(),t.createBlock(t.unref(V.ODropdownItem),{onClick:l=>e(o),key:o.href,class:"list",style:t.normalizeStyle({"--dropdown-item-justify":r.justify})},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(o.label)+" ",1),o.icon?(t.openBlock(),t.createBlock(t.unref(V.OIcon),{key:0},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(o.icon),{class:"icon"}))]),_:2},1024)):t.createCommentVNode("",!0)]),_:2},1032,["onClick","style"]))),128))]),default:t.withCtx(()=>[t.createElementVNode("div",i9,[t.createElementVNode("span",n9,t.toDisplayString(r.title),1),t.createVNode(t.unref(V.OIcon),{class:"icon"},{default:t.withCtx(()=>[t.createVNode(t.unref(wl))]),_:1})])]),_:1},8,["class"]))]))}}),ch=Xe._export_sfc(r9,[["__scopeId","data-v-0c07bf67"]]),s9=Object.assign(ch,{install(r){r.component("OHeaderSourceCode",ch)}}),a9={version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};function o9(r,e){return t.openBlock(),t.createElementBlock("svg",a9,[...e[0]||(e[0]=[t.createElementVNode("path",{opacity:"0.8",fill:"currentColor",d:"M12 1.992c0.387 0 0.7 0.313 0.7 0.7v1.2c0 0.387-0.313 0.7-0.7 0.7s-0.7-0.313-0.7-0.7v-1.2c0-0.387 0.313-0.7 0.7-0.7zM6.769 6.747c-0.273 0.273-0.717 0.273-0.99 0l-0.849-0.849c-0.137-0.137-0.205-0.316-0.205-0.495s0.068-0.358 0.205-0.495c0.273-0.273 0.717-0.273 0.99 0l0.849 0.849c0.136 0.137 0.205 0.316 0.205 0.495s-0.068 0.358-0.205 0.495zM18.192 6.747c-0.273 0.273-0.717 0.273-0.99 0-0.137-0.137-0.205-0.316-0.205-0.495s0.068-0.358 0.205-0.495l0.849-0.849c0.273-0.273 0.717-0.273 0.99 0 0.137 0.137 0.205 0.316 0.205 0.495s-0.068 0.358-0.205 0.495l-0.849 0.849zM5.3 12c0-3.7 3-6.7 6.7-6.7s6.7 3 6.7 6.7-3 6.7-6.7 6.7c-3.7 0-6.7-3-6.7-6.7zM17.3 12c0-2.927-2.373-5.3-5.3-5.3s-5.3 2.373-5.3 5.3c0 2.927 2.373 5.3 5.3 5.3s5.3-2.373 5.3-5.3zM4.594 11.969c0 0.387-0.313 0.7-0.7 0.7h-1.2c-0.387 0-0.7-0.313-0.7-0.7s0.313-0.7 0.7-0.7h1.2c0.386 0 0.7 0.313 0.7 0.7zM21.977 11.999c0 0.387-0.314 0.7-0.7 0.7h-1.2c-0.387 0-0.7-0.313-0.7-0.7s0.313-0.7 0.7-0.7h1.2c0.387 0 0.7 0.313 0.7 0.7zM5.921 19.060c-0.273 0.273-0.717 0.273-0.99 0-0.137-0.137-0.205-0.316-0.205-0.495s0.068-0.358 0.205-0.495l0.849-0.849c0.273-0.273 0.717-0.273 0.99 0 0.137 0.137 0.205 0.316 0.205 0.495s-0.068 0.358-0.205 0.495l-0.849 0.849zM19.041 19.060c-0.273 0.273-0.717 0.273-0.99 0l-0.849-0.849c-0.137-0.137-0.205-0.316-0.205-0.495s0.068-0.358 0.205-0.495c0.273-0.273 0.717-0.273 0.99 0l0.849 0.849c0.137 0.137 0.205 0.316 0.205 0.495s-0.068 0.358-0.205 0.495zM11.971 19.376c0.387 0 0.7 0.313 0.7 0.7v1.2c0 0.387-0.313 0.7-0.7 0.7s-0.7-0.313-0.7-0.7v-1.2c0-0.387 0.313-0.7 0.7-0.7z"},null,-1)])])}const l9={name:"components-icon-sun",render:o9},u9={version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};function c9(r,e){return t.openBlock(),t.createElementBlock("svg",u9,[...e[0]||(e[0]=[t.createElementVNode("path",{opacity:"0.8",fill:"currentColor",d:"M12 2.3c5.357 0 9.7 4.343 9.7 9.7s-4.343 9.7-9.7 9.7c-4.651 0-8.622-3.298-9.515-7.806-0.101-0.509 0.369-0.948 0.87-0.812 0.531 0.144 1.082 0.218 1.645 0.218 3.479 0 6.3-2.82 6.3-6.3 0-1.276-0.379-2.494-1.079-3.527-0.291-0.43-0.029-1.016 0.486-1.086 0.425-0.057 0.857-0.086 1.293-0.086zM12 3.7l-0.042 0.001 0.058 0.121c0.402 0.887 0.634 1.85 0.677 2.845l0.007 0.333c0 4.253-3.447 7.7-7.7 7.7-0.229 0-0.457-0.010-0.682-0.030l-0.186-0.021 0.076 0.218c1.147 3.123 4.102 5.321 7.528 5.429l0.264 0.004c4.584 0 8.3-3.716 8.3-8.3s-3.716-8.3-8.3-8.3z"},null,-1)])])}const d9={name:"components-icon-moon",render:c9},h9={class:"o-theme-switcher"},f9={key:1,class:"o-theme-switcher-mobile"},p9=t.defineComponent({__name:"OHeaderTheme",props:{theme:{default:"light"},type:{default:"auto"},lightValue:{default:"light"},darkValue:{default:"dark"},disabled:{type:Boolean,default:!1}},emits:["update:theme","change"],setup(r,{emit:e}){const i=r,n=e,{gtPhone:s}=Et.useScreen(),a=t.computed({get(){return i.theme},set(c){n("update:theme",c),n("change",c)}}),o=t.computed(()=>i.type==="common"||i.type==="auto"&&s.value),l=()=>{i.disabled||(a.value=a.value===i.lightValue?i.darkValue:i.lightValue)};return(c,d)=>(t.openBlock(),t.createElementBlock("div",h9,[o.value?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["o-theme-switcher-common",{disabled:r.disabled}]),onClick:l},[t.createVNode(t.unref(V.OIcon),{class:"o-theme-icon"},{default:t.withCtx(()=>[a.value===r.lightValue?(t.openBlock(),t.createBlock(t.unref(d9),{key:0})):(t.openBlock(),t.createBlock(t.unref(l9),{key:1}))]),_:1})],2)):(t.openBlock(),t.createElementBlock("div",f9,[t.createVNode(t.unref(V.OSwitch),{modelValue:a.value,"onUpdate:modelValue":d[0]||(d[0]=m=>a.value=m),class:"o-theme-switch","checked-value":r.lightValue,"unchecked-value":r.darkValue,disabled:r.disabled},{inactive:t.withCtx(()=>[t.createVNode(t.unref(V.OIconMoon))]),active:t.withCtx(()=>[t.createVNode(t.unref(V.OIconSun))]),off:t.withCtx(()=>[t.createVNode(t.unref(V.OIconSun))]),on:t.withCtx(()=>[t.createVNode(t.unref(V.OIconMoon))]),_:1},8,["modelValue","checked-value","unchecked-value","disabled"])]))]))}}),dh=Xe._export_sfc(p9,[["__scopeId","data-v-6209ad5c"]]),m9=Object.assign(dh,{install(r){r.component("OHeaderTheme",dh)}}),g9=["src"],v9=t.defineComponent({__name:"AppAvatar",props:{avatar:{type:String,default:""},name:{type:String,default:"",required:!0},size:{type:String,default:"medium"},customSize:{type:Number,default:0},variant:{type:String,default:"round"}},setup(r){const e=r,i=["#058EF0","#FA7305","#03B5A5"],n=t.computed(()=>{var a;return(a=e.name)==null?void 0:a.charAt(0).toUpperCase()}),s=t.computed(()=>{var l;const a={"background-color":"",width:"32px",height:"32px","font-size":"20px"};a["background-color"]=e.name?i[((l=e.name)==null?void 0:l.length)%i.length]:"transparent";let o=0;return e.customSize?o=Number(e.customSize):o={mini:16,small:24,medium:40,large:64}[e.size],a.height=`${o}px`,a.width=`${o}px`,a["font-size"]=`${o/2}px`,a});return(a,o)=>r.avatar&&!r.avatar.includes("gitcode")?(t.openBlock(),t.createElementBlock("img",{key:0,src:r.avatar,class:t.normalizeClass(["img-avatar",r.variant]),style:t.normalizeStyle(s.value),alt:""},null,14,g9)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["word-avatar",r.variant]),style:t.normalizeStyle(s.value)},t.toDisplayString(n.value),7))}}),y9=Xe._export_sfc(v9,[["__scopeId","data-v-340348ce"]]),_9={version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32"};function b9(r,e){return t.openBlock(),t.createElementBlock("svg",_9,[...e[0]||(e[0]=[t.createElementVNode("path",{opacity:"0.8",fill:"#000",d:"M9.412 10.332c0 2.188 1.066 4.127 2.708 5.326-4.858 1.582-8.364 6.052-8.364 11.328 0 0.515 0.418 0.933 0.933 0.933s0.933-0.418 0.933-0.933c0-5.465 4.487-9.922 10.092-10.070 0.095 0.004 0.191 0.006 0.288 0.006 3.639 0 6.59-2.95 6.59-6.59s-2.951-6.59-6.59-6.59-6.59 2.95-6.59 6.59zM16.088 15.049c-0.028-0.003-0.057-0.004-0.087-0.004-0.061 0-0.122 0-0.183 0.001-2.524-0.096-4.541-2.172-4.541-4.72 0-2.608 2.115-4.723 4.723-4.723s4.723 2.115 4.723 4.723c0 2.579-2.067 4.676-4.635 4.722zM21.784 16.465c3.945 2.064 6.463 6.077 6.463 10.528 0 0.515-0.418 0.933-0.933 0.933s-0.933-0.418-0.933-0.933c0-3.744-2.123-7.127-5.462-8.874-0.457-0.239-0.633-0.803-0.394-1.26s0.803-0.633 1.26-0.394z"},null,-1)])])}const T9={name:"components-icon-avatar-line",render:b9},x9={class:"header-user"},C9={key:0,class:"user-info"},S9={class:"info-wrap hover-icon-rotate"},E9={class:"user-account"},k9={key:1},w9=t.defineComponent({__name:"OHeaderUser",props:{token:{default:void 0},lang:{default:void 0},noticeTotal:{default:void 0},userInfo:{default:void 0},options:{default:void 0},customSize:{default:void 0}},emits:["login","logout"],setup(r,{emit:e}){const{lePadV:i}=Et.useScreen(),n=e,s=()=>{n("login")},a=o=>{o!=null&&o.logout?n("logout"):window.open(o.url,o.target)};return(o,l)=>(t.openBlock(),t.createElementBlock("div",x9,[r.token?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(t.unref(V.OIcon),{key:0,onClick:s,class:"avatar-icon"},{default:t.withCtx(()=>[t.createVNode(t.unref(T9))]),_:1})),t.createVNode(t.Transition,{name:"header-user-zoom-in"},{default:t.withCtx(()=>[r.token?(t.openBlock(),t.createElementBlock("div",C9,[t.createVNode(t.unref(V.ODropdown),{trigger:t.unref(i)?"click":"hover",optionWidthMode:"auto",optionPosition:t.unref(i)?"br":"bottom","option-wrap-class":`user-dropdown ${r.lang==="en"?"is-en":""}`},{dropdown:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.options,(c,d)=>(t.openBlock(),t.createBlock(t.unref(V.ODropdownItem),{key:c.label,onClick:m=>a(c)},{default:t.withCtx(()=>[c!=null&&c.total?(t.openBlock(),t.createBlock(t.unref(V.OBadge),{key:0,value:c.total,color:"danger",class:t.normalizeClass(["header-message message",{"notice-not":!c.total}])},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(c.label),1)]),_:2},1032,["value","class"])):(t.openBlock(),t.createElementBlock("span",k9,t.toDisplayString(c.label)+t.toDisplayString(d)+t.toDisplayString(d)+t.toDisplayString(d)+t.toDisplayString(d)+t.toDisplayString(d)+t.toDisplayString(d),1))]),_:2},1032,["onClick"]))),128))]),default:t.withCtx(()=>[t.createElementVNode("div",S9,[t.createVNode(t.unref(V.OBadge),{value:r.noticeTotal,dot:!0,color:"danger",class:t.normalizeClass(["header-message user-avatar",{"notice-not":!r.noticeTotal}])},{default:t.withCtx(()=>[t.createVNode(y9,{avatar:r.userInfo.photo,name:r.userInfo.username,"custom-size":r.customSize},null,8,["avatar","name","custom-size"])]),_:1},8,["value","class"]),t.createElementVNode("p",E9,t.toDisplayString(r.userInfo.username),1),t.createVNode(t.unref(V.OIcon),{class:"icon"},{default:t.withCtx(()=>[t.createVNode(t.unref(wl))]),_:1})])]),_:1},8,["trigger","optionPosition","option-wrap-class"])])):t.createCommentVNode("",!0)]),_:1})]))}}),hh=Xe._export_sfc(w9,[["__scopeId","data-v-d1451fbe"]]),D9=Object.assign(hh,{install(r){r.component("OHeaderUser",hh)}}),V9={class:"o-search-input-box"},A9={key:0,class:"o-search-input-dropdown"},I9={key:0,class:"o-search-input-suggest-list-row"},N9={class:"o-search-input-suggest-list-label"},P9={class:"o-search-input-suggest-list"},O9=["onClick"],B9={key:0},L9=t.defineComponent({__name:"OSearchInput",props:{modelValue:{default:""},imageUrl:{default:""},size:{default:"large"},placeholder:{},imagePlaceholder:{},enableImageSearch:{type:Boolean,default:!1},uploadImage:{},maxImageSize:{default:10*1024*1024},imageUploadTooltip:{},allowedImageTypes:{},suggestItems:{default:()=>[]},onestepItems:{default:()=>[]},suggestTitle:{},onestepTitle:{},noDataText:{},showSuggestEmpty:{type:Boolean,default:!0},highlightKeyword:{type:Boolean,default:!0},debounce:{default:300},enableHistory:{type:Boolean,default:!0},historyItems:{default:()=>[]},maxHistoryCount:{default:6},storeHistory:{type:Boolean,default:!1},storageKey:{default:"search-history"},historyTitle:{},autoSaveHistory:{type:Boolean,default:!0},hotItems:{default:()=>[]},hotTitle:{},suggestList:{default:()=>[]},suggestListLabel:{},clearable:{type:Boolean,default:!0},closeOnSearch:{type:Boolean,default:!0},closeOnClickOutside:{type:Boolean,default:!0},openOnFocus:{type:Boolean,default:!0},alwaysInlineThumbnail:{type:Boolean}},emits:["update:modelValue","update:imageUrl","update:historyItems","focus","blur","input","clear","search","recommend-click","onestep-click","history-click","hot-click","suggest-list-click","delete-history","delete-history-item","image-upload-start","image-upload-success","image-upload-error","image-validate-error"],setup(r,{expose:e,emit:i}){const n=r,s=i,{t:a}=Xe.useI18n();function o(Q){const ie=[],K=/<em>(.*?)<\/em>/g;let J=0,le;for(;(le=K.exec(Q))!==null;)le.index>J&&ie.push({text:Q.slice(J,le.index),em:!1}),ie.push({text:le[1],em:!0}),J=le.index+le[0].length;return J<Q.length&&ie.push({text:Q.slice(J),em:!1}),ie}const l=t.ref(),c=t.ref(null),d=t.computed({get:()=>n.modelValue,set:Q=>s("update:modelValue",Q)}),m=t.ref(!1),g=t.ref(!1),C=t.ref(!1),b=t.ref(!1),k=t.computed(()=>{if(!m.value||n.imageUrl||b.value)return!1;const Q=!!d.value&&(n.suggestItems.length>0||n.onestepItems.length>0||n.showSuggestEmpty),ie=n.enableHistory&&w.items.value.length>0&&!d.value,K=n.hotItems.length>0&&!d.value;return!!(Q||n.openOnFocus&&(ie||K))}),v=t.toRef(n,"historyItems"),T=t.toRef(n,"storageKey"),E=t.toRef(n,"storeHistory"),I=t.toRef(n,"maxHistoryCount"),w=fp({initial:v,storageKey:T,storeHistory:E,maxHistoryCount:I,onChange:Q=>s("update:historyItems",Q)});let $=!1;const q=fi.useDebounceFn(Q=>{if($){$=!1;return}s("input",Q)},()=>n.debounce);t.watch(d,Q=>{q(Q)}),fi.onClickOutside(c,()=>{n.closeOnClickOutside&&(g.value||C.value||(m.value=!1))});const z=()=>{m.value=!0,s("focus")},N=()=>{s("blur")},U=async Q=>{var J,le,ge,Ne,Te,Oe;(le=(J=l.value)==null?void 0:J.getIsUploading)!=null&&le.call(J)&&await((Ne=(ge=l.value).awaitUpload)==null?void 0:Ne.call(ge));const ie=Q!==void 0?Q.trim():d.value.trim(),K=((Oe=(Te=l.value)==null?void 0:Te.getUploadedUrl)==null?void 0:Oe.call(Te))||n.imageUrl;!ie&&!K||(n.autoSaveHistory&&ie&&w.push(ie),n.closeOnSearch&&(m.value=!1),s("search",{keyword:ie,imageUrl:K||void 0}))},x=()=>{d.value="",s("clear")},D=Q=>{s("recommend-click",Q),$=!0,d.value=Q.key,U(Q.key??"")},B=Q=>{if(s("onestep-click",Q),Q.path){const ie=Q.path;typeof window<"u"&&window.open(ie,"_blank","noopener,noreferrer")}},F=Q=>{s("history-click",Q),U(Q)},P=Q=>{s("hot-click",Q),U(Q)},L=Q=>{w.remove(Q),s("delete-history-item",Q)},R=()=>{const Q=[...w.items.value];w.clearAll(),s("delete-history",Q)},te=Q=>{const ie=Q.replace(/<[^>]+>/g,"");s("suggest-list-click",ie),$=!0,d.value=ie,U(ie)},ee=Q=>{g.value=Q,Q||(C.value=!0,setTimeout(()=>{C.value=!1},100))},H=t.computed(()=>!!n.imageUrl&&(n.alwaysInlineThumbnail||!m.value)),X=Q=>{b.value=!0,s("image-upload-start",Q)},Z=(Q,ie)=>{b.value=!1,s("image-upload-success",Q,ie)},se=()=>{b.value=!1,s("update:imageUrl","")};return e({focus:()=>{var Q,ie;return(ie=(Q=l.value)==null?void 0:Q.focus)==null?void 0:ie.call(Q)},blur:()=>{var Q,ie;return(ie=(Q=l.value)==null?void 0:Q.blur)==null?void 0:ie.call(Q)},search:U,saveHistory:Q=>w.push(Q??d.value)}),(Q,ie)=>{var K;return t.openBlock(),t.createElementBlock("div",{ref_key:"wrapperRef",ref:c,class:t.normalizeClass(["o-search-input",{"is-focus":m.value}])},[t.createElementVNode("div",V9,[t.createVNode(dp,{ref_key:"inputRef",ref:l,modelValue:d.value,"onUpdate:modelValue":ie[0]||(ie[0]=J=>d.value=J),"image-url":r.imageUrl,placeholder:r.placeholder,"image-placeholder":r.imagePlaceholder,size:r.size,"enable-image-search":r.enableImageSearch,"upload-image":r.uploadImage,"max-image-size":r.maxImageSize,"image-upload-tooltip":r.imageUploadTooltip,"allowed-image-types":r.allowedImageTypes,expanded:m.value&&!n.alwaysInlineThumbnail,"inline-thumbnail":H.value,clearable:r.clearable,class:"o-search-input-field","onUpdate:imageUrl":ie[1]||(ie[1]=J=>s("update:imageUrl",J)),onFocus:z,onBlur:N,onEnter:U,onClear:x,onImageClear:se,onImageUploadStart:X,onImageUploadSuccess:Z,onImageUploadError:ie[2]||(ie[2]=(J,le)=>s("image-upload-error",J,le)),onImageValidateError:ie[3]||(ie[3]=(J,le)=>s("image-validate-error",J,le)),onPreviewChange:ee},t.createSlots({prefix:t.withCtx(()=>[t.renderSlot(Q.$slots,"input-prefix",{},void 0,!0)]),suffix:t.withCtx(J=>[t.renderSlot(Q.$slots,"input-suffix",t.normalizeProps(t.guardReactiveProps(J)),void 0,!0)]),_:2},[Q.$slots["image-preview"]?{name:"preview",fn:t.withCtx(J=>[t.renderSlot(Q.$slots,"image-preview",t.normalizeProps(t.guardReactiveProps(J)),void 0,!0)]),key:"0"}:void 0]),1032,["modelValue","image-url","placeholder","image-placeholder","size","enable-image-search","upload-image","max-image-size","image-upload-tooltip","allowed-image-types","expanded","inline-thumbnail","clearable"]),t.createVNode(t.Transition,{name:"o-search-input-dropdown"},{default:t.withCtx(()=>[k.value?(t.openBlock(),t.createElementBlock("div",A9,[t.renderSlot(Q.$slots,"dropdown",{keyword:r.modelValue},()=>[t.createVNode(hp,{keyword:r.modelValue,"onestep-items":r.onestepItems,"onestep-title":r.onestepTitle,"suggest-items":r.suggestItems,"suggest-title":r.suggestTitle,"history-items":r.enableHistory?t.unref(w).items.value:[],"history-title":r.historyTitle,"hot-items":r.hotItems,"hot-title":r.hotTitle,"no-data-text":r.noDataText,"highlight-keyword":r.highlightKeyword,"hide-on-keyword":!0,"show-suggest-empty":r.showSuggestEmpty,"history-layout":"list",onOnestepClick:B,onSuggestClick:D,onHistoryClick:F,onHistoryRemove:L,onHistoryClear:R,onHotClick:P},t.createSlots({_:2},[Q.$slots["onestep-header"]?{name:"onestep-header",fn:t.withCtx(J=>[t.renderSlot(Q.$slots,"onestep-header",t.normalizeProps(t.guardReactiveProps(J)),void 0,!0)]),key:"0"}:void 0,Q.$slots["onestep-content"]?{name:"onestep-content",fn:t.withCtx(J=>[t.renderSlot(Q.$slots,"onestep-content",t.normalizeProps(t.guardReactiveProps(J)),void 0,!0)]),key:"1"}:void 0,Q.$slots["suggest-header"]?{name:"suggest-header",fn:t.withCtx(J=>[t.renderSlot(Q.$slots,"suggest-header",t.normalizeProps(t.guardReactiveProps(J)),void 0,!0)]),key:"2"}:void 0,Q.$slots["suggest-content"]?{name:"suggest-content",fn:t.withCtx(J=>[t.renderSlot(Q.$slots,"suggest-content",t.normalizeProps(t.guardReactiveProps(J)),void 0,!0)]),key:"3"}:void 0,Q.$slots["history-header"]?{name:"history-header",fn:t.withCtx(J=>[t.renderSlot(Q.$slots,"history-header",t.normalizeProps(t.guardReactiveProps(J)),void 0,!0)]),key:"4"}:void 0,Q.$slots["history-content"]?{name:"history-content",fn:t.withCtx(J=>[t.renderSlot(Q.$slots,"history-content",t.normalizeProps(t.guardReactiveProps(J)),void 0,!0)]),key:"5"}:void 0]),1032,["keyword","onestep-items","onestep-title","suggest-items","suggest-title","history-items","history-title","hot-items","hot-title","no-data-text","highlight-keyword","show-suggest-empty"])],!0)])):t.createCommentVNode("",!0)]),_:3})]),(K=r.suggestList)!=null&&K.length?(t.openBlock(),t.createElementBlock("div",I9,[t.renderSlot(Q.$slots,"suggest-list",{items:r.suggestList},()=>[t.createElementVNode("span",N9,t.toDisplayString(r.suggestListLabel??t.unref(a)("search.suggestListLabel")),1),t.createElementVNode("ul",P9,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.suggestList,(J,le)=>(t.openBlock(),t.createElementBlock("li",{key:J+le,class:"o-search-input-suggest-list-item",onClick:ge=>te(J)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o(J),ge=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:ge.text+String(ge.em)},[ge.em?(t.openBlock(),t.createElementBlock("em",B9,t.toDisplayString(ge.text),1)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(ge.text),1)],64))],64))),128))],8,O9))),128))])],!0)])):t.createCommentVNode("",!0)],2)}}}),fh=Xe._export_sfc(L9,[["__scopeId","data-v-18e8aec0"]]),M9=Object.assign(fh,{install(r){r.component("OSearchInput",fh)}}),R9={class:"section-wrapper"},q9={key:1,class:"section-title"},F9={key:2,class:"section-subtitle"},U9={key:1,class:"section-body"},$9={key:2,class:"section-footer"},z9=t.defineComponent({__name:"OSection",props:{title:{default:void 0},subtitle:{default:void 0},full:{type:Boolean,default:!1},headerJustifyCenter:{type:Boolean,default:!0},footer:{default:void 0},footerHref:{default:void 0}},setup(r){const e=r;return(i,n)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["app-section",{"is-full":e.full}])},[t.createElementVNode("div",R9,[t.renderSlot(i.$slots,"main",{},()=>[i.$slots.header||e.title||e.subtitle?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["section-header",{"is-left":!e.headerJustifyCenter}])},[t.renderSlot(i.$slots,"header",{},()=>[t.unref(V.isArray)(e.title)?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.title,s=>(t.openBlock(),t.createElementBlock("h2",{key:s,class:"section-title"},t.toDisplayString(s),1))),128)):i.$slots.title||e.title?(t.openBlock(),t.createElementBlock("h2",q9,[t.renderSlot(i.$slots,"title",{},()=>[t.createTextVNode(t.toDisplayString(e.title),1)],!0)])):t.createCommentVNode("",!0),i.$slots.subtitle||e.subtitle?(t.openBlock(),t.createElementBlock("p",F9,[t.renderSlot(i.$slots,"subtitle",{},()=>[t.createTextVNode(t.toDisplayString(e.subtitle),1)],!0)])):t.createCommentVNode("",!0)],!0)],2)):t.createCommentVNode("",!0),i.$slots.default?(t.openBlock(),t.createElementBlock("div",U9,[t.renderSlot(i.$slots,"default",{},void 0,!0)])):t.createCommentVNode("",!0),i.$slots.footer||e.footer?(t.openBlock(),t.createElementBlock("div",$9,[t.renderSlot(i.$slots,"footer",{},()=>[t.createVNode(t.unref(V.OLink),{href:e.footerHref,target:"_blank"},{suffix:t.withCtx(()=>[t.createVNode(t.unref(V.OIcon),{class:"footer-icon"},{default:t.withCtx(()=>[t.createVNode(t.unref(Xr))]),_:1})]),default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.footer)+" ",1)]),_:1},8,["href"])],!0)])):t.createCommentVNode("",!0)],!0)])],2))}}),ph=Xe._export_sfc(z9,[["__scopeId","data-v-dae37748"]]),H9=Object.assign(ph,{install(r){r.component("OSection",ph)}});exports.OElCookieNotice=Xe.OElCookieNotice;exports.CalendarDataType=Ie;exports.EventsStatusT=Ji;exports.MeetingGroupType=_i;exports.NavType=Zi;exports.OActivityApproval=w8;exports.OActivityForm=k8;exports.OActivityMyCalendar=up;exports.OBanner=R8;exports.OBannerContent=q8;exports.OCookieNotice=v7;exports.OEventsApply=k6;exports.OEventsCalendar=S6;exports.OEventsList=E6;exports.OFooter=v5;exports.OHeader=qx;exports.OHeaderLanguageSwitcher=Gx;exports.OHeaderMobile=Fx;exports.OHeaderSearch=ZC;exports.OHeaderSourceCode=s9;exports.OHeaderTheme=m9;exports.OHeaderUser=D9;exports.OMeetingCalendar=M4;exports.OMeetingForm=R4;exports.OMeetingMyCalendar=U4;exports.OMeetingPlayback=q4;exports.OMeetingSigCalendar=F4;exports.OPlusConfigProvider=$8;exports.OSearchInput=M9;exports.OSection=H9;
224
+ `),z=q.length,N=I.endTime-I.startTime,U=parseFloat((N/z).toFixed(3));let x=0;if(T){const F=(E.currentTime()-I.startTime)/(I.endTime-I.startTime);for(;(x+1)/z<F;)x++}x<z?I.text=q.length?q[x]:I==null?void 0:I.text:I.text=q.length?q[0]:I==null?void 0:I.text;let D=U*1e3;const B=()=>{s.value=setInterval(()=>{v.mode="hidden",x++,x>q.length-1?clearInterval(s.value):x===q.length-1?(I.text=q[x],clearInterval(s.value),D=U*(z-x)*1e3,B()):I.text=q[x],v.mode="showing"},D)};B()}},g=t.ref([]);t.watch(()=>g.value,v=>{const T=n.instance;if(T){const E=T.textTracks();for(let I=0;I<E.length;I++)E[I].kind==="subtitles"&&(m(E[I],!0),E[I].mode=v.length?"showing":"hidden")}},{deep:!0});const C=t.ref(!1),b=t.ref("init"),k=async()=>{if(!n.src)return;const v=ae("playerId",{controls:!0,autoplay:!1,preload:"auto",fluid:!0,poster:n.poster||OT,playbackRates:[.5,.75,1,1.25,1.5,2],controlBar:{skipButtons:{backward:5,forward:5},children:{playToggle:!0,SkipBackward:{backward:5},skipForward:{forward:5},currentTimeDisplay:!0,timeDivider:!0,durationDisplay:!0,progressControl:!0,PlaybackRateMenuButton:!0,volumePanel:{inline:!1},FullscreenToggle:!0}}});l("getInstance",v),v.src(n.src),v.addRemoteTextTrack({kind:"subtitles",src:n.vtt,srclang:"zh",label:"中文",default:!1}),C.value=!0;class T extends ae.getComponent("Button"){constructor(w,$){super(w,$),this.addClass("vjs-subtitle-toggle-button","vjs-subtitle-hidden"),this.controlText("Toggle Subtitles")}buildCSSClass(){return`vjs-subtitle-toggle-button ${super.buildCSSClass()}`}handleClick(){const w=this.player().textTracks();for(let $=0;$<w.length;$++)w[$].kind==="subtitles"&&(m(w[$],!0),w[$].mode=w[$].mode==="showing"?"hidden":"showing",w[$].mode==="showing"?(this.removeClass("vjs-subtitle-hidden"),this.addClass("vjs-subtitle-showing")):(this.removeClass("vjs-subtitle-showing"),this.addClass("vjs-subtitle-hidden")))}}n.vtt&&(ae.registerComponent("SubtitleToggleButton",T),v.controlBar.children_.some(I=>I.name_==="SubtitleToggleButton")||v.controlBar.addChild("SubtitleToggleButton",{},8)),(v==null?void 0:v.textTracks().tracks_).forEach(I=>{I==null||I.addEventListener("cuechange",()=>{m(I)})}),v.on("play",()=>{b.value="playing"}),v.on("timeupdate",()=>{const I=v.currentTime()||0,w=n.captions.findIndex($=>Qo($.start_time)>I);l("setTrackIdx",w)}),v.one("loadedmetadata",()=>{l("getDuration",v.duration())}),t.nextTick(()=>{const I=document.getElementsByClassName("o-meeting-playback-video")[0];a.value=I.offsetHeight}),o.value=v};return t.onMounted(()=>{k(),document.addEventListener("click",d)}),t.watch(()=>n.src,()=>{k()}),t.onUnmounted(()=>{var v;(v=n==null?void 0:n.instance)==null||v.dispose(),document.removeEventListener("click",d)}),e({changeTime:v=>{var T;(T=o.value)==null||T.currentTime(v)}}),(v,T)=>(t.openBlock(),t.createElementBlock("div",BT,[t.createElementVNode("div",{class:t.normalizeClass(["video-placeholder",{loaded:C.value,"no-poster":!r.poster,[b.value]:!0}])},[T[0]||(T[0]=t.createElementVNode("video",{class:"video-js",id:"playerId"},null,-1)),r.posterTitle?(t.openBlock(),t.createElementBlock("div",LT,t.toDisplayString(r.posterTitle),1)):t.createCommentVNode("",!0)],2)]))}}),RT={class:"o-meeting-playback"},qT={class:"video-header"},FT={class:"video-title"},UT={class:"video-content"},$T={class:"info-wrapper"},zT={key:0,class:"base-info"},HT={class:"info-item"},XT={class:"info-item"},jT={class:"info-item"},GT={class:"info-item"},WT={key:1,class:"subject-list"},YT={class:"subject-title"},KT={key:0,class:"subject-progress"},QT=["data-start","data-end"],jd=t.defineComponent({__name:"OMeetingPlayback",props:{dates:{default:()=>[]},detail:{default:()=>({})},data:{default:()=>({})}},emits:["change-date"],setup(r,{emit:e}){const i=r,n=e,{t:s}=Xe.useI18n(),a=t.ref(null),o=H=>{a.value=H},l=t.ref(0),c=H=>{l.value=H},d=t.ref([]),m=async H=>{const Z=await(await fetch(H)).json();d.value=(Z.segments||[]).map(se=>{const Q=tg(se.speaker);return{...se,contentHtml:se.content,speakerIdx:Q,speakerLabel:`${s("meeting.speaker")}${Q}`}})},g=t.ref([]),C=H=>s1[H%3],b=t.ref(0),k=H=>{b.value=H},v=t.ref(),T=t.ref(""),E=t.ref([0,0]);function I(H,X){const Z=X.getBoundingClientRect(),Q=(H.clientX-Z.left)/Z.width;return E.value[1]=`${X.offsetTop+X.parentElement.offsetTop}px`,E.value[0]=`${Q*100}%`,Q*b.value}const w=H=>{let X=H;for(;X&&X.className!=="subject-progress";)X=X.parentElement;return X},$=H=>{let X=w(H.target);X&&(T.value=ig(I(H,X)))},q=()=>{T.value=""},z=H=>{var Z;let X=w(H.target);X&&((Z=v.value)==null||Z.changeTime(I(H,X)))},N=async H=>{const Z=await(await fetch(H)).json();g.value=(Z||[]).map(se=>({...se,startTimeNumber:Qo(se.startTime),endTimeNumber:Qo(se.endTime)}))},U=t.ref("info"),x=t.computed(()=>{const H=[{label:s("meeting.baseInfo"),value:"info"}];return g.value.length&&H.push({label:s("meeting.subject"),value:"subject"}),H}),D=()=>{i.data&&(i.data.textJson&&m(i.data.textJson),i.data.topicJson&&N(i.data.topicJson))};t.watchEffect(()=>{D()});const B=H=>{n("change-date",H)},F=t.ref(null),P=t.ref("auto");let L=null,R=null;const te=()=>{F.value&&(P.value=`${F.value.offsetHeight}px`)},ee=()=>{cancelAnimationFrame(R),R=requestAnimationFrame(te)};return t.onMounted(()=>{F.value&&(L=new ResizeObserver(ee),L.observe(F.value),te())}),t.onUnmounted(()=>{cancelAnimationFrame(R),L==null||L.disconnect()}),(H,X)=>{var Z,se,Q,ie;return t.openBlock(),t.createElementBlock("div",RT,[t.createElementVNode("div",{class:"left-card card-wrapper",ref_key:"leftRef",ref:F},[t.createElementVNode("div",qT,[t.createElementVNode("div",FT,t.toDisplayString((Z=r.detail)==null?void 0:Z.topic)+"("+t.toDisplayString((se=r.detail)==null?void 0:se.date)+")",1),(Q=r.dates)!=null&&Q.length?(t.openBlock(),t.createBlock(t.unref(V.OSelect),{key:0,size:"large",clearable:!1,"model-value":(ie=r.detail)==null?void 0:ie.date,placeholder:t.unref(s)("meeting.selectDate"),onChange:B},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.dates,K=>(t.openBlock(),t.createBlock(t.unref(V.OOption),{key:K,value:K,label:K},null,8,["value","label"]))),128))]),_:1},8,["model-value","placeholder"])):t.createCommentVNode("",!0)]),t.createElementVNode("div",UT,[r.data?(t.openBlock(),t.createBlock(MT,{key:0,ref_key:"playerRef",ref:v,src:r.data.video,vtt:r.data.textVtt,poster:r.data.poster,captions:d.value,onGetDuration:k,instance:a.value,onGetInstance:o,trackIdx:l.value,onSetTrackIdx:c},null,8,["src","vtt","poster","captions","instance","trackIdx"])):t.createCommentVNode("",!0)]),t.createElementVNode("div",$T,[t.createVNode(t.unref(V.OTab),{modelValue:U.value,"onUpdate:modelValue":X[0]||(X[0]=K=>U.value=K),"max-show":9999},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(x.value,K=>(t.openBlock(),t.createBlock(t.unref(V.OTabPane),{key:K.value,value:K.value,label:K.label},null,8,["value","label"]))),128))]),_:1},8,["modelValue"]),t.createVNode(t.unref(V.OScroller),{class:t.normalizeClass(["tab-content",`tab-content-${U.value}`]),"show-type":"hover"},{default:t.withCtx(()=>{var K;return[U.value===x.value[0].value?(t.openBlock(),t.createElementBlock("div",zT,[t.createElementVNode("div",HT,[t.createElementVNode("span",null,t.toDisplayString(t.unref(s)("meeting.item1")),1),t.createElementVNode("span",null,t.toDisplayString(r.detail.sponsor),1)]),t.createElementVNode("div",XT,[t.createElementVNode("span",null,t.toDisplayString(t.unref(s)("meeting.item2")),1),t.createElementVNode("span",null,t.toDisplayString(r.detail.groupName),1)]),t.createElementVNode("div",jT,[t.createElementVNode("span",null,t.toDisplayString(t.unref(s)("meeting.item3")),1),t.createElementVNode("span",null,t.toDisplayString(r.detail.date)+"  "+t.toDisplayString(r.detail.start)+"~"+t.toDisplayString(r.detail.end),1)]),t.createElementVNode("div",GT,[t.createElementVNode("span",null,t.toDisplayString(t.unref(s)("meeting.item4")),1),t.createElementVNode("span",null,t.toDisplayString(r.detail.agenda||"-"),1)])])):t.createCommentVNode("",!0),U.value===((K=x.value[1])==null?void 0:K.value)?(t.openBlock(),t.createElementBlock("div",WT,[T.value?(t.openBlock(),t.createElementBlock("div",{key:0,class:"mouse-current-time",style:t.normalizeStyle({top:E.value[1],left:E.value[0]})},t.toDisplayString(T.value),5)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(g.value,(J,le)=>(t.openBlock(),t.createElementBlock("div",{class:"subject-item",key:J.title},[t.createElementVNode("div",YT,t.toDisplayString(J.title),1),b.value?(t.openBlock(),t.createElementBlock("div",KT,[t.createElementVNode("div",{class:"subject-progress-item",onClick:z,onMousemove:$,onMouseleave:q,"data-start":J.startTime,"data-end":J.endTime,style:t.normalizeStyle({"--start":(J.startTimeNumber<0?0:J.startTimeNumber)/b.value,"--end":(J.endTimeNumber>b.value?b.value:J.endTimeNumber)/b.value,background:C(le)})},null,44,QT)])):t.createCommentVNode("",!0)]))),128))])):t.createCommentVNode("",!0)]}),_:1},8,["class"])])],512),t.createElementVNode("div",{class:"right-card card-wrapper",style:t.normalizeStyle({height:P.value})},[t.createVNode(D2,{captions:d.value,trackIdx:l.value,instance:a.value},{empty:t.withCtx(()=>[t.renderSlot(H.$slots,"empty")]),_:3},8,["captions","trackIdx","instance"])],4)])}}}),JT={version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};function ZT(r,e){return t.openBlock(),t.createElementBlock("svg",JT,[...e[0]||(e[0]=[t.createElementVNode("path",{d:"M12.032 2.355c1.632 0 3.205 0.404 4.611 1.166 0.34 0.182 0.466 0.609 0.281 0.949s-0.609 0.463-0.949 0.281c-1.201-0.65-2.546-0.996-3.943-0.996-4.585 0-8.3 3.715-8.3 8.297 0 4.588 3.715 8.303 8.3 8.303s8.3-3.715 8.3-8.303c0-2.063-0.753-4.002-2.098-5.514-0.258-0.287-0.231-0.732 0.059-0.984 0.287-0.258 0.729-0.234 0.987 0.053 1.57 1.764 2.452 4.037 2.452 6.445 0 5.361-4.342 9.703-9.7 9.703s-9.7-4.342-9.7-9.703c0-5.355 4.342-9.697 9.7-9.697zM10.866 7.658c0-0.627 0.507-1.131 1.134-1.131s1.134 0.504 1.134 1.131c0 0.627-0.507 1.131-1.134 1.131s-1.134-0.504-1.134-1.131zM12.706 10.002c-0.044-0.346-0.337-0.609-0.691-0.609-0.387 0-0.7 0.311-0.703 0.697l-0.023 6.762 0.006 0.1c0.044 0.34 0.337 0.603 0.691 0.603 0.387 0.006 0.7-0.311 0.703-0.697l0.023-6.762-0.006-0.094z"},null,-1)])])}const e4={name:"components-icon-tips",render:ZT},t4={class:"o-sig-meeting-aside"},i4={class:"month"},n4={class:"days"},r4=["onClick"],s4={class:"day-d"},a4={class:"day-c"},o4={class:"arrow-wrapper"},zs=1,l4=t.defineComponent({__name:"OMeetingSigAside",props:{data:{},current:{},total:{},active:{},meetingDates:{},eventsDates:{}},emits:["click-date","change-month"],setup(r,{emit:e}){const{getConfig:i}=bn(),n=r,s=e,a=l=>{s("click-date",l)},o=l=>{n.current+l>=n.total||n.current+l<0||s("change-month",l)};return(l,c)=>(t.openBlock(),t.createElementBlock("div",t4,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.data,(d,m)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:m},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(d,g=>(t.openBlock(),t.createElementBlock("div",{key:g.month,class:"month-item"},[t.createElementVNode("div",i4,t.toDisplayString(g.month.replace(/-/g,"/")),1),t.createElementVNode("div",n4,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(g.days,C=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["day-item",r.active===`${g.month}-${C}`&&"active"]),key:C,onClick:b=>a(`${g.month}-${C}`)},[t.createElementVNode("div",s4,t.toDisplayString(C),1),t.createElementVNode("div",a4,[r.meetingDates.includes(`${g.month}-${C}`)?(t.openBlock(),t.createBlock(t.unref(V.OIcon),{key:0,style:t.normalizeStyle({zIndex:t.unref(i)(t.unref(Ie).MEETING,"zIndex"),backgroundColor:t.unref(i)(t.unref(Ie).MEETING,"color")})},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(t.unref(i)(t.unref(Ie).MEETING,"icon"))))]),_:1},8,["style"])):t.createCommentVNode("",!0),r.eventsDates.includes(`${g.month}-${C}`)?(t.openBlock(),t.createBlock(t.unref(V.OIcon),{key:1,style:t.normalizeStyle({zIndex:t.unref(i)(t.unref(Ie).EVENTS,"zIndex"),backgroundColor:t.unref(i)(t.unref(Ie).EVENTS,"color")})},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(t.unref(i)(t.unref(Ie).EVENTS,"icon"))))]),_:1},8,["style"])):t.createCommentVNode("",!0)])],10,r4))),128))])]))),128))],64))),128)),t.createElementVNode("div",o4,[t.createVNode(t.unref(V.OIcon),{onClick:c[0]||(c[0]=d=>o(0-zs)),class:t.normalizeClass(r.current-zs<0&&"disabled")},{default:t.withCtx(()=>[t.createVNode(t.unref(V.OIconArrowLeft))]),_:1},8,["class"]),t.createVNode(t.unref(V.OIcon),{onClick:c[1]||(c[1]=d=>o(zs)),class:t.normalizeClass(r.current+zs>=r.total&&"disabled")},{default:t.withCtx(()=>[t.createVNode(t.unref(V.OIconArrowRight))]),_:1},8,["class"])])]))}}),u4={class:"o-sig-meeting-calendar"},c4={class:"meeting-card-header"},d4={key:0,class:"header-left"},h4={key:0,class:"phone-filter-wrapper"},f4={class:"date-select"},p4={class:"meeting-card-content"},Gd=t.defineComponent({__name:"OMeetingSigCalendar",props:{sigName:{},getMeetingListRequest:{},getDateListRequest:{},getEventsListRequest:{},dates:{},emptyImg:{},emptyText:{}},setup(r){const e=r,{t:i,meetingTabs:n}=bn(),{lePadV:s}=Et.useScreen(),a=t.ref(""),o=t.ref(!1),l=t.ref([]),c=t.computed(()=>s.value?100:5),d=t.ref(""),m=t.ref([]),g=t.ref([]),C=t.ref([]),b=t.ref(-1),k=F=>{T(F)},v=F=>{T(F)},T=async F=>{if(e.getMeetingListRequest)try{o.value=!0,a.value=xe(F).format("YYYY-MM-DD");const P=await e.getMeetingListRequest(a.value,e.sigName);l.value=P.map(L=>({...L,time:`${L.start}-${L.end}`,date:L.date||a.value,type:Ie.MEETING}))}finally{o.value=!1}},E=async()=>{e.getDateListRequest&&(m.value=await e.getDateListRequest()),e.getEventsListRequest&&(C.value=(await e.getEventsListRequest(a.value,e.sigName)).map(F=>({...F,type:Ie.EVENTS})),g.value=(C.value||[]).map(F=>F.dates||[]).flat())},I=t.ref(Ie.ALL),w=()=>{E()},$=F=>{const P=xe(F).format("YYYY-MM-DD");return[P.slice(0,7),P.slice(8,10)]},q=t.computed(()=>{let F;return I.value===Ie.ALL?F=[...m.value||[],...g.value]:I.value===Ie.MEETING?F=m.value||[]:I.value===Ie.EVENTS?F=g.value||[]:F=[],[...new Set(F)].sort((P,L)=>xe(P).isAfter(xe(L))?1:-1).map(P=>xe(P).format("YYYY-MM-DD"))}),z=()=>{let F=q.value.find(P=>P===xe().format("YYYY-MM-DD"));F||(F=q.value.find(P=>xe(P).isAfter(xe()))||[...q.value].reverse().find(P=>xe().isAfter(xe(P)))),d.value=F};t.watch(()=>q.value,F=>{F.length&&(z(),t.nextTick(()=>{T(d.value)}))});const N=t.computed(()=>{const F=q.value.reduce((te,ee)=>{var Z,se;const[H,X]=$(ee);return te[H]={count:(((Z=te[H])==null?void 0:Z.count)||0)+1,days:[...((se=te[H])==null?void 0:se.days)||[],X]},te},{}),P=Object.keys(F).map(te=>({...F[te],month:te})),L=[];let R=[];return P.forEach(te=>{for(;te.days.length;)if(!R.length)te.days.splice(0,6).forEach(ee=>{R.push({month:te.month,day:ee})}),R.length>=5&&(L.push(R),R=[]);else{let ee=R.length;ee%2===1&&(ee+=1),te.days.length+R.length<=6?(te.days.splice(0,6).forEach(H=>{R.push({month:te.month,day:H})}),R.length>=5&&(L.push(R),R=[])):(te.days.splice(0,6-ee).forEach(H=>{R.push({month:te.month,day:H})}),R.length>=5&&(L.push(R),R=[]))}}),R.length&&(L.push(R),R=[]),L}),U=t.computed(()=>N.value.map(F=>{const P=F.reduce((L,R)=>(L[R.month]=L[R.month]||[],L[R.month].push(R.day),L),{});return Object.keys(P).map(L=>({month:L,days:P[L]||[]}))})),x=()=>{N.value.length?(b.value=N.value.findIndex(F=>F.some(P=>d.value===`${P.month}-${P.day}`)),b.value===-1&&(b.value=N.value.findIndex(F=>F.some(P=>d.value.includes(P.month))))):b.value=-1};t.watch([()=>N.value,()=>d.value],()=>{x()},{deep:!0});const D=F=>{b.value+=F};t.onMounted(()=>{E()});const B=t.computed(()=>{let F;return I.value===Ie.ALL?F=[...l.value||[],...C.value]:I.value===Ie.MEETING?F=l.value||[]:I.value===Ie.EVENTS?F=C.value||[]:F=[],F});return(F,P)=>(t.openBlock(),t.createElementBlock("div",u4,[t.createElementVNode("div",c4,[d.value?(t.openBlock(),t.createElementBlock("div",d4,[t.createElementVNode("span",null,t.toDisplayString(t.unref(i)("meeting.latestMeeting")),1),t.createElementVNode("span",null,t.toDisplayString(t.unref(xe)(d.value).format("YYYY/MM/DD")),1),t.createVNode(t.unref(V.OPopover),null,{target:t.withCtx(()=>[t.createVNode(t.unref(V.OIcon),{class:"tips"},{default:t.withCtx(()=>[t.createVNode(t.unref(e4))]),_:1})]),default:t.withCtx(()=>[t.createElementVNode("div",null,[t.createElementVNode("p",null,t.toDisplayString(t.unref(i)("meeting.detailHalfYearMeetings")),1)])]),_:1})])):t.createCommentVNode("",!0),t.createVNode(t.unref(V.OTab),{modelValue:I.value,"onUpdate:modelValue":P[0]||(P[0]=L=>I.value=L),onChange:w,line:!1,"max-show":9999},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(n).slice(0,-1),L=>(t.openBlock(),t.createBlock(t.unref(V.OTabPane),{key:L.value,value:L.value},{nav:t.withCtx(()=>[t.createVNode(t.unref(V.OIcon),null,{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(L.icon)))]),_:2},1024),t.createTextVNode(" "+t.toDisplayString(L.label),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue"])]),t.unref(s)&&q.value.length?(t.openBlock(),t.createElementBlock("div",h4,[t.createElementVNode("div",f4,[t.createVNode(t.unref(V.OSelect),{modelValue:a.value,"onUpdate:modelValue":P[1]||(P[1]=L=>a.value=L),onChange:v},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(q.value,L=>(t.openBlock(),t.createBlock(t.unref(V.OOption),{key:L,value:L,label:t.unref(ct)(L)},null,8,["value","label"]))),128))]),_:1},8,["modelValue"])]),t.createElementVNode("div",null,[t.createVNode(t.unref(V.OTab),{modelValue:I.value,"onUpdate:modelValue":P[2]||(P[2]=L=>I.value=L),onChange:w,line:!1,"max-show":9999},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(n).slice(0,-1),L=>(t.openBlock(),t.createBlock(t.unref(V.OTabPane),{key:L.value,value:L.value},{nav:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(L.label),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue"])])])):t.createCommentVNode("",!0),!t.unref(s)||t.unref(s)&&q.value.length?(t.openBlock(),t.createBlock(t.unref(V.ODivider),{key:1,class:"meeting-divider"})):t.createCommentVNode("",!0),t.createElementVNode("div",p4,[!t.unref(s)&&b.value!==-1?(t.openBlock(),t.createBlock(l4,{key:0,data:U.value.slice(b.value,b.value+1),meetingDates:I.value!==t.unref(Ie).EVENTS?m.value:[],eventsDates:I.value!==t.unref(Ie).MEETING?g.value:[],onClickDate:k,onChangeMonth:D,current:b.value,total:U.value.length,active:a.value},null,8,["data","meetingDates","eventsDates","current","total","active"])):t.createCommentVNode("",!0),t.createVNode(t.unref(V.OScroller),{class:"list-content","show-type":"hover",size:"small"},{default:t.withCtx(()=>[t.createVNode(Th,{list:B.value,rows:c.value},{empty:t.withCtx(()=>[t.renderSlot(F.$slots,"empty",{},()=>[t.createVNode(t.unref(V.OResult),{class:"empty-result"},{image:t.withCtx(()=>[t.createVNode(t.unref(V.OFigure),{class:"img",src:r.emptyImg??t.unref(xh)},null,8,["src"])]),description:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(r.emptyText??t.unref(i)("meeting.meetingEmptyText")),1)]),_:1})])]),_:3},8,["list","rows"])]),_:3})])]))}}),m4={class:"o-my-meeting-calendar"},g4={class:"meeting-list"},v4={class:"list-calendar-mb"},y4={class:"list-calendar"},_4=["onClick"],b4={class:"date-cell-text"},T4={class:"list-body"},x4=["id"],C4={class:"item-header"},S4={class:"item-header-left"},E4={class:"header-info"},k4={class:"meeting-title"},w4={key:0},D4={class:"title-wrapper"},V4={class:"title-text"},A4={key:1,class:"tag-wrapper"},I4={class:"meeting-info"},N4={key:0,class:"item-header-right"},P4={class:"meeting-detail"},O4={key:0,class:"meeting-btn"},B4={key:0,class:"load-text"},L4={class:"dialog-content"},Wd=t.defineComponent({__name:"OMeetingMyCalendar",props:{cancelSubMeetingRequest:{},deleteMeetingRequest:{},getMeetingListRequest:{},groupType:{default:_i.SIG}},emits:["edit"],setup(r,{emit:e}){const i=V.useMessage(null),n=t.ref(!1),s=t.ref(1),a=t.ref(50),o=t.ref(null),l=t.ref([]),c=t.ref([]),d=t.computed(()=>o.value===null||c.value.length<o.value),m=t.ref(!1),{t:g,locale:C,getPointStr:b,getConfig:k,getWeekFromDate:v}=bn(),T=t.computed(()=>C.value===Xe.Locales.EN),E=r,I=t.ref(!1),{isPhone:w}=Et.useScreen(),$=t.ref([]),q=e,z=t.ref(!1),N=t.ref(!1),U=async()=>{if(E.getMeetingListRequest&&!z.value)try{if(o.value!==null&&o.value>0&&(s.value-1)*a.value>o.value)return;if(!d.value&&w.value){$e("next-month");return}n.value=!0,z.value=!0;const pe=await E.getMeetingListRequest({page:s.value,size:a.value,order_by:"date",order_type:"asc",month:xe(Be.value).format("YYYY-MM")}),ye=(pe.data||[]).map(Ce=>{var ni,qt,gi;const{is_cycle:he,date:ue,start:ve,end:Le,cycle_sub:De,cycle_start_date:ht,cycle_end_date:Me,cycle_start:It,cycle_end:vt,cycle_type:Nt,cycle_interval:wt,cycle_point:Rt}=Ce;if(he){let Pt="",vi="";Nt===gn&&(vi=g("meeting.cycleDay")),Nt===vn&&(wt>1?vi=g("meeting.cycleWeek.other",[b(Nt,Rt),wt]):vi=g("meeting.cycleWeek.one",[b(Nt,Rt)])),Nt===nn&&(vi=g("meeting.cycleMonth",[b(Nt,Rt)])),Pt=g("meeting.cycleMeetingText2",{startDate:ht,endDate:Me,startTime:It,endTime:vt,cycleType:vi});const S=((ni=Ce.obs_data)==null?void 0:ni.filter(A=>A.text_video_url))||[];return De.filter(A=>xe(A.date).isBefore(xe(Be.value).add(1,"month").format("YYYY-MM-01"))&&!xe(A.date).isBefore(xe(Be.value).format("YYYY-MM-01"))).map(({id:A,...Y})=>({...Ce,...Y,timeRange:Pt,dateRange:`${Y.start}-${Y.end}`,hasObsData:S.find(oe=>oe.sub_id===Y.sub_id),time:`${Y.start}-${Y.end}`,isExpired:xe(`${Y.date} ${Y.start}`).isBefore(xe())}))}return[{...Ce,dateRange:`${ve} - ${Le}`,timeRange:`${ve} - ${Le}`,hasObsData:!!((gi=(qt=Ce.obs_data)==null?void 0:qt.filter(Pt=>Pt.text_video_url))!=null&&gi.length),time:`${ve}-${Le}`,isExpired:xe(`${ue} ${ve}`).isBefore(xe())}]}).flat().filter(Ce=>Ce.date.slice(0,7)===ct(Be.value,"YYYY-MM-DD").slice(0,7));m.value?(c.value=pe.data||[],l.value=ye):s.value===1&&!w.value?(c.value=pe.data||[],l.value=ye):(c.value=[...c.value,...pe.data||[]],l.value=[...l.value,...ye]),l.value.sort((Ce,he)=>Ce.date===he.date?Nn(Ce.start)>Nn(he.start)?1:-1:xe(Ce.date).isAfter(xe(he.date))?1:-1),o.value=(pe==null?void 0:pe.total)||0,t.nextTick(()=>{Je(),it.value&&!w.value&&P()})}finally{n.value=!1,z.value=!1,N.value=!1,m.value=!1}},x=fi.useDebounceFn(()=>{d.value&&(w.value||(N.value=!0,s.value++,U()))},200),D=fi.useDebounceFn(()=>{if(!d.value||!w.value)return;const pe=window.scrollY||window.pageYOffset,ye=window.innerHeight;document.documentElement.scrollHeight-(pe+ye)<=300&&!z.value&&(N.value=!0,s.value++,U())},200),B=pe=>{const ye=l.value.filter(Ce=>Ce.date===pe);return ye.length&&ye.every(Ce=>Ce.is_delete)},F=pe=>{const ye=pe.target;if(!ye)return;const Ce=ye.scrollTop,he=ye.scrollHeight,ue=ye.clientHeight;Ce+ue>=he&&x()},P=()=>{it.value.getContainerEl().addEventListener("scroll",F)},L=t.ref({}),R=(pe,ye)=>{pe&&ye&&(L.value[ye]=pe)},te=async pe=>{await L.value[pe].copyInfo(),i.success({content:g("common.copySuccess")})},ee=t.ref(!1),H=t.ref(null),X=pe=>{q("edit",pe,"whole")},Z=pe=>{H.value=pe,ee.value=!0},se=async()=>{if(E.deleteMeetingRequest&&H.value)try{I.value=!0;const pe=await E.deleteMeetingRequest(H.value.id);if(typeof pe=="boolean"&&!pe)return;ee.value=!1,i.success({content:`${g("meeting.meetingCancel",[H.value.topic])}`}),m.value=!0,U()}finally{I.value=!1}},Q=t.ref(!1),ie=t.ref(""),K=t.ref(null),J=[{label:g("meeting.meetingSingle"),value:"single"},{label:g("meeting.meetingCycle"),value:"whole"}],le=t.ref("single"),ge=(pe,ye)=>{pe.is_cycle?(K.value=pe,ie.value=ye,Q.value=!0):ye==="cancel"?Z(pe):X(pe)},Ne=()=>{Q.value=!1,K.value=null,ie.value="",le.value="single"},Te=async()=>{const pe=K.value;if(pe)if(ie.value==="cancel")try{let ye;if(I.value=!0,le.value==="single"&&pe.is_cycle){if(!E.cancelSubMeetingRequest)return;ye=await E.cancelSubMeetingRequest(pe.sub_id)}else{if(!E.deleteMeetingRequest)return;ye=await E.deleteMeetingRequest(pe.id)}if(typeof ye=="boolean"&&!ye)return;i.success({content:`${g("meeting.meetingCancel",[pe.topic])}`}),Ne(),m.value=!0,U()}finally{I.value=!1}else q("edit",pe,le.value),Ne()},Oe=t.ref(),He=t.computed(()=>[...new Set(l.value.map(pe=>pe.date))].sort((pe,ye)=>xe(pe).isBefore(xe(ye))?-1:1)),Ke=t.computed(()=>[...new Set(l.value.filter(pe=>!pe.isExpired&&!pe.is_delete).map(pe=>pe.date))].sort((pe,ye)=>xe(pe).isBefore(xe(ye))?-1:1)),Be=t.ref(),Je=()=>{var Ce;const pe=Ke.value.find(he=>!xe(he).isBefore(xe(new Date).format("YYYY-MM-DD")));pe?Be.value=pe:Be.value||(Be.value=xe().format("YYYY-MM-DD")),(Ce=Oe.value)==null||Ce.pickDay(xe(Be.value)),Be.value=xe(Be.value).format("YYYY-MM-DD");const ye=l.value.find(he=>he.date===Be.value&&!he.isExpired&&!he.is_delete);ye&&($.value=[ye.sub_id||ye.id])},tt=(pe,ye)=>{var Ce;(!ye||!((Ce=pe.target)!=null&&Ce.className.includes("date-cell-text")))&&(pe.stopPropagation(),pe.preventDefault())},$e=pe=>{Oe.value&&(s.value=1,o.value=null,window.scrollTo({top:0,behavior:"smooth"}),Oe.value.selectDate(pe),m.value=!0,t.nextTick(()=>{Be.value=xe(Oe.value.selectedDay).format("YYYY-MM-DD"),U()}))},gt=t.computed(()=>l.value.reduce((pe,ye)=>{if(pe.length){const Ce=pe.at(-1);return(Ce==null?void 0:Ce.date)===ye.date?Ce.list.push(ye):pe.push({date:ye.date,list:[ye]}),pe}else return[{date:ye.date,list:[ye]}]},[])),it=t.ref();t.watch(()=>Be.value,()=>{Pe(Be.value)});const Pe=pe=>{var he,ue,ve;const ye=xe(pe).format("YYYY-MM-DD"),Ce=document.querySelector(`#group-title-${ye}`);Ce&&(w.value?window.scrollTo({top:(((he=Ce.parentElement)==null?void 0:he.offsetTop)||0)-52,behavior:"smooth"}):(ve=it.value)==null||ve.scrollTo({top:((ue=Ce.parentElement)==null?void 0:ue.offsetTop)||0,behavior:"smooth"}))};t.onMounted(()=>{U(),window.addEventListener("scroll",D),window.addEventListener("resize",D)}),t.onUnmounted(()=>{var ye;window.removeEventListener("scroll",D),window.removeEventListener("resize",D);const pe=(ye=it.value)==null?void 0:ye.getContainerEl();pe==null||pe.removeEventListener("scroll",F)});const Ee=pe=>{const ye=xe(pe||void 0);return T.value?ye.format("MMMM YYYY"):ye.format("YYYY MM月")},me=t.computed(()=>[{id:"confirm",color:"primary",label:g("common.confirm"),variant:"solid",size:"large",round:"pill",loading:I.value,onClick:()=>{Te()}},{id:"cancel",color:"primary",label:g("common.cancel"),variant:"outline",size:"large",round:"pill",onClick:()=>{Ne()}}]),qe=t.computed(()=>[{id:"confirm",color:"primary",label:g("common.confirm"),variant:"solid",size:"large",round:"pill",loading:I.value,onClick:()=>{se()}},{id:"cancel",color:"primary",label:g("common.cancel"),variant:"outline",size:"large",round:"pill",onClick:()=>{ee.value=!1}}]);return(pe,ye)=>(t.openBlock(),t.createElementBlock("div",m4,[t.createElementVNode("div",g4,[t.createElementVNode("div",v4,[t.createElementVNode("span",null,t.toDisplayString(Ee(Be.value)),1),t.createElementVNode("span",null,[t.createVNode(t.unref(V.OIcon),{onClick:ye[0]||(ye[0]=Ce=>$e("prev-month"))},{default:t.withCtx(()=>[t.createVNode(t.unref(V.OIconChevronLeft))]),_:1}),t.createVNode(t.unref(V.OIcon),{onClick:ye[1]||(ye[1]=Ce=>$e("next-month"))},{default:t.withCtx(()=>[t.createVNode(t.unref(V.OIconChevronRight))]),_:1})])]),t.createElementVNode("div",y4,[t.createVNode(t.unref(rt.ElCalendar),{ref_key:"calendarRef",ref:Oe,modelValue:Be.value,"onUpdate:modelValue":ye[4]||(ye[4]=Ce=>Be.value=Ce)},{header:t.withCtx(()=>[t.createElementVNode("span",null,t.toDisplayString(Ee(Be.value)),1),t.createElementVNode("div",null,[t.createVNode(t.unref(V.OIcon),{onClick:ye[2]||(ye[2]=Ce=>$e("prev-month"))},{default:t.withCtx(()=>[t.createVNode(t.unref(V.OIconChevronLeft))]),_:1}),t.createVNode(t.unref(V.OIcon),{onClick:ye[3]||(ye[3]=Ce=>$e("next-month"))},{default:t.withCtx(()=>[t.createVNode(t.unref(V.OIconChevronRight))]),_:1})])]),"date-cell":t.withCtx(({data:Ce})=>[t.createElementVNode("div",{onClick:he=>tt(he,He.value.includes(Ce.day)),class:t.normalizeClass({"date-cell":!0,"is-selected":Ce.isSelected,"is-today":t.unref(ct)(Ce.day)===t.unref(ct)(),clickable:He.value.includes(Ce.day),expired:t.unref(xe)(t.unref(ct)()).isAfter(t.unref(xe)(Ce.day)),"all-deleted":B(Ce.day)}),style:t.normalizeStyle({"--dot-bg":`${t.unref(k)(t.unref(Ie).MEETING,"color")}`})},[t.createElementVNode("div",b4,t.toDisplayString(Number(Ce.day.split("-")[2])),1)],14,_4)]),_:1},8,["modelValue"])]),t.createElementVNode("div",{class:t.normalizeClass(["list-wrapper",l.value.length?"":"is-empty"])},[l.value.length?(t.openBlock(),t.createBlock(t.unref(V.OScroller),{key:0,ref_key:"scrollerRef",ref:it,onScrollend:t.unref(x),class:"scroller-container","show-type":"hover"},{default:t.withCtx(()=>[t.createElementVNode("div",T4,[t.createVNode(t.unref(V.OCollapse),{modelValue:$.value,"onUpdate:modelValue":ye[7]||(ye[7]=Ce=>$.value=Ce),accordion:t.unref(w)},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(gt.value,(Ce,he)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:Ce.date},[he===0?(t.openBlock(),t.createElementBlock("div",{key:0,class:"list-month-change prev-month",onClick:ye[5]||(ye[5]=ue=>$e("prev-month"))},[t.createVNode(t.unref(V.OIcon),null,{default:t.withCtx(()=>[t.createVNode(t.unref(V.OIconArrowLeft))]),_:1}),t.createElementVNode("span",null,t.toDisplayString(t.unref(g)("meeting.preMonth")),1)])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(["group-item",he===gt.value.length-1&&"last-item"])},[t.createElementVNode("div",{class:t.normalizeClass({"group-bar":!0,"is-active":t.unref(xe)(Be.value).format("YYYY-MM-DD")===Ce.date,"is-end":Ce.list.every(ue=>ue.isExpired)})},[...ye[11]||(ye[11]=[t.createElementVNode("div",{class:"group-bar-line"},null,-1),t.createElementVNode("div",{class:"group-bar-dot"},null,-1)])],2),t.createElementVNode("div",{class:t.normalizeClass({"group-title":!0,"is-end":Ce.list.every(ue=>ue.isExpired)}),id:`group-title-${t.unref(xe)(new Date(Ce.date)).format("YYYY-MM-DD")}`},t.toDisplayString(t.unref(xe)(Ce.date).format("MM/DD"))+" "+t.toDisplayString(t.unref(v)(Ce.date)),11,x4),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Ce.list,(ue,ve)=>(t.openBlock(),t.createBlock(t.unref(V.OCollapseItem),{key:ue.sub_id||ue.id,value:ue.sub_id||ue.id,class:t.normalizeClass({"last-item":he===gt.value.length-1&&ve===Ce.list.length-1,"is-delete":ue.is_delete,"is-end":ue.isExpired})},{title:t.withCtx(()=>[t.createElementVNode("div",C4,[t.createElementVNode("div",S4,[t.createElementVNode("div",{class:"meeting-icon",style:t.normalizeStyle({backgroundColor:`${ue.is_delete?"var(--o-color-info4)":t.unref(k)(t.unref(Ie).MEETING,"color")}`})},[t.createVNode(t.unref(V.OIcon),null,{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(t.unref(k)(t.unref(Ie).MEETING,"icon"))))]),_:1})],4),t.createElementVNode("div",E4,[t.createElementVNode("div",k4,[ue.is_delete?(t.openBlock(),t.createElementBlock("div",w4,t.toDisplayString(t.unref(g)("meeting.meetingCancelled")),1)):t.createCommentVNode("",!0),t.createElementVNode("div",D4,[t.createElementVNode("div",V4,t.toDisplayString(ue.topic),1)]),ue.is_cycle?(t.openBlock(),t.createElementBlock("div",A4,[t.createVNode(t.unref(V.OTag),{color:"primary",variant:"outline"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(g)("meeting.cycle")),1)]),_:1})])):t.createCommentVNode("",!0)]),t.createElementVNode("div",I4,[t.createElementVNode("span",null,t.toDisplayString(ue.dateRange),1),t.createVNode(t.unref(V.ODivider),{direction:"v"}),t.createElementVNode("span",null,t.toDisplayString(r.groupType===t.unref(_i).GROUP?t.unref(g)("meeting.groups"):t.unref(g)("meeting.sigs"))+": "+t.toDisplayString(ue.group_name),1)])])]),ue.is_delete?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",N4,[ue.isExpired?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[ue.etherpad?(t.openBlock(),t.createBlock(t.unref(V.OLink),{key:0,"hover-underline":!1,target:"_blank",href:ue.etherpad},{suffix:t.withCtx(()=>[t.createVNode(t.unref(V.OIcon),null,{default:t.withCtx(()=>[t.createVNode(t.unref(V.OIconChevronRight))]),_:1})]),default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(g)("meeting.meetingSummary"))+" ",1)]),_:1},8,["href"])):t.createCommentVNode("",!0),ue.hasObsData?(t.openBlock(),t.createBlock(t.unref(V.OLink),{key:1,"hover-underline":!1,target:"_blank",href:`/${t.unref(C)}/video/${ue.group_name}/${ue.mid}/${ue.date}`},{suffix:t.withCtx(()=>[t.createVNode(t.unref(V.OIcon),null,{default:t.withCtx(()=>[t.createVNode(t.unref(V.OIconChevronRight))]),_:1})]),default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(g)("meeting.viewRecord"))+" ",1)]),_:1},8,["href"])):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createBlock(t.unref(V.OLink),{key:0,"hover-underline":!1,target:"_blank",href:ue.join_url,rel:"noopener noreferrer"},{suffix:t.withCtx(()=>[t.createVNode(t.unref(V.OIcon),null,{default:t.withCtx(()=>[t.createVNode(t.unref(V.OIconChevronRight))]),_:1})]),default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(g)("meeting.joinMeeting"))+" ",1)]),_:1},8,["href"]))]))]),t.createVNode(t.unref(V.OIcon),{onClick:t.withModifiers(()=>te(ue.sub_id||ue.id),["stop"]),class:"copy-icon"},{default:t.withCtx(()=>[t.createVNode(t.unref(kl))]),_:1},8,["onClick"])]),default:t.withCtx(()=>[t.createElementVNode("div",P4,[t.createVNode(ts,{show:$.value.includes(ue.sub_id||ue.id),data:ue,ref_for:!0,ref:Le=>R(Le,ue.sub_id||ue.id),from:"my"},null,8,["show","data"]),!ue.isExpired&&!ue.is_delete?(t.openBlock(),t.createElementBlock("div",O4,[t.createVNode(t.unref(V.OButton),{color:"normal",variant:"text",onClick:Le=>ge(ue,"edit")},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(g)("meeting.editMeeting")),1)]),_:1},8,["onClick"]),t.createVNode(t.unref(V.OButton),{color:"normal",variant:"text",onClick:Le=>ge(ue,"cancel")},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(g)("meeting.cancelMeeting")),1)]),_:1},8,["onClick"])])):t.createCommentVNode("",!0)])]),_:2},1032,["value","class"]))),128)),ye[12]||(ye[12]=t.createElementVNode("div",{class:"height-placeholder"},null,-1))],2),he===gt.value.length-1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[N.value?(t.openBlock(),t.createElementBlock("div",B4,t.toDisplayString(t.unref(g)("common.loading")),1)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"list-month-change next-month",onClick:ye[6]||(ye[6]=ue=>$e("next-month"))},[t.createVNode(t.unref(V.OIcon),null,{default:t.withCtx(()=>[t.createVNode(t.unref(V.OIconArrowRight))]),_:1}),t.createElementVNode("span",null,t.toDisplayString(t.unref(g)("meeting.nextMonth")),1)])],64)):t.createCommentVNode("",!0)],64))),128))]),_:1},8,["modelValue","accordion"])])]),_:1},8,["onScrollend"])):n.value?t.createCommentVNode("",!0):t.renderSlot(pe.$slots,"empty",{key:1})],2),t.createVNode(t.unref(V.ODialog),{visible:Q.value,"onUpdate:visible":ye[9]||(ye[9]=Ce=>Q.value=Ce),"main-class":"handle-dialog",onClose:Ne,actions:me.value},{header:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(g)("meeting.meetingHandleText",[ie.value==="edit"?t.unref(g)("meeting.edit"):t.unref(g)("meeting.cancel")])),1)]),default:t.withCtx(()=>[t.createVNode(t.unref(V.ORadioGroup),{modelValue:le.value,"onUpdate:modelValue":ye[8]||(ye[8]=Ce=>le.value=Ce)},{default:t.withCtx(()=>[(t.openBlock(),t.createElementBlock(t.Fragment,null,t.renderList(J,Ce=>t.createVNode(t.unref(V.ORadio),{value:Ce.value,key:Ce.value},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(Ce.label),1)]),_:2},1032,["value"])),64))]),_:1},8,["modelValue"])]),_:1},8,["visible","actions"]),t.createVNode(t.unref(V.ODialog),{visible:ee.value,"onUpdate:visible":ye[10]||(ye[10]=Ce=>ee.value=Ce),"main-class":"cancel-dialog",actions:qe.value},{header:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(g)("meeting.confirmCancel")),1)]),default:t.withCtx(()=>{var Ce;return[t.createElementVNode("div",L4,t.toDisplayString(t.unref(g)("meeting.confirmCancelDesc",[(Ce=H.value)==null?void 0:Ce.topic])),1)]}),_:1},8,["visible","actions"])])]))}}),M4=Object.assign(fc,{install(r){r.component("OMeetingCalendar",fc)}}),R4=Object.assign(gc,{install(r){r.component("OMeetingForm",gc)}}),q4=Object.assign(jd,{install(r){r.component("OMeetingPlayback",jd)}}),F4=Object.assign(Gd,{install(r){r.component("OMeetingSigCalendar",Gd)}}),U4=Object.assign(Wd,{install(r){r.component("OMeetingMyCalendar",Wd)}}),$4={class:"o-activity-table"},z4={key:0,class:"table-wrapper"},H4={class:"expand-detail"},X4={class:"sort-btn"},j4={class:"activity-btn"},G4={key:0,class:"pagination-wrapper"},W4={key:1,class:"collapse-wrapper"},Y4={class:"title-top"},K4={class:"act-title"},Q4={class:"act-sponsor"},J4={class:"sponsor"},Z4={class:"activity-btn"},e8={class:"activity-detail"},t8={key:0,class:"pagination"},i8={class:"dialog-content"},n8={class:"dialog-content"},Yd=t.defineComponent({__name:"OActivityApproval",props:{getTableDataRequest:{},applicantList:{},cancelActivityRequest:{},deleteActivityRequest:{},approveActivityRequest:{},rejectActivityRequest:{},getActivityDetailRequest:{}},setup(r){const{t:e,locale:i}=Xe.useI18n(),n=t.computed(()=>i.value==="zh"),{approvalStatusMap:s,statusMap:a,activityTypeMap:o}=xa(),l=V.useMessage(null),{isPhone:c,lePadV:d}=Et.useScreen(),m=r,g=t.reactive({page:1,size:10,status:"",is_delete:0,search:"",sponsor:"",order_by:""}),C=t.ref([]),b=t.computed(()=>m.applicantList.map(Pe=>({value:Pe,label:Pe}))),k=()=>{g.sponsor=C.value.join(",")},v=t.ref("desc"),T=()=>{v.value=v.value==="asc"?"desc":"asc",g.order_by=v.value},E=t.ref(),I=t.computed(()=>{const Pe=[];return s.value.forEach(Ee=>{Pe.push(Ee)}),Pe.slice(1)}),w=()=>{g.status=E.value,E.value==="cancel"?g.is_delete=1:g.is_delete=0},$=t.ref([]),q=t.ref(0),z=[10,20,30,40],N=async()=>{const{page:Pe,size:Ee,status:me,sponsor:qe,order_by:pe,search:ye,is_delete:Ce}=g;let he={page:Pe,size:Ee,sponsor:qe,order_by:pe,search:ye};if(me!=="all"&&me!==""&&(he.is_delete=Ce),me==="cancel"?he.status="":he.status=me,!m.getTableDataRequest)return;const ue=await m.getTableDataRequest(he);$.value=(ue.data||[]).map(ve=>{var vt;const{start_date:Le,end_date:De,start:ht,end:Me,activity_type:It}=ve;return[{...ve,time:`${Le}-${Me}`,start_date_time:`${Le} ${ht}`,end_date_time:`${De} ${Me}`,type:Ie.EVENTS,dateRange:`${Le} ${ht}-${De} ${Me}`,activity_type:(vt=o.value.get(It))==null?void 0:vt.label}]}).flat(),q.value=ue.total},U=Pe=>{Pe.pageSize!==g.size?g.page=1:g.page=Pe.page,g.size=Pe.pageSize,N()},x=t.ref({reason:""}),D=t.ref(),B=t.ref(!1),F=t.ref(null),P=t.ref(""),L=t.ref(0),R=t.ref(!1),te=t.ref({reason:[{required:!0,message:e("meeting.enterReviewNotes")}]}),ee=async()=>{var Pe,Ee,me,qe;if(!(!m.approveActivityRequest||!m.rejectActivityRequest))try{B.value=!0;const pe=await((Pe=D.value)==null?void 0:Pe.validate());if(!pe||pe.some(ye=>!!ye)){B.value=!1;return}L.value===1?await m.approveActivityRequest((Ee=F.value)==null?void 0:Ee.id,x.value):await m.rejectActivityRequest((me=F.value)==null?void 0:me.id,x.value),N(),H(),l.success({content:e("meeting.reviewSuccess",[(qe=F.value)==null?void 0:qe.title])})}finally{R.value=!1,B.value=!1}},H=()=>{R.value=!1,Z.value=!1,B.value=!1,x.value.reason=""},X=async()=>{var Pe;if(m.deleteActivityRequest&&m.cancelActivityRequest)try{B.value=!0,ie.value===1?await m.cancelActivityRequest(F.value.id,x.value):await m.deleteActivityRequest(F.value.id,x.value),N(),H(),l.success({content:e("meeting.activityActionSuccess",[(Pe=F.value)==null?void 0:Pe.title,Q.value])})}finally{B.value=!1,Z.value=!1}},Z=t.ref(!1),se=t.ref(""),Q=t.ref(""),ie=t.ref(0),K=Pe=>{se.value=e("meeting.deleteActivity"),Q.value=e("meeting.deleteActivity").toLowerCase(),F.value=Pe,ie.value=0,Z.value=!0},J=Pe=>{se.value=e("meeting.cancelActivity"),Q.value=e("common.cancel").toLowerCase(),F.value=Pe,ie.value=1,Z.value=!0},le=Pe=>{F.value=Pe,P.value=e("meeting.approveReview"),L.value=1,R.value=!0},ge=Pe=>{F.value=Pe,P.value=e("meeting.rejectReview"),L.value=0,R.value=!0},Ne=t.ref([]),Te=t.ref([]),Oe=Pe=>{const Ee=Pe.toString();if(!m.getActivityDetailRequest)return;Ne.value.includes(Ee)||(Ne.value.push(Ee),m.getActivityDetailRequest(Ee).then(qe=>{var pe;(pe=$.value)==null||pe.forEach(ye=>{ye.id===qe.id&&(ye.approve_record=qe.approve_record,ye.approver=qe.approver)})}));const me=Te.value.indexOf(Ee);Te.value.includes(Ee)?Te.value.splice(me,1):Te.value.push(Ee)},He=Pe=>{Oe(Pe.id)},Ke=Pe=>Pe.id.toString(),Be=t.ref([]),Je=Pe=>{Pe.length&&Pe.forEach(Ee=>{Oe(Ee)})},tt=t.ref({}),$e=(Pe,Ee)=>{Pe&&Ee&&(tt.value[Ee]=Pe)};t.onMounted(()=>{N()}),t.watch(()=>[g.status,g.sponsor,g.order_by,g.search,g.is_delete],()=>{N()},{deep:!0});const gt=t.computed(()=>[{id:"confirm",loading:B.value,color:"primary",variant:d.value?"text":"solid",round:"pill",size:"large",label:e("meeting.confirmBtn"),onClick:()=>{X()}},{id:"cancel",color:"primary",variant:d.value?"text":"outline",round:"pill",size:"large",label:e("meeting.cancelBtn"),onClick:()=>{H()}}]),it=t.computed(()=>[{id:"confirm",loading:B.value,color:"primary",variant:d.value?"text":"solid",round:"pill",size:"large",label:e("meeting.confirmBtn"),onClick:()=>{ee()}},{id:"cancel",color:"primary",variant:d.value?"text":"outline",round:"pill",size:"large",label:e("meeting.cancelBtn"),onClick:()=>{H()}}]);return(Pe,Ee)=>(t.openBlock(),t.createElementBlock("div",$4,[t.unref(c)?(t.openBlock(),t.createElementBlock("div",W4,[t.createVNode(t.unref(V.OCollapse),{modelValue:Be.value,"onUpdate:modelValue":Ee[2]||(Ee[2]=me=>Be.value=me),accordion:t.unref(c),onChange:Je},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList($.value,me=>{var qe;return t.openBlock(),t.createElementBlock(t.Fragment,{key:me.id},[t.createElementVNode("div",Y4,[t.createElementVNode("p",K4,t.toDisplayString(me.title),1),me.is_delete!==1?(t.openBlock(),t.createBlock(t.unref(V.OTag),{key:0,color:"primary",variant:"outline",class:t.normalizeClass([`tag-${(qe=t.unref(a).get(me.status))==null?void 0:qe.id}`])},{default:t.withCtx(()=>{var pe;return[t.createTextVNode(t.toDisplayString((pe=t.unref(a).get(me.status))==null?void 0:pe.text),1)]}),_:2},1032,["class"])):(t.openBlock(),t.createBlock(t.unref(V.OTag),{key:1,color:"primary",variant:"outline",class:"tag-cancel"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(e)("meeting.statusCanceled")),1)]),_:1}))]),t.createVNode(t.unref(V.OCollapseItem),{value:me.id},{title:t.withCtx(()=>[t.createElementVNode("div",Q4,[t.createElementVNode("p",J4,t.toDisplayString(me.sponsor),1),t.createElementVNode("p",null,t.toDisplayString(t.unref(rt.dayjs)(me.create_time).format("YYYY/MM/DD HH:mm:ss")),1)]),t.createElementVNode("div",Z4,[me.status===7||me.is_delete?(t.openBlock(),t.createBlock(t.unref(V.OLink),{key:0,color:"danger",variant:"text",onClick:t.withModifiers(pe=>K(me),["stop"])},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(e)("meeting.deleteActivity")),1)]),_:1},8,["onClick"])):t.createCommentVNode("",!0),(me.status===3||me.status===4)&&me.is_delete!==1?(t.openBlock(),t.createBlock(t.unref(V.OLink),{key:1,color:"danger",variant:"text",onClick:t.withModifiers(pe=>J(me),["stop"])},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(e)("meeting.cancelActivity")),1)]),_:1},8,["onClick"])):t.createCommentVNode("",!0),me.status===2?(t.openBlock(),t.createBlock(t.unref(V.OLink),{key:2,color:"primary",variant:"text",onClick:t.withModifiers(pe=>le(me),["stop"])},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(e)("meeting.approve")),1)]),_:1},8,["onClick"])):t.createCommentVNode("",!0),me.status===2?(t.openBlock(),t.createBlock(t.unref(V.OLink),{key:3,color:"primary",variant:"text",onClick:t.withModifiers(pe=>ge(me),["stop"])},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(e)("meeting.reject")),1)]),_:1},8,["onClick"])):t.createCommentVNode("",!0)])]),default:t.withCtx(()=>[t.createElementVNode("div",e8,[t.createVNode(ts,{show:Be.value.includes(me.id),data:me,ref_for:!0,ref:pe=>$e(pe,me.id),page:t.unref(Ie).APPROVAL},null,8,["show","data","page"])])]),_:2},1032,["value"])],64)}),128))]),_:1},8,["modelValue","accordion"]),q.value>z[0]?(t.openBlock(),t.createElementBlock("div",t8,[t.createVNode(t.unref(V.OPagination),{total:q.value,page:g.page,"page-size":g.size,"page-sizes":z,layout:["total","jumper","pager","pagesize"],"show-more":!1,simple:!0,onChange:U},null,8,["total","page","page-size"])])):t.createCommentVNode("",!0)])):(t.openBlock(),t.createElementBlock("div",z4,[t.createVNode(t.unref(rt.ElTable),{data:$.value,onExpandChange:He,"row-key":Ke,"expand-row-keys":Te.value},{default:t.withCtx(()=>[t.createVNode(t.unref(rt.ElTableColumn),{type:"expand"},{default:t.withCtx(me=>[t.createElementVNode("div",H4,[t.createVNode(ts,{data:me.row,page:t.unref(Ie).APPROVAL,show:""},null,8,["data","page"])])]),_:1}),t.createVNode(t.unref(rt.ElTableColumn),{label:t.unref(e)("meeting.activityName"),prop:"title"},null,8,["label"]),t.createVNode(t.unref(rt.ElTableColumn),{prop:"sponsor"},{header:t.withCtx(()=>[t.createVNode(uc,{modelValue:C.value,"onUpdate:modelValue":Ee[0]||(Ee[0]=me=>C.value=me),onConfirm:k,list:b.value,multiple:!0},{empty:t.withCtx(()=>[t.renderSlot(Pe.$slots,"filter-empty")]),default:t.withCtx(()=>[t.createTextVNode(" "+t.toDisplayString(t.unref(e)("meeting.applicant")),1)]),_:3},8,["modelValue","list"])]),_:3}),t.createVNode(t.unref(rt.ElTableColumn),{prop:"create_time"},{header:t.withCtx(()=>[t.createElementVNode("div",{class:"sort-time",onClick:T},[t.createElementVNode("span",null,t.toDisplayString(t.unref(e)("meeting.submissionTime")),1),t.createElementVNode("div",X4,[t.createElementVNode("div",{class:t.normalizeClass(["sort-asc sort-item",{active:v.value==="asc"}])},null,2),t.createElementVNode("div",{class:t.normalizeClass(["sort-desc sort-item",{active:v.value==="desc"}])},null,2)])])]),default:t.withCtx(me=>[t.createTextVNode(t.toDisplayString(t.unref(rt.dayjs)(me.row.create_time).format("YYYY/MM/DD HH:mm:ss")),1)]),_:1}),t.createVNode(t.unref(rt.ElTableColumn),{prop:"status",width:"90px"},{header:t.withCtx(()=>[t.createVNode(uc,{modelValue:E.value,"onUpdate:modelValue":Ee[1]||(Ee[1]=me=>E.value=me),onConfirm:w,list:I.value},{empty:t.withCtx(()=>[t.renderSlot(Pe.$slots,"filter-empty")]),default:t.withCtx(()=>[t.createTextVNode(" "+t.toDisplayString(t.unref(e)("meeting.status")),1)]),_:3},8,["modelValue","list"])]),default:t.withCtx(me=>{var qe;return[me.row.is_delete!==1?(t.openBlock(),t.createBlock(t.unref(V.OTag),{key:0,color:"primary",variant:"outline",class:t.normalizeClass([`tag-${(qe=t.unref(a).get(me.row.status))==null?void 0:qe.id}`])},{default:t.withCtx(()=>{var pe;return[t.createTextVNode(t.toDisplayString((pe=t.unref(a).get(me.row.status))==null?void 0:pe.text),1)]}),_:2},1032,["class"])):(t.openBlock(),t.createBlock(t.unref(V.OTag),{key:1,color:"primary",variant:"outline",class:"tag-cancel"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(e)("meeting.statusCanceled")),1)]),_:1}))]}),_:3}),t.createVNode(t.unref(rt.ElTableColumn),{label:t.unref(e)("meeting.action")},{default:t.withCtx(me=>[t.createElementVNode("div",j4,[me.row.status===7||me.row.is_delete?(t.openBlock(),t.createBlock(t.unref(V.OLink),{key:0,color:"danger",onClick:qe=>K(me.row)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(e)("meeting.deleteActivity")),1)]),_:1},8,["onClick"])):t.createCommentVNode("",!0),(me.row.status===3||me.row.status===4)&&me.row.is_delete!==1?(t.openBlock(),t.createBlock(t.unref(V.OLink),{key:1,color:"danger",onClick:qe=>J(me.row)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(e)("meeting.cancelActivity")),1)]),_:1},8,["onClick"])):t.createCommentVNode("",!0),me.row.status===2?(t.openBlock(),t.createBlock(t.unref(V.OLink),{key:2,color:"primary",onClick:qe=>le(me.row)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(e)("meeting.approve")),1)]),_:1},8,["onClick"])):t.createCommentVNode("",!0),me.row.status===2?(t.openBlock(),t.createBlock(t.unref(V.OLink),{key:3,color:"primary",onClick:qe=>ge(me.row)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(e)("meeting.reject")),1)]),_:1},8,["onClick"])):t.createCommentVNode("",!0)])]),_:1},8,["label"])]),_:3},8,["data","expand-row-keys"]),q.value>z[0]?(t.openBlock(),t.createElementBlock("div",G4,[t.createVNode(t.unref(V.OPagination),{total:q.value,page:g.page,"page-size":g.size,"page-sizes":z,layout:["total","jumper","pager","pagesize"],"show-more":!1,onChange:U},null,8,["total","page","page-size"])])):t.createCommentVNode("",!0)])),t.createVNode(t.unref(V.ODialog),{visible:R.value,"onUpdate:visible":Ee[4]||(Ee[4]=me=>R.value=me),"phone-half-full":t.unref(d),"main-class":"handle-dialog-approval review-dialog",actions:it.value},{header:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(P.value),1)]),default:t.withCtx(()=>[t.createElementVNode("div",i8,[t.createVNode(t.unref(V.OForm),{model:x.value,ref_key:"formRef",ref:D,"has-required":"",layout:"v",class:"form-wrapper"},{default:t.withCtx(()=>[t.createVNode(t.unref(V.OFormItem),{rules:te.value.reason,label:`${t.unref(e)("meeting.reviewNotesLabel")}${n.value?":":": "}`,field:"reason"},{default:t.withCtx(()=>[t.createVNode(t.unref(V.OTextarea),{size:"large",placeholder:t.unref(e)("meeting.enterReviewNotes"),rows:4,resize:"none","max-length":1e3,"input-on-outlimit":!1,modelValue:x.value.reason,"onUpdate:modelValue":Ee[3]||(Ee[3]=me=>x.value.reason=me)},null,8,["placeholder","modelValue"])]),_:1},8,["rules","label"])]),_:1},8,["model"])])]),_:1},8,["visible","phone-half-full","actions"]),t.createVNode(t.unref(V.ODialog),{visible:Z.value,"onUpdate:visible":Ee[5]||(Ee[5]=me=>Z.value=me),"phone-half-full":t.unref(d),"main-class":"handle-dialog-approval cancel-dialog",actions:gt.value},{header:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(se.value),1)]),default:t.withCtx(()=>{var me,qe;return[t.createElementVNode("div",n8,t.toDisplayString(ie.value===1?t.unref(e)("meeting.confirmCancelActivity",[(me=F.value)==null?void 0:me.title]):t.unref(e)("meeting.confirmDeleteActivity",[(qe=F.value)==null?void 0:qe.title])),1)]}),_:1},8,["visible","phone-half-full","actions"])]))}}),r8={class:"o-my-activity-calendar"},s8={class:"activity-list"},a8={key:0,class:"list-calendar-mb"},o8={class:"left-calendar"},l8=["onClick"],u8={class:"date-cell-text"},c8={class:"right-meeting"},d8={class:"list-body"},h8=["id"],f8={class:"item-header-left"},p8={class:"header-info"},m8={class:"act-title"},g8={class:"title-text"},v8={class:"act-info"},y8={class:"date-range"},_8={key:0,class:"item-header-right"},b8={class:"activity-detail"},T8={key:0,class:"activity-btn"},x8={key:0,class:"load-text"},C8={class:"dialog-content"},S8={class:"dialog-content"},E8=t.defineComponent({__name:"OActivityMyCalendar",props:{getListRequest:{},revokeActivityRequest:{},deleteActivityRequest:{},editActivityRequest:{},getActivityDetailRequest:{}},emits:["edit"],setup(r,{emit:e}){const{t:i,locale:n}=Xe.useI18n(),s=t.computed(()=>n.value===Xe.Locales.ZH),{statusMap:a,activityTypeMap:o}=xa(),{getConfig:l}=bn(),c=he=>{const ue=xe(he||new Date);return s.value?ue.format("YYYY MM月"):ue.format("MMMM YYYY")},d=V.useMessage(null),{isPhone:m}=Et.useScreen(),g=r,C=e,b=t.ref([]),k=t.ref([]),v=t.ref(1),T=t.ref(50),E=t.ref(null),I=t.ref(!1),w=t.ref([]),$=t.ref(!1),q=t.ref(!1),z=t.computed(()=>E.value===null||k.value.length<E.value),N=async()=>{if(g.getListRequest&&!$.value)try{if(E.value!==null&&E.value>0&&(v.value-1)*T.value>E.value)return;if(!z.value&&m.value){Z("next-month");return}$.value=!0;const he=await g.getListRequest({page:v.value,size:T.value,start_date:R.value}),ue=(he.data||[]).map(ve=>{const{start_date:Le,end_date:De,start:ht,end:Me}=ve;return[{...ve,time:`${Le}-${Me}`,start_date_time:`${Le} ${ht}`,end_date_time:`${De} ${Me}`,type:Ie.EVENTS,dateRange:`${Le} ${ht}-${De} ${Me}`,isExpired:xe(`${Le} ${ht}`).isBefore(xe())}]}).flat().filter(ve=>ve.start_date.slice(0,7)===ct(R.value,"YYYY-MM-DD").slice(0,7));I.value?(k.value=he.data||[],b.value=ue):v.value===1&&!m.value?(k.value=he.data||[],b.value=ue):(k.value=[...k.value,...he.data||[]],b.value=[...b.value,...ue]),b.value.sort((ve,Le)=>ve.start_date===Le.start_date?Nn(ve.start)>Nn(Le.start)?1:-1:xe(ve.start_date).isAfter(xe(Le.start_date))?1:-1),E.value=(he==null?void 0:he.total)||0,t.nextTick(()=>{H(),J.value&&!m.value&&P()})}finally{$.value=!1,q.value=!1,I.value=!1}},U=t.ref([]),x=he=>{g.getActivityDetailRequest&&(U.value.includes(he)||(U.value.push(he),g.getActivityDetailRequest(he).then(ue=>{var ve;(ve=b.value)==null||ve.forEach(Le=>{Le.id===ue.id&&(Le.approve_record=ue.approve_record)})})))},D=he=>{he.length&&he.forEach(ue=>{x(ue)})},B=he=>{const ue=b.value.filter(ve=>ve.start_date===he);return ue.length&&ue.every(ve=>ve.status===3||ve.status===4)},F=he=>{const ue=he.target;if(!ue)return;const ve=ue.scrollTop,Le=ue.scrollHeight,De=ue.clientHeight;ve+De>=Le&&ge()},P=()=>{J.value.getContainerEl().addEventListener("scroll",F)},L=t.ref(),R=t.ref(xe().format("YYYY-MM-DD")),te=t.computed(()=>[...new Set(b.value.map(he=>he.start_date))].sort((he,ue)=>xe(he).isBefore(xe(ue))?-1:1)),ee=t.computed(()=>[...new Set(b.value.filter(he=>!he.isExpired&&!he.is_delete).map(he=>he.start_date))].sort((he,ue)=>xe(he).isBefore(xe(ue))?-1:1)),H=()=>{var ve;const he=ee.value.find(Le=>!xe(Le).isBefore(xe(new Date).format("YYYY-MM-DD")));he?R.value=he:R.value||(R.value=xe().format("YYYY-MM-DD")),(ve=L.value)==null||ve.pickDay(xe(R.value)),R.value=xe(R.value).format("YYYY-MM-DD");const ue=b.value.find(Le=>Le.start_date===R.value&&!Le.isExpired&&!Le.is_delete);ue&&(x(ue.id),w.value=[ue.id])},X=(he,ue)=>{var ve;(!ue||!((ve=he.target)!=null&&ve.className.includes("date-cell-text")))&&(he.stopPropagation(),he.preventDefault())},Z=he=>{L.value&&(v.value=1,E.value=null,U.value=[],window.scrollTo({top:0,behavior:"smooth"}),L.value.selectDate(he),I.value=!0,t.nextTick(()=>{R.value=xe(L.value.selectedDay).format("YYYY-MM-DD"),N()}))},se=t.computed(()=>b.value.reduce((he,ue)=>{if(he.length){const ve=he.at(-1);return(ve==null?void 0:ve.start_date)===ue.start_date?ve==null||ve.list.push(ue):he.push({start_date:ue.start_date,list:[ue]}),he}else return[{start_date:ue.start_date,list:[ue]}]},[])),Q=t.ref({}),ie=(he,ue)=>{he&&ue&&(Q.value[ue]=he)},K=async he=>{await Q.value[he].copyInfo(),d.success({content:i("common.copySuccess")})},J=t.ref(),le=he=>{var Le,De,ht;const ue=xe(he).format("YYYY-MM-DD"),ve=document.querySelector(`#group-title-${ue}`);ve&&(m.value?window.scrollTo({top:(((Le=ve.parentElement)==null?void 0:Le.offsetTop)||0)-52,behavior:"smooth"}):(ht=J.value)==null||ht.scrollTo({top:((De=ve.parentElement)==null?void 0:De.offsetTop)||0,behavior:"smooth"}))};t.watch(()=>R.value,()=>{le(R.value)});const ge=fi.useDebounceFn(()=>{z.value&&(m.value||(q.value=!0,v.value++,N()))},200),Ne=t.ref(!1),Te=t.ref(null),Oe=t.ref(!1),He=he=>{Te.value=he,Oe.value=!0},Ke=()=>{var he;g.revokeActivityRequest&&Te.value&&(Ne.value=!0,g.revokeActivityRequest((he=Te.value)==null?void 0:he.id).then(ue=>{var ve;typeof ue=="boolean"&&!ue||(d.success({content:i("meeting.revokeActivitySuccess",[(ve=Te.value)==null?void 0:ve.title])}),I.value=!0,N())}).finally(()=>{Oe.value=!1,Ne.value=!1}))},Be=()=>{Oe.value=!1},Je=he=>{C("edit",he)},tt=he=>{if(!g.editActivityRequest)return;const{title:ue,start_date:ve,end_date:Le,register_end_date:De,activity_type:ht,synopsis:Me,register_url:It,content_url:vt,address:Nt,start:wt,end:Rt,approver:ni}=he;let qt={title:ue,start_date:ve,end_date:Le,register_end_date:De,activity_type:ht,synopsis:Me,register_url:It,content_url:vt,address:Nt,start:wt,end:Rt,approver:ni,is_publish:"true"};g.editActivityRequest(he.id,qt).then(gi=>{typeof gi=="boolean"&&!gi||(d.success({content:i("meeting.submitReviewSuccess",[he.title])}),I.value=!0,N())})},$e=t.ref(!1),gt=he=>{Te.value=he,$e.value=!0},it=()=>{var he;g.deleteActivityRequest&&(Ne.value=!0,g.deleteActivityRequest((he=Te.value)==null?void 0:he.id).then(ue=>{var ve;typeof ue=="boolean"&&!ue||(d.success({content:i("meeting.deleteActivitySuccess",[(ve=Te.value)==null?void 0:ve.title])}),I.value=!0,N())}).finally(()=>{$e.value=!1,Ne.value=!1}))},Pe=()=>{$e.value=!1},Ee=t.ref(),me=t.ref(0),qe=()=>{var he;me.value=((he=Ee.value)==null?void 0:he.clientHeight)||0},pe=fi.useDebounceFn(()=>{if(!z.value||!m.value)return;const he=window.scrollY||window.pageYOffset,ue=window.innerHeight;document.documentElement.scrollHeight-(he+ue)<=300&&!$.value&&(q.value=!0,v.value++,N())},200);t.onMounted(()=>{N(),window.addEventListener("scroll",pe),window.addEventListener("resize",pe),qe(),window.addEventListener("resize",qe)}),t.onUnmounted(()=>{var ue;window.removeEventListener("scroll",pe),window.removeEventListener("resize",pe),window.removeEventListener("resize",qe);const he=(ue=J.value)==null?void 0:ue.getContainerEl();he==null||he.removeEventListener("scroll",F)});const ye=t.computed(()=>[{id:"confirm",loading:Ne.value,color:"primary",variant:"outline",round:"pill",size:"large",label:i("meeting.confirmBtn"),onClick:()=>{Ke()}},{id:"cancel",color:"primary",variant:"solid",round:"pill",size:"large",label:i("meeting.cancelBtn"),onClick:()=>{Be()}}]),Ce=t.computed(()=>[{id:"confirm",loading:Ne.value,color:"primary",variant:"outline",round:"pill",size:"large",label:i("meeting.confirmBtn"),onClick:()=>{it()}},{id:"cancel",color:"primary",variant:"solid",round:"pill",size:"large",label:i("meeting.cancelBtn"),onClick:()=>{Pe()}}]);return(he,ue)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("div",r8,[t.createElementVNode("div",s8,[t.unref(m)?(t.openBlock(),t.createElementBlock("div",a8,[t.createElementVNode("span",null,t.toDisplayString(c(R.value)),1),t.createElementVNode("span",null,[t.createVNode(t.unref(V.OIcon),{onClick:ue[0]||(ue[0]=ve=>Z("prev-month"))},{default:t.withCtx(()=>[t.createVNode(t.unref(V.OIconChevronLeft))]),_:1}),t.createVNode(t.unref(V.OIcon),{onClick:ue[1]||(ue[1]=ve=>Z("next-month"))},{default:t.withCtx(()=>[t.createVNode(t.unref(V.OIconChevronRight))]),_:1})])])):t.createCommentVNode("",!0),t.createElementVNode("div",o8,[t.createVNode(t.unref(rt.ElCalendar),{ref_key:"calendarRef",ref:L,modelValue:R.value,"onUpdate:modelValue":ue[4]||(ue[4]=ve=>R.value=ve)},{header:t.withCtx(()=>[t.createElementVNode("span",null,t.toDisplayString(c(R.value)),1),t.createElementVNode("div",null,[t.createVNode(t.unref(V.OIcon),{onClick:ue[2]||(ue[2]=ve=>Z("prev-month"))},{default:t.withCtx(()=>[t.createVNode(t.unref(V.OIconChevronLeft))]),_:1}),t.createVNode(t.unref(V.OIcon),{onClick:ue[3]||(ue[3]=ve=>Z("next-month"))},{default:t.withCtx(()=>[t.createVNode(t.unref(V.OIconChevronRight))]),_:1})])]),"date-cell":t.withCtx(({data:ve})=>[t.createElementVNode("div",{onClick:Le=>X(Le,te.value.includes(ve.day)),class:t.normalizeClass({"date-cell":!0,"is-selected":ve.isSelected,"is-today":t.unref(ct)(ve.day)===t.unref(ct)(),clickable:te.value.includes(ve.day),approved:B(ve.day)}),style:t.normalizeStyle({"--dot-bg":`${t.unref(l)(t.unref(Ie).EVENTS,"color")}`})},[t.createElementVNode("div",u8,t.toDisplayString(Number(ve.day.split("-")[2])),1)],14,l8)]),_:1},8,["modelValue"])]),t.createElementVNode("div",c8,[b.value.length?(t.openBlock(),t.createBlock(t.unref(V.OScroller),{key:0,ref_key:"scrollerRef",ref:J,onScrollend:t.unref(ge),style:t.normalizeStyle({"--header-height":me.value}),"show-type":"hover",class:"scroller-container"},{default:t.withCtx(()=>[t.createElementVNode("div",d8,[t.createVNode(t.unref(V.OCollapse),{modelValue:w.value,"onUpdate:modelValue":ue[7]||(ue[7]=ve=>w.value=ve),accordion:t.unref(m),onChange:D},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(se.value,(ve,Le)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:ve.start_date},[Le===0?(t.openBlock(),t.createElementBlock("div",{key:0,class:"list-month-change prev-month",onClick:ue[5]||(ue[5]=De=>Z("prev-month"))},[t.createVNode(t.unref(V.OIcon),null,{default:t.withCtx(()=>[t.createVNode(t.unref(V.OIconArrowLeft))]),_:1}),t.createElementVNode("span",null,t.toDisplayString(t.unref(i)("meeting.preMonth")),1)])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(["act-item",Le===se.value.length-1&&"last-item"])},[t.createElementVNode("div",{class:t.normalizeClass({"act-bar":!0,"is-active":t.unref(xe)(R.value).format("YYYY-MM-DD")===ve.start_date,"is-end":ve.list.every(De=>De.isExpired),approved:ve.list.every(De=>De.status===3||De.status===4)})},[...ue[10]||(ue[10]=[t.createElementVNode("div",{class:"act-bar-line"},null,-1),t.createElementVNode("div",{class:"act-bar-dot"},null,-1)])],2),t.createElementVNode("div",{class:t.normalizeClass({"group-title":!0,"is-end":ve.list.every(De=>De.isExpired)}),id:`group-title-${t.unref(xe)(new Date(ve.start_date)).format("YYYY-MM-DD")}`},t.toDisplayString(t.unref(xe)(ve.start_date).format("MM/DD")),11,h8),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(ve.list,(De,ht)=>(t.openBlock(),t.createBlock(t.unref(V.OCollapseItem),{key:De.sub_id||De.id,value:De.sub_id||De.id,class:t.normalizeClass({"last-item":Le===se.value.length-1&&ht===ve.list.length-1,"is-delete":De.is_delete,"is-end":De.isExpired})},{title:t.withCtx(()=>{var Me,It;return[t.createElementVNode("div",f8,[t.createElementVNode("div",{class:"act-icon",style:t.normalizeStyle({backgroundColor:`${De.is_delete?"var(--o-color-info4)":t.unref(l)(t.unref(Ie).EVENTS,"color")}`})},[t.createVNode(t.unref(V.OIcon),null,{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(t.unref(l)(t.unref(Ie).EVENTS,"icon"))))]),_:1})],4),t.createElementVNode("div",p8,[t.createElementVNode("div",m8,[t.createElementVNode("div",g8,t.toDisplayString(De.title),1),t.createVNode(t.unref(V.OTag),{color:"primary",variant:"outline",class:t.normalizeClass([`tag-${De.is_delete?"delete":(Me=t.unref(a).get(De.status))==null?void 0:Me.id}`])},{default:t.withCtx(()=>{var vt;return[t.createTextVNode(t.toDisplayString(De.is_delete===1?t.unref(i)("meeting.statusCanceled"):(vt=t.unref(a).get(De.status))==null?void 0:vt.text),1)]}),_:2},1032,["class"])]),t.createElementVNode("div",v8,[t.createElementVNode("span",y8,t.toDisplayString(De.dateRange),1),t.createVNode(t.unref(V.ODivider),{direction:"v"}),t.createElementVNode("span",null,t.toDisplayString((It=t.unref(o).get(De.activity_type))==null?void 0:It.label),1)])])]),De.content_url&&!De.is_delete&&[3,4,5,6].includes(De.status)?(t.openBlock(),t.createElementBlock("div",_8,[De.content_url?(t.openBlock(),t.createBlock(t.unref(V.OLink),{key:0,"hover-underline":!1,href:De.content_url,target:"_blank",rel:"noopener noreferrer"},{suffix:t.withCtx(()=>[t.createVNode(t.unref(V.OIcon),null,{default:t.withCtx(()=>[t.createVNode(t.unref(V.OIconChevronRight))]),_:1})]),default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(i)("meeting.activityDetail"))+" ",1)]),_:1},8,["href"])):t.createCommentVNode("",!0),De.register_url&&(De.status===3||De.status===4||De.status===2&&De.update_activity_id&&new Date(De.register_end_date).getTime()>new Date().getTime())?(t.openBlock(),t.createBlock(t.unref(V.OLink),{key:1,"hover-underline":!1,href:De.register_url,target:"_blank",rel:"noopener noreferrer"},{suffix:t.withCtx(()=>[t.createVNode(t.unref(V.OIcon),null,{default:t.withCtx(()=>[t.createVNode(t.unref(V.OIconChevronRight))]),_:1})]),default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(i)("meeting.registerNow"))+" ",1)]),_:1},8,["href"])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createVNode(t.unref(V.OIcon),{onClick:t.withModifiers(()=>K(ht),["stop"]),class:"copy-icon"},{default:t.withCtx(()=>[t.createVNode(t.unref(kl))]),_:1},8,["onClick"])]}),default:t.withCtx(()=>[t.createElementVNode("div",b8,[t.createVNode(ts,{show:w.value.includes(De.id),data:De,ref_for:!0,ref:Me=>ie(Me,De.id)},null,8,["show","data"]),!De.isExpired&&!De.is_delete?(t.openBlock(),t.createElementBlock("div",T8,[De.status===2?(t.openBlock(),t.createBlock(t.unref(V.OButton),{key:0,variant:"text",onClick:Me=>He(De)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(i)("meeting.withdrawReview")),1)]),_:1},8,["onClick"])):t.createCommentVNode("",!0),De.status===1||De.status===3||De.status===4||De.status===7?(t.openBlock(),t.createBlock(t.unref(V.OButton),{key:1,variant:"text",onClick:Me=>Je(De)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(i)("meeting.modifyActivity")),1)]),_:1},8,["onClick"])):t.createCommentVNode("",!0),De.status===1||De.status===7?(t.openBlock(),t.createBlock(t.unref(V.OButton),{key:2,variant:"text",onClick:Me=>gt(De)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(i)("meeting.deleteActivity")),1)]),_:1},8,["onClick"])):t.createCommentVNode("",!0),De.status===1||De.status===7?(t.openBlock(),t.createBlock(t.unref(V.OButton),{key:3,variant:"text",onClick:Me=>tt(De)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(i)("meeting.submitReview")),1)]),_:1},8,["onClick"])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)])]),_:2},1032,["value","class"]))),128)),ue[11]||(ue[11]=t.createElementVNode("div",{class:"height-placeholder"},null,-1))],2),Le===se.value.length-1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[q.value?(t.openBlock(),t.createElementBlock("div",x8,t.toDisplayString(t.unref(i)("meeting.loading")),1)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"list-month-change next-month",onClick:ue[6]||(ue[6]=De=>Z("next-month"))},[t.createVNode(t.unref(V.OIcon),null,{default:t.withCtx(()=>[t.createVNode(t.unref(V.OIconArrowRight))]),_:1}),t.createElementVNode("span",null,t.toDisplayString(t.unref(i)("meeting.nextMonth")),1)])],64)):t.createCommentVNode("",!0)],64))),128))]),_:1},8,["modelValue","accordion"])])]),_:1},8,["onScrollend","style"])):t.renderSlot(he.$slots,"empty",{key:1})])])]),t.createVNode(t.unref(V.ODialog),{visible:Oe.value,"onUpdate:visible":ue[8]||(ue[8]=ve=>Oe.value=ve),"main-class":"handle-dialog-active",actions:ye.value},{header:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(i)("meeting.withdrawReview")),1)]),default:t.withCtx(()=>{var ve;return[t.createElementVNode("div",C8,t.toDisplayString(t.unref(i)("meeting.confirmRevokeActivity",[(ve=Te.value)==null?void 0:ve.title])),1)]}),_:1},8,["visible","actions"]),t.createVNode(t.unref(V.ODialog),{visible:$e.value,"onUpdate:visible":ue[9]||(ue[9]=ve=>$e.value=ve),"main-class":"handle-dialog-active",actions:Ce.value},{header:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(i)("meeting.deleteActivity")),1)]),default:t.withCtx(()=>{var ve;return[t.createElementVNode("div",S8,t.toDisplayString(t.unref(i)("meeting.confirmDeleteActivity",[(ve=Te.value)==null?void 0:ve.title])),1)]}),_:1},8,["visible","actions"])],64))}}),k8=Object.assign(ec,{install(r){r.component("OActivityForm",ec)}}),w8=Object.assign(Yd,{install(r){r.component("OActivityApproval",Yd)}}),up=Object.assign(E8,{install(r){r.component("OActivityMyCalendar",up)}}),D8=t.defineComponent({__name:"ContentWrapper",props:{verticalPadding:{type:[Boolean,String,Array],default:void 0}},setup(r){const e=Symbol("default"),i=r,n=t.computed(()=>i.verticalPadding?V.isBoolean(i.verticalPadding)?e:V.isString(i.verticalPadding)?i.verticalPadding:i.verticalPadding[0]:0),s=t.computed(()=>i.verticalPadding?V.isBoolean(i.verticalPadding)?e:V.isString(i.verticalPadding)?i.verticalPadding:V.isUndefined(i.verticalPadding[1])?i.verticalPadding[0]:i.verticalPadding[1]:0);return(a,o)=>(t.openBlock(),t.createElementBlock("div",{class:"content-wrapper",style:t.normalizeStyle({"--content-wrapper-vertical-paddingTop":n.value===t.unref(e)?void 0:n.value,"--content-wrapper-vertical-paddingBottom":s.value===t.unref(e)?void 0:s.value})},[t.renderSlot(a.$slots,"default",{},void 0,!0)],4))}}),sn=Xe._export_sfc(D8,[["__scopeId","data-v-9e217f8f"]]),V8={class:"banner-content"},A8=["src"],I8={key:4,class:"banner-opts"},N8=t.defineComponent({__name:"OBannerContent",props:{info:{},size:{},contentJustifyCenter:{type:Boolean},isPhone:{type:Boolean},isLight:{type:Boolean}},emits:["click"],setup(r,{emit:e}){const i=e,n=(s,a)=>{s&&!a&&(window.open(s),i("click",s))};return(s,a)=>(t.openBlock(),t.createBlock(t.unref(V.OFigure),{class:t.normalizeClass(["banner-bg",{"with-sticky-bg":r.info.withStickyBg,"cursor-pointer":r.info.href&&!r.info.btn}]),src:r.info.bg,style:t.normalizeStyle({"--pad-offset":r.info.pad_offset}),onClick:a[0]||(a[0]=o=>n(r.info.href,r.info.btn))},{default:t.withCtx(()=>[t.createVNode(sn,{class:t.normalizeClass(["banner-wrapper",["banner-wrapper",r.contentJustifyCenter?"content-center":""]])},{default:t.withCtx(()=>[t.createElementVNode("div",V8,[!r.isPhone&&r.info.attach?(t.openBlock(),t.createElementBlock("img",{key:0,src:r.info.attach,class:"banner-attach"},null,8,A8)):t.createCommentVNode("",!0),r.info.title?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass({"banner-title":!0,"text-dark":r.info.text_theme==="dark"})},t.toDisplayString(r.info.title),3)):t.createCommentVNode("",!0),r.info.subtitle?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass({"banner-subtitle":!0,"text-dark":r.info.text_theme==="dark"})},t.toDisplayString(r.info.subtitle),3)):t.createCommentVNode("",!0),r.info.bg_text?(t.openBlock(),t.createElementBlock("div",{key:3,class:"banner-text",style:t.normalizeStyle({backgroundImage:`url(${r.info.bg_text})`,"--pc-width":r.info.pc_text_width,"--pc-height":r.info.pc_text_height,"--pad-width":r.info.pad_text_width,"--pad-height":r.info.pad_text_height})},null,4)):t.createCommentVNode("",!0),r.info.btn?(t.openBlock(),t.createElementBlock("div",I8,[t.createVNode(t.unref(V.OButton),{href:r.info.href,target:"_blank",variant:"solid",color:"primary",size:r.size==="tiny"?void 0:r.size},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(r.info.btn),1)]),_:1},8,["href","size"])])):t.createCommentVNode("",!0)])]),_:1},8,["class"])]),_:1},8,["src","class","style"]))}}),Ta=Xe._export_sfc(N8,[["__scopeId","data-v-1904d05a"]]),P8={key:0,class:"content-height"},O8={key:0},B8={key:1,class:"content-height"},L8={key:2,class:"content-height"},M8=t.defineComponent({__name:"OBanner",props:{options:{},size:{},contentJustifyCenter:{type:Boolean},autoPlay:{type:Boolean}},emits:["click"],setup(r,{emit:e}){const i=r,n=e,{isLight:s}=Et.useTheme(),{isPhone:a}=Et.useScreen(),o=t.computed(()=>{if(i.options)return Array.isArray(i.options)?i.options.length===1?i.options[0]:void 0:i.options}),l=t.computed(()=>{if(!(!Array.isArray(i.options)||i.options.length<=1))return i.options});return(c,d)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["home-banner",r.size])},[o.value?(t.openBlock(),t.createElementBlock("div",P8,[r.size==="tiny"?(t.openBlock(),t.createElementBlock("div",O8,t.toDisplayString(o.value.title),1)):t.unref(a)?(t.openBlock(),t.createBlock(sn,{key:2,class:"banner-wrapper"},{default:t.withCtx(()=>[t.createVNode(t.unref(V.OFigure),{class:"banner-bg",src:o.value.bg,fit:"cover"},null,8,["src"])]),_:1})):(t.openBlock(),t.createBlock(Ta,{key:1,info:o.value,size:r.size,"content-justify-center":r.contentJustifyCenter,"is-phone":t.unref(a),"is-light":t.unref(s),onClick:d[0]||(d[0]=m=>n("click",m))},null,8,["info","size","content-justify-center","is-phone","is-light"]))])):l.value?(t.openBlock(),t.createElementBlock("div",B8,[t.unref(a)?(t.openBlock(),t.createBlock(t.unref(V.OCarousel),{key:1,class:"banner-carousel",effect:"gallery","indicator-click":"",arrow:"never","auto-play":r.autoPlay},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.value,(m,g)=>(t.openBlock(),t.createBlock(t.unref(V.OCarouselItem),{key:g,class:t.normalizeClass(["banner-item",`banner-item${g}`])},{default:t.withCtx(()=>[t.createVNode(sn,{class:"banner-wrapper"},{default:t.withCtx(()=>[t.createVNode(t.unref(V.OFigure),{class:"banner-bg",src:m.bg,onClick:C=>n("click",m.href)},null,8,["src","onClick"])]),_:2},1024)]),_:2},1032,["class"]))),128))]),_:1},8,["auto-play"])):(t.openBlock(),t.createBlock(t.unref(V.OCarousel),{key:0,class:"banner-carousel",effect:"toggle","active-class":"current-slide","indicator-click":"","auto-play":r.autoPlay},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.value,(m,g)=>(t.openBlock(),t.createBlock(t.unref(V.OCarouselItem),{key:g,class:t.normalizeClass(["banner-item",`banner-item${g}`])},{default:t.withCtx(()=>[t.createVNode(Ta,{info:m,size:r.size,"content-justify-center":r.contentJustifyCenter,"is-phone":t.unref(a),"is-light":t.unref(s),onClick:d[1]||(d[1]=C=>n("click",C))},null,8,["info","size","content-justify-center","is-phone","is-light"])]),_:2},1032,["class"]))),128))]),_:1},8,["auto-play"]))])):(t.openBlock(),t.createElementBlock("div",L8,[...d[2]||(d[2]=[t.createElementVNode("p",null,"No data.",-1)])]))],2))}}),Kd=Xe._export_sfc(M8,[["__scopeId","data-v-fddea127"]]),R8=Object.assign(Kd,{install(r){r.component("OBanner",Kd)}}),q8=Object.assign(Ta,{install(r){r.component("OBannerContent",Ta)}}),F8={locale:"zh-CN","common.more":"更多","common.empty":"暂无数据","common.loading":"加载中...","common.checkAll":"全选","common.filter":"筛选","common.confirm":"确认","common.reset":"重置","common.search":"搜索","pagination.goto":"前往","pagination.page":"页","pagination.countPerPage":"条/页","pagination.total":"共 {0} 条","upload.buttonLabel":"点击上传","upload.drag":"点击或拖拽文件到此处上传","upload.dragHover":"释放文件并开始上传","upload.retry":"点击重试","upload.delete":"删除","upload.preview":"预览","upload.edit":"编辑","upload.loading":"上传中","upload.failed":"上传失败","upload.download":"下载文件","select.cancel":"取消","select.confirm":"确定","input.limit":"<b>{0}</b>/{1}","table.filterEmptyOption":"空","table.filterPlaceholder":"请输入搜索内容","timePicker.time":"时间","timePicker.selectTime":"选择时间","timePicker.placeholder":"请选择时间","timePicker.now":"此刻","timePicker.startTime":"开始时间","timePicker.endTime":"结束时间","datePicker.date":"日期","datePicker.time":"时间","datePicker.selectDate":"选择日期","datePicker.selectTime":"选择时间","datePicker.placeholder":"请选择日期","datePicker.yearPlaceholder":"请选择年份","datePicker.monthPlaceholder":"请选择月份","datePicker.today":"今天","datePicker.year":"年","datePicker.yearUnit":"年","datePicker.monthUnit":"月","datePicker.dayUnit":"日","datePicker.weekdays.0":"日","datePicker.weekdays.1":"一","datePicker.weekdays.2":"二","datePicker.weekdays.3":"三","datePicker.weekdays.4":"四","datePicker.weekdays.5":"五","datePicker.weekdays.6":"六","datePicker.months.0":"一月","datePicker.months.1":"二月","datePicker.months.2":"三月","datePicker.months.3":"四月","datePicker.months.4":"五月","datePicker.months.5":"六月","datePicker.months.6":"七月","datePicker.months.7":"八月","datePicker.months.8":"九月","datePicker.months.9":"十月","datePicker.months.10":"十一月","datePicker.months.11":"十二月","datePicker.monthsShort.0":"01月","datePicker.monthsShort.1":"02月","datePicker.monthsShort.2":"03月","datePicker.monthsShort.3":"04月","datePicker.monthsShort.4":"05月","datePicker.monthsShort.5":"06月","datePicker.monthsShort.6":"07月","datePicker.monthsShort.7":"08月","datePicker.monthsShort.8":"09月","datePicker.monthsShort.9":"10月","datePicker.monthsShort.10":"11月","datePicker.monthsShort.11":"12月","dateRangePicker.placeholderStart":"开始日期","dateRangePicker.placeholderEnd":"结束日期","dateRangePicker.selectRange":"选择日期范围"},U8={locale:"en-US","common.more":"more","common.empty":"No Data","common.loading":"Loading...","common.checkAll":"Check All","common.filter":"Filter","common.confirm":"Confirm","common.reset":"Reset","common.search":"Search","pagination.goto":"Go to","pagination.page":"Page","pagination.countPerPage":"/page","pagination.total":"Total: {0}","upload.buttonLabel":"Upload","upload.drag":"Click or drag file to this area to upload","upload.dragHover":"Release to upload","upload.retry":"Click to retry","upload.delete":"Delete","upload.preview":"Preview","upload.edit":"Edit","upload.loading":"Uploading","upload.failed":"Upload failed","upload.download":"Download the file","select.cancel":"Cancel","select.confirm":"Ok","input.limit":"<b>{0}</b>/{1}","table.filterEmptyOption":"empty","table.filterPlaceholder":"Enter keywords","timePicker.time":"time","timePicker.selectTime":"Select time","timePicker.placeholder":"Select time","timePicker.now":"Now","timePicker.startTime":"Start Time","timePicker.endTime":"End Time","datePicker.date":"Date","datePicker.time":"Time","datePicker.selectDate":"Select date","datePicker.selectTime":"Select Time","datePicker.placeholder":"Select date","datePicker.yearPlaceholder":"Select year","datePicker.monthPlaceholder":"Select month","datePicker.today":"Today","datePicker.year":"","datePicker.yearUnit":"","datePicker.monthUnit":"","datePicker.dayUnit":"","datePicker.weekdays.0":"Su","datePicker.weekdays.1":"Mo","datePicker.weekdays.2":"Tu","datePicker.weekdays.3":"We","datePicker.weekdays.4":"Th","datePicker.weekdays.5":"Fr","datePicker.weekdays.6":"Sa","datePicker.months.0":"January","datePicker.months.1":"February","datePicker.months.2":"March","datePicker.months.3":"April","datePicker.months.4":"May","datePicker.months.5":"June","datePicker.months.6":"July","datePicker.months.7":"August","datePicker.months.8":"September","datePicker.months.9":"October","datePicker.months.10":"November","datePicker.months.11":"December","datePicker.monthsShort.0":"Jan","datePicker.monthsShort.1":"Feb","datePicker.monthsShort.2":"Mar","datePicker.monthsShort.3":"Apr","datePicker.monthsShort.4":"May","datePicker.monthsShort.5":"Jun","datePicker.monthsShort.6":"Jul","datePicker.monthsShort.7":"Aug","datePicker.monthsShort.8":"Sep","datePicker.monthsShort.9":"Oct","datePicker.monthsShort.10":"Nov","datePicker.monthsShort.11":"Dec","dateRangePicker.placeholderStart":"Start date","dateRangePicker.placeholderEnd":"End date","dateRangePicker.selectRange":"Select date range"},Qd=t.defineComponent({__name:"OPlusConfigProvider",props:{locale:{default:"zh"},theme:{default:"light"}},setup(r){const e=r,i=t.reactive({locale:t.computed(()=>e.locale),theme:t.computed(()=>e.theme)});return t.provide(Xe.configProviderInjectKey,i),(n,s)=>(t.openBlock(),t.createBlock(t.unref(V.OConfigProvider),{locale:r.locale==="zh"?t.unref(F8):t.unref(U8)},{default:t.withCtx(()=>[t.renderSlot(n.$slots,"default")]),_:3},8,["locale"]))}}),$8=Object.assign(Qd,{install(r){r.component("OPlusConfigProvider",Qd)}}),z8={class:"cookie-notice-content"},H8=["type"],X8={class:"cookie-title"},j8={style:{transform:"rotate(180deg)"},xmlns:"http://www.w3.org/2000/svg",version:"1.1",width:"24",height:"24",viewBox:"0 0 24 24"},G8={class:"cookie-zh-title",style:{"margin-top":"0"}},W8=["href"],Y8={key:1,class:"cookie-en-title"},K8={key:0,class:"cookie-en-content"},Q8={class:"cookie-en-desc"},J8=["href"],Z8={class:"cookie-notice-right"},e7={class:"cookie-dlg-title"},t7={class:"cookie-dlg-content"},i7={class:"content-item"},n7={class:"item-header"},r7={class:"item-title"},s7={class:"item-extra"},a7={class:"item-detail"},o7={class:"content-item"},l7={class:"item-header"},u7={class:"item-title"},c7={class:"item-extra"},d7={class:"item-detail"},h7="0",Jd="1",f7="2",Hs="3",p7="agreed-cookiepolicy-zh",m7="agreed-cookiepolicy-en",g7=t.defineComponent({__name:"OCookieNotice",props:{visible:{type:Boolean},community:{},detailUrl:{},wrapper:{},cookieDomain:{}},emits:["update:visible"],setup(r,{expose:e,emit:i}){const n=r,s=i,{lePadV:a,leLaptop:o,isPhone:l}=Et.useScreen(),{locale:c,t:d}=Xe.useI18n(),m=t.computed(()=>c.value==="zh"),g=t.ref(),C=t.computed(()=>g.value?!!getComputedStyle(g.value).getPropertyValue("--grid-content-width"):!1),b=t.computed(()=>m.value?p7:m7),k=t.ref(!1),v=fi.useVModel(n,"visible",s,{defaultValue:!1}),T=F=>{const P=document.cookie.split(";").find(L=>L.split("=")[0].trim()===encodeURIComponent(F));return P?decodeURIComponent(P.split("=")[1]):null},E=(F,P,L,R)=>{const te=`; max-age=${L*24*60*60}`;document.cookie=`${encodeURIComponent(F)}=${encodeURIComponent(P)}${te}; path=/; domain=${R}`},I=(F,P)=>{document.cookie=`${encodeURIComponent(F)}=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; domain=${P}`},w=F=>{typeof F=="boolean"?v.value=F:v.value=!v.value,t.nextTick(()=>{!v.value&&m.value&&T(b.value)!==Hs&&E(b.value,Hs,180,n.cookieDomain??location.hostname)})},$=t.ref(!1),q=F=>{typeof F=="boolean"?$.value=F:$.value=!$.value},z=()=>m.value?T(b.value)!==Hs:(T(b.value)??"0")===h7,N=()=>m.value?T(b.value)===Hs:T(b.value)===Jd;t.onMounted(()=>{z()&&w(!0)}),t.watch(c,()=>{w(z())});const U=()=>{k.value=!0,I(b.value,n.cookieDomain??location.hostname),E(b.value,Jd,180,n.cookieDomain??location.hostname),w(!1)},x=()=>{k.value=!1,I(b.value,n.cookieDomain??location.hostname),E(b.value,f7,180,n.cookieDomain??location.hostname),w(!1)},D=t.computed(()=>l.value?[{id:"save",label:d("cookie.saveSetting"),variant:"text",onClick:()=>{k.value?U():x(),q(!1)}},{id:"allowAll",label:d("cookie.acceptAll"),variant:"text",onClick:()=>{k.value=!0,U(),q(!1)}}]:[{id:"save",color:"primary",label:d("cookie.saveSetting"),variant:"outline",size:"medium",round:"pill",onClick:()=>{k.value?U():x(),q(!1)}},{id:"allowAll",color:"primary",label:d("cookie.acceptAll"),variant:"outline",size:"medium",round:"pill",onClick:()=>{k.value=!0,U(),q(!1)}}]),B=F=>{F&&(k.value=N())};return e({check(){N()===v.value&&w()}}),(F,P)=>(t.openBlock(),t.createBlock(Xe._sfc_main,null,{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.Teleport,{to:r.wrapper||"#app"},[t.unref(v)?(t.openBlock(),t.createElementBlock("div",{key:0,ref_key:"cookieNoticeRef",ref:g,class:"cookie-notice"},[t.createElementVNode("div",z8,[t.createElementVNode("div",{type:t.unref(c),class:t.normalizeClass({"cookie-notice-wrap-grid":C.value,"cookie-notice-wrap":!C.value})},[t.createElementVNode("div",X8,[m.value?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createVNode(t.unref(V.OIcon),{style:{display:"inline-block","font-size":"24px","margin-right":"4px"}},{default:t.withCtx(()=>[(t.openBlock(),t.createElementBlock("svg",j8,[...P[4]||(P[4]=[t.createElementVNode("path",{fill:"#002fa7",d:"M21 12c0 4.971-4.029 9-9 9s-9-4.029-9-9c0-4.971 4.029-9 9-9s9 4.029 9 9z"},null,-1),t.createElementVNode("path",{fill:"#fff",d:"M12 9.4c0.552 0 1-0.448 1-1s-0.448-1-1-1c-0.552 0-1 0.448-1 1s0.448 1 1 1zM12.492 10.943c-0.042-0.233-0.246-0.41-0.492-0.41-0.276 0-0.5 0.224-0.5 0.5v5.5l0.008 0.090c0.042 0.233 0.246 0.41 0.492 0.41 0.276 0 0.5-0.224 0.5-0.5v-5.5l-0.008-0.090z"},null,-1)])]))]),_:1}),t.createElementVNode("p",G8,[t.createTextVNode(t.toDisplayString(t.unref(d)("cookie.desc"))+" ",1),t.createElementVNode("a",{href:r.detailUrl,target:"_blank",rel:"noopener noreferrer"},t.toDisplayString(t.unref(d)("cookie.about")),9,W8)])],64)):(t.openBlock(),t.createElementBlock("p",Y8,t.toDisplayString(t.unref(d)("cookie.title",[r.community])),1)),t.createVNode(t.unref(V.OIcon),{class:"cookie-notice-close",onClick:P[0]||(P[0]=L=>w(!1))},{default:t.withCtx(()=>[t.createVNode(t.unref(V.OIconClose))]),_:1})]),m.value?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",K8,[t.createElementVNode("p",Q8,[t.createTextVNode(t.toDisplayString(t.unref(d)("cookie.desc"))+" ",1),t.createElementVNode("a",{href:r.detailUrl,target:"_blank",rel:"noopener noreferrer"},t.toDisplayString(t.unref(d)("cookie.about")),9,J8),P[5]||(P[5]=t.createTextVNode(". ",-1))]),t.createElementVNode("div",Z8,[t.createVNode(t.unref(V.OButton),{round:"pill",variant:"outline",color:"primary",onClick:U},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(d)("cookie.acceptAll")),1)]),_:1}),t.createVNode(t.unref(V.OButton),{round:"pill",variant:"outline",color:"primary",onClick:x},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(d)("cookie.rejectAll")),1)]),_:1}),t.createVNode(t.unref(V.OButton),{round:"pill",variant:"outline",color:"primary",onClick:P[1]||(P[1]=L=>q(!0))},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(d)("cookie.manage")),1)]),_:1})])]))],10,H8)]),t.createVNode(t.unref(V.ODialog),{visible:$.value,"onUpdate:visible":P[3]||(P[3]=L=>$.value=L),size:t.unref(o)?"medium":"large","phone-half-full":t.unref(a),"main-class":C.value?"o-cookie-notice-dlg-main":"",class:"cookie-dlg",actions:D.value,onChange:B,style:{"--dlg-radius":"4px"}},{header:t.withCtx(()=>[t.createElementVNode("span",e7,t.toDisplayString(t.unref(d)("cookie.manage")),1)]),default:t.withCtx(()=>[t.createElementVNode("div",t7,[t.createElementVNode("div",i7,[t.createElementVNode("div",n7,[t.createElementVNode("span",r7,t.toDisplayString(t.unref(d)("cookie.necessaryCookie")),1),t.createElementVNode("span",s7,t.toDisplayString(t.unref(d)("cookie.alwaysOn")),1)]),t.createElementVNode("div",a7,t.toDisplayString(t.unref(d)("cookie.necessaryCookieDetail")),1)]),t.createElementVNode("div",o7,[t.createElementVNode("div",l7,[t.createElementVNode("span",u7,t.toDisplayString(t.unref(d)("cookie.analyticalCookie")),1),t.createElementVNode("span",c7,[t.createVNode(t.unref(V.OSwitch),{modelValue:k.value,"onUpdate:modelValue":P[2]||(P[2]=L=>k.value=L)},null,8,["modelValue"])])]),t.createElementVNode("div",d7,t.toDisplayString(t.unref(d)("cookie.analyticalCookieDetail")),1)])])]),_:1},8,["visible","size","phone-half-full","main-class","actions"])],512)):t.createCommentVNode("",!0)],8,["to"]))]),_:1}))}}),Zd=Xe._export_sfc(g7,[["__scopeId","data-v-b731c798"]]),v7=Object.assign(Zd,{install(r){r.component("OCookieNotice",Zd)}}),y7={viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"24.000000",height:"24.000000",fill:"none",customFrame:"#000000"};function _7(r,e){return t.openBlock(),t.createElementBlock("svg",y7,[...e[0]||(e[0]=[t.createElementVNode("rect",{id:"峰会",width:"24.000000",height:"24.000000",x:"0.000000",y:"0.000000"},null,-1),t.createElementVNode("path",{id:"矢量 425",d:"M8.36719 4.75439L8.36523 4.75537L8.36523 4.75537C7.63184 5.05518 6.93555 5.44629 6.27734 5.9292C6.00098 6.13184 5.94238 6.5083 6.14551 6.78516C6.34766 7.06201 6.72461 7.11963 7.00098 6.91699C7.61035 6.47119 8.25391 6.11475 8.93262 5.84766C9.05371 5.7998 9.17676 5.75488 9.30078 5.71289C9.73242 5.56641 10.1699 5.45752 10.6143 5.38672C10.6191 5.38574 10.624 5.38525 10.6289 5.38428L10.6289 5.38428C11.0439 5.31836 11.4639 5.28564 11.8896 5.28564C12.3193 5.28564 12.7451 5.31934 13.1641 5.38672L13.165 5.38672C13.6084 5.45752 14.0459 5.56641 14.4775 5.71289C14.6016 5.75488 14.7246 5.7998 14.8457 5.84766C15.5254 6.11475 16.1689 6.47119 16.7773 6.91699C17.0537 7.11963 17.4307 7.06201 17.6328 6.78516C17.8359 6.5083 17.7783 6.13184 17.501 5.9292C16.8418 5.4458 16.1455 5.0542 15.4111 4.75439C15.2334 4.68213 15.0537 4.61475 14.8711 4.55273C14.376 4.38477 13.873 4.25977 13.3643 4.17773C12.8789 4.09961 12.3877 4.06055 11.8896 4.06055C11.3916 4.06055 10.8994 4.09961 10.4141 4.17773L10.4141 4.17773C9.90527 4.25977 9.40332 4.38477 8.90723 4.55273C8.72559 4.61475 8.54492 4.68213 8.36719 4.75439L8.36719 4.75439ZM20.377 14.2979L20.377 13.4229C20.377 13.0801 20.1074 12.8105 19.7646 12.8105C19.4219 12.8105 19.1523 13.0801 19.1523 13.4229L19.1523 14.2979C19.1523 14.334 19.1455 14.3677 19.1328 14.3984L19.1328 14.3989C19.1074 14.4243 19.0215 14.5283 18.9902 14.5415C18.96 14.5542 18.9258 14.5605 18.8896 14.5605L4.88965 14.5605C4.85352 14.5605 4.82031 14.5542 4.78906 14.5415C4.76367 14.5156 4.65918 14.4297 4.64648 14.3989C4.63379 14.3677 4.62695 14.3345 4.62695 14.2979L4.62695 9.04785C4.62695 9.01172 4.63379 8.97803 4.64648 8.94727C4.67188 8.92188 4.75781 8.81738 4.78906 8.80469L4.78906 8.80469C4.82031 8.79199 4.85352 8.78564 4.88965 8.78564L18.8896 8.78564C18.9258 8.78564 18.96 8.79199 18.9902 8.80469C19.0166 8.83057 19.1201 8.9165 19.1328 8.94727C19.1455 8.97803 19.1523 9.01172 19.1523 9.04785L19.1523 11.6729C19.1523 12.0161 19.4219 12.2856 19.7646 12.2856C20.1074 12.2856 20.377 12.0161 20.377 11.6729L20.377 9.04785C20.377 8.94141 20.3662 8.83691 20.3447 8.73535L20.3447 8.73438L20.3447 8.73389C20.3252 8.64355 20.2969 8.55518 20.2598 8.46875C20.2236 8.3833 20.1807 8.30225 20.1299 8.22559C20.0752 8.14355 20.0127 8.06738 19.9414 7.99609C19.8701 7.92529 19.7939 7.8623 19.7119 7.80811C19.6357 7.75732 19.5547 7.71387 19.4688 7.67773C19.3828 7.64111 19.2939 7.61328 19.2041 7.59375C19.1016 7.57178 18.9971 7.56055 18.8896 7.56055L4.88965 7.56055C4.78418 7.56055 4.68066 7.57129 4.5791 7.59277L4.5791 7.59277C4.57812 7.59326 4.57715 7.59326 4.57617 7.59375L4.5752 7.59375C4.48535 7.61328 4.39746 7.64111 4.31055 7.67773C4.22461 7.71387 4.14355 7.75732 4.06738 7.80811C3.98535 7.8623 3.90918 7.92529 3.83789 7.99609C3.7666 8.06738 3.7041 8.14355 3.64941 8.22559C3.64941 8.22656 3.64844 8.22705 3.64844 8.22803C3.59863 8.30371 3.55566 8.38379 3.51953 8.46875C3.48242 8.55518 3.45508 8.64355 3.43555 8.73389C3.41309 8.83643 3.40234 8.94092 3.40234 9.04785L3.40234 14.2979C3.40234 14.4053 3.41309 14.5098 3.43555 14.6123C3.45508 14.7021 3.48242 14.7905 3.51953 14.8774C3.55566 14.9629 3.59961 15.0439 3.64941 15.1201C3.7041 15.2021 3.7666 15.2788 3.83789 15.3501C3.90918 15.4209 3.98535 15.4834 4.06738 15.5381C4.14355 15.5889 4.22461 15.6323 4.31055 15.6685C4.39746 15.7051 4.48535 15.7329 4.5752 15.7524C4.67773 15.7744 4.78223 15.7856 4.88965 15.7856L18.8896 15.7856C18.9971 15.7856 19.1016 15.7744 19.2041 15.7524C19.2939 15.7329 19.3828 15.7051 19.4688 15.6685C19.5547 15.6318 19.6357 15.5889 19.7119 15.5381C19.7939 15.4834 19.8701 15.4209 19.9414 15.3501C20.0127 15.2788 20.0752 15.2021 20.1299 15.1201C20.1807 15.0439 20.2236 14.9629 20.2598 14.8774C20.2969 14.7905 20.3252 14.7021 20.3447 14.6123C20.3662 14.5098 20.377 14.4053 20.377 14.2979ZM14.8291 16.3438L14.8291 16.3438C14.9189 16.3633 15.0078 16.3911 15.0938 16.4277C15.1797 16.4639 15.2607 16.5073 15.3369 16.5581C15.4189 16.6123 15.4951 16.6753 15.5664 16.7461C15.6377 16.8174 15.7002 16.8936 15.7549 16.9756C15.8057 17.0522 15.8486 17.1328 15.8848 17.2188C15.9219 17.3052 15.9502 17.3936 15.9697 17.4839C15.9912 17.5864 16.002 17.6909 16.002 17.7979C16.002 17.9053 15.9912 18.0098 15.9697 18.1123C15.9502 18.2021 15.9219 18.2905 15.8848 18.3774C15.8486 18.4629 15.8057 18.5439 15.7549 18.6201C15.7002 18.7021 15.6377 18.7788 15.5664 18.8501C15.4951 18.9209 15.4189 18.9834 15.3369 19.0381C15.2607 19.0889 15.1797 19.1318 15.0938 19.1685C15.0078 19.2051 14.9189 19.2329 14.8291 19.2524C14.7266 19.2744 14.6221 19.2856 14.5146 19.2856L9.26465 19.2856C9.1582 19.2856 9.05273 19.2744 8.9502 19.2524C8.86035 19.2329 8.77246 19.2051 8.68555 19.1685C8.59961 19.1318 8.51855 19.0889 8.44238 19.0381C8.36035 18.9834 8.28418 18.9209 8.21289 18.8501C8.1416 18.7788 8.0791 18.7021 8.02441 18.6201C7.97461 18.5439 7.93066 18.4629 7.89453 18.3774C7.85742 18.2905 7.83008 18.2021 7.81055 18.1123C7.78809 18.0098 7.77734 17.9053 7.77734 17.7979C7.77734 17.6909 7.78809 17.5864 7.81055 17.4839C7.83008 17.3936 7.85742 17.3052 7.89453 17.2188C7.93066 17.1328 7.97461 17.0522 8.02441 16.9756C8.0791 16.8936 8.1416 16.8174 8.21289 16.7461C8.28418 16.6753 8.36035 16.6123 8.44238 16.5581C8.51855 16.5073 8.59961 16.4639 8.68555 16.4277C8.77246 16.3911 8.86035 16.3633 8.9502 16.3438C9.05273 16.3218 9.1582 16.3105 9.26465 16.3105L14.5146 16.3105C14.6221 16.3105 14.7266 16.3218 14.8291 16.3438ZM9.2666 17.5352L14.5166 17.5352C14.5527 17.5352 14.5859 17.5415 14.6172 17.5547C14.6426 17.5801 14.7471 17.666 14.7598 17.6973C14.7725 17.728 14.7793 17.7617 14.7793 17.7979C14.7793 17.834 14.7725 17.8677 14.7598 17.8984C14.7344 17.9243 14.6484 18.0283 14.6172 18.041C14.5859 18.0542 14.5527 18.0605 14.5166 18.0605L9.2666 18.0605C9.23047 18.0605 9.19629 18.0542 9.16602 18.041C9.13965 18.0156 9.03613 17.9297 9.02344 17.8984C9.01074 17.8677 9.00391 17.834 9.00391 17.7979C9.00391 17.7617 9.01074 17.728 9.02344 17.6973C9.04883 17.6714 9.13477 17.5674 9.16602 17.5547C9.19629 17.5415 9.23047 17.5352 9.2666 17.5352Z",fill:"rgb(255,255,255)","fill-rule":"evenodd"},null,-1)])])}const b7={name:"events-icon-summit",render:_7},T7={viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"24.000000",height:"24.000000",fill:"none",customFrame:"#000000"};function x7(r,e){return t.openBlock(),t.createElementBlock("svg",T7,[...e[0]||(e[0]=[t.createElementVNode("rect",{id:"活动",width:"24.000000",height:"24.000000",x:"0.000000",y:"0.000000"},null,-1),t.createElementVNode("path",{id:"矢量 426",d:"M18.3065 11.0924L17.7206 11.6295C17.455 11.8722 17.4384 12.2711 17.6806 12.5362C17.9237 12.8009 18.3221 12.8185 18.5868 12.5758L19.1737 12.0387L20.0418 11.2433C20.1746 11.1217 20.2811 10.9859 20.3631 10.8365C20.4256 10.7198 20.4735 10.5948 20.5057 10.4615C20.5369 10.3316 20.5516 10.2017 20.5496 10.0723C20.5467 9.92 20.5213 9.76765 20.4725 9.61531C20.4237 9.46345 20.3553 9.32478 20.2684 9.19978C20.1942 9.09333 20.1063 8.99665 20.0057 8.90925C19.9012 8.81989 19.7899 8.74616 19.6698 8.68854C19.5165 8.61481 19.3504 8.56744 19.1717 8.54645L15.3212 8.09185C15.2997 8.08355 15.2119 8.05572 15.1923 8.04156C15.1777 8.02398 15.1142 7.9566 15.1044 7.93511L13.4697 4.43751C13.3945 4.27638 13.2978 4.13477 13.1816 4.0127L13.1816 4.0127C13.0898 3.91797 12.9853 3.83496 12.8691 3.76416C12.7549 3.69531 12.6367 3.64209 12.5137 3.60498L12.5137 3.60498C12.3682 3.56104 12.2168 3.53906 12.0586 3.53906C11.8994 3.53906 11.7481 3.56104 11.6025 3.60498L11.6025 3.60498C11.4795 3.64209 11.3613 3.69531 11.2471 3.76416C11.1309 3.83496 11.0264 3.91797 10.9356 4.0127C10.8184 4.13477 10.7217 4.27589 10.6465 4.43751L9.01178 7.93511C8.99713 7.95269 8.94342 8.0274 8.92389 8.04156C8.90241 8.04986 8.81843 8.08892 8.79499 8.09185L4.94448 8.54645C4.76577 8.56744 4.59976 8.61481 4.44644 8.68854L4.44644 8.68854C4.32731 8.74616 4.215 8.81989 4.11149 8.90925C4.00993 8.99665 3.92204 9.09333 3.8488 9.19978C3.76091 9.32478 3.69353 9.46345 3.64373 9.61531C3.5949 9.76765 3.56951 9.92 3.56658 10.0723C3.56463 10.2017 3.57927 10.3316 3.61052 10.4615C3.64275 10.5948 3.6906 10.7198 3.75407 10.8365C3.83513 10.9859 3.94157 11.1217 4.07438 11.2433L6.90635 13.837C6.91807 13.8566 6.97374 13.9313 6.98155 13.9542C6.98155 13.9606 6.98252 13.9713 6.98448 13.9845L6.98448 13.986C6.98838 14.0226 6.99327 14.0763 6.98936 14.0939L6.2384 17.8488C6.20324 18.0241 6.19738 18.196 6.21985 18.3635C6.23645 18.4948 6.2716 18.6232 6.32434 18.7497C6.37512 18.8727 6.43957 18.986 6.51671 19.0891C6.60851 19.2106 6.71788 19.3181 6.84679 19.4118C6.97471 19.5061 7.11045 19.5778 7.254 19.6281C7.37607 19.6711 7.50302 19.698 7.63583 19.7097C7.77157 19.7209 7.90438 19.7155 8.03524 19.6926L8.03524 19.6926C8.20223 19.6628 8.36336 19.6047 8.52058 19.5183L11.9248 17.6369C11.9473 17.631 12.0342 17.6022 12.0586 17.6022C12.0801 17.6081 12.1709 17.6252 12.1914 17.6369L15.5117 19.4719C15.6718 19.5603 15.8368 19.6189 16.0068 19.6481L16.0077 19.6481C16.1396 19.6706 16.2743 19.675 16.412 19.6618C16.5468 19.6491 16.6747 19.6203 16.7968 19.5754C16.9423 19.5222 17.079 19.447 17.2079 19.3488C17.3368 19.2512 17.4462 19.1394 17.537 19.0139C17.6132 18.9079 17.6747 18.7917 17.7235 18.6662C17.7733 18.5368 17.8046 18.4055 17.8182 18.2722C17.8368 18.1008 17.8241 17.926 17.7821 17.7482L16.3495 11.7125C16.2665 11.3629 15.9267 11.1534 15.5771 11.2359C15.2275 11.3189 15.0175 11.6593 15.1005 12.0089L16.5331 18.0446C16.5468 18.1027 16.5458 18.155 16.5292 18.2023C16.5116 18.2492 16.4794 18.2907 16.4325 18.3268C16.3847 18.363 16.3359 18.383 16.286 18.3864C16.2362 18.3903 16.1855 18.3776 16.1327 18.3488L12.8115 16.5133C12.6943 16.4489 12.5732 16.4001 12.4473 16.3678L12.4473 16.3678C12.3223 16.3351 12.1924 16.319 12.0586 16.319C11.9238 16.319 11.794 16.3351 11.669 16.3678C11.543 16.4001 11.4219 16.4489 11.3047 16.5133L7.8995 18.3952C7.84872 18.4235 7.79794 18.4362 7.74911 18.4328C7.69931 18.4299 7.65146 18.4108 7.60458 18.3762C7.55673 18.342 7.52451 18.3015 7.50693 18.2556C7.48837 18.2097 7.48545 18.1579 7.49716 18.1003L8.24813 14.3453C8.27449 14.2116 8.28426 14.0792 8.27644 13.9474C8.26863 13.816 8.24324 13.6852 8.20125 13.5558C8.15926 13.4259 8.10262 13.3058 8.03036 13.1949C7.95907 13.0841 7.87313 12.983 7.77255 12.8907L4.94155 10.297C4.89761 10.2569 4.87026 10.213 4.85757 10.1651C4.84487 10.1173 4.8478 10.0655 4.86538 10.0094C4.88393 9.95369 4.91128 9.90975 4.94936 9.8785C4.98842 9.84676 5.03628 9.82771 5.09487 9.82088L8.94538 9.36628C9.07916 9.35066 9.20709 9.31892 9.32916 9.27155C9.45025 9.22419 9.56646 9.16071 9.67583 9.0821C9.7852 9.003 9.8809 8.91315 9.96391 8.81256C10.0479 8.71198 10.1172 8.60065 10.1748 8.47858L11.8086 4.98097C11.834 4.92824 11.8672 4.88869 11.9082 4.86183C11.9502 4.83546 12 4.82228 12.0586 4.82228C12.1162 4.82228 12.166 4.83546 12.208 4.86183C12.25 4.88869 12.2822 4.92824 12.3076 4.98097L13.9414 8.47858C13.999 8.60065 14.0693 8.71198 14.1523 8.81256C14.2353 8.91315 14.332 9.003 14.4414 9.0821C14.5507 9.16071 14.666 9.22419 14.7871 9.27155C14.9091 9.31892 15.0371 9.35066 15.1708 9.36628L19.0213 9.82088C19.0799 9.82771 19.1278 9.84676 19.1668 9.8785C19.2049 9.90975 19.2333 9.95369 19.2508 10.0094C19.2694 10.0655 19.2713 10.1173 19.2586 10.1651C19.2459 10.213 19.2186 10.2569 19.1747 10.297L18.3065 11.0924ZM9.31256 13.2311L7.93856 11.8561C7.68368 11.6017 7.68368 11.2027 7.93856 10.9483C8.19246 10.6944 8.59187 10.6944 8.84577 10.9483L10.2207 12.3233C10.4746 12.5777 10.4746 12.9772 10.2207 13.2311C9.96586 13.485 9.56743 13.485 9.31256 13.2311Z",fill:"rgb(255,255,255)","fill-rule":"evenodd"},null,-1)])])}const C7={name:"events-icon-events",render:x7},S7={viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"24.000000",height:"24.000000",fill:"none",customFrame:"#000000"};function E7(r,e){return t.openBlock(),t.createElementBlock("svg",S7,[...e[0]||(e[0]=[t.createElementVNode("rect",{id:"高校 & 比赛",width:"24.000000",height:"24.000000",x:"0.000000",y:"0.000000"},null,-1),t.createElementVNode("path",{id:"矢量 578",d:"M3.05078 7.51904L11.6914 4.13965C11.8086 4.09424 11.9219 4.07178 12.0391 4.07178C12.1523 4.07178 12.2695 4.09473 12.3867 4.14062L20.9609 7.51953C21.0625 7.55957 21.1523 7.61328 21.2305 7.67969C21.2969 7.73779 21.3555 7.80566 21.4062 7.88379C21.5078 8.03857 21.5586 8.20898 21.5625 8.39502C21.5625 8.58057 21.5156 8.75195 21.418 8.9082C21.3125 9.07861 21.1641 9.20264 20.9766 9.28076L19.457 9.91309L19.457 12.2915C19.457 12.6558 19.168 12.9419 18.8047 12.9419C18.4414 12.9419 18.1562 12.6558 18.1562 12.292L18.1562 10.4531L16.0742 11.3188L16.0742 14.7134C16.2852 14.897 16.418 15.1675 16.418 15.4692C16.418 16.0215 15.9688 16.4692 15.418 16.4692C14.8672 16.4692 14.418 16.0215 14.418 15.4692C14.418 15.1626 14.5547 14.8887 14.7734 14.7051L14.7734 11.8589L12.4023 12.8442C12.2852 12.8926 12.1641 12.917 12.0391 12.917C11.9141 12.9175 11.793 12.8936 11.6758 12.8452L5.63281 10.354L5.61328 17.6836C5.61328 17.7285 5.62109 17.771 5.63281 17.8101C5.65234 17.854 5.67969 17.894 5.71484 17.9307C5.75 17.9658 5.78906 17.9917 5.83203 18.0088C5.87109 18.0259 5.91797 18.0342 5.96484 18.0342L17.7812 18.0342C17.832 18.0342 17.875 18.0254 17.918 18.0083C17.957 17.9912 17.9961 17.9658 18.0312 17.9316C18.0625 17.8975 18.0898 17.8599 18.1055 17.8184C18.125 17.7773 18.1328 17.7324 18.1328 17.6841L18.1328 14.1411C18.1328 13.7773 18.418 13.4912 18.7812 13.4912C19.1445 13.4912 19.4336 13.7773 19.4336 14.1411L19.4336 17.6841C19.4336 17.8032 19.418 17.9194 19.3945 18.0332C19.375 18.1333 19.3438 18.231 19.3008 18.3267C19.2188 18.5239 19.1016 18.6987 18.9492 18.8511C18.8711 18.9297 18.7852 18.9995 18.6953 19.0596C18.6094 19.1157 18.5195 19.1641 18.4258 19.2041C18.3281 19.2446 18.2305 19.2759 18.1328 19.2974L18.1328 19.2974C18.0156 19.3218 17.9023 19.334 17.7812 19.334L5.96484 19.334C5.84375 19.334 5.73047 19.3218 5.61719 19.2979C5.51562 19.2759 5.41797 19.2446 5.32031 19.2036C5.12109 19.1201 4.94922 19.002 4.79688 18.8501C4.64453 18.6978 4.52734 18.5225 4.44141 18.3252C4.35547 18.1196 4.3125 17.9048 4.3125 17.6797L4.33594 9.81836L3.03125 9.28174C2.84375 9.2041 2.69531 9.08008 2.58984 8.90967C2.54297 8.83496 2.50781 8.75684 2.48438 8.67578C2.45703 8.58643 2.44531 8.49268 2.44531 8.39502C2.44531 8.29736 2.46094 8.20361 2.48828 8.11475C2.51562 8.03369 2.55078 7.95654 2.59766 7.8833C2.65234 7.80469 2.71094 7.73682 2.77734 7.67871C2.85547 7.61182 2.94922 7.55859 3.05078 7.51904ZM18.5547 8.87891L15.457 10.1665L11.5 8.05322C11.1758 7.88184 10.7891 7.99951 10.6172 8.32031C10.4492 8.6416 10.5664 9.02832 10.8867 9.19971L13.9062 10.8115L12.0352 11.5884L5.23438 8.78271L4.33594 8.41211L12.0352 5.40039L19.6797 8.41211L18.5547 8.87891Z",fill:"rgb(255,254.745,254.745)","fill-rule":"evenodd"},null,-1)])])}const k7={name:"events-icon-competition",render:E7},w7={viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"24.000000",height:"24.000000",fill:"none",customFrame:"#000000"};function D7(r,e){return t.openBlock(),t.createElementBlock("svg",w7,[...e[0]||(e[0]=[t.createElementVNode("rect",{id:"版本发布计划",width:"24.000000",height:"24.000000",x:"0.000000",y:"0.000000"},null,-1),t.createElementVNode("path",{id:"矢量 579",d:"M8.94922 6.90332L8.94922 6.3335C8.94922 6.23779 8.95703 6.14404 8.97656 6.05225L8.97656 6.05225C8.99609 5.97119 9.01953 5.89209 9.05469 5.81396C9.08594 5.7373 9.125 5.66455 9.17188 5.59619C9.21875 5.52246 9.27734 5.4541 9.33984 5.39062C9.40234 5.32715 9.47266 5.271 9.54297 5.22217L9.54297 5.22217L9.54297 5.22217C9.61328 5.17676 9.6875 5.1377 9.76172 5.10498C9.83984 5.07227 9.91797 5.04688 10 5.02979L10 5.02979C10.0938 5.00977 10.1875 5 10.2812 5L18.668 5C18.7617 5 18.8555 5.00977 18.9492 5.02979L18.9492 5.02979C19.0273 5.04688 19.1094 5.07227 19.1875 5.10498C19.2617 5.1377 19.3359 5.17676 19.4023 5.22217C19.4766 5.271 19.5469 5.32715 19.6094 5.39062C19.6719 5.4541 19.7305 5.52246 19.7773 5.59619L19.7773 5.59619C19.8242 5.66455 19.8633 5.7373 19.8945 5.81396C19.9297 5.89209 19.9531 5.97119 19.9688 6.05225C19.9883 6.14404 20 6.23779 20 6.3335L20 12.2441C20 12.3398 19.9883 12.4336 19.9688 12.5249C19.9531 12.606 19.9297 12.6855 19.8945 12.7632C19.8633 12.8403 19.8242 12.9131 19.7773 12.9814C19.7305 13.0547 19.6719 13.123 19.6094 13.187C19.5469 13.2505 19.4766 13.3066 19.4023 13.3555C19.3359 13.4009 19.2617 13.4399 19.1875 13.4722C19.1094 13.5054 19.0273 13.5303 18.9492 13.5479C18.8555 13.5674 18.7617 13.5771 18.668 13.5771L18.3906 13.5771C18.0664 13.5771 17.8125 13.3232 17.8125 13C17.8125 12.6768 18.0664 12.4229 18.3906 12.4229L18.668 12.4229C18.6914 12.4229 18.7734 12.3789 18.793 12.3701C18.8086 12.353 18.8359 12.2651 18.8438 12.2441L18.8438 6.3335C18.8438 6.30859 18.8008 6.22803 18.793 6.20703C18.7773 6.18945 18.6875 6.16357 18.668 6.15479L10.2812 6.15479C10.2578 6.15479 10.1758 6.19824 10.1562 6.20703C10.1367 6.22461 10.1133 6.3125 10.1016 6.3335L10.1016 6.90332C10.1016 7.22656 9.84766 7.48047 9.52734 7.48047C9.20312 7.48047 8.94922 7.22656 8.94922 6.90332ZM6.47266 9.39307L6.47266 9.21973C6.47266 9.12402 6.48438 9.03027 6.50391 8.93896C6.51953 8.85791 6.54688 8.77832 6.57812 8.70068C6.61328 8.62354 6.65234 8.55127 6.69531 8.48242C6.74609 8.40918 6.80078 8.34082 6.86328 8.27734C6.92969 8.21338 6.99609 8.15723 7.07031 8.10889C7.13672 8.06299 7.21094 8.02441 7.28906 7.9917C7.36719 7.9585 7.44531 7.93359 7.52734 7.91602C7.61719 7.89648 7.71094 7.88672 7.80859 7.88672L16.1914 7.88672C16.2891 7.88672 16.3828 7.89648 16.4727 7.91602C16.5547 7.93359 16.6328 7.9585 16.7109 7.9917C16.7891 8.02441 16.8594 8.06299 16.9297 8.1084C17.0039 8.15723 17.0703 8.21338 17.1367 8.27734C17.1992 8.34082 17.2539 8.40918 17.3047 8.48242C17.3477 8.55127 17.3867 8.62354 17.4219 8.70068C17.4531 8.77832 17.4805 8.85791 17.4961 8.93896C17.5156 9.03027 17.5273 9.12402 17.5273 9.21973L17.5273 15.1304C17.5273 15.2266 17.5156 15.3198 17.4961 15.4116C17.4805 15.4927 17.4531 15.5718 17.4219 15.6499C17.3867 15.7266 17.3477 15.7993 17.3047 15.8682C17.2539 15.9414 17.1992 16.0098 17.1367 16.0732C17.0703 16.1367 17.0039 16.1929 16.9297 16.2417C16.8633 16.2871 16.7891 16.3262 16.7109 16.3589C16.6328 16.3916 16.5547 16.417 16.4727 16.4346C16.3828 16.4541 16.2891 16.4639 16.1914 16.4639L15.8789 16.4639C15.5547 16.4639 15.3008 16.21 15.3008 15.8867C15.3008 15.5635 15.5547 15.3091 15.8789 15.3091L16.1914 15.3091C16.2188 15.3091 16.2969 15.2656 16.3203 15.2568C16.3359 15.2393 16.3633 15.1519 16.3711 15.1304L16.3711 9.21973C16.3711 9.19531 16.3281 9.11475 16.3203 9.09375C16.3008 9.07617 16.2148 9.0498 16.1914 9.04102L7.80859 9.04102C7.78125 9.04102 7.70312 9.08496 7.67969 9.09375C7.66406 9.11084 7.63672 9.19873 7.62891 9.21973L7.62891 9.39307C7.62891 9.71631 7.375 9.97021 7.05078 9.97021C6.72656 9.97021 6.47266 9.71631 6.47266 9.39307ZM14 10.3901C13.9062 10.3706 13.8125 10.3608 13.7188 10.3608L5.33203 10.3608C5.23828 10.3608 5.14453 10.3706 5.05078 10.3901L5.05078 10.3901C4.97266 10.4077 4.89062 10.4331 4.8125 10.4658C4.73828 10.4985 4.66406 10.5376 4.59766 10.583L4.59766 10.583L4.59766 10.583C4.52344 10.6318 4.45312 10.688 4.39062 10.7515C4.32812 10.8149 4.26953 10.8833 4.22266 10.957C4.17578 11.0254 4.13672 11.0981 4.10547 11.1748C4.07031 11.2529 4.04688 11.332 4.03125 11.4131L4.03125 11.4131C4.01172 11.5049 4 11.5981 4 11.6943L4 17.605C4 17.7007 4.01172 17.7944 4.03125 17.8857C4.04688 17.9668 4.07031 18.0464 4.10547 18.124C4.13672 18.2012 4.17578 18.2739 4.22266 18.3423C4.26953 18.4155 4.32812 18.4839 4.39062 18.5479C4.45312 18.6113 4.52344 18.6675 4.59766 18.7163C4.66406 18.7617 4.73828 18.8008 4.8125 18.833C4.89062 18.8662 4.97266 18.8911 5.05078 18.9087L5.05078 18.9087C5.14453 18.9282 5.23828 18.938 5.33203 18.938L13.7188 18.938C13.8125 18.938 13.9062 18.9282 14 18.9087C14.082 18.8911 14.1602 18.8662 14.2383 18.833C14.3125 18.8008 14.3867 18.7617 14.457 18.7163C14.5273 18.6675 14.5977 18.6113 14.6602 18.5479C14.7227 18.4839 14.7812 18.4155 14.8281 18.3423C14.875 18.2739 14.9141 18.2012 14.9453 18.124C14.9805 18.0464 15.0039 17.9668 15.0234 17.8857C15.043 17.7944 15.0508 17.7007 15.0508 17.605L15.0508 11.6943C15.0508 11.5981 15.043 11.5049 15.0234 11.4131C15.0039 11.332 14.9805 11.2529 14.9453 11.1748C14.9141 11.0981 14.875 11.0254 14.8281 10.957C14.7812 10.8833 14.7227 10.8149 14.6602 10.7515C14.5977 10.688 14.5273 10.6318 14.457 10.583C14.3867 10.5376 14.3125 10.4985 14.2383 10.4658C14.1602 10.4331 14.082 10.4077 14 10.3901ZM5.33203 11.5156L13.7188 11.5156C13.7383 11.5244 13.8281 11.5503 13.8438 11.5679C13.8516 11.5889 13.8984 11.6694 13.8984 11.6943L13.8984 17.605C13.8867 17.626 13.8633 17.7139 13.8438 17.731C13.8242 17.7397 13.7422 17.7837 13.7188 17.7837L5.33203 17.7837C5.3125 17.7749 5.22266 17.7485 5.20703 17.731C5.19922 17.71 5.15625 17.6294 5.15625 17.605L5.15625 11.6943C5.16406 11.6733 5.19141 11.5854 5.20703 11.5679C5.22266 11.5503 5.3125 11.5244 5.33203 11.5156ZM11 12.7754C10.8086 12.5776 10.5 12.5742 10.3008 12.7676C10.1055 12.9614 10.1016 13.2695 10.293 13.4678L11 14.1875L8.36719 14.1875C8.08984 14.1875 7.87109 14.4053 7.87109 14.6826C7.87109 14.9595 8.08984 15.1772 8.36719 15.1772L10.9414 15.1772L10.2969 15.8286C10.1016 16.0254 10.1016 16.3335 10.3008 16.5283C10.4961 16.7236 10.8047 16.7222 11 16.5254L12.5039 15.0078C12.6172 14.8926 12.6758 14.7769 12.6758 14.6611C12.6758 14.5459 12.6172 14.4297 12.5039 14.3135L11 12.7754ZM7.39453 13.6792L7.39453 15.9336C7.39453 16.2109 7.17969 16.4287 6.90234 16.4287C6.625 16.4287 6.40625 16.2109 6.40625 15.9336L6.40625 13.6792C6.40625 13.4019 6.625 13.1841 6.90234 13.1841C7.17969 13.1841 7.39453 13.4019 7.39453 13.6792Z",fill:"rgb(255,255,255)","fill-rule":"evenodd"},null,-1)])])}const V7={name:"events-icon-release",render:D7},A7={summit:"--o-orange-6",events:"--o-cyan-6",competition:"--o-blue-6",release:"--o-purple-6"},I7={events:C7,competition:k7,release:V7,summit:b7},Xs={上海:"https://infrastructure-website.osinfra.cn/picture/city/shanghai.jpg",北京:"https://infrastructure-website.osinfra.cn/picture/city/beijing.jpg",南京:"https://infrastructure-website.osinfra.cn/picture/city/nanjing.jpg",天津:"https://infrastructure-website.osinfra.cn/picture/city/tianjin.jpg",成都:"https://infrastructure-website.osinfra.cn/picture/city/chengdu.jpg",无锡:"https://infrastructure-website.osinfra.cn/picture/city/wuxi.jpg",杭州:"https://infrastructure-website.osinfra.cn/picture/city/hangzhou.jpg",深圳:["https://infrastructure-website.osinfra.cn/picture/city/shenzhen1.jpg","https://infrastructure-website.osinfra.cn/picture/city/shenzhen2.jpg"],苏州:"https://infrastructure-website.osinfra.cn/picture/city/suzhou.jpg",西安:"https://infrastructure-website.osinfra.cn/picture/city/xian.jpg",郑州:"https://infrastructure-website.osinfra.cn/picture/city/zhengzhou.jpg",武汉:"https://infrastructure-website.osinfra.cn/picture/city/wuhan.jpg"},N7="https://infrastructure-website.osinfra.cn/picture/city/default-cover.jpg",P7={class:"o-events-calendar"},O7={key:0,class:"month-list"},B7={class:"collapse-header"},L7={class:"collapse-title"},M7={key:0,class:"collapse-desc"},R7={key:0,class:"month-content month-content-span"},q7={key:0,class:"event-location"},F7={class:"event-name"},U7={key:1},$7={key:0,class:"month-content-row"},z7={class:"month-name"},H7={class:"event-name"},X7={class:"event-location"},j7={class:"event-name"},G7={class:"event-location"},W7={key:1,class:"month-content month-content-column"},Y7={class:"event-location"},K7={class:"event-name"},Q7={key:1},eh=t.defineComponent({__name:"OEventsCalendar",props:{data:{default:()=>[]}},setup(r){const e=Ca(),{lePadV:i}=Et.useScreen(),n=r,s=["JAN","FEB","MAR","Apr","May","JUN","Jul","Aug","Sep","Oct","Nov","Dec"],a=t.ref([]);t.watch([()=>n.data,()=>i.value],()=>{var g;n.data.length?i.value?a.value=[(g=n.data[0])==null?void 0:g.name]:a.value=n.data.map(C=>C.name):a.value=[]},{immediate:!0});const o=g=>{const C=g.split("/");return parseInt(C[1],10)},l=g=>{const C=new Array(12).fill(0),b=[];return g.forEach((k,v)=>{const[T,E]=Array.isArray(k.date)?[o(k.date[0]),o(k.date[1])]:[o(k.date),o(k.date)];let I=0;for(let $=T-1;$<E;$++)I=Math.max(I,C[$]);const w=I+1;for(let $=T-1;$<E;$++)C[$]=w;b.push({event:k,row:w,eventIndex:v,start:T,end:E})}),b},c=g=>{const C=Array.from({length:12},()=>[]);return g.forEach(b=>{const k=Array.isArray(b.date)?o(b.date[0]):o(b.date);C[k-1].push(b)}),C},d=g=>{const C=g.color||A7[g.type];return C!=null&&C.startsWith("--")?`var(${C})`:C},m=g=>g.icon?g.icon:I7[g.type];return(g,C)=>(t.openBlock(),t.createElementBlock("div",P7,[t.unref(i)?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",O7,[(t.openBlock(),t.createElementBlock(t.Fragment,null,t.renderList(s,b=>t.createElementVNode("div",{class:"month-header",key:b},t.toDisplayString(b),1)),64))])),t.createVNode(t.unref(V.OCollapse),{modelValue:a.value,"onUpdate:modelValue":C[0]||(C[0]=b=>a.value=b)},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.data,(b,k)=>(t.openBlock(),t.createBlock(t.unref(V.OCollapseItem),{key:k,value:b.name},{title:t.withCtx(()=>[t.createElementVNode("div",B7,[t.createElementVNode("div",L7,[t.createElementVNode("div",{class:"title-icon",style:t.normalizeStyle({"--bg-color":d(b)})},[t.createVNode(t.unref(V.OIcon),null,{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(m(b))))]),_:2},1024)],4),t.createElementVNode("span",null,t.toDisplayString(b.name),1)]),b.desc?(t.openBlock(),t.createElementBlock("div",M7,[t.withDirectives(t.createElementVNode("div",null,null,512),[[t.unref(e),b.desc]])])):t.createCommentVNode("",!0)])]),default:t.withCtx(()=>[b.isSpanMonth?(t.openBlock(),t.createElementBlock("div",R7,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l(b.data),({event:v,row:T,eventIndex:E,start:I,end:w})=>(t.openBlock(),t.createElementBlock("div",{key:E,class:t.normalizeClass(["event-item",{"event-item-center":v.align==="center","has-link":v.link}]),style:t.normalizeStyle({gridColumn:`${I} / ${w+1}`,gridRow:T,"--bg-color":d(b)||void 0})},[v.location?(t.openBlock(),t.createElementBlock("div",q7,t.toDisplayString(v.location),1)):t.createCommentVNode("",!0),t.createElementVNode("div",F7,[v.link?(t.openBlock(),t.createBlock(t.unref(V.OLink),t.mergeProps({key:0,href:v.link,target:"_blank"},{ref_for:!0},v.linkProps||{}),{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(v.name),1)]),_:2},1040,["href"])):(t.openBlock(),t.createElementBlock("span",U7,t.toDisplayString(v.name),1))])],6))),128))])):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.unref(i)?(t.openBlock(),t.createElementBlock("div",$7,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c(b.data),(v,T)=>(t.openBlock(),t.createElementBlock("div",{key:T,class:t.normalizeClass(["month-row",{"empty-month":v.length===0}])},[t.createElementVNode("div",z7,t.toDisplayString(s[T]),1),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(v,(E,I)=>(t.openBlock(),t.createElementBlock("div",{key:I,class:t.normalizeClass(["event-item",E.link?"has-link":""]),style:t.normalizeStyle({"--bd-color":d(b)||void 0})},[E.link?(t.openBlock(),t.createBlock(t.unref(V.OLink),{key:0,href:E.link,target:"_blank"},{default:t.withCtx(()=>[t.createElementVNode("div",null,[t.createElementVNode("div",H7,[t.createElementVNode("span",null,t.toDisplayString(E.name),1)]),t.createElementVNode("div",X7,t.toDisplayString(E.location),1)]),t.createVNode(t.unref(V.OIcon),null,{default:t.withCtx(()=>[t.createVNode(t.unref(V.OIconChevronRight))]),_:1})]),_:2},1032,["href"])):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",j7,t.toDisplayString(E.name),1),t.createElementVNode("div",G7,t.toDisplayString(E.location),1)],64))],6))),128))],2))),128))])):(t.openBlock(),t.createElementBlock("div",W7,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(c(b.data),(v,T)=>(t.openBlock(),t.createElementBlock("div",{key:T,class:"month-column"},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(v,(E,I)=>(t.openBlock(),t.createElementBlock("div",{key:I,class:t.normalizeClass(["event-item",E.link?"has-link":""]),style:t.normalizeStyle({"--bg-color":d(b)||void 0})},[t.createElementVNode("div",Y7,t.toDisplayString(E.location),1),t.createElementVNode("div",K7,[E.link?(t.openBlock(),t.createBlock(t.unref(V.OLink),{key:0,href:E.link,target:"_blank"},{suffix:t.withCtx(()=>[t.createVNode(t.unref(V.OIcon),null,{default:t.withCtx(()=>[t.createVNode(t.unref(V.OIconChevronRight))]),_:1})]),default:t.withCtx(()=>[t.createElementVNode("span",null,t.toDisplayString(E.name),1)]),_:2},1032,["href"])):(t.openBlock(),t.createElementBlock("span",Q7,t.toDisplayString(E.name),1))])],6))),128))]))),128))]))],64))]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue"])]))}});var Ji=(r=>(r.FINISH="finish",r.ING="ing",r.ALL="",r))(Ji||{});const js=(r,e)=>new Date(r).getTime()>new Date(e).getTime(),J7={class:"o-events-list"},Z7={class:"filter-slot-wrapper"},e6={class:"filter-wrapper"},t6={class:"filter-left"},i6={class:"list-content"},n6={class:"tags-wrapper"},r6={class:"event-name"},s6={class:"event-desc"},a6={class:"event-date"},o6={key:0,class:"event-location"},th=t.defineComponent({__name:"OEventsList",props:{data:{default:()=>[]},page:{},pageSize:{},total:{}},emits:["search"],setup(r,{emit:e}){const{t:i}=Xe.useI18n(),{lePadV:n}=Et.useScreen(),s=r,a=[{label:i("events.statusAll"),value:Ji.ALL},{label:i("events.statusIng"),value:Ji.ING},{label:i("events.statusFinish"),value:Ji.FINISH}],o=e,l=t.ref(Ji.ALL),c=t.ref(""),d=t.ref(""),m=(k={})=>{o("search",Object.assign({page:s.page,pageSize:s.pageSize,status:l.value,keyword:d.value},k))},g=()=>{m()},C=()=>{d.value=c.value,m()},b=t.computed(()=>s.data.map(k=>{let v=k.startDate,T=k.endDate,E=xe(k.date).format("YYYY/MM/DD");if(v&&T){const I=xe().format("YYYY-01-01");js(I,v)&&(v=I);const w=xe().format("YYYY-12-31");js(T,w)&&(T=w),E=`${xe(v).format("YYYY/MM/DD")}-${xe(T).format("MM/DD")}`}return{...k,startDate:v,endDate:T,dateStr:E,status:js(new Date,k.date||k.endDate)?Ji.FINISH:Ji.ING}}).sort((k,v)=>js(k.date||k.endDate,v.date||v.endDate)?-1:1).map(k=>{var E,I,w;const v=(w=(I=(E=k.city)==null?void 0:E.replace("市",""))==null?void 0:I.replace("中国",""))==null?void 0:w.replaceAll(" ","");let T=null;return Array.isArray(Xs[v])?T=Xs[v][k.name.length%Xs[v].length]:T=Xs[v],T||(T=N7),{...k,cover:T}}));return(k,v)=>(t.openBlock(),t.createElementBlock("div",J7,[t.createElementVNode("div",Z7,[t.renderSlot(k.$slots,"filter",{},()=>[t.createElementVNode("div",e6,[t.createElementVNode("div",t6,[t.createElementVNode("span",null,t.toDisplayString(t.unref(i)("events.status")),1),t.createVNode(t.unref(V.ORadioGroup),{modelValue:l.value,"onUpdate:modelValue":v[0]||(v[0]=T=>l.value=T),style:{"--radio-group-gap":"8px"},onChange:g},{default:t.withCtx(()=>[(t.openBlock(),t.createElementBlock(t.Fragment,null,t.renderList(a,T=>t.createVNode(t.unref(V.ORadio),{key:T.value,value:T.value},{radio:t.withCtx(({checked:E})=>[t.createVNode(t.unref(V.OToggle),{checked:E},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(T.label),1)]),_:2},1032,["checked"])]),_:2},1032,["value"])),64))]),_:1},8,["modelValue"])]),t.createVNode(t.unref(V.OInput),{size:"large",modelValue:c.value,"onUpdate:modelValue":v[1]||(v[1]=T=>c.value=T),placeholder:t.unref(i)("events.searchPlaceholder"),onPressEnter:C,onClear:C,clearable:""},{prefix:t.withCtx(()=>[t.createVNode(t.unref(V.OIcon),{class:"input-icon"},{default:t.withCtx(()=>[t.createVNode(t.unref(V.OIconSearch))]),_:1})]),_:1},8,["modelValue","placeholder"])])])]),t.createElementVNode("div",i6,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(b.value,T=>(t.openBlock(),t.createBlock(t.unref(V.OCard),{key:T.name,cover:T.cover,href:T.link},{default:t.withCtx(()=>{var E;return[t.createElementVNode("div",n6,[(E=T.tags)!=null&&E.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(T.tags,I=>(t.openBlock(),t.createBlock(t.unref(V.OTag),{key:I.title,size:"medium"},t.createSlots({default:t.withCtx(()=>[t.createElementVNode("span",null,t.toDisplayString(I.title),1)]),_:2},[I.icon?{name:"icon",fn:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(I.icon)))]),key:"0"}:void 0]),1024))),128)):t.createCommentVNode("",!0),t.createVNode(t.unref(V.OTag),{class:"event-status"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(T.status===t.unref(Ji).ING?t.unref(i)("events.statusIng"):t.unref(i)("events.statusFinish")),1)]),_:2},1024)]),t.createElementVNode("div",r6,t.toDisplayString(T.name),1),t.createElementVNode("div",s6,[t.createElementVNode("div",a6,t.toDisplayString(T.dateStr),1),t.createVNode(t.unref(V.ODivider),{direction:"v"}),T.city?(t.openBlock(),t.createElementBlock("div",o6,t.toDisplayString(T.city),1)):t.createCommentVNode("",!0)])]}),_:2},1032,["cover","href"]))),128))]),b.value.length?t.createCommentVNode("",!0):t.renderSlot(k.$slots,"empty",{key:0}),r.total>8?(t.openBlock(),t.createBlock(t.unref(V.OPagination),{key:1,page:r.page,simple:t.unref(n),"show-total":!0,pageSize:r.pageSize,total:r.total,onChange:m,pageSizes:[4,12,24,36,48]},null,8,["page","simple","pageSize","total"])):t.createCommentVNode("",!0)]))}}),l6={version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};function u6(r,e){return t.openBlock(),t.createElementBlock("svg",l6,[...e[0]||(e[0]=[t.createElementVNode("path",{fill:"#1da9ff",d:"M20.4 5.95c0.27-0.27 0.71-0.27 0.99 0 0.24 0.25 0.27 0.63 0.070 0.91l-0.070 0.080-10.5 10.47c-0.53 0.53-1.36 0.56-1.93 0.1l-0.11-0.1-5.23-5.2c-0.28-0.28-0.28-0.72-0.010-0.99 0.25-0.25 0.63-0.28 0.91-0.080l0.080 0.070 5.24 5.21c0.010 0.010 0.030 0.010 0.040 0.010l0.030-0.010 10.49-10.47z"},null,-1)])])}const c6={name:"events-icon-checked",render:u6},d6={class:"o-events-apply"},h6={class:"events-apply-grid"},f6={class:"timeline-number"},p6={class:"number-circle"},m6={class:"step-title"},g6={class:"step-idx"},v6={class:"step-desc"},y6={key:0},_6={class:"desc-list-wrapper"},b6={key:0,class:"desc-list-title"},T6={class:"desc-list-content"},x6={class:"desc-list-item-title"},C6={class:"desc-list-item-desc"},ih=t.defineComponent({__name:"OEventsApply",props:{steps:{}},setup(r){const{isDark:e}=Et.useTheme(),i=Ca();return(n,s)=>(t.openBlock(),t.createElementBlock("div",d6,[t.createElementVNode("div",h6,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.steps,(a,o)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:o},[t.createElementVNode("div",f6,[t.createElementVNode("div",p6,t.toDisplayString(o+1),1)]),t.createElementVNode("div",{class:t.normalizeClass(["step-item",`step-${o+1} ${t.unref(e)?"is-dark":""}`]),style:{}},[t.createElementVNode("div",m6,[t.createElementVNode("div",g6,t.toDisplayString(o+1),1),t.createElementVNode("span",null,t.toDisplayString(a.title),1)]),t.createElementVNode("div",v6,[a.desc?t.withDirectives((t.openBlock(),t.createElementBlock("div",y6,null,512)),[[t.unref(i),a.desc]]):t.createCommentVNode("",!0),t.renderSlot(n.$slots,`step${o+1}`),t.createElementVNode("div",_6,[a.listTitle?(t.openBlock(),t.createElementBlock("div",b6,t.toDisplayString(a.listTitle),1)):t.createCommentVNode("",!0),t.createElementVNode("div",T6,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.list,(l,c)=>(t.openBlock(),t.createElementBlock("div",{class:"desc-list-item",key:c},[t.createElementVNode("div",x6,[t.createVNode(t.unref(V.OIcon),null,{default:t.withCtx(()=>[t.createVNode(t.unref(c6))]),_:1}),t.createElementVNode("span",null,t.toDisplayString(l.title),1)]),t.createElementVNode("div",C6,t.toDisplayString(l.desc),1)]))),128))])])]),a.img?(t.openBlock(),t.createElementBlock("div",{key:0,class:"img-wrapper",style:t.normalizeStyle({backgroundImage:`url(${a.img})`})},null,4)):t.createCommentVNode("",!0),a.imgPhone?(t.openBlock(),t.createElementBlock("div",{key:1,class:"img-wrapper-phone",style:t.normalizeStyle({backgroundImage:`url(${a.imgPhone})`})},null,4)):t.createCommentVNode("",!0)],2)],64))),128))])]))}}),S6=Object.assign(eh,{install(r){r.component("OEventsCalendar",eh)}}),E6=Object.assign(th,{install(r){r.component("OEventsList",th)}}),k6=Object.assign(ih,{install(r){r.component("OEventsApply",ih)}}),w6={key:0,class:"atom"},D6={class:"atom-text"},V6=["href"],A6=["src"],I6={key:0,class:"quick-nav"},N6={class:"category-title"},P6={class:"navs"},O6=["href"],B6={key:0,class:"friendship-link"},L6={class:"friendship-link-title"},M6={class:"friendship-link-box"},R6=["href"],q6={key:0,class:"footer-logo"},F6=["src"],U6=["src"],$6=["href"],z6={key:1,class:"footer-option"},H6={class:"footer-option-item"},X6=["href"],j6={class:"license"},G6={class:"copyright"},W6={class:"filing"},Y6=["href"],K6=["src"],Q6={key:2,class:"footer-right"},J6={key:0,class:"code-box"},Z6=["src"],e5={class:"code-layer"},t5=["src"],i5={class:"txt"},n5={class:"app-footer-pc"},r5={key:0,class:"footer-left"},s5=["href"],a5=["src"],o5={key:0,class:"footer-right"},l5=["href"],u5={class:"app-footer-mb"},c5={key:0,class:"links"},d5=["href"],h5={class:"copyright"},f5={key:0,class:"approval"},p5=["href"],m5=["src"],g5=t.defineComponent({__name:"OFooter",props:{simple:{default:!1},atom:{default:void 0},lang:{default:void 0},quickNav:{default:void 0},friendshipLink:{default:void 0},footerLogo:{default:void 0},footerOption:{default:void 0},qrcode:{default:void 0},footerBg:{default:void 0}},setup(r){const e=r;return(i,n)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass([e.simple?"app-footer-simple":"app-footer"])},[e.simple?(t.openBlock(),t.createBlock(sn,{key:1},{default:t.withCtx(()=>[t.createElementVNode("div",n5,[i.$slots.left||e.footerOption?t.renderSlot(i.$slots,"left",{key:0},()=>[e.footerOption?(t.openBlock(),t.createElementBlock("div",r5,[t.createElementVNode("span",null,t.toDisplayString(e.footerOption[e.lang].copyright),1),t.createElementVNode("a",{class:"approval",href:e.footerOption[e.lang].beianLink,target:"_blank",rel:"noopener noreferrer"},t.toDisplayString(e.footerOption[e.lang].beianInfo1),9,s5),t.createElementVNode("img",{class:"police-img",src:e.footerOption[e.lang].policeIcon},null,8,a5),t.createElementVNode("span",null,t.toDisplayString(e.footerOption[e.lang].beianInfo2),1)])):t.createCommentVNode("",!0)],!0):t.createCommentVNode("",!0),i.$slots.right||e.footerOption?t.renderSlot(i.$slots,"right",{key:1},()=>[e.footerOption?(t.openBlock(),t.createElementBlock("div",o5,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.footerOption[e.lang].link,(s,a)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:s.url},[t.createElementVNode("a",{target:"_blank",href:s.url,class:"link"},t.toDisplayString(s.name),9,l5),a!==e.footerOption[e.lang].link.length-1?(t.openBlock(),t.createBlock(t.unref(V.ODivider),{key:0,direction:"v"})):t.createCommentVNode("",!0)],64))),128))])):t.createCommentVNode("",!0)],!0):t.createCommentVNode("",!0)]),t.createElementVNode("div",u5,[i.$slots.right||e.footerOption?t.renderSlot(i.$slots,"right",{key:0},()=>[e.footerOption?(t.openBlock(),t.createElementBlock("div",c5,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.footerOption[e.lang].link,(s,a)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:s.url},[t.createElementVNode("a",{target:"_blank",href:s.url,class:"link"},t.toDisplayString(s.name),9,d5),a!==e.footerOption[e.lang].link.length-1?(t.openBlock(),t.createBlock(t.unref(V.ODivider),{key:0,direction:"v"})):t.createCommentVNode("",!0)],64))),128))])):t.createCommentVNode("",!0)],!0):t.createCommentVNode("",!0),t.renderSlot(i.$slots,"copyright",{},()=>[t.createElementVNode("div",h5,t.toDisplayString(e.footerOption[e.lang].copyright),1)],!0),i.$slots.left||e.footerOption?t.renderSlot(i.$slots,"left",{key:1},()=>[e.footerOption?(t.openBlock(),t.createElementBlock("div",f5,[t.createElementVNode("a",{href:e.footerOption[e.lang].beianLink,target:"_blank",rel:"noopener noreferrer"},t.toDisplayString(e.footerOption[e.lang].beianInfo1),9,p5),t.createElementVNode("img",{class:"police-img",src:e.footerOption[e.lang].policeIcon},null,8,m5),t.createElementVNode("span",null,t.toDisplayString(e.footerOption[e.lang].beianInfo2),1)])):t.createCommentVNode("",!0)],!0):t.createCommentVNode("",!0)])]),_:3})):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[i.$slots.atom||e.atom?(t.openBlock(),t.createBlock(sn,{key:0},{default:t.withCtx(()=>[t.renderSlot(i.$slots,"atom",{},()=>{var s,a,o;return[e.atom?(t.openBlock(),t.createElementBlock("div",w6,[t.createElementVNode("p",D6,t.toDisplayString((s=e.atom[e.lang])==null?void 0:s.title),1),t.createElementVNode("a",{href:(a=e.atom[e.lang])==null?void 0:a.href,target:"_blank"},[t.createElementVNode("img",{src:(o=e.atom[e.lang])==null?void 0:o.img,class:"atom-logo",alt:""},null,8,A6)],8,V6)])):t.createCommentVNode("",!0),t.createVNode(t.unref(V.ODivider),{class:"atom-divider"})]},!0)]),_:3})):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"footer-content",style:t.normalizeStyle({backgroundImage:`url(${e.footerBg})`})},[t.createVNode(sn,null,{default:t.withCtx(()=>[i.$slots.quickNav||e.quickNav?t.renderSlot(i.$slots,"quickNav",{key:0},()=>[e.quickNav?(t.openBlock(),t.createElementBlock("div",I6,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.quickNav[e.lang],s=>(t.openBlock(),t.createElementBlock("div",{key:s.title,class:"category"},[t.createElementVNode("div",N6,t.toDisplayString(s.title),1),t.createElementVNode("ul",P6,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.list,a=>(t.openBlock(),t.createElementBlock("li",{key:a.title,class:"nav"},[t.createElementVNode("a",{href:a.link,target:"_blank",rel:"noopener noreferrer"},t.toDisplayString(a.title),9,O6)]))),128))])]))),128))])):t.createCommentVNode("",!0)],!0):t.createCommentVNode("",!0),i.$slots.friendshipLink||e.friendshipLink?t.renderSlot(i.$slots,"friendshipLink",{key:1},()=>[e.friendshipLink?(t.openBlock(),t.createElementBlock("div",B6,[t.createElementVNode("div",L6,t.toDisplayString(e.friendshipLink.title[e.lang]),1),t.createElementVNode("div",M6,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.friendshipLink.link[e.lang],s=>(t.openBlock(),t.createElementBlock("a",{href:s.link,key:s.link,target:"_blank"},t.toDisplayString(s.title),9,R6))),128))])])):t.createCommentVNode("",!0)],!0):t.createCommentVNode("",!0),t.renderSlot(i.$slots,"footer",{},()=>[t.createElementVNode("div",{class:t.normalizeClass(["inner",{"inner-en":e.lang==="en"}])},[e.footerLogo?(t.openBlock(),t.createElementBlock("div",q6,[t.createElementVNode("img",{class:"show-pc",src:e.footerLogo.logo,alt:""},null,8,F6),t.createElementVNode("img",{class:"show-mo",src:e.footerLogo.logoMb,alt:""},null,8,U6),t.createElementVNode("p",null,[t.createElementVNode("a",{class:"email",href:`mailto:${e.footerLogo.email}`,target:"_blank"},t.toDisplayString(e.footerLogo.email),9,$6)])])):t.createCommentVNode("",!0),e.footerOption?(t.openBlock(),t.createElementBlock("div",z6,[t.createElementVNode("div",H6,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.footerOption[e.lang].link,(s,a)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:s.url},[t.createElementVNode("a",{target:"_blank",href:s.url},t.toDisplayString(s.name),9,X6),a!==e.footerOption[e.lang].link.length-1?(t.openBlock(),t.createBlock(t.unref(V.ODivider),{key:0,style:{"--o-divider-bd-color":"var(--o-color-info3-inverse)","--o-divider-label-gap":"0 8px"},direction:"v"})):t.createCommentVNode("",!0)],64))),128))]),t.createElementVNode("p",j6,[t.createElementVNode("span",null,t.toDisplayString(e.footerOption[e.lang].licenseText),1),t.createTextVNode(" "+t.toDisplayString(e.footerOption[e.lang].licenseInfo),1)]),t.createElementVNode("div",G6,[t.createElementVNode("p",null,t.toDisplayString(e.footerOption[e.lang].copyright),1),t.createElementVNode("div",W6,[t.createElementVNode("a",{href:e.footerOption[e.lang].beianLink,target:"_blank"},t.toDisplayString(e.footerOption[e.lang].beianInfo1),9,Y6),t.createElementVNode("img",{src:e.footerOption[e.lang].policeIcon,class:"filing-img"},null,8,K6),t.createElementVNode("p",null,t.toDisplayString(e.footerOption[e.lang].beianInfo2),1)])])])):t.createCommentVNode("",!0),e.qrcode?(t.openBlock(),t.createElementBlock("div",Q6,[e.lang==="zh"?(t.openBlock(),t.createElementBlock("div",J6,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.qrcode,(s,a)=>(t.openBlock(),t.createElementBlock("div",{key:a,class:"code-pop"},[t.createElementVNode("img",{src:s.img,class:"code-img",alt:""},null,8,Z6),t.createElementVNode("div",e5,[t.createElementVNode("img",{src:s.code,alt:""},null,8,t5),t.createElementVNode("p",i5,t.toDisplayString(s.label),1)])]))),128))])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)],2)],!0)]),_:3})],4)],64))],2))}}),nh=Xe._export_sfc(g5,[["__scopeId","data-v-a9088eaf"]]),v5=Object.assign(nh,{install(r){r.component("OFooter",nh)}}),y5={version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};function _5(r,e){return t.openBlock(),t.createElementBlock("svg",y5,[...e[0]||(e[0]=[t.createElementVNode("path",{fill:"currentColor",d:"M9.461 11.616l4.719-3.932c0.212-0.177 0.527-0.148 0.704 0.064 0.075 0.090 0.116 0.203 0.116 0.32v7.865c0 0.276-0.224 0.5-0.5 0.5-0.117 0-0.23-0.041-0.32-0.116l-4.719-3.932c-0.212-0.177-0.241-0.492-0.064-0.704 0.019-0.023 0.041-0.045 0.064-0.064z"},null,-1)])])}const b5={name:"components-icon-caret-left",render:_5},T5={version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};function x5(r,e){return t.openBlock(),t.createElementBlock("svg",T5,[...e[0]||(e[0]=[t.createElementVNode("path",{fill:"currentColor",d:"M14.539 11.616l-4.719-3.932c-0.212-0.177-0.527-0.148-0.704 0.064-0.075 0.090-0.116 0.203-0.116 0.32v7.865c0 0.276 0.224 0.5 0.5 0.5 0.117 0 0.23-0.041 0.32-0.116l4.719-3.932c0.212-0.177 0.241-0.492 0.064-0.704-0.019-0.023-0.041-0.045-0.064-0.064z"},null,-1)])])}const C5={name:"components-icon-caret-right",render:x5},S5={class:"header-nav-wrap"},E5={key:0,class:"right-icon"},k5=["onMouseenter","onMouseleave"],w5=["id"],D5={class:"nav-text"},V5=["id","onClick"],A5={class:"nav-text"},I5={key:1,class:"right-icon"},N5=t.defineComponent({__name:"HeaderNav",props:{navData:{},activeIndex:{},hoverId:{}},emits:["handle-mouseenter","handle-mouseleave","handle-click"],setup(r,{emit:e}){const i=e,{isDark:n}=Et.useTheme(),s=r,a=t.ref(),o=t.ref(),l=t.ref(null),c=t.ref(!1),d=t.ref(!1),m=t.ref(),g=fi.useDebounceFn((q,z)=>{m.value=q==null?void 0:q.id,z==="mouseenter"&&i("handle-mouseenter",q),z==="mouseleave"&&(m.value="",i("handle-mouseleave",q))},100),C=q=>{i("handle-click",q)},b=()=>{d.value=!0,t.nextTick(()=>{a.value.scrollTo({left:a.value.clientWidth,behavior:"smooth"})})},k=()=>{a.value.scrollTo({left:0,behavior:"smooth"}),d.value=!1},v=()=>{var q,z;((q=a.value)==null?void 0:q.clientWidth)<((z=o.value)==null?void 0:z.clientWidth)?c.value=!0:c.value=!1};let T=0,E=0;const I=()=>E=0,w=q=>E>0?void E++:(E++,T=Date.now(),{event:"hover",properties:{module:"navigation",level1:q,target:q}}),$=q=>({properties:{module:"navigation",level1:q.label,target:q.label,steps:E,url:q.href,duration:Date.now()-T}});return t.onMounted(()=>{window.addEventListener("resize",v),t.nextTick(()=>{v(),l.value=setTimeout(()=>{v()},1e3)})}),t.onUnmounted(()=>{window.removeEventListener("resize",v),clearTimeout(l.value)}),(q,z)=>{const N=t.resolveDirective("analytics");return t.openBlock(),t.createElementBlock("div",S5,[t.createElementVNode("div",{class:t.normalizeClass(["header-nav",{"header-nav-scroll":d.value}])},[d.value?(t.openBlock(),t.createElementBlock("div",E5,[t.createVNode(t.unref(V.OIcon),{onClick:k},{default:t.withCtx(()=>[t.createVNode(t.unref(b5))]),_:1})])):t.createCommentVNode("",!0),t.createElementVNode("div",{ref_key:"navRef",ref:a,class:t.normalizeClass(["o-nav",{"o-nav-scroll":d.value||!c.value,dark:t.unref(n)}])},[t.createElementVNode("ul",{ref_key:"navListRef",ref:o,class:"o-nav-list",onMouseenter:I},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.navData,(U,x)=>{var D;return t.withDirectives((t.openBlock(),t.createElementBlock("li",{key:U.id,class:t.normalizeClass({"is-selected":m.value===U.id||s.hoverId===U.id,"is-active":s.activeIndex===x}),onMouseenter:B=>t.unref(g)(U,"mouseenter"),onMouseleave:B=>t.unref(g)(U,"mouseleave")},[(D=U==null?void 0:U.children)!=null&&D.length?(t.openBlock(),t.createElementBlock("div",{key:0,id:"tour_headerNav_"+U.id,class:"nav-item"},[t.createElementVNode("span",D5,t.toDisplayString(U.label),1)],8,w5)):(t.openBlock(),t.createElementBlock("div",{key:1,id:"tour_headerNav_"+U.id,class:"nav-item item-other",onClick:B=>C(U)},[t.createElementVNode("span",A5,t.toDisplayString(U.label),1),U.tag?(t.openBlock(),t.createBlock(t.unref(V.OTag),{key:0,round:"pill",color:"danger",size:"small",class:"content-tag"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(U.tag),1)]),_:2},1024)):t.createCommentVNode("",!0)],8,V5))],42,k5)),[[N,w(U.label),"mouseenter"],[N,$(U),void 0,{catchBubble:!0}]])}),128))],544)],2),c.value&&!d.value?(t.openBlock(),t.createElementBlock("div",I5,[t.createVNode(t.unref(V.OIcon),{onClick:b},{default:t.withCtx(()=>[t.createVNode(t.unref(C5))]),_:1})])):t.createCommentVNode("",!0)],2)])}}}),P5=Xe._export_sfc(N5,[["__scopeId","data-v-fe042238"]]),O5={class:"nav-sub-content"},B5={class:"content-left"},L5={class:"content-label"},M5={class:"content-container"},R5=["href","target"],q5={class:"item-name"},F5={key:0,class:"desc-container"},U5=["title"],$5={key:0,class:"split-line"},z5={key:1,class:"content-right"},H5={class:"content-label"},X5=["href","target"],j5=["href","target"],G5=["src"],W5={class:"review-content"},Y5={class:"review-label"},K5={class:"review-property"},Q5=t.defineComponent({__name:"HeaderContent",props:{itemData:{},itemVisible:{type:Boolean},community:{},bgLeft:{},bgRight:{},hoverIndex:{}},emits:["handle-mouseenter-sub","handle-mouseleave-sub"],setup(r,{emit:e}){const i=e,n=r,{locale:s}=Et.useLocale(),{theme:a}=Et.useTheme(),o=t.ref(!1),l=()=>{var b;i("handle-mouseenter-sub",(b=n.itemData)==null?void 0:b.id),o.value=!0},c=()=>{i("handle-mouseenter-sub",""),o.value=!1},d=t.ref(!1),m=b=>{if(!b||!b.target)return;const k=b.target;d.value=k.clientHeight<k.scrollHeight},g=(b,k)=>({properties:{module:"navigation",level1:b.label,level2:k.label,target:k.label,url:b.href}}),C=b=>({properties:{module:"navigation",level1:s.value==="zh"?"快捷链接":"Quick Link",level2:b.label,target:b.label,url:b.href}});return(b,k)=>{var T,E,I;const v=t.resolveDirective("analytics");return t.openBlock(),t.createElementBlock("div",{onMouseenter:l,onMouseleave:c},[(n.itemVisible||o.value)&&((E=(T=n.itemData)==null?void 0:T.children)!=null&&E.length)?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["nav-content",[(I=n.community)==null?void 0:I.toLowerCase(),n.hoverIndex,t.unref(a),`${n.hoverIndex}-${t.unref(s)}`]])},[t.createElementVNode("div",{class:"nav-background-left",style:t.normalizeStyle({backgroundImage:`url(${n.bgLeft})`})},null,4),t.createElementVNode("div",{class:"nav-background-right",style:t.normalizeStyle({backgroundImage:`url(${n.bgRight})`})},null,4),t.createVNode(sn,null,{default:t.withCtx(()=>[t.createVNode(t.unref(V.OScroller),{class:"nav-scroller","show-type":"always",size:"small","disabled-y":""},{default:t.withCtx(()=>{var w,$,q,z,N,U,x,D;return[t.createElementVNode("div",O5,[t.createElementVNode("div",B5,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList((w=n.itemData)==null?void 0:w.children,(B,F)=>(t.openBlock(),t.createElementBlock("div",{class:"item-sub",key:F},[t.createElementVNode("span",L5,t.toDisplayString(B.label),1),t.createElementVNode("div",M5,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(B.children,P=>(t.openBlock(),t.createElementBlock("div",{key:P.label,class:"content-item"},[t.withDirectives((t.openBlock(),t.createElementBlock("a",{href:P.href,target:(P==null?void 0:P.target)||"_self",rel:"noopener noreferrer",class:"item-label"},[t.createElementVNode("span",q5,t.toDisplayString(P.label),1),P.icon?(t.openBlock(),t.createBlock(t.unref(V.OIcon),{key:0},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(P.icon)))]),_:2},1024)):t.createCommentVNode("",!0),P.tag?(t.openBlock(),t.createBlock(t.unref(V.OTag),{key:1,round:"pill",color:"danger",size:"small",class:"content-tag"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(P.tag),1)]),_:2},1024)):t.createCommentVNode("",!0)],8,R5)),[[v,()=>g(B,P)]]),P.description?(t.openBlock(),t.createElementBlock("div",F5,[t.createElementVNode("p",{class:"item-desc",title:d.value?P.description:void 0,onMouseenter:k[0]||(k[0]=L=>m(L))},t.toDisplayString(P.description),41,U5)])):t.createCommentVNode("",!0)]))),128))])]))),128))]),(q=($=n.itemData)==null?void 0:$.shortcut)!=null&&q.length?(t.openBlock(),t.createElementBlock("div",$5)):t.createCommentVNode("",!0),(N=(z=n.itemData)==null?void 0:z.shortcut)!=null&&N.length?(t.openBlock(),t.createElementBlock("div",z5,[t.createElementVNode("span",H5,t.toDisplayString(t.unref(s)==="zh"?"快捷链接":"Quick Link"),1),(U=n.itemData)!=null&&U.withPicture?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList((D=n.itemData)==null?void 0:D.shortcut,B=>t.withDirectives((t.openBlock(),t.createElementBlock("a",{key:B.label,href:B.href,target:(B==null?void 0:B.target)||"_self",rel:"noopener noreferrer",class:"review"},[t.createElementVNode("img",{src:B.picture,class:"review-picture"},null,8,G5),t.createElementVNode("div",W5,[t.createElementVNode("p",Y5,t.toDisplayString(B.label),1),t.createElementVNode("div",K5,t.toDisplayString(B.remark),1)])],8,j5)),[[v,()=>C(B)]])),128)):(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList((x=n.itemData)==null?void 0:x.shortcut,B=>(t.openBlock(),t.createElementBlock("div",{key:B.label,class:"shortcut"},[t.withDirectives((t.openBlock(),t.createElementBlock("a",{href:B.href,target:(B==null?void 0:B.target)||"_self",rel:"noopener noreferrer",class:"shortcut-link"},[t.createElementVNode("span",null,t.toDisplayString(B.label),1),B.icon?(t.openBlock(),t.createBlock(t.unref(V.OIcon),{key:0},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(B.icon)))]),_:2},1024)):t.createCommentVNode("",!0)],8,X5)),[[v,()=>C(B)]])]))),128))])):t.createCommentVNode("",!0)])]}),_:1})]),_:1})],2)):t.createCommentVNode("",!0)],32)}}}),J5=Xe._export_sfc(Q5,[["__scopeId","data-v-a2219e83"]]),Z5={class:"header"},ex=["src"],tx={class:"header-nav"},ix={key:0,class:"header-toolbar"},nx={class:"header-nav-content"},rx=t.defineComponent({__name:"OHeader",props:{logo:{},community:{},navData:{},bgLeft:{},bgRight:{},activeIndex:{},codeData:{},langData:{},isSimpleHeader:{type:Boolean},headerTitle:{}},emits:["go-home","handle-click"],setup(r,{emit:e}){const{isDark:i}=Et.useTheme(),n=e,s=r,a=t.ref(),o=t.ref(),l=t.ref(),c=t.ref(!1),d=()=>{n("go-home")},m=v=>{var T;l.value=v,a.value=v.id,(T=v==null?void 0:v.children)!=null&&T.length&&(c.value=!0)},g=()=>{c.value=!1},C=v=>{n("handle-click",v)},b=v=>{o.value=v},k=v=>{o.value=v};return(v,T)=>(t.openBlock(),t.createElementBlock("div",Z5,[t.createElementVNode("div",{class:t.normalizeClass(["header-wrap",{"header-wrap-dark":t.unref(i)}])},[t.createVNode(sn,{class:"header-content"},{default:t.withCtx(()=>[t.createElementVNode("div",{class:"header-logo",onClick:d},[t.renderSlot(v.$slots,"logo",{},()=>[s.logo?(t.openBlock(),t.createElementBlock("img",{key:0,class:"logo",alt:"logo",src:s.logo},null,8,ex)):t.createCommentVNode("",!0)],!0)]),t.createElementVNode("div",tx,[t.renderSlot(v.$slots,"nav",{},()=>[s.navData?(t.openBlock(),t.createBlock(P5,{key:0,"nav-data":s.navData,hoverId:o.value,"active-index":s.activeIndex,onHandleMouseenter:m,onHandleMouseleave:g,onHandleClick:C},null,8,["nav-data","hoverId","active-index"])):t.createCommentVNode("",!0)],!0)]),v.$slots.toolbar?(t.openBlock(),t.createElementBlock("div",ix,[t.renderSlot(v.$slots,"toolbar",{},void 0,!0)])):t.createCommentVNode("",!0)]),_:3})],2),t.createElementVNode("div",nx,[t.createVNode(J5,{itemData:l.value,"item-visible":c.value,"bg-left":s.bgLeft,"bg-right":s.bgRight,community:s.community,"hover-index":a.value,onHandleMouseenterSub:b,onHandleMouseleaveSub:k},null,8,["itemData","item-visible","bg-left","bg-right","community","hover-index"])])]))}}),rh=Xe._export_sfc(rx,[["__scopeId","data-v-269d575f"]]);var Zi=(r=>(r.NAV="nav",r.CODE="code",r.LANG="lang",r))(Zi||{});const sx={class:"o-nav"},ax={class:"o-nav-list"},ox=["onClick"],lx={class:"nav-aside"},ux={key:0,class:"nav-aside-wrapper"},cx=["value"],dx={class:"content-label"},hx={class:"container-mobile"},fx=["onClick"],px={class:"item-label"},mx={class:"desc-container"},gx={class:"item-desc"},vx=["onClick"],yx={class:"item-label"},_x={key:1,class:"nav-aside-wrapper"},bx=["onClick"],Tx={class:"header-tool"},xx={key:2,class:"other-tool"},Cx=t.defineComponent({__name:"HeaderNavMobile",props:{menuShow:{type:Boolean,default:!1},navData:{default:()=>[]},codeData:{default:()=>[]},langData:{default:()=>[]}},emits:["on-click","lang-click","handle-click"],setup(r,{emit:e}){const i=e,n=r,s=t.ref(""),a=t.ref({}),o=(d,m)=>{var g;m===Zi.NAV?(g=d==null?void 0:d.children)!=null&&g.length?(s.value=d.id,a.value=d):i("handle-click",d):m===Zi.CODE?(s.value=m,a.value=n.codeData.list):m===Zi.LANG&&(s.value=m,a.value=n.langData.list)},l=(d,m)=>{window.open(d,m||"_self"),i("on-click")},c=d=>{s.value===Zi.CODE?l(d.href,d==null?void 0:d.target):s.value===Zi.LANG&&i("lang-click",d)};return t.onMounted(()=>{s.value=n.navData[0].id,a.value=n.navData[0]}),t.watch(()=>n.navData||n.codeData||n.langData,()=>{s.value===Zi.CODE?a.value=n.codeData.list:s.value===Zi.LANG?a.value=n.langData.list:a.value=n.navData.find(d=>d.id===s.value)},{deep:!0}),(d,m)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["header-nav",{active:r.menuShow}])},[t.createElementVNode("div",sx,[t.createElementVNode("ul",ax,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.navData,g=>(t.openBlock(),t.createElementBlock("li",{key:g.id,class:t.normalizeClass({active:s.value===g.id})},[t.createElementVNode("span",{onClick:C=>o(g,"nav")},t.toDisplayString(g.label),9,ox)],2))),128))]),t.createElementVNode("div",lx,[s.value!=="code"&&s.value!=="lang"?(t.openBlock(),t.createElementBlock("ul",ux,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.value.children,g=>(t.openBlock(),t.createElementBlock("li",{value:g.label,key:g.label,class:"nav-aside-content"},[g!=null&&g.children?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("p",dx,t.toDisplayString(g.label),1),t.createElementVNode("div",hx,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(g==null?void 0:g.children,C=>(t.openBlock(),t.createElementBlock("div",{key:C.label,class:"content-container-mobile"},[t.createElementVNode("a",{onClick:b=>l(C.href,C==null?void 0:C.target),rel:"noopener noreferrer",class:"content-subtitle"},[t.createElementVNode("span",px,t.toDisplayString(C.label),1),C.icon?(t.openBlock(),t.createBlock(t.unref(V.OIcon),{key:0},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(C.icon),{class:"icon"}))]),_:2},1024)):t.createCommentVNode("",!0),C.tag?(t.openBlock(),t.createBlock(t.unref(V.OTag),{key:1,round:"pill",color:"danger",size:"small",class:"content-tag"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(C.tag),1)]),_:2},1024)):t.createCommentVNode("",!0)],8,fx),t.createElementVNode("div",mx,[t.createElementVNode("p",gx,t.toDisplayString(C.description),1)])]))),128))])],64)):(t.openBlock(),t.createElementBlock("a",{key:1,onClick:C=>l(g.href,g==null?void 0:g.target),rel:"noopener noreferrer",class:"content-subtitle item-not-children"},[t.createElementVNode("span",yx,t.toDisplayString(g.label),1),g.icon?(t.openBlock(),t.createBlock(t.unref(V.OIcon),{key:0},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(g.icon),{class:"icon"}))]),_:2},1024)):t.createCommentVNode("",!0),g.tag?(t.openBlock(),t.createBlock(t.unref(V.OTag),{key:1,round:"pill",color:"danger",size:"small"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(g.tag),1)]),_:2},1024)):t.createCommentVNode("",!0)],8,vx))],8,cx))),128))])):(t.openBlock(),t.createElementBlock("div",_x,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.value,g=>(t.openBlock(),t.createElementBlock("a",{key:g.label,onClick:C=>c(g),class:"source-code-item"},[t.createElementVNode("span",null,t.toDisplayString(g.label),1),g.icon?(t.openBlock(),t.createBlock(t.unref(V.OIcon),{key:0},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(g.icon),{class:"icon"}))]),_:2},1024)):t.createCommentVNode("",!0)],8,bx))),128))]))])]),t.createElementVNode("div",Tx,[r.codeData?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["header-tool-item",{active:s.value==="code"}]),onClick:m[0]||(m[0]=g=>o(null,"code"))},t.toDisplayString(r.codeData.label),3)):t.createCommentVNode("",!0),r.langData?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["header-tool-item",{active:s.value==="lang"}]),onClick:m[1]||(m[1]=g=>o(null,"lang"))},t.toDisplayString(r.langData.label),3)):t.createCommentVNode("",!0),d.$slots.tool?(t.openBlock(),t.createElementBlock("div",xx,[t.renderSlot(d.$slots,"tool",{},void 0,!0)])):t.createCommentVNode("",!0)])],2))}}),Sx=Xe._export_sfc(Cx,[["__scopeId","data-v-9169adf0"]]),Ex={version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};function kx(r,e){return t.openBlock(),t.createElementBlock("svg",Ex,[...e[0]||(e[0]=[t.createElementVNode("path",{fill:"currentColor",d:"M3.8 5h16.4c0.442 0 0.8 0.359 0.8 0.8s-0.358 0.8-0.8 0.8h-16.4c-0.442 0-0.8-0.358-0.8-0.8s0.358-0.8 0.8-0.8zM3.8 11h16.4c0.442 0 0.8 0.359 0.8 0.8s-0.358 0.8-0.8 0.8h-16.4c-0.442 0-0.8-0.358-0.8-0.8s0.358-0.8 0.8-0.8zM3.8 17h16.4c0.442 0 0.8 0.358 0.8 0.8s-0.358 0.8-0.8 0.8h-16.4c-0.442 0-0.8-0.359-0.8-0.8s0.358-0.8 0.8-0.8z"},null,-1)])])}const wx={name:"components-icon-header-menu",render:kx},Dx={class:"header"},Vx={class:"header-box"},Ax={key:0,class:"header-simple"},Ix={class:"simple-header-left"},Nx={key:0,class:"header-title"},Px={key:0,class:"simple-header-right"},Ox={class:"header-left"},Bx={class:"header-center"},Lx=["src"],Mx={class:"header-right"},Rx=t.defineComponent({__name:"OHeaderMobile",props:{logo:{},community:{},navData:{},bgLeft:{},bgRight:{},activeIndex:{},codeData:{},langData:{},isSimpleHeader:{type:Boolean},headerTitle:{}},emits:["go-back","lang-click","go-home"],setup(r,{emit:e}){const i=e,n=r,s=()=>{i("go-back")},a=()=>{i("go-home")},o=t.ref(!1),l=()=>{setTimeout(()=>{o.value=!o.value},200)},c=()=>{l()},d=()=>{l()},m=g=>{i("lang-click",g),l()};return(g,C)=>(t.openBlock(),t.createElementBlock("div",Dx,[t.createElementVNode("div",Vx,[t.createVNode(sn,{class:"header-wrap"},{default:t.withCtx(()=>[r.isSimpleHeader?(t.openBlock(),t.createElementBlock("div",Ax,[t.createElementVNode("div",Ix,[t.createVNode(t.unref(V.OIcon),{onClick:s},{default:t.withCtx(()=>[t.createVNode(t.unref(V.OIconArrowLeft))]),_:1}),r.headerTitle?(t.openBlock(),t.createElementBlock("div",Nx,t.toDisplayString(r.headerTitle),1)):t.createCommentVNode("",!0)]),g.$slots.rightConfig?(t.openBlock(),t.createElementBlock("div",Px,[t.renderSlot(g.$slots,"rightConfig",{},void 0,!0)])):t.createCommentVNode("",!0)])):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",Ox,[t.createVNode(t.unref(V.OIcon),{onClick:l},{default:t.withCtx(()=>[o.value?(t.openBlock(),t.createBlock(t.unref(Dl),{key:1})):(t.openBlock(),t.createBlock(t.unref(wx),{key:0}))]),_:1})]),t.createElementVNode("div",Bx,[t.createElementVNode("div",{class:"header-logo",onClick:a},[t.renderSlot(g.$slots,"logo",{},()=>[n.logo?(t.openBlock(),t.createElementBlock("img",{key:0,class:"logo",alt:"logo",src:n.logo},null,8,Lx)):t.createCommentVNode("",!0)],!0)])]),t.createElementVNode("div",Mx,[t.renderSlot(g.$slots,"toolbar",{},void 0,!0)])],64))]),_:3})]),t.createElementVNode("div",{class:t.normalizeClass(["header-content-mb",{"header-content-active":o.value}])},[t.createVNode(Sx,{ref:"mobileNav","nav-data":r.navData,"code-data":r.codeData,"lang-data":r.langData,"menu-show":o.value,onHandleClick:d,onOnClick:c,onLangClick:m},{tool:t.withCtx(()=>[t.renderSlot(g.$slots,"tool",{},void 0,!0)]),_:3},8,["nav-data","code-data","lang-data","menu-show"])],2)]))}}),sh=Xe._export_sfc(Rx,[["__scopeId","data-v-1d6060f9"]]),qx=Object.assign(rh,{install(r){r.component("OHeader",rh)}}),Fx=Object.assign(sh,{install(r){r.component("OHeaderMobile",sh)}}),Ux={version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};function $x(r,e){return t.openBlock(),t.createElementBlock("svg",Ux,[...e[0]||(e[0]=[t.createElementVNode("path",{opacity:"0.8",fill:"currentColor",d:"M12.066 3.3c4.775 0.035 8.634 3.917 8.634 8.7s-3.859 8.664-8.633 8.699c-0.024 0.003-0.049 0.004-0.073 0.004-0.019 0-0.038-0.001-0.057-0.003l-0.005-0c-4.774-0.036-8.633-3.918-8.633-8.7s3.859-8.664 8.634-8.7h0.005c0.022-0.002 0.045-0.003 0.067-0.003 0.020 0 0.040 0.001 0.060 0.003zM4.733 11.3h2.589c0.021-0.33 0.058-0.658 0.109-0.984 0.045-0.288 0.103-0.573 0.172-0.857 0.096-0.393 0.213-0.778 0.352-1.155 0.146-0.398 0.317-0.787 0.511-1.168 0.171-0.336 0.36-0.661 0.564-0.975 0.239-0.366 0.501-0.718 0.785-1.055 0.028-0.033 0.056-0.066 0.084-0.099-2.793 0.837-4.882 3.302-5.167 6.293zM4.733 12.7c0.284 2.991 2.374 5.456 5.167 6.293l-0.084-0.099c-0.284-0.337-0.546-0.689-0.785-1.055-0.205-0.314-0.393-0.639-0.564-0.975-0.195-0.38-0.365-0.77-0.511-1.168-0.139-0.377-0.256-0.762-0.352-1.155-0.069-0.284-0.126-0.57-0.172-0.857-0.052-0.326-0.088-0.654-0.109-0.984h-2.589zM8.726 12.7c0.020 0.274 0.053 0.547 0.097 0.817 0.038 0.232 0.085 0.464 0.141 0.693 0.171 0.702 0.42 1.374 0.749 2.017 0.147 0.288 0.309 0.567 0.484 0.837 0.21 0.322 0.439 0.631 0.689 0.927 0.242 0.287 0.5 0.558 0.774 0.812l0.071 0.065q0.132 0.121 0.27 0.237 0.137-0.116 0.27-0.237l0.071-0.065c0.273-0.254 0.531-0.525 0.774-0.812 0.25-0.296 0.479-0.605 0.689-0.927 0.175-0.27 0.337-0.549 0.484-0.837 0.329-0.643 0.578-1.316 0.749-2.017 0.056-0.23 0.103-0.461 0.141-0.693 0.044-0.27 0.077-0.543 0.097-0.817h-6.548zM15.274 11.3c-0.020-0.274-0.053-0.547-0.097-0.817-0.038-0.233-0.085-0.464-0.141-0.694-0.082-0.34-0.184-0.673-0.304-0.999-0.128-0.347-0.276-0.687-0.445-1.018-0.147-0.288-0.309-0.567-0.484-0.837-0.209-0.322-0.439-0.631-0.689-0.927-0.242-0.287-0.501-0.558-0.774-0.813l-0.071-0.065q-0.132-0.121-0.27-0.237-0.137 0.116-0.27 0.237l-0.071 0.065c-0.273 0.254-0.531 0.525-0.774 0.813-0.25 0.296-0.479 0.605-0.689 0.927-0.176 0.27-0.337 0.549-0.484 0.837-0.169 0.332-0.318 0.671-0.445 1.018-0.12 0.326-0.221 0.659-0.304 0.999-0.056 0.23-0.103 0.461-0.141 0.694-0.044 0.27-0.077 0.543-0.097 0.817h6.548zM16.677 11.3h2.589c-0.284-2.991-2.374-5.456-5.167-6.293l0.084 0.099c0.284 0.337 0.546 0.689 0.785 1.055 0.205 0.314 0.393 0.639 0.564 0.975 0.195 0.381 0.365 0.77 0.511 1.168 0.139 0.377 0.256 0.762 0.351 1.155 0.069 0.284 0.126 0.57 0.172 0.857 0.051 0.326 0.088 0.654 0.109 0.984zM16.677 12.7c-0.021 0.33-0.058 0.658-0.109 0.984-0.045 0.288-0.103 0.573-0.172 0.857-0.096 0.393-0.213 0.778-0.351 1.155-0.147 0.398-0.317 0.788-0.511 1.168-0.171 0.336-0.36 0.661-0.564 0.975-0.239 0.366-0.501 0.718-0.785 1.055l-0.084 0.099c2.793-0.838 4.882-3.302 5.167-6.293h-2.589z"},null,-1)])])}const zx={name:"components-icon-locale",render:$x},Hx={class:"info-wrap"},Xx=["onClick"],jx=t.defineComponent({__name:"OHeaderLanguageSwitcher",props:{options:{type:Array,default(){return[{id:"zh",label:"简体中文",simple:"中"},{id:"en",label:"English",simple:"EN"}]}},type:{type:String,default:"auto"},auto:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1}},emits:["change"],setup(r,{emit:e}){const i=r,{changeLocale:n,locale:s}=Et.useLocale(),{lePadV:a}=Et.useScreen(),o=t.computed(()=>s.value),l=e,c=g=>{i.auto&&n(),l("change",g)},d=(g,C)=>{const b=i.options.find(v=>v.id===g);if(b)return C?b.simple:b.label;const k=i.options[0];return C?k.simple:k.label},m=t.computed(()=>i.type==="common"||i.type==="auto"&&!a.value);return(g,C)=>m.value?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass([r.options.length<=1?"hide-lang":"header-lang",r.disabled?"is-disabled":""])},[t.createVNode(t.unref(V.ODropdown),{trigger:"hover",optionPosition:"bottom","option-width-mode":"auto",optionWrapClass:{dropdown:!0,"is-disabled":r.disabled}},{dropdown:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.options,b=>(t.openBlock(),t.createBlock(t.unref(V.ODropdownItem),{onClick:k=>c(b),key:b.id,class:t.normalizeClass(["list",{"is-active":o.value===b.id}])},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(d(b.id)),1)]),_:2},1032,["onClick","class"]))),128))]),default:t.withCtx(()=>[t.createElementVNode("div",Hx,[t.createVNode(t.unref(V.OIcon),{class:"icon"},{default:t.withCtx(()=>[t.createVNode(t.unref(zx)),t.createElementVNode("div",{class:t.normalizeClass(["locale-tag",{"is-en":o.value==="en"}])},t.toDisplayString(d(o.value,!0)),3)]),_:1})])]),_:1},8,["optionWrapClass"])],2)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass([r.options.length<=1?"hide-lang":"mobile-change-language",r.disabled?"is-disabled":""])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.options,(b,k)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:b.id},[k!==0?(t.openBlock(),t.createBlock(t.unref(V.ODivider),{key:0,direction:"v"})):t.createCommentVNode("",!0),t.createElementVNode("span",{class:t.normalizeClass({active:o.value===b.id}),onClick:t.withModifiers(v=>c(b),["stop"])},t.toDisplayString(d(b.id,!0)),11,Xx)],64))),128))],2))}}),ah=Xe._export_sfc(jx,[["__scopeId","data-v-07aa851a"]]),Gx=Object.assign(ah,{install(r){r.component("OHeaderLanguageSwitcher",ah)}});function Wx(r){const e=t.ref(""),i=t.ref(null),n=t.ref(""),s=t.ref(!1);let a=null;const o=T=>{var w,$,q,z;const E=(w=r.allowedImageTypes)==null?void 0:w.value,I=E&&E.length>0?E.includes(T.type):($=T.type)==null?void 0:$.startsWith("image/");return!T.type||!I?((q=r.onValidationError)==null||q.call(r,"type",T),!1):r.maxImageSize.value>0&&T.size>r.maxImageSize.value?((z=r.onValidationError)==null||z.call(r,"size",T),!1):!0},l=()=>{if(e.value)try{URL.revokeObjectURL(e.value)}catch{}e.value="",i.value=null,n.value="",s.value=!1,a=null},c=T=>{if(!T){i.value||l();return}if(n.value!==T){if(e.value&&e.value.startsWith("blob:"))try{URL.revokeObjectURL(e.value)}catch{}n.value=T,e.value=T,i.value=null}},d=T=>{var I,w;if(!o(T))return;l(),i.value=T,e.value=URL.createObjectURL(T),(I=r.onUploadStart)==null||I.call(r,T);const E=(w=r.uploadImage)==null?void 0:w.value;E&&(s.value=!0,a=Promise.resolve().then(()=>E(T)).then($=>{var q;$&&i.value===T&&(n.value=$,(q=r.onUploadSuccess)==null||q.call(r,$,T))}).catch($=>{var q;(q=r.onUploadError)==null||q.call(r,$,T)}).finally(()=>{s.value=!1}))},m=T=>{var I;const E=(I=T.clipboardData)==null?void 0:I.items;if(E)for(let w=0;w<E.length;w++){const $=E[w];if($.type.startsWith("image/")){const q=$.getAsFile();q&&d(q);break}}},g=T=>{T.preventDefault(),T.stopPropagation()},C=T=>{var I,w;T.preventDefault(),T.stopPropagation();const E=(w=(I=T.dataTransfer)==null?void 0:I.files)==null?void 0:w[0];E&&E.type.startsWith("image/")&&d(E)},b=T=>{var w;const E=T.target,I=(w=E.files)==null?void 0:w[0];I&&d(I),E&&(E.value="")},k=T=>{T&&(T.value="",T.click())},v=()=>a??Promise.resolve();return t.onBeforeUnmount(l),{previewUrl:e,file:i,uploadedUrl:n,isUploading:s,onPaste:m,onDrop:C,onDragOver:g,onFileChange:b,pickFile:k,handleImageFile:d,reset:l,setExternalUrl:c,awaitUpload:v}}const Yx={version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32"};function Kx(r,e){return t.openBlock(),t.createElementBlock("svg",Yx,[...e[0]||(e[0]=[t.createElementVNode("path",{opacity:"0.8",fill:"currentColor",d:"M13.215 0.524c-7.048 0-12.762 5.714-12.762 12.762s5.714 12.762 12.762 12.762c7.048 0 12.762-5.714 12.762-12.762s-5.714-12.762-12.762-12.762zM13.215 2.809c5.786 0 10.476 4.69 10.476 10.476s-4.69 10.476-10.476 10.476c-5.786 0-10.476-4.69-10.476-10.476s4.69-10.476 10.476-10.476z"},null,-1),t.createElementVNode("path",{opacity:"0.8",fill:"currentColor",d:"M23.33 23.22c0.446-0.447 1.169-0.448 1.616-0.002l4.771 4.759c0.447 0.446 0.448 1.169 0.002 1.616s-1.169 0.448-1.616 0.002l-4.771-4.759c-0.447-0.446-0.448-1.169-0.002-1.616z"},null,-1)])])}const cp={name:"components-icon-header-search",render:Kx},Qx={version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};function Jx(r,e){return t.openBlock(),t.createElementBlock("svg",Qx,[...e[0]||(e[0]=[t.createElementVNode("path",{opacity:"0.8",d:"M19.724 4.238c1.105 0 2 0.895 2 2v6.772c0 0.387-0.313 0.7-0.7 0.7s-0.7-0.313-0.7-0.7v-0.816l-3.544 3.84c-0.248 0.268-0.661 0.301-0.948 0.075l-4.13-3.256-3.925 3.843c-0.249 0.243-0.632 0.264-0.904 0.064l-0.086-0.075c-0.27-0.276-0.266-0.72 0.011-0.99l4.365-4.273c0.251-0.246 0.647-0.267 0.923-0.050l4.104 3.235 4.134-4.478v-3.892c0-0.331-0.269-0.6-0.6-0.6h-15.45c-0.331 0-0.6 0.269-0.6 0.6v11.501c0 0.331 0.269 0.6 0.6 0.6h9.781c0.387 0 0.7 0.313 0.7 0.7s-0.313 0.7-0.7 0.7h-9.781c-1.105 0-2-0.895-2-2v-11.501c0-1.105 0.895-2 2-2h15.45zM9.532 8.878c0-0.695-0.579-1.259-1.294-1.259s-1.294 0.564-1.294 1.259c0 0.695 0.579 1.259 1.294 1.259s1.294-0.564 1.294-1.259zM16.561 18.645c-0.195-0.195-0.195-0.512 0-0.707l2.090-2.090c0.010-0.011 0.020-0.021 0.030-0.030l0.001-0.001c0.195-0.195 0.512-0.195 0.707 0l2.121 2.121c0.195 0.195 0.195 0.512 0 0.707s-0.512 0.195-0.707 0l-1.284-1.284v3.57c0 0.276-0.224 0.5-0.5 0.5s-0.5-0.224-0.5-0.5v-3.538l-1.251 1.251c-0.174 0.174-0.443 0.193-0.638 0.058l-0.069-0.058z"},null,-1)])])}const Zx={name:"components-icon-image-upload",render:Jx},eC={version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};function tC(r,e){return t.openBlock(),t.createElementBlock("svg",eC,[...e[0]||(e[0]=[t.createElementVNode("path",{fill:"#6f6f75",d:"M22.5 12c0 5.799-4.701 10.5-10.5 10.5s-10.5-4.701-10.5-10.5c0-5.799 4.701-10.5 10.5-10.5s10.5 4.701 10.5 10.5z"},null,-1),t.createElementVNode("path",{fill:"#ffffff",d:"M15.3 7.631c0.274-0.197 0.657-0.172 0.903 0.074 0.273 0.273 0.273 0.717 0 0.99l-3.259 3.259 3.259 3.259c0.273 0.273 0.273 0.717 0 0.99-0.246 0.246-0.63 0.271-0.903 0.074l-0.087-0.074-3.259-3.259-3.259 3.259-0.087 0.074c-0.274 0.197-0.657 0.172-0.903-0.074-0.273-0.273-0.273-0.717 0-0.99l3.259-3.259-3.259-3.259c-0.273-0.273-0.273-0.717 0-0.99 0.246-0.246 0.63-0.271 0.903-0.074l0.087 0.074 3.259 3.259 3.259-3.259 0.087-0.074z"},null,-1)])])}const El={name:"components-icon-delete-hover",render:tC},iC={version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};function nC(r,e){return t.openBlock(),t.createElementBlock("svg",iC,[...e[0]||(e[0]=[t.createElementVNode("path",{fill:"currentColor",d:"M3.398 10.877c0-4.099 3.323-7.423 7.423-7.423s7.423 3.323 7.423 7.423c0 4.099-3.323 7.423-7.423 7.423s-7.423-3.323-7.423-7.423zM16.774 10.877c0-3.326-2.657-6.023-5.935-6.023s-5.935 2.696-5.935 6.023c0 3.326 2.657 6.023 5.935 6.023s5.935-2.696 5.935-6.023zM11.499 13.369c0 0.365-0.296 0.661-0.661 0.661s-0.661-0.296-0.661-0.661v-1.821h-1.775c-0.371 0-0.671-0.3-0.671-0.671s0.3-0.671 0.671-0.671h1.775v-1.821c0-0.365 0.296-0.661 0.661-0.661s0.661 0.296 0.661 0.661v1.821h1.775c0.371 0 0.671 0.3 0.671 0.671s-0.3 0.671-0.671 0.671h-1.775v1.821zM16.579 16.598c0.242-0.246 0.62-0.271 0.89-0.075l0.086 0.074 2.72 2.754c0.27 0.273 0.27 0.716 0.001 0.99-0.242 0.246-0.62 0.271-0.89 0.075l-0.086-0.074-2.72-2.754c-0.27-0.273-0.27-0.716-0.001-0.99z"},null,-1)])])}const oh={name:"components-icon-image-zoomin",render:nC},rC={class:"o-search-image-input-row"},sC={key:0,class:"o-search-image-input-thumb"},aC={key:0,class:"o-search-image-input-preview"},oC={class:"o-search-image-input-preview-wrapper"},lC={class:"o-search-image-input-preview-zoom"},uC=["accept"],cC=t.defineComponent({__name:"SearchImageInput",props:{modelValue:{default:""},imageUrl:{default:""},placeholder:{},imagePlaceholder:{},size:{default:"medium"},enableImageSearch:{type:Boolean,default:!1},uploadImage:{},maxImageSize:{default:10*1024*1024},imageUploadTooltip:{},expanded:{type:Boolean,default:!0},clearable:{type:Boolean,default:!0},showSuffix:{type:Boolean,default:!0},inlineThumbnail:{type:Boolean,default:!1},preview:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},allowedImageTypes:{default:()=>["image/jpeg","image/png","image/gif","image/webp"]}},emits:["update:modelValue","update:imageUrl","focus","blur","enter","clear","image-clear","image-upload-start","image-upload-success","image-upload-error","image-validate-error","preview-change"],setup(r,{expose:e,emit:i}){const n=r,s=i,{t:a}=Xe.useI18n(),o=t.computed(()=>n.uploadImage),l=t.computed(()=>n.maxImageSize),c=t.computed(()=>n.allowedImageTypes),d=t.computed(()=>(n.allowedImageTypes??[]).join(",")),m=Wx({uploadImage:o,maxImageSize:l,allowedImageTypes:c,onUploadStart:B=>s("image-upload-start",B),onUploadSuccess:(B,F)=>{s("update:imageUrl",B),s("image-upload-success",B,F)},onUploadError:(B,F)=>s("image-upload-error",B,F),onValidationError:(B,F)=>s("image-validate-error",B,F)}),g=t.ref(),C=t.ref(),b=t.ref(null),k=t.computed({get:()=>n.modelValue,set:B=>s("update:modelValue",B)});t.watch(()=>n.imageUrl,B=>{m.setExternalUrl(B)},{immediate:!0});const v=t.computed(()=>!!m.previewUrl.value),T=t.computed(()=>v.value?n.imagePlaceholder??a("search.extendedPlaceholder"):n.placeholder??a("search.placeholder")),E=()=>{k.value="",v.value&&I(),s("clear")},I=()=>{m.reset(),s("update:imageUrl",""),s("image-clear")},w=()=>{m.pickFile(g.value),t.nextTick(()=>{var B,F;return(F=(B=C.value)==null?void 0:B.focus)==null?void 0:F.call(B)})},$=B=>{m.onFileChange(B),t.nextTick(()=>{var F,P;return(P=(F=C.value)==null?void 0:F.focus)==null?void 0:P.call(F)})},q=B=>{n.enableImageSearch&&m.onPaste(B)},z=B=>{n.enableImageSearch&&m.onDragOver(B)},N=B=>{n.enableImageSearch&&m.onDrop(B)},U=B=>{s("preview-change",B)},x=t.computed(()=>!!k.value||v.value);return e({focus:()=>{var B,F;return(F=(B=C.value)==null?void 0:B.focus)==null?void 0:F.call(B)},blur:()=>{var B,F;return(F=(B=C.value)==null?void 0:B.blur)==null?void 0:F.call(B)},awaitUpload:()=>m.awaitUpload(),getUploadedUrl:()=>m.uploadedUrl.value,getIsUploading:()=>m.isUploading.value,resetImage:()=>{m.reset(),s("update:imageUrl","")}}),(B,F)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["o-search-image-input",{"has-image":v.value,"is-expanded":r.expanded&&v.value}]),onDragover:z,onDrop:N},[t.createElementVNode("div",rC,[t.createVNode(t.unref(V.OInput),{ref_key:"inputRef",ref:C,modelValue:k.value,"onUpdate:modelValue":F[3]||(F[3]=P=>k.value=P),placeholder:T.value,size:r.size,disabled:r.disabled,class:"o-search-image-input-input",onPressEnter:F[4]||(F[4]=P=>s("enter")),onFocus:F[5]||(F[5]=P=>s("focus",P)),onBlur:F[6]||(F[6]=P=>s("blur",P)),onPaste:q},t.createSlots({prefix:t.withCtx(()=>[t.renderSlot(B.$slots,"prefix",{},()=>[t.createVNode(t.unref(V.OIcon),{class:"o-search-image-input-icon"},{default:t.withCtx(()=>[t.createVNode(t.unref(cp))]),_:1})],!0),r.inlineThumbnail&&v.value?(t.openBlock(),t.createElementBlock("div",sC,[t.createVNode(t.unref(V.OFigure),{src:t.unref(m).previewUrl.value,alt:"",class:"o-search-image-input-thumb-figure"},null,8,["src"]),t.createElementVNode("div",{class:"o-search-image-input-thumb-zoom",onMousedown:F[0]||(F[0]=t.withModifiers(()=>{},["prevent"]))},[t.createVNode(t.unref(V.OIcon),{class:"o-search-image-input-thumb-zoom-icon"},{default:t.withCtx(()=>[t.createVNode(t.unref(oh))]),_:1})],32),t.createVNode(t.unref(V.OIcon),{class:"o-search-image-input-thumb-remove",onMousedown:F[1]||(F[1]=t.withModifiers(()=>{},["prevent"])),onClick:t.withModifiers(I,["stop"])},{default:t.withCtx(()=>[t.createVNode(t.unref(El))]),_:1})])):t.createCommentVNode("",!0)]),_:2},[r.showSuffix?{name:"suffix",fn:t.withCtx(()=>[t.renderSlot(B.$slots,"suffix",{hasValue:x.value},()=>[r.enableImageSearch?(t.openBlock(),t.createElementBlock("span",{key:0,ref_key:"uploadBtnRef",ref:b,class:"o-search-image-input-upload-btn"},[t.createVNode(t.unref(V.OIcon),{class:"o-search-image-input-icon upload",onClick:t.withModifiers(w,["stop"])},{default:t.withCtx(()=>[t.createVNode(t.unref(Zx))]),_:1})],512)):t.createCommentVNode("",!0),r.enableImageSearch&&b.value?(t.openBlock(),t.createBlock(t.unref(V.OPopover),{key:1,trigger:"hover",position:"bottom",target:b.value,"body-class":"o-search-image-input-tooltip"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(r.imageUploadTooltip??t.unref(a)("search.imageUploadTooltip")),1)]),_:1},8,["target"])):t.createCommentVNode("",!0),r.clearable&&x.value?(t.openBlock(),t.createBlock(t.unref(V.OIcon),{key:2,class:"o-search-image-input-icon close",onMousedown:F[2]||(F[2]=t.withModifiers(()=>{},["prevent"])),onClick:t.withModifiers(E,["stop"])},{default:t.withCtx(()=>[t.createVNode(t.unref(Dl))]),_:1})):t.createCommentVNode("",!0)],!0)]),key:"0"}:void 0]),1032,["modelValue","placeholder","size","disabled"])]),r.expanded&&v.value?(t.openBlock(),t.createElementBlock("div",aC,[t.renderSlot(B.$slots,"preview",{previewUrl:t.unref(m).previewUrl.value,remove:I},()=>[t.createElementVNode("div",oC,[t.createVNode(t.unref(V.OFigure),{src:t.unref(m).previewUrl.value,preview:r.preview,alt:"",class:"o-search-image-input-preview-figure",onPreview:U},null,8,["src","preview"]),t.createElementVNode("div",lC,[t.createVNode(t.unref(V.OIcon),{class:"o-search-image-input-preview-zoom-icon"},{default:t.withCtx(()=>[t.createVNode(t.unref(oh))]),_:1})]),t.createVNode(t.unref(V.OIcon),{class:"o-search-image-input-preview-remove",onClick:t.withModifiers(I,["stop"])},{default:t.withCtx(()=>[t.createVNode(t.unref(El))]),_:1})])],!0)])):t.createCommentVNode("",!0),r.enableImageSearch?(t.openBlock(),t.createElementBlock("input",{key:1,ref_key:"fileInputRef",ref:g,type:"file",accept:d.value,class:"o-search-image-input-file",onChange:$},null,40,uC)):t.createCommentVNode("",!0)],34))}}),dp=Xe._export_sfc(cC,[["__scopeId","data-v-f28dde35"]]),dC={version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};function hC(r,e){return t.openBlock(),t.createElementBlock("svg",dC,[...e[0]||(e[0]=[t.createStaticVNode('<path opacity="0.8" fill="currentColor" d="M5.616 4.34c0.368 0 0.674 0.265 0.738 0.615l0.012 0.135v14.968c0 0.213 0.148 0.391 0.347 0.438l0.103 0.012h10.719c0.213 0 0.391-0.148 0.438-0.347l0.012-0.103v-11.712c0-0.414 0.336-0.75 0.75-0.75 0.368 0 0.674 0.265 0.738 0.615l0.012 0.135v11.712c0 1.010-0.767 1.84-1.751 1.94l-0.199 0.010h-10.719c-1.010 0-1.84-0.767-1.94-1.751l-0.010-0.199v-14.968c0-0.414 0.336-0.75 0.75-0.75z"></path><path opacity="0.8" fill="currentColor" d="M20.19 4.34c0.414 0 0.75 0.336 0.75 0.75 0 0.368-0.265 0.674-0.615 0.738l-0.135 0.012h-16.333c-0.414 0-0.75-0.336-0.75-0.75 0-0.368 0.265-0.674 0.615-0.738l0.135-0.012h16.333z"></path><path opacity="0.8" fill="currentColor" d="M14.256 1.936c0.414 0 0.75 0.336 0.75 0.75 0 0.368-0.265 0.674-0.615 0.738l-0.135 0.012h-4.535c-0.414 0-0.75-0.336-0.75-0.75 0-0.368 0.265-0.674 0.615-0.738l0.135-0.012h4.535z"></path><path opacity="0.8" fill="currentColor" d="M10.096 9.419c0.368 0 0.674 0.265 0.738 0.615l0.012 0.135v6.484c0 0.414-0.336 0.75-0.75 0.75-0.368 0-0.674-0.265-0.738-0.615l-0.012-0.135v-6.484c0-0.414 0.336-0.75 0.75-0.75z"></path><path opacity="0.8" fill="currentColor" d="M14.596 9.419c0.368 0 0.674 0.265 0.738 0.615l0.012 0.135v6.484c0 0.414-0.336 0.75-0.75 0.75-0.368 0-0.674-0.265-0.738-0.615l-0.012-0.135v-6.484c0-0.414 0.336-0.75 0.75-0.75z"></path>',5)])])}const fC={name:"components-icon-delete",render:hC},pC={version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};function mC(r,e){return t.openBlock(),t.createElementBlock("svg",pC,[...e[0]||(e[0]=[t.createElementVNode("path",{opacity:"0.8",fill:"currentColor",d:"M17.947 4.273c-1.676-1.292-3.752-2.023-5.948-2.023-5.385 0-9.75 4.365-9.75 9.75s4.365 9.75 9.75 9.75c4.032 0 7.604-2.47 9.066-6.156 0.153-0.385-0.035-0.821-0.42-0.974s-0.821 0.036-0.974 0.42c-1.237 3.119-4.26 5.209-7.672 5.209-4.556 0-8.25-3.694-8.25-8.25s3.694-8.25 8.25-8.25c1.837 0 3.574 0.604 4.983 1.673l-1.305 1.556c-0.077 0.092-0.021 0.232 0.098 0.246l4.873 0.539c0.106 0.012 0.191-0.088 0.16-0.191l-1.377-4.706c-0.034-0.115-0.182-0.146-0.259-0.054l-1.226 1.461z"},null,-1)])])}const gC={name:"components-icon-refresh",render:mC},vC=/[.*+?^${}()|[\]\\]/g;function yC(r,e){const i=(e||"").trim();if(!i)return[{text:r,match:!1}];const n=i.replace(vC,"\\$&"),s=new RegExp(n,"gi"),a=[];let o=0,l;for(;(l=s.exec(r))!==null;){if(l.index===s.lastIndex){s.lastIndex++;continue}l.index>o&&a.push({text:r.slice(o,l.index),match:!1}),a.push({text:l[0],match:!0}),o=l.index+l[0].length}return o<r.length&&a.push({text:r.slice(o),match:!1}),a}const _C={class:"o-search-highlight-text"},bC=t.defineComponent({__name:"HighlightText",props:{text:{},keyword:{},enabled:{type:Boolean,default:!0}},setup(r){const e=r,i=t.computed(()=>!e.enabled||!e.keyword?[{text:e.text,match:!1}]:yC(e.text,e.keyword));return(n,s)=>(t.openBlock(),t.createElementBlock("span",_C,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.value,(a,o)=>(t.openBlock(),t.createElementBlock("span",{key:o,class:t.normalizeClass({"is-match":a.match})},t.toDisplayString(a.text),3))),128))]))}}),lh=Xe._export_sfc(bC,[["__scopeId","data-v-2a99e23c"]]),TC={class:"o-search-panel"},xC={key:0,class:"o-search-panel-section o-search-panel-onestep"},CC={class:"o-search-panel-section-title onestep"},SC=["onClick"],EC={key:0,class:"o-search-panel-onestep-tag"},kC={key:1,class:"o-search-panel-divider"},wC={key:2,class:"o-search-panel-section o-search-panel-suggest"},DC={class:"o-search-panel-section-title suggest"},VC=["onClick"],AC={key:1,class:"o-search-panel-no-data"},IC={key:3,class:"o-search-panel-section o-search-panel-recommend"},NC=["onClick"],PC={key:4,class:"o-search-panel-section o-search-panel-history"},OC={class:"o-search-panel-common-header"},BC={class:"o-search-panel-section-title"},LC=["onClick"],MC={class:"o-search-panel-history-row-text"},RC={key:1,class:"o-search-panel-history-list"},qC=["onClick"],FC={class:"o-search-panel-history-text"},UC={key:5,class:"o-search-panel-divider"},$C={key:6,class:"o-search-panel-section o-search-panel-hot"},zC={class:"o-search-panel-common-header"},HC={class:"o-search-panel-section-title"},XC={class:"o-search-panel-hot-list"},jC=["onClick"],GC=t.defineComponent({__name:"SearchPanel",props:{keyword:{default:""},onestepItems:{default:()=>[]},onestepTitle:{},suggestItems:{default:()=>[]},suggestTitle:{},recommendItems:{default:()=>[]},historyItems:{default:()=>[]},historyTitle:{},hotItems:{default:()=>[]},hotTitle:{},noDataText:{},highlightKeyword:{type:Boolean,default:!0},hideOnKeyword:{type:Boolean,default:!1},showSuggestEmpty:{type:Boolean,default:!1},isDark:{type:Boolean,default:!1},historyLayout:{default:"chips"}},emits:["onestep-click","suggest-click","recommend-click","history-click","hot-click","history-remove","history-clear","hot-refresh"],setup(r,{emit:e}){const i=r,n=e,{t:s}=Xe.useI18n(),a=t.computed(()=>{var b;return!!((b=i.keyword)!=null&&b.trim())}),o=t.computed(()=>a.value&&i.onestepItems.length>0),l=t.computed(()=>a.value&&(i.suggestItems.length>0||i.showSuggestEmpty)),c=t.computed(()=>!a.value&&i.recommendItems.length>0),d=t.computed(()=>(!i.hideOnKeyword||!a.value)&&i.historyItems.length>0),m=t.computed(()=>(!i.hideOnKeyword||!a.value)&&i.hotItems.length>0),g=t.computed(()=>o.value&&l.value),C=t.computed(()=>d.value&&m.value);return(b,k)=>(t.openBlock(),t.createElementBlock("div",TC,[o.value?(t.openBlock(),t.createElementBlock("div",xC,[t.renderSlot(b.$slots,"onestep-header",{items:r.onestepItems},()=>[t.createElementVNode("div",CC,t.toDisplayString(r.onestepTitle??t.unref(s)("search.onestep")),1)],!0),t.renderSlot(b.$slots,"onestep-content",{items:r.onestepItems,keyword:r.keyword},()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.onestepItems,v=>(t.openBlock(),t.createElementBlock("div",{key:v.key+(v.path??""),class:"o-search-panel-item o-search-panel-onestep-item",onClick:T=>n("onestep-click",v)},[t.createVNode(lh,{text:v.key,keyword:r.keyword,enabled:r.highlightKeyword},null,8,["text","keyword","enabled"]),v.type?(t.openBlock(),t.createElementBlock("span",EC,t.toDisplayString(v.type),1)):t.createCommentVNode("",!0)],8,SC))),128))],!0)])):t.createCommentVNode("",!0),g.value?(t.openBlock(),t.createElementBlock("div",kC)):t.createCommentVNode("",!0),l.value?(t.openBlock(),t.createElementBlock("div",wC,[t.renderSlot(b.$slots,"suggest-header",{items:r.suggestItems},()=>[t.createElementVNode("div",DC,t.toDisplayString(r.suggestTitle??t.unref(s)("search.suggest")),1)],!0),t.renderSlot(b.$slots,"suggest-content",{items:r.suggestItems,keyword:r.keyword},()=>[r.suggestItems.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(r.suggestItems,v=>(t.openBlock(),t.createElementBlock("div",{key:v.key,class:"o-search-panel-item",onClick:T=>n("suggest-click",v)},[t.createVNode(lh,{text:v.key,keyword:r.keyword,enabled:r.highlightKeyword},null,8,["text","keyword","enabled"])],8,VC))),128)):(t.openBlock(),t.createElementBlock("div",AC,t.toDisplayString(r.noDataText??t.unref(s)("search.noData")),1))],!0)])):t.createCommentVNode("",!0),c.value?(t.openBlock(),t.createElementBlock("div",IC,[t.renderSlot(b.$slots,"recommend-header",{items:r.recommendItems},void 0,!0),t.renderSlot(b.$slots,"recommend-content",{items:r.recommendItems},()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.recommendItems,v=>(t.openBlock(),t.createElementBlock("div",{key:v,class:"o-search-panel-recommend-item",onClick:T=>n("recommend-click",v)},t.toDisplayString(v),9,NC))),128))],!0)])):t.createCommentVNode("",!0),d.value?(t.openBlock(),t.createElementBlock("div",PC,[t.renderSlot(b.$slots,"history-header",{items:r.historyItems},()=>[t.createElementVNode("div",OC,[t.createElementVNode("span",BC,t.toDisplayString(r.historyTitle??t.unref(s)("search.history")),1),r.historyLayout!=="list"?(t.openBlock(),t.createBlock(t.unref(V.OIcon),{key:0,class:"o-search-panel-icon",onClick:k[0]||(k[0]=t.withModifiers(v=>n("history-clear"),["stop"]))},{default:t.withCtx(()=>[t.createVNode(t.unref(fC))]),_:1})):t.createCommentVNode("",!0)])],!0),t.renderSlot(b.$slots,"history-content",{items:r.historyItems},()=>[r.historyLayout==="list"?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(r.historyItems,v=>(t.openBlock(),t.createElementBlock("div",{key:v,class:"o-search-panel-history-row",onClick:T=>n("history-click",v)},[t.createElementVNode("span",MC,t.toDisplayString(v),1)],8,LC))),128)):(t.openBlock(),t.createElementBlock("div",RC,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.historyItems,v=>(t.openBlock(),t.createElementBlock("div",{key:v,class:t.normalizeClass(["o-search-panel-history-item",{"is-dark":r.isDark}]),onClick:T=>n("history-click",v)},[t.createElementVNode("span",FC,t.toDisplayString(v),1),t.createVNode(t.unref(V.OIcon),{class:"o-search-panel-history-remove",onClick:t.withModifiers(T=>n("history-remove",v),["stop"])},{default:t.withCtx(()=>[t.createVNode(t.unref(El))]),_:1},8,["onClick"])],10,qC))),128))]))],!0)])):t.createCommentVNode("",!0),C.value?(t.openBlock(),t.createElementBlock("div",UC)):t.createCommentVNode("",!0),m.value?(t.openBlock(),t.createElementBlock("div",$C,[t.renderSlot(b.$slots,"hot-header",{items:r.hotItems},()=>[t.createElementVNode("div",zC,[t.createElementVNode("div",HC,t.toDisplayString(r.hotTitle??t.unref(s)("search.hot")),1),t.createVNode(t.unref(V.OIcon),{class:"o-search-panel-icon",onClick:k[1]||(k[1]=t.withModifiers(v=>n("hot-refresh"),["stop"]))},{default:t.withCtx(()=>[t.createVNode(t.unref(gC))]),_:1})])],!0),t.renderSlot(b.$slots,"hot-content",{items:r.hotItems},()=>[t.createElementVNode("div",XC,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.hotItems,v=>(t.openBlock(),t.createElementBlock("div",{key:v,class:"o-search-panel-hot-item",onClick:T=>n("hot-click",v)},t.toDisplayString(v),9,jC))),128))])],!0)])):t.createCommentVNode("",!0)]))}}),hp=Xe._export_sfc(GC,[["__scopeId","data-v-5b9cbb86"]]);function fp(r){const{initial:e,storageKey:i,storeHistory:n,maxHistoryCount:s,onChange:a}=r,o=t.ref([...e.value]),l=()=>{if(!(!n.value||typeof localStorage>"u"))try{o.value.length?localStorage.setItem(i.value,JSON.stringify(o.value)):localStorage.removeItem(i.value)}catch{}},c=b=>{o.value=b,l(),a==null||a(o.value)},d=()=>{if(!(!n.value||typeof localStorage>"u"))try{const b=localStorage.getItem(i.value);if(!b)return;const k=JSON.parse(b);if(Array.isArray(k)&&k.length){const v=Array.from(new Set([...k,...o.value]));o.value=v.slice(0,s.value),a==null||a(o.value)}}catch{}},m=b=>{const k=b==null?void 0:b.trim();if(!k)return;const v=[k,...o.value.filter(T=>T!==k)];v.length>s.value&&(v.length=s.value),c(v)},g=b=>{c(o.value.filter(k=>k!==b))},C=()=>{c([])};return t.watch(e,b=>{b!==o.value&&(o.value=[...b])}),t.onMounted(d),{items:o,push:m,remove:g,clearAll:C}}const WC={version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"36",height:"32",viewBox:"0 0 36 32"};function YC(r,e){return t.openBlock(),t.createElementBlock("svg",WC,[...e[0]||(e[0]=[t.createElementVNode("path",{fill:"currentColor",d:"M5.886 19.111l10.672 10.677c0.46 0.524 0.44 1.322-0.060 1.822s-1.298 0.52-1.822 0.060l-0.064-0.060-12.498-12.498h3.772zM14.613 0.391c0.521-0.521 1.365-0.521 1.886 0 0.5 0.5 0.52 1.298 0.060 1.822l-0.060 0.064-12.391 12.391h29.67c0.71 0 1.291 0.555 1.331 1.255l0.002 0.078c0 0.71-0.555 1.291-1.255 1.331l-0.078 0.002h-31.816c-0.472 0-0.924-0.187-1.257-0.521-0.671-0.671-0.694-1.745-0.067-2.443l0.067-0.071 13.908-13.908z"},null,-1)])])}const KC={name:"components-icon-header-back",render:YC},QC={key:0,class:"o-header-search-drawer"},JC=t.defineComponent({__name:"OHeaderSearch",props:{modelValue:{default:""},placeholder:{},expandedPlaceholder:{},expandDirection:{default:"left"},clearable:{type:Boolean,default:!0},historyItems:{default:()=>[]},maxHistoryCount:{default:6},storeHistory:{type:Boolean,default:!1},historyTitle:{},storageKey:{default:"search-history"},hotItems:{default:()=>[]},hotTitle:{},recommendItems:{default:()=>[]},searchUrl:{},searchUrlOpenBlank:{type:Boolean,default:!0},searchTextMobile:{},imagePlaceholder:{},enableImageSearch:{type:Boolean,default:!1},imageUrl:{default:""},uploadImage:{},maxImageSize:{default:10*1024*1024},imageUploadTooltip:{},suggestItems:{default:()=>[]},onestepItems:{default:()=>[]},suggestTitle:{},onestepTitle:{},noDataText:{},highlightKeyword:{type:Boolean,default:!0},debounce:{default:300},autoSaveHistory:{type:Boolean,default:!0},showSuggestEmpty:{type:Boolean,default:!0},allowedImageTypes:{},mobile:{type:Boolean}},emits:["update:modelValue","update:historyItems","update:imageUrl","focus","blur","input","clear","search","recommend-click","onestep-click","history-click","hot-click","hot-refresh","delete-history","delete-history-item","image-upload-start","image-upload-success","image-upload-error","image-validate-error"],setup(r,{expose:e,emit:i}){const n=r,s=i,{lePadV:a}=Et.useScreen(),{t:o}=Xe.useI18n(),l=t.computed(()=>n.mobile===!0||a.value),c=t.ref(null),d=t.ref(),m=t.ref(!1),g=t.ref(!1),C=t.ref(""),b=t.computed(()=>!!n.imageUrl||g.value),k=t.computed({get:()=>n.modelValue,set:K=>s("update:modelValue",K)}),v=t.toRef(n,"historyItems"),T=t.toRef(n,"storageKey"),E=t.toRef(n,"storeHistory"),I=t.toRef(n,"maxHistoryCount"),w=fp({initial:v,storageKey:T,storeHistory:E,maxHistoryCount:I,onChange:K=>s("update:historyItems",K)}),$=t.computed(()=>n.imageUrl?n.imagePlaceholder??o("search.extendedPlaceholder"):m.value&&n.enableImageSearch?n.imagePlaceholder??o("search.imagePlaceholder"):m.value?n.expandedPlaceholder??o("search.expandedPlaceholder"):n.placeholder??o("search.placeholder")),q=fi.useDebounceFn(K=>s("input",K),()=>n.debounce);t.watch(k,K=>q(K)),fi.onClickOutside(c,()=>{l.value||N()});const z=()=>{m.value=!0},N=()=>{l.value||(m.value=!1)},U=()=>{z(),s("focus")},x=()=>{s("blur")},D=async K=>{var ge,Ne,Te,Oe,He,Ke,Be,Je;(Ne=(ge=d.value)==null?void 0:ge.getIsUploading)!=null&&Ne.call(ge)&&await((Oe=(Te=d.value).awaitUpload)==null?void 0:Oe.call(Te));const J=K!==void 0?K.trim():k.value.trim(),le=C.value||((Ke=(He=d.value)==null?void 0:He.getUploadedUrl)==null?void 0:Ke.call(He))||n.imageUrl;if(!(!J&&!le)&&(n.autoSaveHistory&&J&&w.push(J),s("search",{keyword:J,imageUrl:le||void 0}),(Je=(Be=d.value)==null?void 0:Be.blur)==null||Je.call(Be),m.value=!1,n.searchUrl)){const tt=new URLSearchParams;J&&tt.set("q",J),le&&tt.set("imageUrl",le);const $e=n.searchUrl.includes("?")?"&":"?",gt=`${n.searchUrl}${$e}${tt.toString()}`;typeof window<"u"&&window.open(gt,n.searchUrlOpenBlank?"_blank":"_self",n.searchUrlOpenBlank?"noopener,noreferrer":"")}},B=()=>{var K,J;k.value="",s("clear"),(J=(K=d.value)==null?void 0:K.focus)==null||J.call(K)},F=K=>{s("recommend-click",K),k.value=K.key,D(K.key??"")},P=K=>{s("recommend-click",K),D(K)},L=K=>{s("onestep-click",K),K.path&&typeof window<"u"&&window.open(K.path,"_blank","noopener,noreferrer")},R=K=>{s("history-click",K),D(K)},te=K=>{s("hot-click",K),D(K)},ee=K=>{w.remove(K),s("delete-history-item",K)},H=()=>{const K=[...w.items.value];w.clearAll(),s("delete-history",K)},X=()=>{k.value="",g.value=!1,s("update:imageUrl",""),m.value=!1},Z=K=>{g.value=!0,C.value="",s("image-upload-start",K)},se=(K,J)=>{C.value=K,s("update:imageUrl",K),s("image-upload-success",K,J)},Q=()=>{g.value=!1,C.value="",s("update:imageUrl","")},ie=t.computed(()=>!(!m.value||b.value));return e({focus:()=>{var K,J;return(J=(K=d.value)==null?void 0:K.focus)==null?void 0:J.call(K)},blur:()=>{var K,J;return(J=(K=d.value)==null?void 0:K.blur)==null?void 0:J.call(K)},open:z,close:N,search:D}),(K,J)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["o-header-search",{"is-mobile-mode":l.value}])},[t.createElementVNode("div",{ref_key:"wrapperRef",ref:c,class:t.normalizeClass(["o-header-search-pos",{"is-pc":!l.value,"is-mobile":l.value,"is-left":r.expandDirection==="left","is-right":r.expandDirection==="right","is-focus":m.value}])},[t.createElementVNode("div",{class:t.normalizeClass(["o-header-search-row",{"is-focus":m.value}])},[l.value&&m.value?(t.openBlock(),t.createBlock(t.unref(V.OIcon),{key:0,class:"o-header-search-back-icon",onClick:X},{default:t.withCtx(()=>[t.createVNode(t.unref(KC))]),_:1})):t.createCommentVNode("",!0),t.createVNode(dp,{ref_key:"inputRef",ref:d,modelValue:k.value,"onUpdate:modelValue":J[0]||(J[0]=le=>k.value=le),"image-url":r.imageUrl,placeholder:$.value,"enable-image-search":r.enableImageSearch,"upload-image":r.uploadImage,"max-image-size":r.maxImageSize,"image-upload-tooltip":r.imageUploadTooltip,clearable:r.clearable&&m.value,expanded:m.value&&b.value,"allowed-image-types":r.allowedImageTypes,size:"medium",class:t.normalizeClass(["o-header-search-input",{"is-collapsed":!m.value}]),"onUpdate:imageUrl":J[1]||(J[1]=le=>s("update:imageUrl",le)),onFocus:U,onBlur:x,onEnter:D,onClear:B,onImageClear:Q,onImageUploadStart:Z,onImageUploadSuccess:se,onImageUploadError:J[2]||(J[2]=(le,ge)=>s("image-upload-error",le,ge)),onImageValidateError:J[3]||(J[3]=(le,ge)=>s("image-validate-error",le,ge))},t.createSlots({prefix:t.withCtx(()=>[t.renderSlot(K.$slots,"input-prefix",{},void 0,!0)]),suffix:t.withCtx(le=>[t.renderSlot(K.$slots,"input-suffix",t.normalizeProps(t.guardReactiveProps(le)),void 0,!0)]),_:2},[K.$slots["image-preview"]?{name:"preview",fn:t.withCtx(le=>[t.renderSlot(K.$slots,"image-preview",t.normalizeProps(t.guardReactiveProps(le)),void 0,!0)]),key:"0"}:void 0]),1032,["modelValue","image-url","placeholder","enable-image-search","upload-image","max-image-size","image-upload-tooltip","clearable","expanded","allowed-image-types","class"]),l.value&&m.value?(t.openBlock(),t.createElementBlock("span",{key:1,class:"o-header-search-text",onClick:D},t.toDisplayString(r.searchTextMobile??t.unref(o)("search")),1)):t.createCommentVNode("",!0)],2),t.createVNode(t.Transition,{name:"o-header-search-drawer"},{default:t.withCtx(()=>[ie.value?(t.openBlock(),t.createElementBlock("div",QC,[t.renderSlot(K.$slots,"drawer",{recommendItems:r.recommendItems,historyItems:t.unref(w).items.value,hotItems:r.hotItems,suggestItems:r.suggestItems,onestepItems:r.onestepItems,keyword:r.modelValue},()=>[t.createVNode(hp,{keyword:r.modelValue,"onestep-items":r.onestepItems,"onestep-title":r.onestepTitle,"suggest-items":r.suggestItems,"suggest-title":r.suggestTitle,"recommend-items":r.recommendItems,"history-items":t.unref(w).items.value,"history-title":r.historyTitle,"hot-items":r.hotItems,"hot-title":r.hotTitle,"no-data-text":r.noDataText,"highlight-keyword":r.highlightKeyword,"hide-on-keyword":!0,"show-suggest-empty":r.showSuggestEmpty,onOnestepClick:L,onSuggestClick:F,onRecommendClick:P,onHistoryClick:R,onHistoryRemove:ee,onHistoryClear:H,onHotClick:te,onHotRefresh:J[4]||(J[4]=le=>s("hot-refresh"))},t.createSlots({_:2},[K.$slots["recommend-header"]?{name:"recommend-header",fn:t.withCtx(le=>[t.renderSlot(K.$slots,"recommend-header",t.normalizeProps(t.guardReactiveProps(le)),void 0,!0)]),key:"0"}:void 0,K.$slots["recommend-content"]?{name:"recommend-content",fn:t.withCtx(le=>[t.renderSlot(K.$slots,"recommend-content",t.normalizeProps(t.guardReactiveProps(le)),void 0,!0)]),key:"1"}:void 0,K.$slots["onestep-header"]?{name:"onestep-header",fn:t.withCtx(le=>[t.renderSlot(K.$slots,"onestep-header",t.normalizeProps(t.guardReactiveProps(le)),void 0,!0)]),key:"2"}:void 0,K.$slots["onestep-content"]?{name:"onestep-content",fn:t.withCtx(le=>[t.renderSlot(K.$slots,"onestep-content",t.normalizeProps(t.guardReactiveProps(le)),void 0,!0)]),key:"3"}:void 0,K.$slots["suggest-header"]?{name:"suggest-header",fn:t.withCtx(le=>[t.renderSlot(K.$slots,"suggest-header",t.normalizeProps(t.guardReactiveProps(le)),void 0,!0)]),key:"4"}:void 0,K.$slots["suggest-content"]?{name:"suggest-content",fn:t.withCtx(le=>[t.renderSlot(K.$slots,"suggest-content",t.normalizeProps(t.guardReactiveProps(le)),void 0,!0)]),key:"5"}:void 0,K.$slots["history-header"]?{name:"history-header",fn:t.withCtx(le=>[t.renderSlot(K.$slots,"history-header",t.normalizeProps(t.guardReactiveProps(le)),void 0,!0)]),key:"6"}:void 0,K.$slots["history-content"]?{name:"history-content",fn:t.withCtx(le=>[t.renderSlot(K.$slots,"history-content",t.normalizeProps(t.guardReactiveProps(le)),void 0,!0)]),key:"7"}:void 0,K.$slots["hot-header"]?{name:"hot-header",fn:t.withCtx(le=>[t.renderSlot(K.$slots,"hot-header",t.normalizeProps(t.guardReactiveProps(le)),void 0,!0)]),key:"8"}:void 0,K.$slots["hot-content"]?{name:"hot-content",fn:t.withCtx(le=>[t.renderSlot(K.$slots,"hot-content",t.normalizeProps(t.guardReactiveProps(le)),void 0,!0)]),key:"9"}:void 0]),1032,["keyword","onestep-items","onestep-title","suggest-items","suggest-title","recommend-items","history-items","history-title","hot-items","hot-title","no-data-text","highlight-keyword","show-suggest-empty"])],!0)])):t.createCommentVNode("",!0)]),_:3})],2),l.value?(t.openBlock(),t.createBlock(t.unref(V.OIcon),{key:0,class:"o-header-search-mobile-icon",onClick:z},{default:t.withCtx(()=>[t.createVNode(t.unref(cp))]),_:1})):t.createCommentVNode("",!0)],2))}}),uh=Xe._export_sfc(JC,[["__scopeId","data-v-a97b8e7c"]]),ZC=Object.assign(uh,{install(r){r.component("OHeaderSearch",uh)}}),e9={class:"source-code"},t9={class:"title"},i9={class:"info-wrap hover-icon-rotate"},n9={class:"title"},r9=t.defineComponent({__name:"OHeaderSourceCode",props:{title:{},options:{},href:{},target:{},icon:{},justify:{default:"center"}},setup(r){const e=s=>{window.open(s.href,s.target?s.target:"_blank")},i=t.ref(!1),n=s=>{i.value=s};return(s,a)=>(t.openBlock(),t.createElementBlock("div",e9,[r.href?(t.openBlock(),t.createElementBlock("div",{key:0,class:"info-wrap",onClick:a[0]||(a[0]=o=>e({href:r.href,target:r.target}))},[t.createElementVNode("span",t9,t.toDisplayString(r.title),1),r.icon?(t.openBlock(),t.createBlock(t.unref(V.OIcon),{key:0},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(r.icon),{class:"icon"}))]),_:1})):t.createCommentVNode("",!0)])):(t.openBlock(),t.createBlock(t.unref(V.ODropdown),{key:1,trigger:"hover",optionPosition:"bottom","option-wrap-class":"dropdown",class:t.normalizeClass({"dropdown-active":i.value}),onVisibleChange:n},{dropdown:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.options,o=>(t.openBlock(),t.createBlock(t.unref(V.ODropdownItem),{onClick:l=>e(o),key:o.href,class:"list",style:t.normalizeStyle({"--dropdown-item-justify":r.justify})},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(o.label)+" ",1),o.icon?(t.openBlock(),t.createBlock(t.unref(V.OIcon),{key:0},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(o.icon),{class:"icon"}))]),_:2},1024)):t.createCommentVNode("",!0)]),_:2},1032,["onClick","style"]))),128))]),default:t.withCtx(()=>[t.createElementVNode("div",i9,[t.createElementVNode("span",n9,t.toDisplayString(r.title),1),t.createVNode(t.unref(V.OIcon),{class:"icon"},{default:t.withCtx(()=>[t.createVNode(t.unref(wl))]),_:1})])]),_:1},8,["class"]))]))}}),ch=Xe._export_sfc(r9,[["__scopeId","data-v-0c07bf67"]]),s9=Object.assign(ch,{install(r){r.component("OHeaderSourceCode",ch)}}),a9={version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};function o9(r,e){return t.openBlock(),t.createElementBlock("svg",a9,[...e[0]||(e[0]=[t.createElementVNode("path",{opacity:"0.8",fill:"currentColor",d:"M12 1.992c0.387 0 0.7 0.313 0.7 0.7v1.2c0 0.387-0.313 0.7-0.7 0.7s-0.7-0.313-0.7-0.7v-1.2c0-0.387 0.313-0.7 0.7-0.7zM6.769 6.747c-0.273 0.273-0.717 0.273-0.99 0l-0.849-0.849c-0.137-0.137-0.205-0.316-0.205-0.495s0.068-0.358 0.205-0.495c0.273-0.273 0.717-0.273 0.99 0l0.849 0.849c0.136 0.137 0.205 0.316 0.205 0.495s-0.068 0.358-0.205 0.495zM18.192 6.747c-0.273 0.273-0.717 0.273-0.99 0-0.137-0.137-0.205-0.316-0.205-0.495s0.068-0.358 0.205-0.495l0.849-0.849c0.273-0.273 0.717-0.273 0.99 0 0.137 0.137 0.205 0.316 0.205 0.495s-0.068 0.358-0.205 0.495l-0.849 0.849zM5.3 12c0-3.7 3-6.7 6.7-6.7s6.7 3 6.7 6.7-3 6.7-6.7 6.7c-3.7 0-6.7-3-6.7-6.7zM17.3 12c0-2.927-2.373-5.3-5.3-5.3s-5.3 2.373-5.3 5.3c0 2.927 2.373 5.3 5.3 5.3s5.3-2.373 5.3-5.3zM4.594 11.969c0 0.387-0.313 0.7-0.7 0.7h-1.2c-0.387 0-0.7-0.313-0.7-0.7s0.313-0.7 0.7-0.7h1.2c0.386 0 0.7 0.313 0.7 0.7zM21.977 11.999c0 0.387-0.314 0.7-0.7 0.7h-1.2c-0.387 0-0.7-0.313-0.7-0.7s0.313-0.7 0.7-0.7h1.2c0.387 0 0.7 0.313 0.7 0.7zM5.921 19.060c-0.273 0.273-0.717 0.273-0.99 0-0.137-0.137-0.205-0.316-0.205-0.495s0.068-0.358 0.205-0.495l0.849-0.849c0.273-0.273 0.717-0.273 0.99 0 0.137 0.137 0.205 0.316 0.205 0.495s-0.068 0.358-0.205 0.495l-0.849 0.849zM19.041 19.060c-0.273 0.273-0.717 0.273-0.99 0l-0.849-0.849c-0.137-0.137-0.205-0.316-0.205-0.495s0.068-0.358 0.205-0.495c0.273-0.273 0.717-0.273 0.99 0l0.849 0.849c0.137 0.137 0.205 0.316 0.205 0.495s-0.068 0.358-0.205 0.495zM11.971 19.376c0.387 0 0.7 0.313 0.7 0.7v1.2c0 0.387-0.313 0.7-0.7 0.7s-0.7-0.313-0.7-0.7v-1.2c0-0.387 0.313-0.7 0.7-0.7z"},null,-1)])])}const l9={name:"components-icon-sun",render:o9},u9={version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"};function c9(r,e){return t.openBlock(),t.createElementBlock("svg",u9,[...e[0]||(e[0]=[t.createElementVNode("path",{opacity:"0.8",fill:"currentColor",d:"M12 2.3c5.357 0 9.7 4.343 9.7 9.7s-4.343 9.7-9.7 9.7c-4.651 0-8.622-3.298-9.515-7.806-0.101-0.509 0.369-0.948 0.87-0.812 0.531 0.144 1.082 0.218 1.645 0.218 3.479 0 6.3-2.82 6.3-6.3 0-1.276-0.379-2.494-1.079-3.527-0.291-0.43-0.029-1.016 0.486-1.086 0.425-0.057 0.857-0.086 1.293-0.086zM12 3.7l-0.042 0.001 0.058 0.121c0.402 0.887 0.634 1.85 0.677 2.845l0.007 0.333c0 4.253-3.447 7.7-7.7 7.7-0.229 0-0.457-0.010-0.682-0.030l-0.186-0.021 0.076 0.218c1.147 3.123 4.102 5.321 7.528 5.429l0.264 0.004c4.584 0 8.3-3.716 8.3-8.3s-3.716-8.3-8.3-8.3z"},null,-1)])])}const d9={name:"components-icon-moon",render:c9},h9={class:"o-theme-switcher"},f9={key:1,class:"o-theme-switcher-mobile"},p9=t.defineComponent({__name:"OHeaderTheme",props:{theme:{default:"light"},type:{default:"auto"},lightValue:{default:"light"},darkValue:{default:"dark"},disabled:{type:Boolean,default:!1}},emits:["update:theme","change"],setup(r,{emit:e}){const i=r,n=e,{gtPhone:s}=Et.useScreen(),a=t.computed({get(){return i.theme},set(c){n("update:theme",c),n("change",c)}}),o=t.computed(()=>i.type==="common"||i.type==="auto"&&s.value),l=()=>{i.disabled||(a.value=a.value===i.lightValue?i.darkValue:i.lightValue)};return(c,d)=>(t.openBlock(),t.createElementBlock("div",h9,[o.value?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["o-theme-switcher-common",{disabled:r.disabled}]),onClick:l},[t.createVNode(t.unref(V.OIcon),{class:"o-theme-icon"},{default:t.withCtx(()=>[a.value===r.lightValue?(t.openBlock(),t.createBlock(t.unref(d9),{key:0})):(t.openBlock(),t.createBlock(t.unref(l9),{key:1}))]),_:1})],2)):(t.openBlock(),t.createElementBlock("div",f9,[t.createVNode(t.unref(V.OSwitch),{modelValue:a.value,"onUpdate:modelValue":d[0]||(d[0]=m=>a.value=m),class:"o-theme-switch","checked-value":r.lightValue,"unchecked-value":r.darkValue,disabled:r.disabled},{inactive:t.withCtx(()=>[t.createVNode(t.unref(V.OIconMoon))]),active:t.withCtx(()=>[t.createVNode(t.unref(V.OIconSun))]),off:t.withCtx(()=>[t.createVNode(t.unref(V.OIconSun))]),on:t.withCtx(()=>[t.createVNode(t.unref(V.OIconMoon))]),_:1},8,["modelValue","checked-value","unchecked-value","disabled"])]))]))}}),dh=Xe._export_sfc(p9,[["__scopeId","data-v-6209ad5c"]]),m9=Object.assign(dh,{install(r){r.component("OHeaderTheme",dh)}}),g9=["src"],v9=t.defineComponent({__name:"AppAvatar",props:{avatar:{type:String,default:""},name:{type:String,default:"",required:!0},size:{type:String,default:"medium"},customSize:{type:Number,default:0},variant:{type:String,default:"round"}},setup(r){const e=r,i=["#058EF0","#FA7305","#03B5A5"],n=t.computed(()=>{var a;return(a=e.name)==null?void 0:a.charAt(0).toUpperCase()}),s=t.computed(()=>{var l;const a={"background-color":"",width:"32px",height:"32px","font-size":"20px"};a["background-color"]=e.name?i[((l=e.name)==null?void 0:l.length)%i.length]:"transparent";let o=0;return e.customSize?o=Number(e.customSize):o={mini:16,small:24,medium:40,large:64}[e.size],a.height=`${o}px`,a.width=`${o}px`,a["font-size"]=`${o/2}px`,a});return(a,o)=>r.avatar&&!r.avatar.includes("gitcode")?(t.openBlock(),t.createElementBlock("img",{key:0,src:r.avatar,class:t.normalizeClass(["img-avatar",r.variant]),style:t.normalizeStyle(s.value),alt:""},null,14,g9)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["word-avatar",r.variant]),style:t.normalizeStyle(s.value)},t.toDisplayString(n.value),7))}}),y9=Xe._export_sfc(v9,[["__scopeId","data-v-340348ce"]]),_9={version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32"};function b9(r,e){return t.openBlock(),t.createElementBlock("svg",_9,[...e[0]||(e[0]=[t.createElementVNode("path",{opacity:"0.8",fill:"#000",d:"M9.412 10.332c0 2.188 1.066 4.127 2.708 5.326-4.858 1.582-8.364 6.052-8.364 11.328 0 0.515 0.418 0.933 0.933 0.933s0.933-0.418 0.933-0.933c0-5.465 4.487-9.922 10.092-10.070 0.095 0.004 0.191 0.006 0.288 0.006 3.639 0 6.59-2.95 6.59-6.59s-2.951-6.59-6.59-6.59-6.59 2.95-6.59 6.59zM16.088 15.049c-0.028-0.003-0.057-0.004-0.087-0.004-0.061 0-0.122 0-0.183 0.001-2.524-0.096-4.541-2.172-4.541-4.72 0-2.608 2.115-4.723 4.723-4.723s4.723 2.115 4.723 4.723c0 2.579-2.067 4.676-4.635 4.722zM21.784 16.465c3.945 2.064 6.463 6.077 6.463 10.528 0 0.515-0.418 0.933-0.933 0.933s-0.933-0.418-0.933-0.933c0-3.744-2.123-7.127-5.462-8.874-0.457-0.239-0.633-0.803-0.394-1.26s0.803-0.633 1.26-0.394z"},null,-1)])])}const T9={name:"components-icon-avatar-line",render:b9},x9={class:"header-user"},C9={key:0,class:"user-info"},S9={class:"info-wrap hover-icon-rotate"},E9={class:"user-account"},k9={key:1},w9=t.defineComponent({__name:"OHeaderUser",props:{token:{default:void 0},lang:{default:void 0},noticeTotal:{default:void 0},userInfo:{default:void 0},options:{default:void 0},customSize:{default:void 0}},emits:["login","logout"],setup(r,{emit:e}){const{lePadV:i}=Et.useScreen(),n=e,s=()=>{n("login")},a=o=>{o!=null&&o.logout?n("logout"):window.open(o.url,o.target)};return(o,l)=>(t.openBlock(),t.createElementBlock("div",x9,[r.token?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(t.unref(V.OIcon),{key:0,onClick:s,class:"avatar-icon"},{default:t.withCtx(()=>[t.createVNode(t.unref(T9))]),_:1})),t.createVNode(t.Transition,{name:"header-user-zoom-in"},{default:t.withCtx(()=>[r.token?(t.openBlock(),t.createElementBlock("div",C9,[t.createVNode(t.unref(V.ODropdown),{trigger:t.unref(i)?"click":"hover",optionWidthMode:"auto",optionPosition:t.unref(i)?"br":"bottom","option-wrap-class":`user-dropdown ${r.lang==="en"?"is-en":""}`},{dropdown:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.options,c=>(t.openBlock(),t.createBlock(t.unref(V.ODropdownItem),{key:c.label,onClick:d=>a(c)},{default:t.withCtx(()=>[c!=null&&c.total?(t.openBlock(),t.createBlock(t.unref(V.OBadge),{key:0,value:c.total,color:"danger",class:t.normalizeClass(["header-message message",{"notice-not":!c.total}])},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(c.label),1)]),_:2},1032,["value","class"])):(t.openBlock(),t.createElementBlock("span",k9,t.toDisplayString(c.label),1))]),_:2},1032,["onClick"]))),128))]),default:t.withCtx(()=>[t.createElementVNode("div",S9,[t.createVNode(t.unref(V.OBadge),{value:r.noticeTotal,dot:!0,color:"danger",class:t.normalizeClass(["header-message user-avatar",{"notice-not":!r.noticeTotal}])},{default:t.withCtx(()=>[t.createVNode(y9,{avatar:r.userInfo.photo,name:r.userInfo.username,"custom-size":r.customSize},null,8,["avatar","name","custom-size"])]),_:1},8,["value","class"]),t.createElementVNode("p",E9,t.toDisplayString(r.userInfo.username),1),t.createVNode(t.unref(V.OIcon),{class:"icon"},{default:t.withCtx(()=>[t.createVNode(t.unref(wl))]),_:1})])]),_:1},8,["trigger","optionPosition","option-wrap-class"])])):t.createCommentVNode("",!0)]),_:1})]))}}),hh=Xe._export_sfc(w9,[["__scopeId","data-v-20ce0307"]]),D9=Object.assign(hh,{install(r){r.component("OHeaderUser",hh)}}),V9={class:"o-search-input-box"},A9={key:0,class:"o-search-input-dropdown"},I9={key:0,class:"o-search-input-suggest-list-row"},N9={class:"o-search-input-suggest-list-label"},P9={class:"o-search-input-suggest-list"},O9=["onClick"],B9={key:0},L9=t.defineComponent({__name:"OSearchInput",props:{modelValue:{default:""},imageUrl:{default:""},size:{default:"large"},placeholder:{},imagePlaceholder:{},enableImageSearch:{type:Boolean,default:!1},uploadImage:{},maxImageSize:{default:10*1024*1024},imageUploadTooltip:{},allowedImageTypes:{},suggestItems:{default:()=>[]},onestepItems:{default:()=>[]},suggestTitle:{},onestepTitle:{},noDataText:{},showSuggestEmpty:{type:Boolean,default:!0},highlightKeyword:{type:Boolean,default:!0},debounce:{default:300},enableHistory:{type:Boolean,default:!0},historyItems:{default:()=>[]},maxHistoryCount:{default:6},storeHistory:{type:Boolean,default:!1},storageKey:{default:"search-history"},historyTitle:{},autoSaveHistory:{type:Boolean,default:!0},hotItems:{default:()=>[]},hotTitle:{},suggestList:{default:()=>[]},suggestListLabel:{},clearable:{type:Boolean,default:!0},closeOnSearch:{type:Boolean,default:!0},closeOnClickOutside:{type:Boolean,default:!0},openOnFocus:{type:Boolean,default:!0},alwaysInlineThumbnail:{type:Boolean}},emits:["update:modelValue","update:imageUrl","update:historyItems","focus","blur","input","clear","search","recommend-click","onestep-click","history-click","hot-click","suggest-list-click","delete-history","delete-history-item","image-upload-start","image-upload-success","image-upload-error","image-validate-error"],setup(r,{expose:e,emit:i}){const n=r,s=i,{t:a}=Xe.useI18n();function o(Q){const ie=[],K=/<em>(.*?)<\/em>/g;let J=0,le;for(;(le=K.exec(Q))!==null;)le.index>J&&ie.push({text:Q.slice(J,le.index),em:!1}),ie.push({text:le[1],em:!0}),J=le.index+le[0].length;return J<Q.length&&ie.push({text:Q.slice(J),em:!1}),ie}const l=t.ref(),c=t.ref(null),d=t.computed({get:()=>n.modelValue,set:Q=>s("update:modelValue",Q)}),m=t.ref(!1),g=t.ref(!1),C=t.ref(!1),b=t.ref(!1),k=t.computed(()=>{if(!m.value||n.imageUrl||b.value)return!1;const Q=!!d.value&&(n.suggestItems.length>0||n.onestepItems.length>0||n.showSuggestEmpty),ie=n.enableHistory&&w.items.value.length>0&&!d.value,K=n.hotItems.length>0&&!d.value;return!!(Q||n.openOnFocus&&(ie||K))}),v=t.toRef(n,"historyItems"),T=t.toRef(n,"storageKey"),E=t.toRef(n,"storeHistory"),I=t.toRef(n,"maxHistoryCount"),w=fp({initial:v,storageKey:T,storeHistory:E,maxHistoryCount:I,onChange:Q=>s("update:historyItems",Q)});let $=!1;const q=fi.useDebounceFn(Q=>{if($){$=!1;return}s("input",Q)},()=>n.debounce);t.watch(d,Q=>{q(Q)}),fi.onClickOutside(c,()=>{n.closeOnClickOutside&&(g.value||C.value||(m.value=!1))});const z=()=>{m.value=!0,s("focus")},N=()=>{s("blur")},U=async Q=>{var J,le,ge,Ne,Te,Oe;(le=(J=l.value)==null?void 0:J.getIsUploading)!=null&&le.call(J)&&await((Ne=(ge=l.value).awaitUpload)==null?void 0:Ne.call(ge));const ie=Q!==void 0?Q.trim():d.value.trim(),K=((Oe=(Te=l.value)==null?void 0:Te.getUploadedUrl)==null?void 0:Oe.call(Te))||n.imageUrl;!ie&&!K||(n.autoSaveHistory&&ie&&w.push(ie),n.closeOnSearch&&(m.value=!1),s("search",{keyword:ie,imageUrl:K||void 0}))},x=()=>{d.value="",s("clear")},D=Q=>{s("recommend-click",Q),$=!0,d.value=Q.key,U(Q.key??"")},B=Q=>{if(s("onestep-click",Q),Q.path){const ie=Q.path;typeof window<"u"&&window.open(ie,"_blank","noopener,noreferrer")}},F=Q=>{s("history-click",Q),U(Q)},P=Q=>{s("hot-click",Q),U(Q)},L=Q=>{w.remove(Q),s("delete-history-item",Q)},R=()=>{const Q=[...w.items.value];w.clearAll(),s("delete-history",Q)},te=Q=>{const ie=Q.replace(/<[^>]+>/g,"");s("suggest-list-click",ie),$=!0,d.value=ie,U(ie)},ee=Q=>{g.value=Q,Q||(C.value=!0,setTimeout(()=>{C.value=!1},100))},H=t.computed(()=>!!n.imageUrl&&(n.alwaysInlineThumbnail||!m.value)),X=Q=>{b.value=!0,s("image-upload-start",Q)},Z=(Q,ie)=>{b.value=!1,s("image-upload-success",Q,ie)},se=()=>{b.value=!1,s("update:imageUrl","")};return e({focus:()=>{var Q,ie;return(ie=(Q=l.value)==null?void 0:Q.focus)==null?void 0:ie.call(Q)},blur:()=>{var Q,ie;return(ie=(Q=l.value)==null?void 0:Q.blur)==null?void 0:ie.call(Q)},search:U,saveHistory:Q=>w.push(Q??d.value)}),(Q,ie)=>{var K;return t.openBlock(),t.createElementBlock("div",{ref_key:"wrapperRef",ref:c,class:t.normalizeClass(["o-search-input",{"is-focus":m.value}])},[t.createElementVNode("div",V9,[t.createVNode(dp,{ref_key:"inputRef",ref:l,modelValue:d.value,"onUpdate:modelValue":ie[0]||(ie[0]=J=>d.value=J),"image-url":r.imageUrl,placeholder:r.placeholder,"image-placeholder":r.imagePlaceholder,size:r.size,"enable-image-search":r.enableImageSearch,"upload-image":r.uploadImage,"max-image-size":r.maxImageSize,"image-upload-tooltip":r.imageUploadTooltip,"allowed-image-types":r.allowedImageTypes,expanded:m.value&&!n.alwaysInlineThumbnail,"inline-thumbnail":H.value,clearable:r.clearable,class:"o-search-input-field","onUpdate:imageUrl":ie[1]||(ie[1]=J=>s("update:imageUrl",J)),onFocus:z,onBlur:N,onEnter:U,onClear:x,onImageClear:se,onImageUploadStart:X,onImageUploadSuccess:Z,onImageUploadError:ie[2]||(ie[2]=(J,le)=>s("image-upload-error",J,le)),onImageValidateError:ie[3]||(ie[3]=(J,le)=>s("image-validate-error",J,le)),onPreviewChange:ee},t.createSlots({prefix:t.withCtx(()=>[t.renderSlot(Q.$slots,"input-prefix",{},void 0,!0)]),suffix:t.withCtx(J=>[t.renderSlot(Q.$slots,"input-suffix",t.normalizeProps(t.guardReactiveProps(J)),void 0,!0)]),_:2},[Q.$slots["image-preview"]?{name:"preview",fn:t.withCtx(J=>[t.renderSlot(Q.$slots,"image-preview",t.normalizeProps(t.guardReactiveProps(J)),void 0,!0)]),key:"0"}:void 0]),1032,["modelValue","image-url","placeholder","image-placeholder","size","enable-image-search","upload-image","max-image-size","image-upload-tooltip","allowed-image-types","expanded","inline-thumbnail","clearable"]),t.createVNode(t.Transition,{name:"o-search-input-dropdown"},{default:t.withCtx(()=>[k.value?(t.openBlock(),t.createElementBlock("div",A9,[t.renderSlot(Q.$slots,"dropdown",{keyword:r.modelValue},()=>[t.createVNode(hp,{keyword:r.modelValue,"onestep-items":r.onestepItems,"onestep-title":r.onestepTitle,"suggest-items":r.suggestItems,"suggest-title":r.suggestTitle,"history-items":r.enableHistory?t.unref(w).items.value:[],"history-title":r.historyTitle,"hot-items":r.hotItems,"hot-title":r.hotTitle,"no-data-text":r.noDataText,"highlight-keyword":r.highlightKeyword,"hide-on-keyword":!0,"show-suggest-empty":r.showSuggestEmpty,"history-layout":"list",onOnestepClick:B,onSuggestClick:D,onHistoryClick:F,onHistoryRemove:L,onHistoryClear:R,onHotClick:P},t.createSlots({_:2},[Q.$slots["onestep-header"]?{name:"onestep-header",fn:t.withCtx(J=>[t.renderSlot(Q.$slots,"onestep-header",t.normalizeProps(t.guardReactiveProps(J)),void 0,!0)]),key:"0"}:void 0,Q.$slots["onestep-content"]?{name:"onestep-content",fn:t.withCtx(J=>[t.renderSlot(Q.$slots,"onestep-content",t.normalizeProps(t.guardReactiveProps(J)),void 0,!0)]),key:"1"}:void 0,Q.$slots["suggest-header"]?{name:"suggest-header",fn:t.withCtx(J=>[t.renderSlot(Q.$slots,"suggest-header",t.normalizeProps(t.guardReactiveProps(J)),void 0,!0)]),key:"2"}:void 0,Q.$slots["suggest-content"]?{name:"suggest-content",fn:t.withCtx(J=>[t.renderSlot(Q.$slots,"suggest-content",t.normalizeProps(t.guardReactiveProps(J)),void 0,!0)]),key:"3"}:void 0,Q.$slots["history-header"]?{name:"history-header",fn:t.withCtx(J=>[t.renderSlot(Q.$slots,"history-header",t.normalizeProps(t.guardReactiveProps(J)),void 0,!0)]),key:"4"}:void 0,Q.$slots["history-content"]?{name:"history-content",fn:t.withCtx(J=>[t.renderSlot(Q.$slots,"history-content",t.normalizeProps(t.guardReactiveProps(J)),void 0,!0)]),key:"5"}:void 0]),1032,["keyword","onestep-items","onestep-title","suggest-items","suggest-title","history-items","history-title","hot-items","hot-title","no-data-text","highlight-keyword","show-suggest-empty"])],!0)])):t.createCommentVNode("",!0)]),_:3})]),(K=r.suggestList)!=null&&K.length?(t.openBlock(),t.createElementBlock("div",I9,[t.renderSlot(Q.$slots,"suggest-list",{items:r.suggestList},()=>[t.createElementVNode("span",N9,t.toDisplayString(r.suggestListLabel??t.unref(a)("search.suggestListLabel")),1),t.createElementVNode("ul",P9,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.suggestList,(J,le)=>(t.openBlock(),t.createElementBlock("li",{key:J+le,class:"o-search-input-suggest-list-item",onClick:ge=>te(J)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o(J),ge=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:ge.text+String(ge.em)},[ge.em?(t.openBlock(),t.createElementBlock("em",B9,t.toDisplayString(ge.text),1)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(ge.text),1)],64))],64))),128))],8,O9))),128))])],!0)])):t.createCommentVNode("",!0)],2)}}}),fh=Xe._export_sfc(L9,[["__scopeId","data-v-18e8aec0"]]),M9=Object.assign(fh,{install(r){r.component("OSearchInput",fh)}}),R9={class:"section-wrapper"},q9={key:1,class:"section-title"},F9={key:2,class:"section-subtitle"},U9={key:1,class:"section-body"},$9={key:2,class:"section-footer"},z9=t.defineComponent({__name:"OSection",props:{title:{default:void 0},subtitle:{default:void 0},full:{type:Boolean,default:!1},headerJustifyCenter:{type:Boolean,default:!0},footer:{default:void 0},footerHref:{default:void 0}},setup(r){const e=r;return(i,n)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["app-section",{"is-full":e.full}])},[t.createElementVNode("div",R9,[t.renderSlot(i.$slots,"main",{},()=>[i.$slots.header||e.title||e.subtitle?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["section-header",{"is-left":!e.headerJustifyCenter}])},[t.renderSlot(i.$slots,"header",{},()=>[t.unref(V.isArray)(e.title)?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.title,s=>(t.openBlock(),t.createElementBlock("h2",{key:s,class:"section-title"},t.toDisplayString(s),1))),128)):i.$slots.title||e.title?(t.openBlock(),t.createElementBlock("h2",q9,[t.renderSlot(i.$slots,"title",{},()=>[t.createTextVNode(t.toDisplayString(e.title),1)],!0)])):t.createCommentVNode("",!0),i.$slots.subtitle||e.subtitle?(t.openBlock(),t.createElementBlock("p",F9,[t.renderSlot(i.$slots,"subtitle",{},()=>[t.createTextVNode(t.toDisplayString(e.subtitle),1)],!0)])):t.createCommentVNode("",!0)],!0)],2)):t.createCommentVNode("",!0),i.$slots.default?(t.openBlock(),t.createElementBlock("div",U9,[t.renderSlot(i.$slots,"default",{},void 0,!0)])):t.createCommentVNode("",!0),i.$slots.footer||e.footer?(t.openBlock(),t.createElementBlock("div",$9,[t.renderSlot(i.$slots,"footer",{},()=>[t.createVNode(t.unref(V.OLink),{href:e.footerHref,target:"_blank"},{suffix:t.withCtx(()=>[t.createVNode(t.unref(V.OIcon),{class:"footer-icon"},{default:t.withCtx(()=>[t.createVNode(t.unref(Xr))]),_:1})]),default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.footer)+" ",1)]),_:1},8,["href"])],!0)])):t.createCommentVNode("",!0)],!0)])],2))}}),ph=Xe._export_sfc(z9,[["__scopeId","data-v-dae37748"]]),H9=Object.assign(ph,{install(r){r.component("OSection",ph)}});exports.OElCookieNotice=Xe.OElCookieNotice;exports.CalendarDataType=Ie;exports.EventsStatusT=Ji;exports.MeetingGroupType=_i;exports.NavType=Zi;exports.OActivityApproval=w8;exports.OActivityForm=k8;exports.OActivityMyCalendar=up;exports.OBanner=R8;exports.OBannerContent=q8;exports.OCookieNotice=v7;exports.OEventsApply=k6;exports.OEventsCalendar=S6;exports.OEventsList=E6;exports.OFooter=v5;exports.OHeader=qx;exports.OHeaderLanguageSwitcher=Gx;exports.OHeaderMobile=Fx;exports.OHeaderSearch=ZC;exports.OHeaderSourceCode=s9;exports.OHeaderTheme=m9;exports.OHeaderUser=D9;exports.OMeetingCalendar=M4;exports.OMeetingForm=R4;exports.OMeetingMyCalendar=U4;exports.OMeetingPlayback=q4;exports.OMeetingSigCalendar=F4;exports.OPlusConfigProvider=$8;exports.OSearchInput=M9;exports.OSection=H9;