(function(Ft){typeof define=="function"&&define.amd?define(Ft):Ft()})(function(){"use strict";/** * @vue/shared v3.4.20 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/function Ft(e,t){const n=new Set(e.split(","));return t?r=>n.has(r.toLowerCase()):r=>n.has(r)}const te={},$t=[],Se=()=>{},zi=()=>!1,Nn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),ir=e=>e.startsWith("onUpdate:"),_e=Object.assign,lr=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},el=Object.prototype.hasOwnProperty,G=(e,t)=>el.call(e,t),j=Array.isArray,Ut=e=>Ln(e)==="[object Map]",ps=e=>Ln(e)==="[object Set]",K=e=>typeof e=="function",ae=e=>typeof e=="string",Vt=e=>typeof e=="symbol",ne=e=>e!==null&&typeof e=="object",_s=e=>(ne(e)||K(e))&&K(e.then)&&K(e.catch),hs=Object.prototype.toString,Ln=e=>hs.call(e),tl=e=>Ln(e).slice(8,-1),ms=e=>Ln(e)==="[object Object]",cr=e=>ae(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,tn=Ft(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),On=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},nl=/-(\w)/g,st=On(e=>e.replace(nl,(t,n)=>n?n.toUpperCase():"")),rl=/\B([A-Z])/g,He=On(e=>e.replace(rl,"-$1").toLowerCase()),gs=On(e=>e.charAt(0).toUpperCase()+e.slice(1)),ar=On(e=>e?`on${gs(e)}`:""),pt=(e,t)=>!Object.is(e,t),ur=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},sl=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Es=e=>{const t=ae(e)?Number(e):NaN;return isNaN(t)?e:t};let ys;const bs=()=>ys||(ys=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{});function We(e){if(j(e)){const t={};for(let n=0;n{if(n){const r=n.split(il);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Cn(e){let t="";if(ae(e))t=e;else if(j(e))for(let n=0;nae(e)?e:e==null?"":j(e)||ne(e)&&(e.toString===hs||!K(e.toString))?JSON.stringify(e,Ns,2):String(e),Ns=(e,t)=>t&&t.__v_isRef?Ns(e,t.value):Ut(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s],o)=>(n[fr(r,o)+" =>"]=s,n),{})}:ps(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>fr(n))}:Vt(t)?fr(t):ne(t)&&!j(t)&&!ms(t)?String(t):t,fr=(e,t="")=>{var n;return Vt(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** * @vue/reactivity v3.4.20 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/let je;class Ls{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=je,!t&&je&&(this.index=(je.scopes||(je.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=je;try{return je=this,t()}finally{je=n}}}on(){je=this}off(){je=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),mt()}return this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=_t,n=It;try{return _t=!0,It=this,this._runnings++,Os(this),this.fn()}finally{vs(this),this._runnings--,It=n,_t=t}}stop(){var t;this.active&&(Os(this),vs(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function pl(e){return e.value}function Os(e){e._trackId++,e._depsLength=0}function vs(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t{const n=new Map;return n.cleanup=e,n.computed=t,n},gr=new WeakMap,At=Symbol(""),Er=Symbol("");function we(e,t,n){if(_t&&It){let r=gr.get(e);r||gr.set(e,r=new Map);let s=r.get(n);s||r.set(n,s=As(()=>r.delete(n))),ws(It,s)}}function ot(e,t,n,r,s,o){const i=gr.get(e);if(!i)return;let u=[];if(t==="clear")u=[...i.values()];else if(n==="length"&&j(e)){const c=Number(r);i.forEach((f,p)=>{(p==="length"||!Vt(p)&&p>=c)&&u.push(f)})}else switch(n!==void 0&&u.push(i.get(n)),t){case"add":j(e)?cr(n)&&u.push(i.get("length")):(u.push(i.get(At)),Ut(e)&&u.push(i.get(Er)));break;case"delete":j(e)||(u.push(i.get(At)),Ut(e)&&u.push(i.get(Er)));break;case"set":Ut(e)&&u.push(i.get(At));break}_r();for(const c of u)c&&Is(c,4);hr()}const _l=Ft("__proto__,__v_isRef,__isVue"),Ps=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Vt)),Rs=hl();function hl(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=X(this);for(let o=0,i=this.length;o{e[t]=function(...n){ht(),_r();const r=X(this)[t].apply(this,n);return hr(),mt(),r}}),e}function ml(e){const t=X(this);return we(t,"has",e),t.hasOwnProperty(e)}class xs{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){const s=this._isReadonly,o=this._isShallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return o;if(n==="__v_raw")return r===(s?o?Il:Hs:o?Vs:Us).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const i=j(t);if(!s){if(i&&G(Rs,n))return Reflect.get(Rs,n,r);if(n==="hasOwnProperty")return ml}const u=Reflect.get(t,n,r);return(Vt(n)?Ps.has(n):_l(n))||(s||we(t,"get",n),o)?u:Ee(u)?i&&cr(n)?u:u.value:ne(u)?s?Ws(u):Tr(u):u}}class Ds extends xs{constructor(t=!1){super(!1,t)}set(t,n,r,s){let o=t[n];if(!this._isShallow){const c=Wt(o);if(!xn(r)&&!Wt(r)&&(o=X(o),r=X(r)),!j(t)&&Ee(o)&&!Ee(r))return c?!1:(o.value=r,!0)}const i=j(t)&&cr(n)?Number(n)e,Sn=e=>Reflect.getPrototypeOf(e);function wn(e,t,n=!1,r=!1){e=e.__v_raw;const s=X(e),o=X(t);n||(pt(t,o)&&we(s,"get",t),we(s,"get",o));const{has:i}=Sn(s),u=r?yr:n?Lr:nn;if(i.call(s,t))return u(e.get(t));if(i.call(s,o))return u(e.get(o));e!==s&&e.get(t)}function In(e,t=!1){const n=this.__v_raw,r=X(n),s=X(e);return t||(pt(e,s)&&we(r,"has",e),we(r,"has",s)),e===s?n.has(e):n.has(e)||n.has(s)}function An(e,t=!1){return e=e.__v_raw,!t&&we(X(e),"iterate",At),Reflect.get(e,"size",e)}function ks(e){e=X(e);const t=X(this);return Sn(t).has.call(t,e)||(t.add(e),ot(t,"add",e,e)),this}function Ms(e,t){t=X(t);const n=X(this),{has:r,get:s}=Sn(n);let o=r.call(n,e);o||(e=X(e),o=r.call(n,e));const i=s.call(n,e);return n.set(e,t),o?pt(t,i)&&ot(n,"set",e,t):ot(n,"add",e,t),this}function Fs(e){const t=X(this),{has:n,get:r}=Sn(t);let s=n.call(t,e);s||(e=X(e),s=n.call(t,e)),r&&r.call(t,e);const o=t.delete(e);return s&&ot(t,"delete",e,void 0),o}function $s(){const e=X(this),t=e.size!==0,n=e.clear();return t&&ot(e,"clear",void 0,void 0),n}function Pn(e,t){return function(r,s){const o=this,i=o.__v_raw,u=X(i),c=t?yr:e?Lr:nn;return!e&&we(u,"iterate",At),i.forEach((f,p)=>r.call(s,c(f),c(p),o))}}function Rn(e,t,n){return function(...r){const s=this.__v_raw,o=X(s),i=Ut(o),u=e==="entries"||e===Symbol.iterator&&i,c=e==="keys"&&i,f=s[e](...r),p=n?yr:t?Lr:nn;return!t&&we(o,"iterate",c?Er:At),{next(){const{value:g,done:y}=f.next();return y?{value:g,done:y}:{value:u?[p(g[0]),p(g[1])]:p(g),done:y}},[Symbol.iterator](){return this}}}}function gt(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Tl(){const e={get(o){return wn(this,o)},get size(){return An(this)},has:In,add:ks,set:Ms,delete:Fs,clear:$s,forEach:Pn(!1,!1)},t={get(o){return wn(this,o,!1,!0)},get size(){return An(this)},has:In,add:ks,set:Ms,delete:Fs,clear:$s,forEach:Pn(!1,!0)},n={get(o){return wn(this,o,!0)},get size(){return An(this,!0)},has(o){return In.call(this,o,!0)},add:gt("add"),set:gt("set"),delete:gt("delete"),clear:gt("clear"),forEach:Pn(!0,!1)},r={get(o){return wn(this,o,!0,!0)},get size(){return An(this,!0)},has(o){return In.call(this,o,!0)},add:gt("add"),set:gt("set"),delete:gt("delete"),clear:gt("clear"),forEach:Pn(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{e[o]=Rn(o,!1,!1),n[o]=Rn(o,!0,!1),t[o]=Rn(o,!1,!0),r[o]=Rn(o,!0,!0)}),[e,n,t,r]}const[Nl,Ll,Ol,vl]=Tl();function br(e,t){const n=t?e?vl:Ol:e?Ll:Nl;return(r,s,o)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?r:Reflect.get(G(n,s)&&s in r?n:r,s,o)}const Cl={get:br(!1,!1)},Sl={get:br(!1,!0)},wl={get:br(!0,!1)},Us=new WeakMap,Vs=new WeakMap,Hs=new WeakMap,Il=new WeakMap;function Al(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Pl(e){return e.__v_skip||!Object.isExtensible(e)?0:Al(tl(e))}function Tr(e){return Wt(e)?e:Nr(e,!1,El,Cl,Us)}function Rl(e){return Nr(e,!1,bl,Sl,Vs)}function Ws(e){return Nr(e,!0,yl,wl,Hs)}function Nr(e,t,n,r,s){if(!ne(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=s.get(e);if(o)return o;const i=Pl(e);if(i===0)return e;const u=new Proxy(e,i===2?r:n);return s.set(e,u),u}function Ht(e){return Wt(e)?Ht(e.__v_raw):!!(e&&e.__v_isReactive)}function Wt(e){return!!(e&&e.__v_isReadonly)}function xn(e){return!!(e&&e.__v_isShallow)}function js(e){return Ht(e)||Wt(e)}function X(e){const t=e&&e.__v_raw;return t?X(t):e}function Ks(e){return Object.isExtensible(e)&&vn(e,"__v_skip",!0),e}const nn=e=>ne(e)?Tr(e):e,Lr=e=>ne(e)?Ws(e):e;class Bs{constructor(t,n,r,s){this.getter=t,this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new dr(()=>t(this._value),()=>Dn(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=r}get value(){const t=X(this);return(!t._cacheable||t.effect.dirty)&&pt(t._value,t._value=t.effect.run())&&Dn(t,4),Ys(t),t.effect._dirtyLevel>=2&&Dn(t,2),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function xl(e,t,n=!1){let r,s;const o=K(e);return o?(r=e,s=Se):(r=e.get,s=e.set),new Bs(r,s,o||!s,n)}function Ys(e){var t;_t&&It&&(e=X(e),ws(It,(t=e.dep)!=null?t:e.dep=As(()=>e.dep=void 0,e instanceof Bs?e:void 0)))}function Dn(e,t=4,n){e=X(e);const r=e.dep;r&&Is(r,t)}function Ee(e){return!!(e&&e.__v_isRef===!0)}function ie(e){return Gs(e,!1)}function Dl(e){return Gs(e,!0)}function Gs(e,t){return Ee(e)?e:new kl(e,t)}class kl{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:X(t),this._value=n?t:nn(t)}get value(){return Ys(this),this._value}set value(t){const n=this.__v_isShallow||xn(t)||Wt(t);t=n?t:X(t),pt(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:nn(t),Dn(this,4))}}function B(e){return Ee(e)?e.value:e}const Ml={get:(e,t,n)=>B(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const s=e[t];return Ee(s)&&!Ee(n)?(s.value=n,!0):Reflect.set(e,t,n,r)}};function Xs(e){return Ht(e)?e:new Proxy(e,Ml)}/** * @vue/runtime-core v3.4.20 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/const rn=[];function Pd(e,...t){ht();const n=rn.length?rn[rn.length-1].component:null,r=n&&n.appContext.config.warnHandler,s=Fl();if(r)it(r,n,11,[e+t.join(""),n&&n.proxy,s.map(({vnode:o})=>`at <${Mo(n,o.type)}>`).join(` `),s]);else{const o=[`[Vue warn]: ${e}`,...t];s.length&&o.push(` `,...$l(s)),console.warn(...o)}mt()}function Fl(){let e=rn[rn.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const r=e.component&&e.component.parent;e=r&&r.vnode}return t}function $l(e){const t=[];return e.forEach((n,r)=>{t.push(...r===0?[]:[` `],...Ul(n))}),t}function Ul({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",r=e.component?e.component.parent==null:!1,s=` at <${Mo(e.component,e.type,r)}`,o=">"+n;return e.props?[s,...Vl(e.props),o]:[s+o]}function Vl(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(r=>{t.push(...qs(r,e[r]))}),n.length>3&&t.push(" ..."),t}function qs(e,t,n){return ae(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:Ee(t)?(t=qs(e,X(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):K(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=X(t),n?t:[`${e}=`,t])}function it(e,t,n,r){try{return r?e(...r):e()}catch(s){kn(s,t,n)}}function Ke(e,t,n,r){if(K(e)){const o=it(e,t,n,r);return o&&_s(o)&&o.catch(i=>{kn(i,t,n)}),o}const s=[];for(let o=0;o>>1,s=ye[r],o=on(s);oJe&&ye.splice(t,1)}function Kl(e){j(e)?jt.push(...e):(!Et||!Et.includes(e,e.allowRecurse?Pt+1:Pt))&&jt.push(e),Zs()}function zs(e,t,n=sn?Je+1:0){for(;non(n)-on(r));if(jt.length=0,Et){Et.push(...t);return}for(Et=t,Pt=0;Pte.id==null?1/0:e.id,Bl=(e,t)=>{const n=on(e)-on(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function to(e){Or=!1,sn=!0,ye.sort(Bl);const t=Se;try{for(Je=0;Jeae(O)?O.trim():O)),g&&(s=n.map(sl))}let u,c=r[u=ar(t)]||r[u=ar(st(t))];!c&&o&&(c=r[u=ar(He(t))]),c&&Ke(c,e,6,s);const f=r[u+"Once"];if(f){if(!e.emitted)e.emitted={};else if(e.emitted[u])return;e.emitted[u]=!0,Ke(f,e,6,s)}}function no(e,t,n=!1){const r=t.emitsCache,s=r.get(e);if(s!==void 0)return s;const o=e.emits;let i={},u=!1;if(!K(e)){const c=f=>{const p=no(f,t,!0);p&&(u=!0,_e(i,p))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!o&&!u?(ne(e)&&r.set(e,null),null):(j(o)?o.forEach(c=>i[c]=null):_e(i,o),ne(e)&&r.set(e,i),i)}function Mn(e,t){return!e||!Nn(t)?!1:(t=t.slice(2).replace(/Once$/,""),G(e,t[0].toLowerCase()+t.slice(1))||G(e,He(t))||G(e,t))}let Be=null,ro=null;function Fn(e){const t=Be;return Be=e,ro=e&&e.type.__scopeId||null,t}function Gl(e,t=Be,n){if(!t||e._n)return e;const r=(...s)=>{r._d&&wo(-1);const o=Fn(t);let i;try{i=e(...s)}finally{Fn(o),r._d&&wo(1)}return i};return r._n=!0,r._c=!0,r._d=!0,r}function Rd(){}function Sr(e){const{type:t,vnode:n,proxy:r,withProxy:s,props:o,propsOptions:[i],slots:u,attrs:c,emit:f,render:p,renderCache:g,data:y,setupState:O,ctx:D,inheritAttrs:R}=e;let A,m;const L=Fn(e);try{if(n.shapeFlag&4){const T=s||r,x=T;A=ze(p.call(x,T,g,o,O,y,D)),m=c}else{const T=t;A=ze(T.length>1?T(o,{attrs:c,slots:u,emit:f}):T(o,null)),m=t.props?c:Xl(c)}}catch(T){dn.length=0,kn(T,e,1),A=be(Dt)}let v=A;if(m&&R!==!1){const T=Object.keys(m),{shapeFlag:x}=v;T.length&&x&7&&(i&&T.some(ir)&&(m=ql(m,i)),v=Yt(v,m))}return n.dirs&&(v=Yt(v),v.dirs=v.dirs?v.dirs.concat(n.dirs):n.dirs),n.transition&&(v.transition=n.transition),A=v,Fn(L),A}const Xl=e=>{let t;for(const n in e)(n==="class"||n==="style"||Nn(n))&&((t||(t={}))[n]=e[n]);return t},ql=(e,t)=>{const n={};for(const r in e)(!ir(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function Jl(e,t,n){const{props:r,children:s,component:o}=e,{props:i,children:u,patchFlag:c}=t,f=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return r?so(r,i,f):!!i;if(c&8){const p=t.dynamicProps;for(let g=0;ge.__isSuspense;function ec(e,t){t&&t.pendingBranch?j(e)?t.effects.push(...e):t.effects.push(e):Kl(e)}const tc=Symbol.for("v-scx"),nc=()=>un(tc),$n={};function Kt(e,t,n){return oo(e,t,n)}function oo(e,t,{immediate:n,deep:r,flush:s,once:o,onTrack:i,onTrigger:u}=te){if(t&&o){const C=t;t=(...V)=>{C(...V),x()}}const c=Te,f=C=>r===!0?C:Bt(C,r===!1?1:void 0);let p,g=!1,y=!1;if(Ee(e)?(p=()=>e.value,g=xn(e)):Ht(e)?(p=()=>f(e),g=!0):j(e)?(y=!0,g=e.some(C=>Ht(C)||xn(C)),p=()=>e.map(C=>{if(Ee(C))return C.value;if(Ht(C))return f(C);if(K(C))return it(C,c,2)})):K(e)?t?p=()=>it(e,c,2):p=()=>(O&&O(),Ke(e,c,3,[D])):p=Se,t&&r){const C=p;p=()=>Bt(C())}let O,D=C=>{O=v.onStop=()=>{it(C,c,4),O=v.onStop=void 0}},R;if(Bn)if(D=Se,t?n&&Ke(t,c,3,[p(),y?[]:void 0,D]):p(),s==="sync"){const C=nc();R=C.__watcherHandles||(C.__watcherHandles=[])}else return Se;let A=y?new Array(e.length).fill($n):$n;const m=()=>{if(!(!v.active||!v.dirty))if(t){const C=v.run();(r||g||(y?C.some((V,k)=>pt(V,A[k])):pt(C,A)))&&(O&&O(),Ke(t,c,3,[C,A===$n?void 0:y&&A[0]===$n?[]:A,D]),A=C)}else v.run()};m.allowRecurse=!!t;let L;s==="sync"?L=m:s==="post"?L=()=>Ie(m,c&&c.suspense):(m.pre=!0,c&&(m.id=c.uid),L=()=>Cr(m));const v=new dr(p,Se,L),T=dl(),x=()=>{v.stop(),T&&lr(T.effects,v)};return t?n?m():A=v.run():s==="post"?Ie(v.run.bind(v),c&&c.suspense):v.run(),R&&R.push(x),x}function rc(e,t,n){const r=this.proxy,s=ae(e)?e.includes(".")?io(r,e):()=>r[e]:e.bind(r,r);let o;K(t)?o=t:(o=t.handler,n=t);const i=hn(this),u=oo(s,o.bind(r),n);return i(),u}function io(e,t){const n=t.split(".");return()=>{let r=e;for(let s=0;s0){if(n>=t)return e;n++}if(r=r||new Set,r.has(e))return e;if(r.add(e),Ee(e))Bt(e.value,t,n,r);else if(j(e))for(let s=0;s{Bt(s,t,n,r)});else if(ms(e))for(const s in e)Bt(e[s],t,n,r);return e}function Rt(e,t,n,r){const s=e.dirs,o=t&&t.dirs;for(let i=0;i_e({name:e.name},t,{setup:e}))():e}const Un=e=>!!e.type.__asyncLoader,lo=e=>e.type.__isKeepAlive;function sc(e,t){co(e,"a",t)}function oc(e,t){co(e,"da",t)}function co(e,t,n=Te){const r=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(Vn(t,r,n),n){let s=n.parent;for(;s&&s.parent;)lo(s.parent.vnode)&&ic(r,t,n,s),s=s.parent}}function ic(e,t,n,r){const s=Vn(t,e,r,!0);wr(()=>{lr(r[t],s)},n)}function Vn(e,t,n=Te,r=!1){if(n){const s=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...i)=>{if(n.isUnmounted)return;ht();const u=hn(n),c=Ke(t,n,e,i);return u(),mt(),c});return r?s.unshift(o):s.push(o),o}}const lt=e=>(t,n=Te)=>(!Bn||e==="sp")&&Vn(e,(...r)=>t(...r),n),lc=lt("bm"),yt=lt("m"),cc=lt("bu"),ac=lt("u"),uc=lt("bum"),wr=lt("um"),fc=lt("sp"),dc=lt("rtg"),pc=lt("rtc");function _c(e,t=Te){Vn("ec",e,t)}function ao(e,t,n,r){let s;const o=n&&n[r];if(j(e)||ae(e)){s=new Array(e.length);for(let i=0,u=e.length;it(i,u,void 0,o&&o[u]));else{const i=Object.keys(e);s=new Array(i.length);for(let u=0,c=i.length;ue?Ro(e)?jr(e)||e.proxy:Ir(e.parent):null,ln=_e(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Ir(e.parent),$root:e=>Ir(e.root),$emit:e=>e.emit,$options:e=>Rr(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,Cr(e.update)}),$nextTick:e=>e.n||(e.n=Qs.bind(e.proxy)),$watch:e=>rc.bind(e)}),Ar=(e,t)=>e!==te&&!e.__isScriptSetup&&G(e,t),hc={get({_:e},t){const{ctx:n,setupState:r,data:s,props:o,accessCache:i,type:u,appContext:c}=e;let f;if(t[0]!=="$"){const O=i[t];if(O!==void 0)switch(O){case 1:return r[t];case 2:return s[t];case 4:return n[t];case 3:return o[t]}else{if(Ar(r,t))return i[t]=1,r[t];if(s!==te&&G(s,t))return i[t]=2,s[t];if((f=e.propsOptions[0])&&G(f,t))return i[t]=3,o[t];if(n!==te&&G(n,t))return i[t]=4,n[t];Pr&&(i[t]=0)}}const p=ln[t];let g,y;if(p)return t==="$attrs"&&we(e,"get",t),p(e);if((g=u.__cssModules)&&(g=g[t]))return g;if(n!==te&&G(n,t))return i[t]=4,n[t];if(y=c.config.globalProperties,G(y,t))return y[t]},set({_:e},t,n){const{data:r,setupState:s,ctx:o}=e;return Ar(s,t)?(s[t]=n,!0):r!==te&&G(r,t)?(r[t]=n,!0):G(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:s,propsOptions:o}},i){let u;return!!n[i]||e!==te&&G(e,i)||Ar(t,i)||(u=o[0])&&G(u,i)||G(r,i)||G(ln,i)||G(s.config.globalProperties,i)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:G(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function uo(e){return j(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Pr=!0;function mc(e){const t=Rr(e),n=e.proxy,r=e.ctx;Pr=!1,t.beforeCreate&&fo(t.beforeCreate,e,"bc");const{data:s,computed:o,methods:i,watch:u,provide:c,inject:f,created:p,beforeMount:g,mounted:y,beforeUpdate:O,updated:D,activated:R,deactivated:A,beforeDestroy:m,beforeUnmount:L,destroyed:v,unmounted:T,render:x,renderTracked:C,renderTriggered:V,errorCaptured:k,serverPrefetch:re,expose:ce,inheritAttrs:ve,components:fe,directives:Ce,filters:vt}=t;if(f&&gc(f,r,null),i)for(const ee in i){const Z=i[ee];K(Z)&&(r[ee]=Z.bind(n))}if(s){const ee=s.call(n,n);ne(ee)&&(e.data=Tr(ee))}if(Pr=!0,o)for(const ee in o){const Z=o[ee],$e=K(Z)?Z.bind(n,n):K(Z.get)?Z.get.bind(n,n):Se,Pe=!K(Z)&&K(Z.set)?Z.set.bind(n):Se,Ue=Xe({get:$e,set:Pe});Object.defineProperty(r,ee,{enumerable:!0,configurable:!0,get:()=>Ue.value,set:Re=>Ue.value=Re})}if(u)for(const ee in u)po(u[ee],r,n,ee);if(c){const ee=K(c)?c.call(n):c;Reflect.ownKeys(ee).forEach(Z=>{Lc(Z,ee[Z])})}p&&fo(p,e,"c");function pe(ee,Z){j(Z)?Z.forEach($e=>ee($e.bind(n))):Z&&ee(Z.bind(n))}if(pe(lc,g),pe(yt,y),pe(cc,O),pe(ac,D),pe(sc,R),pe(oc,A),pe(_c,k),pe(pc,C),pe(dc,V),pe(uc,L),pe(wr,T),pe(fc,re),j(ce))if(ce.length){const ee=e.exposed||(e.exposed={});ce.forEach(Z=>{Object.defineProperty(ee,Z,{get:()=>n[Z],set:$e=>n[Z]=$e})})}else e.exposed||(e.exposed={});x&&e.render===Se&&(e.render=x),ve!=null&&(e.inheritAttrs=ve),fe&&(e.components=fe),Ce&&(e.directives=Ce)}function gc(e,t,n=Se){j(e)&&(e=xr(e));for(const r in e){const s=e[r];let o;ne(s)?"default"in s?o=un(s.from||r,s.default,!0):o=un(s.from||r):o=un(s),Ee(o)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>o.value,set:i=>o.value=i}):t[r]=o}}function fo(e,t,n){Ke(j(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function po(e,t,n,r){const s=r.includes(".")?io(n,r):()=>n[r];if(ae(e)){const o=t[e];K(o)&&Kt(s,o)}else if(K(e))Kt(s,e.bind(n));else if(ne(e))if(j(e))e.forEach(o=>po(o,t,n,r));else{const o=K(e.handler)?e.handler.bind(n):t[e.handler];K(o)&&Kt(s,o,e)}}function Rr(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:s,optionsCache:o,config:{optionMergeStrategies:i}}=e.appContext,u=o.get(t);let c;return u?c=u:!s.length&&!n&&!r?c=t:(c={},s.length&&s.forEach(f=>Hn(c,f,i,!0)),Hn(c,t,i)),ne(t)&&o.set(t,c),c}function Hn(e,t,n,r=!1){const{mixins:s,extends:o}=t;o&&Hn(e,o,n,!0),s&&s.forEach(i=>Hn(e,i,n,!0));for(const i in t)if(!(r&&i==="expose")){const u=Ec[i]||n&&n[i];e[i]=u?u(e[i],t[i]):t[i]}return e}const Ec={data:_o,props:ho,emits:ho,methods:cn,computed:cn,beforeCreate:Le,created:Le,beforeMount:Le,mounted:Le,beforeUpdate:Le,updated:Le,beforeDestroy:Le,beforeUnmount:Le,destroyed:Le,unmounted:Le,activated:Le,deactivated:Le,errorCaptured:Le,serverPrefetch:Le,components:cn,directives:cn,watch:bc,provide:_o,inject:yc};function _o(e,t){return t?e?function(){return _e(K(e)?e.call(this,this):e,K(t)?t.call(this,this):t)}:t:e}function yc(e,t){return cn(xr(e),xr(t))}function xr(e){if(j(e)){const t={};for(let n=0;n1)return n&&K(t)?t.call(r&&r.proxy):t}}function Oc(e,t,n,r=!1){const s={},o={};vn(o,Wn,1),e.propsDefaults=Object.create(null),go(e,t,s,o);for(const i in e.propsOptions[0])i in s||(s[i]=void 0);n?e.props=r?s:Rl(s):e.type.props?e.props=s:e.props=o,e.attrs=o}function vc(e,t,n,r){const{props:s,attrs:o,vnode:{patchFlag:i}}=e,u=X(s),[c]=e.propsOptions;let f=!1;if((r||i>0)&&!(i&16)){if(i&8){const p=e.vnode.dynamicProps;for(let g=0;g{c=!0;const[y,O]=Eo(g,t,!0);_e(i,y),O&&u.push(...O)};!n&&t.mixins.length&&t.mixins.forEach(p),e.extends&&p(e.extends),e.mixins&&e.mixins.forEach(p)}if(!o&&!c)return ne(e)&&r.set(e,$t),$t;if(j(o))for(let p=0;p-1,O[1]=R<0||D-1||G(O,"default"))&&u.push(g)}}}const f=[i,u];return ne(e)&&r.set(e,f),f}function yo(e){return e[0]!=="$"&&!tn(e)}function bo(e){return e===null?"null":typeof e=="function"?e.name||"":typeof e=="object"&&e.constructor&&e.constructor.name||""}function To(e,t){return bo(e)===bo(t)}function No(e,t){return j(t)?t.findIndex(n=>To(n,e)):K(t)&&To(t,e)?0:-1}const Lo=e=>e[0]==="_"||e==="$stable",kr=e=>j(e)?e.map(ze):[ze(e)],Cc=(e,t,n)=>{if(t._n)return t;const r=Gl((...s)=>kr(t(...s)),n);return r._c=!1,r},Oo=(e,t,n)=>{const r=e._ctx;for(const s in e){if(Lo(s))continue;const o=e[s];if(K(o))t[s]=Cc(s,o,r);else if(o!=null){const i=kr(o);t[s]=()=>i}}},vo=(e,t)=>{const n=kr(t);e.slots.default=()=>n},Sc=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=X(t),vn(t,"_",n)):Oo(t,e.slots={})}else e.slots={},t&&vo(e,t);vn(e.slots,Wn,1)},wc=(e,t,n)=>{const{vnode:r,slots:s}=e;let o=!0,i=te;if(r.shapeFlag&32){const u=t._;u?n&&u===1?o=!1:(_e(s,t),!n&&u===1&&delete s._):(o=!t.$stable,Oo(t,s)),i=t}else t&&(vo(e,t),i={default:1});if(o)for(const u in s)!Lo(u)&&i[u]==null&&delete s[u]};function Mr(e,t,n,r,s=!1){if(j(e)){e.forEach((y,O)=>Mr(y,t&&(j(t)?t[O]:t),n,r,s));return}if(Un(r)&&!s)return;const o=r.shapeFlag&4?jr(r.component)||r.component.proxy:r.el,i=s?null:o,{i:u,r:c}=e,f=t&&t.r,p=u.refs===te?u.refs={}:u.refs,g=u.setupState;if(f!=null&&f!==c&&(ae(f)?(p[f]=null,G(g,f)&&(g[f]=null)):Ee(f)&&(f.value=null)),K(c))it(c,u,12,[i,p]);else{const y=ae(c),O=Ee(c);if(y||O){const D=()=>{if(e.f){const R=y?G(g,c)?g[c]:p[c]:c.value;s?j(R)&&lr(R,o):j(R)?R.includes(o)||R.push(o):y?(p[c]=[o],G(g,c)&&(g[c]=p[c])):(c.value=[o],e.k&&(p[e.k]=c.value))}else y?(p[c]=i,G(g,c)&&(g[c]=i)):O&&(c.value=i,e.k&&(p[e.k]=i))};i?(D.id=-1,Ie(D,n)):D()}}}const Ie=ec;function Ic(e){return Ac(e)}function Ac(e,t){const n=bs();n.__VUE__=!0;const{insert:r,remove:s,patchProp:o,createElement:i,createText:u,createComment:c,setText:f,setElementText:p,parentNode:g,nextSibling:y,setScopeId:O=Se,insertStaticContent:D}=e,R=(l,a,d,_=null,E=null,N=null,I=void 0,w=null,P=!!a.dynamicChildren)=>{if(l===a)return;l&&!_n(l,a)&&(_=Ct(l),Re(l,E,N,!0),l=null),a.patchFlag===-2&&(P=!1,a.dynamicChildren=null);const{type:S,ref:F,shapeFlag:M}=a;switch(S){case fn:A(l,a,d,_);break;case Dt:m(l,a,d,_);break;case $r:l==null&&L(a,d,_,I);break;case xe:fe(l,a,d,_,E,N,I,w,P);break;default:M&1?x(l,a,d,_,E,N,I,w,P):M&6?Ce(l,a,d,_,E,N,I,w,P):(M&64||M&128)&&S.process(l,a,d,_,E,N,I,w,P,De)}F!=null&&E&&Mr(F,l&&l.ref,N,a||l,!a)},A=(l,a,d,_)=>{if(l==null)r(a.el=u(a.children),d,_);else{const E=a.el=l.el;a.children!==l.children&&f(E,a.children)}},m=(l,a,d,_)=>{l==null?r(a.el=c(a.children||""),d,_):a.el=l.el},L=(l,a,d,_)=>{[l.el,l.anchor]=D(l.children,a,d,_,l.el,l.anchor)},v=({el:l,anchor:a},d,_)=>{let E;for(;l&&l!==a;)E=y(l),r(l,d,_),l=E;r(a,d,_)},T=({el:l,anchor:a})=>{let d;for(;l&&l!==a;)d=y(l),s(l),l=d;s(a)},x=(l,a,d,_,E,N,I,w,P)=>{a.type==="svg"?I="svg":a.type==="math"&&(I="mathml"),l==null?C(a,d,_,E,N,I,w,P):re(l,a,E,N,I,w,P)},C=(l,a,d,_,E,N,I,w)=>{let P,S;const{props:F,shapeFlag:M,transition:h,dirs:b}=l;if(P=l.el=i(l.type,N,F&&F.is,F),M&8?p(P,l.children):M&16&&k(l.children,P,null,_,E,Fr(l,N),I,w),b&&Rt(l,null,_,"created"),V(P,l,l.scopeId,I,_),F){for(const H in F)H!=="value"&&!tn(H)&&o(P,H,null,F[H],N,l.children,_,E,Ve);"value"in F&&o(P,"value",null,F.value,N),(S=F.onVnodeBeforeMount)&&et(S,_,l)}b&&Rt(l,null,_,"beforeMount");const $=Pc(E,h);$&&h.beforeEnter(P),r(P,a,d),((S=F&&F.onVnodeMounted)||$||b)&&Ie(()=>{S&&et(S,_,l),$&&h.enter(P),b&&Rt(l,null,_,"mounted")},E)},V=(l,a,d,_,E)=>{if(d&&O(l,d),_)for(let N=0;N<_.length;N++)O(l,_[N]);if(E){let N=E.subTree;if(a===N){const I=E.vnode;V(l,I,I.scopeId,I.slotScopeIds,E.parent)}}},k=(l,a,d,_,E,N,I,w,P=0)=>{for(let S=P;S{const w=a.el=l.el;let{patchFlag:P,dynamicChildren:S,dirs:F}=a;P|=l.patchFlag&16;const M=l.props||te,h=a.props||te;let b;if(d&&xt(d,!1),(b=h.onVnodeBeforeUpdate)&&et(b,d,a,l),F&&Rt(a,l,d,"beforeUpdate"),d&&xt(d,!0),S?ce(l.dynamicChildren,S,w,d,_,Fr(a,E),N):I||Z(l,a,w,null,d,_,Fr(a,E),N,!1),P>0){if(P&16)ve(w,a,M,h,d,_,E);else if(P&2&&M.class!==h.class&&o(w,"class",null,h.class,E),P&4&&o(w,"style",M.style,h.style,E),P&8){const $=a.dynamicProps;for(let H=0;H<$.length;H++){const q=$[H],oe=M[q],me=h[q];(me!==oe||q==="value")&&o(w,q,oe,me,E,l.children,d,_,Ve)}}P&1&&l.children!==a.children&&p(w,a.children)}else!I&&S==null&&ve(w,a,M,h,d,_,E);((b=h.onVnodeUpdated)||F)&&Ie(()=>{b&&et(b,d,a,l),F&&Rt(a,l,d,"updated")},_)},ce=(l,a,d,_,E,N,I)=>{for(let w=0;w{if(d!==_){if(d!==te)for(const w in d)!tn(w)&&!(w in _)&&o(l,w,d[w],null,I,a.children,E,N,Ve);for(const w in _){if(tn(w))continue;const P=_[w],S=d[w];P!==S&&w!=="value"&&o(l,w,S,P,I,a.children,E,N,Ve)}"value"in _&&o(l,"value",d.value,_.value,I)}},fe=(l,a,d,_,E,N,I,w,P)=>{const S=a.el=l?l.el:u(""),F=a.anchor=l?l.anchor:u("");let{patchFlag:M,dynamicChildren:h,slotScopeIds:b}=a;b&&(w=w?w.concat(b):b),l==null?(r(S,d,_),r(F,d,_),k(a.children||[],d,F,E,N,I,w,P)):M>0&&M&64&&h&&l.dynamicChildren?(ce(l.dynamicChildren,h,d,E,N,I,w),(a.key!=null||E&&a===E.subTree)&&Co(l,a,!0)):Z(l,a,d,F,E,N,I,w,P)},Ce=(l,a,d,_,E,N,I,w,P)=>{a.slotScopeIds=w,l==null?a.shapeFlag&512?E.ctx.activate(a,d,_,I,P):vt(a,d,_,E,N,I,P):Zt(l,a,P)},vt=(l,a,d,_,E,N,I)=>{const w=l.component=Hc(l,_,E);if(lo(l)&&(w.ctx.renderer=De),Wc(w),w.asyncDep){if(E&&E.registerDep(w,pe),!l.el){const P=w.subTree=be(Dt);m(null,P,a,d)}}else pe(w,l,a,d,E,N,I)},Zt=(l,a,d)=>{const _=a.component=l.component;if(Jl(l,a,d))if(_.asyncDep&&!_.asyncResolved){ee(_,a,d);return}else _.next=a,jl(_.update),_.effect.dirty=!0,_.update();else a.el=l.el,_.vnode=a},pe=(l,a,d,_,E,N,I)=>{const w=()=>{if(l.isMounted){let{next:F,bu:M,u:h,parent:b,vnode:$}=l;{const wt=So(l);if(wt){F&&(F.el=$.el,ee(l,F,I)),wt.asyncDep.then(()=>{l.isUnmounted||w()});return}}let H=F,q;xt(l,!1),F?(F.el=$.el,ee(l,F,I)):F=$,M&&ur(M),(q=F.props&&F.props.onVnodeBeforeUpdate)&&et(q,b,F,$),xt(l,!0);const oe=Sr(l),me=l.subTree;l.subTree=oe,R(me,oe,g(me.el),Ct(me),l,E,N),F.el=oe.el,H===null&&Ql(l,oe.el),h&&Ie(h,E),(q=F.props&&F.props.onVnodeUpdated)&&Ie(()=>et(q,b,F,$),E)}else{let F;const{el:M,props:h}=a,{bm:b,m:$,parent:H}=l,q=Un(a);if(xt(l,!1),b&&ur(b),!q&&(F=h&&h.onVnodeBeforeMount)&&et(F,H,a),xt(l,!0),M&&Mt){const oe=()=>{l.subTree=Sr(l),Mt(M,l.subTree,l,E,null)};q?a.type.__asyncLoader().then(()=>!l.isUnmounted&&oe()):oe()}else{const oe=l.subTree=Sr(l);R(null,oe,d,_,l,E,N),a.el=oe.el}if($&&Ie($,E),!q&&(F=h&&h.onVnodeMounted)){const oe=a;Ie(()=>et(F,H,oe),E)}(a.shapeFlag&256||H&&Un(H.vnode)&&H.vnode.shapeFlag&256)&&l.a&&Ie(l.a,E),l.isMounted=!0,a=d=_=null}},P=l.effect=new dr(w,Se,()=>Cr(S),l.scope),S=l.update=()=>{P.dirty&&P.run()};S.id=l.uid,xt(l,!0),S()},ee=(l,a,d)=>{a.component=l;const _=l.vnode.props;l.vnode=a,l.next=null,vc(l,a.props,_,d),wc(l,a.children,d),ht(),zs(l),mt()},Z=(l,a,d,_,E,N,I,w,P=!1)=>{const S=l&&l.children,F=l?l.shapeFlag:0,M=a.children,{patchFlag:h,shapeFlag:b}=a;if(h>0){if(h&128){Pe(S,M,d,_,E,N,I,w,P);return}else if(h&256){$e(S,M,d,_,E,N,I,w,P);return}}b&8?(F&16&&Ve(S,E,N),M!==S&&p(d,M)):F&16?b&16?Pe(S,M,d,_,E,N,I,w,P):Ve(S,E,N,!0):(F&8&&p(d,""),b&16&&k(M,d,_,E,N,I,w,P))},$e=(l,a,d,_,E,N,I,w,P)=>{l=l||$t,a=a||$t;const S=l.length,F=a.length,M=Math.min(S,F);let h;for(h=0;hF?Ve(l,E,N,!0,!1,M):k(a,d,_,E,N,I,w,P,M)},Pe=(l,a,d,_,E,N,I,w,P)=>{let S=0;const F=a.length;let M=l.length-1,h=F-1;for(;S<=M&&S<=h;){const b=l[S],$=a[S]=P?bt(a[S]):ze(a[S]);if(_n(b,$))R(b,$,d,null,E,N,I,w,P);else break;S++}for(;S<=M&&S<=h;){const b=l[M],$=a[h]=P?bt(a[h]):ze(a[h]);if(_n(b,$))R(b,$,d,null,E,N,I,w,P);else break;M--,h--}if(S>M){if(S<=h){const b=h+1,$=bh)for(;S<=M;)Re(l[S],E,N,!0),S++;else{const b=S,$=S,H=new Map;for(S=$;S<=h;S++){const ke=a[S]=P?bt(a[S]):ze(a[S]);ke.key!=null&&H.set(ke.key,S)}let q,oe=0;const me=h-$+1;let wt=!1,ds=0;const Tn=new Array(me);for(S=0;S=me){Re(ke,E,N,!0);continue}let rt;if(ke.key!=null)rt=H.get(ke.key);else for(q=$;q<=h;q++)if(Tn[q-$]===0&&_n(ke,a[q])){rt=q;break}rt===void 0?Re(ke,E,N,!0):(Tn[rt-$]=S+1,rt>=ds?ds=rt:wt=!0,R(ke,a[rt],d,null,E,N,I,w,P),oe++)}const Qi=wt?Rc(Tn):$t;for(q=Qi.length-1,S=me-1;S>=0;S--){const ke=$+S,rt=a[ke],Zi=ke+1{const{el:N,type:I,transition:w,children:P,shapeFlag:S}=l;if(S&6){Ue(l.component.subTree,a,d,_);return}if(S&128){l.suspense.move(a,d,_);return}if(S&64){I.move(l,a,d,De);return}if(I===xe){r(N,a,d);for(let M=0;Mw.enter(N),E);else{const{leave:M,delayLeave:h,afterLeave:b}=w,$=()=>r(N,a,d),H=()=>{M(N,()=>{$(),b&&b()})};h?h(N,$,H):H()}else r(N,a,d)},Re=(l,a,d,_=!1,E=!1)=>{const{type:N,props:I,ref:w,children:P,dynamicChildren:S,shapeFlag:F,patchFlag:M,dirs:h}=l;if(w!=null&&Mr(w,null,d,l,!0),F&256){a.ctx.deactivate(l);return}const b=F&1&&h,$=!Un(l);let H;if($&&(H=I&&I.onVnodeBeforeUnmount)&&et(H,a,l),F&6)bn(l.component,d,_);else{if(F&128){l.suspense.unmount(d,_);return}b&&Rt(l,null,a,"beforeUnmount"),F&64?l.type.remove(l,a,d,E,De,_):S&&(N!==xe||M>0&&M&64)?Ve(S,a,d,!1,!0):(N===xe&&M&384||!E&&F&16)&&Ve(P,a,d),_&&zt(l)}($&&(H=I&&I.onVnodeUnmounted)||b)&&Ie(()=>{H&&et(H,a,l),b&&Rt(l,null,a,"unmounted")},d)},zt=l=>{const{type:a,el:d,anchor:_,transition:E}=l;if(a===xe){en(d,_);return}if(a===$r){T(l);return}const N=()=>{s(d),E&&!E.persisted&&E.afterLeave&&E.afterLeave()};if(l.shapeFlag&1&&E&&!E.persisted){const{leave:I,delayLeave:w}=E,P=()=>I(d,N);w?w(l.el,N,P):P()}else N()},en=(l,a)=>{let d;for(;l!==a;)d=y(l),s(l),l=d;s(a)},bn=(l,a,d)=>{const{bum:_,scope:E,update:N,subTree:I,um:w}=l;_&&ur(_),E.stop(),N&&(N.active=!1,Re(I,l,a,d)),w&&Ie(w,a),Ie(()=>{l.isUnmounted=!0},a),a&&a.pendingBranch&&!a.isUnmounted&&l.asyncDep&&!l.asyncResolved&&l.suspenseId===a.pendingId&&(a.deps--,a.deps===0&&a.resolve())},Ve=(l,a,d,_=!1,E=!1,N=0)=>{for(let I=N;Il.shapeFlag&6?Ct(l.component.subTree):l.shapeFlag&128?l.suspense.next():y(l.anchor||l.el);let ft=!1;const St=(l,a,d)=>{l==null?a._vnode&&Re(a._vnode,null,null,!0):R(a._vnode||null,l,a,null,null,null,d),ft||(ft=!0,zs(),eo(),ft=!1),a._vnode=l},De={p:R,um:Re,m:Ue,r:zt,mt:vt,mc:k,pc:Z,pbc:ce,n:Ct,o:e};let dt,Mt;return t&&([dt,Mt]=t(De)),{render:St,hydrate:dt,createApp:Nc(St,dt)}}function Fr({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function xt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Pc(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Co(e,t,n=!1){const r=e.children,s=t.children;if(j(r)&&j(s))for(let o=0;o>1,e[n[u]]0&&(t[r]=n[o-1]),n[o]=r)}}for(o=n.length,i=n[o-1];o-- >0;)n[o]=i,i=t[i];return n}function So(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:So(t)}const xc=e=>e.__isTeleport,xe=Symbol.for("v-fgt"),fn=Symbol.for("v-txt"),Dt=Symbol.for("v-cmt"),$r=Symbol.for("v-stc"),dn=[];let Ge=null;function J(e=!1){dn.push(Ge=e?null:[])}function Dc(){dn.pop(),Ge=dn[dn.length-1]||null}let pn=1;function wo(e){pn+=e}function Io(e){return e.dynamicChildren=pn>0?Ge||$t:null,Dc(),pn>0&&Ge&&Ge.push(e),e}function ue(e,t,n,r,s,o){return Io(z(e,t,n,r,s,o,!0))}function Qe(e,t,n,r,s){return Io(be(e,t,n,r,s,!0))}function Ur(e){return e?e.__v_isVNode===!0:!1}function _n(e,t){return e.type===t.type&&e.key===t.key}const Wn="__vInternal",Ao=({key:e})=>e!=null?e:null,jn=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ae(e)||Ee(e)||K(e)?{i:Be,r:e,k:t,f:!!n}:e:null);function z(e,t=null,n=null,r=0,s=null,o=e===xe?0:1,i=!1,u=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Ao(t),ref:t&&jn(t),scopeId:ro,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:Be};return u?(Vr(c,n),o&128&&e.normalize(c)):n&&(c.shapeFlag|=ae(n)?8:16),pn>0&&!i&&Ge&&(c.patchFlag>0||o&6)&&c.patchFlag!==32&&Ge.push(c),c}const be=kc;function kc(e,t=null,n=null,r=0,s=null,o=!1){if((!e||e===Zl)&&(e=Dt),Ur(e)){const u=Yt(e,t,!0);return n&&Vr(u,n),pn>0&&!o&&Ge&&(u.shapeFlag&6?Ge[Ge.indexOf(e)]=u:Ge.push(u)),u.patchFlag|=-2,u}if(qc(e)&&(e=e.__vccOpts),t){t=Mc(t);let{class:u,style:c}=t;u&&!ae(u)&&(t.class=Cn(u)),ne(c)&&(js(c)&&!j(c)&&(c=_e({},c)),t.style=We(c))}const i=ae(e)?1:zl(e)?128:xc(e)?64:ne(e)?4:K(e)?2:0;return z(e,t,n,r,s,i,o,!0)}function Mc(e){return e?js(e)||Wn in e?_e({},e):e:null}function Yt(e,t,n=!1){const{props:r,ref:s,patchFlag:o,children:i}=e,u=t?$c(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&Ao(u),ref:t&&t.ref?n&&s?j(s)?s.concat(jn(t)):[s,jn(t)]:jn(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==xe?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Yt(e.ssContent),ssFallback:e.ssFallback&&Yt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Fc(e=" ",t=0){return be(fn,null,e,t)}function Ze(e="",t=!1){return t?(J(),Qe(Dt,null,e)):be(Dt,null,e)}function ze(e){return e==null||typeof e=="boolean"?be(Dt):j(e)?be(xe,null,e.slice()):typeof e=="object"?bt(e):be(fn,null,String(e))}function bt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Yt(e)}function Vr(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(j(t))n=16;else if(typeof t=="object")if(r&65){const s=t.default;s&&(s._c&&(s._d=!1),Vr(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!(Wn in t)?t._ctx=Be:s===3&&Be&&(Be.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else K(t)?(t={default:t,_ctx:Be},n=32):(t=String(t),r&64?(n=16,t=[Fc(t)]):n=8);e.children=t,e.shapeFlag|=n}function $c(...e){const t={};for(let n=0;nTe||Be;let Kn,Wr;{const e=bs(),t=(n,r)=>{let s;return(s=e[n])||(s=e[n]=[]),s.push(r),o=>{s.length>1?s.forEach(i=>i(o)):s[0](o)}};Kn=t("__VUE_INSTANCE_SETTERS__",n=>Te=n),Wr=t("__VUE_SSR_SETTERS__",n=>Bn=n)}const hn=e=>{const t=Te;return Kn(e),e.scope.on(),()=>{e.scope.off(),Kn(t)}},Po=()=>{Te&&Te.scope.off(),Kn(null)};function Ro(e){return e.vnode.shapeFlag&4}let Bn=!1;function Wc(e,t=!1){t&&Wr(t);const{props:n,children:r}=e.vnode,s=Ro(e);Oc(e,n,s,t),Sc(e,r);const o=s?jc(e,t):void 0;return t&&Wr(!1),o}function jc(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Ks(new Proxy(e.ctx,hc));const{setup:r}=n;if(r){const s=e.setupContext=r.length>1?Bc(e):null,o=hn(e);ht();const i=it(r,e,0,[e.props,s]);if(mt(),o(),_s(i)){if(i.then(Po,Po),t)return i.then(u=>{xo(e,u,t)}).catch(u=>{kn(u,e,0)});e.asyncDep=i}else xo(e,i,t)}else ko(e,t)}function xo(e,t,n){K(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ne(t)&&(e.setupState=Xs(t)),ko(e,n)}let Do;function ko(e,t,n){const r=e.type;if(!e.render){if(!t&&Do&&!r.render){const s=r.template||Rr(e).template;if(s){const{isCustomElement:o,compilerOptions:i}=e.appContext.config,{delimiters:u,compilerOptions:c}=r,f=_e(_e({isCustomElement:o,delimiters:u},i),c);r.render=Do(s,f)}}e.render=r.render||Se}{const s=hn(e);ht();try{mc(e)}finally{mt(),s()}}}function Kc(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return we(e,"get","$attrs"),t[n]}}))}function Bc(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return Kc(e)},slots:e.slots,emit:e.emit,expose:t}}function jr(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Xs(Ks(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in ln)return ln[n](e)},has(t,n){return n in t||n in ln}}))}const Yc=/(?:^|[-_])(\w)/g,Gc=e=>e.replace(Yc,t=>t.toUpperCase()).replace(/[-_]/g,"");function Xc(e,t=!0){return K(e)?e.displayName||e.name:e.name||t&&e.__name}function Mo(e,t,n=!1){let r=Xc(t);if(!r&&t.__file){const s=t.__file.match(/([^/\\]+)\.\w+$/);s&&(r=s[1])}if(!r&&e&&e.parent){const s=o=>{for(const i in o)if(o[i]===t)return i};r=s(e.components||e.parent.type.components)||s(e.appContext.components)}return r?Gc(r):n?"App":"Anonymous"}function qc(e){return K(e)&&"__vccOpts"in e}const Xe=(e,t)=>xl(e,t,Bn);function Fo(e,t,n){const r=arguments.length;return r===2?ne(t)&&!j(t)?Ur(t)?be(e,null,[t]):be(e,t):be(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Ur(n)&&(n=[n]),be(e,t,n))}const Jc="3.4.20";/** * @vue/runtime-dom v3.4.20 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/const Qc="http://www.w3.org/2000/svg",Zc="http://www.w3.org/1998/Math/MathML",Tt=typeof document!="undefined"?document:null,$o=Tt&&Tt.createElement("template"),zc={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const s=t==="svg"?Tt.createElementNS(Qc,e):t==="mathml"?Tt.createElementNS(Zc,e):Tt.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:e=>Tt.createTextNode(e),createComment:e=>Tt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Tt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,s,o){const i=n?n.previousSibling:t.lastChild;if(s&&(s===o||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===o||!(s=s.nextSibling)););else{$o.innerHTML=r==="svg"?`${e}`:r==="mathml"?`${e}`:e;const u=$o.content;if(r==="svg"||r==="mathml"){const c=u.firstChild;for(;c.firstChild;)u.appendChild(c.firstChild);u.removeChild(c)}t.insertBefore(u,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},ea=Symbol("_vtc");function ta(e,t,n){const r=e[ea];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Uo=Symbol("_vod"),na=Symbol("_vsh"),ra=Symbol(""),sa=/(^|;)\s*display\s*:/;function oa(e,t,n){const r=e.style,s=ae(n);let o=!1;if(n&&!s){if(t)if(ae(t))for(const i of t.split(";")){const u=i.slice(0,i.indexOf(":")).trim();n[u]==null&&Yn(r,u,"")}else for(const i in t)n[i]==null&&Yn(r,i,"");for(const i in n)i==="display"&&(o=!0),Yn(r,i,n[i])}else if(s){if(t!==n){const i=r[ra];i&&(n+=";"+i),r.cssText=n,o=sa.test(n)}}else t&&e.removeAttribute("style");Uo in e&&(e[Uo]=o?r.display:"",e[na]&&(r.display="none"))}const Vo=/\s*!important$/;function Yn(e,t,n){if(j(n))n.forEach(r=>Yn(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=ia(e,t);Vo.test(n)?e.setProperty(He(r),n.replace(Vo,""),"important"):e[r]=n}}const Ho=["Webkit","Moz","ms"],Kr={};function ia(e,t){const n=Kr[t];if(n)return n;let r=st(t);if(r!=="filter"&&r in e)return Kr[t]=r;r=gs(r);for(let s=0;sBr||(pa.then(()=>Br=0),Br=Date.now());function ha(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Ke(ma(r,n.value),t,5,[r])};return n.value=e,n.attached=_a(),n}function ma(e,t){if(j(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>s=>!s._stopped&&r&&r(s))}else return t}const Bo=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,ga=(e,t,n,r,s,o,i,u,c)=>{const f=s==="svg";t==="class"?ta(e,r,f):t==="style"?oa(e,n,r):Nn(t)?ir(t)||fa(e,t,n,r,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Ea(e,t,r,f))?ca(e,t,r,o,i,u,c):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),la(e,t,r,f))};function Ea(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&Bo(t)&&K(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return Bo(t)&&ae(n)?!1:t in e}/*! #__NO_SIDE_EFFECTS__ */function ya(e,t){const n=Ye(e);class r extends Yr{constructor(o){super(n,o,t)}}return r.def=n,r}const ba=typeof HTMLElement!="undefined"?HTMLElement:class{};class Yr extends ba{constructor(t,n={},r){super(),this._def=t,this._props=n,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this._ob=null,this.shadowRoot&&r?r(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,this._ob&&(this._ob.disconnect(),this._ob=null),Qs(()=>{this._connected||(Go(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let r=0;r{for(const s of r)this._setAttr(s.attributeName)}),this._ob.observe(this,{attributes:!0});const t=(r,s=!1)=>{const{props:o,styles:i}=r;let u;if(o&&!j(o))for(const c in o){const f=o[c];(f===Number||f&&f.type===Number)&&(c in this._props&&(this._props[c]=Es(this._props[c])),(u||(u=Object.create(null)))[st(c)]=!0)}this._numberProps=u,s&&this._resolveProps(r),this._applyStyles(i),this._update()},n=this._def.__asyncLoader;n?n().then(r=>t(r,!0)):t(this._def)}_resolveProps(t){const{props:n}=t,r=j(n)?n:Object.keys(n||{});for(const s of Object.keys(this))s[0]!=="_"&&r.includes(s)&&this._setProp(s,this[s],!0,!1);for(const s of r.map(st))Object.defineProperty(this,s,{get(){return this._getProp(s)},set(o){this._setProp(s,o)}})}_setAttr(t){let n=this.getAttribute(t);const r=st(t);this._numberProps&&this._numberProps[r]&&(n=Es(n)),this._setProp(r,n,!1)}_getProp(t){return this._props[t]}_setProp(t,n,r=!0,s=!0){n!==this._props[t]&&(this._props[t]=n,s&&this._instance&&this._update(),r&&(n===!0?this.setAttribute(He(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(He(t),n+""):n||this.removeAttribute(He(t))))}_update(){Go(this._createVNode(),this.shadowRoot)}_createVNode(){const t=be(this._def,_e({},this._props));return this._instance||(t.ce=n=>{this._instance=n,n.isCE=!0;const r=(o,i)=>{this.dispatchEvent(new CustomEvent(o,{detail:i}))};n.emit=(o,...i)=>{r(o,i),He(o)!==o&&r(He(o),i)};let s=this;for(;s=s&&(s.parentNode||s.host);)if(s instanceof Yr){n.parent=s._instance,n.provides=s._instance.provides;break}}),t}_applyStyles(t){t&&t.forEach(n=>{const r=document.createElement("style");r.textContent=n,this.shadowRoot.appendChild(r)})}}const Ta=_e({patchProp:ga},zc);let Yo;function Na(){return Yo||(Yo=Ic(Ta))}const Go=(...e)=>{Na().render(...e)};function La(e){const t=ie(null),n=ie(!1),r=ie(null),s=async()=>{try{n.value=!0;const o=await fetch(e);if(o.status!==200)throw new Error("Bad Request");const i=await o.json();i.data[0]&&(t.value={...i.data[0]})}catch(o){r.value=o instanceof Error?o:new Error(String(o))}finally{n.value=!1}};return yt(async()=>{await s()}),{company:t,isLoading:n,error:r}}function Oa(){const e=ie(void 0),t=ie(!1),n=ie(null),s="https://choosemycompany.com/api-v2/label-types";return{labelType:e,isLoading:t,error:n,fetchData:async({label:i})=>{try{t.value=!0;const c=await(await fetch(`${s}/${i}`)).json();e.value=await c.data}catch(u){n.value=u instanceof Error?u:new Error(String(u))}finally{t.value=!1}}}}const va="https://choosemycompany.com/api-v2/embedded-pages";function Ca(){const e=ie(!1),t=ie(null);return{isLoading:e,error:t,postData:async({slug:r,primaryType:s})=>{try{e.value=!0,await fetch(va,{method:"POST",body:JSON.stringify({companySlug:r,primaryTypeKey:s})})}catch(o){t.value=o instanceof Error?o:new Error(String(o))}finally{e.value=!1}}}}const{labelType:Xo,fetchData:Sa}=Oa(),{postData:wa}=Ca(),Ia={click:"click",view:"view"};function Gn(){const e=ie(!1),t=ie(null),n=async({slug:s,actionType:o})=>{const u="https://choosemycompany.com/api-v2/widget-stats";try{e.value=!0,await fetch(u,{method:"POST",body:JSON.stringify({companySlug:s,widgetType:"label",actionType:o})})}catch(c){t.value=c instanceof Error?c:new Error(String(c))}finally{e.value=!1}};return{isLoading:e,error:t,generateStat:async({slug:s,type:o,actionType:i})=>{var u,c;!o||["hover","engagement","employees","students"].includes(o)||o.indexOf(",")!==-1||(await Sa({label:o}),(u=Xo.value)!=null&&u.primaryType&&await wa({slug:s,primaryType:(c=Xo.value)==null?void 0:c.primaryType}),await n({slug:s,actionType:i}))},ACTION_TYPE:Ia}}const Aa=({timeoutBeforeShowingLoader:e=350}={})=>{const n=ie("https://static.choosemycompany.com"+"/img/loader-cmc.gif"),r=ie(!0);return yt(()=>{setTimeout(()=>{r.value=!1},e)}),{gifLoaderUrl:n,isGifLoaderHidden:r}},Pa={class:"gif-loader-container"},Ra=["src"],mn=Ye({__name:"CmcLoader",setup(e){const{gifLoaderUrl:t,isGifLoaderHidden:n}=Aa({timeoutBeforeShowingLoader:500});return(r,s)=>(J(),ue("div",Pa,[z("img",{class:Cn(["gif-loader",{"gif-loader-hidden":B(n)}]),src:B(t),alt:""},null,10,Ra)]))}}),{generateStat:xa,ACTION_TYPE:Da}=Gn();function ka(){const e="https://choosemycompany.com",t=ie(null),n=ie(!1),r=ie(null);return{companyLabel:t,isLoading:n,error:r,fetchData:async({slug:o,type:i})=>{const u=`${e}/api-v2/companies/${o}/labels?filter[type]=${i}`;try{n.value=!0;const f=await(await fetch(u)).json();f.data[0]&&(t.value={hasPublicPage:f.data[0].hasPublicPage,imageUrl:f.data[0].imageUrl})}catch(c){r.value=c instanceof Error?c:new Error(String(c))}finally{n.value=!1,await xa({slug:o,type:i,actionType:Da.view})}}}}const Xn=[{label:"at-work",color:"#2A4F92"},{label:"employees",color:"#2A4F92"},{label:"engagement",color:"#2A4F92"},{label:"candidates",color:"#3BA63C"},{label:"trainees",color:"#EE1796"},{label:"clients",color:"#F03F1E"},{label:"students",color:"#EE1796"}],Ma=Xn.map(e=>e.label);/*! * shared v9.9.1 * (c) 2024 kazuya kawaguchi * Released under the MIT License. */const qn=typeof window!="undefined",ct=(e,t=!1)=>t?Symbol.for(e):Symbol(e),Fa=(e,t,n)=>$a({l:e,k:t,s:n}),$a=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),he=e=>typeof e=="number"&&isFinite(e),Ua=e=>Zo(e)==="[object Date]",Jn=e=>Zo(e)==="[object RegExp]",Qn=e=>Y(e)&&Object.keys(e).length===0,Ne=Object.assign;let qo;const Gr=()=>qo||(qo=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{});function Jo(e){return e.replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}const Va=Object.prototype.hasOwnProperty;function Zn(e,t){return Va.call(e,t)}const de=Array.isArray,le=e=>typeof e=="function",U=e=>typeof e=="string",se=e=>typeof e=="boolean",Q=e=>e!==null&&typeof e=="object",Ha=e=>Q(e)&&le(e.then)&&le(e.catch),Qo=Object.prototype.toString,Zo=e=>Qo.call(e),Y=e=>{if(!Q(e))return!1;const t=Object.getPrototypeOf(e);return t===null||t.constructor===Object},Wa=e=>e==null?"":de(e)||Y(e)&&e.toString===Qo?JSON.stringify(e,null,2):String(e);function ja(e,t=""){return e.reduce((n,r,s)=>s===0?n+r:n+t+r,"")}function Xr(e){let t=e;return()=>++t}function Ka(e,t){typeof console!="undefined"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const zn=e=>!Q(e)||de(e);function er(e,t){if(zn(e)||zn(t))throw new Error("Invalid value");const n=[{src:e,des:t}];for(;n.length;){const{src:r,des:s}=n.pop();Object.keys(r).forEach(o=>{zn(r[o])||zn(s[o])?s[o]=r[o]:n.push({src:r[o],des:s[o]})})}}/*! * message-compiler v9.9.1 * (c) 2024 kazuya kawaguchi * Released under the MIT License. */function Ba(e,t,n){return{line:e,column:t,offset:n}}function qr(e,t,n){const r={start:e,end:t};return n!=null&&(r.source=n),r}const Ya=/\{([0-9a-zA-Z]+)\}/g;function Ga(e,...t){return t.length===1&&Xa(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(Ya,(n,r)=>t.hasOwnProperty(r)?t[r]:"")}const zo=Object.assign,ei=e=>typeof e=="string",Xa=e=>e!==null&&typeof e=="object";function ti(e,t=""){return e.reduce((n,r,s)=>s===0?n+r:n+t+r,"")}const W={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16,__EXTEND_POINT__:17},qa={[W.EXPECTED_TOKEN]:"Expected token: '{0}'",[W.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[W.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[W.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[W.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[W.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[W.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[W.EMPTY_PLACEHOLDER]:"Empty placeholder",[W.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[W.INVALID_LINKED_FORMAT]:"Invalid linked format",[W.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[W.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[W.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[W.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[W.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[W.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function Gt(e,t,n={}){const{domain:r,messages:s,args:o}=n,i=Ga((s||qa)[e]||"",...o||[]),u=new SyntaxError(String(i));return u.code=e,t&&(u.location=t),u.domain=r,u}function Ja(e){throw e}const at=" ",Qa="\r",Oe=` `,Za=String.fromCharCode(8232),za=String.fromCharCode(8233);function eu(e){const t=e;let n=0,r=1,s=1,o=0;const i=V=>t[V]===Qa&&t[V+1]===Oe,u=V=>t[V]===Oe,c=V=>t[V]===za,f=V=>t[V]===Za,p=V=>i(V)||u(V)||c(V)||f(V),g=()=>n,y=()=>r,O=()=>s,D=()=>o,R=V=>i(V)||c(V)||f(V)?Oe:t[V],A=()=>R(n),m=()=>R(n+o);function L(){return o=0,p(n)&&(r++,s=0),i(n)&&n++,n++,s++,t[n]}function v(){return i(n+o)&&o++,o++,t[n+o]}function T(){n=0,r=1,s=1,o=0}function x(V=0){o=V}function C(){const V=n+o;for(;V!==n;)L();o=0}return{index:g,line:y,column:O,peekOffset:D,charAt:R,currentChar:A,currentPeek:m,next:L,peek:v,reset:T,resetPeek:x,skipToPeek:C}}const Nt=void 0,tu=".",ni="'",nu="tokenizer";function ru(e,t={}){const n=t.location!==!1,r=eu(e),s=()=>r.index(),o=()=>Ba(r.line(),r.column(),r.index()),i=o(),u=s(),c={currentType:14,offset:u,startLoc:i,endLoc:i,lastType:14,lastOffset:u,lastStartLoc:i,lastEndLoc:i,braceNest:0,inLinked:!1,text:""},f=()=>c,{onError:p}=t;function g(l,a,d,..._){const E=f();if(a.column+=d,a.offset+=d,p){const N=n?qr(E.startLoc,a):null,I=Gt(l,N,{domain:nu,args:_});p(I)}}function y(l,a,d){l.endLoc=o(),l.currentType=a;const _={type:a};return n&&(_.loc=qr(l.startLoc,l.endLoc)),d!=null&&(_.value=d),_}const O=l=>y(l,14);function D(l,a){return l.currentChar()===a?(l.next(),a):(g(W.EXPECTED_TOKEN,o(),0,a),"")}function R(l){let a="";for(;l.currentPeek()===at||l.currentPeek()===Oe;)a+=l.currentPeek(),l.peek();return a}function A(l){const a=R(l);return l.skipToPeek(),a}function m(l){if(l===Nt)return!1;const a=l.charCodeAt(0);return a>=97&&a<=122||a>=65&&a<=90||a===95}function L(l){if(l===Nt)return!1;const a=l.charCodeAt(0);return a>=48&&a<=57}function v(l,a){const{currentType:d}=a;if(d!==2)return!1;R(l);const _=m(l.currentPeek());return l.resetPeek(),_}function T(l,a){const{currentType:d}=a;if(d!==2)return!1;R(l);const _=l.currentPeek()==="-"?l.peek():l.currentPeek(),E=L(_);return l.resetPeek(),E}function x(l,a){const{currentType:d}=a;if(d!==2)return!1;R(l);const _=l.currentPeek()===ni;return l.resetPeek(),_}function C(l,a){const{currentType:d}=a;if(d!==8)return!1;R(l);const _=l.currentPeek()===".";return l.resetPeek(),_}function V(l,a){const{currentType:d}=a;if(d!==9)return!1;R(l);const _=m(l.currentPeek());return l.resetPeek(),_}function k(l,a){const{currentType:d}=a;if(!(d===8||d===12))return!1;R(l);const _=l.currentPeek()===":";return l.resetPeek(),_}function re(l,a){const{currentType:d}=a;if(d!==10)return!1;const _=()=>{const N=l.currentPeek();return N==="{"?m(l.peek()):N==="@"||N==="%"||N==="|"||N===":"||N==="."||N===at||!N?!1:N===Oe?(l.peek(),_()):m(N)},E=_();return l.resetPeek(),E}function ce(l){R(l);const a=l.currentPeek()==="|";return l.resetPeek(),a}function ve(l){const a=R(l),d=l.currentPeek()==="%"&&l.peek()==="{";return l.resetPeek(),{isModulo:d,hasSpace:a.length>0}}function fe(l,a=!0){const d=(E=!1,N="",I=!1)=>{const w=l.currentPeek();return w==="{"?N==="%"?!1:E:w==="@"||!w?N==="%"?!0:E:w==="%"?(l.peek(),d(E,"%",!0)):w==="|"?N==="%"||I?!0:!(N===at||N===Oe):w===at?(l.peek(),d(!0,at,I)):w===Oe?(l.peek(),d(!0,Oe,I)):!0},_=d();return a&&l.resetPeek(),_}function Ce(l,a){const d=l.currentChar();return d===Nt?Nt:a(d)?(l.next(),d):null}function vt(l){return Ce(l,d=>{const _=d.charCodeAt(0);return _>=97&&_<=122||_>=65&&_<=90||_>=48&&_<=57||_===95||_===36})}function Zt(l){return Ce(l,d=>{const _=d.charCodeAt(0);return _>=48&&_<=57})}function pe(l){return Ce(l,d=>{const _=d.charCodeAt(0);return _>=48&&_<=57||_>=65&&_<=70||_>=97&&_<=102})}function ee(l){let a="",d="";for(;a=Zt(l);)d+=a;return d}function Z(l){A(l);const a=l.currentChar();return a!=="%"&&g(W.EXPECTED_TOKEN,o(),0,a),l.next(),"%"}function $e(l){let a="";for(;;){const d=l.currentChar();if(d==="{"||d==="}"||d==="@"||d==="|"||!d)break;if(d==="%")if(fe(l))a+=d,l.next();else break;else if(d===at||d===Oe)if(fe(l))a+=d,l.next();else{if(ce(l))break;a+=d,l.next()}else a+=d,l.next()}return a}function Pe(l){A(l);let a="",d="";for(;a=vt(l);)d+=a;return l.currentChar()===Nt&&g(W.UNTERMINATED_CLOSING_BRACE,o(),0),d}function Ue(l){A(l);let a="";return l.currentChar()==="-"?(l.next(),a+=`-${ee(l)}`):a+=ee(l),l.currentChar()===Nt&&g(W.UNTERMINATED_CLOSING_BRACE,o(),0),a}function Re(l){A(l),D(l,"'");let a="",d="";const _=N=>N!==ni&&N!==Oe;for(;a=Ce(l,_);)a==="\\"?d+=zt(l):d+=a;const E=l.currentChar();return E===Oe||E===Nt?(g(W.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,o(),0),E===Oe&&(l.next(),D(l,"'")),d):(D(l,"'"),d)}function zt(l){const a=l.currentChar();switch(a){case"\\":case"'":return l.next(),`\\${a}`;case"u":return en(l,a,4);case"U":return en(l,a,6);default:return g(W.UNKNOWN_ESCAPE_SEQUENCE,o(),0,a),""}}function en(l,a,d){D(l,a);let _="";for(let E=0;EE!=="{"&&E!=="}"&&E!==at&&E!==Oe;for(;a=Ce(l,_);)d+=a;return d}function Ve(l){let a="",d="";for(;a=vt(l);)d+=a;return d}function Ct(l){const a=(d=!1,_)=>{const E=l.currentChar();return E==="{"||E==="%"||E==="@"||E==="|"||E==="("||E===")"||!E||E===at?_:E===Oe||E===tu?(_+=E,l.next(),a(d,_)):(_+=E,l.next(),a(!0,_))};return a(!1,"")}function ft(l){A(l);const a=D(l,"|");return A(l),a}function St(l,a){let d=null;switch(l.currentChar()){case"{":return a.braceNest>=1&&g(W.NOT_ALLOW_NEST_PLACEHOLDER,o(),0),l.next(),d=y(a,2,"{"),A(l),a.braceNest++,d;case"}":return a.braceNest>0&&a.currentType===2&&g(W.EMPTY_PLACEHOLDER,o(),0),l.next(),d=y(a,3,"}"),a.braceNest--,a.braceNest>0&&A(l),a.inLinked&&a.braceNest===0&&(a.inLinked=!1),d;case"@":return a.braceNest>0&&g(W.UNTERMINATED_CLOSING_BRACE,o(),0),d=De(l,a)||O(a),a.braceNest=0,d;default:let E=!0,N=!0,I=!0;if(ce(l))return a.braceNest>0&&g(W.UNTERMINATED_CLOSING_BRACE,o(),0),d=y(a,1,ft(l)),a.braceNest=0,a.inLinked=!1,d;if(a.braceNest>0&&(a.currentType===5||a.currentType===6||a.currentType===7))return g(W.UNTERMINATED_CLOSING_BRACE,o(),0),a.braceNest=0,dt(l,a);if(E=v(l,a))return d=y(a,5,Pe(l)),A(l),d;if(N=T(l,a))return d=y(a,6,Ue(l)),A(l),d;if(I=x(l,a))return d=y(a,7,Re(l)),A(l),d;if(!E&&!N&&!I)return d=y(a,13,bn(l)),g(W.INVALID_TOKEN_IN_PLACEHOLDER,o(),0,d.value),A(l),d;break}return d}function De(l,a){const{currentType:d}=a;let _=null;const E=l.currentChar();switch((d===8||d===9||d===12||d===10)&&(E===Oe||E===at)&&g(W.INVALID_LINKED_FORMAT,o(),0),E){case"@":return l.next(),_=y(a,8,"@"),a.inLinked=!0,_;case".":return A(l),l.next(),y(a,9,".");case":":return A(l),l.next(),y(a,10,":");default:return ce(l)?(_=y(a,1,ft(l)),a.braceNest=0,a.inLinked=!1,_):C(l,a)||k(l,a)?(A(l),De(l,a)):V(l,a)?(A(l),y(a,12,Ve(l))):re(l,a)?(A(l),E==="{"?St(l,a)||_:y(a,11,Ct(l))):(d===8&&g(W.INVALID_LINKED_FORMAT,o(),0),a.braceNest=0,a.inLinked=!1,dt(l,a))}}function dt(l,a){let d={type:14};if(a.braceNest>0)return St(l,a)||O(a);if(a.inLinked)return De(l,a)||O(a);switch(l.currentChar()){case"{":return St(l,a)||O(a);case"}":return g(W.UNBALANCED_CLOSING_BRACE,o(),0),l.next(),y(a,3,"}");case"@":return De(l,a)||O(a);default:if(ce(l))return d=y(a,1,ft(l)),a.braceNest=0,a.inLinked=!1,d;const{isModulo:E,hasSpace:N}=ve(l);if(E)return N?y(a,0,$e(l)):y(a,4,Z(l));if(fe(l))return y(a,0,$e(l));break}return d}function Mt(){const{currentType:l,offset:a,startLoc:d,endLoc:_}=c;return c.lastType=l,c.lastOffset=a,c.lastStartLoc=d,c.lastEndLoc=_,c.offset=s(),c.startLoc=o(),r.currentChar()===Nt?y(c,14):dt(r,c)}return{nextToken:Mt,currentOffset:s,currentPosition:o,context:f}}const su="parser",ou=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function iu(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const r=parseInt(t||n,16);return r<=55295||r>=57344?String.fromCodePoint(r):"\uFFFD"}}}function lu(e={}){const t=e.location!==!1,{onError:n}=e;function r(m,L,v,T,...x){const C=m.currentPosition();if(C.offset+=T,C.column+=T,n){const V=t?qr(v,C):null,k=Gt(L,V,{domain:su,args:x});n(k)}}function s(m,L,v){const T={type:m};return t&&(T.start=L,T.end=L,T.loc={start:v,end:v}),T}function o(m,L,v,T){T&&(m.type=T),t&&(m.end=L,m.loc&&(m.loc.end=v))}function i(m,L){const v=m.context(),T=s(3,v.offset,v.startLoc);return T.value=L,o(T,m.currentOffset(),m.currentPosition()),T}function u(m,L){const v=m.context(),{lastOffset:T,lastStartLoc:x}=v,C=s(5,T,x);return C.index=parseInt(L,10),m.nextToken(),o(C,m.currentOffset(),m.currentPosition()),C}function c(m,L){const v=m.context(),{lastOffset:T,lastStartLoc:x}=v,C=s(4,T,x);return C.key=L,m.nextToken(),o(C,m.currentOffset(),m.currentPosition()),C}function f(m,L){const v=m.context(),{lastOffset:T,lastStartLoc:x}=v,C=s(9,T,x);return C.value=L.replace(ou,iu),m.nextToken(),o(C,m.currentOffset(),m.currentPosition()),C}function p(m){const L=m.nextToken(),v=m.context(),{lastOffset:T,lastStartLoc:x}=v,C=s(8,T,x);return L.type!==12?(r(m,W.UNEXPECTED_EMPTY_LINKED_MODIFIER,v.lastStartLoc,0),C.value="",o(C,T,x),{nextConsumeToken:L,node:C}):(L.value==null&&r(m,W.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,tt(L)),C.value=L.value||"",o(C,m.currentOffset(),m.currentPosition()),{node:C})}function g(m,L){const v=m.context(),T=s(7,v.offset,v.startLoc);return T.value=L,o(T,m.currentOffset(),m.currentPosition()),T}function y(m){const L=m.context(),v=s(6,L.offset,L.startLoc);let T=m.nextToken();if(T.type===9){const x=p(m);v.modifier=x.node,T=x.nextConsumeToken||m.nextToken()}switch(T.type!==10&&r(m,W.UNEXPECTED_LEXICAL_ANALYSIS,L.lastStartLoc,0,tt(T)),T=m.nextToken(),T.type===2&&(T=m.nextToken()),T.type){case 11:T.value==null&&r(m,W.UNEXPECTED_LEXICAL_ANALYSIS,L.lastStartLoc,0,tt(T)),v.key=g(m,T.value||"");break;case 5:T.value==null&&r(m,W.UNEXPECTED_LEXICAL_ANALYSIS,L.lastStartLoc,0,tt(T)),v.key=c(m,T.value||"");break;case 6:T.value==null&&r(m,W.UNEXPECTED_LEXICAL_ANALYSIS,L.lastStartLoc,0,tt(T)),v.key=u(m,T.value||"");break;case 7:T.value==null&&r(m,W.UNEXPECTED_LEXICAL_ANALYSIS,L.lastStartLoc,0,tt(T)),v.key=f(m,T.value||"");break;default:r(m,W.UNEXPECTED_EMPTY_LINKED_KEY,L.lastStartLoc,0);const x=m.context(),C=s(7,x.offset,x.startLoc);return C.value="",o(C,x.offset,x.startLoc),v.key=C,o(v,x.offset,x.startLoc),{nextConsumeToken:T,node:v}}return o(v,m.currentOffset(),m.currentPosition()),{node:v}}function O(m){const L=m.context(),v=L.currentType===1?m.currentOffset():L.offset,T=L.currentType===1?L.endLoc:L.startLoc,x=s(2,v,T);x.items=[];let C=null;do{const re=C||m.nextToken();switch(C=null,re.type){case 0:re.value==null&&r(m,W.UNEXPECTED_LEXICAL_ANALYSIS,L.lastStartLoc,0,tt(re)),x.items.push(i(m,re.value||""));break;case 6:re.value==null&&r(m,W.UNEXPECTED_LEXICAL_ANALYSIS,L.lastStartLoc,0,tt(re)),x.items.push(u(m,re.value||""));break;case 5:re.value==null&&r(m,W.UNEXPECTED_LEXICAL_ANALYSIS,L.lastStartLoc,0,tt(re)),x.items.push(c(m,re.value||""));break;case 7:re.value==null&&r(m,W.UNEXPECTED_LEXICAL_ANALYSIS,L.lastStartLoc,0,tt(re)),x.items.push(f(m,re.value||""));break;case 8:const ce=y(m);x.items.push(ce.node),C=ce.nextConsumeToken||null;break}}while(L.currentType!==14&&L.currentType!==1);const V=L.currentType===1?L.lastOffset:m.currentOffset(),k=L.currentType===1?L.lastEndLoc:m.currentPosition();return o(x,V,k),x}function D(m,L,v,T){const x=m.context();let C=T.items.length===0;const V=s(1,L,v);V.cases=[],V.cases.push(T);do{const k=O(m);C||(C=k.items.length===0),V.cases.push(k)}while(x.currentType!==14);return C&&r(m,W.MUST_HAVE_MESSAGES_IN_PLURAL,v,0),o(V,m.currentOffset(),m.currentPosition()),V}function R(m){const L=m.context(),{offset:v,startLoc:T}=L,x=O(m);return L.currentType===14?x:D(m,v,T,x)}function A(m){const L=ru(m,zo({},e)),v=L.context(),T=s(0,v.offset,v.startLoc);return t&&T.loc&&(T.loc.source=m),T.body=R(L),e.onCacheKey&&(T.cacheKey=e.onCacheKey(m)),v.currentType!==14&&r(L,W.UNEXPECTED_LEXICAL_ANALYSIS,v.lastStartLoc,0,m[v.offset]||""),o(T,L.currentOffset(),L.currentPosition()),T}return{parse:A}}function tt(e){if(e.type===14)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"\u2026":t}function cu(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:o=>(n.helpers.add(o),o)}}function ri(e,t){for(let n=0;nsi(n)),e}function si(e){if(e.items.length===1){const t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{const t=[];for(let n=0;nu;function f(A,m){u.code+=A}function p(A,m=!0){const L=m?s:"";f(o?L+" ".repeat(A):L)}function g(A=!0){const m=++u.indentLevel;A&&p(m)}function y(A=!0){const m=--u.indentLevel;A&&p(m)}function O(){p(u.indentLevel)}return{context:c,push:f,indent:g,deindent:y,newline:O,helper:A=>`_${A}`,needIndent:()=>u.needIndent}}function _u(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),qt(e,t.key),t.modifier?(e.push(", "),qt(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function hu(e,t){const{helper:n,needIndent:r}=e;e.push(`${n("normalize")}([`),e.indent(r());const s=t.items.length;for(let o=0;o1){e.push(`${n("plural")}([`),e.indent(r());const s=t.cases.length;for(let o=0;o{const n=ei(t.mode)?t.mode:"normal",r=ei(t.filename)?t.filename:"message.intl",s=!!t.sourceMap,o=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":` `,i=t.needIndent?t.needIndent:n!=="arrow",u=e.helpers||[],c=pu(e,{mode:n,filename:r,sourceMap:s,breakLineCode:o,needIndent:i});c.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),c.indent(i),u.length>0&&(c.push(`const { ${ti(u.map(g=>`${g}: _${g}`),", ")} } = ctx`),c.newline()),c.push("return "),qt(c,e),c.deindent(i),c.push("}"),delete e.helpers;const{code:f,map:p}=c.context();return{ast:e,code:f,map:p?p.toJSON():void 0}};function yu(e,t={}){const n=zo({},t),r=!!n.jit,s=!!n.minify,o=n.optimize==null?!0:n.optimize,u=lu(n).parse(e);return r?(o&&uu(u),s&&Xt(u),{ast:u,code:""}):(au(u,n),Eu(u,n))}/*! * core-base v9.9.1 * (c) 2024 kazuya kawaguchi * Released under the MIT License. */function bu(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Gr().__INTLIFY_PROD_DEVTOOLS__=!1)}const Lt=[];Lt[0]={w:[0],i:[3,0],["["]:[4],o:[7]},Lt[1]={w:[1],["."]:[2],["["]:[4],o:[7]},Lt[2]={w:[2],i:[3,0],[0]:[3,0]},Lt[3]={i:[3,0],[0]:[3,0],w:[1,1],["."]:[2,1],["["]:[4,1],o:[7,1]},Lt[4]={["'"]:[5,0],['"']:[6,0],["["]:[4,2],["]"]:[1,3],o:8,l:[4,0]},Lt[5]={["'"]:[4,0],o:8,l:[5,0]},Lt[6]={['"']:[4,0],o:8,l:[6,0]};const Tu=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Nu(e){return Tu.test(e)}function Lu(e){const t=e.charCodeAt(0),n=e.charCodeAt(e.length-1);return t===n&&(t===34||t===39)?e.slice(1,-1):e}function Ou(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function vu(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:Nu(t)?Lu(t):"*"+t}function Cu(e){const t=[];let n=-1,r=0,s=0,o,i,u,c,f,p,g;const y=[];y[0]=()=>{i===void 0?i=u:i+=u},y[1]=()=>{i!==void 0&&(t.push(i),i=void 0)},y[2]=()=>{y[0](),s++},y[3]=()=>{if(s>0)s--,r=4,y[0]();else{if(s=0,i===void 0||(i=vu(i),i===!1))return!1;y[1]()}};function O(){const D=e[n+1];if(r===5&&D==="'"||r===6&&D==='"')return n++,u="\\"+D,y[0](),!0}for(;r!==null;)if(n++,o=e[n],!(o==="\\"&&O())){if(c=Ou(o),g=Lt[r],f=g[c]||g.l||8,f===8||(r=f[0],f[1]!==void 0&&(p=y[f[1]],p&&(u=o,p()===!1))))return;if(r===7)return t}}const oi=new Map;function Su(e,t){return Q(e)?e[t]:null}function wu(e,t){if(!Q(e))return null;let n=oi.get(t);if(n||(n=Cu(t),n&&oi.set(t,n)),!n)return null;const r=n.length;let s=e,o=0;for(;oe,Au=e=>"",Pu="text",Ru=e=>e.length===0?"":ja(e),xu=Wa;function ii(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function Du(e){const t=he(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(he(e.named.count)||he(e.named.n))?he(e.named.count)?e.named.count:he(e.named.n)?e.named.n:t:t}function ku(e,t){t.count||(t.count=e),t.n||(t.n=e)}function Mu(e={}){const t=e.locale,n=Du(e),r=Q(e.pluralRules)&&U(t)&&le(e.pluralRules[t])?e.pluralRules[t]:ii,s=Q(e.pluralRules)&&U(t)&&le(e.pluralRules[t])?ii:void 0,o=m=>m[r(n,m.length,s)],i=e.list||[],u=m=>i[m],c=e.named||{};he(e.pluralIndex)&&ku(n,c);const f=m=>c[m];function p(m){const L=le(e.messages)?e.messages(m):Q(e.messages)?e.messages[m]:!1;return L||(e.parent?e.parent.message(m):Au)}const g=m=>e.modifiers?e.modifiers[m]:Iu,y=Y(e.processor)&&le(e.processor.normalize)?e.processor.normalize:Ru,O=Y(e.processor)&&le(e.processor.interpolate)?e.processor.interpolate:xu,D=Y(e.processor)&&U(e.processor.type)?e.processor.type:Pu,A={list:u,named:f,plural:o,linked:(m,...L)=>{const[v,T]=L;let x="text",C="";L.length===1?Q(v)?(C=v.modifier||C,x=v.type||x):U(v)&&(C=v||C):L.length===2&&(U(v)&&(C=v||C),U(T)&&(x=T||x));const V=p(m)(A),k=x==="vnode"&&de(V)&&C?V[0]:V;return C?g(C)(k,x):k},message:p,type:D,interpolate:O,normalize:y,values:Ne({},i,c)};return A}let gn=null;function Fu(e){gn=e}function $u(e,t,n){gn&&gn.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const Uu=Vu("function:translate");function Vu(e){return t=>gn&&gn.emit(e,t)}const Hu={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:7,__EXTEND_POINT__:8},li=W.__EXTEND_POINT__,kt=Xr(li),nt={INVALID_ARGUMENT:li,INVALID_DATE_ARGUMENT:kt(),INVALID_ISO_DATE_ARGUMENT:kt(),NOT_SUPPORT_NON_STRING_MESSAGE:kt(),NOT_SUPPORT_LOCALE_PROMISE_VALUE:kt(),NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:kt(),NOT_SUPPORT_LOCALE_TYPE:kt(),__EXTEND_POINT__:kt()};function ut(e){return Gt(e,null,void 0)}function Qr(e,t){return t.locale!=null?ci(t.locale):ci(e.locale)}let Zr;function ci(e){if(U(e))return e;if(le(e)){if(e.resolvedOnce&&Zr!=null)return Zr;if(e.constructor.name==="Function"){const t=e();if(Ha(t))throw ut(nt.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return Zr=t}else throw ut(nt.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw ut(nt.NOT_SUPPORT_LOCALE_TYPE)}function Wu(e,t,n){return[...new Set([n,...de(t)?t:Q(t)?Object.keys(t):U(t)?[t]:[n]])]}function ai(e,t,n){const r=U(n)?n:nr,s=e;s.__localeChainCache||(s.__localeChainCache=new Map);let o=s.__localeChainCache.get(r);if(!o){o=[];let i=[n];for(;de(i);)i=ui(o,i,t);const u=de(t)||!Y(t)?t:t.default?t.default:null;i=U(u)?[u]:u,de(i)&&ui(o,i,!1),s.__localeChainCache.set(r,o)}return o}function ui(e,t,n){let r=!0;for(let s=0;s`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function Yu(){return{upper:(e,t)=>t==="text"&&U(e)?e.toUpperCase():t==="vnode"&&Q(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&U(e)?e.toLowerCase():t==="vnode"&&Q(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&U(e)?di(e):t==="vnode"&&Q(e)&&"__v_isVNode"in e?di(e.children):e}}let pi;function Gu(e){pi=e}let _i;function Xu(e){_i=e}let hi;function qu(e){hi=e}let mi=null;const gi=e=>{mi=e},Ju=()=>mi;let Ei=null;const yi=e=>{Ei=e},Qu=()=>Ei;let bi=0;function Zu(e={}){const t=le(e.onWarn)?e.onWarn:Ka,n=U(e.version)?e.version:Bu,r=U(e.locale)||le(e.locale)?e.locale:nr,s=le(r)?nr:r,o=de(e.fallbackLocale)||Y(e.fallbackLocale)||U(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:s,i=Y(e.messages)?e.messages:{[s]:{}},u=Y(e.datetimeFormats)?e.datetimeFormats:{[s]:{}},c=Y(e.numberFormats)?e.numberFormats:{[s]:{}},f=Ne({},e.modifiers||{},Yu()),p=e.pluralRules||{},g=le(e.missing)?e.missing:null,y=se(e.missingWarn)||Jn(e.missingWarn)?e.missingWarn:!0,O=se(e.fallbackWarn)||Jn(e.fallbackWarn)?e.fallbackWarn:!0,D=!!e.fallbackFormat,R=!!e.unresolving,A=le(e.postTranslation)?e.postTranslation:null,m=Y(e.processor)?e.processor:null,L=se(e.warnHtmlMessage)?e.warnHtmlMessage:!0,v=!!e.escapeParameter,T=le(e.messageCompiler)?e.messageCompiler:pi,x=le(e.messageResolver)?e.messageResolver:_i||Su,C=le(e.localeFallbacker)?e.localeFallbacker:hi||Wu,V=Q(e.fallbackContext)?e.fallbackContext:void 0,k=e,re=Q(k.__datetimeFormatters)?k.__datetimeFormatters:new Map,ce=Q(k.__numberFormatters)?k.__numberFormatters:new Map,ve=Q(k.__meta)?k.__meta:{};bi++;const fe={version:n,cid:bi,locale:r,fallbackLocale:o,messages:i,modifiers:f,pluralRules:p,missing:g,missingWarn:y,fallbackWarn:O,fallbackFormat:D,unresolving:R,postTranslation:A,processor:m,warnHtmlMessage:L,escapeParameter:v,messageCompiler:T,messageResolver:x,localeFallbacker:C,fallbackContext:V,onWarn:t,__meta:ve};return fe.datetimeFormats=u,fe.numberFormats=c,fe.__datetimeFormatters=re,fe.__numberFormatters=ce,__INTLIFY_PROD_DEVTOOLS__&&$u(fe,n,ve),fe}function zr(e,t,n,r,s){const{missing:o,onWarn:i}=e;if(o!==null){const u=o(e,n,t,s);return U(u)?u:t}else return t}function En(e,t,n){const r=e;r.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function es(e){return n=>zu(n,e)}function zu(e,t){const n=t.b||t.body;if((n.t||n.type)===1){const r=n,s=r.c||r.cases;return e.plural(s.reduce((o,i)=>[...o,Ti(e,i)],[]))}else return Ti(e,n)}function Ti(e,t){const n=t.s||t.static;if(n)return e.type==="text"?n:e.normalize([n]);{const r=(t.i||t.items).reduce((s,o)=>[...s,ts(e,o)],[]);return e.normalize(r)}}function ts(e,t){const n=t.t||t.type;switch(n){case 3:const r=t;return r.v||r.value;case 9:const s=t;return s.v||s.value;case 4:const o=t;return e.interpolate(e.named(o.k||o.key));case 5:const i=t;return e.interpolate(e.list(i.i!=null?i.i:i.index));case 6:const u=t,c=u.m||u.modifier;return e.linked(ts(e,u.k||u.key),c?ts(e,c):void 0,e.type);case 7:const f=t;return f.v||f.value;case 8:const p=t;return p.v||p.value;default:throw new Error(`unhandled node type on format message part: ${n}`)}}const ef=e=>e;let rr=Object.create(null);const Jt=e=>Q(e)&&(e.t===0||e.type===0)&&("b"in e||"body"in e);function tf(e,t={}){let n=!1;const r=t.onError||Ja;return t.onError=s=>{n=!0,r(s)},{...yu(e,t),detectError:n}}function nf(e,t){if(U(e)){se(t.warnHtmlMessage)&&t.warnHtmlMessage;const r=(t.onCacheKey||ef)(e),s=rr[r];if(s)return s;const{ast:o,detectError:i}=tf(e,{...t,location:!1,jit:!0}),u=es(o);return i?u:rr[r]=u}else{const n=e.cacheKey;if(n){const r=rr[n];return r||(rr[n]=es(e))}else return es(e)}}const Ni=()=>"",Me=e=>le(e);function Li(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:s,messageCompiler:o,fallbackLocale:i,messages:u}=e,[c,f]=ns(...t),p=se(f.missingWarn)?f.missingWarn:e.missingWarn,g=se(f.fallbackWarn)?f.fallbackWarn:e.fallbackWarn,y=se(f.escapeParameter)?f.escapeParameter:e.escapeParameter,O=!!f.resolvedMessage,D=U(f.default)||se(f.default)?se(f.default)?o?c:()=>c:f.default:n?o?c:()=>c:"",R=n||D!=="",A=Qr(e,f);y&&rf(f);let[m,L,v]=O?[c,A,u[A]||{}]:Oi(e,c,A,i,g,p),T=m,x=c;if(!O&&!(U(T)||Jt(T)||Me(T))&&R&&(T=D,x=T),!O&&(!(U(T)||Jt(T)||Me(T))||!U(L)))return s?tr:c;let C=!1;const V=()=>{C=!0},k=Me(T)?T:vi(e,c,L,T,x,V);if(C)return T;const re=lf(e,L,v,f),ce=Mu(re),ve=sf(e,k,ce),fe=r?r(ve,c):ve;if(__INTLIFY_PROD_DEVTOOLS__){const Ce={timestamp:Date.now(),key:U(c)?c:Me(T)?T.key:"",locale:L||(Me(T)?T.locale:""),format:U(T)?T:Me(T)?T.source:"",message:fe};Ce.meta=Ne({},e.__meta,Ju()||{}),Uu(Ce)}return fe}function rf(e){de(e.list)?e.list=e.list.map(t=>U(t)?Jo(t):t):Q(e.named)&&Object.keys(e.named).forEach(t=>{U(e.named[t])&&(e.named[t]=Jo(e.named[t]))})}function Oi(e,t,n,r,s,o){const{messages:i,onWarn:u,messageResolver:c,localeFallbacker:f}=e,p=f(e,r,n);let g={},y,O=null;const D="translate";for(let R=0;Rr;return f.locale=n,f.key=t,f}const c=i(r,of(e,n,s,r,u,o));return c.locale=n,c.key=t,c.source=r,c}function sf(e,t,n){return t(n)}function ns(...e){const[t,n,r]=e,s={};if(!U(t)&&!he(t)&&!Me(t)&&!Jt(t))throw ut(nt.INVALID_ARGUMENT);const o=he(t)?String(t):(Me(t),t);return he(n)?s.plural=n:U(n)?s.default=n:Y(n)&&!Qn(n)?s.named=n:de(n)&&(s.list=n),he(r)?s.plural=r:U(r)?s.default=r:Y(r)&&Ne(s,r),[o,s]}function of(e,t,n,r,s,o){return{locale:t,key:n,warnHtmlMessage:s,onError:i=>{throw o&&o(i),i},onCacheKey:i=>Fa(t,n,i)}}function lf(e,t,n,r){const{modifiers:s,pluralRules:o,messageResolver:i,fallbackLocale:u,fallbackWarn:c,missingWarn:f,fallbackContext:p}=e,y={locale:t,modifiers:s,pluralRules:o,messages:O=>{let D=i(n,O);if(D==null&&p){const[,,R]=Oi(p,O,t,u,c,f);D=i(R,O)}if(U(D)||Jt(D)){let R=!1;const m=vi(e,O,t,D,O,()=>{R=!0});return R?Ni:m}else return Me(D)?D:Ni}};return e.processor&&(y.processor=e.processor),r.list&&(y.list=r.list),r.named&&(y.named=r.named),he(r.plural)&&(y.pluralIndex=r.plural),y}function Ci(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:s,onWarn:o,localeFallbacker:i}=e,{__datetimeFormatters:u}=e,[c,f,p,g]=rs(...t),y=se(p.missingWarn)?p.missingWarn:e.missingWarn;se(p.fallbackWarn)?p.fallbackWarn:e.fallbackWarn;const O=!!p.part,D=Qr(e,p),R=i(e,s,D);if(!U(c)||c==="")return new Intl.DateTimeFormat(D,g).format(f);let A={},m,L=null;const v="datetime format";for(let C=0;C{Si.includes(c)?i[c]=n[c]:o[c]=n[c]}),U(r)?o.locale=r:Y(r)&&(i=r),Y(s)&&(i=s),[o.key||"",u,o,i]}function wi(e,t,n){const r=e;for(const s in n){const o=`${t}__${s}`;!r.__datetimeFormatters.has(o)||r.__datetimeFormatters.delete(o)}}function Ii(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:s,onWarn:o,localeFallbacker:i}=e,{__numberFormatters:u}=e,[c,f,p,g]=ss(...t),y=se(p.missingWarn)?p.missingWarn:e.missingWarn;se(p.fallbackWarn)?p.fallbackWarn:e.fallbackWarn;const O=!!p.part,D=Qr(e,p),R=i(e,s,D);if(!U(c)||c==="")return new Intl.NumberFormat(D,g).format(f);let A={},m,L=null;const v="number format";for(let C=0;C{Ai.includes(c)?i[c]=n[c]:o[c]=n[c]}),U(r)?o.locale=r:Y(r)&&(i=r),Y(s)&&(i=s),[o.key||"",u,o,i]}function Pi(e,t,n){const r=e;for(const s in n){const o=`${t}__${s}`;!r.__numberFormatters.has(o)||r.__numberFormatters.delete(o)}}bu();/*! * vue-i18n v9.9.1 * (c) 2024 kazuya kawaguchi * Released under the MIT License. */const cf="9.9.1";function af(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Gr().__INTLIFY_PROD_DEVTOOLS__=!1)}const Ri=Hu.__EXTEND_POINT__,Ot=Xr(Ri);Ot(),Ot(),Ot(),Ot(),Ot(),Ot(),Ot(),Ot();const xi=nt.__EXTEND_POINT__,Ae=Xr(xi),Fe={UNEXPECTED_RETURN_TYPE:xi,INVALID_ARGUMENT:Ae(),MUST_BE_CALL_SETUP_TOP:Ae(),NOT_INSTALLED:Ae(),NOT_AVAILABLE_IN_LEGACY_MODE:Ae(),REQUIRED_VALUE:Ae(),INVALID_VALUE:Ae(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:Ae(),NOT_INSTALLED_WITH_PROVIDE:Ae(),UNEXPECTED_ERROR:Ae(),NOT_COMPATIBLE_LEGACY_VUE_I18N:Ae(),BRIDGE_SUPPORT_VUE_2_ONLY:Ae(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:Ae(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:Ae(),__EXTEND_POINT__:Ae()};function qe(e,...t){return Gt(e,null,void 0)}const os=ct("__translateVNode"),is=ct("__datetimeParts"),ls=ct("__numberParts"),uf=ct("__setPluralRules");ct("__intlifyMeta");const ff=ct("__injectWithOption"),cs=ct("__dispose");function yn(e){if(!Q(e))return e;for(const t in e)if(!!Zn(e,t))if(!t.includes("."))Q(e[t])&&yn(e[t]);else{const n=t.split("."),r=n.length-1;let s=e,o=!1;for(let i=0;i{if("locale"in u&&"resource"in u){const{locale:c,resource:f}=u;c?(i[c]=i[c]||{},er(f,i[c])):er(f,i)}else U(u)&&er(JSON.parse(u),i)}),s==null&&o)for(const u in i)Zn(i,u)&&yn(i[u]);return i}function ki(e){return e.type}function df(e,t,n){let r=Q(t.messages)?t.messages:{};"__i18nGlobal"in n&&(r=Di(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const s=Object.keys(r);s.length&&s.forEach(o=>{e.mergeLocaleMessage(o,r[o])});{if(Q(t.datetimeFormats)){const o=Object.keys(t.datetimeFormats);o.length&&o.forEach(i=>{e.mergeDateTimeFormat(i,t.datetimeFormats[i])})}if(Q(t.numberFormats)){const o=Object.keys(t.numberFormats);o.length&&o.forEach(i=>{e.mergeNumberFormat(i,t.numberFormats[i])})}}}function Mi(e){return be(fn,null,e,0)}const Fi="__INTLIFY_META__",$i=()=>[],pf=()=>!1;let Ui=0;function Vi(e){return(t,n,r,s)=>e(n,r,Hr()||void 0,s)}const _f=()=>{const e=Hr();let t=null;return e&&(t=ki(e)[Fi])?{[Fi]:t}:null};function Hi(e={},t){const{__root:n,__injectWithOption:r}=e,s=n===void 0,o=e.flatJson,i=qn?ie:Dl;let u=se(e.inheritLocale)?e.inheritLocale:!0;const c=i(n&&u?n.locale.value:U(e.locale)?e.locale:nr),f=i(n&&u?n.fallbackLocale.value:U(e.fallbackLocale)||de(e.fallbackLocale)||Y(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:c.value),p=i(Di(c.value,e)),g=i(Y(e.datetimeFormats)?e.datetimeFormats:{[c.value]:{}}),y=i(Y(e.numberFormats)?e.numberFormats:{[c.value]:{}});let O=n?n.missingWarn:se(e.missingWarn)||Jn(e.missingWarn)?e.missingWarn:!0,D=n?n.fallbackWarn:se(e.fallbackWarn)||Jn(e.fallbackWarn)?e.fallbackWarn:!0,R=n?n.fallbackRoot:se(e.fallbackRoot)?e.fallbackRoot:!0,A=!!e.fallbackFormat,m=le(e.missing)?e.missing:null,L=le(e.missing)?Vi(e.missing):null,v=le(e.postTranslation)?e.postTranslation:null,T=n?n.warnHtmlMessage:se(e.warnHtmlMessage)?e.warnHtmlMessage:!0,x=!!e.escapeParameter;const C=n?n.modifiers:Y(e.modifiers)?e.modifiers:{};let V=e.pluralRules||n&&n.pluralRules,k;k=(()=>{s&&yi(null);const h={version:cf,locale:c.value,fallbackLocale:f.value,messages:p.value,modifiers:C,pluralRules:V,missing:L===null?void 0:L,missingWarn:O,fallbackWarn:D,fallbackFormat:A,unresolving:!0,postTranslation:v===null?void 0:v,warnHtmlMessage:T,escapeParameter:x,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};h.datetimeFormats=g.value,h.numberFormats=y.value,h.__datetimeFormatters=Y(k)?k.__datetimeFormatters:void 0,h.__numberFormatters=Y(k)?k.__numberFormatters:void 0;const b=Zu(h);return s&&yi(b),b})(),En(k,c.value,f.value);function ce(){return[c.value,f.value,p.value,g.value,y.value]}const ve=Xe({get:()=>c.value,set:h=>{c.value=h,k.locale=c.value}}),fe=Xe({get:()=>f.value,set:h=>{f.value=h,k.fallbackLocale=f.value,En(k,c.value,h)}}),Ce=Xe(()=>p.value),vt=Xe(()=>g.value),Zt=Xe(()=>y.value);function pe(){return le(v)?v:null}function ee(h){v=h,k.postTranslation=h}function Z(){return m}function $e(h){h!==null&&(L=Vi(h)),m=h,k.missing=L}const Pe=(h,b,$,H,q,oe)=>{ce();let me;try{__INTLIFY_PROD_DEVTOOLS__&&gi(_f()),s||(k.fallbackContext=n?Qu():void 0),me=h(k)}finally{__INTLIFY_PROD_DEVTOOLS__&&gi(null),s||(k.fallbackContext=void 0)}if($!=="translate exists"&&he(me)&&me===tr||$==="translate exists"&&!me){const[wt,ds]=b();return n&&R?H(n):q(wt)}else{if(oe(me))return me;throw qe(Fe.UNEXPECTED_RETURN_TYPE)}};function Ue(...h){return Pe(b=>Reflect.apply(Li,null,[b,...h]),()=>ns(...h),"translate",b=>Reflect.apply(b.t,b,[...h]),b=>b,b=>U(b))}function Re(...h){const[b,$,H]=h;if(H&&!Q(H))throw qe(Fe.INVALID_ARGUMENT);return Ue(b,$,Ne({resolvedMessage:!0},H||{}))}function zt(...h){return Pe(b=>Reflect.apply(Ci,null,[b,...h]),()=>rs(...h),"datetime format",b=>Reflect.apply(b.d,b,[...h]),()=>fi,b=>U(b))}function en(...h){return Pe(b=>Reflect.apply(Ii,null,[b,...h]),()=>ss(...h),"number format",b=>Reflect.apply(b.n,b,[...h]),()=>fi,b=>U(b))}function bn(h){return h.map(b=>U(b)||he(b)||se(b)?Mi(String(b)):b)}const Ct={normalize:bn,interpolate:h=>h,type:"vnode"};function ft(...h){return Pe(b=>{let $;const H=b;try{H.processor=Ct,$=Reflect.apply(Li,null,[H,...h])}finally{H.processor=null}return $},()=>ns(...h),"translate",b=>b[os](...h),b=>[Mi(b)],b=>de(b))}function St(...h){return Pe(b=>Reflect.apply(Ii,null,[b,...h]),()=>ss(...h),"number format",b=>b[ls](...h),$i,b=>U(b)||de(b))}function De(...h){return Pe(b=>Reflect.apply(Ci,null,[b,...h]),()=>rs(...h),"datetime format",b=>b[is](...h),$i,b=>U(b)||de(b))}function dt(h){V=h,k.pluralRules=V}function Mt(h,b){return Pe(()=>{if(!h)return!1;const $=U(b)?b:c.value,H=d($),q=k.messageResolver(H,h);return Jt(q)||Me(q)||U(q)},()=>[h],"translate exists",$=>Reflect.apply($.te,$,[h,b]),pf,$=>se($))}function l(h){let b=null;const $=ai(k,f.value,c.value);for(let H=0;H<$.length;H++){const q=p.value[$[H]]||{},oe=k.messageResolver(q,h);if(oe!=null){b=oe;break}}return b}function a(h){const b=l(h);return b!=null?b:n?n.tm(h)||{}:{}}function d(h){return p.value[h]||{}}function _(h,b){if(o){const $={[h]:b};for(const H in $)Zn($,H)&&yn($[H]);b=$[h]}p.value[h]=b,k.messages=p.value}function E(h,b){p.value[h]=p.value[h]||{};const $={[h]:b};if(o)for(const H in $)Zn($,H)&&yn($[H]);b=$[h],er(b,p.value[h]),k.messages=p.value}function N(h){return g.value[h]||{}}function I(h,b){g.value[h]=b,k.datetimeFormats=g.value,wi(k,h,b)}function w(h,b){g.value[h]=Ne(g.value[h]||{},b),k.datetimeFormats=g.value,wi(k,h,b)}function P(h){return y.value[h]||{}}function S(h,b){y.value[h]=b,k.numberFormats=y.value,Pi(k,h,b)}function F(h,b){y.value[h]=Ne(y.value[h]||{},b),k.numberFormats=y.value,Pi(k,h,b)}Ui++,n&&qn&&(Kt(n.locale,h=>{u&&(c.value=h,k.locale=h,En(k,c.value,f.value))}),Kt(n.fallbackLocale,h=>{u&&(f.value=h,k.fallbackLocale=h,En(k,c.value,f.value))}));const M={id:Ui,locale:ve,fallbackLocale:fe,get inheritLocale(){return u},set inheritLocale(h){u=h,h&&n&&(c.value=n.locale.value,f.value=n.fallbackLocale.value,En(k,c.value,f.value))},get availableLocales(){return Object.keys(p.value).sort()},messages:Ce,get modifiers(){return C},get pluralRules(){return V||{}},get isGlobal(){return s},get missingWarn(){return O},set missingWarn(h){O=h,k.missingWarn=O},get fallbackWarn(){return D},set fallbackWarn(h){D=h,k.fallbackWarn=D},get fallbackRoot(){return R},set fallbackRoot(h){R=h},get fallbackFormat(){return A},set fallbackFormat(h){A=h,k.fallbackFormat=A},get warnHtmlMessage(){return T},set warnHtmlMessage(h){T=h,k.warnHtmlMessage=h},get escapeParameter(){return x},set escapeParameter(h){x=h,k.escapeParameter=h},t:Ue,getLocaleMessage:d,setLocaleMessage:_,mergeLocaleMessage:E,getPostTranslationHandler:pe,setPostTranslationHandler:ee,getMissingHandler:Z,setMissingHandler:$e,[uf]:dt};return M.datetimeFormats=vt,M.numberFormats=Zt,M.rt=Re,M.te=Mt,M.tm=a,M.d=zt,M.n=en,M.getDateTimeFormat=N,M.setDateTimeFormat=I,M.mergeDateTimeFormat=w,M.getNumberFormat=P,M.setNumberFormat=S,M.mergeNumberFormat=F,M[ff]=r,M[os]=ft,M[is]=De,M[ls]=St,M}const as={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function hf({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((r,s)=>[...r,...s.type===xe?s.children:[s]],[]):t.reduce((n,r)=>{const s=e[r];return s&&(n[r]=s()),n},{})}function Wi(e){return xe}const ji=Ye({name:"i18n-t",props:Ne({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>he(e)||!isNaN(e)}},as),setup(e,t){const{slots:n,attrs:r}=t,s=e.i18n||us({useScope:e.scope,__useComponent:!0});return()=>{const o=Object.keys(n).filter(g=>g!=="_"),i={};e.locale&&(i.locale=e.locale),e.plural!==void 0&&(i.plural=U(e.plural)?+e.plural:e.plural);const u=hf(t,o),c=s[os](e.keypath,u,i),f=Ne({},r),p=U(e.tag)||Q(e.tag)?e.tag:Wi();return Fo(p,f,c)}}});function mf(e){return de(e)&&!U(e[0])}function Ki(e,t,n,r){const{slots:s,attrs:o}=t;return()=>{const i={part:!0};let u={};e.locale&&(i.locale=e.locale),U(e.format)?i.key=e.format:Q(e.format)&&(U(e.format.key)&&(i.key=e.format.key),u=Object.keys(e.format).reduce((y,O)=>n.includes(O)?Ne({},y,{[O]:e.format[O]}):y,{}));const c=r(e.value,i,u);let f=[i.key];de(c)?f=c.map((y,O)=>{const D=s[y.type],R=D?D({[y.type]:y.value,index:O,parts:c}):[y.value];return mf(R)&&(R[0].key=`${y.type}-${O}`),R}):U(c)&&(f=[c]);const p=Ne({},o),g=U(e.tag)||Q(e.tag)?e.tag:Wi();return Fo(g,p,f)}}const Bi=Ye({name:"i18n-n",props:Ne({value:{type:Number,required:!0},format:{type:[String,Object]}},as),setup(e,t){const n=e.i18n||us({useScope:"parent",__useComponent:!0});return Ki(e,t,Ai,(...r)=>n[ls](...r))}}),Yi=Ye({name:"i18n-d",props:Ne({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},as),setup(e,t){const n=e.i18n||us({useScope:"parent",__useComponent:!0});return Ki(e,t,Si,(...r)=>n[is](...r))}});function gf(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const r=n.__getInstance(t);return r!=null?r.__composer:e.global.__composer}}function Ef(e){const t=i=>{const{instance:u,modifiers:c,value:f}=i;if(!u||!u.$)throw qe(Fe.UNEXPECTED_ERROR);const p=gf(e,u.$),g=Gi(f);return[Reflect.apply(p.t,p,[...Xi(g)]),p]};return{created:(i,u)=>{const[c,f]=t(u);qn&&e.global===f&&(i.__i18nWatcher=Kt(f.locale,()=>{u.instance&&u.instance.$forceUpdate()})),i.__composer=f,i.textContent=c},unmounted:i=>{qn&&i.__i18nWatcher&&(i.__i18nWatcher(),i.__i18nWatcher=void 0,delete i.__i18nWatcher),i.__composer&&(i.__composer=void 0,delete i.__composer)},beforeUpdate:(i,{value:u})=>{if(i.__composer){const c=i.__composer,f=Gi(u);i.textContent=Reflect.apply(c.t,c,[...Xi(f)])}},getSSRProps:i=>{const[u]=t(i);return{textContent:u}}}}function Gi(e){if(U(e))return{path:e};if(Y(e)){if(!("path"in e))throw qe(Fe.REQUIRED_VALUE,"path");return e}else throw qe(Fe.INVALID_VALUE)}function Xi(e){const{path:t,locale:n,args:r,choice:s,plural:o}=e,i={},u=r||{};return U(n)&&(i.locale=n),he(s)&&(i.plural=s),he(o)&&(i.plural=o),[t,u,i]}function yf(e,t,...n){const r=Y(n[0])?n[0]:{},s=!!r.useI18nComponentName;(se(r.globalInstall)?r.globalInstall:!0)&&([s?"i18n":ji.name,"I18nT"].forEach(i=>e.component(i,ji)),[Bi.name,"I18nN"].forEach(i=>e.component(i,Bi)),[Yi.name,"I18nD"].forEach(i=>e.component(i,Yi))),e.directive("t",Ef(t))}const bf=ct("global-vue-i18n");function Tf(e={},t){const n=se(e.globalInjection)?e.globalInjection:!0,r=!0,s=new Map,[o,i]=Nf(e),u=ct("");function c(g){return s.get(g)||null}function f(g,y){s.set(g,y)}function p(g){s.delete(g)}{const g={get mode(){return"composition"},get allowComposition(){return r},async install(y,...O){if(y.__VUE_I18N_SYMBOL__=u,y.provide(y.__VUE_I18N_SYMBOL__,g),Y(O[0])){const A=O[0];g.__composerExtend=A.__composerExtend,g.__vueI18nExtend=A.__vueI18nExtend}let D=null;n&&(D=Af(y,g.global)),yf(y,g,...O);const R=y.unmount;y.unmount=()=>{D&&D(),g.dispose(),R()}},get global(){return i},dispose(){o.stop()},__instances:s,__getInstance:c,__setInstance:f,__deleteInstance:p};return g}}function us(e={}){const t=Hr();if(t==null)throw qe(Fe.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw qe(Fe.NOT_INSTALLED);const n=Lf(t),r=vf(n),s=ki(t),o=Of(e,s);if(o==="global")return df(r,e,s),r;if(o==="parent"){let c=Cf(n,t,e.__useComponent);return c==null&&(c=r),c}const i=n;let u=i.__getInstance(t);if(u==null){const c=Ne({},e);"__i18n"in s&&(c.__i18n=s.__i18n),r&&(c.__root=r),u=Hi(c),i.__composerExtend&&(u[cs]=i.__composerExtend(u)),wf(i,t,u),i.__setInstance(t,u)}return u}function Nf(e,t,n){const r=ul();{const s=r.run(()=>Hi(e));if(s==null)throw qe(Fe.UNEXPECTED_ERROR);return[r,s]}}function Lf(e){{const t=un(e.isCE?bf:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw qe(e.isCE?Fe.NOT_INSTALLED_WITH_PROVIDE:Fe.UNEXPECTED_ERROR);return t}}function Of(e,t){return Qn(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function vf(e){return e.mode==="composition"?e.global:e.global.__composer}function Cf(e,t,n=!1){let r=null;const s=t.root;let o=Sf(t,n);for(;o!=null;){const i=e;if(e.mode==="composition"&&(r=i.__getInstance(o)),r!=null||s===o)break;o=o.parent}return r}function Sf(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function wf(e,t,n){yt(()=>{},t),wr(()=>{const r=n;e.__deleteInstance(t);const s=r[cs];s&&(s(),delete r[cs])},t)}const If=["locale","fallbackLocale","availableLocales"],qi=["t","rt","d","n","tm","te"];function Af(e,t){const n=Object.create(null);return If.forEach(s=>{const o=Object.getOwnPropertyDescriptor(t,s);if(!o)throw qe(Fe.UNEXPECTED_ERROR);const i=Ee(o.value)?{get(){return o.value.value},set(u){o.value.value=u}}:{get(){return o.get&&o.get()}};Object.defineProperty(n,s,i)}),e.config.globalProperties.$i18n=n,qi.forEach(s=>{const o=Object.getOwnPropertyDescriptor(t,s);if(!o||!o.value)throw qe(Fe.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${s}`,o)}),()=>{delete e.config.globalProperties.$i18n,qi.forEach(s=>{delete e.config.globalProperties[`$${s}`]})}}if(af(),Gu(nf),Xu(wu),qu(ai),__INTLIFY_PROD_DEVTOOLS__){const e=Gr();e.__INTLIFY__=!0,Fu(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}var Pf={welcome:"Bienvenue",widget:{stars:{title:"Stars",reviewOf:"AVIS",review:"avis"},hover:{title:"Hover",reviewOf:"AVIS"},label:{title:"Label",knowMore:"En savoir plus"},hundredscore:{title:"Hundred Score"}},populations:{"at-work":"Salari\xE9s",engagement:"Salari\xE9s",employees:"Salari\xE9s",candidates:"Candidats",trainees:"Stagiaires",students:"\xC9tudiants",clients:"Clients"}},Rf={welcome:"Welcome",widget:{stars:{title:"Stars",reviewOf:"REVIEWS",review:"reviews"},hover:{title:"Hover",reviewOf:"REVIEWS"},label:{title:"Label",knowMore:"Learn more"},hundredscore:{title:"Hundred Score"}},populations:{"at-work":"Employees",engagement:"Employees",employees:"Employees",candidates:"Candidates",trainees:"Trainees",students:"Students",clients:"Clients"}},xf={welcome:"Velkommen",widget:{stars:{title:"Stjerner",reviewOf:"ANMELDELSER",review:"anmeldelser"},hover:{title:"Sv\xE6ve",reviewOf:""},label:{title:"M\xE6rkat",knowMore:"L\xE6r mere"},hundredscore:{title:"Hundred Score"}},populations:{"at-work":"Ansatte",engagement:"Ansatte",employees:"Ansatte",candidates:"Kandidater",trainees:"Praktikanter",students:"Studerende",clients:"Kunder"}},Df={welcome:"Willkommen",widget:{stars:{title:"Sterne",reviewOf:"BEWERTUNGEN",review:"bewertungen"},hover:{title:"Schweben",reviewOf:""},label:{title:"Etikett",knowMore:"Mehr erfahren"},hundredscore:{title:"Hundert Punkte"}},populations:{"at-work":"Besch\xE4ftigte",engagement:"Besch\xE4ftigte",employees:"Besch\xE4ftigte",candidates:"Kandidaten",trainees:"Praktikanten",students:"Studenten",clients:"Kunden"}},kf={welcome:"Bienvenido",widget:{stars:{title:"Estrellas",reviewOf:"RESE\xD1AS",review:"rese\xF1as"},hover:{title:"Flotar",reviewOf:"RESE\xD1AS"},label:{title:"Etiqueta",knowMore:"Saber m\xE1s"},hundredscore:{title:"Cien Puntuaciones"}},populations:{"at-work":"Empleados",engagement:"Empleados",employees:"Empleados",candidates:"Candidatos",trainees:"Practicantes",students:"Estudiantes",clients:"Clientes"}},Mf={welcome:"Benvenuto",widget:{stars:{title:"Stelle",reviewOf:"RECENSIONI",review:"recensioni"},hover:{title:"Galleggiare",reviewOf:"RECENSIONI"},label:{title:"Etichetta",knowMore:"Scopri di pi\xF9"},hundredscore:{title:"Punteggio Cento"}},populations:{"at-work":"Impiegati",engagement:"Impiegati",employees:"Impiegati",candidates:"Candidati",trainees:"Tirocinanti",students:"Studenti",clients:"Clienti"}},Ff={welcome:"Bem-vindo",widget:{stars:{title:"Estrelas",reviewOf:"AVALIA\xC7\xD5ES",review:"avalia\xE7\xF5es"},hover:{title:"Pairar",reviewOf:"AVALIA\xC7\xD5ES"},label:{title:"Etiqueta",knowMore:"Saiba mais"},hundredscore:{title:"Pontua\xE7\xE3o Cem"}},populations:{"at-work":"Empregados",engagement:"Empregados",employees:"Empregados",candidates:"Candidatos",trainees:"Estagi\xE1rios",students:"Estudantes",clients:"Clientes"}};const fs=Tf({legacy:!1,locale:"fr",messages:{en:Rf,fr:Pf,da:xf,de:Df,es:kf,it:Mf,pt:Ff}}),Qt=fs.global.t.bind(fs.global),$f=fs.global.locale,Uf={class:"label"},Vf=["src"],Hf=["href","target"],Wf={class:"cmc-button"},jf={key:2},Kf=Ye({__name:"LabelWidget",props:{company:{type:Object,required:!0},type:{type:String,required:!0},lang:{type:String,default:"fr"},redirectUrl:{type:String,required:!0}},setup(e){const{companyLabel:t,error:n,isLoading:r,fetchData:s}=ka(),o=e;yt(async()=>{await s({slug:o.company.slug,type:o.type})});const i=Xe(()=>Xn.find(u=>u.label===o.type));return(u,c)=>{var f,p;return J(),ue("div",Uf,[B(r)?(J(),Qe(mn,{key:0})):B(t)?(J(),ue("div",{key:1,class:"label__container",style:We({border:"4px solid"+((f=i.value)==null?void 0:f.color)||"transparent"})},[z("img",{alt:"company-label",src:B(t).imageUrl,width:"180px",height:"240px"},null,8,Vf),z("a",{href:e.redirectUrl,target:(p=B(t))!=null&&p.hasPublicPage?"_blank":""},[z("button",Wf,ge(B(Qt)("widget.label.knowMore")),1)],8,Hf)],4)):B(n)?(J(),ue("div",jf,"Error: "+ge(B(n).message),1)):Ze("",!0)])}}}),{generateStat:Bf,ACTION_TYPE:Yf}=Gn();function Ji(){const e=ie([]),t=ie(!1),n=ie(null);return{companyHundredScores:e,isLoading:t,error:n,fetchData:async({company:s,type:o,countryCode:i})=>{const c=`https://choosemycompany.com/api-v2/companies/${s.id}/hundred-scores`,f=o?`&filter[scoreType]=${o}`:"",p=i?`&filter[countryCode]=${i}`:"",g=`&page=1&max=100&filter[periodCurrentlyVisible]=1${f}${p}`,y=`${c}?${g}`;try{t.value=!0;const D=await(await fetch(y)).json();e.value=D.data.map(R=>({companyHundredScore:R,widgetConfig:Xn.find(A=>A.label===R.scoreType)}))}catch(O){n.value=O instanceof Error?O:new Error(String(O))}finally{t.value=!1,await Bf({slug:s.slug,type:o,actionType:Yf.view})}}}}const Gf={class:"hover"},Xf={key:1,class:"hover__container"},qf={class:"avis"},Jf={class:"name"},Qf={class:"note"},Zf={class:"number"},zf={key:2},sr="1px solid ",or="#2A4F92",ed=Ye({__name:"HoverWidget",props:{company:{type:Object,required:!0},types:{type:Array,required:!0},countryCode:{type:String,default:"FR"},lang:{type:String,default:"fr"}},setup(e){const{companyHundredScores:t,isLoading:n,error:r,fetchData:s}=Ji(),o=e,i=Xe(()=>Ma.filter(c=>o.types.includes(c))),u=Xe(()=>t.value.filter(c=>i.value.includes(c.companyHundredScore.scoreType)));return yt(async()=>{await s({company:o.company,countryCode:o.countryCode})}),(c,f)=>(J(),ue("div",Gf,[B(n)?(J(),Qe(mn,{key:0})):u.value.length?(J(),ue("div",Xf,[z("div",{class:"hover-widget",style:We({borderTop:sr+or,borderLeft:sr+or,borderRight:sr+or,borderRadius:"4px"})},[(J(!0),ue(xe,null,ao(u.value,p=>(J(),ue("div",{key:p.companyHundredScore.scoreType,class:"hover-widget__line",style:We({borderBottom:sr+or,borderRadius:"0"})},[z("div",{class:"title",style:We({backgroundColor:p.widgetConfig.color})},[z("div",qf,ge(B(Qt)("widget.hover.reviewOf")),1),z("div",Jf,ge(B(Qt)(`populations.${p.widgetConfig.label}`)),1)],4),z("div",Qf,[z("div",Zf,ge(p.companyHundredScore.score),1),z("div",{class:"base",style:We({color:p.widgetConfig.color})},"/100",4)])],4))),128))],4)])):B(r)?(J(),ue("div",zf,"Error: "+ge(B(r).message),1)):Ze("",!0)]))}}),td={key:1,class:"hundredscore-widget__container"},nd={class:"hundredscore-widget-body__container"},rd=["src"],sd={key:2},od=Ye({__name:"HundredScoreWidget",props:{company:{type:Object,required:!0},type:{type:String,required:!0},countryCode:{type:String,default:"FR"},lang:{type:String,default:"fr"}},setup(e){const{companyHundredScores:t,isLoading:n,error:r,fetchData:s}=Ji(),o=e,i=Xe(()=>t.value.length&&t.value[0]||void 0);return yt(async()=>{await s({company:o.company,type:o.type,countryCode:o.countryCode})}),(u,c)=>(J(),ue("div",null,[B(n)?(J(),Qe(mn,{key:0})):i.value?(J(),ue("div",td,[z("div",nd,[z("img",{alt:"company-hundredscore",src:i.value.companyHundredScore.imageUrl,height:"75"},null,8,rd)])])):B(r)?(J(),ue("div",sd,"Error: "+ge(B(r).message),1)):Ze("",!0)]))}}),{generateStat:id,ACTION_TYPE:ld}=Gn();function cd(){const e=ie(void 0),t=ie(!1),n=ie(null);return{primaryTypeScore:e,isLoading:t,error:n,fetchData:async({company:s,label:o})=>{const u=`https://choosemycompany.com/embedded/data/company/scores.json?host=&slugs=${s.slug}`;try{t.value=!0;const f=await(await fetch(u)).json();e.value=f.data.bySlug[s.slug][o]}catch(c){n.value=c instanceof Error?c:new Error(String(c))}finally{t.value=!1,await id({slug:s.slug,type:o,actionType:ld.view})}}}}const ad={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24"},ud=["fill"],fd=["fill","clip-path"],dd=Ye({__name:"IconStar",props:{color:{type:String,required:!0},percent:{type:Number,required:!0}},setup(e){const t=e,{color:n,percent:r}=t;return(s,o)=>(J(),ue("svg",ad,[z("polygon",{points:"12 2 15.09 8.82 22 9.27 17 14.46 18.18 21.27 12 17.27 5.82 21.27 7 14.46 2 9.27 8.91 8.82 12 2",fill:B(n),opacity:"0.2"},null,8,ud),z("polygon",{points:"12 2 15.09 8.82 22 9.27 17 14.46 18.18 21.27 12 17.27 5.82 21.27 7 14.46 2 9.27 8.91 8.82 12 2",fill:B(n),"clip-path":"inset("+(100-100)+"% "+(100-B(r))+"% "+(100-100)+"%"+(100-100)+"%)",opacity:"1"},null,8,fd)]))}}),pd={class:"name"},_d={class:"container"},hd={class:"stars"},md={class:"avis"},gd={class:"stars"},Ed=z("span",null,ge("note :"),-1),yd={class:"nbEtoile"},bd=z("span",null,ge("/5"),-1),Td={key:2},Nd=Ye({__name:"StarsWidget",props:{company:{type:Object,required:!0},type:{type:String,required:!0},lang:{type:String,default:"fr"}},setup(e){const{primaryTypeScore:t,isLoading:n,error:r,fetchData:s}=cd(),o=e,i=[1,2,3,4,5],u=Xe(()=>Xn.find(c=>c.label===o.type));return yt(async()=>{await s({company:o.company,label:o.type})}),(c,f)=>(J(),ue("div",null,[B(n)?(J(),Qe(mn,{key:0})):Ze("",!0),B(t)&&u.value?(J(),ue("div",{key:1,class:"stars-widget",style:We({border:"1px solid "+u.value.color})},[z("div",{class:"title",style:We({backgroundColor:u.value.color})},[z("div",null,ge(B(Qt)("widget.stars.reviewOf")),1),z("div",pd,ge(B(Qt)(`populations.${u.value.label}`)),1)],4),z("div",_d,[z("div",hd,[(J(),ue(xe,null,ao(i,p=>z("span",{key:p,class:"star"},[be(dd,{color:u.value.color,percent:B(t).score>p?100:Math.round((B(t).score-(p-1))*100)},null,8,["color","percent"])])),64))]),z("div",{class:"footer",style:We({color:u.value.color})},[z("div",md,ge(B(t).participantCount)+" "+ge(B(Qt)("widget.stars.review")),1),z("div",gd,[Ed,z("span",yd,ge(B(t).score),1),bd])],4)])],4)):B(r)?(J(),ue("div",Td,"Error: "+ge(B(r).message),1)):Ze("",!0)]))}});var Ld=`.widget-factory{width:min-content}.container{background-color:#fff}a{color:inherit;text-decoration:inherit}.cmc-button{font-size:.8rem;padding:2px 8px;min-height:30px;display:flex;flex-direction:row;align-items:center;justify-content:center;font-family:metropolis,helvetica,arial,sans-serif;position:relative;transition:all .2s ease-in-out;border-radius:4px;cursor:pointer;font-weight:lighter;text-align:center;color:#fff;background-color:#009ee6;border:none}.cmc-button:hover{background-color:#1ab7ff!important}.gif-loader-container{display:flex}.gif-loader{height:40px;margin:auto;transition:transform .4s}.gif-loader-hidden{transform:scale(0)}.label__container{display:flex;flex-direction:column;align-items:center;justify-content:space-evenly;padding:8px}.hover-widget{display:flex;flex-direction:column;align-items:flex-start}.hover-widget__line{display:flex;align-items:center;justify-content:space-between;padding:0}.title{display:flex;color:#fff;white-space:nowrap;font-size:12px;min-width:180px;justify-content:flex-start;padding:8px}.avis{margin-right:4px;font-family:metropolis,helvetica,arial,sans-serif}.name{text-transform:uppercase;font-weight:700;font-family:metropolis,helvetica,arial,sans-serif}.note{display:flex;align-items:center;justify-content:center;width:80px;font-family:metropolis,helvetica,arial,sans-serif;background:white}.number{font-weight:700;font-family:metropolis,helvetica,arial,sans-serif}.base{letter-spacing:-1px;font-family:metropolis,helvetica,arial,sans-serif}.stars-widget{border-radius:0 6px;overflow:hidden;width:200px;background-color:#fff}.stars-widget .title{color:#fff;height:25px;display:flex;align-items:center;font-size:12px;padding-left:4px}.stars-widget .title .name{margin-left:4px;font-weight:700;text-transform:uppercase}.stars-widget .container{padding:5px;font-size:16px}.stars-widget .container .stars{padding-left:16px;display:flex}.stars-widget .container .stars .star{width:26px;margin:0 2px}.stars-widget .container .footer{display:flex;align-items:baseline;justify-content:space-between;font-size:12px}.stars-widget .container .footer .stars{display:flex;align-items:baseline}.stars-widget .container .footer .stars .nbEtoile{margin-left:4px;font-weight:700} `,Od=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n};const vd={class:"widget-factory"},Cd={key:2},Sd=Ye({__name:"WidgetFactory.ce",props:{slug:{type:String,required:!0},widget:{type:String,required:!0},type:{type:String,required:!0},countryCode:{type:String,default:"FR"},lang:{type:String,default:"fr"}},setup(e){const{generateStat:t,ACTION_TYPE:n}=Gn(),r="https://choosemycompany.com",s=e;$f.value=s.lang;const o=`${r}/${s.lang}/avis-certifies/${s.slug}/`,{company:i,isLoading:u,error:c}=La(`${r}/api-v2/companies?filter[slug]=${s.slug}`),f=async()=>{await t({slug:s.slug,type:s.type,actionType:n.click})};return(p,g)=>(J(),ue("div",vd,[B(u)?(J(),Qe(mn,{key:0})):B(i)?(J(),ue("a",{key:1,href:o,target:"_blank",class:"container",onClick:f},[e.widget==="label"?(J(),Qe(Kf,{key:0,company:B(i),lang:e.lang,type:e.type,redirectUrl:o},null,8,["company","lang","type"])):Ze("",!0),e.widget==="hover"?(J(),Qe(ed,{key:1,company:B(i),lang:e.lang,countryCode:e.countryCode,types:e.type?e.type.split(","):[]},null,8,["company","lang","countryCode","types"])):Ze("",!0),e.widget==="hundredscore"?(J(),Qe(od,{key:2,company:B(i),countryCode:e.countryCode,lang:e.lang,type:e.type},null,8,["company","countryCode","lang","type"])):Ze("",!0),e.widget==="stars"?(J(),Qe(Nd,{key:3,company:B(i),lang:e.lang,type:e.type},null,8,["company","lang","type"])):Ze("",!0)])):B(c)?(J(),ue("div",Cd,"Error: "+ge(B(c).message),1)):Ze("",!0)]))}});var wd=Od(Sd,[["styles",[Ld]]]);const Id=ya(wd);customElements.define("cmc-widget",Id)});